@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.
- package/dist/BuiTableHead.vue_vue_type_script_setup_true_lang-Dyf8tkSZ.js +32 -0
- package/dist/assets/main.css +1 -1
- package/dist/components/ui/progress/BuiProgress.vue.d.ts +3 -1
- package/dist/components/ui/progress/index.d.ts +1 -1
- package/dist/components/ui/progress/index.js +36 -29
- package/dist/components/ui/table/BuiDataTable.vue.d.ts +1 -0
- package/dist/components/ui/table/BuiTableHead.js +1 -1
- package/dist/components/ui/table/BuiTableHead.vue.d.ts +0 -1
- package/dist/components/ui/table/index.js +142 -131
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/stories/BuiDataTable.story.vue +1 -0
- package/src/components/stories/BuiProgress.story.vue +3 -3
- package/src/components/ui/progress/BuiProgress.vue +19 -7
- package/src/components/ui/progress/index.ts +7 -5
- package/src/components/ui/table/BuiDataTable.vue +12 -3
- package/src/components/ui/table/BuiTableHead.vue +3 -9
- package/dist/BuiTableHead.vue_vue_type_script_setup_true_lang-BDSRArVd.js +0 -38
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { bn as
|
3
|
-
import { g as
|
4
|
-
const
|
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(
|
17
|
-
const r =
|
18
|
-
|
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(
|
22
|
+
a(B)({ variant: t.variant }),
|
24
23
|
r.class
|
25
24
|
)
|
26
25
|
}, r), {
|
27
|
-
default:
|
28
|
-
|
29
|
-
class:
|
30
|
-
style:
|
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
|
-
}),
|
42
|
+
}), B = i("", {
|
37
43
|
variants: {
|
38
44
|
variant: {
|
39
|
-
sm: "h-3
|
40
|
-
default: "h-5
|
41
|
-
lg: "h-10
|
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
|
-
}),
|
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(
|
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: "
|
70
|
+
color: "green",
|
64
71
|
variant: "default"
|
65
72
|
}
|
66
73
|
}
|
67
|
-
),
|
74
|
+
), N = {
|
68
75
|
sm: "8px",
|
69
76
|
default: "16px",
|
70
77
|
lg: "32px"
|
71
78
|
};
|
72
79
|
export {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
80
|
+
L as BuiProgress,
|
81
|
+
N as capVariants,
|
82
|
+
C as indicatorVariants,
|
83
|
+
B as progressVariants
|
77
84
|
};
|