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
@@ -10,184 +10,243 @@ body.desktop .q-table > tbody > tr:not(.q-tr--no-hover):hover > td:not(.q-td--no
10
10
  }
11
11
  ]
12
12
  const shortcuts: UserShortcuts<QuasarTheme> = [
13
- [/^q-markup-table$/, ([, c], { theme }) => `overflow-auto bg-[#fff]`],
13
+ [
14
+ /^q-markup-table$/,
15
+ ([, c], { theme }) =>
16
+ theme.quasar?.components?.['q-markup-table'] ?? `overflow-auto bg-[#fff]`
17
+ ],
18
+
14
19
  [
15
20
  /^q-table$/,
16
21
  ([, c], { theme }) =>
17
- `w-full max-w-full border-separate [border-spacing:0] [&_thead_tr]:(h-[48px]) [&_tbody_td]:(h-[48px]) [&_th]:(font-medium text-[12px] select-none) [&_th.sortable]:(cursor-pointer) [&_th.sortable:hover_.q-table\\_\\_sort-icon]:(opacity-[0.64]) [&_th.sorted_.q-table\\_\\_sort-icon]:(!opacity-[0.86]) [&_th.sort-desc_.q-table\\_\\_sort-icon]:(rotate-180) [&_th]:(px-[16px] py-[7px] [background-color:inherit]) [&_td]:(px-[16px] py-[7px] [background-color:inherit]) [&_thead]:(border-solid border-0) [&_td]:(border-solid border-0) [&_th]:(border-solid border-0) [&_tbody_td]:(text-[13px]) [&_thead]:(border-[rgba(0,_0,_0,_0.12)]) [&_tr]:(border-[rgba(0,_0,_0,_0.12)]) [&_th]:(border-[rgba(0,_0,_0,_0.12)]) [&_td]:(border-[rgba(0,_0,_0,_0.12)]) [&_tbody_td]:(relative) [&_tbody_td:before]:(absolute top-0 left-0 right-0 bottom-0 pointer-events-none) [&_tbody_td:after]:(absolute top-0 left-0 right-0 bottom-0 pointer-events-none) [&_tbody_td:before]:(bg-[rgba(0,_0,_0,_0.03)]) [&_tbody_td:after]:(bg-[rgba(0,_0,_0,_0.06)]) [&_tbody_tr.selected_td:after]:(content-empty) [&_.q-virtual-scroll\\_\\_padding_tr]:(!h-[0]) [&_.q-virtual-scroll\\_\\_padding_td]:(!p-0)
18
- [&_.q-virtual-scroll\\_\\_padding_tr]:(h-0!)
19
- [&_.q-virtual-scroll\\_\\_padding_td]:(p-0!)`
22
+ theme.quasar?.components?.['q-table'] ??
23
+ `w-full max-w-full border-separate [border-spacing:0] [&_thead_tr]:(h-[48px]) [&_tbody_td]:(h-[48px]) [&_th]:(font-medium text-[12px] select-none) [&_th.sortable]:(cursor-pointer) [&_th.sortable:hover_.q-table\\_\\_sort-icon]:(opacity-[0.64]) [&_th.sorted_.q-table\\_\\_sort-icon]:(!opacity-[0.86]) [&_th.sort-desc_.q-table\\_\\_sort-icon]:(rotate-180) [&_th]:(px-[16px] py-[7px] [background-color:inherit]) [&_td]:(px-[16px] py-[7px] [background-color:inherit]) [&_thead]:(border-solid border-[0]) [&_td]:(border-solid border-[0]) [&_th]:(border-solid border-[0]) [&_tbody_td]:(text-[13px]) [&_thead]:(border-[rgba(0,_0,_0,_0.12)]) [&_tr]:(border-[rgba(0,_0,_0,_0.12)]) [&_th]:(border-[rgba(0,_0,_0,_0.12)]) [&_td]:(border-[rgba(0,_0,_0,_0.12)]) [&_tbody_td]:(relative) [&_tbody_td:before]:(absolute top-[0] left-[0] right-[0] bottom-[0] pointer-events-none) [&_tbody_td:after]:(absolute top-[0] left-[0] right-[0] bottom-[0] pointer-events-none) [&_tbody_td:before]:(bg-[rgba(0,_0,_0,_0.03)]) [&_tbody_td:after]:(bg-[rgba(0,_0,_0,_0.06)]) [&_tbody_tr.selected_td:after]:(content-['']) [&_.q-virtual-scroll\\_\\_padding_tr]:(!h-[0]) [&_.q-virtual-scroll\\_\\_padding_td]:(!p-0)`
20
24
  ],
21
25
 
22
26
  [
23
27
  /^q-table__card$/,
24
28
  ([, c], { theme }) =>
29
+ theme.quasar?.components?.['q-table__card'] ??
25
30
  `text-[#000] bg-[#fff] 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-table\\_\\_middle]:(flex-auto) [&_.q-table\\_\\_top]:(flex-[0_0_auto]) [&_.q-table\\_\\_bottom]:(flex-[0_0_auto])`
26
31
  ],
27
32
 
28
33
  [
29
34
  /^q-table__container$/,
30
35
  ([, c], { theme }) =>
36
+ theme.quasar?.components?.['q-table__container'] ??
31
37
  `relative [&_>_div:first-child]:([border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_div:last-child]:([border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-inner-loading]:([border-radius:inherit!important])`
32
38
  ],
33
39
 
34
40
  [
35
41
  /^q-table__top$/,
36
42
  ([, c], { theme }) =>
43
+ theme.quasar?.components?.['q-table__top'] ??
37
44
  `px-[16px] py-[12px] [&_.q-table\\_\\_control]:(flex-wrap)`
38
45
  ],
39
46
 
40
47
  [
41
48
  /^q-table__title$/,
42
- ([, c], { theme }) => `text-[20px] tracking-[0.005em] font-normal`
49
+ ([, c], { theme }) =>
50
+ theme.quasar?.components?.['q-table__title'] ??
51
+ `text-[20px] tracking-[0.005em] font-normal`
43
52
  ],
44
53
 
45
- [/^q-table__separator$/, ([, c], { theme }) => `!min-w-[8px]`],
54
+ [
55
+ /^q-table__separator$/,
56
+ ([, c], { theme }) =>
57
+ theme.quasar?.components?.['q-table__separator'] ?? `!min-w-[8px]`
58
+ ],
46
59
 
47
60
  [
48
61
  /^q-table__progress$/,
49
62
  ([, c], { theme }) =>
50
- `!h-[0] [&_th]:(!p-0 !border-0) [&_.q-linear-progress]:(absolute bottom-0)`
63
+ theme.quasar?.components?.['q-table__progress'] ??
64
+ `!h-[0] [&_th]:(!p-0 !border-[0]) [&_.q-linear-progress]:(absolute bottom-[0])`
51
65
  ],
52
66
 
53
- [/^q-table__middle$/, ([, c], { theme }) => `max-w-full`],
67
+ [
68
+ /^q-table__middle$/,
69
+ ([, c], { theme }) =>
70
+ theme.quasar?.components?.['q-table__middle'] ?? `max-w-full`
71
+ ],
54
72
 
55
73
  [
56
74
  /^q-table__bottom$/,
57
75
  ([, c], { theme }) =>
76
+ theme.quasar?.components?.['q-table__bottom'] ??
58
77
  `min-h-[50px] pl-[16px] pr-[14px] py-[4px] text-[12px] [&_.q-table\\_\\_control]:(min-h-[24px]) [border-top:1px_solid_rgba(0,_0,_0,_0.12)]`
59
78
  ],
60
79
 
61
80
  [
62
81
  /^q-table__bottom-nodata-icon$/,
63
- ([, c], { theme }) => `text-[200%] mr-[8px]`
82
+ ([, c], { theme }) =>
83
+ theme.quasar?.components?.['q-table__bottom-nodata-icon'] ??
84
+ `text-[200%] mr-[8px]`
64
85
  ],
65
86
 
66
- [/^q-table__bottom-item$/, ([, c], { theme }) => `mr-[16px]`],
87
+ [
88
+ /^q-table__bottom-item$/,
89
+ ([, c], { theme }) =>
90
+ theme.quasar?.components?.['q-table__bottom-item'] ?? `mr-[16px]`
91
+ ],
67
92
 
68
- [/^q-table__control$/, ([, c], { theme }) => `flex items-center`],
93
+ [
94
+ /^q-table__control$/,
95
+ ([, c], { theme }) =>
96
+ theme.quasar?.components?.['q-table__control'] ?? `flex items-center`
97
+ ],
69
98
 
70
99
  [
71
100
  /^q-table__sort-icon$/,
72
101
  ([, c], { theme }) =>
102
+ theme.quasar?.components?.['q-table__sort-icon'] ??
73
103
  `[transition:transform_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)] opacity-0 text-[120%]`
74
104
  ],
75
105
 
76
- [/^q-table__sort-icon--left$/, ([, c], { theme }) => `ml-[4px]`],
106
+ [
107
+ /^q-table__sort-icon--left$/,
108
+ ([, c], { theme }) =>
109
+ theme.quasar?.components?.['q-table__sort-icon--left'] ?? `ml-[4px]`
110
+ ],
77
111
 
78
- [/^q-table__sort-icon--center$/, ([, c], { theme }) => `ml-[4px]`],
112
+ [
113
+ /^q-table__sort-icon--center$/,
114
+ ([, c], { theme }) =>
115
+ theme.quasar?.components?.['q-table__sort-icon--center'] ?? `ml-[4px]`
116
+ ],
79
117
 
80
- [/^q-table__sort-icon--right$/, ([, c], { theme }) => `mr-[4px]`],
118
+ [
119
+ /^q-table__sort-icon--right$/,
120
+ ([, c], { theme }) =>
121
+ theme.quasar?.components?.['q-table__sort-icon--right'] ?? `mr-[4px]`
122
+ ],
81
123
 
82
- [/^q-table--col-auto-width$/, ([, c], { theme }) => `w-px`],
124
+ [
125
+ /^q-table--col-auto-width$/,
126
+ ([, c], { theme }) =>
127
+ theme.quasar?.components?.['q-table--col-auto-width'] ?? `w-px`
128
+ ],
83
129
 
84
130
  [
85
131
  /^q-table__card--dark$/,
86
132
  ([, c], { theme }) =>
133
+ theme.quasar?.components?.['q-table__card--dark'] ??
87
134
  `[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)]`
88
135
  ],
89
136
 
90
137
  [
91
138
  /^q-table--dark$/,
92
139
  ([, c], { theme }) =>
93
- `[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)] [&_.q-table\\_\\_bottom]:(border-[rgba(255,_255,_255,_0.28)]) [&_thead]:(border-[rgba(255,_255,_255,_0.28)]) [&_tr]:(border-[rgba(255,_255,_255,_0.28)]) [&_th]:(border-[rgba(255,_255,_255,_0.28)]) [&_td]:(border-[rgba(255,_255,_255,_0.28)]) [&_tbody_td:before]:(bg-[rgba(255,_255,_255,_0.07)]) [&_tbody_td:after]:(bg-[rgba(255,_255,_255,_0.1)])`
140
+ theme.quasar?.components?.['q-table--dark'] ??
141
+ `[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)] [&_.q-table\\_\\_bottom]:(border-[rgba(255,_255,_255,_0.28)]) [&_thead]:(border-[rgba(255,_255,_255,_0.28)]) [&_tr]:(border-[rgba(255,_255,_255,_0.28)]) [&_th]:(border-[rgba(255,_255,_255,_0.28)]) [&_td]:(border-[rgba(255,_255,_255,_0.28)]) [&_tbody_td:before]:(bg-[rgba(255,_255,_255,_0.07)]) [&_tbody_td:after]:(bg-[rgba(255,_255,_255,_0.1)]) [&.q-table--vertical-separator_.q-table\\_\\_top]:(border-[rgba(255,_255,_255,_0.28)]) [&.q-table--cell-separator_.q-table\\_\\_top]:(border-[rgba(255,_255,_255,_0.28)])`
94
142
  ],
95
143
 
96
- [/^q-table--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
144
+ [
145
+ /^q-table--flat$/,
146
+ ([, c], { theme }) =>
147
+ theme.quasar?.components?.['q-table--flat'] ?? `[box-shadow:none]`
148
+ ],
97
149
 
98
150
  [
99
151
  /^q-table--bordered$/,
100
- ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
152
+ ([, c], { theme }) =>
153
+ theme.quasar?.components?.['q-table--bordered'] ??
154
+ `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
101
155
  ],
102
156
 
103
- [/^q-table--square$/, ([, c], { theme }) => `rounded-none`],
157
+ [
158
+ /^q-table--square$/,
159
+ ([, c], { theme }) =>
160
+ theme.quasar?.components?.['q-table--square'] ?? `rounded-none`
161
+ ],
104
162
 
105
- [/^q-table__linear-progress$/, ([, c], { theme }) => `h-[2px]`],
163
+ [
164
+ /^q-table__linear-progress$/,
165
+ ([, c], { theme }) =>
166
+ theme.quasar?.components?.['q-table__linear-progress'] ?? `h-[2px]`
167
+ ],
106
168
 
107
169
  [
108
170
  /^q-table--no-wrap$/,
109
171
  ([, c], { theme }) =>
172
+ theme.quasar?.components?.['q-table--no-wrap'] ??
110
173
  `[&_th]:(whitespace-nowrap) [&_td]:(whitespace-nowrap)`
111
174
  ],
112
175
 
113
176
  [
114
177
  /^q-table--grid$/,
115
178
  ([, c], { theme }) =>
116
- `[box-shadow:none] rounded-[4px] [&_.q-table\\_\\_top]:(pb-[4px]) [&_.q-table\\_\\_middle]:(min-h-[2px] mb-[4px]) [&_.q-table\\_\\_middle_thead]:(!border-0) [&_.q-table\\_\\_middle_thead_th]:(!border-0) [&_.q-table\\_\\_linear-progress]:(bottom-0) [&_.q-table\\_\\_bottom]:([border-top:0]) [&_.q-table\\_\\_grid-content]:(flex-auto)`
179
+ theme.quasar?.components?.['q-table--grid'] ??
180
+ `[box-shadow:none] rounded-[4px] [&_.q-table\\_\\_top]:(pb-[4px]) [&_.q-table\\_\\_middle]:(min-h-[2px] mb-[4px]) [&_.q-table\\_\\_middle_thead]:(!border-[0]) [&_.q-table\\_\\_middle_thead_th]:(!border-[0]) [&_.q-table\\_\\_linear-progress]:(bottom-[0]) [&_.q-table\\_\\_bottom]:([border-top:0]) [&_.q-table\\_\\_grid-content]:(flex-auto) [&.fullscreen]:([background:inherit])`
117
181
  ],
118
182
 
119
- [/^q-table--grid.fullscreen$/, ([, c], { theme }) => `[background:inherit]`],
120
-
121
183
  [
122
184
  /^q-table__grid-item-card$/,
123
185
  ([, c], { theme }) =>
186
+ theme.quasar?.components?.['q-table__grid-item-card'] ??
124
187
  `align-top p-[12px] [&_.q-separator]:(mx-[0] my-[12px])`
125
188
  ],
126
189
 
127
190
  [
128
191
  /^q-table__grid-item-row$/,
129
- ([, c], { theme }) => `[&_+_.q-table\\_\\_grid-item-row]:(mt-[8px])`
192
+ ([, c], { theme }) =>
193
+ theme.quasar?.components?.['q-table__grid-item-row'] ??
194
+ `[&_+_.q-table\\_\\_grid-item-row]:(mt-[8px])`
130
195
  ],
131
196
 
132
197
  [
133
198
  /^q-table__grid-item-title$/,
134
- ([, c], { theme }) => `opacity-[0.54] font-medium text-[12px]`
199
+ ([, c], { theme }) =>
200
+ theme.quasar?.components?.['q-table__grid-item-title'] ??
201
+ `opacity-[0.54] font-medium text-[12px]`
135
202
  ],
136
203
 
137
- [/^q-table__grid-item-value$/, ([, c], { theme }) => `text-[13px]`],
204
+ [
205
+ /^q-table__grid-item-value$/,
206
+ ([, c], { theme }) =>
207
+ theme.quasar?.components?.['q-table__grid-item-value'] ?? `text-[13px]`
208
+ ],
138
209
 
139
210
  [
140
211
  /^q-table__grid-item$/,
141
212
  ([, c], { theme }) =>
213
+ theme.quasar?.components?.['q-table__grid-item'] ??
142
214
  `p-[4px] [transition:transform_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]`
143
215
  ],
144
216
 
145
- [/^q-table__grid-item--selected$/, ([, c], { theme }) => `scale-[0.95]`],
217
+ [
218
+ /^q-table__grid-item--selected$/,
219
+ ([, c], { theme }) =>
220
+ theme.quasar?.components?.['q-table__grid-item--selected'] ??
221
+ `scale-[0.95]`
222
+ ],
146
223
 
147
224
  [
148
225
  /^q-table--horizontal-separator$/,
149
226
  ([, c], { theme }) =>
227
+ theme.quasar?.components?.['q-table--horizontal-separator'] ??
150
228
  `[&_thead_th]:(border-b) [&_tbody_tr:not(:last-child)_>_td]:(border-b)`
151
229
  ],
152
230
 
153
231
  [
154
232
  /^q-table--cell-separator$/,
155
233
  ([, c], { theme }) =>
156
- `[&_thead_th]:(border-b) [&_tbody_tr:not(:last-child)_>_td]:(border-b) [&_td]:(border-l) [&_th]:(border-l) [&_thead_tr:last-child_th]:(border-b) [&_td:first-child]:([border-left:0]) [&_th:first-child]:([border-left:0]) [&_.q-table\\_\\_top]:([border-bottom:1px_solid_rgba(0,_0,_0,_0.12)])`
234
+ theme.quasar?.components?.['q-table--cell-separator'] ??
235
+ `[&_thead_th]:(border-b) [&_tbody_tr:not(:last-child)_>_td]:(border-b) [&_td]:(border-l) [&_th]:(border-l) [&_thead_tr:last-child_th]:(border-b) [&.q-table--loading_tr:nth-last-child(2)_th]:(border-b) [&_td:first-child]:([border-left:0]) [&_th:first-child]:([border-left:0]) [&_.q-table\\_\\_top]:([border-bottom:1px_solid_rgba(0,_0,_0,_0.12)])`
157
236
  ],
158
237
 
159
238
  [
160
239
  /^q-table--vertical-separator$/,
161
240
  ([, c], { theme }) =>
162
- `[&_td]:(border-l) [&_th]:(border-l) [&_thead_tr:last-child_th]:(border-b) [&_td:first-child]:([border-left:0]) [&_th:first-child]:([border-left:0]) [&_.q-table\\_\\_top]:([border-bottom:1px_solid_rgba(0,_0,_0,_0.12)])`
163
- ],
164
-
165
- [
166
- /^q-table--vertical-separator.q-table--loading$/,
167
- ([, c], { theme }) => `[&_tr:nth-last-child(2)_th]:(border-b)`
168
- ],
169
-
170
- [
171
- /^q-table--cell-separator.q-table--loading$/,
172
- ([, c], { theme }) => `[&_tr:nth-last-child(2)_th]:(border-b)`
241
+ theme.quasar?.components?.['q-table--vertical-separator'] ??
242
+ `[&_td]:(border-l) [&_th]:(border-l) [&_thead_tr:last-child_th]:(border-b) [&.q-table--loading_tr:nth-last-child(2)_th]:(border-b) [&_td:first-child]:([border-left:0]) [&_th:first-child]:([border-left:0]) [&_.q-table\\_\\_top]:([border-bottom:1px_solid_rgba(0,_0,_0,_0.12)])`
173
243
  ],
174
244
 
175
245
  [
176
246
  /^q-table--dense$/,
177
247
  ([, c], { theme }) =>
248
+ theme.quasar?.components?.['q-table--dense'] ??
178
249
  `[&_.q-table\\_\\_top]:(px-[16px] py-[6px]) [&_.q-table\\_\\_bottom]:(min-h-[33px]) [&_.q-table\\_\\_sort-icon]:(text-[110%]) [&_.q-table_th]:(px-[8px] py-[4px]) [&_.q-table_td]:(px-[8px] py-[4px]) [&_.q-table_thead_tr]:(h-[28px]) [&_.q-table_tbody_tr]:(h-[28px]) [&_.q-table_tbody_td]:(h-[28px]) [&_.q-table_th:first-child]:(pl-[16px]) [&_.q-table_td:first-child]:(pl-[16px]) [&_.q-table_th:last-child]:(pr-[16px]) [&_.q-table_td:last-child]:(pr-[16px]) [&_.q-table\\_\\_bottom-item]:(mr-[8px]) [&_.q-table\\_\\_select_.q-field\\_\\_control]:(min-h-[24px] p-0) [&_.q-table\\_\\_select_.q-field\\_\\_native]:(min-h-[24px] p-0) [&_.q-table\\_\\_select_.q-field\\_\\_marginal]:(h-[24px])`
179
- ],
180
-
181
- [
182
- /^q-table--dark.q-table--vertical-separator$/,
183
- ([, c], { theme }) =>
184
- `[&_.q-table\\_\\_top]:(border-[rgba(255,_255,_255,_0.28)])`
185
- ],
186
-
187
- [
188
- /^q-table--dark.q-table--cell-separator$/,
189
- ([, c], { theme }) =>
190
- `[&_.q-table\\_\\_top]:(border-[rgba(255,_255,_255,_0.28)])`
191
250
  ]
192
251
  ]
193
252
 
@@ -5,133 +5,164 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-tab$/,
7
7
  ([, c], { theme }) =>
8
+ theme.quasar?.components?.['q-tab'] ??
8
9
  `px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s] uppercase whitespace-nowrap [color:inherit] no-underline [&_.q-badge]:(top-[3px] -right-[12px])`
9
10
  ],
10
11
 
11
- [/^q-tab--full$/, ([, c], { theme }) => `min-h-[72px]`],
12
+ [
13
+ /^q-tab--full$/,
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-tab--full'] ?? `min-h-[72px]`
16
+ ],
12
17
 
13
- [/^q-tab--no-caps$/, ([, c], { theme }) => `normal-case`],
18
+ [
19
+ /^q-tab--no-caps$/,
20
+ ([, c], { theme }) =>
21
+ theme.quasar?.components?.['q-tab--no-caps'] ?? `normal-case`
22
+ ],
14
23
 
15
24
  [
16
25
  /^q-tab__content$/,
17
26
  ([, c], { theme }) =>
18
- `[height:inherit] px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-0 -right-[16px])`
27
+ theme.quasar?.components?.['q-tab__content'] ??
28
+ `[height:inherit] px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-[0] -right-[16px])`
19
29
  ],
20
30
 
21
31
  [
22
32
  /^q-tab__content--inline$/,
23
- ([, c], { theme }) => `[&_.q-tab\\_\\_icon_+_.q-tab\\_\\_label]:(pl-[8px])`
33
+ ([, c], { theme }) =>
34
+ theme.quasar?.components?.['q-tab__content--inline'] ??
35
+ `[&_.q-tab\\_\\_icon_+_.q-tab\\_\\_label]:(pl-[8px])`
24
36
  ],
25
37
 
26
- [/^q-tab__icon$/, ([, c], { theme }) => `w-[24px] h-[24px] text-[24px]`],
38
+ [
39
+ /^q-tab__icon$/,
40
+ ([, c], { theme }) =>
41
+ theme.quasar?.components?.['q-tab__icon'] ??
42
+ `w-[24px] h-[24px] text-[24px]`
43
+ ],
27
44
 
28
45
  [
29
46
  /^q-tab__label$/,
30
- ([, c], { theme }) => `text-[14px] leading-[1.715em] font-medium`
47
+ ([, c], { theme }) =>
48
+ theme.quasar?.components?.['q-tab__label'] ??
49
+ `text-[14px] leading-[1.715em] font-medium`
31
50
  ],
32
51
 
33
52
  [
34
53
  /^q-tab__alert$/,
35
54
  ([, c], { theme }) =>
55
+ theme.quasar?.components?.['q-tab__alert'] ??
36
56
  `absolute top-[7px] -right-[9px] h-[10px] w-[10px] rounded-[50%] bg-current`
37
57
  ],
38
58
 
39
59
  [
40
60
  /^q-tab__alert-icon$/,
41
- ([, c], { theme }) => `absolute top-[2px] -right-[12px] text-[18px]`
61
+ ([, c], { theme }) =>
62
+ theme.quasar?.components?.['q-tab__alert-icon'] ??
63
+ `absolute top-[2px] -right-[12px] text-[18px]`
42
64
  ],
43
65
 
44
- [/^q-tab__indicator$/, ([, c], { theme }) => `opacity-0 h-[2px] bg-current`],
66
+ [
67
+ /^q-tab__indicator$/,
68
+ ([, c], { theme }) =>
69
+ theme.quasar?.components?.['q-tab__indicator'] ??
70
+ `opacity-0 h-[2px] bg-current`
71
+ ],
45
72
 
46
73
  [
47
74
  /^q-tab--active$/,
48
- ([, c], { theme }) => `[&_.q-tab\\_\\_indicator]:(opacity-100 origin-left)`
75
+ ([, c], { theme }) =>
76
+ theme.quasar?.components?.['q-tab--active'] ??
77
+ `[&_.q-tab\\_\\_indicator]:(opacity-100 origin-left)`
49
78
  ],
50
79
 
51
- [/^q-tab--inactive$/, ([, c], { theme }) => `opacity-[0.85]`],
80
+ [
81
+ /^q-tab--inactive$/,
82
+ ([, c], { theme }) =>
83
+ theme.quasar?.components?.['q-tab--inactive'] ?? `opacity-[0.85]`
84
+ ],
52
85
 
53
86
  [
54
87
  /^q-tabs$/,
55
88
  ([, c], { theme }) =>
89
+ theme.quasar?.components?.['q-tabs'] ??
56
90
  `relative [transition:color_0.3s,_background-color_0.3s]`
57
91
  ],
58
92
 
59
93
  [
60
- /^q-tabs--scrollable.q-tabs__arrows--outside.q-tabs--horizontal$/,
61
- ([, c], { theme }) => `pl-[36px] pr-[36px]`
94
+ /^q-tabs--scrollable$/,
95
+ ([, c], { theme }) =>
96
+ theme.quasar?.components?.['q-tabs--scrollable'] ??
97
+ `[&.q-tabs__arrows--outside.q-tabs--horizontal]:(pl-[36px] pr-[36px]) [&.q-tabs__arrows--outside.q-tabs--vertical]:(pt-[36px] pb-[36px]) [&.q-tabs__arrows--outside_.q-tabs\\_\\_arrow--faded]:(opacity-30 pointer-events-none) [&.q-tabs__arrows--inside_.q-tabs\\_\\_arrow--faded]:(hidden)`
62
98
  ],
63
99
 
64
100
  [
65
- /^q-tabs--scrollable.q-tabs__arrows--outside.q-tabs--vertical$/,
66
- ([, c], { theme }) => `pt-[36px] pb-[36px]`
101
+ /^q-tabs--not-scrollable$/,
102
+ ([, c], { theme }) =>
103
+ theme.quasar?.components?.['q-tabs--not-scrollable'] ??
104
+ `[&.q-tabs__arrows--outside]:(pl-0 pr-0) [&_.q-tabs\\_\\_arrow]:(hidden) [&_.q-tabs\\_\\_content]:([border-radius:inherit])`
67
105
  ],
68
106
 
69
107
  [
70
- /^q-tabs--scrollable.q-tabs__arrows--outside$/,
108
+ /^q-tabs__arrow$/,
71
109
  ([, c], { theme }) =>
72
- `[&_.q-tabs\\_\\_arrow--faded]:(opacity-30 pointer-events-none)`
110
+ theme.quasar?.components?.['q-tabs__arrow'] ??
111
+ `cursor-pointer text-[32px] min-w-[36px] [text-shadow:0_0_3px_#fff,_0_0_1px_#fff,_0_0_1px_#000] [transition:opacity_0.3s]`
73
112
  ],
