@iamfiro/design 0.3.4 → 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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,154 +1,154 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = s, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(241)) / 1 * (parseInt(n(268)) / 2) + parseInt(n(252)) / 3 + parseInt(n(228)) / 4 + -parseInt(n(229)) / 5 * (-parseInt(n(267)) / 6) + parseInt(n(248)) / 7 + -parseInt(n(257)) / 8 * (-parseInt(n(226)) / 9) + -parseInt(n(217)) / 10 == t) break;
7
- i.push(i.shift());
6
+ if (parseInt(n(322)) / 1 + -parseInt(n(291)) / 2 + -parseInt(n(262)) / 3 * (parseInt(n(278)) / 4) + -parseInt(n(307)) / 5 * (parseInt(n(292)) / 6) + -parseInt(n(309)) / 7 * (parseInt(n(265)) / 8) + -parseInt(n(286)) / 9 * (parseInt(n(294)) / 10) + -parseInt(n(293)) / 11 * (-parseInt(n(282)) / 12) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(i, 206404);
11
+ })(m, 576360);
12
12
  import { cx as t } from "../../primitives/index.js";
13
13
  import { useFloating as n } from "../../hooks/useFloating.js";
14
- function r(e, t) {
15
- e -= 202;
16
- let n = i(), a = n[e];
17
- r.IMoRpI === void 0 && (r.naqGRd = function(e) {
14
+ import { useDismiss as r } from "../../hooks/useDismiss.js";
15
+ import { useEffect as i, useRef as a, useState as o } from "react";
16
+ function s(e, t) {
17
+ e -= 258;
18
+ let n = m(), r = n[e];
19
+ s.MxgWWD === void 0 && (s.ZbGxye = function(e) {
18
20
  let t = "", n = "";
19
21
  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);
20
22
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
23
  return decodeURIComponent(n);
22
- }, r.JZYrQd = {}, r.IMoRpI = !0);
23
- let o = n[0];
24
- r.NgnDbw !== o && (r.JZYrQd = {}, r.NgnDbw = o);
25
- let s = r.JZYrQd[e];
26
- return s === void 0 ? (a = r.naqGRd(a), r.JZYrQd[e] = a) : a = s, a;
24
+ }, s.kOiXql = {}, s.MxgWWD = !0);
25
+ let i = n[0];
26
+ s.YseEEW !== i && (s.kOiXql = {}, s.YseEEW = i);
27
+ let a = s.kOiXql[e];
28
+ return a === void 0 ? (r = s.ZbGxye(r), s.kOiXql[e] = r) : r = a, r;
27
29
  }
