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,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as f, _ as so } from "./extends-135d7828.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { P as e } from "./
|
|
4
|
-
import { g as
|
|
5
|
-
import {
|
|
6
|
-
import { j as S } from "./jsx-runtime-944c88e2.js";
|
|
7
|
-
import { B as zo } from "./ButtonBase-496494a5.js";
|
|
3
|
+
import { g as So, c as jo, j as S, P as e } from "./identifier-2647f844.js";
|
|
4
|
+
import { g as vo, s as F, u as yo, c as O, a as xo, r as te } from "./useThemeProps-ea792506.js";
|
|
5
|
+
import { B as zo } from "./ButtonBase-fa4630c8.js";
|
|
8
6
|
import { u as le } from "./unsupportedProp-3dbf01f6.js";
|
|
9
|
-
import { u as Lo } from "./useTheme-
|
|
7
|
+
import { u as Lo } from "./useTheme-6ea322ec.js";
|
|
10
8
|
import { u as re, a as bo } from "./useEventCallback-83a2883c.js";
|
|
11
9
|
import { d as mo, o as $o } from "./ownerWindow-e6cc3097.js";
|
|
12
|
-
import { r as ne } from "./refType-
|
|
13
|
-
import { c as ko } from "./createSvgIcon-
|
|
14
|
-
import { u as no } from "./useSlotProps-
|
|
10
|
+
import { r as ne } from "./refType-450337d6.js";
|
|
11
|
+
import { c as ko } from "./createSvgIcon-1aa1b2b2.js";
|
|
12
|
+
import { u as no } from "./useSlotProps-3b927bcb.js";
|
|
15
13
|
import { o as se } from "./ownerDocument-5430cd5b.js";
|
|
16
14
|
let U;
|
|
17
15
|
function Fo() {
|
|
@@ -33,24 +31,24 @@ function No(o, t) {
|
|
|
33
31
|
return n;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
34
|
+
function ae(o) {
|
|
35
|
+
return So("MuiTab", o);
|
|
38
36
|
}
|
|
39
|
-
const
|
|
37
|
+
const ie = vo("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), k = ie, ce = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], de = (o) => {
|
|
40
38
|
const {
|
|
41
39
|
classes: t,
|
|
42
40
|
textColor: n,
|
|
43
41
|
fullWidth: c,
|
|
44
|
-
wrapped:
|
|
42
|
+
wrapped: a,
|
|
45
43
|
icon: d,
|
|
46
44
|
label: m,
|
|
47
45
|
selected: b,
|
|
48
46
|
disabled: p
|
|
49
47
|
} = o, v = {
|
|
50
|
-
root: ["root", d && m && "labelIcon", `textColor${jo(n)}`, c && "fullWidth",
|
|
48
|
+
root: ["root", d && m && "labelIcon", `textColor${jo(n)}`, c && "fullWidth", a && "wrapped", b && "selected", p && "disabled"],
|
|
51
49
|
iconWrapper: ["iconWrapper"]
|
|
52
50
|
};
|
|
53
|
-
return
|
|
51
|
+
return xo(v, ae, t);
|
|
54
52
|
}, ue = F(zo, {
|
|
55
53
|
name: "MuiTab",
|
|
56
54
|
slot: "Root",
|
|
@@ -124,11 +122,11 @@ const ae = So("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
124
122
|
}, t.wrapped && {
|
|
125
123
|
fontSize: o.typography.pxToRem(12)
|
|
126
124
|
})), Ao = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
127
|
-
const c =
|
|
125
|
+
const c = yo({
|
|
128
126
|
props: t,
|
|
129
127
|
name: "MuiTab"
|
|
130
128
|
}), {
|
|
131
|
-
className:
|
|
129
|
+
className: a,
|
|
132
130
|
disabled: d = !1,
|
|
133
131
|
disableFocusRipple: m = !1,
|
|
134
132
|
// eslint-disable-next-line react/prop-types
|
|
@@ -148,7 +146,7 @@ const ae = So("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
148
146
|
// eslint-disable-next-line react/prop-types
|
|
149
147
|
textColor: D = "inherit",
|
|
150
148
|
value: I,
|
|
151
|
-
wrapped:
|
|
149
|
+
wrapped: ao = !1
|
|
152
150
|
} = c, H = so(c, ce), Y = f({}, c, {
|
|
153
151
|
disabled: d,
|
|
154
152
|
disableFocusRipple: m,
|
|
@@ -158,7 +156,7 @@ const ae = So("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
158
156
|
label: !!C,
|
|
159
157
|
fullWidth: b,
|
|
160
158
|
textColor: D,
|
|
161
|
-
wrapped:
|
|
159
|
+
wrapped: ao
|
|
162
160
|
}), _ = de(Y), j = p && C && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
|
|
163
161
|
className: O(_.iconWrapper, p.props.className)
|
|
164
162
|
}) : p, Q = (M) => {
|
|
@@ -168,7 +166,7 @@ const ae = So("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
168
166
|
};
|
|
169
167
|
return /* @__PURE__ */ S.jsxs(ue, f({
|
|
170
168
|
focusRipple: !m,
|
|
171
|
-
className: O(_.root,
|
|
169
|
+
className: O(_.root, a),
|
|
172
170
|
ref: n,
|
|
173
171
|
role: "tab",
|
|
174
172
|
"aria-selected": w,
|
|
@@ -261,7 +259,7 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
|
261
259
|
*/
|
|
262
260
|
wrapped: e.bool
|
|
263
261
|
});
|
|
264
|
-
const
|
|
262
|
+
const Ue = Ao, pe = ko(/* @__PURE__ */ S.jsx("path", {
|
|
265
263
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
266
264
|
}), "KeyboardArrowLeft"), fe = ko(/* @__PURE__ */ S.jsx("path", {
|
|
267
265
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
@@ -269,7 +267,7 @@ const Ke = Ao, pe = ko(/* @__PURE__ */ S.jsx("path", {
|
|
|
269
267
|
function be(o) {
|
|
270
268
|
return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
|
|
271
269
|
}
|
|
272
|
-
function he(o, t, n, c = {},
|
|
270
|
+
function he(o, t, n, c = {}, a = () => {
|
|
273
271
|
}) {
|
|
274
272
|
const {
|
|
275
273
|
ease: d = be,
|
|
@@ -283,20 +281,20 @@ function he(o, t, n, c = {}, i = () => {
|
|
|
283
281
|
v = !0;
|
|
284
282
|
}, C = (g) => {
|
|
285
283
|
if (v) {
|
|
286
|
-
|
|
284
|
+
a(new Error("Animation cancelled"));
|
|
287
285
|
return;
|
|
288
286
|
}
|
|
289
287
|
b === null && (b = g);
|
|
290
288
|
const y = Math.min(1, (g - b) / m);
|
|
291
289
|
if (t[o] = d(y) * (n - p) + p, y >= 1) {
|
|
292
290
|
requestAnimationFrame(() => {
|
|
293
|
-
|
|
291
|
+
a(null);
|
|
294
292
|
});
|
|
295
293
|
return;
|
|
296
294
|
}
|
|
297
295
|
requestAnimationFrame(C);
|
|
298
296
|
};
|
|
299
|
-
return p === n ? (
|
|
297
|
+
return p === n ? (a(new Error("Element already at target position")), R) : (requestAnimationFrame(C), R);
|
|
300
298
|
}
|
|
301
299
|
const me = ["onChange"], Se = {
|
|
302
300
|
width: 99,
|
|
@@ -308,14 +306,14 @@ const me = ["onChange"], Se = {
|
|
|
308
306
|
function Do(o) {
|
|
309
307
|
const {
|
|
310
308
|
onChange: t
|
|
311
|
-
} = o, n = so(o, me), c = u.useRef(),
|
|
312
|
-
c.current =
|
|
309
|
+
} = o, n = so(o, me), c = u.useRef(), a = u.useRef(null), d = () => {
|
|
310
|
+
c.current = a.current.offsetHeight - a.current.clientHeight;
|
|
313
311
|
};
|
|
314
312
|
return re(() => {
|
|
315
313
|
const m = mo(() => {
|
|
316
314
|
const p = c.current;
|
|
317
315
|
d(), p !== c.current && t(c.current);
|
|
318
|
-
}), b = $o(
|
|
316
|
+
}), b = $o(a.current);
|
|
319
317
|
return b.addEventListener("resize", m), () => {
|
|
320
318
|
m.clear(), b.removeEventListener("resize", m);
|
|
321
319
|
};
|
|
@@ -323,22 +321,22 @@ function Do(o) {
|
|
|
323
321
|
d(), t(c.current);
|
|
324
322
|
}, [t]), /* @__PURE__ */ S.jsx("div", f({
|
|
325
323
|
style: Se,
|
|
326
|
-
ref:
|
|
324
|
+
ref: a
|
|
327
325
|
}, n));
|
|
328
326
|
}
|
|
329
327
|
process.env.NODE_ENV !== "production" && (Do.propTypes = {
|
|
330
328
|
onChange: e.func.isRequired
|
|
331
329
|
});
|
|
332
330
|
function ve(o) {
|
|
333
|
-
return
|
|
331
|
+
return So("MuiTabScrollButton", o);
|
|
334
332
|
}
|
|
335
|
-
const ye =
|
|
333
|
+
const ye = vo("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), xe = ye, ge = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Te = (o) => {
|
|
336
334
|
const {
|
|
337
335
|
classes: t,
|
|
338
336
|
orientation: n,
|
|
339
337
|
disabled: c
|
|
340
338
|
} = o;
|
|
341
|
-
return
|
|
339
|
+
return xo({
|
|
342
340
|
root: ["root", n, c && "disabled"]
|
|
343
341
|
}, ve, t);
|
|
344
342
|
}, Be = F(zo, {
|
|
@@ -366,8 +364,8 @@ const ye = So("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
366
364
|
transform: `rotate(${o.isRtl ? -90 : 90}deg)`
|
|
367
365
|
}
|
|
368
366
|
})), Ho = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
369
|
-
var c,
|
|
370
|
-
const d =
|
|
367
|
+
var c, a;
|
|
368
|
+
const d = yo({
|
|
371
369
|
props: t,
|
|
372
370
|
name: "MuiTabScrollButton"
|
|
373
371
|
}), {
|
|
@@ -377,7 +375,7 @@ const ye = So("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
377
375
|
direction: v
|
|
378
376
|
} = d, R = so(d, ge), g = Lo().direction === "rtl", y = f({
|
|
379
377
|
isRtl: g
|
|
380
|
-
}, d), A = Te(y), w = (c = b.StartScrollButtonIcon) != null ? c : pe, x = (
|
|
378
|
+
}, d), A = Te(y), w = (c = b.StartScrollButtonIcon) != null ? c : pe, x = (a = b.EndScrollButtonIcon) != null ? a : fe, D = no({
|
|
381
379
|
elementType: w,
|
|
382
380
|
externalSlotProps: p.startScrollButtonIcon,
|
|
383
381
|
additionalProps: {
|
|
@@ -457,21 +455,21 @@ process.env.NODE_ENV !== "production" && (Ho.propTypes = {
|
|
|
457
455
|
});
|
|
458
456
|
const Ce = Ho;
|
|
459
457
|
function we(o) {
|
|
460
|
-
return
|
|
458
|
+
return So("MuiTabs", o);
|
|
461
459
|
}
|
|
462
|
-
const Ee =
|
|
463
|
-
let c = !1,
|
|
464
|
-
for (;
|
|
465
|
-
if (
|
|
460
|
+
const Ee = vo("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), ho = Ee, Ie = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Ro = (o, t) => o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o.firstChild, Po = (o, t) => o === t ? o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : o.lastChild, ro = (o, t, n) => {
|
|
461
|
+
let c = !1, a = n(o, t);
|
|
462
|
+
for (; a; ) {
|
|
463
|
+
if (a === o.firstChild) {
|
|
466
464
|
if (c)
|
|
467
465
|
return;
|
|
468
466
|
c = !0;
|
|
469
467
|
}
|
|
470
|
-
const d =
|
|
471
|
-
if (!
|
|
472
|
-
|
|
468
|
+
const d = a.disabled || a.getAttribute("aria-disabled") === "true";
|
|
469
|
+
if (!a.hasAttribute("tabindex") || d)
|
|
470
|
+
a = n(o, a);
|
|
473
471
|
else {
|
|
474
|
-
|
|
472
|
+
a.focus();
|
|
475
473
|
return;
|
|
476
474
|
}
|
|
477
475
|
}
|
|
@@ -480,19 +478,19 @@ const Ee = So("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
480
478
|
vertical: t,
|
|
481
479
|
fixed: n,
|
|
482
480
|
hideScrollbar: c,
|
|
483
|
-
scrollableX:
|
|
481
|
+
scrollableX: a,
|
|
484
482
|
scrollableY: d,
|
|
485
483
|
centered: m,
|
|
486
484
|
scrollButtonsHideMobile: b,
|
|
487
485
|
classes: p
|
|
488
486
|
} = o;
|
|
489
|
-
return
|
|
487
|
+
return xo({
|
|
490
488
|
root: ["root", t && "vertical"],
|
|
491
|
-
scroller: ["scroller", n && "fixed", c && "hideScrollbar",
|
|
489
|
+
scroller: ["scroller", n && "fixed", c && "hideScrollbar", a && "scrollableX", d && "scrollableY"],
|
|
492
490
|
flexContainer: ["flexContainer", t && "flexContainerVertical", m && "centered"],
|
|
493
491
|
indicator: ["indicator"],
|
|
494
492
|
scrollButtons: ["scrollButtons", b && "scrollButtonsHideMobile"],
|
|
495
|
-
scrollableX: [
|
|
493
|
+
scrollableX: [a && "scrollableX"],
|
|
496
494
|
hideScrollbar: [c && "hideScrollbar"]
|
|
497
495
|
}, we, p);
|
|
498
496
|
}, Ne = F("div", {
|
|
@@ -612,10 +610,10 @@ const Ee = So("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
612
610
|
}), Wo = {};
|
|
613
611
|
let Oo = !1;
|
|
614
612
|
const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
615
|
-
const c =
|
|
613
|
+
const c = yo({
|
|
616
614
|
props: t,
|
|
617
615
|
name: "MuiTabs"
|
|
618
|
-
}),
|
|
616
|
+
}), a = Lo(), d = a.direction === "rtl", {
|
|
619
617
|
"aria-label": m,
|
|
620
618
|
"aria-labelledby": b,
|
|
621
619
|
action: p,
|
|
@@ -629,7 +627,7 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
629
627
|
orientation: x = "horizontal",
|
|
630
628
|
ScrollButtonComponent: D = Ce,
|
|
631
629
|
scrollButtons: I = "auto",
|
|
632
|
-
selectionFollowsFocus:
|
|
630
|
+
selectionFollowsFocus: ao,
|
|
633
631
|
slots: H = {},
|
|
634
632
|
slotProps: Y = {},
|
|
635
633
|
TabIndicatorProps: _ = {},
|
|
@@ -637,7 +635,7 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
637
635
|
textColor: Q = "primary",
|
|
638
636
|
value: P,
|
|
639
637
|
variant: M = "standard",
|
|
640
|
-
visibleScrollbar:
|
|
638
|
+
visibleScrollbar: io = !1
|
|
641
639
|
} = c, Vo = so(c, Ie), N = M === "scrollable", T = x === "vertical", K = T ? "scrollTop" : "scrollLeft", Z = T ? "top" : "left", oo = T ? "bottom" : "right", co = T ? "clientHeight" : "clientWidth", q = T ? "height" : "width", z = f({}, c, {
|
|
642
640
|
component: g,
|
|
643
641
|
allowScrollButtonsMobile: y,
|
|
@@ -647,9 +645,9 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
647
645
|
scrollButtons: I,
|
|
648
646
|
textColor: Q,
|
|
649
647
|
variant: M,
|
|
650
|
-
visibleScrollbar:
|
|
648
|
+
visibleScrollbar: io,
|
|
651
649
|
fixed: !N,
|
|
652
|
-
hideScrollbar: N && !
|
|
650
|
+
hideScrollbar: N && !io,
|
|
653
651
|
scrollableX: N && !T,
|
|
654
652
|
scrollableY: N && T,
|
|
655
653
|
centered: v && !N,
|
|
@@ -674,24 +672,24 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
674
672
|
const l = E.current;
|
|
675
673
|
let r;
|
|
676
674
|
if (l) {
|
|
677
|
-
const
|
|
675
|
+
const i = l.getBoundingClientRect();
|
|
678
676
|
r = {
|
|
679
677
|
clientWidth: l.clientWidth,
|
|
680
678
|
scrollLeft: l.scrollLeft,
|
|
681
679
|
scrollTop: l.scrollTop,
|
|
682
|
-
scrollLeftNormalized: No(l,
|
|
680
|
+
scrollLeftNormalized: No(l, a.direction),
|
|
683
681
|
scrollWidth: l.scrollWidth,
|
|
684
|
-
top:
|
|
685
|
-
bottom:
|
|
686
|
-
left:
|
|
687
|
-
right:
|
|
682
|
+
top: i.top,
|
|
683
|
+
bottom: i.bottom,
|
|
684
|
+
left: i.left,
|
|
685
|
+
right: i.right
|
|
688
686
|
};
|
|
689
687
|
}
|
|
690
688
|
let s;
|
|
691
689
|
if (l && P !== !1) {
|
|
692
|
-
const
|
|
693
|
-
if (
|
|
694
|
-
const h =
|
|
690
|
+
const i = G.current.children;
|
|
691
|
+
if (i.length > 0) {
|
|
692
|
+
const h = i[eo.get(P)];
|
|
695
693
|
process.env.NODE_ENV !== "production" && (h || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, eo.keys ? `You can provide one of the following values: ${Array.from(eo.keys()).join(", ")}.` : null].join(`
|
|
696
694
|
`))), s = h ? h.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Oo && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
697
695
|
r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
@@ -707,29 +705,29 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
707
705
|
tabsMeta: l,
|
|
708
706
|
tabMeta: r
|
|
709
707
|
} = Co();
|
|
710
|
-
let s = 0,
|
|
708
|
+
let s = 0, i;
|
|
711
709
|
if (T)
|
|
712
|
-
|
|
713
|
-
else if (
|
|
710
|
+
i = "top", r && l && (s = r.top - l.top + l.scrollTop);
|
|
711
|
+
else if (i = d ? "right" : "left", r && l) {
|
|
714
712
|
const B = d ? l.scrollLeftNormalized + l.clientWidth - l.scrollWidth : l.scrollLeft;
|
|
715
|
-
s = (d ? -1 : 1) * (r[
|
|
713
|
+
s = (d ? -1 : 1) * (r[i] - l[i] + B);
|
|
716
714
|
}
|
|
717
715
|
const h = {
|
|
718
|
-
[
|
|
716
|
+
[i]: s,
|
|
719
717
|
// May be wrong until the font is loaded.
|
|
720
718
|
[q]: r ? r[q] : 0
|
|
721
719
|
};
|
|
722
|
-
if (isNaN(L[
|
|
720
|
+
if (isNaN(L[i]) || isNaN(L[q]))
|
|
723
721
|
To(h);
|
|
724
722
|
else {
|
|
725
|
-
const B = Math.abs(L[
|
|
723
|
+
const B = Math.abs(L[i] - h[i]), X = Math.abs(L[q] - h[q]);
|
|
726
724
|
(B >= 1 || X >= 1) && To(h);
|
|
727
725
|
}
|
|
728
726
|
}), uo = (l, {
|
|
729
727
|
animation: r = !0
|
|
730
728
|
} = {}) => {
|
|
731
729
|
r ? he(K, E.current, l, {
|
|
732
|
-
duration:
|
|
730
|
+
duration: a.transitions.duration.standard
|
|
733
731
|
}) : E.current[K] = l;
|
|
734
732
|
}, wo = (l) => {
|
|
735
733
|
let r = E.current[K];
|
|
@@ -738,10 +736,10 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
738
736
|
const l = E.current[co];
|
|
739
737
|
let r = 0;
|
|
740
738
|
const s = Array.from(G.current.children);
|
|
741
|
-
for (let
|
|
742
|
-
const h = s[
|
|
739
|
+
for (let i = 0; i < s.length; i += 1) {
|
|
740
|
+
const h = s[i];
|
|
743
741
|
if (r + h[co] > l) {
|
|
744
|
-
|
|
742
|
+
i === 0 && (r = l);
|
|
745
743
|
break;
|
|
746
744
|
}
|
|
747
745
|
r += h[co];
|
|
@@ -797,13 +795,13 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
797
795
|
} = Co();
|
|
798
796
|
if (!(!s || !r)) {
|
|
799
797
|
if (s[Z] < r[Z]) {
|
|
800
|
-
const
|
|
801
|
-
uo(
|
|
798
|
+
const i = r[K] + (s[Z] - r[Z]);
|
|
799
|
+
uo(i, {
|
|
802
800
|
animation: l
|
|
803
801
|
});
|
|
804
802
|
} else if (s[oo] > r[oo]) {
|
|
805
|
-
const
|
|
806
|
-
uo(
|
|
803
|
+
const i = r[K] + (s[oo] - r[oo]);
|
|
804
|
+
uo(i, {
|
|
807
805
|
animation: l
|
|
808
806
|
});
|
|
809
807
|
}
|
|
@@ -814,15 +812,15 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
814
812
|
scrollTop: l,
|
|
815
813
|
scrollHeight: r,
|
|
816
814
|
clientHeight: s,
|
|
817
|
-
scrollWidth:
|
|
815
|
+
scrollWidth: i,
|
|
818
816
|
clientWidth: h
|
|
819
817
|
} = E.current;
|
|
820
818
|
let B, X;
|
|
821
819
|
if (T)
|
|
822
820
|
B = l > 1, X = l < r - s - 1;
|
|
823
821
|
else {
|
|
824
|
-
const lo = No(E.current,
|
|
825
|
-
B = d ? lo <
|
|
822
|
+
const lo = No(E.current, a.direction);
|
|
823
|
+
B = d ? lo < i - h - 1 : lo > 1, X = d ? lo > 1 : lo < i - h - 1;
|
|
826
824
|
}
|
|
827
825
|
(B !== V.start || X !== V.end) && Ko({
|
|
828
826
|
start: B,
|
|
@@ -836,8 +834,8 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
836
834
|
}), r = $o(E.current);
|
|
837
835
|
r.addEventListener("resize", l);
|
|
838
836
|
let s;
|
|
839
|
-
return typeof ResizeObserver < "u" && (s = new ResizeObserver(l), Array.from(G.current.children).forEach((
|
|
840
|
-
s.observe(
|
|
837
|
+
return typeof ResizeObserver < "u" && (s = new ResizeObserver(l), Array.from(G.current.children).forEach((i) => {
|
|
838
|
+
s.observe(i);
|
|
841
839
|
})), () => {
|
|
842
840
|
l.clear(), r.removeEventListener("resize", l), s && s.disconnect();
|
|
843
841
|
};
|
|
@@ -875,7 +873,7 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
875
873
|
fullWidth: M === "fullWidth",
|
|
876
874
|
indicator: s && !go && Mo,
|
|
877
875
|
selected: s,
|
|
878
|
-
selectionFollowsFocus:
|
|
876
|
+
selectionFollowsFocus: ao,
|
|
879
877
|
onChange: w,
|
|
880
878
|
textColor: Q,
|
|
881
879
|
value: r
|
|
@@ -913,7 +911,7 @@ const _o = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
913
911
|
ownerState: z,
|
|
914
912
|
style: {
|
|
915
913
|
overflow: Bo.overflow,
|
|
916
|
-
[T ? `margin${d ? "Left" : "Right"}` : "marginBottom"]:
|
|
914
|
+
[T ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: io ? void 0 : -Bo.scrollbarWidth
|
|
917
915
|
},
|
|
918
916
|
ref: E,
|
|
919
917
|
onScroll: po,
|
|
@@ -1080,9 +1078,9 @@ process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
|
1080
1078
|
*/
|
|
1081
1079
|
visibleScrollbar: e.bool
|
|
1082
1080
|
});
|
|
1083
|
-
const
|
|
1081
|
+
const Ye = _o;
|
|
1084
1082
|
export {
|
|
1085
|
-
|
|
1086
|
-
|
|
1083
|
+
Ye as T,
|
|
1084
|
+
Ue as a,
|
|
1087
1085
|
ho as t
|
|
1088
1086
|
};
|