vitrify 0.17.5 → 0.17.7

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 (136) 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/core/flex.unocss.js +16 -29
  64. package/dist/plugins/quasar/unocss/index.js +18 -6
  65. package/dist/plugins/quasar/unocss/theme.js +300 -426
  66. package/dist/plugins/quasar.js +18 -101
  67. package/dist/types/plugins/quasar/unocss/index.d.ts +2 -5
  68. package/dist/types/plugins/quasar/unocss/theme.d.ts +827 -127
  69. package/dist/types/plugins/quasar.d.ts +3 -2
  70. package/package.json +2 -1
  71. package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +12 -4
  72. package/src/node/plugins/quasar/unocss/components/QAvatar.unocss.ts +2 -0
  73. package/src/node/plugins/quasar/unocss/components/QBadge.unocss.ts +8 -2
  74. package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +3 -0
  75. package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +9 -3
  76. package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +21 -4
  77. package/src/node/plugins/quasar/unocss/components/QBtnDropdown.unocss.ts +4 -1
  78. package/src/node/plugins/quasar/unocss/components/QBtnGroup.unocss.ts +5 -0
  79. package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +9 -1
  80. package/src/node/plugins/quasar/unocss/components/QCarousel.unocss.ts +41 -11
  81. package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +13 -3
  82. package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +10 -1
  83. package/src/node/plugins/quasar/unocss/components/QChip.unocss.ts +47 -50
  84. package/src/node/plugins/quasar/unocss/components/QCircularProgress.unocss.ts +2 -0
  85. package/src/node/plugins/quasar/unocss/components/QColorPicker.unocss.ts +93 -102
  86. package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +45 -9
  87. package/src/node/plugins/quasar/unocss/components/QDialog.unocss.ts +36 -12
  88. package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +28 -25
  89. package/src/node/plugins/quasar/unocss/components/QEditor.unocss.ts +15 -5
  90. package/src/node/plugins/quasar/unocss/components/QExpansionItem.unocss.ts +16 -4
  91. package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +35 -6
  92. package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +38 -4
  93. package/src/node/plugins/quasar/unocss/components/QFile.unocss.ts +5 -1
  94. package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +4 -1
  95. package/src/node/plugins/quasar/unocss/components/QHeader.unocss.ts +4 -1
  96. package/src/node/plugins/quasar/unocss/components/QImg.unocss.ts +12 -3
  97. package/src/node/plugins/quasar/unocss/components/QInnerLoading.unocss.ts +1 -0
  98. package/src/node/plugins/quasar/unocss/components/QInput.unocss.ts +4 -24
  99. package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +30 -7
  100. package/src/node/plugins/quasar/unocss/components/QKnob.unocss.ts +5 -9
  101. package/src/node/plugins/quasar/unocss/components/QLayout.unocss.ts +5 -1
  102. package/src/node/plugins/quasar/unocss/components/QLinearProgress.unocss.ts +23 -5
  103. package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +2 -0
  104. package/src/node/plugins/quasar/unocss/components/QPageSticky.unocss.ts +1 -0
  105. package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +3 -0
  106. package/src/node/plugins/quasar/unocss/components/QParallax.unocss.ts +2 -0
  107. package/src/node/plugins/quasar/unocss/components/QPopupEdit.unocss.ts +3 -1
  108. package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +4 -1
  109. package/src/node/plugins/quasar/unocss/components/QRadio.unocss.ts +31 -15
  110. package/src/node/plugins/quasar/unocss/components/QRating.unocss.ts +8 -2
  111. package/src/node/plugins/quasar/unocss/components/QResponsive.unocss.ts +2 -0
  112. package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +13 -4
  113. package/src/node/plugins/quasar/unocss/components/QSelect.unocss.ts +17 -5
  114. package/src/node/plugins/quasar/unocss/components/QSeparator.unocss.ts +14 -4
  115. package/src/node/plugins/quasar/unocss/components/QSkeleton.unocss.ts +83 -43
  116. package/src/node/plugins/quasar/unocss/components/QSlideItem.unocss.ts +5 -0
  117. package/src/node/plugins/quasar/unocss/components/QSlider.unocss.ts +55 -10
  118. package/src/node/plugins/quasar/unocss/components/QSpinner.unocss.ts +1 -0
  119. package/src/node/plugins/quasar/unocss/components/QSplitter.unocss.ts +20 -18
  120. package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +51 -34
  121. package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +110 -51
  122. package/src/node/plugins/quasar/unocss/components/QTabs.unocss.ts +77 -46
  123. package/src/node/plugins/quasar/unocss/components/QTime.unocss.ts +192 -65
  124. package/src/node/plugins/quasar/unocss/components/QTimeline.unocss.ts +36 -28
  125. package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +24 -20
  126. package/src/node/plugins/quasar/unocss/components/QToolbar.unocss.ts +2 -0
  127. package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +2 -0
  128. package/src/node/plugins/quasar/unocss/components/QTree.unocss.ts +59 -24
  129. package/src/node/plugins/quasar/unocss/components/QUploader.unocss.ts +36 -22
  130. package/src/node/plugins/quasar/unocss/components/QVideo.unocss.ts +2 -0
  131. package/src/node/plugins/quasar/unocss/components/QVirtualScroll.unocss.ts +3 -0
  132. package/src/node/plugins/quasar/unocss/core/elevation.unocss.ts +61 -60
  133. package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +13 -32
  134. package/src/node/plugins/quasar/unocss/index.ts +25 -10
  135. package/src/node/plugins/quasar/unocss/theme.ts +1422 -428
  136. package/src/node/plugins/quasar.ts +30 -111
@@ -29,6 +29,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
29
29
  [
30
30
  /^q-field$/,
31
31
  ([, c], { theme }) =>
32
+ theme.quasar?.components?.['q-field'] ??
32
33
  `text-[14px] [&_::-ms-clear]:(hidden) [&_::-ms-reveal]:(hidden)`
33
34
  ],
