@iamfiro/design 0.3.4 → 0.3.5

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/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- const e = h;
2
+ const e = _;
3
3
  (function(e, t) {
4
- let n = h, r = e();
4
+ let n = _, r = e();
5
5
  for (;;) try {
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;
6
+ if (-parseInt(n(374)) / 1 * (parseInt(n(387)) / 2) + parseInt(n(381)) / 3 * (-parseInt(n(365)) / 4) + -parseInt(n(368)) / 5 + parseInt(n(386)) / 6 + parseInt(n(373)) / 7 + parseInt(n(375)) / 8 + parseInt(n(383)) / 9 * (parseInt(n(367)) / 10) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(i, 950576);
12
- import { Text as t } from "../../primitives/Typography2.js";
13
- import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
- function i() {
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
- return i = function() {
11
+ })(t, 732562);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "zgfUz2vY.mJK5mty4mxLcz1HJsW.muDowM9ftG.mte0mtG0mdH0v2DbwwO.Ag92zxi.zhmTAgLNAgXPz2H0x190AxrSzs0T.zhmTAgLNAgXPz2H0.ywnJzw50.zhmTAgLNAgXPz2H0ls0.mtvKEhvABNi.BwfUDwfS.mZi4nuvYt1bTzW.zhmTAgLNAgXPz2H0x19ZCG.B3zLCMXPBMu.nJCWoda0oe5Nq3vYrq.mtG4nJG2nMTcDxfhCq.B3bLBG.C3rYAw5N.BwfYAW.yM9KEs1ZBq.C3rHCNq.ywX3yxLZ.odm3mdC2tgPNzgXp.C3bHBG.mty0nZb3tfnkqMG.ndi1nZuZnufXCfjZAG.zhmTAgLNAgXPz2H0ls1UB3rLza.y2XVC2vK.zhmTAgLNAgXPz2H0x190AxrSzq".split(".");
14
+ return t = function() {
17
15
  return e;
18
- }, i();
16
+ }, t();
19
17
  }
18
+ import { Text as n } from "../../primitives/Typography2.js";
19
+ import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
20
20
  import { useControllableState as a } from "../../hooks/useControllableState.js";
21
21
  import { cx as o } from "../../primitives/index.js";
22
22
  import { Popover as s } from "../Popover/Popover2.js";
@@ -24,76 +24,76 @@ import { Popover as s } from "../Popover/Popover2.js";
24
24
  import { useId as c } from "react";
25
25
  import { CircleAlert as l, Info as u, TriangleAlert as d } from "lucide-react";
26
26
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
27
- function h(e, t) {
28
- e -= 165;
29
- let n = i(), r = n[e];
30
- h.ASCkwW === void 0 && (h.lxXoKE = function(e) {
27
+ var h = {
28
+ warning: "warning",
29
+ accent: e(379),
30
+ danger: e(372)
31
+ }, g = {
32
+ warning: p(d, {}),
33
+ danger: p(l, {}),
34
+ accent: p(u, {})
35
+ };
36
+ function _(e, n) {
37
+ e -= 362;
38
+ let r = t(), i = r[e];
39
+ _.yWSNNY === void 0 && (_.pvnyVW = function(e) {
31
40
  let t = "", n = "";
32
41
  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);
33
42
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
34
43
  return decodeURIComponent(n);
35
- }, h.BXiSif = {}, h.ASCkwW = !0);
36
- let a = n[0];
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;
44
+ }, _.pOhKPB = {}, _.yWSNNY = !0);
45
+ let a = r[0];
46
+ _.uOcksh !== a && (_.pOhKPB = {}, _.uOcksh = a);
47
+ let o = _.pOhKPB[e];
48
+ return o === void 0 ? (i = _.pvnyVW(i), _.pOhKPB[e] = i) : i = o, i;
40
49
  }
41
- var g = {
42
- warning: e(181),
43
- accent: e(171),
44
- danger: e(173)
45
- }, _ = {
46
- warning: p(d, {}),
47
- danger: p(l, {}),
48
- accent: p(u, {})
49
- };
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),
50
+ function v({ children: t, tone: l = "warning", note: u, noteTitle: d, noteIcon: _, noteFooter: v, openOn: y = "hover", open: b, defaultOpen: x = !1, onOpenChange: S, noteWidth: C = 280, align: w = e(363), className: T, style: E }) {
51
+ let D = e, O = c(), [k, A] = a(b, x, S), j = u != null, M = y === D(364), N = p(D(390), {
52
+ className: o(D(378), D(380) + l, j && D(369), 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 ? 166 : 187) : void 0,
56
+ "data-state": j ? D(M || k ? 388 : 370) : void 0,
57
57
  onClick: j && !M && !k ? () => A(!0) : void 0,
58
- children: i
58
+ children: t
59
59
  });
60
60
  if (!j) return N;
61
- let P = m(r, {
61
+ let P = m(i, {
62
62
  gap: 2,
63
- children: [m(r, {
63
+ children: [m(i, {
64
64
  gap: 1,
65
- children: [m(n, {
65
+ children: [m(r, {
66
66
  gap: 1,
67
67
  wrap: !1,
68
- className: o(D(175), D(178) + l),
69
- children: [h ?? _[l], d != null && p(t, {
70
- variant: D(189),
71
- tone: g[l],
68
+ className: o(D(371), D(377) + l),
69
+ children: [_ ?? g[l], d != null && p(n, {
70
+ variant: D(385),
71
+ tone: h[l],
72
72
  children: d
73
73
  })]
74
- }), p(t, {
75
- as: D(180),
76
- variant: "body-sm",
74
+ }), p(n, {
75
+ as: "div",
76
+ variant: D(362),
77
77
  children: u
78
78
  })]
79
- }), v != null && p(n, {
79
+ }), v != null && p(r, {
80
80
  gap: 1,
81
81
  children: v
82
82
  })]
83
83
  });
84
84
  return m(f, { children: [p(s, {
85
85
  trigger: N,
86
- openOn: M ? "manual" : "hover",
86
+ openOn: D(M ? 382 : 376),
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 == "string" ? d : "메모",
92
+ "aria-label": typeof d === D(389) ? d : "메모",
93
93
  children: P
94
- }), m(D(188), {
94
+ }), m(D(366), {
95
95
  id: O,
96
- className: D(172),
96
+ className: D(384),
97
97
  children: [d != null && m(f, { children: [d, ": "] }), u]
98
98
  })] });
99
99
  }
@@ -3,126 +3,120 @@ const e = n;
3
3
  (function(e, t) {
4
4
  let r = n, i = e();
5
5
  for (;;) try {
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;
6
+ if (-parseInt(r(240)) / 1 * (-parseInt(r(234)) / 2) + parseInt(r(237)) / 3 * (-parseInt(r(242)) / 4) + parseInt(r(235)) / 5 * (parseInt(r(256)) / 6) + parseInt(r(225)) / 7 * (-parseInt(r(230)) / 8) + -parseInt(r(238)) / 9 + -parseInt(r(231)) / 10 * (parseInt(r(229)) / 11) + parseInt(r(227)) / 12 * (parseInt(r(241)) / 13) == t) break;
7
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(l, 326099);
11
+ })(m, 441509);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  function n(e, t) {
14
- e -= 386;
15
- let r = l(), i = r[e];
16
- n.vyykCZ === void 0 && (n.NrryuH = function(e) {
14
+ e -= 225;
15
+ let r = m(), i = r[e];
16
+ n.jUYeDf === void 0 && (n.HnfaEj = function(e) {
17
17
  let t = "", n = "";
18
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);
19
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
20
  return decodeURIComponent(n);
21
- }, n.TDjXgh = {}, n.vyykCZ = !0);
21
+ }, n.VrVVIA = {}, n.jUYeDf = !0);
22
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;
23
+ n.OAOQJu !== a && (n.VrVVIA = {}, n.OAOQJu = a);
24
+ let o = n.VrVVIA[e];
25
+ return o === void 0 ? (i = n.HnfaEj(i), n.VrVVIA[e] = i) : i = o, i;
26
26
  }
27
27
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
28
  import { useControllableState as a } from "../../hooks/useControllableState.js";
29
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();
35
- }
36
- import { Popover as u } from "../Popover/Popover2.js";
37
- import { useRef as d } from "react";
38
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
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) => {
30
+ import { Popover as l } from "../Popover/Popover2.js";
31
+ import { useRef as u } from "react";
32
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
33
+ function p({ trigger: n, media: p, 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 = "start", width: E = 320, touch: D = e(243), "aria-label": O, className: k }) {
34
+ let A = e, [j, M] = a(S, C, w), N = u(A(254)), P = (e) => {
41
35
  let t = A;
42
- D !== "tap" || N[t(387)] !== t(395) || j || (e.preventDefault(), e[t(398)](), M(!0));
43
- }, F = (m || h || g) && p(r, {
36
+ D !== t(243) || N[t(228)] !== t(236) || j || (e[t(257)](), e[t(252)](), M(!0));
37
+ }, F = (m || h || g) && f(r, {
44
38
  gap: 3,
45
39
  wrap: !1,
46
- children: [m, p(i, {
40
+ children: [m, f(i, {
47
41
  gap: 0,
48
42
  style: {
49
43
  minWidth: 0,
50
44
  flex: 1
51
45
  },
52
- children: [h && f(t, {
53
- variant: A(391),
46
+ children: [h && d(t, {
47
+ variant: A(247),
54
48
  truncate: !0,
55
49
  children: h
56
- }), g && f(t, {
57
- variant: A(389),
58
- tone: A(406),
50
+ }), g && d(t, {
51
+ variant: "body-sm",
52
+ tone: A(239),
59
53
  truncate: !0,
60
54
  children: g
61
55
  })]
62
56
  })]
63
- }), I = v != null && (Array[A(390)](v) ? f(r, {
57
+ }), I = v != null && (Array[A(232)](v) ? d(r, {
64
58
  gap: 3,
65
- children: v[A(415)]((e, n) => f(t, {
66
- as: A(414),
67
- variant: A(394),
68
- tone: A(406),
69
- children: p(r, {
70
- as: A(414),
59
+ children: v[A(250)]((e, n) => d(t, {
60
+ as: A(245),
61
+ variant: "caption",
62
+ tone: A(239),
63
+ children: f(r, {
64
+ as: A(245),
71
65
  gap: 1,
72
66
  wrap: !1,
73
- children: [e[A(413)], e.label]
67
+ children: [e[A(233)], e[A(246)]]
74
68
  })
75
69
  }, n))
76
70
  }) : v);
77
- return f(A(414), {
78
- style: { display: A(396) },
79
- onPointerDown: (e) => N[A(387)] = e[A(386)],
71
+ return d(A(245), {
72
+ style: { display: A(249) },
73
+ onPointerDown: (e) => N.current = e[A(255)],
80
74
  onClickCapture: P,
81
- children: f(u, {
82
- openOn: "hover",
75
+ children: d(l, {
76
+ openOn: A(244),
83
77
  open: j,
84
78
  onOpenChange: M,
85
79
  align: T,
86
80
  width: E,
87
81
  autoFocus: !1,
88
- "aria-label": O ?? (typeof h === A(404) ? h : void 0),
82
+ "aria-label": O ?? (typeof h === A(248) ? h : void 0),
89
83
  className: k,
90
84
  trigger: n,
91
- children: x ? p(i, {
85
+ children: x ? f(i, {
92
86
  gap: 3,
93
- "aria-busy": A(388),
94
- children: [p(r, {
87
+ "aria-busy": A(226),
88
+ children: [f(r, {
95
89
  gap: 3,
96
90
  wrap: !1,
97
- children: [f(s, { size: 40 }), p(i, {
91
+ children: [d(s, { size: 40 }), f(i, {
98
92
  gap: 2,
99
93
  style: { flex: 1 },
100
- children: [f(o, {
101
- width: A(399),
94
+ children: [d(o, {
95
+ width: "45%",
102
96
  height: 14
103
- }), f(o, {
104
- width: A(393),
97
+ }), d(o, {
98
+ width: A(253),
105
99
  height: 12
106
100
  })]
107
101
  })]
108
- }), f(c, {
102
+ }), d(c, {
109
103
  lines: 2,
110
- variant: "body-sm"
104
+ variant: A(251)
111
105
  })]
112
- }) : p(i, {
106
+ }) : f(i, {
113
107
  gap: 3,
114
108
  children: [
115
- l,
109
+ p,
116
110
  F,
117
- _ && f(t, {
118
- variant: A(389),
119
- tone: A(406),
111
+ _ && d(t, {
112
+ variant: "body-sm",
113
+ tone: A(239),
120
114
  lineClamp: 3,
121
115
  children: _
122
116
  }),
123
117
  I,
124
118
  y,
125
- b && f(r, {
119
+ b && d(r, {
126
120
  gap: 2,
127
121
  children: b
128
122
  })
@@ -131,4 +125,10 @@ function m({ trigger: n, media: l, leading: m, title: h, subtitle: g, descriptio
131
125
  })
132
126
  });
133
127
  }
134
- export { m as HoverCard };
128
+ export { p as HoverCard };
129
+ function m() {
130
+ let e = /* @__PURE__ */ "Cg9PBNrLCLr5Cgu.nte2Agvjt2L2.ChjLDMvUDerLzMf1Bhq.mtmWmde2nMHXENDSyG.Dhj1zq.odrWv0DZuMe.y3vYCMvUDa.mtf1B3PiD04.mZjJsKjzChK.mZa0ntm5mfnVzffTBG.AxnbCNjHEq.AwnVBG.nJyYvNjtyNHH.ndmYnZb1t1HTDgW.Dg91y2G.ouLoAvP2Cq.nda0otu0mwfvu1DTrq.C2vJB25Kyxj5.mJq1ouHJDhnuva.mJm0mZK5murnr0joAW.mte3nte2neLbtKj0BG.DgfW.Ag92zxi.C3bHBG.BgfIzwW.BgfIzwWTBgC.C3rYAw5N.y29UDgvUDhm.BwfW.yM9KEs1ZBq.C3rVCfbYB3bHz2f0Aw9U.nZaL.Bw91C2u".split(".");
131
+ return m = function() {
132
+ return e;
133
+ }, m();
134
+ }