@ceed/cds 0.0.32 → 0.0.82
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/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/components/Autocomplete/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Calendar/Calendar.d.ts +7 -0
- package/dist/components/Calendar/hooks/use-calendar-props.d.ts +35 -0
- package/dist/components/Calendar/hooks/use-calendar.d.ts +35 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/types.d.ts +24 -0
- package/dist/components/Calendar/utils/index.d.ts +12 -0
- package/dist/components/DataTable/DataTable.d.ts +25 -5
- package/dist/components/DatePicker/DatePicker.d.ts +22 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +22 -0
- package/dist/components/DateRangePicker/index.d.ts +3 -0
- package/dist/components/DialogActions/DialogActions.d.ts +2 -2
- package/dist/components/DialogContent/DialogContent.d.ts +2 -2
- package/dist/components/DialogTitle/DialogTitle.d.ts +2 -2
- package/dist/components/FormControl/FormControl.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +21 -3
- package/dist/components/Modal/Modal.d.ts +4 -4
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +22 -0
- package/dist/components/MonthRangePicker/index.d.ts +3 -0
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +11 -13
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +19 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +10 -0
- package/dist/components/index.d.ts +8 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2842 -6
- package/framer/index.js +29510 -18631
- package/package.json +17 -8
- package/dist/components/Accordions/Accordions.js +0 -66
- package/dist/components/Accordions/index.js +0 -3
- package/dist/components/Box/Box.js +0 -6
- package/dist/components/Box/index.js +0 -3
- package/dist/components/Button/Button.js +0 -28
- package/dist/components/Button/index.js +0 -3
- package/dist/components/Checkbox/Checkbox.js +0 -28
- package/dist/components/Checkbox/index.js +0 -3
- package/dist/components/Container/Container.js +0 -51
- package/dist/components/Container/index.js +0 -3
- package/dist/components/DataTable/DataTable.js +0 -268
- package/dist/components/DataTable/index.js +0 -3
- package/dist/components/DialogActions/DialogActions.js +0 -6
- package/dist/components/DialogActions/index.js +0 -3
- package/dist/components/DialogContent/DialogContent.js +0 -6
- package/dist/components/DialogContent/index.js +0 -3
- package/dist/components/DialogFrame/DialogFrame.js +0 -44
- package/dist/components/DialogFrame/index.js +0 -3
- package/dist/components/DialogTitle/DialogTitle.js +0 -6
- package/dist/components/DialogTitle/index.js +0 -3
- package/dist/components/Divider/Divider.js +0 -28
- package/dist/components/Divider/index.js +0 -3
- package/dist/components/Dropdown/Dropdown.js +0 -6
- package/dist/components/Dropdown/index.js +0 -3
- package/dist/components/FormControl/FormControl.js +0 -6
- package/dist/components/FormControl/index.js +0 -3
- package/dist/components/FormHelperText/FormHelperText.js +0 -6
- package/dist/components/FormHelperText/index.js +0 -3
- package/dist/components/FormLabel/FormLabel.js +0 -6
- package/dist/components/FormLabel/index.js +0 -3
- package/dist/components/Grid/Grid.js +0 -6
- package/dist/components/Grid/index.js +0 -3
- package/dist/components/IconButton/IconButton.js +0 -28
- package/dist/components/IconButton/index.js +0 -3
- package/dist/components/Input/Input.js +0 -28
- package/dist/components/Input/index.js +0 -3
- package/dist/components/InsetDrawer/InsetDrawer.js +0 -45
- package/dist/components/InsetDrawer/index.js +0 -3
- package/dist/components/Menu/Menu.js +0 -56
- package/dist/components/Menu/index.js +0 -3
- package/dist/components/Modal/Modal.js +0 -60
- package/dist/components/Modal/index.js +0 -3
- package/dist/components/Radio/Radio.js +0 -10
- package/dist/components/Radio/index.js +0 -3
- package/dist/components/RadioList/RadioList.js +0 -38
- package/dist/components/RadioList/index.js +0 -3
- package/dist/components/Select/Select.js +0 -12
- package/dist/components/Select/index.js +0 -3
- package/dist/components/Sheet/Sheet.js +0 -6
- package/dist/components/Sheet/index.js +0 -3
- package/dist/components/Stack/Stack.js +0 -6
- package/dist/components/Stack/index.js +0 -3
- package/dist/components/Switch/Switch.js +0 -54
- package/dist/components/Switch/index.js +0 -3
- package/dist/components/Table/Table.js +0 -89
- package/dist/components/Table/index.js +0 -3
- package/dist/components/Tabs/Tabs.js +0 -18
- package/dist/components/Tabs/index.js +0 -3
- package/dist/components/Textarea/Textarea.js +0 -28
- package/dist/components/Textarea/index.js +0 -3
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -54
- package/dist/components/ThemeProvider/index.js +0 -3
- package/dist/components/Tooltip/Tooltip.js +0 -28
- package/dist/components/Tooltip/index.js +0 -3
- package/dist/components/Typography/Typography.js +0 -28
- package/dist/components/Typography/index.js +0 -3
- package/dist/components/index.js +0 -33
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
import React from "react";
|
|
13
|
-
import { Divider as JoyDivider } from "@mui/joy";
|
|
14
|
-
import { motion } from "framer-motion";
|
|
15
|
-
var MotionDivider = motion(JoyDivider);
|
|
16
|
-
var Divider = function (props) {
|
|
17
|
-
// prop destruction
|
|
18
|
-
// lib hooks
|
|
19
|
-
// state, ref, querystring hooks
|
|
20
|
-
// form hooks
|
|
21
|
-
// query hooks
|
|
22
|
-
// calculated values
|
|
23
|
-
// effects
|
|
24
|
-
// handlers
|
|
25
|
-
return React.createElement(MotionDivider, __assign({}, props));
|
|
26
|
-
};
|
|
27
|
-
export { Divider };
|
|
28
|
-
Divider.displayName = "Divider";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FormHelperText as JoyFormHelperText } from "@mui/joy";
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
var MotionFormHelperText = motion(JoyFormHelperText);
|
|
4
|
-
var FormHelperText = MotionFormHelperText;
|
|
5
|
-
export { FormHelperText };
|
|
6
|
-
FormHelperText.displayName = "FormHelperText";
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
import React from "react";
|
|
13
|
-
import { IconButton as JoyIconButton } from "@mui/joy";
|
|
14
|
-
import { motion } from "framer-motion";
|
|
15
|
-
var MotionIconButton = motion(JoyIconButton);
|
|
16
|
-
var IconButton = function (props) {
|
|
17
|
-
// prop destruction
|
|
18
|
-
// lib hooks
|
|
19
|
-
// state, ref, querystring hooks
|
|
20
|
-
// form hooks
|
|
21
|
-
// query hooks
|
|
22
|
-
// calculated values
|
|
23
|
-
// effects
|
|
24
|
-
// handlers
|
|
25
|
-
return React.createElement(MotionIconButton, __assign({}, props));
|
|
26
|
-
};
|
|
27
|
-
export { IconButton };
|
|
28
|
-
IconButton.displayName = "IconButton";
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
import React from "react";
|
|
13
|
-
import { Input as JoyInput } from "@mui/joy";
|
|
14
|
-
import { motion } from "framer-motion";
|
|
15
|
-
var MotionInput = motion(JoyInput);
|
|
16
|
-
var Input = function (props) {
|
|
17
|
-
// prop destruction
|
|
18
|
-
// lib hooks
|
|
19
|
-
// state, ref, querystring hooks
|
|
20
|
-
// form hooks
|
|
21
|
-
// query hooks
|
|
22
|
-
// calculated values
|
|
23
|
-
// effects
|
|
24
|
-
// handlers
|
|
25
|
-
return React.createElement(MotionInput, __assign({}, props));
|
|
26
|
-
};
|
|
27
|
-
export { Input };
|
|
28
|
-
Input.displayName = "Input";
|
|
@@ -1,45 +0,0 @@
|
|
|
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,56 +0,0 @@
|
|
|
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
|
-
import React from "react";
|
|
13
|
-
import { Menu as JoyMenu, MenuButton as JoyMenuButton, MenuItem as JoyMenuItem, } from "@mui/joy";
|
|
14
|
-
import { motion } from "framer-motion";
|
|
15
|
-
var MotionMenu = motion(JoyMenu);
|
|
16
|
-
var Menu = function (props) {
|
|
17
|
-
// prop destruction
|
|
18
|
-
// lib hooks
|
|
19
|
-
// state, ref, querystring hooks
|
|
20
|
-
// form hooks
|
|
21
|
-
// query hooks
|
|
22
|
-
// calculated values
|
|
23
|
-
// effects
|
|
24
|
-
// handlers
|
|
25
|
-
return React.createElement(MotionMenu, __assign({}, props));
|
|
26
|
-
};
|
|
27
|
-
export { Menu };
|
|
28
|
-
Menu.displayName = "Menu";
|
|
29
|
-
var MotionMenuButton = motion(JoyMenuButton);
|
|
30
|
-
var MenuButton = function (props) {
|
|
31
|
-
// prop destruction
|
|
32
|
-
// lib hooks
|
|
33
|
-
// state, ref, querystring hooks
|
|
34
|
-
// form hooks
|
|
35
|
-
// query hooks
|
|
36
|
-
// calculated values
|
|
37
|
-
// effects
|
|
38
|
-
// handlers
|
|
39
|
-
return React.createElement(MotionMenuButton, __assign({}, props));
|
|
40
|
-
};
|
|
41
|
-
export { MenuButton };
|
|
42
|
-
MenuButton.displayName = "MenuButton";
|
|
43
|
-
var MotionMenuItem = motion(JoyMenuItem);
|
|
44
|
-
var MenuItem = function (props) {
|
|
45
|
-
// prop destruction
|
|
46
|
-
// lib hooks
|
|
47
|
-
// state, ref, querystring hooks
|
|
48
|
-
// form hooks
|
|
49
|
-
// query hooks
|
|
50
|
-
// calculated values
|
|
51
|
-
// effects
|
|
52
|
-
// handlers
|
|
53
|
-
return React.createElement(MotionMenuItem, __assign({}, props));
|
|
54
|
-
};
|
|
55
|
-
export { MenuItem };
|
|
56
|
-
MenuItem.displayName = "MenuItem";
|
|
@@ -1,60 +0,0 @@
|
|
|
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 { Modal as JoyModal, ModalDialog as JoyModalDialog, ModalClose as JoyModalClose, ModalOverflow as JoyModalOverflow, } from "@mui/joy";
|
|
25
|
-
import { motion } from "framer-motion";
|
|
26
|
-
import DialogTitle from "../DialogTitle";
|
|
27
|
-
import DialogContent from "../DialogContent";
|
|
28
|
-
var MotionModal = motion(JoyModal);
|
|
29
|
-
var Modal = MotionModal;
|
|
30
|
-
export { Modal };
|
|
31
|
-
Modal.displayName = "Modal";
|
|
32
|
-
var MotionModalDialog = motion(JoyModalDialog);
|
|
33
|
-
var ModalDialog = MotionModalDialog;
|
|
34
|
-
export { ModalDialog };
|
|
35
|
-
ModalDialog.displayName = "ModalDialog";
|
|
36
|
-
var MotionModalClose = motion(JoyModalClose);
|
|
37
|
-
var ModalClose = MotionModalClose;
|
|
38
|
-
export { ModalClose };
|
|
39
|
-
ModalClose.displayName = "ModalClose";
|
|
40
|
-
var MotionModalOverflow = motion(JoyModalOverflow);
|
|
41
|
-
var ModalOverflow = MotionModalOverflow;
|
|
42
|
-
export { ModalOverflow };
|
|
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";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
var MotionRadio = motion(JoyRadio);
|
|
4
|
-
var Radio = MotionRadio;
|
|
5
|
-
export { Radio };
|
|
6
|
-
Radio.displayName = "Radio";
|
|
7
|
-
var MotionRadioGroup = motion(JoyRadioGroup);
|
|
8
|
-
var RadioGroup = MotionRadioGroup;
|
|
9
|
-
export { RadioGroup };
|
|
10
|
-
RadioGroup.displayName = "RadioGroup";
|
|
@@ -1,38 +0,0 @@
|
|
|
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";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Select as JoySelect, Option as JoyOption } from "@mui/joy";
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
var MotionSelect = motion(JoySelect);
|
|
4
|
-
var Select = MotionSelect;
|
|
5
|
-
export { Select };
|
|
6
|
-
Select.displayName = "Select";
|
|
7
|
-
// NOTE: Context를 공유하는 컴포넌트는 한 파일로 번들링되어야 Framer에서 문제 없이 동작할수 있다.
|
|
8
|
-
// 파일별로 필요한 패키지를 모두 import 하도록 되어 있기 때문에 다른 파일에서 내보내면 Context가 고유하게 2개 생기는것이 원인이다.
|
|
9
|
-
var MotionOption = motion(JoyOption);
|
|
10
|
-
var Option = MotionOption;
|
|
11
|
-
export { Option };
|
|
12
|
-
Option.displayName = "Option";
|
|
@@ -1,54 +0,0 @@
|
|
|
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 _a;
|
|
13
|
-
import React from "react";
|
|
14
|
-
import { Switch as JoySwitch, styled, switchClasses, } from "@mui/joy";
|
|
15
|
-
import { motion } from "framer-motion";
|
|
16
|
-
var MotionSwitch = motion(JoySwitch);
|
|
17
|
-
var StyledThumb = styled(motion.div)((_a = {
|
|
18
|
-
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
19
|
-
display: "inline-flex",
|
|
20
|
-
justifyContent: "center",
|
|
21
|
-
alignItems: "center",
|
|
22
|
-
position: "absolute",
|
|
23
|
-
left: "var(--Switch-thumbOffset)",
|
|
24
|
-
width: "var(--Switch-thumbWidth)",
|
|
25
|
-
height: "var(--Switch-thumbSize)",
|
|
26
|
-
borderRadius: "var(--Switch-thumbRadius)",
|
|
27
|
-
boxShadow: "var(--Switch-thumbShadow)",
|
|
28
|
-
color: "var(--Switch-thumbColor)",
|
|
29
|
-
backgroundColor: "var(--Switch-thumbBackground)"
|
|
30
|
-
},
|
|
31
|
-
_a["&.".concat(switchClasses.checked)] = {
|
|
32
|
-
left: "unset",
|
|
33
|
-
right: "var(--Switch-thumbOffset)",
|
|
34
|
-
},
|
|
35
|
-
_a));
|
|
36
|
-
var Thumb = function (props) { return (React.createElement(StyledThumb, __assign({}, props, { layout: true, transition: spring }))); };
|
|
37
|
-
var spring = {
|
|
38
|
-
type: "spring",
|
|
39
|
-
stiffness: 700,
|
|
40
|
-
damping: 30,
|
|
41
|
-
};
|
|
42
|
-
var Switch = function (props) {
|
|
43
|
-
// prop destruction
|
|
44
|
-
// lib hooks
|
|
45
|
-
// state, ref, querystring hooks
|
|
46
|
-
// form hooks
|
|
47
|
-
// query hooks
|
|
48
|
-
// calculated values
|
|
49
|
-
// effects
|
|
50
|
-
// handlers
|
|
51
|
-
return (React.createElement(MotionSwitch, __assign({}, props, { slots: __assign({ thumb: Thumb }, props.slots) })));
|
|
52
|
-
};
|
|
53
|
-
export { Switch };
|
|
54
|
-
Switch.displayName = "Switch";
|
|
@@ -1,89 +0,0 @@
|
|
|
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 { Table as JoyTable } from "@mui/joy";
|
|
25
|
-
import Checkbox from "../Checkbox";
|
|
26
|
-
var Table = function (props) {
|
|
27
|
-
// prop destruction
|
|
28
|
-
var children = props.children, inheritProps = __rest(props, ["children"]);
|
|
29
|
-
// lib hooks
|
|
30
|
-
// state, ref, querystring hooks
|
|
31
|
-
// form hooks
|
|
32
|
-
// query hooks
|
|
33
|
-
// calculated values
|
|
34
|
-
// effects
|
|
35
|
-
// handlers
|
|
36
|
-
return React.createElement(JoyTable, __assign({}, inheritProps), children);
|
|
37
|
-
};
|
|
38
|
-
export { Table };
|
|
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 };
|
|
@@ -1,18 +0,0 @@
|
|
|
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";
|