@konstructio/ui 0.1.2-alpha.101 → 0.1.2-alpha.103

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 (221) hide show
  1. package/dist/AlertDialogTrigger-CgcsW_ta.js +109 -0
  2. package/dist/{Breadcrumb-Bmv0vzgt.js → Breadcrumb-Cp3abB2w.js} +1 -1
  3. package/dist/Checkbox-DzAx7n67.js +249 -0
  4. package/dist/{CommandInput-CYYsk_31.js → CommandInput-BnvRMfLI.js} +2 -2
  5. package/dist/{Counter-DWKyr569.js → Counter-CY0xGnVM.js} +2 -2
  6. package/dist/{DayPicker-CwO8Zff5.js → DayPicker-kweJz134.js} +750 -746
  7. package/dist/{DropdownButton-Beel5_gN.js → DropdownButton-DnlwdPmb.js} +1 -1
  8. package/dist/FlagSelectorList-BoYG-_It.js +852 -0
  9. package/dist/{HamburgerTrigger-7a4POUaM.js → HamburgerTrigger-1vOTrm8-.js} +2 -2
  10. package/dist/{Input-DG3snJf_.js → Input-CW0VwW2T.js} +4 -4
  11. package/dist/{Modal-Bcu6LLAp.js → Modal-Bfzggwlr.js} +2 -2
  12. package/dist/{Spinner-BegZ5yd7.js → Spinner-Lw9mZYhg.js} +1 -1
  13. package/dist/Switch-WBRr8uOJ.js +196 -0
  14. package/dist/Toast-ByH-l4XK.js +459 -0
  15. package/dist/{Wrapper-DwxJAkNQ.js → Wrapper-ClJ_Mham.js} +2 -2
  16. package/dist/{Wrapper-DtT29fc5.js → Wrapper-XeeD3av7.js} +1 -1
  17. package/dist/components/Alert/Alert.js +2 -2
  18. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  19. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  20. package/dist/components/AlertDialog/components/index.js +1 -1
  21. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  22. package/dist/components/Checkbox/Checkbox.js +1 -1
  23. package/dist/components/Command/Command.js +2 -2
  24. package/dist/components/Command/components/Command.js +1 -1
  25. package/dist/components/Command/components/CommandEmpty.js +1 -1
  26. package/dist/components/Command/components/CommandGroup.js +1 -1
  27. package/dist/components/Command/components/CommandInput.js +1 -1
  28. package/dist/components/Command/components/CommandItem.js +1 -1
  29. package/dist/components/Command/components/CommandList.js +1 -1
  30. package/dist/components/Command/components/CommandSeparator.js +1 -1
  31. package/dist/components/Command/components/DialogContent.js +2 -2
  32. package/dist/components/Command/components/DialogOverlay.js +1 -1
  33. package/dist/components/Command/components/index.js +1 -1
  34. package/dist/components/Counter/Counter.js +1 -1
  35. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  36. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  37. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  38. package/dist/components/Datepicker/DatePicker.js +2 -3
  39. package/dist/components/Drawer/Drawer.js +2 -2
  40. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  41. package/dist/components/Filter/Filter.js +4 -3
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +23 -24
  43. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +60 -65
  44. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +35 -43
  45. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +40 -45
  46. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +33 -34
  47. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
  48. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
  49. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +56 -61
  50. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -34
  51. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +70 -75
  52. package/dist/components/Filter/contexts/filter.provider.js +8 -5
  53. package/dist/components/Filter/utils/index.js +1 -1
  54. package/dist/components/Input/Input.js +1 -1
  55. package/dist/components/LineChart/LineChart.js +1 -1
  56. package/dist/components/Modal/Modal.js +1 -1
  57. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  58. package/dist/components/Modal/components/index.js +1 -1
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  60. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  61. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  62. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  63. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  64. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  65. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
  66. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
  67. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  68. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  69. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  70. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  71. package/dist/components/PieChart/PieChart.js +1 -1
  72. package/dist/components/Range/Range.js +1 -1
  73. package/dist/components/Select/components/List/List.js +1 -1
  74. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  75. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
  76. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
  77. package/dist/components/Sidebar/components/index.js +1 -1
  78. package/dist/components/Slider/Slider.js +1 -1
  79. package/dist/components/Spinner/Spinner.js +1 -1
  80. package/dist/components/Switch/Switch.js +1 -1
  81. package/dist/components/Table/components/Filter.js +1 -1
  82. package/dist/components/Tabs/Tabs.js +1 -1
  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 +1 -1
  86. package/dist/components/TagSelect/TagSelect.js +1 -1
  87. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  88. package/dist/components/TagSelect/components/index.js +1 -1
  89. package/dist/components/Toast/Toast.js +1 -1
  90. package/dist/components/Tooltip/Tooltip.js +1 -1
  91. package/dist/components/VirtualizedTable/VirtualizedTable.js +87 -87
  92. package/dist/components/VirtualizedTable/components/Actions/Actions.js +19 -19
  93. package/dist/components/VirtualizedTable/components/Body/Body.js +50 -49
  94. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
  95. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  96. package/dist/components/VirtualizedTable/components/Filter/Filter.js +53 -63
  97. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +10 -10
  98. package/dist/components/VirtualizedTable/components/Header/Header.js +47 -34
  99. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +19 -15
  100. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +10 -10
  101. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  102. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +8 -8
  103. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  104. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  105. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  106. package/dist/components/index.js +10 -10
  107. package/dist/{components-CYt24H4n.js → components-BIHlj4yH.js} +1 -1
  108. package/dist/{debounce-KoeGNmnW.js → debounce-C5Ycjilj.js} +14 -14
  109. package/dist/dist-2bGlmy8N2.js +165 -0
  110. package/dist/dist-BiJrNvNo.js +193 -0
  111. package/dist/dist-BuFiu480.js +13 -0
  112. package/dist/dist-C2aTw0m62.js +1320 -0
  113. package/dist/{dist-DvoMuWKO2.js → dist-C2s4VX-42.js} +4 -4
  114. package/dist/dist-CT6d9xe7.js +441 -0
  115. package/dist/dist-CTvBzxW8.js +31 -0
  116. package/dist/dist-CVDFmWf2.js +358 -0
  117. package/dist/dist-D4FePjTS.js +194 -0
  118. package/dist/dist-DISvWx7U.js +99 -0
  119. package/dist/dist-Db6UeFo4.js +291 -0
  120. package/dist/{dist-DGO9opgu.js → dist-Dse3gSmZ.js} +49 -49
  121. package/dist/dist-j7FOUrFU.js +206 -0
  122. package/dist/{dist-C8NWUTUh.js → dist-l-aDnQZC.js} +1 -1
  123. package/dist/es2015-BWf6xQHm.js +222 -0
  124. package/dist/index.js +10 -10
  125. package/dist/{isObject-1ZmdWuhC.js → isObject-BeFFiVJK.js} +8 -8
  126. package/dist/lib/components/Alert/Alert.types.d.ts +1 -1
  127. package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
  128. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
  129. package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  130. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  131. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
  132. package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
  133. package/dist/lib/components/Button/Button.types.d.ts +1 -1
  134. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
  135. package/dist/lib/components/Card/Card.types.d.ts +1 -1
  136. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +1 -1
  137. package/dist/lib/components/Command/Command.types.d.ts +1 -1
  138. package/dist/lib/components/Counter/Counter.types.d.ts +1 -1
  139. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +1 -1
  140. package/dist/lib/components/Drawer/Drawer.types.d.ts +1 -1
  141. package/dist/lib/components/Filter/Filter.types.d.ts +1 -1
  142. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +2 -3
  143. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +1 -2
  144. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +2 -3
  145. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +1 -1
  146. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
  147. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
  148. package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
  149. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +1 -2
  150. package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
  151. package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
  152. package/dist/lib/components/Input/Input.types.d.ts +1 -1
  153. package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
  154. package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
  155. package/dist/lib/components/Modal/Modal.types.d.ts +1 -1
  156. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -1
  157. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
  158. package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
  159. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
  160. package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +1 -1
  161. package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
  162. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +1 -1
  163. package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
  164. package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +1 -1
  165. package/dist/lib/components/Range/Range.types.d.ts +1 -1
  166. package/dist/lib/components/Select/Select.types.d.ts +1 -1
  167. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -2
  168. package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
  169. package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
  170. package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
  171. package/dist/lib/components/Stepper/Stepper.types.d.ts +1 -1
  172. package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
  173. package/dist/lib/components/Switch/Switch.types.d.ts +1 -1
  174. package/dist/lib/components/Table/Table.types.d.ts +1 -1
  175. package/dist/lib/components/Tabs/Tabs.types.d.ts +1 -1
  176. package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
  177. package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
  178. package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
  179. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
  180. package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
  181. package/dist/lib/components/TextArea/TextArea.types.d.ts +1 -1
  182. package/dist/lib/components/Toast/Toast.types.d.ts +1 -1
  183. package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
  184. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +27 -3
  185. package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
  186. package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
  187. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
  188. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
  189. package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
  190. package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
  191. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
  192. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +1 -1
  193. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
  194. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  195. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +1 -0
  196. package/dist/lib/contexts/theme.context.d.ts +1 -1
  197. package/dist/lib/contexts/theme.hook.d.ts +1 -1
  198. package/dist/package.json +34 -33
  199. package/dist/{phone-number.provider-CJJOFYk-.js → phone-number.provider-BxQCTxp8.js} +457 -457
  200. package/dist/{prop-types-CaJpPVsa.js → prop-types-CfEYxTbR.js} +52 -52
  201. package/dist/styles.css +1 -1
  202. package/dist/{table.provider-9uUt5a-s.js → table.provider-2sAkE7z_.js} +395 -368
  203. package/dist/{utils-B6A9pnrH.js → utils-B-BTGYA5.js} +193 -193
  204. package/dist/{x-CESTrenk.js → x-BI9jmc7e.js} +1 -1
  205. package/package.json +34 -33
  206. package/dist/AlertDialogTrigger-HhbFOOUE.js +0 -124
  207. package/dist/Checkbox-B1rTwzR3.js +0 -240
  208. package/dist/FlagSelectorList-BARhzfj2.js +0 -848
  209. package/dist/Switch-1RGhhTtg.js +0 -178
  210. package/dist/Toast-CS-igZor.js +0 -467
  211. package/dist/dist-7edduNXi.js +0 -398
  212. package/dist/dist-BkYHh2kH.js +0 -408
  213. package/dist/dist-C6Cif8-U.js +0 -28
  214. package/dist/dist-CeuUxVmT.js +0 -13
  215. package/dist/dist-CfYOvauX.js +0 -125
  216. package/dist/dist-CktbIsHq.js +0 -264
  217. package/dist/dist-DGqWMRtc.js +0 -183
  218. package/dist/dist-DdFwUrO22.js +0 -11
  219. package/dist/dist-DnGj9MTf.js +0 -1692
  220. package/dist/dist-eAwtFCCA.js +0 -87
  221. /package/dist/{dist-AihTpWdF2.js → dist-AihTpWdF.js} +0 -0
