@devalok/shilp-sutra 0.17.2 → 0.18.1

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 (322) hide show
  1. package/dist/_chunks/framer.js +1376 -0
  2. package/dist/_chunks/link-context.js +19 -0
  3. package/dist/_chunks/motion-provider.js +24 -0
  4. package/dist/_chunks/primitives.js +3499 -3920
  5. package/dist/_chunks/tiptap.js +1 -1
  6. package/dist/_chunks/tree-view.js +183 -181
  7. package/dist/_chunks/use-calendar.js +531 -515
  8. package/dist/_chunks/vendor-client.js +1792 -1049
  9. package/dist/_chunks/vendor-utils.js +5123 -1169
  10. package/dist/composed/activity-feed.d.ts.map +1 -1
  11. package/dist/composed/activity-feed.js +75 -78
  12. package/dist/composed/avatar-group.js +33 -33
  13. package/dist/composed/command-palette.d.ts +1 -1
  14. package/dist/composed/command-palette.d.ts.map +1 -1
  15. package/dist/composed/command-palette.js +207 -158
  16. package/dist/composed/confirm-dialog.d.ts +3 -5
  17. package/dist/composed/confirm-dialog.d.ts.map +1 -1
  18. package/dist/composed/confirm-dialog.js +47 -42
  19. package/dist/composed/content-card.d.ts +1 -1
  20. package/dist/composed/content-card.js +30 -30
  21. package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
  22. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
  23. package/dist/composed/date-picker/date-picker.d.ts +1 -1
  24. package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
  25. package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
  26. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
  27. package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
  28. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
  29. package/dist/composed/date-picker/month-picker.d.ts +1 -1
  30. package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
  31. package/dist/composed/date-picker/presets.d.ts +1 -1
  32. package/dist/composed/date-picker/presets.d.ts.map +1 -1
  33. package/dist/composed/date-picker/time-picker.d.ts +1 -1
  34. package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
  35. package/dist/composed/date-picker/year-picker.d.ts +1 -1
  36. package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
  37. package/dist/composed/empty-state.d.ts +1 -0
  38. package/dist/composed/empty-state.d.ts.map +1 -1
  39. package/dist/composed/empty-state.js +51 -47
  40. package/dist/composed/error-boundary.d.ts +1 -1
  41. package/dist/composed/error-boundary.d.ts.map +1 -1
  42. package/dist/composed/error-boundary.js +48 -48
  43. package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
  44. package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
  45. package/dist/composed/global-loading.d.ts +1 -1
  46. package/dist/composed/global-loading.d.ts.map +1 -1
  47. package/dist/composed/global-loading.js +22 -19
  48. package/dist/composed/index.d.ts +2 -4
  49. package/dist/composed/index.d.ts.map +1 -1
  50. package/dist/composed/index.js +26 -29
  51. package/dist/composed/lib/string-utils.d.ts +0 -1
  52. package/dist/composed/lib/string-utils.js +0 -1
  53. package/dist/composed/loading-skeleton.d.ts +1 -1
  54. package/dist/composed/loading-skeleton.d.ts.map +1 -1
  55. package/dist/composed/loading-skeleton.js +92 -87
  56. package/dist/composed/member-picker.d.ts +1 -1
  57. package/dist/composed/member-picker.d.ts.map +1 -1
  58. package/dist/composed/member-picker.js +47 -43
  59. package/dist/composed/page-header.js +36 -36
  60. package/dist/composed/page-skeletons.d.ts +9 -3
  61. package/dist/composed/page-skeletons.d.ts.map +1 -1
  62. package/dist/composed/page-skeletons.js +58 -58
  63. package/dist/composed/priority-indicator.js +24 -24
  64. package/dist/composed/rich-text-editor.d.ts +3 -3
  65. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  66. package/dist/composed/rich-text-editor.js +317 -310
  67. package/dist/composed/schedule-view.js +84 -84
  68. package/dist/composed/simple-tooltip.d.ts +2 -5
  69. package/dist/composed/simple-tooltip.d.ts.map +1 -1
  70. package/dist/composed/simple-tooltip.js +19 -14
  71. package/dist/composed/status-badge.d.ts +2 -1
  72. package/dist/composed/status-badge.d.ts.map +1 -1
  73. package/dist/composed/status-badge.js +81 -68
  74. package/dist/hooks/index.d.ts +2 -1
  75. package/dist/hooks/index.d.ts.map +1 -1
  76. package/dist/hooks/index.js +3 -4
  77. package/dist/hooks/use-toast.d.ts +15 -45
  78. package/dist/hooks/use-toast.d.ts.map +1 -1
  79. package/dist/hooks/use-toast.js +2 -95
  80. package/dist/motion/index.d.ts +4 -0
  81. package/dist/motion/index.d.ts.map +1 -0
  82. package/dist/motion/index.js +12 -0
  83. package/dist/motion/motion-provider.d.ts +18 -0
  84. package/dist/motion/motion-provider.d.ts.map +1 -0
  85. package/dist/motion/primitives-index.d.ts +3 -0
  86. package/dist/motion/primitives-index.d.ts.map +1 -0
  87. package/dist/motion/primitives-index.js +187 -0
  88. package/dist/motion/primitives.d.ts +38 -0
  89. package/dist/motion/primitives.d.ts.map +1 -0
  90. package/dist/shell/app-command-palette.d.ts +14 -5
  91. package/dist/shell/app-command-palette.d.ts.map +1 -1
  92. package/dist/shell/app-command-palette.js +152 -130
  93. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  94. package/dist/shell/bottom-navbar.js +90 -92
  95. package/dist/shell/command-registry.d.ts +23 -0
  96. package/dist/shell/command-registry.d.ts.map +1 -0
  97. package/dist/shell/command-registry.js +18 -0
  98. package/dist/shell/index.d.ts +2 -1
  99. package/dist/shell/index.d.ts.map +1 -1
  100. package/dist/shell/index.js +14 -11
  101. package/dist/shell/link-context.d.ts +6 -10
  102. package/dist/shell/link-context.d.ts.map +1 -1
  103. package/dist/shell/link-context.js +3 -16
  104. package/dist/shell/notification-center.d.ts.map +1 -1
  105. package/dist/shell/notification-center.js +129 -124
  106. package/dist/shell/notification-preferences.d.ts +10 -5
  107. package/dist/shell/notification-preferences.d.ts.map +1 -1
  108. package/dist/shell/notification-preferences.js +169 -165
  109. package/dist/shell/sidebar.js +104 -104
  110. package/dist/shell/top-bar.js +67 -67
  111. package/dist/tailwind/index.cjs +118 -297
  112. package/dist/tailwind/preset.d.ts.map +1 -1
  113. package/dist/tailwind/preset.js +118 -297
  114. package/dist/tokens/generate-scale.d.ts +86 -0
  115. package/dist/tokens/generate-scale.d.ts.map +1 -0
  116. package/dist/tokens/primitives.css +415 -187
  117. package/dist/tokens/semantic.css +244 -270
  118. package/dist/tokens/typography.css +6 -6
  119. package/dist/ui/accordion.d.ts.map +1 -1
  120. package/dist/ui/accordion.js +34 -24
  121. package/dist/ui/alert-dialog.d.ts +4 -1
  122. package/dist/ui/alert-dialog.d.ts.map +1 -1
  123. package/dist/ui/alert-dialog.js +115 -74
  124. package/dist/ui/alert.d.ts +6 -1
  125. package/dist/ui/alert.d.ts.map +1 -1
  126. package/dist/ui/alert.js +65 -50
  127. package/dist/ui/aspect-ratio.d.ts +2 -1
  128. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  129. package/dist/ui/aspect-ratio.js +14 -4
  130. package/dist/ui/autocomplete.d.ts +11 -2
  131. package/dist/ui/autocomplete.d.ts.map +1 -1
  132. package/dist/ui/autocomplete.js +85 -60
  133. package/dist/ui/avatar.d.ts.map +1 -1
  134. package/dist/ui/avatar.js +46 -35
  135. package/dist/ui/badge.d.ts +1 -1
  136. package/dist/ui/badge.d.ts.map +1 -1
  137. package/dist/ui/badge.js +72 -67
  138. package/dist/ui/banner.d.ts.map +1 -1
  139. package/dist/ui/banner.js +54 -40
  140. package/dist/ui/breadcrumb.d.ts +2 -0
  141. package/dist/ui/breadcrumb.d.ts.map +1 -1
  142. package/dist/ui/breadcrumb.js +19 -19
  143. package/dist/ui/button-group.js +4 -4
  144. package/dist/ui/button.d.ts +10 -1
  145. package/dist/ui/button.d.ts.map +1 -1
  146. package/dist/ui/button.js +102 -66
  147. package/dist/ui/card.d.ts +2 -2
  148. package/dist/ui/card.d.ts.map +1 -1
  149. package/dist/ui/card.js +61 -53
  150. package/dist/ui/charts/_internal/animation.d.ts +1 -1
  151. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  152. package/dist/ui/charts/area-chart.d.ts +3 -5
  153. package/dist/ui/charts/area-chart.d.ts.map +1 -1
  154. package/dist/ui/charts/bar-chart.d.ts +3 -5
  155. package/dist/ui/charts/bar-chart.d.ts.map +1 -1
  156. package/dist/ui/charts/chart-container.d.ts +2 -5
  157. package/dist/ui/charts/chart-container.d.ts.map +1 -1
  158. package/dist/ui/charts/gauge-chart.d.ts +3 -5
  159. package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
  160. package/dist/ui/charts/index.js +1204 -1095
  161. package/dist/ui/charts/line-chart.d.ts +3 -5
  162. package/dist/ui/charts/line-chart.d.ts.map +1 -1
  163. package/dist/ui/charts/pie-chart.d.ts +2 -5
  164. package/dist/ui/charts/pie-chart.d.ts.map +1 -1
  165. package/dist/ui/charts/radar-chart.d.ts +3 -5
  166. package/dist/ui/charts/radar-chart.d.ts.map +1 -1
  167. package/dist/ui/charts/sparkline.d.ts +5 -5
  168. package/dist/ui/charts/sparkline.d.ts.map +1 -1
  169. package/dist/ui/checkbox.d.ts.map +1 -1
  170. package/dist/ui/checkbox.js +31 -19
  171. package/dist/ui/chip.d.ts +3 -2
  172. package/dist/ui/chip.d.ts.map +1 -1
  173. package/dist/ui/chip.js +58 -50
  174. package/dist/ui/code.js +16 -16
  175. package/dist/ui/collapsible.d.ts.map +1 -1
  176. package/dist/ui/collapsible.js +23 -15
  177. package/dist/ui/color-input.d.ts +1 -1
  178. package/dist/ui/color-input.d.ts.map +1 -1
  179. package/dist/ui/color-input.js +27 -27
  180. package/dist/ui/combobox.d.ts +2 -0
  181. package/dist/ui/combobox.d.ts.map +1 -1
  182. package/dist/ui/combobox.js +177 -166
  183. package/dist/ui/container.js +4 -4
  184. package/dist/ui/context-menu.d.ts +4 -2
  185. package/dist/ui/context-menu.d.ts.map +1 -1
  186. package/dist/ui/context-menu.js +147 -87
  187. package/dist/ui/data-table-toolbar.d.ts +3 -2
  188. package/dist/ui/data-table-toolbar.d.ts.map +1 -1
  189. package/dist/ui/data-table-toolbar.js +65 -63
  190. package/dist/ui/data-table.d.ts.map +1 -1
  191. package/dist/ui/data-table.js +275 -240
  192. package/dist/ui/dialog.d.ts +3 -1
  193. package/dist/ui/dialog.d.ts.map +1 -1
  194. package/dist/ui/dialog.js +114 -74
  195. package/dist/ui/dropdown-menu.d.ts +5 -3
  196. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  197. package/dist/ui/dropdown-menu.js +151 -90
  198. package/dist/ui/file-upload.d.ts.map +1 -1
  199. package/dist/ui/file-upload.js +170 -128
  200. package/dist/ui/form.d.ts.map +1 -1
  201. package/dist/ui/form.js +30 -27
  202. package/dist/ui/hover-card.d.ts +1 -1
  203. package/dist/ui/hover-card.d.ts.map +1 -1
  204. package/dist/ui/hover-card.js +53 -21
  205. package/dist/ui/icon-button.js +9 -9
  206. package/dist/ui/index.d.ts +18 -18
  207. package/dist/ui/index.d.ts.map +1 -1
  208. package/dist/ui/index.js +322 -533
  209. package/dist/ui/input-otp.d.ts +2 -0
  210. package/dist/ui/input-otp.d.ts.map +1 -1
  211. package/dist/ui/input-otp.js +8 -8
  212. package/dist/ui/input.d.ts.map +1 -1
  213. package/dist/ui/input.js +35 -33
  214. package/dist/ui/label.js +12 -12
  215. package/dist/ui/lib/date-utils.d.ts +5 -0
  216. package/dist/ui/lib/date-utils.d.ts.map +1 -0
  217. package/dist/ui/lib/date-utils.js +12 -0
  218. package/dist/ui/lib/index.d.ts +7 -0
  219. package/dist/ui/lib/index.d.ts.map +1 -0
  220. package/dist/ui/lib/link-context.d.ts +13 -0
  221. package/dist/ui/lib/link-context.d.ts.map +1 -0
  222. package/dist/ui/lib/motion.d.ts +44 -9
  223. package/dist/ui/lib/motion.d.ts.map +1 -1
  224. package/dist/ui/lib/motion.js +34 -0
  225. package/dist/ui/lib/use-ripple.d.ts.map +1 -1
  226. package/dist/ui/lib/utils.js +1 -1
  227. package/dist/ui/link.js +11 -11
  228. package/dist/ui/menubar.d.ts +4 -2
  229. package/dist/ui/menubar.d.ts.map +1 -1
  230. package/dist/ui/menubar.js +142 -98
  231. package/dist/ui/navigation-menu.d.ts +2 -0
  232. package/dist/ui/navigation-menu.d.ts.map +1 -1
  233. package/dist/ui/navigation-menu.js +176 -73
  234. package/dist/ui/number-input.d.ts.map +1 -1
  235. package/dist/ui/number-input.js +58 -51
  236. package/dist/ui/pagination.js +23 -23
  237. package/dist/ui/popover.d.ts +2 -1
  238. package/dist/ui/popover.d.ts.map +1 -1
  239. package/dist/ui/popover.js +54 -22
  240. package/dist/ui/progress.d.ts.map +1 -1
  241. package/dist/ui/progress.js +58 -42
  242. package/dist/ui/radio.js +15 -15
  243. package/dist/ui/search-input.d.ts.map +1 -1
  244. package/dist/ui/search-input.js +28 -33
  245. package/dist/ui/segmented-control.d.ts +4 -2
  246. package/dist/ui/segmented-control.d.ts.map +1 -1
  247. package/dist/ui/segmented-control.js +146 -123
  248. package/dist/ui/select.d.ts.map +1 -1
  249. package/dist/ui/select.js +75 -64
  250. package/dist/ui/separator.js +12 -12
  251. package/dist/ui/sheet.d.ts +1 -1
  252. package/dist/ui/sheet.d.ts.map +1 -1
  253. package/dist/ui/sheet.js +111 -75
  254. package/dist/ui/sidebar.d.ts +6 -1
  255. package/dist/ui/sidebar.d.ts.map +1 -1
  256. package/dist/ui/sidebar.js +574 -36
  257. package/dist/ui/skeleton.js +2 -2
  258. package/dist/ui/slider.d.ts +9 -0
  259. package/dist/ui/slider.d.ts.map +1 -1
  260. package/dist/ui/slider.js +33 -27
  261. package/dist/ui/spinner.d.ts +32 -25
  262. package/dist/ui/spinner.d.ts.map +1 -1
  263. package/dist/ui/spinner.js +199 -40
  264. package/dist/ui/stack.js +1 -1
  265. package/dist/ui/stat-card.d.ts.map +1 -1
  266. package/dist/ui/stat-card.js +181 -114
  267. package/dist/ui/stepper.d.ts +23 -4
  268. package/dist/ui/stepper.d.ts.map +1 -1
  269. package/dist/ui/stepper.js +126 -48
  270. package/dist/ui/switch.d.ts.map +1 -1
  271. package/dist/ui/switch.js +39 -26
  272. package/dist/ui/table.d.ts +3 -0
  273. package/dist/ui/table.d.ts.map +1 -1
  274. package/dist/ui/table.js +29 -29
  275. package/dist/ui/tabs.d.ts +4 -1
  276. package/dist/ui/tabs.d.ts.map +1 -1
  277. package/dist/ui/tabs.js +94 -44
  278. package/dist/ui/text.d.ts +3 -3
  279. package/dist/ui/text.js +2 -2
  280. package/dist/ui/textarea.d.ts.map +1 -1
  281. package/dist/ui/textarea.js +27 -25
  282. package/dist/ui/toast-types.d.ts +43 -0
  283. package/dist/ui/toast-types.d.ts.map +1 -0
  284. package/dist/ui/toast-types.js +2 -0
  285. package/dist/ui/toast.d.ts +60 -26
  286. package/dist/ui/toast.d.ts.map +1 -1
  287. package/dist/ui/toast.js +535 -89
  288. package/dist/ui/toaster.d.ts +19 -23
  289. package/dist/ui/toaster.d.ts.map +1 -1
  290. package/dist/ui/toaster.js +31 -21
  291. package/dist/ui/toggle-group.d.ts +2 -2
  292. package/dist/ui/toggle-group.d.ts.map +1 -1
  293. package/dist/ui/toggle-group.js +29 -26
  294. package/dist/ui/toggle.d.ts +2 -2
  295. package/dist/ui/toggle.d.ts.map +1 -1
  296. package/dist/ui/toggle.js +21 -17
  297. package/dist/ui/tooltip.d.ts +2 -1
  298. package/dist/ui/tooltip.d.ts.map +1 -1
  299. package/dist/ui/tooltip.js +58 -21
  300. package/dist/ui/tree-view/tree-view.d.ts +1 -1
  301. package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
  302. package/dist/ui/visually-hidden.js +3 -3
  303. package/llms-full.txt +3440 -1528
  304. package/llms.txt +67 -14
  305. package/package.json +50 -9
  306. package/dist/_chunks/avatar.js +0 -50
  307. package/dist/_chunks/button.js +0 -95
  308. package/dist/_chunks/checkbox.js +0 -14
  309. package/dist/_chunks/form.js +0 -27
  310. package/dist/_chunks/sidebar.js +0 -592
  311. package/dist/_chunks/spinner.js +0 -34
  312. package/dist/_chunks/switch.js +0 -10
  313. package/dist/_chunks/tooltip.js +0 -13
  314. package/dist/_chunks/utils.js +0 -17
  315. package/dist/composed/upload-progress.d.ts +0 -33
  316. package/dist/composed/upload-progress.d.ts.map +0 -1
  317. package/dist/composed/upload-progress.js +0 -386
  318. package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
  319. package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
  320. package/dist/ui/transitions.d.ts +0 -17
  321. package/dist/ui/transitions.d.ts.map +0 -1
  322. package/dist/ui/transitions.js +0 -111
