@iamfiro/design 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,215 +1,215 @@
1
1
  "use client";
2
- const e = x;
2
+ const e = d;
3
3
  (function(e, t) {
4
- let n = x, r = e();
4
+ let n = d, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(405)) / 1 * (parseInt(n(408)) / 2) + -parseInt(n(401)) / 3 + -parseInt(n(335)) / 4 * (-parseInt(n(370)) / 5) + parseInt(n(347)) / 6 * (-parseInt(n(371)) / 7) + -parseInt(n(394)) / 8 * (parseInt(n(400)) / 9) + -parseInt(n(403)) / 10 + parseInt(n(364)) / 11 * (parseInt(n(406)) / 12) == t) break;
6
+ if (parseInt(n(467)) / 1 + parseInt(n(479)) / 2 + parseInt(n(508)) / 3 * (parseInt(n(459)) / 4) + parseInt(n(428)) / 5 + -parseInt(n(502)) / 6 + parseInt(n(487)) / 7 + parseInt(n(475)) / 8 * (-parseInt(n(424)) / 9) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(E, 319220);
11
+ })(C, 732242);
12
12
  import { Tooltip as t } from "../../primitives/Tooltip2.js";
13
13
  import { Text as n } from "../../primitives/Typography2.js";
14
14
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
15
  import { Badge as a, cx as o } from "../../primitives/index.js";
16
16
  import { TimelineScaleContext as s, buildTicks as c, niceStep as l, useTimelineScale as u } from "./scale.js";
17
17
  /* empty css */
