@solostylist/ui-kit 1.0.222 → 1.0.224
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/{checkbox-DMsuLF8N.js → checkbox-B95Vlykq.js} +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
- package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-DH_7P3Il.js → s-accordion-CXHBadZ_.js} +1 -1
- package/dist/s-autocomplete/s-autocomplete.d.ts +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-B0gdPa1c.js → s-chat-input-DKGeMh55.js} +98 -98
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-DVfbqSAQ.js → s-chat-message-ox4Sj6xh.js} +2 -2
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-CHIgPLsL.js → s-code-block-sjt0AQb_.js} +1 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-DuJPcZFR.js → s-comment-message-DzjXXLZQ.js} +2 -2
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/index.d.ts +2 -2
- package/dist/s-countdown/index.js +1 -1
- package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
- package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
- package/dist/s-data-table/index.d.ts +1 -1
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.d.ts +19 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/s-data-table-TrCdKq9r.js +923 -0
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-BkZIEZoz.js +634 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -2
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.d.ts +1 -1
- package/dist/s-glow-button/s-glow-button.js +18 -19
- package/dist/s-image-modal/index.js +1 -1
- package/dist/s-image-modal/s-image-modal.js +1 -1
- package/dist/{s-image-modal-DxwMFMNS.js → s-image-modal-DA3DBNbv.js} +2 -2
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-nav-item/index.d.ts +0 -1
- package/dist/s-nav-item/index.js +1 -2
- package/dist/s-nav-items/index.d.ts +2 -0
- package/dist/s-nav-items/index.js +2 -0
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
- package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +4 -4
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-Ca6JUgGr.js → s-review-D4FBfBPF.js} +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-stripe/s-stripe.d.ts +1 -1
- package/dist/s-stripe/s-stripe.js +5 -4
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +30 -31
- package/dist/{s-text-editor-toolbar-BnhPG9xv.js → s-text-editor-toolbar-CCK7yyNS.js} +1 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-BHyjzAU0.js → s-theme-demo-THHj5mFp.js} +3 -3
- package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
- package/dist/s-theme-provider/s-theme-provider.js +32 -26
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-Du66wRC2.js → s-tool-bar-DGfyNoYW.js} +142 -143
- package/dist/theme/components/accordion-summary.d.ts +385 -385
- package/dist/theme/components/accordion-summary.js +1 -1
- package/dist/theme/components/accordion.d.ts +2 -2
- package/dist/theme/components/alert.d.ts +1524 -1524
- package/dist/theme/components/alert.js +15 -22
- package/dist/theme/components/app-bar.d.ts +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2282 -2282
- package/dist/theme/components/button.js +40 -42
- package/dist/theme/components/card.d.ts +767 -767
- package/dist/theme/components/card.js +1 -1
- package/dist/theme/components/checkbox.d.ts +381 -381
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +65 -52
- package/dist/theme/components/components.js +4 -4
- package/dist/theme/components/form-label.d.ts +2 -2
- package/dist/theme/components/icon-button.d.ts +2294 -2294
- package/dist/theme/components/icon-button.js +31 -29
- package/dist/theme/components/linear-progress.d.ts +382 -382
- package/dist/theme/components/linear-progress.js +1 -1
- package/dist/theme/components/link.d.ts +2 -2
- package/dist/theme/components/link.js +1 -1
- package/dist/theme/components/list-item-button.d.ts +2 -2
- package/dist/theme/components/list-item.d.ts +2 -2
- package/dist/theme/components/outlined-input.js +1 -1
- package/dist/theme/components/pagination-item.d.ts +385 -385
- package/dist/theme/components/step-icon.d.ts +383 -383
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/step-label.d.ts +384 -384
- package/dist/theme/components/tab.d.ts +384 -384
- package/dist/theme/components/tabs.d.ts +386 -386
- package/dist/theme/components/toggle-button-group.d.ts +383 -383
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.d.ts +385 -385
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/theme-primitives.d.ts +132 -0
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/theme/utils.d.ts +11 -0
- package/dist/theme/utils.js +4 -0
- package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
- package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
- package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
- package/package.json +1 -1
- package/dist/s-data-table-xIW-BAS9.js +0 -880
- package/dist/s-date-picker-Mynq297P.js +0 -634
- /package/dist/{ArrowUpward-BbQSKheQ.js → ArrowUpward-BMKLosZj.js} +0 -0
- /package/dist/{ChevronRight-DHulYS1l.js → ChevronRight-OLNOfW9P.js} +0 -0
- /package/dist/{Close-oXeOGTZb.js → Close-Bj2HYB9Q.js} +0 -0
- /package/dist/{ContentCopy-Bh_TA5Eo.js → ContentCopy-Br2p19dq.js} +0 -0
- /package/dist/{Download-DMm8oiCF.js → Download-BhSXOhCI.js} +0 -0
- /package/dist/{ExpandMore-DsZNN1Eh.js → ExpandMore-Bu7_1g6Q.js} +0 -0
- /package/dist/{Favorite-DIml4fHR.js → Favorite-BJSuHe0H.js} +0 -0
- /package/dist/{InfoOutlined-CqXSSVWh.js → InfoOutlined-C1AW3f5V.js} +0 -0
- /package/dist/{avatar-BQf6phmU.js → avatar-BuMhUthq.js} +0 -0
- /package/dist/{s-chips-BuAEBW1F.js → s-chips-DelHx6zM.js} +0 -0
- /package/dist/{s-file-dropzone-COPp1HiT.js → s-file-dropzone-oaQoRV92.js} +0 -0
- /package/dist/{s-select-ClL8bygg.js → s-select-b8CHbeCf.js} +0 -0
- /package/dist/{s-text-field-qps0aDNS.js → s-text-field-Ck5QMhYI.js} +0 -0
- /package/dist/{s-theme-switch-D1FpcDj1.js → s-theme-switch-V3Q58mkG.js} +0 -0
- /package/dist/{s-tip-D6M91nev.js → s-tip-Dwu5T2u0.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../Close-
|
|
1
|
+
import { t as e } from "../Close-Bj2HYB9Q.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Dialog as a, DialogActions as o, DialogContent as s, DialogTitle as c, IconButton as l, Stack as u, Typography as d } from "@mui/material";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Typography-EsraKPZO.js";
|
|
2
|
-
import { t } from "../Close-
|
|
2
|
+
import { t } from "../Close-Bj2HYB9Q.js";
|
|
3
3
|
import { useDialog as n } from "../hooks/use-dialog.js";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -20,7 +20,6 @@ var m = ({ title: n, content: r, onConfirm: m = () => {}, onClose: h = () => {},
|
|
|
20
20
|
},
|
|
21
21
|
children: [typeof n == "string" ? /* @__PURE__ */ a(e, {
|
|
22
22
|
variant: "h5",
|
|
23
|
-
sx: { textTransform: "capitalize" },
|
|
24
23
|
children: n
|
|
25
24
|
}) : /* @__PURE__ */ a("div", { children: n }), v && /* @__PURE__ */ a(f, {
|
|
26
25
|
onClick: h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Typography-EsraKPZO.js";
|
|
2
|
-
import { t } from "../Close-
|
|
2
|
+
import { t } from "../Close-Bj2HYB9Q.js";
|
|
3
3
|
import { useDialog as n } from "../hooks/use-dialog.js";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-file-dropzone-
|
|
1
|
+
import { t as e } from "../s-file-dropzone-oaQoRV92.js";
|
|
2
2
|
export { e as SFileDropzone, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-file-dropzone-
|
|
1
|
+
import { t as e } from "../s-file-dropzone-oaQoRV92.js";
|
|
2
2
|
export { e as SFileDropzone, e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "../s-image-modal-
|
|
1
|
+
import { n as e } from "../s-image-modal-DA3DBNbv.js";
|
|
2
2
|
import t from "../s-lazy-image/s-lazy-image.js";
|
|
3
3
|
import { useEffect as n, useId as r, useRef as i, useState as a } from "react";
|
|
4
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@ export interface SGlowButtonProps extends ButtonProps {
|
|
|
16
16
|
height?: string;
|
|
17
17
|
/** Size of the glow effect in pixels (defaults to 60) */
|
|
18
18
|
glowSize?: number;
|
|
19
|
-
/** Color of the glow effect (defaults to
|
|
19
|
+
/** Color of the glow effect (defaults to the theme info color) */
|
|
20
20
|
glowColor?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SMovingBorder as t } from "../s-moving-border/s-moving-border.js";
|
|
1
|
+
import { SMovingBorder as e } from "../s-moving-border/s-moving-border.js";
|
|
3
2
|
import "react";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { Button as
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { Button as n } from "@mui/material";
|
|
6
5
|
//#region lib/s-glow-button/s-glow-button.tsx
|
|
7
|
-
var
|
|
8
|
-
width:
|
|
9
|
-
height:
|
|
10
|
-
duration:
|
|
11
|
-
borderRadius:
|
|
12
|
-
glowSize:
|
|
13
|
-
glowColor:
|
|
6
|
+
var r = ({ borderRadius: r = 12, children: i, duration: a = 3e3, width: o = "fit-content", height: s = "60px", glowSize: c = 60, glowColor: l = "var(--s-palette-info-main)", ...u }) => /* @__PURE__ */ t(e, {
|
|
7
|
+
width: o,
|
|
8
|
+
height: s,
|
|
9
|
+
duration: a,
|
|
10
|
+
borderRadius: r,
|
|
11
|
+
glowSize: c,
|
|
12
|
+
glowColor: l,
|
|
14
13
|
padding: .3,
|
|
15
|
-
children: /* @__PURE__ */ n
|
|
14
|
+
children: /* @__PURE__ */ t(n, {
|
|
16
15
|
sx: {
|
|
17
|
-
borderRadius:
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
16
|
+
borderRadius: r,
|
|
17
|
+
width: o,
|
|
18
|
+
height: s
|
|
20
19
|
},
|
|
21
20
|
disableRipple: !0,
|
|
22
|
-
...
|
|
21
|
+
...u,
|
|
23
22
|
fullWidth: !0,
|
|
24
|
-
children:
|
|
23
|
+
children: i
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
|
-
|
|
26
|
+
r.displayName = "SGlowButton";
|
|
28
27
|
//#endregion
|
|
29
|
-
export {
|
|
28
|
+
export { r as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../s-image-modal-
|
|
1
|
+
import { n as e, t } from "../s-image-modal-DA3DBNbv.js";
|
|
2
2
|
export { t as DefaultMediaItem, e as SImageModal, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../s-image-modal-
|
|
1
|
+
import { n as e, t } from "../s-image-modal-DA3DBNbv.js";
|
|
2
2
|
export { t as DefaultMediaItem, e as SImageModal, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
|
-
import { t } from "./ChevronRight-
|
|
3
|
-
import { t as n } from "./Close-
|
|
2
|
+
import { t } from "./ChevronRight-OLNOfW9P.js";
|
|
3
|
+
import { t as n } from "./Close-Bj2HYB9Q.js";
|
|
4
4
|
import r from "./s-lazy-image/s-lazy-image.js";
|
|
5
5
|
import i, { useEffect as a, useState as o } from "react";
|
|
6
6
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
package/dist/s-label/s-label.js
CHANGED
package/dist/s-nav-item/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "../Box-BlmynALm.js";
|
|
2
2
|
import { t } from "../Stack-BQkLmLFp.js";
|
|
3
3
|
import { t as n } from "../Typography-EsraKPZO.js";
|
|
4
|
-
import { t as r } from "../ExpandMore-
|
|
5
|
-
import { SNavItem as i } from "
|
|
4
|
+
import { t as r } from "../ExpandMore-Bu7_1g6Q.js";
|
|
5
|
+
import { SNavItem as i } from "../s-nav-item/s-nav-item.js";
|
|
6
6
|
import { t as a } from "../Collapse-CnXmaDqT.js";
|
|
7
7
|
import * as o from "react";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
-
//#region lib/s-nav-
|
|
9
|
+
//#region lib/s-nav-items/s-nav-items.tsx
|
|
10
10
|
function l(e, t) {
|
|
11
11
|
return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? l(e.items, t) : !1);
|
|
12
12
|
}
|
|
@@ -151,4 +151,4 @@ function p({ items: e, pathname: n = "", depth: r = 0, component: i }) {
|
|
|
151
151
|
}
|
|
152
152
|
p.displayName = "SNavItems";
|
|
153
153
|
//#endregion
|
|
154
|
-
export { f as SNavGroupItem, p as SNavItems };
|
|
154
|
+
export { f as SNavGroupItem, p as SNavItems, p as default };
|
|
@@ -7,7 +7,7 @@ export interface SPixelRevealProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
7
7
|
gap?: number;
|
|
8
8
|
/** Animation speed multiplier (0-100) */
|
|
9
9
|
speed?: number;
|
|
10
|
-
/** Array of color values randomly assigned to pixels */
|
|
10
|
+
/** Array of color values randomly assigned to pixels (defaults to theme primary shades) */
|
|
11
11
|
colors?: string[];
|
|
12
12
|
/** Controls pixel animation state */
|
|
13
13
|
loading?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { forwardRef as e, useCallback as t, useEffect as n, useRef as r } from "react";
|
|
2
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { useTheme as o } from "@mui/material";
|
|
4
4
|
//#region lib/s-pixel-reveal/s-pixel-reveal.tsx
|
|
5
5
|
var s = class {
|
|
6
6
|
x;
|
|
@@ -47,100 +47,105 @@ function c({ x: e, y: t, gap: n, logicalWidth: r, logicalHeight: i, instant: a,
|
|
|
47
47
|
let c = e + n / 2, l = t + n / 2, u = r / 2, d = i / 2;
|
|
48
48
|
return Math.sqrt(s(c, l, u, d));
|
|
49
49
|
}
|
|
50
|
-
function l(e, t
|
|
50
|
+
function l(e, t) {
|
|
51
|
+
let n = /^var\((--[^),\s]+)\s*(?:,\s*([^)]+))?\)$/.exec(e.trim());
|
|
52
|
+
return n && (getComputedStyle(t).getPropertyValue(n[1]).trim() || n[2]?.trim()) || e;
|
|
53
|
+
}
|
|
54
|
+
function u(e, t, n) {
|
|
51
55
|
e.has(t) || e.set(t, []), e.get(t)?.push(n);
|
|
52
56
|
}
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
], loading: f = !0, src: p, alt: m = "", style: h, children: g, instant: _ = !0, ...v }, y) => {
|
|
58
|
-
let b = i(null), x = i(null), S = i(null), C = i(/* @__PURE__ */ new Map()), w = i(null), T = i(1e3 / 60), E = i(0), D = i(!1);
|
|
59
|
-
r(() => {
|
|
60
|
-
D.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
|
|
57
|
+
var d = e(({ gap: e = 5, speed: d = 100, colors: f, loading: p = !0, src: m, alt: h = "", style: g, children: _, instant: v = !0, ...y }, b) => {
|
|
58
|
+
let x = o(), S = r(null), C = r(null), w = r(null), T = r(/* @__PURE__ */ new Map()), E = r(null), D = r(1e3 / 60), O = r(0), k = r(!1);
|
|
59
|
+
n(() => {
|
|
60
|
+
k.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
|
|
61
61
|
}, []);
|
|
62
|
-
let
|
|
62
|
+
let A = t((e, t, n, r) => {
|
|
63
63
|
let i = e - n, a = t - r;
|
|
64
64
|
return i * i + a * a;
|
|
65
|
-
}, []),
|
|
66
|
-
|
|
65
|
+
}, []), j = t((t, n, r) => {
|
|
66
|
+
E.current && cancelAnimationFrame(E.current), O.current = performance.now();
|
|
67
67
|
let i = () => {
|
|
68
|
-
|
|
69
|
-
let a = performance.now(), o = a -
|
|
70
|
-
if (o <
|
|
71
|
-
|
|
68
|
+
E.current = requestAnimationFrame(i);
|
|
69
|
+
let a = performance.now(), o = a - O.current;
|
|
70
|
+
if (o < D.current) return;
|
|
71
|
+
O.current = a - o % D.current, t.clearRect(0, 0, n, r);
|
|
72
72
|
let s = !1;
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
T.current.forEach((n, r) => {
|
|
74
|
+
t.fillStyle = r;
|
|
75
75
|
for (let r of n) {
|
|
76
|
-
if (
|
|
77
|
-
r.updateWhileLoading(), r.draw(
|
|
76
|
+
if (p) {
|
|
77
|
+
r.updateWhileLoading(), r.draw(t, e), s = !0;
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
|
-
r.updateWhileIdle() && (r.draw(
|
|
80
|
+
r.updateWhileIdle() && (r.draw(t, e), s = !0);
|
|
81
81
|
}
|
|
82
|
-
}), !
|
|
82
|
+
}), !p && !s && E.current && (cancelAnimationFrame(E.current), E.current = null);
|
|
83
83
|
};
|
|
84
84
|
i();
|
|
85
|
-
}, [
|
|
86
|
-
let
|
|
87
|
-
if (!
|
|
88
|
-
|
|
89
|
-
let r =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
}, [p, e]), M = t(() => {
|
|
86
|
+
let t = S.current, n = t?.getContext("2d");
|
|
87
|
+
if (!t || !n) return;
|
|
88
|
+
T.current = /* @__PURE__ */ new Map();
|
|
89
|
+
let r = k.current ? 0 : Math.max(0, Math.min(100, d)) * .001, i = (x.vars ?? x).palette, a = (f ?? [
|
|
90
|
+
i.primary[400],
|
|
91
|
+
i.primary[500],
|
|
92
|
+
i.primary[600]
|
|
93
|
+
]).map((e) => l(e, t)), o = window.devicePixelRatio ?? 1, p = t.width / o, m = t.height / o, h = .5, g = (p + m) * .01, _ = p % e / 2, y = m % e / 2;
|
|
94
|
+
for (let t = _; t < p; t += e) for (let n = y; n < m; n += e) {
|
|
95
|
+
let i = a[Math.floor(Math.random() * a.length)], o = c({
|
|
96
|
+
x: t,
|
|
93
97
|
y: n,
|
|
94
|
-
gap:
|
|
95
|
-
logicalWidth:
|
|
96
|
-
logicalHeight:
|
|
97
|
-
instant:
|
|
98
|
-
reducedMotion:
|
|
99
|
-
getDistanceSq:
|
|
100
|
-
}),
|
|
101
|
-
|
|
98
|
+
gap: e,
|
|
99
|
+
logicalWidth: p,
|
|
100
|
+
logicalHeight: m,
|
|
101
|
+
instant: v,
|
|
102
|
+
reducedMotion: k.current,
|
|
103
|
+
getDistanceSq: A
|
|
104
|
+
}), l = Math.random() * 4 + g, d = Math.random() * (2 - h) + h;
|
|
105
|
+
u(T.current, i, new s(t, n, i, r, o, l, d));
|
|
102
106
|
}
|
|
103
|
-
|
|
107
|
+
j(n, p, m);
|
|
104
108
|
}, [
|
|
105
|
-
|
|
106
|
-
u,
|
|
109
|
+
e,
|
|
107
110
|
d,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
f,
|
|
112
|
+
x,
|
|
113
|
+
v,
|
|
114
|
+
A,
|
|
115
|
+
j
|
|
116
|
+
]), N = t(() => {
|
|
117
|
+
let e = S.current, t = C.current, n = e?.getContext("2d");
|
|
113
118
|
if (!e || !t || !n) return;
|
|
114
119
|
let r = t.getBoundingClientRect();
|
|
115
120
|
if (r.width === 0 || r.height === 0) return;
|
|
116
121
|
let i = Math.floor(r.width), a = Math.floor(r.height), o = window.devicePixelRatio ?? 1;
|
|
117
|
-
e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o),
|
|
118
|
-
}, [
|
|
119
|
-
return
|
|
120
|
-
|
|
122
|
+
e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), M();
|
|
123
|
+
}, [M]);
|
|
124
|
+
return n(() => {
|
|
125
|
+
N();
|
|
121
126
|
let e = new ResizeObserver(() => {
|
|
122
|
-
requestAnimationFrame(() =>
|
|
127
|
+
requestAnimationFrame(() => N());
|
|
123
128
|
});
|
|
124
|
-
return
|
|
125
|
-
e.disconnect(),
|
|
129
|
+
return C.current && e.observe(C.current), () => {
|
|
130
|
+
e.disconnect(), E.current && cancelAnimationFrame(E.current);
|
|
126
131
|
};
|
|
127
|
-
}, [
|
|
132
|
+
}, [N]), /* @__PURE__ */ a("div", {
|
|
128
133
|
ref: (e) => {
|
|
129
|
-
|
|
134
|
+
C.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
|
|
130
135
|
},
|
|
131
136
|
style: {
|
|
132
137
|
position: "relative",
|
|
133
138
|
width: "100%",
|
|
134
139
|
height: "100%",
|
|
135
140
|
overflow: "hidden",
|
|
136
|
-
...
|
|
141
|
+
...g
|
|
137
142
|
},
|
|
138
|
-
...
|
|
143
|
+
...y,
|
|
139
144
|
children: [
|
|
140
|
-
|
|
141
|
-
ref:
|
|
142
|
-
src:
|
|
143
|
-
alt:
|
|
145
|
+
m && /* @__PURE__ */ i("img", {
|
|
146
|
+
ref: w,
|
|
147
|
+
src: m,
|
|
148
|
+
alt: h,
|
|
144
149
|
style: {
|
|
145
150
|
position: "absolute",
|
|
146
151
|
inset: 0,
|
|
@@ -150,9 +155,9 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
|
|
|
150
155
|
display: "block"
|
|
151
156
|
}
|
|
152
157
|
}),
|
|
153
|
-
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
ref:
|
|
158
|
+
_,
|
|
159
|
+
/* @__PURE__ */ i("canvas", {
|
|
160
|
+
ref: S,
|
|
156
161
|
style: {
|
|
157
162
|
position: "absolute",
|
|
158
163
|
inset: 0,
|
|
@@ -166,6 +171,6 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
|
|
|
166
171
|
]
|
|
167
172
|
});
|
|
168
173
|
});
|
|
169
|
-
|
|
174
|
+
d.displayName = "SPixelReveal";
|
|
170
175
|
//#endregion
|
|
171
|
-
export {
|
|
176
|
+
export { d as SPixelReveal, d as default };
|
package/dist/s-review/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-D4FBfBPF.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-review-
|
|
1
|
+
import { t as e } from "../s-review-D4FBfBPF.js";
|
|
2
2
|
export { e as SReview, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "./utils-B5Rl6Zwv.js";
|
|
2
2
|
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { n } from "./s-image-modal-
|
|
3
|
+
import { n } from "./s-image-modal-DA3DBNbv.js";
|
|
4
4
|
import r from "./s-lazy-image/s-lazy-image.js";
|
|
5
5
|
import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
|
|
6
6
|
import { SAvatar as a } from "./s-avatar/s-avatar.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../styled-BTDmdi4c.js";
|
|
2
|
-
import { t } from "../ArrowUpward-
|
|
2
|
+
import { t } from "../ArrowUpward-BMKLosZj.js";
|
|
3
3
|
import { useIsPassedPosition as n } from "../hooks/use-is-passed-position.js";
|
|
4
4
|
import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
|
|
5
5
|
import i from "react";
|
package/dist/s-select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-b8CHbeCf.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-b8CHbeCf.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -15,7 +15,7 @@ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STex
|
|
|
15
15
|
/** Custom error message to display when validation fails */
|
|
16
16
|
labelErrorMessage?: string;
|
|
17
17
|
/** Change handler for Stripe Element events */
|
|
18
|
-
onChange?:
|
|
18
|
+
onChange?: STextFieldProps['onChange'];
|
|
19
19
|
/** The Stripe Element component to render */
|
|
20
20
|
stripeElement?: T;
|
|
21
21
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "../s-text-field-
|
|
1
|
+
import { t as e } from "../s-text-field-Ck5QMhYI.js";
|
|
2
2
|
import t from "./stripe-input.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region lib/s-stripe/s-stripe.tsx
|
|
5
5
|
var r = (r) => {
|
|
6
|
-
let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l,
|
|
6
|
+
let { helperText: i, slotProps: a, inputProps: o, error: s, labelErrorMessage: c, stripeElement: l, onChange: u, ...d } = r, f = typeof a?.input == "object" ? a.input.inputProps : void 0;
|
|
7
7
|
return /* @__PURE__ */ n(e, {
|
|
8
8
|
slotProps: {
|
|
9
9
|
inputLabel: {
|
|
@@ -14,7 +14,7 @@ var r = (r) => {
|
|
|
14
14
|
...a?.input,
|
|
15
15
|
inputProps: {
|
|
16
16
|
...o,
|
|
17
|
-
...
|
|
17
|
+
...f,
|
|
18
18
|
component: l
|
|
19
19
|
},
|
|
20
20
|
inputComponent: t
|
|
@@ -22,7 +22,8 @@ var r = (r) => {
|
|
|
22
22
|
},
|
|
23
23
|
error: s,
|
|
24
24
|
helperText: s ? c : i,
|
|
25
|
-
|
|
25
|
+
onChange: u,
|
|
26
|
+
...d
|
|
26
27
|
});
|
|
27
28
|
};
|
|
28
29
|
r.displayName = "StripeTextField";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-editor-toolbar-
|
|
1
|
+
import { t as e } from "../s-text-editor-toolbar-CCK7yyNS.js";
|
|
2
2
|
export { e as STextEditorToolbar };
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { tint as e } from "../theme/utils.js";
|
|
2
2
|
import { t } from "../Box-BlmynALm.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { StarterKit as f } from "@tiptap/starter-kit";
|
|
3
|
+
import { t as n } from "../s-text-editor-toolbar-CCK7yyNS.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Link as o } from "@tiptap/extension-link";
|
|
7
|
+
import { Placeholder as s } from "@tiptap/extension-placeholder";
|
|
8
|
+
import { EditorContent as c, useEditor as l } from "@tiptap/react";
|
|
9
|
+
import { StarterKit as u } from "@tiptap/starter-kit";
|
|
11
10
|
//#region lib/s-text-editor/s-text-editor.tsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
11
|
+
var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {}, placeholder: h }) => {
|
|
12
|
+
let g = l({
|
|
14
13
|
extensions: [
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
u,
|
|
15
|
+
s.configure({
|
|
17
16
|
emptyEditorClass: "is-editor-empty",
|
|
18
|
-
placeholder:
|
|
17
|
+
placeholder: h
|
|
19
18
|
}),
|
|
20
|
-
|
|
19
|
+
o.configure({
|
|
21
20
|
openOnClick: !1,
|
|
22
21
|
autolink: !0
|
|
23
22
|
})
|
|
24
23
|
],
|
|
25
|
-
content:
|
|
26
|
-
editable:
|
|
27
|
-
onUpdate:
|
|
24
|
+
content: d,
|
|
25
|
+
editable: f,
|
|
26
|
+
onUpdate: m,
|
|
28
27
|
parseOptions: { preserveWhitespace: "full" }
|
|
29
28
|
});
|
|
30
|
-
return
|
|
31
|
-
!
|
|
32
|
-
}, [
|
|
29
|
+
return r.useEffect(() => {
|
|
30
|
+
!g || g.isDestroyed || g.getHTML() !== d && g.commands.setContent(d);
|
|
31
|
+
}, [d, g]), /* @__PURE__ */ a(t, {
|
|
33
32
|
className: "tiptap-root",
|
|
34
|
-
sx: {
|
|
33
|
+
sx: (t) => ({
|
|
35
34
|
display: "flex",
|
|
36
35
|
flexDirection: "column",
|
|
37
|
-
...
|
|
36
|
+
...f && {
|
|
38
37
|
border: "1px solid",
|
|
39
38
|
borderColor: "divider",
|
|
40
39
|
borderRadius: 1,
|
|
41
40
|
transition: "border 120ms ease-in",
|
|
42
|
-
"&:hover": { borderColor:
|
|
41
|
+
"&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
|
|
43
42
|
"&:focus-within": {
|
|
44
|
-
outline: `3px solid ${e(
|
|
45
|
-
borderColor:
|
|
43
|
+
outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
|
|
44
|
+
borderColor: (t.vars ?? t).palette.primary[400]
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
47
|
"& .tiptap-container": {
|
|
@@ -71,13 +70,13 @@ var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {},
|
|
|
71
70
|
pointerEvents: "none"
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
},
|
|
75
|
-
children: [
|
|
73
|
+
}),
|
|
74
|
+
children: [p ? /* @__PURE__ */ i("div", {}) : /* @__PURE__ */ i(n, { editor: g }), /* @__PURE__ */ i(c, {
|
|
76
75
|
className: "tiptap-container",
|
|
77
|
-
editor:
|
|
76
|
+
editor: g
|
|
78
77
|
})]
|
|
79
78
|
});
|
|
80
79
|
};
|
|
81
|
-
|
|
80
|
+
d.displayName = "STextEditor";
|
|
82
81
|
//#endregion
|
|
83
|
-
export {
|
|
82
|
+
export { d as STextEditor, d as default };
|
|
@@ -19,7 +19,7 @@ import { n as he, t as ge } from "./Menu-C-0KEauj.js";
|
|
|
19
19
|
import { n as D, t as _e } from "./selectClasses-DvT1febA.js";
|
|
20
20
|
import { n as ve, r as ye } from "./useFormControl-B4z6ONhx.js";
|
|
21
21
|
import { i as O, n as k, r as be, t as xe } from "./outlinedInputClasses-Cz4pnn0X.js";
|
|
22
|
-
import { t as A } from "./s-text-field-
|
|
22
|
+
import { t as A } from "./s-text-field-Ck5QMhYI.js";
|
|
23
23
|
import * as j from "react";
|
|
24
24
|
import { jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
25
25
|
import { MenuItem as P } from "@mui/material";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-field-
|
|
1
|
+
import { t as e } from "../s-text-field-Ck5QMhYI.js";
|
|
2
2
|
export { e as STextField, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-field-
|
|
1
|
+
import { t as e } from "../s-text-field-Ck5QMhYI.js";
|
|
2
2
|
export { e as STextField, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-theme-demo-
|
|
1
|
+
import { t as e } from "../s-theme-demo-THHj5mFp.js";
|
|
2
2
|
export { e as SThemeDemo, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-theme-demo-
|
|
1
|
+
import { t as e } from "../s-theme-demo-THHj5mFp.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
|
-
import { t } from "./s-theme-switch-
|
|
3
|
-
import { t as n } from "./Favorite-
|
|
4
|
-
import { t as r } from "./s-text-field-
|
|
2
|
+
import { t } from "./s-theme-switch-V3Q58mkG.js";
|
|
3
|
+
import { t as n } from "./Favorite-BJSuHe0H.js";
|
|
4
|
+
import { t as r } from "./s-text-field-Ck5QMhYI.js";
|
|
5
5
|
import { SForm as i } from "./s-form/s-form.js";
|
|
6
6
|
import { SButton as a } from "./s-button/s-button.js";
|
|
7
7
|
import * as o from "react";
|