@@ -0,0 +1,291 @@
1
+ import { a as oe } from "./dist-DqKFpce5.js";
2
+ import { t as h } from "./dist-CVy-ulDZ.js";
3
+ import { i as B, n as re, r as I, t as $ } from "./dist-D4FePjTS.js";
4
+ import { t as j } from "./dist-BuFiu480.js";
5
+ import { t as ne } from "./dist-ppXKUlVt.js";
6
+ import { t as ae } from "./dist-DISvWx7U.js";
7
+ import { t as Y } from "./dist-B-Aoze_D.js";
8
+ import { t as se } from "./dist-l-aDnQZC.js";
9
+ import * as a from "react";
10
+ import { jsx as f } from "react/jsx-runtime";
11
+ var D = !1;
12
+ function ie() {
13
+ const [t, e] = a.useState(D);
14
+ return a.useEffect(() => {
15
+ D || (D = !0, e(!0));
16
+ }, []), t;
17
+ }
18
+ var z = a[" useSyncExternalStore ".trim().toString()];
19
+ function ce() {
20
+ return () => {
21
+ };
22
+ }
23
+ function ue() {
24
+ return z(ce, () => !0, () => !1);
25
+ }
26
+ var le = typeof z == "function" ? ue : ie, fe = Object.defineProperty, _ = (t, e) => fe(t, "name", {
27
+ value: e,
28
+ configurable: !0
29
+ }), M = "rovingFocusGroup.onEntryFocus", de = {
30
+ bubbles: !1,
31
+ cancelable: !0
32
+ }, P = "RovingFocusGroup", [L, q, ve] = se(P), [be, J] = B(P, [ve]), [pe, ge] = be(P), me = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
33
+ return /* @__PURE__ */ f(L.Provider, {
34
+ scope: e.__scopeRovingFocusGroup,
35
+ children: /* @__PURE__ */ f(L.Slot, {
36
+ scope: e.__scopeRovingFocusGroup,
37
+ children: /* @__PURE__ */ f(Te, {
38
+ ...e,
39
+ ref: i
40
+ })
41
+ })
42
+ });
43
+ }, "RovingFocusGroup")), Te = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
44
+ const { __scopeRovingFocusGroup: o, orientation: r, loop: u = !1, dir: d, currentTabStopId: s, defaultCurrentTabStopId: b, onCurrentTabStopIdChange: T, onEntryFocus: p, preventScrollOnEntryFocus: n = !1, ...c } = e, g = a.useRef(null), E = oe(i, g), y = Y(d), [A, C] = $({
45
+ prop: s,
46
+ defaultProp: b ?? null,
47
+ onChange: T,
48
+ caller: P
49
+ }), [l, F] = a.useState(!1), m = ne(p), R = q(o), G = a.useRef(!1), [ee, V] = a.useState(0);
50
+ return a.useEffect(() => {
51
+ const v = g.current;
52
+ if (v)
53
+ return v.addEventListener(M, m), () => v.removeEventListener(M, m);
54
+ }, [m]), /* @__PURE__ */ f(pe, {
55
+ scope: o,
56
+ orientation: r,
57
+ dir: y,
58
+ loop: u,
59
+ currentTabStopId: A,
60
+ onItemFocus: a.useCallback((v) => C(v), [C]),
61
+ onItemShiftTab: a.useCallback(() => F(!0), []),
62
+ onFocusableItemAdd: a.useCallback(() => V((v) => v + 1), []),
63
+ onFocusableItemRemove: a.useCallback(() => V((v) => v - 1), []),
64
+ children: /* @__PURE__ */ f(h.div, {
65
+ tabIndex: l || ee === 0 ? -1 : 0,
66
+ "data-orientation": r,
67
+ ...c,
68
+ ref: E,
69
+ style: {
70
+ outline: "none",
71
+ ...e.style
72
+ },
73
+ onMouseDown: I(e.onMouseDown, () => {
74
+ G.current = !0;
75
+ }),
76
+ onFocus: I(e.onFocus, (v) => {
77
+ const te = !G.current;
78
+ if (v.target === v.currentTarget && te && !l) {
79
+ const U = new CustomEvent(M, de);
80
+ if (v.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
81
+ const x = R().filter((S) => S.focusable);
82
+ N([
83
+ x.find((S) => S.active),
84
+ x.find((S) => S.id === A),
85
+ ...x
86
+ ].filter(Boolean).map((S) => S.ref.current), n);
87
+ }
88
+ }
89
+ G.current = !1;
90
+ }),
91
+ onBlur: I(e.onBlur, () => F(!1))
92
+ })
93
+ });
94
+ }, "RovingFocusGroupImpl")), Ie = "RovingFocusGroupItem", Fe = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ _(function(e, i) {
95
+ const { __scopeRovingFocusGroup: o, focusable: r = !0, active: u = !1, tabStopId: d, children: s, ...b } = e, T = j(), p = d || T, n = ge(Ie, o), c = n.currentTabStopId === p, g = q(o), { onFocusableItemAdd: E, onFocusableItemRemove: y, currentTabStopId: A } = n, C = le();
96
+ return re(() => {
97
+ if (!(!C || !r))
98
+ return E(), () => y();
99
+ }, [
100
+ C,
101
+ r,
102
+ E,
103
+ y
104
+ ]), a.useEffect(() => {
105
+ if (!(C || !r))
106
+ return E(), () => y();
107
+ }, [
108
+ C,
109
+ r,
110
+ E,
111
+ y
112
+ ]), /* @__PURE__ */ f(L.ItemSlot, {
113
+ scope: o,
114
+ id: p,
115
+ focusable: r,
116
+ active: u,
117
+ children: /* @__PURE__ */ f(h.span, {
118
+ tabIndex: c ? 0 : -1,
119
+ "data-orientation": n.orientation,
120
+ ...b,
121
+ ref: i,
122
+ onMouseDown: I(e.onMouseDown, (l) => {
123
+ r ? n.onItemFocus(p) : l.preventDefault();
124
+ }),
125
+ onFocus: I(e.onFocus, () => n.onItemFocus(p)),
126
+ onKeyDown: I(e.onKeyDown, (l) => {
127
+ if (l.key === "Tab" && l.shiftKey) {
128
+ n.onItemShiftTab();
129
+ return;
130
+ }
131
+ if (l.target !== l.currentTarget) return;
132
+ const F = W(l, n.orientation, n.dir);
133
+ if (F !== void 0) {
134
+ if (l.metaKey || l.ctrlKey || l.altKey || l.shiftKey) return;
135
+ l.preventDefault();
136
+ let m = g().filter((R) => R.focusable).map((R) => R.ref.current);
137
+ if (F === "last") m.reverse();
138
+ else if (F === "prev" || F === "next") {
139
+ F === "prev" && m.reverse();
140
+ const R = m.indexOf(l.currentTarget);
141
+ m = n.loop ? X(m, R + 1) : m.slice(R + 1);
142
+ }
143
+ setTimeout(() => N(m));
144
+ }
145
+ }),
146
+ children: typeof s == "function" ? s({
147
+ isCurrentTabStop: c,
148
+ hasTabStop: A != null
149
+ }) : s
150
+ })
151
+ });
152
+ }, "RovingFocusGroupItem")), Re = {
153
+ ArrowLeft: "prev",
154
+ ArrowUp: "prev",
155
+ ArrowRight: "next",
156
+ ArrowDown: "next",
157
+ PageUp: "first",
158
+ Home: "first",
159
+ PageDown: "last",
160
+ End: "last"
161
+ };
162
+ function Q(t, e) {
163
+ return e !== "rtl" ? t : t === "ArrowLeft" ? "ArrowRight" : t === "ArrowRight" ? "ArrowLeft" : t;
164
+ }
165
+ _(Q, "getDirectionAwareKey");
166
+ function W(t, e, i) {
167
+ const o = Q(t.key, i);
168
+ if (!(e === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(e === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
169
+ return Re[o];
170
+ }
171
+ _(W, "getFocusIntent");
172
+ function N(t, e = !1) {
173
+ const i = document.activeElement;
174
+ for (const o of t)
175
+ if (o === i || (o.focus({ preventScroll: e }), document.activeElement !== i)) return;
176
+ }
177
+ _(N, "focusFirst");
178
+ function X(t, e) {
179
+ return t.map((i, o) => t[(e + o) % t.length]);
180
+ }
181
+ _(X, "wrapArray");
182
+ var Ce = me, Se = Fe, _e = Object.defineProperty, w = (t, e) => _e(t, "name", {
183
+ value: e,
184
+ configurable: !0
185
+ }), O = "Tabs", [Ee, Be] = B(O, [J]), Z = J(), [ye, K] = Ee(O), he = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
186
+ const { __scopeTabs: o, value: r, onValueChange: u, defaultValue: d, orientation: s = "horizontal", dir: b, activationMode: T = "automatic", ...p } = e, n = Y(b), [c, g] = $({
187
+ prop: r,
188
+ onChange: u,
189
+ defaultProp: d ?? "",
190
+ caller: O
191
+ });
192
+ return /* @__PURE__ */ f(ye, {
193
+ scope: o,
194
+ baseId: j(),
195
+ value: c,
196
+ onValueChange: g,
197
+ orientation: s,
198
+ dir: n,
199
+ activationMode: T,
200
+ children: /* @__PURE__ */ f(h.div, {
201
+ dir: n,
202
+ "data-orientation": s,
203
+ ...p,
204
+ ref: i
205
+ })
206
+ });
207
+ }, "Tabs")), we = "TabsList", Ae = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
208
+ const { __scopeTabs: o, loop: r = !0, ...u } = e, d = K(we, o), s = Z(o);
209
+ return /* @__PURE__ */ f(Ce, {
210
+ asChild: !0,
211
+ ...s,
212
+ orientation: d.orientation,
213
+ dir: d.dir,
214
+ loop: r,
215
+ children: /* @__PURE__ */ f(h.div, {
216
+ role: "tablist",
217
+ "aria-orientation": d.orientation,
218
+ ...u,
219
+ ref: i
220
+ })
221
+ });
222
+ }, "TabsList")), Pe = "TabsTrigger", Ge = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
223
+ const { __scopeTabs: o, value: r, disabled: u = !1, ...d } = e, s = K(Pe, o), b = Z(o), T = k(s.baseId, r), p = H(s.baseId, r), n = r === s.value;
224
+ return /* @__PURE__ */ f(Se, {
225
+ asChild: !0,
226
+ ...b,
227
+ focusable: !u,
228
+ active: n,
229
+ children: /* @__PURE__ */ f(h.button, {
230
+ type: "button",
231
+ role: "tab",
232
+ "aria-selected": n,
233
+ "aria-controls": p,
234
+ "data-state": n ? "active" : "inactive",
235
+ "data-disabled": u ? "" : void 0,
236
+ disabled: u,
237
+ id: T,
238
+ ...d,
239
+ ref: i,
240
+ onMouseDown: I(e.onMouseDown, (c) => {
241
+ !u && c.button === 0 && c.ctrlKey === !1 ? s.onValueChange(r) : c.preventDefault();
242
+ }),
243
+ onKeyDown: I(e.onKeyDown, (c) => {
244
+ u || c.target !== c.currentTarget || [" ", "Enter"].includes(c.key) && s.onValueChange(r);
245
+ }),
246
+ onFocus: I(e.onFocus, () => {
247
+ const c = s.activationMode !== "manual";
248
+ !n && !u && c && s.onValueChange(r);
249
+ })
250
+ })
251
+ });
252
+ }, "TabsTrigger")), xe = "TabsContent", De = /* @__PURE__ */ a.forwardRef(/* @__PURE__ */ w(function(e, i) {
253
+ const { __scopeTabs: o, value: r, forceMount: u, children: d, ...s } = e, b = K(xe, o), T = k(b.baseId, r), p = H(b.baseId, r), n = r === b.value, c = a.useRef(n);
254
+ return a.useEffect(() => {
255
+ const g = requestAnimationFrame(() => c.current = !1);
256
+ return () => cancelAnimationFrame(g);
257
+ }, []), /* @__PURE__ */ f(ae, {
258
+ present: u || n,
259
+ children: ({ present: g }) => /* @__PURE__ */ f(h.div, {
260
+ "data-state": n ? "active" : "inactive",
261
+ "data-orientation": b.orientation,
262
+ role: "tabpanel",
263
+ "aria-labelledby": T,
264
+ hidden: !g,
265
+ id: p,
266
+ tabIndex: 0,
267
+ ...s,
268
+ ref: i,
269
+ style: {
270
+ ...e.style,
271
+ animationDuration: c.current ? "0s" : void 0
272
+ },
273
+ children: g && d
274
+ })
275
+ });
276
+ }, "TabsContent"));
277
+ function k(t, e) {
278
+ return `${t}-trigger-${e}`;
279
+ }
280
+ w(k, "makeTriggerId");
281
+ function H(t, e) {
282
+ return `${t}-content-${e}`;
283
+ }
284
+ w(H, "makeContentId");
285
+ var $e = he, je = Ae, Ye = Ge, ze = De;
286
+ export {
287
+ Ye as i,
288
+ je as n,
289
+ $e as r,
290
+ ze as t
291
+ };
@@ -1,15 +1,15 @@
1
1
  import { i as j } from "./dist-DqKFpce5.js";