34
35
 
@@ -37,6 +38,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
37
38
  [
38
39
  /^q-field__marginal$/,
39
40
  ([, c], { theme }) =>
41
+ theme.quasar?.components?.['q-field__marginal'] ??
40
42
  `h-[56px] text-[rgba(0,_0,_0,_0.54)] text-[24px] [&_>_*_+_*]:(ml-[2px]) [&_.q-avatar]:(text-[32px])`
41
43
  ],
42
44
 
@@ -49,6 +51,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
49
51
  [
50
52
  /^q-field__append$/,
51
53
  ([, c], { theme }) =>
54
+ theme.quasar?.components?.['q-field__append'] ??
52
55
  `pl-[12px] [&:empty]:(hidden) [&_+_.q-field\\_\\_append]:(pl-[2px])`
53
56
  ],
54
57
 
@@ -57,17 +60,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
57
60
  [
58
61
  /^q-field__bottom$/,
59
62
  ([, c], { theme }) =>
63
+ theme.quasar?.components?.['q-field__bottom'] ??
60
64
  `text-[12px] min-h-[20px] leading-none text-[rgba(0,_0,_0,_0.54)] pt-[8px] px-[12px] pb-[0] [backface-visibility:hidden]`
61
65
  ],
62
66
 
63
67
  [
64
68
  /^q-field__bottom--animated$/,
65
- ([, c], { theme }) => `translate-y-full absolute left-0 right-0 bottom-0`
69
+ ([, c], { theme }) =>
70
+ theme.quasar?.components?.['q-field__bottom--animated'] ??
71
+ `translate-y-full absolute left-0 right-0 bottom-0`
66
72
  ],
67
73
 
68
74
  [
69
75
  /^q-field__messages$/,
70
76
  ([, c], { theme }) =>
77
+ theme.quasar?.components?.['q-field__messages'] ??
71
78
  `leading-none [&_>_div]:([word-wrap:break-word] break-words) [&_>_div_+_div]:(mt-[4px])`
72
79
  ],
73
80
 
@@ -76,6 +83,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
76
83
  [
77
84
  /^q-field--item-aligned$/,
78
85
  ([, c], { theme }) =>
86
+ theme.quasar?.components?.['q-field--item-aligned'] ??
79
87
  `px-[16px] py-[8px] [&_.q-field\\_\\_before]:(min-w-[56px])`
80
88
  ],
81
89
 
@@ -84,136 +92,162 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
84
92
  [
85
93
  /^q-field__control$/,
86
94
  ([, c], { theme }) =>
95
+ theme.quasar?.components?.['q-field__control'] ??
87
96
  `h-[56px] max-w-full outline-[none] [&:before]:(content-empty absolute top-0 right-0 bottom-0 left-0 pointer-events-none) [&:after]:(content-empty absolute top-0 right-0 bottom-0 left-0 pointer-events-none) [&:before]:([border-radius:inherit]) bg-primary`
88
97
  ],
89
98
 
90
99
  [
91
100
  /^q-field__shadow$/,
92
101
  ([, c], { theme }) =>
102
+ theme.quasar?.components?.['q-field__shadow'] ??
93
103
  `top-[8px] opacity-0 overflow-hidden whitespace-pre-wrap [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1)] [&_+_.q-field\\_\\_native::placeholder]:([transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_+_.q-field\\_\\_native:focus::placeholder]:(opacity-0)`
94
104
  ],
95
105
 
96
106
  [
97
107
  /^q-field__native$/,
98
108
  ([, c], { theme }) =>
109
+ theme.quasar?.components?.['q-field__native'] ??
99
110
  `font-normal leading-[28px] tracking-[0.00937em] [text-decoration:inherit] [text-transform:inherit] border-none rounded-none bg-none text-[rgba(0,_0,_0,_0.87)] outline-0 px-[0] py-[6px] w-full min-w-[0] !outline-0 select-auto [&:-webkit-autofill]:() [&:-webkit-autofill_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='color']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='date']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='datetime-local']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='month']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='time']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='week']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&:invalid]:([box-shadow:none]) [&[type='file']]:(leading-[1em])`
100
111
  ],
101
112
 
102
113
  [
103
114
  /^q-field__prefix$/,
104
115
  ([, c], { theme }) =>
116
+ theme.quasar?.components?.['q-field__prefix'] ??
105
117
  `font-normal leading-[28px] tracking-[0.00937em] [text-decoration:inherit] [text-transform:inherit] border-none rounded-none bg-none text-[rgba(0,_0,_0,_0.87)] outline-0 px-[0] py-[6px] [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1)] whitespace-nowrap pr-[4px]`
106
118
  ],
107
119
 
108
120
  [
109
121
  /^q-field__suffix$/,
110
122
  ([, c], { theme }) =>
123
+ theme.quasar?.components?.['q-field__suffix'] ??
111
124
  `font-normal leading-[28px] tracking-[0.00937em] [text-decoration:inherit] [text-transform:inherit] border-none rounded-none bg-none text-[rgba(0,_0,_0,_0.87)] outline-0 px-[0] py-[6px] [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1)] whitespace-nowrap pl-[4px]`
112
125
  ],
113
126
 
114
127
  [
115
128
  /^q-field__input$/,
116
129
  ([, c], { theme }) =>
130
+ theme.quasar?.components?.['q-field__input'] ??
117
131
  `font-normal leading-[28px] tracking-[0.00937em] [text-decoration:inherit] [text-transform:inherit] border-none rounded-none bg-none text-[rgba(0,_0,_0,_0.87)] outline-0 px-[0] py-[6px] w-full min-w-[0] !outline-0 select-auto [&:-webkit-autofill]:() [&:-webkit-autofill_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='color']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='date']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='datetime-local']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='month']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='time']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&[type='week']_+_.q-field\\_\\_label]:(-translate-y-[40%] scale-[0.75]) [&:invalid]:([box-shadow:none]) p-0 h-[0] min-h-[24px] leading-[24px]`
118
132
  ],
