2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-confirm-popup {
|
|
|
|
position: absolute;
|
|
|
|
margin-top: 10px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('confirmpopup.background')};
|
|
|
|
color: ${dt('confirmpopup.color')};
|
|
|
|
border: 1px solid ${dt('confirmpopup.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-icon {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-message {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-footer {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
gap: 0.5rem;
|
|
|
|
padding: 0 1rem 1rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-footer button {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-footer button:last-child {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-flipped {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-enter-from {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scaleY(0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-enter-active {
|
|
|
|
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-leave-active {
|
|
|
|
transition: opacity 0.1s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup:after,
|
|
|
|
.p-confirm-popup:before {
|
|
|
|
bottom: 100%;
|
2024-03-28 14:26:59 +00:00
|
|
|
left: ${dt('{overlay.arrow.left} + 1.25rem', 0)};
|
2024-02-19 22:53:42 +00:00
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup:after {
|
|
|
|
border-width: 8px;
|
|
|
|
margin-left: -8px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-bottom-color: ${dt('confirmpopup.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup:before {
|
|
|
|
border-width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-bottom-color: ${dt('confirmpopup.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-flipped:after,
|
|
|
|
.p-confirm-popup-flipped:before {
|
|
|
|
bottom: auto;
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-flipped:after {
|
|
|
|
border-bottom-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-top-color: ${dt('confirmpopup.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-confirm-popup-flipped:before {
|
|
|
|
border-bottom-color: transparent;
|
2024-03-12 12:07:51 +00:00
|
|
|
border-top-color: ${dt('confirmpopup.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|