vitrify 0.17.9 → 0.17.11

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 (41) hide show
  1. package/dist/plugins/quasar/unocss/components/QAjaxBar.unocss.js +1 -1
  2. package/dist/plugins/quasar/unocss/components/QBar.unocss.js +2 -2
  3. package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +1 -1
  4. package/dist/plugins/quasar/unocss/components/QCard.unocss.js +12 -4
  5. package/dist/plugins/quasar/unocss/components/QChatMessage.unocss.js +7 -2
  6. package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +18 -6
  7. package/dist/plugins/quasar/unocss/components/QDrawer.unocss.js +6 -4
  8. package/dist/plugins/quasar/unocss/components/QFooter.unocss.js +1 -1
  9. package/dist/plugins/quasar/unocss/components/QMenu.unocss.js +1 -1
  10. package/dist/plugins/quasar/unocss/components/QTabPanel.unocss.js +1 -1
  11. package/dist/plugins/quasar/unocss/components/QTooltip.unocss.js +1 -1
  12. package/dist/plugins/quasar/unocss/core/colors.unocss.js +1 -1
  13. package/dist/plugins/quasar/unocss/core/flex.unocss.js +13 -6
  14. package/dist/plugins/quasar/unocss/core/position.unocss.js +2 -1
  15. package/dist/plugins/quasar/unocss/directives/QRipple.unocss.js +1 -1
  16. package/dist/plugins/quasar/unocss/index.js +151 -65
  17. package/dist/plugins/quasar/unocss/plugins/QLoading.unocss.js +1 -1
  18. package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +20 -20
  19. package/dist/plugins/quasar/unocss/theme.js +1 -1
  20. package/dist/types/plugins/quasar/unocss/index.d.ts +2 -1
  21. package/dist/types/plugins/quasar/unocss/theme.d.ts +1 -1
  22. package/package.json +1 -1
  23. package/src/node/plugins/quasar/unocss/components/QAjaxBar.unocss.ts +1 -1
  24. package/src/node/plugins/quasar/unocss/components/QBar.unocss.ts +2 -2
  25. package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +1 -1
  26. package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +12 -4
  27. package/src/node/plugins/quasar/unocss/components/QChatMessage.unocss.ts +7 -2
  28. package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +19 -6
  29. package/src/node/plugins/quasar/unocss/components/QDrawer.unocss.ts +8 -4
  30. package/src/node/plugins/quasar/unocss/components/QFooter.unocss.ts +1 -1
  31. package/src/node/plugins/quasar/unocss/components/QMenu.unocss.ts +1 -1
  32. package/src/node/plugins/quasar/unocss/components/QTabPanel.unocss.ts +1 -1
  33. package/src/node/plugins/quasar/unocss/components/QTooltip.unocss.ts +1 -1
  34. package/src/node/plugins/quasar/unocss/core/colors.unocss.ts +1 -1
  35. package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +15 -7
  36. package/src/node/plugins/quasar/unocss/core/position.unocss.ts +3 -1
  37. package/src/node/plugins/quasar/unocss/directives/QRipple.unocss.ts +1 -1
  38. package/src/node/plugins/quasar/unocss/index.ts +284 -191
  39. package/src/node/plugins/quasar/unocss/plugins/QLoading.unocss.ts +1 -1
  40. package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +38 -20
  41. package/src/node/plugins/quasar/unocss/theme.ts +2 -2
