hp-design-system 0.0.12 → 0.0.13
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/dist/hp-design-system.es.js +23 -0
- package/dist/types/components/Button.vue.d.ts +10 -5
- package/dist/types/components/index.d.ts +2 -8
- package/dist/types/index.d.ts +0 -1
- package/package.json +6 -6
- package/src/components/Button.vue +4 -3
- package/src/components/index.ts +4 -13
- package/src/index.ts +7 -8
- package/dist/my-lib.es.js +0 -20
- package/dist/style.css +0 -1
@@ -0,0 +1,23 @@
|
|
1
|
+
import { defineComponent as o, openBlock as r, createElementBlock as c, toDisplayString as p } from "vue";
|
2
|
+
const u = /* @__PURE__ */ o({
|
3
|
+
__name: "Button",
|
4
|
+
props: {
|
5
|
+
text: { type: String, required: !0 }
|
6
|
+
},
|
7
|
+
setup(t) {
|
8
|
+
return (e, a) => (r(), c("button", null, p(t.text), 1));
|
9
|
+
}
|
10
|
+
}), n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
11
|
+
__proto__: null,
|
12
|
+
HpButton: u
|
13
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
14
|
+
function l(t) {
|
15
|
+
Object.keys(n).forEach((e) => {
|
16
|
+
t.component(e, n[e]);
|
17
|
+
});
|
18
|
+
}
|
19
|
+
const s = { install: l };
|
20
|
+
export {
|
21
|
+
u as HpButton,
|
22
|
+
s as default
|
23
|
+
};
|
@@ -1,7 +1,12 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
text:
|
3
|
-
|
4
|
-
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
text: {
|
3
|
+
type: StringConstructor;
|
4
|
+
required: true;
|
5
5
|
};
|
6
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
7
|
+
text: {
|
8
|
+
type: StringConstructor;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
}>>, {}, {}>;
|
7
12
|
export default _default;
|
@@ -1,8 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import '../assets/main.scss';
|
4
|
-
declare const _default: {
|
5
|
-
install: typeof install;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export * from '../components';
|
1
|
+
import HpButton from './Button.vue';
|
2
|
+
export { HpButton, };
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "hp-design-system",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.13",
|
4
4
|
"type": "module",
|
5
5
|
"main": "dist/hp-design-system.umd.js",
|
6
6
|
"scripts": {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
},
|
7
|
+
"dev": "vite",
|
8
|
+
"clean:cache": "rmdir /s /q node_modules\\.vite",
|
9
|
+
"build": "rimraf dist && vue-tsc && vite build",
|
10
|
+
"preview": "vite preview"
|
11
|
+
},
|
12
12
|
"dependencies": {
|
13
13
|
"@vitejs/plugin-vue": "^5.0.5",
|
14
14
|
"vue": "^3.4.29"
|
package/src/components/index.ts
CHANGED
@@ -1,14 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import * as components from '../components';
|
1
|
+
import HpButton from './Button.vue'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
});
|
8
|
-
}
|
9
|
-
|
10
|
-
import '../assets/main.scss';
|
11
|
-
|
12
|
-
export default { install };
|
13
|
-
|
14
|
-
export * from '../components';
|
3
|
+
export {
|
4
|
+
HpButton,
|
5
|
+
}
|
package/src/index.ts
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
-
import components from './components';
|
2
|
+
import * as components from './components';
|
3
3
|
|
4
4
|
function install(app: App) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
}
|
5
|
+
Object.keys(components).forEach(key => {
|
6
|
+
app.component(key, components[key as keyof typeof components]);
|
7
|
+
});
|
10
8
|
}
|
11
9
|
|
12
|
-
import '
|
10
|
+
// import '../assets/main.scss';
|
13
11
|
|
14
12
|
export default { install };
|
15
|
-
|
13
|
+
|
14
|
+
export * from './components';
|
package/dist/my-lib.es.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
const e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2
|
-
__proto__: null,
|
3
|
-
get default() {
|
4
|
-
return t;
|
5
|
-
}
|
6
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
7
|
-
function c(o) {
|
8
|
-
Object.keys(e).forEach((n) => {
|
9
|
-
o.component(n, e[n]);
|
10
|
-
});
|
11
|
-
}
|
12
|
-
const t = { install: c };
|
13
|
-
function l(o) {
|
14
|
-
for (const n in t)
|
15
|
-
t.hasOwnProperty(n) && o.component(n, t[n]);
|
16
|
-
}
|
17
|
-
const r = { install: l };
|
18
|
-
export {
|
19
|
-
r as default
|
20
|
-
};
|
package/dist/style.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
@font-face{font-family:myfont}.icon-heart:before{content:""}.global-example{color:red}
|