heart-ui 0.0.4

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 ADDED
@@ -0,0 +1,18 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8
+
9
+ ## Type Support For `.vue` Imports in TS
10
+
11
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
12
+
13
+ If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
14
+
15
+ 1. Disable the built-in TypeScript Extension
16
+ 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17
+ 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18
+ 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={icon:{root:"inline-flex"},button:{root:"inline-flex items-center",prefix:"",suffix:""}},t=s,l=e=>Object.assign(s,e);exports.globalCss=t;exports.setGlobalCss=l;
@@ -0,0 +1,25 @@
1
+ export type CssEntry = string | {
2
+ [x: string]: boolean;
3
+ } | (string | {
4
+ [x: string]: boolean;
5
+ })[];
6
+ export declare const globalCss: {
7
+ icon: {
8
+ root: string;
9
+ };
10
+ button: {
11
+ root: string;
12
+ prefix: CssEntry;
13
+ suffix: CssEntry;
14
+ };
15
+ };
16
+ export declare const setGlobalCss: (value: Record<string, Record<string, CssEntry>>) => {
17
+ icon: {
18
+ root: string;
19
+ };
20
+ button: {
21
+ root: string;
22
+ prefix: CssEntry;
23
+ suffix: CssEntry;
24
+ };
25
+ } & Record<string, Record<string, CssEntry>>;
@@ -0,0 +1,14 @@
1
+ const s = {
2
+ icon: {
3
+ root: "inline-flex"
4
+ },
5
+ button: {
6
+ root: "inline-flex items-center",
7
+ prefix: "",
8
+ suffix: ""
9
+ }
10
+ }, t = s, e = (o) => Object.assign(s, o);
11
+ export {
12
+ t as globalCss,
13
+ e as setGlobalCss
14
+ };
@@ -0,0 +1 @@
1
+ export * from "./global";
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./HButton.vue.cjs");module.exports=t;
@@ -0,0 +1,4 @@
1
+ import f from "./HButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),t=require("../common/global.cjs"),n=require("./HIcon.vue.cjs"),l=e.defineComponent({name:"HButton",components:{HIcon:n},__name:"HButton",props:{tag:{default:"button"},nativeType:{default:"button"},prefixIcon:{},suffixIcon:{},css:{}},setup(a){return(o,c)=>{var r;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),{type:o.nativeType,class:e.normalizeClass(((r=o.css)==null?void 0:r.root)??e.unref(t.globalCss).button.root)},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"prefix",{},()=>{var s;return[o.prefixIcon?(e.openBlock(),e.createBlock(n,{key:0,class:e.normalizeClass(((s=o.css)==null?void 0:s.prefix)??e.unref(t.globalCss).button.prefix)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.prefixIcon)))]),_:1},8,["class"])):e.createCommentVNode("",!0)]}),e.renderSlot(o.$slots,"default"),e.renderSlot(o.$slots,"suffix",{},()=>{var s;return[o.suffixIcon?(e.openBlock(),e.createBlock(n,{key:0,class:e.normalizeClass(((s=o.css)==null?void 0:s.suffix)??e.unref(t.globalCss).button.suffix)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.suffixIcon)))]),_:1},8,["class"])):e.createCommentVNode("",!0)]})]),_:3},8,["type","class"])}}});module.exports=l;
@@ -0,0 +1,56 @@
1
+ import { Component } from "vue";
2
+ import { CssEntry } from "../common";
3
+ export type ButtonCssProp = {
4
+ root: CssEntry;
5
+ prefix: CssEntry;
6
+ 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;
13
+ css?: ButtonCssProp | undefined;
14
+ }>, {
15
+ tag: string;
16
+ 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;
22
+ css?: ButtonCssProp | undefined;
23
+ }>, {
24
+ tag: string;
25
+ nativeType: string;
26
+ }>>>, {
27
+ tag: string | Component;
28
+ nativeType: string;
29
+ }, {}>, {
30
+ prefix?(_: {}): any;
31
+ default?(_: {}): any;
32
+ suffix?(_: {}): any;
33
+ }>;
34
+ 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
+ };
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,60 @@
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
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./HIcon.vue.cjs");module.exports=e;
@@ -0,0 +1,4 @@
1
+ import f from "./HIcon.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),r=require("../common/global.cjs"),c=e.defineComponent({name:"HIcon",__name:"HIcon",props:{size:{default:24},css:{}},setup(n){const o=n,l=e.computed(()=>({fontSize:o.size,lineHeight:o.size}));return(s,i)=>{var t;return e.openBlock(),e.createElementBlock("i",{style:e.normalizeStyle(l.value),class:e.normalizeClass(((t=s.css)==null?void 0:t.root)??e.unref(r.globalCss).icon.root)},[e.renderSlot(s.$slots,"default")],6)}}});module.exports=c;
@@ -0,0 +1,42 @@
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
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
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
+ };
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./HButton.vue.cjs"),t=require("./HIcon.vue.cjs"),n=[e,t];exports.HButton=e;exports.HIcon=t;exports.components=n;
@@ -0,0 +1,169 @@
1
+ import HButton from "./HButton.vue";
2
+ import HIcon from "./HIcon.vue";
3
+ export declare const components: (({
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
5
+ size: {
6
+ type: import("vue").PropType<number>;
7
+ required: true;
8
+ default: number;
9
+ };
10
+ css: {
11
+ type: import("vue").PropType<import("./HIcon.vue").IconCssProp>;
12
+ };
13
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
14
+ size: {
15
+ type: import("vue").PropType<number>;
16
+ required: true;
17
+ default: number;
18
+ };
19
+ css: {
20
+ type: import("vue").PropType<import("./HIcon.vue").IconCssProp>;
21
+ };
22
+ }>>, {
23
+ size: number;
24
+ }, true, {}, {}, {
25
+ P: {};
26
+ B: {};
27
+ D: {};
28
+ C: {};
29
+ M: {};
30
+ Defaults: {};
31
+ }, Readonly<import("vue").ExtractPropTypes<{
32
+ size: {
33
+ type: import("vue").PropType<number>;
34
+ required: true;
35
+ default: number;
36
+ };
37
+ css: {
38
+ type: import("vue").PropType<import("./HIcon.vue").IconCssProp>;
39
+ };
40
+ }>>, {}, {}, {}, {}, {
41
+ size: number;
42
+ }>;
43
+ __isFragment?: undefined;
44
+ __isTeleport?: undefined;
45
+ __isSuspense?: undefined;
46
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
47
+ size: {
48
+ type: import("vue").PropType<number>;
49
+ required: true;
50
+ default: number;
51
+ };
52
+ css: {
53
+ type: import("vue").PropType<import("./HIcon.vue").IconCssProp>;
54
+ };
55
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
56
+ size: number;
57
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
58
+ $slots: {
59
+ default?(_: {}): any;
60
+ };
61
+ })) | ({
62
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
63
+ css: {
64
+ type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
65
+ };
66
+ tag: {
67
+ type: import("vue").PropType<string | import("vue").Component>;
68
+ required: true;
69
+ default: string;
70
+ };
71
+ nativeType: {
72
+ type: import("vue").PropType<string>;
73
+ required: true;
74
+ default: string;
75
+ };
76
+ prefixIcon: {
77
+ type: import("vue").PropType<import("vue").Component>;
78
+ };
79
+ suffixIcon: {
80
+ type: import("vue").PropType<import("vue").Component>;
81
+ };
82
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
83
+ css: {
84
+ type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
85
+ };
86
+ tag: {
87
+ type: import("vue").PropType<string | import("vue").Component>;
88
+ required: true;
89
+ default: string;
90
+ };
91
+ nativeType: {
92
+ type: import("vue").PropType<string>;
93
+ required: true;
94
+ default: string;
95
+ };
96
+ prefixIcon: {
97
+ type: import("vue").PropType<import("vue").Component>;
98
+ };
99
+ suffixIcon: {
100
+ type: import("vue").PropType<import("vue").Component>;
101
+ };
102
+ }>>, {
103
+ tag: string | import("vue").Component;
104
+ nativeType: string;
105
+ }, true, {}, {}, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<import("vue").ExtractPropTypes<{
113
+ css: {
114
+ type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
115
+ };
116
+ tag: {
117
+ type: import("vue").PropType<string | import("vue").Component>;
118
+ required: true;
119
+ default: string;
120
+ };
121
+ nativeType: {
122
+ type: import("vue").PropType<string>;
123
+ required: true;
124
+ default: string;
125
+ };
126
+ prefixIcon: {
127
+ type: import("vue").PropType<import("vue").Component>;
128
+ };
129
+ suffixIcon: {
130
+ type: import("vue").PropType<import("vue").Component>;
131
+ };
132
+ }>>, {}, {}, {}, {}, {
133
+ tag: string | import("vue").Component;
134
+ nativeType: string;
135
+ }>;
136
+ __isFragment?: undefined;
137
+ __isTeleport?: undefined;
138
+ __isSuspense?: undefined;
139
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
140
+ css: {
141
+ type: import("vue").PropType<import("./HButton.vue").ButtonCssProp>;
142
+ };
143
+ tag: {
144
+ type: import("vue").PropType<string | import("vue").Component>;
145
+ required: true;
146
+ default: string;
147
+ };
148
+ nativeType: {
149
+ type: import("vue").PropType<string>;
150
+ required: true;
151
+ default: string;
152
+ };
153
+ prefixIcon: {
154
+ type: import("vue").PropType<import("vue").Component>;
155
+ };
156
+ suffixIcon: {
157
+ type: import("vue").PropType<import("vue").Component>;
158
+ };
159
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
160
+ tag: string | import("vue").Component;
161
+ nativeType: string;
162
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
163
+ $slots: {
164
+ prefix?(_: {}): any;
165
+ default?(_: {}): any;
166
+ suffix?(_: {}): any;
167
+ };
168
+ })))[];
169
+ export { HButton, HIcon };
@@ -0,0 +1,8 @@
1
+ import o from "./HButton.vue.js";
2
+ import m from "./HIcon.vue.js";
3
+ const s = [o, m];
4
+ export {
5
+ o as HButton,
6
+ m as HIcon,
7
+ s as components
8
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./components/index.cjs"),e=require("./common/global.cjs"),l=require("./utils/index.cjs"),r=require("./components/HButton.vue.cjs"),c=require("./components/HIcon.vue.cjs"),u={install:(o,n={css:{}})=>{e.setGlobalCss(n.css),s.components.forEach(t=>{o.component(t.name,t)})}};exports.components=s.components;exports.globalCss=e.globalCss;exports.setGlobalCss=e.setGlobalCss;exports.testUtil=l.testUtil;exports.HButton=r;exports.HIcon=c;exports.HeartUI=u;
@@ -0,0 +1,10 @@
1
+ import { App } from "vue";
2
+ import { CssEntry } from "./common";
3
+ export * from "./components";
4
+ export * from "./common";
5
+ export * from "./utils";
6
+ export declare const HeartUI: {
7
+ install: (app: App, options?: {
8
+ css: Record<string, Record<string, CssEntry>>;
9
+ }) => void;
10
+ };
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import { components as s } from "./components/index.js";
2
+ import { setGlobalCss as e } from "./common/global.js";
3
+ import { globalCss as n } from "./common/global.js";
4
+ import { testUtil as x } from "./utils/index.js";
5
+ import { default as u } from "./components/HButton.vue.js";
6
+ import { default as b } from "./components/HIcon.vue.js";
7
+ const f = {
8
+ install: (t, r = { css: {} }) => {
9
+ e(r.css), s.forEach((o) => {
10
+ t.component(o.name, o);
11
+ });
12
+ }
13
+ };
14
+ export {
15
+ u as HButton,
16
+ b as HIcon,
17
+ f as HeartUI,
18
+ s as components,
19
+ n as globalCss,
20
+ e as setGlobalCss,
21
+ x as testUtil
22
+ };
package/dist/nuxt.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";const e=require("@nuxt/kit");var t=typeof document<"u"?document.currentScript:null;const n=e.defineNuxtModule({meta:{name:"heart-ui",configKey:"heart"},setup(){e.addComponentsDir({path:e.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:t&&t.src||new URL("nuxt.cjs",document.baseURI).href).resolve("./components/"),prefix:"h",pattern:"**/*.js",ignore:["**/*.vue.js","**/*.cjs","**/*.d.ts"]})}});module.exports=n;
package/dist/nuxt.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
2
+ export default _default;
3
+ declare module "@nuxt/schema" {
4
+ interface NuxtConfig {
5
+ heart?: Record<string, unknown>;
6
+ }
7
+ interface NuxtOptions {
8
+ heart?: Record<string, unknown>;
9
+ }
10
+ }
package/dist/nuxt.js ADDED
@@ -0,0 +1,18 @@
1
+ import { defineNuxtModule as e, addComponentsDir as t, createResolver as o } from "@nuxt/kit";
2
+ const a = e({
3
+ meta: {
4
+ name: "heart-ui",
5
+ configKey: "heart"
6
+ },
7
+ setup() {
8
+ t({
9
+ path: o(import.meta.url).resolve("./components/"),
10
+ prefix: "h",
11
+ pattern: "**/*.js",
12
+ ignore: ["**/*.vue.js", "**/*.cjs", "**/*.d.ts"]
13
+ });
14
+ }
15
+ });
16
+ export {
17
+ a as default
18
+ };
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .inline-flex{display:inline-flex}.items-center{align-items:center}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="";exports.testUtil=t;
@@ -0,0 +1 @@
1
+ export declare const testUtil = "";
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as testUtil
4
+ };
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "heart-ui",
3
+ "version": "0.0.4",
4
+ "type": "module",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "default": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "require": {
17
+ "default": "./dist/index.cjs",
18
+ "types": "./dist/index.d.ts"
19
+ }
20
+ },
21
+ "./nuxt": {
22
+ "import": {
23
+ "default": "./dist/nuxt.js",
24
+ "types": "./dist/nuxt.d.ts"
25
+ },
26
+ "require": {
27
+ "default": "./dist/nuxt.cjs",
28
+ "types": "./dist/nuxt.d.ts"
29
+ }
30
+ }
31
+ },
32
+ "style": "./dist/style.css",
33
+ "unpkg": "./dist/index.cjs",
34
+ "jsdelivr": "./dist/index.cjs",
35
+ "scripts": {
36
+ "dev": "pnpm run -C playground dev",
37
+ "build": "vite build && vue-tsc",
38
+ "types": "vue-tsc",
39
+ "preview": "vite preview",
40
+ "release": "changelogen --release && npm publish && git push --follow-tags"
41
+ },
42
+ "dependencies": {
43
+ "@vueuse/core": "^10.7.0",
44
+ "lodash-unified": "^1.0.3",
45
+ "vue": "^3.3.11"
46
+ },
47
+ "devDependencies": {
48
+ "@nuxt/kit": "^3.8.2",
49
+ "@nuxt/schema": "^3.8.2",
50
+ "@types/node": "^20.10.5",
51
+ "@vitejs/plugin-vue": "^4.5.2",
52
+ "changelogen": "^0.5.5",
53
+ "glob": "^10.3.10",
54
+ "typescript": "^5.2.2",
55
+ "unocss": "^0.58.0",
56
+ "vite": "^5.0.8",
57
+ "vue-tsc": "^1.8.25"
58
+ }
59
+ }