@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,95 +1,88 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = s, r = e();
3
+ let n = a, r = e();
4
4
  for (;;) try {
5
- if (parseInt(n(393)) / 1 * (-parseInt(n(382)) / 2) + parseInt(n(391)) / 3 + parseInt(n(373)) / 4 * (parseInt(n(392)) / 5) + -parseInt(n(379)) / 6 * (-parseInt(n(374)) / 7) + -parseInt(n(385)) / 8 * (parseInt(n(376)) / 9) + -parseInt(n(372)) / 10 * (parseInt(n(378)) / 11) + -parseInt(n(387)) / 12 * (-parseInt(n(384)) / 13) == t) break;
5
+ if (parseInt(n(461)) / 1 + -parseInt(n(451)) / 2 + parseInt(n(458)) / 3 + parseInt(n(462)) / 4 * (-parseInt(n(459)) / 5) + -parseInt(n(448)) / 6 + -parseInt(n(455)) / 7 * (parseInt(n(452)) / 8) + parseInt(n(450)) / 9 == t) break;
6
6
  r.push(r.shift());
7
7
  } catch {
8
8
  r.push(r.shift());
9
9
  }
10
- })(e, 687871);
11
- function e() {
12
- let t = [
13
- "mJfsz3nyu0S",
14
- "AM9PBG",
15
- "mteXntu1B3nxzLrZ",
16
- "z2v0",
17
- "mtfotwfYv2m",
18
- "mtu4ntGZmeTWtLbeza",
19
- "A2v5",
20
- "y3vYCMvUDa",
21
- "nZm0vLbnCevI",
22
- "Dg9gAxHLza",
23
- "mtu1nJe1mKnUENnOsG",
24
- "nZi4uhLhCNLK",
25
- "BwLU",
26
- "mty4rK1nDKLm",
27
- "BwfW",
28
- "AgfZ",
29
- "y29SB3i",
30
- "mJe5oda2n3DitLrcrW",
31
- "oty5mdvcuuDmvKi",
32
- "mZe0mNHoCKzsuG",
33
- "nZK0ntC5mhzry050uq",
34
- "mte2C0riswvd"
35
- ];
36
- return e = function() {
37
- return t;
38
- }, e();
39
- }
40
- import { cubicBezier as t } from "./arc.js";
41
- import { useEffect as n, useLayoutEffect as r, useRef as i, useState as a } from "react";
42
- var o = t(.32, .72, 0, 1);
43
- function s(t, n) {
44
- t -= 372;
45
- let r = e(), i = r[t];
46
- s.cDwQPG === void 0 && (s.sJNwYK = function(e) {
10
+ })(o, 116397);
11
+ import { cubicBezier as e } from "./arc.js";
12
+ import { useEffect as t, useLayoutEffect as n, useRef as r, useState as i } from "react";
13
+ function a(e, t) {
14
+ e -= 448;
15
+ let n = o(), r = n[e];
16
+ a.JfZUHv === void 0 && (a.xmAaEz = function(e) {
47
17
  let t = "", n = "";
48
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);
49
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
50
20
  return decodeURIComponent(n);
51
- }, s.jzzkvz = {}, s.cDwQPG = !0);
52
- let a = r[0];
53
- s.wKxYWR !== a && (s.jzzkvz = {}, s.wKxYWR = a);
54
- let o = s.jzzkvz[t];
55
- return o === void 0 ? (i = s.sJNwYK(i), s.jzzkvz[t] = i) : i = o, i;
21
+ }, a.HqeWeI = {}, a.JfZUHv = !0);
22
+ let i = n[0];
23
+ a.lSoPGU !== i && (a.HqeWeI = {}, a.lSoPGU = i);
24
+ let s = a.HqeWeI[e];
25
+ return s === void 0 ? (r = a.xmAaEz(r), a.HqeWeI[e] = r) : r = s, r;
26
+ }
27
+ function o() {
28
+ let e = [
29
+ "z2v0",
30
+ "nJu1mdy4qNvkAKXk",
31
+ "nw1oqu9kEa",
32
+ "zMLSDgvY",
33
+ "mJiWnZrduffczM0",
34
+ "nJi2odC2tufHquTv",
35
+ "ode5nZKYC25etur2",
36
+ "BwfW",
37
+ "mJi3nJe5ow1zzxz3zG",
38
+ "mta0mtK2sKHAwhDz",
39
+ "ohbgELLIsa",
40
+ "Dg9gAxHLza",
41
+ "A2v5",
42
+ "mJiWndy1sML5Eerc",
43
+ "y3vYCMvUDa"
44
+ ];
45
+ return o = function() {
46
+ return e;
47
+ }, o();
56
48
  }
