vitrify 0.17.0 → 0.17.2
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/frameworks/vue/prerender.js +2 -2
- package/dist/index.js +6 -2
- package/dist/plugins/quasar/unocss/components/QCard.unocss.js +11 -35
- package/dist/plugins/quasar/unocss/core/flex.unocss.js +1 -1
- package/dist/plugins/quasar/unocss/core/mouse.unocss.js +3 -3
- package/dist/plugins/quasar/unocss/index.js +1098 -826
- package/package.json +1 -1
- package/src/node/frameworks/vue/prerender.ts +2 -2
- package/src/node/index.ts +6 -2
- package/src/node/plugins/quasar/unocss/components/QCard.unocss.ts +25 -38
- package/src/node/plugins/quasar/unocss/core/flex.unocss.ts +1 -1
- package/src/node/plugins/quasar/unocss/core/mouse.unocss.ts +3 -3
- package/src/node/plugins/quasar/unocss/index.ts +1104 -826
package/package.json
CHANGED
package/src/node/index.ts
CHANGED
|
@@ -341,7 +341,7 @@ export const baseConfig = async ({
|
|
|
341
341
|
}
|
|
342
342
|
})
|
|
343
343
|
) {
|
|
344
|
-
unoCssContentPipelineInclude.push(/quasar\/src\/.*\.js/)
|
|
344
|
+
// unoCssContentPipelineInclude.push(/quasar\/src\/.*\.js/)
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
const plugins: ViteUserConfig['plugins'] = [
|
|
@@ -482,7 +482,11 @@ export const baseConfig = async ({
|
|
|
482
482
|
}),
|
|
483
483
|
UnoCSS({
|
|
484
484
|
...vitrifyConfig.vitrify?.unocss,
|
|
485
|
-
content:
|
|
485
|
+
content: {
|
|
486
|
+
pipeline: {
|
|
487
|
+
include: unoCssContentPipelineInclude
|
|
488
|
+
}
|
|
489
|
+
}
|
|
486
490
|
})
|
|
487
491
|
]
|
|
488
492
|
if (isPwa) {
|
|
@@ -4,60 +4,47 @@ import type { QuasarTheme } from '../theme.js'
|
|
|
4
4
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
5
5
|
[
|
|
6
6
|
/^q-card$/,
|
|
7
|
-
([, c], { theme }) =>
|
|
8
|
-
[
|
|
9
|
-
[&>img:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
|
|
10
|
-
[&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
|
|
11
|
-
[&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
|
|
12
|
-
[&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
|
|
13
|
-
[&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
|
|
14
|
-
[&>div:not(.q--avoid-card-border)]:(border-l-0 border-r-0 shadow-none)
|
|
15
|
-
[&>img]:(block w-full max-w-full border-none)
|
|
16
|
-
`
|
|
7
|
+
([, c], { theme }) =>
|
|
8
|
+
`[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])`
|
|
17
9
|
],
|
|
10
|
+
|
|
18
11
|
[
|
|
19
12
|
/^q-card--bordered$/,
|
|
20
|
-
([, c], { theme }) => `border-
|
|
13
|
+
([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
|
|
21
14
|
],
|
|
15
|
+
|
|
22
16
|
[
|
|
23
17
|
/^q-card--dark$/,
|
|
24
|
-
([, c], { theme }) =>
|
|
18
|
+
([, c], { theme }) =>
|
|
19
|
+
`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)]`
|
|
25
20
|
],
|
|
21
|
+
|
|
26
22
|
[/^q-card__section$/, ([, c], { theme }) => `relative`],
|
|
27
|
-
|
|
23
|
+
|
|
24
|
+
[/^q-card__section--vert$/, ([, c], { theme }) => `p-[16px]`],
|
|
25
|
+
|
|
28
26
|
[
|
|
29
27
|
/^q-card__section--horiz$/,
|
|
30
|
-
(
|
|
31
|
-
[
|
|
32
|
-
{ theme }
|
|
33
|
-
) => `[&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
|
|
34
|
-
[&>img:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
|
|
35
|
-
[&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
|
|
36
|
-
[&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
|
|
37
|
-
[&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
|
|
38
|
-
[&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
|
|
39
|
-
[&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 shadow-none)
|
|
40
|
-
`
|
|
28
|
+
([, c], { theme }) =>
|
|
29
|
+
`[&_>_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])`
|
|
41
30
|
],
|
|
31
|
+
|
|
42
32
|
[
|
|
43
|
-
/^q
|
|
44
|
-
([, c], { theme }) =>
|
|
45
|
-
|
|
33
|
+
/^q-card__actions$/,
|
|
34
|
+
([, c], { theme }) =>
|
|
35
|
+
`p-[8px] items-center [&_.q-btn--rectangle]:(px-[8px] py-[0])`
|
|
46
36
|
],
|
|
37
|
+
|
|
47
38
|
[
|
|
48
|
-
/^q
|
|
49
|
-
([, c], { theme }) =>
|
|
50
|
-
|
|
51
|
-
[&>.q-btn-item+.q-btn-group]:(ml-8px)`
|
|
39
|
+
/^q-card__actions--horiz$/,
|
|
40
|
+
([, c], { theme }) =>
|
|
41
|
+
`[&_>_.q-btn-item_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-group_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-item_+_.q-btn-group]:(ml-[8px])`
|
|
52
42
|
],
|
|
43
|
+
|
|
53
44
|
[
|
|
54
|
-
/^q
|
|
55
|
-
([, c], { theme }) =>
|
|
56
|
-
[
|
|
57
|
-
[&>.q-btn-group+.q-btn-item]:(mt-4px)
|
|
58
|
-
[&>.q-btn-item+.q-btn-group]:(mt-4px)
|
|
59
|
-
[&>.q-btn-group>.q-btn-item]:(flex-grow)
|
|
60
|
-
`
|
|
45
|
+
/^q-card__actions--vert$/,
|
|
46
|
+
([, c], { theme }) =>
|
|
47
|
+
`[&_>_.q-btn-item.q-btn--round]:(self-center) [&_>_.q-btn-item_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-group_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-item_+_.q-btn-group]:(mt-[4px]) [&_>_.q-btn-group_>_.q-btn-item]:(flex-grow)`
|
|
61
48
|
]
|
|
62
49
|
]
|
|
63
50
|
|
|
@@ -18,7 +18,7 @@ const sizes = ['sm', 'md', 'lg', 'xl']
|
|
|
18
18
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
19
19
|
[
|
|
20
20
|
/^row$/,
|
|
21
|
-
([, c], { theme }) => `flex flex-row flex-wrap
|
|
21
|
+
([, c], { theme }) => `flex flex-row flex-wrap
|
|
22
22
|
[&_>_.col]:(grow)
|
|
23
23
|
${sizes
|
|
24
24
|
.map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
|
|
@@ -21,11 +21,11 @@ const preflights: Preflight<QuasarTheme>[] = [
|
|
|
21
21
|
const shortcuts: UserShortcuts<QuasarTheme> = [
|
|
22
22
|
[/^non-selectable$/, ([, c], { theme }) => `!select-none`],
|
|
23
23
|
|
|
24
|
-
[/^scroll$/, ([, c], { theme }) => `overflow-auto
|
|
24
|
+
[/^scroll$/, ([, c], { theme }) => `overflow-auto`],
|
|
25
25
|
|
|
26
|
-
[/^scroll-x$/, ([, c], { theme }) => `
|
|
26
|
+
[/^scroll-x$/, ([, c], { theme }) => `overflow-x-auto`],
|
|
27
27
|
|
|
28
|
-
[/^scroll-y$/, ([, c], { theme }) => `
|
|
28
|
+
[/^scroll-y$/, ([, c], { theme }) => `overflow-y-auto`],
|
|
29
29
|
|
|
30
30
|
[/^no-scroll$/, ([, c], { theme }) => `!overflow-hidden`],
|
|
31
31
|
|