hp-design-system 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.
@@ -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: string;
3
- $props: {
4
- readonly text?: string | undefined;
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 { App } from 'vue';
2
- declare function install(app: App): void;
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, };
@@ -1,6 +1,5 @@
1
1
  import { App } from 'vue';
2
2
  declare function install(app: App): void;
3
- import './assets/main.scss';
4
3
  declare const _default: {
5
4
  install: typeof install;
6
5
  };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "hp-design-system",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "main": "dist/hp-design-system.umd.js",
6
6
  "scripts": {
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
- },
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"
@@ -27,11 +27,11 @@
27
27
  "src",
28
28
  "dist"
29
29
  ],
30
- "module": "./disthp-design-system.es.js",
30
+ "module": "./dist/hp-design-system.es.js",
31
31
  "exports": {
32
32
  ".": {
33
33
  "types": "./dist/types/index.d.ts",
34
- "import": "./disthp-design-system.es.js"
34
+ "import": "./dist/hp-design-system.es.js"
35
35
  },
36
36
  "./dist/style.css": "./dist/style.css"
37
37
  }
@@ -2,9 +2,10 @@
2
2
  <button>{{ text }}</button>
3
3
  </template>
4
4
 
5
- <script setup>
5
+ <script setup lang="ts">
6
+ import { defineProps } from 'vue';
6
7
 
7
8
  const props = defineProps({
8
9
  text: { type: String, required: true }
9
- })
10
- </script>
10
+ });
11
+ </script>
@@ -1,14 +1,5 @@
1
- import { App } from 'vue';
2
- import * as components from '../components';
1
+ import HpButton from './Button.vue'
3
2
 
4
- function install(app: App) {
5
- Object.keys(components).forEach(key => {
6
- app.component(key, components[key as keyof typeof components]);
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
- for (const key in components) {
6
- if (components.hasOwnProperty(key)) {
7
- app.component(key, (components as any)[key]);
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 './assets/main.scss';
10
+ // import '../assets/main.scss';
13
11
 
14
12
  export default { install };
15
- export * from './components';
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}