@stacksjs/ui 0.70.23 → 0.70.26
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/README.md +4 -5
- package/dist/index.js +1 -736
- package/dist/src/index.d.ts +3 -0
- package/package.json +11 -28
- package/src/components/disclosure.ts +1 -1
- package/src/components/menu.ts +1 -1
- package/src/components/modal.ts +1 -1
- package/src/components/popover.ts +1 -1
- package/src/components/radio-group.ts +1 -1
- package/src/components/select.ts +1 -1
- package/src/components/tabs.ts +1 -1
- package/src/components/toggle.ts +1 -1
- package/src/components/transition.ts +1 -1
- package/src/index.ts +2 -6
- package/dist/components.d.ts +0 -10
- package/dist/disclosure.d.ts +0 -5
- package/dist/index.d.ts +0 -6
- package/dist/menu.d.ts +0 -1
- package/dist/modal.d.ts +0 -6
- package/dist/popover.d.ts +0 -1
- package/dist/radio-group.d.ts +0 -5
- package/dist/select.d.ts +0 -6
- package/dist/tabs.d.ts +0 -1
- package/dist/toggle.d.ts +0 -1
- package/dist/transition.d.ts +0 -1
- package/dist/uno.config.d.ts +0 -3
- package/src/uno.config.ts +0 -94
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.26",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
8
|
-
"Chris Breuer <chris@stacksjs.
|
|
8
|
+
"Chris Breuer <chris@stacksjs.com>"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
@@ -25,23 +25,20 @@
|
|
|
25
25
|
"engine",
|
|
26
26
|
"styles",
|
|
27
27
|
"stacks",
|
|
28
|
-
"
|
|
28
|
+
"crosswind",
|
|
29
|
+
"tailwind"
|
|
29
30
|
],
|
|
30
31
|
"sideEffects": false,
|
|
31
32
|
"exports": {
|
|
32
33
|
".": {
|
|
33
34
|
"types": "./dist/index.d.ts",
|
|
35
|
+
"bun": "./src/index.ts",
|
|
34
36
|
"import": "./dist/index.js"
|
|
35
37
|
},
|
|
36
38
|
"./components": {
|
|
37
|
-
"bun": "./src/components.ts",
|
|
38
39
|
"types": "./dist/components.d.ts",
|
|
40
|
+
"bun": "./src/components.ts",
|
|
39
41
|
"import": "./dist/components.js"
|
|
40
|
-
},
|
|
41
|
-
"./unocss": {
|
|
42
|
-
"bun": "./src/unocss.ts",
|
|
43
|
-
"types": "./dist/unocss.d.ts",
|
|
44
|
-
"import": "./dist/unocss.js"
|
|
45
42
|
}
|
|
46
43
|
},
|
|
47
44
|
"module": "dist/index.js",
|
|
@@ -57,24 +54,10 @@
|
|
|
57
54
|
"prepublishOnly": "bun run build"
|
|
58
55
|
},
|
|
59
56
|
"devDependencies": {
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
63
|
-
"@
|
|
64
|
-
"@stacksjs/
|
|
65
|
-
"@stacksjs/config": "0.70.22",
|
|
66
|
-
"@stacksjs/development": "0.70.22",
|
|
67
|
-
"@stacksjs/router": "0.70.22",
|
|
68
|
-
"@unhead/vue": "^2.0.3",
|
|
69
|
-
"bun-plugin-unocss": "^0.1.2",
|
|
70
|
-
"chart.js": "^4.4.8",
|
|
71
|
-
"pinia": "^3.0.1",
|
|
72
|
-
"unhead": "^2.0.3",
|
|
73
|
-
"unocss": "66.0.0",
|
|
74
|
-
"unocss-preset-primitives": "0.0.2-beta.1",
|
|
75
|
-
"vite-plugin-vue-layouts": "^0.11.0",
|
|
76
|
-
"vue": "^3.5.13",
|
|
77
|
-
"vue-chartjs": "^5.3.2",
|
|
78
|
-
"vue-tsc": "^2.2.8"
|
|
57
|
+
"@stacksjs/build": "0.70.23",
|
|
58
|
+
"@stacksjs/config": "0.70.23",
|
|
59
|
+
"better-dx": "^0.2.12",
|
|
60
|
+
"@stacksjs/router": "0.70.23",
|
|
61
|
+
"@stacksjs/stx": "^0.2.40"
|
|
79
62
|
}
|
|
80
63
|
}
|
package/src/components/menu.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Menu, MenuButton, MenuItem, MenuItems } from '@
|
|
1
|
+
export { Menu, MenuButton, MenuItem, MenuItems } from '@stacksjs/stx'
|
package/src/components/modal.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Popover, PopoverButton, PopoverPanel } from '@
|
|
1
|
+
export { Popover, PopoverButton, PopoverPanel } from '@stacksjs/stx'
|
package/src/components/select.ts
CHANGED
package/src/components/tabs.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@
|
|
1
|
+
export { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@stacksjs/stx'
|
package/src/components/toggle.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Switch } from '@
|
|
1
|
+
export { Switch } from '@stacksjs/stx'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TransitionChild, TransitionRoot } from '@
|
|
1
|
+
export { TransitionChild, TransitionRoot } from '@stacksjs/stx'
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { presetForms } from '@julr/unocss-preset-forms'
|
|
2
1
|
import { ui } from '@stacksjs/config'
|
|
3
|
-
import * as
|
|
4
|
-
import * as CssEngine from 'unocss'
|
|
5
|
-
import * as UiEngine from 'vue'
|
|
6
|
-
import UnocssConfig from './uno.config'
|
|
2
|
+
import * as CssEngine from '@cwcss/crosswind'
|
|
7
3
|
|
|
8
|
-
export { CssEngine,
|
|
4
|
+
export { CssEngine, ui }
|
package/dist/components.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './components/autocomplete'
|
|
2
|
-
export * from './components/disclosure'
|
|
3
|
-
export * from './components/menu'
|
|
4
|
-
export * from './components/modal'
|
|
5
|
-
export * from './components/popover'
|
|
6
|
-
export * from './components/radio-group'
|
|
7
|
-
export * from './components/select'
|
|
8
|
-
export * from './components/tabs'
|
|
9
|
-
export * from './components/toggle'
|
|
10
|
-
export * from './components/transition'
|
package/dist/disclosure.d.ts
DELETED
package/dist/index.d.ts
DELETED
package/dist/menu.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue'
|
package/dist/modal.d.ts
DELETED
package/dist/popover.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue'
|
package/dist/radio-group.d.ts
DELETED
package/dist/select.d.ts
DELETED
package/dist/tabs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/vue'
|
package/dist/toggle.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Switch } from '@headlessui/vue'
|
package/dist/transition.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TransitionChild, TransitionRoot } from '@headlessui/vue'
|
package/dist/uno.config.d.ts
DELETED
package/src/uno.config.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { UserConfig as UnoConfig } from 'unocss'
|
|
2
|
-
import { presetForms } from '@julr/unocss-preset-forms'
|
|
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'
|
|
7
|
-
import {
|
|
8
|
-
presetAttributify,
|
|
9
|
-
presetIcons,
|
|
10
|
-
presetTypography,
|
|
11
|
-
presetUno,
|
|
12
|
-
// presetWebFonts,
|
|
13
|
-
transformerCompileClass,
|
|
14
|
-
transformerDirectives,
|
|
15
|
-
transformerVariantGroup,
|
|
16
|
-
|
|
17
|
-
} from 'unocss'
|
|
18
|
-
import { presetHeadlessUi } from 'unocss-preset-primitives'
|
|
19
|
-
|
|
20
|
-
const config: UnoConfig = {
|
|
21
|
-
shortcuts: ui.shortcuts,
|
|
22
|
-
|
|
23
|
-
content: {
|
|
24
|
-
pipeline: {
|
|
25
|
-
include: [/\.(stx|vue|[jt]sx|mdx?|elm|html)($|\?)/],
|
|
26
|
-
// exclude files
|
|
27
|
-
// exclude: []
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
presets: [
|
|
32
|
-
presetUno(), // allows for Tailwind utility classes
|
|
33
|
-
presetAttributify(),
|
|
34
|
-
presetHeadlessUi(),
|
|
35
|
-
presetForms(), // allows for form Tailwind's form styling
|
|
36
|
-
presetTypography(),
|
|
37
|
-
presetIcons({
|
|
38
|
-
prefix: 'i-',
|
|
39
|
-
warn: true,
|
|
40
|
-
collections: {
|
|
41
|
-
hugeicons: () => import('@iconify-json/hugeicons/icons.json').then(i => i.default as any),
|
|
42
|
-
},
|
|
43
|
-
extraProperties: {
|
|
44
|
-
'display': 'inline-block',
|
|
45
|
-
'vertical-align': 'middle',
|
|
46
|
-
},
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
presetWebFonts({
|
|
50
|
-
provider: 'bunny', // privacy-friendly Google Web Fonts proxy
|
|
51
|
-
fonts: {
|
|
52
|
-
sans: 'Inter',
|
|
53
|
-
serif: 'Inter',
|
|
54
|
-
mono: 'Fira Code',
|
|
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
|
-
}),
|
|
67
|
-
}),
|
|
68
|
-
],
|
|
69
|
-
|
|
70
|
-
transformers: [
|
|
71
|
-
transformerCompileClass({
|
|
72
|
-
classPrefix: ui.classPrefix,
|
|
73
|
-
trigger: ui.trigger,
|
|
74
|
-
}),
|
|
75
|
-
transformerDirectives(),
|
|
76
|
-
transformerVariantGroup(),
|
|
77
|
-
],
|
|
78
|
-
|
|
79
|
-
safelist: ui.safelist?.split(' ') || [],
|
|
80
|
-
|
|
81
|
-
theme: {
|
|
82
|
-
extend: {
|
|
83
|
-
colors: {
|
|
84
|
-
primary: '#1F1FE9',
|
|
85
|
-
secondary: '#B80C09',
|
|
86
|
-
success: '#CAFE48',
|
|
87
|
-
dark: '#1A181B',
|
|
88
|
-
light: '#F5F3F5',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export default config
|