@stacksjs/ui 0.68.2 → 0.69.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/index.d.ts +2 -0
- package/dist/index.js +520 -131
- package/dist/uno.config.d.ts +1 -5
- package/package.json +18 -19
- package/src/uno.config.ts +19 -4
package/dist/uno.config.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.69.2",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -56,26 +56,25 @@
|
|
|
56
56
|
"typecheck": "bun tsc --noEmit",
|
|
57
57
|
"prepublishOnly": "bun run build"
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"devDependencies": {
|
|
60
60
|
"@headlessui/vue": "^1.7.23",
|
|
61
|
-
"@iconify-json/
|
|
62
|
-
"@iconify
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@stacksjs/
|
|
67
|
-
"@stacksjs/
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
61
|
+
"@iconify-json/hugeicons": "^1.2.3",
|
|
62
|
+
"@iconify/json": "^2.2.307",
|
|
63
|
+
"@julr/unocss-preset-forms": "^1.0.0",
|
|
64
|
+
"@stacksjs/build": "0.69.2",
|
|
65
|
+
"@stacksjs/config": "0.69.2",
|
|
66
|
+
"@stacksjs/development": "0.69.2",
|
|
67
|
+
"@stacksjs/router": "0.69.2",
|
|
68
|
+
"@unhead/vue": "^1.11.19",
|
|
69
|
+
"bun-plugin-unocss": "^0.1.2",
|
|
70
|
+
"chart.js": "^4.4.7",
|
|
71
|
+
"pinia": "^3.0.1",
|
|
72
|
+
"unhead": "^1.11.19",
|
|
73
|
+
"unocss": "66.0.0",
|
|
73
74
|
"unocss-preset-primitives": "0.0.2-beta.1",
|
|
74
75
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
75
|
-
"vue": "^3.5.
|
|
76
|
-
"vue-
|
|
77
|
-
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@stacksjs/development": "0.68.1"
|
|
76
|
+
"vue": "^3.5.13",
|
|
77
|
+
"vue-chartjs": "^5.3.2",
|
|
78
|
+
"vue-tsc": "^2.2.2"
|
|
80
79
|
}
|
|
81
80
|
}
|
package/src/uno.config.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import type { UserConfig as UnoConfig } from 'unocss'
|
|
1
2
|
import { presetForms } from '@julr/unocss-preset-forms'
|
|
2
3
|
import { ui } from '@stacksjs/config'
|
|
4
|
+
import { path } from '@stacksjs/path'
|
|
5
|
+
import presetWebFonts from '@unocss/preset-web-fonts'
|
|
6
|
+
import { createLocalFontProcessor } from '@unocss/preset-web-fonts/local'
|
|
3
7
|
import {
|
|
4
8
|
presetAttributify,
|
|
5
9
|
presetIcons,
|
|
6
10
|
presetTypography,
|
|
7
11
|
presetUno,
|
|
8
|
-
presetWebFonts,
|
|
12
|
+
// presetWebFonts,
|
|
9
13
|
transformerCompileClass,
|
|
10
14
|
transformerDirectives,
|
|
11
15
|
transformerVariantGroup,
|
|
12
|
-
|
|
16
|
+
|
|
13
17
|
} from 'unocss'
|
|
14
18
|
import { presetHeadlessUi } from 'unocss-preset-primitives'
|
|
15
19
|
|
|
@@ -34,7 +38,7 @@ const config: UnoConfig = {
|
|
|
34
38
|
prefix: 'i-',
|
|
35
39
|
warn: true,
|
|
36
40
|
collections: {
|
|
37
|
-
|
|
41
|
+
hugeicons: () => import('@iconify-json/hugeicons/icons.json').then(i => i.default as any),
|
|
38
42
|
},
|
|
39
43
|
extraProperties: {
|
|
40
44
|
'display': 'inline-block',
|
|
@@ -47,8 +51,19 @@ const config: UnoConfig = {
|
|
|
47
51
|
fonts: {
|
|
48
52
|
sans: 'Inter',
|
|
49
53
|
serif: 'Inter',
|
|
50
|
-
|
|
54
|
+
mono: 'Fira Code',
|
|
51
55
|
},
|
|
56
|
+
|
|
57
|
+
processors: createLocalFontProcessor({
|
|
58
|
+
// Directory to cache the fonts
|
|
59
|
+
cacheDir: path.projectPath('node_modules/.cache/unocss/fonts'),
|
|
60
|
+
|
|
61
|
+
// Directory to save the fonts assets
|
|
62
|
+
fontAssetsDir: path.resourcesPath('assets/fonts'),
|
|
63
|
+
|
|
64
|
+
// Base URL to serve the fonts from the client
|
|
65
|
+
fontServeBaseUrl: path.resourcesPath('assets/fonts'),
|
|
66
|
+
}),
|
|
52
67
|
}),
|
|
53
68
|
],
|
|
54
69
|
|