@solostylist/ui-kit 1.0.197 → 1.0.200

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 (196) hide show
  1. package/dist/{ArrowUpward-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
  2. package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
  3. package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
  4. package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
  5. package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
  6. package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
  7. package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
  8. package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
  9. package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
  10. package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
  11. package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
  12. package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
  13. package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
  14. package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
  15. package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
  16. package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
  17. package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
  18. package/dist/assets/s-overlay-scrollbar.css +1 -1
  19. package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
  20. package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
  21. package/dist/defaultTheme-CulFxfLR.js +5 -0
  22. package/dist/entries/core.d.ts +2 -2
  23. package/dist/entries/core.js +28 -30
  24. package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
  25. package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
  26. package/dist/main.js +92 -94
  27. package/dist/s-accordion/s-accordion.js +89 -89
  28. package/dist/s-action-overlay/s-action-overlay.js +7 -7
  29. package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
  30. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
  31. package/dist/s-avatar/s-avatar.js +2 -2
  32. package/dist/s-blur-text/s-blur-text.js +25 -24
  33. package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
  34. package/dist/s-carousel/s-carousel.d.ts +4 -4
  35. package/dist/s-carousel/s-carousel.js +4 -4
  36. package/dist/s-chat-input/s-chat-input.js +4 -4
  37. package/dist/s-chat-message/s-chat-message.js +135 -124
  38. package/dist/s-chips/s-chips.js +35 -35
  39. package/dist/s-code-block/s-code-block.js +1 -1
  40. package/dist/s-comment-message/s-comment-message.js +5 -5
  41. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  42. package/dist/s-countdown/s-count-box.js +40 -37
  43. package/dist/s-countdown/s-count-down.d.ts +15 -10
  44. package/dist/s-countdown/s-count-down.js +79 -124
  45. package/dist/s-data-table/s-data-table.js +75 -76
  46. package/dist/s-date-picker/s-date-picker.js +43 -47
  47. package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
  48. package/dist/s-dialog/s-dialog.js +1 -1
  49. package/dist/s-dialog-confirm/index.d.ts +1 -1
  50. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +1 -1
  51. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  52. package/dist/s-dialog-message/index.d.ts +1 -1
  53. package/dist/s-dialog-message/s-dialog-message.d.ts +1 -1
  54. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  55. package/dist/s-empty/s-empty.js +1 -1
  56. package/dist/s-file-dropzone/s-file-dropzone.js +16 -16
  57. package/dist/s-file-icon/s-file-icon.js +15 -15
  58. package/dist/s-flex-box/s-flex-box.js +1 -1
  59. package/dist/s-gallery/s-gallery.js +1 -1
  60. package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
  61. package/dist/s-image-comparison/s-image-comparison.js +3 -3
  62. package/dist/s-image-modal/s-image-modal.js +7 -7
  63. package/dist/s-label/s-label.d.ts +1 -1
  64. package/dist/s-label/s-label.js +1 -1
  65. package/dist/s-language-switcher/s-language-switcher.js +8 -8
  66. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  67. package/dist/s-moving-border/s-moving-border.d.ts +5 -5
  68. package/dist/s-multi-select/s-multi-select.js +3 -3
  69. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
  70. package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
  71. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
  72. package/dist/s-review/s-review.d.ts +3 -2
  73. package/dist/s-review/s-review.js +19 -19
  74. package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
  75. package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
  76. package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
  77. package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
  78. package/dist/s-select/s-select.js +54 -67
  79. package/dist/s-select-list/s-select-list.js +1 -1
  80. package/dist/s-snackbar-message/s-snackbar-message.js +18 -18
  81. package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
  82. package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
  83. package/dist/s-stripe/s-stripe-number.d.ts +1 -1
  84. package/dist/s-stripe/stripe-input.d.ts +1 -1
  85. package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
  86. package/dist/s-text-editor/s-text-editor.js +1 -1
  87. package/dist/s-text-field/s-text-field.js +1 -1
  88. package/dist/s-text-shimmer/s-text-shimmer.js +3 -3
  89. package/dist/s-theme-demo/s-theme-demo.js +2 -2
  90. package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
  91. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  92. package/dist/s-tip/s-tip.js +3 -3
  93. package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
  94. package/dist/theme/components/avatar.js +1 -1
  95. package/dist/theme/components/button.d.ts +2 -2
  96. package/dist/theme/components/button.js +1 -1
  97. package/dist/theme/components/chip.d.ts +2 -2
  98. package/dist/theme/components/chip.js +1 -1
  99. package/dist/theme/components/icon-button.d.ts +2 -2
  100. package/dist/theme/components/popover.js +2 -2
  101. package/dist/theme/components/skeleton.js +1 -1
  102. package/dist/theme/components/tooltip.js +5 -5
  103. package/dist/theme/customizations/data-display.js +12 -12
  104. package/dist/theme/customizations/feedback.js +2 -2
  105. package/dist/theme/customizations/inputs.js +12 -12
  106. package/dist/theme/customizations/navigation.js +28 -28
  107. package/dist/theme/customizations/surfaces.js +11 -11
  108. package/dist/theme/theme-primitives.js +1 -1
  109. package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
  110. package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
  111. package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
  112. package/dist/utils/index.d.ts +0 -1
  113. package/dist/utils/index.js +7 -9
  114. package/dist/utils/logger.d.ts +1 -1
  115. package/dist/utils-D1UMIV0b.js +40 -0
  116. package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
  117. package/package.json +67 -62
  118. package/dist/defaultTheme-DLue8Fr1.js +0 -5
  119. package/dist/s-accordion/package.json +0 -5
  120. package/dist/s-action-overlay/package.json +0 -5
  121. package/dist/s-ai-tool-bar/package.json +0 -5
  122. package/dist/s-autocomplete/package.json +0 -5
  123. package/dist/s-avatar/package.json +0 -5
  124. package/dist/s-blur-text/package.json +0 -5
  125. package/dist/s-breadcrumbs/package.json +0 -5
  126. package/dist/s-button/package.json +0 -5
  127. package/dist/s-button-link/package.json +0 -5
  128. package/dist/s-carousel/package.json +0 -5
  129. package/dist/s-category-card/package.json +0 -5
  130. package/dist/s-chat-input/package.json +0 -5
  131. package/dist/s-chat-message/package.json +0 -5
  132. package/dist/s-checkbox/package.json +0 -5
  133. package/dist/s-chip/package.json +0 -5
  134. package/dist/s-chips/package.json +0 -5
  135. package/dist/s-code-block/package.json +0 -5
  136. package/dist/s-comment-message/package.json +0 -5
  137. package/dist/s-copyable-text/package.json +0 -5
  138. package/dist/s-countdown/package.json +0 -5
  139. package/dist/s-data-table/package.json +0 -5
  140. package/dist/s-date-picker/package.json +0 -5
  141. package/dist/s-datetime-picker/package.json +0 -5
  142. package/dist/s-dialog/package.json +0 -5
  143. package/dist/s-dialog-confirm/package.json +0 -5
  144. package/dist/s-dialog-message/package.json +0 -5
  145. package/dist/s-empty/package.json +0 -5
  146. package/dist/s-error/package.json +0 -5
  147. package/dist/s-error-layout/package.json +0 -5
  148. package/dist/s-file-dropzone/package.json +0 -5
  149. package/dist/s-file-icon/package.json +0 -5
  150. package/dist/s-flex-box/package.json +0 -5
  151. package/dist/s-form/package.json +0 -5
  152. package/dist/s-gallery/package.json +0 -5
  153. package/dist/s-glow-button/package.json +0 -5
  154. package/dist/s-gradient-icon/package.json +0 -5
  155. package/dist/s-i18n-provider/package.json +0 -5
  156. package/dist/s-icon-button/package.json +0 -5
  157. package/dist/s-image-comparison/package.json +0 -5
  158. package/dist/s-image-modal/package.json +0 -5
  159. package/dist/s-item-not-found/package.json +0 -5
  160. package/dist/s-label/package.json +0 -5
  161. package/dist/s-language-switcher/package.json +0 -5
  162. package/dist/s-lazy-image/package.json +0 -5
  163. package/dist/s-localization-provider/package.json +0 -5
  164. package/dist/s-moving-border/package.json +0 -5
  165. package/dist/s-multi-select/package.json +0 -5
  166. package/dist/s-no-ssr/package.json +0 -5
  167. package/dist/s-overlay-scrollbar/package.json +0 -5
  168. package/dist/s-pagination/package.json +0 -5
  169. package/dist/s-pixel-reveal/package.json +0 -5
  170. package/dist/s-radial-pulse-animate/package.json +0 -5
  171. package/dist/s-rating/package.json +0 -5
  172. package/dist/s-review/package.json +0 -5
  173. package/dist/s-scroll-reveal/package.json +0 -6
  174. package/dist/s-scroll-to-top/package.json +0 -5
  175. package/dist/s-scroll-velocity/package.json +0 -5
  176. package/dist/s-select/package.json +0 -5
  177. package/dist/s-select-list/package.json +0 -5
  178. package/dist/s-skeleton/package.json +0 -5
  179. package/dist/s-snackbar-message/package.json +0 -5
  180. package/dist/s-spotlight-cursor/package.json +0 -5
  181. package/dist/s-stripe/package.json +0 -5
  182. package/dist/s-tabs/package.json +0 -4
  183. package/dist/s-text-editor/package.json +0 -5
  184. package/dist/s-text-field/package.json +0 -5
  185. package/dist/s-text-shimmer/package.json +0 -5
  186. package/dist/s-text-truncation/package.json +0 -5
  187. package/dist/s-theme-demo/package.json +0 -5
  188. package/dist/s-theme-provider/package.json +0 -5
  189. package/dist/s-theme-switch/package.json +0 -5
  190. package/dist/s-tip/package.json +0 -5
  191. package/dist/s-two-pane-layout/package.json +0 -5
  192. package/dist/s-typewriter-text/package.json +0 -6
  193. package/dist/s-zoom-image/package.json +0 -5
  194. package/dist/utils/bytes-to-size.d.ts +0 -1
  195. package/dist/utils/bytes-to-size.js +0 -9
  196. package/dist/utils-DJIrqgo5.js +0 -18
@@ -1,5 +1,5 @@
1
- import { j as A } from "../jsx-runtime-tc70JA_2.js";
2
- import { forwardRef as Q, useRef as h, useEffect as N, useCallback as q } from "react";
1
+ import { j as q } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as Q, useRef as u, useEffect as N, useCallback as y } from "react";
3
3
  import { brand as E } from "../theme/theme-primitives.js";
