@solostylist/ui-kit 1.0.223 → 1.0.225
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-PlpiwQNi.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-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-cOCqPTUS.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-ox4Sj6xh.js → s-chat-message-Cb1npIQO.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.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
- 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.d.ts +3 -3
- package/dist/s-dialog/s-dialog.js +6 -5
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +7 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- 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.d.ts +6 -0
- package/dist/s-image-modal/s-image-modal.js +1 -1
- package/dist/{s-image-modal-DA3DBNbv.js → s-image-modal-Za71QD3d.js} +43 -43
- 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 +3 -3
- 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-D4FBfBPF.js → s-review-DjvDY-h4.js} +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.d.ts +2 -0
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-b8CHbeCf.js → s-select-B-dEcddK.js} +20 -20
- package/dist/s-stripe/s-stripe.js +1 -1
- 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-CCK7yyNS.js → s-text-editor-toolbar-DP0MkICo.js} +1 -1
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +3 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-Ck5QMhYI.js → s-text-field-GqcwXwta.js} +11 -11
- 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-THHj5mFp.js → s-theme-demo-BpeyFRKt.js} +1 -1
- 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-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.js +1 -1
- package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DaZ2wT09.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/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 +3 -3
- 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-date-picker-Mynq297P.js +0 -634
|
@@ -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-Za71QD3d.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";
|
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-B-dEcddK.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -32,6 +32,8 @@ export type SSelectProps<T extends BaseOption = string> = Omit<SelectProps, 'err
|
|
|
32
32
|
searchable?: boolean;
|
|
33
33
|
/** Placeholder text for the search input */
|
|
34
34
|
searchPlaceholder?: string;
|
|
35
|
+
/** Message shown when a search yields no matching options */
|
|
36
|
+
noResultsText?: string;
|
|
35
37
|
/** Custom render function for options */
|
|
36
38
|
renderOption?: (option: T) => ReactNode;
|
|
37
39
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-select-
|
|
1
|
+
import { t as e } from "../s-select-B-dEcddK.js";
|
|
2
2
|
export { e as SSelect, e as default };
|
|
@@ -75,10 +75,10 @@ function w(e) {
|
|
|
75
75
|
} } }
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionValue: g = "id", placeholder: _, label: x = "", error: S, required: T = !1, simple: E = !1, htmlFor: D, searchable: O = !1, searchPlaceholder: k = "",
|
|
79
|
-
let
|
|
80
|
-
O && (
|
|
81
|
-
},
|
|
78
|
+
var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionValue: g = "id", placeholder: _, label: x = "", error: S, required: T = !1, simple: E = !1, htmlFor: D, searchable: O = !1, searchPlaceholder: k = "", noResultsText: A = "No results found", renderOption: j, ...M }, N) => {
|
|
79
|
+
let P = M.value !== void 0, [F, I] = r(M.multiple ? [] : null), L = P ? M.value : F, [R, z] = r(""), [B, V] = r(!1), H = (e) => m(e, p), U = (e) => h(e, g), W = b(e, O, R, H), G = () => {
|
|
80
|
+
O && (V(!1), z(""));
|
|
81
|
+
}, K = (t) => M.multiple ? y(t, e, _, H, U) : v(t, E, e, _, H, U), q = () => O ? W.length > 0 ? C(W, U, H, j, n) : R ? /* @__PURE__ */ i(l, {
|
|
82
82
|
disabled: !0,
|
|
83
83
|
children: /* @__PURE__ */ i(o, {
|
|
84
84
|
sx: {
|
|
@@ -86,9 +86,9 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
86
86
|
textAlign: "center",
|
|
87
87
|
width: "100%"
|
|
88
88
|
},
|
|
89
|
-
children:
|
|
89
|
+
children: A
|
|
90
90
|
})
|
|
91
|
-
}) : C(e,
|
|
91
|
+
}) : C(e, U, H, j, n) : C(e, U, H, j, n), J = w(O);
|
|
92
92
|
return /* @__PURE__ */ i(t, {
|
|
93
93
|
error: S,
|
|
94
94
|
label: x,
|
|
@@ -99,19 +99,19 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
99
99
|
displayEmpty: !0,
|
|
100
100
|
fullWidth: !0,
|
|
101
101
|
defaultValue: "",
|
|
102
|
-
ref:
|
|
103
|
-
open: O ?
|
|
104
|
-
onOpen: O ? () =>
|
|
105
|
-
onClose: O ?
|
|
106
|
-
MenuProps:
|
|
107
|
-
renderValue:
|
|
108
|
-
...
|
|
109
|
-
value: e.length ?
|
|
102
|
+
ref: N,
|
|
103
|
+
open: O ? B : void 0,
|
|
104
|
+
onOpen: O ? () => V(!0) : void 0,
|
|
105
|
+
onClose: O ? G : void 0,
|
|
106
|
+
MenuProps: J,
|
|
107
|
+
renderValue: K,
|
|
108
|
+
...M,
|
|
109
|
+
value: e.length ? L ?? "" : "",
|
|
110
110
|
onChange: (e, t) => {
|
|
111
|
-
if (
|
|
112
|
-
else if (!
|
|
111
|
+
if (M.onChange) M.onChange(e, t);
|
|
112
|
+
else if (!P) {
|
|
113
113
|
let t = e.target.value;
|
|
114
|
-
|
|
114
|
+
I(t);
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
children: [O && /* @__PURE__ */ i(c, {
|
|
@@ -127,8 +127,8 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
127
127
|
fullWidth: !0,
|
|
128
128
|
autoFocus: !0,
|
|
129
129
|
placeholder: k,
|
|
130
|
-
value:
|
|
131
|
-
onChange: (e) =>
|
|
130
|
+
value: R,
|
|
131
|
+
onChange: (e) => z(e.target.value),
|
|
132
132
|
onKeyDown: (e) => {
|
|
133
133
|
e.key !== "Escape" && e.stopPropagation();
|
|
134
134
|
},
|
|
@@ -140,7 +140,7 @@ var T = n(({ options: e = [], getOptionKey: n, optionLabel: p = "name", optionVa
|
|
|
140
140
|
children: /* @__PURE__ */ i(f, {})
|
|
141
141
|
}) } }
|
|
142
142
|
})
|
|
143
|
-
}),
|
|
143
|
+
}), q()]
|
|
144
144
|
})
|
|
145
145
|
});
|
|
146
146
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-editor-toolbar-
|
|
1
|
+
import { t as e } from "../s-text-editor-toolbar-DP0MkICo.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-DP0MkICo.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-GqcwXwta.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-GqcwXwta.js";
|
|
2
2
|
export { e as STextField, e as default };
|
|
@@ -14,9 +14,11 @@ export type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'erro
|
|
|
14
14
|
htmlFor?: string;
|
|
15
15
|
/** Help text shown in tooltip next to the label */
|
|
16
16
|
hint?: string;
|
|
17
|
+
/** Accessible text for the password visibility toggle button */
|
|
18
|
+
togglePasswordText?: string;
|
|
17
19
|
};
|
|
18
20
|
export declare const STextField: {
|
|
19
|
-
({ label, required, error, type, htmlFor, hint, ...props }: STextFieldProps): React.JSX.Element;
|
|
21
|
+
({ label, required, error, type, htmlFor, hint, togglePasswordText, ...props }: STextFieldProps): React.JSX.Element;
|
|
20
22
|
displayName: string;
|
|
21
23
|
};
|
|
22
24
|
export default STextField;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-text-field-
|
|
1
|
+
import { t as e } from "../s-text-field-GqcwXwta.js";
|
|
2
2
|
export { e as STextField, e as default };
|
|
@@ -4,17 +4,17 @@ import { useState as n } from "react";
|
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { IconButton as i, InputAdornment as a, TextField as o } from "@mui/material";
|
|
6
6
|
//#region ../../node_modules/@mui/icons-material/Visibility.mjs
|
|
7
|
-
var s = e(/* @__PURE__ */ r("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" }), "Visibility"), c = e(/* @__PURE__ */ r("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z" }), "VisibilityOff"), l = ({ label: e = "", required: l = !1, error: u, type: d = "text", htmlFor: f, hint: p,
|
|
8
|
-
let [
|
|
9
|
-
|
|
10
|
-
},
|
|
7
|
+
var s = e(/* @__PURE__ */ r("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" }), "Visibility"), c = e(/* @__PURE__ */ r("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z" }), "VisibilityOff"), l = ({ label: e = "", required: l = !1, error: u, type: d = "text", htmlFor: f, hint: p, togglePasswordText: m = "toggle password visibility", ...h }) => {
|
|
8
|
+
let [g, _] = n(!1), v = d === "password", y = () => {
|
|
9
|
+
_(!g);
|
|
10
|
+
}, b = v && g ? "text" : d, x = v ? /* @__PURE__ */ r(a, {
|
|
11
11
|
position: "end",
|
|
12
12
|
children: /* @__PURE__ */ r(i, {
|
|
13
|
-
"aria-label":
|
|
14
|
-
onClick:
|
|
13
|
+
"aria-label": m,
|
|
14
|
+
onClick: y,
|
|
15
15
|
edge: "end",
|
|
16
16
|
size: "small",
|
|
17
|
-
children: r(
|
|
17
|
+
children: r(g ? c : s, {})
|
|
18
18
|
})
|
|
19
19
|
}) : void 0;
|
|
20
20
|
return /* @__PURE__ */ r(t, {
|
|
@@ -25,13 +25,13 @@ var s = e(/* @__PURE__ */ r("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39
|
|
|
25
25
|
htmlFor: f,
|
|
26
26
|
children: /* @__PURE__ */ r(o, {
|
|
27
27
|
fullWidth: !0,
|
|
28
|
-
type:
|
|
28
|
+
type: b,
|
|
29
29
|
id: f,
|
|
30
30
|
error: !!u,
|
|
31
|
-
...
|
|
31
|
+
...h,
|
|
32
32
|
slotProps: { input: {
|
|
33
|
-
endAdornment:
|
|
34
|
-
...
|
|
33
|
+
endAdornment: x,
|
|
34
|
+
...h.slotProps?.input
|
|
35
35
|
} }
|
|
36
36
|
})
|
|
37
37
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-theme-demo-
|
|
1
|
+
import { t as e } from "../s-theme-demo-BpeyFRKt.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-BpeyFRKt.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./createSvgIcon-BdNZIlKS.js";
|
|
2
2
|
import { t } from "./s-theme-switch-V3Q58mkG.js";
|
|
3
3
|
import { t as n } from "./Favorite-BJSuHe0H.js";
|
|
4
|
-
import { t as r } from "./s-text-field-
|
|
4
|
+
import { t as r } from "./s-text-field-GqcwXwta.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeOptions, ThemeProviderProps } from '@mui/material';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Props interface for SThemeProvider component
|
|
@@ -14,8 +14,8 @@ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMo
|
|
|
14
14
|
themeComponents?: ThemeOptions['components'];
|
|
15
15
|
/** Default color mode (defaults to 'system') */
|
|
16
16
|
defaultMode?: 'light' | 'dark' | 'system';
|
|
17
|
-
/**
|
|
18
|
-
theme?:
|
|
17
|
+
/** Theme options deep-merged into the internal theme before createTheme */
|
|
18
|
+
theme?: ThemeOptions;
|
|
19
19
|
}
|
|
20
20
|
export declare const SThemeProvider: {
|
|
21
21
|
({ children, disableCssBaseline, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps): React.JSX.Element;
|
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../theme-primitives-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../theme-primitives-D2vHHGiX.js";
|
|
2
2
|
import { components as i } from "../theme/components/components.js";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
5
|
import { CssBaseline as c, ThemeProvider as l, createTheme as u } from "@mui/material";
|
|
6
|
+
import { deepmerge as d } from "@mui/utils";
|
|
6
7
|
//#region lib/s-theme-provider/s-theme-provider.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
var f = ({ children: f, disableCssBaseline: p = !1, disableCustomTheme: m, themeComponents: h, defaultMode: g = "system", theme: _, ...v }) => {
|
|
9
|
+
let y = a.useMemo(() => {
|
|
10
|
+
if (m) return {};
|
|
11
|
+
let a = {
|
|
12
|
+
cssVariables: {
|
|
13
|
+
colorSchemeSelector: "data-mui-color-scheme",
|
|
14
|
+
cssVarPrefix: "s"
|
|
15
|
+
},
|
|
16
|
+
colorSchemes: r,
|
|
17
|
+
typography: e,
|
|
18
|
+
shadows: t,
|
|
19
|
+
shape: n,
|
|
20
|
+
components: {
|
|
21
|
+
...i,
|
|
22
|
+
...h
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return u(_ ? d(a, _) : a);
|
|
26
|
+
}, [
|
|
27
|
+
m,
|
|
28
|
+
h,
|
|
29
|
+
_
|
|
30
|
+
]);
|
|
31
|
+
return m ? /* @__PURE__ */ o(a.Fragment, { children: f }) : /* @__PURE__ */ s(l, {
|
|
23
32
|
disableTransitionOnChange: !0,
|
|
24
|
-
...
|
|
25
|
-
theme:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
defaultMode: h,
|
|
30
|
-
children: [!f && /* @__PURE__ */ o(c, {}), d]
|
|
33
|
+
...v,
|
|
34
|
+
theme: y,
|
|
35
|
+
defaultMode: g,
|
|
36
|
+
children: [!p && /* @__PURE__ */ o(c, {}), f]
|
|
31
37
|
});
|
|
32
38
|
};
|
|
33
|
-
|
|
39
|
+
f.displayName = "SThemeProvider";
|
|
34
40
|
//#endregion
|
|
35
|
-
export {
|
|
41
|
+
export { f as SThemeProvider, f as default };
|
package/dist/s-tool-bar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-tool-bar-
|
|
1
|
+
import { t as e } from "../s-tool-bar-DaZ2wT09.js";
|
|
2
2
|
export { e as SToolBar, e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../s-tool-bar-
|
|
1
|
+
import { t as e } from "../s-tool-bar-DaZ2wT09.js";
|
|
2
2
|
export { e as SToolBar, e as default };
|