@iamfiro/design 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,248 +1,262 @@
1
1
  "use client";
2
- const e = k;
2
+ const e = u;
3
3
  (function(e, t) {
4
- let n = k, r = e();
4
+ let n = u, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(440)) / 1 + parseInt(n(410)) / 2 + -parseInt(n(455)) / 3 + parseInt(n(431)) / 4 + parseInt(n(421)) / 5 * (parseInt(n(411)) / 6) + -parseInt(n(460)) / 7 * (-parseInt(n(438)) / 8) + -parseInt(n(413)) / 9 * (parseInt(n(405)) / 10) == t) break;
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;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(r, 205646);
12
- import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
13
- function r() {
14
- let e = /* @__PURE__ */ "BwfW.zMLSDgvY.zMXHDe1HCa.A2v5D29Yzhm.AxndB21WB3nPBMC.BMvHCMvZDa.otm0otC1uhjRAKvu.DgvYDgLHCNK.ywX0s2v5.z2v0rwXLBwvUDej5swq.Bwv0yq.BMf0AxzLrxzLBNq.C2HPzNq.B25tzwXLy3q.C2HPzNrlzxK.yM9KEs1Tza.odC4mtGWqMDbA25Y.AxrLBxm.rw5K.66Qf66c5ioUPLoUjTa.y21K.C3rYAw5N.zgLZywjSzwq.nZjbB1z6s3e.y29Kzq.mtKXmdq2zMnXte5Q.DgfI.C29Tzq.Bwv0yuTLEq.DgfYz2v0.z3jVDxa.66Qf66c57jA0ioUyKoUkLcdQSOdSG4NSLRtRPBWG7j6f66cL7zwy7is47jQu.DhjPBq.z2v0.AgfZ.zgvMyxvSDa.BgfIzwWTBgC.y29UDhjVBa.CMvNDwXHCG.vgfI.nJeXnJG1AKXAvhPh.ywX0.7is57iwyioYDToUpMq.Dg9mB3DLCKnHC2u.zMLUzeLUzgv4.mtCXotqXsMzUAK1f.C2XPy2u.y3rYBa.CM9Szq.qxjYB3DvCa.A2v5.BgvUz3rO.C2HVCNrJDxq.zMLUza.Dg9W.y3rYBeTLEq.yxv0BW.ChjLDMvUDerLzMf1Bhq.zgLNAxq.BgLZDa.BgfIzwW.yM9KEs1ZBq.sg9Tzq.y29TyM9IB3G.rw50zxi.Aw5JBhvKzxm.AgLUDa.ChjLC2vUDgf0Aw9U.zhmTC2nYB2XS.nZb0ugHrzNm.B3b0Aw9U.AwnVBG.ChjLDMLVDxnfBgvTzw50u2LIBgLUzW.C2nYB2XSsw50B1zPzxC.nJe5nZHND2fiwgO.nKzNvvfICq.Bw9K.nZq1odnTCgHwu28.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa".split(".");
15
- return r = function() {
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() {
16
15
  return e;
17
- }, r();
16
+ }, t();
18
17
  }
18
+ import { Kbd as n, isMac as r } from "../../primitives/Kbd2.js";
19
19
  import { Text as i } from "../../primitives/Typography2.js";
20
20
  import { Box as a, Inline as o, Separator as s } from "../../primitives/Layout2.js";
21
21
  import { useControllableState as c } from "../../hooks/useControllableState.js";
22
22
  import { Input as l } from "../../primitives/index.js";
