kdpa-components 0.0.23 → 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/Accordion/index.js +15 -5
- package/dist/Alert/index.js +16 -4
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/index.d.ts.map +1 -0
- package/dist/Avatar/index.js +7 -0
- package/dist/Badge/index.d.ts +6 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js +23 -0
- package/dist/Button-9cd7e565.js +352 -0
- package/dist/ButtonBase-414cc2b2.js +650 -0
- package/dist/Buttons/index.d.ts +9 -0
- package/dist/Buttons/index.d.ts.map +1 -0
- package/dist/Buttons/index.js +26 -0
- package/dist/CSSTransition-dfd0e7cc.js +214 -0
- package/dist/Cards/index.d.ts +1 -0
- package/dist/Cards/index.d.ts.map +1 -0
- package/dist/Cards/index.js +1 -0
- package/dist/CheckBox/index.d.ts +3 -0
- package/dist/CheckBox/index.d.ts.map +1 -0
- package/dist/CheckBox/index.js +16 -0
- package/dist/Chip/index.d.ts +3 -0
- package/dist/Chip/index.d.ts.map +1 -0
- package/dist/Chip/index.js +18 -0
- package/dist/Close-5f0b166e.js +9 -0
- package/dist/FormControl/index.d.ts +5 -0
- package/dist/FormControl/index.d.ts.map +1 -0
- package/dist/FormControl/index.js +13 -0
- package/dist/FormControl-cdf68d1a.js +232 -0
- package/dist/FullScreenDialog/index.d.ts +3 -0
- package/dist/FullScreenDialog/index.d.ts.map +1 -0
- package/dist/FullScreenDialog/index.js +15 -0
- package/dist/Grow-484bbcfb.js +191 -0
- package/dist/IconButton-d6d6493f.js +181 -0
- package/dist/Input/index.d.ts +7 -0
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/Input/index.js +26 -0
- package/dist/KdpaAccordions-347fa545.js +749 -0
- package/dist/KdpaAlertTitle-fb710458.js +386 -0
- package/dist/KdpaAutoComplete-50d14092.js +1696 -0
- package/dist/KdpaAvatar-078d66bf.js +204 -0
- package/dist/KdpaCheckBox-6d7efedb.js +199 -0
- package/dist/KdpaChip-797ab263.js +90 -0
- package/dist/KdpaDateTimePicker-7a4d0872.js +14070 -0
- package/dist/KdpaFormControl-42381b06.js +6 -0
- package/dist/KdpaFormControlLabel-06ac79bc.js +214 -0
- package/dist/KdpaFullScreenDialog-c6209a93.js +575 -0
- package/dist/KdpaGridBadge-80b24475.js +12456 -0
- package/dist/KdpaInputMultiline-bdf9e305.js +48 -0
- package/dist/KdpaRadioGroup-5d75906c.js +414 -0
- package/dist/KdpaSecondaryButton-018b09d9.js +87 -0
- package/dist/KdpaSwitch-85b49e93.js +309 -0
- package/dist/KdpaTooltip-f56f8e2b.js +743 -0
- package/dist/Loading/index.d.ts +1 -0
- package/dist/Loading/index.d.ts.map +1 -0
- package/dist/Loading/index.js +1 -0
- package/dist/MenuItem-e186ba74.js +670 -0
- package/dist/Modal-8e595479.js +1144 -0
- package/dist/Paper-748eac04.js +160 -0
- package/dist/Pickers/index.d.ts +7 -0
- package/dist/Pickers/index.d.ts.map +1 -0
- package/dist/Pickers/index.js +35 -0
- package/dist/Popper-db30517f.js +1485 -0
- package/dist/Portal-9ddae2d5.js +184 -0
- package/dist/Radio/index.d.ts +5 -0
- package/dist/Radio/index.d.ts.map +1 -0
- package/dist/Radio/index.js +20 -0
- package/dist/Selects/index.d.ts +7 -0
- package/dist/Selects/index.d.ts.map +1 -0
- package/dist/Selects/index.js +35 -0
- package/dist/Switch/index.d.ts +3 -0
- package/dist/Switch/index.d.ts.map +1 -0
- package/dist/Switch/index.js +15 -0
- package/dist/SwitchBase-0a5d07d7.js +228 -0
- package/dist/TextField-e7c2031c.js +4451 -0
- package/dist/Tooltips/index.d.ts +3 -0
- package/dist/Tooltips/index.d.ts.map +1 -0
- package/dist/Tooltips/index.js +17 -0
- package/dist/TransitionGroup-33cdd064.js +188 -0
- package/dist/TransitionGroupContext-d020ca94.js +46 -0
- package/dist/Typography-ba513bd4.js +198 -0
- package/dist/createChainedFunction-68e2a88d.js +9 -0
- package/dist/createSvgIcon-130d6225.js +179 -0
- package/dist/emotion-react.browser.esm-f332ef78.js +444 -0
- package/dist/formControlState-9148c46f.js +10 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +77 -8
- package/dist/refType-02e1eb86.js +5 -0
- package/dist/style.css +1 -0
- package/dist/useControlled-cc2d41cb.js +31 -0
- package/dist/useFormControl-af690c26.js +11 -0
- package/dist/useId-a21bd5c3.js +19 -0
- package/dist/useIsFocusVisible-4693b580.js +68 -0
- package/dist/usePreviousProps-c1ae4548.js +10 -0
- package/dist/useTheme-05ca93ad.js +9 -0
- package/dist/useThemeProps-db06356d.js +4495 -0
- package/dist/utils-44a282dd.js +369 -0
- package/package.json +60 -55
- package/dist/ButtonBase-5ef58bca.js +0 -5931
- package/dist/KdpaAccordions-0a0aa0f8.js +0 -1127
- package/dist/KdpaAlertTitle-7f368371.js +0 -923
package/dist/Accordion/index.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
1
|
+
import { K as f, a as l, b as u } from "../KdpaAccordions-347fa545.js";
|
|
2
|
+
import "../useThemeProps-db06356d.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../Paper-748eac04.js";
|
|
5
|
+
import "../useTheme-05ca93ad.js";
|
|
6
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
7
|
+
import "../useControlled-cc2d41cb.js";
|
|
8
|
+
import "../utils-44a282dd.js";
|
|
4
9
|
import "react-dom";
|
|
10
|
+
import "../emotion-react.browser.esm-f332ef78.js";
|
|
11
|
+
import "../ButtonBase-414cc2b2.js";
|
|
12
|
+
import "../TransitionGroup-33cdd064.js";
|
|
13
|
+
import "../refType-02e1eb86.js";
|
|
14
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
5
15
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
16
|
+
f as KdpaAccordion,
|
|
17
|
+
l as KdpaAccordionDetails,
|
|
18
|
+
u as KdpaAccordionSummary
|
|
9
19
|
};
|
package/dist/Alert/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
1
|
+
import { K as b, a as c } from "../KdpaAlertTitle-fb710458.js";
|
|
2
|
+
import "../useThemeProps-db06356d.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import "../createSvgIcon-130d6225.js";
|
|
5
|
+
import "../Close-5f0b166e.js";
|
|
6
|
+
import "../Paper-748eac04.js";
|
|
7
|
+
import "../useTheme-05ca93ad.js";
|
|
8
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
9
|
+
import "../IconButton-d6d6493f.js";
|
|
10
|
+
import "../ButtonBase-414cc2b2.js";
|
|
11
|
+
import "../emotion-react.browser.esm-f332ef78.js";
|
|
12
|
+
import "../TransitionGroup-33cdd064.js";
|
|
13
|
+
import "../refType-02e1eb86.js";
|
|
14
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
15
|
+
import "../Typography-ba513bd4.js";
|
|
4
16
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
17
|
+
b as KdpaAlert,
|
|
18
|
+
c as KdpaAlertTitle
|
|
7
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as KdpaBadge } from "./KdpaBadge/KdpaBadge";
|
|
2
|
+
export { default as KdpaMuiBadge } from "./KdpaMuiBadge/KdpaMuiBadge";
|
|
3
|
+
export { default as KdpaGridBadge } from "./KdpaGridBadge/KdpaGridBadge";
|
|
4
|
+
export type { KdpaMuiBadgeBadge } from "./KdpaMuiBadge/KdpaMuiBadge";
|
|
5
|
+
export type { KdpaGridBadgeProps } from "./KdpaGridBadge/KdpaGridBadge";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGzE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { K as c, b as h, a as j } from "../KdpaGridBadge-80b24475.js";
|
|
2
|
+
import "../useThemeProps-db06356d.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "../Popper-db30517f.js";
|
|
6
|
+
import "../Portal-9ddae2d5.js";
|
|
7
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
8
|
+
import "../refType-02e1eb86.js";
|
|
9
|
+
import "../CSSTransition-dfd0e7cc.js";
|
|
10
|
+
import "../utils-44a282dd.js";
|
|
11
|
+
import "../TransitionGroup-33cdd064.js";
|
|
12
|
+
import "../usePreviousProps-c1ae4548.js";
|
|
13
|
+
import "../KdpaTooltip-f56f8e2b.js";
|
|
14
|
+
import "../useTheme-05ca93ad.js";
|
|
15
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
16
|
+
import "../Grow-484bbcfb.js";
|
|
17
|
+
import "../useControlled-cc2d41cb.js";
|
|
18
|
+
import "../useId-a21bd5c3.js";
|
|
19
|
+
export {
|
|
20
|
+
c as KdpaBadge,
|
|
21
|
+
h as KdpaGridBadge,
|
|
22
|
+
j as KdpaMuiBadge
|
|
23
|
+
};
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { a as j, g as L, s as y, m as _, f as t, _ as r, n as v, v as F, u as U, b as D, j as x, c as R, P as n, e as G } from "./useThemeProps-db06356d.js";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { B as H } from "./ButtonBase-414cc2b2.js";
|
|
4
|
+
function A(o) {
|
|
5
|
+
return L("MuiButton", o);
|
|
6
|
+
}
|
|
7
|
+
const q = j("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", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), b = q, h = /* @__PURE__ */ f.createContext({});
|
|
8
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
9
|
+
const J = h, K = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Q = (o) => {
|
|
10
|
+
const {
|
|
11
|
+
color: a,
|
|
12
|
+
disableElevation: i,
|
|
13
|
+
fullWidth: e,
|
|
14
|
+
size: l,
|
|
15
|
+
variant: s,
|
|
16
|
+
classes: d
|
|
17
|
+
} = o, g = {
|
|
18
|
+
root: ["root", s, `${s}${t(a)}`, `size${t(l)}`, `${s}Size${t(l)}`, a === "inherit" && "colorInherit", i && "disableElevation", e && "fullWidth"],
|
|
19
|
+
label: ["label"],
|
|
20
|
+
startIcon: ["startIcon", `iconSize${t(l)}`],
|
|
21
|
+
endIcon: ["endIcon", `iconSize${t(l)}`]
|
|
22
|
+
}, p = G(g, A, d);
|
|
23
|
+
return r({}, d, p);
|
|
24
|
+
}, m = (o) => r({}, o.size === "small" && {
|
|
25
|
+
"& > *:nth-of-type(1)": {
|
|
26
|
+
fontSize: 18
|
|
27
|
+
}
|
|
28
|
+
}, o.size === "medium" && {
|
|
29
|
+
"& > *:nth-of-type(1)": {
|
|
30
|
+
fontSize: 20
|
|
31
|
+
}
|
|
32
|
+
}, o.size === "large" && {
|
|
33
|
+
"& > *:nth-of-type(1)": {
|
|
34
|
+
fontSize: 22
|
|
35
|
+
}
|
|
36
|
+
}), X = y(H, {
|
|
37
|
+
shouldForwardProp: (o) => _(o) || o === "classes",
|
|
38
|
+
name: "MuiButton",
|
|
39
|
+
slot: "Root",
|
|
40
|
+
overridesResolver: (o, a) => {
|
|
41
|
+
const {
|
|
42
|
+
ownerState: i
|
|
43
|
+
} = o;
|
|
44
|
+
return [a.root, a[i.variant], a[`${i.variant}${t(i.color)}`], a[`size${t(i.size)}`], a[`${i.variant}Size${t(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
|
|
45
|
+
}
|
|
46
|
+
})(({
|
|
47
|
+
theme: o,
|
|
48
|
+
ownerState: a
|
|
49
|
+
}) => {
|
|
50
|
+
var i, e;
|
|
51
|
+
const l = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], s = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
52
|
+
return r({}, o.typography.button, {
|
|
53
|
+
minWidth: 64,
|
|
54
|
+
padding: "6px 16px",
|
|
55
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
56
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
57
|
+
duration: o.transitions.duration.short
|
|
58
|
+
}),
|
|
59
|
+
"&:hover": r({
|
|
60
|
+
textDecoration: "none",
|
|
61
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
62
|
+
// Reset on touch devices, it doesn't add specificity
|
|
63
|
+
"@media (hover: none)": {
|
|
64
|
+
backgroundColor: "transparent"
|
|
65
|
+
}
|
|
66
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
67
|
+
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),
|
|
68
|
+
// Reset on touch devices, it doesn't add specificity
|
|
69
|
+
"@media (hover: none)": {
|
|
70
|
+
backgroundColor: "transparent"
|
|
71
|
+
}
|
|
72
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
73
|
+
border: `1px solid ${(o.vars || o).palette[a.color].main}`,
|
|
74
|
+
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),
|
|
75
|
+
// Reset on touch devices, it doesn't add specificity
|
|
76
|
+
"@media (hover: none)": {
|
|
77
|
+
backgroundColor: "transparent"
|
|
78
|
+
}
|
|
79
|
+
}, a.variant === "contained" && {
|
|
80
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : s,
|
|
81
|
+
boxShadow: (o.vars || o).shadows[4],
|
|
82
|
+
// Reset on touch devices, it doesn't add specificity
|
|
83
|
+
"@media (hover: none)": {
|
|
84
|
+
boxShadow: (o.vars || o).shadows[2],
|
|
85
|
+
backgroundColor: (o.vars || o).palette.grey[300]
|
|
86
|
+
}
|
|
87
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
88
|
+
backgroundColor: (o.vars || o).palette[a.color].dark,
|
|
89
|
+
// Reset on touch devices, it doesn't add specificity
|
|
90
|
+
"@media (hover: none)": {
|
|
91
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
94
|
+
"&:active": r({}, a.variant === "contained" && {
|
|
95
|
+
boxShadow: (o.vars || o).shadows[8]
|
|
96
|
+
}),
|
|
97
|
+
[`&.${b.focusVisible}`]: r({}, a.variant === "contained" && {
|
|
98
|
+
boxShadow: (o.vars || o).shadows[6]
|
|
99
|
+
}),
|
|
100
|
+
[`&.${b.disabled}`]: r({
|
|
101
|
+
color: (o.vars || o).palette.action.disabled
|
|
102
|
+
}, a.variant === "outlined" && {
|
|
103
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
104
|
+
}, a.variant === "contained" && {
|
|
105
|
+
color: (o.vars || o).palette.action.disabled,
|
|
106
|
+
boxShadow: (o.vars || o).shadows[0],
|
|
107
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
108
|
+
})
|
|
109
|
+
}, a.variant === "text" && {
|
|
110
|
+
padding: "6px 8px"
|
|
111
|
+
}, a.variant === "text" && a.color !== "inherit" && {
|
|
112
|
+
color: (o.vars || o).palette[a.color].main
|
|
113
|
+
}, a.variant === "outlined" && {
|
|
114
|
+
padding: "5px 15px",
|
|
115
|
+
border: "1px solid currentColor"
|
|
116
|
+
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
117
|
+
color: (o.vars || o).palette[a.color].main,
|
|
118
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
|
|
119
|
+
}, a.variant === "contained" && {
|
|
120
|
+
color: o.vars ? (
|
|
121
|
+
// this is safe because grey does not change between default light/dark mode
|
|
122
|
+
o.vars.palette.text.primary
|
|
123
|
+
) : (i = (e = o.palette).getContrastText) == null ? void 0 : i.call(e, o.palette.grey[300]),
|
|
124
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : l,
|
|
125
|
+
boxShadow: (o.vars || o).shadows[2]
|
|
126
|
+
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
127
|
+
color: (o.vars || o).palette[a.color].contrastText,
|
|
128
|
+
backgroundColor: (o.vars || o).palette[a.color].main
|
|
129
|
+
}, a.color === "inherit" && {
|
|
130
|
+
color: "inherit",
|
|
131
|
+
borderColor: "currentColor"
|
|
132
|
+
}, a.size === "small" && a.variant === "text" && {
|
|
133
|
+
padding: "4px 5px",
|
|
134
|
+
fontSize: o.typography.pxToRem(13)
|
|
135
|
+
}, a.size === "large" && a.variant === "text" && {
|
|
136
|
+
padding: "8px 11px",
|
|
137
|
+
fontSize: o.typography.pxToRem(15)
|
|
138
|
+
}, a.size === "small" && a.variant === "outlined" && {
|
|
139
|
+
padding: "3px 9px",
|
|
140
|
+
fontSize: o.typography.pxToRem(13)
|
|
141
|
+
}, a.size === "large" && a.variant === "outlined" && {
|
|
142
|
+
padding: "7px 21px",
|
|
143
|
+
fontSize: o.typography.pxToRem(15)
|
|
144
|
+
}, a.size === "small" && a.variant === "contained" && {
|
|
145
|
+
padding: "4px 10px",
|
|
146
|
+
fontSize: o.typography.pxToRem(13)
|
|
147
|
+
}, a.size === "large" && a.variant === "contained" && {
|
|
148
|
+
padding: "8px 22px",
|
|
149
|
+
fontSize: o.typography.pxToRem(15)
|
|
150
|
+
}, a.fullWidth && {
|
|
151
|
+
width: "100%"
|
|
152
|
+
});
|
|
153
|
+
}, ({
|
|
154
|
+
ownerState: o
|
|
155
|
+
}) => o.disableElevation && {
|
|
156
|
+
boxShadow: "none",
|
|
157
|
+
"&:hover": {
|
|
158
|
+
boxShadow: "none"
|
|
159
|
+
},
|
|
160
|
+
[`&.${b.focusVisible}`]: {
|
|
161
|
+
boxShadow: "none"
|
|
162
|
+
},
|
|
163
|
+
"&:active": {
|
|
164
|
+
boxShadow: "none"
|
|
165
|
+
},
|
|
166
|
+
[`&.${b.disabled}`]: {
|
|
167
|
+
boxShadow: "none"
|
|
168
|
+
}
|
|
169
|
+
}), Y = y("span", {
|
|
170
|
+
name: "MuiButton",
|
|
171
|
+
slot: "StartIcon",
|
|
172
|
+
overridesResolver: (o, a) => {
|
|
173
|
+
const {
|
|
174
|
+
ownerState: i
|
|
175
|
+
} = o;
|
|
176
|
+
return [a.startIcon, a[`iconSize${t(i.size)}`]];
|
|
177
|
+
}
|
|
178
|
+
})(({
|
|
179
|
+
ownerState: o
|
|
180
|
+
}) => r({
|
|
181
|
+
display: "inherit",
|
|
182
|
+
marginRight: 8,
|
|
183
|
+
marginLeft: -4
|
|
184
|
+
}, o.size === "small" && {
|
|
185
|
+
marginLeft: -2
|
|
186
|
+
}, m(o))), Z = y("span", {
|
|
187
|
+
name: "MuiButton",
|
|
188
|
+
slot: "EndIcon",
|
|
189
|
+
overridesResolver: (o, a) => {
|
|
190
|
+
const {
|
|
191
|
+
ownerState: i
|
|
192
|
+
} = o;
|
|
193
|
+
return [a.endIcon, a[`iconSize${t(i.size)}`]];
|
|
194
|
+
}
|
|
195
|
+
})(({
|
|
196
|
+
ownerState: o
|
|
197
|
+
}) => r({
|
|
198
|
+
display: "inherit",
|
|
199
|
+
marginRight: -4,
|
|
200
|
+
marginLeft: 8
|
|
201
|
+
}, o.size === "small" && {
|
|
202
|
+
marginRight: -2
|
|
203
|
+
}, m(o))), k = /* @__PURE__ */ f.forwardRef(function(a, i) {
|
|
204
|
+
const e = f.useContext(J), l = F(e, a), s = U({
|
|
205
|
+
props: l,
|
|
206
|
+
name: "MuiButton"
|
|
207
|
+
}), {
|
|
208
|
+
children: d,
|
|
209
|
+
color: g = "primary",
|
|
210
|
+
component: p = "button",
|
|
211
|
+
className: E,
|
|
212
|
+
disabled: z = !1,
|
|
213
|
+
disableElevation: O = !1,
|
|
214
|
+
disableFocusRipple: C = !1,
|
|
215
|
+
endIcon: I,
|
|
216
|
+
focusVisibleClassName: T,
|
|
217
|
+
fullWidth: N = !1,
|
|
218
|
+
size: P = "medium",
|
|
219
|
+
startIcon: $,
|
|
220
|
+
type: B,
|
|
221
|
+
variant: W = "text"
|
|
222
|
+
} = s, M = D(s, K), u = r({}, s, {
|
|
223
|
+
color: g,
|
|
224
|
+
component: p,
|
|
225
|
+
disabled: z,
|
|
226
|
+
disableElevation: O,
|
|
227
|
+
disableFocusRipple: C,
|
|
228
|
+
fullWidth: N,
|
|
229
|
+
size: P,
|
|
230
|
+
type: B,
|
|
231
|
+
variant: W
|
|
232
|
+
}), c = Q(u), S = $ && /* @__PURE__ */ x.jsx(Y, {
|
|
233
|
+
className: c.startIcon,
|
|
234
|
+
ownerState: u,
|
|
235
|
+
children: $
|
|
236
|
+
}), V = I && /* @__PURE__ */ x.jsx(Z, {
|
|
237
|
+
className: c.endIcon,
|
|
238
|
+
ownerState: u,
|
|
239
|
+
children: I
|
|
240
|
+
});
|
|
241
|
+
return /* @__PURE__ */ x.jsxs(X, r({
|
|
242
|
+
ownerState: u,
|
|
243
|
+
className: R(e.className, c.root, E),
|
|
244
|
+
component: p,
|
|
245
|
+
disabled: z,
|
|
246
|
+
focusRipple: !C,
|
|
247
|
+
focusVisibleClassName: R(c.focusVisible, T),
|
|
248
|
+
ref: i,
|
|
249
|
+
type: B
|
|
250
|
+
}, M, {
|
|
251
|
+
classes: c,
|
|
252
|
+
children: [S, d, V]
|
|
253
|
+
}));
|
|
254
|
+
});
|
|
255
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
256
|
+
// ----------------------------- Warning --------------------------------
|
|
257
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
258
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
259
|
+
// ----------------------------------------------------------------------
|
|
260
|
+
/**
|
|
261
|
+
* The content of the component.
|
|
262
|
+
*/
|
|
263
|
+
children: n.node,
|
|
264
|
+
/**
|
|
265
|
+
* Override or extend the styles applied to the component.
|
|
266
|
+
*/
|
|
267
|
+
classes: n.object,
|
|
268
|
+
/**
|
|
269
|
+
* @ignore
|
|
270
|
+
*/
|
|
271
|
+
className: n.string,
|
|
272
|
+
/**
|
|
273
|
+
* The color of the component.
|
|
274
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
275
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
276
|
+
* @default 'primary'
|
|
277
|
+
*/
|
|
278
|
+
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
|
|
279
|
+
/**
|
|
280
|
+
* The component used for the root node.
|
|
281
|
+
* Either a string to use a HTML element or a component.
|
|
282
|
+
*/
|
|
283
|
+
component: n.elementType,
|
|
284
|
+
/**
|
|
285
|
+
* If `true`, the component is disabled.
|
|
286
|
+
* @default false
|
|
287
|
+
*/
|
|
288
|
+
disabled: n.bool,
|
|
289
|
+
/**
|
|
290
|
+
* If `true`, no elevation is used.
|
|
291
|
+
* @default false
|
|
292
|
+
*/
|
|
293
|
+
disableElevation: n.bool,
|
|
294
|
+
/**
|
|
295
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
296
|
+
* @default false
|
|
297
|
+
*/
|
|
298
|
+
disableFocusRipple: n.bool,
|
|
299
|
+
/**
|
|
300
|
+
* If `true`, the ripple effect is disabled.
|
|
301
|
+
*
|
|
302
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
303
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
306
|
+
disableRipple: n.bool,
|
|
307
|
+
/**
|
|
308
|
+
* Element placed after the children.
|
|
309
|
+
*/
|
|
310
|
+
endIcon: n.node,
|
|
311
|
+
/**
|
|
312
|
+
* @ignore
|
|
313
|
+
*/
|
|
314
|
+
focusVisibleClassName: n.string,
|
|
315
|
+
/**
|
|
316
|
+
* If `true`, the button will take up the full width of its container.
|
|
317
|
+
* @default false
|
|
318
|
+
*/
|
|
319
|
+
fullWidth: n.bool,
|
|
320
|
+
/**
|
|
321
|
+
* The URL to link to when the button is clicked.
|
|
322
|
+
* If defined, an `a` element will be used as the root node.
|
|
323
|
+
*/
|
|
324
|
+
href: n.string,
|
|
325
|
+
/**
|
|
326
|
+
* The size of the component.
|
|
327
|
+
* `small` is equivalent to the dense button styling.
|
|
328
|
+
* @default 'medium'
|
|
329
|
+
*/
|
|
330
|
+
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
331
|
+
/**
|
|
332
|
+
* Element placed before the children.
|
|
333
|
+
*/
|
|
334
|
+
startIcon: n.node,
|
|
335
|
+
/**
|
|
336
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
337
|
+
*/
|
|
338
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
339
|
+
/**
|
|
340
|
+
* @ignore
|
|
341
|
+
*/
|
|
342
|
+
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
|
|
343
|
+
/**
|
|
344
|
+
* The variant to use.
|
|
345
|
+
* @default 'text'
|
|
346
|
+
*/
|
|
347
|
+
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
348
|
+
});
|
|
349
|
+
const ao = k;
|
|
350
|
+
export {
|
|
351
|
+
ao as B
|
|
352
|
+
};
|