@ceed/cds 0.0.127 → 0.0.128
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/index.js +1 -169
- package/package.json +4 -4
- package/dist/components/Accordions/Accordions.js +0 -72
- package/dist/components/Accordions/index.js +0 -19
- package/dist/components/Autocomplete/Autocomplete.js +0 -280
- package/dist/components/Autocomplete/index.js +0 -19
- package/dist/components/Box/Box.js +0 -9
- package/dist/components/Box/index.js +0 -19
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -96
- package/dist/components/Breadcrumbs/index.js +0 -19
- package/dist/components/Button/Button.js +0 -54
- package/dist/components/Button/index.js +0 -19
- package/dist/components/Calendar/Calendar.js +0 -412
- package/dist/components/Calendar/hooks/use-calendar-props.js +0 -84
- package/dist/components/Calendar/hooks/use-calendar.js +0 -248
- package/dist/components/Calendar/index.js +0 -19
- package/dist/components/Calendar/types.js +0 -2
- package/dist/components/Calendar/utils/index.js +0 -84
- package/dist/components/Card/Card.js +0 -25
- package/dist/components/Card/index.js +0 -19
- package/dist/components/Checkbox/Checkbox.js +0 -34
- package/dist/components/Checkbox/index.js +0 -19
- package/dist/components/Chip/Chip.js +0 -9
- package/dist/components/Chip/index.js +0 -19
- package/dist/components/Container/Container.js +0 -91
- package/dist/components/Container/index.js +0 -19
- package/dist/components/CurrencyInput/CurrencyInput.js +0 -137
- package/dist/components/CurrencyInput/hooks/use-currency-setting.js +0 -172
- package/dist/components/CurrencyInput/index.js +0 -19
- package/dist/components/DataTable/DataTable.js +0 -466
- package/dist/components/DataTable/index.js +0 -19
- package/dist/components/DataTable/types.js +0 -2
- package/dist/components/DatePicker/DatePicker.js +0 -236
- package/dist/components/DatePicker/index.js +0 -19
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -238
- package/dist/components/DateRangePicker/index.js +0 -19
- package/dist/components/DialogActions/DialogActions.js +0 -18
- package/dist/components/DialogActions/index.js +0 -19
- package/dist/components/DialogContent/DialogContent.js +0 -15
- package/dist/components/DialogContent/index.js +0 -19
- package/dist/components/DialogFrame/DialogFrame.js +0 -57
- package/dist/components/DialogFrame/index.js +0 -19
- package/dist/components/DialogTitle/DialogTitle.js +0 -15
- package/dist/components/DialogTitle/index.js +0 -19
- package/dist/components/Divider/Divider.js +0 -34
- package/dist/components/Divider/index.js +0 -19
- package/dist/components/Dropdown/Dropdown.js +0 -9
- package/dist/components/Dropdown/index.js +0 -19
- package/dist/components/FormControl/FormControl.js +0 -20
- package/dist/components/FormControl/index.js +0 -19
- package/dist/components/FormHelperText/FormHelperText.js +0 -9
- package/dist/components/FormHelperText/index.js +0 -19
- package/dist/components/FormLabel/FormLabel.js +0 -9
- package/dist/components/FormLabel/index.js +0 -19
- package/dist/components/Grid/Grid.js +0 -9
- package/dist/components/Grid/index.js +0 -19
- package/dist/components/IconButton/IconButton.js +0 -34
- package/dist/components/IconButton/index.js +0 -19
- package/dist/components/Input/Input.js +0 -57
- package/dist/components/Input/index.js +0 -19
- package/dist/components/InsetDrawer/InsetDrawer.js +0 -51
- package/dist/components/InsetDrawer/index.js +0 -19
- package/dist/components/Markdown/Markdown.js +0 -65
- package/dist/components/Markdown/index.js +0 -19
- package/dist/components/Menu/Menu.js +0 -62
- package/dist/components/Menu/index.js +0 -19
- package/dist/components/Modal/Modal.js +0 -69
- package/dist/components/Modal/index.js +0 -19
- package/dist/components/MonthPicker/MonthPicker.js +0 -232
- package/dist/components/MonthPicker/index.js +0 -19
- package/dist/components/MonthRangePicker/MonthRangePicker.js +0 -236
- package/dist/components/MonthRangePicker/index.js +0 -19
- package/dist/components/Radio/Radio.js +0 -13
- package/dist/components/Radio/index.js +0 -19
- package/dist/components/RadioList/RadioList.js +0 -44
- package/dist/components/RadioList/index.js +0 -19
- package/dist/components/Select/Select.js +0 -105
- package/dist/components/Select/index.js +0 -19
- package/dist/components/Sheet/Sheet.js +0 -9
- package/dist/components/Sheet/index.js +0 -19
- package/dist/components/Stack/Stack.js +0 -9
- package/dist/components/Stack/index.js +0 -19
- package/dist/components/Switch/Switch.js +0 -60
- package/dist/components/Switch/index.js +0 -19
- package/dist/components/Table/Table.js +0 -95
- package/dist/components/Table/index.js +0 -19
- package/dist/components/Tabs/Tabs.js +0 -21
- package/dist/components/Tabs/index.js +0 -19
- package/dist/components/Textarea/Textarea.js +0 -56
- package/dist/components/Textarea/index.js +0 -19
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -165
- package/dist/components/ThemeProvider/index.js +0 -19
- package/dist/components/Tooltip/Tooltip.js +0 -34
- package/dist/components/Tooltip/index.js +0 -19
- package/dist/components/Typography/Typography.js +0 -34
- package/dist/components/Typography/index.js +0 -19
- package/dist/components/Uploader/Uploader.js +0 -378
- package/dist/components/Uploader/index.js +0 -19
- package/dist/components/index.js +0 -108
- package/dist/index.mjs +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.RadioList = void 0;
|
|
29
|
-
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var Radio_1 = require("../Radio/Radio");
|
|
31
|
-
function RadioList(props) {
|
|
32
|
-
// prop destruction
|
|
33
|
-
var items = props.items, innerProps = __rest(props, ["items"]);
|
|
34
|
-
// lib hooks
|
|
35
|
-
// state, ref, querystring hooks
|
|
36
|
-
// form hooks
|
|
37
|
-
// query hooks
|
|
38
|
-
// calculated values
|
|
39
|
-
// effects
|
|
40
|
-
// handlers
|
|
41
|
-
return (react_1.default.createElement(Radio_1.RadioGroup, __assign({}, innerProps), items.map(function (item) { return (react_1.default.createElement(Radio_1.Radio, { key: "".concat(item.value), value: item.value, label: item.label })); })));
|
|
42
|
-
}
|
|
43
|
-
exports.RadioList = RadioList;
|
|
44
|
-
RadioList.displayName = "RadioList";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var RadioList_1 = require("./RadioList");
|
|
18
|
-
__exportStar(require("./RadioList"), exports);
|
|
19
|
-
exports.default = RadioList_1.RadioList;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
-
var t = {};
|
|
38
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
-
t[p] = s[p];
|
|
40
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
-
t[p[i]] = s[p[i]];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.Select = exports.Option = void 0;
|
|
52
|
-
var react_1 = __importStar(require("react"));
|
|
53
|
-
var joy_1 = require("@mui/joy");
|
|
54
|
-
var framer_motion_1 = require("framer-motion");
|
|
55
|
-
var FormControl_1 = __importDefault(require("../FormControl"));
|
|
56
|
-
var FormLabel_1 = __importDefault(require("../FormLabel"));
|
|
57
|
-
var FormHelperText_1 = __importDefault(require("../FormHelperText"));
|
|
58
|
-
// NOTE: Context를 공유하는 컴포넌트는 한 파일로 번들링되어야 Framer에서 문제 없이 동작할수 있다.
|
|
59
|
-
// 파일별로 필요한 패키지를 모두 import 하도록 되어 있기 때문에 다른 파일에서 내보내면 Context가 고유하게 2개 생기는것이 원인이다.
|
|
60
|
-
var MotionOption = (0, framer_motion_1.motion)(joy_1.Option);
|
|
61
|
-
var Option = MotionOption;
|
|
62
|
-
exports.Option = Option;
|
|
63
|
-
Option.displayName = "Option";
|
|
64
|
-
function Select(props) {
|
|
65
|
-
// prop destruction
|
|
66
|
-
var label = props.label, helperText = props.helperText, error = props.error, size = props.size, color = props.color, disabled = props.disabled, required = props.required, onChange = props.onChange, innerProps = __rest(props, ["label", "helperText", "error", "size", "color", "disabled", "required", "onChange"]);
|
|
67
|
-
// lib hooks
|
|
68
|
-
// state, ref, querystring hooks
|
|
69
|
-
// form hooks
|
|
70
|
-
// query hooks
|
|
71
|
-
// calculated values
|
|
72
|
-
var options = (0, react_1.useMemo)(function () {
|
|
73
|
-
return props.options.map(function (option) {
|
|
74
|
-
if (typeof option !== "object") {
|
|
75
|
-
return {
|
|
76
|
-
value: option,
|
|
77
|
-
label: option,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return option;
|
|
81
|
-
});
|
|
82
|
-
}, [props.options]);
|
|
83
|
-
// effects
|
|
84
|
-
// handlers
|
|
85
|
-
var handleChange = function (event, newValue) {
|
|
86
|
-
var _a;
|
|
87
|
-
var _event = event || { target: {} };
|
|
88
|
-
var newEvent = __assign(__assign({}, _event), { target: {
|
|
89
|
-
// @ts-expect-error target에 name이 있을 수 있다.
|
|
90
|
-
name: ((_a = _event.target) === null || _a === void 0 ? void 0 : _a.name) || props.name,
|
|
91
|
-
value: newValue || undefined,
|
|
92
|
-
} });
|
|
93
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newEvent);
|
|
94
|
-
};
|
|
95
|
-
var select = (react_1.default.createElement(joy_1.Select, __assign({}, innerProps, { required: required, disabled: disabled, size: size, color: error ? "danger" : color, onChange: handleChange }), options.map(function (option) { return (react_1.default.createElement(Option, { key: option.value, value: option.value }, option.label)); })));
|
|
96
|
-
if (label) {
|
|
97
|
-
return (react_1.default.createElement(FormControl_1.default, { required: required, disabled: disabled, size: size, color: color, error: error },
|
|
98
|
-
react_1.default.createElement(FormLabel_1.default, null, label),
|
|
99
|
-
select,
|
|
100
|
-
helperText && react_1.default.createElement(FormHelperText_1.default, null, helperText)));
|
|
101
|
-
}
|
|
102
|
-
return select;
|
|
103
|
-
}
|
|
104
|
-
exports.Select = Select;
|
|
105
|
-
Select.displayName = "Select";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Select_1 = require("./Select");
|
|
18
|
-
__exportStar(require("./Select"), exports);
|
|
19
|
-
exports.default = Select_1.Select;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Sheet = void 0;
|
|
4
|
-
var joy_1 = require("@mui/joy");
|
|
5
|
-
var framer_motion_1 = require("framer-motion");
|
|
6
|
-
var MotionSheet = (0, framer_motion_1.motion)(joy_1.Sheet);
|
|
7
|
-
var Sheet = MotionSheet;
|
|
8
|
-
exports.Sheet = Sheet;
|
|
9
|
-
Sheet.displayName = "Sheet";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Sheet_1 = require("./Sheet");
|
|
18
|
-
__exportStar(require("./Sheet"), exports);
|
|
19
|
-
exports.default = Sheet_1.Sheet;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Stack = void 0;
|
|
4
|
-
var joy_1 = require("@mui/joy");
|
|
5
|
-
var framer_motion_1 = require("framer-motion");
|
|
6
|
-
var MotionStack = (0, framer_motion_1.motion)(joy_1.Stack);
|
|
7
|
-
var Stack = MotionStack;
|
|
8
|
-
exports.Stack = Stack;
|
|
9
|
-
Stack.displayName = "Stack";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Stack_1 = require("./Stack");
|
|
18
|
-
__exportStar(require("./Stack"), exports);
|
|
19
|
-
exports.default = Stack_1.Stack;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
var _a;
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Switch = void 0;
|
|
19
|
-
var react_1 = __importDefault(require("react"));
|
|
20
|
-
var joy_1 = require("@mui/joy");
|
|
21
|
-
var framer_motion_1 = require("framer-motion");
|
|
22
|
-
var MotionSwitch = (0, framer_motion_1.motion)(joy_1.Switch);
|
|
23
|
-
var StyledThumb = (0, joy_1.styled)(framer_motion_1.motion.div)((_a = {
|
|
24
|
-
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
25
|
-
display: "inline-flex",
|
|
26
|
-
justifyContent: "center",
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
position: "absolute",
|
|
29
|
-
left: "var(--Switch-thumbOffset)",
|
|
30
|
-
width: "var(--Switch-thumbWidth)",
|
|
31
|
-
height: "var(--Switch-thumbSize)",
|
|
32
|
-
borderRadius: "var(--Switch-thumbRadius)",
|
|
33
|
-
boxShadow: "var(--Switch-thumbShadow)",
|
|
34
|
-
color: "var(--Switch-thumbColor)",
|
|
35
|
-
backgroundColor: "var(--Switch-thumbBackground)"
|
|
36
|
-
},
|
|
37
|
-
_a["&.".concat(joy_1.switchClasses.checked)] = {
|
|
38
|
-
left: "unset",
|
|
39
|
-
right: "var(--Switch-thumbOffset)",
|
|
40
|
-
},
|
|
41
|
-
_a));
|
|
42
|
-
var Thumb = function (props) { return (react_1.default.createElement(StyledThumb, __assign({}, props, { layout: true, transition: spring }))); };
|
|
43
|
-
var spring = {
|
|
44
|
-
type: "spring",
|
|
45
|
-
stiffness: 700,
|
|
46
|
-
damping: 30,
|
|
47
|
-
};
|
|
48
|
-
var Switch = function (props) {
|
|
49
|
-
// prop destruction
|
|
50
|
-
// lib hooks
|
|
51
|
-
// state, ref, querystring hooks
|
|
52
|
-
// form hooks
|
|
53
|
-
// query hooks
|
|
54
|
-
// calculated values
|
|
55
|
-
// effects
|
|
56
|
-
// handlers
|
|
57
|
-
return (react_1.default.createElement(MotionSwitch, __assign({}, props, { slots: __assign({ thumb: Thumb }, props.slots) })));
|
|
58
|
-
};
|
|
59
|
-
exports.Switch = Switch;
|
|
60
|
-
Switch.displayName = "Switch";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Switch_1 = require("./Switch");
|
|
18
|
-
__exportStar(require("./Switch"), exports);
|
|
19
|
-
exports.default = Switch_1.Switch;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.TableBody = exports.TableHead = exports.Table = void 0;
|
|
29
|
-
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var joy_1 = require("@mui/joy");
|
|
31
|
-
var Checkbox_1 = __importDefault(require("../Checkbox"));
|
|
32
|
-
var Table = function (props) {
|
|
33
|
-
// prop destruction
|
|
34
|
-
var children = props.children, inheritProps = __rest(props, ["children"]);
|
|
35
|
-
// lib hooks
|
|
36
|
-
// state, ref, querystring hooks
|
|
37
|
-
// form hooks
|
|
38
|
-
// query hooks
|
|
39
|
-
// calculated values
|
|
40
|
-
// effects
|
|
41
|
-
// handlers
|
|
42
|
-
return react_1.default.createElement(joy_1.Table, __assign({}, inheritProps), children);
|
|
43
|
-
};
|
|
44
|
-
exports.Table = Table;
|
|
45
|
-
Table.displayName = "Table";
|
|
46
|
-
function TableHead(props) {
|
|
47
|
-
// prop destruction
|
|
48
|
-
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_1.default : _c, _d = props.slotProps, _e = _d === void 0 ? {} : _d, _f = _e.checkbox, checkboxProps = _f === void 0 ? {} : _f;
|
|
49
|
-
// lib hooks
|
|
50
|
-
// state, ref, querystring hooks
|
|
51
|
-
// form hooks
|
|
52
|
-
// query hooks
|
|
53
|
-
// calculated values
|
|
54
|
-
// effects
|
|
55
|
-
// handlers
|
|
56
|
-
return (react_1.default.createElement("thead", null,
|
|
57
|
-
react_1.default.createElement("tr", null,
|
|
58
|
-
showCheckbox && (react_1.default.createElement("th", { style: {
|
|
59
|
-
width: "40px",
|
|
60
|
-
textAlign: "center",
|
|
61
|
-
} },
|
|
62
|
-
react_1.default.createElement(RenderCheckbox, __assign({ onChange: onCheckboxChange }, checkboxProps)))),
|
|
63
|
-
headCells.map(function (headCell) { return (react_1.default.createElement("th", { key: headCell.label, style: {
|
|
64
|
-
width: headCell.width,
|
|
65
|
-
minWidth: headCell.minWidth,
|
|
66
|
-
maxWidth: headCell.maxWidth,
|
|
67
|
-
textAlign: headCell.numeric ? "right" : "left",
|
|
68
|
-
} }, headCell.label)); }))));
|
|
69
|
-
}
|
|
70
|
-
exports.TableHead = TableHead;
|
|
71
|
-
TableHead.displayName = "TableHead";
|
|
72
|
-
function TableBody(props) {
|
|
73
|
-
// prop destruction
|
|
74
|
-
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_1.default : _c, _d = props.slotProps, _e = _d === void 0 ? {} : _d, _f = _e.checkbox, checkboxProps = _f === void 0 ? {} : _f;
|
|
75
|
-
// lib hooks
|
|
76
|
-
// state, ref, querystring hooks
|
|
77
|
-
// form hooks
|
|
78
|
-
// query hooks
|
|
79
|
-
// calculated values
|
|
80
|
-
// effects
|
|
81
|
-
// handlers
|
|
82
|
-
return (react_1.default.createElement("tbody", null, rows.map(function (row, rowIndex) { return (react_1.default.createElement("tr", { key: rowIndex },
|
|
83
|
-
showCheckbox && (react_1.default.createElement("td", { style: {
|
|
84
|
-
textAlign: "center",
|
|
85
|
-
} },
|
|
86
|
-
react_1.default.createElement(RenderCheckbox, __assign({ onChange: function (event) { return onCheckboxChange === null || onCheckboxChange === void 0 ? void 0 : onCheckboxChange(event, rowIndex); } }, checkboxProps)))),
|
|
87
|
-
cellOrder.map(function (cellKey) {
|
|
88
|
-
var _a;
|
|
89
|
-
return (react_1.default.createElement("td", { key: cellKey, style: {
|
|
90
|
-
textAlign: ((_a = rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions[cellKey]) === null || _a === void 0 ? void 0 : _a.numeric) ? "right" : "left",
|
|
91
|
-
} }, row[cellKey]));
|
|
92
|
-
}))); })));
|
|
93
|
-
}
|
|
94
|
-
exports.TableBody = TableBody;
|
|
95
|
-
TableBody.displayName = "TableBody";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Table_1 = require("./Table");
|
|
18
|
-
__exportStar(require("./Table"), exports);
|
|
19
|
-
exports.default = Table_1.Table;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TabPanel = exports.TabList = exports.Tab = exports.Tabs = void 0;
|
|
4
|
-
var joy_1 = require("@mui/joy");
|
|
5
|
-
var framer_motion_1 = require("framer-motion");
|
|
6
|
-
var MotionTabs = (0, framer_motion_1.motion)(joy_1.Tabs);
|
|
7
|
-
var Tabs = MotionTabs;
|
|
8
|
-
exports.Tabs = Tabs;
|
|
9
|
-
Tabs.displayName = "Tabs";
|
|
10
|
-
var MotionTab = (0, framer_motion_1.motion)(joy_1.Tab);
|
|
11
|
-
var Tab = MotionTab;
|
|
12
|
-
exports.Tab = Tab;
|
|
13
|
-
Tab.displayName = "Tab";
|
|
14
|
-
var MotionTabList = (0, framer_motion_1.motion)(joy_1.TabList);
|
|
15
|
-
var TabList = MotionTabList;
|
|
16
|
-
exports.TabList = TabList;
|
|
17
|
-
TabList.displayName = "TabList";
|
|
18
|
-
var MotionTabPanel = (0, framer_motion_1.motion)(joy_1.TabPanel);
|
|
19
|
-
var TabPanel = MotionTabPanel;
|
|
20
|
-
exports.TabPanel = TabPanel;
|
|
21
|
-
TabPanel.displayName = "TabPanel";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Tabs_1 = require("./Tabs");
|
|
18
|
-
__exportStar(require("./Tabs"), exports);
|
|
19
|
-
exports.default = Tabs_1.Tabs;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.Textarea = void 0;
|
|
29
|
-
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var joy_1 = require("@mui/joy");
|
|
31
|
-
var framer_motion_1 = require("framer-motion");
|
|
32
|
-
var FormControl_1 = __importDefault(require("../FormControl"));
|
|
33
|
-
var FormLabel_1 = __importDefault(require("../FormLabel"));
|
|
34
|
-
var FormHelperText_1 = __importDefault(require("../FormHelperText"));
|
|
35
|
-
var MotionTextarea = (0, framer_motion_1.motion)(joy_1.Textarea);
|
|
36
|
-
var Textarea = function (props) {
|
|
37
|
-
// prop destruction
|
|
38
|
-
var label = props.label, error = props.error, helperText = props.helperText, color = props.color, size = props.size, disabled = props.disabled, required = props.required, _a = props.minRows, minRows = _a === void 0 ? 2 : _a, _b = props.maxRows, maxRows = _b === void 0 ? 4 : _b, innerProps = __rest(props, ["label", "error", "helperText", "color", "size", "disabled", "required", "minRows", "maxRows"]);
|
|
39
|
-
// lib hooks
|
|
40
|
-
// state, ref, querystring hooks
|
|
41
|
-
// form hooks
|
|
42
|
-
// query hooks
|
|
43
|
-
// calculated values
|
|
44
|
-
// effects
|
|
45
|
-
// handlers
|
|
46
|
-
var textarea = (react_1.default.createElement(MotionTextarea, __assign({ required: required, disabled: disabled, color: error ? "danger" : color, size: size, minRows: minRows, maxRows: maxRows }, innerProps)));
|
|
47
|
-
if (label) {
|
|
48
|
-
return (react_1.default.createElement(FormControl_1.default, { required: required, disabled: disabled, color: color, size: size, error: error },
|
|
49
|
-
react_1.default.createElement(FormLabel_1.default, null, label),
|
|
50
|
-
textarea,
|
|
51
|
-
helperText && react_1.default.createElement(FormHelperText_1.default, null, helperText)));
|
|
52
|
-
}
|
|
53
|
-
return textarea;
|
|
54
|
-
};
|
|
55
|
-
exports.Textarea = Textarea;
|
|
56
|
-
Textarea.displayName = "Textarea";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var Textarea_1 = require("./Textarea");
|
|
18
|
-
__exportStar(require("./Textarea"), exports);
|
|
19
|
-
exports.default = Textarea_1.Textarea;
|