haze-ui 1.6.1 → 1.7.0

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 (127) hide show
  1. package/dist/components/Accordion/Accordion.js +1 -1
  2. package/dist/components/Accordion/AccordionItem.js +1 -1
  3. package/dist/components/Affix/Affix.js +1 -1
  4. package/dist/components/Alert/Alert.js +1 -1
  5. package/dist/components/ApprovalCard/ApprovalCard.js +1 -1
  6. package/dist/components/AspectRatio/AspectRatio.js +3 -2
  7. package/dist/components/Avatar/Avatar.js +1 -1
  8. package/dist/components/BackToTop/BackToTop.js +1 -1
  9. package/dist/components/Badge/Badge.js +1 -1
  10. package/dist/components/Banner/Banner.js +1 -1
  11. package/dist/components/BottomSheet/BottomSheet.js +1 -1
  12. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  13. package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -1
  14. package/dist/components/Button/Button.js +1 -1
  15. package/dist/components/Card/Card.js +1 -1
  16. package/dist/components/Carousel/Carousel.js +1 -1
  17. package/dist/components/Carousel/CarouselSlide.js +1 -1
  18. package/dist/components/ChatContainer/ChatContainer.js +1 -1
  19. package/dist/components/ChatInput/ChatInput.js +1 -1
  20. package/dist/components/ChatMessage/ChatMessage.js +1 -1
  21. package/dist/components/Checkbox/Checkbox.js +1 -1
  22. package/dist/components/Chip/Chip.js +3 -2
  23. package/dist/components/CodeBlock/CodeBlock.js +1 -1
  24. package/dist/components/Collapsible/Collapsible.js +1 -1
  25. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  26. package/dist/components/Combobox/Combobox.js +12 -10
  27. package/dist/components/Combobox/ComboboxOption.js +1 -1
  28. package/dist/components/Command/Command.js +1 -1
  29. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
  30. package/dist/components/Container/Container.js +1 -1
  31. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  32. package/dist/components/ContextMenu/ContextMenuContent.js +4 -4
  33. package/dist/components/ContextMenu/ContextMenuItem.js +4 -4
  34. package/dist/components/ContextMenu/ContextMenuSeparator.js +1 -1
  35. package/dist/components/ContextMenu/ContextMenuTrigger.js +4 -4
  36. package/dist/components/ConversationList/ConversationItem.js +1 -1
  37. package/dist/components/ConversationList/ConversationList.js +1 -1
  38. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  39. package/dist/components/Datepicker/Calendar.js +1 -1
  40. package/dist/components/Datepicker/Datepicker.js +5 -5
  41. package/dist/components/Dialog/Dialog.js +1 -1
  42. package/dist/components/DiffViewer/DiffViewer.js +1 -1
  43. package/dist/components/Disclosure/Disclosure.js +1 -1
  44. package/dist/components/Divider/Divider.js +1 -1
  45. package/dist/components/Drawer/Drawer.js +1 -1
  46. package/dist/components/DropdownMenu/DropdownMenu.js +4 -4
  47. package/dist/components/DropdownMenu/DropdownMenuContent.js +4 -4
  48. package/dist/components/DropdownMenu/DropdownMenuItem.js +4 -4
  49. package/dist/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
  50. package/dist/components/DropdownMenu/DropdownMenuTrigger.js +4 -4
  51. package/dist/components/Empty/Empty.js +1 -1
  52. package/dist/components/FileInput/FileInput.js +1 -1
  53. package/dist/components/Flex/Flex.js +10 -9
  54. package/dist/components/Grid/Grid.js +1 -1
  55. package/dist/components/Icon/Icon.js +3 -3
  56. package/dist/components/Image/Image.js +1 -1
  57. package/dist/components/InlineEdit/InlineEdit.js +1 -1
  58. package/dist/components/Input/Input.js +1 -1
  59. package/dist/components/List/List.js +1 -1
  60. package/dist/components/List/ListItem.js +1 -1
  61. package/dist/components/LogViewer/LogViewer.js +1 -1
  62. package/dist/components/MarkdownRenderer/MarkdownRenderer.js +3 -2
  63. package/dist/components/Menu/Menu.js +1 -1
  64. package/dist/components/Menu/MenuItem.js +1 -1
  65. package/dist/components/ModelPicker/ModelPicker.js +1 -1
  66. package/dist/components/NavigationBar/NavLink.js +1 -1
  67. package/dist/components/NavigationBar/NavigationBar.js +1 -1
  68. package/dist/components/NumberInput/NumberInput.js +1 -1
  69. package/dist/components/OTPInput/OTPInput.js +1 -1
  70. package/dist/components/Pagination/Pagination.js +1 -1
  71. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  72. package/dist/components/Popover/Popover.js +1 -1
  73. package/dist/components/Progress/Progress.js +1 -1
  74. package/dist/components/Radio/Radio.js +4 -4
  75. package/dist/components/Radio/RadioGroup.js +4 -4
  76. package/dist/components/Rating/Rating.js +1 -1
  77. package/dist/components/Resizable/Resizable.js +3 -3
  78. package/dist/components/ScrollArea/ScrollArea.js +3 -2
  79. package/dist/components/Segmented/Segmented.js +1 -1
  80. package/dist/components/Select/Select.js +1 -1
  81. package/dist/components/Skeleton/Skeleton.js +6 -5
  82. package/dist/components/Slider/Slider.js +1 -1
  83. package/dist/components/Spinner/Spinner.js +1 -1
  84. package/dist/components/Stat/Stat.js +1 -1
  85. package/dist/components/StepTimeline/StepTimeline.js +1 -1
  86. package/dist/components/Stepper/Step.js +8 -8
  87. package/dist/components/Stepper/Stepper.js +6 -6
  88. package/dist/components/StreamingText/StreamingText.js +1 -1
  89. package/dist/components/SwipeAction/SwipeAction.js +1 -1
  90. package/dist/components/Switch/Switch.js +1 -1
  91. package/dist/components/Table/Table.js +1 -1
  92. package/dist/components/Table/TableBody.js +1 -1
  93. package/dist/components/Table/TableCell.js +1 -1
  94. package/dist/components/Table/TableHead.js +1 -1
  95. package/dist/components/Table/TableRow.js +1 -1
  96. package/dist/components/Tabs/Tab.js +4 -4
  97. package/dist/components/Tabs/TabList.js +1 -1
  98. package/dist/components/Tabs/TabPanel.js +4 -4
  99. package/dist/components/Tabs/Tabs.js +4 -4
  100. package/dist/components/Tag/Tag.js +1 -1
  101. package/dist/components/TagGroup/TagGroup.js +1 -1
  102. package/dist/components/TagGroup/TagGroupItem.js +1 -1
  103. package/dist/components/TagInput/TagInput.js +1 -1
  104. package/dist/components/Textarea/Textarea.js +1 -1
  105. package/dist/components/ThinkingIndicator/ThinkingIndicator.js +1 -1
  106. package/dist/components/TimePicker/TimePicker.js +1 -1
  107. package/dist/components/Timeline/Timeline.js +1 -1
  108. package/dist/components/Toast/Toast.js +1 -1
  109. package/dist/components/TokenCounter/TokenCounter.js +1 -1
  110. package/dist/components/ToolCallCard/ToolCallCard.js +1 -1
  111. package/dist/components/Tooltip/Tooltip.js +1 -1
  112. package/dist/components/Transfer/Transfer.js +1 -1
  113. package/dist/components/Tree/Tree.js +39 -39
  114. package/dist/components/Tree/TreeItem.js +1 -1
  115. package/dist/components/Typography/Typography.js +3 -2
  116. package/dist/components/Upload/Upload.js +10 -10
  117. package/dist/components/VirtualList/VirtualList.js +1 -1
  118. package/dist/form/FormItem.js +42 -0
  119. package/dist/form/useFormControl.js +54 -0
  120. package/dist/form.js +3 -0
  121. package/dist/haze-ui.css +1 -1
  122. package/dist/types/form/FormItem.d.ts +55 -0
  123. package/dist/types/form/index.d.ts +4 -0
  124. package/dist/types/form/useFormControl.d.ts +32 -0
  125. package/dist/types/utils/classnames.d.ts +1 -0
  126. package/dist/utils/classnames.js +13 -0
  127. package/package.json +36 -32
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useRef as r } from "react";
5
5
  //#region src/lib/components/FileInput/FileInput.tsx
