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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.5",
3
+ "version": "0.17.6",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -4,20 +4,28 @@ import type { QuasarTheme } from '../theme.js'
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-loading-bar$/,
7
- ([, c], { theme }) => `fixed z-9998 transition-transform bg-red`
7
+ ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-loading-bar'] ??
9
+ `fixed z-9998 transition-transform bg-red`
8
10
  ],
9
11
  [/^q-loading-bar--top$/, ([, c], { theme }) => `left-0 right-0 top-0 w-full`],
10
12
  [
11
13
  /^q-loading-bar--bottom$/,
12
- ([, c], { theme }) => `left-0 right-0 bottom-0 w-full`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-loading-bar--bottom'] ??
16
+ `left-0 right-0 bottom-0 w-full`
13
17
  ],
14
18
  [
15
19
  /^q-loading-bar--right$/,
16
- ([, c], { theme }) => `top-0 bottom-0 right-0 h-full`
20
+ ([, c], { theme }) =>
21
+ theme.quasar?.components?.['q-loading-bar--right'] ??
22
+ `top-0 bottom-0 right-0 h-full`
17
23
  ],
18
24
  [
19
25
  /^q-loading-bar--left$/,
20
- ([, c], { theme }) => `top-0 bottom-0 left-0 h-full`
26
+ ([, c], { theme }) =>
27
+ theme.quasar?.components?.['q-loading-bar--left'] ??
28
+ `top-0 bottom-0 left-0 h-full`
21
29
  ]
22
30
  ]
23
31
 
@@ -5,12 +5,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-avatar$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-avatar'] ??
8
9
  `relative align-middle inline-block rounded-[50%] text-[48px] h-[1em] w-[1em] [&_img:not(.q-icon):not(.q-img\\_\\_image)]:([border-radius:inherit] [height:inherit] [width:inherit])`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-avatar__content$/,
13
14
  ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-avatar__content'] ??
14
16
  `text-[0.5em] leading-[0.5em] [border-radius:inherit] [height:inherit] [width:inherit]`
15
17
  ],
16
18
 
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-badge$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-badge'] ??
8
9
  `text-[#fff] bg-primary px-[6px] py-[2px] rounded-[4px] text-[12px] leading-none min-h-[12px] font-normal align-baseline`
9
10
  ],
10
11
 
@@ -12,12 +13,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
12
13
 
13
14
  [
14
15
  /^q-badge--multi-line$/,
15
- ([, c], { theme }) => `break-all [word-wrap:break-word]`
16
+ ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-badge--multi-line'] ??
18
+ `break-all [word-wrap:break-word]`
16
19
  ],
17
20
 
18
21
  [
19
22
  /^q-badge--floating$/,
20
- ([, c], { theme }) => `absolute -top-[4px] -right-[3px] [cursor:inherit]`
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-badge--floating'] ??
25
+ `absolute -top-[4px] -right-[3px] [cursor:inherit]`
21
26
  ],
22
27
 
23
28
  [/^q-badge--transparent$/, ([, c], { theme }) => `opacity-80`],
@@ -25,6 +30,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
25
30
  [
26
31
  /^q-badge--outline$/,
27
32
  ([, c], { theme }) =>
33
+ theme.quasar?.components?.['q-badge--outline'] ??
28
34
  `bg-transparent border-[1px] border-solid border-[currentColor]`
29
35
  ],
30
36
 