@@ -38,7 +38,7 @@ body.q-ios-padding .q-notifications__list--center, body.q-ios-padding .q-notific
38
38
  const shortcuts = [
39
39
  [
40
40
  /^q-notifications__list$/,
41
- ([, c], { theme }) => `pointer-events-none left-0 right-0 mb-[10px] relative z-9500`
41
+ ([, c], { theme }) => `pointer-events-none left-0 right-0 mb-[10px] relative z-${theme.quasar.z['notify']}`
42
42
  ],
43
43
  [/^q-notifications__list--center$/, ([, c], { theme }) => `top-0 bottom-0`],
44
44
  [/^q-notifications__list--top$/, ([, c], { theme }) => `top-0`],
@@ -46,7 +46,7 @@ const shortcuts = [
46
46
  [
47
47
  /^q-notification$/,
48
48
  ([, c], { theme }) => `[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] inline-flex mt-[10px] mx-[10px] mb-[0] [transition:transform_1s,_opacity_1s] flex-shrink-0 max-w-[95vw] bg-[#323232] text-[#fff] text-[14px]
49
- sm:max-w-65vw z-9500 pointer-events-all`
49
+ sm:max-w-65vw z-${theme.quasar.z['notify']} pointer-events-all`
50
50
  ],
51
51
  [
52
52
  /^q-notification__icon$/,
@@ -97,75 +97,75 @@ const shortcuts = [
97
97
  ],
98
98
  [
99
99
  /^q-notification--top-left-enter-from$/,
100
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
100
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
101
101
  ],
102
102
  [
103
103
  /^q-notification--top-left-leave-to$/,
104
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
104
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
105
105
  ],
106
106
  [
107
107
  /^q-notification--top-enter-from$/,
108
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
108
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
109
109
  ],
110
110
  [
111
111
  /^q-notification--top-leave-to$/,
112
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
112
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
113
113
  ],
114
114
  [
115
115
  /^q-notification--top-right-enter-from$/,
116
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
116
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
117
117
  ],
118
118
  [
119
119
  /^q-notification--top-right-leave-to$/,
120
- ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-9499`
120
+ ([, c], { theme }) => `opacity-0 -translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
121
121
  ],
122
122
  [
123
123
  /^q-notification--left-enter-from$/,
124
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
124
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
125
125
  ],
126
126
  [
127
127
  /^q-notification--left-leave-to$/,
128
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
128
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
129
129
  ],
130
130
  [
131
131
  /^q-notification--center-enter-from$/,
132
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
132
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
133
133
  ],
134
134
  [
135
135
  /^q-notification--center-leave-to$/,
136
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
136
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
137
137
  ],
138
138
  [
139
139
  /^q-notification--right-enter-from$/,
140
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
140
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
141
141
  ],
142
142
  [
143
143
  /^q-notification--right-leave-to$/,
144
- ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-9499`
144
+ ([, c], { theme }) => `opacity-0 [transform:rotateX(90deg)] z-${theme.quasar.z['notify'] - 1}`
145
145
  ],
146
146
  [
147
147
  /^q-notification--bottom-left-enter-from$/,
148
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
148
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
149
149
  ],
150
150
  [
151
151
  /^q-notification--bottom-left-leave-to$/,
152
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
152
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
153
153
  ],
154
154
  [
155
155
  /^q-notification--bottom-enter-from$/,
156
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
156
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
157
157
  ],
158
158
  [
159
159
  /^q-notification--bottom-leave-to$/,
160
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
160
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
161
161
  ],
162
162
  [
163
163
  /^q-notification--bottom-right-enter-from$/,
164
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
164
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
165
165
  ],
166
166
  [
167
167
  /^q-notification--bottom-right-leave-to$/,
168
- ([, c], { theme }) => `opacity-0 translate-y-[50px] z-9499`
168
+ ([, c], { theme }) => `opacity-0 translate-y-[50px] z-${theme.quasar.z['notify'] - 1}`
169
169
  ],
170
170
  [
171
171
  /^q-notification--top-left-leave-active$/,
@@ -15,7 +15,7 @@ const defaultTheme = {
15
15
  info: '#31CCEC',
16
16
  warning: '#F2C037',
17
17
  'dark-page': '#121212',
18
- 'q-dark': '#1d1d1d',
18
+ dark: '#1d1d1d',
19
19
  red: '#f44336',
20
20
  'red-1': '#ffebee',
21
21
  'red-2': '#ffcdd2',
@@ -1,9 +1,10 @@
1
+ import { type Preset } from 'unocss';
1
2
  import { type QuasarIconSet, type QuasarPlugins } from 'quasar';
2
3
  export interface QuasarPresetOptions {
3
4
  plugins?: (keyof QuasarPlugins)[];
4
5
  iconSet?: QuasarIconSet;
5
6
  }
6
- declare const _default: import("unocss").Preset<object>;
7
+ declare const _default: Preset<object>;
7
8
  export default _default;
8
9
  export declare const defaultSplitRE: RegExp;
9
10
  export declare const splitWithVariantGroupRE: RegExp;
@@ -15,7 +15,7 @@ export interface QuasarTheme {
15
15
  info: string;
16
16
  warning: string;
17
17
  'dark-page': string;
18
- 'q-dark': string;
18
+ dark: string;
19
19
  red: string;
20
20
  'red-1': string;
21
21
  'red-2': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.9",
3
+ "version": "0.17.11",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-loading-bar$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-loading-bar'] ??
9
- `fixed z-9998 transition-transform bg-red`
9
+ `fixed z-${theme.quasar.z['max']} transition-transform bg-red`
10
10
  ],
11
11
  [/^q-loading-bar--top$/, ([, c], { theme }) => `left-0 right-0 top-0 w-full`],
12
12
  [
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-bar$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-bar'] ??
9
- `bg-black op-20
9
+ `bg-black/20
10
10
  [&>.q-icon]:(ml-2px)
11
11
  [&>div]:(ml-8px)
12
12
  [&>div+.q-icon]:(ml-8px)
@@ -30,7 +30,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
30
30
  `px-8px py-0 h-24px text-14px
31
31
  [&_.q-btn]:(text-8px)`
32
32
  ],
33
- [/^q-bar--dark$/, ([, c], { theme }) => `bg-white op-15`]
33
+ [/^q-bar--dark$/, ([, c], { theme }) => `bg-white/20`]
34
34
  ]
35
35
 
36
36
  export { shortcuts }
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-btn$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-btn'] ??
9
- `items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
9
+ `font-medium items-stretch relative outline-0 border-0 align-middle text-[14px] leading-[1.715em] no-underline [color:inherit] bg-transparent font-medium uppercase text-center w-auto h-auto cursor-default px-[16px] py-[4px] min-h-[2.572em] [&_.q-icon]:(text-[1.715em]) [&_.q-spinner]:(text-[1.715em]) [&.disabled]:(!opacity-70) [&:before]:(content-empty block absolute left-[0] right-[0] top-[0] bottom-[0] [border-radius:inherit] [box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)])`
10
10
  // inline-flex flex-col
11
11
  ],
12
12
 
@@ -6,21 +6,29 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-card$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-card'] ??
9
- `[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] align-top bg-[#fff] relative [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] [box-shadow:none]) [&_>_img]:(block w-full max-w-full border-[0])`
9
+ `shadow-[0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] align-top bg-[#fff] relative
10
+ [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
11
+ [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none)
12
+ [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit])
13
+ [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit])
14
+ [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit])
15
+ [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit])
16
+ [&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] shadow-none)
17
+ [&_>_img]:(block w-full max-w-full border-[0])`
10
18
  ],
11
19
 
12
20
  [
13
21
  /^q-card--bordered$/,
14
22
  ([, c], { theme }) =>
15
23
  theme.quasar?.components?.['q-card--bordered'] ??
16
- `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
24
+ `border-1px border-solid border-black/12`
17
25
  ],
18
26
 
19
27
  [
20
28
  /^q-card--dark$/,
21
29
  ([, c], { theme }) =>
22
30
  theme.quasar?.components?.['q-card--dark'] ??
23
- `border-[rgba(255,_255,_255,_0.28)] [box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]`
31
+ `border-white/28 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)]`
24
32
  ],
25
33
 
26
34
  [/^q-card__section$/, ([, c], { theme }) => `relative`],
@@ -31,7 +39,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
31
39
  /^q-card__section--horiz$/,
32
40
  ([, c], { theme }) =>
33
41
  theme.quasar?.components?.['q-card__section--horiz'] ??
34
- `[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-top:0] [border-bottom:0] [box-shadow:none])`
42
+ `[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-top:0] [border-bottom:0] shadow-none)`
35
43
  ],
36
44
 
37
45
  [
@@ -38,7 +38,8 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
38
38
  /^q-message-text--received$/,
39
39
  ([, c], { theme }) =>
40
40
  theme.quasar?.components?.['q-message-text--received'] ??
41
- `text-[#81c784] rounded-tl-[4px] rounded-br-[4px] rounded-tr-[4px] rounded-bl-[0] [&:last-child:before]:(right-full [border-right:0_solid_transparent] [border-left:8px_solid_transparent] [border-bottom:8px_solid_currentColor])`
41
+ `text-[#81c784] rounded-tl-[4px] rounded-br-[4px] rounded-tr-[4px] rounded-bl-[0]
42
+ [&:last-child:before]:(right-full [border-right:0_solid_transparent] [border-left:8px_solid_transparent] [border-bottom:8px_solid_currentColor])`
42
43
  ],
