@stacksjs/ui 0.37.3

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
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/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Stacks UI
2
+
3
+ This package contains the Stacks UI engine.
4
+
5
+ ## ☘️ Features
6
+
7
+ wip
8
+
9
+ - ⚡️ Vue
10
+ - ⚡️ UnoCSS
11
+
12
+ wip
13
+
14
+ ## 🤖 Usage
15
+
16
+ wip
17
+
18
+ ```bash
19
+ pnpm i -D @stacksjs/security
20
+ ```
21
+
22
+ Now, you can use it in your project:
23
+
24
+ ```js
25
+ import * as ui from '@stacksjs/ui'
26
+
27
+ // wip
28
+ ```
29
+
30
+ Learn more in the docs.
31
+
32
+ ## 🧪 Testing
33
+
34
+ ```bash
35
+ pnpm test
36
+ ```
37
+
38
+ ## 📈 Changelog
39
+
40
+ Please see our [releases](https://github.com/stacksjs/stacksjs/releases) page for more information on what has changed recently.
41
+
42
+ ## 💪🏼 Contributing
43
+
44
+ Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
45
+
46
+ ## 🏝 Community
47
+
48
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
49
+
50
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
51
+
52
+ For casual chit-chat with others using this package:
53
+
54
+ [Join the Open Web Discord Server](https://discord.ow3.org)
55
+
56
+ ## 📄 License
57
+
58
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
59
+
60
+ Made with ❤️
@@ -0,0 +1,3 @@
1
+ import type { UserConfig } from 'unocss';
2
+ declare const config: UserConfig;
3
+ export default config;
package/dist/index.mjs ADDED
@@ -0,0 +1,43 @@
1
+ import { defineConfig, presetIcons, presetTypography, presetWind, transformerDirectives, transformerVariantGroup } from "unocss";
2
+ import { presetForms } from "@julr/unocss-preset-forms";
3
+ import transformerCompileClass from "@unocss/transformer-compile-class";
4
+ const uis = {
5
+ shortcuts: [
6
+ ["btn", "inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]
7
+ ],
8
+ safelist: "prose prose-sm m-auto text-left",
9
+ trigger: ":stx:",
10
+ classPrefix: "stx-",
11
+ reset: "tailwind",
12
+ icons: {
13
+ "heroicon-outline": () => import("@iconify-json/heroicons-outline/icons.json").then((i) => i.default),
14
+ "heroicon-solid": () => import("@iconify-json/heroicons-solid/icons.json").then((i) => i.default)
15
+ }
16
+ };
17
+ const config = defineConfig({
18
+ shortcuts: uis.shortcuts,
19
+ presets: [
20
+ presetWind(),
21
+ presetForms(),
22
+ presetTypography(),
23
+ presetIcons({
24
+ prefix: "i-",
25
+ warn: true,
26
+ collections: uis.icons,
27
+ extraProperties: {
28
+ "display": "inline-block",
29
+ "vertical-align": "middle"
30
+ }
31
+ })
32
+ ],
33
+ transformers: [
34
+ transformerCompileClass({
35
+ classPrefix: uis.classPrefix,
36
+ trigger: uis.trigger
37
+ }),
38
+ transformerDirectives(),
39
+ transformerVariantGroup()
40
+ ],
41
+ safelist: uis.safelist.split(" ")
42
+ });
43
+ export default config;
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@stacksjs/ui",
3
+ "type": "module",
4
+ "version": "0.37.3",
5
+ "packageManager": "pnpm@7.13.6",
6
+ "description": "The Stacks atomic UI engine, powered by UnoCSS.",
7
+ "author": "Chris Breuer",
8
+ "license": "MIT",
9
+ "funding": "https://github.com/sponsors/chrisbbreuer",
10
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/ui#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/stacksjs/stacks.git",
14
+ "directory": "./.stacks/core/ui"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/stacksjs/stacks/issues"
18
+ },
19
+ "keywords": [
20
+ "css",
21
+ "atomic",
22
+ "ui",
23
+ "engine",
24
+ "styles",
25
+ "stacks",
26
+ "unocss"
27
+ ],
28
+ "sideEffects": false,
29
+ "main": "dist/index.mjs",
30
+ "module": "dist/index.mjs",
31
+ "types": "dist/index.d.ts",
32
+ "contributors": [
33
+ "Chris Breuer <chris@ow3.org>"
34
+ ],
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "engines": {
39
+ "node": ">=v18.10.0",
40
+ "pnpm": ">=7.13.6"
41
+ },
42
+ "dependencies": {
43
+ "@iconify-json/heroicons-outline": "^1.1.4",
44
+ "@iconify-json/heroicons-solid": "^1.1.5",
45
+ "@julr/unocss-preset-forms": "^0.0.2",
46
+ "@unocss/transformer-compile-class": "^0.45.30",
47
+ "@vitejs/plugin-vue": "^3.1.2",
48
+ "unocss": "^0.45.30",
49
+ "vue": "^3.2.41",
50
+ "vue-tsc": "^1.0.8"
51
+ },
52
+ "devDependencies": {
53
+ "mkdist": "^0.3.13",
54
+ "typescript": "^4.8.4"
55
+ },
56
+ "scripts": {
57
+ "build": "mkdist -d",
58
+ "dev": "mkdist -d",
59
+ "typecheck": "tsc --noEmit"
60
+ }
61
+ }