@amateescu/portal-ui-components 0.0.25-react19 → 0.0.25
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-CmKt1PwF.js +68 -0
- package/dist/Button-BT8r3F_d.js +355 -0
- package/dist/ButtonBase-By486Sca.js +966 -0
- package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-CtmB5yDB.js} +672 -667
- package/dist/PurePanel-CfZ1n-M8.js +4782 -0
- package/dist/{Skeleton-Imy-56Lv.js → Skeleton-XFbjx7LJ.js} +158 -161
- package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-DGaplQo6.js} +1505 -1540
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +344 -455
- package/dist/components/ErrorModal/ErrorModal.js +6 -5
- package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +892 -1003
- package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
- package/dist/components/Login/Login.js +3827 -4492
- package/dist/components/Login/Login.stories.js +1546 -1586
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/createSvgIcon-B8ya7kb4.js +250 -0
- package/dist/generateUtilityClasses-Bhjgm_6-.js +3270 -0
- package/dist/index-1vDmwq0E.js +19089 -0
- package/dist/index-DsP9yT3s.js +1551 -0
- package/dist/main.js +1 -1
- package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +227 -0
- package/dist/portal-utils/formatters.js +0 -68
- package/dist/useId-DbfH3PlN.js +5397 -0
- package/package.json +36 -36
- package/dist/Box-DQNjUj2G.js +0 -102
- package/dist/Button-D2XVkO19.js +0 -676
- package/dist/ButtonBase-D-XlpvIZ.js +0 -954
- package/dist/CircularProgress-BOkP0juA.js +0 -247
- package/dist/PurePanel-ByiFMw5U.js +0 -2213
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/context-D_FWkiDE.js +0 -7383
- package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
- package/dist/index-CR8gh-dS.js +0 -1689
- package/dist/index-CyFfYou3.js +0 -411
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
- package/dist/useSlot-kDVPuVrn.js +0 -431
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { i as h, j as T, k as y, l as C, d as N, a as B, C as b, m as j, T as _, P as e } from "./generateUtilityClasses-Bhjgm_6-.js";
|
|
2
|
+
import { _ as O, a as P } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { ThemeContext as g } from "@emotion/react";
|
|
5
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
6
|
+
function v(t) {
|
|
7
|
+
return Object.keys(t).length === 0;
|
|
8
|
+
}
|
|
9
|
+
function D(t = null) {
|
|
10
|
+
const o = m.useContext(g);
|
|
11
|
+
return !o || v(o) ? t : o;
|
|
12
|
+
}
|
|
13
|
+
const I = h();
|
|
14
|
+
function M(t = I) {
|
|
15
|
+
return D(t);
|
|
16
|
+
}
|
|
17
|
+
const R = ["className", "component"];
|
|
18
|
+
function S(t = {}) {
|
|
19
|
+
const {
|
|
20
|
+
themeId: o,
|
|
21
|
+
defaultTheme: u,
|
|
22
|
+
defaultClassName: a = "MuiBox-root",
|
|
23
|
+
generateClassName: r
|
|
24
|
+
} = t, l = T("div", {
|
|
25
|
+
shouldForwardProp: (s) => s !== "theme" && s !== "sx" && s !== "as"
|
|
26
|
+
})(y);
|
|
27
|
+
return /* @__PURE__ */ m.forwardRef(function(i, x) {
|
|
28
|
+
const n = M(u), c = C(i), {
|
|
29
|
+
className: f,
|
|
30
|
+
component: d = "div"
|
|
31
|
+
} = c, p = O(c, R);
|
|
32
|
+
return /* @__PURE__ */ E(l, P({
|
|
33
|
+
as: d,
|
|
34
|
+
ref: x,
|
|
35
|
+
className: N(f, r ? r(a) : a),
|
|
36
|
+
theme: o && n[o] || n
|
|
37
|
+
}, p));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const k = B("MuiBox", ["root"]), w = j(), F = S({
|
|
41
|
+
themeId: _,
|
|
42
|
+
defaultTheme: w,
|
|
43
|
+
defaultClassName: k.root,
|
|
44
|
+
generateClassName: b.generate
|
|
45
|
+
});
|
|
46
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
47
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
48
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
49
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
50
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
children: e.node,
|
|
55
|
+
/**
|
|
56
|
+
* The component used for the root node.
|
|
57
|
+
* Either a string to use a HTML element or a component.
|
|
58
|
+
*/
|
|
59
|
+
component: e.elementType,
|
|
60
|
+
/**
|
|
61
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
+
*/
|
|
63
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
F as B,
|
|
67
|
+
M as u
|
|
68
|
+
};
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { _ as j, a as t } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { g as D, a as F, r as G, u as U, c as r, b as H, s as f, f as A, h as v, d as m, P as n } from "./generateUtilityClasses-Bhjgm_6-.js";
|
|
4
|
+
import { jsx as R, jsxs as q } from "react/jsx-runtime";
|
|
5
|
+
import { B as J } from "./ButtonBase-By486Sca.js";
|
|
6
|
+
function K(o) {
|
|
7
|
+
return D("MuiButton", o);
|
|
8
|
+
}
|
|
9
|
+
const b = F("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), h = /* @__PURE__ */ p.createContext({});
|
|
10
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
11
|
+
const E = /* @__PURE__ */ p.createContext(void 0);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupButtonContext");
|
|
13
|
+
const Q = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], X = (o) => {
|
|
14
|
+
const {
|
|
15
|
+
color: a,
|
|
16
|
+
disableElevation: i,
|
|
17
|
+
fullWidth: l,
|
|
18
|
+
size: s,
|
|
19
|
+
variant: e,
|
|
20
|
+
classes: c
|
|
21
|
+
} = o, g = {
|
|
22
|
+
root: ["root", e, `${e}${r(a)}`, `size${r(s)}`, `${e}Size${r(s)}`, `color${r(a)}`, i && "disableElevation", l && "fullWidth"],
|
|
23
|
+
label: ["label"],
|
|
24
|
+
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
25
|
+
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
26
|
+
}, x = H(g, K, c);
|
|
27
|
+
return t({}, c, x);
|
|
28
|
+
}, N = (o) => t({}, o.size === "small" && {
|
|
29
|
+
"& > *:nth-of-type(1)": {
|
|
30
|
+
fontSize: 18
|
|
31
|
+
}
|
|
32
|
+
}, o.size === "medium" && {
|
|
33
|
+
"& > *:nth-of-type(1)": {
|
|
34
|
+
fontSize: 20
|
|
35
|
+
}
|
|
36
|
+
}, o.size === "large" && {
|
|
37
|
+
"& > *:nth-of-type(1)": {
|
|
38
|
+
fontSize: 22
|
|
39
|
+
}
|
|
40
|
+
}), Y = f(J, {
|
|
41
|
+
shouldForwardProp: (o) => A(o) || o === "classes",
|
|
42
|
+
name: "MuiButton",
|
|
43
|
+
slot: "Root",
|
|
44
|
+
overridesResolver: (o, a) => {
|
|
45
|
+
const {
|
|
46
|
+
ownerState: i
|
|
47
|
+
} = o;
|
|
48
|
+
return [a.root, a[i.variant], a[`${i.variant}${r(i.color)}`], a[`size${r(i.size)}`], a[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
|
|
49
|
+
}
|
|
50
|
+
})(({
|
|
51
|
+
theme: o,
|
|
52
|
+
ownerState: a
|
|
53
|
+
}) => {
|
|
54
|
+
var i, l;
|
|
55
|
+
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
56
|
+
return t({}, o.typography.button, {
|
|
57
|
+
minWidth: 64,
|
|
58
|
+
padding: "6px 16px",
|
|
59
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
60
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
61
|
+
duration: o.transitions.duration.short
|
|
62
|
+
}),
|
|
63
|
+
"&:hover": t({
|
|
64
|
+
textDecoration: "none",
|
|
65
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
66
|
+
// Reset on touch devices, it doesn't add specificity
|
|
67
|
+
"@media (hover: none)": {
|
|
68
|
+
backgroundColor: "transparent"
|
|
69
|
+
}
|
|
70
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
71
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
72
|
+
// Reset on touch devices, it doesn't add specificity
|
|
73
|
+
"@media (hover: none)": {
|
|
74
|
+
backgroundColor: "transparent"
|
|
75
|
+
}
|
|
76
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
77
|
+
border: `1px solid ${(o.vars || o).palette[a.color].main}`,
|
|
78
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
79
|
+
// Reset on touch devices, it doesn't add specificity
|
|
80
|
+
"@media (hover: none)": {
|
|
81
|
+
backgroundColor: "transparent"
|
|
82
|
+
}
|
|
83
|
+
}, a.variant === "contained" && {
|
|
84
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
85
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
86
|
+
// Reset on touch devices, it doesn't add specificity
|
|
87
|
+
"@media (hover: none)": {
|
|
88
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
89
|
+
backgroundColor: (o.vars || o).palette.grey[300]
|
|
90
|
+
}
|
|
91
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
92
|
+
backgroundColor: (o.vars || o).palette[a.color].dark,
|
|
93
|
+
// Reset on touch devices, it doesn't add specificity
|
|
94
|
+
"@media (hover: none)": {
|
|
95
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
98
|
+
"&:active": t({}, a.variant === "contained" && {
|
|
99
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
100
|
+
}),
|
|
101
|
+
[`&.${b.focusVisible}`]: t({}, a.variant === "contained" && {
|
|
102
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
103
|
+
}),
|
|
104
|
+
[`&.${b.disabled}`]: t({
|
|
105
|
+
color: (o.vars || o).palette.action.disabled
|
|
106
|
+
}, a.variant === "outlined" && {
|
|
107
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
108
|
+
}, a.variant === "contained" && {
|
|
109
|
+
color: (o.vars || o).palette.action.disabled,
|
|
110
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
111
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
112
|
+
})
|
|
113
|
+
}, a.variant === "text" && {
|
|
114
|
+
padding: "6px 8px"
|
|
115
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
116
|
+
color: (o.vars || o).palette[a.color].main
|
|
117
|
+
}, a.variant === "outlined" && {
|
|
118
|
+
padding: "5px 15px",
|
|
119
|
+
border: "1px solid currentColor"
|
|
120
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
121
|
+
color: (o.vars || o).palette[a.color].main,
|
|
122
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
|
|
123
|
+
}, a.variant === "contained" && {
|
|
124
|
+
color: o.vars ? (
|
|
125
|
+
// this is safe because grey does not change between default light/dark mode
|
|
126
|
+
o.vars.palette.text.primary
|
|
127
|
+
) : (i = (l = o.palette).getContrastText) == null ? void 0 : i.call(l, o.palette.grey[300]),
|
|
128
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
129
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
130
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
131
|
+
color: (o.vars || o).palette[a.color].contrastText,
|
|
132
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
133
|
+
}, a.color === "inherit" && {
|
|
134
|
+
color: "inherit",
|
|
135
|
+
borderColor: "currentColor"
|
|
136
|
+
}, a.size === "small" && a.variant === "text" && {
|
|
137
|
+
padding: "4px 5px",
|
|
138
|
+
fontSize: o.typography.pxToRem(13)
|
|
139
|
+
}, a.size === "large" && a.variant === "text" && {
|
|
140
|
+
padding: "8px 11px",
|
|
141
|
+
fontSize: o.typography.pxToRem(15)
|
|
142
|
+
}, a.size === "small" && a.variant === "outlined" && {
|
|
143
|
+
padding: "3px 9px",
|
|
144
|
+
fontSize: o.typography.pxToRem(13)
|
|
145
|
+
}, a.size === "large" && a.variant === "outlined" && {
|
|
146
|
+
padding: "7px 21px",
|
|
147
|
+
fontSize: o.typography.pxToRem(15)
|
|
148
|
+
}, a.size === "small" && a.variant === "contained" && {
|
|
149
|
+
padding: "4px 10px",
|
|
150
|
+
fontSize: o.typography.pxToRem(13)
|
|
151
|
+
}, a.size === "large" && a.variant === "contained" && {
|
|
152
|
+
padding: "8px 22px",
|
|
153
|
+
fontSize: o.typography.pxToRem(15)
|
|
154
|
+
}, a.fullWidth && {
|
|
155
|
+
width: "100%"
|
|
156
|
+
});
|
|
157
|
+
}, ({
|
|
158
|
+
ownerState: o
|
|
159
|
+
}) => o.disableElevation && {
|
|
160
|
+
boxShadow: "none",
|
|
161
|
+
"&:hover": {
|
|
162
|
+
boxShadow: "none"
|
|
163
|
+
},
|
|
164
|
+
[`&.${b.focusVisible}`]: {
|
|
165
|
+
boxShadow: "none"
|
|
166
|
+
},
|
|
167
|
+
"&:active": {
|
|
168
|
+
boxShadow: "none"
|
|
169
|
+
},
|
|
170
|
+
[`&.${b.disabled}`]: {
|
|
171
|
+
boxShadow: "none"
|
|
172
|
+
}
|
|
173
|
+
}), Z = f("span", {
|
|
174
|
+
name: "MuiButton",
|
|
175
|
+
slot: "StartIcon",
|
|
176
|
+
overridesResolver: (o, a) => {
|
|
177
|
+
const {
|
|
178
|
+
ownerState: i
|
|
179
|
+
} = o;
|
|
180
|
+
return [a.startIcon, a[`iconSize${r(i.size)}`]];
|
|
181
|
+
}
|
|
182
|
+
})(({
|
|
183
|
+
ownerState: o
|
|
184
|
+
}) => t({
|
|
185
|
+
display: "inherit",
|
|
186
|
+
marginRight: 8,
|
|
187
|
+
marginLeft: -4
|
|
188
|
+
}, o.size === "small" && {
|
|
189
|
+
marginLeft: -2
|
|
190
|
+
}, N(o))), w = f("span", {
|
|
191
|
+
name: "MuiButton",
|
|
192
|
+
slot: "EndIcon",
|
|
193
|
+
overridesResolver: (o, a) => {
|
|
194
|
+
const {
|
|
195
|
+
ownerState: i
|
|
196
|
+
} = o;
|
|
197
|
+
return [a.endIcon, a[`iconSize${r(i.size)}`]];
|
|
198
|
+
}
|
|
199
|
+
})(({
|
|
200
|
+
ownerState: o
|
|
201
|
+
}) => t({
|
|
202
|
+
display: "inherit",
|
|
203
|
+
marginRight: -4,
|
|
204
|
+
marginLeft: 8
|
|
205
|
+
}, o.size === "small" && {
|
|
206
|
+
marginRight: -2
|
|
207
|
+
}, N(o))), oo = /* @__PURE__ */ p.forwardRef(function(a, i) {
|
|
208
|
+
const l = p.useContext(h), s = p.useContext(E), e = G(l, a), c = U({
|
|
209
|
+
props: e,
|
|
210
|
+
name: "MuiButton"
|
|
211
|
+
}), {
|
|
212
|
+
children: g,
|
|
213
|
+
color: x = "primary",
|
|
214
|
+
component: y = "button",
|
|
215
|
+
className: O,
|
|
216
|
+
disabled: z = !1,
|
|
217
|
+
disableElevation: k = !1,
|
|
218
|
+
disableFocusRipple: C = !1,
|
|
219
|
+
endIcon: I,
|
|
220
|
+
focusVisibleClassName: T,
|
|
221
|
+
fullWidth: P = !1,
|
|
222
|
+
size: W = "medium",
|
|
223
|
+
startIcon: $,
|
|
224
|
+
type: B,
|
|
225
|
+
variant: S = "text"
|
|
226
|
+
} = c, M = j(c, Q), u = t({}, c, {
|
|
227
|
+
color: x,
|
|
228
|
+
component: y,
|
|
229
|
+
disabled: z,
|
|
230
|
+
disableElevation: k,
|
|
231
|
+
disableFocusRipple: C,
|
|
232
|
+
fullWidth: P,
|
|
233
|
+
size: W,
|
|
234
|
+
type: B,
|
|
235
|
+
variant: S
|
|
236
|
+
}), d = X(u), V = $ && /* @__PURE__ */ R(Z, {
|
|
237
|
+
className: d.startIcon,
|
|
238
|
+
ownerState: u,
|
|
239
|
+
children: $
|
|
240
|
+
}), _ = I && /* @__PURE__ */ R(w, {
|
|
241
|
+
className: d.endIcon,
|
|
242
|
+
ownerState: u,
|
|
243
|
+
children: I
|
|
244
|
+
}), L = s || "";
|
|
245
|
+
return /* @__PURE__ */ q(Y, t({
|
|
246
|
+
ownerState: u,
|
|
247
|
+
className: m(l.className, d.root, O, L),
|
|
248
|
+
component: y,
|
|
249
|
+
disabled: z,
|
|
250
|
+
focusRipple: !C,
|
|
251
|
+
focusVisibleClassName: m(d.focusVisible, T),
|
|
252
|
+
ref: i,
|
|
253
|
+
type: B
|
|
254
|
+
}, M, {
|
|
255
|
+
classes: d,
|
|
256
|
+
children: [V, g, _]
|
|
257
|
+
}));
|
|
258
|
+
});
|
|
259
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
260
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
261
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
262
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
263
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
264
|
+
/**
|
|
265
|
+
* The content of the component.
|
|
266
|
+
*/
|
|
267
|
+
children: n.node,
|
|
268
|
+
/**
|
|
269
|
+
* Override or extend the styles applied to the component.
|
|
270
|
+
*/
|
|
271
|
+
classes: n.object,
|
|
272
|
+
/**
|
|
273
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
className: n.string,
|
|
276
|
+
/**
|
|
277
|
+
* The color of the component.
|
|
278
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
279
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
280
|
+
* @default 'primary'
|
|
281
|
+
*/
|
|
282
|
+
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
|
|
283
|
+
/**
|
|
284
|
+
* The component used for the root node.
|
|
285
|
+
* Either a string to use a HTML element or a component.
|
|
286
|
+
*/
|
|
287
|
+
component: n.elementType,
|
|
288
|
+
/**
|
|
289
|
+
* If `true`, the component is disabled.
|
|
290
|
+
* @default false
|
|
291
|
+
*/
|
|
292
|
+
disabled: n.bool,
|
|
293
|
+
/**
|
|
294
|
+
* If `true`, no elevation is used.
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
disableElevation: n.bool,
|
|
298
|
+
/**
|
|
299
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
300
|
+
* @default false
|
|
301
|
+
*/
|
|
302
|
+
disableFocusRipple: n.bool,
|
|
303
|
+
/**
|
|
304
|
+
* If `true`, the ripple effect is disabled.
|
|
305
|
+
*
|
|
306
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
307
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
308
|
+
* @default false
|
|
309
|
+
*/
|
|
310
|
+
disableRipple: n.bool,
|
|
311
|
+
/**
|
|
312
|
+
* Element placed after the children.
|
|
313
|
+
*/
|
|
314
|
+
endIcon: n.node,
|
|
315
|
+
/**
|
|
316
|
+
* @ignore
|
|
317
|
+
*/
|
|
318
|
+
focusVisibleClassName: n.string,
|
|
319
|
+
/**
|
|
320
|
+
* If `true`, the button will take up the full width of its container.
|
|
321
|
+
* @default false
|
|
322
|
+
*/
|
|
323
|
+
fullWidth: n.bool,
|
|
324
|
+
/**
|
|
325
|
+
* The URL to link to when the button is clicked.
|
|
326
|
+
* If defined, an `a` element will be used as the root node.
|
|
327
|
+
*/
|
|
328
|
+
href: n.string,
|
|
329
|
+
/**
|
|
330
|
+
* The size of the component.
|
|
331
|
+
* `small` is equivalent to the dense button styling.
|
|
332
|
+
* @default 'medium'
|
|
333
|
+
*/
|
|
334
|
+
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
335
|
+
/**
|
|
336
|
+
* Element placed before the children.
|
|
337
|
+
*/
|
|
338
|
+
startIcon: n.node,
|
|
339
|
+
/**
|
|
340
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
|
+
*/
|
|
342
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
343
|
+
/**
|
|
344
|
+
* @ignore
|
|
345
|
+
*/
|
|
346
|
+
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
|
|
347
|
+
/**
|
|
348
|
+
* The variant to use.
|
|
349
|
+
* @default 'text'
|
|
350
|
+
*/
|
|
351
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
352
|
+
});
|
|
353
|
+
export {
|
|
354
|
+
oo as B
|
|
355
|
+
};
|