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-dialog {
|
|
|
|
max-height: 90%;
|
|
|
|
transform: scale(1);
|
2024-03-12 12:07:51 +00:00
|
|
|
border-radius: ${dt('rounded.xl')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('dialog.background')};
|
|
|
|
border: 1px solid ${dt('dialog.border.color')};
|
|
|
|
color: ${dt('dialog.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-content {
|
|
|
|
overflow-y: auto;
|
|
|
|
padding: 0 1.5rem 1.5rem 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-title {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-footer {
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 0 1.5rem 1.5rem 1.5rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-header-icons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-header-icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
width: 1.75rem;
|
|
|
|
height: 1.75rem;
|
2024-03-12 12:07:51 +00:00
|
|
|
color: ${dt('dialog.header.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border: 0 none;
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 50%;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-header-icon:enabled:hover {
|
2024-03-12 12:07:51 +00:00
|
|
|
background: ${dt('dialog.header.icon.hover.background')};
|
|
|
|
color: ${dt('dialog.header.icon.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-header-icon:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-enter-active {
|
|
|
|
transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-leave-active {
|
|
|
|
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-enter-from,
|
|
|
|
.p-dialog-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0.7);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-top .p-dialog,
|
|
|
|
.p-dialog-bottom .p-dialog,
|
|
|
|
.p-dialog-left .p-dialog,
|
|
|
|
.p-dialog-right .p-dialog,
|
|
|
|
.p-dialog-topleft .p-dialog,
|
|
|
|
.p-dialog-topright .p-dialog,
|
|
|
|
.p-dialog-bottomleft .p-dialog,
|
|
|
|
.p-dialog-bottomright .p-dialog {
|
|
|
|
margin: 0.75rem;
|
|
|
|
transform: translate3d(0px, 0px, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-top .p-dialog-enter-active,
|
|
|
|
.p-dialog-top .p-dialog-leave-active,
|
|
|
|
.p-dialog-bottom .p-dialog-enter-active,
|
|
|
|
.p-dialog-bottom .p-dialog-leave-active,
|
|
|
|
.p-dialog-left .p-dialog-enter-active,
|
|
|
|
.p-dialog-left .p-dialog-leave-active,
|
|
|
|
.p-dialog-right .p-dialog-enter-active,
|
|
|
|
.p-dialog-right .p-dialog-leave-active,
|
|
|
|
.p-dialog-topleft .p-dialog-enter-active,
|
|
|
|
.p-dialog-topleft .p-dialog-leave-active,
|
|
|
|
.p-dialog-topright .p-dialog-enter-active,
|
|
|
|
.p-dialog-topright .p-dialog-leave-active,
|
|
|
|
.p-dialog-bottomleft .p-dialog-enter-active,
|
|
|
|
.p-dialog-bottomleft .p-dialog-leave-active,
|
|
|
|
.p-dialog-bottomright .p-dialog-enter-active,
|
|
|
|
.p-dialog-bottomright .p-dialog-leave-active {
|
|
|
|
transition: all 0.3s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-top .p-dialog-enter-from,
|
|
|
|
.p-dialog-top .p-dialog-leave-to {
|
|
|
|
transform: translate3d(0px, -100%, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-bottom .p-dialog-enter-from,
|
|
|
|
.p-dialog-bottom .p-dialog-leave-to {
|
|
|
|
transform: translate3d(0px, 100%, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-left .p-dialog-enter-from,
|
|
|
|
.p-dialog-left .p-dialog-leave-to,
|
|
|
|
.p-dialog-topleft .p-dialog-enter-from,
|
|
|
|
.p-dialog-topleft .p-dialog-leave-to,
|
|
|
|
.p-dialog-bottomleft .p-dialog-enter-from,
|
|
|
|
.p-dialog-bottomleft .p-dialog-leave-to {
|
|
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-right .p-dialog-enter-from,
|
|
|
|
.p-dialog-right .p-dialog-leave-to,
|
|
|
|
.p-dialog-topright .p-dialog-enter-from,
|
|
|
|
.p-dialog-topright .p-dialog-leave-to,
|
|
|
|
.p-dialog-bottomright .p-dialog-enter-from,
|
|
|
|
.p-dialog-bottomright .p-dialog-leave-to {
|
|
|
|
transform: translate3d(100%, 0px, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-maximized {
|
|
|
|
width: 100vw !important;
|
|
|
|
height: 100vh !important;
|
|
|
|
top: 0px !important;
|
|
|
|
left: 0px !important;
|
|
|
|
max-height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-dialog-maximized .p-dialog-content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|