119
133
 
120
134
  [
121
135
  /^q-field--readonly$/,
122
- ([, c], { theme }) => `[&_.q-placeholder]:(!opacity-100)`
136
+ ([, c], { theme }) =>
137
+ theme.quasar?.components?.['q-field--readonly'] ??
138
+ `[&_.q-placeholder]:(!opacity-100)`
123
139
  ],
124
140
 
125
141
  [
126
142
  /^q-field--disabled$/,
127
143
  ([, c], { theme }) =>
144
+ theme.quasar?.components?.['q-field--disabled'] ??
128
145
  `[&_.q-placeholder]:(!opacity-100) [&_.q-field\\_\\_inner]:(cursor-not-allowed) [&_.q-field\\_\\_control]:(pointer-events-none) [&_.q-field\\_\\_control_>_div]:(!opacity-60) [&_.q-field\\_\\_control_>_div]:(!outline-0) [&_.q-field\\_\\_control_>_div_*]:(!outline-0)`
129
146
  ],
130
147
 
131
148
  [
132
149
  /^q-field__label$/,
133
150
  ([, c], { theme }) =>
151
+ theme.quasar?.components?.['q-field__label'] ??
134
152
  `left-0 top-[18px] max-w-full text-[rgba(0,_0,_0,_0.6)] text-[16px] leading-tight font-normal tracking-[0.00937em] [text-decoration:inherit] [text-transform:inherit] origin-[left_top] [transition:transform_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_max-width_0.324s_cubic-bezier(0.4,_0,_0.2,_1)] [backface-visibility:hidden]`
135
153
  ],
136
154
 
137
155
  [
138
156
  /^q-field--float$/,
139
157
  ([, c], { theme }) =>
158
+ theme.quasar?.components?.['q-field--float'] ??
140
159
  `[&_.q-field\\_\\_label]:(max-w-[133%] -translate-y-[40%] scale-[0.75] [transition:transform_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_max-width_0.396s_cubic-bezier(0.4,_0,_0.2,_1)])`
141
160
  ],
142
161
 
143
162
  [
144
163
  /^q-field--highlighted$/,
145
164
  ([, c], { theme }) =>
165
+ theme.quasar?.components?.['q-field--highlighted'] ??
146
166
  `[&_.q-field\\_\\_label]:(text-current) [&_.q-field\\_\\_shadow]:(opacity-50)`
147
167
  ],
148
168
 
149
169
  [
150
170
  /^q-field--filled$/,
151
171
  ([, c], { theme }) =>
172
+ theme.quasar?.components?.['q-field--filled'] ??
152
173
  `[&_.q-field\\_\\_control]:(px-[12px] py-[0] bg-[rgba(0,_0,_0,_0.05)] rounded-tl-[4px] rounded-br-[0] rounded-tr-[4px] rounded-bl-[0]) [&_.q-field\\_\\_control:before]:(bg-[rgba(0,_0,_0,_0.05)] [border-bottom:1px_solid_rgba(0,_0,_0,_0.42)] opacity-0 [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_control:hover:before]:(opacity-100) [&_.q-field\\_\\_control:after]:(h-[2px] top-auto origin-[center_bottom] [transform:scale3d(0,_1,_1)] bg-current [transition:transform_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])`
153
174
  ],
154
175
 
155
176
  [
156
177
  /^q-field--outlined$/,
157
178
  ([, c], { theme }) =>
179
+ theme.quasar?.components?.['q-field--outlined'] ??
158
180
  `[&_.q-field\\_\\_control]:(rounded-[4px] px-[12px] py-[0]) [&_.q-field\\_\\_control:before]:(border-[1px] border-solid border-[rgba(0,0,0,0.24)] [transition:border-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_control:hover:before]:(border-[#000]) [&_.q-field\\_\\_control:after]:([height:inherit] [border-radius:inherit] border-[2px] border-solid border-[transparent] [transition:border-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_native:-webkit-autofill]:(mt-px mb-px) [&_.q-field\\_\\_input:-webkit-autofill]:(mt-px mb-px)`
159
181
  ],
160
182
 
161
183
  [
162
184
  /^q-field--standard$/,
163
185
  ([, c], { theme }) =>
186
+ theme.quasar?.components?.['q-field--standard'] ??
164
187
  `[&_.q-field\\_\\_control:before]:([border-bottom:1px_solid_rgba(0,_0,_0,_0.24)] [transition:border-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_control:hover:before]:(border-[#000]) [&_.q-field\\_\\_control:after]:(h-[2px] top-auto [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit] origin-[center_bottom] [transform:scale3d(0,_1,_1)] bg-current [transition:transform_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_bottom]:(pl-0 pr-0)`
165
188
  ],
166
189
 
167
190
  [
168
191
  /^q-field--dark$/,
169
192
  ([, c], { theme }) =>
193
+ theme.quasar?.components?.['q-field--dark'] ??
170
194
  `[&_.q-field\\_\\_control:before]:(border-[rgba(255,_255,_255,_0.6)]) [&_.q-field\\_\\_control:hover:before]:(border-[#fff]) [&_.q-field\\_\\_native]:(text-[#fff]) [&_.q-field\\_\\_prefix]:(text-[#fff]) [&_.q-field\\_\\_suffix]:(text-[#fff]) [&_.q-field\\_\\_input]:(text-[#fff]) [&:not(.q-field--highlighted)_.q-field\\_\\_label]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-field\\_\\_marginal]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-field\\_\\_bottom]:(text-[rgba(255,_255,_255,_0.7)])`
171
195
  ],
172
196
 
