@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,281 +1,282 @@
1
1
  "use client";
2
- const e = n;
3
- function t() {
4
- let e = /* @__PURE__ */ "zhmTDg9VBgjHCL9FC3bHy2vY.C2L6zq.z2v0q2XPzw50uMvJDhm.mJGXndCXmdbZwLPfqMe.sg9Tzq.zgLZywjSzwq.AM9PBG.zMLUzeLUzgv4.mJq3odDZwKnJyMi.zMLSDgvY.y3vYCMvUDa.ywX0s2v5.C2v0.zhmTDg9VBgjHCL9FyNrU.DgfYz2v0.AxndB21WB3nPBMC.CgfKzgLUz1jPz2H0.AwnVBG.B2zM.Bwv0yuTLEq.CxvLCNLtzwXLy3rVCKfSBa.AgfZqxr0CMLIDxrL.Bwf0y2HLCW.y2XPy2S.CgfKzgLUz0XLzNq.zhmTDg9VBgjHCL9FBw9Yzq.mti2odC4y2H4z1rU.BM9Uzq.y29UDgfPBNm.zgLZy29UBMvJDa.mJzTuK5cDg4.Dg9VBgjHCG.qxjYB3DeB3DU.ChjLDMvUDerLzMf1Bhq.CMLNAhq.Dg9VBgjHCKLK.CMvKDwnL.qNv0Dg9U.C2vW.Aw5JBhvKzxm.zgf0ys10B29SyMfYlxnLCa.A2v5.y2HPBgrYzw4.AgLKzgvU.qxjYB3DsAwDODa.Dw5ZAgLMDa.u3bHy2vY.BgfIzwW.C2HVCNrJDxq.nte5mtK3nfHOAK9wtq.yNv0Dg9UlcbPBNb1DcWGC2vSzwn0lcb0zxH0yxjLysWGyvTOCMvMxsWGw2rHDgeTDg9VBgjHCI1PDgvTxq.CgfYzw50rwXLBwvUDa.z2HVC3q.B3zLCMzSB3C.qxjYB3Dmzwz0.Aw5WDxq6BM90kfT0ExbLpwj1DhrVBL0PoM5VDcHBDhLWzt1JAgvJA2jVEf0PoM5VDcHBDhLWzt1YywrPB10Plcb0zxH0yxjLysWGC2vSzwn0lcbBy29UDgvUDgvKAxrHyMXLpsj0CNvLiL0.D2LKDgG.Dw5YzwDPC3rLCG.nde2mdi3n2jADKrUyW.BwfW.B2jZzxj2zq.CxvLCNLtzwXLy3rVCG.zgL2.AgfZ.DgfIsw5KzxG.zhmTDg9VBgjHCI0T.x19TB3jL.BgvUz3rO.zhmTDg9VBgjHCG.DMvYDgLJywW.mta2nJu0odzurfLIwe8.C2vWyxjHDg9Y.BMf0AxzLrxzLBNq.B2zMC2v0sgvPz2H0.C3r5Bgu.ChjLC3nLza.Ag9YAxPVBNrHBa.zw50CNK.z2v0.zhmTDg9VBgjHCI0TDMvYDgLJywW.ndvuA0PovLu.zgf0yxnLDa.w2rHDgeTDg9VBgjHCI1Pzf0.C3bHBG.w3jVBgu9iNrVB2XIyxiIxq.mZC1nJKYq2fOz1bA.mJuWnfHjsLfSAG.CMvNAxn0zxi".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
9
- function n(e, r) {
10
- e -= 144;
11
- let i = t(), a = i[e];
12
- n.kEyECX === void 0 && (n.btabFN = function(e) {
13
- let t = "", n = "";
14
- 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);
15
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
16
- return decodeURIComponent(n);
17
- }, n.hSXnYo = {}, n.kEyECX = !0);
18
- let o = i[0];
19
- n.mcHlkV !== o && (n.hSXnYo = {}, n.mcHlkV = o);
20
- let s = n.hSXnYo[e];
21
- return s === void 0 ? (a = n.btabFN(a), n.hSXnYo[e] = a) : a = s, a;
22
- }
2
+ const e = A;
23
3
  (function(e, t) {
24
- let r = n, i = e();
4
+ let n = A, r = e();
25
5
  for (;;) try {
26
- if (parseInt(r(175)) / 1 * (parseInt(r(179)) / 2) + parseInt(r(207)) / 3 + parseInt(r(146)) / 4 * (parseInt(r(229)) / 5) + -parseInt(r(219)) / 6 + -parseInt(r(157)) / 7 * (-parseInt(r(147)) / 8) + parseInt(r(198)) / 9 + -parseInt(r(152)) / 10 == t) break;
27
- i.push(i.shift());
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
+ r.push(r.shift());
28
8
  } catch {
29
- i.push(i.shift());
9
+ r.push(r.shift());
30
10
  }
31
- })(t, 974408);
32
- import { Kbd as r } from "../../primitives/Kbd2.js";
33
- import { Tooltip as i } from "../../primitives/Tooltip2.js";
34
- import { Separator as a } from "../../primitives/Layout2.js";
35
- import { useControllableState as o } from "../../hooks/useControllableState.js";
36
- import { Button as s, cx as c } from "../../primitives/index.js";
37
- import { DropdownMenu as l, DropdownMenuCheckboxItem as u, DropdownMenuItem as d, DropdownMenuSeparator as f } from "../DropdownMenu/DropdownMenu2.js";
11
+ })(M, 457787);
12
+ import { Kbd as t } from "../../primitives/Kbd2.js";
13
+ import { Tooltip as n } from "../../primitives/Tooltip2.js";
14
+ import { Separator as r } from "../../primitives/Layout2.js";
15
+ import { useControllableState as i } from "../../hooks/useControllableState.js";
16
+ import { Button as a, cx as o } from "../../primitives/index.js";
17
+ import { DropdownMenu as s, DropdownMenuCheckboxItem as c, DropdownMenuItem as l, DropdownMenuSeparator as u } from "../DropdownMenu/DropdownMenu2.js";
38
18
  /* empty css */
