@iamfiro/design 0.3.2 → 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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,142 +1,142 @@
1
1
  "use client";
2
- const e = c;
2
+ const e = m;
3
3
  (function(e, t) {
4
- let n = c, r = e();
4
+ let n = m, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(265)) / 1 + -parseInt(n(336)) / 2 + parseInt(n(321)) / 3 * (-parseInt(n(263)) / 4) + parseInt(n(324)) / 5 * (-parseInt(n(260)) / 6) + parseInt(n(290)) / 7 + -parseInt(n(316)) / 8 * (parseInt(n(314)) / 9) + -parseInt(n(322)) / 10 * (-parseInt(n(298)) / 11) == t) break;
6
+ if (parseInt(n(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
- })(r, 968028);
11
+ })(S, 236674);
12
12
  import { Kbd as t, isMac as n } from "../../primitives/Kbd2.js";
13
- function r() {
14
- let e = /* @__PURE__ */ "zgvMyxvSDa.DgfI.yMv0D2vLBG.A2v5zg93BG.zgLZywjSzwq.66Qf66c5ioUPLoUjTa.Aw5KzxHpzG.DgfYz2v0.ywrKrxzLBNrmAxn0zw5LCG.z2v0qxr0CMLIDxrL.Bw9K.y3vYCMvUDa.ywX0.C2HPzNrlzxK.AxndB21WB3nPBMC.C3bHBG.y29UDhjVBa.qxjYB3DeB3DU.mtaYmJe5nJDxtKTzy0e.yM9KEs1Tza.zMLSDgvY.BwfW.y21K.66Qf66c57jA0ioUyKoUkLcdQSOdSG4NSLRtRPBWG7j6f66cL7zwy7is47jQu.C3rYAw5N.Aw5JBhvKzxm.mtqYmdfHy0H6Ag0.zhmTB3b0Aw9Ux190zxH0.vgfI.Bwv0yuTLEq.y29Kzq.A2v5.z2v0.zMXHDe1HCa.BgvUz3rO.DhjPBq.yM9KEs1ZBq.C29Tzq.Bwv0yq.C2XPy2u.y3rYBeTLEq.z3jVDxa.oxrrtLbmBa.DMfSDwu.ntaZodq0oe9ZqurfDq.7jE06RIWimk3ioUlQ+Q4Sa.zMLUzeLUzgv4.C2HPzNq.AgvHzgLUzW.mtu0mZe5mvvbtfjhDW.mZeYmtbLq1bKteG.BwLUkdqWmhb4lca2mhzOkq.mteWC3j3yKjV.BgfIzwW.zMLUza.DgvYDgLHCNK.A2v5D29Yzhm.BgLZDa.CMvNDwXHCG.zgLNAxq.ywX0s2v5.y29TyM9IB3G.AgLUDa.Dg9mB3DLCKnHC2u.mtC3nde5ohPhCujysq.qxjYB3DvCa.AxrLBxm.mJaZnte0CNjPuwD2.B3b0Aw9U.7is57iwyioYDToUpMq.ngnXuuPzCW.y3rYBa.mtC0mZK0nez4D0fOza.sg9Tzq.CM9Szq.B25tzwXLy3q.zhmTC2nYB2XS.j+YxKcdRP57RIPqG66Qf66c57j20ioYxHUYwToYALa.ChjLDMvUDerLzMf1Bhq".split(".");
15
- return r = function() {
16
- return e;
17
- }, r();
18
- }
19
- import { Text as i } from "../../primitives/Typography2.js";
20
- import { Box as a, Inline as o, Separator as s } from "../../primitives/Layout2.js";
21
- function c(e, t) {
22
- e -= 258;
23
- let n = r(), i = n[e];
24
- c.XCsMTM === void 0 && (c.fQTiQb = function(e) {
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) {
25
23
  let t = "", n = "";
26
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);
27
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
26
  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;
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();
34
40
  }
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
41
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
42
42
  function E(e, t) {
43
- let n = c, r = t[n(307)]()[n(335)]();
43
+ let n = m, r = t[n(150)]()[n(164)]();
44
44
  return !r || [
45
- e[n(325)],
46
- typeof e[n(334)] === n(296) ? e[n(334)] : "",
47
- ...e[n(328)] ?? []
48
- ][n(309)]((e) => e.toLowerCase()[n(297)](r));
45
+ e[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(282),
52
- e(294),
53
- "meta",
54
- e(264),
55
- "control",
56
- e(284),
57
- e(261),
58
- e(319)
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
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);
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: n, defaultOpen: r = !1, onOpenChange: D, trigger: k, groups: A, onSelect: j, shortcutKey: M = "k", placeholder: N = e(295), filter: P = E, emptyText: F = (t) => "'" + t + e(270), footer: I, closeOnSelect: L = !0, title: R = e(277) }) {
67
- let z = e, [B, V] = l(n, r, D), [H, U] = x(""), [W, G] = x(0), K = b(null), q = _(), J = y(() => A[z(305)]((e) => e[z(259)][z(292)]((e) => P(e, H))[z(293)]((t) => ({
66
+ function k({ open: n, defaultOpen: 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[z(320)]
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(325)],
76
+ label: e[z(177)],
77
77
  group: t,
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(""));
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(276)] || (e[t(268)]?.(), 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 = 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);
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(259)][t(326)]((t) => t.shortcut && O(e, t.shortcut));
104
+ let r = n.items[t(176)]((n) => n[t(163)] && O(e, n.shortcut));
105
105
  if (r) {
106
- e[t(271)](), i(r);
106
+ e[t(142)](), i(r);
107
107
  return;
108
108
  }
109
109
  }
110
110
  };
111
- return document[e(280)](e(275), t), () => document.removeEventListener(e(275), 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))?.previousElementSibling;
116
- t?.[e(281)](e(267)) === "presentation" && t.scrollIntoView({ 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(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)]);
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.nativeEvent[t(286)]) {
125
+ if (!e[t(170)][t(213)]) {
126
126
  switch (e.key) {
127
- case t(289):
128
- G(p(Y, W, 1));
127
+ case "ArrowDown":
128
+ G(f(Y, W, 1));
129
129
  break;
130
- case t(258):
131
- G(p(Y, W, -1));
130
+ case t(178):
131
+ G(f(Y, W, -1));
132
132
  break;
133
- case t(266):
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(300):
139
+ case t(195):
140
140
  re(e.shiftKey ? -1 : 1);
141
141
  break;
142
142
  case "Enter":
@@ -144,119 +144,119 @@ function k({ open: n, defaultOpen: r = !1, onOpenChange: D, trigger: k, groups:
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: z(274),
152
- children: [T(o, {
151
+ justify: z(201),
152
+ children: [T(a, {
153
153
  gap: 2,
154
154
  children: [w(t, {
155
- keys: [z(273)],
155
+ keys: [z(153)],
156
156
  size: "lg"
157
- }), w(i, {
158
- variant: z(308),
159
- tone: z(327),
160
- children: z(262)
157
+ }), w(r, {
158
+ variant: z(169),
159
+ tone: z(143),
160
+ children: "섹션 이동"
161
161
  })]
162
- }), M && T(o, {
162
+ }), M && T(a, {
163
163
  gap: 2,
164
164
  children: [w(t, {
165
- keys: [z(282), M],
165
+ keys: [z(190), M],
166
166
  size: "lg"
167
- }), w(i, {
167
+ }), w(r, {
168
168
  variant: "body-sm",
169
- tone: z(327),
170
- children: z(317)
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: "top",
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(u, {
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[z(279)][z(315)]),
192
+ onChange: (e) => U(e.target[z(182)]),
193
193
  onKeyDown: ie,
194
194
  placeholder: N,
195
- role: z(333),
195
+ role: z(154),
196
196
  "aria-label": R,
197
197
  "aria-expanded": !0,
198
198
  "aria-controls": q,
199
- "aria-autocomplete": z(329),
200
- "aria-activedescendant": W >= 0 && Y[z(306)] ? m(q, W) : void 0,
199
+ "aria-autocomplete": z(187),
200
+ "aria-activedescendant": W >= 0 && Y[z(216)] ? p(q, W) : void 0,
201
201
  autoComplete: "off",
202
202
  spellCheck: !1,
203
- leading: w(S, {}),
203
+ leading: w(x, {}),
204
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(269),
210
+ w(o, {}),
211
+ w(i, {
212
+ className: z(204),
213
213
  paddingX: 2,
214
214
  paddingY: 2,
215
215
  style: {
216
- maxHeight: z(323),
217
- overflowY: "auto"
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(304)](e.value)),
227
- emptyText: F(H.trim()),
226
+ onSelect: (e) => Q(X[z(200)](e[z(182)])),
227
+ emptyText: F(H[z(150)]()),
228
228
  renderOption: (e, n) => {
229
- let r = z, a = X[r(304)](e[r(315)]);
229
+ let i = z, o = X[i(200)](e[i(182)]);
230
230
  return T(C, { children: [
231
- a.icon,
232
- w(r(287), {
233
- className: r(299),
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(330),
240
- tone: n[r(276)] ? "disabled" : r(272),
239
+ weight: "regular",
240
+ tone: n[i(219)] ? i(219) : i(171),
241
241
  truncate: !0,
242
- children: a[r(325)]
243
- }), a[r(334)] != null && w(i, {
244
- variant: r(291),
245
- tone: r(327),
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[r(334)]
247
+ children: o[i(160)]
248
248
  })]
249
249
  })
250
250
  }),
251
- a.shortcut && w(t, {
252
- keys: a.shortcut,
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,109 +1,135 @@
1
1
  "use client";
2
- const e = s;
3
2
  (function(e, t) {
4
- let n = s, r = e();
3
+ let n = f, r = e();
5
4
  for (;;) try {
6
- if (-parseInt(n(396)) / 1 + -parseInt(n(375)) / 2 * (-parseInt(n(377)) / 3) + -parseInt(n(386)) / 4 * (parseInt(n(381)) / 5) + parseInt(n(399)) / 6 + -parseInt(n(383)) / 7 * (parseInt(n(387)) / 8) + parseInt(n(380)) / 9 * (parseInt(n(397)) / 10) + parseInt(n(398)) / 11 == t) break;
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
- })(d, 909363);
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
- function s(e, t) {
17
- e -= 374;
18
- let n = d(), r = n[e];
19
- s.MInjXV === void 0 && (s.vupRfl = function(e) {
20
- let t = "", n = "";
21
- for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
22
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
23
- return decodeURIComponent(n);
24
- }, s.bDCQWr = {}, s.MInjXV = !0);
25
- let i = n[0];
26
- s.jKJFqG !== i && (s.bDCQWr = {}, s.jKJFqG = i);
27
- let a = s.bDCQWr[e];
28
- return a === void 0 ? (r = s.vupRfl(r), s.bDCQWr[e] = r) : r = a, r;
29
- }
30
47
  /* empty css */
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, {
40
- name: e,
48
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
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,
41
52
  size: v
42
- }) : null), C = m && l(x(382), {
43
- className: x(374),
53
+ }) : null), C = m && c(x(368), {
54
+ className: x(362),
44
55
  children: m
45
- }), w = h != null && l(t, {
46
- as: x(390),
47
- variant: x(389),
48
- className: x(395),
56
+ }), w = h != null && c(e, {
57
+ as: x(367),
58
+ variant: x(364),
59
+ className: x(374),
49
60
  children: h
50
61
  });
51
- return l("article", {
52
- className: o(x(393), y),
62
+ return c(x(369), {
63
+ className: o(x(382), y),
53
64
  "data-continued": _ || void 0,
54
65
  style: {
55
66
  "--_avatar": v + "px",
56
67
  ...b
57
68
  },
58
- "aria-label": typeof e === x(392) ? e + x(394) : void 0,
59
- children: u(n, {
69
+ "aria-label": typeof t === x(371) ? t + x(366) : void 0,
70
+ children: l(n, {
60
71
  gap: 3,
61
- align: x(391),
72
+ align: x(376),
62
73
  wrap: !1,
63
- children: [l(x(382), {
64
- className: x(385),
74
+ children: [c(x(368), {
75
+ className: x(380),
65
76
  children: _ ? null : S
66
- }), u(r, {
77
+ }), l(r, {
67
78
  gap: 1,
68
- className: x(384),
69
- children: [_ ? u(n, {
79
+ className: "ds-comment__main",
80
+ children: [_ ? l(n, {
70
81
  gap: 2,
71
- align: x(391),
82
+ align: x(376),
72
83
  wrap: !1,
73
84
  children: [w, C]
74
- }) : u(c, { children: [u(n, {
85
+ }) : l(s, { children: [l(n, {
75
86
  gap: 2,
76
87
  justify: "between",
77
88
  wrap: !1,
78
- className: x(376),
79
- children: [u(n, {
89
+ className: x(384),
90
+ children: [l(n, {
80
91
  gap: 2,
81
92
  wrap: !1,
82
93
  className: x(378),
83
- children: [l(t, {
84
- variant: x(379),
94
+ children: [c(e, {
95
+ variant: x(361),
85
96
  weight: "semibold",
86
97
  truncate: !0,
87
- children: e
98
+ children: t
88
99
  }), p]
89
- }), u(n, {
100
+ }), l(n, {
90
101
  gap: 1,
91
102
  wrap: !1,
92
- children: [C, f != null && l(i, { date: f })]
103
+ children: [C, d != null && c(i, { date: d })]
93
104
  })]
94
105
  }), w] }), g]
95
106
  })]
96
107
  })
97
108
  });
98
109
  }
99
- function p({ children: e, className: t, style: n, "aria-label": r }) {
100
- return l(s(390), {
101
- className: o("ds-comment-thread", 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),
102
114
  style: n,
103
- role: r ? "group" : void 0,
115
+ role: r ? i(365) : void 0,
104
116
  "aria-label": r,
105
117
  children: e
106
118
  });
107
119
  }
108
- f[e(388)] = p;
109
- export { f 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 };