@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.
Files changed (109) hide show
  1. package/dist/{checkbox-PlpiwQNi.js → checkbox-B95Vlykq.js} +1 -1
  2. package/dist/hooks/index.d.ts +1 -1
  3. package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
  4. package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
  5. package/dist/s-chat-input/index.js +1 -1
  6. package/dist/s-chat-input/s-chat-input.js +1 -1
  7. package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-cOCqPTUS.js} +98 -98
  8. package/dist/s-chat-message/index.js +1 -1
  9. package/dist/s-chat-message/s-chat-message.js +1 -1
  10. package/dist/{s-chat-message-ox4Sj6xh.js → s-chat-message-Cb1npIQO.js} +1 -1
  11. package/dist/s-countdown/index.d.ts +2 -2
  12. package/dist/s-countdown/index.js +1 -1
  13. package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
  14. package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
  15. package/dist/s-data-table/index.js +1 -1
  16. package/dist/s-data-table/s-data-table.js +1 -1
  17. package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
  18. package/dist/s-date-picker/index.js +1 -1
  19. package/dist/s-date-picker/s-date-picker.js +1 -1
  20. package/dist/s-date-picker-BkZIEZoz.js +634 -0
  21. package/dist/s-datetime-picker/index.js +1 -1
  22. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  23. package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
  24. package/dist/s-dialog/s-dialog.d.ts +3 -3
  25. package/dist/s-dialog/s-dialog.js +6 -5
  26. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +7 -1
  27. package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
  28. package/dist/s-gallery/s-gallery.js +1 -1
  29. package/dist/s-glow-button/s-glow-button.d.ts +1 -1
  30. package/dist/s-glow-button/s-glow-button.js +18 -19
  31. package/dist/s-image-modal/index.js +1 -1
  32. package/dist/s-image-modal/s-image-modal.d.ts +6 -0
  33. package/dist/s-image-modal/s-image-modal.js +1 -1
  34. package/dist/{s-image-modal-DA3DBNbv.js → s-image-modal-Za71QD3d.js} +43 -43
  35. package/dist/s-nav-item/index.d.ts +0 -1
  36. package/dist/s-nav-item/index.js +1 -2
  37. package/dist/s-nav-items/index.d.ts +2 -0
  38. package/dist/s-nav-items/index.js +2 -0
  39. package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
  40. package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +3 -3
  41. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
  42. package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
  43. package/dist/s-review/index.js +1 -1
  44. package/dist/s-review/s-review.js +1 -1
  45. package/dist/{s-review-D4FBfBPF.js → s-review-DjvDY-h4.js} +1 -1
  46. package/dist/s-select/index.js +1 -1
  47. package/dist/s-select/s-select.d.ts +2 -0
  48. package/dist/s-select/s-select.js +1 -1
  49. package/dist/{s-select-b8CHbeCf.js → s-select-B-dEcddK.js} +20 -20
  50. package/dist/s-stripe/s-stripe.js +1 -1
  51. package/dist/s-text-editor/index.js +1 -1
  52. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  53. package/dist/s-text-editor/s-text-editor.js +30 -31
  54. package/dist/{s-text-editor-toolbar-CCK7yyNS.js → s-text-editor-toolbar-DP0MkICo.js} +1 -1
  55. package/dist/s-text-field/index.js +1 -1
  56. package/dist/s-text-field/s-text-field.d.ts +3 -1
  57. package/dist/s-text-field/s-text-field.js +1 -1
  58. package/dist/{s-text-field-Ck5QMhYI.js → s-text-field-GqcwXwta.js} +11 -11
  59. package/dist/s-theme-demo/index.js +1 -1
  60. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  61. package/dist/{s-theme-demo-THHj5mFp.js → s-theme-demo-BpeyFRKt.js} +1 -1
  62. package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
  63. package/dist/s-theme-provider/s-theme-provider.js +32 -26
  64. package/dist/s-tool-bar/index.js +1 -1
  65. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  66. package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DaZ2wT09.js} +142 -143
  67. package/dist/theme/components/accordion-summary.d.ts +385 -385
  68. package/dist/theme/components/accordion-summary.js +1 -1
  69. package/dist/theme/components/accordion.d.ts +2 -2
  70. package/dist/theme/components/alert.d.ts +1524 -1524
  71. package/dist/theme/components/alert.js +15 -22
  72. package/dist/theme/components/app-bar.d.ts +2 -2
  73. package/dist/theme/components/button.d.ts +2282 -2282
  74. package/dist/theme/components/button.js +40 -42
  75. package/dist/theme/components/card.d.ts +767 -767
  76. package/dist/theme/components/card.js +1 -1
  77. package/dist/theme/components/checkbox.d.ts +381 -381
  78. package/dist/theme/components/checkbox.js +1 -1
  79. package/dist/theme/components/chip.js +65 -52
  80. package/dist/theme/components/components.js +3 -3
  81. package/dist/theme/components/form-label.d.ts +2 -2
  82. package/dist/theme/components/icon-button.d.ts +2294 -2294
  83. package/dist/theme/components/icon-button.js +31 -29
  84. package/dist/theme/components/linear-progress.d.ts +382 -382
  85. package/dist/theme/components/linear-progress.js +1 -1
  86. package/dist/theme/components/link.d.ts +2 -2
  87. package/dist/theme/components/link.js +1 -1
  88. package/dist/theme/components/list-item-button.d.ts +2 -2
  89. package/dist/theme/components/list-item.d.ts +2 -2
  90. package/dist/theme/components/outlined-input.js +1 -1
  91. package/dist/theme/components/pagination-item.d.ts +385 -385
  92. package/dist/theme/components/step-icon.d.ts +383 -383
  93. package/dist/theme/components/step-icon.js +1 -1
  94. package/dist/theme/components/step-label.d.ts +384 -384
  95. package/dist/theme/components/tab.d.ts +384 -384
  96. package/dist/theme/components/tabs.d.ts +386 -386
  97. package/dist/theme/components/toggle-button-group.d.ts +383 -383
  98. package/dist/theme/components/toggle-button-group.js +1 -1
  99. package/dist/theme/components/toggle-button.d.ts +385 -385
  100. package/dist/theme/components/toggle-button.js +1 -1
  101. package/dist/theme/theme-primitives.d.ts +132 -0
  102. package/dist/theme/theme-primitives.js +1 -1
  103. package/dist/theme/utils.d.ts +11 -0
  104. package/dist/theme/utils.js +4 -0
  105. package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
  106. package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
  107. package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
  108. package/package.json +1 -1
  109. 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-DA3DBNbv.js";
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";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-select-b8CHbeCf.js";
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-b8CHbeCf.js";
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 = "", renderOption: A, ...j }, M) => {
79
- let N = j.value !== void 0, [P, F] = r(j.multiple ? [] : null), I = N ? j.value : P, [L, R] = r(""), [z, B] = r(!1), V = (e) => m(e, p), H = (e) => h(e, g), U = b(e, O, L, V), W = () => {
80
- O && (B(!1), R(""));
81
- }, G = (t) => j.multiple ? y(t, e, _, V, H) : v(t, E, e, _, V, H), K = () => O ? U.length > 0 ? C(U, H, V, A, n) : L ? /* @__PURE__ */ i(l, {
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: "No results found"
89
+ children: A
90
90
  })
91
- }) : C(e, H, V, A, n) : C(e, H, V, A, n), q = w(O);
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: M,
103
- open: O ? z : void 0,
104
- onOpen: O ? () => B(!0) : void 0,
105
- onClose: O ? W : void 0,
106
- MenuProps: q,
107
- renderValue: G,
108
- ...j,
109
- value: e.length ? I ?? "" : "",
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 (j.onChange) j.onChange(e, t);
112
- else if (!N) {
111
+ if (M.onChange) M.onChange(e, t);
112
+ else if (!P) {
113
113
  let t = e.target.value;
114
- F(t);
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: L,
131
- onChange: (e) => R(e.target.value),
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
- }), K()]
143
+ }), q()]
144
144
  })
