unocss-preset-quasar 0.1.5 → 0.1.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 (47) hide show
  1. package/dist/core/dark.unocss.js +4 -1
  2. package/dist/core/flex.unocss.js +17 -6
  3. package/dist/index.js +31 -18
  4. package/dist/styles/md2/components/QBanner.unocss.js +5 -0
  5. package/dist/styles/md2/components/QCheckbox.unocss.js +1 -1
  6. package/dist/styles/md2/components/QItem.unocss.js +2 -2
  7. package/dist/styles/md2/components/QScrollarea.unocss.js +2 -5
  8. package/dist/styles/md2/components/QTabs.unocss.js +14 -5
  9. package/dist/styles/md3/components/QBanner.unocss.js +7 -2
  10. package/dist/styles/md3/components/QBtn.unocss.js +1 -1
  11. package/dist/styles/md3/components/QBtnToggle.unocss.js +1 -0
  12. package/dist/styles/md3/components/QCard.unocss.js +6 -1
  13. package/dist/styles/md3/components/QCheckbox.unocss.js +7 -3
  14. package/dist/styles/md3/components/QChip.unocss.js +4 -3
  15. package/dist/styles/md3/components/QDrawer.unocss.js +4 -3
  16. package/dist/styles/md3/components/QField.unocss.js +17 -16
  17. package/dist/styles/md3/components/QItem.unocss.js +10 -5
  18. package/dist/styles/md3/components/QScrollarea.unocss.js +2 -5
  19. package/dist/styles/md3/components/QStepper.unocss.js +30 -4
  20. package/dist/styles/md3/components/QTabs.unocss.js +15 -6
  21. package/dist/styles/md3/index.js +9 -1
  22. package/dist/theme.js +1 -1
  23. package/dist/types/styles/md3/index.d.ts +3 -1
  24. package/dist/types/theme.d.ts +4 -0
  25. package/package.json +1 -1
  26. package/src/core/dark.unocss.ts +4 -1
  27. package/src/core/flex.unocss.ts +16 -6
  28. package/src/index.ts +31 -18
  29. package/src/styles/md2/components/QBanner.unocss.ts +7 -0
  30. package/src/styles/md2/components/QCheckbox.unocss.ts +1 -1
  31. package/src/styles/md2/components/QItem.unocss.ts +2 -2
  32. package/src/styles/md2/components/QScrollarea.unocss.ts +2 -5
  33. package/src/styles/md2/components/QTabs.unocss.ts +14 -5
  34. package/src/styles/md3/components/QBanner.unocss.ts +9 -2
  35. package/src/styles/md3/components/QBtn.unocss.ts +1 -1
  36. package/src/styles/md3/components/QBtnToggle.unocss.ts +1 -0
  37. package/src/styles/md3/components/QCard.unocss.ts +8 -1
  38. package/src/styles/md3/components/QCheckbox.unocss.ts +9 -3
  39. package/src/styles/md3/components/QChip.unocss.ts +4 -3
  40. package/src/styles/md3/components/QDrawer.unocss.ts +4 -3
  41. package/src/styles/md3/components/QField.unocss.ts +17 -16
  42. package/src/styles/md3/components/QItem.unocss.ts +10 -5
  43. package/src/styles/md3/components/QScrollarea.unocss.ts +2 -5
  44. package/src/styles/md3/components/QStepper.unocss.ts +32 -4
  45. package/src/styles/md3/components/QTabs.unocss.ts +15 -6
  46. package/src/styles/md3/index.ts +13 -1
  47. package/src/theme.ts +5 -1
@@ -80,7 +80,7 @@ const style = {
80
80
  rules: [].concat(),
81
81
  shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts, QBtnToggleShortcuts, QCardShortcuts, QCarouselShortcuts, QChatMessageShortcuts, QCheckboxShortcuts, QChipShortcuts, QCircularProgressShortcuts, QColorPickerShortcuts, QDateShortcuts, QDialogShortcuts, QEditorShortcuts, QExpansionItemShortcuts, QFabShortcuts, QFieldShortcuts, QFileShortcuts, QFormShortcuts, QImgShortcuts, QInnerLoadingShortcuts, QInputShortcuts, QIntersectionShortcuts, QItemShortcuts, QKnobShortcuts, QLayoutShortcuts, QLinearProgressShortcuts, QMenuShortcuts, QOptionGroupShortcuts, QPageShortcuts, QPageStickyShortcuts, QPaginationShortcuts, QParallaxShortcuts, QPopupEditShortcuts, QPullToRefreshShortcuts, QRadioShortcuts, QRatingShortcuts, QResponsiveShortcuts, QScrollareaShortcuts, QSelectShortcuts, QSeparatorShortcuts, QSkeletonShortcuts, QSlideItemShortcuts, QSliderShortcuts, QSpaceShortcuts, QSpinnerShortcuts, QSplitterShortcuts, QStepperShortcuts, QTabPanelShortcuts, QTableShortcuts, QTabsShortcuts, QTimeShortcuts, QTimelineShortcuts, QToggleShortcuts, QToolbarShortcuts, QTooltipShortcuts, QTreeShortcuts, QUploaderShortcuts, QVideoShortcuts, QVirtualScrollShortcuts, PanelShortcuts, QMorphShortcuts, QRippleShortcuts, QBottomSheetShortcuts, QDialogPluginShortcuts, QLoadingShortcuts, QNotifyShortcuts, QHeaderShortcuts, QFooterShortcuts, QDrawerShortcuts)
