@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
@@ -1,262 +1,262 @@
1
1
  "use client";
2
- const e = u;
2
+ const e = m;
3
3
  (function(e, t) {
4
- let n = u, r = e();
4
+ let n = m, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(554)) / 1 * (-parseInt(n(519)) / 2) + parseInt(n(495)) / 3 * (parseInt(n(552)) / 4) + parseInt(n(477)) / 5 + -parseInt(n(544)) / 6 * (parseInt(n(510)) / 7) + -parseInt(n(520)) / 8 * (parseInt(n(505)) / 9) + -parseInt(n(512)) / 10 * (parseInt(n(497)) / 11) + parseInt(n(525)) / 12 * (-parseInt(n(490)) / 13) == t) break;
6
+ if (parseInt(n(141)) / 1 * (-parseInt(n(148)) / 2) + -parseInt(n(165)) / 3 * (-parseInt(n(198)) / 4) + parseInt(n(202)) / 5 + parseInt(n(166)) / 6 * (parseInt(n(172)) / 7) + -parseInt(n(152)) / 8 * (parseInt(n(162)) / 9) + parseInt(n(208)) / 10 + parseInt(n(191)) / 11 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(t, 662480);
12
- function t() {
13
- let e = /* @__PURE__ */ "BMf0AxzLrxzLBNq.C2HPzNq.C2HVCNrJDxq.z2v0.ntC3odCXnwPLr3nOCa.CM9Szq.B2zM.y29Kzq.A2v5zg93BG.yM9KEs1ZBq.y29UDhjVBa.rw50zxi.B25tzwXLy3q.ywrKrxzLBNrmAxn0zw5LCG.BgvUz3rO.y3rYBa.AgfZ.mtiZodq3mtbxvejvCxq.ChjLC2vUDgf0Aw9U.y3rYBeTLEq.zhmTB3b0Aw9Ux190zxH0.z3jVDxa.ndiWnJm2AKHltKLW.zhmTC2nYB2XS.mtCXmty3n0nduLz4uq.C29Tzq.zMLUzeLUzgv4.zMLSDgvY.7jE06RIWimk3ioUlQ+Q4Sa.AxrLBxm.y3vYCMvUDa.BgfIzwW.ndvssxL4ruC.AgLUDa.Dg9W.ChjLDMvUDerLzMf1Bhq.BwLUkdqWmhb4lca2mhzOkq.mtyXndqYneL0yufXAa.CMvTB3zLrxzLBNrmAxn0zw5LCG.mtbgteLrrvu.zMLUza.zgLZywjSzwq.yxv0BW.C2XPy2u.B3b0Aw9U.yM9KEs1Tza.mLL4vuDjyG.mJeWnfbuzgXpzW.zgvMyxvSDa.ywX0.Dg9mB3DLCKnHC2u.Aw5KzxHpzG.mtjPv2fQBNm.zMXHDe1HCa.C2HPzNrlzxK.C2nYB2XSsw50B1zPzxC.Bwv0yuTLEq.DgvYDgLHCNK.y21K.ywX0s2v5.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.vgfI.DMfSDwu.AxndB21WB3nPBMC.Bwv0yq.BgLZDa.Bw9K.DgfI.DhjPBq.Aw5JBhvKzxm.qxjYB3DeB3DU.mtjAsLvSAvy.y29TyM9IB3G.A2v5.ChjLDMLVDxnfBgvTzw50u2LIBgLUzW.sg9Tzq.C3bHBG.BwfW.zgLNAxq.mtzjAgX6sw4.CMvNDwXHCG.nte2nZq1rujLwuTY".split(".");
14
- return t = function() {
15
- return e;
16
- }, t();
17
- }
18
- import { Kbd as n, isMac as r } from "../../primitives/Kbd2.js";
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
- import { useControllableState as c } from "../../hooks/useControllableState.js";
22
- import { Input as l } from "../../primitives/index.js";
23
- function u(e, n) {
24
- e -= 473;
25
- let r = t(), i = r[e];
26
- u.oqKxHG === void 0 && (u.KBntyh = function(e) {
11
+ })(S, 236674);
12
+ import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
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
+ function m(e, t) {
20
+ e -= 140;
21
+ let n = S(), r = n[e];
22
+ m.CWfICB === void 0 && (m.XbLmXp = function(e) {
27
23
  let t = "", n = "";
28
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);
29
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
26
  return decodeURIComponent(n);
31
- }, u.bLjAfk = {}, u.oqKxHG = !0);
32
- let a = r[0];
33
- u.EbZXhY !== a && (u.bLjAfk = {}, u.EbZXhY = a);
34
- let o = u.bLjAfk[e];
35
- return o === void 0 ? (i = u.KBntyh(i), u.bLjAfk[e] = i) : i = o, i;
27
+ }, m.DqVOAd = {}, m.CWfICB = !0);
28
+ let i = n[0];
29
+ m.agofbV !== i && (m.DqVOAd = {}, m.agofbV = i);
30
+ let a = m.DqVOAd[e];
31
+ return a === void 0 ? (r = m.XbLmXp(r), m.DqVOAd[e] = r) : r = a, r;
32
+ }
33
+ import { useEffect as h, useId as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
34
+ import { Search as x } from "lucide-react";
35
+ function S() {
36
+ let e = /* @__PURE__ */ "ovzttMLjvq.C2HVCNrJDxq.Dg9mB3DLCKnHC2u.m2zwquLXva.nMzrq2PruG.C2HPzNrlzxK.Bwv0yq.yM9KEs1ZBq.BMf0AxzLrxzLBNq.zgvMyxvSDa.mtyYmtCZowjcBw9XDW.C3rYAw5N.A2v5D29Yzhm.Dg9W.zMLUza.BgfIzwW.qxjYB3DvCa.yxv0BW.z2v0qxr0CMLIDxrL.AxrLBxm.DMfSDwu.y21K.BwfW.ywX0.C2nYB2XSsw50B1zPzxC.BgLZDa.z3jVDxa.B3b0Aw9U.Bw9K.ndC0mte5og16Ahrnra.zMLSDgvY.Aw5JBhvKzxm.C29Tzq.vgfI.zMXHDe1HCa.C2XPy2u.ndyZmZK2wuLOshjS.y3vYCMvUDa.z2v0.yMv0D2vLBG.oduWmJaWD0XdBK5A.Aw5KzxHpzG.zhmTC2nYB2XS.C3bHBG.AgvHzgLUzW.y29Kzq.mtmWoty2mePJz3nIAq.BwLUkdqWmhb4lca2mhzOkq.A2v5zg93BG.y3rYBeTLEq.ChjLC2vUDgf0Aw9U.AxndB21WB3nPBMC.y29UDhjVBa.zMLUzeLUzgv4.BgvUz3rO.A2v5.BMvHCMvZDa.zgLZywjSzwq.ChjLDMLVDxnfBgvTzw50u2LIBgLUzW.mZCYnJaZBKLLqurg.ChjLDMvUDerLzMf1Bhq.DgvYDgLHCNK.Bwv0yuTLEq.AwnVBG.7jE06RIWimk3ioUlQ+Q4Sa.CMvTB3zLrxzLBNrmAxn0zw5LCG.mNrnEMflvG.AgfZ.DhjPBq.CM9Szq.mZC2mJe4ngLKDfDtCW.DgfI.y29TyM9IB3G.C2HPzNq.66Qf66c5ioUPLoUjTa.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.y3rYBa.66Qf66c57jA0ioUyKoUkLcdQSOdSG4NSLRtRPBWG7j6f66cL7zwy7is47jQu.AgLUDa.ywX0s2v5".split(".");
37
+ return S = function() {
38
+ return e;
39
+ }, S();
36
40
  }
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
41
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
42
42
  function E(e, t) {
43
- let n = u, r = t[n(541)]().toLowerCase();
43
+ let n = m, r = t[n(150)]()[n(164)]();
44
44
  return !r || [
45
- e.label,
46
- typeof e[n(506)] == "string" ? e[n(506)] : "",
47
- ...e.keywords ?? []
48
- ][n(498)]((e) => e[n(523)]()[n(542)](r));
45
+ e[n(177)],
46
+ typeof e[n(160)] === n(173) ? e[n(160)] : "",
47
+ ...e[n(174)] ?? []
48
+ ][n(194)]((e) => e.toLowerCase()[n(193)](r));
49
49
  }
