@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.
@@ -1,7 +1,3 @@
1
- declare type UserConfig as UnoConfig,
2
- } from 'unocss'
3
-
4
- const config: UnoConfig = {
5
- shortcuts: ui.shortcuts,
1
+ declare const config: UnoConfig;
6
2
 
7
3
  export default config;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.68.2",
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
- "dependencies": {
59
+ "devDependencies": {
60
60
  "@headlessui/vue": "^1.7.23",
61
- "@iconify-json/heroicons": "^1.2.1",
62
- "@iconify-json/heroicons-outline": "^1.2.0",
63
- "@iconify-json/heroicons-solid": "^1.2.0",
64
- "@iconify/json": "^2.2.264",
65
- "@julr/unocss-preset-forms": "^0.1.0",
66
- "@stacksjs/build": "0.68.1",
67
- "@stacksjs/config": "0.68.1",
68
- "@stacksjs/router": "0.68.1",
69
- "@unhead/vue": "^1.11.10",
70
- "pinia": "^2.2.4",
71
- "unhead": "^1.11.10",
72
- "unocss": "0.61.0",
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.12",
76
- "vue-tsc": "^2.1.8"
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
- type UserConfig as UnoConfig,
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
- heroicons: () => import('@iconify-json/heroicons/icons.json').then(i => i.default as any),
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
- // mono: 'Inter',
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