@solostylist/ui-kit 1.0.115 → 1.0.117

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 (74) hide show
  1. package/dist/{Box-D0kAx4PT.js → Box-DqmXop3Z.js} +3 -3
  2. package/dist/{ButtonBase-QnP537_L.js → ButtonBase-DVlCHVDw.js} +4 -4
  3. package/dist/{ChevronRight-SimL9kDt.js → ChevronRight-DQD188LX.js} +1 -1
  4. package/dist/{Close-BmQG3xZp.js → Close-DlTC3goO.js} +1 -1
  5. package/dist/{ExpandMore-CM0JYSoz.js → ExpandMore-D5dA_4ky.js} +1 -1
  6. package/dist/{Favorite-BEKdrIQq.js → Favorite-DkdOa-QT.js} +1 -1
  7. package/dist/{Menu-ClZKHyC1.js → Menu-CgxtGUFu.js} +322 -309
  8. package/dist/{MenuItem-DxJh8UvK.js → MenuItem-FlDSyi1I.js} +5 -5
  9. package/dist/{Paper-CpSojup3.js → Paper-DTI6p5rh.js} +7 -7
  10. package/dist/{Select-CmJydrV_.js → Select-awnAAkKz.js} +387 -370
  11. package/dist/{Stack-DKN2SxRo.js → Stack-CO3ed3qL.js} +5 -5
  12. package/dist/{TransitionGroup-iVQWCEuB.js → TransitionGroup-BK0MDPKM.js} +1 -1
  13. package/dist/{Typography-N0Mzi70r.js → Typography-y4bVBfDI.js} +4 -4
  14. package/dist/{createSvgIcon-L9c3q_HV.js → createSvgIcon-By5UWB4_.js} +130 -104
  15. package/dist/{createTheme-CSzTQZIR.js → createTheme-3Wd3hHrj.js} +0 -1
  16. package/dist/defaultTheme-fEi1x1Gb.js +5 -0
  17. package/dist/{extendSxProp-BDhPgeA-.js → extendSxProp-BKWjdW12.js} +1 -1
  18. package/dist/index-VB-2NIdQ.js +95 -0
  19. package/dist/main.d.ts +3 -3
  20. package/dist/main.js +72 -74
  21. package/dist/{mergeSlotProps-BqZn7QoU.js → mergeSlotProps-C7ui6BxO.js} +1 -1
  22. package/dist/s-accordion/s-accordion.js +8 -8
  23. package/dist/s-carousel/s-carousel.js +1 -1
  24. package/dist/s-chat-input/s-chat-input.js +2 -2
  25. package/dist/s-chat-message/s-chat-message.js +1 -1
  26. package/dist/s-comment-message/s-comment-message.js +3 -3
  27. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  28. package/dist/s-data-table/s-data-table.js +5 -5
  29. package/dist/s-date-picker/s-date-picker.js +7 -7
  30. package/dist/s-datetime-picker/s-datetime-picker.js +14 -15
  31. package/dist/s-dialog/s-dialog.js +1 -1
  32. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  33. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  34. package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
  35. package/dist/s-file-icon/s-file-icon.js +1 -1
  36. package/dist/s-flex-box/s-flex-box.js +1 -1
  37. package/dist/s-image-comparison/s-image-comparison.js +53 -51
  38. package/dist/s-image-modal/s-image-modal.js +2 -2
  39. package/dist/s-label/s-label.js +1 -1
  40. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  41. package/dist/s-multi-select/s-multi-select.js +3 -3
  42. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +1 -1
  43. package/dist/s-review/s-review.js +1 -1
  44. package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
  45. package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
  46. package/dist/s-text-editor/s-text-editor.js +1 -1
  47. package/dist/s-text-field/s-text-field.js +1 -1
  48. package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
  49. package/dist/s-theme-demo/s-theme-demo.js +2 -2
  50. package/dist/s-theme-provider/index.d.ts +0 -2
  51. package/dist/s-theme-provider/index.js +2 -5
  52. package/dist/s-theme-switch/index.d.ts +1 -1
  53. package/dist/s-theme-switch/s-theme-switch.d.ts +4 -1
  54. package/dist/s-theme-switch/s-theme-switch.js +21 -23
  55. package/dist/s-tip/s-tip.js +3 -3
  56. package/dist/{styled-B6SqfqyN.js → styled-BD_erj7E.js} +2 -2
  57. package/dist/theme/components/avatar.js +1 -1
  58. package/dist/theme/components/chip.js +1 -1
  59. package/dist/theme/customizations/inputs.js +2 -1
  60. package/dist/theme/customizations/navigation.js +1 -1
  61. package/dist/theme/theme-primitives.js +1 -1
  62. package/dist/{useMobilePicker-BKb9wDk9.js → useMobilePicker-BV-ABj4C.js} +75 -77
  63. package/dist/{useTheme-DQFlX-BU.js → useTheme-B5czKfC4.js} +1 -1
  64. package/dist/{useThemeProps-DI2LSvKR.js → useThemeProps-DqA5BinV.js} +1 -1
  65. package/dist/{warning-DRu3W3_g.js → warning-BCwEnWrE.js} +3 -3
  66. package/package.json +1 -1
  67. package/dist/DefaultPropsProvider-CoEfFcSh.js +0 -56
  68. package/dist/GlobalStyles-CpyAg53D.js +0 -59
  69. package/dist/defaultTheme-QdH8_nrP.js +0 -5
  70. package/dist/index-C8hHiHry.js +0 -33
  71. package/dist/index-bBtpkEYO.js +0 -44
  72. package/dist/s-theme-provider/use-theme.d.ts +0 -51
  73. package/dist/s-theme-provider/use-theme.js +0 -670
  74. package/dist/useId-CK6Kn3Tn.js +0 -21
