kdpa-components 1.35.2 → 1.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/index.d.ts +3 -0
- package/dist/Accordion/index.d.ts.map +1 -0
- package/dist/Accordion/index.js +481 -0
- package/dist/AdvancedList/index.d.ts +2 -0
- package/dist/AdvancedList/index.d.ts.map +1 -0
- package/dist/AdvancedList/index.js +16751 -0
- package/dist/Alert/index.d.ts +5 -0
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/Alert/index.js +407 -0
- package/dist/ArrowDropDown-76613637.js +35 -0
- package/dist/Autocomplete-45ae6737.js +1670 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/index.d.ts.map +1 -0
- package/dist/Avatar/index.js +210 -0
- package/dist/Badge/index.d.ts +6 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js +69 -0
- package/dist/Badge-26e8a2aa.js +392 -0
- package/dist/Box-a827334a.js +58 -0
- package/dist/Button-b93e890d.js +355 -0
- package/dist/ButtonBase-0f9f324d.js +655 -0
- package/dist/Buttons/index.d.ts +9 -0
- package/dist/Buttons/index.d.ts.map +1 -0
- package/dist/Buttons/index.js +83 -0
- package/dist/CSSTransition-d0281d1f.js +215 -0
- package/dist/Cards/index.d.ts +3 -0
- package/dist/Cards/index.d.ts.map +1 -0
- package/dist/Cards/index.js +144 -0
- package/dist/CheckBox/index.d.ts +3 -0
- package/dist/CheckBox/index.d.ts.map +1 -0
- package/dist/CheckBox/index.js +32 -0
- package/dist/Checkbox-2cb33932.js +199 -0
- package/dist/Chip/index.d.ts +3 -0
- package/dist/Chip/index.d.ts.map +1 -0
- package/dist/Chip/index.js +61 -0
- package/dist/Chip-7b1a25ce.js +444 -0
- package/dist/CircularProgress-2c55d9ef.js +217 -0
- package/dist/Close-ef7a3b6b.js +9 -0
- package/dist/CodeEditor/index.d.ts +2 -0
- package/dist/CodeEditor/index.d.ts.map +1 -0
- package/dist/CodeEditor/index.js +559 -0
- package/dist/Collapse/index.d.ts +3 -0
- package/dist/Collapse/index.d.ts.map +1 -0
- package/dist/Collapse/index.js +23 -0
- package/dist/Collapse-4b8b3146.js +299 -0
- package/dist/CopyToClipboard/index.d.ts +3 -0
- package/dist/CopyToClipboard/index.d.ts.map +1 -0
- package/dist/CopyToClipboard/index.js +591 -0
- package/dist/Dialog-25ebaee6.js +356 -0
- package/dist/Divider/index.d.ts +4 -0
- package/dist/Divider/index.d.ts.map +1 -0
- package/dist/Divider/index.js +31 -0
- package/dist/Divider-cadf67a7.js +231 -0
- package/dist/DropZone/index.d.ts +2 -0
- package/dist/DropZone/index.d.ts.map +1 -0
- package/dist/DropZone/index.js +1348 -0
- package/dist/Fade-aabbd0cb.js +163 -0
- package/dist/FormControl/index.d.ts +5 -0
- package/dist/FormControl/index.d.ts.map +1 -0
- package/dist/FormControl/index.js +24 -0
- package/dist/FormControl-e7294bde.js +232 -0
- package/dist/FormControlLabel-276f1b1e.js +214 -0
- package/dist/FullScreenDialog/index.d.ts +3 -0
- package/dist/FullScreenDialog/index.d.ts.map +1 -0
- package/dist/FullScreenDialog/index.js +42 -0
- package/dist/Grid/index.d.ts +3 -0
- package/dist/Grid/index.d.ts.map +1 -0
- package/dist/Grid/index.js +17 -0
- package/dist/Grid-c1f5fe6b.js +486 -0
- package/dist/Grow-151a20f6.js +193 -0
- package/dist/HTMLElementType-ff213f3c.js +9 -0
- package/dist/IconButton-fdbca6d2.js +184 -0
- package/dist/Input/index.d.ts +7 -0
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/Input/index.js +88 -0
- package/dist/InputAdornment-3334ace2.js +155 -0
- package/dist/KdpaAutoComplete-40e0949e.js +8 -0
- package/dist/KdpaCollapse-d9e37824.js +11 -0
- package/dist/KdpaFormControl-2d7c1db8.js +6 -0
- package/dist/KdpaIconButton-514e0d96.js +23 -0
- package/dist/KdpaMenuItem-085f686f.js +36 -0
- package/dist/KdpaSecondaryButton-14992523.js +25 -0
- package/dist/KeyboardArrowRight-14dbe7d6.js +12 -0
- package/dist/LazyDrop/index.d.ts +3 -0
- package/dist/LazyDrop/index.d.ts.map +1 -0
- package/dist/LazyDrop/index.js +839 -0
- package/dist/ListContext-de5072f9.js +7 -0
- package/dist/ListItem-2b5c2e20.js +426 -0
- package/dist/ListItemText-fcd66149.js +150 -0
- package/dist/Loading/KdpaProgress/index.d.ts +3 -0
- package/dist/Loading/KdpaProgress/index.d.ts.map +1 -0
- package/dist/Loading/KdpaProgress/index.js +56 -0
- package/dist/Loading/index.d.ts +6 -0
- package/dist/Loading/index.d.ts.map +1 -0
- package/dist/Loading/index.js +348 -0
- package/dist/MenuItem-cc037c5b.js +240 -0
- package/dist/Modal/index.d.ts +2 -0
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/index.js +751 -0
- package/dist/Modal-5f23fcfd.js +984 -0
- package/dist/PaginationGrid/index.d.ts +3 -0
- package/dist/PaginationGrid/index.d.ts.map +1 -0
- package/dist/PaginationGrid/index.js +60 -0
- package/dist/Paper-aaec61a3.js +163 -0
- package/dist/Pickers/index.d.ts +7 -0
- package/dist/Pickers/index.d.ts.map +1 -0
- package/dist/Pickers/index.js +14408 -0
- package/dist/Popper-490e6477.js +490 -0
- package/dist/Portal-b4f8657f.js +77 -0
- package/dist/Radio/index.d.ts +5 -0
- package/dist/Radio/index.d.ts.map +1 -0
- package/dist/Radio/index.js +431 -0
- package/dist/Segment/index.d.ts +3 -0
- package/dist/Segment/index.d.ts.map +1 -0
- package/dist/Segment/index.js +84 -0
- package/dist/Selects/index.d.ts +7 -0
- package/dist/Selects/index.d.ts.map +1 -0
- package/dist/Selects/index.js +66 -0
- package/dist/SimpleList/index.d.ts +2 -0
- package/dist/SimpleList/index.d.ts.map +1 -0
- package/dist/SimpleList/index.js +1913 -0
- package/dist/Skeleton-263b2beb.js +213 -0
- package/dist/Slide-3bc7a346.js +227 -0
- package/dist/Slider/index.d.ts +3 -0
- package/dist/Slider/index.d.ts.map +1 -0
- package/dist/Slider/index.js +1322 -0
- package/dist/SweetAlerts/index.d.ts +6 -0
- package/dist/SweetAlerts/index.d.ts.map +1 -0
- package/dist/SweetAlerts/index.js +1540 -0
- package/dist/Switch/index.d.ts +3 -0
- package/dist/Switch/index.d.ts.map +1 -0
- package/dist/Switch/index.js +39 -0
- package/dist/Switch-ef584fc0.js +302 -0
- package/dist/SwitchBase-c367ca3c.js +231 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.d.ts.map +1 -0
- package/dist/Tabs/index.js +63 -0
- package/dist/Tabs-9775b0bb.js +1084 -0
- package/dist/TextField-b8c731e8.js +4439 -0
- package/dist/ThemeProvider/index.d.ts +4 -0
- package/dist/ThemeProvider/index.d.ts.map +1 -0
- package/dist/ThemeProvider/index.js +294 -0
- package/dist/Tooltip-4b1baf1b.js +584 -0
- package/dist/Tooltips/index.d.ts +3 -0
- package/dist/Tooltips/index.d.ts.map +1 -0
- package/dist/Tooltips/index.js +46 -0
- package/dist/TransitionGroup-196acb6a.js +185 -0
- package/dist/TransitionGroupContext-7435e195.js +10 -0
- package/dist/Transitions/index.d.ts +11 -0
- package/dist/Transitions/index.d.ts.map +1 -0
- package/dist/Transitions/index.js +34 -0
- package/dist/Tree/index.d.ts +3 -0
- package/dist/Tree/index.d.ts.map +1 -0
- package/dist/Tree/index.js +1447 -0
- package/dist/TreeSelect/index.d.ts +3 -0
- package/dist/TreeSelect/index.d.ts.map +1 -0
- package/dist/TreeSelect/index.js +6888 -0
- package/dist/Typography/index.d.ts +3 -0
- package/dist/Typography/index.d.ts.map +1 -0
- package/dist/Typography/index.js +14 -0
- package/dist/Typography-dfa51fea.js +176 -0
- package/dist/Uploader/index.d.ts +3 -0
- package/dist/Uploader/index.d.ts.map +1 -0
- package/dist/Uploader/index.js +81 -0
- package/dist/Zoom-b84bdc2b.js +163 -0
- package/dist/_commonjsHelpers-92157f1b.js +36 -0
- package/dist/assertThisInitialized-05701a63.js +8 -0
- package/dist/chainPropTypes-004bf492.js +8 -0
- package/dist/createChainedFunction-68e2a88d.js +9 -0
- package/dist/createSvgIcon-b80a8a41.js +182 -0
- package/dist/dividerClasses-99758da7.js +10 -0
- package/dist/elementAcceptingRef-803dfd80.js +26 -0
- package/dist/elementTypeAcceptingRef-6c34f16b.js +23 -0
- package/dist/emotion-is-prop-valid.esm-b7f48706.js +191 -0
- package/dist/emotion-memoize.esm-021d0d4e.js +9 -0
- package/dist/emotion-react.browser.esm-d563ed65.js +255 -0
- package/dist/exactProp-3aaa3ecc.js +13 -0
- package/dist/extendSxProp-f7714a31.js +30 -0
- package/dist/extends-393586f3.js +22 -0
- package/dist/formControlState-9148c46f.js +10 -0
- package/dist/hoist-non-react-statics.cjs-ce2f2873.js +236 -0
- package/dist/iconBase-800b43ff.js +63 -0
- package/dist/identifier-9dfe30d8.js +3320 -0
- package/dist/index-116f732f.js +749 -0
- package/dist/index-7e2d793d.js +12011 -0
- package/dist/index-fa965a10.js +43 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm-b78383d3.js +35 -0
- package/dist/isMuiElement-b88a921a.js +7 -0
- package/dist/jsx-runtime-944c88e2.js +631 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/listItemTextClasses-d6839c02.js +10 -0
- package/dist/ownerDocument-5430cd5b.js +6 -0
- package/dist/ownerWindow-e6cc3097.js +20 -0
- package/dist/popper-78c6b162.js +1006 -0
- package/dist/refType-af1a9f54.js +5 -0
- package/dist/setPrototypeOf-98a00546.js +8 -0
- package/dist/style.css +1 -0
- package/dist/toPropertyKey-e295cd73.js +27 -0
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
- package/dist/types/designerKit/utils/typographyHelper.d.ts +1 -2
- package/dist/types/designerKit/utils/typographyHelper.d.ts.map +1 -1
- package/dist/unsupportedProp-3dbf01f6.js +9 -0
- package/dist/useControlled-cc2d41cb.js +31 -0
- package/dist/useEventCallback-fe4fd69c.js +16 -0
- package/dist/useForkRef-0781dda0.js +15 -0
- package/dist/useFormControl-af690c26.js +11 -0
- package/dist/useId-e7dff7be.js +19 -0
- package/dist/useIsFocusVisible-4693b580.js +68 -0
- package/dist/usePreviousProps-c1ae4548.js +10 -0
- package/dist/useSlotProps-f238319f.js +74 -0
- package/dist/useTheme-014a54ad.js +10 -0
- package/dist/useThemeProps-7d04a175.js +513 -0
- package/dist/utils-129661c6.js +370 -0
- package/package.json +1 -1
- package/dist/types/designerKit/components/Alert/Temp.d.ts +0 -3
- package/dist/types/designerKit/components/Alert/Temp.d.ts.map +0 -1
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +0 -12
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +0 -1
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +0 -5
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +0 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +0 -9
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +0 -1
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +0 -53
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +0 -1
- package/dist/types/designerKit/utils/fileUtils.d.ts +0 -19
- package/dist/types/designerKit/utils/fileUtils.d.ts.map +0 -1
- package/dist/types/designerKit/utils/useTreeHelper.d.ts +0 -17
- package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +0 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { j as o } from "../jsx-runtime-944c88e2.js";
|
|
2
|
+
import { KdpaTooltip as m } from "../Tooltips/index.js";
|
|
3
|
+
import { B as n } from "../Button-b93e890d.js";
|
|
4
|
+
import { K as _ } from "../KdpaIconButton-514e0d96.js";
|
|
5
|
+
import { K as tt } from "../KdpaSecondaryButton-14992523.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "../Tooltip-4b1baf1b.js";
|
|
8
|
+
import "../extends-393586f3.js";
|
|
9
|
+
import "../identifier-9dfe30d8.js";
|
|
10
|
+
import "../emotion-memoize.esm-021d0d4e.js";
|
|
11
|
+
import "../_commonjsHelpers-92157f1b.js";
|
|
12
|
+
import "../useThemeProps-7d04a175.js";
|
|
13
|
+
import "../emotion-is-prop-valid.esm-b7f48706.js";
|
|
14
|
+
import "../useTheme-014a54ad.js";
|
|
15
|
+
import "../Popper-490e6477.js";
|
|
16
|
+
import "../Portal-b4f8657f.js";
|
|
17
|
+
import "react-dom";
|
|
18
|
+
import "../useForkRef-0781dda0.js";
|
|
19
|
+
import "../useEventCallback-fe4fd69c.js";
|
|
20
|
+
import "../HTMLElementType-ff213f3c.js";
|
|
21
|
+
import "../exactProp-3aaa3ecc.js";
|
|
22
|
+
import "../ownerDocument-5430cd5b.js";
|
|
23
|
+
import "../chainPropTypes-004bf492.js";
|
|
24
|
+
import "../refType-af1a9f54.js";
|
|
25
|
+
import "../popper-78c6b162.js";
|
|
26
|
+
import "../useSlotProps-f238319f.js";
|
|
27
|
+
import "../useControlled-cc2d41cb.js";
|
|
28
|
+
import "../useId-e7dff7be.js";
|
|
29
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
30
|
+
import "../Grow-151a20f6.js";
|
|
31
|
+
import "../utils-129661c6.js";
|
|
32
|
+
import "../TransitionGroupContext-7435e195.js";
|
|
33
|
+
import "../setPrototypeOf-98a00546.js";
|
|
34
|
+
import "../elementAcceptingRef-803dfd80.js";
|
|
35
|
+
import "../Zoom-b84bdc2b.js";
|
|
36
|
+
import "../ButtonBase-0f9f324d.js";
|
|
37
|
+
import "../emotion-react.browser.esm-d563ed65.js";
|
|
38
|
+
import "../hoist-non-react-statics.cjs-ce2f2873.js";
|
|
39
|
+
import "../TransitionGroup-196acb6a.js";
|
|
40
|
+
import "../assertThisInitialized-05701a63.js";
|
|
41
|
+
import "../elementTypeAcceptingRef-6c34f16b.js";
|
|
42
|
+
import "../IconButton-fdbca6d2.js";
|
|
43
|
+
function V({
|
|
44
|
+
children: r,
|
|
45
|
+
tooltipText: i = "",
|
|
46
|
+
variant: p = "contained",
|
|
47
|
+
...t
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ o.jsx(m, { title: i, ...t, children: /* @__PURE__ */ o.jsx(
|
|
50
|
+
n,
|
|
51
|
+
{
|
|
52
|
+
sx: { minWidth: "36px" },
|
|
53
|
+
variant: p,
|
|
54
|
+
...t,
|
|
55
|
+
children: r
|
|
56
|
+
}
|
|
57
|
+
) });
|
|
58
|
+
}
|
|
59
|
+
function X({
|
|
60
|
+
children: r,
|
|
61
|
+
icon: i,
|
|
62
|
+
tooltipText: p,
|
|
63
|
+
onClick: t,
|
|
64
|
+
...a
|
|
65
|
+
}) {
|
|
66
|
+
return /* @__PURE__ */ o.jsx(m, { title: p, children: /* @__PURE__ */ o.jsx(
|
|
67
|
+
n,
|
|
68
|
+
{
|
|
69
|
+
onClick: t,
|
|
70
|
+
variant: "contained",
|
|
71
|
+
sx: { minWidth: "36px" },
|
|
72
|
+
startIcon: i,
|
|
73
|
+
...a,
|
|
74
|
+
children: r
|
|
75
|
+
}
|
|
76
|
+
) });
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
V as KdpaButton,
|
|
80
|
+
_ as KdpaIconButton,
|
|
81
|
+
X as KdpaPrimaryButton,
|
|
82
|
+
tt as KdpaSecondaryButton
|
|
83
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { a as N, _ as m } from "./extends-393586f3.js";
|
|
2
|
+
import { _ as A } from "./TransitionGroupContext-7435e195.js";
|
|
3
|
+
import { P as v } from "./identifier-9dfe30d8.js";
|
|
4
|
+
import E from "react";
|
|
5
|
+
import { f as _, T as x, c as $ } from "./utils-129661c6.js";
|
|
6
|
+
function L(e, t) {
|
|
7
|
+
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
8
|
+
}
|
|
9
|
+
function S(e, t) {
|
|
10
|
+
e.classList ? e.classList.add(t) : L(e, t) || (typeof e.className == "string" ? e.className = e.className + " " + t : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + t));
|
|
11
|
+
}
|
|
12
|
+
function g(e, t) {
|
|
13
|
+
return e.replace(new RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
14
|
+
}
|
|
15
|
+
function T(e, t) {
|
|
16
|
+
e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = g(e.className, t) : e.setAttribute("class", g(e.className && e.className.baseVal || "", t));
|
|
17
|
+
}
|
|
18
|
+
var P = function(t, l) {
|
|
19
|
+
return t && l && l.split(" ").forEach(function(s) {
|
|
20
|
+
return S(t, s);
|
|
21
|
+
});
|
|
22
|
+
}, d = function(t, l) {
|
|
23
|
+
return t && l && l.split(" ").forEach(function(s) {
|
|
24
|
+
return T(t, s);
|
|
25
|
+
});
|
|
26
|
+
}, C = /* @__PURE__ */ function(e) {
|
|
27
|
+
A(t, e);
|
|
28
|
+
function t() {
|
|
29
|
+
for (var s, i = arguments.length, p = new Array(i), o = 0; o < i; o++)
|
|
30
|
+
p[o] = arguments[o];
|
|
31
|
+
return s = e.call.apply(e, [this].concat(p)) || this, s.appliedClasses = {
|
|
32
|
+
appear: {},
|
|
33
|
+
enter: {},
|
|
34
|
+
exit: {}
|
|
35
|
+
}, s.onEnter = function(a, r) {
|
|
36
|
+
var n = s.resolveArguments(a, r), c = n[0], f = n[1];
|
|
37
|
+
s.removeClasses(c, "exit"), s.addClass(c, f ? "appear" : "enter", "base"), s.props.onEnter && s.props.onEnter(a, r);
|
|
38
|
+
}, s.onEntering = function(a, r) {
|
|
39
|
+
var n = s.resolveArguments(a, r), c = n[0], f = n[1], u = f ? "appear" : "enter";
|
|
40
|
+
s.addClass(c, u, "active"), s.props.onEntering && s.props.onEntering(a, r);
|
|
41
|
+
}, s.onEntered = function(a, r) {
|
|
42
|
+
var n = s.resolveArguments(a, r), c = n[0], f = n[1], u = f ? "appear" : "enter";
|
|
43
|
+
s.removeClasses(c, u), s.addClass(c, u, "done"), s.props.onEntered && s.props.onEntered(a, r);
|
|
44
|
+
}, s.onExit = function(a) {
|
|
45
|
+
var r = s.resolveArguments(a), n = r[0];
|
|
46
|
+
s.removeClasses(n, "appear"), s.removeClasses(n, "enter"), s.addClass(n, "exit", "base"), s.props.onExit && s.props.onExit(a);
|
|
47
|
+
}, s.onExiting = function(a) {
|
|
48
|
+
var r = s.resolveArguments(a), n = r[0];
|
|
49
|
+
s.addClass(n, "exit", "active"), s.props.onExiting && s.props.onExiting(a);
|
|
50
|
+
}, s.onExited = function(a) {
|
|
51
|
+
var r = s.resolveArguments(a), n = r[0];
|
|
52
|
+
s.removeClasses(n, "exit"), s.addClass(n, "exit", "done"), s.props.onExited && s.props.onExited(a);
|
|
53
|
+
}, s.resolveArguments = function(a, r) {
|
|
54
|
+
return s.props.nodeRef ? [s.props.nodeRef.current, a] : [a, r];
|
|
55
|
+
}, s.getClassNames = function(a) {
|
|
56
|
+
var r = s.props.classNames, n = typeof r == "string", c = n && r ? r + "-" : "", f = n ? "" + c + a : r[a], u = n ? f + "-active" : r[a + "Active"], h = n ? f + "-done" : r[a + "Done"];
|
|
57
|
+
return {
|
|
58
|
+
baseClassName: f,
|
|
59
|
+
activeClassName: u,
|
|
60
|
+
doneClassName: h
|
|
61
|
+
};
|
|
62
|
+
}, s;
|
|
63
|
+
}
|
|
64
|
+
var l = t.prototype;
|
|
65
|
+
return l.addClass = function(i, p, o) {
|
|
66
|
+
var a = this.getClassNames(p)[o + "ClassName"], r = this.getClassNames("enter"), n = r.doneClassName;
|
|
67
|
+
p === "appear" && o === "done" && n && (a += " " + n), o === "active" && i && _(i), a && (this.appliedClasses[p][o] = a, P(i, a));
|
|
68
|
+
}, l.removeClasses = function(i, p) {
|
|
69
|
+
var o = this.appliedClasses[p], a = o.base, r = o.active, n = o.done;
|
|
70
|
+
this.appliedClasses[p] = {}, a && d(i, a), r && d(i, r), n && d(i, n);
|
|
71
|
+
}, l.render = function() {
|
|
72
|
+
var i = this.props;
|
|
73
|
+
i.classNames;
|
|
74
|
+
var p = N(i, ["classNames"]);
|
|
75
|
+
return /* @__PURE__ */ E.createElement(x, m({}, p, {
|
|
76
|
+
onEnter: this.onEnter,
|
|
77
|
+
onEntered: this.onEntered,
|
|
78
|
+
onEntering: this.onEntering,
|
|
79
|
+
onExit: this.onExit,
|
|
80
|
+
onExiting: this.onExiting,
|
|
81
|
+
onExited: this.onExited
|
|
82
|
+
}));
|
|
83
|
+
}, t;
|
|
84
|
+
}(E.Component);
|
|
85
|
+
C.defaultProps = {
|
|
86
|
+
classNames: ""
|
|
87
|
+
};
|
|
88
|
+
C.propTypes = process.env.NODE_ENV !== "production" ? m({}, x.propTypes, {
|
|
89
|
+
/**
|
|
90
|
+
* The animation classNames applied to the component as it appears, enters,
|
|
91
|
+
* exits or has finished the transition. A single name can be provided, which
|
|
92
|
+
* will be suffixed for each stage, e.g. `classNames="fade"` applies:
|
|
93
|
+
*
|
|
94
|
+
* - `fade-appear`, `fade-appear-active`, `fade-appear-done`
|
|
95
|
+
* - `fade-enter`, `fade-enter-active`, `fade-enter-done`
|
|
96
|
+
* - `fade-exit`, `fade-exit-active`, `fade-exit-done`
|
|
97
|
+
*
|
|
98
|
+
* A few details to note about how these classes are applied:
|
|
99
|
+
*
|
|
100
|
+
* 1. They are _joined_ with the ones that are already defined on the child
|
|
101
|
+
* component, so if you want to add some base styles, you can use
|
|
102
|
+
* `className` without worrying that it will be overridden.
|
|
103
|
+
*
|
|
104
|
+
* 2. If the transition component mounts with `in={false}`, no classes are
|
|
105
|
+
* applied yet. You might be expecting `*-exit-done`, but if you think
|
|
106
|
+
* about it, a component cannot finish exiting if it hasn't entered yet.
|
|
107
|
+
*
|
|
108
|
+
* 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
|
|
109
|
+
* allows you to define different behavior for when appearing is done and
|
|
110
|
+
* when regular entering is done, using selectors like
|
|
111
|
+
* `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
|
|
112
|
+
* an epic entrance animation when element first appears in the DOM using
|
|
113
|
+
* [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
|
|
114
|
+
* simply use `fade-enter-done` for defining both cases.
|
|
115
|
+
*
|
|
116
|
+
* Each individual classNames can also be specified independently like:
|
|
117
|
+
*
|
|
118
|
+
* ```js
|
|
119
|
+
* classNames={{
|
|
120
|
+
* appear: 'my-appear',
|
|
121
|
+
* appearActive: 'my-active-appear',
|
|
122
|
+
* appearDone: 'my-done-appear',
|
|
123
|
+
* enter: 'my-enter',
|
|
124
|
+
* enterActive: 'my-active-enter',
|
|
125
|
+
* enterDone: 'my-done-enter',
|
|
126
|
+
* exit: 'my-exit',
|
|
127
|
+
* exitActive: 'my-active-exit',
|
|
128
|
+
* exitDone: 'my-done-exit',
|
|
129
|
+
* }}
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* If you want to set these classes using CSS Modules:
|
|
133
|
+
*
|
|
134
|
+
* ```js
|
|
135
|
+
* import styles from './styles.css';
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* you might want to use camelCase in your CSS file, that way could simply
|
|
139
|
+
* spread them instead of listing them one by one:
|
|
140
|
+
*
|
|
141
|
+
* ```js
|
|
142
|
+
* classNames={{ ...styles }}
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* @type {string | {
|
|
146
|
+
* appear?: string,
|
|
147
|
+
* appearActive?: string,
|
|
148
|
+
* appearDone?: string,
|
|
149
|
+
* enter?: string,
|
|
150
|
+
* enterActive?: string,
|
|
151
|
+
* enterDone?: string,
|
|
152
|
+
* exit?: string,
|
|
153
|
+
* exitActive?: string,
|
|
154
|
+
* exitDone?: string,
|
|
155
|
+
* }}
|
|
156
|
+
*/
|
|
157
|
+
classNames: $,
|
|
158
|
+
/**
|
|
159
|
+
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
160
|
+
* applied.
|
|
161
|
+
*
|
|
162
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
163
|
+
*
|
|
164
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
165
|
+
*/
|
|
166
|
+
onEnter: v.func,
|
|
167
|
+
/**
|
|
168
|
+
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
169
|
+
* 'appear-active' class is applied.
|
|
170
|
+
*
|
|
171
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
172
|
+
*
|
|
173
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
174
|
+
*/
|
|
175
|
+
onEntering: v.func,
|
|
176
|
+
/**
|
|
177
|
+
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
178
|
+
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
179
|
+
*
|
|
180
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
181
|
+
*
|
|
182
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
183
|
+
*/
|
|
184
|
+
onEntered: v.func,
|
|
185
|
+
/**
|
|
186
|
+
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
187
|
+
* applied.
|
|
188
|
+
*
|
|
189
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
190
|
+
*
|
|
191
|
+
* @type Function(node: HtmlElement)
|
|
192
|
+
*/
|
|
193
|
+
onExit: v.func,
|
|
194
|
+
/**
|
|
195
|
+
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
196
|
+
*
|
|
197
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
198
|
+
*
|
|
199
|
+
* @type Function(node: HtmlElement)
|
|
200
|
+
*/
|
|
201
|
+
onExiting: v.func,
|
|
202
|
+
/**
|
|
203
|
+
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
204
|
+
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
205
|
+
*
|
|
206
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
207
|
+
*
|
|
208
|
+
* @type Function(node: HtmlElement)
|
|
209
|
+
*/
|
|
210
|
+
onExited: v.func
|
|
211
|
+
}) : {};
|
|
212
|
+
const O = C;
|
|
213
|
+
export {
|
|
214
|
+
O as C
|
|
215
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { j as i } from "../jsx-runtime-944c88e2.js";
|
|
2
|
+
import { a as u, _ as c } from "../extends-393586f3.js";
|
|
3
|
+
import * as m from "react";
|
|
4
|
+
import { g as C, P as o } from "../identifier-9dfe30d8.js";
|
|
5
|
+
import { g as f, s as y, u as v, c as j, a as x } from "../useThemeProps-7d04a175.js";
|
|
6
|
+
import { M as b } from "../Paper-aaec61a3.js";
|
|
7
|
+
import { c as g } from "../chainPropTypes-004bf492.js";
|
|
8
|
+
import "../emotion-memoize.esm-021d0d4e.js";
|
|
9
|
+
import "../_commonjsHelpers-92157f1b.js";
|
|
10
|
+
import "../emotion-is-prop-valid.esm-b7f48706.js";
|
|
11
|
+
import "../useTheme-014a54ad.js";
|
|
12
|
+
function M(t) {
|
|
13
|
+
return C("MuiCard", t);
|
|
14
|
+
}
|
|
15
|
+
f("MuiCard", ["root"]);
|
|
16
|
+
const R = ["className", "raised"], T = (t) => {
|
|
17
|
+
const {
|
|
18
|
+
classes: e
|
|
19
|
+
} = t;
|
|
20
|
+
return x({
|
|
21
|
+
root: ["root"]
|
|
22
|
+
}, M, e);
|
|
23
|
+
}, w = y(b, {
|
|
24
|
+
name: "MuiCard",
|
|
25
|
+
slot: "Root",
|
|
26
|
+
overridesResolver: (t, e) => e.root
|
|
27
|
+
})(() => ({
|
|
28
|
+
overflow: "hidden"
|
|
29
|
+
})), h = /* @__PURE__ */ m.forwardRef(function(e, r) {
|
|
30
|
+
const s = v({
|
|
31
|
+
props: e,
|
|
32
|
+
name: "MuiCard"
|
|
33
|
+
}), {
|
|
34
|
+
className: d,
|
|
35
|
+
raised: n = !1
|
|
36
|
+
} = s, l = u(s, R), a = c({}, s, {
|
|
37
|
+
raised: n
|
|
38
|
+
}), p = T(a);
|
|
39
|
+
return /* @__PURE__ */ i.jsx(w, c({
|
|
40
|
+
className: j(p.root, d),
|
|
41
|
+
elevation: n ? 8 : void 0,
|
|
42
|
+
ref: r,
|
|
43
|
+
ownerState: a
|
|
44
|
+
}, l));
|
|
45
|
+
});
|
|
46
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
47
|
+
// ----------------------------- Warning --------------------------------
|
|
48
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
50
|
+
// ----------------------------------------------------------------------
|
|
51
|
+
/**
|
|
52
|
+
* The content of the component.
|
|
53
|
+
*/
|
|
54
|
+
children: o.node,
|
|
55
|
+
/**
|
|
56
|
+
* Override or extend the styles applied to the component.
|
|
57
|
+
*/
|
|
58
|
+
classes: o.object,
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
className: o.string,
|
|
63
|
+
/**
|
|
64
|
+
* If `true`, the card will use raised styling.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
raised: g(o.bool, (t) => t.raised && t.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
|
|
68
|
+
/**
|
|
69
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
70
|
+
*/
|
|
71
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
72
|
+
});
|
|
73
|
+
const O = h;
|
|
74
|
+
function U(t) {
|
|
75
|
+
return C("MuiCardContent", t);
|
|
76
|
+
}
|
|
77
|
+
f("MuiCardContent", ["root"]);
|
|
78
|
+
const _ = ["className", "component"], E = (t) => {
|
|
79
|
+
const {
|
|
80
|
+
classes: e
|
|
81
|
+
} = t;
|
|
82
|
+
return x({
|
|
83
|
+
root: ["root"]
|
|
84
|
+
}, U, e);
|
|
85
|
+
}, P = y("div", {
|
|
86
|
+
name: "MuiCardContent",
|
|
87
|
+
slot: "Root",
|
|
88
|
+
overridesResolver: (t, e) => e.root
|
|
89
|
+
})(() => ({
|
|
90
|
+
padding: 16,
|
|
91
|
+
"&:last-child": {
|
|
92
|
+
paddingBottom: 24
|
|
93
|
+
}
|
|
94
|
+
})), N = /* @__PURE__ */ m.forwardRef(function(e, r) {
|
|
95
|
+
const s = v({
|
|
96
|
+
props: e,
|
|
97
|
+
name: "MuiCardContent"
|
|
98
|
+
}), {
|
|
99
|
+
className: d,
|
|
100
|
+
component: n = "div"
|
|
101
|
+
} = s, l = u(s, _), a = c({}, s, {
|
|
102
|
+
component: n
|
|
103
|
+
}), p = E(a);
|
|
104
|
+
return /* @__PURE__ */ i.jsx(P, c({
|
|
105
|
+
as: n,
|
|
106
|
+
className: j(p.root, d),
|
|
107
|
+
ownerState: a,
|
|
108
|
+
ref: r
|
|
109
|
+
}, l));
|
|
110
|
+
});
|
|
111
|
+
process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
112
|
+
// ----------------------------- Warning --------------------------------
|
|
113
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
114
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
115
|
+
// ----------------------------------------------------------------------
|
|
116
|
+
/**
|
|
117
|
+
* The content of the component.
|
|
118
|
+
*/
|
|
119
|
+
children: o.node,
|
|
120
|
+
/**
|
|
121
|
+
* Override or extend the styles applied to the component.
|
|
122
|
+
*/
|
|
123
|
+
classes: o.object,
|
|
124
|
+
/**
|
|
125
|
+
* @ignore
|
|
126
|
+
*/
|
|
127
|
+
className: o.string,
|
|
128
|
+
/**
|
|
129
|
+
* The component used for the root node.
|
|
130
|
+
* Either a string to use a HTML element or a component.
|
|
131
|
+
*/
|
|
132
|
+
component: o.elementType,
|
|
133
|
+
/**
|
|
134
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
135
|
+
*/
|
|
136
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
137
|
+
});
|
|
138
|
+
const S = N;
|
|
139
|
+
function z({ children: t, ...e }) {
|
|
140
|
+
return /* @__PURE__ */ i.jsx(O, { ...e, children: /* @__PURE__ */ i.jsx(S, { children: t }) });
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
z as KdpaCardContent
|
|
144
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as t } from "../jsx-runtime-944c88e2.js";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { C as i } from "../Checkbox-2cb33932.js";
|
|
4
|
+
import "../extends-393586f3.js";
|
|
5
|
+
import "../identifier-9dfe30d8.js";
|
|
6
|
+
import "../emotion-memoize.esm-021d0d4e.js";
|
|
7
|
+
import "../_commonjsHelpers-92157f1b.js";
|
|
8
|
+
import "../useThemeProps-7d04a175.js";
|
|
9
|
+
import "../emotion-is-prop-valid.esm-b7f48706.js";
|
|
10
|
+
import "../SwitchBase-c367ca3c.js";
|
|
11
|
+
import "../useFormControl-af690c26.js";
|
|
12
|
+
import "../ButtonBase-0f9f324d.js";
|
|
13
|
+
import "../emotion-react.browser.esm-d563ed65.js";
|
|
14
|
+
import "../hoist-non-react-statics.cjs-ce2f2873.js";
|
|
15
|
+
import "../TransitionGroup-196acb6a.js";
|
|
16
|
+
import "../assertThisInitialized-05701a63.js";
|
|
17
|
+
import "../TransitionGroupContext-7435e195.js";
|
|
18
|
+
import "../setPrototypeOf-98a00546.js";
|
|
19
|
+
import "../useForkRef-0781dda0.js";
|
|
20
|
+
import "../useIsFocusVisible-4693b580.js";
|
|
21
|
+
import "../useEventCallback-fe4fd69c.js";
|
|
22
|
+
import "../refType-af1a9f54.js";
|
|
23
|
+
import "../elementTypeAcceptingRef-6c34f16b.js";
|
|
24
|
+
import "../chainPropTypes-004bf492.js";
|
|
25
|
+
import "../useControlled-cc2d41cb.js";
|
|
26
|
+
import "../createSvgIcon-b80a8a41.js";
|
|
27
|
+
const y = m.forwardRef(
|
|
28
|
+
(o, r) => /* @__PURE__ */ t.jsx(i, { ...o, className: o.className, inputRef: r })
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
y as KdpaCheckBox
|
|
32
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { _ as a, a as O } from "./extends-393586f3.js";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { g as $, h as C, a as B, P as o } from "./identifier-9dfe30d8.js";
|
|
4
|
+
import { g as R, s as S, r as T, u as M, c as _, a as N } from "./useThemeProps-7d04a175.js";
|
|
5
|
+
import { S as E } from "./SwitchBase-c367ca3c.js";
|
|
6
|
+
import { c as u } from "./createSvgIcon-b80a8a41.js";
|
|
7
|
+
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
8
|
+
import { r as H } from "./refType-af1a9f54.js";
|
|
9
|
+
const V = u(/* @__PURE__ */ t.jsx("path", {
|
|
10
|
+
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
11
|
+
}), "CheckBoxOutlineBlank"), U = u(/* @__PURE__ */ t.jsx("path", {
|
|
12
|
+
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
13
|
+
}), "CheckBox"), w = u(/* @__PURE__ */ t.jsx("path", {
|
|
14
|
+
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
15
|
+
}), "IndeterminateCheckBox");
|
|
16
|
+
function L(e) {
|
|
17
|
+
return $("MuiCheckbox", e);
|
|
18
|
+
}
|
|
19
|
+
const F = R("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), m = F, q = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], D = (e) => {
|
|
20
|
+
const {
|
|
21
|
+
classes: c,
|
|
22
|
+
indeterminate: n,
|
|
23
|
+
color: r
|
|
24
|
+
} = e, i = {
|
|
25
|
+
root: ["root", n && "indeterminate", `color${C(r)}`]
|
|
26
|
+
}, s = N(i, L, c);
|
|
27
|
+
return a({}, c, s);
|
|
28
|
+
}, W = S(E, {
|
|
29
|
+
shouldForwardProp: (e) => T(e) || e === "classes",
|
|
30
|
+
name: "MuiCheckbox",
|
|
31
|
+
slot: "Root",
|
|
32
|
+
overridesResolver: (e, c) => {
|
|
33
|
+
const {
|
|
34
|
+
ownerState: n
|
|
35
|
+
} = e;
|
|
36
|
+
return [c.root, n.indeterminate && c.indeterminate, n.color !== "default" && c[`color${C(n.color)}`]];
|
|
37
|
+
}
|
|
38
|
+
})(({
|
|
39
|
+
theme: e,
|
|
40
|
+
ownerState: c
|
|
41
|
+
}) => a({
|
|
42
|
+
color: (e.vars || e).palette.text.secondary
|
|
43
|
+
}, !c.disableRipple && {
|
|
44
|
+
"&:hover": {
|
|
45
|
+
backgroundColor: e.vars ? `rgba(${c.color === "default" ? e.vars.palette.action.activeChannel : e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : B(c.color === "default" ? e.palette.action.active : e.palette[c.color].main, e.palette.action.hoverOpacity),
|
|
46
|
+
// Reset on touch devices, it doesn't add specificity
|
|
47
|
+
"@media (hover: none)": {
|
|
48
|
+
backgroundColor: "transparent"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, c.color !== "default" && {
|
|
52
|
+
[`&.${m.checked}, &.${m.indeterminate}`]: {
|
|
53
|
+
color: (e.vars || e).palette[c.color].main
|
|
54
|
+
},
|
|
55
|
+
[`&.${m.disabled}`]: {
|
|
56
|
+
color: (e.vars || e).palette.action.disabled
|
|
57
|
+
}
|
|
58
|
+
})), A = /* @__PURE__ */ t.jsx(U, {}), G = /* @__PURE__ */ t.jsx(V, {}), J = /* @__PURE__ */ t.jsx(w, {}), v = /* @__PURE__ */ p.forwardRef(function(c, n) {
|
|
59
|
+
var r, i;
|
|
60
|
+
const s = M({
|
|
61
|
+
props: c,
|
|
62
|
+
name: "MuiCheckbox"
|
|
63
|
+
}), {
|
|
64
|
+
checkedIcon: y = A,
|
|
65
|
+
color: I = "primary",
|
|
66
|
+
icon: g = G,
|
|
67
|
+
indeterminate: l = !1,
|
|
68
|
+
indeterminateIcon: f = J,
|
|
69
|
+
inputProps: j,
|
|
70
|
+
size: d = "medium",
|
|
71
|
+
className: z
|
|
72
|
+
} = s, P = O(s, q), h = l ? f : g, b = l ? f : y, x = a({}, s, {
|
|
73
|
+
color: I,
|
|
74
|
+
indeterminate: l,
|
|
75
|
+
size: d
|
|
76
|
+
}), k = D(x);
|
|
77
|
+
return /* @__PURE__ */ t.jsx(W, a({
|
|
78
|
+
type: "checkbox",
|
|
79
|
+
inputProps: a({
|
|
80
|
+
"data-indeterminate": l
|
|
81
|
+
}, j),
|
|
82
|
+
icon: /* @__PURE__ */ p.cloneElement(h, {
|
|
83
|
+
fontSize: (r = h.props.fontSize) != null ? r : d
|
|
84
|
+
}),
|
|
85
|
+
checkedIcon: /* @__PURE__ */ p.cloneElement(b, {
|
|
86
|
+
fontSize: (i = b.props.fontSize) != null ? i : d
|
|
87
|
+
}),
|
|
88
|
+
ownerState: x,
|
|
89
|
+
ref: n,
|
|
90
|
+
className: _(k.root, z)
|
|
91
|
+
}, P, {
|
|
92
|
+
classes: k
|
|
93
|
+
}));
|
|
94
|
+
});
|
|
95
|
+
process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
96
|
+
// ----------------------------- Warning --------------------------------
|
|
97
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
98
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
99
|
+
// ----------------------------------------------------------------------
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, the component is checked.
|
|
102
|
+
*/
|
|
103
|
+
checked: o.bool,
|
|
104
|
+
/**
|
|
105
|
+
* The icon to display when the component is checked.
|
|
106
|
+
* @default <CheckBoxIcon />
|
|
107
|
+
*/
|
|
108
|
+
checkedIcon: o.node,
|
|
109
|
+
/**
|
|
110
|
+
* Override or extend the styles applied to the component.
|
|
111
|
+
*/
|
|
112
|
+
classes: o.object,
|
|
113
|
+
/**
|
|
114
|
+
* @ignore
|
|
115
|
+
*/
|
|
116
|
+
className: o.string,
|
|
117
|
+
/**
|
|
118
|
+
* The color of the component.
|
|
119
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
120
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
121
|
+
* @default 'primary'
|
|
122
|
+
*/
|
|
123
|
+
color: o.oneOfType([o.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
|
|
124
|
+
/**
|
|
125
|
+
* The default checked state. Use when the component is not controlled.
|
|
126
|
+
*/
|
|
127
|
+
defaultChecked: o.bool,
|
|
128
|
+
/**
|
|
129
|
+
* If `true`, the component is disabled.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
disabled: o.bool,
|
|
133
|
+
/**
|
|
134
|
+
* If `true`, the ripple effect is disabled.
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
disableRipple: o.bool,
|
|
138
|
+
/**
|
|
139
|
+
* The icon to display when the component is unchecked.
|
|
140
|
+
* @default <CheckBoxOutlineBlankIcon />
|
|
141
|
+
*/
|
|
142
|
+
icon: o.node,
|
|
143
|
+
/**
|
|
144
|
+
* The id of the `input` element.
|
|
145
|
+
*/
|
|
146
|
+
id: o.string,
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, the component appears indeterminate.
|
|
149
|
+
* This does not set the native input element to indeterminate due
|
|
150
|
+
* to inconsistent behavior across browsers.
|
|
151
|
+
* However, we set a `data-indeterminate` attribute on the `input`.
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
indeterminate: o.bool,
|
|
155
|
+
/**
|
|
156
|
+
* The icon to display when the component is indeterminate.
|
|
157
|
+
* @default <IndeterminateCheckBoxIcon />
|
|
158
|
+
*/
|
|
159
|
+
indeterminateIcon: o.node,
|
|
160
|
+
/**
|
|
161
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
162
|
+
*/
|
|
163
|
+
inputProps: o.object,
|
|
164
|
+
/**
|
|
165
|
+
* Pass a ref to the `input` element.
|
|
166
|
+
*/
|
|
167
|
+
inputRef: H,
|
|
168
|
+
/**
|
|
169
|
+
* Callback fired when the state is changed.
|
|
170
|
+
*
|
|
171
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
172
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
173
|
+
*/
|
|
174
|
+
onChange: o.func,
|
|
175
|
+
/**
|
|
176
|
+
* If `true`, the `input` element is required.
|
|
177
|
+
* @default false
|
|
178
|
+
*/
|
|
179
|
+
required: o.bool,
|
|
180
|
+
/**
|
|
181
|
+
* The size of the component.
|
|
182
|
+
* `small` is equivalent to the dense checkbox styling.
|
|
183
|
+
* @default 'medium'
|
|
184
|
+
*/
|
|
185
|
+
size: o.oneOfType([o.oneOf(["medium", "small"]), o.string]),
|
|
186
|
+
/**
|
|
187
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
188
|
+
*/
|
|
189
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
190
|
+
/**
|
|
191
|
+
* The value of the component. The DOM API casts this to a string.
|
|
192
|
+
* The browser uses "on" as the default value.
|
|
193
|
+
*/
|
|
194
|
+
value: o.any
|
|
195
|
+
});
|
|
196
|
+
const co = v;
|
|
197
|
+
export {
|
|
198
|
+
co as C
|
|
199
|
+
};
|