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 } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Accordion/Accordion.tsx
5
5
  var n = "haze-Accordion__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, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/Accordion/AccordionItem.tsx
5
5
  var r = "haze-AccordionItem__item", i = "haze-AccordionItem__summary", a = "haze-AccordionItem__content";
@@ -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/Affix/Affix.tsx
5
5
  var n = "haze-Affix__affix", r = "haze-Affix__posTop", i = "haze-Affix__posBottom";
@@ -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/Alert/Alert.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/ApprovalCard/ApprovalCard.tsx
5
5
  var r = "haze-ApprovalCard__card", i = "haze-ApprovalCard__header", a = "haze-ApprovalCard__body", o = "haze-ApprovalCard__desc", s = "haze-ApprovalCard__content", c = "haze-ApprovalCard__actions", l = "haze-ApprovalCard__btn", u = "haze-ApprovalCard__denyBtn", d = "haze-ApprovalCard__approveBtn";
@@ -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/AspectRatio/AspectRatio.tsx
5
5
  var n = "haze-AspectRatio__wrapper", r = "haze-AspectRatio__inner";
6
6
  function i({ ratio: i = 16 / 9, children: a, className: o }) {
7
+ let s = `${1 / i * 100}%`;
7
8
  return /* @__PURE__ */ t("div", {
8
- style: { paddingBottom: `${1 / i * 100}%` },
9
+ style: { paddingBottom: s },
9
10
  className: e([n, o]),
10
11
  children: t("div", {
11
12
  className: e([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
  import { useState as n } from "react";
5
5
  //#region src/lib/components/Avatar/Avatar.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 { useCallback as n, useEffect as r, useState as i } from "react";
5
5
  //#region src/lib/components/BackToTop/BackToTop.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/Badge/Badge.tsx
5
5
  var n = "haze-Badge__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, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/Banner/Banner.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
  //#region src/lib/components/BottomSheet/BottomSheet.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 { Children as r } from "react";
5
5
  //#region src/lib/components/Breadcrumb/Breadcrumb.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/Breadcrumb/BreadcrumbItem.tsx
5
5
  var n = "haze-BreadcrumbItem__link", r = "haze-BreadcrumbItem__current";
@@ -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/Button/Button.tsx
5
5
  var n = "haze-Button__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/Card/Card.tsx
5
5
  var n = "haze-Card__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 { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { useControl as i } from "react-use-control";
5
5
  import { Children as a, useEffect as o, useRef as s } 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/Carousel/CarouselSlide.tsx
5
5
  var n = "haze-CarouselSlide__slide";
@@ -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 { useEffect as n, useRef as r } from "react";
5
5
  //#region src/lib/components/ChatContainer/ChatContainer.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 { useCallback 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, jsxs as n } from "react/jsx-runtime";
4
4
  //#region src/lib/components/ChatMessage/ChatMessage.tsx
5
5
  var r = "haze-ChatMessage__wrapper", i = "haze-ChatMessage__wrapperUser", a = "haze-ChatMessage__avatarSlot", o = "haze-ChatMessage__body", s = "haze-ChatMessage__header", c = "haze-ChatMessage__headerUser", l = "haze-ChatMessage__bubble", u = "haze-ChatMessage__bubbleUser", d = "haze-ChatMessage__bubbleAssistant", f = "haze-ChatMessage__bubbleSystem", p = "haze-ChatMessage__statusText", m = "haze-ChatMessage__statusError", h = {
@@ -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/Checkbox/Checkbox.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/Chip/Chip.tsx
5
5
  var r = "haze-Chip__base", i = {
@@ -16,10 +16,11 @@ var r = "haze-Chip__base", i = {
16
16
  danger: "haze-Chip__danger"
17
17
  }, o = "haze-Chip__iconStyle", s = "haze-Chip__closeBtn";
18
18
  function c({ variant: c = "solid", color: l = "default", icon: u, onClose: d, className: f, children: p }) {
19
+ let m = c === "outline" ? a[l] : i[l];
19
20
  return /* @__PURE__ */ n("span", {
20
21
  className: e([
21
22
  r,
22
- c === "outline" ? a[l] : i[l],
23
+ m,
23
24
  f
24
25
  ]),
25
26
  children: [
@@ -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/CodeBlock/CodeBlock.tsx
5
5
  var r = "haze-CodeBlock__block", i = "haze-CodeBlock__pre", a = "haze-CodeBlock__lang";
@@ -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 { createContext as r, useContext 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/ColorPicker/ColorPicker.tsx
@@ -1,6 +1,6 @@
1
- import e from "./ComboboxOption.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import t from "./ComboboxOption.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
  import { useControl as i } from "react-use-control";
6
6
  import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
@@ -12,10 +12,12 @@ function p({ value: p, open: m, options: h, placeholder: g, className: _ }) {
12
12
  T(-1);
13
13
  }, [b]);
14
14
  let k = (e) => {
15
- y(e), x(h.find((t) => t.value === e)?.label ?? e), C(!1), D.current?.focus();
15
+ y(e);
16
+ let t = h.find((t) => t.value === e)?.label ?? e;
17
+ x(t), C(!1), D.current?.focus();
16
18
  };
17
19
  return /* @__PURE__ */ r("div", {
18
- className: t([l, _]),
20
+ className: e([l, _]),
19
21
  children: [/* @__PURE__ */ n("input", {
20
22
  ref: D,
21
23
  role: "combobox",
@@ -35,14 +37,14 @@ function p({ value: p, open: m, options: h, placeholder: g, className: _ }) {
35
37
  }), /* @__PURE__ */ n("div", {
36
38
  id: E,
37
39
  role: "listbox",
38
- className: t([d, !S && f]),
39
- children: O.map((t, r) => /* @__PURE__ */ n(e, {
40
- value: t.value,
40
+ className: e([d, !S && f]),
41
+ children: O.map((e, r) => /* @__PURE__ */ n(t, {
42
+ value: e.value,
41
43
  highlighted: r === w,
42
- selected: t.value === v,
44
+ selected: e.value === v,
43
45
  onSelect: k,
44
- children: t.label
45
- }, t.value))
46
+ children: e.label
47
+ }, e.value))
46
48
  })]
47
49
  });
48
50
  }
@@ -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/Combobox/ComboboxOption.tsx
5
5
  var n = "haze-ComboboxOption__option", r = "haze-ComboboxOption__highlightedStyle", i = "haze-ComboboxOption__selectedStyle";
@@ -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 { createContext as r, useContext as i, useMemo 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, jsxs as n } from "react/jsx-runtime";
4
4
  import { useControl as r } from "react-use-control";
5
5
  //#region src/lib/components/ConfirmDialog/ConfirmDialog.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/Container/Container.tsx
5
5
  var n = "haze-Container__container", r = {
@@ -1,6 +1,6 @@
1
- import { ContextMenuProvider as e } from "./ContextMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { ContextMenuProvider as t } from "./ContextMenuContext.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 { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
@@ -23,7 +23,7 @@ function l({ open: l, onOpenChange: u, children: d, className: f }) {
23
23
  y.current && !y.current.contains(e.target) && b(!1);
24
24
  };
25
25
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
26
- }, [p, b]), /* @__PURE__ */ n(e, {
26
+ }, [p, b]), /* @__PURE__ */ n(t, {
27
27
  value: {
28
28
  open: p,
29
29
  setOpen: b,
@@ -33,7 +33,7 @@ function l({ open: l, onOpenChange: u, children: d, className: f }) {
33
33
  },
34
34
  children: n("div", {
35
35
  ref: y,
36
- className: t([c, f]),
36
+ className: e([c, f]),
37
37
  children: d
38
38
  })
39
39
  });
@@ -1,17 +1,17 @@
1
- import { useContextMenuContext as e } from "./ContextMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useContextMenuContext as t } from "./ContextMenuContext.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/ContextMenu/ContextMenuContent.tsx
6
6
  var r = "haze-ContextMenuContent__content";
7
7
  function i({ children: i, className: a }) {
8
- let { open: o, x: s, y: c } = e();
8
+ let { open: o, x: s, y: c } = t();
9
9
  return o ? /* @__PURE__ */ n("div", {
10
10
  style: {
11
11
  left: s,
12
12
  top: c
13
13
  },
14
- className: t([r, a]),
14
+ className: e([r, a]),
15
15
  children: i
16
16
  }) : null;
17
17
  }
@@ -1,18 +1,18 @@
1
- import { useContextMenuContext as e } from "./ContextMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useContextMenuContext as t } from "./ContextMenuContext.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/ContextMenu/ContextMenuItem.tsx
6
6
  var r = "haze-ContextMenuItem__item";
7
7
  function i({ children: i, onClick: a, disabled: o, className: s }) {
8
- let { setOpen: c } = e();
8
+ let { setOpen: c } = t();
9
9
  return /* @__PURE__ */ n("button", {
10
10
  type: "button",
11
11
  onClick: () => {
12
12
  o || (a?.(), c(!1));
13
13
  },
14
14
  disabled: o,
15
- className: t([r, s]),
15
+ className: e([r, s]),
16
16
  children: i
17
17
  });
18
18
  }
@@ -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/ContextMenu/ContextMenuSeparator.tsx
5
5
  var n = "haze-ContextMenuSeparator__separator";
@@ -1,16 +1,16 @@
1
- import { useContextMenuContext as e } from "./ContextMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useContextMenuContext as t } from "./ContextMenuContext.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/ContextMenu/ContextMenuTrigger.tsx
6
6
  var r = "haze-ContextMenuTrigger__trigger";
7
7
  function i({ children: i, className: a }) {
8
- let { setOpen: o, setPosition: s } = e();
8
+ let { setOpen: o, setPosition: s } = t();
9
9
  return /* @__PURE__ */ n("div", {
10
10
  onContextMenu: (e) => {
11
11
  e.preventDefault(), s(e.clientX, e.clientY), o(!0);
12
12
  },
13
- className: t([r, a]),
13
+ className: e([r, a]),
14
14
  children: i
15
15
  });
16
16
  }
@@ -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/ConversationList/ConversationItem.tsx
5
5
  var r = "haze-ConversationItem__item", i = "haze-ConversationItem__activeItem", a = "haze-ConversationItem__body", o = "haze-ConversationItem__titleStyle", s = "haze-ConversationItem__subtitleStyle", c = "haze-ConversationItem__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 } from "react/jsx-runtime";
4
4
  //#region src/lib/components/ConversationList/ConversationList.tsx
5
5
  var n = "haze-ConversationList__list";
@@ -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/DateRangePicker/DateRangePicker.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 { useState as r } from "react";
5
5
  //#region src/lib/components/Datepicker/Calendar.tsx
@@ -1,6 +1,6 @@
1
- import e from "./Calendar.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import t from "./Calendar.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
  import { useControl as i } from "react-use-control";
6
6
  import { useEffect as a, useRef as o } from "react";
@@ -16,7 +16,7 @@ function d({ value: d, open: f, min: p, max: m, placeholder: h = "Select date",
16
16
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
17
17
  }, [y, b]), /* @__PURE__ */ r("div", {
18
18
  ref: x,
19
- className: t([s, g]),
19
+ className: e([s, g]),
20
20
  children: [/* @__PURE__ */ n("input", {
21
21
  readOnly: !0,
22
22
  className: c,
@@ -26,8 +26,8 @@ function d({ value: d, open: f, min: p, max: m, placeholder: h = "Select date",
26
26
  "aria-haspopup": "dialog",
27
27
  "aria-expanded": y
28
28
  }), /* @__PURE__ */ n("div", {
29
- className: t([l, !y && u]),
30
- children: /* @__PURE__ */ n(e, {
29
+ className: e([l, !y && u]),
30
+ children: /* @__PURE__ */ n(t, {
31
31
  value: _,
32
32
  min: p,
33
33
  max: m,
@@ -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 } 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 { useMemo as r } from "react";
5
5
  //#region src/lib/components/DiffViewer/DiffViewer.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 { 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/Divider/Divider.tsx
5
5
  var n = "haze-Divider__base", r = "haze-Divider__horizontal", i = "haze-Divider__vertical";
@@ -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 } from "react";
@@ -1,6 +1,6 @@
1
- import { DropdownMenuProvider as e } from "./DropdownMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { DropdownMenuProvider as t } from "./DropdownMenuContext.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 { useCallback as i, useEffect as a, useRef as o } from "react";
@@ -21,14 +21,14 @@ function c({ open: c, onOpenChange: l, children: u, className: d }) {
21
21
  m.current && !m.current.contains(e.target) && h(!1);
22
22
  };
23
23
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
24
- }, [f, h]), /* @__PURE__ */ n(e, {
24
+ }, [f, h]), /* @__PURE__ */ n(t, {
25
25
  value: {
26
26
  open: f,
27
27
  setOpen: h
28
28
  },
29
29
  children: n("div", {
30
30
  ref: m,
31
- className: t([s, d]),
31
+ className: e([s, d]),
32
32
  children: u
33
33
  })
34
34
  });
@@ -1,6 +1,6 @@
1
- import { useDropdownMenuContext as e } from "./DropdownMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useDropdownMenuContext as t } from "./DropdownMenuContext.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/DropdownMenu/DropdownMenuContent.tsx
6
6
  var r = "haze-DropdownMenuContent__content", i = {
@@ -9,9 +9,9 @@ var r = "haze-DropdownMenuContent__content", i = {
9
9
  end: "haze-DropdownMenuContent__alignEnd"
10
10
  };
11
11
  function a({ children: a, align: o = "start", className: s }) {
12
- let { open: c } = e();
12
+ let { open: c } = t();
13
13
  return c ? /* @__PURE__ */ n("div", {
14
- className: t([
14
+ className: e([
15
15
  r,
16
16
  i[o],
17
17
  s
@@ -1,18 +1,18 @@
1
- import { useDropdownMenuContext as e } from "./DropdownMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useDropdownMenuContext as t } from "./DropdownMenuContext.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/DropdownMenu/DropdownMenuItem.tsx
6
6
  var r = "haze-DropdownMenuItem__item";
7
7
  function i({ children: i, onClick: a, disabled: o, className: s }) {
8
- let { setOpen: c } = e();
8
+ let { setOpen: c } = t();
9
9
  return /* @__PURE__ */ n("button", {
10
10
  type: "button",
11
11
  onClick: () => {
12
12
  o || (a?.(), c(!1));
13
13
  },
14
14
  disabled: o,
15
- className: t([r, s]),
15
+ className: e([r, s]),
16
16
  children: i
17
17
  });
18
18
  }
@@ -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/DropdownMenu/DropdownMenuSeparator.tsx
5
5
  var n = "haze-DropdownMenuSeparator__separator";
@@ -1,15 +1,15 @@
1
- import { useDropdownMenuContext as e } from "./DropdownMenuContext.js";
1
+ import { classnames as e } from "../../utils/classnames.js";
2
+ import { useDropdownMenuContext as t } from "./DropdownMenuContext.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/DropdownMenu/DropdownMenuTrigger.tsx
6
6
  var r = "haze-DropdownMenuTrigger__trigger";
7
7
  function i({ children: i, className: a }) {
8
- let { setOpen: o } = e();
8
+ let { setOpen: o } = t();
9
9
  return /* @__PURE__ */ n("button", {
10
10
  type: "button",
11
11
  onClick: () => o((e) => !e),
12
- className: t([r, a]),
12
+ className: e([r, a]),
13
13
  children: i
14
14
  });
15
15
  }
@@ -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/Empty/Empty.tsx
5
5
  var r = "haze-Empty__base", i = "haze-Empty__imageStyle", a = "haze-Empty__descStyle", o = "haze-Empty__actionStyle", s = /* @__PURE__ */ n("svg", {