@stacksjs/ui 0.58.47 → 0.58.49
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 +7 -6
- package/src/components/autocomplete.ts +0 -0
- package/src/components/disclosure.ts +5 -0
- package/src/components/menu.ts +1 -0
- package/src/components/modal.ts +6 -0
- package/src/components/popover.ts +1 -0
- package/src/components/radio-group.ts +5 -0
- package/src/components/select.ts +6 -0
- package/src/components/tabs.ts +1 -0
- package/src/components/toggle.ts +1 -0
- package/src/components/transition.ts +1 -0
- package/src/components.ts +10 -0
- package/src/index.ts +15 -0
- package/src/uno.config.ts +66 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.49",
|
|
5
5
|
"description": "The Stacks UI engine.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
],
|
|
50
50
|
"files": [
|
|
51
51
|
"README.md",
|
|
52
|
-
"dist"
|
|
52
|
+
"dist",
|
|
53
|
+
"src"
|
|
53
54
|
],
|
|
54
55
|
"scripts": {
|
|
55
56
|
"build": "bun --bun build.ts",
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
},
|
|
59
60
|
"peerDependencies": {
|
|
60
61
|
"@headlessui/vue": "^1.7.17",
|
|
61
|
-
"@stacksjs/build": "
|
|
62
|
-
"@stacksjs/config": "
|
|
63
|
-
"@stacksjs/router": "
|
|
62
|
+
"@stacksjs/build": "latest",
|
|
63
|
+
"@stacksjs/config": "latest",
|
|
64
|
+
"@stacksjs/router": "latest",
|
|
64
65
|
"pinia": "^2.1.7",
|
|
65
66
|
"unocss": "^0.58.4",
|
|
66
67
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
@@ -87,6 +88,6 @@
|
|
|
87
88
|
"vue-tsc": "^1.8.27"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@stacksjs/development": "
|
|
91
|
+
"@stacksjs/development": "latest"
|
|
91
92
|
}
|
|
92
93
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Menu, MenuButton, MenuItems, MenuItem } from '@headlessui/vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabGroup, TabList, Tab, TabPanels, TabPanel } from '@headlessui/vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from '@headlessui/vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TransitionRoot, TransitionChild } from '@headlessui/vue'
|
|
@@ -0,0 +1,10 @@
|
|
|
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/src/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as CssEngine from 'unocss'
|
|
2
|
+
import { presetForms } from '@julr/unocss-preset-forms'
|
|
3
|
+
import * as UiEngine from 'vue'
|
|
4
|
+
import * as Store from 'pinia'
|
|
5
|
+
import { ui } from '@stacksjs/config'
|
|
6
|
+
import UnocssConfig from './uno.config'
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
CssEngine,
|
|
10
|
+
UiEngine,
|
|
11
|
+
Store,
|
|
12
|
+
presetForms,
|
|
13
|
+
UnocssConfig,
|
|
14
|
+
ui,
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineConfig,
|
|
3
|
+
presetAttributify,
|
|
4
|
+
presetIcons,
|
|
5
|
+
presetTypography,
|
|
6
|
+
presetUno,
|
|
7
|
+
presetWebFonts,
|
|
8
|
+
transformerCompileClass,
|
|
9
|
+
transformerDirectives,
|
|
10
|
+
transformerVariantGroup,
|
|
11
|
+
} from 'unocss'
|
|
12
|
+
import { presetHeadlessUi } from 'unocss-preset-primitives'
|
|
13
|
+
import { ui } from '@stacksjs/config'
|
|
14
|
+
import { presetForms } from '@julr/unocss-preset-forms'
|
|
15
|
+
|
|
16
|
+
export default defineConfig({
|
|
17
|
+
shortcuts: ui.shortcuts,
|
|
18
|
+
|
|
19
|
+
content: {
|
|
20
|
+
pipeline: {
|
|
21
|
+
include: [
|
|
22
|
+
/\.(stx|vue|[jt]sx|mdx?|elm|html)($|\?)/,
|
|
23
|
+
],
|
|
24
|
+
// exclude files
|
|
25
|
+
// exclude: []
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
presets: [
|
|
30
|
+
presetUno(), // allows for Tailwind utility classes
|
|
31
|
+
presetAttributify(),
|
|
32
|
+
presetHeadlessUi(),
|
|
33
|
+
presetForms(), // allows for form Tailwind's form styling
|
|
34
|
+
presetTypography(),
|
|
35
|
+
presetIcons({
|
|
36
|
+
prefix: 'i-',
|
|
37
|
+
warn: true,
|
|
38
|
+
// collections: ui.icons,
|
|
39
|
+
extraProperties: {
|
|
40
|
+
'display': 'inline-block',
|
|
41
|
+
'vertical-align': 'middle',
|
|
42
|
+
},
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
presetWebFonts({
|
|
46
|
+
provider: 'bunny', // privacy-friendly Google Web Fonts proxy
|
|
47
|
+
fonts: {
|
|
48
|
+
sans: 'Inter',
|
|
49
|
+
serif: 'Inter',
|
|
50
|
+
mono: 'Inter',
|
|
51
|
+
},
|
|
52
|
+
}),
|
|
53
|
+
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
transformers: [
|
|
57
|
+
transformerCompileClass({
|
|
58
|
+
classPrefix: ui.classPrefix,
|
|
59
|
+
trigger: ui.trigger,
|
|
60
|
+
}),
|
|
61
|
+
transformerDirectives(),
|
|
62
|
+
transformerVariantGroup(),
|
|
63
|
+
],
|
|
64
|
+
|
|
65
|
+
safelist: ui.safelist?.split(' ') || [],
|
|
66
|
+
})
|