82
82
  };
83
- export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput, QBtnToggle, QSelect, QField }) => {
83
+ export const setDefaultProps = ({ QBtn, QBtnDropdown, QBtnGroup, QInput, QBtnToggle, QSelect, QField, QChip }) => {
84
84
  QBtn.props.rounded = {
85
85
  type: QBtn.props.rounded,
86
86
  default: true
@@ -89,6 +89,10 @@ export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput, QBtnToggle, QSelec
89
89
  type: QBtnDropdown.props.rounded,
90
90
  default: true
91
91
  };
92
+ QBtnGroup.props.rounded = {
93
+ type: QBtnGroup.props.rounded,
94
+ default: true
95
+ };
92
96
  QInput.props.filled = {
93
97
  type: QInput.props.filled,
94
98
  default: true
@@ -105,5 +109,9 @@ export const setDefaultProps = ({ QBtn, QBtnDropdown, QInput, QBtnToggle, QSelec
105
109
  type: QField.props.filled,
106
110
  default: true
107
111
  };
112
+ QChip.props.square = {
113
+ type: QChip.props.square,
114
+ default: true
115
+ };
108
116
  };
109
117
  export default style;
package/dist/theme.js CHANGED
@@ -494,7 +494,7 @@ export const generateTheme = (sourceColor) => {
494
494
  primary: hexFromArgb(materialTheme.schemes.light.primary),
495
495
  secondary: hexFromArgb(materialTheme.schemes.light.secondary),
496
496
  accent: hexFromArgb(materialTheme.schemes.light.tertiary),
497
- 'dark-page': hexFromArgb(materialTheme.palettes.neutral.tone(6))
497
+ 'dark-page': hexFromArgb(materialTheme.schemes.dark.surface)
498
498
  }
499
499
  };
500
500
  };
@@ -1,11 +1,13 @@
1
1
  import { QuasarStyle } from '../index.js';
2
2
  declare const style: QuasarStyle;
3
- export declare const setDefaultProps: ({ QBtn, QBtnDropdown, QInput, QBtnToggle, QSelect, QField }: {
3
+ export declare const setDefaultProps: ({ QBtn, QBtnDropdown, QBtnGroup, QInput, QBtnToggle, QSelect, QField, QChip }: {
4
4
  QBtn: any;
5
5
  QBtnDropdown: any;
6
+ QBtnGroup: any;
6
7
  QInput: any;
7
8
  QBtnToggle: any;
8
9
  QSelect: any;
9
10
  QField: any;
11
+ QChip: any;
10
12
  }) => void;
11
13
  export default style;
@@ -365,6 +365,7 @@ export interface QuasarTheme {
365
365
  'q-badge--outline'?: string;
366
366
  'q-badge--rounded'?: string;
367
367
  'q-banner'?: string;
368
+ 'q-banner__content'?: string;
368
369
  'q-banner--top-padding'?: string;
369
370
  'q-banner__avatar'?: string;
370
371
  'q-banner__actions'?: string;
@@ -411,6 +412,7 @@ export interface QuasarTheme {
411
412
  'q-btn-group--spread'?: string;
412
413
  'q-btn-toggle'?: string;
413
414
  'q-card'?: string;
415
+ 'q-card--filled'?: string;
414
416
  'q-card--bordered'?: string;
415
417
  'q-card--dark'?: string;
416
418
  'q-card__section'?: string;
@@ -456,6 +458,7 @@ export interface QuasarTheme {
456
458
  'q-message-text-content--sent'?: string;
457
459
  'q-message-text'?: string;
458
460
  'q-checkbox'?: string;
461
+ 'q-checkbox__label'?: string;
459
462
  'q-checkbox__native'?: string;
460
463
  'q-checkbox__bg'?: string;
461
464
  'q-checkbox__icon-container'?: string;
@@ -888,6 +891,7 @@ export interface QuasarTheme {
888
891
  'q-splitter__before'?: string;
889
892
  'q-splitter__after'?: string;
890
893
  'q-stepper'?: string;
894
+ 'q-stepper__label'?: string;
891
895
  'q-stepper__title'?: string;
892
896
  'q-stepper__caption'?: string;
893
897
  'q-stepper__dot'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss-preset-quasar",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "UnoCSS preset for Quasar Framework",
@@ -12,7 +12,10 @@ body.body--dark {
12
12
  ]
13
13
 
14
14
  const shortcuts: UserShortcuts<QuasarTheme> = [
15
- [/^q-dark$/, ([, c], { theme }) => `text-white bg-dark`]
15
+ [
16
+ /^q-dark$/,
17
+ ([, c], { theme }) => `dark:text-dark-on-surface bg-dark-surface`
18
+ ]
16
19
  ]
17
20
 
18
21
  export { preflights, shortcuts }
@@ -13,6 +13,8 @@ const colGutter = {
13
13
  xl: 12
14
14
  } as const
15
15
 
16
+ const sizes = ['none', 'xs', 'sm', 'md', 'lg', 'xl']
17
+
16
18
  const shortcuts: UserShortcuts<QuasarTheme> = [
17
19
  [
18
20
  /^row$/,
@@ -25,18 +27,26 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
25
27
  `flex flex-col flex-wrap flex-auto [&.reverse]:(flex-col-reverse)`
26
28
  ],
27
29
  [
28
- /^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
30
+ /^col(?:-)?(none|xs|sm|md|lg|xl|all|auto|grow)?(?:-)?([2-9]|1[0-2]?)?$/,
29
31
  ([, size, nr], { theme }) => {
32
+ const classes = ['w-auto max-w-full']
30
33
  if (size && nr) {
31
- return `${size}:basis-${nr}/12)`
34
+ classes.push(`${size}:basis-${nr}/12)`)
32
35
  } else if (nr) {
33
- return `basis-${nr}/12`
34
- } else if (size) {
35
- return `${size}:basis-auto ${size}:grow`
36
+ classes.push(`basis-${nr}/12`)
37
+ } else if (size === 'all') {
38
+ classes.push('basis-12/12')
39
+ } else if (size === 'auto') {
40
+ classes.push('basis-auto')
41
+ } else if (sizes.includes(size)) {
42
+ classes.push(`${size}:basis-auto ${size}:grow`)
43
+ } else if (size === 'grow' || size === void 0) {
44
+ classes.push('grow')
36
45
  }
37
- return `grow`
46
+ return classes.join(' ')
38
47
  }
39
48
  ],
49
+
40
50
  [
41
51
  /^q-col-gutter-(none|xs|sm|md|lg|xl)$/,
42
52
  ([, size], { theme }) =>
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  type Preset,
4
4
  presetIcons,
5
5
  presetWebFonts,
6
+ transformerDirectives,
6
7
  transformerVariantGroup
7
8
  } from 'unocss'
8
9
  import presetWind3 from '@unocss/preset-wind3'
@@ -155,6 +156,20 @@ const QSliderSafelist = [
155
156
  'q-slider--dense'
156
157
  ]
157
158
 
159
+ const QChipSafelist = [
160
+ 'q-chip',
161
+ 'q-chip--colored',
162
+ 'q-chip--dark',
163
+ 'q-chip--outline',
164
+ 'q-chip--selected',
165
+ 'q-chip__icon',
166
+ 'q-chip__icon--left',
167
+ 'q-chip__icon--right',
168
+ 'q-chip__icon--remove',
169
+ 'q-chip__content',
170
+ 'q-chip--dense',
171
+ 'q-chip--square'
172
+ ]
158
173
  const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
159
174
  {
160
175
  QIcon: ['q-icon'],
@@ -171,6 +186,7 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
171
186
  ],
172
187
  QBanner: [
173
188
  'q-banner',
189
+ 'q-banner__content',
174
190
  'q-banner--top-padding',
175
191
  'q-banner__avatar',
176
192
  'q-banner__actions',
@@ -291,20 +307,7 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
291
307
  'q-checkbox--dark',
292
308
  'q-checkbox--dense'
293
309
  ],
294
- QChip: [
295
- 'q-chip',
296
- 'q-chip--colored',
297
- 'q-chip--dark',
298
- 'q-chip--outline',
299
- 'q-chip--selected',
300
- 'q-chip__icon',
301
- 'q-chip__icon--left',
302
- 'q-chip__icon--right',
303
- 'q-chip__icon--remove',
304
- 'q-chip__content',
305
- 'q-chip--dense',
306
- 'q-chip--square'
307
- ],
310
+ QChip: QChipSafelist,
308
311
  QCircularProgress: [
309
312
  'q-circular-progress',
310
313
  'q-circular-progress__svg',
@@ -647,9 +650,11 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
647
650
  'q-scrollarea__bar--invisible',
648
651
  'q-scrollarea__thumb--invisible',
649
652
  'q-scrollarea__content',
650
- 'q-scrollarea--dark'
653
+ 'q-scrollarea--dark',
654
+ 'relative-position'
651
655
  ],
652
656
  QSelect: [
657
+ ...QChipSafelist,
653
658
  'q-list',
654
659
  'q-item',
655
660
  'q-virtual-scroll',
@@ -712,6 +717,7 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
712
717
  ],
713
718
  QStepper: [
714
719
  'q-stepper',
720
+ 'q-stepper__label',
715
721
  'q-stepper__title',
716
722
  'q-stepper__caption',
717
723
  'q-stepper__dot',
@@ -733,7 +739,8 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
733
739
  'q-stepper--flat',
734
740
  'q-stepper--bordered',
735
741
  'q-stepper--horizontal',
736
- 'q-stepper--vertical'
742
+ 'q-stepper--vertical',
743
+ 'col-grow'
737
744
  ],
738
745
  QTabPanels: ['q-tab-panels', 'q-tab-panel'],
739
746
  QMarkupTable: ['q-markup-table'],
@@ -1040,7 +1047,12 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
1040
1047
  'q-loading-bar--right',
1041
1048
  'q-loading-bar--left'
1042
1049
  ],
1043
-
1050
+ Loading: [
1051
+ 'q-loading',
1052
+ 'q-loading__backdrop',
1053
+ 'q-loading__box',
1054
+ 'q-loading__message'
1055
+ ],
1044
1056
  Notify: [
1045
1057
  'q-avatar',
1046
1058
  'q-avatar__content',
@@ -1663,7 +1675,8 @@ export const QuasarPreset = definePreset((options: QuasarPresetOptions) => {
1663
1675
  }
1664
1676
  ],
1665
1677
  transformers: [
1666
- transformerVariantGroup()
1678
+ transformerVariantGroup(),
1679
+ transformerDirectives()
1667
1680
  // {
1668
1681
  // name: 'find-classes-in-quasar-src',
1669
1682
  // enforce: 'pre', // enforce before other transformers
@@ -18,6 +18,13 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
18
18
  `!flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
19
19
  ],
20
20
 
21
+ [
22
+ /^q-banner__content$/,
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-banner__content'] ??
25
+ `max-w-[calc(100%-56px)]`
26
+ ],
27
+
21
28
  [
22
29
  /^q-banner__actions$/,
23
30
  ([, c], { theme }) =>
@@ -68,7 +68,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
68
68
  /^q-checkbox__inner$/,
69
69
  ([, c], { theme }) =>
70
70
  theme.quasar?.components?.['q-checkbox__inner'] ??
71
- `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
71
+ `mr-2px text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
72
72
  ],
73
73
 
74
74
  [
@@ -14,14 +14,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
14
14
  /^q-item__section--side$/,
15
15
  ([, c], { theme }) =>
16
16
  theme.quasar?.components?.['q-item__section--side'] ??
17
- `!flex-initial text-[#757575] items-start pr-[16px] w-auto min-w-[0] max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
17
+ `!flex-initial text-[#757575] items-start pr-[16px] w-auto max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
18
18
  ],
19
19
 
20
20
  [
21
21
  /^q-item__section--avatar$/,
22
22
  ([, c], { theme }) =>
23
23
  theme.quasar?.components?.['q-item__section--avatar'] ??
24
- `!flex-initial [color:inherit] min-w-[56px]`
24
+ `!flex-initial [color:inherit] min-w-[40px]`
25
25
  ],
26
26
 
27
27
  [
@@ -2,7 +2,7 @@ import type { Rule, UserShortcuts } from '@unocss/core'
2
2
  import type { QuasarTheme } from '../../../theme.js'
3
3
 
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
- [/^q-scrollarea$/, ([, c], { theme }) => `relative`],
5
+ [/^q-scrollarea$/, ([, c], { theme }) => `relative [contain:strict]`],
6
6
 
7
7
  [
8
8
  /^q-scrollarea__bar$/,
@@ -44,10 +44,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
44
44
 
45
45
  [/^q-scrollarea__thumb:active$/, ([, c], { theme }) => `active:opacity-50`],
46
46
 
47
- [
48
- /^q-scrollarea__content$/,
49
- ([, c], { theme }) => `!relative min-h-full min-w-full`
50
- ],
47
+ [/^q-scrollarea__content$/, ([, c], { theme }) => `min-h-full w-full`],
51
48
 
52
49
  [
53
50
  /^q-scrollarea--dark$/,
@@ -6,13 +6,15 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-tab$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-tab'] ??
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
+ `px-[16px] py-[0] min-h-[48px] [transition:color_0.3s,_background-color_0.3s] whitespace-nowrap [color:inherit] no-underline
10
+ [&_.q-badge]:(top-[3px] -right-[12px])
11
+ `
10
12
  ],
11
13
 
12
14
  [
13
15
  /^q-tab--full$/,
14
16
  ([, c], { theme }) =>
15
- theme.quasar?.components?.['q-tab--full'] ?? `min-h-[72px]`
17
+ theme.quasar?.components?.['q-tab--full'] ?? `min-h-72px h-72px`
16
18
  ],
17
19
 
18
20
  [
@@ -25,7 +27,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
25
27
  /^q-tab__content$/,
26
28
  ([, c], { theme }) =>
27
29
  theme.quasar?.components?.['q-tab__content'] ??
28
- `[height:inherit] px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-[0] -right-[16px])`
30
+ `[height:inherit] z-2 px-[0] py-[4px] min-w-[40px] [&_.q-chip--floating]:(top-[0] -right-[16px])`
29
31
  ],
30
32
 
31
33
  [
@@ -67,7 +69,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
67
69
  /^q-tab__indicator$/,
68
70
  ([, c], { theme }) =>
69
71
  theme.quasar?.components?.['q-tab__indicator'] ??
70
- `!relative opacity-0 h-[2px] bg-current`
72
+ `opacity-0 h-[2px] bg-current`
71
73
  ],
72
74
 
73
75
  [
@@ -156,7 +158,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
156
158
  /^q-tabs--vertical$/,
157
159
  ([, c], { theme }) =>
158
160
  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])`
161
+ `!block h-full [&_.q-tabs\\_\\_content]:(!block h-full)
162
+ [&_.q-tabs\\_\\_arrow]:(w-full h-[36px] text-center)
163
+ [&_.q-tabs\\_\\_arrow--left]:(top-[0] left-[0] right-[0])
164
+ [&_.q-tabs\\_\\_arrow--right]:(left-[0] right-[0] bottom-[0])
165
+ [&_.q-tab]:(px-[8px] py-[0])
166
+ [&_.q-tab\\_\\_indicator]:(h-[unset] w-2px min-h-100%)
167
+ [&_.q-tabs--not-scrollable_.q-tabs\\_\\_content]:(h-full)
168
+ [&_.q-tabs--dense_.q-tab\\_\\_content]:(min-w-[24px])`
160
169
  ],
161
170
 
162
171
  [
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-banner$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-banner'] ??
9
- `min-h-[54px] px-[16px] py-[8px] bg-[#fff]`
9
+ `min-h-[54px] px-[16px] py-[8px] bg-transparent`
10
10
  ],
11
11
 
12
12
  [/^q-banner--top-padding$/, ([, c], { theme }) => `pt-[14px]`],
@@ -15,7 +15,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
15
15
  /^q-banner__avatar$/,
16
16
  ([, c], { theme }) =>
17
17
  theme.quasar?.components?.['q-banner__avatar'] ??
18
- `!flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
18
+ `!self-auto !flex-initial !min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
19
+ ],
20
+
21
+ [
22
+ /^q-banner__content$/,
23
+ ([, c], { theme }) =>
24
+ theme.quasar?.components?.['q-banner__content'] ??
25
+ `max-w-[calc(100%-56px)]`
19
26
  ],
20
27
 
21
28
  [
@@ -24,7 +24,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
24
24
  ([, c], { theme }) =>
25
25
  theme.quasar?.components?.['q-btn--outline'] ??
26
26
  `!bg-transparent layer-components:text-light-primary layer-components:dark:text-dark-primary
27
- [&:before]:(border-[1px] border-solid border-[currentColor] [box-shadow:none]])
27
+ [&:before]:(shadow-none border-[1px] border-solid border-[currentColor])
28
28
  [&_.q-btn\\_\\_progress-indicator]:(opacity-20 bg-current)`
29
29
  ],
30
30
 
@@ -12,6 +12,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
12
12
  rounded-[3px]
13
13
  [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)]
14
14
  align-middle
15
+ [&_>_.q-btn]:(layer-components:bg-light-surface-container layer-components:dark:bg-dark-surface-container)
15
16
  [&_>_.q-btn-item]:(text-light-on-surface dark:text-dark-on-surface self-stretch)
16
17
  [&_>_.q-btn-item.bg-primary]:(!bg-light-primary !text-light-on-primary dark:!bg-dark-primary dark:!text-dark-on-primary)
17
18
  [&_>_.q-btn-item:before]:([box-shadow:none])
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-card$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-card'] ??
9
- `p-16px rounded-[12px] align-top bg-[#fff] relative bg-light-surface-container dark:bg-dark-surface-container
9
+ `p-16px rounded-[12px] align-top relative bg-light-surface-container-low dark:bg-dark-surface-container-low
10
10
  [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
11
11
  [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
12
12
  [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit])
@@ -20,6 +20,13 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
20
20
  [&.disabled]:(op-38)`
21
21
  ],
22
22
 
23
+ [
24
+ /^q-card--filled$/,
25
+ ([, c], { theme }) =>
26
+ theme.quasar?.components?.['q-card--filled'] ??
27
+ `bg-light-surface-container-highest dark:bg-dark-surface-container-highest`
28
+ ],
29
+
23
30
  [
24
31
  /^q-card--bordered$/,
25
32
  ([, c], { theme }) =>
@@ -15,17 +15,23 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
15
15
  ([, c], { theme }) =>
16
16
  theme.quasar?.components?.['q-checkbox'] ??
17
17
  `align-middle [&.disabled]:(!opacity-75)
18
- [&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-[12.5%] left-[12.5%] bottom-0 right-0 border-rd-50 bg-current op-12 scale-x-120 scale-y-120 scale-z-100)
18
+ [&:not(.disabled):hover_.q-checkbox\\_\\_inner:before]:(content-[''] absolute top-0 left-0 bottom-0 right-0 border-rd-50 bg-current op-12 scale-x-120 scale-y-120 scale-z-100)
19
19
  [&:not(.disabled):focus_.q-checkbox\\_\\_inner:before]:(scale-z-100)`
20
20
  ],
21
21
 
22
22
  [/^q-checkbox__native$/, ([, c], { theme }) => `w-px h-px`],
23
23
 
24
+ [
25
+ /^q-checkbox__label$/,
26
+ ([, c], { theme }) =>
27
+ theme.quasar?.components?.['q-checkbox__label'] ?? `pl-0.25em`
28
+ ],
29
+
24
30
  [
25
31
  /^q-checkbox__bg$/,
26
32
  ([, c], { theme }) =>
27
33
  theme.quasar?.components?.['q-checkbox__bg'] ??
28
- `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]`
34
+ `ml--2px mt--2px 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]`
29
35
  ],
30
36
 
31
37
  [/^q-checkbox__icon-container$/, ([, c], { theme }) => `select-none`],
@@ -52,7 +58,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
52
58
  /^q-checkbox__inner$/,
53
59
  ([, c], { theme }) =>
54
60
  theme.quasar?.components?.['q-checkbox__inner'] ??
55
- `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
61
+ `mr-2px text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-components:text-[rgba(0,_0,_0,_0.54)]`
56
62
  ],
57
63
 
58
64
  [
@@ -20,8 +20,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
20
20
  ([, c], { theme }) =>
21
21
  theme.quasar?.components?.['q-chip'] ??
22
22
  `!flex-initial align-middle rounded-[0.5em] outline-[0] relative h-[2em] max-w-full m-[4px]
23
- bg-light-surface-container dark:bg-dark-surface-container
24
- text-light-on-surface dark:text-dark-on-surface
23
+ outline-solid outline-1px outline-light-outline-variant dark:outline-dark-outline-variant
24
+ bg-light-surface-container-low dark:bg-dark-secondary-container
25
+ text-light-on-surface-variant dark:text-dark-on-secondary-container
25
26
  text-[14px] px-[1em] py-[0.375em]
26
27
  [&_.q-avatar]:(text-[2em] -ml-[0.45em] mr-[0.2em] rounded-[16px])`
27
28
  ],
@@ -97,7 +98,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
97
98
  /^q-chip--square$/,
98
99
  ([, c], { theme }) =>
99
100
  theme.quasar?.components?.['q-chip--square'] ??
100
- `rounded-[4px] [&_.q-avatar]:(rounded-tl-[3px] rounded-br-[0] rounded-tr-[0] rounded-bl-[3px])`
101
+ `rounded-[8px] [&_.q-avatar]:(rounded-tl-[3px] rounded-br-[0] rounded-tr-[0] rounded-bl-[3px])`
101
102
  ]
102
103
  ]
103
104
 
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-drawer$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-drawer'] ??
9
- `absolute top-[0] bottom-[0] bg-light-surface-container-low dark:bg-dark-surface-container-low z-${theme.quasar.z['side']}`
9
+ `border-rd-16px absolute top-[0] bottom-[0] bg-light-surface-container-low dark:bg-dark-surface-container-low z-${theme.quasar.z['side']}`
10
10
  ],
11
11
 
12
12
  [
@@ -97,9 +97,10 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
97
97
  [&_>_.q-scrollarea]:(px-0)
98
98
  [&_>_.q-list]:(px-12px)
99
99
  [&_.q-list_.q-item]:(border-rd-32px)
100
+ [&_.q-list_.q-item:hover]:(bg-light-on-secondary-container/8 dark:bg-dark-on-secondary-container/8)
100
101
  [&_.q-list_>_.q-router-link--active]:(text-light-primary dark:text-dark-primary)
101
- [&_.q-list_.q-router-link--exact-active]:(bg-light-secondary-container dark:bg-dark-secondary-container
102
- )`
102
+ [&_.q-list_.q-router-link--active]:(bg-light-secondary-container dark:bg-dark-secondary-container)
103
+ `
103
104
  ]
104
105
  ]
