@iamfiro/design 0.3.4 → 0.3.5

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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,218 +1,217 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 278;
4
- let r = s(), i = r[t];
5
- e.YwhcSG === void 0 && (e.umNuYY = function(e) {
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 448;
5
+ let r = m(), i = r[e];
6
+ t.pkoymj === void 0 && (t.gPRnki = function(e) {
6
7
  let t = "", n = "";
7
8
  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
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
10
  return decodeURIComponent(n);
10
- }, e.tZaMmL = {}, e.YwhcSG = !0);
11
+ }, t.DiRgKx = {}, t.pkoymj = !0);
11
12
  let a = r[0];
12
- e.QMCHlF !== a && (e.tZaMmL = {}, e.QMCHlF = a);
13
- let o = e.tZaMmL[t];
14
- return o === void 0 ? (i = e.umNuYY(i), e.tZaMmL[t] = i) : i = o, i;
13
+ t.BatVxy !== a && (t.DiRgKx = {}, t.BatVxy = a);
14
+ let o = t.DiRgKx[e];
15
+ return o === void 0 ? (i = t.gPRnki(i), t.DiRgKx[e] = i) : i = o, i;
15
16
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
19
  for (;;) try {
20
- if (-parseInt(r(286)) / 1 + -parseInt(r(340)) / 2 + parseInt(r(280)) / 3 * (-parseInt(r(303)) / 4) + parseInt(r(300)) / 5 + -parseInt(r(312)) / 6 + -parseInt(r(343)) / 7 * (parseInt(r(288)) / 8) + parseInt(r(304)) / 9 == n) break;
20
+ if (-parseInt(r(505)) / 1 * (parseInt(r(456)) / 2) + -parseInt(r(499)) / 3 + -parseInt(r(485)) / 4 * (-parseInt(r(514)) / 5) + -parseInt(r(512)) / 6 + parseInt(r(513)) / 7 + parseInt(r(452)) / 8 + parseInt(r(449)) / 9 * (-parseInt(r(486)) / 10) == n) break;
21
21
  i.push(i.shift());
22
22
  } catch {
23
23
  i.push(i.shift());
24
24
  }
25
- })(s, 927985);
25
+ })(m, 320511);
26
26
  import { cx as n } from "../../primitives/index.js";
27
27
  /* empty css */
28
28
  import { ChartTooltip as r } from "../Chart/ChartParts.js";
29
29
  import { bandPath as i, formatNumber as a, linePath as o } from "../Chart/chart2.js";
30
30
  import { useChartInteraction as ee } from "../Chart/useChartInteraction.js";
31
- function s() {
32
- let e = /* @__PURE__ */ "ntuZnJaWmNvmDgLSvq.zhmTy2HHCNrFx3bSB3q.y2XVC2vK.C3rVCa.y2XHC3noyw1L.zgL2.CM91BMq.ChGP.DhjHBNnSyxrLwcG.lwXPDMu.zgvMCW.B25by3rPDMvjBMrLEenOyw5Nzq.DMfSDwu.zhmTy2HHCNrFx3n2zW.Aw1N.Cgf0Aa.zhmTC3bHCMS.BgvUz3rO.D2LKDgG.y2LYy2XL.y29SB3i.y2XPzw50wa.DhjHBNnSyxrLka.zhmTC3bHCMTFx3n0B3a.DxjSkcm.AgLNAgvYsxm.zhmTC3bHCMTFx2XPBMu.C3r5Bgu.otGXnJmYvfL5s3Hi.z3jHzgLLBNq.BgLUzq.nJa0mda1nxvXyMvvBq.z2v0qM91BMrPBMDdBgLLBNrszwn0.DMfYkc0TywnJzw50kq.m2PuBvjzDW.Cg9SAxrL.BwLU.zhmTC3bHCMTFx2vUza.mtaWjq.Dg9VBhrPCa.ndq3nde1AuXpvMvy.7lAu7j20ioQ3UoUEMo2uHa.ogT4rxrzwq.lwzPBgWP.zhmTy2HHCNq.zgf0yq.lwzPBgW.zhmTy2HHCNrFx3rPCa.D29YC2vuB25L.Dg9Uzq.BwfW.ChGSia.AgvPz2H0.ywn0AxzLsw5KzxG.mJaYmdG0nvLiuK9vvG.7jIb7jETioY2LoYDTa.yxjLyq.mty4odaXmM1qwg5ysq.mZmWmJyYmZHLwLrnz0i.BgLUzwfYr3jHzgLLBNq.B3bLBG.Bwf4.C29SAwq.zM9YBwf0vMfSDwu.ywnJzw50.yMfY".split(".");
33
- return s = function() {
34
- return e;
35
- }, s();
36
- }
37
- import { isSparkValue as c, sparkColor as l } from "./spark.js";
38
- import { Sparkbar as u } from "../Sparkbar/Sparkbar2.js";
31
+ import { isSparkValue as s, sparkColor as te } from "./spark.js";
32
+ import { Sparkbar as c } from "../Sparkbar/Sparkbar2.js";
39
33
  /* empty css */
