@zephyr_zz/zephyr-ui 0.0.13 → 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.
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .zz-button{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary{background:#409eff;color:#fff}.zz-button--success{background:#67c23a;color:#fff}.zz-button--warning{background:#e6a23c;color:#fff}.zz-button--danger{background:#f56c6c;color:#fff}
1
+ .zz-button[data-v-7c55743a]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary[data-v-7c55743a]{background:#409eff;color:#fff}.zz-button--success[data-v-7c55743a]{background:#67c23a;color:#fff}.zz-button--warning[data-v-7c55743a]{background:#e6a23c;color:#fff}.zz-button--danger[data-v-7c55743a]{background:#f56c6c;color:#fff}
@@ -1,9 +1,9 @@
1
1
  import './index.css';
2
- import { defineComponent as e, createElementBlock as a, openBlock as s, normalizeClass as l, renderSlot as r } from "vue";
3
- const c = {
2
+ import { defineComponent as c, createElementBlock as r, openBlock as l, normalizeClass as p, renderSlot as u } from "vue";
3
+ const _ = {
4
4
  name: "ZzButton"
5
- }, o = /* @__PURE__ */ e({
6
- ...c,
5
+ }, m = /* @__PURE__ */ c({
6
+ ..._,
7
7
  props: {
8
8
  type: {
9
9
  type: String,
@@ -11,22 +11,27 @@ const c = {
11
11
  }
12
12
  },
13
13
  setup(t) {
14
- return (n, u) => (s(), a("button", {
15
- class: l(["zz-button", `zz-button--${t.type}`])
14
+ return (o, n) => (l(), r("button", {
15
+ class: p(["zz-button", `zz-button--${t.type}`])
16
16
  }, [
17
- r(n.$slots, "default")
17
+ u(o.$slots, "default", {}, void 0, !0)
18
18
  ], 2));
19
19
  }
20
- });
21
- o.install = (t) => {
22
- t.component("ZzButton", o);
20
+ }), d = (t, o) => {
21
+ const n = t.__vccOpts || t;
22
+ for (const [s, a] of o)
23
+ n[s] = a;
24
+ return n;
25
+ }, e = /* @__PURE__ */ d(m, [["__scopeId", "data-v-7c55743a"]]);
26
+ e.install = (t) => {
27
+ t.component("ZzButton", e);
23
28
  };
24
- const p = [o], i = {
29
+ const f = [e], z = {
25
30
  install(t) {
26
- p.forEach((n) => t.component(n.name || "ZzButton", n));
31
+ f.forEach((o) => t.component(o.name || "ZzButton", o));
27
32
  }
28
33
  };
29
34
  export {
30
- o as ZzButton,
31
- i as default
35
+ e as ZzButton,
36
+ z as default
32
37
  };
@@ -1,2 +1,2 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.ZephyrUI={},t.Vue))})(this,(function(t,e){"use strict";var u=document.createElement("style");u.textContent=`.zz-button{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary{background:#409eff;color:#fff}.zz-button--success{background:#67c23a;color:#fff}.zz-button--warning{background:#e6a23c;color:#fff}.zz-button--danger{background:#f56c6c;color:#fff}
2
- /*$vite$:1*/`,document.head.appendChild(u);const c={name:"ZzButton"},o=e.defineComponent({...c,props:{type:{type:String,default:"primary"}},setup(n){return(r,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["zz-button",`zz-button--${n.type}`])},[e.renderSlot(r.$slots,"default")],2))}});o.install=n=>{n.component("ZzButton",o)};const f=[o],i={install(n){f.forEach(r=>n.component(r.name||"ZzButton",r))}};t.ZzButton=o,t.default=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
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";var r=document.createElement("style");r.textContent=`.zz-button[data-v-7c55743a]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:.2s}.zz-button--primary[data-v-7c55743a]{background:#409eff;color:#fff}.zz-button--success[data-v-7c55743a]{background:#67c23a;color:#fff}.zz-button--warning[data-v-7c55743a]{background:#e6a23c;color:#fff}.zz-button--danger[data-v-7c55743a]{background:#f56c6c;color:#fff}
2
+ /*$vite$:1*/`,document.head.appendChild(r);const u={name:"ZzButton"},d=t.defineComponent({...u,props:{type:{type:String,default:"primary"}},setup(n){return(o,c)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["zz-button",`zz-button--${n.type}`])},[t.renderSlot(o.$slots,"default",{},void 0,!0)],2))}}),a=((n,o)=>{const c=n.__vccOpts||n;for(const[i,p]of o)c[i]=p;return c})(d,[["__scopeId","data-v-7c55743a"]]);a.install=n=>{n.component("ZzButton",a)};const s=[a],f={install(n){s.forEach(o=>n.component(o.name||"ZzButton",o))}};e.ZzButton=a,e.default=f,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "types": "./dist/types/index.d.ts"
12
12
  }
13
13
  },
14
- "version": "0.0.13",
14
+ "version": "0.0.14",
15
15
  "type": "module",
16
16
  "scripts": {
17
17
  "dev": "vite",