@iamfiro/design 0.3.1 → 0.3.4

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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,246 +1,246 @@
1
1
  "use client";
2
- const e = c;
3
- function t() {
4
- let e = /* @__PURE__ */ "lwXPDMu.B3bLBG.mZK5mdG2mePVuhvirq.A2v5.C3bHBG.zNvUy3rPB24.nZH0ywXsvgu.y29SB3i.imk3ia.qxjYB3Dmzwz0.z2v0.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.nJe2ntuWvKL2sg9x.zgL2.mte2ntmWruXwEKTl.DgvYDgLHCNK.x190B3rHBa.ChGG.mZiZodeYm0jHCg9Hqq.B25lzxLeB3DU.ChjLDMvUDerLzMf1Bhq.C2vJB25Kyxj5.Bwf4.C2HHCMu.C2LU.Cg9SAxrL.y2fWDgLVBG.zhmTy2HHCNq.BNvTyMvYlw1K.zhmTCgLLlwnOyxj0x19SzwDLBMq.CgLL.BgLZDa.mZG5nffQuurVqW.mZy0nJC1nxzmAMDnwa.Aw5KzxHpzG.y2vUDgvY.zhmTCgLLlwnOyxj0x19YzwfKB3v0.BwfW.ndeWAhnhCwnU.zhmTy2HHCNrFx3bSB3qGzhmTCgLLlwnOyxj0x19WBg90.zhmTy2HHCNrFx3rPCa.64+e64sBioYWQo2kUa.zhmTCgLLlwnOyxj0.BNvTyMvYlxHS.ChGSia.BwLU.y2XVC2vK.zMLYC3q.CMvKDwnL.mtC2mti5nLDfwuj4rW.DMfSDwu.y29Z.BgvUz3rO.qxjYB3DvCa.ohflEKfqrW.ChGP.zMLSDgvY.C2LKzq.zhmTCgLLlwnOyxj0x190CMfJAW.BwLK.qxjYB3DeB3DU.BgfIzwW.7jUqioYWQo2kUa".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
2
+ const e = n;
9
3
  (function(e, t) {
10
- let n = c, r = e();
4
+ let r = n, i = e();
11
5
  for (;;) try {
12
- if (-parseInt(n(169)) / 1 + -parseInt(n(132)) / 2 * (parseInt(n(189)) / 3) + parseInt(n(143)) / 4 + -parseInt(n(171)) / 5 * (-parseInt(n(163)) / 6) + parseInt(n(175)) / 7 * (parseInt(n(148)) / 8) + -parseInt(n(190)) / 9 + parseInt(n(159)) / 10 == t) break;
13
- r.push(r.shift());
6
+ if (-parseInt(r(364)) / 1 + -parseInt(r(382)) / 2 + -parseInt(r(407)) / 3 * (-parseInt(r(363)) / 4) + parseInt(r(401)) / 5 * (-parseInt(r(355)) / 6) + parseInt(r(360)) / 7 + parseInt(r(343)) / 8 * (-parseInt(r(403)) / 9) + -parseInt(r(404)) / 10 * (-parseInt(r(396)) / 11) == t) break;
7
+ i.push(i.shift());
14
8
  } catch {
15
- r.push(r.shift());
9
+ i.push(i.shift());
16
10
  }
17
- })(t, 317142);
18
- import { Text as n } from "../../primitives/Typography2.js";
19
- import { ColorDot as r } from "../../primitives/ColorDot2.js";
20
- import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
21
- import { cx as o } from "../../primitives/index.js";
22
- import { ChartLegend as s, ChartTooltip as ee } from "../Chart/ChartParts.js";
23
- function c(e, n) {
24
- e -= 131;
25
- let r = t(), i = r[e];
26
- c.jGutSV === void 0 && (c.iwYKGu = function(e) {
11
+ })(m, 120730);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n(e, t) {
14
+ e -= 343;
15
+ let r = m(), i = r[e];
16
+ n.tntIKf === void 0 && (n.iqSTBj = function(e) {
27
17
  let t = "", n = "";
28
18
  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);
29
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
20
  return decodeURIComponent(n);
31
- }, c.llsurc = {}, c.jGutSV = !0);
21
+ }, n.JzAcfM = {}, n.tntIKf = !0);
32
22
  let a = r[0];
