@stacksjs/ui 0.51.0 → 0.52.0

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
@@ -35,7 +35,7 @@ pnpm test
35
35
 
36
36
  Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
37
37
 
38
- ## 💪🏼 Contributing
38
+ ## 🚜 Contributing
39
39
 
40
40
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
41
41
 
package/dist/index.d.ts CHANGED
@@ -1,14 +1,9 @@
1
1
  import * as CssEngine from 'unocss';
2
2
  import { presetForms } from '@julr/unocss-preset-forms';
3
+ import transformerCompileClass from '@unocss/transformer-compile-class';
3
4
  import * as UiEngine from 'vue';
5
+ import { computed, ref } from 'vue';
4
6
  import * as Store from 'pinia';
5
- declare const _default: {
6
- UiEngine: typeof UiEngine;
7
- CssEngine: typeof CssEngine;
8
- Store: typeof Store;
9
- presetForms: typeof presetForms;
10
- transformerCompileClass: typeof CssEngine.transformerCompileClass;
11
- config: CssEngine.UserConfig<{}>;
12
- options: any;
13
- };
14
- export default _default;
7
+ import { ui as options } from '@stacksjs/config';
8
+ import config from './unocss';
9
+ export { UiEngine, ref, computed, CssEngine, Store, presetForms, transformerCompileClass, config, options, };
package/dist/index.mjs CHANGED
@@ -2,11 +2,14 @@ import * as CssEngine from "unocss";
2
2
  import { presetForms } from "@julr/unocss-preset-forms";
3
3
  import transformerCompileClass from "@unocss/transformer-compile-class";
4
4
  import * as UiEngine from "vue";
5
+ import { computed, ref } from "vue";
5
6
  import * as Store from "pinia";
6
- import { ui as options } from "../../../../config/ui";
7
+ import { ui as options } from "@stacksjs/config";
7
8
  import config from "./unocss.mjs";
8
- export default {
9
+ export {
9
10
  UiEngine,
11
+ ref,
12
+ computed,
10
13
  CssEngine,
11
14
  Store,
12
15
  presetForms,
File without changes
@@ -0,0 +1,46 @@
1
+ import {
2
+ defineConfig,
3
+ presetAttributify,
4
+ presetIcons,
5
+ presetTypography,
6
+ presetUno,
7
+ presetWebFonts,
8
+ presetWind,
9
+ transformerDirectives,
10
+ transformerVariantGroup
11
+ } from "unocss";
12
+ import { presetForms } from "@julr/unocss-preset-forms";
13
+ export default defineConfig({
14
+ shortcuts: [
15
+ ["btn", "px-4 py-1 rounded inline-block bg-teal-700 text-white cursor-pointer hover:bg-teal-800 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],
16
+ ["icon-btn", "inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600"]
17
+ ],
18
+ presets: [
19
+ presetForms(),
20
+ presetUno(),
21
+ presetWind(),
22
+ presetAttributify(),
23
+ presetIcons({
24
+ scale: 1.2,
25
+ warn: true
26
+ }),
27
+ presetTypography(),
28
+ presetWebFonts({
29
+ fonts: {
30
+ serif: "DM Serif Display",
31
+ mono: "DM Mono"
32
+ }
33
+ })
34
+ ],
35
+ rules: [
36
+ ["bg-carefree-green-1", { background: "#86C83A" }],
37
+ ["text-carefree-green-1", { color: "#86C83A" }],
38
+ ["bg-carefree-blue-1", { background: "#0085BF" }],
39
+ ["text-carefree-blue-1", { color: "#0085BF" }]
40
+ ],
41
+ transformers: [
42
+ transformerDirectives(),
43
+ transformerVariantGroup()
44
+ ],
45
+ safelist: "prose prose-sm m-auto text-left".split(" ")
46
+ });
package/dist/unocss.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineConfig, presetIcons, presetTypography, presetWebFonts, presetWind, transformerDirectives, transformerVariantGroup } from "unocss";
2
2
  import { presetForms } from "@julr/unocss-preset-forms";
3
3
  import transformerCompileClass from "@unocss/transformer-compile-class";
4
- import { ui } from "../../../../config/ui";
4
+ import { ui } from "@stacksjs/config";
5
5
  const config = defineConfig({
6
6
  shortcuts: ui.shortcuts,
7
7
  presets: [
@@ -13,7 +13,7 @@ const config = defineConfig({
13
13
  presetIcons({
14
14
  prefix: "i-",
15
15
  warn: true,
16
- collections: ui.icons,
16
+ // collections: ui.icons,
17
17
  extraProperties: {
18
18
  "display": "inline-block",
19
19
  "vertical-align": "middle"
@@ -37,6 +37,6 @@ const config = defineConfig({
37
37
  transformerDirectives(),
38
38
  transformerVariantGroup()
39
39
  ],
40
- safelist: ui.safelist.split(" ")
40
+ safelist: ui.safelist?.split(" ")
41
41
  });
42
42
  export default config;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.51.0",
5
- "packageManager": "pnpm@7.26.3",
4
+ "version": "0.52.0",
5
+ "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks atomic UI engine, powered by UnoCSS.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -26,7 +26,16 @@
26
26
  "unocss"
27
27
  ],
28
28
  "sideEffects": false,
29
- "main": "dist/index.mjs",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.mjs"
33
+ },
34
+ "./unocss": {
35
+ "types": "./dist/unocss.d.ts",
36
+ "import": "./dist/unocss.mjs"
37
+ }
38
+ },
30
39
  "module": "dist/index.mjs",
31
40
  "types": "dist/index.d.ts",
32
41
  "contributors": [
@@ -36,30 +45,24 @@
36
45
  "dist",
37
46
  "README.md"
38
47
  ],
39
- "engines": {
40
- "node": ">=v18.14.0",
41
- "pnpm": ">=7.26.3"
42
- },
43
48
  "peerDependencies": {
44
- "@iconify-json/heroicons-outline": "^1.1.5",
45
- "@iconify-json/heroicons-solid": "^1.1.6",
46
- "@julr/unocss-preset-forms": "^0.0.2",
47
- "@unocss/transformer-compile-class": "^0.49.4",
48
- "pinia": "^2.0.30",
49
- "unocss": "^0.49.4",
50
- "vue": "^3.2.47",
51
- "vue-tsc": "^1.0.24",
52
- "@stacksjs/build": "0.51.0",
53
- "@stacksjs/config": "0.51.0"
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.51.13",
53
+ "pinia": "^2.0.36",
54
+ "unocss": "^0.51.13",
55
+ "vue": "^3.3.2",
56
+ "vue-tsc": "^1.6.5",
57
+ "@stacksjs/build": "0.52.0",
58
+ "@stacksjs/config": "0.52.0"
54
59
  },
55
60
  "devDependencies": {
56
- "mkdist": "^1.1.0",
57
- "typescript": "^4.9.5",
58
- "@stacksjs/testing": "0.51.0"
61
+ "@stacksjs/development": "0.52.0"
59
62
  },
60
63
  "scripts": {
61
- "build": "mkdist -d",
62
- "dev": "mkdist -d",
64
+ "build": "unbuild",
65
+ "dev": "unbuild --stub",
63
66
  "typecheck": "tsc --noEmit"
64
67
  }
65
68
  }