@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,243 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 138;
4
+ let r = s(), i = r[t];
5
+ e.Hzhiep === void 0 && (e.VOAHTh = 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.GRzzLK = {}, e.Hzhiep = !0);
11
+ let a = r[0];
12
+ e.vsKInx !== a && (e.GRzzLK = {}, e.vsKInx = a);
13
+ let o = e.GRzzLK[t];
14
+ return o === void 0 ? (i = e.VOAHTh(i), e.GRzzLK[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (parseInt(r(146)) / 1 + -parseInt(r(151)) / 2 + parseInt(r(200)) / 3 + -parseInt(r(174)) / 4 * (-parseInt(r(191)) / 5) + parseInt(r(168)) / 6 * (-parseInt(r(196)) / 7) + -parseInt(r(166)) / 8 + parseInt(r(177)) / 9 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(s, 686856);
26
+ import { Stack as n } from "../../primitives/Layout2.js";
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { cx as i } from "../../primitives/index.js";
29
+ import { ChartLegend as a, ChartTooltip as o } from "../Chart/ChartParts.js";
30
+ function s() {
31
+ let e = /* @__PURE__ */ "BgvMDa.zhmTy2HHCNrFx3bSB3q.C3zN.zhmTyMfYlwnOyxj0x19IyxjZ.odCZndKYohnIu2HkqW.zhmTyMfYlwnOyxj0x190AwnRCW.nNnRz2jsuq.lwXPDMu.BgfIzwW.C3bHBG.zhmTy2HHCNrFx3nY.Cgf0Aa.nJe2qwLsAeje.y2XVC2vK.zgL2.mta1nJu2mtnovMHMsxu.y2XPzw50wa.zhmTyMfYlwnOyxj0x190AwnR.66Ej64YaioYWQo2kUa.BwLU.zhmTy2HHCNrFx3rPCa.DMfSDwu.yNv0Dg9U.ChGP.CMvJDa.y29SB3i.zMXHDe1HCa.C29YDa.zhmTy2HHCNrFx2HPDa.otu4mhDLEKvLtq.zhmTy2HHCNrFx2f4AxmGzhmTyMfYlwnOyxj0x19SywjLBa.BwfW.C2vYAwvZ.D2LKDgG.mJu5mZiYmgzUuhfWsW.Dg90ywW.BgvUz3rO.zhmTyMfYlwnOyxj0x19Iyw5K.mtu2mdy3nwTRAwjyyq.CMvKDwnL.DhjHBNnSyxrLwcG.y3vYCMvUDfrHCMDLDa.Cg9SAxrL.zhmTy2HHCNrFx3n2zW.zMLSDgvY.DhjHBNnSyxrLka.Aw5JBhvKzxm.zM9VDgvY.zhmTyMfYlwnOyxj0x190AwnRlwXHyMvS.mta3odu2nu1TAe9isa.Bwf4.A2v5.BwLKzgXL.CMv2zxjZzq.mtGZnZi1ohzKrxjgDa.Dgv4Da.B25lzxLeB3DU.C29Tzq.ChGSia.CMLNAhq.z2v0qM91BMrPBMDdBgLLBNrszwn0.BgLUzq.ChjLDMvUDerLzMf1Bhq.B3bLBG.zhmTy2HHCNq".split(".");
32
+ return s = function() {
33
+ return e;
34
+ }, s();
35
+ }
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: e, xKey: s, series: y, height: b = 240, stacked: x, segmentGap: ue = 0, yTickCount: de = 3, yMax: fe, yTicks: S, yAxis: C = "left", formatValue: w = te, formatAxisValue: pe = u, formatX: T = (e) => String(e[s] ?? ""), formatTitle: me, xIcon: E, showTotal: he = x, totalPlacement: ge = t(144), tooltipLeading: _e, tooltipSort: ve = t(194), legend: ye = !0, activeIndex: be, defaultActiveIndex: xe, onActiveIndexChange: Se, selectable: Ce, selected: we, defaultSelected: D = null, onSelectedChange: O, "aria-label": Te = t(180), className: Ee, style: De }) {
43
+ let k = t, A = e[k(198)], { 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 t = k;
50
+ if (S?.[t(198)]) return S;
51
+ let n = e[t(193)]((e) => y[t(193)]((n) => Math.max(0, f(e, n[t(148)]) ?? 0))), r = fe ?? Math.max(0, ...n[t(193)]((e) => x ? e[t(201)]((e, t) => e + t, 0) : Math.max(0, ...e)));
52
+ return d(r, de);
53
+ }, [
54
+ e,
55
+ y,
56
+ x,
57
+ fe,
58
+ S,
59
+ de
60
+ ]), Le = Math[k(147)](...z) || 1, Re = E ? ce : se, ze = c(z.map(pe)), B = Math.max(0, P - ze), V = C === k(156) ? 0 : ze, H = b - g - Re, U = g + H, W = A ? B / A : 0, G = (e) => V + e * W, K = (e) => Math[k(147)](0, e) / Le * H, Be = ne(A, B, E ? 40 : 64), q = Math[k(181)](W * .64, x ? 48 : 24 * y[k(198)] + v * (y.length - 1)), Ve = x ? q : Math[k(147)](1, (q - v * (y[k(198)] - 1)) / Math[k(147)](1, y[k(198)])), He = e.flatMap((e, t) => {
61
+ let n = k, r = 0, i = G(t) + (W - q) / 2, a = y[n(193)]((t, r) => ({
62
+ s: t,
63
+ j: r,
64
+ v: f(e, t[n(148)])
65
+ }))[n(141)]((e) => e.v !== null && e.v > 0), o = a[a.length - 1]?.j;
66
+ return y[n(188)]((a, s) => {
67
+ let c = n, l = f(e, a[c(148)]);
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.min(ue, Math[c(147)](0, u - 1));
72
+ return [{
73
+ key: t + "-" + a[c(148)],
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(154)]((e) => e !== null), Ge = (e) => We && !Ue[k(143)](e) || void 0, Y = N === null ? void 0 : e[N], X = Y ? y[k(193)]((e, t) => ({
81
+ s: e,
82
+ color: l(e[k(187)], t),
83
+ value: f(Y, e[k(148)])
84
+ }))[k(141)]((e) => e[k(183)] !== null) : [];
85
+ ve === "reverse" ? X[k(150)]() : ve === k(183) && X[k(189)]((e, t) => t[k(183)] - e[k(183)]);
86
+ let Ke = X.reduce((e, t) => e + t[k(183)], 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(147)](0, Q - _ - Ae.w) : Q + W + _, Ye = (e) => {
87
+ let t = k, n = e[t(138)][t(157)]();
88
+ return Math.min(A - 1, Math[t(147)](0, Math.floor((e[t(178)] - n[t(162)]) / n[t(195)] * 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.key === "Enter" || e[t(148)] === " ") ? (e[t(159)](), $(j)) : Ne[t(153)](e);
94
+ }, Qe = M && Y ? "" + (Y[s] ?? "") + (N === L ? " (선택됨)" : "") + ": " + X[k(193)]((e) => e.s[k(170)] + " " + w(e[k(183)], e.s)).join(", ") : "";
95
+ return h(n, {
96
+ gap: 3,
97
+ className: i(k(161), "ds-bar-chart", Ee),
98
+ style: De,
99
+ children: [h(k(176), {
100
+ ...Ne,
101
+ onKeyDown: Ze,
102
+ className: k(163),
103
+ style: { height: b },
104
+ "aria-roledescription": k(180),
105
+ "aria-label": Te,
106
+ "aria-describedby": Ie + k(169),
107
+ children: [
108
+ P > 0 && h(k(164), {
109
+ className: k(140),
110
+ width: P,
111
+ height: b,
112
+ "aria-hidden": !0,
113
+ children: [
114
+ m(k(186), {
115
+ className: k(199),
116
+ "data-state": k(M ? 160 : 175),
117
+ x: 0,
118
+ y: 4,
119
+ width: W,
120
+ height: H + 4,
121
+ rx: 8,
122
+ style: { transform: k(202) + Q + k(185) }
123
+ }),
124
+ z[k(193)]((e) => h("g", { children: [m(k(158), {
125
+ className: "ds-chart__grid",
126
+ x1: V,
127
+ x2: V + B,
128
+ y1: U - K(e),
129
+ y2: U - K(e)
130
+ }), m(k(152), {
131
+ className: "ds-chart__axis",
132
+ x: C === k(156) ? P : 0,
133
+ y: U - K(e),
134
+ dominantBaseline: "middle",
135
+ textAnchor: C === k(156) ? "end" : "start",
136
+ children: pe(e)
137
+ })] }, e)),
138
+ !E && e[k(193)]((e, t) => t % Be === 0 ? m(k(152), {
139
+ className: k(192),
140
+ "data-selected": t === L || void 0,
141
+ x: G(t) + W / 2,
142
+ y: b - 6,
143
+ textAnchor: k(149),
144
+ children: T(e, t)
145
+ }, t) : null),
146
+ m("g", {
147
+ className: k(165),
148
+ style: { transformOrigin: "0 " + U + "px" },
149
+ children: He[k(193)]((e) => m(k(173), {
150
+ className: "ds-bar-chart__bar",
151
+ d: e.d,
152
+ fill: l(e.s[k(187)], e.j),
153
+ "data-faded": Ge(e.i),
154
+ "data-dimmed": R !== null && R !== e.s[k(148)] || void 0
155
+ }, e.key))
156
+ }),
157
+ m(k(186), {
158
+ className: k(190),
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(k(176), {
172
+ className: k(167),
173
+ style: { top: U + 6 },
174
+ "aria-hidden": !0,
175
+ children: e[k(193)]((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(171), {
179
+ className: n(145),
180
+ children: m(n(171), { children: T(e, t) })
181
+ })] }), i = {
182
+ className: n(179),
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(n(184), {
189
+ type: "button",
190
+ tabIndex: -1,
191
+ ...i,
192
+ onClick: () => $(t),
193
+ children: r
194
+ }, t) : m(n(171), {
195
+ ...i,
196
+ children: r
197
+ }, t);
198
+ })
199
+ }),
200
+ m("div", {
201
+ ref: ke,
202
+ className: k(182),
203
+ "data-state": k(M ? 160 : 175),
204
+ "data-settled": Oe || void 0,
205
+ style: { transform: k(142) + Je + k(155) + g + k(185) },
206
+ "aria-hidden": !0,
207
+ children: m(o, {
208
+ leading: Y && N !== null ? _e?.(Y, N) : void 0,
209
+ title: qe,
210
+ value: ge === "header" ? Z : void 0,
211
+ rows: X.map((e) => ({
212
+ key: e.s[k(148)],
213
+ label: e.s[k(170)],
214
+ color: e[k(187)],
215
+ value: w(e[k(183)], e.s)
216
+ })),
217
+ footer: Z !== void 0 && ge === k(144) ? {
218
+ key: k(197),
219
+ label: "합계",
220
+ color: "",
221
+ value: Z
222
+ } : void 0
223
+ })
224
+ }),
225
+ m(k(171), {
226
+ id: Ie + k(169),
227
+ className: k(172),
228
+ "aria-live": k(139),
229
+ children: Qe
230
+ })
231
+ ]
232
+ }), ye && m(a, {
233
+ items: y.map((e, t) => ({
234
+ key: e[k(148)],
235
+ label: e[k(170)],
236
+ color: l(e.color, 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 = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (-parseInt(r(506)) / 1 + parseInt(r(540)) / 2 + -parseInt(r(524)) / 3 * (parseInt(r(493)) / 4) + parseInt(r(504)) / 5 + -parseInt(r(544)) / 6 * (-parseInt(r(489)) / 7) + parseInt(r(531)) / 8 * (parseInt(r(532)) / 9) + -parseInt(r(536)) / 10 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(s, 646246);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n(e, t) {
14
+ e -= 480;
15
+ let r = s(), i = r[e];
16
+ n.jRRIxs === void 0 && (n.ryzrmM = function(e) {
17
+ let t = "", n = "";
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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, n.kxXydl = {}, n.jRRIxs = !0);
22
+ let a = r[0];
23
+ n.syFheB !== a && (n.kxXydl = {}, n.syFheB = a);
24
+ let o = n.kxXydl[e];
25
+ return o === void 0 ? (i = n.ryzrmM(i), n.kxXydl[e] = i) : i = o, i;
26
+ }
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { Button as i, cx as a } from "../../primitives/index.js";
29
+ import { formatNumber as o } from "../Chart/chart2.js";
30
+ /* empty css */
31
+ function s() {
32
+ let e = /* @__PURE__ */ "ywn0AxzLrwXLBwvUDa.lMrZlwjHCI1SAxn0x19YB3C.zhmTyMfYlwXPC3rFx3jVD3m.Aw5KzxG.mZi1mtu2meTjvNHTEq.ouH2AK1jCa.z2v0.A2v5.BM9Uzq.mZCWmte0mgzgC1zQta.AM9PBG.z2HVC3q.DgvYDgLHCNK.mZy1otCYAfPRB2TV.y3vYCMvUDa.zhmTyMfYlwXPC3rFx2zVB3rLCG.DhjHBNnMB3jT.mZyXnZC1nhzjzKrgsG.DhjHBNnSyxrLwsG.CxvLCNLtzwXLy3rVCKfSBa.zgf0yxnLDa.AwnVBG.Dg9W.BgfIzwWTC20.BwLU.lw1VCMu.zhmTyMfYlwXPC3rFx2LJB24.ChGP.zhmTyMfYlwXPC3rFx2zVBgqTAw5Uzxi.BgLZDa.w2rHDgeTCM93lwTLEv0.Aw5KzxHpzG.ide2jsWGDMfYkc0TC3vYzMfJzsKP.w2LUzxj0xq.BgvUz3rO.rw5K.mtrfwfr3svm.B2zMC2v0sgvPz2H0.BwfW.C3rHCNrZv2L0Aa.ndC2nZGWEw95tK5m.zM9JDxm.z2v0qM91BMrPBMDdBgLLBNrszwn0.DhjHBNnPDgLVBG.ywnJzw50.qxjYB3DvCa.zhmTyMfYlwXPC3rFx3zHBhvL.C3bHBG.Bwf4.B3zLCMXPBMu.zhmTyMfYlwXPC3rFx2zVBgq.mZa5nJq5nvbVAvrXwa.zhmTyMfYlwXPC3q.odaYmZeZCgPXBevc.zhmTyMfYlwXPC3rFx3jVDW.zgL2.BMfTzq.y3vYCMvUDfrHCMDLDa.642uioUZToQ4ScaO.C3r5Bgu.C2v0.y2XVC2vZDa.zhmTyMfYlwXPC3rFx2L0zw0.CM93s2v5.zhmTyMfYlwXPC3rFx2jHCG.DMfSDwu.zgvZy2vUzgLUzW.yNv0Dg9U.ChjLC2vUDgf0Aw9U.AhjLzG.zhmTyMfYlwXPC3rFx2HLywrLCG.mtvtug9LDu4.zhmTyMfYlwXPC3rFx2XHyMvS.C2XPy2u".split(".");
33
+ return s = function() {
34
+ return e;
35
+ }, s();
36
+ }
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) => "color-mix(in srgb, " + (t[e(492)]("--") ? "var(" + t + ")" : t) + e(485);
41
+ function v({ data: s, sortOrder: v = e(519), tone: y = e(497), 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(511) + 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 = n, t = s[e(491)]((t, n) => ({
44
+ item: t,
45
+ index: n,
46
+ key: t[e(534)] ?? t.name
47
+ }));
48
+ if (v === e(535)) return t;
49
+ let r = v === "descending" ? -1 : 1;
50
+ return [...t].sort((t, n) => (t.item[e(518)] - n.item.value) * r || t[e(530)] - n[e(530)]);
51
+ }, [s, v]), W = w ?? Math[L(501)](0, ...s.map((e) => e[L(518)])), G = (e) => W > 0 ? Math[L(501)](0, Math[L(551)](100, e / W * 100)) : 0, K = S !== void 0, q = T !== void 0 && T >= 0 && U[L(487)] > T, J = q ? U[L(526)](0, T) : U, Y = q ? U[L(526)](T) : [], X = U[L(491)]((e) => e[L(534)])[L(537)]("\n");
52
+ l(() => {
53
+ let e = L, t = V[e(541)];
54
+ if (!t) return;
55
+ let n = Array.from(t[e(546)](e(483))), r = t[e(495)]()[e(549)], i = /* @__PURE__ */ new Map();
56
+ for (let t of n) i[e(513)](t[e(547)].rowKey ?? "", t.getBoundingClientRect().top - r);
57
+ if (C) for (let t of n) {
58
+ let n = H[e(541)][e(533)](t[e(547)][e(516)] ?? ""), r = i[e(533)](t[e(547)][e(516)] ?? "");
59
+ n !== void 0 && r !== void 0 && n !== r && (t[e(512)][e(496)] = "none", t.style[e(543)] = e(545) + (n - r) + e(480), t[e(490)], t[e(512)][e(496)] = "", t[e(512)].transform = "");
60
+ }
61
+ H.current = i;
62
+ }, [X, C]);
63
+ let Z = (e) => {
64
+ let t = L;
65
+ if (!K) return;
66
+ let n = Array.from(e[t(510)][t(546)](t(528))).filter((e) => !e[t(514)](t(486))), r = n[t(484)](document[t(527)]);
67
+ if (r < 0) return;
68
+ let i = e[t(534)] === "ArrowDown" ? r + 1 : e[t(534)] === t(498) ? r - 1 : e[t(534)] === "Home" ? 0 : e[t(534)] === t(488) ? n[t(487)] - 1 : void 0;
69
+ i !== void 0 && (e.preventDefault(), n[Math[t(501)](0, Math[t(551)](n[t(487)] - 1, i))]?.[t(494)]());
70
+ }, Q = ({ item: e, index: n, key: r }) => {
71
+ let i = L, a = x(e[i(518)], e), o = e.color ?? b, s = g(i(500), {
72
+ className: i(525),
73
+ children: [e[i(548)] && h(i(500), {
74
+ className: i(553),
75
+ children: e[i(548)]
76
+ }), h(t, {
77
+ as: "span",
78
+ variant: "body-sm",
79
+ truncate: !0,
80
+ className: "ds-bar-list__name",
81
+ children: e[i(509)]
82
+ })]
83
+ }), c = g(m, { children: [g("span", {
84
+ className: "ds-bar-list__track",
85
+ children: [h(i(500), {
86
+ className: i(517),
87
+ style: {
88
+ width: G(e[i(518)]) + "%",
89
+ ...o && { "--_bar": _(o) }
90
+ }
91
+ }), !K && e[i(522)] ? h("a", {
92
+ className: "ds-bar-list__link",
93
+ href: e[i(522)],
94
+ children: s
95
+ }) : s]
96
+ }), h(t, {
97
+ variant: i(550),
98
+ numeric: !0,
99
+ className: i(499),
100
+ children: a
101
+ })] });
102
+ return h("div", {
103
+ role: "listitem",
104
+ "data-row-key": r,
105
+ className: i(515),
106
+ children: K ? h(i(520), {
107
+ type: i(520),
108
+ className: i(507),
109
+ onClick: () => S?.(e, n),
110
+ children: c
111
+ }) : h(i(508), {
112
+ className: i(507),
113
+ children: c
114
+ })
115
+ }, r);
116
+ };
117
+ return g(L(508), {
118
+ className: a(L(505), 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(L(508), {
126
+ className: L(523),
127
+ "aria-hidden": !0,
128
+ children: [h(t, {
129
+ variant: L(502),
130
+ tone: L(539),
131
+ children: j
132
+ }), h(t, {
133
+ variant: L(502),
134
+ tone: L(539),
135
+ children: M
136
+ })]
137
+ }),
138
+ g(L(508), {
139
+ ref: V,
140
+ role: L(482),
141
+ "aria-label": P,
142
+ className: L(529),
143
+ onKeyDown: Z,
144
+ children: [J[L(491)](Q), q && h(L(508), {
145
+ id: B + L(552),
146
+ role: L(521),
147
+ className: L(503),
148
+ "data-open": R || void 0,
149
+ inert: !R || void 0,
150
+ children: h(L(508), {
151
+ role: L(521),
152
+ className: L(481),
153
+ children: Y[L(491)](Q)
154
+ })
155
+ })]
156
+ }),
157
+ q && h(L(508), {
158
+ className: L(542),
159
+ children: h(i, {
160
+ variant: L(538),
161
+ size: "sm",
162
+ iconRight: h(R ? p : f, { size: 14 }),
163
+ "aria-expanded": R,
164
+ "aria-controls": B + L(552),
165
+ onClick: () => z(!R),
166
+ children: R ? A : k(Y.length)
167
+ })
168
+ })
169
+ ]
170
+ });
171
+ }
172
+ export { v as BarList };
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ (function(e, n) {
3
+ let r = t, i = e();
4
+ for (;;) try {
5
+ if (parseInt(r(458)) / 1 * (parseInt(r(460)) / 2) + parseInt(r(475)) / 3 + parseInt(r(457)) / 4 * (parseInt(r(463)) / 5) + -parseInt(r(461)) / 6 * (parseInt(r(472)) / 7) + parseInt(r(473)) / 8 + -parseInt(r(477)) / 9 * (-parseInt(r(468)) / 10) + -parseInt(r(476)) / 11 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(n, 811361);
11
+ import { cx as e } from "../../primitives/index.js";
12
+ function t(e, r) {
13
+ e -= 456;
14
+ let i = n(), a = i[e];
15
+ t.BLwFsP === void 0 && (t.iBvRSJ = function(e) {
16
+ let t = "", n = "";
17
+ 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);
18
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
+ return decodeURIComponent(n);
20
+ }, t.KlaGpb = {}, t.BLwFsP = !0);
21
+ let o = i[0];
22
+ t.euYoOs !== o && (t.KlaGpb = {}, t.euYoOs = o);
23
+ let s = t.KlaGpb[e];
24
+ return s === void 0 ? (a = t.iBvRSJ(a), t.KlaGpb[e] = a) : a = s, a;
25
+ }
26
+ function n() {
27
+ let e = [
28
+ "mtq5mtq5nLrkq010Bq",
29
+ "mvLrBLbLra",
30
+ "BwfW",
31
+ "mJC0mZa0ng1xteT1tq",
32
+ "nZjmrKjvwgy",
33
+ "7zIe7j6SioYCHoY5Ma",
34
+ "mtv1EMruq3y",
35
+ "CgfNzq",
36
+ "BgvUz3rO",
37
+ "C3bHBG",
38
+ "B25dBgLJAW",
39
+ "nZe4nJbMEfflCM0",
40
+ "zhmTyNjLywrJCNvTyL9FBgLUAW",
41
+ "zhmTyNjLywrJCNvTyL9Fy3vYCMvUDa",
42
+ "zhmTyNjLywrJCNvTyL9FC2vW",
43
+ "oda2mde1wfbdtMPQ",
44
+ "mtiZndi4ofb2Cw1msW",
45
+ "BgfIzwW",
46
+ "mZK1nZi2ngHYAe1XDG",
47
+ "mtK1ntm2mZnHwwPAAhK",
48
+ "owfKv0LYvW",
49
+ "AhjLzG"
50
+ ];
51
+ return n = function() {
52
+ return e;
53
+ }, n();
54
+ }
55
+ /* empty css */
56
+ import { ChevronRight as r } from "lucide-react";
57
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
58
+ function o({ items: n, separator: o = i(r, {}), className: s }) {
59
+ let c = t;
60
+ return i("nav", {
61
+ "aria-label": c(462),
62
+ className: e("ds-breadcrumb", s),
63
+ children: i("ol", { children: n[c(459)]((e, t) => {
64
+ let r = c, s = t === n[r(465)] - 1;
65
+ return a("li", { children: [s ? i(r(466), {
66
+ "aria-current": r(464),
67
+ className: r(470),
68
+ children: e[r(474)]
69
+ }) : e[r(456)] || e[r(467)] ? i("a", {
70
+ href: e[r(456)] ?? "#",
71
+ className: r(469),
72
+ onClick: (t) => {
73
+ e[r(467)] && (t.preventDefault(), e.onClick());
74
+ },
75
+ children: e.label
76
+ }) : i(r(466), {
77
+ className: r(469),
78
+ children: e[r(474)]
79
+ }), !s && i(r(466), {
80
+ className: r(471),
81
+ "aria-hidden": !0,
82
+ children: o
83
+ })] }, t);
84
+ }) })
85
+ });
86
+ }
87
+ export { o as Breadcrumb };