@iamfiro/design 0.3.1 → 0.3.4

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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,217 +1,218 @@
1
1
  "use client";
2
- const e = p;
3
- (function(e, t) {
4
- let n = p, r = e();
2
+ function e(t, n) {
3
+ t -= 278;
4
+ let r = s(), i = r[t];
5
+ e.YwhcSG === void 0 && (e.umNuYY = function(e) {
6
+ let t = "", n = "";
7
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.tZaMmL = {}, e.YwhcSG = !0);
11
+ 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;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
5
19
  for (;;) try {
6
- if (-parseInt(n(278)) / 1 + -parseInt(n(263)) / 2 * (-parseInt(n(300)) / 3) + parseInt(n(316)) / 4 + -parseInt(n(315)) / 5 * (-parseInt(n(311)) / 6) + parseInt(n(323)) / 7 + parseInt(n(326)) / 8 * (-parseInt(n(273)) / 9) + -parseInt(n(291)) / 10 == t) break;
7
- r.push(r.shift());
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;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(h, 475384);
12
- import { cx as t } from "../../primitives/index.js";
25
+ })(s, 927985);
26
+ import { cx as n } from "../../primitives/index.js";
13
27
  /* empty css */
14
- import { ChartTooltip as n } from "../Chart/ChartParts.js";
15
- import { bandPath as r, formatNumber as i, linePath as a } from "../Chart/chart2.js";
28
+ import { ChartTooltip as r } from "../Chart/ChartParts.js";
29
+ import { bandPath as i, formatNumber as a, linePath as o } from "../Chart/chart2.js";
16
30
  import { useChartInteraction as ee } from "../Chart/useChartInteraction.js";
17
- import { isSparkValue as o, sparkColor as te } from "./spark.js";
18
- import { Sparkbar as s } from "../Sparkbar/Sparkbar2.js";
19
- /* empty css */
20
- import { useId as c } from "react";
21
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
22
- var f = 8, ne = 1.5, re = 2.5;
23
- function p(e, t) {
24
- e -= 257;
25
- let n = h(), r = n[e];
26
- p.uBsyxL === void 0 && (p.OHxaeC = function(e) {
27
- let t = "", n = "";
28
- 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);
29
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
- return decodeURIComponent(n);
31
- }, p.bSyIkZ = {}, p.uBsyxL = !0);
32
- let i = n[0];
33
- p.kOirlP !== i && (p.bSyIkZ = {}, p.kOirlP = i);
34
- let a = p.bSyIkZ[e];
35
- return a === void 0 ? (r = p.OHxaeC(r), p.bSyIkZ[e] = r) : r = a, r;
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
36
  }
37
- function m(e) {
38
- let t = p;
39
- return u(v, {
40
- ...e,
41
- type: t(307)
37
+ import { isSparkValue as c, sparkColor as l } from "./spark.js";
38
+ import { Sparkbar as u } from "../Sparkbar/Sparkbar2.js";
39
+ /* 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)
42
48
  });
43
49
  }
44
- function h() {
45
- let e = /* @__PURE__ */ "zgvMCW.B3bLBG.zhmTy2HHCNrFx3bSB3q.yMfY.C29SAwq.y2XHC3noyw1L.zhmTy2HHCNrFx3nY.mtCXmdq3mJb6D3P1uuW.BgvMDa.y2XVC2vK.y2XPzw50wa.zgL2.Dg9Uzq.C3bHBG.BgvUz3rO.Aw1N.m21TCfvryW.zhmTC3bHCMTFx2D1AwrL.DMfYkc0TywnJzw50kq.zhmTC3bHCMTFx3n0B3a.DxjSkcm.lwXPDMu.D2LKDgG.BgLUzq.zhmTC3bHCMTFx2XPBMu.DhjHBNnSyxrLka.Cgf0Aa.nZK0mdy0uxPgyw1w.7lAu7j20ioQ3UoUEMo2uHa.yxjPys1SywjLBa.ChGP.mZvTy3n3r2i.mtK0mZaWoeXdquvQqW.Dg9VBhrPCa.lwzPBgW.BwfW.AgLNAgvYsxm.y2LYy2XL.DhjHBNnSyxrLwcG.ndK3mJqWmwfOA1f5DG.DMfSDwvmywjLBa.zhmTC3bHCMTFx2rVDa.nteZnJmYyKXZveLJ.y3vYCMvUDfrHCMDLDa.6RIW66gDioYxHUYDJa.C3rVCa.ywnJzw50.zgvMyxvSDefJDgL2zuLUzgv4.AgvPz2H0.otaYmtuWzgLAvM13.zhmTy2HHCNrFx2HPDa.C21VB3rO.zMLSDgvY.Bwf4.zhmTC3bHCMS.BwLU.yxjLyq.ywn0AxzLsw5KzxG.B25by3rPDMvjBMrLEenOyw5Nzq.mtHTq0XwC1a.z3jHzgLLBNq.ChvZAa.lwzPBgWP.BgLUzwfYr3jHzgLLBNq.mJu5mZe0Bvz2vK1j.Cg9SAxrL.C3r5Bgu.ChGSia.CM91BMq.DMfSDwu".split(".");
46
- return h = function() {
47
- return e;
48
- }, h();
49
- }
50
- function g(e) {
51
- return u(v, {
52
- ...e,
53
- type: "area"
50
+ function g(t) {
51
+ let n = e;
52
+ return f(v, {
53
+ ...t,
54
+ type: n(302)
54
55
  });
55
56
  }
56
- function _({ type: t = e(307), ...n }) {
57
- let r = e;
58
- return t === r(287) ? u(s, {
59
- data: n.data,
60
- height: n[r(262)] ?? 32,
61
- max: n.max,
62
- color: n.color,
63
- tone: n[r(296)],
64
- higherIs: n[r(320)],
65
- worseTone: n.worseTone,
66
- tooltip: n[r(317)],
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)],
67
68
  formatLabel: n.formatLabel,
68
- valueLabel: n[r(324)],
69
- formatValue: n.formatValue,
70
- activeIndex: n[r(271)],
71
- defaultActiveIndex: n[r(261)],
72
- onActiveIndexChange: n[r(272)],
73
- "aria-label": n[r(313)],
74
- className: n[r(289)],
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)],
75
76
  style: {
76
- width: n[r(306)],
77
- ...n[r(280)]
77
+ width: n[r(330)],
78
+ ...n[r(339)]
78
79
  }
79
- }) : u(v, {
80
+ }) : f(v, {
80
81
  ...n,
81
- type: t
82
+ type: e
82
83
  });
83
84
  }
84
- function v({ type: s, data: p, height: m = 32, width: h, curve: g = e(265), color: _, tone: v = e(260), higherIs: ie, worseTone: ae, min: oe, max: se, endDot: y, fill: b = "gradient", tooltip: x = !0, formatLabel: S = (e) => e + 1 + "일", valueLabel: ce = "값", formatValue: le = i, activeIndex: ue, defaultActiveIndex: de, onActiveIndexChange: fe, "aria-label": pe, className: me, style: he }) {
85
- let C = e, w = p[C(298)], T = x, { open: E, shown: D, settled: ge, width: O, tipRef: _e, tipSize: k, hover: A, leave: j, plotProps: M } = ee({
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({
86
87
  count: T ? w : 0,
87
88
  activeIndex: ue,
88
89
  defaultActiveIndex: de,
89
90
  onActiveIndexChange: fe
90
- }), { ref: N, ...P } = M, F = c(), I = te(p, {
91
+ }), { ref: N, ...P } = M, F = te(), I = l(s, {
91
92
  color: _,
92
93
  tone: v,
93
94
  higherIs: ie,
94
95
  worseTone: ae
95
- }), L = p[C(266)](o), R = oe ?? (L[C(298)] ? Math[C(269)](...L) : 0), z = se ?? (L[C(298)] ? Math[C(267)](...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(269)](z, Math[C(267)](R, e)) - R) / B) * (m - V * 2) : m / 2, G = [], K = null;
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;
96
97
  for (let e = 0; e < w; e++) {
97
- let t = p[e];
98
- o(t) ? (!K && (K = [], G[C(275)](K)), K[C(275)]([U(e), W(t)])) : K = null;
98
+ let t = s[e];
99
+ c(t) ? (!K && (K = [], G.push(K)), K.push([U(e), W(t)])) : K = null;
99
100
  }
100
- let ve = G[C(319)]((e) => a(e, g)).join(""), ye = s === "area" ? G.map((e) => r(e, e[C(319)](([e]) => [e, m]), g)) : [], q = -1;
101
- for (let e = w - 1; e >= 0; e--) if (o(p[e])) {
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])) {
102
103
  q = e;
103
104
  break;
104
105
  }
105
- let J = D === null ? null : p[D], Y = o(J), X = D === null ? 0 : U(D), be = X + f + k.w > O ? Math[C(267)](0, X - f - k.w) : X + f, xe = (m - k.h) / 2, Z = Y ? le(J) : C(258), Q = (e) => {
106
- let t = C, n = e[t(257)].getBoundingClientRect(), r = w > 1 ? (e[t(294)] - n[t(292)]) / n.width : 0;
107
- A(Math.min(w - 1, Math.max(0, Math[t(282)](r * (w - 1)))));
108
- }, $ = pe ?? (s === C(270) ? "영역 추이" : "추이"), Se = T ? {
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 ? {
109
110
  ...P,
110
- "aria-roledescription": C(312),
111
+ "aria-roledescription": C(287),
111
112
  "aria-label": $,
112
- "aria-describedby": F + C(305)
113
+ "aria-describedby": F + C(321)
113
114
  } : {
114
- role: C(299),
115
+ role: C(326),
115
116
  "aria-label": $
116
117
  };
117
- return d("div", {
118
+ return p("div", {
118
119
  ref: N,
119
120
  ...Se,
120
- className: t("ds-chart", C(286), C(268), me),
121
+ className: n(C(290), C(313), C(328), me),
121
122
  style: {
122
123
  width: h,
123
- height: m,
124
+ height: u,
124
125
  ...I && { "--_c": I },
125
126
  ...he
126
127
  },
127
- children: [O > 0 && d("svg", {
128
- className: "ds-chart__svg",
128
+ children: [O > 0 && p("svg", {
129
+ className: C(325),
129
130
  width: O,
130
- height: m,
131
+ height: u,
131
132
  "aria-hidden": !0,
132
133
  children: [
133
- s === "area" && b === "gradient" && u(C(284), { children: d(C(277), {
134
- id: F + C(318),
134
+ e === C(302) && b === C(341) && f(C(322), { children: p(C(305), {
135
+ id: F + C(292),
135
136
  x1: "0",
136
137
  x2: "0",
137
138
  y1: "0",
138
139
  y2: "1",
139
- children: [u(C(259), {
140
+ children: [f("stop", {
140
141
  offset: "0%",
141
- className: C(303),
142
+ className: C(335),
142
143
  style: { stopOpacity: .22 }
143
- }), u(C(259), {
144
- offset: "100%",
145
- className: C(303),
144
+ }), f(C(315), {
145
+ offset: C(284),
146
+ className: C(335),
146
147
  style: { stopOpacity: 0 }
147
148
  })]
148
149
  }) }),
149
- ye.map((e, t) => u(C(310), {
150
+ ye.map((e, t) => f(C(327), {
150
151
  className: "ds-spark__area",
151
152
  d: e,
152
- fill: b === C(274) ? C(304) + F + C(276) : void 0,
153
- "data-solid": b === C(288) || void 0
153
+ fill: b === C(341) ? C(336) + F + C(289) : void 0,
154
+ "data-solid": b === C(308) || void 0
154
155
  }, t)),
155
- u(C(310), {
156
- className: C(308),
156
+ f("path", {
157
+ className: C(338),
157
158
  d: ve,
158
159
  pathLength: 1
159
160
  }),
160
- y && q >= 0 && u(C(321), {
161
- className: "ds-spark__end",
161
+ y && q >= 0 && f(C(331), {
162
+ className: C(283),
162
163
  r: re,
163
- style: { transform: C(309) + U(q) + C(281) + W(p[q]) + C(314) }
164
+ style: { transform: "translate(" + U(q) + C(297) + W(s[q]) + C(319) }
164
165
  }),
165
- T && d(l, { children: [
166
- u(C(307), {
167
- className: C(301),
168
- "data-state": E ? "open" : C(293),
166
+ T && p(d, { children: [
167
+ f(C(342), {
168
+ className: "ds-spark__guide",
169
+ "data-state": C(E ? 306 : 314),
169
170
  x1: 0,
170
171
  x2: 0,
171
172
  y1: 0,
172
- y2: m,
173
- style: { transform: C(322) + (Math[C(282)](X) + .5) + C(314) }
173
+ y2: u,
174
+ style: { transform: C(320) + (Math[C(318)](X) + .5) + C(319) }
174
175
  }),
175
- u("g", {
176
- className: C(325),
177
- "data-state": E && Y ? C(285) : "closed",
178
- style: { transform: C(309) + X + "px, " + (Y ? W(J) : m / 2) + C(314) },
179
- children: u(C(321), { r: 3 })
176
+ f("g", {
177
+ 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 })
180
181
  }),
181
- u("rect", {
182
- className: C(264),
182
+ f("rect", {
183
+ className: "ds-chart__hit",
183
184
  x: 0,
184
185
  y: 0,
185
186
  width: O,
186
- height: m,
187
+ height: u,
187
188
  onPointerMove: Q,
188
189
  onPointerDown: Q,
189
190
  onPointerLeave: j
190
191
  })
191
192
  ] })
192
193
  ]
193
- }), T && d(l, { children: [u(C(295), {
194
+ }), T && p(d, { children: [f(C(317), {
194
195
  ref: _e,
195
- className: "ds-chart__tip",
196
- "data-state": C(E ? 285 : 293),
196
+ className: C(293),
197
+ "data-state": C(E ? 306 : 314),
197
198
  "data-settled": ge || void 0,
198
- style: { transform: C(309) + be + "px, " + xe + "px)" },
199
+ style: { transform: C(334) + be + C(297) + xe + C(319) },
199
200
  "aria-hidden": !0,
200
- children: u(n, {
201
+ children: f(r, {
201
202
  title: D === null ? null : S(D),
202
203
  rows: [{
203
- key: C(283),
204
+ key: C(324),
204
205
  label: ce,
205
- color: I ?? C(302),
206
+ color: I ?? C(279),
206
207
  value: Z
207
208
  }]
208
209
  })
209
- }), u(C(297), {
210
- id: F + "-live",
211
- className: C(290),
212
- "aria-live": C(279),
210
+ }), f("span", {
211
+ id: F + C(321),
212
+ className: "ds-chart__sr",
213
+ "aria-live": C(281),
213
214
  children: E && D !== null ? S(D) + ": " + Z : ""
214
215
  })] })]
215
216
  });
216
217
  }
217
- export { g as SparkArea, _ as SparkChart, m as SparkLine };
218
+ export { g as SparkArea, _ as SparkChart, h as SparkLine };
@@ -1,71 +1,72 @@
1
1
  "use client";
2
- const e = n;
2
+ const e = i;
3
3
  function t() {
4
4
  let e = [
5
- "ndeZngHytgHksq",
6
- "DMfYka",
5
+ "n3vJqvvjEG",
6
+ "zMLSDgvY",
7
+ "ndy2nJK5AxbrELfo",
8
+ "mtiZnta5muHLufz4ta",
9
+ "AxngAw5PDgu",
10
+ "C3rHCNrZv2L0Aa",
11
+ "D2fYBMLUzW",
12
+ "DhjLBMq",
13
+ "ywnJzw50",
14
+ "mJq5mZzpsufrwwy",
15
+ "nZe0nJuZnNjTrhHQEa",
16
+ "DMfYkc0TC3vJy2vZCYK",
17
+ "BMv1DhjHBa",
7
18
  "DMfYkc0T",
8
- "nJGZmJaXmKnizg5pua",
19
+ "mtaWody3nM16tMDqDG",
20
+ "mtq4ndq0mhHAAKvxsG",
9
21
  "BM9Uzq",
10
- "DMfYkc0TC3vJy2vZCYK",
11
- "AxngAw5PDgu",
22
+ "yMv0DgvY",
23
+ "mJiZndm5nwHwv2juDq",
12
24
  "BNvTyMvY",
13
- "nZC2nJe5mfHZBKj2ra",
14
- "mtK5mZq4A2vutM9r",
15
- "BgvUz3rO",
16
- "BMv1DhjHBa",
17
- "ndmWmZC3nwzmtvjrra",
18
- "ndC3ntKYBgPms0TK",
19
- "nfPVqvvoza",
20
- "zg93BG",
21
- "DMfYkc0TywnJzw50kq",
22
- "mZaYnte4ohDLExD3uq",
23
- "mtqYmeDouNfHtW",
24
- "otLWChPlu1m"
25
+ "BgvUz3rO"
25
26
  ];
26
27
  return t = function() {
27
28
  return e;
28
29
  }, t();
29
30
  }
30
31
  (function(e, t) {
31
- let r = n, i = e();
32
+ let n = i, r = e();
32
33
  for (;;) try {
33
- if (-parseInt(r(204)) / 1 * (-parseInt(r(209)) / 2) + parseInt(r(212)) / 3 + parseInt(r(218)) / 4 + parseInt(r(213)) / 5 * (-parseInt(r(215)) / 6) + -parseInt(r(207)) / 7 + parseInt(r(208)) / 8 * (-parseInt(r(214)) / 9) + -parseInt(r(203)) / 10 == t) break;
34
- i.push(i.shift());
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());
35
36
  } catch {
36
- i.push(i.shift());
37
+ r.push(r.shift());
37
38
  }
38
- })(t, 871286);
39
- function n(e, r) {
40
- e -= 203;
41
- let i = t(), a = i[e];
42
- n.qQwPmw === void 0 && (n.mzMwuA = function(e) {
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);
44
+ let a = i[i.length - 1] - i[0];
45
+ return a > 0 ? "up" : a < 0 ? "down" : "none";
46
+ }
47
+ function i(e, n) {
48
+ e -= 374;
49
+ let r = t(), a = r[e];
50
+ i.BLBzIY === void 0 && (i.VzIQLA = function(e) {
43
51
  let t = "", n = "";
44
52
  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);
45
53
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
46
54
  return decodeURIComponent(n);
47
- }, n.NejWet = {}, n.qQwPmw = !0);
48
- let o = i[0];
49
- n.kptgOn !== o && (n.NejWet = {}, n.kptgOn = o);
50
- let s = n.NejWet[e];
51
- return s === void 0 ? (a = n.mzMwuA(a), n.NejWet[e] = a) : a = s, a;
52
- }
53
- var r = (t) => typeof t === e(222) && Number[e(221)](t);
54
- function i(t) {
55
- let n = e, i = t.filter(r);
56
- if (i[n(205)] < 2) return "none";
57
- let a = i[i[n(205)] - 1] - i[0];
58
- return a > 0 ? "up" : n(a < 0 ? 210 : 219);
55
+ }, i.MNNwkm = {}, i.BLBzIY = !0);
56
+ 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
60
  }
60
- function a(t, { color: n, tone: r, higherIs: a = "better", worseTone: o = "warning" }) {
61
+ function a(t, { color: n, tone: i, higherIs: a = e(384), worseTone: o = e(394) }) {
61
62
  let s = e;
62
- if (n) return n.startsWith("--") ? s(216) + n + ")" : n;
63
- if (r === "accent") return s(211);
64
- if (r === s(206)) return "var(--chart-5)";
65
- if (r === "trend") {
66
- let e = i(t);
67
- return e === "none" || a === s(206) ? "var(--chart-5)" : e === "up" == (a === "better") ? s(220) : s(217) + o + ")";
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)) {
67
+ let e = r(t);
68
+ return e === "none" || a === s(379) ? "var(--chart-5)" : e === "up" == (a === s(384)) ? s(378) : s(380) + o + ")";
68
69
  }
69
70
  }
70
- var o = r;
71
- export { o as isSparkValue, a as sparkColor, i as sparkTrend };
71
+ var o = n;
72
+ export { o as isSparkValue, a as sparkColor, r as sparkTrend };