@zephyr_zz/zephyr-ui 0.0.7 → 0.0.9

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.
@@ -1,4 +1,7 @@
1
- declare const ZephyrUI: {
2
- install: (app: any) => void;
1
+ import { App } from 'vue';
2
+ import { default as ZzButton } from './button';
3
+ export { ZzButton };
4
+ declare const _default: {
5
+ install(app: App): void;
3
6
  };
4
- export default ZephyrUI;
7
+ export default _default;
@@ -1,7 +1,7 @@
1
- import { defineComponent as a, createElementBlock as c, openBlock as l, normalizeClass as p, renderSlot as u } from "vue";
1
+ import { defineComponent as c, createElementBlock as r, openBlock as l, normalizeClass as p, renderSlot as u } from "vue";
2
2
  const _ = {
3
3
  name: "ZzButton"
4
- }, m = /* @__PURE__ */ a({
4
+ }, m = /* @__PURE__ */ c({
5
5
  ..._,
6
6
  props: {
7
7
  type: {
@@ -10,7 +10,7 @@ const _ = {
10
10
  }
11
11
  },
12
12
  setup(t) {
13
- return (o, n) => (l(), c("button", {
13
+ return (o, n) => (l(), r("button", {
14
14
  class: p(["zz-button", `zz-button--${t.type}`])
15
15
  }, [
16
16
  u(o.$slots, "default", {}, void 0, !0)
@@ -18,18 +18,19 @@ const _ = {
18
18
  }
19
19
  }), d = (t, o) => {
20
20
  const n = t.__vccOpts || t;
21
- for (const [s, r] of o)
22
- n[s] = r;
21
+ for (const [s, a] of o)
22
+ n[s] = a;
23
23
  return n;
24
24
  }, e = /* @__PURE__ */ d(m, [["__scopeId", "data-v-7c55743a"]]);
25
25
  e.install = (t) => {
26
- t.component(e.name, e);
26
+ t.component("ZzButton", e);
27
27
  };
28
- const f = (t) => {
29
- t.use(e);
30
- }, z = {
31
- install: f
28
+ const f = [e], z = {
29
+ install(t) {
30
+ f.forEach((o) => t.component(o.name || "ZzButton", o));
31
+ }
32
32
  };
33
33
  export {
34
+ e as ZzButton,
34
35
  z as default
35
36
  };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ZephyrUI={},e.Vue))})(this,(function(e,t){"use strict";const c={name:"ZzButton"},r=t.defineComponent({...c,props:{type:{type:String,default:"primary"}},setup(n){return(o,u)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["zz-button",`zz-button--${n.type}`])},[t.renderSlot(o.$slots,"default",{},void 0,!0)],2))}}),s=((n,o)=>{const u=n.__vccOpts||n;for(const[a,d]of o)u[a]=d;return u})(r,[["__scopeId","data-v-7c55743a"]]);s.install=n=>{n.component("ZzButton",s)};const i=[s],p={install(n){i.forEach(o=>n.component(o.name||"ZzButton",o))}};e.ZzButton=s,e.default=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@zephyr_zz/zephyr-ui",
3
3
  "private": false,
4
- "types": "./dist/types/index.d.ts",
5
- "main": "./dist/zephyrUi.umd.js",
6
- "module": "./dist/zephyrUi.es.js",
4
+ "main": "dist/zephyr-ui.umd.js",
5
+ "module": "dist/zephyr-ui.es.js",
6
+ "types": "dist/types/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/zephyrUi.es.js",
10
- "require": "./dist/zephyrUi.umd.js"
9
+ "import": "./dist/zephyr-ui.es.js",
10
+ "require": "./dist/zephyr-ui.umd.js",
11
+ "types": "./dist/types/index.d.ts"
11
12
  }
12
13
  },
13
- "version": "0.0.7",
14
+ "version": "0.0.9",
14
15
  "type": "module",
15
16
  "scripts": {
16
17
  "dev": "vite",
@@ -1 +0,0 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.ZephyrUI=n(e.Vue))})(this,(function(e){"use strict";const n={name:"ZzButton"},c=e.defineComponent({...n,props:{type:{type:String,default:"primary"}},setup(t){return(s,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["zz-button",`zz-button--${t.type}`])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],2))}}),o=((t,s)=>{const r=t.__vccOpts||t;for(const[p,u]of s)r[p]=u;return r})(c,[["__scopeId","data-v-7c55743a"]]);return o.install=t=>{t.component(o.name,o)},{install:t=>{t.use(o)}}}));
File without changes