kdpa-components 0.0.24 → 0.0.26

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