@iamfiro/design 0.1.0 → 0.3.1

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 +66 -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 +90 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +228 -0
  15. package/lib/components/Calendar/date.js +118 -0
  16. package/lib/components/Card/Card2.js +103 -0
  17. package/lib/components/CardFrame/CardFrame2.js +67 -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 +48 -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 +111 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +609 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +70 -0
  29. package/lib/components/Combobox/Combobox2.js +228 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +110 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1998 -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 +557 -0
  37. package/lib/components/DataGrid/panels.js +701 -0
  38. package/lib/components/DataGrid/typeMeta.js +75 -0
  39. package/lib/components/DataGrid/types.js +53 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +119 -0
  42. package/lib/components/Dialog/Dialog2.js +110 -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 +393 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +145 -0
  48. package/lib/components/EmptyState/EmptyState2.js +70 -0
  49. package/lib/components/FileChip/FileChip2.js +94 -0
  50. package/lib/components/FileUpload/FileUpload.js +259 -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 +72 -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 +110 -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 +132 -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 +222 -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 +128 -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 +52 -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 +90 -0
  77. package/lib/components/PieChart/useArcTween.js +92 -0
  78. package/lib/components/Popover/Popover2.js +111 -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 +238 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +99 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +355 -0
  85. package/lib/components/ScatterChart/scatter.js +85 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +217 -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 +84 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +71 -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 +357 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +81 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +81 -0
  105. package/lib/components/Toast/Toaster.js +213 -0
  106. package/lib/components/Toast/store.js +128 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +283 -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 +286 -0
  112. package/lib/hooks/timing.js +57 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +75 -0
  115. package/lib/hooks/useDigitInput.js +103 -0
  116. package/lib/hooks/useDismiss.js +69 -0
  117. package/lib/hooks/useElapsed.js +85 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +85 -0
  120. package/lib/hooks/usePresence.js +58 -0
  121. package/lib/hooks/usePressToOpen.js +70 -0
  122. package/lib/hooks/useScrollLock.js +71 -0
  123. package/lib/hooks/useSelection.js +65 -0
  124. package/lib/index.js +176 -17911
  125. package/lib/primitives/AspectRatio2.js +76 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +71 -0
  128. package/lib/primitives/CopyButton2.js +86 -0
  129. package/lib/primitives/CountBadge2.js +80 -0
  130. package/lib/primitives/Countdown2.js +61 -0
  131. package/lib/primitives/Delta2.js +92 -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 +69 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +55 -0
  140. package/lib/primitives/MaskedText2.js +121 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +82 -0
  143. package/lib/primitives/SearchInput2.js +85 -0
  144. package/lib/primitives/SelectorButton2.js +96 -0
  145. package/lib/primitives/Spinner2.js +94 -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 +54 -0
  151. package/lib/primitives/formatElapsed.js +63 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +351 -0
  155. package/lib/primitives/maskValue.js +69 -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,243 @@
