unocss-preset-quasar 0.1.0 → 0.1.2

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 (39) hide show
  1. package/LICENCE +1 -1
  2. package/dist/core/flex.unocss.js +3 -3
  3. package/dist/index.js +84 -77
  4. package/dist/styles/md2/components/QBtnToggle.unocss.js +33 -1
  5. package/dist/styles/md2/components/QSkeleton.unocss.js +51 -51
  6. package/dist/styles/md2/components/QTree.unocss.js +13 -13
  7. package/dist/styles/md2/index.js +1 -2
  8. package/dist/styles/md3/components/QBtnToggle.unocss.js +49 -1
  9. package/dist/styles/md3/components/QCheckbox.unocss.js +2 -20
  10. package/dist/styles/md3/components/QSkeleton.unocss.js +51 -51
  11. package/dist/styles/md3/components/QSlider.unocss.js +2 -2
  12. package/dist/styles/md3/components/QTime.unocss.js +21 -10
  13. package/dist/styles/md3/components/QTree.unocss.js +13 -13
  14. package/dist/styles/md3/index.js +6 -3
  15. package/dist/theme.js +132 -60
  16. package/dist/types/index.d.ts +1 -1
  17. package/dist/types/styles/md3/index.d.ts +2 -1
  18. package/dist/types/theme.d.ts +41 -4
  19. package/package.json +8 -8
  20. package/src/core/flex.unocss.ts +4 -4
  21. package/src/index.ts +88 -79
  22. package/src/styles/md2/components/QBtnToggle.unocss.ts +48 -1
  23. package/src/styles/md2/components/QSkeleton.unocss.ts +51 -75
  24. package/src/styles/md2/components/QTree.unocss.ts +14 -13
  25. package/src/styles/md2/index.ts +0 -2
  26. package/src/styles/md3/components/QBtnToggle.unocss.ts +64 -1
  27. package/src/styles/md3/components/QCheckbox.unocss.ts +2 -20
  28. package/src/styles/md3/components/QSkeleton.unocss.ts +51 -75
  29. package/src/styles/md3/components/QSlider.unocss.ts +2 -2
  30. package/src/styles/md3/components/QTime.unocss.ts +21 -10
  31. package/src/styles/md3/components/QTree.unocss.ts +14 -13
  32. package/src/styles/md3/index.ts +7 -3
  33. package/src/theme.ts +239 -62
  34. package/dist/styles/md2/components/QBtnGroup.unocss.js +0 -35
  35. package/dist/styles/md3/components/QBtnGroup.unocss.js +0 -35
  36. package/dist/types/styles/md2/components/QBtnGroup.unocss.d.ts +0 -4
  37. package/dist/types/styles/md3/components/QBtnGroup.unocss.d.ts +0 -4
  38. package/src/styles/md2/components/QBtnGroup.unocss.ts +0 -53
  39. package/src/styles/md3/components/QBtnGroup.unocss.ts +0 -53
package/LICENCE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022-present Stefan van Herwijnen
1
+ Copyright 2025-present Stefan van Herwijnen
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
@@ -52,17 +52,17 @@ const shortcuts = [
52
52
  /^q-gutter-(none|xs|sm|md|lg|xl)$/,
53
53
  ([, size], { theme }) => `ml--${colGutter[size]}
54
54
  mt--${colGutter[size]}
55
- [&_>_*]:(mr-${colGutter[size]} mb-${colGutter[size]})`
55
+ [&_>_*]:(ml-${colGutter[size]} mt-${colGutter[size]})`
56
56
  ],
57
57
  [
58
58
  /^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
59
59
  ([, size], { theme }) => `ml--${colGutter[size]}
60
- [&_>_*]:(mr-${colGutter[size]})`
60
+ [&_>_*]:(ml-${colGutter[size]})`
61
61
  ],
