vitrify 0.17.5 → 0.17.6

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 (130) hide show
  1. package/dist/plugins/quasar/unocss/components/QAjaxBar.unocss.js +8 -4
  2. package/dist/plugins/quasar/unocss/components/QAvatar.unocss.js +4 -2
  3. package/dist/plugins/quasar/unocss/components/QBadge.unocss.js +8 -4
  4. package/dist/plugins/quasar/unocss/components/QBanner.unocss.js +6 -3
  5. package/dist/plugins/quasar/unocss/components/QBar.unocss.js +6 -3
  6. package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +26 -13
  7. package/dist/plugins/quasar/unocss/components/QBtnDropdown.unocss.js +4 -2
  8. package/dist/plugins/quasar/unocss/components/QBtnGroup.unocss.js +10 -5
  9. package/dist/plugins/quasar/unocss/components/QCard.unocss.js +14 -7
  10. package/dist/plugins/quasar/unocss/components/QCarousel.unocss.js +38 -19
  11. package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +14 -7
  12. package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +16 -8
  13. package/dist/plugins/quasar/unocss/components/QChip.unocss.js +25 -47
  14. package/dist/plugins/quasar/unocss/components/QCircularProgress.unocss.js +4 -2
  15. package/dist/plugins/quasar/unocss/components/QColorPicker.unocss.js +46 -102
  16. package/dist/plugins/quasar/unocss/components/QDate.unocss.js +54 -27
  17. package/dist/plugins/quasar/unocss/components/QDialog.unocss.js +24 -12
  18. package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +28 -25
  19. package/dist/plugins/quasar/unocss/components/QEditor.unocss.js +10 -5
  20. package/dist/plugins/quasar/unocss/components/QExpansionItem.unocss.js +16 -8
  21. package/dist/plugins/quasar/unocss/components/QFab.unocss.js +46 -23
  22. package/dist/plugins/quasar/unocss/components/QField.unocss.js +60 -30
  23. package/dist/plugins/quasar/unocss/components/QFile.unocss.js +6 -3
  24. package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +4 -2
  25. package/dist/plugins/quasar/unocss/components/QHeader.unocss.js +4 -2
  26. package/dist/plugins/quasar/unocss/components/QImg.unocss.js +12 -6
  27. package/dist/plugins/quasar/unocss/components/QInnerLoading.unocss.js +2 -1
  28. package/dist/plugins/quasar/unocss/components/QInput.unocss.js +4 -18
  29. package/dist/plugins/quasar/unocss/components/QItem.unocss.js +32 -16
  30. package/dist/plugins/quasar/unocss/components/QKnob.unocss.js +5 -6
  31. package/dist/plugins/quasar/unocss/components/QLayout.unocss.js +6 -3
  32. package/dist/plugins/quasar/unocss/components/QLinearProgress.unocss.js +23 -12
  33. package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +4 -2
  34. package/dist/plugins/quasar/unocss/components/QPageSticky.unocss.js +2 -1
  35. package/dist/plugins/quasar/unocss/components/QPagination.unocss.js +6 -3
  36. package/dist/plugins/quasar/unocss/components/QParallax.unocss.js +4 -2
  37. package/dist/plugins/quasar/unocss/components/QPopupEdit.unocss.js +2 -1
  38. package/dist/plugins/quasar/unocss/components/QPullToRefresh.unocss.js +4 -2
  39. package/dist/plugins/quasar/unocss/components/QRadio.unocss.js +29 -15
  40. package/dist/plugins/quasar/unocss/components/QRating.unocss.js +8 -4
  41. package/dist/plugins/quasar/unocss/components/QResponsive.unocss.js +4 -2
  42. package/dist/plugins/quasar/unocss/components/QScrollarea.unocss.js +10 -5
  43. package/dist/plugins/quasar/unocss/components/QSelect.unocss.js +14 -7
  44. package/dist/plugins/quasar/unocss/components/QSeparator.unocss.js +9 -5
  45. package/dist/plugins/quasar/unocss/components/QSkeleton.unocss.js +67 -42
  46. package/dist/plugins/quasar/unocss/components/QSlideItem.unocss.js +10 -5
  47. package/dist/plugins/quasar/unocss/components/QSlider.unocss.js +70 -35
  48. package/dist/plugins/quasar/unocss/components/QSpinner.unocss.js +2 -1
  49. package/dist/plugins/quasar/unocss/components/QSplitter.unocss.js +18 -16
  50. package/dist/plugins/quasar/unocss/components/QStepper.unocss.js +54 -38
  51. package/dist/plugins/quasar/unocss/components/QTable.unocss.js +101 -55
  52. package/dist/plugins/quasar/unocss/components/QTabs.unocss.js +67 -44
  53. package/dist/plugins/quasar/unocss/components/QTime.unocss.js +167 -65
  54. package/dist/plugins/quasar/unocss/components/QTimeline.unocss.js +41 -30
  55. package/dist/plugins/quasar/unocss/components/QToggle.unocss.js +23 -18
  56. package/dist/plugins/quasar/unocss/components/QToolbar.unocss.js +4 -2
  57. package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +4 -2
  58. package/dist/plugins/quasar/unocss/components/QTree.unocss.js +54 -27
  59. package/dist/plugins/quasar/unocss/components/QUploader.unocss.js +37 -25
  60. package/dist/plugins/quasar/unocss/components/QVideo.unocss.js +4 -2
  61. package/dist/plugins/quasar/unocss/components/QVirtualScroll.unocss.js +6 -3
  62. package/dist/plugins/quasar/unocss/core/elevation.unocss.js +59 -56
  63. package/dist/plugins/quasar/unocss/index.js +2 -2
  64. package/dist/plugins/quasar/unocss/theme.js +300 -426
  65. package/dist/types/plugins/quasar/unocss/theme.d.ts +827 -127
  66. package/package.json +1 -1
  67. package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +12 -4
  68. package/src/node/plugins/quasar/unocss/components/QAvatar.unocss.ts +2 -0
  69. package/src/node/plugins/quasar/unocss/components/QBadge.unocss.ts +8 -2
  70. package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +3 -0
  71. package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +9 -3
  72. package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +21 -4
  73. package/src/node/plugins/quasar/unocss/components/QBtnDropdown.unocss.ts +4 -1
  74. package/src/node/plugins/quasar/unocss/components/QBtnGroup.unocss.ts +5 -0
  75. package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +9 -1
  76. package/src/node/plugins/quasar/unocss/components/QCarousel.unocss.ts +41 -11
  77. package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +13 -3
  78. package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +10 -1
  79. package/src/node/plugins/quasar/unocss/components/QChip.unocss.ts +47 -50
  80. package/src/node/plugins/quasar/unocss/components/QCircularProgress.unocss.ts +2 -0
  81. package/src/node/plugins/quasar/unocss/components/QColorPicker.unocss.ts +93 -102
  82. package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +45 -9
  83. package/src/node/plugins/quasar/unocss/components/QDialog.unocss.ts +36 -12
  84. package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +28 -25
  85. package/src/node/plugins/quasar/unocss/components/QEditor.unocss.ts +15 -5
  86. package/src/node/plugins/quasar/unocss/components/QExpansionItem.unocss.ts +16 -4
  87. package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +35 -6
  88. package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +38 -4
  89. package/src/node/plugins/quasar/unocss/components/QFile.unocss.ts +5 -1
  90. package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +4 -1
  91. package/src/node/plugins/quasar/unocss/components/QHeader.unocss.ts +4 -1
  92. package/src/node/plugins/quasar/unocss/components/QImg.unocss.ts +12 -3
  93. package/src/node/plugins/quasar/unocss/components/QInnerLoading.unocss.ts +1 -0
  94. package/src/node/plugins/quasar/unocss/components/QInput.unocss.ts +4 -24
  95. package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +30 -7
  96. package/src/node/plugins/quasar/unocss/components/QKnob.unocss.ts +5 -9
  97. package/src/node/plugins/quasar/unocss/components/QLayout.unocss.ts +5 -1
  98. package/src/node/plugins/quasar/unocss/components/QLinearProgress.unocss.ts +23 -5
  99. package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +2 -0
  100. package/src/node/plugins/quasar/unocss/components/QPageSticky.unocss.ts +1 -0
  101. package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +3 -0
  102. package/src/node/plugins/quasar/unocss/components/QParallax.unocss.ts +2 -0
  103. package/src/node/plugins/quasar/unocss/components/QPopupEdit.unocss.ts +3 -1
  104. package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +4 -1
  105. package/src/node/plugins/quasar/unocss/components/QRadio.unocss.ts +31 -15
  106. package/src/node/plugins/quasar/unocss/components/QRating.unocss.ts +8 -2
  107. package/src/node/plugins/quasar/unocss/components/QResponsive.unocss.ts +2 -0
  108. package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +13 -4
  109. package/src/node/plugins/quasar/unocss/components/QSelect.unocss.ts +17 -5
  110. package/src/node/plugins/quasar/unocss/components/QSeparator.unocss.ts +14 -4
  111. package/src/node/plugins/quasar/unocss/components/QSkeleton.unocss.ts +83 -43
  112. package/src/node/plugins/quasar/unocss/components/QSlideItem.unocss.ts +5 -0
  113. package/src/node/plugins/quasar/unocss/components/QSlider.unocss.ts +55 -10
  114. package/src/node/plugins/quasar/unocss/components/QSpinner.unocss.ts +1 -0
  115. package/src/node/plugins/quasar/unocss/components/QSplitter.unocss.ts +20 -18
  116. package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +51 -34
  117. package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +110 -51
  118. package/src/node/plugins/quasar/unocss/components/QTabs.unocss.ts +77 -46
  119. package/src/node/plugins/quasar/unocss/components/QTime.unocss.ts +192 -65
  120. package/src/node/plugins/quasar/unocss/components/QTimeline.unocss.ts +36 -28
  121. package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +24 -20
  122. package/src/node/plugins/quasar/unocss/components/QToolbar.unocss.ts +2 -0
  123. package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +2 -0
  124. package/src/node/plugins/quasar/unocss/components/QTree.unocss.ts +59 -24
  125. package/src/node/plugins/quasar/unocss/components/QUploader.unocss.ts +36 -22
  126. package/src/node/plugins/quasar/unocss/components/QVideo.unocss.ts +2 -0
  127. package/src/node/plugins/quasar/unocss/components/QVirtualScroll.unocss.ts +3 -0
  128. package/src/node/plugins/quasar/unocss/core/elevation.unocss.ts +61 -60
  129. package/src/node/plugins/quasar/unocss/index.ts +2 -2
  130. package/src/node/plugins/quasar/unocss/theme.ts +1422 -428
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-menu$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-menu'] ??
8
9
  `!fixed inline-block max-w-[95vw] max-h-[65vh] [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)] bg-[#fff] rounded-[4px] overflow-y-auto overflow-x-hidden outline-0 z-6000`