40
- import { useId as te } from "react";
41
- import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
42
- var m = 8, ne = 1.5, re = 2.5;
43
- function h(t) {
44
- let n = e;
45
- return f(v, {
46
- ...t,
47
- type: n(342)
34
+ import { useId as ne } from "react";
35
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
36
+ var f = 8, re = 1.5, ie = 2.5;
37
+ function p(e) {
38
+ let n = t;
39
+ return u(_, {
40
+ ...e,
41
+ type: n(479)
48
42
  });
49
43
  }
50
- function g(t) {
51
- let n = e;
52
- return f(v, {
53
- ...t,
54
- type: n(302)
44
+ function m() {
45
+ let e = /* @__PURE__ */ "nZjnsezfr28.zgL2.Bwf4.mZq0mJi0mgryqLvHta.CMvJDa.DhjHBNnSyxrLka.BgLUzwfYr3jHzgLLBNq.mZiZmZy2y2XcBe1u.DhjHBNnSyxrLwcG.yMfY.D2LKDgG.y2LYy2XL.lwzPBgW.Dg9VBhrPCa.6RIW66gDioYxHUYDJa.ChGP.zhmTC3bHCMTFx2vUza.lwXPDMu.D29YC2vuB25L.Dg9Uzq.zhmTy2HHCNq.DMfYkc0TywnJzw50kq.B25by3rPDMvjBMrLEenOyw5Nzq.y3vYCMvUDfrHCMDLDa.C3rVCa.AgLNAgvYsxm.z3jHzgLLBNq.DxjSkcm.7lAu7j20ioQ3UoUEMo2uHa.AgvPz2H0.BgLUzq.mtaWjq.C21VB3rO.Cgf0Aa.yxjLyq.zhmTC3bHCMTFx2XPBMu.mJu2AfjqsgTu.mtmXnJyWugvgAgT6.y2XHC3noyw1L.DMfSDwu.C3r5Bgu.zhmTy2HHCNrFx3rPCa.zhmTy2HHCNrFx3bSB3q.Aw1N.zgf0yq.yxjPys1SywjLBa.zhmTy2HHCNrFx3nY.zgvMCW.lwzPBgWP.zgvMyxvSDefJDgL2zuLUzgv4.nZqYndyXCgfoswfM.y2XVC2vK.CM91BMq.zhmTy2HHCNrFx2HPDa.zhmTC3bHCMS.z2v0qM91BMrPBMDdBgLLBNrszwn0.mKLgvgzSCa.C3bHBG.B3bLBG.BwfW.BgvUz3rO.DMfSDwvmywjLBa.zhmTy2HHCNrFx3n2zW.odGXmZm0ve95yKvx.ntG4mZCXDKrcCfLO.ndKXnJb1q0fjsKq.BwLU.ChGSia".split(".");
46
+ return m = function() {
47
+ return e;
48
+ }, m();
49
+ }
50
+ function h(e) {
51
+ return u(_, {
52
+ ...e,
53
+ type: "area"
55
54
  });
56
55
  }
57
- function _({ type: e = t(342), ...n }) {
58
- let r = t;
59
- return e === r(311) ? f(u, {
60
- data: n[r(291)],
61
- height: n[r(298)] ?? 32,
62
- max: n[r(307)],
63
- color: n[r(332)],
64
- tone: n[r(295)],
65
- higherIs: n[r(337)],
66
- worseTone: n[r(294)],
67
- tooltip: n[r(285)],
56
+ function g({ type: t = e(479), ...n }) {
57
+ let r = e;
58
+ return t === r(458) ? u(c, {
59
+ data: n[r(493)],
60
+ height: n[r(478)] ?? 32,
61
+ max: n[r(451)],
62
+ color: n.color,
63
+ tone: n[r(468)],
64
+ higherIs: n[r(474)],
65
+ worseTone: n[r(467)],
66
+ tooltip: n[r(462)],
68
67
  formatLabel: n.formatLabel,
69
- valueLabel: n.valueLabel,
70
- formatValue: n[r(309)],
71
- activeIndex: n[r(299)],
72
- defaultActiveIndex: n.defaultActiveIndex,
73
- onActiveIndexChange: n[r(323)],
74
- "aria-label": n["aria-label"],
75
- className: n[r(316)],
68
+ valueLabel: n[r(510)],
69
+ formatValue: n.formatValue,
70
+ activeIndex: n.activeIndex,
71
+ defaultActiveIndex: n[r(498)],
72
+ onActiveIndexChange: n[r(471)],
73
+ "aria-label": n[r(494)],
74
+ className: n[r(487)],
76
75
  style: {
77
- width: n[r(330)],
78
- ...n[r(339)]
76
+ width: n[r(459)],
77
+ ...n[r(489)]
79
78
  }
80
- }) : f(v, {
79
+ }) : u(_, {
81
80
  ...n,
82
- type: e
81
+ type: t
83
82
  });
84
83
  }
85
- function v({ type: e, data: s, height: u = 32, width: h, curve: g = "smooth", color: _, tone: v = t(310), higherIs: ie, worseTone: ae, min: oe, max: se, endDot: y, fill: b = t(341), tooltip: x = !0, formatLabel: S = (e) => e + 1 + "일", valueLabel: ce = "값", formatValue: le = a, activeIndex: ue, defaultActiveIndex: de, onActiveIndexChange: fe, "aria-label": pe, className: me, style: he }) {
86
- let C = t, w = s[C(329)], T = x, { open: E, shown: D, settled: ge, width: O, tipRef: _e, tipSize: k, hover: A, leave: j, plotProps: M } = ee({
87
- count: T ? w : 0,
88
- activeIndex: ue,
89
- defaultActiveIndex: de,
90
- onActiveIndexChange: fe
91
- }), { ref: N, ...P } = M, F = te(), I = l(s, {
92
- color: _,
93
- tone: v,
94
- higherIs: ie,
95
- worseTone: ae
96
- }), L = s.filter(c), R = oe ?? (L.length ? Math[C(282)](...L) : 0), z = se ?? (L[C(329)] ? Math[C(307)](...L) : 0), B = z - R, V = y ? 3.5 : ne, H = y ? 3.5 : 1, U = (e) => w > 1 ? H + e / (w - 1) * Math.max(0, O - H * 2) : O / 2, W = (e) => B > 0 ? V + (1 - (Math[C(282)](z, Math.max(R, e)) - R) / B) * (u - V * 2) : u / 2, G = [], K = null;
97
- for (let e = 0; e < w; e++) {
98
- let t = s[e];
99
- c(t) ? (!K && (K = [], G.push(K)), K.push([U(e), W(t)])) : K = null;
84
+ function _({ type: t, data: c, height: p = 32, width: m, curve: h = e(481), color: g, tone: _ = "accent", higherIs: ae, worseTone: oe, min: se, max: ce, endDot: v, fill: y = "gradient", tooltip: b = !0, formatLabel: x = (e) => e + 1 + "일", valueLabel: le = "값", formatValue: ue = a, activeIndex: de, defaultActiveIndex: fe, onActiveIndexChange: pe, "aria-label": me, className: he, style: ge }) {
85
+ let S = e, C = c.length, w = b, { open: T, shown: E, settled: _e, width: D, tipRef: ve, tipSize: O, hover: k, leave: A, plotProps: j } = ee({
86
+ count: w ? C : 0,
87
+ activeIndex: de,
88
+ defaultActiveIndex: fe,
89
+ onActiveIndexChange: pe
90
+ }), { ref: M, ...N } = j, P = ne(), F = te(c, {
91
+ color: g,
92
+ tone: _,
93
+ higherIs: ae,
94
+ worseTone: oe
95
+ }), I = c.filter(s), L = se ?? (I[S(509)] ? Math[S(515)](...I) : 0), R = ce ?? (I[S(509)] ? Math[S(451)](...I) : 0), z = R - L, B = v ? 3.5 : re, V = v ? 3.5 : 1, H = (e) => C > 1 ? V + e / (C - 1) * Math.max(0, D - V * 2) : D / 2, U = (e) => z > 0 ? B + (1 - (Math[S(515)](R, Math.max(L, e)) - L) / z) * (p - B * 2) : p / 2, W = [], G = null;
96
+ for (let e = 0; e < C; e++) {
97
+ let t = c[e];
98
+ s(t) ? (!G && (G = [], W.push(G)), G.push([H(e), U(t)])) : G = null;
100
99
  }
101
- let ve = G.map((e) => o(e, g)).join(""), ye = e === "area" ? G[C(296)]((e) => i(e, e[C(296)](([e]) => [e, u]), g)) : [], q = -1;
102
- for (let e = w - 1; e >= 0; e--) if (c(s[e])) {
103
- q = e;
100
+ let ye = W[S(508)]((e) => o(e, h)).join(""), be = t === "area" ? W[S(508)]((e) => i(e, e.map(([e]) => [e, p]), h)) : [], K = -1;
101
+ for (let e = C - 1; e >= 0; e--) if (s(c[e])) {
102
+ K = e;
104
103
  break;
105
104
  }
106
- let J = D === null ? null : s[D], Y = c(J), X = D === null ? 0 : U(D), be = X + m + k.w > O ? Math.max(0, X - m - k.w) : X + m, xe = (u - k.h) / 2, Z = Y ? le(J) : "기록 없음", Q = (e) => {
107
- let t = C, n = e.currentTarget[t(278)](), r = w > 1 ? (e[t(333)] - n.left) / n[t(330)] : 0;
108
- A(Math[t(282)](w - 1, Math[t(307)](0, Math[t(318)](r * (w - 1)))));
109
- }, $ = pe ?? (e === C(302) ? C(301) : "추이"), Se = T ? {
110
- ...P,
111
- "aria-roledescription": C(287),
105
+ let q = E === null ? null : c[E], J = s(q), Y = E === null ? 0 : H(E), xe = Y + f + O.w > D ? Math.max(0, Y - f - O.w) : Y + f, X = (p - O.h) / 2, Z = J ? ue(q) : S(463), Q = (e) => {
106
+ let t = S, n = e[t(472)][t(504)](), r = C > 1 ? (e.clientX - n.left) / n.width : 0;
107
+ k(Math[t(515)](C - 1, Math[t(451)](0, Math[t(501)](r * (C - 1)))));
108
+ }, $ = me ?? (t === S(483) ? "영역 추이" : "추이"), Se = w ? {
109
+ ...N,
110
+ "aria-roledescription": S(477),
112
111
  "aria-label": $,
113
- "aria-describedby": F + C(321)
112
+ "aria-describedby": P + S(466)
114
113
  } : {
115
- role: C(326),
114
+ role: S(492),
116
115
  "aria-label": $
117
116
  };
118
- return p("div", {
119
- ref: N,
117
+ return d(S(450), {
118
+ ref: M,
120
119
  ...Se,
121
- className: n(C(290), C(313), C(328), me),
120
+ className: n(S(469), S(491), S(503), he),
122
121
  style: {
123
- width: h,
124
- height: u,
125
- ...I && { "--_c": I },
126
- ...he
122
+ width: m,
123
+ height: p,
124
+ ...F && { "--_c": F },
125
+ ...ge
127
126
  },
128
- children: [O > 0 && p("svg", {
129
- className: C(325),
130
- width: O,
131
- height: u,
127
+ children: [D > 0 && d("svg", {
128
+ className: S(511),
129
+ width: D,
130
+ height: p,
132
131
  "aria-hidden": !0,
133
132
  children: [
134
- e === C(302) && b === C(341) && f(C(322), { children: p(C(305), {
135
- id: F + C(292),
133
+ t === S(483) && y === "gradient" && u(S(496), { children: d(S(455), {
134
+ id: P + S(461),
136
135
  x1: "0",
137
136
  x2: "0",
138
137
  y1: "0",
139
138
  y2: "1",
140
- children: [f("stop", {
139
+ children: [u("stop", {
141
140
  offset: "0%",
142
- className: C(335),
141
+ className: "ds-spark__stop",
143
142
  style: { stopOpacity: .22 }
144
- }), f(C(315), {
145
- offset: C(284),
146
- className: C(335),
143
+ }), u(S(473), {
144
+ offset: S(480),
145
+ className: "ds-spark__stop",
147
146
  style: { stopOpacity: 0 }
148
147
  })]
149
148
  }) }),
150
- ye.map((e, t) => f(C(327), {
149
+ be.map((e, t) => u(S(482), {
151
150
  className: "ds-spark__area",
152
151
  d: e,
153
- fill: b === C(341) ? C(336) + F + C(289) : void 0,
154
- "data-solid": b === C(308) || void 0
152
+ fill: y === S(475) ? S(476) + P + S(497) : void 0,
153
+ "data-solid": y === "solid" || void 0
155
154
  }, t)),
156
- f("path", {
157
- className: C(338),
158
- d: ve,
155
+ u(S(482), {
156
+ className: S(484),
157
+ d: ye,
159
158
  pathLength: 1
160
159
  }),
161
- y && q >= 0 && f(C(331), {
162
- className: C(283),
163
- r: re,
164
- style: { transform: "translate(" + U(q) + C(297) + W(s[q]) + C(319) }
160
+ v && K >= 0 && u(S(460), {
161
+ className: S(465),
162
+ r: ie,
163
+ style: { transform: S(454) + H(K) + "px, " + U(c[K]) + S(464) }
165
164
  }),
166
- T && p(d, { children: [
167
- f(C(342), {
165
+ w && d(l, { children: [
166
+ u("line", {
168
167
  className: "ds-spark__guide",
169
- "data-state": C(E ? 306 : 314),
168
+ "data-state": T ? "open" : S(500),
170
169
  x1: 0,
171
170
  x2: 0,
172
171
  y1: 0,
173
- y2: u,
174
- style: { transform: C(320) + (Math[C(318)](X) + .5) + C(319) }
172
+ y2: p,
173
+ style: { transform: S(457) + (Math[S(501)](Y) + .5) + S(464) }
175
174
  }),
176
- f("g", {
175
+ u("g", {
177
176
  className: "ds-spark__dot",
178
- "data-state": E && Y ? "open" : "closed",
179
- style: { transform: "translate(" + X + C(297) + (Y ? W(J) : u / 2) + C(319) },
180
- children: f(C(331), { r: 3 })
177
+ "data-state": S(T && J ? 507 : 500),
178
+ style: { transform: S(454) + Y + S(448) + (J ? U(q) : p / 2) + S(464) },
179
+ children: u(S(460), { r: 3 })
181
180
  }),
182
- f("rect", {
183
- className: "ds-chart__hit",
181
+ u(S(453), {
182
+ className: S(502),
184
183
  x: 0,
185
184
  y: 0,
186
- width: O,
187
- height: u,
185
+ width: D,
186
+ height: p,
188
187
  onPointerMove: Q,
189
188
  onPointerDown: Q,
190
- onPointerLeave: j
189
+ onPointerLeave: A
191
190
  })
192
191
  ] })
193
192
  ]
194
- }), T && p(d, { children: [f(C(317), {
195
- ref: _e,
196
- className: C(293),
197
- "data-state": C(E ? 306 : 314),
198
- "data-settled": ge || void 0,
199
- style: { transform: C(334) + be + C(297) + xe + C(319) },
193
+ }), w && d(l, { children: [u(S(450), {
194
+ ref: ve,
195
+ className: S(490),
196
+ "data-state": T ? "open" : S(500),
197
+ "data-settled": _e || void 0,
198
+ style: { transform: "translate(" + xe + S(448) + X + S(464) },
200
199
  "aria-hidden": !0,
201
- children: f(r, {
202
- title: D === null ? null : S(D),
200
+ children: u(r, {
201
+ title: E === null ? null : x(E),
203
202
  rows: [{
204
- key: C(324),
205
- label: ce,
206
- color: I ?? C(279),
203
+ key: S(488),
204
+ label: le,
205
+ color: F ?? S(470),
207
206
  value: Z
208
207
  }]
209
208
  })
210
- }), f("span", {
211
- id: F + C(321),
212
- className: "ds-chart__sr",
213
- "aria-live": C(281),
214
- children: E && D !== null ? S(D) + ": " + Z : ""
209
+ }), u(S(506), {
210
+ id: P + "-live",
211
+ className: S(495),
212
+ "aria-live": "polite",
213
+ children: T && E !== null ? x(E) + ": " + Z : ""
215
214
  })] })]
216
215
  });
217
216
  }
218
- export { g as SparkArea, _ as SparkChart, h as SparkLine };
217
+ export { h as SparkArea, g as SparkChart, p as SparkLine };
@@ -1,72 +1,74 @@
1
1
  "use client";
2
2
  const e = i;
3
- function t() {
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(112)) / 1 * (parseInt(n(107)) / 2) + parseInt(n(128)) / 3 + parseInt(n(122)) / 4 + -parseInt(n(109)) / 5 + parseInt(n(119)) / 6 * (-parseInt(n(106)) / 7) + -parseInt(n(115)) / 8 + parseInt(n(111)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(n, 973624);
12
+ var t = (t) => typeof t === e(110) && Number[e(127)](t);
13
+ function n() {
4
14
  let e = [
5
- "n3vJqvvjEG",
6
- "zMLSDgvY",
7
- "ndy2nJK5AxbrELfo",
8
- "mtiZnta5muHLufz4ta",
9
- "AxngAw5PDgu",
10
15
  "C3rHCNrZv2L0Aa",
11
- "D2fYBMLUzW",
12
- "DhjLBMq",
16
+ "mtaXnJe2mgnNENHstW",
17
+ "BNvTyMvY",
18
+ "mZCWodiXnJLTyxvuEwq",
19
+ "mtG3mtq2oeHNwuHkDW",
13
20
  "ywnJzw50",
14
- "mJq5mZzpsufrwwy",
15
- "nZe0nJuZnNjTrhHQEa",
16
- "DMfYkc0TC3vJy2vZCYK",
21
+ "DMfYkc0Ty2HHCNqTnsK",
22
+ "mteWodm2mtzJtKDAueu",
23
+ "DhjLBMq",
17
24
  "BMv1DhjHBa",
25
+ "zg93BG",
26
+ "nJC5mLjtuuPJrq",
27
+ "zMLSDgvY",
18
28
  "DMfYkc0T",
19
- "mtaWody3nM16tMDqDG",
20
- "mtq4ndq0mhHAAKvxsG",
21
- "BM9Uzq",
29
+ "mtm0otCYnhvSwMLHAa",
30
+ "BgvUz3rO",
31
+ "DMfYka",
22
32
  "yMv0DgvY",
23
- "mJiZndm5nwHwv2juDq",
24
- "BNvTyMvY",
25
- "BgvUz3rO"
33
+ "BM9Uzq",
34
+ "AxngAw5PDgu",
35
+ "mZiWmJa1nKHRsKXTta",
36
+ "nJC0ogrRrgHuyG",
37
+ "mK1RqM1MtG"
26
38
  ];
27
- return t = function() {
39
+ return n = function() {
28
40
  return e;
29
- }, t();
41
+ }, n();
30
42
  }
31
- (function(e, t) {
32
- let n = i, r = e();
33
- for (;;) try {
34
- if (-parseInt(n(390)) / 1 + -parseInt(n(381)) / 2 + parseInt(n(391)) / 3 + parseInt(n(382)) / 4 + -parseInt(n(385)) / 5 + parseInt(n(376)) / 6 + -parseInt(n(388)) / 7 * (-parseInt(n(377)) / 8) == t) break;
35
- r.push(r.shift());
36
- } catch {
37
- r.push(r.shift());
38
- }
39
- })(t, 262364);
40
- var n = (t) => typeof t === e(386) && Number[e(392)](t);
41
- function r(t) {
42
- let r = e, i = t[r(389)](n);
43
- if (i[r(387)] < 2) return r(383);
43
+ function r(n) {
44
+ let r = e, i = n[r(120)](t);
45
+ if (i[r(123)] < 2) return r(126);
44
46
  let a = i[i.length - 1] - i[0];
45
- return a > 0 ? "up" : a < 0 ? "down" : "none";
47
+ return a > 0 ? "up" : r(a < 0 ? 118 : 126);
46
48
  }
47
- function i(e, n) {
48
- e -= 374;
49
- let r = t(), a = r[e];
50
- i.BLBzIY === void 0 && (i.VzIQLA = function(e) {
49
+ function i(e, t) {
50
+ e -= 106;
51
+ let r = n(), a = r[e];
52
+ i.RQJKiR === void 0 && (i.gupwcP = function(e) {
51
53
  let t = "", n = "";
52
54
  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);
53
55
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
54
56
  return decodeURIComponent(n);
55
- }, i.MNNwkm = {}, i.BLBzIY = !0);
57
+ }, i.BKOBzb = {}, i.RQJKiR = !0);
56
58
  let o = r[0];
57
- i.BHDLGq !== o && (i.MNNwkm = {}, i.BHDLGq = o);
58
- let s = i.MNNwkm[e];
59
- return s === void 0 ? (a = i.VzIQLA(a), i.MNNwkm[e] = a) : a = s, a;
59
+ i.VfahrI !== o && (i.BKOBzb = {}, i.VfahrI = o);
60
+ let s = i.BKOBzb[e];
61
+ return s === void 0 ? (a = i.gupwcP(a), i.BKOBzb[e] = a) : a = s, a;
60
62
  }
61
- function a(t, { color: n, tone: i, higherIs: a = e(384), worseTone: o = e(394) }) {
63
+ function a(t, { color: n, tone: i, higherIs: a = e(125), worseTone: o = "warning" }) {
62
64
  let s = e;
63
- if (n) return n[s(393)]("--") ? "var(" + n + ")" : n;
64
- if (i === s(375)) return "var(--accent)";
65
- if (i === s(379)) return "var(--chart-5)";
66
- if (i === s(374)) {
65
+ if (n) return n[s(108)]("--") ? s(124) + n + ")" : n;
66
+ if (i === s(113)) return "var(--accent)";
67
+ if (i === s(117)) return "var(--chart-5)";
68
+ if (i === s(116)) {
67
69
  let e = r(t);
68
- return e === "none" || a === s(379) ? "var(--chart-5)" : e === "up" == (a === s(384)) ? s(378) : s(380) + o + ")";
70
+ return e === s(126) || a === s(117) ? s(114) : e === "up" == (a === s(125)) ? "var(--success)" : s(121) + o + ")";
69
71
  }
70
72
  }
71
- var o = n;
73
+ var o = t;
72
74
  export { o as isSparkValue, a as sparkColor, r as sparkTrend };