39
- import { createContext as p, forwardRef as m, useCallback as h, useContext as g, useEffect as _, useId as v, useImperativeHandle as y, useLayoutEffect as b, useMemo as x, useRef as S, useState as C } from "react";
40
- import { MoreHorizontal as w } from "lucide-react";
41
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
42
- var O = p(null), k = e(199), A = e(204);
43
- function j({ children: t, "aria-label": n, "aria-labelledby": r, orientation: i = e(225), variant: a = "plain", size: o = "md", loop: s = !0, overflow: p = !1, overflowLabel: m = "더보기", className: g, style: _ }) {
44
- let v = e, y = S(null), T = S(null), j = p && i === v(225), N = h(() => {
45
- let e = v, t = y[e(159)];
46
- return t ? [...t[e(169)](k)].filter((n) => !n[e(154)] && n[e(151)]().length > 0 && n.closest(e(145)) === t && !n[e(200)]?.closest(k)) : [];
47
- }, []), P = h(() => {
48
- let e = v, t = N();
49
- T[e(159)] && t[e(188)](T[e(159)]) || (T[e(159)] = t[0] ?? null);
50
- for (let t of y.current?.querySelectorAll(k) ?? []) t.closest(e(145)) === y.current && (t[e(213)] = t === T[e(159)] ? 0 : -1);
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
+ import { MoreHorizontal as S } from "lucide-react";
21
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
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)) : [];
27
+ }, []), P = p(() => {
28
+ let e = C, t = N();
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
- b(() => {
53
- let e = v;
32
+ v(() => {
33
+ let e = C;
54
34
  P();
55
- let t = y[e(159)];
35
+ let t = k[e(296)];
56
36
  if (!t) return;
57
37
  let n = new MutationObserver(P);
58
- return n[e(209)](t, {
38
+ return n[e(379)](t, {
59
39
  childList: !0,
60
40
  subtree: !0,
61
41
  attributes: !0,
62
- attributeFilter: ["disabled", e(223)]
63
- }), () => n[e(178)]();
42
+ attributeFilter: ["disabled", e(325)]
43
+ }), () => n[e(360)]();
64
44
  }, [P]);
65
45
  let F = (e) => {
66
- let t = v, n = e[t(163)];
67
- y[t(159)]?.contains(n) && N()[t(188)](n) && T.current !== n && (T[t(159)] = 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 = v, n = e[t(163)];
70
- if (e.defaultPrevented || !y[t(159)]?.[t(177)](n) || n[t(171)](A) || e[t(160)] || e.ctrlKey || e[t(168)] || e[t(221)][t(164)]) return;
71
- let r = i === t(225) ? t(203) : "ArrowUp", a = i === t(225) ? t(193) : t(181), o = N(), c = o[t(156)]((e) => e === n || e[t(177)](n));
72
- if (c < 0) return;
73
- let l;
74
- if (e[t(190)] === a) l = c + 1 < o[t(216)] ? o[c + 1] : s ? o[0] : void 0;
75
- else if (e[t(190)] === r) l = c > 0 ? o[c - 1] : s ? o[o.length - 1] : void 0;
76
- else if (e[t(190)] === t(153)) l = o[0];
77
- else if (e[t(190)] === "End") l = o[o[t(216)] - 1];
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));
52
+ if (s < 0) return;
53
+ let c;
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(182)](), l?.focus();
80
- }, [L, R] = C(() => /* @__PURE__ */ new Map()), [z, B] = C([]), V = x(() => new Set(z), [z]), H = S(/* @__PURE__ */ new Map()), U = S(null), W = h((e, t) => R((n) => new Map(n)[v(161)](e, t)), []), G = h((e) => R((t) => {
81
- let n = new Map(t);
82
- return n.delete(e), n;
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) => {
61
+ let n = C, r = new Map(t);
62
+ return r[n(357)](e), r;
83
63
  }), []);
84
- b(() => {
85
- let e = v, t = y[e(159)];
86
- if (!j || !t) {
87
- B((t) => t[e(216)] ? [] : t);
64
+ v(() => {
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(159)], i = getComputedStyle(t), a = parseFloat(i.columnGap) || 0, o = t.clientWidth - parseFloat(i[n(173)]) - parseFloat(i[n(165)]);
92
- r && r.getClientRects()[n(216)] && H[n(159)][n(161)](n(215), r.getBoundingClientRect()[n(205)]);
93
- let s = H[n(159)][n(227)](n(215)) ?? t[n(210)](".ds-btn")?.[n(222)] ?? 34, c = [...t[n(191)]][n(158)]((e) => e !== r)[n(208)]((e) => {
94
- let t = n, r = e[t(171)](t(231)) ? e : e[t(210)](":scope > [data-toolbar-id]"), i = r?.[t(230)][t(184)], a = e.getClientRects()[t(216)] > 0;
95
- i && a && H[t(159)][t(161)](i, e.getBoundingClientRect()[t(205)]);
96
- let o = e[t(171)]("[data-toolbar-spacer]") ? 0 : i ? H[t(159)].get(i) ?? 0 : a ? e.getBoundingClientRect()[t(205)] : 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?.[t(170)](t(189)) ?? !1,
79
+ sep: r?.[t(300)]("data-toolbar-sep") ?? !1,
100
80
  w: o
101
81
  };
102
- }), l = (e) => e[n(185)]((e, t) => e + t.w, 0) + a * Math.max(e[n(216)] - 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(216)] - 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(194)](t), u = u[n(158)]((t) => t !== c[e]));
86
+ t && (d[n(335)](t), u = u[n(333)]((t) => t !== c[e]));
107
87
  }
108
- for (; u[n(216)] && u[u.length - 1][n(187)];) {
109
- let e = u[u[n(216)] - 1];
110
- d[n(194)](e.id), u = u.slice(0, -1);
88
+ for (; u[n(280)] && u[u.length - 1][n(346)];) {
89
+ let e = u[u.length - 1];
90
+ d[n(335)](e.id), u = u[n(361)](0, -1);
111
91
  }
112
92
  }
113
- let f = d[n(155)]("|");
114
- B((e) => e[n(155)]("|") === 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(209)](t);
98
+ r[e(379)](t);
119
99
  let i = new MutationObserver(n);
120
100
  return i.observe(t, { childList: !0 }), () => {
121
- r.disconnect(), i.disconnect();
101
+ let t = e;
102
+ r[t(360)](), i[t(360)]();
122
103
  };
123
- }, [j, L]);
104
+ }, [M, L]);
124
105
  let K = z.map((e) => ({
125
106
  id: e,
126
- entry: L[v(227)](e)
127
- }))[v(158)]((e) => !!e[v(226)]).filter((e, t, n) => !e.entry[v(220)] || t > 0 && t < n[v(216)] - 1 && !n[t - 1][v(226)][v(220)]), q = x(() => ({
128
- size: o,
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(() => ({
109
+ size: d,
129
110
  orientation: i,
130
- overflow: j,
111
+ overflow: M,
131
112
  hidden: V,
132
113
  register: W,
133
114
  unregister: G
134
115
  }), [
135
- o,
116
+ d,
136
117
  i,
137
- j,
118
+ M,
138
119
  V,
139
120
  W,
140
121
  G
141
122
  ]);
142
- return E(O.Provider, {
123
+ return w(E[C(372)], {
143
124
  value: q,
144
- children: D(v(211), {
145
- ref: y,
146
- role: v(180),
125
+ children: T(C(305), {
126
+ ref: k,
127
+ role: "toolbar",
147
128
  "aria-label": n,
148
129
  "aria-labelledby": r,
149
130
  "aria-orientation": i,
150
- className: c(v(217), v(214) + a, v(214) + o, i === v(218) && v(228), j && "ds-toolbar--overflow", g),
131
+ className: o(C(369), "ds-toolbar--" + a, C(292) + d, i === C(365) && C(352), M && C(376), g),
151
132
  style: _,
152
133
  onFocus: F,
153
134
  onKeyDown: I,
154
- children: [t, j && E(v(144), {
135
+ children: [t, M && w(C(334), {
155
136
  ref: U,
156
- className: v(174),
157
- style: K[v(216)] ? void 0 : { display: v(176) },
158
- children: E(l, {
159
- align: "end",
160
- "aria-label": m,
161
- trigger: E(M, {
162
- label: m,
163
- icon: E(w, {}),
137
+ className: C(362),
138
+ style: K[C(280)] ? void 0 : { display: C(366) },
139
+ children: w(s, {
140
+ align: C(310),
141
+ "aria-label": h,
142
+ trigger: w(j, {
143
+ label: h,
144
+ icon: w(S, {}),
164
145
  collapsible: !1
165
146
  }),
166
- children: K.map(({ id: e, entry: t }) => t.separator ? E(f, {}, e) : t.pressed === void 0 ? E(d, {
167
- icon: t[v(166)],
168
- shortcut: t[v(197)],
169
- disabled: t[v(154)],
170
- onSelect: () => t[v(172)]?.(),
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?.(),
171
152
  children: t.label
172
- }, e) : E(u, {
173
- icon: t[v(166)],
174
- shortcut: t.shortcut,
175
- disabled: t[v(154)],
176
- checked: t[v(224)],
153
+ }, e) : w(c, {
154
+ icon: t.icon,
155
+ shortcut: t[C(350)],
156
+ disabled: t[C(328)],
157
+ checked: t.pressed,
177
158
  closeOnSelect: !0,
178
- onCheckedChange: () => t[v(172)]?.(),
179
- children: t[v(196)]
159
+ onCheckedChange: () => t[C(348)]?.(),
160
+ children: t[C(312)]
180
161
  }, e))
181
162
  })
182
163
  })]
183
164
  })
184
165
  });
185
166
  }
186
- var M = m(function({ label: t, variant: n = e(201), pressed: a, defaultPressed: l, onPressedChange: u, shortcut: d, tooltip: f, tooltipSide: p, collapsible: m = !0, icon: h, children: x, className: C, disabled: w, onClick: k, style: A, ...j }, M) {
187
- let N = e, P = g(O), F = S(null);
188
- y(M, () => F[N(159)]);
189
- let I = a !== void 0 || l !== void 0, [L, R] = o(a, l ?? !1, u), z = !!h && x == null, B = v(), V = !!P?.[N(202)] && m, H = V && P[N(192)][N(212)](B), U = d?.join("\n"), W = P?.[N(148)], G = P?.[N(206)];
190
- b(() => {
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)];
185
+ v(() => {
191
186
  let e = N;
192
187
  V && W && W(B, {
193
- label: t,
194
- icon: h,
188
+ label: r,
189
+ icon: x,
195
190
  shortcut: U?.split("\n"),
196
191
  pressed: I ? L : void 0,
197
- disabled: w,
198
- click: () => F[e(159)]?.[e(172)]()
192
+ disabled: O,
193
+ click: () => F[e(296)]?.[e(348)]()
199
194
  });
200
195
  }, [
201
196
  V,
202
197
  W,
203
198
  B,
204
- t,
205
- h,
199
+ r,
200
+ x,
206
201
  U,
207
202
  I,
208
203
  L,
209
- w
210
- ]), _(() => V && G ? () => G(B) : void 0, [
204
+ O
205
+ ]), h(() => V && G ? () => G(B) : void 0, [
211
206
  V,
212
207
  G,
213
208
  B
214
209
  ]);
215
- let K = E(s, {
210
+ let K = w(a, {
216
211
  ref: F,
217
- variant: n,
218
- size: P?.[N(150)] ?? "md",
219
- icon: h,
212
+ variant: s,
213
+ size: P?.[N(368)] ?? "md",
214
+ icon: x,
220
215
  iconOnly: z,
221
216
  shortcut: d,
222
- "aria-label": z ? t : void 0,
217
+ "aria-label": z ? r : void 0,
223
218
  "aria-pressed": I ? L : void 0,
224
- "data-state": I ? L ? "on" : N(167) : void 0,
219
+ "data-state": I ? L ? "on" : N(378) : void 0,
225
220
  "data-toolbar-id": V ? B : void 0,
226
- disabled: w,
227
- className: c(N(162), C),
221
+ disabled: O,
222
+ className: o(N(287), D),
228
223
  style: H ? {
229
224
  ...A,
230
- display: N(176)
225
+ display: N(366)
231
226
  } : A,
232
227
  onClick: (e) => {
233
228
  k?.(e), I && !e.defaultPrevented && R(!L);
234
229
  },
235
230
  ...j,
236
- children: x
231
+ children: S
237
232
  });
238
- return !(f === void 0 ? z : f !== !1) || H ? K : E(i, {
239
- content: f !== void 0 && f !== !0 ? f : D(T, { children: [t, d && E(r, {
233
+ return !(f === void 0 ? z : f !== !1) || H ? K : w(n, {
234
+ content: f !== void 0 && f !== !0 ? f : T(C, { children: [r, d && w(t, {
240
235
  keys: d,
241
236
  size: "sm"
242
237
  })] }),
243
- side: p ?? (P?.orientation === N(218) ? N(183) : "top"),
238
+ side: p ?? (P?.orientation === N(365) ? N(339) : N(337)),
244
239
  children: K
245
240
  });
246
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
+ }
247
248
  function N() {
248
- let t = e, n = g(O), r = v(), i = !!n?.[t(202)], o = n?.[t(148)], s = n?.[t(206)];
249
- b(() => {
250
- i && o && o(r, { separator: !0 });
249
+ let t = e, n = m(E), i = g(), a = !!n?.[t(377)], o = n?.[t(298)], s = n?.[t(295)];
250
+ v(() => {
251
+ a && o && o(i, { separator: !0 });
251
252
  }, [
252
- i,
253
+ a,
253
254
  o,
254
- r
255
- ]), _(() => i && s ? () => s(r) : void 0, [
256
- i,
255
+ i
256
+ ]), h(() => a && s ? () => s(i) : void 0, [
257
+ a,
257
258
  s,
258
- r
259
+ i
259
260
  ]);
260
- let c = i && n.hidden[t(212)](r);
261
- return E(t(144), {
262
- className: "ds-toolbar__sep",
263
- "data-toolbar-id": i ? r : void 0,
261
+ let c = a && n[t(331)][t(354)](i);
262
+ return w(t(334), {
263
+ className: t(351),
264
+ "data-toolbar-id": a ? i : void 0,
264
265
  "data-toolbar-sep": "",
265
- style: c ? { display: t(176) } : void 0,
266
- children: E(a, {
267
- orientation: n?.orientation === t(218) ? t(225) : "vertical",
266
+ style: c ? { display: t(366) } : void 0,
267
+ children: w(r, {
268
+ orientation: n?.orientation === t(365) ? t(284) : "vertical",
268
269
  decorative: !1
269
270
  })
270
271
  });
271
272
  }
272
273
  function P() {
273
274
  let t = e;
274
- return E(t(144), {
275
- className: t(149),
275
+ return w(t(334), {
276
+ className: t(323),
276
277
  "data-toolbar-spacer": "",
277
278
  "aria-hidden": !0
278
279
  });
279
280
  }
280
- j[e(186)] = M, j.Separator = N, j[e(195)] = P;
281
- 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 };