173
197
  [
174
198
  /^q-field--standout$/,
175
199
  ([, c], { theme }) =>
200
+ theme.quasar?.components?.['q-field--standout'] ??
176
201
  `[&_.q-field\\_\\_control]:(px-[12px] py-[0] bg-[rgba(0,_0,_0,_0.05)] rounded-[4px] [transition:box-shadow_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_control:before]:(bg-[rgba(0,_0,_0,_0.07)] opacity-0 [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background_0.36s_cubic-bezier(0.4,_0,_0.2,_1)]) [&_.q-field\\_\\_control:hover:before]:(opacity-100)`
177
202
  ],
178
203
 
179
204
  [
180
205
  /^q-field--labeled$/,
181
206
  ([, c], { theme }) =>
207
+ theme.quasar?.components?.['q-field--labeled'] ??
182
208
  `[&_.q-field\\_\\_native]:(leading-[24px] pt-[24px] pb-[8px]) [&_.q-field\\_\\_prefix]:(leading-[24px] pt-[24px] pb-[8px]) [&_.q-field\\_\\_suffix]:(leading-[24px] pt-[24px] pb-[8px]) [&_.q-field\\_\\_shadow]:(top-0) [&:not(.q-field--float)_.q-field\\_\\_prefix]:(opacity-0) [&:not(.q-field--float)_.q-field\\_\\_suffix]:(opacity-0) [&:not(.q-field--float)_.q-field\\_\\_native::placeholder]:(text-transparent) [&:not(.q-field--float)_.q-field\\_\\_input::placeholder]:(text-transparent)`
183
209
  ],
184
210
 
185
211
  [
186
212
  /^q-field--dense$/,
187
213
  ([, c], { theme }) =>
214
+ theme.quasar?.components?.['q-field--dense'] ??
188
215
  `[&_.q-field--with-bottom]:(pb-[19px]) [&_.q-field\\_\\_shadow]:(top-0) [&_.q-field\\_\\_control]:(h-[40px]) [&_.q-field\\_\\_marginal]:(h-[40px]) [&_.q-field\\_\\_bottom]:(text-[11px]) [&_.q-field\\_\\_label]:(text-[14px] top-[10px]) [&_.q-field\\_\\_before]:(pr-[6px]) [&_.q-field\\_\\_prepend]:(pr-[6px]) [&_.q-field\\_\\_after]:(pl-[6px]) [&_.q-field\\_\\_append]:(pl-[6px]) [&_.q-field\\_\\_append_+_.q-field\\_\\_append]:(pl-[2px]) [&_.q-field\\_\\_marginal_.q-avatar]:(text-[24px]) [&_.q-field\\_\\_native:-webkit-autofill_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input:-webkit-autofill_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='color']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='date']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='datetime-local']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='month']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='time']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_native[type='week']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='color']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='date']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='datetime-local']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='month']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='time']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75]) [&_.q-field\\_\\_input[type='week']_+_.q-field\\_\\_label]:(-translate-y-[30%] scale-[0.75])`
189
216
  ],
190
217
 
191
218
  [
192
219
  /^q-field--borderless$/,
193
- ([, c], { theme }) => `[&_.q-field\\_\\_bottom]:(pl-0 pr-0)`
220
+ ([, c], { theme }) =>
221
+ theme.quasar?.components?.['q-field--borderless'] ??
222
+ `[&_.q-field\\_\\_bottom]:(pl-0 pr-0)`
194
223
  ],
195
224
 
196
225
  [
197
226
  /^q-field--error$/,
198
227
  ([, c], { theme }) =>
228
+ theme.quasar?.components?.['q-field--error'] ??
199
229
  `[&_.q-field\\_\\_label]:(animate-[q-field-label_0.36s]) [&_.q-field\\_\\_bottom]:(text-negative)`
200
230
  ],
201
231
 
202
232
  [
203
233
  /^q-field__focusable-action$/,
204
234
  ([, c], { theme }) =>
235
+ theme.quasar?.components?.['q-field__focusable-action'] ??
205
236
  `opacity-60 cursor-pointer !outline-0 border-0 [color:inherit] bg-transparent p-0 [&:hover]:(opacity-100) [&:focus]:(opacity-100)`
206
237
  ],
207
238
 
208
239
  [
209
240
  /^q-field--auto-height$/,
210
241
  ([, c], { theme }) =>
242
+ theme.quasar?.components?.['q-field--auto-height'] ??
211
243
  `[&_.q-field\\_\\_control]:(h-auto) [&_.q-field\\_\\_control]:(min-h-[56px]) [&_.q-field\\_\\_native]:(min-h-[56px]) [&_.q-field\\_\\_native]:(items-center) [&_.q-field\\_\\_control-container]:(pt-0) [&_.q-field\\_\\_native]:(leading-[18px]) [&_.q-field\\_\\_prefix]:(leading-[18px]) [&_.q-field\\_\\_suffix]:(leading-[18px])`
212
244
  ],
213
245
 
214
246
  [
215
247
  /^q-field--square$/,
216
- ([, c], { theme }) => `[&_.q-field\\_\\_control]:(!rounded-none)`
248
+ ([, c], { theme }) =>
249
+ theme.quasar?.components?.['q-field--square'] ??
250
+ `[&_.q-field\\_\\_control]:(!rounded-none)`
217
251
  ]
218
252
  ]
219
253
 
@@ -5,17 +5,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-file$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-file'] ??
8
9
  `[&_.q-field\\_\\_native]:(break-all overflow-hidden) [&_.q-field\\_\\_input]:(!opacity-0) [&_.q-field\\_\\_input::-webkit-file-upload-button]:(cursor-pointer)`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-file__filler$/,
13
- ([, c], { theme }) => `invisible w-full border-none p-0`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-file__filler'] ??
16
+ `invisible w-full border-none p-0`
14
17
  ],
15
18
 