105
106
 
@@ -285,27 +285,28 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
285
285
  /^q-field--standout$/,
286
286
  ([, c], { theme }) =>
287
287
  theme.quasar?.components?.['q-field--standout'] ??
288
- `[&_.q-field\\_\\_control]:(px-[12px] py-[0] layer-components:bg-black/5 rounded-[4px] [transition:box-shadow_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
288
+ `[&_.q-field\\_\\_control]:(px-[12px] py-[0] layer-components:bg-light-surface-container-high
289
+ rounded-[4px] [transition:box-shadow_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background-color_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
289
290
  [&_.q-field\\_\\_control:before]:(layer-components:bg-black/7 opacity-0 [transition:opacity_0.36s_cubic-bezier(0.4,_0,_0.2,_1),_background_0.36s_cubic-bezier(0.4,_0,_0.2,_1)])
290
291
  [&_.q-field\\_\\_control:hover:before]:(opacity-100)
291
292
  [&.q-field--rounded_.q-field\\_\\_control]:(rounded-[28px])
292
- [&.q-field--highlighted_.q-field\\_\\_control]:([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)] layer-components:bg-white)
293
- [&.q-field--highlighted_.q-field\\_\\_native]:(text-white)
294
- [&.q-field--highlighted_.q-field\\_\\_prefix]:(text-white)
295
- [&.q-field--highlighted_.q-field\\_\\_suffix]:(text-white)
296
- [&.q-field--highlighted_.q-field\\_\\_prepend]:(text-white)
297
- [&.q-field--highlighted_.q-field\\_\\_append]:(text-white)
298
- [&.q-field--highlighted_.q-field\\_\\_input]:(text-white)
293
+ [&.q-field--highlighted_.q-field\\_\\_control]:([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)])
294
+ [&.q-field--highlighted_.q-field\\_\\_native]:(text-light-primary)
295
+ [&.q-field--highlighted_.q-field\\_\\_prefix]:(text-light-primary)
296
+ [&.q-field--highlighted_.q-field\\_\\_suffix]:(text-light-primary)
297
+ [&.q-field--highlighted_.q-field\\_\\_prepend]:(text-light-primary)
298
+ [&.q-field--highlighted_.q-field\\_\\_append]:(text-light-primary)
299
+ [&.q-field--highlighted_.q-field\\_\\_input]:(text-light-on-surface)
299
300
  [&.q-field--readonly_.q-field\\_\\_control:before]:(opacity-100 bg-transparent border-[1px] border-dashed border-black/24)