@@ -1,33 +1,35 @@
1
1
  "use client";
2
2
  import { jsxs as d, jsx as n } from "react/jsx-runtime";
3
- import et, { useState as u, useRef as V, useEffect as D, useCallback as j, useMemo as tt } from "react";
4
- import { useReactTable as lt, getExpandedRowModel as nt, getPaginationRowModel as ot, getFilteredRowModel as st, getSortedRowModel as rt, getCoreRowModel as at, flexRender as te } from "@tanstack/react-table";
5
- import { useVirtualizer as ct } from "@tanstack/react-virtual";
6
- import { IconArrowUp as dt, IconArrowDown as it, IconArrowsSort as ut, IconSearch as mt, IconChevronLeft as ft, IconChevronRight as Se, IconX as gt } from "@tabler/icons-react";
7
- import { Table as pt, TableHeader as ht, TableRow as z, TableHead as Ce, TableBody as O, TableCell as B } from "./table.js";
8
- import { B as bt } from "../_chunks/button.js";
9
- import { C as Ne } from "../_chunks/checkbox.js";
10
- import { Skeleton as we } from "./skeleton.js";
11
- import { c as r } from "../_chunks/utils.js";
12
- import { DataTableToolbar as xt } from "./data-table-toolbar.js";
13
- const yt = {
3
+ import nt, { useState as u, useRef as V, useEffect as D, useCallback as j, useMemo as lt } from "react";
4
+ import { useReactTable as st, getExpandedRowModel as ot, getPaginationRowModel as at, getFilteredRowModel as ct, getSortedRowModel as rt, getCoreRowModel as dt, flexRender as te } from "@tanstack/react-table";
5
+ import { useVirtualizer as it } from "@tanstack/react-virtual";
6
+ import { IconArrowUp as ut, IconArrowDown as ft, IconArrowsSort as mt, IconSearch as gt, IconChevronLeft as pt, IconChevronRight as Ne, IconX as ht } from "@tabler/icons-react";
7
+ import { Table as bt, TableHeader as xt, TableRow as z, TableHead as we, TableBody as A, TableCell as O } from "./table.js";
8
+ import { Button as yt } from "./button.js";
9
+ import { Checkbox as ke } from "./checkbox.js";
10
+ import { Skeleton as Re } from "./skeleton.js";
11
+ import { cn as a } from "./lib/utils.js";
12
+ import { springs as ne } from "./lib/motion.js";
13
+ import { DataTableToolbar as St } from "./data-table-toolbar.js";
14
+ import { A as Ct, m as le } from "../_chunks/framer.js";
15
+ const Nt = {
14
16
  compact: "py-ds-02",
15
17
  standard: "py-ds-05",
16
18
  comfortable: "py-ds-07"
17
19
  };
18
- function St({
19
- initialValue: A,
20
- onSave: m,
20
+ function wt({
21
+ initialValue: B,
22
+ onSave: f,
21
23
  onCancel: K
22
24
  }) {
23
- const [I, S] = u(A), p = V(null);
25
+ const [I, S] = u(B), p = V(null);
24
26
  D(() => {
25
27
  var i, E;
26
28
  (i = p.current) == null || i.focus(), (E = p.current) == null || E.select();
27
29
  }, []);
28
30
  const h = j(() => {
29
- m(I);
30
- }, [m, I]);
31
+ f(I);
32
+ }, [f, I]);
31
33
  return /* @__PURE__ */ n(
32
34
  "input",
33
35
  {
@@ -39,21 +41,21 @@ function St({
39
41
  onKeyDown: (i) => {
40
42
  i.key === "Enter" ? (i.preventDefault(), h()) : i.key === "Escape" && (i.preventDefault(), K());
41
43
  },
42
- className: r(
44
+ className: a(
43
45
  "h-ds-xs-plus w-full rounded-ds-md",
44
- "border border-border-interactive bg-field",
46
+ "border border-accent-7 bg-surface-3",
45
47
  "px-ds-02 text-ds-sm",
46
- "text-text-primary placeholder:text-text-placeholder",
47
- "outline-none focus:border-[var(--color-border-focus)]"
48
+ "text-surface-fg placeholder:text-surface-fg-subtle",
49
+ "outline-none focus:border-accent-7"
48
50
  ),
49
51
  "aria-label": "Edit cell value"
50
52
  }
51
53
  );
52
54
  }
53
- const Ct = 'button, a, input, select, textarea, [role="checkbox"]';
54
- function Nt({
55
- columns: A,
56
- data: m,
55
+ const kt = 'button, a, input, select, textarea, [role="checkbox"]';
56
+ function Rt({
57
+ columns: B,
58
+ data: f,
57
59
  className: K,
58
60
  noResultsText: I,
59
61
  sortable: S = !1,
@@ -61,54 +63,54 @@ function Nt({
61
63
  globalFilter: h = !1,
62
64
  paginated: i = !1,
63
65
  pageSize: E,
64
- pageSizeOptions: ke,
66
+ pageSizeOptions: ze,
65
67
  selectable: C = !1,
66
68
  onSelectionChange: G,
67
- toolbar: le = !1,
68
- density: Re = "standard",
69
+ toolbar: se = !1,
70
+ density: De = "standard",
69
71
  columnPinning: N,
70
- editable: ze = !1,
72
+ editable: Ie = !1,
71
73
  onCellEdit: L,
72
74
  expandable: $ = !1,
73
- renderExpanded: ne,
75
+ renderExpanded: oe,
74
76
  virtualRows: b = !1,
75
- virtualRowHeight: De = 48,
76
- maxHeight: Ie = 600,
77
+ virtualRowHeight: Ee = 48,
78
+ maxHeight: Fe = 600,
77
79
  onSort: F,
78
- emptyState: oe,
79
- loading: Ee = !1,
80
+ emptyState: ae,
81
+ loading: Te = !1,
80
82
  selectedIds: Y,
81
- selectableFilter: se,
83
+ selectableFilter: ce,
82
84
  getRowId: g,
83
- pagination: o,
85
+ pagination: s,
84
86
  singleExpand: U = !1,
85
- stickyHeader: Fe = !1,
87
+ stickyHeader: Me = !1,
86
88
  onRowClick: T,
87
89
  bulkActions: _
88
90
  }) {
89
- const [Te, re] = u([]), [Me, Ve] = u([]), [W, X] = u(""), [je, q] = u({
90
- pageIndex: o ? o.page - 1 : 0,
91
- pageSize: (o == null ? void 0 : o.pageSize) ?? E ?? 10
92
- }), [x, ae] = u({}), [$e, _e] = u({}), [ce, He] = u({
91
+ const [Ve, re] = u([]), [je, $e] = u([]), [W, X] = u(""), [_e, q] = u({
92
+ pageIndex: s ? s.page - 1 : 0,
93
+ pageSize: (s == null ? void 0 : s.pageSize) ?? E ?? 10
94
+ }), [x, de] = u({}), [He, Ae] = u({}), [ie, Oe] = u({
93
95
  left: (N == null ? void 0 : N.left) ?? [],
94
96
  right: (N == null ? void 0 : N.right) ?? []
95
- }), [de, Oe] = u(Re), [w, J] = u(null), [Be, ie] = u({}), ue = V(null), Q = V(!1);
97
+ }), [ue, Be] = u(De), [w, J] = u(null), [Ke, fe] = u({}), me = V(null), Q = V(!1);
96
98
  D(() => {
97
99
  if (Y) {
98
100
  Q.current = !0;
99
101
  const e = {};
100
102
  Y.forEach((t) => {
101
103
  e[t] = !0;
102
- }), ae(e);
104
+ }), de(e);
103
105
  }
104
106
  }, [Y]), D(() => {
105
- o && q((e) => ({
107
+ s && q((e) => ({
106
108
  ...e,
107
- pageIndex: o.page - 1,
108
- pageSize: o.pageSize
109
+ pageIndex: s.page - 1,
110
+ pageSize: s.pageSize
109
111
  }));
110
- }, [o == null ? void 0 : o.page, o == null ? void 0 : o.pageSize]);
111
- const Ae = j(
112
+ }, [s == null ? void 0 : s.page, s == null ? void 0 : s.pageSize]);
113
+ const Ge = j(
112
114
  (e) => {
113
115
  re((t) => {
114
116
  const l = typeof e == "function" ? e(t) : e;
@@ -116,21 +118,21 @@ function Nt({
116
118
  });
117
119
  },
118
120
  [F]
119
- ), Ke = j(
121
+ ), Le = j(
120
122
  (e) => {
121
- ie((t) => {
123
+ fe((t) => {
122
124
  const l = typeof e == "function" ? e(t) : e;
123
125
  if (!U || l === !0 || typeof l != "object") return l;
124
- const s = typeof t == "object" ? Object.keys(t).filter((f) => t[f]) : [], R = Object.keys(l).filter((f) => l[f]).filter((f) => !s.includes(f));
126
+ const o = typeof t == "object" ? Object.keys(t).filter((m) => t[m]) : [], R = Object.keys(l).filter((m) => l[m]).filter((m) => !o.includes(m));
125
127
  return R.length > 0 ? { [R[R.length - 1]]: !0 } : l;
126
128
  });
127
129
  },
128
130
  [U]
129
- ), Z = V(o == null ? void 0 : o.onPageChange);
131
+ ), Z = V(s == null ? void 0 : s.onPageChange);
130
132
  D(() => {
131
- Z.current = o == null ? void 0 : o.onPageChange;
132
- }, [o == null ? void 0 : o.onPageChange]);
133
- const Ge = j(
133
+ Z.current = s == null ? void 0 : s.onPageChange;
134
+ }, [s == null ? void 0 : s.onPageChange]);
135
+ const Ye = j(
134
136
  (e) => {
135
137
  q((t) => {
136
138
  const l = typeof e == "function" ? e(t) : e;
@@ -138,10 +140,10 @@ function Nt({
138
140
  });
139
141
  },
140
142
  []
141
- ), Le = {
143
+ ), Ue = {
142
144
  id: "_select",
143
145
  header: ({ table: e }) => /* @__PURE__ */ n(
144
- Ne,
146
+ ke,
145
147
  {
146
148
  checked: e.getIsAllPageRowsSelected(),
147
149
  indeterminate: e.getIsSomePageRowsSelected(),
@@ -150,7 +152,7 @@ function Nt({
150
152
  }
151
153
  ),
152
154
  cell: ({ row: e }) => /* @__PURE__ */ n(
153
- Ne,
155
+ ke,
154
156
  {
155
157
  checked: e.getIsSelected(),
156
158
  disabled: !e.getCanSelect(),
@@ -161,7 +163,7 @@ function Nt({
161
163
  enableSorting: !1,
162
164
  enableColumnFilter: !1,
163
165
  enableHiding: !1
164
- }, Ye = {
166
+ }, We = {
165
167
  id: "_expand",
166
168
  header: () => null,
167
169
  cell: ({ row: e }) => /* @__PURE__ */ n(
@@ -170,12 +172,12 @@ function Nt({
170
172
  type: "button",
171
173
  onClick: () => e.toggleExpanded(),
172
174
  "aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
173
- className: "flex items-center justify-center p-ds-01 rounded-ds-sm hover:bg-layer-02 transition-colors",
175
+ className: "flex items-center justify-center p-ds-01 rounded-ds-sm hover:bg-surface-2 transition-colors",
174
176
  children: /* @__PURE__ */ n(
175
- Se,
177
+ Ne,
176
178
  {
177
179
  size: 16,
178
- className: r(
180
+ className: a(
179
181
  "transition-transform duration-moderate-02",
180
182
  e.getIsExpanded() && "rotate-90"
181
183
  ),
@@ -188,46 +190,46 @@ function Nt({
188
190
  enableColumnFilter: !1,
189
191
  enableHiding: !1
190
192
  }, k = [
191
- ...C ? [Le] : [],
192
- ...$ ? [Ye] : [],
193
- ...A
194
- ], M = !!o, v = i || M, y = {
195
- columnVisibility: $e,
196
- columnPinning: ce
193
+ ...C ? [Ue] : [],
194
+ ...$ ? [We] : [],
195
+ ...B
196
+ ], M = !!s, v = i || M, y = {
197
+ columnVisibility: He,
198
+ columnPinning: ie
197
199
  };
198
- S && (y.sorting = Te), (p || h) && (y.columnFilters = Me, y.globalFilter = W), v && (y.pagination = je), C && (y.rowSelection = x), $ && (y.expanded = Be);
199
- const me = S && !!F, a = lt({
200
- data: m,
200
+ S && (y.sorting = Ve), (p || h) && (y.columnFilters = je, y.globalFilter = W), v && (y.pagination = _e), C && (y.rowSelection = x), $ && (y.expanded = Ke);
201
+ const ge = S && !!F, c = st({
202
+ data: f,
201
203
  columns: k,
202
204
  state: y,
203
- onColumnVisibilityChange: _e,
204
- onColumnPinningChange: He,
205
- getCoreRowModel: at(),
205
+ onColumnVisibilityChange: Ae,
206
+ onColumnPinningChange: Oe,
207
+ getCoreRowModel: dt(),
206
208
  ...S && {
207
- onSortingChange: me ? Ae : re,
208
- ...me ? { manualSorting: !0 } : { getSortedRowModel: rt() }
209
+ onSortingChange: ge ? Ge : re,
210
+ ...ge ? { manualSorting: !0 } : { getSortedRowModel: rt() }
209
211
  },
210
212
  ...(p || h) && {
211
- onColumnFiltersChange: Ve,
213
+ onColumnFiltersChange: $e,
212
214
  onGlobalFilterChange: X,
213
- getFilteredRowModel: st()
215
+ getFilteredRowModel: ct()
214
216
  },
215
217
  ...v && {
216
- onPaginationChange: M ? Ge : q,
218
+ onPaginationChange: M ? Ye : q,
217
219
  ...M ? {
218
220
  manualPagination: !0,
219
221
  pageCount: Math.ceil(
220
- o.total / o.pageSize
222
+ s.total / s.pageSize
221
223
  )
222
- } : { getPaginationRowModel: ot() }
224
+ } : { getPaginationRowModel: at() }
223
225
  },
224
226
  ...C && {
225
- onRowSelectionChange: ae,
226
- enableRowSelection: se ? (e) => se(e.original) : !0
227
+ onRowSelectionChange: de,
228
+ enableRowSelection: ce ? (e) => ce(e.original) : !0
227
229
  },
228
230
  ...$ && {
229
- onExpandedChange: U ? Ke : ie,
230
- getExpandedRowModel: nt()
231
+ onExpandedChange: U ? Le : fe,
232
+ getExpandedRowModel: ot()
231
233
  },
232
234
  ...g && {
233
235
  getRowId: (e) => g(e)
@@ -241,150 +243,150 @@ function Nt({
241
243
  return;
242
244
  }
243
245
  if (!P.current) return;
244
- const e = Object.keys(x).filter((l) => x[l]), t = m.filter((l, s) => {
245
- const c = g ? g(m[s]) : String(s);
246
- return e.includes(c);
246
+ const e = Object.keys(x).filter((l) => x[l]), t = f.filter((l, o) => {
247
+ const r = g ? g(f[o]) : String(o);
248
+ return e.includes(r);
247
249
  });
248
250
  P.current(t);
249
- }, [x, m, g]);
250
- function fe(e) {
251
- const { left: t = [], right: l = [] } = ce, s = t.indexOf(e), c = l.indexOf(e);
252
- return s !== -1 ? {
253
- className: "sticky bg-layer-01 z-raised",
251
+ }, [x, f, g]);
252
+ function pe(e) {
253
+ const { left: t = [], right: l = [] } = ie, o = t.indexOf(e), r = l.indexOf(e);
254
+ return o !== -1 ? {
255
+ className: "sticky bg-surface-1 z-raised",
254
256
  style: { left: 0 }
255
- } : c !== -1 ? {
256
- className: "sticky bg-layer-01 z-raised",
257
+ } : r !== -1 ? {
258
+ className: "sticky bg-surface-1 z-raised",
257
259
  style: { right: 0 }
258
260
  } : { className: "", style: {} };
259
261
  }
260
- function Ue(e) {
261
- if (!ze || e === "_select" || e === "_expand") return !1;
262
- const t = a.getColumn(e);
262
+ function Xe(e) {
263
+ if (!Ie || e === "_select" || e === "_expand") return !1;
264
+ const t = c.getColumn(e);
263
265
  if (!t) return !1;
264
266
  const l = t.columnDef.meta;
265
267
  return (l == null ? void 0 : l.enableEditing) !== !1;
266
268
  }
267
- const ge = yt[de], H = a.getRowModel().rows, pe = ct({
269
+ const he = Nt[ue], H = c.getRowModel().rows, be = it({
268
270
  count: b ? H.length : 0,
269
- getScrollElement: () => ue.current,
270
- estimateSize: () => De,
271
+ getScrollElement: () => me.current,
272
+ estimateSize: () => Ee,
271
273
  overscan: 10
272
- }), We = (o == null ? void 0 : o.pageSize) ?? E ?? 5, Xe = k.length, qe = j(
274
+ }), qe = (s == null ? void 0 : s.pageSize) ?? E ?? 5, Je = k.length, Qe = j(
273
275
  (e, t) => {
274
- !T || t.target.closest(Ct) || T(e);
276
+ !T || t.target.closest(kt) || T(e);
275
277
  },
276
278
  [T]
277
279
  );
278
- function he(e, t) {
280
+ function xe(e, t) {
279
281
  const l = e.getVisibleCells();
280
282
  return /* @__PURE__ */ n(
281
283
  z,
282
284
  {
283
285
  "data-state": e.getIsSelected() && "selected",
284
286
  style: t,
285
- className: r(
287
+ className: a(
286
288
  b ? "absolute w-full flex" : void 0,
287
289
  T && "cursor-pointer"
288
290
  ),
289
- onClick: T ? (s) => qe(e.original, s) : void 0,
290
- children: l.map((s) => {
291
- const c = fe(s.column.id), R = (w == null ? void 0 : w.rowIndex) === e.index && (w == null ? void 0 : w.columnId) === s.column.id;
291
+ onClick: T ? (o) => Qe(e.original, o) : void 0,
292
+ children: l.map((o) => {
293
+ const r = pe(o.column.id), R = (w == null ? void 0 : w.rowIndex) === e.index && (w == null ? void 0 : w.columnId) === o.column.id;
292
294
  return /* @__PURE__ */ n(
293
- B,
295
+ O,
294
296
  {
295
- className: r(
296
- ge,
297
- c.className,
297
+ className: a(
298
+ he,
299
+ r.className,
298
300
  b && "flex-1"
299
301
  ),
300
- style: c.style,
302
+ style: r.style,
301
303
  onDoubleClick: () => {
302
- Ue(s.column.id) && J({
304
+ Xe(o.column.id) && J({
303
305
  rowIndex: e.index,
304
- columnId: s.column.id
306
+ columnId: o.column.id
305
307
  });
306
308
  },
307
309
  children: R ? /* @__PURE__ */ n(
308
- St,
310
+ wt,
309
311
  {
310
- initialValue: String(s.getValue() ?? ""),
311
- onSave: (f) => {
312
- L == null || L(e.index, s.column.id, f), J(null);
312
+ initialValue: String(o.getValue() ?? ""),
313
+ onSave: (m) => {
314
+ L == null || L(e.index, o.column.id, m), J(null);
313
315
  },
314
316
  onCancel: () => J(null)
315
317
  }
316
- ) : te(s.column.columnDef.cell, s.getContext())
318
+ ) : te(o.column.columnDef.cell, o.getContext())
317
319
  },
318
- s.id
320
+ o.id
319
321
  );
320
322
  })
321
323
  },
322
324
  e.id
323
325
  );
324
326
  }
325
- function Je(e, t) {
326
- return !$ || !e.getIsExpanded() || !ne ? null : /* @__PURE__ */ n(
327
+ function Ze(e, t) {
328
+ return !$ || !e.getIsExpanded() || !oe ? null : /* @__PURE__ */ n(
327
329
  z,
328
330
  {
329
331
  style: t,
330
332
  className: b ? "absolute w-full flex" : void 0,
331
333
  children: /* @__PURE__ */ n(
332
- B,
334
+ O,
333
335
  {
334
336
  colSpan: k.length,
335
- className: r(
336
- "bg-layer-02 p-ds-05",
337
+ className: a(
338
+ "bg-surface-2 p-ds-05",
337
339
  b && "flex-1"
338
340
  ),
339
- children: ne(e.original)
341
+ children: oe(e.original)
340
342
  }
341
343
  )
342
344
  },
343
345
  `${e.id}-expanded`
344
346
  );
345
347
  }
346
- function Qe() {
348
+ function ve() {
347
349
  const e = ["w-3/4", "w-1/2", "w-2/3", "w-full"];
348
- return /* @__PURE__ */ n(O, { children: Array.from({ length: We }, (t, l) => /* @__PURE__ */ n(z, { children: Array.from({ length: Xe }, (s, c) => {
349
- var xe, ye;
350
- const f = (((xe = k[c]) == null ? void 0 : xe.id) ?? ((ye = k[c]) == null ? void 0 : ye.header)) === "_select";
350
+ return /* @__PURE__ */ n(A, { children: Array.from({ length: qe }, (t, l) => /* @__PURE__ */ n(z, { children: Array.from({ length: Je }, (o, r) => {
351
+ var Se, Ce;
352
+ const m = (((Se = k[r]) == null ? void 0 : Se.id) ?? ((Ce = k[r]) == null ? void 0 : Ce.header)) === "_select";
351
353
  return /* @__PURE__ */ n(
352
- B,
354
+ O,
353
355
  {
354
- className: ge,
355
- children: f ? /* @__PURE__ */ n(we, { variant: "text", className: "h-4 w-4", animation: "pulse" }) : /* @__PURE__ */ n(we, { variant: "text", className: r("h-4", e[c % e.length]), animation: "pulse" })
356
+ className: he,
357
+ children: m ? /* @__PURE__ */ n(Re, { variant: "text", className: "h-4 w-4", animation: "pulse" }) : /* @__PURE__ */ n(Re, { variant: "text", className: a("h-4", e[r % e.length]), animation: "pulse" })
356
358
  },
357
- `skeleton-${l}-${c}`
359
+ `skeleton-${l}-${r}`
358
360
  );
359
361
  }) }, `skeleton-${l}`)) });
360
362
  }
361
- function Ze() {
362
- if (Ee)
363
- return Qe();
363
+ function Pe() {
364
+ if (Te)
365
+ return ve();
364
366
  if (!H.length)
365
- return /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(
366
- B,
367
+ return /* @__PURE__ */ n(A, { children: /* @__PURE__ */ n(z, { children: /* @__PURE__ */ n(
368
+ O,
367
369
  {
368
370
  colSpan: k.length,
369
- className: r(
371
+ className: a(
370
372
  "h-24 text-center",
371
- !oe && "text-text-tertiary"
373
+ !ae && "text-surface-fg-subtle"
372
374
  ),
373
- children: oe || I || "No results."
375
+ children: ae || I || "No results."
374
376
  }
375
377
  ) }) });
376
378
  if (b) {
377
- const e = pe.getVirtualItems(), t = pe.getTotalSize();
379
+ const e = be.getVirtualItems(), t = be.getTotalSize();
378
380
  return /* @__PURE__ */ n(
379
- O,
381
+ A,
380
382
  {
381
383
  style: {
382
384
  height: `${t}px`,
383
385
  position: "relative"
384
386
  },
385
387
  children: e.map((l) => {
386
- const s = H[l.index];
387
- return he(s, {
388
+ const o = H[l.index];
389
+ return xe(o, {
388
390
  position: "absolute",
389
391
  top: 0,
390
392
  left: 0,
@@ -396,42 +398,42 @@ function Nt({
396
398
  }
397
399
  );
398
400
  }
399
- return /* @__PURE__ */ n(O, { children: H.map((e) => /* @__PURE__ */ d(et.Fragment, { children: [
400
- he(e),
401
- Je(e)
401
+ return /* @__PURE__ */ n(A, { children: H.map((e) => /* @__PURE__ */ d(nt.Fragment, { children: [
402
+ xe(e),
403
+ Ze(e)
402
404
  ] }, e.id)) });
403
405
  }
404
- const ee = tt(() => {
406
+ const ee = lt(() => {
405
407
  if (!_ || !C) return [];
406
408
  const e = Object.keys(x).filter((t) => x[t]);
407
- return m.filter((t, l) => {
408
- const s = g ? g(m[l]) : String(l);
409
- return e.includes(s);
409
+ return f.filter((t, l) => {
410
+ const o = g ? g(f[l]) : String(l);
411
+ return e.includes(o);
410
412
  });
411
- }, [_, C, x, m, g]), ve = ee.length > 0, Pe = M ? o.total : a.getFilteredRowModel().rows.length, be = /* @__PURE__ */ d(pt, { children: [
413
+ }, [_, C, x, f, g]), et = ee.length > 0, tt = M ? s.total : c.getFilteredRowModel().rows.length, ye = /* @__PURE__ */ d(bt, { children: [
412
414
  /* @__PURE__ */ d(
413
- ht,
415
+ xt,
414
416
  {
415
- className: r(
416
- Fe && "sticky top-0 z-10 bg-surface"
417
+ className: a(
418
+ Me && "sticky top-0 z-10 bg-surface-1"
417
419
  ),
418
420
  children: [
419
- a.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => {
420
- const l = S && t.column.getCanSort(), s = t.column.getIsSorted(), c = fe(t.column.id);
421
+ c.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => {
422
+ const l = S && t.column.getCanSort(), o = t.column.getIsSorted(), r = pe(t.column.id);
421
423
  return /* @__PURE__ */ n(
422
- Ce,
424
+ we,
423
425
  {
424
- className: c.className,
425
- style: c.style,
426
+ className: r.className,
427
+ style: r.style,
426
428
  children: t.isPlaceholder ? null : l ? /* @__PURE__ */ d(
427
429
  "button",
428
430
  {
429
431
  type: "button",
430
- className: r(
432
+ className: a(
431
433
  "flex items-center gap-ds-01 font-medium",
432
434
  "cursor-pointer select-none",
433
435
  "-ml-ds-01 rounded-ds-sm px-ds-01 py-ds-01",
434
- "hover:bg-layer-02 transition-colors"
436
+ "hover:bg-surface-2 transition-colors"
435
437
  ),
436
438
  onClick: t.column.getToggleSortingHandler(),
437
439
  "aria-label": `Sort by ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : t.column.id}`,
@@ -440,25 +442,58 @@ function Nt({
440
442
  t.column.columnDef.header,
441
443
  t.getContext()
442
444
  ),
443
- s === "asc" ? /* @__PURE__ */ n(
444
- dt,
445
+ /* @__PURE__ */ n(Ct, { mode: "wait", initial: !1, children: o === "asc" ? /* @__PURE__ */ n(
446
+ le.span,
445
447
  {
446
- className: "h-ico-sm w-ico-sm text-text-secondary",
447
- "aria-hidden": "true"
448
- }
449
- ) : s === "desc" ? /* @__PURE__ */ n(
450
- it,
448
+ initial: { opacity: 0, rotate: 90 },
449
+ animate: { opacity: 1, rotate: 0 },
450
+ exit: { opacity: 0, rotate: -90 },
451
+ transition: ne.snappy,
452
+ className: "inline-flex",
453
+ children: /* @__PURE__ */ n(
454
+ ut,
455
+ {
456
+ className: "h-ico-sm w-ico-sm text-surface-fg-muted",
457
+ "aria-hidden": "true"
458
+ }
459
+ )
460
+ },
461
+ "asc"
462
+ ) : o === "desc" ? /* @__PURE__ */ n(
463
+ le.span,
451
464
  {
452
- className: "h-ico-sm w-ico-sm text-text-secondary",
453
- "aria-hidden": "true"
454
- }
465
+ initial: { opacity: 0, rotate: -90 },
466
+ animate: { opacity: 1, rotate: 0 },
467
+ exit: { opacity: 0, rotate: 90 },
468
+ transition: ne.snappy,
469
+ className: "inline-flex",
470
+ children: /* @__PURE__ */ n(
471
+ ft,
472
+ {
473
+ className: "h-ico-sm w-ico-sm text-surface-fg-muted",
474
+ "aria-hidden": "true"
475
+ }
476
+ )
477
+ },
478
+ "desc"
455
479
  ) : /* @__PURE__ */ n(
456
- ut,
480
+ le.span,
457
481
  {
458
- className: "h-ico-sm w-ico-sm text-text-tertiary",
459
- "aria-hidden": "true"
460
- }
461
- )
482
+ initial: { opacity: 0 },
483
+ animate: { opacity: 1 },
484
+ exit: { opacity: 0 },
485
+ transition: ne.snappy,
486
+ className: "inline-flex",
487
+ children: /* @__PURE__ */ n(
488
+ mt,
489
+ {
490
+ className: "h-ico-sm w-ico-sm text-surface-fg-subtle",
491
+ "aria-hidden": "true"
492
+ }
493
+ )
494
+ },
495
+ "unsorted"
496
+ ) })
462
497
  ]
463
498
  }
464
499
  ) : te(
@@ -469,7 +504,7 @@ function Nt({
469
504
  t.id
470
505
  );
471
506
  }) }, e.id)),
472
- p && a.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => /* @__PURE__ */ n(Ce, { className: "py-ds-01", children: t.isPlaceholder || t.column.columnDef.enableColumnFilter === !1 ? null : /* @__PURE__ */ n(
507
+ p && c.getHeaderGroups().map((e) => /* @__PURE__ */ n(z, { children: e.headers.map((t) => /* @__PURE__ */ n(we, { className: "py-ds-01", children: t.isPlaceholder || t.column.columnDef.enableColumnFilter === !1 ? null : /* @__PURE__ */ n(
473
508
  "input",
474
509
  {
475
510
  type: "text",
@@ -477,38 +512,38 @@ function Nt({
477
512
  onChange: (l) => t.column.setFilterValue(l.target.value),
478
513
  placeholder: `Filter ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : ""}...`,
479
514
  "aria-label": `Filter ${typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : t.column.id}`,
480
- className: r(
515
+ className: a(
481
516
  "h-ds-xs-plus w-full rounded-ds-md",
482
- "border border-border bg-field",
517
+ "border border-surface-border-strong bg-surface-3",
483
518
  "px-ds-02 text-ds-sm",
484
- "text-text-primary placeholder:text-text-placeholder",
485
- "outline-none focus:border-[var(--color-border-focus)]"
519
+ "text-surface-fg placeholder:text-surface-fg-subtle",
520
+ "outline-none focus:border-accent-7"
486
521
  )
487
522
  }
488
523
  ) }, `${t.id}-filter`)) }, `${e.id}-filters`))
489
524
  ]
490
525
  }
491
526
  ),
492
- Ze()
527
+ Pe()
493
528
  ] });
494
- return /* @__PURE__ */ d("div", { className: r(K), children: [
495
- le && /* @__PURE__ */ n(
496
- xt,
529
+ return /* @__PURE__ */ d("div", { className: a(K), children: [
530
+ se && /* @__PURE__ */ n(
531
+ St,
497
532
  {
498
- table: a,
533
+ table: c,
499
534
  globalFilter: h,
500
535
  globalFilterValue: W,
501
536
  onGlobalFilterChange: X,
502
- density: de,
503
- onDensityChange: Oe
537
+ density: ue,
538
+ onDensityChange: Be
504
539
  }
505
540
  ),
506
- h && !le && /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pb-ds-04 border-b border-border-subtle mb-ds-04", children: [
541
+ h && !se && /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03 pb-ds-04 border-b border-surface-border mb-ds-04", children: [
507
542
  /* @__PURE__ */ n(
508
- mt,
543
+ gt,
509
544
  {
510
545
  size: 16,
511
- className: "text-icon-secondary",
546
+ className: "text-surface-fg-subtle",
512
547
  "aria-hidden": "true"
513
548
  }
514
549
  ),
@@ -520,9 +555,9 @@ function Nt({
520
555
  onChange: (e) => X(e.target.value),
521
556
  placeholder: "Search all columns...",
522
557
  "aria-label": "Search all columns",
523
- className: r(
558
+ className: a(
524
559
  "flex-1 bg-transparent text-ds-md",
525
- "text-text-primary placeholder:text-text-placeholder",
560
+ "text-surface-fg placeholder:text-surface-fg-subtle",
526
561
  "outline-none"
527
562
  )
528
563
  }
@@ -531,32 +566,32 @@ function Nt({
531
566
  b ? /* @__PURE__ */ n(
532
567
  "div",
533
568
  {
534
- ref: ue,
535
- style: { maxHeight: `${Ie}px`, overflowY: "auto" },
536
- children: be
569
+ ref: me,
570
+ style: { maxHeight: `${Fe}px`, overflowY: "auto" },
571
+ children: ye
537
572
  }
538
- ) : be,
539
- v && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-ds-03 py-ds-04 border-t border-border-subtle", children: [
540
- /* @__PURE__ */ d("span", { className: "text-ds-sm text-text-secondary", children: [
541
- Pe,
573
+ ) : ye,
574
+ v && /* @__PURE__ */ d("div", { className: "flex items-center justify-between px-ds-03 py-ds-04 border-t border-surface-border", children: [
575
+ /* @__PURE__ */ d("span", { className: "text-ds-sm text-surface-fg-muted", children: [
576
+ tt,
542
577
  " total rows"
543
578
  ] }),
544
579
  /* @__PURE__ */ d("div", { className: "flex items-center gap-ds-03", children: [
545
580
  !M && /* @__PURE__ */ n(
546
581
  "select",
547
582
  {
548
- value: a.getState().pagination.pageSize,
583
+ value: c.getState().pagination.pageSize,
549
584
  onChange: (e) => {
550
- a.setPageSize(Number(e.target.value));
585
+ c.setPageSize(Number(e.target.value));
551
586
  },
552
587
  "aria-label": "Rows per page",
553
- className: r(
588
+ className: a(
554
589
  "h-ds-sm rounded-ds-md",
555
- "border border-border bg-field",
590
+ "border border-surface-border-strong bg-surface-3",
556
591
  "px-ds-03 text-ds-sm",
557
- "text-text-primary"
592
+ "text-surface-fg"
558
593
  ),
559
- children: (ke ?? [10, 20, 50, 100]).map((e) => /* @__PURE__ */ d("option", { value: e, children: [
594
+ children: (ze ?? [10, 20, 50, 100]).map((e) => /* @__PURE__ */ d("option", { value: e, children: [
560
595
  e,
561
596
  " rows"
562
597
  ] }, e))
@@ -566,64 +601,64 @@ function Nt({
566
601
  "button",
567
602
  {
568
603
  type: "button",
569
- disabled: !a.getCanPreviousPage(),
570
- onClick: () => a.previousPage(),
604
+ disabled: !c.getCanPreviousPage(),
605
+ onClick: () => c.previousPage(),
571
606
  "aria-label": "Previous page",
572
- className: r(
607
+ className: a(
573
608
  "h-ds-sm w-ds-sm flex items-center justify-center",
574
- "rounded-ds-md border border-border",
575
- "enabled:hover:bg-layer-02",
576
- "disabled:opacity-[0.38] disabled:cursor-not-allowed",
609
+ "rounded-ds-md border border-surface-border-strong",
610
+ "enabled:hover:bg-surface-2",
611
+ "disabled:opacity-action-disabled disabled:cursor-not-allowed",
577
612
  "transition-colors"
578
613
  ),
579
- children: /* @__PURE__ */ n(ft, { size: 16, "aria-hidden": "true" })
614
+ children: /* @__PURE__ */ n(pt, { size: 16, "aria-hidden": "true" })
580
615
  }
581
616
  ),
582
- /* @__PURE__ */ d("span", { className: "text-ds-sm text-text-secondary", children: [
617
+ /* @__PURE__ */ d("span", { className: "text-ds-sm text-surface-fg-muted", children: [
583
618
  "Page ",
584
- a.getState().pagination.pageIndex + 1,
619
+ c.getState().pagination.pageIndex + 1,
585
620
  " of",
586
621
  " ",
587
- a.getPageCount()
622
+ c.getPageCount()
588
623
  ] }),
589
624
  /* @__PURE__ */ n(
590
625
  "button",
591
626
  {
592
627
  type: "button",
593
- disabled: !a.getCanNextPage(),
594
- onClick: () => a.nextPage(),
628
+ disabled: !c.getCanNextPage(),
629
+ onClick: () => c.nextPage(),
595
630
  "aria-label": "Next page",
596
- className: r(
631
+ className: a(
597
632
  "h-ds-sm w-ds-sm flex items-center justify-center",
598
- "rounded-ds-md border border-border",
599
- "enabled:hover:bg-layer-02",
600
- "disabled:opacity-[0.38] disabled:cursor-not-allowed",
633
+ "rounded-ds-md border border-surface-border-strong",
634
+ "enabled:hover:bg-surface-2",
635
+ "disabled:opacity-action-disabled disabled:cursor-not-allowed",
601
636
  "transition-colors"
602
637
  ),
603
- children: /* @__PURE__ */ n(Se, { size: 16, "aria-hidden": "true" })
638
+ children: /* @__PURE__ */ n(Ne, { size: 16, "aria-hidden": "true" })
604
639
  }
605
640
  )
606
641
  ] })
607
642
  ] }),
608
- _ && C && ve && /* @__PURE__ */ d(
643
+ _ && C && et && /* @__PURE__ */ d(
609
644
  "div",
610
645
  {
611
- className: r(
646
+ className: a(
612
647
  "fixed bottom-6 left-1/2 -translate-x-1/2 z-50",
613
648
  "flex items-center gap-ds-04 px-ds-05 py-ds-03",
614
- "rounded-ds-lg border border-border bg-surface shadow-lg",
649
+ "rounded-ds-lg border border-surface-border-strong bg-surface-1 shadow-lg",
615
650
  "animate-in slide-in-from-bottom-2"
616
651
  ),
617
652
  role: "toolbar",
618
653
  "aria-label": "Bulk actions",
619
654
  children: [
620
- /* @__PURE__ */ d("span", { className: "text-ds-sm font-medium text-text-primary whitespace-nowrap", children: [
655
+ /* @__PURE__ */ d("span", { className: "text-ds-sm font-medium text-surface-fg whitespace-nowrap", children: [
621
656
  ee.length,
622
657
  " selected"
623
658
  ] }),
624
- /* @__PURE__ */ n("div", { className: "h-5 w-px bg-border", "aria-hidden": "true" }),
659
+ /* @__PURE__ */ n("div", { className: "h-5 w-px bg-surface-border", "aria-hidden": "true" }),
625
660
  _.map((e) => /* @__PURE__ */ n(
626
- bt,
661
+ yt,
627
662
  {
628
663
  size: "sm",
629
664
  variant: e.color === "error" ? "destructive" : "outline",
@@ -637,14 +672,14 @@ function Nt({
637
672
  "button",
638
673
  {
639
674
  type: "button",
640
- onClick: () => a.resetRowSelection(),
675
+ onClick: () => c.resetRowSelection(),
641
676
  "aria-label": "Clear selection",
642
- className: r(
677
+ className: a(
643
678
  "flex items-center justify-center p-ds-01",
644
- "rounded-ds-sm hover:bg-layer-02 transition-colors",
645
- "text-text-secondary hover:text-text-primary"
679
+ "rounded-ds-sm hover:bg-surface-2 transition-colors",
680
+ "text-surface-fg-muted hover:text-surface-fg"
646
681
  ),
647
- children: /* @__PURE__ */ n(gt, { size: 16, "aria-hidden": "true" })
682
+ children: /* @__PURE__ */ n(ht, { size: 16, "aria-hidden": "true" })
648
683
  }
649
684
  )
650
685
  ]
@@ -652,7 +687,7 @@ function Nt({
652
687
  )
653
688
  ] });
654
689
  }
655
- Nt.displayName = "DataTable";
690
+ Rt.displayName = "DataTable";
656
691
  export {
657
- Nt as DataTable
692
+ Rt as DataTable
658
693
  };