50
50
  var D = /* @__PURE__ */ new Set([
51
- e(539),
52
- "cmd",
53
- e(537),
54
- e(488),
55
- e(483),
56
- e(522),
57
- e(517),
58
- e(474)
51
+ "mod",
52
+ e(183),
53
+ e(168),
54
+ e(158),
55
+ e(214),
56
+ e(185),
57
+ e(189),
58
+ e(155)
59
59
  ]);
60
- function O(t, n) {
61
- let i = e, a = n[i(516)](0, -1)[i(550)]((e) => e[i(523)]()), o = n[n.length - 1]?.[i(523)]();
62
- if (!o || D[i(489)](o)) return !1;
63
- let s = (e) => e.some((e) => a[i(542)](e)), c = s([i(531), i(537)]) || r && a[i(542)](i(539)), l = s(["ctrl", i(483)]) || !r && a[i(542)](i(539));
64
- return t[i(529)] === c && t[i(492)] === l && t[i(532)] === s([i(522), "option"]) && t[i(527)] === a[i(542)](i(474)) && (t[i(546)][i(523)]() === o || t[i(480)][i(523)]() === "key" + o || t.code.toLowerCase() === i(551) + o);
60
+ function O(t, r) {
61
+ let i = e, a = r[i(197)](0, -1)[i(184)]((e) => e.toLowerCase()), o = r[r[i(216)] - 1]?.toLowerCase();
62
+ if (!o || D[i(149)](o)) return !1;
63
+ let s = (e) => e.some((e) => a[i(193)](e)), c = s(["cmd", i(168)]) || n && a.includes(i(190)), l = s([i(158), i(214)]) || !n && a[i(193)](i(190));
64
+ return t[i(144)] === c && t[i(211)] === l && t[i(161)] === s([i(185), i(189)]) && t[i(167)] === a[i(193)]("shift") && (t.key.toLowerCase() === o || t[i(207)][i(164)]() === i(217) + o || t[i(207)].toLowerCase() === "digit" + o);
65
65
  }
66
- function k({ open: t, defaultOpen: r = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = "명령어 또는 검색어를 입력하세요", filter: P = E, emptyText: F = (t) => "'" + t + e(533), footer: I, closeOnSelect: L = !0, title: R = "명령 메뉴" }) {
67
- let z = e, [B, V] = c(t, r, D), [H, U] = x(""), [W, G] = x(0), K = b(null), q = _(), J = y(() => A[z(526)]((e) => e[z(502)][z(500)]((e) => P(e, H))[z(550)]((t) => ({
66
+ function k({ open: n, defaultOpen: S = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = e(159), filter: P = E, emptyText: F = (t) => "'" + t + e(157), footer: I, closeOnSelect: L = !0, title: R = e(156) }) {
67
+ let z = e, [B, V] = s(n, S, D), [H, U] = b(""), [W, G] = b(0), K = y(null), q = g(), J = v(() => A.flatMap((e) => e[z(181)][z(192)]((e) => P(e, H))[z(184)]((t) => ({
68
68
  it: t,
69
- group: e.heading
69
+ group: e[z(206)]
70
70
  }))), [
71
71
  A,
72
72
  P,
73
73
  H
74
- ]), Y = y(() => J.map(({ it: e, group: t }) => ({
74
+ ]), Y = v(() => J.map(({ it: e, group: t }) => ({
75
75
  value: e.id,
76
- label: e[z(504)],
76
+ label: e[z(177)],
77
77
  group: t,
78
- disabled: e[z(514)]
79
- })), [J]), X = y(() => new Map(J.map(({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = x(Z);
80
- te !== Z && (ne(Z), G(f(Y)), !B && H && U(""));
78
+ disabled: e[z(219)]
79
+ })), [J]), X = v(() => new Map(J[z(184)](({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = b(Z);
80
+ te !== Z && (ne(Z), G(u(Y)), !B && H && U(""));
81
81
  let Q = (e) => {
82
- let t = z;
83
- e[t(514)] || (e[t(485)]?.(), j?.(e), L && V(!1));
84
- }, $ = b({
82
+ e[z(219)] || (e.onSelect?.(), j?.(e), L && V(!1));
83
+ }, $ = y({
85
84
  open: B,
86
85
  groups: A,
87
86
  run: Q,
88
87
  setOpen: V
89
88
  });
90
- v(() => {
91
- $.current = {
89
+ _(() => {
90
+ let e = z;
91
+ $[e(199)] = {
92
92
  open: B,
93
93
  groups: A,
94
94
  run: Q,
95
95
  setOpen: V
96
96
  };
97
- }), g(() => {
97
+ }), h(() => {
98
98
  let e = z, t = (e) => {
99
- let t = u;
100
- if (e[t(536)]) return;
101
- let { open: n, groups: r, run: i, setOpen: a } = $[t(503)];
102
- if (M && O(e, [t(539), M])) e.preventDefault(), a(!n);
99
+ let t = m;
100
+ if (e.isComposing) return;
101
+ let { open: n, groups: r, run: i, setOpen: a } = $.current;
102
+ if (M && O(e, [t(190), M])) e[t(142)](), a(!n);
103
103
  else if (n) for (let n of r) {
104
- let r = n[t(502)][t(513)]((n) => n[t(475)] && O(e, n[t(475)]));
104
+ let r = n.items[t(176)]((n) => n[t(163)] && O(e, n.shortcut));
105
105
  if (r) {
106
- e[t(508)](), i(r);
106
+ e[t(142)](), i(r);
107
107
  return;
108
108
  }
109
109
  }
110
110
  };
111
- return document[e(486)]("keydown", t), () => document[e(511)](e(481), t);
112
- }, [M]), g(() => {
111
+ return document.addEventListener(e(210), t), () => document[e(147)]("keydown", t);
112
+ }, [M]), h(() => {
113
113
  let e = z;
114
114
  if (W < 0) return;
115
- let t = document.getElementById(m(q, W))?.[e(547)];
116
- t?.getAttribute(e(478)) === e(491) && t[e(528)]({ block: "nearest" });
115
+ let t = document.getElementById(p(q, W))?.[e(140)];
116
+ t?.[e(180)](e(151)) === e(212) && t[e(186)]({ block: e(218) });
117
117
  }, [q, W]);
118
118
  let re = (e) => {
119
- let t = z, n = Y[t(526)]((e, n) => e[t(494)] === Y[n - 1]?.group ? [] : [n]);
120
- if (n[t(487)] < 2) return;
121
- let r = n[(n[t(500)]((e) => e <= W)[t(487)] - 1 + e + n[t(487)]) % n[t(487)]], i = n[n[t(524)](r) + 1] ?? Y[t(487)], a = Y[t(516)](r, i)[t(499)]((e) => !e[t(514)]);
119
+ let t = z, n = Y[t(196)]((e, n) => e[t(188)] === Y[n - 1]?.[t(188)] ? [] : [n]);
120
+ if (n[t(216)] < 2) return;
121
+ let r = n[(n.filter((e) => e <= W)[t(216)] - 1 + e + n[t(216)]) % n[t(216)]], i = n[n[t(203)](r) + 1] ?? Y[t(216)], a = Y[t(197)](r, i)[t(215)]((e) => !e[t(219)]);
122
122
  a >= 0 && G(r + a);
123
123
  }, ie = (e) => {
124
124
  let t = z;
125
- if (!e[t(473)][t(536)]) {
126
- switch (e[t(546)]) {
127
- case t(543):
128
- G(p(Y, W, 1));
125
+ if (!e[t(170)][t(213)]) {
126
+ switch (e.key) {
127
+ case "ArrowDown":
128
+ G(f(Y, W, 1));
129
129
  break;
130
- case "ArrowUp":
131
- G(p(Y, W, -1));
130
+ case t(178):
131
+ G(f(Y, W, -1));
132
132
  break;
133
- case t(548):
134
- G(f(Y));
133
+ case "Home":
134
+ G(u(Y));
135
135
  break;
136
136
  case "End":
137
- G(ee(Y));
137
+ G(d(Y));
138
138
  break;
139
- case t(534):
139
+ case t(195):
140
140
  re(e.shiftKey ? -1 : 1);
141
141
  break;
142
- case t(484):
142
+ case "Enter":
143
143
  J[W] && Q(J[W].it);
144
144
  break;
145
145
  default: return;
146
146
  }
147
- e.preventDefault();
147
+ e[t(142)]();
148
148
  }
149
- }, ae = T(o, {
149
+ }, ae = T(a, {
150
150
  gap: 4,
151
- justify: "between",
152
- children: [T(o, {
151
+ justify: z(201),
152
+ children: [T(a, {
153
153
  gap: 2,
154
- children: [w(n, {
155
- keys: [z(540)],
154
+ children: [w(t, {
155
+ keys: [z(153)],
156
156
  size: "lg"
157
- }), w(i, {
158
- variant: z(482),
159
- tone: "tertiary",
157
+ }), w(r, {
158
+ variant: z(169),
159
+ tone: z(143),
160
160
  children: "섹션 이동"
161
161
  })]
162
- }), M && T(o, {
162
+ }), M && T(a, {
163
163
  gap: 2,
164
- children: [w(n, {
165
- keys: ["mod", M],
164
+ children: [w(t, {
165
+ keys: [z(190), M],
166
166
  size: "lg"
167
- }), w(i, {
167
+ }), w(r, {
168
168
  variant: "body-sm",
169
- tone: z(530),
170
- children: z(501)
169
+ tone: z(143),
170
+ children: z(146)
171
171
  })]
172
172
  })]
173
173
  });
174
- return T(h, {
174
+ return T(ee, {
175
175
  open: B,
176
176
  onOpenChange: V,
177
177
  trigger: k,
178
178
  title: R,
179
179
  bare: !0,
180
- placement: z(507),
180
+ placement: z(175),
181
181
  size: "lg",
182
182
  initialFocus: K,
183
183
  children: [
184
- w(a, {
184
+ w(i, {
185
185
  paddingX: 4,
186
186
  paddingY: 1,
187
- children: w(l, {
187
+ children: w(c, {
188
188
  ref: K,
189
189
  bare: !0,
190
190
  size: "lg",
191
191
  value: H,
192
- onChange: (e) => U(e.target.value),
192
+ onChange: (e) => U(e.target[z(182)]),
193
193
  onKeyDown: ie,
194
194
  placeholder: N,
195
- role: z(545),
195
+ role: z(154),
196
196
  "aria-label": R,
197
197
  "aria-expanded": !0,
198
198
  "aria-controls": q,
199
- "aria-autocomplete": z(538),
200
- "aria-activedescendant": W >= 0 && Y[z(487)] ? m(q, W) : void 0,
201
- autoComplete: z(479),
199
+ "aria-autocomplete": z(187),
200
+ "aria-activedescendant": W >= 0 && Y[z(216)] ? p(q, W) : void 0,
201
+ autoComplete: "off",
202
202
  spellCheck: !1,
203
- leading: w(S, {}),
204
- trailing: w(n, {
203
+ leading: w(x, {}),
204
+ trailing: w(t, {
205
205
  keys: ["enter"],
206
206
  size: "lg"
207
207
  })
208
208
  })
209
209
  }),
210
- w(s, {}),
211
- w(a, {
212
- className: z(496),
210
+ w(o, {}),
211
+ w(i, {
212
+ className: z(204),
213
213
  paddingX: 2,
214
214
  paddingY: 2,
215
215
  style: {
216
- maxHeight: z(509),
217
- overflowY: z(515)
216
+ maxHeight: z(209),
217
+ overflowY: z(179)
218
218
  },
219
- children: w(d, {
219
+ children: w(l, {
220
220
  id: q,
221
221
  "aria-label": R,
222
222
  options: Y,
223
223
  activeIndex: W,
224
224
  isSelected: () => !1,
225
225
  onActiveChange: G,
226
- onSelect: (e) => Q(X[z(476)](e[z(535)])),
227
- emptyText: F(H[z(541)]()),
228
- renderOption: (e, t) => {
229
- let r = z, a = X[r(476)](e[r(535)]);
226
+ onSelect: (e) => Q(X[z(200)](e[z(182)])),
227
+ emptyText: F(H[z(150)]()),
228
+ renderOption: (e, n) => {
229
+ let i = z, o = X[i(200)](e[i(182)]);
230
230
  return T(C, { children: [
231
- a.icon,
232
- w(r(549), {
233
- className: r(493),
234
- children: T(o, {
231
+ o[i(145)],
232
+ w(i(205), {
233
+ className: "ds-option__text",
234
+ children: T(a, {
235
235
  gap: 2,
236
236
  wrap: !1,
237
- children: [w(i, {
237
+ children: [w(r, {
238
238
  variant: "label-lg",
239
- weight: r(553),
240
- tone: t[r(514)] ? r(514) : r(521),
239
+ weight: "regular",
240
+ tone: n[i(219)] ? i(219) : i(171),
241
241
  truncate: !0,
242
- children: a[r(504)]
243
- }), a[r(506)] != null && w(i, {
244
- variant: r(518),
245
- tone: r(530),
242
+ children: o[i(177)]
243
+ }), o[i(160)] != null && w(r, {
244
+ variant: "body-md",
245
+ tone: i(143),
246
246
  truncate: !0,
247
- children: a.hint
247
+ children: o[i(160)]
248
248
  })]
249
249
  })
250
250
  }),
251
- a[r(475)] && w(n, {
252
- keys: a[r(475)],
251
+ o.shortcut && w(t, {
252
+ keys: o[i(163)],
253
253
  size: "lg"
254
254
  })
255
255
  ] });
256
256
  }
257
257
  })
258
258
  }),
259
- I !== !1 && T(C, { children: [w(s, {}), w(a, {
259
+ I !== !1 && T(C, { children: [w(o, {}), w(i, {
260
260
  paddingX: 4,
261
261
  paddingY: 3,
262
262
  children: I ?? ae
@@ -1,110 +1,135 @@
1
1
  "use client";
2
- const e = d;
3
2
  (function(e, t) {
4
- let n = d, r = e();
3
+ let n = f, r = e();
5
4
  for (;;) try {
6
- if (-parseInt(n(223)) / 1 + parseInt(n(219)) / 2 + parseInt(n(233)) / 3 * (-parseInt(n(221)) / 4) + parseInt(n(240)) / 5 + -parseInt(n(229)) / 6 * (parseInt(n(236)) / 7) + -parseInt(n(235)) / 8 + parseInt(n(231)) / 9 == t) break;
5
+ if (parseInt(n(385)) / 1 + parseInt(n(370)) / 2 + parseInt(n(379)) / 3 + -parseInt(n(375)) / 4 + -parseInt(n(383)) / 5 + parseInt(n(372)) / 6 * (parseInt(n(363)) / 7) + parseInt(n(373)) / 8 * (-parseInt(n(381)) / 9) == t) break;
7
6
  r.push(r.shift());
8
7
  } catch {
9
8
  r.push(r.shift());
10
9
  }
11
- })(f, 111483);
12
- import { Text as t } from "../../primitives/Typography2.js";
10
+ })(t, 341114);
11
+ import { Text as e } from "../../primitives/Typography2.js";
12
+ function t() {
13
+ let e = [
14
+ "z3jVDxa",
15
+ "7j2yioUmK+Q4Ga",
16
+ "zgL2",
17
+ "C3bHBG",
18
+ "yxj0AwnSzq",
19
+ "mtK0mtC0zKTpCNrb",
20
+ "C3rYAw5N",
21
+ "nLjVC3zQBW",
22
+ "ode2vM9SANzV",
23
+ "zhmTy29TBwvUDf9FyM9KEq",
24
+ "mJy4mdyWzgXIuurW",
25
+ "C3rHCNq",
26
+ "zhmTy29TBwvUDc10AhjLywq",
27
+ "zhmTy29TBwvUDf9FD2HV",
28
+ "mteXmZi2n1vWre1UyG",
29
+ "zhmTy29TBwvUDf9FyxzHDgfY",
30
+ "mtaYnZq0uLD1DKjk",
31
+ "zhmTy29TBwvUDa",
32
+ "ody2mJbjzgTwvwW",
33
+ "zhmTy29TBwvUDf9FAgvHzgvY",
34
+ "nti0oteYqMnuq2nh",
35
+ "BgfIzwWTBwq",
36
+ "zhmTy29TBwvUDf9Fywn0Aw9UCW",
37
+ "nde3nZu3oxrYEuPxsG",
38
+ "yM9KEs1Tza"
39
+ ];
40
+ return t = function() {
41
+ return e;
42
+ }, t();
43
+ }
13
44
  import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
45
  import { RelativeTime as i } from "../../primitives/RelativeTime.js";
15
46
  import { Avatar as a, cx as o } from "../../primitives/index.js";
16
47
  /* empty css */
17
48
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
18
- function u({ author: e, avatar: u, date: f, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
19
- let x = d, S = u ?? (typeof e === x(220) ? c(a, {
20
- name: e,
49
+ function u({ author: t, avatar: u, date: d, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
50
+ let x = f, S = u ?? (typeof t == "string" ? c(a, {
51
+ name: t,
21
52
  size: v
22
- }) : null), C = m && c(x(237), {
23
- className: x(227),
53
+ }) : null), C = m && c(x(368), {
54
+ className: x(362),
24
55
  children: m
25
- }), w = h != null && c(t, {
26
- as: "div",
27
- variant: x(228),
28
- className: x(218),
56
+ }), w = h != null && c(e, {
57
+ as: x(367),
58
+ variant: x(364),
59
+ className: x(374),
29
60
  children: h
30
61
  });
31
- return c("article", {
32
- className: o(x(230), y),
62
+ return c(x(369), {
63
+ className: o(x(382), y),
33
64
  "data-continued": _ || void 0,
34
65
  style: {
35
66
  "--_avatar": v + "px",
36
67
  ...b
37
68
  },
38
- "aria-label": typeof e == "string" ? e + "의 댓글" : void 0,
69
+ "aria-label": typeof t === x(371) ? t + x(366) : void 0,
39
70
  children: l(n, {
40
71
  gap: 3,
41
- align: x(242),
72
+ align: x(376),
42
73
  wrap: !1,
43
- children: [c(x(237), {
44
- className: x(224),
74
+ children: [c(x(368), {
75
+ className: x(380),
45
76
  children: _ ? null : S
46
77
  }), l(r, {
47
78
  gap: 1,
48
- className: x(238),
79
+ className: "ds-comment__main",
49
80
  children: [_ ? l(n, {
50
81
  gap: 2,
51
- align: x(242),
82
+ align: x(376),
52
83
  wrap: !1,
53
84
  children: [w, C]
54
85
  }) : l(s, { children: [l(n, {
55
86
  gap: 2,
56
- justify: x(234),
87
+ justify: "between",
57
88
  wrap: !1,
58
- className: x(244),
89
+ className: x(384),
59
90
  children: [l(n, {
60
91
  gap: 2,
61
92
  wrap: !1,
62
- className: x(241),
63
- children: [c(t, {
64
- variant: x(226),
65
- weight: x(225),
93
+ className: x(378),
94
+ children: [c(e, {
95
+ variant: x(361),
96
+ weight: "semibold",
66
97
  truncate: !0,
67
- children: e
98
+ children: t
68
99
  }), p]
69
100
  }), l(n, {
70
101
  gap: 1,
71
102
  wrap: !1,
72
- children: [C, f != null && c(i, { date: f })]
103
+ children: [C, d != null && c(i, { date: d })]
73
104
  })]
74
105
  }), w] }), g]
75
106
  })]
76
107
  })
77
108
  });
78
109
  }
79
- function d(e, t) {
80
- e -= 218;
81
- let n = f(), r = n[e];
82
- d.necMuX === void 0 && (d.dIdlSo = function(e) {
83
- let t = "", n = "";
84
- 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);
85
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
86
- return decodeURIComponent(n);
87
- }, d.DBshHa = {}, d.necMuX = !0);
88
- let i = n[0];
89
- d.QGQwiX !== i && (d.DBshHa = {}, d.QGQwiX = i);
90
- let a = d.DBshHa[e];
91
- return a === void 0 ? (r = d.dIdlSo(r), d.DBshHa[e] = r) : r = a, r;
92
- }
93
- function f() {
94
- let e = /* @__PURE__ */ "zhmTy29TBwvUDf9FAgvHzgvY.zhmTy29TBwvUDf9FyM9KEq.mZe1mZe2AxzcCu5q.C3rYAw5N.nti0nJHjvMLxrKm.zgL2.mtqYodKZBLziwMDv.zhmTy29TBwvUDf9FyxzHDgfY.C2vTAwjVBgq.BgfIzwWTBwq.zhmTy29TBwvUDf9Fywn0Aw9UCW.yM9KEs1Tza.nMPguMrSrq.zhmTy29TBwvUDa.mJK5odKZnuziCwngrq.z3jVDxa.mtvuBwn2Exm.yMv0D2vLBG.mtqWnJy3mNjMtK1kqG.mtmZntu0ne9fuwHzAG.C3bHBG.zhmTy29TBwvUDf9FBwfPBG.vgHYzwfK.otC4ntCWyMLoBwHI.zhmTy29TBwvUDf9FD2HV.C3rHCNq.zhmTy29TBwvUDc10AhjLywq".split(".");
95
- return f = function() {
96
- return e;
97
- }, f();
98
- }
99
- function p({ children: e, className: t, style: n, "aria-label": r }) {
100
- let i = d;
101
- return c(i(222), {
102
- className: o(i(243), t),
110
+ function d({ children: e, className: t, style: n, "aria-label": r }) {
111
+ let i = f;
112
+ return c("div", {
113
+ className: o(i(377), t),
103
114
  style: n,
104
- role: r ? i(232) : void 0,
115
+ role: r ? i(365) : void 0,
105
116
  "aria-label": r,
106
117
  children: e
107
118
  });
108
119
  }
109
- u[e(239)] = p;
110
- export { u as Comment, p as CommentThread };
120
+ function f(e, n) {
121
+ e -= 361;
122
+ let r = t(), i = r[e];
123
+ f.CTrhvu === void 0 && (f.fhEnfP = function(e) {
124
+ let t = "", n = "";
125
+ 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);
126
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
127
+ return decodeURIComponent(n);
128
+ }, f.coBXTA = {}, f.CTrhvu = !0);
129
+ let a = r[0];
130
+ f.ashzlZ !== a && (f.coBXTA = {}, f.ashzlZ = a);
131
+ let o = f.coBXTA[e];
132
+ return o === void 0 ? (i = f.fhEnfP(i), f.coBXTA[e] = i) : i = o, i;
133
+ }
134
+ u.Thread = d;
135
+ export { u as Comment, d as CommentThread };