62
62
  [
63
63
  /^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
64
64
  ([, size], { theme }) => `mt--${colGutter[size]}
65
- [&_>_*]:(mb-${colGutter[size]})`
65
+ [&_>_*]:(mt-${colGutter[size]})`
66
66
  ],
67
67
  [/^wrap$/, ([, size], { theme }) => `flex-wrap`],
68
68
  [/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { definePreset, presetIcons, presetWebFonts, transformerVariantGroup } from 'unocss';
2
- import presetUno from '@unocss/preset-uno';
2
+ import presetWind3 from '@unocss/preset-wind3';
3
3
  import { generateTheme } from './theme.js';
4
4
  import { animatedUno } from 'animated-unocss';
5
5
  import { preflights as corePreflights, rules as coreRules, shortcuts as coreShortcuts } from './core/index.js';
@@ -54,6 +54,77 @@ const QPageStickySafelist = [
54
54
  'vertical-bottom'
55
55
  ];
56
56
  const QMenuSafelist = ['q-menu', 'q-menu--square', 'q-menu--dark'];
57
+ const QTabSafelist = [
58
+ 'q-tab',
59
+ 'q-tab--full',
60
+ 'q-tab--no-caps',
61
+ 'q-tab__content',
62
+ 'q-tab__content--inline',
63
+ 'q-tab__icon',
64
+ 'q-tab__label',
65
+ 'q-tab__alert',
66
+ 'q-tab__alert-icon',
67
+ 'q-tab__indicator',
68
+ 'q-tab--active',
69
+ 'q-tab--inactive'
70
+ ];
71
+ const QSliderSafelist = [
72
+ 'q-slider',
73
+ 'q-slider--h',
74
+ 'q-slider--v',
75
+ 'q-slider--editable',
76
+ 'q-slider__track-container',
77
+ 'q-slider__track-container--h',
78
+ 'q-slider__track-container--v',
79
+ 'q-slider__track',
80
+ 'q-slider__inner',
81
+ 'q-slider__selection',
82
+ 'q-slider__markers',
83
+ 'q-slider__markers--h',
84
+ 'q-slider__markers--v',
85
+ 'q-slider__marker-labels-container',
86
+ 'q-slider__marker-labels',
87
+ 'q-slider__marker-labels--h-standard',
88
+ 'q-slider__marker-labels--h-switched',
89
+ 'q-slider__marker-labels--h-ltr',
90
+ 'q-slider__marker-labels--h-rtl',
91
+ 'q-slider__marker-labels--v-standard',
92
+ 'q-slider__marker-labels--v-switched',
93
+ 'q-slider__marker-labels--v-ltr',
94
+ 'q-slider__marker-labels--v-rtl',
95
+ 'q-slider__thumb',
96
+ 'q-slider__thumb--h',
97
+ 'q-slider__thumb--h-ltr',
98
+ 'q-slider__thumb--h-rtl',
99
+ 'q-slider__thumb--v',
100
+ 'q-slider__thumb--v-ltr',
101
+ 'q-slider__thumb--v-rtl',
102
+ 'q-slider__thumb-shape',
103
+ 'q-slider__focus-ring',
104
+ 'q-slider__pin',
105
+ 'q-slider__pin--h',
106
+ 'q-slider__pin--h-standard',
107
+ 'q-slider__pin--h-switched',
108
+ 'q-slider__pin--v',
109
+ 'q-slider__pin--v-standard',
110
+ 'q-slider__pin--v-switched',
111
+ 'q-slider__label',
112
+ 'q-slider__label--h',
113
+ 'q-slider__label--h-standard',
114
+ 'q-slider__label--h-switched',
115
+ 'q-slider__label--v',
116
+ 'q-slider__label--v-standard',
117
+ 'q-slider__label--v-switched',
118
+ 'q-slider__text-container',
119
+ 'q-slider__text',
120
+ 'q-slider--no-value',
121
+ 'q-slider--focus',
122
+ 'q-slider--inactive',
123
+ 'q-slider--active',
124
+ 'q-slider--label',
125
+ 'q-slider--dark',
126
+ 'q-slider--dense'
127
+ ];
57
128
  const componentsSafelistMap = {
58
129
  QIcon: ['q-icon'],
59
130
  QTabPanel: ['q-panel', 'q-panel-parent'],
@@ -108,7 +179,8 @@ const componentsSafelistMap = {
108
179
  'q-btn-dropdown__arrow',
109
180
  'q-btn-dropdown--current'
110
181
  ],
111
- QBtnGroup: [
182
+ QBtnToggle: [
183
+ 'q-btn-toggle',
112
184
  'q-btn-group',
113
185
  'q-btn-group--push',
114
186
  'q-btn-group--push',
@@ -122,7 +194,6 @@ const componentsSafelistMap = {
122
194
  'q-btn-group--spread',
123
195
  'q-btn-group--spread'
124
196
  ],
125
- QBtnToggle: ['q-btn-toggle'],
126
197
  QCard: [
127
198
  'q-card',
128
199
  'q-card--bordered',
@@ -518,6 +589,7 @@ const componentsSafelistMap = {
518
589
  'q-radio--dark',
519
590
  'q-radio--dense'
520
591
  ],
592
+ QRange: QSliderSafelist,
521
593
  QRating: [
522
594
  'q-rating',
523
595
  'q-rating__icon-container',
@@ -594,63 +666,7 @@ const componentsSafelistMap = {
594
666
  'q-slide-item__bottom',
595
667
  'q-slide-item__content'
596
668
  ],
597
- QSlider: [
598
- 'q-slider',
599
- 'q-slider--h',
600
- 'q-slider--v',
601
- 'q-slider--editable',
602
- 'q-slider__track-container',
603
- 'q-slider__track-container--h',
604
- 'q-slider__track-container--v',
605
- 'q-slider__track',
606
- 'q-slider__inner',
607
- 'q-slider__selection',
608
- 'q-slider__markers',
609
- 'q-slider__markers--h',
610
- 'q-slider__markers--v',
611
- 'q-slider__marker-labels-container',
612
- 'q-slider__marker-labels',
613
- 'q-slider__marker-labels--h-standard',
614
- 'q-slider__marker-labels--h-switched',
615
- 'q-slider__marker-labels--h-ltr',
616
- 'q-slider__marker-labels--h-rtl',
617
- 'q-slider__marker-labels--v-standard',
618
- 'q-slider__marker-labels--v-switched',
619
- 'q-slider__marker-labels--v-ltr',
620
- 'q-slider__marker-labels--v-rtl',
621
- 'q-slider__thumb',
622
- 'q-slider__thumb--h',
623
- 'q-slider__thumb--h-ltr',
624
- 'q-slider__thumb--h-rtl',
625
- 'q-slider__thumb--v',
626
- 'q-slider__thumb--v-ltr',
627
- 'q-slider__thumb--v-rtl',
628
- 'q-slider__thumb-shape',
629
- 'q-slider__focus-ring',
630
- 'q-slider__pin',
631
- 'q-slider__pin--h',
632
- 'q-slider__pin--h-standard',
633
- 'q-slider__pin--h-switched',
634
- 'q-slider__pin--v',
635
- 'q-slider__pin--v-standard',
636
- 'q-slider__pin--v-switched',
637
- 'q-slider__label',
638
- 'q-slider__label--h',
639
- 'q-slider__label--h-standard',
640
- 'q-slider__label--h-switched',
641
- 'q-slider__label--v',
642
- 'q-slider__label--v-standard',
643
- 'q-slider__label--v-switched',
644
- 'q-slider__text-container',
645
- 'q-slider__text',
646
- 'q-slider--no-value',
647
- 'q-slider--focus',
648
- 'q-slider--inactive',
649
- 'q-slider--active',
650
- 'q-slider--label',
651
- 'q-slider--dark',
652
- 'q-slider--dense'
653
- ],
669
+ QSlider: QSliderSafelist,
654
670
  QSpace: ['q-space'],
655
671
  QSpinner: ['q-spinner', 'q-spinner-mat'],
656
672
  QSplitter: [
@@ -727,20 +743,8 @@ const componentsSafelistMap = {
727
743
  'q-table--vertical-separator',
728
744
  'q-table--dense'
729
745
  ],
730
- QTab: [
731
- 'q-tab',
732
- 'q-tab--full',
733
- 'q-tab--no-caps',
734
- 'q-tab__content',
735
- 'q-tab__content--inline',
736
- 'q-tab__icon',
737
- 'q-tab__label',
738
- 'q-tab__alert',
739
- 'q-tab__alert-icon',
740
- 'q-tab__indicator',
741
- 'q-tab--active',
742
- 'q-tab--inactive'
743
- ],
746
+ QTab: QTabSafelist,
747
+ QRouteTab: QTabSafelist,
744
748
  QTabs: [
745
749
  'q-tabs',
746
750
  'q-tabs--scrollable',
@@ -1475,14 +1479,17 @@ export const QuasarPreset = definePreset(async (options) => {
1475
1479
  if (!options)
1476
1480
  options = {
1477
1481
  style: 'md2',
1478
- primaryColor: '#CEB8F1'
1482
+ sourceColor: '#806cb0'
1479
1483
  };
1480
1484
  if (!Object.keys(QuasarStyles).includes(options.style))
1481
1485
  throw new Error('Unsupported Quasar style');
1486
+ if (!options.sourceColor) {
1487
+ options.sourceColor = '#806cb0';
1488
+ }
1482
1489
  const style = (await QuasarStyles[options.style]).default;
1483
- const theme = await generateTheme(options.primaryColor);
1490
+ const theme = await generateTheme(options.sourceColor);
1484
1491
  return [
1485
- presetUno({
1492
+ presetWind3({
1486
1493
  dark: {
1487
1494
  light: '.body--light',
1488
1495
  dark: '.body--dark'
@@ -1,4 +1,36 @@
1
1
  const shortcuts = [
2
- [/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
2
+ [/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
3
+ [
4
+ /^q-btn-group$/,
5
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
6
+ `rounded-[3px] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] align-middle [&_>_.q-btn-item]:([border-radius:inherit] self-stretch) [&_>_.q-btn-item:before]:([box-shadow:none]) [&_>_.q-btn-item_.q-badge--floating]:(right-0) [&_>_.q-btn-group]:([box-shadow:none]) [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0]) [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0]) [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none) [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none) [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
7
+ ],
8
+ [
9
+ /^q-btn-group--push$/,
10
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
11
+ `rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
12
+ [&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
13
+ ],
14
+ [/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
15
+ [/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
16
+ [/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
17
+ [
18
+ /^q-btn-group--outline$/,
19
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
20
+ `[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
21
+ ],
22
+ [/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
23
+ [/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
24
+ [
25
+ /^q-btn-group--glossy$/,
26
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
27
+ `[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
28
+ ],
29
+ [
30
+ /^q-btn-group--spread$/,
31
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
32
+ `[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
33
+ [&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
34
+ ]
3
35
  ];
4
36
  export { shortcuts };
@@ -57,122 +57,122 @@ const preflights = [
57
57
  ];
58
58
  const shortcuts = [
59
59
  [
60
- /^q-skeleton$/,
60
+ /^q-skeleton\$/,
61
61
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton'] ??
62
- `bg-[rgba(0,_0,_0,_0.12)] rounded-[4px] box-border [&:before]:(content-['_'])`
62
+ `bg-gray-200 rounded box-border`
63
63
  ],
64
64
  [
65
- /^q-skeleton--anim$/,
65
+ /^q-skeleton--anim\$/,
66
66
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim'] ?? `cursor-wait`
67
67
  ],
68
68
  [
69
- /^q-skeleton--type-text$/,
69
+ /^q-skeleton--type-text\$/,
70
70
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-text'] ??
71
- `scale-x-100 scale-y-[0.5]`
71
+ `transform scale-y-50`
72
72
  ],
73
73
  [
74
- /^q-skeleton--type-circle$/,
74
+ /^q-skeleton--type-circle\$/,
75
75
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-circle'] ??
76
- `h-[48px] w-[48px] rounded-[50%]`
76
+ `h-12 w-12 rounded-full`
77
77
  ],
78
78
  [
79
- /^q-skeleton--type-QAvatar$/,
79
+ /^q-skeleton--type-QAvatar\$/,
80
80
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QAvatar'] ??
81
- `h-[48px] w-[48px] rounded-[50%]`
81
+ `h-12 w-12 rounded-full`
82
82
  ],
83
83
  [
84
- /^q-skeleton--type-QBtn$/,
85
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QBtn'] ?? `w-[90px] h-[36px]`
84
+ /^q-skeleton--type-QBtn\$/,
85
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QBtn'] ?? `w-24 h-9`
86
86
  ],
87
87
  [
88
- /^q-skeleton--type-QBadge$/,
89
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QBadge'] ??
90
- `w-[70px] h-[16px]`
88
+ /^q-skeleton--type-QBadge\$/,
89
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QBadge'] ?? `w-18 h-4`
91
90
  ],
92
91
  [
93
- /^q-skeleton--type-QChip$/,
92
+ /^q-skeleton--type-QChip\$/,
94
93
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QChip'] ??
95
- `w-[90px] h-[28px] rounded-[16px]`
94
+ `w-24 h-7 rounded-full`
96
95
  ],
97
96
  [
98
- /^q-skeleton--type-QToolbar$/,
99
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QToolbar'] ?? `h-[50px]`
97
+ /^q-skeleton--type-QToolbar\$/,
98
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QToolbar'] ?? `h-12`
100
99
  ],
101
100
  [
102
- /^q-skeleton--type-QCheckbox$/,
101
+ /^q-skeleton--type-QCheckbox\$/,
103
102
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QCheckbox'] ??
104
- `w-[40px] h-[40px] rounded-[50%]`
103
+ `h-10 w-10 rounded-full`
105
104
  ],
106
105
  [
107
- /^q-skeleton--type-QRadio$/,
106
+ /^q-skeleton--type-QRadio\$/,
108
107
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QRadio'] ??
109
- `w-[40px] h-[40px] rounded-[50%]`
108
+ `h-10 w-10 rounded-full`
110
109
  ],
111
110
  [
112
- /^q-skeleton--type-QToggle$/,
111
+ /^q-skeleton--type-QToggle\$/,
113
112
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QToggle'] ??
114
- `w-[56px] h-[40px] rounded-[7px]`
113
+ `w-14 h-10 rounded-md`
115
114
  ],
116
115
  [
117
- /^q-skeleton--type-QSlider$/,
118
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QSlider'] ?? `h-[40px]`
116
+ /^q-skeleton--type-QSlider\$/,
117
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QSlider'] ?? `h-10`
119
118
  ],
120
119
  [
121
- /^q-skeleton--type-QRange$/,
122
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QRange'] ?? `h-[40px]`
120
+ /^q-skeleton--type-QRange\$/,
121
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QRange'] ?? `h-10`
123
122
  ],
124
123
  [
125
- /^q-skeleton--type-QInput$/,
126
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QInput'] ?? `h-[56px]`
124
+ /^q-skeleton--type-QInput\$/,
125
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--type-QInput'] ?? `h-14`
127
126
  ],
128
127
  [
129
- /^q-skeleton--bordered$/,
128
+ /^q-skeleton--bordered\$/,
130
129
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--bordered'] ??
131
- `border-[1px] border-solid border-[rgba(0,0,0,0.05)]`
130
+ `border border-gray-200`
132
131
  ],
133
132
  [
134
- /^q-skeleton--square$/,
133
+ /^q-skeleton--square\$/,
135
134
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--square'] ?? `rounded-none`
136
135
  ],
137
136
  [
138
- /^q-skeleton--anim-fade$/,
139
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-fade'] ??
140
- `animate-[q-skeleton--fade_var(--q-skeleton-speed)_linear_0.5s_infinite]`
137
+ /^q-skeleton--anim-fade\$/,
138
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-fade'] ?? `animate-fade`
141
139
  ],
142
140
  [
143
- /^q-skeleton--anim-pulse$/,
144
- ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-pulse'] ??
145
- `animate-[q-skeleton--pulse_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
141
+ /^q-skeleton--anim-pulse\$/,
142
+ ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-pulse'] ?? `animate-pulse`
146
143
  ],
147
144
  [
148
- /^q-skeleton--anim-pulse-x$/,
145
+ /^q-skeleton--anim-pulse-x\$/,
149
146
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-pulse-x'] ??
150
- `animate-[q-skeleton--pulse-x_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
147
+ `animate-pulse-x`
151
148
  ],
152
149
  [
153
- /^q-skeleton--anim-pulse-y$/,
150
+ /^q-skeleton--anim-pulse-y\$/,
154
151
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-pulse-y'] ??
155
- `animate-[q-skeleton--pulse-y_var(--q-skeleton-speed)_ease-in-out_0.5s_infinite]`
152
+ `animate-pulse-y`
156
153
  ],
157
154
  [
158
- /^q-skeleton--anim-wave$/,
155
+ /^q-skeleton--anim-wave\$/,
159
156
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-wave'] ??
160
- `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0) [&:after]:(bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.5),_rgba(255,_255,_255,_0)_)] animate-[q-skeleton--wave_var(--q-skeleton-speed)_linear_0.5s_infinite])`
157
+ `relative overflow-hidden z-10 before:content-['\\00a0'] before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0 before:z-0 after:content-[''] after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:z-0 after:bg-gradient-to-r after:from-transparent after:via-white/50 after:to-transparent after:animate-wave`
161
158
  ],
162
159
  [
163
- /^q-skeleton--anim-blink$/,
160
+ /^q-skeleton--anim-blink\$/,
164
161
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-blink'] ??
165
- `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0) [&:after]:(bg-[rgba(255,_255,_255,_0.7)] animate-[q-skeleton--fade_var(--q-skeleton-speed)_linear_0.5s_infinite])`
162
+ `relative overflow-hidden z-10 before:content-['\\00a0'] before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0 before:z-0 after:content-[''] after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:z-0 after:bg-white/70 after:animate-fade`
166
163
  ],
167
164
  [
168
- /^q-skeleton--anim-pop$/,
165
+ /^q-skeleton--anim-pop\$/,
169
166
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--anim-pop'] ??
170
- `relative overflow-hidden [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] z-0)`
167
+ `relative overflow-hidden z-10 before:content-['\\00a0'] before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0 before:z-0 after:content-[''] after:absolute after:top-0 after:right-0 after:bottom-0 after:left-0 after:z-0`
171
168
  ],
172
169
  [
173
- /^q-skeleton--dark$/,
170
+ /^q-skeleton--dark\$/,
174
171
  ([, c], { theme }) => theme.quasar?.components?.['q-skeleton--dark'] ??
175
- `bg-[rgba(255,_255,_255,_0.05)] [&.q-skeleton--bordered]:(border-[1px] border-solid border-[rgba(255,255,255,0.25)]) [&.q-skeleton--anim-wave:after]:(bg-[linear-gradient(_90deg,_rgba(255,_255,_255,_0),_rgba(255,_255,_255,_0.1),_rgba(255,_255,_255,_0)_)]) [&.q-skeleton--anim-blink:after]:(bg-[rgba(255,_255,_255,_0.2)])`
172
+ `bg-white/5
173
+ [&.q-skeleton--bordered]:(border border-white/25)
174
+ [&.q-skeleton--anim-wave]:(after:bg-gradient-to-r after:from-transparent after:via-white/10 after:to-transparent)
175
+ [&.q-skeleton--anim-blink]:(after:bg-white/20)`
176
176
  ]
177
177
  ];
178
178
  export { preflights, shortcuts };
@@ -14,22 +14,22 @@ const shortcuts = [
14
14
  [
15
15
  /^q-tree$/,
16
16
  ([, c], { theme }) => theme.quasar?.components?.['q-tree'] ??
17
- `relative text-[#9e9e9e] [&_>_.q-tree\\_\\_node]:(p-0) [&_>_.q-tree\\_\\_node:after]:(hidden) [&_>_.q-tree\\_\\_node_>_.q-tree\\_\\_node-header:before]:(hidden) [&_>_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header]:(pl-[24px])`
17
+ `relative text-[#9e9e9e] [&_>_.q-tree\\_\\_node]:(p-0) [&_>_.q-tree\\_\\_node:after]:(hidden) [&_>_.q-tree\\_\\_node>_.q-tree\\_\\_node-header:before]:(hidden) [&_>_.q-tree\\_\\_node--child>_.q-tree\\_\\_node-header]:(pl-[24px])`
18
18
  ],
19
19
  [
20
20
  /^q-tree__node$/,
21
21
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node'] ??
22
- `pt-[0] pr-[0] pb-[3px] pl-[22px] [&:after]:(content-empty absolute -top-[3px] bottom-[0] w-[2px] right-auto -left-[13px] [border-left:1px_solid_currentColor]) [&:last-child:after]:(hidden)`
22
+ `pt-[0] pr-[0] pb-[3px] pl-[22px] [&:after]:(content-empty absolute -top-[3px] bottom-[0] w-[2px] right-auto -left-[13px] border-left-current) [&:last-child:after]:(hidden)`
23
23
  ],
24
24
  [
25
25
  /^q-tree__node--disabled$/,
26
26
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node--disabled'] ??
27
- `pointer-events-none [&_.disabled]:(!opacity-100) [&_>_div]:(!opacity-60) [&_>_i]:(!opacity-60) [&_>_.disabled]:(!opacity-60) [&_>_div_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_div_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_div_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_i_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_div]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_i]:(!opacity-100) [&_>_.disabled_.q-tree\\_\\_node--disabled_>_.disabled]:(!opacity-100)`
27
+ `pointer-events-none [&_.disabled]:(!opacity-100) [&>div]:(!opacity-60) [&>i]:(!opacity-60) [&>_.disabled]:(!opacity-60) [&>div_.q-tree\\_\\_node--disabled>div]:(!opacity-100) [&>div_.q-tree\\_\\_node--disabled>i]:(!opacity-100) [&>div_.q-tree\\_\\_node--disabled>_.disabled]:(!opacity-100) [&>i_.q-tree\\_\\_node--disabled>div]:(!opacity-100) [&>i_.q-tree\\_\\_node--disabled>i]:(!opacity-100) [&>i_.q-tree\\_\\_node--disabled>_.disabled]:(!opacity-100) [&>_.disabled_.q-tree\\_\\_node--disabled>div]:(!opacity-100) [&>_.disabled_.q-tree\\_\\_node--disabled>i]:(!opacity-100) [&>_.disabled_.q-tree\\_\\_node--disabled>_.disabled]:(!opacity-100)`
28
28
  ],
29
29
  [
30
30
  /^q-tree__node-header$/,
31
31
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node-header'] ??
32
- `[&:before]:(content-empty absolute -top-[3px] bottom-2/4 w-[31px] -left-[35px] [border-left:1px_solid_currentColor] [border-bottom:1px_solid_currentColor]) p-[4px] mt-[3px] rounded-[4px] outline-[0]`
32
+ `[&:before]:(content-empty absolute -top-[3px] bottom-2/4 w-[31px] -left-[35px] border-left-current border-bottom-current) p-[4px] mt-[3px] rounded-[4px] outline-[0]`
33
33
  ],
34
34
  [
35
35
  /^q-tree__children$/,
@@ -43,7 +43,7 @@ const shortcuts = [
43
43
  [
44
44
  /^q-tree__node--parent$/,
45
45
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node--parent'] ??
46
- `pl-[2px] [&_>_.q-tree\\_\\_node-header:before]:(w-[15px] -left-[15px]) [&_>_.q-tree\\_\\_node-collapsible_>_.q-tree\\_\\_node-body]:(pt-[5px] pr-[0] pb-[8px] pl-[27px]) [&_>_.q-tree\\_\\_node-collapsible_>_.q-tree\\_\\_node-body:after]:(content-empty absolute top-[0] w-[2px] h-full right-auto left-[12px] [border-left:1px_solid_currentColor] bottom-[50px])`
46
+ `pl-[2px] [&>_.q-tree__node-header:before]:(w-[15px] -left-[15px]) [&>_.q-tree__node-collapsible>_.q-tree__node-body]:(pt-[5px] pr-[0] pb-[8px] pl-[27px]) [&>_.q-tree__node-collapsible>_.q-tree__node-body:after]:(content-empty absolute top-[0] w-[2px] h-full right-auto left-[12px] border-left-current bottom-[50px])`
47
47
  ],
48
48
  [
49
49
  /^q-tree__node--link$/,
@@ -52,16 +52,16 @@ const shortcuts = [
52
52
  [
53
53
  /^q-tree__node-header-content$/,
54
54
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node-header-content'] ??
55
- `text-[#000] [transition:color_0.3s] [&_.q-icon]:(text-[21px]) [&_.q-avatar]:(text-[28px] rounded-[50%] w-[28px] h-[28px])`
55
+ `text-[#000] [transition:color_0.3s] [&_.q-icon]:(text-21px) [&_.q-avatar]:(text-[28px] rounded-[50%] w-[28px] h-[28px])`
56
56
  ],
57
57
  [
58
58
  /^q-tree__node--selected$/,
59
59
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__node--selected'] ??
60
- `[&_.q-tree\\_\\_node-header-content]:(text-[#9e9e9e])`
60
+ `[&_.q-tree\\_\\_node--selected_.q-tree__node-header-content]:(text-[#9e9e9e])`
61
61
  ],
62
62
  [
63
63
  /^q-tree__icon$/,
64
- ([, c], { theme }) => theme.quasar?.components?.['q-tree__icon'] ?? `text-[21px]`
64
+ ([, c], { theme }) => theme.quasar?.components?.['q-tree__icon'] ?? `text-21px`
65
65
  ],
66
66
  [
67
67
  /^q-tree__img$/,
@@ -84,7 +84,7 @@ const shortcuts = [
84
84
  [
85
85
  /^q-tree__arrow--rotate$/,
86
86
  ([, c], { theme }) => theme.quasar?.components?.['q-tree__arrow--rotate'] ??
87
- `[transform:rotate3d(0,_0,_1,_90deg)]`
87
+ `[transform:rotate3d(0_0_1_90deg)]`
88
88
  ],
89
89
  [
90
90
  /^q-tree__tickbox$/,
@@ -93,22 +93,22 @@ const shortcuts = [
93
93
  [
94
94
  /^q-tree--dark$/,
95
95
  ([, c], { theme }) => theme.quasar?.components?.['q-tree--dark'] ??
96
- `[&_.q-tree\\_\\_node-header-content]:(text-[#fff])`
96
+ `[&--dark] [&_.q-tree__node-header-content]:(text-[#fff])`
97
97
  ],
98
98
  [
99
99
  /^q-tree--no-connectors$/,
100
100
  ([, c], { theme }) => theme.quasar?.components?.['q-tree--no-connectors'] ??
101
- `[&_.q-tree\\_\\_node:after]:(!hidden) [&_.q-tree\\_\\_node-header:before]:(!hidden) [&_.q-tree\\_\\_node-body:after]:(!hidden)`
101
+ `[&--no-connectors] [&_.q-tree__node:after]:(!hidden) [&--no-connectors] [&_.q-tree__node-header:before]:(!hidden) [&--no-connectors] [&_.q-tree__node-body:after]:(!hidden)`
102
102
  ],
103
103
  [
104
104
  /^q-tree--dense$/,
105
105
  ([, c], { theme }) => theme.quasar?.components?.['q-tree--dense'] ??
106
- `[&_>_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header]:(pl-px) [&_.q-tree\\_\\_arrow]:(mr-px) [&_.q-tree\\_\\_spinner]:(mr-px) [&_.q-tree\\_\\_img]:(h-[32px]) [&_.q-tree\\_\\_tickbox]:(mr-[3px]) [&_.q-tree\\_\\_node]:(p-0) [&_.q-tree\\_\\_node:after]:(top-[0] -left-[8px]) [&_.q-tree\\_\\_node-header]:(mt-0 p-px) [&_.q-tree\\_\\_node-header:before]:(top-[0] -left-[8px] w-[8px]) [&_.q-tree\\_\\_node--child]:(pl-[17px]) [&_.q-tree\\_\\_node--child_>_.q-tree\\_\\_node-header:before]:(-left-[25px] w-[21px]) [&_.q-tree\\_\\_node-body]:(pt-[0] px-[0] pb-[2px]) [&_.q-tree\\_\\_children]:(pl-[16px])`
106
+ `[&--dense] &>_.q-tree__node--child>_.q-tree__node-header:(pl-px) [&--dense] [&_.q-tree__arrow]:(mr-px) [&--dense] [&_.q-tree__spinner]:(mr-px) [&--dense] [&_.q-tree__img]:(h-[32px]) [&--dense] [&_.q-tree__tickbox]:(mr-[3px]) [&--dense] [&_.q-tree__node]:(p-0) [&--dense] [&_.q-tree__node:after]:(top-[0] -left-[8px]) [&--dense] [&_.q-tree__node-header]:(mt-0 p-px) [&--dense] [&_.q-tree__node-header:before]:(top-[0] -left-[8px] w-[8px]) [&--dense] &>_.q-tree__node--child>_.q-tree__node-header:(pl-[17px]) [&--dense] &>_.q-tree__node--child>_.q-tree__node-header:before:(-left-[25px] w-[21px]) [&--dense] [&_.q-tree__node-body]:(pt-[0] pr-[0] pb-[2px]) [&--dense] [&_.q-tree__children]:(pl-[16px])`
107
107
  ],
108
108
  [
109
109
  /^q-tree--dense$/,
110
110
  ([, c], { theme }) => theme.quasar?.components?.['q-tree--dense'] ??
111
- `[&__.q-tree\\_\\_node--parent__>_.q-tree\\_\\_node-collapsible__>_.q-tree\\_\\_node-body]:(pt-[0] pr-[0] pb-[2px] pl-[20px]) [&__.q-tree\\_\\_node--parent__>_.q-tree\\_\\_node-collapsible__>_.q-tree\\_\\_node-body:after]:(left-[8px])`
111
+ `[&--dense] &__.q-tree__node--parent>_.q-tree__node-collapsible>_.q-tree__node-body:(pt-[0] pr-[0] pb-[2px] pl-[20px]) [&--dense] &__.q-tree__node--parent>_.q-tree__node-collapsible>_.q-tree__node-body:after:(left-[8px])`
112
112
  ]
113
113
  ];
114
114
  export { preflights, shortcuts };
@@ -8,7 +8,6 @@ import { shortcuts as QBannerShortcuts } from './components/QBanner.unocss.js';
8
8
  import { shortcuts as QBarShortcuts } from './components/QBar.unocss.js';
9
9
  import { preflights as QBreadcrumbsPreflights, shortcuts as QBreadcrumbsShortcuts } from './components/QBreadcrumbs.unocss.js';
10
10
  import { shortcuts as QBtnDropdownShortcuts } from './components/QBtnDropdown.unocss.js';
11
- import { shortcuts as QBtnGroupShortcuts } from './components/QBtnGroup.unocss.js';
12
11
  import { shortcuts as QBtnToggleShortcuts } from './components/QBtnToggle.unocss.js';
13
12
  import { shortcuts as QCardShortcuts } from './components/QCard.unocss.js';
14
13
  import { shortcuts as QCarouselShortcuts } from './components/QCarousel.unocss.js';
@@ -79,7 +78,7 @@ const style = {
79
78
  variants: [],
80
79
  preflights: [].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights),
81
80
  rules: [].concat(),
82
- shortcuts: [].concat(QIconShortcuts, QAjaxBarShortcuts, QAvatarShortcuts, QBadgeShortcuts, QBreadcrumbsShortcuts, QBannerShortcuts, QBarShortcuts, QBtnShortcuts, QBtnDropdownShortcuts, QBtnGroupShortcuts, 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)
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)
83
82
  };
84
83
  export const setDefaultProps = ({ QBtn }) => { };
85
84
  export default style;
@@ -1,4 +1,52 @@
1
1
  const shortcuts = [
2
- [/^q-btn-toggle$/, ([, c], { theme }) => `relative`]
2
+ [/^q-btn-toggle$/, ([, c], { theme }) => `relative`],
3
+ [
4
+ /^q-btn-group$/,
5
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group'] ??
6
+ `!flex-initial
7
+ rounded-[3px]
8
+ [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)]
9
+ align-middle
10
+ [&_>_.q-btn-item]:(bg-transparent text-light-on-surface dark:text-dark-on-surface self-stretch)
11
+ [&_>_.q-btn-item.bg-primary]:(!bg-light-primary !text-light-on-primary dark:!bg-dark-primary dark:!text-dark-on-primary)
12
+ [&_>_.q-btn-item:before]:([box-shadow:none])
13
+ [&_>_.q-btn-item_.q-badge--floating]:(right-0)
14
+ [&_>_.q-btn-group]:([box-shadow:none])
15
+ [&_>_.q-btn-group:first-child_>_.q-btn--active]:(!bg-light-secondary-container dark:!bg-dark-secondary-container)
16
+ [&_>_.q-btn-group:first-child_>_.q-btn:first-child]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit])
17
+ [&_>_.q-btn-group:last-child_>_.q-btn:last-child]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit])
18
+ [&_>_.q-btn-group:not(:first-child)_>_.q-btn:first-child:before]:([border-left:0])
19
+ [&_>_.q-btn-group:not(:last-child)_>_.q-btn:last-child:before]:([border-right:0])
20
+ [&_>_.q-btn-item:not(:last-child)]:(rounded-tr-none rounded-br-none)
21
+ [&_>_.q-btn-item:not(:first-child)]:(rounded-tl-none rounded-bl-none)
22
+ [&_>_.q-btn-item.q-btn--standard:before]:(z--1)`
23
+ ],
24
+ [
25
+ /^q-btn-group--push$/,
26
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--push'] ??
27
+ `rounded-[7px] [&_>_.q-btn--push.q-btn--actionable]:(transform-none) [&_>_.q-btn--push.q-btn--actionable_.q-btn\\_\\_content]:([transition:margin-top_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1),_margin-bottom_0.3s_cubic-bezier(0.25,_0.8,_0.5,_1)]) [&_>_.q-btn--push.q-btn--actionable:active_.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])
28
+ [&__>_.q-btn--push.q-btn--actionable.q-btn--active__.q-btn\\_\\_content]:(mt-[2px] -mb-[2px])`
29
+ ],
30
+ [/^q-btn-group--rounded$/, ([, c], { theme }) => `rounded-[28px]`],
31
+ [/^q-btn-group--square$/, ([, c], { theme }) => `rounded-none`],
32
+ [/^q-btn-group--flat$/, ([, c], { theme }) => `[box-shadow:none]`],
33
+ [
34
+ /^q-btn-group--outline$/,
35
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--outline'] ??
36
+ `[box-shadow:none] [&_>_.q-separator]:(hidden) [&_>_.q-btn-item_+_.q-btn-item:before]:([border-left:0]) [&_>_.q-btn-item:not(:last-child):before]:([border-right:0])`
37
+ ],
38
+ [/^q-btn-group--unelevated$/, ([, c], { theme }) => `[box-shadow:none]`],
39
+ [/^q-btn-group--stretch$/, ([, c], { theme }) => `self-stretch rounded-none`],
40
+ [
41
+ /^q-btn-group--glossy$/,
42
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--glossy'] ??
43
+ `[&_>_.q-btn-item]:(!bg-[linear-gradient(_to_bottom,_rgba(255,_255,_255,_0.3),_rgba(255,_255,_255,_0)_50%,_rgba(0,_0,_0,_0.12)_51%,_rgba(0,_0,_0,_0.04)_)])`
44
+ ],
45
+ [
46
+ /^q-btn-group--spread$/,
47
+ ([, c], { theme }) => theme.quasar?.components?.['q-btn-group--spread'] ??
48
+ `[&_>_.q-btn-group]:(!flex) [&_>_.q-btn-item]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])
49
+ [&__>_.q-btn-group_>_.q-btn-item:not(.q-btn-dropdown\\_\\_arrow-container)]:(w-auto min-w-[0] max-w-full flex-[10000_1_0%])`
50
+ ]
3
51
  ];
4
52
  export { shortcuts };