@iamfiro/design 0.3.1 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -3,102 +3,108 @@ const e = _;
3
3
  (function(e, t) {
4
4
  let n = _, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(174)) / 1 + parseInt(n(123)) / 2 + -parseInt(n(161)) / 3 * (-parseInt(n(170)) / 4) + -parseInt(n(124)) / 5 * (parseInt(n(172)) / 6) + -parseInt(n(140)) / 7 + parseInt(n(151)) / 8 + parseInt(n(155)) / 9 * (parseInt(n(160)) / 10) == t) break;
6
+ if (parseInt(n(550)) / 1 * (parseInt(n(544)) / 2) + parseInt(n(501)) / 3 + -parseInt(n(535)) / 4 + -parseInt(n(541)) / 5 + parseInt(n(517)) / 6 * (parseInt(n(520)) / 7) + parseInt(n(513)) / 8 * (parseInt(n(515)) / 9) + parseInt(n(537)) / 10 * (-parseInt(n(525)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(C, 539838);
11
+ })(l, 777412);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Progress as n } from "../../primitives/Progress2.js";
14
14
  import { Box as r, Grid as i, Inline as a, Stack as o } from "../../primitives/Layout2.js";
15
15
  import { StatusIcon as ee } from "../../primitives/StatusIcon2.js";
16
16
  import { useControllableState as s } from "../../hooks/useControllableState.js";
17
- import { Button as te, Checkbox as c } from "../../primitives/index.js";
18
- import { useSelection as ne } from "../../hooks/useSelection.js";
19
- import { Card as l, CardBody as u, CardHeader as d } from "../Card/Card2.js";
20
- import { List as f, ListItem as p } from "../List/List2.js";
21
- import { Accordion as m, AccordionItem as h } from "../Accordion/Accordion2.js";
17
+ import { Button as te, Checkbox as ne } from "../../primitives/index.js";
18
+ import { useSelection as c } from "../../hooks/useSelection.js";
19
+ function l() {
20
+ let e = /* @__PURE__ */ "zxzLCNK.zgvMyxvSDa.ywrK.BgfIzwW.mtfgAhzAr0C.7zMv7j24io2vHoYALa.zhmTDhjHy2TLCL9FzM9Sza.zMLUza.64UO6Roeio2oVoY5MoQ4Sa.64UO6RoeioYzHoUJJa.Dg9Nz2XL.yM9KEs1ZBq.CM91BMq.y2fWDgLVBG.ndi5mZKWmg90wvbOsW.zgLZywjSzwq.mtK4oty0mZb1qw13wfO.66QO65gqioUbNEUdIoYwToYALce.z2HVC3q.zgvZy3jPChrPB24.otm0otC1Bwj5sM1H.BgfIzwWTBwq.AxntzwXLy3rLza.oejJEg16sW.CMfPC2vK.DgvYDgLHCNK.y2vUDgvY.BxvSDgLWBgu.zNvUy3rPB24.mJG0ndm3A2Diy2H1.ywn0Aw9U.C3vJy2vZCW.C2LUz2XL.64UO6RoeioYKKsa.C2XPy2u.C29Tzq.C3rLChm.mta1mdqYEKL1CM5d.zMLSDgvY.zgL2.zhmTDhjHy2TLCL9FzM9Szc1PBM5LCG.jsdSMytRO4W.C3rVCfbYB3bHz2f0Aw9U.ywn0AxzL.zhmTDhjHy2TLCL9FDg9Nz2XL.64UO6RoeioYGKEQ4Sa.C3bHBG.BgfIzwWTBgC.zMLSBgvK.mta4nZuYnJrAzxPVs0q.ywnJzw50.ow9Jz2LQDG.zMLUzeLUzgv4.mJqYndKWrxnNA1LS.y2LYy2XL.7kEe7zAj66wG.mJu5tNvQq1r4".split(".");
21
+ return l = function() {
22
+ return e;
23
+ }, l();
24
+ }
25
+ import { Card as u, CardBody as d, CardHeader as f } from "../Card/Card2.js";
26
+ import { List as p, ListItem as m } from "../List/List2.js";
27
+ import { Accordion as h, AccordionItem as g } from "../Accordion/Accordion2.js";
22
28
  /* empty css */
23
- import { useId as g } from "react";
24
29
  function _(e, t) {
25
- e -= 119;
26
- let n = C(), r = n[e];
27
- _.SZSZCf === void 0 && (_.CoXJAr = function(e) {
30
+ e -= 500;
31
+ let n = l(), r = n[e];
32
+ _.eQZEEk === void 0 && (_.mklbhE = function(e) {
28
33
  let t = "", n = "";
29
34
  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);
30
35
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
36
  return decodeURIComponent(n);
32
- }, _.pCtLRo = {}, _.SZSZCf = !0);
37
+ }, _.erNFuB = {}, _.eQZEEk = !0);
33
38
  let i = n[0];