1
+ "use client";
2
+ const e = a;
3
+ (function(e, t) {
4
+ let n = a, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(438)) / 1 + -parseInt(n(476)) / 2 + parseInt(n(477)) / 3 + parseInt(n(460)) / 4 * (-parseInt(n(483)) / 5) + parseInt(n(484)) / 6 + parseInt(n(447)) / 7 + parseInt(n(463)) / 8 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(t, 665930);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "Bwf4.DhjHBNnSyxrLka.rw50zxi.zMXVB3i.C29YDa.zhmTyMfYlwnOyxj0x190AwnRlwXHyMvS.DMfSDwu.mtiWnJGWmgjdq05jzW.BwLKzgXL.zhmTy2HHCNrFx3rPCa.zgL2.zw5K.zhmTy2HHCNrFx2HPDa.z2v0qM91BMrPBMDdBgLLBNrszwn0.C29Tzq.CMvJDa.Dgv4Da.CMv2zxjZzq.zhmTyMfYlwnOyxj0x19IyxjZ.66Ej64YaioYWQo2kUa.mJmZmJr0u0r1wvu.zhmTy2HHCNrFx3n2zW.y29SB3i.mJaXnZqWotzcu05RuuG.B3bLBG.y2XVC2vK.zhmTy2HHCNrFx2DYAwq.BgLUzq.icJSHkdTG53RKkGP.zhmTyMfYlwnOyxj0x190AwnRCW.Aw5JBhvKzxm.BwfW.BwLU.CMvKDwnL.Cgf0Aa.B25lzxLeB3DU.otK1nZK2rMrnCfDx.mZy2odi4wurntw92.C3bHBG.zM9VDgvY.zhmTy2HHCNrFx3nY.CMLNAhq.zhmTy2HHCNrFx3bSB3q.mtaXnvviC0vNvG.nZe0mtGWwMrXrwDp.zhmTy2HHCNrFx2f4Axm.BgfIzwW.AM9PBG.lwXPDMu.y3vYCMvUDfrHCMDLDa.BgvUz3rO.BgvMDa.DhjHBNnSyxrLwcG.C3zN.C2vYAwvZ.A2v5.Dg90ywW.zhmTy2HHCNq.y2XPzw50wa.zhmTyMfYlwnOyxj0x190AwnR.zMLSDgvY.zhmTyMfYlwnOyxj0x19Iyxi.ntG3otq3CwnbDwHZ.ChGP".split(".");
14
+ return t = function() {
15
+ return e;
16
+ }, t();
17
+ }
18
+ import { Stack as n } from "../../primitives/Layout2.js";
19
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
20
+ import { cx as i } from "../../primitives/index.js";
21
+ function a(e, n) {
22
+ e -= 422;
23
+ let r = t(), i = r[e];
24
+ a.XyunHx === void 0 && (a.cVVYKW = function(e) {
25
+ let t = "", n = "";
26
+ 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);
27
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
+ return decodeURIComponent(n);
29
+ }, a.WRTeMa = {}, a.XyunHx = !0);
30
+ let o = r[0];
31
+ a.DrhgDy !== o && (a.WRTeMa = {}, a.DrhgDy = o);
32
+ let s = a.WRTeMa[e];
33
+ return s === void 0 ? (i = a.cVVYKW(i), a.WRTeMa[e] = i) : i = s, i;
34
+ }
35
+ import { ChartLegend as o, ChartTooltip as s } from "../Chart/ChartParts.js";
36
+ import { axisGutter as c, barPath as ee, chartColor as l, formatCompact as u, formatNumber as te, labelStep as ne, niceTicks as d, numberAt as f } from "../Chart/chart2.js";
37
+ import { useChartInteraction as p } from "../Chart/useChartInteraction.js";
38
+ /* empty css */
39
+ import { useId as re, useMemo as ie, useState as ae } from "react";
40
+ import { Fragment as oe, jsx as m, jsxs as h } from "react/jsx-runtime";
41
+ var g = 8, se = 28, ce = 44, _ = 8, v = 3, le = 4;
42
+ function y({ data: t, xKey: a, series: y, height: b = 240, stacked: x, segmentGap: ue = 0, yTickCount: de = 3, yMax: fe, yTicks: S, yAxis: C = e(427), formatValue: w = te, formatAxisValue: pe = u, formatX: T = (e) => String(e[a] ?? ""), formatTitle: me, xIcon: E, showTotal: he = x, totalPlacement: ge = "footer", tooltipLeading: _e, tooltipSort: ve = e(430), legend: ye = !0, activeIndex: be, defaultActiveIndex: xe, onActiveIndexChange: Se, selectable: Ce, selected: we, defaultSelected: D = null, onSelectedChange: O, "aria-label": Te = e(459), className: Ee, style: De }) {
43
+ let k = e, A = t[k(426)], { active: j, open: M, shown: N, settled: Oe, width: P, tipRef: ke, tipSize: Ae, hover: je, leave: Me, plotProps: Ne } = p({
44
+ count: A,
45
+ activeIndex: be,
46
+ defaultActiveIndex: xe,
47
+ onActiveIndexChange: Se
48
+ }), F = Ce ?? (we !== void 0 || D !== null || O !== void 0), [I, Pe] = r(we, D, O), L = F && I !== null && I < A ? I : null, [R, Fe] = ae(null), Ie = re(), z = ie(() => {
49
+ let e = k;
50
+ if (S?.[e(426)]) return S;
51
+ let n = t[e(471)]((t) => y[e(471)]((n) => Math[e(440)](0, f(t, n[e(431)]) ?? 0))), r = fe ?? Math[e(440)](0, ...n.map((t) => x ? t.reduce((e, t) => e + t, 0) : Math[e(440)](0, ...t)));
52
+ return d(r, de);
53
+ }, [
54
+ t,
55
+ y,
56
+ x,
57
+ fe,
58
+ S,
59
+ de
60
+ ]), Le = Math[k(440)](...z) || 1, Re = E ? ce : se, ze = c(z[k(471)](pe)), B = Math[k(440)](0, P - ze), V = C === "right" ? 0 : ze, H = b - g - Re, U = g + H, W = A ? B / A : 0, G = (e) => V + e * W, K = (e) => Math[k(440)](0, e) / Le * H, Be = ne(A, B, E ? 40 : 64), q = Math.min(W * .64, x ? 48 : 24 * y.length + v * (y[k(426)] - 1)), Ve = x ? q : Math[k(440)](1, (q - v * (y[k(426)] - 1)) / Math[k(440)](1, y.length)), He = t.flatMap((e, t) => {
61
+ let n = k, r = 0, i = G(t) + (W - q) / 2, a = y.map((t, r) => ({
62
+ s: t,
63
+ j: r,
64
+ v: f(e, t[n(431)])
65
+ }))[n(436)]((e) => e.v !== null && e.v > 0), o = a[a[n(426)] - 1]?.j;
66
+ return y.flatMap((a, s) => {
67
+ let c = n, l = f(e, a[c(431)]);
68
+ if (l === null || l <= 0) return [];
69
+ let u = K(l), te = x ? i : i + s * (Ve + v), ne = x ? U - K(r) - u : U - u;
70
+ r += l;
71
+ let d = !x || s === o, p = d ? 0 : Math[c(472)](ue, Math[c(440)](0, u - 1));
72
+ return [{
73
+ key: t + "-" + a[c(431)],
74
+ i: t,
75
+ s: a,
76
+ j: s,
77
+ d: ee(te, ne + p, Ve, u - p, d ? le : 0)
78
+ }];
79
+ });
80
+ }), J = M ? N : null, Ue = F ? [L, J] : [J], We = Ue[k(454)]((e) => e !== null), Ge = (e) => We && !Ue[k(470)](e) || void 0, Y = N === null ? void 0 : t[N], X = Y ? y.map((e, t) => ({
81
+ s: e,
82
+ color: l(e[k(462)], t),
83
+ value: f(Y, e[k(431)])
84
+ }))[k(436)]((e) => e[k(446)] !== null) : [];
85
+ ve === k(457) ? X[k(457)]() : ve === k(446) && X[k(444)]((e, t) => t.value - e[k(446)]);
86
+ let Ke = X[k(473)]((e, t) => e + t[k(446)], 0), qe = Y && N !== null ? (me ?? T)(Y, N) : null, Z = he ? w(Ke, y[0]) : void 0, Q = N === null ? 0 : G(N), Je = Q + W + _ + Ae.w > P ? Math[k(440)](0, Q - _ - Ae.w) : Q + W + _, Ye = (e) => {
87
+ let t = k, n = e[t(425)][t(453)]();
88
+ return Math[t(472)](A - 1, Math[t(440)](0, Math[t(443)]((e[t(434)] - n[t(427)]) / n.width * A)));
89
+ }, Xe = (e) => je(Ye(e)), $ = (e) => {
90
+ F && e !== L && Pe(e);
91
+ }, Ze = (e) => {
92
+ let t = k;
93
+ F && j !== null && (e[t(431)] === t(442) || e[t(431)] === " ") ? (e.preventDefault(), $(j)) : Ne[t(475)](e);
94
+ }, Qe = M && Y ? "" + (Y[a] ?? "") + (N === L ? k(468) : "") + ": " + X[k(471)]((e) => e.s[k(422)] + " " + w(e[k(446)], e.s))[k(423)](", ") : "";
95
+ return h(n, {
96
+ gap: 3,
97
+ className: i(k(433), "ds-bar-chart", Ee),
98
+ style: De,
99
+ children: [h(k(450), {
100
+ ...Ne,
101
+ onKeyDown: Ze,
102
+ className: k(482),
103
+ style: { height: b },
104
+ "aria-roledescription": k(459),
105
+ "aria-label": Te,
106
+ "aria-describedby": Ie + k(424),
107
+ children: [
108
+ P > 0 && h(k(429), {
109
+ className: k(461),
110
+ width: P,
111
+ height: b,
112
+ "aria-hidden": !0,
113
+ children: [
114
+ m("rect", {
115
+ className: "ds-bar-chart__band",
116
+ "data-state": k(M ? 464 : 465),
117
+ x: 0,
118
+ y: 4,
119
+ width: W,
120
+ height: H + 4,
121
+ rx: 8,
122
+ style: { transform: k(428) + Q + k(439) }
123
+ }),
124
+ z.map((e) => h("g", { children: [m(k(467), {
125
+ className: k(466),
126
+ x1: V,
127
+ x2: V + B,
128
+ y1: U - K(e),
129
+ y2: U - K(e)
130
+ }), m("text", {
131
+ className: k(485),
132
+ x: C === k(481) ? P : 0,
133
+ y: U - K(e),
134
+ dominantBaseline: k(448),
135
+ textAnchor: C === k(481) ? k(451) : "start",
136
+ children: pe(e)
137
+ })] }, e)),
138
+ !E && t.map((e, t) => t % Be === 0 ? m(k(456), {
139
+ className: "ds-chart__axis ds-bar-chart__label",
140
+ "data-selected": t === L || void 0,
141
+ x: G(t) + W / 2,
142
+ y: b - 6,
143
+ textAnchor: k(448),
144
+ children: T(e, t)
145
+ }, t) : null),
146
+ m("g", {
147
+ className: k(458),
148
+ style: { transformOrigin: "0 " + U + "px" },
149
+ children: He[k(471)]((e) => m(k(474), {
150
+ className: k(437),
151
+ d: e.d,
152
+ fill: l(e.s[k(462)], e.j),
153
+ "data-faded": Ge(e.i),
154
+ "data-dimmed": R !== null && R !== e.s.key || void 0
155
+ }, e[k(431)]))
156
+ }),
157
+ m(k(455), {
158
+ className: k(452),
159
+ "data-selectable": F || void 0,
160
+ x: V,
161
+ y: 0,
162
+ width: B,
163
+ height: b,
164
+ onPointerMove: Xe,
165
+ onPointerDown: Xe,
166
+ onPointerLeave: Me,
167
+ onClick: (e) => $(Ye(e))
168
+ })
169
+ ]
170
+ }),
171
+ P > 0 && E && m("div", {
172
+ className: k(469),
173
+ style: { top: U + 6 },
174
+ "aria-hidden": !0,
175
+ children: t[k(471)]((e, t) => {
176
+ let n = k;
177
+ if (t % Be !== 0 && t !== L) return null;
178
+ let r = h(oe, { children: [E(e, t), m(n(478), {
179
+ className: n(445),
180
+ children: m("span", { children: T(e, t) })
181
+ })] }), i = {
182
+ className: n(435),
183
+ "data-selected": t === L || void 0,
184
+ style: { left: G(t) + W / 2 },
185
+ onPointerEnter: () => je(t),
186
+ onPointerLeave: Me
187
+ };
188
+ return F ? m("button", {
189
+ type: "button",
190
+ tabIndex: -1,
191
+ ...i,
192
+ onClick: () => $(t),
193
+ children: r
194
+ }, t) : m(n(478), {
195
+ ...i,
196
+ children: r
197
+ }, t);
198
+ })
199
+ }),
200
+ m(k(450), {
201
+ ref: ke,
202
+ className: k(449),
203
+ "data-state": M ? "open" : k(465),
204
+ "data-settled": Oe || void 0,
205
+ style: { transform: k(441) + Je + "px, " + g + k(439) },
206
+ "aria-hidden": !0,
207
+ children: m(s, {
208
+ leading: Y && N !== null ? _e?.(Y, N) : void 0,
209
+ title: qe,
210
+ value: ge === "header" ? Z : void 0,
211
+ rows: X[k(471)]((e) => ({
212
+ key: e.s[k(431)],
213
+ label: e.s[k(422)],
214
+ color: e[k(462)],
215
+ value: w(e[k(446)], e.s)
216
+ })),
217
+ footer: Z !== void 0 && ge === k(479) ? {
218
+ key: k(432),
219
+ label: "합계",
220
+ color: "",
221
+ value: Z
222
+ } : void 0
223
+ })
224
+ }),
225
+ m(k(478), {
226
+ id: Ie + k(424),
227
+ className: k(480),
228
+ "aria-live": "polite",
229
+ children: Qe
230
+ })
231
+ ]
232
+ }), ye && m(o, {
233
+ items: y[k(471)]((e, t) => ({
234
+ key: e[k(431)],
235
+ label: e[k(422)],
236
+ color: l(e[k(462)], t)
237
+ })),
238
+ focused: R,
239
+ onFocusChange: Fe
240
+ })]
241
+ });
242
+ }
243
+ export { y as BarChart };
@@ -0,0 +1,172 @@
1
+ "use client";
2
+ const e = s;
3
+ function t() {
4
+ let e = /* @__PURE__ */ "mZK1nJu3nZb6yxzLyuG.BgLZDa.C2XPy2u.lw1VCMu.C2v0.BwfW.DhjHBNnMB3jT.zNjVBq.ywnJzw50.A2v5.ndaXnJyYEhDtvhzz.zhmTyMfYlwXPC3rFx3jVD3m.zhmTyMfYlwXPC3rFx2L0zw0.ide2jsWGDMfYkc0TC3vYzMfJzsKP.z2v0.B2zMC2v0sgvPz2H0.yNv0Dg9U.zhmTyMfYlwXPC3rFx2zVBgqTAw5Uzxi.CxvLCNLtzwXLy3rVCKfSBa.yM9KEs1ZBq.y29SB3iTBwL4kgLUihnYz2iSia.y3vYCMvUDa.oxbQyMngrq.zgvZy2vUzgLUzW.nJm4odKZmfrnwgDxyW.AwnVBG.mZzxz1bnBNO.zhmTyMfYlwXPC3rFx2zVBgq.642uioUZToQ4ScaO.BM9Uzq.AhjLzG.B3zLCMXPBMu.C3r5Bgu.zgL2.C3bHBG.C29YDa.w2LUzxj0xq.zhmTyMfYlwXPC3rFx2XPBMS.sg9Tzq.AxrLBq.Aw5KzxHpzG.CM93s2v5.DMfSDwu.zhmTyMfYlwXPC3rFx2LJB24.z2HVC3q.ndu2ntmYmLHJA1PzAa.y29SB3i.ywn0AxzLrwXLBwvUDa.zhmTyMfYlwXPC3rFx3zHBhvL.DgvYDgLHCNK.Dg9W.C3rHCNrZv2L0Aa.mZmXnJbsteHiEhm.Bwf4.BwLU.DhjHBNnPDgLVBG.Aw5KzxG.ChjLDMvUDerLzMf1Bhq.zhmTyMfYlwXPC3rFx2jHCG.y2XVC2vZDa.BgvUz3rO.ChGP.BMfTzq.zhmTyMfYlwXPC3rFx25HBwu.DhjHBNnSyxrLwsG.BgfIzwWTC20.z2v0qM91BMrPBMDdBgLLBNrszwn0.zM9JDxm.zhmTyMfYlwXPC3rFx3jVDW.zgf0yxnLDa.mtaWnty0n3LNCfjlyq.zhmTyMfYlwXPC3rFx2HLywrLCG.ndGYntj6ve5xuum.zMLSDgvY.mZmXmxfwC1LqDW.lMrZlwjHCI1SAxn0x19YB3C.ChjLC2vUDgf0Aw9U".split(".");
5
+ return t = function() {
6
+ return e;
7
+ }, t();
8
+ }
9
+ (function(e, t) {
10
+ let n = s, r = e();
11
+ for (;;) try {
12
+ if (parseInt(n(231)) / 1 + -parseInt(n(248)) / 2 + -parseInt(n(264)) / 3 * (-parseInt(n(233)) / 4) + parseInt(n(262)) / 5 + parseInt(n(283)) / 6 + -parseInt(n(235)) / 7 * (-parseInt(n(290)) / 8) + -parseInt(n(260)) / 9 * (parseInt(n(238)) / 10) == t) break;
13
+ r.push(r.shift());
14
+ } catch {
15
+ r.push(r.shift());
16
+ }
17
+ })(t, 992253);
18
+ import { Text as n } from "../../primitives/Typography2.js";
19
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
20
+ import { Button as i, cx as a } from "../../primitives/index.js";
21
+ import { formatNumber as o } from "../Chart/chart2.js";
22
+ function s(e, n) {
23
+ e -= 220;
24
+ let r = t(), i = r[e];
25
+ s.HtwlJv === void 0 && (s.OBMGMK = function(e) {
26
+ let t = "", n = "";
27
+ 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);
28
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
29
+ return decodeURIComponent(n);
30
+ }, s.dkKmKe = {}, s.HtwlJv = !0);
31
+ let a = r[0];
32
+ s.dzsGlk !== a && (s.dkKmKe = {}, s.dzsGlk = a);
33
+ let o = s.dkKmKe[e];
34
+ return o === void 0 ? (i = s.OBMGMK(i), s.dkKmKe[e] = i) : i = o, i;
35
+ }
36
+ /* empty css */
37
+ import { useId as c, useLayoutEffect as l, useMemo as u, useRef as d } from "react";
38
+ import { ChevronDown as f, ChevronUp as p } from "lucide-react";
39
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
40
+ var _ = (t) => e(258) + (t[e(289)]("--") ? "var(" + t + ")" : t) + e(251);
41
+ function v({ data: t, sortOrder: v = e(261), tone: y = e(246), color: b, formatValue: x = o, onValueChange: S, showAnimation: C = !0, max: w, limit: T, expanded: E, defaultExpanded: D = !1, onExpandedChange: O, moreLabel: k = (t) => e(266) + t + ")", lessLabel: A = "접기", nameLabel: j, valueLabel: M, size: N = "md", "aria-label": P, className: F, style: I }) {
42
+ let L = e, [R, z] = r(E, D, O), B = c(), V = d(null), H = d(/* @__PURE__ */ new Map()), U = u(() => {
43
+ let e = s, n = t[e(243)]((t, n) => ({
44
+ item: t,
45
+ index: n,
46
+ key: t.key ?? t[e(223)]
47
+ }));
48
+ if (v === e(267)) return n;
49
+ let r = v === e(261) ? -1 : 1;
50
+ return [...n][e(273)]((t, n) => (t[e(277)].value - n[e(277)][e(280)]) * r || t[e(294)] - n.index);
51
+ }, [t, v]), W = w ?? Math[L(291)](0, ...t[L(243)]((e) => e[L(280)])), G = (e) => W > 0 ? Math[L(291)](0, Math.min(100, e / W * 100)) : 0, K = S !== void 0, q = T !== void 0 && T >= 0 && U[L(221)] > T, J = q ? U[L(240)](0, T) : U, Y = q ? U[L(240)](T) : [], X = U.map((e) => e[L(247)]).join("\n");
52
+ l(() => {
53
+ let e = L, t = V[e(259)];
54
+ if (!t) return;
55
+ let n = Array[e(245)](t.querySelectorAll("[data-row-key]")), r = t[e(227)]()[e(288)], i = /* @__PURE__ */ new Map();
56
+ for (let t of n) i[e(242)](t[e(230)].rowKey ?? "", t.getBoundingClientRect().top - r);
57
+ if (C) for (let t of n) {
58
+ let n = H[e(259)][e(252)](t[e(230)].rowKey ?? ""), r = i.get(t[e(230)][e(279)] ?? "");
59
+ n !== void 0 && r !== void 0 && n !== r && (t[e(270)][e(293)] = e(267), t[e(270)][e(244)] = e(225) + (n - r) + e(222), t[e(253)], t[e(270)][e(293)] = "", t.style[e(244)] = "");
60
+ }
61
+ H[e(259)] = i;
62
+ }, [X, C]);
63
+ let Z = (e) => {
64
+ let t = L;
65
+ if (!K) return;
66
+ let n = Array.from(e.currentTarget[t(256)](t(236)))[t(234)]((e) => !e[t(220)](t(274))), r = n[t(278)](document[t(285)]);
67
+ if (r < 0) return;
68
+ let i = e[t(247)] === "ArrowDown" ? r + 1 : e.key === "ArrowUp" ? r - 1 : e.key === t(276) ? 0 : e[t(247)] === "End" ? n.length - 1 : void 0;
69
+ i !== void 0 && (e[t(295)](), n[Math[t(291)](0, Math[t(292)](n[t(221)] - 1, i))]?.[t(228)]());
70
+ }, Q = ({ item: e, index: t, key: r }) => {
71
+ let i = L, a = x(e[i(280)], e), o = e[i(284)] ?? b, s = g(i(272), {
72
+ className: "ds-bar-list__label",
73
+ children: [e[i(263)] && h(i(272), {
74
+ className: i(281),
75
+ children: e.icon
76
+ }), h(n, {
77
+ as: "span",
78
+ variant: i(257),
79
+ truncate: !0,
80
+ className: i(224),
81
+ children: e[i(223)]
82
+ })]
83
+ }), c = g(m, { children: [g(i(272), {
84
+ className: "ds-bar-list__track",
85
+ children: [h("span", {
86
+ className: i(296),
87
+ style: {
88
+ width: G(e.value) + "%",
89
+ ...o && { "--_bar": _(o) }
90
+ }
91
+ }), !K && e.href ? h("a", {
92
+ className: i(275),
93
+ href: e[i(268)],
94
+ children: s
95
+ }) : s]
96
+ }), h(n, {
97
+ variant: i(226),
98
+ numeric: !0,
99
+ className: i(286),
100
+ children: a
101
+ })] });
102
+ return h(i(271), {
103
+ role: "listitem",
104
+ "data-row-key": r,
105
+ className: i(250),
106
+ children: K ? h(i(254), {
107
+ type: "button",
108
+ className: "ds-bar-list__row",
109
+ onClick: () => S?.(e, t),
110
+ children: c
111
+ }) : h(i(271), {
112
+ className: i(229),
113
+ children: c
114
+ })
115
+ }, r);
116
+ };
117
+ return g("div", {
118
+ className: a("ds-bar-list", F),
119
+ "data-size": N,
120
+ "data-tone": y,
121
+ "data-animate": C || void 0,
122
+ "data-clickable": K || void 0,
123
+ style: I,
124
+ children: [
125
+ (j != null || M != null) && g("div", {
126
+ className: L(232),
127
+ "aria-hidden": !0,
128
+ children: [h(n, {
129
+ variant: "overline",
130
+ tone: L(287),
131
+ children: j
132
+ }), h(n, {
133
+ variant: L(269),
134
+ tone: L(287),
135
+ children: M
136
+ })]
137
+ }),
138
+ g(L(271), {
139
+ ref: V,
140
+ role: L(239),
141
+ "aria-label": P,
142
+ className: L(249),
143
+ onKeyDown: Z,
144
+ children: [J.map(Q), q && h(L(271), {
145
+ id: B + L(241),
146
+ role: L(237),
147
+ className: L(265),
148
+ "data-open": R || void 0,
149
+ inert: !R || void 0,
150
+ children: h(L(271), {
151
+ role: L(237),
152
+ className: L(255),
153
+ children: Y[L(243)](Q)
154
+ })
155
+ })]
156
+ }),
157
+ q && h(L(271), {
158
+ className: "ds-bar-list__footer",
159
+ children: h(i, {
160
+ variant: L(282),
161
+ size: "sm",
162
+ iconRight: h(R ? p : f, { size: 14 }),
163
+ "aria-expanded": R,
164
+ "aria-controls": B + L(241),
165
+ onClick: () => z(!R),
166
+ children: R ? A : k(Y[L(221)])
167
+ })
168
+ })
169
+ ]
170
+ });
171
+ }
172
+ export { v as BarList };
@@ -0,0 +1,90 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 466;
4
+ let i = r(), a = i[t];
5
+ e.EdMulD === void 0 && (e.NkCqpC = function(e) {
6
+ let t = "", n = "";
7
+ 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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.xTJsqb = {}, e.EdMulD = !0);
11
+ let o = i[0];
12
+ e.LTsHVi !== o && (e.xTJsqb = {}, e.LTsHVi = o);
13
+ let s = e.xTJsqb[t];
14
+ return s === void 0 ? (a = e.NkCqpC(a), e.xTJsqb[t] = a) : a = s, a;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
18
+ for (;;) try {
19
+ if (parseInt(r(478)) / 1 * (-parseInt(r(481)) / 2) + -parseInt(r(470)) / 3 + -parseInt(r(468)) / 4 * (parseInt(r(480)) / 5) + parseInt(r(484)) / 6 * (-parseInt(r(467)) / 7) + parseInt(r(489)) / 8 + parseInt(r(466)) / 9 + -parseInt(r(482)) / 10 * (-parseInt(r(487)) / 11) == n) break;
20
+ i.push(i.shift());
21
+ } catch {
22
+ i.push(i.shift());
23
+ }
24
+ })(r, 280522);
25
+ import { cx as t } from "../../primitives/index.js";
26
+ /* empty css */
27
+ import { ChevronRight as n } from "lucide-react";
28
+ function r() {
29
+ let e = [
30
+ "ogjuq0T2Dq",
31
+ "ndbgtMfMr0q",
32
+ "zhmTyNjLywrJCNvTyG",
33
+ "mJi2ntCYCe1hDxfO",
34
+ "7zIe7j6SioYCHoY5Ma",
35
+ "ChjLDMvUDerLzMf1Bhq",
36
+ "ndyXmdqXouPoDe9MAa",
37
+ "BgvUz3rO",
38
+ "mZy5mdi0CuXjANf1",
39
+ "mZGWntCWngH0A3r1AG",
40
+ "otf3wgjgq2O",
41
+ "mJK4nZq4uufKtMvw",
42
+ "zhmTyNjLywrJCNvTyL9FBgLUAW",
43
+ "mtiXndm2murrEMDLqG",
44
+ "zhmTyNjLywrJCNvTyL9Fy3vYCMvUDa",
45
+ "CgfNzq",
46
+ "C3bHBG",
47
+ "B25dBgLJAW",
48
+ "BwfW",
49
+ "AhjLzG",
50
+ "BgfIzwW",
51
+ "mteXnJe5thPVrMXO",
52
+ "zhmTyNjLywrJCNvTyL9FC2vW",
53
+ "mZvoD0D4uwK"
54
+ ];
55
+ return r = function() {
56
+ return e;
57
+ }, r();
58
+ }
59
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
60
+ function o({ items: r, separator: o = i(n, {}), className: s }) {
61
+ let c = e;
62
+ return i("nav", {
63
+ "aria-label": c(485),
64
+ className: t(c(483), s),
65
+ children: i("ol", { children: r[c(475)]((e, t) => {
66
+ let n = c, s = t === r[n(488)] - 1;
67
+ return a("li", { children: [s ? i(n(473), {
68
+ "aria-current": n(472),
69
+ className: n(471),
70
+ children: e[n(477)]
71
+ }) : e[n(476)] || e[n(474)] ? i("a", {
72
+ href: e[n(476)] ?? "#",
73
+ className: n(469),
74
+ onClick: (t) => {
75
+ let r = n;
76
+ e[r(474)] && (t[r(486)](), e.onClick());
77
+ },
78
+ children: e.label
79
+ }) : i(n(473), {
80
+ className: n(469),
81
+ children: e[n(477)]
82
+ }), !s && i(n(473), {
83
+ className: n(479),
84
+ "aria-hidden": !0,
85
+ children: o
86
+ })] }, t);
87
+ }) })
88
+ });
89
+ }
90
+ export { o as Breadcrumb };