9
10
  ],
10
11
 
@@ -13,6 +14,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
13
14
  [
14
15
  /^q-menu--dark$/,
15
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-menu--dark'] ??
16
18
  `[box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]`
17
19
  ]
18
20
  ]
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-page-sticky--shrink$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-page-sticky--shrink'] ??
8
9
  `pointer-events-none [&_>_div]:(inline-block pointer-events-auto)`
9
10
  ]
10
11
  ]
@@ -5,18 +5,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-pagination$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-pagination'] ??
8
9
  `[&_input]:(text-center) [&_input::-webkit-outer-spin-button]:(m-0) [&_input::-webkit-inner-spin-button]:(m-0)`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-pagination__content$/,
13
14
  ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-pagination__content'] ??
14
16
  `mt-[var(--q-pagination-gutter-parent)] ml-[var(--q-pagination-gutter-parent)] [&_>_.q-btn]:(mt-[var(--q-pagination-gutter-child)] ml-[var(--q-pagination-gutter-child)]) [&_>_.q-input]:(mt-[var(--q-pagination-gutter-child)] ml-[var(--q-pagination-gutter-child)])`
15
17
  ],
16
18
 
17
19
  [
18
20
  /^q-pagination__middle$/,
19
21
  ([, c], { theme }) =>
22
+ theme.quasar?.components?.['q-pagination__middle'] ??
20
23
  `[&_>_.q-btn]:(mt-[var(--q-pagination-gutter-child)] ml-[var(--q-pagination-gutter-child)])`
21
24
  ]
