@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,159 @@
1
+ "use client";
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (-parseInt(r(236)) / 1 * (parseInt(r(246)) / 2) + -parseInt(r(255)) / 3 + parseInt(r(248)) / 4 * (parseInt(r(241)) / 5) + parseInt(r(245)) / 6 + -parseInt(r(238)) / 7 + parseInt(r(252)) / 8 * (parseInt(r(254)) / 9) + -parseInt(r(239)) / 10 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(_, 559341);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n(e, t) {
14
+ e -= 235;
15
+ let r = _(), i = r[e];
16
+ n.cGEJaY === void 0 && (n.ACeYxd = 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.ktCTLq = {}, n.cGEJaY = !0);
22
+ let a = r[0];
23
+ n.FmfCMe !== a && (n.ktCTLq = {}, n.FmfCMe = a);
24
+ let o = n.ktCTLq[e];
25
+ return o === void 0 ? (i = n.ACeYxd(i), n.ktCTLq[e] = i) : i = o, i;
26
+ }
27
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
+ import { AvatarGroup as a, Badge as o } from "../../primitives/index.js";
29
+ import { Card as s, CardBody as c } from "../Card/Card2.js";
30
+ import { CalendarDays as l, ListChecks as u, MessageSquare as d, Paperclip as f } from "lucide-react";
31
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
32
+ function h({ icon: n, tone: i = e(253), children: a }) {
33
+ return p(t, {
34
+ variant: "caption",
35
+ tone: i,
36
+ numeric: !0,
37
+ children: m(r, {
38
+ as: e(240),
39
+ gap: 1,
40
+ wrap: !1,
41
+ children: [n, a]
42
+ })
43
+ });
44
+ }
45
+ function g({ title: n, description: g, labels: _, assignees: v, due: y, dueTone: b = e(237), checklist: x, comments: S, attachments: C, meta: w, dragging: T }) {
46
+ let E = e, D = y != null || x != null || !!S || !!C || w != null || !!v?.[E(249)], O = x != null && x[E(244)] > 0 && x[E(250)] >= x.total;
47
+ return p(s, {
48
+ variant: E(T ? 256 : 237),
49
+ padding: "sm",
50
+ children: p(c, { children: m(i, {
51
+ gap: 2,
52
+ children: [
53
+ !!_?.[E(249)] && p(r, {
54
+ gap: 1,
55
+ children: _[E(242)]((e, t) => p(o, {
56
+ size: "sm",
57
+ tone: e[E(251)],
58
+ children: e[E(243)]
59
+ }, t))
60
+ }),
61
+ m(i, {
62
+ gap: 1,
63
+ children: [p(t, {
64
+ variant: E(235),
65
+ weight: E(247),
66
+ lineClamp: 3,
67
+ children: n
68
+ }), g != null && p(t, {
69
+ variant: E(258),
70
+ tone: "secondary",
71
+ lineClamp: 2,
72
+ children: g
73
+ })]
74
+ }),
75
+ D && m(r, {
76
+ gap: 3,
77
+ justify: E(257),
78
+ wrap: !1,
79
+ children: [m(r, {
80
+ gap: 3,
81
+ children: [
82
+ y != null && p(h, {
83
+ icon: p(l, {
84
+ size: 13,
85
+ "aria-hidden": !0
86
+ }),
87
+ tone: b === E(237) ? E(253) : b,
88
+ children: y
89
+ }),
90
+ x != null && m(h, {
91
+ icon: p(u, {
92
+ size: 13,
93
+ "aria-hidden": !0
94
+ }),
95
+ tone: O ? "success" : E(253),
96
+ children: [
97
+ x[E(250)],
98
+ "/",
99
+ x[E(244)]
100
+ ]
101
+ }),
102
+ !!S && p(h, {
103
+ icon: p(d, {
104
+ size: 13,
105
+ "aria-label": "댓글"
106
+ }),
107
+ children: S
108
+ }),
109
+ !!C && p(h, {
110
+ icon: p(f, {
111
+ size: 13,
112
+ "aria-label": "첨부"
113
+ }),
114
+ children: C
115
+ }),
116
+ w
117
+ ]
118
+ }), !!v?.[E(249)] && p(a, {
119
+ names: v,
120
+ size: 22,
121
+ max: 3
122
+ })]
123
+ })
124
+ ]
125
+ }) })
126
+ });
127
+ }
128
+ function _() {
129
+ let e = [
130
+ "BgfIzwW",
131
+ "Dg90ywW",
132
+ "ntG2ote0nMXxsLfOzW",
133
+ "ndjAu011DNO",
134
+ "BwvKAxvT",
135
+ "mtyXntzvrNDNzee",
136
+ "BgvUz3rO",
137
+ "zg9Uzq",
138
+ "Dg9Uzq",
139
+ "odu4odK2qxrIAfnH",
140
+ "DgvYDgLHCNK",
141
+ "mZzwugHewMG",
142
+ "ode3nZe2r1nVEfvb",
143
+ "CMfPC2vK",
144
+ "yMv0D2vLBG",
145
+ "yM9KEs1ZBq",
146
+ "BgfIzwWTBwq",
147
+ "mtC5odLgvMjyyvy",
148
+ "zgvMyxvSDa",
149
+ "mJKXmJe2ogvpBKrKwa",
150
+ "ndqWmJKWmhfdB1bfqG",
151
+ "C3bHBG",
152
+ "ode1vKn1A09b",
153
+ "BwfW"
154
+ ];
155
+ return _ = function() {
156
+ return e;
157
+ }, _();
158
+ }
159
+ export { g as KanbanCard };
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ function e(n, r) {
3
+ n -= 473;
4
+ let i = t(), a = i[n];
5
+ e.IfAQsl === void 0 && (e.GEDwtm = 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.ddwhFI = {}, e.IfAQsl = !0);
11
+ let o = i[0];
12
+ e.Trvrwv !== o && (e.ddwhFI = {}, e.Trvrwv = o);
13
+ let s = e.ddwhFI[n];
14
+ return s === void 0 ? (a = e.GEDwtm(a), e.ddwhFI[n] = a) : a = s, a;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
18
+ for (;;) try {
19
+ if (-parseInt(r(486)) / 1 + -parseInt(r(477)) / 2 * (-parseInt(r(483)) / 3) + parseInt(r(488)) / 4 * (-parseInt(r(485)) / 5) + parseInt(r(484)) / 6 + parseInt(r(475)) / 7 + parseInt(r(479)) / 8 * (-parseInt(r(487)) / 9) + parseInt(r(473)) / 10 == n) break;
20
+ i.push(i.shift());
21
+ } catch {
22
+ i.push(i.shift());
23
+ }
24
+ })(t, 577486);
25
+ function t() {
26
+ let e = [
27
+ "zMLUzeLUzgv4",
28
+ "mJq3ndC0nhzTvfftva",
29
+ "zw50CMLLCW",
30
+ "y29SDw1Uswq",
31
+ "Bwf4",
32
+ "ndK4s0XZBwn4",
33
+ "mJa3otyYne5wwwnwEq",
34
+ "mtG1txjPDefV",
35
+ "mZa3ntGWwKfQAvfx",
36
+ "mJDIrhvfq1y",
37
+ "mJyXmNzgu2jnAG",
38
+ "nZq4ntC4mfDSC2jVva",
39
+ "zMLSDgvY",
40
+ "mZiZnJu0ogXtzLvisW",
41
+ "BgvUz3rO",
42
+ "mZm3mhfvzLHLuq"
43
+ ];
44
+ return t = function() {
45
+ return e;
46
+ }, t();
47
+ }
48
+ function n(t, n, r) {
49
+ let i = e, a, o = {};
50
+ for (let [e, r] of Object[i(480)](t)) o[e] = r[i(474)]((e) => e.id !== n || (a = e, !1));
51
+ if (!a) return t;
52
+ let s = [...o[r[i(481)]] ?? []];
53
+ return s.splice(Math[i(482)](0, Math.min(r.index, s[i(476)])), 0, a), o[r.columnId] = s, o;
54
+ }
55
+ function r(t, n) {
56
+ let r = e;
57
+ for (let [e, i] of Object[r(480)](t)) {
58
+ let t = i[r(478)]((e) => e.id === n);
59
+ if (t >= 0) return {
60
+ item: i[t],
61
+ position: {
62
+ columnId: e,
63
+ index: t
64
+ }
65
+ };
66
+ }
67
+ return null;
68
+ }
69
+ export { r as locateKanbanItem, n as moveKanbanItem };
@@ -0,0 +1,342 @@
1
+ "use client";
2
+ const e = a;
3
+ (function(e, t) {
4
+ let n = a, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(455)) / 1 * (parseInt(n(511)) / 2) + -parseInt(n(479)) / 3 * (parseInt(n(467)) / 4) + -parseInt(n(514)) / 5 + parseInt(n(464)) / 6 * (-parseInt(n(510)) / 7) + -parseInt(n(500)) / 8 * (-parseInt(n(525)) / 9) + parseInt(n(459)) / 10 + parseInt(n(487)) / 11 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(o, 155126);
12
+ import { Stack as t } from "../../primitives/Layout2.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ import { ChartLegend as r, ChartTooltip as i } from "../Chart/ChartParts.js";
15
+ function a(e, t) {
16
+ e -= 448;
17
+ let n = o(), r = n[e];
18
+ a.SOCXfW === void 0 && (a.PEIGLF = function(e) {
19
+ let t = "", n = "";
20
+ 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);
21
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
+ return decodeURIComponent(n);
23
+ }, a.fkdfHj = {}, a.SOCXfW = !0);
24
+ let i = n[0];
25
+ a.XDsJGk !== i && (a.fkdfHj = {}, a.XDsJGk = i);
26
+ let s = a.fkdfHj[e];
27
+ return s === void 0 ? (r = a.PEIGLF(r), a.fkdfHj[e] = r) : r = s, r;
28
+ }
29
+ function o() {
30
+ let e = /* @__PURE__ */ "Bwf4.y29SB3i.BNvTyMvY.7isGioYWQo2kUa.zhmTBgLUzs1JAgfYDf9FCMvM.C2XPy2u.CMvKDwnL.y2XPzw50wa.z2v0qM91BMrPBMDdBgLLBNrszwn0.A2v5.mZi1mJG4yLjRwvzk.zhmTy2HHCNrFx2f4Axm.CMvJDa.DMfSDwu.ChGSia.Dgv4Da.CxvLCNLtzwXLy3rVCKfSBa.7jIb7jETioYWQo2kUa.lwXPDMu.zhmTBgLUzs1JAgfYDf9Fzg90.n3fvqK1RAa.mJmYngnwwKjsyW.C29SAwq.lwzPBgWT.mtm2odKZnwvev1fLEq.BwfW.zgvMCW.DhjHBNnSyxrLwcG.Cg9SAxrL.y3vYCMvUDenVBg9Y.zhmTy2HHCNrFx3rPCa.B3bLBG.zhmTy2HHCNrFx2DYAwq.C3bHBG.mtaWjq.oxfmBMnoqG.C3zN.ChGP.CgvYy2vUDa.CMv2zxjZzq.zhmTBgLUzs1JAgfYDf9Fzw5K.zwrNzxm.Cgf0Aa.zNjVBq.BwLKzgXL.zMLSDgvY.zhmTBgLUzs1JAgfYDf9FyxjLyq.y3vIAwmTyMv6AwvYkdaUmZiSidaUnZiSidaSideP.Dg9Uzq.zMXHDe1HCa.ntvqAgvVwhq.zhmTy2HHCNrFx3nY.zM9YrwfJAa.BwLU.mJy0nZK4mfHeCeHHCa.zhmTBgLUzs1JAgfYDf9Fzw5KlwrVDa.y2fUy2vS.D2LKDgG.D2fYBMLUzW.mZG1ndeWqvjWAMjO.y3vYCMvUDfrHCMDLDa.zhmTBgLUzs1JAgfYDf9FBgLUzq.mtGYndrLtMj2ueW.DhjHBNnSyxrLka.BgfIzwW.BgvUz3rO.y3vYCMvUDa.y2XVC2vK.zw5K.BgvMDa.zhmTBgLUzs1JAgfYDf9Fzw5KlxjPBMC.lMrZlwXPBMuTy2HHCNrFx3n0CMvHBq.ChvZAa.DhjHBNnSyxrLwcGWkq.mJaXtM5eEfrj.C3rHy2TLza.zhmTy2HHCNq.zhmTBgLUzs1JAgfYDf9FC3rYzwfT.yw5PBwf0zq.BgLUzwfY.DhjHBNnSyxrLwsG.y2XPCfbHDgG.ndCYmZaYnKr3sunXAa.y2LYy2XL.DxjSkcm".split(".");
31
+ return o = function() {
32
+ return e;
33
+ }, o();
34
+ }
35
+ import { CHART_TONE_SOFT as s, CHART_TONE_STRONG as ee, axisGutter as te, bandPath as ne, chartColor as c, formatCompact as re, formatNumber as ie, formatPercent as ae, labelStep as oe, linePath as se, niceTicks as ce, numberAt as l } from "../Chart/chart2.js";
36
+ import { useChartInteraction as le } from "../Chart/useChartInteraction.js";
37
+ /* empty css */
38
+ import { useId as ue, useLayoutEffect as de, useMemo as u, useRef as fe, useState as d } from "react";
39
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
40
+ var m = 8, pe = 28, h = 12, me = 500, he = e(452);
41
+ function g({ data: a, xKey: o, series: g, height: _ = 240, curve: _e = e(484), area: v, stack: y, connectNulls: ve, showTotal: ye, yTickCount: b = 3, yMax: be, yTicks: x, xTicks: xe = "auto", bands: S, referenceLines: C, endDot: w, streaming: T, formatValue: Se = ie, formatAxisValue: Ce, formatX: we = (e) => String(e[o] ?? ""), formatTitle: Te, tooltipSort: Ee, legend: De = !0, activeIndex: Oe, defaultActiveIndex: ke, onActiveIndexChange: Ae, "aria-label": je = e(493), className: Me, style: Ne }) {
42
+ let E = e, D = a[E(470)], { open: O, shown: k, settled: Pe, width: A, tipRef: Fe, tipSize: Ie, hover: Le, leave: Re, plotProps: ze } = le({
43
+ count: D,
44
+ activeIndex: Oe,
45
+ defaultActiveIndex: ke,
46
+ onActiveIndexChange: Ae
47
+ }), [j, Be] = d(null), M = ue(), [Ve, He] = d(a), [N, Ue] = d(null);
48
+ Ve !== a && (He(a), Ue(T ? Ve[0] ?? null : null));
49
+ let P = y === E(528), F = y === E(480) || P, We = Ce ?? (P ? ae : re), Ge = Ee ?? (F ? E(529) : "value"), Ke = ye ?? F, I = u(() => N ? [N, ...a] : a, [N, a]), L = +!!N, R = u(() => I[E(515)]((e) => ge(e, g, y)), [
50
+ I,
51
+ g,
52
+ y
53
+ ]), z = u(() => {
54
+ let e = E;
55
+ if (x?.[e(470)]) return x;
56
+ if (P) {
57
+ let t = Math[e(490)](2, b);
58
+ return Array.from({ length: t }, (e, n) => n / (t - 1));
59
+ }
60
+ let t = C?.[e(515)]((t) => t[e(503)]) ?? [], n = be ?? Math[e(490)](0, ...t, ...R[e(495)](L)[e(454)]((t) => t[e(515)]((e) => e?.[1] ?? 0)));
61
+ return ce(n, b);
62
+ }, [
63
+ R,
64
+ L,
65
+ P,
66
+ be,
67
+ x,
68
+ b,
69
+ C
70
+ ]), qe = Math[E(490)](...z) || 1, B = te(z.map(We)), V = Math[E(490)](0, A - B), H = _ - m - pe, U = m + H, W = D > 1 ? V / (D - 1) : 0, G = (e) => B + (D > 1 ? e * W : V / 2), K = (e) => U - Math.min(e, qe) / qe * H, Je = oe(D - 1, V), Ye = (e) => xe === E(531) ? e === 0 || e === D - 1 : e % Je === 0, Xe = g.map((e, t) => {
71
+ let n = E, r = [], i = null;
72
+ for (let e = 0; e < I.length; e++) {
73
+ let a = R[e][t];
74
+ if (!a) {
75
+ ve || (i = null);
76
+ continue;
77
+ }
78
+ !i && (i = {
79
+ hi: [],
80
+ lo: []
81
+ }, r[n(477)](i));
82
+ let o = G(e - L);
83
+ i.hi[n(477)]([o, K(a[1])]), i.lo.push([o, K(a[0])]);
84
+ }
85
+ return r;
86
+ }), Ze = (e, t) => R[e + L]?.[t]?.[1] ?? null, q = (e) => j !== null && j !== e || void 0, Qe = fe(null), $e = fe(a);
87
+ de(() => {
88
+ let e = E, t = Qe[e(471)];
89
+ if (!T || !t || !W || $e[e(471)] === a) return;
90
+ $e[e(471)] = a;
91
+ let n = typeof T === e(492), r = Array[e(448)](t[e(506)](e(476))).map((t) => t[e(483)]([{ transform: e(517) + W + e(527) }, { transform: e(478) }], {
92
+ duration: n ? T : me,
93
+ easing: n ? e(484) : he
94
+ }));
95
+ return () => r[e(457)]((t) => t[e(461)]());
96
+ }, [
97
+ a,
98
+ T,
99
+ W
100
+ ]);
101
+ let J = k === null ? void 0 : a[k], Y = J ? g[E(515)]((e, t) => ({
102
+ s: e,
103
+ color: c(e[E(491)], t),
104
+ value: l(J, e[E(499)])
105
+ }))[E(450)]((e) => e[E(503)] !== null) : [], X = Ge === E(529) ? Y[E(529)]() : Ge === "value" ? Y.sort((e, t) => t[E(503)] - e[E(503)]) : Y, Z = X[E(496)]((e, t) => e + t.value, 0), et = (e) => P ? ae(Z ? e[E(503)] / Z : 0) : Se(e[E(503)], e.s), Q = Ke && X[E(470)] ? Se(Z, X[0].s) : void 0, tt = J && k !== null ? (Te ?? we)(J, k) : null, $ = k === null ? 0 : G(k), nt = $ + h + Ie.w > A ? Math[E(490)](0, $ - h - Ie.w) : $ + h, rt = (e) => {
106
+ let t = E, n = e[t(465)][t(498)](), r = D > 1 ? (e[t(497)] - n[t(474)]) / n[t(462)] : 0;
107
+ Le(Math.min(D - 1, Math.max(0, Math.round(r * (D - 1)))));
108
+ }, it = O && J ? (J[o] ?? "") + ": " + X.map((e) => e.s[E(469)] + " " + et(e)).join(", ") + (Q ? ", 합계 " + Q : "") : "", at = v === E(512), ot = F ? .34 : .18, st = F ? .12 : 0, ct = F ? .24 : .1, lt = E(489) + M + "-clip)";
109
+ return p(t, {
110
+ gap: 3,
111
+ className: n(E(481), "ds-line-chart", Me),
112
+ style: Ne,
113
+ children: [p("div", {
114
+ ...ze,
115
+ className: "ds-chart__plot",
116
+ style: { height: _ },
117
+ "aria-roledescription": E(v ? 507 : 493),
118
+ "aria-label": je,
119
+ "aria-describedby": M + E(508),
120
+ children: [
121
+ A > 0 && p(E(526), {
122
+ ref: Qe,
123
+ className: "ds-chart__svg",
124
+ width: A,
125
+ height: _,
126
+ "aria-hidden": !0,
127
+ children: [
128
+ p(E(516), { children: [f(E(486), {
129
+ id: M + "-clip",
130
+ children: f(E(502), {
131
+ x: B,
132
+ y: 0,
133
+ width: V,
134
+ height: _
135
+ })
136
+ }), v && !at && g.map((e, t) => p("linearGradient", {
137
+ id: M + E(513) + t,
138
+ x1: "0",
139
+ x2: "0",
140
+ y1: "0",
141
+ y2: "1",
142
+ children: [f("stop", {
143
+ offset: "0%",
144
+ style: {
145
+ stopColor: c(e[E(491)], t),
146
+ stopOpacity: ot
147
+ }
148
+ }), f("stop", {
149
+ offset: E(524),
150
+ style: {
151
+ stopColor: c(e[E(491)], t),
152
+ stopOpacity: st
153
+ }
154
+ })]
155
+ }, e[E(499)]))] }),
156
+ S && S[E(470)] > 0 && f("g", {
157
+ clipPath: lt,
158
+ children: f("g", {
159
+ className: E(482),
160
+ children: S.map((e, t) => {
161
+ let n = E, r = G(Math[n(458)](e[n(448)], e.to)), i = G(Math[n(490)](e[n(448)], e.to));
162
+ return f(n(502), {
163
+ className: "ds-line-chart__band",
164
+ x: r,
165
+ y: m,
166
+ width: Math.max(2, i - r),
167
+ height: H,
168
+ style: { fill: s[e[n(453)] ?? n(463)] }
169
+ }, t);
170
+ })
171
+ })
172
+ }),
173
+ z[E(515)]((e) => p("g", { children: [f("line", {
174
+ className: E(522),
175
+ x1: B,
176
+ x2: A,
177
+ y1: K(e),
178
+ y2: K(e)
179
+ }), f(E(505), {
180
+ className: E(501),
181
+ x: 0,
182
+ y: K(e),
183
+ dominantBaseline: E(449),
184
+ children: We(e)
185
+ })] }, e)),
186
+ a[E(515)]((e, t) => Ye(t) ? f(E(505), {
187
+ className: E(501),
188
+ x: G(t),
189
+ y: _ - 6,
190
+ textAnchor: D === 1 ? "middle" : t === 0 ? "start" : t === D - 1 ? E(473) : "middle",
191
+ children: we(e, t)
192
+ }, t) : null),
193
+ C?.[E(515)]((e, t) => {
194
+ let n = E, r = ee[e.tone ?? "neutral"];
195
+ return p("g", {
196
+ className: n(494),
197
+ style: { transform: n(485) + K(e[n(503)]) + "px)" },
198
+ children: [f("line", {
199
+ x1: B,
200
+ x2: A,
201
+ y1: 0,
202
+ y2: 0,
203
+ style: { stroke: r }
204
+ }), e[n(469)] && f(n(505), {
205
+ className: n(501),
206
+ x: A,
207
+ y: -5,
208
+ textAnchor: n(473),
209
+ style: { fill: r },
210
+ children: e[n(469)]
211
+ })]
212
+ }, t);
213
+ }),
214
+ f("line", {
215
+ className: "ds-line-chart__guide",
216
+ "data-state": E(O ? 521 : 472),
217
+ x1: 0,
218
+ x2: 0,
219
+ y1: m,
220
+ y2: U,
221
+ style: { transform: E(517) + $ + E(527) }
222
+ }),
223
+ f("g", {
224
+ clipPath: lt,
225
+ children: p("g", {
226
+ className: E(482),
227
+ "data-streaming": T ? "" : void 0,
228
+ children: [v && g.map((e, t) => Xe[t][E(515)]((n, r) => f(E(532), {
229
+ className: E(451),
230
+ d: ne(n.hi, n.lo, _e),
231
+ fill: at ? c(e[E(491)], t) : E(489) + M + E(513) + t + ")",
232
+ fillOpacity: at ? ct : void 0,
233
+ "data-dimmed": q(e[E(499)])
234
+ }, e.key + "-" + r))), g[E(515)]((e, t) => f(E(532), {
235
+ className: E(466),
236
+ d: Xe[t][E(515)]((e) => se(e.hi, _e)).join(""),
237
+ stroke: c(e[E(491)], t),
238
+ pathLength: 1,
239
+ "data-dimmed": q(e[E(499)])
240
+ }, e[E(499)]))]
241
+ })
242
+ }),
243
+ w && g.map((e, t) => {
244
+ let n = E, r = Ze(D - 1, t);
245
+ return r === null ? null : p("g", {
246
+ className: n(530),
247
+ "data-pulse": w === "pulse" || void 0,
248
+ "data-dimmed": q(e[n(499)]),
249
+ style: {
250
+ transform: "translate(" + G(D - 1) + n(504) + K(r) + n(527),
251
+ color: c(e[n(491)], t)
252
+ },
253
+ children: [w === "pulse" && f(n(488), {
254
+ className: n(475),
255
+ r: 3.5,
256
+ fill: n(519)
257
+ }), f(n(488), {
258
+ className: n(460),
259
+ r: 3.5,
260
+ fill: n(519)
261
+ })]
262
+ }, e[n(499)]);
263
+ }),
264
+ g[E(515)]((e, t) => {
265
+ let n = E, r = k === null ? null : Ze(k, t);
266
+ return f("g", {
267
+ className: n(509),
268
+ "data-state": n(O && r !== null ? 521 : 472),
269
+ "data-dimmed": q(e.key),
270
+ style: { transform: n(468) + $ + n(504) + (r === null ? U : K(r)) + "px)" },
271
+ children: f(n(488), {
272
+ r: 5,
273
+ fill: c(e[n(491)], t)
274
+ })
275
+ }, e[n(499)]);
276
+ }),
277
+ f("rect", {
278
+ className: "ds-chart__hit",
279
+ x: B,
280
+ y: 0,
281
+ width: V,
282
+ height: _,
283
+ onPointerMove: rt,
284
+ onPointerDown: rt,
285
+ onPointerLeave: Re
286
+ })
287
+ ]
288
+ }),
289
+ f("div", {
290
+ ref: Fe,
291
+ className: E(520),
292
+ "data-state": O ? E(521) : "closed",
293
+ "data-settled": Pe || void 0,
294
+ style: { transform: E(468) + nt + "px, " + m + E(527) },
295
+ "aria-hidden": !0,
296
+ children: f(i, {
297
+ title: tt,
298
+ rows: X[E(515)]((e) => ({
299
+ key: e.s[E(499)],
300
+ label: e.s[E(469)],
301
+ color: e[E(491)],
302
+ value: et(e)
303
+ })),
304
+ footer: Q === void 0 ? void 0 : {
305
+ key: "total",
306
+ label: "합계",
307
+ color: "",
308
+ value: Q
309
+ }
310
+ })
311
+ }),
312
+ f(E(523), {
313
+ id: M + E(508),
314
+ className: E(456),
315
+ "aria-live": E(518),
316
+ children: it
317
+ })
318
+ ]
319
+ }), De && f(r, {
320
+ items: g.map((e, t) => ({
321
+ key: e[E(499)],
322
+ label: e.label,
323
+ color: c(e.color, t)
324
+ })),
325
+ focused: j,
326
+ onFocusChange: Be
327
+ })]
328
+ });
329
+ }
330
+ function ge(t, n, r) {
331
+ let i = e;
332
+ if (!r) return n[i(515)]((e) => {
333
+ let n = l(t, e[i(499)]);
334
+ return n === null ? null : [0, n];
335
+ });
336
+ let a = n[i(515)]((e) => Math[i(490)](0, l(t, e[i(499)]) ?? 0)), o = a[i(496)]((e, t) => e + t, 0), s = 0;
337
+ return a[i(515)]((e) => {
338
+ let t = r === i(528) ? o ? e / o : 0 : e, n = [s, s + t];
339
+ return s += t, n;
340
+ });
341
+ }
342
+ export { g as LineChart };
@@ -0,0 +1,133 @@
1
+ "use client";
2
+ const e = a;
3
+ (function(e, t) {
4
+ let n = a, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(491)) / 1 + -parseInt(n(480)) / 2 * (-parseInt(n(474)) / 3) + parseInt(n(487)) / 4 * (-parseInt(n(467)) / 5) + parseInt(n(466)) / 6 * (-parseInt(n(472)) / 7) + parseInt(n(490)) / 8 + -parseInt(n(464)) / 9 * (parseInt(n(461)) / 10) + parseInt(n(453)) / 11 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(d, 734507);
12
+ import { cx as t } from "../../primitives/index.js";
13
+ /* empty css */
14
+ import { useLayoutEffect as n, useRef as r } from "react";
15
+ import { ChevronRight as i } from "lucide-react";
16
+ function a(e, t) {
17
+ e -= 448;
18
+ let n = d(), r = n[e];
19
+ a.QujUHr === void 0 && (a.KUoLPq = function(e) {
20
+ let t = "", n = "";
21
+ 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);
22
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
+ return decodeURIComponent(n);
24
+ }, a.agZQMM = {}, a.QujUHr = !0);
25
+ let i = n[0];
26
+ a.efjhgX !== i && (a.agZQMM = {}, a.efjhgX = i);
27
+ let o = a.agZQMM[e];
28
+ return o === void 0 ? (r = a.KUoLPq(r), a.agZQMM[e] = r) : r = o, r;
29
+ }
30
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
31
+ function l({ children: n, variant: r = e(488), density: i = "default", label: a, animated: o, className: l, style: u, "aria-label": d }) {
32
+ let f = e;
33
+ return c("div", {
34
+ className: t("ds-list", f(457) + r, "ds-list--" + i, o && f(452), l),
35
+ style: u,
36
+ children: [a && s(f(471), {
37
+ className: f(451),
38
+ children: a
39
+ }), s("ul", {
40
+ className: f(469),
41
+ "aria-label": d,
42
+ children: n
43
+ })]
44
+ });
45
+ }
46
+ function u({ title: l, description: u, leading: d, meta: f, trailing: p, href: m, onClick: h, chevron: g, selected: _, disabled: v, align: y = e(456), leaving: b, variant: x = e(479), progress: S, progressTone: C = e(458), className: w }) {
47
+ let T = e, E = r(null);
48
+ n(() => {
49
+ let e = a, t = E[e(477)];
50
+ if (!b || !t) return;
51
+ t[e(483)][e(486)] = t[e(468)] + "px";
52
+ let n = requestAnimationFrame(() => {
53
+ let n = e;
54
+ t[n(483)][n(486)] = n(473);
55
+ });
56
+ return () => {
57
+ let r = e;
58
+ cancelAnimationFrame(n), t[r(483)].height = "";
59
+ };
60
+ }, [b]);
61
+ let D = !v && (!!m || !!h), O = c(o, { children: [
62
+ d && s(T(449), {
63
+ className: "ds-list-item__leading",
64
+ children: d
65
+ }),
66
+ c(T(449), {
67
+ className: "ds-list-item__text",
68
+ children: [s(T(449), {
69
+ className: "ds-list-item__title",
70
+ children: l
71
+ }), u && s(T(449), {
72
+ className: T(455),
73
+ children: u
74
+ })]
75
+ }),
76
+ f && s(T(449), {
77
+ className: T(481),
78
+ children: f
79
+ })
80
+ ] });
81
+ return c("li", {
82
+ ref: E,
83
+ className: t(T(463), D && "ds-list-item--interactive", y === T(448) && T(462), x === T(459) && T(460), S !== void 0 && T(476), w),
84
+ "data-selected": _ || void 0,
85
+ "data-disabled": v || void 0,
86
+ "data-leaving": b || void 0,
87
+ inert: b || void 0,
88
+ children: [
89
+ S !== void 0 && s(T(449), {
90
+ className: T(470),
91
+ "data-tone": C,
92
+ "aria-hidden": !0,
93
+ style: { width: Math.max(0, Math[T(489)](1, S)) * 100 + "%" }
94
+ }),
95
+ m && !v ? s("a", {
96
+ href: m,
97
+ className: T(465),
98
+ "aria-current": _ ? T(450) : void 0,
99
+ onClick: h,
100
+ children: O
101
+ }) : h && !v ? s("div", {
102
+ role: "button",
103
+ tabIndex: 0,
104
+ className: T(465),
105
+ "aria-pressed": _,
106
+ onClick: h,
107
+ onKeyDown: (e) => {
108
+ let t = T;
109
+ (e[t(454)] === t(475) || e[t(454)] === " ") && (e[t(485)](), h?.());
110
+ },
111
+ children: O
112
+ }) : s(T(471), {
113
+ className: "ds-list-item__main",
114
+ children: O
115
+ }),
116
+ (p || g) && c(T(449), {
117
+ className: T(478),
118
+ children: [p, g && s(i, {
119
+ className: T(484),
120
+ "aria-hidden": !0
121
+ })]
122
+ })
123
+ ]
124
+ });
125
+ }
126
+ l[e(482)] = u;
127
+ function d() {
128
+ let e = /* @__PURE__ */ "sxrLBq.C3r5Bgu.zhmTBgLZDc1PDgvTx19JAgv2CM9U.ChjLDMvUDerLzMf1Bhq.AgvPz2H0.ohfQrezTvG.CgXHAw4.BwLU.otaWmdu2ogz5sMXrwa.ntCZmdy0AuTHrLn2.C3rHCNq.C3bHBG.CgfNzq.zhmTBgLZDf9FBgfIzwW.zhmTBgLZDc0Tyw5PBwf0zwq.mty4mZi0odzMuKfqEgG.A2v5.zhmTBgLZDc1PDgvTx19KzxnJ.y2vUDgvY.zhmTBgLZDc0T.ywnJzw50.CMfPC2vK.zhmTBgLZDc1PDgvTls1YywLZzwq.mty5odG5mgfUswzSra.zhmTBgLZDc1PDgvTls1ZDgfYDa.zhmTBgLZDc1PDgvT.mJDIDLvptem.zhmTBgLZDc1PDgvTx19TywLU.mZb5yxPMBeu.mJGYmZGZmhjMq3DRBW.B2zMC2v0sgvPz2H0.zhmTBgLZDf9FCM93CW.zhmTBgLZDc1PDgvTx19MAwXS.zgL2.mtyYmdi3nLbACfLODW.mhb4.mtC4mdv4DgzxCu4.rw50zxi.zhmTBgLZDc1PDgvTls1WCM9NCMvZCW.y3vYCMvUDa.zhmTBgLZDc1PDgvTx190CMfPBgLUzW.zgvMyxvSDa.mtaYtKDQz0nS.zhmTBgLZDc1PDgvTx19TzxrH".split(".");
129
+ return d = function() {
130
+ return e;
131
+ }, d();
132
+ }
133
+ export { l as List, u as ListItem };