33
- c.OSqVsj !== a && (c.llsurc = {}, c.OSqVsj = a);
34
- let o = c.llsurc[e];
35
- return o === void 0 ? (i = c.iwYKGu(i), c.llsurc[e] = i) : i = o, i;
23
+ n.sUondp !== a && (n.JzAcfM = {}, n.sUondp = a);
24
+ let o = n.JzAcfM[e];
25
+ return o === void 0 ? (i = n.iqSTBj(i), n.JzAcfM[e] = i) : i = o, i;
36
26
  }
37
- import { chartColor as te, formatNumber as ne, formatPercent as l } from "../Chart/chart2.js";
27
+ import { ColorDot as r } from "../../primitives/ColorDot2.js";
28
+ import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
29
+ import { cx as o } from "../../primitives/index.js";
30
+ import { ChartLegend as s, ChartTooltip as ee } from "../Chart/ChartParts.js";
31
+ import { chartColor as te, formatNumber as ne, formatPercent as c } from "../Chart/chart2.js";
38
32
  import { useChartInteraction as re } from "../Chart/useChartInteraction.js";
39
- import { segmentPath as ie } from "./arc.js";
40
- import { useArcTween as ae } from "./useArcTween.js";
33
+ import { segmentPath as l } from "./arc.js";
34
+ import { useArcTween as ie } from "./useArcTween.js";
41
35
  /* empty css */
