vitrify 0.17.10 → 0.17.12

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.
Files changed (65) hide show
  1. package/dist/plugins/quasar/unocss/components/QAjaxBar.unocss.js +1 -1
  2. package/dist/plugins/quasar/unocss/components/QBanner.unocss.js +9 -12
  3. package/dist/plugins/quasar/unocss/components/QBar.unocss.js +2 -2
  4. package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +5 -3
  5. package/dist/plugins/quasar/unocss/components/QCard.unocss.js +12 -4
  6. package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +7 -2
  7. package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +18 -6
  8. package/dist/plugins/quasar/unocss/components/QDate.unocss.js +5 -3
  9. package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +6 -4
  10. package/dist/plugins/quasar/unocss/components/QFab.unocss.js +6 -5
  11. package/dist/plugins/quasar/unocss/components/QField.unocss.js +196 -35
  12. package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +1 -1
  13. package/dist/plugins/quasar/unocss/components/QItem.unocss.js +3 -3
  14. package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +1 -1
  15. package/dist/plugins/quasar/unocss/components/QPagination.unocss.js +1 -1
  16. package/dist/plugins/quasar/unocss/components/QPullToRefresh.unocss.js +1 -1
  17. package/dist/plugins/quasar/unocss/components/QScrollarea.unocss.js +4 -1
  18. package/dist/plugins/quasar/unocss/components/QStepper.unocss.js +1 -1
  19. package/dist/plugins/quasar/unocss/components/QTabPanel.unocss.js +1 -1
  20. package/dist/plugins/quasar/unocss/components/QTable.unocss.js +3 -3
  21. package/dist/plugins/quasar/unocss/components/QToggle.unocss.js +2 -2
  22. package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +1 -1
  23. package/dist/plugins/quasar/unocss/core/colors.unocss.js +1 -1
  24. package/dist/plugins/quasar/unocss/core/flex.unocss.js +23 -14
  25. package/dist/plugins/quasar/unocss/core/position.unocss.js +2 -1
  26. package/dist/plugins/quasar/unocss/core/size.unocss.js +96 -84
  27. package/dist/plugins/quasar/unocss/directives/QRipple.unocss.js +1 -1
  28. package/dist/plugins/quasar/unocss/index.js +107 -67
  29. package/dist/plugins/quasar/unocss/plugins/QLoading.unocss.js +1 -1
  30. package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +20 -20
  31. package/dist/plugins/quasar/unocss/theme.js +9 -1
  32. package/dist/types/plugins/quasar/unocss/index.d.ts +2 -1
  33. package/dist/types/plugins/quasar/unocss/theme.d.ts +9 -1
  34. package/package.json +1 -1
  35. package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +1 -1
  36. package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +13 -12
  37. package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +2 -2
  38. package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +5 -3
  39. package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +12 -4
  40. package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +7 -2
  41. package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +19 -6
  42. package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +5 -3
  43. package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +8 -4
  44. package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +6 -5
  45. package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +196 -37
  46. package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +1 -1
  47. package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +3 -3
  48. package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +1 -1
  49. package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +1 -1
  50. package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +1 -1
  51. package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +4 -1
  52. package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +1 -1
  53. package/src/node/plugins/quasar/unocss/components/QTabPanel.unocss.ts +1 -1
  54. package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +3 -3
  55. package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +2 -2
  56. package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +1 -1
  57. package/src/node/plugins/quasar/unocss/core/colors.unocss.ts +1 -1
  58. package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +39 -17
  59. package/src/node/plugins/quasar/unocss/core/position.unocss.ts +3 -1
  60. package/src/node/plugins/quasar/unocss/core/size.unocss.ts +102 -84
  61. package/src/node/plugins/quasar/unocss/directives/QRipple.unocss.ts +1 -1
  62. package/src/node/plugins/quasar/unocss/index.ts +257 -196
  63. package/src/node/plugins/quasar/unocss/plugins/QLoading.unocss.ts +1 -1
  64. package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +38 -20
  65. package/src/node/plugins/quasar/unocss/theme.ts +18 -2