145
145
  });
146
146
  });
@@ -1,4 +1,4 @@
1
- import { t as e } from "../s-text-field-Ck5QMhYI.js";
1
+ import { t as e } from "../s-text-field-GqcwXwta.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
@@ -1,3 +1,3 @@
1
- import { t as e } from "../s-text-editor-toolbar-CCK7yyNS.js";
1
+ import { t as e } from "../s-text-editor-toolbar-DP0MkICo.js";
2
2
  import { STextEditor as t } from "./s-text-editor.js";
3
3
  export { t as STextEditor, t as default, e as STextEditorToolbar };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-text-editor-toolbar-CCK7yyNS.js";
1
+ import { t as e } from "../s-text-editor-toolbar-DP0MkICo.js";
2
2
  export { e as STextEditorToolbar };
@@ -1,48 +1,47 @@
1
- import { i as e } from "../createTheme-Bnw5w28O.js";
1
+ import { tint as e } from "../theme/utils.js";
2
2
  import { t } from "../Box-BlmynALm.js";
3
- import { o as n, s as r } from "../theme-primitives-OrQ-xFJR.js";
4
- import { t as i } from "../s-text-editor-toolbar-CCK7yyNS.js";
5
- import * as a from "react";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { Link as c } from "@tiptap/extension-link";
8
- import { Placeholder as l } from "@tiptap/extension-placeholder";
9
- import { EditorContent as u, useEditor as d } from "@tiptap/react";
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 p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {}, placeholder: _ }) => {
13
- let v = d({
11
+ var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {}, placeholder: h }) => {
12
+ let g = l({
14
13
  extensions: [
15
- f,
16
- l.configure({
14
+ u,
15
+ s.configure({
17
16
  emptyEditorClass: "is-editor-empty",
18
- placeholder: _
17
+ placeholder: h
19
18
  }),
20
- c.configure({
19
+ o.configure({
21
20
  openOnClick: !1,
22
21
  autolink: !0
23
22
  })
24
23
  ],
25
- content: p,
26
- editable: m,
27
- onUpdate: g,
24
+ content: d,
25
+ editable: f,
26
+ onUpdate: m,
28
27
  parseOptions: { preserveWhitespace: "full" }
29
28
  });
30
- return a.useEffect(() => {
31
- !v || v.isDestroyed || v.getHTML() !== p && v.commands.setContent(p);
32
- }, [p, v]), /* @__PURE__ */ s(t, {
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
- ...m && {
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: r[500] },
41
+ "&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
43
42
  "&:focus-within": {
44
- outline: `3px solid ${e(n[500], .5)}`,
45
- borderColor: n[400]
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: [h ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ o(i, { editor: v }), /* @__PURE__ */ o(u, {
73
+ }),
74
+ children: [p ? /* @__PURE__ */ i("div", {}) : /* @__PURE__ */ i(n, { editor: g }), /* @__PURE__ */ i(c, {
76
75
  className: "tiptap-container",
77
- editor: v
76
+ editor: g
78
77
  })]
79
78
  });
80
79
  };
81
- p.displayName = "STextEditor";
80
+ d.displayName = "STextEditor";
82
81
  //#endregion
83
- export { p as STextEditor, p as default };
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-Ck5QMhYI.js";
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-Ck5QMhYI.js";
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-Ck5QMhYI.js";
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, ...m }) => {
8
- let [h, g] = n(!1), _ = d === "password", v = () => {
9
- g(!h);
10
- }, y = _ && h ? "text" : d, b = _ ? /* @__PURE__ */ r(a, {
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": "toggle password visibility",
14
- onClick: v,
13
+ "aria-label": m,
14
+ onClick: y,
15
15
  edge: "end",
16
16
  size: "small",
17
- children: r(h ? c : s, {})
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: y,
28
+ type: b,
29
29
  id: f,
30
30
  error: !!u,
31
- ...m,
31
+ ...h,
32
32
  slotProps: { input: {
33
- endAdornment: b,
34
- ...m.slotProps?.input
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-THHj5mFp.js";
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-THHj5mFp.js";
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-Ck5QMhYI.js";
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 { Theme, ThemeOptions, ThemeProviderProps } from '@mui/material';
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
- /** Custom theme object to merge with internal theme */
18
- theme?: 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-OrQ-xFJR.js";
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 d = ({ children: d, disableCssBaseline: f = !1, disableCustomTheme: p, themeComponents: m, defaultMode: h = "system", theme: g, ..._ }) => {
8
- let v = a.useMemo(() => p ? {} : u({
9
- cssVariables: {
10
- colorSchemeSelector: "data-mui-color-scheme",
11
- cssVarPrefix: "s"
12
- },
13
- colorSchemes: r,
14
- typography: e,
15
- shadows: t,
16
- shape: n,
17
- components: {
18
- ...i,
19
- ...m
20
- }
21
- }), [p, m]);
22
- return p ? /* @__PURE__ */ o(a.Fragment, { children: d }) : /* @__PURE__ */ s(l, {
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
- ...v,
27
- ...g
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
- d.displayName = "SThemeProvider";
39
+ f.displayName = "SThemeProvider";
34
40
  //#endregion
35
- export { d as SThemeProvider, d as default };
41
+ export { f as SThemeProvider, f as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-B-v1I_Hy.js";
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-B-v1I_Hy.js";
1
+ import { t as e } from "../s-tool-bar-DaZ2wT09.js";
2
2
  export { e as SToolBar, e as default };