vitrify 0.17.9 → 0.17.11

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 (41) hide show
  1. package/dist/plugins/quasar/unocss/components/QAjaxBar.unocss.js +1 -1
  2. package/dist/plugins/quasar/unocss/components/QBar.unocss.js +2 -2
  3. package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +1 -1
  4. package/dist/plugins/quasar/unocss/components/QCard.unocss.js +12 -4
  5. package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +7 -2
  6. package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +18 -6
  7. package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +6 -4
  8. package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +1 -1
  9. package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +1 -1
  10. package/dist/plugins/quasar/unocss/components/QTabPanel.unocss.js +1 -1
  11. package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +1 -1
  12. package/dist/plugins/quasar/unocss/core/colors.unocss.js +1 -1
  13. package/dist/plugins/quasar/unocss/core/flex.unocss.js +13 -6
  14. package/dist/plugins/quasar/unocss/core/position.unocss.js +2 -1
  15. package/dist/plugins/quasar/unocss/directives/QRipple.unocss.js +1 -1
  16. package/dist/plugins/quasar/unocss/index.js +151 -65
  17. package/dist/plugins/quasar/unocss/plugins/QLoading.unocss.js +1 -1
  18. package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +20 -20
  19. package/dist/plugins/quasar/unocss/theme.js +1 -1
  20. package/dist/types/plugins/quasar/unocss/index.d.ts +2 -1
  21. package/dist/types/plugins/quasar/unocss/theme.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +1 -1
  24. package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +2 -2
  25. package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +1 -1
  26. package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +12 -4
  27. package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +7 -2
  28. package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +19 -6
  29. package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +8 -4
  30. package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +1 -1
  31. package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +1 -1
  32. package/src/node/plugins/quasar/unocss/components/QTabPanel.unocss.ts +1 -1
  33. package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +1 -1
  34. package/src/node/plugins/quasar/unocss/core/colors.unocss.ts +1 -1
  35. package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +15 -7
  36. package/src/node/plugins/quasar/unocss/core/position.unocss.ts +3 -1
  37. package/src/node/plugins/quasar/unocss/directives/QRipple.unocss.ts +1 -1
  38. package/src/node/plugins/quasar/unocss/index.ts +284 -191
  39. package/src/node/plugins/quasar/unocss/plugins/QLoading.unocss.ts +1 -1
  40. package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +38 -20
  41. package/src/node/plugins/quasar/unocss/theme.ts +2 -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,
@@ -150,11 +151,15 @@ import {
150
151
  } from './core/helpers.unocss.js'
151
152
  import {
152
153
  preflights as MousePreflights,
153
- shortcuts as MouseShortcuts
154
+ shortcuts as MouseShortcuts,
155
+ rules as MouseRules
154
156
  } from './core/mouse.unocss.js'
155
157
  import { shortcuts as OrientationShortcuts } from './core/orientation.unocss.js'
156
158
  import { shortcuts as PositionShortcuts } from './core/position.unocss.js'
157
- import { shortcuts as SizeShortcuts } from './core/size.unocss.js'
159
+ import {
160
+ preflights as SizePreflights,
161
+ shortcuts as SizeShortcuts
162
+ } from './core/size.unocss.js'
158
163
  import { shortcuts as TouchShortcuts } from './core/touch.unocss.js'