2
2
  import { t as R } from "./dist-CVy-ulDZ.js";
3
- import { t as q } from "./dist-CeuUxVmT.js";
4
- import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-7edduNXi.js";
3
+ import { t as q } from "./dist-BuFiu480.js";
4
+ import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-BiJrNvNo.js";
5
5
  import * as n from "react";
6
6
  var ce = 1, xe = 0.9, Ce = 0.8, Re = 0.17, Y = 0.1, Q = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, fe = /[\s-]/g;
7
7
  function _(t, l, r, f, u, c, d) {
8
8
  if (c === l.length) return u === t.length ? ce : Me;
9
- var m = `${u},${c}`;
10
- if (d[m] !== void 0) return d[m];
9
+ var v = `${u},${c}`;
10
+ if (d[v] !== void 0) return d[v];
11
11
  for (var b = f.charAt(c), i = r.indexOf(b, u), p = 0, h, I, y, x; i >= 0; ) h = _(t, l, r, f, i + 1, c + 1, d), h > p && (i === u ? h *= ce : $e.test(t.charAt(i - 1)) ? (h *= Ce, y = t.slice(u, i - 1).match(De), y && u > 0 && (h *= Math.pow(Q, y.length))) : Fe.test(t.charAt(i - 1)) ? (h *= xe, x = t.slice(u, i - 1).match(fe), x && u > 0 && (h *= Math.pow(Q, x.length))) : (h *= Re, u > 0 && (h *= Math.pow(Q, i - u))), t.charAt(i) !== l.charAt(c) && (h *= Ae)), (h < Y && r.charAt(i - 1) === f.charAt(c + 1) || f.charAt(c + 1) === f.charAt(c) && r.charAt(i - 1) !== f.charAt(c)) && (I = _(t, l, r, f, i + 1, c + 2, d), I * Y > h && (h = I * Y)), h > p && (p = h), i = r.indexOf(b, i + 1);
12
- return d[m] = p, p;
12
+ return d[v] = p, p;
13
13
  }