@@ -8,6 +8,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
8
8
  [
9
9
  /^q-banner__avatar$/,
10
10
  ([, c], { theme }) =>
11
+ theme.quasar?.components?.['q-banner__avatar'] ??
11
12
  `min-w-1px! [&.q-avatar]:(text-46px)
12
13
  [&.q-icon]:(text-40px)
13
14
  [&:not(:empty)+.q-banner\\_\\_content]:(pl-16px)`
@@ -15,6 +16,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
15
16
  [
16
17
  /^q-banner__actions$/,
17
18
  ([, c], { theme }) =>
19
+ theme.quasar?.components?.['q-banner__actions'] ??
18
20
  `[&.col-auto]:(pl-16px)
19
21
  [&.col-all_.q.btn-item]:(mt-4px mb-0 ml-4px mr-0)`
20
22
  ],
@@ -22,6 +24,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
22
24
  [
23
25
  /^q-banner--dense$/,
24
26
  ([, c], { theme }) =>
27
+ theme.quasar?.components?.['q-banner--dense'] ??
25
28
  `min-h-32px p-8px
26
29
  [&_.q-banner\\_\\_avatar>.q-avatar,.q-banner--dense_.q-banner\\_\\_avatar>.q-icon]:(text-28px)
27
30
  [&_.q-banner\\_\\_avatar:not(:empty)+.q-banner\\_\\_content]:(pl-8px)
@@ -4,7 +4,9 @@ import type { QuasarTheme } from '../theme.js'
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-bar$/,
7
- ([, c], { theme }) => `bg-black op-20
7
+ ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-bar'] ??
9
+ `bg-black op-20
8
10
  [&>.q-icon]:(ml-2px)
9
11
  [&>div]:(ml-8px)
10
12
  [&>div+.q-icon]:(ml-8px)
@@ -15,13 +17,17 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
15
17
  ],
16
18
  [
17
19
  /^q-bar--standard$/,
18
- ([, c], { theme }) => `px-12px py-0 h-32px text-18px
20
+ ([, c], { theme }) =>
21
+ theme.quasar?.components?.['q-bar--standard'] ??
22
+ `px-12px py-0 h-32px text-18px
19
23
  [&>div]:(text-16px)
20
24
  [&_.q-btn]:(text-11px)`
21
25
  ],
22
26
  [
23
27
  /^q-bar--dense$/,
24
- ([, c], { theme }) => `px-8px py-0 h-24px text-14px
28
+ ([, c], { theme }) =>
29
+ theme.quasar?.components?.['q-bar--dense'] ??
30
+ `px-8px py-0 h-24px text-14px
25
31
  [&_.q-btn]:(text-8px)`
26
32
  ],
27
33
  [/^q-bar--dark$/, ([, c], { theme }) => `bg-white op-15`]
@@ -5,6 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-btn$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-btn'] ??
8
9
  `items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [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)])`
9
10
  // inline-flex flex-col
10
11
  ],
@@ -12,6 +13,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
12
13
  [
13
14
  /^q-btn--actionable$/,
14
15
  ([, c], { theme }) =>
16
+ theme.quasar?.components?.['q-btn--actionable'] ??
15
17
  `cursor-pointer [&.q-btn--standard:before]:([transition:box-shadow_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--standard:active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)]) [&.q-btn--standard.q-btn--active:before]:([box-shadow:0_3px_5px_-1px_rgba(0,_0,_0,_0.2),_0_5px_8px_rgba(0,_0,_0,_0.14),_0_1px_14px_rgba(0,_0,_0,_0.12)])`
16
18
  ],
17
19
 
@@ -22,12 +24,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
22
24
  [
23
25
  /^q-btn--outline$/,
24
26
  ([, c], { theme }) =>
27
+ theme.quasar?.components?.['q-btn--outline'] ??
25
28
  `!bg-transparent [&:before]:(border-[1px] border-solid border-[currentColor]) [&:before]:([box-shadow:none]) [&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
26
29
  ],
27
30
 
28
31
  [
29
32
  /^q-btn--push$/,
30
33
  ([, c], { theme }) =>
34
+ theme.quasar?.components?.['q-btn--push'] ??
31
35
  `rounded-[7px] [&:before]:([border-bottom:3px_solid_rgba(0,_0,_0,_0.15)]) [&.q-btn--actionable]:([transition:transform_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--actionable:before]:([transition:border-width_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&.q-btn--actionable:active]:(translate-y-[2px]) [&.q-btn--actionable.q-btn--active]:(translate-y-[2px]) [&.q-btn--actionable:active:before]:(border-b-[0]) [&.q-btn--actionable.q-btn--active:before]:(border-b-[0])`
32
36
  ],
33
37
 
@@ -35,7 +39,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
35
39
 
36
40
  [
37
41
  /^q-btn--round$/,
38
- ([, c], { theme }) => `rounded-[50%] p-0 min-w-[3em] min-h-[3em]`
42
+ ([, c], { theme }) =>
43
+ theme.quasar?.components?.['q-btn--round'] ??
44
+ `rounded-[50%] p-0 min-w-[3em] min-h-[3em]`
39
45
  ],
40
46
 
41
47
  [/^q-btn--square$/, ([, c], { theme }) => `rounded-none`],