159
164
  import {
160
165
  preflights as TransitionPreflights,
@@ -319,11 +324,67 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
319
324
  'q-btn__progress-indicator',
320
325
  'q-btn__progress--dark',
321
326
  'q-spinner',
322
- 'q-spinner-mat'
327
+ 'q-spinner-mat',
328
+ 'q-notifications__list',
329
+ 'q-notifications__list--center',
330
+ 'q-notifications__list--top',
331
+ 'q-notifications__list--bottom',
332
+ 'q-notification',
333
+ 'q-notification__icon',
334
+ 'q-notification__icon--additional',
335
+ 'q-notification__avatar',
336
+ 'q-notification__avatar--additional',
337
+ 'q-notification__spinner',
338
+ 'q-notification__spinner--additional',
339
+ 'q-notification__message',
340
+ 'q-notification__caption',
341
+ 'q-notification__actions',
342
+ 'q-notification__badge',
343
+ 'q-notification__badge--top-left',
344
+ 'q-notification__badge--top-right',
345
+ 'q-notification__badge--bottom-left',
346
+ 'q-notification__badge--bottom-right',
347
+ 'q-notification__progress',
348
+ 'q-notification--standard',
349
+ 'q-notification--multi-line',
350
+ 'q-notification--top-left-enter-from',
351
+ 'q-notification--top-left-leave-to',
352
+ 'q-notification--top-enter-from',
353
+ 'q-notification--top-leave-to',
354
+ 'q-notification--top-right-enter-from',
355
+ 'q-notification--top-right-leave-to',
356
+ 'q-notification--left-enter-from',
357
+ 'q-notification--left-leave-to',
358
+ 'q-notification--center-enter-from',
359
+ 'q-notification--center-leave-to',
360
+ 'q-notification--right-enter-from',
361
+ 'q-notification--right-leave-to',
362
+ 'q-notification--bottom-left-enter-from',
363
+ 'q-notification--bottom-left-leave-to',
364
+ 'q-notification--bottom-enter-from',
365
+ 'q-notification--bottom-leave-to',
366
+ 'q-notification--bottom-right-enter-from',
367
+ 'q-notification--bottom-right-leave-to',
368
+ 'q-notification--top-left-leave-active',
369
+ 'q-notification--top-leave-active',
370
+ 'q-notification--top-right-leave-active',
371
+ 'q-notification--left-leave-active',
372
+ 'q-notification--center-leave-active',
373
+ 'q-notification--right-leave-active',
374
+ 'q-notification--bottom-left-leave-active',
375
+ 'q-notification--bottom-leave-active',
376
+ 'q-notification--bottom-right-leave-active'
323
377
  ]
324
378
  }
325
379
 
