@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.
- package/dist/{ArrowUpward-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
- package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
- package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
- package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
- package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
- package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
- package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
- package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
- package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
- package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
- package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
- package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
- package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
- package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
- package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
- package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
- package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
- package/dist/assets/s-overlay-scrollbar.css +1 -1
- package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
- package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
- package/dist/defaultTheme-CulFxfLR.js +5 -0
- package/dist/entries/core.d.ts +2 -2
- package/dist/entries/core.js +28 -30
- package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
- package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
- package/dist/main.js +92 -94
- package/dist/s-accordion/s-accordion.js +89 -89
- package/dist/s-action-overlay/s-action-overlay.js +7 -7
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
- package/dist/s-avatar/s-avatar.js +2 -2
- package/dist/s-blur-text/s-blur-text.js +25 -24
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +4 -4
- package/dist/s-carousel/s-carousel.js +4 -4
- package/dist/s-chat-input/s-chat-input.js +4 -4
- package/dist/s-chat-message/s-chat-message.js +135 -124
- package/dist/s-chips/s-chips.js +35 -35
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +5 -5
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/s-count-box.js +40 -37
- package/dist/s-countdown/s-count-down.d.ts +15 -10
- package/dist/s-countdown/s-count-down.js +79 -124
- package/dist/s-data-table/s-data-table.js +75 -76
- package/dist/s-date-picker/s-date-picker.js +43 -47
- package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/index.d.ts +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/index.d.ts +1 -1
- package/dist/s-dialog-message/s-dialog-message.d.ts +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +16 -16
- package/dist/s-file-icon/s-file-icon.js +15 -15
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +7 -7
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +8 -8
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-moving-border/s-moving-border.d.ts +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
- package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
- package/dist/s-review/s-review.d.ts +3 -2
- package/dist/s-review/s-review.js +19 -19
- package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
- package/dist/s-select/s-select.js +54 -67
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-snackbar-message/s-snackbar-message.js +18 -18
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
- package/dist/s-stripe/s-stripe-number.d.ts +1 -1
- package/dist/s-stripe/stripe-input.d.ts +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +1 -1
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/popover.js +2 -2
- package/dist/theme/components/skeleton.js +1 -1
- package/dist/theme/components/tooltip.js +5 -5
- package/dist/theme/customizations/data-display.js +12 -12
- package/dist/theme/customizations/feedback.js +2 -2
- package/dist/theme/customizations/inputs.js +12 -12
- package/dist/theme/customizations/navigation.js +28 -28
- package/dist/theme/customizations/surfaces.js +11 -11
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
- package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
- package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +7 -9
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils-D1UMIV0b.js +40 -0
- package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
- package/package.json +67 -62
- package/dist/defaultTheme-DLue8Fr1.js +0 -5
- package/dist/s-accordion/package.json +0 -5
- package/dist/s-action-overlay/package.json +0 -5
- package/dist/s-ai-tool-bar/package.json +0 -5
- package/dist/s-autocomplete/package.json +0 -5
- package/dist/s-avatar/package.json +0 -5
- package/dist/s-blur-text/package.json +0 -5
- package/dist/s-breadcrumbs/package.json +0 -5
- package/dist/s-button/package.json +0 -5
- package/dist/s-button-link/package.json +0 -5
- package/dist/s-carousel/package.json +0 -5
- package/dist/s-category-card/package.json +0 -5
- package/dist/s-chat-input/package.json +0 -5
- package/dist/s-chat-message/package.json +0 -5
- package/dist/s-checkbox/package.json +0 -5
- package/dist/s-chip/package.json +0 -5
- package/dist/s-chips/package.json +0 -5
- package/dist/s-code-block/package.json +0 -5
- package/dist/s-comment-message/package.json +0 -5
- package/dist/s-copyable-text/package.json +0 -5
- package/dist/s-countdown/package.json +0 -5
- package/dist/s-data-table/package.json +0 -5
- package/dist/s-date-picker/package.json +0 -5
- package/dist/s-datetime-picker/package.json +0 -5
- package/dist/s-dialog/package.json +0 -5
- package/dist/s-dialog-confirm/package.json +0 -5
- package/dist/s-dialog-message/package.json +0 -5
- package/dist/s-empty/package.json +0 -5
- package/dist/s-error/package.json +0 -5
- package/dist/s-error-layout/package.json +0 -5
- package/dist/s-file-dropzone/package.json +0 -5
- package/dist/s-file-icon/package.json +0 -5
- package/dist/s-flex-box/package.json +0 -5
- package/dist/s-form/package.json +0 -5
- package/dist/s-gallery/package.json +0 -5
- package/dist/s-glow-button/package.json +0 -5
- package/dist/s-gradient-icon/package.json +0 -5
- package/dist/s-i18n-provider/package.json +0 -5
- package/dist/s-icon-button/package.json +0 -5
- package/dist/s-image-comparison/package.json +0 -5
- package/dist/s-image-modal/package.json +0 -5
- package/dist/s-item-not-found/package.json +0 -5
- package/dist/s-label/package.json +0 -5
- package/dist/s-language-switcher/package.json +0 -5
- package/dist/s-lazy-image/package.json +0 -5
- package/dist/s-localization-provider/package.json +0 -5
- package/dist/s-moving-border/package.json +0 -5
- package/dist/s-multi-select/package.json +0 -5
- package/dist/s-no-ssr/package.json +0 -5
- package/dist/s-overlay-scrollbar/package.json +0 -5
- package/dist/s-pagination/package.json +0 -5
- package/dist/s-pixel-reveal/package.json +0 -5
- package/dist/s-radial-pulse-animate/package.json +0 -5
- package/dist/s-rating/package.json +0 -5
- package/dist/s-review/package.json +0 -5
- package/dist/s-scroll-reveal/package.json +0 -6
- package/dist/s-scroll-to-top/package.json +0 -5
- package/dist/s-scroll-velocity/package.json +0 -5
- package/dist/s-select/package.json +0 -5
- package/dist/s-select-list/package.json +0 -5
- package/dist/s-skeleton/package.json +0 -5
- package/dist/s-snackbar-message/package.json +0 -5
- package/dist/s-spotlight-cursor/package.json +0 -5
- package/dist/s-stripe/package.json +0 -5
- package/dist/s-tabs/package.json +0 -4
- package/dist/s-text-editor/package.json +0 -5
- package/dist/s-text-field/package.json +0 -5
- package/dist/s-text-shimmer/package.json +0 -5
- package/dist/s-text-truncation/package.json +0 -5
- package/dist/s-theme-demo/package.json +0 -5
- package/dist/s-theme-provider/package.json +0 -5
- package/dist/s-theme-switch/package.json +0 -5
- package/dist/s-tip/package.json +0 -5
- package/dist/s-two-pane-layout/package.json +0 -5
- package/dist/s-typewriter-text/package.json +0 -6
- package/dist/s-zoom-image/package.json +0 -5
- package/dist/utils/bytes-to-size.d.ts +0 -1
- package/dist/utils/bytes-to-size.js +0 -9
- package/dist/utils-DJIrqgo5.js +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as Q, useRef as
|
|
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(
|
|
19
|
-
this.x =
|
|
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(
|
|
22
|
-
return
|
|
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(
|
|
25
|
-
const
|
|
26
|
-
|
|
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:
|
|
32
|
-
speed:
|
|
33
|
-
colors:
|
|
34
|
-
loading:
|
|
35
|
-
src:
|
|
36
|
-
alt:
|
|
37
|
-
style:
|
|
38
|
-
children:
|
|
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
|
-
},
|
|
42
|
-
const
|
|
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
|
-
|
|
44
|
+
j.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
|
|
45
45
|
}, []);
|
|
46
|
-
const O =
|
|
47
|
-
const t = e -
|
|
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 =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
93
|
+
A();
|
|
89
94
|
const e = new ResizeObserver(() => {
|
|
90
|
-
requestAnimationFrame(() =>
|
|
95
|
+
requestAnimationFrame(() => A());
|
|
91
96
|
});
|
|
92
|
-
return
|
|
93
|
-
e.disconnect(),
|
|
97
|
+
return z.current && e.observe(z.current), () => {
|
|
98
|
+
e.disconnect(), l.current && cancelAnimationFrame(l.current);
|
|
94
99
|
};
|
|
95
|
-
}, [
|
|
100
|
+
}, [A]), /* @__PURE__ */ q.jsxs(
|
|
96
101
|
"div",
|
|
97
102
|
{
|
|
98
103
|
ref: (e) => {
|
|
99
|
-
|
|
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
|
-
...
|
|
111
|
+
...b
|
|
107
112
|
},
|
|
108
113
|
...$,
|
|
109
114
|
children: [
|
|
110
|
-
|
|
115
|
+
d && /* @__PURE__ */ q.jsx(
|
|
111
116
|
"img",
|
|
112
117
|
{
|
|
113
118
|
ref: D,
|
|
114
|
-
src:
|
|
115
|
-
alt:
|
|
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
|
-
|
|
127
|
-
/* @__PURE__ */
|
|
131
|
+
g,
|
|
132
|
+
/* @__PURE__ */ q.jsx(
|
|
128
133
|
"canvas",
|
|
129
134
|
{
|
|
130
|
-
ref:
|
|
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
|
|
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
|
|
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?:
|
|
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:
|
|
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
|
|
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-
|
|
10
|
-
import { g as ee } from "../utils-
|
|
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 =
|
|
37
|
-
l === s ? (s === "yes" ? g((t) => Math.max(0, t - 1)) : j((t) => Math.max(0, t - 1)), f(null)
|
|
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
|
-
}))
|
|
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(
|
|
55
|
-
/* @__PURE__ */ e.jsxs(
|
|
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(
|
|
58
|
-
/* @__PURE__ */ e.jsxs(
|
|
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(
|
|
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(
|
|
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(
|
|
75
|
-
/* @__PURE__ */ e.jsxs(
|
|
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(
|
|
78
|
-
/* @__PURE__ */ e.jsxs(
|
|
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(
|
|
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(
|
|
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(
|
|
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-
|
|
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-
|
|
6
|
-
import { B as p } from "../Box-
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
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
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Select as T, ListSubheader as B, TextField as D, InputAdornment as K, MenuItem as
|
|
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 =
|
|
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 =
|
|
8
|
+
}), "Search"), W = E(
|
|
9
9
|
({
|
|
10
10
|
options: o = [],
|
|
11
11
|
optionLabel: y = "name",
|
|
12
12
|
optionValue: C = "id",
|
|
13
|
-
placeholder:
|
|
14
|
-
label:
|
|
15
|
-
error:
|
|
16
|
-
required:
|
|
17
|
-
simple:
|
|
18
|
-
htmlFor:
|
|
19
|
-
searchable:
|
|
20
|
-
searchPlaceholder:
|
|
21
|
-
renderOption:
|
|
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
|
|
25
|
-
return /* @__PURE__ */
|
|
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:
|
|
28
|
+
id: x,
|
|
29
29
|
displayEmpty: !0,
|
|
30
30
|
fullWidth: !0,
|
|
31
31
|
defaultValue: "",
|
|
32
|
-
ref:
|
|
33
|
-
open:
|
|
34
|
-
onOpen:
|
|
35
|
-
onClose:
|
|
36
|
-
|
|
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:
|
|
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__ */
|
|
49
|
-
const
|
|
50
|
-
return
|
|
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__ */
|
|
56
|
-
if (
|
|
57
|
-
return
|
|
58
|
-
const
|
|
59
|
-
return
|
|
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 ?
|
|
62
|
+
value: o.length ? M ?? "" : "",
|
|
63
63
|
onChange: (e, n) => {
|
|
64
64
|
if (s.onChange)
|
|
65
65
|
s.onChange(e, n);
|
|
66
|
-
else if (!
|
|
67
|
-
const
|
|
68
|
-
k(
|
|
66
|
+
else if (!m) {
|
|
67
|
+
const t = e.target.value;
|
|
68
|
+
k(t);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
children: [
|
|
72
|
-
|
|
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:
|
|
78
|
-
value:
|
|
79
|
-
onChange: (e) =>
|
|
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__ */
|
|
87
|
+
startAdornment: /* @__PURE__ */ r.jsx(K, { position: "start", children: /* @__PURE__ */ r.jsx(R, { fontSize: "small" }) })
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
) }),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{
|
|
102
|
-
|
|
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
|
|
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,
|