@iamfiro/design 0.3.0 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,248 +1,262 @@
1
1
  "use client";
2
- const e = k;
2
+ const e = c;
3
3
  (function(e, t) {
4
- let n = k, r = e();
4
+ let n = c, 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(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;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(r, 205646);
11
+ })(r, 968028);
12
12
  import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
13
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(".");
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
15
  return r = function() {
16
16
  return e;
17
17
  }, r();
18
18
  }
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
- import { useControllableState as c } from "../../hooks/useControllableState.js";
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();
21
+ function c(e, t) {
22
+ e -= 258;
23
+ let n = r(), i = n[e];
24
+ c.XCsMTM === void 0 && (c.fQTiQb = function(e) {
25
+ let t = "", n = "";
26
+ 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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
+ 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;
34
+ }
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
+ function E(e, t) {
43
+ let n = c, r = t[n(307)]()[n(335)]();
30
44
  return !r || [
31
- 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));
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));
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(282),
52
+ e(294),
53
+ "meta",
54
+ e(264),
55
+ "control",
56
+ e(284),
57
+ e(261),
58
+ e(319)
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, 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)]();
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);
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: 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) => ({
54
68
  it: t,
55
- group: e.heading
69
+ group: e[z(320)]
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(325)],
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.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(""));
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(276)] || (e[t(268)]?.(), 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 = 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);
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(259)][t(326)]((t) => t.shortcut && O(e, t.shortcut));
91
105
  if (r) {
92
- e[t(472)](), i(r);
106
+ e[t(271)](), 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(280)](e(275), t), () => document.removeEventListener(e(275), 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))?.previousElementSibling;
116
+ t?.[e(281)](e(267)) === "presentation" && t.scrollIntoView({ 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(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)]);
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.nativeEvent[t(286)]) {
126
+ switch (e.key) {
127
+ case t(289):
128
+ G(p(Y, W, 1));
115
129
  break;
116
- case t(464):
117
- G(f(Y, W, -1));
130
+ case t(258):
131
+ G(p(Y, W, -1));
118
132
  break;
119
- case t(477):
120
- G(d(Y));
133
+ case t(266):
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(300):
126
140
  re(e.shiftKey ? -1 : 1);
127
141
  break;
128
- case t(479):
142
+ case "Enter":
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
- justify: "between",
138
- children: [w(o, {
151
+ justify: z(274),
152
+ children: [T(o, {
139
153
  gap: 2,
140
- children: [C(t, {
141
- keys: [z(441)],
154
+ children: [w(t, {
155
+ keys: [z(273)],
142
156
  size: "lg"
143
- }), C(i, {
144
- variant: z(476),
145
- tone: "tertiary",
146
- children: z(457)
157
+ }), w(i, {
158
+ variant: z(308),
159
+ tone: z(327),
160
+ children: z(262)
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(t, {
165
+ keys: [z(282), 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(327),
170
+ children: z(317)
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: "top",
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(u, {
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[z(279)][z(315)]),
179
193
  onKeyDown: ie,
180
194
  placeholder: N,
181
- role: z(478),
195
+ role: z(333),
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,
199
+ "aria-autocomplete": z(329),
200
+ "aria-activedescendant": W >= 0 && Y[z(306)] ? m(q, W) : void 0,
187
201
  autoComplete: "off",
188
202
  spellCheck: !1,
189
- leading: C(x, {}),
190
- trailing: C(t, {
203
+ leading: w(S, {}),
204
+ trailing: w(t, {
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(269),
199
213
  paddingX: 2,
200
214
  paddingY: 2,
201
215
  style: {
202
- maxHeight: "min(400px, 60vh)",
203
- overflowY: z(471)
216
+ maxHeight: z(323),
217
+ overflowY: "auto"
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)]()),
226
+ onSelect: (e) => Q(X[z(304)](e.value)),
227
+ emptyText: F(H.trim()),
214
228
  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, {
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, {
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(330),
240
+ tone: n[r(276)] ? "disabled" : r(272),
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(325)]
243
+ }), a[r(334)] != null && w(i, {
244
+ variant: r(291),
245
+ tone: r(327),
232
246
  truncate: !0,
233
- children: a[r(481)]
247
+ children: a[r(334)]
234
248
  })]
235
249
  })
236
250
  }),
237
- a[r(467)] && C(t, {
238
- keys: a[r(467)],
251
+ a.shortcut && w(t, {
252
+ keys: a.shortcut,
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,119 +1,95 @@
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 = s;
33
3
  (function(e, t) {
34
- let n = c, r = e();
4
+ let n = s, 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(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;
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) {
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) {
50
20
  let t = "", n = "";
51
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);
52
22
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
53
23
  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;
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;
59
29
  }
60
30
  /* 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, {
31
+ 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, {
64
40
  name: e,
65
41
  size: v
66
- }) : null), C = m && u("span", {
67
- className: x(130),
42
+ }) : null), C = m && l(x(382), {
43
+ className: x(374),
68
44
  children: m
69
- }), w = h != null && u(n, {
70
- as: x(131),
71
- variant: "body-md",
72
- className: x(120),
45
+ }), w = h != null && l(t, {
46
+ as: x(390),
47
+ variant: x(389),
48
+ className: x(395),
73
49
  children: h
74
50
  });
75
- return u("article", {
76
- className: s("ds-comment", y),
51
+ return l("article", {
52
+ className: o(x(393), y),
77
53
  "data-continued": _ || void 0,
78
54
  style: {
79
55
  "--_avatar": v + "px",
80
56
  ...b
81
57
  },
82
- "aria-label": typeof e === x(126) ? e + x(128) : void 0,
83
- children: d(r, {
58
+ "aria-label": typeof e === x(392) ? e + x(394) : void 0,
59
+ children: u(n, {
84
60
  gap: 3,
85
- align: x(122),
61
+ align: x(391),
86
62
  wrap: !1,
87
- children: [u(x(132), {
88
- className: x(121),
63
+ children: [l(x(382), {
64
+ className: x(385),
89
65
  children: _ ? null : S
90
- }), d(i, {
66
+ }), u(r, {
91
67
  gap: 1,
92
- className: x(124),
93
- children: [_ ? d(r, {
68
+ className: x(384),
69
+ children: [_ ? u(n, {
94
70
  gap: 2,
95
- align: x(122),
71
+ align: x(391),
96
72
  wrap: !1,
97
73
  children: [w, C]
98
- }) : d(l, { children: [d(r, {
74
+ }) : u(c, { children: [u(n, {
99
75
  gap: 2,
100
- justify: x(134),
76
+ justify: "between",
101
77
  wrap: !1,
102
- className: "ds-comment__header",
103
- children: [d(r, {
78
+ className: x(376),
79
+ children: [u(n, {
104
80
  gap: 2,
105
81
  wrap: !1,
106
- className: "ds-comment__who",
107
- children: [u(n, {
108
- variant: "label-md",
82
+ className: x(378),
83
+ children: [l(t, {
84
+ variant: x(379),
109
85
  weight: "semibold",
110
86
  truncate: !0,
111
87
  children: e
112
88
  }), p]
113
- }), d(r, {
89
+ }), u(n, {
114
90
  gap: 1,
115
91
  wrap: !1,
116
- children: [C, f != null && u(a, { date: f })]
92
+ children: [C, f != null && l(i, { date: f })]
117
93
  })]
118
94
  }), w] }), g]
119
95
  })]
@@ -121,14 +97,13 @@ function f({ author: e, avatar: t, date: f, meta: p, actions: m, children: h, fo
121
97
  });
122
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
+ return l(s(390), {
101
+ className: o("ds-comment-thread", t),
127
102
  style: n,
128
103
  role: r ? "group" : void 0,
129
104
  "aria-label": r,
130
105
  children: e
131
106
  });
132
107
  }
133
- f[t(135)] = p;
108
+ f[e(388)] = p;
134
109
  export { f as Comment, p as CommentThread };