react-asc 25.5.3 → 25.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +1386 -1572
- package/index.js +1385 -1571
- 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/{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,7 +124,7 @@ 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
|
var css_248z$13 = ".Icon-module_icon__lFKCA {\n align-items: center;\n justify-content: center;\n display: flex;\n width: 20px;\n height: 20px;\n}\n.Icon-module_icon__lFKCA svg {\n width: inherit;\n height: inherit;\n}\n.Icon-module_icon__lFKCA.Icon-module_primary__3fID- {\n color: var(--primary);\n}\n.Icon-module_icon__lFKCA.Icon-module_accent__aZXGb {\n color: var(--accent);\n}\n.Icon-module_icon__lFKCA.Icon-module_secondary__HKKop {\n color: var(--secondary);\n}\n.Icon-module_icon__lFKCA.Icon-module_light__-ApMm {\n color: var(--light);\n}\n.Icon-module_icon__lFKCA.Icon-module_dark__DpCIK {\n color: var(--dark);\n}";
|
|
@@ -139,7 +140,7 @@ const Icon = (props) => {
|
|
|
139
140
|
className && cssClasses.push(className);
|
|
140
141
|
return cssClasses.filter(css => css).join(' ');
|
|
141
142
|
};
|
|
142
|
-
return (
|
|
143
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
143
144
|
};
|
|
144
145
|
|
|
145
146
|
var css_248z$12 = ".IconButton-module_iconButton__rpCPQ {\n border-radius: 100%;\n padding: 0px;\n display: flex;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n min-width: auto;\n box-shadow: none;\n font-weight: 400;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n user-select: none;\n background-color: transparent;\n font-size: 1rem;\n line-height: 1.5;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: none;\n}\n.IconButton-module_iconButton__rpCPQ:hover {\n cursor: pointer;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_shadow__Uw0RK {\n box-shadow: var(--shadow);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_md__XnuSk {\n width: 48px;\n height: 48px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_lg__arEvo {\n width: 56px;\n height: 56px;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag {\n padding: 0;\n background: transparent;\n color: inherit;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G {\n color: var(--primary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY {\n color: var(--secondary);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2 {\n color: var(--accent);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO {\n color: var(--light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH {\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n color: var(--dark-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_text__Ualag.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_active__VIqU9 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G {\n background-color: var(--primary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_primary__vbo-G.IconButton-module_active__VIqU9 {\n background-color: var(--primary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY {\n background-color: var(--secondary);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_secondary__AiNAY.IconButton-module_active__VIqU9 {\n background-color: var(--secondary-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2 {\n background-color: var(--accent);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_accent__QRzM2.IconButton-module_active__VIqU9 {\n background-color: var(--accent-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO {\n background-color: var(--light);\n color: var(--dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_light__YNEiO.IconButton-module_active__VIqU9 {\n background-color: var(--light-dark);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH {\n background-color: var(--dark);\n color: var(--white);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH:hover, .IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_dark__gnbUH.IconButton-module_active__VIqU9 {\n background-color: var(--dark-light);\n}\n.IconButton-module_iconButton__rpCPQ.IconButton-module_contained__k7vGA.IconButton-module_disabled__QB0ZV {\n color: rgba(0, 0, 0, 0.26);\n background-color: transparent;\n cursor: default;\n pointer-events: none;\n}\n.IconButton-module_iconButton__rpCPQ:focus:not(.IconButton-module_iconButton__rpCPQ.IconButton-module_disabled__QB0ZV) {\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}";
|
|
@@ -160,61 +161,36 @@ const IconButton = (props) => {
|
|
|
160
161
|
className && cssClasses.push(className);
|
|
161
162
|
return cssClasses.filter(css => css).join(' ');
|
|
162
163
|
};
|
|
163
|
-
return (
|
|
164
|
-
icon && React__default["default"].createElement(Icon, null, icon),
|
|
165
|
-
children));
|
|
164
|
+
return (jsxRuntime.jsxs("button", { type: "button", className: getCssClasses(), disabled: disabled, ...rest, children: [icon && jsxRuntime.jsx(Icon, { children: icon }), children] }));
|
|
166
165
|
};
|
|
167
166
|
|
|
168
|
-
const CaretDownSolidIcon = () => (
|
|
169
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" })));
|
|
167
|
+
const CaretDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "caret-down", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
170
168
|
|
|
171
|
-
const
|
|
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" })));
|
|
169
|
+
const CheckSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" }) }));
|
|
173
170
|
|
|
174
|
-
const
|
|
175
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" })));
|
|
171
|
+
const CheckSquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "check-square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z" }) }));
|
|
176
172
|
|
|
177
|
-
const
|
|
178
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" })));
|
|
173
|
+
const ChevronDownSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-down", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" }) }));
|
|
179
174
|
|
|
180
|
-
const
|
|
181
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" })));
|
|
175
|
+
const ChevronLeftSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" }) }));
|
|
182
176
|
|
|
183
|
-
const
|
|
184
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" })));
|
|
177
|
+
const ChevronRightSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-right", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" }) }));
|
|
185
178
|
|
|
186
|
-
const
|
|
187
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" })));
|
|
179
|
+
const ChevronUpSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "chevron-up", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z" }) }));
|
|
188
180
|
|
|
189
|
-
const
|
|
190
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" })));
|
|
181
|
+
const CircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" }) }));
|
|
191
182
|
|
|
192
|
-
const
|
|
193
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
|
|
183
|
+
const HomeSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "home", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z" }) }));
|
|
194
184
|
|
|
195
|
-
const
|
|
196
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" })));
|
|
185
|
+
const PlusSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z" }) }));
|
|
197
186
|
|
|
198
|
-
const
|
|
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" })));
|
|
187
|
+
const SpinnerSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "fas", "data-icon": "spinner", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z" }) }));
|
|
200
188
|
|
|
201
|
-
const
|
|
202
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })));
|
|
189
|
+
const SquareRegularIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", "data-prefix": "far", "data-icon": "square", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z" }) }));
|
|
203
190
|
|
|
204
|
-
const
|
|
205
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z" })));
|
|
191
|
+
const TimesCircleSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z" }) }));
|
|
206
192
|
|
|
207
|
-
const
|
|
208
|
-
React__default["default"].createElement("path", { fill: "currentColor", d: "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z" })));
|
|
209
|
-
|
|
210
|
-
function useDebounce(callback, timeout, deps) {
|
|
211
|
-
const timeoutId = React.useRef();
|
|
212
|
-
React.useEffect(() => {
|
|
213
|
-
clearTimeout(timeoutId.current);
|
|
214
|
-
timeoutId.current = setTimeout(callback, timeout);
|
|
215
|
-
return () => clearTimeout(timeoutId.current);
|
|
216
|
-
}, deps);
|
|
217
|
-
}
|
|
193
|
+
const TimesSolidIcon = () => (jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
218
194
|
|
|
219
195
|
const useConstructor = (callBack) => {
|
|
220
196
|
React.useEffect(() => {
|
|
@@ -226,6 +202,15 @@ function useCssClasses(cssClasses) {
|
|
|
226
202
|
return [cssClasses?.filter(css => css).join(' ') || ''];
|
|
227
203
|
}
|
|
228
204
|
|
|
205
|
+
function useDebounce(callback, timeout, deps) {
|
|
206
|
+
const timeoutId = React.useRef();
|
|
207
|
+
React.useEffect(() => {
|
|
208
|
+
clearTimeout(timeoutId.current);
|
|
209
|
+
timeoutId.current = setTimeout(callback, timeout);
|
|
210
|
+
return () => clearTimeout(timeoutId.current);
|
|
211
|
+
}, deps);
|
|
212
|
+
}
|
|
213
|
+
|
|
229
214
|
function useHover() {
|
|
230
215
|
const [value, setValue] = React.useState(false);
|
|
231
216
|
const ref = React.useRef(null);
|
|
@@ -320,8 +305,7 @@ const Backdrop = (props) => {
|
|
|
320
305
|
const getStyles = () => {
|
|
321
306
|
return Object.assign({ height: '100%', width: '100%', position: 'absolute' }, style);
|
|
322
307
|
};
|
|
323
|
-
return (
|
|
324
|
-
React__default["default"].createElement("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest })));
|
|
308
|
+
return (jsxRuntime.jsx(Portal$1, { className: 'backdrop-root', target: target, children: jsxRuntime.jsx("div", { className: getCssClasses(), onClick: handleClick, style: getStyles(), ...rest }) }));
|
|
325
309
|
};
|
|
326
310
|
|
|
327
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"};
|
|
@@ -471,17 +453,9 @@ const AutoComplete = (props) => {
|
|
|
471
453
|
setModel('');
|
|
472
454
|
setSearchText('');
|
|
473
455
|
};
|
|
474
|
-
return (
|
|
475
|
-
|
|
476
|
-
|
|
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 &&
|
|
457
|
+
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), onClick: handleClickReset })] }), isShow &&
|
|
458
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$W.selectMenu, children: jsxRuntime.jsx(List, { children: _options && _options.map((option, index) => jsxRuntime.jsx(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), disabled: !option.value, children: jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value }) }, option.value)) }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: () => hide() })] })] }));
|
|
485
459
|
};
|
|
486
460
|
|
|
487
461
|
var css_248z$V = ".Badge-module_badgeContainer__3nZBs {\n display: inline-flex;\n position: relative;\n flex-shrink: 0;\n vertical-align: middle;\n}\n\n.Badge-module_badge__9ImR0 {\n top: 0;\n right: 0;\n transform: scale(1) translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 20px;\n display: flex;\n padding: 0 6px;\n z-index: 1;\n position: absolute;\n flex-wrap: wrap;\n font-size: 0.75rem;\n min-width: 20px;\n align-items: center;\n font-weight: 500;\n line-height: 1;\n align-content: center;\n flex-direction: row;\n justify-content: center;\n border-radius: 10px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Badge-module_badge__9ImR0.Badge-module_primary__41U-t {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Badge-module_badge__9ImR0.Badge-module_accent__OQy2- {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Badge-module_badge__9ImR0.Badge-module_secondary__a9Jfh {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Badge-module_badge__9ImR0.Badge-module_light__4QvQ5 {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Badge-module_badge__9ImR0.Badge-module_dark__g1yUJ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}";
|
|
@@ -495,9 +469,7 @@ const Badge = (props) => {
|
|
|
495
469
|
styles$V[color],
|
|
496
470
|
className
|
|
497
471
|
]);
|
|
498
|
-
return (
|
|
499
|
-
children,
|
|
500
|
-
React__default["default"].createElement("span", { className: cssClassName, ...rest }, content)));
|
|
472
|
+
return (jsxRuntime.jsxs(BadgeContainer, { children: [children, jsxRuntime.jsx("span", { className: cssClassName, ...rest, children: content })] }));
|
|
501
473
|
};
|
|
502
474
|
const BadgeContainer = (props) => {
|
|
503
475
|
const { children, className, ...rest } = props;
|
|
@@ -505,13 +477,49 @@ const BadgeContainer = (props) => {
|
|
|
505
477
|
styles$V.badgeContainer,
|
|
506
478
|
className,
|
|
507
479
|
]);
|
|
508
|
-
return (
|
|
480
|
+
return (jsxRuntime.jsx("div", { className: cssClassName, ...rest, children: children }));
|
|
509
481
|
};
|
|
510
482
|
|
|
511
|
-
var css_248z$U = ".
|
|
512
|
-
var styles$U = {"
|
|
483
|
+
var css_248z$U = ".Breadcrumb-module_breadcrumb__-pvAn {\n display: flex;\n flex-wrap: wrap;\n padding: 0;\n list-style: none;\n margin: 0;\n}";
|
|
484
|
+
var styles$U = {"breadcrumb":"Breadcrumb-module_breadcrumb__-pvAn"};
|
|
513
485
|
styleInject(css_248z$U);
|
|
514
486
|
|
|
487
|
+
const Breadcrumb = (props) => {
|
|
488
|
+
const { children, className, ...rest } = props;
|
|
489
|
+
const getCssClasses = () => {
|
|
490
|
+
const cssClasses = [];
|
|
491
|
+
cssClasses.push(styles$U.breadcrumb);
|
|
492
|
+
className && cssClasses.push(className);
|
|
493
|
+
return cssClasses.filter(css => css).join(' ');
|
|
494
|
+
};
|
|
495
|
+
return (jsxRuntime.jsx("nav", { ...rest, children: jsxRuntime.jsx("ol", { className: getCssClasses(), children: children }) }));
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
|
|
499
|
+
|
|
500
|
+
var css_248z$T = ".BreadcrumbItem-module_breadcrumbItem__zsUq- {\n display: flex;\n align-items: center;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq- {\n padding-left: 0.5rem;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- + .BreadcrumbItem-module_breadcrumbItem__zsUq-::before {\n float: left;\n padding-right: 0.5rem;\n color: #6c757d;\n content: \"/\";\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq- a:not([href]):not([class]) {\n color: var(--primary);\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-:hover {\n cursor: pointer;\n}\n.BreadcrumbItem-module_breadcrumbItem__zsUq-.BreadcrumbItem-module_active__Kn1dA:hover {\n cursor: unset;\n}";
|
|
501
|
+
var styles$T = {"breadcrumbItem":"BreadcrumbItem-module_breadcrumbItem__zsUq-","active":"BreadcrumbItem-module_active__Kn1dA"};
|
|
502
|
+
styleInject(css_248z$T);
|
|
503
|
+
|
|
504
|
+
const BreadcrumbItem = (props) => {
|
|
505
|
+
const { children, className, isActive, onClick } = props;
|
|
506
|
+
const getCssClasses = () => {
|
|
507
|
+
const cssClasses = [];
|
|
508
|
+
cssClasses.push(styles$T.breadcrumbItem);
|
|
509
|
+
className && cssClasses.push(className);
|
|
510
|
+
isActive && cssClasses.push('active');
|
|
511
|
+
return cssClasses.filter(css => css).join(' ');
|
|
512
|
+
};
|
|
513
|
+
const handleClick = (event) => {
|
|
514
|
+
onClick && onClick(event);
|
|
515
|
+
};
|
|
516
|
+
return (jsxRuntime.jsx("li", { className: getCssClasses(), onClick: handleClick, children: jsxRuntime.jsx(ConditionalWrapper, { condition: !isActive, wrapper: (label) => jsxRuntime.jsx("a", { children: label }), children: children }) }));
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
var css_248z$S = ".Button-module_button__qeIer {\n text-transform: uppercase;\n flex-shrink: 0;\n background-color: transparent;\n display: inline-block;\n font-weight: 400;\n line-height: 1.5;\n text-align: center;\n text-decoration: none;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n min-width: 64px;\n font-size: 0.875rem;\n border-radius: var(--borderRadius);\n}\n.Button-module_button__qeIer.Button-module_shadow__6N2nE {\n box-shadow: var(--shadow);\n}\n.Button-module_button__qeIer.Button-module_block__JIazf {\n width: 100%;\n}\n.Button-module_button__qeIer:hover:not(:disabled) {\n cursor: pointer;\n}\n.Button-module_button__qeIer:focus:not(:disabled) {\n border-color: var(--primary-highlight);\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem var(--primary-highlight);\n}\n\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Button-module_btnContained__16y5l.Button-module_primary__EUyOu:hover:not(:disabled) {\n background-color: var(--primary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Button-module_btnContained__16y5l.Button-module_accent__opVgQ:hover:not(:disabled) {\n background-color: var(--accent-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Button-module_btnContained__16y5l.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background-color: var(--secondary-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Button-module_btnContained__16y5l.Button-module_light__LXeZy:hover:not(:disabled) {\n background-color: var(--light-dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Button-module_btnContained__16y5l.Button-module_dark__5oFOT:hover:not(:disabled) {\n background-color: var(--dark-dark);\n}\n.Button-module_btnContained__16y5l:disabled {\n color: rgba(0, 0, 0, 0.26);\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12);\n}\n.Button-module_btnContained__16y5l:disabled:hover {\n cursor: not-allowed;\n}\n\n.Button-module_btnText__N5Gys {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu {\n color: var(--primary);\n}\n.Button-module_btnText__N5Gys.Button-module_primary__EUyOu:hover:not(:disabled) {\n text-decoration: none;\n background: var(--primary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk {\n color: var(--secondary);\n}\n.Button-module_btnText__N5Gys.Button-module_secondary__zKoGk:hover:not(:disabled) {\n text-decoration: none;\n background: var(--secondary-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ {\n color: var(--accent);\n}\n.Button-module_btnText__N5Gys.Button-module_accent__opVgQ:hover:not(:disabled) {\n text-decoration: none;\n background: var(--accent-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n}\n.Button-module_btnText__N5Gys.Button-module_light__LXeZy:hover:not(:disabled) {\n text-decoration: none;\n background: var(--light-highlight);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT {\n color: var(--dark);\n}\n.Button-module_btnText__N5Gys.Button-module_dark__5oFOT:hover:not(:disabled) {\n text-decoration: none;\n background: var(--dark-highlight);\n}\n\n.Button-module_btnOutline__CCFPI {\n box-shadow: none;\n text-decoration: none;\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu {\n color: var(--primary);\n border-color: var(--primary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_primary__EUyOu:hover:not(:disabled) {\n background: var(--primary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk {\n color: var(--secondary);\n border-color: var(--secondary);\n}\n.Button-module_btnOutline__CCFPI.Button-module_secondary__zKoGk:hover:not(:disabled) {\n background: var(--secondary-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ {\n color: var(--accent);\n border-color: var(--accent);\n}\n.Button-module_btnOutline__CCFPI.Button-module_accent__opVgQ:hover:not(:disabled) {\n background: var(--accent-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy {\n color: var(--light-contrast-text);\n border-color: var(--light);\n}\n.Button-module_btnOutline__CCFPI.Button-module_light__LXeZy:hover:not(:disabled) {\n background: var(--light-highlight);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT {\n color: var(--dark);\n border-color: var(--dark);\n}\n.Button-module_btnOutline__CCFPI.Button-module_dark__5oFOT:hover:not(:disabled) {\n background: var(--dark-highlight);\n}\n.Button-module_btnOutline__CCFPI:disabled {\n color: rgba(0, 0, 0, 0.26);\n border: 1px solid rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_startIcon__Eylwr {\n display: inherit;\n margin-left: -4px;\n margin-right: 8px;\n}\n.Button-module_startIcon__Eylwr svg {\n width: 18px;\n height: 18px;\n}\n\n.Button-module_endIcon__pCffL {\n display: inherit;\n margin-left: 8px;\n}\n.Button-module_endIcon__pCffL svg {\n width: 18px;\n height: 18px;\n}";
|
|
520
|
+
var styles$S = {"button":"Button-module_button__qeIer","shadow":"Button-module_shadow__6N2nE","block":"Button-module_block__JIazf","btnContained":"Button-module_btnContained__16y5l","primary":"Button-module_primary__EUyOu","accent":"Button-module_accent__opVgQ","secondary":"Button-module_secondary__zKoGk","light":"Button-module_light__LXeZy","dark":"Button-module_dark__5oFOT","btnText":"Button-module_btnText__N5Gys","btnOutline":"Button-module_btnOutline__CCFPI","startIcon":"Button-module_startIcon__Eylwr","endIcon":"Button-module_endIcon__pCffL"};
|
|
521
|
+
styleInject(css_248z$S);
|
|
522
|
+
|
|
515
523
|
const ButtonContext = React.createContext({
|
|
516
524
|
color: null
|
|
517
525
|
});
|
|
@@ -522,19 +530,19 @@ const Button = props => {
|
|
|
522
530
|
const buttonContext = useButtonContext();
|
|
523
531
|
const getCssClasses = () => {
|
|
524
532
|
const cssClasses = [];
|
|
525
|
-
cssClasses.push(styles$
|
|
533
|
+
cssClasses.push(styles$S.button);
|
|
526
534
|
const buttonColor = buttonContext.color || color;
|
|
527
535
|
if (variant !== 'outline' && variant !== 'text') {
|
|
528
|
-
cssClasses.push(styles$
|
|
529
|
-
cssClasses.push(styles$
|
|
536
|
+
cssClasses.push(styles$S.btnContained);
|
|
537
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
530
538
|
}
|
|
531
539
|
if (variant === 'outline') {
|
|
532
|
-
cssClasses.push(styles$
|
|
533
|
-
cssClasses.push(styles$
|
|
540
|
+
cssClasses.push(styles$S.btnOutline);
|
|
541
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
534
542
|
}
|
|
535
543
|
if (variant === 'text') {
|
|
536
|
-
cssClasses.push(styles$
|
|
537
|
-
cssClasses.push(styles$
|
|
544
|
+
cssClasses.push(styles$S.btnText);
|
|
545
|
+
cssClasses.push(styles$S[buttonColor]);
|
|
538
546
|
}
|
|
539
547
|
if (isRounded && variant !== 'text') {
|
|
540
548
|
cssClasses.push(`rounded-pill`);
|
|
@@ -542,70 +550,27 @@ const Button = props => {
|
|
|
542
550
|
if (isActive) {
|
|
543
551
|
cssClasses.push('active');
|
|
544
552
|
}
|
|
545
|
-
shadow && cssClasses.push(styles$
|
|
546
|
-
block && cssClasses.push(styles$
|
|
553
|
+
shadow && cssClasses.push(styles$S.shadow);
|
|
554
|
+
block && cssClasses.push(styles$S.block);
|
|
547
555
|
className && cssClasses.push(className);
|
|
548
556
|
return cssClasses.filter(css => css).join(' ');
|
|
549
557
|
};
|
|
550
|
-
return (
|
|
551
|
-
React__default["default"].createElement("span", { className: "d-flex justify-content-center" },
|
|
552
|
-
startIcon && React__default["default"].createElement(Icon, { className: styles$U.startIcon }, startIcon),
|
|
553
|
-
children,
|
|
554
|
-
endIcon && React__default["default"].createElement(Icon, { className: styles$U.endIcon }, endIcon))));
|
|
558
|
+
return (jsxRuntime.jsx("button", { type: "button", className: getCssClasses(), ...rest, children: jsxRuntime.jsxs("span", { className: "d-flex justify-content-center", children: [startIcon && jsxRuntime.jsx(Icon, { className: styles$S.startIcon, children: startIcon }), children, endIcon && jsxRuntime.jsx(Icon, { className: styles$S.endIcon, children: endIcon })] }) }));
|
|
555
559
|
};
|
|
556
560
|
|
|
557
|
-
var css_248z$
|
|
558
|
-
var styles$
|
|
559
|
-
styleInject(css_248z$
|
|
561
|
+
var css_248z$R = ".ButtonGroup-module_buttonGroup__w6iB- {\n display: inline-flex;\n border-radius: 4px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.ButtonGroup-module_buttonGroup__w6iB- button:not(:last-of-type) {\n border-right: 1px solid #bdbdbd;\n}";
|
|
562
|
+
var styles$R = {"buttonGroup":"ButtonGroup-module_buttonGroup__w6iB-"};
|
|
563
|
+
styleInject(css_248z$R);
|
|
560
564
|
|
|
561
565
|
const ButtonGroup = (props) => {
|
|
562
566
|
const { children, className, color, ...rest } = props;
|
|
563
567
|
const getCssClasses = () => {
|
|
564
568
|
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);
|
|
569
|
+
cssClasses.push(styles$R.buttonGroup);
|
|
600
570
|
className && cssClasses.push(className);
|
|
601
|
-
isActive && cssClasses.push('active');
|
|
602
571
|
return cssClasses.filter(css => css).join(' ');
|
|
603
572
|
};
|
|
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)));
|
|
573
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.primary }, children: jsxRuntime.jsx("div", { className: getCssClasses(), role: "group", ...rest, children: children }) }));
|
|
609
574
|
};
|
|
610
575
|
|
|
611
576
|
var css_248z$Q = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
@@ -621,7 +586,7 @@ const Card = (props) => {
|
|
|
621
586
|
className && cssClasses.push(className);
|
|
622
587
|
return cssClasses.filter(css => css).join(' ');
|
|
623
588
|
};
|
|
624
|
-
return (
|
|
589
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
625
590
|
};
|
|
626
591
|
|
|
627
592
|
var css_248z$P = ".CardBody-module_cardBody__X52VY {\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem;\n}";
|
|
@@ -636,7 +601,7 @@ const CardBody = (props) => {
|
|
|
636
601
|
className && cssClasses.push(className);
|
|
637
602
|
return cssClasses.filter(css => css).join(' ');
|
|
638
603
|
};
|
|
639
|
-
return (
|
|
604
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
640
605
|
};
|
|
641
606
|
|
|
642
607
|
var css_248z$O = ".CardFooter-module_cardFooter__BpOTG {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n.CardFooter-module_cardFooter__BpOTG:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}";
|
|
@@ -651,7 +616,7 @@ const CardFooter = (props) => {
|
|
|
651
616
|
className && cssClasses.push(className);
|
|
652
617
|
return cssClasses.filter(css => css).join(' ');
|
|
653
618
|
};
|
|
654
|
-
return (
|
|
619
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
655
620
|
};
|
|
656
621
|
|
|
657
622
|
var css_248z$N = ".CardSubtitle-module_cardSubtitle__YdoRM {\n color: #6c757d !important;\n}";
|
|
@@ -666,7 +631,7 @@ const CardSubtitle = (props) => {
|
|
|
666
631
|
className && cssClasses.push(className);
|
|
667
632
|
return cssClasses.filter(css => css).join(' ');
|
|
668
633
|
};
|
|
669
|
-
return (
|
|
634
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
670
635
|
};
|
|
671
636
|
|
|
672
637
|
var css_248z$M = ".CardText-module_cardText__UtYd9:last-child {\n margin-bottom: 0;\n}";
|
|
@@ -681,7 +646,7 @@ const CardText = (props) => {
|
|
|
681
646
|
className && cssClasses.push(className);
|
|
682
647
|
return cssClasses.filter(css => css).join(' ');
|
|
683
648
|
};
|
|
684
|
-
return (
|
|
649
|
+
return (jsxRuntime.jsx("p", { className: getCssClasses(), ...rest, children: children }));
|
|
685
650
|
};
|
|
686
651
|
|
|
687
652
|
var css_248z$L = ".CardTitle-module_cardTitle__aiPSE {\n margin-bottom: 0;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0em;\n}";
|
|
@@ -696,7 +661,7 @@ const CardTitle = (props) => {
|
|
|
696
661
|
className && cssClasses.push(className);
|
|
697
662
|
return cssClasses.filter(css => css).join(' ');
|
|
698
663
|
};
|
|
699
|
-
return (
|
|
664
|
+
return (jsxRuntime.jsx(As, { className: getCssClasses(), ...rest, children: children }));
|
|
700
665
|
};
|
|
701
666
|
|
|
702
667
|
var css_248z$K = ".CardImage-module_cardImage__Z6JWW {\n flex-shrink: 0;\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}";
|
|
@@ -711,7 +676,7 @@ const CardImage = (props) => {
|
|
|
711
676
|
className && cssClasses.push(className);
|
|
712
677
|
return cssClasses.filter(css => css).join(' ');
|
|
713
678
|
};
|
|
714
|
-
return (
|
|
679
|
+
return (jsxRuntime.jsx("img", { className: getCssClasses(), src: src, alt: alt, ...rest }));
|
|
715
680
|
};
|
|
716
681
|
|
|
717
682
|
var css_248z$J = ".Checkbox-module_checkboxContainer__x2GCi {\n display: flex;\n align-items: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n\n.Checkbox-module_checkboxLabel__nPY4k:hover {\n cursor: pointer;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG {\n color: rgba(0, 0, 0, 0.26);\n cursor: not-allowed;\n}\n.Checkbox-module_checkboxLabel__nPY4k.Checkbox-module_disabled__wnFIG:hover {\n cursor: not-allowed;\n}";
|
|
@@ -734,8 +699,8 @@ const Checkbox = (props) => {
|
|
|
734
699
|
}
|
|
735
700
|
}, [checked]);
|
|
736
701
|
const icons = {
|
|
737
|
-
default:
|
|
738
|
-
selected:
|
|
702
|
+
default: jsxRuntime.jsx(SquareRegularIcon, {}),
|
|
703
|
+
selected: jsxRuntime.jsx(CheckSquareRegularIcon, {})
|
|
739
704
|
};
|
|
740
705
|
const getCssClasses = () => {
|
|
741
706
|
const cssClasses = [];
|
|
@@ -758,10 +723,7 @@ const Checkbox = (props) => {
|
|
|
758
723
|
checkboxElement?.current?.click();
|
|
759
724
|
}
|
|
760
725
|
};
|
|
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 })));
|
|
726
|
+
return (jsxRuntime.jsxs("div", { className: styles$J.checkboxContainer, children: [jsxRuntime.jsx(IconButton, { className: getCssClasses(), onClick: handleClick, icon: getIcon(), disabled: disabled || readOnly }), jsxRuntime.jsx("label", { onClick: handleClick, className: getCssClassesLabel(), children: label }), jsxRuntime.jsx("input", { type: "checkbox", ref: checkboxElement, id: id, name: name, checked: isChecked, disabled: disabled, readOnly: readOnly, hidden: true, value: value, ...rest })] }));
|
|
765
727
|
};
|
|
766
728
|
|
|
767
729
|
var css_248z$I = ".Chip-module_chip__dZ5qz {\n display: inline-flex;\n align-items: center;\n padding: 0.5rem;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n font-size: 75%;\n font-weight: 700;\n border-radius: 10rem;\n line-height: 1;\n}\n.Chip-module_chip__dZ5qz span {\n margin-bottom: 2px;\n}\n.Chip-module_chip__dZ5qz svg {\n width: 18px;\n height: 18px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx {\n margin-left: 5px;\n}\n.Chip-module_chip__dZ5qz .Chip-module_deleteIcon__--rUx:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_primary__YVDi9 {\n background: var(--primary);\n color: var(--primary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_secondary__-e4xP {\n background: var(--secondary);\n color: var(--secondary-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_accent__ZCTwu {\n background: var(--accent);\n color: var(--accent-contrast-text);\n}\n.Chip-module_chip__dZ5qz.Chip-module_light__vKs7O {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Chip-module_chip__dZ5qz.Chip-module_dark__G-FLQ {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover {\n cursor: pointer;\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_primary__YVDi9 {\n background: var(--primary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_secondary__-e4xP {\n background: var(--secondary-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_clickable__qAqVH:hover.Chip-module_accent__ZCTwu {\n background: var(--accent-dark);\n}\n.Chip-module_chip__dZ5qz.Chip-module_shadow__v11NF {\n box-shadow: var(--shadow);\n}";
|
|
@@ -769,7 +731,7 @@ var styles$I = {"chip":"Chip-module_chip__dZ5qz","deleteIcon":"Chip-module_delet
|
|
|
769
731
|
styleInject(css_248z$I);
|
|
770
732
|
|
|
771
733
|
const Chip = (props) => {
|
|
772
|
-
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon =
|
|
734
|
+
const { children, color = 'secondary', className, shadow, onClick, isDeletable, onDelete, deleteIcon = jsxRuntime.jsx(TimesCircleSolidIcon, {}), style, ...rest } = props;
|
|
773
735
|
const getCssClass = () => {
|
|
774
736
|
const cssClasses = [];
|
|
775
737
|
cssClasses.push(styles$I.chip);
|
|
@@ -783,9 +745,7 @@ const Chip = (props) => {
|
|
|
783
745
|
e.stopPropagation();
|
|
784
746
|
onDelete && onDelete(e);
|
|
785
747
|
};
|
|
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))));
|
|
748
|
+
return (jsxRuntime.jsxs("div", { className: getCssClass(), ...rest, style: style, children: [jsxRuntime.jsx("span", { children: children }), isDeletable && (jsxRuntime.jsx("div", { className: styles$I.deleteIcon, onClick: (e) => handleClickOnDelete(e), children: deleteIcon }))] }));
|
|
789
749
|
};
|
|
790
750
|
|
|
791
751
|
const CssTransition = (props) => {
|
|
@@ -859,1045 +819,379 @@ const CssTransition = (props) => {
|
|
|
859
819
|
cssState?.leaveEnd && cssClasses.push(`${className}-leave-end`);
|
|
860
820
|
return cssClasses.filter((css) => css).join(' ');
|
|
861
821
|
};
|
|
862
|
-
return (
|
|
863
|
-
|
|
822
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: isRenderChild &&
|
|
823
|
+
jsxRuntime.jsx("div", { ref: transitionConainter, className: getCssClasses(), children: children }) }));
|
|
864
824
|
};
|
|
865
825
|
|
|
866
|
-
var
|
|
867
|
-
var styles$H = {"column":"Column-module_column__fcTgl"};
|
|
868
|
-
styleInject(css_248z$H);
|
|
826
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
869
827
|
|
|
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
|
-
};
|
|
828
|
+
function createCommonjsModule(fn, module) {
|
|
829
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
830
|
+
}
|
|
880
831
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
832
|
+
/** @license React v16.13.1
|
|
833
|
+
* react-is.production.min.js
|
|
834
|
+
*
|
|
835
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
836
|
+
*
|
|
837
|
+
* This source code is licensed under the MIT license found in the
|
|
838
|
+
* LICENSE file in the root directory of this source tree.
|
|
839
|
+
*/
|
|
840
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
841
|
+
Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
842
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r$1:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r$1;var Portal=d;
|
|
843
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
844
|
+
var isMemo=function(a){return z(a)===r$1};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
845
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r$1||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
884
846
|
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
847
|
+
var reactIs_production_min = {
|
|
848
|
+
AsyncMode: AsyncMode,
|
|
849
|
+
ConcurrentMode: ConcurrentMode,
|
|
850
|
+
ContextConsumer: ContextConsumer,
|
|
851
|
+
ContextProvider: ContextProvider,
|
|
852
|
+
Element: Element,
|
|
853
|
+
ForwardRef: ForwardRef,
|
|
854
|
+
Fragment: Fragment,
|
|
855
|
+
Lazy: Lazy,
|
|
856
|
+
Memo: Memo,
|
|
857
|
+
Portal: Portal,
|
|
858
|
+
Profiler: Profiler,
|
|
859
|
+
StrictMode: StrictMode,
|
|
860
|
+
Suspense: Suspense,
|
|
861
|
+
isAsyncMode: isAsyncMode,
|
|
862
|
+
isConcurrentMode: isConcurrentMode,
|
|
863
|
+
isContextConsumer: isContextConsumer,
|
|
864
|
+
isContextProvider: isContextProvider,
|
|
865
|
+
isElement: isElement,
|
|
866
|
+
isForwardRef: isForwardRef,
|
|
867
|
+
isFragment: isFragment,
|
|
868
|
+
isLazy: isLazy,
|
|
869
|
+
isMemo: isMemo,
|
|
870
|
+
isPortal: isPortal,
|
|
871
|
+
isProfiler: isProfiler,
|
|
872
|
+
isStrictMode: isStrictMode,
|
|
873
|
+
isSuspense: isSuspense,
|
|
874
|
+
isValidElementType: isValidElementType,
|
|
875
|
+
typeOf: typeOf
|
|
894
876
|
};
|
|
895
877
|
|
|
896
|
-
var
|
|
897
|
-
var styles$F = {"form":"Form-module_form__h9CkF"};
|
|
898
|
-
styleInject(css_248z$F);
|
|
878
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
899
879
|
|
|
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
880
|
|
|
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
881
|
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return React__default["default"].createElement("div", { className: className }, children);
|
|
913
|
-
};
|
|
882
|
+
if (process.env.NODE_ENV !== "production") {
|
|
883
|
+
(function() {
|
|
914
884
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
885
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
886
|
+
// nor polyfill, then a plain number is used for performance.
|
|
887
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
888
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
889
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
890
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
891
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
892
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
893
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
894
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
895
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
924
896
|
|
|
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
|
-
};
|
|
897
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
898
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
899
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
900
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
901
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
902
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
903
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
904
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
905
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
906
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
907
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
949
908
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
909
|
+
function isValidElementType(type) {
|
|
910
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
911
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
912
|
+
}
|
|
953
913
|
|
|
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);
|
|
914
|
+
function typeOf(object) {
|
|
915
|
+
if (typeof object === 'object' && object !== null) {
|
|
916
|
+
var $$typeof = object.$$typeof;
|
|
1109
917
|
|
|
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
|
-
};
|
|
918
|
+
switch ($$typeof) {
|
|
919
|
+
case REACT_ELEMENT_TYPE:
|
|
920
|
+
var type = object.type;
|
|
1121
921
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
922
|
+
switch (type) {
|
|
923
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
924
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
925
|
+
case REACT_FRAGMENT_TYPE:
|
|
926
|
+
case REACT_PROFILER_TYPE:
|
|
927
|
+
case REACT_STRICT_MODE_TYPE:
|
|
928
|
+
case REACT_SUSPENSE_TYPE:
|
|
929
|
+
return type;
|
|
1125
930
|
|
|
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);
|
|
931
|
+
default:
|
|
932
|
+
var $$typeofType = type && type.$$typeof;
|
|
1173
933
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
return (React__default["default"].createElement("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest }, children));
|
|
1182
|
-
};
|
|
934
|
+
switch ($$typeofType) {
|
|
935
|
+
case REACT_CONTEXT_TYPE:
|
|
936
|
+
case REACT_FORWARD_REF_TYPE:
|
|
937
|
+
case REACT_LAZY_TYPE:
|
|
938
|
+
case REACT_MEMO_TYPE:
|
|
939
|
+
case REACT_PROVIDER_TYPE:
|
|
940
|
+
return $$typeofType;
|
|
1183
941
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
942
|
+
default:
|
|
943
|
+
return $$typeof;
|
|
944
|
+
}
|
|
1187
945
|
|
|
1188
|
-
|
|
1189
|
-
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
1190
|
-
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
1191
|
-
return isInvalid;
|
|
1192
|
-
};
|
|
946
|
+
}
|
|
1193
947
|
|
|
1194
|
-
|
|
948
|
+
case REACT_PORTAL_TYPE:
|
|
949
|
+
return $$typeof;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
1195
952
|
|
|
1196
|
-
|
|
953
|
+
return undefined;
|
|
954
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1197
955
|
|
|
1198
|
-
|
|
956
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
957
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
958
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
959
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
960
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
961
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
962
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
963
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
964
|
+
var Memo = REACT_MEMO_TYPE;
|
|
965
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
966
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
967
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
968
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
969
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1199
970
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
this.state = {
|
|
1205
|
-
controls: undefined,
|
|
1206
|
-
isValid: false,
|
|
1207
|
-
isChanged: false,
|
|
1208
|
-
isSubmitted: false,
|
|
1209
|
-
submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
|
|
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
|
-
}
|
|
971
|
+
function isAsyncMode(object) {
|
|
972
|
+
{
|
|
973
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
974
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1402
975
|
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
976
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
981
|
+
}
|
|
982
|
+
function isConcurrentMode(object) {
|
|
983
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
984
|
+
}
|
|
985
|
+
function isContextConsumer(object) {
|
|
986
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
987
|
+
}
|
|
988
|
+
function isContextProvider(object) {
|
|
989
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
990
|
+
}
|
|
991
|
+
function isElement(object) {
|
|
992
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
993
|
+
}
|
|
994
|
+
function isForwardRef(object) {
|
|
995
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
996
|
+
}
|
|
997
|
+
function isFragment(object) {
|
|
998
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
999
|
+
}
|
|
1000
|
+
function isLazy(object) {
|
|
1001
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1002
|
+
}
|
|
1003
|
+
function isMemo(object) {
|
|
1004
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1005
|
+
}
|
|
1006
|
+
function isPortal(object) {
|
|
1007
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1008
|
+
}
|
|
1009
|
+
function isProfiler(object) {
|
|
1010
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1011
|
+
}
|
|
1012
|
+
function isStrictMode(object) {
|
|
1013
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1014
|
+
}
|
|
1015
|
+
function isSuspense(object) {
|
|
1016
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1415
1017
|
}
|
|
1416
1018
|
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1019
|
+
exports.AsyncMode = AsyncMode;
|
|
1020
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
1021
|
+
exports.ContextConsumer = ContextConsumer;
|
|
1022
|
+
exports.ContextProvider = ContextProvider;
|
|
1023
|
+
exports.Element = Element;
|
|
1024
|
+
exports.ForwardRef = ForwardRef;
|
|
1025
|
+
exports.Fragment = Fragment;
|
|
1026
|
+
exports.Lazy = Lazy;
|
|
1027
|
+
exports.Memo = Memo;
|
|
1028
|
+
exports.Portal = Portal;
|
|
1029
|
+
exports.Profiler = Profiler;
|
|
1030
|
+
exports.StrictMode = StrictMode;
|
|
1031
|
+
exports.Suspense = Suspense;
|
|
1032
|
+
exports.isAsyncMode = isAsyncMode;
|
|
1033
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
1034
|
+
exports.isContextConsumer = isContextConsumer;
|
|
1035
|
+
exports.isContextProvider = isContextProvider;
|
|
1036
|
+
exports.isElement = isElement;
|
|
1037
|
+
exports.isForwardRef = isForwardRef;
|
|
1038
|
+
exports.isFragment = isFragment;
|
|
1039
|
+
exports.isLazy = isLazy;
|
|
1040
|
+
exports.isMemo = isMemo;
|
|
1041
|
+
exports.isPortal = isPortal;
|
|
1042
|
+
exports.isProfiler = isProfiler;
|
|
1043
|
+
exports.isStrictMode = isStrictMode;
|
|
1044
|
+
exports.isSuspense = isSuspense;
|
|
1045
|
+
exports.isValidElementType = isValidElementType;
|
|
1046
|
+
exports.typeOf = typeOf;
|
|
1047
|
+
})();
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
reactIs_development.AsyncMode;
|
|
1051
|
+
reactIs_development.ConcurrentMode;
|
|
1052
|
+
reactIs_development.ContextConsumer;
|
|
1053
|
+
reactIs_development.ContextProvider;
|
|
1054
|
+
reactIs_development.Element;
|
|
1055
|
+
reactIs_development.ForwardRef;
|
|
1056
|
+
reactIs_development.Fragment;
|
|
1057
|
+
reactIs_development.Lazy;
|
|
1058
|
+
reactIs_development.Memo;
|
|
1059
|
+
reactIs_development.Portal;
|
|
1060
|
+
reactIs_development.Profiler;
|
|
1061
|
+
reactIs_development.StrictMode;
|
|
1062
|
+
reactIs_development.Suspense;
|
|
1063
|
+
reactIs_development.isAsyncMode;
|
|
1064
|
+
reactIs_development.isConcurrentMode;
|
|
1065
|
+
reactIs_development.isContextConsumer;
|
|
1066
|
+
reactIs_development.isContextProvider;
|
|
1067
|
+
reactIs_development.isElement;
|
|
1068
|
+
reactIs_development.isForwardRef;
|
|
1069
|
+
reactIs_development.isFragment;
|
|
1070
|
+
reactIs_development.isLazy;
|
|
1071
|
+
reactIs_development.isMemo;
|
|
1072
|
+
reactIs_development.isPortal;
|
|
1073
|
+
reactIs_development.isProfiler;
|
|
1074
|
+
reactIs_development.isStrictMode;
|
|
1075
|
+
reactIs_development.isSuspense;
|
|
1076
|
+
reactIs_development.isValidElementType;
|
|
1077
|
+
reactIs_development.typeOf;
|
|
1443
1078
|
|
|
1444
|
-
|
|
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
|
-
};
|
|
1079
|
+
var reactIs = createCommonjsModule(function (module) {
|
|
1463
1080
|
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
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
|
-
};
|
|
1081
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1082
|
+
module.exports = reactIs_production_min;
|
|
1083
|
+
} else {
|
|
1084
|
+
module.exports = reactIs_development;
|
|
1085
|
+
}
|
|
1086
|
+
});
|
|
1486
1087
|
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
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
|
-
// };
|
|
1088
|
+
/*
|
|
1089
|
+
object-assign
|
|
1090
|
+
(c) Sindre Sorhus
|
|
1091
|
+
@license MIT
|
|
1092
|
+
*/
|
|
1093
|
+
/* eslint-disable no-unused-vars */
|
|
1094
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1095
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1096
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1531
1097
|
|
|
1532
|
-
|
|
1098
|
+
function toObject(val) {
|
|
1099
|
+
if (val === null || val === undefined) {
|
|
1100
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
1101
|
+
}
|
|
1533
1102
|
|
|
1534
|
-
|
|
1535
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1103
|
+
return Object(val);
|
|
1536
1104
|
}
|
|
1537
1105
|
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
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;
|
|
1106
|
+
function shouldUseNative() {
|
|
1107
|
+
try {
|
|
1108
|
+
if (!Object.assign) {
|
|
1109
|
+
return false;
|
|
1110
|
+
}
|
|
1552
1111
|
|
|
1553
|
-
|
|
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
|
-
};
|
|
1112
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
1583
1113
|
|
|
1584
|
-
|
|
1114
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
1115
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
1116
|
+
test1[5] = 'de';
|
|
1117
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
1118
|
+
return false;
|
|
1119
|
+
}
|
|
1585
1120
|
|
|
1121
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1122
|
+
var test2 = {};
|
|
1123
|
+
for (var i = 0; i < 10; i++) {
|
|
1124
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
1125
|
+
}
|
|
1126
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
1127
|
+
return test2[n];
|
|
1128
|
+
});
|
|
1129
|
+
if (order2.join('') !== '0123456789') {
|
|
1130
|
+
return false;
|
|
1131
|
+
}
|
|
1586
1132
|
|
|
1133
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1134
|
+
var test3 = {};
|
|
1135
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
1136
|
+
test3[letter] = letter;
|
|
1137
|
+
});
|
|
1138
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
1139
|
+
'abcdefghijklmnopqrst') {
|
|
1140
|
+
return false;
|
|
1141
|
+
}
|
|
1587
1142
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1143
|
+
return true;
|
|
1144
|
+
} catch (err) {
|
|
1145
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
1146
|
+
return false;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1590
1149
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
var
|
|
1594
|
-
var
|
|
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?
|
|
1150
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
1151
|
+
var from;
|
|
1152
|
+
var to = toObject(target);
|
|
1153
|
+
var symbols;
|
|
1602
1154
|
|
|
1603
|
-
var
|
|
1604
|
-
|
|
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;
|
|
1155
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
1156
|
+
from = Object(arguments[s]);
|
|
1614
1157
|
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
}
|
|
1158
|
+
for (var key in from) {
|
|
1159
|
+
if (hasOwnProperty$1.call(from, key)) {
|
|
1160
|
+
to[key] = from[key];
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1619
1163
|
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1164
|
+
if (getOwnPropertySymbols) {
|
|
1165
|
+
symbols = getOwnPropertySymbols(from);
|
|
1166
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
1167
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
1168
|
+
to[symbols[i]] = from[symbols[i]];
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1623
1173
|
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
var type = object.type;
|
|
1174
|
+
return to;
|
|
1175
|
+
};
|
|
1627
1176
|
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
case REACT_SUSPENSE_TYPE:
|
|
1635
|
-
return type;
|
|
1177
|
+
/**
|
|
1178
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1179
|
+
*
|
|
1180
|
+
* This source code is licensed under the MIT license found in the
|
|
1181
|
+
* LICENSE file in the root directory of this source tree.
|
|
1182
|
+
*/
|
|
1636
1183
|
|
|
1637
|
-
|
|
1638
|
-
var $$typeofType = type && type.$$typeof;
|
|
1184
|
+
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1639
1185
|
|
|
1640
|
-
|
|
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;
|
|
1186
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
1647
1187
|
|
|
1648
|
-
|
|
1649
|
-
return $$typeof;
|
|
1650
|
-
}
|
|
1188
|
+
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1651
1189
|
|
|
1652
|
-
|
|
1190
|
+
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
1653
1191
|
|
|
1654
|
-
|
|
1655
|
-
return $$typeof;
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1192
|
+
var has$1 = has$2;
|
|
1658
1193
|
|
|
1659
|
-
|
|
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
|
|
1676
|
-
|
|
1677
|
-
function isAsyncMode(object) {
|
|
1678
|
-
{
|
|
1679
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1680
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1681
|
-
|
|
1682
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1687
|
-
}
|
|
1688
|
-
function isConcurrentMode(object) {
|
|
1689
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1690
|
-
}
|
|
1691
|
-
function isContextConsumer(object) {
|
|
1692
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1693
|
-
}
|
|
1694
|
-
function isContextProvider(object) {
|
|
1695
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1696
|
-
}
|
|
1697
|
-
function isElement(object) {
|
|
1698
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1699
|
-
}
|
|
1700
|
-
function isForwardRef(object) {
|
|
1701
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1702
|
-
}
|
|
1703
|
-
function isFragment(object) {
|
|
1704
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1705
|
-
}
|
|
1706
|
-
function isLazy(object) {
|
|
1707
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1708
|
-
}
|
|
1709
|
-
function isMemo(object) {
|
|
1710
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1711
|
-
}
|
|
1712
|
-
function isPortal(object) {
|
|
1713
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1714
|
-
}
|
|
1715
|
-
function isProfiler(object) {
|
|
1716
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1717
|
-
}
|
|
1718
|
-
function isStrictMode(object) {
|
|
1719
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1720
|
-
}
|
|
1721
|
-
function isSuspense(object) {
|
|
1722
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
exports.AsyncMode = AsyncMode;
|
|
1726
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
1727
|
-
exports.ContextConsumer = ContextConsumer;
|
|
1728
|
-
exports.ContextProvider = ContextProvider;
|
|
1729
|
-
exports.Element = Element;
|
|
1730
|
-
exports.ForwardRef = ForwardRef;
|
|
1731
|
-
exports.Fragment = Fragment;
|
|
1732
|
-
exports.Lazy = Lazy;
|
|
1733
|
-
exports.Memo = Memo;
|
|
1734
|
-
exports.Portal = Portal;
|
|
1735
|
-
exports.Profiler = Profiler;
|
|
1736
|
-
exports.StrictMode = StrictMode;
|
|
1737
|
-
exports.Suspense = Suspense;
|
|
1738
|
-
exports.isAsyncMode = isAsyncMode;
|
|
1739
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
1740
|
-
exports.isContextConsumer = isContextConsumer;
|
|
1741
|
-
exports.isContextProvider = isContextProvider;
|
|
1742
|
-
exports.isElement = isElement;
|
|
1743
|
-
exports.isForwardRef = isForwardRef;
|
|
1744
|
-
exports.isFragment = isFragment;
|
|
1745
|
-
exports.isLazy = isLazy;
|
|
1746
|
-
exports.isMemo = isMemo;
|
|
1747
|
-
exports.isPortal = isPortal;
|
|
1748
|
-
exports.isProfiler = isProfiler;
|
|
1749
|
-
exports.isStrictMode = isStrictMode;
|
|
1750
|
-
exports.isSuspense = isSuspense;
|
|
1751
|
-
exports.isValidElementType = isValidElementType;
|
|
1752
|
-
exports.typeOf = typeOf;
|
|
1753
|
-
})();
|
|
1754
|
-
}
|
|
1755
|
-
});
|
|
1756
|
-
reactIs_development.AsyncMode;
|
|
1757
|
-
reactIs_development.ConcurrentMode;
|
|
1758
|
-
reactIs_development.ContextConsumer;
|
|
1759
|
-
reactIs_development.ContextProvider;
|
|
1760
|
-
reactIs_development.Element;
|
|
1761
|
-
reactIs_development.ForwardRef;
|
|
1762
|
-
reactIs_development.Fragment;
|
|
1763
|
-
reactIs_development.Lazy;
|
|
1764
|
-
reactIs_development.Memo;
|
|
1765
|
-
reactIs_development.Portal;
|
|
1766
|
-
reactIs_development.Profiler;
|
|
1767
|
-
reactIs_development.StrictMode;
|
|
1768
|
-
reactIs_development.Suspense;
|
|
1769
|
-
reactIs_development.isAsyncMode;
|
|
1770
|
-
reactIs_development.isConcurrentMode;
|
|
1771
|
-
reactIs_development.isContextConsumer;
|
|
1772
|
-
reactIs_development.isContextProvider;
|
|
1773
|
-
reactIs_development.isElement;
|
|
1774
|
-
reactIs_development.isForwardRef;
|
|
1775
|
-
reactIs_development.isFragment;
|
|
1776
|
-
reactIs_development.isLazy;
|
|
1777
|
-
reactIs_development.isMemo;
|
|
1778
|
-
reactIs_development.isPortal;
|
|
1779
|
-
reactIs_development.isProfiler;
|
|
1780
|
-
reactIs_development.isStrictMode;
|
|
1781
|
-
reactIs_development.isSuspense;
|
|
1782
|
-
reactIs_development.isValidElementType;
|
|
1783
|
-
reactIs_development.typeOf;
|
|
1784
|
-
|
|
1785
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
1786
|
-
|
|
1787
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1788
|
-
module.exports = reactIs_production_min;
|
|
1789
|
-
} else {
|
|
1790
|
-
module.exports = reactIs_development;
|
|
1791
|
-
}
|
|
1792
|
-
});
|
|
1793
|
-
|
|
1794
|
-
/*
|
|
1795
|
-
object-assign
|
|
1796
|
-
(c) Sindre Sorhus
|
|
1797
|
-
@license MIT
|
|
1798
|
-
*/
|
|
1799
|
-
/* eslint-disable no-unused-vars */
|
|
1800
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1801
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1802
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1803
|
-
|
|
1804
|
-
function toObject(val) {
|
|
1805
|
-
if (val === null || val === undefined) {
|
|
1806
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
return Object(val);
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
function shouldUseNative() {
|
|
1813
|
-
try {
|
|
1814
|
-
if (!Object.assign) {
|
|
1815
|
-
return false;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
1819
|
-
|
|
1820
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
1821
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
1822
|
-
test1[5] = 'de';
|
|
1823
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
1824
|
-
return false;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1828
|
-
var test2 = {};
|
|
1829
|
-
for (var i = 0; i < 10; i++) {
|
|
1830
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
1831
|
-
}
|
|
1832
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
1833
|
-
return test2[n];
|
|
1834
|
-
});
|
|
1835
|
-
if (order2.join('') !== '0123456789') {
|
|
1836
|
-
return false;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1840
|
-
var test3 = {};
|
|
1841
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
1842
|
-
test3[letter] = letter;
|
|
1843
|
-
});
|
|
1844
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
1845
|
-
'abcdefghijklmnopqrst') {
|
|
1846
|
-
return false;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
return true;
|
|
1850
|
-
} catch (err) {
|
|
1851
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
1852
|
-
return false;
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
1857
|
-
var from;
|
|
1858
|
-
var to = toObject(target);
|
|
1859
|
-
var symbols;
|
|
1860
|
-
|
|
1861
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
1862
|
-
from = Object(arguments[s]);
|
|
1863
|
-
|
|
1864
|
-
for (var key in from) {
|
|
1865
|
-
if (hasOwnProperty$1.call(from, key)) {
|
|
1866
|
-
to[key] = from[key];
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
if (getOwnPropertySymbols) {
|
|
1871
|
-
symbols = getOwnPropertySymbols(from);
|
|
1872
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
1873
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
1874
|
-
to[symbols[i]] = from[symbols[i]];
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
return to;
|
|
1881
|
-
};
|
|
1882
|
-
|
|
1883
|
-
/**
|
|
1884
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1885
|
-
*
|
|
1886
|
-
* This source code is licensed under the MIT license found in the
|
|
1887
|
-
* LICENSE file in the root directory of this source tree.
|
|
1888
|
-
*/
|
|
1889
|
-
|
|
1890
|
-
var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1891
|
-
|
|
1892
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
|
|
1893
|
-
|
|
1894
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1895
|
-
|
|
1896
|
-
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
1897
|
-
|
|
1898
|
-
var has$1 = has$2;
|
|
1899
|
-
|
|
1900
|
-
var printWarning$1 = function() {};
|
|
1194
|
+
var printWarning$1 = function() {};
|
|
1901
1195
|
|
|
1902
1196
|
if (process.env.NODE_ENV !== 'production') {
|
|
1903
1197
|
var ReactPropTypesSecret = ReactPropTypesSecret$1;
|
|
@@ -5699,169 +4993,687 @@ Calendar$1.propTypes = {
|
|
|
5699
4993
|
|
|
5700
4994
|
var Calendar = Calendar$1;
|
|
5701
4995
|
|
|
5702
|
-
var css_248z$
|
|
5703
|
-
var styles$
|
|
5704
|
-
styleInject(css_248z$
|
|
4996
|
+
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4997
|
+
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4998
|
+
styleInject(css_248z$H);
|
|
4999
|
+
|
|
5000
|
+
const DatePicker = (props) => {
|
|
5001
|
+
const { value = new Date(), selectRange, minDate, maxDate,
|
|
5002
|
+
// disabled,
|
|
5003
|
+
onChange, ...rest } = props;
|
|
5004
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
5005
|
+
const handleOnChange = (e) => {
|
|
5006
|
+
setCurrDate(e);
|
|
5007
|
+
onChange && onChange(e);
|
|
5008
|
+
};
|
|
5009
|
+
return (jsxRuntime.jsx(Calendar, { className: styles$H.datePicker, value: currDate, minDate: minDate, maxDate: maxDate, selectRange: selectRange, onChange: handleOnChange, ...rest }));
|
|
5010
|
+
};
|
|
5011
|
+
|
|
5012
|
+
var css_248z$G = ".Column-module_column__fcTgl {\n flex: 1 0 0%;\n}\n\n@media (max-width: 575.98px) {\n .Column-module_column__fcTgl {\n flex: 1;\n }\n}";
|
|
5013
|
+
var styles$G = {"column":"Column-module_column__fcTgl"};
|
|
5014
|
+
styleInject(css_248z$G);
|
|
5015
|
+
|
|
5016
|
+
const Column = (props) => {
|
|
5017
|
+
const { children, className, ...rest } = props;
|
|
5018
|
+
const getCssClasses = () => {
|
|
5019
|
+
const cssClasses = [];
|
|
5020
|
+
cssClasses.push(styles$G.column);
|
|
5021
|
+
className && cssClasses.push(className);
|
|
5022
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5023
|
+
};
|
|
5024
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5025
|
+
};
|
|
5026
|
+
|
|
5027
|
+
var css_248z$F = ".Row-module_row__bTIWp {\n display: flex;\n gap: 15px;\n flex-wrap: wrap;\n}\n.Row-module_row__bTIWp > * {\n flex-shrink: 0;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n}";
|
|
5028
|
+
var styles$F = {"row":"Row-module_row__bTIWp"};
|
|
5029
|
+
styleInject(css_248z$F);
|
|
5030
|
+
|
|
5031
|
+
const Row = ({ children, direction = 'row', className, ...rest }) => {
|
|
5032
|
+
const getCssClasses = () => {
|
|
5033
|
+
const cssClasses = [];
|
|
5034
|
+
cssClasses.push(styles$F.row);
|
|
5035
|
+
className && cssClasses.push(className);
|
|
5036
|
+
direction && cssClasses.push(`flex-${direction}`);
|
|
5037
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5038
|
+
};
|
|
5039
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
5040
|
+
};
|
|
5041
|
+
|
|
5042
|
+
var css_248z$E = ".Form-module_form__h9CkF > div {\n margin-bottom: 10px;\n}\n.Form-module_form__h9CkF :last-child {\n margin-bottom: 0;\n}";
|
|
5043
|
+
var styles$E = {"form":"Form-module_form__h9CkF"};
|
|
5044
|
+
styleInject(css_248z$E);
|
|
5045
|
+
|
|
5046
|
+
var css_248z$D = ".FormError-module_isInvalid__tO1Sw {\n width: 100%;\n margin-top: 0.25rem;\n font-size: 0.875em;\n color: #dc3545;\n}";
|
|
5047
|
+
var styles$D = {"isInvalid":"FormError-module_isInvalid__tO1Sw"};
|
|
5048
|
+
styleInject(css_248z$D);
|
|
5049
|
+
|
|
5050
|
+
const FormError = (props) => {
|
|
5051
|
+
const { className = styles$D.isInvalid, errors = [] } = props;
|
|
5052
|
+
return (jsxRuntime.jsx(React.Fragment, { children: errors &&
|
|
5053
|
+
jsxRuntime.jsx("div", { className: className, children: errors.map(e => jsxRuntime.jsx("div", { children: e.message }, e.validator)) }) }));
|
|
5054
|
+
};
|
|
5055
|
+
|
|
5056
|
+
const FormGroup = (props) => {
|
|
5057
|
+
const { children, className } = props;
|
|
5058
|
+
return jsxRuntime.jsx("div", { className: className, children: children });
|
|
5059
|
+
};
|
|
5060
|
+
|
|
5061
|
+
const FormHint = (props) => {
|
|
5062
|
+
const { children, className = 'form-text text-muted' } = props;
|
|
5063
|
+
const getCssClasses = () => {
|
|
5064
|
+
const cssClasses = [];
|
|
5065
|
+
className && cssClasses.push(className);
|
|
5066
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5067
|
+
};
|
|
5068
|
+
return (jsxRuntime.jsx("small", { className: getCssClasses(), children: children }));
|
|
5069
|
+
};
|
|
5070
|
+
|
|
5071
|
+
const FileInput = (props) => {
|
|
5072
|
+
const { id, className, children, name, multiple = false, accept, disabled, onChange, readOnly, value, deletable = false, ...rest } = props;
|
|
5073
|
+
const inputFileElement = React.useRef(null);
|
|
5074
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5075
|
+
const [model, setModel] = React.useState(value);
|
|
5076
|
+
const [fileList, setFileList] = React.useState();
|
|
5077
|
+
const getCssClasses = () => {
|
|
5078
|
+
const cssClasses = [];
|
|
5079
|
+
className && cssClasses.push(className);
|
|
5080
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5081
|
+
};
|
|
5082
|
+
const handleOnChange = (event) => {
|
|
5083
|
+
const values = event.target.files;
|
|
5084
|
+
setFileList(values);
|
|
5085
|
+
onChange && onChange(event);
|
|
5086
|
+
};
|
|
5087
|
+
const handleOnDelete = () => {
|
|
5088
|
+
alert('coming soon');
|
|
5089
|
+
};
|
|
5090
|
+
return (jsxRuntime.jsxs("div", { className: "d-flex align-items-start", children: [jsxRuntime.jsx(Button, { className: "flex-wrap", disabled: disabled, onClick: () => inputFileElement.current?.click(), children: children }), jsxRuntime.jsx("div", { className: "d-flex align-items-center flex-wrap ml-1", children: fileList && Array.from(fileList).map((file) => jsxRuntime.jsx(Chip, { isDeletable: deletable, onDelete: () => handleOnDelete(), children: file.name }, file.name)) }), jsxRuntime.jsx("input", { type: "file", ref: inputFileElement, className: getCssClasses(), id: id, name: name, multiple: multiple, accept: accept, disabled: disabled, readOnly: readOnly, hidden: true, onChange: handleOnChange, value: model, ...rest })] }));
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
var css_248z$C = ".Select-module_selectContainer__DHFDZ {\n position: relative;\n}\n\n.Select-module_select__Fbn38 {\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n align-items: center;\n min-height: calc(1.5em + 0.75rem + 2px);\n height: auto;\n display: flex;\n flex-wrap: wrap;\n}\n.Select-module_select__Fbn38 > span {\n flex: 1;\n}\n.Select-module_select__Fbn38:hover {\n cursor: pointer;\n}\n.Select-module_select__Fbn38:focus:not(.Select-module_select__Fbn38.Select-module_disabled__2XXut) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039), 0 0 0 0.25rem rgba(13, 110, 253, 0.2509803922);\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut, .Select-module_select__Fbn38.Select-module_readOnly__VoTER {\n background-color: #e9ecef;\n}\n.Select-module_select__Fbn38.Select-module_disabled__2XXut:hover {\n cursor: not-allowed;\n}\n.Select-module_select__Fbn38.Select-module_readOnly__VoTER:hover {\n cursor: inherit;\n}\n\n.Select-module_chipContainer__1poFF {\n gap: 10px;\n flex: 1;\n display: inline-flex;\n flex-wrap: wrap;\n}\n\n.Select-module_selectMenu__8y4kQ {\n background-color: var(--light);\n position: absolute;\n box-shadow: var(--shadow);\n border-radius: var(--borderRadius);\n width: 100%;\n top: 2px;\n z-index: 1112;\n max-height: 280px;\n overflow: auto;\n}";
|
|
5094
|
+
var styles$C = {"selectContainer":"Select-module_selectContainer__DHFDZ","select":"Select-module_select__Fbn38","disabled":"Select-module_disabled__2XXut","readOnly":"Select-module_readOnly__VoTER","chipContainer":"Select-module_chipContainer__1poFF","selectMenu":"Select-module_selectMenu__8y4kQ"};
|
|
5095
|
+
styleInject(css_248z$C);
|
|
5096
|
+
|
|
5097
|
+
const Select = (props) => {
|
|
5098
|
+
const { id, className, options = [], value, multiple, multipleMaxCountItems = 5, disabled, readOnly, onChange, onKeyDown } = props;
|
|
5099
|
+
const [model, setModel] = React.useState('');
|
|
5100
|
+
const [hoverIndex, setHoverIndex] = React.useState(null);
|
|
5101
|
+
const [isShow, setIsShow] = React.useState(false);
|
|
5102
|
+
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
5103
|
+
const selectConainter = React.useRef(null);
|
|
5104
|
+
const getCssClass = () => {
|
|
5105
|
+
const cssClasses = [];
|
|
5106
|
+
className && cssClasses.push(className);
|
|
5107
|
+
disabled && cssClasses.push(styles$C['disabled']);
|
|
5108
|
+
readOnly && cssClasses.push(styles$C['readOnly']);
|
|
5109
|
+
cssClasses.push(styles$C.select);
|
|
5110
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5111
|
+
};
|
|
5112
|
+
React.useEffect(() => {
|
|
5113
|
+
const newValue = value ? value : '';
|
|
5114
|
+
writeValue(newValue);
|
|
5115
|
+
if (newValue) {
|
|
5116
|
+
const option = options.find(o => o.value === newValue);
|
|
5117
|
+
if (option) {
|
|
5118
|
+
setHoverIndex(options.indexOf(option));
|
|
5119
|
+
}
|
|
5120
|
+
}
|
|
5121
|
+
}, [value, options]);
|
|
5122
|
+
React.useEffect(() => {
|
|
5123
|
+
if (hoverIndex) {
|
|
5124
|
+
scrollIntoView(hoverIndex);
|
|
5125
|
+
}
|
|
5126
|
+
}, [hoverIndex, isShow]);
|
|
5127
|
+
const scrollIntoView = (index) => {
|
|
5128
|
+
const htmlListItem = selectConainter.current?.querySelector(`#list-item-${index}`);
|
|
5129
|
+
if (htmlListItem) {
|
|
5130
|
+
htmlListItem?.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
|
5131
|
+
}
|
|
5132
|
+
};
|
|
5133
|
+
const writeValue = (val) => setModel(val);
|
|
5134
|
+
React.useEffect(() => {
|
|
5135
|
+
if (!multiple) {
|
|
5136
|
+
const newOption = options.find(o => o.value === model);
|
|
5137
|
+
if (newOption) {
|
|
5138
|
+
setSelectedOptions([newOption]);
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5141
|
+
else {
|
|
5142
|
+
const filteredOptions = options.filter(o => model.indexOf(o.value) >= 0);
|
|
5143
|
+
setSelectedOptions([...filteredOptions]);
|
|
5144
|
+
}
|
|
5145
|
+
}, [model, multiple]);
|
|
5146
|
+
const handleOnClick = (option) => {
|
|
5147
|
+
let newValue = multiple ? [] : '';
|
|
5148
|
+
if (!multiple) {
|
|
5149
|
+
if (model !== option.value) {
|
|
5150
|
+
newValue = option.value;
|
|
5151
|
+
onChange && onChange(newValue);
|
|
5152
|
+
}
|
|
5153
|
+
hide();
|
|
5154
|
+
}
|
|
5155
|
+
else {
|
|
5156
|
+
const selectedOption = selectedOptions.find(o => o.value === option.value);
|
|
5157
|
+
if (selectedOption) {
|
|
5158
|
+
newValue = selectedOptions.filter(o => o.value !== option.value).map(o => o.value);
|
|
5159
|
+
}
|
|
5160
|
+
else {
|
|
5161
|
+
newValue = newValue.concat(selectedOptions.map(o => o.value));
|
|
5162
|
+
newValue.push(option.value);
|
|
5163
|
+
}
|
|
5164
|
+
onChange && onChange(newValue);
|
|
5165
|
+
}
|
|
5166
|
+
writeValue(newValue);
|
|
5167
|
+
};
|
|
5168
|
+
const show = () => {
|
|
5169
|
+
if (!disabled && !readOnly) {
|
|
5170
|
+
setIsShow(true);
|
|
5171
|
+
}
|
|
5172
|
+
};
|
|
5173
|
+
const hide = () => setIsShow(false);
|
|
5174
|
+
const isActive = (option) => {
|
|
5175
|
+
return selectedOptions.indexOf(option) >= 0 || hoverIndex === options.indexOf(option);
|
|
5176
|
+
};
|
|
5177
|
+
const renderSingleViewModel = () => {
|
|
5178
|
+
let result = null;
|
|
5179
|
+
if (selectedOptions.length > 0) {
|
|
5180
|
+
result = jsxRuntime.jsx("span", { children: selectedOptions[0].label });
|
|
5181
|
+
}
|
|
5182
|
+
return result;
|
|
5183
|
+
};
|
|
5184
|
+
const renderMultipleViewModel = () => {
|
|
5185
|
+
let result = null;
|
|
5186
|
+
if (selectedOptions.length <= multipleMaxCountItems && selectedOptions.length > 0) {
|
|
5187
|
+
result = selectedOptions
|
|
5188
|
+
.map(option => jsxRuntime.jsx(Chip, { color: exports.COLOR.primary, isDeletable: true, onDelete: (e) => handleOnDelete(e, option), children: option.label }, option.value));
|
|
5189
|
+
}
|
|
5190
|
+
else {
|
|
5191
|
+
result = jsxRuntime.jsxs("span", { children: [selectedOptions.length, " Items selected"] });
|
|
5192
|
+
}
|
|
5193
|
+
return result;
|
|
5194
|
+
};
|
|
5195
|
+
const handleOnDelete = (event, option) => {
|
|
5196
|
+
event.stopPropagation();
|
|
5197
|
+
handleOnClick(option);
|
|
5198
|
+
};
|
|
5199
|
+
// TODO - extract with wrapper?
|
|
5200
|
+
const handleOnKeyDown = (e) => {
|
|
5201
|
+
if (isShow) {
|
|
5202
|
+
onKeyDown && onKeyDown(e);
|
|
5203
|
+
switch (e.code) {
|
|
5204
|
+
case 'Escape':
|
|
5205
|
+
hide();
|
|
5206
|
+
break;
|
|
5207
|
+
case 'ArrowDown':
|
|
5208
|
+
if (hoverIndex) {
|
|
5209
|
+
setHoverIndex(hoverIndex + 1);
|
|
5210
|
+
}
|
|
5211
|
+
break;
|
|
5212
|
+
case 'ArrowUp':
|
|
5213
|
+
// TODO
|
|
5214
|
+
if (hoverIndex) {
|
|
5215
|
+
setHoverIndex(hoverIndex - 1);
|
|
5216
|
+
}
|
|
5217
|
+
break;
|
|
5218
|
+
case 'Enter':
|
|
5219
|
+
if (hoverIndex) {
|
|
5220
|
+
const option = options[hoverIndex];
|
|
5221
|
+
if (option) {
|
|
5222
|
+
handleOnClick(option);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
break;
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
};
|
|
5229
|
+
return (jsxRuntime.jsxs("div", { ref: selectConainter, className: styles$C.selectContainer, children: [jsxRuntime.jsx("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e), children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!multiple && renderSingleViewModel(), multiple &&
|
|
5230
|
+
jsxRuntime.jsx("div", { className: styles$C.chipContainer, children: renderMultipleViewModel() }), jsxRuntime.jsx(Icon, { className: "ml-auto", children: jsxRuntime.jsx(ChevronDownSolidIcon, {}) })] }) }), isShow &&
|
|
5231
|
+
jsxRuntime.jsxs(Portal$1, { className: 'backdrop-root', children: [jsxRuntime.jsx("div", { className: styles$C.selectMenu, style: { left: selectConainter.current?.getBoundingClientRect().x, top: selectConainter.current?.getBoundingClientRect().y, width: selectConainter.current?.getBoundingClientRect().width }, children: jsxRuntime.jsx(List, { children: options && options.map((option, index) => jsxRuntime.jsxs(ListItem, { id: `list-item-${index}`, onClick: () => handleOnClick(option), active: isActive(option), children: [multiple &&
|
|
5232
|
+
jsxRuntime.jsx(Checkbox, { checked: isActive(option), onChange: () => handleOnClick(option) }), jsxRuntime.jsx(ListItemText, { primary: option.label ? option.label : option.value })] }, option.value)) }) }), jsxRuntime.jsx(Backdrop, { style: { zIndex: 1111 }, isTransparent: true, onClick: () => hide() })] })] }));
|
|
5233
|
+
};
|
|
5234
|
+
|
|
5235
|
+
var css_248z$B = ".Textarea-module_textarea__L5zqa {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n background-clip: padding-box;\n border: 2px solid var(--input-border-color);\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: var(--borderRadius);\n resize: vertical;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.0745098039);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n border: 1px solid #ced4da;\n}\n.Textarea-module_textarea__L5zqa:focus:not(.Textarea-module_textarea__L5zqa.Textarea-module_disabled__OqqOF) {\n outline: none !important;\n border-color: var(--primary);\n}\n.Textarea-module_textarea__L5zqa.Textarea-module_isInvalid__JI01W {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5236
|
+
var styles$B = {"textarea":"Textarea-module_textarea__L5zqa","disabled":"Textarea-module_disabled__OqqOF","isInvalid":"Textarea-module_isInvalid__JI01W"};
|
|
5237
|
+
styleInject(css_248z$B);
|
|
5238
|
+
|
|
5239
|
+
const Textarea = (props) => {
|
|
5240
|
+
const { className, error, ...rest } = props;
|
|
5241
|
+
const getCssClass = () => {
|
|
5242
|
+
const cssClasses = [];
|
|
5243
|
+
cssClasses.push(styles$B.textarea);
|
|
5244
|
+
className && cssClasses.push(className);
|
|
5245
|
+
error && cssClasses.push(styles$B['isInvalid']);
|
|
5246
|
+
return cssClasses.filter(r => r).join(' ');
|
|
5247
|
+
};
|
|
5248
|
+
return (jsxRuntime.jsx("textarea", { className: getCssClass(), ...rest }));
|
|
5249
|
+
};
|
|
5250
|
+
|
|
5251
|
+
var css_248z$A = ".FormInput-module_formInput__VXZip {\n display: block;\n width: 100%;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n -webkit-appearance: none;\n appearance: none;\n border-radius: 0.25rem;\n box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.FormInput-module_formInput__VXZip:focus:not(.FormInput-module_formInput__VXZip.FormInput-module_disabled__EjdD9) {\n color: #212529;\n background-color: #fff;\n border-color: #86b7fe;\n outline: 0;\n box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);\n}\n.FormInput-module_formInput__VXZip.FormInput-module_isInvalid__vQDuz {\n border-color: #dc3545;\n box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.2509803922);\n}";
|
|
5252
|
+
var styles$A = {"formInput":"FormInput-module_formInput__VXZip","disabled":"FormInput-module_disabled__EjdD9","isInvalid":"FormInput-module_isInvalid__vQDuz"};
|
|
5253
|
+
styleInject(css_248z$A);
|
|
5254
|
+
|
|
5255
|
+
const FormInput = (props) => {
|
|
5256
|
+
const { value, name, type, placeholder, className, isValid = true, options = [], textareaOptions, selectOptions, autoCompleteOptions, autoFocus, label, disabled = false, readonly = false, onInput, onChange, onBlur, onKeyDown } = props;
|
|
5257
|
+
const getCssClasses = () => {
|
|
5258
|
+
const cssClasses = [];
|
|
5259
|
+
cssClasses.push(styles$A.formInput);
|
|
5260
|
+
className && cssClasses.push(className);
|
|
5261
|
+
!isValid && cssClasses.push(styles$A['isInvalid']);
|
|
5262
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5263
|
+
};
|
|
5264
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5265
|
+
const handleOnInput = (value, type, name) => {
|
|
5266
|
+
onInput && onInput({ value: value, type: type, name: name });
|
|
5267
|
+
};
|
|
5268
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5269
|
+
const handleOnChange = (value, type, name) => {
|
|
5270
|
+
onChange && onChange({ value: value, type: type, name: name });
|
|
5271
|
+
};
|
|
5272
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(type === 'text' ||
|
|
5273
|
+
type === 'date' ||
|
|
5274
|
+
type === 'datetime-local' ||
|
|
5275
|
+
type === 'email' ||
|
|
5276
|
+
type === 'number' ||
|
|
5277
|
+
type === 'password' ||
|
|
5278
|
+
type === 'color' ||
|
|
5279
|
+
type === 'time')
|
|
5280
|
+
&&
|
|
5281
|
+
jsxRuntime.jsx("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e?.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }), type === 'file' &&
|
|
5282
|
+
jsxRuntime.jsx(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name), children: "choose a file" }), type === 'textarea' &&
|
|
5283
|
+
jsxRuntime.jsx(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions?.rows, style: textareaOptions?.resize !== false ? undefined : { resize: 'none' } }), type === 'select' &&
|
|
5284
|
+
jsxRuntime.jsx(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions?.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }), type === 'autocomplete' &&
|
|
5285
|
+
jsxRuntime.jsx(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions?.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }), type === 'checkbox' &&
|
|
5286
|
+
jsxRuntime.jsx(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e?.target).checked, type, name), checked: value }), type === 'radio' &&
|
|
5287
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: options.map((option) => jsxRuntime.jsxs("div", { className: "form-check", children: [jsxRuntime.jsx("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e?.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }), jsxRuntime.jsx("label", { className: "form-check-label", htmlFor: option.id, children: option.label })] }, option.id)) })] }));
|
|
5288
|
+
};
|
|
5289
|
+
|
|
5290
|
+
var css_248z$z = ".FormLabel-module_formLabel__TXcHc {\n display: inline-block;\n margin-bottom: 0.5rem;\n}";
|
|
5291
|
+
var styles$z = {"formLabel":"FormLabel-module_formLabel__TXcHc"};
|
|
5292
|
+
styleInject(css_248z$z);
|
|
5293
|
+
|
|
5294
|
+
const FormLabel = ({ children, className, htmlFor, ...rest }) => {
|
|
5295
|
+
const getCssClasses = () => {
|
|
5296
|
+
const cssClasses = [];
|
|
5297
|
+
cssClasses.push(styles$z.formLabel);
|
|
5298
|
+
className && cssClasses.push(className);
|
|
5299
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5300
|
+
};
|
|
5301
|
+
return (jsxRuntime.jsx("label", { htmlFor: htmlFor, className: getCssClasses(), ...rest, children: children }));
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5304
|
+
const IsEmptyValidator = (value) => value?.trim() === ''
|
|
5305
|
+
|| value === null
|
|
5306
|
+
|| value === undefined;
|
|
5307
|
+
|
|
5308
|
+
const EmailValidator = (value) => {
|
|
5309
|
+
const isInvalidEmailFormat = value.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i) === null;
|
|
5310
|
+
const isInvalid = !IsEmptyValidator(value) && isInvalidEmailFormat;
|
|
5311
|
+
return isInvalid;
|
|
5312
|
+
};
|
|
5313
|
+
|
|
5314
|
+
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5315
|
+
|
|
5316
|
+
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5317
|
+
|
|
5318
|
+
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5319
|
+
|
|
5320
|
+
class Form extends React.Component {
|
|
5321
|
+
constructor(props) {
|
|
5322
|
+
super(props);
|
|
5323
|
+
this.myForm = React.createRef();
|
|
5324
|
+
this.state = {
|
|
5325
|
+
controls: undefined,
|
|
5326
|
+
isValid: false,
|
|
5327
|
+
isChanged: false,
|
|
5328
|
+
isSubmitted: false,
|
|
5329
|
+
submitOnEnter: props.submitOnEnter !== undefined ? props.submitOnEnter : true,
|
|
5330
|
+
};
|
|
5331
|
+
}
|
|
5332
|
+
getCssClasses() {
|
|
5333
|
+
const cssClasses = [];
|
|
5334
|
+
cssClasses.push(styles$E.form);
|
|
5335
|
+
this.props.className && cssClasses.push(this.props.className);
|
|
5336
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5337
|
+
}
|
|
5338
|
+
static getDerivedStateFromProps(nextProps, state) {
|
|
5339
|
+
if (!state.controls && nextProps.controls) {
|
|
5340
|
+
return { controls: nextProps.controls };
|
|
5341
|
+
}
|
|
5342
|
+
return null;
|
|
5343
|
+
}
|
|
5344
|
+
handleChange() {
|
|
5345
|
+
// get value by myForm instead of getControl?
|
|
5346
|
+
if (this.state.isChanged || this.state.isSubmitted) {
|
|
5347
|
+
const keys = Object.keys(this.state.controls);
|
|
5348
|
+
const values = keys.reduce((obj, f) => {
|
|
5349
|
+
const control = this.getControl(f);
|
|
5350
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5351
|
+
const newValue = (control.type === 'date' || control.type === 'datetime-local') &&
|
|
5352
|
+
control.value &&
|
|
5353
|
+
isValidDate(control.value)
|
|
5354
|
+
? new Date(control.value).toISOString()
|
|
5355
|
+
: control.value;
|
|
5356
|
+
return {
|
|
5357
|
+
...obj,
|
|
5358
|
+
[f]: newValue,
|
|
5359
|
+
};
|
|
5360
|
+
}, {});
|
|
5361
|
+
if (this.state.isValid && this.state.isSubmitted) {
|
|
5362
|
+
this.props.onSubmit && this.props.onSubmit(values);
|
|
5363
|
+
}
|
|
5364
|
+
this.props.onChange && this.props.onChange(values);
|
|
5365
|
+
this.setState({ isChanged: false, isSubmitted: false });
|
|
5366
|
+
}
|
|
5367
|
+
}
|
|
5368
|
+
// extract to service?
|
|
5369
|
+
validateField(fieldValue, fieldValidators) {
|
|
5370
|
+
const errors = [];
|
|
5371
|
+
if (fieldValidators) {
|
|
5372
|
+
for (const validator of fieldValidators) {
|
|
5373
|
+
const validatorSplitted = validator.split(':');
|
|
5374
|
+
const validatorName = validatorSplitted[0];
|
|
5375
|
+
const validatorParam = validatorSplitted.length > 1 ? validatorSplitted[1] : null;
|
|
5376
|
+
switch (validatorName) {
|
|
5377
|
+
case 'required':
|
|
5378
|
+
if (IsEmptyValidator(fieldValue)) {
|
|
5379
|
+
errors.push({ validator: validatorName, message: 'This field is required' });
|
|
5380
|
+
}
|
|
5381
|
+
break;
|
|
5382
|
+
case 'email':
|
|
5383
|
+
if (EmailValidator(fieldValue)) {
|
|
5384
|
+
errors.push({ validator: validatorName, message: 'Email format is wrong' });
|
|
5385
|
+
}
|
|
5386
|
+
break;
|
|
5387
|
+
case 'min':
|
|
5388
|
+
if (!MinValidator(fieldValue, parseInt(validatorParam))) {
|
|
5389
|
+
errors.push({ validator: validatorName, message: `Minimum number of ${validatorParam} characters not met` });
|
|
5390
|
+
}
|
|
5391
|
+
break;
|
|
5392
|
+
case 'max':
|
|
5393
|
+
if (!MaxValidator(fieldValue, parseInt(validatorParam))) {
|
|
5394
|
+
errors.push({ validator: validatorName, message: `Maximum number of ${validatorParam} characters exceeded` });
|
|
5395
|
+
}
|
|
5396
|
+
break;
|
|
5397
|
+
case 'match':
|
|
5398
|
+
if (validatorParam) {
|
|
5399
|
+
const matchControl = this.getControl(validatorParam);
|
|
5400
|
+
if (matchControl) {
|
|
5401
|
+
if (!IsEqualValidator(fieldValue, matchControl.value)) {
|
|
5402
|
+
errors.push({ validator: validatorName, message: 'Values do not match' });
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
else {
|
|
5406
|
+
console.error(`Form: Field ${validatorParam} not found`);
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
break;
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
}
|
|
5413
|
+
return errors;
|
|
5414
|
+
}
|
|
5415
|
+
handleInputChange(name, value) {
|
|
5416
|
+
const field = this.getControl(name);
|
|
5417
|
+
field.value = value;
|
|
5418
|
+
// redundant mit handleOnBlur
|
|
5419
|
+
field.isDirty = true;
|
|
5420
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5421
|
+
field.isValid = field.errors.length === 0;
|
|
5422
|
+
const newControls = { ...this.state.controls };
|
|
5423
|
+
newControls[name] = field;
|
|
5424
|
+
this.setState({ controls: newControls, isChanged: true }, () => this.handleChange());
|
|
5425
|
+
}
|
|
5426
|
+
handleOnBlur(e) {
|
|
5427
|
+
if (this.props.validateOnBlur) {
|
|
5428
|
+
const { name } = e.target;
|
|
5429
|
+
const field = this.getControl(name);
|
|
5430
|
+
field.isDirty = true;
|
|
5431
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5432
|
+
field.isValid = field.errors.length === 0;
|
|
5433
|
+
const controls = this.state.controls;
|
|
5434
|
+
if (controls) {
|
|
5435
|
+
controls[name] = field;
|
|
5436
|
+
this.setState({ controls: controls, isChanged: true }, () => this.handleChange());
|
|
5437
|
+
}
|
|
5438
|
+
}
|
|
5439
|
+
}
|
|
5440
|
+
isRequired(fieldName) {
|
|
5441
|
+
let result = false;
|
|
5442
|
+
result = this.getControl(fieldName).validators.indexOf('required') >= 0;
|
|
5443
|
+
return result;
|
|
5444
|
+
}
|
|
5445
|
+
isInvalid(fieldName) {
|
|
5446
|
+
let result = false;
|
|
5447
|
+
const field = this.getControl(fieldName);
|
|
5448
|
+
result = field.isDirty && !field.isValid;
|
|
5449
|
+
return result;
|
|
5450
|
+
}
|
|
5451
|
+
getControl(name) {
|
|
5452
|
+
return this.state.controls[name];
|
|
5453
|
+
}
|
|
5454
|
+
renderLabel(fieldKey, label, labelClassName = 'form-label') {
|
|
5455
|
+
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
5456
|
+
return (jsxRuntime.jsx(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' '), children: label }));
|
|
5457
|
+
}
|
|
5458
|
+
handleFormSubmit() {
|
|
5459
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5460
|
+
const field = this.getControl(fieldKey);
|
|
5461
|
+
// redundant mit handleBlur
|
|
5462
|
+
field.isDirty = true;
|
|
5463
|
+
field.errors = this.validateField(field.value, field.validators);
|
|
5464
|
+
field.isValid = field.errors.length === 0;
|
|
5465
|
+
}
|
|
5466
|
+
this.setState({
|
|
5467
|
+
controls: { ...this.state.controls },
|
|
5468
|
+
isSubmitted: true,
|
|
5469
|
+
isValid: Object.keys(this.state.controls)
|
|
5470
|
+
.map(f => this.getControl(f).isValid)
|
|
5471
|
+
.every(valid => valid === true),
|
|
5472
|
+
}, () => this.handleChange());
|
|
5473
|
+
}
|
|
5474
|
+
// trigger via ref
|
|
5475
|
+
handleFormReset() {
|
|
5476
|
+
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
5477
|
+
const field = this.getControl(fieldKey);
|
|
5478
|
+
field.value = '';
|
|
5479
|
+
field.isDirty = false;
|
|
5480
|
+
field.errors = [];
|
|
5481
|
+
field.isValid = field.errors.length === 0;
|
|
5482
|
+
}
|
|
5483
|
+
this.setState({
|
|
5484
|
+
controls: { ...this.state.controls },
|
|
5485
|
+
isSubmitted: false,
|
|
5486
|
+
isChanged: false,
|
|
5487
|
+
isValid: false,
|
|
5488
|
+
});
|
|
5489
|
+
}
|
|
5490
|
+
handleOnKeyDown(e) {
|
|
5491
|
+
if (e.key === 'Enter') {
|
|
5492
|
+
e.preventDefault();
|
|
5493
|
+
this.state.submitOnEnter && this.handleFormSubmit();
|
|
5494
|
+
}
|
|
5495
|
+
}
|
|
5496
|
+
destroy() {
|
|
5497
|
+
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
5498
|
+
}
|
|
5499
|
+
getFormGroupCssClass(fieldKey) {
|
|
5500
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
5501
|
+
}
|
|
5502
|
+
render() {
|
|
5503
|
+
return (jsxRuntime.jsx("form", { className: this.getCssClasses(), ref: this.myForm, children: this.state &&
|
|
5504
|
+
this.state.controls &&
|
|
5505
|
+
Object.keys(this.state.controls).map(fieldKey => {
|
|
5506
|
+
return (jsxRuntime.jsxs(FormGroup, { className: this.getFormGroupCssClass(fieldKey), children: [this.getControl(fieldKey).config.labelPosition !== 'behind' &&
|
|
5507
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5508
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), jsxRuntime.jsx(FormInput, { autoFocus: this.getControl(fieldKey).config.autoFocus, className: this.getControl(fieldKey).config.formControlClassName, isValid: !this.isInvalid(fieldKey), label: this.getControl(fieldKey).config.label, name: fieldKey, options: this.getControl(fieldKey).config.options, placeholder: this.getControl(fieldKey).config.placeholder, textareaOptions: this.getControl(fieldKey).config.textareaOptions, selectOptions: this.getControl(fieldKey).config.selectOptions, autoCompleteOptions: this.getControl(fieldKey).config.autoCompleteOptions, type: this.getControl(fieldKey).type, value: this.getControl(fieldKey).value, disabled: this.getControl(fieldKey).config.disabled, readonly: this.getControl(fieldKey).config.readonly, onChange: ({ name, value }) => this.handleInputChange(name, value), onBlur: (e) => this.handleOnBlur(e), onKeyDown: (e) => this.handleOnKeyDown(e) }), this.getControl(fieldKey).config.labelPosition === 'behind' &&
|
|
5509
|
+
this.getControl(fieldKey).type !== 'checkbox' &&
|
|
5510
|
+
this.renderLabel(fieldKey, this.getControl(fieldKey).config.label, this.getControl(fieldKey).config.labelClassName), this.getControl(fieldKey).config.hint && (jsxRuntime.jsx(FormHint, { children: this.getControl(fieldKey).config.hint })), this.getControl(fieldKey).errors && jsxRuntime.jsx(FormError, { errors: this.getControl(fieldKey).errors })] }, fieldKey));
|
|
5511
|
+
}) }));
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
function isValidDate(dateObject) {
|
|
5515
|
+
return new Date(dateObject).toString() !== 'Invalid Date';
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
class FormControl {
|
|
5519
|
+
constructor(
|
|
5520
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5521
|
+
value, validators = [], type, config) {
|
|
5522
|
+
this.value = value;
|
|
5523
|
+
this.validators = validators;
|
|
5524
|
+
this.type = type;
|
|
5525
|
+
this.config = config;
|
|
5526
|
+
this.errors = [];
|
|
5527
|
+
this.isValid = false;
|
|
5528
|
+
this.isDirty = false;
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5705
5531
|
|
|
5706
|
-
const
|
|
5707
|
-
const {
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5532
|
+
const DaySelect = (props) => {
|
|
5533
|
+
const { className, day = new Date().getDate(), month = new Date().getMonth(), year = new Date().getFullYear(), disabled, id, name, onChange } = props;
|
|
5534
|
+
React.useEffect(() => {
|
|
5535
|
+
init();
|
|
5536
|
+
}, [month, year]);
|
|
5537
|
+
const init = () => {
|
|
5538
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
5539
|
+
const newDays = [];
|
|
5540
|
+
for (let i = 1; i <= daysInMonth; i++) {
|
|
5541
|
+
newDays.push({ value: i.toString(), label: i.toString() });
|
|
5542
|
+
}
|
|
5543
|
+
setDayOptions(newDays);
|
|
5544
|
+
};
|
|
5545
|
+
const [value, setValue] = React.useState(day);
|
|
5546
|
+
const [dayOptions, setDayOptions] = React.useState();
|
|
5547
|
+
const getCssClasses = () => {
|
|
5548
|
+
const cssClasses = [];
|
|
5549
|
+
className && cssClasses.push(className);
|
|
5550
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5551
|
+
};
|
|
5711
5552
|
const handleOnChange = (e) => {
|
|
5712
|
-
|
|
5553
|
+
setValue(e);
|
|
5713
5554
|
onChange && onChange(e);
|
|
5714
5555
|
};
|
|
5715
|
-
return (
|
|
5556
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: dayOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: value.toString() }));
|
|
5716
5557
|
};
|
|
5717
5558
|
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
const
|
|
5723
|
-
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5559
|
+
const MonthSelect = (props) => {
|
|
5560
|
+
const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
5561
|
+
const { className, value = new Date().getMonth(), id, name, disabled, onChange } = props;
|
|
5562
|
+
const [newValue, setNewValue] = React.useState(value);
|
|
5563
|
+
const [monthOptions, setMonthOptions] = React.useState();
|
|
5724
5564
|
React.useEffect(() => {
|
|
5725
|
-
|
|
5726
|
-
return () => {
|
|
5727
|
-
document.body.classList.remove(styles$y.drawerOpen);
|
|
5728
|
-
};
|
|
5565
|
+
setMonthOptions(months.map((m, index) => ({ value: index.toString(), label: m })));
|
|
5729
5566
|
}, []);
|
|
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
5567
|
const getCssClasses = () => {
|
|
5740
5568
|
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
5569
|
className && cssClasses.push(className);
|
|
5746
5570
|
return cssClasses.filter(css => css).join(' ');
|
|
5747
5571
|
};
|
|
5748
|
-
const
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
};
|
|
5752
|
-
const getStyles = () => {
|
|
5753
|
-
return !permanent ? positionStyles[position] : undefined;
|
|
5572
|
+
const handleOnChange = (e) => {
|
|
5573
|
+
setNewValue(e);
|
|
5574
|
+
onChange && onChange(e);
|
|
5754
5575
|
};
|
|
5755
|
-
return (
|
|
5576
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: monthOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
5756
5577
|
};
|
|
5757
5578
|
|
|
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);
|
|
5579
|
+
const YearSelect = (props) => {
|
|
5580
|
+
const { className, from = 1970, to = new Date().getFullYear().toString(), value = new Date().getFullYear().toString(), id, name, disabled, onChange } = props;
|
|
5581
|
+
const [newValue, setNewValue] = React.useState(value.toString());
|
|
5582
|
+
const [years, setYears] = React.useState();
|
|
5766
5583
|
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();
|
|
5584
|
+
const newYears = [];
|
|
5585
|
+
for (let i = from; i <= to; i++) {
|
|
5586
|
+
newYears.push({ value: i.toString(), label: i.toString() });
|
|
5792
5587
|
}
|
|
5793
|
-
|
|
5588
|
+
setYears(newYears.reverse());
|
|
5589
|
+
}, [from, to]);
|
|
5794
5590
|
const getCssClasses = () => {
|
|
5795
5591
|
const cssClasses = [];
|
|
5796
|
-
cssClasses.push(styles$x.menuBody);
|
|
5797
|
-
shadow && cssClasses.push(styles$x.shadow);
|
|
5798
5592
|
className && cssClasses.push(className);
|
|
5799
5593
|
return cssClasses.filter(css => css).join(' ');
|
|
5800
5594
|
};
|
|
5801
|
-
const
|
|
5802
|
-
|
|
5595
|
+
const handleOnChange = (e) => {
|
|
5596
|
+
setNewValue(e);
|
|
5597
|
+
onChange && onChange(parseInt(e));
|
|
5803
5598
|
};
|
|
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 })));
|
|
5599
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: years, onChange: handleOnChange, disabled: disabled, value: newValue }));
|
|
5811
5600
|
};
|
|
5812
5601
|
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5602
|
+
exports.DATEMODE = void 0;
|
|
5603
|
+
(function (DATEMODE) {
|
|
5604
|
+
DATEMODE[DATEMODE["YEAR"] = 0] = "YEAR";
|
|
5605
|
+
DATEMODE[DATEMODE["MONTH"] = 1] = "MONTH";
|
|
5606
|
+
DATEMODE[DATEMODE["DAY"] = 2] = "DAY";
|
|
5607
|
+
})(exports.DATEMODE || (exports.DATEMODE = {}));
|
|
5608
|
+
const DateSelect = (props) => {
|
|
5609
|
+
const { className, value = new Date(), disabled, yearConfig, onChange } = props;
|
|
5817
5610
|
const getCssClasses = () => {
|
|
5818
5611
|
const cssClasses = [];
|
|
5612
|
+
cssClasses.push('row');
|
|
5819
5613
|
className && cssClasses.push(className);
|
|
5820
5614
|
return cssClasses.filter(css => css).join(' ');
|
|
5821
5615
|
};
|
|
5822
|
-
const
|
|
5823
|
-
|
|
5616
|
+
const [currDate, setCurrDate] = React.useState(value);
|
|
5617
|
+
const handleOnChange = (e, mode) => {
|
|
5618
|
+
const currYear = mode === exports.DATEMODE.YEAR ? e : currDate.getFullYear();
|
|
5619
|
+
const currMonth = mode === exports.DATEMODE.MONTH ? e : currDate.getMonth();
|
|
5620
|
+
const currday = mode === exports.DATEMODE.DAY ? e : currDate.getDate();
|
|
5621
|
+
const newDate = new Date(currYear, currMonth, currday);
|
|
5622
|
+
setCurrDate(newDate);
|
|
5623
|
+
onChange && onChange(newDate);
|
|
5824
5624
|
};
|
|
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)));
|
|
5625
|
+
return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Year" }), jsxRuntime.jsx(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig?.from, to: yearConfig?.to, onChange: (e) => handleOnChange(e, exports.DATEMODE.YEAR) })] }), jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Month" }), jsxRuntime.jsx(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.MONTH) })] }), jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Day" }), jsxRuntime.jsx(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.DAY) })] })] }));
|
|
5829
5626
|
};
|
|
5830
5627
|
|
|
5831
|
-
|
|
5832
|
-
|
|
5628
|
+
var css_248z$y = ".Drawer-module_drawer__kdQCk {\n height: 100%;\n z-index: 1101;\n bottom: 0;\n position: fixed;\n background: white;\n min-width: 320px;\n overflow-y: auto;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_permanent__c-y8y {\n position: inherit;\n z-index: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_left__loQVO {\n order: 0;\n left: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_right__sJ3mZ {\n order: 2;\n right: 0;\n}\n.Drawer-module_drawer__kdQCk.Drawer-module_shadow__Myo3n {\n box-shadow: var(--shadow);\n}\n\n.Drawer-module_drawerOpen__07ptP {\n overflow: hidden;\n}";
|
|
5629
|
+
var styles$y = {"drawer":"Drawer-module_drawer__kdQCk","permanent":"Drawer-module_permanent__c-y8y","left":"Drawer-module_left__loQVO","right":"Drawer-module_right__sJ3mZ","shadow":"Drawer-module_shadow__Myo3n","drawerOpen":"Drawer-module_drawerOpen__07ptP"};
|
|
5630
|
+
styleInject(css_248z$y);
|
|
5631
|
+
|
|
5632
|
+
const Drawer = (props) => {
|
|
5633
|
+
const { children, className, position = 'left', permanent = false, target = document.body, shadow = true, onClickBackdrop, ...rest } = props;
|
|
5634
|
+
React.useEffect(() => {
|
|
5635
|
+
document.body.classList.add(styles$y.drawerOpen);
|
|
5636
|
+
return () => {
|
|
5637
|
+
document.body.classList.remove(styles$y.drawerOpen);
|
|
5638
|
+
};
|
|
5639
|
+
}, []);
|
|
5640
|
+
const handleClickBackdrop = () => {
|
|
5641
|
+
onClickBackdrop && onClickBackdrop();
|
|
5642
|
+
};
|
|
5643
|
+
return (jsxRuntime.jsxs(Portal$1, { className: 'drawer-root', target: target, children: [jsxRuntime.jsx(DrawerContent, { className: className, position: position, permanent: permanent, shadow: shadow, ...rest, children: children }), !permanent && jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop })] }));
|
|
5644
|
+
};
|
|
5645
|
+
const DrawerContent = (props) => {
|
|
5646
|
+
const { children, className, position = 'left', permanent = false, shadow, ...rest } = props;
|
|
5833
5647
|
const getCssClasses = () => {
|
|
5834
5648
|
const cssClasses = [];
|
|
5649
|
+
cssClasses.push(styles$y.drawer);
|
|
5650
|
+
shadow && cssClasses.push(styles$y.shadow);
|
|
5651
|
+
!!permanent && cssClasses.push(styles$y['permanent']);
|
|
5652
|
+
position === 'left' ? cssClasses.push(styles$y['left']) : cssClasses.push(styles$y['right']);
|
|
5653
|
+
className && cssClasses.push(className);
|
|
5835
5654
|
return cssClasses.filter(css => css).join(' ');
|
|
5836
5655
|
};
|
|
5837
|
-
const
|
|
5838
|
-
|
|
5839
|
-
|
|
5656
|
+
const positionStyles = {
|
|
5657
|
+
left: { left: '0px' },
|
|
5658
|
+
right: { right: '0px' }
|
|
5840
5659
|
};
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
return children;
|
|
5660
|
+
const getStyles = () => {
|
|
5661
|
+
return !permanent ? positionStyles[position] : undefined;
|
|
5662
|
+
};
|
|
5663
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), style: getStyles(), ...rest, children: children }));
|
|
5846
5664
|
};
|
|
5847
5665
|
|
|
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);
|
|
5666
|
+
var css_248z$x = ".ExpansionPanelContent-module_expansionPanelContent__aXNfH {\n padding: 8px 16px 16px;\n}";
|
|
5667
|
+
var styles$x = {"expansionPanelContent":"ExpansionPanelContent-module_expansionPanelContent__aXNfH"};
|
|
5668
|
+
styleInject(css_248z$x);
|
|
5857
5669
|
|
|
5858
5670
|
const ExpansionPanelContent = ({ children }) => {
|
|
5859
|
-
return (
|
|
5671
|
+
return (jsxRuntime.jsx("div", { className: styles$x.expansionPanelContent, children: children }));
|
|
5860
5672
|
};
|
|
5861
5673
|
|
|
5862
|
-
var css_248z$
|
|
5863
|
-
var styles$
|
|
5864
|
-
styleInject(css_248z$
|
|
5674
|
+
var css_248z$w = ".ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq {\n display: flex;\n align-items: center;\n padding: 12px 16px;\n min-height: 48px;\n}\n.ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq:hover {\n cursor: pointer;\n background-color: var(--highlight);\n}";
|
|
5675
|
+
var styles$w = {"expansionPanelHeader":"ExpansionPanelHeader-module_expansionPanelHeader__Wy6Pq"};
|
|
5676
|
+
styleInject(css_248z$w);
|
|
5865
5677
|
|
|
5866
5678
|
const ExpansionPanelHeader = (props) => {
|
|
5867
5679
|
const { children, isExpanded, onClick } = props;
|
|
@@ -5869,15 +5681,12 @@ const ExpansionPanelHeader = (props) => {
|
|
|
5869
5681
|
e.stopPropagation();
|
|
5870
5682
|
onClick && onClick(e);
|
|
5871
5683
|
};
|
|
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)))));
|
|
5684
|
+
return (jsxRuntime.jsxs("div", { className: styles$w.expansionPanelHeader, onClick: handleClick, children: [children, jsxRuntime.jsx("span", { className: "ml-auto text-muted", children: jsxRuntime.jsx(Icon, { children: isExpanded ? jsxRuntime.jsx(ChevronUpSolidIcon, {}) : jsxRuntime.jsx(ChevronDownSolidIcon, {}) }) })] }));
|
|
5876
5685
|
};
|
|
5877
5686
|
|
|
5878
|
-
var css_248z$
|
|
5879
|
-
var styles$
|
|
5880
|
-
styleInject(css_248z$
|
|
5687
|
+
var css_248z$v = ".ExpansionPanel-module_expansionPanel__m1yQq {\n background-color: var(--white);\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_shadow__zIjJ6 {\n box-shadow: var(--shadow);\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:first-child {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq:last-child {\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:first-child {\n margin-top: 0;\n}\n.ExpansionPanel-module_expansionPanel__m1yQq.ExpansionPanel-module_isExpanded__TS1ph:last-child {\n margin-bottom: 0;\n}";
|
|
5688
|
+
var styles$v = {"expansionPanel":"ExpansionPanel-module_expansionPanel__m1yQq","shadow":"ExpansionPanel-module_shadow__zIjJ6","isExpanded":"ExpansionPanel-module_isExpanded__TS1ph"};
|
|
5689
|
+
styleInject(css_248z$v);
|
|
5881
5690
|
|
|
5882
5691
|
const ExpansionPanel = (props) => {
|
|
5883
5692
|
const { header, children, isExpanded = false, shadow, onChange } = props;
|
|
@@ -5887,34 +5696,32 @@ const ExpansionPanel = (props) => {
|
|
|
5887
5696
|
}, [isExpanded]);
|
|
5888
5697
|
const getCssClasses = () => {
|
|
5889
5698
|
const cssClasses = [];
|
|
5890
|
-
cssClasses.push(styles$
|
|
5699
|
+
cssClasses.push(styles$v.expansionPanel);
|
|
5891
5700
|
if (_isExpanded) {
|
|
5892
|
-
cssClasses.push(styles$
|
|
5701
|
+
cssClasses.push(styles$v.isExpanded);
|
|
5893
5702
|
}
|
|
5894
|
-
shadow && cssClasses.push(styles$
|
|
5703
|
+
shadow && cssClasses.push(styles$v.shadow);
|
|
5895
5704
|
return cssClasses.filter(css => css).join(' ');
|
|
5896
5705
|
};
|
|
5897
5706
|
const handleClickHeader = (event) => {
|
|
5898
5707
|
setIsExpanded(!_isExpanded);
|
|
5899
5708
|
onChange && onChange(event, !_isExpanded);
|
|
5900
5709
|
};
|
|
5901
|
-
return (
|
|
5902
|
-
|
|
5903
|
-
_isExpanded &&
|
|
5904
|
-
React__default["default"].createElement(ExpansionPanelContent, null, children)));
|
|
5710
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [jsxRuntime.jsx(ExpansionPanelHeader, { isExpanded: _isExpanded, onClick: handleClickHeader, children: header }), _isExpanded &&
|
|
5711
|
+
jsxRuntime.jsx(ExpansionPanelContent, { children: children })] }));
|
|
5905
5712
|
};
|
|
5906
5713
|
|
|
5907
|
-
var css_248z$
|
|
5908
|
-
var styles$
|
|
5909
|
-
styleInject(css_248z$
|
|
5714
|
+
var css_248z$u = ".FloatingActionButton-module_fab__Rw3kd {\n box-shadow: var(--shadow);\n}\n\n.FloatingActionButton-module_fixed__XQOkG {\n position: fixed;\n z-index: 1000;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftTop__ZiHQN {\n top: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_leftBottom__210sl {\n bottom: 16px;\n left: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightTop__VUsvT {\n top: 64px;\n right: 16px;\n}\n.FloatingActionButton-module_fixed__XQOkG.FloatingActionButton-module_rightBottom__FaUFl {\n bottom: 16px;\n right: 16px;\n}";
|
|
5715
|
+
var styles$u = {"fab":"FloatingActionButton-module_fab__Rw3kd","fixed":"FloatingActionButton-module_fixed__XQOkG","leftTop":"FloatingActionButton-module_leftTop__ZiHQN","leftBottom":"FloatingActionButton-module_leftBottom__210sl","rightTop":"FloatingActionButton-module_rightTop__VUsvT","rightBottom":"FloatingActionButton-module_rightBottom__FaUFl"};
|
|
5716
|
+
styleInject(css_248z$u);
|
|
5910
5717
|
|
|
5911
5718
|
const FloatingActionButton = (props) => {
|
|
5912
5719
|
const { className, icon, color = exports.COLOR.primary, fixed, position = 'rightBottom', size = exports.SIZE.lg, isActive, disabled, onClick } = props;
|
|
5913
5720
|
const getCssClasses = () => {
|
|
5914
5721
|
const cssClasses = [];
|
|
5915
|
-
cssClasses.push(styles$
|
|
5916
|
-
fixed && cssClasses.push(styles$
|
|
5917
|
-
position && fixed && cssClasses.push(styles$
|
|
5722
|
+
cssClasses.push(styles$u.fab);
|
|
5723
|
+
fixed && cssClasses.push(styles$u.fixed);
|
|
5724
|
+
position && fixed && cssClasses.push(styles$u[position]);
|
|
5918
5725
|
className && cssClasses.push(className);
|
|
5919
5726
|
return cssClasses.filter(css => css).join(' ');
|
|
5920
5727
|
};
|
|
@@ -5922,48 +5729,47 @@ const FloatingActionButton = (props) => {
|
|
|
5922
5729
|
e.stopPropagation();
|
|
5923
5730
|
onClick && onClick(e);
|
|
5924
5731
|
};
|
|
5925
|
-
return (
|
|
5732
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), color: color, size: size, isActive: isActive, disabled: disabled, icon: icon, variant: exports.VARIANT.contained, onClick: handleClick }));
|
|
5926
5733
|
};
|
|
5927
5734
|
|
|
5928
|
-
var css_248z$
|
|
5929
|
-
var styles$
|
|
5930
|
-
styleInject(css_248z$
|
|
5735
|
+
var css_248z$t = ".Link-module_link__YlJQl {\n color: var(--primary);\n text-decoration: underline;\n}\n.Link-module_link__YlJQl:hover {\n color: var(--primary-dark);\n}";
|
|
5736
|
+
var styles$t = {"link":"Link-module_link__YlJQl"};
|
|
5737
|
+
styleInject(css_248z$t);
|
|
5931
5738
|
|
|
5932
5739
|
const Link = (props) => {
|
|
5933
5740
|
const { href = '#', className, target, children, ...rest } = props;
|
|
5934
5741
|
const [status, setStatus] = React.useState(exports.STATUS.NORMAL);
|
|
5935
|
-
const [cssClassName] = useCssClasses([styles$
|
|
5742
|
+
const [cssClassName] = useCssClasses([styles$t.link, className, status]);
|
|
5936
5743
|
const onMouseEnter = () => {
|
|
5937
5744
|
setStatus(exports.STATUS.HOVERED);
|
|
5938
5745
|
};
|
|
5939
5746
|
const onMouseLeave = () => {
|
|
5940
5747
|
setStatus(exports.STATUS.NORMAL);
|
|
5941
5748
|
};
|
|
5942
|
-
return (
|
|
5749
|
+
return (jsxRuntime.jsx("a", { className: cssClassName, href: href, target: target, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...rest, children: children }));
|
|
5943
5750
|
};
|
|
5944
5751
|
|
|
5945
|
-
var css_248z$
|
|
5946
|
-
var styles$
|
|
5947
|
-
styleInject(css_248z$
|
|
5752
|
+
var css_248z$s = ".LoadingIndicator-module_loadingIndicatorContainer__GS9OG {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.LoadingIndicator-module_loadingIndicatorContainer__GS9OG.LoadingIndicator-module_isFixed__WCFNG {\n position: fixed;\n top: 0;\n left: 0;\n}\n\n.LoadingIndicator-module_loadingIndicator__EC9sx {\n animation-name: LoadingIndicator-module_spinAnimation__LeY4Z;\n animation-duration: 5000ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n width: 24px;\n height: 24px;\n}\n\n@keyframes LoadingIndicator-module_spinAnimation__LeY4Z {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}";
|
|
5753
|
+
var styles$s = {"loadingIndicatorContainer":"LoadingIndicator-module_loadingIndicatorContainer__GS9OG","isFixed":"LoadingIndicator-module_isFixed__WCFNG","loadingIndicator":"LoadingIndicator-module_loadingIndicator__EC9sx","spinAnimation":"LoadingIndicator-module_spinAnimation__LeY4Z"};
|
|
5754
|
+
styleInject(css_248z$s);
|
|
5948
5755
|
|
|
5949
5756
|
const LoadingIndicator = ({ ...rest }) => {
|
|
5950
5757
|
const getCssClasses = () => {
|
|
5951
5758
|
const cssClasses = [];
|
|
5952
|
-
cssClasses.push(styles$
|
|
5759
|
+
cssClasses.push(styles$s.loadingIndicator);
|
|
5953
5760
|
return cssClasses.filter(css => css).join(' ');
|
|
5954
5761
|
};
|
|
5955
|
-
return (
|
|
5956
|
-
React__default["default"].createElement(SpinnerSolidIcon, null)));
|
|
5762
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(SpinnerSolidIcon, {}) }));
|
|
5957
5763
|
};
|
|
5958
5764
|
|
|
5959
5765
|
const LoadingIndicatorContainer = ({ children, isFixed }) => {
|
|
5960
5766
|
const getCssClasses = () => {
|
|
5961
5767
|
const cssClasses = [];
|
|
5962
|
-
cssClasses.push(styles$
|
|
5963
|
-
isFixed && cssClasses.push(styles$
|
|
5768
|
+
cssClasses.push(styles$s.loadingIndicatorContainer);
|
|
5769
|
+
isFixed && cssClasses.push(styles$s.isFixed);
|
|
5964
5770
|
return cssClasses.filter(css => css).join(' ');
|
|
5965
5771
|
};
|
|
5966
|
-
return (
|
|
5772
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
5967
5773
|
};
|
|
5968
5774
|
|
|
5969
5775
|
var client = createCommonjsModule(function (module, exports) {
|
|
@@ -6004,8 +5810,7 @@ class LoadingIndicatorService {
|
|
|
6004
5810
|
this.container.classList.add('snackbar-container');
|
|
6005
5811
|
document.body.appendChild(this.container);
|
|
6006
5812
|
this.root = client_1(this.container);
|
|
6007
|
-
this.root.render(
|
|
6008
|
-
React__default["default"].createElement(LoadingIndicator, null)));
|
|
5813
|
+
this.root.render(jsxRuntime.jsx(LoadingIndicatorContainer, { isFixed: true, children: jsxRuntime.jsx(LoadingIndicator, {}) }));
|
|
6009
5814
|
}
|
|
6010
5815
|
hide() {
|
|
6011
5816
|
if (this.container) {
|
|
@@ -6018,6 +5823,97 @@ class LoadingIndicatorService {
|
|
|
6018
5823
|
}
|
|
6019
5824
|
const loadingIndicatorService = new LoadingIndicatorService();
|
|
6020
5825
|
|
|
5826
|
+
var css_248z$r = ".MenuBody-module_menuBody__u4FIQ {\n z-index: 1111;\n margin: 0;\n position: absolute;\n top: 100%;\n left: 0;\n min-width: 10rem;\n padding: 0px;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: var(--borderRadius);\n max-width: 300px;\n}\n.MenuBody-module_menuBody__u4FIQ.MenuBody-module_shadow__OBp-f {\n box-shadow: var(--shadow);\n}";
|
|
5827
|
+
var styles$r = {"menuBody":"MenuBody-module_menuBody__u4FIQ","shadow":"MenuBody-module_shadow__OBp-f"};
|
|
5828
|
+
styleInject(css_248z$r);
|
|
5829
|
+
|
|
5830
|
+
const MenuBody = (props) => {
|
|
5831
|
+
const { parentRef, children, className, shadow = true, menuPosition = 'left', onClickBackdrop } = props;
|
|
5832
|
+
const [popperInstance, setPopperInstance] = React.useState();
|
|
5833
|
+
const menuBodyRef = React.useRef(null);
|
|
5834
|
+
React.useEffect(() => {
|
|
5835
|
+
if (menuBodyRef && parentRef.current && menuBodyRef.current) {
|
|
5836
|
+
const popperInstance = core.createPopper(parentRef.current, menuBodyRef.current, {
|
|
5837
|
+
placement: `${menuPosition}-start`,
|
|
5838
|
+
modifiers: [
|
|
5839
|
+
{
|
|
5840
|
+
name: 'offset',
|
|
5841
|
+
options: {
|
|
5842
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5843
|
+
offset: ({ placement, popper }) => {
|
|
5844
|
+
if (placement === 'left-start') {
|
|
5845
|
+
return [0, -popper.width]; // y, x
|
|
5846
|
+
}
|
|
5847
|
+
if (placement === 'right-start') {
|
|
5848
|
+
return [0, -popper.width];
|
|
5849
|
+
}
|
|
5850
|
+
return [];
|
|
5851
|
+
},
|
|
5852
|
+
},
|
|
5853
|
+
},
|
|
5854
|
+
]
|
|
5855
|
+
});
|
|
5856
|
+
setPopperInstance(popperInstance);
|
|
5857
|
+
}
|
|
5858
|
+
else {
|
|
5859
|
+
popperInstance?.destroy();
|
|
5860
|
+
}
|
|
5861
|
+
}, [menuBodyRef]);
|
|
5862
|
+
const getCssClasses = () => {
|
|
5863
|
+
const cssClasses = [];
|
|
5864
|
+
cssClasses.push(styles$r.menuBody);
|
|
5865
|
+
shadow && cssClasses.push(styles$r.shadow);
|
|
5866
|
+
className && cssClasses.push(className);
|
|
5867
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5868
|
+
};
|
|
5869
|
+
const handleClickBackdrop = () => {
|
|
5870
|
+
onClickBackdrop && onClickBackdrop();
|
|
5871
|
+
};
|
|
5872
|
+
useOnDestroy(() => {
|
|
5873
|
+
popperInstance?.destroy();
|
|
5874
|
+
});
|
|
5875
|
+
return (jsxRuntime.jsxs(Portal$1, { className: 'menu-root', children: [jsxRuntime.jsx("div", { ref: menuBodyRef, className: getCssClasses(), children: jsxRuntime.jsx(List, { children: children }) }), jsxRuntime.jsx(Backdrop, { isTransparent: true, onClick: handleClickBackdrop })] }));
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5878
|
+
const Menu = (props) => {
|
|
5879
|
+
const { toggle, children, className, open, menuPosition, onClickBackdrop, ...rest } = props;
|
|
5880
|
+
const menuContainer = React.useRef(null);
|
|
5881
|
+
const toggleContainerRef = React.useRef(null);
|
|
5882
|
+
const getCssClasses = () => {
|
|
5883
|
+
const cssClasses = [];
|
|
5884
|
+
className && cssClasses.push(className);
|
|
5885
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5886
|
+
};
|
|
5887
|
+
const handleClickBackdrop = () => {
|
|
5888
|
+
onClickBackdrop && onClickBackdrop();
|
|
5889
|
+
};
|
|
5890
|
+
return (jsxRuntime.jsxs("div", { ref: menuContainer, className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { ref: toggleContainerRef, children: toggle }), open &&
|
|
5891
|
+
jsxRuntime.jsx(MenuBody, { parentRef: toggleContainerRef, menuPosition: menuPosition, onClickBackdrop: handleClickBackdrop, children: children })] }));
|
|
5892
|
+
};
|
|
5893
|
+
|
|
5894
|
+
const MenuItem = (props) => {
|
|
5895
|
+
const { children, onClick, ...rest } = props;
|
|
5896
|
+
const getCssClasses = () => {
|
|
5897
|
+
const cssClasses = [];
|
|
5898
|
+
return cssClasses.filter(css => css).join(' ');
|
|
5899
|
+
};
|
|
5900
|
+
const handleClick = (e) => {
|
|
5901
|
+
e.stopPropagation();
|
|
5902
|
+
onClick && onClick(e);
|
|
5903
|
+
};
|
|
5904
|
+
return (jsxRuntime.jsx(ListItem, { className: getCssClasses(), onClick: handleClick, ...rest, children: children }));
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
const MenuToggle = ({ children }) => {
|
|
5908
|
+
return children;
|
|
5909
|
+
};
|
|
5910
|
+
|
|
5911
|
+
var css_248z$q = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
|
|
5912
|
+
var styles$q = {"menuItemDivider":"MenuDivider-module_menuItemDivider__oRP-j"};
|
|
5913
|
+
styleInject(css_248z$q);
|
|
5914
|
+
|
|
5915
|
+
const MenuDivider = () => jsxRuntime.jsx("div", { className: styles$q.menuItemDivider });
|
|
5916
|
+
|
|
6021
5917
|
var css_248z$p = ".ModalHeader-module_modalHeader__tw-u- {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-top-left-radius: calc(0.3rem - 1px);\n border-top-right-radius: calc(0.3rem - 1px);\n border-bottom: none;\n align-items: center;\n}\n.ModalHeader-module_modalHeader__tw-u-.ModalHeader-module_shadow__qELWb {\n box-shadow: var(--shadow);\n}\n\n.ModalHeader-module_modalTitle__2xShH {\n margin-bottom: 0;\n line-height: 1.5;\n}";
|
|
6022
5918
|
var styles$p = {"modalHeader":"ModalHeader-module_modalHeader__tw-u-","shadow":"ModalHeader-module_shadow__qELWb","modalTitle":"ModalHeader-module_modalTitle__2xShH"};
|
|
6023
5919
|
styleInject(css_248z$p);
|
|
@@ -6034,17 +5930,15 @@ const ModalHeader = (props) => {
|
|
|
6034
5930
|
const handleClick = () => {
|
|
6035
5931
|
onClose && onClose();
|
|
6036
5932
|
};
|
|
6037
|
-
return (
|
|
6038
|
-
|
|
6039
|
-
isDismissable &&
|
|
6040
|
-
React__default["default"].createElement(IconButton, { icon: React__default["default"].createElement(TimesSolidIcon, null), variant: exports.VARIANT.text, onClick: handleClick })));
|
|
5933
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("h5", { className: styles$p.modalTitle, children: children }), isDismissable &&
|
|
5934
|
+
jsxRuntime.jsx(IconButton, { icon: jsxRuntime.jsx(TimesSolidIcon, {}), variant: exports.VARIANT.text, onClick: handleClick })] }));
|
|
6041
5935
|
};
|
|
6042
5936
|
|
|
6043
5937
|
var css_248z$o = ".ModalBody-module_modalBody__D-gk2 {\n position: relative;\n flex: 1 1 auto;\n padding: 0 1rem 1rem 1rem;\n overflow-y: auto;\n}";
|
|
6044
5938
|
var styles$o = {"modalBody":"ModalBody-module_modalBody__D-gk2"};
|
|
6045
5939
|
styleInject(css_248z$o);
|
|
6046
5940
|
|
|
6047
|
-
const ModalBody = ({ children }) => (
|
|
5941
|
+
const ModalBody = ({ children }) => (jsxRuntime.jsx("div", { className: styles$o.modalBody, children: children }));
|
|
6048
5942
|
|
|
6049
5943
|
var css_248z$n = ".ModalFooter-module_modalFooter__SNm-f {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: flex-end;\n padding: 0.75rem;\n border-bottom-right-radius: calc(0.3rem - 1px);\n border-bottom-left-radius: calc(0.3rem - 1px);\n}\n.ModalFooter-module_modalFooter__SNm-f.ModalFooter-module_shadow__z29Cy {\n box-shadow: var(--shadow);\n}\n.ModalFooter-module_modalFooter__SNm-f > * {\n margin: 0.25rem;\n}";
|
|
6050
5944
|
var styles$n = {"modalFooter":"ModalFooter-module_modalFooter__SNm-f","shadow":"ModalFooter-module_shadow__z29Cy"};
|
|
@@ -6059,7 +5953,7 @@ const ModalFooter = (props) => {
|
|
|
6059
5953
|
className && cssClasses.push(className);
|
|
6060
5954
|
return cssClasses.filter(css => css).join(' ');
|
|
6061
5955
|
};
|
|
6062
|
-
return (
|
|
5956
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: children }));
|
|
6063
5957
|
};
|
|
6064
5958
|
|
|
6065
5959
|
var css_248z$m = ".Modal-module_modal__HMxWV {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n z-index: 1111 !important;\n border-radius: var(--borderRadius);\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_sm__CsR6U {\n max-width: 300px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_md__lNggx {\n max-width: 500px;\n}\n.Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf .Modal-module_lg__6dtT2 {\n max-width: 1140px;\n}\n@media (min-width: 576px) {\n .Modal-module_modal__HMxWV .Modal-module_modal-dialog__U2wGf {\n max-width: 600px;\n }\n}\n\n.Modal-module_modalDialog__fNqyK {\n position: relative;\n width: auto;\n pointer-events: none;\n}\n\n.Modal-module_modalDialogCentered__sa2wv {\n height: 100%;\n display: flex;\n align-items: center;\n}\n\n.Modal-module_modalContent__9wAwB {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);\n outline: 0;\n margin: 1rem;\n max-height: 600px;\n}\n@media (min-width: 576px) {\n .Modal-module_modalContent__9wAwB {\n max-width: 500px;\n margin: auto;\n }\n}\n\n.Modal-module_fullscreen__iepGa {\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n margin: 0;\n padding: 0;\n}\n.Modal-module_fullscreen__iepGa .Modal-module_modalContent__9wAwB {\n margin: 0;\n height: auto;\n min-height: 100%;\n max-height: 100%;\n border-radius: 0;\n overflow: auto;\n max-width: 100%;\n}\n@media (min-width: 320px) {\n .Modal-module_fullscreen__iepGa {\n max-width: 100% !important;\n }\n}";
|
|
@@ -6086,17 +5980,9 @@ const Modal = (props) => {
|
|
|
6086
5980
|
const handleClickBackdrop = () => {
|
|
6087
5981
|
onBackdropClick && onBackdropClick();
|
|
6088
5982
|
};
|
|
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 } })));
|
|
5983
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Portal$1, { className: 'modal-root', target: target, children: jsxRuntime.jsx("div", { className: styles$m.modal, children: jsxRuntime.jsx("div", { className: getCssClass(), children: jsxRuntime.jsxs("div", { className: styles$m.modalContent, children: [header &&
|
|
5984
|
+
jsxRuntime.jsx(ModalHeader, { isDismissable: isDismissable, onClose: () => onHeaderCloseClick && onHeaderCloseClick(), children: header }), jsxRuntime.jsx(ModalBody, { children: children }), footer &&
|
|
5985
|
+
jsxRuntime.jsx(ModalFooter, { children: footer })] }) }) }) }), jsxRuntime.jsx(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })] }));
|
|
6100
5986
|
};
|
|
6101
5987
|
|
|
6102
5988
|
exports.MODALTYPE = void 0;
|
|
@@ -6152,11 +6038,8 @@ const GlobalModal = ({ title, description, formControls, onOk, onChange, onCance
|
|
|
6152
6038
|
}
|
|
6153
6039
|
button.handler && button.handler();
|
|
6154
6040
|
};
|
|
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 }))));
|
|
6041
|
+
return (jsxRuntime.jsxs(Modal, { size: size, fullScreen: fullScreen, header: title, onHeaderCloseClick: onCancel, onBackdropClick: onBackdropClick, isDismissable: isDismissable, footer: jsxRuntime.jsx(jsxRuntime.Fragment, { children: buttons.map((button, index) => (jsxRuntime.jsx(Button, { variant: button.variant, color: button.color, autoFocus: button.autoFocus, shadow: button.shadow, onClick: () => handleClickButton(button), children: button.label }, index))) }), children: [description && jsxRuntime.jsx("div", { children: description }), modalType === exports.MODALTYPE.FORM &&
|
|
6042
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Form, { ref: myForm, controls: myControls, validateOnBlur: true, onSubmit: onSubmit, onChange: onChange }) })] }));
|
|
6160
6043
|
};
|
|
6161
6044
|
|
|
6162
6045
|
class ModalService {
|
|
@@ -6174,7 +6057,7 @@ class ModalService {
|
|
|
6174
6057
|
this.hide();
|
|
6175
6058
|
};
|
|
6176
6059
|
this.root = client_1(this.container);
|
|
6177
|
-
this.root.render(
|
|
6060
|
+
this.root.render(jsxRuntime.jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, description: description, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6178
6061
|
}
|
|
6179
6062
|
});
|
|
6180
6063
|
}
|
|
@@ -6192,7 +6075,7 @@ class ModalService {
|
|
|
6192
6075
|
this.hide();
|
|
6193
6076
|
};
|
|
6194
6077
|
this.root = client_1(this.container);
|
|
6195
|
-
this.root.render(
|
|
6078
|
+
this.root.render(jsxRuntime.jsx(GlobalModal, { fullScreen: options && options.fullScreen, size: options && options.size, title: title, formControls: formControls, onCancel: handleCancel, onBackdropClick: handleCancel, onOk: handleOk, isDismissable: options && options.isDismissable, buttons: options && options.buttons }));
|
|
6196
6079
|
}
|
|
6197
6080
|
});
|
|
6198
6081
|
}
|
|
@@ -6229,7 +6112,7 @@ const NumberSelect = (props) => {
|
|
|
6229
6112
|
setNewValue(e);
|
|
6230
6113
|
onChange && onChange(e);
|
|
6231
6114
|
};
|
|
6232
|
-
return (
|
|
6115
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: numberOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
6233
6116
|
};
|
|
6234
6117
|
|
|
6235
6118
|
var css_248z$l = ".Tooltip-module_tooltipContainer__9ZWx3 {\n display: inline;\n}\n\n.Tooltip-module_tooltip__x5HOu {\n background-color: #333;\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n font-size: 13px;\n position: absolute;\n left: -1000000px;\n z-index: 1100;\n}\n\n.Tooltip-module_arrow__B6lfe, .Tooltip-module_arrow__B6lfe::before {\n position: absolute;\n width: 8px;\n height: 8px;\n z-index: -1;\n}\n.Tooltip-module_arrow__B6lfe::before {\n content: \"\";\n transform: rotate(45deg);\n background: #333;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-top__h5aww {\n bottom: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-bottom__dYc5B {\n top: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-left__8-2Jw {\n right: -4px;\n}\n.Tooltip-module_arrow__B6lfe.Tooltip-module_placement-right__v4h4z {\n left: -4px;\n}";
|
|
@@ -6310,16 +6193,9 @@ const Tooltip = (props) => {
|
|
|
6310
6193
|
placement && cssClasses.push(styles$l[`placement-${placement}`]);
|
|
6311
6194
|
return cssClasses.filter(css => css).join(' ');
|
|
6312
6195
|
};
|
|
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 }))));
|
|
6196
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { ref: refChild, className: styles$l.tooltipContainer, onMouseOver: handleMouseOver, onMouseLeave: handleMouseLeave, onFocus: handleFocus, onBlur: handleBlur, children: children }), open && text &&
|
|
6197
|
+
jsxRuntime.jsxs("div", { className: styles$l.tooltip, ref: refTooltip, children: [jsxRuntime.jsxs("div", { className: 'd-flex align-items-center', children: [text, showClose &&
|
|
6198
|
+
jsxRuntime.jsx(Icon, { className: 'ml-1', onClick: handleClickClose, children: jsxRuntime.jsx(TimesSolidIcon, {}) })] }), jsxRuntime.jsx("div", { className: getArrowStyles(), "data-popper-arrow": true })] })] }));
|
|
6323
6199
|
};
|
|
6324
6200
|
|
|
6325
6201
|
var css_248z$k = ":root {\n --progress-height: 0.5rem;\n --progress-bg: #e9ecef;\n --progress-box-shadow: var(--shadow);\n --progress-bar-color: #fff;\n --progress-bar-bg: var(--primary);\n --progress-bar-transition: width 0.6s ease;\n}\n\n.ProgressBar-module_progressBarContainer__vtbBw {\n display: flex;\n height: var(--progress-height);\n overflow: hidden;\n background-color: var(--progress-bg);\n}\n\n.ProgressBar-module_progressBar__hr8I8 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n color: var(--progress-bar-color);\n text-align: center;\n white-space: nowrap;\n transition: var(--progress-bar-transition);\n background-color: var(--progress-bar-bg);\n}\n.ProgressBar-module_progressBar__hr8I8.ProgressBar-module_indeterminate__WcQdD {\n width: 100%;\n height: 100%;\n animation: ProgressBar-module_indeterminateAnimation__SlBFt 1s infinite linear;\n transform-origin: 0% 50%;\n}\n\n@keyframes ProgressBar-module_indeterminateAnimation__SlBFt {\n 0% {\n transform: translateX(0) scaleX(0);\n }\n 40% {\n transform: translateX(0) scaleX(0.4);\n }\n 100% {\n transform: translateX(100%) scaleX(0.5);\n }\n}";
|
|
@@ -6361,9 +6237,7 @@ const ProgressBar = (props) => {
|
|
|
6361
6237
|
}
|
|
6362
6238
|
return `${width}%`;
|
|
6363
6239
|
};
|
|
6364
|
-
return (
|
|
6365
|
-
React__default["default"].createElement("div", { className: getCssClasses(), ...rest },
|
|
6366
|
-
React__default["default"].createElement("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }))));
|
|
6240
|
+
return (jsxRuntime.jsx(Tooltip, { text: !indeterminate ? model?.toString() : '', children: jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: getCssClassesBar(), style: { 'width': getStyle() }, role: "progressbar" }) }) }));
|
|
6367
6241
|
};
|
|
6368
6242
|
|
|
6369
6243
|
class SidebarItemModel {
|
|
@@ -6429,40 +6303,87 @@ const Sidebar = (props) => {
|
|
|
6429
6303
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
6430
6304
|
navigate(e, `${itemPath}/${subItemPath}`);
|
|
6431
6305
|
};
|
|
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"};
|
|
6306
|
+
return (jsxRuntime.jsx("nav", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx(List, { children: menuItems.map(item => (jsxRuntime.jsxs(React__default["default"].Fragment, { children: [jsxRuntime.jsxs(ListItem, { active: isMenuItemActive(item.path), onClick: (e) => handleClickItem(item, e), children: [jsxRuntime.jsx(ListItemText, { primary: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [item.label, item.items && item.items.length > 0 && (jsxRuntime.jsxs("small", { className: "ml-2", children: ["(", item.items.length, ")"] }))] }) }), item.items && item.items.length > 0 &&
|
|
6307
|
+
jsxRuntime.jsx(ListItemAction, { children: item.isCollapsed ? jsxRuntime.jsx(ChevronDownSolidIcon, {}) : jsxRuntime.jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsxRuntime.jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsxRuntime.jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6311
|
+
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6448
6312
|
styleInject(css_248z$j);
|
|
6449
6313
|
|
|
6314
|
+
const SkeletonAvatar = (props) => {
|
|
6315
|
+
const { className, ...rest } = props;
|
|
6316
|
+
const getCssClasses = () => {
|
|
6317
|
+
const cssClasses = [];
|
|
6318
|
+
cssClasses.push(styles$j.skeletonAvatar);
|
|
6319
|
+
className && cssClasses.push(className);
|
|
6320
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6321
|
+
};
|
|
6322
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6323
|
+
};
|
|
6324
|
+
|
|
6325
|
+
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6326
|
+
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6327
|
+
styleInject(css_248z$i);
|
|
6328
|
+
|
|
6329
|
+
const SkeletonText = (props) => {
|
|
6330
|
+
const { className, ...rest } = props;
|
|
6331
|
+
const getCssClasses = () => {
|
|
6332
|
+
const cssClasses = [];
|
|
6333
|
+
cssClasses.push(styles$i.skeletonText);
|
|
6334
|
+
className && cssClasses.push(className);
|
|
6335
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6336
|
+
};
|
|
6337
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6338
|
+
};
|
|
6339
|
+
|
|
6340
|
+
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6341
|
+
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6342
|
+
styleInject(css_248z$h);
|
|
6343
|
+
|
|
6344
|
+
const SkeletonFooter = (props) => {
|
|
6345
|
+
const { className, ...rest } = props;
|
|
6346
|
+
const getCssClasses = () => {
|
|
6347
|
+
const cssClasses = [];
|
|
6348
|
+
cssClasses.push(styles$h.skeletonFooter);
|
|
6349
|
+
className && cssClasses.push(className);
|
|
6350
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6351
|
+
};
|
|
6352
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6353
|
+
};
|
|
6354
|
+
|
|
6355
|
+
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200deg, 20%, 80%);\n }\n 100% {\n background-color: hsl(200deg, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6356
|
+
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6357
|
+
styleInject(css_248z$g);
|
|
6358
|
+
|
|
6359
|
+
const SkeletonImage = (props) => {
|
|
6360
|
+
const { className, ...rest } = props;
|
|
6361
|
+
const getCssClasses = () => {
|
|
6362
|
+
const cssClasses = [];
|
|
6363
|
+
cssClasses.push(styles$g.skeletonImage);
|
|
6364
|
+
className && cssClasses.push(className);
|
|
6365
|
+
return cssClasses.filter(r => r).join(' ');
|
|
6366
|
+
};
|
|
6367
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest, children: jsxRuntime.jsx("div", { className: styles$g.img }) }));
|
|
6368
|
+
};
|
|
6369
|
+
|
|
6370
|
+
var css_248z$f = ".Snackbar-module_snackbar__O5T2b {\n display: flex;\n align-items: center;\n min-width: 288px;\n padding: 6px 16px;\n transform-origin: center;\n min-height: 52px;\n animation: Snackbar-module_bounceIn__E47iD 0.4s ease;\n z-index: 1001;\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: 2%;\n border-radius: var(--borderRadius);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_primary__ZBOTN {\n color: var(--primary-contrast-text);\n background-color: var(--primary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_accent__0MnFy {\n color: var(--accent-contrast-text);\n background-color: var(--accent);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_secondary__s8-ez {\n color: var(--secondary-contrast-text);\n background-color: var(--secondary);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_light__Vrd7o {\n color: var(--light-contrast-text);\n background-color: var(--light);\n}\n.Snackbar-module_snackbar__O5T2b.Snackbar-module_dark__U-5io {\n color: var(--dark-contrast-text);\n background-color: var(--dark);\n}\n\n.Snackbar-module_text__G5r5D {\n width: 100%;\n padding: 8px 0;\n}\n\n.Snackbar-module_action__vus2Y {\n margin-left: auto;\n}\n.Snackbar-module_action__vus2Y:hover {\n cursor: pointer;\n}\n\n@keyframes Snackbar-module_bounceIn__E47iD {\n 0% {\n opacity: 0;\n }\n 50% {\n opacity: 0.9;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n}";
|
|
6371
|
+
var styles$f = {"snackbar":"Snackbar-module_snackbar__O5T2b","bounceIn":"Snackbar-module_bounceIn__E47iD","primary":"Snackbar-module_primary__ZBOTN","accent":"Snackbar-module_accent__0MnFy","secondary":"Snackbar-module_secondary__s8-ez","light":"Snackbar-module_light__Vrd7o","dark":"Snackbar-module_dark__U-5io","text":"Snackbar-module_text__G5r5D","action":"Snackbar-module_action__vus2Y"};
|
|
6372
|
+
styleInject(css_248z$f);
|
|
6373
|
+
|
|
6450
6374
|
const Snackbar = (props) => {
|
|
6451
6375
|
const { children, color = exports.COLOR.dark, actionText = 'ok', onOk, ...rest } = props;
|
|
6452
6376
|
const getCssClasses = () => {
|
|
6453
6377
|
const cssClasses = [];
|
|
6454
|
-
cssClasses.push(styles$
|
|
6378
|
+
cssClasses.push(styles$f.snackbar);
|
|
6455
6379
|
cssClasses.push(`shadow-lg`);
|
|
6456
|
-
cssClasses.push(styles$
|
|
6380
|
+
cssClasses.push(styles$f[color]);
|
|
6457
6381
|
return cssClasses.filter(css => css).join(' ');
|
|
6458
6382
|
};
|
|
6459
6383
|
const handleClickAction = (e) => {
|
|
6460
6384
|
onOk && onOk(e);
|
|
6461
6385
|
};
|
|
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))));
|
|
6386
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { className: styles$f.text, children: children }), jsxRuntime.jsx("div", { className: styles$f.action + ' text-accent', onClick: handleClickAction, children: jsxRuntime.jsx("span", { children: actionText }) })] }));
|
|
6466
6387
|
};
|
|
6467
6388
|
|
|
6468
6389
|
class SnackbarService {
|
|
@@ -6486,7 +6407,7 @@ class SnackbarService {
|
|
|
6486
6407
|
this.hide();
|
|
6487
6408
|
};
|
|
6488
6409
|
this.root = client_1(this.container);
|
|
6489
|
-
this.root.render(
|
|
6410
|
+
this.root.render(jsxRuntime.jsx(Snackbar, { color: mergedOptions.color, actionText: mergedOptions.actionText, onOk: handleOk, children: message }));
|
|
6490
6411
|
});
|
|
6491
6412
|
}
|
|
6492
6413
|
hide() {
|
|
@@ -6500,29 +6421,29 @@ class SnackbarService {
|
|
|
6500
6421
|
}
|
|
6501
6422
|
const snackbarService = new SnackbarService();
|
|
6502
6423
|
|
|
6503
|
-
var css_248z$
|
|
6504
|
-
var styles$
|
|
6505
|
-
styleInject(css_248z$
|
|
6424
|
+
var css_248z$e = ".SpeedDialActions-module_speedDialActions__cY2i3 {\n margin-bottom: -32px;\n flex-direction: column-reverse;\n padding-bottom: 48px;\n display: flex;\n pointer-events: auto;\n}";
|
|
6425
|
+
var styles$e = {"speedDialActions":"SpeedDialActions-module_speedDialActions__cY2i3"};
|
|
6426
|
+
styleInject(css_248z$e);
|
|
6506
6427
|
|
|
6507
6428
|
const SpeedDialActions = (props) => {
|
|
6508
6429
|
const { children } = props;
|
|
6509
6430
|
const getCssClasses = () => {
|
|
6510
6431
|
const cssClasses = [];
|
|
6511
|
-
cssClasses.push(styles$
|
|
6432
|
+
cssClasses.push(styles$e.speedDialActions);
|
|
6512
6433
|
return cssClasses.filter(css => css).join(' ');
|
|
6513
6434
|
};
|
|
6514
|
-
return (
|
|
6435
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), children: children }));
|
|
6515
6436
|
};
|
|
6516
6437
|
|
|
6517
|
-
var css_248z$
|
|
6518
|
-
var styles$
|
|
6519
|
-
styleInject(css_248z$
|
|
6438
|
+
var css_248z$d = ".SpeedDial-module_speedDial__W3VN2 {\n position: absolute;\n flex-direction: column-reverse;\n display: flex;\n z-index: 1050;\n align-items: center;\n right: 16px;\n bottom: 16px;\n transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
6439
|
+
var styles$d = {"speedDial":"SpeedDial-module_speedDial__W3VN2"};
|
|
6440
|
+
styleInject(css_248z$d);
|
|
6520
6441
|
|
|
6521
6442
|
const SpeedDial = (props) => {
|
|
6522
6443
|
const { children, className, open, onOpen, onClose, ...rest } = props;
|
|
6523
6444
|
const getCssClasses = () => {
|
|
6524
6445
|
const cssClasses = [];
|
|
6525
|
-
cssClasses.push(styles$
|
|
6446
|
+
cssClasses.push(styles$d.speedDial);
|
|
6526
6447
|
className && cssClasses.push(className);
|
|
6527
6448
|
return cssClasses.filter(css => css).join(' ');
|
|
6528
6449
|
};
|
|
@@ -6534,26 +6455,23 @@ const SpeedDial = (props) => {
|
|
|
6534
6455
|
onOpen && onOpen(e);
|
|
6535
6456
|
}
|
|
6536
6457
|
};
|
|
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)));
|
|
6458
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), ...rest, children: [jsxRuntime.jsx("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined }, children: jsxRuntime.jsx(FloatingActionButton, { icon: jsxRuntime.jsx(PlusSolidIcon, {}), onClick: handleClick }) }), open &&
|
|
6459
|
+
jsxRuntime.jsx(SpeedDialActions, { children: children })] }));
|
|
6542
6460
|
};
|
|
6543
6461
|
|
|
6544
|
-
var css_248z$
|
|
6545
|
-
var styles$
|
|
6546
|
-
styleInject(css_248z$
|
|
6462
|
+
var css_248z$c = ".SpeedDialAction-module_speedDialAction__kJLpz + .SpeedDialAction-module_speedDialAction__kJLpz {\n margin-bottom: 10px;\n}";
|
|
6463
|
+
var styles$c = {"speedDialAction":"SpeedDialAction-module_speedDialAction__kJLpz"};
|
|
6464
|
+
styleInject(css_248z$c);
|
|
6547
6465
|
|
|
6548
6466
|
const SpeedDialAction = (props) => {
|
|
6549
6467
|
const { icon, color = exports.COLOR.light, onClick, className } = props;
|
|
6550
6468
|
const getCssClasses = () => {
|
|
6551
6469
|
const cssClasses = [];
|
|
6552
|
-
cssClasses.push(styles$
|
|
6470
|
+
cssClasses.push(styles$c.speedDialAction);
|
|
6553
6471
|
className && cssClasses.push(className);
|
|
6554
6472
|
return cssClasses.filter(css => css).join(' ');
|
|
6555
6473
|
};
|
|
6556
|
-
return (
|
|
6474
|
+
return (jsxRuntime.jsx(IconButton, { className: getCssClasses(), icon: icon, color: color, variant: exports.VARIANT.contained, shadow: true, onClick: onClick }));
|
|
6557
6475
|
};
|
|
6558
6476
|
|
|
6559
6477
|
const SpeedDialIcon = (props) => {
|
|
@@ -6563,79 +6481,72 @@ const SpeedDialIcon = (props) => {
|
|
|
6563
6481
|
className && cssClasses.push(className);
|
|
6564
6482
|
return cssClasses.filter(css => css).join(' ');
|
|
6565
6483
|
};
|
|
6566
|
-
return (
|
|
6484
|
+
return (jsxRuntime.jsx(Icon, { className: getCssClasses(), ...rest, children: children }));
|
|
6567
6485
|
};
|
|
6568
6486
|
|
|
6569
|
-
var css_248z$
|
|
6570
|
-
var styles$
|
|
6571
|
-
styleInject(css_248z$
|
|
6487
|
+
var css_248z$b = ".StepperActions-module_stepperActions__hBUkh {\n display: flex;\n}";
|
|
6488
|
+
var styles$b = {"stepperActions":"StepperActions-module_stepperActions__hBUkh"};
|
|
6489
|
+
styleInject(css_248z$b);
|
|
6572
6490
|
|
|
6573
6491
|
const StepperActions = (props) => {
|
|
6574
6492
|
const { className, showDoneButton, showResetButton, isCompleted, isFirstStep, isStepOptional, onBack, onSkip, onNext, onReset } = props;
|
|
6575
6493
|
const getCssClasses = () => {
|
|
6576
6494
|
const cssClasses = [];
|
|
6577
|
-
cssClasses.push(styles$
|
|
6495
|
+
cssClasses.push(styles$b.stepperActions);
|
|
6578
6496
|
className && cssClasses.push(className);
|
|
6579
6497
|
return cssClasses.filter(css => css).join(' ');
|
|
6580
6498
|
};
|
|
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"))));
|
|
6499
|
+
return (jsxRuntime.jsxs("div", { className: getCssClasses(), children: [!isFirstStep &&
|
|
6500
|
+
jsxRuntime.jsx(Button, { className: "mr-2", variant: exports.VARIANT.outline, startIcon: jsxRuntime.jsx(ChevronLeftSolidIcon, {}), onClick: () => onBack && onBack(), children: "Back" }), jsxRuntime.jsxs("div", { className: "ml-auto", children: [isCompleted && showResetButton && (jsxRuntime.jsx(Button, { color: exports.COLOR.secondary, variant: exports.VARIANT.text, onClick: () => onReset && onReset(), children: "Reset" })), isStepOptional && (jsxRuntime.jsx(Button, { variant: exports.VARIANT.contained, color: exports.COLOR.primary, onClick: () => onSkip && onSkip(), children: "Skip" })), !isCompleted &&
|
|
6501
|
+
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, endIcon: jsxRuntime.jsx(ChevronRightSolidIcon, {}), onClick: () => onNext && onNext(), children: "Next" }), isCompleted && showDoneButton &&
|
|
6502
|
+
jsxRuntime.jsx(Button, { className: 'ml-2', variant: exports.VARIANT.contained, color: exports.COLOR.primary, startIcon: jsxRuntime.jsx(CheckSolidIcon, {}), onClick: () => onNext && onNext(), children: "Done" })] })] }));
|
|
6591
6503
|
};
|
|
6592
6504
|
|
|
6593
6505
|
const StepPanel = (props) => {
|
|
6594
6506
|
const { children } = props;
|
|
6595
|
-
return (
|
|
6507
|
+
return (jsxRuntime.jsx("div", { className: "steppanel", children: children }));
|
|
6596
6508
|
};
|
|
6597
6509
|
|
|
6598
|
-
var css_248z$
|
|
6599
|
-
var styles$
|
|
6600
|
-
styleInject(css_248z$
|
|
6510
|
+
var css_248z$a = ".StepConnector-module_stepConnector__A7A-7 {\n flex: 1 1 auto;\n flex-shrink: 0;\n min-width: 20px;\n}\n\n.StepConnector-module_stepConnectorLine__8rQxv {\n display: block;\n border-color: var(--secondary);\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.StepConnector-module_stepConnectorLine__8rQxv.StepConnector-module_isActive__TUIKV {\n border-color: var(--primary);\n}\n\n.StepConnector-module_stepConnectorLineHorizontal__i09K0 {\n border-top-style: solid;\n border-top-width: 1px;\n}";
|
|
6511
|
+
var styles$a = {"stepConnector":"StepConnector-module_stepConnector__A7A-7","stepConnectorLine":"StepConnector-module_stepConnectorLine__8rQxv","isActive":"StepConnector-module_isActive__TUIKV","stepConnectorLineHorizontal":"StepConnector-module_stepConnectorLineHorizontal__i09K0"};
|
|
6512
|
+
styleInject(css_248z$a);
|
|
6601
6513
|
|
|
6602
6514
|
const StepConnector = (props) => {
|
|
6603
6515
|
const { isActive, isHorizontal = true } = props;
|
|
6604
6516
|
const getCssClassesConnector = () => {
|
|
6605
6517
|
const cssClasses = [];
|
|
6606
|
-
cssClasses.push(styles$
|
|
6518
|
+
cssClasses.push(styles$a.stepConnector);
|
|
6607
6519
|
return cssClasses.filter(css => css).join(' ');
|
|
6608
6520
|
};
|
|
6609
6521
|
const getCssClassesLine = () => {
|
|
6610
6522
|
const cssClasses = [];
|
|
6611
|
-
cssClasses.push(styles$
|
|
6612
|
-
isActive && cssClasses.push(styles$
|
|
6613
|
-
isHorizontal && cssClasses.push(styles$
|
|
6523
|
+
cssClasses.push(styles$a.stepConnectorLine);
|
|
6524
|
+
isActive && cssClasses.push(styles$a['isActive']);
|
|
6525
|
+
isHorizontal && cssClasses.push(styles$a.stepConnectorLineHorizontal);
|
|
6614
6526
|
return cssClasses.filter(css => css).join(' ');
|
|
6615
6527
|
};
|
|
6616
|
-
return (
|
|
6617
|
-
React__default["default"].createElement("div", { className: getCssClassesLine() })));
|
|
6528
|
+
return (jsxRuntime.jsx("div", { className: getCssClassesConnector(), children: jsxRuntime.jsx("div", { className: getCssClassesLine() }) }));
|
|
6618
6529
|
};
|
|
6619
6530
|
|
|
6620
|
-
var css_248z$
|
|
6621
|
-
var styles$
|
|
6622
|
-
styleInject(css_248z$
|
|
6531
|
+
var css_248z$9 = ".Stepper-module_stepper__V6odG {\n display: flex;\n align-items: center;\n flex-direction: row;\n margin-bottom: 10px;\n}\n.Stepper-module_stepper__V6odG.Stepper-module_isHorizontal__Q-3Wu {\n overflow-x: auto;\n}";
|
|
6532
|
+
var styles$9 = {"stepper":"Stepper-module_stepper__V6odG","isHorizontal":"Stepper-module_isHorizontal__Q-3Wu"};
|
|
6533
|
+
styleInject(css_248z$9);
|
|
6623
6534
|
|
|
6624
|
-
var css_248z$
|
|
6625
|
-
var styles$
|
|
6626
|
-
styleInject(css_248z$
|
|
6535
|
+
var css_248z$8 = ".Dot-module_dot__w59yb {\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n margin: 0px 2px;\n background-color: var(--secondary);\n}\n.Dot-module_dot__w59yb.Dot-module_isActive__V74RJ {\n background-color: var(--primary);\n}";
|
|
6536
|
+
var styles$8 = {"dot":"Dot-module_dot__w59yb","isActive":"Dot-module_isActive__V74RJ"};
|
|
6537
|
+
styleInject(css_248z$8);
|
|
6627
6538
|
|
|
6628
6539
|
const Dot = (props) => {
|
|
6629
6540
|
const { className, color = exports.COLOR.primary, isActive, ...rest } = props;
|
|
6630
6541
|
const getCssClasses = () => {
|
|
6631
6542
|
const cssClasses = [];
|
|
6632
|
-
cssClasses.push(styles$
|
|
6633
|
-
cssClasses.push(styles$
|
|
6634
|
-
isActive && cssClasses.push(styles$
|
|
6543
|
+
cssClasses.push(styles$8.dot);
|
|
6544
|
+
cssClasses.push(styles$8[color]);
|
|
6545
|
+
isActive && cssClasses.push(styles$8.isActive);
|
|
6635
6546
|
className && cssClasses.push(className);
|
|
6636
6547
|
return cssClasses.filter(css => css).join(' ');
|
|
6637
6548
|
};
|
|
6638
|
-
return (
|
|
6549
|
+
return (jsxRuntime.jsx("div", { className: getCssClasses(), ...rest }));
|
|
6639
6550
|
};
|
|
6640
6551
|
|
|
6641
6552
|
const Stepper = (props) => {
|
|
@@ -6667,16 +6578,16 @@ const Stepper = (props) => {
|
|
|
6667
6578
|
setActiveIndex(index);
|
|
6668
6579
|
};
|
|
6669
6580
|
const renderSteps = (child, index) => {
|
|
6670
|
-
return (
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6581
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: React__default["default"].isValidElement(child) &&
|
|
6582
|
+
React.cloneElement(child, {
|
|
6583
|
+
index: index,
|
|
6584
|
+
isActive: activeIndex >= index,
|
|
6585
|
+
isDone: activeIndex > index,
|
|
6586
|
+
isDisabled: isLinear && (activeIndex + 1 < index),
|
|
6587
|
+
showLabel: showLabel,
|
|
6588
|
+
showProgressCheckIcon: showProgressCheckIcon,
|
|
6589
|
+
onClick: () => handleClickStep(index)
|
|
6590
|
+
}) }));
|
|
6680
6591
|
};
|
|
6681
6592
|
const isStepOptional = (index) => {
|
|
6682
6593
|
return steps && steps[index].props.isOptional;
|
|
@@ -6720,46 +6631,40 @@ const Stepper = (props) => {
|
|
|
6720
6631
|
};
|
|
6721
6632
|
const getCssClasses = () => {
|
|
6722
6633
|
const cssClasses = [];
|
|
6723
|
-
cssClasses.push(styles$
|
|
6724
|
-
isHorizontal && cssClasses.push(styles$
|
|
6634
|
+
cssClasses.push(styles$9.stepper);
|
|
6635
|
+
isHorizontal && cssClasses.push(styles$9['isHorizontal']);
|
|
6725
6636
|
return cssClasses.filter(css => css).join(' ');
|
|
6726
6637
|
};
|
|
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);
|
|
6638
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: steps &&
|
|
6639
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showSteps &&
|
|
6640
|
+
jsxRuntime.jsx("div", { className: getCssClasses(), children: steps.map((child, index) => (jsxRuntime.jsxs(React.Fragment, { children: [renderSteps(child, index), index !== steps.length - 1 && jsxRuntime.jsx(StepConnector, { isActive: activeIndex > index })] }, child.props.value))) }), steps && steps.map((step, index) => jsxRuntime.jsx(React.Fragment, { children: index === activeIndex &&
|
|
6641
|
+
jsxRuntime.jsx(StepPanel, { children: step.props.children }) }, step.props.value)), jsxRuntime.jsx(StepperActions, { className: "mt-3", isFirstStep: activeIndex === 0, isStepOptional: isStepOptional(activeIndex), isCompleted: isLastStep(), onBack: handleBack, onSkip: handleSkip, onNext: handleNext, onReset: handleReset, showDoneButton: showDoneButton, showResetButton: showResetButton }), steps && showDots &&
|
|
6642
|
+
jsxRuntime.jsx("div", { className: 'd-flex mt-2 align-items-center justify-content-center', children: steps.map((step, index) => jsxRuntime.jsx(Dot, { isActive: activeIndex >= index }, index)) })] }) }));
|
|
6643
|
+
};
|
|
6644
|
+
|
|
6645
|
+
var css_248z$7 = ".Typography-module_typography__sw-td {\n font-family: var(--fontFamily);\n}\n.Typography-module_typography__sw-td.Typography-module_wrap__W7G0R {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nh1 {\n font-size: calc(1.375rem + 1.5vw);\n}\n\nh2 {\n font-size: calc(1.325rem + 0.9vw);\n}\n\nh3 {\n font-size: calc(1.3rem + 0.6vw);\n}\n\nh4 {\n font-size: calc(1.275rem + 0.3vw);\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: 500 !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n line-height: 1.2;\n}";
|
|
6646
|
+
var styles$7 = {"typography":"Typography-module_typography__sw-td","wrap":"Typography-module_wrap__W7G0R"};
|
|
6647
|
+
styleInject(css_248z$7);
|
|
6743
6648
|
|
|
6744
6649
|
const Wrapper = (props) => {
|
|
6745
6650
|
const { as = 'span', wrap, children, className, ...rest } = props;
|
|
6746
6651
|
const getCssClasses = () => {
|
|
6747
6652
|
const cssClasses = [];
|
|
6748
|
-
cssClasses.push(styles$
|
|
6749
|
-
cssClasses.push(styles$
|
|
6750
|
-
wrap && cssClasses.push(styles$
|
|
6653
|
+
cssClasses.push(styles$7.typography);
|
|
6654
|
+
cssClasses.push(styles$7.as);
|
|
6655
|
+
wrap && cssClasses.push(styles$7.wrap);
|
|
6751
6656
|
className && cssClasses.push(className);
|
|
6752
6657
|
return cssClasses.filter(css => css).join(' ');
|
|
6753
6658
|
};
|
|
6754
6659
|
return React__default["default"].createElement(as, { ...rest, className: getCssClasses() }, children);
|
|
6755
6660
|
};
|
|
6756
6661
|
const Typography = ({ children, as = 'span', wrap, ...rest }) => {
|
|
6757
|
-
return (
|
|
6662
|
+
return (jsxRuntime.jsx(Wrapper, { as: as, wrap: wrap, ...rest, children: children }));
|
|
6758
6663
|
};
|
|
6759
6664
|
|
|
6760
|
-
var css_248z$
|
|
6761
|
-
var styles$
|
|
6762
|
-
styleInject(css_248z$
|
|
6665
|
+
var css_248z$6 = ".Step-module_stepWrapper__IQwq1 {\n display: flex;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_stepWrapper__IQwq1.Step-module_hasLabel__LZNvd:not(.Step-module_disabled__JnxUP):hover {\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: var(--borderRadius);\n}\n\n.Step-module_step__k42go {\n width: 40px;\n height: 40px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.Step-module_step__k42go:not(.Step-module_hasLabel__LZNvd):not(.Step-module_disabled__JnxUP):hover {\n border-radius: 100%;\n cursor: pointer;\n background-color: rgba(0, 0, 0, 0.04);\n}\n.Step-module_step__k42go.Step-module_hasLabel__LZNvd svg {\n width: 18px !important;\n height: 18px !important;\n}\n\n.Step-module_stepIconCircle__hnxIV svg {\n width: 24px;\n height: 24px;\n}\n\n.Step-module_stepValue__B0-xv {\n position: absolute;\n color: var(--secondary-contrast-text);\n}\n.Step-module_stepValue__B0-xv .Step-module_isActive__3GGcl {\n color: var(--primary-contrast-text);\n}";
|
|
6666
|
+
var styles$6 = {"stepWrapper":"Step-module_stepWrapper__IQwq1","hasLabel":"Step-module_hasLabel__LZNvd","disabled":"Step-module_disabled__JnxUP","step":"Step-module_step__k42go","stepIconCircle":"Step-module_stepIconCircle__hnxIV","stepValue":"Step-module_stepValue__B0-xv","isActive":"Step-module_isActive__3GGcl"};
|
|
6667
|
+
styleInject(css_248z$6);
|
|
6763
6668
|
|
|
6764
6669
|
const Step = (props) => {
|
|
6765
6670
|
const { className, label, showLabel, index, value, isActive, isDone, isDisabled, showProgressCheckIcon, onClick } = props;
|
|
@@ -6771,98 +6676,31 @@ const Step = (props) => {
|
|
|
6771
6676
|
};
|
|
6772
6677
|
const getCssClasses = () => {
|
|
6773
6678
|
const cssClasses = [];
|
|
6774
|
-
cssClasses.push(styles$
|
|
6775
|
-
label && showLabel && cssClasses.push(styles$
|
|
6776
|
-
isDisabled && cssClasses.push(styles$
|
|
6679
|
+
cssClasses.push(styles$6.stepWrapper);
|
|
6680
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6681
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6777
6682
|
className && cssClasses.push(className);
|
|
6778
6683
|
return cssClasses.filter(css => css).join(' ');
|
|
6779
6684
|
};
|
|
6780
6685
|
const getCssClassesStep = () => {
|
|
6781
6686
|
const cssClasses = [];
|
|
6782
|
-
cssClasses.push(styles$
|
|
6783
|
-
label && showLabel && cssClasses.push(styles$
|
|
6784
|
-
isDisabled && cssClasses.push(styles$
|
|
6687
|
+
cssClasses.push(styles$6.step);
|
|
6688
|
+
label && showLabel && cssClasses.push(styles$6['hasLabel']);
|
|
6689
|
+
isDisabled && cssClasses.push(styles$6['disabled']);
|
|
6785
6690
|
return cssClasses.filter(css => css).join(' ');
|
|
6786
6691
|
};
|
|
6787
6692
|
const getCssClassesStepValue = () => {
|
|
6788
6693
|
const cssClasses = [];
|
|
6789
|
-
cssClasses.push(styles$
|
|
6694
|
+
cssClasses.push(styles$6.stepValue);
|
|
6790
6695
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6791
|
-
isActive && cssClasses.push(styles$
|
|
6696
|
+
isActive && cssClasses.push(styles$6.stepValue['isActive']);
|
|
6792
6697
|
return cssClasses.filter(css => css).join(' ');
|
|
6793
6698
|
};
|
|
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 })));
|
|
6699
|
+
return (jsxRuntime.jsxs("div", { ref: hoverRef, className: getCssClasses(), onClick: handleClick, children: [jsxRuntime.jsxs("div", { className: getCssClassesStep(), children: [jsxRuntime.jsx(Icon, { className: styles$6.stepIconCircle, iconColor: (isHovered || isActive) && !isDisabled ? exports.COLOR.primary : exports.COLOR.secondary, children: jsxRuntime.jsx(CircleSolidIcon, {}) }), jsxRuntime.jsx("div", { className: getCssClassesStepValue(), children: showProgressCheckIcon && isActive && isDone ?
|
|
6700
|
+
jsxRuntime.jsx(Icon, { children: jsxRuntime.jsx(CheckSolidIcon, {}) })
|
|
6701
|
+
:
|
|
6702
|
+
jsxRuntime.jsx(Typography, { children: index + 1 }) })] }), label && showLabel &&
|
|
6703
|
+
jsxRuntime.jsx(Typography, { className: "flex-shrink-0", children: label })] }));
|
|
6866
6704
|
};
|
|
6867
6705
|
|
|
6868
6706
|
var css_248z$5 = ":root {\n --table-bg: transparent;\n --table-accent-bg: transparent;\n --table-striped-color: #212529;\n --table-striped-bg: rgba(0, 0, 0, 0.05);\n --table-active-color: #212529;\n --table-active-bg: rgba(0, 0, 0, 0.1);\n --table-hover-color: #212529;\n --table-hover-bg: rgba(0, 0, 0, 0.075);\n}\n\n.Table-module_tableResponsive__ykttB {\n overflow-x: auto;\n}\n\n.Table-module_table__DHKNv {\n display: table;\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0px;\n min-width: 650px;\n}\n.Table-module_table__DHKNv thead {\n display: table-header-group;\n}\n.Table-module_table__DHKNv tbody {\n display: table-row-group;\n}\n.Table-module_table__DHKNv tr {\n color: inherit;\n display: table-row;\n vertical-align: middle;\n outline: 0px;\n}\n.Table-module_table__DHKNv th {\n font-size: 0.875rem;\n line-height: 1.5rem;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n text-align: left;\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n border-collapse: collapse;\n border-spacing: 0px;\n}\n.Table-module_table__DHKNv td {\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n display: table-cell;\n vertical-align: inherit;\n border-bottom: 1px solid rgb(224, 224, 224);\n padding: 16px;\n color: rgba(0, 0, 0, 0.87);\n flex-direction: row-reverse;\n}\n\n.Table-module_hover__P6r3y > tbody > tr:hover > * {\n background-color: var(--table-hover-bg);\n color: var(--table-hover-color);\n}";
|
|
@@ -6880,13 +6718,12 @@ const Table = (props) => {
|
|
|
6880
6718
|
className && cssClasses.push(className);
|
|
6881
6719
|
return cssClasses.filter(css => css).join(' ');
|
|
6882
6720
|
};
|
|
6883
|
-
return (
|
|
6884
|
-
React__default["default"].createElement("table", { className: getCssClasses(), ...rest }, children)));
|
|
6721
|
+
return (jsxRuntime.jsx(ConditionalWrapper, { condition: responsive, wrapper: (children) => jsxRuntime.jsx("div", { className: styles$5.tableResponsive, children: children }), children: jsxRuntime.jsx("table", { className: getCssClasses(), ...rest, children: children }) }));
|
|
6885
6722
|
};
|
|
6886
6723
|
|
|
6887
6724
|
const TableRow = (props) => {
|
|
6888
6725
|
const { children, ...rest } = props;
|
|
6889
|
-
return (
|
|
6726
|
+
return (jsxRuntime.jsx("tr", { ...rest, children: children }));
|
|
6890
6727
|
};
|
|
6891
6728
|
|
|
6892
6729
|
const TableContext = React.createContext({
|
|
@@ -6896,21 +6733,19 @@ const useTableContext = () => React.useContext(TableContext);
|
|
|
6896
6733
|
|
|
6897
6734
|
const TableHead = (props) => {
|
|
6898
6735
|
const { children, ...rest } = props;
|
|
6899
|
-
return (
|
|
6900
|
-
React__default["default"].createElement("thead", { ...rest }, children)));
|
|
6736
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'head' }, children: jsxRuntime.jsx("thead", { ...rest, children: children }) }));
|
|
6901
6737
|
};
|
|
6902
6738
|
|
|
6903
6739
|
const TableBody = (props) => {
|
|
6904
6740
|
const { children, ...rest } = props;
|
|
6905
|
-
return (
|
|
6906
|
-
React__default["default"].createElement("tbody", { ...rest }, children)));
|
|
6741
|
+
return (jsxRuntime.jsx(TableContext.Provider, { value: { variant: 'body' }, children: jsxRuntime.jsx("tbody", { ...rest, children: children }) }));
|
|
6907
6742
|
};
|
|
6908
6743
|
|
|
6909
6744
|
const TableCell = (props) => {
|
|
6910
6745
|
const { variant } = useTableContext();
|
|
6911
6746
|
const { children, component, ...rest } = props;
|
|
6912
|
-
return (
|
|
6913
|
-
|
|
6747
|
+
return (jsxRuntime.jsx(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (jsxRuntime.jsx("th", { ...rest, children: children })) :
|
|
6748
|
+
jsxRuntime.jsx("td", { ...rest, children: children })), children: children }));
|
|
6914
6749
|
};
|
|
6915
6750
|
|
|
6916
6751
|
const TabContext = React.createContext({});
|
|
@@ -6928,7 +6763,7 @@ const TabIndicator = (props) => {
|
|
|
6928
6763
|
cssClasses.push(styles$4[color]);
|
|
6929
6764
|
return cssClasses.filter(css => css).join(' ');
|
|
6930
6765
|
};
|
|
6931
|
-
return (
|
|
6766
|
+
return (jsxRuntime.jsx("span", { className: getCssClasses(), style: {
|
|
6932
6767
|
width: width,
|
|
6933
6768
|
left: `calc(calc(100% / ${amount}) * ${index})`
|
|
6934
6769
|
} }));
|
|
@@ -6970,12 +6805,8 @@ const Tabs = (props) => {
|
|
|
6970
6805
|
className && cssClasses.push(className);
|
|
6971
6806
|
return cssClasses.filter(css => css).join(' ');
|
|
6972
6807
|
};
|
|
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 })))));
|
|
6808
|
+
return (jsxRuntime.jsx(ButtonContext.Provider, { value: { color: color || exports.COLOR.light }, children: jsxRuntime.jsx(TabContext.Provider, { value: tabContext, children: jsxRuntime.jsxs("div", { className: getCssClasses(), children: [children, children &&
|
|
6809
|
+
jsxRuntime.jsx(TabIndicator, { color: indicatorColor, width: (100 / React__default["default"].Children.toArray(children).length) + '%', index: selectedIndex, amount: React__default["default"].Children.toArray(children).length })] }) }) }));
|
|
6979
6810
|
};
|
|
6980
6811
|
|
|
6981
6812
|
var css_248z$2 = ".Tab-module_tab__Q8w1f {\n padding: 6px 12px;\n overflow: hidden;\n position: relative;\n font-size: 0.875rem;\n min-width: 72px;\n box-sizing: border-box;\n min-height: 48px;\n text-align: center;\n font-weight: 500;\n line-height: 1.75;\n white-space: normal;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n border-radius: 0;\n flex-grow: 1;\n flex-basis: 0;\n transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
@@ -6995,12 +6826,12 @@ const Tab = (props) => {
|
|
|
6995
6826
|
onClick && onClick({ event: event, value: value });
|
|
6996
6827
|
setSelectedValue && setSelectedValue(value);
|
|
6997
6828
|
};
|
|
6998
|
-
return (
|
|
6829
|
+
return (jsxRuntime.jsx(Button, { className: getCssClasses(), onClick: handleClick, isActive: selectedValue === value, disabled: disabled, children: label }));
|
|
6999
6830
|
};
|
|
7000
6831
|
|
|
7001
6832
|
const TabPanel = (props) => {
|
|
7002
6833
|
const { children, value, index, ...rest } = props;
|
|
7003
|
-
return (
|
|
6834
|
+
return (jsxRuntime.jsx("div", { role: "tabpanel", hidden: value !== index, id: `tabpanel-${index}`, "aria-labelledby": `wrapped-tab-${index}`, ...rest, children: value === index && children }));
|
|
7004
6835
|
};
|
|
7005
6836
|
|
|
7006
6837
|
const HourSelect = (props) => {
|
|
@@ -7023,7 +6854,7 @@ const HourSelect = (props) => {
|
|
|
7023
6854
|
setNewValue(e);
|
|
7024
6855
|
onChange && onChange(e);
|
|
7025
6856
|
};
|
|
7026
|
-
return (
|
|
6857
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: hourOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7027
6858
|
};
|
|
7028
6859
|
|
|
7029
6860
|
const MilliSecondSelect = (props) => {
|
|
@@ -7046,7 +6877,7 @@ const MilliSecondSelect = (props) => {
|
|
|
7046
6877
|
setNewValue(e);
|
|
7047
6878
|
onChange && onChange(e);
|
|
7048
6879
|
};
|
|
7049
|
-
return (
|
|
6880
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: milliSecondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7050
6881
|
};
|
|
7051
6882
|
|
|
7052
6883
|
const MinuteSelect = (props) => {
|
|
@@ -7069,7 +6900,7 @@ const MinuteSelect = (props) => {
|
|
|
7069
6900
|
setNewValue(e);
|
|
7070
6901
|
onChange && onChange(e);
|
|
7071
6902
|
};
|
|
7072
|
-
return (
|
|
6903
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: minuteOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7073
6904
|
};
|
|
7074
6905
|
|
|
7075
6906
|
const SecondSelect = (props) => {
|
|
@@ -7092,7 +6923,7 @@ const SecondSelect = (props) => {
|
|
|
7092
6923
|
setNewValue(e);
|
|
7093
6924
|
onChange && onChange(e);
|
|
7094
6925
|
};
|
|
7095
|
-
return (
|
|
6926
|
+
return (jsxRuntime.jsx(Select, { id: id, name: name, className: getCssClasses(), options: secondOptions, onChange: (e) => handleOnChange(parseInt(e)), disabled: disabled, value: newValue.toString() }));
|
|
7096
6927
|
};
|
|
7097
6928
|
|
|
7098
6929
|
exports.TIMEMODE = void 0;
|
|
@@ -7123,23 +6954,11 @@ const TimeSelect = (props) => {
|
|
|
7123
6954
|
setCurrDate(newDate);
|
|
7124
6955
|
onChange && onChange(newDate);
|
|
7125
6956
|
};
|
|
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) }))));
|
|
6957
|
+
return (jsxRuntime.jsxs(Row, { className: getCssClasses(), children: [showHours &&
|
|
6958
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Hours" }), jsxRuntime.jsx(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.HOUR) })] }), showMinutes &&
|
|
6959
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Minutes" }), jsxRuntime.jsx(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })] }), showSeconds &&
|
|
6960
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Seconds" }), jsxRuntime.jsx(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })] }), showMilliSeconds &&
|
|
6961
|
+
jsxRuntime.jsxs(Column, { children: [jsxRuntime.jsx(FormLabel, { children: "Milliseconds" }), jsxRuntime.jsx(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) })] })] }));
|
|
7143
6962
|
};
|
|
7144
6963
|
|
|
7145
6964
|
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
|
|
@@ -7154,7 +6973,7 @@ const TreeView = (props) => {
|
|
|
7154
6973
|
className && cssClasses.push(className);
|
|
7155
6974
|
return cssClasses.filter(css => css).join(' ');
|
|
7156
6975
|
};
|
|
7157
|
-
return (
|
|
6976
|
+
return (jsxRuntime.jsx("ul", { className: getCssClasses(), ...rest, children: children }));
|
|
7158
6977
|
};
|
|
7159
6978
|
|
|
7160
6979
|
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 +7010,9 @@ const TreeItem = (props) => {
|
|
|
7191
7010
|
setIsSelected(!_isSelected);
|
|
7192
7011
|
onItemSelect && onItemSelect({ id: nodeId, isSelected: !_isSelected });
|
|
7193
7012
|
};
|
|
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));
|
|
7013
|
+
return (jsxRuntime.jsxs("li", { className: getCssClasses(), style: { paddingLeft: `${(TreeViewItemPadding * (children ? 0 : 1))}px` }, children: [jsxRuntime.jsxs("div", { className: "d-flex align-items-center", children: [children && nodeId &&
|
|
7014
|
+
jsxRuntime.jsx(IconButton, { onClick: () => handleOnToggleExpand(nodeId), icon: !_isExpanded ? jsxRuntime.jsx(ChevronRightSolidIcon, {}) : jsxRuntime.jsx(ChevronDownSolidIcon, {}) }), isSelectable && nodeId &&
|
|
7015
|
+
jsxRuntime.jsx(Checkbox, { checked: _isSelected, onChange: () => handleOnSelect(nodeId) }), label] }), children && _isExpanded ? jsxRuntime.jsx("ul", { children: children }) : null] }));
|
|
7202
7016
|
};
|
|
7203
7017
|
|
|
7204
7018
|
exports.Alert = Alert;
|