326
380
  const baseSafelist = [
381
+ 'relative-position',
382
+ 'q-panel-parent',
383
+ 'inline',
384
+ 'bg-primary',
385
+ 'col',
386
+ 'row',
387
+ 'text-primary',
327
388
  'absolute',
328
389
  'absolute-bottom',
329
390
  'absolute-full',
@@ -1531,14 +1592,18 @@ const generateSafelist = ({
1531
1592
  }
1532
1593
 
1533
1594
  export default definePreset((options: QuasarPresetOptions = {}) => {
1534
- return {
1535
- name: 'quasar',
1536
- presets: [presetUno(), animatedUno(), presetIcons({})],
1537
- safelist: generateSafelist(options),
1538
- preflights: (
1539
- [
1540
- {
1541
- getCSS: ({ theme }) => `/* beasties:include start */
1595
+ return [
1596
+ presetUno(),
1597
+ animatedUno(),
1598
+ presetIcons({}),
1599
+ {
1600
+ name: 'quasar',
1601
+ presets: [presetUno(), animatedUno(), presetIcons({})],
1602
+ safelist: generateSafelist(options),
1603
+ preflights: (
1604
+ [
1605
+ {
1606
+ getCSS: ({ theme }) => `/* beasties:include start */
1542
1607
  /* Document
1543
1608
  * ========================================================================== */
1544
1609
 
@@ -1796,191 +1861,219 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
1796
1861
  :where(summary) {
1797
1862
  display: list-item;
1798
1863
  }
1864
+
1865
+ /* * Change font properties to \`inherit\` in all browsers (opinionated).
1866
+ * */
1867
+ button,
1868
+ input,
1869
+ optgroup,
1870
+ select,
1871
+ textarea {
1872
+ font: inherit;
1873
+ font-family: inherit;
1874
+ margin: 0;
1875
+ }
1876
+
1799
1877
  /* beasties:include end */`
1800
- }
1801
- ] as Preflight<QuasarTheme>[]
1802
- ).concat(
1803
- QBreadcrumbsPreflights,
1804
- QCheckboxPreflights,
1805
- QChipPreflights,
1806
- QCircularProgressPreflights,
1807
- QDialogPreflights,
1808
- QFieldPreflights,
1809
- QLayoutPreflights,
1810
- QLinearProgressPreflights,
1811
- QRadioPreflights,
1812
- QSelectPreflights,
1813
- QSpinnerPreflights,
1814
- QSkeletonPreflights,
1815
- QTablePreflights,
1816
- QTogglePreflights,
1817
- QTreePreflights,
1818
- ColorPreflights,
1819
- DarkPreflights,
1820
- HelperPreflights,
1821
- MousePreflights,
1822
- TypographyPreflights,
1823
- VisibilityPreflights,
1824
- TransitionPreflights
1825
- ),
1826
- rules: ([] as Rule<QuasarTheme>[]).concat(
1827
- HelperRules,
1828
- ElevationRules,
1829
- VisibilityRules
1830
- ),
1831
- shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
1832
- QIconShortcuts,
1833
- QAjaxBarShortcuts,
1834
- QAvatarShortcuts,
1835
- QBadgeShortcuts,
1836
- QBreadcrumbsShortcuts,
1837
- QBannerShortcuts,
1838
- QBarShortcuts,
1839
- QBtnShortcuts,
1840
- QBtnDropdownShortcuts,
1841
- QBtnGroupShortcuts,
1842
- QBtnToggleShortcuts,
1843
- QCardShortcuts,
1844
- QCarouselShortcuts,
1845
- QChatMessageShortcuts,
1846
- QCheckboxShortcuts,
1847
- QChipShortcuts,
1848
- QCircularProgressShortcuts,
1849
- QColorPickerShortcuts,
1850
- QDateShortcuts,
1851
- QDialogShortcuts,
1852
- QEditorShortcuts,
1853
- QExpansionItemShortcuts,
1854
- QFabShortcuts,
1855
- QFieldShortcuts,
1856
- QFileShortcuts,
1857
- QFormShortcuts,
1858
- QImgShortcuts,
1859
- QInnerLoadingShortcuts,
1860
- QInputShortcuts,
1861
- QIntersectionShortcuts,
1862
- QItemShortcuts,
1863
- QKnobShortcuts,
1864
- QLayoutShortcuts,
1865
- QLinearProgressShortcuts,
1866
- QMenuShortcuts,
1867
- QOptionGroupShortcuts,
1868
- QPageShortcuts,
1869
- QPageStickyShortcuts,
1870
- QPaginationShortcuts,
1871
- QParallaxShortcuts,
1872
- QPopupEditShortcuts,
1873
- QPullToRefreshShortcuts,
1874
- QRadioShortcuts,
1875
- QRatingShortcuts,
1876
- QResponsiveShortcuts,
1877
- QScrollareaShortcuts,
1878
- QSelectShortcuts,
1879
- QSeparatorShortcuts,
1880
- QSkeletonShortcuts,
1881
- QSlideItemShortcuts,
1882
- QSliderShortcuts,
1883
- QSpaceShortcuts,
1884
- QSpinnerShortcuts,
1885
- QSplitterShortcuts,
1886
- QStepperShortcuts,
1887
- QTabPanelShortcuts,
1888
- QTableShortcuts,
1889
- QTabsShortcuts,
1890
- QTimeShortcuts,
1891
- QTimelineShortcuts,
1892
- QToggleShortcuts,
1893
- QToolbarShortcuts,
1894
- QTooltipShortcuts,
1895
- QTreeShortcuts,
1896
- QUploaderShortcuts,
1897
- QVideoShortcuts,
1898
- QVirtualScrollShortcuts,
1899
- PanelShortcuts,
1900
-
1901
- QMorphShortcuts,
1902
- QRippleShortcuts,
1903
-
1904
- QBottomSheetShortcuts,
1905
- QDialogPluginShortcuts,
1906
- QLoadingShortcuts,
1907
- QNotifyShortcuts,
1908
- DarkShortcuts,
1909
- FlexShortcuts,
1910
- HelperShortcuts,
1911
- MouseShortcuts,
1912
- OrientationShortcuts,
1913
- PositionShortcuts,
1914
- SizeShortcuts,
1915
- TouchShortcuts,
1916
- TransitionsShortcuts,
1917
- TypographyShortcuts,
1918
- VisibilityShortcuts,
1919
- QHeaderShortcuts,
1920
- QFooterShortcuts,
1921
- QDrawerShortcuts,
1922
- ElevationShortcuts
1923
- ),
1924
- theme: defaultTheme,
1925
- variants: [
1926
- // ...
1927
- ],
1928
- extractors: [
1929
- {
1930
- name: 'quasar-extractor',
1931
- order: 0,
1932
- extract({ code }) {
1933
- const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
1934
- const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
1935
- const transitionMatch = code.matchAll(
1936
- /(transition|transition-show|transition-hide)="(\S*)"/g
1937
- )
1938
-
1939
- const matches: string[] = []
1940
- for (const match of kebabMatch) matches.push(match[0])
1941
- for (const match of pascalMatch) {
1942
- matches.push(toKebabCase(match[0]))
1943
1878
  }
1944
- const transitionClasses = []
1945
- for (const match of transitionMatch) {
1946
- transitionClasses.push(
1947
- ...[
1948
- 'enter-from',
1949
- 'enter-active',
1950
- 'enter-to',
1951
- 'leave-from',
1952
- 'leave-active',
1953
- 'leave-to'
1954
- ].map((v) => `q-transition--${match[2]}-${v}`)
1879
+ ] as Preflight<QuasarTheme>[]
1880
+ ).concat(
1881
+ QBreadcrumbsPreflights,
1882
+ QCheckboxPreflights,
1883
+ QChipPreflights,
1884
+ QCircularProgressPreflights,
1885
+ QDialogPreflights,
1886
+ QFieldPreflights,
1887
+ QLayoutPreflights,
1888
+ QLinearProgressPreflights,
1889
+ QRadioPreflights,
1890
+ QSelectPreflights,
1891
+ QSpinnerPreflights,
1892
+ QSkeletonPreflights,
1893
+ QTablePreflights,
1894
+ QTogglePreflights,
1895
+ QTreePreflights,
1896
+ ColorPreflights,
1897
+ DarkPreflights,
1898
+ HelperPreflights,
1899
+ MousePreflights,
1900
+ TypographyPreflights,
1901
+ VisibilityPreflights,
1902
+ TransitionPreflights,
1903
+ SizePreflights
1904
+ ),
1905
+ rules: ([] as Rule<QuasarTheme>[]).concat(
1906
+ MouseRules,
1907
+ HelperRules,
1908
+ ElevationRules,
1909
+ VisibilityRules
1910
+ ),
1911
+ shortcuts: ([] as UserShortcuts<QuasarTheme>[]).concat(
1912
+ QIconShortcuts,
1913
+ QAjaxBarShortcuts,
1914
+ QAvatarShortcuts,
1915
+ QBadgeShortcuts,
1916
+ QBreadcrumbsShortcuts,
1917
+ QBannerShortcuts,
1918
+ QBarShortcuts,
1919
+ QBtnShortcuts,
1920
+ QBtnDropdownShortcuts,
1921
+ QBtnGroupShortcuts,
1922
+ QBtnToggleShortcuts,
1923
+ QCardShortcuts,
1924
+ QCarouselShortcuts,
1925
+ QChatMessageShortcuts,
1926
+ QCheckboxShortcuts,
1927
+ QChipShortcuts,
1928
+ QCircularProgressShortcuts,
1929
+ QColorPickerShortcuts,
1930
+ QDateShortcuts,
1931
+ QDialogShortcuts,
1932
+ QEditorShortcuts,
1933
+ QExpansionItemShortcuts,
1934
+ QFabShortcuts,
1935
+ QFieldShortcuts,
1936
+ QFileShortcuts,
1937
+ QFormShortcuts,
1938
+ QImgShortcuts,
1939
+ QInnerLoadingShortcuts,
1940
+ QInputShortcuts,
1941
+ QIntersectionShortcuts,
1942
+ QItemShortcuts,
1943
+ QKnobShortcuts,
1944
+ QLayoutShortcuts,
1945
+ QLinearProgressShortcuts,
1946
+ QMenuShortcuts,
1947
+ QOptionGroupShortcuts,
1948
+ QPageShortcuts,
1949
+ QPageStickyShortcuts,
1950
+ QPaginationShortcuts,
1951
+ QParallaxShortcuts,
1952
+ QPopupEditShortcuts,
1953
+ QPullToRefreshShortcuts,
1954
+ QRadioShortcuts,
1955
+ QRatingShortcuts,
1956
+ QResponsiveShortcuts,
1957
+ QScrollareaShortcuts,
1958
+ QSelectShortcuts,
1959
+ QSeparatorShortcuts,
1960
+ QSkeletonShortcuts,
1961
+ QSlideItemShortcuts,
1962
+ QSliderShortcuts,
1963
+ QSpaceShortcuts,
1964
+ QSpinnerShortcuts,
1965
+ QSplitterShortcuts,
1966
+ QStepperShortcuts,
1967
+ QTabPanelShortcuts,
1968
+ QTableShortcuts,
1969
+ QTabsShortcuts,
1970
+ QTimeShortcuts,
1971
+ QTimelineShortcuts,
1972
+ QToggleShortcuts,
1973
+ QToolbarShortcuts,
1974
+ QTooltipShortcuts,
1975
+ QTreeShortcuts,
1976
+ QUploaderShortcuts,
1977
+ QVideoShortcuts,
1978
+ QVirtualScrollShortcuts,
1979
+ PanelShortcuts,
1980
+
1981
+ QMorphShortcuts,
1982
+ QRippleShortcuts,
1983
+
1984
+ QBottomSheetShortcuts,
1985
+ QDialogPluginShortcuts,
1986
+ QLoadingShortcuts,
1987
+ QNotifyShortcuts,
1988
+ DarkShortcuts,
1989
+ FlexShortcuts,
1990
+ HelperShortcuts,
1991
+ MouseShortcuts,
1992
+ OrientationShortcuts,
1993
+ PositionShortcuts,
1994
+ SizeShortcuts,
1995
+ TouchShortcuts,
1996
+ TransitionsShortcuts,
1997
+ TypographyShortcuts,
1998
+ VisibilityShortcuts,
1999
+ QHeaderShortcuts,
2000
+ QFooterShortcuts,
2001
+ QDrawerShortcuts,
2002
+ ElevationShortcuts
2003
+ ),
2004
+ layers: {
2005
+ dismiss: -1,
2006
+ default: 1
2007
+ },
2008
+ theme: defaultTheme,
2009
+ variants: [
2010
+ // ...
2011
+ ],
2012
+ extractors: [
2013
+ {
2014
+ name: 'quasar-extractor',
2015
+ order: 0,
2016
+ extract({ code }) {
2017
+ const kebabMatch = code.matchAll(/q-(\w)([\w-]*)/g)
2018
+ const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g)
2019
+ const transitionMatch = code.matchAll(
2020
+ /(transition|transition-show|transition-hide|transition-prev|transition-next)="(\S*)"/g
1955
2021
  )
2022
+ const colorMatch = code.matchAll(/color="(\S*)"/g)
2023
+
2024
+ const matches: string[] = []
2025
+ for (const match of kebabMatch) matches.push(match[0])
2026
+ for (const match of pascalMatch) {
2027
+ matches.push(toKebabCase(match[0]))
2028
+ }
2029
+ const transitionClasses = []
2030
+ for (const match of transitionMatch) {
2031
+ transitionClasses.push(
2032
+ ...[
2033
+ 'enter-from',
2034
+ 'enter-active',
2035
+ 'enter-to',
2036
+ 'leave-from',
2037
+ 'leave-active',
2038
+ 'leave-to'
2039
+ ].map((v) => `q-transition--${match[2]}-${v}`)
2040
+ )
2041
+ }
2042
+ const colorClasses = []
2043
+ for (const match of colorMatch) {
2044
+ colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
2045
+ }
2046
+
2047
+ const classes = qClasses.filter((c) =>
2048
+ matches.some((component) => {
2049
+ component = component.replaceAll('q-chat-message', 'q-message')
2050
+ return c.includes(component)
2051
+ })
2052
+ )
2053
+ classes.push(...transitionClasses, ...colorClasses)
2054
+ return classes
1956
2055
  }
1957
-
1958
- const classes = qClasses.filter((c) =>
1959
- matches.some((component) => c.includes(component))
1960
- )
1961
- classes.push(...transitionClasses)
1962
- return classes
1963
2056
  }
1964
- }
1965
- ],
1966
- transformers: [
1967
- transformerVariantGroup()
1968
- // {
1969
- // name: 'find-classes-in-quasar-src',
1970
- // enforce: 'pre', // enforce before other transformers
1971
- // idFilter(id) {
1972
- // return id.match(/quasar\/src\/.*\.js/)
1973
- // },
1974
- // async transform(code, id, { uno }) {
1975
- // for (const c of baseSafelist) {
1976
- // if (code.toString().includes(c)) console.log(c)
1977
- // }
1978
- // return code
1979
- // // code is a MagicString instance
1980
- // }
1981
- // }
1982
- ]
1983
- }
2057
+ ],
2058
+ transformers: [
2059
+ transformerVariantGroup()
2060
+ // {
2061
+ // name: 'find-classes-in-quasar-src',
2062
+ // enforce: 'pre', // enforce before other transformers
2063
+ // idFilter(id) {
2064
+ // return id.match(/quasar\/src\/.*\.js/)
2065
+ // },
2066
+ // async transform(code, id, { uno }) {
2067
+ // for (const c of baseSafelist) {
2068
+ // if (code.toString().includes(c)) console.log(c)
2069
+ // }
2070
+ // return code
2071
+ // // code is a MagicString instance
2072
+ // }
2073
+ // }
2074
+ ]
2075
+ } as Preset
2076
+ ]
1984
2077
  })
1985
2078
 
1986
2079
  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
@@ -1155,7 +1155,7 @@ const defaultTheme: QuasarTheme = {
1155
1155
  warning: '#F2C037',
1156
1156
 
1157
1157
  'dark-page': '#121212',
1158
- 'q-dark': '#1d1d1d',
1158
+ dark: '#1d1d1d',
1159
1159
 
1160
1160
  red: '#f44336',
1161
1161
  'red-1': '#ffebee',