28
- function i() {
29
- let e = /* @__PURE__ */ "BMvHCMvZDa.Aw5WDxq6BM90kfT0ExbLpwnOzwnRyM94xsK6BM90kfTYzwfKB25SEv0P.CxvLCNLtzwXLy3rVCG.AgLUDa.BgvUz3rO.mZiWmJrtqvLjz2G.zhmTB3b0Aw9Ux19SywjLBa.AxndB21WB3nPBMC.AgLKzgvU.zhmTz3jPzc1Tzw51x19OAw50.lMrZlwDYAwqTCg9W.CgfUzwW.mtaZoda3mMLPBwD1DG.zgLHBg9N.C2vWyxjHDg9Y.w2rHDgeTywn0AxzLxq.ntK5odeXCK9QqMnt.sg9Tzq.C3rVCfbYB3bHz2f0Aw9U.B2jQzwn0.DgfYz2v0.mJrYrNDdwwO.zhmTCg9WB3zLCG.Aw5WDxqSihrLEhrHCMvH.C3vIBwvUDq.zgfUz2vY.AwnVBG.C2vWlq.B3bLBG.A2v5zg93BG.rw5K.nLbov0Xtra.mtbStMnjAhu.zhmTz3jPzc1WB3a.C3bHBG.zhmTz3jPzc1Tzw51x19JAgv2CM9U.y2XVC2vZDa.y29UDgfPBNm.BwfW.ChjLDMvUDerLzMf1Bhq.rxnJyxbL.C2vSzwn0.zhmTz3jPzc1Tzw51x19Zzxa.ywrKrxzLBNrmAxn0zw5LCG.zhmTBgLZDgjVEf9Fz3jVDxa.C3rHCNq.zhmTB3b0Aw9Ux19Py29U.BwvUDq.BgfIzwW.CMvTB3zLrxzLBNrmAxn0zw5LCG.BMf0AxzLrxzLBNq.odCZnZiXmgD5CfvUva.zhmTB3b0Aw9UigrZlwDYAwqTBwvUDv9FAxrLBq.CxvLCNLtzwXLy3rVCKfSBa.ywn0AxzLrwXLBwvUDa.rw50zxi.AgvHzgLUzW.zgLZywjSzwq.C2nYB2XSsw50B1zPzxC.zhmTB3b0Aw9Ux19JAgvJAW.nda4mZq4r0HqtMLS.y2HLy2TLza.mtq3ntCXnKD6vKzdBG.mZmZnJm1q3jty29e.zMLSDgvY.zgL2.DMLZAwjPBgL0Eq.A2v5.B25tzwXLy3q.zM9JDxm".split(".");
30
- return i = function() {
31
- return e;
32
- }, i();
33
- }
34
- import { useDismiss as a } from "../../hooks/useDismiss.js";
35
- import { useEffect as o, useRef as s, useState as c } from "react";
36
- import { Check as l, ChevronRight as u } from "lucide-react";
37
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
38
- import { createPortal as p } from "react-dom";
39
- function m({ anchor: r, closing: i, onClose: c, align: l = e(211), width: u, maxHeight: f = 420, initialFocus: m, className: h, keepFocus: g, label: _, children: v }) {
40
- let y = e, b = s(null), { style: x, side: S } = n(r, !0, {
30
+ import { Check as c, ChevronRight as l } from "lucide-react";
31
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
32
+ import { createPortal as f } from "react-dom";
33
+ function p({ anchor: o, closing: s, onClose: c, align: l = e(317), width: d, maxHeight: p = 420, initialFocus: m, className: h, keepFocus: g, label: _, children: v }) {
34
+ let y = e, b = a(null), { style: x, side: S } = n(o, !0, {
41
35
  matchWidth: !1,
42
36
  align: l,
43
37
  panelRef: b,
44
- maxHeight: f
38
+ maxHeight: p
45
39
  });
46
- a(!i, [b, r], c);
47
- let C = x[y(232)] !== y(244);
48
- return o(() => {
49
- let e = y, t = b.current;
50
- if (!C || i || !m || !t || t[e(203)](document[e(220)])) return;
51
- let n = t[e(219)](e(237)), r = m === e(247) ? t : m === "input" ? n[0] : n[n[e(240)] - 1];
52
- r?.[e(235)]({ preventScroll: !0 }), r instanceof HTMLInputElement && r[e(207)]();
40
+ r(!s, [b, o], c);
41
+ let C = x[y(280)] !== y(321);
42
+ return i(() => {
43
+ let e = y, t = b[e(271)];
44
+ if (!C || s || !m || !t || t.contains(document.activeElement)) return;
45
+ let n = t[e(296)](e(308)), r = m === "panel" ? t : m === "input" ? n[0] : n[n[e(304)] - 1];
46
+ r?.focus({ preventScroll: !0 }), r instanceof HTMLInputElement && r[e(305)]();
53
47
  }, [
54
48
  C,
55
- i,
49
+ s,
56
50
  m
57
- ]), p(d(y(231), {
51
+ ]), f(u(y(283), {
58
52
  ref: b,
59
- role: y(249),
53
+ role: y(276),
60
54
  "aria-label": _,
61
55
  tabIndex: -1,
62
- className: t(y(258), "ds-scroll", y(269), h),
56
+ className: t(y(295), y(273), y(263), h),
63
57
  "data-side": S,
64
- "data-state": i ? "closed" : y(264),
58
+ "data-state": s ? y(323) : "open",
65
59
  style: {
66
60
  ...x,
67
- width: u
61
+ width: d
68
62
  },
69
- onPointerDown: g ? (e) => e[y(256)][y(202)]("input, textarea, select") || e.preventDefault() : void 0,
63
+ onPointerDown: g ? (e) => e[y(312)].closest(y(270)) || e[y(319)]() : void 0,
70
64
  onKeyDown: (e) => {
71
65
  let t = y;
72
- e[t(233)] === t(206) && !e[t(216)][t(243)] && (e[t(254)](), c());
66
+ e[t(266)] === t(302) && !e[t(318)][t(284)] && (e[t(267)](), c());
73
67
  },
74
68
  children: v
75
69
  }), document.body);
76
70
  }
71
+ function m() {
72
+ let e = /* @__PURE__ */ "B25tzwXLy3q.BwvUDwL0zw0.zgLHBg9N.AgLUDa.mZm4mtq0mhjWCKLADW.CxvLCNLtzwXLy3rVCG.DMLZAwjPBgL0Eq.A2v5zg93BG.mtjYtMT4suG.zgL2.AxndB21WB3nPBMC.lMrZlwDYAwqTCg9W.nJiZmdC4mvvezKDsDq.C2vWlq.BgfIzwW.CMvTB3zLrxzLBNrmAxn0zw5LCG.BwvUDwL0zw1JAgvJA2jVEa.mtqZmZa2mNPfqNfNBa.otGZnZa2z1zKyLzm.ntaZmty0otDJq0zWALe.mtblqwX0D1e.zhmTCg9WB3zLCG.CxvLCNLtzwXLy3rVCKfSBa.zhmTB3b0Aw9Ux19JAgvJAW.y2HLy2TLza.zgLZywjSzwq.zhmTB3b0Aw9Ux19SywjLBa.C2vWyxjHDg9Y.rxnJyxbL.zhmTz3jPzc1Tzw51x19OAw50.BgvUz3rO.C2vSzwn0.qxjYB3DvCa.mZvZBxvxreO.Aw5WDxq6BM90kfT0ExbLpwnOzwnRyM94xsK6BM90kfTYzwfKB25SEv0P.mZv6C3Pqtfa.ChjLC2vUDgf0Aw9U.B2jQzwn0.DgfYz2v0.BMvHCMvZDa.zhmTB3b0Aw9Ux190zxH0.C3bHBG.zhmTB3b0Aw9UigrZlwDYAwqTBwvUDv9FAxrLBq.C3rHCNq.BMf0AxzLrxzLBNq.ChjLDMvUDerLzMf1Bhq.AgvHzgLUzW.AgLKzgvU.mZqWmZu1t0HWt1fV.y2XVC2vK.ywrKrxzLBNrmAxn0zw5LCG.BwfW.zhmTz3jPzc1Tzw51x19Zzxa.sg9Tzq.m0vMCe1bAq.zhmTz3jPzc1WB3a.zhmTB3b0Aw9Ux19Py29U.mtq5ode4ngLyDePwrq.A2v5.C3rVCfbYB3bHz2f0Aw9U.rw5K.AwnVBG.Aw5WDxqSihrLEhrHCMvHlcbZzwXLy3q.y3vYCMvUDa.zMLSDgvY.zhmTC2nYB2XS".split(".");
73
+ return m = function() {
74
+ return e;
75
+ }, m();
76
+ }
77
77
  function h({ items: n, className: r }) {
78
- let i = e, a = n[i(230)]((e) => typeof e === i(255) && i(233) in e), [p, m] = c(-1), h = s(null), g = (e) => {
79
- let t = i, n = a.length, r = p;
80
- for (let i = 0; i < n && (r = ((r + e) % n + n) % n, a[r][t(223)]); i++);
78
+ let s = e, f = n[s(272)]((e) => typeof e === s(311) && s(266) in e), [p, m] = o(-1), h = a(null), g = (e) => {
79
+ let t = s, n = f[t(304)], r = p;
80
+ for (let i = 0; i < n && (r = ((r + e) % n + n) % n, f[r][t(299)]); i++);
81
81
  m(r);
82
82
  }, _ = (e) => {
83
- let t = i;
84
- if (!e[t(256)].closest(t(259))) {
85
- if (e[t(233)] === "ArrowDown") g(1);
86
- else if (e[t(233)] === "ArrowUp") g(-1);
87
- else if (e[t(233)] === t(253)) m(0);
88
- else if (e[t(233)] === t(266)) m(a[t(240)] - 1);
89
- else if ((e.key === t(221) || e.key === " ") && a[p] && !a[p].disabled) a[p][t(234)]();
83
+ let t = s;
84
+ if (!e[t(312)].closest("input, textarea")) {
85
+ if (e.key === "ArrowDown") g(1);
86
+ else if (e[t(266)] === t(306)) g(-1);
87
+ else if (e.key === t(261)) m(0);
88
+ else if (e.key === t(268)) m(f[t(304)] - 1);
89
+ else if ((e[t(266)] === "Enter" || e[t(266)] === " ") && f[p] && !f[p][t(299)]) f[p].onSelect();
90
90
  else return;
91
- e[t(205)]();
91
+ e[t(319)]();
92
92
  }
93
93
  };
94
- o(() => {
95
- let e = i, t = h.current?.[e(202)](e(246));
94
+ i(() => {
95
+ let e = s, t = h[e(271)]?.closest(e(285));
96
96
  if (!t) return;
97
97
  let n = (e) => _(e);
98
- return t[e(209)](e(265), n), () => t[e(215)](e(265), n);
99
- }), o(() => {
100
- let e = i;
101
- h.current?.[e(238)](e(251))?.[e(224)]({ block: e(236) });
98
+ return t[e(258)](e(281), n), () => t[e(289)]("keydown", n);
99
+ }), i(() => {
100
+ let e = s;
101
+ h[e(271)]?.[e(279)]("[data-active]")?.scrollIntoView({ block: e(313) });
102
102
  }, [p]);
103
103
  let v = -1;
104
- return d(i(231), {
104
+ return u("div", {
105
105
  ref: h,
106
- role: i(213),
106
+ role: "menu",
107
107
  className: t("ds-grid-menu", r),
108
- children: n[i(204)]((e, t) => {
109
- let n = i;
110
- if (e === n(250)) return d(n(231), {
111
- role: n(250),
112
- className: n(208)
113
- }, n(263) + t);
114
- if ("heading" in e) return d(n(231), {
115
- className: n(210),
116
- role: "presentation",
117
- children: e[n(222)]
118
- }, "h-" + e.heading);
108
+ children: n[s(259)]((e, t) => {
109
+ let n = s;
110
+ if (e === n(301)) return u("div", {
111
+ role: n(301),
112
+ className: n(260)
113
+ }, n(287) + t);
114
+ if ("heading" in e) return u(n(283), {
115
+ className: "ds-listbox__group",
116
+ role: n(310),
117
+ children: e[n(320)]
118
+ }, "h-" + e[n(320)]);
119
119
  v++;
120
120
  let r = v;
121
- return f(n(231), {
122
- role: e.checked == null ? "menuitem" : "menuitemcheckbox",
123
- "aria-checked": e.checked,
124
- "aria-disabled": e[n(223)] || void 0,
121
+ return d("div", {
122
+ role: e[n(298)] == null ? n(275) : n(290),
123
+ "aria-checked": e[n(298)],
124
+ "aria-disabled": e[n(299)] || void 0,
125
125
  "data-active": r === p || void 0,
126
- "data-danger": e[n(261)] || void 0,
127
- className: n(218),
128
- onPointerMove: () => !e[n(223)] && r !== p && m(r),
126
+ "data-danger": e.danger || void 0,
127
+ className: n(316),
128
+ onPointerMove: () => !e[n(299)] && r !== p && m(r),
129
129
  onPointerLeave: () => m(-1),
130
- onClick: () => !e[n(223)] && e[n(234)](),
130
+ onClick: () => !e.disabled && e[n(274)](),
131
131
  children: [
132
- e[n(262)] && d(n(270), {
133
- className: n(212),
134
- children: e.icon
132
+ e[n(269)] && u(n(315), {
133
+ className: n(264),
134
+ children: e[n(269)]
135
135
  }),
136
- d(n(270), {
137
- className: "ds-option__text",
138
- children: d(n(270), {
139
- className: n(242),
140
- children: e[n(214)]
136
+ u("span", {
137
+ className: n(314),
138
+ children: u(n(315), {
139
+ className: n(300),
140
+ children: e[n(288)]
141
141
  })
142
142
  }),
143
- e[n(239)] != null && d(n(270), {
144
- className: n(245),
145
- children: e[n(239)]
143
+ e[n(277)] != null && u(n(315), {
144
+ className: n(303),
145
+ children: e[n(277)]
146
146
  }),
147
- e[n(227)] && d(l, { className: n(225) }),
148
- e[n(260)] && d(u, { className: n(271) })
147
+ e.checked && u(c, { className: n(297) }),
148
+ e.submenu && u(l, { className: "ds-grid-menu__chevron" })
149
149
  ]
150
- }, e.key);
150
+ }, e[n(266)]);
151
151
  })
152
152
  });
153
153
  }
154
- export { m as GridPopover, h as Menu };
154
+ export { p as GridPopover, h as Menu };
@@ -1,51 +1,49 @@
1
1
  "use client";
2
2
  (function(e, n) {
3
3
  for (var r = t, i = e();;) try {
4
- if (-parseInt(r(288)) / 1 * (-parseInt(r(282)) / 2) + -parseInt(r(280)) / 3 * (-parseInt(r(285)) / 4) + -parseInt(r(283)) / 5 * (-parseInt(r(287)) / 6) + -parseInt(r(278)) / 7 + -parseInt(r(286)) / 8 * (parseInt(r(279)) / 9) + parseInt(r(284)) / 10 + -parseInt(r(289)) / 11 * (parseInt(r(281)) / 12) == n) break;
4
+ if (-parseInt(r(346)) / 1 * (-parseInt(r(337)) / 2) + -parseInt(r(342)) / 3 + parseInt(r(338)) / 4 + parseInt(r(341)) / 5 + parseInt(r(345)) / 6 + parseInt(r(340)) / 7 * (-parseInt(r(343)) / 8) + parseInt(r(344)) / 9 * (parseInt(r(339)) / 10) == n) break;
5
5
  i.push(i.shift());
6
6
  } catch {
7
7
  i.push(i.shift());
8
8
  }
9
- })(e, 796328);
10
- function e() {
11
- var t = [
12
- "mtuYmte4nu5cAeTduG",
13
- "odC5mZmZngXpD1P1BG",
14
- "otC0odu2ne16Be1zsq",
15
- "mZCYmdG2mxHRB3DdDG",
16
- "m0PrEw5Uvq",
17
- "mtjpBgzpvvy",
18
- "mNrMvhfuuW",
19
- "mZy1DNLYtfvc",
20
- "ndm4nZGWtvvxExbt",
21
- "ndC2ndyZmMr6Bw5krq",
22
- "mtzSAg5nDe0",
23
- "odCWndj2DvbczNq"
24
- ];
25
- return e = function() {
26
- return t;
27
- }, e();
9
+ })(r, 312977);
10
+ function e(e, t) {
11
+ return { current: {
12
+ getBoundingClientRect: () => new DOMRect(e, t, 0, 0),
13
+ contains: () => !1
14
+ } };
28
15
  }
29
- function t(n, r) {
30
- n -= 278;
31
- var i = e(), a = i[n];
32
- t.DLAtMW === void 0 && (t.ggowYh = function(e) {
16
+ function t(e, n) {
17
+ e -= 337;
18
+ var i = r(), a = i[e];
19
+ t.uQlvuB === void 0 && (t.tedARc = function(e) {
33
20
  for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
34
21
  for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
35
22
  return decodeURIComponent(r);
36
- }, t.eRCwti = {}, t.DLAtMW = !0);
23
+ }, t.DccwfF = {}, t.uQlvuB = !0);
37
24
  var o = i[0];
38
- t.wwhyys !== o && (t.eRCwti = {}, t.wwhyys = o);
39
- var s = t.eRCwti[n];
40
- return s === void 0 ? (a = t.ggowYh(a), t.eRCwti[n] = a) : a = s, a;
41
- }
42
- function n(e, t) {
43
- return { current: {
44
- getBoundingClientRect: () => new DOMRect(e, t, 0, 0),
45
- contains: () => !1
46
- } };
25
+ t.yDwRyF !== o && (t.DccwfF = {}, t.yDwRyF = o);
26
+ var s = t.DccwfF[e];
27
+ return s === void 0 ? (a = t.tedARc(a), t.DccwfF[e] = a) : a = s, a;
47
28
  }
48
- function r(e) {
29
+ function n(e) {
49
30
  return { current: e };
50
31
  }
51
- export { r as elementAnchor, n as pointAnchor };
32
+ function r() {
33
+ var e = [
34
+ "mJi2otqWmgzPBwLeBa",
35
+ "mtrcC0P6EM8",
36
+ "nZCZotCWC1D0De5g",
37
+ "mtq4mJuZnhLsuuvMBG",
38
+ "mJqYmZm2ogHrshDfuW",
39
+ "oxzHCg9rEq",
40
+ "mtG3otCWnhniCKzUCW",
41
+ "ntvJDxnZAfe",
42
+ "ndaXnNvryNv3uq",
43
+ "mJqZmde1nNbsALnHBW"
44
+ ];
45
+ return r = function() {
46
+ return e;
47
+ }, r();
48
+ }
49
+ export { n as elementAnchor, e as pointAnchor };