@iamfiro/design 0.3.0 → 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 +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,62 +1,63 @@
1
1
  "use client";
2
- (function(e, t) {
3
- let n = o, r = e();
4
- for (;;) try {
5
- if (-parseInt(n(139)) / 1 + -parseInt(n(147)) / 2 * (parseInt(n(150)) / 3) + parseInt(n(157)) / 4 * (-parseInt(n(124)) / 5) + parseInt(n(142)) / 6 + -parseInt(n(138)) / 7 + parseInt(n(132)) / 8 * (parseInt(n(121)) / 9) + -parseInt(n(137)) / 10 * (-parseInt(n(135)) / 11) == t) break;
6
- r.push(r.shift());
7
- } catch {
8
- r.push(r.shift());
9
- }
10
- })(s, 552121);
11
- import { cx as e } from "../../primitives/index.js";
12
- /* empty css */
13
- import { ChartTooltip as t } from "../Chart/ChartParts.js";
14
- import { formatNumber as n } from "../Chart/chart2.js";
15
- import { useChartInteraction as r } from "../Chart/useChartInteraction.js";
16
- import { sparkColor as i } from "../SparkChart/spark.js";
17
- /* empty css */
18
- import { useId as a } from "react";
19
- function o(e, t) {
20
- e -= 121;
21
- let n = s(), r = n[e];
22
- o.QAxvyb === void 0 && (o.ugLhHL = function(e) {
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 123;
5
+ let r = d(), i = r[e];
6
+ t.PbGjdY === void 0 && (t.oLMyYq = function(e) {
23
7
  let t = "", n = "";
24
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);
25
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
10
  return decodeURIComponent(n);
27
- }, o.ZKOflY = {}, o.QAxvyb = !0);
28
- let i = n[0];
29
- o.wOeUeW !== i && (o.ZKOflY = {}, o.wOeUeW = i);
30
- let a = o.ZKOflY[e];
31
- return a === void 0 ? (r = o.ugLhHL(r), o.ZKOflY[e] = r) : r = a, r;
32
- }
33
- function s() {
34
- let e = /* @__PURE__ */ "zhmTy2HHCNrFx3rPCa.BgvMDa.oevRC2vWsq.zMXVB3i.BgvUz3rO.mtf0uvHHC1K.BwfW.mtm0ndi3mtbfsgnbBMu.mte5odm5m2jxDvHpCW.ntC3otu5r1b5DLzO.ChGSidaP.y3vYCMvUDfrHCMDLDa.ndK4ntm1mMnHwuHMva.D2LKDgG.zhmTC3bHCMTIyxjFx2jHCG.Bwf4kdjWEcWG.zhmTy2HHCNrFx3nY.otHbAxHfELu.DMfSDwu.zhmTy2HHCNrFx3bSB3q.ndGZotbKrMfpqKK.6RIW66gDioYxHUYDJa.BwLU.zhmTC3bHCMTIyxi.zhmTC3bHCMTIyxjFx3nSB3q.zhmTy2HHCNq.Cg9SAxrL.nefeDfD5ta.C3bHBG.Bwf4.mteZnZmZme50uerlEa.DMfYkc0TBJyP.zgL2.mta0otqYmg5NrKTArW.B3bLBG.y2XPzw50wa.BgfZDa.y2XVC2vK.lwXPDMu".split(".");
35
- return s = function() {
36
- return e;
37
- }, s();
11
+ }, t.YQTUnt = {}, t.PbGjdY = !0);
12
+ let a = r[0];
13
+ t.CAFHPV !== a && (t.YQTUnt = {}, t.CAFHPV = a);
14
+ let o = t.YQTUnt[e];
15
+ return o === void 0 ? (i = t.oLMyYq(i), t.YQTUnt[e] = i) : i = o, i;
38
16
  }
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (-parseInt(r(131)) / 1 + -parseInt(r(141)) / 2 + parseInt(r(124)) / 3 * (parseInt(r(157)) / 4) + parseInt(r(133)) / 5 * (parseInt(r(127)) / 6) + parseInt(r(123)) / 7 + -parseInt(r(128)) / 8 * (parseInt(r(154)) / 9) + -parseInt(r(134)) / 10 * (-parseInt(r(148)) / 11) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(d, 501712);
26
+ import { cx as n } from "../../primitives/index.js";
27
+ /* empty css */
28
+ import { ChartTooltip as r } from "../Chart/ChartParts.js";
29
+ import { formatNumber as i } from "../Chart/chart2.js";
30
+ import { useChartInteraction as a } from "../Chart/useChartInteraction.js";
31
+ import { sparkColor as o } from "../SparkChart/spark.js";
32
+ /* empty css */
33
+ import { useId as s } from "react";
39
34
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
40
35
  var u = 8;
41
- function d({ data: s, height: d = 48, max: f, color: p, tone: m, higherIs: h, worseTone: g, formatLabel: _ = (e) => e + 1 + "일", formatValue: v = n, valueLabel: y = "값", tooltip: b = !0, activeIndex: x, defaultActiveIndex: S, onActiveIndexChange: C, "aria-label": w = "막대 그래프", className: T, style: E }) {
42
- let D = o, O = s[D(134)], { open: k, shown: A, settled: j, width: M, tipRef: N, tipSize: P, hover: F, leave: I, plotProps: L } = r({
36
+ function d() {
37
+ let e = /* @__PURE__ */ "mtf2qxDUrvq.zhmTC3bHCMTIyxjFx2jHCG.BwLU.Bwf4.BwfW.66Ej64YaioQ3UoUEMo2uHa.ndC5mtmZr0H4yvDg.ChGSidaP.zhmTy2HHCNrFx3rPCa.nJq2nJrZD0r3r1G.Cg9SAxrL.DhjHBNnSyxrLka.nteZntqXmgXHt1bfuq.otnIEvnZvei.BgvUz3rO.6RIW66gDioYxHUYDJa.nMHkuLj1va.mti4CwnZywLr.y2XVC2vK.lwXPDMu.nZm0ote0wurYuK5X.zhmTy2HHCNq.mtiXmZmXnvvuz3zRvG.otG1ntCXmfbrENDiwG.DMfYkc0TBJyP.z2v0qM91BMrPBMDdBgLLBNrszwn0.Bwf4kdjWEcWG.C3bHBG.BgfZDa.D2LKDgG.nZq5mtG0tunbvvvv.zgL2.zMXVB3i.DMfSDwu.zhmTy2HHCNrFx3nY.y2XPzw50wa.zhmTy2HHCNrFx3bSB3q".split(".");
38
+ return d = function() {
39
+ return e;
40
+ }, d();
41
+ }
42
+ function f({ data: t, height: d = 48, max: f, color: p, tone: m, higherIs: h, worseTone: g, formatLabel: _ = (e) => e + 1 + "일", formatValue: v = i, valueLabel: y = "값", tooltip: b = !0, activeIndex: x, defaultActiveIndex: S, onActiveIndexChange: C, "aria-label": w = e(153), className: T, style: E }) {
43
+ let D = e, O = t[D(125)], { open: k, shown: A, settled: j, width: M, tipRef: N, tipSize: P, hover: F, leave: I, plotProps: L } = a({
43
44
  count: O,
44
45
  activeIndex: x,
45
46
  defaultActiveIndex: S,
46
47
  onActiveIndexChange: C,
47
- initialKeyboardIndex: D(127)
48
- }), R = a(), z = f ?? Math.max(0, ...s.map((e) => e ?? 0)), B = (e) => z > 0 ? Math[D(159)](0, Math[D(152)](100, e / z * 100)) : 0, V = O ? M / O : 0, H = A === null ? void 0 : s[A], U = A === null ? 0 : A * V, W = U + V + u + P.w > M ? Math.max(0, U - u - P.w) : U + V + u, G = H == null ? D(151) : v(H), K = (e) => {
49
- let t = D, n = e[t(141)].getBoundingClientRect();
50
- F(Math.min(O - 1, Math[t(159)](0, Math[t(133)]((e[t(126)] - n[t(131)]) / n[t(143)] * O))));
51
- }, q = i(s, {
48
+ initialKeyboardIndex: D(139)
49
+ }), R = s(), z = f ?? Math[D(151)](0, ...t[D(152)]((e) => e ?? 0)), B = (e) => z > 0 ? Math[D(151)](0, Math.min(100, e / z * 100)) : 0, V = O ? M / O : 0, H = A === null ? void 0 : t[A], U = A === null ? 0 : A * V, W = U + V + u + P.w > M ? Math.max(0, U - u - P.w) : U + V + u, G = H == null ? D(126) : v(H), K = (e) => {
50
+ let t = D, n = e.currentTarget[t(136)]();
51
+ F(Math[t(150)](O - 1, Math[t(151)](0, Math[t(143)]((e[t(146)] - n.left) / n[t(140)] * O))));
52
+ }, q = o(t, {
52
53
  color: p,
53
54
  tone: m,
54
55
  higherIs: h,
55
56
  worseTone: g
56
57
  });
57
- return l(D(123), {
58
+ return l(D(142), {
58
59
  ...L,
59
- className: e(D(155), D(149), D(153), T),
60
+ className: n(D(132), D(147), "ds-sparkbar", T),
60
61
  style: {
61
62
  height: d,
62
63
  ...q && { "--_c": q },
@@ -64,48 +65,48 @@ function d({ data: s, height: d = 48, max: f, color: p, tone: m, higherIs: h, wo
64
65
  },
65
66
  "aria-roledescription": "막대 그래프",
66
67
  "aria-label": w,
67
- "aria-describedby": R + "-live",
68
+ "aria-describedby": R + D(130),
68
69
  children: [
69
- c(D(123), {
70
+ c(D(142), {
70
71
  className: "ds-sparkbar__bars",
71
72
  onPointerMove: K,
72
73
  onPointerDown: K,
73
74
  onPointerLeave: I,
74
75
  "aria-hidden": !0,
75
- children: s[D(136)]((e, t) => c(D(158), {
76
- className: D(154),
77
- children: c("span", {
78
- className: D(144),
76
+ children: t[D(152)]((e, t) => c(D(138), {
77
+ className: "ds-sparkbar__slot",
78
+ children: c(D(138), {
79
+ className: D(149),
79
80
  "data-empty": e === null || void 0,
80
81
  "data-active": k && A === t || void 0,
81
- style: e === null ? void 0 : { height: D(145) + B(e) + "%)" }
82
+ style: e === null ? void 0 : { height: D(137) + B(e) + "%)" }
82
83
  })
83
84
  }, t))
84
85
  }),
85
- b && c(D(123), {
86
+ b && c("div", {
86
87
  ref: N,
87
- className: D(130),
88
- "data-state": D(k ? 125 : 128),
88
+ className: D(156),
89
+ "data-state": k ? "open" : D(129),
89
90
  "data-settled": j || void 0,
90
- style: { transform: "translate(" + W + D(140) },
91
+ style: { transform: D(159) + W + D(155) },
91
92
  "aria-hidden": !0,
92
- children: c(t, {
93
+ children: c(r, {
93
94
  title: A === null ? null : _(A),
94
95
  rows: [{
95
- key: D(148),
96
+ key: D(144),
96
97
  label: y,
97
- color: q ?? D(122),
98
+ color: q ?? D(135),
98
99
  value: G
99
100
  }]
100
101
  })
101
102
  }),
102
- c(D(158), {
103
- id: R + D(129),
104
- className: D(146),
105
- "aria-live": D(156),
103
+ c(D(138), {
104
+ id: R + "-live",
105
+ className: D(145),
106
+ "aria-live": D(158),
106
107
  children: k && A !== null ? _(A) + ": " + G : ""
107
108
  })
108
109
  ]
109
110
  });
110
111
  }
111
- export { d as Sparkbar };
112
+ export { f as Sparkbar };
@@ -1,75 +1,81 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 246;
4
- let r = u(), i = r[t];
5
- e.XaFiTJ === void 0 && (e.DSImrO = function(e) {
2
+ const e = c;
3
+ (function(e, t) {
4
+ let n = c, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(378)) / 1 + parseInt(n(381)) / 2 + -parseInt(n(386)) / 3 + -parseInt(n(377)) / 4 + parseInt(n(375)) / 5 + -parseInt(n(397)) / 6 * (-parseInt(n(388)) / 7) + parseInt(n(398)) / 8 * (-parseInt(n(376)) / 9) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(l, 510898);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
14
+ /* empty css */
15
+ import { useRef as r, useState as i } from "react";
16
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
17
+ var s = 16;
18
+ function c(e, t) {
19
+ e -= 367;
20
+ let n = l(), r = n[e];
21
+ c.waqeeF === void 0 && (c.zstZtn = function(e) {
6
22
  let t = "", n = "";
7
23
  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
24
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
25
  return decodeURIComponent(n);
10
- }, e.FZLTIb = {}, e.XaFiTJ = !0);
11
- let a = r[0];
12
- e.yxMKqg !== a && (e.FZLTIb = {}, e.yxMKqg = a);
13
- let o = e.FZLTIb[t];
14
- return o === void 0 ? (i = e.DSImrO(i), e.FZLTIb[t] = i) : i = o, i;
26
+ }, c.BQNhzy = {}, c.waqeeF = !0);
27
+ let i = n[0];
28
+ c.jYBHNh !== i && (c.BQNhzy = {}, c.jYBHNh = i);
29
+ let a = c.BQNhzy[e];
30
+ return a === void 0 ? (r = c.zstZtn(r), c.BQNhzy[e] = r) : r = a, r;
15
31
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
19
- for (;;) try {
20
- if (parseInt(r(264)) / 1 * (parseInt(r(278)) / 2) + parseInt(r(272)) / 3 * (parseInt(r(260)) / 4) + parseInt(r(261)) / 5 * (parseInt(r(279)) / 6) + parseInt(r(251)) / 7 + -parseInt(r(254)) / 8 + -parseInt(r(268)) / 9 * (-parseInt(r(257)) / 10) + parseInt(r(247)) / 11 * (-parseInt(r(263)) / 12) == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(u, 206663);
26
- import { useControllableState as n } from "../../hooks/useControllableState.js";
27
- import { cx as r } from "../../primitives/index.js";
28
- /* empty css */
29
- import { useRef as i, useState as a } from "react";
30
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
31
- var c = 16;
32
- function l({ list: e, children: l, listWidth: u, defaultListWidth: d = 300, onListWidthChange: f, minListWidth: p = 220, maxListWidth: m = 520, resizable: h, listTone: g = t(275), listLabel: _ = "목록", detailLabel: v = "상세", className: y, style: b }) {
33
- let x = t, [S, C] = n(u, d, f), [w, T] = a(!1), E = i(null), D = (e) => Math[x(277)](Math[x(276)](m, Math.max(p, e))), O = D(S), k = (e) => {
32
+ function l() {
33
+ let e = /* @__PURE__ */ "C2vJDgLVBG.rxnJyxbL.zgL2.nMjZDNDKtW.mtaZnta0yxjbz0XV.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2XPC3qGzhmTC2nYB2XS.C3rHCNq.sg9Tzq.zhmTC3bSAxrFx2rPDMLKzxi.y2XPzw50wa.C2v0ug9PBNrLCKnHChr1CMu.zM9JDxm.rw5K.zhmTC3bSAxq.mtq0otKWnxfpCK5IvW.mZyWBNnwCgTs.mJeZnta0nhvmzgDyuW.ntG3mJGWsgzmEMD1.yNv0Dg9U.ioUeIoU5HcdSOBdSOiG.odCZnZCYAwDqrez4.qxjYB3Dmzwz0.A2v5.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2rLDgfPBcbKCY1Zy3jVBgW.BwLU.mJaYntu4nu1ruM1YDW.y3vYCMvUDa.nJq2mJu4ouvdy1LzEG.Cg9PBNrLCKLK.C29MDa.rw50zxi.C2HPzNrlzxK.ChjLDMvUDerLzMf1Bhq".split(".");
34
+ return l = function() {
35
+ return e;
36
+ }, l();
37
+ }
38
+ function u({ list: c, children: l, listWidth: u, defaultListWidth: d = 300, onListWidthChange: f, minListWidth: p = 220, maxListWidth: m = 520, resizable: h, listTone: g = e(390), listLabel: _ = "목록", detailLabel: v = "상세", className: y, style: b }) {
39
+ let x = e, [S, C] = t(u, d, f), [w, T] = i(!1), E = r(null), D = (e) => Math.round(Math[x(385)](m, Math.max(p, e))), O = D(S), k = (e) => {
34
40
  let t = x;
35
- e[t(248)] === 0 && (e.preventDefault(), e[t(250)][t(281)](e[t(259)]), e[t(250)].focus(), E[t(249)] = {
36
- x: e[t(280)],
41
+ e[t(379)] === 0 && (e[t(393)](), e.currentTarget[t(371)](e[t(389)]), e.currentTarget[t(372)](), E[t(387)] = {
42
+ x: e[t(370)],
37
43
  start: O
38
44
  }, T(!0));
39
45
  }, A = (e) => {
40
- let t = x, n = E[t(249)];
46
+ let t = x, n = E[t(387)];
41
47
  if (!n) return;
42
- let r = D(n.start + e[t(280)] - n.x);
48
+ let r = D(n[t(367)] + e[t(370)] - n.x);
43
49
  r !== O && C(r);
44
50
  }, j = () => {
45
51
  let e = x;
46
- E[e(249)] = null, T(!1);
52
+ E[e(387)] = null, T(!1);
47
53
  }, M = (e) => {
48
- let t = x, n = e[t(274)] ? 64 : c, r = null;
49
- e[t(273)] === t(258) ? r = O - n : e.key === t(269) ? r = O + n : e.key === t(256) ? r = p : e[t(273)] === t(267) ? r = m : e[t(273)] === t(246) ? r = d : e[t(273)] === "Escape" && E.current && (r = E.current.start, j()), r !== null && (e[t(252)](), C(D(r)));
54
+ let t = x, n = e[t(392)] ? 64 : s, r = null;
55
+ e[t(383)] === t(382) ? r = O - n : e[t(383)] === "ArrowRight" ? r = O + n : e[t(383)] === t(368) ? r = p : e[t(383)] === t(373) ? r = m : e.key === t(391) ? r = d : e[t(383)] === t(395) && E[t(387)] && (r = E[t(387)][t(367)], j()), r !== null && (e[t(393)](), C(D(r)));
50
56
  };
51
- return s(x(271), {
52
- className: r(x(270), "ds-split--" + g, y),
57
+ return o(x(396), {
58
+ className: n(x(374), "ds-split--" + g, y),
53
59
  "data-dragging": w || void 0,
54
60
  style: {
55
61
  "--_list": O + "px",
56
62
  ...b
57
63
  },
58
64
  children: [
59
- o("section", {
60
- className: x(262),
65
+ a(x(394), {
66
+ className: x(399),
61
67
  "aria-label": _,
62
- children: e
68
+ children: c
63
69
  }),
64
- h && o("div", {
65
- role: x(266),
70
+ h && a(x(396), {
71
+ role: "separator",
66
72
  tabIndex: 0,
67
- "aria-orientation": x(255),
68
- "aria-label": _ + x(253),
73
+ "aria-orientation": "vertical",
74
+ "aria-label": _ + x(380),
69
75
  "aria-valuenow": O,
70
76
  "aria-valuemin": p,
71
77
  "aria-valuemax": m,
72
- className: "ds-split__divider",
78
+ className: x(369),
73
79
  onPointerDown: k,
74
80
  onPointerMove: A,
75
81
  onPointerUp: j,
@@ -78,18 +84,12 @@ function l({ list: e, children: l, listWidth: u, defaultListWidth: d = 300, onLi
78
84
  onDoubleClick: () => C(D(d)),
79
85
  onKeyDown: M
80
86
  }),
81
- o("section", {
82
- className: x(265),
87
+ a(x(394), {
88
+ className: x(384),
83
89
  "aria-label": v,
84
90
  children: l
85
91
  })
86
92
  ]
87
93
  });
88
94
  }
89
- export { l as SplitView };
90
- function u() {
91
- let e = /* @__PURE__ */ "rw50zxi.nty2mZmXn0LvCuDXsa.yNv0Dg9U.y3vYCMvUDa.y3vYCMvUDfrHCMDLDa.ntiZmda1ANbkvKPd.ChjLDMvUDerLzMf1Bhq.ioUeIoU5HcdSOBdSOiG.mtq4nde4ngzUDvrxza.DMvYDgLJywW.sg9Tzq.mtuWwLfjA25e.qxjYB3Dmzwz0.Cg9PBNrLCKLK.mJrlDMX2Cg4.mtmWBvvjDeP3.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2XPC3qGzhmTC2nYB2XS.mtjfr1zdr3y.m1rtAhvZBq.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2rLDgfPBcbKCY1Zy3jVBgW.C2vWyxjHDg9Y.rw5K.mZm0mtDbBfvpA2W.qxjYB3DsAwDODa.zhmTC3bSAxq.zgL2.mta1nZm4ALnZvLDd.A2v5.C2HPzNrlzxK.C29MDa.BwLU.CM91BMq.mJm4mZu4qwL4DNLv.ndC5mtbSuxbjEwe.y2XPzw50wa.C2v0ug9PBNrLCKnHChr1CMu".split(".");
92
- return u = function() {
93
- return e;
94
- }, u();
95
- }
95
+ export { u as SplitView };
@@ -1,164 +1,164 @@
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 -= 210;
4
+ let r = g(), i = r[t];
5
+ e.SCzXQP === void 0 && (e.ugCKVE = 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.GUCFqh = {}, e.SCzXQP = !0);
11
+ let a = r[0];
12
+ e.KtAZCg !== a && (e.GUCFqh = {}, e.KtAZCg = a);
13
+ let o = e.GUCFqh[t];
14
+ return o === void 0 ? (i = e.ugCKVE(i), e.GUCFqh[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(152)) / 1 + parseInt(n(156)) / 2 + parseInt(n(141)) / 3 + -parseInt(n(128)) / 4 * (-parseInt(n(133)) / 5) + parseInt(n(146)) / 6 * (parseInt(n(140)) / 7) + -parseInt(n(159)) / 8 * (-parseInt(n(143)) / 9) + -parseInt(n(154)) / 10 == t) break;
7
- r.push(r.shift());
20
+ if (-parseInt(r(237)) / 1 * (parseInt(r(241)) / 2) + parseInt(r(227)) / 3 * (-parseInt(r(242)) / 4) + parseInt(r(232)) / 5 * (-parseInt(r(229)) / 6) + parseInt(r(219)) / 7 + -parseInt(r(243)) / 8 + parseInt(r(225)) / 9 * (parseInt(r(220)) / 10) + -parseInt(r(222)) / 11 * (-parseInt(r(233)) / 12) == n) break;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(m, 389934);
12
- import { Text as t } from "../../primitives/Typography2.js";
13
- import { Box as n, Inline as r, Separator as i, Stack as a } from "../../primitives/Layout2.js";
14
- import { IconTile as o } from "../../primitives/IconTile2.js";
25
+ })(g, 848970);
26
+ import { Text as n } from "../../primitives/Typography2.js";
27
+ import { Box as r, Inline as i, Separator as a, Stack as o } from "../../primitives/Layout2.js";
28
+ import { IconTile as s } from "../../primitives/IconTile2.js";
15
29
  /* empty css */
16
- import { Children as s } from "react";
17
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
18
- var u = {
19
- sm: e(145),
20
- md: e(153),
21
- lg: e(148)
22
- }, d = {
23
- sm: e(150),
24
- md: "label-sm",
25
- lg: e(130)
30
+ import { Children as c } from "react";
31
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
32
+ var d = {
33
+ sm: t(218),
34
+ md: "number-md",
35
+ lg: "number-lg"
36
+ }, f = {
37
+ sm: "label-xs",
38
+ md: t(212),
39
+ lg: "label-md"
26
40
  };
27
- function f(t) {
28
- let r = e, { tile: i, className: a, style: o } = t;
29
- return i ? c(n, {
41
+ function p(e) {
42
+ let n = t, { tile: i, className: a, style: o } = e;
43
+ return i ? l(r, {
30
44
  padding: 3,
31
- background: "subtle",
32
- className: ["ds-stat--tile", a][r(142)](Boolean)[r(127)](" "),
45
+ background: n(236),
46
+ className: [n(231), a].filter(Boolean)[n(226)](" "),
33
47
  style: o,
34
- children: c(h, {
35
- ...t,
48
+ children: l(m, {
49
+ ...e,
36
50
  className: void 0,
37
51
  style: void 0
38
52
  })
39
- }) : c(h, { ...t });
53
+ }) : l(m, { ...e });
40
54
  }
41
- function p(e, t) {
42
- e -= 126;
43
- let n = m(), r = n[e];
44
- p.dTrTIc === void 0 && (p.wKAPjg = function(e) {
45
- let t = "", n = "";
46
- 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);
47
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
48
- return decodeURIComponent(n);
49
- }, p.PEvlOW = {}, p.dTrTIc = !0);
50
- let i = n[0];
51
- p.mDiRSO !== i && (p.PEvlOW = {}, p.mDiRSO = i);
52
- let a = p.PEvlOW[e];
53
- return a === void 0 ? (r = p.wKAPjg(r), p.PEvlOW[e] = r) : r = a, r;
54
- }
55
- function m() {
56
- let e = /* @__PURE__ */ "BNvTyMvYlw1K.mtG1ntq4mdbZs0Lrwgy.zgvMyxvSDa.ntCYmZG2r1D3EKLt.y2vUDgvY.DgvYDgLHCNK.otzTCKXswLG.zhmTC3rHDc1NCM91Ca.C2vTAwjVBgq.AM9PBG.mZaXnda0ngruuMzJCG.msaXida.BgfIzwWTBwq.Aw5SAw5L.C3rHy2TLza.nujSruPZvq.Dg9bCNjHEq.yMfZzwXPBMu.zhmTC3rHDa.zgL2.y2fSyYH2yxiOls1Z.B3zLCMXPBMu.mteZnJyXmwvQA2jYDa.mta2mde0owHduLb1qq.zMLSDgvY.nduYnJy0sujxwgTh.y2fWDgLVBG.BNvTyMvYlxnT.nMHZqNHrEa.BMv1DhjHBa.BNvTyMvYlwXN.C3rYzxrJAa.BgfIzwWTEhm.zhmTC3rHDc1NCM91Cf9Fy2vSBa.ody0mdjIsKPIB1K".split(".");
57
- return m = function() {
58
- return e;
59
- }, m();
60
- }
61
- function h({ label: n, value: i, total: s, unit: f, delta: p, caption: m, icon: h, iconTone: g = e(147), layout: _ = e(132), size: v = "md", tone: y = e(155), className: b, style: x }) {
62
- let S = e, C = d[v], w = h != null && c(o, {
63
- size: _ === S(131) ? 18 : 20,
55
+ function m({ label: e, value: r, total: a, unit: c, delta: p, caption: m, icon: h, iconTone: g = "neutral", layout: _ = t(214), size: v = "md", tone: y = t(234), className: b, style: x }) {
56
+ let S = t, C = f[v], w = h != null && l(s, {
57
+ size: _ === S(216) ? 18 : 20,
64
58
  tone: g,
65
59
  children: h
66
- }), T = l(r, {
60
+ }), T = u(i, {
67
61
  gap: 1,
68
- align: "baseline",
62
+ align: S(211),
69
63
  wrap: !1,
70
64
  children: [
71
- c(t, {
72
- variant: _ === S(131) ? C : u[v],
73
- weight: _ === S(131) ? S(126) : void 0,
65
+ l(n, {
66
+ variant: _ === "inline" ? C : d[v],
67
+ weight: _ === S(216) ? "semibold" : void 0,
74
68
  tone: y,
75
69
  numeric: !0,
76
- children: i
70
+ children: r
77
71
  }),
78
- f != null && c(t, {
72
+ c != null && l(n, {
79
73
  variant: C,
80
- tone: S(158),
81
- children: f
74
+ tone: "tertiary",
75
+ children: c
82
76
  }),
83
- s != null && l(t, {
77
+ a != null && u(n, {
84
78
  variant: C,
85
- tone: S(158),
79
+ tone: S(228),
86
80
  numeric: !0,
87
- children: ["/ ", s]
81
+ children: ["/ ", a]
88
82
  })
89
83
  ]
90
84
  });
91
- return _ === S(131) ? l(r, {
85
+ return _ === "inline" ? u(i, {
92
86
  gap: 2,
93
- align: S(w ? 157 : 135),
87
+ align: w ? "center" : S(211),
94
88
  wrap: !1,
95
- className: [S(136), b][S(142)](Boolean)[S(127)](" "),
89
+ className: [S(235), b].filter(Boolean)[S(226)](" "),
96
90
  style: x,
97
91
  children: [
98
92
  w,
99
- c(t, {
93
+ l(n, {
100
94
  variant: C,
101
- tone: S(158),
102
- children: n
95
+ tone: "tertiary",
96
+ children: e
103
97
  }),
104
98
  T,
105
99
  p
106
100
  ]
107
- }) : l(a, {
101
+ }) : u(o, {
108
102
  gap: w ? 2 : 1,
109
- className: [S(136), b].filter(Boolean)[S(127)](" "),
103
+ className: [S(235), b].filter(Boolean)[S(226)](" "),
110
104
  style: x,
111
105
  children: [
112
- w ? l(r, {
106
+ w ? u(i, {
113
107
  gap: 2,
114
108
  wrap: !1,
115
- children: [w, c(t, {
109
+ children: [w, l(n, {
116
110
  variant: "overline",
117
- tone: S(158),
111
+ tone: S(228),
118
112
  truncate: !0,
119
- children: n
113
+ children: e
120
114
  })]
121
- }) : c(t, {
122
- variant: S(139),
115
+ }) : l(n, {
116
+ variant: "overline",
123
117
  tone: "tertiary",
124
118
  truncate: !0,
125
- children: n
119
+ children: e
126
120
  }),
127
- l(r, {
121
+ u(i, {
128
122
  gap: 2,
129
123
  align: "center",
130
124
  wrap: !1,
131
125
  children: [T, p]
132
126
  }),
133
- m != null && c(t, {
134
- variant: S(144),
135
- tone: "tertiary",
127
+ m != null && l(n, {
128
+ variant: S(213),
129
+ tone: S(228),
136
130
  children: m
137
131
  })
138
132
  ]
139
133
  });
140
134
  }
141
- function g({ children: t, gap: n = 6, minItemWidth: a = 96, fill: o = !0, dividers: u = !0, "aria-label": d, className: f, style: p }) {
142
- let m = e, h = n === 0 ? "-0.5px" : m(138) + n + ") / -2 - 0.5px)";
143
- return c(r, {
135
+ function h({ children: e, gap: n = 6, minItemWidth: r = 96, fill: o = !0, dividers: s = !0, "aria-label": d, className: f, style: p }) {
136
+ let m = t, h = n === 0 ? "-0.5px" : m(221) + n + ") / -2 - 0.5px)";
137
+ return l(i, {
144
138
  gap: n,
145
- align: m(149),
139
+ align: m(224),
146
140
  role: "group",
147
141
  "aria-label": d,
148
- className: [m(160), f][m(142)](Boolean)[m(127)](" "),
142
+ className: [m(210), f][m(238)](Boolean)[m(226)](" "),
149
143
  style: p,
150
- children: s[m(134)](t).map((e, t) => l(m(137), {
151
- className: m(151),
144
+ children: c[m(230)](e)[m(240)]((e, t) => u(m(217), {
145
+ className: m(239),
152
146
  style: {
153
- flex: o ? m(129) : "none",
154
- minWidth: a
147
+ flex: o ? "1 1 0" : m(223),
148
+ minWidth: r
155
149
  },
156
- children: [u && c(i, {
150
+ children: [s && l(a, {
157
151
  orientation: "vertical",
158
- className: "ds-stat-group__sep",
152
+ className: m(215),
159
153
  style: { insetInlineStart: h }
160
154
  }), e]
161
155
  }, t))
162
156
  });
163
157
  }
164
- export { f as Stat, g as StatGroup };
158
+ function g() {
159
+ let e = /* @__PURE__ */ "nfPuAvHWyG.mtiXnty0oe1dthf5Aq.zhmTC3rHDc1NCM91Ca.yMfZzwXPBMu.BgfIzwWTC20.y2fWDgLVBG.C3rHy2TLza.zhmTC3rHDc1NCM91Cf9FC2vW.Aw5SAw5L.zgL2.BNvTyMvYlxnT.nJK4mZu1n0vvDwnezG.mte5mJb5BgL1vue.y2fSyYH2yxiOls1Z.mtqWoeHmqxbLrW.BM9Uzq.C3rYzxrJAa.mti1nZnXv09YvhO.AM9PBG.mZKWmdndBgHIDgy.DgvYDgLHCNK.mZyZmZbmA0v2tKm.Dg9bCNjHEq.zhmTC3rHDc0TDgLSzq.ody1zxPiBuvN.odC2D3POCMXr.zgvMyxvSDa.zhmTC3rHDa.C3vIDgXL.nJeWnZC3vgv2svDf.zMLSDgvY.zhmTC3rHDc1NCM91Cf9Fy2vSBa.BwfW.mNjvs2nYCG".split(".");
160
+ return g = function() {
161
+ return e;
162
+ }, g();
163
+ }
164
+ export { p as Stat, h as StatGroup };