34
- _.AbCmPp !== i && (_.pCtLRo = {}, _.AbCmPp = i);
35
- let a = _.pCtLRo[e];
36
- return a === void 0 ? (r = _.CoXJAr(r), _.pCtLRo[e] = r) : r = a, r;
39
+ _.wHBAxQ !== i && (_.erNFuB = {}, _.wHBAxQ = i);
40
+ let a = _.erNFuB[e];
41
+ return a === void 0 ? (r = _.mklbhE(r), _.erNFuB[e] = r) : r = a, r;
37
42
  }
38
- import { ChevronDown as re } from "lucide-react";
43
+ import { useId as re } from "react";
44
+ import { ChevronDown as ie } from "lucide-react";
39
45
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
40
- var b = (e) => e.stopPropagation(), x = {
41
- pending: e(136),
42
- active: e(147),
46
+ var b = (t) => t[e(506)](), x = {
47
+ pending: "대기 중",
48
+ active: "지금 할 단계",
43
49
  done: "완료",
44
50
  error: "오류",
45
- warning: e(137)
51
+ warning: e(526)
46
52
  };
47
- function S({ title: _, steps: S, groups: C, groupMode: w = e(120), openGroups: ie, defaultOpenGroups: ae, onOpenGroupsChange: T, actions: E, completed: oe, defaultCompleted: se, onCompletedChange: ce, readOnly: D, doneMessage: O = e(152), collapsible: k, open: le, defaultOpen: ue = !1, onOpenChange: A, summary: j, className: M, style: N }) {
48
- let P = e, F = ne({
49
- type: P(162),
50
- value: oe,
53
+ function S({ title: l, steps: _, groups: S, groupMode: C = e(553), openGroups: ae, defaultOpenGroups: oe, onOpenGroupsChange: w, actions: T, completed: E, defaultCompleted: se, onCompletedChange: ce, readOnly: D, doneMessage: O = e(538), collapsible: k, open: le, defaultOpen: ue = !1, onOpenChange: A, summary: j, className: M, style: N }) {
54
+ let P = e, F = c({
55
+ type: P(548),
56
+ value: E,
51
57
  defaultValue: se,
52
58
  onValueChange: ce
53
- }), I = C ? C[P(131)]((e) => e[P(166)]) : S ?? [], L = I.filter((e) => F[P(133)](e.id))[P(154)], R = I[P(154)], z = R > 0 && L === R, [B, V] = s(le, ue, A), H = !k || B, U = g(), de = R > 0 ? Math[P(138)](L / R * 100) : 0, W = typeof j == "function" ? j(L, R) : j ?? (k ? de + "% 완료" : null), G = (e, t = F[P(133)]) => e[P(166)][P(154)] > 0 && e[P(166)][P(130)]((e) => t(e.id)), K = C?.[P(119)]((e) => !G(e))?.id, [q, J] = s(ie, ae ?? (K ? [K] : []), T), Y = (e) => {
54
- let t = P, n = F[t(133)](e);
55
- if (F[t(167)](e), !C || n || w !== t(120)) return;
56
- let r = new Set(F[t(149)])[t(158)](e), i = (e) => r[t(128)](e), a = C.findIndex((n) => n[t(166)][t(125)]((t) => t.id === e));
57
- if (a < 0 || !G(C[a], i) || !q[t(139)](C[a].id)) return;
58
- let o = [...C[t(134)](a + 1), ...C[t(134)](0, a)][t(119)]((e) => !G(e, i));
59
+ }), I = S ? S.flatMap((e) => e[P(500)]) : _ ?? [], L = I[P(502)]((e) => F.isSelected(e.id)).length, R = I.length, z = R > 0 && L === R, [B, V] = s(le, ue, A), H = !k || B, U = re(), de = R > 0 ? Math[P(533)](L / R * 100) : 0, W = typeof j === P(549) ? j(L, R) : j ?? (k ? de + P(505) : null), G = (e, t = F.isSelected) => e[P(500)].length > 0 && e.steps[P(521)]((e) => t(e.id)), K = S?.find((e) => !G(e))?.id, [q, J] = s(ae, oe ?? (K ? [K] : []), w), Y = (e) => {
60
+ let t = P, n = F[t(543)](e);
61
+ if (F[t(531)](e), !S || n || C !== "single") return;
62
+ let r = new Set(F.selected)[t(523)](e), i = (e) => r.has(e), a = S[t(516)]((n) => n[t(500)][t(556)]((t) => t.id === e));
63
+ if (a < 0 || !G(S[a], i) || !q.includes(S[a].id)) return;
64
+ let o = [...S[t(555)](a + 1), ...S[t(555)](0, a)].find((e) => !G(e, i));
59
65
  J(o ? [o.id] : []);
60
- }, fe = I.find((e) => !F.isSelected(e.id) && !e[P(122)])?.id, X = k ? v(te, {
61
- className: P(145),
62
- variant: P(157),
66
+ }, fe = I[P(528)]((e) => !F[P(543)](e.id) && !e[P(536)])?.id, X = k ? v(te, {
67
+ className: P(508),
68
+ variant: P(539),
63
69
  size: "sm",
64
70
  iconOnly: !0,
65
- icon: v(re, {}),
66
- "aria-label": H ? "단계 접기" : P(150),
71
+ icon: v(ie, {}),
72
+ "aria-label": P(H ? 509 : 529),
67
73
  "aria-expanded": H,
68
74
  "aria-controls": U,
69
75
  onClick: () => V(!H)
70
76
  }) : null, Z = (e) => y(t, {
71
- variant: P(165),
77
+ variant: P(542),
72
78
  tone: e,
73
79
  numeric: !0,
74
- "aria-label": R + P(127) + L + P(175),
80
+ "aria-label": R + P(554) + L + P(530),
75
81
  children: [L, y(t, {
76
- as: P(146),
77
- variant: P(165),
78
- tone: "tertiary",
82
+ as: P(510),
83
+ variant: P(542),
84
+ tone: P(546),
79
85
  children: ["/", R]
80
86
  })]
81
- }), Q = C ? X : X ?? Z(P(148)), pe = E == null ? Q ?? void 0 : y(a, {
87
+ }), Q = S ? X : X ?? Z("default"), pe = T == null ? Q ?? void 0 : y(a, {
82
88
  gap: 1,
83
89
  wrap: !1,
84
- children: [E, Q]
90
+ children: [T, Q]
85
91
  }), $ = v(n, {
86
92
  value: L,
87
93
  max: R,
88
94
  size: "sm",
89
- tone: z ? "success" : P(129),
90
- "aria-label": P(169)
95
+ tone: P(z ? 552 : 514),
96
+ "aria-label": P(519)
91
97
  }), me = (e) => {
92
- let n = P, r = F[n(133)](e.id), i = D || e[n(122)] ? void 0 : () => Y(e.id);
93
- return v(p, {
94
- disabled: e[n(122)],
98
+ let n = P, r = F[n(543)](e.id), i = D || e[n(536)] ? void 0 : () => Y(e.id);
99
+ return v(m, {
100
+ disabled: e[n(536)],
95
101
  onClick: i,
96
- leading: v("span", {
102
+ leading: v(n(510), {
97
103
  onClick: b,
98
- children: v(c, {
99
- shape: n(163),
104
+ children: v(ne, {
105
+ shape: n(518),
100
106
  checked: r,
101
- disabled: e[n(122)],
107
+ disabled: e[n(536)],
102
108
  readOnly: !i,
103
109
  onChange: i,
104
110
  tabIndex: -1,
@@ -106,20 +112,20 @@ function S({ title: _, steps: S, groups: C, groupMode: w = e(120), openGroups: i
106
112
  })
107
113
  }),
108
114
  title: v(t, {
109
- as: n(146),
115
+ as: n(510),
110
116
  variant: "body-md",
111
- tone: n(r ? 144 : 148),
117
+ tone: n(r ? 546 : 522),
112
118
  strike: r,
113
- children: e[n(164)]
119
+ children: e[n(524)]
114
120
  }),
115
- description: e[n(126)],
116
- trailing: r ? void 0 : e.action
121
+ description: e[n(540)],
122
+ trailing: r ? void 0 : e[n(551)]
117
123
  }, e.id);
118
124
  }, he = (e) => {
119
- let n = P, r = F.isSelected(e.id), i = r ? "done" : e.id === fe ? n(135) : "pending", a = D || e[n(122)] ? void 0 : () => Y(e.id);
120
- return v(p, {
121
- variant: n(142),
122
- disabled: e.disabled,
125
+ let n = P, r = F[n(543)](e.id), i = r ? "done" : e.id === fe ? n(507) : "pending", a = D || e[n(536)] ? void 0 : () => Y(e.id);
126
+ return v(m, {
127
+ variant: n(545),
128
+ disabled: e[n(536)],
123
129
  onClick: a,
124
130
  leading: v(ee, {
125
131
  status: i,
@@ -128,89 +134,89 @@ function S({ title: _, steps: S, groups: C, groupMode: w = e(120), openGroups: i
128
134
  label: x[i]
129
135
  }),
130
136
  title: v(t, {
131
- as: n(146),
132
- variant: n(132),
133
- tone: i === n(135) ? n(148) : n(144),
137
+ as: n(510),
138
+ variant: "body-md",
139
+ tone: i === n(507) ? n(522) : "tertiary",
134
140
  strike: r,
135
- children: e[n(164)]
141
+ children: e[n(524)]
136
142
  }),
137
- description: e[n(126)],
138
- trailing: r ? void 0 : e.action
143
+ description: e.description,
144
+ trailing: r ? void 0 : e[n(551)]
139
145
  }, e.id);
140
- }, ge = w === P(120) ? {
141
- type: "single",
146
+ }, ge = C === P(553) ? {
147
+ type: P(553),
142
148
  value: q[0] ?? null,
143
149
  onValueChange: (e) => J(e ? [e] : [])
144
150
  } : {
145
- type: P(162),
151
+ type: P(548),
146
152
  value: q,
147
153
  onValueChange: J
148
154
  };
149
- return y(l, {
150
- padding: C ? "md" : "sm",
155
+ return y(u, {
156
+ padding: S ? "md" : "sm",
151
157
  className: M,
152
158
  style: N,
153
159
  children: [
154
- v(d, {
155
- title: _,
160
+ v(f, {
161
+ title: l,
156
162
  actions: pe
157
163
  }),
158
- v(u, { children: y(o, {
164
+ v(d, { children: y(o, {
159
165
  gap: 3,
160
166
  children: [
161
- C ? y(i, {
167
+ S ? y(i, {
162
168
  columns: "minmax(0, 1fr) auto",
163
169
  gap: 3,
164
- align: P(121),
165
- children: [$, Z(P(144))]
170
+ align: P(547),
171
+ children: [$, Z("tertiary")]
166
172
  }) : $,
167
173
  W != null && !z && v(t, {
168
- variant: "caption",
169
- tone: P(144),
174
+ variant: P(534),
175
+ tone: P(546),
170
176
  numeric: !0,
171
177
  children: W
172
178
  }),
173
179
  z && O && v(t, {
174
- variant: "body-sm",
175
- tone: P(173),
180
+ variant: P(532),
181
+ tone: P(552),
176
182
  children: O
177
183
  })
178
184
  ]
179
185
  }) }),
180
- v(P(171), {
186
+ v(P(503), {
181
187
  id: U,
182
- className: P(143),
188
+ className: P(527),
183
189
  "data-open": H || void 0,
184
190
  inert: !H || void 0,
185
- children: v("div", {
186
- className: P(168),
187
- children: C ? v(r, {
191
+ children: v(P(503), {
192
+ className: P(504),
193
+ children: S ? v(r, {
188
194
  padding: 1,
189
- children: v(m, {
190
- variant: P(159),
195
+ children: v(h, {
196
+ variant: P(512),
191
197
  ...ge,
192
- children: C.map((e) => {
198
+ children: S.map((e) => {
193
199
  let n = P, r = G(e);
194
- return v(h, {
200
+ return v(g, {
195
201
  value: e.id,
196
202
  flush: !0,
197
203
  title: v(t, {
198
- as: n(146),
199
- variant: n(141),
200
- tone: n(r ? 144 : 148),
204
+ as: "span",
205
+ variant: n(511),
206
+ tone: r ? n(546) : "default",
201
207
  strike: r,
202
- children: e[n(153)]
208
+ children: e.title
203
209
  }),
204
- children: v(f, {
210
+ children: v(p, {
205
211
  "aria-label": "단계",
206
- children: e[n(166)].map(he)
212
+ children: e[n(500)].map(he)
207
213
  })
208
214
  }, e.id);
209
215
  })
210
216
  })
211
- }) : v(f, {
217
+ }) : v(p, {
212
218
  "aria-label": "단계",
213
- children: I[P(156)](me)
219
+ children: I.map(me)
214
220
  })
215
221
  })
216
222
  })
@@ -218,9 +224,3 @@ function S({ title: _, steps: S, groups: C, groupMode: w = e(120), openGroups: i
218
224
  });
219
225
  }
220
226
  export { S as ProgressTracker };
221
- function C() {
222
- let e = /* @__PURE__ */ "DgvYDgLHCNK.zhmTDhjHy2TLCL9FDg9Nz2XL.C3bHBG.7kEa6RIiio2vOcdRI6JQS4q.zgvMyxvSDa.C2vSzwn0zwq.64UO6Roeio2oVoY5MoQ4Sa.mJqXndu2ogzcDurXEG.66QO65gqioUbNEUdIoYwToYALce.DgL0Bgu.BgvUz3rO.mJa3mgP5ALnVrq.BwfW.z2HVC3q.ywrK.zMLSBgvK.ndm3mZbjs29xwe8.ntG5nwrtqNfOsW.BxvSDgLWBgu.y2LYy2XL.BgfIzwW.BgfIzwWTBwq.C3rLChm.Dg9Nz2XL.zhmTDhjHy2TLCL9FzM9Szc1PBM5LCG.7kEe7zAj66wG.nJb5vuf2ANu.zgL2.mte0A1jvwwzt.C3vJy2vZCW.ntaXmJa4Exf4AwLP.64UO6RoeioYzHoUJJa.zMLUza.C2LUz2XL.y2vUDgvY.zgLZywjSzwq.mtGXmJiYogvND3zhBq.otm4nJvVtwrHvMK.C29Tzq.zgvZy3jPChrPB24.64UO6RoeioYKKsa.AgfZ.ywnJzw50.zxzLCNK.zMXHDe1HCa.yM9KEs1Tza.AxntzwXLy3rLza.C2XPy2u.ywn0AxzL.64Ya6RIWioYKKq.7zMv7j24io2vHoYALa.CM91BMq.Aw5JBhvKzxm.ntKXodi2oufcwM92AG.BgfIzwWTBgC.CMfPC2vK.zhmTDhjHy2TLCL9FzM9Sza".split(".");
223
- return C = function() {
224
- return e;
225
- }, C();
226
- }
@@ -1,121 +1,128 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = c;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = c, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(417)) / 1 + parseInt(n(414)) / 2 + parseInt(n(457)) / 3 + -parseInt(n(415)) / 4 + -parseInt(n(424)) / 5 + parseInt(n(431)) / 6 * (parseInt(n(426)) / 7) + parseInt(n(439)) / 8 == t) break;
7
- i.push(i.shift());
6
+ if (parseInt(n(157)) / 1 + -parseInt(n(150)) / 2 * (parseInt(n(153)) / 3) + parseInt(n(163)) / 4 * (parseInt(n(172)) / 5) + parseInt(n(196)) / 6 * (parseInt(n(199)) / 7) + parseInt(n(167)) / 8 + -parseInt(n(148)) / 9 * (-parseInt(n(186)) / 10) + parseInt(n(201)) / 11 * (-parseInt(n(195)) / 12) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(m, 663245);
11
+ })(p, 873077);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Inline as n } from "../../primitives/Layout2.js";
14
- function r(e, t) {
15
- e -= 411;
16
- let n = m(), i = n[e];
17
- r.QpPjXN === void 0 && (r.wdZwZv = function(e) {
14
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
15
+ import { cx as i } from "../../primitives/index.js";
16
+ /* empty css */
17
+ import { useRef as a, useState as o } from "react";
18
+ import { Star as s } from "lucide-react";
19
+ function c(e, t) {
20
+ e -= 147;
21
+ let n = p(), r = n[e];
22
+ c.losImc === void 0 && (c.bOGjdq = function(e) {
18
23
  let t = "", n = "";
19
24
  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
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
26
  return decodeURIComponent(n);
22
- }, r.aViBcf = {}, r.QpPjXN = !0);
23
- let a = n[0];
24
- r.KDyBFV !== a && (r.aViBcf = {}, r.KDyBFV = a);
25
- let o = r.aViBcf[e];
26
- return o === void 0 ? (i = r.wdZwZv(i), r.aViBcf[e] = i) : i = o, i;
27
+ }, c.SddhVU = {}, c.losImc = !0);
28
+ let i = n[0];
29
+ c.tfBJmm !== i && (c.SddhVU = {}, c.tfBJmm = i);
30
+ let a = c.SddhVU[e];
31
+ return a === void 0 ? (r = c.bOGjdq(r), c.SddhVU[e] = r) : r = a, r;
27
32
  }
28
- import { useControllableState as i } from "../../hooks/useControllableState.js";
29
- import { cx as a } from "../../primitives/index.js";
30
- /* empty css */
31
- import { useRef as o, useState as s } from "react";
32
- import { Star as c } from "lucide-react";
33
33
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
34
34
  var d = {
35
- sm: e(416),
36
- md: e(453),
37
- lg: e(466)
38
- }, f = (t) => Number[e(413)](t) ? String(t) : t[e(448)](1);
39
- function p({ value: r, defaultValue: p = null, onValueChange: m, max: h = 5, allowHalf: g = !1, allowClear: _ = !0, readOnly: v = !1, disabled: y = !1, size: b = "md", tone: x = e(449), icon: S, labels: C, showValue: w = !1, count: T, name: E, id: D, className: O, "aria-label": k = "별점", "aria-labelledby": A }) {
40
- let j = e, [M, N] = i(r, p, m), [P, F] = s(null), [I, L] = s(null), [R, z] = s({
35
+ sm: e(194),
36
+ md: e(197),
37
+ lg: e(200)
38
+ }, f = (t) => Number[e(185)](t) ? String(t) : t[e(180)](1);
39
+ function p() {
40
+ let e = /* @__PURE__ */ "mtG0odjLqxbyrNa.zhmTCMf0Aw5Nx19OAxqTlwXLzNq.zhmTCMf0Aw5Nx19OAxqTlxjPz2H0.ndeXA0XSuvbx.DgvYDgLHCNK.ChjLDMvUDerLzMf1Bhq.Dg9mB2nHBgvtDhjPBMC.mtu2mdi1nvbNyxDitG.ioYxHUYDJa.y2vPBa.Bwf4.Cg9Wlq.Axnoyu4.nfDcBfLlDq.qMfJA3nWywnL.7kcqlca.A28Ts1i.mJi4mZa5nKLHzKvvua.C3rPBgW.sg9Tzq.DMfSDwu.zNjVBq.nJyZmdm1yuvHuuPN.zgf0yxnLDa.zhmTCMf0Aw5Nx19ZDgfYCW.C2vTAwjVBgq.zM9JDxm.C2vJB25Kyxj5.7kcqioUNJoYGKoYxKca.AgLKzgvU.Dg9gAxHLza.CMfKAw8.C2v0.zhmTCMf0Aw5Nx19IyxnL.z2v0.AxnjBNrLz2vY.mteYodbkA2fMyLm.qxjYB3DvCa.y3vYCMvUDa.yw1Izxi.CMfKAw9NCM91Ca.DgfYz2v0.zhmTCMf0Aw5Nx19MAwXS.jsaWidaP.BgfIzwWTC20.mtq2nen2v2HSrq.odCWntrcwuzUruS.BgfIzwWTBwq.BwLU.mte5teLdzeXb.BgfIzwWTBgC.mte1ntq0uK14yMPJ.C3bHBG.zhmTCMf0Aw5Nx19Py29U.A2v5.otu0mfnJuxvXCa.zhmTCMf0Aw5Nls0".split(".");
41
+ return p = function() {
42
+ return e;
43
+ }, p();
44
+ }
45
+ function m({ value: c, defaultValue: p = null, onValueChange: m, max: h = 5, allowHalf: g = !1, allowClear: _ = !0, readOnly: v = !1, disabled: y = !1, size: b = "md", tone: x = e(189), icon: S, labels: C, showValue: w = !1, count: T, name: E, id: D, className: O, "aria-label": k = "별점", "aria-labelledby": A }) {
46
+ let j = e, [M, N] = r(c, p, m), [P, F] = o(null), [I, L] = o(null), [R, z] = o({
41
47
  n: 0,
42
48
  upTo: 0
43
- }), B = o(/* @__PURE__ */ new Map()), V = !v && !y, H = g ? .5 : 1, U = V && P !== null && P !== I ? P : null, W = U ?? M ?? 0, G = (e) => e && C ? C[Math[j(454)](e) - 1] : void 0, K = G(U ?? M), q = (e) => {
44
- V && (_ && e === M ? (N(null), L(e)) : (N(e), L(null), z((t) => ({
45
- n: t.n + 1,
46
- upTo: Math.ceil(e)
49
+ }), B = a(/* @__PURE__ */ new Map()), V = !v && !y, H = g ? .5 : 1, U = V && P !== null && P !== I ? P : null, W = U ?? M ?? 0, G = (e) => e && C ? C[Math[j(159)](e) - 1] : void 0, K = G(U ?? M), q = (e) => {
50
+ let t = j;
51
+ V && (_ && e === M ? (N(null), L(e)) : (N(e), L(null), z((n) => ({
52
+ n: n.n + 1,
53
+ upTo: Math[t(159)](e)
47
54
  }))));
48
55
  }, J = (e) => {
49
56
  let t = j;
50
- N(e), z((n) => ({
51
- n: n.n + 1,
52
- upTo: Math[t(454)](e)
53
- })), B[t(421)][t(471)](e)?.[t(435)]();
57
+ N(e), z((t) => ({
58
+ n: t.n + 1,
59
+ upTo: Math.ceil(e)
60
+ })), B[t(188)][t(184)](e)?.[t(176)]();
54
61
  }, Y = (e) => {
55
62
  let t = j;
56
63
  if (!V) return;
57
64
  let n = M ?? 0;
58
- switch (e[t(423)]) {
59
- case t(462):
60
- case t(470):
61
- J(Math[t(443)](h, n + H));
65
+ switch (e[t(147)]) {
66
+ case "ArrowRight":
67
+ case t(187):
68
+ J(Math[t(198)](h, n + H));
62
69
  break;
63
- case t(461):
64
- case t(468):
65
- J(Math[t(451)](H, n - H));
70
+ case "ArrowLeft":
71
+ case "ArrowDown":
72
+ J(Math[t(160)](H, n - H));
66
73
  break;
67
- case t(472):
74
+ case t(169):
68
75
  J(H);
69
76
  break;
70
- case t(442):
77
+ case "End":
71
78
  J(h);
72
79
  break;
73
- case "Backspace":
74
- case t(432):
80
+ case t(164):
81
+ case "Delete":
75
82
  if (!_ || M === null) return;
76
83
  N(null);
77
84
  break;
78
85
  case " ":
79
- case t(463): {
80
- let n = Number(e[t(425)][t(440)].value);
81
- if (Number[t(446)](n)) return;
86
+ case "Enter": {
87
+ let n = Number(e[t(191)][t(173)][t(170)]);
88
+ if (Number[t(162)](n)) return;
82
89
  q(n);
83
90
  break;
84
91
  }
85
92
  default: return;
86
93
  }
87
- e[t(465)]();
88
- }, X = Array[j(437)]({ length: h * (g ? 2 : 1) }, (e, t) => (t + 1) * H), Z = M !== null && X[j(441)](M) ? M : X[0], Q = S ?? l(c, {}), $ = Array[j(437)]({ length: h }, (e, t) => {
89
- let n = j, r = Math.min(1, Math[n(451)](0, W - t)), i = R.n > 0 && t < R.upTo, o = X.filter((e) => e > t && e <= t + 1);
90
- return u(n(469), {
91
- className: n(459),
94
+ e[t(155)]();
95
+ }, X = Array[j(171)]({ length: h * (g ? 2 : 1) }, (e, t) => (t + 1) * H), Z = M !== null && X.includes(M) ? M : X[0], Q = S ?? l(s, {}), $ = Array[j(171)]({ length: h }, (e, t) => {
96
+ let n = j, r = Math[n(198)](1, Math.max(0, W - t)), a = R.n > 0 && t < R.upTo, o = X.filter((e) => e > t && e <= t + 1);
97
+ return u(n(202), {
98
+ className: "ds-rating__star",
92
99
  style: { "--_i": t },
93
- children: [u(n(469), {
94
- className: n(467),
95
- "data-pop": i || void 0,
96
- children: [l(n(469), {
97
- className: n(427),
100
+ children: [u(n(202), {
101
+ className: n(203),
102
+ "data-pop": a || void 0,
103
+ children: [l(n(202), {
104
+ className: n(183),
98
105
  "aria-hidden": !0,
99
106
  children: Q
100
- }), l(n(469), {
101
- className: n(455),
107
+ }), l("span", {
108
+ className: n(192),
102
109
  "aria-hidden": !0,
103
- style: { clipPath: n(450) + (1 - r) * 100 + n(444) },
110
+ style: { clipPath: "inset(0 " + (1 - r) * 100 + n(193) },
104
111
  children: Q
105
112
  })]
106
- }, i ? n(438) + R.n : n(447)), !v && o[n(452)]((e) => l(n(469), {
113
+ }, a ? n(161) + R.n : n(168)), !v && o.map((e) => l("span", {
107
114
  ref: (t) => {
108
115
  let r = n;
109
- t ? B[r(421)].set(e, t) : B[r(421)][r(428)](e);
116
+ t ? B[r(188)][r(182)](e, t) : B.current.delete(e);
110
117
  },
111
- role: "radio",
118
+ role: n(181),
112
119
  "aria-checked": e === M,
113
- "aria-label": G(e) ? f(e) + n(433) + G(e) : f(e) + "점",
120
+ "aria-label": G(e) ? f(e) + n(165) + G(e) : f(e) + "점",
114
121
  "aria-disabled": y || void 0,
115
122
  tabIndex: V && e === Z ? 0 : -1,
116
123
  "data-value": e,
117
124
  "data-half": g && !Number.isInteger(e) || void 0,
118
- className: a(n(436), g && n(Number.isInteger(e) ? 419 : 412)),
125
+ className: i("ds-rating__hit", g && (Number[n(185)](e) ? n(152) : n(151))),
119
126
  onPointerEnter: () => {
120
127
  V && (F(e), e !== I && L(null));
121
128
  },
@@ -127,17 +134,17 @@ function p({ value: r, defaultValue: p = null, onValueChange: m, max: h = 5, all
127
134
  gap: 2,
128
135
  wrap: !1,
129
136
  id: D,
130
- className: a(j(434), j(464) + b, j(464) + x, O),
137
+ className: i("ds-rating", j(149) + b, j(149) + x, O),
131
138
  "data-disabled": y || void 0,
132
139
  children: [
133
- v ? l(j(469), {
134
- className: "ds-rating__stars",
135
- role: j(429),
136
- "aria-label": M === null ? k + j(475) : h + j(474) + f(M) + "점",
140
+ v ? l(j(202), {
141
+ className: j(174),
142
+ role: "img",
143
+ "aria-label": M === null ? k + j(158) : h + j(178) + f(M) + "점",
137
144
  children: $
138
- }) : l(j(456), {
139
- className: j(418),
140
- role: j(476),
145
+ }) : l("div", {
146
+ className: j(174),
147
+ role: j(190),
141
148
  "aria-label": A ? void 0 : k,
142
149
  "aria-labelledby": A,
143
150
  "aria-disabled": y || void 0,
@@ -150,37 +157,31 @@ function p({ value: r, defaultValue: p = null, onValueChange: m, max: h = 5, all
150
157
  }),
151
158
  w && M !== null && l(t, {
152
159
  variant: d[b],
153
- weight: j(458),
160
+ weight: j(175),
154
161
  numeric: !0,
155
162
  children: f(M)
156
163
  }),
157
164
  K && l(t, {
158
165
  variant: d[b],
159
- tone: j(U === null ? 422 : 473),
166
+ tone: U === null ? "default" : j(177),
160
167
  children: K
161
168
  }),
162
169
  T !== void 0 && u(t, {
163
- variant: j(411),
164
- tone: j(445),
170
+ variant: "body-sm",
171
+ tone: j(154),
165
172
  numeric: !0,
166
173
  children: [
167
174
  "(",
168
- T[j(420)](j(430)),
175
+ T[j(156)](j(166)),
169
176
  ")"
170
177
  ]
171
178
  }),
172
- E && l(j(460), {
173
- type: "hidden",
179
+ E && l("input", {
180
+ type: j(179),
174
181
  name: E,
175
182
  value: M ?? ""
176
183
  })
177
184
  ]
178
185
  });
179
186
  }
180
- function m() {
181
- let e = /* @__PURE__ */ "BgfIzwWTBgC.zhmTCMf0Aw5Nx19Py29U.qxjYB3DeB3DU.C3bHBG.qxjYB3DvCa.z2v0.sg9Tzq.C2vJB25Kyxj5.7kcqioUNJoYGKoYxKca.ioYxHUYDJa.CMfKAw9NCM91Ca.yM9KEs1ZBq.zhmTCMf0Aw5Nx19OAxqTlwXLzNq.AxnjBNrLz2vY.mtG0mJu0ng9sD1HqCq.mZK2mZCZmNP4tKrzDG.BgfIzwWTC20.mte2mta4mevhweT5tW.zhmTCMf0Aw5Nx19ZDgfYCW.zhmTCMf0Aw5Nx19OAxqTlxjPz2H0.Dg9mB2nHBgvtDhjPBMC.y3vYCMvUDa.zgvMyxvSDa.A2v5.nda1ntu2mhLQv1jyAa.DgfYz2v0.mtmZotq4nufhCw1YuW.zhmTCMf0Aw5Nx19IyxnL.zgvSzxrL.Aw1N.A28Ts1i.mtjsAeHjAxq.rgvSzxrL.7kcqlca.zhmTCMf0Aw5N.zM9JDxm.zhmTCMf0Aw5Nx19OAxq.zNjVBq.Cg9Wlq.mtC5nJq3nJbhsgjuBxC.zgf0yxnLDa.Aw5JBhvKzxm.rw5K.BwLU.jsaWidaP.DgvYDgLHCNK.Axnoyu4.C3rPBgW.Dg9gAxHLza.yw1Izxi.Aw5ZzxqOmca.Bwf4.BwfW.BgfIzwWTBwq.y2vPBa.zhmTCMf0Aw5Nx19MAwXS.zgL2.mJmWmZC5BMTQrK5x.C2vTAwjVBgq.zhmTCMf0Aw5Nx19ZDgfY.Aw5WDxq.qxjYB3Dmzwz0.qxjYB3DsAwDODa.rw50zxi.zhmTCMf0Aw5Nls0.ChjLDMvUDerLzMf1Bhq".split(".");
182
- return m = function() {
183
- return e;
184
- }, m();
185
- }
186
- export { p as Rating };
187
+ export { m as Rating };