@@ -2,6 +2,7 @@
2
2
  import {
3
3
  definePreset,
4
4
  type Preflight,
5
+ type Preset,
5
6
  presetIcons,
6
7
  type Rule,
7
8
  transformerVariantGroup,
@@ -177,7 +178,11 @@ import {
177
178
  import { shortcuts as QHeaderShortcuts } from './components/QHeader.unocss.js'
178
179
  import { shortcuts as QFooterShortcuts } from './components/QFooter.unocss.js'
179
180
  import { shortcuts as QDrawerShortcuts } from './components/QDrawer.unocss.js'
180
- import { type QuasarIconSet, type QuasarPlugins } from 'quasar'
181
+ import {
182
+ type QuasarComponents,
183
+ type QuasarIconSet,
184
+ type QuasarPlugins
185
+ } from 'quasar'
181
186
 
182
187
  export interface QuasarPresetOptions {
183
188
  plugins?: (keyof QuasarPlugins)[]
@@ -197,6 +202,11 @@ const toKebabCase = (str: string) =>
197
202
  ?.map((x) => x.toLowerCase())
198
203
  .join('-') ?? ''
199
204
 
205
+ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
206
+ {
207
+ QSelect: ['q-list', 'q-item', 'q-virtual-scroll', 'q-menu']
208
+ }
209
+
200
210
  const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
201
211
  BottomSheet: [
202
212
  'q-bottom-sheet',
@@ -377,6 +387,9 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
377
387
  }
378
388
 
379
389
  const baseSafelist = [
390
+ 'relative-position',
391
+ 'q-panel-parent',
392
+ 'inline',
380
393
  'bg-primary',
381
394
  'col',
382
395
  'row',
@@ -1588,14 +1601,18 @@ const generateSafelist = ({
1588
1601
  }
1589
1602
 
1590
1603
  export default definePreset((options: QuasarPresetOptions = {}) => {
1591
- return {
1592
- name: 'quasar',
1593
- presets: [presetUno(), animatedUno(), presetIcons({})],
1594
- safelist: generateSafelist(options),
1595
- preflights: (
1596
- [
1597
- {
1598
- getCSS: ({ theme }) => `/* beasties:include start */
1604
+ return [
1605
+ presetUno(),
1606
+ animatedUno(),
1607
+ presetIcons({}),
1608
+ {
1609
+ name: 'quasar',
1610
+ presets: [presetUno(), animatedUno(), presetIcons({})],
1611
+ safelist: generateSafelist(options),
1612
+ preflights: (
1613
+ [
1614
+ {
1615
+ getCSS: ({ theme }) => `/* beasties:include start */
1599
1616
  /* Document
1600
1617
  * ========================================================================== */
1601
1618
 
@@ -1853,198 +1870,242 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
1853
1870
  :where(summary) {
1854
1871
  display: list-item;
1855
1872
  }
1873
+
1874
+ /* * Change font properties to \`inherit\` in all browsers (opinionated).
1875
+ * */
1876
+ button,
1877
+ input,
1878
+ optgroup,
1879
+ select,
1880
+ textarea {
1881
+ font: inherit;
1882
+ font-family: inherit;
1883
+ margin: 0;
1884
+ }
1885
+
1856
1886
  /* beasties:include end */`
1857
- }
1858
- ] as Preflight<QuasarTheme>[]
1859
- ).concat(
1860
- QBreadcrumbsPreflights,
1861
- QCheckboxPreflights,
1862
- QChipPreflights,
1863
- QCircularProgressPreflights,
1864
- QDialogPreflights,
1865
- QFieldPreflights,
1866
- QLayoutPreflights,
1867
- QLinearProgressPreflights,
1868
- QRadioPreflights,
1869
- QSelectPreflights,
1870
- QSpinnerPreflights,
1871
- QSkeletonPreflights,
1872
- QTablePreflights,
1873
- QTogglePreflights,
1874
- QTreePreflights,
1875
- ColorPreflights,
1876
- DarkPreflights,
1877
- HelperPreflights,
1878
- MousePreflights,
1879
- TypographyPreflights,
1880
- VisibilityPreflights,
1881
- TransitionPreflights,
1882
- SizePreflights
1883
- ),
1884
- rules: ([] as Rule<QuasarTheme>[]).concat(
1885
- MouseRules,
1886
- HelperRules,
1887
- ElevationRules,
1888
- VisibilityRules
1889
- ),
1890
- shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
1891
- QIconShortcuts,
1892
- QAjaxBarShortcuts,
1893
- QAvatarShortcuts,
1894
- QBadgeShortcuts,
1895
- QBreadcrumbsShortcuts,
1896
- QBannerShortcuts,
1897
- QBarShortcuts,
1898
- QBtnShortcuts,
1899
- QBtnDropdownShortcuts,
1900
- QBtnGroupShortcuts,
1901
- QBtnToggleShortcuts,
1902
- QCardShortcuts,
1903
- QCarouselShortcuts,
1904
- QChatMessageShortcuts,
1905
- QCheckboxShortcuts,
1906
- QChipShortcuts,
1907
- QCircularProgressShortcuts,
1908
- QColorPickerShortcuts,
1909
- QDateShortcuts,
1910
- QDialogShortcuts,
1911
- QEditorShortcuts,
1912
- QExpansionItemShortcuts,
1913
- QFabShortcuts,
1914
- QFieldShortcuts,
1915
- QFileShortcuts,
1916
- QFormShortcuts,
1917
- QImgShortcuts,
1918
- QInnerLoadingShortcuts,
1919
- QInputShortcuts,
1920
- QIntersectionShortcuts,
1921
- QItemShortcuts,
1922
- QKnobShortcuts,
1923
- QLayoutShortcuts,
1924
- QLinearProgressShortcuts,
1925
- QMenuShortcuts,
1926
- QOptionGroupShortcuts,
1927
- QPageShortcuts,
1928
- QPageStickyShortcuts,
1929
- QPaginationShortcuts,
1930
- QParallaxShortcuts,
1931
- QPopupEditShortcuts,
1932
- QPullToRefreshShortcuts,
1933
- QRadioShortcuts,
1934
- QRatingShortcuts,
1935
- QResponsiveShortcuts,
1936
- QScrollareaShortcuts,
1937
- QSelectShortcuts,
1938
- QSeparatorShortcuts,
1939
- QSkeletonShortcuts,
1940
- QSlideItemShortcuts,
1941
- QSliderShortcuts,
1942
- QSpaceShortcuts,
1943
- QSpinnerShortcuts,
1944
- QSplitterShortcuts,
1945
- QStepperShortcuts,
1946
- QTabPanelShortcuts,
1947
- QTableShortcuts,
1948
- QTabsShortcuts,
1949
- QTimeShortcuts,
1950
- QTimelineShortcuts,
1951
- QToggleShortcuts,
1952
- QToolbarShortcuts,
1953
- QTooltipShortcuts,
1954
- QTreeShortcuts,
1955
- QUploaderShortcuts,
1956
- QVideoShortcuts,
1957
- QVirtualScrollShortcuts,
1958
- PanelShortcuts,
1959
-
1960
- QMorphShortcuts,
1961
- QRippleShortcuts,
1962
-
1963
- QBottomSheetShortcuts,
1964
- QDialogPluginShortcuts,
1965
- QLoadingShortcuts,
1966
- QNotifyShortcuts,
1967
- DarkShortcuts,
1968
- FlexShortcuts,
1969
- HelperShortcuts,
1970
- MouseShortcuts,
1971
- OrientationShortcuts,
1972
- PositionShortcuts,
1973
- SizeShortcuts,
1974
- TouchShortcuts,
1975
- TransitionsShortcuts,
1976
- TypographyShortcuts,
1977
- VisibilityShortcuts,
1978
- QHeaderShortcuts,
1979
- QFooterShortcuts,
1980
- QDrawerShortcuts,
1981
- ElevationShortcuts
1982
- ),
1983
- theme: defaultTheme,
1984
- variants: [
1985
- // ...
1986
- ],
1987
- extractors: [
1988
- {
1989
- name: 'quasar-extractor',
1990
- order: 0,
1991
- extract({ code }) {
1992
- const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
1993
- const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
1994
- const transitionMatch = code.matchAll(
1995
- /(transition|transition-show|transition-hide)="(\S*)"/g
1996
- )
1997
- const colorMatch = code.matchAll(/color="(\S*)"/g)
1998
-
1999
- const matches: string[] = []
2000
- for (const match of kebabMatch) matches.push(match[0])
2001
- for (const match of pascalMatch) {
2002
- matches.push(toKebabCase(match[0]))
2003
1887
  }
2004
- const transitionClasses = []
2005
- for (const match of transitionMatch) {
2006
- transitionClasses.push(
2007
- ...[
2008
- 'enter-from',
2009
- 'enter-active',
2010
- 'enter-to',
2011
- 'leave-from',
2012
- 'leave-active',
2013
- 'leave-to'
2014
- ].map((v) => `q-transition--${match[2]}-${v}`)
1888
+ ] as Preflight<QuasarTheme>[]
1889
+ ).concat(
1890
+ QBreadcrumbsPreflights,
1891
+ QCheckboxPreflights,
1892
+ QChipPreflights,
1893
+ QCircularProgressPreflights,
1894
+ QDialogPreflights,
1895
+ QFieldPreflights,
1896
+ QLayoutPreflights,
1897
+ QLinearProgressPreflights,
1898
+ QRadioPreflights,
1899
+ QSelectPreflights,
1900
+ QSpinnerPreflights,
1901
+ QSkeletonPreflights,
1902
+ QTablePreflights,
1903
+ QTogglePreflights,
1904
+ QTreePreflights,
1905
+ ColorPreflights,
1906
+ DarkPreflights,
1907
+ HelperPreflights,
1908
+ MousePreflights,
1909
+ TypographyPreflights,
1910
+ VisibilityPreflights,
1911
+ TransitionPreflights,
1912
+ SizePreflights
1913
+ ),
1914
+ rules: ([] as Rule<QuasarTheme>[]).concat(
1915
+ MouseRules,
1916
+ HelperRules,
1917
+ ElevationRules,
1918
+ VisibilityRules
1919
+ ),
1920
+ shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
1921
+ QIconShortcuts,
1922
+ QAjaxBarShortcuts,
1923
+ QAvatarShortcuts,
1924
+ QBadgeShortcuts,
1925
+ QBreadcrumbsShortcuts,
1926
+ QBannerShortcuts,
1927
+ QBarShortcuts,
1928
+ QBtnShortcuts,
1929
+ QBtnDropdownShortcuts,
1930
+ QBtnGroupShortcuts,
1931
+ QBtnToggleShortcuts,
1932
+ QCardShortcuts,
1933
+ QCarouselShortcuts,
1934
+ QChatMessageShortcuts,
1935
+ QCheckboxShortcuts,
1936
+ QChipShortcuts,
1937
+ QCircularProgressShortcuts,
1938
+ QColorPickerShortcuts,
1939
+ QDateShortcuts,
1940
+ QDialogShortcuts,
1941
+ QEditorShortcuts,
1942
+ QExpansionItemShortcuts,
1943
+ QFabShortcuts,
1944
+ QFieldShortcuts,
1945
+ QFileShortcuts,
1946
+ QFormShortcuts,
1947
+ QImgShortcuts,
1948
+ QInnerLoadingShortcuts,
1949
+ QInputShortcuts,
1950
+ QIntersectionShortcuts,
1951
+ QItemShortcuts,
1952
+ QKnobShortcuts,
1953
+ QLayoutShortcuts,
1954
+ QLinearProgressShortcuts,
1955
+ QMenuShortcuts,
1956
+ QOptionGroupShortcuts,
1957
+ QPageShortcuts,
1958
+ QPageStickyShortcuts,
1959
+ QPaginationShortcuts,
1960
+ QParallaxShortcuts,
1961
+ QPopupEditShortcuts,
1962
+ QPullToRefreshShortcuts,
1963
+ QRadioShortcuts,
1964
+ QRatingShortcuts,
1965
+ QResponsiveShortcuts,
1966
+ QScrollareaShortcuts,
1967
+ QSelectShortcuts,
1968
+ QSeparatorShortcuts,
1969
+ QSkeletonShortcuts,
1970
+ QSlideItemShortcuts,
1971
+ QSliderShortcuts,
1972
+ QSpaceShortcuts,
1973
+ QSpinnerShortcuts,
1974
+ QSplitterShortcuts,
1975
+ QStepperShortcuts,
1976
+ QTabPanelShortcuts,
1977
+ QTableShortcuts,
1978
+ QTabsShortcuts,
1979
+ QTimeShortcuts,
1980
+ QTimelineShortcuts,
1981
+ QToggleShortcuts,
1982
+ QToolbarShortcuts,
1983
+ QTooltipShortcuts,
1984
+ QTreeShortcuts,
1985
+ QUploaderShortcuts,
1986
+ QVideoShortcuts,
1987
+ QVirtualScrollShortcuts,
1988
+ PanelShortcuts,
1989
+
1990
+ QMorphShortcuts,
1991
+ QRippleShortcuts,
1992
+
1993
+ QBottomSheetShortcuts,
1994
+ QDialogPluginShortcuts,
1995
+ QLoadingShortcuts,
1996
+ QNotifyShortcuts,
1997
+ DarkShortcuts,
1998
+ FlexShortcuts,
1999
+ HelperShortcuts,
2000
+ MouseShortcuts,
2001
+ OrientationShortcuts,
2002
+ PositionShortcuts,
2003
+ SizeShortcuts,
2004
+ TouchShortcuts,
2005
+ TransitionsShortcuts,
2006
+ TypographyShortcuts,
2007
+ VisibilityShortcuts,
2008
+ QHeaderShortcuts,
2009
+ QFooterShortcuts,
2010
+ QDrawerShortcuts,
2011
+ ElevationShortcuts
2012
+ ),
2013
+ layers: {
2014
+ dismiss: -1,
2015
+ default: 1
2016
+ },
2017
+ theme: defaultTheme,
2018
+ variants: [
2019
+ // ...
2020
+ ],
2021
+ extractors: [
2022
+ {
2023
+ name: 'quasar-extractor',
2024
+ order: 0,
2025
+ extract({ code }) {
2026
+ const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
2027
+ const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
2028
+ const transitionMatch = code.matchAll(
2029
+ /(transition|transition-show|transition-hide|transition-prev|transition-next)="(\S*)"/g
2015
2030
  )
2031
+ const colorMatch = code.matchAll(/color="(\S*)"/g)
2032
+
2033
+ const pascalComponentsMatch: string[] = []
2034
+ const matches: string[] = []
2035
+ for (const match of kebabMatch) matches.push(match[0])
2036
+ for (const match of pascalMatch) {
2037
+ pascalComponentsMatch.push(match[0])
2038
+ matches.push(toKebabCase(match[0]))
2039
+ }
2040
+ const transitionClasses = []
2041
+ for (const match of transitionMatch) {
2042
+ transitionClasses.push(
2043
+ ...[
2044
+ 'enter-from',
2045
+ 'enter-active',
2046
+ 'enter-to',
2047
+ 'leave-from',
2048
+ 'leave-active',
2049
+ 'leave-to'
2050
+ ].map((v) => `q-transition--${match[2]}-${v}`)
2051
+ )
2052
+ }
2053
+ const colorClasses = []
2054
+ for (const match of colorMatch) {
2055
+ colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
2056
+ }
2057
+
2058
+ const classes = qClasses.filter((c) =>
2059
+ matches.some((component) => {
2060
+ component = component.replaceAll('q-chat-message', 'q-message')
2061
+ component = component.replaceAll(
2062
+ 'q-scroll-area',
2063
+ 'q-scrollarea'
2064
+ )
2065
+ return c.includes(component)
2066
+ })
2067
+ )
2068
+ const componentClasses = pascalComponentsMatch.reduce(
2069
+ (acc, component) => {
2070
+ if (component in componentsSafelistMap) {
2071
+ acc.push(
2072
+ ...(componentsSafelistMap as Record<string, string>)[
2073
+ component
2074
+ ]
2075
+ )
2076
+ }
2077
+ return acc
2078
+ },
2079
+ [] as string[]
2080
+ )
2081
+ classes.push(
2082
+ ...transitionClasses,
2083
+ ...colorClasses,
2084
+ ...componentClasses
2085
+ )
2086
+ return classes
2016
2087
  }
2017
- const colorClasses = []
2018
- for (const match of colorMatch) {
2019
- colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
2020
- }
2021
-
2022
- const classes = qClasses.filter((c) =>
2023
- matches.some((component) => c.includes(component))
2024
- )
2025
- classes.push(...transitionClasses, ...colorClasses)
2026
- return classes
2027
2088
  }
2028
- }
2029
- ],
2030
- transformers: [
2031
- transformerVariantGroup()
2032
- // {
2033
- // name: 'find-classes-in-quasar-src',
2034
- // enforce: 'pre', // enforce before other transformers
2035
- // idFilter(id) {
2036
- // return id.match(/quasar\/src\/.*\.js/)
2037
- // },
2038
- // async transform(code, id, { uno }) {
2039
- // for (const c of baseSafelist) {
2040
- // if (code.toString().includes(c)) console.log(c)
2041
- // }
2042
- // return code
2043
- // // code is a MagicString instance
2044
- // }
2045
- // }
2046
- ]
2047
- }
2089
+ ],
2090
+ transformers: [
2091
+ transformerVariantGroup()
2092
+ // {
2093
+ // name: 'find-classes-in-quasar-src',
2094
+ // enforce: 'pre', // enforce before other transformers
2095
+ // idFilter(id) {
2096
+ // return id.match(/quasar\/src\/.*\.js/)
2097
+ // },
2098
+ // async transform(code, id, { uno }) {
2099
+ // for (const c of baseSafelist) {
2100
+ // if (code.toString().includes(c)) console.log(c)
2101
+ // }
2102
+ // return code
2103
+ // // code is a MagicString instance
2104
+ // }
2105
+ // }
2106
+ ]
2107
+ } as Preset
2108
+ ]
2048
2109
  })
2049
2110
 
2050
2111
  export const defaultSplitRE = /[\\:]?[\s'"`;{}]+/g
@@ -7,7 +7,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  [
8
8
  /^q-loading__backdrop$/,
9
9
  ([, c], { theme }) =>
10
- `fixed top-0 right-0 bottom-0 left-0 opacity-50 bg-[#000] [transition:background-color_0.28s]`
10
+ `fixed top-0 right-0 bottom-0 left-0 opacity-50 bg-[#000] [transition:background-color_0.28s] z--1`
11
11
  ],
12
12
 
13
13
  [
@@ -43,7 +43,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
43
43
  [
44
44
  /^q-notifications__list$/,
45
45
  ([, c], { theme }) =>
46
- `pointer-events-none left-0 right-0 mb-[10px] relative z-9500`
46
+ `pointer-events-none left-0 right-0 mb-[10px] relative z-${theme.quasar.z['notify']}`
47
47
  ],
48
48
 
49
49
  [/^q-notifications__list--center$/, ([, c], { theme }) => `top-0 bottom-0`],
@@ -56,7 +56,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
56
56
  /^q-notification$/,
57
57
  ([, c], { theme }) =>
58
58
  `[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] inline-flex mt-[10px] mx-[10px] mb-[0] [transition:transform_1s,_opacity_1s] flex-shrink-0 max-w-[95vw] bg-[#323232] text-[#fff] text-[14px]
59
- sm:max-w-65vw z-9500 pointer-events-all`
59
+ sm:max-w-65vw z-${theme.quasar.z['notify']} pointer-events-all`
60
60
  ],
61
61
 
62
62
  [
@@ -129,92 +129,110 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
129
129
 
130
130
  [
131
131
  /^q-notification--top-left-enter-from$/,
132
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
132
+ ([, c], { theme }) =>
133
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
133
134
  ],
134
135
 
135
136
  [
136
137
  /^q-notification--top-left-leave-to$/,
137
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
138
+ ([, c], { theme }) =>
139
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
138
140
  ],
139
141
 
140
142
  [
141
143
  /^q-notification--top-enter-from$/,
142
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
144
+ ([, c], { theme }) =>
145
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
143
146
  ],
144
147
 
145
148
  [
146
149
  /^q-notification--top-leave-to$/,
147
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
150
+ ([, c], { theme }) =>
151
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
148
152
  ],
149
153
 
150
154
  [
151
155
  /^q-notification--top-right-enter-from$/,
152
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
156
+ ([, c], { theme }) =>
157
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
153
158
  ],
154
159
 
155
160
  [
156
161
  /^q-notification--top-right-leave-to$/,
157
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
162
+ ([, c], { theme }) =>
163
+ `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
158
164
  ],
159
165
 
160
166
  [
161
167
  /^q-notification--left-enter-from$/,
162
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
168
+ ([, c], { theme }) =>
169
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
163
170
  ],
164
171
 
165
172
  [
166
173
  /^q-notification--left-leave-to$/,
167
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
174
+ ([, c], { theme }) =>
175
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
168
176
  ],
169
177
 
170
178
  [
171
179
  /^q-notification--center-enter-from$/,
172
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
180
+ ([, c], { theme }) =>
181
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
173
182
  ],
174
183
 
175
184
  [
176
185
  /^q-notification--center-leave-to$/,
177
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
186
+ ([, c], { theme }) =>
187
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
178
188
  ],
179
189
 
180
190
  [
181
191
  /^q-notification--right-enter-from$/,
182
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
192
+ ([, c], { theme }) =>
193
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
183
194
  ],
184
195
 
185
196
  [
186
197
  /^q-notification--right-leave-to$/,
187
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
198
+ ([, c], { theme }) =>
199
+ `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
188
200
  ],
189
201
 
190
202
  [
191
203
  /^q-notification--bottom-left-enter-from$/,
192
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
204
+ ([, c], { theme }) =>
205
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
193
206
  ],
194
207
 
195
208
  [
196
209
  /^q-notification--bottom-left-leave-to$/,
197
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
210
+ ([, c], { theme }) =>
211
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
198
212
  ],
199
213
 
200
214
  [
201
215
  /^q-notification--bottom-enter-from$/,
202
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
216
+ ([, c], { theme }) =>
217
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
203
218
  ],
204
219
 
205
220
  [
206
221
  /^q-notification--bottom-leave-to$/,
207
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
222
+ ([, c], { theme }) =>
223
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
208
224
  ],
209
225
 
210
226
  [
211
227
  /^q-notification--bottom-right-enter-from$/,
212
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
228
+ ([, c], { theme }) =>
229
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
213
230
  ],
214
231
 
215
232
  [
216
233
  /^q-notification--bottom-right-leave-to$/,
217
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
234
+ ([, c], { theme }) =>
235
+ `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
218
236
  ],
219
237
 
220
238
  [
@@ -17,7 +17,7 @@ export interface QuasarTheme {
17
17
  warning: string
18
18
 
19
19
  'dark-page': string
20
- 'q-dark': string
20
+ dark: string
21
21
 
22
22
  red: string
23
23
  'red-1': string
@@ -1117,6 +1117,14 @@ export interface QuasarTheme {
1117
1117
  'q-notification--bottom-leave-active'?: string
1118
1118
  'q-notification--bottom-right-leave-active'?: string
1119
1119
  }
1120
+ spaces: {
1121
+ none: number
1122
+ xs: number
1123
+ sm: number
1124
+ md: number
1125
+ lg: number
1126
+ xl: number
1127
+ }
1120
1128
  z: {
1121
1129
  fab: number
1122
1130
  side: number
@@ -1155,7 +1163,7 @@ const defaultTheme: QuasarTheme = {
1155
1163
  warning: '#F2C037',
1156
1164
 
1157
1165
  'dark-page': '#121212',
1158
- 'q-dark': '#1d1d1d',
1166
+ dark: '#1d1d1d',
1159
1167
 
1160
1168
  red: '#f44336',
1161
1169
  'red-1': '#ffebee',
@@ -1444,6 +1452,14 @@ const defaultTheme: QuasarTheme = {
1444
1452
  'blue-grey-14': '#455a64'
1445
1453
  },
1446
1454
  quasar: {
1455
+ spaces: {
1456
+ none: 0,
1457
+ xs: 1,
1458
+ sm: 2,
1459
+ md: 4,
1460
+ lg: 6,
1461
+ xl: 12
1462
+ },
1447
1463
  z: {
1448
1464
  fab: 990,
1449
1465
  side: 1000,