@@ -43,29 +49,35 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
43
49
  [
44
50
  /^q-btn--flat$/,
45
51
  ([, c], { theme }) =>
52
+ theme.quasar?.components?.['q-btn--flat'] ??
46
53
  `[&:before]:([box-shadow:none]) [&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
47
54
  ],
48
55
 
49
56
  [
50
57
  /^q-btn--unelevated$/,
51
- ([, c], { theme }) => `[&:before]:([box-shadow:none])`
58
+ ([, c], { theme }) =>
59
+ theme.quasar?.components?.['q-btn--unelevated'] ??
60
+ `[&:before]:([box-shadow:none])`
52
61
  ],
53
62
 
54
63
  [
55
64
  /^q-btn--dense$/,
56
65
  ([, c], { theme }) =>
66
+ theme.quasar?.components?.['q-btn--dense'] ??
57
67
  `p-[0.285em] min-h-[2em] [&.q-btn--round]:(p-0 min-h-[2.4em] min-w-[2.4em]) [&_.on-left]:(mr-[6px]) [&_.on-right]:(ml-[6px])`
58
68
  ],
59
69
 
60
70
  [
61
71
  /^q-btn--fab$/,
62
72
  ([, c], { theme }) =>
73
+ theme.quasar?.components?.['q-btn--fab'] ??
63
74
  `[&_.q-icon]:(text-[24px]) p-[16px] min-h-[56px] min-w-[56px] [&_.q-icon]:(m-auto)`
64
75
  ],
65
76
 
66
77
  [
67
78
  /^q-btn--fab-mini$/,
68
79
  ([, c], { theme }) =>
80
+ theme.quasar?.components?.['q-btn--fab-mini'] ??
69
81
  `[&_.q-icon]:(text-[24px]) p-[8px] min-h-[40px] min-w-[40px]`
70
82
  ],
71
83
 
@@ -73,19 +85,24 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
73
85
 
74
86
  [
75
87
  /^q-btn__content--hidden$/,
76
- ([, c], { theme }) => `opacity-0 pointer-events-none`
88
+ ([, c], { theme }) =>
89
+ theme.quasar?.components?.['q-btn__content--hidden'] ??
90
+ `opacity-0 pointer-events-none`
77
91
  ],
78
92
 
79
93
  [/^q-btn__progress$/, ([, c], { theme }) => `[border-radius:inherit] z-0`],
80
94
 
81
95
  [
82
96
  /^q-btn__progress-indicator$/,
83
- ([, c], { theme }) => `-translate-x-full bg-[rgba(255,_255,_255,_0.25)]`
97
+ ([, c], { theme }) =>
98
+ theme.quasar?.components?.['q-btn__progress-indicator'] ??
99
+ `-translate-x-full bg-[rgba(255,_255,_255,_0.25)]`
84
100
  ],
85
101
 
86
102
  [
87
103
  /^q-btn__progress--dark$/,
88
104
  ([, c], { theme }) =>
105
+ theme.quasar?.components?.['q-btn__progress--dark'] ??
89
106
  `[&_.q-btn\\_\\_progress-indicator]:(bg-[rgba(0,_0,_0,_0.2)])`
90
107
  ]
91
108
  ]
@@ -14,11 +14,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
14
14
  ],
15
15
  [
16
16
  /^q-btn-dropdown--simple$/,
17
- ([, c], { theme }) => `[&+.q-btn-dropdown\\_\\_arrow]:(ml-8px)`
17
+ ([, c], { theme }) =>
18
+ theme.quasar?.components?.['q-btn-dropdown--simple'] ??
19
+ `[&+.q-btn-dropdown\\_\\_arrow]:(ml-8px)`
18
20
  ],
19
21
  [
20
22
  /^q-btn-dropdown__arrow$/,
21
23
  ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-btn-dropdown__arrow'] ??
22
25
  `transition-property-transform transition-duration-280`
23
26
  ],
24
27
  [/^q-btn-dropdown--current$/, ([, c], { theme }) => `grow-1`]
@@ -5,12 +5,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-btn-group$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-btn-group'] ??
8
9
  `rounded-[3px] [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)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:()`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-btn-group--push$/,
13
14
  ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-btn-group--push'] ??
14
16
  `rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
15
17
  [&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
16
18
  ],
@@ -24,6 +26,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
24
26
  [
25
27
  /^q-btn-group--outline$/,
26
28
  ([, c], { theme }) =>
29
+ theme.quasar?.components?.['q-btn-group--outline'] ??
27
30
  `[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
28
31
  ],
29
32
 
@@ -34,12 +37,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
34
37
  [
35
38
  /^q-btn-group--glossy$/,
36
39
  ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-btn-group--glossy'] ??
37
41
  `[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
38
42
  ],
39
43
 
40
44
  [
41
45
  /^q-btn-group--spread$/,
42
46
  ([, c], { theme }) =>
47
+ theme.quasar?.components?.['q-btn-group--spread'] ??
43
48
  `[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
44
49
  [&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
45
50
  ]
@@ -5,17 +5,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-card$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-card'] ??
8
9
  `[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] align-top bg-[#fff] relative [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] [box-shadow:none]) [&_>_img]:(block w-full max-w-full border-[0])`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-card--bordered$/,
13
- ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-card--bordered'] ??
16
+ `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
14
17
  ],
15
18
 
16
19
  [
17
20
  /^q-card--dark$/,
18
21
  ([, c], { theme }) =>
22
+ theme.quasar?.components?.['q-card--dark'] ??
19
23
  `border-[rgba(255,_255,_255,_0.28)] [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)]`
20
24
  ],
21
25
 
@@ -26,24 +30,28 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
26
30
  [
27
31
  /^q-card__section--horiz$/,
28
32
  ([, c], { theme }) =>
33
+ theme.quasar?.components?.['q-card__section--horiz'] ??
29
34
  `[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-top:0] [border-bottom:0] [box-shadow:none])`
30
35
  ],
31
36
 
32
37
  [
33
38
  /^q-card__actions$/,
34
39
  ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-card__actions'] ??
35
41
  `p-[8px] items-center [&_.q-btn--rectangle]:(px-[8px] py-[0])`
36
42
  ],
37
43
 
38
44
  [
39
45
  /^q-card__actions--horiz$/,
40
46
  ([, c], { theme }) =>
47
+ theme.quasar?.components?.['q-card__actions--horiz'] ??
41
48
  `[&_>_.q-btn-item_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-group_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-item_+_.q-btn-group]:(ml-[8px])`
42
49
  ],
43
50
 
44
51
  [
45
52
  /^q-card__actions--vert$/,
46
53
  ([, c], { theme }) =>
54
+ theme.quasar?.components?.['q-card__actions--vert'] ??
47
55
  `[&_>_.q-btn-item.q-btn--round]:(self-center) [&_>_.q-btn-item_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-group_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-item_+_.q-btn-group]:(mt-[4px]) [&_>_.q-btn-group_>_.q-btn-item]:(flex-grow)`
48
56
  ]
49
57
  ]
@@ -5,12 +5,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-carousel$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-carousel'] ??
8
9
  `bg-[#fff] h-[400px] [&_.q-carousel--padding]:(p-[16px]) [&_.q-carousel\\_\\_thumbnail]:(m-[2px] h-[50px] w-auto inline-block cursor-pointer border-[1px] border-solid border-[transparent] rounded-[4px] align-middle opacity-70 [transition:opacity_0.3s]) [&_.q-carousel\\_\\_thumbnail:hover]:(opacity-100) [&_.q-carousel\\_\\_thumbnail--active]:(opacity-100) [&_.q-carousel\\_\\_thumbnail--active]:(border-current cursor-default)`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-carousel__slide$/,
13
- ([, c], { theme }) => `min-h-full bg-cover bg-[50%] p-[16px]`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-carousel__slide'] ??
16
+ `min-h-full bg-cover bg-[50%] p-[16px]`
14
17
  ],
15
18
 
16
19
  [/^q-carousel__slides-container$/, ([, c], { theme }) => `h-full`],
@@ -20,50 +23,63 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
20
23
  [
21
24
  /^q-carousel__arrow$/,
22
25
  ([, c], { theme }) =>
26
+ theme.quasar?.components?.['q-carousel__arrow'] ??
23
27
  `pointer-events-none [&_.q-icon]:(text-[28px]) [&_.q-btn]:()`
24
28
  ],
25
29
 
26
30
  [
27
31
  /^q-carousel__prev-arrow--horizontal$/,
28
- ([, c], { theme }) => `top-[16px] bottom-[16px] left-[16px]`
32
+ ([, c], { theme }) =>
33
+ theme.quasar?.components?.['q-carousel__prev-arrow--horizontal'] ??
34
+ `top-[16px] bottom-[16px] left-[16px]`
29
35
  ],
30
36
 
31
37
  [
32
38
  /^q-carousel__next-arrow--horizontal$/,
33
- ([, c], { theme }) => `top-[16px] bottom-[16px] right-[16px]`
39
+ ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-carousel__next-arrow--horizontal'] ??
41
+ `top-[16px] bottom-[16px] right-[16px]`
34
42
  ],
35
43
 
36
44
  [
37
45
  /^q-carousel__prev-arrow--vertical$/,
38
- ([, c], { theme }) => `left-[16px] right-[16px] top-[16px]`
46
+ ([, c], { theme }) =>
47
+ theme.quasar?.components?.['q-carousel__prev-arrow--vertical'] ??
48
+ `left-[16px] right-[16px] top-[16px]`
39
49
  ],
40
50
 
41
51
  [
42
52
  /^q-carousel__next-arrow--vertical$/,
43
- ([, c], { theme }) => `left-[16px] right-[16px] bottom-[16px]`
53
+ ([, c], { theme }) =>
54
+ theme.quasar?.components?.['q-carousel__next-arrow--vertical'] ??
55
+ `left-[16px] right-[16px] bottom-[16px]`
44
56
  ],
45
57
 
46
58
  [
47
59
  /^q-carousel__navigation--top$/,
48
60
  ([, c], { theme }) =>
61
+ theme.quasar?.components?.['q-carousel__navigation--top'] ??
49
62
  `left-[16px] right-[16px] overflow-x-auto overflow-y-hidden top-[16px]`
50
63
  ],
51
64
 
52
65
  [
53
66
  /^q-carousel__navigation--bottom$/,
54
67
  ([, c], { theme }) =>
68
+ theme.quasar?.components?.['q-carousel__navigation--bottom'] ??
55
69
  `left-[16px] right-[16px] overflow-x-auto overflow-y-hidden bottom-[16px]`
56
70
  ],
57
71
 
58
72
  [
59
73
  /^q-carousel__navigation--left$/,
60
74
  ([, c], { theme }) =>
75
+ theme.quasar?.components?.['q-carousel__navigation--left'] ??
61
76
  `top-[16px] bottom-[16px] overflow-x-hidden overflow-y-auto [&_>_.q-carousel\\_\\_navigation-inner]:(flex-col) left-[16px]`
62
77
  ],
63
78
 
64
79
  [
65
80
  /^q-carousel__navigation--right$/,
66
81
  ([, c], { theme }) =>
82
+ theme.quasar?.components?.['q-carousel__navigation--right'] ??
67
83
  `top-[16px] bottom-[16px] overflow-x-hidden overflow-y-auto [&_>_.q-carousel\\_\\_navigation-inner]:(flex-col) right-[16px]`
68
84
  ],
69
85
 
@@ -71,44 +87,58 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
71
87
 
72
88
  [
73
89
  /^q-carousel__navigation$/,
74
- ([, c], { theme }) => `[&_.q-btn]:(mx-[4px] my-[6px] p-[5px])`
90
+ ([, c], { theme }) =>
91
+ theme.quasar?.components?.['q-carousel__navigation'] ??
92
+ `[&_.q-btn]:(mx-[4px] my-[6px] p-[5px])`
75
93
  ],
76
94
 
77
95
  [
78
96
  /^q-carousel__navigation-icon--inactive$/,
79
- ([, c], { theme }) => `opacity-70`
97
+ ([, c], { theme }) =>
98
+ theme.quasar?.components?.['q-carousel__navigation-icon--inactive'] ??
99
+ `opacity-70`
80
100
  ],
81
101
 
82
102
  [
83
103
  /^q-carousel--navigation-top$/,
84
- ([, c], { theme }) => `[&_.q-carousel--padding]:(pt-[60px])`
104
+ ([, c], { theme }) =>
105
+ theme.quasar?.components?.['q-carousel--navigation-top'] ??
106
+ `[&_.q-carousel--padding]:(pt-[60px])`
85
107
  ],
86
108
 
87
109
  [
88
110
  /^q-carousel--arrows-vertical$/,
89
111
  ([, c], { theme }) =>
112
+ theme.quasar?.components?.['q-carousel--arrows-vertical'] ??
90
113
  `[&_.q-carousel--padding]:(pt-[60px]) [&_.q-carousel--padding]:(pb-[60px])`
91
114
  ],
92
115
 
93
116
  [
94
117
  /^q-carousel--navigation-bottom$/,
95
- ([, c], { theme }) => `[&_.q-carousel--padding]:(pb-[60px])`
118
+ ([, c], { theme }) =>
119
+ theme.quasar?.components?.['q-carousel--navigation-bottom'] ??
120
+ `[&_.q-carousel--padding]:(pb-[60px])`
96
121
  ],
97
122
 
98
123
  [
99
124
  /^q-carousel--navigation-left$/,
100
- ([, c], { theme }) => `[&_.q-carousel--padding]:(pl-[60px])`
125
+ ([, c], { theme }) =>
126
+ theme.quasar?.components?.['q-carousel--navigation-left'] ??
127
+ `[&_.q-carousel--padding]:(pl-[60px])`
101
128
  ],
102
129
 
103
130
  [
104
131
  /^q-carousel--arrows-horizontal$/,
105
132
  ([, c], { theme }) =>
133
+ theme.quasar?.components?.['q-carousel--arrows-horizontal'] ??
106
134
  `[&_.q-carousel--padding]:(pl-[60px]) [&_.q-carousel--padding]:(pr-[60px])`
107
135
  ],
108
136
 
109
137
  [
110
138
  /^q-carousel--navigation-right$/,
111
- ([, c], { theme }) => `[&_.q-carousel--padding]:(pr-[60px])`
139
+ ([, c], { theme }) =>
140
+ theme.quasar?.components?.['q-carousel--navigation-right'] ??
141
+ `[&_.q-carousel--padding]:(pr-[60px])`
112
142
  ]
113
143
  ]
114
144
 
@@ -6,23 +6,30 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
 
7
7
  [
8
8
  /^q-message-label$/,
9
- ([, c], { theme }) => `mx-[0] my-[24px] text-center text-[small]`
9
+ ([, c], { theme }) =>
10
+ theme.quasar?.components?.['q-message-label'] ??
11
+ `mx-[0] my-[24px] text-center text-[small]`
10
12
  ],
11
13
 
12
14
  [
13
15
  /^q-message-stamp$/,
14
16
  ([, c], { theme }) =>
17
+ theme.quasar?.components?.['q-message-stamp'] ??
15
18
  `[color:inherit] mt-[4px] opacity-60 hidden text-[small]`
16
19
  ],
17
20
 
18
21
  [
19
22
  /^q-message-avatar$/,
20
- ([, c], { theme }) => `rounded-[50%] w-[48px] h-[48px] min-w-[48px]`
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-message-avatar'] ??
25
+ `rounded-[50%] w-[48px] h-[48px] min-w-[48px]`
21
26
  ],
22
27
 
23
28
  [
24
29
  /^q-message$/,
25
- ([, c], { theme }) => `mb-[8px] [&:first-child_.q-message-label]:(mt-0)`
30
+ ([, c], { theme }) =>
31
+ theme.quasar?.components?.['q-message'] ??
32
+ `mb-[8px] [&:first-child_.q-message-label]:(mt-0)`
26
33
  ],
27
34
 
28
35
  [/^q-message-avatar--received$/, ([, c], { theme }) => `mr-[8px]`],
@@ -30,6 +37,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
30
37
  [
31
38
  /^q-message-text--received$/,
32
39
  ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-message-text--received'] ??
33
41
  `text-[#81c784] rounded-tl-[4px] rounded-br-[4px] rounded-tr-[4px] rounded-bl-[0] [&:last-child:before]:(right-full [border-right:0_solid_transparent] [border-left:8px_solid_transparent] [border-bottom:8px_solid_currentColor])`
34
42
  ],
35
43
 
@@ -44,6 +52,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
44
52
  [
45
53
  /^q-message-text--sent$/,
46
54
  ([, c], { theme }) =>
55
+ theme.quasar?.components?.['q-message-text--sent'] ??
47
56
  `text-[#e0e0e0] rounded-tl-[4px] rounded-br-[0] rounded-tr-[4px] rounded-bl-[4px] [&:last-child:before]:(left-full [border-left:0_solid_transparent] [border-right:8px_solid_transparent] [border-bottom:8px_solid_currentColor])`
48
57
  ],
49
58
 
@@ -52,6 +61,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
52
61
  [
53
62
  /^q-message-text$/,
54
63
  ([, c], { theme }) =>
64
+ theme.quasar?.components?.['q-message-text'] ??
55
65
  `bg-current p-[8px] leading-[1.2] relative [&_+_.q-message-text]:(mt-[3px]) [&:last-child]:(min-h-[48px]) [&:last-child_.q-message-stamp]:(block) [&:last-child:before]:(content-empty absolute bottom-0 w-[0] h-[0])`
56
66
  ]
57
67
  ]
