@choosemycompany/ui 0.0.8 → 0.0.10

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.js CHANGED
@@ -1,17 +1,20 @@
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 C, withCtx as $ } from "vue";
2
- import './assets/index.css';const k = {
3
- primary: "primary"
1
+ import { defineComponent as c, computed as h, createElementBlock as l, openBlock as s, normalizeClass as o, renderSlot as n, Fragment as p, createCommentVNode as d, unref as u, createVNode as b, createElementVNode as y, withCtx as C } from "vue";
2
+ import './assets/index.css';const $ = {
3
+ primary: "primary",
4
+ secondary: "secondary"
5
+ }, k = {
6
+ default: "default",
7
+ danger: "danger"
4
8
  }, _ = {
5
- default: "default"
6
- }, y = {
9
+ small: "small",
7
10
  medium: "medium"
8
11
  }, g = ["disabled"], V = /* @__PURE__ */ c({
9
12
  name: "CmcButton",
10
13
  __name: "CmcButton",
11
14
  props: {
12
- kind: { default: k.primary },
13
- variant: { default: _.default },
14
- size: { default: y.medium },
15
+ kind: { default: $.primary },
16
+ variant: { default: k.default },
17
+ size: { default: _.medium },
15
18
  disabled: { type: Boolean, default: !1 },
16
19
  loading: { type: Boolean, default: !1 }
17
20
  },
@@ -28,7 +31,7 @@ import './assets/index.css';const k = {
28
31
  };
29
32
  return (v, z) => (s(), l("button", {
30
33
  type: "button",
31
- class: u(m.value),
34
+ class: o(m.value),
32
35
  onClick: f,
33
36
  disabled: e.disabled
34
37
  }, [
@@ -54,39 +57,39 @@ import './assets/index.css';const k = {
54
57
  [`heading-${t.level}`]: !0
55
58
  }));
56
59
  return (a, m) => (s(), l(p, null, [
57
- o(r).h1 === t.level ? (s(), l("h1", {
60
+ u(r).h1 === t.level ? (s(), l("h1", {
58
61
  key: 0,
59
- class: u(e.value)
62
+ class: o(e.value)
60
63
  }, [
61
64
  n(a.$slots, "default")
62
65
  ], 2)) : d("", !0),
63
- o(r).h2 === t.level ? (s(), l("h2", {
66
+ u(r).h2 === t.level ? (s(), l("h2", {
64
67
  key: 1,
65
- class: u(e.value)
68
+ class: o(e.value)
66
69
  }, [
67
70
  n(a.$slots, "default")
68
71
  ], 2)) : d("", !0),
69
- o(r).h3 === t.level ? (s(), l("h3", {
72
+ u(r).h3 === t.level ? (s(), l("h3", {
70
73
  key: 2,
71
- class: u(e.value)
74
+ class: o(e.value)
72
75
  }, [
73
76
  n(a.$slots, "default")
74
77
  ], 2)) : d("", !0),
75
- o(r).h4 === t.level ? (s(), l("h4", {
78
+ u(r).h4 === t.level ? (s(), l("h4", {
76
79
  key: 3,
77
- class: u(e.value)
80
+ class: o(e.value)
78
81
  }, [
79
82
  n(a.$slots, "default")
80
83
  ], 2)) : d("", !0),
81
- o(r).h5 === t.level ? (s(), l("h5", {
84
+ u(r).h5 === t.level ? (s(), l("h5", {
82
85
  key: 4,
83
- class: u(e.value)
86
+ class: o(e.value)
84
87
  }, [
85
88
  n(a.$slots, "default")
86
89
  ], 2)) : d("", !0),
87
- o(r).h6 === t.level ? (s(), l("h6", {
90
+ u(r).h6 === t.level ? (s(), l("h6", {
88
91
  key: 5,
89
- class: u(e.value)
92
+ class: o(e.value)
90
93
  }, [
91
94
  n(a.$slots, "default")
92
95
  ], 2)) : d("", !0)
@@ -98,19 +101,23 @@ import './assets/index.css';const k = {
98
101
  setup(i) {
99
102
  return (t, e) => (s(), l(p, null, [
100
103
  b(B, {
101
- level: o(r).h1
104
+ level: u(r).h1
102
105
  }, {
103
- default: $(() => [
106
+ default: C(() => [
104
107
  n(t.$slots, "default")
105
108
  ]),
106
109
  _: 3
107
110
  }, 8, ["level"]),
108
- e[0] || (e[0] = C("hr", null, null, -1))
111
+ e[0] || (e[0] = y("hr", null, null, -1))
109
112
  ], 64));
110
113
  }
111
114
  });
112
115
  export {
113
116
  V as CmcButton,
114
117
  B as CmcHeading,
115
- H as CmcTitle
118
+ H as CmcTitle,
119
+ $ as buttonKindOptions,
120
+ _ as buttonSizeOptions,
121
+ k as buttonVariantOptions,
122
+ r as headingLevelOptions
116
123
  };