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
@@ -17,81 +17,78 @@ body.desktop.body--dark .q-chip--clickable:focus {
17
17
  const shortcuts: UserShortcuts<QuasarTheme> = [
18
18
  [
19
19
  /^q-chip$/,
20
- (
21
- [, c],
22
- { theme }
23
- ) => `v-middle border-rd-16px outline-0 relative h-2em max-w-full m-4px bg-gray-1 text-black text-op-87 text-14px px-0.9em py-0.5em
24
- [&_.q-avatar]:(text-2em ml--0.45em mr-0.2em border-rd-16px)
25
- `
20
+ ([, c], { theme }) =>
21
+ theme.quasar?.components?.['q-chip'] ??
22
+ `align-middle rounded-[16px] outline-[0] relative h-[2em] max-w-full m-[4px] bg-[#e0e0e0] text-[rgba(0,_0,_0,_0.87)] text-[14px] px-[0.9em] py-[0.5em] [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
26
23
  ],
24
+
27
25
  [
28
26
  /^q-chip--colored$/,
29
- ([, c], { theme }) => `
30
- [&_.q-chip__icon]:(text-inherit)
31
- [&_.q-chip--dark_.q-chip\\_\\_icon]:(text-inherit)
32
- `
27
+ ([, c], { theme }) =>
28
+ theme.quasar?.components?.['q-chip--colored'] ??
29
+ `[&_.q-chip\\_\\_icon]:([color:inherit])`
30
+ ],
31
+
32
+ [
33
+ /^q-chip--dark$/,
34
+ ([, c], { theme }) =>
35
+ theme.quasar?.components?.['q-chip--dark'] ??
36
+ `[&_.q-chip\\_\\_icon]:([color:inherit])`
33
37
  ],
38
+
34
39
  [
35
40
  /^q-chip--outline$/,
36
- ([, c], { theme }) => `
37
- bg-transparent! border-solid border-width-1px border-current
38
- [&_.q-chip--dark_.q-chip\\_\\_icon]:(text-inherit)
39
- `
41
+ ([, c], { theme }) =>
42
+ theme.quasar?.components?.['q-chip--outline'] ??
43
+ `!bg-transparent border-[1px] border-solid border-[currentColor]`
40
44
  ],
45
+
41
46
  [
42
47
  /^q-chip--selected$/,
43
- ([, c], { theme }) => `
44
- hidden
45
- `
48
+ ([, c], { theme }) =>
49
+ theme.quasar?.components?.['q-chip--selected'] ?? `[&_.q-avatar]:(hidden)`
46
50
  ],
51
+
47
52
  [
48
53
  /^q-chip__icon$/,
49
- ([, c], { theme }) => `
50
- text-black text-op-540 text-1.5em m--0.2em
51
- `
54
+ ([, c], { theme }) =>
55
+ theme.quasar?.components?.['q-chip__icon'] ??
56
+ `text-[rgba(0,_0,_0,_0.54)] text-[1.5em] -m-[0.2em]`
52
57
  ],
58
+
53
59
  [
54
60
  /^q-chip__icon--left$/,
55
- ([, c], { theme }) => `
56
- mr-0.2em
57
- `
61
+ ([, c], { theme }) =>
62
+ theme.quasar?.components?.['q-chip__icon--left'] ?? `mr-[0.2em]`
58
63
  ],
64
+
59
65
  [
60
66
  /^q-chip__icon--right$/,
61
- ([, c], { theme }) => `
62
- ml-0.2em
63
- `
67
+ ([, c], { theme }) =>
68
+ theme.quasar?.components?.['q-chip__icon--right'] ?? `ml-[0.2em]`
64
69
  ],
70
+
65
71
  [
66
72
  /^q-chip__icon--remove$/,
67
- ([, c], { theme }) => `
68
- ml-0.1em mr--0.5em op-60 outline-0
69
- [&:hover]:(op-100)
70
- [&:focus]:(op-100)
71
- `
72
- ],
73
- [
74
- /^q-chip__icon--content$/,
75
- ([, c], { theme }) => `
76
- whitespace-nowrap
77
- `
73
+ ([, c], { theme }) =>
74
+ theme.quasar?.components?.['q-chip__icon--remove'] ??
75
+ `ml-[0.1em] -mr-[0.5em] opacity-60 outline-[0] [&:hover]:(opacity-100) [&:focus]:(opacity-100)`
78
76
  ],
77
+
78
+ [/^q-chip__content$/, ([, c], { theme }) => `whitespace-nowrap`],
79
+
79
80
  [
80
- /^q-chip__icon--dense$/,
81
- ([, c], { theme }) => `
82
- border-rd-12px px-0.4em py-0 h-1.5em
83
- [&_.q-avatar]:(text-1.5em ml--0.27em mr-0.1em border-rd-12px)
84
- [&._q-chip\\_\\_icon]:(text-1.25em)
85
- [&._q-chip\\_\\_icon--left]:(mr-0.195em)
86
- [&._q-chip\\_\\_icon--remove]:(mr--0.25em)
87
- `
81
+ /^q-chip--dense$/,
82
+ ([, c], { theme }) =>
83
+ theme.quasar?.components?.['q-chip--dense'] ??
84
+ `rounded-[12px] px-[0.4em] py-[0] h-[1.5em] [&_.q-avatar]:(text-[1.5em] -ml-[0.27em] mr-[0.1em] rounded-[12px]) [&_.q-chip\\_\\_icon]:(text-[1.25em]) [&_.q-chip\\_\\_icon--left]:(mr-[0.195em]) [&_.q-chip\\_\\_icon--remove]:(-mr-[0.25em])`
88
85
  ],
86
+
89
87
  [
90
- /^q-chip__icon--square$/,
91
- ([, c], { theme }) => `
92
- border-rd-4px
93
- [&_q-avatar]:(border-rd-tl-3px border-rd-br-3px border-rd-tr-0 border-rd-bl-0)
94
- `
88
+ /^q-chip--square$/,
89
+ ([, c], { theme }) =>
90
+ theme.quasar?.components?.['q-chip--square'] ??
91
+ `rounded-[4px] [&_.q-avatar]:(rounded-tl-[3px] rounded-br-[0] rounded-tr-[0] rounded-bl-[3px])`
95
92
  ]
96
93
  ]
97
94
 
@@ -24,6 +24,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
24
24
  [
25
25
  /^q-circular-progress$/,
26
26
  ([, c], { theme }) =>
27
+ theme.quasar?.components?.['q-circular-progress'] ??
27
28
  `inline-block relative align-middle w-[1em] h-[1em] leading-none`
28
29
  ],
29
30
 
@@ -34,6 +35,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
34
35
  [
35
36
  /^q-circular-progress--indeterminate$/,
36
37
  ([, c], { theme }) =>
38
+ theme.quasar?.components?.['q-circular-progress--indeterminate'] ??
37
39
  `[&_.q-circular-progress\\_\\_svg]:(origin-[50%_50%] animate-[q-spin_2s_linear_infinite]) [&_.q-circular-progress\\_\\_circle]:(animate-[q-circular-progress-circle_1.5s_ease-in-out_infinite])`
38
40
  ]
39
41
  ]
@@ -4,174 +4,165 @@ import type { QuasarTheme } from '../theme.js'
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-color-picker$/,
7
- ([, c], { theme }) => `
8
- overflow-hidden bg-white max-w-350px v-top min-w-180px border-rd-4px
9
- shadow-sm
10
- [&.q-tab]:(p-0!)
11
- [&_input]:(text-inherit bg-transparent outline-0 text-center)
12
- [&_.q-tabs]:(overflow-hidden)
13
- [&_.q-tab--active]:(shadow-sm)
14
- [&_.q-tab--active_.q-focus-helper]:(hidden)
15
- [&_q-tab\\_\\_indicator]:(hidden)
16
- [&_q-tab-panels]:(bg-inherit)
17
- `
7
+ ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-color-picker'] ??
9
+ `overflow-hidden bg-[#fff] max-w-[350px] align-top min-w-[180px] rounded-[4px] [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)] [&_.q-tab]:(!p-0) [&_input]:([color:inherit] bg-transparent outline-[0] text-center) [&_.q-tabs]:(overflow-hidden) [&_.q-tab--active]:([box-shadow:0_0_14px_3px_rgba(0,_0,_0,_0.2)]) [&_.q-tab--active_.q-focus-helper]:(hidden) [&_.q-tab\\_\\_indicator]:(hidden) [&_.q-tab-panels]:([background:inherit])`
18
10
  ],
11
+
19
12
  [
20
13
  /^q-color-picker--bordered$/,
21
- ([, c], { theme }) => `
22
- border-1px border-black border-op-120
23
- `
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-color-picker--bordered'] ??
16
+ `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
24
17
  ],
18
+
25
19
  [
26
20
  /^q-color-picker__header-tabs$/,
27
- ([, c], { theme }) => `
28
- h-32px
29
- `
21
+ ([, c], { theme }) =>
22
+ theme.quasar?.components?.['q-color-picker__header-tabs'] ?? `h-[32px]`
30
23
  ],
24
+
31
25
  [
32
26
  /^q-color-picker__header-banner$/,
33
- ([, c], { theme }) => `
34
- h-36px
35
- `
27
+ ([, c], { theme }) =>
28
+ theme.quasar?.components?.['q-color-picker__header-banner'] ??
29
+ `h-[36px] h-[36px]`
36
30
  ],
31
+
37
32
  [
38
33
  /^q-color-picker__header$/,
39
- ([, c], { theme }) => `
40
- [&_input]:(lh-24px border-none)
41
- [&_.q-tab]:(min-h-32px! h-32px!)
42
- [&_.q-tab--inactive]:(bg-gradient-linear from-black/30 via-black/15 to-black/10)
43
- `
34
+ ([, c], { theme }) =>
35
+ theme.quasar?.components?.['q-color-picker__header'] ??
36
+ `[&_input]:(leading-[24px] border-[0]) [&_.q-tab]:(!min-h-[32px] !h-[32px]) [&_.q-tab--inactive]:(bg-[linear-gradient(_to_top,_rgba(0,_0,_0,_0.3)_0%,_rgba(0,_0,_0,_0.15)_25%,_rgba(0,_0,_0,_0.1)_)])`
44
37
  ],
38
+
45
39
  [
46
40
  /^q-color-picker__error-icon$/,
47
- ([, c], { theme }) => `
48
- bottom-2px right-2px text-24px op-0 transition-opacity-300
49
- `
41
+ ([, c], { theme }) =>
42
+ theme.quasar?.components?.['q-color-picker__error-icon'] ??
43
+ `bottom-[2px] right-[2px] text-[24px] opacity-0 [transition:opacity_0.3s_ease-in]`
50
44
  ],
45
+
51
46
  [
52
47
  /^q-color-picker__header-content$/,
53
- ([, c], { theme }) => `
54
- relative bg-white
55
- `
48
+ ([, c], { theme }) =>
49
+ theme.quasar?.components?.['q-color-picker__header-content'] ??
50
+ `relative bg-[#fff]`
56
51
  ],
52
+
57
53
  [
58
54
  /^q-color-picker__header-content--light$/,
59
- ([, c], { theme }) => `
60
- text-black
61
- `
55
+ ([, c], { theme }) =>
56
+ theme.quasar?.components?.['q-color-picker__header-content--light'] ??
57
+ `text-[#000]`
62
58
  ],
59
+
63
60
  [
64
61
  /^q-color-picker__header-content--dark$/,
65
- ([, c], { theme }) => `
66
- text-white
67
- [&_.q-tab--inactive:before]:(content-empty absolute top-0 right-0 bottom-0 left-0 bg-white bg-op-200)
68
- `
69
- ],
70
- [
71
- /^q-color-picker__header-banner$/,
72
- ([, c], { theme }) => `
73
- h-36px
74
- `
62
+ ([, c], { theme }) =>
63
+ theme.quasar?.components?.['q-color-picker__header-content--dark'] ??
64
+ `text-[#fff] [&_.q-tab--inactive:before]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] bg-[rgba(255,_255,_255,_0.2)])`
75
65
  ],
66
+
76
67
  [
77
68
  /^q-color-picker__header-bg$/,
78
- ([, c], { theme }) => `
79
- bg-white bg-[url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==)')]
80
-
81
- `
69
+ ([, c], { theme }) =>
70
+ theme.quasar?.components?.['q-color-picker__header-bg'] ??
71
+ `bg-[#fff] bg-[url('data:image/png]`
82
72
  ],
73
+
83
74
  [
84
75
  /^q-color-picker__footer$/,
85
- ([, c], { theme }) => `
86
- h-36px
87
- [&_.q-tab]:(min-h-36px! h-36px!)
88
- [&_.q-tab--inactive]:(bg-gradient-to-b from-black/0.3 via-black/0.15 to-black/0.1)
89
- `
76
+ ([, c], { theme }) =>
77
+ theme.quasar?.components?.['q-color-picker__footer'] ??
78
+ `h-[36px] [&_.q-tab]:(!min-h-[36px] !h-[36px]) [&_.q-tab--inactive]:(bg-[linear-gradient(_to_bottom,_rgba(0,_0,_0,_0.3)_0%,_rgba(0,_0,_0,_0.15)_25%,_rgba(0,_0,_0,_0.1)_)])`
90
79
  ],
80
+
91
81
  [
92
82
  /^q-color-picker__spectrum$/,
93
- ([, c], { theme }) => `
94
- h-full w-full
95
- `
83
+ ([, c], { theme }) =>
84
+ theme.quasar?.components?.['q-color-picker__spectrum'] ?? `w-full h-full`
96
85
  ],
86
+
97
87
  [
98
88
  /^q-color-picker__spectrum-tab$/,
99
- ([, c], { theme }) => `
100
- p-0!
101
- `
89
+ ([, c], { theme }) =>
90
+ theme.quasar?.components?.['q-color-picker__spectrum-tab'] ?? `!p-0`
102
91
  ],
92
+
103
93
  [
104
- /^q-color-picker__spectrum--white$/,
105
- ([, c], { theme }) => `
106
- bg-gradient-to-r from-white to-black
107
- `
94
+ /^q-color-picker__spectrum-white$/,
95
+ ([, c], { theme }) =>
96
+ theme.quasar?.components?.['q-color-picker__spectrum-white'] ??
97
+ `bg-[linear-gradient(to_right,_#fff,_rgba(255,_255,_255,_0))]`
108
98
  ],
99
+
109
100
  [
110
- /^q-color-picker__spectrum--white$/,
111
- ([, c], { theme }) => `
112
- bg-gradient-to-t from-black to-black
113
- `
101
+ /^q-color-picker__spectrum-black$/,
102
+ ([, c], { theme }) =>
103
+ theme.quasar?.components?.['q-color-picker__spectrum-black'] ??
104
+ `bg-[linear-gradient(to_top,_#000,_rgba(0,_0,_0,_0))]`
114
105
  ],
106
+
115
107
  [
116
- /^q-color-picker__spectrum--circle$/,
117
- ([, c], { theme }) => `
118
- w-10px h-10px shadow-sm border-rd-50% translate-x--5px translate-y--5px
119
- `
108
+ /^q-color-picker__spectrum-circle$/,
109
+ ([, c], { theme }) =>
110
+ theme.quasar?.components?.['q-color-picker__spectrum-circle'] ??
111
+ `w-[10px] h-[10px] [box-shadow:0_0_0_1.5px_#fff,_inset_0_0_1px_1px_rgba(0,_0,_0,_0.3),_0_0_1px_2px_rgba(0,_0,_0,_0.4)] rounded-[50%] -translate-x-[5px] -translate-y-[5px]`
120
112
  ],
113
+
121
114
  [
122
115
  /^q-color-picker__hue$/,
123
- ([, c], { theme }) => `
124
- [&_.q-slider-track]:(bg-gradient-to-r! from-[#f00] via-[#ff0/17] via-[#0f0/33] via-[#off/50] via-[#00f/67] via-[#f0f/83] to-[#f00] op-100)
125
- `
116
+ ([, c], { theme }) =>
117
+ theme.quasar?.components?.['q-color-picker__hue'] ??
118
+ `[&_.q-slider\\_\\_track]:(!bg-[linear-gradient(_to_right,_#f00_0%,_#ff0_17%,_#0f0_33%,_#0ff_50%,_#00f_67%,_#f0f_83%,_#f00_100%_)] opacity-100)`
126
119
  ],
120
+
127
121
  [
128
122
  /^q-color-picker__alpha$/,
129
- ([, c], { theme }) => `
130
- [&_.q-slider\\_\\_track-container]:(pt-0)
131
- [&_.q-slider\\_\\_track:before]:(content-empty absolute top-0 right-0 bottom-0 left-0 border-rd-inherit bg-gradient-to-r from-black to-[#757575])
132
- `
123
+ ([, c], { theme }) =>
124
+ theme.quasar?.components?.['q-color-picker__alpha'] ??
125
+ `[&_.q-slider\\_\\_track-container]:(pt-0) [&_.q-slider\\_\\_track:before]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] [border-radius:inherit] bg-[linear-gradient(90deg,_rgba(255,_255,_255,_0),_#757575)])`
133
126
  ],
127
+
134
128
  [
135
129
  /^q-color-picker__sliders$/,
136
- ([, c], { theme }) => `
137
- pt-0 pb-0 pl-16px pr-16px
138
- [&_.q-slider\\_\\_thumb]:(text-[#424242])
139
- [&_.q-slider\\_\\_thumb_path]:(stroke-2px fill-transparent)
140
- [&_.q-slider--active_path]:(stroke-3px)
141
- `
130
+ ([, c], { theme }) =>
131
+ theme.quasar?.components?.['q-color-picker__sliders'] ??
132
+ `px-[16px] py-[0] [&_.q-slider\\_\\_thumb]:(text-[#424242]) [&_.q-slider\\_\\_thumb_path]:(stroke-[2px] fill-[transparent]) [&_.q-slider--active_path]:(stroke-[3px])`
142
133
  ],
134
+
143
135
  [
144
136
  /^q-color-picker__tune-tab$/,
145
- ([, c], { theme }) => `
146
- [&_.q-slider]:(ml-18px mr-18px)
147
- [&_input]:(text-11px border-solid border-1 border-color-[#e0e0e0] border-rd-4px w-3.5em)
148
- `
137
+ ([, c], { theme }) =>
138
+ theme.quasar?.components?.['q-color-picker__tune-tab'] ??
139
+ `[&_.q-slider]:(ml-[18px] mr-[18px]) [&_input]:(text-[11px] border-[1px] border-solid border-[#e0e0e0] rounded-[4px] w-[3.5em])`
149
140
  ],
141
+
150
142
  [
151
143
  /^q-color-picker__palette-tab$/,
152
- ([, c], { theme }) => `
153
- p-0!
154
- `
144
+ ([, c], { theme }) =>
145
+ theme.quasar?.components?.['q-color-picker__palette-tab'] ?? `!p-0`
155
146
  ],
147
+
156
148
  [
157
149
  /^q-color-picker__palette-rows--editable$/,
158
- ([, c], { theme }) => `
159
- [&_.q-color-picker__cube]:(cursor-pointer)
160
- `
150
+ ([, c], { theme }) =>
151
+ theme.quasar?.components?.['q-color-picker__palette-rows--editable'] ??
152
+ `[&_.q-color-picker\\_\\_cube]:(cursor-pointer)`
161
153
  ],
154
+
162
155
  [
163
156
  /^q-color-picker__cube$/,
164
- ([, c], { theme }) => `
165
- pb-10% w-10%!
166
- `
157
+ ([, c], { theme }) =>
158
+ theme.quasar?.components?.['q-color-picker__cube'] ?? `pb-[10%] !w-[10%]`
167
159
  ],
160
+
168
161
  [
169
162
  /^q-color-picker--dark$/,
170
- ([, c], { theme }) => `
171
- shadow-sm
172
- [&_.q-color-picker\\_\\_tune-tab_input]:(border-solid border-1px border-black border-op-30)
173
- [&_.q-slider__thumb]:(text-[#fafafa])
174
- `
163
+ ([, c], { theme }) =>
164
+ theme.quasar?.components?.['q-color-picker--dark'] ??
165
+ `[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)] [&_.q-color-picker\\_\\_tune-tab_input]:(border-[1px] border-solid border-[rgba(255,255,255,0.3)]) [&_.q-slider\\_\\_thumb]:(text-[#fafafa])`
175
166
  ]
176
167
  ]
177
168
 
@@ -5,17 +5,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-date$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-date'] ??
8
9
  `inline-flex [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] bg-[#fff] w-[290px] min-w-[290px] max-w-full`
9
10
  ],
10
11
 
11
12
  [
12
13
  /^q-date--bordered$/,
13
- ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-date--bordered'] ??
16
+ `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
14
17
  ],
15
18
 
16
19
  [
17
20
  /^q-date__header$/,
18
21
  ([, c], { theme }) =>
22
+ theme.quasar?.components?.['q-date__header'] ??
19
23
  `[border-top-left-radius:inherit] text-[#fff] p-[16px] bg-primary`
20
24
  ],
21
25
 
@@ -23,7 +27,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
23
27
 
24
28
  [
25
29
  /^q-date__content$/,
26
- ([, c], { theme }) => `outline-0 [&_.q-btn]:(font-normal)`
30
+ ([, c], { theme }) =>
31
+ theme.quasar?.components?.['q-date__content'] ??
32
+ `outline-0 [&_.q-btn]:(font-normal)`
27
33
  ],
28
34
 
29
35
  [/^q-date__main$/, ([, c], { theme }) => `outline-0`],
@@ -31,6 +37,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
31
37
  [
32
38
  /^q-date__header-link$/,
33
39
  ([, c], { theme }) =>
40
+ theme.quasar?.components?.['q-date__header-link'] ??
34
41
  `opacity-[0.64] outline-0 [transition:opacity_0.3s_ease-out] [&:hover]:(opacity-100) [&:focus]:(opacity-100)`
35
42
  ],
36
43
 
@@ -38,33 +45,43 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
38
45
 
39
46
  [
40
47
  /^q-date__header-subtitle$/,
41
- ([, c], { theme }) => `text-[14px] leading-[1.75] tracking-[0.00938em]`
48
+ ([, c], { theme }) =>
49
+ theme.quasar?.components?.['q-date__header-subtitle'] ??
50
+ `text-[14px] leading-[1.75] tracking-[0.00938em]`
42
51
  ],
43
52
 
44
53
  [
45
54
  /^q-date__header-title-label$/,
46
- ([, c], { theme }) => `text-[24px] leading-[1.2] tracking-[0.00735em]`
55
+ ([, c], { theme }) =>
56
+ theme.quasar?.components?.['q-date__header-title-label'] ??
57
+ `text-[24px] leading-[1.2] tracking-[0.00735em]`
47
58
  ],
48
59
 
49
60
  [
50
61
  /^q-date__view$/,
51
- ([, c], { theme }) => `h-full w-full min-h-[290px] p-[16px]`
62
+ ([, c], { theme }) =>
63
+ theme.quasar?.components?.['q-date__view'] ??
64
+ `h-full w-full min-h-[290px] p-[16px]`
52
65
  ],
53
66
 
54
67
  [
55
68
  /^q-date__navigation$/,
56
69
  ([, c], { theme }) =>
70
+ theme.quasar?.components?.['q-date__navigation'] ??
57
71
  `h-[12.5%] [&_>_div:first-child]:(w-[8%] min-w-[24px] justify-end) [&_>_div:last-child]:(w-[8%] min-w-[24px] justify-start)`
58
72
  ],
59
73
 
60
74
  [
61
75
  /^q-date__calendar-weekdays$/,
62
- ([, c], { theme }) => `h-[12.5%] [&_>_div]:(opacity-[0.38] text-[12px])`
76
+ ([, c], { theme }) =>
77
+ theme.quasar?.components?.['q-date__calendar-weekdays'] ??
78
+ `h-[12.5%] [&_>_div]:(opacity-[0.38] text-[12px])`
63
79
  ],
64
80
 
65
81
  [
66
82
  /^q-date__calendar-item$/,
67
83
  ([, c], { theme }) =>
84
+ theme.quasar?.components?.['q-date__calendar-item'] ??
68
85
  `inline-flex items-center justify-center align-middle !w-[14.285%] !h-[12.5%] relative p-px [&:after]:(content-empty absolute pointer-events-none top-px right-0 bottom-px left-0 border-dashed border-transparent border) [&_>_div]:(w-[30px] h-[30px] rounded-[50%]) [&_button]:(w-[30px] h-[30px] rounded-[50%]) [&_>_div]:(leading-[30px] text-center) [&_>_button]:(leading-[22px])`
69
86
  ],
70
87
 
@@ -75,48 +92,57 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
75
92
  [
76
93
  /^q-date__range$/,
77
94
  ([, c], { theme }) =>
95
+ theme.quasar?.components?.['q-date__range'] ??
78
96
  `[&:before]:(content-empty bg-current absolute top-px bottom-px left-0 right-0 opacity-30) [&:nth-child(7n-6):before]:(rounded-tl-none rounded-bl-none) [&:nth-child(7n):before]:(rounded-tr-none rounded-br-none)`
79
97
  ],
80
98
 
81
99
  [
82
100
  /^q-date__range-from$/,
83
101
  ([, c], { theme }) =>
102
+ theme.quasar?.components?.['q-date__range-from'] ??
84
103
  `[&:before]:(content-empty bg-current absolute top-px bottom-px left-0 right-0 opacity-30) [&:nth-child(7n-6):before]:(rounded-tl-none rounded-bl-none) [&:nth-child(7n):before]:(rounded-tr-none rounded-br-none) [&:before]:(left-2/4)`
85
104
  ],
86
105
 
87
106
  [
88
107
  /^q-date__range-to$/,
89
108
  ([, c], { theme }) =>
109
+ theme.quasar?.components?.['q-date__range-to'] ??
90
110
  `[&:before]:(content-empty bg-current absolute top-px bottom-px left-0 right-0 opacity-30) [&:nth-child(7n-6):before]:(rounded-tl-none rounded-bl-none) [&:nth-child(7n):before]:(rounded-tr-none rounded-br-none) [&:before]:(right-2/4)`
91
111
  ],
92
112
 
93
113
  [
94
114
  /^q-date__edit-range$/,
95
115
  ([, c], { theme }) =>
116
+ theme.quasar?.components?.['q-date__edit-range'] ??
96
117
  `[&:after]:() [&:nth-child(7n-6):after]:(rounded-tl-none rounded-bl-none) [&:nth-child(7n):after]:(rounded-tr-none rounded-br-none)`
97
118
  ],
98
119
 
99
120
  [
100
121
  /^q-date__edit-range-from$/,
101
122
  ([, c], { theme }) =>
123
+ theme.quasar?.components?.['q-date__edit-range-from'] ??
102
124
  `[&:after]:(left-[4px] [border-left-color:currentColor] [border-top-color:currentColor] [border-bottom-color:currentColor] rounded-tl-[28px] rounded-bl-[28px])`
103
125
  ],
104
126
 
105
127
  [
106
128
  /^q-date__edit-range-from-to$/,
107
129
  ([, c], { theme }) =>
130
+ theme.quasar?.components?.['q-date__edit-range-from-to'] ??
108
131
  `[&:after]:(left-[4px] [border-left-color:currentColor] [border-top-color:currentColor] [border-bottom-color:currentColor] rounded-tl-[28px] rounded-bl-[28px]) [&:after]:(right-[4px] [border-right-color:currentColor] [border-top-color:currentColor] [border-bottom-color:currentColor] rounded-tr-[28px] rounded-br-[28px])`
109
132
  ],
110
133
 
111
134
  [
112
135
  /^q-date__edit-range-to$/,
113
136
  ([, c], { theme }) =>
137
+ theme.quasar?.components?.['q-date__edit-range-to'] ??
114
138
  `[&:after]:(right-[4px] [border-right-color:currentColor] [border-top-color:currentColor] [border-bottom-color:currentColor] rounded-tr-[28px] rounded-br-[28px])`
115
139
  ],
116
140
 
117
141
  [
118
142
  /^q-date__calendar-days-container$/,
119
- ([, c], { theme }) => `h-3/4 min-h-[192px]`
143
+ ([, c], { theme }) =>
144
+ theme.quasar?.components?.['q-date__calendar-days-container'] ??
145
+ `h-3/4 min-h-[192px]`
120
146
  ],
121
147
 
122
148
  [/^q-date__calendar-days$/, ([, c], { theme }) => `[&_>_div]:(!h-1/6)`],
@@ -124,12 +150,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
124
150
  [
125
151
  /^q-date__event$/,
126
152
  ([, c], { theme }) =>
153
+ theme.quasar?.components?.['q-date__event'] ??
127
154
  `absolute bottom-[2px] left-2/4 h-[5px] w-[8px] rounded-[5px] [transform:translate3d(-50%,_0,_0)] bg-primary`
128
155
  ],
129
156
 
130
157
  [
131
158
  /^q-date__today$/,
132
- ([, c], { theme }) => `[box-shadow:0_0_1px_0_currentColor]`
159
+ ([, c], { theme }) =>
160
+ theme.quasar?.components?.['q-date__today'] ??
161
+ `[box-shadow:0_0_1px_0_currentColor]`
133
162
  ],
134
163
 
135
164
  [/^q-date__years-content$/, ([, c], { theme }) => `px-[8px] py-[0]`],
@@ -141,6 +170,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
141
170
  [
142
171
  /^q-date--readonly$/,
143
172
  ([, c], { theme }) =>
173
+ theme.quasar?.components?.['q-date--readonly'] ??
144
174
  `[&_.q-date\\_\\_header]:(pointer-events-none) [&_.q-date\\_\\_content]:(pointer-events-none) [&_.q-date\\_\\_navigation]:(hidden)`
145
175
  ],
146
176
 
@@ -149,23 +179,28 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
149
179
  [
150
180
  /^q-date--portrait-standard$/,
151
181
  ([, c], { theme }) =>
182
+ theme.quasar?.components?.['q-date--portrait-standard'] ??
152
183
  `[&_.q-date\\_\\_content]:(h-[calc(100% - 86px)]) [&_.q-date\\_\\_header]:([border-top-right-radius:inherit] h-[86px]) [&_.q-date\\_\\_header-title]:(items-center h-[30px])`
153
184
  ],
154
185
 
155
186
  [
156
187
  /^q-date--portrait-minimal$/,
157
- ([, c], { theme }) => `[&_.q-date\\_\\_content]:(h-full)`
188
+ ([, c], { theme }) =>
189
+ theme.quasar?.components?.['q-date--portrait-minimal'] ??
190
+ `[&_.q-date\\_\\_content]:(h-full)`
158
191
  ],
159
192
 
160
193
  [
161
194
  /^q-date--landscape$/,
162
195
  ([, c], { theme }) =>
196
+ theme.quasar?.components?.['q-date--landscape'] ??
163
197
  `flex-row items-stretch min-w-[420px] [&_>_div]:(flex flex-col) [&_.q-date\\_\\_content]:(h-full)`
164
198
  ],
165
199
 
166
200
  [
167
201
  /^q-date--landscape-standard$/,
168
202
  ([, c], { theme }) =>
203
+ theme.quasar?.components?.['q-date--landscape-standard'] ??
169
204
  `min-w-[420px] [&_.q-date\\_\\_header]:([border-bottom-left-radius:inherit] min-w-[110px] w-[110px]) [&_.q-date\\_\\_header-title]:(flex-col) [&_.q-date\\_\\_header-today]:(mt-[12px] -ml-[8px])`
170
205
  ],
171
206
 
@@ -174,6 +209,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
174
209
  [
175
210
  /^q-date--dark$/,
176
211
  ([, c], { theme }) =>
212
+ theme.quasar?.components?.['q-date--dark'] ??
177
213
  `[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)] border-[rgba(255,_255,_255,_0.28)]`
178
214
  ]
179
215
  ]