@ceed/cds 0.0.5 → 0.0.33
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/components/Accordions/Accordions.d.ts +66 -0
- package/dist/components/Accordions/Accordions.js +66 -0
- package/dist/components/Accordions/index.d.ts +3 -0
- package/dist/components/Accordions/index.js +3 -0
- package/dist/components/Button/Button.d.ts +22 -5
- package/dist/components/Button/Button.js +4 -4
- package/dist/components/Container/Container.d.ts +5 -0
- package/dist/components/Container/Container.js +51 -0
- package/dist/components/Container/index.d.ts +3 -0
- package/dist/components/Container/index.js +3 -0
- package/dist/components/DataTable/DataTable.d.ts +56 -0
- package/dist/components/DataTable/DataTable.js +268 -0
- package/dist/components/DataTable/index.d.ts +3 -0
- package/dist/components/DataTable/index.js +3 -0
- package/dist/components/DialogActions/DialogActions.d.ts +1 -1
- package/dist/components/DialogFrame/DialogFrame.d.ts +11 -0
- package/dist/components/DialogFrame/DialogFrame.js +44 -0
- package/dist/components/DialogFrame/index.d.ts +3 -0
- package/dist/components/DialogFrame/index.js +3 -0
- package/dist/components/DialogTitle/DialogTitle.d.ts +1 -1
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/InsetDrawer/InsetDrawer.d.ts +8 -0
- package/dist/components/InsetDrawer/InsetDrawer.js +45 -0
- package/dist/components/InsetDrawer/index.d.ts +3 -0
- package/dist/components/InsetDrawer/index.js +3 -0
- package/dist/components/Modal/Modal.d.ts +13 -5
- package/dist/components/Modal/Modal.js +42 -0
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/RadioList/RadioList.d.ts +12 -0
- package/dist/components/RadioList/RadioList.js +38 -0
- package/dist/components/RadioList/index.d.ts +3 -0
- package/dist/components/RadioList/index.js +3 -0
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Sheet/Sheet.d.ts +1 -1
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +56 -2
- package/dist/components/Table/Table.js +64 -3
- package/dist/components/Tabs/Tabs.d.ts +53 -0
- package/dist/components/Tabs/Tabs.js +18 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.js +3 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +45 -4
- package/dist/components/index.d.ts +12 -5
- package/dist/components/index.js +12 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/framer/index.js +25044 -15916
- package/package.json +6 -8
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import DialogTitle from "../DialogTitle";
|
|
25
|
+
import DialogContent from "../DialogContent";
|
|
26
|
+
import { ModalDialog } from "../Modal";
|
|
27
|
+
import DialogActions from "../DialogActions";
|
|
28
|
+
function DialogFrame(props) {
|
|
29
|
+
// prop destruction
|
|
30
|
+
var title = props.title, children = props.children, actions = props.actions, innerProps = __rest(props, ["title", "children", "actions"]);
|
|
31
|
+
// lib hooks
|
|
32
|
+
// state, ref, querystring hooks
|
|
33
|
+
// form hooks
|
|
34
|
+
// query hooks
|
|
35
|
+
// calculated values
|
|
36
|
+
// effects
|
|
37
|
+
// handlers
|
|
38
|
+
return (React.createElement(ModalDialog, __assign({}, innerProps),
|
|
39
|
+
React.createElement(DialogTitle, null, title),
|
|
40
|
+
React.createElement(DialogContent, null, children),
|
|
41
|
+
React.createElement(DialogActions, null, actions)));
|
|
42
|
+
}
|
|
43
|
+
export { DialogFrame };
|
|
44
|
+
DialogFrame.displayName = "DialogFrame";
|
|
@@ -7,5 +7,5 @@ declare const DialogTitle: import("framer-motion").CustomDomComponent<{
|
|
|
7
7
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").DialogTitlePropsVariantOverrides> | undefined;
|
|
8
8
|
} & import("@mui/joy").DialogTitleSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "children" | "color" | "
|
|
10
|
+
}, "children" | "color" | "variant" | "sx" | "level" | keyof import("@mui/joy").DialogTitleSlotsAndSlotProps>>;
|
|
11
11
|
export { DialogTitle };
|
|
@@ -3,5 +3,5 @@ declare const Grid: import("framer-motion").CustomDomComponent<import("@mui/syst
|
|
|
3
3
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
4
4
|
} & import("@mui/joy/styles/types").SystemProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
},
|
|
6
|
+
}, "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | keyof import("@mui/system").GridBaseProps | keyof import("@mui/joy").GridSlotsAndSlotProps>>;
|
|
7
7
|
export { Grid };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import { Drawer as JoyDrawer } from "@mui/joy";
|
|
25
|
+
import { motion } from "framer-motion";
|
|
26
|
+
var MotionDrawer = motion(JoyDrawer);
|
|
27
|
+
var InsetDrawer = function (props) {
|
|
28
|
+
var _a;
|
|
29
|
+
// prop destruction
|
|
30
|
+
var children = props.children, innerProps = __rest(props, ["children"]);
|
|
31
|
+
// lib hooks
|
|
32
|
+
// state, ref, querystring hooks
|
|
33
|
+
// form hooks
|
|
34
|
+
// query hooks
|
|
35
|
+
// calculated values
|
|
36
|
+
// effects
|
|
37
|
+
// handlers
|
|
38
|
+
return (React.createElement(MotionDrawer, __assign({}, innerProps, { slotProps: __assign(__assign({}, innerProps.slotProps), { content: __assign(__assign({}, (_a = innerProps.slotProps) === null || _a === void 0 ? void 0 : _a.content), { sx: {
|
|
39
|
+
bgcolor: "transparent",
|
|
40
|
+
p: { md: 3, sm: 0 },
|
|
41
|
+
boxShadow: "none",
|
|
42
|
+
} }) }) }), children));
|
|
43
|
+
};
|
|
44
|
+
export { InsetDrawer };
|
|
45
|
+
InsetDrawer.displayName = "InsetDrawer";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "
|
|
3
|
-
onClose?: ((event: {}, reason: "
|
|
2
|
+
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted"> & {
|
|
3
|
+
onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
-
}, "children" | "container" | "sx" | "open" | "
|
|
7
|
+
}, "children" | "container" | "sx" | "open" | "onClose" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
|
|
8
8
|
export { Modal };
|
|
9
9
|
declare const ModalDialog: import("framer-motion").CustomDomComponent<{
|
|
10
10
|
children?: React.ReactNode;
|
|
@@ -19,7 +19,7 @@ declare const ModalDialog: import("framer-motion").CustomDomComponent<{
|
|
|
19
19
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
20
20
|
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
-
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "
|
|
22
|
+
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps>>;
|
|
23
23
|
export { ModalDialog };
|
|
24
24
|
declare const ModalClose: import("framer-motion").CustomDomComponent<{
|
|
25
25
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
|
|
@@ -28,7 +28,7 @@ declare const ModalClose: import("framer-motion").CustomDomComponent<{
|
|
|
28
28
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalClosePropsVariantOverrides> | undefined;
|
|
29
29
|
} & import("@mui/joy").ModalCloseSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
30
30
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
31
|
-
}, "color" | "
|
|
31
|
+
}, "color" | "variant" | "sx" | "size" | keyof import("@mui/joy").ModalCloseSlotsAndSlotProps>>;
|
|
32
32
|
export { ModalClose };
|
|
33
33
|
declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
|
|
34
34
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
@@ -36,3 +36,11 @@ declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
|
|
|
36
36
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
37
37
|
}, "sx" | keyof import("@mui/joy").ModalOverflowSlotsAndSlotProps>>;
|
|
38
38
|
export { ModalOverflow };
|
|
39
|
+
declare function ModalFrame(props: {
|
|
40
|
+
title: React.ReactNode;
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
} & React.ComponentProps<typeof ModalDialog>): React.JSX.Element;
|
|
43
|
+
declare namespace ModalFrame {
|
|
44
|
+
var displayName: string;
|
|
45
|
+
}
|
|
46
|
+
export { ModalFrame };
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
1
24
|
import { Modal as JoyModal, ModalDialog as JoyModalDialog, ModalClose as JoyModalClose, ModalOverflow as JoyModalOverflow, } from "@mui/joy";
|
|
2
25
|
import { motion } from "framer-motion";
|
|
26
|
+
import DialogTitle from "../DialogTitle";
|
|
27
|
+
import DialogContent from "../DialogContent";
|
|
3
28
|
var MotionModal = motion(JoyModal);
|
|
4
29
|
var Modal = MotionModal;
|
|
5
30
|
export { Modal };
|
|
@@ -16,3 +41,20 @@ var MotionModalOverflow = motion(JoyModalOverflow);
|
|
|
16
41
|
var ModalOverflow = MotionModalOverflow;
|
|
17
42
|
export { ModalOverflow };
|
|
18
43
|
ModalOverflow.displayName = "ModalOverflow";
|
|
44
|
+
function ModalFrame(props) {
|
|
45
|
+
// prop destruction
|
|
46
|
+
var title = props.title, children = props.children, innerProps = __rest(props, ["title", "children"]);
|
|
47
|
+
// lib hooks
|
|
48
|
+
// state, ref, querystring hooks
|
|
49
|
+
// form hooks
|
|
50
|
+
// query hooks
|
|
51
|
+
// calculated values
|
|
52
|
+
// effects
|
|
53
|
+
// handlers
|
|
54
|
+
return (React.createElement(ModalDialog, __assign({}, innerProps),
|
|
55
|
+
React.createElement(ModalClose, null),
|
|
56
|
+
React.createElement(DialogTitle, null, title),
|
|
57
|
+
React.createElement(DialogContent, null, children)));
|
|
58
|
+
}
|
|
59
|
+
export { ModalFrame };
|
|
60
|
+
ModalFrame.displayName = "ModalFrame";
|
|
@@ -14,7 +14,7 @@ declare const Radio: import("framer-motion").CustomDomComponent<import("@mui/bas
|
|
|
14
14
|
value?: unknown;
|
|
15
15
|
} & import("@mui/joy").RadioSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
16
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
17
|
-
}, "label" | "
|
|
17
|
+
}, "label" | "color" | "overlay" | "className" | "variant" | "sx" | "size" | "name" | "value" | keyof import("@mui/base").UseSwitchParameters | "checkedIcon" | "disableIcon" | "uncheckedIcon" | keyof import("@mui/joy").RadioSlotsAndSlotProps>>;
|
|
18
18
|
export { Radio };
|
|
19
19
|
declare const RadioGroup: import("framer-motion").CustomDomComponent<{
|
|
20
20
|
className?: string | undefined;
|
|
@@ -32,5 +32,5 @@ declare const RadioGroup: import("framer-motion").CustomDomComponent<{
|
|
|
32
32
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").RadioPropsVariantOverrides> | undefined;
|
|
33
33
|
} & import("@mui/joy").RadioGroupSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
34
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
35
|
-
}, "
|
|
35
|
+
}, "color" | "overlay" | "defaultValue" | "className" | "onChange" | "variant" | "sx" | "size" | "component" | "name" | "value" | "disableIcon" | "orientation" | keyof import("@mui/joy").RadioGroupSlotsAndSlotProps>>;
|
|
36
36
|
export { RadioGroup };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { RadioGroup } from "../Radio/Radio";
|
|
3
|
+
declare function RadioList(props: {
|
|
4
|
+
items: {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
value: string;
|
|
7
|
+
}[];
|
|
8
|
+
} & ComponentProps<typeof RadioGroup>): React.JSX.Element;
|
|
9
|
+
declare namespace RadioList {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export { RadioList };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from "react";
|
|
24
|
+
import { Radio, RadioGroup } from "../Radio/Radio";
|
|
25
|
+
function RadioList(props) {
|
|
26
|
+
// prop destruction
|
|
27
|
+
var items = props.items, innerProps = __rest(props, ["items"]);
|
|
28
|
+
// lib hooks
|
|
29
|
+
// state, ref, querystring hooks
|
|
30
|
+
// form hooks
|
|
31
|
+
// query hooks
|
|
32
|
+
// calculated values
|
|
33
|
+
// effects
|
|
34
|
+
// handlers
|
|
35
|
+
return (React.createElement(RadioGroup, __assign({}, innerProps), items.map(function (item) { return (React.createElement(Radio, { key: "".concat(item.value), value: item.value, label: item.label })); })));
|
|
36
|
+
}
|
|
37
|
+
export { RadioList };
|
|
38
|
+
RadioList.displayName = "RadioList";
|
|
@@ -10,7 +10,7 @@ declare const Select: import("framer-motion").CustomDomComponent<{
|
|
|
10
10
|
value?: {} | {}[] | null | undefined;
|
|
11
11
|
} & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
12
12
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
13
|
-
}, "defaultValue" | "onChange" | "value" | keyof import("@mui/joy").SelectStaticProps | keyof import("@mui/joy").SelectSlotsAndSlotProps<Multiple> | "
|
|
13
|
+
}, "defaultValue" | "onChange" | "value" | "multiple" | keyof import("@mui/joy").SelectStaticProps | keyof import("@mui/joy").SelectSlotsAndSlotProps<Multiple> | "getSerializedValue" | "renderValue">>;
|
|
14
14
|
export { Select };
|
|
15
15
|
declare const Option: import("framer-motion").CustomDomComponent<{
|
|
16
16
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").OptionPropsColorOverrides> | undefined;
|
|
@@ -22,5 +22,5 @@ declare const Option: import("framer-motion").CustomDomComponent<{
|
|
|
22
22
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
23
23
|
} & import("@mui/joy").OptionSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
24
24
|
ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject<HTMLLIElement> | null | undefined;
|
|
25
|
-
}, "label" | "children" | "color" | "
|
|
25
|
+
}, "label" | "children" | "color" | "variant" | "sx" | "disabled" | "value" | keyof import("@mui/joy").OptionSlotsAndSlotProps>>;
|
|
26
26
|
export { Option };
|
|
@@ -7,5 +7,5 @@ declare const Sheet: import("framer-motion").CustomDomComponent<{
|
|
|
7
7
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").SheetPropsVariantOverrides> | undefined;
|
|
8
8
|
} & import("@mui/joy").SheetSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "children" | "color" | "
|
|
10
|
+
}, "children" | "color" | "variant" | "sx" | "invertedColors" | keyof import("@mui/joy").SheetSlotsAndSlotProps>>;
|
|
11
11
|
export { Sheet };
|
|
@@ -8,5 +8,5 @@ declare const Stack: import("framer-motion").CustomDomComponent<{
|
|
|
8
8
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
9
9
|
} & import("@mui/joy").StackSlotsAndSlotProps & import("@mui/joy/styles/types").SystemProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, "children" | "direction" |
|
|
11
|
+
}, "children" | "direction" | "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "spacing" | "divider" | "useFlexGap" | keyof import("@mui/joy").StackSlotsAndSlotProps>>;
|
|
12
12
|
export { Stack };
|
|
@@ -1,8 +1,62 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TableProps } from "@mui/joy";
|
|
3
|
-
import { MotionProps } from "framer-motion";
|
|
4
3
|
declare const Table: {
|
|
5
|
-
(props: TableProps
|
|
4
|
+
(props: TableProps): React.JSX.Element;
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
8
7
|
export { Table };
|
|
8
|
+
interface HeadCell {
|
|
9
|
+
label: string;
|
|
10
|
+
numeric?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
minWidth?: string;
|
|
13
|
+
maxWidth?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function TableHead<D extends Record<string, unknown>>(props: {
|
|
16
|
+
headCells: HeadCell[];
|
|
17
|
+
/**
|
|
18
|
+
* Show Checkbox to select all rows
|
|
19
|
+
*/
|
|
20
|
+
showCheckbox?: boolean;
|
|
21
|
+
onCheckboxChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Inject custom component
|
|
24
|
+
*/
|
|
25
|
+
slots?: {
|
|
26
|
+
checkbox?: React.ElementType;
|
|
27
|
+
};
|
|
28
|
+
slotProps?: {
|
|
29
|
+
checkbox?: Partial<{
|
|
30
|
+
checked: boolean;
|
|
31
|
+
indeterminate: boolean;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
declare namespace TableHead {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
export { TableHead };
|
|
40
|
+
interface TableBodyProps<D extends Record<string, unknown>> {
|
|
41
|
+
rows: D[];
|
|
42
|
+
cellOrder: (keyof D)[];
|
|
43
|
+
rowOptions?: Partial<Record<keyof D, {
|
|
44
|
+
numeric?: boolean;
|
|
45
|
+
}>>;
|
|
46
|
+
showCheckbox?: boolean;
|
|
47
|
+
onCheckboxChange?: (event: React.ChangeEvent<HTMLInputElement>, rowIndex: number) => void;
|
|
48
|
+
slots?: {
|
|
49
|
+
checkbox?: React.ElementType;
|
|
50
|
+
};
|
|
51
|
+
slotProps?: {
|
|
52
|
+
checkbox?: Partial<{
|
|
53
|
+
checked: boolean;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
declare function TableBody<D extends Record<string, unknown>>(props: TableBodyProps<D>): React.JSX.Element;
|
|
59
|
+
declare namespace TableBody {
|
|
60
|
+
var displayName: string;
|
|
61
|
+
}
|
|
62
|
+
export { TableBody };
|
|
@@ -9,12 +9,23 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
12
23
|
import React from "react";
|
|
13
24
|
import { Table as JoyTable } from "@mui/joy";
|
|
14
|
-
import
|
|
15
|
-
var MotionTable = motion(JoyTable);
|
|
25
|
+
import Checkbox from "../Checkbox";
|
|
16
26
|
var Table = function (props) {
|
|
17
27
|
// prop destruction
|
|
28
|
+
var children = props.children, inheritProps = __rest(props, ["children"]);
|
|
18
29
|
// lib hooks
|
|
19
30
|
// state, ref, querystring hooks
|
|
20
31
|
// form hooks
|
|
@@ -22,7 +33,57 @@ var Table = function (props) {
|
|
|
22
33
|
// calculated values
|
|
23
34
|
// effects
|
|
24
35
|
// handlers
|
|
25
|
-
return React.createElement(
|
|
36
|
+
return React.createElement(JoyTable, __assign({}, inheritProps), children);
|
|
26
37
|
};
|
|
27
38
|
export { Table };
|
|
28
39
|
Table.displayName = "Table";
|
|
40
|
+
function TableHead(props) {
|
|
41
|
+
// prop destruction
|
|
42
|
+
var headCells = props.headCells, showCheckbox = props.showCheckbox, onCheckboxChange = props.onCheckboxChange, _a = props.slots, _b = _a === void 0 ? {} : _a, _c = _b.checkbox, RenderCheckbox = _c === void 0 ? Checkbox : _c, _d = props.slotProps, _e = _d === void 0 ? {} : _d, _f = _e.checkbox, checkboxProps = _f === void 0 ? {} : _f;
|
|
43
|
+
// lib hooks
|
|
44
|
+
// state, ref, querystring hooks
|
|
45
|
+
// form hooks
|
|
46
|
+
// query hooks
|
|
47
|
+
// calculated values
|
|
48
|
+
// effects
|
|
49
|
+
// handlers
|
|
50
|
+
return (React.createElement("thead", null,
|
|
51
|
+
React.createElement("tr", null,
|
|
52
|
+
showCheckbox && (React.createElement("th", { style: {
|
|
53
|
+
width: "40px",
|
|
54
|
+
textAlign: "center",
|
|
55
|
+
} },
|
|
56
|
+
React.createElement(RenderCheckbox, __assign({ onChange: onCheckboxChange }, checkboxProps)))),
|
|
57
|
+
headCells.map(function (headCell) { return (React.createElement("th", { key: headCell.label, style: {
|
|
58
|
+
width: headCell.width,
|
|
59
|
+
minWidth: headCell.minWidth,
|
|
60
|
+
maxWidth: headCell.maxWidth,
|
|
61
|
+
textAlign: headCell.numeric ? "right" : "left",
|
|
62
|
+
} }, headCell.label)); }))));
|
|
63
|
+
}
|
|
64
|
+
TableHead.displayName = "TableHead";
|
|
65
|
+
export { TableHead };
|
|
66
|
+
function TableBody(props) {
|
|
67
|
+
// prop destruction
|
|
68
|
+
var rows = props.rows, cellOrder = props.cellOrder, rowOptions = props.rowOptions, showCheckbox = props.showCheckbox, onCheckboxChange = props.onCheckboxChange, _a = props.slots, _b = _a === void 0 ? {} : _a, _c = _b.checkbox, RenderCheckbox = _c === void 0 ? Checkbox : _c, _d = props.slotProps, _e = _d === void 0 ? {} : _d, _f = _e.checkbox, checkboxProps = _f === void 0 ? {} : _f;
|
|
69
|
+
// lib hooks
|
|
70
|
+
// state, ref, querystring hooks
|
|
71
|
+
// form hooks
|
|
72
|
+
// query hooks
|
|
73
|
+
// calculated values
|
|
74
|
+
// effects
|
|
75
|
+
// handlers
|
|
76
|
+
return (React.createElement("tbody", null, rows.map(function (row, rowIndex) { return (React.createElement("tr", { key: rowIndex },
|
|
77
|
+
showCheckbox && (React.createElement("td", { style: {
|
|
78
|
+
textAlign: "center",
|
|
79
|
+
} },
|
|
80
|
+
React.createElement(RenderCheckbox, __assign({ onChange: function (event) { return onCheckboxChange === null || onCheckboxChange === void 0 ? void 0 : onCheckboxChange(event, rowIndex); } }, checkboxProps)))),
|
|
81
|
+
cellOrder.map(function (cellKey) {
|
|
82
|
+
var _a;
|
|
83
|
+
return (React.createElement("td", { key: cellKey, style: {
|
|
84
|
+
textAlign: ((_a = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions[cellKey]) === null || _a === void 0 ? void 0 : _a.numeric) ? "right" : "left",
|
|
85
|
+
} }, row[cellKey]));
|
|
86
|
+
}))); })));
|
|
87
|
+
}
|
|
88
|
+
TableBody.displayName = "TableBody";
|
|
89
|
+
export { TableBody };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Tabs: import("framer-motion").CustomDomComponent<Omit<import("@mui/base").TabsOwnProps, "slots" | "slotProps"> & {
|
|
3
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabsPropsColorOverrides> | undefined;
|
|
4
|
+
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TabsPropsSizeOverrides> | undefined;
|
|
5
|
+
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
6
|
+
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabsPropsVariantOverrides> | undefined;
|
|
7
|
+
} & import("@mui/joy").TabsSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, "children" | "color" | "direction" | "defaultValue" | "className" | "onChange" | "variant" | "sx" | "size" | "value" | "orientation" | "selectionFollowsFocus" | keyof import("@mui/joy").TabsSlotsAndSlotProps>>;
|
|
10
|
+
export { Tabs };
|
|
11
|
+
declare const Tab: import("framer-motion").CustomDomComponent<{
|
|
12
|
+
action?: React.Ref<{
|
|
13
|
+
focusVisible(): void;
|
|
14
|
+
}> | undefined;
|
|
15
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabPropsColorOverrides> | undefined;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
|
+
disableIndicator?: boolean | undefined;
|
|
18
|
+
indicatorPlacement?: "bottom" | "left" | "right" | "top" | undefined;
|
|
19
|
+
indicatorInset?: boolean | undefined;
|
|
20
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
21
|
+
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
22
|
+
value?: string | number | undefined;
|
|
23
|
+
onChange?: ((event: React.SyntheticEvent<Element, Event>, value: string | number) => void) | undefined;
|
|
24
|
+
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabPropsVariantOverrides> | undefined;
|
|
25
|
+
} & import("@mui/joy").TabSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
26
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
27
|
+
}, "color" | "onChange" | "variant" | "sx" | "disabled" | "action" | "value" | "orientation" | "disableIndicator" | "indicatorPlacement" | "indicatorInset" | keyof import("@mui/joy").TabSlotsAndSlotProps>>;
|
|
28
|
+
export { Tab };
|
|
29
|
+
declare const TabList: import("framer-motion").CustomDomComponent<{
|
|
30
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabListPropsColorOverrides> | undefined;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
disableUnderline?: boolean | undefined;
|
|
33
|
+
tabFlex?: string | number | undefined;
|
|
34
|
+
underlinePlacement?: "bottom" | "left" | "right" | "top" | undefined;
|
|
35
|
+
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TabListPropsSizeOverrides> | undefined;
|
|
36
|
+
sticky?: "bottom" | "top" | undefined;
|
|
37
|
+
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
38
|
+
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabListPropsVariantOverrides> | undefined;
|
|
39
|
+
} & import("@mui/joy").TabListSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
41
|
+
}, "children" | "color" | "variant" | "sx" | "size" | "sticky" | "disableUnderline" | "tabFlex" | "underlinePlacement" | keyof import("@mui/joy").TabListSlotsAndSlotProps>>;
|
|
42
|
+
export { TabList };
|
|
43
|
+
declare const TabPanel: import("framer-motion").CustomDomComponent<Omit<import("@mui/base").TabPanelOwnProps, "slots" | "slotProps" | "value"> & {
|
|
44
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabPanelPropsColorOverrides> | undefined;
|
|
45
|
+
value?: string | number | undefined;
|
|
46
|
+
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TabPanelPropsSizeOverrides> | undefined;
|
|
47
|
+
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
48
|
+
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabPanelPropsVariantOverrides> | undefined;
|
|
49
|
+
keepMounted?: boolean | undefined;
|
|
50
|
+
} & import("@mui/joy").TabPanelSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
51
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
52
|
+
}, "children" | "color" | "className" | "variant" | "sx" | "size" | "value" | "keepMounted" | keyof import("@mui/joy").TabPanelSlotsAndSlotProps>>;
|
|
53
|
+
export { TabPanel };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Tabs as JoyTabs, Tab as JoyTab, TabList as JoyTabList, TabPanel as JoyTabPanel } from "@mui/joy";
|
|
2
|
+
import { motion } from "framer-motion";
|
|
3
|
+
var MotionTabs = motion(JoyTabs);
|
|
4
|
+
var Tabs = MotionTabs;
|
|
5
|
+
export { Tabs };
|
|
6
|
+
Tabs.displayName = "Tabs";
|
|
7
|
+
var MotionTab = motion(JoyTab);
|
|
8
|
+
var Tab = MotionTab;
|
|
9
|
+
export { Tab };
|
|
10
|
+
Tab.displayName = "Tab";
|
|
11
|
+
var MotionTabList = motion(JoyTabList);
|
|
12
|
+
var TabList = MotionTabList;
|
|
13
|
+
export { TabList };
|
|
14
|
+
TabList.displayName = "TabList";
|
|
15
|
+
var MotionTabPanel = motion(JoyTabPanel);
|
|
16
|
+
var TabPanel = MotionTabPanel;
|
|
17
|
+
export { TabPanel };
|
|
18
|
+
TabPanel.displayName = "TabPanel";
|