react-asc 25.5.3 → 25.5.5
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 +1388 -1605
- package/index.es.js.map +1 -0
- package/index.js +1387 -1604
- package/index.js.map +1 -0
- package/{components → lib/components}/Alert/Alert.d.ts +1 -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/vite.config.d.ts +2 -0
- /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/Form.d.ts +0 -0
- /package/{components → lib/components}/Form/FormError.d.ts +0 -0
- /package/{components → lib/components}/Form/FormGroup.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 = {}));
|
|
@@ -91,7 +92,7 @@ const Alert = (props) => {
|
|
|
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
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}";
|
|
@@ -108,7 +109,7 @@ const AppBar = (props) => {
|
|
|
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
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}";
|
|
@@ -123,89 +124,18 @@ const AppBarTitle = (props) => {
|
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const Icon = (props) => {
|
|
134
|
-
const { children, iconColor, className, ...rest } = props;
|
|
135
|
-
const getCssClasses = () => {
|
|
136
|
-
const cssClasses = [];
|
|
137
|
-
cssClasses.push(styles$13.icon);
|
|
138
|
-
iconColor && cssClasses.push(styles$13[iconColor]);
|
|
139
|
-
className && cssClasses.push(className);
|
|
140
|
-
return cssClasses.filter(css => css).join(' ');
|
|
141
|
-
};
|
|
142
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }, children));
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
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}";
|
|
146
|
-
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"};
|
|
147
|
-
styleInject(css_248z$12);
|
|
148
|
-
|
|
149
|
-
const IconButton = (props) => {
|
|
150
|
-
const { children, icon, variant = exports.VARIANT.text, color = exports.COLOR.dark, size = exports.SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
151
|
-
const getCssClasses = () => {
|
|
152
|
-
const cssClasses = [];
|
|
153
|
-
cssClasses.push(styles$12[color]);
|
|
154
|
-
cssClasses.push(styles$12[variant]);
|
|
155
|
-
cssClasses.push(styles$12[size]);
|
|
156
|
-
cssClasses.push(styles$12.iconButton);
|
|
157
|
-
isActive && cssClasses.push(styles$12.active);
|
|
158
|
-
disabled && cssClasses.push(styles$12.disabled);
|
|
159
|
-
shadow && cssClasses.push(styles$12.shadow);
|
|
160
|
-
className && cssClasses.push(className);
|
|
161
|
-
return cssClasses.filter(css => css).join(' ');
|
|
162
|
-
};
|
|
163
|
-
return (React__default["default"].createElement("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest },
|
|
164
|
-
icon && React__default["default"].createElement(Icon, null, icon),
|
|
165
|
-
children));
|
|
130
|
+
const useConstructor = (callBack) => {
|
|
131
|
+
React.useEffect(() => {
|
|
132
|
+
callBack();
|
|
133
|
+
}, []);
|
|
166
134
|
};
|
|
167
135
|
|
|
168
|
-
|
|
169
|
-
|
|
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" })));
|
|
173
|
-
|
|
174
|
-
const ChevronDownSolidIcon = () => (React__default["default"].createElement("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" },
|
|
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" })));
|
|
176
|
-
|
|
177
|
-
const ChevronRightSolidIcon = () => (React__default["default"].createElement("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" },
|
|
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" })));
|
|
179
|
-
|
|
180
|
-
const ChevronUpSolidIcon = () => (React__default["default"].createElement("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" },
|
|
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" })));
|
|
182
|
-
|
|
183
|
-
const HomeSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512" },
|
|
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" })));
|
|
185
|
-
|
|
186
|
-
const SquareRegularIcon = () => (React__default["default"].createElement("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" },
|
|
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" })));
|
|
188
|
-
|
|
189
|
-
const TimesCircleSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
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" })));
|
|
191
|
-
|
|
192
|
-
const TimesSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512" },
|
|
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" })));
|
|
194
|
-
|
|
195
|
-
const SpinnerSolidIcon = () => (React__default["default"].createElement("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" },
|
|
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" })));
|
|
197
|
-
|
|
198
|
-
const PlusSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" },
|
|
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" })));
|
|
200
|
-
|
|
201
|
-
const CheckSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
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" })));
|
|
203
|
-
|
|
204
|
-
const CircleSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
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" })));
|
|
206
|
-
|
|
207
|
-
const ChevronLeftSolidIcon = () => (React__default["default"].createElement("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" },
|
|
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" })));
|
|
136
|
+
function useCssClasses(cssClasses) {
|
|
137
|
+
return [cssClasses?.filter(css => css).join(' ') || ''];
|
|
138
|
+
}
|
|
209
139
|
|
|
210
140
|
function useDebounce(callback, timeout, deps) {
|
|
211
141
|
const timeoutId = React.useRef();
|
|
@@ -216,16 +146,6 @@ function useDebounce(callback, timeout, deps) {
|
|
|
216
146
|
}, deps);
|
|
217
147
|
}
|
|
218
148
|
|
|
219
|
-
const useConstructor = (callBack) => {
|
|
220
|
-
React.useEffect(() => {
|
|
221
|
-
callBack();
|
|
222
|
-
}, []);
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
function useCssClasses(cssClasses) {
|
|
226
|
-
return [cssClasses?.filter(css => css).join(' ') || ''];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
149
|
function useHover() {
|
|
230
150
|
const [value, setValue] = React.useState(false);
|
|
231
151
|
const ref = React.useRef(null);
|
|
@@ -289,6 +209,34 @@ const useOnDestroy = (callBack) => {
|
|
|
289
209
|
}, []);
|
|
290
210
|
};
|
|
291
211
|
|
|
212
|
+
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" }) }));
|
|
213
|
+
|
|
214
|
+
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" }) }));
|
|
215
|
+
|
|
216
|
+
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" }) }));
|
|
217
|
+
|
|
218
|
+
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" }) }));
|
|
219
|
+
|
|
220
|
+
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" }) }));
|
|
221
|
+
|
|
222
|
+
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" }) }));
|
|
223
|
+
|
|
224
|
+
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" }) }));
|
|
225
|
+
|
|
226
|
+
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" }) }));
|
|
227
|
+
|
|
228
|
+
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" }) }));
|
|
229
|
+
|
|
230
|
+
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" }) }));
|
|
231
|
+
|
|
232
|
+
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" }) }));
|
|
233
|
+
|
|
234
|
+
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" }) }));
|
|
235
|
+
|
|
236
|
+
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" }) }));
|
|
237
|
+
|
|
238
|
+
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" }) }));
|
|
239
|
+
|
|
292
240
|
const Portal$1 = ({ children, target = document.body, className }) => {
|
|
293
241
|
const containerEl = React.useMemo(() => document.createElement('div'), []);
|
|
294
242
|
React.useEffect(() => {
|
|
@@ -301,9 +249,9 @@ const Portal$1 = ({ children, target = document.body, className }) => {
|
|
|
301
249
|
return reactDom.createPortal(children, containerEl);
|
|
302
250
|
};
|
|
303
251
|
|
|
304
|
-
var css_248z$
|
|
305
|
-
var styles$
|
|
306
|
-
styleInject(css_248z$
|
|
252
|
+
var css_248z$13 = ".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}";
|
|
253
|
+
var styles$13 = {"backdrop":"Backdrop-module_backdrop__IRMoL","isTransparent":"Backdrop-module_isTransparent__F5nA5"};
|
|
254
|
+
styleInject(css_248z$13);
|
|
307
255
|
|
|
308
256
|
const Backdrop = (props) => {
|
|
309
257
|
const { target = document.body, isTransparent = false, onClick, style, ...rest } = props;
|
|
@@ -313,15 +261,51 @@ const Backdrop = (props) => {
|
|
|
313
261
|
};
|
|
314
262
|
const getCssClasses = () => {
|
|
315
263
|
const cssClasses = [];
|
|
316
|
-
cssClasses.push(styles$
|
|
317
|
-
isTransparent && cssClasses.push(styles$
|
|
264
|
+
cssClasses.push(styles$13.backdrop);
|
|
265
|
+
isTransparent && cssClasses.push(styles$13['isTransparent']);
|
|
318
266
|
return cssClasses.filter(css => css).join(' ');
|
|
319
267
|
};
|
|
320
268
|
const getStyles = () => {
|
|
321
269
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
322
270
|
};
|
|
323
|
-
return (
|
|
324
|
-
|
|
271
|
+
return (jsxRuntime.jsx(Portal$1, { className: "backdrop-root", target: target, children: jsxRuntime.jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
var css_248z$12 = ".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}";
|
|
275
|
+
var styles$12 = {"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"};
|
|
276
|
+
styleInject(css_248z$12);
|
|
277
|
+
|
|
278
|
+
const Icon = (props) => {
|
|
279
|
+
const { children, iconColor, className, ...rest } = props;
|
|
280
|
+
const getCssClasses = () => {
|
|
281
|
+
const cssClasses = [];
|
|
282
|
+
cssClasses.push(styles$12.icon);
|
|
283
|
+
iconColor && cssClasses.push(styles$12[iconColor]);
|
|
284
|
+
className && cssClasses.push(className);
|
|
285
|
+
return cssClasses.filter(css => css).join(' ');
|
|
286
|
+
};
|
|
287
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
var css_248z$11 = ".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}";
|
|
291
|
+
var styles$11 = {"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"};
|
|
292
|
+
styleInject(css_248z$11);
|
|
293
|
+
|
|
294
|
+
const IconButton = (props) => {
|
|
295
|
+
const { children, icon, variant = exports.VARIANT.text, color = exports.COLOR.dark, size = exports.SIZE.md, isActive, disabled, className, shadow, ...rest } = props;
|
|
296
|
+
const getCssClasses = () => {
|
|
297
|
+
const cssClasses = [];
|
|
298
|
+
cssClasses.push(styles$11[color]);
|
|
299
|
+
cssClasses.push(styles$11[variant]);
|
|
300
|
+
cssClasses.push(styles$11[size]);
|
|
301
|
+
cssClasses.push(styles$11.iconButton);
|
|
302
|
+
isActive && cssClasses.push(styles$11.active);
|
|
303
|
+
disabled && cssClasses.push(styles$11.disabled);
|
|
304
|
+
shadow && cssClasses.push(styles$11.shadow);
|
|
305
|
+
className && cssClasses.push(className);
|
|
306
|
+
return cssClasses.filter(css => css).join(' ');
|
|
307
|
+
};
|
|
308
|
+
return (jsxRuntime.jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsxRuntime.jsx(Icon, { children: icon }), children] }));
|
|
325
309
|
};
|
|
326
310
|
|
|
327
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}";
|
|
@@ -337,7 +321,7 @@ const List = (props) => {
|
|
|
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
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}";
|
|
@@ -358,26 +342,26 @@ const ListItem = (props) => {
|
|
|
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
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}";
|
|
365
349
|
var styles$_ = {"avatar":"ListItemAvatar-module_avatar__sVWfR"};
|
|
366
350
|
styleInject(css_248z$_);
|
|
367
351
|
|
|
368
|
-
const ListItemAvatar = ({ avatar, ...rest }) => (
|
|
352
|
+
const ListItemAvatar = ({ avatar, ...rest }) => (jsxRuntime.jsx("div", { className: styles$_.avatar, ...rest, children: avatar }));
|
|
369
353
|
|
|
370
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}";
|
|
371
355
|
var styles$Z = {"icon":"ListItemIcon-module_icon__cCvEv"};
|
|
372
356
|
styleInject(css_248z$Z);
|
|
373
357
|
|
|
374
|
-
const ListItemIcon = ({ icon, ...rest }) => (
|
|
358
|
+
const ListItemIcon = ({ icon, ...rest }) => (jsxRuntime.jsx("div", { className: styles$Z.icon, ...rest, children: icon }));
|
|
375
359
|
|
|
376
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}";
|
|
377
361
|
var styles$Y = {"listItemAction":"ListItemAction-module_listItemAction__gAQRj"};
|
|
378
362
|
styleInject(css_248z$Y);
|
|
379
363
|
|
|
380
|
-
const ListItemAction = ({ children, onClick, ...rest }) => (
|
|
364
|
+
const ListItemAction = ({ children, onClick, ...rest }) => (jsxRuntime.jsx("div", { className: styles$Y.listItemAction, onClick: (e) => onClick && onClick(e), ...rest, children: children }));
|
|
381
365
|
|
|
382
366
|
var css_248z$X = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
383
367
|
var styles$X = {"listItemText":"ListItemTextIcon-module_listItemText__xCBLW"};
|
|
@@ -389,13 +373,11 @@ const ListItemText = ({ primary, secondary, ...rest }) => {
|
|
|
389
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
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}";
|
|
401
383
|
var styles$W = {"selectContainer":"AutoComplete-module_selectContainer__1kA85","select":"AutoComplete-module_select__NNYOi","disabled":"AutoComplete-module_disabled__CbGP4","selectMenu":"AutoComplete-module_selectMenu__Gu81L"};
|
|
@@ -407,7 +389,7 @@ styleInject(css_248z$W);
|
|
|
407
389
|
// multiple
|
|
408
390
|
// custom template render items
|
|
409
391
|
const AutoComplete = (props) => {
|
|
410
|
-
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value } = props;
|
|
392
|
+
const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, showClearButton, onChange, onSelect, value, } = props;
|
|
411
393
|
const [model, setModel] = React.useState('');
|
|
412
394
|
const [searchText, setSearchText] = React.useState('');
|
|
413
395
|
const [isShow, setIsShow] = React.useState(false);
|
|
@@ -471,17 +453,8 @@ const AutoComplete = (props) => {
|
|
|
471
453
|
setModel('');
|
|
472
454
|
setSearchText('');
|
|
473
455
|
};
|
|
474
|
-
return (
|
|
475
|
-
|
|
476
|
-
React__default["default"].createElement("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }),
|
|
477
|
-
showClearButton && model?.length > 0 &&
|
|
478
|
-
React__default["default"].createElement(IconButton, { icon: React__default["default"].createElement(TimesSolidIcon, null), onClick: handleClickReset })),
|
|
479
|
-
isShow &&
|
|
480
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
481
|
-
React__default["default"].createElement("div", { className: styles$W.selectMenu },
|
|
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() }))));
|
|
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 && jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$W.selectMenu, children: jsxRuntime.jsx(List, { children: _options &&
|
|
457
|
+
_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() })] }))] }));
|
|
485
458
|
};
|
|
486
459
|
|
|
487
460
|
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}";
|
|
@@ -490,28 +463,55 @@ styleInject(css_248z$V);
|
|
|
490
463
|
|
|
491
464
|
const Badge = (props) => {
|
|
492
465
|
const { children, content, className, color = exports.COLOR.primary, ...rest } = props;
|
|
493
|
-
const [cssClassName] = useCssClasses([
|
|
494
|
-
|
|
495
|
-
styles$V[color],
|
|
496
|
-
className
|
|
497
|
-
]);
|
|
498
|
-
return (React__default["default"].createElement(BadgeContainer, null,
|
|
499
|
-
children,
|
|
500
|
-
React__default["default"].createElement("span", { className: cssClassName, ...rest }, content)));
|
|
466
|
+
const [cssClassName] = useCssClasses([styles$V.badge, styles$V[color], className]);
|
|
467
|
+
return (jsxRuntime.jsxs(BadgeContainer, { children: [children, jsxRuntime.jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
501
468
|
};
|
|
502
469
|
const BadgeContainer = (props) => {
|
|
503
470
|
const { children, className, ...rest } = props;
|
|
504
|
-
const [cssClassName] = useCssClasses([
|
|
505
|
-
|
|
506
|
-
className,
|
|
507
|
-
]);
|
|
508
|
-
return (React__default["default"].createElement("div", { className: cssClassName, ...rest }, children));
|
|
471
|
+
const [cssClassName] = useCssClasses([styles$V.badgeContainer, className]);
|
|
472
|
+
return (jsxRuntime.jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
509
473
|
};
|
|
510
474
|
|
|
511
|
-
var css_248z$U = ".
|
|
512
|
-
var styles$U = {"
|
|
475
|
+
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}";
|
|
476
|
+
var styles$U = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
513
477
|
styleInject(css_248z$U);
|
|
514
478
|
|
|
479
|
+
const Breadcrumb = (props) => {
|
|
480
|
+
const { children, className, ...rest } = props;
|
|
481
|
+
const getCssClasses = () => {
|
|
482
|
+
const cssClasses = [];
|
|
483
|
+
cssClasses.push(styles$U.breadcrumb);
|
|
484
|
+
className && cssClasses.push(className);
|
|
485
|
+
return cssClasses.filter(css => css).join(' ');
|
|
486
|
+
};
|
|
487
|
+
return (jsxRuntime.jsx("nav", { ...rest, children: jsxRuntime.jsx("ol", { className: getCssClasses(), children: children }) }));
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
491
|
+
|
|
492
|
+
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}";
|
|
493
|
+
var styles$T = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
494
|
+
styleInject(css_248z$T);
|
|
495
|
+
|
|
496
|
+
const BreadcrumbItem = (props) => {
|
|
497
|
+
const { children, className, isActive, onClick } = props;
|
|
498
|
+
const getCssClasses = () => {
|
|
499
|
+
const cssClasses = [];
|
|
500
|
+
cssClasses.push(styles$T.breadcrumbItem);
|
|
501
|
+
className && cssClasses.push(className);
|
|
502
|
+
isActive && cssClasses.push('active');
|
|
503
|
+
return cssClasses.filter(css => css).join(' ');
|
|
504
|
+
};
|
|
505
|
+
const handleClick = (event) => {
|
|
506
|
+
onClick && onClick(event);
|
|
507
|
+
};
|
|
508
|
+
return (jsxRuntime.jsx("li", { className: getCssClasses(), onClick: handleClick, children: jsxRuntime.jsx(ConditionalWrapper, { condition: !isActive, wrapper: (label) => jsxRuntime.jsx("a", { children: label }), children: children }) }));
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
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}";
|
|
512
|
+
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"};
|
|
513
|
+
styleInject(css_248z$S);
|
|
514
|
+
|
|
515
515
|
const ButtonContext = React.createContext({
|
|
516
516
|
color: null
|
|
517
517
|
});
|
|
@@ -522,19 +522,19 @@ const Button = props => {
|
|
|
522
522
|
const buttonContext = useButtonContext();
|
|
523
523
|
const getCssClasses = () => {
|
|
524
524
|
const cssClasses = [];
|
|
525
|
-
cssClasses.push(styles$
|
|
525
|
+
cssClasses.push(styles$S.button);
|
|
526
526
|
const buttonColor = buttonContext.color || color;
|
|
527
527
|
if (variant !== 'outline' && variant !== 'text') {
|
|
528
|
-
cssClasses.push(styles$
|
|
529
|
-
cssClasses.push(styles$
|
|
528
|
+
cssClasses.push(styles$S.btnContained);
|
|
529
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
530
530
|
}
|
|
531
531
|
if (variant === 'outline') {
|
|
532
|
-
cssClasses.push(styles$
|
|
533
|
-
cssClasses.push(styles$
|
|
532
|
+
cssClasses.push(styles$S.btnOutline);
|
|
533
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
534
534
|
}
|
|
535
535
|
if (variant === 'text') {
|
|
536
|
-
cssClasses.push(styles$
|
|
537
|
-
cssClasses.push(styles$
|
|
536
|
+
cssClasses.push(styles$S.btnText);
|
|
537
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
538
538
|
}
|
|
539
539
|
if (isRounded && variant !== 'text') {
|
|
540
540
|
cssClasses.push(`rounded-pill`);
|
|
@@ -542,70 +542,27 @@ const Button = props => {
|
|
|
542
542
|
if (isActive) {
|
|
543
543
|
cssClasses.push('active');
|
|
544
544
|
}
|
|
545
|
-
shadow && cssClasses.push(styles$
|
|
546
|
-
block && cssClasses.push(styles$
|
|
545
|
+
shadow && cssClasses.push(styles$S.shadow);
|
|
546
|
+
block && cssClasses.push(styles$S.block);
|
|
547
547
|
className && cssClasses.push(className);
|
|
548
548
|
return cssClasses.filter(css => css).join(' ');
|
|
549
549
|
};
|
|
550
|
-
return (
|
|
551
|
-
React__default["default"].createElement("span", { className: "d-flex justify-content-center" },
|
|
552
|
-
startIcon && React__default["default"].createElement(Icon, { className: styles$U.startIcon }, startIcon),
|
|
553
|
-
children,
|
|
554
|
-
endIcon && React__default["default"].createElement(Icon, { className: styles$U.endIcon }, endIcon))));
|
|
550
|
+
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 })] }) }));
|
|
555
551
|
};
|
|
556
552
|
|
|
557
|
-
var css_248z$
|
|
558
|
-
var styles$
|
|
559
|
-
styleInject(css_248z$
|
|
553
|
+
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}";
|
|
554
|
+
var styles$R = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
|
|
555
|
+
styleInject(css_248z$R);
|
|
560
556
|
|
|
561
557
|
const ButtonGroup = (props) => {
|
|
562
558
|
const { children, className, color, ...rest } = props;
|
|
563
559
|
const getCssClasses = () => {
|
|
564
560
|
const cssClasses = [];
|
|
565
|
-
cssClasses.push(styles$
|
|
566
|
-
className && cssClasses.push(className);
|
|
567
|
-
return cssClasses.filter(css => css).join(' ');
|
|
568
|
-
};
|
|
569
|
-
return (React__default["default"].createElement(ButtonContext.Provider, { value: { color: color || exports.COLOR.primary } },
|
|
570
|
-
React__default["default"].createElement("div", { className: getCssClasses(), role: "group", ...rest }, children)));
|
|
571
|
-
};
|
|
572
|
-
|
|
573
|
-
var css_248z$S = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
574
|
-
var styles$S = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
575
|
-
styleInject(css_248z$S);
|
|
576
|
-
|
|
577
|
-
const Breadcrumb = (props) => {
|
|
578
|
-
const { children, className, ...rest } = props;
|
|
579
|
-
const getCssClasses = () => {
|
|
580
|
-
const cssClasses = [];
|
|
581
|
-
cssClasses.push(styles$S.breadcrumb);
|
|
582
|
-
className && cssClasses.push(className);
|
|
583
|
-
return cssClasses.filter(css => css).join(' ');
|
|
584
|
-
};
|
|
585
|
-
return (React__default["default"].createElement("nav", { ...rest },
|
|
586
|
-
React__default["default"].createElement("ol", { className: getCssClasses() }, children)));
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
590
|
-
|
|
591
|
-
var css_248z$R = ".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}";
|
|
592
|
-
var styles$R = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
593
|
-
styleInject(css_248z$R);
|
|
594
|
-
|
|
595
|
-
const BreadcrumbItem = (props) => {
|
|
596
|
-
const { children, className, isActive, onClick } = props;
|
|
597
|
-
const getCssClasses = () => {
|
|
598
|
-
const cssClasses = [];
|
|
599
|
-
cssClasses.push(styles$R.breadcrumbItem);
|
|
561
|
+
cssClasses.push(styles$R.buttonGroup);
|
|
600
562
|
className && cssClasses.push(className);
|
|
601
|
-
isActive && cssClasses.push('active');
|
|
602
563
|
return cssClasses.filter(css => css).join(' ');
|
|
603
564
|
};
|
|
604
|
-
|
|
605
|
-
onClick && onClick(event);
|
|
606
|
-
};
|
|
607
|
-
return (React__default["default"].createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
608
|
-
React__default["default"].createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React__default["default"].createElement("a", null, label) }, children)));
|
|
565
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.primary }, children: jsxRuntime.jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
609
566
|
};
|
|
610
567
|
|
|
611
568
|
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}";
|
|
@@ -621,7 +578,7 @@ const Card = (props) => {
|
|
|
621
578
|
className && cssClasses.push(className);
|
|
622
579
|
return cssClasses.filter(css => css).join(' ');
|
|
623
580
|
};
|
|
624
|
-
return (
|
|
581
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
625
582
|
};
|
|
626
583
|
|
|
627
584
|
var css_248z$P = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem;\n}";
|
|
@@ -636,7 +593,7 @@ const CardBody = (props) => {
|
|
|
636
593
|
className && cssClasses.push(className);
|
|
637
594
|
return cssClasses.filter(css => css).join(' ');
|
|
638
595
|
};
|
|
639
|
-
return (
|
|
596
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
640
597
|
};
|
|
641
598
|
|
|
642
599
|
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}";
|
|
@@ -651,7 +608,7 @@ const CardFooter = (props) => {
|
|
|
651
608
|
className && cssClasses.push(className);
|
|
652
609
|
return cssClasses.filter(css => css).join(' ');
|
|
653
610
|
};
|
|
654
|
-
return (
|
|
611
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
655
612
|
};
|
|
656
613
|
|
|
657
614
|
var css_248z$N = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important;\n}";
|
|
@@ -666,7 +623,7 @@ const CardSubtitle = (props) => {
|
|
|
666
623
|
className && cssClasses.push(className);
|
|
667
624
|
return cssClasses.filter(css => css).join(' ');
|
|
668
625
|
};
|
|
669
|
-
return (
|
|
626
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
670
627
|
};
|
|
671
628
|
|
|
672
629
|
var css_248z$M = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0;\n}";
|
|
@@ -681,7 +638,7 @@ const CardText = (props) => {
|
|
|
681
638
|
className && cssClasses.push(className);
|
|
682
639
|
return cssClasses.filter(css => css).join(' ');
|
|
683
640
|
};
|
|
684
|
-
return (
|
|
641
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
685
642
|
};
|
|
686
643
|
|
|
687
644
|
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}";
|
|
@@ -696,7 +653,7 @@ const CardTitle = (props) => {
|
|
|
696
653
|
className && cssClasses.push(className);
|
|
697
654
|
return cssClasses.filter(css => css).join(' ');
|
|
698
655
|
};
|
|
699
|
-
return (
|
|
656
|
+
return (jsxRuntime.jsx(As, { className: getCssClasses(), ...rest, children: children }));
|
|
700
657
|
};
|
|
701
658
|
|
|
702
659
|
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}";
|
|
@@ -711,7 +668,7 @@ const CardImage = (props) => {
|
|
|
711
668
|
className && cssClasses.push(className);
|
|
712
669
|
return cssClasses.filter(css => css).join(' ');
|
|
713
670
|
};
|
|
714
|
-
return (
|
|
671
|
+
return (jsxRuntime.jsx("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
|
|
715
672
|
};
|
|
716
673
|
|
|
717
674
|
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}";
|
|
@@ -734,8 +691,8 @@ const Checkbox = (props) => {
|
|
|
734
691
|
}
|
|
735
692
|
}, [checked]);
|
|
736
693
|
const icons = {
|
|
737
|
-
default:
|
|
738
|
-
selected:
|
|
694
|
+
default: jsxRuntime.jsx(SquareRegularIcon, {}),
|
|
695
|
+
selected: jsxRuntime.jsx(CheckSquareRegularIcon, {})
|
|
739
696
|
};
|
|
740
697
|
const getCssClasses = () => {
|
|
741
698
|
const cssClasses = [];
|
|
@@ -758,10 +715,7 @@ const Checkbox = (props) => {
|
|
|
758
715
|
checkboxElement?.current?.click();
|
|
759
716
|
}
|
|
760
717
|
};
|
|
761
|
-
return (
|
|
762
|
-
React__default["default"].createElement(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }),
|
|
763
|
-
React__default["default"].createElement("label", { onClick: handleClick, className: getCssClassesLabel() }, label),
|
|
764
|
-
React__default["default"].createElement("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })));
|
|
718
|
+
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 })] }));
|
|
765
719
|
};
|
|
766
720
|
|
|
767
721
|
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}";
|
|
@@ -769,7 +723,7 @@ var styles$I = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_delet
|
|
|
769
723
|
styleInject(css_248z$I);
|
|
770
724
|
|
|
771
725
|
const Chip = (props) => {
|
|
772
|
-
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon =
|
|
726
|
+
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = jsxRuntime.jsx(TimesCircleSolidIcon, {}), style, ...rest } = props;
|
|
773
727
|
const getCssClass = () => {
|
|
774
728
|
const cssClasses = [];
|
|
775
729
|
cssClasses.push(styles$I.chip);
|
|
@@ -783,9 +737,7 @@ const Chip = (props) => {
|
|
|
783
737
|
e.stopPropagation();
|
|
784
738
|
onDelete && onDelete(e);
|
|
785
739
|
};
|
|
786
|
-
return (
|
|
787
|
-
React__default["default"].createElement("span", null, children),
|
|
788
|
-
isDeletable && (React__default["default"].createElement("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
|
|
740
|
+
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 }))] }));
|
|
789
741
|
};
|
|
790
742
|
|
|
791
743
|
const CssTransition = (props) => {
|
|
@@ -859,820 +811,154 @@ const CssTransition = (props) => {
|
|
|
859
811
|
cssState?.leaveEnd && cssClasses.push(`${className}-leave-end`);
|
|
860
812
|
return cssClasses.filter((css) => css).join(' ');
|
|
861
813
|
};
|
|
862
|
-
return (
|
|
863
|
-
|
|
814
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isRenderChild &&
|
|
815
|
+
jsxRuntime.jsx("div", { ref: transitionConainter, className: getCssClasses(), children: children }) }));
|
|
864
816
|
};
|
|
865
817
|
|
|
866
|
-
var
|
|
867
|
-
var styles$H = {"column":"Column-module_column__fcTgl"};
|
|
868
|
-
styleInject(css_248z$H);
|
|
818
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
869
819
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
const cssClasses = [];
|
|
874
|
-
cssClasses.push(styles$H.column);
|
|
875
|
-
className && cssClasses.push(className);
|
|
876
|
-
return cssClasses.filter(css => css).join(' ');
|
|
877
|
-
};
|
|
878
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }, children));
|
|
879
|
-
};
|
|
820
|
+
function createCommonjsModule(fn, module) {
|
|
821
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
822
|
+
}
|
|
880
823
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
824
|
+
/** @license React v16.13.1
|
|
825
|
+
* react-is.production.min.js
|
|
826
|
+
*
|
|
827
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
828
|
+
*
|
|
829
|
+
* This source code is licensed under the MIT license found in the
|
|
830
|
+
* LICENSE file in the root directory of this source tree.
|
|
831
|
+
*/
|
|
832
|
+
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?
|
|
833
|
+
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;
|
|
834
|
+
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;
|
|
835
|
+
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};
|
|
836
|
+
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};
|
|
837
|
+
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;
|
|
884
838
|
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
839
|
+
var reactIs_production_min = {
|
|
840
|
+
AsyncMode: AsyncMode,
|
|
841
|
+
ConcurrentMode: ConcurrentMode,
|
|
842
|
+
ContextConsumer: ContextConsumer,
|
|
843
|
+
ContextProvider: ContextProvider,
|
|
844
|
+
Element: Element,
|
|
845
|
+
ForwardRef: ForwardRef,
|
|
846
|
+
Fragment: Fragment,
|
|
847
|
+
Lazy: Lazy,
|
|
848
|
+
Memo: Memo,
|
|
849
|
+
Portal: Portal,
|
|
850
|
+
Profiler: Profiler,
|
|
851
|
+
StrictMode: StrictMode,
|
|
852
|
+
Suspense: Suspense,
|
|
853
|
+
isAsyncMode: isAsyncMode,
|
|
854
|
+
isConcurrentMode: isConcurrentMode,
|
|
855
|
+
isContextConsumer: isContextConsumer,
|
|
856
|
+
isContextProvider: isContextProvider,
|
|
857
|
+
isElement: isElement,
|
|
858
|
+
isForwardRef: isForwardRef,
|
|
859
|
+
isFragment: isFragment,
|
|
860
|
+
isLazy: isLazy,
|
|
861
|
+
isMemo: isMemo,
|
|
862
|
+
isPortal: isPortal,
|
|
863
|
+
isProfiler: isProfiler,
|
|
864
|
+
isStrictMode: isStrictMode,
|
|
865
|
+
isSuspense: isSuspense,
|
|
866
|
+
isValidElementType: isValidElementType,
|
|
867
|
+
typeOf: typeOf
|
|
894
868
|
};
|
|
895
869
|
|
|
896
|
-
var
|
|
897
|
-
var styles$F = {"form":"Form-module_form__h9CkF"};
|
|
898
|
-
styleInject(css_248z$F);
|
|
870
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
899
871
|
|
|
900
|
-
var css_248z$E = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
|
|
901
|
-
var styles$E = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
902
|
-
styleInject(css_248z$E);
|
|
903
872
|
|
|
904
|
-
const FormError = (props) => {
|
|
905
|
-
const { className = styles$E.isInvalid, errors = [] } = props;
|
|
906
|
-
return (React__default["default"].createElement(React.Fragment, null, errors &&
|
|
907
|
-
React__default["default"].createElement("div", { className: className }, errors.map(e => React__default["default"].createElement("div", { key: e.validator }, e.message)))));
|
|
908
|
-
};
|
|
909
873
|
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return React__default["default"].createElement("div", { className: className }, children);
|
|
913
|
-
};
|
|
874
|
+
if (process.env.NODE_ENV !== "production") {
|
|
875
|
+
(function() {
|
|
914
876
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
877
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
878
|
+
// nor polyfill, then a plain number is used for performance.
|
|
879
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
880
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
881
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
882
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
883
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
884
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
885
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
886
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
887
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
924
888
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
const handleOnChange = (event) => {
|
|
937
|
-
const values = event.target.files;
|
|
938
|
-
setFileList(values);
|
|
939
|
-
onChange && onChange(event);
|
|
940
|
-
};
|
|
941
|
-
const handleOnDelete = () => {
|
|
942
|
-
alert('coming soon');
|
|
943
|
-
};
|
|
944
|
-
return (React__default["default"].createElement("div", { className: "d-flex align-items-start" },
|
|
945
|
-
React__default["default"].createElement(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click() }, children),
|
|
946
|
-
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))),
|
|
947
|
-
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 })));
|
|
948
|
-
};
|
|
889
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
890
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
891
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
892
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
893
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
894
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
895
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
896
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
897
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
898
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
899
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
949
900
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
901
|
+
function isValidElementType(type) {
|
|
902
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
903
|
+
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);
|
|
904
|
+
}
|
|
953
905
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
const [hoverIndex, setHoverIndex] = React.useState(null);
|
|
958
|
-
const [isShow, setIsShow] = React.useState(false);
|
|
959
|
-
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
960
|
-
const selectConainter = React.useRef(null);
|
|
961
|
-
const getCssClass = () => {
|
|
962
|
-
const cssClasses = [];
|
|
963
|
-
className && cssClasses.push(className);
|
|
964
|
-
disabled && cssClasses.push(styles$D['disabled']);
|
|
965
|
-
readOnly && cssClasses.push(styles$D['readOnly']);
|
|
966
|
-
cssClasses.push(styles$D.select);
|
|
967
|
-
return cssClasses.filter(r => r).join(' ');
|
|
968
|
-
};
|
|
969
|
-
React.useEffect(() => {
|
|
970
|
-
const newValue = value ? value : '';
|
|
971
|
-
writeValue(newValue);
|
|
972
|
-
if (newValue) {
|
|
973
|
-
const option = options.find(o => o.value === newValue);
|
|
974
|
-
if (option) {
|
|
975
|
-
setHoverIndex(options.indexOf(option));
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}, [value, options]);
|
|
979
|
-
React.useEffect(() => {
|
|
980
|
-
if (hoverIndex) {
|
|
981
|
-
scrollIntoView(hoverIndex);
|
|
982
|
-
}
|
|
983
|
-
}, [hoverIndex, isShow]);
|
|
984
|
-
const scrollIntoView = (index) => {
|
|
985
|
-
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
986
|
-
if (htmlListItem) {
|
|
987
|
-
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
const writeValue = (val) => setModel(val);
|
|
991
|
-
React.useEffect(() => {
|
|
992
|
-
if (!multiple) {
|
|
993
|
-
const newOption = options.find(o => o.value === model);
|
|
994
|
-
if (newOption) {
|
|
995
|
-
setSelectedOptions([newOption]);
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
999
|
-
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
1000
|
-
setSelectedOptions([...filteredOptions]);
|
|
1001
|
-
}
|
|
1002
|
-
}, [model, multiple]);
|
|
1003
|
-
const handleOnClick = (option) => {
|
|
1004
|
-
let newValue = multiple ? [] : '';
|
|
1005
|
-
if (!multiple) {
|
|
1006
|
-
if (model !== option.value) {
|
|
1007
|
-
newValue = option.value;
|
|
1008
|
-
onChange && onChange(newValue);
|
|
1009
|
-
}
|
|
1010
|
-
hide();
|
|
1011
|
-
}
|
|
1012
|
-
else {
|
|
1013
|
-
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
1014
|
-
if (selectedOption) {
|
|
1015
|
-
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
1016
|
-
}
|
|
1017
|
-
else {
|
|
1018
|
-
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
1019
|
-
newValue.push(option.value);
|
|
1020
|
-
}
|
|
1021
|
-
onChange && onChange(newValue);
|
|
1022
|
-
}
|
|
1023
|
-
writeValue(newValue);
|
|
1024
|
-
};
|
|
1025
|
-
const show = () => {
|
|
1026
|
-
if (!disabled && !readOnly) {
|
|
1027
|
-
setIsShow(true);
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
const hide = () => setIsShow(false);
|
|
1031
|
-
const isActive = (option) => {
|
|
1032
|
-
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
1033
|
-
};
|
|
1034
|
-
const renderSingleViewModel = () => {
|
|
1035
|
-
let result = null;
|
|
1036
|
-
if (selectedOptions.length > 0) {
|
|
1037
|
-
result = React__default["default"].createElement("span", null, selectedOptions[0].label);
|
|
1038
|
-
}
|
|
1039
|
-
return result;
|
|
1040
|
-
};
|
|
1041
|
-
const renderMultipleViewModel = () => {
|
|
1042
|
-
let result = null;
|
|
1043
|
-
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
1044
|
-
result = selectedOptions
|
|
1045
|
-
.map(option => React__default["default"].createElement(Chip, { key: option.value, color: exports.COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option) }, option.label));
|
|
1046
|
-
}
|
|
1047
|
-
else {
|
|
1048
|
-
result = React__default["default"].createElement("span", null,
|
|
1049
|
-
selectedOptions.length,
|
|
1050
|
-
" Items selected");
|
|
1051
|
-
}
|
|
1052
|
-
return result;
|
|
1053
|
-
};
|
|
1054
|
-
const handleOnDelete = (event, option) => {
|
|
1055
|
-
event.stopPropagation();
|
|
1056
|
-
handleOnClick(option);
|
|
1057
|
-
};
|
|
1058
|
-
// TODO - extract with wrapper?
|
|
1059
|
-
const handleOnKeyDown = (e) => {
|
|
1060
|
-
if (isShow) {
|
|
1061
|
-
onKeyDown && onKeyDown(e);
|
|
1062
|
-
switch (e.code) {
|
|
1063
|
-
case 'Escape':
|
|
1064
|
-
hide();
|
|
1065
|
-
break;
|
|
1066
|
-
case 'ArrowDown':
|
|
1067
|
-
if (hoverIndex) {
|
|
1068
|
-
setHoverIndex(hoverIndex + 1);
|
|
1069
|
-
}
|
|
1070
|
-
break;
|
|
1071
|
-
case 'ArrowUp':
|
|
1072
|
-
// TODO
|
|
1073
|
-
if (hoverIndex) {
|
|
1074
|
-
setHoverIndex(hoverIndex - 1);
|
|
1075
|
-
}
|
|
1076
|
-
break;
|
|
1077
|
-
case 'Enter':
|
|
1078
|
-
if (hoverIndex) {
|
|
1079
|
-
const option = options[hoverIndex];
|
|
1080
|
-
if (option) {
|
|
1081
|
-
handleOnClick(option);
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
break;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
return (React__default["default"].createElement("div", { ref: selectConainter, className: styles$D.selectContainer },
|
|
1089
|
-
React__default["default"].createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
|
|
1090
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1091
|
-
!multiple && renderSingleViewModel(),
|
|
1092
|
-
multiple &&
|
|
1093
|
-
React__default["default"].createElement("div", { className: styles$D.chipContainer }, renderMultipleViewModel()),
|
|
1094
|
-
React__default["default"].createElement(Icon, { className: "ml-auto" },
|
|
1095
|
-
React__default["default"].createElement(ChevronDownSolidIcon, null)))),
|
|
1096
|
-
isShow &&
|
|
1097
|
-
React__default["default"].createElement(Portal$1, { className: 'backdrop-root' },
|
|
1098
|
-
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 } },
|
|
1099
|
-
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) },
|
|
1100
|
-
multiple &&
|
|
1101
|
-
React__default["default"].createElement(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }),
|
|
1102
|
-
React__default["default"].createElement(ListItemText, { primary: option.label ? option.label : option.value }))))),
|
|
1103
|
-
React__default["default"].createElement(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() }))));
|
|
1104
|
-
};
|
|
1105
|
-
|
|
1106
|
-
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}";
|
|
1107
|
-
var styles$C = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
1108
|
-
styleInject(css_248z$C);
|
|
906
|
+
function typeOf(object) {
|
|
907
|
+
if (typeof object === 'object' && object !== null) {
|
|
908
|
+
var $$typeof = object.$$typeof;
|
|
1109
909
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
const cssClasses = [];
|
|
1114
|
-
cssClasses.push(styles$C.textarea);
|
|
1115
|
-
className && cssClasses.push(className);
|
|
1116
|
-
error && cssClasses.push(styles$C['isInvalid']);
|
|
1117
|
-
return cssClasses.filter(r => r).join(' ');
|
|
1118
|
-
};
|
|
1119
|
-
return (React__default["default"].createElement("textarea", { className: getCssClass(), ...rest }));
|
|
1120
|
-
};
|
|
910
|
+
switch ($$typeof) {
|
|
911
|
+
case REACT_ELEMENT_TYPE:
|
|
912
|
+
var type = object.type;
|
|
1121
913
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
914
|
+
switch (type) {
|
|
915
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
916
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
917
|
+
case REACT_FRAGMENT_TYPE:
|
|
918
|
+
case REACT_PROFILER_TYPE:
|
|
919
|
+
case REACT_STRICT_MODE_TYPE:
|
|
920
|
+
case REACT_SUSPENSE_TYPE:
|
|
921
|
+
return type;
|
|
1125
922
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
const getCssClasses = () => {
|
|
1129
|
-
const cssClasses = [];
|
|
1130
|
-
cssClasses.push(styles$B.formInput);
|
|
1131
|
-
className && cssClasses.push(className);
|
|
1132
|
-
!isValid && cssClasses.push(styles$B['isInvalid']);
|
|
1133
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1134
|
-
};
|
|
1135
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1136
|
-
const handleOnInput = (value, type, name) => {
|
|
1137
|
-
onInput && onInput({ value: value, type: type, name: name });
|
|
1138
|
-
};
|
|
1139
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1140
|
-
const handleOnChange = (value, type, name) => {
|
|
1141
|
-
onChange && onChange({ value: value, type: type, name: name });
|
|
1142
|
-
};
|
|
1143
|
-
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1144
|
-
(type === 'text' ||
|
|
1145
|
-
type === 'date' ||
|
|
1146
|
-
type === 'datetime-local' ||
|
|
1147
|
-
type === 'email' ||
|
|
1148
|
-
type === 'number' ||
|
|
1149
|
-
type === 'password' ||
|
|
1150
|
-
type === 'color' ||
|
|
1151
|
-
type === 'time')
|
|
1152
|
-
&&
|
|
1153
|
-
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 }),
|
|
1154
|
-
type === 'file' &&
|
|
1155
|
-
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"),
|
|
1156
|
-
type === 'textarea' &&
|
|
1157
|
-
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' } }),
|
|
1158
|
-
type === 'select' &&
|
|
1159
|
-
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 }),
|
|
1160
|
-
type === 'autocomplete' &&
|
|
1161
|
-
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 }),
|
|
1162
|
-
type === 'checkbox' &&
|
|
1163
|
-
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 }),
|
|
1164
|
-
type === 'radio' &&
|
|
1165
|
-
React__default["default"].createElement(React__default["default"].Fragment, null, options.map((option) => React__default["default"].createElement("div", { className: "form-check", key: option.id },
|
|
1166
|
-
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 }),
|
|
1167
|
-
React__default["default"].createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
var css_248z$A = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
1171
|
-
var styles$A = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
1172
|
-
styleInject(css_248z$A);
|
|
923
|
+
default:
|
|
924
|
+
var $$typeofType = type && type.$$typeof;
|
|
1173
925
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
return (React__default["default"].createElement("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest }, children));
|
|
1182
|
-
};
|
|
926
|
+
switch ($$typeofType) {
|
|
927
|
+
case REACT_CONTEXT_TYPE:
|
|
928
|
+
case REACT_FORWARD_REF_TYPE:
|
|
929
|
+
case REACT_LAZY_TYPE:
|
|
930
|
+
case REACT_MEMO_TYPE:
|
|
931
|
+
case REACT_PROVIDER_TYPE:
|
|
932
|
+
return $$typeofType;
|
|
1183
933
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
934
|
+
default:
|
|
935
|
+
return $$typeof;
|
|
936
|
+
}
|
|
1187
937
|
|
|
1188
|
-
|
|
1189
|
-
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
1190
|
-
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
1191
|
-
return isInvalid;
|
|
1192
|
-
};
|
|
938
|
+
}
|
|
1193
939
|
|
|
1194
|
-
|
|
940
|
+
case REACT_PORTAL_TYPE:
|
|
941
|
+
return $$typeof;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
1195
944
|
|
|
1196
|
-
|
|
945
|
+
return undefined;
|
|
946
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1197
947
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
getCssClasses() {
|
|
1213
|
-
const cssClasses = [];
|
|
1214
|
-
cssClasses.push(styles$F.form);
|
|
1215
|
-
this.props.className && cssClasses.push(this.props.className);
|
|
1216
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1217
|
-
}
|
|
1218
|
-
static getDerivedStateFromProps(nextProps, state) {
|
|
1219
|
-
if (!state.controls && nextProps.controls) {
|
|
1220
|
-
return { controls: nextProps.controls };
|
|
1221
|
-
}
|
|
1222
|
-
return null;
|
|
1223
|
-
}
|
|
1224
|
-
handleChange() {
|
|
1225
|
-
// get value by myForm instead of getControl?
|
|
1226
|
-
if (this.state.isChanged || this.state.isSubmitted) {
|
|
1227
|
-
const keys = Object.keys(this.state.controls);
|
|
1228
|
-
const values = keys.reduce((obj, f) => {
|
|
1229
|
-
const control = this.getControl(f);
|
|
1230
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1231
|
-
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
1232
|
-
control.value &&
|
|
1233
|
-
isValidDate(control.value)
|
|
1234
|
-
? new Date(control.value).toISOString()
|
|
1235
|
-
: control.value;
|
|
1236
|
-
return {
|
|
1237
|
-
...obj,
|
|
1238
|
-
[f]: newValue,
|
|
1239
|
-
};
|
|
1240
|
-
}, {});
|
|
1241
|
-
if (this.state.isValid && this.state.isSubmitted) {
|
|
1242
|
-
this.props.onSubmit && this.props.onSubmit(values);
|
|
1243
|
-
}
|
|
1244
|
-
this.props.onChange && this.props.onChange(values);
|
|
1245
|
-
this.setState({ isChanged: false, isSubmitted: false });
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
// extract to service?
|
|
1249
|
-
validateField(fieldValue, fieldValidators) {
|
|
1250
|
-
const errors = [];
|
|
1251
|
-
if (fieldValidators) {
|
|
1252
|
-
for (const validator of fieldValidators) {
|
|
1253
|
-
const validatorSplitted = validator.split(':');
|
|
1254
|
-
const validatorName = validatorSplitted[0];
|
|
1255
|
-
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
1256
|
-
switch (validatorName) {
|
|
1257
|
-
case 'required':
|
|
1258
|
-
if (IsEmptyValidator(fieldValue)) {
|
|
1259
|
-
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
1260
|
-
}
|
|
1261
|
-
break;
|
|
1262
|
-
case 'email':
|
|
1263
|
-
if (EmailValidator(fieldValue)) {
|
|
1264
|
-
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
1265
|
-
}
|
|
1266
|
-
break;
|
|
1267
|
-
case 'min':
|
|
1268
|
-
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
1269
|
-
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
1270
|
-
}
|
|
1271
|
-
break;
|
|
1272
|
-
case 'max':
|
|
1273
|
-
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
1274
|
-
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
1275
|
-
}
|
|
1276
|
-
break;
|
|
1277
|
-
case 'match':
|
|
1278
|
-
if (validatorParam) {
|
|
1279
|
-
const matchControl = this.getControl(validatorParam);
|
|
1280
|
-
if (matchControl) {
|
|
1281
|
-
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
1282
|
-
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
else {
|
|
1286
|
-
console.error(`Form: Field ${validatorParam} not found`);
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
break;
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
return errors;
|
|
1294
|
-
}
|
|
1295
|
-
handleInputChange(name, value) {
|
|
1296
|
-
const field = this.getControl(name);
|
|
1297
|
-
field.value = value;
|
|
1298
|
-
// redundant mit handleOnBlur
|
|
1299
|
-
field.isDirty = true;
|
|
1300
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1301
|
-
field.isValid = field.errors.length === 0;
|
|
1302
|
-
const newControls = { ...this.state.controls };
|
|
1303
|
-
newControls[name] = field;
|
|
1304
|
-
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
1305
|
-
}
|
|
1306
|
-
handleOnBlur(e) {
|
|
1307
|
-
if (this.props.validateOnBlur) {
|
|
1308
|
-
const { name } = e.target;
|
|
1309
|
-
const field = this.getControl(name);
|
|
1310
|
-
field.isDirty = true;
|
|
1311
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1312
|
-
field.isValid = field.errors.length === 0;
|
|
1313
|
-
const controls = this.state.controls;
|
|
1314
|
-
if (controls) {
|
|
1315
|
-
controls[name] = field;
|
|
1316
|
-
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
isRequired(fieldName) {
|
|
1321
|
-
let result = false;
|
|
1322
|
-
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
1323
|
-
return result;
|
|
1324
|
-
}
|
|
1325
|
-
isInvalid(fieldName) {
|
|
1326
|
-
let result = false;
|
|
1327
|
-
const field = this.getControl(fieldName);
|
|
1328
|
-
result = field.isDirty && !field.isValid;
|
|
1329
|
-
return result;
|
|
1330
|
-
}
|
|
1331
|
-
getControl(name) {
|
|
1332
|
-
return this.state.controls[name];
|
|
1333
|
-
}
|
|
1334
|
-
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
1335
|
-
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1336
|
-
return (React__default["default"].createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label));
|
|
1337
|
-
}
|
|
1338
|
-
handleFormSubmit() {
|
|
1339
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1340
|
-
const field = this.getControl(fieldKey);
|
|
1341
|
-
// redundant mit handleBlur
|
|
1342
|
-
field.isDirty = true;
|
|
1343
|
-
field.errors = this.validateField(field.value, field.validators);
|
|
1344
|
-
field.isValid = field.errors.length === 0;
|
|
1345
|
-
}
|
|
1346
|
-
this.setState({
|
|
1347
|
-
controls: { ...this.state.controls },
|
|
1348
|
-
isSubmitted: true,
|
|
1349
|
-
isValid: Object.keys(this.state.controls)
|
|
1350
|
-
.map(f => this.getControl(f).isValid)
|
|
1351
|
-
.every(valid => valid === true),
|
|
1352
|
-
}, () => this.handleChange());
|
|
1353
|
-
}
|
|
1354
|
-
// trigger via ref
|
|
1355
|
-
handleFormReset() {
|
|
1356
|
-
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1357
|
-
const field = this.getControl(fieldKey);
|
|
1358
|
-
field.value = '';
|
|
1359
|
-
field.isDirty = false;
|
|
1360
|
-
field.errors = [];
|
|
1361
|
-
field.isValid = field.errors.length === 0;
|
|
1362
|
-
}
|
|
1363
|
-
this.setState({
|
|
1364
|
-
controls: { ...this.state.controls },
|
|
1365
|
-
isSubmitted: false,
|
|
1366
|
-
isChanged: false,
|
|
1367
|
-
isValid: false,
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
handleOnKeyDown(e) {
|
|
1371
|
-
if (e.key === 'Enter') {
|
|
1372
|
-
e.preventDefault();
|
|
1373
|
-
this.state.submitOnEnter && this.handleFormSubmit();
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
destroy() {
|
|
1377
|
-
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1378
|
-
}
|
|
1379
|
-
getFormGroupCssClass(fieldKey) {
|
|
1380
|
-
return this.getControl(fieldKey).config.formGroupClassName;
|
|
1381
|
-
}
|
|
1382
|
-
render() {
|
|
1383
|
-
return (React__default["default"].createElement("form", { className: this.getCssClasses(), ref: this.myForm }, this.state &&
|
|
1384
|
-
this.state.controls &&
|
|
1385
|
-
Object.keys(this.state.controls).map(fieldKey => {
|
|
1386
|
-
return (React__default["default"].createElement(FormGroup, { key: fieldKey, className: this.getFormGroupCssClass(fieldKey) },
|
|
1387
|
-
this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
1388
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1389
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1390
|
-
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) }),
|
|
1391
|
-
this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
1392
|
-
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
1393
|
-
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName),
|
|
1394
|
-
this.getControl(fieldKey).config.hint && (React__default["default"].createElement(FormHint, null, this.getControl(fieldKey).config.hint)),
|
|
1395
|
-
this.getControl(fieldKey).errors && React__default["default"].createElement(FormError, { errors: this.getControl(fieldKey).errors })));
|
|
1396
|
-
})));
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
function isValidDate(dateObject) {
|
|
1400
|
-
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
class FormControl {
|
|
1404
|
-
constructor(
|
|
1405
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1406
|
-
value, validators = [], type, config) {
|
|
1407
|
-
this.value = value;
|
|
1408
|
-
this.validators = validators;
|
|
1409
|
-
this.type = type;
|
|
1410
|
-
this.config = config;
|
|
1411
|
-
this.errors = [];
|
|
1412
|
-
this.isValid = false;
|
|
1413
|
-
this.isDirty = false;
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
const DaySelect = (props) => {
|
|
1418
|
-
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
1419
|
-
React.useEffect(() => {
|
|
1420
|
-
init();
|
|
1421
|
-
}, [month, year]);
|
|
1422
|
-
const init = () => {
|
|
1423
|
-
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
1424
|
-
const newDays = [];
|
|
1425
|
-
for (let i = 1; i <= daysInMonth; i++) {
|
|
1426
|
-
newDays.push({ value: i.toString(), label: i.toString() });
|
|
1427
|
-
}
|
|
1428
|
-
setDayOptions(newDays);
|
|
1429
|
-
};
|
|
1430
|
-
const [value, setValue] = React.useState(day);
|
|
1431
|
-
const [dayOptions, setDayOptions] = React.useState();
|
|
1432
|
-
const getCssClasses = () => {
|
|
1433
|
-
const cssClasses = [];
|
|
1434
|
-
className && cssClasses.push(className);
|
|
1435
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1436
|
-
};
|
|
1437
|
-
const handleOnChange = (e) => {
|
|
1438
|
-
setValue(e);
|
|
1439
|
-
onChange && onChange(e);
|
|
1440
|
-
};
|
|
1441
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
1442
|
-
};
|
|
1443
|
-
|
|
1444
|
-
const MonthSelect = (props) => {
|
|
1445
|
-
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
1446
|
-
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
1447
|
-
const [newValue, setNewValue] = React.useState(value);
|
|
1448
|
-
const [monthOptions, setMonthOptions] = React.useState();
|
|
1449
|
-
React.useEffect(() => {
|
|
1450
|
-
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
1451
|
-
}, []);
|
|
1452
|
-
const getCssClasses = () => {
|
|
1453
|
-
const cssClasses = [];
|
|
1454
|
-
className && cssClasses.push(className);
|
|
1455
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1456
|
-
};
|
|
1457
|
-
const handleOnChange = (e) => {
|
|
1458
|
-
setNewValue(e);
|
|
1459
|
-
onChange && onChange(e);
|
|
1460
|
-
};
|
|
1461
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
1462
|
-
};
|
|
1463
|
-
|
|
1464
|
-
const YearSelect = (props) => {
|
|
1465
|
-
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
1466
|
-
const [newValue, setNewValue] = React.useState(value.toString());
|
|
1467
|
-
const [years, setYears] = React.useState();
|
|
1468
|
-
React.useEffect(() => {
|
|
1469
|
-
const newYears = [];
|
|
1470
|
-
for (let i = from; i <= to; i++) {
|
|
1471
|
-
newYears.push({ value: i.toString(), label: i.toString() });
|
|
1472
|
-
}
|
|
1473
|
-
setYears(newYears.reverse());
|
|
1474
|
-
}, [from, to]);
|
|
1475
|
-
const getCssClasses = () => {
|
|
1476
|
-
const cssClasses = [];
|
|
1477
|
-
className && cssClasses.push(className);
|
|
1478
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1479
|
-
};
|
|
1480
|
-
const handleOnChange = (e) => {
|
|
1481
|
-
setNewValue(e);
|
|
1482
|
-
onChange && onChange(parseInt(e));
|
|
1483
|
-
};
|
|
1484
|
-
return (React__default["default"].createElement(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
1485
|
-
};
|
|
1486
|
-
|
|
1487
|
-
exports.DATEMODE = void 0;
|
|
1488
|
-
(function (DATEMODE) {
|
|
1489
|
-
DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
|
|
1490
|
-
DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
|
|
1491
|
-
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
1492
|
-
})(exports.DATEMODE || (exports.DATEMODE = {}));
|
|
1493
|
-
const DateSelect = (props) => {
|
|
1494
|
-
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
1495
|
-
const getCssClasses = () => {
|
|
1496
|
-
const cssClasses = [];
|
|
1497
|
-
cssClasses.push('row');
|
|
1498
|
-
className && cssClasses.push(className);
|
|
1499
|
-
return cssClasses.filter(css => css).join(' ');
|
|
1500
|
-
};
|
|
1501
|
-
const [currDate, setCurrDate] = React.useState(value);
|
|
1502
|
-
const handleOnChange = (e, mode) => {
|
|
1503
|
-
const currYear = mode === exports.DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
1504
|
-
const currMonth = mode === exports.DATEMODE.MONTH ? e : currDate.getMonth();
|
|
1505
|
-
const currday = mode === exports.DATEMODE.DAY ? e : currDate.getDate();
|
|
1506
|
-
const newDate = new Date(currYear, currMonth, currday);
|
|
1507
|
-
setCurrDate(newDate);
|
|
1508
|
-
onChange && onChange(newDate);
|
|
1509
|
-
};
|
|
1510
|
-
return (React__default["default"].createElement(Row, { className: getCssClasses() },
|
|
1511
|
-
React__default["default"].createElement(Column, null,
|
|
1512
|
-
React__default["default"].createElement(FormLabel, null, "Year"),
|
|
1513
|
-
React__default["default"].createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, exports.DATEMODE.YEAR) })),
|
|
1514
|
-
React__default["default"].createElement(Column, null,
|
|
1515
|
-
React__default["default"].createElement(FormLabel, null, "Month"),
|
|
1516
|
-
React__default["default"].createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.MONTH) })),
|
|
1517
|
-
React__default["default"].createElement(Column, null,
|
|
1518
|
-
React__default["default"].createElement(FormLabel, null, "Day"),
|
|
1519
|
-
React__default["default"].createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.DAY) }))));
|
|
1520
|
-
};
|
|
1521
|
-
/*
|
|
1522
|
-
* result = { year, month, day, dayOfWeek, weekNumber }
|
|
1523
|
-
*/
|
|
1524
|
-
// const getWeekNumber = () => {
|
|
1525
|
-
// var d = new Date(Date.UTC(this.getFullYear(), this.getMonth(), this.getDate()));
|
|
1526
|
-
// var dayNum = d.getUTCDay() || 7;
|
|
1527
|
-
// d.setUTCDate(d.getUTCDate() + 4 - dayNum);
|
|
1528
|
-
// var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
|
|
1529
|
-
// return Math.ceil((((d - yearStart) / 86400000) + 1) / 7)
|
|
1530
|
-
// };
|
|
1531
|
-
|
|
1532
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1533
|
-
|
|
1534
|
-
function createCommonjsModule(fn, module) {
|
|
1535
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
/** @license React v16.13.1
|
|
1539
|
-
* react-is.production.min.js
|
|
1540
|
-
*
|
|
1541
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1542
|
-
*
|
|
1543
|
-
* This source code is licensed under the MIT license found in the
|
|
1544
|
-
* LICENSE file in the root directory of this source tree.
|
|
1545
|
-
*/
|
|
1546
|
-
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?
|
|
1547
|
-
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;
|
|
1548
|
-
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;
|
|
1549
|
-
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};
|
|
1550
|
-
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};
|
|
1551
|
-
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;
|
|
1552
|
-
|
|
1553
|
-
var reactIs_production_min = {
|
|
1554
|
-
AsyncMode: AsyncMode,
|
|
1555
|
-
ConcurrentMode: ConcurrentMode,
|
|
1556
|
-
ContextConsumer: ContextConsumer,
|
|
1557
|
-
ContextProvider: ContextProvider,
|
|
1558
|
-
Element: Element,
|
|
1559
|
-
ForwardRef: ForwardRef,
|
|
1560
|
-
Fragment: Fragment,
|
|
1561
|
-
Lazy: Lazy,
|
|
1562
|
-
Memo: Memo,
|
|
1563
|
-
Portal: Portal,
|
|
1564
|
-
Profiler: Profiler,
|
|
1565
|
-
StrictMode: StrictMode,
|
|
1566
|
-
Suspense: Suspense,
|
|
1567
|
-
isAsyncMode: isAsyncMode,
|
|
1568
|
-
isConcurrentMode: isConcurrentMode,
|
|
1569
|
-
isContextConsumer: isContextConsumer,
|
|
1570
|
-
isContextProvider: isContextProvider,
|
|
1571
|
-
isElement: isElement,
|
|
1572
|
-
isForwardRef: isForwardRef,
|
|
1573
|
-
isFragment: isFragment,
|
|
1574
|
-
isLazy: isLazy,
|
|
1575
|
-
isMemo: isMemo,
|
|
1576
|
-
isPortal: isPortal,
|
|
1577
|
-
isProfiler: isProfiler,
|
|
1578
|
-
isStrictMode: isStrictMode,
|
|
1579
|
-
isSuspense: isSuspense,
|
|
1580
|
-
isValidElementType: isValidElementType,
|
|
1581
|
-
typeOf: typeOf
|
|
1582
|
-
};
|
|
1583
|
-
|
|
1584
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1589
|
-
(function() {
|
|
1590
|
-
|
|
1591
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1592
|
-
// nor polyfill, then a plain number is used for performance.
|
|
1593
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1594
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1595
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1596
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1597
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1598
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1599
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1600
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1601
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1602
|
-
|
|
1603
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1604
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1605
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1606
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1607
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1608
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1609
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1610
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1611
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1612
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1613
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1614
|
-
|
|
1615
|
-
function isValidElementType(type) {
|
|
1616
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1617
|
-
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);
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
function typeOf(object) {
|
|
1621
|
-
if (typeof object === 'object' && object !== null) {
|
|
1622
|
-
var $$typeof = object.$$typeof;
|
|
1623
|
-
|
|
1624
|
-
switch ($$typeof) {
|
|
1625
|
-
case REACT_ELEMENT_TYPE:
|
|
1626
|
-
var type = object.type;
|
|
1627
|
-
|
|
1628
|
-
switch (type) {
|
|
1629
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
1630
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
1631
|
-
case REACT_FRAGMENT_TYPE:
|
|
1632
|
-
case REACT_PROFILER_TYPE:
|
|
1633
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1634
|
-
case REACT_SUSPENSE_TYPE:
|
|
1635
|
-
return type;
|
|
1636
|
-
|
|
1637
|
-
default:
|
|
1638
|
-
var $$typeofType = type && type.$$typeof;
|
|
1639
|
-
|
|
1640
|
-
switch ($$typeofType) {
|
|
1641
|
-
case REACT_CONTEXT_TYPE:
|
|
1642
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1643
|
-
case REACT_LAZY_TYPE:
|
|
1644
|
-
case REACT_MEMO_TYPE:
|
|
1645
|
-
case REACT_PROVIDER_TYPE:
|
|
1646
|
-
return $$typeofType;
|
|
1647
|
-
|
|
1648
|
-
default:
|
|
1649
|
-
return $$typeof;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
case REACT_PORTAL_TYPE:
|
|
1655
|
-
return $$typeof;
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
return undefined;
|
|
1660
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
1661
|
-
|
|
1662
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1663
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1664
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1665
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1666
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1667
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1668
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1669
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1670
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1671
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1672
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1673
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1674
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1675
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
948
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
949
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
950
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
951
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
952
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
953
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
954
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
955
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
956
|
+
var Memo = REACT_MEMO_TYPE;
|
|
957
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
958
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
959
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
960
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
961
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1676
962
|
|
|
1677
963
|
function isAsyncMode(object) {
|
|
1678
964
|
{
|
|
@@ -3404,200 +2690,176 @@ var getUserLocale = lodash_memoize(getUserLocaleInternal, resolver);
|
|
|
3404
2690
|
* Utils
|
|
3405
2691
|
*/
|
|
3406
2692
|
function makeGetEdgeOfNeighbor(getPeriod, getEdgeOfPeriod, defaultOffset) {
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
2693
|
+
return function makeGetEdgeOfNeighborInternal(date, offset) {
|
|
2694
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2695
|
+
var previousPeriod = getPeriod(date) + offset;
|
|
2696
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2697
|
+
};
|
|
3412
2698
|
}
|
|
3413
|
-
|
|
3414
2699
|
function makeGetEnd(getBeginOfNextPeriod) {
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
2700
|
+
return function makeGetEndInternal(date) {
|
|
2701
|
+
return new Date(getBeginOfNextPeriod(date).getTime() - 1);
|
|
2702
|
+
};
|
|
3418
2703
|
}
|
|
3419
|
-
|
|
3420
|
-
function
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
return fn(date);
|
|
3424
|
-
});
|
|
3425
|
-
};
|
|
2704
|
+
function makeGetRange(getStart, getEnd) {
|
|
2705
|
+
return function makeGetRangeInternal(date) {
|
|
2706
|
+
return [getStart(date), getEnd(date)];
|
|
2707
|
+
};
|
|
3426
2708
|
}
|
|
3427
2709
|
/**
|
|
3428
2710
|
* Simple getters - getting a property of a given point in time
|
|
3429
2711
|
*/
|
|
3430
|
-
|
|
3431
2712
|
/**
|
|
3432
2713
|
* Gets year from date.
|
|
3433
2714
|
*
|
|
3434
2715
|
* @param {Date|number|string} date Date to get year from.
|
|
3435
2716
|
*/
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
2717
|
function getYear(date) {
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
return year;
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2718
|
+
if (date instanceof Date) {
|
|
2719
|
+
return date.getFullYear();
|
|
2720
|
+
}
|
|
2721
|
+
if (typeof date === 'number') {
|
|
2722
|
+
return date;
|
|
2723
|
+
}
|
|
2724
|
+
var year = parseInt(date, 10);
|
|
2725
|
+
if (typeof date === 'string' && !isNaN(year)) {
|
|
2726
|
+
return year;
|
|
2727
|
+
}
|
|
2728
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
3454
2729
|
}
|
|
3455
2730
|
/**
|
|
3456
2731
|
* Gets month from date.
|
|
3457
2732
|
*
|
|
3458
2733
|
* @param {Date} date Date to get month from.
|
|
3459
2734
|
*/
|
|
3460
|
-
|
|
3461
2735
|
function getMonth(date) {
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
2736
|
+
if (date instanceof Date) {
|
|
2737
|
+
return date.getMonth();
|
|
2738
|
+
}
|
|
2739
|
+
throw new Error("Failed to get month from date: ".concat(date, "."));
|
|
3467
2740
|
}
|
|
3468
2741
|
/**
|
|
3469
2742
|
* Gets human-readable day of the month from date.
|
|
3470
2743
|
*
|
|
3471
2744
|
* @param {Date} date Date to get day of the month from.
|
|
3472
2745
|
*/
|
|
3473
|
-
|
|
3474
2746
|
function getDate(date) {
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
2747
|
+
if (date instanceof Date) {
|
|
2748
|
+
return date.getDate();
|
|
2749
|
+
}
|
|
2750
|
+
throw new Error("Failed to get year from date: ".concat(date, "."));
|
|
3480
2751
|
}
|
|
3481
2752
|
/**
|
|
3482
2753
|
* Century
|
|
3483
2754
|
*/
|
|
3484
|
-
|
|
3485
2755
|
function getCenturyStart(date) {
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
2756
|
+
var year = getYear(date);
|
|
2757
|
+
var centuryStartYear = year + ((-year + 1) % 100);
|
|
2758
|
+
var centuryStartDate = new Date();
|
|
2759
|
+
centuryStartDate.setFullYear(centuryStartYear, 0, 1);
|
|
2760
|
+
centuryStartDate.setHours(0, 0, 0, 0);
|
|
2761
|
+
return centuryStartDate;
|
|
3492
2762
|
}
|
|
3493
2763
|
var getPreviousCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, -100);
|
|
3494
2764
|
var getNextCenturyStart = makeGetEdgeOfNeighbor(getYear, getCenturyStart, 100);
|
|
3495
2765
|
var getCenturyEnd = makeGetEnd(getNextCenturyStart);
|
|
3496
2766
|
var getPreviousCenturyEnd = makeGetEdgeOfNeighbor(getYear, getCenturyEnd, -100);
|
|
3497
|
-
var getCenturyRange = makeGetRange(
|
|
2767
|
+
var getCenturyRange = makeGetRange(getCenturyStart, getCenturyEnd);
|
|
3498
2768
|
/**
|
|
3499
2769
|
* Decade
|
|
3500
2770
|
*/
|
|
3501
|
-
|
|
3502
2771
|
function getDecadeStart(date) {
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
2772
|
+
var year = getYear(date);
|
|
2773
|
+
var decadeStartYear = year + ((-year + 1) % 10);
|
|
2774
|
+
var decadeStartDate = new Date();
|
|
2775
|
+
decadeStartDate.setFullYear(decadeStartYear, 0, 1);
|
|
2776
|
+
decadeStartDate.setHours(0, 0, 0, 0);
|
|
2777
|
+
return decadeStartDate;
|
|
3509
2778
|
}
|
|
3510
2779
|
var getPreviousDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, -10);
|
|
3511
2780
|
var getNextDecadeStart = makeGetEdgeOfNeighbor(getYear, getDecadeStart, 10);
|
|
3512
2781
|
var getDecadeEnd = makeGetEnd(getNextDecadeStart);
|
|
3513
2782
|
var getPreviousDecadeEnd = makeGetEdgeOfNeighbor(getYear, getDecadeEnd, -10);
|
|
3514
|
-
var getDecadeRange = makeGetRange(
|
|
2783
|
+
var getDecadeRange = makeGetRange(getDecadeStart, getDecadeEnd);
|
|
3515
2784
|
/**
|
|
3516
2785
|
* Year
|
|
3517
2786
|
*/
|
|
3518
|
-
|
|
3519
2787
|
function getYearStart(date) {
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
2788
|
+
var year = getYear(date);
|
|
2789
|
+
var yearStartDate = new Date();
|
|
2790
|
+
yearStartDate.setFullYear(year, 0, 1);
|
|
2791
|
+
yearStartDate.setHours(0, 0, 0, 0);
|
|
2792
|
+
return yearStartDate;
|
|
3525
2793
|
}
|
|
3526
2794
|
var getPreviousYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, -1);
|
|
3527
2795
|
var getNextYearStart = makeGetEdgeOfNeighbor(getYear, getYearStart, 1);
|
|
3528
2796
|
var getYearEnd = makeGetEnd(getNextYearStart);
|
|
3529
2797
|
var getPreviousYearEnd = makeGetEdgeOfNeighbor(getYear, getYearEnd, -1);
|
|
3530
|
-
var getYearRange = makeGetRange(
|
|
2798
|
+
var getYearRange = makeGetRange(getYearStart, getYearEnd);
|
|
3531
2799
|
/**
|
|
3532
2800
|
* Month
|
|
3533
2801
|
*/
|
|
3534
|
-
|
|
3535
2802
|
function makeGetEdgeOfNeighborMonth(getEdgeOfPeriod, defaultOffset) {
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
2803
|
+
return function makeGetEdgeOfNeighborMonthInternal(date, offset) {
|
|
2804
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2805
|
+
var year = getYear(date);
|
|
2806
|
+
var month = getMonth(date) + offset;
|
|
2807
|
+
var previousPeriod = new Date();
|
|
2808
|
+
previousPeriod.setFullYear(year, month, 1);
|
|
2809
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2810
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2811
|
+
};
|
|
3545
2812
|
}
|
|
3546
|
-
|
|
3547
2813
|
function getMonthStart(date) {
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
2814
|
+
var year = getYear(date);
|
|
2815
|
+
var month = getMonth(date);
|
|
2816
|
+
var monthStartDate = new Date();
|
|
2817
|
+
monthStartDate.setFullYear(year, month, 1);
|
|
2818
|
+
monthStartDate.setHours(0, 0, 0, 0);
|
|
2819
|
+
return monthStartDate;
|
|
3554
2820
|
}
|
|
3555
2821
|
var getPreviousMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, -1);
|
|
3556
2822
|
var getNextMonthStart = makeGetEdgeOfNeighborMonth(getMonthStart, 1);
|
|
3557
2823
|
var getMonthEnd = makeGetEnd(getNextMonthStart);
|
|
3558
2824
|
var getPreviousMonthEnd = makeGetEdgeOfNeighborMonth(getMonthEnd, -1);
|
|
3559
|
-
var getMonthRange = makeGetRange(
|
|
2825
|
+
var getMonthRange = makeGetRange(getMonthStart, getMonthEnd);
|
|
3560
2826
|
/**
|
|
3561
2827
|
* Day
|
|
3562
2828
|
*/
|
|
3563
|
-
|
|
3564
2829
|
function makeGetEdgeOfNeighborDay(getEdgeOfPeriod, defaultOffset) {
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
2830
|
+
return function makeGetEdgeOfNeighborDayInternal(date, offset) {
|
|
2831
|
+
if (offset === void 0) { offset = defaultOffset; }
|
|
2832
|
+
var year = getYear(date);
|
|
2833
|
+
var month = getMonth(date);
|
|
2834
|
+
var day = getDate(date) + offset;
|
|
2835
|
+
var previousPeriod = new Date();
|
|
2836
|
+
previousPeriod.setFullYear(year, month, day);
|
|
2837
|
+
previousPeriod.setHours(0, 0, 0, 0);
|
|
2838
|
+
return getEdgeOfPeriod(previousPeriod);
|
|
2839
|
+
};
|
|
3575
2840
|
}
|
|
3576
|
-
|
|
3577
2841
|
function getDayStart(date) {
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
2842
|
+
var year = getYear(date);
|
|
2843
|
+
var month = getMonth(date);
|
|
2844
|
+
var day = getDate(date);
|
|
2845
|
+
var dayStartDate = new Date();
|
|
2846
|
+
dayStartDate.setFullYear(year, month, day);
|
|
2847
|
+
dayStartDate.setHours(0, 0, 0, 0);
|
|
2848
|
+
return dayStartDate;
|
|
3585
2849
|
}
|
|
3586
2850
|
var getNextDayStart = makeGetEdgeOfNeighborDay(getDayStart, 1);
|
|
3587
2851
|
var getDayEnd = makeGetEnd(getNextDayStart);
|
|
3588
|
-
var getDayRange = makeGetRange(
|
|
2852
|
+
var getDayRange = makeGetRange(getDayStart, getDayEnd);
|
|
3589
2853
|
/**
|
|
3590
2854
|
* Other
|
|
3591
2855
|
*/
|
|
3592
|
-
|
|
3593
2856
|
/**
|
|
3594
2857
|
* Returns a number of days in a month of a given date.
|
|
3595
2858
|
*
|
|
3596
2859
|
* @param {Date} date Date.
|
|
3597
2860
|
*/
|
|
3598
|
-
|
|
3599
2861
|
function getDaysInMonth(date) {
|
|
3600
|
-
|
|
2862
|
+
return getDate(getMonthEnd(date));
|
|
3601
2863
|
}
|
|
3602
2864
|
|
|
3603
2865
|
var _CALENDAR_TYPE_LOCALE;
|
|
@@ -5638,230 +4900,748 @@ Calendar$1.defaultProps = {
|
|
|
5638
4900
|
showNavigation: true,
|
|
5639
4901
|
showNeighboringMonth: true
|
|
5640
4902
|
};
|
|
5641
|
-
var isActiveStartDate = PropTypes.instanceOf(Date);
|
|
5642
|
-
var isLooseValue = PropTypes.oneOfType([PropTypes.string, isValue]);
|
|
5643
|
-
Calendar$1.propTypes = {
|
|
5644
|
-
activeStartDate: isActiveStartDate,
|
|
5645
|
-
allowPartialRange: PropTypes.bool,
|
|
5646
|
-
calendarType: isCalendarType,
|
|
5647
|
-
className: isClassName,
|
|
5648
|
-
defaultActiveStartDate: isActiveStartDate,
|
|
5649
|
-
defaultValue: isLooseValue,
|
|
5650
|
-
defaultView: isView,
|
|
5651
|
-
formatDay: PropTypes.func,
|
|
5652
|
-
formatLongDate: PropTypes.func,
|
|
5653
|
-
formatMonth: PropTypes.func,
|
|
5654
|
-
formatMonthYear: PropTypes.func,
|
|
5655
|
-
formatShortWeekday: PropTypes.func,
|
|
5656
|
-
formatWeekday: PropTypes.func,
|
|
5657
|
-
formatYear: PropTypes.func,
|
|
5658
|
-
goToRangeStartOnSelect: PropTypes.bool,
|
|
5659
|
-
inputRef: isRef,
|
|
5660
|
-
locale: PropTypes.string,
|
|
5661
|
-
maxDate: isMaxDate,
|
|
5662
|
-
maxDetail: PropTypes.oneOf(allViews),
|
|
5663
|
-
minDate: isMinDate,
|
|
5664
|
-
minDetail: PropTypes.oneOf(allViews),
|
|
5665
|
-
navigationAriaLabel: PropTypes.string,
|
|
5666
|
-
navigationAriaLive: PropTypes.oneOf(['off', 'polite', 'assertive']),
|
|
5667
|
-
navigationLabel: PropTypes.func,
|
|
5668
|
-
next2AriaLabel: PropTypes.string,
|
|
5669
|
-
next2Label: PropTypes.node,
|
|
5670
|
-
nextAriaLabel: PropTypes.string,
|
|
5671
|
-
nextLabel: PropTypes.node,
|
|
5672
|
-
onActiveStartDateChange: PropTypes.func,
|
|
5673
|
-
onChange: PropTypes.func,
|
|
5674
|
-
onClickDay: PropTypes.func,
|
|
5675
|
-
onClickDecade: PropTypes.func,
|
|
5676
|
-
onClickMonth: PropTypes.func,
|
|
5677
|
-
onClickWeekNumber: PropTypes.func,
|
|
5678
|
-
onClickYear: PropTypes.func,
|
|
5679
|
-
onDrillDown: PropTypes.func,
|
|
5680
|
-
onDrillUp: PropTypes.func,
|
|
5681
|
-
onViewChange: PropTypes.func,
|
|
5682
|
-
prev2AriaLabel: PropTypes.string,
|
|
5683
|
-
prev2Label: PropTypes.node,
|
|
5684
|
-
prevAriaLabel: PropTypes.string,
|
|
5685
|
-
prevLabel: PropTypes.node,
|
|
5686
|
-
returnValue: PropTypes.oneOf(['start', 'end', 'range']),
|
|
5687
|
-
selectRange: PropTypes.bool,
|
|
5688
|
-
showDoubleView: PropTypes.bool,
|
|
5689
|
-
showFixedNumberOfWeeks: PropTypes.bool,
|
|
5690
|
-
showNavigation: PropTypes.bool,
|
|
5691
|
-
showNeighboringMonth: PropTypes.bool,
|
|
5692
|
-
showWeekNumbers: PropTypes.bool,
|
|
5693
|
-
tileClassName: PropTypes.oneOfType([PropTypes.func, isClassName]),
|
|
5694
|
-
tileContent: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
5695
|
-
tileDisabled: PropTypes.func,
|
|
5696
|
-
value: isLooseValue,
|
|
5697
|
-
view: isView
|
|
4903
|
+
var isActiveStartDate = PropTypes.instanceOf(Date);
|
|
4904
|
+
var isLooseValue = PropTypes.oneOfType([PropTypes.string, isValue]);
|
|
4905
|
+
Calendar$1.propTypes = {
|
|
4906
|
+
activeStartDate: isActiveStartDate,
|
|
4907
|
+
allowPartialRange: PropTypes.bool,
|
|
4908
|
+
calendarType: isCalendarType,
|
|
4909
|
+
className: isClassName,
|
|
4910
|
+
defaultActiveStartDate: isActiveStartDate,
|
|
4911
|
+
defaultValue: isLooseValue,
|
|
4912
|
+
defaultView: isView,
|
|
4913
|
+
formatDay: PropTypes.func,
|
|
4914
|
+
formatLongDate: PropTypes.func,
|
|
4915
|
+
formatMonth: PropTypes.func,
|
|
4916
|
+
formatMonthYear: PropTypes.func,
|
|
4917
|
+
formatShortWeekday: PropTypes.func,
|
|
4918
|
+
formatWeekday: PropTypes.func,
|
|
4919
|
+
formatYear: PropTypes.func,
|
|
4920
|
+
goToRangeStartOnSelect: PropTypes.bool,
|
|
4921
|
+
inputRef: isRef,
|
|
4922
|
+
locale: PropTypes.string,
|
|
4923
|
+
maxDate: isMaxDate,
|
|
4924
|
+
maxDetail: PropTypes.oneOf(allViews),
|
|
4925
|
+
minDate: isMinDate,
|
|
4926
|
+
minDetail: PropTypes.oneOf(allViews),
|
|
4927
|
+
navigationAriaLabel: PropTypes.string,
|
|
4928
|
+
navigationAriaLive: PropTypes.oneOf(['off', 'polite', 'assertive']),
|
|
4929
|
+
navigationLabel: PropTypes.func,
|
|
4930
|
+
next2AriaLabel: PropTypes.string,
|
|
4931
|
+
next2Label: PropTypes.node,
|
|
4932
|
+
nextAriaLabel: PropTypes.string,
|
|
4933
|
+
nextLabel: PropTypes.node,
|
|
4934
|
+
onActiveStartDateChange: PropTypes.func,
|
|
4935
|
+
onChange: PropTypes.func,
|
|
4936
|
+
onClickDay: PropTypes.func,
|
|
4937
|
+
onClickDecade: PropTypes.func,
|
|
4938
|
+
onClickMonth: PropTypes.func,
|
|
4939
|
+
onClickWeekNumber: PropTypes.func,
|
|
4940
|
+
onClickYear: PropTypes.func,
|
|
4941
|
+
onDrillDown: PropTypes.func,
|
|
4942
|
+
onDrillUp: PropTypes.func,
|
|
4943
|
+
onViewChange: PropTypes.func,
|
|
4944
|
+
prev2AriaLabel: PropTypes.string,
|
|
4945
|
+
prev2Label: PropTypes.node,
|
|
4946
|
+
prevAriaLabel: PropTypes.string,
|
|
4947
|
+
prevLabel: PropTypes.node,
|
|
4948
|
+
returnValue: PropTypes.oneOf(['start', 'end', 'range']),
|
|
4949
|
+
selectRange: PropTypes.bool,
|
|
4950
|
+
showDoubleView: PropTypes.bool,
|
|
4951
|
+
showFixedNumberOfWeeks: PropTypes.bool,
|
|
4952
|
+
showNavigation: PropTypes.bool,
|
|
4953
|
+
showNeighboringMonth: PropTypes.bool,
|
|
4954
|
+
showWeekNumbers: PropTypes.bool,
|
|
4955
|
+
tileClassName: PropTypes.oneOfType([PropTypes.func, isClassName]),
|
|
4956
|
+
tileContent: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
4957
|
+
tileDisabled: PropTypes.func,
|
|
4958
|
+
value: isLooseValue,
|
|
4959
|
+
view: isView
|
|
4960
|
+
};
|
|
4961
|
+
|
|
4962
|
+
var Calendar = Calendar$1;
|
|
4963
|
+
|
|
4964
|
+
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4965
|
+
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4966
|
+
styleInject(css_248z$H);
|
|
4967
|
+
|
|
4968
|
+
const DatePicker = (props) => {
|
|
4969
|
+
const { value = new Date(), selectRange, minDate, maxDate,
|
|
4970
|
+
// disabled,
|
|
4971
|
+
onChange, ...rest } = props;
|
|
4972
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
4973
|
+
const handleOnChange = (e) => {
|
|
4974
|
+
setCurrDate(e);
|
|
4975
|
+
onChange && onChange(e);
|
|
4976
|
+
};
|
|
4977
|
+
return (jsxRuntime.jsx(Calendar, { className: styles$H.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4980
|
+
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}";
|
|
4981
|
+
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
4982
|
+
styleInject(css_248z$G);
|
|
4983
|
+
|
|
4984
|
+
const Column = (props) => {
|
|
4985
|
+
const { children, className, ...rest } = props;
|
|
4986
|
+
const getCssClasses = () => {
|
|
4987
|
+
const cssClasses = [];
|
|
4988
|
+
cssClasses.push(styles$G.column);
|
|
4989
|
+
className && cssClasses.push(className);
|
|
4990
|
+
return cssClasses.filter(css => css).join(' ');
|
|
4991
|
+
};
|
|
4992
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
4993
|
+
};
|
|
4994
|
+
|
|
4995
|
+
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}";
|
|
4996
|
+
var styles$F = {"row":"Row-module_row__bTIWp"};
|
|
4997
|
+
styleInject(css_248z$F);
|
|
4998
|
+
|
|
4999
|
+
const Row = ({ children, direction = 'row', className, ...rest }) => {
|
|
5000
|
+
const getCssClasses = () => {
|
|
5001
|
+
const cssClasses = [];
|
|
5002
|
+
cssClasses.push(styles$F.row);
|
|
5003
|
+
className && cssClasses.push(className);
|
|
5004
|
+
direction && cssClasses.push(`flex-${direction}`);
|
|
5005
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5006
|
+
};
|
|
5007
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5008
|
+
};
|
|
5009
|
+
|
|
5010
|
+
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}";
|
|
5011
|
+
var styles$E = {"form":"Form-module_form__h9CkF"};
|
|
5012
|
+
styleInject(css_248z$E);
|
|
5013
|
+
|
|
5014
|
+
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}";
|
|
5015
|
+
var styles$D = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
5016
|
+
styleInject(css_248z$D);
|
|
5017
|
+
|
|
5018
|
+
const FormError = (props) => {
|
|
5019
|
+
const { className = styles$D.isInvalid, errors = [] } = props;
|
|
5020
|
+
return (jsxRuntime.jsx(React.Fragment, { children: errors &&
|
|
5021
|
+
jsxRuntime.jsx("div", { className: className, children: errors.map(e => jsxRuntime.jsx("div", { children: e.message }, e.validator)) }) }));
|
|
5022
|
+
};
|
|
5023
|
+
|
|
5024
|
+
const FormGroup = (props) => {
|
|
5025
|
+
const { children, className } = props;
|
|
5026
|
+
return jsxRuntime.jsx("div", { className: className, children: children });
|
|
5027
|
+
};
|
|
5028
|
+
|
|
5029
|
+
const FormHint = (props) => {
|
|
5030
|
+
const { children, className = 'form-text text-muted' } = props;
|
|
5031
|
+
const getCssClasses = () => {
|
|
5032
|
+
const cssClasses = [];
|
|
5033
|
+
className && cssClasses.push(className);
|
|
5034
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5035
|
+
};
|
|
5036
|
+
return (jsxRuntime.jsx("small", { className: getCssClasses(), children: children }));
|
|
5037
|
+
};
|
|
5038
|
+
|
|
5039
|
+
const FileInput = (props) => {
|
|
5040
|
+
const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
|
|
5041
|
+
const inputFileElement = React.useRef(null);
|
|
5042
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5043
|
+
const [model, setModel] = React.useState(value);
|
|
5044
|
+
const [fileList, setFileList] = React.useState();
|
|
5045
|
+
const getCssClasses = () => {
|
|
5046
|
+
const cssClasses = [];
|
|
5047
|
+
className && cssClasses.push(className);
|
|
5048
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5049
|
+
};
|
|
5050
|
+
const handleOnChange = (event) => {
|
|
5051
|
+
const values = event.target.files;
|
|
5052
|
+
setFileList(values);
|
|
5053
|
+
onChange && onChange(event);
|
|
5054
|
+
};
|
|
5055
|
+
const handleOnDelete = () => {
|
|
5056
|
+
alert('coming soon');
|
|
5057
|
+
};
|
|
5058
|
+
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 })] }));
|
|
5059
|
+
};
|
|
5060
|
+
|
|
5061
|
+
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}";
|
|
5062
|
+
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"};
|
|
5063
|
+
styleInject(css_248z$C);
|
|
5064
|
+
|
|
5065
|
+
const Select = (props) => {
|
|
5066
|
+
const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
|
|
5067
|
+
const [model, setModel] = React.useState('');
|
|
5068
|
+
const [hoverIndex, setHoverIndex] = React.useState(null);
|
|
5069
|
+
const [isShow, setIsShow] = React.useState(false);
|
|
5070
|
+
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
5071
|
+
const selectConainter = React.useRef(null);
|
|
5072
|
+
const getCssClass = () => {
|
|
5073
|
+
const cssClasses = [];
|
|
5074
|
+
className && cssClasses.push(className);
|
|
5075
|
+
disabled && cssClasses.push(styles$C['disabled']);
|
|
5076
|
+
readOnly && cssClasses.push(styles$C['readOnly']);
|
|
5077
|
+
cssClasses.push(styles$C.select);
|
|
5078
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5079
|
+
};
|
|
5080
|
+
React.useEffect(() => {
|
|
5081
|
+
const newValue = value ? value : '';
|
|
5082
|
+
writeValue(newValue);
|
|
5083
|
+
if (newValue) {
|
|
5084
|
+
const option = options.find(o => o.value === newValue);
|
|
5085
|
+
if (option) {
|
|
5086
|
+
setHoverIndex(options.indexOf(option));
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
}, [value, options]);
|
|
5090
|
+
React.useEffect(() => {
|
|
5091
|
+
if (hoverIndex) {
|
|
5092
|
+
scrollIntoView(hoverIndex);
|
|
5093
|
+
}
|
|
5094
|
+
}, [hoverIndex, isShow]);
|
|
5095
|
+
const scrollIntoView = (index) => {
|
|
5096
|
+
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
5097
|
+
if (htmlListItem) {
|
|
5098
|
+
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
5099
|
+
}
|
|
5100
|
+
};
|
|
5101
|
+
const writeValue = (val) => setModel(val);
|
|
5102
|
+
React.useEffect(() => {
|
|
5103
|
+
if (!multiple) {
|
|
5104
|
+
const newOption = options.find(o => o.value === model);
|
|
5105
|
+
if (newOption) {
|
|
5106
|
+
setSelectedOptions([newOption]);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
else {
|
|
5110
|
+
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
5111
|
+
setSelectedOptions([...filteredOptions]);
|
|
5112
|
+
}
|
|
5113
|
+
}, [model, multiple]);
|
|
5114
|
+
const handleOnClick = (option) => {
|
|
5115
|
+
let newValue = multiple ? [] : '';
|
|
5116
|
+
if (!multiple) {
|
|
5117
|
+
if (model !== option.value) {
|
|
5118
|
+
newValue = option.value;
|
|
5119
|
+
onChange && onChange(newValue);
|
|
5120
|
+
}
|
|
5121
|
+
hide();
|
|
5122
|
+
}
|
|
5123
|
+
else {
|
|
5124
|
+
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
5125
|
+
if (selectedOption) {
|
|
5126
|
+
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
5127
|
+
}
|
|
5128
|
+
else {
|
|
5129
|
+
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
5130
|
+
newValue.push(option.value);
|
|
5131
|
+
}
|
|
5132
|
+
onChange && onChange(newValue);
|
|
5133
|
+
}
|
|
5134
|
+
writeValue(newValue);
|
|
5135
|
+
};
|
|
5136
|
+
const show = () => {
|
|
5137
|
+
if (!disabled && !readOnly) {
|
|
5138
|
+
setIsShow(true);
|
|
5139
|
+
}
|
|
5140
|
+
};
|
|
5141
|
+
const hide = () => setIsShow(false);
|
|
5142
|
+
const isActive = (option) => {
|
|
5143
|
+
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
5144
|
+
};
|
|
5145
|
+
const renderSingleViewModel = () => {
|
|
5146
|
+
let result = null;
|
|
5147
|
+
if (selectedOptions.length > 0) {
|
|
5148
|
+
result = jsxRuntime.jsx("span", { children: selectedOptions[0].label });
|
|
5149
|
+
}
|
|
5150
|
+
return result;
|
|
5151
|
+
};
|
|
5152
|
+
const renderMultipleViewModel = () => {
|
|
5153
|
+
let result = null;
|
|
5154
|
+
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5155
|
+
result = selectedOptions
|
|
5156
|
+
.map(option => jsxRuntime.jsx(Chip, { color: exports.COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value));
|
|
5157
|
+
}
|
|
5158
|
+
else {
|
|
5159
|
+
result = jsxRuntime.jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
5160
|
+
}
|
|
5161
|
+
return result;
|
|
5162
|
+
};
|
|
5163
|
+
const handleOnDelete = (event, option) => {
|
|
5164
|
+
event.stopPropagation();
|
|
5165
|
+
handleOnClick(option);
|
|
5166
|
+
};
|
|
5167
|
+
// TODO - extract with wrapper?
|
|
5168
|
+
const handleOnKeyDown = (e) => {
|
|
5169
|
+
if (isShow) {
|
|
5170
|
+
onKeyDown && onKeyDown(e);
|
|
5171
|
+
switch (e.code) {
|
|
5172
|
+
case 'Escape':
|
|
5173
|
+
hide();
|
|
5174
|
+
break;
|
|
5175
|
+
case 'ArrowDown':
|
|
5176
|
+
if (hoverIndex) {
|
|
5177
|
+
setHoverIndex(hoverIndex + 1);
|
|
5178
|
+
}
|
|
5179
|
+
break;
|
|
5180
|
+
case 'ArrowUp':
|
|
5181
|
+
// TODO
|
|
5182
|
+
if (hoverIndex) {
|
|
5183
|
+
setHoverIndex(hoverIndex - 1);
|
|
5184
|
+
}
|
|
5185
|
+
break;
|
|
5186
|
+
case 'Enter':
|
|
5187
|
+
if (hoverIndex) {
|
|
5188
|
+
const option = options[hoverIndex];
|
|
5189
|
+
if (option) {
|
|
5190
|
+
handleOnClick(option);
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5193
|
+
break;
|
|
5194
|
+
}
|
|
5195
|
+
}
|
|
5196
|
+
};
|
|
5197
|
+
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 &&
|
|
5198
|
+
jsxRuntime.jsx("div", { className: styles$C.chipContainer, children: renderMultipleViewModel() }), jsxRuntime.jsx(Icon, { className: "ml-auto", children: jsxRuntime.jsx(ChevronDownSolidIcon, {}) })] }) }), isShow &&
|
|
5199
|
+
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 &&
|
|
5200
|
+
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() })] })] }));
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
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}";
|
|
5204
|
+
var styles$B = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
5205
|
+
styleInject(css_248z$B);
|
|
5206
|
+
|
|
5207
|
+
const Textarea = (props) => {
|
|
5208
|
+
const { className, error, ...rest } = props;
|
|
5209
|
+
const getCssClass = () => {
|
|
5210
|
+
const cssClasses = [];
|
|
5211
|
+
cssClasses.push(styles$B.textarea);
|
|
5212
|
+
className && cssClasses.push(className);
|
|
5213
|
+
error && cssClasses.push(styles$B['isInvalid']);
|
|
5214
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5215
|
+
};
|
|
5216
|
+
return (jsxRuntime.jsx("textarea", { className: getCssClass(), ...rest }));
|
|
5698
5217
|
};
|
|
5699
5218
|
|
|
5700
|
-
var
|
|
5219
|
+
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}";
|
|
5220
|
+
var styles$A = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
|
|
5221
|
+
styleInject(css_248z$A);
|
|
5222
|
+
|
|
5223
|
+
const FormInput = (props) => {
|
|
5224
|
+
const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
|
|
5225
|
+
const getCssClasses = () => {
|
|
5226
|
+
const cssClasses = [];
|
|
5227
|
+
cssClasses.push(styles$A.formInput);
|
|
5228
|
+
className && cssClasses.push(className);
|
|
5229
|
+
!isValid && cssClasses.push(styles$A['isInvalid']);
|
|
5230
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5231
|
+
};
|
|
5232
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5233
|
+
const handleOnInput = (value, type, name) => {
|
|
5234
|
+
onInput && onInput({ value: value, type: type, name: name });
|
|
5235
|
+
};
|
|
5236
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5237
|
+
const handleOnChange = (value, type, name) => {
|
|
5238
|
+
onChange && onChange({ value: value, type: type, name: name });
|
|
5239
|
+
};
|
|
5240
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(type === 'text' ||
|
|
5241
|
+
type === 'date' ||
|
|
5242
|
+
type === 'datetime-local' ||
|
|
5243
|
+
type === 'email' ||
|
|
5244
|
+
type === 'number' ||
|
|
5245
|
+
type === 'password' ||
|
|
5246
|
+
type === 'color' ||
|
|
5247
|
+
type === 'time')
|
|
5248
|
+
&&
|
|
5249
|
+
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' &&
|
|
5250
|
+
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' &&
|
|
5251
|
+
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' &&
|
|
5252
|
+
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' &&
|
|
5253
|
+
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' &&
|
|
5254
|
+
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' &&
|
|
5255
|
+
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)) })] }));
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
var css_248z$z = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
5259
|
+
var styles$z = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
5260
|
+
styleInject(css_248z$z);
|
|
5261
|
+
|
|
5262
|
+
const FormLabel = ({ children, className, htmlFor, ...rest }) => {
|
|
5263
|
+
const getCssClasses = () => {
|
|
5264
|
+
const cssClasses = [];
|
|
5265
|
+
cssClasses.push(styles$z.formLabel);
|
|
5266
|
+
className && cssClasses.push(className);
|
|
5267
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5268
|
+
};
|
|
5269
|
+
return (jsxRuntime.jsx("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest, children: children }));
|
|
5270
|
+
};
|
|
5271
|
+
|
|
5272
|
+
const IsEmptyValidator = (value) => value?.trim() === ''
|
|
5273
|
+
|| value === null
|
|
5274
|
+
|| value === undefined;
|
|
5275
|
+
|
|
5276
|
+
const EmailValidator = (value) => {
|
|
5277
|
+
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
5278
|
+
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
5279
|
+
return isInvalid;
|
|
5280
|
+
};
|
|
5281
|
+
|
|
5282
|
+
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5283
|
+
|
|
5284
|
+
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5285
|
+
|
|
5286
|
+
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5287
|
+
|
|
5288
|
+
class Form extends React.Component {
|
|
5289
|
+
constructor(props) {
|
|
5290
|
+
super(props);
|
|
5291
|
+
this.myForm = React.createRef();
|
|
5292
|
+
this.state = {
|
|
5293
|
+
controls: undefined,
|
|
5294
|
+
isValid: false,
|
|
5295
|
+
isChanged: false,
|
|
5296
|
+
isSubmitted: false,
|
|
5297
|
+
submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
|
|
5298
|
+
};
|
|
5299
|
+
}
|
|
5300
|
+
getCssClasses() {
|
|
5301
|
+
const cssClasses = [];
|
|
5302
|
+
cssClasses.push(styles$E.form);
|
|
5303
|
+
this.props.className && cssClasses.push(this.props.className);
|
|
5304
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5305
|
+
}
|
|
5306
|
+
static getDerivedStateFromProps(nextProps, state) {
|
|
5307
|
+
if (!state.controls && nextProps.controls) {
|
|
5308
|
+
return { controls: nextProps.controls };
|
|
5309
|
+
}
|
|
5310
|
+
return null;
|
|
5311
|
+
}
|
|
5312
|
+
handleChange() {
|
|
5313
|
+
// get value by myForm instead of getControl?
|
|
5314
|
+
if (this.state.isChanged || this.state.isSubmitted) {
|
|
5315
|
+
const keys = Object.keys(this.state.controls);
|
|
5316
|
+
const values = keys.reduce((obj, f) => {
|
|
5317
|
+
const control = this.getControl(f);
|
|
5318
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5319
|
+
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
5320
|
+
control.value &&
|
|
5321
|
+
isValidDate(control.value)
|
|
5322
|
+
? new Date(control.value).toISOString()
|
|
5323
|
+
: control.value;
|
|
5324
|
+
return {
|
|
5325
|
+
...obj,
|
|
5326
|
+
[f]: newValue,
|
|
5327
|
+
};
|
|
5328
|
+
}, {});
|
|
5329
|
+
if (this.state.isValid && this.state.isSubmitted) {
|
|
5330
|
+
this.props.onSubmit && this.props.onSubmit(values);
|
|
5331
|
+
}
|
|
5332
|
+
this.props.onChange && this.props.onChange(values);
|
|
5333
|
+
this.setState({ isChanged: false, isSubmitted: false });
|
|
5334
|
+
}
|
|
5335
|
+
}
|
|
5336
|
+
// extract to service?
|
|
5337
|
+
validateField(fieldValue, fieldValidators) {
|
|
5338
|
+
const errors = [];
|
|
5339
|
+
if (fieldValidators) {
|
|
5340
|
+
for (const validator of fieldValidators) {
|
|
5341
|
+
const validatorSplitted = validator.split(':');
|
|
5342
|
+
const validatorName = validatorSplitted[0];
|
|
5343
|
+
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
5344
|
+
switch (validatorName) {
|
|
5345
|
+
case 'required':
|
|
5346
|
+
if (IsEmptyValidator(fieldValue)) {
|
|
5347
|
+
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
5348
|
+
}
|
|
5349
|
+
break;
|
|
5350
|
+
case 'email':
|
|
5351
|
+
if (EmailValidator(fieldValue)) {
|
|
5352
|
+
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
5353
|
+
}
|
|
5354
|
+
break;
|
|
5355
|
+
case 'min':
|
|
5356
|
+
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
5357
|
+
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
5358
|
+
}
|
|
5359
|
+
break;
|
|
5360
|
+
case 'max':
|
|
5361
|
+
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
5362
|
+
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
5363
|
+
}
|
|
5364
|
+
break;
|
|
5365
|
+
case 'match':
|
|
5366
|
+
if (validatorParam) {
|
|
5367
|
+
const matchControl = this.getControl(validatorParam);
|
|
5368
|
+
if (matchControl) {
|
|
5369
|
+
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
5370
|
+
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
else {
|
|
5374
|
+
console.error(`Form: Field ${validatorParam} not found`);
|
|
5375
|
+
}
|
|
5376
|
+
}
|
|
5377
|
+
break;
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
return errors;
|
|
5382
|
+
}
|
|
5383
|
+
handleInputChange(name, value) {
|
|
5384
|
+
const field = this.getControl(name);
|
|
5385
|
+
field.value = value;
|
|
5386
|
+
// redundant mit handleOnBlur
|
|
5387
|
+
field.isDirty = true;
|
|
5388
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5389
|
+
field.isValid = field.errors.length === 0;
|
|
5390
|
+
const newControls = { ...this.state.controls };
|
|
5391
|
+
newControls[name] = field;
|
|
5392
|
+
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
5393
|
+
}
|
|
5394
|
+
handleOnBlur(e) {
|
|
5395
|
+
if (this.props.validateOnBlur) {
|
|
5396
|
+
const { name } = e.target;
|
|
5397
|
+
const field = this.getControl(name);
|
|
5398
|
+
field.isDirty = true;
|
|
5399
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5400
|
+
field.isValid = field.errors.length === 0;
|
|
5401
|
+
const controls = this.state.controls;
|
|
5402
|
+
if (controls) {
|
|
5403
|
+
controls[name] = field;
|
|
5404
|
+
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
5405
|
+
}
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
isRequired(fieldName) {
|
|
5409
|
+
let result = false;
|
|
5410
|
+
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
5411
|
+
return result;
|
|
5412
|
+
}
|
|
5413
|
+
isInvalid(fieldName) {
|
|
5414
|
+
let result = false;
|
|
5415
|
+
const field = this.getControl(fieldName);
|
|
5416
|
+
result = field.isDirty && !field.isValid;
|
|
5417
|
+
return result;
|
|
5418
|
+
}
|
|
5419
|
+
getControl(name) {
|
|
5420
|
+
return this.state.controls[name];
|
|
5421
|
+
}
|
|
5422
|
+
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
5423
|
+
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
5424
|
+
return (jsxRuntime.jsx(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' '), children: label }));
|
|
5425
|
+
}
|
|
5426
|
+
handleFormSubmit() {
|
|
5427
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5428
|
+
const field = this.getControl(fieldKey);
|
|
5429
|
+
// redundant mit handleBlur
|
|
5430
|
+
field.isDirty = true;
|
|
5431
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5432
|
+
field.isValid = field.errors.length === 0;
|
|
5433
|
+
}
|
|
5434
|
+
this.setState({
|
|
5435
|
+
controls: { ...this.state.controls },
|
|
5436
|
+
isSubmitted: true,
|
|
5437
|
+
isValid: Object.keys(this.state.controls)
|
|
5438
|
+
.map(f => this.getControl(f).isValid)
|
|
5439
|
+
.every(valid => valid === true),
|
|
5440
|
+
}, () => this.handleChange());
|
|
5441
|
+
}
|
|
5442
|
+
// trigger via ref
|
|
5443
|
+
handleFormReset() {
|
|
5444
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5445
|
+
const field = this.getControl(fieldKey);
|
|
5446
|
+
field.value = '';
|
|
5447
|
+
field.isDirty = false;
|
|
5448
|
+
field.errors = [];
|
|
5449
|
+
field.isValid = field.errors.length === 0;
|
|
5450
|
+
}
|
|
5451
|
+
this.setState({
|
|
5452
|
+
controls: { ...this.state.controls },
|
|
5453
|
+
isSubmitted: false,
|
|
5454
|
+
isChanged: false,
|
|
5455
|
+
isValid: false,
|
|
5456
|
+
});
|
|
5457
|
+
}
|
|
5458
|
+
handleOnKeyDown(e) {
|
|
5459
|
+
if (e.key === 'Enter') {
|
|
5460
|
+
e.preventDefault();
|
|
5461
|
+
this.state.submitOnEnter && this.handleFormSubmit();
|
|
5462
|
+
}
|
|
5463
|
+
}
|
|
5464
|
+
destroy() {
|
|
5465
|
+
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
5466
|
+
}
|
|
5467
|
+
getFormGroupCssClass(fieldKey) {
|
|
5468
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
5469
|
+
}
|
|
5470
|
+
render() {
|
|
5471
|
+
return (jsxRuntime.jsx("form", { className: this.getCssClasses(), ref: this.myForm, children: this.state &&
|
|
5472
|
+
this.state.controls &&
|
|
5473
|
+
Object.keys(this.state.controls).map(fieldKey => {
|
|
5474
|
+
return (jsxRuntime.jsxs(FormGroup, { className: this.getFormGroupCssClass(fieldKey), children: [this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
5475
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5476
|
+
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' &&
|
|
5477
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5478
|
+
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));
|
|
5479
|
+
}) }));
|
|
5480
|
+
}
|
|
5481
|
+
}
|
|
5482
|
+
function isValidDate(dateObject) {
|
|
5483
|
+
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
5484
|
+
}
|
|
5701
5485
|
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5486
|
+
class FormControl {
|
|
5487
|
+
constructor(
|
|
5488
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5489
|
+
value, validators = [], type, config) {
|
|
5490
|
+
this.value = value;
|
|
5491
|
+
this.validators = validators;
|
|
5492
|
+
this.type = type;
|
|
5493
|
+
this.config = config;
|
|
5494
|
+
this.errors = [];
|
|
5495
|
+
this.isValid = false;
|
|
5496
|
+
this.isDirty = false;
|
|
5497
|
+
}
|
|
5498
|
+
}
|
|
5705
5499
|
|
|
5706
|
-
const
|
|
5707
|
-
const {
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5500
|
+
const DaySelect = (props) => {
|
|
5501
|
+
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
5502
|
+
React.useEffect(() => {
|
|
5503
|
+
init();
|
|
5504
|
+
}, [month, year]);
|
|
5505
|
+
const init = () => {
|
|
5506
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
5507
|
+
const newDays = [];
|
|
5508
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
5509
|
+
newDays.push({ value: i.toString(), label: i.toString() });
|
|
5510
|
+
}
|
|
5511
|
+
setDayOptions(newDays);
|
|
5512
|
+
};
|
|
5513
|
+
const [value, setValue] = React.useState(day);
|
|
5514
|
+
const [dayOptions, setDayOptions] = React.useState();
|
|
5515
|
+
const getCssClasses = () => {
|
|
5516
|
+
const cssClasses = [];
|
|
5517
|
+
className && cssClasses.push(className);
|
|
5518
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5519
|
+
};
|
|
5711
5520
|
const handleOnChange = (e) => {
|
|
5712
|
-
|
|
5521
|
+
setValue(e);
|
|
5713
5522
|
onChange && onChange(e);
|
|
5714
5523
|
};
|
|
5715
|
-
return (
|
|
5524
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
5716
5525
|
};
|
|
5717
5526
|
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
const
|
|
5723
|
-
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5527
|
+
const MonthSelect = (props) => {
|
|
5528
|
+
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
5529
|
+
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
5530
|
+
const [newValue, setNewValue] = React.useState(value);
|
|
5531
|
+
const [monthOptions, setMonthOptions] = React.useState();
|
|
5724
5532
|
React.useEffect(() => {
|
|
5725
|
-
|
|
5726
|
-
return () => {
|
|
5727
|
-
document.body.classList.remove(styles$y.drawerOpen);
|
|
5728
|
-
};
|
|
5533
|
+
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
5729
5534
|
}, []);
|
|
5730
|
-
const handleClickBackdrop = () => {
|
|
5731
|
-
onClickBackdrop && onClickBackdrop();
|
|
5732
|
-
};
|
|
5733
|
-
return (React__default["default"].createElement(Portal$1, { className: 'drawer-root', target: target },
|
|
5734
|
-
React__default["default"].createElement(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest }, children),
|
|
5735
|
-
!permanent && React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
5736
|
-
};
|
|
5737
|
-
const DrawerContent = (props) => {
|
|
5738
|
-
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5739
5535
|
const getCssClasses = () => {
|
|
5740
5536
|
const cssClasses = [];
|
|
5741
|
-
cssClasses.push(styles$y.drawer);
|
|
5742
|
-
shadow && cssClasses.push(styles$y.shadow);
|
|
5743
|
-
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5744
|
-
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5745
5537
|
className && cssClasses.push(className);
|
|
5746
5538
|
return cssClasses.filter(css => css).join(' ');
|
|
5747
5539
|
};
|
|
5748
|
-
const
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
};
|
|
5752
|
-
const getStyles = () => {
|
|
5753
|
-
return !permanent ? positionStyles[position] : undefined;
|
|
5540
|
+
const handleOnChange = (e) => {
|
|
5541
|
+
setNewValue(e);
|
|
5542
|
+
onChange && onChange(e);
|
|
5754
5543
|
};
|
|
5755
|
-
return (
|
|
5544
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
5756
5545
|
};
|
|
5757
5546
|
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
const MenuBody = (props) => {
|
|
5763
|
-
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5764
|
-
const [popperInstance, setPopperInstance] = React.useState();
|
|
5765
|
-
const menuBodyRef = React.useRef(null);
|
|
5547
|
+
const YearSelect = (props) => {
|
|
5548
|
+
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
5549
|
+
const [newValue, setNewValue] = React.useState(value.toString());
|
|
5550
|
+
const [years, setYears] = React.useState();
|
|
5766
5551
|
React.useEffect(() => {
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
modifiers: [
|
|
5771
|
-
{
|
|
5772
|
-
name: 'offset',
|
|
5773
|
-
options: {
|
|
5774
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5775
|
-
offset: ({ placement, popper }) => {
|
|
5776
|
-
if (placement === 'left-start') {
|
|
5777
|
-
return [0, -popper.width]; // y, x
|
|
5778
|
-
}
|
|
5779
|
-
if (placement === 'right-start') {
|
|
5780
|
-
return [0, -popper.width];
|
|
5781
|
-
}
|
|
5782
|
-
return [];
|
|
5783
|
-
},
|
|
5784
|
-
},
|
|
5785
|
-
},
|
|
5786
|
-
]
|
|
5787
|
-
});
|
|
5788
|
-
setPopperInstance(popperInstance);
|
|
5789
|
-
}
|
|
5790
|
-
else {
|
|
5791
|
-
popperInstance?.destroy();
|
|
5552
|
+
const newYears = [];
|
|
5553
|
+
for (let i = from; i <= to; i++) {
|
|
5554
|
+
newYears.push({ value: i.toString(), label: i.toString() });
|
|
5792
5555
|
}
|
|
5793
|
-
|
|
5556
|
+
setYears(newYears.reverse());
|
|
5557
|
+
}, [from, to]);
|
|
5794
5558
|
const getCssClasses = () => {
|
|
5795
5559
|
const cssClasses = [];
|
|
5796
|
-
cssClasses.push(styles$x.menuBody);
|
|
5797
|
-
shadow && cssClasses.push(styles$x.shadow);
|
|
5798
5560
|
className && cssClasses.push(className);
|
|
5799
5561
|
return cssClasses.filter(css => css).join(' ');
|
|
5800
5562
|
};
|
|
5801
|
-
const
|
|
5802
|
-
|
|
5563
|
+
const handleOnChange = (e) => {
|
|
5564
|
+
setNewValue(e);
|
|
5565
|
+
onChange && onChange(parseInt(e));
|
|
5803
5566
|
};
|
|
5804
|
-
|
|
5805
|
-
popperInstance?.destroy();
|
|
5806
|
-
});
|
|
5807
|
-
return (React__default["default"].createElement(Portal$1, { className: 'menu-root' },
|
|
5808
|
-
React__default["default"].createElement("div", { ref: menuBodyRef, className: getCssClasses() },
|
|
5809
|
-
React__default["default"].createElement(List, null, children)),
|
|
5810
|
-
React__default["default"].createElement(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })));
|
|
5567
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
5811
5568
|
};
|
|
5812
5569
|
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5570
|
+
exports.DATEMODE = void 0;
|
|
5571
|
+
(function (DATEMODE) {
|
|
5572
|
+
DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
|
|
5573
|
+
DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
|
|
5574
|
+
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
5575
|
+
})(exports.DATEMODE || (exports.DATEMODE = {}));
|
|
5576
|
+
const DateSelect = (props) => {
|
|
5577
|
+
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
5817
5578
|
const getCssClasses = () => {
|
|
5818
5579
|
const cssClasses = [];
|
|
5580
|
+
cssClasses.push('row');
|
|
5819
5581
|
className && cssClasses.push(className);
|
|
5820
5582
|
return cssClasses.filter(css => css).join(' ');
|
|
5821
5583
|
};
|
|
5822
|
-
const
|
|
5823
|
-
|
|
5584
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
5585
|
+
const handleOnChange = (e, mode) => {
|
|
5586
|
+
const currYear = mode === exports.DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
5587
|
+
const currMonth = mode === exports.DATEMODE.MONTH ? e : currDate.getMonth();
|
|
5588
|
+
const currday = mode === exports.DATEMODE.DAY ? e : currDate.getDate();
|
|
5589
|
+
const newDate = new Date(currYear, currMonth, currday);
|
|
5590
|
+
setCurrDate(newDate);
|
|
5591
|
+
onChange && onChange(newDate);
|
|
5824
5592
|
};
|
|
5825
|
-
return (
|
|
5826
|
-
React__default["default"].createElement("div", { ref: toggleContainerRef }, toggle),
|
|
5827
|
-
open &&
|
|
5828
|
-
React__default["default"].createElement(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop }, children)));
|
|
5593
|
+
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) })] })] }));
|
|
5829
5594
|
};
|
|
5830
5595
|
|
|
5831
|
-
|
|
5832
|
-
|
|
5596
|
+
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}";
|
|
5597
|
+
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"};
|
|
5598
|
+
styleInject(css_248z$y);
|
|
5599
|
+
|
|
5600
|
+
const Drawer = (props) => {
|
|
5601
|
+
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5602
|
+
React.useEffect(() => {
|
|
5603
|
+
document.body.classList.add(styles$y.drawerOpen);
|
|
5604
|
+
return () => {
|
|
5605
|
+
document.body.classList.remove(styles$y.drawerOpen);
|
|
5606
|
+
};
|
|
5607
|
+
}, []);
|
|
5608
|
+
const handleClickBackdrop = () => {
|
|
5609
|
+
onClickBackdrop && onClickBackdrop();
|
|
5610
|
+
};
|
|
5611
|
+
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 })] }));
|
|
5612
|
+
};
|
|
5613
|
+
const DrawerContent = (props) => {
|
|
5614
|
+
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5833
5615
|
const getCssClasses = () => {
|
|
5834
5616
|
const cssClasses = [];
|
|
5617
|
+
cssClasses.push(styles$y.drawer);
|
|
5618
|
+
shadow && cssClasses.push(styles$y.shadow);
|
|
5619
|
+
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5620
|
+
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5621
|
+
className && cssClasses.push(className);
|
|
5835
5622
|
return cssClasses.filter(css => css).join(' ');
|
|
5836
5623
|
};
|
|
5837
|
-
const
|
|
5838
|
-
|
|
5839
|
-
|
|
5624
|
+
const positionStyles = {
|
|
5625
|
+
left: { left: '0px' },
|
|
5626
|
+
right: { right: '0px' }
|
|
5840
5627
|
};
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
return children;
|
|
5628
|
+
const getStyles = () => {
|
|
5629
|
+
return !permanent ? positionStyles[position] : undefined;
|
|
5630
|
+
};
|
|
5631
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), style: getStyles(), ...rest, children: children }));
|
|
5846
5632
|
};
|
|
5847
5633
|
|
|
5848
|
-
var css_248z$
|
|
5849
|
-
var styles$
|
|
5850
|
-
styleInject(css_248z$
|
|
5851
|
-
|
|
5852
|
-
const MenuDivider = () => React__default["default"].createElement("div", { className: styles$w.menuItemDivider });
|
|
5853
|
-
|
|
5854
|
-
var css_248z$v = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5855
|
-
var styles$v = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5856
|
-
styleInject(css_248z$v);
|
|
5634
|
+
var css_248z$x = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5635
|
+
var styles$x = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5636
|
+
styleInject(css_248z$x);
|
|
5857
5637
|
|
|
5858
5638
|
const ExpansionPanelContent = ({ children }) => {
|
|
5859
|
-
return (
|
|
5639
|
+
return (jsxRuntime.jsx("div", { className: styles$x.expansionPanelContent, children: children }));
|
|
5860
5640
|
};
|
|
5861
5641
|
|
|
5862
|
-
var css_248z$
|
|
5863
|
-
var styles$
|
|
5864
|
-
styleInject(css_248z$
|
|
5642
|
+
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}";
|
|
5643
|
+
var styles$w = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
|
|
5644
|
+
styleInject(css_248z$w);
|
|
5865
5645
|
|
|
5866
5646
|
const ExpansionPanelHeader = (props) => {
|
|
5867
5647
|
const { children, isExpanded, onClick } = props;
|
|
@@ -5869,15 +5649,12 @@ const ExpansionPanelHeader = (props) => {
|
|
|
5869
5649
|
e.stopPropagation();
|
|
5870
5650
|
onClick && onClick(e);
|
|
5871
5651
|
};
|
|
5872
|
-
return (
|
|
5873
|
-
children,
|
|
5874
|
-
React__default["default"].createElement("span", { className: "ml-auto text-muted" },
|
|
5875
|
-
React__default["default"].createElement(Icon, null, isExpanded ? React__default["default"].createElement(ChevronUpSolidIcon, null) : React__default["default"].createElement(ChevronDownSolidIcon, null)))));
|
|
5652
|
+
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, {}) }) })] }));
|
|
5876
5653
|
};
|
|
5877
5654
|
|
|
5878
|
-
var css_248z$
|
|
5879
|
-
var styles$
|
|
5880
|
-
styleInject(css_248z$
|
|
5655
|
+
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}";
|
|
5656
|
+
var styles$v = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
|
|
5657
|
+
styleInject(css_248z$v);
|
|
5881
5658
|
|
|
5882
5659
|
const ExpansionPanel = (props) => {
|
|
5883
5660
|
const { header, children, isExpanded = false, shadow, onChange } = props;
|
|
@@ -5887,34 +5664,32 @@ const ExpansionPanel = (props) => {
|
|
|
5887
5664
|
}, [isExpanded]);
|
|
5888
5665
|
const getCssClasses = () => {
|
|
5889
5666
|
const cssClasses = [];
|
|
5890
|
-
cssClasses.push(styles$
|
|
5667
|
+
cssClasses.push(styles$v.expansionPanel);
|
|
5891
5668
|
if (_isExpanded) {
|
|
5892
|
-
cssClasses.push(styles$
|
|
5669
|
+
cssClasses.push(styles$v.isExpanded);
|
|
5893
5670
|
}
|
|
5894
|
-
shadow && cssClasses.push(styles$
|
|
5671
|
+
shadow && cssClasses.push(styles$v.shadow);
|
|
5895
5672
|
return cssClasses.filter(css => css).join(' ');
|
|
5896
5673
|
};
|
|
5897
5674
|
const handleClickHeader = (event) => {
|
|
5898
5675
|
setIsExpanded(!_isExpanded);
|
|
5899
5676
|
onChange && onChange(event, !_isExpanded);
|
|
5900
5677
|
};
|
|
5901
|
-
return (
|
|
5902
|
-
|
|
5903
|
-
_isExpanded &&
|
|
5904
|
-
React__default["default"].createElement(ExpansionPanelContent, null, children)));
|
|
5678
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [jsxRuntime.jsx(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader, children: header }), _isExpanded &&
|
|
5679
|
+
jsxRuntime.jsx(ExpansionPanelContent, { children: children })] }));
|
|
5905
5680
|
};
|
|
5906
5681
|
|
|
5907
|
-
var css_248z$
|
|
5908
|
-
var styles$
|
|
5909
|
-
styleInject(css_248z$
|
|
5682
|
+
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}";
|
|
5683
|
+
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"};
|
|
5684
|
+
styleInject(css_248z$u);
|
|
5910
5685
|
|
|
5911
5686
|
const FloatingActionButton = (props) => {
|
|
5912
5687
|
const { className, icon, color = exports.COLOR.primary, fixed, position = 'rightBottom', size = exports.SIZE.lg, isActive, disabled, onClick } = props;
|
|
5913
5688
|
const getCssClasses = () => {
|
|
5914
5689
|
const cssClasses = [];
|
|
5915
|
-
cssClasses.push(styles$
|
|
5916
|
-
fixed && cssClasses.push(styles$
|
|
5917
|
-
position && fixed && cssClasses.push(styles$
|
|
5690
|
+
cssClasses.push(styles$u.fab);
|
|
5691
|
+
fixed && cssClasses.push(styles$u.fixed);
|
|
5692
|
+
position && fixed && cssClasses.push(styles$u[position]);
|
|
5918
5693
|
className && cssClasses.push(className);
|
|
5919
5694
|
return cssClasses.filter(css => css).join(' ');
|
|
5920
5695
|
};
|
|
@@ -5922,48 +5697,47 @@ const FloatingActionButton = (props) => {
|
|
|
5922
5697
|
e.stopPropagation();
|
|
5923
5698
|
onClick && onClick(e);
|
|
5924
5699
|
};
|
|
5925
|
-
return (
|
|
5700
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: exports.VARIANT.contained, onClick: handleClick }));
|
|
5926
5701
|
};
|
|
5927
5702
|
|
|
5928
|
-
var css_248z$
|
|
5929
|
-
var styles$
|
|
5930
|
-
styleInject(css_248z$
|
|
5703
|
+
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}";
|
|
5704
|
+
var styles$t = {"link":"Link-module_link__YlJQl"};
|
|
5705
|
+
styleInject(css_248z$t);
|
|
5931
5706
|
|
|
5932
5707
|
const Link = (props) => {
|
|
5933
5708
|
const { href = '#', className, target, children, ...rest } = props;
|
|
5934
5709
|
const [status, setStatus] = React.useState(exports.STATUS.NORMAL);
|
|
5935
|
-
const [cssClassName] = useCssClasses([styles$
|
|
5710
|
+
const [cssClassName] = useCssClasses([styles$t.link, className, status]);
|
|
5936
5711
|
const onMouseEnter = () => {
|
|
5937
5712
|
setStatus(exports.STATUS.HOVERED);
|
|
5938
5713
|
};
|
|
5939
5714
|
const onMouseLeave = () => {
|
|
5940
5715
|
setStatus(exports.STATUS.NORMAL);
|
|
5941
5716
|
};
|
|
5942
|
-
return (
|
|
5717
|
+
return (jsxRuntime.jsx("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest, children: children }));
|
|
5943
5718
|
};
|
|
5944
5719
|
|
|
5945
|
-
var css_248z$
|
|
5946
|
-
var styles$
|
|
5947
|
-
styleInject(css_248z$
|
|
5720
|
+
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}";
|
|
5721
|
+
var styles$s = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
|
|
5722
|
+
styleInject(css_248z$s);
|
|
5948
5723
|
|
|
5949
5724
|
const LoadingIndicator = ({ ...rest }) => {
|
|
5950
5725
|
const getCssClasses = () => {
|
|
5951
5726
|
const cssClasses = [];
|
|
5952
|
-
cssClasses.push(styles$
|
|
5727
|
+
cssClasses.push(styles$s.loadingIndicator);
|
|
5953
5728
|
return cssClasses.filter(css => css).join(' ');
|
|
5954
5729
|
};
|
|
5955
|
-
return (
|
|
5956
|
-
React__default["default"].createElement(SpinnerSolidIcon, null)));
|
|
5730
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(SpinnerSolidIcon, {}) }));
|
|
5957
5731
|
};
|
|
5958
5732
|
|
|
5959
5733
|
const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
5960
5734
|
const getCssClasses = () => {
|
|
5961
5735
|
const cssClasses = [];
|
|
5962
|
-
cssClasses.push(styles$
|
|
5963
|
-
isFixed && cssClasses.push(styles$
|
|
5736
|
+
cssClasses.push(styles$s.loadingIndicatorContainer);
|
|
5737
|
+
isFixed && cssClasses.push(styles$s.isFixed);
|
|
5964
5738
|
return cssClasses.filter(css => css).join(' ');
|
|
5965
5739
|
};
|
|
5966
|
-
return (
|
|
5740
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
5967
5741
|
};
|
|
5968
5742
|
|
|
5969
5743
|
var client = createCommonjsModule(function (module, exports) {
|
|
@@ -6004,8 +5778,7 @@ class LoadingIndicatorService {
|
|
|
6004
5778
|
this.container.classList.add('snackbar-container');
|
|
6005
5779
|
document.body.appendChild(this.container);
|
|
6006
5780
|
this.root = client_1(this.container);
|
|
6007
|
-
this.root.render(
|
|
6008
|
-
React__default["default"].createElement(LoadingIndicator, null)));
|
|
5781
|
+
this.root.render(jsxRuntime.jsx(LoadingIndicatorContainer, { isFixed: true, children: jsxRuntime.jsx(LoadingIndicator, {}) }));
|
|
6009
5782
|
}
|
|
6010
5783
|
hide() {
|
|
6011
5784
|
if (this.container) {
|
|
@@ -6018,6 +5791,97 @@ class LoadingIndicatorService {
|
|
|
6018
5791
|
}
|
|
6019
5792
|
const loadingIndicatorService = new LoadingIndicatorService();
|
|
6020
5793
|
|
|
5794
|
+
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}";
|
|
5795
|
+
var styles$r = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
|
|
5796
|
+
styleInject(css_248z$r);
|
|
5797
|
+
|
|
5798
|
+
const MenuBody = (props) => {
|
|
5799
|
+
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5800
|
+
const [popperInstance, setPopperInstance] = React.useState();
|
|
5801
|
+
const menuBodyRef = React.useRef(null);
|
|
5802
|
+
React.useEffect(() => {
|
|
5803
|
+
if (menuBodyRef && parentRef.current && menuBodyRef.current) {
|
|
5804
|
+
const popperInstance = core.createPopper(parentRef.current, menuBodyRef.current, {
|
|
5805
|
+
placement: `${menuPosition}-start`,
|
|
5806
|
+
modifiers: [
|
|
5807
|
+
{
|
|
5808
|
+
name: 'offset',
|
|
5809
|
+
options: {
|
|
5810
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5811
|
+
offset: ({ placement, popper }) => {
|
|
5812
|
+
if (placement === 'left-start') {
|
|
5813
|
+
return [0, -popper.width]; // y, x
|
|
5814
|
+
}
|
|
5815
|
+
if (placement === 'right-start') {
|
|
5816
|
+
return [0, -popper.width];
|
|
5817
|
+
}
|
|
5818
|
+
return [];
|
|
5819
|
+
},
|
|
5820
|
+
},
|
|
5821
|
+
},
|
|
5822
|
+
]
|
|
5823
|
+
});
|
|
5824
|
+
setPopperInstance(popperInstance);
|
|
5825
|
+
}
|
|
5826
|
+
else {
|
|
5827
|
+
popperInstance?.destroy();
|
|
5828
|
+
}
|
|
5829
|
+
}, [menuBodyRef]);
|
|
5830
|
+
const getCssClasses = () => {
|
|
5831
|
+
const cssClasses = [];
|
|
5832
|
+
cssClasses.push(styles$r.menuBody);
|
|
5833
|
+
shadow && cssClasses.push(styles$r.shadow);
|
|
5834
|
+
className && cssClasses.push(className);
|
|
5835
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5836
|
+
};
|
|
5837
|
+
const handleClickBackdrop = () => {
|
|
5838
|
+
onClickBackdrop && onClickBackdrop();
|
|
5839
|
+
};
|
|
5840
|
+
useOnDestroy(() => {
|
|
5841
|
+
popperInstance?.destroy();
|
|
5842
|
+
});
|
|
5843
|
+
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 })] }));
|
|
5844
|
+
};
|
|
5845
|
+
|
|
5846
|
+
const Menu = (props) => {
|
|
5847
|
+
const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
|
|
5848
|
+
const menuContainer = React.useRef(null);
|
|
5849
|
+
const toggleContainerRef = React.useRef(null);
|
|
5850
|
+
const getCssClasses = () => {
|
|
5851
|
+
const cssClasses = [];
|
|
5852
|
+
className && cssClasses.push(className);
|
|
5853
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5854
|
+
};
|
|
5855
|
+
const handleClickBackdrop = () => {
|
|
5856
|
+
onClickBackdrop && onClickBackdrop();
|
|
5857
|
+
};
|
|
5858
|
+
return (jsxRuntime.jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
|
|
5859
|
+
jsxRuntime.jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
|
|
5860
|
+
};
|
|
5861
|
+
|
|
5862
|
+
const MenuItem = (props) => {
|
|
5863
|
+
const { children, onClick, ...rest } = props;
|
|
5864
|
+
const getCssClasses = () => {
|
|
5865
|
+
const cssClasses = [];
|
|
5866
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5867
|
+
};
|
|
5868
|
+
const handleClick = (e) => {
|
|
5869
|
+
e.stopPropagation();
|
|
5870
|
+
onClick && onClick(e);
|
|
5871
|
+
};
|
|
5872
|
+
return (jsxRuntime.jsx(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest, children: children }));
|
|
5873
|
+
};
|
|
5874
|
+
|
|
5875
|
+
const MenuToggle = ({ children }) => {
|
|
5876
|
+
return children;
|
|
5877
|
+
};
|
|
5878
|
+
|
|
5879
|
+
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}";
|
|
5880
|
+
var styles$q = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
|
|
5881
|
+
styleInject(css_248z$q);
|
|
5882
|
+
|
|
5883
|
+
const MenuDivider = () => jsxRuntime.jsx("div", { className: styles$q.menuItemDivider });
|
|
5884
|
+
|
|
6021
5885
|
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}";
|
|
6022
5886
|
var styles$p = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
6023
5887
|
styleInject(css_248z$p);
|
|
@@ -6034,17 +5898,15 @@ const ModalHeader = (props) => {
|
|
|
6034
5898
|
const handleClick = () => {
|
|
6035
5899
|
onClose && onClose();
|
|
6036
5900
|
};
|
|
6037
|
-
return (
|
|
6038
|
-
|
|
6039
|
-
isDismissable &&
|
|
6040
|
-
React__default["default"].createElement(IconButton, { icon: React__default["default"].createElement(TimesSolidIcon, null), variant: exports.VARIANT.text, onClick: handleClick })));
|
|
5901
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5902
|
+
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), variant: exports.VARIANT.text, onClick: handleClick })] }));
|
|
6041
5903
|
};
|
|
6042
5904
|
|
|
6043
5905
|
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}";
|
|
6044
5906
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
6045
5907
|
styleInject(css_248z$o);
|
|
6046
5908
|
|
|
6047
|
-
const ModalBody = ({ children }) => (
|
|
5909
|
+
const ModalBody = ({ children }) => (jsxRuntime.jsx("div", { className: styles$o.modalBody, children: children }));
|
|
6048
5910
|
|
|
6049
5911
|
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}";
|
|
6050
5912
|
var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
|
|
@@ -6059,7 +5921,7 @@ const ModalFooter = (props) => {
|
|
|
6059
5921
|
className && cssClasses.push(className);
|
|
6060
5922
|
return cssClasses.filter(css => css).join(' ');
|
|
6061
5923
|
};
|
|
6062
|
-
return (
|
|
5924
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
6063
5925
|
};
|
|
6064
5926
|
|
|
6065
5927
|
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}";
|
|
@@ -6086,17 +5948,9 @@ const Modal = (props) => {
|
|
|
6086
5948
|
const handleClickBackdrop = () => {
|
|
6087
5949
|
onBackdropClick && onBackdropClick();
|
|
6088
5950
|
};
|
|
6089
|
-
return (
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
React__default["default"].createElement("div", { className: getCssClass() },
|
|
6093
|
-
React__default["default"].createElement("div", { className: styles$m.modalContent },
|
|
6094
|
-
header &&
|
|
6095
|
-
React__default["default"].createElement(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick() }, header),
|
|
6096
|
-
React__default["default"].createElement(ModalBody, null, children),
|
|
6097
|
-
footer &&
|
|
6098
|
-
React__default["default"].createElement(ModalFooter, null, footer))))),
|
|
6099
|
-
React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
|
|
5951
|
+
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 &&
|
|
5952
|
+
jsxRuntime.jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsxRuntime.jsx(ModalBody, { children: children }), footer &&
|
|
5953
|
+
jsxRuntime.jsx(ModalFooter, { children: footer })] }) }) }) }), jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6100
5954
|
};
|
|
6101
5955
|
|
|
6102
5956
|
exports.MODALTYPE = void 0;
|
|
@@ -6152,11 +6006,8 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6152
6006
|
}
|
|
6153
6007
|
button.handler && button.handler();
|
|
6154
6008
|
};
|
|
6155
|
-
return (
|
|
6156
|
-
|
|
6157
|
-
modalType === exports.MODALTYPE.FORM &&
|
|
6158
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
6159
|
-
React__default["default"].createElement(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }))));
|
|
6009
|
+
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 &&
|
|
6010
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6160
6011
|
};
|
|
6161
6012
|
|
|
6162
6013
|
class ModalService {
|
|
@@ -6174,7 +6025,7 @@ class ModalService {
|
|
|
6174
6025
|
this.hide();
|
|
6175
6026
|
};
|
|
6176
6027
|
this.root = client_1(this.container);
|
|
6177
|
-
this.root.render(
|
|
6028
|
+
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 }));
|
|
6178
6029
|
}
|
|
6179
6030
|
});
|
|
6180
6031
|
}
|
|
@@ -6192,7 +6043,7 @@ class ModalService {
|
|
|
6192
6043
|
this.hide();
|
|
6193
6044
|
};
|
|
6194
6045
|
this.root = client_1(this.container);
|
|
6195
|
-
this.root.render(
|
|
6046
|
+
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 }));
|
|
6196
6047
|
}
|
|
6197
6048
|
});
|
|
6198
6049
|
}
|
|
@@ -6229,7 +6080,7 @@ const NumberSelect = (props) => {
|
|
|
6229
6080
|
setNewValue(e);
|
|
6230
6081
|
onChange && onChange(e);
|
|
6231
6082
|
};
|
|
6232
|
-
return (
|
|
6083
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
6233
6084
|
};
|
|
6234
6085
|
|
|
6235
6086
|
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}";
|
|
@@ -6310,16 +6161,9 @@ const Tooltip = (props) => {
|
|
|
6310
6161
|
placement && cssClasses.push(styles$l[`placement-${placement}`]);
|
|
6311
6162
|
return cssClasses.filter(css => css).join(' ');
|
|
6312
6163
|
};
|
|
6313
|
-
return (
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
React__default["default"].createElement("div", { className: styles$l.tooltip, ref: refTooltip },
|
|
6317
|
-
React__default["default"].createElement("div", { className: 'd-flex align-items-center' },
|
|
6318
|
-
text,
|
|
6319
|
-
showClose &&
|
|
6320
|
-
React__default["default"].createElement(Icon, { className: 'ml-1', onClick: handleClickClose },
|
|
6321
|
-
React__default["default"].createElement(TimesSolidIcon, null))),
|
|
6322
|
-
React__default["default"].createElement("div", { className: getArrowStyles(), "data-popper-arrow": true }))));
|
|
6164
|
+
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 &&
|
|
6165
|
+
jsxRuntime.jsxs("div", { className: styles$l.tooltip, ref: refTooltip, children: [jsxRuntime.jsxs("div", { className: 'd-flex align-items-center', children: [text, showClose &&
|
|
6166
|
+
jsxRuntime.jsx(Icon, { className: 'ml-1', onClick: handleClickClose, children: jsxRuntime.jsx(TimesSolidIcon, {}) })] }), jsxRuntime.jsx("div", { className: getArrowStyles(), "data-popper-arrow": true })] })] }));
|
|
6323
6167
|
};
|
|
6324
6168
|
|
|
6325
6169
|
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}";
|
|
@@ -6361,9 +6205,7 @@ const ProgressBar = (props) => {
|
|
|
6361
6205
|
}
|
|
6362
6206
|
return `${width}%`;
|
|
6363
6207
|
};
|
|
6364
|
-
return (
|
|
6365
|
-
React__default["default"].createElement("div", { className: getCssClasses(), ...rest },
|
|
6366
|
-
React__default["default"].createElement("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }))));
|
|
6208
|
+
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" }) }) }));
|
|
6367
6209
|
};
|
|
6368
6210
|
|
|
6369
6211
|
class SidebarItemModel {
|
|
@@ -6429,40 +6271,87 @@ const Sidebar = (props) => {
|
|
|
6429
6271
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
6430
6272
|
navigate(e, `${itemPath}/${subItemPath}`);
|
|
6431
6273
|
};
|
|
6432
|
-
return (React__default["default"].
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
"(",
|
|
6439
|
-
item.items.length,
|
|
6440
|
-
")"))) }),
|
|
6441
|
-
item.items && item.items.length > 0 &&
|
|
6442
|
-
React__default["default"].createElement(ListItemAction, null, item.isCollapsed ? React__default["default"].createElement(ChevronDownSolidIcon, null) : React__default["default"].createElement(ChevronUpSolidIcon, null))),
|
|
6443
|
-
!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)))))))))));
|
|
6444
|
-
};
|
|
6445
|
-
|
|
6446
|
-
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}";
|
|
6447
|
-
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"};
|
|
6274
|
+
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 &&
|
|
6275
|
+
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))) }) }));
|
|
6276
|
+
};
|
|
6277
|
+
|
|
6278
|
+
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}";
|
|
6279
|
+
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6448
6280
|
styleInject(css_248z$j);
|
|
6449
6281
|
|
|
6282
|
+
const SkeletonAvatar = (props) => {
|
|
6283
|
+
const { className, ...rest } = props;
|
|
6284
|
+
const getCssClasses = () => {
|
|
6285
|
+
const cssClasses = [];
|
|
6286
|
+
cssClasses.push(styles$j.skeletonAvatar);
|
|
6287
|
+
className && cssClasses.push(className);
|
|
6288
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6289
|
+
};
|
|
6290
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6291
|
+
};
|
|
6292
|
+
|
|
6293
|
+
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}";
|
|
6294
|
+
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6295
|
+
styleInject(css_248z$i);
|
|
6296
|
+
|
|
6297
|
+
const SkeletonText = (props) => {
|
|
6298
|
+
const { className, ...rest } = props;
|
|
6299
|
+
const getCssClasses = () => {
|
|
6300
|
+
const cssClasses = [];
|
|
6301
|
+
cssClasses.push(styles$i.skeletonText);
|
|
6302
|
+
className && cssClasses.push(className);
|
|
6303
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6304
|
+
};
|
|
6305
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6306
|
+
};
|
|
6307
|
+
|
|
6308
|
+
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}";
|
|
6309
|
+
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6310
|
+
styleInject(css_248z$h);
|
|
6311
|
+
|
|
6312
|
+
const SkeletonFooter = (props) => {
|
|
6313
|
+
const { className, ...rest } = props;
|
|
6314
|
+
const getCssClasses = () => {
|
|
6315
|
+
const cssClasses = [];
|
|
6316
|
+
cssClasses.push(styles$h.skeletonFooter);
|
|
6317
|
+
className && cssClasses.push(className);
|
|
6318
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6319
|
+
};
|
|
6320
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6321
|
+
};
|
|
6322
|
+
|
|
6323
|
+
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}";
|
|
6324
|
+
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6325
|
+
styleInject(css_248z$g);
|
|
6326
|
+
|
|
6327
|
+
const SkeletonImage = (props) => {
|
|
6328
|
+
const { className, ...rest } = props;
|
|
6329
|
+
const getCssClasses = () => {
|
|
6330
|
+
const cssClasses = [];
|
|
6331
|
+
cssClasses.push(styles$g.skeletonImage);
|
|
6332
|
+
className && cssClasses.push(className);
|
|
6333
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6334
|
+
};
|
|
6335
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: styles$g.img }) }));
|
|
6336
|
+
};
|
|
6337
|
+
|
|
6338
|
+
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}";
|
|
6339
|
+
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"};
|
|
6340
|
+
styleInject(css_248z$f);
|
|
6341
|
+
|
|
6450
6342
|
const Snackbar = (props) => {
|
|
6451
6343
|
const { children, color = exports.COLOR.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6452
6344
|
const getCssClasses = () => {
|
|
6453
6345
|
const cssClasses = [];
|
|
6454
|
-
cssClasses.push(styles$
|
|
6346
|
+
cssClasses.push(styles$f.snackbar);
|
|
6455
6347
|
cssClasses.push(`shadow-lg`);
|
|
6456
|
-
cssClasses.push(styles$
|
|
6348
|
+
cssClasses.push(styles$f[color]);
|
|
6457
6349
|
return cssClasses.filter(css => css).join(' ');
|
|
6458
6350
|
};
|
|
6459
6351
|
const handleClickAction = (e) => {
|
|
6460
6352
|
onOk && onOk(e);
|
|
6461
6353
|
};
|
|
6462
|
-
return (
|
|
6463
|
-
React__default["default"].createElement("div", { className: styles$j.text }, children),
|
|
6464
|
-
React__default["default"].createElement("div", { className: styles$j.action + ' text-accent', onClick: handleClickAction },
|
|
6465
|
-
React__default["default"].createElement("span", null, actionText))));
|
|
6354
|
+
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 }) })] }));
|
|
6466
6355
|
};
|
|
6467
6356
|
|
|
6468
6357
|
class SnackbarService {
|
|
@@ -6486,7 +6375,7 @@ class SnackbarService {
|
|
|
6486
6375
|
this.hide();
|
|
6487
6376
|
};
|
|
6488
6377
|
this.root = client_1(this.container);
|
|
6489
|
-
this.root.render(
|
|
6378
|
+
this.root.render(jsxRuntime.jsx(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk, children: message }));
|
|
6490
6379
|
});
|
|
6491
6380
|
}
|
|
6492
6381
|
hide() {
|
|
@@ -6500,29 +6389,29 @@ class SnackbarService {
|
|
|
6500
6389
|
}
|
|
6501
6390
|
const snackbarService = new SnackbarService();
|
|
6502
6391
|
|
|
6503
|
-
var css_248z$
|
|
6504
|
-
var styles$
|
|
6505
|
-
styleInject(css_248z$
|
|
6392
|
+
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}";
|
|
6393
|
+
var styles$e = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
|
|
6394
|
+
styleInject(css_248z$e);
|
|
6506
6395
|
|
|
6507
6396
|
const SpeedDialActions = (props) => {
|
|
6508
6397
|
const { children } = props;
|
|
6509
6398
|
const getCssClasses = () => {
|
|
6510
6399
|
const cssClasses = [];
|
|
6511
|
-
cssClasses.push(styles$
|
|
6400
|
+
cssClasses.push(styles$e.speedDialActions);
|
|
6512
6401
|
return cssClasses.filter(css => css).join(' ');
|
|
6513
6402
|
};
|
|
6514
|
-
return (
|
|
6403
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
6515
6404
|
};
|
|
6516
6405
|
|
|
6517
|
-
var css_248z$
|
|
6518
|
-
var styles$
|
|
6519
|
-
styleInject(css_248z$
|
|
6406
|
+
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}";
|
|
6407
|
+
var styles$d = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
|
|
6408
|
+
styleInject(css_248z$d);
|
|
6520
6409
|
|
|
6521
6410
|
const SpeedDial = (props) => {
|
|
6522
6411
|
const { children, className, open, onOpen, onClose, ...rest } = props;
|
|
6523
6412
|
const getCssClasses = () => {
|
|
6524
6413
|
const cssClasses = [];
|
|
6525
|
-
cssClasses.push(styles$
|
|
6414
|
+
cssClasses.push(styles$d.speedDial);
|
|
6526
6415
|
className && cssClasses.push(className);
|
|
6527
6416
|
return cssClasses.filter(css => css).join(' ');
|
|
6528
6417
|
};
|
|
@@ -6534,26 +6423,23 @@ const SpeedDial = (props) => {
|
|
|
6534
6423
|
onOpen && onOpen(e);
|
|
6535
6424
|
}
|
|
6536
6425
|
};
|
|
6537
|
-
return (
|
|
6538
|
-
|
|
6539
|
-
React__default["default"].createElement(FloatingActionButton, { icon: React__default["default"].createElement(PlusSolidIcon, null), onClick: handleClick })),
|
|
6540
|
-
open &&
|
|
6541
|
-
React__default["default"].createElement(SpeedDialActions, null, children)));
|
|
6426
|
+
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 &&
|
|
6427
|
+
jsxRuntime.jsx(SpeedDialActions, { children: children })] }));
|
|
6542
6428
|
};
|
|
6543
6429
|
|
|
6544
|
-
var css_248z$
|
|
6545
|
-
var styles$
|
|
6546
|
-
styleInject(css_248z$
|
|
6430
|
+
var css_248z$c = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
|
|
6431
|
+
var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
|
|
6432
|
+
styleInject(css_248z$c);
|
|
6547
6433
|
|
|
6548
6434
|
const SpeedDialAction = (props) => {
|
|
6549
6435
|
const { icon, color = exports.COLOR.light, onClick, className } = props;
|
|
6550
6436
|
const getCssClasses = () => {
|
|
6551
6437
|
const cssClasses = [];
|
|
6552
|
-
cssClasses.push(styles$
|
|
6438
|
+
cssClasses.push(styles$c.speedDialAction);
|
|
6553
6439
|
className && cssClasses.push(className);
|
|
6554
6440
|
return cssClasses.filter(css => css).join(' ');
|
|
6555
6441
|
};
|
|
6556
|
-
return (
|
|
6442
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: exports.VARIANT.contained, shadow: true, onClick: onClick }));
|
|
6557
6443
|
};
|
|
6558
6444
|
|
|
6559
6445
|
const SpeedDialIcon = (props) => {
|
|
@@ -6563,79 +6449,72 @@ const SpeedDialIcon = (props) => {
|
|
|
6563
6449
|
className && cssClasses.push(className);
|
|
6564
6450
|
return cssClasses.filter(css => css).join(' ');
|
|
6565
6451
|
};
|
|
6566
|
-
return (
|
|
6452
|
+
return (jsxRuntime.jsx(Icon, { className: getCssClasses(), ...rest, children: children }));
|
|
6567
6453
|
};
|
|
6568
6454
|
|
|
6569
|
-
var css_248z$
|
|
6570
|
-
var styles$
|
|
6571
|
-
styleInject(css_248z$
|
|
6455
|
+
var css_248z$b = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
|
|
6456
|
+
var styles$b = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
|
|
6457
|
+
styleInject(css_248z$b);
|
|
6572
6458
|
|
|
6573
6459
|
const StepperActions = (props) => {
|
|
6574
6460
|
const { className, showDoneButton, showResetButton, isCompleted, isFirstStep, isStepOptional, onBack, onSkip, onNext, onReset } = props;
|
|
6575
6461
|
const getCssClasses = () => {
|
|
6576
6462
|
const cssClasses = [];
|
|
6577
|
-
cssClasses.push(styles$
|
|
6463
|
+
cssClasses.push(styles$b.stepperActions);
|
|
6578
6464
|
className && cssClasses.push(className);
|
|
6579
6465
|
return cssClasses.filter(css => css).join(' ');
|
|
6580
6466
|
};
|
|
6581
|
-
return (
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
isCompleted && showResetButton && (React__default["default"].createElement(Button, { color: exports.COLOR.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset() }, "Reset")),
|
|
6586
|
-
isStepOptional && (React__default["default"].createElement(Button, { variant: exports.VARIANT.contained, color: exports.COLOR.primary, onClick: () => onSkip && onSkip() }, "Skip")),
|
|
6587
|
-
!isCompleted &&
|
|
6588
|
-
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"),
|
|
6589
|
-
isCompleted && showDoneButton &&
|
|
6590
|
-
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"))));
|
|
6467
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6468
|
+
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 &&
|
|
6469
|
+
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 &&
|
|
6470
|
+
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, startIcon: jsxRuntime.jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6591
6471
|
};
|
|
6592
6472
|
|
|
6593
6473
|
const StepPanel = (props) => {
|
|
6594
6474
|
const { children } = props;
|
|
6595
|
-
return (
|
|
6475
|
+
return (jsxRuntime.jsx("div", { className: "steppanel", children: children }));
|
|
6596
6476
|
};
|
|
6597
6477
|
|
|
6598
|
-
var css_248z$
|
|
6599
|
-
var styles$
|
|
6600
|
-
styleInject(css_248z$
|
|
6478
|
+
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}";
|
|
6479
|
+
var styles$a = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
|
|
6480
|
+
styleInject(css_248z$a);
|
|
6601
6481
|
|
|
6602
6482
|
const StepConnector = (props) => {
|
|
6603
6483
|
const { isActive, isHorizontal = true } = props;
|
|
6604
6484
|
const getCssClassesConnector = () => {
|
|
6605
6485
|
const cssClasses = [];
|
|
6606
|
-
cssClasses.push(styles$
|
|
6486
|
+
cssClasses.push(styles$a.stepConnector);
|
|
6607
6487
|
return cssClasses.filter(css => css).join(' ');
|
|
6608
6488
|
};
|
|
6609
6489
|
const getCssClassesLine = () => {
|
|
6610
6490
|
const cssClasses = [];
|
|
6611
|
-
cssClasses.push(styles$
|
|
6612
|
-
isActive && cssClasses.push(styles$
|
|
6613
|
-
isHorizontal && cssClasses.push(styles$
|
|
6491
|
+
cssClasses.push(styles$a.stepConnectorLine);
|
|
6492
|
+
isActive && cssClasses.push(styles$a['isActive']);
|
|
6493
|
+
isHorizontal && cssClasses.push(styles$a.stepConnectorLineHorizontal);
|
|
6614
6494
|
return cssClasses.filter(css => css).join(' ');
|
|
6615
6495
|
};
|
|
6616
|
-
return (
|
|
6617
|
-
React__default["default"].createElement("div", { className: getCssClassesLine() })));
|
|
6496
|
+
return (jsxRuntime.jsx("div", { className: getCssClassesConnector(), children: jsxRuntime.jsx("div", { className: getCssClassesLine() }) }));
|
|
6618
6497
|
};
|
|
6619
6498
|
|
|
6620
|
-
var css_248z$
|
|
6621
|
-
var styles$
|
|
6622
|
-
styleInject(css_248z$
|
|
6499
|
+
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}";
|
|
6500
|
+
var styles$9 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
|
|
6501
|
+
styleInject(css_248z$9);
|
|
6623
6502
|
|
|
6624
|
-
var css_248z$
|
|
6625
|
-
var styles$
|
|
6626
|
-
styleInject(css_248z$
|
|
6503
|
+
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}";
|
|
6504
|
+
var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
|
|
6505
|
+
styleInject(css_248z$8);
|
|
6627
6506
|
|
|
6628
6507
|
const Dot = (props) => {
|
|
6629
6508
|
const { className, color = exports.COLOR.primary, isActive, ...rest } = props;
|
|
6630
6509
|
const getCssClasses = () => {
|
|
6631
6510
|
const cssClasses = [];
|
|
6632
|
-
cssClasses.push(styles$
|
|
6633
|
-
cssClasses.push(styles$
|
|
6634
|
-
isActive && cssClasses.push(styles$
|
|
6511
|
+
cssClasses.push(styles$8.dot);
|
|
6512
|
+
cssClasses.push(styles$8[color]);
|
|
6513
|
+
isActive && cssClasses.push(styles$8.isActive);
|
|
6635
6514
|
className && cssClasses.push(className);
|
|
6636
6515
|
return cssClasses.filter(css => css).join(' ');
|
|
6637
6516
|
};
|
|
6638
|
-
return (
|
|
6517
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6639
6518
|
};
|
|
6640
6519
|
|
|
6641
6520
|
const Stepper = (props) => {
|
|
@@ -6667,16 +6546,16 @@ const Stepper = (props) => {
|
|
|
6667
6546
|
setActiveIndex(index);
|
|
6668
6547
|
};
|
|
6669
6548
|
const renderSteps = (child, index) => {
|
|
6670
|
-
return (
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6549
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: React__default["default"].isValidElement(child) &&
|
|
6550
|
+
React.cloneElement(child, {
|
|
6551
|
+
index: index,
|
|
6552
|
+
isActive: activeIndex >= index,
|
|
6553
|
+
isDone: activeIndex > index,
|
|
6554
|
+
isDisabled: isLinear && (activeIndex + 1 < index),
|
|
6555
|
+
showLabel: showLabel,
|
|
6556
|
+
showProgressCheckIcon: showProgressCheckIcon,
|
|
6557
|
+
onClick: () => handleClickStep(index)
|
|
6558
|
+
}) }));
|
|
6680
6559
|
};
|
|
6681
6560
|
const isStepOptional = (index) => {
|
|
6682
6561
|
return steps && steps[index].props.isOptional;
|
|
@@ -6720,46 +6599,40 @@ const Stepper = (props) => {
|
|
|
6720
6599
|
};
|
|
6721
6600
|
const getCssClasses = () => {
|
|
6722
6601
|
const cssClasses = [];
|
|
6723
|
-
cssClasses.push(styles$
|
|
6724
|
-
isHorizontal && cssClasses.push(styles$
|
|
6602
|
+
cssClasses.push(styles$9.stepper);
|
|
6603
|
+
isHorizontal && cssClasses.push(styles$9['isHorizontal']);
|
|
6725
6604
|
return cssClasses.filter(css => css).join(' ');
|
|
6726
6605
|
};
|
|
6727
|
-
return (
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
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 }))))));
|
|
6738
|
-
};
|
|
6739
|
-
|
|
6740
|
-
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}";
|
|
6741
|
-
var styles$b = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6742
|
-
styleInject(css_248z$b);
|
|
6606
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: steps &&
|
|
6607
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showSteps &&
|
|
6608
|
+
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 &&
|
|
6609
|
+
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 &&
|
|
6610
|
+
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)) })] }) }));
|
|
6611
|
+
};
|
|
6612
|
+
|
|
6613
|
+
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}";
|
|
6614
|
+
var styles$7 = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6615
|
+
styleInject(css_248z$7);
|
|
6743
6616
|
|
|
6744
6617
|
const Wrapper = (props) => {
|
|
6745
6618
|
const { as = 'span', wrap, children, className, ...rest } = props;
|
|
6746
6619
|
const getCssClasses = () => {
|
|
6747
6620
|
const cssClasses = [];
|
|
6748
|
-
cssClasses.push(styles$
|
|
6749
|
-
cssClasses.push(styles$
|
|
6750
|
-
wrap && cssClasses.push(styles$
|
|
6621
|
+
cssClasses.push(styles$7.typography);
|
|
6622
|
+
cssClasses.push(styles$7.as);
|
|
6623
|
+
wrap && cssClasses.push(styles$7.wrap);
|
|
6751
6624
|
className && cssClasses.push(className);
|
|
6752
6625
|
return cssClasses.filter(css => css).join(' ');
|
|
6753
6626
|
};
|
|
6754
6627
|
return React__default["default"].createElement(as, { ...rest, className: getCssClasses() }, children);
|
|
6755
6628
|
};
|
|
6756
6629
|
const Typography = ({ children, as = 'span', wrap, ...rest }) => {
|
|
6757
|
-
return (
|
|
6630
|
+
return (jsxRuntime.jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
|
|
6758
6631
|
};
|
|
6759
6632
|
|
|
6760
|
-
var css_248z$
|
|
6761
|
-
var styles$
|
|
6762
|
-
styleInject(css_248z$
|
|
6633
|
+
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}";
|
|
6634
|
+
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"};
|
|
6635
|
+
styleInject(css_248z$6);
|
|
6763
6636
|
|
|
6764
6637
|
const Step = (props) => {
|
|
6765
6638
|
const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
|
|
@@ -6771,98 +6644,31 @@ const Step = (props) => {
|
|
|
6771
6644
|
};
|
|
6772
6645
|
const getCssClasses = () => {
|
|
6773
6646
|
const cssClasses = [];
|
|
6774
|
-
cssClasses.push(styles$
|
|
6775
|
-
label && showLabel && cssClasses.push(styles$
|
|
6776
|
-
isDisabled && cssClasses.push(styles$
|
|
6647
|
+
cssClasses.push(styles$6.stepWrapper);
|
|
6648
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6649
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6777
6650
|
className && cssClasses.push(className);
|
|
6778
6651
|
return cssClasses.filter(css => css).join(' ');
|
|
6779
6652
|
};
|
|
6780
6653
|
const getCssClassesStep = () => {
|
|
6781
6654
|
const cssClasses = [];
|
|
6782
|
-
cssClasses.push(styles$
|
|
6783
|
-
label && showLabel && cssClasses.push(styles$
|
|
6784
|
-
isDisabled && cssClasses.push(styles$
|
|
6655
|
+
cssClasses.push(styles$6.step);
|
|
6656
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6657
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6785
6658
|
return cssClasses.filter(css => css).join(' ');
|
|
6786
6659
|
};
|
|
6787
6660
|
const getCssClassesStepValue = () => {
|
|
6788
6661
|
const cssClasses = [];
|
|
6789
|
-
cssClasses.push(styles$
|
|
6662
|
+
cssClasses.push(styles$6.stepValue);
|
|
6790
6663
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6791
|
-
isActive && cssClasses.push(styles$
|
|
6664
|
+
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6792
6665
|
return cssClasses.filter(css => css).join(' ');
|
|
6793
6666
|
};
|
|
6794
|
-
return (
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
React__default["default"].createElement(Icon, null,
|
|
6800
|
-
React__default["default"].createElement(CheckSolidIcon, null))
|
|
6801
|
-
:
|
|
6802
|
-
React__default["default"].createElement(Typography, null, index + 1))),
|
|
6803
|
-
label && showLabel &&
|
|
6804
|
-
React__default["default"].createElement(Typography, { className: "flex-shrink-0" }, label)));
|
|
6805
|
-
};
|
|
6806
|
-
|
|
6807
|
-
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}";
|
|
6808
|
-
var styles$9 = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6809
|
-
styleInject(css_248z$9);
|
|
6810
|
-
|
|
6811
|
-
const SkeletonAvatar = (props) => {
|
|
6812
|
-
const { className, ...rest } = props;
|
|
6813
|
-
const getCssClasses = () => {
|
|
6814
|
-
const cssClasses = [];
|
|
6815
|
-
cssClasses.push(styles$9.skeletonAvatar);
|
|
6816
|
-
className && cssClasses.push(className);
|
|
6817
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6818
|
-
};
|
|
6819
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6820
|
-
};
|
|
6821
|
-
|
|
6822
|
-
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}";
|
|
6823
|
-
var styles$8 = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6824
|
-
styleInject(css_248z$8);
|
|
6825
|
-
|
|
6826
|
-
const SkeletonText = (props) => {
|
|
6827
|
-
const { className, ...rest } = props;
|
|
6828
|
-
const getCssClasses = () => {
|
|
6829
|
-
const cssClasses = [];
|
|
6830
|
-
cssClasses.push(styles$8.skeletonText);
|
|
6831
|
-
className && cssClasses.push(className);
|
|
6832
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6833
|
-
};
|
|
6834
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6835
|
-
};
|
|
6836
|
-
|
|
6837
|
-
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}";
|
|
6838
|
-
var styles$7 = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6839
|
-
styleInject(css_248z$7);
|
|
6840
|
-
|
|
6841
|
-
const SkeletonFooter = (props) => {
|
|
6842
|
-
const { className, ...rest } = props;
|
|
6843
|
-
const getCssClasses = () => {
|
|
6844
|
-
const cssClasses = [];
|
|
6845
|
-
cssClasses.push(styles$7.skeletonFooter);
|
|
6846
|
-
className && cssClasses.push(className);
|
|
6847
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6848
|
-
};
|
|
6849
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest }));
|
|
6850
|
-
};
|
|
6851
|
-
|
|
6852
|
-
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}";
|
|
6853
|
-
var styles$6 = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6854
|
-
styleInject(css_248z$6);
|
|
6855
|
-
|
|
6856
|
-
const SkeletonImage = (props) => {
|
|
6857
|
-
const { className, ...rest } = props;
|
|
6858
|
-
const getCssClasses = () => {
|
|
6859
|
-
const cssClasses = [];
|
|
6860
|
-
cssClasses.push(styles$6.skeletonImage);
|
|
6861
|
-
className && cssClasses.push(className);
|
|
6862
|
-
return cssClasses.filter(r => r).join(' ');
|
|
6863
|
-
};
|
|
6864
|
-
return (React__default["default"].createElement("div", { className: getCssClasses(), ...rest },
|
|
6865
|
-
React__default["default"].createElement("div", { className: styles$6.img })));
|
|
6667
|
+
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 ?
|
|
6668
|
+
jsxRuntime.jsx(Icon, { children: jsxRuntime.jsx(CheckSolidIcon, {}) })
|
|
6669
|
+
:
|
|
6670
|
+
jsxRuntime.jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6671
|
+
jsxRuntime.jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6866
6672
|
};
|
|
6867
6673
|
|
|
6868
6674
|
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}";
|
|
@@ -6880,13 +6686,12 @@ const Table = (props) => {
|
|
|
6880
6686
|
className && cssClasses.push(className);
|
|
6881
6687
|
return cssClasses.filter(css => css).join(' ');
|
|
6882
6688
|
};
|
|
6883
|
-
return (
|
|
6884
|
-
React__default["default"].createElement("table", { className: getCssClasses(), ...rest }, children)));
|
|
6689
|
+
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 }) }));
|
|
6885
6690
|
};
|
|
6886
6691
|
|
|
6887
6692
|
const TableRow = (props) => {
|
|
6888
6693
|
const { children, ...rest } = props;
|
|
6889
|
-
return (
|
|
6694
|
+
return (jsxRuntime.jsx("tr", { ...rest, children: children }));
|
|
6890
6695
|
};
|
|
6891
6696
|
|
|
6892
6697
|
const TableContext = React.createContext({
|
|
@@ -6896,21 +6701,19 @@ const useTableContext = () => React.useContext(TableContext);
|
|
|
6896
6701
|
|
|
6897
6702
|
const TableHead = (props) => {
|
|
6898
6703
|
const { children, ...rest } = props;
|
|
6899
|
-
return (
|
|
6900
|
-
React__default["default"].createElement("thead", { ...rest }, children)));
|
|
6704
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'head' }, children: jsxRuntime.jsx("thead", { ...rest, children: children }) }));
|
|
6901
6705
|
};
|
|
6902
6706
|
|
|
6903
6707
|
const TableBody = (props) => {
|
|
6904
6708
|
const { children, ...rest } = props;
|
|
6905
|
-
return (
|
|
6906
|
-
React__default["default"].createElement("tbody", { ...rest }, children)));
|
|
6709
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'body' }, children: jsxRuntime.jsx("tbody", { ...rest, children: children }) }));
|
|
6907
6710
|
};
|
|
6908
6711
|
|
|
6909
6712
|
const TableCell = (props) => {
|
|
6910
6713
|
const { variant } = useTableContext();
|
|
6911
6714
|
const { children, component, ...rest } = props;
|
|
6912
|
-
return (
|
|
6913
|
-
|
|
6715
|
+
return (jsxRuntime.jsx(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (jsxRuntime.jsx("th", { ...rest, children: children })) :
|
|
6716
|
+
jsxRuntime.jsx("td", { ...rest, children: children })), children: children }));
|
|
6914
6717
|
};
|
|
6915
6718
|
|
|
6916
6719
|
const TabContext = React.createContext({});
|
|
@@ -6928,7 +6731,7 @@ const TabIndicator = (props) => {
|
|
|
6928
6731
|
cssClasses.push(styles$4[color]);
|
|
6929
6732
|
return cssClasses.filter(css => css).join(' ');
|
|
6930
6733
|
};
|
|
6931
|
-
return (
|
|
6734
|
+
return (jsxRuntime.jsx("span", { className: getCssClasses(), style: {
|
|
6932
6735
|
width: width,
|
|
6933
6736
|
left: `calc(calc(100% / ${amount}) * ${index})`
|
|
6934
6737
|
} }));
|
|
@@ -6970,12 +6773,8 @@ const Tabs = (props) => {
|
|
|
6970
6773
|
className && cssClasses.push(className);
|
|
6971
6774
|
return cssClasses.filter(css => css).join(' ');
|
|
6972
6775
|
};
|
|
6973
|
-
return (
|
|
6974
|
-
|
|
6975
|
-
React__default["default"].createElement("div", { className: getCssClasses() },
|
|
6976
|
-
children,
|
|
6977
|
-
children &&
|
|
6978
|
-
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 })))));
|
|
6776
|
+
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 &&
|
|
6777
|
+
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 / React__default["default"].Children.toArray(children).length) + '%', index: selectedIndex, amount: React__default["default"].Children.toArray(children).length })] }) }) }));
|
|
6979
6778
|
};
|
|
6980
6779
|
|
|
6981
6780
|
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}";
|
|
@@ -6995,12 +6794,12 @@ const Tab = (props) => {
|
|
|
6995
6794
|
onClick && onClick({ event: event, value: value });
|
|
6996
6795
|
setSelectedValue && setSelectedValue(value);
|
|
6997
6796
|
};
|
|
6998
|
-
return (
|
|
6797
|
+
return (jsxRuntime.jsx(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled, children: label }));
|
|
6999
6798
|
};
|
|
7000
6799
|
|
|
7001
6800
|
const TabPanel = (props) => {
|
|
7002
6801
|
const { children, value, index, ...rest } = props;
|
|
7003
|
-
return (
|
|
6802
|
+
return (jsxRuntime.jsx("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest, children: value === index && children }));
|
|
7004
6803
|
};
|
|
7005
6804
|
|
|
7006
6805
|
const HourSelect = (props) => {
|
|
@@ -7023,7 +6822,7 @@ const HourSelect = (props) => {
|
|
|
7023
6822
|
setNewValue(e);
|
|
7024
6823
|
onChange && onChange(e);
|
|
7025
6824
|
};
|
|
7026
|
-
return (
|
|
6825
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7027
6826
|
};
|
|
7028
6827
|
|
|
7029
6828
|
const MilliSecondSelect = (props) => {
|
|
@@ -7046,7 +6845,7 @@ const MilliSecondSelect = (props) => {
|
|
|
7046
6845
|
setNewValue(e);
|
|
7047
6846
|
onChange && onChange(e);
|
|
7048
6847
|
};
|
|
7049
|
-
return (
|
|
6848
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7050
6849
|
};
|
|
7051
6850
|
|
|
7052
6851
|
const MinuteSelect = (props) => {
|
|
@@ -7069,7 +6868,7 @@ const MinuteSelect = (props) => {
|
|
|
7069
6868
|
setNewValue(e);
|
|
7070
6869
|
onChange && onChange(e);
|
|
7071
6870
|
};
|
|
7072
|
-
return (
|
|
6871
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7073
6872
|
};
|
|
7074
6873
|
|
|
7075
6874
|
const SecondSelect = (props) => {
|
|
@@ -7092,7 +6891,7 @@ const SecondSelect = (props) => {
|
|
|
7092
6891
|
setNewValue(e);
|
|
7093
6892
|
onChange && onChange(e);
|
|
7094
6893
|
};
|
|
7095
|
-
return (
|
|
6894
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7096
6895
|
};
|
|
7097
6896
|
|
|
7098
6897
|
exports.TIMEMODE = void 0;
|
|
@@ -7123,23 +6922,11 @@ const TimeSelect = (props) => {
|
|
|
7123
6922
|
setCurrDate(newDate);
|
|
7124
6923
|
onChange && onChange(newDate);
|
|
7125
6924
|
};
|
|
7126
|
-
return (
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
showMinutes &&
|
|
7132
|
-
React__default["default"].createElement(Column, null,
|
|
7133
|
-
React__default["default"].createElement(FormLabel, null, "Minutes"),
|
|
7134
|
-
React__default["default"].createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })),
|
|
7135
|
-
showSeconds &&
|
|
7136
|
-
React__default["default"].createElement(Column, null,
|
|
7137
|
-
React__default["default"].createElement(FormLabel, null, "Seconds"),
|
|
7138
|
-
React__default["default"].createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })),
|
|
7139
|
-
showMilliSeconds &&
|
|
7140
|
-
React__default["default"].createElement(Column, null,
|
|
7141
|
-
React__default["default"].createElement(FormLabel, null, "Milliseconds"),
|
|
7142
|
-
React__default["default"].createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) }))));
|
|
6925
|
+
return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [showHours &&
|
|
6926
|
+
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 &&
|
|
6927
|
+
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 &&
|
|
6928
|
+
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 &&
|
|
6929
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Milliseconds" }), jsxRuntime.jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) })] })] }));
|
|
7143
6930
|
};
|
|
7144
6931
|
|
|
7145
6932
|
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}";
|
|
@@ -7154,7 +6941,7 @@ const TreeView = (props) => {
|
|
|
7154
6941
|
className && cssClasses.push(className);
|
|
7155
6942
|
return cssClasses.filter(css => css).join(' ');
|
|
7156
6943
|
};
|
|
7157
|
-
return (
|
|
6944
|
+
return (jsxRuntime.jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
7158
6945
|
};
|
|
7159
6946
|
|
|
7160
6947
|
var css_248z = ".TreeItem-module_treeItem__Mxsjr {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center;\n}";
|
|
@@ -7191,14 +6978,9 @@ const TreeItem = (props) => {
|
|
|
7191
6978
|
setIsSelected(!_isSelected);
|
|
7192
6979
|
onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
|
|
7193
6980
|
};
|
|
7194
|
-
return (
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
React__default["default"].createElement(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? React__default["default"].createElement(ChevronRightSolidIcon, null) : React__default["default"].createElement(ChevronDownSolidIcon, null) }),
|
|
7198
|
-
isSelectable && nodeId &&
|
|
7199
|
-
React__default["default"].createElement(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }),
|
|
7200
|
-
label),
|
|
7201
|
-
children && _isExpanded ? React__default["default"].createElement("ul", null, children) : null));
|
|
6981
|
+
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 &&
|
|
6982
|
+
jsxRuntime.jsx(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? jsxRuntime.jsx(ChevronRightSolidIcon, {}) : jsxRuntime.jsx(ChevronDownSolidIcon, {}) }), isSelectable && nodeId &&
|
|
6983
|
+
jsxRuntime.jsx(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }), label] }), children && _isExpanded ? jsxRuntime.jsx("ul", { children: children }) : null] }));
|
|
7202
6984
|
};
|
|
7203
6985
|
|
|
7204
6986
|
exports.Alert = Alert;
|
|
@@ -7329,3 +7111,4 @@ exports.useHover = useHover;
|
|
|
7329
7111
|
exports.useMobileDetect = useMobileDetect;
|
|
7330
7112
|
exports.useOnDestroy = useOnDestroy;
|
|
7331
7113
|
exports.useWindowSize = useWindowSize;
|
|
7114
|
+
//# sourceMappingURL=index.js.map
|