kdpa-components 0.0.30 → 0.0.32
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 +18 -15
- package/dist/Alert/index.js +18 -16
- package/dist/Avatar/index.js +6 -4
- package/dist/Badge/index.js +23 -19
- package/dist/{Button-5d26a550.js → Button-45285593.js} +18 -16
- package/dist/{ButtonBase-512f769d.js → ButtonBase-5e07ac58.js} +36 -34
- package/dist/Buttons/index.js +26 -22
- package/dist/{CSSTransition-65357b52.js → CSSTransition-f423fa4d.js} +8 -7
- package/dist/CheckBox/index.js +15 -13
- package/dist/Chip/index.js +18 -14
- package/dist/Close-bec92d07.js +9 -0
- package/dist/FormControl/index.js +11 -9
- package/dist/{FormControl-a3470290.js → FormControl-d29c9b3d.js} +30 -28
- package/dist/FullScreenDialog/index.js +14 -10
- package/dist/{Grow-ab2030d5.js → Grow-edad9188.js} +14 -13
- package/dist/{IconButton-6412e34f.js → IconButton-40ad64d9.js} +33 -31
- package/dist/Input/index.js +24 -20
- package/dist/{KdpaAccordions-84ca8f24.js → KdpaAccordions-cd9eb4e6.js} +45 -43
- package/dist/{KdpaAlertTitle-59557ad3.js → KdpaAlertTitle-07ab0cd2.js} +68 -65
- package/dist/{KdpaAutoComplete-b625f861.js → KdpaAutoComplete-7239b68b.js} +26 -24
- package/dist/{KdpaAvatar-ce589902.js → KdpaAvatar-b6ae944e.js} +27 -25
- package/dist/{KdpaCheckBox-4e61152c.js → KdpaCheckBox-bc1925f5.js} +52 -49
- package/dist/{KdpaChip-68f37662.js → KdpaChip-619e6905.js} +11 -10
- package/dist/{KdpaDateTimePicker-14aea376.js → KdpaDateTimePicker-18979364.js} +1760 -1757
- package/dist/KdpaFormControl-3d469f40.js +6 -0
- package/dist/{KdpaFormControlLabel-576767c0.js → KdpaFormControlLabel-a0515ddd.js} +27 -25
- package/dist/{KdpaFullScreenDialog-a663a45e.js → KdpaFullScreenDialog-f744f849.js} +37 -34
- package/dist/{KdpaGridBadge-42d2a099.js → KdpaGridBadge-fdcdbc1b.js} +385 -380
- package/dist/{KdpaInputMultiline-44f99ebf.js → KdpaInputMultiline-1469871c.js} +13 -12
- package/dist/{KdpaRadioGroup-0466477f.js → KdpaRadioGroup-93c640c3.js} +68 -65
- package/dist/{KdpaSecondaryButton-14ce5dd1.js → KdpaSecondaryButton-77e7b148.js} +4 -4
- package/dist/{KdpaSwitch-f7a9758f.js → KdpaSwitch-5dfed775.js} +28 -25
- package/dist/KdpaThemeProvider-0db5fe61.js +139 -0
- package/dist/{KdpaTooltip-67d85499.js → KdpaTooltip-43846183.js} +16 -14
- package/dist/{MenuItem-0b81f728.js → MenuItem-87d5f6f1.js} +15 -13
- package/dist/{Modal-52fff956.js → Modal-effeb2be.js} +200 -197
- package/dist/{Paper-4c3ea42f.js → Paper-b1b17523.js} +18 -16
- package/dist/Pickers/index.js +33 -29
- package/dist/{Popper-ed1bc55e.js → Popper-400edb78.js} +12 -10
- package/dist/{Portal-fd16debe.js → Portal-05d0e500.js} +48 -54
- package/dist/Radio/index.js +17 -15
- package/dist/Selects/index.js +33 -29
- package/dist/Switch/index.js +14 -12
- package/dist/{SwitchBase-a4e95a75.js → SwitchBase-71e5b972.js} +49 -47
- package/dist/{TextField-f1fc356f.js → TextField-ddf8cf16.js} +147 -145
- package/dist/ThemeProvider/index.d.ts +3 -0
- package/dist/ThemeProvider/index.d.ts.map +1 -0
- package/dist/ThemeProvider/index.js +7 -0
- package/dist/Tooltips/index.js +17 -13
- package/dist/{TransitionGroup-f8c3a757.js → TransitionGroup-83f28ebd.js} +63 -62
- package/dist/{TransitionGroupContext-7cc03461.js → TransitionGroupContext-d020ca94.js} +9 -8
- package/dist/{Typography-05086cfd.js → Typography-1bcbc410.js} +21 -19
- package/dist/{createSvgIcon-ae0baf61.js → createSvgIcon-07d98e51.js} +19 -17
- package/dist/{emotion-react.browser.esm-2b0a1a9d.js → emotion-react.browser.esm-06d75c50.js} +108 -107
- package/dist/exactProp-5a3aef1a.js +13 -0
- package/dist/identifier-b778b9d7.js +3813 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -75
- package/dist/{refType-435beb4d.js → refType-6cfa9488.js} +1 -1
- package/dist/{useControlled-292ed47a.js → useControlled-cc2d41cb.js} +12 -12
- package/dist/{useFormControl-0e2f60d7.js → useFormControl-af690c26.js} +4 -4
- package/dist/useId-a21bd5c3.js +19 -0
- package/dist/{useIsFocusVisible-6afe7f19.js → useIsFocusVisible-4693b580.js} +3 -3
- package/dist/usePreviousProps-c1ae4548.js +10 -0
- package/dist/useTheme-8977adac.js +10 -0
- package/dist/useThemeProps-ac5b48ee.js +691 -0
- package/dist/utils-e326378c.js +369 -0
- package/package.json +1 -1
- package/dist/Close-17a088e9.js +0 -8
- package/dist/KdpaFormControl-6880b616.js +0 -6
- package/dist/useId-81d5a067.js +0 -19
- package/dist/usePreviousProps-fc454f94.js +0 -10
- package/dist/useTheme-d1000722.js +0 -8
- package/dist/useThemeProps-2e06e16c.js +0 -6015
- package/dist/utils-1f8feae0.js +0 -19913
package/dist/Accordion/index.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
1
|
+
import { K as l, a as u, b as x } from "../KdpaAccordions-cd9eb4e6.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
5
|
+
import "../Paper-b1b17523.js";
|
|
6
|
+
import "../useTheme-8977adac.js";
|
|
7
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
8
|
+
import "../useControlled-cc2d41cb.js";
|
|
9
|
+
import "../utils-e326378c.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "../emotion-react.browser.esm-06d75c50.js";
|
|
12
|
+
import "../ButtonBase-5e07ac58.js";
|
|
13
|
+
import "../TransitionGroup-83f28ebd.js";
|
|
14
|
+
import "../refType-6cfa9488.js";
|
|
15
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
13
16
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
l as KdpaAccordion,
|
|
18
|
+
u as KdpaAccordionDetails,
|
|
19
|
+
x as KdpaAccordionSummary
|
|
17
20
|
};
|
package/dist/Alert/index.js
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
1
|
+
import { K as c, a as g } from "../KdpaAlertTitle-07ab0cd2.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
5
|
+
import "../createSvgIcon-07d98e51.js";
|
|
6
|
+
import "../Close-bec92d07.js";
|
|
7
|
+
import "../Paper-b1b17523.js";
|
|
8
|
+
import "../useTheme-8977adac.js";
|
|
9
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
10
|
+
import "../IconButton-40ad64d9.js";
|
|
11
|
+
import "../ButtonBase-5e07ac58.js";
|
|
12
|
+
import "../emotion-react.browser.esm-06d75c50.js";
|
|
13
|
+
import "../TransitionGroup-83f28ebd.js";
|
|
14
|
+
import "../refType-6cfa9488.js";
|
|
15
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
16
|
+
import "../Typography-1bcbc410.js";
|
|
15
17
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
c as KdpaAlert,
|
|
19
|
+
g as KdpaAlertTitle
|
|
18
20
|
};
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
1
|
+
import { K as i } from "../KdpaAvatar-b6ae944e.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
5
|
+
import "../createSvgIcon-07d98e51.js";
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
i as KdpaAvatar
|
|
6
8
|
};
|
package/dist/Badge/index.js
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "../Popper-
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
1
|
+
import { K as j, b as k, a as l } from "../KdpaGridBadge-fdcdbc1b.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import "../Popper-400edb78.js";
|
|
6
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
7
|
+
import "../Portal-05d0e500.js";
|
|
8
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
9
|
+
import "../exactProp-5a3aef1a.js";
|
|
10
|
+
import "../refType-6cfa9488.js";
|
|
11
|
+
import "../CSSTransition-f423fa4d.js";
|
|
12
|
+
import "../utils-e326378c.js";
|
|
13
|
+
import "../TransitionGroup-83f28ebd.js";
|
|
14
|
+
import "../usePreviousProps-c1ae4548.js";
|
|
15
|
+
import "../KdpaTooltip-43846183.js";
|
|
16
|
+
import "../useTheme-8977adac.js";
|
|
17
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
18
|
+
import "../Grow-edad9188.js";
|
|
19
|
+
import "../useControlled-cc2d41cb.js";
|
|
20
|
+
import "../useId-a21bd5c3.js";
|
|
17
21
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
j as KdpaBadge,
|
|
23
|
+
k as KdpaGridBadge,
|
|
24
|
+
l as KdpaMuiBadge
|
|
21
25
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { g as j, c as t, _ as r, h as v, a as L, j as x, P as n } from "./identifier-b778b9d7.js";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { g as _, s as y, b as F, e as U, u as D, c as h, a as G } from "./useThemeProps-ac5b48ee.js";
|
|
4
|
+
import { B as H } from "./ButtonBase-5e07ac58.js";
|
|
3
5
|
function A(o) {
|
|
4
|
-
return
|
|
6
|
+
return j("MuiButton", o);
|
|
5
7
|
}
|
|
6
|
-
const q =
|
|
8
|
+
const q = _("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
9
|
process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
|
|
8
10
|
const J = R, K = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Q = (o) => {
|
|
9
11
|
const {
|
|
@@ -20,7 +22,7 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
20
22
|
endIcon: ["endIcon", `iconSize${t(l)}`]
|
|
21
23
|
}, p = G(g, A, d);
|
|
22
24
|
return r({}, d, p);
|
|
23
|
-
},
|
|
25
|
+
}, m = (o) => r({}, o.size === "small" && {
|
|
24
26
|
"& > *:nth-of-type(1)": {
|
|
25
27
|
fontSize: 18
|
|
26
28
|
}
|
|
@@ -33,7 +35,7 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
33
35
|
fontSize: 22
|
|
34
36
|
}
|
|
35
37
|
}), X = y(H, {
|
|
36
|
-
shouldForwardProp: (o) =>
|
|
38
|
+
shouldForwardProp: (o) => F(o) || o === "classes",
|
|
37
39
|
name: "MuiButton",
|
|
38
40
|
slot: "Root",
|
|
39
41
|
overridesResolver: (o, a) => {
|
|
@@ -182,7 +184,7 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
182
184
|
marginLeft: -4
|
|
183
185
|
}, o.size === "small" && {
|
|
184
186
|
marginLeft: -2
|
|
185
|
-
},
|
|
187
|
+
}, m(o))), Z = y("span", {
|
|
186
188
|
name: "MuiButton",
|
|
187
189
|
slot: "EndIcon",
|
|
188
190
|
overridesResolver: (o, a) => {
|
|
@@ -199,17 +201,17 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
199
201
|
marginLeft: 8
|
|
200
202
|
}, o.size === "small" && {
|
|
201
203
|
marginRight: -2
|
|
202
|
-
},
|
|
203
|
-
const e = f.useContext(J), l =
|
|
204
|
+
}, m(o))), k = /* @__PURE__ */ f.forwardRef(function(a, i) {
|
|
205
|
+
const e = f.useContext(J), l = U(e, a), s = D({
|
|
204
206
|
props: l,
|
|
205
207
|
name: "MuiButton"
|
|
206
208
|
}), {
|
|
207
209
|
children: d,
|
|
208
210
|
color: g = "primary",
|
|
209
211
|
component: p = "button",
|
|
210
|
-
className:
|
|
212
|
+
className: E,
|
|
211
213
|
disabled: z = !1,
|
|
212
|
-
disableElevation:
|
|
214
|
+
disableElevation: O = !1,
|
|
213
215
|
disableFocusRipple: C = !1,
|
|
214
216
|
endIcon: I,
|
|
215
217
|
focusVisibleClassName: T,
|
|
@@ -218,11 +220,11 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
218
220
|
startIcon: $,
|
|
219
221
|
type: B,
|
|
220
222
|
variant: W = "text"
|
|
221
|
-
} = s, M =
|
|
223
|
+
} = s, M = L(s, K), u = r({}, s, {
|
|
222
224
|
color: g,
|
|
223
225
|
component: p,
|
|
224
226
|
disabled: z,
|
|
225
|
-
disableElevation:
|
|
227
|
+
disableElevation: O,
|
|
226
228
|
disableFocusRipple: C,
|
|
227
229
|
fullWidth: N,
|
|
228
230
|
size: P,
|
|
@@ -239,7 +241,7 @@ const J = R, K = ["children", "color", "component", "className", "disabled", "di
|
|
|
239
241
|
});
|
|
240
242
|
return /* @__PURE__ */ x.jsxs(X, r({
|
|
241
243
|
ownerState: u,
|
|
242
|
-
className: h(e.className, c.root,
|
|
244
|
+
className: h(e.className, c.root, E),
|
|
243
245
|
component: p,
|
|
244
246
|
disabled: z,
|
|
245
247
|
focusRipple: !C,
|
|
@@ -345,7 +347,7 @@ process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
|
345
347
|
*/
|
|
346
348
|
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
347
349
|
});
|
|
348
|
-
const
|
|
350
|
+
const no = k;
|
|
349
351
|
export {
|
|
350
|
-
|
|
352
|
+
no as B
|
|
351
353
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { j, P as e, a as pe, _ as v, g as Ue } from "./identifier-b778b9d7.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { c as M, g as fe, s as ee, u as de, a as _e } from "./useThemeProps-ac5b48ee.js";
|
|
4
|
+
import { k as te, e as Fe } from "./emotion-react.browser.esm-06d75c50.js";
|
|
5
|
+
import { T as Ke } from "./TransitionGroup-83f28ebd.js";
|
|
6
|
+
import { r as Oe } from "./refType-6cfa9488.js";
|
|
7
|
+
import { u as re, b as q } from "./TransitionGroupContext-d020ca94.js";
|
|
8
|
+
import { u as ze } from "./useIsFocusVisible-4693b580.js";
|
|
7
9
|
function he(s) {
|
|
8
10
|
const {
|
|
9
11
|
className: C,
|
|
@@ -72,7 +74,7 @@ process.env.NODE_ENV !== "production" && (he.propTypes = {
|
|
|
72
74
|
*/
|
|
73
75
|
timeout: e.number.isRequired
|
|
74
76
|
});
|
|
75
|
-
const Xe =
|
|
77
|
+
const Xe = fe("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), c = Xe, Ye = ["center", "classes", "className"];
|
|
76
78
|
let H = (s) => s, le, ae, ue, ce;
|
|
77
79
|
const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
78
80
|
0% {
|
|
@@ -172,14 +174,14 @@ const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
|
172
174
|
}) => s.transitions.easing.easeInOut, c.childPulsate, He, ({
|
|
173
175
|
theme: s
|
|
174
176
|
}) => s.transitions.easing.easeInOut), me = /* @__PURE__ */ o.forwardRef(function(C, a) {
|
|
175
|
-
const u =
|
|
177
|
+
const u = de({
|
|
176
178
|
props: C,
|
|
177
179
|
name: "MuiTouchRipple"
|
|
178
180
|
}), {
|
|
179
181
|
center: N = !1,
|
|
180
182
|
classes: i = {},
|
|
181
183
|
className: p
|
|
182
|
-
} = u, w =
|
|
184
|
+
} = u, w = pe(u, Ye), [f, r] = o.useState([]), m = o.useRef(0), b = o.useRef(null);
|
|
183
185
|
o.useEffect(() => {
|
|
184
186
|
b.current && (b.current(), b.current = null);
|
|
185
187
|
}, [f]);
|
|
@@ -189,8 +191,8 @@ const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
|
189
191
|
}, []);
|
|
190
192
|
const F = o.useCallback((n) => {
|
|
191
193
|
const {
|
|
192
|
-
pulsate:
|
|
193
|
-
rippleX:
|
|
194
|
+
pulsate: g,
|
|
195
|
+
rippleX: y,
|
|
194
196
|
rippleY: L,
|
|
195
197
|
rippleSize: _,
|
|
196
198
|
cb: O
|
|
@@ -205,19 +207,19 @@ const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
|
205
207
|
childPulsate: M(i.childPulsate, c.childPulsate)
|
|
206
208
|
},
|
|
207
209
|
timeout: Z,
|
|
208
|
-
pulsate:
|
|
209
|
-
rippleX:
|
|
210
|
+
pulsate: g,
|
|
211
|
+
rippleX: y,
|
|
210
212
|
rippleY: L,
|
|
211
213
|
rippleSize: _
|
|
212
214
|
}, m.current)]), m.current += 1, b.current = O;
|
|
213
|
-
}, [i]), I = o.useCallback((n = {},
|
|
215
|
+
}, [i]), I = o.useCallback((n = {}, g = {}, y = () => {
|
|
214
216
|
}) => {
|
|
215
217
|
const {
|
|
216
218
|
pulsate: L = !1,
|
|
217
|
-
center: _ = N ||
|
|
219
|
+
center: _ = N || g.pulsate,
|
|
218
220
|
fakeElement: O = !1
|
|
219
221
|
// For test purposes
|
|
220
|
-
} =
|
|
222
|
+
} = g;
|
|
221
223
|
if ((n == null ? void 0 : n.type) === "mousedown" && d.current) {
|
|
222
224
|
d.current = !1;
|
|
223
225
|
return;
|
|
@@ -251,7 +253,7 @@ const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
|
251
253
|
rippleX: x,
|
|
252
254
|
rippleY: V,
|
|
253
255
|
rippleSize: D,
|
|
254
|
-
cb:
|
|
256
|
+
cb: y
|
|
255
257
|
});
|
|
256
258
|
}, k.current = setTimeout(() => {
|
|
257
259
|
l.current && (l.current(), l.current = null);
|
|
@@ -260,20 +262,20 @@ const Z = 550, Ae = 80, qe = te(le || (le = H`
|
|
|
260
262
|
rippleX: x,
|
|
261
263
|
rippleY: V,
|
|
262
264
|
rippleSize: D,
|
|
263
|
-
cb:
|
|
265
|
+
cb: y
|
|
264
266
|
});
|
|
265
267
|
}, [N, F]), K = o.useCallback(() => {
|
|
266
268
|
I({}, {
|
|
267
269
|
pulsate: !0
|
|
268
270
|
});
|
|
269
|
-
}, [I]), U = o.useCallback((n,
|
|
271
|
+
}, [I]), U = o.useCallback((n, g) => {
|
|
270
272
|
if (clearTimeout(k.current), (n == null ? void 0 : n.type) === "touchend" && l.current) {
|
|
271
273
|
l.current(), l.current = null, k.current = setTimeout(() => {
|
|
272
|
-
U(n,
|
|
274
|
+
U(n, g);
|
|
273
275
|
});
|
|
274
276
|
return;
|
|
275
277
|
}
|
|
276
|
-
l.current = null, r((
|
|
278
|
+
l.current = null, r((y) => y.length > 0 ? y.slice(1) : y), b.current = g;
|
|
277
279
|
}, []);
|
|
278
280
|
return o.useImperativeHandle(a, () => ({
|
|
279
281
|
pulsate: K,
|
|
@@ -310,7 +312,7 @@ const Je = me;
|
|
|
310
312
|
function Qe(s) {
|
|
311
313
|
return Ue("MuiButtonBase", s);
|
|
312
314
|
}
|
|
313
|
-
const Ze =
|
|
315
|
+
const Ze = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, tt = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], ot = (s) => {
|
|
314
316
|
const {
|
|
315
317
|
disabled: C,
|
|
316
318
|
focusVisible: a,
|
|
@@ -364,7 +366,7 @@ const Ze = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, t
|
|
|
364
366
|
colorAdjust: "exact"
|
|
365
367
|
}
|
|
366
368
|
}), be = /* @__PURE__ */ o.forwardRef(function(C, a) {
|
|
367
|
-
const u =
|
|
369
|
+
const u = de({
|
|
368
370
|
props: C,
|
|
369
371
|
name: "MuiButtonBase"
|
|
370
372
|
}), {
|
|
@@ -385,8 +387,8 @@ const Ze = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, t
|
|
|
385
387
|
onFocus: K,
|
|
386
388
|
onFocusVisible: U,
|
|
387
389
|
onKeyDown: n,
|
|
388
|
-
onKeyUp:
|
|
389
|
-
onMouseDown:
|
|
390
|
+
onKeyUp: g,
|
|
391
|
+
onMouseDown: y,
|
|
390
392
|
onMouseLeave: L,
|
|
391
393
|
onMouseUp: _,
|
|
392
394
|
onTouchEnd: O,
|
|
@@ -396,10 +398,10 @@ const Ze = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, t
|
|
|
396
398
|
TouchRippleProps: V,
|
|
397
399
|
touchRippleRef: D,
|
|
398
400
|
type: S
|
|
399
|
-
} = u, B =
|
|
401
|
+
} = u, B = pe(u, tt), z = o.useRef(null), h = o.useRef(null), Re = re(h, D), {
|
|
400
402
|
isFocusVisibleRef: oe,
|
|
401
|
-
onFocus:
|
|
402
|
-
onBlur:
|
|
403
|
+
onFocus: ge,
|
|
404
|
+
onBlur: ye,
|
|
403
405
|
ref: Te
|
|
404
406
|
} = ze(), [$, Y] = o.useState(!1);
|
|
405
407
|
r && $ && Y(!1), o.useImperativeHandle(N, () => ({
|
|
@@ -418,12 +420,12 @@ const Ze = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, t
|
|
|
418
420
|
function E(t, se, Ie = b) {
|
|
419
421
|
return q((ie) => (se && se(ie), !Ie && h.current && h.current[t](ie), !0));
|
|
420
422
|
}
|
|
421
|
-
const Ce = E("start",
|
|
423
|
+
const Ce = E("start", y), xe = E("stop", F), Be = E("stop", I), Ee = E("stop", _), Ne = E("stop", (t) => {
|
|
422
424
|
$ && t.preventDefault(), L && L(t);
|
|
423
425
|
}), ke = E("start", P), Pe = E("stop", O), Ve = E("stop", T), De = E("stop", (t) => {
|
|
424
|
-
|
|
426
|
+
ye(t), oe.current === !1 && Y(!1), l && l(t);
|
|
425
427
|
}, !1), we = q((t) => {
|
|
426
|
-
z.current || (z.current = t.currentTarget),
|
|
428
|
+
z.current || (z.current = t.currentTarget), ge(t), oe.current === !0 && (Y(!0), U && U(t)), K && K(t);
|
|
427
429
|
}), J = () => {
|
|
428
430
|
const t = z.current;
|
|
429
431
|
return f && f !== "button" && !(t.tagName === "A" && t.href);
|
|
@@ -434,7 +436,7 @@ const Ze = pe("MuiButtonBase", ["root", "disabled", "focusVisible"]), et = Ze, t
|
|
|
434
436
|
}), Se = q((t) => {
|
|
435
437
|
d && t.key === " " && h.current && $ && !t.defaultPrevented && (Q.current = !1, h.current.stop(t, () => {
|
|
436
438
|
h.current.pulsate(t);
|
|
437
|
-
})),
|
|
439
|
+
})), g && g(t), R && t.target === t.currentTarget && J() && t.key === " " && !t.defaultPrevented && R(t);
|
|
438
440
|
});
|
|
439
441
|
let A = f;
|
|
440
442
|
A === "button" && (B.href || B.to) && (A = k);
|
|
@@ -643,7 +645,7 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
|
643
645
|
*/
|
|
644
646
|
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
|
645
647
|
});
|
|
646
|
-
const
|
|
648
|
+
const ft = be;
|
|
647
649
|
export {
|
|
648
|
-
|
|
650
|
+
ft as B
|
|
649
651
|
};
|
package/dist/Buttons/index.js
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import "../
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
1
|
+
import { K as h, a as j, b as k, c as l } from "../KdpaSecondaryButton-77e7b148.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../KdpaTooltip-43846183.js";
|
|
5
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
6
|
+
import "../useTheme-8977adac.js";
|
|
7
|
+
import "../Popper-400edb78.js";
|
|
8
|
+
import "../Portal-05d0e500.js";
|
|
9
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "../exactProp-5a3aef1a.js";
|
|
12
|
+
import "../refType-6cfa9488.js";
|
|
13
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
14
|
+
import "../Grow-edad9188.js";
|
|
15
|
+
import "../utils-e326378c.js";
|
|
16
|
+
import "../useControlled-cc2d41cb.js";
|
|
17
|
+
import "../useId-a21bd5c3.js";
|
|
18
|
+
import "../Button-45285593.js";
|
|
19
|
+
import "../ButtonBase-5e07ac58.js";
|
|
20
|
+
import "../emotion-react.browser.esm-06d75c50.js";
|
|
21
|
+
import "../TransitionGroup-83f28ebd.js";
|
|
22
|
+
import "../IconButton-40ad64d9.js";
|
|
19
23
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
h as KdpaButton,
|
|
25
|
+
j as KdpaIconButton,
|
|
26
|
+
k as KdpaPrimaryButton,
|
|
27
|
+
l as KdpaSecondaryButton
|
|
24
28
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as A } from "./TransitionGroupContext-
|
|
3
|
-
import
|
|
1
|
+
import { a as N, _ as m, P as v } from "./identifier-b778b9d7.js";
|
|
2
|
+
import { _ as A } from "./TransitionGroupContext-d020ca94.js";
|
|
3
|
+
import E from "react";
|
|
4
|
+
import { f as _, T as x, d as $ } from "./utils-e326378c.js";
|
|
4
5
|
function L(e, t) {
|
|
5
6
|
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
6
7
|
}
|
|
@@ -62,7 +63,7 @@ var P = function(t, p) {
|
|
|
62
63
|
var p = t.prototype;
|
|
63
64
|
return p.addClass = function(i, l, o) {
|
|
64
65
|
var a = this.getClassNames(l)[o + "ClassName"], r = this.getClassNames("enter"), n = r.doneClassName;
|
|
65
|
-
l === "appear" && o === "done" && n && (a += " " + n), o === "active" && i &&
|
|
66
|
+
l === "appear" && o === "done" && n && (a += " " + n), o === "active" && i && _(i), a && (this.appliedClasses[l][o] = a, P(i, a));
|
|
66
67
|
}, p.removeClasses = function(i, l) {
|
|
67
68
|
var o = this.appliedClasses[l], a = o.base, r = o.active, n = o.done;
|
|
68
69
|
this.appliedClasses[l] = {}, a && d(i, a), r && d(i, r), n && d(i, n);
|
|
@@ -152,7 +153,7 @@ C.propTypes = process.env.NODE_ENV !== "production" ? m({}, x.propTypes, {
|
|
|
152
153
|
* exitDone?: string,
|
|
153
154
|
* }}
|
|
154
155
|
*/
|
|
155
|
-
classNames:
|
|
156
|
+
classNames: $,
|
|
156
157
|
/**
|
|
157
158
|
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
158
159
|
* applied.
|
|
@@ -207,7 +208,7 @@ C.propTypes = process.env.NODE_ENV !== "production" ? m({}, x.propTypes, {
|
|
|
207
208
|
*/
|
|
208
209
|
onExited: v.func
|
|
209
210
|
}) : {};
|
|
210
|
-
const
|
|
211
|
+
const D = C;
|
|
211
212
|
export {
|
|
212
|
-
|
|
213
|
+
D as C
|
|
213
214
|
};
|
package/dist/CheckBox/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
1
|
+
import { K as s } from "../KdpaCheckBox-bc1925f5.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
5
|
+
import "../SwitchBase-71e5b972.js";
|
|
6
|
+
import "../useFormControl-af690c26.js";
|
|
7
|
+
import "../ButtonBase-5e07ac58.js";
|
|
8
|
+
import "../emotion-react.browser.esm-06d75c50.js";
|
|
9
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
10
|
+
import "../TransitionGroup-83f28ebd.js";
|
|
11
|
+
import "../refType-6cfa9488.js";
|
|
12
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
13
|
+
import "../useControlled-cc2d41cb.js";
|
|
14
|
+
import "../createSvgIcon-07d98e51.js";
|
|
13
15
|
export {
|
|
14
|
-
|
|
16
|
+
s as KdpaCheckBox
|
|
15
17
|
};
|
package/dist/Chip/index.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "
|
|
11
|
-
import "../
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
1
|
+
import { K as j } from "../KdpaChip-619e6905.js";
|
|
2
|
+
import "../identifier-b778b9d7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../KdpaTooltip-43846183.js";
|
|
5
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
6
|
+
import "../useTheme-8977adac.js";
|
|
7
|
+
import "../Popper-400edb78.js";
|
|
8
|
+
import "../Portal-05d0e500.js";
|
|
9
|
+
import "../TransitionGroupContext-d020ca94.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "../exactProp-5a3aef1a.js";
|
|
12
|
+
import "../refType-6cfa9488.js";
|
|
13
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
14
|
+
import "../Grow-edad9188.js";
|
|
15
|
+
import "../utils-e326378c.js";
|
|
16
|
+
import "../useControlled-cc2d41cb.js";
|
|
17
|
+
import "../useId-a21bd5c3.js";
|
|
14
18
|
export {
|
|
15
|
-
|
|
19
|
+
j as KdpaChip
|
|
16
20
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { c as o } from "./createSvgIcon-07d98e51.js";
|
|
3
|
+
import { j as r } from "./identifier-b778b9d7.js";
|
|
4
|
+
const e = o(/* @__PURE__ */ r.jsx("path", {
|
|
5
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
6
|
+
}), "Close");
|
|
7
|
+
export {
|
|
8
|
+
e as C
|
|
9
|
+
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { K as
|
|
3
|
-
import "../
|
|
4
|
-
import "
|
|
5
|
-
import "../
|
|
1
|
+
import { K as d } from "../KdpaFormControl-3d469f40.js";
|
|
2
|
+
import { K as n } from "../KdpaFormControlLabel-a0515ddd.js";
|
|
3
|
+
import "../identifier-b778b9d7.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../FormControl-d29c9b3d.js";
|
|
6
|
+
import "../useThemeProps-ac5b48ee.js";
|
|
7
|
+
import "../useFormControl-af690c26.js";
|
|
6
8
|
import "../formControlState-9148c46f.js";
|
|
7
|
-
import "../Typography-
|
|
8
|
-
import "../refType-
|
|
9
|
+
import "../Typography-1bcbc410.js";
|
|
10
|
+
import "../refType-6cfa9488.js";
|
|
9
11
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
d as KdpaFormControl,
|
|
13
|
+
n as KdpaFormControlLabel
|
|
12
14
|
};
|