18
- import { Children as d, isValidElement as f, useMemo as p } from "react";
19
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
20
- var _ = {
18
+ function d(e, t) {
19
+ e -= 407;
20
+ let n = C(), r = n[e];
21
+ d.stTMZs === void 0 && (d.gzNYyY = function(e) {
22
+ let t = "", n = "";
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);
24
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
+ return decodeURIComponent(n);
26
+ }, d.yEnwGN = {}, d.stTMZs = !0);
27
+ let i = n[0];
28
+ d.iNLKEZ !== i && (d.yEnwGN = {}, d.iNLKEZ = i);
29
+ let a = d.yEnwGN[e];
30
+ return a === void 0 ? (r = d.gzNYyY(r), d.yEnwGN[e] = r) : r = a, r;
31
+ }
32
+ import { Children as f, isValidElement as p, useMemo as m } from "react";
33
+ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
34
+ var v = {
21
35
  compact: 28,
22
36
  default: 36,
23
37
  comfortable: 56
24
- }, v = (t = e(349)) => e(308) + t + ")";
25
- function y(t) {
26
- let n = e, r = /* @__PURE__ */ new Map();
27
- return t[n(350)]((e, t) => {
28
- let i = n;
29
- f(e) && d[i(350)](e.props[i(386)], (e) => {
30
- let n = i;
31
- if (!f(e)) return;
32
- let { id: a, start: o, end: s } = e[n(348)];
33
- typeof a === n(396) && typeof o == "number" && typeof s === n(407) && r[n(313)](a, {
34
- start: Math[n(412)](o, s),
35
- end: Math.max(o, s),
36
- row: t
38
+ }, y = (t = e(417)) => "var(--ds-timeline-" + t + ")";
39
+ function b(e) {
40
+ let t = /* @__PURE__ */ new Map();
41
+ return e.forEach((e, n) => {
42
+ let r = d;
43
+ p(e) && f[r(476)](e[r(512)][r(517)], (e) => {
44
+ let i = r;
45
+ if (!p(e)) return;
46
+ let { id: a, start: o, end: s } = e[i(512)];
47
+ typeof a == "string" && typeof o === i(439) && typeof s === i(439) && t[i(462)](a, {
48
+ start: Math[i(466)](o, s),
49
+ end: Math[i(446)](o, s),
50
+ row: n
37
51
  });
38
52
  });
39
- }), r;
53
+ }), t;
40
54
  }
41
- function b({ min: t = 0, max: r, step: i, ticks: u, formatTick: f = String, grid: m = !0, now: b, nowLabel: x, nowLine: S = !0, markers: C = [], links: w, labelWidth: T = 160, labelHeader: E, aside: D, density: O = e(392), rowHeight: k, "aria-label": A, className: j, style: M, children: N }) {
42
- let P = e, F = r - t, I = p(() => ({
55
+ function x({ min: t = 0, max: r, step: i, ticks: u, formatTick: d = String, grid: p = !0, now: h, nowLabel: x, nowLine: S = !0, markers: C = [], links: w, labelWidth: T = 160, labelHeader: E, aside: D, density: O = e(431), rowHeight: k, "aria-label": A, className: j, style: M, children: N }) {
56
+ let P = e, F = r - t, I = m(() => ({
43
57
  min: t,
44
58
  max: r,
45
- pct: (e) => F > 0 ? Math[P(323)](0, Math.min(100, (e - t) / F * 100)) : 0,
46
- formatValue: f
59
+ pct: (e) => F > 0 ? Math[P(446)](0, Math.min(100, (e - t) / F * 100)) : 0,
60
+ formatValue: d
47
61
  }), [
48
62
  t,
49
63
  r,
50
64
  F,
51
- f
52
- ]), L = p(() => u ?? c(t, r, i ?? l(F, 6)), [
65
+ d
66
+ ]), L = m(() => u ?? c(t, r, i ?? l(F, 6)), [
53
67
  u,
54
68
  t,
55
69
  r,
56
70
  i,
57
71
  F
58
- ]), R = C[P(382)]((e) => e[P(318)] != null), z = k ?? _[O], B = b !== void 0 && x != null, V = b === void 0 ? 0 : I[P(380)](b), H = w?.[P(344)] ? d[P(361)](N) : [], U = H[P(344)] * z, W = H.length ? y(H) : null, G = (e) => Number(e[P(306)](3)), K = (w ?? [])[P(357)]((e) => {
59
- let t = P, n = W?.[t(337)](e.from), r = W?.[t(337)](e.to);
72
+ ]), R = C.some((e) => e[P(498)] != null), z = k ?? v[O], B = h !== void 0 && x != null, V = h === void 0 ? 0 : I[P(457)](h), H = w?.[P(409)] ? f.toArray(N) : [], U = H[P(409)] * z, W = H.length ? b(H) : null, G = (e) => Number(e[P(412)](3)), K = (w ?? [])[P(493)]((e) => {
73
+ let t = P, n = W?.[t(410)](e[t(507)]), r = W?.[t(410)](e.to);
60
74
  if (!n || !r) return [];
61
- let i = I.pct(n[t(315)]), a = I.pct(r[t(329)]), o = n.row * z + z / 2, s = r.row * z + z / 2, c = Math[t(323)](1.5, (a - i) / 2), l = "M " + G(i) + " " + G(o) + t(358) + G(i + c) + " " + G(o) + ", " + G(a - c) + " " + G(s) + ", " + G(a) + " " + G(s), u = e[t(369)] ?? t(351);
75
+ let i = I.pct(n.end), a = I.pct(r.start), o = n.row * z + z / 2, s = r.row * z + z / 2, c = Math[t(446)](1.5, (a - i) / 2), l = "M " + G(i) + " " + G(o) + t(461) + G(i + c) + " " + G(o) + ", " + G(a - c) + " " + G(s) + ", " + G(a) + " " + G(s), u = e[t(460)] ?? t(484);
62
76
  return [{
63
- key: e[t(320)] + "→" + e.to,
77
+ key: e[t(507)] + "→" + e.to,
64
78
  tone: u,
65
79
  d: l
66
80
  }];
67
81
  });
68
- return h(s.Provider, {
82
+ return g(s[P(449)], {
69
83
  value: I,
70
- children: g("div", {
71
- role: "group",
84
+ children: _(P(451), {
85
+ role: P(505),
72
86
  "aria-label": A,
73
- className: o(P(366), P(362) + O, T === 0 && P(324), R && P(345), j),
87
+ className: o("ds-timeline", "ds-timeline--" + O, T === 0 && P(437), R && P(472), j),
74
88
  style: {
75
89
  "--_label": T + "px",
76
90
  "--_row": z + "px",
77
91
  ...M
78
92
  },
79
93
  children: [
80
- g(P(415), {
81
- className: P(363),
94
+ _(P(451), {
95
+ className: P(440),
82
96
  "aria-hidden": !0,
83
97
  children: [
84
- m && L.map((e) => h("span", {
85
- className: P(322),
86
- style: { left: I.pct(e) + "%" }
98
+ p && L.map((e) => g("span", {
99
+ className: P(452),
100
+ style: { left: I[P(457)](e) + "%" }
87
101
  }, e)),
88
- C[P(336)]((e, t) => e.band !== void 0 && h(P(378), {
89
- className: P(376),
102
+ C[P(454)]((e, t) => e[P(486)] !== void 0 && g(P(506), {
103
+ className: P(497),
90
104
  style: {
91
- left: I[P(380)](Math[P(412)](e.value, e[P(381)])) + "%",
92
- width: I.pct(Math[P(323)](e[P(383)], e.band)) - I[P(380)](Math[P(412)](e[P(383)], e[P(381)])) + "%",
93
- "--_c": v(e.tone)
105
+ left: I.pct(Math[P(466)](e[P(453)], e.band)) + "%",
106
+ width: I[P(457)](Math[P(446)](e[P(453)], e[P(486)])) - I[P(457)](Math[P(466)](e[P(453)], e[P(486)])) + "%",
107
+ "--_c": y(e[P(460)])
94
108
  }
95
109
  }, t)),
96
- K.length > 0 && h(P(327), {
97
- className: P(399),
98
- viewBox: P(346) + U,
99
- preserveAspectRatio: P(359),
110
+ K[P(409)] > 0 && g(P(464), {
111
+ className: P(480),
112
+ viewBox: P(514) + U,
113
+ preserveAspectRatio: P(519),
100
114
  style: { height: U },
101
- children: K[P(336)]((e) => h(P(307), {
102
- className: "ds-timeline__link",
115
+ children: K[P(454)]((e) => g(P(432), {
116
+ className: P(430),
103
117
  d: e.d,
104
- vectorEffect: P(311),
118
+ vectorEffect: P(509),
105
119
  style: {
106
120
  d: "path('" + e.d + "')",
107
- "--_c": v(e[P(369)])
121
+ "--_c": y(e[P(460)])
108
122
  }
109
- }, e[P(317)]))
123
+ }, e[P(419)]))
110
124
  })
111
125
  ]
112
126
  }),
113
- g(P(415), {
114
- className: P(354),
127
+ _(P(451), {
128
+ className: P(520),
115
129
  "aria-hidden": !0,
116
- children: [h(P(415), {
117
- className: P(368),
118
- children: E != null && h(n, {
119
- variant: P(356),
120
- tone: P(326),
130
+ children: [g(P(451), {
131
+ className: P(456),
132
+ children: E != null && g(n, {
133
+ variant: P(435),
134
+ tone: P(468),
121
135
  truncate: !0,
122
136
  children: E
123
137
  })
124
- }), g(P(415), {
125
- className: P(360),
126
- children: [L[P(336)]((e) => B && e === b ? null : h(P(378), {
127
- className: P(353),
128
- "data-edge": e <= t ? "start" : e >= r ? "end" : void 0,
129
- style: { left: I.pct(e) + "%" },
130
- children: f(e)
131
- }, e)), B && h(P(378), {
132
- className: "ds-timeline__now-chip",
133
- "data-edge": V >= 96 ? P(315) : V <= 4 ? P(329) : void 0,
138
+ }), _(P(451), {
139
+ className: P(427),
140
+ children: [L[P(454)]((e) => B && e === h ? null : g(P(506), {
141
+ className: P(455),
142
+ "data-edge": e <= t ? P(522) : e >= r ? "end" : void 0,
143
+ style: { left: I[P(457)](e) + "%" },
144
+ children: d(e)
145
+ }, e)), B && g(P(506), {
146
+ className: P(423),
147
+ "data-edge": V >= 96 ? P(481) : V <= 4 ? "start" : void 0,
134
148
  style: { left: V + "%" },
135
- children: h(a, {
136
- tone: P(351),
149
+ children: g(a, {
150
+ tone: P(484),
137
151
  size: "sm",
138
152
  children: x
139
153
  })
140
154
  })]
141
155
  })]
142
156
  }),
143
- D != null && h(P(415), {
144
- className: P(310),
157
+ D != null && g(P(451), {
158
+ className: P(442),
145
159
  children: D
146
160
  }),
147
- h("div", {
148
- className: P(325),
149
- role: P(342),
161
+ g("div", {
162
+ className: P(438),
163
+ role: P(521),
150
164
  children: N
151
165
  }),
152
- g(P(415), {
153
- className: P(391),
166
+ _("div", {
167
+ className: "ds-timeline__layer ds-timeline__layer--front",
154
168
  "aria-hidden": !0,
155
- children: [C[P(336)]((e, t) => h(P(378), {
156
- className: P(411),
157
- "data-line": e.line ?? P(377),
169
+ children: [C[P(454)]((e, t) => g("span", {
170
+ className: P(469),
171
+ "data-line": e[P(485)] ?? P(416),
158
172
  style: {
159
- left: I[P(380)](e.value) + "%",
160
- "--_c": v(e[P(369)])
173
+ left: I[P(457)](e[P(453)]) + "%",
174
+ "--_c": y(e[P(460)])
161
175
  },
162
- children: e.label != null && h(P(378), {
163
- className: P(334),
164
- "data-side": e[P(340)] ?? P(312),
165
- children: h(a, {
166
- tone: e[P(369)] ?? P(349),
176
+ children: e.label != null && g(P(506), {
177
+ className: "ds-timeline__chip",
178
+ "data-side": e[P(492)] ?? P(434),
179
+ children: g(a, {
180
+ tone: e[P(460)] ?? P(417),
167
181
  square: !0,
168
- children: e[P(318)]
182
+ children: e[P(498)]
169
183
  })
170
184
  })
171
- }, t)), b !== void 0 && S && h("span", {
172
- className: P(365),
185
+ }, t)), h !== void 0 && S && g(P(506), {
186
+ className: P(474),
173
187
  "data-chip": B || void 0,
174
188
  style: { left: V + "%" }
175
189
  })]
176
190
  }),
177
- (b !== void 0 || R) && g(P(378), {
178
- className: "ds-timeline__sr",
179
- children: [b !== void 0 && P(331) + f(b) + ". ", C[P(388)]((e) => typeof e[P(318)] === P(396)).map((e) => e.label + ".")[P(379)](" ")]
191
+ (h !== void 0 || R) && _(P(506), {
192
+ className: P(496),
193
+ children: [h !== void 0 && P(436) + d(h) + ". ", C[P(488)]((e) => typeof e[P(498)] === P(448))[P(454)]((e) => e[P(498)] + ".")[P(407)](" ")]
180
194
  })
181
195
  ]
182
196
  })
183
197
  });
184
198
  }
185
- function x(e, t) {
186
- e -= 306;
187
- let n = E(), r = n[e];
188
- x.LkXQLR === void 0 && (x.xJZaDP = function(e) {
189
- let t = "", n = "";
190
- 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);
191
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
192
- return decodeURIComponent(n);
193
- }, x.HrjuAY = {}, x.LkXQLR = !0);
194
- let i = n[0];
195
- x.FVveSj !== i && (x.HrjuAY = {}, x.FVveSj = i);
196
- let a = x.HrjuAY[e];
197
- return a === void 0 ? (r = x.xJZaDP(r), x.HrjuAY[e] = r) : r = a, r;
198
- }
199
- function S({ label: t, leading: s, description: c, badge: l, count: u, depth: d = 0, faded: f, selected: p, onSelect: m, children: _, className: v, style: y }) {
200
- let b = e, x = s != null || c != null || l != null || u != null, S = typeof t == "string" || typeof t === b(407) ? h(n, {
201
- variant: x ? "label-md" : b(319),
202
- tone: b(f ? 326 : 392),
199
+ function S({ label: t, leading: s, description: c, badge: l, count: u, depth: d = 0, faded: f, selected: p, onSelect: m, children: h, className: v, style: y }) {
200
+ let b = e, x = s != null || c != null || l != null || u != null, S = typeof t === b(448) || typeof t === b(439) ? g(n, {
201
+ variant: b(x ? 458 : 420),
202
+ tone: f ? b(468) : "default",
203
203
  truncate: !0,
204
- className: "ds-timeline__name",
204
+ className: b(511),
205
205
  children: t
206
206
  }) : t, C = m ? (e) => {
207
207
  let t = b;
208
- e[t(367)] !== e.currentTarget || e[t(414)][t(321)] || (e.key === t(338) || e[t(317)] === " ") && (e[t(389)](), m());
208
+ e[t(445)] !== e[t(422)] || e[t(450)].isComposing || (e[t(419)] === "Enter" || e.key === " ") && (e[t(418)](), m());
209
209
  } : void 0;
210
- return g(b(415), {
211
- role: b(384),
212
- className: o(b(352), v),
210
+ return _(b(451), {
211
+ role: b(499),
212
+ className: o(b(515), v),
213
213
  "data-faded": f || void 0,
214
214
  "data-selected": p || void 0,
215
215
  "data-selectable": m || p !== void 0 ? !0 : void 0,
@@ -218,152 +218,152 @@ function S({ label: t, leading: s, description: c, badge: l, count: u, depth: d
218
218
  onClick: m,
219
219
  onKeyDown: C,
220
220
  style: y,
221
- children: [h(b(415), {
222
- className: b(372),
223
- style: d ? { paddingInlineStart: "calc(var(--s4) * " + d + ")" } : void 0,
224
- children: x ? g(r, {
221
+ children: [g("div", {
222
+ className: b(429),
223
+ style: d ? { paddingInlineStart: b(518) + d + ")" } : void 0,
224
+ children: x ? _(r, {
225
225
  gap: 3,
226
226
  wrap: !1,
227
- className: b(374),
227
+ className: b(426),
228
228
  children: [
229
- s != null && h(b(378), {
230
- className: b(397),
229
+ s != null && g(b(506), {
230
+ className: b(447),
231
231
  children: s
232
232
  }),
233
- g(i, {
233
+ _(i, {
234
234
  gap: 0,
235
- className: b(341),
236
- children: [g(r, {
235
+ className: b(482),
236
+ children: [_(r, {
237
237
  gap: 2,
238
238
  wrap: !1,
239
239
  children: [S, l]
240
- }), c != null && h(n, {
241
- variant: b(356),
242
- tone: b(326),
240
+ }), c != null && g(n, {
241
+ variant: b(435),
242
+ tone: b(468),
243
243
  truncate: !0,
244
244
  children: c
245
245
  })]
246
246
  }),
247
- u != null && h(a, {
247
+ u != null && g(a, {
248
248
  size: "sm",
249
249
  square: !0,
250
- className: "ds-timeline__count",
250
+ className: b(495),
251
251
  children: typeof u == "number" ? "+" + u : u
252
252
  })
253
253
  ]
254
254
  }) : S
255
- }), h(b(415), {
256
- className: b(328),
257
- children: _
255
+ }), g(b(451), {
256
+ className: b(415),
257
+ children: h
258
258
  })]
259
259
  });
260
260
  }
261
- var C = (t) => e(308) + t + ")", w = {
262
- neutral: e(409),
263
- accent: e(413),
264
- purple: "var(--chart-4)",
265
- teal: "var(--chart-3)",
266
- success: e(343),
267
- warning: e(390),
261
+ function C() {
262
+ let e = /* @__PURE__ */ "zhmTDgLTzwXPBMuTyMfYx19OAxq.zhmTDgLTzwXPBMuTlwnOAxbZ.zhmTDgLTzwXPBMuTyMfY.zhmTDgLTzwXPBMvFx25VDW.ndbxqwLlzxe.zM9YrwfJAa.zhmTDgLTzwXPBMuTyMfYx19ZzwDTzw50CW.DMfYkc0TywnJzw50lxrLEhqP.mJeZmJu4ne5vvM5eDW.zhmTDgLTzwXPBMvFx2XPBMTZ.zw5K.zhmTDgLTzwXPBMvFx2XHyMvSlxrLEhq.zhmTDgLTzwXPBMuTyMfYx19VDMvY.ywnJzw50.BgLUzq.yMfUza.nZqYmtiWnhfIAxnIAG.zMLSDgvY.zhmTDgLTzwXPBMuTyMfYx19JB250zw50.yNv0Dg9U.zhmTDgLTzwXPBMuTyMfYx190zxH0.BgfIzwXtAwrL.zMXHDe1HCa.zMLSBa.zhmTDgLTzwXPBMvFx2nVDw50.z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wvYigrZlxrPBwvSAw5Lx19SyxLLCI0TyMfJAW.CgvUzgLUzW.zhmTDgLTzwXPBMvFx2fZAwrL.zhmTDgLTzwXPBMuTyMfYx19MAwXS.jsaRidfWEcK.DgfYz2v0.Bwf4.zhmTDgLTzwXPBMvFx2XLywrPBMC.C3rYAw5N.uhjVDMLKzxi.BMf0AxzLrxzLBNq.zgL2.zhmTDgLTzwXPBMvFx2DYAwrSAw5L.DMfSDwu.BwfW.zhmTDgLTzwXPBMvFx3rPy2S.zhmTDgLTzwXPBMvFx2nVCM5LCG.Cgn0.BgfIzwWTBwq.mJKYsefvvuzH.Dg9Uzq.iemG.C2v0.DMfYkc0TD2fYBMLUzYK.C3zN.DMfYkc0TC3vJy2vZCYK.BwLU.mJi5ndLlsvjpD0q.DgvYDgLHCNK.zhmTDgLTzwXPBMvFx21HCMTLCG.y2fSyYG".split(".");
263
+ return C = function() {
264
+ return e;
265
+ }, C();
266
+ }
267
+ var w = (t) => e(516) + t + ")", T = {
268
+ neutral: e(510),
269
+ accent: e(478),
270
+ purple: e(503),
271
+ teal: e(523),
272
+ success: e(465),
273
+ warning: e(463),
268
274
  danger: "var(--danger)"
269
275
  };
270
- function T({ start: n, end: r, variant: i = e(393), tone: a, size: s, children: c, leading: l, action: d, segments: f, limit: p, overTone: _ = e(395), running: v, label: y, labelAt: b, tooltip: x, onClick: S, renderTarget: T, ref: E, "aria-label": D, className: O }) {
271
- let k = e, { pct: A, formatValue: j } = u(), M = c != null || l != null || d != null, N = s ?? (M ? "xl" : "md"), P = a ?? (i === "outline" ? "neutral" : k(351)), F = Math[k(412)](n, r), I = Math.max(n, r), L = A(F), R = A(I) - L, z = p !== void 0 && p < I && i !== k(373) ? Math[k(323)](0, Math[k(412)](100, (I - Math[k(323)](p, F)) / (I - F || 1) * 100)) : 0, B = D ?? [
272
- typeof c === k(396) || typeof c == "number" ? String(c) : void 0,
273
- j(F) + " – " + j(I),
274
- v && k(410)
275
- ].filter(Boolean).join(", "), V = null;
276
- if (S || T) {
277
- let e = h(k(332), {
278
- type: "button",
279
- className: k(402),
276
+ function E({ start: n, end: r, variant: i = e(494), tone: a, size: s, children: c, leading: l, action: d, segments: f, limit: p, overTone: m = e(411), running: v, label: y, labelAt: b, tooltip: x, onClick: S, renderTarget: C, ref: E, "aria-label": D, className: O }) {
277
+ let k = e, { pct: A, formatValue: j } = u(), M = c != null || l != null || d != null, N = s ?? (M ? "xl" : "md"), P = a ?? (i === k(414) ? k(417) : k(484)), F = Math[k(466)](n, r), I = Math[k(446)](n, r), L = A(F), R = A(I) - L, z = p !== void 0 && p < I && i !== k(414) ? Math[k(446)](0, Math[k(466)](100, (I - Math[k(446)](p, F)) / (I - F || 1) * 100)) : 0, B = D ?? [
278
+ typeof c === k(448) || typeof c == "number" ? String(c) : void 0,
279
+ j(F) + k(504) + j(I),
280
+ v && "진행 중"
281
+ ][k(488)](Boolean)[k(407)](", "), V = null;
282
+ if (S || C) {
283
+ let e = g(k(490), {
284
+ type: k(490),
285
+ className: "ds-timeline-bar__hit",
280
286
  "aria-label": B,
281
287
  onClick: S
282
- }), n = x == null ? e : h(t, {
288
+ }), n = x == null ? e : g(t, {
283
289
  content: x,
284
290
  children: e
285
291
  });
286
- V = T ? T(n) : n;
287
- } else x != null && (V = h(t, {
292
+ V = C ? C(n) : n;
293
+ } else x != null && (V = g(t, {
288
294
  content: x,
289
- children: h("span", {
290
- className: "ds-timeline-bar__hit",
295
+ children: g(k(506), {
296
+ className: k(471),
291
297
  tabIndex: 0,
292
298
  "aria-label": B,
293
- role: k(387)
299
+ role: k(413)
294
300
  })
295
301
  }));
296
302
  let H = I - F || 1;
297
- return g(m, { children: [g(k(378), {
303
+ return _(h, { children: [_(k(506), {
298
304
  ref: E,
299
- className: o("ds-timeline-bar", k(398) + i, k(398) + N, M && k(355), f && f[k(344)] > 0 && "ds-timeline-bar--segmented", O),
305
+ className: o(k(473), k(500) + i, k(500) + N, M && k(513), f && f[k(409)] > 0 && k(501), O),
300
306
  "data-running": v || void 0,
301
307
  "data-over": z > 0 || void 0,
302
308
  style: {
303
309
  left: L + "%",
304
310
  width: R + "%",
305
- "--_c": C(i === k(314) ? "neutral" : P),
306
- "--_over": C(_),
307
- "--_ink": w[i === k(314) ? k(349) : P]
311
+ "--_c": w(i === k(441) ? "neutral" : P),
312
+ "--_over": w(m),
313
+ "--_ink": T[i === k(441) ? "neutral" : P]
308
314
  },
309
315
  children: [
310
- g(k(378), {
311
- className: k(309),
312
- children: [h(k(378), {
313
- className: "ds-timeline-bar__over",
316
+ _(k(506), {
317
+ className: k(443),
318
+ children: [g(k(506), {
319
+ className: k(483),
314
320
  style: { width: z + "%" }
315
- }), f && f[k(344)] > 0 && h(k(378), {
316
- className: k(316),
317
- children: f[k(336)]((e, t) => {
318
- let n = k, r = Math[n(323)](F, Math[n(412)](e.start, e[n(315)])), i = Math.min(I, Math[n(323)](e[n(329)], e[n(315)])), a = (r - F) / H * 100, o = Math[n(323)](0, i - r) / H * 100;
319
- return h(n(378), {
321
+ }), f && f[k(409)] > 0 && g(k(506), {
322
+ className: k(477),
323
+ children: f[k(454)]((e, t) => {
324
+ let n = k, r = Math[n(446)](F, Math[n(466)](e[n(522)], e.end)), i = Math[n(466)](I, Math.max(e[n(522)], e[n(481)])), a = (r - F) / H * 100, o = Math[n(446)](0, i - r) / H * 100;
325
+ return g("span", {
320
326
  className: "ds-timeline-bar__segment",
321
327
  style: {
322
- left: n(339) + a + "% + 1px)",
323
- width: "max(2px, calc(" + o + "% - 2px))",
324
- "--_c": C(e[n(369)] ?? n(351))
328
+ left: n(470) + a + n(444),
329
+ width: "max(2px, calc(" + o + n(425),
330
+ "--_c": w(e[n(460)] ?? n(484))
325
331
  }
326
332
  }, t);
327
333
  })
328
334
  })]
329
335
  }),
330
- V == null ? !M && h(k(378), {
331
- className: "ds-timeline__sr",
336
+ V == null ? !M && g(k(506), {
337
+ className: k(496),
332
338
  children: B
333
- }) : h(k(378), {
334
- className: k(330),
339
+ }) : g(k(506), {
340
+ className: k(421),
335
341
  children: V
336
342
  }),
337
- M && g("span", {
338
- className: k(385),
343
+ M && _("span", {
344
+ className: k(489),
339
345
  children: [
340
- l != null && h(k(378), {
341
- className: k(375),
346
+ l != null && g(k(506), {
347
+ className: "ds-timeline-bar__leading",
342
348
  "aria-hidden": V != null || void 0,
343
349
  children: l
344
350
  }),
345
- c != null && h("span", {
346
- className: k(404),
351
+ c != null && g(k(506), {
352
+ className: k(491),
347
353
  "aria-hidden": V != null || void 0,
348
354
  children: c
349
355
  }),
350
- d != null && h(k(378), {
351
- className: "ds-timeline-bar__action",
356
+ d != null && g(k(506), {
357
+ className: k(408),
352
358
  children: d
353
359
  })
354
360
  ]
355
361
  })
356
362
  ]
357
- }), y != null && y !== !1 && h(k(378), {
358
- className: k(333),
359
- style: { left: A(Math.max(I, b ?? I)) + "%" },
363
+ }), y != null && y !== !1 && g(k(506), {
364
+ className: k(433),
365
+ style: { left: A(Math[k(446)](I, b ?? I)) + "%" },
360
366
  children: y
361
367
  })] });
362
368
  }
363
- export { b as Timeline, T as TimelineBar, S as TimelineRow };
364
- function E() {
365
- let e = /* @__PURE__ */ "zMLSBa.otK2ntG0ywXOr1Hx.D2fYBMLUzW.C3rYAw5N.zhmTDgLTzwXPBMvFx2XLywrPBMC.zhmTDgLTzwXPBMuTyMfYls0.zhmTDgLTzwXPBMvFx2XPBMTZ.mJDWtLv3Dgm.nZe1otm1zufoqMzA.zhmTDgLTzwXPBMuTyMfYx19OAxq.ndy2mJa4meX1ENjYCq.zhmTDgLTzwXPBMuTyMfYx190zxH0.mtbqzxvkyxq.mti1ndeWndrSwMr4Agq.BNvTyMvY.mZm4mdjdyLzwBg8.DMfYkc0TDgv4Dc0Ykq.7kEe7zAjioYKKq.zhmTDgLTzwXPBMvFx21HCMTLCG.BwLU.DMfYkc0TywnJzw50lxrLEhqP.BMf0AxzLrxzLBNq.zgL2.Dg9gAxHLza.Cgf0Aa.DMfYkc0TzhmTDgLTzwXPBMuT.zhmTDgL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