heart-ui 0.0.11 → 0.0.14

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.
Files changed (41) hide show
  1. package/dist/common/index.d.ts +1 -1
  2. package/dist/common/symbols.d.ts +1 -1
  3. package/dist/common/theme.d.ts +143 -0
  4. package/dist/components/HButton.js +1 -1
  5. package/dist/components/HButton.vue.d.ts +86 -21
  6. package/dist/components/HIcon.js +1 -1
  7. package/dist/components/HIcon.vue.d.ts +13 -33
  8. package/dist/components/index.d.ts +2 -166
  9. package/dist/composables/index.d.ts +1 -14
  10. package/dist/composables/index.js +2 -3
  11. package/dist/composables/theme.d.ts +71 -0
  12. package/dist/index.d.ts +6 -4
  13. package/dist/index.js +20 -16
  14. package/dist/node_modules/.pnpm/@unocss_reset@0.60.3/node_modules/@unocss/reset/tailwind.css.js +1 -0
  15. package/dist/nuxt/plugin.d.ts +130 -14
  16. package/dist/nuxt/plugin.js +8 -8
  17. package/dist/nuxt.d.ts +13 -5
  18. package/dist/nuxt.js +10 -10
  19. package/dist/src/common/symbols.js +4 -0
  20. package/dist/src/common/theme.js +74 -0
  21. package/dist/src/components/HButton.vue.js +145 -0
  22. package/dist/src/components/HIcon.vue.js +23 -0
  23. package/dist/src/components/index.js +6 -0
  24. package/dist/src/composables/theme.js +5 -0
  25. package/dist/style.css +1 -1
  26. package/package.json +51 -36
  27. package/dist/common/global.d.ts +0 -17
  28. package/dist/common/global.js +0 -19
  29. package/dist/common/symbols.js +0 -4
  30. package/dist/components/HButton.vue.js +0 -60
  31. package/dist/components/HIcon.vue.js +0 -28
  32. package/dist/components/index.js +0 -6
  33. package/dist/nuxt/nuxt.config.d.ts +0 -2
  34. package/dist/nuxt-layer/components/HButton.vue +0 -47
  35. package/dist/nuxt-layer/components/HIcon.vue +0 -29
  36. package/dist/nuxt-layer/components/index.ts +0 -4
  37. package/dist/nuxt-layer/composables/index.ts +0 -5
  38. package/dist/nuxt-layer/nuxt.config.ts +0 -3
  39. package/dist/nuxt-layer/package.json +0 -10
  40. package/dist/nuxt-layer/utils/index.ts +0 -1
  41. /package/dist/{utils → src/utils}/index.js +0 -0
@@ -1,2 +1,2 @@
1
- export * from "./global";
1
+ export * from "./theme";
2
2
  export * from "./symbols";
