@soft-stech/bootsman-ui-shadcn 1.1.2 → 1.1.5

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.
@@ -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
+ }
@@ -84,6 +84,7 @@ function updateSelection(val: RowSelectionState) {
84
84
  @update:selection="updateSelection"
85
85
  :total-items="totalItems"
86
86
  class="caption-top"
87
+ :getRowId="(row) => row.id"
87
88
  >
88
89
  <template #caption="{ table }">
89
90
  <div class="flex justify-between">
@@ -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-2 py-1 inline-flex items-center rounded font-normal transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-[13px] leading-5 gap-1',
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
@@ -36,3 +36,4 @@ export * from './components/ui/skeleton/index'
36
36
 
37
37
  export * from './lib/utils'
38
38
  export { default as tailwind } from './tailwind-preset'
39
+ export * from './assets/variables.css'