@iamfiro/design 0.3.2 → 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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,42 +1,53 @@
1
1
  "use client";
2
- const e = i;
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (parseInt(r(355)) / 1 + parseInt(r(353)) / 2 + parseInt(r(357)) / 3 * (-parseInt(r(358)) / 4) + -parseInt(r(349)) / 5 + -parseInt(r(345)) / 6 * (parseInt(r(359)) / 7) + parseInt(r(348)) / 8 * (parseInt(r(354)) / 9) + parseInt(r(356)) / 10 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(t, 505518);
3
12
  function t() {
4
13
  let e = [
5
- "CMvKDwnL",
14
+ "zMXVB3i",
6
15
  "zMLUza",
7
- "mte0nti2m3vXwLLxDa",
16
+ "mZq2mdqYB0vcC0L1",
17
+ "ovDWD3vrBG",
18
+ "mZm2nJGYrgPoAffZ",
19
+ "mtmZnZu0otbKtvLAvee",
20
+ "odC5zLb2s0PR",
21
+ "mteZmM9ZCLbYyG",
22
+ "otaZBfvmv1Lw",
8
23
  "Bwf4",
9
- "zNjVBq",
10
- "mJmWotu5mtbyzNjIzg0",
11
- "mZjvvfLmCe8",
12
- "nZq5oti4AKrQC2Db",
13
- "mZG3mduYmKnbsNv3BG",
24
+ "CMvKDwnL",
25
+ "mZqZntbqwuPIr3e",
14
26
  "BgvUz3rO",
15
- "mZCYndGYohPQC0HqyW",
16
- "mvb2ywfkrW",
17
- "nJG0mdi1ogrnyxzosW",
18
- "Bg9Nmta",
19
- "mta2otC3nLHerwjOBq",
20
- "BwLU",
21
- "CM91BMq",
22
- "zMXVB3i",
23
- "nwP4DeHZuG",
24
- "ChvZAa"
27
+ "ChvZAa",
28
+ "odi0nJq4wM5RwxbJ",
29
+ "mZeXnJG1nuzmwM5ntW",
30
+ "CM91BMq"
25
31
  ];
26
32
  return t = function() {
27
33
  return e;
28
34
  }, t();
29
35
  }
30
- (function(e, t) {
31
- let n = i, r = e();
32
- for (;;) try {
33
- if (parseInt(n(414)) / 1 * (-parseInt(n(410)) / 2) + -parseInt(n(417)) / 3 + -parseInt(n(413)) / 4 + -parseInt(n(421)) / 5 * (-parseInt(n(415)) / 6) + parseInt(n(405)) / 7 * (-parseInt(n(409)) / 8) + -parseInt(n(411)) / 9 + parseInt(n(408)) / 10 == t) break;
34
- r.push(r.shift());
35
- } catch {
36
- r.push(r.shift());
37
- }
38
- })(t, 702377);
39
- var n = [
36
+ function n(e, r) {
37
+ e -= 343;
38
+ let i = t(), a = i[e];
39
+ n.zXFIuF === void 0 && (n.hlyfwz = function(e) {
40
+ let t = "", n = "";
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);
42
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
43
+ return decodeURIComponent(n);
44
+ }, n.MeKDzn = {}, n.zXFIuF = !0);
45
+ let o = i[0];
46
+ n.Bitwhb !== o && (n.MeKDzn = {}, n.Bitwhb = o);
47
+ let s = n.MeKDzn[e];
48
+ return s === void 0 ? (a = n.hlyfwz(a), n.MeKDzn[e] = a) : a = s, a;
49
+ }
50
+ var r = [
40
51
  1,
41
52
  1.5,
42
53
  2,
@@ -45,35 +56,21 @@ var n = [
45
56
  5,
46
57
  10
47
58
  ];
48
- function r(e, t, r, o = !0) {
49
- let s = i, c = Math.max(1, r - 1), l = Math[s(418)](e, t), u = Math[s(406)](e, t);
59
+ function i(e, t, i, o = !0) {
60
+ let s = n, c = Math[s(343)](1, i - 1), l = Math.min(e, t), u = Math[s(343)](e, t);
50
61
  if (o && l >= 0 && l <= u * .5 && (l = 0), u === l) {
51
- if (u === 0) return Array[s(407)]({ length: c + 1 }, (e, t) => t);
62
+ if (u === 0) return Array.from({ length: c + 1 }, (e, t) => t);
52
63
  l = l > 0 ? 0 : l * 2, u = u > 0 ? u : 0;
53
64
  }
54
- let d = (u - l) / c, f = 10 ** Math[s(420)](Math[s(416)](d)), p = (n[s(404)]((e) => e * f >= d) ?? 10) * f, m = Math[s(420)](l / p + 1e-9) * p, h = [a(m)];
55
- for (; h[h[s(412)] - 1] < u - 1e-9;) h[s(422)](a(m + h[s(412)] * p));
56
- return h[s(412)] < 2 && h[s(422)](a(m + p)), h;
57
- }
58
- function i(e, n) {
59
- e -= 403;
60
- let r = t(), a = r[e];
61
- i.CmRHpK === void 0 && (i.etZgzh = function(e) {
62
- let t = "", n = "";
63
- 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);
64
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
65
- return decodeURIComponent(n);
66
- }, i.Jtjdfb = {}, i.CmRHpK = !0);
67
- let o = r[0];
68
- i.GxEuis !== o && (i.Jtjdfb = {}, i.GxEuis = o);
69
- let s = i.Jtjdfb[e];
70
- return s === void 0 ? (a = i.etZgzh(a), i.Jtjdfb[e] = a) : a = s, a;
65
+ let d = (u - l) / c, f = 10 ** Math.floor(Math.log10(d)), p = (r[s(352)]((e) => e * f >= d) ?? 10) * f, m = Math[s(351)](l / p + 1e-9) * p, h = [a(m)];
66
+ for (; h[h[s(346)] - 1] < u - 1e-9;) h[s(347)](a(m + h[s(346)] * p));
67
+ return h[s(346)] < 2 && h[s(347)](a(m + p)), h;
71
68
  }
72
- var a = (t) => Math[e(419)](t * 1e9) / 1e9;
69
+ var a = (t) => Math[e(350)](t * 1e9) / 1e9;
73
70
  function o(t) {
74
- let n = e, r = t[n(412)];
71
+ let n = e, r = t.length;
75
72
  if (r < 2) return null;
76
- let i = t[n(403)]((e, t) => e + t.x, 0) / r, a = t[n(403)]((e, t) => e + t.y, 0) / r, o = 0, s = 0;
73
+ let i = t[n(344)]((e, t) => e + t.x, 0) / r, a = t.reduce((e, t) => e + t.y, 0) / r, o = 0, s = 0;
77
74
  for (let e of t) o += (e.x - i) * (e.y - a), s += (e.x - i) ** 2;
78
75
  if (s === 0) return null;
79
76
  let c = o / s;
@@ -82,4 +79,4 @@ function o(t) {
82
79
  intercept: a - c * i
83
80
  };
84
81
  }
85
- export { o as linearRegression, r as niceRangeTicks };
82
+ export { o as linearRegression, i as niceRangeTicks };
@@ -1,49 +1,47 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, n) {
4
- e -= 316;
5
- let i = r(), a = i[e];
6
- t.KZuMpM === void 0 && (t.mDmaKC = function(e) {
2
+ function e(t, n) {
3
+ t -= 499;
4
+ let r = u(), i = r[t];
5
+ e.UiaOsW === void 0 && (e.sXQGTO = function(e) {
7
6
  let t = "", n = "";
8
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);
9
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
9
  return decodeURIComponent(n);
11
- }, t.VjRrbv = {}, t.KZuMpM = !0);
12
- let o = i[0];
13
- t.Inbeiu !== o && (t.VjRrbv = {}, t.Inbeiu = o);
14
- let s = t.VjRrbv[e];
15
- return s === void 0 ? (a = t.mDmaKC(a), t.VjRrbv[e] = a) : a = s, a;
10
+ }, e.vrYpeR = {}, e.UiaOsW = !0);
11
+ let a = r[0];
12
+ e.BRMuYl !== a && (e.vrYpeR = {}, e.BRMuYl = a);
13
+ let o = e.vrYpeR[t];
14
+ return o === void 0 ? (i = e.sXQGTO(i), e.vrYpeR[t] = i) : i = o, i;
16
15
  }
17
- (function(e, n) {
18
- let r = t, i = e();
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
19
  for (;;) try {
20
- if (-parseInt(r(337)) / 1 + parseInt(r(375)) / 2 + -parseInt(r(344)) / 3 + -parseInt(r(332)) / 4 * (parseInt(r(387)) / 5) + -parseInt(r(364)) / 6 + -parseInt(r(357)) / 7 + parseInt(r(353)) / 8 == n) break;
20
+ if (parseInt(r(576)) / 1 + -parseInt(r(548)) / 2 + parseInt(r(501)) / 3 * (parseInt(r(546)) / 4) + -parseInt(r(571)) / 5 + parseInt(r(540)) / 6 * (-parseInt(r(506)) / 7) + -parseInt(r(504)) / 8 * (parseInt(r(560)) / 9) + parseInt(r(573)) / 10 == n) break;
21
21
  i.push(i.shift());
22
22
  } catch {
23
23
  i.push(i.shift());
24
24
  }
25
- })(r, 253833);
25
+ })(u, 380007);
26
26
  import { TIMING as n } from "../../hooks/timing.js";