@@ -1 +1 @@
1
- export declare const heartGlobalKey: unique symbol;
1
+ export declare const HEART_GLOBAL_KEY: unique symbol;
@@ -0,0 +1,143 @@
1
+ export type CssEntry = string | {
2
+ [x: string]: boolean;
3
+ } | (string | {
4
+ [x: string]: boolean;
5
+ })[];
6
+ declare const _defaultTheme: {
7
+ css: {
8
+ icon: {
9
+ root: string;
10
+ };
11
+ button: {
12
+ root: string;
13
+ prefix: string;
14
+ suffix: string;
15
+ text: string;
16
+ busy: string;
17
+ disabled: string;
18
+ style: {
19
+ solid: {
20
+ custom: string;
21
+ default: string;
22
+ primary: string;
23
+ danger: string;
24
+ warning: string;
25
+ success: string;
26
+ info: string;
27
+ };
28
+ semi: {
29
+ custom: string;
30
+ default: string;
31
+ primary: string;
32
+ danger: string;
33
+ warning: string;
34
+ success: string;
35
+ info: string;
36
+ };
37
+ outline: {
38
+ custom: string;
39
+ default: string;
40
+ primary: string;
41
+ danger: string;
42
+ warning: string;
43
+ success: string;
44
+ info: string;
45
+ };
46
+ ghost: {
47
+ custom: string;
48
+ default: string;
49
+ primary: string;
50
+ danger: string;
51
+ warning: string;
52
+ success: string;
53
+ info: string;
54
+ };
55
+ };
56
+ size: {
57
+ default: string;
58
+ large: string;
59
+ small: string;
60
+ };
61
+ rounded: string;
62
+ };
63
+ };
64
+ icons: {
65
+ loading: {
66
+ default: string;
67
+ dot: string;
68
+ clock: string;
69
+ pulse: string;
70
+ };
71
+ };
72
+ };
73
+ export type HeartTheme = typeof _defaultTheme & Record<string, any>;
74
+ export declare const theme: import("vue").Ref<{
75
+ [x: string]: any;
76
+ css: {
77
+ icon: {
78
+ root: string;
79
+ };
80
+ button: {
81
+ root: string;
82
+ prefix: string;
83
+ suffix: string;
84
+ text: string;
85
+ busy: string;
86
+ disabled: string;
87
+ style: {
88
+ solid: {
89
+ custom: string;
90
+ default: string;
91
+ primary: string;
92
+ danger: string;
93
+ warning: string;
94
+ success: string;
95
+ info: string;
96
+ };
97
+ semi: {
98
+ custom: string;
99
+ default: string;
100
+ primary: string;
101
+ danger: string;
102
+ warning: string;
103
+ success: string;
104
+ info: string;
105
+ };
106
+ outline: {
107
+ custom: string;
108
+ default: string;
109
+ primary: string;
110
+ danger: string;
111
+ warning: string;
112
+ success: string;
113
+ info: string;
114
+ };
115
+ ghost: {
116
+ custom: string;
117
+ default: string;
118
+ primary: string;
119
+ danger: string;
120
+ warning: string;
121
+ success: string;
122
+ info: string;
123
+ };
124
+ };
125
+ size: {
126
+ default: string;
127
+ large: string;
128
+ small: string;
129
+ };
130
+ rounded: string;
131
+ };
132
+ };
133
+ icons: {
134
+ loading: {
135
+ default: string;
136
+ dot: string;
137
+ clock: string;
138
+ pulse: string;
139
+ };
140
+ };
141
+ }>;
142
+ export declare const setTheme: (value: Record<string, any>) => void;
143
+ export {};
@@ -1,4 +1,4 @@
1
- import f from "./HButton.vue.js";
1
+ import f from "../src/components/HButton.vue.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,25 +1,88 @@
1
1
  import { Component } from "vue";
2
2
  import { CssEntry } from "../common";
3
- export type ButtonCssProp = {
3
+ type ButtonCssPropStyle = {
4
+ default?: CssEntry;
5
+ custom?: CssEntry;
6
+ primary?: CssEntry;
7
+ danger?: CssEntry;
8
+ warning?: CssEntry;
9
+ info?: CssEntry;
10
+ success?: CssEntry;
11
+ };
12
+ export interface ButtonCssProp {
4
13
  root?: CssEntry;
5
14
  prefix?: CssEntry;
6
15
  suffix?: CssEntry;
7
- };
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- tag: string | Component;
10
- nativeType: string;
11
- prefixIcon?: Component | undefined;
12
- suffixIcon?: Component | undefined;
16
+ text?: CssEntry;
17
+ busy?: CssEntry;
18
+ disabled?: CssEntry;
19
+ style?: {
20
+ solid?: ButtonCssPropStyle;
21
+ outline?: ButtonCssPropStyle;
22
+ ghost?: ButtonCssPropStyle;
23
+ semi?: ButtonCssPropStyle;
24
+ };
25
+ size?: {
26
+ default?: CssEntry;
27
+ small?: CssEntry;
28
+ large?: CssEntry;
29
+ };
30
+ }
31
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
13
32
  css?: ButtonCssProp | undefined;
