@yuno-payments/dashboard-design-system 0.0.170 → 0.0.172

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.
Files changed (161) hide show
  1. package/dist/components/atoms/access-denied-alert/access-denied-alert.d.ts +16 -0
  2. package/dist/components/atoms/accordion/accordion.d.ts +66 -0
  3. package/dist/components/atoms/alert/alert.d.ts +26 -1
  4. package/dist/components/atoms/alert/alert.js +9 -8
  5. package/dist/components/atoms/avatar/avatar-group.d.ts +28 -0
  6. package/dist/components/atoms/avatar/avatar.d.ts +25 -0
  7. package/dist/components/atoms/avatar/avatar.js +9 -9
  8. package/dist/components/atoms/badge/badge.d.ts +30 -2
  9. package/dist/components/atoms/badge/badge.js +27 -11
  10. package/dist/components/atoms/button/button.d.ts +44 -0
  11. package/dist/components/atoms/card/card.d.ts +137 -3
  12. package/dist/components/atoms/card/card.js +56 -28
  13. package/dist/components/atoms/checkbox/checkbox.d.ts +38 -2
  14. package/dist/components/atoms/checkbox/checkbox.js +61 -27
  15. package/dist/components/atoms/combobox/combobox.d.ts +18 -0
  16. package/dist/components/atoms/combobox/combobox.js +41 -41
  17. package/dist/components/atoms/combobox/types.d.ts +90 -1
  18. package/dist/components/atoms/currency-field/currency-field.d.ts +38 -0
  19. package/dist/components/atoms/currency-field/currency-field.js +22 -19
  20. package/dist/components/atoms/date-picker/date-picker.d.ts +15 -0
  21. package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +15 -0
  22. package/dist/components/atoms/dots-menu/dots-menu.d.ts +16 -0
  23. package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
  24. package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +52 -0
  25. package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +50 -0
  26. package/dist/components/atoms/field/field.d.ts +55 -0
  27. package/dist/components/atoms/field/field.js +53 -46
  28. package/dist/components/atoms/filter/filter-date-range.d.ts +12 -2
  29. package/dist/components/atoms/filter/filter-date-range.js +203 -168
  30. package/dist/components/atoms/filter/filter.d.ts +6 -0
  31. package/dist/components/atoms/filter/filter.js +91 -76
  32. package/dist/components/atoms/filter/index.d.ts +1 -1
  33. package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +208 -2
  34. package/dist/components/atoms/filter-dropdown/filter-dropdown.js +214 -160
  35. package/dist/components/atoms/icon/aida-logo.d.ts +3 -0
  36. package/dist/components/atoms/icon/aida-logo.js +64 -0
  37. package/dist/components/atoms/icon/icon-list.d.ts +5 -0
  38. package/dist/components/atoms/icon/icon-list.js +394 -384
  39. package/dist/components/atoms/icon/icon.d.ts +29 -0
  40. package/dist/components/atoms/index.d.ts +3 -2
  41. package/dist/components/atoms/label/index.d.ts +1 -1
  42. package/dist/components/atoms/label/label.d.ts +11 -0
  43. package/dist/components/atoms/label/label.js +28 -0
  44. package/dist/components/atoms/link/link.d.ts +20 -0
  45. package/dist/components/atoms/loading/index.d.ts +1 -0
  46. package/dist/components/atoms/loading/loading.d.ts +39 -0
  47. package/dist/components/atoms/loading/loading.js +37 -0
  48. package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
  49. package/dist/components/atoms/multi-select/multi-select.js +6 -6
  50. package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +16 -0
  51. package/dist/components/atoms/multi-values-field/multi-values-field.js +109 -87
  52. package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +81 -0
  53. package/dist/components/atoms/otp-field/otp-field.d.ts +32 -0
  54. package/dist/components/atoms/password-field/password-field.d.ts +23 -0
  55. package/dist/components/atoms/password-field/password-field.js +1 -1
  56. package/dist/components/atoms/progress/progress.d.ts +15 -0
  57. package/dist/components/atoms/protected-field/protected-field.d.ts +10 -0
  58. package/dist/components/atoms/protected-field/protected-field.types.d.ts +14 -0
  59. package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
  60. package/dist/components/atoms/radio-group/radio-group.d.ts +50 -1
  61. package/dist/components/atoms/radio-group/radio-group.js +13 -12
  62. package/dist/components/atoms/search-field/search-field.d.ts +14 -0
  63. package/dist/components/atoms/search-field/search-field.js +17 -17
  64. package/dist/components/atoms/search-field/search-field.types.d.ts +57 -0
  65. package/dist/components/atoms/select/index.d.ts +2 -0
  66. package/dist/components/atoms/select/search-select.d.ts +22 -0
  67. package/dist/components/atoms/select/search-select.js +201 -0
  68. package/dist/components/atoms/select/select.d.ts +83 -1
  69. package/dist/components/atoms/select/select.js +21 -21
  70. package/dist/components/atoms/separator/separator.d.ts +17 -0
  71. package/dist/components/atoms/skeleton/index.d.ts +9 -0
  72. package/dist/components/atoms/switch/switch.d.ts +56 -2
  73. package/dist/components/atoms/switch/switch.js +64 -32
  74. package/dist/components/atoms/tabs/index.d.ts +16 -0
  75. package/dist/components/atoms/textarea/textarea.d.ts +32 -0
  76. package/dist/components/atoms/textarea/textarea.js +1 -1
  77. package/dist/components/atoms/time-picker/time-picker.d.ts +73 -2
  78. package/dist/components/atoms/time-picker/time-picker.js +218 -3
  79. package/dist/components/atoms/toaster/index.d.ts +15 -0
  80. package/dist/components/atoms/toggle-group/toggle-group.d.ts +26 -1
  81. package/dist/components/atoms/toggle-group/toggle-group.js +15 -14
  82. package/dist/components/atoms/tooltip/tooltip.d.ts +53 -2
  83. package/dist/components/atoms/typography/typography.d.ts +18 -0
  84. package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +50 -0
  85. package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
  86. package/dist/components/molecules/dialog-content/dialog-content.d.ts +16 -0
  87. package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +20 -0
  88. package/dist/components/molecules/dialog-header/dialog-header.d.ts +31 -0
  89. package/dist/components/molecules/empty/empty-icon.js +6 -6
  90. package/dist/components/molecules/empty/empty.d.ts +16 -1
  91. package/dist/components/molecules/empty/empty.js +37 -34
  92. package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +17 -0
  93. package/dist/components/molecules/pagination/pagination.d.ts +49 -0
  94. package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +41 -0
  95. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
  96. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
  97. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +18 -0
  98. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
  99. package/dist/components/organisms/data-table/components/data-table-body.d.ts +18 -0
  100. package/dist/components/organisms/data-table/components/data-table-header.d.ts +12 -0
  101. package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
  102. package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +24 -0
  103. package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
  104. package/dist/components/organisms/data-table/data-table.d.ts +133 -4
  105. package/dist/components/organisms/data-table/data-table.js +132 -100
  106. package/dist/components/organisms/data-table/data-table.types.d.ts +35 -26
  107. package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +57 -41
  108. package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +8 -2
  109. package/dist/components/organisms/data-table/hooks/use-data-table-state.js +82 -47
  110. package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +8 -2
  111. package/dist/components/organisms/data-table/utils/data-table-constants.js +16 -10
  112. package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +1652 -0
  113. package/dist/components/organisms/data-table/utils/data-table-styles.js +29 -14
  114. package/dist/components/organisms/dialog/dialog.d.ts +67 -1
  115. package/dist/components/organisms/dialog/dialog.js +78 -61
  116. package/dist/components/organisms/index.d.ts +2 -0
  117. package/dist/components/organisms/sheet/sheet.d.ts +69 -0
  118. package/dist/components/organisms/sheet/sheet.js +34 -33
  119. package/dist/components/organisms/tutorial/index.d.ts +2 -0
  120. package/dist/components/organisms/tutorial/tutorial.d.ts +16 -0
  121. package/dist/components/organisms/tutorial/tutorial.js +114 -0
  122. package/dist/components/organisms/tutorial/tutorial.types.d.ts +15 -0
  123. package/dist/hooks/index.d.ts +3 -0
  124. package/dist/hooks/use-body-scroll-lock.d.ts +13 -0
  125. package/dist/hooks/use-escape-key.d.ts +14 -0
  126. package/dist/hooks/use-media-query.d.ts +20 -0
  127. package/dist/hooks/use-media-query.js +21 -0
  128. package/dist/index.css +1 -1
  129. package/dist/index.d.ts +2 -0
  130. package/dist/index.js +173 -162
  131. package/dist/lib/notification-alert.d.ts +42 -0
  132. package/dist/lib/notification-alert.js +75 -0
  133. package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +8 -0
  134. package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +8 -0
  135. package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +8 -0
  136. package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +8 -0
  137. package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +30 -0
  138. package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +36 -0
  139. package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +36 -0
  140. package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +30 -0
  141. package/dist/vendor/shadcn/avatar.js +19 -19
  142. package/dist/vendor/shadcn/badge.js +15 -15
  143. package/dist/vendor/shadcn/card.js +7 -7
  144. package/dist/vendor/shadcn/date-picker.d.ts +2 -2
  145. package/dist/vendor/shadcn/date-picker.js +1 -1
  146. package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
  147. package/dist/vendor/shadcn/date-range-picker.js +1 -1
  148. package/dist/vendor/shadcn/dialog.js +2 -2
  149. package/dist/vendor/shadcn/input-group.js +17 -17
  150. package/dist/vendor/shadcn/input.js +7 -7
  151. package/dist/vendor/shadcn/popover.js +1 -1
  152. package/dist/vendor/shadcn/select.js +2 -2
  153. package/dist/vendor/shadcn/sonner.d.ts +26 -1
  154. package/dist/vendor/shadcn/sonner.js +12 -8
  155. package/dist/vendor/shadcn/table.js +30 -30
  156. package/dist/vendor/shadcn/textarea.js +9 -9
  157. package/dist/vendor/shadcn/time-picker.d.ts +1 -2
  158. package/dist/vendor/shadcn/time-picker.js +17 -23
  159. package/dist/vendor/shadcn/toggle.js +13 -13
  160. package/dist/vendor/shadcn/tooltip.js +25 -15
  161. package/package.json +1 -1
