vitrify 0.17.8 → 0.17.10
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.
- package/dist/plugins/quasar/unocss/components/QCarousel.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QDialog.unocss.js +2 -2
- package/dist/plugins/quasar/unocss/components/QFab.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QImg.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +7 -8
- package/dist/plugins/quasar/unocss/core/mouse.unocss.js +15 -2
- package/dist/plugins/quasar/unocss/core/size.unocss.js +13 -1
- package/dist/plugins/quasar/unocss/index.js +64 -6
- package/dist/plugins/quasar/unocss/plugins/QNotify.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/theme.js +291 -284
- package/dist/types/plugins/quasar/unocss/core/mouse.unocss.d.ts +3 -2
- package/dist/types/plugins/quasar/unocss/core/size.unocss.d.ts +3 -2
- package/dist/types/plugins/quasar/unocss/theme.d.ts +291 -284
- package/package.json +1 -1
- package/src/node/plugins/quasar/unocss/components/QCarousel.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QDialog.unocss.ts +2 -2
- package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QImg.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +9 -14
- package/src/node/plugins/quasar/unocss/core/mouse.unocss.ts +16 -3
- package/src/node/plugins/quasar/unocss/core/size.unocss.ts +14 -1
- package/src/node/plugins/quasar/unocss/index.ts +69 -5
- package/src/node/plugins/quasar/unocss/plugins/QNotify.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/theme.ts +582 -570
|
@@ -49,28 +49,23 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
49
49
|
[
|
|
50
50
|
/^q-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
51
51
|
([, size], { theme }) =>
|
|
52
|
-
`mt
|
|
53
|
-
ml
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
pl-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
52
|
+
`mt--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
53
|
+
ml--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
54
|
+
[&_>_*]:(ml-${
|
|
55
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
56
|
+
} mt-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
58
57
|
],
|
|
59
58
|
[
|
|
60
59
|
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
61
60
|
([, size], { theme }) =>
|
|
62
|
-
`ml
|
|
63
|
-
|
|
64
|
-
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
65
|
-
})`
|
|
61
|
+
`ml--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
62
|
+
space-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
|
|
66
63
|
],
|
|
67
64
|
[
|
|
68
65
|
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
69
66
|
([, size], { theme }) =>
|
|
70
|
-
`mt
|
|
71
|
-
|
|
72
|
-
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
73
|
-
})`
|
|
67
|
+
`mt--${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
68
|
+
space-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}`
|
|
74
69
|
],
|
|
75
70
|
[/^wrap$/, ([, size], { theme }) => `flex-wrap`],
|
|
76
71
|
[/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
|
|
@@ -36,11 +36,24 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
36
36
|
([, c], { theme }) => `!pointer-events-none [&_*]:(!pointer-events-none)`
|
|
37
37
|
],
|
|
38
38
|
|
|
39
|
-
[/^all-pointer-events$/, ([, c], { theme }) => ``],
|
|
40
|
-
|
|
41
39
|
[/^cursor-inherit$/, ([, c], { theme }) => `[cursor:inherit!important]`],
|
|
42
40
|
|
|
43
41
|
['cursor-pointer', 'cursor-[pointer]!']
|
|
44
42
|
]
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
const rules: Rule<QuasarTheme>[] = [
|
|
45
|
+
[
|
|
46
|
+
'all-pointer-events',
|
|
47
|
+
{
|
|
48
|
+
'pointer-events': 'all !important'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
'pointer-events-all',
|
|
53
|
+
{
|
|
54
|
+
'pointer-events': 'all !important'
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
export { preflights, shortcuts, rules }
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { Preflight, Rule, UserShortcuts } from '@unocss/core'
|
|
2
2
|
import type { QuasarTheme } from '../theme.js'
|
|
3
3
|
|
|
4
|
+
const preflights: Preflight<QuasarTheme>[] = [
|
|
5
|
+
{
|
|
6
|
+
getCSS: ({ theme }) => `
|
|
7
|
+
:root {
|
|
8
|
+
--q-size-xs: ${theme.breakpoints.xs};
|
|
9
|
+
--q-size-sm: ${theme.breakpoints.sm};
|
|
10
|
+
--q-size-md: ${theme.breakpoints.md};
|
|
11
|
+
--q-size-lg: ${theme.breakpoints.lg};
|
|
12
|
+
--q-size-xl: ${theme.breakpoints.xl};
|
|
13
|
+
}`
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
|
|
4
17
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
18
|
[/^fit$/, ([, c], { theme }) => `!w-full !h-full`],
|
|
6
19
|
|
|
@@ -193,4 +206,4 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
193
206
|
[/^q-mx-auto$/, ([, c], { theme }) => `ml-auto mr-auto`]
|
|
194
207
|
]
|
|
195
208
|
|
|
196
|
-
export { shortcuts }
|
|
209
|
+
export { preflights, shortcuts }
|
|
@@ -150,11 +150,15 @@ import {
|
|
|
150
150
|
} from './core/helpers.unocss.js'
|
|
151
151
|
import {
|
|
152
152
|
preflights as MousePreflights,
|
|
153
|
-
shortcuts as MouseShortcuts
|
|
153
|
+
shortcuts as MouseShortcuts,
|
|
154
|
+
rules as MouseRules
|
|
154
155
|
} from './core/mouse.unocss.js'
|
|
155
156
|
import { shortcuts as OrientationShortcuts } from './core/orientation.unocss.js'
|
|
156
157
|
import { shortcuts as PositionShortcuts } from './core/position.unocss.js'
|
|
157
|
-
import {
|
|
158
|
+
import {
|
|
159
|
+
preflights as SizePreflights,
|
|
160
|
+
shortcuts as SizeShortcuts
|
|
161
|
+
} from './core/size.unocss.js'
|
|
158
162
|
import { shortcuts as TouchShortcuts } from './core/touch.unocss.js'
|
|
159
163
|
import {
|
|
160
164
|
preflights as TransitionPreflights,
|
|
@@ -319,11 +323,64 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
|
|
|
319
323
|
'q-btn__progress-indicator',
|
|
320
324
|
'q-btn__progress--dark',
|
|
321
325
|
'q-spinner',
|
|
322
|
-
'q-spinner-mat'
|
|
326
|
+
'q-spinner-mat',
|
|
327
|
+
'q-notifications__list',
|
|
328
|
+
'q-notifications__list--center',
|
|
329
|
+
'q-notifications__list--top',
|
|
330
|
+
'q-notifications__list--bottom',
|
|
331
|
+
'q-notification',
|
|
332
|
+
'q-notification__icon',
|
|
333
|
+
'q-notification__icon--additional',
|
|
334
|
+
'q-notification__avatar',
|
|
335
|
+
'q-notification__avatar--additional',
|
|
336
|
+
'q-notification__spinner',
|
|
337
|
+
'q-notification__spinner--additional',
|
|
338
|
+
'q-notification__message',
|
|
339
|
+
'q-notification__caption',
|
|
340
|
+
'q-notification__actions',
|
|
341
|
+
'q-notification__badge',
|
|
342
|
+
'q-notification__badge--top-left',
|
|
343
|
+
'q-notification__badge--top-right',
|
|
344
|
+
'q-notification__badge--bottom-left',
|
|
345
|
+
'q-notification__badge--bottom-right',
|
|
346
|
+
'q-notification__progress',
|
|
347
|
+
'q-notification--standard',
|
|
348
|
+
'q-notification--multi-line',
|
|
349
|
+
'q-notification--top-left-enter-from',
|
|
350
|
+
'q-notification--top-left-leave-to',
|
|
351
|
+
'q-notification--top-enter-from',
|
|
352
|
+
'q-notification--top-leave-to',
|
|
353
|
+
'q-notification--top-right-enter-from',
|
|
354
|
+
'q-notification--top-right-leave-to',
|
|
355
|
+
'q-notification--left-enter-from',
|
|
356
|
+
'q-notification--left-leave-to',
|
|
357
|
+
'q-notification--center-enter-from',
|
|
358
|
+
'q-notification--center-leave-to',
|
|
359
|
+
'q-notification--right-enter-from',
|
|
360
|
+
'q-notification--right-leave-to',
|
|
361
|
+
'q-notification--bottom-left-enter-from',
|
|
362
|
+
'q-notification--bottom-left-leave-to',
|
|
363
|
+
'q-notification--bottom-enter-from',
|
|
364
|
+
'q-notification--bottom-leave-to',
|
|
365
|
+
'q-notification--bottom-right-enter-from',
|
|
366
|
+
'q-notification--bottom-right-leave-to',
|
|
367
|
+
'q-notification--top-left-leave-active',
|
|
368
|
+
'q-notification--top-leave-active',
|
|
369
|
+
'q-notification--top-right-leave-active',
|
|
370
|
+
'q-notification--left-leave-active',
|
|
371
|
+
'q-notification--center-leave-active',
|
|
372
|
+
'q-notification--right-leave-active',
|
|
373
|
+
'q-notification--bottom-left-leave-active',
|
|
374
|
+
'q-notification--bottom-leave-active',
|
|
375
|
+
'q-notification--bottom-right-leave-active'
|
|
323
376
|
]
|
|
324
377
|
}
|
|
325
378
|
|
|
326
379
|
const baseSafelist = [
|
|
380
|
+
'bg-primary',
|
|
381
|
+
'col',
|
|
382
|
+
'row',
|
|
383
|
+
'text-primary',
|
|
327
384
|
'absolute',
|
|
328
385
|
'absolute-bottom',
|
|
329
386
|
'absolute-full',
|
|
@@ -1821,9 +1878,11 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
|
1821
1878
|
MousePreflights,
|
|
1822
1879
|
TypographyPreflights,
|
|
1823
1880
|
VisibilityPreflights,
|
|
1824
|
-
TransitionPreflights
|
|
1881
|
+
TransitionPreflights,
|
|
1882
|
+
SizePreflights
|
|
1825
1883
|
),
|
|
1826
1884
|
rules: ([] as Rule<QuasarTheme>[]).concat(
|
|
1885
|
+
MouseRules,
|
|
1827
1886
|
HelperRules,
|
|
1828
1887
|
ElevationRules,
|
|
1829
1888
|
VisibilityRules
|
|
@@ -1935,6 +1994,7 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
|
1935
1994
|
const transitionMatch = code.matchAll(
|
|
1936
1995
|
/(transition|transition-show|transition-hide)="(\S*)"/g
|
|
1937
1996
|
)
|
|
1997
|
+
const colorMatch = code.matchAll(/color="(\S*)"/g)
|
|
1938
1998
|
|
|
1939
1999
|
const matches: string[] = []
|
|
1940
2000
|
for (const match of kebabMatch) matches.push(match[0])
|
|
@@ -1954,11 +2014,15 @@ export default definePreset((options: QuasarPresetOptions = {}) => {
|
|
|
1954
2014
|
].map((v) => `q-transition--${match[2]}-${v}`)
|
|
1955
2015
|
)
|
|
1956
2016
|
}
|
|
2017
|
+
const colorClasses = []
|
|
2018
|
+
for (const match of colorMatch) {
|
|
2019
|
+
colorClasses.push(`text-${match[1]}`, `bg-${match[1]}`)
|
|
2020
|
+
}
|
|
1957
2021
|
|
|
1958
2022
|
const classes = qClasses.filter((c) =>
|
|
1959
2023
|
matches.some((component) => c.includes(component))
|
|
1960
2024
|
)
|
|
1961
|
-
classes.push(...transitionClasses)
|
|
2025
|
+
classes.push(...transitionClasses, ...colorClasses)
|
|
1962
2026
|
return classes
|
|
1963
2027
|
}
|
|
1964
2028
|
}
|
|
@@ -56,7 +56,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
56
56
|
/^q-notification$/,
|
|
57
57
|
([, c], { theme }) =>
|
|
58
58
|
`[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]
|
|
59
|
-
sm:max-w-65vw z-9500`
|
|
59
|
+
sm:max-w-65vw z-9500 pointer-events-all`
|
|
60
60
|
],
|
|
61
61
|
|
|
62
62
|
[
|