@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,154 +1,154 @@
1
1
  "use client";
2
- const e = f;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let n = f, r = e();
4
+ let n = s, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(278)) / 1 * (parseInt(n(226)) / 2) + -parseInt(n(263)) / 3 * (-parseInt(n(281)) / 4) + -parseInt(n(250)) / 5 + -parseInt(n(254)) / 6 * (-parseInt(n(239)) / 7) + parseInt(n(277)) / 8 * (-parseInt(n(232)) / 9) + -parseInt(n(217)) / 10 + parseInt(n(238)) / 11 * (parseInt(n(272)) / 12) == t) break;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(l, 385897);
11
+ })(m, 576360);
12
12
  import { cx as t } from "../../primitives/index.js";
13
13
  import { useFloating as n } from "../../hooks/useFloating.js";
14
14
  import { useDismiss as r } from "../../hooks/useDismiss.js";
15
15
  import { useEffect as i, useRef as a, useState as o } from "react";
16
- import { Check as s, ChevronRight as c } from "lucide-react";
17
- function l() {
18
- let e = /* @__PURE__ */ "AwnVBG.ChjLDMvUDerLzMf1Bhq.CMvTB3zLrxzLBNrmAxn0zw5LCG.AgLUDa.B25tzwXLy3q.mZiYnJm3n0zjCxnMzW.ntuZuLvlzhnb.zhmTz3jPzc1WB3a.CxvLCNLtzwXLy3rVCKfSBa.zhmTB3b0Aw9Ux19JAgvJAW.DMLZAwjPBgL0Eq.A2v5.Aw5WDxqSihrLEhrHCMvH.zgLZywjSzwq.BwfW.qxjYB3DeB3DU.zhmTB3b0Aw9Ux19Py29U.mZCYmtuWvuDmr29p.CxvLCNLtzwXLy3rVCG.C3rHCNq.ChjLC2vUDgf0Aw9U.ntqYndzuAeHLBgW.zhmTC2nYB2XS.CgfUzwW.zgLHBg9N.C3rVCfbYB3bHz2f0Aw9U.zgfUz2vY.DgfYz2v0.BMvHCMvZDa.BwvUDwL0zw0.mteXvKjsBgXY.C3bHBG.zgL2.C2vWyxjHDg9Y.AxndB21WB3nPBMC.Aw5WDxqSihrLEhrHCMvHlcbZzwXLy3q.yM9KEq.y2HLy2TLza.C2nYB2XSsw50B1zPzxC.mZzKAu5yr1q.sg9Tzq.ywrKrxzLBNrmAxn0zw5LCG.rw50zxi.lMrZlwDYAwqTCg9W.mJy0A3nTyLjl.ntq4mZqXBMzor0vz.AgvHzgLUzW.zhmTz3jPzc1Tzw51x19JAgv2CM9U.mtu4nJbpz3fYBva.zhmTz3jPzc1Tzw51x19OAw50.C2vSzwn0.rxnJyxbL.zhmTB3b0Aw9Ux19SywjLBa.B2jQzwn0.BgvUz3rO.zM9JDxm.y2XVC2vK.nde3ota1mg1TAKjMuG.zhmTB3b0Aw9Ux190zxH0.ywn0AxzLrwXLBwvUDa.BwvUDwL0zw1JAgvJA2jVEa.y2XVC2vZDa.AgLKzgvU.B3bLBG.Aw5WDxq.zhmTz3jPzc1Tzw51x19Zzxa.mM1fBxbIsW.C3vIBwvUDq.C2vWlq.y3vYCMvUDa.A2v5zg93BG.BwvUDq.odu3mtzTver1qM0".split(".");
19
- return l = function() {
20
- return e;
21
- }, l();
22
- }
23
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
24
- function f(e, t) {
25
- e -= 214;
26
- let n = l(), r = n[e];
27
- f.UHFfyf === void 0 && (f.XjtdXn = function(e) {
16
+ function s(e, t) {
17
+ e -= 258;
18
+ let n = m(), r = n[e];
19
+ s.MxgWWD === void 0 && (s.ZbGxye = function(e) {
28
20
  let t = "", n = "";
29
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);
30
22
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
23
  return decodeURIComponent(n);
32
- }, f.mObGxX = {}, f.UHFfyf = !0);
24
+ }, s.kOiXql = {}, s.MxgWWD = !0);
33
25
  let i = n[0];
34
- f.xRElqO !== i && (f.mObGxX = {}, f.xRElqO = i);
35
- let a = f.mObGxX[e];
36
- return a === void 0 ? (r = f.XjtdXn(r), f.mObGxX[e] = r) : r = a, r;
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;
37
29
  }
