vitrify 0.17.11 → 0.17.13
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/QBanner.unocss.js +9 -12
- package/dist/plugins/quasar/unocss/components/QBtn.unocss.js +4 -2
- package/dist/plugins/quasar/unocss/components/QCheckbox.unocss.js +4 -4
- package/dist/plugins/quasar/unocss/components/QDate.unocss.js +5 -3
- package/dist/plugins/quasar/unocss/components/QFab.unocss.js +6 -5
- package/dist/plugins/quasar/unocss/components/QField.unocss.js +196 -35
- package/dist/plugins/quasar/unocss/components/QItem.unocss.js +3 -3
- package/dist/plugins/quasar/unocss/components/QPagination.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QPullToRefresh.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QScrollarea.unocss.js +4 -1
- package/dist/plugins/quasar/unocss/components/QStepper.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/components/QTable.unocss.js +3 -3
- package/dist/plugins/quasar/unocss/components/QTabs.unocss.js +3 -3
- package/dist/plugins/quasar/unocss/components/QTime.unocss.js +4 -4
- package/dist/plugins/quasar/unocss/components/QToggle.unocss.js +6 -5
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +14 -12
- package/dist/plugins/quasar/unocss/core/size.unocss.js +96 -84
- package/dist/plugins/quasar/unocss/index.js +17 -3
- package/dist/plugins/quasar/unocss/theme.js +8 -0
- package/dist/types/plugins/quasar/unocss/theme.d.ts +8 -0
- package/package.json +1 -1
- package/src/node/plugins/quasar/unocss/components/QBanner.unocss.ts +13 -12
- package/src/node/plugins/quasar/unocss/components/QBtn.unocss.ts +4 -2
- package/src/node/plugins/quasar/unocss/components/QCheckbox.unocss.ts +4 -4
- package/src/node/plugins/quasar/unocss/components/QDate.unocss.ts +5 -3
- package/src/node/plugins/quasar/unocss/components/QFab.unocss.ts +6 -5
- package/src/node/plugins/quasar/unocss/components/QField.unocss.ts +196 -37
- package/src/node/plugins/quasar/unocss/components/QItem.unocss.ts +3 -3
- package/src/node/plugins/quasar/unocss/components/QPagination.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QPullToRefresh.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QScrollarea.unocss.ts +4 -1
- package/src/node/plugins/quasar/unocss/components/QStepper.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/components/QTable.unocss.ts +3 -3
- package/src/node/plugins/quasar/unocss/components/QTabs.unocss.ts +3 -3
- package/src/node/plugins/quasar/unocss/components/QTime.unocss.ts +4 -4
- package/src/node/plugins/quasar/unocss/components/QToggle.unocss.ts +6 -5
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +28 -14
- package/src/node/plugins/quasar/unocss/core/size.unocss.ts +102 -84
- package/src/node/plugins/quasar/unocss/index.ts +38 -4
- package/src/node/plugins/quasar/unocss/theme.ts +16 -0
|
@@ -12,7 +12,7 @@ const shortcuts = [
|
|
|
12
12
|
[
|
|
13
13
|
/^q-time__header$/,
|
|
14
14
|
([, c], { theme }) => theme.quasar?.components?.['q-time__header'] ??
|
|
15
|
-
`[border-top-left-radius:inherit] text-[#fff] p-[16px] font-light`
|
|
15
|
+
`[border-top-left-radius:inherit] text-[#fff] p-[16px] font-light bg-primary`
|
|
16
16
|
],
|
|
17
17
|
[
|
|
18
18
|
/^q-time__actions$/,
|
|
@@ -22,7 +22,7 @@ const shortcuts = [
|
|
|
22
22
|
[
|
|
23
23
|
/^q-time__header-label$/,
|
|
24
24
|
([, c], { theme }) => theme.quasar?.components?.['q-time__header-label'] ??
|
|
25
|
-
`text-[28px] leading-none tracking-[-0.00833em] [&_>_div_+_div]:(ml-[4px])`
|
|
25
|
+
`text-[28px] leading-none tracking-[-0.00833em] [&_>_div_+_div]:(ml-[4px]) !flex-initial`
|
|
26
26
|
],
|
|
27
27
|
[
|
|
28
28
|
/^q-time__link$/,
|
|
@@ -36,7 +36,7 @@ const shortcuts = [
|
|
|
36
36
|
[
|
|
37
37
|
/^q-time__header-ampm$/,
|
|
38
38
|
([, c], { theme }) => theme.quasar?.components?.['q-time__header-ampm'] ??
|
|
39
|
-
`text-[16px] tracking-widest`
|
|
39
|
+
`text-[16px] tracking-widest !flex-initial`
|
|
40
40
|
],
|
|
41
41
|
[
|
|
42
42
|
/^q-time__content$/,
|
|
@@ -55,7 +55,7 @@ const shortcuts = [
|
|
|
55
55
|
[
|
|
56
56
|
/^q-time__clock$/,
|
|
57
57
|
([, c], { theme }) => theme.quasar?.components?.['q-time__clock'] ??
|
|
58
|
-
`p-[24px] w-
|
|
58
|
+
`p-[24px] w-[calc(100%-48px)] h-[calc(100%-48px)] max-w-full max-h-full text-[14px]`
|
|
59
59
|
],
|
|
60
60
|
[
|
|
61
61
|
/^q-time__clock-circle$/,
|
|
@@ -36,17 +36,17 @@ const shortcuts = [
|
|
|
36
36
|
[
|
|
37
37
|
/^q-toggle__track$/,
|
|
38
38
|
([, c], { theme }) => theme.quasar?.components?.['q-toggle__track'] ??
|
|
39
|
-
`h-[0.35em] rounded-[0.175em] opacity-[0.38] bg-current`
|
|
39
|
+
`h-[0.35em] max-w-32px rounded-[0.175em] opacity-[0.38] bg-current`
|
|
40
40
|
],
|
|
41
41
|
[
|
|
42
42
|
/^q-toggle__thumb$/,
|
|
43
43
|
([, c], { theme }) => theme.quasar?.components?.['q-toggle__thumb'] ??
|
|
44
|
-
`top-[0.25em] left-[0.25em] w-[0.5em] h-[0.5em] [transition:left_0.22s_cubic-bezier(0.4,_0,_0.2,_1)] select-none z-0 [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] rounded-[50%] bg-[#fff] [box-shadow:0_3px_1px_-2px_rgba(0,_0,_0,_0.2),_0_2px_2px_0_rgba(0,_0,_0,_0.14),_0_1px_5px_0_rgba(0,_0,_0,_0.12)]) [&_.q-icon]:(text-[0.3em] min-w-[1em] text-[#000] opacity-[0.54])`
|
|
44
|
+
`top-[0.25em] left-[0.25em] w-[0.5em] h-[0.5em] [transition:left_0.22s_cubic-bezier(0.4,_0,_0.2,_1)] select-none z-0 [&:after]:(content-[''] absolute top-[0] right-[0] bottom-[0] left-[0] rounded-[50%] bg-[#fff] [box-shadow:0_3px_1px_-2px_rgba(0,_0,_0,_0.2),_0_2px_2px_0_rgba(0,_0,_0,_0.14),_0_1px_5px_0_rgba(0,_0,_0,_0.12)]) [&_.q-icon]:(layer-components:text-[0.3em] min-w-[1em] layer-components:text-[#000] opacity-[0.54])`
|
|
45
45
|
],
|
|
46
46
|
[
|
|
47
47
|
/^q-toggle__inner$/,
|
|
48
48
|
([, c], { theme }) => theme.quasar?.components?.['q-toggle__inner'] ??
|
|
49
|
-
`text-[40px] w-[1.4em] min-w-[1.4em] h-[1em] px-[0.3em] py-[0.325em]`
|
|
49
|
+
`text-[40px] w-[1.4em] min-w-[1.4em] max-h-[1em] px-[0.3em] py-[0.325em]`
|
|
50
50
|
],
|
|
51
51
|
[
|
|
52
52
|
/^q-toggle__inner--indet$/,
|
|
@@ -56,12 +56,13 @@ const shortcuts = [
|
|
|
56
56
|
[
|
|
57
57
|
/^q-toggle__inner--truthy$/,
|
|
58
58
|
([, c], { theme }) => theme.quasar?.components?.['q-toggle__inner--truthy'] ??
|
|
59
|
-
` [&_.q-toggle\\_\\_track]:(opacity-[0.54]) [&_.q-toggle\\_\\_thumb]:(left-[0.65em]) [&_.q-toggle\\_\\_thumb:after]:(bg-current) [&_.q-toggle\\_\\_thumb_.q-icon]:(text-[#fff] opacity-100)`
|
|
59
|
+
`layer-components:text-primary [&_.q-toggle\\_\\_track]:(opacity-[0.54]) [&_.q-toggle\\_\\_thumb]:(left-[0.65em]) [&_.q-toggle\\_\\_thumb:after]:(bg-current) [&_.q-toggle\\_\\_thumb_.q-icon]:(layer-components:text-[#fff] opacity-100)`
|
|
60
60
|
],
|
|
61
61
|
[
|
|
62
62
|
/^q-toggle--dark$/,
|
|
63
63
|
([, c], { theme }) => theme.quasar?.components?.['q-toggle--dark'] ??
|
|
64
|
-
`[&_.q-toggle\\_\\_inner
|
|
64
|
+
`[&_.q-toggle\\_\\_inner--truthy]:() [&_.q-toggle\\_\\_thumb:after]:([box-shadow:none]) [&_.q-toggle\\_\\_thumb:before]:(!opacity-[0.32])`
|
|
65
|
+
// [&_.q-toggle\\_\\_inner]:(layer-components:text-[#fff])
|
|
65
66
|
],
|
|
66
67
|
[
|
|
67
68
|
/^q-toggle--dense$/,
|
|
@@ -11,11 +11,11 @@ const colGutter = {
|
|
|
11
11
|
const shortcuts = [
|
|
12
12
|
[
|
|
13
13
|
/^row$/,
|
|
14
|
-
([, c], { theme }) => `flex flex-row flex-wrap [&.reverse]:(flex-row-reverse)`
|
|
14
|
+
([, c], { theme }) => `flex flex-row flex-wrap flex-auto [&.reverse]:(flex-row-reverse)`
|
|
15
15
|
],
|
|
16
16
|
[
|
|
17
17
|
/^column$/,
|
|
18
|
-
([, c], { theme }) => `flex flex-col flex-wrap [&.reverse]:(flex-col-reverse)`
|
|
18
|
+
([, c], { theme }) => `flex flex-col flex-wrap flex-auto [&.reverse]:(flex-col-reverse)`
|
|
19
19
|
],
|
|
20
20
|
[
|
|
21
21
|
/^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
@@ -34,31 +34,33 @@ const shortcuts = [
|
|
|
34
34
|
],
|
|
35
35
|
[
|
|
36
36
|
/^q-col-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
37
|
-
([, size], { theme }) => `gap-${colGutter[size]}
|
|
37
|
+
([, size], { theme }) => `gap-${colGutter[size]}
|
|
38
|
+
[&_>_[class^="col"]]:(mr--${colGutter[size]})
|
|
39
|
+
[&_>_[class^="col"]]:(mb--${colGutter[size]})`
|
|
38
40
|
],
|
|
39
41
|
[
|
|
40
42
|
/^q-col-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
41
|
-
([, size], { theme }) => `gap-x-${colGutter[size]}
|
|
43
|
+
([, size], { theme }) => `gap-x-${colGutter[size]}
|
|
44
|
+
[&_>_[class^="col"]]:(mr--${colGutter[size]})`
|
|
42
45
|
],
|
|
43
46
|
[
|
|
44
47
|
/^q-col-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
45
|
-
([, size], { theme }) => `gap-y-${colGutter[size]}
|
|
48
|
+
([, size], { theme }) => `gap-y-${colGutter[size]}
|
|
49
|
+
[&_>_[class^="col"]]:(mb--${colGutter[size]})`
|
|
46
50
|
],
|
|
47
51
|
[
|
|
48
52
|
/^q-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
49
|
-
([, size], { theme }) => `
|
|
50
|
-
ml--${colGutter[size]}
|
|
51
|
-
[&_>_*]:(ml-${colGutter[size]} mt-${colGutter[size]})`
|
|
53
|
+
([, size], { theme }) => `[&_>_*]:(mr-${colGutter[size]} mb-${colGutter[size]})`
|
|
52
54
|
],
|
|
53
55
|
[
|
|
54
56
|
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
55
|
-
([, size], { theme }) => `
|
|
56
|
-
|
|
57
|
+
([, size], { theme }) => `
|
|
58
|
+
[&_>_*]:(mr-${colGutter[size]})`
|
|
57
59
|
],
|
|
58
60
|
[
|
|
59
61
|
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
60
|
-
([, size], { theme }) => `
|
|
61
|
-
|
|
62
|
+
([, size], { theme }) => `
|
|
63
|
+
[&_>_*]:(mb-${colGutter[size]})`
|
|
62
64
|
],
|
|
63
65
|
[/^wrap$/, ([, size], { theme }) => `flex-wrap`],
|
|
64
66
|
[/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
|
|
@@ -16,90 +16,102 @@ const shortcuts = [
|
|
|
16
16
|
[/^full-width$/, ([, c], { theme }) => `!w-full !ml-0 !mr-0`],
|
|
17
17
|
[/^window-height$/, ([, c], { theme }) => `!mt-0 !mb-0 !h-screen`],
|
|
18
18
|
[/^window-width$/, ([, c], { theme }) => `!ml-0 !mr-0 !w-screen`],
|
|
19
|
-
[
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[/^q-
|
|
32
|
-
[/^q-
|
|
33
|
-
[/^q-
|
|
34
|
-
[/^q-
|
|
35
|
-
[/^q-
|
|
36
|
-
[/^q-
|
|
37
|
-
[/^q-
|
|
38
|
-
[/^q-
|
|
39
|
-
[/^q-
|
|
40
|
-
[/^q-
|
|
41
|
-
[/^q-
|
|
42
|
-
[/^q-
|
|
43
|
-
[/^q-
|
|
44
|
-
[/^q-
|
|
45
|
-
[/^q-
|
|
46
|
-
[/^q-
|
|
47
|
-
[/^q-
|
|
48
|
-
[/^q-
|
|
49
|
-
[/^q-
|
|
50
|
-
[/^q-
|
|
51
|
-
[/^q-
|
|
52
|
-
[/^q-
|
|
53
|
-
[/^q-
|
|
54
|
-
[/^q-
|
|
55
|
-
[/^q-
|
|
56
|
-
[/^q-
|
|
57
|
-
[/^q-
|
|
58
|
-
[/^q-
|
|
59
|
-
[/^q-
|
|
60
|
-
[/^q-
|
|
61
|
-
[/^q-
|
|
62
|
-
[/^q-
|
|
63
|
-
[/^q-
|
|
64
|
-
[/^q-
|
|
65
|
-
[/^q-
|
|
66
|
-
[/^q-
|
|
67
|
-
[/^q-
|
|
68
|
-
[/^q-
|
|
69
|
-
[/^q-
|
|
70
|
-
[/^q-
|
|
71
|
-
[/^q-
|
|
72
|
-
[/^q-
|
|
73
|
-
[/^q-
|
|
74
|
-
[/^q-
|
|
75
|
-
[/^q-
|
|
76
|
-
[/^q-
|
|
77
|
-
[/^q-
|
|
78
|
-
[/^q-
|
|
79
|
-
[/^q-
|
|
80
|
-
[/^q-
|
|
81
|
-
[/^q-
|
|
82
|
-
[/^q-
|
|
83
|
-
[/^q-
|
|
84
|
-
[/^q-
|
|
85
|
-
[/^q-
|
|
86
|
-
[/^q-
|
|
87
|
-
[/^q-
|
|
88
|
-
[/^q-
|
|
89
|
-
[/^q-
|
|
90
|
-
[/^q-
|
|
91
|
-
[/^q-
|
|
92
|
-
[/^q-
|
|
93
|
-
[/^q-
|
|
94
|
-
[/^q-
|
|
95
|
-
[/^q-
|
|
96
|
-
[/^q-
|
|
97
|
-
[/^q-
|
|
98
|
-
[/^q-
|
|
99
|
-
[/^q-
|
|
100
|
-
[/^q-
|
|
101
|
-
[/^q-
|
|
102
|
-
[/^q-
|
|
19
|
+
[
|
|
20
|
+
/^q-p(a|t|b|l|r|x|y)?(?:-)(none|xs|sm|md|lg|xl)$/,
|
|
21
|
+
([, side, size], { theme }) => {
|
|
22
|
+
return `p${side}-${theme.quasar?.spaces[size]}`;
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
/^q-m(a|t|b|l|r|x|y)?(?:-)(none|xs|sm|md|lg|xl)$/,
|
|
27
|
+
([, side, size], { theme }) => {
|
|
28
|
+
return `m${side}-${theme.quasar?.spaces[size]}`;
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
// [/^q-pa-none$/, ([, c], { theme }) => `p-[0]`],
|
|
32
|
+
// [/^q-pl-none$/, ([, c], { theme }) => `pl-0`],
|
|
33
|
+
// [/^q-pr-none$/, ([, c], { theme }) => `pr-0`],
|
|
34
|
+
// [/^q-pt-none$/, ([, c], { theme }) => `pt-0`],
|
|
35
|
+
// [/^q-pb-none$/, ([, c], { theme }) => `pb-0`],
|
|
36
|
+
// [/^q-px-none$/, ([, c], { theme }) => `pl-0 pr-0`],
|
|
37
|
+
// [/^q-py-none$/, ([, c], { theme }) => `pt-0 pb-0`],
|
|
38
|
+
// [/^q-ma-none$/, ([, c], { theme }) => `m-[0]`],
|
|
39
|
+
// [/^q-ml-none$/, ([, c], { theme }) => `ml-0`],
|
|
40
|
+
// [/^q-mr-none$/, ([, c], { theme }) => `mr-0`],
|
|
41
|
+
// [/^q-mt-none$/, ([, c], { theme }) => `mt-0`],
|
|
42
|
+
// [/^q-mb-none$/, ([, c], { theme }) => `mb-0`],
|
|
43
|
+
// [/^q-mx-none$/, ([, c], { theme }) => `ml-0 mr-0`],
|
|
44
|
+
// [/^q-my-none$/, ([, c], { theme }) => `mt-0 mb-0`],
|
|
45
|
+
// [/^q-pa-xs$/, ([, c], { theme }) => `p-[4px]`],
|
|
46
|
+
// [/^q-pl-xs$/, ([, c], { theme }) => `pl-[4px]`],
|
|
47
|
+
// [/^q-pr-xs$/, ([, c], { theme }) => `pr-[4px]`],
|
|
48
|
+
// [/^q-pt-xs$/, ([, c], { theme }) => `pt-[4px]`],
|
|
49
|
+
// [/^q-pb-xs$/, ([, c], { theme }) => `pb-[4px]`],
|
|
50
|
+
// [/^q-px-xs$/, ([, c], { theme }) => `pl-[4px] pr-[4px]`],
|
|
51
|
+
// [/^q-py-xs$/, ([, c], { theme }) => `pt-[4px] pb-[4px]`],
|
|
52
|
+
// [/^q-ma-xs$/, ([, c], { theme }) => `m-[4px]`],
|
|
53
|
+
// [/^q-ml-xs$/, ([, c], { theme }) => `ml-[4px]`],
|
|
54
|
+
// [/^q-mr-xs$/, ([, c], { theme }) => `mr-[4px]`],
|
|
55
|
+
// [/^q-mt-xs$/, ([, c], { theme }) => `mt-[4px]`],
|
|
56
|
+
// [/^q-mb-xs$/, ([, c], { theme }) => `mb-[4px]`],
|
|
57
|
+
// [/^q-mx-xs$/, ([, c], { theme }) => `ml-[4px] mr-[4px]`],
|
|
58
|
+
// [/^q-my-xs$/, ([, c], { theme }) => `mt-[4px] mb-[4px]`],
|
|
59
|
+
// [/^q-pa-sm$/, ([, c], { theme }) => `p-[8px]`],
|
|
60
|
+
// [/^q-pl-sm$/, ([, c], { theme }) => `pl-[8px]`],
|
|
61
|
+
// [/^q-pr-sm$/, ([, c], { theme }) => `pr-[8px]`],
|
|
62
|
+
// [/^q-pt-sm$/, ([, c], { theme }) => `pt-[8px]`],
|
|
63
|
+
// [/^q-pb-sm$/, ([, c], { theme }) => `pb-[8px]`],
|
|
64
|
+
// [/^q-px-sm$/, ([, c], { theme }) => `pl-[8px] pr-[8px]`],
|
|
65
|
+
// [/^q-py-sm$/, ([, c], { theme }) => `pt-[8px] pb-[8px]`],
|
|
66
|
+
// [/^q-ma-sm$/, ([, c], { theme }) => `m-[8px]`],
|
|
67
|
+
// [/^q-ml-sm$/, ([, c], { theme }) => `ml-[8px]`],
|
|
68
|
+
// [/^q-mr-sm$/, ([, c], { theme }) => `mr-[8px]`],
|
|
69
|
+
// [/^q-mt-sm$/, ([, c], { theme }) => `mt-[8px]`],
|
|
70
|
+
// [/^q-mb-sm$/, ([, c], { theme }) => `mb-[8px]`],
|
|
71
|
+
// [/^q-mx-sm$/, ([, c], { theme }) => `ml-[8px] mr-[8px]`],
|
|
72
|
+
// [/^q-my-sm$/, ([, c], { theme }) => `mt-[8px] mb-[8px]`],
|
|
73
|
+
// [/^q-pa-md$/, ([, c], { theme }) => `p-[16px]`],
|
|
74
|
+
// [/^q-pl-md$/, ([, c], { theme }) => `pl-[16px]`],
|
|
75
|
+
// [/^q-pr-md$/, ([, c], { theme }) => `pr-[16px]`],
|
|
76
|
+
// [/^q-pt-md$/, ([, c], { theme }) => `pt-[16px]`],
|
|
77
|
+
// [/^q-pb-md$/, ([, c], { theme }) => `pb-[16px]`],
|
|
78
|
+
// [/^q-px-md$/, ([, c], { theme }) => `pl-[16px] pr-[16px]`],
|
|
79
|
+
// [/^q-py-md$/, ([, c], { theme }) => `pt-[16px] pb-[16px]`],
|
|
80
|
+
// [/^q-ma-md$/, ([, c], { theme }) => `m-[16px]`],
|
|
81
|
+
// [/^q-ml-md$/, ([, c], { theme }) => `ml-[16px]`],
|
|
82
|
+
// [/^q-mr-md$/, ([, c], { theme }) => `mr-[16px]`],
|
|
83
|
+
// [/^q-mt-md$/, ([, c], { theme }) => `mt-[16px]`],
|
|
84
|
+
// [/^q-mb-md$/, ([, c], { theme }) => `mb-[16px]`],
|
|
85
|
+
// [/^q-mx-md$/, ([, c], { theme }) => `ml-[16px] mr-[16px]`],
|
|
86
|
+
// [/^q-my-md$/, ([, c], { theme }) => `mt-[16px] mb-[16px]`],
|
|
87
|
+
// [/^q-pa-lg$/, ([, c], { theme }) => `p-[24px]`],
|
|
88
|
+
// [/^q-pl-lg$/, ([, c], { theme }) => `pl-[24px]`],
|
|
89
|
+
// [/^q-pr-lg$/, ([, c], { theme }) => `pr-[24px]`],
|
|
90
|
+
// [/^q-pt-lg$/, ([, c], { theme }) => `pt-[24px]`],
|
|
91
|
+
// [/^q-pb-lg$/, ([, c], { theme }) => `pb-[24px]`],
|
|
92
|
+
// [/^q-px-lg$/, ([, c], { theme }) => `pl-[24px] pr-[24px]`],
|
|
93
|
+
// [/^q-py-lg$/, ([, c], { theme }) => `pt-[24px] pb-[24px]`],
|
|
94
|
+
// [/^q-ma-lg$/, ([, c], { theme }) => `m-[24px]`],
|
|
95
|
+
// [/^q-ml-lg$/, ([, c], { theme }) => `ml-[24px]`],
|
|
96
|
+
// [/^q-mr-lg$/, ([, c], { theme }) => `mr-[24px]`],
|
|
97
|
+
// [/^q-mt-lg$/, ([, c], { theme }) => `mt-[24px]`],
|
|
98
|
+
// [/^q-mb-lg$/, ([, c], { theme }) => `mb-[24px]`],
|
|
99
|
+
// [/^q-mx-lg$/, ([, c], { theme }) => `ml-[24px] mr-[24px]`],
|
|
100
|
+
// [/^q-my-lg$/, ([, c], { theme }) => `mt-[24px] mb-[24px]`],
|
|
101
|
+
// [/^q-pa-xl$/, ([, c], { theme }) => `p-[48px]`],
|
|
102
|
+
// [/^q-pl-xl$/, ([, c], { theme }) => `pl-[48px]`],
|
|
103
|
+
// [/^q-pr-xl$/, ([, c], { theme }) => `pr-[48px]`],
|
|
104
|
+
// [/^q-pt-xl$/, ([, c], { theme }) => `pt-[48px]`],
|
|
105
|
+
// [/^q-pb-xl$/, ([, c], { theme }) => `pb-[48px]`],
|
|
106
|
+
// [/^q-px-xl$/, ([, c], { theme }) => `pl-[48px] pr-[48px]`],
|
|
107
|
+
// [/^q-py-xl$/, ([, c], { theme }) => `pt-[48px] pb-[48px]`],
|
|
108
|
+
// [/^q-ma-xl$/, ([, c], { theme }) => `m-[48px]`],
|
|
109
|
+
// [/^q-ml-xl$/, ([, c], { theme }) => `ml-[48px]`],
|
|
110
|
+
// [/^q-mr-xl$/, ([, c], { theme }) => `mr-[48px]`],
|
|
111
|
+
// [/^q-mt-xl$/, ([, c], { theme }) => `mt-[48px]`],
|
|
112
|
+
// [/^q-mb-xl$/, ([, c], { theme }) => `mb-[48px]`],
|
|
113
|
+
// [/^q-mx-xl$/, ([, c], { theme }) => `ml-[48px] mr-[48px]`],
|
|
114
|
+
// [/^q-my-xl$/, ([, c], { theme }) => `mt-[48px] mb-[48px]`],
|
|
103
115
|
[/^q-mt-auto$/, ([, c], { theme }) => `mt-auto`],
|
|
104
116
|
[/^q-my-auto$/, ([, c], { theme }) => `mt-auto mb-auto`],
|
|
105
117
|
[/^q-ml-auto$/, ([, c], { theme }) => `ml-auto`],
|
|
@@ -104,6 +104,9 @@ const toKebabCase = (str) => str
|
|
|
104
104
|
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
|
|
105
105
|
?.map((x) => x.toLowerCase())
|
|
106
106
|
.join('-') ?? '';
|
|
107
|
+
const componentsSafelistMap = {
|
|
108
|
+
QSelect: ['q-list', 'q-item', 'q-virtual-scroll', 'q-menu']
|
|
109
|
+
};
|
|
107
110
|
const pluginSafelistMap = {
|
|
108
111
|
BottomSheet: [
|
|
109
112
|
'q-bottom-sheet',
|
|
@@ -1776,9 +1779,11 @@ textarea {
|
|
|
1776
1779
|
].concat(QBreadcrumbsPreflights, QCheckboxPreflights, QChipPreflights, QCircularProgressPreflights, QDialogPreflights, QFieldPreflights, QLayoutPreflights, QLinearProgressPreflights, QRadioPreflights, QSelectPreflights, QSpinnerPreflights, QSkeletonPreflights, QTablePreflights, QTogglePreflights, QTreePreflights, ColorPreflights, DarkPreflights, HelperPreflights, MousePreflights, TypographyPreflights, VisibilityPreflights, TransitionPreflights, SizePreflights),
|
|
1777
1780
|
rules: [].concat(MouseRules, HelperRules, ElevationRules, VisibilityRules),
|
|
1778
1781
|
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, DarkShortcuts, FlexShortcuts, HelperShortcuts, MouseShortcuts, OrientationShortcuts, PositionShortcuts, SizeShortcuts, TouchShortcuts, TransitionsShortcuts, TypographyShortcuts, VisibilityShortcuts, QHeaderShortcuts, QFooterShortcuts, QDrawerShortcuts, ElevationShortcuts),
|
|
1782
|
+
outputToCssLayers: true,
|
|
1779
1783
|
layers: {
|
|
1780
|
-
|
|
1781
|
-
default: 1
|
|
1784
|
+
components: -1,
|
|
1785
|
+
default: 1,
|
|
1786
|
+
utilities: 2
|
|
1782
1787
|
},
|
|
1783
1788
|
theme: defaultTheme,
|
|
1784
1789
|
variants: [
|
|
@@ -1793,10 +1798,12 @@ textarea {
|
|
|
1793
1798
|
const pascalMatch = code.matchAll(/Q([A-Z][a-z0-9]+)+/g);
|
|
1794
1799
|
const transitionMatch = code.matchAll(/(transition|transition-show|transition-hide|transition-prev|transition-next)="(\S*)"/g);
|
|
1795
1800
|
const colorMatch = code.matchAll(/color="(\S*)"/g);
|
|
1801
|
+
const pascalComponentsMatch = [];
|
|
1796
1802
|
const matches = [];
|
|
1797
1803
|
for (const match of kebabMatch)
|
|
1798
1804
|
matches.push(match[0]);
|
|
1799
1805
|
for (const match of pascalMatch) {
|
|
1806
|
+
pascalComponentsMatch.push(match[0]);
|
|
1800
1807
|
matches.push(toKebabCase(match[0]));
|
|
1801
1808
|
}
|
|
1802
1809
|
const transitionClasses = [];
|
|
@@ -1816,9 +1823,16 @@ textarea {
|
|
|
1816
1823
|
}
|
|
1817
1824
|
const classes = qClasses.filter((c) => matches.some((component) => {
|
|
1818
1825
|
component = component.replaceAll('q-chat-message', 'q-message');
|
|
1826
|
+
component = component.replaceAll('q-scroll-area', 'q-scrollarea');
|
|
1819
1827
|
return c.includes(component);
|
|
1820
1828
|
}));
|
|
1821
|
-
|
|
1829
|
+
const componentClasses = pascalComponentsMatch.reduce((acc, component) => {
|
|
1830
|
+
if (component in componentsSafelistMap) {
|
|
1831
|
+
acc.push(...componentsSafelistMap[component]);
|
|
1832
|
+
}
|
|
1833
|
+
return acc;
|
|
1834
|
+
}, []);
|
|
1835
|
+
classes.push(...transitionClasses, ...colorClasses, ...componentClasses);
|
|
1822
1836
|
return classes;
|
|
1823
1837
|
}
|
|
1824
1838
|
}
|
|
@@ -1114,6 +1114,14 @@ export interface QuasarTheme {
|
|
|
1114
1114
|
'q-notification--bottom-leave-active'?: string;
|
|
1115
1115
|
'q-notification--bottom-right-leave-active'?: string;
|
|
1116
1116
|
};
|
|
1117
|
+
spaces: {
|
|
1118
|
+
none: number;
|
|
1119
|
+
xs: number;
|
|
1120
|
+
sm: number;
|
|
1121
|
+
md: number;
|
|
1122
|
+
lg: number;
|
|
1123
|
+
xl: number;
|
|
1124
|
+
};
|
|
1117
1125
|
z: {
|
|
1118
1126
|
fab: number;
|
|
1119
1127
|
side: number;
|
package/package.json
CHANGED
|
@@ -2,33 +2,34 @@ import type { Rule, UserShortcuts } from '@unocss/core'
|
|
|
2
2
|
import type { QuasarTheme } from '../theme.js'
|
|
3
3
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
[
|
|
6
|
+
/^q-banner$/,
|
|
7
|
+
([, c], { theme }) =>
|
|
8
|
+
theme.quasar?.components?.['q-banner'] ??
|
|
9
|
+
`min-h-[54px] px-[16px] py-[8px] bg-[#fff]`
|
|
10
|
+
],
|
|
11
|
+
|
|
12
|
+
[/^q-banner--top-padding$/, ([, c], { theme }) => `pt-[14px]`],
|
|
13
|
+
|
|
8
14
|
[
|
|
9
15
|
/^q-banner__avatar$/,
|
|
10
16
|
([, c], { theme }) =>
|
|
11
17
|
theme.quasar?.components?.['q-banner__avatar'] ??
|
|
12
|
-
|
|
13
|
-
[&.q-icon]:(text-40px)
|
|
14
|
-
[&:not(:empty)+.q-banner\\_\\_content]:(pl-16px)`
|
|
18
|
+
`!min-w-[1px] [&_>_.q-avatar]:(text-[46px]) [&_>_.q-icon]:(text-[40px]) [&:not(:empty)_+_.q-banner\\_\\_content]:(pl-[16px])`
|
|
15
19
|
],
|
|
20
|
+
|
|
16
21
|
[
|
|
17
22
|
/^q-banner__actions$/,
|
|
18
23
|
([, c], { theme }) =>
|
|
19
24
|
theme.quasar?.components?.['q-banner__actions'] ??
|
|
20
|
-
`[&.col-auto]:(pl-16px)
|
|
21
|
-
[&.col-all_.q.btn-item]:(mt-4px mb-0 ml-4px mr-0)`
|
|
25
|
+
`[&.col-auto]:(pl-[16px]) [&.col-all_.q-btn-item]:(mt-[4px] mr-[0] mb-[0] ml-[4px])`
|
|
22
26
|
],
|
|
23
27
|
|
|
24
28
|
[
|
|
25
29
|
/^q-banner--dense$/,
|
|
26
30
|
([, c], { theme }) =>
|
|
27
31
|
theme.quasar?.components?.['q-banner--dense'] ??
|
|
28
|
-
`min-h-32px p-8px
|
|
29
|
-
[&_.q-banner\\_\\_avatar>.q-avatar,.q-banner--dense_.q-banner\\_\\_avatar>.q-icon]:(text-28px)
|
|
30
|
-
[&_.q-banner\\_\\_avatar:not(:empty)+.q-banner\\_\\_content]:(pl-8px)
|
|
31
|
-
[&_.q-banner\\_\\_actions.col-auto]:(pl-8px)`
|
|
32
|
+
`min-h-[32px] p-[8px] [&.q-banner--top-padding]:(pt-[12px]) [&_.q-banner\\_\\_avatar_>_.q-avatar]:(text-[28px]) [&_.q-banner\\_\\_avatar_>_.q-icon]:(text-[28px]) [&_.q-banner\\_\\_avatar:not(:empty)_+_.q-banner\\_\\_content]:(pl-[8px]) [&_.q-banner\\_\\_actions.col-auto]:(pl-[8px])`
|
|
32
33
|
]
|
|
33
34
|
]
|
|
34
35
|
|
|
@@ -71,14 +71,16 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
71
71
|
/^q-btn--fab$/,
|
|
72
72
|
([, c], { theme }) =>
|
|
73
73
|
theme.quasar?.components?.['q-btn--fab'] ??
|
|
74
|
-
`[&_.q-icon]:(text-[24px]) p-[16px]
|
|
74
|
+
`[&_.q-icon]:(text-[24px]) p-[16px] [&_.q-icon]:(m-auto) pb-0`
|
|
75
|
+
// min-h-[56px] min-w-[56px]
|
|
75
76
|
],
|
|
76
77
|
|
|
77
78
|
[
|
|
78
79
|
/^q-btn--fab-mini$/,
|
|
79
80
|
([, c], { theme }) =>
|
|
80
81
|
theme.quasar?.components?.['q-btn--fab-mini'] ??
|
|
81
|
-
`[&_.q-icon]:(text-[24px]) p-[8px]
|
|
82
|
+
`[&_.q-icon]:(text-[24px]) p-[8px] pb-0`
|
|
83
|
+
// min-h-[40px] min-w-[40px]
|
|
82
84
|
],
|
|
83
85
|
|
|
84
86
|
[/^q-btn__content$/, ([, c], { theme }) => `[transition:opacity_0.3s] z-0`],
|
|
@@ -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-
|
|
71
|
+
`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
|
[
|
|
@@ -91,10 +91,10 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
91
91
|
/^q-checkbox--dark$/,
|
|
92
92
|
([, c], { theme }) =>
|
|
93
93
|
theme.quasar?.components?.['q-checkbox--dark'] ??
|
|
94
|
-
`[&_.q-checkbox\\_\\_inner]:(layer-
|
|
94
|
+
`[&_.q-checkbox\\_\\_inner]:(layer-components:text-[rgba(255,_255,_255,_0.7)])
|
|
95
95
|
[&_.q-checkbox\\_\\_inner:before]:(!opacity-[0.32])
|
|
96
|
-
[&_.q-checkbox\\_\\_inner--truthy]:(layer-
|
|
97
|
-
[&_.q-checkbox\\_\\_inner--indet]:(layer-
|
|
96
|
+
[&_.q-checkbox\\_\\_inner--truthy]:(layer-components:text-primary)
|
|
97
|
+
[&_.q-checkbox\\_\\_inner--indet]:(layer-components:text-primary)`
|
|
98
98
|
],
|
|
99
99
|
|
|
100
100
|
[
|
|
@@ -60,8 +60,8 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
60
60
|
[
|
|
61
61
|
/^q-date__view$/,
|
|
62
62
|
([, c], { theme }) =>
|
|
63
|
-
theme.quasar?.components?.['q-date__view'] ??
|
|
64
|
-
|
|
63
|
+
theme.quasar?.components?.['q-date__view'] ?? `min-h-[290px] p-[16px]`
|
|
64
|
+
// h-full w-full
|
|
65
65
|
],
|
|
66
66
|
|
|
67
67
|
[
|
|
@@ -194,7 +194,9 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
194
194
|
/^q-date--landscape$/,
|
|
195
195
|
([, c], { theme }) =>
|
|
196
196
|
theme.quasar?.components?.['q-date--landscape'] ??
|
|
197
|
-
`flex-row items-stretch min-w-[420px]
|
|
197
|
+
`flex-row items-stretch min-w-[420px]
|
|
198
|
+
[&_>_div]:(flex flex-auto flex-col)
|
|
199
|
+
[&_.q-date\\_\\_content]:(h-full)`
|
|
198
200
|
],
|
|
199
201
|
|
|
200
202
|
[
|
|
@@ -7,8 +7,8 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
7
7
|
[
|
|
8
8
|
/^q-fab$/,
|
|
9
9
|
([, c], { theme }) =>
|
|
10
|
-
theme.quasar?.components?.['q-fab'] ??
|
|
11
|
-
|
|
10
|
+
theme.quasar?.components?.['q-fab'] ?? `relative align-middle`
|
|
11
|
+
// [&_>_.q-btn]:(w-full)
|
|
12
12
|
],
|
|
13
13
|
|
|
14
14
|
[/^q-fab--form-rounded$/, ([, c], { theme }) => `rounded-[28px]`],
|
|
@@ -19,14 +19,14 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
19
19
|
/^q-fab__icon$/,
|
|
20
20
|
([, c], { theme }) =>
|
|
21
21
|
theme.quasar?.components?.['q-fab__icon'] ??
|
|
22
|
-
`[transition:opacity_0.4s,_transform_0.4s] opacity-100 rotate-0
|
|
22
|
+
`[transition:opacity_0.4s,_transform_0.4s] opacity-100 rotate-0 relative!`
|
|
23
23
|
],
|
|
24
24
|
|
|
25
25
|
[
|
|
26
26
|
/^q-fab__active-icon$/,
|
|
27
27
|
([, c], { theme }) =>
|
|
28
28
|
theme.quasar?.components?.['q-fab__active-icon'] ??
|
|
29
|
-
`[transition:opacity_0.4s,_transform_0.4s] opacity-0 -rotate-180`
|
|
29
|
+
`[transition:opacity_0.4s,_transform_0.4s] opacity-0 -rotate-180 relative! !left--20px !mr--20px`
|
|
30
30
|
],
|
|
31
31
|
|
|
32
32
|
[
|
|
@@ -107,7 +107,8 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
107
107
|
/^q-fab__icon-holder$/,
|
|
108
108
|
([, c], { theme }) =>
|
|
109
109
|
theme.quasar?.components?.['q-fab__icon-holder'] ??
|
|
110
|
-
`
|
|
110
|
+
`[&:before]:(content-empty)`
|
|
111
|
+
// min-w-[24px] min-h-[24px] relative
|
|
111
112
|
],
|
|
112
113
|
|
|
113
114
|
[
|