unocss-preset-quasar 0.2.2 → 0.2.3
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/core/flex.unocss.js +1 -1
- package/dist/index.js +17 -14
- package/dist/styles/md2/components/QField.unocss.js +1 -1
- package/dist/styles/md2/components/QPagination.unocss.js +1 -1
- package/dist/styles/md2/composables/panel.unocss.js +1 -1
- package/dist/styles/md3/components/QField.unocss.js +1 -1
- package/dist/styles/md3/components/QPagination.unocss.js +1 -1
- package/dist/styles/md3/composables/panel.unocss.js +1 -1
- package/package.json +1 -1
- package/src/core/flex.unocss.ts +1 -1
- package/src/index.ts +19 -14
- package/src/styles/md2/components/QField.unocss.ts +1 -1
- package/src/styles/md2/components/QPagination.unocss.ts +1 -1
- package/src/styles/md2/composables/panel.unocss.ts +1 -1
- package/src/styles/md3/components/QField.unocss.ts +1 -1
- package/src/styles/md3/components/QPagination.unocss.ts +1 -1
- package/src/styles/md3/composables/panel.unocss.ts +1 -1
package/dist/core/flex.unocss.js
CHANGED
|
@@ -21,7 +21,7 @@ const shortcuts = [
|
|
|
21
21
|
[
|
|
22
22
|
/^col(?:-)?(none|xs|sm|md|lg|xl|all|auto|grow)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
23
23
|
([, size, nr], { theme }) => {
|
|
24
|
-
const classes = ['
|
|
24
|
+
const classes = ['max-w-full'];
|
|
25
25
|
if (size && nr) {
|
|
26
26
|
classes.push(`${size}:basis-${nr}/12)`);
|
|
27
27
|
}
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,19 @@ const QChipSafelist = [
|
|
|
135
135
|
'q-chip--dense',
|
|
136
136
|
'q-chip--square'
|
|
137
137
|
];
|
|
138
|
+
const QRadioSafelist = [
|
|
139
|
+
'q-radio',
|
|
140
|
+
'q-radio__native',
|
|
141
|
+
'q-radio__bg',
|
|
142
|
+
'q-radio__icon-container',
|
|
143
|
+
'q-radio__icon',
|
|
144
|
+
'q-radio__check',
|
|
145
|
+
'q-radio__inner',
|
|
146
|
+
'q-radio__inner--truthy',
|
|
147
|
+
'q-radio--dark',
|
|
148
|
+
'q-radio--dense',
|
|
149
|
+
'q-radio__label'
|
|
150
|
+
];
|
|
138
151
|
const componentsSafelistMap = {
|
|
139
152
|
QIcon: ['q-icon'],
|
|
140
153
|
QTabPanel: ['q-panel', 'q-panel-parent'],
|
|
@@ -562,7 +575,7 @@ const componentsSafelistMap = {
|
|
|
562
575
|
'q-linear-progress__stripe--with-transition'
|
|
563
576
|
],
|
|
564
577
|
QMenu: QMenuSafelist,
|
|
565
|
-
QOptionGroup: ['q-option-group--inline'],
|
|
578
|
+
QOptionGroup: [...QRadioSafelist, 'q-option-group, q-option-group--inline'],
|
|
566
579
|
QPagination: [
|
|
567
580
|
'q-pagination',
|
|
568
581
|
'q-pagination__content',
|
|
@@ -575,18 +588,7 @@ const componentsSafelistMap = {
|
|
|
575
588
|
'q-pull-to-refresh__puller',
|
|
576
589
|
'q-pull-to-refresh__puller--animating'
|
|
577
590
|
],
|
|
578
|
-
QRadio:
|
|
579
|
-
'q-radio',
|
|
580
|
-
'q-radio__native',
|
|
581
|
-
'q-radio__bg',
|
|
582
|
-
'q-radio__icon-container',
|
|
583
|
-
'q-radio__icon',
|
|
584
|
-
'q-radio__check',
|
|
585
|
-
'q-radio__inner',
|
|
586
|
-
'q-radio__inner--truthy',
|
|
587
|
-
'q-radio--dark',
|
|
588
|
-
'q-radio--dense'
|
|
589
|
-
],
|
|
591
|
+
QRadio: QRadioSafelist,
|
|
590
592
|
QRange: QSliderSafelist,
|
|
591
593
|
QRating: [
|
|
592
594
|
'q-rating',
|
|
@@ -1002,7 +1004,8 @@ const pluginSafelistMap = {
|
|
|
1002
1004
|
'q-option-group--inline',
|
|
1003
1005
|
'q-spinner',
|
|
1004
1006
|
'q-spinner-mat',
|
|
1005
|
-
'fixed-full'
|
|
1007
|
+
'fixed-full',
|
|
1008
|
+
...QRadioSafelist
|
|
1006
1009
|
],
|
|
1007
1010
|
LoadingBar: [
|
|
1008
1011
|
'q-loading-bar',
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-pagination$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-pagination'] ??
|
|
5
|
-
|
|
5
|
+
`!flex-initial [&_input]:(text-center) [&_input::-webkit-outer-spin-button]:(m-0) [&_input::-webkit-inner-spin-button]:(m-0)`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-pagination__content$/,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [
|
|
2
|
+
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [&>div]:(h-full w-full)`],
|
|
3
3
|
[/^q-panel-parent$/, ([, c], { theme }) => `overflow-hidden relative`]
|
|
4
4
|
];
|
|
5
5
|
export { shortcuts };
|
|
@@ -2,7 +2,7 @@ const shortcuts = [
|
|
|
2
2
|
[
|
|
3
3
|
/^q-pagination$/,
|
|
4
4
|
([, c], { theme }) => theme.quasar?.components?.['q-pagination'] ??
|
|
5
|
-
|
|
5
|
+
`!flex-initial [&_input]:(text-center) [&_input::-webkit-outer-spin-button]:(m-0) [&_input::-webkit-inner-spin-button]:(m-0)`
|
|
6
6
|
],
|
|
7
7
|
[
|
|
8
8
|
/^q-pagination__content$/,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const shortcuts = [
|
|
2
|
-
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [
|
|
2
|
+
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [&>div]:(h-full w-full)`],
|
|
3
3
|
[/^q-panel-parent$/, ([, c], { theme }) => `overflow-hidden relative`]
|
|
4
4
|
];
|
|
5
5
|
export { shortcuts };
|
package/package.json
CHANGED
package/src/core/flex.unocss.ts
CHANGED
|
@@ -29,7 +29,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
29
29
|
[
|
|
30
30
|
/^col(?:-)?(none|xs|sm|md|lg|xl|all|auto|grow)?(?:-)?([2-9]|1[0-2]?)?$/,
|
|
31
31
|
([, size, nr], { theme }) => {
|
|
32
|
-
const classes = ['
|
|
32
|
+
const classes = ['max-w-full']
|
|
33
33
|
if (size && nr) {
|
|
34
34
|
classes.push(`${size}:basis-${nr}/12)`)
|
|
35
35
|
} else if (nr) {
|
package/src/index.ts
CHANGED
|
@@ -170,6 +170,21 @@ const QChipSafelist = [
|
|
|
170
170
|
'q-chip--dense',
|
|
171
171
|
'q-chip--square'
|
|
172
172
|
]
|
|
173
|
+
|
|
174
|
+
const QRadioSafelist = [
|
|
175
|
+
'q-radio',
|
|
176
|
+
'q-radio__native',
|
|
177
|
+
'q-radio__bg',
|
|
178
|
+
'q-radio__icon-container',
|
|
179
|
+
'q-radio__icon',
|
|
180
|
+
'q-radio__check',
|
|
181
|
+
'q-radio__inner',
|
|
182
|
+
'q-radio__inner--truthy',
|
|
183
|
+
'q-radio--dark',
|
|
184
|
+
'q-radio--dense',
|
|
185
|
+
'q-radio__label'
|
|
186
|
+
]
|
|
187
|
+
|
|
173
188
|
const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
174
189
|
{
|
|
175
190
|
QIcon: ['q-icon'],
|
|
@@ -598,7 +613,7 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
|
598
613
|
'q-linear-progress__stripe--with-transition'
|
|
599
614
|
],
|
|
600
615
|
QMenu: QMenuSafelist,
|
|
601
|
-
QOptionGroup: ['q-option-group--inline'],
|
|
616
|
+
QOptionGroup: [...QRadioSafelist, 'q-option-group, q-option-group--inline'],
|
|
602
617
|
QPagination: [
|
|
603
618
|
'q-pagination',
|
|
604
619
|
'q-pagination__content',
|
|
@@ -611,18 +626,7 @@ const componentsSafelistMap: Partial<Record<keyof QuasarComponents, string[]>> =
|
|
|
611
626
|
'q-pull-to-refresh__puller',
|
|
612
627
|
'q-pull-to-refresh__puller--animating'
|
|
613
628
|
],
|
|
614
|
-
QRadio:
|
|
615
|
-
'q-radio',
|
|
616
|
-
'q-radio__native',
|
|
617
|
-
'q-radio__bg',
|
|
618
|
-
'q-radio__icon-container',
|
|
619
|
-
'q-radio__icon',
|
|
620
|
-
'q-radio__check',
|
|
621
|
-
'q-radio__inner',
|
|
622
|
-
'q-radio__inner--truthy',
|
|
623
|
-
'q-radio--dark',
|
|
624
|
-
'q-radio--dense'
|
|
625
|
-
],
|
|
629
|
+
QRadio: QRadioSafelist,
|
|
626
630
|
QRange: QSliderSafelist,
|
|
627
631
|
QRating: [
|
|
628
632
|
'q-rating',
|
|
@@ -1039,7 +1043,8 @@ const pluginSafelistMap: Partial<Record<keyof QuasarPlugins, string[]>> = {
|
|
|
1039
1043
|
'q-option-group--inline',
|
|
1040
1044
|
'q-spinner',
|
|
1041
1045
|
'q-spinner-mat',
|
|
1042
|
-
'fixed-full'
|
|
1046
|
+
'fixed-full',
|
|
1047
|
+
...QRadioSafelist
|
|
1043
1048
|
],
|
|
1044
1049
|
LoadingBar: [
|
|
1045
1050
|
'q-loading-bar',
|
|
@@ -41,7 +41,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
41
41
|
/^q-field__marginal$/,
|
|
42
42
|
([, c], { theme }) =>
|
|
43
43
|
theme.quasar?.components?.['q-field__marginal'] ??
|
|
44
|
-
`
|
|
44
|
+
`text-black/54 text-[24px]
|
|
45
45
|
[&_>_*_+_*]:(ml-[2px])
|
|
46
46
|
[&_.q-avatar]:(text-[32px])`
|
|
47
47
|
],
|
|
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
6
6
|
/^q-pagination$/,
|
|
7
7
|
([, c], { theme }) =>
|
|
8
8
|
theme.quasar?.components?.['q-pagination'] ??
|
|
9
|
-
|
|
9
|
+
`!flex-initial [&_input]:(text-center) [&_input::-webkit-outer-spin-button]:(m-0) [&_input::-webkit-inner-spin-button]:(m-0)`
|
|
10
10
|
],
|
|
11
11
|
|
|
12
12
|
[
|
|
@@ -2,7 +2,7 @@ import type { UserShortcuts } from '@unocss/core'
|
|
|
2
2
|
import type { QuasarTheme } from '../../../theme.js'
|
|
3
3
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [
|
|
5
|
+
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [&>div]:(h-full w-full)`],
|
|
6
6
|
[/^q-panel-parent$/, ([, c], { theme }) => `overflow-hidden relative`]
|
|
7
7
|
]
|
|
8
8
|
|
|
@@ -41,7 +41,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
41
41
|
/^q-field__marginal$/,
|
|
42
42
|
([, c], { theme }) =>
|
|
43
43
|
theme.quasar?.components?.['q-field__marginal'] ??
|
|
44
|
-
`
|
|
44
|
+
`text-black/54 text-[24px]
|
|
45
45
|
[&_>_*_+_*]:(ml-[2px])
|
|
46
46
|
[&_.q-avatar]:(text-[32px])`
|
|
47
47
|
],
|
|
@@ -6,7 +6,7 @@ const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
|
6
6
|
/^q-pagination$/,
|
|
7
7
|
([, c], { theme }) =>
|
|
8
8
|
theme.quasar?.components?.['q-pagination'] ??
|
|
9
|
-
|
|
9
|
+
`!flex-initial [&_input]:(text-center) [&_input::-webkit-outer-spin-button]:(m-0) [&_input::-webkit-inner-spin-button]:(m-0)`
|
|
10
10
|
],
|
|
11
11
|
|
|
12
12
|
[
|
|
@@ -2,7 +2,7 @@ import type { UserShortcuts } from '@unocss/core'
|
|
|
2
2
|
import type { QuasarTheme } from '../../../theme.js'
|
|
3
3
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
|
-
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [
|
|
5
|
+
[/^q-panel$/, ([, c], { theme }) => `h-full w-full [&>div]:(h-full w-full)`],
|
|
6
6
|
[/^q-panel-parent$/, ([, c], { theme }) => `overflow-hidden relative`]
|
|
7
7
|
]
|
|
8
8
|
|