38
- import { createPortal as p } from "react-dom";
39
- function m({ anchor: o, closing: s, onClose: c, align: l = e(252), width: d, maxHeight: f = 420, initialFocus: m, className: h, keepFocus: g, label: _, children: v }) {
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 }) {
40
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
40
  r(!s, [b, o], c);
47
- let C = x[y(243)] !== y(222);
41
+ let C = x[y(280)] !== y(321);
48
42
  return i(() => {
49
- let e = y, t = b[e(229)];
50
- if (!C || s || !m || !t || t.contains(document[e(219)])) return;
51
- let n = t[e(241)]("input:not([type=checkbox]):not([readonly])"), r = m === e(256) ? t : m === e(224) ? n[0] : n[n.length - 1];
52
- r?.[e(215)]({ preventScroll: !0 }), r instanceof HTMLInputElement && r[e(283)]();
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
49
  s,
56
50
  m
57
- ]), p(u(y(265), {
51
+ ]), f(u(y(283), {
58
52
  ref: b,
59
- role: y(257),
53
+ role: y(276),
60
54
  "aria-label": _,
61
55
  tabIndex: -1,
62
- className: t("ds-popover", y(255), y(240), h),
56
+ className: t(y(295), y(273), y(263), h),
63
57
  "data-side": S,
64
- "data-state": y(s ? 216 : 223),
58
+ "data-state": s ? y(323) : "open",
65
59
  style: {
66
60
  ...x,
67
61
  width: d
68
62
  },
69
- onPointerDown: g ? (e) => e[y(260)].closest(y(268)) || e[y(234)]() : 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(244)] === t(284) && !e.nativeEvent[t(267)] && (e[t(258)](), c());
66
+ e[t(266)] === t(302) && !e[t(318)][t(284)] && (e[t(267)](), c());
73
67
  },
74
68
  children: v
75
- }), document[y(269)]);
69
+ }), document.body);
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
76
  }