16
19
  [
17
20
  /^q-file__dnd$/,
18
21
  ([, c], { theme }) =>
22
+ theme.quasar?.components?.['q-file__dnd'] ??
19
23
  `outline-[1px_dashed_currentColor] outline-offset-[-4px]`
20
24
  ]
21
25
  ]
@@ -6,12 +6,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
 
7
7
  [
8
8
  /^q-footer--bordered$/,
9
- ([, c], { theme }) => `[border-top:1px_solid_rgba(0,_0,_0,_0.12)]`
9
+ ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-footer--bordered'] ??
11
+ `[border-top:1px_solid_rgba(0,_0,_0,_0.12)]`
10
12
  ],
11
13
 
12
14
  [
13
15
  /^q-footer$/,
14
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-footer'] ??
15
18
  `[&_.q-layout\\_\\_shadow]:(-top-[10px]) [&_.q-layout\\_\\_shadow:after]:(top-[10px]) relative z-2000`
16
19
  ]
17
20
  ]
@@ -6,12 +6,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
 
7
7
  [
8
8
  /^q-header--bordered$/,
9
- ([, c], { theme }) => `[border-bottom:1px_solid_rgba(0,_0,_0,_0.12)]`
9
+ ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-header--bordered'] ??
11
+ `[border-bottom:1px_solid_rgba(0,_0,_0,_0.12)]`
10
12
  ],
11
13
 
12
14
  [
13
15
  /^q-header$/,
14
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-header'] ??
15
18
  `z-2000 [&_.q-layout\\_\\_shadow]:(-bottom-10px) [&_.q-layout\\_\\_shadow:after]:(bottom-10px)`
16
19
  // relative
17
20
  ]
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-img$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-img'] ??
8
9
  `relative w-full inline-block align-middle overflow-hidden`
9
10
  ],
10
11
 
@@ -12,17 +13,23 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
12
13
 
13
14
  [
14
15
  /^q-img__container$/,
15
- ([, c], { theme }) => `[border-radius:inherit] text-[0]`
16
+ ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-img__container'] ??
18
+ `[border-radius:inherit] text-[0]`
16
19
  ],
17
20
 
18
21
  [
19
22
  /^q-img__image$/,
20
- ([, c], { theme }) => `[border-radius:inherit] w-full h-full opacity-0`
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-img__image'] ??
25
+ `[border-radius:inherit] w-full h-full opacity-0`
21
26
  ],
22
27
 
23
28
  [
24
29
  /^q-img__image--with-transition$/,
25
- ([, c], { theme }) => `[transition:opacity_0.28s_ease-in]`
30
+ ([, c], { theme }) =>
31
+ theme.quasar?.components?.['q-img__image--with-transition'] ??
32
+ `[transition:opacity_0.28s_ease-in]`
26
33
  ],
27
34
 
28
35
  [/^q-img__image--loaded$/, ([, c], { theme }) => `opacity-100`],
@@ -30,12 +37,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
30
37
  [
31
38
  /^q-img__content$/,
32
39
  ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-img__content'] ??
33
41
  `[border-radius:inherit] pointer-events-none [&_>_div]:(absolute p-[16px] text-[#fff] bg-[rgba(0,_0,_0,_0.47)])`
34
42
  ],
35
43
 
36
44
  [
37
45
  /^q-img--no-menu$/,
38
46
  ([, c], { theme }) =>
47
+ theme.quasar?.components?.['q-img--no-menu'] ??
39
48
  `[&_.q-img\\_\\_image]:(pointer-events-none) [&_.q-img\\_\\_placeholder]:(pointer-events-none)`
40
49
  ]
41
50
  ]
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-inner-loading$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-inner-loading'] ??
8
9
  `bg-[rgba(255,_255,_255,_0.6)] [border-radius:inherit]`
9
10
  ],
10
11
 
@@ -5,35 +5,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-textarea$/,
7
7
  ([, c], { theme }) =>
8
- `[&_.q-field\\_\\_control]:(min-h-[56px] h-auto) [&_.q-field\\_\\_control-container]:(pt-[2px] pb-[2px]) [&_.q-field\\_\\_shadow]:(top-[2px] bottom-[2px]) [&_.q-field\\_\\_native]:(leading-[18px]) [&_.q-field\\_\\_prefix]:(leading-[18px]) [&_.q-field\\_\\_suffix]:(leading-[18px]) [&_.q-field\\_\\_native]:(resize-y pt-[17px] min-h-[52px])`
9
- ],
10
-
11
- [
12
- /^q-textarea.q-field--labeled$/,
13
- ([, c], { theme }) =>
14
- `[&_.q-field\\_\\_control-container]:(pt-[26px]) [&_.q-field\\_\\_shadow]:(top-[26px]) [&_.q-field\\_\\_native]:(pt-0) [&_.q-field\\_\\_prefix]:(pt-0) [&_.q-field\\_\\_suffix]:(pt-0) [&_.q-field\\_\\_native]:(min-h-[26px] pt-px)`
8
+ theme.quasar?.components?.['q-textarea'] ??
9
+ `[&_.q-field\\_\\_control]:(min-h-[56px] h-auto) [&_.q-field\\_\\_control-container]:(pt-[2px] pb-[2px]) [&_.q-field\\_\\_shadow]:(top-[2px] bottom-[2px]) [&_.q-field\\_\\_native]:(leading-[18px]) [&_.q-field\\_\\_prefix]:(leading-[18px]) [&_.q-field\\_\\_suffix]:(leading-[18px]) [&_.q-field\\_\\_native]:(resize-y pt-[17px] min-h-[52px]) [&.q-field--labeled_.q-field\\_\\_control-container]:(pt-[26px]) [&.q-field--labeled_.q-field\\_\\_shadow]:(top-[26px]) [&.q-field--labeled_.q-field\\_\\_native]:(pt-0) [&.q-field--labeled_.q-field\\_\\_prefix]:(pt-0) [&.q-field--labeled_.q-field\\_\\_suffix]:(pt-0) [&.q-field--labeled_.q-field\\_\\_native]:(min-h-[26px] pt-px) [&.q-field--dense_.q-field\\_\\_control]:(min-h-[36px]) [&.q-field--dense_.q-field\\_\\_native]:(min-h-[36px]) [&.q-field--dense_.q-field\\_\\_native]:(pt-[9px]) [&.q-field--dense.q-field--labeled_.q-field\\_\\_control-container]:(pt-[14px]) [&.q-field--dense.q-field--labeled_.q-field\\_\\_shadow]:(top-[14px]) [&.q-field--dense.q-field--labeled_.q-field\\_\\_native]:(min-h-[24px] pt-[3px]) [&.q-field--dense.q-field--labeled_.q-field\\_\\_prefix]:(pt-[2px]) [&.q-field--dense.q-field--labeled_.q-field\\_\\_suffix]:(pt-[2px]) [&.disabled_.q-field\\_\\_native]:(resize-none)`
15
10
  ],
