@iamfiro/design 0.3.0 → 0.3.1

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 (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,100 +1,100 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let r = n, i = 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;
7
- r.push(r.shift());
6
+ if (parseInt(r(318)) / 1 + parseInt(r(321)) / 2 * (-parseInt(r(312)) / 3) + parseInt(r(322)) / 4 + -parseInt(r(329)) / 5 + parseInt(r(303)) / 6 + parseInt(r(316)) / 7 * (-parseInt(r(328)) / 8) + parseInt(r(304)) / 9 == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(v, 795803);
11
+ })(c, 785804);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
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 */
18
- function s(e, t) {
19
- e -= 111;
20
- let n = v(), r = n[e];
21
- s.mFLBrH === void 0 && (s.OJKvuW = function(e) {
13
+ function n(e, t) {
14
+ e -= 301;
15
+ let r = c(), i = r[e];
16
+ n.tXGxBF === void 0 && (n.NOijld = function(e) {
22
17
  let t = "", n = "";
23
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);
24
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
20
  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;
21
+ }, n.owneDx = {}, n.tXGxBF = !0);
22
+ let a = r[0];
23
+ n.FkKeTO !== a && (n.owneDx = {}, n.FkKeTO = a);
24
+ let o = n.owneDx[e];
25
+ return o === void 0 ? (i = n.NOijld(i), n.owneDx[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 { cx as o } from "../../primitives/index.js";
30
+ import { Popover as s } from "../Popover/Popover2.js";
31
+ /* empty css */
32
+ function c() {
33
+ let e = /* @__PURE__ */ "C3rHCNq.zhmTAgLNAgXPz2H0.ndj2vwf4swW.C3rYAw5N.mtuWmtGYnuXWyM1quW.B3bLBG.zgfUz2vY.mtK2nMXOsefdzq.mJK3nZuXmLz6Dej6DG.D2fYBMLUzW.ywnJzw50.zgL2.B3zLCMXPBMu.zhmTAgLNAgXPz2H0x190AxrSzs0T.mti2otiYne1xB2nZBa.ndq1ndKZme1dDKLHBG.zhmTAgLNAgXPz2H0x190AxrSzq.zhmTAgLNAgXPz2H0ls0.BwfUDwfS.ntq0ntm1ng1MDg1hDW.mJe5otG3zfbpqwDc.yM9KEs1ZBq.zhmTAgLNAgXPz2H0ls1UB3rLza.ywX3yxLZ.zhmTAgLNAgXPz2H0x19ZCG.C3bHBG.Ag92zxi.BwfYAW.mty3n09AteP6wq.y2XVC2vK".split(".");
34
+ return c = function() {
35
+ return e;
36
+ }, c();
31
37
  }
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, {})
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(323),
43
+ accent: e(324),
44
+ danger: e(320)
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: n, tone: c = e(323), note: u, noteTitle: d, noteIcon: f, noteFooter: v, openOn: y = e(310), open: b, defaultOpen: x = !1, onOpenChange: S, noteWidth: C = 280, align: w = e(314), className: T, style: E }) {
51
+ let D = e, O = l(), [k, A] = a(b, x, S), j = u != null, M = y === D(307), N = m(D(311), {
52
+ className: o(D(315), D(301) + c, j && D(306), 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 ? 319 : 313) : void 0,
51
57
  onClick: j && !M && !k ? () => A(!0) : void 0,
52
- children: s
58
+ children: n
53
59
  });
54
60
  if (!j) return N;
55
- let P = m(r, {
61
+ let P = h(i, {
56
62
  gap: 2,
57
- children: [m(r, {
63
+ children: [h(i, {
58
64
  gap: 1,
59
- children: [m(n, {
65
+ children: [h(r, {
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(330), D(327) + c),
69
+ children: [f ?? _[c], d != null && m(t, {
70
+ variant: D(326),
71
+ tone: g[c],
66
72
  children: d
67
73
  })]
68
- }), p(t, {
69
- as: D(113),
70
- variant: D(114),
74
+ }), m(t, {
75
+ as: D(325),
76
+ variant: D(305),
71
77
  children: u
72
78
  })]
73
- }), v != null && p(n, {
79
+ }), v != null && m(r, {
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(s, {
79
85
  trigger: N,
80
- openOn: D(M ? 126 : 122),
86
+ openOn: M ? D(302) : "hover",
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(317) ? d : "메모",
87
93
  children: P
88
- }), m("span", {
94
+ }), h(D(309), {
89
95
  id: O,
90
- className: D(124),
91
- children: [d != null && m(f, { children: [d, ": "] }), u]
96
+ className: D(308),
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,114 +1,128 @@
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 = o;
9
3
  (function(e, t) {
10
- let n = m, r = e();
4
+ let n = o, 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(302)) / 1 * (-parseInt(n(291)) / 2) + -parseInt(n(307)) / 3 * (parseInt(n(290)) / 4) + parseInt(n(286)) / 5 + -parseInt(n(297)) / 6 * (parseInt(n(299)) / 7) + parseInt(n(289)) / 8 * (-parseInt(n(300)) / 9) + -parseInt(n(292)) / 10 * (parseInt(n(312)) / 11) + parseInt(n(304)) / 12 == t) break;
13
7
  r.push(r.shift());
14
8
  } catch {
15
9
  r.push(r.shift());
16
10
  }
17
- })(t, 505148);
18
- import { Text as n } from "../../primitives/Typography2.js";
11
+ })(n, 813053);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n() {
14
+ let e = /* @__PURE__ */ "BgfIzwW.ndK3mdLbufntq0W.AxnbCNjHEq.C3rYAw5N.Dg91y2G.odu5mJKWzgXIzerR.Cg9PBNrLCLr5Cgu.ChjLDMvUDerLzMf1Bhq.mta3odCZnNnxA2vTwq.mtC0ohDWAvHJvq.mtriq0XYBhy.nZCWtMTYqvf5.nZaL.y2fWDgLVBG.Dhj1zq.BwfW.mJe0otG2rLzVz0nA.AwnVBG.n3L6AgHcEG.odfHCvPJrLK.C3bHBG.mtaWndq2qNz4Ag1A.C2vJB25Kyxj5.mJKZodaWntzhuLPzENK.DgfW.C3rVCfbYB3bHz2f0Aw9U.nJi2n0zQAvvxza.y3vYCMvUDa.C3rHCNq.yM9KEs1ZBq".split(".");
15
+ return n = function() {
16
+ return e;
17
+ }, n();
18
+ }
19
19
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
20
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, {
21
+ function o(e, t) {
22
+ e -= 286;
23
+ let r = n(), i = r[e];
24
+ o.aTyqCb === void 0 && (o.AuHBaS = function(e) {
25
+ let t = "", n = "";
26
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
27
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
+ return decodeURIComponent(n);
29
+ }, o.qwEmma = {}, o.aTyqCb = !0);
30
+ let a = r[0];
31
+ o.UcHtHM !== a && (o.qwEmma = {}, o.UcHtHM = a);
32
+ let s = o.qwEmma[e];
33
+ return s === void 0 ? (i = o.AuHBaS(i), o.qwEmma[e] = i) : i = s, i;
34
+ }
35
+ import { Skeleton as s, SkeletonCircle as c, SkeletonText as l } from "../Skeleton/Skeleton2.js";
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: m, 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(309), width: D = 320, touch: O = "tap", "aria-label": k, className: A }) {
40
+ let j = e, [M, N] = a(C, w, T), P = d("mouse"), F = (e) => {
41
+ let t = o;
42
+ O !== t(305) || P[t(308)] !== t(315) || M || (e[t(288)](), e[t(306)](), N(!0));
43
+ }, I = (h || g || _) && p(r, {
30
44
  gap: 3,
31
45
  wrap: !1,
32
- children: [h, f(i, {
46
+ children: [h, p(i, {
33
47
  gap: 0,
34
48
  style: {
35
49
  minWidth: 0,
36
50
  flex: 1
37
51
  },
38
- children: [g && d(n, {
39
- variant: j(184),
52
+ children: [g && f(t, {
53
+ variant: "label-lg",
40
54
  truncate: !0,
41
55
  children: g
42
- }), _ && d(n, {
56
+ }), _ && f(t, {
43
57
  variant: "body-sm",
44
- tone: j(200),
58
+ tone: j(303),
45
59
  truncate: !0,
46
60
  children: _
47
61
  })]
48
62
  })]
49
- }), L = y != null && (Array[j(208)](y) ? d(r, {
63
+ }), L = y != null && (Array[j(313)](y) ? f(r, {
50
64
  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),
65
+ children: y[j(296)]((e, n) => f(t, {
66
+ as: j(301),
67
+ variant: j(294),
68
+ tone: "secondary",
69
+ children: p(r, {
70
+ as: "span",
57
71
  gap: 1,
58
72
  wrap: !1,
59
- children: [e.icon, e[j(207)]]
73
+ children: [e[j(298)], e[j(311)]]
60
74
  })
61
- }, t))
75
+ }, n))
62
76
  }) : y);
63
- return d(j(195), {
64
- style: { display: j(204) },
65
- onPointerDown: (e) => P[j(205)] = e.pointerType,
77
+ return f(j(301), {
78
+ style: { display: "contents" },
79
+ onPointerDown: (e) => P[j(308)] = e[j(287)],
66
80
  onClickCapture: F,
67
- children: d(l, {
68
- openOn: j(199),
81
+ children: f(u, {
82
+ openOn: "hover",
69
83
  open: M,
70
84
  onOpenChange: N,
71
85
  align: E,
72
86
  width: D,
73
87
  autoFocus: !1,
74
- "aria-label": k ?? (typeof g === j(187) ? g : void 0),
88
+ "aria-label": k ?? (typeof g === j(314) ? g : void 0),
75
89
  className: A,
76
- trigger: t,
77
- children: S ? f(i, {
90
+ trigger: n,
91
+ children: S ? p(i, {
78
92
  gap: 3,
79
- "aria-busy": "true",
80
- children: [f(r, {
93
+ "aria-busy": j(295),
94
+ children: [p(r, {
81
95
  gap: 3,
82
96
  wrap: !1,
83
- children: [d(s, { size: 40 }), f(i, {
97
+ children: [f(c, { size: 40 }), p(i, {
84
98
  gap: 2,
85
99
  style: { flex: 1 },
86
- children: [d(o, {
87
- width: j(201),
100
+ children: [f(s, {
101
+ width: "45%",
88
102
  height: 14
89
- }), d(o, {
90
- width: "70%",
103
+ }), f(s, {
104
+ width: j(293),
91
105
  height: 12
92
106
  })]
93
107
  })]
94
- }), d(c, {
108
+ }), f(l, {
95
109
  lines: 2,
96
- variant: j(196)
110
+ variant: j(310)
97
111
  })]
98
- }) : f(i, {
112
+ }) : p(i, {
99
113
  gap: 3,
100
114
  children: [
101
- p,
115
+ m,
102
116
  I,
103
- v && d(n, {
104
- variant: "body-sm",
105
- tone: j(200),
117
+ v && f(t, {
118
+ variant: j(310),
119
+ tone: j(303),
106
120
  lineClamp: 3,
107
121
  children: v
108
122
  }),
109
123
  L,
110
124
  b,
111
- x && d(r, {
125
+ x && f(r, {
112
126
  gap: 2,
113
127
  children: x
114
128
  })
@@ -117,18 +131,4 @@ function p({ trigger: t, media: p, leading: h, title: g, subtitle: _, descriptio
117
131
  })
118
132
  });
119
133
  }
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 };
134
+ export { m as HoverCard };