14
14
  function de(t) {
15
15
  return t.toLowerCase().replace(fe, " ");
@@ -17,7 +17,7 @@ function de(t) {
17
17
  function Ke(t, l, r) {
18
18
  return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, _(t, l, de(t), de(l), 0, 0, {});
19
19
  }
20
- var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-heading=""]', me = '[cmdk-item=""]', se = `${me}:not([aria-disabled="true"])`, ee = "cmdk-item-select", F = "data-value", Pe = (t, l, r) => Ke(t, l, r), ve = n.createContext(void 0), L = () => n.useContext(ve), pe = n.createContext(void 0), te = () => n.useContext(pe), he = n.createContext(void 0), ge = n.forwardRef((t, l) => {
20
+ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-heading=""]', ve = '[cmdk-item=""]', se = `${ve}:not([aria-disabled="true"])`, ee = "cmdk-item-select", F = "data-value", Pe = (t, l, r) => Ke(t, l, r), me = n.createContext(void 0), L = () => n.useContext(me), pe = n.createContext(void 0), te = () => n.useContext(pe), he = n.createContext(void 0), ge = n.forwardRef((t, l) => {
21
21
  let r = K(() => {
22
22
  var e, o;
23
23
  return {
@@ -30,7 +30,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
30
30
  groups: /* @__PURE__ */ new Set()
31
31
  }
32
32
  };
33
- }), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()), m = be(t), { label: b, children: i, value: p, onValueChange: h, filter: I, shouldFilter: y, loop: x, disablePointerSelection: z = !1, vimBindings: A = !0, ...O } = t, U = q(), re = q(), H = q(), M = n.useRef(null), w = We();
33
+ }), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()), v = be(t), { label: b, children: i, value: p, onValueChange: h, filter: I, shouldFilter: y, loop: x, disablePointerSelection: z = !1, vimBindings: A = !0, ...O } = t, U = q(), re = q(), H = q(), M = n.useRef(null), w = We();
34
34
  $(() => {
35
35
  if (p !== void 0) {
36
36
  let e = p.trim();
@@ -43,7 +43,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
43
43
  subscribe: (e) => (d.current.add(e), () => d.current.delete(e)),
44
44
  snapshot: () => r.current,
45
45
  setState: (e, o, s) => {
46
- var a, v, g, k;
46
+ var a, m, g, k;
47
47
  if (!Object.is(r.current[e], o)) {
48
48
  if (r.current[e] = o, e === "search") G(), T(), w(1, W);
49
49
  else if (e === "value") {
@@ -54,9 +54,9 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
54
54
  if (w(7, () => {
55
55
  var S;
56
56
  r.current.selectedItemId = (S = D()) == null ? void 0 : S.id, E.emit();
57
- }), s || w(5, le), ((v = m.current) == null ? void 0 : v.value) !== void 0) {
57
+ }), s || w(5, le), ((m = v.current) == null ? void 0 : m.value) !== void 0) {
58
58
  let S = o ?? "";
59
- (k = (g = m.current).onValueChange) == null || k.call(g, S);
59
+ (k = (g = v.current).onValueChange) == null || k.call(g, S);
60
60
  return;
61
61
  }
62
62
  }
@@ -88,9 +88,9 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
88
88
  group: (e) => (u.current.has(e) || u.current.set(e, /* @__PURE__ */ new Set()), () => {
89
89
  c.current.delete(e), u.current.delete(e);
90
90
  }),
91
- filter: () => m.current.shouldFilter,
91
+ filter: () => v.current.shouldFilter,
92
92
  label: b || t["aria-label"],
93
- getDisablePointerSelection: () => m.current.disablePointerSelection,
93
+ getDisablePointerSelection: () => v.current.disablePointerSelection,
94
94
  listId: U,
95
95
  inputId: H,
96
96
  labelId: re,
@@ -98,30 +98,30 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
98
98
  }), []);