300
- [&.q-field--dark_.q-field\\_\\_control]:(bg-[rgba(255,_255,_255,_0.07)])
301
+ [&.q-field--dark_.q-field\\_\\_control]:(bg-dark-surface-container-high)
301
302
  [&.q-field--dark_.q-field\\_\\_control:before]:(layer-components:bg-white/7)
302
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_control]:(layer-components:bg-white)
303
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_native]:(text-black)
304
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_prefix]:(text-black)
305
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_suffix]:(text-black)
306
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_prepend]:(text-black)
307
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_append]:(text-black)
308
- [&.q-field--dark.q-field--highlighted_.q-field\\_\\_input]:(text-black)
303
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_control]:(layer-components:bg-dark-surface-container-highest)
304
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_native]:(text-dark-primary)
305
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_prefix]:(text-dark-primary)
306
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_suffix]:(text-dark-primary)
307
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_prepend]:(text-dark-primary)
308
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_append]:(text-dark-primary)
309
+ [&.q-field--dark.q-field--highlighted_.q-field\\_\\_input]:(!text-dark-on-surface)
309
310
  [&.q-field--dark.q-field--readonly_.q-field\\_\\_control:before]:(border-white/24)`
310
311
  ],
311
312
 
@@ -7,21 +7,21 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-item'] ??
9
9
  `min-h-[28px] px-[16px] py-[8px] [color:inherit] [transition:color_0.3s,_background-color_0.3s] [&_>_.q-item\\_\\_section--thumbnail:first-child]:(-ml-[16px]) [&_>_.q-focus-helper_+_.q-item\\_\\_section--thumbnail]:(-ml-[16px]) [&_>_.q-item\\_\\_section--thumbnail:last-of-type]:(-mr-[16px]) relative
