watermelon-ui-kit 0.1.2 → 0.1.3
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.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<import('./Tag/index.vue').TagPropsType> & Readonly<{
|
|
5
|
-
onClose?: () => any;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
WheelLoader: import('vue').DefineComponent<import('./WheelLoader/index.vue').LoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./WheelLoader/index.vue').LoaderProps> & Readonly<{}>, {
|
|
8
|
-
width: string;
|
|
9
|
-
height: string;
|
|
10
|
-
speed: string;
|
|
11
|
-
color: string;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
1
|
+
import { default as Tag } from './Tag/index.vue';
|
|
2
|
+
import { default as WheelLoader } from './WheelLoader/index.vue';
|
|
3
|
+
export { Tag, WheelLoader, };
|
|
15
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,iBAAiB,CAAA;AACjC,OAAO,WAAW,MAAM,yBAAyB,CAAA;AAEjD,OAAO,EACL,GAAG,EACH,WAAW,GACZ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, resolveComponent as
|
|
1
|
+
import { defineComponent as c, resolveComponent as h, createElementBlock as n, openBlock as s, normalizeClass as C, createBlock as _, createCommentVNode as p, toDisplayString as l, withCtx as f, createElementVNode as i, useCssVars as g, Fragment as w, renderList as k } from "vue";
|
|
2
2
|
const v = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "mr-1 text-sm"
|
|
@@ -18,16 +18,16 @@ const v = {
|
|
|
18
18
|
NEW: 3
|
|
19
19
|
}, o = r.tag.status === e.NEW;
|
|
20
20
|
return (t, d) => {
|
|
21
|
-
const u =
|
|
21
|
+
const u = h("router-link");
|
|
22
22
|
return s(), n("div", {
|
|
23
|
-
class:
|
|
23
|
+
class: C(["tag flex w-fit items-center font-rubik px-2 py-1 rounded-xs", o ? "text-primary-green border border-solid" : "bg-primary-green text-white"])
|
|
24
24
|
}, [
|
|
25
|
-
o ? (s(), n("span", v, l(t.tag.name), 1)) : (s(),
|
|
25
|
+
o ? (s(), n("span", v, l(t.tag.name), 1)) : (s(), _(u, {
|
|
26
26
|
key: 1,
|
|
27
27
|
to: `/dashboard/tags/${t.tag.name}`,
|
|
28
28
|
class: "mr-1 text-sm hover:underline"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
30
|
+
default: f(() => [
|
|
31
31
|
i("span", null, l(t.tag.name), 1)
|
|
32
32
|
]),
|
|
33
33
|
_: 1
|
|
@@ -41,7 +41,7 @@ const v = {
|
|
|
41
41
|
fill: "none",
|
|
42
42
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43
43
|
class: "inline-block cursor-pointer",
|
|
44
|
-
onClick: d[0] || (d[0] = (
|
|
44
|
+
onClick: d[0] || (d[0] = (B) => t.$emit("close"))
|
|
45
45
|
}, [
|
|
46
46
|
i("path", {
|
|
47
47
|
d: `M8.49999 7.66407L5.07851 4.24259C4.96961 4.1337 4.82192 4.07252 4.66793 4.07252C4.51393 4.07252 4.36624
|
|
@@ -64,7 +64,7 @@ const v = {
|
|
|
64
64
|
for (const [o, t] of e)
|
|
65
65
|
a[o] = t;
|
|
66
66
|
return a;
|
|
67
|
-
},
|
|
67
|
+
}, N = /* @__PURE__ */ m(b, [["__scopeId", "data-v-56852f88"]]), L = { class: "loader-wrapper relative" }, A = /* @__PURE__ */ c({
|
|
68
68
|
__name: "index",
|
|
69
69
|
props: {
|
|
70
70
|
width: { default: "21px" },
|
|
@@ -78,17 +78,15 @@ const v = {
|
|
|
78
78
|
c6f689be: e.height,
|
|
79
79
|
"1d90de29": e.color,
|
|
80
80
|
"1e72af0d": e.speed
|
|
81
|
-
})), (e, a) => (s(), n("div",
|
|
81
|
+
})), (e, a) => (s(), n("div", L, [
|
|
82
82
|
(s(), n(w, null, k(8, (o) => i("div", {
|
|
83
83
|
key: o,
|
|
84
84
|
class: "spoke absolute"
|
|
85
85
|
})), 64))
|
|
86
86
|
]));
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
89
|
-
Tag: L,
|
|
90
|
-
WheelLoader: N
|
|
91
|
-
};
|
|
88
|
+
}), E = /* @__PURE__ */ m(A, [["__scopeId", "data-v-c240f1d2"]]);
|
|
92
89
|
export {
|
|
93
|
-
|
|
90
|
+
N as Tag,
|
|
91
|
+
E as WheelLoader
|
|
94
92
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["watermelon-ui-kit"]={},n.Vue))})(this,function(n,e){"use strict";const c={key:0,class:"mr-1 text-sm"},d={key:2,class:"rate px-2 py-1 rounded-xl text-xs font-medium"},p=["fill"],m=e.defineComponent({__name:"index",props:{tag:{},closable:{type:Boolean},showRate:{type:Boolean}},emits:["close"],setup(r){const t={NEW:3},s=r.tag.status===t.NEW;return(o,i)=>{const C=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tag flex w-fit items-center font-rubik px-2 py-1 rounded-xs",s?"text-primary-green border border-solid":"bg-primary-green text-white"])},[s?(e.openBlock(),e.createElementBlock("span",c,e.toDisplayString(o.tag.name),1)):(e.openBlock(),e.createBlock(C,{key:1,to:`/dashboard/tags/${o.tag.name}`,class:"mr-1 text-sm hover:underline"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(o.tag.name),1)]),_:1},8,["to"])),o.showRate&&!s?(e.openBlock(),e.createElementBlock("span",d,e.toDisplayString(o.tag.rate),1)):e.createCommentVNode("",!0),o.closable?(e.openBlock(),e.createElementBlock("svg",{key:3,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"inline-block cursor-pointer",onClick:i[0]||(i[0]=g=>o.$emit("close"))},[e.createElementVNode("path",{d:`M8.49999 7.66407L5.07851 4.24259C4.96961 4.1337 4.82192 4.07252 4.66793 4.07252C4.51393 4.07252 4.36624
|
|
2
2
|
4.1337 4.25735 4.24259C4.14846 4.35148 4.08728 4.49917 4.08728 4.65317C4.08728 4.80716 4.14846 4.95485 4.25735
|
|
3
3
|
5.06375L7.67883 8.48523L4.25735 11.9067C4.14846 12.0156 4.08728 12.1633 4.08728 12.3173C4.08728 12.4713 4.14846
|
|
4
4
|
12.619 4.25735 12.7279C4.36624 12.8368 4.51393 12.8979 4.66793 12.8979C4.82192 12.8979 4.96961 12.8368 5.07851
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
12.6328 12.8349 12.7426 12.7279C12.8515 12.619 12.9127 12.4713 12.9127 12.3173C12.9127 12.1633 12.8515
|
|
7
7
|
12.0156 12.7426 11.9067L9.32115 8.48523L12.7426 5.06375C12.8515 4.95485 12.9127 4.80716 12.9127
|
|
8
8
|
4.65317C12.9127 4.49917 12.8515 4.35148 12.7426 4.24259C12.6328 4.13556 12.4854 4.07566 12.3321
|
|
9
|
-
4.07566C12.1787 4.07566 12.0313 4.13556 11.9215 4.24259L8.49999 7.66407Z`,fill:
|
|
9
|
+
4.07566C12.1787 4.07566 12.0313 4.13556 11.9215 4.24259L8.49999 7.66407Z`,fill:s?"#01ABAA":"white"},null,8,p)])):e.createCommentVNode("",!0)],2)}}}),a=(r,t)=>{const l=r.__vccOpts||r;for(const[s,o]of t)l[s]=o;return l},f=a(m,[["__scopeId","data-v-56852f88"]]),k={class:"loader-wrapper relative"},h=a(e.defineComponent({__name:"index",props:{width:{default:"21px"},height:{default:"21px"},speed:{default:"1.5s"},color:{default:"#01ABAA"}},setup(r){return e.useCssVars(t=>({"1ea7dc8c":t.width,c6f689be:t.height,"1d90de29":t.color,"1e72af0d":t.speed})),(t,l)=>(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(8,s=>e.createElementVNode("div",{key:s,class:"spoke absolute"})),64))]))}}),[["__scopeId","data-v-c240f1d2"]]);n.Tag=f,n.WheelLoader=h,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|