23
- import { Listbox as u, firstEnabled as d, lastEnabled as ee, nextEnabled as f, optionId as p } from "../Listbox/Listbox2.js";
24
- import { Dialog as m } from "../Dialog/Dialog2.js";
25
- import { useEffect as h, useId as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
26
- import { Search as x } from "lucide-react";
27
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
28
- function T(e, t) {
29
- let n = k, r = t[n(447)]().toLowerCase();
23
+ function u(e, n) {
24
+ e -= 473;
25
+ let r = t(), i = r[e];
26
+ u.oqKxHG === void 0 && (u.KBntyh = function(e) {
27
+ let t = "", n = "";
28
+ 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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
+ 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;
36
+ }
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
+ function E(e, t) {
43
+ let n = u, r = t[n(541)]().toLowerCase();
30
44
  return !r || [
31
45
  e.label,
32
- typeof e[n(481)] === n(436) ? e[n(481)] : "",
33
- ...e[n(418)] ?? []
34
- ][n(442)]((e) => e[n(458)]()[n(480)](r));
46
+ typeof e[n(506)] == "string" ? e[n(506)] : "",
47
+ ...e.keywords ?? []
48
+ ][n(498)]((e) => e[n(523)]()[n(542)](r));
35
49
  }
36
- var E = /* @__PURE__ */ new Set([
37
- e(412),
38
- e(435),
39
- e(425),
40
- e(462),
41
- e(452),
42
- e(456),
43
- e(406),
44
- e(427)
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)
45
59
  ]);
46
- function D(t, r) {
47
- let i = e, a = r[i(461)](0, -1).map((e) => e.toLowerCase()), o = r[r[i(466)] - 1]?.[i(458)]();
48
- if (!o || E[i(449)](o)) return !1;
49
- let s = (e) => e[i(442)]((e) => a[i(480)](e)), c = s(["cmd", i(425)]) || n && a[i(480)](i(412)), l = s([i(462), i(452)]) || !n && a[i(480)](i(412));
50
- return t[i(443)] === c && t[i(470)] === l && t[i(423)] === s(["alt", "option"]) && t[i(429)] === a[i(480)](i(427)) && (t[i(465)][i(458)]() === o || t.code[i(458)]() === i(465) + o || t[i(439)].toLowerCase() === i(473) + o);
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);
51
65
  }
52
- function O({ open: n, defaultOpen: r = !1, onOpenChange: E, trigger: O, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = e(446), filter: P = T, emptyText: F = (t) => "'" + t + e(414), footer: I, closeOnSelect: L = !0, title: R = e(434) }) {
53
- let z = e, [B, V] = c(n, r, E), [H, U] = b(""), [W, G] = b(0), K = y(null), q = g(), J = v(() => A[z(417)]((e) => e[z(432)][z(416)]((e) => P(e, H)).map((t) => ({
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) => ({
54
68
  it: t,
55
69
  group: e.heading
56
70
  }))), [
57
71
  A,
58
72
  P,
59
73
  H
60
- ]), Y = v(() => J[z(415)](({ it: e, group: t }) => ({
74
+ ]), Y = y(() => J.map(({ it: e, group: t }) => ({
61
75
  value: e.id,
62
- label: e[z(475)],
76
+ label: e[z(504)],
63
77
  group: t,
64
- disabled: e[z(437)]
65
- })), [J]), X = v(() => new Map(J[z(415)](({ it: e }) => [e.id, e])), [J]), Z = B + ":" + H, [te, ne] = b(Z);
66
- te !== Z && (ne(Z), G(d(Y)), !B && H && U(""));
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(""));
67
81
  let Q = (e) => {
68
82
  let t = z;
69
- e[t(437)] || (e[t(428)]?.(), j?.(e), L && V(!1));
70
- }, $ = y({
83
+ e[t(514)] || (e[t(485)]?.(), j?.(e), L && V(!1));
84
+ }, $ = b({
71
85
  open: B,
72
86
  groups: A,
73
87
  run: Q,
74
88
  setOpen: V
75
89
  });
76
- _(() => {
90
+ v(() => {
77
91
  $.current = {
78
92
  open: B,
79
93
  groups: A,
80
94
  run: Q,
81
95
  setOpen: V
82
96
  };
83
- }), h(() => {
84
- let e = (e) => {
85
- let t = k;
86
- if (e.isComposing) return;
87
- let { open: n, groups: r, run: i, setOpen: a } = $.current;
88
- if (M && D(e, [t(412), M])) e[t(472)](), a(!n);
97
+ }), g(() => {
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);
89
103
  else if (n) for (let n of r) {
90
- let r = n.items[t(468)]((n) => n[t(467)] && D(e, n[t(467)]));
104
+ let r = n[t(502)][t(513)]((n) => n[t(475)] && O(e, n[t(475)]));
91
105
  if (r) {
92
- e[t(472)](), i(r);
106
+ e[t(508)](), i(r);
93
107
  return;
94
108
  }
95
109
  }
96
110
  };
97
- return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
98
- }, [M]), h(() => {
111
+ return document[e(486)]("keydown", t), () => document[e(511)](e(481), t);
112
+ }, [M]), g(() => {
99
113
  let e = z;
100
114
  if (W < 0) return;
101
- let t = document[e(424)](p(q, W))?.[e(408)];
102
- t?.getAttribute(e(463)) === e(482) && t[e(409)]({ block: e(420) });
115
+ let t = document.getElementById(m(q, W))?.[e(547)];
116
+ t?.getAttribute(e(478)) === e(491) && t[e(528)]({ block: "nearest" });
103
117
  }, [q, W]);
104
118
  let re = (e) => {
105
- let t = z, n = Y[t(417)]((e, n) => e[t(445)] === Y[n - 1]?.[t(445)] ? [] : [n]);
106
- if (n[t(466)] < 2) return;
107
- let r = n[(n.filter((e) => e <= W).length - 1 + e + n.length) % n.length], i = n[n.indexOf(r) + 1] ?? Y[t(466)], a = Y.slice(r, i)[t(459)]((e) => !e[t(437)]);
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)]);
108
122
  a >= 0 && G(r + a);
109
123
  }, ie = (e) => {
110
124
  let t = z;
111
- if (!e[t(426)][t(419)]) {
112
- switch (e[t(465)]) {
113
- case "ArrowDown":
114
- G(f(Y, W, 1));
125
+ if (!e[t(473)][t(536)]) {
126
+ switch (e[t(546)]) {
127
+ case t(543):
128
+ G(p(Y, W, 1));
115
129
  break;
116
- case t(464):
117
- G(f(Y, W, -1));
130
+ case "ArrowUp":
131
+ G(p(Y, W, -1));
118
132
  break;
119
- case t(477):
120
- G(d(Y));
133
+ case t(548):
134
+ G(f(Y));
121
135
  break;
122
- case t(433):
136
+ case "End":
123
137
  G(ee(Y));
124
138
  break;
125
- case t(454):
139
+ case t(534):
126
140
  re(e.shiftKey ? -1 : 1);
127
141
  break;
128
- case t(479):
142
+ case t(484):
129
143
  J[W] && Q(J[W].it);
130
144
  break;
131
145
  default: return;
132
146
  }
133
- e[t(472)]();
147
+ e.preventDefault();
134
148
  }
135
- }, ae = w(o, {
149
+ }, ae = T(o, {
136
150
  gap: 4,
137
151
  justify: "between",
138
- children: [w(o, {
152
+ children: [T(o, {
139
153
  gap: 2,
140
- children: [C(t, {
141
- keys: [z(441)],
154
+ children: [w(n, {
155
+ keys: [z(540)],
142
156
  size: "lg"
143
- }), C(i, {
144
- variant: z(476),
157
+ }), w(i, {
158
+ variant: z(482),
145
159
  tone: "tertiary",
146
- children: z(457)
160
+ children: "섹션 이동"
147
161
  })]
148
- }), M && w(o, {
162
+ }), M && T(o, {
149
163
  gap: 2,
150
- children: [C(t, {
151
- keys: [z(412), M],
164
+ children: [w(n, {
165
+ keys: ["mod", M],
152
166
  size: "lg"
153
- }), C(i, {
167
+ }), w(i, {
154
168
  variant: "body-sm",
155
- tone: z(422),
156
- children: "열기 · 닫기"
169
+ tone: z(530),
170
+ children: z(501)
157
171
  })]
158
172
  })]
159
173
  });
160
- return w(m, {
174
+ return T(h, {
161
175
  open: B,
162
176
  onOpenChange: V,
163
- trigger: O,
177
+ trigger: k,
164
178
  title: R,
165
179
  bare: !0,
166
- placement: z(469),
180
+ placement: z(507),
167
181
  size: "lg",
168
182
  initialFocus: K,
169
183
  children: [
170
- C(a, {
184
+ w(a, {
171
185
  paddingX: 4,
172
186
  paddingY: 1,
173
- children: C(l, {
187
+ children: w(l, {
174
188
  ref: K,
175
189
  bare: !0,
176
190
  size: "lg",
177
191
  value: H,
178
- onChange: (e) => U(e[z(444)].value),
192
+ onChange: (e) => U(e.target.value),
179
193
  onKeyDown: ie,
180
194
  placeholder: N,
181
- role: z(478),
195
+ role: z(545),
182
196
  "aria-label": R,
183
197
  "aria-expanded": !0,
184
198
  "aria-controls": q,
185
- "aria-autocomplete": z(474),
186
- "aria-activedescendant": W >= 0 && Y[z(466)] ? p(q, W) : void 0,
187
- autoComplete: "off",
199
+ "aria-autocomplete": z(538),
200
+ "aria-activedescendant": W >= 0 && Y[z(487)] ? m(q, W) : void 0,
201
+ autoComplete: z(479),
188
202
  spellCheck: !1,
189
- leading: C(x, {}),
190
- trailing: C(t, {
203
+ leading: w(S, {}),
204
+ trailing: w(n, {
191
205
  keys: ["enter"],
192
206
  size: "lg"
193
207
  })
194
208
  })
195
209
  }),
196
- C(s, {}),
197
- C(a, {
198
- className: z(404),
210
+ w(s, {}),
211
+ w(a, {
212
+ className: z(496),
199
213
  paddingX: 2,
200
214
  paddingY: 2,
201
215
  style: {
202
- maxHeight: "min(400px, 60vh)",
203
- overflowY: z(471)
216
+ maxHeight: z(509),
217
+ overflowY: z(515)
204
218
  },
205
- children: C(u, {
219
+ children: w(d, {
206
220
  id: q,
207
221
  "aria-label": R,
208
222
  options: Y,
209
223
  activeIndex: W,
210
224
  isSelected: () => !1,
211
225
  onActiveChange: G,
212
- onSelect: (e) => Q(X[z(448)](e.value)),
213
- emptyText: F(H[z(447)]()),
214
- renderOption: (e, n) => {
215
- let r = z, a = X.get(e.value);
216
- return w(S, { children: [
217
- a[r(407)],
218
- C("span", {
219
- className: "ds-option__text",
220
- children: w(o, {
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)]);
230
+ return T(C, { children: [
231
+ a.icon,
232
+ w(r(549), {
233
+ className: r(493),
234
+ children: T(o, {
221
235
  gap: 2,
222
236
  wrap: !1,
223
- children: [C(i, {
224
- variant: r(451),
225
- weight: r(453),
226
- tone: n[r(437)] ? r(437) : r(450),
237
+ children: [w(i, {
238
+ variant: "label-lg",
239
+ weight: r(553),
240
+ tone: t[r(514)] ? r(514) : r(521),
227
241
  truncate: !0,
228
- children: a[r(475)]
229
- }), a[r(481)] != null && C(i, {
230
- variant: r(430),
231
- tone: r(422),
242
+ children: a[r(504)]
243
+ }), a[r(506)] != null && w(i, {
244
+ variant: r(518),
245
+ tone: r(530),
232
246
  truncate: !0,
233
- children: a[r(481)]
247
+ children: a.hint
234
248
  })]
235
249
  })
236
250
  }),
237
- a[r(467)] && C(t, {
238
- keys: a[r(467)],
251
+ a[r(475)] && w(n, {
252
+ keys: a[r(475)],
239
253
  size: "lg"
240
254
  })
241
255
  ] });
242
256
  }
243
257
  })
244
258
  }),
245
- I !== !1 && w(S, { children: [C(s, {}), C(a, {
259
+ I !== !1 && T(C, { children: [w(s, {}), w(a, {
246
260
  paddingX: 4,
247
261
  paddingY: 3,
248
262
  children: I ?? ae
@@ -250,18 +264,4 @@ function O({ open: n, defaultOpen: r = !1, onOpenChange: E, trigger: O, groups:
250
264
  ]
251
265
  });
252
266
  }
253
- function k(e, t) {
254
- e -= 404;
255
- let n = r(), i = n[e];
256
- k.hOVPPV === void 0 && (k.kVJbIl = function(e) {
257
- let t = "", n = "";
258
- 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);
259
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
260
- return decodeURIComponent(n);
261
- }, k.rfMBvB = {}, k.hOVPPV = !0);
262
- let a = n[0];
263
- k.XwXHpp !== a && (k.rfMBvB = {}, k.XwXHpp = a);
264
- let o = k.rfMBvB[e];
265
- return o === void 0 ? (i = k.kVJbIl(i), k.rfMBvB[e] = i) : i = o, i;
266
- }
267
- export { O as CommandMenu, T as defaultCommandFilter };
267
+ export { k as CommandMenu, E as defaultCommandFilter };
@@ -1,134 +1,110 @@
1
1
  "use client";
2
- function e() {
3
- let t = [
4
- "yMv0D2vLBG",
5
- "vgHYzwfK",
6
- "mtHjB1PeEMi",
7
- "zhmTy29TBwvUDc10AhjLywq",
8
- "odu2mJaWEwr4t0Lu",
9
- "mJu5nZaZwMrOB3np",
10
- "mtCWDKnhwevi",
11
- "mZe5ow5nDhfZqG",
12
- "mZG0mtrfAgDuu00",
13
- "zhmTy29TBwvUDf9FyM9KEq",
14
- "zhmTy29TBwvUDf9FyxzHDgfY",
15
- "C3rHCNq",
16
- "mJrNu0Dvyuy",
17
- "zhmTy29TBwvUDf9FBwfPBG",
18
- "mJyZmJK0mfb6z3DIqq",
19
- "C3rYAw5N",
20
- "mZqWohPXrePmsa",
21
- "7j2yioUmK+Q4Ga",
22
- "nZe5nM1Qt0XXrG",
23
- "zhmTy29TBwvUDf9Fywn0Aw9UCW",
24
- "zgL2",
25
- "C3bHBG",
26
- "ndK4nte2n2H1B2zTCW"
27
- ];
28
- return e = function() {
29
- return t;
30
- }, e();
31
- }
32
- const t = c;
2
+ const e = d;
33
3
  (function(e, t) {
34
- let n = c, r = e();
4
+ let n = d, r = e();
35
5
  for (;;) try {
36
- if (-parseInt(n(116)) / 1 + parseInt(n(119)) / 2 * (-parseInt(n(123)) / 3) + -parseInt(n(129)) / 4 * (parseInt(n(117)) / 5) + -parseInt(n(127)) / 6 * (-parseInt(n(118)) / 7) + parseInt(n(115)) / 8 * (parseInt(n(136)) / 9) + -parseInt(n(125)) / 10 + parseInt(n(133)) / 11 == t) break;
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;
37
7
  r.push(r.shift());
38
8
  } catch {
39
9
  r.push(r.shift());
40
10
  }
41
- })(e, 189004);
42
- import { Text as n } from "../../primitives/Typography2.js";
43
- import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
44
- import { RelativeTime as a } from "../../primitives/RelativeTime.js";
45
- import { Avatar as o, cx as s } from "../../primitives/index.js";
46
- function c(t, n) {
47
- t -= 115;
48
- let r = e(), i = r[t];
49
- c.dgdAkM === void 0 && (c.uytGiv = function(e) {
50
- let t = "", n = "";
51
- 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);
52
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
53
- return decodeURIComponent(n);
54
- }, c.VMHHPN = {}, c.dgdAkM = !0);
55
- let a = r[0];
56
- c.kBNJmQ !== a && (c.VMHHPN = {}, c.kBNJmQ = a);
57
- let o = c.VMHHPN[t];
58
- return o === void 0 ? (i = c.uytGiv(i), c.VMHHPN[t] = i) : i = o, i;
59
- }
11
+ })(f, 111483);
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";
60
16
  /* empty css */
61
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
62
- function f({ author: e, avatar: t, date: f, meta: p, actions: m, children: h, footer: g, continued: _, avatarSize: v = 28, className: y, style: b }) {
63
- let x = c, S = t ?? (typeof e === x(126) ? u(o, {
17
+ 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, {
64
20
  name: e,
65
21
  size: v
66
- }) : null), C = m && u("span", {
67
- className: x(130),
22
+ }) : null), C = m && c(x(237), {
23
+ className: x(227),
68
24
  children: m
69
- }), w = h != null && u(n, {
70
- as: x(131),
71
- variant: "body-md",
72
- className: x(120),
25
+ }), w = h != null && c(t, {
26
+ as: "div",
27
+ variant: x(228),
28
+ className: x(218),
73
29
  children: h
74
30
  });
75
- return u("article", {
76
- className: s("ds-comment", y),
31
+ return c("article", {
32
+ className: o(x(230), y),
77
33
  "data-continued": _ || void 0,
78
34
  style: {
79
35
  "--_avatar": v + "px",
80
36
  ...b
81
37
  },
82
- "aria-label": typeof e === x(126) ? e + x(128) : void 0,
83
- children: d(r, {
38
+ "aria-label": typeof e == "string" ? e + "의 댓글" : void 0,
39
+ children: l(n, {
84
40
  gap: 3,
85
- align: x(122),
41
+ align: x(242),
86
42
  wrap: !1,
87
- children: [u(x(132), {
88
- className: x(121),
43
+ children: [c(x(237), {
44
+ className: x(224),
89
45
  children: _ ? null : S
90
- }), d(i, {
46
+ }), l(r, {
91
47
  gap: 1,
92
- className: x(124),
93
- children: [_ ? d(r, {
48
+ className: x(238),
49
+ children: [_ ? l(n, {
94
50
  gap: 2,
95
- align: x(122),
51
+ align: x(242),
96
52
  wrap: !1,
97
53
  children: [w, C]
98
- }) : d(l, { children: [d(r, {
54
+ }) : l(s, { children: [l(n, {
99
55
  gap: 2,
100
- justify: x(134),
56
+ justify: x(234),
101
57
  wrap: !1,
102
- className: "ds-comment__header",
103
- children: [d(r, {
58
+ className: x(244),
59
+ children: [l(n, {
104
60
  gap: 2,
105
61
  wrap: !1,
106
- className: "ds-comment__who",
107
- children: [u(n, {
108
- variant: "label-md",
109
- weight: "semibold",
62
+ className: x(241),
63
+ children: [c(t, {
64
+ variant: x(226),
65
+ weight: x(225),
110
66
  truncate: !0,
111
67
  children: e
112
68
  }), p]
113
- }), d(r, {
69
+ }), l(n, {
114
70
  gap: 1,
115
71
  wrap: !1,
116
- children: [C, f != null && u(a, { date: f })]
72
+ children: [C, f != null && c(i, { date: f })]
117
73
  })]
118
74
  }), w] }), g]
119
75
  })]
120
76
  })
121
77
  });
122
78
  }
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
+ }
123
99
  function p({ children: e, className: t, style: n, "aria-label": r }) {
124
- let i = c;
125
- return u(i(131), {
126
- className: s(i(137), t),
100
+ let i = d;
101
+ return c(i(222), {
102
+ className: o(i(243), t),
127
103
  style: n,
128
- role: r ? "group" : void 0,
104
+ role: r ? i(232) : void 0,
129
105
  "aria-label": r,
130
106
  children: e
131
107
  });
132
108
  }
133
- f[t(135)] = p;
134
- export { f as Comment, p as CommentThread };
109
+ u[e(239)] = p;
110
+ export { u as Comment, p as CommentThread };