22
25
  ]
@@ -5,12 +5,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-parallax$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-parallax'] ??
8
9
  `relative w-full overflow-hidden [border-radius:inherit]`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-parallax__media$/,
13
14
  ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-parallax__media'] ??
14
16
  `[&_>_img]:(absolute left-2/4 bottom-0 min-w-full min-h-full hidden) [&_>_video]:(absolute left-2/4 bottom-0 min-w-full min-h-full hidden)`
15
17
  ]
16
18
  ]
@@ -6,7 +6,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
 
7
7
  [
8
8
  /^q-popup-edit__buttons$/,
9
- ([, c], { theme }) => `mt-[8px] [&_.q-btn_+_.q-btn]:(ml-[8px])`
9
+ ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-popup-edit__buttons'] ??
11
+ `mt-[8px] [&_.q-btn_+_.q-btn]:(ml-[8px])`
10
12
  ]
11
13
  ]
12
14
 
@@ -7,12 +7,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  [
8
8
  /^q-pull-to-refresh__puller$/,
9
9
  ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-pull-to-refresh__puller'] ??
10
11
  `rounded-[50%] w-[40px] h-[40px] bg-[#fff] [box-shadow:0_0_4px_0_rgba(0,_0,_0,_0.3)] text-primary`
11
12
  ],
12
13
 
13
14
  [
14
15
  /^q-pull-to-refresh__puller--animating$/,
15
- ([, c], { theme }) => `[transition:transform_0.3s,_opacity_0.3s]`
16
+ ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-pull-to-refresh__puller--animating'] ??
18
+ `[transition:transform_0.3s,_opacity_0.3s]`
16
19
  ]
17
20
  ]
18
21
 
@@ -27,55 +27,71 @@ body.desktop .q-radio--dense:not(.disabled):focus .q-radio__inner:before, body.d
27
27
  ]
28
28
 