@@ -35,6 +35,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
35
35
  [
36
36
  /^q-checkbox__bg$/,
37
37
  ([, c], { theme }) =>
38
+ theme.quasar?.components?.['q-checkbox__bg'] ??
38
39
  `select-none top-1/4 left-1/4 w-1/2 h-1/2 border-[2px] border-solid border-[currentColor] rounded-[2px] [transition:background_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms]`
39
40
  ],
40
41
 
@@ -46,42 +47,50 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
46
47
 
47
48
  [
48
49
  /^q-checkbox__truthy$/,
49
- ([, c], { theme }) => `stroke-current stroke-[3.12px]`
50
+ ([, c], { theme }) =>
51
+ theme.quasar?.components?.['q-checkbox__truthy'] ??
52
+ `stroke-current stroke-[3.12px]`
50
53
  ],
51
54
 
52
55
  [
53
56
  /^q-checkbox__indet$/,
54
57
  ([, c], { theme }) =>
58
+ theme.quasar?.components?.['q-checkbox__indet'] ??
55
59
  `fill-current origin-[50%_50%] -rotate-[280deg] scale-0`
56
60
  ],
57
61
 
58
62
  [
59
63
  /^q-checkbox__inner$/,
60
64
  ([, c], { theme }) =>
65
+ theme.quasar?.components?.['q-checkbox__inner'] ??
61
66
  `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-0 rounded-[50%] text-[rgba(0,_0,_0,_0.54)]`
62
67
  ],