77
77
  function h({ items: n, className: r }) {
78
- let l = e, f = n.filter((e) => typeof e === l(286) && l(244) in e), [p, m] = o(-1), h = a(null), g = (e) => {
79
- let t = l, n = f.length, r = p;
80
- for (let i = 0; i < n && (r = ((r + e) % n + n) % n, f[r][t(246)]); 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 = l;
84
- if (!e[t(260)].closest(t(245))) {
85
- if (e[t(244)] === t(248)) g(1);
86
- else if (e[t(244)] === "ArrowUp") g(-1);
87
- else if (e.key === t(273)) m(0);
88
- else if (e.key === "End") m(f[t(214)] - 1);
89
- else if ((e.key === t(275) || e[t(244)] === " ") && f[p] && !f[p][t(246)]) f[p][t(237)]();
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(234)]();
91
+ e[t(319)]();
92
92
  }
93
93
  };
94
94
  i(() => {
95
- let e = l, t = h[e(229)]?.[e(221)](e(276));
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(274)](e(230), n), () => t[e(235)](e(230), n);
98
+ return t[e(258)](e(281), n), () => t[e(289)]("keydown", n);
99
99
  }), i(() => {
100
- let e = l;
101
- h[e(229)]?.[e(251)]("[data-active]")?.[e(271)]({ block: e(261) });
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 u(l(265), {
104
+ return u("div", {
105
105
  ref: h,
106
- role: l(231),
106
+ role: "menu",
107
107
  className: t("ds-grid-menu", r),
108
- children: n[l(247)]((e, t) => {
109
- let n = l;
110
- if (e === n(266)) return u(n(265), {
111
- role: n(266),
112
- className: n(225)
113
- }, n(228) + t);
114
- if (n(279) in e) return u(n(265), {
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
115
  className: "ds-listbox__group",
116
- role: n(253),
117
- children: e[n(279)]
118
- }, "h-" + e[n(279)]);
116
+ role: n(310),
117
+ children: e[n(320)]
118
+ }, "h-" + e[n(320)]);
119
119
  v++;
120
120
  let r = v;
121
- return d(n(265), {
122
- role: e[n(270)] == null ? n(262) : n(220),
123
- "aria-checked": e.checked,
124
- "aria-disabled": e[n(246)] || 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(259)] || void 0,
127
- className: "ds-option ds-grid-menu__item",
128
- onPointerMove: () => !e[n(246)] && 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(246)] && e.onSelect(),
130
+ onClick: () => !e.disabled && e[n(274)](),
131
131
  children: [
132
- e.icon && u(n(264), {
133
- className: n(249),
134
- children: e[n(233)]
132
+ e[n(269)] && u(n(315), {
133
+ className: n(264),
134
+ children: e[n(269)]
135
135
  }),
136
136
  u("span", {
137
- className: n(218),
138
- children: u(n(264), {
139
- className: n(285),
140
- children: e.label
137
+ className: n(314),
138
+ children: u(n(315), {
139
+ className: n(300),
140
+ children: e[n(288)]
141
141
  })
142
142
  }),
143
- e.hint != null && u(n(264), {
144
- className: n(282),
145
- children: e[n(236)]
143
+ e[n(277)] != null && u(n(315), {
144
+ className: n(303),
145
+ children: e[n(277)]
146
146
  }),
147
- e[n(270)] && u(s, { className: n(242) }),
148
- e[n(227)] && u(c, { className: n(280) })
147
+ e.checked && u(c, { className: n(297) }),
148
+ e.submenu && u(l, { className: "ds-grid-menu__chevron" })
149
149
  ]
150
- }, e[n(244)]);
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,48 +1,49 @@
1
1
  "use client";
2
- (function(t, n) {
3
- for (var r = e, i = t();;) try {
4
- if (parseInt(r(183)) / 1 + -parseInt(r(176)) / 2 + parseInt(r(180)) / 3 * (-parseInt(r(179)) / 4) + parseInt(r(178)) / 5 * (-parseInt(r(175)) / 6) + parseInt(r(177)) / 7 + parseInt(r(181)) / 8 + parseInt(r(182)) / 9 == n) break;
2
+ (function(e, n) {
3
+ for (var r = t, i = e();;) try {
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
- })(r, 164200);
10
- function e(t, n) {
11
- t -= 175;
12
- var i = r(), a = i[t];
13
- e.cQJGMB === void 0 && (e.cLjvXu = function(e) {
14
- 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);
15
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
16
- return decodeURIComponent(r);
17
- }, e.FxIWgD = {}, e.cQJGMB = !0);
18
- var o = i[0];
19
- e.XZWFrf !== o && (e.FxIWgD = {}, e.XZWFrf = o);
20
- var s = e.FxIWgD[t];
21
- return s === void 0 ? (a = e.cLjvXu(a), e.FxIWgD[t] = a) : a = s, a;
22
- }
23
- function t(e, t) {
9
+ })(r, 312977);
10
+ function e(e, t) {
24
11
  return { current: {
25
12
  getBoundingClientRect: () => new DOMRect(e, t, 0, 0),
26
13
  contains: () => !1
27
14
  } };
28
15
  }
16
+ function t(e, n) {
17
+ e -= 337;
18
+ var i = r(), a = i[e];
19
+ t.uQlvuB === void 0 && (t.tedARc = function(e) {
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);
21
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
22
+ return decodeURIComponent(r);
23
+ }, t.DccwfF = {}, t.uQlvuB = !0);
24
+ var o = i[0];
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;
28
+ }
29
29
  function n(e) {
30
30
  return { current: e };
31
31
  }
32
32
  function r() {
33
33
  var e = [
34
- "mti0y3Hitfnw",
35
- "nJmZme9QvLDlva",
36
- "nZGWnJaWEuHXquvu",
37
- "mJe4mte2oeXRtxbnyq",
38
- "mtq4otm1vufMs0r4",
39
- "mtyXmtzdt1v6D2K",
40
- "ndq1mZCWwLbczurA",
41
- "mtq5mJyXn0DHuLDsCa",
42
- "ndy1vLfwz2rR"
34
+ "mJi2otqWmgzPBwLeBa",
35
+ "mtrcC0P6EM8",
36
+ "nZCZotCWC1D0De5g",
37
+ "mtq4mJuZnhLsuuvMBG",
38
+ "mJqYmZm2ogHrshDfuW",
39
+ "oxzHCg9rEq",
40
+ "mtG3otCWnhniCKzUCW",
41
+ "ntvJDxnZAfe",
42
+ "ndaXnNvryNv3uq",
43
+ "mJqZmde1nNbsALnHBW"
43
44
  ];
44
45
  return r = function() {
45
46
  return e;
46
47
  }, r();
47
48
  }
48
- export { n as elementAnchor, t as pointAnchor };
49
+ export { n as elementAnchor, e as pointAnchor };