heart-ui 0.0.12 → 0.0.15

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 CHANGED
@@ -1,43 +1,45 @@
1
1
  {
2
2
  "name": "heart-ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "files": [
6
- "dist"
6
+ "dist",
7
+ "global.d.ts"
7
8
  ],
8
9
  "module": "./dist/index.js",
9
10
  "exports": {
10
11
  ".": {
11
- "import": {
12
- "default": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
14
- }
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./global": {
16
+ "types": "./global.d.ts"
15
17
  },
16
18
  "./nuxt": {
17
- "import": {
18
- "default": "./dist/nuxt.js",
19
- "types": "./dist/nuxt.d.ts"
20
- }
19
+ "import": "./dist/nuxt.js",
20
+ "types": "./dist/nuxt.d.ts"
21
21
  },
22
22
  "./common/*": {
23
- "import": {
24
- "default": "./dist/common/*.js",
25
- "types": "./dist/common/*.d.ts"
26
- }
23
+ "import": "./dist/common/*.js",
24
+ "types": "./dist/common/*.d.ts"
25
+ },
26
+ "./components": {
27
+ "import": "./dist/components.js",
28
+ "types": "./dist/components.d.ts"
27
29
  },
28
30
  "./components/*": {
29
- "import": {
30
- "default": "./dist/components/*.js",
31
- "types": "./dist/components/*.vue.d.ts"
32
- }
31
+ "import": "./dist/components/*.js",
32
+ "types": "./dist/components/*.vue.d.ts"
33
33
  },
34
34
  "./composables/*": {
35
- "import": {
36
- "default": "./dist/composables/*.js",
37
- "types": "./dist/composables/*.d.ts"
38
- }
35
+ "import": "./dist/composables/*.js",
36
+ "types": "./dist/composables/*.d.ts"
37
+ },
38
+ "./style": {
39
+ "import": "./dist/style.css"
39
40
  }
40
41
  },
42
+ "types": "./dist/index.d.ts",
41
43
  "style": "./dist/style.css",
42
44
  "unpkg": "./dist/index.js",
43
45
  "jsdelivr": "./dist/index.js",
@@ -46,30 +48,44 @@
46
48
  "build": "vite build && vue-tsc",
47
49
  "types": "vue-tsc",
48
50
  "preview": "pnpm run -C playground preview",
49
- "release": "changelogen --clean --release && npm publish && git push --follow-tags",
51
+ "bump": "changelogen --bump",
52
+ "release": "changelogen --release && npm publish && git push --follow-tags",
50
53
  "docs:dev": "vitepress dev docs",
51
54
  "docs:build": "vitepress build docs",
52
55
  "docs:preview": "vitepress preview docs"
53
56
  },
54
57
  "dependencies": {
55
- "@vueuse/core": "^10.7.0",
58
+ "@iconify/vue": "^4.1.2",
59
+ "@vueuse/core": "^10.9.0",
60
+ "date-fns": "^3.6.0",
61
+ "lodash-unified": "^1.0.3",
62
+ "vue": "^3.4.27"
63
+ },
64
+ "peerDependencies": {
65
+ "@iconify/vue": "^4.1.2",
66
+ "@unocss/reset": "^0.60.3",
67
+ "@vueuse/core": "^10.9.0",
68
+ "date-fns": "^3.6.0",
56
69
  "lodash-unified": "^1.0.3",
57
- "vue": "^3.3.11"
70
+ "vue": "^3.4.27",
71
+ "unocss": "^0.60.3"
58
72
  },
59
73
  "devDependencies": {
60
- "@nuxt/kit": "^3.8.2",
61
- "@nuxt/schema": "^3.8.2",
62
- "@types/node": "^20.10.5",
63
- "@vitejs/plugin-vue": "^4.5.2",
74
+ "@nuxt/kit": "^3.11.2",
75
+ "@nuxt/schema": "^3.11.2",
76
+ "@types/node": "^20.12.12",
77
+ "@unocss/reset": "^0.60.3",
78
+ "@vitejs/plugin-vue": "^5.0.4",
64
79
  "changelogen": "^0.5.5",
65
- "glob": "^10.3.10",
66
- "nuxt": "^3.8.2",
67
- "typescript": "^5.2.2",
68
- "unocss": "^0.58.0",
69
- "vite": "^5.0.8",
80
+ "glob": "^10.3.16",
81
+ "nuxt": "^3.11.2",
82
+ "typescript": "^5.4.5",
83
+ "unocss": "^0.60.3",
84
+ "unocss-preset-theme": "^0.12.0",
85
+ "vite": "^5.2.11",
70
86
  "vite-plugin-build": "^0.10.0",
71
- "vitepress": "1.0.0-rc.32",
72
- "vue-tsc": "^1.8.25"
87
+ "vitepress": "1.0.0-rc.44",
88
+ "vue-tsc": "^2.0.19"
73
89
  },
