@choosemycompany/ui 0.0.3 → 0.0.4
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/cmc-ui.es.js +15 -12
- package/dist/cmc-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/cmc-ui.es.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as c, computed as
|
|
1
|
+
import { defineComponent as c, computed as h, createElementBlock as l, openBlock as s, normalizeClass as u, renderSlot as n, Fragment as p, createCommentVNode as d, unref as o, createVNode as b, createElementVNode as $, withCtx as k } from "vue";
|
|
2
2
|
const _ = {
|
|
3
3
|
primary: "primary"
|
|
4
4
|
}, y = {
|
|
5
5
|
default: "default"
|
|
6
6
|
}, g = {
|
|
7
7
|
medium: "medium"
|
|
8
|
-
},
|
|
8
|
+
}, C = ["disabled"], V = /* @__PURE__ */ c({
|
|
9
|
+
name: "CmcButton",
|
|
9
10
|
__name: "Button",
|
|
10
11
|
props: {
|
|
11
12
|
kind: { default: _.primary },
|
|
@@ -16,7 +17,7 @@ const _ = {
|
|
|
16
17
|
},
|
|
17
18
|
emits: ["click"],
|
|
18
19
|
setup(i, { emit: t }) {
|
|
19
|
-
const e = i, a = t,
|
|
20
|
+
const e = i, a = t, m = h(() => ({
|
|
20
21
|
button: !0,
|
|
21
22
|
[`button--${e.variant}`]: !0,
|
|
22
23
|
[`button--${e.kind}`]: !0,
|
|
@@ -27,12 +28,12 @@ const _ = {
|
|
|
27
28
|
};
|
|
28
29
|
return (v, z) => (s(), l("button", {
|
|
29
30
|
type: "button",
|
|
30
|
-
class: u(
|
|
31
|
+
class: u(m.value),
|
|
31
32
|
onClick: f,
|
|
32
33
|
disabled: e.disabled
|
|
33
34
|
}, [
|
|
34
35
|
n(v.$slots, "default")
|
|
35
|
-
], 10,
|
|
36
|
+
], 10, C));
|
|
36
37
|
}
|
|
37
38
|
}), r = {
|
|
38
39
|
h1: "h1",
|
|
@@ -41,17 +42,18 @@ const _ = {
|
|
|
41
42
|
h4: "h4",
|
|
42
43
|
h5: "h5",
|
|
43
44
|
h6: "h6"
|
|
44
|
-
},
|
|
45
|
+
}, B = /* @__PURE__ */ c({
|
|
46
|
+
name: "CmcHeading",
|
|
45
47
|
__name: "Heading",
|
|
46
48
|
props: {
|
|
47
49
|
level: {}
|
|
48
50
|
},
|
|
49
51
|
setup(i) {
|
|
50
|
-
const t = i, e =
|
|
52
|
+
const t = i, e = h(() => ({
|
|
51
53
|
heading: !0,
|
|
52
54
|
[`heading-${t.level}`]: !0
|
|
53
55
|
}));
|
|
54
|
-
return (a,
|
|
56
|
+
return (a, m) => (s(), l(p, null, [
|
|
55
57
|
o(r).h1 === t.level ? (s(), l("h1", {
|
|
56
58
|
key: 0,
|
|
57
59
|
class: u(e.value)
|
|
@@ -90,11 +92,12 @@ const _ = {
|
|
|
90
92
|
], 2)) : d("", !0)
|
|
91
93
|
], 64));
|
|
92
94
|
}
|
|
93
|
-
}),
|
|
95
|
+
}), H = /* @__PURE__ */ c({
|
|
96
|
+
name: "CmcTitle",
|
|
94
97
|
__name: "Title",
|
|
95
98
|
setup(i) {
|
|
96
99
|
return (t, e) => (s(), l(p, null, [
|
|
97
|
-
b(
|
|
100
|
+
b(B, {
|
|
98
101
|
level: o(r).h1
|
|
99
102
|
}, {
|
|
100
103
|
default: k(() => [
|
|
@@ -108,6 +111,6 @@ const _ = {
|
|
|
108
111
|
});
|
|
109
112
|
export {
|
|
110
113
|
V as Button,
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
B as Heading,
|
|
115
|
+
H as Title
|
|
113
116
|
};
|
package/dist/cmc-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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["cmc-ui"]={},n.Vue))})(this,function(n,e){"use strict";const
|
|
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["cmc-ui"]={},n.Vue))})(this,function(n,e){"use strict";const c={primary:"primary"},i={default:"default"},m={medium:"medium"},f=["disabled"],p=e.defineComponent({name:"CmcButton",__name:"Button",props:{kind:{default:c.primary},variant:{default:i.default},size:{default:m.medium},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(s,{emit:l}){const t=s,o=l,d=e.computed(()=>({button:!0,[`button--${t.variant}`]:!0,[`button--${t.kind}`]:!0,[`button--${t.size}`]:!0,"button--disabled":t.disabled})),u=()=>{t.disabled||o("click",1)};return(k,B)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(d.value),onClick:u,disabled:t.disabled},[e.renderSlot(k.$slots,"default")],10,f))}}),a={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},r=e.defineComponent({name:"CmcHeading",__name:"Heading",props:{level:{}},setup(s){const l=s,t=e.computed(()=>({heading:!0,[`heading-${l.level}`]:!0}));return(o,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(a).h1===l.level?(e.openBlock(),e.createElementBlock("h1",{key:0,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h2===l.level?(e.openBlock(),e.createElementBlock("h2",{key:1,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h3===l.level?(e.openBlock(),e.createElementBlock("h3",{key:2,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h4===l.level?(e.openBlock(),e.createElementBlock("h4",{key:3,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h5===l.level?(e.openBlock(),e.createElementBlock("h5",{key:4,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0),e.unref(a).h6===l.level?(e.openBlock(),e.createElementBlock("h6",{key:5,class:e.normalizeClass(t.value)},[e.renderSlot(o.$slots,"default")],2)):e.createCommentVNode("",!0)],64))}}),h=e.defineComponent({name:"CmcTitle",__name:"Title",setup(s){return(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{level:e.unref(a).h1},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["level"]),t[0]||(t[0]=e.createElementVNode("hr",null,null,-1))],64))}});n.Button=p,n.Heading=r,n.Title=h,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|