43
44
 
44
45
  [/^q-message-text-content--received$/, ([, c], { theme }) => `text-[#000]`],
@@ -62,7 +63,11 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
62
63
  /^q-message-text$/,
63
64
  ([, c], { theme }) =>
64
65
  theme.quasar?.components?.['q-message-text'] ??
65
- `bg-current p-[8px] leading-[1.2] relative [&_+_.q-message-text]:(mt-[3px]) [&:last-child]:(min-h-[48px]) [&:last-child_.q-message-stamp]:(block) [&:last-child:before]:(content-empty absolute bottom-0 w-[0] h-[0])`
66
+ `bg-current p-[8px] leading-[1.2] relative
67
+ [&_+_.q-message-text]:(mt-[3px])
68
+ [&:last-child]:(min-h-[48px])
69
+ [&:last-child_.q-message-stamp]:(block)
70
+ [&:last-child:before]:(content-empty absolute bottom-0 w-[0] h-[0])`
66
71
  ]
67
72
  ]
68
73
 
@@ -28,7 +28,12 @@ body.desktop .q-checkbox--dense:not(.disabled):focus .q-checkbox__inner:before,
28
28
  ]
29
29
 
30
30
  const shortcuts: UserShortcuts<QuasarTheme> = [
31
- [/^q-checkbox$/, ([, c], { theme }) => `align-middle`],
31
+ [
32
+ /^q-checkbox$/,
33
+ ([, c], { theme }) =>
34
+ theme.quasar?.components?.['q-checkbox'] ??
35
+ `align-middle [&.disabled]:(!opacity-75)`
36
+ ],
32
37
 
33
38
  [/^q-checkbox__native$/, ([, c], { theme }) => `w-px h-px`],
34
39
 
@@ -49,7 +54,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
49
54
  /^q-checkbox__truthy$/,
50
55
  ([, c], { theme }) =>
51
56
  theme.quasar?.components?.['q-checkbox__truthy'] ??
52
- `stroke-current stroke-[3.12px]`
57
+ `stroke-current stroke-[3.12px] stroke-offset-[29.78334] stroke-dash-[29.78334]`
53
58
  ],