@@ -1,18 +1,19 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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
6
  function r({ direction: r = "row", align: i, justify: a, gap: o, wrap: s = !1, className: c, style: l, children: u }) {
7
+ let d = {
8
+ flexDirection: r,
9
+ alignItems: i,
10
+ justifyContent: a,
11
+ gap: typeof o == "number" ? `${o}px` : o,
12
+ flexWrap: s ? "wrap" : void 0,
13
+ ...l
14
+ };
7
15
  return /* @__PURE__ */ t("div", {
8
- style: {
9
- flexDirection: r,
10
- alignItems: i,
11
- justifyContent: a,
12
- gap: typeof o == "number" ? `${o}px` : o,
13
- flexWrap: s ? "wrap" : void 0,
14
- ...l
15
- },
16
+ style: d,
16
17
  className: e([n, c]),
17
18
  children: u
18
19
  });
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Grid/Grid.tsx
5
5
  var n = "haze-Grid__base";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Icon/Icon.tsx
5
5
  var n = "haze-Icon__base", r = "haze-Icon__strokeOnly", i = {
@@ -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;
16
+ let u = o ? /* @__PURE__ */ t(o, {}) : l, d = o ? !0 : a(u);
17
17
  return /* @__PURE__ */ t("span", {
18
18
  "aria-hidden": "true",
19
19
  className: e([
20
20
  n,
21
- (o ? !0 : a(u)) && r,
21
+ d && r,
22
22
  i[s],
23
23
  c
24
24
  ]),
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useState as n } from "react";
5
5
  //#region src/lib/components/Image/Image.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  import { useEffect as r, useRef as i, useState as a } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  //#region src/lib/components/Input/Input.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/List/List.tsx
5
5
  var n = "haze-List__base", r = {
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/List/ListItem.tsx
5
5
  var n = "haze-ListItem__item";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  import { useMemo as i } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useMemo as n } from "react";
5
5
  //#region src/lib/components/MarkdownRenderer/MarkdownRenderer.tsx
@@ -15,8 +15,9 @@ function a(e) {
15
15
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
16
16
  }
17
17
  function o({ content: a, className: o }) {
18
+ let s = n(() => i(a), [a]);
18
19
  return /* @__PURE__ */ t("div", {
19
- dangerouslySetInnerHTML: { __html: n(() => i(a), [a]) },
20
+ dangerouslySetInnerHTML: { __html: s },
20
21
  className: e([r, o])
21
22
  });
22
23
  }
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  import { useEffect as i, useRef as a } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Menu/MenuItem.tsx
5
5
  var n = "haze-MenuItem__item";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/ModelPicker/ModelPicker.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/NavigationBar/NavLink.tsx
5
5
  var n = "haze-NavLink__link", r = "haze-NavLink__activeLink";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/NavigationBar/NavigationBar.tsx
5
5
  var r = "haze-NavigationBar__nav", i = "haze-NavigationBar__brand", a = "haze-NavigationBar__links", o = "haze-NavigationBar__endSlot";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/NumberInput/NumberInput.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  import { useCallback as r, useRef as i } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/Pagination/Pagination.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  import { useState as i } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  import { useId as i } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Progress/Progress.tsx
5
5
  var r = "haze-Progress__barBase", i = {
@@ -1,13 +1,13 @@
1
- import { useRadioContext as e } from "./RadioContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useRadioContext as t } from "./RadioContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region src/lib/components/Radio/Radio.tsx
6
6
  var i = "haze-Radio__radioInput", a = "haze-Radio__labelStyle";
7
7
  function o({ value: o, className: s, children: c, ...l }) {
8
- let u = e();
8
+ let u = t();
9
9
  return /* @__PURE__ */ r("label", {
10
- className: t([a, s]),
10
+ className: e([a, s]),
11
11
  children: [/* @__PURE__ */ n("input", {
12
12
  type: "radio",
13
13
  className: i,
@@ -1,6 +1,6 @@
1
- import { RadioProvider as e } from "./RadioContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { RadioProvider as t } from "./RadioContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  import { useControl as r } from "react-use-control";
6
6
  import { useId as i } from "react";
@@ -9,8 +9,8 @@ var a = "haze-RadioGroup__base";
9
9
  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
- className: t([a, c]),
13
- children: n(e, {
12
+ className: e([a, c]),
13
+ children: n(t, {
14
14
  value: {
15
15
  name: s ?? f,
16
16
  value: u,
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  import { useState as i } from "react";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { createContext as n, useContext as r, useState as i } from "react";
5
5
  //#region src/lib/components/Resizable/Resizable.tsx
@@ -32,9 +32,9 @@ function u({ direction: n = "horizontal", children: r, className: o }) {
32
32
  }
33
33
  var d = "haze-Resizable__panelStyle";
34
34
  function f({ defaultSize: n = 50, children: r, className: i }) {
35
- let { direction: a } = o();
35
+ let { direction: a } = o(), s = { flex: `0 0 ${n}%` };
36
36
  return /* @__PURE__ */ t("div", {
37
- style: { flex: `0 0 ${n}%` },
37
+ style: s,
38
38
  className: e([d, i]),
39
39
  children: r
40
40
  });
@@ -1,11 +1,12 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/ScrollArea/ScrollArea.tsx
5
5
  var n = "haze-ScrollArea__base";
6
6
  function r({ maxHeight: r, className: i, children: a }) {
7
+ let o = r === void 0 ? void 0 : { maxHeight: typeof r == "number" ? `${r}px` : r };
7
8
  return /* @__PURE__ */ t("div", {
8
- style: r === void 0 ? void 0 : { maxHeight: typeof r == "number" ? `${r}px` : r },
9
+ style: o,
9
10
  className: e([n, i]),
10
11
  children: a
11
12
  });
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  //#region src/lib/components/Segmented/Segmented.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  //#region src/lib/components/Select/Select.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Skeleton/Skeleton.tsx
5
5
  var n = "haze-Skeleton__base", r = {
@@ -8,11 +8,12 @@ var n = "haze-Skeleton__base", r = {
8
8
  rectangular: "haze-Skeleton__rectangular"
9
9
  };
10
10
  function i({ variant: i = "text", width: a, height: o, className: s }) {
11
+ let c = {
12
+ width: typeof a == "number" ? `${a}px` : a,
13
+ height: typeof o == "number" ? `${o}px` : o
14
+ };
11
15
  return /* @__PURE__ */ t("span", {
12
- style: {
13
- width: typeof a == "number" ? `${a}px` : a,
14
- height: typeof o == "number" ? `${o}px` : o
15
- },
16
+ style: c,
16
17
  className: e([
17
18
  n,
18
19
  r[i],
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  //#region src/lib/components/Slider/Slider.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Spinner/Spinner.tsx
5
5
  var r = "haze-Spinner__base", i = {
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Stat/Stat.tsx
5
5
  var r = "haze-Stat__base", i = "haze-Stat__titleStyle", a = "haze-Stat__valueRow", o = "haze-Stat__valueStyle", s = {
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/StepTimeline/StepTimeline.tsx
5
5
  var r = "haze-StepTimeline__list", i = "haze-StepTimeline__item", a = "haze-StepTimeline__marker", o = "haze-StepTimeline__markerPending", s = "haze-StepTimeline__markerActive", c = "haze-StepTimeline__markerDone", l = "haze-StepTimeline__markerError", u = "haze-StepTimeline__body", d = "haze-StepTimeline__labelStyle", f = "haze-StepTimeline__descriptionStyle", p = {
@@ -1,17 +1,17 @@
1
- import { useStepperContext as e } from "./StepperContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useStepperContext as t } from "./StepperContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region src/lib/components/Stepper/Step.tsx
6
6
  var i = "haze-Step__step", a = "haze-Step__stepConnector", o = "haze-Step__stepActiveConnector", s = "haze-Step__circle", c = "haze-Step__activeCircle", l = "haze-Step__completedCircle", u = "haze-Step__titleStyle", d = "haze-Step__activeTitle", f = "haze-Step__completedTitle", p = "haze-Step__descStyle";
7
7
  function m({ title: m, description: h, className: g, index: _ = 0 }) {
8
- let { activeStep: v, totalSteps: y } = e(), b = _ === v, x = _ < v;
8
+ let { activeStep: v, totalSteps: y } = t(), b = _ === v, x = _ < v;
9
9
  return /* @__PURE__ */ r("div", {
10
10
  role: "listitem",
11
- className: t([i, g]),
11
+ className: e([i, g]),
12
12
  children: [
13
13
  /* @__PURE__ */ n("div", {
14
- className: t([
14
+ className: e([
15
15
  s,
16
16
  b && c,
17
17
  x && l
@@ -19,7 +19,7 @@ function m({ title: m, description: h, className: g, index: _ = 0 }) {
19
19
  children: x ? "✓" : _ + 1
20
20
  }),
21
21
  /* @__PURE__ */ n("div", {
22
- className: t([
22
+ className: e([
23
23
  u,
24
24
  b && d,
25
25
  x && f
@@ -27,10 +27,10 @@ function m({ title: m, description: h, className: g, index: _ = 0 }) {
27
27
  children: m
28
28
  }),
29
29
  h && /* @__PURE__ */ n("div", {
30
- className: t([p]),
30
+ className: e([p]),
31
31
  children: h
32
32
  }),
33
- _ < y - 1 && /* @__PURE__ */ n("div", { className: t([a, x && o]) })
33
+ _ < y - 1 && /* @__PURE__ */ n("div", { className: e([a, x && o]) })
34
34
  ]
35
35
  });
36
36
  }
@@ -1,22 +1,22 @@
1
- import { StepperProvider as e } from "./StepperContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { StepperProvider as t } from "./StepperContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  import { useControl as r } from "react-use-control";
6
6
  import { Children as i, cloneElement as a, isValidElement as o } from "react";
7
7
  //#region src/lib/components/Stepper/Stepper.tsx
8
8
  var s = "haze-Stepper__stepper";
9
9
  function c({ activeStep: c, children: l, className: u }) {
10
- let [d, f] = r(c, 0);
11
- return /* @__PURE__ */ n(e, {
10
+ let [d, f] = r(c, 0), p = i.count(l);
11
+ return /* @__PURE__ */ n(t, {
12
12
  value: {
13
13
  activeStep: d,
14
14
  setActiveStep: f,
15
- totalSteps: i.count(l)
15
+ totalSteps: p
16
16
  },
17
17
  children: n("div", {
18
18
  role: "list",
19
- className: t([s, u]),
19
+ className: e([s, u]),
20
20
  children: i.map(l, (e, t) => o(e) ? a(e, { index: t }) : e)
21
21
  })
22
22
  });
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useEffect as r, useRef as i, useState as a } from "react";
5
5
  //#region src/lib/components/StreamingText/StreamingText.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { useCallback as r, useRef as i, useState as a } from "react";
5
5
  //#region src/lib/components/SwipeAction/SwipeAction.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useControl as n } from "react-use-control";
5
5
  //#region src/lib/components/Switch/Switch.tsx
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Table/Table.tsx
5
5
  var n = "haze-Table__wrapper", r = "haze-Table__base", i = "haze-Table__stripedStyle", a = "haze-Table__borderedStyle";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Table/TableBody.tsx
5
5
  var n = "haze-TableBody__body";
@@ -1,4 +1,4 @@
1
- import { classnames as e } from "babel-runtime-jsx-plus";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/lib/components/Table/TableCell.tsx
4
4
  function n({ as: n = "td", className: r, children: i, ...a }) {
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Table/TableHead.tsx
5
5
  var n = "haze-TableHead__head";
@@ -1,4 +1,4 @@
1
- import { classnames as e } from "babel-runtime-jsx-plus";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/lib/components/Table/TableRow.tsx
4
4
  function n({ className: n, children: r }) {
@@ -1,18 +1,18 @@
1
- import { useTabsContext as e } from "./TabsContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useTabsContext as t } from "./TabsContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  //#region src/lib/components/Tabs/Tab.tsx
6
6
  var r = "haze-Tab__base", i = "haze-Tab__active";
7
7
  function a({ value: a, className: o, children: s }) {
8
- let { value: c, setValue: l } = e(), u = c === a;
8
+ let { value: c, setValue: l } = t(), u = c === a;
9
9
  return /* @__PURE__ */ n("button", {
10
10
  type: "button",
11
11
  role: "tab",
12
12
  "aria-selected": u,
13
13
  "aria-controls": `tabpanel-${a}`,
14
14
  onClick: () => l(a),
15
- className: t([
15
+ className: e([
16
16
  r,
17
17
  u && i,
18
18
  o
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/Tabs/TabList.tsx
5
5
  var n = "haze-TabList__base";
@@ -1,15 +1,15 @@
1
- import { useTabsContext as e } from "./TabsContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useTabsContext as t } from "./TabsContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  //#region src/lib/components/Tabs/TabPanel.tsx
6
6
  var r = "haze-TabPanel__base", i = "haze-TabPanel__hidden";
7
7
  function a({ value: a, className: o, children: s }) {
8
- let { value: c } = e(), l = c === a;
8
+ let { value: c } = t(), l = c === a;
9
9
  return /* @__PURE__ */ n("div", {
10
10
  role: "tabpanel",
11
11
  id: `tabpanel-${a}`,
12
- className: t([
12
+ className: e([
13
13
  r,
14
14
  !l && i,
15
15
  o
@@ -1,6 +1,6 @@
1
- import { TabsProvider as e } from "./TabsContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { TabsProvider as t } from "./TabsContext.js";
2
3
  /* empty css */
3
- import { classnames as t } from "babel-runtime-jsx-plus";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  import { useControl as r } from "react-use-control";
6
6
  //#region src/lib/components/Tabs/Tabs.tsx
@@ -8,8 +8,8 @@ var i = "haze-Tabs__base";
8
8
  function a({ value: a, className: o, children: s }) {
9
9
  let [c, l] = r(a, "");
10
10
  return /* @__PURE__ */ n("div", {
11
- className: t([i, o]),
12
- children: n(e, {
11
+ className: e([i, o]),
12
+ children: n(t, {
13
13
  value: {
14
14
  value: c,
15
15
  setValue: l
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Tag/Tag.tsx
5
5
  var r = "haze-Tag__base", i = {
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- 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/TagGroup/TagGroup.tsx
5
5
  var n = "haze-TagGroup__group";
@@ -1,5 +1,5 @@
1
+ import { classnames as e } from "../../utils/classnames.js";
1
2
  /* empty css */
2
- import { classnames as e } from "babel-runtime-jsx-plus";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/TagGroup/TagGroupItem.tsx
5
5
  var r = "haze-TagGroupItem__tag", i = "haze-TagGroupItem__closeBtn";