@solostylist/ui-kit 1.0.54 → 1.0.55

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 (46) hide show
  1. package/dist/{Box-BOnkyXg-.js → Box-MoP3r0T2.js} +13 -14
  2. package/dist/Close-DLG48sGB.js +8 -0
  3. package/dist/HelpOutlineOutlined-CBZQGWGK.js +8 -0
  4. package/dist/{Menu-BTGaz6HX.js → Menu-Y8dE9GrA.js} +30 -31
  5. package/dist/{Stack-CHCAZYKm.js → Stack-DT2aopM5.js} +5 -5
  6. package/dist/{TransitionGroup-CuA3gNyE.js → TransitionGroup-BCkqyHLn.js} +1 -1
  7. package/dist/{Typography-8CUP66S2.js → Typography-BXwj4yQZ.js} +5 -5
  8. package/dist/{buttonBaseClasses-CTVeu_V8.js → buttonBaseClasses-2-g8E4KG.js} +2 -2
  9. package/dist/createSvgIcon-YtxTUNwI.js +535 -0
  10. package/dist/{createTheme-CyFSna1a.js → createTheme-CozHbEju.js} +227 -225
  11. package/dist/{extendSxProp-C6KgcV1-.js → extendSxProp-BuqOAkIB.js} +1 -1
  12. package/dist/{iconButtonClasses-CpCspPuI.js → iconButtonClasses-Ba5VdL62.js} +2 -2
  13. package/dist/identifier-9JFYVRsR.js +246 -0
  14. package/dist/{index-BKXuuq9K.js → index-GaV7LHxy.js} +5 -5
  15. package/dist/{outlinedInputClasses-Y-zQ9ZHZ.js → outlinedInputClasses-MXXlnR_X.js} +2 -2
  16. package/dist/s-data-table/s-data-table.js +46 -48
  17. package/dist/s-dialog/s-dialog.js +13 -13
  18. package/dist/s-dialog-confirm/s-dialog-confirm.js +10 -10
  19. package/dist/s-dialog-message/s-dialog-message.js +8 -8
  20. package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
  21. package/dist/s-file-icon/s-file-icon.js +1 -1
  22. package/dist/s-form/s-form.js +7 -7
  23. package/dist/s-label/s-label.js +7 -7
  24. package/dist/s-multi-select/s-multi-select.js +47 -49
  25. package/dist/s-smart-text-field/s-smart-text-field.js +3 -3
  26. package/dist/s-text-editor/s-text-editor-toolbar.js +614 -602
  27. package/dist/s-text-editor/s-text-editor.js +1 -1
  28. package/dist/s-tip/s-tip.js +12 -10
  29. package/dist/theme/components/avatar.js +7 -5
  30. package/dist/theme/customizations/data-display.js +7 -7
  31. package/dist/theme/customizations/feedback.js +1 -1
  32. package/dist/theme/customizations/inputs.js +13 -14
  33. package/dist/theme/customizations/navigation.js +3 -3
  34. package/dist/theme/customizations/surfaces.js +1 -1
  35. package/dist/theme/theme-primitives.js +1 -1
  36. package/dist/{typographyClasses-DVLfmcGt.js → typographyClasses-D511Gj84.js} +2 -2
  37. package/dist/{useControlled-DnifWmuD.js → useFormControl-B3RPiDsz.js} +8 -8
  38. package/dist/{useSlot-DFX3jR9F.js → useSlot-GW4ou7g5.js} +18 -19
  39. package/dist/{useTheme-TEQWKSsD.js → useTheme-vk3BYrgD.js} +1 -1
  40. package/package.json +1 -2
  41. package/dist/createSvgIcon-FIMSBrG5.js +0 -247
  42. package/dist/emotion-serialize.esm-lgBmL_7o.js +0 -195
  43. package/dist/generateUtilityClasses-CvAVhM6T.js +0 -10
  44. package/dist/identifier-BA7fwE7E.js +0 -46
  45. package/dist/memoTheme-Bz_6CvJG.js +0 -293
  46. package/dist/svgIconClasses-SRBiyaM8.js +0 -10