16
11
 
17
12
  [
18
13
  /^q-textarea--autogrow$/,
19
- ([, c], { theme }) => `[&_.q-field\\_\\_native]:(resize-none)`
20
- ],
21
-
22
- [
23
- /^q-textarea.q-field--dense$/,
24
14
  ([, c], { theme }) =>
25
- `[&_.q-field\\_\\_control]:(min-h-[36px]) [&_.q-field\\_\\_native]:(min-h-[36px]) [&_.q-field\\_\\_native]:(pt-[9px])`
26
- ],
27
-
28
- [
29
- /^q-textarea.q-field--dense.q-field--labeled$/,
30
- ([, c], { theme }) =>
31
- `[&_.q-field\\_\\_control-container]:(pt-[14px]) [&_.q-field\\_\\_shadow]:(top-[14px]) [&_.q-field\\_\\_native]:(min-h-[24px] pt-[3px]) [&_.q-field\\_\\_prefix]:(pt-[2px]) [&_.q-field\\_\\_suffix]:(pt-[2px])`
32
- ],
33
-
34
- [
35
- /^q-textarea.disabled$/,
36
- ([, c], { theme }) => `[&_.q-field\\_\\_native]:(resize-none)`
15
+ theme.quasar?.components?.['q-textarea--autogrow'] ??
16
+ `[&_.q-field\\_\\_native]:(resize-none)`
37
17
  ]
38
18
  ]
39
19
 
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-item$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-item'] ??
8
9
  `min-h-[48px] px-[16px] py-[8px] [color:inherit] [transition:color_0.3s,_background-color_0.3s] [&_>_.q-item\\_\\_section--thumbnail:first-child]:(-ml-[16px]) [&_>_.q-focus-helper_+_.q-item\\_\\_section--thumbnail]:(-ml-[16px]) [&_>_.q-item\\_\\_section--thumbnail:last-of-type]:(-mr-[16px]) relative
9
10
  [&.q-router-link--active]:(text-primary)`
10
11
  ],