63
68
 
64
69
  [
65
70
  /^q-checkbox__inner--truthy$/,
66
71
  ([, c], { theme }) =>
72
+ theme.quasar?.components?.['q-checkbox__inner--truthy'] ??
67
73
  `text-primary [&_.q-checkbox\\_\\_bg]:(bg-current) [&_path]:([transition:stroke-dashoffset_0.18s_cubic-bezier(0.4,_0,_0.6,_1)_0ms])`
68
74
  ],
69
75
 
70
76
  [
71
77
  /^q-checkbox__inner--indet$/,
72
78
  ([, c], { theme }) =>
79
+ theme.quasar?.components?.['q-checkbox__inner--indet'] ??
73
80
  `text-primary [&_.q-checkbox\\_\\_bg]:(bg-current) [&_.q-checkbox\\_\\_indet]:(rotate-[0] scale-100 [transition:transform_0.22s_cubic-bezier(0,_0,_0.2,_1)_0ms])`
74
81
  ],
75
82
 
76
83
  [
77
84
  /^q-checkbox--dark$/,
78
85
  ([, c], { theme }) =>
86
+ theme.quasar?.components?.['q-checkbox--dark'] ??
79
87
  `[&_.q-checkbox\\_\\_inner]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-checkbox\\_\\_inner:before]:(!opacity-[0.32]) [&_.q-checkbox\\_\\_inner--truthy]:(text-primary) [&_.q-checkbox\\_\\_inner--indet]:(text-primary)`
80
88
  ],
81
89
 
82
90
  [
83
91
  /^q-checkbox--dense$/,
84
92
  ([, c], { theme }) =>
93
+ theme.quasar?.components?.['q-checkbox--dense'] ??
85
94
  `[&_.q-checkbox\\_\\_inner]:(w-[0.5em] min-w-[0.5em] h-[0.5em]) [&_.q-checkbox\\_\\_bg]:(left-[5%] top-[5%] w-[90%] h-[90%]) [&_.q-checkbox\\_\\_label]:(pl-[0.5em])`
86
95
  ]
87
96
  ]