@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
@@ -3,98 +3,98 @@ const e = s;
3
3
  (function(e, t) {
4
4
  let n = s, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(130)) / 1 * (parseInt(n(119)) / 2) + -parseInt(n(117)) / 3 * (-parseInt(n(118)) / 4) + -parseInt(n(121)) / 5 + parseInt(n(129)) / 6 * (parseInt(n(136)) / 7) + -parseInt(n(132)) / 8 + -parseInt(n(134)) / 9 * (parseInt(n(135)) / 10) + parseInt(n(115)) / 11 == t) break;
6
+ if (-parseInt(n(356)) / 1 + -parseInt(n(335)) / 2 * (-parseInt(n(343)) / 3) + parseInt(n(350)) / 4 * (parseInt(n(337)) / 5) + parseInt(n(359)) / 6 * (-parseInt(n(361)) / 7) + -parseInt(n(360)) / 8 * (parseInt(n(347)) / 9) + -parseInt(n(345)) / 10 + parseInt(n(362)) / 11 * (parseInt(n(342)) / 12) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(v, 795803);
11
+ })(i, 725798);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
- import { useControllableState as i } from "../../hooks/useControllableState.js";
15
- import { cx as a } from "../../primitives/index.js";
16
- import { Popover as o } from "../Popover/Popover2.js";
17
- /* empty css */
14
+ function i() {
15
+ let e = /* @__PURE__ */ "zhmTAgLNAgXPz2H0x19ZCG.BwfUDwfS.mJCZmNv2vNzcEq.zhmTAgLNAgXPz2H0.mtvgre9fDhq.zhmTAgLNAgXPz2H0x190AxrSzs0T.ywX3yxLZ.zhmTAgLNAgXPz2H0ls0.zgfUz2vY.mtGZntuXmtzODK1tzNG.ntiYwLD0uhHp.zhmTAgLNAgXPz2H0x190AxrSzq.mtiWnZCYnZbdruv1ww8.B3zLCMXPBMu.mJDiAxfSCvi.B3bLBG.C3rYAw5N.ode1mtqWzvP6B1ni.BwfYAW.Ag92zxi.C3bHBG.zgL2.D2fYBMLUzW.otK3odG1DuPUt1Ps.zhmTAgLNAgXPz2H0ls1UB3rLza.ywnJzw50.nZe0DejHEwT2.mtm3ndG1nMThyNDbBG.mJCXmZjWrfLlrK0.mJjsvMvLwvO.y2XVC2vK".split(".");
16
+ return i = function() {
17
+ return e;
18
+ }, i();
19
+ }
20
+ import { useControllableState as a } from "../../hooks/useControllableState.js";
21
+ import { cx as o } from "../../primitives/index.js";
18
22
  function s(e, t) {
19
- e -= 111;
20
- let n = v(), r = n[e];
21
- s.mFLBrH === void 0 && (s.OJKvuW = function(e) {
23
+ e -= 335;
24
+ let n = i(), r = n[e];
25
+ s.NIytHh === void 0 && (s.BUYDTA = function(e) {
22
26
  let t = "", n = "";
23
27
  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);
24
28
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
29
  return decodeURIComponent(n);
26
- }, s.SGtQLV = {}, s.mFLBrH = !0);
27
- let i = n[0];
28
- s.OnPxPe !== i && (s.SGtQLV = {}, s.OnPxPe = i);
29
- let a = s.SGtQLV[e];
30
- return a === void 0 ? (r = s.OJKvuW(r), s.SGtQLV[e] = r) : r = a, r;
30
+ }, s.msQdkZ = {}, s.NIytHh = !0);
31
+ let a = n[0];
32
+ s.MXWPwW !== a && (s.msQdkZ = {}, s.MXWPwW = a);
33
+ let o = s.msQdkZ[e];
34
+ return o === void 0 ? (r = s.BUYDTA(r), s.msQdkZ[e] = r) : r = o, r;
31
35
  }
