haze-ui 1.6.0 → 1.6.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 (150) hide show
  1. package/dist/components/Alert/Alert.js +5 -7
  2. package/dist/components/AspectRatio/AspectRatio.js +1 -1
  3. package/dist/components/Badge/Badge.js +3 -2
  4. package/dist/components/BottomSheet/BottomSheet.js +1 -1
  5. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  6. package/dist/components/Carousel/Carousel.js +4 -6
  7. package/dist/components/Checkbox/Checkbox.js +14 -11
  8. package/dist/components/Collapsible/Collapsible.js +1 -1
  9. package/dist/components/Combobox/Combobox.js +3 -3
  10. package/dist/components/Command/Command.js +1 -1
  11. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
  12. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  13. package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
  14. package/dist/components/Flex/Flex.js +4 -3
  15. package/dist/components/Icon/Icon.js +2 -2
  16. package/dist/components/ModelPicker/ModelPicker.js +1 -1
  17. package/dist/components/Progress/Progress.js +2 -2
  18. package/dist/components/Radio/RadioGroup.js +1 -1
  19. package/dist/components/Resizable/Resizable.js +1 -1
  20. package/dist/components/Spinner/Spinner.js +1 -1
  21. package/dist/components/Stepper/Stepper.js +1 -1
  22. package/dist/components/Switch/Switch.js +1 -1
  23. package/dist/components/Table/Table.js +1 -1
  24. package/dist/components/Tabs/Tabs.js +1 -1
  25. package/dist/components/Transfer/Transfer.js +10 -10
  26. package/dist/components/Tree/TreeItem.js +6 -6
  27. package/dist/components/VirtualList/VirtualList.js +1 -1
  28. package/dist/haze-ui.css +1 -1
  29. package/dist/types/components/Accordion/Accordion.d.ts +1 -1
  30. package/dist/types/components/Accordion/AccordionItem.d.ts +1 -1
  31. package/dist/types/components/Affix/Affix.d.ts +1 -1
  32. package/dist/types/components/Alert/Alert.d.ts +1 -1
  33. package/dist/types/components/ApprovalCard/ApprovalCard.d.ts +1 -1
  34. package/dist/types/components/AspectRatio/AspectRatio.d.ts +1 -1
  35. package/dist/types/components/Avatar/Avatar.d.ts +1 -1
  36. package/dist/types/components/BackToTop/BackToTop.d.ts +1 -1
  37. package/dist/types/components/Badge/Badge.d.ts +3 -2
  38. package/dist/types/components/Banner/Banner.d.ts +1 -1
  39. package/dist/types/components/BottomSheet/BottomSheet.d.ts +1 -1
  40. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -1
  41. package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
  42. package/dist/types/components/Button/Button.d.ts +1 -1
  43. package/dist/types/components/Card/Card.d.ts +1 -1
  44. package/dist/types/components/Carousel/Carousel.d.ts +1 -1
  45. package/dist/types/components/Carousel/CarouselSlide.d.ts +1 -1
  46. package/dist/types/components/ChatContainer/ChatContainer.d.ts +1 -1
  47. package/dist/types/components/ChatInput/ChatInput.d.ts +1 -1
  48. package/dist/types/components/ChatMessage/ChatMessage.d.ts +1 -1
  49. package/dist/types/components/Checkbox/Checkbox.d.ts +3 -2
  50. package/dist/types/components/Chip/Chip.d.ts +1 -1
  51. package/dist/types/components/CodeBlock/CodeBlock.d.ts +1 -1
  52. package/dist/types/components/Collapsible/Collapsible.d.ts +3 -3
  53. package/dist/types/components/ColorPicker/ColorPicker.d.ts +1 -1
  54. package/dist/types/components/Combobox/Combobox.d.ts +1 -1
  55. package/dist/types/components/Combobox/ComboboxOption.d.ts +1 -1
  56. package/dist/types/components/Command/Command.d.ts +4 -4
  57. package/dist/types/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
  58. package/dist/types/components/Container/Container.d.ts +1 -1
  59. package/dist/types/components/ContextMenu/ContextMenu.d.ts +1 -1
  60. package/dist/types/components/ContextMenu/ContextMenuContent.d.ts +1 -1
  61. package/dist/types/components/ContextMenu/ContextMenuItem.d.ts +1 -1
  62. package/dist/types/components/ContextMenu/ContextMenuSeparator.d.ts +1 -1
  63. package/dist/types/components/ContextMenu/ContextMenuTrigger.d.ts +1 -1
  64. package/dist/types/components/ConversationList/ConversationItem.d.ts +1 -1
  65. package/dist/types/components/ConversationList/ConversationList.d.ts +1 -1
  66. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  67. package/dist/types/components/Datepicker/Calendar.d.ts +1 -1
  68. package/dist/types/components/Datepicker/Datepicker.d.ts +1 -1
  69. package/dist/types/components/Dialog/Dialog.d.ts +1 -1
  70. package/dist/types/components/DiffViewer/DiffViewer.d.ts +1 -1
  71. package/dist/types/components/Disclosure/Disclosure.d.ts +1 -1
  72. package/dist/types/components/Divider/Divider.d.ts +1 -1
  73. package/dist/types/components/Drawer/Drawer.d.ts +1 -1
  74. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +1 -1
  75. package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
  76. package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  77. package/dist/types/components/DropdownMenu/DropdownMenuSeparator.d.ts +1 -1
  78. package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  79. package/dist/types/components/Empty/Empty.d.ts +1 -1
  80. package/dist/types/components/FileInput/FileInput.d.ts +1 -1
  81. package/dist/types/components/Flex/Flex.d.ts +2 -1
  82. package/dist/types/components/Grid/Grid.d.ts +1 -1
  83. package/dist/types/components/Grid/GridItem.d.ts +1 -1
  84. package/dist/types/components/Icon/Icon.d.ts +1 -1
  85. package/dist/types/components/Image/Image.d.ts +1 -1
  86. package/dist/types/components/InlineEdit/InlineEdit.d.ts +1 -1
  87. package/dist/types/components/Input/Input.d.ts +1 -1
  88. package/dist/types/components/List/List.d.ts +1 -1
  89. package/dist/types/components/List/ListItem.d.ts +1 -1
  90. package/dist/types/components/LogViewer/LogViewer.d.ts +1 -1
  91. package/dist/types/components/MarkdownRenderer/MarkdownRenderer.d.ts +1 -1
  92. package/dist/types/components/Menu/Menu.d.ts +1 -1
  93. package/dist/types/components/Menu/MenuDivider.d.ts +1 -1
  94. package/dist/types/components/Menu/MenuItem.d.ts +1 -1
  95. package/dist/types/components/ModelPicker/ModelPicker.d.ts +1 -1
  96. package/dist/types/components/NavigationBar/NavLink.d.ts +1 -1
  97. package/dist/types/components/NavigationBar/NavigationBar.d.ts +1 -1
  98. package/dist/types/components/NumberInput/NumberInput.d.ts +1 -1
  99. package/dist/types/components/OTPInput/OTPInput.d.ts +1 -1
  100. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  101. package/dist/types/components/PasswordInput/PasswordInput.d.ts +1 -1
  102. package/dist/types/components/Popover/Popover.d.ts +1 -1
  103. package/dist/types/components/Progress/Progress.d.ts +1 -1
  104. package/dist/types/components/Radio/Radio.d.ts +1 -1
  105. package/dist/types/components/Radio/RadioGroup.d.ts +1 -1
  106. package/dist/types/components/Rating/Rating.d.ts +1 -1
  107. package/dist/types/components/Resizable/Resizable.d.ts +3 -3
  108. package/dist/types/components/ScrollArea/ScrollArea.d.ts +1 -1
  109. package/dist/types/components/Segmented/Segmented.d.ts +1 -1
  110. package/dist/types/components/Select/Option.d.ts +1 -1
  111. package/dist/types/components/Select/Select.d.ts +1 -1
  112. package/dist/types/components/Skeleton/Skeleton.d.ts +1 -1
  113. package/dist/types/components/Slider/Slider.d.ts +1 -1
  114. package/dist/types/components/Spinner/Spinner.d.ts +1 -1
  115. package/dist/types/components/Stat/Stat.d.ts +2 -2
  116. package/dist/types/components/StepTimeline/StepTimeline.d.ts +2 -2
  117. package/dist/types/components/Stepper/Step.d.ts +1 -1
  118. package/dist/types/components/Stepper/Stepper.d.ts +1 -1
  119. package/dist/types/components/StreamingText/StreamingText.d.ts +1 -1
  120. package/dist/types/components/SwipeAction/SwipeAction.d.ts +1 -1
  121. package/dist/types/components/Switch/Switch.d.ts +1 -1
  122. package/dist/types/components/Table/Table.d.ts +1 -1
  123. package/dist/types/components/Table/TableBody.d.ts +1 -1
  124. package/dist/types/components/Table/TableCell.d.ts +1 -1
  125. package/dist/types/components/Table/TableHead.d.ts +1 -1
  126. package/dist/types/components/Table/TableRow.d.ts +1 -1
  127. package/dist/types/components/Tabs/Tab.d.ts +1 -1
  128. package/dist/types/components/Tabs/TabList.d.ts +1 -1
  129. package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
  130. package/dist/types/components/Tabs/Tabs.d.ts +1 -1
  131. package/dist/types/components/Tag/Tag.d.ts +1 -1
  132. package/dist/types/components/TagGroup/TagGroup.d.ts +1 -1
  133. package/dist/types/components/TagGroup/TagGroupItem.d.ts +1 -1
  134. package/dist/types/components/TagInput/TagInput.d.ts +1 -1
  135. package/dist/types/components/Textarea/Textarea.d.ts +1 -1
  136. package/dist/types/components/ThinkingIndicator/ThinkingIndicator.d.ts +1 -1
  137. package/dist/types/components/TimePicker/TimePicker.d.ts +1 -1
  138. package/dist/types/components/Timeline/Timeline.d.ts +2 -2
  139. package/dist/types/components/Toast/Toast.d.ts +1 -1
  140. package/dist/types/components/Toast/ToastContainer.d.ts +1 -1
  141. package/dist/types/components/TokenCounter/TokenCounter.d.ts +1 -1
  142. package/dist/types/components/ToolCallCard/ToolCallCard.d.ts +1 -1
  143. package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
  144. package/dist/types/components/Transfer/Transfer.d.ts +1 -1
  145. package/dist/types/components/Tree/Tree.d.ts +1 -1
  146. package/dist/types/components/Tree/TreeItem.d.ts +1 -1
  147. package/dist/types/components/Typography/Typography.d.ts +4 -4
  148. package/dist/types/components/Upload/Upload.d.ts +1 -1
  149. package/dist/types/components/VirtualList/VirtualList.d.ts +1 -1
  150. package/package.json +30 -30