@@ -12,17 +13,22 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
12
13
  [
13
14
  /^q-item__section--side$/,
14
15
  ([, c], { theme }) =>
16
+ theme.quasar?.components?.['q-item__section--side'] ??
15
17
  `text-[#757575] items-start pr-[16px] w-auto min-w-[0] max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
16
18
  ],
17
19
 
18
20
  [
19
21
  /^q-item__section--avatar$/,
20
- ([, c], { theme }) => `[color:inherit] min-w-[56px]`
22
+ ([, c], { theme }) =>
23
+ theme.quasar?.components?.['q-item__section--avatar'] ??
24
+ `[color:inherit] min-w-[56px]`
21
25
  ],
22
26
 
23
27
  [
24
28
  /^q-item__section--thumbnail$/,
25
- ([, c], { theme }) => `[&_img]:(w-[100px] h-[56px])`
29
+ ([, c], { theme }) =>
30
+ theme.quasar?.components?.['q-item__section--thumbnail'] ??
31
+ `[&_img]:(w-[100px] h-[56px])`
26
32
  ],
27
33
 
28
34
  [/^q-item__section--nowrap$/, ([, c], { theme }) => `whitespace-nowrap`],
@@ -30,56 +36,71 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
30
36
  [
31
37
  /^q-item__label$/,
32
38
  ([, c], { theme }) =>
39
+ theme.quasar?.components?.['q-item__label'] ??
33
40
  `!leading-[1.2em] max-w-full [&_+_.q-item\\_\\_label]:(mt-[4px])`
34
41
  ],
35
42
 
36
43
  [
37
44
  /^q-item__label--overline$/,
38
- ([, c], { theme }) => `text-[rgba(0,_0,_0,_0.7)]`
45
+ ([, c], { theme }) =>
46
+ theme.quasar?.components?.['q-item__label--overline'] ??
47
+ `text-[rgba(0,_0,_0,_0.7)]`
39
48
  ],
40
49
 
41
50
  [
42
51
  /^q-item__label--caption$/,
43
- ([, c], { theme }) => `text-[rgba(0,_0,_0,_0.54)]`
52
+ ([, c], { theme }) =>
53
+ theme.quasar?.components?.['q-item__label--caption'] ??
54
+ `text-[rgba(0,_0,_0,_0.54)]`
44
55
  ],
45
56
 
46
57
  [
47
58
  /^q-item__label--header$/,
48
59
  ([, c], { theme }) =>
60
+ theme.quasar?.components?.['q-item__label--header'] ??
49
61
  `text-[#757575] p-[16px] text-[0.875rem] leading-5 tracking-[0.01786em]`
50
62
  ],
51
63
 
52
64
  [
53
65
  /^q-separator--spaced$/,
54
- ([, c], { theme }) => `[&_+_.q-item\\_\\_label--header]:(pt-[8px])`
66
+ ([, c], { theme }) =>
67
+ theme.quasar?.components?.['q-separator--spaced'] ??
68
+ `[&_+_.q-item\\_\\_label--header]:(pt-[8px])`
55
69
  ],
56
70
 
57
71
  [
58
72
  /^q-list--padding$/,
59
73
  ([, c], { theme }) =>
74
+ theme.quasar?.components?.['q-list--padding'] ??
60
75
  `[&_.q-item\\_\\_label--header]:(pt-[8px]) px-[0] py-[8px]`
61
76
  ],
62
77
 
63
78
  [
64
79
  /^q-item__section--main$/,
65
80
  ([, c], { theme }) =>
81
+ theme.quasar?.components?.['q-item__section--main'] ??
66
82
  `w-auto min-w-[0] max-w-full flex-[10000_1_0%] [&_+_.q-item\\_\\_section--main]:(ml-[8px]) [&_~_.q-item\\_\\_section--side]:(items-end pr-0 pl-[16px])`
67
83
  ],
68
84
 
69
85
  [
70
86
  /^q-list--bordered$/,
71
- ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
87
+ ([, c], { theme }) =>
88
+ theme.quasar?.components?.['q-list--bordered'] ??
89
+ `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
72
90
  ],
73
91
 
74
92
  [
75
93
  /^q-list--separator$/,
76
94
  ([, c], { theme }) =>
95
+ theme.quasar?.components?.['q-list--separator'] ??
77
96
  `[&_>_.q-item-type_+_.q-item-type]:([border-top:1px_solid_rgba(0,_0,_0,_0.12)]) [&_>_.q-virtual-scroll\\_\\_content_>_.q-item-type_+_.q-item-type]:([border-top:1px_solid_rgba(0,_0,_0,_0.12)])`
78
97
  ],
79
98
 
80
99
  [
81
100
  /^q-list--dense$/,
82
- ([, c], { theme }) => `[&_>_.q-item]:(min-h-[32px] px-[16px] py-[2px])`
101
+ ([, c], { theme }) =>
102
+ theme.quasar?.components?.['q-list--dense'] ??
103
+ `[&_>_.q-item]:(min-h-[32px] px-[16px] py-[2px])`
83
104
  ],
84
105
 
85
106
  [/^q-item--dense$/, ([, c], { theme }) => `min-h-[32px] px-[16px] py-[2px]`],
@@ -87,12 +108,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
87
108
  [
88
109
  /^q-list--dark$/,
89
110
  ([, c], { theme }) =>
111
+ theme.quasar?.components?.['q-list--dark'] ??
90
112
  `text-[#fff] border-[rgba(255,_255,_255,_0.28)] [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
91
113
  ],
92
114
 
93
115
  [
94
116
  /^q-item--dark$/,
95
117
  ([, c], { theme }) =>
118
+ theme.quasar?.components?.['q-item--dark'] ??
96
119
  `text-[#fff] border-[rgba(255,_255,_255,_0.28)] [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
97
120
  ],
98
121
 
@@ -2,20 +2,16 @@ import type { Rule, UserShortcuts } from '@unocss/core'
2
2
  import type { QuasarTheme } from '../theme.js'
3
3
 
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
- [/^q-knob$/, ([, c], { theme }) => `text-[48px]`],
6
-
7
- [/^q-knob--editable$/, ([, c], { theme }) => `cursor-pointer outline-0`],
8
-
9
5
  [
10
- /^q-knob--editable:before$/,
11
- ([, c], { theme }) =>
12
- `content-empty absolute top-0 right-0 bottom-0 left-0 rounded-[50%] [box-shadow:none] [transition:box-shadow_0.24s_ease-in-out]`
6
+ /^q-knob$/,
7
+ ([, c], { theme }) => theme.quasar?.components?.['q-knob'] ?? `text-[48px]`
13
8
  ],
14
9
 
15
10
  [
16
- /^q-knob--editable:focus:before$/,
11
+ /^q-knob--editable$/,
17
12
  ([, c], { theme }) =>
18
- `[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)]`
13
+ theme.quasar?.components?.['q-knob--editable'] ??
14
+ `cursor-pointer outline-[0] [&:before]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] rounded-[50%] [box-shadow:none] [transition:box-shadow_0.24s_ease-in-out]) [&:focus:before]:([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)])`
19
15
  ]
20
16
  ]
21
17
 
@@ -72,19 +72,23 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
72
72
  [
73
73
  /^q-layout-container$/,
74
74
  ([, c], { theme }) =>
75
+ theme.quasar?.components?.['q-layout-container'] ??
75
76
  `relative w-full h-full [&_.q-layout]:(min-h-full) [&_>_div]:([transform:translate3d(0,_0,_0)]) [&_>_div_>_div]:(min-h-[0] max-h-full)`
76
77
  ],
77
78
 
78
79
  [
79
80
  /^q-layout__shadow$/,
80
81
  ([, c], { theme }) =>
82
+ theme.quasar?.components?.['q-layout__shadow'] ??
81
83
  `w-full
82
84
  [&:after]:(content-empty absolute top-[0] right-[0] bottom-[0] left-[0] [box-shadow:0_0_10px_2px_rgba(0,_0,_0,_0.2),_0_0px_10px_rgba(0,_0,_0,_0.24)])`
83
85
  ],
84
86
 
85
87
  [
86
88
  /^q-layout__section--marginal$/,
87
- ([, c], { theme }) => `text-[#fff] bg-primary`
89
+ ([, c], { theme }) =>
90
+ theme.quasar?.components?.['q-layout__section--marginal'] ??
91
+ `text-[#fff] bg-primary`
88
92
  ]
89
93
  ]
90
94
 
