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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -28,8 +28,8 @@ export const prerender = async ({
28
28
  path: outDir,
29
29
  logLevel: 'info',
30
30
  external: true,
31
- inlineFonts: true,
32
- preloadFonts: true
31
+ fonts: true,
32
+ compress: false
33
33
  })
34
34
 
35
35
  for (const url of paths) {
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: unoCssContentPipelineInclude
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 }) => `shadow-black border-rd-4px v-top bg-white relative
8
- [&>div:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
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-solid border-black border-op-120`
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 }) => `border-white border-op-280 shadow-black`
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
- [/^q-card__section--vert$/, ([, c], { theme }) => `p-16px`],
23
+
24
+ [/^q-card__section--vert$/, ([, c], { theme }) => `p-[16px]`],
25
+
28
26
  [
29
27
  /^q-card__section--horiz$/,
30
- (
31
- [, c],
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--card__actions$/,
44
- ([, c], { theme }) => `p-8px items-center
45
- [&_.q-btn--rectangle]:(px-8px py-0)`
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--card__actions--horiz$/,
49
- ([, c], { theme }) => `[&>.q-btn-item+.q-btn-item]:(ml-8px)
50
- [&>.q-btn-group+.q-btn-item]:(ml-8px)
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--card__actions--vert$/,
55
- ([, c], { theme }) => `[&>.q-btn-item.q-btn--round]:(self-center)
56
- [&>.q-btn-item+.q-btn-item]:(mt-4px)
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 }) => ` overflow-x-auto`],
26
+ [/^scroll-x$/, ([, c], { theme }) => `overflow-x-auto`],
27
27
 
28
- [/^scroll-y$/, ([, c], { theme }) => ` overflow-y-auto`],
28
+ [/^scroll-y$/, ([, c], { theme }) => `overflow-y-auto`],
29
29
 
30
30
  [/^no-scroll$/, ([, c], { theme }) => `!overflow-hidden`],
31
31