kdpa-components 1.1.0 → 1.2.0
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/CHANGELOG.md +2 -2
- package/dist/Accordion/index.js +14 -14
- package/dist/Alert/index.js +17 -17
- package/dist/{ArrowDropDown-ea2f6035.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +6 -6
- package/dist/Badge/index.js +19 -19
- package/dist/{Box-06b8bc37.js → Box-032e9a1d.js} +23 -24
- package/dist/{Button-28699d65.js → Button-9d9cc0bd.js} +11 -12
- package/dist/{ButtonBase-e4d95755.js → ButtonBase-fa4630c8.js} +9 -10
- package/dist/Buttons/index.js +24 -24
- package/dist/{CSSTransition-2d7d1f1e.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +12 -12
- package/dist/Chip/index.js +16 -16
- package/dist/{Chip-95532a41.js → Chip-e5751770.js} +7 -8
- package/dist/{CircularProgress-6e67e3d8.js → CircularProgress-01a8929e.js} +15 -16
- package/dist/{Close-70f0ad0d.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +9 -9
- package/dist/{Collapse-c7000672.js → Collapse-547e6c7a.js} +35 -36
- package/dist/CopyToClipboard/index.js +23 -23
- package/dist/{Dialog-185ee62e.js → Dialog-652a3ad4.js} +15 -16
- package/dist/Divider/index.js +6 -6
- package/dist/DropZone/index.js +33 -33
- package/dist/{Fade-e6cc07e5.js → Fade-7ee2c0a4.js} +11 -12
- package/dist/FormControl/index.js +10 -10
- package/dist/{FormControl-3d1d38fe.js → FormControl-ca7447ab.js} +5 -6
- package/dist/FullScreenDialog/index.js +16 -16
- package/dist/Grid/index.js +8 -8
- package/dist/{Grid-b29d871f.js → Grid-9708b9ca.js} +59 -60
- package/dist/{Grow-bcd47732.js → Grow-55d0786d.js} +16 -17
- package/dist/{IconButton-eace4b91.js → IconButton-48d87778.js} +12 -13
- package/dist/Input/index.js +22 -22
- package/dist/{KdpaAccordions-39a4ed6e.js → KdpaAccordions-2ae65dd1.js} +125 -113
- package/dist/{KdpaAlertTitle-85b3b759.js → KdpaAlertTitle-f1549035.js} +103 -91
- package/dist/{KdpaAutoComplete-e2ccab34.js → KdpaAutoComplete-8a11974a.js} +225 -221
- package/dist/{KdpaAvatar-798f595f.js → KdpaAvatar-d297ef8a.js} +75 -71
- package/dist/{KdpaCheckBox-ca4f09b9.js → KdpaCheckBox-84d56486.js} +31 -27
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2168fb05.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-f6810c38.js → KdpaDateTimePicker-cb4a16d0.js} +10531 -13197
- package/dist/{KdpaDivider-8da2e22f.js → KdpaDivider-1c62c65a.js} +93 -81
- package/dist/{KdpaDropZone-3abdf72d.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-e993132d.js → KdpaFormControlLabel-249b7622.js} +53 -49
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-544999b0.js → KdpaGridBadge-65b88a7a.js} +121 -101
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-3f3eb039.js → KdpaLazyDrop-1985fc75.js} +253 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaModalImage-f3b07c33.js → KdpaModalImage-eb732bf0.js} +69 -61
- package/dist/{KdpaPaginationGrid-281683fd.js → KdpaPaginationGrid-97a5b164.js} +307 -247
- package/dist/{KdpaRadioGroup-123a09aa.js → KdpaRadioGroup-87122ec7.js} +101 -93
- package/dist/{KdpaRtlProvider-120dff80.js → KdpaRtlProvider-495e4bb0.js} +142 -134
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-40a1807a.js → KdpaSlider-b7226e20.js} +190 -182
- package/dist/{KdpaSwitch-603cd217.js → KdpaSwitch-b2ba7c23.js} +39 -31
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-20c42ab8.js → KdpaTooltip-653424c7.js} +96 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +23 -23
- package/dist/{ListItem-8c33bc78.js → ListItem-ddec0b28.js} +8 -9
- package/dist/Loading/KdpaProgress/index.js +11 -11
- package/dist/Loading/index.js +8 -8
- package/dist/{MenuItem-db67ec92.js → MenuItem-057c85a3.js} +14 -15
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-8739c755.js → Modal-daf2a588.js} +10 -11
- package/dist/PaginationGrid/index.js +31 -31
- package/dist/{Paper-726cd077.js → Paper-00aea968.js} +15 -16
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +38 -38
- package/dist/{Popper-708e355f.js → Popper-7adcd815.js} +8 -9
- package/dist/{Portal-90cf7ba4.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +12 -12
- package/dist/Selects/index.js +33 -33
- package/dist/{Slide-107d0b58.js → Slide-803fd098.js} +11 -12
- package/dist/Slider/index.js +7 -7
- package/dist/Switch/index.js +11 -11
- package/dist/{SwitchBase-0a37f2eb.js → SwitchBase-64e5662e.js} +7 -8
- package/dist/Tabs/index.js +14 -14
- package/dist/{Tabs-1caed6d0.js → Tabs-1140d353.js} +77 -78
- package/dist/{TextField-092190de.js → TextField-57c51dbe.js} +15 -16
- package/dist/ThemeProvider/index.js +5 -5
- package/dist/Tooltips/index.js +15 -15
- package/dist/{TransitionGroup-a1dcb75a.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +15 -15
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +7 -7
- package/dist/{Typography-644bd1d9.js → Typography-db7e5ea2.js} +18 -19
- package/dist/{Zoom-39a63b9e.js → Zoom-36a189bb.js} +11 -12
- package/dist/{createSvgIcon-5491f07a.js → createSvgIcon-1aa1b2b2.js} +5 -6
- package/dist/{dividerClasses-6fed9b68.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-f1cfc912.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-d599eee7.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-7120a510.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-ee27a957.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-e017d9bf.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +82 -82
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/{listItemTextClasses-29c5c497.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-0b7ad6f5.js → refType-450337d6.js} +1 -1
- package/dist/{useSlotProps-615f7694.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-948a6d35.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-0f6826f6.js → useThemeProps-ea792506.js} +2 -2
- package/dist/{utils-765dc524.js → utils-acd98a68.js} +2 -2
- package/package.json +4 -1
- package/dist/KdpaChip-1bb449f1.js +0 -31
- package/dist/KdpaCircularProgress-18524b3d.js +0 -44
- package/dist/KdpaCollapse-0d001d1f.js +0 -11
- package/dist/KdpaCollapse-db70c13b.js +0 -8
- package/dist/KdpaFormControl-5136bd3a.js +0 -6
- package/dist/KdpaFullScreenDialog-6c8bc817.js +0 -16
- package/dist/KdpaGrid-c32b342e.js +0 -8
- package/dist/KdpaIconButton-d4c623d6.js +0 -23
- package/dist/KdpaInputMultiline-9f5ee3f0.js +0 -48
- package/dist/KdpaMenuItem-ec7a72c8.js +0 -36
- package/dist/KdpaSecondaryButton-ea9f2aeb.js +0 -28
- package/dist/KdpaSkeleton-872821e6.js +0 -540
- package/dist/KdpaTabs-8a087fe4.js +0 -38
- package/dist/KdpaTypography-0aab42ce.js +0 -6
- package/dist/KdpaZoom-dcf1dd78.js +0 -10
- package/dist/KpdaPrimaryButton-4e76c06b.js +0 -47
- package/dist/identifier-878ccaef.js +0 -3147
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/yarn-error.log +0 -7875
package/dist/DropZone/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { K as po } from "../KdpaDropZone-
|
|
2
|
-
import "../jsx-runtime-
|
|
1
|
+
import { K as po } from "../KdpaDropZone-b21d2304.js";
|
|
2
|
+
import "../jsx-dev-runtime-48fdc504.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../identifier-
|
|
5
|
-
import "../extends-
|
|
4
|
+
import "../identifier-2647f844.js";
|
|
5
|
+
import "../extends-135d7828.js";
|
|
6
6
|
import "../_commonjsHelpers-e7ea1525.js";
|
|
7
7
|
import "../kdpaButton-4ed993c7.js";
|
|
8
|
-
import "../KdpaIconButton-
|
|
9
|
-
import "../KdpaTooltip-
|
|
10
|
-
import "../useThemeProps-
|
|
11
|
-
import "../useTheme-
|
|
12
|
-
import "../Popper-
|
|
13
|
-
import "../Portal-
|
|
8
|
+
import "../KdpaIconButton-a0ee669c.js";
|
|
9
|
+
import "../KdpaTooltip-653424c7.js";
|
|
10
|
+
import "../useThemeProps-ea792506.js";
|
|
11
|
+
import "../useTheme-6ea322ec.js";
|
|
12
|
+
import "../Popper-7adcd815.js";
|
|
13
|
+
import "../Portal-de5e310c.js";
|
|
14
14
|
import "react-dom";
|
|
15
15
|
import "../useForkRef-0781dda0.js";
|
|
16
16
|
import "../useEventCallback-83a2883c.js";
|
|
17
17
|
import "../HTMLElementType-ff213f3c.js";
|
|
18
|
-
import "../exactProp-
|
|
18
|
+
import "../exactProp-86f148d5.js";
|
|
19
19
|
import "../ownerDocument-5430cd5b.js";
|
|
20
20
|
import "../chainPropTypes-004bf492.js";
|
|
21
|
-
import "../refType-
|
|
21
|
+
import "../refType-450337d6.js";
|
|
22
22
|
import "../popper-78c6b162.js";
|
|
23
|
-
import "../useSlotProps-
|
|
23
|
+
import "../useSlotProps-3b927bcb.js";
|
|
24
24
|
import "../useIsFocusVisible-4693b580.js";
|
|
25
|
-
import "../Grow-
|
|
26
|
-
import "../utils-
|
|
25
|
+
import "../Grow-55d0786d.js";
|
|
26
|
+
import "../utils-acd98a68.js";
|
|
27
27
|
import "../TransitionGroupContext-7435e195.js";
|
|
28
28
|
import "../setPrototypeOf-98a00546.js";
|
|
29
|
-
import "../elementAcceptingRef-
|
|
29
|
+
import "../elementAcceptingRef-bd96c731.js";
|
|
30
30
|
import "../useControlled-cc2d41cb.js";
|
|
31
31
|
import "../useId-a21bd5c3.js";
|
|
32
|
-
import "../Zoom-
|
|
33
|
-
import "../IconButton-
|
|
34
|
-
import "../ButtonBase-
|
|
35
|
-
import "../emotion-react.browser.esm-
|
|
36
|
-
import "../TransitionGroup-
|
|
32
|
+
import "../Zoom-36a189bb.js";
|
|
33
|
+
import "../IconButton-48d87778.js";
|
|
34
|
+
import "../ButtonBase-fa4630c8.js";
|
|
35
|
+
import "../emotion-react.browser.esm-3fa5f721.js";
|
|
36
|
+
import "../TransitionGroup-f9877c5b.js";
|
|
37
37
|
import "../assertThisInitialized-05701a63.js";
|
|
38
|
-
import "../elementTypeAcceptingRef-
|
|
38
|
+
import "../elementTypeAcceptingRef-dea9e62a.js";
|
|
39
39
|
import "../kdpaPrimaryButton-4ed993c7.js";
|
|
40
|
-
import "../KdpaAvatar-
|
|
41
|
-
import "../createSvgIcon-
|
|
40
|
+
import "../KdpaAvatar-d297ef8a.js";
|
|
41
|
+
import "../createSvgIcon-1aa1b2b2.js";
|
|
42
42
|
import "../index.esm-b78383d3.js";
|
|
43
43
|
import "../iconBase-800b43ff.js";
|
|
44
|
-
import "../Grid-
|
|
45
|
-
import "../extendSxProp-
|
|
46
|
-
import "../ListItem-
|
|
44
|
+
import "../Grid-9708b9ca.js";
|
|
45
|
+
import "../extendSxProp-d294b946.js";
|
|
46
|
+
import "../ListItem-ddec0b28.js";
|
|
47
47
|
import "../ListContext-de5072f9.js";
|
|
48
48
|
import "../isMuiElement-b88a921a.js";
|
|
49
|
-
import "../listItemTextClasses-
|
|
50
|
-
import "../Typography-
|
|
51
|
-
import "../KdpaCollapse-
|
|
52
|
-
import "../Fade-
|
|
53
|
-
import "../Collapse-
|
|
54
|
-
import "../Box-
|
|
49
|
+
import "../listItemTextClasses-da281500.js";
|
|
50
|
+
import "../Typography-db7e5ea2.js";
|
|
51
|
+
import "../KdpaCollapse-73c03e02.js";
|
|
52
|
+
import "../Fade-7ee2c0a4.js";
|
|
53
|
+
import "../Collapse-547e6c7a.js";
|
|
54
|
+
import "../Box-032e9a1d.js";
|
|
55
55
|
export {
|
|
56
56
|
po as KdpaDropZone
|
|
57
57
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as A, a as p } from "./extends-135d7828.js";
|
|
2
2
|
import * as E from "react";
|
|
3
|
-
import { P as n } from "./identifier-
|
|
4
|
-
import { u as
|
|
5
|
-
import { T as
|
|
6
|
-
import { j as $ } from "./jsx-runtime-944c88e2.js";
|
|
3
|
+
import { j as D, P as n } from "./identifier-2647f844.js";
|
|
4
|
+
import { u as V } from "./useTheme-6ea322ec.js";
|
|
5
|
+
import { T as W, r as $, g as y } from "./utils-acd98a68.js";
|
|
7
6
|
import { u as B } from "./useForkRef-0781dda0.js";
|
|
8
|
-
import { e as G } from "./elementAcceptingRef-
|
|
7
|
+
import { e as G } from "./elementAcceptingRef-bd96c731.js";
|
|
9
8
|
const H = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], J = {
|
|
10
9
|
entering: {
|
|
11
10
|
opacity: 1
|
|
@@ -14,7 +13,7 @@ const H = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "o
|
|
|
14
13
|
opacity: 1
|
|
15
14
|
}
|
|
16
15
|
}, h = /* @__PURE__ */ E.forwardRef(function(u, T) {
|
|
17
|
-
const i =
|
|
16
|
+
const i = V(), R = {
|
|
18
17
|
enter: i.transitions.duration.enteringScreen,
|
|
19
18
|
exit: i.transitions.duration.leavingScreen
|
|
20
19
|
}, {
|
|
@@ -32,14 +31,14 @@ const H = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "o
|
|
|
32
31
|
style: d,
|
|
33
32
|
timeout: c = R,
|
|
34
33
|
// eslint-disable-next-line react/prop-types
|
|
35
|
-
TransitionComponent: _ =
|
|
34
|
+
TransitionComponent: _ = W
|
|
36
35
|
} = u, v = A(u, H), s = E.useRef(null), w = B(s, a.ref, T), o = (e) => (t) => {
|
|
37
36
|
if (e) {
|
|
38
37
|
const r = s.current;
|
|
39
38
|
t === void 0 ? e(r) : e(r, t);
|
|
40
39
|
}
|
|
41
40
|
}, C = o(L), O = o((e, t) => {
|
|
42
|
-
|
|
41
|
+
$(e);
|
|
43
42
|
const r = y({
|
|
44
43
|
style: d,
|
|
45
44
|
timeout: c,
|
|
@@ -60,7 +59,7 @@ const H = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "o
|
|
|
60
59
|
}), q = o(j), z = (e) => {
|
|
61
60
|
f && f(s.current, e);
|
|
62
61
|
};
|
|
63
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ D.jsx(_, p({
|
|
64
63
|
appear: b,
|
|
65
64
|
in: m,
|
|
66
65
|
nodeRef: s,
|
|
@@ -157,7 +156,7 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
|
157
156
|
exit: n.number
|
|
158
157
|
})])
|
|
159
158
|
});
|
|
160
|
-
const
|
|
159
|
+
const I = h;
|
|
161
160
|
export {
|
|
162
|
-
|
|
161
|
+
I as F
|
|
163
162
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { K as C } from "../KdpaFormControl-
|
|
2
|
-
import { K as b } from "../KdpaFormControlLabel-
|
|
3
|
-
import "../jsx-runtime-
|
|
1
|
+
import { K as C } from "../KdpaFormControl-135b070d.js";
|
|
2
|
+
import { K as b } from "../KdpaFormControlLabel-249b7622.js";
|
|
3
|
+
import "../jsx-dev-runtime-48fdc504.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../FormControl-
|
|
6
|
-
import "../extends-
|
|
7
|
-
import "../identifier-
|
|
5
|
+
import "../FormControl-ca7447ab.js";
|
|
6
|
+
import "../extends-135d7828.js";
|
|
7
|
+
import "../identifier-2647f844.js";
|
|
8
8
|
import "../_commonjsHelpers-e7ea1525.js";
|
|
9
|
-
import "../useThemeProps-
|
|
9
|
+
import "../useThemeProps-ea792506.js";
|
|
10
10
|
import "../useFormControl-af690c26.js";
|
|
11
11
|
import "../isMuiElement-b88a921a.js";
|
|
12
12
|
import "../formControlState-9148c46f.js";
|
|
13
|
-
import "../Typography-
|
|
14
|
-
import "../extendSxProp-
|
|
15
|
-
import "../refType-
|
|
13
|
+
import "../Typography-db7e5ea2.js";
|
|
14
|
+
import "../extendSxProp-d294b946.js";
|
|
15
|
+
import "../refType-450337d6.js";
|
|
16
16
|
export {
|
|
17
17
|
C as KdpaFormControl,
|
|
18
18
|
b as KdpaFormControlLabel
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as d, _ as L } from "./extends-135d7828.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { g as q, c as P, P as e } from "./identifier-
|
|
4
|
-
import { g as $, s as w, u as k, c as G, a as H } from "./useThemeProps-
|
|
3
|
+
import { g as q, c as P, j as M, P as e } from "./identifier-2647f844.js";
|
|
4
|
+
import { g as $, s as w, u as k, c as G, a as H } from "./useThemeProps-ea792506.js";
|
|
5
5
|
import { F as J } from "./useFormControl-af690c26.js";
|
|
6
|
-
import { j as M } from "./jsx-runtime-944c88e2.js";
|
|
7
6
|
import { i as v } from "./isMuiElement-b88a921a.js";
|
|
8
7
|
function R(o) {
|
|
9
8
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
@@ -225,8 +224,8 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
225
224
|
*/
|
|
226
225
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
227
226
|
});
|
|
228
|
-
const
|
|
227
|
+
const se = _;
|
|
229
228
|
export {
|
|
230
|
-
|
|
229
|
+
se as F,
|
|
231
230
|
I as i
|
|
232
231
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { K as A } from "../KdpaFullScreenDialog-
|
|
2
|
-
import "../jsx-runtime-
|
|
1
|
+
import { K as A } from "../KdpaFullScreenDialog-e56db731.js";
|
|
2
|
+
import "../jsx-dev-runtime-48fdc504.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../Slide-
|
|
5
|
-
import "../extends-
|
|
6
|
-
import "../identifier-
|
|
4
|
+
import "../Slide-803fd098.js";
|
|
5
|
+
import "../extends-135d7828.js";
|
|
6
|
+
import "../identifier-2647f844.js";
|
|
7
7
|
import "../_commonjsHelpers-e7ea1525.js";
|
|
8
|
-
import "../useTheme-
|
|
9
|
-
import "../useThemeProps-
|
|
10
|
-
import "../utils-
|
|
8
|
+
import "../useTheme-6ea322ec.js";
|
|
9
|
+
import "../useThemeProps-ea792506.js";
|
|
10
|
+
import "../utils-acd98a68.js";
|
|
11
11
|
import "../TransitionGroupContext-7435e195.js";
|
|
12
12
|
import "../setPrototypeOf-98a00546.js";
|
|
13
13
|
import "react-dom";
|
|
14
14
|
import "../ownerWindow-e6cc3097.js";
|
|
15
15
|
import "../ownerDocument-5430cd5b.js";
|
|
16
|
-
import "../elementAcceptingRef-
|
|
16
|
+
import "../elementAcceptingRef-bd96c731.js";
|
|
17
17
|
import "../chainPropTypes-004bf492.js";
|
|
18
18
|
import "../HTMLElementType-ff213f3c.js";
|
|
19
19
|
import "../useForkRef-0781dda0.js";
|
|
20
|
-
import "../Dialog-
|
|
21
|
-
import "../Modal-
|
|
22
|
-
import "../Fade-
|
|
23
|
-
import "../Portal-
|
|
20
|
+
import "../Dialog-652a3ad4.js";
|
|
21
|
+
import "../Modal-daf2a588.js";
|
|
22
|
+
import "../Fade-7ee2c0a4.js";
|
|
23
|
+
import "../Portal-de5e310c.js";
|
|
24
24
|
import "../useEventCallback-83a2883c.js";
|
|
25
|
-
import "../exactProp-
|
|
25
|
+
import "../exactProp-86f148d5.js";
|
|
26
26
|
import "../createChainedFunction-68e2a88d.js";
|
|
27
|
-
import "../useSlotProps-
|
|
28
|
-
import "../Paper-
|
|
27
|
+
import "../useSlotProps-3b927bcb.js";
|
|
28
|
+
import "../Paper-00aea968.js";
|
|
29
29
|
import "../useId-a21bd5c3.js";
|
|
30
30
|
export {
|
|
31
31
|
A as KdpaFullScreenDialog
|
package/dist/Grid/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { K as s } from "../KdpaGrid-
|
|
2
|
-
import "../jsx-runtime-
|
|
1
|
+
import { K as s } from "../KdpaGrid-2a3f9346.js";
|
|
2
|
+
import "../jsx-dev-runtime-48fdc504.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../Grid-
|
|
5
|
-
import "../extends-
|
|
6
|
-
import "../identifier-
|
|
4
|
+
import "../Grid-9708b9ca.js";
|
|
5
|
+
import "../extends-135d7828.js";
|
|
6
|
+
import "../identifier-2647f844.js";
|
|
7
7
|
import "../_commonjsHelpers-e7ea1525.js";
|
|
8
|
-
import "../useThemeProps-
|
|
9
|
-
import "../useTheme-
|
|
10
|
-
import "../extendSxProp-
|
|
8
|
+
import "../useThemeProps-ea792506.js";
|
|
9
|
+
import "../useTheme-6ea322ec.js";
|
|
10
|
+
import "../extendSxProp-d294b946.js";
|
|
11
11
|
export {
|
|
12
12
|
s as KdpaGrid
|
|
13
13
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as g, _ as D } from "./extends-135d7828.js";
|
|
2
2
|
import * as S from "react";
|
|
3
|
-
import { g as K, P as
|
|
4
|
-
import { g as I, s as L, u as U, c as q, a as F } from "./useThemeProps-
|
|
5
|
-
import { u as Z } from "./useTheme-
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
function H(e, n) {
|
|
3
|
+
import { g as K, j, P as n, r as v, h as T } from "./identifier-2647f844.js";
|
|
4
|
+
import { g as I, s as L, u as U, c as q, a as F } from "./useThemeProps-ea792506.js";
|
|
5
|
+
import { u as Z } from "./useTheme-6ea322ec.js";
|
|
6
|
+
import { e as A } from "./extendSxProp-d294b946.js";
|
|
7
|
+
function H(e, r) {
|
|
9
8
|
if (process.env.NODE_ENV === "production")
|
|
10
9
|
return () => null;
|
|
11
|
-
const t =
|
|
10
|
+
const t = r ? g({}, r.propTypes) : null;
|
|
12
11
|
return (o) => (s, c, p, l, u, ...a) => {
|
|
13
12
|
const f = u || c, m = t == null ? void 0 : t[f];
|
|
14
13
|
if (m) {
|
|
@@ -44,17 +43,17 @@ const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "
|
|
|
44
43
|
...b.map((e) => `grid-xl-${e}`)
|
|
45
44
|
]), ee = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
46
45
|
function x(e) {
|
|
47
|
-
const
|
|
48
|
-
return `${
|
|
46
|
+
const r = parseFloat(e);
|
|
47
|
+
return `${r}${String(e).replace(String(r), "") || "px"}`;
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function ne({
|
|
51
50
|
theme: e,
|
|
52
|
-
ownerState:
|
|
51
|
+
ownerState: r
|
|
53
52
|
}) {
|
|
54
53
|
let t;
|
|
55
54
|
return e.breakpoints.keys.reduce((i, o) => {
|
|
56
55
|
let s = {};
|
|
57
|
-
if (
|
|
56
|
+
if (r[o] && (t = r[o]), !t)
|
|
58
57
|
return i;
|
|
59
58
|
if (t === !0)
|
|
60
59
|
s = {
|
|
@@ -72,15 +71,15 @@ function re({
|
|
|
72
71
|
};
|
|
73
72
|
else {
|
|
74
73
|
const c = v({
|
|
75
|
-
values:
|
|
74
|
+
values: r.columns,
|
|
76
75
|
breakpoints: e.breakpoints.values
|
|
77
76
|
}), p = typeof c == "object" ? c[o] : c;
|
|
78
77
|
if (p == null)
|
|
79
78
|
return i;
|
|
80
79
|
const l = `${Math.round(t / p * 1e8) / 1e6}%`;
|
|
81
80
|
let u = {};
|
|
82
|
-
if (
|
|
83
|
-
const a = e.spacing(
|
|
81
|
+
if (r.container && r.item && r.columnSpacing !== 0) {
|
|
82
|
+
const a = e.spacing(r.columnSpacing);
|
|
84
83
|
if (a !== "0px") {
|
|
85
84
|
const f = `calc(${l} + ${x(a)})`;
|
|
86
85
|
u = {
|
|
@@ -98,12 +97,12 @@ function re({
|
|
|
98
97
|
return e.breakpoints.values[o] === 0 ? Object.assign(i, s) : i[e.breakpoints.up(o)] = s, i;
|
|
99
98
|
}, {});
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function re({
|
|
102
101
|
theme: e,
|
|
103
|
-
ownerState:
|
|
102
|
+
ownerState: r
|
|
104
103
|
}) {
|
|
105
104
|
const t = v({
|
|
106
|
-
values:
|
|
105
|
+
values: r.direction,
|
|
107
106
|
breakpoints: e.breakpoints.values
|
|
108
107
|
});
|
|
109
108
|
return T({
|
|
@@ -119,23 +118,23 @@ function ne({
|
|
|
119
118
|
}
|
|
120
119
|
function z({
|
|
121
120
|
breakpoints: e,
|
|
122
|
-
values:
|
|
121
|
+
values: r
|
|
123
122
|
}) {
|
|
124
123
|
let t = "";
|
|
125
|
-
Object.keys(
|
|
126
|
-
t === "" &&
|
|
124
|
+
Object.keys(r).forEach((o) => {
|
|
125
|
+
t === "" && r[o] !== 0 && (t = o);
|
|
127
126
|
});
|
|
128
127
|
const i = Object.keys(e).sort((o, s) => e[o] - e[s]);
|
|
129
128
|
return i.slice(0, i.indexOf(t));
|
|
130
129
|
}
|
|
131
130
|
function oe({
|
|
132
131
|
theme: e,
|
|
133
|
-
ownerState:
|
|
132
|
+
ownerState: r
|
|
134
133
|
}) {
|
|
135
134
|
const {
|
|
136
135
|
container: t,
|
|
137
136
|
rowSpacing: i
|
|
138
|
-
} =
|
|
137
|
+
} = r;
|
|
139
138
|
let o = {};
|
|
140
139
|
if (t && i !== 0) {
|
|
141
140
|
const s = v({
|
|
@@ -168,12 +167,12 @@ function oe({
|
|
|
168
167
|
}
|
|
169
168
|
function te({
|
|
170
169
|
theme: e,
|
|
171
|
-
ownerState:
|
|
170
|
+
ownerState: r
|
|
172
171
|
}) {
|
|
173
172
|
const {
|
|
174
173
|
container: t,
|
|
175
174
|
columnSpacing: i
|
|
176
|
-
} =
|
|
175
|
+
} = r;
|
|
177
176
|
let o = {};
|
|
178
177
|
if (t && i !== 0) {
|
|
179
178
|
const s = v({
|
|
@@ -206,13 +205,13 @@ function te({
|
|
|
206
205
|
}
|
|
207
206
|
return o;
|
|
208
207
|
}
|
|
209
|
-
function ie(e,
|
|
208
|
+
function ie(e, r, t = {}) {
|
|
210
209
|
if (!e || e <= 0)
|
|
211
210
|
return [];
|
|
212
211
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
213
212
|
return [t[`spacing-xs-${String(e)}`]];
|
|
214
213
|
const i = [];
|
|
215
|
-
return
|
|
214
|
+
return r.forEach((o) => {
|
|
216
215
|
const s = e[o];
|
|
217
216
|
Number(s) > 0 && i.push(t[`spacing-${o}-${String(s)}`]);
|
|
218
217
|
}), i;
|
|
@@ -220,7 +219,7 @@ function ie(e, n, t = {}) {
|
|
|
220
219
|
const se = L("div", {
|
|
221
220
|
name: "MuiGrid",
|
|
222
221
|
slot: "Root",
|
|
223
|
-
overridesResolver: (e,
|
|
222
|
+
overridesResolver: (e, r) => {
|
|
224
223
|
const {
|
|
225
224
|
ownerState: t
|
|
226
225
|
} = e, {
|
|
@@ -233,12 +232,12 @@ const se = L("div", {
|
|
|
233
232
|
breakpoints: u
|
|
234
233
|
} = t;
|
|
235
234
|
let a = [];
|
|
236
|
-
i && (a = ie(c, u,
|
|
235
|
+
i && (a = ie(c, u, r));
|
|
237
236
|
const f = [];
|
|
238
237
|
return u.forEach((m) => {
|
|
239
238
|
const d = t[m];
|
|
240
|
-
d && f.push(
|
|
241
|
-
}), [
|
|
239
|
+
d && f.push(r[`grid-${m}-${String(d)}`]);
|
|
240
|
+
}), [r.root, i && r.container, s && r.item, l && r.zeroMinWidth, ...a, o !== "row" && r[`direction-xs-${String(o)}`], p !== "wrap" && r[`wrap-xs-${String(p)}`], ...f];
|
|
242
241
|
}
|
|
243
242
|
})(({
|
|
244
243
|
ownerState: e
|
|
@@ -255,14 +254,14 @@ const se = L("div", {
|
|
|
255
254
|
minWidth: 0
|
|
256
255
|
}, e.wrap !== "wrap" && {
|
|
257
256
|
flexWrap: e.wrap
|
|
258
|
-
}),
|
|
259
|
-
function ae(e,
|
|
257
|
+
}), re, oe, te, ne);
|
|
258
|
+
function ae(e, r) {
|
|
260
259
|
if (!e || e <= 0)
|
|
261
260
|
return [];
|
|
262
261
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
263
262
|
return [`spacing-xs-${String(e)}`];
|
|
264
263
|
const t = [];
|
|
265
|
-
return
|
|
264
|
+
return r.forEach((i) => {
|
|
266
265
|
const o = e[i];
|
|
267
266
|
if (Number(o) > 0) {
|
|
268
267
|
const s = `spacing-${i}-${String(o)}`;
|
|
@@ -272,7 +271,7 @@ function ae(e, n) {
|
|
|
272
271
|
}
|
|
273
272
|
const ce = (e) => {
|
|
274
273
|
const {
|
|
275
|
-
classes:
|
|
274
|
+
classes: r,
|
|
276
275
|
container: t,
|
|
277
276
|
direction: i,
|
|
278
277
|
item: o,
|
|
@@ -291,10 +290,10 @@ const ce = (e) => {
|
|
|
291
290
|
const f = {
|
|
292
291
|
root: ["root", t && "container", o && "item", p && "zeroMinWidth", ...u, i !== "row" && `direction-xs-${String(i)}`, c !== "wrap" && `wrap-xs-${String(c)}`, ...a]
|
|
293
292
|
};
|
|
294
|
-
return F(f, J,
|
|
295
|
-
}, y = /* @__PURE__ */ S.forwardRef(function(
|
|
293
|
+
return F(f, J, r);
|
|
294
|
+
}, y = /* @__PURE__ */ S.forwardRef(function(r, t) {
|
|
296
295
|
const i = U({
|
|
297
|
-
props:
|
|
296
|
+
props: r,
|
|
298
297
|
name: "MuiGrid"
|
|
299
298
|
}), {
|
|
300
299
|
breakpoints: o
|
|
@@ -345,48 +344,48 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
345
344
|
/**
|
|
346
345
|
* The content of the component.
|
|
347
346
|
*/
|
|
348
|
-
children:
|
|
347
|
+
children: n.node,
|
|
349
348
|
/**
|
|
350
349
|
* Override or extend the styles applied to the component.
|
|
351
350
|
*/
|
|
352
|
-
classes:
|
|
351
|
+
classes: n.object,
|
|
353
352
|
/**
|
|
354
353
|
* @ignore
|
|
355
354
|
*/
|
|
356
|
-
className:
|
|
355
|
+
className: n.string,
|
|
357
356
|
/**
|
|
358
357
|
* The number of columns.
|
|
359
358
|
* @default 12
|
|
360
359
|
*/
|
|
361
|
-
columns:
|
|
360
|
+
columns: n.oneOfType([n.arrayOf(n.number), n.number, n.object]),
|
|
362
361
|
/**
|
|
363
362
|
* Defines the horizontal space between the type `item` components.
|
|
364
363
|
* It overrides the value of the `spacing` prop.
|
|
365
364
|
*/
|
|
366
|
-
columnSpacing:
|
|
365
|
+
columnSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
367
366
|
/**
|
|
368
367
|
* The component used for the root node.
|
|
369
368
|
* Either a string to use a HTML element or a component.
|
|
370
369
|
*/
|
|
371
|
-
component:
|
|
370
|
+
component: n.elementType,
|
|
372
371
|
/**
|
|
373
372
|
* If `true`, the component will have the flex *container* behavior.
|
|
374
373
|
* You should be wrapping *items* with a *container*.
|
|
375
374
|
* @default false
|
|
376
375
|
*/
|
|
377
|
-
container:
|
|
376
|
+
container: n.bool,
|
|
378
377
|
/**
|
|
379
378
|
* Defines the `flex-direction` style property.
|
|
380
379
|
* It is applied for all screen sizes.
|
|
381
380
|
* @default 'row'
|
|
382
381
|
*/
|
|
383
|
-
direction:
|
|
382
|
+
direction: n.oneOfType([n.oneOf(["column-reverse", "column", "row-reverse", "row"]), n.arrayOf(n.oneOf(["column-reverse", "column", "row-reverse", "row"])), n.object]),
|
|
384
383
|
/**
|
|
385
384
|
* If `true`, the component will have the flex *item* behavior.
|
|
386
385
|
* You should be wrapping *items* with a *container*.
|
|
387
386
|
* @default false
|
|
388
387
|
*/
|
|
389
|
-
item:
|
|
388
|
+
item: n.bool,
|
|
390
389
|
/**
|
|
391
390
|
* If a number, it sets the number of columns the grid item uses.
|
|
392
391
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -396,7 +395,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
396
395
|
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
397
396
|
* @default false
|
|
398
397
|
*/
|
|
399
|
-
lg:
|
|
398
|
+
lg: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
400
399
|
/**
|
|
401
400
|
* If a number, it sets the number of columns the grid item uses.
|
|
402
401
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -406,12 +405,12 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
406
405
|
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
407
406
|
* @default false
|
|
408
407
|
*/
|
|
409
|
-
md:
|
|
408
|
+
md: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
410
409
|
/**
|
|
411
410
|
* Defines the vertical space between the type `item` components.
|
|
412
411
|
* It overrides the value of the `spacing` prop.
|
|
413
412
|
*/
|
|
414
|
-
rowSpacing:
|
|
413
|
+
rowSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
415
414
|
/**
|
|
416
415
|
* If a number, it sets the number of columns the grid item uses.
|
|
417
416
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -421,23 +420,23 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
421
420
|
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
422
421
|
* @default false
|
|
423
422
|
*/
|
|
424
|
-
sm:
|
|
423
|
+
sm: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
425
424
|
/**
|
|
426
425
|
* Defines the space between the type `item` components.
|
|
427
426
|
* It can only be used on a type `container` component.
|
|
428
427
|
* @default 0
|
|
429
428
|
*/
|
|
430
|
-
spacing:
|
|
429
|
+
spacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
431
430
|
/**
|
|
432
431
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
433
432
|
*/
|
|
434
|
-
sx:
|
|
433
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
435
434
|
/**
|
|
436
435
|
* Defines the `flex-wrap` style property.
|
|
437
436
|
* It's applied for all screen sizes.
|
|
438
437
|
* @default 'wrap'
|
|
439
438
|
*/
|
|
440
|
-
wrap:
|
|
439
|
+
wrap: n.oneOf(["nowrap", "wrap-reverse", "wrap"]),
|
|
441
440
|
/**
|
|
442
441
|
* If a number, it sets the number of columns the grid item uses.
|
|
443
442
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -447,7 +446,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
447
446
|
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
448
447
|
* @default false
|
|
449
448
|
*/
|
|
450
|
-
xl:
|
|
449
|
+
xl: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
451
450
|
/**
|
|
452
451
|
* If a number, it sets the number of columns the grid item uses.
|
|
453
452
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -457,13 +456,13 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
457
456
|
* The value is applied for all the screen sizes with the lowest priority.
|
|
458
457
|
* @default false
|
|
459
458
|
*/
|
|
460
|
-
xs:
|
|
459
|
+
xs: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
461
460
|
/**
|
|
462
461
|
* If `true`, it sets `min-width: 0` on the item.
|
|
463
462
|
* Refer to the limitations section of the documentation to better understand the use case.
|
|
464
463
|
* @default false
|
|
465
464
|
*/
|
|
466
|
-
zeroMinWidth:
|
|
465
|
+
zeroMinWidth: n.bool
|
|
467
466
|
});
|
|
468
467
|
if (process.env.NODE_ENV !== "production") {
|
|
469
468
|
const e = H("Grid", y);
|
|
@@ -478,7 +477,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
478
477
|
zeroMinWidth: e("item")
|
|
479
478
|
});
|
|
480
479
|
}
|
|
481
|
-
const
|
|
480
|
+
const de = y;
|
|
482
481
|
export {
|
|
483
|
-
|
|
482
|
+
de as G
|
|
484
483
|
};
|