@iamfiro/design 0.3.2 → 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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,246 +1,246 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 158;
4
- let r = c(), i = r[t];
5
- e.ISTYZu === void 0 && (e.KsIZGa = function(e) {
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
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());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
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) {
6
17
  let t = "", n = "";
7
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);
8
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
20
  return decodeURIComponent(n);
10
- }, e.MhUMoV = {}, e.ISTYZu = !0);
21
+ }, n.JzAcfM = {}, n.tntIKf = !0);
11
22
  let a = r[0];
12
- e.wiSLfo !== a && (e.MhUMoV = {}, e.wiSLfo = a);
13
- let o = e.MhUMoV[t];
14
- return o === void 0 ? (i = e.KsIZGa(i), e.MhUMoV[t] = 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;
15
26
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
19
- for (;;) try {
20
- if (parseInt(r(168)) / 1 * (-parseInt(r(174)) / 2) + -parseInt(r(161)) / 3 + -parseInt(r(209)) / 4 * (parseInt(r(215)) / 5) + parseInt(r(204)) / 6 * (parseInt(r(206)) / 7) + parseInt(r(194)) / 8 * (parseInt(r(175)) / 9) + -parseInt(r(195)) / 10 * (-parseInt(r(170)) / 11) + parseInt(r(220)) / 12 * (-parseInt(r(163)) / 13) == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(c, 638457);
26
- import { Text as n } from "../../primitives/Typography2.js";
27
27
  import { ColorDot as r } from "../../primitives/ColorDot2.js";
28
28
  import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
29
29
  import { cx as o } from "../../primitives/index.js";
30
30
  import { ChartLegend as s, ChartTooltip as ee } from "../Chart/ChartParts.js";
31
- function c() {
32
- let e = /* @__PURE__ */ "mtiWshPru1vl.BgfIzwW.y2vUDgvY.qxjYB3DvCa.zhmTy2HHCNrFx3n2zW.CM91BMq.y2fWDgLVBG.Aw5KzxHpzG.x190B3rHBa.nZaXmZa0BvP3vffy.B3bLBG.nJnqwLrvD3i.zhmTy2HHCNq.zhmTCgLLlwnOyxj0.mZiZodiWnePyqNP5yq.ChGG.zNvUy3rPB24.CMvKDwnL.C2LKzq.BNvTyMvYlwXN.nvnpALfbqq.A2v5.zhmTCgLLlwnOyxj0x19Jzw50zxi.Cg9SAxrL.BgvUz3rO.mZq4otzZzLHqrgS.BwLU.Cgf0Aa.Bwf4.zhmTy2HHCNrFx3bSB3qGzhmTCgLLlwnOyxj0x19WBg90.DMfSDwu.y2XVC2vK.BwLK.mtiYnZi2n0f1DLDTsa.qxjYB3DeB3DU.mtq2oxvlA2rHzW.zgL2.zhmTy2HHCNrFx3nY.ChGSia.C2HHCMu.ndyWndeZCvzUELbj.zMLYC3q.otyXotm5CeziuMD4.BNvTyMvYlxHS.ChjLDMvUDerLzMf1Bhq.zhmTCgLLlwnOyxj0x19SzwDLBMq.mK1grvHLDa.mtyYre5wDKfp.CgLL.C2LU.lwXPDMu.C3zN.BgLZDa.z2v0.y29SB3i.C2vJB25Kyxj5.zhmTCgLLlwnOyxj0x19ZzwDTzw50.64+e64sBioYWQo2kUa.ChGP.imk3ia.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.qxjYB3Dmzwz0.zhmTCgLLlwnOyxj0x19YzwfKB3v0.zhmTy2HHCNrFx3rPCa.7jUqioYWQo2kUa.BwfW.mJqYmtiWDfDrqu1v".split(".");
33
- return c = function() {
34
- return e;
35
- }, c();
36
- }
37
- import { chartColor as te, formatNumber as ne, formatPercent as l } from "../Chart/chart2.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 = (e) => e >= 260 ? t(171) : e >= 168 ? t(214) : "number-md";
45
- function m({ data: e, 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 = t(192), className: b, style: x }) {
46
- let S = t, C = e.filter((e) => e[S(158)] > 0), w = C[S(219)], { 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(169)
52
- }), [A, j] = se(null), M = oe(), N = c === S(176) || 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(221)](.95, h)) : Math.max(8, Math[S(200)](m * .09))), L = N ? 0 : Math[S(223)](0, I - Math.min(Te, I)), Ee = N ? I * .7 : (I + L) / 2, De = w > 1 || g !== void 0 ? Math[S(223)](0, ue) * Math.PI * Ee / 180 : 0, Oe = fe ?? g !== void 0, R = C[S(212)]((e, t) => e + t.value, 0), ke = g === void 0 ? R : Math.max(g, R), z = (e) => e / (ke || 1), B = C.reduce((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? C[n - 1][S(158)] : 0)], []), V = C[S(193)]((t, n) => {
53
- let r = S, i = e[r(202)](t), a = z(B[n]) * p, o = z(B[n] + t[r(158)]) * 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
- d: t,
56
- color: te(t[r(182)], i),
55
+ d: e,
56
+ color: te(e[r(362)], i),
57
57
  a0: a,
58
58
  a1: o,
59
59
  mid: (a + o) / 2,
60
- share: z(t.value)
60
+ share: B(e.value)
61
61
  };
62
- }), Ae = ae(V[S(193)]((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(182)]
67
- }))), H = new Map(V[S(193)]((e, t) => [e.d.key, t])), U = A === null ? -1 : H[S(181)](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[S(177)](J[S(160)]),
69
- y: F - Y * Math.cos(J[S(160)])
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(177)](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(216)] === "ArrowRight" || e[t(216)] === t(162), r = e.key === t(189) || e[t(216)] === t(198);
75
- w && (n || r) ? (e[t(172)](), be(T === null ? n ? 0 : w - 1 : ((T + (n ? 1 : -1)) % w + w) % w)) : k.onKeyDown(e);
76
- }, Pe = G && W !== null ? G.d[S(196)] + " " + _(G.d[S(158)], 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(182)],
83
- share: G[S(167)]
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(211) ? 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: "center",
92
- className: S(190),
93
- children: [u(n, {
94
- variant: ce(m),
95
- as: "div",
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.value, 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(188),
101
+ className: C(378),
102
102
  children: [
103
103
  u(r, {
104
- color: Q[S(182)],
104
+ color: Q.color,
105
105
  size: 8
106
106
  }),
107
- u(n, {
108
- variant: S(201),
109
- tone: "secondary",
107
+ u(t, {
108
+ variant: "caption",
109
+ tone: C(405),
110
110
  truncate: !0,
111
- children: Q.d[S(196)]
111
+ children: Q.d[C(373)]
112
112
  }),
113
- m >= 140 && u(n, {
114
- variant: S(201),
113
+ h >= 140 && u(t, {
114
+ variant: "caption",
115
115
  tone: "tertiary",
116
116
  numeric: !0,
117
- children: l(Q[S(167)])
117
+ children: c(Q[C(345)])
118
118
  })
119
119
  ]
120
- }) : v != null && u(n, {
121
- variant: S(201),
122
- tone: S(183),
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.key ?? S(203))), Re = y === !0 ? S(213) : y === !1 ? null : y, ze = V.map((e) => ({
127
- key: e.d[S(216)],
128
- label: e.d[S(196)],
129
- color: e[S(182)],
130
- value: _(e.d[S(158)], e.d),
131
- detail: me ? l(e.share) : void 0
132
- })), Be = W === null ? null : V[W]?.d[S(216)] ?? null, $ = d("div", {
133
- ...k,
134
- onKeyDown: Ne,
135
- className: S(224),
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 ? 192 : 185),
141
- "aria-label": ye,
142
- "aria-describedby": M + S(178),
140
+ "aria-roledescription": C(P ? 406 : 392),
141
+ "aria-label": ve,
142
+ "aria-describedby": N + C(376),
143
143
  children: [
144
- d(S(179), {
145
- className: S(199),
146
- width: m,
147
- height: m,
144
+ d(C(386), {
145
+ className: "ds-chart__svg",
146
+ width: h,
147
+ height: h,
148
148
  "aria-hidden": !0,
149
- onPointerLeave: we,
150
- children: [Oe && u(S(222), {
149
+ onPointerLeave: Ce,
150
+ children: [De && u(C(347), {
151
151
  className: "ds-pie-chart__track",
152
- d: ie({
153
- cx: F,
154
- cy: F,
155
- outer: I,
156
- inner: L,
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[S(193)]((e) => {
161
- let t = S, n = H.get(e.key), r = n !== void 0;
162
- return u(t(222), {
163
- className: t(184),
164
- d: ie({
165
- cx: F,
166
- cy: F,
167
- outer: I,
168
- inner: L,
160
+ }), ke[C(371)]((e) => {
161
+ let t = C, n = U[t(369)](e[t(375)]), r = n !== void 0;
162
+ return u("path", {
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[t(182)],
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(210) + 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(216)]);
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: "center",
189
- justify: S(197),
190
- className: S(217),
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("div", {
195
- ref: Ce,
196
- className: S(191),
197
- "data-state": S(W === null ? 159 : 205),
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(166) + Me + S(186),
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[S(216)],
206
- label: J.d[S(196)],
207
- color: J[S(182)],
208
- value: _(J.d[S(158)], J.d) + S(187) + l(J[S(167)])
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("span", {
212
- id: M + S(178),
213
- className: S(165),
214
- "aria-live": S(218),
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
- align: S(197),
222
- className: o(S(207), S(208), b),
223
- style: x,
221
+ align: "center",
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: "center",
233
- className: o("ds-chart", "ds-pie-chart", b),
234
- style: x,
235
- children: [$, Re === S(213) && u(S(164), {
236
- className: S(173),
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(180),
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 };
@@ -3,85 +3,88 @@ const e = i;
3
3
  (function(e, t) {
4
4
  let n = i, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(262)) / 1 + parseInt(n(272)) / 2 * (-parseInt(n(265)) / 3) + -parseInt(n(267)) / 4 + parseInt(n(269)) / 5 + parseInt(n(280)) / 6 + -parseInt(n(279)) / 7 + parseInt(n(270)) / 8 * (parseInt(n(264)) / 9) == t) break;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(a, 843360);
12
- var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(271)](t * 1e3) / 1e3)[e(275)]();
11
+ })(s, 339066);
12
+ var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(212)](t * 1e3) / 1e3)[e(215)]();
13
13
  function i(e, t) {
14
- e -= 261;
15
- let n = a(), r = n[e];
16
- i.ePpxrW === void 0 && (i.ojJeJO = function(e) {
14
+ e -= 193;
15
+ let n = s(), r = n[e];
16
+ i.tIOsFJ === void 0 && (i.zfzjEb = function(e) {
17
17
  let t = "", n = "";
18
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);
19
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
20
  return decodeURIComponent(n);
21
- }, i.KalUeR = {}, i.ePpxrW = !0);
22
- let o = n[0];
23
- i.McVpIR !== o && (i.KalUeR = {}, i.McVpIR = o);
24
- let s = i.KalUeR[e];
25
- return s === void 0 ? (r = i.ojJeJO(r), i.KalUeR[e] = r) : r = s, r;
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;
26
26
  }
27
- function a() {
28
- let e = [
29
- "Bwf4",
30
- "mJyXodK4mLDLBujWra",
31
- "mteZn2TXtMDRqq",
32
- "idaG",
33
- "ndC2ntu0mejls0rUrG",
34
- "idaGmcaXia",
35
- "mZK4nJy5nvbfBwzmCG",
36
- "odbHCvfeqxe",
37
- "CM91BMq",
38
- "ntq2mNL4tLviEG",
39
- "ideG",
40
- "BwLU",
41
- "Dg9tDhjPBMC",
42
- "y29Z",
43
- "idaGmsaWia",
44
- "yxnPBG",
45
- "mtaYmdC1otzqyM9HqwS",
46
- "ntiYoty1nfHYBerNra",
47
- "C2LU",
48
- "idaGmsaXia",
49
- "nta5mdzrs2jzugK"
50
- ];
51
- return a = function() {
52
- return e;
53
- }, a();
54
- }
55
- function o({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
56
- let f = e, p = Math.max(0, o), m = Math[f(263)](0, Math[f(274)](s, p)), h = l - c;
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;
57
29
  if (!(h > n) || p <= n) return "";
58
- let g = (e, t) => r(i + e * Math[f(281)](t)) + "," + r(a - e * Math[f(276)](t));
30
+ let g = (e, t) => r(i + e * Math.sin(t)) + "," + r(a - e * Math[f(208)](t));
59
31
  if (h >= t - n) {
60
- let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + f(261) + g(p, Math.PI) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, 0) + "Z";
61
- return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(277) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + " 0 1 0 " + g(m, 0) + "Z";
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";
62
34
  }
63
- let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math.sin(_), y = Math[f(263)](0, u / 2);
35
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(197)](_), y = Math[f(198)](0, u / 2);
64
36
  if (p * v <= y + n) return "";
65
- 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.max(0, Math[f(274)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math[f(263)](0, Math[f(274)](d, b / 2, w)), D = (e, t, n, o) => {
66
- let s = f, c = i + n * Math.sin(e) + t * o * Math[s(276)](e), l = a - n * Math.cos(e) + t * o * Math.sin(e);
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);
67
39
  return r(c) + "," + r(l);
68
- }, O = (e) => Math[f(274)](1, Math[f(263)](0, e)), k = (e) => Math.sqrt(Math[f(263)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(278)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
69
- if (T > n && (P += "A" + r(T) + "," + r(T) + " 0 0 1 " + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + f(266) + +(N - M > Math.PI) + f(273) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(268) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
70
- let F = k((m + E) ** 2 - (y + E) ** 2), I = Math.asin(O((y + E) / (m + E))), L = c + I, R = l - I;
71
- return P += "L" + D(l, -1, F, y), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + g(m, R)), R - L > n && (P += "A" + r(m) + "," + r(m) + f(266) + +(R - L > Math.PI) + f(266) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + f(268) + D(c, 1, F, y)), P + "Z";
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";
72
44
  }
73
- function s(e, t, n, r) {
74
- let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
75
- return (a) => {
76
- if (a <= 0) return 0;
77
- if (a >= 1) return 1;
78
- let o = 0, s = 1, c = a;
45
+ function o(e, t, n, r) {
46
+ let a = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
47
+ return (o) => {
48
+ let s = i;
49
+ if (o <= 0) return 0;
50
+ if (o >= 1) return 1;
51
+ let c = 0, l = 1, u = o;
79
52
  for (let t = 0; t < 24; t++) {
80
- let t = i(e, n, c);
81
- if (Math.abs(t - a) < 1e-5) break;
82
- t < a ? o = c : s = c, c = (o + s) / 2;
53
+ let t = a(e, n, u);
54
+ if (Math[s(204)](t - o) < 1e-5) break;
55
+ t < o ? c = u : l = u, u = (c + l) / 2;
83
56
  }
84
- return i(t, r, c);
57
+ return a(t, r, u);
85
58
  };
86
59
  }
87
- 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 };