@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.
- package/dist/{Box-D0kAx4PT.js → Box-DqmXop3Z.js} +3 -3
- package/dist/{ButtonBase-QnP537_L.js → ButtonBase-DVlCHVDw.js} +4 -4
- package/dist/{ChevronRight-SimL9kDt.js → ChevronRight-DQD188LX.js} +1 -1
- package/dist/{Close-BmQG3xZp.js → Close-DlTC3goO.js} +1 -1
- package/dist/{ExpandMore-CM0JYSoz.js → ExpandMore-D5dA_4ky.js} +1 -1
- package/dist/{Favorite-BEKdrIQq.js → Favorite-DkdOa-QT.js} +1 -1
- package/dist/{Menu-ClZKHyC1.js → Menu-CgxtGUFu.js} +322 -309
- package/dist/{MenuItem-DxJh8UvK.js → MenuItem-FlDSyi1I.js} +5 -5
- package/dist/{Paper-CpSojup3.js → Paper-DTI6p5rh.js} +7 -7
- package/dist/{Select-CmJydrV_.js → Select-awnAAkKz.js} +387 -370
- package/dist/{Stack-DKN2SxRo.js → Stack-CO3ed3qL.js} +5 -5
- package/dist/{TransitionGroup-iVQWCEuB.js → TransitionGroup-BK0MDPKM.js} +1 -1
- package/dist/{Typography-N0Mzi70r.js → Typography-y4bVBfDI.js} +4 -4
- package/dist/{createSvgIcon-L9c3q_HV.js → createSvgIcon-By5UWB4_.js} +130 -104
- package/dist/{createTheme-CSzTQZIR.js → createTheme-3Wd3hHrj.js} +0 -1
- package/dist/defaultTheme-fEi1x1Gb.js +5 -0
- package/dist/{extendSxProp-BDhPgeA-.js → extendSxProp-BKWjdW12.js} +1 -1
- package/dist/index-VB-2NIdQ.js +95 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.js +72 -74
- package/dist/{mergeSlotProps-BqZn7QoU.js → mergeSlotProps-C7ui6BxO.js} +1 -1
- package/dist/s-accordion/s-accordion.js +8 -8
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +2 -2
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +3 -3
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +5 -5
- package/dist/s-date-picker/s-date-picker.js +7 -7
- package/dist/s-datetime-picker/s-datetime-picker.js +14 -15
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +53 -51
- package/dist/s-image-modal/s-image-modal.js +2 -2
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/index.d.ts +0 -2
- package/dist/s-theme-provider/index.js +2 -5
- package/dist/s-theme-switch/index.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.d.ts +4 -1
- package/dist/s-theme-switch/s-theme-switch.js +21 -23
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-B6SqfqyN.js → styled-BD_erj7E.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-BKb9wDk9.js → useMobilePicker-BV-ABj4C.js} +75 -77
- package/dist/{useTheme-DQFlX-BU.js → useTheme-B5czKfC4.js} +1 -1
- package/dist/{useThemeProps-DI2LSvKR.js → useThemeProps-DqA5BinV.js} +1 -1
- package/dist/{warning-DRu3W3_g.js → warning-BCwEnWrE.js} +3 -3
- package/package.json +1 -1
- package/dist/DefaultPropsProvider-CoEfFcSh.js +0 -56
- package/dist/GlobalStyles-CpyAg53D.js +0 -59
- package/dist/defaultTheme-QdH8_nrP.js +0 -5
- package/dist/index-C8hHiHry.js +0 -33
- package/dist/index-bBtpkEYO.js +0 -44
- package/dist/s-theme-provider/use-theme.d.ts +0 -51
- package/dist/s-theme-provider/use-theme.js +0 -670
- 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-
|
|
2
|
-
import { c as N, s as R } from "./styled-
|
|
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-
|
|
7
|
-
import { u as w } from "./useThemeProps-
|
|
8
|
-
import { b as G, u as U } from "./createSvgIcon-
|
|
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-
|
|
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-
|
|
3
|
-
import { u as O, a as S, b as w, m as B } from "./createSvgIcon-
|
|
4
|
-
import { i as P } from "./index-
|
|
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-
|
|
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
|
|
2
|
-
import { j as
|
|
3
|
-
import { P as
|
|
4
|
-
import { p as
|
|
5
|
-
import { g as
|
|
6
|
-
import {
|
|
7
|
-
function
|
|
8
|
-
var o, t,
|
|
9
|
-
if (typeof e == "string" || typeof e == "number")
|
|
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
|
|
12
|
-
for (o = 0; o <
|
|
13
|
-
} else for (t in e) e[t] && (
|
|
14
|
-
return
|
|
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,
|
|
18
|
-
return
|
|
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
|
|
21
|
-
const
|
|
22
|
-
for (const
|
|
23
|
-
const i = e[
|
|
24
|
-
let
|
|
25
|
-
for (let
|
|
26
|
-
const
|
|
27
|
-
|
|
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
|
|
29
|
+
n[r] = p;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return n;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
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
|
|
62
|
+
function P(e) {
|
|
37
63
|
let o, t;
|
|
38
|
-
return function(
|
|
64
|
+
return function(r) {
|
|
39
65
|
let i = o;
|
|
40
|
-
return (i === void 0 ||
|
|
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
|
|
44
|
-
process.env.NODE_ENV !== "production" && (
|
|
69
|
+
const D = P;
|
|
70
|
+
process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
|
|
45
71
|
function $(e) {
|
|
46
|
-
return
|
|
72
|
+
return A(e);
|
|
47
73
|
}
|
|
48
|
-
const
|
|
74
|
+
const _ = (e) => {
|
|
49
75
|
const {
|
|
50
76
|
color: o,
|
|
51
77
|
fontSize: t,
|
|
52
|
-
classes:
|
|
53
|
-
} = e,
|
|
54
|
-
root: ["root", o !== "inherit" && `color${
|
|
78
|
+
classes: n
|
|
79
|
+
} = e, r = {
|
|
80
|
+
root: ["root", o !== "inherit" && `color${x(o)}`, `fontSize${x(t)}`]
|
|
55
81
|
};
|
|
56
|
-
return
|
|
57
|
-
},
|
|
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${
|
|
90
|
+
return [o.root, t.color !== "inherit" && o[`color${x(t.color)}`], o[`fontSize${x(t.fontSize)}`]];
|
|
65
91
|
}
|
|
66
|
-
})(
|
|
92
|
+
})(D(({
|
|
67
93
|
theme: e
|
|
68
94
|
}) => {
|
|
69
|
-
var o, t,
|
|
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: (
|
|
77
|
-
duration: (
|
|
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: (
|
|
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: ((
|
|
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: ((
|
|
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: ((
|
|
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(([,
|
|
122
|
-
var
|
|
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:
|
|
151
|
+
color: l
|
|
126
152
|
},
|
|
127
153
|
style: {
|
|
128
|
-
color: (
|
|
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: (
|
|
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 = (
|
|
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
|
-
})),
|
|
159
|
-
const
|
|
184
|
+
})), N = /* @__PURE__ */ d.forwardRef(function(o, t) {
|
|
185
|
+
const n = $({
|
|
160
186
|
props: o,
|
|
161
187
|
name: "MuiSvgIcon"
|
|
162
188
|
}), {
|
|
163
|
-
children:
|
|
189
|
+
children: r,
|
|
164
190
|
className: i,
|
|
165
|
-
color:
|
|
166
|
-
component:
|
|
167
|
-
fontSize:
|
|
168
|
-
htmlColor:
|
|
169
|
-
inheritViewBox:
|
|
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:
|
|
172
|
-
...
|
|
173
|
-
} =
|
|
174
|
-
...
|
|
175
|
-
color:
|
|
176
|
-
component:
|
|
177
|
-
fontSize:
|
|
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:
|
|
180
|
-
viewBox:
|
|
205
|
+
inheritViewBox: g,
|
|
206
|
+
viewBox: v,
|
|
181
207
|
hasSvgAsChild: m
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
return /* @__PURE__ */
|
|
186
|
-
as:
|
|
187
|
-
className: E(
|
|
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:
|
|
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
|
-
...
|
|
196
|
-
|
|
197
|
-
|
|
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" && (
|
|
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:
|
|
236
|
+
children: s.node,
|
|
211
237
|
/**
|
|
212
238
|
* Override or extend the styles applied to the component.
|
|
213
239
|
*/
|
|
214
|
-
classes:
|
|
240
|
+
classes: s.object,
|
|
215
241
|
/**
|
|
216
242
|
* @ignore
|
|
217
243
|
*/
|
|
218
|
-
className:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
298
|
+
viewBox: s.string
|
|
273
299
|
});
|
|
274
|
-
|
|
275
|
-
function
|
|
276
|
-
function t(
|
|
277
|
-
return /* @__PURE__ */
|
|
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:
|
|
280
|
-
...
|
|
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 =
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
314
|
+
R as b,
|
|
315
|
+
G as c,
|
|
316
|
+
D as m,
|
|
291
317
|
$ as u
|
|
292
318
|
};
|
|
@@ -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
|
|
78
|
-
export type { SThemeProviderProps
|
|
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';
|