74
113
 
75
114
  [
76
- /^q-tabs--scrollable.q-tabs__arrows--inside$/,
77
- ([, c], { theme }) => `[&_.q-tabs\\_\\_arrow--faded]:(hidden)`
115
+ /^q-tabs__content$/,
116
+ ([, c], { theme }) =>
117
+ theme.quasar?.components?.['q-tabs__content'] ??
118
+ `overflow-hidden flex-auto`
78
119
  ],
79
120
 
80
121
  [
81
- /^q-tabs--not-scrollable.q-tabs__arrows--outside$/,
82
- ([, c], { theme }) => `pl-0 pr-0`
122
+ /^q-tabs__content--align-center$/,
123
+ ([, c], { theme }) =>
124
+ theme.quasar?.components?.['q-tabs__content--align-center'] ??
125
+ `justify-center`
83
126
  ],
84
127
 
85
128
  [
86
- /^q-tabs--not-scrollable$/,
129
+ /^q-tabs__content--align-right$/,
87
130
  ([, c], { theme }) =>
88
- `[&_.q-tabs\\_\\_arrow]:(hidden) [&_.q-tabs\\_\\_content]:([border-radius:inherit])`
131
+ theme.quasar?.components?.['q-tabs__content--align-right'] ??
132
+ `justify-end`
89
133
  ],
