@konstructio/ui 0.1.2-alpha.3 → 0.1.2-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/DatePicker.css +1 -1
  2. package/dist/Modal-5xSxFoaD.js +99 -0
  3. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  4. package/dist/chevron-down-DgT-uSF9.js +5 -0
  5. package/dist/chevron-right-DYvXLeql.js +7 -0
  6. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  7. package/dist/components/Alert/Alert.js +2 -2
  8. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  9. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  10. package/dist/components/AlertDialog/components/index.js +1 -1
  11. package/dist/components/Badge/Badge.js +30 -33
  12. package/dist/components/Badge/Badge.variants.js +8 -6
  13. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  14. package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
  15. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  16. package/dist/components/Button/Button.js +1 -1
  17. package/dist/components/Button/Button.variants.js +1 -1
  18. package/dist/components/Card/Card.variants.js +5 -9
  19. package/dist/components/Checkbox/Checkbox.js +6 -6
  20. package/dist/components/Command/Command.js +2 -2
  21. package/dist/components/Command/components/Command.js +1 -1
  22. package/dist/components/Command/components/CommandEmpty.js +1 -1
  23. package/dist/components/Command/components/CommandGroup.js +1 -1
  24. package/dist/components/Command/components/CommandInput.js +2 -2
  25. package/dist/components/Command/components/CommandItem.js +1 -1
  26. package/dist/components/Command/components/CommandList.js +1 -1
  27. package/dist/components/Command/components/CommandSeparator.js +1 -1
  28. package/dist/components/Command/components/DialogContent.js +2 -2
  29. package/dist/components/Command/components/DialogOverlay.js +1 -1
  30. package/dist/components/Datepicker/DatePicker.js +1209 -1147
  31. package/dist/components/Divider/Divider.variants.js +1 -1
  32. package/dist/components/Dropdown/Dropdown.js +46 -28
  33. package/dist/components/Dropdown/Dropdown.variants.js +32 -9
  34. package/dist/components/Dropdown/components/List/List.js +133 -54
  35. package/dist/components/Dropdown/components/List/List.variants.js +9 -7
  36. package/dist/components/Dropdown/components/ListItem/ListItem.js +74 -24
  37. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
  38. package/dist/components/Dropdown/components/Wrapper.js +144 -109
  39. package/dist/components/Dropdown/constants/index.js +4 -0
  40. package/dist/components/Dropdown/constants/pagination.js +4 -0
  41. package/dist/components/Dropdown/contexts/dropdown.context.js +26 -8
  42. package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -19
  43. package/dist/components/Dropdown/hooks/useDropdown.js +83 -39
  44. package/dist/components/Dropdown/hooks/useNavigationList.js +28 -36
  45. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  46. package/dist/components/Filter/Filter.variants.js +2 -2
  47. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  48. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  49. package/dist/components/Input/Input.js +1 -1
  50. package/dist/components/Input/Input.variants.js +1 -1
  51. package/dist/components/Loading/Loading.js +1 -7
  52. package/dist/components/Modal/Modal.js +2 -2
  53. package/dist/components/Modal/components/Body/Body.js +1 -1
  54. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  55. package/dist/components/Modal/components/Header/Header.js +1 -1
  56. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  57. package/dist/components/Modal/components/index.js +1 -1
  58. package/dist/components/NumberInput/NumberInput.js +2 -2
  59. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  60. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
  61. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
  62. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
  63. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
  64. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  65. package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -0
  66. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  67. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  68. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  69. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  70. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6139 -0
  71. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  72. package/dist/components/PieChart/PieChart.js +647 -664
  73. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  74. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  75. package/dist/components/Range/Range.js +1 -1
  76. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  77. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
  78. package/dist/components/Slider/Slider.js +1 -1
  79. package/dist/components/Switch/Switch.js +8 -8
  80. package/dist/components/Switch/Switch.variants.js +4 -4
  81. package/dist/components/Tabs/Tabs.js +1 -1
  82. package/dist/components/Tabs/Tabs.variants.js +45 -24
  83. package/dist/components/Tabs/components/Content.js +1 -1
  84. package/dist/components/Tabs/components/List.js +1 -1
  85. package/dist/components/Tabs/components/Trigger.js +9 -8
  86. package/dist/components/Tag/Tag.js +1 -1
  87. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
  88. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  89. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
  90. package/dist/components/Toast/Toast.js +206 -181
  91. package/dist/components/Tooltip/Tooltip.js +1 -1
  92. package/dist/components/Typography/Typography.variants.js +18 -23
  93. package/dist/components/VirtualizedTable/VirtualizedTable.js +119 -0
  94. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
  95. package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
  96. package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
  97. package/dist/components/VirtualizedTable/assets/index.js +6 -0
  98. package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
  99. package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
  100. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
  101. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
  102. package/dist/components/VirtualizedTable/components/Filter/Filter.js +88 -0
  103. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
  104. package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
  105. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
  106. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
  107. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
  108. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
  109. package/dist/components/VirtualizedTable/components/index.js +16 -0
  110. package/dist/components/VirtualizedTable/constants/index.js +5 -0
  111. package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
  112. package/dist/components/VirtualizedTable/contexts/index.js +8 -0
  113. package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
  114. package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
  115. package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
  116. package/dist/components/index.js +79 -73
  117. package/dist/contexts/theme.provider.js +0 -1
  118. package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
  119. package/dist/debounce-BFejQm9P.js +200 -0
  120. package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
  121. package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
  122. package/dist/index-2hB40Iuc.js +1873 -0
  123. package/dist/index-BZPx6jYI.js +8 -0
  124. package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
  125. package/dist/index-BtQfgaSF.js +60 -0
  126. package/dist/index-C3tHPg8y.js +662 -0
  127. package/dist/index-CIAmiWcw.js +200 -0
  128. package/dist/index-CSFe9uC5.js +14 -0
  129. package/dist/index-CSWGJT-v.js +1722 -0
  130. package/dist/index-CigKKiZS.js +91 -0
  131. package/dist/index-DDByhzds.js +137 -0
  132. package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
  133. package/dist/index-DLcqcWxM.js +29 -0
  134. package/dist/index-Dbt2vBmS.js +136 -0
  135. package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
  136. package/dist/index-DrWQH0QF.js +55 -0
  137. package/dist/{index-D3xzCzcO.js → index-X4k_cU8k.js} +4 -4
  138. package/dist/index-kyuBfLcN.js +479 -0
  139. package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
  140. package/dist/index-ohdbKsws.js +27 -0
  141. package/dist/index.d.ts +184 -18
  142. package/dist/index.js +106 -98
  143. package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
  144. package/dist/package.json +46 -32
  145. package/dist/styles.css +1 -1
  146. package/dist/ui/civo-theme.css +191 -167
  147. package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
  148. package/dist/utils/index.js +534 -501
  149. package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
  150. package/package.json +46 -32
  151. package/dist/Modal-V67Uz78z.js +0 -98
  152. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  153. package/dist/chevron-down-BLZPftpV.js +0 -11
  154. package/dist/chevron-up-RLP4nX7V.js +0 -54
  155. package/dist/index-BXuxPoz7.js +0 -435
  156. package/dist/index-BfXxHr_2.js +0 -125
  157. package/dist/index-C9T9HQaa.js +0 -423
  158. package/dist/index-CZnD2QxM.js +0 -32
  159. package/dist/index-CrBonFvu.js +0 -144
  160. package/dist/index-Cvx4lqTq.js +0 -47
  161. package/dist/index-DQH6odE9.js +0 -82
  162. package/dist/index-Oq5GlCHP.js +0 -131
  163. package/dist/index-iXyXtdgP.js +0 -31