@@ -1,78 +1,82 @@
1
- import { j as n } from "../../../../_virtual/jsx-runtime.js";
1
+ import { j as a } from "../../../../_virtual/jsx-runtime.js";
2
2
  import * as C from "react";
3
- import { DataTableColumnHeader as f } from "../components/column-header/data-table-column-header.js";
4
- import { isHeaderConfig as S } from "../utils/data-table-utils.js";
5
- import { ACTIONS_COLUMN_CONFIG as c } from "../utils/data-table-constants.js";
6
- import { Checkbox as u } from "../../../atoms/checkbox/checkbox.js";
7
- import { Button as h } from "../../../atoms/button/button.js";
8
- function P({
9
- columns: g,
3
+ import { Button as b } from "../../../atoms/button/button.js";
4
+ import { DataTableColumnHeader as S } from "../components/column-header/data-table-column-header.js";
5
+ import { isHeaderConfig as h } from "../utils/data-table-utils.js";
6
+ import { COLUMN_MIN_SIZE_DEFAULT as p, CHECKBOX_COLUMN_CONFIG as c, ACTIONS_COLUMN_CONFIG as g } from "../utils/data-table-constants.js";
7
+ import { Checkbox as z } from "../../../atoms/checkbox/checkbox.js";
8
+ function _({
9
+ columns: f,
10
10
  checkboxSelection: d = !1,
11
- actions: a
11
+ actions: l
12
12
  }) {
13
13
  return C.useMemo(() => {
14
- let l = g.map((r) => {
15
- const { header: e, enablePinning: i = !0, ...t } = r, o = t.size !== void 0 ? { ...t, minSize: t.minSize ?? t.size } : t;
14
+ let n = f.map((t) => {
15
+ const { header: e, enablePinning: i = !0, ...r } = t, s = r.size !== void 0 ? { ...r, minSize: r.minSize ?? p } : r;
16
16
  return typeof e == "string" ? {
17
- ...o,
17
+ ...s,
18
18
  enablePinning: i,
19
- header: ({ column: s, table: m }) => /* @__PURE__ */ n.jsx(
20
- f,
19
+ header: ({ column: o, table: m }) => /* @__PURE__ */ a.jsx(
20
+ S,
21
21
  {
22
- column: s,
22
+ column: o,
23
23
  table: m,
24
24
  title: e
25
25
  }
26
26
  )
27
- } : S(e) ? {
28
- ...o,
27
+ } : h(e) ? {
28
+ ...s,
29
29
  enablePinning: i,
30
- header: ({ column: s, table: m }) => /* @__PURE__ */ n.jsx(
31
- f,
30
+ header: ({ column: o, table: m }) => /* @__PURE__ */ a.jsx(
31
+ S,
32
32
  {
33
- column: s,
33
+ column: o,
34
34
  table: m,
35
35
  title: e.title,
36
36
  info: e.info,
37
37
  className: e.className
38
38
  }
39
39
  )
40
- } : { ...o, header: e, enablePinning: i };
40
+ } : { ...s, header: e, enablePinning: i };
41
41
  });
42
- if (d && (l = [{
42
+ if (d && (n = [{
43
43
  id: "select",
44
- header: ({ table: e }) => /* @__PURE__ */ n.jsx(
45
- u,
44
+ header: ({ table: e }) => /* @__PURE__ */ a.jsx(
45
+ z,
46
46
  {
47
47
  checked: e.getIsAllPageRowsSelected() || (e.getIsSomePageRowsSelected() ? "indeterminate" : !1),
48
- onCheckedChange: (i) => e.toggleAllPageRowsSelected(!!i),
48
+ onChange: (i) => e.toggleAllPageRowsSelected(i.target.checked),
49
49
  "aria-label": "Select all"
50
50
  }
51
51
  ),
52
- cell: ({ row: e }) => /* @__PURE__ */ n.jsx(
53
- u,
52
+ cell: ({ row: e }) => /* @__PURE__ */ a.jsx(
53
+ z,
54
54
  {
55
55
  checked: e.getIsSelected(),
56
- onCheckedChange: (i) => e.toggleSelected(!!i),
56
+ onChange: (i) => e.toggleSelected(i.target.checked),
57
57
  "aria-label": "Select row"
58
58
  }
59
59
  ),
60
60
  enableSorting: !1,
61
61
  enableHiding: !1,
62
- enablePinning: !1
63
- }, ...l]), a) {
64
- const r = {
62
+ enablePinning: !1,
63
+ enableResizing: !1,
64
+ size: c.size,
65
+ minSize: c.minSize,
66
+ maxSize: c.maxSize
67
+ }, ...n]), l) {
68
+ const t = {
65
69
  id: "actions",
66
70
  header: "",
67
- cell: ({ row: e }) => a.render ? /* @__PURE__ */ n.jsx(n.Fragment, { children: a.render(e.original) }) : /* @__PURE__ */ n.jsx(
68
- h,
71
+ cell: ({ row: e }) => l.render ? /* @__PURE__ */ a.jsx(a.Fragment, { children: l.render(e.original) }) : /* @__PURE__ */ a.jsx(
72
+ b,
69
73
  {
70
74
  variant: "ghost",
71
75
  size: "icon",
72
76
  startIcon: "Eye",
73
77
  "aria-label": "Actions",
74
78
  onClick: (i) => {
75
- i.stopPropagation(), a.onClick?.(e.original);
79
+ i.stopPropagation(), l.onClick?.(e.original);
76
80
  }
77
81
  }
78
82
  ),
@@ -80,15 +84,27 @@ function P({
80
84
  enableHiding: !1,
81
85
  enablePinning: !1,
82
86
  enableResizing: !1,
83
- size: c.size,
84
- minSize: c.minSize,
85
- maxSize: c.maxSize
87
+ size: g.size,
88
+ minSize: g.minSize,
89
+ maxSize: g.maxSize
86
90
  };
87
- l = [...l, r];
91
+ n = [...n, t];
88
92
  }
89
- return l;
90
- }, [d, a, g]);
93
+ const u = {
94
+ id: "_spacer",
95
+ header: "",
96
+ cell: () => null,
97
+ enableSorting: !1,
98
+ enableHiding: !1,
99
+ enablePinning: !1,
100
+ enableResizing: !1,
101
+ size: 100,
102
+ // Arbitrary value, colgroup will override with auto
103
+ minSize: 0
104
+ };
105
+ return n = [...n, u], n;
106
+ }, [d, l, f]);
91
107
  }
92
108
  export {
93
- P as useDataTableColumns
109
+ _ as useDataTableColumns
94
110
  };
@@ -1,12 +1,18 @@
1
1
  import { ColumnFiltersState, SortingState, VisibilityState, RowSelectionState, ColumnPinningState } from '@tanstack/react-table';
2
+ import { DataTableSettings } from '../data-table.types';
2
3
  import * as React from "react";
3
4
  interface UseDataTableStateProps {
4
5
  persistKey?: string;
5
6
  hasActions?: boolean;
7
+ externalSorting?: SortingState;
8
+ onExternalSortingChange?: (sorting: SortingState) => void;
9
+ externalRowSelection?: RowSelectionState;
10
+ initialSettings?: DataTableSettings;
11
+ onUpdate?: (settings: DataTableSettings) => void;
6
12
  }
7
- export declare function useDataTableState({ persistKey, hasActions, }: UseDataTableStateProps): {
13
+ export declare function useDataTableState({ persistKey, hasActions, externalSorting, onExternalSortingChange, externalRowSelection, initialSettings, onUpdate, }: UseDataTableStateProps): {
8
14
  sorting: SortingState;
9
- setSorting: React.Dispatch<React.SetStateAction<SortingState>>;
15
+ setSorting: (sorting: SortingState) => void;
10
16
  columnFilters: ColumnFiltersState;
11
17
  setColumnFilters: React.Dispatch<React.SetStateAction<ColumnFiltersState>>;
12
18
  columnVisibility: VisibilityState;
@@ -1,74 +1,109 @@
1
- import * as e from "react";
2
- function V({
3
- persistKey: i,
4
- hasActions: l = !1
1
+ import * as i from "react";
2
+ function $({
3
+ persistKey: r,
4
+ hasActions: s = !1,
5
+ externalSorting: P,
6
+ onExternalSortingChange: l,
7
+ externalRowSelection: y,
8
+ initialSettings: o,
9
+ onUpdate: m
5
10
  }) {
6
- const [g, m] = e.useState([]), [S, b] = e.useState(
11
+ const [c, a] = i.useState([]), [w, I] = i.useState(
7
12
  []
8
- ), [r, c] = e.useState({}), [h, P] = e.useState({}), [a, s] = e.useState({
13
+ ), [u, d] = i.useState({}), [V, C] = i.useState({}), [f, g] = i.useState({
9
14
  left: [],
10
- right: l ? ["actions"] : []
11
- });
12
- e.useEffect(() => {
13
- if (!i) return;
14
- const n = localStorage.getItem(`datatable-${i}`);
15
- if (n)
15
+ right: s ? ["actions"] : []
16
+ }), F = P ?? c, O = l ?? a, R = y ?? V, v = C;
17
+ i.useEffect(() => {
18
+ if (o) {
19
+ if (o.hide || o.show) {
20
+ const e = {};
21
+ o.hide?.forEach((t) => {
22
+ e[t] = !1;
23
+ }), d(e);
24
+ }
25
+ o.pinnedColumns && g({
26
+ left: o.pinnedColumns.left || [],
27
+ right: [
28
+ ...(o.pinnedColumns.right || []).filter(
29
+ (e) => e !== "actions"
30
+ ),
31
+ ...s ? ["actions"] : []
32
+ ]
33
+ }), !l && o.sorting && a(o.sorting);
34
+ }
35
+ }, [o, s, l]), i.useEffect(() => {
36
+ if (!r) return;
37
+ const e = localStorage.getItem(`datatable-${r}`);
38
+ if (e)
16
39
  try {
17
- const t = JSON.parse(n);
18
- t.columnVisibility && c(t.columnVisibility), t.columnPinning && s({
40
+ const t = JSON.parse(e);
41
+ t.columnVisibility && d(t.columnVisibility), t.columnPinning && g({
19
42
  left: t.columnPinning.left || [],
20
43
  right: [
21
44
  ...(t.columnPinning.right || []).filter(
22
- (o) => o !== "actions"
45
+ (n) => n !== "actions"
23
46
  ),
24
- ...l ? ["actions"] : []
47
+ ...s ? ["actions"] : []
25
48
  ]
26
- });
49
+ }), !l && t.sorting && a(t.sorting);
27
50
  } catch (t) {
28
51
  console.error("Failed to load table state", t);
29
52
  }
30
- }, [i, l]), e.useEffect(() => {
31
- if (!i) return;
32
- const n = {
33
- columnVisibility: r,
34
- columnPinning: a
53
+ }, [r, s, l]), i.useEffect(() => {
54
+ const e = Object.entries(u).filter(([, n]) => !n).map(([n]) => n), t = {
55
+ hide: e.length > 0 ? e : void 0,
56
+ pinnedColumns: {
57
+ left: f.left || [],
58
+ right: f.right || []
59
+ },
60
+ // Only include sorting if not controlled externally
61
+ ...!l && c.length > 0 && { sorting: c }
35
62
  };
36
- localStorage.setItem(`datatable-${i}`, JSON.stringify(n));
37
- }, [r, a, i]);
38
- const d = e.useCallback(
39
- (n) => {
40
- s((t) => {
41
- const o = typeof n == "function" ? n(t) : n, u = Array.isArray(o.left) ? o.left : [], f = Array.isArray(o.right) ? o.right : [];
42
- if (l) {
43
- const y = f.filter(
44
- (C) => C !== "actions"
63
+ if (r) {
64
+ const n = {
65
+ columnVisibility: u,
66
+ columnPinning: f,
67
+ ...!l && { sorting: c }
68
+ };
69
+ localStorage.setItem(`datatable-${r}`, JSON.stringify(n));
70
+ }
71
+ m && m(t);
72
+ }, [u, f, c, r, l, m]);
73
+ const J = i.useCallback(
74
+ (e) => {
75
+ g((t) => {
76
+ const n = typeof e == "function" ? e(t) : e, h = Array.isArray(n.left) ? n.left : [], b = Array.isArray(n.right) ? n.right : [];
77
+ if (s) {
78
+ const N = b.filter(
79
+ (S) => S !== "actions"
45
80
  );
46
81
  return {
47
- left: u,
48
- right: [...y, "actions"]
82
+ left: h,
83
+ right: [...N, "actions"]
49
84
  };
50
85
  }
51
86
  return {
52
- left: u,
53
- right: f
87
+ left: h,
88
+ right: b
54
89
  };
55
90
  });
56
91
  },
57
- [l]
92
+ [s]
58
93
  );
59
94
  return {
60
- sorting: g,
61
- setSorting: m,
62
- columnFilters: S,
63
- setColumnFilters: b,
64
- columnVisibility: r,
65
- setColumnVisibility: c,
66
- rowSelection: h,
67
- setRowSelection: P,
68
- columnPinning: a,
69
- handleColumnPinningChange: d
95
+ sorting: F,
96
+ setSorting: O,
97
+ columnFilters: w,
98
+ setColumnFilters: I,
99
+ columnVisibility: u,
100
+ setColumnVisibility: d,
101
+ rowSelection: R,
102
+ setRowSelection: v,
103
+ columnPinning: f,
104
+ handleColumnPinningChange: J
70
105
  };
71
106
  }
72
107
  export {
73
- V as useDataTableState
108
+ $ as useDataTableState
74
109
  };
@@ -10,14 +10,20 @@ export declare const RESIZE_HANDLE_CONFIG: {
10
10
  readonly lineHeight: "h-5";
11
11
  readonly lineWidth: "w-[1px]";
12
12
  };
13
+ export declare const CHECKBOX_COLUMN_CONFIG: {
14
+ readonly size: 50;
15
+ readonly minSize: 50;
16
+ readonly maxSize: 50;
17
+ };
13
18
  export declare const ACTIONS_COLUMN_CONFIG: {
14
19
  readonly size: 50;
15
20
  readonly minSize: 50;
16
21
  readonly maxSize: 50;
17
22
  };
18
23
  export declare const CELL_BACKGROUND_COLORS: {
19
- readonly header: "rgb(250 250 250)";
20
- readonly body: "white";
24
+ readonly header: "hsl(var(--sidebar))";
25
+ readonly body: "hsl(var(--background))";
21
26
  };
22
27
  export declare const ROW_HEIGHT_DEFAULT = 66;
28
+ export declare const COLUMN_MIN_SIZE_DEFAULT = 50;
23
29
  export declare const PINNED_SHADOW_CLASS = "shadow-[-4px_0_4px_-2px_rgba(0,0,0,0.1)]";
@@ -1,4 +1,4 @@
1
- const t = {
1
+ const _ = {
2
2
  height: "h-8",
3
3
  gap: "gap-1.5",
4
4
  roundedClass: "rounded-md",
@@ -8,19 +8,25 @@ const t = {
8
8
  width: "w-2",
9
9
  lineHeight: "h-5",
10
10
  lineWidth: "w-[1px]"
11
- }, _ = {
11
+ }, t = {
12
12
  size: 50,
13
13
  minSize: 50,
14
14
  maxSize: 50
15
15
  }, i = {
16
- header: "rgb(250 250 250)",
17
- body: "white"
18
- }, n = 66, o = "shadow-[-4px_0_4px_-2px_rgba(0,0,0,0.1)]";
16
+ size: 50,
17
+ minSize: 50,
18
+ maxSize: 50
19
+ }, n = {
20
+ header: "hsl(var(--sidebar))",
21
+ body: "hsl(var(--background))"
22
+ }, o = 66, s = 50, C = "shadow-[-4px_0_4px_-2px_rgba(0,0,0,0.1)]";
19
23
  export {
20
- _ as ACTIONS_COLUMN_CONFIG,
21
- i as CELL_BACKGROUND_COLORS,
22
- t as COLUMN_HEADER_CONFIG,
23
- o as PINNED_SHADOW_CLASS,
24
+ i as ACTIONS_COLUMN_CONFIG,
25
+ n as CELL_BACKGROUND_COLORS,
26
+ t as CHECKBOX_COLUMN_CONFIG,
27
+ _ as COLUMN_HEADER_CONFIG,
28
+ s as COLUMN_MIN_SIZE_DEFAULT,
29
+ C as PINNED_SHADOW_CLASS,
24
30
  e as RESIZE_HANDLE_CONFIG,
25
- n as ROW_HEIGHT_DEFAULT
31
+ o as ROW_HEIGHT_DEFAULT
26
32
  };