@@ -34,6 +34,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
34
34
  [
35
35
  /^q-linear-progress$/,
36
36
  ([, c], { theme }) =>
37
+ theme.quasar?.components?.['q-linear-progress'] ??
37
38
  `relative w-full overflow-hidden text-[4px] h-[1em] [transform:scale3d(1,_1,_1)] text-primary`
38
39
  ],
39
40
 
@@ -41,63 +42,80 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
41
42
 
42
43
  [
43
44
  /^q-linear-progress__track$/,
44
- ([, c], { theme }) => `origin-[0_0] opacity-40`
45
+ ([, c], { theme }) =>
46
+ theme.quasar?.components?.['q-linear-progress__track'] ??
47
+ `origin-[0_0] opacity-40`
45
48
  ],
46
49
 
47
50
  [
48
51
  /^q-linear-progress__model--with-transition$/,
49
52
  ([, c], { theme }) =>
53
+ theme.quasar?.components?.['q-linear-progress__model--with-transition'] ??
50
54
  `[transition:transform_var(--q-linear-progress-speed)]`
51
55
  ],
52
56
 
53
57
  [
54
58
  /^q-linear-progress__track--with-transition$/,
55
59
  ([, c], { theme }) =>
60
+ theme.quasar?.components?.['q-linear-progress__track--with-transition'] ??
56
61
  `[transition:transform_var(--q-linear-progress-speed)]`
57
62
  ],
58
63
 
59
64
  [
60
65
  /^q-linear-progress--reverse$/,
61
66
  ([, c], { theme }) =>
67
+ theme.quasar?.components?.['q-linear-progress--reverse'] ??
62
68
  `[&_.q-linear-progress\\_\\_model]:(origin-[0_100%]) [&_.q-linear-progress\\_\\_track]:(origin-[0_100%])`
63
69
  ],
64
70
 
65
71
  [
66
72
  /^q-linear-progress__model--determinate$/,
67
- ([, c], { theme }) => `bg-current`
73
+ ([, c], { theme }) =>
74
+ theme.quasar?.components?.['q-linear-progress__model--determinate'] ??
75
+ `bg-current`
68
76
  ],
69
77
 
70
78
  [
71
79
  /^q-linear-progress__model--indeterminate$/,
72
80
  ([, c], { theme }) =>
81
+ theme.quasar?.components?.['q-linear-progress__model--indeterminate'] ??
73
82
  `transition-none [&:before]:(bg-current content-empty absolute top-0 right-0 bottom-0 left-0 origin-[0_0]) [&:after]:(bg-current content-empty absolute top-0 right-0 bottom-0 left-0 origin-[0_0]) [&:before]:(animate-[q-linear-progress--indeterminate_2.1s_cubic-bezier(0.65,_0.815,_0.735,_0.395)_infinite]) [&:after]:([transform:translate3d(-101%,_0,_0)_scale3d(1,_1,_1)] animate-[q-linear-progress--indeterminate-short_2.1s_cubic-bezier(0.165,_0.84,_0.44,_1)_infinite] [animation-delay:1.15s])`
74
83
  ],
75
84
 
76
85
  [
77
86
  /^q-linear-progress__model--query$/,
78
87
  ([, c], { theme }) =>
88
+ theme.quasar?.components?.['q-linear-progress__model--query'] ??
79
89
  `transition-none [&:before]:(bg-current content-empty absolute top-0 right-0 bottom-0 left-0 origin-[0_0]) [&:after]:(bg-current content-empty absolute top-0 right-0 bottom-0 left-0 origin-[0_0]) [&:before]:(animate-[q-linear-progress--indeterminate_2.1s_cubic-bezier(0.65,_0.815,_0.735,_0.395)_infinite]) [&:after]:([transform:translate3d(-101%,_0,_0)_scale3d(1,_1,_1)] animate-[q-linear-progress--indeterminate-short_2.1s_cubic-bezier(0.165,_0.84,_0.44,_1)_infinite] [animation-delay:1.15s])`
80
90
  ],
81
91
 
82
92
  [
83
93
  /^q-linear-progress__track--light$/,
84
- ([, c], { theme }) => `bg-[rgba(0,_0,_0,_0.26)]`
94
+ ([, c], { theme }) =>
95
+ theme.quasar?.components?.['q-linear-progress__track--light'] ??
96
+ `bg-[rgba(0,_0,_0,_0.26)]`
85
97
  ],
86
98
 
87
99
  [
88
100
  /^q-linear-progress__track--dark$/,
89
- ([, c], { theme }) => `bg-[rgba(255,_255,_255,_0.6)]`
101
+ ([, c], { theme }) =>
102
+ theme.quasar?.components?.['q-linear-progress__track--dark'] ??
103
+ `bg-[rgba(255,_255,_255,_0.6)]`
90
104
  ],
91
105
 
92
106
  [
93
107
  /^q-linear-progress__stripe$/,
94
108
  ([, c], { theme }) =>
109
+ theme.quasar?.components?.['q-linear-progress__stripe'] ??
95
110
  `!bg-[linear-gradient(_45deg,_rgba(255,_255,_255,_0.15)_25%,_rgba(255,_255,_255,_0)_25%,_rgba(255,_255,_255,_0)_50%,_rgba(255,_255,_255,_0.15)_50%,_rgba(255,_255,_255,_0.15)_75%,_rgba(255,_255,_255,_0)_75%,_rgba(255,_255,_255,_0)_)] [background-size:40px_40px!important]`
96
111
  ],
97
112
 
98
113
  [
99
114
  /^q-linear-progress__stripe--with-transition$/,
100
- ([, c], { theme }) => `[transition:width_var(--q-linear-progress-speed)]`
115
+ ([, c], { theme }) =>
116
+ theme.quasar?.components?.[
117
+ 'q-linear-progress__stripe--with-transition'
118
+ ] ?? `[transition:width_var(--q-linear-progress-speed)]`
101
119
  ]
102
120
  ]
103
121