@soft-stech/bootsman-ui-shadcn 1.1.2 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{BuiDataTable.vue_vue_type_script_setup_true_lang-R89LBsoI.js → BuiDataTable.vue_vue_type_script_setup_true_lang-pgkgRvqY.js} +154 -152
- package/dist/assets/main.css +1 -1
- package/dist/components/ui/badge/index.js +1 -1
- package/dist/components/ui/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/ui/pagination/index.js +1 -1
- package/dist/components/ui/table/BuiDataTable.js +1 -1
- package/dist/components/ui/table/BuiDataTable.vue.d.ts +4 -1
- package/dist/components/ui/table/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/variables.css +1 -0
- package/package.json +1 -1
- package/src/assets/base.css +0 -87
- package/src/assets/main.css +1 -0
- package/src/assets/variables.css +82 -0
- package/src/components/stories/BuiDataTable.story.vue +1 -0
- package/src/components/ui/badge/index.ts +1 -1
- package/src/components/ui/table/BuiDataTable.vue +5 -2
- package/src/index.ts +1 -0
- /package/dist/{BuiPaginationCommon.vue_vue_type_script_setup_true_lang-4tLnC9mc.js → variables-pHubWfbo.js} +0 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
:root {
|
2
|
+
--background: 0 0% 100%;
|
3
|
+
--foreground: 242 24% 21%;
|
4
|
+
|
5
|
+
--muted: 210 40% 96.1%;
|
6
|
+
--muted-foreground: 225 5% 47%;
|
7
|
+
|
8
|
+
--popover: 0 0% 100%;
|
9
|
+
--popover-foreground: 222.2 84% 4.9%;
|
10
|
+
|
11
|
+
--card: 0 0% 100%;
|
12
|
+
--card-foreground: 222.2 84% 4.9%;
|
13
|
+
--card-shadow: 241.538, 100%, 92%, 0.83;
|
14
|
+
|
15
|
+
--border: 241 92% 71%;
|
16
|
+
--input: 225 11% 84%;
|
17
|
+
|
18
|
+
--primary: 241 92% 71%;
|
19
|
+
--primary-hover: 241 76% 62%;
|
20
|
+
--primary-active: 241 54% 54%;
|
21
|
+
--primary-foreground: 0 0% 100%;
|
22
|
+
|
23
|
+
--secondary: 210 40% 96.1%;
|
24
|
+
--secondary-foreground: 241 76% 62%;
|
25
|
+
|
26
|
+
--accent: 241 92% 71%;
|
27
|
+
--accent-foreground: 241 76% 62%;
|
28
|
+
|
29
|
+
--destructive: 328, 68%, 63%, 0.16;
|
30
|
+
--destructive-foreground: 328, 68%, 63%;
|
31
|
+
|
32
|
+
--success: 181, 34%, 39%, 0.16;
|
33
|
+
--success-foreground: 181, 34%, 39%;
|
34
|
+
|
35
|
+
--ring: 241 92% 71%;
|
36
|
+
|
37
|
+
--radius: 0.5rem;
|
38
|
+
}
|
39
|
+
|
40
|
+
.dark {
|
41
|
+
--background: 242 24% 21%;
|
42
|
+
--foreground: 0 0% 100%;
|
43
|
+
|
44
|
+
--muted: 217.2 32.6% 17.5%;
|
45
|
+
--muted-foreground: 0, 0%, 100%, 0.32;
|
46
|
+
|
47
|
+
--popover: 222.2 84% 4.9%;
|
48
|
+
--popover-foreground: 210 40% 98%;
|
49
|
+
|
50
|
+
--card: 222.2 84% 4.9%;
|
51
|
+
--card-foreground: 210 40% 98%;
|
52
|
+
--card-shadow: 242.027, 94%, 69%, 0.4;
|
53
|
+
|
54
|
+
--border: 241 92% 71%;
|
55
|
+
--input: 0, 0%, 100%, 0.32;
|
56
|
+
|
57
|
+
--primary: 241 92% 71%;
|
58
|
+
--primary-hover: 241 76% 62%;
|
59
|
+
--primary-active: 241 54% 54%;
|
60
|
+
--primary-foreground: 0 0% 100%;
|
61
|
+
|
62
|
+
--secondary: 217.2 32.6% 17.5%;
|
63
|
+
--secondary-foreground: 210 40% 98%;
|
64
|
+
|
65
|
+
--accent: 241 92% 71%;
|
66
|
+
--accent-foreground: 240 100% 77%;
|
67
|
+
|
68
|
+
--destructive: 328, 68%, 63%, 0.16;
|
69
|
+
--destructive-foreground: 328, 68%, 63%;
|
70
|
+
|
71
|
+
--success: 181, 34%, 39%, 0.16;
|
72
|
+
--success-foreground: 152 80% 38%;
|
73
|
+
|
74
|
+
--ring: 241 92% 71%;
|
75
|
+
}
|
76
|
+
|
77
|
+
* {
|
78
|
+
@apply border-border;
|
79
|
+
}
|
80
|
+
body {
|
81
|
+
@apply bg-background text-foreground;
|
82
|
+
}
|
@@ -3,7 +3,7 @@ import { cva } from 'class-variance-authority'
|
|
3
3
|
export { default as BuiBadge } from './BuiBadge.vue'
|
4
4
|
|
5
5
|
export const badgeVariants = cva(
|
6
|
-
'px-
|
6
|
+
'px-3 py-1 inline-flex items-center rounded-full font-normal transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-[13px] leading-5 gap-1',
|
7
7
|
{
|
8
8
|
variants: {
|
9
9
|
variant: {
|
@@ -3,7 +3,8 @@ import type {
|
|
3
3
|
ColumnDef,
|
4
4
|
SortingState,
|
5
5
|
PaginationState,
|
6
|
-
RowSelectionState
|
6
|
+
RowSelectionState,
|
7
|
+
Row
|
7
8
|
} from '@tanstack/vue-table'
|
8
9
|
import {
|
9
10
|
FlexRender,
|
@@ -33,6 +34,7 @@ const props = withDefaults(
|
|
33
34
|
pageSize?: number
|
34
35
|
showPagination?: boolean
|
35
36
|
totalItems?: number
|
37
|
+
getRowId?: (originalRow: TData, index: number, parent?: Row<TData>) => string
|
36
38
|
}>(),
|
37
39
|
{ pageSize: 10, showPagination: true, totalItems: 0 }
|
38
40
|
)
|
@@ -73,7 +75,8 @@ const table = useVueTable({
|
|
73
75
|
get rowSelection() {
|
74
76
|
return rowSelection.value
|
75
77
|
}
|
76
|
-
}
|
78
|
+
},
|
79
|
+
getRowId: props.getRowId
|
77
80
|
})
|
78
81
|
</script>
|
79
82
|
|
package/src/index.ts
CHANGED
File without changes
|