@iamfiro/design 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,140 +1,134 @@
1
1
  "use client";
2
- const e = a;
2
+ const e = h;
3
3
  (function(e, t) {
4
- let n = a, r = e();
4
+ let n = h, r = e();
5
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;
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;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(o, 155126);
11
+ })(_, 738005);
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
- function a(e, t) {
16
- e -= 448;
17
- let n = o(), r = n[e];
18
- a.SOCXfW === void 0 && (a.PEIGLF = function(e) {
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";
17
+ /* empty css */
18
+ import { useId as ce, useLayoutEffect as le, useMemo as u, useRef as ue, useState as d } from "react";
19
+ 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) {
19
25
  let t = "", n = "";
20
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);
21
27
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
28
  return decodeURIComponent(n);
23
- }, a.fkdfHj = {}, a.SOCXfW = !0);
29
+ }, h.QMgajY = {}, h.Fvayju = !0);
24
30
  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;
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;
28
34
  }
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({
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({
43
37
  count: D,
44
38
  activeIndex: Oe,
45
39
  defaultActiveIndex: ke,
46
40
  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)), [
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)), [
50
44
  I,
51
- g,
52
- y
45
+ _,
46
+ b
53
47
  ]), z = u(() => {
54
48
  let e = E;
55
- if (x?.[e(470)]) return x;
49
+ if (S?.[e(366)]) return S;
56
50
  if (P) {
57
- let t = Math[e(490)](2, b);
58
- return Array.from({ length: t }, (e, n) => n / (t - 1));
51
+ let t = Math[e(335)](2, x);
52
+ return Array[e(334)]({ length: t }, (e, n) => n / (t - 1));
59
53
  }
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);
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);
62
56
  }, [
63
57
  R,
64
58
  L,
65
59
  P,
66
- be,
60
+ ye,
61
+ S,
67
62
  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) => {
63
+ 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) => {
71
65
  let n = E, r = [], i = null;
72
- for (let e = 0; e < I.length; e++) {
66
+ for (let e = 0; e < I[n(366)]; e++) {
73
67
  let a = R[e][t];
74
68
  if (!a) {
75
- ve || (i = null);
69
+ _e || (i = null);
76
70
  continue;
77
71
  }
78
72
  !i && (i = {
79
73
  hi: [],
80
74
  lo: []
81
- }, r[n(477)](i));
75
+ }, r.push(i));
82
76
  let o = G(e - L);
83
- i.hi[n(477)]([o, K(a[1])]), i.lo.push([o, K(a[0])]);
77
+ i.hi[n(352)]([o, K(a[1])]), i.lo[n(352)]([o, K(a[0])]);
84
78
  }
85
79
  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
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
94
88
  }));
95
- return () => r[e(457)]((t) => t[e(461)]());
89
+ return () => r.forEach((t) => t[e(398)]());
96
90
  }, [
97
- a,
91
+ h,
98
92
  T,
99
93
  W
100
94
  ]);
