adverich-kun-ui 0.1.79 → 0.1.80

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.
Files changed (36) hide show
  1. package/dist/adverich-kun-ui.css +1 -1
  2. package/dist/components/KunAlert/src/components/KunAlert.vue.js +18 -18
  3. package/dist/components/KunAppbar/src/components/KunAppbar.vue.js +37 -33
  4. package/dist/components/KunAppbarTitle/src/components/KunAppbarTitle.vue.js +9 -9
  5. package/dist/components/KunBudge/src/components/KunBudge.vue.js +19 -14
  6. package/dist/components/KunCard/src/components/KunCard.vue.js +35 -41
  7. package/dist/components/KunCardActions/src/components/KunCardActions.vue.js +13 -14
  8. package/dist/components/KunCardItem/src/components/KunCardItem.vue.js +13 -14
  9. package/dist/components/KunCardSubtitle/src/components/KunCardSubtitle.vue.js +12 -15
  10. package/dist/components/KunCardText/src/components/KunCardText.vue.js +14 -15
  11. package/dist/components/KunCardTitle/src/components/KunCardTitle.vue.js +40 -44
  12. package/dist/components/KunChip/src/components/KunChip.vue.js +35 -35
  13. package/dist/components/KunChip/src/composables/useChip.js +5 -5
  14. package/dist/components/KunCol/src/components/KunCol.vue.js +9 -11
  15. package/dist/components/KunContainer/src/components/KunContainer.vue.js +14 -25
  16. package/dist/components/KunDivider/src/components/KunDivider.vue.js +11 -11
  17. package/dist/components/KunForm/src/components/KunForm.vue.js +17 -17
  18. package/dist/components/KunIcon/src/components/KunIcon.vue.js +19 -19
  19. package/dist/components/KunList/src/components/KunList.vue.js +36 -31
  20. package/dist/components/KunListGroup/src/components/KunListGroup.vue.js +75 -23
  21. package/dist/components/KunListImg/src/components/KunListImg.vue.js +17 -17
  22. package/dist/components/KunListItem/src/components/KunListItem.vue.js +37 -29
  23. package/dist/components/KunListItemAction/src/components/KunListItemAction.vue.js +25 -18
  24. package/dist/components/KunListItemAvatar/src/components/KunListItemAvatar.vue.js +42 -20
  25. package/dist/components/KunListItemSubtitle/src/components/KunListItemSubtitle.vue.js +26 -17
  26. package/dist/components/KunListItemText/src/components/KunListItemText.vue.js +18 -19
  27. package/dist/components/KunListItemTitle/src/components/KunListItemTitle.vue.js +17 -18
  28. package/dist/components/KunListSubheader/src/components/KunListSubheader.vue.js +25 -17
  29. package/dist/components/KunLoaderCircular/src/components/KunLoaderCircular.vue.js +4 -4
  30. package/dist/components/KunRow/src/components/KunRow.vue.js +8 -10
  31. package/dist/components/KunSlider/src/components/KunSlider.vue.js +22 -23
  32. package/dist/components/KunSpacer/src/components/KunSpacer.vue.js +5 -5
  33. package/dist/components/KunSwitch/src/components/KunSwitch.vue.js +25 -25
  34. package/dist/components/KunTooltip/src/components/KunTooltip.vue.js +26 -26
  35. package/dist/index.js +24 -24
  36. package/package.json +1 -1
