@stacksjs/ui 0.57.3 โ†’ 0.58.18

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 CHANGED
@@ -12,7 +12,7 @@ This package contains the Stacks UI engine.
12
12
  ## ๐Ÿค– Usage
13
13
 
14
14
  ```bash
15
- pnpm i -D @stacksjs/ui
15
+ bun install -d @stacksjs/ui
16
16
  ```
17
17
 
18
18
  Now, you can use it in your project:
@@ -23,12 +23,12 @@ import ui from '@stacksjs/ui'
23
23
  // wip
24
24
  ```
25
25
 
26
- To view the full documentation, please visit [https://stacksjs.dev/ui](https://stacksjs.dev/ui).
26
+ To view the full documentation, please visit [https://stacksjs.org/ui](https://stacksjs.org/ui).
27
27
 
28
28
  ## ๐Ÿงช Testing
29
29
 
30
30
  ```bash
31
- pnpm test
31
+ bun test
32
32
  ```
33
33
 
34
34
  ## ๐Ÿ“ˆ Changelog
@@ -47,7 +47,7 @@ For help, discussion about best practices, or any other conversation that would
47
47
 
48
48
  For casual chit-chat with others using this package:
49
49
 
50
- [Join the Stacks Discord Server](https://discord.ow3.org)
50
+ [Join the Stacks Discord Server](https://discord.gg/stacksjs)
51
51
 
52
52
  ## ๐Ÿ™๐Ÿผ Credits
53
53
 
@@ -63,4 +63,4 @@ Many thanks to the following core technologies & people who have contributed to
63
63
 
64
64
  The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
65
65
 
66
- Made with โค๏ธ
66
+ Made with ๐Ÿ’™
@@ -0,0 +1,68 @@
1
+ // @bun
2
+ // src/components/disclosure.ts
3
+ import {
4
+ Disclosure,
5
+ DisclosureButton,
6
+ DisclosurePanel
7
+ } from "@headlessui/vue";
8
+ // src/components/menu.ts
9
+ import {Menu, MenuButton, MenuItems, MenuItem} from "@headlessui/vue";
10
+ // src/components/modal.ts
11
+ import {
12
+ Dialog,
13
+ DialogPanel,
14
+ DialogTitle,
15
+ DialogDescription
16
+ } from "@headlessui/vue";
17
+ // src/components/popover.ts
18
+ import {Popover, PopoverButton, PopoverPanel} from "@headlessui/vue";
19
+ // src/components/radio-group.ts
20
+ import {
21
+ RadioGroup,
22
+ RadioGroupLabel,
23
+ RadioGroupOption
24
+ } from "@headlessui/vue";
25
+ // src/components/select.ts
26
+ import {
27
+ Combobox,
28
+ ComboboxInput,
29
+ ComboboxOptions,
30
+ ComboboxOption
31
+ } from "@headlessui/vue";
32
+ // src/components/tabs.ts
33
+ import {TabGroup, TabList, Tab, TabPanels, TabPanel} from "@headlessui/vue";
34
+ // src/components/toggle.ts
35
+ import {Switch} from "@headlessui/vue";
36
+ // src/components/transition.ts
37
+ import {TransitionRoot, TransitionChild} from "@headlessui/vue";
38
+ export {
39
+ TransitionRoot,
40
+ TransitionChild,
41
+ TabPanels,
42
+ TabPanel,
43
+ TabList,
44
+ TabGroup,
45
+ Tab,
46
+ Switch,
47
+ RadioGroupOption,
48
+ RadioGroupLabel,
49
+ RadioGroup,
50
+ PopoverPanel,
51
+ PopoverButton,
52
+ Popover,
53
+ MenuItems,
54
+ MenuItem,
55
+ MenuButton,
56
+ Menu,
57
+ DisclosurePanel,
58
+ DisclosureButton,
59
+ Disclosure,
60
+ DialogTitle,
61
+ DialogPanel,
62
+ DialogDescription,
63
+ Dialog,
64
+ ComboboxOptions,
65
+ ComboboxOption,
66
+ ComboboxInput,
67
+ Combobox
68
+ };
package/dist/index.js ADDED
@@ -0,0 +1,69 @@
1
+ // @bun
2
+ // src/index.ts
3
+ import * as CssEngine from "unocss";
4
+ import {presetForms as presetForms2} from "@julr/unocss-preset-forms";
5
+ import * as UiEngine from "vue";
6
+ import * as Store from "pinia";
7
+ import {ui as ui2} from "@stacksjs/config";
8
+
9
+ // src/uno.config.ts
10
+ import {
11
+ defineConfig,
12
+ presetIcons,
13
+ presetTypography,
14
+ presetWebFonts,
15
+ presetWind,
16
+ transformerCompileClass,
17
+ transformerDirectives,
18
+ transformerVariantGroup
19
+ } from "unocss";
20
+ import {presetForms} from "@julr/unocss-preset-forms";
21
+ import {ui} from "@stacksjs/config";
22
+ var uno_config_default = defineConfig({
23
+ shortcuts: ui.shortcuts,
24
+ content: {
25
+ pipeline: {
26
+ include: [
27
+ /\.(stx|vue|[jt]sx|mdx?|elm|html)($|\?)/
28
+ ]
29
+ }
30
+ },
31
+ presets: [
32
+ presetWind(),
33
+ presetForms(),
34
+ presetTypography(),
35
+ presetIcons({
36
+ prefix: "i-",
37
+ warn: true,
38
+ extraProperties: {
39
+ display: "inline-block",
40
+ "vertical-align": "middle"
41
+ }
42
+ }),
43
+ presetWebFonts({
44
+ provider: "bunny",
45
+ fonts: {
46
+ sans: "Inter",
47
+ serif: "Inter",
48
+ mono: "Inter"
49
+ }
50
+ })
51
+ ],
52
+ transformers: [
53
+ transformerCompileClass({
54
+ classPrefix: ui.classPrefix,
55
+ trigger: ui.trigger
56
+ }),
57
+ transformerDirectives(),
58
+ transformerVariantGroup()
59
+ ],
60
+ safelist: ui.safelist?.split(" ") || []
61
+ });
62
+ export {
63
+ ui2 as ui,
64
+ presetForms2 as presetForms,
65
+ uno_config_default as UnocssConfig,
66
+ UiEngine,
67
+ Store,
68
+ CssEngine
69
+ };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.57.3",
5
- "packageManager": "pnpm@8.6.6",
6
- "description": "The Stacks atomic UI engine, powered by UnoCSS.",
4
+ "version": "0.58.18",
5
+ "description": "The Stacks UI engine.",
7
6
  "author": "Chris Breuer",
8
7
  "license": "MIT",
9
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
10
- "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/ui#readme",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/ui#readme",
11
10
  "repository": {
12
11
  "type": "git",
13
12
  "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/ui"
13
+ "directory": "./storage/framework/core/src/ui"
15
14
  },
16
15
  "bugs": {
17
16
  "url": "https://github.com/stacksjs/stacks/issues"
@@ -28,41 +27,65 @@
28
27
  "sideEffects": false,
29
28
  "exports": {
30
29
  ".": {
30
+ "bun": "./src/index.ts",
31
31
  "types": "./dist/index.d.ts",
32
- "import": "./dist/index.mjs"
32
+ "import": "./dist/index.js"
33
+ },
34
+ "./components": {
35
+ "bun": "./src/components.ts",
36
+ "types": "./dist/components.d.ts",
37
+ "import": "./dist/components.js"
33
38
  },
34
39
  "./unocss": {
40
+ "bun": "./src/unocss.ts",
35
41
  "types": "./dist/unocss.d.ts",
36
- "import": "./dist/unocss.mjs"
42
+ "import": "./dist/unocss.js"
37
43
  }
38
44
  },
39
- "module": "dist/index.mjs",
45
+ "module": "dist/index.js",
40
46
  "types": "dist/index.d.ts",
41
47
  "contributors": [
42
- "Chris Breuer <chris@ow3.org>"
48
+ "Chris Breuer <chris@stacksjs.org>"
43
49
  ],
44
50
  "files": [
45
- "dist",
46
- "README.md"
51
+ "README.md",
52
+ "dist"
47
53
  ],
54
+ "scripts": {
55
+ "build": "bun --bun build.ts",
56
+ "typecheck": "bun --bun tsc --noEmit",
57
+ "prepublishOnly": "bun --bun run build"
58
+ },
48
59
  "peerDependencies": {
49
- "@iconify-json/heroicons-outline": "^1.1.6",
50
- "@iconify-json/heroicons-solid": "^1.1.7",
51
- "@julr/unocss-preset-forms": "^0.0.5",
52
- "@unocss/transformer-compile-class": "^0.53.4",
53
- "pinia": "^2.1.4",
54
- "unocss": "^0.53.4",
55
- "vue": "^3.3.4",
56
- "vue-tsc": "^1.8.3",
57
- "@stacksjs/build": "0.57.3",
58
- "@stacksjs/config": "0.57.3"
60
+ "@headlessui/vue": "^1.7.17",
61
+ "@stacksjs/build": "workspace:*",
62
+ "@stacksjs/config": "workspace:*",
63
+ "@stacksjs/router": "workspace:*",
64
+ "@stacksjs/vite-plugin-vue-layouts": "workspace:*",
65
+ "pinia": "^2.1.7",
66
+ "unocss": "^0.58.3",
67
+ "vue": "^3.4.10",
68
+ "vue-tsc": "^1.8.27"
59
69
  },
60
- "devDependencies": {
61
- "@stacksjs/development": "0.57.3"
70
+ "dependencies": {
71
+ "@headlessui/vue": "^1.7.17",
72
+ "@iconify-json/heroicons": "^1.1.19",
73
+ "@iconify-json/heroicons-outline": "^1.1.10",
74
+ "@iconify-json/heroicons-solid": "^1.1.11",
75
+ "@iconify/json": "^2.2.167",
76
+ "@julr/unocss-preset-forms": "^0.1.0",
77
+ "@stacksjs/build": "workspace:*",
78
+ "@stacksjs/config": "workspace:*",
79
+ "@stacksjs/router": "workspace:*",
80
+ "@stacksjs/vite-plugin-vue-layouts": "workspace:*",
81
+ "@unhead/vue": "^1.8.9",
82
+ "pinia": "^2.1.7",
83
+ "unhead": "^1.8.9",
84
+ "unocss": "^0.58.3",
85
+ "vue": "^3.4.10",
86
+ "vue-tsc": "^1.8.27"
62
87
  },
63
- "scripts": {
64
- "build": "unbuild",
65
- "dev": "unbuild --stub",
66
- "typecheck": "tsc --noEmit"
88
+ "devDependencies": {
89
+ "@stacksjs/development": "workspace:*"
67
90
  }
68
- }
91
+ }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2022 Open Web Foundation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import * as unocss from 'unocss';
2
- export { unocss as CssEngine };
3
- export { presetForms } from '@julr/unocss-preset-forms';
4
- export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
5
- import * as vue from 'vue';
6
- export { vue as UiEngine };
7
- export { computed, ref } from 'vue';
8
- import * as pinia from 'pinia';
9
- export { pinia as Store };
10
- export { ui as options } from '@stacksjs/config';
11
- export { default as config } from './unocss.js';
package/dist/index.mjs DELETED
@@ -1,11 +0,0 @@
1
- import * as unocss from 'unocss';
2
- export { unocss as CssEngine };
3
- export { presetForms } from '@julr/unocss-preset-forms';
4
- export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
5
- import * as vue from 'vue';
6
- export { vue as UiEngine };
7
- export { computed, ref } from 'vue';
8
- import * as pinia from 'pinia';
9
- export { pinia as Store };
10
- export { ui as options } from '@stacksjs/config';
11
- export { default as config } from './unocss.mjs';
package/dist/unocss.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { UserConfig } from 'unocss';
2
- import '@julr/unocss-preset-forms';
3
- import '@unocss/transformer-compile-class';
4
- import 'vue';
5
- import 'pinia';
6
- import '@stacksjs/config';
7
-
8
- declare const config: UserConfig;
9
-
10
- export { config as default };
package/dist/unocss.mjs DELETED
@@ -1,44 +0,0 @@
1
- import { defineConfig, presetWind, presetTypography, presetIcons, presetWebFonts, transformerDirectives, transformerVariantGroup } from 'unocss';
2
- import { presetForms } from '@julr/unocss-preset-forms';
3
- import transformerCompileClass from '@unocss/transformer-compile-class';
4
- import { ui } from '@stacksjs/config';
5
-
6
- const config = defineConfig({
7
- shortcuts: ui.shortcuts,
8
- presets: [
9
- presetWind(),
10
- // allows for Tailwind utility classes
11
- presetForms(),
12
- // allows for form Tailwind's form styling
13
- presetTypography(),
14
- presetIcons({
15
- prefix: "i-",
16
- warn: true,
17
- // collections: ui.icons,
18
- extraProperties: {
19
- "display": "inline-block",
20
- "vertical-align": "middle"
21
- }
22
- }),
23
- presetWebFonts({
24
- provider: "bunny",
25
- // privacy-friendly Google Web Fonts proxy
26
- fonts: {
27
- // these will extend the default theme
28
- sans: "Inter",
29
- mono: "Inter"
30
- }
31
- })
32
- ],
33
- transformers: [
34
- transformerCompileClass({
35
- classPrefix: ui.classPrefix,
36
- trigger: ui.trigger
37
- }),
38
- transformerDirectives(),
39
- transformerVariantGroup()
40
- ],
41
- safelist: ui.safelist?.split(" ")
42
- });
43
-
44
- export { config as default };