kdpa-components 1.0.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 +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.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 +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- 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-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -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 +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.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-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { K as
|
|
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 "../
|
|
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 "../
|
|
11
|
-
import "../
|
|
8
|
+
import "../useTheme-6ea322ec.js";
|
|
9
|
+
import "../useThemeProps-ea792506.js";
|
|
10
|
+
import "../utils-acd98a68.js";
|
|
11
|
+
import "../TransitionGroupContext-7435e195.js";
|
|
12
|
+
import "../setPrototypeOf-98a00546.js";
|
|
13
|
+
import "react-dom";
|
|
12
14
|
import "../ownerWindow-e6cc3097.js";
|
|
13
15
|
import "../ownerDocument-5430cd5b.js";
|
|
14
|
-
import "../elementAcceptingRef-
|
|
16
|
+
import "../elementAcceptingRef-bd96c731.js";
|
|
15
17
|
import "../chainPropTypes-004bf492.js";
|
|
16
18
|
import "../HTMLElementType-ff213f3c.js";
|
|
17
|
-
import "../Transition-2ecbc61d.js";
|
|
18
|
-
import "../TransitionGroupContext-7435e195.js";
|
|
19
|
-
import "../setPrototypeOf-98a00546.js";
|
|
20
|
-
import "react-dom";
|
|
21
19
|
import "../useForkRef-0781dda0.js";
|
|
22
|
-
import "../Dialog-
|
|
23
|
-
import "../Modal-
|
|
24
|
-
import "../Fade-
|
|
25
|
-
import "../Portal-
|
|
20
|
+
import "../Dialog-652a3ad4.js";
|
|
21
|
+
import "../Modal-daf2a588.js";
|
|
22
|
+
import "../Fade-7ee2c0a4.js";
|
|
23
|
+
import "../Portal-de5e310c.js";
|
|
26
24
|
import "../useEventCallback-83a2883c.js";
|
|
27
|
-
import "../exactProp-
|
|
25
|
+
import "../exactProp-86f148d5.js";
|
|
28
26
|
import "../createChainedFunction-68e2a88d.js";
|
|
29
|
-
import "../useSlotProps-
|
|
30
|
-
import "../Paper-
|
|
27
|
+
import "../useSlotProps-3b927bcb.js";
|
|
28
|
+
import "../Paper-00aea968.js";
|
|
31
29
|
import "../useId-a21bd5c3.js";
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
A as KdpaFullScreenDialog
|
|
34
32
|
};
|
package/dist/Grid/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { K as
|
|
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 "../
|
|
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 "../
|
|
10
|
-
import "../
|
|
11
|
-
import "../extendSxProp-eacd850e.js";
|
|
8
|
+
import "../useThemeProps-ea792506.js";
|
|
9
|
+
import "../useTheme-6ea322ec.js";
|
|
10
|
+
import "../extendSxProp-d294b946.js";
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
s as KdpaGrid
|
|
14
13
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as g, _ as D } from "./extends-135d7828.js";
|
|
2
2
|
import * as S from "react";
|
|
3
|
-
import { P as r } from "./
|
|
4
|
-
import { g as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { e as A } from "./extendSxProp-eacd850e.js";
|
|
9
|
-
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) {
|
|
10
8
|
if (process.env.NODE_ENV === "production")
|
|
11
9
|
return () => null;
|
|
12
|
-
const t =
|
|
10
|
+
const t = r ? g({}, r.propTypes) : null;
|
|
13
11
|
return (o) => (s, c, p, l, u, ...a) => {
|
|
14
12
|
const f = u || c, m = t == null ? void 0 : t[f];
|
|
15
13
|
if (m) {
|
|
@@ -24,9 +22,9 @@ const E = /* @__PURE__ */ S.createContext();
|
|
|
24
22
|
process.env.NODE_ENV !== "production" && (E.displayName = "GridContext");
|
|
25
23
|
const C = E;
|
|
26
24
|
function J(e) {
|
|
27
|
-
return
|
|
25
|
+
return K("MuiGrid", e);
|
|
28
26
|
}
|
|
29
|
-
const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "row-reverse", "row"], Y = ["nowrap", "wrap-reverse", "wrap"], b = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], h =
|
|
27
|
+
const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "row-reverse", "row"], Y = ["nowrap", "wrap-reverse", "wrap"], b = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], h = I("MuiGrid", [
|
|
30
28
|
"root",
|
|
31
29
|
"container",
|
|
32
30
|
"item",
|
|
@@ -45,17 +43,17 @@ const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "
|
|
|
45
43
|
...b.map((e) => `grid-xl-${e}`)
|
|
46
44
|
]), ee = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
47
45
|
function x(e) {
|
|
48
|
-
const
|
|
49
|
-
return `${
|
|
46
|
+
const r = parseFloat(e);
|
|
47
|
+
return `${r}${String(e).replace(String(r), "") || "px"}`;
|
|
50
48
|
}
|
|
51
|
-
function
|
|
49
|
+
function ne({
|
|
52
50
|
theme: e,
|
|
53
|
-
ownerState:
|
|
51
|
+
ownerState: r
|
|
54
52
|
}) {
|
|
55
53
|
let t;
|
|
56
54
|
return e.breakpoints.keys.reduce((i, o) => {
|
|
57
55
|
let s = {};
|
|
58
|
-
if (
|
|
56
|
+
if (r[o] && (t = r[o]), !t)
|
|
59
57
|
return i;
|
|
60
58
|
if (t === !0)
|
|
61
59
|
s = {
|
|
@@ -73,15 +71,15 @@ function re({
|
|
|
73
71
|
};
|
|
74
72
|
else {
|
|
75
73
|
const c = v({
|
|
76
|
-
values:
|
|
74
|
+
values: r.columns,
|
|
77
75
|
breakpoints: e.breakpoints.values
|
|
78
76
|
}), p = typeof c == "object" ? c[o] : c;
|
|
79
77
|
if (p == null)
|
|
80
78
|
return i;
|
|
81
79
|
const l = `${Math.round(t / p * 1e8) / 1e6}%`;
|
|
82
80
|
let u = {};
|
|
83
|
-
if (
|
|
84
|
-
const a = e.spacing(
|
|
81
|
+
if (r.container && r.item && r.columnSpacing !== 0) {
|
|
82
|
+
const a = e.spacing(r.columnSpacing);
|
|
85
83
|
if (a !== "0px") {
|
|
86
84
|
const f = `calc(${l} + ${x(a)})`;
|
|
87
85
|
u = {
|
|
@@ -99,12 +97,12 @@ function re({
|
|
|
99
97
|
return e.breakpoints.values[o] === 0 ? Object.assign(i, s) : i[e.breakpoints.up(o)] = s, i;
|
|
100
98
|
}, {});
|
|
101
99
|
}
|
|
102
|
-
function
|
|
100
|
+
function re({
|
|
103
101
|
theme: e,
|
|
104
|
-
ownerState:
|
|
102
|
+
ownerState: r
|
|
105
103
|
}) {
|
|
106
104
|
const t = v({
|
|
107
|
-
values:
|
|
105
|
+
values: r.direction,
|
|
108
106
|
breakpoints: e.breakpoints.values
|
|
109
107
|
});
|
|
110
108
|
return T({
|
|
@@ -120,23 +118,23 @@ function ne({
|
|
|
120
118
|
}
|
|
121
119
|
function z({
|
|
122
120
|
breakpoints: e,
|
|
123
|
-
values:
|
|
121
|
+
values: r
|
|
124
122
|
}) {
|
|
125
123
|
let t = "";
|
|
126
|
-
Object.keys(
|
|
127
|
-
t === "" &&
|
|
124
|
+
Object.keys(r).forEach((o) => {
|
|
125
|
+
t === "" && r[o] !== 0 && (t = o);
|
|
128
126
|
});
|
|
129
127
|
const i = Object.keys(e).sort((o, s) => e[o] - e[s]);
|
|
130
128
|
return i.slice(0, i.indexOf(t));
|
|
131
129
|
}
|
|
132
130
|
function oe({
|
|
133
131
|
theme: e,
|
|
134
|
-
ownerState:
|
|
132
|
+
ownerState: r
|
|
135
133
|
}) {
|
|
136
134
|
const {
|
|
137
135
|
container: t,
|
|
138
136
|
rowSpacing: i
|
|
139
|
-
} =
|
|
137
|
+
} = r;
|
|
140
138
|
let o = {};
|
|
141
139
|
if (t && i !== 0) {
|
|
142
140
|
const s = v({
|
|
@@ -169,12 +167,12 @@ function oe({
|
|
|
169
167
|
}
|
|
170
168
|
function te({
|
|
171
169
|
theme: e,
|
|
172
|
-
ownerState:
|
|
170
|
+
ownerState: r
|
|
173
171
|
}) {
|
|
174
172
|
const {
|
|
175
173
|
container: t,
|
|
176
174
|
columnSpacing: i
|
|
177
|
-
} =
|
|
175
|
+
} = r;
|
|
178
176
|
let o = {};
|
|
179
177
|
if (t && i !== 0) {
|
|
180
178
|
const s = v({
|
|
@@ -207,21 +205,21 @@ function te({
|
|
|
207
205
|
}
|
|
208
206
|
return o;
|
|
209
207
|
}
|
|
210
|
-
function ie(e,
|
|
208
|
+
function ie(e, r, t = {}) {
|
|
211
209
|
if (!e || e <= 0)
|
|
212
210
|
return [];
|
|
213
211
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
214
212
|
return [t[`spacing-xs-${String(e)}`]];
|
|
215
213
|
const i = [];
|
|
216
|
-
return
|
|
214
|
+
return r.forEach((o) => {
|
|
217
215
|
const s = e[o];
|
|
218
216
|
Number(s) > 0 && i.push(t[`spacing-${o}-${String(s)}`]);
|
|
219
217
|
}), i;
|
|
220
218
|
}
|
|
221
|
-
const se =
|
|
219
|
+
const se = L("div", {
|
|
222
220
|
name: "MuiGrid",
|
|
223
221
|
slot: "Root",
|
|
224
|
-
overridesResolver: (e,
|
|
222
|
+
overridesResolver: (e, r) => {
|
|
225
223
|
const {
|
|
226
224
|
ownerState: t
|
|
227
225
|
} = e, {
|
|
@@ -234,12 +232,12 @@ const se = I("div", {
|
|
|
234
232
|
breakpoints: u
|
|
235
233
|
} = t;
|
|
236
234
|
let a = [];
|
|
237
|
-
i && (a = ie(c, u,
|
|
235
|
+
i && (a = ie(c, u, r));
|
|
238
236
|
const f = [];
|
|
239
237
|
return u.forEach((m) => {
|
|
240
238
|
const d = t[m];
|
|
241
|
-
d && f.push(
|
|
242
|
-
}), [
|
|
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];
|
|
243
241
|
}
|
|
244
242
|
})(({
|
|
245
243
|
ownerState: e
|
|
@@ -256,14 +254,14 @@ const se = I("div", {
|
|
|
256
254
|
minWidth: 0
|
|
257
255
|
}, e.wrap !== "wrap" && {
|
|
258
256
|
flexWrap: e.wrap
|
|
259
|
-
}),
|
|
260
|
-
function ae(e,
|
|
257
|
+
}), re, oe, te, ne);
|
|
258
|
+
function ae(e, r) {
|
|
261
259
|
if (!e || e <= 0)
|
|
262
260
|
return [];
|
|
263
261
|
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
264
262
|
return [`spacing-xs-${String(e)}`];
|
|
265
263
|
const t = [];
|
|
266
|
-
return
|
|
264
|
+
return r.forEach((i) => {
|
|
267
265
|
const o = e[i];
|
|
268
266
|
if (Number(o) > 0) {
|
|
269
267
|
const s = `spacing-${i}-${String(o)}`;
|
|
@@ -273,7 +271,7 @@ function ae(e, n) {
|
|
|
273
271
|
}
|
|
274
272
|
const ce = (e) => {
|
|
275
273
|
const {
|
|
276
|
-
classes:
|
|
274
|
+
classes: r,
|
|
277
275
|
container: t,
|
|
278
276
|
direction: i,
|
|
279
277
|
item: o,
|
|
@@ -292,14 +290,14 @@ const ce = (e) => {
|
|
|
292
290
|
const f = {
|
|
293
291
|
root: ["root", t && "container", o && "item", p && "zeroMinWidth", ...u, i !== "row" && `direction-xs-${String(i)}`, c !== "wrap" && `wrap-xs-${String(c)}`, ...a]
|
|
294
292
|
};
|
|
295
|
-
return
|
|
296
|
-
}, y = /* @__PURE__ */ S.forwardRef(function(
|
|
297
|
-
const i =
|
|
298
|
-
props:
|
|
293
|
+
return F(f, J, r);
|
|
294
|
+
}, y = /* @__PURE__ */ S.forwardRef(function(r, t) {
|
|
295
|
+
const i = U({
|
|
296
|
+
props: r,
|
|
299
297
|
name: "MuiGrid"
|
|
300
298
|
}), {
|
|
301
299
|
breakpoints: o
|
|
302
|
-
} =
|
|
300
|
+
} = Z(), s = A(i), {
|
|
303
301
|
className: c,
|
|
304
302
|
columns: p,
|
|
305
303
|
columnSpacing: l,
|
|
@@ -332,7 +330,7 @@ const ce = (e) => {
|
|
|
332
330
|
value: k,
|
|
333
331
|
children: /* @__PURE__ */ j.jsx(se, g({
|
|
334
332
|
ownerState: W,
|
|
335
|
-
className:
|
|
333
|
+
className: q(_.root, c),
|
|
336
334
|
as: u,
|
|
337
335
|
ref: t
|
|
338
336
|
}, G))
|
|
@@ -346,48 +344,48 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
346
344
|
/**
|
|
347
345
|
* The content of the component.
|
|
348
346
|
*/
|
|
349
|
-
children:
|
|
347
|
+
children: n.node,
|
|
350
348
|
/**
|
|
351
349
|
* Override or extend the styles applied to the component.
|
|
352
350
|
*/
|
|
353
|
-
classes:
|
|
351
|
+
classes: n.object,
|
|
354
352
|
/**
|
|
355
353
|
* @ignore
|
|
356
354
|
*/
|
|
357
|
-
className:
|
|
355
|
+
className: n.string,
|
|
358
356
|
/**
|
|
359
357
|
* The number of columns.
|
|
360
358
|
* @default 12
|
|
361
359
|
*/
|
|
362
|
-
columns:
|
|
360
|
+
columns: n.oneOfType([n.arrayOf(n.number), n.number, n.object]),
|
|
363
361
|
/**
|
|
364
362
|
* Defines the horizontal space between the type `item` components.
|
|
365
363
|
* It overrides the value of the `spacing` prop.
|
|
366
364
|
*/
|
|
367
|
-
columnSpacing:
|
|
365
|
+
columnSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
368
366
|
/**
|
|
369
367
|
* The component used for the root node.
|
|
370
368
|
* Either a string to use a HTML element or a component.
|
|
371
369
|
*/
|
|
372
|
-
component:
|
|
370
|
+
component: n.elementType,
|
|
373
371
|
/**
|
|
374
372
|
* If `true`, the component will have the flex *container* behavior.
|
|
375
373
|
* You should be wrapping *items* with a *container*.
|
|
376
374
|
* @default false
|
|
377
375
|
*/
|
|
378
|
-
container:
|
|
376
|
+
container: n.bool,
|
|
379
377
|
/**
|
|
380
378
|
* Defines the `flex-direction` style property.
|
|
381
379
|
* It is applied for all screen sizes.
|
|
382
380
|
* @default 'row'
|
|
383
381
|
*/
|
|
384
|
-
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]),
|
|
385
383
|
/**
|
|
386
384
|
* If `true`, the component will have the flex *item* behavior.
|
|
387
385
|
* You should be wrapping *items* with a *container*.
|
|
388
386
|
* @default false
|
|
389
387
|
*/
|
|
390
|
-
item:
|
|
388
|
+
item: n.bool,
|
|
391
389
|
/**
|
|
392
390
|
* If a number, it sets the number of columns the grid item uses.
|
|
393
391
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -397,7 +395,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
397
395
|
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
398
396
|
* @default false
|
|
399
397
|
*/
|
|
400
|
-
lg:
|
|
398
|
+
lg: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
401
399
|
/**
|
|
402
400
|
* If a number, it sets the number of columns the grid item uses.
|
|
403
401
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -407,12 +405,12 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
407
405
|
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
408
406
|
* @default false
|
|
409
407
|
*/
|
|
410
|
-
md:
|
|
408
|
+
md: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
411
409
|
/**
|
|
412
410
|
* Defines the vertical space between the type `item` components.
|
|
413
411
|
* It overrides the value of the `spacing` prop.
|
|
414
412
|
*/
|
|
415
|
-
rowSpacing:
|
|
413
|
+
rowSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
416
414
|
/**
|
|
417
415
|
* If a number, it sets the number of columns the grid item uses.
|
|
418
416
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -422,23 +420,23 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
422
420
|
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
423
421
|
* @default false
|
|
424
422
|
*/
|
|
425
|
-
sm:
|
|
423
|
+
sm: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
426
424
|
/**
|
|
427
425
|
* Defines the space between the type `item` components.
|
|
428
426
|
* It can only be used on a type `container` component.
|
|
429
427
|
* @default 0
|
|
430
428
|
*/
|
|
431
|
-
spacing:
|
|
429
|
+
spacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
432
430
|
/**
|
|
433
431
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
434
432
|
*/
|
|
435
|
-
sx:
|
|
433
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
436
434
|
/**
|
|
437
435
|
* Defines the `flex-wrap` style property.
|
|
438
436
|
* It's applied for all screen sizes.
|
|
439
437
|
* @default 'wrap'
|
|
440
438
|
*/
|
|
441
|
-
wrap:
|
|
439
|
+
wrap: n.oneOf(["nowrap", "wrap-reverse", "wrap"]),
|
|
442
440
|
/**
|
|
443
441
|
* If a number, it sets the number of columns the grid item uses.
|
|
444
442
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -448,7 +446,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
448
446
|
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
449
447
|
* @default false
|
|
450
448
|
*/
|
|
451
|
-
xl:
|
|
449
|
+
xl: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
452
450
|
/**
|
|
453
451
|
* If a number, it sets the number of columns the grid item uses.
|
|
454
452
|
* It can't be greater than the total number of columns of the container (12 by default).
|
|
@@ -458,13 +456,13 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
458
456
|
* The value is applied for all the screen sizes with the lowest priority.
|
|
459
457
|
* @default false
|
|
460
458
|
*/
|
|
461
|
-
xs:
|
|
459
|
+
xs: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
462
460
|
/**
|
|
463
461
|
* If `true`, it sets `min-width: 0` on the item.
|
|
464
462
|
* Refer to the limitations section of the documentation to better understand the use case.
|
|
465
463
|
* @default false
|
|
466
464
|
*/
|
|
467
|
-
zeroMinWidth:
|
|
465
|
+
zeroMinWidth: n.bool
|
|
468
466
|
});
|
|
469
467
|
if (process.env.NODE_ENV !== "production") {
|
|
470
468
|
const e = H("Grid", y);
|
|
@@ -479,7 +477,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
479
477
|
zeroMinWidth: e("item")
|
|
480
478
|
});
|
|
481
479
|
}
|
|
482
|
-
const
|
|
480
|
+
const de = y;
|
|
483
481
|
export {
|
|
484
|
-
|
|
482
|
+
de as G
|
|
485
483
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as k, a as g } from "./extends-135d7828.js";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import { P as n } from "./
|
|
4
|
-
import { u as
|
|
5
|
-
import { r as
|
|
6
|
-
import {
|
|
7
|
-
import { e as Q } from "./elementAcceptingRef-332a290a.js";
|
|
8
|
-
import { T as U } from "./Transition-2ecbc61d.js";
|
|
3
|
+
import { j as B, P as n } from "./identifier-2647f844.js";
|
|
4
|
+
import { u as J } from "./useTheme-6ea322ec.js";
|
|
5
|
+
import { T as M, r as Q, g as _ } from "./utils-acd98a68.js";
|
|
6
|
+
import { e as U } from "./elementAcceptingRef-bd96c731.js";
|
|
9
7
|
import { u as X } from "./useForkRef-0781dda0.js";
|
|
10
8
|
const Y = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
11
|
-
function x(
|
|
12
|
-
return `scale(${
|
|
9
|
+
function x(l) {
|
|
10
|
+
return `scale(${l}, ${l ** 2})`;
|
|
13
11
|
}
|
|
14
12
|
const Z = {
|
|
15
13
|
entering: {
|
|
@@ -24,7 +22,7 @@ const Z = {
|
|
|
24
22
|
const {
|
|
25
23
|
addEndListener: R,
|
|
26
24
|
appear: D = !0,
|
|
27
|
-
children:
|
|
25
|
+
children: m,
|
|
28
26
|
easing: b,
|
|
29
27
|
in: j,
|
|
30
28
|
onEnter: v,
|
|
@@ -36,14 +34,14 @@ const Z = {
|
|
|
36
34
|
style: p,
|
|
37
35
|
timeout: r = "auto",
|
|
38
36
|
// eslint-disable-next-line react/prop-types
|
|
39
|
-
TransitionComponent: C =
|
|
40
|
-
} = T, F = k(T, Y), L = c.useRef(), E = c.useRef(), s =
|
|
37
|
+
TransitionComponent: C = M
|
|
38
|
+
} = T, F = k(T, Y), L = c.useRef(), E = c.useRef(), s = J(), d = c.useRef(null), $ = X(d, m.ref, w), a = (t) => (i) => {
|
|
41
39
|
if (t) {
|
|
42
40
|
const o = d.current;
|
|
43
41
|
i === void 0 ? t(o) : t(o, i);
|
|
44
42
|
}
|
|
45
43
|
}, N = a(G), S = a((t, i) => {
|
|
46
|
-
|
|
44
|
+
Q(t);
|
|
47
45
|
const {
|
|
48
46
|
duration: o,
|
|
49
47
|
delay: f,
|
|
@@ -90,7 +88,7 @@ const Z = {
|
|
|
90
88
|
};
|
|
91
89
|
return c.useEffect(() => () => {
|
|
92
90
|
clearTimeout(L.current);
|
|
93
|
-
}, []), /* @__PURE__ */
|
|
91
|
+
}, []), /* @__PURE__ */ B.jsx(C, g({
|
|
94
92
|
appear: D,
|
|
95
93
|
in: j,
|
|
96
94
|
nodeRef: d,
|
|
@@ -103,12 +101,12 @@ const Z = {
|
|
|
103
101
|
addEndListener: V,
|
|
104
102
|
timeout: r === "auto" ? null : r
|
|
105
103
|
}, F, {
|
|
106
|
-
children: (t, i) => /* @__PURE__ */ c.cloneElement(
|
|
104
|
+
children: (t, i) => /* @__PURE__ */ c.cloneElement(m, g({
|
|
107
105
|
style: g({
|
|
108
106
|
opacity: 0,
|
|
109
107
|
transform: x(0.75),
|
|
110
108
|
visibility: t === "exited" && !j ? "hidden" : void 0
|
|
111
|
-
}, Z[t], p,
|
|
109
|
+
}, Z[t], p, m.props.style),
|
|
112
110
|
ref: $
|
|
113
111
|
}, i))
|
|
114
112
|
}));
|
|
@@ -133,7 +131,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
133
131
|
/**
|
|
134
132
|
* A single child content element.
|
|
135
133
|
*/
|
|
136
|
-
children:
|
|
134
|
+
children: U.isRequired,
|
|
137
135
|
/**
|
|
138
136
|
* The transition timing function.
|
|
139
137
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -188,7 +186,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
|
188
186
|
})])
|
|
189
187
|
});
|
|
190
188
|
y.muiSupportAuto = !0;
|
|
191
|
-
const
|
|
189
|
+
const sn = y;
|
|
192
190
|
export {
|
|
193
|
-
|
|
191
|
+
sn as G
|
|
194
192
|
};
|