33
+ tag?: string | Component | undefined;
34
+ nativeType?: string | undefined;
35
+ icons?: {
36
+ prefix?: string | undefined;
37
+ suffix?: string | undefined;
38
+ loading?: string | undefined;
39
+ } | undefined;
40
+ prefixIcon?: string | undefined;
41
+ suffixIcon?: string | undefined;
42
+ loadingIcon?: string | undefined;
43
+ busy?: boolean | undefined;
44
+ disabled?: boolean | undefined;
45
+ outline?: boolean | undefined;
46
+ ghost?: boolean | undefined;
47
+ semi?: boolean | undefined;
48
+ primary?: boolean | undefined;
49
+ danger?: boolean | undefined;
50
+ warning?: boolean | undefined;
51
+ success?: boolean | undefined;
52
+ info?: boolean | undefined;
53
+ custom?: boolean | undefined;
54
+ rounded?: boolean | undefined;
55
+ small?: boolean | undefined;
56
+ large?: boolean | undefined;
14
57
  }>, {
15
58
  tag: string;
16
59
  nativeType: string;
17
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
- tag: string | Component;
19
- nativeType: string;
20
- prefixIcon?: Component | undefined;
21
- suffixIcon?: Component | undefined;
60
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
22
61
  css?: ButtonCssProp | undefined;
62
+ tag?: string | Component | undefined;
63
+ nativeType?: string | undefined;
64
+ icons?: {
65
+ prefix?: string | undefined;
66
+ suffix?: string | undefined;
67
+ loading?: string | undefined;
68
+ } | undefined;
69
+ prefixIcon?: string | undefined;
70
+ suffixIcon?: string | undefined;
71
+ loadingIcon?: string | undefined;
72
+ busy?: boolean | undefined;
73
+ disabled?: boolean | undefined;
74
+ outline?: boolean | undefined;
75
+ ghost?: boolean | undefined;
76
+ semi?: boolean | undefined;
77
+ primary?: boolean | undefined;
78
+ danger?: boolean | undefined;
79
+ warning?: boolean | undefined;
80
+ success?: boolean | undefined;
81
+ info?: boolean | undefined;
82
+ custom?: boolean | undefined;
83
+ rounded?: boolean | undefined;
84
+ small?: boolean | undefined;
85
+ large?: boolean | undefined;
23
86
  }>, {
24
87
  tag: string;
25
88
  nativeType: string;
@@ -30,17 +93,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
93
  prefix?(_: {}): any;
31
94
  default?(_: {}): any;
32
95
  suffix?(_: {}): any;
96
+ busy?(_: {}): any;
33
97
  }>;
34
98
  export default _default;
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
99
+
44
100
  type __VLS_WithDefaults<P, D> = {
45
101
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
102
  default: D[K];
@@ -54,3 +110,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
54
110
  $slots: S;
55
111
  };
56
112
  };
113
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
114
+ type __VLS_TypePropsToOption<T> = {
115
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
116
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
117
+ } : {
118
+ type: import('vue').PropType<T[K]>;
119
+ required: true;
120
+ };
121
+ };
@@ -1,4 +1,4 @@
1
- import f from "./HIcon.vue.js";
1
+ import f from "../src/components/HIcon.vue.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,25 +1,18 @@
1
- import { CssEntry } from "../common/index";
2
- export type IconCssProp = {
3
- root?: CssEntry;
4
- };
5
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- size: number;
7
- css?: IconCssProp | undefined;
8
- }>, {
9
- size: number;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- size: number;
12
- css?: IconCssProp | undefined;
13
- }>, {
14
- size: number;
15
- }>>>, {
16
- size: number;
17
- }, {}>, {
18
- default?(_: {}): any;
19
- }>;
1
+ import { IconifyIcon, IconifyRenderMode } from "@iconify/vue";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ icon: string | IconifyIcon;
4
+ mode?: IconifyRenderMode | undefined;
5
+ color?: string | undefined;
6
+ flip?: string | undefined;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
8
+ icon: string | IconifyIcon;
9
+ mode?: IconifyRenderMode | undefined;
10
+ color?: string | undefined;
11
+ flip?: string | undefined;
12
+ }>>>, {}, {}>;
20
13
  export default _default;