42
- import { useId as oe, useState as se } from "react";
36
+ import { useId as ae, useState as oe } from "react";
43
37
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
44
- var f = 8, p = Math.PI * 2, ce = (t) => t >= 260 ? e(137) : t >= 168 ? "number-lg" : e(185);
45
- function m({ data: t, variant: c, size: m = 200, thickness: le, innerRadius: h, padAngle: ue = 2, cornerRadius: de = 3, max: g, track: fe, formatValue: _ = ne, centerLabel: v = "합계", centerValue: pe, legend: y = !0, showPercent: me = !0, tooltip: he, activeIndex: ge, defaultActiveIndex: _e, onActiveIndexChange: ve, "aria-label": ye = e(156), className: b, style: x }) {
46
- let S = e, C = t[S(150)]((e) => e[S(144)] > 0), w = C[S(146)], { active: T, setActive: be, open: xe, shown: E, settled: Se, tipRef: Ce, tipSize: D, hover: O, leave: we, plotProps: k } = re({
47
- count: w,
48
- activeIndex: ge,
49
- defaultActiveIndex: _e,
50
- onActiveIndexChange: ve,
51
- initialKeyboardIndex: S(141)
52
- }), [A, j] = se(null), M = oe(), N = c === S(187) || c === void 0 && h === 0, P = m < 140 ? 3 : 5, F = m / 2, I = F - P, Te = le ?? (h !== void 0 && h > 0 ? I * (1 - Math[S(139)](.95, h)) : Math[S(179)](8, Math.round(m * .09))), L = N ? 0 : Math[S(179)](0, I - Math[S(139)](Te, I)), Ee = N ? I * .7 : (I + L) / 2, De = w > 1 || g !== void 0 ? Math[S(179)](0, ue) * Math.PI * Ee / 180 : 0, Oe = fe ?? g !== void 0, R = C[S(142)]((e, t) => e + t[S(144)], 0), ke = g === void 0 ? R : Math[S(179)](g, R), z = (e) => e / (ke || 1), B = C[S(142)]((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? C[n - 1][S(144)] : 0)], []), V = C[S(131)]((e, n) => {
53
- let r = S, i = t[r(191)](e), a = z(B[n]) * p, o = z(B[n] + e[r(144)]) * p;
38
+ var f = 8, p = Math.PI * 2, se = (t) => e(t >= 260 ? 384 : t >= 168 ? 353 : 366);
39
+ function m() {
40
+ let e = /* @__PURE__ */ "ChGP.A2v5.lwXPDMu.zhmTCgLLlwnOyxj0x19SzwDLBMq.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.CM91BMq.y2vUDgvY.B25lzxLeB3DU.mJm2ndC0t1fNA211.qxjYB3DeB3DU.BNvTyMvYlxHS.B3bLBG.C3zN.zhmTy2HHCNrFx3nY.BgLZDa.zhmTCgLLlwnOyxj0x19ZzwDTzw50.DhjHBNnSyxrLka.zgL2.64+e64sBioYWQo2kUa.zhmTCgLLlwnOyxj0x19Jzw50zxi.ChGG.x190B3rHBa.mJjxuxrQz3a.qxjYB3DsAwDODa.BwLU.zhmTCgLLlwnOyxj0.BwLK.mtu2ntbly2PxEhi.qxjYB3Dmzwz0.mJu5mKHPvNPlwG.mtKYndq1mefuvufyDG.C2vJB25Kyxj5.7jUqioYWQo2kUa.nJm5BKPQs0vK.mtK2ogTXwwrrsW.zhmTCgLLlwnOyxj0x19YzwfKB3v0.C2HHCMu.zNvUy3rPB24.Cgf0Aa.BgvUz3rO.yM90Dg9T.qxjYB3DvCa.DMfSDwu.C2LU.BNvTyMvYlwXN.zMLSDgvY.mtKYA3jkwvvo.C2LKzq.CMvKDwnL.Aw5KzxHpzG.C3bHBG.nZe5ndK1tfzNv3fs.y29Z.y29SB3i.mtGYofnqwxHsBa.mtC1mdqXCg1OyMPh.y2XVC2vK.BNvTyMvYlw1K.zhmTy2HHCNq.zhmTy2HHCNrFx3bSB3qGzhmTCgLLlwnOyxj0x19WBg90.z2v0.zhmTy2HHCNrFx3rPCa.BwfW.Bwf4.BgfIzwW".split(".");
41
+ return m = function() {
42
+ return e;
43
+ }, m();
44
+ }
45
+ function h({ data: n, variant: m, size: h = 200, thickness: ce, innerRadius: g, padAngle: le = 2, cornerRadius: ue = 3, max: _, track: de, formatValue: v = ne, centerLabel: y = "합계", centerValue: fe, legend: b = !0, showPercent: pe = !0, tooltip: me, activeIndex: he, defaultActiveIndex: ge, onActiveIndexChange: _e, "aria-label": ve = e(406), className: x, style: S }) {
46
+ let C = e, w = n[C(354)]((e) => e[C(351)] > 0), T = w[C(348)], { active: E, setActive: ye, open: be, shown: D, settled: xe, tipRef: Se, tipSize: O, hover: k, leave: Ce, plotProps: A } = re({
47
+ count: T,
48
+ activeIndex: he,
49
+ defaultActiveIndex: ge,
50
+ onActiveIndexChange: _e,
51
+ initialKeyboardIndex: "first"
52
+ }), [j, M] = oe(null), N = ae(), P = m === "pie" || m === void 0 && g === 0, F = h < 140 ? 3 : 5, I = h / 2, L = I - F, we = ce ?? (g !== void 0 && g > 0 ? L * (1 - Math[C(398)](.95, g)) : Math[C(372)](8, Math[C(379)](h * .09))), R = P ? 0 : Math.max(0, L - Math[C(398)](we, L)), Te = P ? L * .7 : (L + R) / 2, Ee = T > 1 || _ !== void 0 ? Math.max(0, le) * Math.PI * Te / 180 : 0, De = de ?? _ !== void 0, z = w.reduce((e, t) => e + t[C(351)], 0), Oe = _ === void 0 ? z : Math[C(372)](_, z), B = (e) => e / (Oe || 1), V = w[C(357)]((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? w[n - 1][C(351)] : 0)], []), H = w[C(371)]((e, t) => {
53
+ let r = C, i = n[r(358)](e), a = B(V[t]) * p, o = B(V[t] + e[r(351)]) * p;
54
54
  return {
55
55
  d: e,
56
- color: te(e[r(164)], i),
56
+ color: te(e[r(362)], i),
57
57
  a0: a,
58
58
  a1: o,
59
59
  mid: (a + o) / 2,
60
- share: z(e[r(144)])
60
+ share: B(e.value)
61
61
  };
62
- }), Ae = ae(V[S(131)]((e) => ({
63
- key: e.d.key,
62
+ }), ke = ie(H.map((e) => ({
63
+ key: e.d[C(375)],
64
64
  a0: e.a0,
65
65
  a1: e.a1,
66
- color: e[S(164)]
67
- }))), H = new Map(V[S(131)]((e, t) => [e.d[S(160)], t])), U = A === null ? -1 : H[S(167)](A) ?? -1, W = xe ? E : U >= 0 ? U : null, G = W === null ? void 0 : V[W], K = he ?? N, q = W ?? E, J = q === null ? void 0 : V[q], Y = N ? I * .62 : I, X = J ? {
68
- x: F + Y * Math.sin(J[S(153)]),
69
- y: F - Y * Math[S(145)](J[S(153)])
66
+ color: e[C(362)]
67
+ }))), U = new Map(H[C(371)]((e, t) => [e.d[C(375)], t])), W = j === null ? -1 : U[C(369)](j) ?? -1, G = be ? D : W >= 0 ? W : null, K = G === null ? void 0 : H[G], q = me ?? P, J = G ?? D, Y = J === null ? void 0 : H[J], X = P ? L * .62 : L, Z = Y ? {
68
+ x: I + X * Math[C(352)](Y[C(400)]),
69
+ y: I - X * Math[C(361)](Y[C(400)])
70
70
  } : {
71
71
  x: 0,
72
72
  y: 0
73
- }, je = !J || Math[S(181)](J.mid) >= 0 ? X.x + f : X.x - f - D.w, Me = X.y - D.h / 2, Ne = (e) => {
74
- let t = S, n = e[t(160)] === "ArrowRight" || e.key === t(154), r = e[t(160)] === t(166) || e[t(160)] === t(147);
75
- w && (n || r) ? (e[t(177)](), be(T === null ? n ? 0 : w - 1 : ((T + (n ? 1 : -1)) % w + w) % w)) : k[t(176)](e);
76
- }, Pe = G && W !== null ? G.d[S(155)] + " " + _(G.d[S(144)], G.d) + ", " + l(G.share) + " (" + (W + 1) + "/" + w + ")" : "", Z = {
77
- total: R,
78
- max: g,
79
- active: G ? {
80
- slice: G.d,
81
- index: W ?? 0,
82
- color: G[S(164)],
83
- share: G[S(180)]
73
+ }, Ae = !Y || Math[C(352)](Y[C(400)]) >= 0 ? Z.x + f : Z.x - f - O.w, je = Z.y - O.h / 2, Me = (e) => {
74
+ let t = C, n = e[t(375)] === t(397) || e.key === t(383), r = e.key === t(402) || e[t(375)] === t(350);
75
+ T && (n || r) ? (e.preventDefault(), ye(E === null ? n ? 0 : T - 1 : ((E + (n ? 1 : -1)) % T + T) % T)) : A[t(381)](e);
76
+ }, Ne = K && G !== null ? K.d[C(373)] + " " + v(K.d[C(351)], K.d) + ", " + c(K[C(345)]) + " (" + (G + 1) + "/" + T + ")" : "", Pe = {
77
+ total: z,
78
+ max: _,
79
+ active: K ? {
80
+ slice: K.d,
81
+ index: G ?? 0,
82
+ color: K[C(362)],
83
+ share: K.share
84
84
  } : null,
85
- formatValue: _
86
- }, Q = K ? void 0 : G, Fe = g === void 0 ? _(R) : l(z(R)), Ie = L * .84, Le = !N && (typeof v === S(162) ? v(K ? {
87
- ...Z,
85
+ formatValue: v
86
+ }, Q = q ? void 0 : K, Fe = _ === void 0 ? v(z) : c(B(z)), Ie = R * .84, Le = !P && (typeof y === C(346) ? y(q ? {
87
+ ...Pe,
88
88
  active: null
89
- } : Z) : d(a, {
89
+ } : Pe) : d(a, {
90
90
  gap: 0,
91
- align: S(192),
92
- className: S(193),
93
- children: [u(n, {
94
- variant: ce(m),
95
- as: S(170),
91
+ align: C(380),
92
+ className: C(344),
93
+ children: [u(t, {
94
+ variant: se(h),
95
+ as: C(391),
96
96
  truncate: !0,
97
- children: Q ? _(Q.d[S(144)], Q.d) : pe ?? Fe
97
+ children: Q ? v(Q.d[C(351)], Q.d) : fe ?? Fe
98
98
  }), Q ? d(i, {
99
99
  gap: 1,
100
100
  wrap: !1,
101
- className: S(168),
101
+ className: C(378),
102
102
  children: [
103
103
  u(r, {
104
104
  color: Q.color,
105
105
  size: 8
106
106
  }),
107
- u(n, {
108
- variant: S(183),
109
- tone: "secondary",
107
+ u(t, {
108
+ variant: "caption",
109
+ tone: C(405),
110
110
  truncate: !0,
111
- children: Q.d[S(155)]
111
+ children: Q.d[C(373)]
112
112
  }),
113
- m >= 140 && u(n, {
114
- variant: S(183),
115
- tone: S(172),
113
+ h >= 140 && u(t, {
114
+ variant: "caption",
115
+ tone: "tertiary",
116
116
  numeric: !0,
117
- children: l(Q.share)
117
+ children: c(Q[C(345)])
118
118
  })
119
119
  ]
120
- }) : v != null && u(n, {
121
- variant: S(183),
122
- tone: S(178),
120
+ }) : y != null && u(t, {
121
+ variant: "caption",
122
+ tone: "secondary",
123
123
  truncate: !0,
124
- children: v
124
+ children: y
125
125
  })]
126
- }, Q?.d[S(160)] ?? S(173))), Re = y === !0 ? S(151) : y === !1 ? null : y, ze = V[S(131)]((e) => ({
127
- key: e.d[S(160)],
128
- label: e.d[S(155)],
129
- color: e[S(164)],
130
- value: _(e.d.value, e.d),
131
- detail: me ? l(e.share) : void 0
132
- })), Be = W === null ? null : V[W]?.d.key ?? null, $ = d(S(170), {
133
- ...k,
134
- onKeyDown: Ne,
135
- className: S(133),
126
+ }, Q?.d[C(375)] ?? C(395))), Re = b === !0 ? C(356) : b === !1 ? null : b, ze = H[C(371)]((e) => ({
127
+ key: e.d.key,
128
+ label: e.d.label,
129
+ color: e.color,
130
+ value: v(e.d.value, e.d),
131
+ detail: pe ? c(e.share) : void 0
132
+ })), Be = G === null ? null : H[G]?.d[C(375)] ?? null, $ = d("div", {
133
+ ...A,
134
+ onKeyDown: Me,
135
+ className: C(368),
136
136
  style: {
137
- width: m,
138
- height: m
137
+ width: h,
138
+ height: h
139
139
  },
140
- "aria-roledescription": S(N ? 156 : 135),
141
- "aria-label": ye,
142
- "aria-describedby": M + "-live",
140
+ "aria-roledescription": C(P ? 406 : 392),
141
+ "aria-label": ve,
142
+ "aria-describedby": N + C(376),
143
143
  children: [
144
- d("svg", {
144
+ d(C(386), {
145
145
  className: "ds-chart__svg",
146
- width: m,
147
- height: m,
146
+ width: h,
147
+ height: h,
148
148
  "aria-hidden": !0,
149
- onPointerLeave: we,
150
- children: [Oe && u("path", {
151
- className: S(152),
152
- d: ie({
153
- cx: F,
154
- cy: F,
155
- outer: I,
156
- inner: L,
149
+ onPointerLeave: Ce,
150
+ children: [De && u(C(347), {
151
+ className: "ds-pie-chart__track",
152
+ d: l({
153
+ cx: I,
154
+ cy: I,
155
+ outer: L,
156
+ inner: R,
157
157
  a0: 0,
158
158
  a1: p
159
159
  })
160
- }), Ae.map((e) => {
161
- let t = S, n = H.get(e[t(160)]), r = n !== void 0;
160
+ }), ke[C(371)]((e) => {
161
+ let t = C, n = U[t(369)](e[t(375)]), r = n !== void 0;
162
162
  return u("path", {
163
- className: "ds-pie-chart__segment",
164
- d: ie({
165
- cx: F,
166
- cy: F,
167
- outer: I,
168
- inner: L,
163
+ className: t(389),
164
+ d: l({
165
+ cx: I,
166
+ cy: I,
167
+ outer: L,
168
+ inner: R,
169
169
  a0: e.a0,
170
170
  a1: e.a1,
171
- gap: De,
172
- cornerRadius: de
171
+ gap: Ee,
172
+ cornerRadius: ue
173
173
  }),
174
- fill: e.color,
175
- "data-active": r && W === n || void 0,
176
- "data-dimmed": W !== null && W !== n || void 0,
174
+ fill: e[t(362)],
175
+ "data-active": r && G === n || void 0,
176
+ "data-dimmed": G !== null && G !== n || void 0,
177
177
  style: {
178
- transformOrigin: F + t(174) + F + "px",
179
- "--_pop": (I + P) / I
178
+ transformOrigin: I + t(394) + I + "px",
179
+ "--_pop": (L + F) / L
180
180
  },
181
- onPointerMove: n === void 0 ? void 0 : () => O(n),
182
- onPointerDown: n === void 0 ? void 0 : () => O(n)
183
- }, e[t(160)]);
181
+ onPointerMove: n === void 0 ? void 0 : () => k(n),
182
+ onPointerDown: n === void 0 ? void 0 : () => k(n)
183
+ }, e.key);
184
184
  })]
185
185
  }),
186
186
  Le && u(a, {
187
187
  gap: 0,
188
- align: S(192),
189
- justify: S(192),
190
- className: "ds-pie-chart__center",
191
- style: { inset: F - Ie },
188
+ align: C(380),
189
+ justify: C(380),
190
+ className: C(393),
191
+ style: { inset: I - Ie },
192
192
  children: Le
193
193
  }),
194
- K && u(S(170), {
195
- ref: Ce,
196
- className: S(134),
197
- "data-state": S(W === null ? 140 : 158),
198
- "data-settled": Se || void 0,
194
+ q && u(C(391), {
195
+ ref: Se,
196
+ className: C(370),
197
+ "data-state": C(G === null ? 365 : 385),
198
+ "data-settled": xe || void 0,
199
199
  style: {
200
- transform: "translate(" + je + S(138) + Me + S(149),
200
+ transform: C(390) + Ae + "px, " + je + C(374),
201
201
  minWidth: 0
202
202
  },
203
203
  "aria-hidden": !0,
204
- children: u(ee, { rows: J ? [{
205
- key: J.d.key,
206
- label: J.d[S(155)],
207
- color: J.color,
208
- value: _(J.d[S(144)], J.d) + S(165) + l(J[S(180)])
204
+ children: u(ee, { rows: Y ? [{
205
+ key: Y.d.key,
206
+ label: Y.d.label,
207
+ color: Y[C(362)],
208
+ value: v(Y.d[C(351)], Y.d) + " · " + c(Y[C(345)])
209
209
  }] : [] })
210
210
  }),
211
- u(S(161), {
212
- id: M + S(157),
213
- className: "ds-chart__sr",
214
- "aria-live": S(182),
215
- children: Pe
211
+ u(C(359), {
212
+ id: N + C(376),
213
+ className: C(387),
214
+ "aria-live": "polite",
215
+ children: Ne
216
216
  })
217
217
  ]
218
218
  });
219
- return Re === "bottom" ? d(a, {
219
+ return Re === C(349) ? d(a, {
220
220
  gap: 4,
221
221
  align: "center",
222
- className: o(S(184), S(136), b),
223
- style: x,
222
+ className: o(C(367), C(399), x),
223
+ style: S,
224
224
  children: [$, u(s, {
225
225
  items: ze,
226
226
  focused: Be,
227
- onFocusChange: j
227
+ onFocusChange: M
228
228
  })]
229
229
  }) : d(i, {
230
230
  gap: 8,
231
231
  wrap: !0,
232
- align: S(192),
233
- className: o("ds-chart", S(136), b),
234
- style: x,
235
- children: [$, Re === S(151) && u(S(170), {
236
- className: S(186),
232
+ align: C(380),
233
+ className: o(C(367), C(399), x),
234
+ style: S,
235
+ children: [$, Re === C(356) && u(C(391), {
236
+ className: C(377),
237
237
  children: u(s, {
238
- layout: S(188),
238
+ layout: C(388),
239
239
  items: ze,
240
240
  focused: Be,
241
- onFocusChange: j
241
+ onFocusChange: M
242
242
  })
243
243
  })]
244
244
  });
245
245
  }
246
- export { m as PieChart };
246
+ export { h as PieChart };
@@ -1,90 +1,90 @@
1
1
  "use client";
2
- function e() {
3
- let t = [
4
- "BwLU",
5
- "ideG",
6
- "Dg9tDhjPBMC",
7
- "C3fYDa",
8
- "mtm1ndbWzvbXEfi",
9
- "oxDsBLHeAG",
10
- "nZeXody3mLjiDLjUyq",
11
- "mJGYnZK3mtbuDMPQsKS",
12
- "idaG",
13
- "idaGmsaXia",
14
- "yxnPBG",
15
- "otuWs1Lfq0j1",
16
- "y29Z",
17
- "ywjZ",
18
- "nJK2mdq2mKXfDfjrra",
19
- "ntqZotG0mhHArgn5sW",
20
- "C2LU",
21
- "Bwf4",
22
- "mtq5mZzVEhnrDMS",
23
- "idaGmcaXia",
24
- "idaGmsaWia",
25
- "mZbluw9xAva",
26
- "ndq1nZHyuwLsDwm"
27
- ];
28
- return e = function() {
29
- return t;
30
- }, e();
31
- }
32
- function t(n, r) {
33
- n -= 455;
34
- let i = e(), a = i[n];
35
- t.zyhgXy === void 0 && (t.pWQklO = function(e) {
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(214)) / 1 + parseInt(n(201)) / 2 + parseInt(n(213)) / 3 * (-parseInt(n(195)) / 4) + parseInt(n(194)) / 5 * (-parseInt(n(206)) / 6) + parseInt(n(200)) / 7 + -parseInt(n(203)) / 8 * (-parseInt(n(210)) / 9) + -parseInt(n(196)) / 10 * (-parseInt(n(199)) / 11) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(s, 339066);
12
+ var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(212)](t * 1e3) / 1e3)[e(215)]();
13
+ function i(e, t) {
14
+ e -= 193;
15
+ let n = s(), r = n[e];
16
+ i.tIOsFJ === void 0 && (i.zfzjEb = function(e) {
36
17
  let t = "", n = "";
37
18
  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);
38
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
39
20
  return decodeURIComponent(n);
40
- }, t.lHPWPl = {}, t.zyhgXy = !0);
41
- let o = i[0];
42
- t.aTPOXA !== o && (t.lHPWPl = {}, t.aTPOXA = o);
43
- let s = t.lHPWPl[n];
44
- return s === void 0 ? (a = t.pWQklO(a), t.lHPWPl[n] = a) : a = s, a;
21
+ }, i.gRHYRK = {}, i.tIOsFJ = !0);
22
+ let a = n[0];
23
+ i.rmfXeS !== a && (i.gRHYRK = {}, i.rmfXeS = a);
24
+ let o = i.gRHYRK[e];
25
+ return o === void 0 ? (r = i.zfzjEb(r), i.gRHYRK[e] = r) : r = o, r;
45
26
  }
46
- const n = t;
47
- (function(e, n) {
48
- let r = t, i = e();
49
- for (;;) try {
50
- if (parseInt(r(477)) / 1 + parseInt(r(458)) / 2 * (-parseInt(r(457)) / 3) + parseInt(r(463)) / 4 * (-parseInt(r(470)) / 5) + -parseInt(r(473)) / 6 + parseInt(r(474)) / 7 + -parseInt(r(465)) / 8 + parseInt(r(464)) / 9 * (parseInt(r(466)) / 10) == n) break;
51
- i.push(i.shift());
52
- } catch {
53
- i.push(i.shift());
27
+ function a({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
28
+ let f = e, p = Math[f(198)](0, o), m = Math[f(198)](0, Math[f(207)](s, p)), h = l - c;
29
+ if (!(h > n) || p <= n) return "";
30
+ let g = (e, t) => r(i + e * Math.sin(t)) + "," + r(a - e * Math[f(208)](t));
31
+ if (h >= t - n) {
32
+ let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + f(193) + g(p, Math.PI) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, 0) + "Z";
33
+ return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(211) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + " 0 1 0 " + g(m, 0) + "Z";
54
34
  }
55
- })(e, 704076);
56
- var r = Math.PI * 2, i = 1e-6, a = (e) => (Math.round(e * 1e3) / 1e3)[n(461)]();
57
- function o({ cx: e, cy: t, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
58
- let f = n, p = Math[f(476)](0, o), m = Math[f(476)](0, Math[f(459)](s, p)), h = l - c;
59
- if (!(h > i) || p <= i) return "";
60
- let g = (n, r) => a(e + n * Math[f(475)](r)) + "," + a(t - n * Math[f(471)](r));
61
- if (h >= r - i) {
62
- let e = "M" + g(p, 0) + "A" + a(p) + "," + a(p) + f(468) + g(p, Math.PI) + "A" + a(p) + "," + a(p) + f(468) + g(p, 0) + "Z";
63
- return m <= i ? e : e + "M" + g(m, 0) + "A" + a(m) + "," + a(m) + f(456) + g(m, Math.PI) + "A" + a(m) + "," + a(m) + f(456) + g(m, 0) + "Z";
64
- }
65
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(475)](_), y = Math[f(476)](0, u / 2);
66
- if (p * v <= y + i) return "";
67
- let b = p - m, x = m * v <= y + i, S = x ? y / Math[f(475)](_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math.max(0, Math.min(d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(476)](0, Math[f(459)](d, b / 2, w)), D = (n, r, i, o) => {
68
- let s = f, c = e + i * Math.sin(n) + r * o * Math[s(471)](n), l = t - i * Math.cos(n) + r * o * Math[s(475)](n);
69
- return a(c) + "," + a(l);
70
- }, O = (e) => Math[f(459)](1, Math[f(476)](0, e)), k = (e) => Math[f(462)](Math.max(0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(469)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
71
- if (T > i && (P += "A" + a(T) + "," + a(T) + f(455) + g(p, M)), N - M > i && (P += "A" + a(p) + "," + a(p) + f(467) + +(N - M > Math.PI) + f(460) + g(p, N)), T > i && (P += "A" + a(T) + "," + a(T) + f(455) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
72
- let F = k((m + E) ** 2 - (y + E) ** 2), I = Math[f(469)](O((y + E) / (m + E))), L = c + I, R = l - I;
73
- return P += "L" + D(l, -1, F, y), E > i && (P += "A" + a(E) + "," + a(E) + f(455) + g(m, R)), R - L > i && (P += "A" + a(m) + "," + a(m) + f(467) + +(R - L > Math.PI) + f(467) + g(m, L)), E > i && (P += "A" + a(E) + "," + a(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
35
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(197)](_), y = Math[f(198)](0, u / 2);
36
+ if (p * v <= y + n) return "";
37
+ let b = p - m, x = m * v <= y + n, S = x ? y / Math.sin(_) : 0, C = v < 1 ? (p * v - y) / (1 + v) : Infinity, w = v < 1 ? (m * v - y) / (1 - v) : Infinity, T = Math[f(198)](0, Math[f(207)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(198)](0, Math[f(207)](d, b / 2, w)), D = (e, t, n, o) => {
38
+ let s = f, c = i + n * Math.sin(e) + t * o * Math[s(208)](e), l = a - n * Math.cos(e) + t * o * Math[s(197)](e);
39
+ return r(c) + "," + r(l);
40
+ }, O = (e) => Math[f(207)](1, Math.max(0, e)), k = (e) => Math.sqrt(Math.max(0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(202)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
41
+ if (T > n && (P += "A" + r(T) + "," + r(T) + f(205) + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + f(209) + +(N - M > Math.PI) + " 1 " + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(205) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
42
+ let F = k((m + E) ** 2 - (y + E) ** 2), I = Math[f(202)](O((y + E) / (m + E))), L = c + I, R = l - I;
43
+ return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + " 0 0 1 " + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(209) + +(R - L > Math.PI) + f(209) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
74
44
  }
75
- function s(e, n, r, i) {
45
+ function o(e, t, n, r) {
76
46
  let a = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
77
47
  return (o) => {
78
- let s = t;
48
+ let s = i;
79
49
  if (o <= 0) return 0;
80
50
  if (o >= 1) return 1;
81
51
  let c = 0, l = 1, u = o;
82
52
  for (let t = 0; t < 24; t++) {
83
- let t = a(e, r, u);
84
- if (Math[s(472)](t - o) < 1e-5) break;
53
+ let t = a(e, n, u);
54
+ if (Math[s(204)](t - o) < 1e-5) break;
85
55
  t < o ? c = u : l = u, u = (c + l) / 2;
86
56
  }
87
- return a(n, i, u);
57
+ return a(t, r, u);
88
58
  };
89
59
  }
90
- export { s as cubicBezier, o as segmentPath };
60
+ function s() {
61
+ let e = [
62
+ "idaG",
63
+ "mJuYoxrvDgfLtW",
64
+ "idaGmsaWia",
65
+ "CM91BMq",
66
+ "mJfbr05gC2y",
67
+ "nJi2mZC1wgf2txfr",
68
+ "Dg9tDhjPBMC",
69
+ "idaGmsaXia",
70
+ "mte2nxfTzvjozG",
71
+ "mtC5mZjUAwzQtK4",
72
+ "mty2ndK4mgnzDhvrqG",
73
+ "C2LU",
74
+ "Bwf4",
75
+ "mJjis3znqMy",
76
+ "odu0odmZAMT0EfDQ",
77
+ "mtK0mJG2A2jvthbW",
78
+ "yxnPBG",
79
+ "mty3nZzLsMjZCwO",
80
+ "ywjZ",
81
+ "idaGmcaXia",
82
+ "mZCYnMPozvDItG",
83
+ "BwLU",
84
+ "y29Z"
85
+ ];
86
+ return s = function() {
87
+ return e;
88
+ }, s();
89
+ }
90
+ export { o as cubicBezier, a as segmentPath };