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
|
@@ -17,12 +17,12 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
17
17
|
[
|
|
18
18
|
/^row$/,
|
|
19
19
|
([, c], { theme }) =>
|
|
20
|
-
`flex flex-row flex-wrap [&.reverse]:(flex-row-reverse)`
|
|
20
|
+
`flex flex-row flex-wrap flex-auto [&.reverse]:(flex-row-reverse)`
|
|
21
21
|
],
|
|
22
22
|
[
|
|
23
23
|
/^column$/,
|
|
24
24
|
([, c], { theme }) =>
|
|
25
|
-
`flex flex-col flex-wrap [&.reverse]:(flex-col-reverse)`
|
|
25
|
+
`flex flex-col flex-wrap flex-auto [&.reverse]:(flex-col-reverse)`
|
|
26
26
|
],
|
|
27
27
|
[
|
|
28
28
|
/^col(?:-)?(none|xs|sm|md|lg|xl)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
@@ -40,38 +40,52 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
40
40
|
[
|
|
41
41
|
/^q-col-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
42
42
|
([, size], { theme }) =>
|
|
43
|
-
`gap-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
43
|
+
`gap-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
44
|
+
[&_>_[class^="col"]]:(mr--${
|
|
45
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
46
|
+
})
|
|
47
|
+
[&_>_[class^="col"]]:(mb--${
|
|
48
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
49
|
+
})`
|
|
44
50
|
],
|
|
45
51
|
[
|
|
46
52
|
/^q-col-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
47
53
|
([, size], { theme }) =>
|
|
48
|
-
`gap-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
54
|
+
`gap-x-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
55
|
+
[&_>_[class^="col"]]:(mr--${
|
|
56
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
57
|
+
})`
|
|
49
58
|
],
|
|
50
59
|
[
|
|
51
60
|
/^q-col-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
52
61
|
([, size], { theme }) =>
|
|
53
|
-
`gap-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
62
|
+
`gap-y-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']}
|
|
63
|
+
[&_>_[class^="col"]]:(mb--${
|
|
64
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
65
|
+
})`
|
|
54
66
|
],
|
|
55
67
|
[
|
|
56
68
|
/^q-gutter-(none|xs|sm|md|lg|xl)$/,
|
|
57
69
|
([, size], { theme }) =>
|
|
58
|
-
`
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
62
|
-
} mt-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
70
|
+
`[&_>_*]:(mr-${
|
|
71
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
72
|
+
} mb-${colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']})`
|
|
63
73
|
],
|
|
64
74
|
[
|
|
65
75
|
/^q-gutter-x-(none|xs|sm|md|lg|xl)$/,
|
|
66
76
|
([, size], { theme }) =>
|
|
67
|
-
`
|
|
68
|
-
|
|
77
|
+
`
|
|
78
|
+
[&_>_*]:(mr-${
|
|
79
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
80
|
+
})`
|
|
69
81
|
],
|
|
70
82
|
[
|
|
71
83
|
/^q-gutter-y-(none|xs|sm|md|lg|xl)$/,
|
|
72
84
|
([, size], { theme }) =>
|
|
73
|
-
`
|
|
74
|
-
|
|
85
|
+
`
|
|
86
|
+
[&_>_*]:(mb-${
|
|
87
|
+
colGutter[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
88
|
+
})`
|
|
75
89
|
],
|
|
76
90
|
[/^wrap$/, ([, size], { theme }) => `flex-wrap`],
|
|
77
91
|
[/^no-wrap$/, ([, size], { theme }) => `flex-nowrap`],
|
|
@@ -25,173 +25,191 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
25
25
|
|
|
26
26
|
[/^window-width$/, ([, c], { theme }) => `!ml-0 !mr-0 !w-screen`],
|
|
27
27
|
|
|
28
|
-
[
|
|
28
|
+
[
|
|
29
|
+
/^q-p(a|t|b|l|r|x|y)?(?:-)(none|xs|sm|md|lg|xl)$/,
|
|
30
|
+
([, side, size], { theme }) => {
|
|
31
|
+
return `p${side}-${
|
|
32
|
+
theme.quasar?.spaces[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
33
|
+
}`
|
|
34
|
+
}
|
|
35
|
+
],
|
|
29
36
|
|
|
30
|
-
[
|
|
37
|
+
[
|
|
38
|
+
/^q-m(a|t|b|l|r|x|y)?(?:-)(none|xs|sm|md|lg|xl)$/,
|
|
39
|
+
([, side, size], { theme }) => {
|
|
40
|
+
return `m${side}-${
|
|
41
|
+
theme.quasar?.spaces[size as 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl']
|
|
42
|
+
}`
|
|
43
|
+
}
|
|
44
|
+
],
|
|
31
45
|
|
|
32
|
-
[/^q-
|
|
46
|
+
// [/^q-pa-none$/, ([, c], { theme }) => `p-[0]`],
|
|
33
47
|
|
|
34
|
-
[/^q-
|
|
48
|
+
// [/^q-pl-none$/, ([, c], { theme }) => `pl-0`],
|
|
35
49
|
|
|
36
|
-
[/^q-
|
|
50
|
+
// [/^q-pr-none$/, ([, c], { theme }) => `pr-0`],
|
|
37
51
|
|
|
38
|
-
[/^q-
|
|
52
|
+
// [/^q-pt-none$/, ([, c], { theme }) => `pt-0`],
|
|
39
53
|
|
|
40
|
-
[/^q-
|
|
54
|
+
// [/^q-pb-none$/, ([, c], { theme }) => `pb-0`],
|
|
41
55
|
|
|
42
|
-
[/^q-
|
|
56
|
+
// [/^q-px-none$/, ([, c], { theme }) => `pl-0 pr-0`],
|
|
43
57
|
|
|
44
|
-
[/^q-
|
|
58
|
+
// [/^q-py-none$/, ([, c], { theme }) => `pt-0 pb-0`],
|
|
45
59
|
|
|
46
|
-
[/^q-
|
|
60
|
+
// [/^q-ma-none$/, ([, c], { theme }) => `m-[0]`],
|
|
47
61
|
|
|
48
|
-
[/^q-
|
|
62
|
+
// [/^q-ml-none$/, ([, c], { theme }) => `ml-0`],
|
|
49
63
|
|
|
50
|
-
[/^q-
|
|
64
|
+
// [/^q-mr-none$/, ([, c], { theme }) => `mr-0`],
|
|
51
65
|
|
|
52
|
-
[/^q-
|
|
66
|
+
// [/^q-mt-none$/, ([, c], { theme }) => `mt-0`],
|
|
53
67
|
|
|
54
|
-
[/^q-
|
|
68
|
+
// [/^q-mb-none$/, ([, c], { theme }) => `mb-0`],
|
|
55
69
|
|
|
56
|
-
[/^q-
|
|
70
|
+
// [/^q-mx-none$/, ([, c], { theme }) => `ml-0 mr-0`],
|
|
57
71
|
|
|
58
|
-
[/^q-
|
|
72
|
+
// [/^q-my-none$/, ([, c], { theme }) => `mt-0 mb-0`],
|
|
59
73
|
|
|
60
|
-
[/^q-
|
|
74
|
+
// [/^q-pa-xs$/, ([, c], { theme }) => `p-[4px]`],
|
|
61
75
|
|
|
62
|
-
[/^q-
|
|
76
|
+
// [/^q-pl-xs$/, ([, c], { theme }) => `pl-[4px]`],
|
|
63
77
|
|
|
64
|
-
[/^q-
|
|
78
|
+
// [/^q-pr-xs$/, ([, c], { theme }) => `pr-[4px]`],
|
|
65
79
|
|
|
66
|
-
[/^q-
|
|
80
|
+
// [/^q-pt-xs$/, ([, c], { theme }) => `pt-[4px]`],
|
|
67
81
|
|
|
68
|
-
[/^q-
|
|
82
|
+
// [/^q-pb-xs$/, ([, c], { theme }) => `pb-[4px]`],
|
|
69
83
|
|
|
70
|
-
[/^q-
|
|
84
|
+
// [/^q-px-xs$/, ([, c], { theme }) => `pl-[4px] pr-[4px]`],
|
|
71
85
|
|
|
72
|
-
[/^q-
|
|
86
|
+
// [/^q-py-xs$/, ([, c], { theme }) => `pt-[4px] pb-[4px]`],
|
|
73
87
|
|
|
74
|
-
[/^q-
|
|
88
|
+
// [/^q-ma-xs$/, ([, c], { theme }) => `m-[4px]`],
|
|
75
89
|
|
|
76
|
-
[/^q-
|
|
90
|
+
// [/^q-ml-xs$/, ([, c], { theme }) => `ml-[4px]`],
|
|
77
91
|
|
|
78
|
-
[/^q-
|
|
92
|
+
// [/^q-mr-xs$/, ([, c], { theme }) => `mr-[4px]`],
|
|
79
93
|
|
|
80
|
-
[/^q-
|
|
94
|
+
// [/^q-mt-xs$/, ([, c], { theme }) => `mt-[4px]`],
|
|
81
95
|
|
|
82
|
-
[/^q-
|
|
96
|
+
// [/^q-mb-xs$/, ([, c], { theme }) => `mb-[4px]`],
|
|
83
97
|
|
|
84
|
-
[/^q-
|
|
98
|
+
// [/^q-mx-xs$/, ([, c], { theme }) => `ml-[4px] mr-[4px]`],
|
|
85
99
|
|
|
86
|
-
[/^q-
|
|
100
|
+
// [/^q-my-xs$/, ([, c], { theme }) => `mt-[4px] mb-[4px]`],
|
|
87
101
|
|
|
88
|
-
[/^q-
|
|
102
|
+
// [/^q-pa-sm$/, ([, c], { theme }) => `p-[8px]`],
|
|
89
103
|
|
|
90
|
-
[/^q-
|
|
104
|
+
// [/^q-pl-sm$/, ([, c], { theme }) => `pl-[8px]`],
|
|
91
105
|
|
|
92
|
-
[/^q-
|
|
106
|
+
// [/^q-pr-sm$/, ([, c], { theme }) => `pr-[8px]`],
|
|
93
107
|
|
|
94
|
-
[/^q-
|
|
108
|
+
// [/^q-pt-sm$/, ([, c], { theme }) => `pt-[8px]`],
|
|
95
109
|
|
|
96
|
-
[/^q-
|
|
110
|
+
// [/^q-pb-sm$/, ([, c], { theme }) => `pb-[8px]`],
|
|
97
111
|
|
|
98
|
-
[/^q-
|
|
112
|
+
// [/^q-px-sm$/, ([, c], { theme }) => `pl-[8px] pr-[8px]`],
|
|
99
113
|
|
|
100
|
-
[/^q-
|
|
114
|
+
// [/^q-py-sm$/, ([, c], { theme }) => `pt-[8px] pb-[8px]`],
|
|
101
115
|
|
|
102
|
-
[/^q-
|
|
116
|
+
// [/^q-ma-sm$/, ([, c], { theme }) => `m-[8px]`],
|
|
103
117
|
|
|
104
|
-
[/^q-
|
|
118
|
+
// [/^q-ml-sm$/, ([, c], { theme }) => `ml-[8px]`],
|
|
105
119
|
|
|
106
|
-
[/^q-
|
|
120
|
+
// [/^q-mr-sm$/, ([, c], { theme }) => `mr-[8px]`],
|
|
107
121
|
|
|
108
|
-
[/^q-
|
|
122
|
+
// [/^q-mt-sm$/, ([, c], { theme }) => `mt-[8px]`],
|
|
109
123
|
|
|
110
|
-
[/^q-
|
|
124
|
+
// [/^q-mb-sm$/, ([, c], { theme }) => `mb-[8px]`],
|
|
111
125
|
|
|
112
|
-
[/^q-
|
|
126
|
+
// [/^q-mx-sm$/, ([, c], { theme }) => `ml-[8px] mr-[8px]`],
|
|
113
127
|
|
|
114
|
-
[/^q-
|
|
128
|
+
// [/^q-my-sm$/, ([, c], { theme }) => `mt-[8px] mb-[8px]`],
|
|
115
129
|
|
|
116
|
-
[/^q-
|
|
130
|
+
// [/^q-pa-md$/, ([, c], { theme }) => `p-[16px]`],
|
|
117
131
|
|
|
118
|
-
[/^q-
|
|
132
|
+
// [/^q-pl-md$/, ([, c], { theme }) => `pl-[16px]`],
|
|
119
133
|
|
|
120
|
-
[/^q-
|
|
134
|
+
// [/^q-pr-md$/, ([, c], { theme }) => `pr-[16px]`],
|
|
121
135
|
|
|
122
|
-
[/^q-
|
|
136
|
+
// [/^q-pt-md$/, ([, c], { theme }) => `pt-[16px]`],
|
|
123
137
|
|
|
124
|
-
[/^q-
|
|
138
|
+
// [/^q-pb-md$/, ([, c], { theme }) => `pb-[16px]`],
|
|
125
139
|
|
|
126
|
-
[/^q-
|
|
140
|
+
// [/^q-px-md$/, ([, c], { theme }) => `pl-[16px] pr-[16px]`],
|
|
127
141
|
|
|
128
|
-
[/^q-
|
|
142
|
+
// [/^q-py-md$/, ([, c], { theme }) => `pt-[16px] pb-[16px]`],
|
|
129
143
|
|
|
130
|
-
[/^q-
|
|
144
|
+
// [/^q-ma-md$/, ([, c], { theme }) => `m-[16px]`],
|
|
131
145
|
|
|
132
|
-
[/^q-
|
|
146
|
+
// [/^q-ml-md$/, ([, c], { theme }) => `ml-[16px]`],
|
|
133
147
|
|
|
134
|
-
[/^q-
|
|
148
|
+
// [/^q-mr-md$/, ([, c], { theme }) => `mr-[16px]`],
|
|
135
149
|
|
|
136
|
-
[/^q-
|
|
150
|
+
// [/^q-mt-md$/, ([, c], { theme }) => `mt-[16px]`],
|
|
137
151
|
|
|
138
|
-
[/^q-
|
|
152
|
+
// [/^q-mb-md$/, ([, c], { theme }) => `mb-[16px]`],
|
|
139
153
|
|
|
140
|
-
[/^q-
|
|
154
|
+
// [/^q-mx-md$/, ([, c], { theme }) => `ml-[16px] mr-[16px]`],
|
|
141
155
|
|
|
142
|
-
[/^q-
|
|
156
|
+
// [/^q-my-md$/, ([, c], { theme }) => `mt-[16px] mb-[16px]`],
|
|
143
157
|
|
|
144
|
-
[/^q-
|
|
158
|
+
// [/^q-pa-lg$/, ([, c], { theme }) => `p-[24px]`],
|
|
145
159
|
|
|
146
|
-
[/^q-
|
|
160
|
+
// [/^q-pl-lg$/, ([, c], { theme }) => `pl-[24px]`],
|
|
147
161
|
|
|
148
|
-
[/^q-
|
|
162
|
+
// [/^q-pr-lg$/, ([, c], { theme }) => `pr-[24px]`],
|
|
149
163
|
|
|
150
|
-
[/^q-
|
|
164
|
+
// [/^q-pt-lg$/, ([, c], { theme }) => `pt-[24px]`],
|
|
151
165
|
|
|
152
|
-
[/^q-
|
|
166
|
+
// [/^q-pb-lg$/, ([, c], { theme }) => `pb-[24px]`],
|
|
153
167
|
|
|
154
|
-
[/^q-
|
|
168
|
+
// [/^q-px-lg$/, ([, c], { theme }) => `pl-[24px] pr-[24px]`],
|
|
155
169
|
|
|
156
|
-
[/^q-
|
|
170
|
+
// [/^q-py-lg$/, ([, c], { theme }) => `pt-[24px] pb-[24px]`],
|
|
157
171
|
|
|
158
|
-
[/^q-
|
|
172
|
+
// [/^q-ma-lg$/, ([, c], { theme }) => `m-[24px]`],
|
|
159
173
|
|
|
160
|
-
[/^q-
|
|
174
|
+
// [/^q-ml-lg$/, ([, c], { theme }) => `ml-[24px]`],
|
|
161
175
|
|
|
162
|
-
[/^q-
|
|
176
|
+
// [/^q-mr-lg$/, ([, c], { theme }) => `mr-[24px]`],
|
|
163
177
|
|
|
164
|
-
[/^q-
|
|
178
|
+
// [/^q-mt-lg$/, ([, c], { theme }) => `mt-[24px]`],
|
|
165
179
|
|
|
166
|
-
[/^q-
|
|
180
|
+
// [/^q-mb-lg$/, ([, c], { theme }) => `mb-[24px]`],
|
|
167
181
|
|
|
168
|
-
[/^q-
|
|
182
|
+
// [/^q-mx-lg$/, ([, c], { theme }) => `ml-[24px] mr-[24px]`],
|
|
169
183
|
|
|
170
|
-
[/^q-
|
|
184
|
+
// [/^q-my-lg$/, ([, c], { theme }) => `mt-[24px] mb-[24px]`],
|
|
171
185
|
|
|
172
|
-
[/^q-
|
|
186
|
+
// [/^q-pa-xl$/, ([, c], { theme }) => `p-[48px]`],
|
|
173
187
|
|
|
174
|
-
[/^q-
|
|
188
|
+
// [/^q-pl-xl$/, ([, c], { theme }) => `pl-[48px]`],
|
|
175
189
|
|
|
176
|
-
[/^q-
|
|
190
|
+
// [/^q-pr-xl$/, ([, c], { theme }) => `pr-[48px]`],
|
|
177
191
|
|
|
178
|
-
[/^q-
|
|
192
|
+
// [/^q-pt-xl$/, ([, c], { theme }) => `pt-[48px]`],
|
|
179
193
|
|
|
180
|
-
[/^q-
|
|
194
|
+
// [/^q-pb-xl$/, ([, c], { theme }) => `pb-[48px]`],
|
|
181
195
|
|
|
182
|
-
[/^q-
|
|
196
|
+
// [/^q-px-xl$/, ([, c], { theme }) => `pl-[48px] pr-[48px]`],
|
|
183
197
|
|
|
184
|
-
[/^q-
|
|
198
|
+
// [/^q-py-xl$/, ([, c], { theme }) => `pt-[48px] pb-[48px]`],
|
|
185
199
|
|
|
186
|
-
[/^q-
|
|
200
|
+
// [/^q-ma-xl$/, ([, c], { theme }) => `m-[48px]`],
|
|
187
201
|
|
|
188
|
-
[/^q-
|
|
202
|
+
// [/^q-ml-xl$/, ([, c], { theme }) => `ml-[48px]`],
|
|
189
203
|
|
|
190
|
-
[/^q-
|
|
204
|
+
// [/^q-mr-xl$/, ([, c], { theme }) => `mr-[48px]`],
|
|
191
205
|
|
|
192
|
-
[/^q-
|
|
206
|
+
// [/^q-mt-xl$/, ([, c], { theme }) => `mt-[48px]`],
|
|
193
207
|
|
|
194
|
-
[/^q-
|
|
208
|
+
// [/^q-mb-xl$/, ([, c], { theme }) => `mb-[48px]`],
|
|
209
|
+
|
|
210
|
+
// [/^q-mx-xl$/, ([, c], { theme }) => `ml-[48px] mr-[48px]`],
|
|
211
|
+
|
|
212
|
+
// [/^q-my-xl$/, ([, c], { theme }) => `mt-[48px] mb-[48px]`],
|
|
195
213
|
|
|
196
214
|
[/^q-mt-auto$/, ([, c], { theme }) => `mt-auto`],
|
|
197
215
|
|
|
@@ -178,7 +178,11 @@ import {
|
|
|
178
178
|
import { shortcuts as QHeaderShortcuts } from './components/QHeader.unocss.js'
|
|
179
179
|
import { shortcuts as QFooterShortcuts } from './components/QFooter.unocss.js'
|
|
180
180
|
import { shortcuts as QDrawerShortcuts } from './components/QDrawer.unocss.js'
|
|
181
|
-
import {
|
|
181
|
+
import {
|
|
182
|
+
type QuasarComponents,
|
|
183
|
+
type QuasarIconSet,
|
|
184
|
+
type QuasarPlugins
|
|
185
|
+
} from 'quasar'
|
|
182
186
|
|
|
183
187
|
export interface QuasarPresetOptions {
|
|
184
188
|
plugins?: (keyof QuasarPlugins)[]
|
|
@@ -198,6 +202,11 @@ const toKebabCase = (str: string) =>
|
|
|
198
202
|
?.map((x) => x.toLowerCase())
|
|
199
203
|
.join('-') ?? ''
|
|
200
204
|
|
|
205
|
+
const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
206
|
+
{
|
|
207
|
+
QSelect: ['q-list', 'q-item', 'q-virtual-scroll', 'q-menu']
|
|
208
|
+
}
|
|
209
|
+
|
|
201
210
|
const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
|
|
202
211
|
BottomSheet: [
|
|
203
212
|
'q-bottom-sheet',
|
|
@@ -2001,9 +2010,11 @@ textarea {
|
|
|
2001
2010
|
QDrawerShortcuts,
|
|
2002
2011
|
ElevationShortcuts
|
|
2003
2012
|
),
|
|
2013
|
+
outputToCssLayers: true,
|
|
2004
2014
|
layers: {
|
|
2005
|
-
|
|
2006
|
-
default: 1
|
|
2015
|
+
components: -1,
|
|
2016
|
+
default: 1,
|
|
2017
|
+
utilities: 2
|
|
2007
2018
|
},
|
|
2008
2019
|
theme: defaultTheme,
|
|
2009
2020
|
variants: [
|
|
@@ -2021,9 +2032,11 @@ textarea {
|
|
|
2021
2032
|
)
|
|
2022
2033
|
const colorMatch = code.matchAll(/color="(\S*)"/g)
|
|
2023
2034
|
|
|
2035
|
+
const pascalComponentsMatch: string[] = []
|
|
2024
2036
|
const matches: string[] = []
|
|
2025
2037
|
for (const match of kebabMatch) matches.push(match[0])
|
|
2026
2038
|
for (const match of pascalMatch) {
|
|
2039
|
+
pascalComponentsMatch.push(match[0])
|
|
2027
2040
|
matches.push(toKebabCase(match[0]))
|
|
2028
2041
|
}
|
|
2029
2042
|
const transitionClasses = []
|
|
@@ -2047,10 +2060,31 @@ textarea {
|
|
|
2047
2060
|
const classes = qClasses.filter((c) =>
|
|
2048
2061
|
matches.some((component) => {
|
|
2049
2062
|
component = component.replaceAll('q-chat-message', 'q-message')
|
|
2063
|
+
component = component.replaceAll(
|
|
2064
|
+
'q-scroll-area',
|
|
2065
|
+
'q-scrollarea'
|
|
2066
|
+
)
|
|
2050
2067
|
return c.includes(component)
|
|
2051
2068
|
})
|
|
2052
2069
|
)
|
|
2053
|
-
|
|
2070
|
+
const componentClasses = pascalComponentsMatch.reduce(
|
|
2071
|
+
(acc, component) => {
|
|
2072
|
+
if (component in componentsSafelistMap) {
|
|
2073
|
+
acc.push(
|
|
2074
|
+
...(componentsSafelistMap as Record<string, string>)[
|
|
2075
|
+
component
|
|
2076
|
+
]
|
|
2077
|
+
)
|
|
2078
|
+
}
|
|
2079
|
+
return acc
|
|
2080
|
+
},
|
|
2081
|
+
[] as string[]
|
|
2082
|
+
)
|
|
2083
|
+
classes.push(
|
|
2084
|
+
...transitionClasses,
|
|
2085
|
+
...colorClasses,
|
|
2086
|
+
...componentClasses
|
|
2087
|
+
)
|
|
2054
2088
|
return classes
|
|
2055
2089
|
}
|
|
2056
2090
|
}
|
|
@@ -1117,6 +1117,14 @@ export interface QuasarTheme {
|
|
|
1117
1117
|
'q-notification--bottom-leave-active'?: string
|
|
1118
1118
|
'q-notification--bottom-right-leave-active'?: string
|
|
1119
1119
|
}
|
|
1120
|
+
spaces: {
|
|
1121
|
+
none: number
|
|
1122
|
+
xs: number
|
|
1123
|
+
sm: number
|
|
1124
|
+
md: number
|
|
1125
|
+
lg: number
|
|
1126
|
+
xl: number
|
|
1127
|
+
}
|
|
1120
1128
|
z: {
|
|
1121
1129
|
fab: number
|
|
1122
1130
|
side: number
|
|
@@ -1444,6 +1452,14 @@ const defaultTheme: QuasarTheme = {
|
|
|
1444
1452
|
'blue-grey-14': '#455a64'
|
|
1445
1453
|
},
|
|
1446
1454
|
quasar: {
|
|
1455
|
+
spaces: {
|
|
1456
|
+
none: 0,
|
|
1457
|
+
xs: 1,
|
|
1458
|
+
sm: 2,
|
|
1459
|
+
md: 4,
|
|
1460
|
+
lg: 6,
|
|
1461
|
+
xl: 12
|
|
1462
|
+
},
|
|
1447
1463
|
z: {
|
|
1448
1464
|
fab: 990,
|
|
1449
1465
|
side: 1000,
|