74
90
  "engines": {
75
91
  "node": ">=16"
@@ -1,17 +0,0 @@
1
- export type CssEntry = string | {
2
- [x: string]: boolean;
3
- } | (string | {
4
- [x: string]: boolean;
5
- })[];
6
- export declare const globalCss: import("vue").Ref<{
7
- [x: string]: any;
8
- icon: {
9
- root: string;
10
- };
11
- button: {
12
- root: string;
13
- prefix: CssEntry;
14
- suffix: CssEntry;
15
- };
16
- }>;
17
- export declare const setGlobalCss: (value: Record<string, any>) => void;
@@ -1,19 +0,0 @@
1
- import { ref as s } from "vue";
2
- const o = {
3
- icon: {
4
- root: "inline-flex"
5
- },
6
- button: {
7
- root: "inline-flex items-center p-4",
8
- prefix: "",
9
- suffix: ""
10
- }
11
- }, t = s(
12
- o
13
- ), n = (e) => {
14
- t.value = Object.assign(o, e);
15
- };
16
- export {
17
- t as globalCss,
18
- n as setGlobalCss
19
- };
@@ -1,4 +0,0 @@
1
- const e = Symbol("heart");
2
- export {
3
- e as heartGlobalKey
4
- };
@@ -1,60 +0,0 @@
1
- import { defineComponent as m, openBlock as s, createBlock as t, resolveDynamicComponent as n, normalizeClass as f, unref as r, withCtx as a, renderSlot as u, createCommentVNode as c } from "vue";
2
- import { globalCss as l } from "../common/global.js";
3
- import i from "./HIcon.vue.js";
4
- const k = /* @__PURE__ */ m({
5
- name: "HButton",
6
- components: { HIcon: i },
7
- __name: "HButton",
8
- props: {
9
- tag: { default: "button" },
10
- nativeType: { default: "button" },
11
- prefixIcon: {},
12
- suffixIcon: {},
13
- css: {}
14
- },
15
- setup(d) {
16
- return (e, y) => {
17
- var p;
18
- return s(), t(n(e.tag), {
19
- type: e.nativeType,
20
- class: f(((p = e.css) == null ? void 0 : p.root) ?? r(l).button.root)
21
- }, {
22
- default: a(() => [
23
- u(e.$slots, "prefix", {}, () => {
24
- var o;
25
- return [
26
- e.prefixIcon ? (s(), t(i, {
27
- key: 0,
28
- class: f(((o = e.css) == null ? void 0 : o.prefix) ?? r(l).button.prefix)
29
- }, {
30
- default: a(() => [
31
- (s(), t(n(e.prefixIcon)))
32
- ]),
33
- _: 1
34
- }, 8, ["class"])) : c("", !0)
35
- ];
36
- }),
37
- u(e.$slots, "default"),
38
- u(e.$slots, "suffix", {}, () => {
39
- var o;
40
- return [
41
- e.suffixIcon ? (s(), t(i, {
42
- key: 0,
43
- class: f(((o = e.css) == null ? void 0 : o.suffix) ?? r(l).button.suffix)
44
- }, {
45
- default: a(() => [
46
- (s(), t(n(e.suffixIcon)))
47
- ]),
48
- _: 1
49
- }, 8, ["class"])) : c("", !0)
50
- ];
51
- })
52
- ]),
53
- _: 3
54
- }, 8, ["type", "class"]);
55
- };
56
- }
57
- });
58
- export {
59
- k as default
60
- };
@@ -1,28 +0,0 @@
1
- import { defineComponent as l, computed as r, openBlock as c, createElementBlock as a, normalizeStyle as i, normalizeClass as m, unref as p, renderSlot as u } from "vue";
2
- import { globalCss as f } from "../common/global.js";
3
- const _ = /* @__PURE__ */ l({
4
- name: "HIcon",
5
- __name: "HIcon",
6
- props: {
7
- size: { default: 24 },
8
- css: {}
9
- },
10
- setup(s) {
11
- const e = s, n = r(() => ({
12
- fontSize: e.size,
13
- lineHeight: e.size
14
- }));
15
- return (o, d) => {
16
- var t;
17
- return c(), a("i", {
18
- style: i(n.value),
19
- class: m(((t = o.css) == null ? void 0 : t.root) ?? p(f).icon.root)
20
- }, [
21
- u(o.$slots, "default")
22
- ], 6);
23
- };
24
- }
25
- });
26
- export {
27
- _ as default
28
- };
@@ -1,158 +0,0 @@
1
- export declare const components: (({
2
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
- size: {
4
- type: import("vue").PropType<number>;
5
- required: true;
6
- default: number;
7
- };
8
- css: {
9
- type: import("vue").PropType<import("./components/HIcon.vue").IconCssProp>;
10
- };
11
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
12
- size: {
13
- type: import("vue").PropType<number>;
14
- required: true;
15
- default: number;
16
- };
17
- css: {
18
- type: import("vue").PropType<import("./components/HIcon.vue").IconCssProp>;
19
- };
20
- }>>, {
21
- size: number;
22
- }, true, {}, {}, {
23
- P: {};
24
- B: {};
25
- D: {};
26
- C: {};
27
- M: {};
28
- Defaults: {};
29
- }, Readonly<import("vue").ExtractPropTypes<{
30
- size: {
31
- type: import("vue").PropType<number>;
32
- required: true;
33
- default: number;
34
- };
35
- css: {
36
- type: import("vue").PropType<import("./components/HIcon.vue").IconCssProp>;
37
- };
38
- }>>, {}, {}, {}, {}, {
39
- size: number;
40
- }>;
41
- __isFragment?: undefined;
42
- __isTeleport?: undefined;
43
- __isSuspense?: undefined;
44
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
45
- size: {
46
- type: import("vue").PropType<number>;
47
- required: true;
48
- default: number;
49
- };
50
- css: {
51
- type: import("vue").PropType<import("./components/HIcon.vue").IconCssProp>;
52
- };
53
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
54
- size: number;
55
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
56
- $slots: {
57
- default?(_: {}): any;
58
- };
59
- })) | ({
60
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
61
- css: {
62
- type: import("vue").PropType<import("./components/HButton.vue").ButtonCssProp>;
63
- };
64
- tag: {
65
- type: import("vue").PropType<string | import("vue").Component>;
66
- default: string;
67
- };
68
- nativeType: {
69
- type: import("vue").PropType<string>;
70
- default: string;
71
- };
72
- prefixIcon: {
73
- type: import("vue").PropType<import("vue").Component>;
74
- };
75
- suffixIcon: {
76
- type: import("vue").PropType<import("vue").Component>;
77
- };
78
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
79
- css: {
80
- type: import("vue").PropType<import("./components/HButton.vue").ButtonCssProp>;
81
- };
82
- tag: {
83
- type: import("vue").PropType<string | import("vue").Component>;
84
- default: string;
85
- };
86
- nativeType: {
87
- type: import("vue").PropType<string>;
88
- default: string;
89
- };
90
- prefixIcon: {
91
- type: import("vue").PropType<import("vue").Component>;
92
- };
93
- suffixIcon: {
94
- type: import("vue").PropType<import("vue").Component>;
95
- };
96
- }>>, {
97
- tag: string | import("vue").Component;
98
- nativeType: string;
99
- }, true, {}, {}, {
100
- P: {};
101
- B: {};
102
- D: {};
103
- C: {};
104
- M: {};
105
- Defaults: {};
106
- }, Readonly<import("vue").ExtractPropTypes<{
107
- css: {
108
- type: import("vue").PropType<import("./components/HButton.vue").ButtonCssProp>;
109
- };
110
- tag: {
111
- type: import("vue").PropType<string | import("vue").Component>;
112
- default: string;
113
- };
114
- nativeType: {
115
- type: import("vue").PropType<string>;
116
- default: string;
117
- };
118
- prefixIcon: {
119
- type: import("vue").PropType<import("vue").Component>;
120
- };
121
- suffixIcon: {
122
- type: import("vue").PropType<import("vue").Component>;
123
- };
124
- }>>, {}, {}, {}, {}, {
125
- tag: string | import("vue").Component;
126
- nativeType: string;
127
- }>;
128
- __isFragment?: undefined;
129
- __isTeleport?: undefined;
130
- __isSuspense?: undefined;
131
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
132
- css: {
133
- type: import("vue").PropType<import("./components/HButton.vue").ButtonCssProp>;
134
- };
135
- tag: {
136
- type: import("vue").PropType<string | import("vue").Component>;
137
- default: string;
138
- };
139
- nativeType: {
140
- type: import("vue").PropType<string>;
141
- default: string;
142
- };
143
- prefixIcon: {
144
- type: import("vue").PropType<import("vue").Component>;
145
- };
146
- suffixIcon: {
147
- type: import("vue").PropType<import("vue").Component>;
148
- };
149
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
150
- tag: string | import("vue").Component;
151
- nativeType: string;
152
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
153
- $slots: {
154
- prefix?(_: {}): any;
155
- default?(_: {}): any;
156
- suffix?(_: {}): any;
157
- };
158
- })))[];
@@ -1,6 +0,0 @@
1
- import o from "./components/HButton.vue.js";
2
- import m from "./components/HIcon.vue.js";
3
- const t = [o, m];
4
- export {
5
- t as components
6
- };
File without changes