29
29
  const shortcuts: UserShortcuts<QuasarTheme> = [
30
- [/^q-radio$/, ([, c], { theme }) => `align-middle`],
30
+ [
31
+ /^q-radio$/,
32
+ ([, c], { theme }) =>
33
+ theme.quasar?.components?.['q-radio'] ??
34
+ `align-middle [&.disabled]:(!opacity-75)`
35
+ ],
31
36
 
32
- [/^q-radio__native$/, ([, c], { theme }) => `w-px h-px`],
37
+ [
38
+ /^q-radio__native$/,
39
+ ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-radio__native'] ?? `w-px h-px`
41
+ ],
33
42
 
34
43
  [
35
44
  /^q-radio__bg$/,
36
45
  ([, c], { theme }) =>
46
+ theme.quasar?.components?.['q-radio__bg'] ??
37
47
  `select-none top-1/4 left-1/4 w-1/2 h-1/2 [&_path]:(fill-current)`
38
48
  ],
39
49
 
40
- [/^q-radio__icon-container$/, ([, c], { theme }) => `select-none`],
50
+ [
51
+ /^q-radio__icon-container$/,
52
+ ([, c], { theme }) =>
53
+ theme.quasar?.components?.['q-radio__icon-container'] ?? `select-none`
54
+ ],
41
55
 
42
- [/^q-radio__icon$/, ([, c], { theme }) => `text-current text-[0.5em]`],
56
+ [
57
+ /^q-radio__icon$/,
58
+ ([, c], { theme }) =>
59
+ theme.quasar?.components?.['q-radio__icon'] ?? `text-current text-[0.5em]`
60
+ ],
43
61
 
44
62
  [
45
63
  /^q-radio__check$/,
46
64
  ([, c], { theme }) =>
65
+ theme.quasar?.components?.['q-radio__check'] ??
47
66
  `origin-[50%_50%] [transform:scale3d(0,_0,_1)] [transition:transform_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms]`
48
67
  ],
49
68
 
50
69
  [
51
70
  /^q-radio__inner$/,
52
71
  ([, c], { theme }) =>
53
- `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-0 rounded-[50%] text-[rgba(0,_0,_0,_0.54)]`
72
+ theme.quasar?.components?.['q-radio__inner'] ??
73
+ `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] text-[rgba(0,_0,_0,_0.54)]`
54
74
  ],
55
75
 
56
76
  [
57
77
  /^q-radio__inner--truthy$/,
58
78
  ([, c], { theme }) =>
59
- ` [&_.q-radio\\_\\_check]:([transform:scale3d(1,_1,_1)]) text-primary`
79
+ theme.quasar?.components?.['q-radio__inner--truthy'] ??
80
+ ` [&_.q-radio\\_\\_check]:([transform:scale3d(1,_1,_1)])`
60
81
  ],
61
82
 
62
- [/^q-radio.disabled$/, ([, c], { theme }) => `!opacity-75`],
63
-
64
83
  [
65
84
  /^q-radio--dark$/,
66
85
  ([, c], { theme }) =>
67
- `[&_.q-radio\\_\\_inner]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-radio\\_\\_inner:before]:(!opacity-[0.32]) [&_.q-radio\\_\\_inner--truthy]:(text-primary)`
86
+ theme.quasar?.components?.['q-radio--dark'] ??
87
+ `[&_.q-radio\\_\\_inner]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-radio\\_\\_inner:before]:(!opacity-[0.32]) [&_.q-radio\\_\\_inner--truthy]:()`
68
88
  ],
69
89
 
70
90
  [
71
91
  /^q-radio--dense$/,
72
92
  ([, c], { theme }) =>
73
- `[&_.q-radio\\_\\_inner]:(w-[0.5em] min-w-[0.5em] h-[0.5em]) [&_.q-radio\\_\\_bg]:(left-0 top-0 w-full h-full) [&_.q-radio\\_\\_label]:(pl-[0.5em])`
74
- ],
75
-
76
- [
77
- /^q-radio--dense.reverse$/,
78
- ([, c], { theme }) => `[&_.q-radio\\_\\_label]:(pl-0 pr-[0.5em])`
93
+ theme.quasar?.components?.['q-radio--dense'] ??
94
+ `[&_.q-radio\\_\\_inner]:(w-[0.5em] min-w-[0.5em] h-[0.5em]) [&_.q-radio\\_\\_bg]:(left-[0] top-[0] w-full h-full) [&_.q-radio\\_\\_label]:(pl-[0.5em]) [&.reverse_.q-radio\\_\\_label]:(pl-0 pr-[0.5em])`
79
95
  ]
80
96
  ]
81
97
 
@@ -7,12 +7,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  [
8
8
  /^q-rating__icon-container$/,
9
9
  ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-rating__icon-container'] ??
10
11
  `h-[1em] outline-0 [&_+_.q-rating\\_\\_icon-container]:(ml-[2px])`
11
12
  ],
12
13
 
13
14
  [
14
15
  /^q-rating__icon$/,
15
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-rating__icon'] ??
16
18
  `text-current [text-shadow:0_1px_3px_rgba(0,_0,_0,_0.12),_0_1px_2px_rgba(0,_0,_0,_0.24)] relative opacity-40 [transition:transform_0.2s_ease-in,_opacity_0.2s_ease-in]`
17
19
  ],
18
20
 
@@ -24,12 +26,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
24
26
 
25
27
  [
26
28
  /^q-rating--no-dimming$/,
27
- ([, c], { theme }) => `[&_.q-rating\\_\\_icon]:(opacity-100)`
29
+ ([, c], { theme }) =>
30
+ theme.quasar?.components?.['q-rating--no-dimming'] ??
31
+ `[&_.q-rating\\_\\_icon]:(opacity-100)`
28
32
  ],
29
33
 
30
34
  [
31
35
  /^q-rating--editable$/,
32
- ([, c], { theme }) => `[&_.q-rating\\_\\_icon-container]:(cursor-pointer)`
36
+ ([, c], { theme }) =>
37
+ theme.quasar?.components?.['q-rating--editable'] ??
38
+ `[&_.q-rating\\_\\_icon-container]:(cursor-pointer)`
33
39
  ]
34
40
  ]
35
41
 