57
- function c(e, { enter: t = 900, update: c = 600 } = {}) {
58
- let l = s, [u, d] = a(() => e.map((e) => ({
49
+ var s = e(.32, .72, 0, 1);
50
+ function c(e, { enter: o = 900, update: c = 600 } = {}) {
51
+ let l = a, [u, d] = i(() => e[l(449)]((e) => ({
59
52
  ...e,
60
53
  a0: 0,
61
54
  a1: 0
62
- }))), f = i(u), p = i(e);
63
- r(() => {
64
- let t = s;
65
- p[t(381)] = e;
55
+ }))), f = r(u), p = r(e);
56
+ n(() => {
57
+ let t = l;
58
+ p[t(456)] = e;
66
59
  });
67
- let m = i(!1), h = e[l(388)]((e) => e[l(380)] + ":" + e.a0[l(383)](5) + ":" + e.a1[l(383)](5) + ":" + e[l(390)])[l(375)]("|");
68
- return n(() => {
69
- let e = l, n = p[e(381)], r = !m.current, i = new Map(f[e(381)][e(388)]((t) => [t[e(380)], t])), a = new Set(n.map((e) => e.key)), s = f[e(381)].filter((t) => !a[e(389)](t[e(380)]) && t.a1 - t.a0 > 1e-4)[e(388)]((e) => {
60
+ let m = r(!1), h = e[l(449)]((e) => e.key + ":" + e.a0[l(453)](5) + ":" + e.a1[l(453)](5) + ":" + e.color).join("|");
61
+ return t(() => {
62
+ let e = l, t = p[e(456)], n = !m[e(456)], r = new Map(f[e(456)].map((e) => [e.key, e])), i = new Set(t.map((t) => t[e(454)])), a = f.current[e(460)]((t) => !i.has(t[e(454)]) && t.a1 - t.a0 > 1e-4).map((e) => {
70
63
  let t = (e.a0 + e.a1) / 2;
71
64
  return {
72
65
  ...e,
73
66
  a0: t,
74
67
  a1: t
75
68
  };
76
- }), u = [...n, ...s], h = u[e(388)]((t) => i[e(377)](t[e(380)]) ?? {
69
+ }), u = [...t, ...a], h = u[e(449)]((t) => r[e(457)](t.key) ?? {
77
70
  ...t,
78
71
  a1: t.a0
79
- }), g = r ? t : c, _ = 0, v = 0, y = (t) => {
72
+ }), g = n ? o : c, _ = 0, v = 0, y = (n) => {
80
73
  let r = e;
81
- v ||= t;
82
- let i = Math[r(386)](1, (t - v) / g), a = o(i), s = i < 1 ? u.map((e, t) => ({
74
+ v ||= n;
75
+ let i = Math.min(1, (n - v) / g), a = s(i), o = i < 1 ? u.map((e, t) => ({
83
76
  ...e,
84
77
  a0: h[t].a0 + (e.a0 - h[t].a0) * a,
85
78
  a1: h[t].a1 + (e.a1 - h[t].a1) * a
86
- })) : n;
87
- f[r(381)] = s, d(s), i < 1 ? _ = requestAnimationFrame(y) : m.current = !0;
79
+ })) : t;
80
+ f[r(456)] = o, d(o), i < 1 ? _ = requestAnimationFrame(y) : m[r(456)] = !0;
88
81
  };
89
82
  return _ = requestAnimationFrame(() => _ = requestAnimationFrame(y)), () => cancelAnimationFrame(_);
90
83
  }, [
91
84
  h,
92
- t,
85
+ o,
93
86
  c
94
87
  ]), u;
95
88
  }
@@ -1,112 +1,112 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 388;
4
- let r = s(), i = r[t];
5
- e.vGebYd === void 0 && (e.qNjwPc = function(e) {
6
- let t = "", n = "";
7
- 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);
8
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
- return decodeURIComponent(n);
10
- }, e.kZBqQg = {}, e.vGebYd = !0);
11
- let a = r[0];
12
- e.WlRAzb !== a && (e.kZBqQg = {}, e.WlRAzb = a);
13
- let o = e.kZBqQg[t];
14
- return o === void 0 ? (i = e.qNjwPc(i), e.kZBqQg[t] = i) : i = o, i;
15
- }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
2
+ const e = h;
3
+ (function(e, t) {
4
+ let n = h, r = e();
19
5
  for (;;) try {
20
- if (-parseInt(r(393)) / 1 * (-parseInt(r(400)) / 2) + parseInt(r(397)) / 3 + -parseInt(r(408)) / 4 * (parseInt(r(413)) / 5) + -parseInt(r(403)) / 6 + -parseInt(r(416)) / 7 * (-parseInt(r(388)) / 8) + parseInt(r(421)) / 9 * (parseInt(r(409)) / 10) + parseInt(r(407)) / 11 * (-parseInt(r(417)) / 12) == n) break;
21
- i.push(i.shift());
6
+ if (-parseInt(n(155)) / 1 + -parseInt(n(146)) / 2 * (parseInt(n(130)) / 3) + -parseInt(n(129)) / 4 + -parseInt(n(136)) / 5 * (parseInt(n(152)) / 6) + -parseInt(n(120)) / 7 * (-parseInt(n(143)) / 8) + parseInt(n(119)) / 9 + parseInt(n(158)) / 10 * (parseInt(n(139)) / 11) == t) break;
7
+ r.push(r.shift());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(s, 470261);
26
- import { TIMING as n } from "../../hooks/timing.js";
27
- import { usePresence as r } from "../../hooks/usePresence.js";
28
- import { useControllableState as i } from "../../hooks/useControllableState.js";
29
- import { cx as a } from "../../primitives/index.js";
30
- import { useFloating as o } from "../../hooks/useFloating.js";
11
+ })(s, 823626);
12
+ import { TIMING as t } from "../../hooks/timing.js";
13
+ import { usePresence as n } from "../../hooks/usePresence.js";
14
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
15
+ import { cx as i } from "../../primitives/index.js";
16
+ import { useFloating as a } from "../../hooks/useFloating.js";
17
+ import { useDismiss as o } from "../../hooks/useDismiss.js";
31
18
  function s() {
32
- let e = /* @__PURE__ */ "Cg9PBNrLCLr5Cgu.zgLHBg9N.mZu4mhz5senMuG.y29UDgfPBNm.DgfYz2v0.ntiWmw93vuXntG.mtaYodrAwejfzeK.y2XPy2S.C2v0vgLTzw91Da.Bw91C2u.ouTcBhnJrq.ywn0AxzLrwXLBwvUDa.Bw91BNrLza.Ag92zxi.zgvMyxvSDfbYzxzLBNrLza.ote4ngv3q1vJva.A2v5.CMvSyxrLzfrHCMDLDa.oMzVy3vZlxzPC2LIBgu.y2fSyYGXmdb2DYaTide2ChGP.owTey3fgqW.Ag92zxjhCMfJzq.zM9JDxm.zhmTzMXVyxrPBMCTlxbHzc0.mtKXndy1nejirw9ryW.zhmTC2nYB2XS.y2XLyxjuAw1LB3v0.mZC1mZHSyLfACw0.C3bHBG.rxnJyxbL.ndqZodmYmgvWz0vNzW.B3bLBG.zhmTzMXVyxrPBMC.C3rHCNq.mta2n0XWwwjJuG.ntiWnez5C1bksG.nty0ntiZmgLNseDiBG.y3vYCMvUDa".split(".");
19
+ let e = /* @__PURE__ */ "y2fSyYGXmdb2DYaTide2ChGP.y2XLyxjuAw1LB3v0.zhmTzMXVyxrPBMC.mJGYDvr4shLl.C2v0vgLTzw91Da.y2XVC2LUzW.mtqZnZKWnKTbwK1ptG.y2XPy2S.zNvUy3rPB24.nZqWndGWmeDKAfD0yG.Cg9PBNrLCLr5Cgu.A2v5.rxnJyxbL.B3bLBG.mtCXmtC3m2DNug5yrG.mteXmZCXmZnjyKHYrNi.zhmTzMXVyxrPBMCTlxbHzc0.oMzVy3vZlxzPC2LIBgu.ChjLDMvUDerLzMf1Bhq.y29UDgfPBNm.yM9KEq.C3bHBG.Ag92zxi.C3rHCNq.mtK5ody3mLrAELHgEq.mta1ndGZD2jKCM96.Bw91C2u.zgvMyxvSDfbYzxzLBNrLza.DgfYz2v0.ywn0AxzLrwXLBwvUDa.Ag92zxjjBNrLBNq.mtu4otbRvej5wMe.zM9JDxm.zhmTC2nYB2XS.mJjfzu1Hzue.CMvSyxrLzfrHCMDLDa.Bw91BNrLza.zhmTCg9WB3zLCI1HBMnOB3i.ohz4C0vdAq.y2XVC2vK.Bwf0y2HLCW.mJbUuwH4rxG.y3vYCMvUDa.Ag92zxjhCMfJzq".split(".");
33
20
  return s = function() {
34
21
  return e;
35
22
  }, s();
36
23
  }
37
- import { useDismiss as c } from "../../hooks/useDismiss.js";
38
- import { focusableIn as l } from "../../hooks/useFocusTrap.js";
24
+ import { focusableIn as c } from "../../hooks/useFocusTrap.js";
39
25
  /* empty css */
40
- import { useEffect as u, useRef as d } from "react";
41
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
42
- import { createPortal as h } from "react-dom";
26
+ import { useEffect as l, useRef as u } from "react";
27
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
28
+ import { createPortal as m } from "react-dom";
29
+ function h(e, t) {
30
+ e -= 116;
31
+ let n = s(), r = n[e];
32
+ h.dVpeEv === void 0 && (h.bGFrik = function(e) {
33
+ let t = "", n = "";
34
+ 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);
35
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
36
+ return decodeURIComponent(n);
37
+ }, h.NYoOSP = {}, h.dVpeEv = !0);
38
+ let i = n[0];
39
+ h.muNqRa !== i && (h.NYoOSP = {}, h.muNqRa = i);
40
+ let a = h.NYoOSP[e];
41
+ return a === void 0 ? (r = h.bGFrik(r), h.NYoOSP[e] = r) : r = a, r;
42
+ }
43
43
  var g = 160;
44
- function _({ trigger: e, children: s, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = t(418), align: x = t(406), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
- let D = t, [O, k] = i(_, v, y), A = r(O, g), j = d(null), M = d(null), N = d(0), { style: P, side: F } = o(j, A[D(423)], {
44
+ function _({ trigger: s, children: h, open: _, defaultOpen: v = !1, onOpenChange: y, openOn: b = e(156), align: x = e(128), width: S, padding: C = "md", autoFocus: w = !0, className: T, "aria-label": E }) {
45
+ let D = e, [O, k] = r(_, v, y), A = n(O, g), j = u(null), M = u(null), N = u(0), { style: P, side: F } = a(j, A[D(141)], {
46
46
  matchWidth: !1,
47
47
  align: x,
48
48
  panelRef: M,
49
49
  maxHeight: 560
50
50
  });
51
- c(O, [j, M], () => k(!1)), u(() => () => window.clearTimeout(N[D(410)]), []), u(() => {
51
+ o(O, [j, M], () => k(!1)), l(() => () => window[D(150)](N[D(147)]), []), l(() => {
52
52
  let e = D;
53
- if (!O || b !== e(418) || !w) return;
53
+ if (!O || b !== e(156) || !w) return;
54
54
  let t = requestAnimationFrame(() => {
55
- let t = e, n = M[t(410)];
56
- n && (l(n)[0] ?? n)[t(395)]({ preventScroll: !0 });
55
+ let t = e, n = M[t(147)];
56
+ n && (c(n)[0] ?? n)[t(137)]({ preventScroll: !0 });
57
57
  });
58
58
  return () => cancelAnimationFrame(t);
59
59
  }, [
60
60
  O,
61
61
  b,
62
62
  w
63
- ]), u(() => {
63
+ ]), l(() => {
64
64
  let e = D;
65
- !O && M.current?.contains(document[e(422)]) && j[e(410)] && l(j.current)[0]?.[e(395)]({ preventScroll: !0 });
65
+ !O && M[e(147)]?.[e(124)](document[e(134)]) && j[e(147)] && c(j[e(147)])[0]?.[e(137)]({ preventScroll: !0 });
66
66
  }, [O]);
67
67
  let I = () => k(!1), L = (e) => {
68
- let t = D, n = e[t(390)];
69
- j[t(410)]?.[t(414)](n) || M[t(410)]?.[t(414)](n) || k(!1);
68
+ let t = D, n = e[t(140)];
69
+ j[t(147)]?.contains(n) || M.current?.[t(124)](n) || k(!1);
70
70
  }, R = (e) => {
71
71
  let t = D;
72
- e[t(389)] === t(402) && O && !e[t(425)] && (e.preventDefault(), I());
73
- }, z = b === D(424) ? {
72
+ e[t(116)] === t(117) && O && !e[t(132)] && (e[t(123)](), I());
73
+ }, z = b === D(127) ? {
74
74
  onPointerEnter: (e) => {
75
- let t = D;
76
- e[t(411)] === t(420) && (window[t(399)](N[t(410)]), N[t(410)] = window[t(419)](() => k(!0), O ? 0 : n.hoverIntent));
75
+ let n = D;
76
+ e[n(159)] === n(131) && (window[n(150)](N.current), N[n(147)] = window[n(153)](() => k(!0), O ? 0 : t[n(135)]));
77
77
  },
78
78
  onPointerLeave: (e) => {
79
- let t = D;
80
- e.pointerType === "mouse" && (window[t(399)](N[t(410)]), N[t(410)] = window.setTimeout(() => k(!1), n[t(394)]));
79
+ let n = D;
80
+ e[n(159)] === n(131) && (window.clearTimeout(N[n(147)]), N[n(147)] = window.setTimeout(() => k(!1), t[n(148)]));
81
81
  }
82
82
  } : {};
83
- return m(f, { children: [p(D(401), {
83
+ return p(d, { children: [f(D(126), {
84
84
  ref: j,
85
- className: "ds-popover-anchor",
86
- onClick: b === "click" ? () => k(!O) : void 0,
87
- onFocus: b === D(424) ? (e) => e[D(415)].matches(D(391)) && k(!0) : void 0,
88
- onBlur: b === "hover" ? L : void 0,
85
+ className: D(142),
86
+ onClick: b === D(156) ? () => k(!O) : void 0,
87
+ onFocus: b === D(127) ? (e) => e[D(133)][D(145)](D(122)) && k(!0) : void 0,
88
+ onBlur: b === D(127) ? L : void 0,
89
89
  onKeyDown: R,
90
90
  "aria-expanded": O,
91
91
  ...z,
92
- children: e
93
- }), A[D(423)] && h(p("div", {
92
+ children: s
93
+ }), A[D(141)] && m(f("div", {
94
94
  ref: M,
95
- role: D(412),
95
+ role: "dialog",
96
96
  "aria-label": E,
97
97
  tabIndex: -1,
98
- className: a(D(405), D(398), D(396) + C, T),
98
+ className: i(D(151), D(138), D(121) + C, T),
99
99
  "data-side": F,
100
- "data-state": A.closing ? "closed" : D(404),
100
+ "data-state": A[D(154)] ? D(144) : D(118),
101
101
  style: {
102
102
  ...P,
103
103
  width: S,
104
- maxWidth: D(392)
104
+ maxWidth: D(149)
105
105
  },
106
106
  onKeyDown: R,
107
- onBlur: b === D(424) ? L : void 0,
107
+ onBlur: b === D(127) ? L : void 0,
108
108
  ...z,
109
- children: typeof s == "function" ? s(() => I()) : s
110
- }), document.body)] });
109
+ children: typeof h === D(157) ? h(() => I()) : h
110
+ }), document[D(125)])] });
111
111
  }
112
112
  export { _ as Popover };