@iamfiro/design 0.3.2 → 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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,109 +1,109 @@
1
1
  "use client";
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) {
7
- let t = "", n = "";
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);
9
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
- return decodeURIComponent(n);
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;
16
- }
17
- (function(e, n) {
18
- let r = t, i = e();
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
19
5
  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;
6
+ if (parseInt(r(211)) / 1 + parseInt(r(209)) / 2 * (-parseInt(r(225)) / 3) + parseInt(r(224)) / 4 * (parseInt(r(240)) / 5) + -parseInt(r(218)) / 6 * (parseInt(r(212)) / 7) + -parseInt(r(208)) / 8 * (-parseInt(r(238)) / 9) + parseInt(r(229)) / 10 + parseInt(r(235)) / 11 * (-parseInt(r(241)) / 12) == t) break;
21
7
  i.push(i.shift());
22
8
  } catch {
23
9
  i.push(i.shift());
24
10
  }
25
- })(d, 501712);
26
- import { cx as n } from "../../primitives/index.js";
11
+ })(i, 553425);
12
+ import { cx as t } from "../../primitives/index.js";
27
13
  /* empty css */
14
+ function n(e, t) {
15
+ e -= 208;
16
+ let r = i(), a = r[e];
17
+ n.UCsoZn === void 0 && (n.aOUpBf = function(e) {
18
+ let t = "", n = "";
19
+ 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);
20
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
+ return decodeURIComponent(n);
22
+ }, n.YAVvhi = {}, n.UCsoZn = !0);
23
+ let o = r[0];
24
+ n.AuPWBp !== o && (n.YAVvhi = {}, n.AuPWBp = o);
25
+ let s = n.YAVvhi[e];
26
+ return s === void 0 ? (a = n.aOUpBf(a), n.YAVvhi[e] = a) : a = s, a;
27
+ }
28
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";
34
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
35
- var u = 8;
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() {
29
+ function i() {
30
+ let e = /* @__PURE__ */ "z2v0qM91BMrPBMDdBgLLBNrszwn0.Cg9SAxrL.mtjkEerjq04.otnpt0PwAgS.zhmTy2HHCNrFx3rPCa.66Ej64YaioQ3UoUEMo2uHa.DMfYkc0TBJyP.ntmXodmYmeXABKDMBG.C3bHBG.zhmTy2HHCNrFx3nY.BgfZDa.zhmTC3bHCMTIyxjFx2jHCNm.BwfW.mJe1odu2m1Hwt2D1AG.DMfSDwu.zgL2.nZK4oteYowfjyMHszW.DhjHBNnSyxrLka.mtGYodi3mePKAxnmwq.mZzRwLngvhi.y2XPzw50wa.oe5nDLPesa.mZaZmdj1Cvrfveu.lwXPDMu.mZq0otbWwfnPsMi.mZCXmfrXA0nXBW.zhmTC3bHCMTIyxi.Bwf4.BgvUz3rO.y3vYCMvUDfrHCMDLDa.B3bLBG.mta2mZjgAMnfveW.zMXVB3i.BwLU.ChGSidaP".split(".");
31
+ return i = function() {
39
32
  return e;
40
- }, d();
33
+ }, i();
41
34
  }
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({
35
+ import { formatNumber as a } from "../Chart/chart2.js";
36
+ import { useChartInteraction as o } from "../Chart/useChartInteraction.js";
37
+ import { sparkColor as s } from "../SparkChart/spark.js";
38
+ /* empty css */
39
+ import { useId as c } from "react";
40
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
41
+ var d = 8;
42
+ function f({ data: n, height: i = 48, max: f, color: p, tone: m, higherIs: h, worseTone: g, formatLabel: _ = (e) => e + 1 + "일", formatValue: v = a, valueLabel: y = "값", tooltip: b = !0, activeIndex: x, defaultActiveIndex: S, onActiveIndexChange: C, "aria-label": w = e(227), className: T, style: E }) {
43
+ let D = e, O = n[D(215)], { open: k, shown: A, settled: j, width: M, tipRef: N, tipSize: P, hover: F, leave: I, plotProps: L } = o({
44
44
  count: O,
45
45
  activeIndex: x,
46
46
  defaultActiveIndex: S,
47
47
  onActiveIndexChange: C,
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, {
48
+ initialKeyboardIndex: D(232)
49
+ }), R = c(), z = f ?? Math.max(0, ...n[D(234)]((e) => e ?? 0)), B = (e) => z > 0 ? Math[D(214)](0, Math[D(220)](100, e / z * 100)) : 0, V = O ? M / O : 0, H = A === null ? void 0 : n[A], U = A === null ? 0 : A * V, W = U + V + d + P.w > M ? Math[D(214)](0, U - d - P.w) : U + V + d, G = H == null ? "기록 없음" : v(H), K = (e) => {
50
+ let t = D, n = e[t(216)][t(222)]();
51
+ F(Math.min(O - 1, Math.max(0, Math[t(219)]((e[t(242)] - n.left) / n.width * O))));
52
+ }, q = s(n, {
53
53
  color: p,
54
54
  tone: m,
55
55
  higherIs: h,
56
56
  worseTone: g
57
57
  });
58
- return l(D(142), {
58
+ return u(D(237), {
59
59
  ...L,
60
- className: n(D(132), D(147), "ds-sparkbar", T),
60
+ className: t("ds-chart", "ds-chart__plot", D(213), T),
61
61
  style: {
62
- height: d,
62
+ height: i,
63
63
  ...q && { "--_c": q },
64
64
  ...E
65
65
  },
66
- "aria-roledescription": "막대 그래프",
66
+ "aria-roledescription": D(227),
67
67
  "aria-label": w,
68
- "aria-describedby": R + D(130),
68
+ "aria-describedby": R + "-live",
69
69
  children: [
70
- c(D(142), {
71
- className: "ds-sparkbar__bars",
70
+ l(D(237), {
71
+ className: D(233),
72
72
  onPointerMove: K,
73
73
  onPointerDown: K,
74
74
  onPointerLeave: I,
75
75
  "aria-hidden": !0,
76
- children: t[D(152)]((e, t) => c(D(138), {
76
+ children: n.map((e, t) => l(D(230), {
77
77
  className: "ds-sparkbar__slot",
78
- children: c(D(138), {
79
- className: D(149),
78
+ children: l(D(230), {
79
+ className: "ds-sparkbar__bar",
80
80
  "data-empty": e === null || void 0,
81
81
  "data-active": k && A === t || void 0,
82
- style: e === null ? void 0 : { height: D(137) + B(e) + "%)" }
82
+ style: e === null ? void 0 : { height: "max(2px, " + B(e) + "%)" }
83
83
  })
84
84
  }, t))
85
85
  }),
86
- b && c("div", {
86
+ b && l("div", {
87
87
  ref: N,
88
- className: D(156),
89
- "data-state": k ? "open" : D(129),
88
+ className: D(226),
89
+ "data-state": k ? D(217) : "closed",
90
90
  "data-settled": j || void 0,
91
- style: { transform: D(159) + W + D(155) },
91
+ style: { transform: D(239) + W + D(221) },
92
92
  "aria-hidden": !0,
93
- children: c(r, {
93
+ children: l(r, {
94
94
  title: A === null ? null : _(A),
95
95
  rows: [{
96
- key: D(144),
96
+ key: D(236),
97
97
  label: y,
98
- color: q ?? D(135),
98
+ color: q ?? D(228),
99
99
  value: G
100
100
  }]
101
101
  })
102
102
  }),
103
- c(D(138), {
104
- id: R + "-live",
105
- className: D(145),
106
- "aria-live": D(158),
103
+ l(D(230), {
104
+ id: R + D(210),
105
+ className: D(231),
106
+ "aria-live": D(223),
107
107
  children: k && A !== null ? _(A) + ": " + G : ""
108
108
  })
109
109
  ]
@@ -1,81 +1,80 @@
1
1
  "use client";
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) {
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 496;
5
+ let r = c(), i = r[e];
6
+ t.qkEaqQ === void 0 && (t.GMGBnK = function(e) {
22
7
  let t = "", n = "";
23
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);
24
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
10
  return decodeURIComponent(n);
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;
11
+ }, t.wJdKYH = {}, t.qkEaqQ = !0);
12
+ let a = r[0];
13
+ t.mvyGnu !== a && (t.wJdKYH = {}, t.mvyGnu = a);
14
+ let o = t.wJdKYH[e];
15
+ return o === void 0 ? (i = t.GMGBnK(i), t.wJdKYH[e] = i) : i = o, i;
31
16
  }
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() {
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (parseInt(r(500)) / 1 * (parseInt(r(506)) / 2) + -parseInt(r(524)) / 3 + parseInt(r(512)) / 4 * (parseInt(r(509)) / 5) + parseInt(r(523)) / 6 + -parseInt(r(510)) / 7 + -parseInt(r(520)) / 8 + parseInt(r(496)) / 9 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(c, 223773);
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
+ function c() {
32
+ let e = /* @__PURE__ */ "m29buxPoBa.DMvYDgLJywW.C2vWyxjHDg9Y.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2XPC3qGzhmTC2nYB2XS.C2vJDgLVBG.C29MDa.nZaXntbus01oy04.zhmTC3bSAxq.yNv0Dg9U.mtGWuLbHuufT.mJiXndmXn3ffEe15DW.zhmTC3bSAxqTlq.mZK2ndHAzw9ir1e.rw50zxi.rw5K.zgL2.y3vYCMvUDa.sg9Tzq.y3vYCMvUDfrHCMDLDa.CM91BMq.mJy3mJCXmNPJAMPryq.C2HPzNrlzxK.qxjYB3Dmzwz0.mti0mtGWog5YtLrSCG.ndi1nJe5vKvNs3jg.A2v5.rxnJyxbL.mZeYmZm2ourYr3vgsG.zhmTC3bSAxrFx3bHBMuGzhmTC3bSAxrFx2rLDgfPBcbKCY1Zy3jVBgW.y2XPzw50wa.ChjLDMvUDerLzMf1Bhq".split(".");
33
+ return c = function() {
35
34
  return e;
36
- }, l();
35
+ }, c();
37
36
  }
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) => {
37
+ var l = 16;
38
+ function u({ list: t, children: c, listWidth: u, defaultListWidth: d = 300, onListWidthChange: f, minListWidth: p = 220, maxListWidth: m = 520, resizable: h, listTone: g = e(505), listLabel: _ = "목록", detailLabel: v = "상세", className: y, style: b }) {
39
+ let x = e, [S, C] = n(u, d, f), [w, T] = a(!1), E = i(null), D = (e) => Math[x(519)](Math.min(m, Math.max(p, e))), O = D(S), k = (e) => {
40
40
  let t = x;
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)],
41
+ e[t(508)] === 0 && (e[t(499)](), e[t(518)].setPointerCapture(e.pointerId), e[t(518)].focus(), E[t(516)] = {
42
+ x: e[t(498)],
43
43
  start: O
44
44
  }, T(!0));
45
45
  }, A = (e) => {
46
- let t = x, n = E[t(387)];
46
+ let t = x, n = E[t(516)];
47
47
  if (!n) return;
48
- let r = D(n[t(367)] + e[t(370)] - n.x);
48
+ let r = D(n.start + e[t(498)] - n.x);
49
49
  r !== O && C(r);
50
50
  }, j = () => {
51
- let e = x;
52
- E[e(387)] = null, T(!1);
51
+ E.current = null, T(!1);
53
52
  }, M = (e) => {
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)));
53
+ let t = x, n = e[t(521)] ? 64 : l, r = null;
54
+ e.key === t(522) ? r = O - n : e[t(525)] === "ArrowRight" ? r = O + n : e.key === t(517) ? r = p : e.key === t(514) ? r = m : e[t(525)] === t(513) ? r = d : e[t(525)] === t(526) && E[t(516)] && (r = E[t(516)].start, j()), r !== null && (e.preventDefault(), C(D(r)));
56
55
  };
57
- return o(x(396), {
58
- className: n(x(374), "ds-split--" + g, y),
56
+ return s(x(515), {
57
+ className: r(x(507), x(511) + g, y),
59
58
  "data-dragging": w || void 0,
60
59
  style: {
61
60
  "--_list": O + "px",
62
61
  ...b
63
62
  },
64
63
  children: [
65
- a(x(394), {
66
- className: x(399),
64
+ o(x(504), {
65
+ className: x(503),
67
66
  "aria-label": _,
68
- children: c
67
+ children: t
69
68
  }),
70
- h && a(x(396), {
71
- role: "separator",
69
+ h && o("div", {
70
+ role: x(502),
72
71
  tabIndex: 0,
73
- "aria-orientation": "vertical",
74
- "aria-label": _ + x(380),
72
+ "aria-orientation": x(501),
73
+ "aria-label": _ + " 너비 조절",
75
74
  "aria-valuenow": O,
76
75
  "aria-valuemin": p,
77
76
  "aria-valuemax": m,
78
- className: x(369),
77
+ className: "ds-split__divider",
79
78
  onPointerDown: k,
80
79
  onPointerMove: A,
81
80
  onPointerUp: j,
@@ -84,10 +83,10 @@ function u({ list: c, children: l, listWidth: u, defaultListWidth: d = 300, onLi
84
83
  onDoubleClick: () => C(D(d)),
85
84
  onKeyDown: M
86
85
  }),
87
- a(x(394), {
88
- className: x(384),
86
+ o(x(504), {
87
+ className: x(497),
89
88
  "aria-label": v,
90
- children: l
89
+ children: c
91
90
  })
92
91
  ]
93
92
  });
@@ -1,164 +1,164 @@
1
1
  "use client";
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();
2
+ const e = m;
3
+ (function(e, t) {
4
+ let n = m, r = e();
19
5
  for (;;) try {
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());
6
+ if (-parseInt(n(402)) / 1 * (-parseInt(n(388)) / 2) + parseInt(n(408)) / 3 + -parseInt(n(396)) / 4 + parseInt(n(389)) / 5 + -parseInt(n(399)) / 6 + parseInt(n(397)) / 7 * (parseInt(n(378)) / 8) + -parseInt(n(383)) / 9 * (parseInt(n(392)) / 10) == t) break;
7
+ r.push(r.shift());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
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";
11
+ })(s, 865137);
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";
29
15
  /* empty css */
16
+ function s() {
17
+ let e = /* @__PURE__ */ "nZy0otaZmMHhv05ptW.z3jVDxa.C3rHy2TLza.ksaVic0Yic0Gmc41ChGP.AM9PBG.mtiZodaZnZn5txj0CNi.DgvYDgLHCNK.zhmTC3rHDa.BwfW.zgvMyxvSDa.nJC4mej0CMnyua.odu2otuXnvvNt1jODq.Aw5SAw5L.C2vTAwjVBgq.mtbxqLnnCey.zhmTC3rHDc0TDgLSzq.zhmTC3rHDc1NCM91Cf9Fy2vSBa.ltaUnxb4.mZK4nty0oezhwwPVCW.n3bLy1vXBG.yMfZzwXPBMu.odK0mtyYnMz6z1ntBa.BNvTyMvYlw1K.zMLSDgvY.mtq5v25wt0Hv.BgfIzwWTC20.BNvTyMvYlwXN.Dg9bCNjHEq.B3zLCMXPBMu.BgfIzwWTEhm.ndy1nJGYnvn0BNbPua.zgL2.y2fSyYH2yxiOls1Z.y2fWDgLVBG.y2vUDgvY.BgfIzwWTBwq.msaXida".split(".");
18
+ return s = function() {
19
+ return e;
20
+ }, s();
21
+ }
30
22
  import { Children as c } from "react";
31
23
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
32
24
  var d = {
33
- sm: t(218),
34
- md: "number-md",
35
- lg: "number-lg"
25
+ sm: "number-sm",
26
+ md: e(400),
27
+ lg: e(404)
36
28
  }, f = {
37
- sm: "label-xs",
38
- md: t(212),
39
- lg: "label-md"
29
+ sm: e(407),
30
+ md: e(403),
31
+ lg: e(376)
40
32
  };
41
- function p(e) {
42
- let n = t, { tile: i, className: a, style: o } = e;
43
- return i ? l(r, {
33
+ function p(t) {
34
+ let r = e, { tile: i, className: a, style: o } = t;
35
+ return i ? l(n, {
44
36
  padding: 3,
45
- background: n(236),
46
- className: [n(231), a].filter(Boolean)[n(226)](" "),
37
+ background: "subtle",
38
+ className: [r(393), a][r(401)](Boolean)[r(382)](" "),
47
39
  style: o,
48
- children: l(m, {
49
- ...e,
40
+ children: l(h, {
41
+ ...t,
50
42
  className: void 0,
51
43
  style: void 0
52
44
  })
53
- }) : l(m, { ...e });
45
+ }) : l(h, { ...t });
54
46
  }
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,
47
+ function m(e, t) {
48
+ e -= 372;
49
+ let n = s(), r = n[e];
50
+ m.sIJhbf === void 0 && (m.kKKHBU = function(e) {
51
+ let t = "", n = "";
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);
53
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
54
+ return decodeURIComponent(n);
55
+ }, m.iglPWp = {}, m.sIJhbf = !0);
56
+ let i = n[0];
57
+ m.SqLKNR !== i && (m.iglPWp = {}, m.SqLKNR = i);
58
+ let a = m.iglPWp[e];
59
+ return a === void 0 ? (r = m.kKKHBU(r), m.iglPWp[e] = r) : r = a, r;
60
+ }
61
+ function h({ label: n, value: i, total: s, unit: c, delta: p, caption: m, icon: h, iconTone: g = "neutral", layout: _ = e(380), size: v = "md", tone: y = e(387), className: b, style: x }) {
62
+ let S = e, C = f[v], w = h != null && l(o, {
63
+ size: _ === S(390) ? 18 : 20,
58
64
  tone: g,
59
65
  children: h
60
- }), T = u(i, {
66
+ }), T = u(r, {
61
67
  gap: 1,
62
- align: S(211),
68
+ align: S(398),
63
69
  wrap: !1,
64
70
  children: [
65
- l(n, {
71
+ l(t, {
66
72
  variant: _ === "inline" ? C : d[v],
67
- weight: _ === S(216) ? "semibold" : void 0,
73
+ weight: _ === S(390) ? S(391) : void 0,
68
74
  tone: y,
69
75
  numeric: !0,
70
- children: r
76
+ children: i
71
77
  }),
72
- c != null && l(n, {
78
+ c != null && l(t, {
73
79
  variant: C,
74
- tone: "tertiary",
80
+ tone: S(384),
75
81
  children: c
76
82
  }),
77
- a != null && u(n, {
83
+ s != null && u(t, {
78
84
  variant: C,
79
- tone: S(228),
85
+ tone: S(384),
80
86
  numeric: !0,
81
- children: ["/ ", a]
87
+ children: ["/ ", s]
82
88
  })
83
89
  ]
84
90
  });
85
- return _ === "inline" ? u(i, {
91
+ return _ === S(390) ? u(r, {
86
92
  gap: 2,
87
- align: w ? "center" : S(211),
93
+ align: S(w ? 375 : 398),
88
94
  wrap: !1,
89
- className: [S(235), b].filter(Boolean)[S(226)](" "),
95
+ className: ["ds-stat", b][S(401)](Boolean).join(" "),
90
96
  style: x,
91
97
  children: [
92
98
  w,
93
- l(n, {
99
+ l(t, {
94
100
  variant: C,
95
- tone: "tertiary",
96
- children: e
101
+ tone: S(384),
102
+ children: n
97
103
  }),
98
104
  T,
99
105
  p
100
106
  ]
101
- }) : u(o, {
107
+ }) : u(a, {
102
108
  gap: w ? 2 : 1,
103
- className: [S(235), b].filter(Boolean)[S(226)](" "),
109
+ className: [S(385), b][S(401)](Boolean).join(" "),
104
110
  style: x,
105
111
  children: [
106
- w ? u(i, {
112
+ w ? u(r, {
107
113
  gap: 2,
108
114
  wrap: !1,
109
- children: [w, l(n, {
110
- variant: "overline",
111
- tone: S(228),
115
+ children: [w, l(t, {
116
+ variant: S(406),
117
+ tone: S(384),
112
118
  truncate: !0,
113
- children: e
119
+ children: n
114
120
  })]
115
- }) : l(n, {
121
+ }) : l(t, {
116
122
  variant: "overline",
117
123
  tone: "tertiary",
118
124
  truncate: !0,
119
- children: e
125
+ children: n
120
126
  }),
121
- u(i, {
127
+ u(r, {
122
128
  gap: 2,
123
- align: "center",
129
+ align: S(375),
124
130
  wrap: !1,
125
131
  children: [T, p]
126
132
  }),
127
- m != null && l(n, {
128
- variant: S(213),
129
- tone: S(228),
133
+ m != null && l(t, {
134
+ variant: S(374),
135
+ tone: "tertiary",
130
136
  children: m
131
137
  })
132
138
  ]
133
139
  });
134
140
  }
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, {
141
+ function g({ children: t, gap: n = 6, minItemWidth: a = 96, fill: o = !0, dividers: s = !0, "aria-label": d, className: f, style: p }) {
142
+ let m = e, h = n === 0 ? m(395) : m(373) + n + m(381);
143
+ return l(r, {
138
144
  gap: n,
139
- align: m(224),
140
- role: "group",
145
+ align: "stretch",
146
+ role: m(379),
141
147
  "aria-label": d,
142
- className: [m(210), f][m(238)](Boolean)[m(226)](" "),
148
+ className: ["ds-stat-group", f][m(401)](Boolean)[m(382)](" "),
143
149
  style: p,
144
- children: c[m(230)](e)[m(240)]((e, t) => u(m(217), {
145
- className: m(239),
150
+ children: c[m(405)](t)[m(386)]((e, t) => u(m(372), {
151
+ className: m(394),
146
152
  style: {
147
- flex: o ? "1 1 0" : m(223),
148
- minWidth: r
153
+ flex: o ? m(377) : "none",
154
+ minWidth: a
149
155
  },
150
- children: [s && l(a, {
156
+ children: [s && l(i, {
151
157
  orientation: "vertical",
152
- className: m(215),
158
+ className: "ds-stat-group__sep",
153
159
  style: { insetInlineStart: h }
154
160
  }), e]
155
161
  }, t))
156
162
  });
157
163
  }
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 };
164
+ export { p as Stat, g as StatGroup };