99
99
  function ne(e, o) {
100
100
  var s, a;
101
- let v = (a = (s = m.current) == null ? void 0 : s.filter) != null ? a : Pe;
102
- return e ? v(e, r.current.search, o) : 0;
101
+ let m = (a = (s = v.current) == null ? void 0 : s.filter) != null ? a : Pe;
102
+ return e ? m(e, r.current.search, o) : 0;
103
103
  }
104
104
  function T() {
105
- if (!r.current.search || m.current.shouldFilter === !1) return;
105
+ if (!r.current.search || v.current.shouldFilter === !1) return;
106
106
  let e = r.current.filtered.items, o = [];
107
107
  r.current.filtered.groups.forEach((a) => {
108
- let v = u.current.get(a), g = 0;
109
- v.forEach((k) => {
108
+ let m = u.current.get(a), g = 0;
109
+ m.forEach((k) => {
110
110
  let S = e.get(k);
111
111
  g = Math.max(S, g);
112
112
  }), o.push([a, g]);
113
113
  });
114
114
  let s = M.current;
115
- P().sort((a, v) => {
115
+ P().sort((a, m) => {
116
116
  var g, k;
117
- let S = a.getAttribute("id"), ye = v.getAttribute("id");
117
+ let S = a.getAttribute("id"), ye = m.getAttribute("id");
118
118
  return ((g = e.get(ye)) != null ? g : 0) - ((k = e.get(S)) != null ? k : 0);
119
119
  }).forEach((a) => {
120
- let v = a.closest(Z);
121
- v ? v.appendChild(a.parentElement === v ? a : a.closest(`${Z} > *`)) : s.appendChild(a.parentElement === s ? a : a.closest(`${Z} > *`));
122
- }), o.sort((a, v) => v[1] - a[1]).forEach((a) => {
123
- var v;
124
- let g = (v = M.current) == null ? void 0 : v.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);
120
+ let m = a.closest(Z);
121
+ m ? m.appendChild(a.parentElement === m ? a : a.closest(`${Z} > *`)) : s.appendChild(a.parentElement === s ? a : a.closest(`${Z} > *`));
122
+ }), o.sort((a, m) => m[1] - a[1]).forEach((a) => {
123
+ var m;
124
+ let g = (m = M.current) == null ? void 0 : m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);
125
125
  g?.parentElement.appendChild(g);
126
126
  });
127
127
  }
@@ -131,21 +131,21 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
131
131
  }
132
132
  function G() {
133
133
  var e, o, s, a;
134
- if (!r.current.search || m.current.shouldFilter === !1) {
134
+ if (!r.current.search || v.current.shouldFilter === !1) {
135
135
  r.current.filtered.count = f.current.size;
136
136
  return;
137
137
  }
138
138
  r.current.filtered.groups = /* @__PURE__ */ new Set();
139
- let v = 0;
139
+ let m = 0;
140
140
  for (let g of f.current) {
141
141
  let k = ne((o = (e = c.current.get(g)) == null ? void 0 : e.value) != null ? o : "", (a = (s = c.current.get(g)) == null ? void 0 : s.keywords) != null ? a : []);
142
- r.current.filtered.items.set(g, k), k > 0 && v++;
142
+ r.current.filtered.items.set(g, k), k > 0 && m++;
143
143
  }
144
144
  for (let [g, k] of u.current) for (let S of k) if (r.current.filtered.items.get(S) > 0) {
145
145
  r.current.filtered.groups.add(g);
146
146
  break;
147
147
  }
148
- r.current.filtered.count = v;
148
+ r.current.filtered.count = m;
149
149
  }
150
150
  function le() {
151
151
  var e, o, s;
@@ -154,7 +154,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
154
154
  }
155
155
  function D() {
156
156
  var e;
157
- return (e = M.current) == null ? void 0 : e.querySelector(`${me}[aria-selected="true"]`);
157
+ return (e = M.current) == null ? void 0 : e.querySelector(`${ve}[aria-selected="true"]`);
158
158
  }
159
159
  function P() {
160
160
  var e;
@@ -166,8 +166,8 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
166
166
  }
167
167
  function X(e) {
168
168
  var o;
169
- let s = D(), a = P(), v = a.findIndex((k) => k === s), g = a[v + e];
170
- (o = m.current) != null && o.loop && (g = v + e < 0 ? a[a.length - 1] : v + e === a.length ? a[0] : a[v + e]), g && E.setState("value", g.getAttribute(F));
169
+ let s = D(), a = P(), m = a.findIndex((k) => k === s), g = a[m + e];
170
+ (o = v.current) != null && o.loop && (g = m + e < 0 ? a[a.length - 1] : m + e === a.length ? a[0] : a[m + e]), g && E.setState("value", g.getAttribute(F));
171
171
  }
172
172
  function ae(e) {
173
173
  let o = D(), s = o?.closest(V), a;
@@ -213,8 +213,8 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
213
213
  e.preventDefault();
214
214
  let a = D();
215
215
  if (a) {
216
- let v = new Event(ee);
217
- a.dispatchEvent(v);
216
+ let m = new Event(ee);
217
+ a.dispatchEvent(m);
218
218
  }
219
219
  }
220
220
  }
@@ -224,18 +224,18 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
224
224
  htmlFor: N.inputId,
225
225
  id: N.labelId,
226
226
  style: Je
227
- }, b), B(t, (e) => n.createElement(pe.Provider, { value: E }, n.createElement(ve.Provider, { value: N }, e))));
227
+ }, b), B(t, (e) => n.createElement(pe.Provider, { value: E }, n.createElement(me.Provider, { value: N }, e))));
228
228
  }), Ve = n.forwardRef((t, l) => {
229
229
  var r, f;
230
- let u = q(), c = n.useRef(null), d = n.useContext(he), m = L(), b = be(t), i = (f = (r = b.current) == null ? void 0 : r.forceMount) != null ? f : d?.forceMount;
230
+ let u = q(), c = n.useRef(null), d = n.useContext(he), v = L(), b = be(t), i = (f = (r = b.current) == null ? void 0 : r.forceMount) != null ? f : d?.forceMount;
231
231
  $(() => {
232
- if (!i) return m.item(u, d?.id);
232
+ if (!i) return v.item(u, d?.id);
233
233
  }, [i]);
234
234
  let p = we(u, c, [
235
235
  t.value,
236
236
  t.children,
237
237
  c
238
- ], t.keywords), h = te(), I = C((w) => w.value && w.value === p.current), y = C((w) => i || m.filter() === !1 ? !0 : w.search ? w.filtered.items.get(u) > 0 : !0);
238
+ ], t.keywords), h = te(), I = C((w) => w.value && w.value === p.current), y = C((w) => i || v.filter() === !1 ? !0 : w.search ? w.filtered.items.get(u) > 0 : !0);
239
239
  n.useEffect(() => {
240
240
  let w = c.current;
241
241
  if (!(!w || t.disabled)) return w.addEventListener(ee, x), () => w.removeEventListener(ee, x);
@@ -263,12 +263,12 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
263
263
  "aria-selected": !!I,
264
264
  "data-disabled": !!A,
265
265
  "data-selected": !!I,
266
- onPointerMove: A || m.getDisablePointerSelection() ? void 0 : z,
266
+ onPointerMove: A || v.getDisablePointerSelection() ? void 0 : z,
267
267
  onClick: A ? void 0 : x
268
268
  }, t.children);
