@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,14 +1,14 @@
1
1
  "use client";
2
- const e = D;
2
+ const e = A;
3
3
  (function(e, t) {
4
- let n = D, r = e();
4
+ let n = A, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(288)) / 1 + -parseInt(n(347)) / 2 + parseInt(n(312)) / 3 * (-parseInt(n(374)) / 4) + parseInt(n(367)) / 5 + -parseInt(n(319)) / 6 * (-parseInt(n(296)) / 7) + -parseInt(n(322)) / 8 * (-parseInt(n(310)) / 9) + -parseInt(n(323)) / 10 * (-parseInt(n(361)) / 11) == t) break;
6
+ if (parseInt(n(353)) / 1 + -parseInt(n(382)) / 2 * (-parseInt(n(293)) / 3) + parseInt(n(304)) / 4 + parseInt(n(332)) / 5 + -parseInt(n(317)) / 6 * (parseInt(n(340)) / 7) + -parseInt(n(299)) / 8 * (-parseInt(n(285)) / 9) + -parseInt(n(294)) / 10 * (parseInt(n(282)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(E, 264201);
11
+ })(M, 457787);
12
12
  import { Kbd as t } from "../../primitives/Kbd2.js";
13
13
  import { Tooltip as n } from "../../primitives/Tooltip2.js";
14
14
  import { Separator as r } from "../../primitives/Layout2.js";
@@ -19,184 +19,178 @@ import { DropdownMenu as s, DropdownMenuCheckboxItem as c, DropdownMenuItem as l
19
19
  import { createContext as d, forwardRef as f, useCallback as p, useContext as m, useEffect as h, useId as g, useImperativeHandle as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
20
20
  import { MoreHorizontal as S } from "lucide-react";
21
21
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
22
- function E() {
23
- let e = /* @__PURE__ */ "ndvmyMrAyK4.DgfYz2v0.z2v0qM91BMrPBMDdBgLLBNrszwn0.zgvMyxvSDfbYzxzLBNrLza.C3r5Bgu.zM9JDxm.qNv0Dg9U.nM12uLLcEG.qxjYB3DvCa.C3bSAxq.mJu5mJHkCvbcs2i.mtbzAM1ID0u.zhmTDg9VBgjHCL9FC3bHy2vY.CgfKzgLUz0XLzNq.x19TB3jL.ywX0s2v5.w3jVBgu9iNrVB2XIyxiIxq.AwnVBG.B2jZzxj2zq.C2L6zq.CgfYzw50rwXLBwvUDa.zgf0yxnLDa.CMvNAxn0zxi.Bwv0yuTLEq.B3jPzw50yxrPB24.zgf0ys10B29SyMfYlxnLCa.Dw5ZAgLMDa.zhmTDg9VBgjHCG.BgvUz3rO.Dg9VBgjHCG.zgLZywjSzwq.C2vWyxjHDg9Y.C2XPy2u.AgLKzgvU.CxvLCNLtzwXLy3rVCG.ota3ntmYze1SwhLt.BMf0AxzLrxzLBNq.CMLNAhq.uhjVDMLKzxi.Dg9VBgjHCKLK.C2v0.y2XVC2vZDa.B2zM.B3zLCMzSB3C.y2HPBgrYzw4.zhmTDg9VBgjHCI0T.BM9Uzq.BwfW.y29SDw1Ur2fW.mJe3nZy4mwTTB1flEG.y29UDgfPBNm.zw50CNK.w2rHDgeTDg9VBgjHCI1Pzf0.u3bHy2vY.ChjLC3nLza.ntuWtxPYt2Tm.Dg9W.C2HVCNrJDxq.zhmTDg9VBgjHCI0TDMvYDgLJywW.AM9PBG.AgfZ.y3vYCMvUDa.mZy1odHwv0TVrKe.CgXHAw4.DgfIsw5KzxG.DMvYDgLJywW.642u67o06RIW.zMLSDgvY.ChjLDMvUDerLzMf1Bhq.C3bHBG.BgfIzwW.qxjYB3Dmzwz0.C2vW.Ag9YAxPVBNrHBa.B2zMC2v0sgvPz2H0.zhmTDg9VBgjHCL9FBw9Yzq.z2v0.ndyXotC3C21RBKnv.oNnJB3bLid4Gw2rHDgeTDg9VBgjHCI1Pzf0.y2XPy2S.D2LKDgG.zhmTDg9VBgjHCL9FC2vW.sg9Tzq.qxjYB3DeB3DU.zgL2.ndGXmda1r2fZuMHU.zhmTDg9VBgjHCI0TB3zLCMzSB3C.CxvLCNLtzwXLy3rVCKfSBa.zgvSzxrL.CgfKzgLUz1jPz2H0.Aw5JBhvKzxm.Dw5YzwDPC3rLCG.z2HVC3q.zgLZy29UBMvJDa.Bwf0y2HLCW.A2v5.y2XPzw50v2LKDgG.u2vWyxjHDg9Y.z2v0q2XPzw50uMvJDhm.mZuXwhfTrePS.w2rHDgeTDg9VBgjHCI1ZCgfJzxjD".split(".");
24
- return E = function() {
25
- return e;
26
- }, E();
27
- }
28
- function D(e, t) {
29
- e -= 282;
30
- let n = E(), r = n[e];
31
- D.zBQxfG === void 0 && (D.Vkudqa = function(e) {
32
- let t = "", n = "";
33
- 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);
34
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
35
- return decodeURIComponent(n);
36
- }, D.uTRrVj = {}, D.zBQxfG = !0);
37
- let i = n[0];
38
- D.KUqnXF !== i && (D.uTRrVj = {}, D.KUqnXF = i);
39
- let a = D.uTRrVj[e];
40
- return a === void 0 ? (r = D.Vkudqa(r), D.uTRrVj[e] = r) : r = a, r;
41
- }
42
- var O = d(null), k = "button, input, select, textarea, a[href], [data-toolbar-item]", A = "input:not([type=button]):not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=\"true\"]";
43
- function j({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = "horizontal", variant: a = e(375), size: d = "md", loop: f = !0, overflow: m = !1, overflowLabel: h = e(378), className: g, style: _ }) {
44
- let C = e, E = b(null), D = b(null), j = m && i === C(284), N = p(() => {
45
- let e = C, t = E.current;
46
- return t ? [...t[e(298)](k)].filter((n) => !n[e(342)] && n[e(309)]()[e(340)] > 0 && n[e(353)](e(328)) === t && !n[e(332)]?.closest(k)) : [];
22
+ var E = d(null), D = "button, input, select, textarea, a[href], [data-toolbar-item]", O = e(311);
23
+ function k({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = "horizontal", variant: a = e(318), size: d = "md", loop: f = !0, overflow: m = !1, overflowLabel: h = e(336), className: g, style: _ }) {
24
+ let C = e, k = b(null), A = b(null), M = m && i === C(284), N = p(() => {
25
+ let e = C, t = k[e(296)];
26
+ return t ? [...t.querySelectorAll(D)][e(333)]((n) => !n[e(328)] && n.getClientRects()[e(280)] > 0 && n[e(359)]("[role=\"toolbar\"]") === t && !n[e(374)]?.[e(359)](D)) : [];
47
27
  }, []), P = p(() => {
48
28
  let e = C, t = N();
49
- D[e(373)] && t[e(301)](D.current) || (D[e(373)] = t[0] ?? null);
50
- for (let t of E[e(373)]?.[e(298)](k) ?? []) t[e(353)]("[role=\"toolbar\"]") === E[e(373)] && (t[e(376)] = t === D[e(373)] ? 0 : -1);
29
+ A[e(296)] && t[e(380)](A[e(296)]) || (A[e(296)] = t[0] ?? null);
30
+ for (let t of k.current?.[e(286)](D) ?? []) t.closest(e(341)) === k.current && (t[e(330)] = t === A[e(296)] ? 0 : -1);
51
31
  }, [N]);
52
32
  v(() => {
53
33
  let e = C;
54
34
  P();
55
- let t = E[e(373)];
35
+ let t = k[e(296)];
56
36
  if (!t) return;
57
37
  let n = new MutationObserver(P);
58
- return n[e(330)](t, {
38
+ return n[e(379)](t, {
59
39
  childList: !0,
60
40
  subtree: !0,
61
41
  attributes: !0,
62
- attributeFilter: [e(342), e(316)]
63
- }), () => n[e(304)]();
42
+ attributeFilter: ["disabled", e(325)]
43
+ }), () => n[e(360)]();
64
44
  }, [P]);
65
45
  let F = (e) => {
66
- let t = C, n = e[t(313)];
67
- E[t(373)]?.[t(362)](n) && N()[t(301)](n) && D[t(373)] !== n && (D[t(373)] = n, P());
46
+ let t = C, n = e[t(283)];
47
+ k.current?.[t(370)](n) && N()[t(380)](n) && A.current !== n && (A[t(296)] = n, P());
68
48
  }, I = (e) => {
69
- let t = C, n = e[t(313)];
70
- if (e[t(315)] || !E.current?.[t(362)](n) || n.matches(A) || e[t(327)] || e.ctrlKey || e[t(335)] || e[t(348)].isComposing) return;
71
- let r = i === t(284) ? t(282) : t(320), a = i === t(284) ? "ArrowRight" : t(294), o = N(), s = o.findIndex((e) => e === n || e[t(362)](n));
49
+ let t = C, n = e[t(283)];
50
+ if (e[t(344)] || !k[t(296)]?.[t(370)](n) || n.matches(O) || e[t(297)] || e.ctrlKey || e[t(303)] || e[t(281)][t(316)]) return;
51
+ let r = i === t(284) ? t(288) : t(343), a = i === "horizontal" ? "ArrowRight" : t(347), o = N(), s = o[t(314)]((e) => e === n || e[t(370)](n));
72
52
  if (s < 0) return;
73
53
  let c;
74
- if (e[t(306)] === a) c = s + 1 < o[t(340)] ? o[s + 1] : f ? o[0] : void 0;
75
- else if (e[t(306)] === r) c = s > 0 ? o[s - 1] : f ? o[o[t(340)] - 1] : void 0;
76
- else if (e[t(306)] === t(293)) c = o[0];
77
- else if (e[t(306)] === "End") c = o[o[t(340)] - 1];
54
+ if (e[t(324)] === a) c = s + 1 < o[t(280)] ? o[s + 1] : f ? o[0] : void 0;
55
+ else if (e[t(324)] === r) c = s > 0 ? o[s - 1] : f ? o[o[t(280)] - 1] : void 0;
56
+ else if (e[t(324)] === "Home") c = o[0];
57
+ else if (e[t(324)] === "End") c = o[o.length - 1];
78
58
  else return;
79
- e[t(380)](), c?.[t(317)]();
80
- }, [L, R] = x(() => /* @__PURE__ */ new Map()), [z, B] = x([]), V = y(() => new Set(z), [z]), H = b(/* @__PURE__ */ new Map()), U = b(null), W = p((e, t) => R((n) => new Map(n)[C(352)](e, t)), []), G = p((e) => R((t) => {
59
+ e[t(313)](), c?.[t(309)]();
60
+ }, [L, R] = x(() => /* @__PURE__ */ new Map()), [z, B] = x([]), V = y(() => new Set(z), [z]), H = b(/* @__PURE__ */ new Map()), U = b(null), W = p((e, t) => R((n) => new Map(n).set(e, t)), []), G = p((e) => R((t) => {
81
61
  let n = C, r = new Map(t);
82
- return r[n(299)](e), r;
62
+ return r[n(357)](e), r;
83
63
  }), []);
84
64
  v(() => {
85
- let e = C, t = E[e(373)];
86
- if (!j || !t) {
87
- B((e) => e.length ? [] : e);
65
+ let e = C, t = k[e(296)];
66
+ if (!M || !t) {
67
+ B((t) => t[e(280)] ? [] : t);
88
68
  return;
89
69
  }
90
70
  let n = () => {
91
- let n = e, r = U[n(373)], i = getComputedStyle(t), a = parseFloat(i[n(360)]) || 0, o = t[n(307)] - parseFloat(i[n(325)]) - parseFloat(i[n(300)]);
92
- r && r[n(309)]()[n(340)] && H[n(373)].set(n(326), r.getBoundingClientRect().width);
93
- let s = H[n(373)][n(287)](n(326)) ?? t.querySelector(".ds-btn")?.[n(285)] ?? 34, c = [...t[n(356)]][n(379)]((e) => e !== r)[n(359)]((e) => {
94
- let t = n, r = e[t(305)](t(364)) ? e : e[t(346)](t(289)), i = r?.[t(333)][t(351)], a = e[t(309)]()[t(340)] > 0;
95
- i && a && H[t(373)][t(352)](i, e[t(314)]()[t(291)]);
96
- let o = e[t(305)](t(311)) ? 0 : i ? H[t(373)][t(287)](i) ?? 0 : a ? e[t(314)]()[t(291)] : 0;
71
+ let n = e, r = U[n(296)], i = getComputedStyle(t), a = parseFloat(i[n(345)]) || 0, o = t[n(338)] - parseFloat(i[n(381)]) - parseFloat(i[n(289)]);
72
+ r && r[n(308)]()[n(280)] && H[n(296)][n(322)](n(319), r[n(321)]().width);
73
+ let s = H.current[n(358)]("__more") ?? t[n(342)](".ds-btn")?.[n(329)] ?? 34, c = [...t[n(301)]].filter((e) => e !== r)[n(327)]((e) => {
74
+ let t = n, r = e.matches(t(320)) ? e : e[t(342)](t(367)), i = r?.[t(349)][t(291)], a = e[t(308)]()[t(280)] > 0;
75
+ i && a && H[t(296)][t(322)](i, e[t(321)]()[t(306)]);
76
+ let o = e[t(326)]("[data-toolbar-spacer]") ? 0 : i ? H[t(296)][t(358)](i) ?? 0 : a ? e[t(321)]()[t(306)] : 0;
97
77
  return {
98
78
  id: i,
99
- sep: r?.hasAttribute(t(337)) ?? !1,
79
+ sep: r?.[t(300)]("data-toolbar-sep") ?? !1,
100
80
  w: o
101
81
  };
102
- }), l = (e) => e.reduce((e, t) => e + t.w, 0) + a * Math.max(e[n(340)] - 1, 0), u = c, d = [];
82
+ }), l = (e) => e[n(364)]((e, t) => e + t.w, 0) + a * Math[n(307)](e[n(280)] - 1, 0), u = c, d = [];
103
83
  if (l(c) > o + .5) {
104
- for (let e = c[n(340)] - 1; e >= 0 && l(u) + a + s > o + .5; e--) {
84
+ for (let e = c[n(280)] - 1; e >= 0 && l(u) + a + s > o + .5; e--) {
105
85
  let t = c[e].id;
106
- t && (d[n(338)](t), u = u[n(379)]((t) => t !== c[e]));
86
+ t && (d[n(335)](t), u = u[n(333)]((t) => t !== c[e]));
107
87
  }
108
- for (; u[n(340)] && u[u[n(340)] - 1][n(283)];) {
88
+ for (; u[n(280)] && u[u.length - 1][n(346)];) {
109
89
  let e = u[u.length - 1];
110
- d[n(338)](e.id), u = u[n(344)](0, -1);
90
+ d[n(335)](e.id), u = u[n(361)](0, -1);
111
91
  }
112
92
  }
113
- let f = d.join("|");
114
- B((e) => e[n(371)]("|") === f ? e : d);
93
+ let f = d[n(290)]("|");
94
+ B((e) => e[n(290)]("|") === f ? e : d);
115
95
  };
116
96
  n();
117
97
  let r = new ResizeObserver(n);
118
- r[e(330)](t);
98
+ r[e(379)](t);
119
99
  let i = new MutationObserver(n);
120
- return i[e(330)](t, { childList: !0 }), () => {
100
+ return i.observe(t, { childList: !0 }), () => {
121
101
  let t = e;
122
- r.disconnect(), i[t(304)]();
102
+ r[t(360)](), i[t(360)]();
123
103
  };
124
- }, [j, L]);
125
- let K = z[C(359)]((e) => ({
104
+ }, [M, L]);
105
+ let K = z.map((e) => ({
126
106
  id: e,
127
- entry: L[C(287)](e)
128
- })).filter((e) => !!e[C(363)])[C(379)]((e, t, n) => !e[C(363)].separator || t > 0 && t < n[C(340)] - 1 && !n[t - 1][C(363)][C(343)]), q = y(() => ({
107
+ entry: L.get(e)
108
+ })).filter((e) => !!e.entry).filter((e, t, n) => !e[C(356)][C(373)] || t > 0 && t < n[C(280)] - 1 && !n[t - 1][C(356)][C(373)]), q = y(() => ({
129
109
  size: d,
130
110
  orientation: i,
131
- overflow: j,
111
+ overflow: M,
132
112
  hidden: V,
133
113
  register: W,
134
114
  unregister: G
135
115
  }), [
136
116
  d,
137
117
  i,
138
- j,
118
+ M,
139
119
  V,
140
120
  W,
141
121
  G
142
122
  ]);
143
- return w(O[C(350)], {
123
+ return w(E[C(372)], {
144
124
  value: q,
145
- children: T(C(295), {
146
- ref: E,
147
- role: C(341),
125
+ children: T(C(305), {
126
+ ref: k,
127
+ role: "toolbar",
148
128
  "aria-label": n,
149
129
  "aria-labelledby": r,
150
130
  "aria-orientation": i,
151
- className: o(C(339), C(357) + a, C(357) + d, i === "vertical" && C(370), j && C(297), g),
131
+ className: o(C(369), "ds-toolbar--" + a, C(292) + d, i === C(365) && C(352), M && C(376), g),
152
132
  style: _,
153
133
  onFocus: F,
154
134
  onKeyDown: I,
155
- children: [t, j && w(C(381), {
135
+ children: [t, M && w(C(334), {
156
136
  ref: U,
157
- className: C(286),
158
- style: K.length ? void 0 : { display: "none" },
137
+ className: C(362),
138
+ style: K[C(280)] ? void 0 : { display: C(366) },
159
139
  children: w(s, {
160
- align: "end",
140
+ align: C(310),
161
141
  "aria-label": h,
162
- trigger: w(M, {
142
+ trigger: w(j, {
163
143
  label: h,
164
144
  icon: w(S, {}),
165
145
  collapsible: !1
166
146
  }),
167
- children: K[C(359)](({ id: e, entry: t }) => t.separator ? w(u, {}, e) : t[C(366)] === void 0 ? w(l, {
168
- icon: t[C(329)],
169
- shortcut: t[C(369)],
170
- disabled: t[C(342)],
171
- onSelect: () => t[C(290)]?.(),
172
- children: t[C(382)]
147
+ children: K[C(327)](({ id: e, entry: t }) => t[C(373)] ? w(u, {}, e) : t[C(363)] === void 0 ? w(l, {
148
+ icon: t[C(375)],
149
+ shortcut: t[C(350)],
150
+ disabled: t[C(328)],
151
+ onSelect: () => t.click?.(),
152
+ children: t.label
173
153
  }, e) : w(c, {
174
- icon: t[C(329)],
175
- shortcut: t[C(369)],
176
- disabled: t.disabled,
177
- checked: t[C(366)],
154
+ icon: t.icon,
155
+ shortcut: t[C(350)],
156
+ disabled: t[C(328)],
157
+ checked: t.pressed,
178
158
  closeOnSelect: !0,
179
- onCheckedChange: () => t[C(290)]?.(),
180
- children: t[C(382)]
159
+ onCheckedChange: () => t[C(348)]?.(),
160
+ children: t[C(312)]
181
161
  }, e))
182
162
  })
183
163
  })]
184
164
  })
185
165
  });
186
166
  }
187
- var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed: l, onPressedChange: u, shortcut: d, tooltip: f, tooltipSide: p, collapsible: y = !0, icon: x, children: S, className: E, disabled: D, onClick: k, style: A, ...j }, M) {
188
- let N = e, P = m(O), F = b(null);
189
- _(M, () => F[N(373)]);
190
- let I = c !== void 0 || l !== void 0, [L, R] = i(c, l ?? !1, u), z = !!x && S == null, B = g(), V = !!P?.[N(355)] && y, H = V && P[N(345)][N(372)](B), U = d?.join("\n"), W = P?.[N(334)], G = P?.unregister;
167
+ function A(e, t) {
168
+ e -= 280;
169
+ let n = M(), r = n[e];
170
+ A.uNnBaQ === void 0 && (A.QwzVfC = function(e) {
171
+ let t = "", n = "";
172
+ 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);
173
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
174
+ return decodeURIComponent(n);
175
+ }, A.JpEguq = {}, A.uNnBaQ = !0);
176
+ let i = n[0];
177
+ A.TIIZvd !== i && (A.JpEguq = {}, A.TIIZvd = i);
178
+ let a = A.JpEguq[e];
179
+ return a === void 0 ? (r = A.QwzVfC(r), A.JpEguq[e] = r) : r = a, r;
180
+ }
181
+ var j = f(function({ label: r, variant: s = e(315), pressed: c, defaultPressed: l, onPressedChange: u, shortcut: d, tooltip: f, tooltipSide: p, collapsible: y = !0, icon: x, children: S, className: D, disabled: O, onClick: k, style: A, ...j }, M) {
182
+ let N = e, P = m(E), F = b(null);
183
+ _(M, () => F.current);
184
+ let I = c !== void 0 || l !== void 0, [L, R] = i(c, l ?? !1, u), z = !!x && S == null, B = g(), V = !!P?.[N(377)] && y, H = V && P[N(331)].has(B), U = d?.[N(290)]("\n"), W = P?.[N(298)], G = P?.[N(295)];
191
185
  v(() => {
192
186
  let e = N;
193
187
  V && W && W(B, {
194
188
  label: r,
195
189
  icon: x,
196
- shortcut: U?.[e(321)]("\n"),
190
+ shortcut: U?.split("\n"),
197
191
  pressed: I ? L : void 0,
198
- disabled: D,
199
- click: () => F[e(373)]?.[e(290)]()
192
+ disabled: O,
193
+ click: () => F[e(296)]?.[e(348)]()
200
194
  });
201
195
  }, [
202
196
  V,
@@ -207,7 +201,7 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
207
201
  U,
208
202
  I,
209
203
  L,
210
- D
204
+ O
211
205
  ]), h(() => V && G ? () => G(B) : void 0, [
212
206
  V,
213
207
  G,
@@ -216,23 +210,22 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
216
210
  let K = w(a, {
217
211
  ref: F,
218
212
  variant: s,
219
- size: P?.[N(331)] ?? "md",
213
+ size: P?.[N(368)] ?? "md",
220
214
  icon: x,
221
215
  iconOnly: z,
222
216
  shortcut: d,
223
217
  "aria-label": z ? r : void 0,
224
218
  "aria-pressed": I ? L : void 0,
225
- "data-state": I ? L ? "on" : N(354) : void 0,
219
+ "data-state": I ? L ? "on" : N(378) : void 0,
226
220
  "data-toolbar-id": V ? B : void 0,
227
- disabled: D,
228
- className: o("ds-toolbar__btn", E),
221
+ disabled: O,
222
+ className: o(N(287), D),
229
223
  style: H ? {
230
224
  ...A,
231
- display: "none"
225
+ display: N(366)
232
226
  } : A,
233
227
  onClick: (e) => {
234
- let t = N;
235
- k?.(e), I && !e[t(315)] && R(!L);
228
+ k?.(e), I && !e.defaultPrevented && R(!L);
236
229
  },
237
230
  ...j,
238
231
  children: S
@@ -242,12 +235,18 @@ var M = f(function({ label: r, variant: s = e(303), pressed: c, defaultPressed:
242
235
  keys: d,
243
236
  size: "sm"
244
237
  })] }),
245
- side: p ?? (P?.[N(336)] === N(377) ? N(349) : N(368)),
238
+ side: p ?? (P?.orientation === N(365) ? N(339) : N(337)),
246
239
  children: K
247
240
  });
248
241
  });
242
+ function M() {
243
+ let e = /* @__PURE__ */ "B2jZzxj2zq.Aw5JBhvKzxm.CgfKzgLUz0XLzNq.nNvQBxvvBq.BgvUz3rO.BMf0AxzLrxzLBNq.mteWEg9ht3bn.DgfYz2v0.Ag9YAxPVBNrHBa.mJDuAKDdC1G.CxvLCNLtzwXLy3rVCKfSBa.zhmTDg9VBgjHCL9FyNrU.qxjYB3Dmzwz0.CgfKzgLUz1jPz2H0.AM9PBG.Dg9VBgjHCKLK.zhmTDg9VBgjHCI0T.nZa5ntyZBfLnDfDv.mJC0mda3mfjqzMXNAa.Dw5YzwDPC3rLCG.y3vYCMvUDa.ywX0s2v5.CMvNAxn0zxi.mJm3nde2ogXps21cAq.AgfZqxr0CMLIDxrL.y2HPBgrYzw4.qNv0Dg9U.Bwv0yuTLEq.mZq4ntq1nMfLv3fdDG.zgL2.D2LKDgG.Bwf4.z2v0q2XPzw50uMvJDhm.zM9JDxm.zw5K.Aw5WDxq6BM90kfT0ExbLpwj1DhrVBL0PoM5VDcHBDhLWzt1JAgvJA2jVEf0PoM5VDcHBDhLWzt1YywrPB10Plcb0zxH0yxjLysWGC2vSzwn0lcbBy29UDgvUDgvKAxrHyMXLpsj0CNvLiL0.BgfIzwW.ChjLDMvUDerLzMf1Bhq.zMLUzeLUzgv4.z2HVC3q.AxndB21WB3nPBMC.mZC4mZCZmKTqwxr3AG.CgXHAw4.x19TB3jL.w2rHDgeTDg9VBgjHCI1Pzf0.z2v0qM91BMrPBMDdBgLLBNrszwn0.C2v0.zhmTDg9VBgjHCL9FC3bHy2vY.A2v5.C3r5Bgu.Bwf0y2HLCW.BwfW.zgLZywjSzwq.B2zMC2v0sgvPz2H0.DgfIsw5KzxG.AgLKzgvU.mJGWmdaXmeLus2X4sq.zMLSDgvY.C3bHBG.Dw5ZAgLMDa.642u67o06RIW.Dg9W.y2XPzw50v2LKDgG.CMLNAhq.n013rwfWBa.w3jVBgu9iNrVB2XIyxiIxq.CxvLCNLtzwXLy3rVCG.qxjYB3DvCa.zgvMyxvSDfbYzxzLBNrLza.y29SDw1Ur2fW.C2vW.qxjYB3DeB3DU.y2XPy2S.zgf0yxnLDa.C2HVCNrJDxq.zhmTDg9VBgjHCL9FC2vW.zhmTDg9VBgjHCI0TDMvYDgLJywW.nZK3mJm3DMLzENPL.AgfZ.u2vWyxjHDg9Y.zw50CNK.zgvSzxrL.z2v0.y2XVC2vZDa.zgLZy29UBMvJDa.C2XPy2u.zhmTDg9VBgjHCL9FBw9Yzq.ChjLC3nLza.CMvKDwnL.DMvYDgLJywW.BM9Uzq.oNnJB3bLid4Gw2rHDgeTDg9VBgjHCI1Pzf0.C2L6zq.zhmTDg9VBgjHCG.y29UDgfPBNm.u3bHy2vY.uhjVDMLKzxi.C2vWyxjHDg9Y.CgfYzw50rwXLBwvUDa.AwnVBG.zhmTDg9VBgjHCI0TB3zLCMzSB3C.B3zLCMzSB3C.B2zM".split(".");
244
+ return M = function() {
245
+ return e;
246
+ }, M();
247
+ }
249
248
  function N() {
250
- let t = e, n = m(O), i = g(), a = !!n?.overflow, o = n?.[t(334)], s = n?.[t(302)];
249
+ let t = e, n = m(E), i = g(), a = !!n?.[t(377)], o = n?.[t(298)], s = n?.[t(295)];
251
250
  v(() => {
252
251
  a && o && o(i, { separator: !0 });
253
252
  }, [
@@ -259,25 +258,25 @@ function N() {
259
258
  s,
260
259
  i
261
260
  ]);
262
- let c = a && n.hidden.has(i);
263
- return w(t(381), {
264
- className: t(292),
261
+ let c = a && n[t(331)][t(354)](i);
262
+ return w(t(334), {
263
+ className: t(351),
265
264
  "data-toolbar-id": a ? i : void 0,
266
265
  "data-toolbar-sep": "",
267
- style: c ? { display: t(358) } : void 0,
266
+ style: c ? { display: t(366) } : void 0,
268
267
  children: w(r, {
269
- orientation: n?.[t(336)] === "vertical" ? t(284) : t(377),
268
+ orientation: n?.orientation === t(365) ? t(284) : "vertical",
270
269
  decorative: !1
271
270
  })
272
271
  });
273
272
  }
274
273
  function P() {
275
274
  let t = e;
276
- return w(t(381), {
277
- className: t(324),
275
+ return w(t(334), {
276
+ className: t(323),
278
277
  "data-toolbar-spacer": "",
279
278
  "aria-hidden": !0
280
279
  });
281
280
  }
282
- j[e(318)] = M, j[e(308)] = N, j[e(365)] = P;
283
- export { j as Toolbar, M as ToolbarButton, N as ToolbarSeparator, P as ToolbarSpacer };
281
+ k[e(302)] = j, k[e(355)] = N, k[e(371)] = P;
282
+ export { k as Toolbar, j as ToolbarButton, N as ToolbarSeparator, P as ToolbarSpacer };