react-asc 25.5.2 → 25.5.4
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/index.es.js +1313 -1491
- package/index.js +1312 -1490
- package/{components → lib/components}/Alert/Alert.d.ts +1 -2
- package/{components → lib/components}/Form/Form.d.ts +1 -0
- package/{components → lib/components}/Form/FormGroup.d.ts +2 -2
- package/{components → lib/components}/component.enums.d.ts +1 -0
- package/{components → lib/components}/index.d.ts +9 -9
- package/{hooks → lib/hooks}/index.d.ts +2 -2
- package/{icons → lib/icons}/index.d.ts +5 -5
- package/package.json +1 -1
- package/react-asc.scss +17 -6
- /package/{components → lib/components}/Alert/index.d.ts +0 -0
- /package/{components → lib/components}/AppBar/AppBar.d.ts +0 -0
- /package/{components → lib/components}/AppBar/AppBarTitle.d.ts +0 -0
- /package/{components → lib/components}/AppBar/index.d.ts +0 -0
- /package/{components → lib/components}/AutoComplete/AutoComplete.d.ts +0 -0
- /package/{components → lib/components}/AutoComplete/index.d.ts +0 -0
- /package/{components → lib/components}/Backdrop/Backdrop.d.ts +0 -0
- /package/{components → lib/components}/Backdrop/index.d.ts +0 -0
- /package/{components → lib/components}/Badge/Badge.d.ts +0 -0
- /package/{components → lib/components}/Badge/index.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/Breadcrumb.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/BreadcrumbItem.d.ts +0 -0
- /package/{components → lib/components}/Breadcrumb/index.d.ts +0 -0
- /package/{components → lib/components}/Button/Button.d.ts +0 -0
- /package/{components → lib/components}/Button/ButtonContext.d.ts +0 -0
- /package/{components → lib/components}/Button/index.d.ts +0 -0
- /package/{components → lib/components}/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/{components → lib/components}/ButtonGroup/index.d.ts +0 -0
- /package/{components → lib/components}/Card/Card.d.ts +0 -0
- /package/{components → lib/components}/Card/CardBody.d.ts +0 -0
- /package/{components → lib/components}/Card/CardFooter.d.ts +0 -0
- /package/{components → lib/components}/Card/CardImage.d.ts +0 -0
- /package/{components → lib/components}/Card/CardSubtitle.d.ts +0 -0
- /package/{components → lib/components}/Card/CardText.d.ts +0 -0
- /package/{components → lib/components}/Card/CardTitle.d.ts +0 -0
- /package/{components → lib/components}/Card/index.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/{components → lib/components}/Checkbox/index.d.ts +0 -0
- /package/{components → lib/components}/Chip/Chip.d.ts +0 -0
- /package/{components → lib/components}/Chip/index.d.ts +0 -0
- /package/{components → lib/components}/ConditionalWrapper/ConditionalWrapper.d.ts +0 -0
- /package/{components → lib/components}/ConditionalWrapper/index.d.ts +0 -0
- /package/{components → lib/components}/CssTransition/CssTransition.d.ts +0 -0
- /package/{components → lib/components}/CssTransition/index.d.ts +0 -0
- /package/{components → lib/components}/DatePicker/DatePicker.d.ts +0 -0
- /package/{components → lib/components}/DatePicker/index.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/DateSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/DaySelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/MonthSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/YearSelect.d.ts +0 -0
- /package/{components → lib/components}/DateSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Drawer/Drawer.d.ts +0 -0
- /package/{components → lib/components}/Drawer/index.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanel.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanelContent.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/ExpansionPanelHeader.d.ts +0 -0
- /package/{components → lib/components}/ExpansionPanel/index.d.ts +0 -0
- /package/{components → lib/components}/FileInput/FileInput.d.ts +0 -0
- /package/{components → lib/components}/FileInput/index.d.ts +0 -0
- /package/{components → lib/components}/FloatingActionButton/FloatingActionButton.d.ts +0 -0
- /package/{components → lib/components}/FloatingActionButton/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormError.d.ts +0 -0
- /package/{components → lib/components}/Form/FormHint/FormHint.d.ts +0 -0
- /package/{components → lib/components}/Form/FormHint/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormInput/FormInput.d.ts +0 -0
- /package/{components → lib/components}/Form/FormInput/index.d.ts +0 -0
- /package/{components → lib/components}/Form/FormLabel/FormLabel.d.ts +0 -0
- /package/{components → lib/components}/Form/FormLabel/index.d.ts +0 -0
- /package/{components → lib/components}/Form/form.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Form/form.models.d.ts +0 -0
- /package/{components → lib/components}/Form/form.types.d.ts +0 -0
- /package/{components → lib/components}/Form/index.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/EmailValidtor.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/IsEmptyValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/IsEqualValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/MaxValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/MinValidator.d.ts +0 -0
- /package/{components → lib/components}/Form/validators/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/Column/Column.d.ts +0 -0
- /package/{components → lib/components}/Grid/Column/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/Row/Row.d.ts +0 -0
- /package/{components → lib/components}/Grid/Row/index.d.ts +0 -0
- /package/{components → lib/components}/Grid/index.d.ts +0 -0
- /package/{components → lib/components}/Icon/Icon.d.ts +0 -0
- /package/{components → lib/components}/Icon/index.d.ts +0 -0
- /package/{components → lib/components}/IconButton/IconButton.d.ts +0 -0
- /package/{components → lib/components}/IconButton/index.d.ts +0 -0
- /package/{components → lib/components}/Link/Link.d.ts +0 -0
- /package/{components → lib/components}/Link/Link.test.d.ts +0 -0
- /package/{components → lib/components}/Link/index.d.ts +0 -0
- /package/{components → lib/components}/List/List.d.ts +0 -0
- /package/{components → lib/components}/List/ListItem.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemAction.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemAvatar.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemIcon.d.ts +0 -0
- /package/{components → lib/components}/List/ListItemText.d.ts +0 -0
- /package/{components → lib/components}/List/index.d.ts +0 -0
- /package/{components → lib/components}/List/list.models.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/LoadingIndicator.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/LoadingIndicatorContainer.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/index.d.ts +0 -0
- /package/{components → lib/components}/LoadingIndicator/loading-indicator.service.d.ts +0 -0
- /package/{components → lib/components}/Menu/Menu.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuBody.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuContext.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuDivider.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuItem.d.ts +0 -0
- /package/{components → lib/components}/Menu/MenuToggle.d.ts +0 -0
- /package/{components → lib/components}/Menu/index.d.ts +0 -0
- /package/{components → lib/components}/Menu/menu.types.d.ts +0 -0
- /package/{components → lib/components}/Modal/GlobalModal.d.ts +0 -0
- /package/{components → lib/components}/Modal/Modal.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalBody.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalFooter.d.ts +0 -0
- /package/{components → lib/components}/Modal/ModalHeader.d.ts +0 -0
- /package/{components → lib/components}/Modal/index.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.enum.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Modal/modal.service.d.ts +0 -0
- /package/{components → lib/components}/NumberSelect/NumberSelect.d.ts +0 -0
- /package/{components → lib/components}/NumberSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Portal/Portal.d.ts +0 -0
- /package/{components → lib/components}/Portal/index.d.ts +0 -0
- /package/{components → lib/components}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/{components → lib/components}/ProgressBar/index.d.ts +0 -0
- /package/{components → lib/components}/Select/Select.d.ts +0 -0
- /package/{components → lib/components}/Select/index.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/Sidebar.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/index.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/sidebar.interfaces.d.ts +0 -0
- /package/{components → lib/components}/Sidebar/sidebar.models.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonAvatar.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonFooter.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonImage.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/SkeletonText.d.ts +0 -0
- /package/{components → lib/components}/Skeleton/index.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/Snackbar.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/index.d.ts +0 -0
- /package/{components → lib/components}/Snackbar/snackbar.service.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDial.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialAction.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialActions.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/SpeedDialIcon.d.ts +0 -0
- /package/{components → lib/components}/SpeedDial/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Dot/Dot.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Dot/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Step/Step.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Step/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepConnector/StepConnector.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepPanel/StepPanel.d.ts +0 -0
- /package/{components → lib/components}/Stepper/Stepper.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepperActions/StepperActions.d.ts +0 -0
- /package/{components → lib/components}/Stepper/StepperActions/index.d.ts +0 -0
- /package/{components → lib/components}/Stepper/index.d.ts +0 -0
- /package/{components → lib/components}/Table/Table.d.ts +0 -0
- /package/{components → lib/components}/Table/TableBody.d.ts +0 -0
- /package/{components → lib/components}/Table/TableCell.d.ts +0 -0
- /package/{components → lib/components}/Table/TableContext.d.ts +0 -0
- /package/{components → lib/components}/Table/TableHead.d.ts +0 -0
- /package/{components → lib/components}/Table/TableRow.d.ts +0 -0
- /package/{components → lib/components}/Table/index.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tab.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabContext.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabIndicator.d.ts +0 -0
- /package/{components → lib/components}/Tabs/TabPanel.d.ts +0 -0
- /package/{components → lib/components}/Tabs/Tabs.d.ts +0 -0
- /package/{components → lib/components}/Tabs/index.d.ts +0 -0
- /package/{components → lib/components}/Textarea/Textarea.d.ts +0 -0
- /package/{components → lib/components}/Textarea/index.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/HourSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/MilliSecondSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/MinuteSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/SecondSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/TimeSelect.d.ts +0 -0
- /package/{components → lib/components}/TimeSelect/index.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/index.d.ts +0 -0
- /package/{components → lib/components}/Tooltip/tooltip.enums.d.ts +0 -0
- /package/{components → lib/components}/TreeView/TreeItem.d.ts +0 -0
- /package/{components → lib/components}/TreeView/TreeView.d.ts +0 -0
- /package/{components → lib/components}/TreeView/index.d.ts +0 -0
- /package/{components → lib/components}/Typography/Typography.d.ts +0 -0
- /package/{components → lib/components}/Typography/index.d.ts +0 -0
- /package/{components → lib/components}/component.interfaces.d.ts +0 -0
- /package/{hooks → lib/hooks}/useConstructor.d.ts +0 -0
- /package/{hooks → lib/hooks}/useCssClasses.d.ts +0 -0
- /package/{hooks → lib/hooks}/useDebounce.d.ts +0 -0
- /package/{hooks → lib/hooks}/useHover.d.ts +0 -0
- /package/{hooks → lib/hooks}/useMobileDetect.d.ts +0 -0
- /package/{hooks → lib/hooks}/useOnDestroy.d.ts +0 -0
- /package/{hooks → lib/hooks}/useWindowSize.d.ts +0 -0
- /package/{icons → lib/icons}/CaretDownSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CheckSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CheckSquareRegularIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronDownSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronLeftSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronRightSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/ChevronUpSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/CircleSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/HomeSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/PlusSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/SpinnerSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/SquareRegularIcon.d.ts +0 -0
- /package/{icons → lib/icons}/TimesCircleSolidIcon.d.ts +0 -0
- /package/{icons → lib/icons}/TimesSolidIcon.d.ts +0 -0
- /package/{index.d.ts → lib/index.d.ts} +0 -0
- /package/{interfaces → lib/interfaces}/index.d.ts +0 -0
- /package/{interfaces → lib/interfaces}/interfaces.d.ts +0 -0
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var reactDom = require('react-dom');
|
|
7
8
|
var core = require('@popperjs/core');
|
|
@@ -16,7 +17,7 @@ exports.COLOR = void 0;
|
|
|
16
17
|
COLOR["primary"] = "primary";
|
|
17
18
|
COLOR["accent"] = "accent";
|
|
18
19
|
COLOR["secondary"] = "secondary";
|
|
19
|
-
|
|
20
|
+
COLOR["danger"] = "danger";
|
|
20
21
|
COLOR["light"] = "light";
|
|
21
22
|
COLOR["dark"] = "dark";
|
|
22
23
|
})(exports.COLOR || (exports.COLOR = {}));
|
|
@@ -70,151 +71,126 @@ function styleInject(css, ref) {
|
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
var css_248z$
|
|
74
|
-
var styles$
|
|
75
|
-
styleInject(css_248z$
|
|
74
|
+
var css_248z$16 = ".Alert-module_alert__b4tbk {\n border-radius: var(--borderRadius);\n padding: 6px 16px;\n}\n.Alert-module_alert__b4tbk.Alert-module_shadow__5bz-7 {\n box-shadow: var(--shadow);\n}\n\n.Alert-module_contained__EM0x6.Alert-module_primary__q4pNj {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Alert-module_contained__EM0x6.Alert-module_accent__a2WIl {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Alert-module_contained__EM0x6.Alert-module_secondary__syXKX {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Alert-module_contained__EM0x6.Alert-module_light__VKCXF {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Alert-module_contained__EM0x6.Alert-module_dark__3c-Hm {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Alert-module_outline__T2262.Alert-module_primary__q4pNj {\n color: var(--primary) !important;\n border: 1px solid var(--primary) !important;\n}\n.Alert-module_outline__T2262.Alert-module_secondary__syXKX {\n color: var(--secondary) !important;\n border: 1px solid var(--secondary) !important;\n}\n.Alert-module_outline__T2262.Alert-module_accent__a2WIl {\n color: var(--accent) !important;\n border: 1px solid var(--accent) !important;\n}\n.Alert-module_outline__T2262.Alert-module_light__VKCXF {\n color: var(--light-contrast-text) !important;\n border: 1px solid var(--light) !important;\n}\n.Alert-module_outline__T2262.Alert-module_dark__3c-Hm {\n color: var(--dark) !important;\n border: 1px solid var(--dark) !important;\n}";
|
|
75
|
+
var styles$16 = {"alert":"Alert-module_alert__b4tbk","shadow":"Alert-module_shadow__5bz-7","contained":"Alert-module_contained__EM0x6","primary":"Alert-module_primary__q4pNj","accent":"Alert-module_accent__a2WIl","secondary":"Alert-module_secondary__syXKX","light":"Alert-module_light__VKCXF","dark":"Alert-module_dark__3c-Hm","outline":"Alert-module_outline__T2262"};
|
|
76
|
+
styleInject(css_248z$16);
|
|
76
77
|
|
|
77
78
|
const Alert = (props) => {
|
|
78
79
|
const { children, className, color = exports.COLOR.primary, variant = exports.VARIANT.contained, shadow = true, ...rest } = props;
|
|
79
80
|
const getCssClasses = () => {
|
|
80
81
|
const cssClasses = [];
|
|
81
|
-
cssClasses.push(styles$
|
|
82
|
+
cssClasses.push(styles$16.alert);
|
|
82
83
|
if (variant === exports.VARIANT.contained) {
|
|
83
|
-
cssClasses.push(styles$
|
|
84
|
-
cssClasses.push(styles$
|
|
84
|
+
cssClasses.push(styles$16.contained);
|
|
85
|
+
cssClasses.push(styles$16[color]);
|
|
85
86
|
}
|
|
86
87
|
if (variant === exports.VARIANT.outline) {
|
|
87
|
-
cssClasses.push(styles$
|
|
88
|
-
cssClasses.push(styles$
|
|
88
|
+
cssClasses.push(styles$16.outline);
|
|
89
|
+
cssClasses.push(styles$16[color]);
|
|
89
90
|
}
|
|
90
|
-
shadow && cssClasses.push(styles$
|
|
91
|
+
shadow && cssClasses.push(styles$16['shadow']);
|
|
91
92
|
className && cssClasses.push(className);
|
|
92
93
|
return cssClasses.filter(r => r).join(' ');
|
|
93
94
|
};
|
|
94
|
-
return (
|
|
95
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
95
96
|
};
|
|
96
97
|
|
|
97
|
-
var css_248z$
|
|
98
|
-
var styles$
|
|
99
|
-
styleInject(css_248z$
|
|
98
|
+
var css_248z$15 = ".AppBar-module_appbar__Neyh3 {\n padding: 0.5rem var(--1);\n display: flex;\n z-index: 1000;\n min-height: 64px;\n flex-shrink: 0;\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_primary__xMqXD {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_secondary__8MkLA {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_accent__vHbkp {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_light__HGy3y {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_dark__ILq96 {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.AppBar-module_appbar__Neyh3.AppBar-module_shadow__gQN8s {\n box-shadow: 0 4px 2px -2px var(--shadowColor);\n}";
|
|
99
|
+
var styles$15 = {"appbar":"AppBar-module_appbar__Neyh3","primary":"AppBar-module_primary__xMqXD","secondary":"AppBar-module_secondary__8MkLA","accent":"AppBar-module_accent__vHbkp","light":"AppBar-module_light__HGy3y","dark":"AppBar-module_dark__ILq96","shadow":"AppBar-module_shadow__gQN8s"};
|
|
100
|
+
styleInject(css_248z$15);
|
|
100
101
|
|
|
101
102
|
const AppBar = (props) => {
|
|
102
103
|
const { children, className, color = exports.COLOR.primary, shadow = true, ...rest } = props;
|
|
103
104
|
const getCssClasses = () => {
|
|
104
105
|
const cssClasses = [];
|
|
105
|
-
cssClasses.push(styles$
|
|
106
|
-
cssClasses.push(styles$
|
|
107
|
-
shadow && cssClasses.push(styles$
|
|
106
|
+
cssClasses.push(styles$15[color]);
|
|
107
|
+
cssClasses.push(styles$15.appbar);
|
|
108
|
+
shadow && cssClasses.push(styles$15['shadow']);
|
|
108
109
|
className && cssClasses.push(className);
|
|
109
110
|
return cssClasses.filter(r => r).join(' ');
|
|
110
111
|
};
|
|
111
|
-
return (
|
|
112
|
+
return (jsxRuntime.jsx("nav", { className: getCssClasses(), ...rest, children: children }));
|
|
112
113
|
};
|
|
113
114
|
|
|
114
|
-
var css_248z$
|
|
115
|
-
var styles$
|
|
116
|
-
styleInject(css_248z$
|
|
115
|
+
var css_248z$14 = ".AppBarTitle-module_appbarTitle__RsFg5 {\n align-items: center;\n padding-top: 0.3125rem;\n padding-bottom: 0.3125rem;\n font-size: 1.25rem;\n line-height: 1.8;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden !important;\n display: inline-block;\n}\n.AppBarTitle-module_appbarTitle__RsFg5:hover {\n cursor: pointer;\n}";
|
|
116
|
+
var styles$14 = {"appbarTitle":"AppBarTitle-module_appbarTitle__RsFg5"};
|
|
117
|
+
styleInject(css_248z$14);
|
|
117
118
|
|
|
118
119
|
const AppBarTitle = (props) => {
|
|
119
120
|
const { children, className, onClick } = props;
|
|
120
121
|
const getCssClass = () => {
|
|
121
122
|
const cssClasses = [];
|
|
122
|
-
cssClasses.push(styles$
|
|
123
|
+
cssClasses.push(styles$14.appbarTitle);
|
|
123
124
|
className && cssClasses.push(className);
|
|
124
125
|
return cssClasses.filter(r => r).join(' ');
|
|
125
126
|
};
|
|
126
|
-
return (
|
|
127
|
+
return (jsxRuntime.jsx("div", { className: getCssClass(), onClick: onClick, children: children }));
|
|
127
128
|
};
|
|
128
129
|
|
|
129
|
-
var css_248z$
|
|
130
|
-
var styles$
|
|
131
|
-
styleInject(css_248z$
|
|
130
|
+
var css_248z$13 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
|
|
131
|
+
var styles$13 = {"icon":"Icon-module_icon__lFKCA","primary":"Icon-module_primary__3fID-","accent":"Icon-module_accent__aZXGb","secondary":"Icon-module_secondary__HKKop","light":"Icon-module_light__-ApMm","dark":"Icon-module_dark__DpCIK"};
|
|
132
|
+
styleInject(css_248z$13);
|
|
132
133
|
|
|
133
134
|
const Icon = (props) => {
|
|
134
135
|
const { children, iconColor, className, ...rest } = props;
|
|
135
136
|
const getCssClasses = () => {
|
|
136
137
|
const cssClasses = [];
|
|
137
|
-
cssClasses.push(styles$
|
|
138
|
-
iconColor && cssClasses.push(styles$
|
|
138
|
+
cssClasses.push(styles$13.icon);
|
|
139
|
+
iconColor && cssClasses.push(styles$13[iconColor]);
|
|
139
140
|
className && cssClasses.push(className);
|
|
140
141
|
return cssClasses.filter(css => css).join(' ');
|
|
141
142
|
};
|
|
142
|
-
return (
|
|
143
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
143
144
|
};
|
|
144
145
|
|
|
145
|
-
var css_248z$
|
|
146
|
-
var styles$
|
|
147
|
-
styleInject(css_248z$
|
|
146
|
+
var css_248z$12 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
|
|
147
|
+
var styles$12 = {"iconButton":"IconButton-module_iconButton__rpCPQ","shadow":"IconButton-module_shadow__Uw0RK","md":"IconButton-module_md__XnuSk","lg":"IconButton-module_lg__arEvo","text":"IconButton-module_text__Ualag","active":"IconButton-module_active__VIqU9","primary":"IconButton-module_primary__vbo-G","secondary":"IconButton-module_secondary__AiNAY","accent":"IconButton-module_accent__QRzM2","light":"IconButton-module_light__YNEiO","dark":"IconButton-module_dark__gnbUH","disabled":"IconButton-module_disabled__QB0ZV","contained":"IconButton-module_contained__k7vGA"};
|
|
148
|
+
styleInject(css_248z$12);
|
|
148
149
|
|
|
149
150
|
const IconButton = (props) => {
|
|
150
151
|
const { children, icon, variant = exports.VARIANT.text, color = exports.COLOR.dark, size = exports.SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
151
152
|
const getCssClasses = () => {
|
|
152
153
|
const cssClasses = [];
|
|
153
|
-
cssClasses.push(styles$
|
|
154
|
-
cssClasses.push(styles$
|
|
155
|
-
cssClasses.push(styles$
|
|
156
|
-
cssClasses.push(styles$
|
|
157
|
-
isActive && cssClasses.push(styles$
|
|
158
|
-
disabled && cssClasses.push(styles$
|
|
159
|
-
shadow && cssClasses.push(styles$
|
|
154
|
+
cssClasses.push(styles$12[color]);
|
|
155
|
+
cssClasses.push(styles$12[variant]);
|
|
156
|
+
cssClasses.push(styles$12[size]);
|
|
157
|
+
cssClasses.push(styles$12.iconButton);
|
|
158
|
+
isActive && cssClasses.push(styles$12.active);
|
|
159
|
+
disabled && cssClasses.push(styles$12.disabled);
|
|
160
|
+
shadow && cssClasses.push(styles$12.shadow);
|
|
160
161
|
className && cssClasses.push(className);
|
|
161
162
|
return cssClasses.filter(css => css).join(' ');
|
|
162
163
|
};
|
|
163
|
-
return (
|
|
164
|
-
icon && React__default["default"].createElement(Icon, null, icon),
|
|
165
|
-
children));
|
|
164
|
+
return (jsxRuntime.jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsxRuntime.jsx(Icon, { children: icon }), children] }));
|
|
166
165
|
};
|
|
167
166
|
|
|
168
|
-
const CaretDownSolidIcon = () => (
|
|
169
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" })));
|
|
170
|
-
|
|
171
|
-
const CheckSquareRegularIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
|
|
172
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" })));
|
|
167
|
+
const CaretDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
173
168
|
|
|
174
|
-
const
|
|
175
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" })));
|
|
169
|
+
const CheckSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
|
|
176
170
|
|
|
177
|
-
const
|
|
178
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" })));
|
|
171
|
+
const CheckSquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
|
|
179
172
|
|
|
180
|
-
const
|
|
181
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" })));
|
|
173
|
+
const ChevronDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
|
|
182
174
|
|
|
183
|
-
const
|
|
184
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" })));
|
|
175
|
+
const ChevronLeftSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
|
|
185
176
|
|
|
186
|
-
const
|
|
187
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" })));
|
|
177
|
+
const ChevronRightSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
|
|
188
178
|
|
|
189
|
-
const
|
|
190
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" })));
|
|
179
|
+
const ChevronUpSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
|
|
191
180
|
|
|
192
|
-
const
|
|
193
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
|
|
181
|
+
const CircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
194
182
|
|
|
195
|
-
const
|
|
196
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" })));
|
|
183
|
+
const HomeSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
|
|
197
184
|
|
|
198
|
-
const PlusSolidIcon = () => (
|
|
199
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" })));
|
|
185
|
+
const PlusSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
|
|
200
186
|
|
|
201
|
-
const
|
|
202
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })));
|
|
187
|
+
const SpinnerSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
|
|
203
188
|
|
|
204
|
-
const
|
|
205
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
|
|
189
|
+
const SquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
|
|
206
190
|
|
|
207
|
-
const
|
|
208
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" })));
|
|
191
|
+
const TimesCircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
|
|
209
192
|
|
|
210
|
-
|
|
211
|
-
const timeoutId = React.useRef();
|
|
212
|
-
React.useEffect(() => {
|
|
213
|
-
clearTimeout(timeoutId.current);
|
|
214
|
-
timeoutId.current = setTimeout(callback, timeout);
|
|
215
|
-
return () => clearTimeout(timeoutId.current);
|
|
216
|
-
}, deps);
|
|
217
|
-
}
|
|
193
|
+
const TimesSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
218
194
|
|
|
219
195
|
const useConstructor = (callBack) => {
|
|
220
196
|
React.useEffect(() => {
|
|
@@ -226,6 +202,15 @@ function useCssClasses(cssClasses) {
|
|
|
226
202
|
return [cssClasses?.filter(css => css).join(' ') || ''];
|
|
227
203
|
}
|
|
228
204
|
|
|
205
|
+
function useDebounce(callback, timeout, deps) {
|
|
206
|
+
const timeoutId = React.useRef();
|
|
207
|
+
React.useEffect(() => {
|
|
208
|
+
clearTimeout(timeoutId.current);
|
|
209
|
+
timeoutId.current = setTimeout(callback, timeout);
|
|
210
|
+
return () => clearTimeout(timeoutId.current);
|
|
211
|
+
}, deps);
|
|
212
|
+
}
|
|
213
|
+
|
|
229
214
|
function useHover() {
|
|
230
215
|
const [value, setValue] = React.useState(false);
|
|
231
216
|
const ref = React.useRef(null);
|
|
@@ -301,9 +286,9 @@ const Portal$1 = ({ children, target = document.body, className }) => {
|
|
|
301
286
|
return reactDom.createPortal(children, containerEl);
|
|
302
287
|
};
|
|
303
288
|
|
|
304
|
-
var css_248z$
|
|
305
|
-
var styles$
|
|
306
|
-
styleInject(css_248z$
|
|
289
|
+
var css_248z$11 = ".Backdrop-module_backdrop__IRMoL {\n height: 100%;\n width: 100%;\n position: absolute;\n opacity: 0.5;\n z-index: 1040;\n top: 0;\n left: 0;\n background-color: #000;\n}\n.Backdrop-module_backdrop__IRMoL.Backdrop-module_isTransparent__F5nA5 {\n opacity: 0;\n}";
|
|
290
|
+
var styles$11 = {"backdrop":"Backdrop-module_backdrop__IRMoL","isTransparent":"Backdrop-module_isTransparent__F5nA5"};
|
|
291
|
+
styleInject(css_248z$11);
|
|
307
292
|
|
|
308
293
|
const Backdrop = (props) => {
|
|
309
294
|
const { target = document.body, isTransparent = false, onClick, style, ...rest } = props;
|
|
@@ -313,93 +298,90 @@ const Backdrop = (props) => {
|
|
|
313
298
|
};
|
|
314
299
|
const getCssClasses = () => {
|
|
315
300
|
const cssClasses = [];
|
|
316
|
-
cssClasses.push(styles$
|
|
317
|
-
isTransparent && cssClasses.push(styles$
|
|
301
|
+
cssClasses.push(styles$11.backdrop);
|
|
302
|
+
isTransparent && cssClasses.push(styles$11['isTransparent']);
|
|
318
303
|
return cssClasses.filter(css => css).join(' ');
|
|
319
304
|
};
|
|
320
305
|
const getStyles = () => {
|
|
321
306
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
322
307
|
};
|
|
323
|
-
return (
|
|
324
|
-
React__default["default"].createElement("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest })));
|
|
308
|
+
return (jsxRuntime.jsx(Portal$1, { className: 'backdrop-root', target: target, children: jsxRuntime.jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
325
309
|
};
|
|
326
310
|
|
|
327
|
-
var css_248z
|
|
328
|
-
var styles
|
|
329
|
-
styleInject(css_248z
|
|
311
|
+
var css_248z$10 = ".List-module_list__gpZ41 {\n width: 100%;\n display: flex;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n background-color: var(--white);\n}";
|
|
312
|
+
var styles$10 = {"list":"List-module_list__gpZ41"};
|
|
313
|
+
styleInject(css_248z$10);
|
|
330
314
|
|
|
331
315
|
const List = (props) => {
|
|
332
316
|
const { children, className, isFlush, ...rest } = props;
|
|
333
317
|
const getCssClasses = () => {
|
|
334
318
|
const cssClasses = [];
|
|
335
|
-
isFlush && cssClasses.push(styles
|
|
336
|
-
cssClasses.push(styles
|
|
319
|
+
isFlush && cssClasses.push(styles$10.flush);
|
|
320
|
+
cssClasses.push(styles$10.list);
|
|
337
321
|
className && cssClasses.push(className);
|
|
338
322
|
return cssClasses.filter(css => css).join(' ');
|
|
339
323
|
};
|
|
340
|
-
return (
|
|
324
|
+
return (jsxRuntime.jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
341
325
|
};
|
|
342
326
|
|
|
343
|
-
var css_248z
|
|
344
|
-
var styles
|
|
345
|
-
styleInject(css_248z
|
|
327
|
+
var css_248z$$ = ".ListItem-module_listItem__Pk1AP {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.75rem 1.25rem;\n min-width: 100%;\n color: var(--bodyColor);\n text-align: inherit;\n transition: background 0.5s ease;\n}\n.ListItem-module_listItem__Pk1AP:hover, .ListItem-module_listItem__Pk1AP.ListItem-module_active__zm2q8 {\n cursor: pointer;\n z-index: 1;\n text-decoration: none;\n background-color: rgba(0, 0, 0, 0.04);\n color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP + .ListItem-module_listItem__Pk1AP {\n border-top-width: 0;\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_primary__F6Qja {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_accent__pg3Ha {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_secondary__d0drD {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_light__37kby {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_dark__ZxQTF {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl {\n color: rgba(0, 0, 0, 0.26);\n}\n.ListItem-module_listItem__Pk1AP.ListItem-module_disabled__DQLKl:hover {\n cursor: not-allowed;\n background-color: inherit;\n}";
|
|
328
|
+
var styles$$ = {"listItem":"ListItem-module_listItem__Pk1AP","active":"ListItem-module_active__zm2q8","primary":"ListItem-module_primary__F6Qja","accent":"ListItem-module_accent__pg3Ha","secondary":"ListItem-module_secondary__d0drD","light":"ListItem-module_light__37kby","dark":"ListItem-module_dark__ZxQTF","disabled":"ListItem-module_disabled__DQLKl"};
|
|
329
|
+
styleInject(css_248z$$);
|
|
346
330
|
|
|
347
331
|
const ListItem = (props) => {
|
|
348
332
|
const { children, color, active, className, disabled, onClick, ...rest } = props;
|
|
349
333
|
const getCssClasses = () => {
|
|
350
334
|
const cssClasses = [];
|
|
351
|
-
cssClasses.push(styles
|
|
352
|
-
color && cssClasses.push(styles
|
|
353
|
-
active && cssClasses.push(styles
|
|
354
|
-
disabled && cssClasses.push(styles
|
|
335
|
+
cssClasses.push(styles$$.listItem);
|
|
336
|
+
color && cssClasses.push(styles$$[color]);
|
|
337
|
+
active && cssClasses.push(styles$$['active']);
|
|
338
|
+
disabled && cssClasses.push(styles$$['disabled']);
|
|
355
339
|
className && cssClasses.push(className);
|
|
356
340
|
return cssClasses.filter(css => css).join(' ');
|
|
357
341
|
};
|
|
358
342
|
const handleClick = (e) => {
|
|
359
343
|
!disabled && onClick && onClick(e);
|
|
360
344
|
};
|
|
361
|
-
return (
|
|
345
|
+
return (jsxRuntime.jsx("li", { onClick: handleClick, className: getCssClasses(), ...rest, children: children }));
|
|
362
346
|
};
|
|
363
347
|
|
|
364
|
-
var css_248z$
|
|
365
|
-
var styles$
|
|
348
|
+
var css_248z$_ = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR svg, .ListItemAvatar-module_avatar__sVWfR img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
349
|
+
var styles$_ = {"avatar":"ListItemAvatar-module_avatar__sVWfR"};
|
|
350
|
+
styleInject(css_248z$_);
|
|
351
|
+
|
|
352
|
+
const ListItemAvatar = ({ avatar, ...rest }) => (jsxRuntime.jsx("div", { className: styles$_.avatar, ...rest, children: avatar }));
|
|
353
|
+
|
|
354
|
+
var css_248z$Z = ".ListItemIcon-module_icon__cCvEv {\n margin-right: 32px;\n}\n.ListItemIcon-module_icon__cCvEv svg {\n width: 24px;\n height: 24px;\n}";
|
|
355
|
+
var styles$Z = {"icon":"ListItemIcon-module_icon__cCvEv"};
|
|
366
356
|
styleInject(css_248z$Z);
|
|
367
357
|
|
|
368
|
-
const
|
|
358
|
+
const ListItemIcon = ({ icon, ...rest }) => (jsxRuntime.jsx("div", { className: styles$Z.icon, ...rest, children: icon }));
|
|
369
359
|
|
|
370
|
-
var css_248z$Y = ".
|
|
371
|
-
var styles$Y = {"
|
|
360
|
+
var css_248z$Y = ".ListItemAction-module_listItemAction__gAQRj {\n display: flex;\n justify-content: center;\n min-width: 40px;\n}\n.ListItemAction-module_listItemAction__gAQRj svg {\n width: 20px;\n height: 20px;\n}";
|
|
361
|
+
var styles$Y = {"listItemAction":"ListItemAction-module_listItemAction__gAQRj"};
|
|
372
362
|
styleInject(css_248z$Y);
|
|
373
363
|
|
|
374
|
-
const
|
|
364
|
+
const ListItemAction = ({ children, onClick, ...rest }) => (jsxRuntime.jsx("div", { className: styles$Y.listItemAction, onClick: (e) => onClick && onClick(e), ...rest, children: children }));
|
|
375
365
|
|
|
376
|
-
var css_248z$X = ".
|
|
377
|
-
var styles$X = {"
|
|
366
|
+
var css_248z$X = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
367
|
+
var styles$X = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
378
368
|
styleInject(css_248z$X);
|
|
379
369
|
|
|
380
|
-
const ListItemAction = ({ children, onClick, ...rest }) => (React__default["default"].createElement("div", { className: styles$X.listItemAction, onClick: (e) => onClick && onClick(e), ...rest }, children));
|
|
381
|
-
|
|
382
|
-
var css_248z$W = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
383
|
-
var styles$W = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
384
|
-
styleInject(css_248z$W);
|
|
385
|
-
|
|
386
370
|
const ListItemText = ({ primary, secondary, ...rest }) => {
|
|
387
371
|
const getCssClasses = () => {
|
|
388
372
|
const cssClasses = [];
|
|
389
|
-
cssClasses.push(styles$
|
|
373
|
+
cssClasses.push(styles$X.listItemText);
|
|
390
374
|
return cssClasses.filter(css => css).join(' ');
|
|
391
375
|
};
|
|
392
|
-
return (
|
|
393
|
-
|
|
394
|
-
secondary &&
|
|
395
|
-
React__default["default"].createElement(ListItemTextSecondary, null, secondary)));
|
|
376
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx(ListItemTextPrimary, { children: primary }), secondary &&
|
|
377
|
+
jsxRuntime.jsx(ListItemTextSecondary, { children: secondary })] }));
|
|
396
378
|
};
|
|
397
|
-
const ListItemTextPrimary = ({ children }) => (
|
|
398
|
-
const ListItemTextSecondary = ({ children }) => (
|
|
379
|
+
const ListItemTextPrimary = ({ children }) => (jsxRuntime.jsx("div", { className: "list-item-text-primary", children: children }));
|
|
380
|
+
const ListItemTextSecondary = ({ children }) => (jsxRuntime.jsx("div", { className: "list-item-text-secondary text-muted", style: { fontSize: '0.875rem' }, children: children }));
|
|
399
381
|
|
|
400
|
-
var css_248z$
|
|
401
|
-
var styles$
|
|
402
|
-
styleInject(css_248z$
|
|
382
|
+
var css_248z$W = ".AutoComplete-module_selectContainer__1kA85 {\n position: relative;\n}\n\n.AutoComplete-module_select__NNYOi {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n}\n.AutoComplete-module_select__NNYOi:hover {\n cursor: pointer;\n}\n.AutoComplete-module_select__NNYOi:focus:not(.AutoComplete-module_select__NNYOi.AutoComplete-module_disabled__CbGP4) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.AutoComplete-module_select__NNYOi:disabled, .AutoComplete-module_select__NNYOi:read-only {\n background-color: #e9ecef;\n}\n.AutoComplete-module_select__NNYOi:disabled:hover {\n cursor: not-allowed;\n}\n.AutoComplete-module_select__NNYOi:read-only:hover {\n cursor: inherit;\n}\n\n.AutoComplete-module_selectMenu__Gu81L {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 38px;\n z-index: 1050;\n max-height: 280px;\n overflow: auto;\n}";
|
|
383
|
+
var styles$W = {"selectContainer":"AutoComplete-module_selectContainer__1kA85","select":"AutoComplete-module_select__NNYOi","disabled":"AutoComplete-module_disabled__CbGP4","selectMenu":"AutoComplete-module_selectMenu__Gu81L"};
|
|
384
|
+
styleInject(css_248z$W);
|
|
403
385
|
|
|
404
386
|
// preset value
|
|
405
387
|
// enter -> delay? -> show results
|
|
@@ -447,7 +429,7 @@ const AutoComplete = (props) => {
|
|
|
447
429
|
const getCssClass = () => {
|
|
448
430
|
const cssClasses = [];
|
|
449
431
|
className && cssClasses.push(className);
|
|
450
|
-
cssClasses.push(styles$
|
|
432
|
+
cssClasses.push(styles$W.select);
|
|
451
433
|
return cssClasses.filter(r => r).join(' ');
|
|
452
434
|
};
|
|
453
435
|
const show = () => setIsShow(true);
|
|
@@ -471,70 +453,96 @@ const AutoComplete = (props) => {
|
|
|
471
453
|
setModel('');
|
|
472
454
|
setSearchText('');
|
|
473
455
|
};
|
|
474
|
-
return (
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
React__default["default"].createElement(List, null, _options && _options.map((option, index) => React__default["default"].createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), disabled: !option.value },
|
|
483
|
-
React__default["default"].createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
484
|
-
React__default["default"].createElement(Backdrop, { isTransparent: true, onClick: () => hide() }))));
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
var css_248z$U = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
488
|
-
var styles$U = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"Badge-module_badge__9ImR0","primary":"Badge-module_primary__41U-t","accent":"Badge-module_accent__OQy2-","secondary":"Badge-module_secondary__a9Jfh","light":"Badge-module_light__4QvQ5","dark":"Badge-module_dark__g1yUJ"};
|
|
489
|
-
styleInject(css_248z$U);
|
|
456
|
+
return (jsxRuntime.jsxs("div", { ref: selectConainter, className: styles$W.selectContainer, children: [jsxRuntime.jsxs("div", { className: "d-flex", children: [jsxRuntime.jsx("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }), showClearButton && model?.length > 0 &&
|
|
457
|
+
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow &&
|
|
458
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$W.selectMenu, children: jsxRuntime.jsx(List, { children: _options && _options.map((option, index) => jsxRuntime.jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
var css_248z$V = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
462
|
+
var styles$V = {"badgeContainer":"Badge-module_badgeContainer__3nZBs","badge":"Badge-module_badge__9ImR0","primary":"Badge-module_primary__41U-t","accent":"Badge-module_accent__OQy2-","secondary":"Badge-module_secondary__a9Jfh","light":"Badge-module_light__4QvQ5","dark":"Badge-module_dark__g1yUJ"};
|
|
463
|
+
styleInject(css_248z$V);
|
|
490
464
|
|
|
491
465
|
const Badge = (props) => {
|
|
492
466
|
const { children, content, className, color = exports.COLOR.primary, ...rest } = props;
|
|
493
467
|
const [cssClassName] = useCssClasses([
|
|
494
|
-
styles$
|
|
495
|
-
styles$
|
|
468
|
+
styles$V.badge,
|
|
469
|
+
styles$V[color],
|
|
496
470
|
className
|
|
497
471
|
]);
|
|
498
|
-
return (
|
|
499
|
-
children,
|
|
500
|
-
React__default["default"].createElement("span", { className: cssClassName, ...rest }, content)));
|
|
472
|
+
return (jsxRuntime.jsxs(BadgeContainer, { children: [children, jsxRuntime.jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
501
473
|
};
|
|
502
474
|
const BadgeContainer = (props) => {
|
|
503
475
|
const { children, className, ...rest } = props;
|
|
504
476
|
const [cssClassName] = useCssClasses([
|
|
505
|
-
styles$
|
|
477
|
+
styles$V.badgeContainer,
|
|
506
478
|
className,
|
|
507
479
|
]);
|
|
508
|
-
return (
|
|
480
|
+
return (jsxRuntime.jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
var css_248z$U = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
484
|
+
var styles$U = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
485
|
+
styleInject(css_248z$U);
|
|
486
|
+
|
|
487
|
+
const Breadcrumb = (props) => {
|
|
488
|
+
const { children, className, ...rest } = props;
|
|
489
|
+
const getCssClasses = () => {
|
|
490
|
+
const cssClasses = [];
|
|
491
|
+
cssClasses.push(styles$U.breadcrumb);
|
|
492
|
+
className && cssClasses.push(className);
|
|
493
|
+
return cssClasses.filter(css => css).join(' ');
|
|
494
|
+
};
|
|
495
|
+
return (jsxRuntime.jsx("nav", { ...rest, children: jsxRuntime.jsx("ol", { className: getCssClasses(), children: children }) }));
|
|
509
496
|
};
|
|
510
497
|
|
|
511
|
-
|
|
512
|
-
|
|
498
|
+
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
499
|
+
|
|
500
|
+
var css_248z$T = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
|
|
501
|
+
var styles$T = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
513
502
|
styleInject(css_248z$T);
|
|
514
503
|
|
|
504
|
+
const BreadcrumbItem = (props) => {
|
|
505
|
+
const { children, className, isActive, onClick } = props;
|
|
506
|
+
const getCssClasses = () => {
|
|
507
|
+
const cssClasses = [];
|
|
508
|
+
cssClasses.push(styles$T.breadcrumbItem);
|
|
509
|
+
className && cssClasses.push(className);
|
|
510
|
+
isActive && cssClasses.push('active');
|
|
511
|
+
return cssClasses.filter(css => css).join(' ');
|
|
512
|
+
};
|
|
513
|
+
const handleClick = (event) => {
|
|
514
|
+
onClick && onClick(event);
|
|
515
|
+
};
|
|
516
|
+
return (jsxRuntime.jsx("li", { className: getCssClasses(), onClick: handleClick, children: jsxRuntime.jsx(ConditionalWrapper, { condition: !isActive, wrapper: (label) => jsxRuntime.jsx("a", { children: label }), children: children }) }));
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
var css_248z$S = ".Button-module_button__qeIer {\n text-transform: uppercase;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n}\n.Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow);\n}\n.Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%;\n}\n.Button-module_button__qeIer:hover:not(:disabled) {\n cursor: pointer;\n}\n.Button-module_button__qeIer:focus:not(:disabled) {\n border-color: var(--primary-highlight);\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem var(--primary-highlight);\n}\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover:not(:disabled) {\n background-color: var(--primary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover:not(:disabled) {\n background-color: var(--accent-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background-color: var(--secondary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover:not(:disabled) {\n background-color: var(--light-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover:not(:disabled) {\n background-color: var(--dark-dark);\n}\n.Button-module_btnContained__16y5l:disabled {\n color: rgba(0, 0, 0, 0.26);\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12);\n}\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed;\n}\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary);\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover:not(:disabled) {\n text-decoration: none;\n background: var(--primary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover:not(:disabled) {\n text-decoration: none;\n background: var(--secondary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover:not(:disabled) {\n text-decoration: none;\n background: var(--accent-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover:not(:disabled) {\n text-decoration: none;\n background: var(--light-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover:not(:disabled) {\n text-decoration: none;\n background: var(--dark-highlight);\n}\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary);\n border-color: var(--primary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover:not(:disabled) {\n background: var(--primary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary);\n border-color: var(--secondary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background: var(--secondary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent);\n border-color: var(--accent);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover:not(:disabled) {\n background: var(--accent-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n border-color: var(--light);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover:not(:disabled) {\n background: var(--light-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark);\n border-color: var(--dark);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover:not(:disabled) {\n background: var(--dark-highlight);\n}\n.Button-module_btnOutline__CCFPI:disabled {\n color: rgba(0, 0, 0, 0.26);\n border: 1px solid rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px;\n}\n.Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px;\n}\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px;\n}\n.Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px;\n}";
|
|
520
|
+
var styles$S = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
521
|
+
styleInject(css_248z$S);
|
|
522
|
+
|
|
515
523
|
const ButtonContext = React.createContext({
|
|
516
524
|
color: null
|
|
517
525
|
});
|
|
518
526
|
const useButtonContext = () => React.useContext(ButtonContext);
|
|
519
527
|
|
|
520
|
-
const Button =
|
|
528
|
+
const Button = props => {
|
|
521
529
|
const { children, variant = exports.VARIANT.contained, color = exports.COLOR.primary, isRounded, isActive, className, startIcon, endIcon, shadow = true, block, ...rest } = props;
|
|
522
530
|
const buttonContext = useButtonContext();
|
|
523
531
|
const getCssClasses = () => {
|
|
524
532
|
const cssClasses = [];
|
|
525
|
-
cssClasses.push(styles$
|
|
533
|
+
cssClasses.push(styles$S.button);
|
|
526
534
|
const buttonColor = buttonContext.color || color;
|
|
527
535
|
if (variant !== 'outline' && variant !== 'text') {
|
|
528
|
-
cssClasses.push(styles$
|
|
529
|
-
cssClasses.push(styles$
|
|
536
|
+
cssClasses.push(styles$S.btnContained);
|
|
537
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
530
538
|
}
|
|
531
539
|
if (variant === 'outline') {
|
|
532
|
-
cssClasses.push(styles$
|
|
533
|
-
cssClasses.push(styles$
|
|
540
|
+
cssClasses.push(styles$S.btnOutline);
|
|
541
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
534
542
|
}
|
|
535
543
|
if (variant === 'text') {
|
|
536
|
-
cssClasses.push(styles$
|
|
537
|
-
cssClasses.push(styles$
|
|
544
|
+
cssClasses.push(styles$S.btnText);
|
|
545
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
538
546
|
}
|
|
539
547
|
if (isRounded && variant !== 'text') {
|
|
540
548
|
cssClasses.push(`rounded-pill`);
|
|
@@ -542,183 +550,138 @@ const Button = (props) => {
|
|
|
542
550
|
if (isActive) {
|
|
543
551
|
cssClasses.push('active');
|
|
544
552
|
}
|
|
545
|
-
shadow && cssClasses.push(styles$
|
|
546
|
-
block && cssClasses.push(styles$
|
|
553
|
+
shadow && cssClasses.push(styles$S.shadow);
|
|
554
|
+
block && cssClasses.push(styles$S.block);
|
|
547
555
|
className && cssClasses.push(className);
|
|
548
556
|
return cssClasses.filter(css => css).join(' ');
|
|
549
557
|
};
|
|
550
|
-
return (
|
|
551
|
-
React__default["default"].createElement("span", { className: "d-flex justify-content-center" },
|
|
552
|
-
startIcon &&
|
|
553
|
-
React__default["default"].createElement(Icon, { className: styles$T.startIcon }, startIcon),
|
|
554
|
-
children,
|
|
555
|
-
endIcon &&
|
|
556
|
-
React__default["default"].createElement(Icon, { className: styles$T.endIcon }, endIcon))));
|
|
558
|
+
return (jsxRuntime.jsx("button", { type: "button", className: getCssClasses(), ...rest, children: jsxRuntime.jsxs("span", { className: "d-flex justify-content-center", children: [startIcon && jsxRuntime.jsx(Icon, { className: styles$S.startIcon, children: startIcon }), children, endIcon && jsxRuntime.jsx(Icon, { className: styles$S.endIcon, children: endIcon })] }) }));
|
|
557
559
|
};
|
|
558
560
|
|
|
559
|
-
var css_248z$
|
|
560
|
-
var styles$
|
|
561
|
-
styleInject(css_248z$
|
|
561
|
+
var css_248z$R = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
|
|
562
|
+
var styles$R = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
|
|
563
|
+
styleInject(css_248z$R);
|
|
562
564
|
|
|
563
565
|
const ButtonGroup = (props) => {
|
|
564
566
|
const { children, className, color, ...rest } = props;
|
|
565
567
|
const getCssClasses = () => {
|
|
566
568
|
const cssClasses = [];
|
|
567
|
-
cssClasses.push(styles$
|
|
568
|
-
className && cssClasses.push(className);
|
|
569
|
-
return cssClasses.filter(css => css).join(' ');
|
|
570
|
-
};
|
|
571
|
-
return (React__default["default"].createElement(ButtonContext.Provider, { value: { color: color || exports.COLOR.primary } },
|
|
572
|
-
React__default["default"].createElement("div", { className: getCssClasses(), role: "group", ...rest }, children)));
|
|
573
|
-
};
|
|
574
|
-
|
|
575
|
-
var css_248z$R = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
576
|
-
var styles$R = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
577
|
-
styleInject(css_248z$R);
|
|
578
|
-
|
|
579
|
-
const Breadcrumb = (props) => {
|
|
580
|
-
const { children, className, ...rest } = props;
|
|
581
|
-
const getCssClasses = () => {
|
|
582
|
-
const cssClasses = [];
|
|
583
|
-
cssClasses.push(styles$R.breadcrumb);
|
|
569
|
+
cssClasses.push(styles$R.buttonGroup);
|
|
584
570
|
className && cssClasses.push(className);
|
|
585
571
|
return cssClasses.filter(css => css).join(' ');
|
|
586
572
|
};
|
|
587
|
-
return (
|
|
588
|
-
React__default["default"].createElement("ol", { className: getCssClasses() }, children)));
|
|
573
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.primary }, children: jsxRuntime.jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
589
574
|
};
|
|
590
575
|
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
var css_248z$Q = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
|
|
594
|
-
var styles$Q = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
576
|
+
var css_248z$Q = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
577
|
+
var styles$Q = {"card":"Card-module_card__TQdQq","shadow":"Card-module_shadow__NxDVz"};
|
|
595
578
|
styleInject(css_248z$Q);
|
|
596
579
|
|
|
597
|
-
const BreadcrumbItem = (props) => {
|
|
598
|
-
const { children, className, isActive, onClick } = props;
|
|
599
|
-
const getCssClasses = () => {
|
|
600
|
-
const cssClasses = [];
|
|
601
|
-
cssClasses.push(styles$Q.breadcrumbItem);
|
|
602
|
-
className && cssClasses.push(className);
|
|
603
|
-
isActive && cssClasses.push('active');
|
|
604
|
-
return cssClasses.filter(css => css).join(' ');
|
|
605
|
-
};
|
|
606
|
-
const handleClick = (event) => {
|
|
607
|
-
onClick && onClick(event);
|
|
608
|
-
};
|
|
609
|
-
return (React__default["default"].createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
610
|
-
React__default["default"].createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React__default["default"].createElement("a", null, label) }, children)));
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
var css_248z$P = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
614
|
-
var styles$P = {"card":"Card-module_card__TQdQq","shadow":"Card-module_shadow__NxDVz"};
|
|
615
|
-
styleInject(css_248z$P);
|
|
616
|
-
|
|
617
580
|
const Card = (props) => {
|
|
618
581
|
const { children, className, shadow = true, ...rest } = props;
|
|
619
582
|
const getCssClasses = () => {
|
|
620
583
|
const cssClasses = [];
|
|
621
|
-
cssClasses.push(styles$
|
|
622
|
-
shadow && cssClasses.push(styles$
|
|
584
|
+
cssClasses.push(styles$Q.card);
|
|
585
|
+
shadow && cssClasses.push(styles$Q.shadow);
|
|
623
586
|
className && cssClasses.push(className);
|
|
624
587
|
return cssClasses.filter(css => css).join(' ');
|
|
625
588
|
};
|
|
626
|
-
return (
|
|
589
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
627
590
|
};
|
|
628
591
|
|
|
629
|
-
var css_248z$
|
|
630
|
-
var styles$
|
|
631
|
-
styleInject(css_248z$
|
|
592
|
+
var css_248z$P = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem;\n}";
|
|
593
|
+
var styles$P = {"cardBody":"CardBody-module_cardBody__X52VY"};
|
|
594
|
+
styleInject(css_248z$P);
|
|
632
595
|
|
|
633
596
|
const CardBody = (props) => {
|
|
634
597
|
const { children, className, ...rest } = props;
|
|
635
598
|
const getCssClasses = () => {
|
|
636
599
|
const cssClasses = [];
|
|
637
|
-
cssClasses.push(styles$
|
|
600
|
+
cssClasses.push(styles$P.cardBody);
|
|
638
601
|
className && cssClasses.push(className);
|
|
639
602
|
return cssClasses.filter(css => css).join(' ');
|
|
640
603
|
};
|
|
641
|
-
return (
|
|
604
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
642
605
|
};
|
|
643
606
|
|
|
644
|
-
var css_248z$
|
|
645
|
-
var styles$
|
|
646
|
-
styleInject(css_248z$
|
|
607
|
+
var css_248z$O = ".CardFooter-module_cardFooter__BpOTG {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n.CardFooter-module_cardFooter__BpOTG:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}";
|
|
608
|
+
var styles$O = {"cardFooter":"CardFooter-module_cardFooter__BpOTG"};
|
|
609
|
+
styleInject(css_248z$O);
|
|
647
610
|
|
|
648
611
|
const CardFooter = (props) => {
|
|
649
612
|
const { children, className, ...rest } = props;
|
|
650
613
|
const getCssClasses = () => {
|
|
651
614
|
const cssClasses = [];
|
|
652
|
-
cssClasses.push(styles$
|
|
615
|
+
cssClasses.push(styles$O.cardFooter);
|
|
653
616
|
className && cssClasses.push(className);
|
|
654
617
|
return cssClasses.filter(css => css).join(' ');
|
|
655
618
|
};
|
|
656
|
-
return (
|
|
619
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
657
620
|
};
|
|
658
621
|
|
|
659
|
-
var css_248z$
|
|
660
|
-
var styles$
|
|
661
|
-
styleInject(css_248z$
|
|
622
|
+
var css_248z$N = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important;\n}";
|
|
623
|
+
var styles$N = {"cardSubtitle":"CardSubtitle-module_cardSubtitle__YdoRM"};
|
|
624
|
+
styleInject(css_248z$N);
|
|
662
625
|
|
|
663
626
|
const CardSubtitle = (props) => {
|
|
664
627
|
const { children, className, ...rest } = props;
|
|
665
628
|
const getCssClasses = () => {
|
|
666
629
|
const cssClasses = [];
|
|
667
|
-
cssClasses.push(styles$
|
|
630
|
+
cssClasses.push(styles$N.cardSubtitle);
|
|
668
631
|
className && cssClasses.push(className);
|
|
669
632
|
return cssClasses.filter(css => css).join(' ');
|
|
670
633
|
};
|
|
671
|
-
return (
|
|
634
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
672
635
|
};
|
|
673
636
|
|
|
674
|
-
var css_248z$
|
|
675
|
-
var styles$
|
|
676
|
-
styleInject(css_248z$
|
|
637
|
+
var css_248z$M = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0;\n}";
|
|
638
|
+
var styles$M = {"cardText":"CardText-module_cardText__UtYd9"};
|
|
639
|
+
styleInject(css_248z$M);
|
|
677
640
|
|
|
678
641
|
const CardText = (props) => {
|
|
679
642
|
const { children, className, ...rest } = props;
|
|
680
643
|
const getCssClasses = () => {
|
|
681
644
|
const cssClasses = [];
|
|
682
|
-
cssClasses.push(styles$
|
|
645
|
+
cssClasses.push(styles$M.cardText);
|
|
683
646
|
className && cssClasses.push(className);
|
|
684
647
|
return cssClasses.filter(css => css).join(' ');
|
|
685
648
|
};
|
|
686
|
-
return (
|
|
649
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
687
650
|
};
|
|
688
651
|
|
|
689
|
-
var css_248z$
|
|
690
|
-
var styles$
|
|
691
|
-
styleInject(css_248z$
|
|
652
|
+
var css_248z$L = ".CardTitle-module_cardTitle__aiPSE {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em;\n}";
|
|
653
|
+
var styles$L = {"cardTitle":"CardTitle-module_cardTitle__aiPSE"};
|
|
654
|
+
styleInject(css_248z$L);
|
|
692
655
|
|
|
693
656
|
const CardTitle = (props) => {
|
|
694
657
|
const { children, className, as: As = 'div', ...rest } = props;
|
|
695
658
|
const getCssClasses = () => {
|
|
696
659
|
const cssClasses = [];
|
|
697
|
-
cssClasses.push(styles$
|
|
660
|
+
cssClasses.push(styles$L.cardTitle);
|
|
698
661
|
className && cssClasses.push(className);
|
|
699
662
|
return cssClasses.filter(css => css).join(' ');
|
|
700
663
|
};
|
|
701
|
-
return (
|
|
664
|
+
return (jsxRuntime.jsx(As, { className: getCssClasses(), ...rest, children: children }));
|
|
702
665
|
};
|
|
703
666
|
|
|
704
|
-
var css_248z$
|
|
705
|
-
var styles$
|
|
706
|
-
styleInject(css_248z$
|
|
667
|
+
var css_248z$K = ".CardImage-module_cardImage__Z6JWW {\n flex-shrink: 0;\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}";
|
|
668
|
+
var styles$K = {"cardImage":"CardImage-module_cardImage__Z6JWW"};
|
|
669
|
+
styleInject(css_248z$K);
|
|
707
670
|
|
|
708
671
|
const CardImage = (props) => {
|
|
709
672
|
const { src, alt, className, ...rest } = props;
|
|
710
673
|
const getCssClasses = () => {
|
|
711
674
|
const cssClasses = [];
|
|
712
|
-
cssClasses.push(styles$
|
|
675
|
+
cssClasses.push(styles$K.cardImage);
|
|
713
676
|
className && cssClasses.push(className);
|
|
714
677
|
return cssClasses.filter(css => css).join(' ');
|
|
715
678
|
};
|
|
716
|
-
return (
|
|
679
|
+
return (jsxRuntime.jsx("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
|
|
717
680
|
};
|
|
718
681
|
|
|
719
|
-
var css_248z$
|
|
720
|
-
var styles$
|
|
721
|
-
styleInject(css_248z$
|
|
682
|
+
var css_248z$J = ".Checkbox-module_checkboxContainer__x2GCi {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n\n.Checkbox-module_checkboxLabel__nPY4k:hover {\n cursor: pointer;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG:hover {\n cursor: not-allowed;\n}";
|
|
683
|
+
var styles$J = {"checkboxContainer":"Checkbox-module_checkboxContainer__x2GCi","checkboxLabel":"Checkbox-module_checkboxLabel__nPY4k","disabled":"Checkbox-module_disabled__wnFIG"};
|
|
684
|
+
styleInject(css_248z$J);
|
|
722
685
|
|
|
723
686
|
const Checkbox = (props) => {
|
|
724
687
|
const { id, checked, className, label, name, value = 'off', disabled, readOnly, ...rest } = props;
|
|
@@ -736,8 +699,8 @@ const Checkbox = (props) => {
|
|
|
736
699
|
}
|
|
737
700
|
}, [checked]);
|
|
738
701
|
const icons = {
|
|
739
|
-
default:
|
|
740
|
-
selected:
|
|
702
|
+
default: jsxRuntime.jsx(SquareRegularIcon, {}),
|
|
703
|
+
selected: jsxRuntime.jsx(CheckSquareRegularIcon, {})
|
|
741
704
|
};
|
|
742
705
|
const getCssClasses = () => {
|
|
743
706
|
const cssClasses = [];
|
|
@@ -747,8 +710,8 @@ const Checkbox = (props) => {
|
|
|
747
710
|
};
|
|
748
711
|
const getCssClassesLabel = () => {
|
|
749
712
|
const cssClasses = [];
|
|
750
|
-
cssClasses.push(styles$
|
|
751
|
-
disabled && cssClasses.push(styles$
|
|
713
|
+
cssClasses.push(styles$J.checkboxLabel);
|
|
714
|
+
disabled && cssClasses.push(styles$J['disabled']);
|
|
752
715
|
return cssClasses.filter(css => css).join(' ');
|
|
753
716
|
};
|
|
754
717
|
const getIcon = () => {
|
|
@@ -760,24 +723,21 @@ const Checkbox = (props) => {
|
|
|
760
723
|
checkboxElement?.current?.click();
|
|
761
724
|
}
|
|
762
725
|
};
|
|
763
|
-
return (
|
|
764
|
-
React__default["default"].createElement(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }),
|
|
765
|
-
React__default["default"].createElement("label", { onClick: handleClick, className: getCssClassesLabel() }, label),
|
|
766
|
-
React__default["default"].createElement("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })));
|
|
726
|
+
return (jsxRuntime.jsxs("div", { className: styles$J.checkboxContainer, children: [jsxRuntime.jsx(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }), jsxRuntime.jsx("label", { onClick: handleClick, className: getCssClassesLabel(), children: label }), jsxRuntime.jsx("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })] }));
|
|
767
727
|
};
|
|
768
728
|
|
|
769
|
-
var css_248z$
|
|
770
|
-
var styles$
|
|
771
|
-
styleInject(css_248z$
|
|
729
|
+
var css_248z$I = ".Chip-module_chip__dZ5qz {\n display: inline-flex;\n align-items: center;\n padding: 0.5rem;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n font-size: 75%;\n font-weight: 700;\n border-radius: 10rem;\n line-height: 1;\n}\n.Chip-module_chip__dZ5qz span {\n margin-bottom: 2px;\n}\n.Chip-module_chip__dZ5qz svg {\n width: 18px;\n height: 18px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx {\n margin-left: 5px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_primary__YVDi9 {\n background: var(--primary);\n color: var(--primary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_secondary__-e4xP {\n background: var(--secondary);\n color: var(--secondary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_accent__ZCTwu {\n background: var(--accent);\n color: var(--accent-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_light__vKs7O {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Chip-module_chip__dZ5qz.Chip-module_dark__G-FLQ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_primary__YVDi9 {\n background: var(--primary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_secondary__-e4xP {\n background: var(--secondary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_accent__ZCTwu {\n background: var(--accent-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_shadow__v11NF {\n box-shadow: var(--shadow);\n}";
|
|
730
|
+
var styles$I = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_deleteIcon__--rUx","primary":"Chip-module_primary__YVDi9","secondary":"Chip-module_secondary__-e4xP","accent":"Chip-module_accent__ZCTwu","light":"Chip-module_light__vKs7O","dark":"Chip-module_dark__G-FLQ","clickable":"Chip-module_clickable__qAqVH","shadow":"Chip-module_shadow__v11NF"};
|
|
731
|
+
styleInject(css_248z$I);
|
|
772
732
|
|
|
773
733
|
const Chip = (props) => {
|
|
774
|
-
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon =
|
|
734
|
+
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = jsxRuntime.jsx(TimesCircleSolidIcon, {}), style, ...rest } = props;
|
|
775
735
|
const getCssClass = () => {
|
|
776
736
|
const cssClasses = [];
|
|
777
|
-
cssClasses.push(styles$
|
|
778
|
-
cssClasses.push(styles$
|
|
779
|
-
shadow && cssClasses.push(styles$
|
|
780
|
-
onClick && cssClasses.push(styles$
|
|
737
|
+
cssClasses.push(styles$I.chip);
|
|
738
|
+
cssClasses.push(styles$I[color]);
|
|
739
|
+
shadow && cssClasses.push(styles$I['shadow']);
|
|
740
|
+
onClick && cssClasses.push(styles$I['clickable']);
|
|
781
741
|
className && cssClasses.push(className);
|
|
782
742
|
return cssClasses.filter(r => r).join(' ');
|
|
783
743
|
};
|
|
@@ -785,9 +745,7 @@ const Chip = (props) => {
|
|
|
785
745
|
e.stopPropagation();
|
|
786
746
|
onDelete && onDelete(e);
|
|
787
747
|
};
|
|
788
|
-
return (
|
|
789
|
-
React__default["default"].createElement("span", null, children),
|
|
790
|
-
isDeletable && (React__default["default"].createElement("div", { className: styles$H.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
|
|
748
|
+
return (jsxRuntime.jsxs("div", { className: getCssClass(), ...rest, style: style, children: [jsxRuntime.jsx("span", { children: children }), isDeletable && (jsxRuntime.jsx("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e), children: deleteIcon }))] }));
|
|
791
749
|
};
|
|
792
750
|
|
|
793
751
|
const CssTransition = (props) => {
|
|
@@ -861,821 +819,165 @@ const CssTransition = (props) => {
|
|
|
861
819
|
cssState?.leaveEnd && cssClasses.push(`${className}-leave-end`);
|
|
862
820
|
return cssClasses.filter((css) => css).join(' ');
|
|
863
821
|
};
|
|
864
|
-
return (
|
|
865
|
-
|
|
822
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isRenderChild &&
|
|
823
|
+
jsxRuntime.jsx("div", { ref: transitionConainter, className: getCssClasses(), children: children }) }));
|
|
866
824
|
};
|
|
867
825
|
|
|
868
|
-
var
|
|
869
|
-
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
870
|
-
styleInject(css_248z$G);
|
|
826
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
871
827
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
const cssClasses = [];
|
|
876
|
-
cssClasses.push(styles$G.column);
|
|
877
|
-
className && cssClasses.push(className);
|
|
878
|
-
return cssClasses.filter(css => css).join(' ');
|
|
879
|
-
};
|
|
880
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }, children));
|
|
881
|
-
};
|
|
828
|
+
function createCommonjsModule(fn, module) {
|
|
829
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
830
|
+
}
|
|
882
831
|
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
832
|
+
/** @license React v16.13.1
|
|
833
|
+
* react-is.production.min.js
|
|
834
|
+
*
|
|
835
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
836
|
+
*
|
|
837
|
+
* This source code is licensed under the MIT license found in the
|
|
838
|
+
* LICENSE file in the root directory of this source tree.
|
|
839
|
+
*/
|
|
840
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
841
|
+
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
842
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
|
|
843
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
844
|
+
var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
845
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
886
846
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
847
|
+
var reactIs_production_min = {
|
|
848
|
+
AsyncMode: AsyncMode,
|
|
849
|
+
ConcurrentMode: ConcurrentMode,
|
|
850
|
+
ContextConsumer: ContextConsumer,
|
|
851
|
+
ContextProvider: ContextProvider,
|
|
852
|
+
Element: Element,
|
|
853
|
+
ForwardRef: ForwardRef,
|
|
854
|
+
Fragment: Fragment,
|
|
855
|
+
Lazy: Lazy,
|
|
856
|
+
Memo: Memo,
|
|
857
|
+
Portal: Portal,
|
|
858
|
+
Profiler: Profiler,
|
|
859
|
+
StrictMode: StrictMode,
|
|
860
|
+
Suspense: Suspense,
|
|
861
|
+
isAsyncMode: isAsyncMode,
|
|
862
|
+
isConcurrentMode: isConcurrentMode,
|
|
863
|
+
isContextConsumer: isContextConsumer,
|
|
864
|
+
isContextProvider: isContextProvider,
|
|
865
|
+
isElement: isElement,
|
|
866
|
+
isForwardRef: isForwardRef,
|
|
867
|
+
isFragment: isFragment,
|
|
868
|
+
isLazy: isLazy,
|
|
869
|
+
isMemo: isMemo,
|
|
870
|
+
isPortal: isPortal,
|
|
871
|
+
isProfiler: isProfiler,
|
|
872
|
+
isStrictMode: isStrictMode,
|
|
873
|
+
isSuspense: isSuspense,
|
|
874
|
+
isValidElementType: isValidElementType,
|
|
875
|
+
typeOf: typeOf
|
|
896
876
|
};
|
|
897
877
|
|
|
898
|
-
var
|
|
899
|
-
var styles$E = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
900
|
-
styleInject(css_248z$E);
|
|
878
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
901
879
|
|
|
902
|
-
const FormError = (props) => {
|
|
903
|
-
const { className = styles$E.isInvalid, errors = [] } = props;
|
|
904
|
-
return (React__default["default"].createElement(React.Fragment, null, errors &&
|
|
905
|
-
React__default["default"].createElement("div", { className: className }, errors.map(e => React__default["default"].createElement("div", { key: e.validator }, e.message)))));
|
|
906
|
-
};
|
|
907
880
|
|
|
908
|
-
const FormGroup = (props) => {
|
|
909
|
-
const { children, className = 'mb-1' } = props;
|
|
910
|
-
return (React__default["default"].createElement("div", { className: className }, children));
|
|
911
|
-
};
|
|
912
881
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
const getCssClasses = () => {
|
|
916
|
-
const cssClasses = [];
|
|
917
|
-
className && cssClasses.push(className);
|
|
918
|
-
return cssClasses.filter(css => css).join(' ');
|
|
919
|
-
};
|
|
920
|
-
return (React__default["default"].createElement("small", { className: getCssClasses() }, children));
|
|
921
|
-
};
|
|
882
|
+
if (process.env.NODE_ENV !== "production") {
|
|
883
|
+
(function() {
|
|
922
884
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
const handleOnChange = (event) => {
|
|
935
|
-
const values = event.target.files;
|
|
936
|
-
setFileList(values);
|
|
937
|
-
onChange && onChange(event);
|
|
938
|
-
};
|
|
939
|
-
const handleOnDelete = () => {
|
|
940
|
-
alert('coming soon');
|
|
941
|
-
};
|
|
942
|
-
return (React__default["default"].createElement("div", { className: "d-flex align-items-start" },
|
|
943
|
-
React__default["default"].createElement(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click() }, children),
|
|
944
|
-
React__default["default"].createElement("div", { className: "d-flex align-items-center flex-wrap ml-1" }, fileList && Array.from(fileList).map((file) => React__default["default"].createElement(Chip, { key: file.name, isDeletable: deletable, onDelete: () => handleOnDelete() }, file.name))),
|
|
945
|
-
React__default["default"].createElement("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })));
|
|
946
|
-
};
|
|
885
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
886
|
+
// nor polyfill, then a plain number is used for performance.
|
|
887
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
888
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
889
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
890
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
891
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
892
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
893
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
894
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
895
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
947
896
|
|
|
948
|
-
var
|
|
949
|
-
var
|
|
950
|
-
|
|
897
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
898
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
899
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
900
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
901
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
902
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
903
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
904
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
905
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
906
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
907
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
951
908
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
const [isShow, setIsShow] = React.useState(false);
|
|
957
|
-
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
958
|
-
const selectConainter = React.useRef(null);
|
|
959
|
-
const getCssClass = () => {
|
|
960
|
-
const cssClasses = [];
|
|
961
|
-
className && cssClasses.push(className);
|
|
962
|
-
disabled && cssClasses.push(styles$D['disabled']);
|
|
963
|
-
readOnly && cssClasses.push(styles$D['readOnly']);
|
|
964
|
-
cssClasses.push(styles$D.select);
|
|
965
|
-
return cssClasses.filter(r => r).join(' ');
|
|
966
|
-
};
|
|
967
|
-
React.useEffect(() => {
|
|
968
|
-
const newValue = value ? value : '';
|
|
969
|
-
writeValue(newValue);
|
|
970
|
-
if (newValue) {
|
|
971
|
-
const option = options.find(o => o.value === newValue);
|
|
972
|
-
if (option) {
|
|
973
|
-
setHoverIndex(options.indexOf(option));
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
}, [value, options]);
|
|
977
|
-
React.useEffect(() => {
|
|
978
|
-
if (hoverIndex) {
|
|
979
|
-
scrollIntoView(hoverIndex);
|
|
980
|
-
}
|
|
981
|
-
}, [hoverIndex, isShow]);
|
|
982
|
-
const scrollIntoView = (index) => {
|
|
983
|
-
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
984
|
-
if (htmlListItem) {
|
|
985
|
-
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
const writeValue = (val) => setModel(val);
|
|
989
|
-
React.useEffect(() => {
|
|
990
|
-
if (!multiple) {
|
|
991
|
-
const newOption = options.find(o => o.value === model);
|
|
992
|
-
if (newOption) {
|
|
993
|
-
setSelectedOptions([newOption]);
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
else {
|
|
997
|
-
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
998
|
-
setSelectedOptions([...filteredOptions]);
|
|
999
|
-
}
|
|
1000
|
-
}, [model, multiple]);
|
|
1001
|
-
const handleOnClick = (option) => {
|
|
1002
|
-
let newValue = multiple ? [] : '';
|
|
1003
|
-
if (!multiple) {
|
|
1004
|
-
if (model !== option.value) {
|
|
1005
|
-
newValue = option.value;
|
|
1006
|
-
onChange && onChange(newValue);
|
|
1007
|
-
}
|
|
1008
|
-
hide();
|
|
1009
|
-
}
|
|
1010
|
-
else {
|
|
1011
|
-
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
1012
|
-
if (selectedOption) {
|
|
1013
|
-
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
1014
|
-
}
|
|
1015
|
-
else {
|
|
1016
|
-
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
1017
|
-
newValue.push(option.value);
|
|
1018
|
-
}
|
|
1019
|
-
onChange && onChange(newValue);
|
|
1020
|
-
}
|
|
1021
|
-
writeValue(newValue);
|
|
1022
|
-
};
|
|
1023
|
-
const show = () => {
|
|
1024
|
-
if (!disabled && !readOnly) {
|
|
1025
|
-
setIsShow(true);
|
|
1026
|
-
}
|
|
1027
|
-
};
|
|
1028
|
-
const hide = () => setIsShow(false);
|
|
1029
|
-
const isActive = (option) => {
|
|
1030
|
-
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
1031
|
-
};
|
|
1032
|
-
const renderSingleViewModel = () => {
|
|
1033
|
-
let result = null;
|
|
1034
|
-
if (selectedOptions.length > 0) {
|
|
1035
|
-
result = React__default["default"].createElement("span", null, selectedOptions[0].label);
|
|
1036
|
-
}
|
|
1037
|
-
return result;
|
|
1038
|
-
};
|
|
1039
|
-
const renderMultipleViewModel = () => {
|
|
1040
|
-
let result = null;
|
|
1041
|
-
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
1042
|
-
result = selectedOptions
|
|
1043
|
-
.map(option => React__default["default"].createElement(Chip, { key: option.value, color: exports.COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option) }, option.label));
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
result = React__default["default"].createElement("span", null,
|
|
1047
|
-
selectedOptions.length,
|
|
1048
|
-
" Items selected");
|
|
1049
|
-
}
|
|
1050
|
-
return result;
|
|
1051
|
-
};
|
|
1052
|
-
const handleOnDelete = (event, option) => {
|
|
1053
|
-
event.stopPropagation();
|
|
1054
|
-
handleOnClick(option);
|
|
1055
|
-
};
|
|
1056
|
-
// TODO - extract with wrapper?
|
|
1057
|
-
const handleOnKeyDown = (e) => {
|
|
1058
|
-
if (isShow) {
|
|
1059
|
-
onKeyDown && onKeyDown(e);
|
|
1060
|
-
switch (e.code) {
|
|
1061
|
-
case 'Escape':
|
|
1062
|
-
hide();
|
|
1063
|
-
break;
|
|
1064
|
-
case 'ArrowDown':
|
|
1065
|
-
if (hoverIndex) {
|
|
1066
|
-
setHoverIndex(hoverIndex + 1);
|
|
1067
|
-
}
|
|
1068
|
-
break;
|
|
1069
|
-
case 'ArrowUp':
|
|
1070
|
-
// TODO
|
|
1071
|
-
if (hoverIndex) {
|
|
1072
|
-
setHoverIndex(hoverIndex - 1);
|
|
1073
|
-
}
|
|
1074
|
-
break;
|
|
1075
|
-
case 'Enter':
|
|
1076
|
-
if (hoverIndex) {
|
|
1077
|
-
const option = options[hoverIndex];
|
|
1078
|
-
if (option) {
|
|
1079
|
-
handleOnClick(option);
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
break;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
|
-
return (React__default["default"].createElement("div", { ref: selectConainter, className: styles$D.selectContainer },
|
|
1087
|
-
React__default["default"].createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
|
|
1088
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1089
|
-
!multiple && renderSingleViewModel(),
|
|
1090
|
-
multiple &&
|
|
1091
|
-
React__default["default"].createElement("div", { className: styles$D.chipContainer }, renderMultipleViewModel()),
|
|
1092
|
-
React__default["default"].createElement(Icon, { className: "ml-auto" },
|
|
1093
|
-
React__default["default"].createElement(ChevronDownSolidIcon, null)))),
|
|
1094
|
-
isShow &&
|
|
1095
|
-
React__default["default"].createElement(Portal$1, { className: 'backdrop-root' },
|
|
1096
|
-
React__default["default"].createElement("div", { className: styles$D.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width } },
|
|
1097
|
-
React__default["default"].createElement(List, null, options && options.map((option, index) => React__default["default"].createElement(ListItem, { id: `list-item-${index}`, key: option.value, onClick: () => handleOnClick(option), active: isActive(option) },
|
|
1098
|
-
multiple &&
|
|
1099
|
-
React__default["default"].createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),
|
|
1100
|
-
React__default["default"].createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
1101
|
-
React__default["default"].createElement(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() }))));
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
var css_248z$C = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
1105
|
-
var styles$C = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
1106
|
-
styleInject(css_248z$C);
|
|
909
|
+
function isValidElementType(type) {
|
|
910
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
911
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
912
|
+
}
|
|
1107
913
|
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
const cssClasses = [];
|
|
1112
|
-
cssClasses.push(styles$C.textarea);
|
|
1113
|
-
className && cssClasses.push(className);
|
|
1114
|
-
error && cssClasses.push(styles$C['isInvalid']);
|
|
1115
|
-
return cssClasses.filter(r => r).join(' ');
|
|
1116
|
-
};
|
|
1117
|
-
return (React__default["default"].createElement("textarea", { className: getCssClass(), ...rest }));
|
|
1118
|
-
};
|
|
914
|
+
function typeOf(object) {
|
|
915
|
+
if (typeof object === 'object' && object !== null) {
|
|
916
|
+
var $$typeof = object.$$typeof;
|
|
1119
917
|
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
918
|
+
switch ($$typeof) {
|
|
919
|
+
case REACT_ELEMENT_TYPE:
|
|
920
|
+
var type = object.type;
|
|
1123
921
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
};
|
|
1133
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1134
|
-
const handleOnInput = (value, type, name) => {
|
|
1135
|
-
onInput && onInput({ value: value, type: type, name: name });
|
|
1136
|
-
};
|
|
1137
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1138
|
-
const handleOnChange = (value, type, name) => {
|
|
1139
|
-
onChange && onChange({ value: value, type: type, name: name });
|
|
1140
|
-
};
|
|
1141
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1142
|
-
(type === 'text' ||
|
|
1143
|
-
type === 'date' ||
|
|
1144
|
-
type === 'datetime-local' ||
|
|
1145
|
-
type === 'email' ||
|
|
1146
|
-
type === 'number' ||
|
|
1147
|
-
type === 'password' ||
|
|
1148
|
-
type === 'color' ||
|
|
1149
|
-
type === 'time')
|
|
1150
|
-
&&
|
|
1151
|
-
React__default["default"].createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1152
|
-
type === 'file' &&
|
|
1153
|
-
React__default["default"].createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1154
|
-
type === 'textarea' &&
|
|
1155
|
-
React__default["default"].createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }),
|
|
1156
|
-
type === 'select' &&
|
|
1157
|
-
React__default["default"].createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }),
|
|
1158
|
-
type === 'autocomplete' &&
|
|
1159
|
-
React__default["default"].createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }),
|
|
1160
|
-
type === 'checkbox' &&
|
|
1161
|
-
React__default["default"].createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }),
|
|
1162
|
-
type === 'radio' &&
|
|
1163
|
-
React__default["default"].createElement(React__default["default"].Fragment, null, options.map((option) => React__default["default"].createElement("div", { className: "form-check", key: option.id },
|
|
1164
|
-
React__default["default"].createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1165
|
-
React__default["default"].createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
var css_248z$A = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
1169
|
-
var styles$A = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
1170
|
-
styleInject(css_248z$A);
|
|
922
|
+
switch (type) {
|
|
923
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
924
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
925
|
+
case REACT_FRAGMENT_TYPE:
|
|
926
|
+
case REACT_PROFILER_TYPE:
|
|
927
|
+
case REACT_STRICT_MODE_TYPE:
|
|
928
|
+
case REACT_SUSPENSE_TYPE:
|
|
929
|
+
return type;
|
|
1171
930
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
const cssClasses = [];
|
|
1175
|
-
cssClasses.push(styles$A.formLabel);
|
|
1176
|
-
className && cssClasses.push(className);
|
|
1177
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1178
|
-
};
|
|
1179
|
-
return (React__default["default"].createElement("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest }, children));
|
|
1180
|
-
};
|
|
931
|
+
default:
|
|
932
|
+
var $$typeofType = type && type.$$typeof;
|
|
1181
933
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
934
|
+
switch ($$typeofType) {
|
|
935
|
+
case REACT_CONTEXT_TYPE:
|
|
936
|
+
case REACT_FORWARD_REF_TYPE:
|
|
937
|
+
case REACT_LAZY_TYPE:
|
|
938
|
+
case REACT_MEMO_TYPE:
|
|
939
|
+
case REACT_PROVIDER_TYPE:
|
|
940
|
+
return $$typeofType;
|
|
1185
941
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
return isInvalid;
|
|
1190
|
-
};
|
|
942
|
+
default:
|
|
943
|
+
return $$typeof;
|
|
944
|
+
}
|
|
1191
945
|
|
|
1192
|
-
|
|
946
|
+
}
|
|
1193
947
|
|
|
1194
|
-
|
|
948
|
+
case REACT_PORTAL_TYPE:
|
|
949
|
+
return $$typeof;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
1195
952
|
|
|
1196
|
-
|
|
953
|
+
return undefined;
|
|
954
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1197
955
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
return { controls: nextProps.controls };
|
|
1213
|
-
}
|
|
1214
|
-
return null;
|
|
1215
|
-
}
|
|
1216
|
-
handleChange() {
|
|
1217
|
-
// get value by myForm instead of getControl?
|
|
1218
|
-
if (this.state.isChanged || this.state.isSubmitted) {
|
|
1219
|
-
const keys = Object.keys(this.state.controls);
|
|
1220
|
-
const values = keys.reduce((obj, f) => {
|
|
1221
|
-
const control = this.getControl(f);
|
|
1222
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1223
|
-
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
1224
|
-
control.value &&
|
|
1225
|
-
isValidDate(control.value)
|
|
1226
|
-
? new Date(control.value).toISOString()
|
|
1227
|
-
: control.value;
|
|
1228
|
-
return {
|
|
1229
|
-
...obj,
|
|
1230
|
-
[f]: newValue,
|
|
1231
|
-
};
|
|
1232
|
-
}, {});
|
|
1233
|
-
if (this.state.isValid && this.state.isSubmitted) {
|
|
1234
|
-
this.props.onSubmit && this.props.onSubmit(values);
|
|
1235
|
-
}
|
|
1236
|
-
this.props.onChange && this.props.onChange(values);
|
|
1237
|
-
this.setState({ isChanged: false, isSubmitted: false });
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
// extract to service?
|
|
1241
|
-
validateField(fieldValue, fieldValidators) {
|
|
1242
|
-
const errors = [];
|
|
1243
|
-
if (fieldValidators) {
|
|
1244
|
-
for (const validator of fieldValidators) {
|
|
1245
|
-
const validatorSplitted = validator.split(':');
|
|
1246
|
-
const validatorName = validatorSplitted[0];
|
|
1247
|
-
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
1248
|
-
switch (validatorName) {
|
|
1249
|
-
case 'required':
|
|
1250
|
-
if (IsEmptyValidator(fieldValue)) {
|
|
1251
|
-
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
1252
|
-
}
|
|
1253
|
-
break;
|
|
1254
|
-
case 'email':
|
|
1255
|
-
if (EmailValidator(fieldValue)) {
|
|
1256
|
-
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
1257
|
-
}
|
|
1258
|
-
break;
|
|
1259
|
-
case 'min':
|
|
1260
|
-
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
1261
|
-
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
1262
|
-
}
|
|
1263
|
-
break;
|
|
1264
|
-
case 'max':
|
|
1265
|
-
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
1266
|
-
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
1267
|
-
}
|
|
1268
|
-
break;
|
|
1269
|
-
case 'match':
|
|
1270
|
-
if (validatorParam) {
|
|
1271
|
-
const matchControl = this.getControl(validatorParam);
|
|
1272
|
-
if (matchControl) {
|
|
1273
|
-
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
1274
|
-
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
else {
|
|
1278
|
-
console.error(`Form: Field ${validatorParam} not found`);
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
break;
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
return errors;
|
|
1286
|
-
}
|
|
1287
|
-
handleInputChange(name, value) {
|
|
1288
|
-
const field = this.getControl(name);
|
|
1289
|
-
field.value = value;
|
|
1290
|
-
// redundant mit handleOnBlur
|
|
1291
|
-
field.isDirty = true;
|
|
1292
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1293
|
-
field.isValid = field.errors.length === 0;
|
|
1294
|
-
const newControls = { ...this.state.controls };
|
|
1295
|
-
newControls[name] = field;
|
|
1296
|
-
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
1297
|
-
}
|
|
1298
|
-
handleOnBlur(e) {
|
|
1299
|
-
if (this.props.validateOnBlur) {
|
|
1300
|
-
const { name } = e.target;
|
|
1301
|
-
const field = this.getControl(name);
|
|
1302
|
-
field.isDirty = true;
|
|
1303
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1304
|
-
field.isValid = field.errors.length === 0;
|
|
1305
|
-
const controls = this.state.controls;
|
|
1306
|
-
if (controls) {
|
|
1307
|
-
controls[name] = field;
|
|
1308
|
-
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
isRequired(fieldName) {
|
|
1313
|
-
let result = false;
|
|
1314
|
-
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
1315
|
-
return result;
|
|
1316
|
-
}
|
|
1317
|
-
isInvalid(fieldName) {
|
|
1318
|
-
let result = false;
|
|
1319
|
-
const field = this.getControl(fieldName);
|
|
1320
|
-
result = field.isDirty && !field.isValid;
|
|
1321
|
-
return result;
|
|
1322
|
-
}
|
|
1323
|
-
getControl(name) {
|
|
1324
|
-
return this.state.controls[name];
|
|
1325
|
-
}
|
|
1326
|
-
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
1327
|
-
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1328
|
-
return (React__default["default"].createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label));
|
|
1329
|
-
}
|
|
1330
|
-
handleFormSubmit() {
|
|
1331
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1332
|
-
const field = this.getControl(fieldKey);
|
|
1333
|
-
// redundant mit handleBlur
|
|
1334
|
-
field.isDirty = true;
|
|
1335
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1336
|
-
field.isValid = field.errors.length === 0;
|
|
1337
|
-
}
|
|
1338
|
-
this.setState({
|
|
1339
|
-
controls: { ...this.state.controls },
|
|
1340
|
-
isSubmitted: true,
|
|
1341
|
-
isValid: Object.keys(this.state.controls)
|
|
1342
|
-
.map(f => this.getControl(f).isValid)
|
|
1343
|
-
.every(valid => valid === true),
|
|
1344
|
-
}, () => this.handleChange());
|
|
1345
|
-
}
|
|
1346
|
-
// trigger via ref
|
|
1347
|
-
handleFormReset() {
|
|
1348
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1349
|
-
const field = this.getControl(fieldKey);
|
|
1350
|
-
field.value = '';
|
|
1351
|
-
field.isDirty = false;
|
|
1352
|
-
field.errors = [];
|
|
1353
|
-
field.isValid = field.errors.length === 0;
|
|
1354
|
-
}
|
|
1355
|
-
this.setState({
|
|
1356
|
-
controls: { ...this.state.controls },
|
|
1357
|
-
isSubmitted: false,
|
|
1358
|
-
isChanged: false,
|
|
1359
|
-
isValid: false,
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
handleOnKeyDown(e) {
|
|
1363
|
-
if (e.key === 'Enter') {
|
|
1364
|
-
e.preventDefault();
|
|
1365
|
-
this.state.submitOnEnter && this.handleFormSubmit();
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
destroy() {
|
|
1369
|
-
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1370
|
-
}
|
|
1371
|
-
getFormGroupCssClass(fieldKey) {
|
|
1372
|
-
return this.getControl(fieldKey).config.formGroupClassName;
|
|
1373
|
-
}
|
|
1374
|
-
render() {
|
|
1375
|
-
return (React__default["default"].createElement("form", { className: this.props.className, ref: this.myForm }, this.state &&
|
|
1376
|
-
this.state.controls &&
|
|
1377
|
-
Object.keys(this.state.controls).map(fieldKey => {
|
|
1378
|
-
return (React__default["default"].createElement(FormGroup, { key: fieldKey, className: this.getFormGroupCssClass(fieldKey) },
|
|
1379
|
-
this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
1380
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1381
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1382
|
-
React__default["default"].createElement(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }),
|
|
1383
|
-
this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
1384
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1385
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1386
|
-
this.getControl(fieldKey).config.hint && (React__default["default"].createElement(FormHint, null, this.getControl(fieldKey).config.hint)),
|
|
1387
|
-
this.getControl(fieldKey).errors && React__default["default"].createElement(FormError, { errors: this.getControl(fieldKey).errors })));
|
|
1388
|
-
})));
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
function isValidDate(dateObject) {
|
|
1392
|
-
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
class FormControl {
|
|
1396
|
-
constructor(
|
|
1397
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1398
|
-
value, validators = [], type, config) {
|
|
1399
|
-
this.value = value;
|
|
1400
|
-
this.validators = validators;
|
|
1401
|
-
this.type = type;
|
|
1402
|
-
this.config = config;
|
|
1403
|
-
this.errors = [];
|
|
1404
|
-
this.isValid = false;
|
|
1405
|
-
this.isDirty = false;
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
const DaySelect = (props) => {
|
|
1410
|
-
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
1411
|
-
React.useEffect(() => {
|
|
1412
|
-
init();
|
|
1413
|
-
}, [month, year]);
|
|
1414
|
-
const init = () => {
|
|
1415
|
-
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
1416
|
-
const newDays = [];
|
|
1417
|
-
for (let i = 1; i <= daysInMonth; i++) {
|
|
1418
|
-
newDays.push({ value: i.toString(), label: i.toString() });
|
|
1419
|
-
}
|
|
1420
|
-
setDayOptions(newDays);
|
|
1421
|
-
};
|
|
1422
|
-
const [value, setValue] = React.useState(day);
|
|
1423
|
-
const [dayOptions, setDayOptions] = React.useState();
|
|
1424
|
-
const getCssClasses = () => {
|
|
1425
|
-
const cssClasses = [];
|
|
1426
|
-
className && cssClasses.push(className);
|
|
1427
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1428
|
-
};
|
|
1429
|
-
const handleOnChange = (e) => {
|
|
1430
|
-
setValue(e);
|
|
1431
|
-
onChange && onChange(e);
|
|
1432
|
-
};
|
|
1433
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
const MonthSelect = (props) => {
|
|
1437
|
-
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
1438
|
-
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
1439
|
-
const [newValue, setNewValue] = React.useState(value);
|
|
1440
|
-
const [monthOptions, setMonthOptions] = React.useState();
|
|
1441
|
-
React.useEffect(() => {
|
|
1442
|
-
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
1443
|
-
}, []);
|
|
1444
|
-
const getCssClasses = () => {
|
|
1445
|
-
const cssClasses = [];
|
|
1446
|
-
className && cssClasses.push(className);
|
|
1447
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1448
|
-
};
|
|
1449
|
-
const handleOnChange = (e) => {
|
|
1450
|
-
setNewValue(e);
|
|
1451
|
-
onChange && onChange(e);
|
|
1452
|
-
};
|
|
1453
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
const YearSelect = (props) => {
|
|
1457
|
-
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
1458
|
-
const [newValue, setNewValue] = React.useState(value.toString());
|
|
1459
|
-
const [years, setYears] = React.useState();
|
|
1460
|
-
React.useEffect(() => {
|
|
1461
|
-
const newYears = [];
|
|
1462
|
-
for (let i = from; i <= to; i++) {
|
|
1463
|
-
newYears.push({ value: i.toString(), label: i.toString() });
|
|
1464
|
-
}
|
|
1465
|
-
setYears(newYears.reverse());
|
|
1466
|
-
}, [from, to]);
|
|
1467
|
-
const getCssClasses = () => {
|
|
1468
|
-
const cssClasses = [];
|
|
1469
|
-
className && cssClasses.push(className);
|
|
1470
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1471
|
-
};
|
|
1472
|
-
const handleOnChange = (e) => {
|
|
1473
|
-
setNewValue(e);
|
|
1474
|
-
onChange && onChange(parseInt(e));
|
|
1475
|
-
};
|
|
1476
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
1477
|
-
};
|
|
956
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
957
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
958
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
959
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
960
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
961
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
962
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
963
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
964
|
+
var Memo = REACT_MEMO_TYPE;
|
|
965
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
966
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
967
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
968
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
969
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1478
970
|
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
1484
|
-
})(exports.DATEMODE || (exports.DATEMODE = {}));
|
|
1485
|
-
const DateSelect = (props) => {
|
|
1486
|
-
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
1487
|
-
const getCssClasses = () => {
|
|
1488
|
-
const cssClasses = [];
|
|
1489
|
-
cssClasses.push('row');
|
|
1490
|
-
className && cssClasses.push(className);
|
|
1491
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1492
|
-
};
|
|
1493
|
-
const [currDate, setCurrDate] = React.useState(value);
|
|
1494
|
-
const handleOnChange = (e, mode) => {
|
|
1495
|
-
const currYear = mode === exports.DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
1496
|
-
const currMonth = mode === exports.DATEMODE.MONTH ? e : currDate.getMonth();
|
|
1497
|
-
const currday = mode === exports.DATEMODE.DAY ? e : currDate.getDate();
|
|
1498
|
-
const newDate = new Date(currYear, currMonth, currday);
|
|
1499
|
-
setCurrDate(newDate);
|
|
1500
|
-
onChange && onChange(newDate);
|
|
1501
|
-
};
|
|
1502
|
-
return (React__default["default"].createElement(Row, { className: getCssClasses() },
|
|
1503
|
-
React__default["default"].createElement(Column, null,
|
|
1504
|
-
React__default["default"].createElement(FormLabel, null, "Year"),
|
|
1505
|
-
React__default["default"].createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, exports.DATEMODE.YEAR) })),
|
|
1506
|
-
React__default["default"].createElement(Column, null,
|
|
1507
|
-
React__default["default"].createElement(FormLabel, null, "Month"),
|
|
1508
|
-
React__default["default"].createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.MONTH) })),
|
|
1509
|
-
React__default["default"].createElement(Column, null,
|
|
1510
|
-
React__default["default"].createElement(FormLabel, null, "Day"),
|
|
1511
|
-
React__default["default"].createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.DAY) }))));
|
|
1512
|
-
};
|
|
1513
|
-
/*
|
|
1514
|
-
* result = { year, month, day, dayOfWeek, weekNumber }
|
|
1515
|
-
*/
|
|
1516
|
-
// const getWeekNumber = () => {
|
|
1517
|
-
// var d = new Date(Date.UTC(this.getFullYear(), this.getMonth(), this.getDate()));
|
|
1518
|
-
// var dayNum = d.getUTCDay() || 7;
|
|
1519
|
-
// d.setUTCDate(d.getUTCDate() + 4 - dayNum);
|
|
1520
|
-
// var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
1521
|
-
// return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)
|
|
1522
|
-
// };
|
|
971
|
+
function isAsyncMode(object) {
|
|
972
|
+
{
|
|
973
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
974
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1523
975
|
|
|
1524
|
-
|
|
976
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
977
|
+
}
|
|
978
|
+
}
|
|
1525
979
|
|
|
1526
|
-
|
|
1527
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
/** @license React v16.13.1
|
|
1531
|
-
* react-is.production.min.js
|
|
1532
|
-
*
|
|
1533
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1534
|
-
*
|
|
1535
|
-
* This source code is licensed under the MIT license found in the
|
|
1536
|
-
* LICENSE file in the root directory of this source tree.
|
|
1537
|
-
*/
|
|
1538
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
1539
|
-
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
1540
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
|
|
1541
|
-
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
1542
|
-
var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
1543
|
-
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
1544
|
-
|
|
1545
|
-
var reactIs_production_min = {
|
|
1546
|
-
AsyncMode: AsyncMode,
|
|
1547
|
-
ConcurrentMode: ConcurrentMode,
|
|
1548
|
-
ContextConsumer: ContextConsumer,
|
|
1549
|
-
ContextProvider: ContextProvider,
|
|
1550
|
-
Element: Element,
|
|
1551
|
-
ForwardRef: ForwardRef,
|
|
1552
|
-
Fragment: Fragment,
|
|
1553
|
-
Lazy: Lazy,
|
|
1554
|
-
Memo: Memo,
|
|
1555
|
-
Portal: Portal,
|
|
1556
|
-
Profiler: Profiler,
|
|
1557
|
-
StrictMode: StrictMode,
|
|
1558
|
-
Suspense: Suspense,
|
|
1559
|
-
isAsyncMode: isAsyncMode,
|
|
1560
|
-
isConcurrentMode: isConcurrentMode,
|
|
1561
|
-
isContextConsumer: isContextConsumer,
|
|
1562
|
-
isContextProvider: isContextProvider,
|
|
1563
|
-
isElement: isElement,
|
|
1564
|
-
isForwardRef: isForwardRef,
|
|
1565
|
-
isFragment: isFragment,
|
|
1566
|
-
isLazy: isLazy,
|
|
1567
|
-
isMemo: isMemo,
|
|
1568
|
-
isPortal: isPortal,
|
|
1569
|
-
isProfiler: isProfiler,
|
|
1570
|
-
isStrictMode: isStrictMode,
|
|
1571
|
-
isSuspense: isSuspense,
|
|
1572
|
-
isValidElementType: isValidElementType,
|
|
1573
|
-
typeOf: typeOf
|
|
1574
|
-
};
|
|
1575
|
-
|
|
1576
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1581
|
-
(function() {
|
|
1582
|
-
|
|
1583
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1584
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1585
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1586
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1587
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1588
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1589
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1590
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1591
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1592
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1593
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1594
|
-
|
|
1595
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1596
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1597
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1598
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1599
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1600
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1601
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1602
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1603
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1604
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1605
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1606
|
-
|
|
1607
|
-
function isValidElementType(type) {
|
|
1608
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1609
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
function typeOf(object) {
|
|
1613
|
-
if (typeof object === 'object' && object !== null) {
|
|
1614
|
-
var $$typeof = object.$$typeof;
|
|
1615
|
-
|
|
1616
|
-
switch ($$typeof) {
|
|
1617
|
-
case REACT_ELEMENT_TYPE:
|
|
1618
|
-
var type = object.type;
|
|
1619
|
-
|
|
1620
|
-
switch (type) {
|
|
1621
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1622
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1623
|
-
case REACT_FRAGMENT_TYPE:
|
|
1624
|
-
case REACT_PROFILER_TYPE:
|
|
1625
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1626
|
-
case REACT_SUSPENSE_TYPE:
|
|
1627
|
-
return type;
|
|
1628
|
-
|
|
1629
|
-
default:
|
|
1630
|
-
var $$typeofType = type && type.$$typeof;
|
|
1631
|
-
|
|
1632
|
-
switch ($$typeofType) {
|
|
1633
|
-
case REACT_CONTEXT_TYPE:
|
|
1634
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1635
|
-
case REACT_LAZY_TYPE:
|
|
1636
|
-
case REACT_MEMO_TYPE:
|
|
1637
|
-
case REACT_PROVIDER_TYPE:
|
|
1638
|
-
return $$typeofType;
|
|
1639
|
-
|
|
1640
|
-
default:
|
|
1641
|
-
return $$typeof;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
case REACT_PORTAL_TYPE:
|
|
1647
|
-
return $$typeof;
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
return undefined;
|
|
1652
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1653
|
-
|
|
1654
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1655
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1656
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1657
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1658
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1659
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1660
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1661
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1662
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1663
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1664
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1665
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1666
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1667
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1668
|
-
|
|
1669
|
-
function isAsyncMode(object) {
|
|
1670
|
-
{
|
|
1671
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1672
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1673
|
-
|
|
1674
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
980
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1679
981
|
}
|
|
1680
982
|
function isConcurrentMode(object) {
|
|
1681
983
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
@@ -5691,169 +4993,687 @@ Calendar$1.propTypes = {
|
|
|
5691
4993
|
|
|
5692
4994
|
var Calendar = Calendar$1;
|
|
5693
4995
|
|
|
5694
|
-
var css_248z$
|
|
5695
|
-
var styles$
|
|
5696
|
-
styleInject(css_248z$
|
|
4996
|
+
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4997
|
+
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4998
|
+
styleInject(css_248z$H);
|
|
4999
|
+
|
|
5000
|
+
const DatePicker = (props) => {
|
|
5001
|
+
const { value = new Date(), selectRange, minDate, maxDate,
|
|
5002
|
+
// disabled,
|
|
5003
|
+
onChange, ...rest } = props;
|
|
5004
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
5005
|
+
const handleOnChange = (e) => {
|
|
5006
|
+
setCurrDate(e);
|
|
5007
|
+
onChange && onChange(e);
|
|
5008
|
+
};
|
|
5009
|
+
return (jsxRuntime.jsx(Calendar, { className: styles$H.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
|
|
5010
|
+
};
|
|
5011
|
+
|
|
5012
|
+
var css_248z$G = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
|
|
5013
|
+
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
5014
|
+
styleInject(css_248z$G);
|
|
5015
|
+
|
|
5016
|
+
const Column = (props) => {
|
|
5017
|
+
const { children, className, ...rest } = props;
|
|
5018
|
+
const getCssClasses = () => {
|
|
5019
|
+
const cssClasses = [];
|
|
5020
|
+
cssClasses.push(styles$G.column);
|
|
5021
|
+
className && cssClasses.push(className);
|
|
5022
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5023
|
+
};
|
|
5024
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5025
|
+
};
|
|
5026
|
+
|
|
5027
|
+
var css_248z$F = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}";
|
|
5028
|
+
var styles$F = {"row":"Row-module_row__bTIWp"};
|
|
5029
|
+
styleInject(css_248z$F);
|
|
5030
|
+
|
|
5031
|
+
const Row = ({ children, direction = 'row', className, ...rest }) => {
|
|
5032
|
+
const getCssClasses = () => {
|
|
5033
|
+
const cssClasses = [];
|
|
5034
|
+
cssClasses.push(styles$F.row);
|
|
5035
|
+
className && cssClasses.push(className);
|
|
5036
|
+
direction && cssClasses.push(`flex-${direction}`);
|
|
5037
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5038
|
+
};
|
|
5039
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5040
|
+
};
|
|
5041
|
+
|
|
5042
|
+
var css_248z$E = ".Form-module_form__h9CkF > div {\n margin-bottom: 10px;\n}\n.Form-module_form__h9CkF :last-child {\n margin-bottom: 0;\n}";
|
|
5043
|
+
var styles$E = {"form":"Form-module_form__h9CkF"};
|
|
5044
|
+
styleInject(css_248z$E);
|
|
5045
|
+
|
|
5046
|
+
var css_248z$D = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
|
|
5047
|
+
var styles$D = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
5048
|
+
styleInject(css_248z$D);
|
|
5049
|
+
|
|
5050
|
+
const FormError = (props) => {
|
|
5051
|
+
const { className = styles$D.isInvalid, errors = [] } = props;
|
|
5052
|
+
return (jsxRuntime.jsx(React.Fragment, { children: errors &&
|
|
5053
|
+
jsxRuntime.jsx("div", { className: className, children: errors.map(e => jsxRuntime.jsx("div", { children: e.message }, e.validator)) }) }));
|
|
5054
|
+
};
|
|
5055
|
+
|
|
5056
|
+
const FormGroup = (props) => {
|
|
5057
|
+
const { children, className } = props;
|
|
5058
|
+
return jsxRuntime.jsx("div", { className: className, children: children });
|
|
5059
|
+
};
|
|
5060
|
+
|
|
5061
|
+
const FormHint = (props) => {
|
|
5062
|
+
const { children, className = 'form-text text-muted' } = props;
|
|
5063
|
+
const getCssClasses = () => {
|
|
5064
|
+
const cssClasses = [];
|
|
5065
|
+
className && cssClasses.push(className);
|
|
5066
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5067
|
+
};
|
|
5068
|
+
return (jsxRuntime.jsx("small", { className: getCssClasses(), children: children }));
|
|
5069
|
+
};
|
|
5070
|
+
|
|
5071
|
+
const FileInput = (props) => {
|
|
5072
|
+
const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
|
|
5073
|
+
const inputFileElement = React.useRef(null);
|
|
5074
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5075
|
+
const [model, setModel] = React.useState(value);
|
|
5076
|
+
const [fileList, setFileList] = React.useState();
|
|
5077
|
+
const getCssClasses = () => {
|
|
5078
|
+
const cssClasses = [];
|
|
5079
|
+
className && cssClasses.push(className);
|
|
5080
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5081
|
+
};
|
|
5082
|
+
const handleOnChange = (event) => {
|
|
5083
|
+
const values = event.target.files;
|
|
5084
|
+
setFileList(values);
|
|
5085
|
+
onChange && onChange(event);
|
|
5086
|
+
};
|
|
5087
|
+
const handleOnDelete = () => {
|
|
5088
|
+
alert('coming soon');
|
|
5089
|
+
};
|
|
5090
|
+
return (jsxRuntime.jsxs("div", { className: "d-flex align-items-start", children: [jsxRuntime.jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsxRuntime.jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsxRuntime.jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsxRuntime.jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
var css_248z$C = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
|
|
5094
|
+
var styles$C = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","disabled":"Select-module_disabled__2XXut","readOnly":"Select-module_readOnly__VoTER","chipContainer":"Select-module_chipContainer__1poFF","selectMenu":"Select-module_selectMenu__8y4kQ"};
|
|
5095
|
+
styleInject(css_248z$C);
|
|
5096
|
+
|
|
5097
|
+
const Select = (props) => {
|
|
5098
|
+
const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
|
|
5099
|
+
const [model, setModel] = React.useState('');
|
|
5100
|
+
const [hoverIndex, setHoverIndex] = React.useState(null);
|
|
5101
|
+
const [isShow, setIsShow] = React.useState(false);
|
|
5102
|
+
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
5103
|
+
const selectConainter = React.useRef(null);
|
|
5104
|
+
const getCssClass = () => {
|
|
5105
|
+
const cssClasses = [];
|
|
5106
|
+
className && cssClasses.push(className);
|
|
5107
|
+
disabled && cssClasses.push(styles$C['disabled']);
|
|
5108
|
+
readOnly && cssClasses.push(styles$C['readOnly']);
|
|
5109
|
+
cssClasses.push(styles$C.select);
|
|
5110
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5111
|
+
};
|
|
5112
|
+
React.useEffect(() => {
|
|
5113
|
+
const newValue = value ? value : '';
|
|
5114
|
+
writeValue(newValue);
|
|
5115
|
+
if (newValue) {
|
|
5116
|
+
const option = options.find(o => o.value === newValue);
|
|
5117
|
+
if (option) {
|
|
5118
|
+
setHoverIndex(options.indexOf(option));
|
|
5119
|
+
}
|
|
5120
|
+
}
|
|
5121
|
+
}, [value, options]);
|
|
5122
|
+
React.useEffect(() => {
|
|
5123
|
+
if (hoverIndex) {
|
|
5124
|
+
scrollIntoView(hoverIndex);
|
|
5125
|
+
}
|
|
5126
|
+
}, [hoverIndex, isShow]);
|
|
5127
|
+
const scrollIntoView = (index) => {
|
|
5128
|
+
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
5129
|
+
if (htmlListItem) {
|
|
5130
|
+
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
5131
|
+
}
|
|
5132
|
+
};
|
|
5133
|
+
const writeValue = (val) => setModel(val);
|
|
5134
|
+
React.useEffect(() => {
|
|
5135
|
+
if (!multiple) {
|
|
5136
|
+
const newOption = options.find(o => o.value === model);
|
|
5137
|
+
if (newOption) {
|
|
5138
|
+
setSelectedOptions([newOption]);
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5141
|
+
else {
|
|
5142
|
+
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
5143
|
+
setSelectedOptions([...filteredOptions]);
|
|
5144
|
+
}
|
|
5145
|
+
}, [model, multiple]);
|
|
5146
|
+
const handleOnClick = (option) => {
|
|
5147
|
+
let newValue = multiple ? [] : '';
|
|
5148
|
+
if (!multiple) {
|
|
5149
|
+
if (model !== option.value) {
|
|
5150
|
+
newValue = option.value;
|
|
5151
|
+
onChange && onChange(newValue);
|
|
5152
|
+
}
|
|
5153
|
+
hide();
|
|
5154
|
+
}
|
|
5155
|
+
else {
|
|
5156
|
+
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
5157
|
+
if (selectedOption) {
|
|
5158
|
+
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
5159
|
+
}
|
|
5160
|
+
else {
|
|
5161
|
+
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
5162
|
+
newValue.push(option.value);
|
|
5163
|
+
}
|
|
5164
|
+
onChange && onChange(newValue);
|
|
5165
|
+
}
|
|
5166
|
+
writeValue(newValue);
|
|
5167
|
+
};
|
|
5168
|
+
const show = () => {
|
|
5169
|
+
if (!disabled && !readOnly) {
|
|
5170
|
+
setIsShow(true);
|
|
5171
|
+
}
|
|
5172
|
+
};
|
|
5173
|
+
const hide = () => setIsShow(false);
|
|
5174
|
+
const isActive = (option) => {
|
|
5175
|
+
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
5176
|
+
};
|
|
5177
|
+
const renderSingleViewModel = () => {
|
|
5178
|
+
let result = null;
|
|
5179
|
+
if (selectedOptions.length > 0) {
|
|
5180
|
+
result = jsxRuntime.jsx("span", { children: selectedOptions[0].label });
|
|
5181
|
+
}
|
|
5182
|
+
return result;
|
|
5183
|
+
};
|
|
5184
|
+
const renderMultipleViewModel = () => {
|
|
5185
|
+
let result = null;
|
|
5186
|
+
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5187
|
+
result = selectedOptions
|
|
5188
|
+
.map(option => jsxRuntime.jsx(Chip, { color: exports.COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value));
|
|
5189
|
+
}
|
|
5190
|
+
else {
|
|
5191
|
+
result = jsxRuntime.jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
5192
|
+
}
|
|
5193
|
+
return result;
|
|
5194
|
+
};
|
|
5195
|
+
const handleOnDelete = (event, option) => {
|
|
5196
|
+
event.stopPropagation();
|
|
5197
|
+
handleOnClick(option);
|
|
5198
|
+
};
|
|
5199
|
+
// TODO - extract with wrapper?
|
|
5200
|
+
const handleOnKeyDown = (e) => {
|
|
5201
|
+
if (isShow) {
|
|
5202
|
+
onKeyDown && onKeyDown(e);
|
|
5203
|
+
switch (e.code) {
|
|
5204
|
+
case 'Escape':
|
|
5205
|
+
hide();
|
|
5206
|
+
break;
|
|
5207
|
+
case 'ArrowDown':
|
|
5208
|
+
if (hoverIndex) {
|
|
5209
|
+
setHoverIndex(hoverIndex + 1);
|
|
5210
|
+
}
|
|
5211
|
+
break;
|
|
5212
|
+
case 'ArrowUp':
|
|
5213
|
+
// TODO
|
|
5214
|
+
if (hoverIndex) {
|
|
5215
|
+
setHoverIndex(hoverIndex - 1);
|
|
5216
|
+
}
|
|
5217
|
+
break;
|
|
5218
|
+
case 'Enter':
|
|
5219
|
+
if (hoverIndex) {
|
|
5220
|
+
const option = options[hoverIndex];
|
|
5221
|
+
if (option) {
|
|
5222
|
+
handleOnClick(option);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
break;
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
};
|
|
5229
|
+
return (jsxRuntime.jsxs("div", { ref: selectConainter, className: styles$C.selectContainer, children: [jsxRuntime.jsx("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e), children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!multiple && renderSingleViewModel(), multiple &&
|
|
5230
|
+
jsxRuntime.jsx("div", { className: styles$C.chipContainer, children: renderMultipleViewModel() }), jsxRuntime.jsx(Icon, { className: "ml-auto", children: jsxRuntime.jsx(ChevronDownSolidIcon, {}) })] }) }), isShow &&
|
|
5231
|
+
jsxRuntime.jsxs(Portal$1, { className: 'backdrop-root', children: [jsxRuntime.jsx("div", { className: styles$C.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width }, children: jsxRuntime.jsx(List, { children: options && options.map((option, index) => jsxRuntime.jsxs(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), active: isActive(option), children: [multiple &&
|
|
5232
|
+
jsxRuntime.jsx(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }), jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value })] }, option.value)) }) }), jsxRuntime.jsx(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() })] })] }));
|
|
5233
|
+
};
|
|
5234
|
+
|
|
5235
|
+
var css_248z$B = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5236
|
+
var styles$B = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
5237
|
+
styleInject(css_248z$B);
|
|
5238
|
+
|
|
5239
|
+
const Textarea = (props) => {
|
|
5240
|
+
const { className, error, ...rest } = props;
|
|
5241
|
+
const getCssClass = () => {
|
|
5242
|
+
const cssClasses = [];
|
|
5243
|
+
cssClasses.push(styles$B.textarea);
|
|
5244
|
+
className && cssClasses.push(className);
|
|
5245
|
+
error && cssClasses.push(styles$B['isInvalid']);
|
|
5246
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5247
|
+
};
|
|
5248
|
+
return (jsxRuntime.jsx("textarea", { className: getCssClass(), ...rest }));
|
|
5249
|
+
};
|
|
5250
|
+
|
|
5251
|
+
var css_248z$A = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.FormInput-module_formInput__VXZip:focus:not(.FormInput-module_formInput__VXZip.FormInput-module_disabled__EjdD9) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.FormInput-module_formInput__VXZip.FormInput-module_isInvalid__vQDuz {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5252
|
+
var styles$A = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
|
|
5253
|
+
styleInject(css_248z$A);
|
|
5254
|
+
|
|
5255
|
+
const FormInput = (props) => {
|
|
5256
|
+
const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
|
|
5257
|
+
const getCssClasses = () => {
|
|
5258
|
+
const cssClasses = [];
|
|
5259
|
+
cssClasses.push(styles$A.formInput);
|
|
5260
|
+
className && cssClasses.push(className);
|
|
5261
|
+
!isValid && cssClasses.push(styles$A['isInvalid']);
|
|
5262
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5263
|
+
};
|
|
5264
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5265
|
+
const handleOnInput = (value, type, name) => {
|
|
5266
|
+
onInput && onInput({ value: value, type: type, name: name });
|
|
5267
|
+
};
|
|
5268
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5269
|
+
const handleOnChange = (value, type, name) => {
|
|
5270
|
+
onChange && onChange({ value: value, type: type, name: name });
|
|
5271
|
+
};
|
|
5272
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(type === 'text' ||
|
|
5273
|
+
type === 'date' ||
|
|
5274
|
+
type === 'datetime-local' ||
|
|
5275
|
+
type === 'email' ||
|
|
5276
|
+
type === 'number' ||
|
|
5277
|
+
type === 'password' ||
|
|
5278
|
+
type === 'color' ||
|
|
5279
|
+
type === 'time')
|
|
5280
|
+
&&
|
|
5281
|
+
jsxRuntime.jsx("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }), type === 'file' &&
|
|
5282
|
+
jsxRuntime.jsx(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name), children: "choose a file" }), type === 'textarea' &&
|
|
5283
|
+
jsxRuntime.jsx(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }), type === 'select' &&
|
|
5284
|
+
jsxRuntime.jsx(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }), type === 'autocomplete' &&
|
|
5285
|
+
jsxRuntime.jsx(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }), type === 'checkbox' &&
|
|
5286
|
+
jsxRuntime.jsx(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }), type === 'radio' &&
|
|
5287
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: options.map((option) => jsxRuntime.jsxs("div", { className: "form-check", children: [jsxRuntime.jsx("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }), jsxRuntime.jsx("label", { className: "form-check-label", htmlFor: option.id, children: option.label })] }, option.id)) })] }));
|
|
5288
|
+
};
|
|
5289
|
+
|
|
5290
|
+
var css_248z$z = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
5291
|
+
var styles$z = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
5292
|
+
styleInject(css_248z$z);
|
|
5293
|
+
|
|
5294
|
+
const FormLabel = ({ children, className, htmlFor, ...rest }) => {
|
|
5295
|
+
const getCssClasses = () => {
|
|
5296
|
+
const cssClasses = [];
|
|
5297
|
+
cssClasses.push(styles$z.formLabel);
|
|
5298
|
+
className && cssClasses.push(className);
|
|
5299
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5300
|
+
};
|
|
5301
|
+
return (jsxRuntime.jsx("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest, children: children }));
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5304
|
+
const IsEmptyValidator = (value) => value?.trim() === ''
|
|
5305
|
+
|| value === null
|
|
5306
|
+
|| value === undefined;
|
|
5307
|
+
|
|
5308
|
+
const EmailValidator = (value) => {
|
|
5309
|
+
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
5310
|
+
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
5311
|
+
return isInvalid;
|
|
5312
|
+
};
|
|
5313
|
+
|
|
5314
|
+
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5315
|
+
|
|
5316
|
+
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5317
|
+
|
|
5318
|
+
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5319
|
+
|
|
5320
|
+
class Form extends React.Component {
|
|
5321
|
+
constructor(props) {
|
|
5322
|
+
super(props);
|
|
5323
|
+
this.myForm = React.createRef();
|
|
5324
|
+
this.state = {
|
|
5325
|
+
controls: undefined,
|
|
5326
|
+
isValid: false,
|
|
5327
|
+
isChanged: false,
|
|
5328
|
+
isSubmitted: false,
|
|
5329
|
+
submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
|
|
5330
|
+
};
|
|
5331
|
+
}
|
|
5332
|
+
getCssClasses() {
|
|
5333
|
+
const cssClasses = [];
|
|
5334
|
+
cssClasses.push(styles$E.form);
|
|
5335
|
+
this.props.className && cssClasses.push(this.props.className);
|
|
5336
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5337
|
+
}
|
|
5338
|
+
static getDerivedStateFromProps(nextProps, state) {
|
|
5339
|
+
if (!state.controls && nextProps.controls) {
|
|
5340
|
+
return { controls: nextProps.controls };
|
|
5341
|
+
}
|
|
5342
|
+
return null;
|
|
5343
|
+
}
|
|
5344
|
+
handleChange() {
|
|
5345
|
+
// get value by myForm instead of getControl?
|
|
5346
|
+
if (this.state.isChanged || this.state.isSubmitted) {
|
|
5347
|
+
const keys = Object.keys(this.state.controls);
|
|
5348
|
+
const values = keys.reduce((obj, f) => {
|
|
5349
|
+
const control = this.getControl(f);
|
|
5350
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5351
|
+
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
5352
|
+
control.value &&
|
|
5353
|
+
isValidDate(control.value)
|
|
5354
|
+
? new Date(control.value).toISOString()
|
|
5355
|
+
: control.value;
|
|
5356
|
+
return {
|
|
5357
|
+
...obj,
|
|
5358
|
+
[f]: newValue,
|
|
5359
|
+
};
|
|
5360
|
+
}, {});
|
|
5361
|
+
if (this.state.isValid && this.state.isSubmitted) {
|
|
5362
|
+
this.props.onSubmit && this.props.onSubmit(values);
|
|
5363
|
+
}
|
|
5364
|
+
this.props.onChange && this.props.onChange(values);
|
|
5365
|
+
this.setState({ isChanged: false, isSubmitted: false });
|
|
5366
|
+
}
|
|
5367
|
+
}
|
|
5368
|
+
// extract to service?
|
|
5369
|
+
validateField(fieldValue, fieldValidators) {
|
|
5370
|
+
const errors = [];
|
|
5371
|
+
if (fieldValidators) {
|
|
5372
|
+
for (const validator of fieldValidators) {
|
|
5373
|
+
const validatorSplitted = validator.split(':');
|
|
5374
|
+
const validatorName = validatorSplitted[0];
|
|
5375
|
+
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
5376
|
+
switch (validatorName) {
|
|
5377
|
+
case 'required':
|
|
5378
|
+
if (IsEmptyValidator(fieldValue)) {
|
|
5379
|
+
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
5380
|
+
}
|
|
5381
|
+
break;
|
|
5382
|
+
case 'email':
|
|
5383
|
+
if (EmailValidator(fieldValue)) {
|
|
5384
|
+
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
5385
|
+
}
|
|
5386
|
+
break;
|
|
5387
|
+
case 'min':
|
|
5388
|
+
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
5389
|
+
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
5390
|
+
}
|
|
5391
|
+
break;
|
|
5392
|
+
case 'max':
|
|
5393
|
+
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
5394
|
+
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
5395
|
+
}
|
|
5396
|
+
break;
|
|
5397
|
+
case 'match':
|
|
5398
|
+
if (validatorParam) {
|
|
5399
|
+
const matchControl = this.getControl(validatorParam);
|
|
5400
|
+
if (matchControl) {
|
|
5401
|
+
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
5402
|
+
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
else {
|
|
5406
|
+
console.error(`Form: Field ${validatorParam} not found`);
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
break;
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5413
|
+
return errors;
|
|
5414
|
+
}
|
|
5415
|
+
handleInputChange(name, value) {
|
|
5416
|
+
const field = this.getControl(name);
|
|
5417
|
+
field.value = value;
|
|
5418
|
+
// redundant mit handleOnBlur
|
|
5419
|
+
field.isDirty = true;
|
|
5420
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5421
|
+
field.isValid = field.errors.length === 0;
|
|
5422
|
+
const newControls = { ...this.state.controls };
|
|
5423
|
+
newControls[name] = field;
|
|
5424
|
+
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
5425
|
+
}
|
|
5426
|
+
handleOnBlur(e) {
|
|
5427
|
+
if (this.props.validateOnBlur) {
|
|
5428
|
+
const { name } = e.target;
|
|
5429
|
+
const field = this.getControl(name);
|
|
5430
|
+
field.isDirty = true;
|
|
5431
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5432
|
+
field.isValid = field.errors.length === 0;
|
|
5433
|
+
const controls = this.state.controls;
|
|
5434
|
+
if (controls) {
|
|
5435
|
+
controls[name] = field;
|
|
5436
|
+
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
5437
|
+
}
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
isRequired(fieldName) {
|
|
5441
|
+
let result = false;
|
|
5442
|
+
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
5443
|
+
return result;
|
|
5444
|
+
}
|
|
5445
|
+
isInvalid(fieldName) {
|
|
5446
|
+
let result = false;
|
|
5447
|
+
const field = this.getControl(fieldName);
|
|
5448
|
+
result = field.isDirty && !field.isValid;
|
|
5449
|
+
return result;
|
|
5450
|
+
}
|
|
5451
|
+
getControl(name) {
|
|
5452
|
+
return this.state.controls[name];
|
|
5453
|
+
}
|
|
5454
|
+
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
5455
|
+
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
5456
|
+
return (jsxRuntime.jsx(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' '), children: label }));
|
|
5457
|
+
}
|
|
5458
|
+
handleFormSubmit() {
|
|
5459
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5460
|
+
const field = this.getControl(fieldKey);
|
|
5461
|
+
// redundant mit handleBlur
|
|
5462
|
+
field.isDirty = true;
|
|
5463
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5464
|
+
field.isValid = field.errors.length === 0;
|
|
5465
|
+
}
|
|
5466
|
+
this.setState({
|
|
5467
|
+
controls: { ...this.state.controls },
|
|
5468
|
+
isSubmitted: true,
|
|
5469
|
+
isValid: Object.keys(this.state.controls)
|
|
5470
|
+
.map(f => this.getControl(f).isValid)
|
|
5471
|
+
.every(valid => valid === true),
|
|
5472
|
+
}, () => this.handleChange());
|
|
5473
|
+
}
|
|
5474
|
+
// trigger via ref
|
|
5475
|
+
handleFormReset() {
|
|
5476
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5477
|
+
const field = this.getControl(fieldKey);
|
|
5478
|
+
field.value = '';
|
|
5479
|
+
field.isDirty = false;
|
|
5480
|
+
field.errors = [];
|
|
5481
|
+
field.isValid = field.errors.length === 0;
|
|
5482
|
+
}
|
|
5483
|
+
this.setState({
|
|
5484
|
+
controls: { ...this.state.controls },
|
|
5485
|
+
isSubmitted: false,
|
|
5486
|
+
isChanged: false,
|
|
5487
|
+
isValid: false,
|
|
5488
|
+
});
|
|
5489
|
+
}
|
|
5490
|
+
handleOnKeyDown(e) {
|
|
5491
|
+
if (e.key === 'Enter') {
|
|
5492
|
+
e.preventDefault();
|
|
5493
|
+
this.state.submitOnEnter && this.handleFormSubmit();
|
|
5494
|
+
}
|
|
5495
|
+
}
|
|
5496
|
+
destroy() {
|
|
5497
|
+
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
5498
|
+
}
|
|
5499
|
+
getFormGroupCssClass(fieldKey) {
|
|
5500
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
5501
|
+
}
|
|
5502
|
+
render() {
|
|
5503
|
+
return (jsxRuntime.jsx("form", { className: this.getCssClasses(), ref: this.myForm, children: this.state &&
|
|
5504
|
+
this.state.controls &&
|
|
5505
|
+
Object.keys(this.state.controls).map(fieldKey => {
|
|
5506
|
+
return (jsxRuntime.jsxs(FormGroup, { className: this.getFormGroupCssClass(fieldKey), children: [this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
5507
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5508
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), jsxRuntime.jsx(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }), this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
5509
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5510
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), this.getControl(fieldKey).config.hint && (jsxRuntime.jsx(FormHint, { children: this.getControl(fieldKey).config.hint })), this.getControl(fieldKey).errors && jsxRuntime.jsx(FormError, { errors: this.getControl(fieldKey).errors })] }, fieldKey));
|
|
5511
|
+
}) }));
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
function isValidDate(dateObject) {
|
|
5515
|
+
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
class FormControl {
|
|
5519
|
+
constructor(
|
|
5520
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5521
|
+
value, validators = [], type, config) {
|
|
5522
|
+
this.value = value;
|
|
5523
|
+
this.validators = validators;
|
|
5524
|
+
this.type = type;
|
|
5525
|
+
this.config = config;
|
|
5526
|
+
this.errors = [];
|
|
5527
|
+
this.isValid = false;
|
|
5528
|
+
this.isDirty = false;
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5697
5531
|
|
|
5698
|
-
const
|
|
5699
|
-
const {
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5532
|
+
const DaySelect = (props) => {
|
|
5533
|
+
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
5534
|
+
React.useEffect(() => {
|
|
5535
|
+
init();
|
|
5536
|
+
}, [month, year]);
|
|
5537
|
+
const init = () => {
|
|
5538
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
5539
|
+
const newDays = [];
|
|
5540
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
5541
|
+
newDays.push({ value: i.toString(), label: i.toString() });
|
|
5542
|
+
}
|
|
5543
|
+
setDayOptions(newDays);
|
|
5544
|
+
};
|
|
5545
|
+
const [value, setValue] = React.useState(day);
|
|
5546
|
+
const [dayOptions, setDayOptions] = React.useState();
|
|
5547
|
+
const getCssClasses = () => {
|
|
5548
|
+
const cssClasses = [];
|
|
5549
|
+
className && cssClasses.push(className);
|
|
5550
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5551
|
+
};
|
|
5703
5552
|
const handleOnChange = (e) => {
|
|
5704
|
-
|
|
5553
|
+
setValue(e);
|
|
5705
5554
|
onChange && onChange(e);
|
|
5706
5555
|
};
|
|
5707
|
-
return (
|
|
5556
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
5708
5557
|
};
|
|
5709
5558
|
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
const
|
|
5715
|
-
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5559
|
+
const MonthSelect = (props) => {
|
|
5560
|
+
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
5561
|
+
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
5562
|
+
const [newValue, setNewValue] = React.useState(value);
|
|
5563
|
+
const [monthOptions, setMonthOptions] = React.useState();
|
|
5716
5564
|
React.useEffect(() => {
|
|
5717
|
-
|
|
5718
|
-
return () => {
|
|
5719
|
-
document.body.classList.remove(styles$y.drawerOpen);
|
|
5720
|
-
};
|
|
5565
|
+
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
5721
5566
|
}, []);
|
|
5722
|
-
const handleClickBackdrop = () => {
|
|
5723
|
-
onClickBackdrop && onClickBackdrop();
|
|
5724
|
-
};
|
|
5725
|
-
return (React__default["default"].createElement(Portal$1, { className: 'drawer-root', target: target },
|
|
5726
|
-
React__default["default"].createElement(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest }, children),
|
|
5727
|
-
!permanent && React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
5728
|
-
};
|
|
5729
|
-
const DrawerContent = (props) => {
|
|
5730
|
-
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5731
5567
|
const getCssClasses = () => {
|
|
5732
5568
|
const cssClasses = [];
|
|
5733
|
-
cssClasses.push(styles$y.drawer);
|
|
5734
|
-
shadow && cssClasses.push(styles$y.shadow);
|
|
5735
|
-
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5736
|
-
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5737
5569
|
className && cssClasses.push(className);
|
|
5738
5570
|
return cssClasses.filter(css => css).join(' ');
|
|
5739
5571
|
};
|
|
5740
|
-
const
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
};
|
|
5744
|
-
const getStyles = () => {
|
|
5745
|
-
return !permanent ? positionStyles[position] : undefined;
|
|
5572
|
+
const handleOnChange = (e) => {
|
|
5573
|
+
setNewValue(e);
|
|
5574
|
+
onChange && onChange(e);
|
|
5746
5575
|
};
|
|
5747
|
-
return (
|
|
5576
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
5748
5577
|
};
|
|
5749
5578
|
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
const MenuBody = (props) => {
|
|
5755
|
-
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5756
|
-
const [popperInstance, setPopperInstance] = React.useState();
|
|
5757
|
-
const menuBodyRef = React.useRef(null);
|
|
5579
|
+
const YearSelect = (props) => {
|
|
5580
|
+
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
5581
|
+
const [newValue, setNewValue] = React.useState(value.toString());
|
|
5582
|
+
const [years, setYears] = React.useState();
|
|
5758
5583
|
React.useEffect(() => {
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
modifiers: [
|
|
5763
|
-
{
|
|
5764
|
-
name: 'offset',
|
|
5765
|
-
options: {
|
|
5766
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5767
|
-
offset: ({ placement, popper }) => {
|
|
5768
|
-
if (placement === 'left-start') {
|
|
5769
|
-
return [0, -popper.width]; // y, x
|
|
5770
|
-
}
|
|
5771
|
-
if (placement === 'right-start') {
|
|
5772
|
-
return [0, -popper.width];
|
|
5773
|
-
}
|
|
5774
|
-
return [];
|
|
5775
|
-
},
|
|
5776
|
-
},
|
|
5777
|
-
},
|
|
5778
|
-
]
|
|
5779
|
-
});
|
|
5780
|
-
setPopperInstance(popperInstance);
|
|
5781
|
-
}
|
|
5782
|
-
else {
|
|
5783
|
-
popperInstance?.destroy();
|
|
5584
|
+
const newYears = [];
|
|
5585
|
+
for (let i = from; i <= to; i++) {
|
|
5586
|
+
newYears.push({ value: i.toString(), label: i.toString() });
|
|
5784
5587
|
}
|
|
5785
|
-
|
|
5588
|
+
setYears(newYears.reverse());
|
|
5589
|
+
}, [from, to]);
|
|
5786
5590
|
const getCssClasses = () => {
|
|
5787
5591
|
const cssClasses = [];
|
|
5788
|
-
cssClasses.push(styles$x.menuBody);
|
|
5789
|
-
shadow && cssClasses.push(styles$x.shadow);
|
|
5790
5592
|
className && cssClasses.push(className);
|
|
5791
5593
|
return cssClasses.filter(css => css).join(' ');
|
|
5792
5594
|
};
|
|
5793
|
-
const
|
|
5794
|
-
|
|
5595
|
+
const handleOnChange = (e) => {
|
|
5596
|
+
setNewValue(e);
|
|
5597
|
+
onChange && onChange(parseInt(e));
|
|
5795
5598
|
};
|
|
5796
|
-
|
|
5797
|
-
popperInstance?.destroy();
|
|
5798
|
-
});
|
|
5799
|
-
return (React__default["default"].createElement(Portal$1, { className: 'menu-root' },
|
|
5800
|
-
React__default["default"].createElement("div", { ref: menuBodyRef, className: getCssClasses() },
|
|
5801
|
-
React__default["default"].createElement(List, null, children)),
|
|
5802
|
-
React__default["default"].createElement(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })));
|
|
5599
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
5803
5600
|
};
|
|
5804
5601
|
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5602
|
+
exports.DATEMODE = void 0;
|
|
5603
|
+
(function (DATEMODE) {
|
|
5604
|
+
DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
|
|
5605
|
+
DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
|
|
5606
|
+
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
5607
|
+
})(exports.DATEMODE || (exports.DATEMODE = {}));
|
|
5608
|
+
const DateSelect = (props) => {
|
|
5609
|
+
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
5809
5610
|
const getCssClasses = () => {
|
|
5810
5611
|
const cssClasses = [];
|
|
5612
|
+
cssClasses.push('row');
|
|
5811
5613
|
className && cssClasses.push(className);
|
|
5812
5614
|
return cssClasses.filter(css => css).join(' ');
|
|
5813
5615
|
};
|
|
5814
|
-
const
|
|
5815
|
-
|
|
5616
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
5617
|
+
const handleOnChange = (e, mode) => {
|
|
5618
|
+
const currYear = mode === exports.DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
5619
|
+
const currMonth = mode === exports.DATEMODE.MONTH ? e : currDate.getMonth();
|
|
5620
|
+
const currday = mode === exports.DATEMODE.DAY ? e : currDate.getDate();
|
|
5621
|
+
const newDate = new Date(currYear, currMonth, currday);
|
|
5622
|
+
setCurrDate(newDate);
|
|
5623
|
+
onChange && onChange(newDate);
|
|
5816
5624
|
};
|
|
5817
|
-
return (
|
|
5818
|
-
React__default["default"].createElement("div", { ref: toggleContainerRef }, toggle),
|
|
5819
|
-
open &&
|
|
5820
|
-
React__default["default"].createElement(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop }, children)));
|
|
5625
|
+
return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Year" }), jsxRuntime.jsx(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, exports.DATEMODE.YEAR) })] }), jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Month" }), jsxRuntime.jsx(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.MONTH) })] }), jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Day" }), jsxRuntime.jsx(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.DAY) })] })] }));
|
|
5821
5626
|
};
|
|
5822
5627
|
|
|
5823
|
-
|
|
5824
|
-
|
|
5628
|
+
var css_248z$y = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 320px;\n overflow-y: auto;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0;\n left: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2;\n right: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow);\n}\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden;\n}";
|
|
5629
|
+
var styles$y = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
|
|
5630
|
+
styleInject(css_248z$y);
|
|
5631
|
+
|
|
5632
|
+
const Drawer = (props) => {
|
|
5633
|
+
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5634
|
+
React.useEffect(() => {
|
|
5635
|
+
document.body.classList.add(styles$y.drawerOpen);
|
|
5636
|
+
return () => {
|
|
5637
|
+
document.body.classList.remove(styles$y.drawerOpen);
|
|
5638
|
+
};
|
|
5639
|
+
}, []);
|
|
5640
|
+
const handleClickBackdrop = () => {
|
|
5641
|
+
onClickBackdrop && onClickBackdrop();
|
|
5642
|
+
};
|
|
5643
|
+
return (jsxRuntime.jsxs(Portal$1, { className: 'drawer-root', target: target, children: [jsxRuntime.jsx(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest, children: children }), !permanent && jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop })] }));
|
|
5644
|
+
};
|
|
5645
|
+
const DrawerContent = (props) => {
|
|
5646
|
+
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5825
5647
|
const getCssClasses = () => {
|
|
5826
5648
|
const cssClasses = [];
|
|
5649
|
+
cssClasses.push(styles$y.drawer);
|
|
5650
|
+
shadow && cssClasses.push(styles$y.shadow);
|
|
5651
|
+
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5652
|
+
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5653
|
+
className && cssClasses.push(className);
|
|
5827
5654
|
return cssClasses.filter(css => css).join(' ');
|
|
5828
5655
|
};
|
|
5829
|
-
const
|
|
5830
|
-
|
|
5831
|
-
|
|
5656
|
+
const positionStyles = {
|
|
5657
|
+
left: { left: '0px' },
|
|
5658
|
+
right: { right: '0px' }
|
|
5832
5659
|
};
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
return children;
|
|
5660
|
+
const getStyles = () => {
|
|
5661
|
+
return !permanent ? positionStyles[position] : undefined;
|
|
5662
|
+
};
|
|
5663
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), style: getStyles(), ...rest, children: children }));
|
|
5838
5664
|
};
|
|
5839
5665
|
|
|
5840
|
-
var css_248z$
|
|
5841
|
-
var styles$
|
|
5842
|
-
styleInject(css_248z$
|
|
5843
|
-
|
|
5844
|
-
const MenuDivider = () => React__default["default"].createElement("div", { className: styles$w.menuItemDivider });
|
|
5845
|
-
|
|
5846
|
-
var css_248z$v = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5847
|
-
var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5848
|
-
styleInject(css_248z$v);
|
|
5666
|
+
var css_248z$x = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5667
|
+
var styles$x = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5668
|
+
styleInject(css_248z$x);
|
|
5849
5669
|
|
|
5850
5670
|
const ExpansionPanelContent = ({ children }) => {
|
|
5851
|
-
return (
|
|
5671
|
+
return (jsxRuntime.jsx("div", { className: styles$x.expansionPanelContent, children: children }));
|
|
5852
5672
|
};
|
|
5853
5673
|
|
|
5854
|
-
var css_248z$
|
|
5855
|
-
var styles$
|
|
5856
|
-
styleInject(css_248z$
|
|
5674
|
+
var css_248z$w = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
|
|
5675
|
+
var styles$w = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
|
|
5676
|
+
styleInject(css_248z$w);
|
|
5857
5677
|
|
|
5858
5678
|
const ExpansionPanelHeader = (props) => {
|
|
5859
5679
|
const { children, isExpanded, onClick } = props;
|
|
@@ -5861,15 +5681,12 @@ const ExpansionPanelHeader = (props) => {
|
|
|
5861
5681
|
e.stopPropagation();
|
|
5862
5682
|
onClick && onClick(e);
|
|
5863
5683
|
};
|
|
5864
|
-
return (
|
|
5865
|
-
children,
|
|
5866
|
-
React__default["default"].createElement("span", { className: "ml-auto text-muted" },
|
|
5867
|
-
React__default["default"].createElement(Icon, null, isExpanded ? React__default["default"].createElement(ChevronUpSolidIcon, null) : React__default["default"].createElement(ChevronDownSolidIcon, null)))));
|
|
5684
|
+
return (jsxRuntime.jsxs("div", { className: styles$w.expansionPanelHeader, onClick: handleClick, children: [children, jsxRuntime.jsx("span", { className: "ml-auto text-muted", children: jsxRuntime.jsx(Icon, { children: isExpanded ? jsxRuntime.jsx(ChevronUpSolidIcon, {}) : jsxRuntime.jsx(ChevronDownSolidIcon, {}) }) })] }));
|
|
5868
5685
|
};
|
|
5869
5686
|
|
|
5870
|
-
var css_248z$
|
|
5871
|
-
var styles$
|
|
5872
|
-
styleInject(css_248z$
|
|
5687
|
+
var css_248z$v = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_shadow__zIjJ6 {\n box-shadow: var(--shadow);\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0;\n}";
|
|
5688
|
+
var styles$v = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
|
|
5689
|
+
styleInject(css_248z$v);
|
|
5873
5690
|
|
|
5874
5691
|
const ExpansionPanel = (props) => {
|
|
5875
5692
|
const { header, children, isExpanded = false, shadow, onChange } = props;
|
|
@@ -5879,34 +5696,32 @@ const ExpansionPanel = (props) => {
|
|
|
5879
5696
|
}, [isExpanded]);
|
|
5880
5697
|
const getCssClasses = () => {
|
|
5881
5698
|
const cssClasses = [];
|
|
5882
|
-
cssClasses.push(styles$
|
|
5699
|
+
cssClasses.push(styles$v.expansionPanel);
|
|
5883
5700
|
if (_isExpanded) {
|
|
5884
|
-
cssClasses.push(styles$
|
|
5701
|
+
cssClasses.push(styles$v.isExpanded);
|
|
5885
5702
|
}
|
|
5886
|
-
shadow && cssClasses.push(styles$
|
|
5703
|
+
shadow && cssClasses.push(styles$v.shadow);
|
|
5887
5704
|
return cssClasses.filter(css => css).join(' ');
|
|
5888
5705
|
};
|
|
5889
5706
|
const handleClickHeader = (event) => {
|
|
5890
5707
|
setIsExpanded(!_isExpanded);
|
|
5891
5708
|
onChange && onChange(event, !_isExpanded);
|
|
5892
5709
|
};
|
|
5893
|
-
return (
|
|
5894
|
-
|
|
5895
|
-
_isExpanded &&
|
|
5896
|
-
React__default["default"].createElement(ExpansionPanelContent, null, children)));
|
|
5710
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [jsxRuntime.jsx(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader, children: header }), _isExpanded &&
|
|
5711
|
+
jsxRuntime.jsx(ExpansionPanelContent, { children: children })] }));
|
|
5897
5712
|
};
|
|
5898
5713
|
|
|
5899
|
-
var css_248z$
|
|
5900
|
-
var styles$
|
|
5901
|
-
styleInject(css_248z$
|
|
5714
|
+
var css_248z$u = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow);\n}\n\n.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n z-index: 1000;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftTop__ZiHQN {\n top: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftBottom__210sl {\n bottom: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightTop__VUsvT {\n top: 64px;\n right: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightBottom__FaUFl {\n bottom: 16px;\n right: 16px;\n}";
|
|
5715
|
+
var styles$u = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG","leftTop":"FloatingActionButton-module_leftTop__ZiHQN","leftBottom":"FloatingActionButton-module_leftBottom__210sl","rightTop":"FloatingActionButton-module_rightTop__VUsvT","rightBottom":"FloatingActionButton-module_rightBottom__FaUFl"};
|
|
5716
|
+
styleInject(css_248z$u);
|
|
5902
5717
|
|
|
5903
5718
|
const FloatingActionButton = (props) => {
|
|
5904
5719
|
const { className, icon, color = exports.COLOR.primary, fixed, position = 'rightBottom', size = exports.SIZE.lg, isActive, disabled, onClick } = props;
|
|
5905
5720
|
const getCssClasses = () => {
|
|
5906
5721
|
const cssClasses = [];
|
|
5907
|
-
cssClasses.push(styles$
|
|
5908
|
-
fixed && cssClasses.push(styles$
|
|
5909
|
-
position && fixed && cssClasses.push(styles$
|
|
5722
|
+
cssClasses.push(styles$u.fab);
|
|
5723
|
+
fixed && cssClasses.push(styles$u.fixed);
|
|
5724
|
+
position && fixed && cssClasses.push(styles$u[position]);
|
|
5910
5725
|
className && cssClasses.push(className);
|
|
5911
5726
|
return cssClasses.filter(css => css).join(' ');
|
|
5912
5727
|
};
|
|
@@ -5914,48 +5729,47 @@ const FloatingActionButton = (props) => {
|
|
|
5914
5729
|
e.stopPropagation();
|
|
5915
5730
|
onClick && onClick(e);
|
|
5916
5731
|
};
|
|
5917
|
-
return (
|
|
5732
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: exports.VARIANT.contained, onClick: handleClick }));
|
|
5918
5733
|
};
|
|
5919
5734
|
|
|
5920
|
-
var css_248z$
|
|
5921
|
-
var styles$
|
|
5922
|
-
styleInject(css_248z$
|
|
5735
|
+
var css_248z$t = ".Link-module_link__YlJQl {\n color: var(--primary);\n text-decoration: underline;\n}\n.Link-module_link__YlJQl:hover {\n color: var(--primary-dark);\n}";
|
|
5736
|
+
var styles$t = {"link":"Link-module_link__YlJQl"};
|
|
5737
|
+
styleInject(css_248z$t);
|
|
5923
5738
|
|
|
5924
5739
|
const Link = (props) => {
|
|
5925
5740
|
const { href = '#', className, target, children, ...rest } = props;
|
|
5926
5741
|
const [status, setStatus] = React.useState(exports.STATUS.NORMAL);
|
|
5927
|
-
const [cssClassName] = useCssClasses([styles$
|
|
5742
|
+
const [cssClassName] = useCssClasses([styles$t.link, className, status]);
|
|
5928
5743
|
const onMouseEnter = () => {
|
|
5929
5744
|
setStatus(exports.STATUS.HOVERED);
|
|
5930
5745
|
};
|
|
5931
5746
|
const onMouseLeave = () => {
|
|
5932
5747
|
setStatus(exports.STATUS.NORMAL);
|
|
5933
5748
|
};
|
|
5934
|
-
return (
|
|
5749
|
+
return (jsxRuntime.jsx("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest, children: children }));
|
|
5935
5750
|
};
|
|
5936
5751
|
|
|
5937
|
-
var css_248z$
|
|
5938
|
-
var styles$
|
|
5939
|
-
styleInject(css_248z$
|
|
5752
|
+
var css_248z$s = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.LoadingIndicator-module_loadingIndicatorContainer__GS9OG.LoadingIndicator-module_isFixed__WCFNG {\n position: fixed;\n top: 0;\n left: 0;\n}\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px;\n}\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}";
|
|
5753
|
+
var styles$s = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
|
|
5754
|
+
styleInject(css_248z$s);
|
|
5940
5755
|
|
|
5941
5756
|
const LoadingIndicator = ({ ...rest }) => {
|
|
5942
5757
|
const getCssClasses = () => {
|
|
5943
5758
|
const cssClasses = [];
|
|
5944
|
-
cssClasses.push(styles$
|
|
5759
|
+
cssClasses.push(styles$s.loadingIndicator);
|
|
5945
5760
|
return cssClasses.filter(css => css).join(' ');
|
|
5946
5761
|
};
|
|
5947
|
-
return (
|
|
5948
|
-
React__default["default"].createElement(SpinnerSolidIcon, null)));
|
|
5762
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(SpinnerSolidIcon, {}) }));
|
|
5949
5763
|
};
|
|
5950
5764
|
|
|
5951
5765
|
const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
5952
5766
|
const getCssClasses = () => {
|
|
5953
5767
|
const cssClasses = [];
|
|
5954
|
-
cssClasses.push(styles$
|
|
5955
|
-
isFixed && cssClasses.push(styles$
|
|
5768
|
+
cssClasses.push(styles$s.loadingIndicatorContainer);
|
|
5769
|
+
isFixed && cssClasses.push(styles$s.isFixed);
|
|
5956
5770
|
return cssClasses.filter(css => css).join(' ');
|
|
5957
5771
|
};
|
|
5958
|
-
return (
|
|
5772
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
5959
5773
|
};
|
|
5960
5774
|
|
|
5961
5775
|
var client = createCommonjsModule(function (module, exports) {
|
|
@@ -5996,8 +5810,7 @@ class LoadingIndicatorService {
|
|
|
5996
5810
|
this.container.classList.add('snackbar-container');
|
|
5997
5811
|
document.body.appendChild(this.container);
|
|
5998
5812
|
this.root = client_1(this.container);
|
|
5999
|
-
this.root.render(
|
|
6000
|
-
React__default["default"].createElement(LoadingIndicator, null)));
|
|
5813
|
+
this.root.render(jsxRuntime.jsx(LoadingIndicatorContainer, { isFixed: true, children: jsxRuntime.jsx(LoadingIndicator, {}) }));
|
|
6001
5814
|
}
|
|
6002
5815
|
hide() {
|
|
6003
5816
|
if (this.container) {
|
|
@@ -6010,6 +5823,97 @@ class LoadingIndicatorService {
|
|
|
6010
5823
|
}
|
|
6011
5824
|
const loadingIndicatorService = new LoadingIndicatorService();
|
|
6012
5825
|
|
|
5826
|
+
var css_248z$r = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius);\n max-width: 300px;\n}\n.MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow);\n}";
|
|
5827
|
+
var styles$r = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
|
|
5828
|
+
styleInject(css_248z$r);
|
|
5829
|
+
|
|
5830
|
+
const MenuBody = (props) => {
|
|
5831
|
+
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5832
|
+
const [popperInstance, setPopperInstance] = React.useState();
|
|
5833
|
+
const menuBodyRef = React.useRef(null);
|
|
5834
|
+
React.useEffect(() => {
|
|
5835
|
+
if (menuBodyRef && parentRef.current && menuBodyRef.current) {
|
|
5836
|
+
const popperInstance = core.createPopper(parentRef.current, menuBodyRef.current, {
|
|
5837
|
+
placement: `${menuPosition}-start`,
|
|
5838
|
+
modifiers: [
|
|
5839
|
+
{
|
|
5840
|
+
name: 'offset',
|
|
5841
|
+
options: {
|
|
5842
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5843
|
+
offset: ({ placement, popper }) => {
|
|
5844
|
+
if (placement === 'left-start') {
|
|
5845
|
+
return [0, -popper.width]; // y, x
|
|
5846
|
+
}
|
|
5847
|
+
if (placement === 'right-start') {
|
|
5848
|
+
return [0, -popper.width];
|
|
5849
|
+
}
|
|
5850
|
+
return [];
|
|
5851
|
+
},
|
|
5852
|
+
},
|
|
5853
|
+
},
|
|
5854
|
+
]
|
|
5855
|
+
});
|
|
5856
|
+
setPopperInstance(popperInstance);
|
|
5857
|
+
}
|
|
5858
|
+
else {
|
|
5859
|
+
popperInstance?.destroy();
|
|
5860
|
+
}
|
|
5861
|
+
}, [menuBodyRef]);
|
|
5862
|
+
const getCssClasses = () => {
|
|
5863
|
+
const cssClasses = [];
|
|
5864
|
+
cssClasses.push(styles$r.menuBody);
|
|
5865
|
+
shadow && cssClasses.push(styles$r.shadow);
|
|
5866
|
+
className && cssClasses.push(className);
|
|
5867
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5868
|
+
};
|
|
5869
|
+
const handleClickBackdrop = () => {
|
|
5870
|
+
onClickBackdrop && onClickBackdrop();
|
|
5871
|
+
};
|
|
5872
|
+
useOnDestroy(() => {
|
|
5873
|
+
popperInstance?.destroy();
|
|
5874
|
+
});
|
|
5875
|
+
return (jsxRuntime.jsxs(Portal$1, { className: 'menu-root', children: [jsxRuntime.jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsxRuntime.jsx(List, { children: children }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5878
|
+
const Menu = (props) => {
|
|
5879
|
+
const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
|
|
5880
|
+
const menuContainer = React.useRef(null);
|
|
5881
|
+
const toggleContainerRef = React.useRef(null);
|
|
5882
|
+
const getCssClasses = () => {
|
|
5883
|
+
const cssClasses = [];
|
|
5884
|
+
className && cssClasses.push(className);
|
|
5885
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5886
|
+
};
|
|
5887
|
+
const handleClickBackdrop = () => {
|
|
5888
|
+
onClickBackdrop && onClickBackdrop();
|
|
5889
|
+
};
|
|
5890
|
+
return (jsxRuntime.jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
|
|
5891
|
+
jsxRuntime.jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
|
|
5892
|
+
};
|
|
5893
|
+
|
|
5894
|
+
const MenuItem = (props) => {
|
|
5895
|
+
const { children, onClick, ...rest } = props;
|
|
5896
|
+
const getCssClasses = () => {
|
|
5897
|
+
const cssClasses = [];
|
|
5898
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5899
|
+
};
|
|
5900
|
+
const handleClick = (e) => {
|
|
5901
|
+
e.stopPropagation();
|
|
5902
|
+
onClick && onClick(e);
|
|
5903
|
+
};
|
|
5904
|
+
return (jsxRuntime.jsx(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest, children: children }));
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
const MenuToggle = ({ children }) => {
|
|
5908
|
+
return children;
|
|
5909
|
+
};
|
|
5910
|
+
|
|
5911
|
+
var css_248z$q = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
|
|
5912
|
+
var styles$q = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
|
|
5913
|
+
styleInject(css_248z$q);
|
|
5914
|
+
|
|
5915
|
+
const MenuDivider = () => jsxRuntime.jsx("div", { className: styles$q.menuItemDivider });
|
|
5916
|
+
|
|
6013
5917
|
var css_248z$p = ".ModalHeader-module_modalHeader__tw-u- {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n border-bottom: none;\n align-items: center;\n}\n.ModalHeader-module_modalHeader__tw-u-.ModalHeader-module_shadow__qELWb {\n box-shadow: var(--shadow);\n}\n\n.ModalHeader-module_modalTitle__2xShH {\n margin-bottom: 0;\n line-height: 1.5;\n}";
|
|
6014
5918
|
var styles$p = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
6015
5919
|
styleInject(css_248z$p);
|
|
@@ -6026,17 +5930,15 @@ const ModalHeader = (props) => {
|
|
|
6026
5930
|
const handleClick = () => {
|
|
6027
5931
|
onClose && onClose();
|
|
6028
5932
|
};
|
|
6029
|
-
return (
|
|
6030
|
-
|
|
6031
|
-
isDismissable &&
|
|
6032
|
-
React__default["default"].createElement(IconButton, { icon: React__default["default"].createElement(TimesSolidIcon, null), variant: exports.VARIANT.text, onClick: handleClick })));
|
|
5933
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5934
|
+
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), variant: exports.VARIANT.text, onClick: handleClick })] }));
|
|
6033
5935
|
};
|
|
6034
5936
|
|
|
6035
5937
|
var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n flex: 1 1 auto;\n padding: 0 1rem 1rem 1rem;\n overflow-y: auto;\n}";
|
|
6036
5938
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
6037
5939
|
styleInject(css_248z$o);
|
|
6038
5940
|
|
|
6039
|
-
const ModalBody = ({ children }) => (
|
|
5941
|
+
const ModalBody = ({ children }) => (jsxRuntime.jsx("div", { className: styles$o.modalBody, children: children }));
|
|
6040
5942
|
|
|
6041
5943
|
var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
|
|
6042
5944
|
var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
|
|
@@ -6051,7 +5953,7 @@ const ModalFooter = (props) => {
|
|
|
6051
5953
|
className && cssClasses.push(className);
|
|
6052
5954
|
return cssClasses.filter(css => css).join(' ');
|
|
6053
5955
|
};
|
|
6054
|
-
return (
|
|
5956
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
6055
5957
|
};
|
|
6056
5958
|
|
|
6057
5959
|
var css_248z$m = ".Modal-module_modal__HMxWV {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n z-index: 1111 !important;\n border-radius: var(--borderRadius);\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_sm__CsR6U {\n max-width: 300px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_md__lNggx {\n max-width: 500px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_lg__6dtT2 {\n max-width: 1140px;\n}\n@media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px;\n }\n}\n\n.Modal-module_modalDialog__fNqyK {\n position: relative;\n width: auto;\n pointer-events: none;\n}\n\n.Modal-module_modalDialogCentered__sa2wv {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.Modal-module_modalContent__9wAwB {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);\n outline: 0;\n margin: 1rem;\n max-height: 600px;\n}\n@media (min-width: 576px) {\n .Modal-module_modalContent__9wAwB {\n max-width: 500px;\n margin: auto;\n }\n}\n\n.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0;\n}\n.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n margin: 0;\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto;\n max-width: 100%;\n}\n@media (min-width: 320px) {\n .Modal-module_fullscreen__iepGa {\n max-width: 100% !important;\n }\n}";
|
|
@@ -6078,17 +5980,9 @@ const Modal = (props) => {
|
|
|
6078
5980
|
const handleClickBackdrop = () => {
|
|
6079
5981
|
onBackdropClick && onBackdropClick();
|
|
6080
5982
|
};
|
|
6081
|
-
return (
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
React__default["default"].createElement("div", { className: getCssClass() },
|
|
6085
|
-
React__default["default"].createElement("div", { className: styles$m.modalContent },
|
|
6086
|
-
header &&
|
|
6087
|
-
React__default["default"].createElement(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick() }, header),
|
|
6088
|
-
React__default["default"].createElement(ModalBody, null, children),
|
|
6089
|
-
footer &&
|
|
6090
|
-
React__default["default"].createElement(ModalFooter, null, footer))))),
|
|
6091
|
-
React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
|
|
5983
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Portal$1, { className: 'modal-root', target: target, children: jsxRuntime.jsx("div", { className: styles$m.modal, children: jsxRuntime.jsx("div", { className: getCssClass(), children: jsxRuntime.jsxs("div", { className: styles$m.modalContent, children: [header &&
|
|
5984
|
+
jsxRuntime.jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsxRuntime.jsx(ModalBody, { children: children }), footer &&
|
|
5985
|
+
jsxRuntime.jsx(ModalFooter, { children: footer })] }) }) }) }), jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6092
5986
|
};
|
|
6093
5987
|
|
|
6094
5988
|
exports.MODALTYPE = void 0;
|
|
@@ -6144,11 +6038,8 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6144
6038
|
}
|
|
6145
6039
|
button.handler && button.handler();
|
|
6146
6040
|
};
|
|
6147
|
-
return (
|
|
6148
|
-
|
|
6149
|
-
modalType === exports.MODALTYPE.FORM &&
|
|
6150
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
6151
|
-
React__default["default"].createElement(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }))));
|
|
6041
|
+
return (jsxRuntime.jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsxRuntime.jsx(jsxRuntime.Fragment, { children: buttons.map((button, index) => (jsxRuntime.jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsxRuntime.jsx("div", { children: description }), modalType === exports.MODALTYPE.FORM &&
|
|
6042
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6152
6043
|
};
|
|
6153
6044
|
|
|
6154
6045
|
class ModalService {
|
|
@@ -6166,7 +6057,7 @@ class ModalService {
|
|
|
6166
6057
|
this.hide();
|
|
6167
6058
|
};
|
|
6168
6059
|
this.root = client_1(this.container);
|
|
6169
|
-
this.root.render(
|
|
6060
|
+
this.root.render(jsxRuntime.jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, description: description, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6170
6061
|
}
|
|
6171
6062
|
});
|
|
6172
6063
|
}
|
|
@@ -6184,7 +6075,7 @@ class ModalService {
|
|
|
6184
6075
|
this.hide();
|
|
6185
6076
|
};
|
|
6186
6077
|
this.root = client_1(this.container);
|
|
6187
|
-
this.root.render(
|
|
6078
|
+
this.root.render(jsxRuntime.jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, formControls: formControls, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6188
6079
|
}
|
|
6189
6080
|
});
|
|
6190
6081
|
}
|
|
@@ -6221,7 +6112,7 @@ const NumberSelect = (props) => {
|
|
|
6221
6112
|
setNewValue(e);
|
|
6222
6113
|
onChange && onChange(e);
|
|
6223
6114
|
};
|
|
6224
|
-
return (
|
|
6115
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
6225
6116
|
};
|
|
6226
6117
|
|
|
6227
6118
|
var css_248z$l = ".Tooltip-module_tooltipContainer__9ZWx3 {\n display: inline;\n}\n\n.Tooltip-module_tooltip__x5HOu {\n background-color: #333;\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n font-size: 13px;\n position: absolute;\n left: -1000000px;\n z-index: 1100;\n}\n\n.Tooltip-module_arrow__B6lfe, .Tooltip-module_arrow__B6lfe::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n.Tooltip-module_arrow__B6lfe::before {\n content: \"\";\n transform: rotate(45deg);\n background: #333;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-top__h5aww {\n bottom: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-bottom__dYc5B {\n top: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-left__8-2Jw {\n right: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-right__v4h4z {\n left: -4px;\n}";
|
|
@@ -6302,16 +6193,9 @@ const Tooltip = (props) => {
|
|
|
6302
6193
|
placement && cssClasses.push(styles$l[`placement-${placement}`]);
|
|
6303
6194
|
return cssClasses.filter(css => css).join(' ');
|
|
6304
6195
|
};
|
|
6305
|
-
return (
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
React__default["default"].createElement("div", { className: styles$l.tooltip, ref: refTooltip },
|
|
6309
|
-
React__default["default"].createElement("div", { className: 'd-flex align-items-center' },
|
|
6310
|
-
text,
|
|
6311
|
-
showClose &&
|
|
6312
|
-
React__default["default"].createElement(Icon, { className: 'ml-1', onClick: handleClickClose },
|
|
6313
|
-
React__default["default"].createElement(TimesSolidIcon, null))),
|
|
6314
|
-
React__default["default"].createElement("div", { className: getArrowStyles(), "data-popper-arrow": true }))));
|
|
6196
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { ref: refChild, className: styles$l.tooltipContainer, onMouseOver: handleMouseOver, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: children }), open && text &&
|
|
6197
|
+
jsxRuntime.jsxs("div", { className: styles$l.tooltip, ref: refTooltip, children: [jsxRuntime.jsxs("div", { className: 'd-flex align-items-center', children: [text, showClose &&
|
|
6198
|
+
jsxRuntime.jsx(Icon, { className: 'ml-1', onClick: handleClickClose, children: jsxRuntime.jsx(TimesSolidIcon, {}) })] }), jsxRuntime.jsx("div", { className: getArrowStyles(), "data-popper-arrow": true })] })] }));
|
|
6315
6199
|
};
|
|
6316
6200
|
|
|
6317
6201
|
var css_248z$k = ":root {\n --progress-height: 0.5rem;\n --progress-bg: #e9ecef;\n --progress-box-shadow: var(--shadow);\n --progress-bar-color: #fff;\n --progress-bar-bg: var(--primary);\n --progress-bar-transition: width 0.6s ease;\n}\n\n.ProgressBar-module_progressBarContainer__vtbBw {\n display: flex;\n height: var(--progress-height);\n overflow: hidden;\n background-color: var(--progress-bg);\n}\n\n.ProgressBar-module_progressBar__hr8I8 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n color: var(--progress-bar-color);\n text-align: center;\n white-space: nowrap;\n transition: var(--progress-bar-transition);\n background-color: var(--progress-bar-bg);\n}\n.ProgressBar-module_progressBar__hr8I8.ProgressBar-module_indeterminate__WcQdD {\n width: 100%;\n height: 100%;\n animation: ProgressBar-module_indeterminateAnimation__SlBFt 1s infinite linear;\n transform-origin: 0% 50%;\n}\n\n@keyframes ProgressBar-module_indeterminateAnimation__SlBFt {\n 0% {\n transform: translateX(0) scaleX(0);\n }\n 40% {\n transform: translateX(0) scaleX(0.4);\n }\n 100% {\n transform: translateX(100%) scaleX(0.5);\n }\n}";
|
|
@@ -6353,9 +6237,7 @@ const ProgressBar = (props) => {
|
|
|
6353
6237
|
}
|
|
6354
6238
|
return `${width}%`;
|
|
6355
6239
|
};
|
|
6356
|
-
return (
|
|
6357
|
-
React__default["default"].createElement("div", { className: getCssClasses(), ...rest },
|
|
6358
|
-
React__default["default"].createElement("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }))));
|
|
6240
|
+
return (jsxRuntime.jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }) }) }));
|
|
6359
6241
|
};
|
|
6360
6242
|
|
|
6361
6243
|
class SidebarItemModel {
|
|
@@ -6421,40 +6303,87 @@ const Sidebar = (props) => {
|
|
|
6421
6303
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
6422
6304
|
navigate(e, `${itemPath}/${subItemPath}`);
|
|
6423
6305
|
};
|
|
6424
|
-
return (React__default["default"].
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
"(",
|
|
6431
|
-
item.items.length,
|
|
6432
|
-
")"))) }),
|
|
6433
|
-
item.items && item.items.length > 0 &&
|
|
6434
|
-
React__default["default"].createElement(ListItemAction, null, item.isCollapsed ? React__default["default"].createElement(ChevronDownSolidIcon, null) : React__default["default"].createElement(ChevronUpSolidIcon, null))),
|
|
6435
|
-
!item.isCollapsed && item.items && item.items.length > 0 && (React__default["default"].createElement(List, { className: "list-level-1", key: `${item.id}-sub` }, item.items.map(subItem => (React__default["default"].createElement(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), key: subItem.id, onClick: (e) => handleClickSubItem(item.path, subItem.path, e) }, subItem.label)))))))))));
|
|
6436
|
-
};
|
|
6437
|
-
|
|
6438
|
-
var css_248z$j = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
|
|
6439
|
-
var styles$j = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
6306
|
+
return (jsxRuntime.jsx("nav", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(List, { children: menuItems.map(item => (jsxRuntime.jsxs(React__default["default"].Fragment, { children: [jsxRuntime.jsxs(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e), children: [jsxRuntime.jsx(ListItemText, { primary: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item.label, item.items && item.items.length > 0 && (jsxRuntime.jsxs("small", { className: "ml-2", children: ["(", item.items.length, ")"] }))] }) }), item.items && item.items.length > 0 &&
|
|
6307
|
+
jsxRuntime.jsx(ListItemAction, { children: item.isCollapsed ? jsxRuntime.jsx(ChevronDownSolidIcon, {}) : jsxRuntime.jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsxRuntime.jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsxRuntime.jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6311
|
+
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6440
6312
|
styleInject(css_248z$j);
|
|
6441
6313
|
|
|
6314
|
+
const SkeletonAvatar = (props) => {
|
|
6315
|
+
const { className, ...rest } = props;
|
|
6316
|
+
const getCssClasses = () => {
|
|
6317
|
+
const cssClasses = [];
|
|
6318
|
+
cssClasses.push(styles$j.skeletonAvatar);
|
|
6319
|
+
className && cssClasses.push(className);
|
|
6320
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6321
|
+
};
|
|
6322
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6323
|
+
};
|
|
6324
|
+
|
|
6325
|
+
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6326
|
+
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6327
|
+
styleInject(css_248z$i);
|
|
6328
|
+
|
|
6329
|
+
const SkeletonText = (props) => {
|
|
6330
|
+
const { className, ...rest } = props;
|
|
6331
|
+
const getCssClasses = () => {
|
|
6332
|
+
const cssClasses = [];
|
|
6333
|
+
cssClasses.push(styles$i.skeletonText);
|
|
6334
|
+
className && cssClasses.push(className);
|
|
6335
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6336
|
+
};
|
|
6337
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6338
|
+
};
|
|
6339
|
+
|
|
6340
|
+
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6341
|
+
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6342
|
+
styleInject(css_248z$h);
|
|
6343
|
+
|
|
6344
|
+
const SkeletonFooter = (props) => {
|
|
6345
|
+
const { className, ...rest } = props;
|
|
6346
|
+
const getCssClasses = () => {
|
|
6347
|
+
const cssClasses = [];
|
|
6348
|
+
cssClasses.push(styles$h.skeletonFooter);
|
|
6349
|
+
className && cssClasses.push(className);
|
|
6350
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6351
|
+
};
|
|
6352
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6353
|
+
};
|
|
6354
|
+
|
|
6355
|
+
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6356
|
+
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6357
|
+
styleInject(css_248z$g);
|
|
6358
|
+
|
|
6359
|
+
const SkeletonImage = (props) => {
|
|
6360
|
+
const { className, ...rest } = props;
|
|
6361
|
+
const getCssClasses = () => {
|
|
6362
|
+
const cssClasses = [];
|
|
6363
|
+
cssClasses.push(styles$g.skeletonImage);
|
|
6364
|
+
className && cssClasses.push(className);
|
|
6365
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6366
|
+
};
|
|
6367
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: styles$g.img }) }));
|
|
6368
|
+
};
|
|
6369
|
+
|
|
6370
|
+
var css_248z$f = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
|
|
6371
|
+
var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
6372
|
+
styleInject(css_248z$f);
|
|
6373
|
+
|
|
6442
6374
|
const Snackbar = (props) => {
|
|
6443
6375
|
const { children, color = exports.COLOR.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6444
6376
|
const getCssClasses = () => {
|
|
6445
6377
|
const cssClasses = [];
|
|
6446
|
-
cssClasses.push(styles$
|
|
6378
|
+
cssClasses.push(styles$f.snackbar);
|
|
6447
6379
|
cssClasses.push(`shadow-lg`);
|
|
6448
|
-
cssClasses.push(styles$
|
|
6380
|
+
cssClasses.push(styles$f[color]);
|
|
6449
6381
|
return cssClasses.filter(css => css).join(' ');
|
|
6450
6382
|
};
|
|
6451
6383
|
const handleClickAction = (e) => {
|
|
6452
6384
|
onOk && onOk(e);
|
|
6453
6385
|
};
|
|
6454
|
-
return (
|
|
6455
|
-
React__default["default"].createElement("div", { className: styles$j.text }, children),
|
|
6456
|
-
React__default["default"].createElement("div", { className: styles$j.action + ' text-accent', onClick: handleClickAction },
|
|
6457
|
-
React__default["default"].createElement("span", null, actionText))));
|
|
6386
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { className: styles$f.text, children: children }), jsxRuntime.jsx("div", { className: styles$f.action + ' text-accent', onClick: handleClickAction, children: jsxRuntime.jsx("span", { children: actionText }) })] }));
|
|
6458
6387
|
};
|
|
6459
6388
|
|
|
6460
6389
|
class SnackbarService {
|
|
@@ -6478,7 +6407,7 @@ class SnackbarService {
|
|
|
6478
6407
|
this.hide();
|
|
6479
6408
|
};
|
|
6480
6409
|
this.root = client_1(this.container);
|
|
6481
|
-
this.root.render(
|
|
6410
|
+
this.root.render(jsxRuntime.jsx(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk, children: message }));
|
|
6482
6411
|
});
|
|
6483
6412
|
}
|
|
6484
6413
|
hide() {
|
|
@@ -6492,29 +6421,29 @@ class SnackbarService {
|
|
|
6492
6421
|
}
|
|
6493
6422
|
const snackbarService = new SnackbarService();
|
|
6494
6423
|
|
|
6495
|
-
var css_248z$
|
|
6496
|
-
var styles$
|
|
6497
|
-
styleInject(css_248z$
|
|
6424
|
+
var css_248z$e = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto;\n}";
|
|
6425
|
+
var styles$e = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
|
|
6426
|
+
styleInject(css_248z$e);
|
|
6498
6427
|
|
|
6499
6428
|
const SpeedDialActions = (props) => {
|
|
6500
6429
|
const { children } = props;
|
|
6501
6430
|
const getCssClasses = () => {
|
|
6502
6431
|
const cssClasses = [];
|
|
6503
|
-
cssClasses.push(styles$
|
|
6432
|
+
cssClasses.push(styles$e.speedDialActions);
|
|
6504
6433
|
return cssClasses.filter(css => css).join(' ');
|
|
6505
6434
|
};
|
|
6506
|
-
return (
|
|
6435
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
6507
6436
|
};
|
|
6508
6437
|
|
|
6509
|
-
var css_248z$
|
|
6510
|
-
var styles$
|
|
6511
|
-
styleInject(css_248z$
|
|
6438
|
+
var css_248z$d = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
6439
|
+
var styles$d = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
|
|
6440
|
+
styleInject(css_248z$d);
|
|
6512
6441
|
|
|
6513
6442
|
const SpeedDial = (props) => {
|
|
6514
6443
|
const { children, className, open, onOpen, onClose, ...rest } = props;
|
|
6515
6444
|
const getCssClasses = () => {
|
|
6516
6445
|
const cssClasses = [];
|
|
6517
|
-
cssClasses.push(styles$
|
|
6446
|
+
cssClasses.push(styles$d.speedDial);
|
|
6518
6447
|
className && cssClasses.push(className);
|
|
6519
6448
|
return cssClasses.filter(css => css).join(' ');
|
|
6520
6449
|
};
|
|
@@ -6526,26 +6455,23 @@ const SpeedDial = (props) => {
|
|
|
6526
6455
|
onOpen && onOpen(e);
|
|
6527
6456
|
}
|
|
6528
6457
|
};
|
|
6529
|
-
return (
|
|
6530
|
-
|
|
6531
|
-
React__default["default"].createElement(FloatingActionButton, { icon: React__default["default"].createElement(PlusSolidIcon, null), onClick: handleClick })),
|
|
6532
|
-
open &&
|
|
6533
|
-
React__default["default"].createElement(SpeedDialActions, null, children)));
|
|
6458
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined }, children: jsxRuntime.jsx(FloatingActionButton, { icon: jsxRuntime.jsx(PlusSolidIcon, {}), onClick: handleClick }) }), open &&
|
|
6459
|
+
jsxRuntime.jsx(SpeedDialActions, { children: children })] }));
|
|
6534
6460
|
};
|
|
6535
6461
|
|
|
6536
|
-
var css_248z$
|
|
6537
|
-
var styles$
|
|
6538
|
-
styleInject(css_248z$
|
|
6462
|
+
var css_248z$c = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
|
|
6463
|
+
var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
|
|
6464
|
+
styleInject(css_248z$c);
|
|
6539
6465
|
|
|
6540
6466
|
const SpeedDialAction = (props) => {
|
|
6541
6467
|
const { icon, color = exports.COLOR.light, onClick, className } = props;
|
|
6542
6468
|
const getCssClasses = () => {
|
|
6543
6469
|
const cssClasses = [];
|
|
6544
|
-
cssClasses.push(styles$
|
|
6470
|
+
cssClasses.push(styles$c.speedDialAction);
|
|
6545
6471
|
className && cssClasses.push(className);
|
|
6546
6472
|
return cssClasses.filter(css => css).join(' ');
|
|
6547
6473
|
};
|
|
6548
|
-
return (
|
|
6474
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: exports.VARIANT.contained, shadow: true, onClick: onClick }));
|
|
6549
6475
|
};
|
|
6550
6476
|
|
|
6551
6477
|
const SpeedDialIcon = (props) => {
|
|
@@ -6555,79 +6481,72 @@ const SpeedDialIcon = (props) => {
|
|
|
6555
6481
|
className && cssClasses.push(className);
|
|
6556
6482
|
return cssClasses.filter(css => css).join(' ');
|
|
6557
6483
|
};
|
|
6558
|
-
return (
|
|
6484
|
+
return (jsxRuntime.jsx(Icon, { className: getCssClasses(), ...rest, children: children }));
|
|
6559
6485
|
};
|
|
6560
6486
|
|
|
6561
|
-
var css_248z$
|
|
6562
|
-
var styles$
|
|
6563
|
-
styleInject(css_248z$
|
|
6487
|
+
var css_248z$b = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
|
|
6488
|
+
var styles$b = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
|
|
6489
|
+
styleInject(css_248z$b);
|
|
6564
6490
|
|
|
6565
6491
|
const StepperActions = (props) => {
|
|
6566
6492
|
const { className, showDoneButton, showResetButton, isCompleted, isFirstStep, isStepOptional, onBack, onSkip, onNext, onReset } = props;
|
|
6567
6493
|
const getCssClasses = () => {
|
|
6568
6494
|
const cssClasses = [];
|
|
6569
|
-
cssClasses.push(styles$
|
|
6495
|
+
cssClasses.push(styles$b.stepperActions);
|
|
6570
6496
|
className && cssClasses.push(className);
|
|
6571
6497
|
return cssClasses.filter(css => css).join(' ');
|
|
6572
6498
|
};
|
|
6573
|
-
return (
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
isCompleted && showResetButton && (React__default["default"].createElement(Button, { color: exports.COLOR.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset() }, "Reset")),
|
|
6578
|
-
isStepOptional && (React__default["default"].createElement(Button, { variant: exports.VARIANT.contained, color: exports.COLOR.primary, onClick: () => onSkip && onSkip() }, "Skip")),
|
|
6579
|
-
!isCompleted &&
|
|
6580
|
-
React__default["default"].createElement(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, endIcon: React__default["default"].createElement(ChevronRightSolidIcon, null), onClick: () => onNext && onNext() }, "Next"),
|
|
6581
|
-
isCompleted && showDoneButton &&
|
|
6582
|
-
React__default["default"].createElement(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, startIcon: React__default["default"].createElement(CheckSolidIcon, null), onClick: () => onNext && onNext() }, "Done"))));
|
|
6499
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6500
|
+
jsxRuntime.jsx(Button, { className: "mr-2", variant: exports.VARIANT.outline, startIcon: jsxRuntime.jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" }), jsxRuntime.jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsxRuntime.jsx(Button, { color: exports.COLOR.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsxRuntime.jsx(Button, { variant: exports.VARIANT.contained, color: exports.COLOR.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted &&
|
|
6501
|
+
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, endIcon: jsxRuntime.jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
|
|
6502
|
+
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, startIcon: jsxRuntime.jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6583
6503
|
};
|
|
6584
6504
|
|
|
6585
6505
|
const StepPanel = (props) => {
|
|
6586
6506
|
const { children } = props;
|
|
6587
|
-
return (
|
|
6507
|
+
return (jsxRuntime.jsx("div", { className: "steppanel", children: children }));
|
|
6588
6508
|
};
|
|
6589
6509
|
|
|
6590
|
-
var css_248z$
|
|
6591
|
-
var styles$
|
|
6592
|
-
styleInject(css_248z$
|
|
6510
|
+
var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
|
|
6511
|
+
var styles$a = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
|
|
6512
|
+
styleInject(css_248z$a);
|
|
6593
6513
|
|
|
6594
6514
|
const StepConnector = (props) => {
|
|
6595
6515
|
const { isActive, isHorizontal = true } = props;
|
|
6596
6516
|
const getCssClassesConnector = () => {
|
|
6597
6517
|
const cssClasses = [];
|
|
6598
|
-
cssClasses.push(styles$
|
|
6518
|
+
cssClasses.push(styles$a.stepConnector);
|
|
6599
6519
|
return cssClasses.filter(css => css).join(' ');
|
|
6600
6520
|
};
|
|
6601
6521
|
const getCssClassesLine = () => {
|
|
6602
6522
|
const cssClasses = [];
|
|
6603
|
-
cssClasses.push(styles$
|
|
6604
|
-
isActive && cssClasses.push(styles$
|
|
6605
|
-
isHorizontal && cssClasses.push(styles$
|
|
6523
|
+
cssClasses.push(styles$a.stepConnectorLine);
|
|
6524
|
+
isActive && cssClasses.push(styles$a['isActive']);
|
|
6525
|
+
isHorizontal && cssClasses.push(styles$a.stepConnectorLineHorizontal);
|
|
6606
6526
|
return cssClasses.filter(css => css).join(' ');
|
|
6607
6527
|
};
|
|
6608
|
-
return (
|
|
6609
|
-
React__default["default"].createElement("div", { className: getCssClassesLine() })));
|
|
6528
|
+
return (jsxRuntime.jsx("div", { className: getCssClassesConnector(), children: jsxRuntime.jsx("div", { className: getCssClassesLine() }) }));
|
|
6610
6529
|
};
|
|
6611
6530
|
|
|
6612
|
-
var css_248z$
|
|
6613
|
-
var styles$
|
|
6614
|
-
styleInject(css_248z$
|
|
6531
|
+
var css_248z$9 = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px;\n}\n.Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto;\n}";
|
|
6532
|
+
var styles$9 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
|
|
6533
|
+
styleInject(css_248z$9);
|
|
6615
6534
|
|
|
6616
|
-
var css_248z$
|
|
6617
|
-
var styles$
|
|
6618
|
-
styleInject(css_248z$
|
|
6535
|
+
var css_248z$8 = ".Dot-module_dot__w59yb {\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n margin: 0px 2px;\n background-color: var(--secondary);\n}\n.Dot-module_dot__w59yb.Dot-module_isActive__V74RJ {\n background-color: var(--primary);\n}";
|
|
6536
|
+
var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
|
|
6537
|
+
styleInject(css_248z$8);
|
|
6619
6538
|
|
|
6620
6539
|
const Dot = (props) => {
|
|
6621
6540
|
const { className, color = exports.COLOR.primary, isActive, ...rest } = props;
|
|
6622
6541
|
const getCssClasses = () => {
|
|
6623
6542
|
const cssClasses = [];
|
|
6624
|
-
cssClasses.push(styles$
|
|
6625
|
-
cssClasses.push(styles$
|
|
6626
|
-
isActive && cssClasses.push(styles$
|
|
6543
|
+
cssClasses.push(styles$8.dot);
|
|
6544
|
+
cssClasses.push(styles$8[color]);
|
|
6545
|
+
isActive && cssClasses.push(styles$8.isActive);
|
|
6627
6546
|
className && cssClasses.push(className);
|
|
6628
6547
|
return cssClasses.filter(css => css).join(' ');
|
|
6629
6548
|
};
|
|
6630
|
-
return (
|
|
6549
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6631
6550
|
};
|
|
6632
6551
|
|
|
6633
6552
|
const Stepper = (props) => {
|
|
@@ -6659,16 +6578,16 @@ const Stepper = (props) => {
|
|
|
6659
6578
|
setActiveIndex(index);
|
|
6660
6579
|
};
|
|
6661
6580
|
const renderSteps = (child, index) => {
|
|
6662
|
-
return (
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6581
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: React__default["default"].isValidElement(child) &&
|
|
6582
|
+
React.cloneElement(child, {
|
|
6583
|
+
index: index,
|
|
6584
|
+
isActive: activeIndex >= index,
|
|
6585
|
+
isDone: activeIndex > index,
|
|
6586
|
+
isDisabled: isLinear && (activeIndex + 1 < index),
|
|
6587
|
+
showLabel: showLabel,
|
|
6588
|
+
showProgressCheckIcon: showProgressCheckIcon,
|
|
6589
|
+
onClick: () => handleClickStep(index)
|
|
6590
|
+
}) }));
|
|
6672
6591
|
};
|
|
6673
6592
|
const isStepOptional = (index) => {
|
|
6674
6593
|
return steps && steps[index].props.isOptional;
|
|
@@ -6712,46 +6631,40 @@ const Stepper = (props) => {
|
|
|
6712
6631
|
};
|
|
6713
6632
|
const getCssClasses = () => {
|
|
6714
6633
|
const cssClasses = [];
|
|
6715
|
-
cssClasses.push(styles$
|
|
6716
|
-
isHorizontal && cssClasses.push(styles$
|
|
6634
|
+
cssClasses.push(styles$9.stepper);
|
|
6635
|
+
isHorizontal && cssClasses.push(styles$9['isHorizontal']);
|
|
6717
6636
|
return cssClasses.filter(css => css).join(' ');
|
|
6718
6637
|
};
|
|
6719
|
-
return (
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
React__default["default"].createElement("div", { className: 'd-flex mt-2 align-items-center justify-content-center' }, steps.map((step, index) => React__default["default"].createElement(Dot, { key: index, isActive: activeIndex >= index }))))));
|
|
6730
|
-
};
|
|
6731
|
-
|
|
6732
|
-
var css_248z$b = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
|
|
6733
|
-
var styles$b = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6734
|
-
styleInject(css_248z$b);
|
|
6638
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: steps &&
|
|
6639
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showSteps &&
|
|
6640
|
+
jsxRuntime.jsx("div", { className: getCssClasses(), children: steps.map((child, index) => (jsxRuntime.jsxs(React.Fragment, { children: [renderSteps(child, index), index !== steps.length - 1 && jsxRuntime.jsx(StepConnector, { isActive: activeIndex > index })] }, child.props.value))) }), steps && steps.map((step, index) => jsxRuntime.jsx(React.Fragment, { children: index === activeIndex &&
|
|
6641
|
+
jsxRuntime.jsx(StepPanel, { children: step.props.children }) }, step.props.value)), jsxRuntime.jsx(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset, showDoneButton: showDoneButton, showResetButton: showResetButton }), steps && showDots &&
|
|
6642
|
+
jsxRuntime.jsx("div", { className: 'd-flex mt-2 align-items-center justify-content-center', children: steps.map((step, index) => jsxRuntime.jsx(Dot, { isActive: activeIndex >= index }, index)) })] }) }));
|
|
6643
|
+
};
|
|
6644
|
+
|
|
6645
|
+
var css_248z$7 = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
|
|
6646
|
+
var styles$7 = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6647
|
+
styleInject(css_248z$7);
|
|
6735
6648
|
|
|
6736
6649
|
const Wrapper = (props) => {
|
|
6737
6650
|
const { as = 'span', wrap, children, className, ...rest } = props;
|
|
6738
6651
|
const getCssClasses = () => {
|
|
6739
6652
|
const cssClasses = [];
|
|
6740
|
-
cssClasses.push(styles$
|
|
6741
|
-
cssClasses.push(styles$
|
|
6742
|
-
wrap && cssClasses.push(styles$
|
|
6653
|
+
cssClasses.push(styles$7.typography);
|
|
6654
|
+
cssClasses.push(styles$7.as);
|
|
6655
|
+
wrap && cssClasses.push(styles$7.wrap);
|
|
6743
6656
|
className && cssClasses.push(className);
|
|
6744
6657
|
return cssClasses.filter(css => css).join(' ');
|
|
6745
6658
|
};
|
|
6746
6659
|
return React__default["default"].createElement(as, { ...rest, className: getCssClasses() }, children);
|
|
6747
6660
|
};
|
|
6748
6661
|
const Typography = ({ children, as = 'span', wrap, ...rest }) => {
|
|
6749
|
-
return (
|
|
6662
|
+
return (jsxRuntime.jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
|
|
6750
6663
|
};
|
|
6751
6664
|
|
|
6752
|
-
var css_248z$
|
|
6753
|
-
var styles$
|
|
6754
|
-
styleInject(css_248z$
|
|
6665
|
+
var css_248z$6 = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius);\n}\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n}\n.Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important;\n}\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px;\n}\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text);\n}\n.Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text);\n}";
|
|
6666
|
+
var styles$6 = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
|
|
6667
|
+
styleInject(css_248z$6);
|
|
6755
6668
|
|
|
6756
6669
|
const Step = (props) => {
|
|
6757
6670
|
const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
|
|
@@ -6763,98 +6676,31 @@ const Step = (props) => {
|
|
|
6763
6676
|
};
|
|
6764
6677
|
const getCssClasses = () => {
|
|
6765
6678
|
const cssClasses = [];
|
|
6766
|
-
cssClasses.push(styles$
|
|
6767
|
-
label && showLabel && cssClasses.push(styles$
|
|
6768
|
-
isDisabled && cssClasses.push(styles$
|
|
6679
|
+
cssClasses.push(styles$6.stepWrapper);
|
|
6680
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6681
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6769
6682
|
className && cssClasses.push(className);
|
|
6770
6683
|
return cssClasses.filter(css => css).join(' ');
|
|
6771
6684
|
};
|
|
6772
6685
|
const getCssClassesStep = () => {
|
|
6773
6686
|
const cssClasses = [];
|
|
6774
|
-
cssClasses.push(styles$
|
|
6775
|
-
label && showLabel && cssClasses.push(styles$
|
|
6776
|
-
isDisabled && cssClasses.push(styles$
|
|
6687
|
+
cssClasses.push(styles$6.step);
|
|
6688
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6689
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6777
6690
|
return cssClasses.filter(css => css).join(' ');
|
|
6778
6691
|
};
|
|
6779
6692
|
const getCssClassesStepValue = () => {
|
|
6780
6693
|
const cssClasses = [];
|
|
6781
|
-
cssClasses.push(styles$
|
|
6694
|
+
cssClasses.push(styles$6.stepValue);
|
|
6782
6695
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6783
|
-
isActive && cssClasses.push(styles$
|
|
6696
|
+
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6784
6697
|
return cssClasses.filter(css => css).join(' ');
|
|
6785
6698
|
};
|
|
6786
|
-
return (
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
React__default["default"].createElement(Icon, null,
|
|
6792
|
-
React__default["default"].createElement(CheckSolidIcon, null))
|
|
6793
|
-
:
|
|
6794
|
-
React__default["default"].createElement(Typography, null, index + 1))),
|
|
6795
|
-
label && showLabel &&
|
|
6796
|
-
React__default["default"].createElement(Typography, { className: "flex-shrink-0" }, label)));
|
|
6797
|
-
};
|
|
6798
|
-
|
|
6799
|
-
var css_248z$9 = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6800
|
-
var styles$9 = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6801
|
-
styleInject(css_248z$9);
|
|
6802
|
-
|
|
6803
|
-
const SkeletonAvatar = (props) => {
|
|
6804
|
-
const { className, ...rest } = props;
|
|
6805
|
-
const getCssClasses = () => {
|
|
6806
|
-
const cssClasses = [];
|
|
6807
|
-
cssClasses.push(styles$9.skeletonAvatar);
|
|
6808
|
-
className && cssClasses.push(className);
|
|
6809
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6810
|
-
};
|
|
6811
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6812
|
-
};
|
|
6813
|
-
|
|
6814
|
-
var css_248z$8 = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6815
|
-
var styles$8 = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6816
|
-
styleInject(css_248z$8);
|
|
6817
|
-
|
|
6818
|
-
const SkeletonText = (props) => {
|
|
6819
|
-
const { className, ...rest } = props;
|
|
6820
|
-
const getCssClasses = () => {
|
|
6821
|
-
const cssClasses = [];
|
|
6822
|
-
cssClasses.push(styles$8.skeletonText);
|
|
6823
|
-
className && cssClasses.push(className);
|
|
6824
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6825
|
-
};
|
|
6826
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6827
|
-
};
|
|
6828
|
-
|
|
6829
|
-
var css_248z$7 = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6830
|
-
var styles$7 = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6831
|
-
styleInject(css_248z$7);
|
|
6832
|
-
|
|
6833
|
-
const SkeletonFooter = (props) => {
|
|
6834
|
-
const { className, ...rest } = props;
|
|
6835
|
-
const getCssClasses = () => {
|
|
6836
|
-
const cssClasses = [];
|
|
6837
|
-
cssClasses.push(styles$7.skeletonFooter);
|
|
6838
|
-
className && cssClasses.push(className);
|
|
6839
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6840
|
-
};
|
|
6841
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6842
|
-
};
|
|
6843
|
-
|
|
6844
|
-
var css_248z$6 = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6845
|
-
var styles$6 = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6846
|
-
styleInject(css_248z$6);
|
|
6847
|
-
|
|
6848
|
-
const SkeletonImage = (props) => {
|
|
6849
|
-
const { className, ...rest } = props;
|
|
6850
|
-
const getCssClasses = () => {
|
|
6851
|
-
const cssClasses = [];
|
|
6852
|
-
cssClasses.push(styles$6.skeletonImage);
|
|
6853
|
-
className && cssClasses.push(className);
|
|
6854
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6855
|
-
};
|
|
6856
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest },
|
|
6857
|
-
React__default["default"].createElement("div", { className: styles$6.img })));
|
|
6699
|
+
return (jsxRuntime.jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxRuntime.jsxs("div", { className: getCssClassesStep(), children: [jsxRuntime.jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? exports.COLOR.primary : exports.COLOR.secondary, children: jsxRuntime.jsx(CircleSolidIcon, {}) }), jsxRuntime.jsx("div", { className: getCssClassesStepValue(), children: showProgressCheckIcon && isActive && isDone ?
|
|
6700
|
+
jsxRuntime.jsx(Icon, { children: jsxRuntime.jsx(CheckSolidIcon, {}) })
|
|
6701
|
+
:
|
|
6702
|
+
jsxRuntime.jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6703
|
+
jsxRuntime.jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6858
6704
|
};
|
|
6859
6705
|
|
|
6860
6706
|
var css_248z$5 = ":root {\n --table-bg: transparent;\n --table-accent-bg: transparent;\n --table-striped-color: #212529;\n --table-striped-bg: rgba(0, 0, 0, 0.05);\n --table-active-color: #212529;\n --table-active-bg: rgba(0, 0, 0, 0.1);\n --table-hover-color: #212529;\n --table-hover-bg: rgba(0, 0, 0, 0.075);\n}\n\n.Table-module_tableResponsive__ykttB {\n overflow-x: auto;\n}\n\n.Table-module_table__DHKNv {\n display: table;\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0px;\n min-width: 650px;\n}\n.Table-module_table__DHKNv thead {\n display: table-header-group;\n}\n.Table-module_table__DHKNv tbody {\n display: table-row-group;\n}\n.Table-module_table__DHKNv tr {\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0px;\n}\n.Table-module_table__DHKNv th {\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n text-align: left;\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n border-collapse: collapse;\n border-spacing: 0px;\n}\n.Table-module_table__DHKNv td {\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n flex-direction: row-reverse;\n}\n\n.Table-module_hover__P6r3y > tbody > tr:hover > * {\n background-color: var(--table-hover-bg);\n color: var(--table-hover-color);\n}";
|
|
@@ -6872,13 +6718,12 @@ const Table = (props) => {
|
|
|
6872
6718
|
className && cssClasses.push(className);
|
|
6873
6719
|
return cssClasses.filter(css => css).join(' ');
|
|
6874
6720
|
};
|
|
6875
|
-
return (
|
|
6876
|
-
React__default["default"].createElement("table", { className: getCssClasses(), ...rest }, children)));
|
|
6721
|
+
return (jsxRuntime.jsx(ConditionalWrapper, { condition: responsive, wrapper: (children) => jsxRuntime.jsx("div", { className: styles$5.tableResponsive, children: children }), children: jsxRuntime.jsx("table", { className: getCssClasses(), ...rest, children: children }) }));
|
|
6877
6722
|
};
|
|
6878
6723
|
|
|
6879
6724
|
const TableRow = (props) => {
|
|
6880
6725
|
const { children, ...rest } = props;
|
|
6881
|
-
return (
|
|
6726
|
+
return (jsxRuntime.jsx("tr", { ...rest, children: children }));
|
|
6882
6727
|
};
|
|
6883
6728
|
|
|
6884
6729
|
const TableContext = React.createContext({
|
|
@@ -6888,21 +6733,19 @@ const useTableContext = () => React.useContext(TableContext);
|
|
|
6888
6733
|
|
|
6889
6734
|
const TableHead = (props) => {
|
|
6890
6735
|
const { children, ...rest } = props;
|
|
6891
|
-
return (
|
|
6892
|
-
React__default["default"].createElement("thead", { ...rest }, children)));
|
|
6736
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'head' }, children: jsxRuntime.jsx("thead", { ...rest, children: children }) }));
|
|
6893
6737
|
};
|
|
6894
6738
|
|
|
6895
6739
|
const TableBody = (props) => {
|
|
6896
6740
|
const { children, ...rest } = props;
|
|
6897
|
-
return (
|
|
6898
|
-
React__default["default"].createElement("tbody", { ...rest }, children)));
|
|
6741
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'body' }, children: jsxRuntime.jsx("tbody", { ...rest, children: children }) }));
|
|
6899
6742
|
};
|
|
6900
6743
|
|
|
6901
6744
|
const TableCell = (props) => {
|
|
6902
6745
|
const { variant } = useTableContext();
|
|
6903
6746
|
const { children, component, ...rest } = props;
|
|
6904
|
-
return (
|
|
6905
|
-
|
|
6747
|
+
return (jsxRuntime.jsx(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (jsxRuntime.jsx("th", { ...rest, children: children })) :
|
|
6748
|
+
jsxRuntime.jsx("td", { ...rest, children: children })), children: children }));
|
|
6906
6749
|
};
|
|
6907
6750
|
|
|
6908
6751
|
const TabContext = React.createContext({});
|
|
@@ -6920,7 +6763,7 @@ const TabIndicator = (props) => {
|
|
|
6920
6763
|
cssClasses.push(styles$4[color]);
|
|
6921
6764
|
return cssClasses.filter(css => css).join(' ');
|
|
6922
6765
|
};
|
|
6923
|
-
return (
|
|
6766
|
+
return (jsxRuntime.jsx("span", { className: getCssClasses(), style: {
|
|
6924
6767
|
width: width,
|
|
6925
6768
|
left: `calc(calc(100% / ${amount}) * ${index})`
|
|
6926
6769
|
} }));
|
|
@@ -6962,12 +6805,8 @@ const Tabs = (props) => {
|
|
|
6962
6805
|
className && cssClasses.push(className);
|
|
6963
6806
|
return cssClasses.filter(css => css).join(' ');
|
|
6964
6807
|
};
|
|
6965
|
-
return (
|
|
6966
|
-
|
|
6967
|
-
React__default["default"].createElement("div", { className: getCssClasses() },
|
|
6968
|
-
children,
|
|
6969
|
-
children &&
|
|
6970
|
-
React__default["default"].createElement(TabIndicator, { color: indicatorColor, width: (100 / React__default["default"].Children.toArray(children).length) + '%', index: selectedIndex, amount: React__default["default"].Children.toArray(children).length })))));
|
|
6808
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.light }, children: jsxRuntime.jsx(TabContext.Provider, { value: tabContext, children: jsxRuntime.jsxs("div", { className: getCssClasses(), children: [children, children &&
|
|
6809
|
+
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 / React__default["default"].Children.toArray(children).length) + '%', index: selectedIndex, amount: React__default["default"].Children.toArray(children).length })] }) }) }));
|
|
6971
6810
|
};
|
|
6972
6811
|
|
|
6973
6812
|
var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
@@ -6987,12 +6826,12 @@ const Tab = (props) => {
|
|
|
6987
6826
|
onClick && onClick({ event: event, value: value });
|
|
6988
6827
|
setSelectedValue && setSelectedValue(value);
|
|
6989
6828
|
};
|
|
6990
|
-
return (
|
|
6829
|
+
return (jsxRuntime.jsx(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled, children: label }));
|
|
6991
6830
|
};
|
|
6992
6831
|
|
|
6993
6832
|
const TabPanel = (props) => {
|
|
6994
6833
|
const { children, value, index, ...rest } = props;
|
|
6995
|
-
return (
|
|
6834
|
+
return (jsxRuntime.jsx("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest, children: value === index && children }));
|
|
6996
6835
|
};
|
|
6997
6836
|
|
|
6998
6837
|
const HourSelect = (props) => {
|
|
@@ -7015,7 +6854,7 @@ const HourSelect = (props) => {
|
|
|
7015
6854
|
setNewValue(e);
|
|
7016
6855
|
onChange && onChange(e);
|
|
7017
6856
|
};
|
|
7018
|
-
return (
|
|
6857
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7019
6858
|
};
|
|
7020
6859
|
|
|
7021
6860
|
const MilliSecondSelect = (props) => {
|
|
@@ -7038,7 +6877,7 @@ const MilliSecondSelect = (props) => {
|
|
|
7038
6877
|
setNewValue(e);
|
|
7039
6878
|
onChange && onChange(e);
|
|
7040
6879
|
};
|
|
7041
|
-
return (
|
|
6880
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7042
6881
|
};
|
|
7043
6882
|
|
|
7044
6883
|
const MinuteSelect = (props) => {
|
|
@@ -7061,7 +6900,7 @@ const MinuteSelect = (props) => {
|
|
|
7061
6900
|
setNewValue(e);
|
|
7062
6901
|
onChange && onChange(e);
|
|
7063
6902
|
};
|
|
7064
|
-
return (
|
|
6903
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7065
6904
|
};
|
|
7066
6905
|
|
|
7067
6906
|
const SecondSelect = (props) => {
|
|
@@ -7084,7 +6923,7 @@ const SecondSelect = (props) => {
|
|
|
7084
6923
|
setNewValue(e);
|
|
7085
6924
|
onChange && onChange(e);
|
|
7086
6925
|
};
|
|
7087
|
-
return (
|
|
6926
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7088
6927
|
};
|
|
7089
6928
|
|
|
7090
6929
|
exports.TIMEMODE = void 0;
|
|
@@ -7115,23 +6954,11 @@ const TimeSelect = (props) => {
|
|
|
7115
6954
|
setCurrDate(newDate);
|
|
7116
6955
|
onChange && onChange(newDate);
|
|
7117
6956
|
};
|
|
7118
|
-
return (
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
showMinutes &&
|
|
7124
|
-
React__default["default"].createElement(Column, null,
|
|
7125
|
-
React__default["default"].createElement(FormLabel, null, "Minutes"),
|
|
7126
|
-
React__default["default"].createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })),
|
|
7127
|
-
showSeconds &&
|
|
7128
|
-
React__default["default"].createElement(Column, null,
|
|
7129
|
-
React__default["default"].createElement(FormLabel, null, "Seconds"),
|
|
7130
|
-
React__default["default"].createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })),
|
|
7131
|
-
showMilliSeconds &&
|
|
7132
|
-
React__default["default"].createElement(Column, null,
|
|
7133
|
-
React__default["default"].createElement(FormLabel, null, "Milliseconds"),
|
|
7134
|
-
React__default["default"].createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) }))));
|
|
6957
|
+
return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [showHours &&
|
|
6958
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Hours" }), jsxRuntime.jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.HOUR) })] }), showMinutes &&
|
|
6959
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Minutes" }), jsxRuntime.jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })] }), showSeconds &&
|
|
6960
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Seconds" }), jsxRuntime.jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })] }), showMilliSeconds &&
|
|
6961
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Milliseconds" }), jsxRuntime.jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) })] })] }));
|
|
7135
6962
|
};
|
|
7136
6963
|
|
|
7137
6964
|
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
|
|
@@ -7146,7 +6973,7 @@ const TreeView = (props) => {
|
|
|
7146
6973
|
className && cssClasses.push(className);
|
|
7147
6974
|
return cssClasses.filter(css => css).join(' ');
|
|
7148
6975
|
};
|
|
7149
|
-
return (
|
|
6976
|
+
return (jsxRuntime.jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
7150
6977
|
};
|
|
7151
6978
|
|
|
7152
6979
|
var css_248z = ".TreeItem-module_treeItem__Mxsjr {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center;\n}";
|
|
@@ -7183,14 +7010,9 @@ const TreeItem = (props) => {
|
|
|
7183
7010
|
setIsSelected(!_isSelected);
|
|
7184
7011
|
onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
|
|
7185
7012
|
};
|
|
7186
|
-
return (
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
React__default["default"].createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React__default["default"].createElement(ChevronRightSolidIcon, null) : React__default["default"].createElement(ChevronDownSolidIcon, null) }),
|
|
7190
|
-
isSelectable && nodeId &&
|
|
7191
|
-
React__default["default"].createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
|
|
7192
|
-
label),
|
|
7193
|
-
children && _isExpanded ? React__default["default"].createElement("ul", null, children) : null));
|
|
7013
|
+
return (jsxRuntime.jsxs("li", { className: getCssClasses(), style: { paddingLeft: `${(TreeViewItemPadding * (children ? 0 : 1))}px` }, children: [jsxRuntime.jsxs("div", { className: "d-flex align-items-center", children: [children && nodeId &&
|
|
7014
|
+
jsxRuntime.jsx(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? jsxRuntime.jsx(ChevronRightSolidIcon, {}) : jsxRuntime.jsx(ChevronDownSolidIcon, {}) }), isSelectable && nodeId &&
|
|
7015
|
+
jsxRuntime.jsx(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }), label] }), children && _isExpanded ? jsxRuntime.jsx("ul", { children: children }) : null] }));
|
|
7194
7016
|
};
|
|
7195
7017
|
|
|
7196
7018
|
exports.Alert = Alert;
|