101
- let J = k === null ? void 0 : a[k], Y = J ? g[E(515)]((e, t) => ({
95
+ let J = k === null ? void 0 : h[k], Y = J ? _[E(336)]((e, t) => ({
102
96
  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)";
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)";
109
103
  return p(t, {
110
104
  gap: 3,
111
- className: n(E(481), "ds-line-chart", Me),
105
+ className: n(E(356), E(341), Me),
112
106
  style: Ne,
113
- children: [p("div", {
107
+ children: [p(E(409), {
114
108
  ...ze,
115
- className: "ds-chart__plot",
116
- style: { height: _ },
117
- "aria-roledescription": E(v ? 507 : 493),
109
+ className: E(347),
110
+ style: { height: v },
111
+ "aria-roledescription": E(y ? 402 : 357),
118
112
  "aria-label": je,
119
- "aria-describedby": M + E(508),
113
+ "aria-describedby": M + E(393),
120
114
  children: [
121
- A > 0 && p(E(526), {
115
+ A > 0 && p(E(368), {
122
116
  ref: Qe,
123
117
  className: "ds-chart__svg",
124
118
  width: A,
125
- height: _,
119
+ height: v,
126
120
  "aria-hidden": !0,
127
121
  children: [
128
- p(E(516), { children: [f(E(486), {
129
- id: M + "-clip",
130
- children: f(E(502), {
122
+ p("defs", { children: [f(E(339), {
123
+ id: M + E(396),
124
+ children: f(E(390), {
131
125
  x: B,
132
126
  y: 0,
133
127
  width: V,
134
- height: _
128
+ height: v
135
129
  })
136
- }), v && !at && g.map((e, t) => p("linearGradient", {
137
- id: M + E(513) + t,
130
+ }), y && !at && _[E(336)]((e, t) => p(E(351), {
131
+ id: M + "-fill-" + t,
138
132
  x1: "0",
139
133
  x2: "0",
140
134
  y1: "0",
@@ -142,144 +136,144 @@ function g({ data: a, xKey: o, series: g, height: _ = 240, curve: _e = e(484), a
142
136
  children: [f("stop", {
143
137
  offset: "0%",
144
138
  style: {
145
- stopColor: c(e[E(491)], t),
139
+ stopColor: c(e[E(346)], t),
146
140
  stopOpacity: ot
147
141
  }
148
- }), f("stop", {
149
- offset: E(524),
142
+ }), f(E(407), {
143
+ offset: E(400),
150
144
  style: {
151
- stopColor: c(e[E(491)], t),
145
+ stopColor: c(e.color, t),
152
146
  stopOpacity: st
153
147
  }
154
148
  })]
155
- }, e[E(499)]))] }),
156
- S && S[E(470)] > 0 && f("g", {
149
+ }, e[E(337)]))] }),
150
+ C && C.length > 0 && f("g", {
157
151
  clipPath: lt,
158
152
  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",
153
+ 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),
164
158
  x: r,
165
159
  y: m,
166
- width: Math.max(2, i - r),
160
+ width: Math[n(335)](2, i - r),
167
161
  height: H,
168
- style: { fill: s[e[n(453)] ?? n(463)] }
162
+ style: { fill: a[e[n(354)] ?? "warning"] }
169
163
  }, t);
170
164
  })
171
165
  })
172
166
  }),
173
- z[E(515)]((e) => p("g", { children: [f("line", {
174
- className: E(522),
167
+ z.map((e) => p("g", { children: [f(E(410), {
168
+ className: E(330),
175
169
  x1: B,
176
170
  x2: A,
177
171
  y1: K(e),
178
172
  y2: K(e)
179
- }), f(E(505), {
180
- className: E(501),
173
+ }), f(E(401), {
174
+ className: "ds-chart__axis",
181
175
  x: 0,
182
176
  y: K(e),
183
- dominantBaseline: E(449),
177
+ dominantBaseline: E(413),
184
178
  children: We(e)
185
179
  })] }, e)),
186
- a[E(515)]((e, t) => Ye(t) ? f(E(505), {
187
- className: E(501),
180
+ h.map((e, t) => Ye(t) ? f(E(401), {
181
+ className: E(362),
188
182
  x: G(t),
189
- y: _ - 6,
190
- textAnchor: D === 1 ? "middle" : t === 0 ? "start" : t === D - 1 ? E(473) : "middle",
183
+ y: v - 6,
184
+ textAnchor: D === 1 ? E(413) : t === 0 ? E(380) : t === D - 1 ? E(358) : E(413),
191
185
  children: we(e, t)
192
186
  }, t) : null),
193
- C?.[E(515)]((e, t) => {
194
- let n = E, r = ee[e.tone ?? "neutral"];
187
+ w?.[E(336)]((e, t) => {
188
+ let n = E, r = o[e[n(354)] ?? n(333)];
195
189
  return p("g", {
196
- className: n(494),
197
- style: { transform: n(485) + K(e[n(503)]) + "px)" },
198
- children: [f("line", {
190
+ className: "ds-line-chart__ref",
191
+ style: { transform: "translateY(" + K(e[n(384)]) + n(370) },
192
+ children: [f(n(410), {
199
193
  x1: B,
200
194
  x2: A,
201
195
  y1: 0,
202
196
  y2: 0,
203
197
  style: { stroke: r }
204
- }), e[n(469)] && f(n(505), {
205
- className: n(501),
198
+ }), e.label && f(n(401), {
199
+ className: n(362),
206
200
  x: A,
207
201
  y: -5,
208
- textAnchor: n(473),
202
+ textAnchor: "end",
209
203
  style: { fill: r },
210
- children: e[n(469)]
204
+ children: e[n(397)]
211
205
  })]
212
206
  }, t);
213
207
  }),
214
- f("line", {
215
- className: "ds-line-chart__guide",
216
- "data-state": E(O ? 521 : 472),
208
+ f(E(410), {
209
+ className: E(326),
210
+ "data-state": E(O ? 373 : 372),
217
211
  x1: 0,
218
212
  x2: 0,
219
213
  y1: m,
220
214
  y2: U,
221
- style: { transform: E(517) + $ + E(527) }
215
+ style: { transform: E(325) + $ + E(370) }
222
216
  }),
223
217
  f("g", {
224
218
  clipPath: lt,
225
219
  children: p("g", {
226
- className: E(482),
220
+ className: E(388),
227
221
  "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 + ")",
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 + ")",
232
226
  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),
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),
238
232
  pathLength: 1,
239
- "data-dimmed": q(e[E(499)])
240
- }, e[E(499)]))]
233
+ "data-dimmed": q(e[E(337)])
234
+ }, e[E(337)]))]
241
235
  })
242
236
  }),
243
- w && g.map((e, t) => {
237
+ xe && _[E(336)]((e, t) => {
244
238
  let n = E, r = Ze(D - 1, t);
245
239
  return r === null ? null : p("g", {
246
- className: n(530),
247
- "data-pulse": w === "pulse" || void 0,
248
- "data-dimmed": q(e[n(499)]),
240
+ className: n(327),
241
+ "data-pulse": xe === n(395) || void 0,
242
+ "data-dimmed": q(e.key),
249
243
  style: {
250
- transform: "translate(" + G(D - 1) + n(504) + K(r) + n(527),
251
- color: c(e[n(491)], t)
244
+ transform: n(363) + G(D - 1) + "px, " + K(r) + n(370),
245
+ color: c(e[n(346)], t)
252
246
  },
253
- children: [w === "pulse" && f(n(488), {
254
- className: n(475),
247
+ children: [xe === n(395) && f(n(340), {
248
+ className: n(411),
255
249
  r: 3.5,
256
- fill: n(519)
257
- }), f(n(488), {
258
- className: n(460),
250
+ fill: n(412)
251
+ }), f(n(340), {
252
+ className: n(355),
259
253
  r: 3.5,
260
- fill: n(519)
254
+ fill: n(412)
261
255
  })]
262
- }, e[n(499)]);
256
+ }, e.key);
263
257
  }),
264
- g[E(515)]((e, t) => {
258
+ _.map((e, t) => {
265
259
  let n = E, r = k === null ? null : Ze(k, t);
266
260
  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), {
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), {
272
266
  r: 5,
273
- fill: c(e[n(491)], t)
267
+ fill: c(e[n(346)], t)
274
268
  })
275
- }, e[n(499)]);
269
+ }, e[n(337)]);
276
270
  }),
277
- f("rect", {
278
- className: "ds-chart__hit",
271
+ f(E(390), {
272
+ className: E(381),
279
273
  x: B,
280
274
  y: 0,
281
275
  width: V,
282
- height: _,
276
+ height: v,
283
277
  onPointerMove: rt,
284
278
  onPointerDown: rt,
285
279
  onPointerLeave: Re
@@ -288,38 +282,38 @@ function g({ data: a, xKey: o, series: g, height: _ = 240, curve: _e = e(484), a
288
282
  }),
289
283
  f("div", {
290
284
  ref: Fe,
291
- className: E(520),
292
- "data-state": O ? E(521) : "closed",
285
+ className: "ds-chart__tip",
286
+ "data-state": O ? "open" : E(372),
293
287
  "data-settled": Pe || void 0,
294
- style: { transform: E(468) + nt + "px, " + m + E(527) },
288
+ style: { transform: E(363) + nt + "px, " + m + E(370) },
295
289
  "aria-hidden": !0,
296
290
  children: f(i, {
297
291
  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)],
292
+ rows: X.map((e) => ({
293
+ key: e.s[E(337)],
294
+ label: e.s[E(397)],
295
+ color: e.color,
302
296
  value: et(e)
303
297
  })),
304
298
  footer: Q === void 0 ? void 0 : {
305
- key: "total",
299
+ key: E(323),
306
300
  label: "합계",
307
301
  color: "",
308
302
  value: Q
309
303
  }
310
304
  })
311
305
  }),
312
- f(E(523), {
313
- id: M + E(508),
314
- className: E(456),
315
- "aria-live": E(518),
306
+ f(E(322), {
307
+ id: M + "-live",
308
+ className: E(403),
309
+ "aria-live": E(415),
316
310
  children: it
317
311
  })
318
312
  ]
319
313
  }), De && f(r, {
320
- items: g.map((e, t) => ({
321
- key: e[E(499)],
322
- label: e.label,
314
+ items: _[E(336)]((e, t) => ({
315
+ key: e.key,
316
+ label: e[E(397)],
323
317
  color: c(e.color, t)
324
318
  })),
325
319
  focused: j,
@@ -327,15 +321,21 @@ function g({ data: a, xKey: o, series: g, height: _ = 240, curve: _e = e(484), a
327
321
  })]
328
322
  });
329
323
  }
330
- function ge(t, n, r) {
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
+ function he(t, n, r) {
331
331
  let i = e;
332
- if (!r) return n[i(515)]((e) => {
333
- let n = l(t, e[i(499)]);
332
+ if (!r) return n.map((e) => {
333
+ let n = l(t, e.key);
334
334
  return n === null ? null : [0, n];
335
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];
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];
339
339
  return s += t, n;
340
340
  });
341
341
  }