import type { Preflight, Rule, UserShortcuts } from '@unocss/core' import type { QuasarTheme } from '../../../theme.js' const preflights: Preflight[] = [ { getCSS: ({ theme }) => ` body.platform-ios .q-dialog__inner--minimized > div, body.platform-android:not(.native-mobile) .q-dialog__inner--minimized > div { max-height: calc(100vh - 108px); } body.q-ios-padding .q-dialog__inner { padding-top: 20px !important; padding-top: env(safe-area-inset-top) !important; padding-bottom: env(safe-area-inset-bottom) !important; } body.q-ios-padding .q-dialog__inner > div { max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important; } @media (max-width: 599.98px) { .q-dialog__inner--top, .q-dialog__inner--bottom { padding-left: 0; padding-right: 0; } .q-dialog__inner--top > div, .q-dialog__inner--bottom > div { width: 100% !important; } } @media (min-width: 600px) { .q-dialog__inner--minimized > div { max-width: 560px; } } ` } ] const shortcuts: UserShortcuts = [ [/^q-dialog$/, ([, c], { theme }) => ``], [ /^q-dialog__title$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__title'] ?? `text-1.25rem font-500 lh-1rem tracking-0.0125em` ], [/^q-dialog__progress$/, ([, c], { theme }) => `text-4rem`], [ /^q-dialog__inner$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner'] ?? `outline-0 [&>div]:(pointer-events-all overflow-auto border-rd-4px) [&>.q-card>.q-card\\_\\_actions_.q-btn--rectangle]:(min-w-64px) ` ], [ /^q-dialog__inner--square$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--square'] ?? `[&>div]:(border-rd-0!) ` ], [ /^q-dialog__inner--minimized$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--minimized'] ?? `p-24px [&>div]:(max-h-[calc(100vh-48px)]) ` ], [ /^q-dialog__inner--maximized$/, ( [, c], { theme } ) => `[&>div]:(h-full w-full max-h-100vh max-w-100vw border-rd-0! top-0! left-0!) ` ], [ /^q-dialog__inner--top$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--top'] ?? `pt-0! pb-0! [&:not(.q-dialog\\_\\_inner--animating)>div]:(rounded-tl-none rounded-tr-none) ` ], [ /^q-dialog__inner--bottom$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--bottom'] ?? `pt-0! pb-0! [&:not(.q-dialog\\_\\_inner--animating)>div]:(rounded-bl-none rounded-br-none) ` ], [ /^q-dialog__inner--left$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--left'] ?? `pt-0! pb-0! [&:not(.q-dialog\\_\\_inner--animating)>div]:(rounded-tl-none rounded-bl-none) ` ], [ /^q-dialog__inner--right$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--right'] ?? `pt-0! pb-0! [&:not(.q-dialog\\_\\_inner--animating)>div]:(rounded-tr-none rounded-br-none) ` ], [ /^q-dialog__inner--fullwidth$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--fullwidth'] ?? `[&>div]:(w-full! max-w-full!) ` ], [ /^q-dialog__inner--fullheight$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__inner--fullheight'] ?? `[&>div]:(h-full! max-h-full!) ` ], [ /^q-dialog__backdrop$/, ([, c], { theme }) => theme.quasar?.components?.['q-dialog__backdrop'] ?? `-z-1 pointer-events-all outline-0 bg-black bg-op-40 ` ], [ /^q-body--dialog$/, ([, c], { theme }) => theme.quasar?.components?.['q-body--dialog'] ?? `overflow-hidden ` ] ] export { preflights, shortcuts }