4
4
  class U {
5
5
  x;
@@ -15,104 +15,109 @@ class U {
15
15
  counterStep;
16
16
  isReverse;
17
17
  isShimmer;
18
- constructor(c, l, o, z, y, M, b) {
19
- this.x = c, this.y = l, this.color = o, this.speed = (Math.random() * 0.8 + 0.1) * z, this.size = 0, this.sizeStep = Math.random() * 0.4, this.minSize = 0.5, this.maxSize = b, this.delay = y, this.counter = 0, this.counterStep = M, this.isReverse = !1, this.isShimmer = !1;
18
+ constructor(a, f, h, d, M, b, g) {
19
+ this.x = a, this.y = f, this.color = h, this.speed = (Math.random() * 0.8 + 0.1) * d, this.size = 0, this.sizeStep = Math.random() * 0.4, this.minSize = 0.5, this.maxSize = g, this.delay = M, this.counter = 0, this.counterStep = b, this.isReverse = !1, this.isShimmer = !1;
20
20
  }
21
- update(c) {
22
- return c ? this.counter < this.delay ? (this.counter += this.counterStep, !0) : (this.isShimmer ? this.isReverse ? (this.size -= this.speed, this.size <= this.minSize && (this.size = this.minSize, this.isReverse = !1)) : (this.size += this.speed, this.size >= this.maxSize && (this.size = this.maxSize, this.isReverse = !0)) : this.size < this.maxSize ? this.size += this.sizeStep : this.isShimmer = !0, !0) : (this.isShimmer = !1, this.counter = 0, this.size > 0 ? (this.size -= 0.1, !0) : !1);
21
+ update(a) {
22
+ return a ? this.counter < this.delay ? (this.counter += this.counterStep, !0) : (this.isShimmer ? this.isReverse ? (this.size -= this.speed, this.size <= this.minSize && (this.size = this.minSize, this.isReverse = !1)) : (this.size += this.speed, this.size >= this.maxSize && (this.size = this.maxSize, this.isReverse = !0)) : this.size < this.maxSize ? this.size += this.sizeStep : this.isShimmer = !0, !0) : (this.isShimmer = !1, this.counter = 0, this.size > 0 ? (this.size -= 0.1, !0) : !1);
23
23
  }
24
- draw(c, l) {
25
- const o = (l - this.size) * 0.5;
26
- c.fillRect(this.x + o, this.y + o, this.size, this.size);
24
+ draw(a, f) {
25
+ const h = (f - this.size) * 0.5;
26
+ a.fillRect(this.x + h, this.y + h, this.size, this.size);
27
27
  }
28
28
  }
29
29
  const Z = Q(
30
30
  ({
31
- gap: s = 5,
32
- speed: c = 100,
33
- colors: l = [E[400], E[500], E[600]],
34
- loading: o = !0,
35
- src: z,
36
- alt: y = "",
37
- style: M,
38
- children: b,
31
+ gap: n = 5,
32
+ speed: a = 100,
33
+ colors: f = [E[400], E[500], E[600]],
34
+ loading: h = !0,
35
+ src: d,
36
+ alt: M = "",
37
+ style: b,
38
+ children: g,
39
39
  instant: k = !0,
40
40
  ...$
41
- }, S) => {
42
- const g = h(null), w = h(null), D = h(null), p = h(/* @__PURE__ */ new Map()), a = h(null), I = h(1e3 / 60), C = h(0), P = h(!1);
41
+ }, p) => {
42
+ const C = u(null), z = u(null), D = u(null), m = u(/* @__PURE__ */ new Map()), l = u(null), I = u(1e3 / 60), P = u(0), j = u(!1);
43
43
  N(() => {
44
- P.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
44
+ j.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
45
45
  }, []);
46
- const O = q((e, n, u, r) => {
47
- const t = e - u, i = n - r;
46
+ const O = y((e, r, c, s) => {
47
+ const t = e - c, i = r - s;
48
48
  return t * t + i * i;
49
- }, []), V = q(() => {
50
- const e = g.current, n = e?.getContext("2d");
51
- if (!e || !n) return;
52
- p.current = /* @__PURE__ */ new Map();
53
- const u = P.current ? 0 : Math.max(0, Math.min(100, c)) * 1e-3, r = window.devicePixelRatio || 1, t = e.width / r, i = e.height / r, x = 2, X = 0.5, H = (t + i) * 0.01, T = t % s / 2, W = i % s / 2;
54
- for (let f = T; f < t; f += s)
55
- for (let m = W; m < i; m += s) {
56
- const d = l[Math.floor(Math.random() * l.length)];
57
- let v = 0;
58
- if (!k && !P.current) {
59
- const G = f + s / 2, J = m + s / 2, K = t / 2, L = i / 2;
60
- v = Math.sqrt(O(G, J, K, L));
49
+ }, []), V = y(
50
+ (e, r, c) => {
51
+ l.current && cancelAnimationFrame(l.current), P.current = performance.now();
52
+ const s = () => {
53
+ l.current = requestAnimationFrame(s);
54
+ const t = performance.now(), i = t - P.current;
55
+ if (i < I.current) return;
56
+ P.current = t - i % I.current, e.clearRect(0, 0, r, c);
57
+ let o = !1;
58
+ m.current.forEach((x, F) => {
59
+ e.fillStyle = F;
60
+ for (const S of x)
61
+ S.update(h) && (S.draw(e, n), o = !0);
62
+ }), !h && !o && l.current && (cancelAnimationFrame(l.current), l.current = null);
63
+ };
64
+ s();
65
+ },
66
+ [h, n]
67
+ ), X = y(() => {
68
+ const e = C.current, r = e?.getContext("2d");
69
+ if (!e || !r) return;
70
+ m.current = /* @__PURE__ */ new Map();
71
+ const c = j.current ? 0 : Math.max(0, Math.min(100, a)) * 1e-3, s = window.devicePixelRatio ?? 1, t = e.width / s, i = e.height / s, o = 2, x = 0.5, F = (t + i) * 0.01, S = t % n / 2, Y = i % n / 2;
72
+ for (let w = S; w < t; w += n)
73
+ for (let v = Y; v < i; v += n) {
74
+ const R = f[Math.floor(Math.random() * f.length)];
75
+ let B = 0;
76
+ if (!k && !j.current) {
77
+ const W = w + n / 2, G = v + n / 2, J = t / 2, K = i / 2;
78
+ B = Math.sqrt(O(W, G, J, K));
61
79
  }
62
- const F = Math.random() * 4 + H, R = Math.random() * (x - X) + X, B = new U(f, m, d, u, v, F, R);
63
- p.current.has(d) || p.current.set(d, []), p.current.get(d).push(B);
80
+ const H = Math.random() * 4 + F, L = Math.random() * (o - x) + x, T = new U(w, v, R, c, B, H, L);
81
+ m.current.has(R) || m.current.set(R, []), m.current.get(R).push(T);
64
82
  }
65
- a.current && cancelAnimationFrame(a.current), C.current = performance.now();
66
- const Y = () => {
67
- a.current = requestAnimationFrame(Y);
68
- const f = performance.now(), m = f - C.current;
69
- if (m < I.current) return;
70
- C.current = f - m % I.current, n.clearRect(0, 0, t, i);
71
- let d = !1;
72
- p.current.forEach((v, F) => {
73
- n.fillStyle = F;
74
- for (const R of v)
75
- R.update(o) && (R.draw(n, s), d = !0);
76
- }), !o && !d && a.current && (cancelAnimationFrame(a.current), a.current = null);
77
- };
78
- Y();
79
- }, [s, c, l, k, o, O]), j = q(() => {
80
- const e = g.current, n = w.current, u = e?.getContext("2d");
81
- if (!e || !n || !u) return;
82
- const r = n.getBoundingClientRect();
83
- if (r.width === 0 || r.height === 0) return;
84
- const t = Math.floor(r.width), i = Math.floor(r.height), x = window.devicePixelRatio || 1;
85
- e.width = t * x, e.height = i * x, e.style.width = `${t}px`, e.style.height = `${i}px`, u.setTransform(1, 0, 0, 1, 0, 0), u.scale(x, x), V();
86
- }, [V]);
83
+ V(r, t, i);
84
+ }, [n, a, f, k, O, V]), A = y(() => {
85
+ const e = C.current, r = z.current, c = e?.getContext("2d");
86
+ if (!e || !r || !c) return;
87
+ const s = r.getBoundingClientRect();
88
+ if (s.width === 0 || s.height === 0) return;
89
+ const t = Math.floor(s.width), i = Math.floor(s.height), o = window.devicePixelRatio ?? 1;
90
+ e.width = t * o, e.height = i * o, e.style.width = `${t}px`, e.style.height = `${i}px`, c.setTransform(1, 0, 0, 1, 0, 0), c.scale(o, o), X();
91
+ }, [X]);
87
92
  return N(() => {
88
- j();
93
+ A();
89
94
  const e = new ResizeObserver(() => {
90
- requestAnimationFrame(() => j());
95
+ requestAnimationFrame(() => A());
91
96
  });
92
- return w.current && e.observe(w.current), () => {
93
- e.disconnect(), a.current && cancelAnimationFrame(a.current);
97
+ return z.current && e.observe(z.current), () => {
98
+ e.disconnect(), l.current && cancelAnimationFrame(l.current);
94
99
  };
95
- }, [j]), /* @__PURE__ */ A.jsxs(
100
+ }, [A]), /* @__PURE__ */ q.jsxs(
96
101
  "div",
97
102
  {
98
103
  ref: (e) => {
99
- w.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
104
+ z.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
100
105
  },
101
106
  style: {
102
107
  position: "relative",
103
108
  width: "100%",
104
109
  height: "100%",
105
110
  overflow: "hidden",
106
- ...M
111
+ ...b
107
112
  },
108
113
  ...$,
109
114
  children: [
110
- z && /* @__PURE__ */ A.jsx(
115
+ d && /* @__PURE__ */ q.jsx(
111
116
  "img",
112
117
  {
113
118
  ref: D,
114
- src: z,
115
- alt: y,
119
+ src: d,
120
+ alt: M,
116
121
  style: {
117
122
  position: "absolute",
118
123
  inset: 0,
@@ -123,11 +128,11 @@ const Z = Q(
123
128
  }
124
129
  }
125
130
  ),
126
- b,
127
- /* @__PURE__ */ A.jsx(
131
+ g,
132
+ /* @__PURE__ */ q.jsx(
128
133
  "canvas",
129
134
  {
130
- ref: g,
135
+ ref: C,
131
136
  style: {
132
137
  position: "absolute",
133
138
  inset: 0,
@@ -20,7 +20,7 @@ const b = h`
20
20
  alignItems: "center",
21
21
  borderRadius: e.shape.borderRadius,
22
22
  border: "1px solid",
23
- borderColor: (e.vars || e).palette.divider
23
+ borderColor: (e.vars ?? e).palette.divider
24
24
  })), R = l(d)(() => ({
25
25
  position: "absolute",
26
26
  pointerEvents: "none"
@@ -31,7 +31,7 @@ const b = h`
31
31
  transform: "translate(-50%, -50%)",
32
32
  width: "60px",
33
33
  height: "60px",
34
- background: (e.vars || e).palette.ui.pulse.radialGradient,
34
+ background: (e.vars ?? e).palette.ui.pulse.radialGradient,
35
35
  borderRadius: "50%",
36
36
  animation: `${b} 3s ease-out infinite`,
37
37
  "&:nth-of-type(2)": {
@@ -3,6 +3,7 @@ import { SxProps } from '@mui/material';
3
3
  /**
4
4
  * Props interface for SReview component
5
5
  */
6
+ export type HelpfulVote = 'yes' | 'no' | null;
6
7
  export interface SReviewProps {
7
8
  /** Unique identifier for the review (default: Date.now()) */
8
9
  id?: string | number;
@@ -19,13 +20,13 @@ export interface SReviewProps {
19
20
  /** Array of image URLs to display with the review */
20
21
  images?: string[];
21
22
  /** Current user vote status for this review (default: null) */
22
- userHelpfulVote?: 'yes' | 'no' | null;
23
+ userHelpfulVote?: HelpfulVote;
23
24
  /** Number of "Yes" votes for helpfulness (default: 0) */
24
25
  helpfulYes?: number;
25
26
  /** Number of "No" votes for helpfulness (default: 0) */
26
27
  helpfulNo?: number;
27
28
  /** Callback when user votes on helpfulness (returns null when un-voting) */
28
- onHelpfulVote?: (reviewId: string | number, vote: 'yes' | 'no' | null) => void;
29
+ onHelpfulVote?: (reviewId: string | number, vote: HelpfulVote) => void;
29
30
  /** Whether to show the helpful voting section (default: true) */
30
31
  showHelpfulSection?: boolean;
31
32
  /** Size of the avatar in pixels (default: 48) */
@@ -1,13 +1,13 @@
1
1
  import { j as e } from "../jsx-runtime-tc70JA_2.js";
2
2
  import { useId as K, useState as h, useEffect as P } from "react";
3
- import { Box as o, Stack as a, Divider as M, Typography as r, IconButton as S } from "@mui/material";
3
+ import { Box as a, Stack as o, Divider as M, Typography as r, IconButton as S } from "@mui/material";
4
4
  import { SAvatar as Q } from "../s-avatar/s-avatar.js";
5
5
  import { SImageModal as X } from "../s-image-modal/s-image-modal.js";
6
6
  import Z from "../s-lazy-image/s-lazy-image.js";
7
7
  import { SRating as _ } from "../s-rating/s-rating.js";
8
8
  import { SSkeleton as n } from "../s-skeleton/s-skeleton.js";
9
- import { c as T } from "../createSvgIcon-DTNHY3_v.js";
10
- import { g as ee } from "../utils-DJIrqgo5.js";
9
+ import { c as T } from "../createSvgIcon-BkbeLOhM.js";
10
+ import { g as ee } from "../utils-D1UMIV0b.js";
11
11
  const te = T(/* @__PURE__ */ e.jsx("path", {
12
12
  d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"
13
13
  }), "ThumbDown"), se = T(/* @__PURE__ */ e.jsx("path", {
@@ -33,15 +33,15 @@ const te = T(/* @__PURE__ */ e.jsx("path", {
33
33
  sx: y = {}
34
34
  }) => {
35
35
  const W = K(), I = k ?? W, [B, g] = h(H), [N, j] = h(V), [l, f] = h(d), [Y, b] = h(!1), [A, u] = h(null), C = (s) => {
36
- let i = s;
37
- l === s ? (s === "yes" ? g((t) => Math.max(0, t - 1)) : j((t) => Math.max(0, t - 1)), f(null), i = null) : (l === "yes" ? g((t) => Math.max(0, t - 1)) : l === "no" && j((t) => Math.max(0, t - 1)), s === "yes" ? g((t) => t + 1) : j((t) => t + 1), f(s), i = s), v && v(I, i);
36
+ let i = null;
37
+ l === s ? (s === "yes" ? g((t) => Math.max(0, t - 1)) : j((t) => Math.max(0, t - 1)), f(null)) : (l === "yes" ? g((t) => Math.max(0, t - 1)) : l === "no" && j((t) => Math.max(0, t - 1)), s === "yes" ? g((t) => t + 1) : j((t) => t + 1), f(s), i = s), v && v(I, i);
38
38
  }, c = x?.map((s, i) => ({
39
39
  id: `review-${I}-image-${i}`,
40
40
  type: "image",
41
41
  url: s,
42
42
  title: `Review image ${i + 1}`,
43
43
  desc: `Image ${i + 1} from ${m}'s review`
44
- })) || [], F = (s) => {
44
+ })) ?? [], F = (s) => {
45
45
  const i = c[s];
46
46
  i && (u(i), b(!0));
47
47
  }, q = () => {
@@ -51,17 +51,17 @@ const te = T(/* @__PURE__ */ e.jsx("path", {
51
51
  }, J = ee(z);
52
52
  return P(() => {
53
53
  f(d);
54
- }, [d]), U ? /* @__PURE__ */ e.jsxs(o, { sx: { py: 2, ...y }, children: [
55
- /* @__PURE__ */ e.jsxs(a, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
54
+ }, [d]), U ? /* @__PURE__ */ e.jsxs(a, { sx: { py: 2, ...y }, children: [
55
+ /* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
56
56
  /* @__PURE__ */ e.jsx(n, { component: "rounded-avatar", width: p, height: p }),
57
- /* @__PURE__ */ e.jsxs(o, { sx: { flex: 1 }, children: [
58
- /* @__PURE__ */ e.jsxs(a, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
57
+ /* @__PURE__ */ e.jsxs(a, { sx: { flex: 1 }, children: [
58
+ /* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
59
59
  /* @__PURE__ */ e.jsx(n, { variant: "text", width: 120, height: 20 }),
60
60
  /* @__PURE__ */ e.jsx(n, { variant: "text", width: 80, height: 16 })
61
61
  ] }),
62
- /* @__PURE__ */ e.jsx(o, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(n, { variant: "text", width: 100, height: 20 }) }),
62
+ /* @__PURE__ */ e.jsx(a, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(n, { variant: "text", width: 100, height: 20 }) }),
63
63
  /* @__PURE__ */ e.jsx(n, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
64
- /* @__PURE__ */ e.jsxs(a, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
64
+ /* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
65
65
  /* @__PURE__ */ e.jsx(n, { variant: "text", width: 140, height: 16, sx: { mr: 2 } }),
66
66
  /* @__PURE__ */ e.jsx(n, { component: "icon-button" }),
67
67
  /* @__PURE__ */ e.jsx(n, { variant: "text", width: 20, height: 16 }),
@@ -71,17 +71,17 @@ const te = T(/* @__PURE__ */ e.jsx("path", {
71
71
  ] })
72
72
  ] }),
73
73
  w && /* @__PURE__ */ e.jsx(M, { sx: { mt: 2 } })
74
- ] }) : /* @__PURE__ */ e.jsxs(o, { sx: { py: 2, ...y }, children: [
75
- /* @__PURE__ */ e.jsxs(a, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
74
+ ] }) : /* @__PURE__ */ e.jsxs(a, { sx: { py: 2, ...y }, children: [
75
+ /* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
76
76
  /* @__PURE__ */ e.jsx(Q, { avatar: R, name: m, size: p }),
77
- /* @__PURE__ */ e.jsxs(o, { sx: { flex: 1 }, children: [
78
- /* @__PURE__ */ e.jsxs(a, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
77
+ /* @__PURE__ */ e.jsxs(a, { sx: { flex: 1 }, children: [
78
+ /* @__PURE__ */ e.jsxs(o, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
79
79
  /* @__PURE__ */ e.jsx(r, { variant: "subtitle2", fontWeight: "600", children: m }),
80
80
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(r, { variant: "caption", children: J }) })
81
81
  ] }),
82
- /* @__PURE__ */ e.jsx(o, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(_, { value: L, max: E, readOnly: O }) }),
82
+ /* @__PURE__ */ e.jsx(a, { sx: { mb: 1 }, children: /* @__PURE__ */ e.jsx(_, { value: L, max: E, readOnly: O }) }),
83
83
  /* @__PURE__ */ e.jsx(r, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: $ }),
84
- x && x.length > 0 && /* @__PURE__ */ e.jsx(a, { direction: "row", spacing: 1, sx: { mb: 2, flexWrap: "wrap", gap: 1 }, children: x.map((s, i) => /* @__PURE__ */ e.jsx(
84
+ x && x.length > 0 && /* @__PURE__ */ e.jsx(o, { direction: "row", spacing: 1, sx: { mb: 2, flexWrap: "wrap", gap: 1 }, children: x.map((s, i) => /* @__PURE__ */ e.jsx(
85
85
  Z,
86
86
  {
87
87
  src: s,
@@ -103,7 +103,7 @@ const te = T(/* @__PURE__ */ e.jsx("path", {
103
103
  },
104
104
  i
105
105
  )) }),
106
- D && /* @__PURE__ */ e.jsxs(a, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
106
+ D && /* @__PURE__ */ e.jsxs(o, { direction: "row", spacing: 1, sx: { display: "inline-flex", alignItems: "center" }, children: [
107
107
  /* @__PURE__ */ e.jsx(r, { variant: "caption", sx: { mr: 2 }, children: "Was this review helpful?" }),
108
108
  /* @__PURE__ */ e.jsx(
109
109
  S,
@@ -1,9 +1,9 @@
1
1
  import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
2
  import l from "react";
3
- import { A as m } from "../ArrowUpward-JWPHrR6I.js";
3
+ import { A as m } from "../ArrowUpward-D8eqD-si.js";
4
4
  import { useIsPassedPosition as d } from "../hooks/use-is-passed-position.js";
5
- import { s as c } from "../styled-BR6UL29H.js";
6
- import { B as p } from "../Box-p3bpOtdn.js";
5
+ import { s as c } from "../styled-8Y5KoVix.js";
6
+ import { B as p } from "../Box-BkXoTbe8.js";
7
7
  const f = c(p)({
8
8
  position: "fixed",
9
9
  bottom: 20,
@@ -22,7 +22,7 @@ const f = c(p)({
22
22
  transform: "scale(1.1)"
23
23
  }
24
24
  }), h = l.memo(({ onClick: e, scrollElementId: o, threshold: s = 100, icon: i, sx: n }) => {
25
- const t = d(o || window, s), a = () => {
25
+ const t = d(o ?? window, s), a = () => {
26
26
  e ? e() : o ? document.getElementById(o)?.scrollTo({ top: 0, behavior: "smooth" }) : window.scrollTo({ top: 0, behavior: "smooth" });
27
27
  };
28
28
  return /* @__PURE__ */ r.jsx(
@@ -34,7 +34,7 @@ const f = c(p)({
34
34
  ...n
35
35
  },
36
36
  onClick: a,
37
- children: i || /* @__PURE__ */ r.jsx(m, {})
37
+ children: i ?? /* @__PURE__ */ r.jsx(m, {})
38
38
  }
39
39
  );
40
40
  });
@@ -10,7 +10,7 @@ export declare const ScrollVelocityContext: React.Context<MotionValue<number> |
10
10
  */
11
11
  export interface ScrollVelocityContainerProps extends BoxProps {
12
12
  /** Content to render inside the container */
13
- children: React.ReactNode;
13
+ readonly children: React.ReactNode;
14
14
  }
15
15
  /**
16
16
  * Container component that provides scroll velocity context to child rows.
@@ -13,11 +13,11 @@ export declare const wrap: (min: number, max: number, v: number) => number;
13
13
  */
14
14
  export interface ScrollVelocityRowProps extends BoxProps {
15
15
  /** Content to repeat in the scrolling row */
16
- children: React.ReactNode;
16
+ readonly children: React.ReactNode;
17
17
  /** Base scrolling speed (default: 5) */
18
- baseVelocity?: number;
18
+ readonly baseVelocity?: number;
19
19
  /** Scroll direction: 1 for right, -1 for left (default: 1) */
20
- direction?: 1 | -1;
20
+ readonly direction?: 1 | -1;
21
21
  }
22
22
  /**
23
23
  * A horizontal scrolling row component that responds to page scroll velocity.
@@ -20,7 +20,7 @@ function L({
20
20
  const o = x.current, t = v.current;
21
21
  if (!o || !t) return;
22
22
  const l = () => {
23
- const h = o.offsetWidth || 0, p = t.scrollWidth || 0;
23
+ const h = o.offsetWidth ?? 0, p = t.scrollWidth ?? 0;
24
24
  y.set(p);
25
25
  const j = p > 0 ? Math.max(3, Math.ceil(h / p) + 2) : 1;
26
26
  z((C) => C === j ? C : j);
@@ -56,7 +56,7 @@ function L({
56
56
  const p = r >= 0 ? 1 : -1;
57
57
  R.current = D.current * p;
58
58
  }
59
- const a = y.get() || 0;
59
+ const a = y.get() ?? 0;
60
60
  if (a <= 0) return;
61
61
  const d = a * n / 100, h = R.current * d * m * l;
62
62
  w.set(w.get() + h);
@@ -1,41 +1,41 @@
1
- import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
- import { forwardRef as F, useState as p } from "react";
3
- import { c as M } from "../createSvgIcon-DTNHY3_v.js";
4
- import { Select as T, ListSubheader as B, TextField as D, InputAdornment as K, MenuItem as f, Box as x } from "@mui/material";
1
+ import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
+ import { forwardRef as E, useState as c } from "react";
3
+ import { c as F } from "../createSvgIcon-BkbeLOhM.js";
4
+ import { Select as T, ListSubheader as B, TextField as D, InputAdornment as K, MenuItem as j, Box as f } from "@mui/material";
5
5
  import { SForm as N } from "../s-form/s-form.js";
6
- const R = M(/* @__PURE__ */ t.jsx("path", {
6
+ const R = F(/* @__PURE__ */ r.jsx("path", {
7
7
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
8
- }), "Search"), W = F(
8
+ }), "Search"), W = E(
9
9
  ({
10
10
  options: o = [],
11
11
  optionLabel: y = "name",
12
12
  optionValue: C = "id",
13
- placeholder: g,
14
- label: b = "",
15
- error: I,
16
- required: w = !1,
17
- simple: P = !1,
18
- htmlFor: v,
19
- searchable: r = !1,
20
- searchPlaceholder: V = "",
21
- renderOption: u,
13
+ placeholder: p,
14
+ label: I = "",
15
+ error: w,
16
+ required: P = !1,
17
+ simple: V = !1,
18
+ htmlFor: x,
19
+ searchable: l = !1,
20
+ searchPlaceholder: b = "",
21
+ renderOption: g,
22
22
  ...s
23
- }, $) => {
24
- const h = s.value !== void 0, [L, k] = p(s.multiple ? [] : null), z = h ? s.value : L, [i, j] = p(""), [A, S] = p(!1), a = (e) => String(typeof e == "string" || typeof e == "number" ? e : e[y]), l = (e) => typeof e == "string" || typeof e == "number" ? e : e[C], m = r && i ? o.filter((e) => a(e).toLowerCase().includes(i.toLowerCase())) : o;
25
- return /* @__PURE__ */ t.jsx(N, { error: I, label: b, required: w, htmlFor: v, children: /* @__PURE__ */ t.jsxs(
23
+ }, L) => {
24
+ const m = s.value !== void 0, [O, k] = c(s.multiple ? [] : null), M = m ? s.value : O, [d, v] = c(""), [z, h] = c(!1), i = (e) => String(typeof e == "string" || typeof e == "number" ? e : e[y]), a = (e) => typeof e == "string" || typeof e == "number" ? e : e[C], S = l && d ? o.filter((e) => i(e).toLowerCase().includes(d.toLowerCase())) : o;
25
+ return /* @__PURE__ */ r.jsx(N, { error: w, label: I, required: P, htmlFor: x, children: /* @__PURE__ */ r.jsxs(
26
26
  T,
27
27
  {
28
- id: v,
28
+ id: x,
29
29
  displayEmpty: !0,
30
30
  fullWidth: !0,
31
31
  defaultValue: "",
32
- ref: $,
33
- open: r ? A : void 0,
34
- onOpen: r ? () => S(!0) : void 0,
35
- onClose: r ? () => {
36
- S(!1), j("");
32
+ ref: L,
33
+ open: l ? z : void 0,
34
+ onOpen: l ? () => h(!0) : void 0,
35
+ onClose: l ? () => {
36
+ h(!1), v("");
37
37
  } : void 0,
38
- MenuProps: r ? {
38
+ MenuProps: l ? {
39
39
  autoFocus: !1,
40
40
  PaperProps: {
41
41
  onKeyDown: (e) => {
@@ -45,38 +45,38 @@ const R = M(/* @__PURE__ */ t.jsx("path", {
45
45
  } : void 0,
46
46
  renderValue: s.multiple ? (e) => {
47
47
  const n = e;
48
- return n.length === 0 ? /* @__PURE__ */ t.jsx(x, { component: "span", sx: { color: "divider" }, children: g }) : n?.map((d) => {
49
- const c = o.find((E) => l(E) === l(d));
50
- return c ? a(c) : "";
48
+ return n.length === 0 ? /* @__PURE__ */ r.jsx(f, { component: "span", sx: { color: "divider" }, children: p }) : n?.map((t) => {
49
+ const u = o.find((A) => a(A) === a(t));
50
+ return u ? i(u) : "";
51
51
  }).filter(Boolean).join(", ");
52
52
  } : (e) => {
53
53
  const n = e;
54
54
  if (n == null || n === "")
55
- return /* @__PURE__ */ t.jsx(x, { component: "span", sx: { color: "divider" }, children: g });
56
- if (P)
57
- return a(n);
58
- const d = o.find((c) => l(c) === l(n));
59
- return d ? a(d) : "";
55
+ return /* @__PURE__ */ r.jsx(f, { component: "span", sx: { color: "divider" }, children: p });
56
+ if (V)
57
+ return i(n);
58
+ const t = o.find((u) => a(u) === a(n));
59
+ return t ? i(t) : "";
60
60
  },
61
61
  ...s,
62
- value: o.length ? z ?? "" : "",
62
+ value: o.length ? M ?? "" : "",
63
63
  onChange: (e, n) => {
64
64
  if (s.onChange)
65
65
  s.onChange(e, n);
66
- else if (!h) {
67
- const d = e.target.value;
68
- k(d);
66
+ else if (!m) {
67
+ const t = e.target.value;
68
+ k(t);
69
69
  }
70
70
  },
71
71
  children: [
72
- r && /* @__PURE__ */ t.jsx(B, { sx: { px: 2, py: 1, position: "sticky", top: 0, bgcolor: "background.paper", zIndex: 1 }, children: /* @__PURE__ */ t.jsx(
72
+ l && /* @__PURE__ */ r.jsx(B, { sx: { px: 2, py: 1, position: "sticky", top: 0, bgcolor: "background.paper", zIndex: 1 }, children: /* @__PURE__ */ r.jsx(
73
73
  D,
74
74
  {
75
75
  fullWidth: !0,
76
76
  autoFocus: !0,
77
- placeholder: V,
78
- value: i,
79
- onChange: (e) => j(e.target.value),
77
+ placeholder: b,
78
+ value: d,
79
+ onChange: (e) => v(e.target.value),
80
80
  onKeyDown: (e) => {
81
81
  e.key !== "Escape" && e.stopPropagation();
82
82
  },
@@ -84,35 +84,22 @@ const R = M(/* @__PURE__ */ t.jsx("path", {
84
84
  e.stopPropagation();
85
85
  },
86
86
  InputProps: {
87
- startAdornment: /* @__PURE__ */ t.jsx(K, { position: "start", children: /* @__PURE__ */ t.jsx(R, { fontSize: "small" }) })
87
+ startAdornment: /* @__PURE__ */ r.jsx(K, { position: "start", children: /* @__PURE__ */ r.jsx(R, { fontSize: "small" }) })
88
88
  }
89
89
  }
90
90
  ) }),
91
- r ? m?.length > 0 ? m.map((e, n) => /* @__PURE__ */ t.jsx(
92
- f,
93
- {
94
- disabled: e?.disabled ?? !1,
95
- value: l(e),
96
- children: u ? u(e) : a(e)
97
- },
98
- `${l(e)}-${n}`
99
- )) : i ? /* @__PURE__ */ t.jsx(f, { disabled: !0, children: /* @__PURE__ */ t.jsx(x, { sx: { color: "text.secondary", textAlign: "center", width: "100%" }, children: "No results found" }) }) : o?.map((e, n) => /* @__PURE__ */ t.jsx(
100
- f,
101
- {
102
- disabled: e?.disabled ?? !1,
103
- value: l(e),
104
- children: u ? u(e) : a(e)
105
- },
106
- `${l(e)}-${n}`
107
- )) : o?.map((e, n) => /* @__PURE__ */ t.jsx(
108
- f,
109
- {
110
- disabled: e?.disabled ?? !1,
111
- value: l(e),
112
- children: u ? u(e) : a(e)
113
- },
114
- `${l(e)}-${n}`
115
- ))
91
+ (() => {
92
+ const e = (n) => n.map((t, u) => /* @__PURE__ */ r.jsx(
93
+ j,
94
+ {
95
+ disabled: t?.disabled ?? !1,
96
+ value: a(t),
97
+ children: g ? g(t) : i(t)
98
+ },
99
+ `${a(t)}-${u}`
100
+ ));
101
+ return l ? S.length > 0 ? e(S) : d ? /* @__PURE__ */ r.jsx(j, { disabled: !0, children: /* @__PURE__ */ r.jsx(f, { sx: { color: "text.secondary", textAlign: "center", width: "100%" }, children: "No results found" }) }) : e(o) : e(o);
102
+ })()
116
103
  ]
117
104
  }
118
105
  ) });
@@ -12,7 +12,7 @@ const u = p(i, {
12
12
  paddingRight: s.spacing(2),
13
13
  border: "1px solid",
14
14
  cursor: "pointer",
15
- borderColor: a ? (s.vars || s).palette.primary.dark : (s.vars || s).palette.divider
15
+ borderColor: a ? (s.vars ?? s).palette.primary.dark : (s.vars ?? s).palette.divider
16
16
  })), f = ({
17
17
  items: s,
18
18
  selectedId: a,