@iamfiro/design 0.3.2 → 0.3.5

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/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,195 +1,195 @@
1
1
  "use client";
2
- const e = u;
2
+ const e = b;
3
3
  (function(e, t) {
4
- let n = u, r = e();
4
+ let n = b, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(222)) / 1 + parseInt(n(256)) / 2 + -parseInt(n(258)) / 3 + parseInt(n(210)) / 4 * (-parseInt(n(206)) / 5) + -parseInt(n(245)) / 6 * (-parseInt(n(236)) / 7) + parseInt(n(216)) / 8 * (parseInt(n(220)) / 9) + parseInt(n(214)) / 10 == t) break;
6
+ if (-parseInt(n(368)) / 1 * (-parseInt(n(348)) / 2) + -parseInt(n(398)) / 3 + parseInt(n(367)) / 4 * (parseInt(n(389)) / 5) + parseInt(n(363)) / 6 * (-parseInt(n(383)) / 7) + parseInt(n(381)) / 8 * (parseInt(n(353)) / 9) + parseInt(n(377)) / 10 * (-parseInt(n(397)) / 11) + -parseInt(n(356)) / 12 * (parseInt(n(399)) / 13) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(d, 599795);
11
+ })(y, 766021);
12
12
  import { usePresence as t } from "../../hooks/usePresence.js";
13
13
  import { useControllableState as n } from "../../hooks/useControllableState.js";
14
14
  import { cx as r } from "../../primitives/index.js";
15
15
  import { useSelection as i } from "../../hooks/useSelection.js";
16
16
  import { useDismiss as a } from "../../hooks/useDismiss.js";
