asterui 0.12.30 → 0.12.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.
Files changed (326) hide show
  1. package/dist/chart.d.ts +2 -0
  2. package/dist/chart.js +5 -0
  3. package/dist/chart.js.map +1 -0
  4. package/dist/{index2.js → components/Affix.js} +1 -1
  5. package/dist/components/Affix.js.map +1 -0
  6. package/dist/{index4.js → components/Alert.js} +1 -1
  7. package/dist/components/Alert.js.map +1 -0
  8. package/dist/{index3.js → components/Anchor.js} +1 -1
  9. package/dist/components/Anchor.js.map +1 -0
  10. package/dist/{index5.js → components/Autocomplete.js} +1 -1
  11. package/dist/components/Autocomplete.js.map +1 -0
  12. package/dist/{index6.js → components/Avatar.js} +1 -1
  13. package/dist/components/Avatar.js.map +1 -0
  14. package/dist/{index7.js → components/Badge.js} +1 -1
  15. package/dist/components/Badge.js.map +1 -0
  16. package/dist/components/Breadcrumb.js +38 -0
  17. package/dist/components/Breadcrumb.js.map +1 -0
  18. package/dist/{index53.js → components/Browser.js} +1 -1
  19. package/dist/components/Browser.js.map +1 -0
  20. package/dist/{index9.js → components/Button.js} +1 -1
  21. package/dist/components/Button.js.map +1 -0
  22. package/dist/{index14.js → components/Card.js} +22 -22
  23. package/dist/{index14.js.map → components/Card.js.map} +1 -1
  24. package/dist/{index17.js → components/Carousel.js} +1 -1
  25. package/dist/components/Carousel.js.map +1 -0
  26. package/dist/{index15.js → components/Cascader.js} +1 -1
  27. package/dist/components/Cascader.js.map +1 -0
  28. package/dist/{index16.js → components/Chart.js} +1 -1
  29. package/dist/components/Chart.js.map +1 -0
  30. package/dist/{index12.js → components/Chat.js} +1 -1
  31. package/dist/{index12.js.map → components/Chat.js.map} +1 -1
  32. package/dist/{index11.js → components/Checkbox.js} +15 -15
  33. package/dist/components/Checkbox.js.map +1 -0
  34. package/dist/{index54.js → components/Code.js} +5 -5
  35. package/dist/{index54.js.map → components/Code.js.map} +1 -1
  36. package/dist/{index18.js → components/Collapse.js} +1 -1
  37. package/dist/components/Collapse.js.map +1 -0
  38. package/dist/{index13.js → components/ColorPicker.js} +1 -1
  39. package/dist/components/ColorPicker.js.map +1 -0
  40. package/dist/{index19.js → components/Container.js} +1 -1
  41. package/dist/components/Container.js.map +1 -0
  42. package/dist/{index20.js → components/ContextMenu.js} +9 -9
  43. package/dist/components/ContextMenu.js.map +1 -0
  44. package/dist/{index10.js → components/CopyButton.js} +2 -2
  45. package/dist/components/CopyButton.js.map +1 -0
  46. package/dist/{index21.js → components/Countdown.js} +1 -1
  47. package/dist/components/Countdown.js.map +1 -0
  48. package/dist/{index22.js → components/DatePicker.js} +2 -2
  49. package/dist/components/DatePicker.js.map +1 -0
  50. package/dist/{index23.js → components/Descriptions.js} +23 -23
  51. package/dist/components/Descriptions.js.map +1 -0
  52. package/dist/{index24.js → components/Diff.js} +1 -1
  53. package/dist/{index24.js.map → components/Diff.js.map} +1 -1
  54. package/dist/{index26.js → components/Divider.js} +1 -1
  55. package/dist/components/Divider.js.map +1 -0
  56. package/dist/{index25.js → components/Dock.js} +1 -1
  57. package/dist/{index25.js.map → components/Dock.js.map} +1 -1
  58. package/dist/{index27.js → components/Drawer.js} +1 -1
  59. package/dist/components/Drawer.js.map +1 -0
  60. package/dist/{index40.js → components/Dropdown.js} +31 -31
  61. package/dist/components/Dropdown.js.map +1 -0
  62. package/dist/{index41.js → components/Empty.js} +1 -1
  63. package/dist/components/Empty.js.map +1 -0
  64. package/dist/{index29.js → components/Fieldset.js} +1 -1
  65. package/dist/components/Fieldset.js.map +1 -0
  66. package/dist/{index30.js → components/FileInput.js} +1 -1
  67. package/dist/components/FileInput.js.map +1 -0
  68. package/dist/{index31.js → components/Filter.js} +1 -1
  69. package/dist/components/Filter.js.map +1 -0
  70. package/dist/{index32.js → components/Flex.js} +1 -1
  71. package/dist/{index32.js.map → components/Flex.js.map} +1 -1
  72. package/dist/{index33.js → components/FloatButton.js} +1 -1
  73. package/dist/components/FloatButton.js.map +1 -0
  74. package/dist/{index34.js → components/Footer.js} +1 -1
  75. package/dist/components/Footer.js.map +1 -0
  76. package/dist/{index35.js → components/Form.js} +1 -1
  77. package/dist/{index35.js.map → components/Form.js.map} +1 -1
  78. package/dist/{index36.js → components/Grid.js} +6 -6
  79. package/dist/{index36.js.map → components/Grid.js.map} +1 -1
  80. package/dist/{index37.js → components/Hero.js} +1 -1
  81. package/dist/{index37.js.map → components/Hero.js.map} +1 -1
  82. package/dist/{index38.js → components/HoverGallery.js} +1 -1
  83. package/dist/components/HoverGallery.js.map +1 -0
  84. package/dist/{index39.js → components/Image.js} +1 -1
  85. package/dist/components/Image.js.map +1 -0
  86. package/dist/{index42.js → components/Input.js} +1 -1
  87. package/dist/components/Input.js.map +1 -0
  88. package/dist/{index43.js → components/InputNumber.js} +1 -1
  89. package/dist/components/InputNumber.js.map +1 -0
  90. package/dist/components/Join.js +18 -0
  91. package/dist/{index44.js.map → components/Join.js.map} +1 -1
  92. package/dist/{index45.js → components/Kbd.js} +1 -1
  93. package/dist/components/Kbd.js.map +1 -0
  94. package/dist/{index46.js → components/Layout.js} +16 -16
  95. package/dist/components/Layout.js.map +1 -0
  96. package/dist/{index47.js → components/List.js} +17 -17
  97. package/dist/{index47.js.map → components/List.js.map} +1 -1
  98. package/dist/{index48.js → components/Loading.js} +1 -1
  99. package/dist/components/Loading.js.map +1 -0
  100. package/dist/{index49.js → components/Mask.js} +1 -1
  101. package/dist/{index49.js.map → components/Mask.js.map} +1 -1
  102. package/dist/{index50.js → components/Masonry.js} +19 -19
  103. package/dist/components/Masonry.js.map +1 -0
  104. package/dist/{index51.js → components/Mention.js} +1 -1
  105. package/dist/components/Mention.js.map +1 -0
  106. package/dist/{index52.js → components/Menu.js} +1 -1
  107. package/dist/{index52.js.map → components/Menu.js.map} +1 -1
  108. package/dist/{index57.js → components/Modal.js} +23 -23
  109. package/dist/components/Modal.js.map +1 -0
  110. package/dist/{index58.js → components/Navbar.js} +1 -1
  111. package/dist/components/Navbar.js.map +1 -0
  112. package/dist/{index59.js → components/Notification.js} +1 -1
  113. package/dist/components/Notification.js.map +1 -0
  114. package/dist/{index60.js → components/OTPInput.js} +1 -1
  115. package/dist/components/OTPInput.js.map +1 -0
  116. package/dist/{index62.js → components/PageLayout.js} +1 -1
  117. package/dist/components/PageLayout.js.map +1 -0
  118. package/dist/{index61.js → components/Pagination.js} +18 -18
  119. package/dist/components/Pagination.js.map +1 -0
  120. package/dist/{index55.js → components/Phone.js} +1 -1
  121. package/dist/components/Phone.js.map +1 -0
  122. package/dist/{index63.js → components/Popconfirm.js} +14 -14
  123. package/dist/components/Popconfirm.js.map +1 -0
  124. package/dist/{index64.js → components/Popover.js} +1 -1
  125. package/dist/components/Popover.js.map +1 -0
  126. package/dist/{index65.js → components/Progress.js} +1 -1
  127. package/dist/components/Progress.js.map +1 -0
  128. package/dist/{index66.js → components/QRCode.js} +1 -1
  129. package/dist/components/QRCode.js.map +1 -0
  130. package/dist/{index68.js → components/RadialProgress.js} +1 -1
  131. package/dist/components/RadialProgress.js.map +1 -0
  132. package/dist/{index67.js → components/Radio.js} +13 -13
  133. package/dist/components/Radio.js.map +1 -0
  134. package/dist/{index69.js → components/Range.js} +1 -1
  135. package/dist/components/Range.js.map +1 -0
  136. package/dist/{index70.js → components/Rating.js} +20 -20
  137. package/dist/components/Rating.js.map +1 -0
  138. package/dist/{index98.js → components/Responsive.js} +2 -2
  139. package/dist/components/Responsive.js.map +1 -0
  140. package/dist/{index71.js → components/Result.js} +1 -1
  141. package/dist/components/Result.js.map +1 -0
  142. package/dist/{index73.js → components/Segmented.js} +1 -1
  143. package/dist/components/Segmented.js.map +1 -0
  144. package/dist/{index72.js → components/Select.js} +1 -1
  145. package/dist/components/Select.js.map +1 -0
  146. package/dist/{index28.js → components/SidebarDrawer.js} +3 -3
  147. package/dist/components/SidebarDrawer.js.map +1 -0
  148. package/dist/{index74.js → components/Skeleton.js} +1 -1
  149. package/dist/components/Skeleton.js.map +1 -0
  150. package/dist/{index75.js → components/Space.js} +10 -10
  151. package/dist/components/Space.js.map +1 -0
  152. package/dist/{index76.js → components/Splitter.js} +22 -22
  153. package/dist/components/Splitter.js.map +1 -0
  154. package/dist/{index77.js → components/Stat.js} +1 -1
  155. package/dist/{index77.js.map → components/Stat.js.map} +1 -1
  156. package/dist/{index78.js → components/Status.js} +1 -1
  157. package/dist/components/Status.js.map +1 -0
  158. package/dist/{index79.js → components/Steps.js} +14 -14
  159. package/dist/components/Steps.js.map +1 -0
  160. package/dist/{index80.js → components/Table.js} +92 -92
  161. package/dist/components/Table.js.map +1 -0
  162. package/dist/components/Tabs.js +83 -0
  163. package/dist/{index81.js.map → components/Tabs.js.map} +1 -1
  164. package/dist/{index84.js → components/Tag.js} +1 -1
  165. package/dist/components/Tag.js.map +1 -0
  166. package/dist/{index83.js → components/TextRotate.js} +1 -1
  167. package/dist/components/TextRotate.js.map +1 -0
  168. package/dist/{index82.js → components/Textarea.js} +1 -1
  169. package/dist/components/Textarea.js.map +1 -0
  170. package/dist/{index85.js → components/ThemeController.js} +1 -1
  171. package/dist/components/ThemeController.js.map +1 -0
  172. package/dist/{index86.js → components/TimePicker.js} +2 -2
  173. package/dist/components/TimePicker.js.map +1 -0
  174. package/dist/{index87.js → components/Timeline.js} +13 -13
  175. package/dist/components/Timeline.js.map +1 -0
  176. package/dist/{index88.js → components/Toggle.js} +1 -1
  177. package/dist/components/Toggle.js.map +1 -0
  178. package/dist/{index90.js → components/Tooltip.js} +1 -1
  179. package/dist/components/Tooltip.js.map +1 -0
  180. package/dist/{index89.js → components/Tour.js} +1 -1
  181. package/dist/{index89.js.map → components/Tour.js.map} +1 -1
  182. package/dist/{index91.js → components/Transfer.js} +1 -1
  183. package/dist/components/Transfer.js.map +1 -0
  184. package/dist/{index92.js → components/Tree.js} +1 -1
  185. package/dist/{index92.js.map → components/Tree.js.map} +1 -1
  186. package/dist/{index93.js → components/TreeSelect.js} +44 -44
  187. package/dist/components/TreeSelect.js.map +1 -0
  188. package/dist/{index94.js → components/Typography.js} +1 -1
  189. package/dist/components/Typography.js.map +1 -0
  190. package/dist/{index95.js → components/Upload.js} +1 -1
  191. package/dist/components/Upload.js.map +1 -0
  192. package/dist/{index96.js → components/VirtualList.js} +2 -2
  193. package/dist/components/VirtualList.js.map +1 -0
  194. package/dist/{index97.js → components/Watermark.js} +1 -1
  195. package/dist/components/Watermark.js.map +1 -0
  196. package/dist/{index56.js → components/Window.js} +1 -1
  197. package/dist/components/Window.js.map +1 -0
  198. package/dist/{index99.js → hooks/useBreakpoint.js} +1 -1
  199. package/dist/hooks/useBreakpoint.js.map +1 -0
  200. package/dist/{index104.js → hooks/useClickOutside.js} +1 -1
  201. package/dist/hooks/useClickOutside.js.map +1 -0
  202. package/dist/{index101.js → hooks/useClipboard.js} +1 -1
  203. package/dist/hooks/useClipboard.js.map +1 -0
  204. package/dist/{index103.js → hooks/useDebounce.js} +1 -1
  205. package/dist/hooks/useDebounce.js.map +1 -0
  206. package/dist/{index100.js → hooks/useDisclosure.js} +1 -1
  207. package/dist/hooks/useDisclosure.js.map +1 -0
  208. package/dist/{index106.js → hooks/useHover.js} +1 -1
  209. package/dist/hooks/useHover.js.map +1 -0
  210. package/dist/{index107.js → hooks/useKeyPress.js} +1 -1
  211. package/dist/hooks/useKeyPress.js.map +1 -0
  212. package/dist/{index102.js → hooks/useLocalStorage.js} +1 -1
  213. package/dist/hooks/useLocalStorage.js.map +1 -0
  214. package/dist/{index105.js → hooks/usePrevious.js} +1 -1
  215. package/dist/hooks/usePrevious.js.map +1 -0
  216. package/dist/{index108.js → hooks/useWindowSize.js} +1 -1
  217. package/dist/hooks/useWindowSize.js.map +1 -0
  218. package/dist/index.d.ts +0 -6
  219. package/dist/index.js +204 -210
  220. package/dist/index.js.map +1 -1
  221. package/dist/qrcode.d.ts +2 -0
  222. package/dist/qrcode.js +5 -0
  223. package/dist/qrcode.js.map +1 -0
  224. package/dist/virtuallist.d.ts +2 -0
  225. package/dist/virtuallist.js +5 -0
  226. package/dist/virtuallist.js.map +1 -0
  227. package/package.json +13 -1
  228. package/dist/index10.js.map +0 -1
  229. package/dist/index100.js.map +0 -1
  230. package/dist/index101.js.map +0 -1
  231. package/dist/index102.js.map +0 -1
  232. package/dist/index103.js.map +0 -1
  233. package/dist/index104.js.map +0 -1
  234. package/dist/index105.js.map +0 -1
  235. package/dist/index106.js.map +0 -1
  236. package/dist/index107.js.map +0 -1
  237. package/dist/index108.js.map +0 -1
  238. package/dist/index109.js +0 -36
  239. package/dist/index109.js.map +0 -1
  240. package/dist/index11.js.map +0 -1
  241. package/dist/index110.js +0 -523
  242. package/dist/index110.js.map +0 -1
  243. package/dist/index111.js +0 -53
  244. package/dist/index111.js.map +0 -1
  245. package/dist/index13.js.map +0 -1
  246. package/dist/index15.js.map +0 -1
  247. package/dist/index16.js.map +0 -1
  248. package/dist/index17.js.map +0 -1
  249. package/dist/index18.js.map +0 -1
  250. package/dist/index19.js.map +0 -1
  251. package/dist/index2.js.map +0 -1
  252. package/dist/index20.js.map +0 -1
  253. package/dist/index21.js.map +0 -1
  254. package/dist/index22.js.map +0 -1
  255. package/dist/index23.js.map +0 -1
  256. package/dist/index26.js.map +0 -1
  257. package/dist/index27.js.map +0 -1
  258. package/dist/index28.js.map +0 -1
  259. package/dist/index29.js.map +0 -1
  260. package/dist/index3.js.map +0 -1
  261. package/dist/index30.js.map +0 -1
  262. package/dist/index31.js.map +0 -1
  263. package/dist/index33.js.map +0 -1
  264. package/dist/index34.js.map +0 -1
  265. package/dist/index38.js.map +0 -1
  266. package/dist/index39.js.map +0 -1
  267. package/dist/index4.js.map +0 -1
  268. package/dist/index40.js.map +0 -1
  269. package/dist/index41.js.map +0 -1
  270. package/dist/index42.js.map +0 -1
  271. package/dist/index43.js.map +0 -1
  272. package/dist/index44.js +0 -18
  273. package/dist/index45.js.map +0 -1
  274. package/dist/index46.js.map +0 -1
  275. package/dist/index48.js.map +0 -1
  276. package/dist/index5.js.map +0 -1
  277. package/dist/index50.js.map +0 -1
  278. package/dist/index51.js.map +0 -1
  279. package/dist/index53.js.map +0 -1
  280. package/dist/index55.js.map +0 -1
  281. package/dist/index56.js.map +0 -1
  282. package/dist/index57.js.map +0 -1
  283. package/dist/index58.js.map +0 -1
  284. package/dist/index59.js.map +0 -1
  285. package/dist/index6.js.map +0 -1
  286. package/dist/index60.js.map +0 -1
  287. package/dist/index61.js.map +0 -1
  288. package/dist/index62.js.map +0 -1
  289. package/dist/index63.js.map +0 -1
  290. package/dist/index64.js.map +0 -1
  291. package/dist/index65.js.map +0 -1
  292. package/dist/index66.js.map +0 -1
  293. package/dist/index67.js.map +0 -1
  294. package/dist/index68.js.map +0 -1
  295. package/dist/index69.js.map +0 -1
  296. package/dist/index7.js.map +0 -1
  297. package/dist/index70.js.map +0 -1
  298. package/dist/index71.js.map +0 -1
  299. package/dist/index72.js.map +0 -1
  300. package/dist/index73.js.map +0 -1
  301. package/dist/index74.js.map +0 -1
  302. package/dist/index75.js.map +0 -1
  303. package/dist/index76.js.map +0 -1
  304. package/dist/index78.js.map +0 -1
  305. package/dist/index79.js.map +0 -1
  306. package/dist/index8.js +0 -38
  307. package/dist/index8.js.map +0 -1
  308. package/dist/index80.js.map +0 -1
  309. package/dist/index81.js +0 -83
  310. package/dist/index82.js.map +0 -1
  311. package/dist/index83.js.map +0 -1
  312. package/dist/index84.js.map +0 -1
  313. package/dist/index85.js.map +0 -1
  314. package/dist/index86.js.map +0 -1
  315. package/dist/index87.js.map +0 -1
  316. package/dist/index88.js.map +0 -1
  317. package/dist/index9.js.map +0 -1
  318. package/dist/index90.js.map +0 -1
  319. package/dist/index91.js.map +0 -1
  320. package/dist/index93.js.map +0 -1
  321. package/dist/index94.js.map +0 -1
  322. package/dist/index95.js.map +0 -1
  323. package/dist/index96.js.map +0 -1
  324. package/dist/index97.js.map +0 -1
  325. package/dist/index98.js.map +0 -1
  326. package/dist/index99.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { jsx as a, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
2
  import y from "react";
3
3
  const j = {
4
4
  neutral: "step-neutral",
@@ -11,7 +11,7 @@ const j = {
11
11
  error: "step-error"
12
12
  };
13
13
  function N({
14
- children: i,
14
+ children: a,
15
15
  items: l,
16
16
  current: e,
17
17
  direction: p,
@@ -22,9 +22,9 @@ function N({
22
22
  }) {
23
23
  const n = ["steps", (p === "vertical" || d) && "steps-vertical", c].filter(Boolean).join(" ");
24
24
  if (l && l.length > 0)
25
- return /* @__PURE__ */ a("ul", { className: n, ...f, children: l.map((s, o) => {
25
+ return /* @__PURE__ */ i("ul", { className: n, ...f, children: l.map((s, o) => {
26
26
  const C = e !== void 0 && o < e, r = e !== void 0 && o === e, v = s.color || (C || r ? "primary" : void 0);
27
- return /* @__PURE__ */ a(
27
+ return /* @__PURE__ */ i(
28
28
  k,
29
29
  {
30
30
  color: v,
@@ -40,7 +40,7 @@ function N({
40
40
  s.key ?? o
41
41
  );
42
42
  }) });
43
- const u = e !== void 0 ? y.Children.map(i, (s, o) => {
43
+ const u = e !== void 0 ? y.Children.map(a, (s, o) => {
44
44
  if (y.isValidElement(s)) {
45
45
  const C = o < e, r = o === e, v = s.props.color || (C || r ? "primary" : void 0);
46
46
  return y.cloneElement(s, {
@@ -52,11 +52,11 @@ function N({
52
52
  });
53
53
  }
54
54
  return s;
55
- }) : i;
56
- return /* @__PURE__ */ a("ul", { className: n, ...f, children: u });
55
+ }) : a;
56
+ return /* @__PURE__ */ i("ul", { className: n, ...f, children: u });
57
57
  }
58
58
  function k({
59
- children: i,
59
+ children: a,
60
60
  title: l,
61
61
  description: e,
62
62
  icon: p,
@@ -81,17 +81,17 @@ function k({
81
81
  style: n && !c ? { cursor: "pointer" } : void 0,
82
82
  ...s,
83
83
  children: [
84
- p && /* @__PURE__ */ a("span", { className: "step-icon", children: p }),
85
- l ?? i,
86
- e && /* @__PURE__ */ a("span", { className: "text-xs opacity-70 block", children: e })
84
+ p && /* @__PURE__ */ i("span", { className: "step-icon", children: p }),
85
+ l ?? a,
86
+ e && /* @__PURE__ */ i("span", { className: "text-xs opacity-70 block", children: e })
87
87
  ]
88
88
  }
89
89
  );
90
90
  }
91
- const S = Object.assign(N, {
91
+ const V = Object.assign(N, {
92
92
  Step: k
93
93
  });
94
94
  export {
95
- S as Steps
95
+ V as Steps
96
96
  };
97
- //# sourceMappingURL=index79.js.map
97
+ //# sourceMappingURL=Steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Steps.js","sources":["../../src/components/Steps.tsx"],"sourcesContent":["import React from 'react'\n\nexport type StepsDirection = 'horizontal' | 'vertical'\n\nexport interface StepItem {\n key?: string\n title: React.ReactNode\n description?: React.ReactNode\n icon?: React.ReactNode\n color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n disabled?: boolean\n}\n\nexport interface StepsProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'onChange'> {\n /** Step items (compound pattern) */\n children?: React.ReactNode\n /** Step items (data-driven pattern) */\n items?: StepItem[]\n /** Current step index (0-based) */\n current?: number\n /** Layout direction */\n direction?: StepsDirection\n /** @deprecated Use direction=\"vertical\" instead */\n vertical?: boolean\n /** Callback when step is clicked */\n onChange?: (current: number) => void\n}\n\nexport interface StepProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, 'color' | 'title'> {\n /** Step title/label */\n children?: React.ReactNode\n /** Step title (alternative to children) */\n title?: React.ReactNode\n /** Step description */\n description?: React.ReactNode\n /** Step icon */\n icon?: React.ReactNode\n /** Step color */\n color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n /** Custom content for step indicator */\n dataContent?: string\n /** Whether step is disabled */\n disabled?: boolean\n /** Internal: step index */\n _index?: number\n /** Internal: whether step is clickable */\n _clickable?: boolean\n /** Internal: click handler */\n _onClick?: (index: number) => void\n}\n\nconst colorClasses: Record<string, string> = {\n neutral: 'step-neutral',\n primary: 'step-primary',\n secondary: 'step-secondary',\n accent: 'step-accent',\n info: 'step-info',\n success: 'step-success',\n warning: 'step-warning',\n error: 'step-error',\n}\n\nfunction StepsRoot({\n children,\n items,\n current,\n direction,\n vertical = false,\n onChange,\n className = '',\n ...rest\n}: StepsProps) {\n const isVertical = direction === 'vertical' || vertical\n\n const classes = ['steps', isVertical && 'steps-vertical', className]\n .filter(Boolean)\n .join(' ')\n\n // Render data-driven items if provided\n if (items && items.length > 0) {\n return (\n <ul className={classes} {...rest}>\n {items.map((item, index) => {\n const isCompleted = current !== undefined && index < current\n const isCurrent = current !== undefined && index === current\n const stepColor = item.color || ((isCompleted || isCurrent) ? 'primary' : undefined)\n\n return (\n <Step\n key={item.key ?? index}\n color={stepColor}\n icon={item.icon}\n title={item.title}\n description={item.description}\n disabled={item.disabled}\n _index={index}\n _clickable={!!onChange && !item.disabled}\n _onClick={onChange}\n aria-current={isCurrent ? 'step' : undefined}\n />\n )\n })}\n </ul>\n )\n }\n\n // For compound pattern, inject props into children if current is provided\n const processedChildren =\n current !== undefined\n ? React.Children.map(children, (child, index) => {\n if (React.isValidElement<StepProps>(child)) {\n const isCompleted = index < current\n const isCurrent = index === current\n const childColor = child.props.color || ((isCompleted || isCurrent) ? 'primary' : undefined)\n\n return React.cloneElement(child, {\n color: childColor,\n _index: index,\n _clickable: !!onChange && !child.props.disabled,\n _onClick: onChange,\n 'aria-current': isCurrent ? 'step' : undefined,\n } as Partial<StepProps>)\n }\n return child\n })\n : children\n\n return (\n <ul className={classes} {...rest}>\n {processedChildren}\n </ul>\n )\n}\n\nfunction Step({\n children,\n title,\n description,\n icon,\n color,\n dataContent,\n disabled = false,\n className = '',\n _index,\n _clickable,\n _onClick,\n ...rest\n}: StepProps) {\n const classes = ['step', color && colorClasses[color], disabled && 'step-disabled', className]\n .filter(Boolean)\n .join(' ')\n\n const handleClick = () => {\n if (_clickable && _onClick && _index !== undefined && !disabled) {\n _onClick(_index)\n }\n }\n\n const displayContent = title ?? children\n\n return (\n <li\n className={classes}\n data-content={dataContent}\n onClick={handleClick}\n style={_clickable && !disabled ? { cursor: 'pointer' } : undefined}\n {...rest}\n >\n {icon && <span className=\"step-icon\">{icon}</span>}\n {displayContent}\n {description && <span className=\"text-xs opacity-70 block\">{description}</span>}\n </li>\n )\n}\n\nexport const Steps = Object.assign(StepsRoot, {\n Step,\n})\n"],"names":["colorClasses","StepsRoot","children","items","current","direction","vertical","onChange","className","rest","classes","jsx","item","index","isCompleted","isCurrent","stepColor","Step","processedChildren","React","child","childColor","title","description","icon","color","dataContent","disabled","_index","_clickable","_onClick","jsxs","Steps"],"mappings":";;AAmDA,MAAMA,IAAuC;AAAA,EAC3C,SAAS;AAAA,EACT,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACT;AAEA,SAASC,EAAU;AAAA,EACjB,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAAe;AAGb,QAAMC,IAAU,CAAC,UAFEL,MAAc,cAAcC,MAEP,kBAAkBE,CAAS,EAChE,OAAO,OAAO,EACd,KAAK,GAAG;AAGX,MAAIL,KAASA,EAAM,SAAS;AAC1B,WACE,gBAAAQ,EAAC,MAAA,EAAG,WAAWD,GAAU,GAAGD,GACzB,UAAAN,EAAM,IAAI,CAACS,GAAMC,MAAU;AAC1B,YAAMC,IAAcV,MAAY,UAAaS,IAAQT,GAC/CW,IAAYX,MAAY,UAAaS,MAAUT,GAC/CY,IAAYJ,EAAK,UAAWE,KAAeC,IAAa,YAAY;AAE1E,aACE,gBAAAJ;AAAA,QAACM;AAAA,QAAA;AAAA,UAEC,OAAOD;AAAA,UACP,MAAMJ,EAAK;AAAA,UACX,OAAOA,EAAK;AAAA,UACZ,aAAaA,EAAK;AAAA,UAClB,UAAUA,EAAK;AAAA,UACf,QAAQC;AAAA,UACR,YAAY,CAAC,CAACN,KAAY,CAACK,EAAK;AAAA,UAChC,UAAUL;AAAA,UACV,gBAAcQ,IAAY,SAAS;AAAA,QAAA;AAAA,QAT9BH,EAAK,OAAOC;AAAA,MAAA;AAAA,IAYvB,CAAC,EAAA,CACH;AAKJ,QAAMK,IACJd,MAAY,SACRe,EAAM,SAAS,IAAIjB,GAAU,CAACkB,GAAOP,MAAU;AAC7C,QAAIM,EAAM,eAA0BC,CAAK,GAAG;AAC1C,YAAMN,IAAcD,IAAQT,GACtBW,IAAYF,MAAUT,GACtBiB,IAAaD,EAAM,MAAM,UAAWN,KAAeC,IAAa,YAAY;AAElF,aAAOI,EAAM,aAAaC,GAAO;AAAA,QAC/B,OAAOC;AAAA,QACP,QAAQR;AAAA,QACR,YAAY,CAAC,CAACN,KAAY,CAACa,EAAM,MAAM;AAAA,QACvC,UAAUb;AAAA,QACV,gBAAgBQ,IAAY,SAAS;AAAA,MAAA,CAChB;AAAA,IACzB;AACA,WAAOK;AAAA,EACT,CAAC,IACDlB;AAEN,2BACG,MAAA,EAAG,WAAWQ,GAAU,GAAGD,GACzB,UAAAS,GACH;AAEJ;AAEA,SAASD,EAAK;AAAA,EACZ,UAAAf;AAAA,EACA,OAAAoB;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,WAAAnB,IAAY;AAAA,EACZ,QAAAoB;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGrB;AACL,GAAc;AACZ,QAAMC,IAAU,CAAC,QAAQe,KAASzB,EAAayB,CAAK,GAAGE,KAAY,iBAAiBnB,CAAS,EAC1F,OAAO,OAAO,EACd,KAAK,GAAG;AAUX,SACE,gBAAAuB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWrB;AAAA,MACX,gBAAcgB;AAAA,MACd,SAZgB,MAAM;AACxB,QAAIG,KAAcC,KAAYF,MAAW,UAAa,CAACD,KACrDG,EAASF,CAAM;AAAA,MAEnB;AAAA,MASI,OAAOC,KAAc,CAACF,IAAW,EAAE,QAAQ,cAAc;AAAA,MACxD,GAAGlB;AAAA,MAEH,UAAA;AAAA,QAAAe,KAAQ,gBAAAb,EAAC,QAAA,EAAK,WAAU,aAAa,UAAAa,GAAK;AAAA,QAVxBF,KAASpB;AAAA,QAY3BqB,KAAe,gBAAAZ,EAAC,QAAA,EAAK,WAAU,4BAA4B,UAAAY,EAAA,CAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG9E;AAEO,MAAMS,IAAQ,OAAO,OAAO/B,GAAW;AAAA,EAC5C,MAAAgB;AACF,CAAC;"}
@@ -1,27 +1,27 @@
1
1
  import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
- import Ge, { forwardRef as Je, useState as I, useMemo as W, useCallback as S, useId as Qe } from "react";
3
- const qe = {
2
+ import Je, { forwardRef as Qe, useState as I, useMemo as W, useCallback as S, useId as qe } from "react";
3
+ const Xe = {
4
4
  xs: "table-xs",
5
5
  sm: "table-sm",
6
6
  md: "",
7
7
  lg: "table-lg",
8
8
  xl: "table-xl"
9
9
  };
10
- function Xe({
10
+ function Ye({
11
11
  filters: d,
12
12
  selectedValues: k,
13
13
  onChange: K,
14
14
  locale: H,
15
15
  testId: F
16
16
  }) {
17
- const [V, B] = I(!1), A = Qe(), _ = (i) => {
18
- const y = k.includes(i) ? k.filter((w) => w !== i) : [...k, i];
17
+ const [V, B] = I(!1), A = qe(), G = (l) => {
18
+ const y = k.includes(l) ? k.filter((w) => w !== l) : [...k, l];
19
19
  K(y);
20
20
  }, U = () => {
21
21
  K([]), B(!1);
22
22
  };
23
- return /* @__PURE__ */ m("div", { className: "dropdown dropdown-end", onKeyDown: (i) => {
24
- i.key === "Escape" && B(!1);
23
+ return /* @__PURE__ */ m("div", { className: "dropdown dropdown-end", onKeyDown: (l) => {
24
+ l.key === "Escape" && B(!1);
25
25
  }, children: [
26
26
  /* @__PURE__ */ a(
27
27
  "button",
@@ -46,27 +46,27 @@ function Xe({
46
46
  className: "dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box w-52 border border-base-content/10",
47
47
  "data-testid": `${F}-filter-dropdown`,
48
48
  children: [
49
- /* @__PURE__ */ a("div", { className: "space-y-2", children: d.map((i) => /* @__PURE__ */ m(
49
+ /* @__PURE__ */ a("div", { className: "space-y-2", children: d.map((l) => /* @__PURE__ */ m(
50
50
  "label",
51
51
  {
52
52
  className: "flex items-center gap-2 cursor-pointer p-2 hover:bg-base-200 rounded",
53
53
  role: "option",
54
- "aria-selected": k.includes(i.value),
54
+ "aria-selected": k.includes(l.value),
55
55
  children: [
56
56
  /* @__PURE__ */ a(
57
57
  "input",
58
58
  {
59
59
  type: "checkbox",
60
60
  className: "checkbox checkbox-xs checkbox-primary",
61
- checked: k.includes(i.value),
62
- onChange: () => _(i.value),
63
- "data-testid": `${F}-filter-${String(i.value)}`
61
+ checked: k.includes(l.value),
62
+ onChange: () => G(l.value),
63
+ "data-testid": `${F}-filter-${String(l.value)}`
64
64
  }
65
65
  ),
66
- /* @__PURE__ */ a("span", { className: "text-sm", children: i.text })
66
+ /* @__PURE__ */ a("span", { className: "text-sm", children: l.text })
67
67
  ]
68
68
  },
69
- String(i.value)
69
+ String(l.value)
70
70
  )) }),
71
71
  /* @__PURE__ */ a("div", { className: "divider my-1" }),
72
72
  /* @__PURE__ */ a(
@@ -84,7 +84,7 @@ function Xe({
84
84
  )
85
85
  ] });
86
86
  }
87
- function Ye({ expanded: d, onExpand: k }) {
87
+ function _e({ expanded: d, onExpand: k }) {
88
88
  return /* @__PURE__ */ a(
89
89
  "button",
90
90
  {
@@ -118,23 +118,23 @@ function He({
118
118
  bordered: V = !1,
119
119
  hoverable: B = !0,
120
120
  striped: A = !1,
121
- pinRows: _ = !1,
121
+ pinRows: G = !1,
122
122
  pinCols: U = !1,
123
123
  pagination: o,
124
- rowSelection: i,
124
+ rowSelection: l,
125
125
  expandable: y,
126
126
  scroll: w,
127
127
  className: ge = "",
128
128
  onRow: me,
129
129
  onChange: z,
130
- onSortChange: le,
131
- onFilterChange: ie,
130
+ onSortChange: ie,
131
+ onFilterChange: le,
132
132
  locale: Z,
133
133
  "data-testid": ve,
134
134
  "aria-label": ke,
135
135
  ...we
136
136
  }, Ce) {
137
- const p = ve ?? "table", Ne = 10, [N, G] = I(
137
+ const p = ve ?? "table", Ne = 10, [N, J] = I(
138
138
  o !== !1 && o?.current ? o.current : 1
139
139
  ), [$e, Se] = I(
140
140
  o !== !1 && o?.pageSize ? o.pageSize : Ne
@@ -156,11 +156,11 @@ function He({
156
156
  t.filteredValue !== void 0 ? e[t.key] = t.filteredValue : t.defaultFilteredValue && (e[t.key] = t.defaultFilteredValue);
157
157
  }), e;
158
158
  }), [Ee, ee] = I(
159
- i?.selectedRowKeys || []
159
+ l?.selectedRowKeys || []
160
160
  ), [Re, je] = I(
161
161
  y?.expandedRowKeys ?? y?.defaultExpandedRowKeys ?? []
162
- ), J = d.some((e) => e.sortOrder !== void 0), Q = d.some((e) => e.filteredValue !== void 0), te = y?.expandedRowKeys !== void 0, O = i?.selectedRowKeys !== void 0, h = W(() => {
163
- if (J) {
162
+ ), Q = d.some((e) => e.sortOrder !== void 0), q = d.some((e) => e.filteredValue !== void 0), te = y?.expandedRowKeys !== void 0, O = l?.selectedRowKeys !== void 0, h = W(() => {
163
+ if (Q) {
164
164
  const e = d.find((t) => t.sortOrder !== void 0 && t.sortOrder !== null);
165
165
  return {
166
166
  columnKey: e?.key ?? null,
@@ -168,50 +168,50 @@ function He({
168
168
  };
169
169
  }
170
170
  return oe;
171
- }, [J, d, oe]), E = W(() => {
172
- if (Q) {
171
+ }, [Q, d, oe]), E = W(() => {
172
+ if (q) {
173
173
  const e = {};
174
174
  return d.forEach((t) => {
175
175
  t.filteredValue !== void 0 && (e[t.key] = t.filteredValue);
176
176
  }), e;
177
177
  }
178
178
  return de;
179
- }, [Q, d, de]), D = O ? i.selectedRowKeys : Ee, M = te ? y.expandedRowKeys : Re, q = o !== !1, b = W(() => d.filter((e) => !e.hidden), [d]), $ = S((e, t) => {
179
+ }, [q, d, de]), D = O ? l.selectedRowKeys : Ee, M = te ? y.expandedRowKeys : Re, X = o !== !1, b = W(() => d.filter((e) => !e.hidden), [d]), $ = S((e, t) => {
180
180
  if (typeof K == "function")
181
181
  return K(e);
182
182
  const s = e[K];
183
183
  return String(s !== void 0 ? s : t);
184
- }, [K]), X = W(() => {
184
+ }, [K]), Y = W(() => {
185
185
  let e = [...k];
186
186
  return Object.entries(E).forEach(([t, s]) => {
187
187
  if (s && s.length > 0) {
188
188
  const n = d.find((r) => r.key === t);
189
189
  n?.onFilter && (e = e.filter(
190
- (r) => s.some((l) => n.onFilter(l, r))
190
+ (r) => s.some((i) => n.onFilter(i, r))
191
191
  ));
192
192
  }
193
193
  }), e;
194
194
  }, [k, E, d]), v = W(() => {
195
195
  if (!h.columnKey || !h.order)
196
- return X;
196
+ return Y;
197
197
  const e = d.find((s) => s.key === h.columnKey);
198
198
  if (!e?.sorter)
199
- return X;
200
- const t = [...X];
199
+ return Y;
200
+ const t = [...Y];
201
201
  return t.sort((s, n) => {
202
202
  let r = 0;
203
203
  if (typeof e.sorter == "function")
204
204
  r = e.sorter(s, n);
205
205
  else if (e.dataIndex) {
206
- const l = s[e.dataIndex], g = n[e.dataIndex];
207
- if (l == null) return 1;
206
+ const i = s[e.dataIndex], g = n[e.dataIndex];
207
+ if (i == null) return 1;
208
208
  if (g == null) return -1;
209
- l < g && (r = -1), l > g && (r = 1);
209
+ i < g && (r = -1), i > g && (r = 1);
210
210
  }
211
211
  return h.order === "ascend" ? r : -r;
212
212
  }), t;
213
- }, [X, h, d]), R = o !== !1 && o?.total !== void 0 ? o.total : v.length, j = Math.ceil(R / C), se = (N - 1) * C, ce = se + C, P = q ? v.slice(se, ce) : v, Y = S((e) => {
214
- if (G(e), o !== !1 && o?.onChange && o.onChange(e, C), z) {
213
+ }, [Y, h, d]), R = o !== !1 && o?.total !== void 0 ? o.total : v.length, j = Math.ceil(R / C), se = (N - 1) * C, ce = se + C, P = X ? v.slice(se, ce) : v, _ = S((e) => {
214
+ if (J(e), o !== !1 && o?.onChange && o.onChange(e, C), z) {
215
215
  const t = {
216
216
  column: d.find((s) => s.key === h.columnKey),
217
217
  order: h.order,
@@ -225,28 +225,28 @@ function He({
225
225
  );
226
226
  }
227
227
  }, [o, C, z, d, h, E, v, R]), Pe = S((e) => {
228
- Se(e), G(1), o !== !1 && o?.onShowSizeChange && o.onShowSizeChange(1, e), o !== !1 && o?.onChange && o.onChange(1, e);
228
+ Se(e), J(1), o !== !1 && o?.onShowSizeChange && o.onShowSizeChange(1, e), o !== !1 && o?.onChange && o.onChange(1, e);
229
229
  }, [o]), fe = S((e) => {
230
230
  const t = d.find((r) => r.key === e);
231
231
  let s = "ascend";
232
- h.columnKey === e && (h.order === "ascend" ? s = "descend" : h.order === "descend" && (s = null)), J || Ke({ columnKey: s ? e : null, order: s }), G(1);
232
+ h.columnKey === e && (h.order === "ascend" ? s = "descend" : h.order === "descend" && (s = null)), Q || Ke({ columnKey: s ? e : null, order: s }), J(1);
233
233
  const n = {
234
234
  column: t,
235
235
  order: s,
236
236
  field: e
237
237
  };
238
- le?.(n), z && z(
238
+ ie?.(n), z && z(
239
239
  { current: 1, pageSize: C, total: R },
240
240
  E,
241
241
  n,
242
242
  { currentDataSource: v, action: "sort" }
243
243
  );
244
- }, [d, h, J, C, R, E, v, le, z]), Ie = S((e, t) => {
244
+ }, [d, h, Q, C, R, E, v, ie, z]), Ie = S((e, t) => {
245
245
  const s = {
246
246
  ...E,
247
247
  [e]: t
248
248
  };
249
- if (Q || ze(s), G(1), ie?.(s), z) {
249
+ if (q || ze(s), J(1), le?.(s), z) {
250
250
  const n = {
251
251
  column: d.find((r) => r.key === h.columnKey),
252
252
  order: h.order,
@@ -259,28 +259,28 @@ function He({
259
259
  { currentDataSource: v, action: "filter" }
260
260
  );
261
261
  }
262
- }, [E, Q, d, h, C, R, v, ie, z]), Fe = S((e) => {
262
+ }, [E, q, d, h, C, R, v, le, z]), Fe = S((e) => {
263
263
  const t = e ? P.map((s, n) => $(s, n)) : [];
264
- if (O || ee(t), i?.onChange) {
264
+ if (O || ee(t), l?.onChange) {
265
265
  const s = e ? P : [];
266
- i.onChange(t, s);
266
+ l.onChange(t, s);
267
267
  }
268
- }, [P, $, O, i]), Oe = S((e, t, s) => {
268
+ }, [P, $, O, l]), Oe = S((e, t, s) => {
269
269
  const n = $(e, t);
270
- if (i?.type === "radio") {
271
- const l = s ? [n] : [];
272
- O || ee(l), i?.onChange && i.onChange(l, s ? [e] : []);
270
+ if (l?.type === "radio") {
271
+ const i = s ? [n] : [];
272
+ O || ee(i), l?.onChange && l.onChange(i, s ? [e] : []);
273
273
  return;
274
274
  }
275
- const r = s ? [...D, n] : D.filter((l) => l !== n);
276
- if (O || ee(r), i?.onChange) {
277
- const l = v.filter(
275
+ const r = s ? [...D, n] : D.filter((i) => i !== n);
276
+ if (O || ee(r), l?.onChange) {
277
+ const i = v.filter(
278
278
  (g, c) => r.includes($(g, c))
279
279
  );
280
- i.onChange(r, l);
280
+ l.onChange(r, i);
281
281
  }
282
- }, [$, i, O, D, v]), ae = S((e, t) => {
283
- const s = $(e, t), n = M.includes(s), r = n ? M.filter((l) => l !== s) : [...M, s];
282
+ }, [$, l, O, D, v]), ae = S((e, t) => {
283
+ const s = $(e, t), n = M.includes(s), r = n ? M.filter((i) => i !== s) : [...M, s];
284
284
  te || je(r), y?.onExpand?.(!n, e), y?.onExpandedRowsChange?.(r);
285
285
  }, [$, M, te, y]), De = S((e, t, s) => {
286
286
  if (e.render)
@@ -299,7 +299,7 @@ function He({
299
299
  if (!s?.fixed) return { className: "" };
300
300
  const n = ["sticky", "bg-base-100"];
301
301
  let r = 0;
302
- const l = {
302
+ const i = {
303
303
  boxSizing: "border-box"
304
304
  };
305
305
  if (s.fixed === "left") {
@@ -308,14 +308,14 @@ function He({
308
308
  const u = b[c].width, x = typeof u == "number" ? u : parseInt(String(u));
309
309
  isNaN(x) || (r += x);
310
310
  }
311
- r === 0 ? n.push("left-0") : l.left = `${r}px`, n.push(t ? "z-30" : "z-20");
311
+ r === 0 ? n.push("left-0") : i.left = `${r}px`, n.push(t ? "z-30" : "z-20");
312
312
  let g = -1;
313
313
  for (let c = b.length - 1; c >= 0; c--)
314
314
  if (b[c].fixed === "left") {
315
315
  g = c;
316
316
  break;
317
317
  }
318
- e === g && (l.boxShadow = "2px 0 4px rgba(0, 0, 0, 0.1)");
318
+ e === g && (i.boxShadow = "2px 0 4px rgba(0, 0, 0, 0.1)");
319
319
  }
320
320
  if (s.fixed === "right") {
321
321
  for (let c = e + 1; c < b.length; c++)
@@ -323,31 +323,31 @@ function He({
323
323
  const u = b[c].width, x = typeof u == "number" ? u : parseInt(String(u));
324
324
  isNaN(x) || (r += x);
325
325
  }
326
- r === 0 ? n.push("right-0") : l.right = `${r}px`, n.push(t ? "z-30" : "z-20"), e === b.findIndex((c) => c.fixed === "right") && (l.boxShadow = "-2px 0 4px rgba(0, 0, 0, 0.1)");
326
+ r === 0 ? n.push("right-0") : i.right = `${r}px`, n.push(t ? "z-30" : "z-20"), e === b.findIndex((c) => c.fixed === "right") && (i.boxShadow = "-2px 0 4px rgba(0, 0, 0, 0.1)");
327
327
  }
328
328
  return {
329
329
  className: n.filter(Boolean).join(" "),
330
- style: Object.keys(l).length > 0 ? l : void 0
330
+ style: Object.keys(i).length > 0 ? i : void 0
331
331
  };
332
332
  }, [b]), Le = [
333
333
  "table",
334
334
  "bg-base-100",
335
- qe[F],
335
+ Xe[F],
336
336
  A && "table-zebra",
337
- _ && "table-pin-rows",
337
+ G && "table-pin-rows",
338
338
  U && "table-pin-cols",
339
339
  ge
340
340
  ].filter(Boolean).join(" "), Ve = b.some((e) => e.fixed), L = y !== void 0, T = {};
341
341
  w?.x && (T.overflowX = "auto", T.maxWidth = typeof w.x == "number" ? `${w.x}px` : w.x), w?.y && (T.overflowY = "auto", T.maxHeight = typeof w.y == "number" ? `${w.y}px` : w.y);
342
342
  const Be = [
343
- (!_ || Ve || w?.x) && "overflow-x-auto",
343
+ (!G || Ve || w?.x) && "overflow-x-auto",
344
344
  V && "rounded-box border border-base-content/5 bg-base-100"
345
345
  ].filter(Boolean).join(" ");
346
346
  if (H)
347
347
  return /* @__PURE__ */ a("div", { className: "flex justify-center items-center p-8", "data-testid": `${p}-loading`, children: /* @__PURE__ */ a("span", { className: "loading loading-spinner loading-lg", "aria-label": "Loading" }) });
348
- const pe = P.length > 0 && P.every((e, t) => D.includes($(e, t))), Me = P.some((e, t) => D.includes($(e, t))), Te = Z?.emptyText ?? "No data", be = (i ? 1 : 0) + (L ? 1 : 0), ye = () => {
349
- if (!q || j <= 1 || typeof o == "boolean") return null;
350
- const e = o ?? {}, t = e.position ?? "bottomRight", s = e.showSizeChanger, n = e.showQuickJumper, r = e.showTotal, l = e.pageSizeOptions ?? [10, 20, 50, 100], g = t.includes("Left") ? "justify-start" : t.includes("Center") ? "justify-center" : "justify-end";
348
+ const pe = P.length > 0 && P.every((e, t) => D.includes($(e, t))), Me = P.some((e, t) => D.includes($(e, t))), Te = Z?.emptyText ?? "No data", be = (l ? 1 : 0) + (L ? 1 : 0), ye = () => {
349
+ if (!X || j <= 1 || typeof o == "boolean") return null;
350
+ const e = o ?? {}, t = e.position ?? "bottomRight", s = e.showSizeChanger, n = e.showQuickJumper, r = e.showTotal, i = e.pageSizeOptions ?? [10, 20, 50, 100], g = t.includes("Left") ? "justify-start" : t.includes("Center") ? "justify-center" : "justify-end";
351
351
  return /* @__PURE__ */ m("div", { className: `flex items-center gap-4 ${g}`, "data-testid": `${p}-pagination`, children: [
352
352
  r && /* @__PURE__ */ a("span", { className: "text-sm text-base-content/70", children: r(R, [se + 1, Math.min(ce, R)]) }),
353
353
  s && /* @__PURE__ */ a(
@@ -358,7 +358,7 @@ function He({
358
358
  onChange: (u) => Pe(Number(u.target.value)),
359
359
  "aria-label": "Page size",
360
360
  "data-testid": `${p}-page-size`,
361
- children: l.map((u) => /* @__PURE__ */ m("option", { value: u, children: [
361
+ children: i.map((u) => /* @__PURE__ */ m("option", { value: u, children: [
362
362
  u,
363
363
  " / page"
364
364
  ] }, u))
@@ -370,7 +370,7 @@ function He({
370
370
  {
371
371
  type: "button",
372
372
  className: "join-item btn btn-sm",
373
- onClick: () => Y(N - 1),
373
+ onClick: () => _(N - 1),
374
374
  disabled: N === 1,
375
375
  "aria-label": "Previous page",
376
376
  "data-testid": `${p}-prev`,
@@ -384,7 +384,7 @@ function He({
384
384
  {
385
385
  type: "button",
386
386
  className: `join-item btn btn-sm ${N === f ? "btn-active" : ""}`,
387
- onClick: () => Y(f),
387
+ onClick: () => _(f),
388
388
  "aria-label": `Page ${f}`,
389
389
  "aria-current": N === f ? "page" : void 0,
390
390
  "data-testid": `${p}-page-${f}`,
@@ -398,7 +398,7 @@ function He({
398
398
  {
399
399
  type: "button",
400
400
  className: "join-item btn btn-sm",
401
- onClick: () => Y(N + 1),
401
+ onClick: () => _(N + 1),
402
402
  disabled: N === j,
403
403
  "aria-label": "Next page",
404
404
  "data-testid": `${p}-next`,
@@ -418,7 +418,7 @@ function He({
418
418
  onKeyDown: (u) => {
419
419
  if (u.key === "Enter") {
420
420
  const x = parseInt(u.target.value);
421
- x >= 1 && x <= j && Y(x);
421
+ x >= 1 && x <= j && _(x);
422
422
  }
423
423
  },
424
424
  "aria-label": "Go to page",
@@ -427,7 +427,7 @@ function He({
427
427
  )
428
428
  ] })
429
429
  ] });
430
- }, re = o && typeof o != "boolean" ? o.position : void 0, We = q && re?.startsWith("top") ? ye() : null, Ae = q && (!re || re.startsWith("bottom")) ? ye() : null;
430
+ }, re = o && typeof o != "boolean" ? o.position : void 0, We = X && re?.startsWith("top") ? ye() : null, Ae = X && (!re || re.startsWith("bottom")) ? ye() : null;
431
431
  return /* @__PURE__ */ m("div", { className: "space-y-4", "data-testid": p, ...we, children: [
432
432
  We,
433
433
  /* @__PURE__ */ a("div", { className: Be, style: T, children: /* @__PURE__ */ m(
@@ -443,13 +443,13 @@ function He({
443
443
  children: [
444
444
  /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ m("tr", { role: "row", children: [
445
445
  L && /* @__PURE__ */ a("th", { style: { width: 50 }, className: "sticky left-0 z-20 bg-base-100", role: "columnheader", children: /* @__PURE__ */ a("span", { className: "sr-only", children: "Expand" }) }),
446
- i && /* @__PURE__ */ a(
446
+ l && /* @__PURE__ */ a(
447
447
  "th",
448
448
  {
449
449
  style: { width: 50 },
450
450
  className: `sticky ${L ? "" : "left-0"} z-20 bg-base-100`,
451
451
  role: "columnheader",
452
- children: i.type !== "radio" && /* @__PURE__ */ a(
452
+ children: l.type !== "radio" && /* @__PURE__ */ a(
453
453
  "input",
454
454
  {
455
455
  type: "checkbox",
@@ -484,8 +484,8 @@ function He({
484
484
  {
485
485
  className: e.sorter ? "cursor-pointer select-none hover:text-primary" : "",
486
486
  onClick: () => e.sorter && fe(e.key),
487
- onKeyDown: (l) => {
488
- e.sorter && (l.key === "Enter" || l.key === " ") && (l.preventDefault(), fe(e.key));
487
+ onKeyDown: (i) => {
488
+ e.sorter && (i.key === "Enter" || i.key === " ") && (i.preventDefault(), fe(e.key));
489
489
  },
490
490
  tabIndex: e.sorter ? 0 : void 0,
491
491
  role: e.sorter ? "button" : void 0,
@@ -514,11 +514,11 @@ function He({
514
514
  )
515
515
  ] }),
516
516
  e.filters && /* @__PURE__ */ a(
517
- Xe,
517
+ Ye,
518
518
  {
519
519
  filters: e.filters,
520
520
  selectedValues: E[e.key] || [],
521
- onChange: (l) => Ie(e.key, l),
521
+ onChange: (i) => Ie(e.key, i),
522
522
  locale: Z,
523
523
  testId: `${p}-${e.key}`
524
524
  }
@@ -539,13 +539,13 @@ function He({
539
539
  children: Te
540
540
  }
541
541
  ) }) : P.map((e, t) => {
542
- const s = me?.(e, t) || {}, n = $(e, t), r = D.includes(n), l = M.includes(n), g = y?.rowExpandable ? y.rowExpandable(e) : !0, c = [
542
+ const s = me?.(e, t) || {}, n = $(e, t), r = D.includes(n), i = M.includes(n), g = y?.rowExpandable ? y.rowExpandable(e) : !0, c = [
543
543
  B && "hover:bg-base-200",
544
544
  r && "bg-primary/10"
545
- ].filter(Boolean).join(" "), u = i?.getCheckboxProps?.(e) || {}, x = (f) => {
545
+ ].filter(Boolean).join(" "), u = l?.getCheckboxProps?.(e) || {}, x = (f) => {
546
546
  s.onClick?.(f), y?.expandRowByClick && g && ae(e, t);
547
547
  };
548
- return /* @__PURE__ */ m(Ge.Fragment, { children: [
548
+ return /* @__PURE__ */ m(Je.Fragment, { children: [
549
549
  /* @__PURE__ */ m(
550
550
  "tr",
551
551
  {
@@ -558,17 +558,17 @@ function He({
558
558
  onClick: x,
559
559
  children: [
560
560
  L && /* @__PURE__ */ a("td", { className: "sticky left-0 z-10 bg-base-100", role: "gridcell", children: g && (y.expandIcon ? y.expandIcon({
561
- expanded: l,
561
+ expanded: i,
562
562
  onExpand: () => ae(e, t),
563
563
  record: e
564
564
  }) : /* @__PURE__ */ a(
565
- Ye,
565
+ _e,
566
566
  {
567
- expanded: l,
567
+ expanded: i,
568
568
  onExpand: () => ae(e, t)
569
569
  }
570
570
  )) }),
571
- i && /* @__PURE__ */ a(
571
+ l && /* @__PURE__ */ a(
572
572
  "td",
573
573
  {
574
574
  className: `sticky ${L ? "" : "left-0"} z-10 bg-base-100`,
@@ -576,8 +576,8 @@ function He({
576
576
  children: /* @__PURE__ */ a(
577
577
  "input",
578
578
  {
579
- type: i.type === "radio" ? "radio" : "checkbox",
580
- className: i.type === "radio" ? "radio radio-sm radio-primary" : "checkbox checkbox-sm checkbox-primary",
579
+ type: l.type === "radio" ? "radio" : "checkbox",
580
+ className: l.type === "radio" ? "radio radio-sm radio-primary" : "checkbox checkbox-sm checkbox-primary",
581
581
  checked: r,
582
582
  onChange: (f) => Oe(e, t, f.target.checked),
583
583
  "aria-label": `Select row ${t + 1}`,
@@ -587,8 +587,8 @@ function He({
587
587
  )
588
588
  }
589
589
  ),
590
- b.map((f, _e) => {
591
- const xe = ue(_e, !1), ne = De(f, e, t);
590
+ b.map((f, Ge) => {
591
+ const xe = ue(Ge, !1), ne = De(f, e, t);
592
592
  return /* @__PURE__ */ a(
593
593
  "td",
594
594
  {
@@ -605,7 +605,7 @@ function He({
605
605
  ]
606
606
  }
607
607
  ),
608
- L && l && /* @__PURE__ */ a(
608
+ L && i && /* @__PURE__ */ a(
609
609
  "tr",
610
610
  {
611
611
  className: "bg-base-200/50",
@@ -617,7 +617,7 @@ function He({
617
617
  colSpan: b.length + be,
618
618
  className: "p-4",
619
619
  role: "gridcell",
620
- children: y.expandedRowRender(e, t, l)
620
+ children: y.expandedRowRender(e, t, i)
621
621
  }
622
622
  )
623
623
  }
@@ -630,8 +630,8 @@ function He({
630
630
  Ae
631
631
  ] });
632
632
  }
633
- const et = Je(He);
633
+ const et = Qe(He);
634
634
  export {
635
635
  et as Table
636
636
  };
637
- //# sourceMappingURL=index80.js.map
637
+ //# sourceMappingURL=Table.js.map