@iamfiro/design 0.1.0 → 0.3.0

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 (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +65 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +229 -0
  15. package/lib/components/Calendar/date.js +121 -0
  16. package/lib/components/Card/Card2.js +104 -0
  17. package/lib/components/CardFrame/CardFrame2.js +72 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +53 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +114 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +75 -0
  29. package/lib/components/Combobox/Combobox2.js +229 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +134 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1996 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +558 -0
  37. package/lib/components/DataGrid/panels.js +703 -0
  38. package/lib/components/DataGrid/typeMeta.js +76 -0
  39. package/lib/components/DataGrid/types.js +54 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +118 -0
  42. package/lib/components/Dialog/Dialog2.js +109 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +144 -0
  48. package/lib/components/EmptyState/EmptyState2.js +72 -0
  49. package/lib/components/FileChip/FileChip2.js +118 -0
  50. package/lib/components/FileUpload/FileUpload.js +258 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +69 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +109 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +133 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +223 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +129 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +53 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +66 -0
  77. package/lib/components/PieChart/useArcTween.js +94 -0
  78. package/lib/components/Popover/Popover2.js +112 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +236 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  85. package/lib/components/ScatterChart/scatter.js +83 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +218 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +76 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +360 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +83 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +83 -0
  105. package/lib/components/Toast/Toaster.js +212 -0
  106. package/lib/components/Toast/store.js +129 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +281 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +284 -0
  112. package/lib/hooks/timing.js +55 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +80 -0
  115. package/lib/hooks/useDigitInput.js +105 -0
  116. package/lib/hooks/useDismiss.js +71 -0
  117. package/lib/hooks/useElapsed.js +83 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +61 -0
  120. package/lib/hooks/usePresence.js +60 -0
  121. package/lib/hooks/usePressToOpen.js +69 -0
  122. package/lib/hooks/useScrollLock.js +70 -0
  123. package/lib/hooks/useSelection.js +68 -0
  124. package/lib/index.js +175 -17911
  125. package/lib/primitives/AspectRatio2.js +80 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +70 -0
  128. package/lib/primitives/CopyButton2.js +85 -0
  129. package/lib/primitives/CountBadge2.js +78 -0
  130. package/lib/primitives/Countdown2.js +65 -0
  131. package/lib/primitives/Delta2.js +67 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +68 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +53 -0
  140. package/lib/primitives/MaskedText2.js +120 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +84 -0
  143. package/lib/primitives/SearchInput2.js +84 -0
  144. package/lib/primitives/SelectorButton2.js +97 -0
  145. package/lib/primitives/Spinner2.js +98 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +51 -0
  151. package/lib/primitives/formatElapsed.js +66 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +352 -0
  155. package/lib/primitives/maskValue.js +65 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,246 @@
1
+ "use client";
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(545)) / 1 + -parseInt(n(517)) / 2 + -parseInt(n(516)) / 3 * (parseInt(n(515)) / 4) + -parseInt(n(531)) / 5 + parseInt(n(488)) / 6 * (parseInt(n(499)) / 7) + -parseInt(n(498)) / 8 * (-parseInt(n(522)) / 9) + parseInt(n(529)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(c, 261069);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { ColorDot as n } from "../../primitives/ColorDot2.js";
14
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
+ import { cx as a } from "../../primitives/index.js";
16
+ import { ChartLegend as o, ChartTooltip as ee } from "../Chart/ChartParts.js";
17
+ import { chartColor as te, formatNumber as ne, formatPercent as s } from "../Chart/chart2.js";
18
+ function c() {
19
+ let e = /* @__PURE__ */ "ChGSia.C2HHCMu.ntm4mtu4meLtv0HkDq.y29SB3i.mJiXntyZnwzbBg5lrW.C3bHBG.64+e64sBioYWQo2kUa.Cgf0Aa.BgvUz3rO.C3zN.CMvKDwnL.DgvYDgLHCNK.Cg9SAxrL.DMfSDwu.7jUqioYWQo2kUa.C2LKzq.zgL2.B25lzxLeB3DU.mZu5otu5suDMDNzM.Bwf4.BgfIzwW.mJeWzuPQDwrd.zhmTCgLLlwnOyxj0x19Jzw50zxi.BwfW.zhmTCgLLlwnOyxj0x19SzwDLBMq.BwLK.A2v5.zhmTCgLLlwnOyxj0x19ZzwDTzw50.BNvTyMvYlxHS.zhmTCgLLlwnOyxj0x19Jyxb0Aw9U.imk3ia.mtuYCeDzv21J.mZuYntjmBwvws0q.zhmTy2HHCNq.zhmTCgLLlwnOyxj0x19YzwfKB3v0.B3bLBG.qxjYB3DsAwDODa.lwXPDMu.y2vUDgvY.ChGG.BwLU.CgLL.C2vJB25Kyxj5.CM91BMq.zhmTy2HHCNrFx3bSB3qGzhmTCgLLlwnOyxj0x19WBg90.qxjYB3Dmzwz0.ChjLDMvUDerLzMf1Bhq.yM90Dg9T.mtyXnZGWnevuzgzHsq.m3P1EeniEq.ntaWmZK2vuDWreHP.zhmTy2HHCNrFx3nY.Aw5KzxHpzG.z2v0.zMLYC3q.mtm0nZq4DfjPBe1o.zhmTy2HHCNrFx3n2zW.ChGP.y2fWDgLVBG.BNvTyMvYlw1K".split(".");
20
+ return c = function() {
21
+ return e;
22
+ }, c();
23
+ }
24
+ function l(e, t) {
25
+ e -= 486;
26
+ let n = c(), r = n[e];
27
+ l.nyzRdk === void 0 && (l.AsGQVS = function(e) {
28
+ let t = "", n = "";
29
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
30
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
+ return decodeURIComponent(n);
32
+ }, l.xMdFpv = {}, l.nyzRdk = !0);
33
+ let i = n[0];
34
+ l.HsJDpt !== i && (l.xMdFpv = {}, l.HsJDpt = i);
35
+ let a = l.xMdFpv[e];
36
+ return a === void 0 ? (r = l.AsGQVS(r), l.xMdFpv[e] = r) : r = a, r;
37
+ }
38
+ import { useChartInteraction as re } from "../Chart/useChartInteraction.js";
39
+ import { segmentPath as ie } from "./arc.js";
40
+ import { useArcTween as ae } from "./useArcTween.js";
41
+ /* empty css */
42
+ import { useId as oe, useState as se } from "react";
43
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
44
+ var f = 8, p = Math.PI * 2, ce = (t) => t >= 260 ? e(495) : t >= 168 ? "number-lg" : e(526);
45
+ function m({ data: c, variant: l, 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 = "원 차트", className: b, style: x }) {
46
+ let S = e, C = c.filter((e) => e.value > 0), w = C[S(535)], { 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(521)
52
+ }), [A, j] = se(null), M = oe(), N = l === S(508) || l === 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.min(.95, h)) : Math.max(8, Math[S(510)](m * .09))), L = N ? 0 : Math[S(486)](0, I - Math[S(507)](Te, I)), Ee = N ? I * .7 : (I + L) / 2, De = w > 1 || g !== void 0 ? Math[S(486)](0, ue) * Math.PI * Ee / 180 : 0, Oe = fe ?? g !== void 0, R = C[S(537)]((e, t) => e + t[S(540)], 0), ke = g === void 0 ? R : Math[S(486)](g, R), z = (e) => e / (ke || 1), B = C.reduce((e, t, n) => [...e, (e[n - 1] ?? 0) + (n ? C[n - 1][S(540)] : 0)], []), V = C[S(490)]((e, t) => {
53
+ let n = S, r = c[n(519)](e), i = z(B[t]) * p, a = z(B[t] + e[n(540)]) * p;
54
+ return {
55
+ d: e,
56
+ color: te(e.color, r),
57
+ a0: i,
58
+ a1: a,
59
+ mid: (i + a) / 2,
60
+ share: z(e[n(540)])
61
+ };
62
+ }), Ae = ae(V.map((e) => ({
63
+ key: e.d.key,
64
+ a0: e.a0,
65
+ a1: e.a1,
66
+ color: e[S(530)]
67
+ }))), H = new Map(V.map((e, t) => [e.d.key, t])), U = A === null ? -1 : H.get(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(492)]),
69
+ y: F - Y * Math.cos(J.mid)
70
+ } : {
71
+ x: 0,
72
+ y: 0
73
+ }, je = !J || Math.sin(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(493)] === t(503) || e[t(493)] === "ArrowDown", r = e[t(493)] === t(512) || e[t(493)] === "ArrowUp";
75
+ w && (n || r) ? (e[t(513)](), be(T === null ? n ? 0 : w - 1 : ((T + (n ? 1 : -1)) % w + w) % w)) : k[t(544)](e);
76
+ }, Pe = G && W !== null ? G.d[S(487)] + " " + _(G.d[S(540)], G.d) + ", " + s(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(530)],
83
+ share: G[S(528)]
84
+ } : null,
85
+ formatValue: _
86
+ }, Q = K ? void 0 : G, Fe = g === void 0 ? _(R) : s(z(R)), Ie = L * .84, Le = !N && (typeof v == "function" ? v(K ? {
87
+ ...Z,
88
+ active: null
89
+ } : Z) : d(i, {
90
+ gap: 0,
91
+ align: S(505),
92
+ className: S(501),
93
+ children: [u(t, {
94
+ variant: ce(m),
95
+ as: S(543),
96
+ truncate: !0,
97
+ children: Q ? _(Q.d[S(540)], Q.d) : pe ?? Fe
98
+ }), Q ? d(r, {
99
+ gap: 1,
100
+ wrap: !1,
101
+ className: S(496),
102
+ children: [
103
+ u(n, {
104
+ color: Q[S(530)],
105
+ size: 8
106
+ }),
107
+ u(t, {
108
+ variant: "caption",
109
+ tone: S(509),
110
+ truncate: !0,
111
+ children: Q.d.label
112
+ }),
113
+ m >= 140 && u(t, {
114
+ variant: S(525),
115
+ tone: S(538),
116
+ numeric: !0,
117
+ children: s(Q[S(528)])
118
+ })
119
+ ]
120
+ }) : v != null && u(t, {
121
+ variant: "caption",
122
+ tone: S(509),
123
+ truncate: !0,
124
+ children: v
125
+ })]
126
+ }, Q?.d[S(493)] ?? "__total")), Re = y === !0 ? S(542) : y === !1 ? null : y, ze = V[S(490)]((e) => ({
127
+ key: e.d.key,
128
+ label: e.d[S(487)],
129
+ color: e[S(530)],
130
+ value: _(e.d[S(540)], e.d),
131
+ detail: me ? s(e[S(528)]) : void 0
132
+ })), Be = W === null ? null : V[W]?.d[S(493)] ?? null, $ = d("div", {
133
+ ...k,
134
+ onKeyDown: Ne,
135
+ className: S(511),
136
+ style: {
137
+ width: m,
138
+ height: m
139
+ },
140
+ "aria-roledescription": S(N ? 541 : 533),
141
+ "aria-label": ye,
142
+ "aria-describedby": M + S(504),
143
+ children: [
144
+ d(S(536), {
145
+ className: S(523),
146
+ width: m,
147
+ height: m,
148
+ "aria-hidden": !0,
149
+ onPointerLeave: we,
150
+ children: [Oe && u(S(534), {
151
+ className: "ds-pie-chart__track",
152
+ d: ie({
153
+ cx: F,
154
+ cy: F,
155
+ outer: I,
156
+ inner: L,
157
+ a0: 0,
158
+ a1: p
159
+ })
160
+ }), Ae[S(490)]((e) => {
161
+ let t = S, n = H[t(520)](e.key), r = n !== void 0;
162
+ return u("path", {
163
+ className: t(494),
164
+ d: ie({
165
+ cx: F,
166
+ cy: F,
167
+ outer: I,
168
+ inner: L,
169
+ a0: e.a0,
170
+ a1: e.a1,
171
+ gap: De,
172
+ cornerRadius: de
173
+ }),
174
+ fill: e[t(530)],
175
+ "data-active": r && W === n || void 0,
176
+ "data-dimmed": W !== null && W !== n || void 0,
177
+ style: {
178
+ transformOrigin: F + t(506) + F + "px",
179
+ "--_pop": (I + P) / I
180
+ },
181
+ onPointerMove: n === void 0 ? void 0 : () => O(n),
182
+ onPointerDown: n === void 0 ? void 0 : () => O(n)
183
+ }, e[t(493)]);
184
+ })]
185
+ }),
186
+ Le && u(i, {
187
+ gap: 0,
188
+ align: "center",
189
+ justify: "center",
190
+ className: S(489),
191
+ style: { inset: F - Ie },
192
+ children: Le
193
+ }),
194
+ K && u(S(543), {
195
+ ref: Ce,
196
+ className: "ds-chart__tip",
197
+ "data-state": W === null ? "closed" : S(502),
198
+ "data-settled": Se || void 0,
199
+ style: {
200
+ transform: "translate(" + je + S(527) + Me + S(524),
201
+ minWidth: 0
202
+ },
203
+ "aria-hidden": !0,
204
+ children: u(ee, { rows: J ? [{
205
+ key: J.d[S(493)],
206
+ label: J.d[S(487)],
207
+ color: J[S(530)],
208
+ value: _(J.d.value, J.d) + S(497) + s(J[S(528)])
209
+ }] : [] })
210
+ }),
211
+ u(S(532), {
212
+ id: M + S(504),
213
+ className: S(518),
214
+ "aria-live": S(539),
215
+ children: Pe
216
+ })
217
+ ]
218
+ });
219
+ return Re === S(514) ? d(i, {
220
+ gap: 4,
221
+ align: S(505),
222
+ className: a(S(500), "ds-pie-chart", b),
223
+ style: x,
224
+ children: [$, u(o, {
225
+ items: ze,
226
+ focused: Be,
227
+ onFocusChange: j
228
+ })]
229
+ }) : d(r, {
230
+ gap: 8,
231
+ wrap: !0,
232
+ align: S(505),
233
+ className: a(S(500), "ds-pie-chart", b),
234
+ style: x,
235
+ children: [$, Re === S(542) && u(S(543), {
236
+ className: S(491),
237
+ children: u(o, {
238
+ layout: "list",
239
+ items: ze,
240
+ focused: Be,
241
+ onFocusChange: j
242
+ })
243
+ })]
244
+ });
245
+ }
246
+ export { m as PieChart };
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ const e = s;
3
+ (function(e, t) {
4
+ let n = s, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(312)) / 1 + -parseInt(n(318)) / 2 * (-parseInt(n(323)) / 3) + parseInt(n(314)) / 4 * (-parseInt(n(322)) / 5) + parseInt(n(308)) / 6 * (-parseInt(n(329)) / 7) + parseInt(n(321)) / 8 * (parseInt(n(310)) / 9) + -parseInt(n(327)) / 10 * (-parseInt(n(317)) / 11) + -parseInt(n(306)) / 12 * (-parseInt(n(325)) / 13) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(i, 921157);
12
+ var t = Math.PI * 2, n = 1e-6, r = (t) => (Math[e(326)](t * 1e3) / 1e3)[e(328)]();
13
+ function i() {
14
+ let e = /* @__PURE__ */ "otCWBLj2DNb2.Dg9tDhjPBMC.mta5ntCZoe9fv3fHrG.y29Z.ywjZ.nJi0yMfhq0Tt.idaGmcaXia.mZzvvuzQtuu.BwLU.mZGXmJK0AfDUAfvM.yxnPBG.mZGZnJKZzurXEwPi.idaGmsaWia.ode5mJmYEMHzr2Hh.C2LU.Bwf4.mJa1nZC3q3LsCMno.mJjfELbrtuu.idaG.ideG.mtzJCfDct2G.mZbHuK91sxq.mty4mZnvrvDxqxi.idaGmsaXia.mtG2mtiXBeLurMjf.CM91BMq".split(".");
15
+ return i = function() {
16
+ return e;
17
+ }, i();
18
+ }
19
+ function a({ cx: i, cy: a, outer: o, inner: s, a0: c, a1: l, gap: u = 0, cornerRadius: d = 0 }) {
20
+ let f = e, p = Math[f(316)](0, o), m = Math[f(316)](0, Math.min(s, p)), h = l - c;
21
+ if (!(h > n) || p <= n) return "";
22
+ let g = (e, t) => r(i + e * Math[f(315)](t)) + "," + r(a - e * Math[f(330)](t));
23
+ if (h >= t - n) {
24
+ let e = "M" + g(p, 0) + "A" + r(p) + "," + r(p) + " 0 1 1 " + g(p, Math.PI) + "A" + r(p) + "," + r(p) + f(324) + g(p, 0) + "Z";
25
+ return m <= n ? e : e + "M" + g(m, 0) + "A" + r(m) + "," + r(m) + f(313) + g(m, Math.PI) + "A" + r(m) + "," + r(m) + f(313) + g(m, 0) + "Z";
26
+ }
27
+ let _ = h / 2, v = _ >= Math.PI / 2 ? 1 : Math[f(315)](_), y = Math.max(0, u / 2);
28
+ if (p * v <= y + n) return "";
29
+ 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(309)](d, (x ? p - S : b) / 2, C)), E = x ? 0 : Math.max(0, Math[f(309)](d, b / 2, w)), D = (e, t, n, o) => {
30
+ let s = f, c = i + n * Math[s(315)](e) + t * o * Math[s(330)](e), l = a - n * Math[s(330)](e) + t * o * Math[s(315)](e);
31
+ return r(c) + "," + r(l);
32
+ }, O = (e) => Math[f(309)](1, Math[f(316)](0, e)), k = (e) => Math.sqrt(Math[f(316)](0, e)), A = k((p - T) ** 2 - (y + T) ** 2), j = Math[f(311)](O((y + T) / (p - T))), M = c + j, N = l - j, P = "M" + D(c, 1, A, y);
33
+ if (T > n && (P += "A" + r(T) + "," + r(T) + f(307) + g(p, M)), N - M > n && (P += "A" + r(p) + "," + r(p) + " 0 " + +(N - M > Math.PI) + f(320) + g(p, N)), T > n && (P += "A" + r(T) + "," + r(T) + f(307) + D(l, -1, A, y)), x) return P + "L" + g(S, c + _) + "Z";
34
+ let F = k((m + E) ** 2 - (y + E) ** 2), I = Math.asin(O((y + E) / (m + E))), L = c + I, R = l - I;
35
+ 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(319) + +(R - L > Math.PI) + f(319) + g(m, L)), E > n && (P += "A" + r(E) + "," + r(E) + " 0 0 1 " + D(c, 1, F, y)), P + "Z";
36
+ }
37
+ function o(e, t, n, r) {
38
+ let i = (e, t, n) => 3 * e * n * (1 - n) ** 2 + 3 * t * n * n * (1 - n) + n ** 3;
39
+ return (a) => {
40
+ let o = s;
41
+ if (a <= 0) return 0;
42
+ if (a >= 1) return 1;
43
+ let c = 0, l = 1, u = a;
44
+ for (let t = 0; t < 24; t++) {
45
+ let t = i(e, n, u);
46
+ if (Math[o(305)](t - a) < 1e-5) break;
47
+ t < a ? c = u : l = u, u = (c + l) / 2;
48
+ }
49
+ return i(t, r, u);
50
+ };
51
+ }
52
+ function s(e, t) {
53
+ e -= 305;
54
+ let n = i(), r = n[e];
55
+ s.uEGKsv === void 0 && (s.cweIEa = function(e) {
56
+ let t = "", n = "";
57
+ 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);
58
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
59
+ return decodeURIComponent(n);
60
+ }, s.axOWxS = {}, s.uEGKsv = !0);
61
+ let a = n[0];
62
+ s.FmdhNj !== a && (s.axOWxS = {}, s.FmdhNj = a);
63
+ let o = s.axOWxS[e];
64
+ return o === void 0 ? (r = s.cweIEa(r), s.axOWxS[e] = r) : r = o, r;
65
+ }
66
+ export { o as cubicBezier, a as segmentPath };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = s, r = e();
4
+ for (;;) try {
5
+ if (parseInt(n(309)) / 1 + -parseInt(n(327)) / 2 * (parseInt(n(307)) / 3) + -parseInt(n(311)) / 4 * (parseInt(n(310)) / 5) + -parseInt(n(314)) / 6 * (parseInt(n(319)) / 7) + -parseInt(n(308)) / 8 * (-parseInt(n(312)) / 9) + -parseInt(n(318)) / 10 + -parseInt(n(320)) / 11 * (-parseInt(n(324)) / 12) == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(o, 195380);
11
+ import { cubicBezier as e } from "./arc.js";
12
+ import { useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
13
+ var a = e(.32, .72, 0, 1);
14
+ function o() {
15
+ let e = [
16
+ "mJr1DfjiA0e",
17
+ "Dg9gAxHLza",
18
+ "BwLU",
19
+ "mJjPwuzLrNe",
20
+ "mZmXmtfTsNfiywq",
21
+ "mZeYmteYBLfhvMrY",
22
+ "nJu2nZzfr3jzq1C",
23
+ "nw9vt1nNAq",
24
+ "odq3otG4AeTzzhzo",
25
+ "otb5zuzjtvG",
26
+ "zMLSDgvY",
27
+ "mtK3ndyZmePiEezXCq",
28
+ "y3vYCMvUDa",
29
+ "A2v5",
30
+ "AM9PBG",
31
+ "mJi1nJC5mePvqK1oBa",
32
+ "n1bfv3z2EG",
33
+ "mZq1mJyZnM1tDK9Pzq",
34
+ "BwfW",
35
+ "z2v0",
36
+ "AgfZ"
37
+ ];
38
+ return o = function() {
39
+ return e;
40
+ }, o();
41
+ }
42
+ function s(e, t) {
43
+ e -= 307;
44
+ let n = o(), r = n[e];
45
+ s.jqNekE === void 0 && (s.lbQNuc = function(e) {
46
+ let t = "", n = "";
47
+ 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);
48
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
49
+ return decodeURIComponent(n);
50
+ }, s.SKSwQQ = {}, s.jqNekE = !0);
51
+ let i = n[0];
52
+ s.fBfBsn !== i && (s.SKSwQQ = {}, s.fBfBsn = i);
53
+ let a = s.SKSwQQ[e];
54
+ return a === void 0 ? (r = s.lbQNuc(r), s.SKSwQQ[e] = r) : r = a, r;
55
+ }
56
+ function c(e, { enter: o = 900, update: c = 600 } = {}) {
57
+ let l = s, [u, d] = i(() => e.map((e) => ({
58
+ ...e,
59
+ a0: 0,
60
+ a1: 0
61
+ }))), f = r(u), p = r(e);
62
+ n(() => {
63
+ p.current = e;
64
+ });
65
+ let m = r(!1), h = e[l(321)]((e) => e[l(316)] + ":" + e.a0[l(325)](5) + ":" + e.a1.toFixed(5) + ":" + e.color)[l(317)]("|");
66
+ return t(() => {
67
+ let e = l, t = p[e(315)], n = !m[e(315)], r = new Map(f[e(315)].map((e) => [e.key, e])), i = new Set(t[e(321)]((t) => t[e(316)])), s = f.current[e(313)]((t) => !i[e(323)](t.key) && t.a1 - t.a0 > 1e-4).map((e) => {
68
+ let t = (e.a0 + e.a1) / 2;
69
+ return {
70
+ ...e,
71
+ a0: t,
72
+ a1: t
73
+ };
74
+ }), u = [...t, ...s], h = u.map((t) => r[e(322)](t[e(316)]) ?? {
75
+ ...t,
76
+ a1: t.a0
77
+ }), g = n ? o : c, _ = 0, v = 0, y = (n) => {
78
+ let r = e;
79
+ v ||= n;
80
+ let i = Math[r(326)](1, (n - v) / g), o = a(i), s = i < 1 ? u[r(321)]((e, t) => ({
81
+ ...e,
82
+ a0: h[t].a0 + (e.a0 - h[t].a0) * o,
83
+ a1: h[t].a1 + (e.a1 - h[t].a1) * o
84
+ })) : t;
85
+ f.current = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m[r(315)] = !0;
86
+ };
87
+ return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
88
+ }, [
89
+ h,
90
+ o,
91
+ c
92
+ ]), u;
93
+ }
94
+ export { c as useArcTween };
@@ -0,0 +1,112 @@
1
+ "use client";
2
+ const e = l;
3
+ (function(e, t) {
4
+ let n = l, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(494)) / 1 * (-parseInt(n(505)) / 2) + parseInt(n(492)) / 3 + -parseInt(n(504)) / 4 * (parseInt(n(496)) / 5) + -parseInt(n(519)) / 6 + parseInt(n(521)) / 7 * (-parseInt(n(487)) / 8) + parseInt(n(502)) / 9 + parseInt(n(491)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(o, 566459);
12
+ import { TIMING as t } from "../../hooks/timing.js";
13
+ import { usePresence as n } from "../../hooks/usePresence.js";
14
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
15
+ import { cx as i } from "../../primitives/index.js";
16
+ import { useFloating as a } from "../../hooks/useFloating.js";
17
+ function o() {
18
+ let e = /* @__PURE__ */ "y2fSyYGXmdb2DYaTide2ChGP.A2v5.y2XPy2S.mJq2nZKZmKjzEfzuta.oMzVy3vZlxzPC2LIBgu.mtC3nJe4wxDyvwfb.zM9JDxm.B3bLBG.zgvMyxvSDfbYzxzLBNrLza.y3vYCMvUDa.mtznte1Ir0y.y29UDgfPBNm.DgfYz2v0.C3rHCNq.mti5nJeXmJb5wMvTqxy.mJG3ndCYouzKsKPPAa.Bw91C2u.ntK4ntr0txHwDum.Bw91BNrLza.mtKZnti1D21izuzO.zhmTzMXVyxrPBMC.yM9KEq.Ag92zxjjBNrLBNq.zhmTCg9WB3zLCI1HBMnOB3i.rxnJyxbL.nZuWmZaZt2LmCePY.C2v0vgLTzw91Da.otjfCxDSzeu.mtrJANveCg8.zgL2.ChjLDMvUDerLzMf1Bhq.zhmTzMXVyxrPBMCTlxbHzc0.y2XVC2LUzW.Ag92zxjhCMfJzq.Cg9PBNrLCLr5Cgu.Bwf0y2HLCW.Ag92zxi.C3bHBG.y2XLyxjuAw1LB3v0".split(".");
19
+ return o = function() {
20
+ return e;
21
+ }, o();
22
+ }
23
+ import { useDismiss as s } from "../../hooks/useDismiss.js";
24
+ import { focusableIn as c } from "../../hooks/useFocusTrap.js";
25
+ function l(e, t) {
26
+ e -= 483;
27
+ let n = o(), r = n[e];
28
+ l.YggWSb === void 0 && (l.LdoTOk = function(e) {
29
+ let t = "", n = "";
30
+ 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);
31
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
32
+ return decodeURIComponent(n);
33
+ }, l.VkndSs = {}, l.YggWSb = !0);
34
+ let i = n[0];
35
+ l.FGnClq !== i && (l.VkndSs = {}, l.FGnClq = i);
36
+ let a = l.VkndSs[e];
37
+ return a === void 0 ? (r = l.LdoTOk(r), l.VkndSs[e] = r) : r = a, r;
38
+ }
39
+ /* empty css */
40
+ import { useEffect as u, useRef as d } from "react";
41
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
42
+ import { createPortal as h } from "react-dom";
43
+ var g = 160;
44
+ function _({ trigger: o, children: l, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = e(518), align: x = e(490), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
+ let D = e, [O, k] = r(_, v, y), A = n(O, g), j = d(null), M = d(null), N = d(0), { style: P, side: F } = a(j, A[D(495)], {
46
+ matchWidth: !1,
47
+ align: x,
48
+ panelRef: M,
49
+ maxHeight: 560
50
+ });
51
+ s(O, [j, M], () => k(!1)), u(() => () => window[D(515)](N[D(486)]), []), u(() => {
52
+ let e = D;
53
+ if (!O || b !== e(518) || !w) return;
54
+ let t = requestAnimationFrame(() => {
55
+ let t = e, n = M.current;
56
+ n && (c(n)[0] ?? n)[t(483)]({ preventScroll: !0 });
57
+ });
58
+ return () => cancelAnimationFrame(t);
59
+ }, [
60
+ O,
61
+ b,
62
+ w
63
+ ]), u(() => {
64
+ let e = D;
65
+ !O && M[e(486)]?.[e(488)](document.activeElement) && j.current && c(j[e(486)])[0]?.focus({ preventScroll: !0 });
66
+ }, [O]);
67
+ let I = () => k(!1), L = (e) => {
68
+ let t = D, n = e.relatedTarget;
69
+ j.current?.[t(488)](n) || M.current?.[t(488)](n) || k(!1);
70
+ }, R = (e) => {
71
+ let t = D;
72
+ e[t(517)] === t(501) && O && !e[t(485)] && (e[t(507)](), I());
73
+ }, z = b === D(513) ? {
74
+ onPointerEnter: (e) => {
75
+ let n = D;
76
+ e[n(511)] === n(493) && (window[n(515)](N[n(486)]), N[n(486)] = window[n(503)](() => k(!0), O ? 0 : t[n(499)]));
77
+ },
78
+ onPointerLeave: (e) => {
79
+ let n = D;
80
+ e.pointerType === n(493) && (window[n(515)](N[n(486)]), N[n(486)] = window[n(503)](() => k(!1), t[n(510)]));
81
+ }
82
+ } : {};
83
+ return m(f, { children: [p(D(514), {
84
+ ref: j,
85
+ className: D(500),
86
+ onClick: b === D(518) ? () => k(!O) : void 0,
87
+ onFocus: b === D(513) ? (e) => e[D(489)][D(512)](D(520)) && k(!0) : void 0,
88
+ onBlur: b === D(513) ? L : void 0,
89
+ onKeyDown: R,
90
+ "aria-expanded": O,
91
+ ...z,
92
+ children: o
93
+ }), A[D(495)] && h(p(D(506), {
94
+ ref: M,
95
+ role: "dialog",
96
+ "aria-label": E,
97
+ tabIndex: -1,
98
+ className: i(D(497), "ds-scroll", D(508) + C, T),
99
+ "data-side": F,
100
+ "data-state": A[D(509)] ? "closed" : D(484),
101
+ style: {
102
+ ...P,
103
+ width: S,
104
+ maxWidth: D(516)
105
+ },
106
+ onKeyDown: R,
107
+ onBlur: b === D(513) ? L : void 0,
108
+ ...z,
109
+ children: typeof l == "function" ? l(() => I()) : l
110
+ }), document[D(498)])] });
111
+ }
112
+ export { _ as Popover };