@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
@@ -5,9 +5,9 @@ import { cva } from 'class-variance-authority'
|
|
5
5
|
export const progressVariants = cva('', {
|
6
6
|
variants: {
|
7
7
|
variant: {
|
8
|
-
sm: 'h-3
|
9
|
-
default: 'h-5
|
10
|
-
lg: 'h-10
|
8
|
+
sm: 'h-3 rounded-[8px]',
|
9
|
+
default: 'h-5 rounded-[8px]',
|
10
|
+
lg: 'h-10 rounded-[16px]'
|
11
11
|
}
|
12
12
|
},
|
13
13
|
defaultVariants: {
|
@@ -25,13 +25,15 @@ export const indicatorVariants = cva(
|
|
25
25
|
lg: 'rounded-[16px]'
|
26
26
|
},
|
27
27
|
color: {
|
28
|
-
primary:
|
28
|
+
primary:
|
29
|
+
'from-[rgba(115,113,249,0.80)] to-[rgba(115,113,249,0.24)] border-[rgb(115,113,249)]',
|
30
|
+
green: 'from-[rgba(30,215,132,0.80)] to-[rgba(30,215,132,0.24)] border-[rgb(30,215,132)]',
|
29
31
|
red: 'from-[rgba(224,95,163,0.8)] to-[rgba(224,95,163,0.24)] border-[rgb(224,95,163)]',
|
30
32
|
orange: 'from-[rgba(255,167,139,0.8)] to-[rgba(255,167,139,0.24)] border-[rgb(255,167,139)]'
|
31
33
|
}
|
32
34
|
},
|
33
35
|
defaultVariants: {
|
34
|
-
color: '
|
36
|
+
color: 'green',
|
35
37
|
variant: 'default'
|
36
38
|
}
|
37
39
|
}
|
@@ -244,7 +244,7 @@ watch(columnsListIds, () => {
|
|
244
244
|
<BuiPopoverTrigger as-child>
|
245
245
|
<div class="absolute right-0 top-0 z-10 h-10 bg-background">
|
246
246
|
<div
|
247
|
-
class="flex h-full items-center border-l border-border/[0.16] bg-foreground/[0.04] px-1"
|
247
|
+
class="flex h-full items-center border-b border-l border-border/[0.16] bg-foreground/[0.04] px-1"
|
248
248
|
>
|
249
249
|
<BuiButton
|
250
250
|
variant="ghost"
|
@@ -386,10 +386,19 @@ watch(columnsListIds, () => {
|
|
386
386
|
</BuiTableBody>
|
387
387
|
</BuiTable>
|
388
388
|
<div
|
389
|
-
v-if="showPagination && computedItems > 0"
|
390
|
-
class="flex w-full
|
389
|
+
v-if="(showPagination || $slots.numberOfItems) && computedItems > 0"
|
390
|
+
class="flex w-full border-x border-b border-border/[0.16] bg-primary/[0.04] px-4 py-1 text-sm text-muted-foreground"
|
391
|
+
:class="{
|
392
|
+
'justify-between': showPagination && $slots.numberOfItems,
|
393
|
+
'justify-start': $slots.numberOfItems && !showPagination,
|
394
|
+
'justify-end': showPagination && !$slots.numberOfItems
|
395
|
+
}"
|
391
396
|
>
|
397
|
+
<div v-if="$slots.numberOfItems" class="flex min-h-8 items-center">
|
398
|
+
<slot name="numberOfItems"></slot>
|
399
|
+
</div>
|
392
400
|
<BuiPaginationCommon
|
401
|
+
v-if="showPagination"
|
393
402
|
:total="computedItems"
|
394
403
|
v-model:pageIndex="pageIndex"
|
395
404
|
v-model:pageSize="tablePageSize"
|
@@ -13,13 +13,13 @@ const props = defineProps<{
|
|
13
13
|
cn(
|
14
14
|
'h-10 text-left align-middle text-foreground [&:has([role=checkbox])]:pr-0 ',
|
15
15
|
props.class,
|
16
|
-
props.freezeHeader ? 'bg-background p-0' : 'bg-foreground/[0.04]'
|
16
|
+
props.freezeHeader ? 'bg-background p-0' : 'bg-foreground/[0.04] p-0'
|
17
17
|
)
|
18
18
|
"
|
19
19
|
>
|
20
20
|
<div
|
21
|
-
|
22
|
-
class="
|
21
|
+
class="flex h-full items-center !border-b !border-border/[0.16]"
|
22
|
+
:class="{ 'bg-foreground/[0.04]': props.freezeHeader }"
|
23
23
|
>
|
24
24
|
<div
|
25
25
|
class="flex h-8 w-full items-center whitespace-nowrap border-r border-border/[0.16] px-3 text-sm font-semibold"
|
@@ -27,11 +27,5 @@ const props = defineProps<{
|
|
27
27
|
<slot />
|
28
28
|
</div>
|
29
29
|
</div>
|
30
|
-
<div
|
31
|
-
v-else
|
32
|
-
class="flex h-8 items-center whitespace-nowrap border-r border-border/[0.16] px-3 py-1 text-sm font-semibold"
|
33
|
-
>
|
34
|
-
<slot />
|
35
|
-
</div>
|
36
30
|
</th>
|
37
31
|
</template>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { defineComponent as l, openBlock as r, createElementBlock as o, normalizeClass as n, unref as a, createElementVNode as c, renderSlot as s } from "vue";
|
2
|
-
import { g as f } from "./utils-CwP7Up6y.js";
|
3
|
-
const i = {
|
4
|
-
key: 0,
|
5
|
-
class: "flex h-full items-center border-b border-border/[0.16] bg-foreground/[0.04]"
|
6
|
-
}, p = { class: "flex h-8 w-full items-center whitespace-nowrap border-r border-border/[0.16] px-3 text-sm font-semibold" }, b = {
|
7
|
-
key: 1,
|
8
|
-
class: "flex h-8 items-center whitespace-nowrap border-r border-border/[0.16] px-3 py-1 text-sm font-semibold"
|
9
|
-
}, _ = /* @__PURE__ */ l({
|
10
|
-
__name: "BuiTableHead",
|
11
|
-
props: {
|
12
|
-
class: {},
|
13
|
-
freezeHeader: { type: Boolean }
|
14
|
-
},
|
15
|
-
setup(d) {
|
16
|
-
const e = d;
|
17
|
-
return (t, m) => (r(), o("th", {
|
18
|
-
class: n(
|
19
|
-
a(f)(
|
20
|
-
"h-10 text-left align-middle text-foreground [&:has([role=checkbox])]:pr-0 ",
|
21
|
-
e.class,
|
22
|
-
e.freezeHeader ? "bg-background p-0" : "bg-foreground/[0.04]"
|
23
|
-
)
|
24
|
-
)
|
25
|
-
}, [
|
26
|
-
e.freezeHeader ? (r(), o("div", i, [
|
27
|
-
c("div", p, [
|
28
|
-
s(t.$slots, "default")
|
29
|
-
])
|
30
|
-
])) : (r(), o("div", b, [
|
31
|
-
s(t.$slots, "default")
|
32
|
-
]))
|
33
|
-
], 2));
|
34
|
-
}
|
35
|
-
});
|
36
|
-
export {
|
37
|
-
_
|
38
|
-
};
|