@@ -7,12 +7,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  [
8
8
  /^q-responsive__filler$/,
9
9
  ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-responsive__filler'] ??
10
11
  `[width:inherit] [max-width:inherit] [height:inherit] [max-height:inherit]`
11
12
  ],
12
13
 
13
14
  [
14
15
  /^q-responsive__content$/,
15
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-responsive__content'] ??
16
18
  `[border-radius:inherit] [&_>_*]:(!w-full !h-full !max-h-full !max-w-full)`
17
19
  ]
18
20
  ]
@@ -6,12 +6,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
 
7
7
  [
8
8
  /^q-scrollarea__bar$/,
9
- ([, c], { theme }) => `opacity-20 [transition:opacity_0.3s]`
9
+ ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-scrollarea__bar'] ??
11
+ `opacity-20 [transition:opacity_0.3s]`
10
12
  ],
11
13
 
12
14
  [
13
15
  /^q-scrollarea__thumb$/,
14
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-scrollarea__thumb'] ??
15
18
  `opacity-20 [transition:opacity_0.3s] bg-[#000] rounded-[3px]`
16
19
  ],
17
20
 
@@ -25,12 +28,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
25
28
 
26
29
  [
27
30
  /^q-scrollarea__bar--invisible$/,
28
- ([, c], { theme }) => `!opacity-0 pointer-events-none`
31
+ ([, c], { theme }) =>
32
+ theme.quasar?.components?.['q-scrollarea__bar--invisible'] ??
33
+ `!opacity-0 pointer-events-none`
29
34
  ],
30
35
 
31
36
  [
32
37
  /^q-scrollarea__thumb--invisible$/,
33
- ([, c], { theme }) => `!opacity-0 pointer-events-none`
38
+ ([, c], { theme }) =>
39
+ theme.quasar?.components?.['q-scrollarea__thumb--invisible'] ??
40
+ `!opacity-0 pointer-events-none`
34
41
  ],
35
42
 
36
43
  [/^q-scrollarea__thumb:hover$/, ([, c], { theme }) => `hover:opacity-30`],
@@ -41,7 +48,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
41
48
 
42
49
  [
43
50
  /^q-scrollarea--dark$/,
44
- ([, c], { theme }) => `[&_.q-scrollarea\\_\\_thumb]:(bg-[#fff])`
51
+ ([, c], { theme }) =>
52
+ theme.quasar?.components?.['q-scrollarea--dark'] ??
53
+ `[&_.q-scrollarea\\_\\_thumb]:(bg-[#fff])`
45
54
  ]
46
55
  ]
47
56
 
@@ -30,38 +30,50 @@ body.platform-ios:not(.native-mobile) .q-dialog__inner--top .q-select__dialog--f
30
30
  const shortcuts: UserShortcuts<QuasarTheme> = [
31
31
  [
32
32
  /^q-select--without-input$/,
33
- ([, c], { theme }) => `[&_.q-field\\_\\_control]:(cursor-pointer)`
33
+ ([, c], { theme }) =>
34
+ theme.quasar?.components?.['q-select--without-input'] ??
35
+ `[&_.q-field\\_\\_control]:(cursor-pointer)`
34
36
  ],
35
37
 
36
38
  [
37
39
  /^q-select--with-input$/,
38
- ([, c], { theme }) => `[&_.q-field\\_\\_control]:(cursor-text)`
40
+ ([, c], { theme }) =>
41
+ theme.quasar?.components?.['q-select--with-input'] ??
42
+ `[&_.q-field\\_\\_control]:(cursor-text)`
39
43
  ],
40
44
 
41
45
  [
42
46
  /^q-select$/,
43
47
  ([, c], { theme }) =>
48
+ theme.quasar?.components?.['q-select'] ??
44
49
  `[&_.q-field\\_\\_input]:(!min-w-[50px] cursor-text) [&_.q-field\\_\\_input--padding]:(pl-[4px])`
45
50
  ],
46
51
 
47
52
  [
48
53
  /^q-select__focus-target$/,
49
- ([, c], { theme }) => `absolute !outline-0 w-px h-px p-0 border-0 opacity-0`
54
+ ([, c], { theme }) =>
55
+ theme.quasar?.components?.['q-select__focus-target'] ??
56
+ `absolute !outline-0 w-px h-px p-0 border-0 opacity-0`
50
57
  ],
51
58
 
52
59
  [
53
60
  /^q-select__autocomplete-input$/,
54
- ([, c], { theme }) => `absolute !outline-0 w-px h-px p-0 border-0 opacity-0`
61
+ ([, c], { theme }) =>
62
+ theme.quasar?.components?.['q-select__autocomplete-input'] ??
63
+ `absolute !outline-0 w-px h-px p-0 border-0 opacity-0`
55
64
  ],
56
65
 
57
66
  [
58
67
  /^q-select__dropdown-icon$/,
59
- ([, c], { theme }) => `cursor-pointer [transition:transform_0.28s]`
68
+ ([, c], { theme }) =>
69
+ theme.quasar?.components?.['q-select__dropdown-icon'] ??
70
+ `cursor-pointer [transition:transform_0.28s]`
60
71
  ],
61
72
 
62
73
  [
63
74
  /^q-select__dialog$/,
64
75
  ([, c], { theme }) =>
76
+ theme.quasar?.components?.['q-select__dialog'] ??
65
77
  `!w-[90vw] !max-w-[90vw] !max-h-[calc(100vh-70px)] bg-[#fff] flex flex-col [&_>_.scroll]:(relative [background:inherit])`
66
78
  ]
67
79
  ]