54
59
 
55
60
  [
@@ -63,14 +68,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
63
68
  /^q-checkbox__inner$/,
64
69
  ([, c], { theme }) =>
65
70
  theme.quasar?.components?.['q-checkbox__inner'] ??
66
- `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-0 rounded-[50%] text-[rgba(0,_0,_0,_0.54)]`
71
+ `text-[40px] w-[1em] min-w-[1em] h-[1em] outline-[0] rounded-[50%] layer-dismiss:text-[rgba(0,_0,_0,_0.54)]`
67
72
  ],
68
73
 
69
74
  [
70
75
  /^q-checkbox__inner--truthy$/,
71
76
  ([, c], { theme }) =>
72
77
  theme.quasar?.components?.['q-checkbox__inner--truthy'] ??
73
- `text-primary [&_.q-checkbox\\_\\_bg]:(bg-current) [&_path]:([transition:stroke-dashoffset_0.18s_cubic-bezier(0.4,_0,_0.6,_1)_0ms])`
78
+ `text-primary
79
+ [&_.q-checkbox\\_\\_bg]:(bg-current)
80
+ [&_path]:(stroke-offset-none [transition:stroke-dashoffset_0.18s_cubic-bezier(0.4,_0,_0.6,_1)_0ms])`
74
81
  ],
75
82
 
76
83
  [
@@ -84,14 +91,20 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
84
91
  /^q-checkbox--dark$/,
85
92
  ([, c], { theme }) =>
86
93
  theme.quasar?.components?.['q-checkbox--dark'] ??
87
- `[&_.q-checkbox\\_\\_inner]:(text-[rgba(255,_255,_255,_0.7)]) [&_.q-checkbox\\_\\_inner:before]:(!opacity-[0.32]) [&_.q-checkbox\\_\\_inner--truthy]:(text-primary) [&_.q-checkbox\\_\\_inner--indet]:(text-primary)`
94
+ `[&_.q-checkbox\\_\\_inner]:(layer-dismiss:text-[rgba(255,_255,_255,_0.7)])
95
+ [&_.q-checkbox\\_\\_inner:before]:(!opacity-[0.32])
96
+ [&_.q-checkbox\\_\\_inner--truthy]:(layer-dismiss:text-primary)
97
+ [&_.q-checkbox\\_\\_inner--indet]:(layer-dismiss:text-primary)`
88
98
  ],