17
- import { Listbox as ee, ListboxPopover as o, firstEnabled as te, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
17
+ import { Listbox as ee, ListboxPopover as te, firstEnabled as o, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
18
18
  /* empty css */
19
- import { useId as ie, useMemo as ae, useRef as c, useState as l } from "react";
20
- function u(e, t) {
21
- e -= 196;
22
- let n = d(), r = n[e];
23
- u.faFrkY === void 0 && (u.cFjwIP = function(e) {
19
+ import { useId as ie, useMemo as c, useRef as l, useState as u } from "react";
20
+ import { Check as d, ChevronDown as ae, Plus as oe, X as f } from "lucide-react";
21
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
22
+ var g = (t) => t[e(370)]()[e(376)](/\s+/g, ""), _ = (t, n) => {
23
+ let r = e, i = g(n);
24
+ return [t[r(410)], ...t[r(401)] ?? []].some((e) => g(e)[r(405)](i));
25
+ };
26
+ function v({ text: t, query: n }) {
27
+ let r = e, i = n ? t[r(370)]()[r(362)](n[r(370)]()) : -1;
28
+ return i < 0 ? m(p, { children: t }) : h(p, { children: [
29
+ t.slice(0, i),
30
+ m(r(378), { children: t[r(380)](i, i + n[r(360)]) }),
31
+ t[r(380)](i + n[r(360)])
32
+ ] });
33
+ }
34
+ function y() {
35
+ let e = /* @__PURE__ */ "y3vYCMvUDa.ouTTzw1Ora.zhmTB3b0Aw9Ux19SywjLBa.zhmTy29TyM9IB3G.mJrSELruEeO.BgLZDa.BxvSDgLWBgu.zhmTB3b0Aw9Ux19Py29U.BgvUz3rO.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Aw5KzxHpzG.nJyZmJeYnhzvyNPmtW.zhmTy29TyM9IB3HFx2LUChv0.zhmTB3b0Aw9Ux19KzxnJ.C2LUz2XL.otmYqvnSDK9W.mtGYnda5BwrlD3LA.AwnVBG.Dg9mB3DLCKnHC2u.4OczioY2LoQWGa.zM9JDxm.DgfYz2v0.AxntzwXLy3rLza.zgvMyxvSDfzHBhvL.CMvWBgfJzq.mJG4mevVBNnwDq.BwfYAW.zgvZy3jPChrPB24.C2XPy2u.mtiWmdK5otjVA3zxCue.ChjLDMvUDerLzMf1Bhq.n3DZwwrtCa.C3bHBG.rxnJyxbL.B2zM.zhmTB3b0Aw9Ux19JAgvJAW.C2vSzwn0zwq.oda1q0PRAKzV.zhmTy29TyM9IB3GTlq.qxjYB3DeB3DU.C29Tzq.B25wywX1zunOyw5Nzq.DMfSDwu.C3rYB25N.zhmTy29TyM9IB3HFx2nOzxzYB24.mJK5ntnWu3DoCNu.mZuZnZG3z2zIDvrt.mtq1oti4owzUv0rpra.zhmTy29UDhjVBa.A2v5D29Yzhm.zMLSDgvY.Aw5WDxq.BwfW.Aw5JBhvKzxm.zgL2.ioYGNoQXSa.zhmTy29TyM9IB3HFx2LJB24.Aw5WDxrwywX1zq.BgfIzwW.6Rka7ioj7zw07isCioYeOo2dNq.A2v5.yNv0Dg9U.C3rVCfbYB3bHz2f0Aw9U.DhjPBq.rw50zxi.y2XVC2LUzW.y29TyM9IB3G.z2v0.7isG7yoDio2vToYGNa.y2XLyxi.zgLZywjSzwq.mtz0D0ziv2i.zhmTy29TyM9IB3HFx2nSzwfY.zhmTB3b0Aw9Ux190zxH0.Dg9Nz2XL".split(".");
36
+ return y = function() {
37
+ return e;
38
+ }, y();
39
+ }
40
+ function b(e, t) {
41
+ e -= 342;
42
+ let n = y(), r = n[e];
43
+ b.sYVFQM === void 0 && (b.crcKNz = function(e) {
24
44
  let t = "", n = "";
25
45
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
26
46
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
47
  return decodeURIComponent(n);
28
- }, u.JmHrcZ = {}, u.faFrkY = !0);
48
+ }, b.ISkHoW = {}, b.sYVFQM = !0);
29
49
  let i = n[0];
30
- u.zVebhr !== i && (u.JmHrcZ = {}, u.zVebhr = i);
31
- let a = u.JmHrcZ[e];
32
- return a === void 0 ? (r = u.cFjwIP(r), u.JmHrcZ[e] = r) : r = a, r;
33
- }
34
- function d() {
35
- let e = /* @__PURE__ */ "zM9JDxm.BMf0AxzLrxzLBNq.C2LUz2XL.mJuYv1D5DhDI.C2vSzwn0zwq.otyYntfuD2XTtMm.zgL2.7isG7yoDio2vToYGNa.C3bHBG.zhmTy29TyM9IB3G.Dg9mB3DLCKnHC2u.qxjYB3DvCa.zhmTB3b0Aw9Ux19KzxnJ.BwfYAW.BgfIzwW.DgfYz2v0.A2v5.yNv0Dg9U.rw50zxi.nZDwrgvLrwi.zgvMyxvSDfzHBhvL.BxvSDgLWBgu.zhmTB3b0Aw9Ux19SywjLBa.ioYGNoQXSa.zhmTy29TyM9IB3HFx3rHzW.C2XPy2u.qxjYB3DeB3DU.Bw91BNrLza.mZC2ndK0EMP3vfzw.C29Tzq.zhmTy29TyM9IB3HFx2LUChv0.Aw5WDxrwywX1zq.zhmTy29TyM9IB3HFx2nSzwfY.z2v0.zgLZywjSzwq.BgvUz3rO.B25wywX1zunOyw5Nzq.B2zM.BgLZDa.mty5otqZne5nr0j4yG.ChjLDMvUDerLzMf1Bhq.mtG3mdu2m3nbCfLKEa.zMLSDgvY.DMfSDwu.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Aw5KzxHpzG.4OczioY2LoQWGa.y29TyM9IB3G.6Rka7ioj7zw07isCioYeOo2dNq.y2XLyxi.BwfW.A2v5D29Yzhm.zhmTB3b0Aw9Ux19Py29U.zhmTB3b0Aw9Ux19JAgvJAW.y3vYCMvUDa.AwnVBG.C2v0u2vSzwn0zwq.mJuWmZeWvezKsMr3.Dg9Nz2XL.C3rVCfbYB3bHz2f0Aw9U.vgfI.otjPtuf3qu8.rxnJyxbL.CMvWBgfJzq.zgvZy3jPChrPB24.mJG1nZq3mgjHr2zRBW.zhmTy29UDhjVBa.mti5mZy4C0DVt0vQ".split(".");
36
- return d = function() {
37
- return e;
38
- }, d();
39
- }
40
- import { Check as f, ChevronDown as oe, Plus as se, X as p } from "lucide-react";
41
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
42
- var _ = (t) => t.toLowerCase()[e(212)](/\s+/g, ""), v = (t, n) => {
43
- let r = e, i = _(n);
44
- return [t[r(231)], ...t[r(200)] ?? []][r(246)]((e) => _(e).includes(i));
45
- };
46
- function y({ text: t, query: n }) {
47
- let r = e, i = n ? t[r(227)]()[r(262)](n[r(227)]()) : -1;
48
- return i < 0 ? h(m, { children: t }) : g(m, { children: [
49
- t[r(242)](0, i),
50
- h(r(230), { children: t[r(242)](i, i + n[r(252)]) }),
51
- t[r(242)](i + n[r(252)])
52
- ] });
50
+ b.rkHJyB !== i && (b.ISkHoW = {}, b.rkHJyB = i);
51
+ let a = b.ISkHoW[e];
52
+ return a === void 0 ? (r = b.crcKNz(r), b.ISkHoW[e] = r) : r = a, r;
53
53
  }
54
- function b(u) {
55
- let d = e, { options: f, placeholder: y = d(197), size: b = "md", disabled: x, invalid: S, leading: C, filter: le = v, onCreate: w, createLabel: ue = (e) => g(m, { children: [
54
+ function x(d) {
55
+ let v = e, { options: y, placeholder: b = v(411), size: x = "md", disabled: S, invalid: C, leading: w, filter: ce = _, onCreate: T, createLabel: le = (e) => h(p, { children: [
56
56
  "‘",
57
- h("strong", { children: e }),
58
- d(263)
59
- ] }), emptyText: de, highlight: fe = !0, renderOption: T, maxHeight: E, id: D, className: pe, "aria-label": O, "aria-labelledby": me } = u, k = ie() + "-list", A = i(u.multiple ? {
60
- type: d(238),
61
- value: u[d(260)],
62
- defaultValue: u[d(237)],
63
- onValueChange: u[d(253)]
57
+ m(v(395), { children: e }),
58
+ v(371)
59
+ ] }), emptyText: ue, highlight: de = !0, renderOption: E, maxHeight: fe, id: D, className: pe, "aria-label": O, "aria-labelledby": me } = d, k = ie() + "-list", A = i(d[v(358)] ? {
60
+ type: "multiple",
61
+ value: d.value,
62
+ defaultValue: d[v(375)],
63
+ onValueChange: d[v(393)]
64
64
  } : {
65
- type: d(219),
66
- value: u[d(260)],
67
- defaultValue: u[d(237)],
68
- onValueChange: u[d(253)]
69
- }), j = A[d(238)], [M, N] = n(u[d(248)], "", u.onInputChange), [P, F] = l(!1), [I, L] = l(!1), R = t(I), [z, B] = l(-1), V = c(null), H = c(null), U = c(null), he = ae(() => new Map(f[d(199)]((e) => [e[d(260)], e])), [f]), W = A[d(221)][d(199)]((e) => he[d(250)](e)).filter((e) => !!e), G = j || P, K = G ? M.trim() : "", q = K ? f[d(259)]((e) => le(e, K)) : f, J = !!w && !!K && !f[d(246)]((e) => _(e[d(231)]) === _(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
65
+ type: v(366),
66
+ value: d[v(394)],
67
+ defaultValue: d[v(375)],
68
+ onValueChange: d[v(393)]
69
+ }), j = A[v(358)], [M, N] = n(d[v(409)], "", d.onInputChange), [P, F] = u(!1), [I, L] = u(!1), R = t(I), [z, B] = u(-1), V = l(null), H = l(null), U = l(null), he = c(() => new Map(y[v(404)]((e) => [e[v(394)], e])), [y]), W = A[v(388)].map((e) => he[v(344)](e)).filter((e) => !!e), G = j || P, K = G ? M[v(415)]() : "", q = K ? y[v(402)]((e) => ce(e, K)) : y, J = !!T && !!K && !y[v(392)]((e) => g(e.label) === g(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
70
70
  L(!1), F(!1), j || N("");
71
71
  };
72
72
  a(I, [V, U], X);
73
- let Z = (e = te(Y)) => {
74
- x || (B(e), L(!0));
73
+ let Z = (e = o(Y)) => {
74
+ S || (B(e), L(!0));
75
75
  }, Q = (e) => {
76
- let t = d;
77
- e[t(251)] || (j ? (A.toggle(e.value), N(""), H.current?.[t(217)]()) : (A[t(205)]([e[t(260)]]), X()));
76
+ let t = v;
77
+ e[t(347)] || (j ? (A.toggle(e[t(394)]), N(""), H[t(352)]?.[t(372)]()) : (A.setSelected([e[t(394)]]), X()));
78
78
  }, $ = () => {
79
- w?.(K), N(""), j || X();
79
+ T?.(K), N(""), j || X();
80
80
  }, ge = J ? {
81
- label: ue(K),
82
- icon: h(se, {}),
81
+ label: le(K),
82
+ icon: m(oe, {}),
83
83
  onSelect: $
84
84
  } : void 0, _e = () => {
85
85
  z < 0 || (z < q.length ? Q(q[z]) : J && $());
86
86
  }, ve = (e) => {
87
- let t = d;
88
- if (!e[t(218)].isComposing) switch (e[t(233)]) {
89
- case t(243):
90
- e[t(257)](), I ? B(s(Y, z, 1)) : Z();
87
+ let t = v;
88
+ if (!e.nativeEvent.isComposing) switch (e[t(412)]) {
89
+ case t(391):
90
+ e.preventDefault(), I ? B(s(Y, z, 1)) : Z();
91
91
  break;
92
- case t(228):
93
- e[t(257)](), I ? B(s(Y, z, -1)) : Z(ne(Y));
92
+ case "ArrowUp":
93
+ e.preventDefault(), I ? B(s(Y, z, -1)) : Z(ne(Y));
94
94
  break;
95
- case t(235):
96
- I && (e.preventDefault(), _e());
95
+ case t(416):
96
+ I && (e[t(382)](), _e());
97
97
  break;
98
- case t(211):
99
- (I || P) && (e[t(257)](), X());
98
+ case t(385):
99
+ (I || P) && (e[t(382)](), X());
100
100
  break;
101
101
  case "Backspace":
102
- j && !M && W[t(252)] && A[t(207)](W[W[t(252)] - 1][t(260)]);
102
+ j && !M && W[t(360)] && A[t(351)](W[W.length - 1][t(394)]);
103
103
  break;
104
- case t(209): I && X();
104
+ case "Tab": I && X();
105
105
  }
106
- }, ye = G ? M : W[0]?.[d(231)] ?? "";
107
- return g(m, { children: [g(d(223), {
106
+ }, ye = G ? M : W[0]?.[v(410)] ?? "";
107
+ return h(p, { children: [h(v(406), {
108
108
  ref: V,
109
- className: r(d(215), d(226), b !== "md" && "ds-combobox--" + b, j && "ds-combobox--multiple", pe),
109
+ className: r(v(400), v(355), x !== "md" && v(390) + x, j && "ds-combobox--multiple", pe),
110
110
  "data-open": I || void 0,
111
- "data-invalid": S || void 0,
112
- "data-disabled": x || void 0,
111
+ "data-invalid": C || void 0,
112
+ "data-disabled": S || void 0,
113
113
  onPointerDown: (e) => {
114
- let t = d;
115
- x || e[t(232)] === H[t(203)] || (e.preventDefault(), H[t(203)]?.focus(), I || Z());
114
+ let t = v;
115
+ S || e[t(373)] === H[t(352)] || (e[t(382)](), H[t(352)]?.[t(372)](), I || Z());
116
116
  },
117
117
  children: [
118
- C && h(d(225), {
119
- className: "ds-combobox__icon",
120
- children: C
118
+ w && m("span", {
119
+ className: v(408),
120
+ children: w
121
121
  }),
122
- j && W.map((e) => g(d(225), {
123
- className: d(241),
124
- children: [e.label, h("button", {
125
- type: d(234),
122
+ j && W.map((e) => h(v(384), {
123
+ className: "ds-combobox__tag",
124
+ children: [e[v(410)], m(v(413), {
125
+ type: v(413),
126
126
  tabIndex: -1,
127
- "aria-label": e[d(231)] + d(240),
128
- disabled: x,
129
- onPointerDown: (e) => e[d(208)](),
130
- onClick: () => A.toggle(e[d(260)]),
131
- children: h(p, {})
127
+ "aria-label": e[v(410)] + v(407),
128
+ disabled: S,
129
+ onPointerDown: (e) => e[v(414)](),
130
+ onClick: () => A[v(351)](e.value),
131
+ children: m(f, {})
132
132
  })]
133
- }, e.value)),
134
- h("input", {
133
+ }, e[v(394)])),
134
+ m(v(403), {
135
135
  ref: H,
136
136
  id: D,
137
- role: d(196),
137
+ role: v(343),
138
138
  "aria-expanded": I,
139
139
  "aria-controls": I ? k : void 0,
140
- "aria-autocomplete": d(255),
140
+ "aria-autocomplete": v(357),
141
141
  "aria-activedescendant": I && z >= 0 ? re(k, z) : void 0,
142
- "aria-invalid": S || void 0,
142
+ "aria-invalid": C || void 0,
143
143
  "aria-label": O,
144
144
  "aria-labelledby": me,
145
- autoComplete: d(254),
146
- disabled: x,
147
- className: d(247),
148
- placeholder: j && W[d(252)] ? "" : y,
145
+ autoComplete: v(386),
146
+ disabled: S,
147
+ className: v(364),
148
+ placeholder: j && W[v(360)] ? "" : b,
149
149
  value: ye,
150
150
  onChange: (e) => {
151
- let t = d;
152
- N(e[t(232)][t(260)]), F(!0), L(!0), B(e[t(232)][t(260)].trim() ? 0 : -1);
151
+ let t = v;
152
+ N(e.target[t(394)]), F(!0), L(!0), B(e.target[t(394)][t(415)]() ? 0 : -1);
153
153
  },
154
154
  onFocus: () => !I && Z(-1),
155
155
  onClick: () => !I && Z(-1),
156
156
  onBlur: () => X(),
157
157
  onKeyDown: ve
158
158
  }),
159
- !j && W[d(252)] > 0 && !P && !x && h(d(234), {
160
- type: d(234),
159
+ !j && W[v(360)] > 0 && !P && !S && m("button", {
160
+ type: v(413),
161
161
  tabIndex: -1,
162
- className: d(249),
163
- "aria-label": d(224),
162
+ className: v(349),
163
+ "aria-label": v(345),
164
164
  onPointerDown: (e) => {
165
- let t = d;
166
- e[t(257)](), e[t(208)]();
165
+ let t = v;
166
+ e.preventDefault(), e[t(414)]();
167
167
  },
168
- onClick: () => A[d(198)](),
169
- children: h(p, {})
168
+ onClick: () => A[v(346)](),
169
+ children: m(f, {})
170
170
  }),
171
- h(oe, { className: "ds-combobox__chevron" })
171
+ m(ae, { className: v(396) })
172
172
  ]
173
- }), R[d(244)] && h(o, {
173
+ }), R.mounted && m(te, {
174
174
  ref: U,
175
- closing: R.closing,
175
+ closing: R[v(342)],
176
176
  anchorRef: V,
177
- maxHeight: E,
178
- children: h(ee, {
177
+ maxHeight: fe,
178
+ children: m(ee, {
179
179
  id: k,
180
180
  options: q,
181
181
  activeIndex: z,
182
- isSelected: A.isSelected,
182
+ isSelected: A[v(374)],
183
183
  onSelect: Q,
184
184
  onActiveChange: B,
185
185
  multiple: j,
186
186
  action: ge,
187
- emptyText: de,
187
+ emptyText: ue,
188
188
  "aria-label": O,
189
- renderOption: T ? (e, t) => T(e, {
189
+ renderOption: E ? (e, t) => E(e, {
190
190
  ...t,
191
191
  query: K
192
- }) : fe && K ? (e, t) => h(ce, {
192
+ }) : de && K ? (e, t) => m(se, {
193
193
  option: e,
194
194
  state: t,
195
195
  query: K,
@@ -198,32 +198,32 @@ function b(u) {
198
198
  })
199
199
  })] });
200
200
  }
201
- function ce({ option: t, state: n, query: r, multiple: i }) {
201
+ function se({ option: t, state: n, query: r, multiple: i }) {
202
202
  let a = e;
203
- return g(m, { children: [
204
- i && h("span", {
205
- className: a(261),
206
- "data-checked": n[a(221)] || void 0,
207
- children: h(f, {})
203
+ return h(p, { children: [
204
+ i && m(a(384), {
205
+ className: a(361),
206
+ "data-checked": n[a(388)] || void 0,
207
+ children: m(d, {})
208
208
  }),
209
- t.icon && h(a(225), {
210
- className: a(201),
211
- children: t[a(204)]
209
+ t[a(369)] && m("span", {
210
+ className: a(359),
211
+ children: t.icon
212
212
  }),
213
- g("span", {
214
- className: "ds-option__text",
215
- children: [h(a(225), {
216
- className: a(239),
217
- children: h(y, {
218
- text: t[a(231)],
213
+ h("span", {
214
+ className: a(350),
215
+ children: [m(a(384), {
216
+ className: a(354),
217
+ children: m(v, {
218
+ text: t[a(410)],
219
219
  query: r
220
220
  })
221
- }), t[a(213)] && h(a(225), {
222
- className: a(229),
223
- children: t[a(213)]
221
+ }), t[a(379)] && m(a(384), {
222
+ className: a(365),
223
+ children: t[a(379)]
224
224
  })]
225
225
  }),
226
- !i && n[a(221)] && h(f, { className: a(202) })
226
+ !i && n[a(388)] && m(d, { className: a(387) })
227
227
  ] });
228
228
  }
229
- export { b as Combobox, v as defaultComboboxFilter };
229
+ export { x as Combobox, _ as defaultComboboxFilter };