27
- function r() {
28
- let e = /* @__PURE__ */ "y2XPzw50wq.mti5nJy3ohP6vxzuDq.DhjHBNnMB3jT.rxnJyxbL.zgvSDgfz.zgvSDgfy.zM9YrwfJAa.zgvSDgfnB2rL.C2nYB2XSv2LKDgG.zhmTC2nYB2XSlwfYzweTlwzHzgu.ywrKrxzLBNrmAxn0zw5LCG.zgf0ys1MywrLlwXLzNq.mJi0nJe4uMDUqLDq.A2v5zg93BG.C2nYB2XSqNK.y2XPzw50wa.ChGSidaP.BwLU.AgvPz2H0.zgf0ys1KCMfNz2LUzW.C2v0qxr0CMLIDxrL.y3vYCMvUDfrHCMDLDa.Ag9YAxPVBNrHBa.zhmTC2nYB2XSlwfYzwfFx3rODw1I.ndmZnde1sLnbA2zX.DgfYz2v0.DhjHBNnSyxrLm2qOmcWG.ChjLDMvUDerLzMf1Bhq.C3rHCNq.zgf0ys1Zy3jVBgXPBMC.y2XPzw50v2LKDgG.D2HLzwW.Cg9PBNrLCKLK.BgvMDa.CMf0Aw8.BNvTyMvY.C2v0ug9PBNrLCKnHChr1CMu.yxHPCW.B2jZzxj2zq.C2nYB2XStgvMDa.zgf0ys1MywrLlxjPz2H0.zhmTC2nYB2XSlwfYzwfFx3zPzxDWB3j0.zMLSDgvY.Ag92zxjhCMfJzq.CMvTB3zLrxzLBNrmAxn0zw5LCG.mtjhAhHtugS.y2XLyxjuAw1LB3v0.Cg9PBNrLCG.Bwf4.yxv0BW.mteWnZq4uhjNrgfe.yNv0Dg9U.CMvTB3zLqxr0CMLIDxrL.y3vYCMvUDa.zgf0ys1Zy3jVBgXHyMXLlxK.D2LKDgG.zgLZy29UBMvJDa.otGYmtGYz1PIzvb3.zgL2.C3r5Bgu.C2nYB2XSvg9W.C2v0vgLTzw91Da.ChGSidaSidaP.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls14.BgvUz3rO.C3rVCfbYB3bHz2f0Aw9U.mteZnZa0mdbeDKrntw8.C2nYB2XSsgvPz2H0.C21VB3rO.DMvYDgLJywW.mJu1odmWnefuuvr5uW.Dg9W.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls15.y2XPzw50sgvPz2H0.zgf0ys1MywrLlwjVDhrVBq.CMvNAw9U".split(".");
29
- return r = function() {
27
+ import { cx as r } from "../../primitives/index.js";
28
+ import { focusableIn as i } from "../../hooks/useFocusTrap.js";
29
+ /* empty css */
30
+ import { useCallback as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
31
+ function u() {
32
+ let e = /* @__PURE__ */ "zhmTC2nYB2XSlwfYzweTlwzHzgu.zgf0ys1MywrLlxjPz2H0.y3vYCMvUDfrHCMDLDa.C2nYB2XSqNK.y2XPzw50v2LKDgG.B2jZzxj2zq.DhjHBNnMB3jT.y2XPzw50sgvPz2H0.C3rVCfbYB3bHz2f0Aw9U.zgvSDgfnB2rL.mZi4odiZngrAA0LPyW.CMvTB3zLrxzLBNrmAxn0zw5LCG.zgLZy29UBMvJDa.DgfYz2v0.zhmTC2nYB2XSlwfYzwfFx3zPzxDWB3j0.yNv0Dg9U.mZaXmJGZnKffEereyG.AgvPz2H0.nZq5odq2Du9WrK1K.zgvSDgfz.ChGSidaP.Cg9PBNrLCKLK.Ag9YAxPVBNrHBa.Cg9PBNrLCG.BgvMDa.zgf0ys1Zy3jVBgXHyMXLlxG.C2v0vgLTzw91Da.BwLU.DhjHBNnSyxrLm2qO.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls14.mJuYwKfzwNfR.A2v5.CMvNAw9U.zgf0ys1Zy3jVBgXHyMXLlxK.y3vYCMvUDa.zgf0ys1MywrLlxrVCa.zMLSDgvY.zgf0ys1Zy3jVBgXPBMC.zhmTC2nYB2XSlwfYzwfFx3rODw1I.zgf0ys1MywrLlwjVDhrVBq.Dg9W.mte4mtKZmhrxCurvqW.D2HLzwW.mZG5nJi4mezhBKTvqG.C3rHCNq.zNvUy3rPB24.ndCXody2rwv5wxD2.C2nYB2XSvg9W.zgvSDgfy.m3rWD2PKzW.A2v5zg93BG.ChjLDMvUDerLzMf1Bhq.mJe1mJHoC0fZs0G.zhmTC2nYB2XSlwfYzwfFx2jHCIbKCY1Zy3jVBgWTyxjLyv9FyMfYls15.n01nse5wDW.C2nYB2XSv2LKDgG.zgf0ys1MywrLlwXLzNq.C2v0qxr0CMLIDxrL.C2nYB2XStgvMDa.ywrKrxzLBNrmAxn0zw5LCG.zM9YrwfJAa.CMf0Aw8.BNvTyMvY.yxHPCW.zgL2.ChGSidaSidaP.DhjHBNnSyxrLm2qOmcWG.C3r5Bgu.y2XPzw50wa.DMvYDgLJywW.C2nYB2XSsgvPz2H0.y2XLyxjuAw1LB3v0.BgvUz3rO.CMvTB3zLqxr0CMLIDxrL.Bwf4.zgf0ys1KCMfNz2LUzW.C21VB3rO.y2XPzw50wq".split(".");
33
+ return u = function() {
30
34
  return e;
31
- }, r();
35
+ }, u();
32
36
  }
33
- import { cx as i } from "../../primitives/index.js";
34
- import { focusableIn as a } from "../../hooks/useFocusTrap.js";
35
- /* empty css */
36
- import { useCallback as o, useEffect as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
37
37
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
38
- var p = 12, m = 24, h = 8, g = (e, n, r) => {
39
- let i = t;
40
- r ? e[i(383)](n, "") : e[i(339)](n);
41
- }, _ = (e, n) => {
42
- let r = t;
43
- typeof e == "function" ? e(n) : e && (e[r(340)] = n);
38
+ var p = 12, m = 24, h = 8, g = (t, n, r) => {
39
+ r ? t.setAttribute(n, "") : t[e(525)](n);
40
+ }, _ = (t, n) => {
41
+ typeof t === e(575) ? t(n) : t && (t.current = n);
44
42
  };
45
- function v({ children: r, orientation: v = e(356), maxHeight: y, scrollbars: b = e(336), fade: x, stickToBottom: S, onAtBottomChange: C, viewportRef: w, viewportClassName: ee, focusable: T, onScroll: E, className: D, style: O, "aria-label": k, "aria-labelledby": A, ...j }) {
46
- let M = e, N = l(null), P = l(null), F = l(null), I = l(null), L = l(null), R = l(null), z = l(null), B = l({
43
+ function v({ children: u, orientation: v = t(521), maxHeight: y, scrollbars: b = "auto", fade: x, stickToBottom: S, onAtBottomChange: C, viewportRef: w, viewportClassName: ee, focusable: T, onScroll: E, className: D, style: O, "aria-label": k, "aria-labelledby": A, ...j }) {
44
+ let M = t, N = c(null), P = c(null), F = c(null), I = c(null), L = c(null), R = c(null), z = c(null), B = c({
47
45
  x: {
48
46
  track: 0,
49
47
  thumb: 0
@@ -52,113 +50,113 @@ function v({ children: r, orientation: v = e(356), maxHeight: y, scrollbars: b =
52
50
  track: 0,
53
51
  thumb: 0
54
52
  }
55
- }), V = l(!0), H = l(void 0), U = l(null), [W, G] = u(!1), K = l(C);
56
- s(() => {
57
- let e = t;
58
- K[e(340)] = C;
53
+ }), V = c(!0), H = c(void 0), U = c(null), [W, G] = l(!1), K = c(C);
54
+ o(() => {
55
+ let t = e;
56
+ K[t(564)] = C;
59
57
  });
60
- let q = o(() => {
61
- let e = t, n = N.current, r = P[e(340)];
58
+ let q = a(() => {
59
+ let t = e, n = N[t(564)], r = P.current;
62
60
  if (!n || !r) return;
63
- let { scrollTop: i, scrollLeft: a, scrollHeight: o, scrollWidth: s, clientHeight: c, clientWidth: l } = r, u = o - c, d = s - l, f = v !== e(385) && u > 1, _ = v !== "vertical" && d > 1;
64
- if (g(n, e(341), f), g(n, "data-scrollable-x", _), f && R[e(340)]) {
65
- let t = c - 12 - (_ ? p : 0), n = Math[e(380)](t, Math[e(335)](m, t * c / o)), r = (t - n) * Math.min(u, Math[e(335)](0, i)) / u;
66
- B[e(340)].y = {
67
- track: t,
61
+ let { scrollTop: i, scrollLeft: a, scrollHeight: o, scrollWidth: s, clientHeight: c, clientWidth: l } = r, u = o - c, d = s - l, f = v !== t(552) && u > 1, _ = v !== t(521) && d > 1;
62
+ if (g(n, t(563), f), g(n, t(555), _), f && R.current) {
63
+ let e = c - 12 - (_ ? p : 0), n = Math.min(e, Math[t(526)](m, e * c / o)), r = (e - n) * Math[t(557)](u, Math[t(526)](0, i)) / u;
64
+ B[t(564)].y = {
65
+ track: e,
68
66
  thumb: n
69
- }, R.current[e(346)][e(381)] = n + "px", R[e(340)][e(346)][e(365)] = e(389) + r + e(379);
67
+ }, R.current.style[t(547)] = n + "px", R.current[t(519)][t(536)] = t(518) + r + t(550);
70
68
  }
71
69
  if (_ && z.current) {
72
- let t = l - 12 - (f ? p : 0), n = Math.min(t, Math[e(335)](m, t * l / s)), r = (t - n) * Math[e(380)](d, Math[e(335)](0, a)) / d;
73
- B[e(340)].x = {
74
- track: t,
70
+ let e = l - 12 - (f ? p : 0), n = Math.min(e, Math[t(526)](m, e * l / s)), r = (e - n) * Math[t(557)](d, Math[t(526)](0, a)) / d;
71
+ B[t(564)].x = {
72
+ track: e,
75
73
  thumb: n
76
- }, z[e(340)][e(346)][e(342)] = n + "px", z[e(340)][e(346)][e(365)] = "translate3d(" + r + e(349);
74
+ }, z[t(564)][t(519)].width = n + "px", z[t(564)][t(519)][t(536)] = t(558) + r + t(517);
77
75
  }
78
- g(n, "data-fade-top", f && i > 1), g(n, e(361), f && i < u - 1), g(n, e(374), _ && a > 1), g(n, e(327), _ && a < d - 1);
76
+ g(n, t(565), f && i > 1), g(n, t(569), f && i < u - 1), g(n, t(508), _ && a > 1), g(n, t(531), _ && a < d - 1);
79
77
  let y = u - i <= h;
80
- y !== V[e(340)] && (V.current = y, K[e(340)]?.(y));
78
+ y !== V[t(564)] && (V[t(564)] = y, K[t(564)]?.(y));
81
79
  }, [v]);
82
- c(() => {
83
- let e = t, n = P[e(340)], r = F[e(340)];
80
+ s(() => {
81
+ let t = e, n = P[t(564)], r = F[t(564)];
84
82
  if (!n || !r) return;
85
- S && (n[e(347)] = n[e(354)]);
86
- let i = () => {
87
- let t = e;
88
- S && V[t(340)] && (n[t(347)] = n[t(354)]), q();
89
- let i = n[t(354)] - n.clientHeight > 1 || n[t(371)] - n[t(317)] > 1;
90
- G(i && a(r)[t(351)] === 0);
83
+ S && (n[t(499)] = n[t(522)]);
84
+ let a = () => {
85
+ let e = t;
86
+ S && V[e(564)] && (n[e(499)] = n.scrollHeight), q();
87
+ let a = n[e(522)] - n[e(537)] > 1 || n[e(507)] - n[e(534)] > 1;
88
+ G(a && i(r)[e(524)] === 0);
91
89
  };
92
- i();
93
- let o = new ResizeObserver(i);
94
- return o[e(325)](n), o[e(325)](r), () => o[e(343)]();
95
- }, [S, q]), s(() => {
96
- let e = t, n = P[e(340)], r = [I[e(340)], L[e(340)]][e(329)]((e) => !!e), i = (t) => {
97
- let r = e;
90
+ a();
91
+ let o = new ResizeObserver(a);
92
+ return o[t(535)](n), o.observe(r), () => o[t(542)]();
93
+ }, [S, q]), o(() => {
94
+ let t = e, n = P[t(564)], r = [I[t(564)], L[t(564)]][t(566)]((e) => !!e), i = (e) => {
95
+ let r = t;
98
96
  if (!n) return;
99
- let i = t[r(370)] === 1 ? 16 : t[r(370)] === 2 ? n.clientHeight : 1;
100
- t[r(390)](), n[r(377)]({
101
- left: t[r(368)] * i,
102
- top: t[r(367)] * i
97
+ let i = e[r(539)] === 1 ? 16 : e.deltaMode === 2 ? n.clientHeight : 1;
98
+ e[r(503)](), n[r(533)]({
99
+ left: e[r(500)] * i,
100
+ top: e[r(549)] * i
103
101
  });
104
102
  };
105
- return r.forEach((e) => e.addEventListener("wheel", i, { passive: !1 })), () => r[e(369)]((t) => t[e(331)](e(318), i));
106
- }, [v]), s(() => () => window[M(333)](H.current), []);
103
+ return r[t(512)]((e) => e[t(511)](t(572), i, { passive: !1 })), () => r[t(512)]((e) => e.removeEventListener(t(572), i));
104
+ }, [v]), o(() => () => window[M(523)](H.current), []);
107
105
  let J = (e) => {
108
106
  let t = M;
109
107
  q();
110
- let r = N[t(340)];
111
- r && (r[t(383)](t(316), ""), window[t(333)](H[t(340)]), H.current = window[t(348)](() => r[t(339)](t(316)), n[t(330)])), E?.(e);
112
- }, Y = l((e) => {
108
+ let r = N[t(564)];
109
+ r && (r[t(509)](t(567), ""), window.clearTimeout(H[t(564)]), H[t(564)] = window[t(556)](() => r[t(525)](t(567)), n.hoverGrace)), E?.(e);
110
+ }, Y = c((e) => {
113
111
  let t = M;
114
- if (e.key !== t(366) || !U[t(340)]) return;
115
- e[t(390)](), e[t(352)]();
116
- let n = P.current, r = U[t(340)];
117
- n && (r.axis === "y" ? n[t(347)] = r[t(391)] : n[t(326)] = r[t(391)]), X();
112
+ if (e[t(561)] !== "Escape" || !U[t(564)]) return;
113
+ e[t(503)](), e[t(538)]();
114
+ let n = P[t(564)], r = U[t(564)];
115
+ n && (r[t(515)] === "y" ? n[t(499)] = r[t(574)] : n.scrollLeft = r[t(574)]), X();
118
116
  }), X = () => {
119
117
  let e = M;
120
- U[e(340)] = null, N[e(340)]?.[e(339)](e(382)), window[e(331)](e(376), Y[e(340)], !0);
118
+ U[e(564)] = null, N[e(564)]?.[e(525)]("data-dragging"), window[e(541)](e(502), Y[e(564)], !0);
121
119
  }, Z = (e) => (t) => {
122
- let n = M, r = P[n(340)];
123
- if (t[n(338)] !== 0 || !r) return;
124
- t[n(390)](), t.stopPropagation(), t.currentTarget[n(323)](t[n(319)]);
125
- let { track: i, thumb: a } = B[n(340)][e], o = e === "y" ? r[n(354)] - r[n(360)] : r[n(371)] - r[n(317)];
126
- U[n(340)] = {
120
+ let n = M, r = P.current;
121
+ if (t[n(545)] !== 0 || !r) return;
122
+ t.preventDefault(), t.stopPropagation(), t[n(532)].setPointerCapture(t[n(551)]);
123
+ let { track: i, thumb: a } = B[n(564)][e], o = e === "y" ? r[n(522)] - r.clientHeight : r[n(507)] - r[n(534)];
124
+ U[n(564)] = {
127
125
  axis: e,
128
- pointer: e === "y" ? t[n(363)] : t[n(378)],
129
- start: e === "y" ? r[n(347)] : r.scrollLeft,
130
- ratio: o / Math[n(335)](1, i - a)
131
- }, N.current?.[n(383)](n(382), ""), window[n(373)](n(376), Y[n(340)], !0);
126
+ pointer: e === "y" ? t[n(529)] : t[n(520)],
127
+ start: e === "y" ? r[n(499)] : r[n(510)],
128
+ ratio: o / Math.max(1, i - a)
129
+ }, N[n(564)]?.setAttribute(n(527), ""), window[n(511)](n(502), Y[n(564)], !0);
132
130
  }, Q = (e) => {
133
- let t = M, n = U[t(340)], r = P[t(340)];
131
+ let t = M, n = U[t(564)], r = P[t(564)];
134
132
  if (!n || !r) return;
135
- let i = n[t(391)] + ((n.axis === "y" ? e[t(363)] : e[t(378)]) - n[t(334)]) * n[t(321)];
136
- n[t(324)] === "y" ? r[t(347)] = i : r.scrollLeft = i;
133
+ let i = n[t(574)] + ((n[t(515)] === "y" ? e.clientY : e[t(520)]) - n[t(553)]) * n[t(513)];
134
+ n[t(515)] === "y" ? r[t(499)] = i : r[t(510)] = i;
137
135
  }, $ = (e) => (t) => {
138
- let n = M, r = P[n(340)], i = e === "y" ? R[n(340)] : z[n(340)];
139
- if (t[n(338)] !== 0 || !r || !i || t[n(388)] !== t[n(384)]) return;
140
- t[n(390)]();
136
+ let n = M, r = P[n(564)], i = e === "y" ? R[n(564)] : z[n(564)];
137
+ if (t[n(545)] !== 0 || !r || !i || t[n(543)] !== t[n(532)]) return;
138
+ t[n(503)]();
141
139
  let a = i.getBoundingClientRect();
142
140
  if (e === "y") {
143
- let e = t[n(363)] < a[n(358)] ? -1 : 1;
144
- r[n(377)]({
145
- top: e * r[n(360)] * .9,
146
- behavior: n(355)
141
+ let e = t[n(529)] < a[n(570)] ? -1 : 1;
142
+ r[n(533)]({
143
+ top: e * r.clientHeight * .9,
144
+ behavior: n(528)
147
145
  });
148
146
  } else {
149
- let e = t[n(378)] < a[n(320)] ? -1 : 1;
150
- r[n(377)]({
147
+ let e = t[n(520)] < a[n(554)] ? -1 : 1;
148
+ r[n(533)]({
151
149
  left: e * r.clientWidth * .9,
152
- behavior: "smooth"
150
+ behavior: n(528)
153
151
  });
154
152
  }
155
153
  }, te = (e) => {
156
154
  let t = M;
157
- P[t(340)] = e, _(w, e);
158
- }, ne = T ?? W, re = typeof x === M(322) ? x : 28, ie = v !== "horizontal", ae = v !== M(356);
159
- return f(M(345), {
155
+ P[t(564)] = e, _(w, e);
156
+ }, ne = T ?? W, re = typeof x === M(514) ? x : 28, ie = v !== M(552), ae = v !== M(521);
157
+ return f(M(516), {
160
158
  ref: N,
161
- className: i("ds-scroll-area", !!x && M(372), D),
159
+ className: r("ds-scroll-area", !!x && M(530), D),
162
160
  "data-orientation": v,
163
161
  "data-scrollbars": b,
164
162
  style: {
@@ -168,48 +166,48 @@ function v({ children: r, orientation: v = e(356), maxHeight: y, scrollbars: b =
168
166
  },
169
167
  ...j,
170
168
  children: [
171
- d("div", {
169
+ d(M(516), {
172
170
  ref: te,
173
- className: i(M(328), ee),
174
- role: k || A ? M(362) : void 0,
171
+ className: r(M(544), ee),
172
+ role: k || A ? M(562) : void 0,
175
173
  "aria-label": k,
176
174
  "aria-labelledby": A,
177
175
  tabIndex: ne ? 0 : void 0,
178
176
  onScroll: J,
179
- children: d(M(345), {
177
+ children: d(M(516), {
180
178
  ref: F,
181
179
  className: "ds-scroll-area__content",
182
- children: r
180
+ children: u
183
181
  })
184
182
  }),
185
- ie && d(M(345), {
183
+ ie && d(M(516), {
186
184
  ref: I,
187
- className: M(359),
185
+ className: M(505),
188
186
  "aria-hidden": !0,
189
187
  onPointerDown: $("y"),
190
- children: d(M(345), {
188
+ children: d(M(516), {
191
189
  ref: R,
192
- className: M(386),
190
+ className: "ds-scroll-area__thumb",
193
191
  onPointerDown: Z("y"),
194
192
  onPointerMove: Q,
195
193
  onPointerUp: X,
196
194
  onPointerCancel: X,
197
- onLostPointerCapture: () => U[M(340)] && X()
195
+ onLostPointerCapture: () => U.current && X()
198
196
  })
199
197
  }),
200
- ae && d(M(345), {
198
+ ae && d(M(516), {
201
199
  ref: L,
202
- className: M(350),
200
+ className: M(559),
203
201
  "aria-hidden": !0,
204
202
  onPointerDown: $("x"),
205
- children: d(M(345), {
203
+ children: d(M(516), {
206
204
  ref: z,
207
- className: M(386),
205
+ className: M(568),
208
206
  onPointerDown: Z("x"),
209
207
  onPointerMove: Q,
210
208
  onPointerUp: X,
211
209
  onPointerCancel: X,
212
- onLostPointerCapture: () => U[M(340)] && X()
210
+ onLostPointerCapture: () => U[M(564)] && X()
213
211
  })
214
212
  })
215
213
  ]