@@ -1,23 +1,22 @@
1
- import { useAttrs as l, computed as a, createElementBlock as n, openBlock as p, normalizeClass as c, renderSlot as u } from "vue";
2
- import { kunCardItemProps as m } from "../composables/kunCardItemProps.js";
3
- const x = {
1
+ import { computed as s, createElementBlock as l, openBlock as n, mergeProps as p, renderSlot as a } from "vue";
2
+ import { kunCardItemProps as c } from "../composables/kunCardItemProps.js";
3
+ const d = {
4
4
  __name: "KunCardItem",
5
- props: m,
6
- setup(t) {
7
- const e = t, r = l(), s = a(() => [
5
+ props: c,
6
+ setup(o) {
7
+ const e = o, t = s(() => [
8
8
  "flex",
9
9
  "flex-col",
10
10
  e.dense ? "py-1 px-2" : "py-3 px-4",
11
- e.gap,
12
- r.class
11
+ e.gap
13
12
  ].filter(Boolean));
14
- return (o, f) => (p(), n("div", {
15
- class: c(["w-full", s.value])
16
- }, [
17
- u(o.$slots, "default")
18
- ], 2));
13
+ return (r, m) => (n(), l("div", p({
14
+ class: ["w-full", t.value]
15
+ }, r.$attrs), [
16
+ a(r.$slots, "default")
17
+ ], 16));
19
18
  }
20
19
  };
21
20
  export {
22
- x as default
21
+ d as default
23
22
  };
@@ -1,22 +1,19 @@
1
- import { useAttrs as l, computed as a, createElementBlock as n, openBlock as c, normalizeClass as u, renderSlot as p, createTextVNode as i, toDisplayString as m } from "vue";
2
- import { kunCardSubtitleProps as d } from "../composables/kunCardSubtitleProps.js";
1
+ import { computed as s, createElementBlock as l, openBlock as n, mergeProps as a, renderSlot as p, createTextVNode as u, toDisplayString as c } from "vue";
2
+ import { kunCardSubtitleProps as i } from "../composables/kunCardSubtitleProps.js";
3
3
  const S = {
4
4
  __name: "KunCardSubtitle",
5
- props: d,
6
- setup(s) {
7
- const t = s, o = l(), r = a(() => [
8
- t.color,
9
- t.dense ? "text-xs" : "text-sm",
10
- t.fontWeight,
11
- o.class
5
+ props: i,
6
+ setup(o) {
7
+ const e = o, r = s(() => [
8
+ e.color,
9
+ e.dense ? "text-xs" : "text-sm",
10
+ e.fontWeight
12
11
  ].filter(Boolean));
13
- return (e, f) => (c(), n("div", {
14
- class: u(r.value)
15
- }, [
16
- p(e.$slots, "default", {}, () => [
17
- i(m(e.subtitle), 1)
12
+ return (t, m) => (n(), l("div", a({ class: r.value }, t.$attrs), [
13
+ p(t.$slots, "default", {}, () => [
14
+ u(c(t.subtitle), 1)
18
15
  ])
19
- ], 2));
16
+ ], 16));
20
17
  }
21
18
  };
22
19
  export {
@@ -1,23 +1,22 @@
1
- import { useAttrs as a, computed as l, createElementBlock as n, openBlock as c, normalizeClass as p, renderSlot as u, createTextVNode as m, toDisplayString as d } from "vue";
2
- import { kunCardTextProps as i } from "../composables/kunCardTextProps.js";
3
- const C = {
1
+ import { computed as s, createElementBlock as a, openBlock as n, mergeProps as l, renderSlot as p, createTextVNode as c, toDisplayString as m } from "vue";
2
+ import { kunCardTextProps as u } from "../composables/kunCardTextProps.js";
3
+ const f = {
4
4
  __name: "KunCardText",
5
- props: i,
6
- setup(s) {
7
- const t = s, o = a(), r = l(() => [
5
+ props: u,
6
+ setup(r) {
7
+ const t = r, o = s(() => [
8
8
  t.color,
9
- t.dense ? "text-xs" : "text-sm",
10
- o.class
9
+ t.dense ? "text-xs" : "text-sm"
11
10
  ].filter(Boolean));
12
- return (e, x) => (c(), n("div", {
13
- class: p(["block", r.value])
14
- }, [
15
- u(e.$slots, "default", {}, () => [
16
- m(d(e.text), 1)
11
+ return (e, d) => (n(), a("div", l({
12
+ class: ["block", o.value]
13
+ }, e.$attrs), [
14
+ p(e.$slots, "default", {}, () => [
15
+ c(m(e.text), 1)
17
16
  ])
18
- ], 2));
17
+ ], 16));
19
18
  }
20
19
  };
21
20
  export {
22
- C as default
21
+ f as default
23
22
  };
@@ -1,73 +1,69 @@
1
- import { useAttrs as $, computed as n, createElementBlock as r, openBlock as s, normalizeStyle as v, normalizeClass as d, createCommentVNode as o, createElementVNode as i, renderSlot as l, createBlock as p, createTextVNode as u, toDisplayString as c } from "vue";
2
- import { kunCardTitleProps as C } from "../composables/kunCardTitleProps.js";
1
+ import { computed as n, createElementBlock as r, openBlock as o, mergeProps as $, createCommentVNode as s, createElementVNode as l, renderSlot as d, createBlock as p, normalizeClass as a, createTextVNode as i, toDisplayString as u } from "vue";
2
+ import { kunCardTitleProps as b } from "../composables/kunCardTitleProps.js";
3
3
  import m from "../../../KunIcon/src/components/KunIcon.vue.js";
4
4
  /* empty css */
5
- import _ from "../../../../_virtual/_plugin-vue_export-helper.js";
6
- const g = {
5
+ import v from "../../../../_virtual/_plugin-vue_export-helper.js";
6
+ const C = {
7
7
  key: 0,
8
8
  class: "kun-card-title__prepend"
9
- }, w = { class: "kun-card-title__content" }, B = {
9
+ }, g = { class: "kun-card-title__content" }, _ = {
10
10
  key: 1,
11
11
  class: "kun-card-title__append"
12
- }, S = {
12
+ }, w = {
13
13
  __name: "KunCardTitle",
14
- props: C,
15
- setup(h) {
16
- const a = $(), t = h, f = n(() => [
14
+ props: b,
15
+ setup(c) {
16
+ const t = c, h = n(() => [
17
17
  "kun-card-title",
18
18
  t.dense ? "py-1 px-2 text-sm" : "py-3 px-4 text-base",
19
19
  t.flat ? "shadow-none" : "shadow",
20
20
  t.rounded === !0 ? "rounded-md" : t.rounded ? `rounded-${t.rounded}` : "",
21
21
  t.bgColor,
22
- t.textColor,
23
- a.class
24
- // External class
25
- ].filter(Boolean)), y = n(() => ({
22
+ t.textColor
23
+ ].filter(Boolean)), f = n(() => ({
26
24
  height: typeof t.height == "number" ? `${t.height}px` : t.height,
27
- width: typeof t.width == "number" ? `${t.width}px` : t.width,
28
- ...a.style
29
- // External style
30
- })), k = n(() => t.dense ? "font-medium" : "font-semibold"), b = n(() => "text-xs opacity-75 mt-1");
31
- return (e, T) => (s(), r("div", {
32
- class: d(f.value),
33
- style: v(y.value)
34
- }, [
35
- e.$slots.prepend || e.prepend ? (s(), r("div", g, [
36
- l(e.$slots, "prepend", {}, () => [
37
- e.prepend ? (s(), p(m, {
25
+ width: typeof t.width == "number" ? `${t.width}px` : t.width
26
+ })), k = n(() => t.dense ? "font-medium" : "font-semibold"), y = n(() => "text-xs opacity-75 mt-1");
27
+ return (e, B) => (o(), r("div", $({
28
+ class: h.value,
29
+ style: f.value
30
+ }, e.$attrs), [
31
+ e.$slots.prepend || e.prepend ? (o(), r("div", C, [
32
+ d(e.$slots, "prepend", {}, () => [
33
+ e.prepend ? (o(), p(m, {
38
34
  key: 0,
39
35
  icon: e.prepend
40
- }, null, 8, ["icon"])) : o("", !0)
36
+ }, null, 8, ["icon"])) : s("", !0)
41
37
  ], !0)
42
- ])) : o("", !0),
43
- i("div", w, [
44
- i("h3", {
45
- class: d(k.value)
38
+ ])) : s("", !0),
39
+ l("div", g, [
40
+ l("h3", {
41
+ class: a(k.value)
46
42
  }, [
47
- l(e.$slots, "default", {}, () => [
48
- u(c(e.title), 1)
43
+ d(e.$slots, "default", {}, () => [
44
+ i(u(e.title), 1)
49
45
  ], !0)
50
46
  ], 2),
51
- e.$slots.subtitle || e.subtitle ? (s(), r("div", {
47
+ e.$slots.subtitle || e.subtitle ? (o(), r("div", {
52
48
  key: 0,
53
- class: d(b.value)
49
+ class: a(y.value)
54
50
  }, [
55
- l(e.$slots, "subtitle", {}, () => [
56
- u(c(e.subtitle), 1)
51
+ d(e.$slots, "subtitle", {}, () => [
52
+ i(u(e.subtitle), 1)
57
53
  ], !0)
58
- ], 2)) : o("", !0)
54
+ ], 2)) : s("", !0)
59
55
  ]),
60
- e.$slots.append || e.append ? (s(), r("div", B, [
61
- l(e.$slots, "append", {}, () => [
62
- e.append ? (s(), p(m, {
56
+ e.$slots.append || e.append ? (o(), r("div", _, [
57
+ d(e.$slots, "append", {}, () => [
58
+ e.append ? (o(), p(m, {
63
59
  key: 0,
64
60
  icon: e.append
65
- }, null, 8, ["icon"])) : o("", !0)
61
+ }, null, 8, ["icon"])) : s("", !0)
66
62
  ], !0)
67
- ])) : o("", !0)
68
- ], 6));
63
+ ])) : s("", !0)
64
+ ], 16));
69
65
  }
70
- }, A = /* @__PURE__ */ _(S, [["__scopeId", "data-v-b4ca8b81"]]);
66
+ }, K = /* @__PURE__ */ v(w, [["__scopeId", "data-v-31498302"]]);
71
67
  export {
72
- A as default
68
+ K as default
73
69
  };
@@ -1,76 +1,76 @@
1
- import { useAttrs as I, computed as V, createBlock as p, openBlock as o, resolveDynamicComponent as _, unref as s, mergeProps as B, withModifiers as u, withCtx as N, createElementBlock as r, createCommentVNode as t, createElementVNode as g, renderSlot as l, createTextVNode as w, toDisplayString as A, createVNode as D } from "vue";
2
- import { kunChipProps as E } from "../composables/kunChipProps.js";
3
- import { useChip as K } from "../composables/useChip.js";
1
+ import { useAttrs as _, computed as d, createBlock as r, openBlock as o, resolveDynamicComponent as g, unref as s, mergeProps as B, withModifiers as u, withCtx as N, createElementBlock as p, createCommentVNode as t, createElementVNode as A, renderSlot as l, createTextVNode as w, toDisplayString as D, createVNode as E } from "vue";
2
+ import { kunChipProps as K } from "../composables/kunChipProps.js";
3
+ import { useChip as L } from "../composables/useChip.js";
4
4
  import a from "../../../KunIcon/src/components/KunIcon.vue.js";
5
5
  /* empty css */
6
- import L from "../../../../_virtual/_plugin-vue_export-helper.js";
7
- const P = {
6
+ import P from "../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const S = {
8
8
  key: 0,
9
9
  class: "kun-chip__prepend mr-1"
10
- }, S = { class: "kun-chip__content truncate" }, T = {
10
+ }, T = { class: "kun-chip__content truncate" }, M = {
11
11
  key: 1,
12
12
  class: "kun-chip__append ml-1"
13
- }, M = ["aria-label"], j = {
13
+ }, j = ["aria-label"], q = {
14
14
  __name: "KunChip",
15
- props: E,
15
+ props: K,
16
16
  emits: ["update:modelValue", "click:close"],
17
17
  setup(c, { emit: m }) {
18
- const k = c, f = m, i = I(), {
19
- componentTag: h,
20
- componentAttrs: y,
21
- computedClass: C,
22
- isLink: b,
23
- handleClose: d
24
- } = K(k, f), $ = V(() => [
18
+ const k = c, f = m, h = _(), {
19
+ componentTag: b,
20
+ componentAttrs: C,
21
+ computedClass: v,
22
+ isLink: y,
23
+ handleClose: i
24
+ } = L(k, f), $ = d(() => [
25
25
  "kun-chip",
26
- ...C.value,
27
- i.class
28
- ].filter(Boolean));
29
- return (e, n) => (o(), p(_(s(h)), B(s(y), {
30
- class: $.value,
31
- style: s(i).style,
32
- disabled: !s(b) && e.disabled ? !0 : void 0,
26
+ ...v.value
27
+ ].filter(Boolean)), I = d(() => ({
28
+ ...h,
29
+ ...C.value
30
+ }));
31
+ return (e, n) => (o(), r(g(s(b)), B({ class: $.value }, I.value, {
32
+ disabled: !s(y) && e.disabled ? !0 : void 0,
33
33
  onClick: n[1] || (n[1] = u(() => {
34
34
  }, ["stop"]))
35
35
  }), {
36
36
  default: N(() => [
37
- e.$slots.prepend || e.prependIcon ? (o(), r("div", P, [
37
+ e.$slots.prepend || e.prependIcon ? (o(), p("div", S, [
38
38
  l(e.$slots, "prepend", {}, () => [
39
- e.prependIcon ? (o(), p(a, {
39
+ e.prependIcon ? (o(), r(a, {
40
40
  key: 0,
41
41
  icon: e.prependIcon
42
42
  }, null, 8, ["icon"])) : t("", !0)
43
43
  ], !0)
44
44
  ])) : t("", !0),
45
- g("div", S, [
45
+ A("div", T, [
46
46
  e.$slots.default ? l(e.$slots, "default", { key: 0 }, () => [
47
- w(A(e.label || e.text), 1)
47
+ w(D(e.label || e.text), 1)
48
48
  ], !0) : t("", !0)
49
49
  ]),
50
- e.$slots.append || e.appendIcon ? (o(), r("div", T, [
50
+ e.$slots.append || e.appendIcon ? (o(), p("div", M, [
51
51
  l(e.$slots, "append", {}, () => [
52
- e.appendIcon ? (o(), p(a, {
52
+ e.appendIcon ? (o(), r(a, {
53
53
  key: 0,
54
54
  icon: e.appendIcon
55
55
  }, null, 8, ["icon"])) : t("", !0)
56
56
  ], !0)
57
57
  ])) : t("", !0),
58
- e.closable && e.modelValue ? (o(), r("button", {
58
+ e.closable && e.modelValue ? (o(), p("button", {
59
59
  key: 2,
60
60
  type: "button",
61
61
  class: "kun-chip__close ml-1",
62
62
  "aria-label": e.closeLabel,
63
- onClick: n[0] || (n[0] = u((...v) => s(d) && s(d)(...v), ["stop", "prevent"]))
63
+ onClick: n[0] || (n[0] = u((...V) => s(i) && s(i)(...V), ["stop", "prevent"]))
64
64
  }, [
65
65
  l(e.$slots, "close", {}, () => [
66
- D(a, { icon: "$mdi-close" })
66
+ E(a, { icon: "$mdi-close" })
67
67
  ], !0)
68
- ], 8, M)) : t("", !0)
68
+ ], 8, j)) : t("", !0)
69
69
  ]),
70
70
  _: 3
71
- }, 16, ["class", "style", "disabled"]));
71
+ }, 16, ["class", "disabled"]));
72
72
  }
73
- }, O = /* @__PURE__ */ L(j, [["__scopeId", "data-v-2b855a0d"]]);
73
+ }, Q = /* @__PURE__ */ P(q, [["__scopeId", "data-v-b85baefa"]]);
74
74
  export {
75
- O as default
75
+ Q as default
76
76
  };
@@ -1,6 +1,6 @@
1
1
  import { computed as r } from "vue";
2
- function s(e, l, c) {
3
- const n = r(() => !!e.to || !!e.href), a = r(() => e.href ? "a" : e.to ? "router-link" : "div"), o = r(() => e.href ? {
2
+ function d(e, l) {
3
+ const n = r(() => !!e.to || !!e.href), o = r(() => e.href ? "a" : e.to ? "router-link" : "div"), a = r(() => e.href ? {
4
4
  href: e.href,
5
5
  target: e.target ?? "_self",
6
6
  rel: e.target === "_blank" ? "noopener noreferrer" : null
@@ -26,8 +26,8 @@ function s(e, l, c) {
26
26
  });
27
27
  return {
28
28
  isLink: n,
29
- componentTag: a,
30
- componentAttrs: o,
29
+ componentTag: o,
30
+ componentAttrs: a,
31
31
  computedClass: u,
32
32
  handleClose: (t) => {
33
33
  e.disabled || (l("update:modelValue", !1), l("click:close", t));
@@ -35,5 +35,5 @@ function s(e, l, c) {
35
35
  };
36
36
  }
37
37
  export {
38
- s as useChip
38
+ d as useChip
39
39
  };
@@ -1,4 +1,4 @@
1
- import { inject as a, computed as d, createElementBlock as g, openBlock as x, normalizeClass as S, renderSlot as $ } from "vue";
1
+ import { inject as p, computed as d, createElementBlock as g, openBlock as x, mergeProps as $, renderSlot as S } from "vue";
2
2
  const v = {
3
3
  __name: "KunCol",
4
4
  props: {
@@ -8,11 +8,11 @@ const v = {
8
8
  lg: String,
9
9
  xl: String
10
10
  },
11
- setup(p) {
12
- const i = p, m = a("noGutters", !1), u = a("dense", !1), f = d(() => {
11
+ setup(a) {
12
+ const i = a, m = p("noGutters", !1), u = p("dense", !1), f = d(() => {
13
13
  const s = [];
14
14
  m || s.push(u ? "p-1" : "p-2");
15
- const o = ["cols", "sm", "md", "lg", "xl"], c = {
15
+ const l = ["cols", "sm", "md", "lg", "xl"], c = {
16
16
  cols: "",
17
17
  sm: "sm",
18
18
  md: "md",
@@ -20,10 +20,10 @@ const v = {
20
20
  xl: "xl"
21
21
  };
22
22
  let r = "0";
23
- return o.forEach((t) => {
23
+ return l.forEach((t) => {
24
24
  const e = i[t];
25
25
  if (e) {
26
- const l = c[t], n = l ? `${l}:col-span-${e}` : `col-span-${e}`;
26
+ const o = c[t], n = o ? `${o}:col-span-${e}` : `col-span-${e}`;
27
27
  s.push(n), r = e;
28
28
  } else {
29
29
  const n = `${c[t]}:col-span-${r}`;
@@ -31,11 +31,9 @@ const v = {
31
31
  }
32
32
  }), [...s].join(" ");
33
33
  });
34
- return (s, o) => (x(), g("div", {
35
- class: S(f.value)
36
- }, [
37
- $(s.$slots, "default")
38
- ], 2));
34
+ return (s, l) => (x(), g("div", $({ class: f.value }, s.$attrs), [
35
+ S(s.$slots, "default")
36
+ ], 16));
39
37
  }
40
38
  };
41
39
  export {
@@ -1,41 +1,30 @@
1
- import { computed as t, createElementBlock as o, openBlock as u, normalizeStyle as p, normalizeClass as f, renderSlot as i } from "vue";
2
- const x = {
1
+ import { computed as c, createElementBlock as n, openBlock as o, mergeProps as p, renderSlot as f } from "vue";
2
+ const u = {
3
3
  __name: "KunContainer",
4
4
  props: {
5
5
  fluid: {
6
6
  type: Boolean,
7
7
  default: !1
8
- },
9
- class: {
10
- type: [String, Array, Object],
11
- default: null
12
- },
13
- style: {
14
- type: Object,
15
- default: null
16
8
  }
17
9
  },
18
- setup(a) {
19
- const e = a, r = t(() => {
20
- const s = ["w-full", "mx-auto", "px-4", "sm:px-6", "lg:px-8"];
21
- return e.fluid || s.push(
10
+ setup(l) {
11
+ const s = l, r = c(() => {
12
+ const e = ["w-full", "mx-auto", "px-4", "sm:px-6", "lg:px-8"];
13
+ return s.fluid || e.push(
22
14
  "max-w-screen-sm",
23
15
  "sm:max-w-screen-md",
24
16
  "md:max-w-screen-lg",
25
17
  "lg:max-w-screen-xl",
26
18
  "xl:max-w-screen-2xl"
27
- ), e.class && (Array.isArray(e.class) ? s.push(...e.class) : typeof e.class == "string" ? s.push(...e.class.split(" ")) : typeof e.class == "object" && Object.entries(e.class).forEach(([l, n]) => {
28
- n && s.push(l);
29
- })), s;
30
- }), c = t(() => e.style || {});
31
- return (s, l) => (u(), o("div", {
32
- class: f(r.value),
33
- style: p(c.value)
34
- }, [
35
- i(s.$slots, "default")
36
- ], 6));
19
+ ), s.class && (Array.isArray(s.class) ? e.push(...s.class) : typeof s.class == "string" ? e.push(...s.class.split(" ")) : typeof s.class == "object" && Object.entries(s.class).forEach(([a, t]) => {
20
+ t && e.push(a);
21
+ })), e;
22
+ });
23
+ return (e, a) => (o(), n("div", p({ class: r.value }, e.$attrs), [
24
+ f(e.$slots, "default")
25
+ ], 16));
37
26
  }
38
27
  };
39
28
  export {
40
- x as default
29
+ u as default
41
30
  };
@@ -1,5 +1,5 @@
1
- import { computed as r, createElementBlock as a, openBlock as o, normalizeStyle as c, normalizeClass as i } from "vue";
2
- const s = {
1
+ import { computed as l, createElementBlock as o, openBlock as a, mergeProps as c } from "vue";
2
+ const i = {
3
3
  __name: "KunDivider",
4
4
  props: {
5
5
  vertical: Boolean,
@@ -12,23 +12,23 @@ const s = {
12
12
  }
13
13
  },
14
14
  setup(e) {
15
- const t = e, n = r(() => {
16
- const l = t.length != null ? typeof t.length == "number" ? `${t.length}px` : t.length : void 0;
17
- return t.vertical ? { height: l } : { width: l };
15
+ const t = e, n = l(() => {
16
+ const r = t.length != null ? typeof t.length == "number" ? `${t.length}px` : t.length : void 0;
17
+ return t.vertical ? { height: r } : { width: r };
18
18
  });
19
- return (l, u) => (o(), a("div", {
19
+ return (r, u) => (a(), o("div", c({
20
20
  role: "separator",
21
- class: i([
21
+ class: [
22
22
  "shrink-0",
23
23
  e.vertical ? "w-px h-full" : "h-px w-full",
24
24
  e.dashed ? "border border-dashed border-current bg-transparent" : "bg-current",
25
25
  e.inset ? e.vertical ? "ml-4" : "mx-4" : "",
26
26
  e.color
27
- ]),
28
- style: c(n.value)
29
- }, null, 6));
27
+ ],
28
+ style: n.value
29
+ }, r.$attrs), null, 16));
30
30
  }
31
31
  };
32
32
  export {
33
- s as default
33
+ i as default
34
34
  };
@@ -1,5 +1,5 @@
1
- import { ref as n, provide as s, createElementBlock as v, openBlock as g, normalizeClass as h, withModifiers as x, renderSlot as y } from "vue";
2
- const F = {
1
+ import { ref as l, provide as s, createElementBlock as v, openBlock as g, mergeProps as h, withModifiers as y, renderSlot as x } from "vue";
2
+ const w = {
3
3
  __name: "KunForm",
4
4
  props: {
5
5
  gap: {
@@ -16,20 +16,20 @@ const F = {
16
16
  }
17
17
  },
18
18
  setup(o, { expose: u }) {
19
- const i = o, t = n([]), r = n(!0);
19
+ const i = o, t = l([]), r = l(!0);
20
20
  function d(e) {
21
21
  t.value.push(e);
22
22
  }
23
- function c(e) {
23
+ function f(e) {
24
24
  t.value = t.value.filter((a) => a !== e);
25
25
  }
26
- async function l() {
26
+ async function n() {
27
27
  const e = await Promise.all(
28
28
  t.value.map(async (a) => await a.validate())
29
29
  );
30
30
  return r.value = e.every((a) => a === !0), { valid: r.value };
31
31
  }
32
- function f() {
32
+ function c() {
33
33
  t.value.forEach((e) => {
34
34
  e.reset && e.reset();
35
35
  });
@@ -40,23 +40,23 @@ const F = {
40
40
  });
41
41
  }
42
42
  function m() {
43
- l().then(({ valid: e }) => {
43
+ n().then(({ valid: e }) => {
44
44
  e && $emit("submit");
45
45
  });
46
46
  }
47
- return s("registerField", d), s("unregisterField", c), u({
48
- validate: l,
49
- reset: f,
47
+ return s("registerField", d), s("unregisterField", f), u({
48
+ validate: n,
49
+ reset: c,
50
50
  resetValidation: p
51
- }), (e, a) => (g(), v("form", {
52
- onSubmit: x(m, ["prevent"]),
51
+ }), (e, a) => (g(), v("form", h({
52
+ onSubmit: y(m, ["prevent"]),
53
53
  novalidate: "",
54
- class: h(`flex flex-col w-full ${i.gap} ${i.padding} ${i.maxWidth}`)
55
- }, [
56
- y(e.$slots, "default")
57
- ], 34));
54
+ class: `flex flex-col w-full ${i.gap} ${i.padding} ${i.maxWidth}`
55
+ }, e.$attrs), [
56
+ x(e.$slots, "default")
57
+ ], 16));
58
58
  }
59
59
  };
60
60
  export {
61
- F as default
61
+ w as default
62
62
  };
@@ -1,5 +1,5 @@
1
- import { computed as o, createElementBlock as i, openBlock as s, normalizeClass as c, renderSlot as m, createBlock as y, resolveDynamicComponent as v } from "vue";
2
- const k = ["innerHTML"], b = {
1
+ import { computed as o, createElementBlock as c, openBlock as s, mergeProps as m, renderSlot as y, createBlock as v, resolveDynamicComponent as k, normalizeClass as i } from "vue";
2
+ const g = ["innerHTML"], p = {
3
3
  __name: "KunIcon",
4
4
  props: {
5
5
  icon: {
@@ -26,34 +26,34 @@ const k = ["innerHTML"], b = {
26
26
  },
27
27
  emits: ["click"],
28
28
  setup(e, { emit: r }) {
29
- const n = e, u = r;
30
- function d(l) {
31
- n.disabled || u("click", l);
29
+ const l = e, u = r;
30
+ function d(n) {
31
+ l.disabled || u("click", n);
32
32
  }
33
33
  const a = o(() => typeof t.value == "string" && t.value.trim().startsWith("<svg")), t = o(() => {
34
- if (typeof n.icon == "string" && n.icon.startsWith("$")) {
35
- const l = n.icon.slice(1);
36
- return n.aliases[l] || "";
34
+ if (typeof l.icon == "string" && l.icon.startsWith("$")) {
35
+ const n = l.icon.slice(1);
36
+ return l.aliases[n] || "";
37
37
  }
38
- return n.icon;
38
+ return l.icon;
39
39
  }), f = o(
40
40
  () => typeof t.value == "function" || typeof t.value == "object" && t.value !== null
41
41
  );
42
- return (l, g) => (s(), i("span", {
43
- class: c(["flex items-center", [e.color, e.size, e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"]]),
42
+ return (n, C) => (s(), c("span", m({
43
+ class: ["flex items-center", [e.color, e.size, e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"]],
44
44
  onClick: d
45
- }, [
46
- l.$slots.default ? m(l.$slots, "default", { key: 0 }) : f.value ? (s(), y(v(t.value), {
45
+ }, n.$attrs), [
46
+ n.$slots.default ? y(n.$slots, "default", { key: 0 }) : f.value ? (s(), v(k(t.value), {
47
47
  key: 1,
48
- class: c([e.color, e.size, e.contentClass])
49
- }, null, 8, ["class"])) : (s(), i("span", {
48
+ class: i([e.color, e.size, e.contentClass])
49
+ }, null, 8, ["class"])) : (s(), c("span", {
50
50
  key: 2,
51
- class: c([a.value ? "" : t.value, e.color, e.size, e.contentClass]),
51
+ class: i([a.value ? "" : t.value, e.color, e.size, e.contentClass]),
52
52
  innerHTML: [a.value ? t.value : ""]
53
- }, null, 10, k))
54
- ], 2));
53
+ }, null, 10, g))
54
+ ], 16));
55
55
  }
56
56
  };
57
57
  export {
58
- b as default
58
+ p as default
59
59
  };