@@ -5,29 +5,39 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-separator$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-separator'] ??
8
9
  `border-0 bg-[rgba(0,_0,_0,_0.12)] m-0 [transition:background_0.3s,_opacity_0.3s] flex-shrink-0`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-separator--dark$/,
13
- ([, c], { theme }) => `bg-[rgba(255,_255,_255,_0.28)]`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-separator--dark'] ??
16
+ `bg-[rgba(255,_255,_255,_0.28)]`
14
17
  ],
15
18
 
16
19
  [/^q-separator--horizontal$/, ([, c], { theme }) => `block h-px`],
17
20
 
18
21
  [
19
22
  /^q-separator--horizontal-inset$/,
20
- ([, c], { theme }) => `ml-[16px] mr-[16px]`
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-separator--horizontal-inset'] ??
25
+ `ml-[16px] mr-[16px]`
21
26
  ],
22
27
 
23
28
  [
24
29
  /^q-separator--horizontal-item-inset$/,
25
- ([, c], { theme }) => `ml-[72px] mr-0`
30
+ ([, c], { theme }) =>
31
+ theme.quasar?.components?.['q-separator--horizontal-item-inset'] ??
32
+ `ml-[72px] mr-0`
26
33
  ],
27
34
 
28
35
  [
29
36
  /^q-separator--horizontal-item-thumbnail-inset$/,
30
- ([, c], { theme }) => `ml-[116px] mr-0`
37
+ ([, c], { theme }) =>
38
+ theme.quasar?.components?.[
39
+ 'q-separator--horizontal-item-thumbnail-inset'
40
+ ] ?? `ml-[116px] mr-0`
31
41
  ],
32
42
 
33
43
  [/^q-separator--vertical$/, ([, c], { theme }) => `w-px h-auto self-stretch`],
