@solostylist/ui-kit 1.0.88 → 1.0.90
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-Cf99MewL.js → Box-CJmG1mTu.js} +3 -3
- package/dist/ButtonBase-C0g54hXq.js +910 -0
- package/dist/{ChevronRight-D5BryGH5.js → ChevronRight-CtkI4XwH.js} +1 -1
- package/dist/{Close-CKpTrk7X.js → Close--Sf9yZGB.js} +1 -1
- package/dist/{Menu-D2LDo0yd.js → Menu-BuktPpzX.js} +914 -1453
- package/dist/{MenuItem-JkMrBIMD.js → MenuItem-sL2AcofB.js} +8 -8
- package/dist/Paper-CH6cuu9i.js +553 -0
- package/dist/{Select-4BjFewNI.js → Select-D2lV25sl.js} +16 -15
- package/dist/{Stack-UjxgGQu9.js → Stack-CIrlOUXL.js} +4 -4
- package/dist/{TransitionGroup-DzGaAPUk.js → TransitionGroup-SToIdl-5.js} +3 -3
- package/dist/{Typography-CGoVq27h.js → Typography-D-VP4V1G.js} +3 -3
- package/dist/{createSvgIcon-vJH0FaMW.js → createSvgIcon-DpVs_nKR.js} +5 -5
- package/dist/{createTheme-DjqDAiZm.js → createTheme-DbdaZ0Ku.js} +3 -2
- package/dist/{defaultTheme-CaAxts6z.js → defaultTheme-CFAmbghg.js} +1 -1
- package/dist/{extendSxProp-BnfiUPQK.js → extendSxProp-CQnEn3aw.js} +1 -1
- package/dist/{index-DcImsw9J.js → index-CjPqjRDL.js} +4 -4
- package/dist/main.d.ts +4 -0
- package/dist/main.js +117 -113
- package/dist/mergeSlotProps-N47mO9C9.js +62 -0
- package/dist/s-accordion/index.d.ts +2 -0
- package/dist/s-accordion/index.js +4 -0
- package/dist/s-accordion/package.json +5 -0
- package/dist/s-accordion/s-accordion.d.ts +9 -0
- package/dist/s-accordion/s-accordion.js +922 -0
- package/dist/s-avatar/index.d.ts +2 -0
- package/dist/s-avatar/index.js +4 -0
- package/dist/s-avatar/package.json +5 -0
- package/dist/s-avatar/s-avatar.d.ts +10 -0
- package/dist/s-avatar/s-avatar.js +9 -0
- package/dist/s-chat-input/s-chat-input.js +6 -6
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +12 -10
- package/dist/s-date-picker/s-date-picker.js +24 -24
- package/dist/s-datetime-picker/s-datetime-picker.js +13 -12
- 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 +8 -8
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +1 -1
- package/dist/s-image-modal/s-image-modal.js +21 -24
- package/dist/s-interactive-gallery/s-interactive-gallery.js +0 -1
- 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 +5 -5
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +5 -5
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/theme/components/avatar.js +3 -3
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.d.ts +2 -2
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/{useMobilePicker-DmFQ075P.js → useMobilePicker-CRxlxUeh.js} +100 -98
- package/dist/{useTheme-DPtt6ExE.js → useTheme-CjYoxoob.js} +1 -1
- package/dist/{useThemeProps-DQiCrjPQ.js → useThemeProps-DdCEfRBE.js} +2 -2
- package/dist/{warning-UxpRUL3s.js → warning-CiVr8tE6.js} +3 -3
- package/package.json +1 -1
- package/dist/useFormControl-B3RPiDsz.js +0 -38
- package/dist/useSlot-DFSsVuMw.js +0 -969
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as h } from "../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { Stack as j, OutlinedInput as M } from "@mui/material";
|
|
5
5
|
import { usePopover as v } from "../hooks/use-popover.js";
|
|
6
6
|
import S from "../s-chips/s-chips.js";
|
|
7
|
-
import { M as
|
|
8
|
-
import { M as
|
|
7
|
+
import { M as b } from "../Menu-BuktPpzX.js";
|
|
8
|
+
import { M as R } from "../MenuItem-sL2AcofB.js";
|
|
9
9
|
const I = h(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
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"
|
|
11
11
|
}), "UnfoldMore");
|
|
@@ -51,7 +51,7 @@ function P({
|
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
53
|
/* @__PURE__ */ t.jsx(
|
|
54
|
-
|
|
54
|
+
b,
|
|
55
55
|
{
|
|
56
56
|
anchorEl: r.anchorRef.current,
|
|
57
57
|
onClose: r.handleClose,
|
|
@@ -60,7 +60,7 @@ function P({
|
|
|
60
60
|
children: a.map((e) => {
|
|
61
61
|
const s = l.includes(e.value);
|
|
62
62
|
return /* @__PURE__ */ t.jsx(
|
|
63
|
-
|
|
63
|
+
R,
|
|
64
64
|
{
|
|
65
65
|
onClick: () => {
|
|
66
66
|
m(e.value, !s);
|
|
@@ -5,12 +5,12 @@ import le, { useCallback as pe, useState as Re, useMemo as rt, useEffect as ye,
|
|
|
5
5
|
import { g as Cn, c as Zt, a as er } from "../_commonjsHelpers-B4e78b8K.js";
|
|
6
6
|
import mi, { flushSync as kl } from "react-dom";
|
|
7
7
|
import { a as re, _ as ut } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
8
|
-
import { P,
|
|
8
|
+
import { P, l as rs } from "../createTheme-DbdaZ0Ku.js";
|
|
9
9
|
import qd from "@emotion/styled";
|
|
10
10
|
import { s as Zn } from "../emotion-serialize.esm-lgBmL_7o.js";
|
|
11
11
|
import { CacheProvider as Hd, Global as Kd, ThemeContext as Gd, css as Yd, keyframes as ga } from "@emotion/react";
|
|
12
12
|
import Ll from "@emotion/cache";
|
|
13
|
-
import {
|
|
13
|
+
import { a as Xd } from "../TransitionGroup-SToIdl-5.js";
|
|
14
14
|
import { styled as Zd, alpha as ns, outlinedInputClasses as Jd } from "@mui/material";
|
|
15
15
|
import Qd from "../s-form/s-form.js";
|
|
16
16
|
import { brand as jn, gray as as } from "../theme/theme-primitives.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as c } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as i } from "../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { MenuItem as u } from "@mui/material";
|
|
5
5
|
import { usePopover as p } from "../hooks/use-popover.js";
|
|
6
6
|
import m from "../s-text-field/s-text-field.js";
|
|
7
|
-
import { I as f, S as x, F as d } from "../Select-
|
|
8
|
-
import { S as v } from "../Stack-
|
|
9
|
-
import { P as j } from "../Menu-
|
|
7
|
+
import { I as f, S as x, F as d } from "../Select-D2lV25sl.js";
|
|
8
|
+
import { S as v } from "../Stack-CIrlOUXL.js";
|
|
9
|
+
import { P as j } from "../Menu-BuktPpzX.js";
|
|
10
10
|
const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
11
11
|
d: "M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"
|
|
12
12
|
}), "Code"), H = i(/* @__PURE__ */ c.jsx("path", {
|
|
13
13
|
d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"
|
|
14
|
-
}), "FormatBold"),
|
|
14
|
+
}), "FormatBold"), b = i(/* @__PURE__ */ c.jsx("path", {
|
|
15
15
|
d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"
|
|
16
|
-
}), "FormatItalic"),
|
|
16
|
+
}), "FormatItalic"), L = i(/* @__PURE__ */ c.jsx("path", {
|
|
17
17
|
d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"
|
|
18
18
|
}), "FormatListBulleted"), C = i(/* @__PURE__ */ c.jsx("path", {
|
|
19
19
|
d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"
|
|
@@ -88,7 +88,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
|
88
88
|
onClick: () => {
|
|
89
89
|
n.chain().focus().toggleItalic().run();
|
|
90
90
|
},
|
|
91
|
-
children: /* @__PURE__ */ c.jsx(
|
|
91
|
+
children: /* @__PURE__ */ c.jsx(b, {})
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
94
|
/* @__PURE__ */ c.jsx(
|
|
@@ -121,7 +121,7 @@ const k = i(/* @__PURE__ */ c.jsx("path", {
|
|
|
121
121
|
onClick: () => {
|
|
122
122
|
n.chain().focus().toggleBulletList().run();
|
|
123
123
|
},
|
|
124
|
-
children: /* @__PURE__ */ c.jsx(
|
|
124
|
+
children: /* @__PURE__ */ c.jsx(L, {})
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
127
|
/* @__PURE__ */ c.jsx(
|
|
@@ -5,7 +5,7 @@ import { Placeholder as m } from "@tiptap/extension-placeholder";
|
|
|
5
5
|
import { useEditor as c, EditorContent as f } from "@tiptap/react";
|
|
6
6
|
import { StarterKit as u } from "@tiptap/starter-kit";
|
|
7
7
|
import { STextEditorToolbar as x } from "./s-text-editor-toolbar.js";
|
|
8
|
-
import { B as d } from "../Box-
|
|
8
|
+
import { B as d } from "../Box-CJmG1mTu.js";
|
|
9
9
|
const z = ({
|
|
10
10
|
content: r,
|
|
11
11
|
editable: o = !0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as s } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { useState as j } from "react";
|
|
3
|
-
import { TextField as
|
|
3
|
+
import { TextField as b, InputAdornment as h, IconButton as w } from "@mui/material";
|
|
4
4
|
import y from "../s-form/s-form.js";
|
|
5
|
-
import { c } from "../createSvgIcon-
|
|
5
|
+
import { b as c } from "../createSvgIcon-DpVs_nKR.js";
|
|
6
6
|
const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
7
7
|
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
8
8
|
}), "Visibility"), P = c(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -19,8 +19,8 @@ const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
|
19
19
|
var r;
|
|
20
20
|
const [t, m] = j(!1), n = o === "password", x = () => {
|
|
21
21
|
m(!t);
|
|
22
|
-
}, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(
|
|
23
|
-
|
|
22
|
+
}, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(h, { position: "end", children: /* @__PURE__ */ s.jsx(
|
|
23
|
+
w,
|
|
24
24
|
{
|
|
25
25
|
"aria-label": "toggle password visibility",
|
|
26
26
|
onClick: x,
|
|
@@ -30,7 +30,7 @@ const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
|
30
30
|
}
|
|
31
31
|
) }) : void 0;
|
|
32
32
|
return /* @__PURE__ */ s.jsx(y, { label: d, hint: p, error: i, required: a, htmlFor: e, children: /* @__PURE__ */ s.jsx(
|
|
33
|
-
|
|
33
|
+
b,
|
|
34
34
|
{
|
|
35
35
|
fullWidth: !0,
|
|
36
36
|
type: f,
|
package/dist/s-tip/s-tip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
3
|
-
import { S as s } from "../Stack-
|
|
4
|
-
import { T as r } from "../Typography-
|
|
2
|
+
import { b as e } from "../createSvgIcon-DpVs_nKR.js";
|
|
3
|
+
import { S as s } from "../Stack-CIrlOUXL.js";
|
|
4
|
+
import { T as r } from "../Typography-D-VP4V1G.js";
|
|
5
5
|
const a = e(/* @__PURE__ */ t.jsx("path", {
|
|
6
6
|
d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2 11.7V16h-4v-2.3C8.48 12.63 7 11.53 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.49-1.51 3.65-3 4.7"
|
|
7
7
|
}), "LightbulbOutline"), l = ({ message: o }) => /* @__PURE__ */ t.jsxs(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as r } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o } from "../../createSvgIcon-DpVs_nKR.js";
|
|
3
3
|
const s = o(/* @__PURE__ */ r.jsx("path", {
|
|
4
4
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
5
|
-
}), "Person"),
|
|
5
|
+
}), "Person"), a = {
|
|
6
6
|
defaultProps: { children: /* @__PURE__ */ r.jsx(s, { sx: { color: "text.primary" } }) },
|
|
7
7
|
styleOverrides: {
|
|
8
8
|
rounded: { borderRadius: 12 }
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
a as MuiAvatar
|
|
13
13
|
};
|
|
@@ -4,10 +4,10 @@ export declare const MuiButton: {
|
|
|
4
4
|
variant: "contained";
|
|
5
5
|
};
|
|
6
6
|
styleOverrides: {
|
|
7
|
-
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
7
|
+
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
8
8
|
component?: React.ElementType;
|
|
9
9
|
} & Record<string, unknown> & {
|
|
10
|
-
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
10
|
+
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
11
11
|
component?: React.ElementType;
|
|
12
12
|
} & Record<string, unknown>;
|
|
13
13
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { chipClasses as o } from "@mui/material";
|
|
3
3
|
import { gray as r, orange as a, brand as c, purple as e, green as p, red as s, blue as d } from "../theme-primitives.js";
|
|
4
|
-
import { C as b } from "../../Close
|
|
4
|
+
import { C as b } from "../../Close--Sf9yZGB.js";
|
|
5
5
|
const u = {
|
|
6
6
|
defaultProps: {
|
|
7
7
|
size: "small",
|
|
@@ -188,10 +188,10 @@ export declare const components: {
|
|
|
188
188
|
variant: "contained";
|
|
189
189
|
};
|
|
190
190
|
styleOverrides: {
|
|
191
|
-
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
191
|
+
root: ({ theme, ownerState }: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
192
192
|
component?: React.ElementType;
|
|
193
193
|
} & Record<string, unknown> & {
|
|
194
|
-
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "
|
|
194
|
+
ownerState: import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "color" | "size" | "disabled" | "children" | "sx" | "className" | "tabIndex" | "loading" | "classes" | "href" | "variant" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator" | "startIcon" | "fullWidth" | "disableElevation" | "endIcon" | "loadingPosition"> & {
|
|
195
195
|
component?: React.ElementType;
|
|
196
196
|
} & Record<string, unknown>;
|
|
197
197
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as i } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as l } from "../../createSvgIcon-DpVs_nKR.js";
|
|
3
3
|
import { brand as r, gray as e } from "../theme-primitives.js";
|
|
4
4
|
import { o as p } from "../../outlinedInputClasses-DM19xjo3.js";
|
|
5
5
|
import { g as d } from "../../generateUtilityClasses-BtVDwGrk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as t } from "../../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { b as l } from "../../createSvgIcon-DpVs_nKR.js";
|
|
4
4
|
import { gray as o, brand as s } from "../theme-primitives.js";
|
|
5
5
|
import { t as a } from "../../tabClasses-Bub2PPlp.js";
|
|
6
6
|
import { a as d } from "../../colorManipulator-ep5lERxB.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function f(c) {
|
|
3
|
+
const {
|
|
4
|
+
controlled: n,
|
|
5
|
+
default: r,
|
|
6
|
+
name: o,
|
|
7
|
+
state: l = "value"
|
|
8
|
+
} = c, {
|
|
9
|
+
current: e
|
|
10
|
+
} = t.useRef(n !== void 0), [i, u] = t.useState(r), a = e ? n : i;
|
|
11
|
+
if (process.env.NODE_ENV !== "production") {
|
|
12
|
+
t.useEffect(() => {
|
|
13
|
+
e !== (n !== void 0) && console.error([`MUI: A component is changing the ${e ? "" : "un"}controlled ${l} state of ${o} to be ${e ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
14
|
+
`));
|
|
15
|
+
}, [l, o, n]);
|
|
16
|
+
const {
|
|
17
|
+
current: s
|
|
18
|
+
} = t.useRef(r);
|
|
19
|
+
t.useEffect(() => {
|
|
20
|
+
!e && !Object.is(s, r) && console.error([`MUI: A component is changing the default ${l} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
21
|
+
`));
|
|
22
|
+
}, [JSON.stringify(r)]);
|
|
23
|
+
}
|
|
24
|
+
const d = t.useCallback((s) => {
|
|
25
|
+
e || u(s);
|
|
26
|
+
}, []);
|
|
27
|
+
return [a, d];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
f as u
|
|
31
|
+
};
|