@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.
@@ -0,0 +1,3 @@
1
+ import { ui } from '@stacksjs/config';
2
+ import * as CssEngine from '@cwcss/crosswind';
3
+ export { CssEngine, ui };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.70.23",
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.org>"
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
- "unocss"
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
- "@headlessui/vue": "^1.7.23",
61
- "@iconify-json/hugeicons": "^1.2.4",
62
- "@iconify/json": "^2.2.323",
63
- "@julr/unocss-preset-forms": "^1.0.0",
64
- "@stacksjs/build": "0.70.22",
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
  }
@@ -2,4 +2,4 @@ export {
2
2
  Disclosure,
3
3
  DisclosureButton,
4
4
  DisclosurePanel,
5
- } from '@headlessui/vue'
5
+ } from '@stacksjs/stx'
@@ -1 +1 @@
1
- export { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue'
1
+ export { Menu, MenuButton, MenuItem, MenuItems } from '@stacksjs/stx'
@@ -3,4 +3,4 @@ export {
3
3
  DialogDescription,
4
4
  DialogPanel,
5
5
  DialogTitle,
6
- } from '@headlessui/vue'
6
+ } from '@stacksjs/stx'
@@ -1 +1 @@
1
- export { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue'
1
+ export { Popover, PopoverButton, PopoverPanel } from '@stacksjs/stx'
@@ -2,4 +2,4 @@ export {
2
2
  RadioGroup,
3
3
  RadioGroupLabel,
4
4
  RadioGroupOption,
5
- } from '@headlessui/vue'
5
+ } from '@stacksjs/stx'
@@ -3,4 +3,4 @@ export {
3
3
  ComboboxInput,
4
4
  ComboboxOption,
5
5
  ComboboxOptions,
6
- } from '@headlessui/vue'
6
+ } from '@stacksjs/stx'
@@ -1 +1 @@
1
- export { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/vue'
1
+ export { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@stacksjs/stx'
@@ -1 +1 @@
1
- export { Switch } from '@headlessui/vue'
1
+ export { Switch } from '@stacksjs/stx'
@@ -1 +1 @@
1
- export { TransitionChild, TransitionRoot } from '@headlessui/vue'
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 Store from 'pinia'
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, presetForms, Store, ui, UiEngine, UnocssConfig }
4
+ export { CssEngine, ui }
@@ -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'
@@ -1,5 +0,0 @@
1
- export {
2
- Disclosure,
3
- DisclosureButton,
4
- DisclosurePanel,
5
- } from '@headlessui/vue'
package/dist/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import UnocssConfig from './uno.config';
2
- import { presetForms } from '@julr/unocss-preset-forms';
3
- import { ui } from '@stacksjs/config';
4
-
5
-
6
- export { CssEngine, presetForms, Store, ui, UiEngine, UnocssConfig }
package/dist/menu.d.ts DELETED
@@ -1 +0,0 @@
1
- export { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/vue'
package/dist/modal.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export {
2
- Dialog,
3
- DialogDescription,
4
- DialogPanel,
5
- DialogTitle,
6
- } from '@headlessui/vue'
package/dist/popover.d.ts DELETED
@@ -1 +0,0 @@
1
- export { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue'
@@ -1,5 +0,0 @@
1
- export {
2
- RadioGroup,
3
- RadioGroupLabel,
4
- RadioGroupOption,
5
- } from '@headlessui/vue'
package/dist/select.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export {
2
- Combobox,
3
- ComboboxInput,
4
- ComboboxOption,
5
- ComboboxOptions,
6
- } from '@headlessui/vue'
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'
@@ -1 +0,0 @@
1
- export { TransitionChild, TransitionRoot } from '@headlessui/vue'
@@ -1,3 +0,0 @@
1
- declare const config: UnoConfig;
2
-
3
- export default config;
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