vitrify 0.16.4 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frameworks/vue/prerender.js +3 -3
- package/dist/index.js +31 -1
- package/dist/plugins/quasar/unocss/components/QAjaxBar.unocss.js +20 -0
- package/dist/plugins/quasar/unocss/components/QAvatar.unocss.js +12 -0
- package/dist/plugins/quasar/unocss/components/QBadge.unocss.js +22 -0
- package/dist/plugins/quasar/unocss/components/QBanner.unocss.js +24 -0
- package/dist/plugins/quasar/unocss/components/QBar.unocss.js +26 -0
- package/dist/plugins/quasar/unocss/components/QBreadcrumbs.unocss.js +13 -0
- package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +62 -0
- package/dist/plugins/quasar/unocss/components/QBtnDropdown.unocss.js +19 -0
- package/dist/plugins/quasar/unocss/components/QBtnGroup.unocss.js +30 -0
- package/dist/plugins/quasar/unocss/components/QBtnToggle.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QCard.unocss.js +57 -0
- package/dist/plugins/quasar/unocss/components/QCarousel.unocss.js +82 -0
- package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +38 -0
- package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +65 -0
- package/dist/plugins/quasar/unocss/components/QChip.unocss.js +90 -0
- package/dist/plugins/quasar/unocss/components/QCircularProgress.unocss.js +32 -0
- package/dist/plugins/quasar/unocss/components/QColorPicker.unocss.js +174 -0
- package/dist/plugins/quasar/unocss/components/QDate.unocss.js +122 -0
- package/dist/plugins/quasar/unocss/components/QDialog.unocss.js +110 -0
- package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +53 -0
- package/dist/plugins/quasar/unocss/components/QEditor.unocss.js +66 -0
- package/dist/plugins/quasar/unocss/components/QExpansionItem.unocss.js +38 -0
- package/dist/plugins/quasar/unocss/components/QFab.unocss.js +100 -0
- package/dist/plugins/quasar/unocss/components/QField.unocss.js +153 -0
- package/dist/plugins/quasar/unocss/components/QFile.unocss.js +15 -0
- package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +12 -0
- package/dist/plugins/quasar/unocss/components/QForm.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QHeader.unocss.js +13 -0
- package/dist/plugins/quasar/unocss/components/QIcon.unocss.js +22 -0
- package/dist/plugins/quasar/unocss/components/QImg.unocss.js +29 -0
- package/dist/plugins/quasar/unocss/components/QInnerLoading.unocss.js +9 -0
- package/dist/plugins/quasar/unocss/components/QInput.unocss.js +27 -0
- package/dist/plugins/quasar/unocss/components/QIntersection.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QItem.unocss.js +71 -0
- package/dist/plugins/quasar/unocss/components/QKnob.unocss.js +13 -0
- package/dist/plugins/quasar/unocss/components/QLayout.unocss.js +81 -0
- package/dist/plugins/quasar/unocss/components/QLinearProgress.unocss.js +80 -0
- package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +12 -0
- package/dist/plugins/quasar/unocss/components/QOptionGroup.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QPage.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QPageSticky.unocss.js +7 -0
- package/dist/plugins/quasar/unocss/components/QPagination.unocss.js +15 -0
- package/dist/plugins/quasar/unocss/components/QParallax.unocss.js +11 -0
- package/dist/plugins/quasar/unocss/components/QPopupEdit.unocss.js +8 -0
- package/dist/plugins/quasar/unocss/components/QPullToRefresh.unocss.js +12 -0
- package/dist/plugins/quasar/unocss/components/QRadio.unocss.js +60 -0
- package/dist/plugins/quasar/unocss/components/QRating.unocss.js +23 -0
- package/dist/plugins/quasar/unocss/components/QResponsive.unocss.js +12 -0
- package/dist/plugins/quasar/unocss/components/QScrollarea.unocss.js +31 -0
- package/dist/plugins/quasar/unocss/components/QSelect.unocss.js +56 -0
- package/dist/plugins/quasar/unocss/components/QSeparator.unocss.js +26 -0
- package/dist/plugins/quasar/unocss/components/QSkeleton.unocss.js +153 -0
- package/dist/plugins/quasar/unocss/components/QSlideItem.unocss.js +24 -0
- package/dist/plugins/quasar/unocss/components/QSlider.unocss.js +163 -0
- package/dist/plugins/quasar/unocss/components/QSpace.unocss.js +4 -0
- package/dist/plugins/quasar/unocss/components/QSpinner.unocss.js +44 -0
- package/dist/plugins/quasar/unocss/components/QSplitter.unocss.js +39 -0
- package/dist/plugins/quasar/unocss/components/QStepper.unocss.js +102 -0
- package/dist/plugins/quasar/unocss/components/QTabPanel.unocss.js +5 -0
- package/dist/plugins/quasar/unocss/components/QTable.unocss.js +132 -0
- package/dist/plugins/quasar/unocss/components/QTabs.unocss.js +96 -0
- package/dist/plugins/quasar/unocss/components/QTime.unocss.js +123 -0
- package/dist/plugins/quasar/unocss/components/QTimeline.unocss.js +80 -0
- package/dist/plugins/quasar/unocss/components/QToggle.unocss.js +67 -0
- package/dist/plugins/quasar/unocss/components/QToolbar.unocss.js +14 -0
- package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +11 -0
- package/dist/plugins/quasar/unocss/components/QTree.unocss.js +87 -0
- package/dist/plugins/quasar/unocss/components/QUploader.unocss.js +72 -0
- package/dist/plugins/quasar/unocss/components/QVideo.unocss.js +11 -0
- package/dist/plugins/quasar/unocss/components/QVirtualScroll.unocss.js +16 -0
- package/dist/plugins/quasar/unocss/composables/panel.unocss.js +5 -0
- package/dist/plugins/quasar/unocss/core/colors.unocss.js +17 -0
- package/dist/plugins/quasar/unocss/core/dark.unocss.js +14 -0
- package/dist/plugins/quasar/unocss/core/elevation.unocss.js +67 -0
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +76 -0
- package/dist/plugins/quasar/unocss/core/helpers.unocss.js +57 -0
- package/dist/plugins/quasar/unocss/core/mouse.unocss.js +32 -0
- package/dist/plugins/quasar/unocss/core/orientation.unocss.js +5 -0
- package/dist/plugins/quasar/unocss/core/position.unocss.js +48 -0
- package/dist/plugins/quasar/unocss/core/size.unocss.js +98 -0
- package/dist/plugins/quasar/unocss/core/touch.unocss.js +6 -0
- package/dist/plugins/quasar/unocss/core/transitions.unocss.js +271 -0
- package/dist/plugins/quasar/unocss/core/typography.unocss.js +147 -0
- package/dist/plugins/quasar/unocss/core/visibility.unocss.js +219 -0
- package/dist/plugins/quasar/unocss/directives/QMorph.unocss.js +11 -0
- package/dist/plugins/quasar/unocss/directives/QRipple.unocss.js +19 -0
- package/dist/plugins/quasar/unocss/index.js +1282 -0
- package/dist/plugins/quasar/unocss/plugins/QBottomSheet.unocss.js +17 -0
- package/dist/plugins/quasar/unocss/plugins/QDialogPlugin.unocss.js +9 -0
- package/dist/plugins/quasar/unocss/plugins/QLoading.unocss.js +16 -0
- package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +207 -0
- package/dist/plugins/quasar/unocss/theme.js +439 -0
- package/dist/plugins/quasar.js +104 -4
- package/dist/types/frameworks/vue/server.d.ts +3 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/plugins/quasar/unocss/components/QAjaxBar.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QAvatar.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBadge.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBanner.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBar.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBreadcrumbs.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QBtn.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBtnDropdown.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBtnGroup.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QBtnToggle.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QCard.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QCarousel.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QChatMessage.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QCheckbox.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QChip.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QCircularProgress.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QColorPicker.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QDate.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QDialog.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QDrawer.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QEditor.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QExpansionItem.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QFab.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QField.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QFile.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QFooter.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QForm.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QHeader.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QIcon.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QImg.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QInnerLoading.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QInput.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QIntersection.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QItem.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QKnob.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QLayout.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QLinearProgress.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QMenu.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QOptionGroup.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QPage.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QPageSticky.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QPagination.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QParallax.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QPopupEdit.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QPullToRefresh.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QRadio.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QRating.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QResponsive.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QScrollarea.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QSelect.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QSeparator.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QSkeleton.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QSlideItem.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QSlider.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QSpace.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QSpinner.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QSplitter.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QStepper.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTabPanel.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTable.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QTabs.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTime.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTimeline.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QToggle.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QToolbar.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTooltip.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QTree.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/components/QUploader.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QVideo.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/components/QVirtualScroll.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/composables/panel.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/colors.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/dark.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/core/elevation.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/flex.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/helpers.unocss.d.ts +6 -0
- package/dist/types/plugins/quasar/unocss/core/mouse.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/core/orientation.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/position.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/size.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/touch.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/transitions.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/core/typography.unocss.d.ts +5 -0
- package/dist/types/plugins/quasar/unocss/core/visibility.unocss.d.ts +6 -0
- package/dist/types/plugins/quasar/unocss/directives/QMorph.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/directives/QRipple.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/index.d.ts +11 -0
- package/dist/types/plugins/quasar/unocss/plugins/QBottomSheet.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/plugins/QDialogPlugin.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/plugins/QLoading.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/plugins/QNotify.unocss.d.ts +4 -0
- package/dist/types/plugins/quasar/unocss/theme.d.ts +425 -0
- package/dist/types/plugins/quasar.d.ts +1 -0
- package/dist/types/vitrify-config.d.ts +11 -3
- package/package.json +17 -10
- package/src/node/frameworks/vue/prerender.ts +3 -3
- package/src/node/frameworks/vue/server.ts +3 -3
- package/src/node/index.ts +37 -3
- package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +24 -0
- package/src/node/plugins/quasar/unocss/components/QAvatar.unocss.ts +20 -0
- package/src/node/plugins/quasar/unocss/components/QBadge.unocss.ts +34 -0
- package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +32 -0
- package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +30 -0
- package/src/node/plugins/quasar/unocss/components/QBreadcrumbs.unocss.ts +18 -0
- package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +93 -0
- package/src/node/plugins/quasar/unocss/components/QBtnDropdown.unocss.ts +27 -0
- package/src/node/plugins/quasar/unocss/components/QBtnGroup.unocss.ts +48 -0
- package/src/node/plugins/quasar/unocss/components/QBtnToggle.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +64 -0
- package/src/node/plugins/quasar/unocss/components/QCarousel.unocss.ts +115 -0
- package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +59 -0
- package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +89 -0
- package/src/node/plugins/quasar/unocss/components/QChip.unocss.ts +98 -0
- package/src/node/plugins/quasar/unocss/components/QCircularProgress.unocss.ts +41 -0
- package/src/node/plugins/quasar/unocss/components/QColorPicker.unocss.ts +178 -0
- package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +181 -0
- package/src/node/plugins/quasar/unocss/components/QDialog.unocss.ts +118 -0
- package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +76 -0
- package/src/node/plugins/quasar/unocss/components/QEditor.unocss.ts +85 -0
- package/src/node/plugins/quasar/unocss/components/QExpansionItem.unocss.ts +54 -0
- package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +148 -0
- package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +220 -0
- package/src/node/plugins/quasar/unocss/components/QFile.unocss.ts +23 -0
- package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +19 -0
- package/src/node/plugins/quasar/unocss/components/QForm.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QHeader.unocss.ts +20 -0
- package/src/node/plugins/quasar/unocss/components/QIcon.unocss.ts +30 -0
- package/src/node/plugins/quasar/unocss/components/QImg.unocss.ts +43 -0
- package/src/node/plugins/quasar/unocss/components/QInnerLoading.unocss.ts +16 -0
- package/src/node/plugins/quasar/unocss/components/QInput.unocss.ts +40 -0
- package/src/node/plugins/quasar/unocss/components/QIntersection.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +102 -0
- package/src/node/plugins/quasar/unocss/components/QKnob.unocss.ts +22 -0
- package/src/node/plugins/quasar/unocss/components/QLayout.unocss.ts +91 -0
- package/src/node/plugins/quasar/unocss/components/QLinearProgress.unocss.ts +104 -0
- package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +20 -0
- package/src/node/plugins/quasar/unocss/components/QOptionGroup.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QPage.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QPageSticky.unocss.ts +12 -0
- package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +24 -0
- package/src/node/plugins/quasar/unocss/components/QParallax.unocss.ts +18 -0
- package/src/node/plugins/quasar/unocss/components/QPopupEdit.unocss.ts +13 -0
- package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +19 -0
- package/src/node/plugins/quasar/unocss/components/QRadio.unocss.ts +82 -0
- package/src/node/plugins/quasar/unocss/components/QRating.unocss.ts +36 -0
- package/src/node/plugins/quasar/unocss/components/QResponsive.unocss.ts +20 -0
- package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +48 -0
- package/src/node/plugins/quasar/unocss/components/QSelect.unocss.ts +69 -0
- package/src/node/plugins/quasar/unocss/components/QSeparator.unocss.ts +38 -0
- package/src/node/plugins/quasar/unocss/components/QSkeleton.unocss.ts +192 -0
- package/src/node/plugins/quasar/unocss/components/QSlideItem.unocss.ts +38 -0
- package/src/node/plugins/quasar/unocss/components/QSlider.unocss.ts +246 -0
- package/src/node/plugins/quasar/unocss/components/QSpace.unocss.ts +8 -0
- package/src/node/plugins/quasar/unocss/components/QSpinner.unocss.ts +51 -0
- package/src/node/plugins/quasar/unocss/components/QSplitter.unocss.ts +58 -0
- package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +150 -0
- package/src/node/plugins/quasar/unocss/components/QTabPanel.unocss.ts +10 -0
- package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +194 -0
- package/src/node/plugins/quasar/unocss/components/QTabs.unocss.ts +139 -0
- package/src/node/plugins/quasar/unocss/components/QTime.unocss.ts +195 -0
- package/src/node/plugins/quasar/unocss/components/QTimeline.unocss.ts +122 -0
- package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +89 -0
- package/src/node/plugins/quasar/unocss/components/QToolbar.unocss.ts +22 -0
- package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +18 -0
- package/src/node/plugins/quasar/unocss/components/QTree.unocss.ts +124 -0
- package/src/node/plugins/quasar/unocss/components/QUploader.unocss.ts +107 -0
- package/src/node/plugins/quasar/unocss/components/QVideo.unocss.ts +18 -0
- package/src/node/plugins/quasar/unocss/components/QVirtualScroll.unocss.ts +26 -0
- package/src/node/plugins/quasar/unocss/composables/panel.unocss.ts +9 -0
- package/src/node/plugins/quasar/unocss/core/colors.unocss.ts +21 -0
- package/src/node/plugins/quasar/unocss/core/dark.unocss.ts +19 -0
- package/src/node/plugins/quasar/unocss/core/elevation.unocss.ts +94 -0
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +99 -0
- package/src/node/plugins/quasar/unocss/core/helpers.unocss.ts +78 -0
- package/src/node/plugins/quasar/unocss/core/mouse.unocss.ts +46 -0
- package/src/node/plugins/quasar/unocss/core/orientation.unocss.ts +10 -0
- package/src/node/plugins/quasar/unocss/core/position.unocss.ts +81 -0
- package/src/node/plugins/quasar/unocss/core/size.unocss.ts +196 -0
- package/src/node/plugins/quasar/unocss/core/touch.unocss.ts +12 -0
- package/src/node/plugins/quasar/unocss/core/transitions.unocss.ts +392 -0
- package/src/node/plugins/quasar/unocss/core/typography.unocss.ts +192 -0
- package/src/node/plugins/quasar/unocss/core/visibility.unocss.ts +250 -0
- package/src/node/plugins/quasar/unocss/createSafelist.js +2549 -0
- package/src/node/plugins/quasar/unocss/directives/QMorph.unocss.ts +18 -0
- package/src/node/plugins/quasar/unocss/directives/QRipple.unocss.ts +30 -0
- package/src/node/plugins/quasar/unocss/index.ts +1482 -0
- package/src/node/plugins/quasar/unocss/parse.js +132 -0
- package/src/node/plugins/quasar/unocss/plugins/QBottomSheet.unocss.ts +27 -0
- package/src/node/plugins/quasar/unocss/plugins/QDialogPlugin.unocss.ts +16 -0
- package/src/node/plugins/quasar/unocss/plugins/QLoading.unocss.ts +24 -0
- package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +266 -0
- package/src/node/plugins/quasar/unocss/theme.ts +452 -0
- package/src/node/plugins/quasar.ts +113 -4
- package/src/node/vitrify-config.ts +14 -7
- package/src/vite/fastify/server.ts +3 -1
- package/src/vite/vue/main.ts +2 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
+
[
|
|
6
|
+
/^q-video$/,
|
|
7
|
+
([, c], { theme }) =>
|
|
8
|
+
`relative overflow-hidden [border-radius:inherit] [&_iframe]:(w-full h-full) [&_object]:(w-full h-full) [&_embed]:(w-full h-full)`
|
|
9
|
+
],
|
|
10
|
+
|
|
11
|
+
[
|
|
12
|
+
/^q-video--responsive$/,
|
|
13
|
+
([, c], { theme }) =>
|
|
14
|
+
`h-[0] [&_iframe]:(absolute top-0 left-0) [&_object]:(absolute top-0 left-0) [&_embed]:(absolute top-0 left-0)`
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export { shortcuts }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
+
[/^q-virtual-scroll:focus$/, ([, c], { theme }) => `focus:outline-0`],
|
|
6
|
+
|
|
7
|
+
[
|
|
8
|
+
/^q-virtual-scroll__content$/,
|
|
9
|
+
([, c], { theme }) =>
|
|
10
|
+
`outline-[none] [&_>_*]:([overflow-anchor:none]) [&_>_[data-q-vs-anchor]]:([overflow-anchor:auto])`
|
|
11
|
+
],
|
|
12
|
+
|
|
13
|
+
[
|
|
14
|
+
/^q-virtual-scroll__padding$/,
|
|
15
|
+
([, c], { theme }) =>
|
|
16
|
+
`bg-[linear-gradient(_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0)_20%,_rgba(128,_128,_128,_0.03)_20%,_rgba(128,_128,_128,_0.08)_50%,_rgba(128,_128,_128,_0.03)_80%,_rgba(255,_255,_255,_0)_80%,_rgba(255,_255,_255,_0)_)] [background-size:var(--q-virtual-scroll-item-width,_100%)_var(--q-virtual-scroll-item-height,_50px)]`
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
[
|
|
20
|
+
/^q-virtual-scroll--horizontal$/,
|
|
21
|
+
([, c], { theme }) =>
|
|
22
|
+
`flex flex-row flex-nowrap items-stretch [&_.q-virtual-scroll\\_\\_content]:(flex flex-row flex-nowrap) [&_.q-virtual-scroll\\_\\_padding]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_content]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_content_>_*]:(flex-[0_0_auto]) [&_.q-virtual-scroll\\_\\_padding]:(bg-[linear-gradient(_to_left,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0)_20%,_rgba(128,_128,_128,_0.03)_20%,_rgba(128,_128,_128,_0.08)_50%,_rgba(128,_128,_128,_0.03)_80%,_rgba(255,_255,_255,_0)_80%,_rgba(255,_255,_255,_0)_)] [background-size:var(--q-virtual-scroll-item-width,_50px)_var(--q-virtual-scroll-item-height,_100%)])`
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
export { shortcuts }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
+
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [&_div]:(h-full w-full)`],
|
|
6
|
+
[/^q-panel-parent$/, ([, c], { theme }) => `overflow-hidden relative`]
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
export { shortcuts }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Preflight } from '@unocss/core'
|
|
2
|
+
import { type QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
|
+
{
|
|
6
|
+
getCSS: ({ theme }) => `
|
|
7
|
+
:root {
|
|
8
|
+
--q-primary: ${theme.colors.primary};
|
|
9
|
+
--q-secondary: ${theme.colors.secondary};
|
|
10
|
+
--q-accent: ${theme.colors.accent};
|
|
11
|
+
--q-positive: ${theme.colors.positive};
|
|
12
|
+
--q-negative: ${theme.colors.negative};
|
|
13
|
+
--q-info: ${theme.colors.info};
|
|
14
|
+
--q-warning: ${theme.colors.warning};
|
|
15
|
+
--q-dark: ${theme.colors['q-dark']};
|
|
16
|
+
--q-dark-page: ${theme.colors['dark-page']};
|
|
17
|
+
}`
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
export { preflights }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
|
+
{
|
|
6
|
+
getCSS: ({ theme }) => `
|
|
7
|
+
body.body--dark {
|
|
8
|
+
color: #fff;
|
|
9
|
+
background: ${theme.colors['dark-page']};
|
|
10
|
+
}
|
|
11
|
+
`
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
16
|
+
[/^q-dark$/, ([, c], { theme }) => `text-white bg-dark`]
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
export { preflights, shortcuts }
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Rule } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
type Enumerate<
|
|
5
|
+
N extends number,
|
|
6
|
+
Acc extends number[] = []
|
|
7
|
+
> = Acc['length'] extends N
|
|
8
|
+
? Acc[number]
|
|
9
|
+
: Enumerate<N, [...Acc, Acc['length']]>
|
|
10
|
+
|
|
11
|
+
type IntRange<F extends number, T extends number> = Exclude<
|
|
12
|
+
Enumerate<T>,
|
|
13
|
+
Enumerate<F>
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
const shadows = (mode: 'light' | 'dark') => [
|
|
17
|
+
...Array.from({ length: 24 }, (_, i) => i + 1).reduce((acc, z) => {
|
|
18
|
+
acc.push([
|
|
19
|
+
new RegExp(`shadow-${z}`),
|
|
20
|
+
([, c], { symbols, theme }) => ({
|
|
21
|
+
[symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
22
|
+
'box-shadow': theme['shadows'][z as IntRange<0, 24>]
|
|
23
|
+
})
|
|
24
|
+
])
|
|
25
|
+
acc.push([
|
|
26
|
+
new RegExp(`shadow-up-${z}`),
|
|
27
|
+
([, c], { symbols, theme }) => ({
|
|
28
|
+
[symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
29
|
+
|
|
30
|
+
'box-shadow': theme['shadows']['up'][z as IntRange<0, 24>]
|
|
31
|
+
})
|
|
32
|
+
])
|
|
33
|
+
return acc
|
|
34
|
+
}, [] as Rule<QuasarTheme>[]),
|
|
35
|
+
[
|
|
36
|
+
/^.inset-shadow$/,
|
|
37
|
+
function* ([, color], { symbols, theme }) {
|
|
38
|
+
yield {
|
|
39
|
+
[symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
40
|
+
'box-shadow': theme['insetShadow']
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
] as Rule<QuasarTheme>,
|
|
44
|
+
[
|
|
45
|
+
/^.inset-shadow-down$/,
|
|
46
|
+
function* ([, color], { symbols, theme }) {
|
|
47
|
+
yield {
|
|
48
|
+
[symbols.parent]: mode === 'dark' ? 'body.body--dark' : undefined,
|
|
49
|
+
'box-shadow': theme['insetShadowDown']
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
] as Rule<QuasarTheme>
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const rules: Rule<QuasarTheme>[] = [
|
|
56
|
+
[
|
|
57
|
+
/^.shadow-transition$/,
|
|
58
|
+
function* ([, color], { theme }) {
|
|
59
|
+
yield {
|
|
60
|
+
transition: `${theme['shadowTransition']} !important`
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
...shadows('light'),
|
|
65
|
+
...shadows('dark'),
|
|
66
|
+
...['no-shadow', 'shadow-0'].map(
|
|
67
|
+
(c) =>
|
|
68
|
+
[
|
|
69
|
+
new RegExp(`${c}`),
|
|
70
|
+
function* ([, color], { theme }) {
|
|
71
|
+
yield {
|
|
72
|
+
'box-shadow': `none !important`
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
] as Rule<QuasarTheme>
|
|
76
|
+
),
|
|
77
|
+
...(['z-marginals', 'z-notify', 'z-fullscreen', 'z-inherit'] as const).map(
|
|
78
|
+
(c) =>
|
|
79
|
+
[
|
|
80
|
+
new RegExp(`${c}`),
|
|
81
|
+
function* ([, color], { theme }) {
|
|
82
|
+
const selector = c.replace('z-', '') as
|
|
83
|
+
| 'marginals'
|
|
84
|
+
| 'notify'
|
|
85
|
+
| 'fullscreen'
|
|
86
|
+
yield {
|
|
87
|
+
'z-index': c === 'z-inherit' ? 'inherit' : theme['z'][selector]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
] as Rule<QuasarTheme>
|
|
91
|
+
)
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
export { rules }
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const cols = 12
|
|
5
|
+
const grid = Array.from({ length: cols }, (_, i) => i + 1)
|
|
6
|
+
|
|
7
|
+
const colGutter = {
|
|
8
|
+
none: 0,
|
|
9
|
+
xs: 1,
|
|
10
|
+
sm: 2,
|
|
11
|
+
md: 4,
|
|
12
|
+
lg: 6,
|
|
13
|
+
xl: 12
|
|
14
|
+
} as const
|
|
15
|
+
|
|
16
|
+
const sizes = ['sm', 'md', 'lg', 'xl']
|
|
17
|
+
|
|
18
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
19
|
+
[
|
|
20
|
+
/^row$/,
|
|
21
|
+
([, c], { theme }) => `flex flex-row flex-wrap
|
|
22
|
+
[&_>_.col]:(grow)
|
|
23
|
+
${sizes
|
|
24
|
+
.map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
|
|
25
|
+
.join(' ')}
|
|
26
|
+
${grid.map((nr) => `[&_>_.col-${nr}]:(basis-${nr}/12)`).join(' ')}
|
|
27
|
+
${sizes
|
|
28
|
+
.map((size) =>
|
|
29
|
+
grid
|
|
30
|
+
.map((nr) => `[&_>_.col-${size}-${nr}]:(${size}:basis-${nr}/12)`)
|
|
31
|
+
.join(' ')
|
|
32
|
+
)
|
|
33
|
+
.join(' ')}
|
|
34
|
+
`
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
/^column$/,
|
|
38
|
+
([, c], { theme }) => `flex flex-col flex-wrap
|
|
39
|
+
[&_>_.col]:(grow)
|
|
40
|
+
${sizes
|
|
41
|
+
.map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
|
|
42
|
+
.join(' ')}
|
|
43
|
+
${grid.map((nr) => `[&_>_.col-${nr}]:(basis-${nr}/12)`).join(' ')}
|
|
44
|
+
${sizes
|
|
45
|
+
.map((size) =>
|
|
46
|
+
grid
|
|
47
|
+
.map((nr) => `[&_>_.col-${size}-${nr}]:(${size}:basis-${nr}/12)`)
|
|
48
|
+
.join(' ')
|
|
49
|
+
)
|
|
50
|
+
.join(' ')}
|
|
51
|
+
`
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
/^q-col-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
55
|
+
([, size], { theme }) =>
|
|
56
|
+
`gap-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
/^q-col-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
60
|
+
([, size], { theme }) =>
|
|
61
|
+
`gap-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
/^q-col-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
65
|
+
([, size], { theme }) =>
|
|
66
|
+
`gap-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
/^q-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
70
|
+
([, size], { theme }) =>
|
|
71
|
+
`mt-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
72
|
+
ml-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
73
|
+
[&_>_*]:(mt-${
|
|
74
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
75
|
+
}
|
|
76
|
+
pl-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
80
|
+
([, size], { theme }) =>
|
|
81
|
+
`ml-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
82
|
+
[&_>_*]:(pl-${
|
|
83
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
84
|
+
})`
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
88
|
+
([, size], { theme }) =>
|
|
89
|
+
`mt-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
90
|
+
[&_>_*]:(mt-${
|
|
91
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
92
|
+
})`
|
|
93
|
+
],
|
|
94
|
+
[/^wrap$/, ([, size], { theme }) => `flex-wrap`],
|
|
95
|
+
[/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
|
|
96
|
+
[/^reverse-wrap$/, ([, size], { theme }) => `flex-wrap-reverse`]
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
export { shortcuts }
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
|
+
{
|
|
6
|
+
getCSS: ({ theme }) => `
|
|
7
|
+
body.electron .q-electron-drag {
|
|
8
|
+
-webkit-user-select: none;
|
|
9
|
+
-webkit-app-region: drag;
|
|
10
|
+
}
|
|
11
|
+
body.electron .q-electron-drag .q-btn-item, body.electron .q-electron-drag--exception {
|
|
12
|
+
-webkit-app-region: no-drag;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
img.responsive {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
height: auto;
|
|
18
|
+
}`
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
const rules: Rule[] = [
|
|
23
|
+
[
|
|
24
|
+
/^content-empty$/,
|
|
25
|
+
function* ([, color]) {
|
|
26
|
+
yield {
|
|
27
|
+
content: '""'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
34
|
+
[/^rounded-borders$/, ([, c], { theme }) => `rounded-[4px]`],
|
|
35
|
+
|
|
36
|
+
[/^border-radius-inherit$/, ([, c], { theme }) => `[border-radius:inherit]`],
|
|
37
|
+
|
|
38
|
+
[/^no-transition$/, ([, c], { theme }) => `transition-none`],
|
|
39
|
+
|
|
40
|
+
[/^transition-0$/, ([, c], { theme }) => `[transition:0s!important]`],
|
|
41
|
+
|
|
42
|
+
[
|
|
43
|
+
/^glossy$/,
|
|
44
|
+
([, c], { theme }) =>
|
|
45
|
+
`!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)]`
|
|
46
|
+
],
|
|
47
|
+
|
|
48
|
+
[
|
|
49
|
+
/^q-placeholder::placeholder$/,
|
|
50
|
+
([, c], { theme }) => `[color:inherit] opacity-70`
|
|
51
|
+
],
|
|
52
|
+
|
|
53
|
+
[/^q-body--fullscreen-mixin$/, ([, c], { theme }) => `!fixed`],
|
|
54
|
+
|
|
55
|
+
[/^q-body--prevent-scroll$/, ([, c], { theme }) => `!fixed`],
|
|
56
|
+
|
|
57
|
+
[/^q-body--force-scrollbar-x$/, ([, c], { theme }) => `overflow-x-scroll`],
|
|
58
|
+
|
|
59
|
+
[/^q-body--force-scrollbar-y$/, ([, c], { theme }) => `overflow-y-scroll`],
|
|
60
|
+
|
|
61
|
+
[/^q-no-input-spinner$/, ([, c], { theme }) => ``],
|
|
62
|
+
|
|
63
|
+
[
|
|
64
|
+
/^q-no-input-spinner::-webkit-outer-spin-button$/,
|
|
65
|
+
([, c], { theme }) => `m-0`
|
|
66
|
+
],
|
|
67
|
+
|
|
68
|
+
[
|
|
69
|
+
/^q-no-input-spinner::-webkit-inner-spin-button$/,
|
|
70
|
+
([, c], { theme }) => `m-0`
|
|
71
|
+
],
|
|
72
|
+
|
|
73
|
+
[/^q-link$/, ([, c], { theme }) => `outline-0 no-underline`],
|
|
74
|
+
|
|
75
|
+
[/^q-link--focusable:focus-visible$/, ([, c], { theme }) => ``]
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
export { rules, preflights, shortcuts }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
|
+
{
|
|
6
|
+
getCSS: ({ theme }) => `
|
|
7
|
+
[aria-busy=true] {
|
|
8
|
+
cursor: progress;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[aria-controls] {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[aria-disabled=true] {
|
|
16
|
+
cursor: default;
|
|
17
|
+
}`
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
22
|
+
[/^non-selectable$/, ([, c], { theme }) => `!select-none`],
|
|
23
|
+
|
|
24
|
+
[/^scroll$/, ([, c], { theme }) => `overflow-auto `],
|
|
25
|
+
|
|
26
|
+
[/^scroll-x$/, ([, c], { theme }) => ` overflow-x-auto`],
|
|
27
|
+
|
|
28
|
+
[/^scroll-y$/, ([, c], { theme }) => ` overflow-y-auto`],
|
|
29
|
+
|
|
30
|
+
[/^no-scroll$/, ([, c], { theme }) => `!overflow-hidden`],
|
|
31
|
+
|
|
32
|
+
[/^no-pointer-events$/, ([, c], { theme }) => `!pointer-events-none`],
|
|
33
|
+
|
|
34
|
+
[
|
|
35
|
+
/^no-pointer-events--children$/,
|
|
36
|
+
([, c], { theme }) => `!pointer-events-none [&_*]:(!pointer-events-none)`
|
|
37
|
+
],
|
|
38
|
+
|
|
39
|
+
[/^all-pointer-events$/, ([, c], { theme }) => ``],
|
|
40
|
+
|
|
41
|
+
[/^cursor-inherit$/, ([, c], { theme }) => `[cursor:inherit!important]`],
|
|
42
|
+
|
|
43
|
+
[/^cursor-none$/, ([, c], { theme }) => ``]
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
export { preflights, shortcuts }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
+
[/^flip-horizontal$/, ([, c], { theme }) => `scale-x-[-1]`],
|
|
6
|
+
|
|
7
|
+
[/^flip-vertical$/, ([, c], { theme }) => `scale-y-[-1]`]
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
export { shortcuts }
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
|
+
import type { QuasarTheme } from '../theme.js'
|
|
3
|
+
|
|
4
|
+
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
+
[/^fixed-full$/, ([, c], { theme }) => `fixed top-0 right-0 bottom-0 left-0`],
|
|
6
|
+
|
|
7
|
+
[
|
|
8
|
+
/^fullscreen$/,
|
|
9
|
+
([, c], { theme }) =>
|
|
10
|
+
`fixed !rounded-none max-w-[100vw] max-h-screen top-0 right-0 bottom-0 left-0`
|
|
11
|
+
],
|
|
12
|
+
|
|
13
|
+
[
|
|
14
|
+
/^fixed-center$/,
|
|
15
|
+
([, c], { theme }) =>
|
|
16
|
+
`fixed top-2/4 left-2/4 -translate-x-1/2 -translate-y-1/2`
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
[/^fixed-bottom$/, ([, c], { theme }) => `fixed right-0 bottom-0 left-0`],
|
|
20
|
+
|
|
21
|
+
[/^fixed-left$/, ([, c], { theme }) => `fixed top-0 bottom-0 left-0`],
|
|
22
|
+
|
|
23
|
+
[/^fixed-right$/, ([, c], { theme }) => `fixed top-0 right-0 bottom-0`],
|
|
24
|
+
|
|
25
|
+
[/^fixed-top$/, ([, c], { theme }) => `fixed top-0 left-0 right-0`],
|
|
26
|
+
|
|
27
|
+
[/^fixed-top-left$/, ([, c], { theme }) => `fixed top-0 left-0`],
|
|
28
|
+
|
|
29
|
+
[/^fixed-top-right$/, ([, c], { theme }) => `fixed top-0 right-0`],
|
|
30
|
+
|
|
31
|
+
[/^fixed-bottom-left$/, ([, c], { theme }) => `fixed bottom-0 left-0`],
|
|
32
|
+
|
|
33
|
+
[/^fixed-bottom-right$/, ([, c], { theme }) => `fixed bottom-0 right-0`],
|
|
34
|
+
|
|
35
|
+
[
|
|
36
|
+
/^absolute-full$/,
|
|
37
|
+
([, c], { theme }) => `absolute top-0 right-0 bottom-0 left-0`
|
|
38
|
+
],
|
|
39
|
+
|
|
40
|
+
[
|
|
41
|
+
/^absolute-center$/,
|
|
42
|
+
([, c], { theme }) =>
|
|
43
|
+
`absolute top-2/4 left-2/4 -translate-x-1/2 -translate-y-1/2`
|
|
44
|
+
],
|
|
45
|
+
|
|
46
|
+
[
|
|
47
|
+
/^absolute-bottom$/,
|
|
48
|
+
([, c], { theme }) => `absolute right-0 bottom-0 left-0`
|
|
49
|
+
],
|
|
50
|
+
|
|
51
|
+
[/^absolute-left$/, ([, c], { theme }) => `absolute top-0 bottom-0 left-0`],
|
|
52
|
+
|
|
53
|
+
[/^absolute-right$/, ([, c], { theme }) => `absolute top-0 right-0 bottom-0`],
|
|
54
|
+
|
|
55
|
+
[/^absolute-top$/, ([, c], { theme }) => `absolute top-0 left-0 right-0`],
|
|
56
|
+
|
|
57
|
+
[/^absolute-top-left$/, ([, c], { theme }) => `absolute top-0 left-0`],
|
|
58
|
+
|
|
59
|
+
[/^absolute-top-right$/, ([, c], { theme }) => `absolute top-0 right-0`],
|
|
60
|
+
|
|
61
|
+
[/^absolute-bottom-left$/, ([, c], { theme }) => `absolute bottom-0 left-0`],
|
|
62
|
+
|
|
63
|
+
[
|
|
64
|
+
/^absolute-bottom-right$/,
|
|
65
|
+
([, c], { theme }) => `absolute bottom-0 right-0`
|
|
66
|
+
],
|
|
67
|
+
|
|
68
|
+
[/^vertical-top$/, ([, c], { theme }) => `!align-top`],
|
|
69
|
+
|
|
70
|
+
[/^vertical-middle$/, ([, c], { theme }) => `!align-middle`],
|
|
71
|
+
|
|
72
|
+
[/^vertical-bottom$/, ([, c], { theme }) => `!align-bottom`],
|
|
73
|
+
|
|
74
|
+
[/^on-left$/, ([, c], { theme }) => `mr-[12px]`],
|
|
75
|
+
|
|
76
|
+
[/^on-right$/, ([, c], { theme }) => `ml-[12px]`],
|
|
77
|
+
|
|
78
|
+
[/^q-position-engine$/, ([, c], { theme }) => `!mt-0 !ml-0`]
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
export { shortcuts }
|