10
- [&.q-router-link--active]:(text-primary)`
10
+ [&.q-router-link--active]:(text-light-primary dark:text-dark-primary)`
11
11
  ],
12
12
 
13
13
  [
14
14
  /^q-item__section--side$/,
15
15
  ([, c], { theme }) =>
16
16
  theme.quasar?.components?.['q-item__section--side'] ??
17
- `!flex-initial text-[#757575] items-start pr-[16px] w-auto min-w-[0] max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
17
+ `!flex-initial text-[#757575] items-start pr-[16px] w-auto max-w-full [&_>_.q-icon]:(text-[24px]) [&_>_.q-avatar]:(text-[40px])`
18
18
  ],
19
19
 
20
20
  [
21
21
  /^q-item__section--avatar$/,
22
22
  ([, c], { theme }) =>
23
23
  theme.quasar?.components?.['q-item__section--avatar'] ??
24
- `!flex-initial [color:inherit] min-w-[56px]`
24
+ `!flex-initial [color:inherit] min-w-[40px]`
25
25
  ],
26
26
 
27
27
  [
@@ -113,7 +113,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
113
113
  /^q-list--dark$/,
114
114
  ([, c], { theme }) =>
115
115
  theme.quasar?.components?.['q-list--dark'] ??
116
- `text-[#fff] border-[rgba(255,_255,_255,_0.28)] [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
116
+ `text-[#fff] border-[rgba(255,_255,_255,_0.28)]
117
+ [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)])
118
+ [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
117
119
  ],
118
120
 
119
121
  [
@@ -123,7 +125,10 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
123
125
  `text-[#fff] border-[rgba(255,_255,_255,_0.28)] [&_.q-item\\_\\_section--side:not(.q-item\\_\\_section--avatar)]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-item\\_\\_label--header]:(text-[rgba(255,_255,_255,_0.64)]) [&_.q-item\\_\\_label--overline]:(text-[rgba(255,_255,_255,_0.8)]) [&_.q-item\\_\\_label--caption]:(text-[rgba(255,_255,_255,_0.8)])`
124
126
  ],
125
127
 
126
- [/^q-item--active$/, ([, c], { theme }) => `text-primary`]
128
+ [
129
+ /^q-item--active$/,
130
+ ([, c], { theme }) => `text-light-primary dark:text-dark-primary`
131
+ ]
127
132
  ]
128
133
 
129
134
  export { shortcuts }
@@ -2,7 +2,7 @@ import type { Rule, UserShortcuts } from '@unocss/core'
2
2
  import type { QuasarTheme } from '../../../theme.js'
3
3
 
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
- [/^q-scrollarea$/, ([, c], { theme }) => `relative`],
5
+ [/^q-scrollarea$/, ([, c], { theme }) => `relative [contain:strict]`],
6
6
 
7
7
  [
8
8
  /^q-scrollarea__bar$/,
@@ -44,10 +44,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
44
44
 
45
45
  [/^q-scrollarea__thumb:active$/, ([, c], { theme }) => `active:opacity-50`],
46
46
 
47
- [
48
- /^q-scrollarea__content$/,
49
- ([, c], { theme }) => `!relative min-h-full min-w-full`
50
- ],
47
+ [/^q-scrollarea__content$/, ([, c], { theme }) => `min-h-full w-full`],
51
48
 
52
49
  [
53
50
  /^q-scrollarea--dark$/,