@@ -11,11 +11,7 @@ var i = "haze-Alert__base", a = {
11
11
  }, o = "haze-Alert__contentStyle", s = "haze-Alert__closeBtn";
12
12
  function c({ visible: c, onClose: l, variant: u = "info", closable: d = !1, className: f, children: p }) {
13
13
  let [m, h] = r(c, !0);
14
- if (!m) return null;
15
- let g = () => {
16
- h(!1), l?.();
17
- };
18
- return /* @__PURE__ */ n("div", {
14
+ return m ? /* @__PURE__ */ n("div", {
19
15
  role: "alert",
20
16
  className: e([
21
17
  i,
@@ -29,10 +25,12 @@ function c({ visible: c, onClose: l, variant: u = "info", closable: d = !1, clas
29
25
  type: "button",
30
26
  className: s,
31
27
  "aria-label": "Close",
32
- onClick: g,
28
+ onClick: () => {
29
+ h(!1), l?.();
30
+ },
33
31
  children: "×"
34
32
  })]
35
- });
33
+ }) : null;
36
34
  }
37
35
  //#endregion
38
36
  export { c as default };
@@ -7,7 +7,7 @@ function i({ ratio: i = 16 / 9, children: a, className: o }) {
7
7
  return /* @__PURE__ */ t("div", {
8
8
  style: { paddingBottom: `${1 / i * 100}%` },
9
9
  className: e([n, o]),
10
- children: /* @__PURE__ */ t("div", {
10
+ children: t("div", {
11
11
  className: e([r]),
12
12
  children: a
13
13
  })
@@ -12,15 +12,16 @@ var n = "haze-Badge__base", r = {
12
12
  sm: "haze-Badge__sm",
13
13
  md: "haze-Badge__md"
14
14
  };
15
- function a({ variant: a = "default", size: o = "md", className: s, children: c }) {
15
+ function a({ variant: a = "default", size: o = "md", className: s, style: c, children: l }) {
16
16
  return /* @__PURE__ */ t("span", {
17
+ style: c,
17
18
  className: e([
18
19
  n,
19
20
  r[a],
20
21
  i[o],
21
22
  s
22
23
  ]),
23
- children: c
24
+ children: l
24
25
  });
25
26
  }
26
27
  //#endregion
@@ -11,7 +11,7 @@ function s({ open: s, onClose: c, children: l, className: u }) {
11
11
  f(!1), c?.();
12
12
  },
13
13
  className: e([i, u]),
14
- children: /* @__PURE__ */ n("div", {
14
+ children: n("div", {
15
15
  onClick: (e) => e.stopPropagation(),
16
16
  className: e([a]),
17
17
  children: [/* @__PURE__ */ t("div", { className: e([o]) }), l]
@@ -9,7 +9,7 @@ function s({ separator: s = "/", className: c, children: l }) {
9
9
  return /* @__PURE__ */ t("nav", {
10
10
  "aria-label": "Breadcrumb",
11
11
  className: e([i, c]),
12
- children: /* @__PURE__ */ t("ol", {
12
+ children: t("ol", {
13
13
  className: a,
14
14
  children: u.map((e, r) => /* @__PURE__ */ n("li", {
15
15
  "aria-current": r === u.length - 1 ? "page" : void 0,
@@ -7,7 +7,7 @@ import { Children as a, useEffect as o, useRef as s } from "react";
7
7
  var c = "haze-Carousel__wrapper", l = "haze-Carousel__track", u = "haze-Carousel__navBtn", d = "haze-Carousel__prevBtn", f = "haze-Carousel__nextBtn", p = "haze-Carousel__indicators", m = "haze-Carousel__dot", h = "haze-Carousel__dotActive";
8
8
  function g({ value: g, autoPlay: _ = !1, interval: v = 5e3, className: y, children: b }) {
9
9
  let [x, S] = i(g, 0), C = s(null), w = a.count(b);
10
- o(() => {
10
+ return o(() => {
11
11
  let e = C.current;
12
12
  if (!e) return;
13
13
  let t = e.children[x];
@@ -27,9 +27,7 @@ function g({ value: g, autoPlay: _ = !1, interval: v = 5e3, className: y, childr
27
27
  v,
28
28
  w,
29
29
  S
30
- ]);
31
- let T = () => S((e) => (e - 1 + w) % w), E = () => S((e) => (e + 1) % w);
32
- return /* @__PURE__ */ r("div", {
30
+ ]), /* @__PURE__ */ r("div", {
33
31
  role: "region",
34
32
  "aria-roledescription": "carousel",
35
33
  "aria-label": "Carousel",
@@ -41,14 +39,14 @@ function g({ value: g, autoPlay: _ = !1, interval: v = 5e3, className: y, childr
41
39
  }), w > 1 && /* @__PURE__ */ r(t, { children: [
42
40
  /* @__PURE__ */ n("button", {
43
41
  type: "button",
44
- onClick: T,
42
+ onClick: () => S((e) => (e - 1 + w) % w),
45
43
  "aria-label": "Previous slide",
46
44
  className: e([u, d]),
47
45
  children: "‹"
48
46
  }),
49
47
  /* @__PURE__ */ n("button", {
50
48
  type: "button",
51
- onClick: E,
49
+ onClick: () => S((e) => (e + 1) % w),
52
50
  "aria-label": "Next slide",
53
51
  className: e([u, f]),
54
52
  children: "›"
@@ -1,20 +1,23 @@
1
1
  /* empty css */
2
2
  import { classnames as e } from "babel-runtime-jsx-plus";
3
- import { jsx as t } from "react/jsx-runtime";
4
- import { useControl as n } from "react-use-control";
3
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
+ import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/Checkbox/Checkbox.tsx
6
- var r = "haze-Checkbox__base";
7
- function i({ checked: i, className: a, onChange: o, ...s }) {
8
- let [c, l] = n(i, !1);
9
- return /* @__PURE__ */ t("input", {
6
+ var i = "haze-Checkbox__base", a = "haze-Checkbox__labelText";
7
+ function o({ checked: o, className: s, label: c, onChange: l, ...u }) {
8
+ let [d, f] = r(o, !1), p = /* @__PURE__ */ t("input", {
10
9
  type: "checkbox",
11
- checked: c,
10
+ checked: d,
12
11
  onChange: (e) => {
13
- l(e.target.checked), o?.(e);
12
+ f(e.target.checked), l?.(e);
14
13
  },
15
- ...s,
16
- className: e([r, a])
14
+ ...u,
15
+ className: e([i, s])
16
+ });
17
+ return c === void 0 ? p : /* @__PURE__ */ n("label", {
18
+ className: e(a),
19
+ children: [p, c]
17
20
  });
18
21
  }
19
22
  //#endregion
20
- export { i as default };
23
+ export { o as default };
@@ -18,7 +18,7 @@ function c({ open: r, defaultOpen: i = !1, children: o, className: c }) {
18
18
  open: l,
19
19
  toggle: () => u((e) => !e)
20
20
  },
21
- children: /* @__PURE__ */ t("div", {
21
+ children: t("div", {
22
22
  className: e([s, c]),
23
23
  children: o
24
24
  })
@@ -13,8 +13,6 @@ function p({ value: p, open: m, options: h, placeholder: g, className: _ }) {
13
13
  }, [b]);
14
14
  let k = (e) => {
15
15
  y(e), x(h.find((t) => t.value === e)?.label ?? e), C(!1), D.current?.focus();
16
- }, A = (e) => {
17
- e.key === "ArrowDown" ? (e.preventDefault(), T((e) => Math.min(e + 1, O.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), T((e) => Math.max(e - 1, 0))) : e.key === "Enter" && w >= 0 && O[w] ? (e.preventDefault(), k(O[w].value)) : e.key === "Escape" && C(!1);
18
16
  };
19
17
  return /* @__PURE__ */ r("div", {
20
18
  className: t([l, _]),
@@ -31,7 +29,9 @@ function p({ value: p, open: m, options: h, placeholder: g, className: _ }) {
31
29
  x(e.target.value), C(!0);
32
30
  },
33
31
  onFocus: () => C(!0),
34
- onKeyDown: A
32
+ onKeyDown: (e) => {
33
+ e.key === "ArrowDown" ? (e.preventDefault(), T((e) => Math.min(e + 1, O.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), T((e) => Math.max(e - 1, 0))) : e.key === "Enter" && w >= 0 && O[w] ? (e.preventDefault(), k(O[w].value)) : e.key === "Escape" && C(!1);
34
+ }
35
35
  }), /* @__PURE__ */ n("div", {
36
36
  id: E,
37
37
  role: "listbox",
@@ -18,7 +18,7 @@ function l({ query: r, children: i, className: s }) {
18
18
  }), [l, u]);
19
19
  return /* @__PURE__ */ t(o.Provider, {
20
20
  value: d,
21
- children: /* @__PURE__ */ t("div", {
21
+ children: t("div", {
22
22
  role: "combobox",
23
23
  className: e([c, s]),
24
24
  children: i
@@ -13,7 +13,7 @@ function p({ open: p, onClose: m, onConfirm: h, onCancel: g, title: _, children:
13
13
  return /* @__PURE__ */ t("div", {
14
14
  onClick: T,
15
15
  className: e([i, S]),
16
- children: /* @__PURE__ */ n("div", {
16
+ children: n("div", {
17
17
  onClick: (e) => e.stopPropagation(),
18
18
  className: e([a]),
19
19
  children: [
@@ -31,7 +31,7 @@ function l({ open: l, onOpenChange: u, children: d, className: f }) {
31
31
  y: _,
32
32
  setPosition: x
33
33
  },
34
- children: /* @__PURE__ */ n("div", {
34
+ children: n("div", {
35
35
  ref: y,
36
36
  className: t([c, f]),
37
37
  children: d
@@ -26,7 +26,7 @@ function c({ open: c, onOpenChange: l, children: u, className: d }) {
26
26
  open: f,
27
27
  setOpen: h
28
28
  },
29
- children: /* @__PURE__ */ n("div", {
29
+ children: n("div", {
30
30
  ref: m,
31
31
  className: t([s, d]),
32
32
  children: u
@@ -3,17 +3,18 @@ import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Flex/Flex.tsx
5
5
  var n = "haze-Flex__base";
6
- function r({ direction: r = "row", align: i, justify: a, gap: o, wrap: s = !1, className: c, children: l }) {
6
+ function r({ direction: r = "row", align: i, justify: a, gap: o, wrap: s = !1, className: c, style: l, children: u }) {
7
7
  return /* @__PURE__ */ t("div", {
8
8
  style: {
9
9
  flexDirection: r,
10
10
  alignItems: i,
11
11
  justifyContent: a,
12
12
  gap: typeof o == "number" ? `${o}px` : o,
13
- flexWrap: s ? "wrap" : void 0
13
+ flexWrap: s ? "wrap" : void 0,
14
+ ...l
14
15
  },
15
16
  className: e([n, c]),
16
- children: l
17
+ children: u
17
18
  });
18
19
  }
19
20
  //#endregion
@@ -13,12 +13,12 @@ function a(e) {
13
13
  return !!(t.stroke || t.strokeWidth || t.fill === "none");
14
14
  }
15
15
  function o({ icon: o, size: s = "md", className: c, children: l }) {
16
- let u = o ? /* @__PURE__ */ t(o, {}) : l, d = o ? !0 : a(u);
16
+ let u = o ? /* @__PURE__ */ t(o, {}) : l;
17
17
  return /* @__PURE__ */ t("span", {
18
18
  "aria-hidden": "true",
19
19
  className: e([
20
20
  n,
21
- d && r,
21
+ (o ? !0 : a(u)) && r,
22
22
  i[s],
23
23
  c
24
24
  ]),
@@ -8,7 +8,7 @@ function o({ value: o, onChange: s, options: c, disabled: l, className: u }) {
8
8
  let [d, f] = r(o, "");
9
9
  return /* @__PURE__ */ t("div", {
10
10
  className: e([i, u]),
11
- children: /* @__PURE__ */ t("select", {
11
+ children: t("select", {
12
12
  value: d,
13
13
  onChange: (e) => {
14
14
  f(e.target.value), s?.(e.target.value);
@@ -43,7 +43,7 @@ function m({ value: m = 0, variant: h = "bar", size: g = "md", color: _ = "prima
43
43
  c[g],
44
44
  v
45
45
  ]),
46
- children: /* @__PURE__ */ n("svg", {
46
+ children: n("svg", {
47
47
  viewBox: `0 0 ${(r + i) * 2} ${(r + i) * 2}`,
48
48
  children: [/* @__PURE__ */ t("circle", {
49
49
  cx: r + i,
@@ -73,7 +73,7 @@ function m({ value: m = 0, variant: h = "bar", size: g = "md", color: _ = "prima
73
73
  i[g],
74
74
  v
75
75
  ]),
76
- children: /* @__PURE__ */ t("div", {
76
+ children: t("div", {
77
77
  style: { width: `${y}%` },
78
78
  className: e([a, o[_]])
79
79
  })
@@ -10,7 +10,7 @@ function o({ value: o, name: s, className: c, children: l }) {
10
10
  let [u, d] = r(o, ""), f = i();
11
11
  return /* @__PURE__ */ n("fieldset", {
12
12
  className: t([a, c]),
13
- children: /* @__PURE__ */ n(e, {
13
+ children: n(e, {
14
14
  value: {
15
15
  name: s ?? f,
16
16
  value: u,
@@ -20,7 +20,7 @@ function u({ direction: n = "horizontal", children: r, className: o }) {
20
20
  dragging: f,
21
21
  setDragging: p
22
22
  },
23
- children: /* @__PURE__ */ t("div", {
23
+ children: t("div", {
24
24
  className: e([
25
25
  s,
26
26
  n === "horizontal" ? c : l,
@@ -16,7 +16,7 @@ function a({ size: a = "md", className: o }) {
16
16
  i[a],
17
17
  o
18
18
  ]),
19
- children: /* @__PURE__ */ n("svg", {
19
+ children: n("svg", {
20
20
  viewBox: "0 0 24 24",
21
21
  fill: "none",
22
22
  xmlns: "http://www.w3.org/2000/svg",
@@ -14,7 +14,7 @@ function c({ activeStep: c, children: l, className: u }) {
14
14
  setActiveStep: f,
15
15
  totalSteps: i.count(l)
16
16
  },
17
- children: /* @__PURE__ */ n("div", {
17
+ children: n("div", {
18
18
  role: "list",
19
19
  className: t([s, u]),
20
20
  children: i.map(l, (e, t) => o(e) ? a(e, { index: t }) : e)
@@ -32,7 +32,7 @@ function v({ checked: o, size: s = "md", className: c, onClick: l, ...u }) {
32
32
  d && i,
33
33
  c
34
34
  ]),
35
- children: /* @__PURE__ */ t("span", { className: e([
35
+ children: t("span", { className: e([
36
36
  a,
37
37
  g[s],
38
38
  d && _[s]
@@ -6,7 +6,7 @@ var n = "haze-Table__wrapper", r = "haze-Table__base", i = "haze-Table__stripedS
6
6
  function o({ striped: o = !1, bordered: s = !1, className: c, children: l }) {
7
7
  return /* @__PURE__ */ t("div", {
8
8
  className: e([n]),
9
- children: /* @__PURE__ */ t("table", {
9
+ children: t("table", {
10
10
  className: e([
11
11
  r,
12
12
  o && i,
@@ -9,7 +9,7 @@ function a({ value: a, className: o, children: s }) {
9
9
  let [c, l] = r(a, "");
10
10
  return /* @__PURE__ */ n("div", {
11
11
  className: t([i, o]),
12
- children: /* @__PURE__ */ n(e, {
12
+ children: n(e, {
13
13
  value: {
14
14
  value: c,
15
15
  setValue: l
@@ -10,14 +10,6 @@ function f({ dataSource: f, targetKeys: p, onChange: m, className: h }) {
10
10
  y((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
11
11
  }, T = (e) => {
12
12
  x((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
13
- }, E = () => {
14
- if (v.length === 0) return;
15
- let e = [...g, ...v];
16
- _(e), m?.(e, "right", v), y([]);
17
- }, D = () => {
18
- if (b.length === 0) return;
19
- let e = g.filter((e) => !b.includes(e));
20
- _(e), m?.(e, "left", b), x([]);
21
13
  };
22
14
  return /* @__PURE__ */ n("div", {
23
15
  className: e([a, h]),
@@ -50,14 +42,22 @@ function f({ dataSource: f, targetKeys: p, onChange: m, className: h }) {
50
42
  children: [/* @__PURE__ */ t("button", {
51
43
  type: "button",
52
44
  disabled: v.length === 0,
53
- onClick: E,
45
+ onClick: () => {
46
+ if (v.length === 0) return;
47
+ let e = [...g, ...v];
48
+ _(e), m?.(e, "right", v), y([]);
49
+ },
54
50
  "aria-label": ">",
55
51
  className: e([d]),
56
52
  children: "›"
57
53
  }), /* @__PURE__ */ t("button", {
58
54
  type: "button",
59
55
  disabled: b.length === 0,
60
- onClick: D,
56
+ onClick: () => {
57
+ if (b.length === 0) return;
58
+ let e = g.filter((e) => !b.includes(e));
59
+ _(e), m?.(e, "left", b), x([]);
60
+ },
61
61
  "aria-label": "<",
62
62
  className: e([d]),
63
63
  children: "‹"
@@ -9,7 +9,7 @@ var r = "haze-TreeItem__item", i = "haze-TreeItem__blockItem", a = "haze-TreeIte
9
9
  strokeWidth: "2",
10
10
  strokeLinecap: "round",
11
11
  strokeLinejoin: "round",
12
- children: /* @__PURE__ */ t("path", { d: "M4 2l4 4-4 4" })
12
+ children: t("path", { d: "M4 2l4 4-4 4" })
13
13
  }), v = () => /* @__PURE__ */ t("svg", {
14
14
  viewBox: "0 0 12 12",
15
15
  fill: "none",
@@ -17,18 +17,18 @@ var r = "haze-TreeItem__item", i = "haze-TreeItem__blockItem", a = "haze-TreeIte
17
17
  strokeWidth: "2",
18
18
  strokeLinecap: "round",
19
19
  strokeLinejoin: "round",
20
- children: /* @__PURE__ */ t("path", { d: "M2 6l3 3 5-5" })
20
+ children: t("path", { d: "M2 6l3 3 5-5" })
21
21
  }), y = () => /* @__PURE__ */ t("svg", {
22
22
  viewBox: "0 0 12 12",
23
23
  fill: "none",
24
24
  stroke: "currentColor",
25
25
  strokeWidth: "2",
26
26
  strokeLinecap: "round",
27
- children: /* @__PURE__ */ t("path", { d: "M2 6h8" })
27
+ children: t("path", { d: "M2 6h8" })
28
28
  }), b = () => /* @__PURE__ */ t("svg", {
29
29
  viewBox: "0 0 16 16",
30
30
  fill: "currentColor",
31
- children: /* @__PURE__ */ t("path", { d: "M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5v-9z" })
31
+ children: t("path", { d: "M1 3.5A1.5 1.5 0 0 1 2.5 2h2.764c.958 0 1.76.56 2.311 1.184C7.985 3.648 8.48 4 9 4h4.5A1.5 1.5 0 0 1 15 5.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5v-9z" })
32
32
  }), x = () => /* @__PURE__ */ n("svg", {
33
33
  viewBox: "0 0 16 16",
34
34
  fill: "currentColor",
@@ -39,7 +39,7 @@ var r = "haze-TreeItem__item", i = "haze-TreeItem__blockItem", a = "haze-TreeIte
39
39
  }), S = () => /* @__PURE__ */ t("svg", {
40
40
  viewBox: "0 0 16 16",
41
41
  fill: "currentColor",
42
- children: /* @__PURE__ */ t("path", { d: "M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.414a2 2 0 0 0-.586-1.414L10.586.172A2 2 0 0 0 9.172 0H4zm1 1a1 1 0 0 1 1-1h3.172a1 1 0 0 1 .707.293l2.121 2.121a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V1z" })
42
+ children: t("path", { d: "M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.414a2 2 0 0 0-.586-1.414L10.586.172A2 2 0 0 0 9.172 0H4zm1 1a1 1 0 0 1 1-1h3.172a1 1 0 0 1 .707.293l2.121 2.121a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V1z" })
43
43
  }), C = () => /* @__PURE__ */ n("svg", {
44
44
  viewBox: "0 0 16 16",
45
45
  fill: "currentColor",
@@ -50,7 +50,7 @@ var r = "haze-TreeItem__item", i = "haze-TreeItem__blockItem", a = "haze-TreeIte
50
50
  });
51
51
  function w({ node: w, level: T, expanded: E, selected: D, checked: O, disabled: k, checkable: A, selectable: j, blockNode: M, showLine: N, showIcon: P, switcherIcon: F, loadingIcon: I, loading: L, titleRender: R, iconRender: z, isLast: B, onToggle: V, onSelect: H, onCheck: U }) {
52
52
  let W = !!w.children?.length, G = w.isLeaf ?? !W, K = Array.from({ length: T }, (e, t) => ({ showLine: N && !B[t] })), q = R ? R(w) : w.title, J = z ? z(w) : w.icon;
53
- return /* @__PURE__ */ t("div", { children: /* @__PURE__ */ n("div", {
53
+ return /* @__PURE__ */ t("div", { children: n("div", {
54
54
  role: "treeitem",
55
55
  "aria-selected": D,
56
56
  "aria-expanded": G ? void 0 : E,
@@ -17,7 +17,7 @@ function c({ items: c, height: l, itemHeight: u, renderItem: d, overscan: f = 5,
17
17
  ref: g,
18
18
  style: { height: l },
19
19
  className: e([o, p]),
20
- children: /* @__PURE__ */ t("div", {
20
+ children: t("div", {
21
21
  style: { height: v },
22
22
  className: e([s]),
23
23
  children: x.map((e, n) => /* @__PURE__ */ t("div", {