@@ -1,63 +1,88 @@
1
- import { jsx as i, jsxs as A, Fragment as se } from "react/jsx-runtime";
2
- import { u as ae, S as B } from "../../index-DQH6odE9.js";
1
+ import { jsx as a, jsxs as D, Fragment as ae } from "react/jsx-runtime";
2
+ import { S as B } from "../../index-BtQfgaSF.js";
3
3
  import * as n from "react";
4
- import { useRef as xe, useEffect as be, useMemo as oe, isValidElement as re, useCallback as ge } from "react";
5
- import { P as D, r as Se, d as Ie } from "../../index-C9T9HQaa.js";
6
- import { c as Ne, a as Ae, b as x, u as De } from "../../index-BfXxHr_2.js";
7
- import { c as Fe } from "../../index-Cvx4lqTq.js";
8
- import { B as _e, R as Le, P as Me } from "../../index-CrBonFvu.js";
9
- import { P as Oe } from "../../index-C1g_chDT.js";
10
- import { u as $ } from "../../index-0ioNhtNM.js";
11
- import { V as ie, R as ke } from "../../index-iXyXtdgP.js";
4
+ import { useRef as xe, useEffect as be, useMemo as re, isValidElement as ne, useCallback as ge } from "react";
5
+ import * as Se from "react-dom";
6
+ import { P as A, c as Ie, a as Ne, b as x, d as Ae, u as De } from "../../index-CIAmiWcw.js";
7
+ import { u as ie } from "../../index-DLcqcWxM.js";
8
+ import { c as _e } from "../../index-CigKKiZS.js";
9
+ import { B as Fe, R as Le } from "../../index-Dbt2vBmS.js";
10
+ import { P as Me } from "../../index-CSFe9uC5.js";
11
+ import { P as Oe } from "../../index-mPY_8Y5v.js";
12
+ import { u as X } from "../../index-0ioNhtNM.js";
13
+ import { R as ke } from "../../index-DrWQH0QF.js";
12
14
  import { cn as j } from "../../utils/index.js";
13
15
  import { closeToastVariants as Ve, toastVariants as Ke, viewportToastVariants as He } from "./Toast.variants.js";
