@iamfiro/design 0.3.1 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,70 +1,62 @@
1
1
  "use client";
2
- const e = h;
2
+ const e = _;
3
3
  (function(e, t) {
4
- let n = h, r = e();
4
+ let n = _, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(378)) / 1 * (parseInt(n(365)) / 2) + -parseInt(n(331)) / 3 * (-parseInt(n(328)) / 4) + -parseInt(n(405)) / 5 * (-parseInt(n(376)) / 6) + -parseInt(n(342)) / 7 * (parseInt(n(386)) / 8) + parseInt(n(406)) / 9 * (-parseInt(n(394)) / 10) + parseInt(n(371)) / 11 + parseInt(n(377)) / 12 == t) break;
6
+ if (parseInt(n(464)) / 1 * (-parseInt(n(465)) / 2) + -parseInt(n(504)) / 3 + -parseInt(n(454)) / 4 * (parseInt(n(528)) / 5) + -parseInt(n(523)) / 6 + parseInt(n(515)) / 7 + -parseInt(n(503)) / 8 * (parseInt(n(462)) / 9) + -parseInt(n(469)) / 10 * (-parseInt(n(531)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(_, 738005);
11
+ })(a, 690005);
12
12
  import { Stack as t } from "../../primitives/Layout2.js";
13
13
  import { cx as n } from "../../primitives/index.js";
14
14
  import { ChartLegend as r, ChartTooltip as i } from "../Chart/ChartParts.js";
15
- import { CHART_TONE_SOFT as a, CHART_TONE_STRONG as o, axisGutter as s, bandPath as ee, chartColor as c, formatCompact as te, formatNumber as ne, formatPercent as re, labelStep as ie, linePath as ae, niceTicks as oe, numberAt as l } from "../Chart/chart2.js";
16
- import { useChartInteraction as se } from "../Chart/useChartInteraction.js";
15
+ function a() {
16
+ let e = /* @__PURE__ */ "zhmTBgLUzs1JAgfYDf9FBgLUzq.DhjHBNnSyxrLwcGWkq.C3zN.DxjSkcm.zhmTy2HHCNq.zhmTBgLUzs1JAgfYDf9FCMvM.D2LKDgG.nhjVufPOwq.BgLUzwfY.DMfSDwu.BgLUzq.C3rVCa.AM9PBG.lwXPDMu.BgfIzwW.ovr4txf0yG.zgL2.nJfmv0DmCMu.mteXnhnICfbqCG.zhmTBgLUzs1JAgfYDf9FyMfUza.CMv2zxjZzq.BgvUz3rO.mtu4mJe0odbuA0D5EeC.7isGioYWQo2kUa.ChvSC2u.z2v0qM91BMrPBMDdBgLLBNrszwn0.Cgf0Aa.lcdTLANQS4qG.BwLKzgXL.D2fYBMLUzW.7jIb7jETioYWQo2kUa.C3bHBG.zMLSDgvY.zhmTy2HHCNrFx3rPCa.yxv0BW.y2XPzw50wa.mtaWjq.zhmTBgLUzs1JAgfYDf9FC3rYzwfT.zhmTy2HHCNrFx2f4Axm.Cg9SAxrL.zhmTBgLUzs1JAgfYDf9Fzw5KlwrVDa.Bwf4.y3vYCMvUDa.y2XVC2vK.yw5PBwf0zq.zhmTBgLUzs1JAgfYDf9FyxjLyq.y29SB3i.Dg90ywW.ChGSia.BgLUzwfYr3jHzgLLBNq.y2LYy2XL.BwfW.zNjVBq.ChvZAa.zgvMCW.Dg9Uzq.odm1ntu0ne9XB2riEG.mtuWmZm4n0fuz1rXDG.C29SAwq.C29YDa.CMvJDa.CxvLCNLtzwXLy3rVCKfSBa.BgvMDa.CgvYy2vUDa.BNvTyMvY.y3vYCMvUDenVBg9Y.zhmTBgLUzs1JAgfYDf9Fzw5KlxjPBMC.BwLU.odqXmdi5vujluxvj.ChGP.y3vYCMvUDfrHCMDLDa.zhmTy2HHCNrFx3bSB3q.zhmTy2HHCNrFx2DYAwq.Dgv4Da.A2v5.zhmTBgLUzs1JAgfYDa.mJqWndK5ogH5D2vdEG.zMXHDe1HCa.DhjHBNnSyxrLka.CM91BMq.CMvKDwnL.mZa3mdi4mfHbCgvyrG.B3bLBG.zw5K.mJjtDeL6uLC.lwnSAxaP.DhjHBNnSyxrLwcG.y2XPCfbHDgG".split(".");
17
+ return a = function() {
18
+ return e;
19
+ }, a();
20
+ }
21
+ import { CHART_TONE_SOFT as o, CHART_TONE_STRONG as s, axisGutter as ee, bandPath as te, chartColor as c, formatCompact as ne, formatNumber as re, formatPercent as ie, labelStep as ae, linePath as oe, niceTicks as se, numberAt as l } from "../Chart/chart2.js";
22
+ import { useChartInteraction as ce } from "../Chart/useChartInteraction.js";
17
23
  /* empty css */
18
- import { useId as ce, useLayoutEffect as le, useMemo as u, useRef as ue, useState as d } from "react";
24
+ import { useId as le, useLayoutEffect as ue, useMemo as u, useRef as de, useState as d } from "react";
19
25
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
20
- var m = 8, de = 28, fe = 12, pe = 500, me = e(374);
21
- function h(e, t) {
22
- e -= 321;
23
- let n = _(), r = n[e];
24
- h.Fvayju === void 0 && (h.CBWthx = 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
- }, h.QMgajY = {}, h.Fvayju = !0);
30
- let i = n[0];
31
- h.uwhgys !== i && (h.QMgajY = {}, h.uwhgys = i);
32
- let a = h.QMgajY[e];
33
- return a === void 0 ? (r = h.CBWthx(r), h.QMgajY[e] = r) : r = a, r;
34
- }
35
- function g({ data: h, xKey: g, series: _, height: v = 240, curve: ge = e(349), area: y, stack: b, connectNulls: _e, showTotal: ve, yTickCount: x = 3, yMax: ye, yTicks: S, xTicks: be = "auto", bands: C, referenceLines: w, endDot: xe, streaming: T, formatValue: Se = ne, formatAxisValue: Ce, formatX: we = (e) => String(e[g] ?? ""), formatTitle: Te, tooltipSort: Ee, legend: De = !0, activeIndex: Oe, defaultActiveIndex: ke, onActiveIndexChange: Ae, "aria-label": je = "선 차트", className: Me, style: Ne }) {
36
- let E = e, D = h[E(366)], { open: O, shown: k, settled: Pe, width: A, tipRef: Fe, tipSize: Ie, hover: Le, leave: Re, plotProps: ze } = se({
37
- count: D,
38
- activeIndex: Oe,
39
- defaultActiveIndex: ke,
40
- onActiveIndexChange: Ae
41
- }), [j, Be] = d(null), M = ce(), [Ve, He] = d(h), [N, Ue] = d(null);
42
- Ve !== h && (He(h), Ue(T ? Ve[0] ?? null : null));
43
- let P = b === E(385), F = b === E(344) || P, We = Ce ?? (P ? re : te), Ge = Ee ?? (F ? E(353) : "value"), Ke = ve ?? F, I = u(() => N ? [N, ...h] : h, [N, h]), L = +!!N, R = u(() => I[E(336)]((e) => he(e, _, b)), [
44
- I,
26
+ var m = 8, fe = 28, h = 12, pe = 500, me = "cubic-bezier(0.32, 0.72, 0, 1)";
27
+ function g({ data: a, xKey: g, series: _, height: v = 240, curve: ge = e(455), area: y, stack: b, connectNulls: _e, showTotal: ve, yTickCount: x = 3, yMax: ye, yTicks: S, xTicks: be = e(481), bands: C, referenceLines: w, endDot: T, streaming: E, formatValue: xe = re, formatAxisValue: Se, formatX: Ce = (e) => String(e[g] ?? ""), formatTitle: we, tooltipSort: Te, legend: Ee = !0, activeIndex: De, defaultActiveIndex: Oe, onActiveIndexChange: ke, "aria-label": Ae = e(470), className: je, style: Me }) {
28
+ let D = e, O = a[D(468)], { open: k, shown: A, settled: Ne, width: j, tipRef: Pe, tipSize: Fe, hover: Ie, leave: Le, plotProps: Re } = ce({
29
+ count: O,
30
+ activeIndex: De,
31
+ defaultActiveIndex: Oe,
32
+ onActiveIndexChange: ke
33
+ }), [M, ze] = d(null), N = le(), [Be, Ve] = d(a), [P, He] = d(null);
34
+ Be !== a && (Ve(a), He(E ? Be[0] ?? null : null));
35
+ let F = b === D(510), I = b === "stacked" || F, Ue = Se ?? (F ? ie : ne), We = Te ?? (I ? "reverse" : "value"), Ge = ve ?? I, L = u(() => P ? [P, ...a] : a, [P, a]), R = +!!P, z = u(() => L[D(498)]((e) => he(e, _, b)), [
36
+ L,
45
37
  _,
46
38
  b
47
- ]), z = u(() => {
48
- let e = E;
49
- if (S?.[e(366)]) return S;
50
- if (P) {
51
- let t = Math[e(335)](2, x);
52
- return Array[e(334)]({ length: t }, (e, n) => n / (t - 1));
39
+ ]), B = u(() => {
40
+ let e = D;
41
+ if (S?.[e(468)]) return S;
42
+ if (F) {
43
+ let t = Math[e(488)](2, x);
44
+ return Array[e(499)]({ length: t }, (e, n) => n / (t - 1));
53
45
  }
54
- let t = w?.[e(336)]((t) => t[e(384)]) ?? [], n = ye ?? Math.max(0, ...t, ...R[e(392)](L)[e(364)]((t) => t[e(336)]((e) => e?.[1] ?? 0)));
55
- return oe(n, x);
46
+ let t = w?.map((e) => e.value) ?? [], n = ye ?? Math[e(488)](0, ...t, ...z.slice(R)[e(524)]((e) => e.map((e) => e?.[1] ?? 0)));
47
+ return se(n, x);
56
48
  }, [
49
+ z,
57
50
  R,
58
- L,
59
- P,
51
+ F,
60
52
  ye,
61
53
  S,
62
54
  x,
63
55
  w
64
- ]), qe = Math[E(335)](...z) || 1, B = s(z[E(336)](We)), V = Math[E(335)](0, A - B), H = v - m - de, U = m + H, W = D > 1 ? V / (D - 1) : 0, G = (e) => B + (D > 1 ? e * W : V / 2), K = (e) => U - Math[E(391)](e, qe) / qe * H, Je = ie(D - 1, V), Ye = (e) => be === E(332) ? e === 0 || e === D - 1 : e % Je === 0, Xe = _[E(336)]((e, t) => {
65
- let n = E, r = [], i = null;
66
- for (let e = 0; e < I[n(366)]; e++) {
67
- let a = R[e][t];
56
+ ]), Ke = Math[D(488)](...B) || 1, V = ee(B.map(Ue)), H = Math[D(488)](0, j - V), U = v - m - fe, qe = m + U, W = O > 1 ? H / (O - 1) : 0, G = (e) => V + (O > 1 ? e * W : H / 2), K = (e) => qe - Math.min(e, Ke) / Ke * U, Je = ae(O - 1, H), Ye = (e) => be === "edges" ? e === 0 || e === O - 1 : e % Je === 0, Xe = _[D(498)]((e, t) => {
57
+ let n = D, r = [], i = null;
58
+ for (let e = 0; e < L[n(468)]; e++) {
59
+ let a = z[e][t];
68
60
  if (!a) {
69
61
  _e || (i = null);
70
62
  continue;
@@ -73,270 +65,278 @@ function g({ data: h, xKey: g, series: _, height: v = 240, curve: ge = e(349), a
73
65
  hi: [],
74
66
  lo: []
75
67
  }, r.push(i));
76
- let o = G(e - L);
77
- i.hi[n(352)]([o, K(a[1])]), i.lo[n(352)]([o, K(a[0])]);
68
+ let o = G(e - R);
69
+ i.hi[n(500)]([o, K(a[1])]), i.lo[n(500)]([o, K(a[0])]);
78
70
  }
79
71
  return r;
80
- }), Ze = (e, t) => R[e + L]?.[t]?.[1] ?? null, q = (e) => j !== null && j !== e || void 0, Qe = ue(null), $e = ue(h);
81
- le(() => {
82
- let e = E, t = Qe[e(369)];
83
- if (!T || !t || !W || $e[e(369)] === h) return;
84
- $e.current = h;
85
- let n = typeof T == "number", r = Array[e(334)](t[e(408)](e(379)))[e(336)]((t) => t[e(414)]([{ transform: "translateX(" + W + "px)" }, { transform: e(387) }], {
86
- duration: n ? T : pe,
87
- easing: n ? e(349) : me
72
+ }), Ze = (e, t) => z[e + R]?.[t]?.[1] ?? null, q = (e) => M !== null && M !== e || void 0, Qe = de(null), $e = de(a);
73
+ ue(() => {
74
+ let e = D, t = Qe.current;
75
+ if (!E || !t || !W || $e[e(489)] === a) return;
76
+ $e[e(489)] = a;
77
+ let n = typeof E === e(511), r = Array[e(499)](t[e(508)](".ds-line-chart__stream"))[e(498)]((t) => t[e(491)]([{ transform: e(533) + W + e(516) }, { transform: e(536) }], {
78
+ duration: n ? E : pe,
79
+ easing: n ? e(455) : me
88
80
  }));
89
- return () => r.forEach((t) => t[e(398)]());
81
+ return () => r.forEach((e) => e.cancel());
90
82
  }, [
91
- h,
92
- T,
83
+ a,
84
+ E,
93
85
  W
94
86
  ]);
95
- let J = k === null ? void 0 : h[k], Y = J ? _[E(336)]((e, t) => ({
87
+ let J = A === null ? void 0 : a[A], Y = J ? _[D(498)]((e, t) => ({
96
88
  s: e,
97
- color: c(e[E(346)], t),
98
- value: l(J, e[E(337)])
99
- }))[E(389)]((e) => e[E(384)] !== null) : [], X = Ge === E(353) ? Y[E(353)]() : Ge === E(384) ? Y[E(343)]((e, t) => t.value - e[E(384)]) : Y, Z = X[E(367)]((e, t) => e + t[E(384)], 0), et = (e) => P ? re(Z ? e.value / Z : 0) : Se(e[E(384)], e.s), Q = Ke && X[E(366)] ? Se(Z, X[0].s) : void 0, tt = J && k !== null ? (Te ?? we)(J, k) : null, $ = k === null ? 0 : G(k), nt = $ + fe + Ie.w > A ? Math[E(335)](0, $ - fe - Ie.w) : $ + fe, rt = (e) => {
100
- let t = E, n = e[t(399)][t(321)](), r = D > 1 ? (e[t(359)] - n[t(361)]) / n[t(324)] : 0;
101
- Le(Math[t(391)](D - 1, Math[t(335)](0, Math[t(338)](r * (D - 1)))));
102
- }, it = O && J ? (J[g] ?? "") + ": " + X[E(336)]((e) => e.s[E(397)] + " " + et(e)).join(", ") + (Q ? ", 합계 " + Q : "") : "", at = y === E(360), ot = F ? .34 : .18, st = F ? .12 : 0, ct = F ? .24 : .1, lt = E(345) + M + "-clip)";
89
+ color: c(e[D(493)], t),
90
+ value: l(J, e.key)
91
+ }))[D(479)]((e) => e[D(456)] !== null) : [], X = We === D(467) ? Y.reverse() : We === "value" ? Y[D(506)]((e, t) => t[D(456)] - e[D(456)]) : Y, Z = X[D(527)]((e, t) => e + t[D(456)], 0), et = (e) => F ? ie(Z ? e[D(456)] / Z : 0) : xe(e[D(456)], e.s), Q = Ge && X.length ? xe(Z, X[0].s) : void 0, tt = J && A !== null ? (we ?? Ce)(J, A) : null, $ = A === null ? 0 : G(A), nt = $ + h + Fe.w > j ? Math[D(488)](0, $ - h - Fe.w) : $ + h, rt = (e) => {
92
+ let t = D, n = e[t(517)][t(472)](), r = O > 1 ? (e[t(482)] - n[t(509)]) / n[t(453)] : 0;
93
+ Ie(Math.min(O - 1, Math[t(488)](0, Math[t(526)](r * (O - 1)))));
94
+ }, it = k && J ? (J[g] ?? "") + ": " + X[D(498)]((e) => e.s[D(461)] + " " + et(e))[D(459)](", ") + (Q ? D(474) + Q : "") : "", at = y === D(505), ot = I ? .34 : .18, st = I ? .12 : 0, ct = I ? .24 : .1, lt = D(538) + N + D(532);
103
95
  return p(t, {
104
96
  gap: 3,
105
- className: n(E(356), E(341), Me),
106
- style: Ne,
107
- children: [p(E(409), {
108
- ...ze,
109
- className: E(347),
97
+ className: n(D(539), D(522), je),
98
+ style: Me,
99
+ children: [p(D(463), {
100
+ ...Re,
101
+ className: D(518),
110
102
  style: { height: v },
111
- "aria-roledescription": E(y ? 402 : 357),
112
- "aria-label": je,
113
- "aria-describedby": M + E(393),
103
+ "aria-roledescription": D(y ? 477 : 470),
104
+ "aria-label": Ae,
105
+ "aria-describedby": N + D(460),
114
106
  children: [
115
- A > 0 && p(E(368), {
107
+ j > 0 && p(D(537), {
116
108
  ref: Qe,
117
109
  className: "ds-chart__svg",
118
- width: A,
110
+ width: j,
119
111
  height: v,
120
112
  "aria-hidden": !0,
121
113
  children: [
122
- p("defs", { children: [f(E(339), {
123
- id: M + E(396),
124
- children: f(E(390), {
125
- x: B,
114
+ p(D(501), { children: [f(D(534), {
115
+ id: N + "-clip",
116
+ children: f(D(507), {
117
+ x: V,
126
118
  y: 0,
127
- width: V,
119
+ width: H,
128
120
  height: v
129
121
  })
130
- }), y && !at && _[E(336)]((e, t) => p(E(351), {
131
- id: M + "-fill-" + t,
122
+ }), y && !at && _[D(498)]((e, t) => p(D(496), {
123
+ id: N + "-fill-" + t,
132
124
  x1: "0",
133
125
  x2: "0",
134
126
  y1: "0",
135
127
  y2: "1",
136
- children: [f("stop", {
128
+ children: [f(D(458), {
137
129
  offset: "0%",
138
130
  style: {
139
- stopColor: c(e[E(346)], t),
131
+ stopColor: c(e[D(493)], t),
140
132
  stopOpacity: ot
141
133
  }
142
- }), f(E(407), {
143
- offset: E(400),
134
+ }), f(D(458), {
135
+ offset: D(483),
144
136
  style: {
145
- stopColor: c(e.color, t),
137
+ stopColor: c(e[D(493)], t),
146
138
  stopOpacity: st
147
139
  }
148
140
  })]
149
- }, e[E(337)]))] }),
141
+ }, e[D(521)]))] }),
150
142
  C && C.length > 0 && f("g", {
151
143
  clipPath: lt,
152
144
  children: f("g", {
153
145
  className: "ds-line-chart__stream",
154
- children: C.map((e, t) => {
155
- let n = E, r = G(Math[n(391)](e[n(334)], e.to)), i = G(Math[n(335)](e[n(334)], e.to));
156
- return f(n(390), {
157
- className: n(348),
146
+ children: C[D(498)]((e, t) => {
147
+ let n = D, r = G(Math[n(514)](e.from, e.to)), i = G(Math.max(e[n(499)], e.to));
148
+ return f(n(507), {
149
+ className: n(466),
158
150
  x: r,
159
151
  y: m,
160
- width: Math[n(335)](2, i - r),
161
- height: H,
162
- style: { fill: a[e[n(354)] ?? "warning"] }
152
+ width: Math.max(2, i - r),
153
+ height: U,
154
+ style: { fill: o[e[n(502)] ?? n(476)] }
163
155
  }, t);
164
156
  })
165
157
  })
166
158
  }),
167
- z.map((e) => p("g", { children: [f(E(410), {
168
- className: E(330),
169
- x1: B,
170
- x2: A,
159
+ B.map((e) => p("g", { children: [f(D(457), {
160
+ className: D(519),
161
+ x1: V,
162
+ x2: j,
171
163
  y1: K(e),
172
164
  y2: K(e)
173
- }), f(E(401), {
165
+ }), f(D(520), {
174
166
  className: "ds-chart__axis",
175
167
  x: 0,
176
168
  y: K(e),
177
- dominantBaseline: E(413),
178
- children: We(e)
169
+ dominantBaseline: D(475),
170
+ children: Ue(e)
179
171
  })] }, e)),
180
- h.map((e, t) => Ye(t) ? f(E(401), {
181
- className: E(362),
172
+ a.map((e, t) => Ye(t) ? f("text", {
173
+ className: "ds-chart__axis",
182
174
  x: G(t),
183
175
  y: v - 6,
184
- textAnchor: D === 1 ? E(413) : t === 0 ? E(380) : t === D - 1 ? E(358) : E(413),
185
- children: we(e, t)
176
+ textAnchor: O === 1 ? D(475) : t === 0 ? "start" : t === O - 1 ? D(530) : D(475),
177
+ children: Ce(e, t)
186
178
  }, t) : null),
187
- w?.[E(336)]((e, t) => {
188
- let n = E, r = o[e[n(354)] ?? n(333)];
179
+ w?.[D(498)]((e, t) => {
180
+ let n = D, r = s[e.tone ?? "neutral"];
189
181
  return p("g", {
190
- className: "ds-line-chart__ref",
191
- style: { transform: "translateY(" + K(e[n(384)]) + n(370) },
192
- children: [f(n(410), {
193
- x1: B,
194
- x2: A,
182
+ className: n(452),
183
+ style: { transform: "translateY(" + K(e[n(456)]) + "px)" },
184
+ children: [f("line", {
185
+ x1: V,
186
+ x2: j,
195
187
  y1: 0,
196
188
  y2: 0,
197
189
  style: { stroke: r }
198
- }), e.label && f(n(401), {
199
- className: n(362),
200
- x: A,
190
+ }), e[n(461)] && f(n(520), {
191
+ className: n(485),
192
+ x: j,
201
193
  y: -5,
202
194
  textAnchor: "end",
203
195
  style: { fill: r },
204
- children: e[n(397)]
196
+ children: e.label
205
197
  })]
206
198
  }, t);
207
199
  }),
208
- f(E(410), {
209
- className: E(326),
210
- "data-state": E(O ? 373 : 372),
200
+ f(D(457), {
201
+ className: "ds-line-chart__guide",
202
+ "data-state": D(k ? 529 : 490),
211
203
  x1: 0,
212
204
  x2: 0,
213
205
  y1: m,
214
- y2: U,
215
- style: { transform: E(325) + $ + E(370) }
206
+ y2: qe,
207
+ style: { transform: D(533) + $ + D(516) }
216
208
  }),
217
209
  f("g", {
218
210
  clipPath: lt,
219
211
  children: p("g", {
220
- className: E(388),
221
- "data-streaming": T ? "" : void 0,
222
- children: [y && _[E(336)]((e, t) => Xe[t][E(336)]((n, r) => f(E(382), {
223
- className: "ds-line-chart__area",
224
- d: ee(n.hi, n.lo, ge),
225
- fill: at ? c(e[E(346)], t) : "url(#" + M + E(350) + t + ")",
212
+ className: D(484),
213
+ "data-streaming": E ? "" : void 0,
214
+ children: [y && _[D(498)]((e, t) => Xe[t][D(498)]((n, r) => f(D(473), {
215
+ className: D(492),
216
+ d: te(n.hi, n.lo, ge),
217
+ fill: at ? c(e.color, t) : D(538) + N + "-fill-" + t + ")",
226
218
  fillOpacity: at ? ct : void 0,
227
- "data-dimmed": q(e[E(337)])
228
- }, e.key + "-" + r))), _[E(336)]((e, t) => f(E(382), {
229
- className: E(375),
230
- d: Xe[t][E(336)]((e) => ae(e.hi, ge))[E(383)](""),
231
- stroke: c(e[E(346)], t),
219
+ "data-dimmed": q(e[D(521)])
220
+ }, e[D(521)] + "-" + r))), _[D(498)]((e, t) => f(D(473), {
221
+ className: D(535),
222
+ d: Xe[t][D(498)]((e) => oe(e.hi, ge))[D(459)](""),
223
+ stroke: c(e[D(493)], t),
232
224
  pathLength: 1,
233
- "data-dimmed": q(e[E(337)])
234
- }, e[E(337)]))]
225
+ "data-dimmed": q(e[D(521)])
226
+ }, e[D(521)]))]
235
227
  })
236
228
  }),
237
- xe && _[E(336)]((e, t) => {
238
- let n = E, r = Ze(D - 1, t);
229
+ T && _[D(498)]((e, t) => {
230
+ let n = D, r = Ze(O - 1, t);
239
231
  return r === null ? null : p("g", {
240
- className: n(327),
241
- "data-pulse": xe === n(395) || void 0,
242
- "data-dimmed": q(e.key),
232
+ className: "ds-line-chart__end",
233
+ "data-pulse": T === n(471) || void 0,
234
+ "data-dimmed": q(e[n(521)]),
243
235
  style: {
244
- transform: n(363) + G(D - 1) + "px, " + K(r) + n(370),
245
- color: c(e[n(346)], t)
236
+ transform: n(525) + G(O - 1) + n(495) + K(r) + n(516),
237
+ color: c(e[n(493)], t)
246
238
  },
247
- children: [xe === n(395) && f(n(340), {
248
- className: n(411),
239
+ children: [T === n(471) && f(n(497), {
240
+ className: n(513),
249
241
  r: 3.5,
250
- fill: n(412)
251
- }), f(n(340), {
252
- className: n(355),
242
+ fill: n(512)
243
+ }), f(n(497), {
244
+ className: n(487),
253
245
  r: 3.5,
254
- fill: n(412)
246
+ fill: "currentColor"
255
247
  })]
256
- }, e.key);
248
+ }, e[n(521)]);
257
249
  }),
258
- _.map((e, t) => {
259
- let n = E, r = k === null ? null : Ze(k, t);
250
+ _[D(498)]((e, t) => {
251
+ let n = D, r = A === null ? null : Ze(A, t);
260
252
  return f("g", {
261
- className: n(329),
262
- "data-state": O && r !== null ? n(373) : "closed",
263
- "data-dimmed": q(e[n(337)]),
264
- style: { transform: n(363) + $ + n(404) + (r === null ? U : K(r)) + n(370) },
265
- children: f(n(340), {
253
+ className: "ds-line-chart__dot",
254
+ "data-state": n(k && r !== null ? 529 : 490),
255
+ "data-dimmed": q(e[n(521)]),
256
+ style: { transform: "translate(" + $ + n(495) + (r === null ? qe : K(r)) + n(516) },
257
+ children: f("circle", {
266
258
  r: 5,
267
- fill: c(e[n(346)], t)
259
+ fill: c(e[n(493)], t)
268
260
  })
269
- }, e[n(337)]);
261
+ }, e[n(521)]);
270
262
  }),
271
- f(E(390), {
272
- className: E(381),
273
- x: B,
263
+ f(D(507), {
264
+ className: "ds-chart__hit",
265
+ x: V,
274
266
  y: 0,
275
- width: V,
267
+ width: H,
276
268
  height: v,
277
269
  onPointerMove: rt,
278
270
  onPointerDown: rt,
279
- onPointerLeave: Re
271
+ onPointerLeave: Le
280
272
  })
281
273
  ]
282
274
  }),
283
- f("div", {
284
- ref: Fe,
285
- className: "ds-chart__tip",
286
- "data-state": O ? "open" : E(372),
287
- "data-settled": Pe || void 0,
288
- style: { transform: E(363) + nt + "px, " + m + E(370) },
275
+ f(D(463), {
276
+ ref: Pe,
277
+ className: D(480),
278
+ "data-state": k ? D(529) : "closed",
279
+ "data-settled": Ne || void 0,
280
+ style: { transform: D(525) + nt + D(495) + m + D(516) },
289
281
  "aria-hidden": !0,
290
282
  children: f(i, {
291
283
  title: tt,
292
- rows: X.map((e) => ({
293
- key: e.s[E(337)],
294
- label: e.s[E(397)],
284
+ rows: X[D(498)]((e) => ({
285
+ key: e.s.key,
286
+ label: e.s[D(461)],
295
287
  color: e.color,
296
288
  value: et(e)
297
289
  })),
298
290
  footer: Q === void 0 ? void 0 : {
299
- key: E(323),
291
+ key: D(494),
300
292
  label: "합계",
301
293
  color: "",
302
294
  value: Q
303
295
  }
304
296
  })
305
297
  }),
306
- f(E(322), {
307
- id: M + "-live",
308
- className: E(403),
309
- "aria-live": E(415),
298
+ f(D(478), {
299
+ id: N + D(460),
300
+ className: "ds-chart__sr",
301
+ "aria-live": D(486),
310
302
  children: it
311
303
  })
312
304
  ]
313
- }), De && f(r, {
314
- items: _[E(336)]((e, t) => ({
315
- key: e.key,
316
- label: e[E(397)],
317
- color: c(e.color, t)
305
+ }), Ee && f(r, {
306
+ items: _.map((e, t) => ({
307
+ key: e[D(521)],
308
+ label: e[D(461)],
309
+ color: c(e[D(493)], t)
318
310
  })),
319
- focused: j,
320
- onFocusChange: Be
311
+ focused: M,
312
+ onFocusChange: ze
321
313
  })]
322
314
  });
323
315
  }
324
- function _() {
325
- let e = /* @__PURE__ */ "zhmTy2HHCNrFx3bSB3q.zhmTBgLUzs1JAgfYDf9FyMfUza.BgLUzwfY.lwzPBgWT.BgLUzwfYr3jHzgLLBNq.ChvZAa.CMv2zxjZzq.Dg9Uzq.zhmTBgLUzs1JAgfYDf9Fzw5KlwrVDa.zhmTy2HHCNq.7isGioYWQo2kUa.zw5K.y2XPzw50wa.C29SAwq.BgvMDa.zhmTy2HHCNrFx2f4Axm.DhjHBNnSyxrLka.zMXHDe1HCa.nhbUC1znsq.BgvUz3rO.CMvKDwnL.C3zN.y3vYCMvUDa.ChGP.ndK2mdmYovngDwL4Aa.y2XVC2vK.B3bLBG.y3vIAwmTyMv6AwvYkdaUmZiSidaUnZiSidaSideP.zhmTBgLUzs1JAgfYDf9FBgLUzq.ntCZndjkEurxrfy.mteZnJGXndbkB2z5uNO.odeZmZD3CM1xB2W.lMrZlwXPBMuTy2HHCNrFx3n0CMvHBq.C3rHCNq.zhmTy2HHCNrFx2HPDa.Cgf0Aa.AM9PBG.DMfSDwu.CgvYy2vUDa.ndbTAKDfqxy.DhjHBNnSyxrLwcGWkq.zhmTBgLUzs1JAgfYDf9FC3rYzwfT.zMLSDgvY.CMvJDa.BwLU.C2XPy2u.lwXPDMu.ndy0mZbxwM54reK.ChvSC2u.lwnSAxa.BgfIzwW.y2fUy2vS.y3vYCMvUDfrHCMDLDa.mtaWjq.Dgv4Da.7jIb7jETioYWQo2kUa.zhmTy2HHCNrFx3nY.ChGSia.nJm1u2D5veLT.mJeWnNzUyw5UAW.C3rVCa.CxvLCNLtzwXLy3rVCKfSBa.zgL2.BgLUzq.zhmTBgLUzs1JAgfYDf9Fzw5KlxjPBMC.y3vYCMvUDenVBg9Y.BwLKzgXL.yw5PBwf0zq.Cg9SAxrL.z2v0qM91BMrPBMDdBgLLBNrszwn0.C3bHBG.Dg90ywW.D2LKDgG.DhjHBNnSyxrLwcG.zhmTBgLUzs1JAgfYDf9Fz3vPzgu.zhmTBgLUzs1JAgfYDf9Fzw5K.ne9wBfDrEG.zhmTBgLUzs1JAgfYDf9Fzg90.zhmTy2HHCNrFx2DYAwq.otyZmdKWrxHADuPt.zwrNzxm.BMv1DhjHBa.zNjVBq.Bwf4.BwfW.A2v5.CM91BMq.y2XPCfbHDgG.y2LYy2XL.zhmTBgLUzs1JAgfYDa.mtC3otC2ng10C25VDq.C29YDa.C3rHy2TLza.DxjSkcm.y29SB3i".split(".");
326
- return _ = function() {
327
- return e;
328
- }, _();
329
- }
330
316
  function he(t, n, r) {
331
317
  let i = e;
332
- if (!r) return n.map((e) => {
333
- let n = l(t, e.key);
318
+ if (!r) return n[i(498)]((e) => {
319
+ let n = l(t, e[i(521)]);
334
320
  return n === null ? null : [0, n];
335
321
  });
336
- let a = n[i(336)]((e) => Math[i(335)](0, l(t, e.key) ?? 0)), o = a[i(367)]((e, t) => e + t, 0), s = 0;
337
- return a[i(336)]((e) => {
338
- let t = r === i(385) ? o ? e / o : 0 : e, n = [s, s + t];
322
+ let a = n[i(498)]((e) => Math[i(488)](0, l(t, e[i(521)]) ?? 0)), o = a[i(527)]((e, t) => e + t, 0), s = 0;
323
+ return a[i(498)]((e) => {
324
+ let t = r === i(510) ? o ? e / o : 0 : e, n = [s, s + t];
339
325
  return s += t, n;
340
326
  });
341
327
  }
328
+ function _(e, t) {
329
+ e -= 452;
330
+ let n = a(), r = n[e];
331
+ _.CSXBBj === void 0 && (_.ALVGaJ = function(e) {
332
+ let t = "", n = "";
333
+ 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);
334
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
335
+ return decodeURIComponent(n);
336
+ }, _.DsLvoF = {}, _.CSXBBj = !0);
337
+ let i = n[0];
338
+ _.PTulhG !== i && (_.DsLvoF = {}, _.PTulhG = i);
339
+ let o = _.DsLvoF[e];
340
+ return o === void 0 ? (r = _.ALVGaJ(r), _.DsLvoF[e] = r) : r = o, r;
341
+ }
342
342
  export { g as LineChart };