@@ -62,130 +62,170 @@ const preflights: Preflight<QuasarTheme>[] = [
62
62
  const shortcuts: UserShortcuts<QuasarTheme> = [
63
63
  [
64
64
  /^q-skeleton$/,
65
- ([, c], { theme }) => `bg-[rgba(0,_0,_0,_0.12)] rounded-[4px] box-border`
65
+ ([, c], { theme }) =>
66
+ theme.quasar?.components?.['q-skeleton'] ??
67
+ `bg-[rgba(0,_0,_0,_0.12)] rounded-[4px] box-border [&:before]:(content-['_'])`
66
68
  ],
67
69
 
68
- [/^q-skeleton--anim$/, ([, c], { theme }) => `cursor-wait`],
69
-
70
- [/^q-skeleton:before$/, ([, c], { theme }) => `content-['_']`],
70
+ [
71
+ /^q-skeleton--anim$/,
72
+ ([, c], { theme }) =>
73
+ theme.quasar?.components?.['q-skeleton--anim'] ?? `cursor-wait`
74
+ ],
71
75
 
72
76
  [
73
77
  /^q-skeleton--type-text$/,
74
- ([, c], { theme }) => `scale-x-100 scale-y-[0.5]`
78
+ ([, c], { theme }) =>
79
+ theme.quasar?.components?.['q-skeleton--type-text'] ??
80
+ `scale-x-100 scale-y-[0.5]`
75
81
  ],
76
82
 
77
83
  [
78
84
  /^q-skeleton--type-circle$/,
79
- ([, c], { theme }) => `h-[48px] w-[48px] rounded-[50%]`
85
+ ([, c], { theme }) =>
86
+ theme.quasar?.components?.['q-skeleton--type-circle'] ??
87
+ `h-[48px] w-[48px] rounded-[50%]`
80
88
  ],
81
89
 
82
90
  [
83
91
  /^q-skeleton--type-QAvatar$/,
84
- ([, c], { theme }) => `h-[48px] w-[48px] rounded-[50%]`
92
+ ([, c], { theme }) =>
93
+ theme.quasar?.components?.['q-skeleton--type-QAvatar'] ??
94
+ `h-[48px] w-[48px] rounded-[50%]`
85
95
  ],
86
96
 
87
- [/^q-skeleton--type-QBtn$/, ([, c], { theme }) => `w-[90px] h-[36px]`],
97
+ [
98
+ /^q-skeleton--type-QBtn$/,
99
+ ([, c], { theme }) =>
100
+ theme.quasar?.components?.['q-skeleton--type-QBtn'] ?? `w-[90px] h-[36px]`
101
+ ],
88
102
 
89
- [/^q-skeleton--type-QBadge$/, ([, c], { theme }) => `w-[70px] h-[16px]`],
103
+ [
104
+ /^q-skeleton--type-QBadge$/,
105
+ ([, c], { theme }) =>
106
+ theme.quasar?.components?.['q-skeleton--type-QBadge'] ??
107
+ `w-[70px] h-[16px]`
108
+ ],
90
109
 
91
110
  [
92
111
  /^q-skeleton--type-QChip$/,
93
- ([, c], { theme }) => `w-[90px] h-[28px] rounded-[16px]`
112
+ ([, c], { theme }) =>
113
+ theme.quasar?.components?.['q-skeleton--type-QChip'] ??
114
+ `w-[90px] h-[28px] rounded-[16px]`
94
115
  ],
95
116
 
96
- [/^q-skeleton--type-QToolbar$/, ([, c], { theme }) => `h-[50px]`],
117
+ [
118
+ /^q-skeleton--type-QToolbar$/,
119
+ ([, c], { theme }) =>
120
+ theme.quasar?.components?.['q-skeleton--type-QToolbar'] ?? `h-[50px]`
121
+ ],
97
122
 
98
123
  [
99
124
  /^q-skeleton--type-QCheckbox$/,
100
- ([, c], { theme }) => `w-[40px] h-[40px] rounded-[50%]`
125
+ ([, c], { theme }) =>
126
+ theme.quasar?.components?.['q-skeleton--type-QCheckbox'] ??
127
+ `w-[40px] h-[40px] rounded-[50%]`
101
128
  ],
102
129
 
103
130
  [
104
131
  /^q-skeleton--type-QRadio$/,
105
- ([, c], { theme }) => `w-[40px] h-[40px] rounded-[50%]`
132
+ ([, c], { theme }) =>
133
+ theme.quasar?.components?.['q-skeleton--type-QRadio'] ??
134
+ `w-[40px] h-[40px] rounded-[50%]`
106
135
  ],
107
136
 
108
137
  [
109
138
  /^q-skeleton--type-QToggle$/,
110
- ([, c], { theme }) => `w-[56px] h-[40px] rounded-[7px]`
139
+ ([, c], { theme }) =>
140
+ theme.quasar?.components?.['q-skeleton--type-QToggle'] ??
141
+ `w-[56px] h-[40px] rounded-[7px]`
111
142
  ],
112
143
 
113
- [/^q-skeleton--type-QSlider$/, ([, c], { theme }) => `h-[40px]`],
144
+ [
145
+ /^q-skeleton--type-QSlider$/,
146
+ ([, c], { theme }) =>
147
+ theme.quasar?.components?.['q-skeleton--type-QSlider'] ?? `h-[40px]`
148
+ ],
114
149
 
115
- [/^q-skeleton--type-QRange$/, ([, c], { theme }) => `h-[40px]`],
150
+ [
151
+ /^q-skeleton--type-QRange$/,
152
+ ([, c], { theme }) =>
153
+ theme.quasar?.components?.['q-skeleton--type-QRange'] ?? `h-[40px]`
154
+ ],
116
155
 
117
- [/^q-skeleton--type-QInput$/, ([, c], { theme }) => `h-[56px]`],
156
+ [
157
+ /^q-skeleton--type-QInput$/,
158
+ ([, c], { theme }) =>
159
+ theme.quasar?.components?.['q-skeleton--type-QInput'] ?? `h-[56px]`
160
+ ],
118
161
 
119
162
  [
120
163
  /^q-skeleton--bordered$/,
121
- ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.05)]`
164
+ ([, c], { theme }) =>
165
+ theme.quasar?.components?.['q-skeleton--bordered'] ??
166
+ `border-[1px] border-solid border-[rgba(0,0,0,0.05)]`
122
167
  ],
123
168
 
124
- [/^q-skeleton--square$/, ([, c], { theme }) => `rounded-none`],
169
+ [
170
+ /^q-skeleton--square$/,
171
+ ([, c], { theme }) =>
172
+ theme.quasar?.components?.['q-skeleton--square'] ?? `rounded-none`
173
+ ],
125
174
 
126
175
  [
127
176
  /^q-skeleton--anim-fade$/,
128
177
  ([, c], { theme }) =>
178
+ theme.quasar?.components?.['q-skeleton--anim-fade'] ??
129
179
  `animate-[q-skeleton--fade_var(--q-skeleton-speed)_linear_0.5s_infinite]`
130
180
  ],
131
181
 
132
182
  [
133
183
  /^q-skeleton--anim-pulse$/,
134
184
  ([, c], { theme }) =>
185
+ theme.quasar?.components?.['q-skeleton--anim-pulse'] ??
135
186
  `animate-[q-skeleton--pulse_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
136
187
  ],
137
188
 
138
189
  [
139
190
  /^q-skeleton--anim-pulse-x$/,
140
191
  ([, c], { theme }) =>
192
+ theme.quasar?.components?.['q-skeleton--anim-pulse-x'] ??
141
193
  `animate-[q-skeleton--pulse-x_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
142
194
  ],
143
195
 
144
196
  [
145
197
  /^q-skeleton--anim-pulse-y$/,
146
198
  ([, c], { theme }) =>
199
+ theme.quasar?.components?.['q-skeleton--anim-pulse-y'] ??
147
200
  `animate-[q-skeleton--pulse-y_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
148
201
  ],
149
202
 
150
203
  [
151
204
  /^q-skeleton--anim-wave$/,
152
- ([, c], { theme }) => `relative overflow-hidden z-1
153
- [&:after]:(content-empty absolute top-0 right-0 bottom-0 left-0 z-0 bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.5),_rgba(255,_255,_255,_0)_)] animate-[q-skeleton--wave_var(--q-skeleton-speed)_linear_0.5s_infinite] z-0)
154
- `
205
+ ([, c], { theme }) =>
206
+ theme.quasar?.components?.['q-skeleton--anim-wave'] ??
207
+ `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0) [&:after]:(bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.5),_rgba(255,_255,_255,_0)_)] animate-[q-skeleton--wave_var(--q-skeleton-speed)_linear_0.5s_infinite])`
155
208
  ],
156
209
 
157
210
  [
158
211
  /^q-skeleton--anim-blink$/,
159
- ([, c], { theme }) => `relative overflow-hidden z-1
160
- [&:after]:(content-empty absolute top-0 right-0 bottom-0 left-0 z-0 bg-[rgba(255,_255,_255,_0.7)] animate-[q-skeleton--fade_var(--q-skeleton-speed)_linear_0.5s_infinite] z-0)`
212
+ ([, c], { theme }) =>
213
+ theme.quasar?.components?.['q-skeleton--anim-blink'] ??
214
+ `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0) [&:after]:(bg-[rgba(255,_255,_255,_0.7)] animate-[q-skeleton--fade_var(--q-skeleton-speed)_linear_0.5s_infinite])`
161
215
  ],
162
216
 
163
217
  [
164
218
  /^q-skeleton--anim-pop$/,
165
- ([, c], { theme }) => `relative overflow-hidden z-1
166
- [&:after]:(content-empty absolute top-0 right-0 bottom-0 left-0 z-0)`
167
- ],
168
-
169
- [
170
- /^q-skeleton--dark$/,
171
- ([, c], { theme }) => `bg-[rgba(255,_255,_255,_0.05)]`
172
- ],
173
-
174
- [
175
- /^q-skeleton--dark.q-skeleton--bordered$/,
176
219
  ([, c], { theme }) =>
177
- `border-[1px] border-solid border-[rgba(255,255,255,0.25)]`
220
+ theme.quasar?.components?.['q-skeleton--anim-pop'] ??
221
+ `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0)`
178
222
  ],
179
223
 
180
224
  [
181
- /^q-skeleton--dark.q-skeleton--anim-wave:after$/,
225
+ /^q-skeleton--dark$/,
182
226
  ([, c], { theme }) =>
183
- `bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.1),_rgba(255,_255,_255,_0)_)]`
184
- ],
185
-
186
- [
187
- /^q-skeleton--dark.q-skeleton--anim-blink:after$/,
188
- ([, c], { theme }) => `bg-[rgba(255,_255,_255,_0.2)]`
227
+ theme.quasar?.components?.['q-skeleton--dark'] ??
228
+ `bg-[rgba(255,_255,_255,_0.05)] [&.q-skeleton--bordered]:(border-[1px] border-solid border-[rgba(255,255,255,0.25)]) [&.q-skeleton--anim-wave:after]:(bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.1),_rgba(255,_255,_255,_0)_)]) [&.q-skeleton--anim-blink:after]:(bg-[rgba(255,_255,_255,_0.2)])`
189
229
  ]
190
230
  ]
191
231
 
@@ -7,30 +7,35 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  [
8
8
  /^q-slide-item__left$/,
9
9
  ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-slide-item__left'] ??
10
11
  `invisible text-[14px] text-[#fff] [&_.q-icon]:(text-[1.714em]) bg-[#4caf50] px-[16px] py-[8px] [&_>_div]:(origin-[left_center])`
11
12
  ],
12
13
 
13
14
  [
14
15
  /^q-slide-item__right$/,
15
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-slide-item__right'] ??
16
18
  `invisible text-[14px] text-[#fff] [&_.q-icon]:(text-[1.714em]) bg-[#ff9800] px-[16px] py-[8px] [&_>_div]:(origin-[right_center])`
17
19
  ],
18
20
 
19
21
  [
20
22
  /^q-slide-item__top$/,
21
23
  ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-slide-item__top'] ??
22
25
  `invisible text-[14px] text-[#fff] [&_.q-icon]:(text-[1.714em]) bg-[#2196f3] px-[8px] py-[16px] [&_>_div]:(origin-[top_center])`
23
26
  ],
24
27
 
25
28
  [
26
29
  /^q-slide-item__bottom$/,
27
30
  ([, c], { theme }) =>
31
+ theme.quasar?.components?.['q-slide-item__bottom'] ??
28
32
  `invisible text-[14px] text-[#fff] [&_.q-icon]:(text-[1.714em]) bg-[#9c27b0] px-[8px] py-[16px] [&_>_div]:(origin-[bottom_center])`
29
33
  ],
30
34
 
31
35
  [
32
36
  /^q-slide-item__content$/,
33
37
  ([, c], { theme }) =>
38
+ theme.quasar?.components?.['q-slide-item__content'] ??
34
39
  `[background:inherit] [transition:transform_0.2s_ease-in] select-none cursor-pointer`
35
40
  ]
36
41
  ]