@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,262 +1,261 @@
1
1
  "use client";
2
- const e = c;
2
+ const e = T;
3
3
  (function(e, t) {
4
- let n = c, r = e();
4
+ let n = T, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(265)) / 1 + -parseInt(n(336)) / 2 + parseInt(n(321)) / 3 * (-parseInt(n(263)) / 4) + parseInt(n(324)) / 5 * (-parseInt(n(260)) / 6) + parseInt(n(290)) / 7 + -parseInt(n(316)) / 8 * (parseInt(n(314)) / 9) + -parseInt(n(322)) / 10 * (-parseInt(n(298)) / 11) == t) break;
6
+ if (-parseInt(n(219)) / 1 * (parseInt(n(189)) / 2) + parseInt(n(152)) / 3 + parseInt(n(151)) / 4 + -parseInt(n(169)) / 5 * (parseInt(n(156)) / 6) + parseInt(n(153)) / 7 + parseInt(n(218)) / 8 + parseInt(n(209)) / 9 * (-parseInt(n(216)) / 10) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(r, 968028);
11
+ })(w, 934470);
12
12
  import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
13
- function r() {
14
- let e = /* @__PURE__ */ "zgvMyxvSDa.DgfI.yMv0D2vLBG.A2v5zg93BG.zgLZywjSzwq.66Qf66c5ioUPLoUjTa.Aw5KzxHpzG.DgfYz2v0.ywrKrxzLBNrmAxn0zw5LCG.z2v0qxr0CMLIDxrL.Bw9K.y3vYCMvUDa.ywX0.C2HPzNrlzxK.AxndB21WB3nPBMC.C3bHBG.y29UDhjVBa.qxjYB3DeB3DU.mtaYmJe5nJDxtKTzy0e.yM9KEs1Tza.zMLSDgvY.BwfW.y21K.66Qf66c57jA0ioUyKoUkLcdQSOdSG4NSLRtRPBWG7j6f66cL7zwy7is47jQu.C3rYAw5N.Aw5JBhvKzxm.mtqYmdfHy0H6Ag0.zhmTB3b0Aw9Ux190zxH0.vgfI.Bwv0yuTLEq.y29Kzq.A2v5.z2v0.zMXHDe1HCa.BgvUz3rO.DhjPBq.yM9KEs1ZBq.C29Tzq.Bwv0yq.C2XPy2u.y3rYBeTLEq.z3jVDxa.oxrrtLbmBa.DMfSDwu.ntaZodq0oe9ZqurfDq.7jE06RIWimk3ioUlQ+Q4Sa.zMLUzeLUzgv4.C2HPzNq.AgvHzgLUzW.mtu0mZe5mvvbtfjhDW.mZeYmtbLq1bKteG.BwLUkdqWmhb4lca2mhzOkq.mteWC3j3yKjV.BgfIzwW.zMLUza.DgvYDgLHCNK.A2v5D29Yzhm.BgLZDa.CMvNDwXHCG.zgLNAxq.ywX0s2v5.y29TyM9IB3G.AgLUDa.Dg9mB3DLCKnHC2u.mtC3nde5ohPhCujysq.qxjYB3DvCa.AxrLBxm.mJaZnte0CNjPuwD2.B3b0Aw9U.7is57iwyioYDToUpMq.ngnXuuPzCW.y3rYBa.mtC0mZK0nez4D0fOza.sg9Tzq.CM9Szq.B25tzwXLy3q.zhmTC2nYB2XS.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.ChjLDMvUDerLzMf1Bhq".split(".");
15
- return r = function() {
13
+ import { Text as r } from "../../primitives/Typography2.js";
14
+ import { Box as i, Inline as a, Separator as o } from "../../primitives/Layout2.js";
15
+ import { useControllableState as s } from "../../hooks/useControllableState.js";
16
+ import { Input as c } from "../../primitives/index.js";
17
+ import { Listbox as l, firstEnabled as u, lastEnabled as d, nextEnabled as f, optionId as p } from "../Listbox/Listbox2.js";
18
+ import { Dialog as ee } from "../Dialog/Dialog2.js";
19
+ import { useEffect as m, useId as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y } from "react";
20
+ import { Search as b } from "lucide-react";
21
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
22
+ function w() {
23
+ let e = /* @__PURE__ */ "BwfW.DMfSDwu.mtCZody3ndb1tgjgtem.sg9Tzq.CMvTB3zLrxzLBNrmAxn0zw5LCG.zw50zxi.C2HPzNrlzxK.C2XPy2u.Aw5JBhvKzxm.mtb4ze5LBwe.Aw5KzxHpzG.odmYmtmZnMDZvhflwa.mtKWmZi0qxzvvLD6.zMXHDe1HCa.CM9Szq.BgvUz3rO.y3rYBeTLEq.z2v0qxr0CMLIDxrL.rw50zxi.mJyYnJeZnKfyvhrAza.mZK4ntmYouj1ANHfAG.mti1oda3nJrKAMDYDLy.AxrLBxm.y29Kzq.nJm4mJjOv3btBhm.yM9KEs1Tza.y3vYCMvUDa.Dg9mB3DLCKnHC2u.A2v5D29Yzhm.Bw9K.C2nYB2XSsw50B1zPzxC.zMLUza.vgfI.BgfIzwW.ChjLDMvUDerLzMf1Bhq.Bwv0yuTLEq.y29UDhjVBa.odmWCK5rEuri.Bwv0yq.zgvMyxvSDa.C2HVCNrJDxq.y21K.qxjYB3DvCa.Dg9W.C2HPzNq.C29Tzq.z2v0rwXLBwvUDej5swq.AgLUDa.7is57iwyioYDToUpMq.C3bHBG.BgfIzwWTBgC.A2v5.yMv0D2vLBG.ChjLDMLVDxnfBgvTzw50u2LIBgLUzW.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.zMLSDgvY.y3rYBa.mNfctxnoCa.ywrKrxzLBNrmAxn0zw5LCG.BgLZDa.zgLNAxq.zhmTB3b0Aw9Ux190zxH0.A2v5zg93BG.DgvYDgLHCNK.zMLUzeLUzgv4.ywX0s2v5.rw5K.DhjPBq.zhmTC2nYB2XS.B3b0Aw9U.ywX0.z3jVDxa.BMf0AxzLrxzLBNq.zgLZywjSzwq.B2zM".split(".");
24
+ return w = function() {
16
25
  return e;
17
- }, r();
26
+ }, w();
18
27
  }
19
- import { Text as i } from "../../primitives/Typography2.js";
20
- import { Box as a, Inline as o, Separator as s } from "../../primitives/Layout2.js";
21
- function c(e, t) {
22
- e -= 258;
23
- let n = r(), i = n[e];
24
- c.XCsMTM === void 0 && (c.fQTiQb = function(e) {
28
+ function T(e, t) {
29
+ e -= 148;
30
+ let n = w(), r = n[e];
31
+ T.XUXKbS === void 0 && (T.ZGlPwd = function(e) {
25
32
  let t = "", n = "";
26
33
  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);
27
34
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
35
  return decodeURIComponent(n);
29
- }, c.nfHQjs = {}, c.XCsMTM = !0);
30
- let a = n[0];
31
- c.xmseQZ !== a && (c.nfHQjs = {}, c.xmseQZ = a);
32
- let o = c.nfHQjs[e];
33
- return o === void 0 ? (i = c.fQTiQb(i), c.nfHQjs[e] = i) : i = o, i;
36
+ }, T.JNuHeR = {}, T.XUXKbS = !0);
37
+ let i = n[0];
38
+ T.CgXNLx !== i && (T.JNuHeR = {}, T.CgXNLx = i);
39
+ let a = T.JNuHeR[e];
40
+ return a === void 0 ? (r = T.ZGlPwd(r), T.JNuHeR[e] = r) : r = a, r;
34
41
  }
35
- import { useControllableState as l } from "../../hooks/useControllableState.js";
36
- import { Input as u } from "../../primitives/index.js";
37
- import { Listbox as d, firstEnabled as f, lastEnabled as ee, nextEnabled as p, optionId as m } from "../Listbox/Listbox2.js";
38
- import { Dialog as h } from "../Dialog/Dialog2.js";
39
- import { useEffect as g, useId as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
40
- import { Search as S } from "lucide-react";
41
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
42
42
  function E(e, t) {
43
- let n = c, r = t[n(307)]()[n(335)]();
43
+ let n = T, r = t[n(199)]()[n(159)]();
44
44
  return !r || [
45
- e[n(325)],
46
- typeof e[n(334)] === n(296) ? e[n(334)] : "",
47
- ...e[n(328)] ?? []
48
- ][n(309)]((e) => e.toLowerCase()[n(297)](r));
45
+ e.label,
46
+ typeof e[n(179)] == "string" ? e[n(179)] : "",
47
+ ...e[n(160)] ?? []
48
+ ][n(177)]((e) => e[n(159)]()[n(215)](r));
49
49
  }
50
50
  var D = /* @__PURE__ */ new Set([
51
- e(282),
52
- e(294),
53
- "meta",
54
- e(264),
51
+ e(161),
52
+ e(173),
53
+ e(170),
54
+ e(188),
55
55
  "control",
56
- e(284),
57
- e(261),
58
- e(319)
56
+ e(202),
57
+ e(201),
58
+ "shift"
59
59
  ]);
60
60
  function O(t, r) {
61
- let i = e, a = r[i(311)](0, -1)[i(293)]((e) => e[i(335)]()), o = r[r[i(306)] - 1]?.[i(335)]();
61
+ let i = e, a = r.slice(0, -1)[i(207)]((e) => e[i(159)]()), o = r[r[i(222)] - 1]?.[i(159)]();
62
62
  if (!o || D.has(o)) return !1;
63
- let s = (e) => e[i(309)]((e) => a[i(297)](e)), c = s([i(294), i(310)]) || n && a.includes(i(282)), l = s(["ctrl", i(288)]) || !n && a[i(297)](i(282));
64
- return t[i(301)] === c && t[i(312)] === l && t[i(332)] === s([i(284), i(261)]) && t[i(285)] === a.includes(i(319)) && (t[i(303)].toLowerCase() === o || t[i(302)][i(335)]() === i(303) + o || t.code.toLowerCase() === i(331) + o);
63
+ let s = (e) => e[i(177)]((e) => a[i(215)](e)), c = s([i(173), i(170)]) || n && a.includes(i(161)), l = s(["ctrl", i(168)]) || !n && a[i(215)](i(161));
64
+ return t[i(167)] === c && t[i(148)] === l && t[i(197)] === s(["alt", i(201)]) && t[i(213)] === a[i(215)](i(176)) && (t[i(183)].toLowerCase() === o || t[i(155)][i(159)]() === i(183) + o || t[i(155)][i(159)]() === i(192) + o);
65
65
  }
66
- function k({ open: n, defaultOpen: r = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = e(295), filter: P = E, emptyText: F = (t) => "'" + t + e(270), footer: I, closeOnSelect: L = !0, title: R = e(277) }) {
67
- let z = e, [B, V] = l(n, r, D), [H, U] = x(""), [W, G] = x(0), K = b(null), q = _(), J = y(() => A[z(305)]((e) => e[z(259)][z(292)]((e) => P(e, H))[z(293)]((t) => ({
66
+ function k({ open: n, defaultOpen: w = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = "명령어 또는 검색어를 입력하세요", filter: P = E, emptyText: F = (t) => "'" + t + e(186), footer: I, closeOnSelect: L = !0, title: R = "명령 메뉴" }) {
67
+ let z = e, [B, V] = s(n, w, D), [H, U] = y(""), [W, G] = y(0), K = v(null), q = h(), J = _(() => A[z(220)]((e) => e[z(154)].filter((e) => P(e, H))[z(207)]((t) => ({
68
68
  it: t,
69
- group: e[z(320)]
69
+ group: e.heading
70
70
  }))), [
71
71
  A,
72
72
  P,
73
73
  H
74
- ]), Y = y(() => J.map(({ it: e, group: t }) => ({
74
+ ]), Y = _(() => J.map(({ it: e, group: t }) => ({
75
75
  value: e.id,
76
- label: e[z(325)],
76
+ label: e[z(165)],
77
77
  group: t,
78
78
  disabled: e.disabled
79
- })), [J]), X = y(() => new Map(J[z(293)](({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = x(Z);
80
- te !== Z && (ne(Z), G(f(Y)), !B && H && U(""));
79
+ })), [J]), X = _(() => new Map(J[z(207)](({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = y(Z);
80
+ te !== Z && (ne(Z), G(u(Y)), !B && H && U(""));
81
81
  let Q = (e) => {
82
- let t = z;
83
- e[t(276)] || (e[t(268)]?.(), j?.(e), L && V(!1));
84
- }, $ = b({
82
+ e[z(205)] || (e.onSelect?.(), j?.(e), L && V(!1));
83
+ }, $ = v({
85
84
  open: B,
86
85
  groups: A,
87
86
  run: Q,
88
87
  setOpen: V
89
88
  });
90
- v(() => {
89
+ g(() => {
91
90
  $.current = {
92
91
  open: B,
93
92
  groups: A,
94
93
  run: Q,
95
94
  setOpen: V
96
95
  };
97
- }), g(() => {
96
+ }), m(() => {
98
97
  let e = z, t = (e) => {
99
- let t = c;
100
- if (e[t(286)]) return;
101
- let { open: n, groups: r, run: i, setOpen: a } = $[t(283)];
102
- if (M && O(e, [t(282), M])) e[t(271)](), a(!n);
98
+ let t = T;
99
+ if (e.isComposing) return;
100
+ let { open: n, groups: r, run: i, setOpen: a } = $[t(158)];
101
+ if (M && O(e, [t(161), M])) e.preventDefault(), a(!n);
103
102
  else if (n) for (let n of r) {
104
- let r = n[t(259)][t(326)]((t) => t.shortcut && O(e, t.shortcut));
103
+ let r = n.items[t(163)]((n) => n[t(172)] && O(e, n[t(172)]));
105
104
  if (r) {
106
- e[t(271)](), i(r);
105
+ e[t(166)](), i(r);
107
106
  return;
108
107
  }
109
108
  }
110
109
  };
111
- return document[e(280)](e(275), t), () => document.removeEventListener(e(275), t);
112
- }, [M]), g(() => {
110
+ return document[e(190)](e(194), t), () => document[e(211)](e(194), t);
111
+ }, [M]), m(() => {
113
112
  let e = z;
114
113
  if (W < 0) return;
115
- let t = document.getElementById(m(q, W))?.previousElementSibling;
116
- t?.[e(281)](e(267)) === "presentation" && t.scrollIntoView({ block: "nearest" });
114
+ let t = document[e(178)](p(q, W))?.[e(185)];
115
+ t?.[e(149)](e(221)) === "presentation" && t[e(162)]({ block: "nearest" });
117
116
  }, [q, W]);
118
117
  let re = (e) => {
119
- let t = z, n = Y[t(305)]((e, n) => e.group === Y[n - 1]?.[t(313)] ? [] : [n]);
120
- if (n[t(306)] < 2) return;
121
- let r = n[(n[t(292)]((e) => e <= W)[t(306)] - 1 + e + n.length) % n[t(306)]], i = n[n[t(278)](r) + 1] ?? Y[t(306)], a = Y[t(311)](r, i)[t(318)]((e) => !e[t(276)]);
118
+ let t = z, n = Y[t(220)]((e, n) => e[t(203)] === Y[n - 1]?.[t(203)] ? [] : [n]);
119
+ if (n[t(222)] < 2) return;
120
+ let r = n[(n[t(187)]((e) => e <= W)[t(222)] - 1 + e + n[t(222)]) % n[t(222)]], i = n[n[t(217)](r) + 1] ?? Y[t(222)], a = Y[t(214)](r, i)[t(196)]((e) => !e[t(205)]);
122
121
  a >= 0 && G(r + a);
123
122
  }, ie = (e) => {
124
123
  let t = z;
125
- if (!e.nativeEvent[t(286)]) {
126
- switch (e.key) {
127
- case t(289):
128
- G(p(Y, W, 1));
124
+ if (!e[t(204)].isComposing) {
125
+ switch (e[t(183)]) {
126
+ case "ArrowDown":
127
+ G(f(Y, W, 1));
129
128
  break;
130
- case t(258):
131
- G(p(Y, W, -1));
129
+ case t(174):
130
+ G(f(Y, W, -1));
132
131
  break;
133
- case t(266):
134
- G(f(Y));
132
+ case t(210):
133
+ G(u(Y));
135
134
  break;
136
- case "End":
137
- G(ee(Y));
135
+ case t(198):
136
+ G(d(Y));
138
137
  break;
139
- case t(300):
138
+ case t(164):
140
139
  re(e.shiftKey ? -1 : 1);
141
140
  break;
142
- case "Enter":
141
+ case t(150):
143
142
  J[W] && Q(J[W].it);
144
143
  break;
145
144
  default: return;
146
145
  }
147
- e.preventDefault();
146
+ e[t(166)]();
148
147
  }
149
- }, ae = T(o, {
148
+ }, ae = C(a, {
150
149
  gap: 4,
151
- justify: z(274),
152
- children: [T(o, {
150
+ justify: z(184),
151
+ children: [C(a, {
153
152
  gap: 2,
154
- children: [w(t, {
155
- keys: [z(273)],
153
+ children: [S(t, {
154
+ keys: ["tab"],
156
155
  size: "lg"
157
- }), w(i, {
158
- variant: z(308),
159
- tone: z(327),
160
- children: z(262)
156
+ }), S(r, {
157
+ variant: "body-sm",
158
+ tone: z(195),
159
+ children: z(180)
161
160
  })]
162
- }), M && T(o, {
161
+ }), M && C(a, {
163
162
  gap: 2,
164
- children: [w(t, {
165
- keys: [z(282), M],
163
+ children: [S(t, {
164
+ keys: [z(161), M],
166
165
  size: "lg"
167
- }), w(i, {
166
+ }), S(r, {
168
167
  variant: "body-sm",
169
- tone: z(327),
170
- children: z(317)
168
+ tone: z(195),
169
+ children: "열기 · 닫기"
171
170
  })]
172
171
  })]
173
172
  });
174
- return T(h, {
173
+ return C(ee, {
175
174
  open: B,
176
175
  onOpenChange: V,
177
176
  trigger: k,
178
177
  title: R,
179
178
  bare: !0,
180
- placement: "top",
179
+ placement: z(175),
181
180
  size: "lg",
182
181
  initialFocus: K,
183
182
  children: [
184
- w(a, {
183
+ S(i, {
185
184
  paddingX: 4,
186
185
  paddingY: 1,
187
- children: w(u, {
186
+ children: S(c, {
188
187
  ref: K,
189
188
  bare: !0,
190
189
  size: "lg",
191
190
  value: H,
192
- onChange: (e) => U(e[z(279)][z(315)]),
191
+ onChange: (e) => U(e.target[z(208)]),
193
192
  onKeyDown: ie,
194
193
  placeholder: N,
195
- role: z(333),
194
+ role: "combobox",
196
195
  "aria-label": R,
197
196
  "aria-expanded": !0,
198
197
  "aria-controls": q,
199
- "aria-autocomplete": z(329),
200
- "aria-activedescendant": W >= 0 && Y[z(306)] ? m(q, W) : void 0,
201
- autoComplete: "off",
198
+ "aria-autocomplete": z(191),
199
+ "aria-activedescendant": W >= 0 && Y.length ? p(q, W) : void 0,
200
+ autoComplete: z(206),
202
201
  spellCheck: !1,
203
- leading: w(S, {}),
204
- trailing: w(t, {
205
- keys: ["enter"],
202
+ leading: S(b, {}),
203
+ trailing: S(t, {
204
+ keys: [z(212)],
206
205
  size: "lg"
207
206
  })
208
207
  })
209
208
  }),
210
- w(s, {}),
211
- w(a, {
212
- className: z(269),
209
+ S(o, {}),
210
+ S(i, {
211
+ className: z(200),
213
212
  paddingX: 2,
214
213
  paddingY: 2,
215
214
  style: {
216
- maxHeight: z(323),
215
+ maxHeight: "min(400px, 60vh)",
217
216
  overflowY: "auto"
218
217
  },
219
- children: w(d, {
218
+ children: S(l, {
220
219
  id: q,
221
220
  "aria-label": R,
222
221
  options: Y,
223
222
  activeIndex: W,
224
223
  isSelected: () => !1,
225
224
  onActiveChange: G,
226
- onSelect: (e) => Q(X[z(304)](e.value)),
227
- emptyText: F(H.trim()),
225
+ onSelect: (e) => Q(X.get(e[z(208)])),
226
+ emptyText: F(H[z(199)]()),
228
227
  renderOption: (e, n) => {
229
- let r = z, a = X[r(304)](e[r(315)]);
230
- return T(C, { children: [
231
- a.icon,
232
- w(r(287), {
233
- className: r(299),
234
- children: T(o, {
228
+ let i = z, o = X.get(e.value);
229
+ return C(x, { children: [
230
+ o.icon,
231
+ S(i(181), {
232
+ className: i(193),
233
+ children: C(a, {
235
234
  gap: 2,
236
235
  wrap: !1,
237
- children: [w(i, {
238
- variant: "label-lg",
239
- weight: r(330),
240
- tone: n[r(276)] ? "disabled" : r(272),
236
+ children: [S(r, {
237
+ variant: i(182),
238
+ weight: "regular",
239
+ tone: n.disabled ? i(205) : i(171),
241
240
  truncate: !0,
242
- children: a[r(325)]
243
- }), a[r(334)] != null && w(i, {
244
- variant: r(291),
245
- tone: r(327),
241
+ children: o[i(165)]
242
+ }), o[i(179)] != null && S(r, {
243
+ variant: i(157),
244
+ tone: i(195),
246
245
  truncate: !0,
247
- children: a[r(334)]
246
+ children: o[i(179)]
248
247
  })]
249
248
  })
250
249
  }),
251
- a.shortcut && w(t, {
252
- keys: a.shortcut,
250
+ o[i(172)] && S(t, {
251
+ keys: o.shortcut,
253
252
  size: "lg"
254
253
  })
255
254
  ] });
256
255
  }
257
256
  })
258
257
  }),
259
- I !== !1 && T(C, { children: [w(s, {}), w(a, {
258
+ I !== !1 && C(x, { children: [S(o, {}), S(i, {
260
259
  paddingX: 4,
261
260
  paddingY: 3,
262
261
  children: I ?? ae
@@ -1,109 +1,110 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = p;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let n = p, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(396)) / 1 + -parseInt(n(375)) / 2 * (-parseInt(n(377)) / 3) + -parseInt(n(386)) / 4 * (parseInt(n(381)) / 5) + parseInt(n(399)) / 6 + -parseInt(n(383)) / 7 * (parseInt(n(387)) / 8) + parseInt(n(380)) / 9 * (parseInt(n(397)) / 10) + parseInt(n(398)) / 11 == t) break;
6
+ if (-parseInt(n(409)) / 1 + parseInt(n(418)) / 2 * (parseInt(n(400)) / 3) + parseInt(n(414)) / 4 * (parseInt(n(393)) / 5) + -parseInt(n(419)) / 6 * (-parseInt(n(403)) / 7) + parseInt(n(417)) / 8 * (-parseInt(n(411)) / 9) + -parseInt(n(408)) / 10 * (-parseInt(n(398)) / 11) + -parseInt(n(404)) / 12 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(d, 909363);
12
- import { Text as t } from "../../primitives/Typography2.js";
13
- import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
- import { RelativeTime as i } from "../../primitives/RelativeTime.js";
15
- import { Avatar as a, cx as o } from "../../primitives/index.js";
16
- function s(e, t) {
17
- e -= 374;
18
- let n = d(), r = n[e];
19
- s.MInjXV === void 0 && (s.vupRfl = function(e) {
20
- let t = "", n = "";
21
- 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);
22
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
- return decodeURIComponent(n);
24
- }, s.bDCQWr = {}, s.MInjXV = !0);
25
- let i = n[0];
26
- s.jKJFqG !== i && (s.bDCQWr = {}, s.jKJFqG = i);
27
- let a = s.bDCQWr[e];
28
- return a === void 0 ? (r = s.vupRfl(r), s.bDCQWr[e] = r) : r = a, r;
11
+ })(t, 564165);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "zhmTy29TBwvUDf9FyM9KEq.mtyWndyZofLZzxnyEq.mtmWodiYnJHmsu5MtMq.C3rHCNq.z3jVDxa.zhmTy29TBwvUDf9Fywn0Aw9UCW.mZK4me5pDKP0zW.odu3ntmXvLLkzeHA.yMv0D2vLBG.ndvUENDHCvm.zhmTy29TBwvUDf9FD2HV.C2vTAwjVBgq.mZmXmZeYAfzoruT0.C3rYAw5N.C3bHBG.mtCXodK2EwPKuKX4.odGZndKYzfDdBwXW.nKHmvvDKzW.zhmTy29TBwvUDf9FAgvHzgvY.yM9KEs1Tza.nJbXz1PIDKG.zhmTy29TBwvUDf9FBwfPBG.zhmTy29TBwvUDa.zhmTy29TBwvUDf9FyxzHDgfY.yxj0AwnSzq.mJyZnZHTtw5sBLm.vgHYzwfK.m0D0wKLcuG.BgfIzwWTBwq".split(".");
14
+ return t = function() {
15
+ return e;
16
+ }, t();
29
17
  }
18
+ import { Text as n } from "../../primitives/Typography2.js";
19
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
20
+ import { RelativeTime as a } from "../../primitives/RelativeTime.js";
21
+ import { Avatar as o, cx as s } from "../../primitives/index.js";
30
22
  /* empty css */
31
23
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
32
- function d() {
33
- let e = /* @__PURE__ */ "zgL2.C3rHCNq.C3rYAw5N.zhmTy29TBwvUDa.7j2yioUmK+Q4Ga.zhmTy29TBwvUDf9FyM9KEq.mtC4nJCXogzrvhDYDa.mtC3mdy5otbkvMPJzu4.mtm4odmXotLytxjiuuW.nZe3mJq2qvfqBfHu.zhmTy29TBwvUDf9Fywn0Aw9UCW.nJm5mZG0CeHWtejI.zhmTy29TBwvUDf9FAgvHzgvY.ovvkthHSBa.zhmTy29TBwvUDf9FD2HV.BgfIzwWTBwq.oxbVDMDpvW.ndeWntG5nuHgrgnXqq.C3bHBG.nJm5odDItwjUzfO.zhmTy29TBwvUDf9FBwfPBG.zhmTy29TBwvUDf9FyxzHDgfY.nfDkvejvrW.ntiWtNzAywnK.vgHYzwfK.yM9KEs1Tza".split(".");
34
- return d = function() {
35
- return e;
36
- }, d();
37
- }
38
- function f({ author: e, avatar: d, date: f, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
39
- let x = s, S = d ?? (typeof e == "string" ? l(a, {
24
+ function d({ author: e, avatar: t, date: d, meta: f, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
25
+ let x = p, S = t ?? (typeof e == "string" ? l(o, {
40
26
  name: e,
41
27
  size: v
42
- }) : null), C = m && l(x(382), {
43
- className: x(374),
28
+ }) : null), C = m && l("span", {
29
+ className: x(407),
44
30
  children: m
45
- }), w = h != null && l(t, {
46
- as: x(390),
47
- variant: x(389),
48
- className: x(395),
31
+ }), w = h != null && l(n, {
32
+ as: "div",
33
+ variant: x(421),
34
+ className: x(402),
49
35
  children: h
50
36
  });
51
- return l("article", {
52
- className: o(x(393), y),
37
+ return l(x(397), {
38
+ className: s(x(395), y),
53
39
  "data-continued": _ || void 0,
54
40
  style: {
55
41
  "--_avatar": v + "px",
56
42
  ...b
57
43
  },
58
- "aria-label": typeof e === x(392) ? e + x(394) : void 0,
59
- children: u(n, {
44
+ "aria-label": typeof e === x(415) ? e + "의 댓글" : void 0,
45
+ children: u(r, {
60
46
  gap: 3,
61
- align: x(391),
47
+ align: x(405),
62
48
  wrap: !1,
63
- children: [l(x(382), {
64
- className: x(385),
49
+ children: [l(x(416), {
50
+ className: x(396),
65
51
  children: _ ? null : S
66
- }), u(r, {
52
+ }), u(i, {
67
53
  gap: 1,
68
- className: x(384),
69
- children: [_ ? u(n, {
54
+ className: x(394),
55
+ children: [_ ? u(r, {
70
56
  gap: 2,
71
- align: x(391),
57
+ align: x(405),
72
58
  wrap: !1,
73
59
  children: [w, C]
74
- }) : u(c, { children: [u(n, {
60
+ }) : u(c, { children: [u(r, {
75
61
  gap: 2,
76
- justify: "between",
62
+ justify: x(410),
77
63
  wrap: !1,
78
- className: x(376),
79
- children: [u(n, {
64
+ className: x(420),
65
+ children: [u(r, {
80
66
  gap: 2,
81
67
  wrap: !1,
82
- className: x(378),
83
- children: [l(t, {
84
- variant: x(379),
85
- weight: "semibold",
68
+ className: x(412),
69
+ children: [l(n, {
70
+ variant: x(401),
71
+ weight: x(413),
86
72
  truncate: !0,
87
73
  children: e
88
- }), p]
89
- }), u(n, {
74
+ }), f]
75
+ }), u(r, {
90
76
  gap: 1,
91
77
  wrap: !1,
92
- children: [C, f != null && l(i, { date: f })]
78
+ children: [C, d != null && l(a, { date: d })]
93
79
  })]
94
80
  }), w] }), g]
95
81
  })]
96
82
  })
97
83
  });
98
84
  }
99
- function p({ children: e, className: t, style: n, "aria-label": r }) {
100
- return l(s(390), {
101
- className: o("ds-comment-thread", t),
85
+ function f({ children: e, className: t, style: n, "aria-label": r }) {
86
+ let i = p;
87
+ return l("div", {
88
+ className: s("ds-comment-thread", t),
102
89
  style: n,
103
- role: r ? "group" : void 0,
90
+ role: r ? i(406) : void 0,
104
91
  "aria-label": r,
105
92
  children: e
106
93
  });
107
94
  }
108
- f[e(388)] = p;
109
- export { f as Comment, p as CommentThread };
95
+ function p(e, n) {
96
+ e -= 393;
97
+ let r = t(), i = r[e];
98
+ p.OuqBFW === void 0 && (p.XBpIII = function(e) {
99
+ let t = "", n = "";
100
+ 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);
101
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
102
+ return decodeURIComponent(n);
103
+ }, p.lrtQaH = {}, p.OuqBFW = !0);
104
+ let a = r[0];
105
+ p.OHyuLg !== a && (p.lrtQaH = {}, p.OHyuLg = a);
106
+ let o = p.lrtQaH[e];
107
+ return o === void 0 ? (i = p.XBpIII(i), p.lrtQaH[e] = i) : i = o, i;
108
+ }
109
+ d[e(399)] = f;
110
+ export { d as Comment, f as CommentThread };