21
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToRuntimeProps<T> = {
15
+ type __VLS_TypePropsToOption<T> = {
23
16
  [K in keyof T]-?: {} extends Pick<T, K> ? {
24
17
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
18
  } : {
@@ -27,16 +20,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
27
20
  required: true;
28
21
  };
29
22
  };
30
- type __VLS_WithDefaults<P, D> = {
31
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
- default: D[K];
33
- }> : P[K];
34
- };
35
- type __VLS_Prettify<T> = {
36
- [K in keyof T]: T[K];
37
- } & {};
38
- type __VLS_WithTemplateSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };
@@ -1,166 +1,2 @@
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("./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("./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("./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("./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("./HButton.vue").ButtonCssProp>;
63
- };
64
- tag: {
65
- type: import("vue").PropType<string | import("vue").Component>;
66
- required: true;
67
- default: string;
68
- };
69
- nativeType: {
70
- type: import("vue").PropType<string>;
71
- required: true;
72
- default: string;
73
- };
74
- prefixIcon: {
75
- type: import("vue").PropType<import("vue").Component>;
76
- };
77
- suffixIcon: {
78
- type: import("vue").PropType<import("vue").Component>;
79
- };
80
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
81
- css: {
82
- type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
83
- };
84
- tag: {
85
- type: import("vue").PropType<string | import("vue").Component>;
86
- required: true;
87
- default: string;
88
- };
89
- nativeType: {
90
- type: import("vue").PropType<string>;
91
- required: true;
92
- default: string;
93
- };
94
- prefixIcon: {
95
- type: import("vue").PropType<import("vue").Component>;
96
- };
97
- suffixIcon: {
98
- type: import("vue").PropType<import("vue").Component>;
99
- };
100
- }>>, {
101
- tag: string | import("vue").Component;
102
- nativeType: string;
103
- }, true, {}, {}, {
104
- P: {};
105
- B: {};
106
- D: {};
107
- C: {};
108
- M: {};
109
- Defaults: {};
110
- }, Readonly<import("vue").ExtractPropTypes<{
111
- css: {
112
- type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
113
- };
114
- tag: {
115
- type: import("vue").PropType<string | import("vue").Component>;
116
- required: true;
117
- default: string;
118
- };
119
- nativeType: {
120
- type: import("vue").PropType<string>;
121
- required: true;
122
- default: string;
123
- };
124
- prefixIcon: {
125
- type: import("vue").PropType<import("vue").Component>;
126
- };
127
- suffixIcon: {
128
- type: import("vue").PropType<import("vue").Component>;
129
- };
130
- }>>, {}, {}, {}, {}, {
131
- tag: string | import("vue").Component;
132
- nativeType: string;
133
- }>;
134
- __isFragment?: undefined;
135
- __isTeleport?: undefined;
136
- __isSuspense?: undefined;
137
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
138
- css: {
139
- type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
140
- };
141
- tag: {
142
- type: import("vue").PropType<string | import("vue").Component>;
143
- required: true;
144
- default: string;
145
- };
146
- nativeType: {
147
- type: import("vue").PropType<string>;
148
- required: true;
149
- default: string;
150
- };
151
- prefixIcon: {
152
- type: import("vue").PropType<import("vue").Component>;
153
- };
154
- suffixIcon: {
155
- type: import("vue").PropType<import("vue").Component>;
156
- };
157
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
158
- tag: string | import("vue").Component;
159
- nativeType: string;
160
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
161
- $slots: {
162
- prefix?(_: {}): any;
163
- default?(_: {}): any;
164
- suffix?(_: {}): any;
165
- };
166
- })))[];
1
+ export { default as HButton } from "./HButton.vue";
2
+ export { default as HIcon } from "./HIcon.vue";
@@ -1,14 +1 @@
1
- export declare const useGlobalCss: () => {
2
- globalCss: import("vue").Ref<{
3
- [x: string]: any;
4
- icon: {
5
- root: string;
6
- };
7
- button: {
8
- root: string;
9
- prefix: import("../common").CssEntry;
10
- suffix: import("../common").CssEntry;
11
- };
12
- }>;
13
- setGlobalCss: (value: Record<string, any>) => void;
14
- };
1
+ export * from './theme';
@@ -1,5 +1,4 @@
1
- import { globalCss as s, setGlobalCss as o } from "../common/global.js";
2
- const r = () => ({ globalCss: s, setGlobalCss: o });
1
+ import { useHeartTheme as m } from "../src/composables/theme.js";
3
2
  export {
4
- r as useGlobalCss
3
+ m as useHeartTheme
5
4
  };