32
- import { useId as c } from "react";
33
- import { CircleAlert as l, Info as u, TriangleAlert as d } from "lucide-react";
34
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
35
- var h = {
36
- warning: e(120),
37
- accent: "accent",
38
- danger: e(125)
39
- }, g = {
40
- warning: p(d, {}),
41
- danger: p(l, {}),
42
- accent: p(u, {})
36
+ import { Popover as c } from "../Popover/Popover2.js";
37
+ /* empty css */
38
+ import { useId as l } from "react";
39
+ import { CircleAlert as u, Info as d, TriangleAlert as f } from "lucide-react";
40
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
41
+ var g = {
42
+ warning: e(355),
43
+ accent: e(358),
44
+ danger: e(341)
45
+ }, _ = {
46
+ warning: m(f, {}),
47
+ danger: m(u, {}),
48
+ accent: m(d, {})
43
49
  };
44
- function _({ children: s, tone: l = e(120), note: u, noteTitle: d, noteIcon: _, noteFooter: v, openOn: y = "hover", open: b, defaultOpen: x = !1, onOpenChange: S, noteWidth: C = 280, align: w = "start", className: T, style: E }) {
45
- let D = e, O = c(), [k, A] = i(b, x, S), j = u != null, M = y === "always", N = p(D(131), {
46
- className: a(D(116), D(127) + l, j && D(133), T),
50
+ function v({ children: i, tone: s = e(355), note: u, noteTitle: d, noteIcon: f, noteFooter: v, openOn: y = "hover", open: b, defaultOpen: x = !1, onOpenChange: S, noteWidth: C = 280, align: w = "start", className: T, style: E }) {
51
+ let D = e, O = l(), [k, A] = a(b, x, S), j = u != null, M = y === D(339), N = m(D(351), {
52
+ className: o(D(336), D(340) + s, j && D(357), T),
47
53
  style: E,
48
54
  tabIndex: j ? 0 : void 0,
49
55
  "aria-describedby": j ? O : void 0,
50
- "data-state": j ? D(M || k ? 111 : 128) : void 0,
56
+ "data-state": j ? D(M || k ? 348 : 363) : void 0,
51
57
  onClick: j && !M && !k ? () => A(!0) : void 0,
52
- children: s
58
+ children: i
53
59
  });
54
60
  if (!j) return N;
55
- let P = m(r, {
61
+ let P = h(r, {
56
62
  gap: 2,
57
- children: [m(r, {
63
+ children: [h(r, {
58
64
  gap: 1,
59
- children: [m(n, {
65
+ children: [h(n, {
60
66
  gap: 1,
61
67
  wrap: !1,
62
- className: a(D(137), D(112) + l),
63
- children: [_ ?? g[l], d != null && p(t, {
64
- variant: "overline",
65
- tone: h[l],
68
+ className: o(D(344), D(338) + s),
69
+ children: [f ?? _[s], d != null && m(t, {
70
+ variant: D(346),
71
+ tone: g[s],
66
72
  children: d
67
73
  })]
68
- }), p(t, {
69
- as: D(113),
70
- variant: D(114),
74
+ }), m(t, {
75
+ as: D(354),
76
+ variant: "body-sm",
71
77
  children: u
72
78
  })]
73
- }), v != null && p(n, {
79
+ }), v != null && m(n, {
74
80
  gap: 1,
75
81
  children: v
76
82
  })]
77
83
  });
78
- return m(f, { children: [p(o, {
84
+ return h(p, { children: [m(c, {
79
85
  trigger: N,
80
- openOn: D(M ? 126 : 122),
86
+ openOn: D(M ? 365 : 352),
81
87
  open: M ? !0 : k,
82
88
  onOpenChange: M ? void 0 : A,
83
89
  width: C,
84
90
  align: w,
85
91
  autoFocus: !1,
86
- "aria-label": typeof d === D(123) ? d : "메모",
92
+ "aria-label": typeof d === D(349) ? d : "메모",
87
93
  children: P
88
- }), m("span", {
94
+ }), h(D(353), {
89
95
  id: O,
90
- className: D(124),
91
- children: [d != null && m(f, { children: [d, ": "] }), u]
96
+ className: D(364),
97
+ children: [d != null && h(p, { children: [d, ": "] }), u]
92
98
  })] });
93
99
  }
94
- function v() {
95
- let e = /* @__PURE__ */ "m2r5y2PMCa.BwfYAW.otyXnZG0mff2C1HRvW.zhmTAgLNAgXPz2H0ls1UB3rLza.ndqZnJfxBxvUvuG.odbPtMXMyLa.nZeWnvvbqvjPtG.zhmTAgLNAgXPz2H0x190AxrSzq.B3bLBG.zhmTAgLNAgXPz2H0x190AxrSzs0T.zgL2.yM9KEs1ZBq.mJiWnZG1nJjUv1DKrfO.zhmTAgLNAgXPz2H0.otnxq2j6rfO.ndm2mg9zBgX0tq.mZe5ntC0r2fQExvZ.D2fYBMLUzW.nta3mdyZmeHtEuL6Da.Ag92zxi.C3rYAw5N.zhmTAgLNAgXPz2H0x19ZCG.zgfUz2vY.BwfUDwfS.zhmTAgLNAgXPz2H0ls0.y2XVC2vK.odGWogfUBg5Ovq".split(".");
96
- return v = function() {
97
- return e;
98
- }, v();
99
- }
100
- export { _ as Highlight };
100
+ export { v as Highlight };
@@ -1,134 +1,159 @@
1
1
  "use client";
2
- const e = m;
3
- function t() {
4
- let e = /* @__PURE__ */ "mJu4mda4thHTthbj.y2fWDgLVBG.C3rYAw5N.mtjzELDbCfK.nJCXrhfkCxz4.mtqYoteWCvrTrLjl.mu1KC3rMyW.mte3EezSEMjJ.mta3ntiYmdLUsKvJwha.nJeYz1n0EKnw.C3bHBG.yM9KEs1ZBq.DgfW.nxHrDeXTzq.Ag92zxi.C2vJB25Kyxj5.nduL.ndC5mde4wxjfD3vS.mZK4mtq1m2royLnWBa.y29UDgvUDhm.y3vYCMvUDa.C3rVCfbYB3bHz2f0Aw9U.BgfIzwW.AxnbCNjHEq.ChjLDMvUDerLzMf1Bhq.BwfW.C3rHCNq.mZmWntmXnNfsDNjvtW.mJa3m2XWBuPotG.BgfIzwWTBgC".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
2
+ const e = a;
9
3
  (function(e, t) {
10
- let n = m, r = e();
4
+ let n = a, r = e();
11
5
  for (;;) try {
12
- if (parseInt(n(191)) / 1 * (parseInt(n(202)) / 2) + parseInt(n(183)) / 3 * (parseInt(n(194)) / 4) + -parseInt(n(198)) / 5 * (parseInt(n(182)) / 6) + -parseInt(n(203)) / 7 + parseInt(n(185)) / 8 * (-parseInt(n(192)) / 9) + -parseInt(n(190)) / 10 * (-parseInt(n(189)) / 11) + -parseInt(n(188)) / 12 * (-parseInt(n(193)) / 13) == t) break;
6
+ if (parseInt(n(376)) / 1 + parseInt(n(359)) / 2 + -parseInt(n(357)) / 3 + parseInt(n(356)) / 4 * (parseInt(n(374)) / 5) + -parseInt(n(358)) / 6 + -parseInt(n(369)) / 7 * (-parseInt(n(373)) / 8) + parseInt(n(361)) / 9 == t) break;
13
7
  r.push(r.shift());
14
8
  } catch {
15
9
  r.push(r.shift());
16
10
  }
17
- })(t, 505148);
11
+ })(t, 648803);
12
+ function t() {
13
+ let e = [
14
+ "nJGYodm1AufWEw5J",
15
+ "Ag92zxi",
16
+ "mZm4ndu5EuDXyMPx",
17
+ "y2fWDgLVBG",
18
+ "y3vYCMvUDa",
19
+ "nduL",
20
+ "mtjMC1DLBge",
21
+ "mJi3mtmXmNPYBu1VBG",
22
+ "nJi1nJe1mKrLBgDqtG",
23
+ "mtC1nJGWoezpt0zdrq",
24
+ "AxnbCNjHEq",
25
+ "mtaXnJKXtu9ozvDx",
26
+ "C2vJB25Kyxj5",
27
+ "yM9KEs1ZBq",
28
+ "BgfIzwW",
29
+ "BwfW",
30
+ "DgfW",
31
+ "ChjLDMvUDerLzMf1Bhq",
32
+ "C3rHCNq",
33
+ "nZa5mZK0EKHZEvP5",
34
+ "Bw91C2u",
35
+ "Dg91y2G",
36
+ "C3rYAw5N",
37
+ "nJrxrNzIqvO"
38
+ ];
39
+ return t = function() {
40
+ return e;
41
+ }, t();
42
+ }
18
43
  import { Text as n } from "../../primitives/Typography2.js";
19
44
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
20
- import { useControllableState as a } from "../../hooks/useControllableState.js";
21
- import { Skeleton as o, SkeletonCircle as s, SkeletonText as c } from "../Skeleton/Skeleton2.js";
22
- import { Popover as l } from "../Popover/Popover2.js";
23
- import { useRef as u } from "react";
24
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
25
- function p({ trigger: t, media: p, leading: h, title: g, subtitle: _, description: v, meta: y, children: b, actions: x, loading: S = !1, open: C, defaultOpen: w = !1, onOpenChange: T, align: E = e(211), width: D = 320, touch: O = "tap", "aria-label": k, className: A }) {
26
- let j = e, [M, N] = a(C, w, T), P = u("mouse"), F = (e) => {
27
- let t = m;
28
- O !== t(197) || P[t(205)] !== "touch" || M || (e[t(209)](), e[t(206)](), N(!0));
29
- }, I = (h || g || _) && f(r, {
45
+ function a(e, n) {
46
+ e -= 353;
47
+ let r = t(), i = r[e];
48
+ a.mnAeHJ === void 0 && (a.dmTFZM = function(e) {
49
+ let t = "", n = "";
50
+ 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);
51
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
52
+ return decodeURIComponent(n);
53
+ }, a.vBudpy = {}, a.mnAeHJ = !0);
54
+ let o = r[0];
55
+ a.wKzRZp !== o && (a.vBudpy = {}, a.wKzRZp = o);
56
+ let s = a.vBudpy[e];
57
+ return s === void 0 ? (i = a.dmTFZM(i), a.vBudpy[e] = i) : i = s, i;
58
+ }
59
+ import { useControllableState as o } from "../../hooks/useControllableState.js";
60
+ import { Skeleton as s, SkeletonCircle as c, SkeletonText as l } from "../Skeleton/Skeleton2.js";
61
+ import { Popover as u } from "../Popover/Popover2.js";
62
+ import { useRef as d } from "react";
63
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
64
+ function m({ trigger: t, media: a, leading: m, title: h, subtitle: g, description: _, meta: v, children: y, actions: b, loading: x = !1, open: S, defaultOpen: C = !1, onOpenChange: w, align: T = e(368), width: E = 320, touch: D = "tap", "aria-label": O, className: k }) {
65
+ let A = e, [j, M] = o(S, C, w), N = d(A(370)), P = (e) => {
66
+ let t = A;
67
+ D !== t(366) || N.current !== t(371) || j || (e[t(367)](), e.stopPropagation(), M(!0));
68
+ }, F = (m || h || g) && p(r, {
30
69
  gap: 3,
31
70
  wrap: !1,
32
- children: [h, f(i, {
71
+ children: [m, p(i, {
33
72
  gap: 0,
34
73
  style: {
35
74
  minWidth: 0,
36
75
  flex: 1
37
76
  },
38
- children: [g && d(n, {
39
- variant: j(184),
77
+ children: [h && f(n, {
78
+ variant: "label-lg",
40
79
  truncate: !0,
41
- children: g
42
- }), _ && d(n, {
43
- variant: "body-sm",
44
- tone: j(200),
80
+ children: h
81
+ }), g && f(n, {
82
+ variant: A(363),
83
+ tone: A(362),
45
84
  truncate: !0,
46
- children: _
85
+ children: g
47
86
  })]
48
87
  })]
49
- }), L = y != null && (Array[j(208)](y) ? d(r, {
88
+ }), I = v != null && (Array[A(360)](v) ? f(r, {
50
89
  gap: 3,
51
- children: y[j(210)]((e, t) => d(n, {
52
- as: j(195),
53
- variant: j(186),
54
- tone: j(200),
55
- children: f(r, {
56
- as: j(195),
90
+ children: v[A(365)]((e, t) => f(n, {
91
+ as: "span",
92
+ variant: A(353),
93
+ tone: "secondary",
94
+ children: p(r, {
95
+ as: "span",
57
96
  gap: 1,
58
97
  wrap: !1,
59
- children: [e.icon, e[j(207)]]
98
+ children: [e.icon, e[A(364)]]
60
99
  })
61
100
  }, t))
62
- }) : y);
63
- return d(j(195), {
64
- style: { display: j(204) },
65
- onPointerDown: (e) => P[j(205)] = e.pointerType,
66
- onClickCapture: F,
67
- children: d(l, {
68
- openOn: j(199),
69
- open: M,
70
- onOpenChange: N,
71
- align: E,
72
- width: D,
101
+ }) : v);
102
+ return f("span", {
103
+ style: { display: "contents" },
104
+ onPointerDown: (e) => N[A(354)] = e.pointerType,
105
+ onClickCapture: P,
106
+ children: f(u, {
107
+ openOn: A(375),
108
+ open: j,
109
+ onOpenChange: M,
110
+ align: T,
111
+ width: E,
73
112
  autoFocus: !1,
74
- "aria-label": k ?? (typeof g === j(187) ? g : void 0),
75
- className: A,
113
+ "aria-label": O ?? (typeof h === A(372) ? h : void 0),
114
+ className: k,
76
115
  trigger: t,
77
- children: S ? f(i, {
116
+ children: x ? p(i, {
78
117
  gap: 3,
79
118
  "aria-busy": "true",
80
- children: [f(r, {
119
+ children: [p(r, {
81
120
  gap: 3,
82
121
  wrap: !1,
83
- children: [d(s, { size: 40 }), f(i, {
122
+ children: [f(c, { size: 40 }), p(i, {
84
123
  gap: 2,
85
124
  style: { flex: 1 },
86
- children: [d(o, {
87
- width: j(201),
125
+ children: [f(s, {
126
+ width: A(355),
88
127
  height: 14
89
- }), d(o, {
128
+ }), f(s, {
90
129
  width: "70%",
91
130
  height: 12
92
131
  })]
93
132
  })]
94
- }), d(c, {
133
+ }), f(l, {
95
134
  lines: 2,
96
- variant: j(196)
135
+ variant: A(363)
97
136
  })]
98
- }) : f(i, {
137
+ }) : p(i, {
99
138
  gap: 3,
100
139
  children: [
101
- p,
102
- I,
103
- v && d(n, {
104
- variant: "body-sm",
105
- tone: j(200),
140
+ a,
141
+ F,
142
+ _ && f(n, {
143
+ variant: A(363),
144
+ tone: A(362),
106
145
  lineClamp: 3,
107
- children: v
146
+ children: _
108
147
  }),
109
- L,
110
- b,
111
- x && d(r, {
148
+ I,
149
+ y,
150
+ b && f(r, {
112
151
  gap: 2,
113
- children: x
152
+ children: b
114
153
  })
115
154
  ]
116
155
  })
117
156
  })
118
157
  });
119
158
  }
120
- function m(e, n) {
121
- e -= 182;
122
- let r = t(), i = r[e];
123
- m.AdNBsu === void 0 && (m.Ryyokp = 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
- }, m.dtSVso = {}, m.AdNBsu = !0);
129
- let a = r[0];
130
- m.Jswago !== a && (m.dtSVso = {}, m.Jswago = a);
131
- let o = m.dtSVso[e];
132
- return o === void 0 ? (i = m.Ryyokp(i), m.dtSVso[e] = i) : i = o, i;
133
- }
134
- export { p as HoverCard };
159
+ export { m as HoverCard };