14
- import { X as We } from "../../x-BPcqkRZd.js";
15
- var Q = "ToastProvider", [Z, Xe, $e] = Fe("Toast"), [ce, xt] = Ne("Toast", [$e]), [Ue, U] = ce(Q), ue = (e) => {
16
+ import { X as We } from "../../x-DPU9OdYH.js";
17
+ var Ue = Object.freeze({
18
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
19
+ position: "absolute",
20
+ border: 0,
21
+ width: 1,
22
+ height: 1,
23
+ padding: 0,
24
+ margin: -1,
25
+ overflow: "hidden",
26
+ clip: "rect(0, 0, 0, 0)",
27
+ whiteSpace: "nowrap",
28
+ wordWrap: "normal"
29
+ }), Xe = "VisuallyHidden", Q = n.forwardRef(
30
+ (e, o) => /* @__PURE__ */ a(
31
+ A.span,
32
+ {
33
+ ...e,
34
+ ref: o,
35
+ style: { ...Ue, ...e.style }
36
+ }
37
+ )
38
+ );
39
+ Q.displayName = Xe;
40
+ var Z = "ToastProvider", [ee, Ye, $e] = _e("Toast"), [ce, St] = Ie("Toast", [$e]), [Be, Y] = ce(Z), ue = (e) => {
16
41
  const {
17
- __scopeToast: r,
18
- label: o = "Notification",
42
+ __scopeToast: o,
43
+ label: r = "Notification",
19
44
  duration: t = 5e3,
20
45
  swipeDirection: c = "right",
21
46
  swipeThreshold: d = 50,
22
47
  children: p
23
- } = e, [T, v] = n.useState(null), [a, E] = n.useState(0), w = n.useRef(!1), S = n.useRef(!1);
24
- return o.trim() || console.error(
25
- `Invalid prop \`label\` supplied to \`${Q}\`. Expected non-empty \`string\`.`
26
- ), /* @__PURE__ */ i(Z.Provider, { scope: r, children: /* @__PURE__ */ i(
27
- Ue,
48
+ } = e, [w, v] = n.useState(null), [i, E] = n.useState(0), T = n.useRef(!1), S = n.useRef(!1);
49
+ return r.trim() || console.error(
50
+ `Invalid prop \`label\` supplied to \`${Z}\`. Expected non-empty \`string\`.`
51
+ ), /* @__PURE__ */ a(ee.Provider, { scope: o, children: /* @__PURE__ */ a(
52
+ Be,
28
53
  {
29
- scope: r,
30
- label: o,
54
+ scope: o,
55
+ label: r,
31
56
  duration: t,
32
57
  swipeDirection: c,
33
58
  swipeThreshold: d,
34
- toastCount: a,
35
- viewport: T,
59
+ toastCount: i,
60
+ viewport: w,
36
61
  onViewportChange: v,
37
62
  onToastAdd: n.useCallback(() => E((b) => b + 1), []),
38
63
  onToastRemove: n.useCallback(() => E((b) => b - 1), []),
39
- isFocusedToastEscapeKeyDownRef: w,
64
+ isFocusedToastEscapeKeyDownRef: T,
40
65
  isClosePausedRef: S,
41
66
  children: p
42
67
  }
43
68
  ) });
44
69
  };
45
- ue.displayName = Q;
46
- var le = "ToastViewport", Ye = ["F8"], z = "toast.viewportPause", G = "toast.viewportResume", de = n.forwardRef(
47
- (e, r) => {
70
+ ue.displayName = Z;
71
+ var le = "ToastViewport", je = ["F8"], z = "toast.viewportPause", G = "toast.viewportResume", de = n.forwardRef(
72
+ (e, o) => {
48
73
  const {
49
- __scopeToast: o,
50
- hotkey: t = Ye,
74
+ __scopeToast: r,
75
+ hotkey: t = je,
51
76
  label: c = "Notifications ({hotkey})",
52
77
  ...d
53
- } = e, p = U(le, o), T = Xe(o), v = n.useRef(null), a = n.useRef(null), E = n.useRef(null), w = n.useRef(null), S = ae(r, w, p.onViewportChange), b = t.join("+").replace(/Key/g, "").replace(/Digit/g, ""), R = p.toastCount > 0;
78
+ } = e, p = Y(le, r), w = Ye(r), v = n.useRef(null), i = n.useRef(null), E = n.useRef(null), T = n.useRef(null), S = ie(o, T, p.onViewportChange), b = t.join("+").replace(/Key/g, "").replace(/Digit/g, ""), R = p.toastCount > 0;
54
79
  n.useEffect(() => {
55
80
  const u = (h) => {
56
- t.length !== 0 && t.every((m) => h[m] || h.code === m) && w.current?.focus();
81
+ t.length !== 0 && t.every((m) => h[m] || h.code === m) && T.current?.focus();
57
82
  };
58
83
  return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
59
84
  }, [t]), n.useEffect(() => {
60
- const u = v.current, h = w.current;
85
+ const u = v.current, h = T.current;
61
86
  if (R && u && h) {
62
87
  const f = () => {
63
88
  if (!p.isClosePausedRef.current) {
@@ -81,33 +106,33 @@ var le = "ToastViewport", Ye = ["F8"], z = "toast.viewportPause", G = "toast.vie
81
106
  }, [R, p.isClosePausedRef]);
82
107
  const l = n.useCallback(
83
108
  ({ tabbingDirection: u }) => {
84
- const f = T().map((m) => {
85
- const P = m.ref.current, C = [P, ...nt(P)];
109
+ const f = w().map((m) => {
110
+ const P = m.ref.current, C = [P, ...at(P)];
86
111
  return u === "forwards" ? C : C.reverse();
87
112
  });
88
113
  return (u === "forwards" ? f.reverse() : f).flat();
89
114
  },
90
- [T]
115
+ [w]
91
116
  );
92
117
  return n.useEffect(() => {
93
- const u = w.current;
118
+ const u = T.current;
94
119
  if (u) {
95
120
  const h = (f) => {
96
121
  const m = f.altKey || f.ctrlKey || f.metaKey;
97
122
  if (f.key === "Tab" && !m) {
98
123
  const C = document.activeElement, y = f.shiftKey;
99
124
  if (f.target === u && y) {
100
- a.current?.focus();
125
+ i.current?.focus();
101
126
  return;
102
127
  }
103
- const _ = l({ tabbingDirection: y ? "backwards" : "forwards" }), V = _.findIndex((N) => N === C);
104
- q(_.slice(V + 1)) ? f.preventDefault() : y ? a.current?.focus() : E.current?.focus();
128
+ const F = l({ tabbingDirection: y ? "backwards" : "forwards" }), V = F.findIndex((N) => N === C);
129
+ q(F.slice(V + 1)) ? f.preventDefault() : y ? i.current?.focus() : E.current?.focus();
105
130
  }
106
131
  };
107
132
  return u.addEventListener("keydown", h), () => u.removeEventListener("keydown", h);
108
133
  }
109
- }, [T, l]), /* @__PURE__ */ A(
110
- _e,
134
+ }, [w, l]), /* @__PURE__ */ D(
135
+ Fe,
111
136
  {
112
137
  ref: v,
113
138
  role: "region",
@@ -115,10 +140,10 @@ var le = "ToastViewport", Ye = ["F8"], z = "toast.viewportPause", G = "toast.vie
115
140
  tabIndex: -1,
116
141
  style: { pointerEvents: R ? void 0 : "none" },
117
142
  children: [
118
- R && /* @__PURE__ */ i(
143
+ R && /* @__PURE__ */ a(
119
144
  J,
120
145
  {
121
- ref: a,
146
+ ref: i,
122
147
  onFocusFromOutsideViewport: () => {
123
148
  const u = l({
124
149
  tabbingDirection: "forwards"
@@ -127,8 +152,8 @@ var le = "ToastViewport", Ye = ["F8"], z = "toast.viewportPause", G = "toast.vie
127
152
  }
128
153
  }
129
154
  ),
130
- /* @__PURE__ */ i(Z.Slot, { scope: o, children: /* @__PURE__ */ i(D.ol, { tabIndex: -1, ...d, ref: S }) }),
131
- R && /* @__PURE__ */ i(
155
+ /* @__PURE__ */ a(ee.Slot, { scope: r, children: /* @__PURE__ */ a(A.ol, { tabIndex: -1, ...d, ref: S }) }),
156
+ R && /* @__PURE__ */ a(
132
157
  J,
133
158
  {
134
159
  ref: E,
@@ -147,80 +172,80 @@ var le = "ToastViewport", Ye = ["F8"], z = "toast.viewportPause", G = "toast.vie
147
172
  );
148
173
  de.displayName = le;
149
174
  var pe = "ToastFocusProxy", J = n.forwardRef(
150
- (e, r) => {
151
- const { __scopeToast: o, onFocusFromOutsideViewport: t, ...c } = e, d = U(pe, o);
152
- return /* @__PURE__ */ i(
153
- ie,
175
+ (e, o) => {
176
+ const { __scopeToast: r, onFocusFromOutsideViewport: t, ...c } = e, d = Y(pe, r);
177
+ return /* @__PURE__ */ a(
178
+ Q,
154
179
  {
155
180
  tabIndex: 0,
156
181
  ...c,
157
- ref: r,
182
+ ref: o,
158
183
  style: { position: "fixed" },
159
184
  onFocus: (p) => {
160
- const T = p.relatedTarget;
161
- !d.viewport?.contains(T) && t();
185
+ const w = p.relatedTarget;
186
+ !d.viewport?.contains(w) && t();
162
187
  }
163
188
  }
164
189
  );
165
190
  }
166
191
  );
167
192
  J.displayName = pe;
168
- var O = "Toast", Be = "toast.swipeStart", je = "toast.swipeMove", qe = "toast.swipeCancel", ze = "toast.swipeEnd", fe = n.forwardRef(
169
- (e, r) => {
170
- const { forceMount: o, open: t, defaultOpen: c, onOpenChange: d, ...p } = e, [T, v] = Ae({
193
+ var O = "Toast", qe = "toast.swipeStart", ze = "toast.swipeMove", Ge = "toast.swipeCancel", Je = "toast.swipeEnd", fe = n.forwardRef(
194
+ (e, o) => {
195
+ const { forceMount: r, open: t, defaultOpen: c, onOpenChange: d, ...p } = e, [w, v] = Ne({
171
196
  prop: t,
172
197
  defaultProp: c ?? !0,
173
198
  onChange: d,
174
199
  caller: O
175
200
  });
176
- return /* @__PURE__ */ i(Oe, { present: o || T, children: /* @__PURE__ */ i(
177
- Qe,
201
+ return /* @__PURE__ */ a(Oe, { present: r || w, children: /* @__PURE__ */ a(
202
+ et,
178
203
  {
179
- open: T,
204
+ open: w,
180
205
  ...p,
181
- ref: r,
206
+ ref: o,
182
207
  onClose: () => v(!1),
183
- onPause: $(e.onPause),
184
- onResume: $(e.onResume),
185
- onSwipeStart: x(e.onSwipeStart, (a) => {
186
- a.currentTarget.setAttribute("data-swipe", "start");
208
+ onPause: X(e.onPause),
209
+ onResume: X(e.onResume),
210
+ onSwipeStart: x(e.onSwipeStart, (i) => {
211
+ i.currentTarget.setAttribute("data-swipe", "start");
187
212
  }),
188
- onSwipeMove: x(e.onSwipeMove, (a) => {
189
- const { x: E, y: w } = a.detail.delta;
190
- a.currentTarget.setAttribute("data-swipe", "move"), a.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${E}px`), a.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${w}px`);
213
+ onSwipeMove: x(e.onSwipeMove, (i) => {
214
+ const { x: E, y: T } = i.detail.delta;
215
+ i.currentTarget.setAttribute("data-swipe", "move"), i.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${E}px`), i.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${T}px`);
191
216
  }),
192
- onSwipeCancel: x(e.onSwipeCancel, (a) => {
193
- a.currentTarget.setAttribute("data-swipe", "cancel"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
217
+ onSwipeCancel: x(e.onSwipeCancel, (i) => {
218
+ i.currentTarget.setAttribute("data-swipe", "cancel"), i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), i.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), i.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
194
219
  }),
195
- onSwipeEnd: x(e.onSwipeEnd, (a) => {
196
- const { x: E, y: w } = a.detail.delta;
197
- a.currentTarget.setAttribute("data-swipe", "end"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), a.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${E}px`), a.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${w}px`), v(!1);
220
+ onSwipeEnd: x(e.onSwipeEnd, (i) => {
221
+ const { x: E, y: T } = i.detail.delta;
222
+ i.currentTarget.setAttribute("data-swipe", "end"), i.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), i.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), i.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${E}px`), i.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${T}px`), v(!1);
198
223
  })
199
224
  }
200
225
  ) });
201
226
  }
202
227
  );
203
228
  fe.displayName = O;
204
- var [Ge, Je] = ce(O, {
229
+ var [Qe, Ze] = ce(O, {
205
230
  onClose() {
206
231
  }
207
- }), Qe = n.forwardRef(
208
- (e, r) => {
232
+ }), et = n.forwardRef(
233
+ (e, o) => {
209
234
  const {
210
- __scopeToast: o,
235
+ __scopeToast: r,
211
236
  type: t = "foreground",
212
237
  duration: c,
213
238
  open: d,
214
239
  onClose: p,
215
- onEscapeKeyDown: T,
240
+ onEscapeKeyDown: w,
216
241
  onPause: v,
217
- onResume: a,
242
+ onResume: i,
218
243
  onSwipeStart: E,
219
- onSwipeMove: w,
244
+ onSwipeMove: T,
220
245
  onSwipeCancel: S,
221
246
  onSwipeEnd: b,
222
247
  ...R
223
- } = e, l = U(O, o), [u, h] = n.useState(null), f = ae(r, (s) => h(s)), m = n.useRef(null), P = n.useRef(null), C = c || l.duration, y = n.useRef(0), F = n.useRef(C), k = n.useRef(0), { onToastAdd: _, onToastRemove: V } = l, N = $(() => {
248
+ } = e, l = Y(O, r), [u, h] = n.useState(null), f = ie(o, (s) => h(s)), m = n.useRef(null), P = n.useRef(null), C = c || l.duration, y = n.useRef(0), _ = n.useRef(C), k = n.useRef(0), { onToastAdd: F, onToastRemove: V } = l, N = X(() => {
224
249
  u?.contains(document.activeElement) && l.viewport?.focus(), p();
225
250
  }), K = n.useCallback(
226
251
  (s) => {
@@ -232,39 +257,39 @@ var [Ge, Je] = ce(O, {
232
257
  const s = l.viewport;
233
258
  if (s) {
234
259
  const g = () => {
235
- K(F.current), a?.();
260
+ K(_.current), i?.();
236
261
  }, I = () => {
237
262
  const L = (/* @__PURE__ */ new Date()).getTime() - y.current;
238
- F.current = F.current - L, window.clearTimeout(k.current), v?.();
263
+ _.current = _.current - L, window.clearTimeout(k.current), v?.();
239
264
  };
240
265
  return s.addEventListener(z, I), s.addEventListener(G, g), () => {
241
266
  s.removeEventListener(z, I), s.removeEventListener(G, g);
242
267
  };
243
268
  }
244
- }, [l.viewport, C, v, a, K]), n.useEffect(() => {
269
+ }, [l.viewport, C, v, i, K]), n.useEffect(() => {
245
270
  d && !l.isClosePausedRef.current && K(C);
246
- }, [d, C, l.isClosePausedRef, K]), n.useEffect(() => (_(), () => V()), [_, V]);
247
- const ee = n.useMemo(() => u ? Pe(u) : null, [u]);
248
- return l.viewport ? /* @__PURE__ */ A(se, { children: [
249
- ee && /* @__PURE__ */ i(
250
- Ze,
271
+ }, [d, C, l.isClosePausedRef, K]), n.useEffect(() => (F(), () => V()), [F, V]);
272
+ const te = n.useMemo(() => u ? Pe(u) : null, [u]);
273
+ return l.viewport ? /* @__PURE__ */ D(ae, { children: [
274
+ te && /* @__PURE__ */ a(
275
+ tt,
251
276
  {
252
- __scopeToast: o,
277
+ __scopeToast: r,
253
278
  role: "status",
254
279
  "aria-live": t === "foreground" ? "assertive" : "polite",
255
- children: ee
280
+ children: te
256
281
  }
257
282
  ),
258
- /* @__PURE__ */ i(Ge, { scope: o, onClose: N, children: Se.createPortal(
259
- /* @__PURE__ */ i(Z.ItemSlot, { scope: o, children: /* @__PURE__ */ i(
283
+ /* @__PURE__ */ a(Qe, { scope: r, onClose: N, children: Se.createPortal(
284
+ /* @__PURE__ */ a(ee.ItemSlot, { scope: r, children: /* @__PURE__ */ a(
260
285
  Le,
261
286
  {
262
287
  asChild: !0,
263
- onEscapeKeyDown: x(T, () => {
288
+ onEscapeKeyDown: x(w, () => {
264
289
  l.isFocusedToastEscapeKeyDownRef.current || N(), l.isFocusedToastEscapeKeyDownRef.current = !1;
265
290
  }),
266
- children: /* @__PURE__ */ i(
267
- D.li,
291
+ children: /* @__PURE__ */ a(
292
+ A.li,
268
293
  {
269
294
  tabIndex: 0,
270
295
  "data-state": d ? "open" : "closed",
@@ -273,28 +298,28 @@ var [Ge, Je] = ce(O, {
273
298
  ref: f,
274
299
  style: { userSelect: "none", touchAction: "none", ...e.style },
275
300
  onKeyDown: x(e.onKeyDown, (s) => {
276
- s.key === "Escape" && (T?.(s.nativeEvent), s.nativeEvent.defaultPrevented || (l.isFocusedToastEscapeKeyDownRef.current = !0, N()));
301
+ s.key === "Escape" && (w?.(s.nativeEvent), s.nativeEvent.defaultPrevented || (l.isFocusedToastEscapeKeyDownRef.current = !0, N()));
277
302
  }),
278
303
  onPointerDown: x(e.onPointerDown, (s) => {
279
304
  s.button === 0 && (m.current = { x: s.clientX, y: s.clientY });
280
305
  }),
281
306
  onPointerMove: x(e.onPointerMove, (s) => {
282
307
  if (!m.current) return;
283
- const g = s.clientX - m.current.x, I = s.clientY - m.current.y, L = !!P.current, M = ["left", "right"].includes(l.swipeDirection), H = ["left", "up"].includes(l.swipeDirection) ? Math.min : Math.max, Ce = M ? H(0, g) : 0, Re = M ? 0 : H(0, I), Y = s.pointerType === "touch" ? 10 : 2, W = { x: Ce, y: Re }, te = { originalEvent: s, delta: W };
284
- L ? (P.current = W, X(je, w, te, {
308
+ const g = s.clientX - m.current.x, I = s.clientY - m.current.y, L = !!P.current, M = ["left", "right"].includes(l.swipeDirection), H = ["left", "up"].includes(l.swipeDirection) ? Math.min : Math.max, Ce = M ? H(0, g) : 0, Re = M ? 0 : H(0, I), $ = s.pointerType === "touch" ? 10 : 2, W = { x: Ce, y: Re }, oe = { originalEvent: s, delta: W };
309
+ L ? (P.current = W, U(ze, T, oe, {
285
310
  discrete: !1
286
- })) : ne(W, l.swipeDirection, Y) ? (P.current = W, X(Be, E, te, {
311
+ })) : se(W, l.swipeDirection, $) ? (P.current = W, U(qe, E, oe, {
287
312
  discrete: !1
288
- }), s.target.setPointerCapture(s.pointerId)) : (Math.abs(g) > Y || Math.abs(I) > Y) && (m.current = null);
313
+ }), s.target.setPointerCapture(s.pointerId)) : (Math.abs(g) > $ || Math.abs(I) > $) && (m.current = null);
289
314
  }),
290
315
  onPointerUp: x(e.onPointerUp, (s) => {
291
316
  const g = P.current, I = s.target;
292
317
  if (I.hasPointerCapture(s.pointerId) && I.releasePointerCapture(s.pointerId), P.current = null, m.current = null, g) {
293
318
  const L = s.currentTarget, M = { originalEvent: s, delta: g };
294
- ne(g, l.swipeDirection, l.swipeThreshold) ? X(ze, b, M, {
319
+ se(g, l.swipeDirection, l.swipeThreshold) ? U(Je, b, M, {
295
320
  discrete: !0
296
- }) : X(
297
- qe,
321
+ }) : U(
322
+ Ge,
298
323
  S,
299
324
  M,
300
325
  {
@@ -313,149 +338,149 @@ var [Ge, Je] = ce(O, {
313
338
  ) })
314
339
  ] }) : null;
315
340
  }
316
- ), Ze = (e) => {
317
- const { __scopeToast: r, children: o, ...t } = e, c = U(O, r), [d, p] = n.useState(!1), [T, v] = n.useState(!1);
318
- return ot(() => p(!0)), n.useEffect(() => {
319
- const a = window.setTimeout(() => v(!0), 1e3);
320
- return () => window.clearTimeout(a);
321
- }, []), T ? null : /* @__PURE__ */ i(Me, { asChild: !0, children: /* @__PURE__ */ i(ie, { ...t, children: d && /* @__PURE__ */ A(se, { children: [
341
+ ), tt = (e) => {
342
+ const { __scopeToast: o, children: r, ...t } = e, c = Y(O, o), [d, p] = n.useState(!1), [w, v] = n.useState(!1);
343
+ return nt(() => p(!0)), n.useEffect(() => {
344
+ const i = window.setTimeout(() => v(!0), 1e3);
345
+ return () => window.clearTimeout(i);
346
+ }, []), w ? null : /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(Q, { ...t, children: d && /* @__PURE__ */ D(ae, { children: [
322
347
  c.label,
323
348
  " ",
324
- o
349
+ r
325
350
  ] }) }) });
326
- }, et = "ToastTitle", me = n.forwardRef(
327
- (e, r) => {
328
- const { __scopeToast: o, ...t } = e;
329
- return /* @__PURE__ */ i(D.div, { ...t, ref: r });
351
+ }, ot = "ToastTitle", me = n.forwardRef(
352
+ (e, o) => {
353
+ const { __scopeToast: r, ...t } = e;
354
+ return /* @__PURE__ */ a(A.div, { ...t, ref: o });
330
355
  }
331
356
  );
332
- me.displayName = et;
333
- var tt = "ToastDescription", Te = n.forwardRef(
334
- (e, r) => {
335
- const { __scopeToast: o, ...t } = e;
336
- return /* @__PURE__ */ i(D.div, { ...t, ref: r });
357
+ me.displayName = ot;
358
+ var rt = "ToastDescription", we = n.forwardRef(
359
+ (e, o) => {
360
+ const { __scopeToast: r, ...t } = e;
361
+ return /* @__PURE__ */ a(A.div, { ...t, ref: o });
337
362
  }
338
363
  );
339
- Te.displayName = tt;
340
- var we = "ToastAction", ve = n.forwardRef(
341
- (e, r) => {
342
- const { altText: o, ...t } = e;
343
- return o.trim() ? /* @__PURE__ */ i(he, { altText: o, asChild: !0, children: /* @__PURE__ */ i(ye, { ...t, ref: r }) }) : (console.error(
344
- `Invalid prop \`altText\` supplied to \`${we}\`. Expected non-empty \`string\`.`
364
+ we.displayName = rt;
365
+ var Te = "ToastAction", ve = n.forwardRef(
366
+ (e, o) => {
367
+ const { altText: r, ...t } = e;
368
+ return r.trim() ? /* @__PURE__ */ a(he, { altText: r, asChild: !0, children: /* @__PURE__ */ a(ye, { ...t, ref: o }) }) : (console.error(
369
+ `Invalid prop \`altText\` supplied to \`${Te}\`. Expected non-empty \`string\`.`
345
370
  ), null);
346
371
  }
347
372
  );
348
- ve.displayName = we;
373
+ ve.displayName = Te;
349
374
  var Ee = "ToastClose", ye = n.forwardRef(
350
- (e, r) => {
351
- const { __scopeToast: o, ...t } = e, c = Je(Ee, o);
352
- return /* @__PURE__ */ i(he, { asChild: !0, children: /* @__PURE__ */ i(
353
- D.button,
375
+ (e, o) => {
376
+ const { __scopeToast: r, ...t } = e, c = Ze(Ee, r);
377
+ return /* @__PURE__ */ a(he, { asChild: !0, children: /* @__PURE__ */ a(
378
+ A.button,
354
379
  {
355
380
  type: "button",
356
381
  ...t,
357
- ref: r,
382
+ ref: o,
358
383
  onClick: x(e.onClick, c.onClose)
359
384
  }
360
385
  ) });
361
386
  }
362
387
  );
363
388
  ye.displayName = Ee;
364
- var he = n.forwardRef((e, r) => {
365
- const { __scopeToast: o, altText: t, ...c } = e;
366
- return /* @__PURE__ */ i(
367
- D.div,
389
+ var he = n.forwardRef((e, o) => {
390
+ const { __scopeToast: r, altText: t, ...c } = e;
391
+ return /* @__PURE__ */ a(
392
+ A.div,
368
393
  {
369
394
  "data-radix-toast-announce-exclude": "",
370
395
  "data-radix-toast-announce-alt": t || void 0,
371
396
  ...c,
372
- ref: r
397
+ ref: o
373
398
  }
374
399
  );
375
400
  });
376
401
  function Pe(e) {
377
- const r = [];
402
+ const o = [];
378
403
  return Array.from(e.childNodes).forEach((t) => {
379
- if (t.nodeType === t.TEXT_NODE && t.textContent && r.push(t.textContent), rt(t)) {
404
+ if (t.nodeType === t.TEXT_NODE && t.textContent && o.push(t.textContent), st(t)) {
380
405
  const c = t.ariaHidden || t.hidden || t.style.display === "none", d = t.dataset.radixToastAnnounceExclude === "";
381
406
  if (!c)
382
407
  if (d) {
383
408
  const p = t.dataset.radixToastAnnounceAlt;
384
- p && r.push(p);
409
+ p && o.push(p);
385
410
  } else
386
- r.push(...Pe(t));
411
+ o.push(...Pe(t));
387
412
  }
388
- }), r;
413
+ }), o;
389
414
  }
390
- function X(e, r, o, { discrete: t }) {
391
- const c = o.originalEvent.currentTarget, d = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: o });
392
- r && c.addEventListener(e, r, { once: !0 }), t ? Ie(c, d) : c.dispatchEvent(d);
415
+ function U(e, o, r, { discrete: t }) {
416
+ const c = r.originalEvent.currentTarget, d = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: r });
417
+ o && c.addEventListener(e, o, { once: !0 }), t ? Ae(c, d) : c.dispatchEvent(d);
393
418
  }
394
- var ne = (e, r, o = 0) => {
419
+ var se = (e, o, r = 0) => {
395
420
  const t = Math.abs(e.x), c = Math.abs(e.y), d = t > c;
396
- return r === "left" || r === "right" ? d && t > o : !d && c > o;
421
+ return o === "left" || o === "right" ? d && t > r : !d && c > r;
397
422
  };
398
- function ot(e = () => {
423
+ function nt(e = () => {
399
424
  }) {
400
- const r = $(e);
425
+ const o = X(e);
401
426
  De(() => {
402
- let o = 0, t = 0;
403
- return o = window.requestAnimationFrame(() => t = window.requestAnimationFrame(r)), () => {
404
- window.cancelAnimationFrame(o), window.cancelAnimationFrame(t);
427
+ let r = 0, t = 0;
428
+ return r = window.requestAnimationFrame(() => t = window.requestAnimationFrame(o)), () => {
429
+ window.cancelAnimationFrame(r), window.cancelAnimationFrame(t);
405
430
  };
406
- }, [r]);
431
+ }, [o]);
407
432
  }
408
- function rt(e) {
433
+ function st(e) {
409
434
  return e.nodeType === e.ELEMENT_NODE;
410
435
  }
411
- function nt(e) {
412
- const r = [], o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
436
+ function at(e) {
437
+ const o = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
413
438
  acceptNode: (t) => {
414
439
  const c = t.tagName === "INPUT" && t.type === "hidden";
415
440
  return t.disabled || t.hidden || c ? NodeFilter.FILTER_SKIP : t.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
416
441
  }
417
442
  });
418
- for (; o.nextNode(); ) r.push(o.currentNode);
419
- return r;
443
+ for (; r.nextNode(); ) o.push(r.currentNode);
444
+ return o;
420
445
  }
421
446
  function q(e) {
422
- const r = document.activeElement;
423
- return e.some((o) => o === r ? !0 : (o.focus(), document.activeElement !== r));
447
+ const o = document.activeElement;
448
+ return e.some((r) => r === o ? !0 : (r.focus(), document.activeElement !== o));
424
449
  }
425
- var st = ue, at = de, it = fe, ct = me, ut = Te, lt = ve;
426
- const bt = ({
450
+ var it = ue, ct = de, ut = fe, lt = me, dt = we, pt = ve;
451
+ const It = ({
427
452
  title: e,
428
- duration: r = 5e3,
429
- titleClassName: o,
453
+ duration: o = 5e3,
454
+ titleClassName: r,
430
455
  descriptionClassName: t,
431
456
  description: c,
432
457
  children: d,
433
458
  theme: p,
434
- showCloseButton: T = !0,
459
+ showCloseButton: w = !0,
435
460
  closeButtonClassName: v,
436
- className: a,
461
+ className: i,
437
462
  open: E = !1,
438
- setOpen: w
463
+ setOpen: T
439
464
  }) => {
440
465
  const S = xe(0);
441
466
  be(() => () => clearTimeout(S.current), []);
442
- const b = oe(() => re(e) ? /* @__PURE__ */ i(B, { className: o, children: e }) : e, [e, o]), R = oe(() => re(c) ? /* @__PURE__ */ i(B, { className: t, children: c }) : c, [c, t]), l = ge(() => {
443
- w(!1), S.current = window.setTimeout(() => w(!0), 100);
444
- }, [w]);
445
- return /* @__PURE__ */ A(st, { swipeDirection: "right", duration: r, children: [
446
- /* @__PURE__ */ i(B, { onClick: l, children: d }),
447
- /* @__PURE__ */ A(
448
- it,
467
+ const b = re(() => ne(e) ? /* @__PURE__ */ a(B, { className: r, children: e }) : e, [e, r]), R = re(() => ne(c) ? /* @__PURE__ */ a(B, { className: t, children: c }) : c, [c, t]), l = ge(() => {
468
+ T(!1), S.current = window.setTimeout(() => T(!0), 100);
469
+ }, [T]);
470
+ return /* @__PURE__ */ D(it, { swipeDirection: "right", duration: o, children: [
471
+ /* @__PURE__ */ a(B, { onClick: l, children: d }),
472
+ /* @__PURE__ */ D(
473
+ ut,
449
474
  {
450
- className: j(Ke({ className: a })),
475
+ className: j(Ke({ className: i })),
451
476
  "data-theme": p,
452
477
  open: E,
453
- onOpenChange: w,
478
+ onOpenChange: T,
454
479
  children: [
455
- /* @__PURE__ */ i(ct, { asChild: !0, className: o, children: b }),
456
- R && /* @__PURE__ */ i(ut, { asChild: !0, children: R }),
457
- T && /* @__PURE__ */ i(lt, { asChild: !0, altText: "Close the toast", children: /* @__PURE__ */ A("button", { type: "button", className: "absolute right-1.5 top-1.5", children: [
458
- /* @__PURE__ */ i(
480
+ /* @__PURE__ */ a(lt, { asChild: !0, className: r, children: b }),
481
+ R && /* @__PURE__ */ a(dt, { asChild: !0, children: R }),
482
+ w && /* @__PURE__ */ a(pt, { asChild: !0, altText: "Close the toast", children: /* @__PURE__ */ D("button", { type: "button", className: "absolute right-1.5 top-1.5", children: [
483
+ /* @__PURE__ */ a(
459
484
  We,
460
485
  {
461
486
  className: j(
@@ -465,14 +490,14 @@ const bt = ({
465
490
  )
466
491
  }
467
492
  ),
468
- /* @__PURE__ */ i(ke, { children: "Close toast" })
493
+ /* @__PURE__ */ a(ke, { children: "Close toast" })
469
494
  ] }) })
470
495
  ]
471
496
  }
472
497
  ),
473
- /* @__PURE__ */ i(at, { className: j(He()) })
498
+ /* @__PURE__ */ a(ct, { className: j(He()) })
474
499
  ] });
475
500
  };
476
501
  export {
477
- bt as Toast
502
+ It as Toast
478
503
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { S as i } from "../../index-DQH6odE9.js";
2
+ import { S as i } from "../../index-BtQfgaSF.js";
3
3
  import { forwardRef as v, useRef as N, useImperativeHandle as w, useMemo as h, isValidElement as x } from "react";
4
4
  import { cn as o } from "../../utils/index.js";
5
5
  import { arrowVariants as R, tooltipVariants as V } from "./Tooltip.variants.js";