90
134
 
91
135
  [
92
- /^q-tabs__arrow$/,
136
+ /^q-tabs__content--align-justify$/,
93
137
  ([, c], { theme }) =>
94
- `cursor-pointer text-[32px] min-w-[36px] [text-shadow:0_0_3px_#fff,_0_0_1px_#fff,_0_0_1px_#000] [transition:opacity_0.3s]`
138
+ theme.quasar?.components?.['q-tabs__content--align-justify'] ??
139
+ `[&_.q-tab]:(flex-auto)`
95
140
  ],
96
141
 
97
- [/^q-tabs__content$/, ([, c], { theme }) => `overflow-hidden flex-auto`],
98
-
99
- [/^q-tabs__content--align-center$/, ([, c], { theme }) => `justify-center`],
100
-
101
- [/^q-tabs__content--align-right$/, ([, c], { theme }) => `justify-end`],
102
-
103
142
  [
104
- /^q-tabs__content--align-justify$/,
105
- ([, c], { theme }) => `[&_.q-tab]:(flex-auto)`
143
+ /^q-tabs__offset$/,
144
+ ([, c], { theme }) =>
145
+ theme.quasar?.components?.['q-tabs__offset'] ?? `hidden`
106
146
  ],
107
147
 
108
- [/^q-tabs__offset$/, ([, c], { theme }) => `hidden`],
109
-
110
148
  [
111
149
  /^q-tabs--horizontal$/,
112
150
  ([, c], { theme }) =>
113
- `[&_.q-tabs\\_\\_arrow]:(h-full) [&_.q-tabs\\_\\_arrow--left]:(top-0 left-0 bottom-0) [&_.q-tabs\\_\\_arrow--right]:(top-0 right-0 bottom-0)`
151
+ theme.quasar?.components?.['q-tabs--horizontal'] ??
152
+ `[&_.q-tabs\\_\\_arrow]:(h-full) [&_.q-tabs\\_\\_arrow--left]:(top-[0] left-[0] bottom-[0]) [&_.q-tabs\\_\\_arrow--right]:(top-[0] right-[0] bottom-[0])`
114
153
  ],
