@soft-stech/bootsman-ui-shadcn 1.4.29 → 1.4.31

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as s, computed as d, openBlock as i, createBlock as u, unref as a, mergeProps as c, withCtx as p, createVNode as f, normalizeClass as m, normalizeStyle as g } from "vue";
2
- import { bn as b, bo as v } from "../../../index-DKlaqzM0.js";
3
- import { g as o, j as l } from "../../../utils-CwP7Up6y.js";
4
- const P = /* @__PURE__ */ s({
1
+ import { defineComponent as g, computed as p, openBlock as o, createBlock as b, unref as a, mergeProps as f, withCtx as v, createVNode as x, normalizeClass as V, normalizeStyle as n, createElementBlock as l, Fragment as s, renderList as y, createCommentVNode as d } from "vue";
2
+ import { bn as h, bo as k } from "../../../index-DKlaqzM0.js";
3
+ import { g as u, j as i } from "../../../utils-CwP7Up6y.js";
4
+ const L = /* @__PURE__ */ g({
5
5
  __name: "BuiProgress",
6
6
  props: {
7
7
  modelValue: { default: 0 },
@@ -11,40 +11,46 @@ const P = /* @__PURE__ */ s({
11
11
  as: {},
12
12
  class: { default: "" },
13
13
  variant: { default: "default" },
14
- color: { default: "primary" }
14
+ color: { default: "primary" },
15
+ separators: {}
15
16
  },
16
- setup(t) {
17
- const r = t, n = d(
18
- () => !r.modelValue || r.modelValue < 100 ? "rounded-r-none border-r-2" : ""
19
- );
20
- return (e, h) => (i(), u(a(b), c({
21
- class: a(o)(
17
+ setup(c) {
18
+ const r = c, m = p(() => !r.modelValue || r.modelValue >= 100 ? "" : "rounded-r-none border-r-2");
19
+ return (t, w) => (o(), b(a(h), f({
20
+ class: a(u)(
22
21
  "relative w-full overflow-hidden bg-slate-400 bg-opacity-[0.16]",
23
- a(x)({ variant: e.variant }),
22
+ a(B)({ variant: t.variant }),
24
23
  r.class
25
24
  )
26
25
  }, r), {
27
- default: p(() => [
28
- f(a(v), {
29
- class: m(a(o)(a(V)({ color: e.color, variant: e.variant }), n.value, r.class)),
30
- style: g(`width: calc(calc(100% - ${a(y)[e.variant ?? "default"]}) * ${(r.modelValue ?? 0) * 0.01})`)
31
- }, null, 8, ["class", "style"])
26
+ default: v(() => [
27
+ x(a(k), {
28
+ class: V(a(u)(a(C)({ color: t.color, variant: t.variant }), m.value, r.class)),
29
+ style: n(`width: ${r.modelValue ?? 0}%;`)
30
+ }, null, 8, ["class", "style"]),
31
+ r.modelValue && r.separators && r.separators.length > 0 ? (o(!0), l(s, { key: 0 }, y(r.separators, (e) => (o(), l(s, null, [
32
+ e > 0 && e < 100 && e < r.modelValue ? (o(), l("div", {
33
+ key: 0,
34
+ class: "absolute bottom-0 top-0 w-px bg-background !p-0",
35
+ style: n(`left:${e}%`)
36
+ }, null, 4)) : d("", !0)
37
+ ], 64))), 256)) : d("", !0)
32
38
  ]),
33
39
  _: 1
34
40
  }, 16, ["class"]));
35
41
  }
36
- }), x = l("", {
42
+ }), B = i("", {
37
43
  variants: {
38
44
  variant: {
39
- sm: "h-3 [&>*]:pl-2 rounded-[8px]",
40
- default: "h-5 [&>*]:pl-4 rounded-[8px]",
41
- lg: "h-10 [&>*]:pl-8 rounded-[16px]"
45
+ sm: "h-3 rounded-[8px]",
46
+ default: "h-5 rounded-[8px]",
47
+ lg: "h-10 rounded-[16px]"
42
48
  }
43
49
  },
44
50
  defaultVariants: {
45
51
  variant: "default"
46
52
  }
47
- }), V = l(
53
+ }), C = i(
48
54
  "absolute h-full box-content flex-1 bg-gradient-to-l transition-all duration-300",
49
55
  {
50
56
  variants: {
@@ -54,24 +60,25 @@ const P = /* @__PURE__ */ s({
54
60
  lg: "rounded-[16px]"
55
61
  },
56
62
  color: {
57
- primary: "from-[rgba(30,215,132,0.80)] to-[rgba(30,215,132,0.24)] border-[rgb(30,215,132)]",
63
+ primary: "from-[rgba(115,113,249,0.80)] to-[rgba(115,113,249,0.24)] border-[rgb(115,113,249)]",
64
+ green: "from-[rgba(30,215,132,0.80)] to-[rgba(30,215,132,0.24)] border-[rgb(30,215,132)]",
58
65
  red: "from-[rgba(224,95,163,0.8)] to-[rgba(224,95,163,0.24)] border-[rgb(224,95,163)]",
59
66
  orange: "from-[rgba(255,167,139,0.8)] to-[rgba(255,167,139,0.24)] border-[rgb(255,167,139)]"
60
67
  }
61
68
  },
62
69
  defaultVariants: {
63
- color: "primary",
70
+ color: "green",
64
71
  variant: "default"
65
72
  }
66
73
  }
67
- ), y = {
74
+ ), N = {
68
75
  sm: "8px",
69
76
  default: "16px",
70
77
  lg: "32px"
71
78
  };
72
79
  export {
73
- P as BuiProgress,
74
- y as capVariants,
75
- V as indicatorVariants,
76
- x as progressVariants
80
+ L as BuiProgress,
81
+ N as capVariants,
82
+ C as indicatorVariants,
83
+ B as progressVariants
77
84
  };
@@ -61,6 +61,7 @@ declare const _default: <TData, TValue>(__VLS_props: NonNullable<Awaited<typeof
61
61
  row: TData;
62
62
  }): any;
63
63
  nodata?(_: {}): any;
64
+ numberOfItems?(_: {}): any;
64
65
  };
65
66
  emit: {
66
67
  'update:sorting': [sorting: SortingState];
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../../BuiTableHead.vue_vue_type_script_setup_true_lang-BDSRArVd.js";
1
+ import { _ as f } from "../../../BuiTableHead.vue_vue_type_script_setup_true_lang-Dyf8tkSZ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,6 @@
1
1
  declare function __VLS_template(): {
2
2
  slots: {
3
3
  default?(_: {}): any;
4
- default?(_: {}): any;
5
4
  };
6
5
  refs: {};
7
6
  attrs: Partial<{}>;