89
99
 
90
100
  [
91
101
  /^q-checkbox--dense$/,
92
102
  ([, c], { theme }) =>
93
103
  theme.quasar?.components?.['q-checkbox--dense'] ??
94
- `[&_.q-checkbox\\_\\_inner]:(w-[0.5em] min-w-[0.5em] h-[0.5em]) [&_.q-checkbox\\_\\_bg]:(left-[5%] top-[5%] w-[90%] h-[90%]) [&_.q-checkbox\\_\\_label]:(pl-[0.5em])`
104
+ `[&_.q-checkbox\\_\\_inner]:(w-[0.5em] min-w-[0.5em] h-[0.5em])
105
+ [&_.q-checkbox\\_\\_bg]:(left-[5%] top-[5%] w-[90%] h-[90%])
106
+ [&_.q-checkbox\\_\\_label]:(pl-[0.5em])
107
+ [&.reverse_.q-checkbox\\_\\_label]:(pl-0 pr-[0.5em])`
95
108
  ]
96
109
  ]
97
110
 
@@ -6,12 +6,14 @@ 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-[#fff]`
9
+ `absolute top-[0] bottom-[0] bg-[#fff] z-${theme.quasar.z['side']}`
10
10
  ],
11
11
 
12
12
  [
13
13
  /^q-drawer--on-top$/,
14
- ([, c], { theme }) => theme.quasar?.components?.['q-drawer--on-top'] ?? ``
14
+ ([, c], { theme }) =>
15
+ theme.quasar?.components?.['q-drawer--on-top'] ??
16
+ `z-${theme.quasar.z['top']}`
15
17
  ],
16
18
 
17
19
  [
@@ -65,14 +67,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
65
67
 
66
68
  [
67
69
  /^q-drawer__backdrop$/,
68
- ([, c], { theme }) => theme.quasar?.components?.['q-drawer__backdrop'] ?? ``
70
+ ([, c], { theme }) =>
71
+ theme.quasar?.components?.['q-drawer__backdrop'] ??
72
+ `z-${theme.quasar.z['top'] - 1}`
69
73
  ],
70
74
 
71
75
  [
72
76
  /^q-drawer__opener$/,
73
77
  ([, c], { theme }) =>
74
78
  theme.quasar?.components?.['q-drawer__opener'] ??
75
- `h-full w-[15px] select-none`
79
+ `h-full w-[15px] select-none z-${theme.quasar.z['marginals'] + 1}`
76
80
  ]
77
81
  ]
78
82
 
@@ -15,7 +15,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
15
15
  /^q-footer$/,
16
16
  ([, c], { theme }) =>
17
17
  theme.quasar?.components?.['q-footer'] ??
18
- `[&_.q-layout\\_\\_shadow]:(-top-[10px]) [&_.q-layout\\_\\_shadow:after]:(top-[10px]) relative z-2000`
18
+ `[&_.q-layout\\_\\_shadow]:(-top-[10px]) [&_.q-layout\\_\\_shadow:after]:(top-[10px]) relative z-${theme.quasar.z['marginals']}`
19
19
  ]
20
20
  ]
21
21
 
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
6
6
  /^q-menu$/,
7
7
  ([, c], { theme }) =>
8
8
  theme.quasar?.components?.['q-menu'] ??
9
- `!fixed inline-block max-w-[95vw] max-h-[65vh] [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)] bg-[#fff] rounded-[4px] overflow-y-auto overflow-x-hidden outline-0 z-6000`
9
+ `!fixed inline-block max-w-[95vw] max-h-[65vh] [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)] bg-[#fff] rounded-[4px] overflow-y-auto overflow-x-hidden outline-0 z-${theme.quasar.z['menu']}`
10
10
  ],
11
11
 
12
12
  [/^q-menu--square$/, ([, c], { theme }) => `rounded-none`],
@@ -2,7 +2,7 @@ import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
2
2
  import type { QuasarTheme } from '../theme.js'
3
3
 
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
- [/^q-tab-panels$/, ([, c], { theme }) => `bg-[#fff]`],
5
+ [/^q-tab-panels$/, ([, c], { theme }) => `bg-inherit`],
6
6
 