115
154
 
116
155
  [
117
156
  /^q-tabs--vertical$/,
118
157
  ([, c], { theme }) =>
119
- `!block h-full [&_.q-tabs\\_\\_content]:(!block h-full) [&_.q-tabs\\_\\_arrow]:(w-full h-[36px] text-center) [&_.q-tabs\\_\\_arrow--left]:(top-0 left-0 right-0) [&_.q-tabs\\_\\_arrow--right]:(left-0 right-0 bottom-0) [&_.q-tab]:(px-[8px] py-[0]) [&_.q-tab\\_\\_indicator]:(h-[unset] w-[2px])`
120
- ],
121
-
122
- [
123
- /^q-tabs--vertical.q-tabs--not-scrollable$/,
124
- ([, c], { theme }) => `[&_.q-tabs\\_\\_content]:(h-full)`
125
- ],
126
-
127
- [
128
- /^q-tabs--vertical.q-tabs--dense$/,
129
- ([, c], { theme }) => `[&_.q-tab\\_\\_content]:(min-w-[24px])`
158
+ theme.quasar?.components?.['q-tabs--vertical'] ??
159
+ `!block h-full [&_.q-tabs\\_\\_content]:(!block h-full) [&_.q-tabs\\_\\_arrow]:(w-full h-[36px] text-center) [&_.q-tabs\\_\\_arrow--left]:(top-[0] left-[0] right-[0]) [&_.q-tabs\\_\\_arrow--right]:(left-[0] right-[0] bottom-[0]) [&_.q-tab]:(px-[8px] py-[0]) [&_.q-tab\\_\\_indicator]:(h-[unset] w-[2px]) [&.q-tabs--not-scrollable_.q-tabs\\_\\_content]:(h-full) [&.q-tabs--dense_.q-tab\\_\\_content]:(min-w-[24px])`
130
160
  ],
131
161
 
132
162
  [
133
163
  /^q-tabs--dense$/,
134
164
  ([, c], { theme }) =>
165
+ theme.quasar?.components?.['q-tabs--dense'] ??
135
166
  `[&_.q-tab]:(min-h-[36px]) [&_.q-tab--full]:(min-h-[52px])`
136
167
  ]
137
168
  ]