@@ -0,0 +1,71 @@
1
+ export declare const useHeartTheme: () => {
2
+ theme: import("vue").Ref<{
3
+ [x: string]: any;
4
+ css: {
5
+ icon: {
6
+ root: string;
7
+ };
8
+ button: {
9
+ root: string;
10
+ prefix: string;
11
+ suffix: string;
12
+ text: string;
13
+ busy: string;
14
+ disabled: string;
15
+ style: {
16
+ solid: {
17
+ custom: string;
18
+ default: string;
19
+ primary: string;
20
+ danger: string;
21
+ warning: string;
22
+ success: string;
23
+ info: string;
24
+ };
25
+ semi: {
26
+ custom: string;
27
+ default: string;
28
+ primary: string;
29
+ danger: string;
30
+ warning: string;
31
+ success: string;
32
+ info: string;
33
+ };
34
+ outline: {
35
+ custom: string;
36
+ default: string;
37
+ primary: string;
38
+ danger: string;
39
+ warning: string;
40
+ success: string;
41
+ info: string;
42
+ };
43
+ ghost: {
44
+ custom: string;
45
+ default: string;
46
+ primary: string;
47
+ danger: string;
48
+ warning: string;
49
+ success: string;
50
+ info: string;
51
+ };
52
+ };
53
+ size: {
54
+ default: string;
55
+ large: string;
56
+ small: string;
57
+ };
58
+ rounded: string;
59
+ };
60
+ };
61
+ icons: {
62
+ loading: {
63
+ default: string;
64
+ dot: string;
65
+ clock: string;
66
+ pulse: string;
67
+ };
68
+ };
69
+ }>;
70
+ setTheme: (value: Record<string, any>) => void;
71
+ };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  import { type App } from "vue";
2
- import { CssEntry } from "./common";
2
+ import { type HeartTheme } from "./common";
3
+ import "@unocss/reset/tailwind.css";
3
4
  export * from "./components";
4
5
  export * from "./composables";
5
6
  export * from "./common";
6
7
  export * from "./utils";
8
+ export interface HeartPluginOptions {
9
+ theme: HeartTheme;
10
+ }
7
11
  export declare const HeartUI: {
8
- install: (app: App, options?: {
9
- css: Record<string, Record<string, CssEntry>>;
10
- }) => void;
12
+ install: (app: App, options?: HeartPluginOptions) => void;
11
13
  };
package/dist/index.js CHANGED
@@ -1,21 +1,25 @@
1
- import { components as t } from "./components/index.js";
2
- import { setGlobalCss as e, globalCss as l } from "./common/global.js";
3
- import { heartGlobalKey as m } from "./common/symbols.js";
4
- import { useGlobalCss as b } from "./composables/index.js";
5
- import { testUtil as C } from "./utils/index.js";
6
- const i = {
7
- install: (o, r = { css: {} }) => {
8
- e(r.css), o.provide(m, { css: l }), t.forEach((s) => {
9
- o.component(s.name, s);
1
+ import * as m from "./src/components/index.js";
2
+ import { setTheme as f, theme as i } from "./src/common/theme.js";
3
+ import { HEART_GLOBAL_KEY as a } from "./src/common/symbols.js";
4
+ import "./node_modules/.pnpm/@unocss_reset@0.60.3/node_modules/@unocss/reset/tailwind.css.js";
5
+ import { useHeartTheme as l } from "./src/composables/theme.js";
6
+ import { testUtil as d } from "./src/utils/index.js";
7
+ import { default as E } from "./src/components/HButton.vue.js";
8
+ import { default as A } from "./src/components/HIcon.vue.js";
9
+ const x = {
10
+ install: (e, t) => {
11
+ t && f(t.theme), e.provide(a, { theme: i }), Object.entries(m).forEach(([o, r]) => {
12
+ e.component(o, r);
10
13
  });
11
14
  }
12
15
  };
13
16
  export {
14
- i as HeartUI,
15
- t as components,
16
- l as globalCss,
17
- m as heartGlobalKey,
18
- e as setGlobalCss,
19
- C as testUtil,
20
- b as useGlobalCss
17
+ E as HButton,
18
+ a as HEART_GLOBAL_KEY,
19
+ A as HIcon,
20
+ x as HeartUI,
21
+ f as setTheme,
22
+ d as testUtil,
23
+ i as theme,
24
+ l as useHeartTheme
21
25
  };