@@ -1,11 +1,11 @@
1
- import { P as e, h as O, r as m, e as V, f as C, m as D, b as E, g as b } from "./createTheme-CSzTQZIR.js";
2
- import { c as N, s as R } from "./styled-B6SqfqyN.js";
1
+ import { P as e, h as O, r as m, e as V, f as C, m as D, b as E, g as b } from "./createTheme-3Wd3hHrj.js";
2
+ import { c as N, s as R } from "./styled-BD_erj7E.js";
3
3
  import * as f from "react";
4
4
  import { c as F } from "./clsx-OuTLNxxd.js";
5
5
  import { j as B } from "./jsx-runtime-OVHDjVDe.js";
6
- import { e as M } from "./extendSxProp-BDhPgeA-.js";
7
- import { u as w } from "./useThemeProps-DI2LSvKR.js";
8
- import { b as G, u as U } from "./createSvgIcon-L9c3q_HV.js";
6
+ import { e as M } from "./extendSxProp-BKWjdW12.js";
7
+ import { u as w } from "./useThemeProps-DqA5BinV.js";
8
+ import { b as G, u as U } from "./createSvgIcon-By5UWB4_.js";
9
9
  import { g as $ } from "./colorManipulator-ep5lERxB.js";
10
10
  const A = N(), _ = E(), I = A("div", {
11
11
  name: "MuiStack",
@@ -1,5 +1,5 @@
1
1
  import { a as x, _ } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
2
- import { P as p } from "./createTheme-CSzTQZIR.js";
2
+ import { P as p } from "./createTheme-3Wd3hHrj.js";
3
3
  import f, { isValidElement as h, cloneElement as v, Children as O } from "react";
4
4
  function m(e, n) {
5
5
  return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, a) {
@@ -1,11 +1,11 @@
1
1
  import * as j from "react";
2
- import { c, P as r } from "./createTheme-CSzTQZIR.js";
3
- import { u as O, a as S, b as w, m as B } from "./createSvgIcon-L9c3q_HV.js";
4
- import { i as P } from "./index-bBtpkEYO.js";
2
+ import { c, P as r } from "./createTheme-3Wd3hHrj.js";
3
+ import { u as O, a as S, b as w, m as B } from "./createSvgIcon-By5UWB4_.js";
4
+ import { i as P } from "./index-VB-2NIdQ.js";
5
5
  import { c as W } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
6
  import { g as C } from "./typographyClasses-C7fhAsUD.js";
7
7
  import { j as R } from "./jsx-runtime-OVHDjVDe.js";
8
- import { s as M } from "./styled-B6SqfqyN.js";
8
+ import { s as M } from "./styled-BD_erj7E.js";
9
9
  const N = {
10
10
  primary: !0,
11
11
  secondary: !0,
@@ -1,84 +1,110 @@
1
- import * as S from "react";
2
- import { j as x } from "./jsx-runtime-OVHDjVDe.js";
3
- import { P as n, c as z } from "./createTheme-CSzTQZIR.js";
4
- import { p as w, s as O } from "./styled-B6SqfqyN.js";
5
- import { g as R } from "./svgIconClasses-CBCi8U9g.js";
6
- import { u as j } from "./DefaultPropsProvider-CoEfFcSh.js";
7
- function T(e) {
8
- var o, t, r = "";
9
- if (typeof e == "string" || typeof e == "number") r += e;
1
+ import * as d from "react";
2
+ import { j as b } from "./jsx-runtime-OVHDjVDe.js";
3
+ import { P as s, c as x } from "./createTheme-3Wd3hHrj.js";
4
+ import { p as T, s as j } from "./styled-BD_erj7E.js";
5
+ import { g as w } from "./svgIconClasses-CBCi8U9g.js";
6
+ import { r as z } from "./resolveProps-61uUKnlS.js";
7
+ function O(e) {
8
+ var o, t, n = "";
9
+ if (typeof e == "string" || typeof e == "number") n += e;
10
10
  else if (typeof e == "object") if (Array.isArray(e)) {
11
- var s = e.length;
12
- for (o = 0; o < s; o++) e[o] && (t = T(e[o])) && (r && (r += " "), r += t);
13
- } else for (t in e) e[t] && (r && (r += " "), r += t);
14
- return r;
11
+ var r = e.length;
12
+ for (o = 0; o < r; o++) e[o] && (t = O(e[o])) && (n && (n += " "), n += t);
13
+ } else for (t in e) e[t] && (n && (n += " "), n += t);
14
+ return n;
15
15
  }
16
16
  function E() {
17
- for (var e, o, t = 0, r = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (o = T(e)) && (r && (r += " "), r += o);
18
- return r;
17
+ for (var e, o, t = 0, n = "", r = arguments.length; t < r; t++) (e = arguments[t]) && (o = O(e)) && (n && (n += " "), n += o);
18
+ return n;
19
19
  }
20
- function I(e, o, t = void 0) {
21
- const r = {};
22
- for (const s in e) {
23
- const i = e[s];
24
- let f = "", l = !0;
25
- for (let p = 0; p < i.length; p += 1) {
26
- const a = i[p];
27
- a && (f += (l === !0 ? "" : " ") + o(a), l = !1, t && t[a] && (f += " " + t[a]));
20
+ function R(e, o, t = void 0) {
21
+ const n = {};
22
+ for (const r in e) {
23
+ const i = e[r];
24
+ let p = "", a = !0;
25
+ for (let f = 0; f < i.length; f += 1) {
26
+ const c = i[f];
27
+ c && (p += (a === !0 ? "" : " ") + o(c), a = !1, t && t[c] && (p += " " + t[c]));
28
28
  }
29
- r[s] = f;
29
+ n[r] = p;
30
30
  }
31
- return r;
31
+ return n;
32
32
  }
33
- const N = {
33
+ const I = /* @__PURE__ */ d.createContext(void 0);
34
+ process.env.NODE_ENV !== "production" && (s.node, s.object);
35
+ function V(e) {
36
+ const {
37
+ theme: o,
38
+ name: t,
39
+ props: n
40
+ } = e;
41
+ if (!o || !o.components || !o.components[t])
42
+ return n;
43
+ const r = o.components[t];
44
+ return r.defaultProps ? z(r.defaultProps, n, o.components.mergeClassNameAndStyle) : !r.styleOverrides && !r.variants ? z(r, n, o.components.mergeClassNameAndStyle) : n;
45
+ }
46
+ function A({
47
+ props: e,
48
+ name: o
49
+ }) {
50
+ const t = d.useContext(I);
51
+ return V({
52
+ props: e,
53
+ name: o,
54
+ theme: {
55
+ components: t
56
+ }
57
+ });
58
+ }
59
+ const C = {
34
60
  theme: void 0
35
61
  };
36
- function C(e) {
62
+ function P(e) {
37
63
  let o, t;
38
- return function(s) {
64
+ return function(r) {
39
65
  let i = o;
40
- return (i === void 0 || s.theme !== t) && (N.theme = s.theme, i = w(e(N)), o = i, t = s.theme), i;
66
+ return (i === void 0 || r.theme !== t) && (C.theme = r.theme, i = T(e(C)), o = i, t = r.theme), i;
41
67
  };
42
68
  }
43
- const V = C;
44
- process.env.NODE_ENV !== "production" && (n.node, n.object.isRequired);
69
+ const D = P;
70
+ process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
45
71
  function $(e) {
46
- return j(e);
72
+ return A(e);
47
73
  }
48
- const A = (e) => {
74
+ const _ = (e) => {
49
75
  const {
50
76
  color: o,
51
77
  fontSize: t,
52
- classes: r
53
- } = e, s = {
54
- root: ["root", o !== "inherit" && `color${z(o)}`, `fontSize${z(t)}`]
78
+ classes: n
79
+ } = e, r = {
80
+ root: ["root", o !== "inherit" && `color${x(o)}`, `fontSize${x(t)}`]
55
81
  };
56
- return I(s, R, r);
57
- }, D = O("svg", {
82
+ return R(r, w, n);
83
+ }, B = j("svg", {
58
84
  name: "MuiSvgIcon",
59
85
  slot: "Root",
60
86
  overridesResolver: (e, o) => {
61
87
  const {
62
88
  ownerState: t
63
89
  } = e;
64
- return [o.root, t.color !== "inherit" && o[`color${z(t.color)}`], o[`fontSize${z(t.fontSize)}`]];
90
+ return [o.root, t.color !== "inherit" && o[`color${x(t.color)}`], o[`fontSize${x(t.fontSize)}`]];
65
91
  }
66
- })(V(({
92
+ })(D(({
67
93
  theme: e
68
94
  }) => {
69
- var o, t, r, s, i, f, l, p, a, d, u, g, y, m;
95
+ var o, t, n, r, i, p, a, f, c, g, u, v, h, m;
70
96
  return {
71
97
  userSelect: "none",
72
98
  width: "1em",
73
99
  height: "1em",
74
100
  display: "inline-block",
75
101
  flexShrink: 0,
76
- transition: (s = (o = e.transitions) == null ? void 0 : o.create) == null ? void 0 : s.call(o, "fill", {
77
- duration: (r = (t = (e.vars ?? e).transitions) == null ? void 0 : t.duration) == null ? void 0 : r.shorter
102
+ transition: (r = (o = e.transitions) == null ? void 0 : o.create) == null ? void 0 : r.call(o, "fill", {
103
+ duration: (n = (t = (e.vars ?? e).transitions) == null ? void 0 : t.duration) == null ? void 0 : n.shorter
78
104
  }),
79
105
  variants: [
80
106
  {
81
- props: (c) => !c.hasSvgAsChild,
107
+ props: (l) => !l.hasSvgAsChild,
82
108
  style: {
83
109
  // the <svg> will define the property that has `currentColor`
84
110
  // for example heroicons uses fill="none" and stroke="currentColor"
@@ -98,7 +124,7 @@ const A = (e) => {
98
124
  fontSize: "small"
99
125
  },
100
126
  style: {
101
- fontSize: ((f = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : f.call(i, 20)) || "1.25rem"
127
+ fontSize: ((p = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : p.call(i, 20)) || "1.25rem"
102
128
  }
103
129
  },
104
130
  {
@@ -106,7 +132,7 @@ const A = (e) => {
106
132
  fontSize: "medium"
107
133
  },
108
134
  style: {
109
- fontSize: ((p = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : p.call(l, 24)) || "1.5rem"
135
+ fontSize: ((f = (a = e.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : f.call(a, 24)) || "1.5rem"
110
136
  }
111
137
  },
112
138
  {
@@ -114,18 +140,18 @@ const A = (e) => {
114
140
  fontSize: "large"
115
141
  },
116
142
  style: {
117
- fontSize: ((d = (a = e.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : d.call(a, 35)) || "2.1875rem"
143
+ fontSize: ((g = (c = e.typography) == null ? void 0 : c.pxToRem) == null ? void 0 : g.call(c, 35)) || "2.1875rem"
118
144
  }
119
145
  },
120
146
  // TODO v5 deprecate color prop, v6 remove for sx
121
- ...Object.entries((e.vars ?? e).palette).filter(([, c]) => c && c.main).map(([c]) => {
122
- var v, h;
147
+ ...Object.entries((e.vars ?? e).palette).filter(([, l]) => l && l.main).map(([l]) => {
148
+ var y, S;
123
149
  return {
124
150
  props: {
125
- color: c
151
+ color: l
126
152
  },
127
153
  style: {
128
- color: (h = (v = (e.vars ?? e).palette) == null ? void 0 : v[c]) == null ? void 0 : h.main
154
+ color: (S = (y = (e.vars ?? e).palette) == null ? void 0 : y[l]) == null ? void 0 : S.main
129
155
  }
130
156
  };
131
157
  }),
@@ -134,7 +160,7 @@ const A = (e) => {
134
160
  color: "action"
135
161
  },
136
162
  style: {
137
- color: (g = (u = (e.vars ?? e).palette) == null ? void 0 : u.action) == null ? void 0 : g.active
163
+ color: (v = (u = (e.vars ?? e).palette) == null ? void 0 : u.action) == null ? void 0 : v.active
138
164
  }
139
165
  },
140
166
  {
@@ -142,7 +168,7 @@ const A = (e) => {
142
168
  color: "disabled"
143
169
  },
144
170
  style: {
145
- color: (m = (y = (e.vars ?? e).palette) == null ? void 0 : y.action) == null ? void 0 : m.disabled
171
+ color: (m = (h = (e.vars ?? e).palette) == null ? void 0 : h.action) == null ? void 0 : m.disabled
146
172
  }
147
173
  },
148
174
  {
@@ -155,51 +181,51 @@ const A = (e) => {
155
181
  }
156
182
  ]
157
183
  };
158
- })), b = /* @__PURE__ */ S.forwardRef(function(o, t) {
159
- const r = $({
184
+ })), N = /* @__PURE__ */ d.forwardRef(function(o, t) {
185
+ const n = $({
160
186
  props: o,
161
187
  name: "MuiSvgIcon"
162
188
  }), {
163
- children: s,
189
+ children: r,
164
190
  className: i,
165
- color: f = "inherit",
166
- component: l = "svg",
167
- fontSize: p = "medium",
168
- htmlColor: a,
169
- inheritViewBox: d = !1,
191
+ color: p = "inherit",
192
+ component: a = "svg",
193
+ fontSize: f = "medium",
194
+ htmlColor: c,
195
+ inheritViewBox: g = !1,
170
196
  titleAccess: u,
171
- viewBox: g = "0 0 24 24",
172
- ...y
173
- } = r, m = /* @__PURE__ */ S.isValidElement(s) && s.type === "svg", c = {
174
- ...r,
175
- color: f,
176
- component: l,
177
- fontSize: p,
197
+ viewBox: v = "0 0 24 24",
198
+ ...h
199
+ } = n, m = /* @__PURE__ */ d.isValidElement(r) && r.type === "svg", l = {
200
+ ...n,
201
+ color: p,
202
+ component: a,
203
+ fontSize: f,
178
204
  instanceFontSize: o.fontSize,
179
- inheritViewBox: d,
180
- viewBox: g,
205
+ inheritViewBox: g,
206
+ viewBox: v,
181
207
  hasSvgAsChild: m
182
- }, v = {};
183
- d || (v.viewBox = g);
184
- const h = A(c);
185
- return /* @__PURE__ */ x.jsxs(D, {
186
- as: l,
187
- className: E(h.root, i),
208
+ }, y = {};
209
+ g || (y.viewBox = v);
210
+ const S = _(l);
211
+ return /* @__PURE__ */ b.jsxs(B, {
212
+ as: a,
213
+ className: E(S.root, i),
188
214
  focusable: "false",
189
- color: a,
215
+ color: c,
190
216
  "aria-hidden": u ? void 0 : !0,
191
217
  role: u ? "img" : void 0,
192
218
  ref: t,
193
- ...v,
194
219
  ...y,
195
- ...m && s.props,
196
- ownerState: c,
197
- children: [m ? s.props.children : s, u ? /* @__PURE__ */ x.jsx("title", {
220
+ ...h,
221
+ ...m && r.props,
222
+ ownerState: l,
223
+ children: [m ? r.props.children : r, u ? /* @__PURE__ */ b.jsx("title", {
198
224
  children: u
199
225
  }) : null]
200
226
  });
201
227
  });
202
- process.env.NODE_ENV !== "production" && (b.propTypes = {
228
+ process.env.NODE_ENV !== "production" && (N.propTypes = {
203
229
  // ┌────────────────────────────── Warning ──────────────────────────────┐
204
230
  // │ These PropTypes are generated from the TypeScript type definitions. │
205
231
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -207,15 +233,15 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
207
233
  /**
208
234
  * Node passed into the SVG element.
209
235
  */
210
- children: n.node,
236
+ children: s.node,
211
237
  /**
212
238
  * Override or extend the styles applied to the component.
213
239
  */
214
- classes: n.object,
240
+ classes: s.object,
215
241
  /**
216
242
  * @ignore
217
243
  */
218
- className: n.string,
244
+ className: s.string,
219
245
  /**
220
246
  * The color of the component.
221
247
  * It supports both default and custom theme colors, which can be added as shown in the
@@ -223,21 +249,21 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
223
249
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
224
250
  * @default 'inherit'
225
251
  */
226
- color: n.oneOfType([n.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), n.string]),
252
+ color: s.oneOfType([s.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), s.string]),
227
253
  /**
228
254
  * The component used for the root node.
229
255
  * Either a string to use a HTML element or a component.
230
256
  */
231
- component: n.elementType,
257
+ component: s.elementType,
232
258
  /**
233
259
  * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
234
260
  * @default 'medium'
235
261
  */
236
- fontSize: n.oneOfType([n.oneOf(["inherit", "large", "medium", "small"]), n.string]),
262
+ fontSize: s.oneOfType([s.oneOf(["inherit", "large", "medium", "small"]), s.string]),
237
263
  /**
238
264
  * Applies a color attribute to the SVG element.
239
265
  */
240
- htmlColor: n.string,
266
+ htmlColor: s.string,
241
267
  /**
242
268
  * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
243
269
  * prop will be ignored.
@@ -245,22 +271,22 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
245
271
  * `component`'s viewBox to the root node.
246
272
  * @default false
247
273
  */
248
- inheritViewBox: n.bool,
274
+ inheritViewBox: s.bool,
249
275
  /**
250
276
  * The shape-rendering attribute. The behavior of the different options is described on the
251
277
  * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
252
278
  * If you are having issues with blurry icons you should investigate this prop.
253
279
  */
254
- shapeRendering: n.string,
280
+ shapeRendering: s.string,
255
281
  /**
256
282
  * The system prop that allows defining system overrides as well as additional CSS styles.
257
283
  */
258
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
284
+ sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]),
259
285
  /**
260
286
  * Provides a human-readable title for the element that contains it.
261
287
  * https://www.w3.org/TR/SVG-access/#Equivalent
262
288
  */
263
- titleAccess: n.string,
289
+ titleAccess: s.string,
264
290
  /**
265
291
  * Allows you to redefine what the coordinates without units mean inside an SVG element.
266
292
  * For example, if the SVG element is 500 (width) by 200 (height),
@@ -269,24 +295,24 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
269
295
  * to bottom right (50,20) and each unit will be worth 10px.
270
296
  * @default '0 0 24 24'
271
297
  */
272
- viewBox: n.string
298
+ viewBox: s.string
273
299
  });
274
- b.muiName = "SvgIcon";
275
- function U(e, o) {
276
- function t(r, s) {
277
- return /* @__PURE__ */ x.jsx(b, {
300
+ N.muiName = "SvgIcon";
301
+ function G(e, o) {
302
+ function t(n, r) {
303
+ return /* @__PURE__ */ b.jsx(N, {
278
304
  "data-testid": process.env.NODE_ENV !== "production" ? `${o}Icon` : void 0,
279
- ref: s,
280
- ...r,
305
+ ref: r,
306
+ ...n,
281
307
  children: e
282
308
  });
283
309
  }
284
- return process.env.NODE_ENV !== "production" && (t.displayName = `${o}Icon`), t.muiName = b.muiName, /* @__PURE__ */ S.memo(/* @__PURE__ */ S.forwardRef(t));
310
+ return process.env.NODE_ENV !== "production" && (t.displayName = `${o}Icon`), t.muiName = N.muiName, /* @__PURE__ */ d.memo(/* @__PURE__ */ d.forwardRef(t));
285
311
  }
286
312
  export {
287
313
  E as a,
288
- I as b,
289
- U as c,
290
- V as m,
314
+ R as b,
315
+ G as c,
316
+ D as m,
291
317
  $ as u
292
318
  };
@@ -2834,7 +2834,6 @@ export {
2834
2834
  Fn as k,
2835
2835
  In as l,
2836
2836
  Jn as m,
2837
- wn as n,
2838
2837
  Zn as r,
2839
2838
  Ge as s
2840
2839
  };
@@ -0,0 +1,5 @@
1
+ import { a as e } from "./createTheme-3Wd3hHrj.js";
2
+ const t = e();
3
+ export {
4
+ t as d
5
+ };
@@ -1,4 +1,4 @@
1
- import { i as c, d as l } from "./createTheme-CSzTQZIR.js";
1
+ import { i as c, d as l } from "./createTheme-3Wd3hHrj.js";
2
2
  const a = (t) => {
3
3
  var s;
4
4
  const e = {
@@ -0,0 +1,95 @@
1
+ import "react";
2
+ import { j as i } from "./jsx-runtime-OVHDjVDe.js";
3
+ import { e as m } from "./extendSxProp-BKWjdW12.js";
4
+ import { P as e } from "./createTheme-3Wd3hHrj.js";
5
+ import { d as y } from "./defaultTheme-fEi1x1Gb.js";
6
+ import { T as d } from "./identifier-BKLqN993.js";
7
+ import { i as b } from "./index--x2dvtup.js";
8
+ import { u as T } from "./useTheme-B5czKfC4.js";
9
+ import { Global as x } from "@emotion/react";
10
+ function E(r) {
11
+ return r == null || Object.keys(r).length === 0;
12
+ }
13
+ function u(r) {
14
+ const {
15
+ styles: o,
16
+ defaultTheme: l = {}
17
+ } = r, t = typeof o == "function" ? (n) => o(E(n) ? l : n) : o;
18
+ return /* @__PURE__ */ i.jsx(x, {
19
+ styles: t
20
+ });
21
+ }
22
+ process.env.NODE_ENV !== "production" && (u.propTypes = {
23
+ defaultTheme: e.object,
24
+ styles: e.oneOfType([e.array, e.string, e.object, e.func])
25
+ });
26
+ function p(r) {
27
+ const o = b(r);
28
+ return r !== o && o.styles ? (o.styles.match(/^@layer\s+[^{]*$/) || (o.styles = `@layer global{${o.styles}}`), o) : r;
29
+ }
30
+ function f({
31
+ styles: r,
32
+ themeId: o,
33
+ defaultTheme: l = {}
34
+ }) {
35
+ const t = T(l), n = o && t[o] || t;
36
+ let s = typeof r == "function" ? r(n) : r;
37
+ return n.modularCssLayers && (Array.isArray(s) ? s = s.map((a) => p(typeof a == "function" ? a(n) : a)) : s = p(s)), /* @__PURE__ */ i.jsx(u, {
38
+ styles: s
39
+ });
40
+ }
41
+ process.env.NODE_ENV !== "production" && (f.propTypes = {
42
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
43
+ // │ These PropTypes are generated from the TypeScript type definitions. │
44
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
45
+ // └─────────────────────────────────────────────────────────────────────┘
46
+ /**
47
+ * @ignore
48
+ */
49
+ defaultTheme: e.object,
50
+ /**
51
+ * @ignore
52
+ */
53
+ styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
54
+ /**
55
+ * @ignore
56
+ */
57
+ themeId: e.string
58
+ });
59
+ function c(r) {
60
+ return /* @__PURE__ */ i.jsx(f, {
61
+ ...r,
62
+ defaultTheme: y,
63
+ themeId: d
64
+ });
65
+ }
66
+ process.env.NODE_ENV !== "production" && (c.propTypes = {
67
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
68
+ // │ These PropTypes are generated from the TypeScript type definitions. │
69
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
70
+ // └─────────────────────────────────────────────────────────────────────┘
71
+ /**
72
+ * The styles you want to apply globally.
73
+ */
74
+ styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
75
+ });
76
+ function D(r) {
77
+ return function(l) {
78
+ return (
79
+ // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
80
+ /* @__PURE__ */ i.jsx(c, {
81
+ styles: typeof r == "function" ? (t) => r({
82
+ theme: t,
83
+ ...l
84
+ }) : r
85
+ })
86
+ );
87
+ };
88
+ }
89
+ function P() {
90
+ return m;
91
+ }
92
+ export {
93
+ D as g,
94
+ P as i
95
+ };
package/dist/main.d.ts CHANGED
@@ -74,10 +74,10 @@ export { default as SCopilotKitProvider } from './s-copilot-kit-provider/index';
74
74
  export type { SCopilotKitProviderProps } from './s-copilot-kit-provider/index';
75
75
  export { SStripeNumber, SStripeExpiry, SStripeCVC, StripeTextField } from './s-stripe/index';
76
76
  export type { StripeTextFieldProps, StripeElement } from './s-stripe/index';
77
- export { default as SThemeProvider, useSTheme } from './s-theme-provider/index';
78
- export type { SThemeProviderProps, SThemeMode } from './s-theme-provider/index';
77
+ export { default as SThemeProvider } from './s-theme-provider/index';
78
+ export type { SThemeProviderProps } from './s-theme-provider/index';
79
79
  export { default as SThemeSwitch } from './s-theme-switch/index';
80
- export type { SThemeSwitchProps } from './s-theme-switch/index';
80
+ export type { SThemeSwitchProps, SThemeMode } from './s-theme-switch/index';
81
81
  export { default as SDateTimePicker } from './s-datetime-picker/index';
82
82
  export type { SDateTimePickerProps } from './s-datetime-picker/index';
83
83
  export { default as SDatePicker } from './s-date-picker/index';