@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,100 +1,100 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = h;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let n = h, r = e();
5
5
  for (;;) try {
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;
6
+ if (parseInt(n(183)) / 1 + -parseInt(n(179)) / 2 + -parseInt(n(165)) / 3 + -parseInt(n(190)) / 4 + parseInt(n(185)) / 5 * (parseInt(n(176)) / 6) + -parseInt(n(186)) / 7 + -parseInt(n(170)) / 8 * (-parseInt(n(177)) / 9) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(i, 725798);
11
+ })(i, 950576);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
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(".");
15
+ let e = /* @__PURE__ */ "C3bHBG.B3zLCMXPBMu.mZuYnJqXmMfmD2fUEG.nda4mZC5mMPgy0XlCq.B3bLBG.Ag92zxi.zhmTAgLNAgXPz2H0ls0.zhmTAgLNAgXPz2H0ls1UB3rLza.odKXnJiXnM5sqLPAEG.ywnJzw50.zhmTAgLNAgXPz2H0x19ZCG.zgfUz2vY.zhmTAgLNAgXPz2H0.zhmTAgLNAgXPz2H0x190AxrSzq.nte3oeDAswHiDW.mJDcq1HRrhG.zhmTAgLNAgXPz2H0x190AxrSzs0T.otG4odK4txnArwDU.zgL2.D2fYBMLUzW.BwfYAW.mta2otG1m2jmAgn1DG.C3rHCNq.ntu3mezxtxbzEq.mte4mdG0nJHLuKPoswW.y2XVC2vK".split(".");
16
16
  return i = function() {
17
17
  return e;
18
18
  }, i();
19
19
  }
20
20
  import { useControllableState as a } from "../../hooks/useControllableState.js";
21
21
  import { cx as o } from "../../primitives/index.js";