269
269
  }), je = n.forwardRef((t, l) => {
270
- let { heading: r, children: f, forceMount: u, ...c } = t, d = q(), m = n.useRef(null), b = n.useRef(null), i = q(), p = L(), h = C((y) => u || p.filter() === !1 ? !0 : y.search ? y.filtered.groups.has(d) : !0);
271
- $(() => p.group(d), []), we(d, m, [
270
+ let { heading: r, children: f, forceMount: u, ...c } = t, d = q(), v = n.useRef(null), b = n.useRef(null), i = q(), p = L(), h = C((y) => u || p.filter() === !1 ? !0 : y.search ? y.filtered.groups.has(d) : !0);
271
+ $(() => p.group(d), []), we(d, v, [
272
272
  t.value,
273
273
  t.heading,
274
274
  b
@@ -278,7 +278,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
278
278
  forceMount: u
279
279
  }), [u]);
280
280
  return n.createElement(R.div, {
281
- ref: j(m, l),
281
+ ref: j(v, l),
282
282
  ...c,
283
283
  "cmdk-group": "",
284
284
  role: "presentation",
@@ -302,7 +302,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
302
302
  role: "separator"
303
303
  });
304
304
  }), Oe = n.forwardRef((t, l) => {
305
- let { onValueChange: r, ...f } = t, u = t.value != null, c = te(), d = C((i) => i.search), m = C((i) => i.selectedItemId), b = L();
305
+ let { onValueChange: r, ...f } = t, u = t.value != null, c = te(), d = C((i) => i.search), v = C((i) => i.selectedItemId), b = L();
306
306
  return n.useEffect(() => {
307
307
  t.value != null && c.setState("search", t.value);
308
308
  }, [t.value]), n.createElement(R.input, {
@@ -317,7 +317,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
317
317
  "aria-expanded": !0,
318
318
  "aria-controls": b.listId,
319
319
  "aria-labelledby": b.labelId,
320
- "aria-activedescendant": m,
320
+ "aria-activedescendant": v,
321
321
  id: b.inputId,
322
322
  type: "text",
323
323
  value: u ? t.value : d,
@@ -326,7 +326,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
326
326
  }
327
327
  });
328
328
  }), Be = n.forwardRef((t, l) => {
329
- let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null), m = C((i) => i.selectedItemId), b = L();
329
+ let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null), v = C((i) => i.selectedItemId), b = L();
330
330
  return n.useEffect(() => {
331
331
  if (d.current && c.current) {
332
332
  let i = d.current, p = c.current, h, I = new ResizeObserver(() => {
@@ -345,7 +345,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
345
345
  "cmdk-list": "",
346
346
  role: "listbox",
347
347
  tabIndex: -1,
348
- "aria-activedescendant": m,
348
+ "aria-activedescendant": v,
349
349
  "aria-label": f,
350
350
  id: b.listId
351
351
  }, B(t, (i) => n.createElement("div", {
@@ -353,7 +353,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
353
353
  "cmdk-list-sizer": ""
354
354
  }, i)));
355
355
  }), ze = n.forwardRef((t, l) => {
356
- let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...m } = t;
356
+ let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...v } = t;
357
357
  return n.createElement(Ie, {
358
358
  open: r,
359
359
  onOpenChange: f
@@ -366,7 +366,7 @@ var V = '[cmdk-group=""]', Z = '[cmdk-group-items=""]', qe = '[cmdk-group-headin
366
366
  className: c
367
367
  }, n.createElement(ge, {
368
368
  ref: l,
369
- ...m
369
+ ...v
370
370
  }))));
371
371
  }), Ue = n.forwardRef((t, l) => C((r) => r.filtered.count === 0) ? n.createElement(R.div, {
372
372
  ref: l,
@@ -428,14 +428,14 @@ function we(t, l, r, f = []) {
428
428
  let u = n.useRef(), c = L();
429
429
  return $(() => {
430
430
  var d;
431
- let m = (() => {
431
+ let v = (() => {
432
432
  var i;
433
433
  for (let p of r) {
434
434
  if (typeof p == "string") return p.trim();
435
435
  if (typeof p == "object" && "current" in p) return p.current ? (i = p.current.textContent) == null ? void 0 : i.trim() : u.current;
436
436
  }
437
437
  })(), b = f.map((i) => i.trim());
438
- c.value(t, m, b), (d = l.current) == null || d.setAttribute(F, m), u.current = m;
438
+ c.value(t, v, b), (d = l.current) == null || d.setAttribute(F, v), u.current = v;
439
439
  }), u;
440
440
  }
441
441
  var We = () => {