@@ -0,0 +1,535 @@
1
+ import * as P from "react";
2
+ import { j as D } from "./jsx-runtime-C5mzlN2N.js";
3
+ import { l as B, e as Y, s as L, i as Z, c as E, P as c, b as ee, g as te } from "./createTheme-CozHbEju.js";
4
+ import { i as U, a as oe, s as ne, T as re, g as se, c as ie } from "./identifier-9JFYVRsR.js";
5
+ function ce(e, o, t = void 0) {
6
+ const r = {};
7
+ for (const n in e) {
8
+ const s = e[n];
9
+ let a = "", i = !0;
10
+ for (let f = 0; f < s.length; f += 1) {
11
+ const l = s[f];
12
+ l && (a += (i === !0 ? "" : " ") + o(l), i = !1, t && t[l] && (a += " " + t[l]));
13
+ }
14
+ r[n] = a;
15
+ }
16
+ return r;
17
+ }
18
+ function q(e, o = "") {
19
+ return e.displayName || e.name || o;
20
+ }
21
+ function H(e, o, t) {
22
+ const r = q(o);
23
+ return e.displayName || (r !== "" ? `${t}(${r})` : t);
24
+ }
25
+ function ae(e) {
26
+ if (e != null) {
27
+ if (typeof e == "string")
28
+ return e;
29
+ if (typeof e == "function")
30
+ return q(e, "Component");
31
+ if (typeof e == "object")
32
+ switch (e.$$typeof) {
33
+ case B.ForwardRef:
34
+ return H(e, e.render, "ForwardRef");
35
+ case B.Memo:
36
+ return H(e, e.type, "memo");
37
+ default:
38
+ return;
39
+ }
40
+ }
41
+ }
42
+ function W(e) {
43
+ const {
44
+ variants: o,
45
+ ...t
46
+ } = e, r = {
47
+ variants: o,
48
+ style: U(t),
49
+ isProcessed: !0
50
+ };
51
+ return r.style === t || o && o.forEach((n) => {
52
+ typeof n.style != "function" && (n.style = U(n.style));
53
+ }), r;
54
+ }
55
+ const le = Y();
56
+ function _(e) {
57
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
58
+ }
59
+ function ue(e) {
60
+ return e ? (o, t) => t[e] : null;
61
+ }
62
+ function fe(e, o, t) {
63
+ e.theme = ye(e.theme) ? t : e.theme[o] || e.theme;
64
+ }
65
+ function $(e, o) {
66
+ const t = typeof o == "function" ? o(e) : o;
67
+ if (Array.isArray(t))
68
+ return t.flatMap((r) => $(e, r));
69
+ if (Array.isArray(t == null ? void 0 : t.variants)) {
70
+ let r;
71
+ if (t.isProcessed)
72
+ r = t.style;
73
+ else {
74
+ const {
75
+ variants: n,
76
+ ...s
77
+ } = t;
78
+ r = s;
79
+ }
80
+ return G(e, t.variants, [r]);
81
+ }
82
+ return t != null && t.isProcessed ? t.style : t;
83
+ }
84
+ function G(e, o, t = []) {
85
+ var n;
86
+ let r;
87
+ e: for (let s = 0; s < o.length; s += 1) {
88
+ const a = o[s];
89
+ if (typeof a.props == "function") {
90
+ if (r ?? (r = {
91
+ ...e,
92
+ ...e.ownerState,
93
+ ownerState: e.ownerState
94
+ }), !a.props(r))
95
+ continue;
96
+ } else
97
+ for (const i in a.props)
98
+ if (e[i] !== a.props[i] && ((n = e.ownerState) == null ? void 0 : n[i]) !== a.props[i])
99
+ continue e;
100
+ typeof a.style == "function" ? (r ?? (r = {
101
+ ...e,
102
+ ...e.ownerState,
103
+ ownerState: e.ownerState
104
+ }), t.push(a.style(r))) : t.push(a.style);
105
+ }
106
+ return t;
107
+ }
108
+ function de(e = {}) {
109
+ const {
110
+ themeId: o,
111
+ defaultTheme: t = le,
112
+ rootShouldForwardProp: r = _,
113
+ slotShouldForwardProp: n = _
114
+ } = e;
115
+ function s(i) {
116
+ fe(i, o, t);
117
+ }
118
+ return (i, f = {}) => {
119
+ oe(i, (p) => p.filter((m) => m !== L));
120
+ const {
121
+ name: l,
122
+ slot: u,
123
+ skipVariantsResolver: y,
124
+ skipSx: w,
125
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
126
+ // For more details: https://github.com/mui/material-ui/pull/37908
127
+ overridesResolver: x = ue(J(u)),
128
+ ...g
129
+ } = f, d = y !== void 0 ? y : (
130
+ // TODO v6: remove `Root` in the next major release
131
+ // For more details: https://github.com/mui/material-ui/pull/37908
132
+ u && u !== "Root" && u !== "root" || !1
133
+ ), N = w || !1;
134
+ let S = _;
135
+ u === "Root" || u === "root" ? S = r : u ? S = n : he(i) && (S = void 0);
136
+ const V = ne(i, {
137
+ shouldForwardProp: S,
138
+ label: me(l, u),
139
+ ...g
140
+ }), Q = (p) => {
141
+ if (p.__emotion_real === p)
142
+ return p;
143
+ if (typeof p == "function")
144
+ return function(b) {
145
+ return $(b, p);
146
+ };
147
+ if (Z(p)) {
148
+ const m = W(p);
149
+ return m.variants ? function(O) {
150
+ return $(O, m);
151
+ } : m.style;
152
+ }
153
+ return p;
154
+ }, C = (...p) => {
155
+ const m = [], b = p.map(Q), O = [];
156
+ if (m.push(s), l && x && O.push(function(v) {
157
+ var R, k;
158
+ const h = (k = (R = v.theme.components) == null ? void 0 : R[l]) == null ? void 0 : k.styleOverrides;
159
+ if (!h)
160
+ return null;
161
+ const z = {};
162
+ for (const M in h)
163
+ z[M] = $(v, h[M]);
164
+ return x(v, z);
165
+ }), l && !d && O.push(function(v) {
166
+ var z, R;
167
+ const T = v.theme, h = (R = (z = T == null ? void 0 : T.components) == null ? void 0 : z[l]) == null ? void 0 : R.variants;
168
+ return h ? G(v, h) : null;
169
+ }), N || O.push(L), Array.isArray(b[0])) {
170
+ const I = b.shift(), v = new Array(m.length).fill(""), T = new Array(O.length).fill("");
171
+ let h;
172
+ h = [...v, ...I, ...T], h.raw = [...v, ...I.raw, ...T], m.unshift(h);
173
+ }
174
+ const X = [...m, ...b, ...O], A = V(...X);
175
+ return i.muiName && (A.muiName = i.muiName), process.env.NODE_ENV !== "production" && (A.displayName = pe(l, u, i)), A;
176
+ };
177
+ return V.withConfig && (C.withConfig = V.withConfig), C;
178
+ };
179
+ }
180
+ function pe(e, o, t) {
181
+ return e ? `${e}${E(o || "")}` : `Styled(${ae(t)})`;
182
+ }
183
+ function me(e, o) {
184
+ let t;
185
+ return process.env.NODE_ENV !== "production" && e && (t = `${e}-${J(o || "Root")}`), t;
186
+ }
187
+ function ye(e) {
188
+ for (const o in e)
189
+ return !1;
190
+ return !0;
191
+ }
192
+ function he(e) {
193
+ return typeof e == "string" && // 96 is one less than the char code
194
+ // for "a" so this is checking that
195
+ // it's a lowercase character
196
+ e.charCodeAt(0) > 96;
197
+ }
198
+ function J(e) {
199
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
200
+ }
201
+ function F(e, o) {
202
+ const t = {
203
+ ...o
204
+ };
205
+ for (const r in e)
206
+ if (Object.prototype.hasOwnProperty.call(e, r)) {
207
+ const n = r;
208
+ if (n === "components" || n === "slots")
209
+ t[n] = {
210
+ ...e[n],
211
+ ...t[n]
212
+ };
213
+ else if (n === "componentsProps" || n === "slotProps") {
214
+ const s = e[n], a = o[n];
215
+ if (!a)
216
+ t[n] = s || {};
217
+ else if (!s)
218
+ t[n] = a;
219
+ else {
220
+ t[n] = {
221
+ ...a
222
+ };
223
+ for (const i in s)
224
+ if (Object.prototype.hasOwnProperty.call(s, i)) {
225
+ const f = i;
226
+ t[n][f] = F(s[f], a[f]);
227
+ }
228
+ }
229
+ } else t[n] === void 0 && (t[n] = e[n]);
230
+ }
231
+ return t;
232
+ }
233
+ const Se = /* @__PURE__ */ P.createContext(void 0);
234
+ process.env.NODE_ENV !== "production" && (c.node, c.object);
235
+ function ve(e) {
236
+ const {
237
+ theme: o,
238
+ name: t,
239
+ props: r
240
+ } = e;
241
+ if (!o || !o.components || !o.components[t])
242
+ return r;
243
+ const n = o.components[t];
244
+ return n.defaultProps ? F(n.defaultProps, r) : !n.styleOverrides && !n.variants ? F(n, r) : r;
245
+ }
246
+ function ge({
247
+ props: e,
248
+ name: o
249
+ }) {
250
+ const t = P.useContext(Se);
251
+ return ve({
252
+ props: e,
253
+ name: o,
254
+ theme: {
255
+ components: t
256
+ }
257
+ });
258
+ }
259
+ const K = {
260
+ theme: void 0
261
+ };
262
+ function we(e) {
263
+ let o, t;
264
+ return function(n) {
265
+ let s = o;
266
+ return (s === void 0 || n.theme !== t) && (K.theme = n.theme, s = W(e(K)), o = s, t = n.theme), s;
267
+ };
268
+ }
269
+ const xe = ee();
270
+ function Ne(e) {
271
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
272
+ }
273
+ const Oe = (e) => Ne(e) && e !== "classes", Te = de({
274
+ themeId: re,
275
+ defaultTheme: xe,
276
+ rootShouldForwardProp: Oe
277
+ }), be = we;
278
+ process.env.NODE_ENV !== "production" && (c.node, c.object.isRequired);
279
+ function Pe(e) {
280
+ return ge(e);
281
+ }
282
+ function ze(e) {
283
+ return te("MuiSvgIcon", e);
284
+ }
285
+ const Ve = se("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]), Re = (e) => {
286
+ const {
287
+ color: o,
288
+ fontSize: t,
289
+ classes: r
290
+ } = e, n = {
291
+ root: ["root", o !== "inherit" && `color${E(o)}`, `fontSize${E(t)}`]
292
+ };
293
+ return ce(n, ze, r);
294
+ }, Ee = Te("svg", {
295
+ name: "MuiSvgIcon",
296
+ slot: "Root",
297
+ overridesResolver: (e, o) => {
298
+ const {
299
+ ownerState: t
300
+ } = e;
301
+ return [o.root, t.color !== "inherit" && o[`color${E(t.color)}`], o[`fontSize${E(t.fontSize)}`]];
302
+ }
303
+ })(be(({
304
+ theme: e
305
+ }) => {
306
+ var o, t, r, n, s, a, i, f, l, u, y, w, x, g;
307
+ return {
308
+ userSelect: "none",
309
+ width: "1em",
310
+ height: "1em",
311
+ display: "inline-block",
312
+ flexShrink: 0,
313
+ transition: (n = (o = e.transitions) == null ? void 0 : o.create) == null ? void 0 : n.call(o, "fill", {
314
+ duration: (r = (t = (e.vars ?? e).transitions) == null ? void 0 : t.duration) == null ? void 0 : r.shorter
315
+ }),
316
+ variants: [
317
+ {
318
+ props: (d) => !d.hasSvgAsChild,
319
+ style: {
320
+ // the <svg> will define the property that has `currentColor`
321
+ // for example heroicons uses fill="none" and stroke="currentColor"
322
+ fill: "currentColor"
323
+ }
324
+ },
325
+ {
326
+ props: {
327
+ fontSize: "inherit"
328
+ },
329
+ style: {
330
+ fontSize: "inherit"
331
+ }
332
+ },
333
+ {
334
+ props: {
335
+ fontSize: "small"
336
+ },
337
+ style: {
338
+ fontSize: ((a = (s = e.typography) == null ? void 0 : s.pxToRem) == null ? void 0 : a.call(s, 20)) || "1.25rem"
339
+ }
340
+ },
341
+ {
342
+ props: {
343
+ fontSize: "medium"
344
+ },
345
+ style: {
346
+ fontSize: ((f = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : f.call(i, 24)) || "1.5rem"
347
+ }
348
+ },
349
+ {
350
+ props: {
351
+ fontSize: "large"
352
+ },
353
+ style: {
354
+ fontSize: ((u = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : u.call(l, 35)) || "2.1875rem"
355
+ }
356
+ },
357
+ // TODO v5 deprecate color prop, v6 remove for sx
358
+ ...Object.entries((e.vars ?? e).palette).filter(([, d]) => d && d.main).map(([d]) => {
359
+ var N, S;
360
+ return {
361
+ props: {
362
+ color: d
363
+ },
364
+ style: {
365
+ color: (S = (N = (e.vars ?? e).palette) == null ? void 0 : N[d]) == null ? void 0 : S.main
366
+ }
367
+ };
368
+ }),
369
+ {
370
+ props: {
371
+ color: "action"
372
+ },
373
+ style: {
374
+ color: (w = (y = (e.vars ?? e).palette) == null ? void 0 : y.action) == null ? void 0 : w.active
375
+ }
376
+ },
377
+ {
378
+ props: {
379
+ color: "disabled"
380
+ },
381
+ style: {
382
+ color: (g = (x = (e.vars ?? e).palette) == null ? void 0 : x.action) == null ? void 0 : g.disabled
383
+ }
384
+ },
385
+ {
386
+ props: {
387
+ color: "inherit"
388
+ },
389
+ style: {
390
+ color: void 0
391
+ }
392
+ }
393
+ ]
394
+ };
395
+ })), j = /* @__PURE__ */ P.forwardRef(function(o, t) {
396
+ const r = Pe({
397
+ props: o,
398
+ name: "MuiSvgIcon"
399
+ }), {
400
+ children: n,
401
+ className: s,
402
+ color: a = "inherit",
403
+ component: i = "svg",
404
+ fontSize: f = "medium",
405
+ htmlColor: l,
406
+ inheritViewBox: u = !1,
407
+ titleAccess: y,
408
+ viewBox: w = "0 0 24 24",
409
+ ...x
410
+ } = r, g = /* @__PURE__ */ P.isValidElement(n) && n.type === "svg", d = {
411
+ ...r,
412
+ color: a,
413
+ component: i,
414
+ fontSize: f,
415
+ instanceFontSize: o.fontSize,
416
+ inheritViewBox: u,
417
+ viewBox: w,
418
+ hasSvgAsChild: g
419
+ }, N = {};
420
+ u || (N.viewBox = w);
421
+ const S = Re(d);
422
+ return /* @__PURE__ */ D.jsxs(Ee, {
423
+ as: i,
424
+ className: ie(S.root, s),
425
+ focusable: "false",
426
+ color: l,
427
+ "aria-hidden": y ? void 0 : !0,
428
+ role: y ? "img" : void 0,
429
+ ref: t,
430
+ ...N,
431
+ ...x,
432
+ ...g && n.props,
433
+ ownerState: d,
434
+ children: [g ? n.props.children : n, y ? /* @__PURE__ */ D.jsx("title", {
435
+ children: y
436
+ }) : null]
437
+ });
438
+ });
439
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
440
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
441
+ // │ These PropTypes are generated from the TypeScript type definitions. │
442
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
443
+ // └─────────────────────────────────────────────────────────────────────┘
444
+ /**
445
+ * Node passed into the SVG element.
446
+ */
447
+ children: c.node,
448
+ /**
449
+ * Override or extend the styles applied to the component.
450
+ */
451
+ classes: c.object,
452
+ /**
453
+ * @ignore
454
+ */
455
+ className: c.string,
456
+ /**
457
+ * The color of the component.
458
+ * It supports both default and custom theme colors, which can be added as shown in the
459
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
460
+ * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
461
+ * @default 'inherit'
462
+ */
463
+ color: c.oneOfType([c.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), c.string]),
464
+ /**
465
+ * The component used for the root node.
466
+ * Either a string to use a HTML element or a component.
467
+ */
468
+ component: c.elementType,
469
+ /**
470
+ * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
471
+ * @default 'medium'
472
+ */
473
+ fontSize: c.oneOfType([c.oneOf(["inherit", "large", "medium", "small"]), c.string]),
474
+ /**
475
+ * Applies a color attribute to the SVG element.
476
+ */
477
+ htmlColor: c.string,
478
+ /**
479
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
480
+ * prop will be ignored.
481
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
482
+ * `component`'s viewBox to the root node.
483
+ * @default false
484
+ */
485
+ inheritViewBox: c.bool,
486
+ /**
487
+ * The shape-rendering attribute. The behavior of the different options is described on the
488
+ * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
489
+ * If you are having issues with blurry icons you should investigate this prop.
490
+ */
491
+ shapeRendering: c.string,
492
+ /**
493
+ * The system prop that allows defining system overrides as well as additional CSS styles.
494
+ */
495
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object]),
496
+ /**
497
+ * Provides a human-readable title for the element that contains it.
498
+ * https://www.w3.org/TR/SVG-access/#Equivalent
499
+ */
500
+ titleAccess: c.string,
501
+ /**
502
+ * Allows you to redefine what the coordinates without units mean inside an SVG element.
503
+ * For example, if the SVG element is 500 (width) by 200 (height),
504
+ * and you pass viewBox="0 0 50 20",
505
+ * this means that the coordinates inside the SVG will go from the top left corner (0,0)
506
+ * to bottom right (50,20) and each unit will be worth 10px.
507
+ * @default '0 0 24 24'
508
+ */
509
+ viewBox: c.string
510
+ });
511
+ j.muiName = "SvgIcon";
512
+ function Ae(e, o) {
513
+ function t(r, n) {
514
+ return /* @__PURE__ */ D.jsx(j, {
515
+ "data-testid": process.env.NODE_ENV !== "production" ? `${o}Icon` : void 0,
516
+ ref: n,
517
+ ...r,
518
+ children: e
519
+ });
520
+ }
521
+ return process.env.NODE_ENV !== "production" && (t.displayName = `${o}Icon`), t.muiName = j.muiName, /* @__PURE__ */ P.memo(/* @__PURE__ */ P.forwardRef(t));
522
+ }
523
+ export {
524
+ ce as a,
525
+ Ve as b,
526
+ Ae as c,
527
+ xe as d,
528
+ de as e,
529
+ Oe as f,
530
+ Ne as g,
531
+ be as m,
532
+ F as r,
533
+ Te as s,
534
+ Pe as u
535
+ };