22
- function s(e, t) {
23
- e -= 335;
22
+ import { Popover as s } from "../Popover/Popover2.js";
23
+ /* empty css */
24
+ import { useId as c } from "react";
25
+ import { CircleAlert as l, Info as u, TriangleAlert as d } from "lucide-react";
26
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
27
+ function h(e, t) {
28
+ e -= 165;
24
29
  let n = i(), r = n[e];
25
- s.NIytHh === void 0 && (s.BUYDTA = function(e) {
30
+ h.ASCkwW === void 0 && (h.lxXoKE = function(e) {
26
31
  let t = "", n = "";
27
32
  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);
28
33
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
29
34
  return decodeURIComponent(n);
30
- }, s.msQdkZ = {}, s.NIytHh = !0);
35
+ }, h.BXiSif = {}, h.ASCkwW = !0);
31
36
  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;
37
+ h.JvVteT !== a && (h.BXiSif = {}, h.JvVteT = a);
38
+ let o = h.BXiSif[e];
39
+ return o === void 0 ? (r = h.lxXoKE(r), h.BXiSif[e] = r) : r = o, r;
35
40
  }
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
41
  var g = {
42
- warning: e(355),
43
- accent: e(358),
44
- danger: e(341)
42
+ warning: e(181),
43
+ accent: e(171),
44
+ danger: e(173)
45
45
  }, _ = {
46
- warning: m(f, {}),
47
- danger: m(u, {}),
48
- accent: m(d, {})
46
+ warning: p(d, {}),
47
+ danger: p(l, {}),
48
+ accent: p(u, {})
49
49
  };
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),
50
+ function v({ children: i, tone: l = e(181), note: u, noteTitle: d, noteIcon: h, noteFooter: v, openOn: y = e(167), open: b, defaultOpen: x = !1, onOpenChange: S, noteWidth: C = 280, align: w = e(184), className: T, style: E }) {
51
+ let D = e, O = c(), [k, A] = a(b, x, S), j = u != null, M = y === "always", N = p(D(182), {
52
+ className: o(D(174), D(168) + l, j && D(169), T),
53
53
  style: E,
54
54
  tabIndex: j ? 0 : void 0,
55
55
  "aria-describedby": j ? O : void 0,
56
- "data-state": j ? D(M || k ? 348 : 363) : void 0,
56
+ "data-state": j ? D(M || k ? 166 : 187) : void 0,
57
57
  onClick: j && !M && !k ? () => A(!0) : void 0,
58
58
  children: i
59
59
  });
60
60
  if (!j) return N;
61
- let P = h(r, {
61
+ let P = m(r, {
62
62
  gap: 2,
63
- children: [h(r, {
63
+ children: [m(r, {
64
64
  gap: 1,
65
- children: [h(n, {
65
+ children: [m(n, {
66
66
  gap: 1,
67
67
  wrap: !1,
68
- className: o(D(344), D(338) + s),
69
- children: [f ?? _[s], d != null && m(t, {
70
- variant: D(346),
71
- tone: g[s],
68
+ className: o(D(175), D(178) + l),
69
+ children: [h ?? _[l], d != null && p(t, {
70
+ variant: D(189),
71
+ tone: g[l],
72
72
  children: d
73
73
  })]
74
- }), m(t, {
75
- as: D(354),
74
+ }), p(t, {
75
+ as: D(180),
76
76
  variant: "body-sm",
77
77
  children: u
78
78
  })]
79
- }), v != null && m(n, {
79
+ }), v != null && p(n, {
80
80
  gap: 1,
81
81
  children: v
82
82
  })]
83
83
  });
84
- return h(p, { children: [m(c, {
84
+ return m(f, { children: [p(s, {
85
85
  trigger: N,
86
- openOn: D(M ? 365 : 352),
86
+ openOn: M ? "manual" : "hover",
87
87
  open: M ? !0 : k,
88
88
  onOpenChange: M ? void 0 : A,
89
89
  width: C,
90
90
  align: w,
91
91
  autoFocus: !1,
92
- "aria-label": typeof d === D(349) ? d : "메모",
92
+ "aria-label": typeof d == "string" ? d : "메모",
93
93
  children: P
94
- }), h(D(353), {
94
+ }), m(D(188), {
95
95
  id: O,
96
- className: D(364),
97
- children: [d != null && h(p, { children: [d, ": "] }), u]
96
+ className: D(172),
97
+ children: [d != null && m(f, { children: [d, ": "] }), u]
98
98
  })] });
99
99
  }
100
100
  export { v as Highlight };
@@ -1,70 +1,45 @@
1
1
  "use client";
2
- const e = a;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = a, r = e();
4
+ let r = n, i = e();
5
5
  for (;;) try {
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;
7
- r.push(r.shift());
6
+ if (-parseInt(r(403)) / 1 * (-parseInt(r(405)) / 2) + -parseInt(r(411)) / 3 * (-parseInt(r(409)) / 4) + -parseInt(r(402)) / 5 * (-parseInt(r(392)) / 6) + -parseInt(r(410)) / 7 + -parseInt(r(408)) / 8 + -parseInt(r(401)) / 9 * (parseInt(r(412)) / 10) + parseInt(r(407)) / 11 * (-parseInt(r(416)) / 12) == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
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
- }
43
- import { Text as n } from "../../primitives/Typography2.js";
44
- import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
45
- function a(e, n) {
46
- e -= 353;
47
- let r = t(), i = r[e];
48
- a.mnAeHJ === void 0 && (a.dmTFZM = function(e) {
11
+ })(l, 326099);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n(e, t) {
14
+ e -= 386;
15
+ let r = l(), i = r[e];
16
+ n.vyykCZ === void 0 && (n.NrryuH = function(e) {
49
17
  let t = "", n = "";
50
18
  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
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
52
20
  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;
21
+ }, n.TDjXgh = {}, n.vyykCZ = !0);
22
+ let a = r[0];
23
+ n.xwuscJ !== a && (n.TDjXgh = {}, n.xwuscJ = a);
24
+ let o = n.TDjXgh[e];
25
+ return o === void 0 ? (i = n.NrryuH(i), n.TDjXgh[e] = i) : i = o, i;
26
+ }
27
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
+ import { useControllableState as a } from "../../hooks/useControllableState.js";
29
+ import { Skeleton as o, SkeletonCircle as s, SkeletonText as c } from "../Skeleton/Skeleton2.js";
30
+ function l() {
31
+ let e = /* @__PURE__ */ "mZaZmZG1A01cDhPh.mtbXsfbrANK.C3rYAw5N.odqYmZbfA3PyyNe.C2vJB25Kyxj5.nZDHu3jiwLG.mJa2nJa3mMrUvKLTrq.nJC2mdy4CM9Qq2Pn.ndm4otK4n2rVsfLMBG.owv3z0nYsG.ndCWq2HrzgPL.AwnVBG.C3bHBG.BwfW.mta0ntmYD2HeAvH1.Cg9PBNrLCLr5Cgu.y3vYCMvUDa.Dhj1zq.yM9KEs1ZBq.AxnbCNjHEq.BgfIzwWTBgC.nJbTzvriqLC.nZaL.y2fWDgLVBG.Dg91y2G.y29UDgvUDhm.C3rHCNq.C3rVCfbYB3bHz2f0Aw9U.nduL.Bw91C2u.ntaYnJvPA3vnB1q".split(".");
32
+ return l = function() {
33
+ return e;
34
+ }, l();
58
35
  }
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
36
  import { Popover as u } from "../Popover/Popover2.js";
62
37
  import { useRef as d } from "react";
63
38
  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) => {
39
+ function m({ trigger: n, media: l, 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(397), width: E = 320, touch: D = "tap", "aria-label": O, className: k }) {
40
+ let A = e, [j, M] = a(S, C, w), N = d(A(400)), P = (e) => {
66
41
  let t = A;
67
- D !== t(366) || N.current !== t(371) || j || (e[t(367)](), e.stopPropagation(), M(!0));
42
+ D !== "tap" || N[t(387)] !== t(395) || j || (e.preventDefault(), e[t(398)](), M(!0));
68
43
  }, F = (m || h || g) && p(r, {
69
44
  gap: 3,
70
45
  wrap: !1,
@@ -74,74 +49,74 @@ function m({ trigger: t, media: a, leading: m, title: h, subtitle: g, descriptio
74
49
  minWidth: 0,
75
50
  flex: 1
76
51
  },
77
- children: [h && f(n, {
78
- variant: "label-lg",
52
+ children: [h && f(t, {
53
+ variant: A(391),
79
54
  truncate: !0,
80
55
  children: h
81
- }), g && f(n, {
82
- variant: A(363),
83
- tone: A(362),
56
+ }), g && f(t, {
57
+ variant: A(389),
58
+ tone: A(406),
84
59
  truncate: !0,
85
60
  children: g
86
61
  })]
87
62
  })]
88
- }), I = v != null && (Array[A(360)](v) ? f(r, {
63
+ }), I = v != null && (Array[A(390)](v) ? f(r, {
89
64
  gap: 3,
90
- children: v[A(365)]((e, t) => f(n, {
91
- as: "span",
92
- variant: A(353),
93
- tone: "secondary",
65
+ children: v[A(415)]((e, n) => f(t, {
66
+ as: A(414),
67
+ variant: A(394),
68
+ tone: A(406),
94
69
  children: p(r, {
95
- as: "span",
70
+ as: A(414),
96
71
  gap: 1,
97
72
  wrap: !1,
98
- children: [e.icon, e[A(364)]]
73
+ children: [e[A(413)], e.label]
99
74
  })
100
- }, t))
75
+ }, n))
101
76
  }) : v);
102
- return f("span", {
103
- style: { display: "contents" },
104
- onPointerDown: (e) => N[A(354)] = e.pointerType,
77
+ return f(A(414), {
78
+ style: { display: A(396) },
79
+ onPointerDown: (e) => N[A(387)] = e[A(386)],
105
80
  onClickCapture: P,
106
81
  children: f(u, {
107
- openOn: A(375),
82
+ openOn: "hover",
108
83
  open: j,
109
84
  onOpenChange: M,
110
85
  align: T,
111
86
  width: E,
112
87
  autoFocus: !1,
113
- "aria-label": O ?? (typeof h === A(372) ? h : void 0),
88
+ "aria-label": O ?? (typeof h === A(404) ? h : void 0),
114
89
  className: k,
115
- trigger: t,
90
+ trigger: n,
116
91
  children: x ? p(i, {
117
92
  gap: 3,
118
- "aria-busy": "true",
93
+ "aria-busy": A(388),
119
94
  children: [p(r, {
120
95
  gap: 3,
121
96
  wrap: !1,
122
- children: [f(c, { size: 40 }), p(i, {
97
+ children: [f(s, { size: 40 }), p(i, {
123
98
  gap: 2,
124
99
  style: { flex: 1 },
125
- children: [f(s, {
126
- width: A(355),
100
+ children: [f(o, {
101
+ width: A(399),
127
102
  height: 14
128
- }), f(s, {
129
- width: "70%",
103
+ }), f(o, {
104
+ width: A(393),
130
105
  height: 12
131
106
  })]
132
107
  })]
133
- }), f(l, {
108
+ }), f(c, {
134
109
  lines: 2,
135
- variant: A(363)
110
+ variant: "body-sm"
136
111
  })]
137
112
  }) : p(i, {
138
113
  gap: 3,
139
114
  children: [
140
- a,
115
+ l,
141
116
  F,
142
- _ && f(n, {
143
- variant: A(363),
144
- tone: A(362),
117
+ _ && f(t, {
118
+ variant: A(389),
119
+ tone: A(406),
145
120
  lineClamp: 3,
146
121
  children: _
147
122
  }),