@solostylist/ui-kit 1.0.35 → 1.0.37
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/{Menu-BDspvd-Q.js → Menu-BTGaz6HX.js} +11 -11
- package/dist/{Stack-hZ9m9_Gh.js → Stack-CHCAZYKm.js} +1 -1
- package/dist/{Typography-Cf3fyOHg.js → Typography-8CUP66S2.js} +2 -2
- package/dist/{createSvgIcon-GD-thYZm.js → createSvgIcon-FIMSBrG5.js} +1 -1
- package/dist/{index-CVr30Fc-.js → index-BKXuuq9K.js} +1 -1
- package/dist/{memoTheme-2xILj8Pd.js → memoTheme-Bz_6CvJG.js} +2 -2
- package/dist/s-data-table/s-data-table.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +2 -2
- package/dist/s-multi-select/s-multi-select.js +84 -81
- package/dist/s-smart-text-field/s-text-field.d.ts +6 -1
- package/dist/s-smart-text-field/s-text-field.js +1584 -1578
- package/dist/s-text-editor/s-text-editor-toolbar.js +1933 -2353
- package/dist/s-tip/s-tip.js +2 -2
- package/dist/theme/components/backdrop.d.ts +12 -0
- package/dist/theme/components/backdrop.js +12 -0
- package/dist/theme/components/components.d.ts +32 -0
- package/dist/theme/components/components.js +14 -8
- package/dist/theme/components/container.d.ts +5 -0
- package/dist/theme/components/container.js +6 -0
- package/dist/theme/components/popover.d.ts +16 -0
- package/dist/theme/components/popover.js +7 -0
- package/dist/theme/customizations/data-display.js +3 -1
- package/dist/theme/customizations/inputs.js +81 -81
- package/dist/theme/customizations/navigation.js +30 -48
- package/dist/{useSlot-Cwl3uYYg.js → useSlot-DFX3jR9F.js} +1 -1
- package/package.json +1 -1
- package/dist/menuItemClasses-BuN4fyVT.js +0 -12
|
@@ -3,9 +3,9 @@ import ve from "react";
|
|
|
3
3
|
import { P as e, g as le, a as He, q as ze, l as rt } from "./createTheme-CyFSna1a.js";
|
|
4
4
|
import { T as Rt, c as te } from "./identifier-BA7fwE7E.js";
|
|
5
5
|
import { j as L } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { d as Ot, u as ce, s as W, c as ue, m as it,
|
|
6
|
+
import { d as Ot, u as ce, s as W, c as ue, m as it, b as Nt } from "./memoTheme-Bz_6CvJG.js";
|
|
7
7
|
import { g as pe } from "./generateUtilityClasses-CvAVhM6T.js";
|
|
8
|
-
import { c as we, d as wt, u as oe, a as X, b as We, f as St, m as Ct, r as Mt, e as kt, g as Dt, h as It, i as jt } from "./useSlot-
|
|
8
|
+
import { c as we, d as wt, u as oe, a as X, b as We, f as St, m as Ct, r as Mt, e as kt, g as Dt, h as It, i as jt } from "./useSlot-DFX3jR9F.js";
|
|
9
9
|
import { u as Ft } from "./useTheme-TEQWKSsD.js";
|
|
10
10
|
import { _ as Lt, a as At, b as st } from "./TransitionGroup-CuA3gNyE.js";
|
|
11
11
|
import * as $t from "react-dom";
|
|
@@ -396,16 +396,13 @@ G.EXITED = Z;
|
|
|
396
396
|
G.ENTERING = ee;
|
|
397
397
|
G.ENTERED = ae;
|
|
398
398
|
G.EXITING = Ae;
|
|
399
|
-
function Ht(t) {
|
|
400
|
-
return typeof t == "string";
|
|
401
|
-
}
|
|
402
399
|
function Ee(t, n, o, i, s) {
|
|
403
400
|
if (process.env.NODE_ENV === "production")
|
|
404
401
|
return null;
|
|
405
402
|
const r = t[n], a = s || n;
|
|
406
403
|
return r == null ? null : r && r.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
407
404
|
}
|
|
408
|
-
function
|
|
405
|
+
function Ht(t) {
|
|
409
406
|
const n = typeof t;
|
|
410
407
|
switch (n) {
|
|
411
408
|
case "number":
|
|
@@ -419,7 +416,7 @@ function zt(t) {
|
|
|
419
416
|
function lt(t, n, o, i) {
|
|
420
417
|
const s = t[n];
|
|
421
418
|
if (s == null || !Number.isInteger(s)) {
|
|
422
|
-
const r =
|
|
419
|
+
const r = Ht(s);
|
|
423
420
|
return new RangeError(`Invalid ${i} \`${n}\` of type \`${r}\` supplied to \`${o}\`, expected \`integer\`.`);
|
|
424
421
|
}
|
|
425
422
|
return null;
|
|
@@ -433,6 +430,9 @@ function $e() {
|
|
|
433
430
|
ct.isRequired = lt;
|
|
434
431
|
$e.isRequired = $e;
|
|
435
432
|
const ut = process.env.NODE_ENV === "production" ? $e : ct;
|
|
433
|
+
function zt(t) {
|
|
434
|
+
return typeof t == "string";
|
|
435
|
+
}
|
|
436
436
|
function Wt(t) {
|
|
437
437
|
const {
|
|
438
438
|
prototype: n = {}
|
|
@@ -2162,7 +2162,7 @@ const Pn = (t) => {
|
|
|
2162
2162
|
});
|
|
2163
2163
|
return /* @__PURE__ */ L.jsx(Q, {
|
|
2164
2164
|
...Me,
|
|
2165
|
-
...!
|
|
2165
|
+
...!zt(Q) && {
|
|
2166
2166
|
slots: ye,
|
|
2167
2167
|
slotProps: Ce,
|
|
2168
2168
|
disableScrollLock: S
|
|
@@ -2949,9 +2949,9 @@ export {
|
|
|
2949
2949
|
vt as L,
|
|
2950
2950
|
Ln as M,
|
|
2951
2951
|
yt as P,
|
|
2952
|
-
|
|
2952
|
+
ne as a,
|
|
2953
2953
|
qt as d,
|
|
2954
2954
|
Se as g,
|
|
2955
|
-
|
|
2956
|
-
|
|
2955
|
+
zt as i,
|
|
2956
|
+
z as o
|
|
2957
2957
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as e, h as O, r as m, f as V, j as C, m as D, g as E, e as N, k as T } from "./createTheme-CyFSna1a.js";
|
|
2
|
-
import { a as R,
|
|
2
|
+
import { a as R, r as F, c as B, s as M, u as w } from "./memoTheme-Bz_6CvJG.js";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { c as G } from "./identifier-BA7fwE7E.js";
|
|
5
5
|
import { j as U } from "./jsx-runtime-C5mzlN2N.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
2
|
import { c, P as r } from "./createTheme-CyFSna1a.js";
|
|
3
3
|
import { c as O } from "./identifier-BA7fwE7E.js";
|
|
4
|
-
import { i as S } from "./index-
|
|
5
|
-
import { u as w, s as B, c as P, m as W } from "./memoTheme-
|
|
4
|
+
import { i as S } from "./index-BKXuuq9K.js";
|
|
5
|
+
import { u as w, s as B, c as P, m as W } from "./memoTheme-Bz_6CvJG.js";
|
|
6
6
|
import { c as C } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
7
|
import { g as R } from "./typographyClasses-DVLfmcGt.js";
|
|
8
8
|
import { j as M } from "./jsx-runtime-C5mzlN2N.js";
|
|
@@ -2,7 +2,7 @@ import * as h from "react";
|
|
|
2
2
|
import { j as w } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
3
|
import { c as x, P as o } from "./createTheme-CyFSna1a.js";
|
|
4
4
|
import { c as N } from "./identifier-BA7fwE7E.js";
|
|
5
|
-
import { u as b, s as O, c as R, m as T } from "./memoTheme-
|
|
5
|
+
import { u as b, s as O, c as R, m as T } from "./memoTheme-Bz_6CvJG.js";
|
|
6
6
|
import { g as I } from "./svgIconClasses-SRBiyaM8.js";
|
|
7
7
|
const j = (e) => {
|
|
8
8
|
const {
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
3
|
import { e as f } from "./extendSxProp-C6KgcV1-.js";
|
|
4
4
|
import { P as e } from "./createTheme-CyFSna1a.js";
|
|
5
|
-
import { d as a } from "./memoTheme-
|
|
5
|
+
import { d as a } from "./memoTheme-Bz_6CvJG.js";
|
|
6
6
|
import { T as c } from "./identifier-BA7fwE7E.js";
|
|
7
7
|
import { u as m } from "./useTheme-TEQWKSsD.js";
|
|
8
8
|
import { Global as y } from "@emotion/react";
|
|
@@ -3,11 +3,11 @@ import * as y from "react";
|
|
|
3
3
|
import Ce from "../s-empty/s-empty.js";
|
|
4
4
|
import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-CyFSna1a.js";
|
|
5
5
|
import { c as I } from "../identifier-BA7fwE7E.js";
|
|
6
|
-
import { s as S, c as $,
|
|
6
|
+
import { s as S, c as $, b as se, u as E, m as W } from "../memoTheme-Bz_6CvJG.js";
|
|
7
7
|
import { g as B } from "../generateUtilityClasses-CvAVhM6T.js";
|
|
8
8
|
import { u as je, a as Oe } from "../useControlled-DnifWmuD.js";
|
|
9
|
-
import { a as A, B as Re, r as we, m as Pe } from "../useSlot-
|
|
10
|
-
import { c as J } from "../createSvgIcon-
|
|
9
|
+
import { a as A, B as Re, r as we, m as Pe } from "../useSlot-DFX3jR9F.js";
|
|
10
|
+
import { c as J } from "../createSvgIcon-FIMSBrG5.js";
|
|
11
11
|
import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
12
12
|
function Se(o) {
|
|
13
13
|
return N("PrivateSwitchBase", o);
|
|
@@ -3,7 +3,7 @@ import * as r from "react";
|
|
|
3
3
|
import { Dialog as p, DialogTitle as g, Stack as j, IconButton as D, DialogContent as v, DialogActions as y, Button as d } from "@mui/material";
|
|
4
4
|
import { IconX as b } from "@tabler/icons-react";
|
|
5
5
|
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
-
import { T as m } from "../Typography-
|
|
6
|
+
import { T as m } from "../Typography-8CUP66S2.js";
|
|
7
7
|
const w = ({
|
|
8
8
|
title: o,
|
|
9
9
|
content: e,
|
|
@@ -3,7 +3,7 @@ import * as s from "react";
|
|
|
3
3
|
import { Dialog as u, DialogTitle as p, Stack as g, IconButton as m, DialogContent as j, DialogActions as f, Button as C } from "@mui/material";
|
|
4
4
|
import { IconX as D } from "@tabler/icons-react";
|
|
5
5
|
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
-
import { T as c } from "../Typography-
|
|
6
|
+
import { T as c } from "../Typography-8CUP66S2.js";
|
|
7
7
|
const v = ({
|
|
8
8
|
title: t,
|
|
9
9
|
content: e,
|
|
@@ -5,9 +5,9 @@ import { useDropzone as z } from "react-dropzone";
|
|
|
5
5
|
import C from "../s-file-icon/s-file-icon.js";
|
|
6
6
|
import k from "../s-form/s-form.js";
|
|
7
7
|
import { bytesToSize as B } from "../utils/bytes-to-size.js";
|
|
8
|
-
import { S as r } from "../Stack-
|
|
8
|
+
import { S as r } from "../Stack-CHCAZYKm.js";
|
|
9
9
|
import { B as d } from "../Box-BOnkyXg-.js";
|
|
10
|
-
import { T as o } from "../Typography-
|
|
10
|
+
import { T as o } from "../Typography-8CUP66S2.js";
|
|
11
11
|
const H = ({
|
|
12
12
|
caption: i,
|
|
13
13
|
label: p = "",
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { j as l } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { c as N } from "../createSvgIcon-FIMSBrG5.js";
|
|
4
4
|
import { Stack as P, OutlinedInput as B, selectClasses as E } from "@mui/material";
|
|
5
5
|
import { usePopover as U } from "../hooks/use-popover.js";
|
|
6
|
-
import
|
|
7
|
-
import { gray as
|
|
8
|
-
import { L as O, M as
|
|
9
|
-
import { a as
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as
|
|
12
|
-
import { g as
|
|
6
|
+
import D from "../s-chips/s-chips.js";
|
|
7
|
+
import { gray as y } from "../theme/theme-primitives.js";
|
|
8
|
+
import { L as O, M as F } from "../Menu-BTGaz6HX.js";
|
|
9
|
+
import { g as z, a as m, P as t } from "../createTheme-CyFSna1a.js";
|
|
10
|
+
import { c as h } from "../identifier-BA7fwE7E.js";
|
|
11
|
+
import { u as G, s as A, c as H, b as W, m as _ } from "../memoTheme-Bz_6CvJG.js";
|
|
12
|
+
import { g as b } from "../generateUtilityClasses-CvAVhM6T.js";
|
|
13
13
|
import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
14
|
-
import { u as J, B as K } from "../useSlot-
|
|
15
|
-
|
|
16
|
-
const Q = V(/* @__PURE__ */ l.jsx("path", {
|
|
14
|
+
import { u as J, B as K } from "../useSlot-DFX3jR9F.js";
|
|
15
|
+
const Q = N(/* @__PURE__ */ l.jsx("path", {
|
|
17
16
|
d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
|
|
18
|
-
}), "UnfoldMore"),
|
|
17
|
+
}), "UnfoldMore"), k = b("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), w = b("MuiListItemIcon", ["root", "alignItemsFlexStart"]), R = b("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
|
|
18
|
+
function X(e) {
|
|
19
|
+
return z("MuiMenuItem", e);
|
|
20
|
+
}
|
|
21
|
+
const u = b("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), Y = (e, o) => {
|
|
19
22
|
const {
|
|
20
23
|
ownerState: r
|
|
21
24
|
} = e;
|
|
22
25
|
return [o.root, r.dense && o.dense, r.divider && o.divider, !r.disableGutters && o.gutters];
|
|
23
|
-
},
|
|
26
|
+
}, Z = (e) => {
|
|
24
27
|
const {
|
|
25
28
|
disabled: o,
|
|
26
29
|
dense: r,
|
|
@@ -30,17 +33,17 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
|
|
|
30
33
|
classes: c
|
|
31
34
|
} = e, n = H({
|
|
32
35
|
root: ["root", r && "dense", o && "disabled", !d && "gutters", a && "divider", i && "selected"]
|
|
33
|
-
},
|
|
36
|
+
}, X, c);
|
|
34
37
|
return {
|
|
35
38
|
...c,
|
|
36
39
|
...n
|
|
37
40
|
};
|
|
38
|
-
},
|
|
39
|
-
shouldForwardProp: (e) =>
|
|
41
|
+
}, ee = A(K, {
|
|
42
|
+
shouldForwardProp: (e) => W(e) || e === "classes",
|
|
40
43
|
name: "MuiMenuItem",
|
|
41
44
|
slot: "Root",
|
|
42
|
-
overridesResolver:
|
|
43
|
-
})(
|
|
45
|
+
overridesResolver: Y
|
|
46
|
+
})(_(({
|
|
44
47
|
theme: e
|
|
45
48
|
}) => ({
|
|
46
49
|
...e.typography.body1,
|
|
@@ -63,16 +66,16 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
|
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
[`&.${u.selected}`]: {
|
|
66
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
69
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : m(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
67
70
|
[`&.${u.focusVisible}`]: {
|
|
68
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
71
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : m(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
69
72
|
}
|
|
70
73
|
},
|
|
71
74
|
[`&.${u.selected}:hover`]: {
|
|
72
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
75
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : m(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
73
76
|
// Reset on touch devices, it doesn't add specificity
|
|
74
77
|
"@media (hover: none)": {
|
|
75
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
78
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : m(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
76
79
|
}
|
|
77
80
|
},
|
|
78
81
|
[`&.${u.focusVisible}`]: {
|
|
@@ -88,14 +91,14 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
|
|
|
88
91
|
[`& + .${k.inset}`]: {
|
|
89
92
|
marginLeft: 52
|
|
90
93
|
},
|
|
91
|
-
[`& .${
|
|
94
|
+
[`& .${R.root}`]: {
|
|
92
95
|
marginTop: 0,
|
|
93
96
|
marginBottom: 0
|
|
94
97
|
},
|
|
95
|
-
[`& .${
|
|
98
|
+
[`& .${R.inset}`]: {
|
|
96
99
|
paddingLeft: 36
|
|
97
100
|
},
|
|
98
|
-
[`& .${
|
|
101
|
+
[`& .${w.root}`]: {
|
|
99
102
|
minWidth: 36
|
|
100
103
|
},
|
|
101
104
|
variants: [{
|
|
@@ -133,56 +136,56 @@ const Q = V(/* @__PURE__ */ l.jsx("path", {
|
|
|
133
136
|
paddingTop: 4,
|
|
134
137
|
paddingBottom: 4,
|
|
135
138
|
...e.typography.body2,
|
|
136
|
-
[`& .${
|
|
139
|
+
[`& .${w.root} svg`]: {
|
|
137
140
|
fontSize: "1.25rem"
|
|
138
141
|
}
|
|
139
142
|
}
|
|
140
143
|
}]
|
|
141
|
-
}))),
|
|
142
|
-
const a =
|
|
144
|
+
}))), S = /* @__PURE__ */ f.forwardRef(function(o, r) {
|
|
145
|
+
const a = G({
|
|
143
146
|
props: o,
|
|
144
147
|
name: "MuiMenuItem"
|
|
145
148
|
}), {
|
|
146
149
|
autoFocus: d = !1,
|
|
147
150
|
component: i = "li",
|
|
148
151
|
dense: c = !1,
|
|
149
|
-
divider:
|
|
152
|
+
divider: s = !1,
|
|
150
153
|
disableGutters: n = !1,
|
|
151
154
|
focusVisibleClassName: p,
|
|
152
|
-
role:
|
|
153
|
-
tabIndex:
|
|
154
|
-
className:
|
|
155
|
-
...
|
|
156
|
-
} = a,
|
|
157
|
-
dense: c ||
|
|
155
|
+
role: g = "menuitem",
|
|
156
|
+
tabIndex: C,
|
|
157
|
+
className: j,
|
|
158
|
+
...V
|
|
159
|
+
} = a, I = f.useContext(O), M = f.useMemo(() => ({
|
|
160
|
+
dense: c || I.dense || !1,
|
|
158
161
|
disableGutters: n
|
|
159
|
-
}), [
|
|
162
|
+
}), [I.dense, c, n]), v = f.useRef(null);
|
|
160
163
|
q(() => {
|
|
161
164
|
d && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
162
165
|
}, [d]);
|
|
163
166
|
const L = {
|
|
164
167
|
...a,
|
|
165
|
-
dense:
|
|
166
|
-
divider:
|
|
168
|
+
dense: M.dense,
|
|
169
|
+
divider: s,
|
|
167
170
|
disableGutters: n
|
|
168
|
-
},
|
|
171
|
+
}, x = Z(a), T = J(v, r);
|
|
169
172
|
let $;
|
|
170
|
-
return a.disabled || ($ =
|
|
171
|
-
value:
|
|
172
|
-
children: /* @__PURE__ */ l.jsx(
|
|
173
|
-
ref:
|
|
174
|
-
role:
|
|
173
|
+
return a.disabled || ($ = C !== void 0 ? C : -1), /* @__PURE__ */ l.jsx(O.Provider, {
|
|
174
|
+
value: M,
|
|
175
|
+
children: /* @__PURE__ */ l.jsx(ee, {
|
|
176
|
+
ref: T,
|
|
177
|
+
role: g,
|
|
175
178
|
tabIndex: $,
|
|
176
179
|
component: i,
|
|
177
|
-
focusVisibleClassName:
|
|
178
|
-
className:
|
|
179
|
-
...
|
|
180
|
+
focusVisibleClassName: h(x.focusVisible, p),
|
|
181
|
+
className: h(x.root, j),
|
|
182
|
+
...V,
|
|
180
183
|
ownerState: L,
|
|
181
|
-
classes:
|
|
184
|
+
classes: x
|
|
182
185
|
})
|
|
183
186
|
});
|
|
184
187
|
});
|
|
185
|
-
process.env.NODE_ENV !== "production" && (
|
|
188
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
186
189
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
187
190
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
188
191
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -192,44 +195,44 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
|
192
195
|
* Focus will also be triggered if the value changes from false to true.
|
|
193
196
|
* @default false
|
|
194
197
|
*/
|
|
195
|
-
autoFocus:
|
|
198
|
+
autoFocus: t.bool,
|
|
196
199
|
/**
|
|
197
200
|
* The content of the component.
|
|
198
201
|
*/
|
|
199
|
-
children:
|
|
202
|
+
children: t.node,
|
|
200
203
|
/**
|
|
201
204
|
* Override or extend the styles applied to the component.
|
|
202
205
|
*/
|
|
203
|
-
classes:
|
|
206
|
+
classes: t.object,
|
|
204
207
|
/**
|
|
205
208
|
* @ignore
|
|
206
209
|
*/
|
|
207
|
-
className:
|
|
210
|
+
className: t.string,
|
|
208
211
|
/**
|
|
209
212
|
* The component used for the root node.
|
|
210
213
|
* Either a string to use a HTML element or a component.
|
|
211
214
|
*/
|
|
212
|
-
component:
|
|
215
|
+
component: t.elementType,
|
|
213
216
|
/**
|
|
214
217
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
215
218
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
216
219
|
* @default false
|
|
217
220
|
*/
|
|
218
|
-
dense:
|
|
221
|
+
dense: t.bool,
|
|
219
222
|
/**
|
|
220
223
|
* @ignore
|
|
221
224
|
*/
|
|
222
|
-
disabled:
|
|
225
|
+
disabled: t.bool,
|
|
223
226
|
/**
|
|
224
227
|
* If `true`, the left and right padding is removed.
|
|
225
228
|
* @default false
|
|
226
229
|
*/
|
|
227
|
-
disableGutters:
|
|
230
|
+
disableGutters: t.bool,
|
|
228
231
|
/**
|
|
229
232
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
230
233
|
* @default false
|
|
231
234
|
*/
|
|
232
|
-
divider:
|
|
235
|
+
divider: t.bool,
|
|
233
236
|
/**
|
|
234
237
|
* This prop can help identify which element has keyboard focus.
|
|
235
238
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -238,36 +241,36 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
|
238
241
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
239
242
|
* if needed.
|
|
240
243
|
*/
|
|
241
|
-
focusVisibleClassName:
|
|
244
|
+
focusVisibleClassName: t.string,
|
|
242
245
|
/**
|
|
243
246
|
* @ignore
|
|
244
247
|
*/
|
|
245
|
-
role:
|
|
248
|
+
role: t.string,
|
|
246
249
|
/**
|
|
247
250
|
* If `true`, the component is selected.
|
|
248
251
|
* @default false
|
|
249
252
|
*/
|
|
250
|
-
selected:
|
|
253
|
+
selected: t.bool,
|
|
251
254
|
/**
|
|
252
255
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
253
256
|
*/
|
|
254
|
-
sx:
|
|
257
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
255
258
|
/**
|
|
256
259
|
* @default 0
|
|
257
260
|
*/
|
|
258
|
-
tabIndex:
|
|
261
|
+
tabIndex: t.number
|
|
259
262
|
});
|
|
260
|
-
function
|
|
263
|
+
function me({
|
|
261
264
|
label: e,
|
|
262
265
|
onChange: o,
|
|
263
266
|
options: r,
|
|
264
267
|
value: a = [],
|
|
265
268
|
chipProps: d
|
|
266
269
|
}) {
|
|
267
|
-
const i = U(), c =
|
|
268
|
-
(
|
|
270
|
+
const i = U(), c = f.useCallback(
|
|
271
|
+
(s, n) => {
|
|
269
272
|
let p = [...a];
|
|
270
|
-
n ? p.push(
|
|
273
|
+
n ? p.push(s) : p = p.filter((g) => g !== s), o == null || o(p);
|
|
271
274
|
},
|
|
272
275
|
[o, a]
|
|
273
276
|
);
|
|
@@ -288,17 +291,17 @@ function fe({
|
|
|
288
291
|
sx: {
|
|
289
292
|
borderRadius: "var(--s-shape-borderRadius)",
|
|
290
293
|
border: "1px solid",
|
|
291
|
-
borderColor:
|
|
294
|
+
borderColor: y[200],
|
|
292
295
|
backgroundColor: "var(--s-palette-background-paper)",
|
|
293
296
|
boxShadow: "inset 0 1px 0 1px hsla(220, 0%, 100%, 0.6), inset 0 -1px 0 1px hsla(220, 35%, 90%, 0.5)",
|
|
294
297
|
"&:hover": {
|
|
295
|
-
borderColor:
|
|
298
|
+
borderColor: y[300],
|
|
296
299
|
backgroundColor: "var(--s-palette-background-paper)",
|
|
297
300
|
boxShadow: "none"
|
|
298
301
|
},
|
|
299
302
|
[`&.${E.focused}`]: {
|
|
300
303
|
outlineOffset: 0,
|
|
301
|
-
borderColor:
|
|
304
|
+
borderColor: y[400]
|
|
302
305
|
},
|
|
303
306
|
"&:before, &:after": {
|
|
304
307
|
display: "none"
|
|
@@ -307,37 +310,37 @@ function fe({
|
|
|
307
310
|
}
|
|
308
311
|
),
|
|
309
312
|
/* @__PURE__ */ l.jsx(
|
|
310
|
-
|
|
313
|
+
F,
|
|
311
314
|
{
|
|
312
315
|
anchorEl: i.anchorRef.current,
|
|
313
316
|
onClose: i.handleClose,
|
|
314
317
|
open: i.open,
|
|
315
318
|
slotProps: { paper: { sx: { width: "250px" } } },
|
|
316
|
-
children: r.map((
|
|
317
|
-
const n = a.includes(
|
|
319
|
+
children: r.map((s) => {
|
|
320
|
+
const n = a.includes(s.value);
|
|
318
321
|
return /* @__PURE__ */ l.jsx(
|
|
319
|
-
|
|
322
|
+
S,
|
|
320
323
|
{
|
|
321
324
|
onClick: () => {
|
|
322
|
-
c(
|
|
325
|
+
c(s.value, !n);
|
|
323
326
|
},
|
|
324
327
|
selected: n,
|
|
325
|
-
children:
|
|
328
|
+
children: s.label
|
|
326
329
|
},
|
|
327
|
-
|
|
330
|
+
s.label
|
|
328
331
|
);
|
|
329
332
|
})
|
|
330
333
|
}
|
|
331
334
|
),
|
|
332
335
|
/* @__PURE__ */ l.jsx(
|
|
333
|
-
|
|
336
|
+
D,
|
|
334
337
|
{
|
|
335
|
-
chips: r.filter((
|
|
338
|
+
chips: r.filter((s) => a.includes(s.value)).map((s) => s.label),
|
|
336
339
|
...d
|
|
337
340
|
}
|
|
338
341
|
)
|
|
339
342
|
] });
|
|
340
343
|
}
|
|
341
344
|
export {
|
|
342
|
-
|
|
345
|
+
me as default
|
|
343
346
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { AutosuggestionsConfigUserSpecified, CopilotTextarea } from '@copilotkit/react-textarea';
|
|
2
2
|
export type SSmartTextFieldProps = Omit<React.ComponentProps<typeof CopilotTextarea>, 'autosuggestionsConfig'> & {
|
|
3
3
|
autosuggestionsConfig?: AutosuggestionsConfigUserSpecified;
|
|
4
|
+
label?: string | React.ReactNode;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
htmlFor?: string;
|
|
4
9
|
};
|
|
5
|
-
export declare function SSmartTextField({ autosuggestionsConfig, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
6
11
|
export default SSmartTextField;
|