7
7
  [/^q-tab-panel$/, ([, c], { theme }) => `p-[16px]`]
8
8
  ]
@@ -13,7 +13,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
13
13
  /^q-tooltip$/,
14
14
  ([, c], { theme }) =>
15
15
  theme.quasar?.components?.['q-tooltip'] ??
16
- `z-9000 !fixed overflow-y-auto overflow-x-hidden px-[10px] py-[6px] max-w-[95vw] max-h-[65vh] sm:(text-14px pt-8px pb-8px pl-16px pr-16px)`
16
+ `z-${theme.quasar.z['tooltip']} !fixed overflow-y-auto overflow-x-hidden px-[10px] py-[6px] max-w-[95vw] max-h-[65vh] sm:(text-14px pt-8px pb-8px pl-16px pr-16px)`
17
17
  ]
18
18
  ]
19
19
 
@@ -12,7 +12,7 @@ const preflights: Preflight<QuasarTheme>[] = [
12
12
  --q-negative: ${theme.colors.negative};
13
13
  --q-info: ${theme.colors.info};
14
14
  --q-warning: ${theme.colors.warning};
15
- --q-dark: ${theme.colors['q-dark']};
15
+ --q-dark: ${theme.colors['dark']};
16
16
  --q-dark-page: ${theme.colors['dark-page']};
17
17
  }`
18
18
  }
@@ -13,11 +13,17 @@ const colGutter = {
13
13
  xl: 12
14
14
  } as const
15
15
 
16
- const sizes = ['sm', 'md', 'lg', 'xl']
17
-
18
16
  const shortcuts: UserShortcuts<QuasarTheme> = [
19
- [/^row$/, ([, c], { theme }) => `flex flex-row flex-wrap`],
20
- [/^column$/, ([, c], { theme }) => `flex flex-col flex-wrap`],
17
+ [
18
+ /^row$/,
19
+ ([, c], { theme }) =>
20
+ `flex flex-row flex-wrap [&.reverse]:(flex-row-reverse)`
21
+ ],
22
+ [
23
+ /^column$/,
24
+ ([, c], { theme }) =>
25
+ `flex flex-col flex-wrap [&.reverse]:(flex-col-reverse)`
26
+ ],
21
27
  [
22
28
  /^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
23
29
  ([, size, nr], { theme }) => {
@@ -59,17 +65,19 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
59
65
  /^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
60
66
  ([, size], { theme }) =>
61
67
  `ml--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
62
- space-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
68
+ space-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
63
69
  ],
64
70
  [
65
71
  /^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
66
72
  ([, size], { theme }) =>
67
73
  `mt--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
68
- space-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
74
+ space-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
69
75
  ],
70
76
  [/^wrap$/, ([, size], { theme }) => `flex-wrap`],
71
77
  [/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
72
- [/^reverse-wrap$/, ([, size], { theme }) => `flex-wrap-reverse`]
78
+ [/^reverse-wrap$/, ([, size], { theme }) => `flex-wrap-reverse`],
79
+ [/^flex-center$/, ([, c], { theme }) => 'justify-center items-center'],
80
+ [/^inline$/, ([, c], { theme }) => 'flex-inline!']
73
81
  ]
74
82
 
75
83
  export { shortcuts }
@@ -75,7 +75,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
75
75
 
76
76
  [/^on-right$/, ([, c], { theme }) => `ml-[12px]`],
77
77
 
78
- [/^q-position-engine$/, ([, c], { theme }) => `!mt-0 !ml-0`]
78
+ [/^q-position-engine$/, ([, c], { theme }) => `!mt-0 !ml-0`],
79
+
80
+ [/^relative-position$/, ([, c], { theme }) => `relative`]
79
81
  ]
80
82
 
81
83
  export { shortcuts }
@@ -5,7 +5,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-ripple$/,
7
7
  ([, c], { theme }) =>
8
- `absolute top-0 left-0 w-full h-full [color:inherit] [border-radius:inherit] z-0 pointer-events-none overflow-hidden`
8
+ `absolute top-0 left-0 w-full h-full [color:inherit] [border-radius:inherit] z-0 pointer-events-none overflow-hidden z-0`
9
9
  ],
10
10
 
11
11
  [