@iamfiro/design 0.3.1 → 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 +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,99 +1,99 @@
1
1
  "use client";
2
- const e = n;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let r = n, i = e();
4
+ let n = s, r = e();
5
5
  for (;;) try {
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());
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
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(c, 785804);
11
+ })(i, 725798);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
- function n(e, t) {
14
- e -= 301;
15
- let r = c(), i = r[e];
16
- n.tXGxBF === void 0 && (n.NOijld = function(e) {
13
+ import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
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";
22
+ function s(e, t) {
23
+ e -= 335;
24
+ let n = i(), r = n[e];
25
+ s.NIytHh === void 0 && (s.BUYDTA = function(e) {
17
26
  let t = "", n = "";
18
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);
19
28
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
29
  return decodeURIComponent(n);
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;
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;
26
35
  }
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";
36
+ import { Popover as c } from "../Popover/Popover2.js";
31
37
  /* 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();
37
- }
38
38
  import { useId as l } from "react";
39
39
  import { CircleAlert as u, Info as d, TriangleAlert as f } from "lucide-react";
40
40
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
41
41
  var g = {
42
- warning: e(323),
43
- accent: e(324),
44
- danger: e(320)
42
+ warning: e(355),
43
+ accent: e(358),
44
+ danger: e(341)
45
45
  }, _ = {
46
46
  warning: m(f, {}),
47
47
  danger: m(u, {}),
48
48
  accent: m(d, {})
49
49
  };
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),
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),
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 ? 319 : 313) : void 0,
56
+ "data-state": j ? D(M || k ? 348 : 363) : void 0,
57
57
  onClick: j && !M && !k ? () => A(!0) : void 0,
58
- children: n
58
+ children: i
59
59
  });
60
60
  if (!j) return N;
61
- let P = h(i, {
61
+ let P = h(r, {
62
62
  gap: 2,
63
- children: [h(i, {
63
+ children: [h(r, {
64
64
  gap: 1,
65
- children: [h(r, {
65
+ children: [h(n, {
66
66
  gap: 1,
67
67
  wrap: !1,
68
- className: o(D(330), D(327) + c),
69
- children: [f ?? _[c], d != null && m(t, {
70
- variant: D(326),
71
- tone: g[c],
68
+ className: o(D(344), D(338) + s),
69
+ children: [f ?? _[s], d != null && m(t, {
70
+ variant: D(346),
71
+ tone: g[s],
72
72
  children: d
73
73
  })]
74
74
  }), m(t, {
75
- as: D(325),
76
- variant: D(305),
75
+ as: D(354),
76
+ variant: "body-sm",
77
77
  children: u
78
78
  })]
79
- }), v != null && m(r, {
79
+ }), v != null && m(n, {
80
80
  gap: 1,
81
81
  children: v
82
82
  })]
83
83
  });
84
- return h(p, { children: [m(s, {
84
+ return h(p, { children: [m(c, {
85
85
  trigger: N,
86
- openOn: M ? D(302) : "hover",
86
+ openOn: D(M ? 365 : 352),
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(317) ? d : "메모",
92
+ "aria-label": typeof d === D(349) ? d : "메모",
93
93
  children: P
94
- }), h(D(309), {
94
+ }), h(D(353), {
95
95
  id: O,
96
- className: D(308),
96
+ className: D(364),
97
97
  children: [d != null && h(p, { children: [d, ": "] }), u]
98
98
  })] });
99
99
  }
@@ -1,96 +1,121 @@
1
1
  "use client";
2
- const e = o;
2
+ const e = a;
3
3
  (function(e, t) {
4
- let n = o, r = e();
4
+ let n = a, r = e();
5
5
  for (;;) try {
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;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
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() {
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() {
16
40
  return e;
17
- }, n();
41
+ }, t();
18
42
  }
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
- function o(e, t) {
22
- e -= 286;
23
- let r = n(), i = r[e];
24
- o.aTyqCb === void 0 && (o.AuHBaS = function(e) {
45
+ function a(e, n) {
46
+ e -= 353;
47
+ let r = t(), i = r[e];
48
+ a.mnAeHJ === void 0 && (a.dmTFZM = function(e) {
25
49
  let t = "", n = "";
26
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);
27
51
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
52
  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;
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;
34
58
  }
59
+ import { useControllableState as o } from "../../hooks/useControllableState.js";
35
60
  import { Skeleton as s, SkeletonCircle as c, SkeletonText as l } from "../Skeleton/Skeleton2.js";
36
61
  import { Popover as u } from "../Popover/Popover2.js";
37
62
  import { useRef as d } from "react";
38
63
  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, {
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, {
44
69
  gap: 3,
45
70
  wrap: !1,
46
- children: [h, p(i, {
71
+ children: [m, p(i, {
47
72
  gap: 0,
48
73
  style: {
49
74
  minWidth: 0,
50
75
  flex: 1
51
76
  },
52
- children: [g && f(t, {
77
+ children: [h && f(n, {
53
78
  variant: "label-lg",
54
79
  truncate: !0,
55
- children: g
56
- }), _ && f(t, {
57
- variant: "body-sm",
58
- tone: j(303),
80
+ children: h
81
+ }), g && f(n, {
82
+ variant: A(363),
83
+ tone: A(362),
59
84
  truncate: !0,
60
- children: _
85
+ children: g
61
86
  })]
62
87
  })]
63
- }), L = y != null && (Array[j(313)](y) ? f(r, {
88
+ }), I = v != null && (Array[A(360)](v) ? f(r, {
64
89
  gap: 3,
65
- children: y[j(296)]((e, n) => f(t, {
66
- as: j(301),
67
- variant: j(294),
90
+ children: v[A(365)]((e, t) => f(n, {
91
+ as: "span",
92
+ variant: A(353),
68
93
  tone: "secondary",
69
94
  children: p(r, {
70
95
  as: "span",
71
96
  gap: 1,
72
97
  wrap: !1,
73
- children: [e[j(298)], e[j(311)]]
98
+ children: [e.icon, e[A(364)]]
74
99
  })
75
- }, n))
76
- }) : y);
77
- return f(j(301), {
100
+ }, t))
101
+ }) : v);
102
+ return f("span", {
78
103
  style: { display: "contents" },
79
- onPointerDown: (e) => P[j(308)] = e[j(287)],
80
- onClickCapture: F,
104
+ onPointerDown: (e) => N[A(354)] = e.pointerType,
105
+ onClickCapture: P,
81
106
  children: f(u, {
82
- openOn: "hover",
83
- open: M,
84
- onOpenChange: N,
85
- align: E,
86
- width: D,
107
+ openOn: A(375),
108
+ open: j,
109
+ onOpenChange: M,
110
+ align: T,
111
+ width: E,
87
112
  autoFocus: !1,
88
- "aria-label": k ?? (typeof g === j(314) ? g : void 0),
89
- className: A,
90
- trigger: n,
91
- children: S ? p(i, {
113
+ "aria-label": O ?? (typeof h === A(372) ? h : void 0),
114
+ className: k,
115
+ trigger: t,
116
+ children: x ? p(i, {
92
117
  gap: 3,
93
- "aria-busy": j(295),
118
+ "aria-busy": "true",
94
119
  children: [p(r, {
95
120
  gap: 3,
96
121
  wrap: !1,
@@ -98,33 +123,33 @@ function m({ trigger: n, media: m, leading: h, title: g, subtitle: _, descriptio
98
123
  gap: 2,
99
124
  style: { flex: 1 },
100
125
  children: [f(s, {
101
- width: "45%",
126
+ width: A(355),
102
127
  height: 14
103
128
  }), f(s, {
104
- width: j(293),
129
+ width: "70%",
105
130
  height: 12
106
131
  })]
107
132
  })]
108
133
  }), f(l, {
109
134
  lines: 2,
110
- variant: j(310)
135
+ variant: A(363)
111
136
  })]
112
137
  }) : p(i, {
113
138
  gap: 3,
114
139
  children: [
115
- m,
116
- I,
117
- v && f(t, {
118
- variant: j(310),
119
- tone: j(303),
140
+ a,
141
+ F,
142
+ _ && f(n, {
143
+ variant: A(363),
144
+ tone: A(362),
120
145
  lineClamp: 3,
121
- children: v
146
+ children: _
122
147
  }),
123
- L,
124
- b,
125
- x && f(r, {
148
+ I,
149
+ y,
150
+ b && f(r, {
126
151
  gap: 2,
127
- children: x
152
+ children: b
128
153
  })
129
154
  ]
130
155
  })