@popmenu/common-ui 0.125.0 → 0.126.1
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/build/{components → esm/components}/Accordion/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionActions/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionDetails/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionSummary/index.d.ts +1 -1
- package/build/{components → esm/components}/Alert/index.d.ts +1 -1
- package/build/{components → esm/components}/AppBar/index.d.ts +1 -1
- package/build/esm/components/Avatar/Avatar.d.ts +3 -0
- package/build/esm/components/Avatar/Avatar.js +39 -0
- package/build/esm/components/Avatar/Avatar.js.map +1 -0
- package/build/{components → esm/components}/Avatar/AvatarProps.d.ts +22 -22
- package/build/{components → esm/components}/Avatar/avatar.styles.d.ts +2 -2
- package/build/esm/components/Avatar/avatar.styles.js +41 -0
- package/build/esm/components/Avatar/avatar.styles.js.map +1 -0
- package/build/{components → esm/components}/Avatar/index.d.ts +2 -2
- package/build/{components → esm/components}/Avatar/util/useImageProps.d.ts +10 -10
- package/build/esm/components/Avatar/util/useImageProps.js +21 -0
- package/build/esm/components/Avatar/util/useImageProps.js.map +1 -0
- package/build/{components → esm/components}/Badge/index.d.ts +1 -1
- package/build/{components → esm/components}/Box/Box.d.ts +3 -3
- package/build/{components → esm/components}/Box/BoxProps.d.ts +5 -5
- package/build/{components → esm/components}/Box/BoxStyles.d.ts +1 -1
- package/build/{components → esm/components}/Box/index.d.ts +7 -7
- package/build/{components → esm/components}/Breadcrumbs/index.d.ts +1 -1
- package/build/{components → esm/components}/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js +18 -0
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -0
- package/build/{components → esm/components}/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -1
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +25 -0
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -0
- package/build/{components → esm/components}/BrowserSilhouette/index.d.ts +1 -1
- package/build/{components → esm/components}/Button/Button.d.ts +6 -6
- package/build/esm/components/Button/Button.js +23 -0
- package/build/esm/components/Button/Button.js.map +1 -0
- package/build/{components → esm/components}/Button/ButtonProps.d.ts +11 -11
- package/build/esm/components/Button/ButtonStyles.d.ts +2 -0
- package/build/esm/components/Button/ButtonStyles.js +16 -0
- package/build/esm/components/Button/ButtonStyles.js.map +1 -0
- package/build/{components → esm/components}/Button/index.d.ts +2 -2
- package/build/{components → esm/components}/ButtonBase/index.d.ts +1 -1
- package/build/{components → esm/components}/ButtonGroup/index.d.ts +1 -1
- package/build/{components → esm/components}/Card/index.d.ts +1 -1
- package/build/{components → esm/components}/CardActionArea/index.d.ts +1 -1
- package/build/{components → esm/components}/CardActions/index.d.ts +1 -1
- package/build/{components → esm/components}/CardContent/index.d.ts +1 -1
- package/build/{components → esm/components}/CardHeader/index.d.ts +1 -1
- package/build/{components → esm/components}/CardMedia/index.d.ts +1 -1
- package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
- package/build/esm/components/Checkbox/Checkbox.js +14 -0
- package/build/esm/components/Checkbox/Checkbox.js.map +1 -0
- package/build/{components → esm/components}/Checkbox/CheckboxProps.d.ts +8 -8
- package/build/{components → esm/components}/Checkbox/index.d.ts +2 -2
- package/build/{components → esm/components}/Chip/Chip.d.ts +6 -6
- package/build/esm/components/Chip/Chip.js +23 -0
- package/build/esm/components/Chip/Chip.js.map +1 -0
- package/build/{components → esm/components}/Chip/ChipProps.d.ts +8 -8
- package/build/{components → esm/components}/Chip/ChipStyles.d.ts +2 -2
- package/build/esm/components/Chip/ChipStyles.js +83 -0
- package/build/esm/components/Chip/ChipStyles.js.map +1 -0
- package/build/{components → esm/components}/Chip/index.d.ts +2 -2
- package/build/{components → esm/components}/CircularProgress/index.d.ts +1 -1
- package/build/{components → esm/components}/ClickAwayListener/index.d.ts +1 -1
- package/build/{components → esm/components}/CollapsibleText/CollapsibleText.d.ts +3 -3
- package/build/esm/components/CollapsibleText/CollapsibleText.js +41 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -0
- package/build/{components → esm/components}/CollapsibleText/CollapsibleTextProps.d.ts +13 -13
- package/build/{components → esm/components}/CollapsibleText/CollapsibleTextStyles.d.ts +5 -5
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js +24 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js.map +1 -0
- package/build/{components → esm/components}/CollapsibleText/index.d.ts +2 -2
- package/build/{components → esm/components}/Dialog/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogActions/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogContent/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogContentText/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogTitle/index.d.ts +1 -1
- package/build/{components → esm/components}/Divider/Divider.d.ts +3 -3
- package/build/esm/components/Divider/Divider.js +70 -0
- package/build/esm/components/Divider/Divider.js.map +1 -0
- package/build/{components → esm/components}/Divider/DividerProps.d.ts +17 -17
- package/build/{components → esm/components}/Divider/index.d.ts +2 -2
- package/build/{components → esm/components}/Drawer/index.d.ts +1 -1
- package/build/{components → esm/components}/Fab/index.d.ts +1 -1
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js +86 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js +12 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js +24 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -4
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js +18 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -3
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js +37 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -29
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +149 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/context.d.ts +4 -4
- package/build/esm/components/FollowerAuthenticationDialog/context.js +14 -0
- package/build/esm/components/FollowerAuthenticationDialog/context.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/index.d.ts +2 -2
- package/build/{components → esm/components}/FollowerAuthenticationDialog/theme.d.ts +35 -35
- package/build/esm/components/FollowerAuthenticationDialog/theme.js +36 -0
- package/build/esm/components/FollowerAuthenticationDialog/theme.js.map +1 -0
- package/build/{components → esm/components}/FormControl/index.d.ts +1 -1
- package/build/{components → esm/components}/FormControlLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/FormLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/Grid/index.d.ts +1 -1
- package/build/{components → esm/components}/GridList/index.d.ts +1 -1
- package/build/{components → esm/components}/Hidden/index.d.ts +1 -1
- package/build/{components → esm/components}/Icon/Icon.d.ts +4 -4
- package/build/esm/components/Icon/Icon.js +29 -0
- package/build/esm/components/Icon/Icon.js.map +1 -0
- package/build/{components → esm/components}/Icon/IconProps.d.ts +17 -17
- package/build/{components → esm/components}/Icon/IconStyles.d.ts +2 -2
- package/build/esm/components/Icon/IconStyles.js +41 -0
- package/build/esm/components/Icon/IconStyles.js.map +1 -0
- package/build/{components → esm/components}/Icon/index.d.ts +2 -2
- package/build/esm/components/IconButton/IconButton.d.ts +3 -0
- package/build/esm/components/IconButton/IconButton.js +14 -0
- package/build/esm/components/IconButton/IconButton.js.map +1 -0
- package/build/{components → esm/components}/IconButton/IconButtonProps.d.ts +2 -2
- package/build/{components → esm/components}/IconButton/index.d.ts +2 -2
- package/build/{components → esm/components}/InputAdornment/index.d.ts +1 -1
- package/build/{components → esm/components}/LinearProgress/index.d.ts +1 -1
- package/build/{components → esm/components}/Link/Link.d.ts +11 -11
- package/build/esm/components/Link/Link.js +18 -0
- package/build/esm/components/Link/Link.js.map +1 -0
- package/build/{components → esm/components}/Link/LinkStyles.d.ts +2 -2
- package/build/esm/components/Link/LinkStyles.js +15 -0
- package/build/esm/components/Link/LinkStyles.js.map +1 -0
- package/build/{components → esm/components}/Link/index.d.ts +2 -2
- package/build/{components → esm/components}/List/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItem/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemAvatar/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemIcon/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemSecondaryAction/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemText/index.d.ts +1 -1
- package/build/{components → esm/components}/Menu/index.d.ts +1 -1
- package/build/{components → esm/components}/MenuItem/index.d.ts +1 -1
- package/build/{components → esm/components}/MenuList/index.d.ts +1 -1
- package/build/{components → esm/components}/Modal/index.d.ts +1 -1
- package/build/{components → esm/components}/NumberField/NumberField.d.ts +3 -3
- package/build/esm/components/NumberField/NumberField.js +20 -0
- package/build/esm/components/NumberField/NumberField.js.map +1 -0
- package/build/{components → esm/components}/NumberField/NumberFieldProps.d.ts +12 -12
- package/build/{components → esm/components}/NumberField/NumberFieldStyles.d.ts +2 -2
- package/build/esm/components/NumberField/NumberFieldStyles.js +32 -0
- package/build/esm/components/NumberField/NumberFieldStyles.js.map +1 -0
- package/build/{components → esm/components}/NumberField/index.d.ts +2 -2
- package/build/esm/components/Paper/Paper.d.ts +6 -0
- package/build/esm/components/Paper/Paper.js +28 -0
- package/build/esm/components/Paper/Paper.js.map +1 -0
- package/build/{components → esm/components}/Paper/index.d.ts +1 -1
- package/build/{components → esm/components}/PaperContent/PaperContent.d.ts +2 -2
- package/build/esm/components/PaperContent/PaperContent.js +10 -0
- package/build/esm/components/PaperContent/PaperContent.js.map +1 -0
- package/build/{components → esm/components}/PaperContent/index.d.ts +1 -1
- package/build/{components → esm/components}/Popover/index.d.ts +1 -1
- package/build/{components → esm/components}/Popper/index.d.ts +1 -1
- package/build/esm/components/Radio/Radio.d.ts +3 -0
- package/build/esm/components/Radio/Radio.js +14 -0
- package/build/esm/components/Radio/Radio.js.map +1 -0
- package/build/{components → esm/components}/Radio/RadioProps.d.ts +8 -8
- package/build/{components → esm/components}/Radio/index.d.ts +2 -2
- package/build/{components → esm/components}/SplitInput/SplitInput.d.ts +3 -3
- package/build/esm/components/SplitInput/SplitInput.js +22 -0
- package/build/esm/components/SplitInput/SplitInput.js.map +1 -0
- package/build/{components → esm/components}/SplitInput/SplitInputProps.d.ts +20 -20
- package/build/{components → esm/components}/SplitInput/SplitInputStyles.d.ts +2 -2
- package/build/esm/components/SplitInput/SplitInputStyles.js +29 -0
- package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -0
- package/build/{components → esm/components}/SplitInput/index.d.ts +2 -2
- package/build/{components → esm/components}/Step/index.d.ts +1 -1
- package/build/{components → esm/components}/StepButton/index.d.ts +1 -1
- package/build/{components → esm/components}/StepConnector/index.d.ts +1 -1
- package/build/{components → esm/components}/StepContent/index.d.ts +1 -1
- package/build/{components → esm/components}/StepIcon/index.d.ts +1 -1
- package/build/{components → esm/components}/StepLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/Stepper/index.d.ts +1 -1
- package/build/esm/components/Switch/Switch.d.ts +3 -0
- package/build/esm/components/Switch/Switch.js +16 -0
- package/build/esm/components/Switch/Switch.js.map +1 -0
- package/build/{components → esm/components}/Switch/SwitchProps.d.ts +8 -8
- package/build/{components → esm/components}/Switch/index.d.ts +2 -2
- package/build/{components → esm/components}/Switch/switch.styles.d.ts +2 -2
- package/build/esm/components/Switch/switch.styles.js +17 -0
- package/build/esm/components/Switch/switch.styles.js.map +1 -0
- package/build/{components → esm/components}/Tab/index.d.ts +1 -1
- package/build/{components → esm/components}/TabPanel/TabPanel.d.ts +3 -3
- package/build/esm/components/TabPanel/TabPanel.js +10 -0
- package/build/esm/components/TabPanel/TabPanel.js.map +1 -0
- package/build/{components → esm/components}/TabPanel/TabPanelProps.d.ts +3 -3
- package/build/{components → esm/components}/TabPanel/index.d.ts +2 -2
- package/build/{components → esm/components}/Tabs/index.d.ts +1 -1
- package/build/{components → esm/components}/TextField/index.d.ts +1 -1
- package/build/{components → esm/components}/ThemeProvider/index.d.ts +1 -1
- package/build/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/build/esm/components/ToggleButton/ToggleButton.js +20 -0
- package/build/esm/components/ToggleButton/ToggleButton.js.map +1 -0
- package/build/{components → esm/components}/ToggleButton/ToggleButtonProps.d.ts +4 -4
- package/build/{components → esm/components}/ToggleButton/ToggleButtonStyles.d.ts +2 -2
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js +19 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -0
- package/build/{components → esm/components}/ToggleButton/index.d.ts +2 -2
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js +20 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -0
- package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -6
- package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -1
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +12 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -0
- package/build/{components → esm/components}/ToggleButtonGroup/index.d.ts +2 -2
- package/build/{components → esm/components}/Toolbar/index.d.ts +1 -1
- package/build/esm/components/Tooltip/Tooltip.d.ts +3 -0
- package/build/esm/components/Tooltip/Tooltip.js +13 -0
- package/build/esm/components/Tooltip/Tooltip.js.map +1 -0
- package/build/{components → esm/components}/Tooltip/TooltipProps.d.ts +1 -1
- package/build/{components → esm/components}/Tooltip/TooltipStyles.d.ts +2 -2
- package/build/esm/components/Tooltip/TooltipStyles.js +13 -0
- package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -0
- package/build/{components → esm/components}/Tooltip/index.d.ts +2 -2
- package/build/{components → esm/components}/Typography/Typography.d.ts +9 -9
- package/build/esm/components/Typography/Typography.js +17 -0
- package/build/esm/components/Typography/Typography.js.map +1 -0
- package/build/{components → esm/components}/Typography/TypographyProps.d.ts +15 -15
- package/build/esm/components/Typography/TypographyProps.js +6 -0
- package/build/esm/components/Typography/TypographyProps.js.map +1 -0
- package/build/esm/components/Typography/TypographyStyles.d.ts +10 -0
- package/build/esm/components/Typography/TypographyStyles.js +76 -0
- package/build/esm/components/Typography/TypographyStyles.js.map +1 -0
- package/build/{components → esm/components}/Typography/index.d.ts +2 -2
- package/build/{components → esm/components}/index.d.ts +78 -78
- package/build/{hooks → esm/hooks}/index.d.ts +2 -2
- package/build/{hooks → esm/hooks}/useCollapsibleText.d.ts +9 -9
- package/build/esm/hooks/useCollapsibleText.js +17 -0
- package/build/esm/hooks/useCollapsibleText.js.map +1 -0
- package/build/{hooks → esm/hooks}/useTabs/index.d.ts +1 -1
- package/build/{hooks → esm/hooks}/useTabs/useTabs.d.ts +3 -3
- package/build/esm/hooks/useTabs/useTabs.js +35 -0
- package/build/esm/hooks/useTabs/useTabs.js.map +1 -0
- package/build/{hooks → esm/hooks}/useTabs/useTabsOptions.d.ts +3 -3
- package/build/{hooks → esm/hooks}/useTabs/useTabsResult.d.ts +22 -22
- package/build/{index.d.ts → esm/index.d.ts} +3 -3
- package/build/esm/index.js +60 -0
- package/build/esm/index.js.map +1 -0
- package/build/{types → esm/types}/index.d.ts +2 -2
- package/build/{util → esm/util}/ServerStyleSheets.d.ts +1 -1
- package/build/{util → esm/util}/colors/alpha.d.ts +1 -1
- package/build/{util → esm/util}/colors/darken.d.ts +1 -1
- package/build/{util → esm/util}/colors/decomposeColor.d.ts +1 -1
- package/build/{util → esm/util}/colors/getLuminance.d.ts +1 -1
- package/build/{util → esm/util}/colors/hexToRgb.d.ts +1 -1
- package/build/{util → esm/util}/colors/index.d.ts +8 -8
- package/build/{util → esm/util}/colors/lighten.d.ts +1 -1
- package/build/{util → esm/util}/colors/recomposeColor.d.ts +1 -1
- package/build/{util → esm/util}/colors/rgbToHex.d.ts +1 -1
- package/build/{util → esm/util}/createTheme.d.ts +1 -1
- package/build/{util → esm/util}/index.d.ts +4 -4
- package/build/{util → esm/util}/makeStyles.d.ts +1 -1
- package/build/index.js +1130 -1714
- package/build/index.js.map +1 -1
- package/package.json +7 -7
- package/build/components/Avatar/Avatar.d.ts +0 -3
- package/build/components/Button/ButtonStyles.d.ts +0 -2
- package/build/components/Checkbox/Checkbox.d.ts +0 -3
- package/build/components/IconButton/IconButton.d.ts +0 -3
- package/build/components/Paper/Paper.d.ts +0 -6
- package/build/components/Radio/Radio.d.ts +0 -3
- package/build/components/Switch/Switch.d.ts +0 -3
- package/build/components/ToggleButton/ToggleButton.d.ts +0 -3
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -3
- package/build/components/Tooltip/Tooltip.d.ts +0 -3
- package/build/components/Typography/TypographyStyles.d.ts +0 -4
- package/build/index.es.js +0 -1464
- package/build/index.es.js.map +0 -1
package/build/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var Alert = require('@material-ui/lab/Alert');
|
|
6
4
|
var core = require('@material-ui/core');
|
|
7
5
|
var AppBar = require('@material-ui/core/AppBar');
|
|
6
|
+
var tslib = require('tslib');
|
|
8
7
|
var React = require('react');
|
|
9
8
|
var MuiAvatar = require('@material-ui/core/Avatar');
|
|
9
|
+
var webIcons = require('@popmenu/web-icons');
|
|
10
|
+
var classNames = require('classnames');
|
|
10
11
|
var styles = require('@material-ui/core/styles');
|
|
11
12
|
var Badge = require('@material-ui/core/Badge');
|
|
12
13
|
var MuiButton = require('@material-ui/core/Button');
|
|
@@ -50,1885 +51,1300 @@ var MuiToggleButton = require('@material-ui/lab/ToggleButton');
|
|
|
50
51
|
var MuiToggleButtonGroup = require('@material-ui/lab/ToggleButtonGroup');
|
|
51
52
|
var MuiTooltip = require('@material-ui/core/Tooltip');
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
54
|
+
var useIconStyles = core.makeStyles(function (_a) {
|
|
55
|
+
var spacing = _a.spacing, palette = _a.palette;
|
|
56
|
+
var getFontSize = function (_a) {
|
|
57
|
+
var size = _a.size;
|
|
58
|
+
var sizes = {
|
|
59
|
+
inherit: 'inherit',
|
|
60
|
+
small: spacing(1.5),
|
|
61
|
+
medium: spacing(2),
|
|
62
|
+
large: spacing(2.5),
|
|
63
|
+
'extra-large': spacing(3),
|
|
64
|
+
};
|
|
65
|
+
return size ? sizes[size] : 'inherit';
|
|
66
|
+
};
|
|
67
|
+
var getColor = function (props) {
|
|
68
|
+
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
69
|
+
var value = 'inherit';
|
|
70
|
+
if (props.color) {
|
|
71
|
+
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
72
|
+
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
73
|
+
// @ts-expect-error - todo.
|
|
74
|
+
value = palette[color][variant];
|
|
68
75
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
var List__default = /*#__PURE__*/_interopDefaultLegacy(List);
|
|
105
|
-
var ListItem__default = /*#__PURE__*/_interopDefaultLegacy(ListItem);
|
|
106
|
-
var ListItemAvatar__default = /*#__PURE__*/_interopDefaultLegacy(ListItemAvatar);
|
|
107
|
-
var ListItemIcon__default = /*#__PURE__*/_interopDefaultLegacy(ListItemIcon);
|
|
108
|
-
var ListItemSecondaryAction__default = /*#__PURE__*/_interopDefaultLegacy(ListItemSecondaryAction);
|
|
109
|
-
var ListItemText__default = /*#__PURE__*/_interopDefaultLegacy(ListItemText);
|
|
110
|
-
var Menu__default = /*#__PURE__*/_interopDefaultLegacy(Menu);
|
|
111
|
-
var MenuItem__default = /*#__PURE__*/_interopDefaultLegacy(MenuItem);
|
|
112
|
-
var MenuList__default = /*#__PURE__*/_interopDefaultLegacy(MenuList);
|
|
113
|
-
var MuiRadio__default = /*#__PURE__*/_interopDefaultLegacy(MuiRadio);
|
|
114
|
-
var TextField__default = /*#__PURE__*/_interopDefaultLegacy(TextField);
|
|
115
|
-
var MuiSwitch__default = /*#__PURE__*/_interopDefaultLegacy(MuiSwitch);
|
|
116
|
-
var Tab__default = /*#__PURE__*/_interopDefaultLegacy(Tab);
|
|
117
|
-
var Tabs__default = /*#__PURE__*/_interopDefaultLegacy(Tabs);
|
|
118
|
-
var MuiToggleButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiToggleButton);
|
|
119
|
-
var MuiToggleButtonGroup__default = /*#__PURE__*/_interopDefaultLegacy(MuiToggleButtonGroup);
|
|
120
|
-
var MuiTooltip__default = /*#__PURE__*/_interopDefaultLegacy(MuiTooltip);
|
|
121
|
-
|
|
122
|
-
/*! *****************************************************************************
|
|
123
|
-
Copyright (c) Microsoft Corporation.
|
|
124
|
-
|
|
125
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
126
|
-
purpose with or without fee is hereby granted.
|
|
127
|
-
|
|
128
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
129
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
130
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
131
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
132
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
133
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
134
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
135
|
-
***************************************************************************** */
|
|
136
|
-
|
|
137
|
-
var __assign = function() {
|
|
138
|
-
__assign = Object.assign || function __assign(t) {
|
|
139
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
140
|
-
s = arguments[i];
|
|
141
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
142
|
-
}
|
|
143
|
-
return t;
|
|
144
|
-
};
|
|
145
|
-
return __assign.apply(this, arguments);
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
function __rest(s, e) {
|
|
149
|
-
var t = {};
|
|
150
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
151
|
-
t[p] = s[p];
|
|
152
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
153
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
154
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
155
|
-
t[p[i]] = s[p[i]];
|
|
156
|
-
}
|
|
157
|
-
return t;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
var _g$2C;
|
|
161
|
-
|
|
162
|
-
function _extends$4K() { _extends$4K = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4K.apply(this, arguments); }
|
|
163
|
-
|
|
164
|
-
function SvgCheckCircle(props) {
|
|
165
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4K({
|
|
166
|
-
viewBox: "0 0 16 16",
|
|
167
|
-
fill: "none",
|
|
168
|
-
strokeLinecap: "round",
|
|
169
|
-
strokeLinejoin: "round",
|
|
170
|
-
width: "1em",
|
|
171
|
-
height: "1em"
|
|
172
|
-
}, props), _g$2C || (_g$2C = /*#__PURE__*/React__namespace.createElement("g", {
|
|
173
|
-
stroke: "currentColor"
|
|
174
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
175
|
-
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
176
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
177
|
-
d: "M14.667 2.667L8 9.34l-2-2"
|
|
178
|
-
}))));
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
var _path$26;
|
|
182
|
-
|
|
183
|
-
function _extends$4H() { _extends$4H = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4H.apply(this, arguments); }
|
|
184
|
-
|
|
185
|
-
function SvgX(props) {
|
|
186
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4H({
|
|
187
|
-
viewBox: "0 0 16 16",
|
|
188
|
-
fill: "none",
|
|
189
|
-
strokeLinecap: "round",
|
|
190
|
-
strokeLinejoin: "round",
|
|
191
|
-
width: "1em",
|
|
192
|
-
height: "1em"
|
|
193
|
-
}, props), _path$26 || (_path$26 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
194
|
-
d: "M12 4l-8 8m0-8l8 8",
|
|
195
|
-
stroke: "currentColor"
|
|
196
|
-
})));
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
var _g$2z, _defs$1D;
|
|
200
|
-
|
|
201
|
-
function _extends$4G() { _extends$4G = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4G.apply(this, arguments); }
|
|
202
|
-
|
|
203
|
-
function SvgXCircle(props) {
|
|
204
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4G({
|
|
205
|
-
viewBox: "0 0 16 16",
|
|
206
|
-
fill: "none",
|
|
207
|
-
strokeLinecap: "round",
|
|
208
|
-
strokeLinejoin: "round",
|
|
209
|
-
width: "1em",
|
|
210
|
-
height: "1em"
|
|
211
|
-
}, props), _g$2z || (_g$2z = /*#__PURE__*/React__namespace.createElement("g", {
|
|
212
|
-
clipPath: "url(#x-circle_svg__clip0_8_6136)",
|
|
213
|
-
stroke: "currentColor"
|
|
214
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
215
|
-
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
|
|
216
|
-
}))), _defs$1D || (_defs$1D = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
217
|
-
id: "x-circle_svg__clip0_8_6136"
|
|
218
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
219
|
-
fill: "currentColor",
|
|
220
|
-
d: "M0 0h16v16H0z"
|
|
221
|
-
})))));
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
var _g$2m, _defs$1t;
|
|
225
|
-
|
|
226
|
-
function _extends$4m() { _extends$4m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4m.apply(this, arguments); }
|
|
227
|
-
|
|
228
|
-
function SvgInfo(props) {
|
|
229
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4m({
|
|
230
|
-
viewBox: "0 0 16 16",
|
|
231
|
-
fill: "none",
|
|
232
|
-
strokeLinecap: "round",
|
|
233
|
-
strokeLinejoin: "round",
|
|
234
|
-
width: "1em",
|
|
235
|
-
height: "1em"
|
|
236
|
-
}, props), _g$2m || (_g$2m = /*#__PURE__*/React__namespace.createElement("g", {
|
|
237
|
-
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
238
|
-
stroke: "currentColor"
|
|
239
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
240
|
-
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
241
|
-
}))), _defs$1t || (_defs$1t = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
242
|
-
id: "info_svg__clip0_8_5377"
|
|
243
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
244
|
-
fill: "currentColor",
|
|
245
|
-
d: "M0 0h16v16H0z"
|
|
246
|
-
})))));
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
var _g$2h, _defs$1r;
|
|
250
|
-
|
|
251
|
-
function _extends$47() { _extends$47 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$47.apply(this, arguments); }
|
|
252
|
-
|
|
253
|
-
function SvgMinusCircle(props) {
|
|
254
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$47({
|
|
255
|
-
viewBox: "0 0 16 16",
|
|
256
|
-
fill: "none",
|
|
257
|
-
strokeLinecap: "round",
|
|
258
|
-
strokeLinejoin: "round",
|
|
259
|
-
width: "1em",
|
|
260
|
-
height: "1em"
|
|
261
|
-
}, props), _g$2h || (_g$2h = /*#__PURE__*/React__namespace.createElement("g", {
|
|
262
|
-
clipPath: "url(#minus-circle_svg__clip0_8_5970)",
|
|
263
|
-
stroke: "currentColor"
|
|
264
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
265
|
-
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM5.333 8h5.334"
|
|
266
|
-
}))), _defs$1r || (_defs$1r = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
267
|
-
id: "minus-circle_svg__clip0_8_5970"
|
|
268
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
269
|
-
fill: "currentColor",
|
|
270
|
-
d: "M0 0h16v16H0z"
|
|
271
|
-
})))));
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
var _g$2e, _defs$1o;
|
|
275
|
-
|
|
276
|
-
function _extends$3$() { _extends$3$ = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3$.apply(this, arguments); }
|
|
277
|
-
|
|
278
|
-
function SvgPlusCircle(props) {
|
|
279
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3$({
|
|
280
|
-
viewBox: "0 0 16 16",
|
|
281
|
-
fill: "none",
|
|
282
|
-
strokeLinecap: "round",
|
|
283
|
-
strokeLinejoin: "round",
|
|
284
|
-
width: "1em",
|
|
285
|
-
height: "1em"
|
|
286
|
-
}, props), _g$2e || (_g$2e = /*#__PURE__*/React__namespace.createElement("g", {
|
|
287
|
-
clipPath: "url(#plus-circle_svg__clip0_8_5870)",
|
|
288
|
-
stroke: "currentColor"
|
|
289
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
290
|
-
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-9.334v5.334M5.333 8h5.334"
|
|
291
|
-
}))), _defs$1o || (_defs$1o = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
292
|
-
id: "plus-circle_svg__clip0_8_5870"
|
|
293
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
294
|
-
fill: "currentColor",
|
|
295
|
-
d: "M0 0h16v16H0z"
|
|
296
|
-
})))));
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
var _path$1D;
|
|
300
|
-
|
|
301
|
-
function _extends$3H() { _extends$3H = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3H.apply(this, arguments); }
|
|
302
|
-
|
|
303
|
-
function SvgUser(props) {
|
|
304
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3H({
|
|
305
|
-
viewBox: "0 0 16 16",
|
|
306
|
-
fill: "none",
|
|
307
|
-
strokeLinecap: "round",
|
|
308
|
-
strokeLinejoin: "round",
|
|
309
|
-
width: "1em",
|
|
310
|
-
height: "1em"
|
|
311
|
-
}, props), _path$1D || (_path$1D = /*#__PURE__*/React__namespace.createElement("path", {
|
|
312
|
-
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
|
|
313
|
-
stroke: "currentColor"
|
|
314
|
-
})));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
var _g$20, _defs$1f;
|
|
318
|
-
|
|
319
|
-
function _extends$3w() { _extends$3w = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3w.apply(this, arguments); }
|
|
320
|
-
|
|
321
|
-
function SvgError(props) {
|
|
322
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3w({
|
|
323
|
-
viewBox: "0 0 16 16",
|
|
324
|
-
fill: "none",
|
|
325
|
-
strokeLinecap: "round",
|
|
326
|
-
strokeLinejoin: "round",
|
|
327
|
-
width: "1em",
|
|
328
|
-
height: "1em"
|
|
329
|
-
}, props), _g$20 || (_g$20 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
330
|
-
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
331
|
-
stroke: "currentColor"
|
|
332
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
333
|
-
d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
|
|
334
|
-
}))), _defs$1f || (_defs$1f = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
335
|
-
id: "error_svg__clip0_8_5411"
|
|
336
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
337
|
-
fill: "currentColor",
|
|
338
|
-
d: "M0 0h16v16H0z"
|
|
339
|
-
})))));
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
var _path$1u;
|
|
343
|
-
|
|
344
|
-
function _extends$3v() { _extends$3v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3v.apply(this, arguments); }
|
|
345
|
-
|
|
346
|
-
function SvgWarning(props) {
|
|
347
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3v({
|
|
348
|
-
viewBox: "0 0 16 16",
|
|
349
|
-
fill: "none",
|
|
350
|
-
strokeLinecap: "round",
|
|
351
|
-
strokeLinejoin: "round",
|
|
352
|
-
width: "1em",
|
|
353
|
-
height: "1em"
|
|
354
|
-
}, props), _path$1u || (_path$1u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
355
|
-
d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
|
|
356
|
-
stroke: "currentColor"
|
|
357
|
-
})));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
var useIconStyles = core.makeStyles(function (_a) {
|
|
361
|
-
var spacing = _a.spacing, palette = _a.palette;
|
|
362
|
-
var getFontSize = function (_a) {
|
|
363
|
-
var size = _a.size;
|
|
364
|
-
var sizes = {
|
|
365
|
-
inherit: 'inherit',
|
|
366
|
-
small: spacing(1.5),
|
|
367
|
-
medium: spacing(2),
|
|
368
|
-
large: spacing(2.5),
|
|
369
|
-
'extra-large': spacing(3),
|
|
370
|
-
};
|
|
371
|
-
return size ? sizes[size] : 'inherit';
|
|
372
|
-
};
|
|
373
|
-
var getColor = function (props) {
|
|
374
|
-
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
375
|
-
var value = 'inherit';
|
|
376
|
-
if (props.color) {
|
|
377
|
-
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
378
|
-
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
379
|
-
// @ts-expect-error - todo.
|
|
380
|
-
value = palette[color][variant];
|
|
381
|
-
}
|
|
382
|
-
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
383
|
-
value = props.color;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return value;
|
|
387
|
-
};
|
|
388
|
-
return {
|
|
389
|
-
root: {
|
|
390
|
-
color: getColor,
|
|
391
|
-
fontSize: getFontSize,
|
|
392
|
-
strokeWidth: '1.3px',
|
|
393
|
-
},
|
|
394
|
-
};
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
var classnames = {exports: {}};
|
|
398
|
-
|
|
399
|
-
/*!
|
|
400
|
-
Copyright (c) 2018 Jed Watson.
|
|
401
|
-
Licensed under the MIT License (MIT), see
|
|
402
|
-
http://jedwatson.github.io/classnames
|
|
403
|
-
*/
|
|
404
|
-
|
|
405
|
-
(function (module) {
|
|
406
|
-
/* global define */
|
|
407
|
-
|
|
408
|
-
(function () {
|
|
409
|
-
|
|
410
|
-
var hasOwn = {}.hasOwnProperty;
|
|
411
|
-
|
|
412
|
-
function classNames() {
|
|
413
|
-
var classes = [];
|
|
414
|
-
|
|
415
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
416
|
-
var arg = arguments[i];
|
|
417
|
-
if (!arg) continue;
|
|
418
|
-
|
|
419
|
-
var argType = typeof arg;
|
|
420
|
-
|
|
421
|
-
if (argType === 'string' || argType === 'number') {
|
|
422
|
-
classes.push(arg);
|
|
423
|
-
} else if (Array.isArray(arg)) {
|
|
424
|
-
if (arg.length) {
|
|
425
|
-
var inner = classNames.apply(null, arg);
|
|
426
|
-
if (inner) {
|
|
427
|
-
classes.push(inner);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
} else if (argType === 'object') {
|
|
431
|
-
if (arg.toString === Object.prototype.toString) {
|
|
432
|
-
for (var key in arg) {
|
|
433
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
434
|
-
classes.push(key);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
} else {
|
|
438
|
-
classes.push(arg.toString());
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
return classes.join(' ');
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
if (module.exports) {
|
|
447
|
-
classNames.default = classNames;
|
|
448
|
-
module.exports = classNames;
|
|
449
|
-
} else {
|
|
450
|
-
window.classNames = classNames;
|
|
451
|
-
}
|
|
452
|
-
}());
|
|
453
|
-
}(classnames));
|
|
454
|
-
|
|
455
|
-
var classNames = classnames.exports;
|
|
456
|
-
|
|
457
|
-
var iconStaticClassName = 'pop-icon';
|
|
458
|
-
var Icon = function (props) {
|
|
459
|
-
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
460
|
-
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
461
|
-
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
462
|
-
restProps['aria-hidden'] = true;
|
|
463
|
-
}
|
|
464
|
-
var classes = useIconStyles(props);
|
|
465
|
-
var isValid = true;
|
|
466
|
-
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
467
|
-
isValid = false;
|
|
468
|
-
}
|
|
469
|
-
return isValid
|
|
470
|
-
? React.createElement(icon, __assign({ className: classNames([classes.root, iconStaticClassName, className]) }, restProps))
|
|
471
|
-
: null;
|
|
472
|
-
};
|
|
473
|
-
Icon.defaultProps = {
|
|
474
|
-
size: 'inherit',
|
|
475
|
-
color: 'inherit',
|
|
476
|
-
};
|
|
76
|
+
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
77
|
+
value = props.color;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return value;
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
root: {
|
|
84
|
+
color: getColor,
|
|
85
|
+
fontSize: getFontSize,
|
|
86
|
+
strokeWidth: '1.3px',
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
var iconStaticClassName = 'pop-icon';
|
|
92
|
+
var Icon = function (props) {
|
|
93
|
+
var icon = props.icon, className = props.className, restProps = tslib.__rest(props, ["icon", "className"]);
|
|
94
|
+
var hasAccessibleAttr = Boolean(restProps['aria-describedby'] || restProps['aria-label']);
|
|
95
|
+
if (!hasAccessibleAttr && restProps['aria-hidden'] === undefined) {
|
|
96
|
+
restProps['aria-hidden'] = true;
|
|
97
|
+
}
|
|
98
|
+
var classes = useIconStyles(props);
|
|
99
|
+
var isValid = true;
|
|
100
|
+
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
101
|
+
isValid = false;
|
|
102
|
+
}
|
|
103
|
+
return isValid
|
|
104
|
+
? React.createElement(icon, tslib.__assign({ className: classNames([classes.root, iconStaticClassName, className]) }, restProps))
|
|
105
|
+
: null;
|
|
106
|
+
};
|
|
107
|
+
Icon.defaultProps = {
|
|
108
|
+
size: 'inherit',
|
|
109
|
+
color: 'inherit',
|
|
110
|
+
};
|
|
477
111
|
Icon.displayName = 'Icon';
|
|
478
112
|
|
|
479
|
-
var LoadingStatus;
|
|
480
|
-
(function (LoadingStatus) {
|
|
481
|
-
LoadingStatus["ERROR"] = "ERROR";
|
|
482
|
-
LoadingStatus["LOADED"] = "LOADED";
|
|
483
|
-
LoadingStatus["PENDING"] = "PENDING";
|
|
484
|
-
})(LoadingStatus || (LoadingStatus = {}));
|
|
485
|
-
var useImgProps = function (avatarProps) {
|
|
486
|
-
var _a =
|
|
487
|
-
var imgProps = __assign(__assign({}, avatarProps.imgProps), { onLoad: function (event) {
|
|
488
|
-
var _a, _b;
|
|
489
|
-
setLoaded(LoadingStatus.LOADED);
|
|
490
|
-
(_b = (_a = avatarProps.imgProps) === null || _a === void 0 ? void 0 : _a.onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
491
|
-
} });
|
|
492
|
-
return { imgProps: imgProps, loaded: loaded };
|
|
113
|
+
var LoadingStatus;
|
|
114
|
+
(function (LoadingStatus) {
|
|
115
|
+
LoadingStatus["ERROR"] = "ERROR";
|
|
116
|
+
LoadingStatus["LOADED"] = "LOADED";
|
|
117
|
+
LoadingStatus["PENDING"] = "PENDING";
|
|
118
|
+
})(LoadingStatus || (LoadingStatus = {}));
|
|
119
|
+
var useImgProps = function (avatarProps) {
|
|
120
|
+
var _a = React.useState(LoadingStatus.PENDING), loaded = _a[0], setLoaded = _a[1];
|
|
121
|
+
var imgProps = tslib.__assign(tslib.__assign({}, avatarProps.imgProps), { onLoad: function (event) {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
setLoaded(LoadingStatus.LOADED);
|
|
124
|
+
(_b = (_a = avatarProps.imgProps) === null || _a === void 0 ? void 0 : _a.onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
125
|
+
} });
|
|
126
|
+
return { imgProps: imgProps, loaded: loaded };
|
|
493
127
|
};
|
|
494
128
|
|
|
495
|
-
var getAvatarDimensions = function (theme, props) {
|
|
496
|
-
var factors = {
|
|
497
|
-
'extra-small': 3,
|
|
498
|
-
small: 4,
|
|
499
|
-
medium: 5,
|
|
500
|
-
large: 6,
|
|
501
|
-
'extra-large': 12.5,
|
|
502
|
-
};
|
|
503
|
-
var sizeFactor = factors[props.size || 'medium'];
|
|
504
|
-
return theme.spacing(sizeFactor);
|
|
505
|
-
};
|
|
506
|
-
var getAvatarFontSize = function (props) {
|
|
507
|
-
var fontSizes = {
|
|
508
|
-
'extra-small': '0.75rem',
|
|
509
|
-
small: '1rem',
|
|
510
|
-
medium: '1rem',
|
|
511
|
-
large: '1.25rem',
|
|
512
|
-
'extra-large': '3.5rem',
|
|
513
|
-
};
|
|
514
|
-
return fontSizes[props.size];
|
|
515
|
-
};
|
|
516
|
-
var useAvatarStyles = styles.makeStyles(function (theme) { return ({
|
|
517
|
-
root: function (props) { return ({
|
|
518
|
-
width: getAvatarDimensions(theme, props),
|
|
519
|
-
height: getAvatarDimensions(theme, props),
|
|
520
|
-
fontSize: getAvatarFontSize(props),
|
|
521
|
-
backgroundColor: props.loaded === LoadingStatus.LOADED ? 'transparent' : props.background,
|
|
522
|
-
color: theme.palette.getContrastText(props.background),
|
|
523
|
-
objectFit: props.fit,
|
|
524
|
-
}); },
|
|
525
|
-
fallback: function (props) { return ({
|
|
526
|
-
fontSize: getAvatarDimensions(theme, props),
|
|
527
|
-
strokeWidth: 1,
|
|
528
|
-
}); },
|
|
129
|
+
var getAvatarDimensions = function (theme, props) {
|
|
130
|
+
var factors = {
|
|
131
|
+
'extra-small': 3,
|
|
132
|
+
small: 4,
|
|
133
|
+
medium: 5,
|
|
134
|
+
large: 6,
|
|
135
|
+
'extra-large': 12.5,
|
|
136
|
+
};
|
|
137
|
+
var sizeFactor = factors[props.size || 'medium'];
|
|
138
|
+
return theme.spacing(sizeFactor);
|
|
139
|
+
};
|
|
140
|
+
var getAvatarFontSize = function (props) {
|
|
141
|
+
var fontSizes = {
|
|
142
|
+
'extra-small': '0.75rem',
|
|
143
|
+
small: '1rem',
|
|
144
|
+
medium: '1rem',
|
|
145
|
+
large: '1.25rem',
|
|
146
|
+
'extra-large': '3.5rem',
|
|
147
|
+
};
|
|
148
|
+
return fontSizes[props.size];
|
|
149
|
+
};
|
|
150
|
+
var useAvatarStyles = styles.makeStyles(function (theme) { return ({
|
|
151
|
+
root: function (props) { return ({
|
|
152
|
+
width: getAvatarDimensions(theme, props),
|
|
153
|
+
height: getAvatarDimensions(theme, props),
|
|
154
|
+
fontSize: getAvatarFontSize(props),
|
|
155
|
+
backgroundColor: props.loaded === LoadingStatus.LOADED ? 'transparent' : props.background,
|
|
156
|
+
color: theme.palette.getContrastText(props.background),
|
|
157
|
+
objectFit: props.fit,
|
|
158
|
+
}); },
|
|
159
|
+
fallback: function (props) { return ({
|
|
160
|
+
fontSize: getAvatarDimensions(theme, props),
|
|
161
|
+
strokeWidth: 1,
|
|
162
|
+
}); },
|
|
529
163
|
}); });
|
|
530
164
|
|
|
531
|
-
var Avatar = React.forwardRef(function (props, ref) {
|
|
532
|
-
var children = props.children, src = props.src, alt = props.alt, fallback = props.fallback, muiProps = __rest(props, ["children", "src", "alt", "fallback"]);
|
|
533
|
-
var _a = useImgProps(props), imgProps = _a.imgProps, loaded = _a.loaded;
|
|
534
|
-
var classes = useAvatarStyles(__assign(__assign({}, props), { loaded: loaded }));
|
|
535
|
-
var displayAltTextFallback = src && alt;
|
|
536
|
-
var displayNoFallback = fallback === 'none';
|
|
537
|
-
var displayCustomFallback = fallback !== 'none' && typeof fallback !== 'undefined';
|
|
538
|
-
var Fallback;
|
|
539
|
-
if (displayAltTextFallback) {
|
|
540
|
-
Fallback = null;
|
|
541
|
-
}
|
|
542
|
-
else if (displayNoFallback) {
|
|
543
|
-
Fallback = ' ';
|
|
544
|
-
}
|
|
545
|
-
else if (displayCustomFallback) {
|
|
546
|
-
Fallback = fallback;
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
Fallback =
|
|
550
|
-
}
|
|
551
|
-
return (
|
|
552
|
-
});
|
|
553
|
-
Avatar.defaultProps = {
|
|
554
|
-
size: 'medium',
|
|
555
|
-
fit: 'cover',
|
|
556
|
-
background: '#E0E0E0',
|
|
557
|
-
};
|
|
165
|
+
var Avatar = React.forwardRef(function (props, ref) {
|
|
166
|
+
var children = props.children, src = props.src, alt = props.alt, fallback = props.fallback, muiProps = tslib.__rest(props, ["children", "src", "alt", "fallback"]);
|
|
167
|
+
var _a = useImgProps(props), imgProps = _a.imgProps, loaded = _a.loaded;
|
|
168
|
+
var classes = useAvatarStyles(tslib.__assign(tslib.__assign({}, props), { loaded: loaded }));
|
|
169
|
+
var displayAltTextFallback = src && alt;
|
|
170
|
+
var displayNoFallback = fallback === 'none';
|
|
171
|
+
var displayCustomFallback = fallback !== 'none' && typeof fallback !== 'undefined';
|
|
172
|
+
var Fallback;
|
|
173
|
+
if (displayAltTextFallback) {
|
|
174
|
+
Fallback = null;
|
|
175
|
+
}
|
|
176
|
+
else if (displayNoFallback) {
|
|
177
|
+
Fallback = ' ';
|
|
178
|
+
}
|
|
179
|
+
else if (displayCustomFallback) {
|
|
180
|
+
Fallback = fallback;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
Fallback = React.createElement(Icon, { icon: webIcons.User, className: classes.fallback });
|
|
184
|
+
}
|
|
185
|
+
return (React.createElement(MuiAvatar, tslib.__assign({ ref: ref, classes: { root: classes.root }, src: src, alt: alt }, muiProps, { imgProps: imgProps }), children || Fallback));
|
|
186
|
+
});
|
|
187
|
+
Avatar.defaultProps = {
|
|
188
|
+
size: 'medium',
|
|
189
|
+
fit: 'cover',
|
|
190
|
+
background: '#E0E0E0',
|
|
191
|
+
};
|
|
558
192
|
Avatar.displayName = 'Avatar';
|
|
559
193
|
|
|
560
|
-
var useBrowserSilhouetteStyles = styles.makeStyles(function (theme) { return ({
|
|
561
|
-
circle: {
|
|
562
|
-
backgroundColor: theme.palette.grey[300],
|
|
563
|
-
borderRadius: '50%',
|
|
564
|
-
height: theme.spacing(0.65),
|
|
565
|
-
width: theme.spacing(0.65),
|
|
566
|
-
margin: theme.spacing(1) + "px 0 " + theme.spacing(1) + "px " + theme.spacing(1) + "px",
|
|
567
|
-
},
|
|
568
|
-
container: {
|
|
569
|
-
border: "1px solid " + theme.palette.secondary.light,
|
|
570
|
-
borderRadius: theme.spacing(0.5),
|
|
571
|
-
flexGrow: 1,
|
|
572
|
-
},
|
|
573
|
-
titleBar: {
|
|
574
|
-
display: 'flex',
|
|
575
|
-
flexDirection: 'row',
|
|
576
|
-
borderBottom: "1px solid " + theme.palette.secondary.light,
|
|
577
|
-
width: '100%',
|
|
578
|
-
},
|
|
194
|
+
var useBrowserSilhouetteStyles = styles.makeStyles(function (theme) { return ({
|
|
195
|
+
circle: {
|
|
196
|
+
backgroundColor: theme.palette.grey[300],
|
|
197
|
+
borderRadius: '50%',
|
|
198
|
+
height: theme.spacing(0.65),
|
|
199
|
+
width: theme.spacing(0.65),
|
|
200
|
+
margin: theme.spacing(1) + "px 0 " + theme.spacing(1) + "px " + theme.spacing(1) + "px",
|
|
201
|
+
},
|
|
202
|
+
container: {
|
|
203
|
+
border: "1px solid " + theme.palette.secondary.light,
|
|
204
|
+
borderRadius: theme.spacing(0.5),
|
|
205
|
+
flexGrow: 1,
|
|
206
|
+
},
|
|
207
|
+
titleBar: {
|
|
208
|
+
display: 'flex',
|
|
209
|
+
flexDirection: 'row',
|
|
210
|
+
borderBottom: "1px solid " + theme.palette.secondary.light,
|
|
211
|
+
width: '100%',
|
|
212
|
+
},
|
|
579
213
|
}); });
|
|
580
214
|
|
|
581
|
-
var BrowserSilhouette = function (_a) {
|
|
582
|
-
var children = _a.children;
|
|
583
|
-
var classes = useBrowserSilhouetteStyles();
|
|
584
|
-
return (
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
children)));
|
|
215
|
+
var BrowserSilhouette = function (_a) {
|
|
216
|
+
var children = _a.children;
|
|
217
|
+
var classes = useBrowserSilhouetteStyles();
|
|
218
|
+
return (React.createElement(core.Box, { display: "flex" },
|
|
219
|
+
React.createElement("div", { className: classes.container },
|
|
220
|
+
React.createElement("div", { className: classes.titleBar },
|
|
221
|
+
React.createElement("div", { className: classes.circle }),
|
|
222
|
+
React.createElement("div", { className: classes.circle }),
|
|
223
|
+
React.createElement("div", { className: classes.circle })),
|
|
224
|
+
children)));
|
|
591
225
|
};
|
|
592
226
|
|
|
593
|
-
var useButtonStyles = styles.makeStyles(function () { return ({
|
|
594
|
-
root: {
|
|
595
|
-
minWidth: 'unset',
|
|
596
|
-
},
|
|
597
|
-
label: {
|
|
598
|
-
textTransform: function (_a) {
|
|
599
|
-
var textTransform = _a.textTransform;
|
|
600
|
-
return textTransform;
|
|
601
|
-
},
|
|
602
|
-
},
|
|
227
|
+
var useButtonStyles = styles.makeStyles(function () { return ({
|
|
228
|
+
root: {
|
|
229
|
+
minWidth: 'unset',
|
|
230
|
+
},
|
|
231
|
+
label: {
|
|
232
|
+
textTransform: function (_a) {
|
|
233
|
+
var textTransform = _a.textTransform;
|
|
234
|
+
return textTransform;
|
|
235
|
+
},
|
|
236
|
+
},
|
|
603
237
|
}); });
|
|
604
238
|
|
|
605
|
-
var Button = function (props) {
|
|
606
|
-
props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, ButtonRef = props.ButtonRef, muiProps = __rest(props, ["textTransform", "loading", "classes", "className", "ButtonRef"]);
|
|
607
|
-
props.classes; var styleProps = __rest(props, ["classes"]);
|
|
608
|
-
var classes = useButtonStyles(styleProps);
|
|
609
|
-
var typography = styles.useTheme().typography;
|
|
610
|
-
var loadingIndicator = {
|
|
611
|
-
startIcon:
|
|
612
|
-
disabled: true,
|
|
613
|
-
};
|
|
614
|
-
return (
|
|
615
|
-
};
|
|
239
|
+
var Button = function (props) {
|
|
240
|
+
props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, ButtonRef = props.ButtonRef, muiProps = tslib.__rest(props, ["textTransform", "loading", "classes", "className", "ButtonRef"]);
|
|
241
|
+
props.classes; var styleProps = tslib.__rest(props, ["classes"]);
|
|
242
|
+
var classes = useButtonStyles(styleProps);
|
|
243
|
+
var typography = styles.useTheme().typography;
|
|
244
|
+
var loadingIndicator = {
|
|
245
|
+
startIcon: React.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
|
|
246
|
+
disabled: true,
|
|
247
|
+
};
|
|
248
|
+
return (React.createElement(MuiButton, tslib.__assign({ ref: ButtonRef, classes: tslib.__assign(tslib.__assign({}, classes), classesOverride), className: classNames([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
|
|
249
|
+
};
|
|
616
250
|
Button.displayName = 'Button';
|
|
617
251
|
|
|
618
|
-
var Checkbox = React.forwardRef(function (props, ref) {
|
|
619
|
-
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
|
|
620
|
-
var control =
|
|
621
|
-
return label ? (
|
|
622
|
-
});
|
|
252
|
+
var Checkbox = React.forwardRef(function (props, ref) {
|
|
253
|
+
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = tslib.__rest(props, ["label", "disabled", "LabelProps"]);
|
|
254
|
+
var control = React.createElement(MuiCheckbox, tslib.__assign({ disabled: label ? undefined : disabled }, muiProps));
|
|
255
|
+
return label ? (React.createElement(FormControlLabel, tslib.__assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
256
|
+
});
|
|
623
257
|
Checkbox.displayName = 'Checkbox';
|
|
624
258
|
|
|
625
|
-
var getBackground = function (theme) { return function (props) {
|
|
626
|
-
var variant = props.variant, severity = props.severity;
|
|
627
|
-
var background = theme.palette.grey[100];
|
|
628
|
-
var backgrounds = {
|
|
629
|
-
outlined: 'none',
|
|
630
|
-
error: 'error.main',
|
|
631
|
-
warning: 'warning.main',
|
|
632
|
-
info: 'info.light',
|
|
633
|
-
success: 'success.light',
|
|
634
|
-
};
|
|
635
|
-
if (variant === 'outlined') {
|
|
636
|
-
background = backgrounds[variant];
|
|
637
|
-
}
|
|
638
|
-
else if (severity) {
|
|
639
|
-
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
640
|
-
// @ts-expect-error - todo.
|
|
641
|
-
background = theme.palette[color][colorVariant];
|
|
642
|
-
}
|
|
643
|
-
return background;
|
|
644
|
-
}; };
|
|
645
|
-
var getColor = function (theme) { return function (props) {
|
|
646
|
-
var variant = props.variant, severity = props.severity;
|
|
647
|
-
var textColor;
|
|
648
|
-
if (variant === 'outlined' && severity) {
|
|
649
|
-
var textColors = {
|
|
650
|
-
error: theme.palette.error.main,
|
|
651
|
-
info: theme.palette.info.main,
|
|
652
|
-
warning: theme.palette.warning.dark,
|
|
653
|
-
success: theme.palette.success.dark,
|
|
654
|
-
};
|
|
655
|
-
textColor = textColors[severity];
|
|
656
|
-
}
|
|
657
|
-
else if (variant === 'outlined' && !severity) {
|
|
658
|
-
textColor = theme.palette.grey[700];
|
|
659
|
-
}
|
|
660
|
-
else if ((variant === 'default' || variant === undefined) && severity) {
|
|
661
|
-
var textColors = {
|
|
662
|
-
error: theme.palette.common.white,
|
|
663
|
-
info: theme.palette.secondary.main,
|
|
664
|
-
warning: theme.palette.secondary.main,
|
|
665
|
-
success: theme.palette.secondary.main,
|
|
666
|
-
};
|
|
667
|
-
textColor = textColors[severity];
|
|
668
|
-
}
|
|
669
|
-
return textColor;
|
|
670
|
-
}; };
|
|
671
|
-
var getBorder = function (theme) { return function (props) {
|
|
672
|
-
var variant = props.variant, severity = props.severity;
|
|
673
|
-
var borderColor;
|
|
674
|
-
if (variant === 'outlined' && severity) {
|
|
675
|
-
var borderColors = {
|
|
676
|
-
error: theme.palette.error.main,
|
|
677
|
-
info: theme.palette.info.main,
|
|
678
|
-
warning: theme.palette.warning.dark,
|
|
679
|
-
success: theme.palette.success.dark,
|
|
680
|
-
};
|
|
681
|
-
borderColor = borderColors[severity];
|
|
682
|
-
}
|
|
683
|
-
return borderColor;
|
|
684
|
-
}; };
|
|
685
|
-
// using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on
|
|
686
|
-
// any component-specific props
|
|
687
|
-
var useChipStyles = styles.makeStyles(function (theme) { return ({
|
|
688
|
-
root: {
|
|
689
|
-
background: getBackground(theme),
|
|
690
|
-
color: getColor(theme),
|
|
691
|
-
borderColor: getBorder(theme),
|
|
692
|
-
borderRadius: theme.spacing(0.5),
|
|
693
|
-
},
|
|
694
|
-
icon: {
|
|
695
|
-
color: 'inherit',
|
|
696
|
-
height: theme.spacing(2),
|
|
697
|
-
width: theme.spacing(2),
|
|
698
|
-
},
|
|
699
|
-
deleteIcon: {
|
|
700
|
-
color: theme.palette.grey[500],
|
|
701
|
-
},
|
|
259
|
+
var getBackground = function (theme) { return function (props) {
|
|
260
|
+
var variant = props.variant, severity = props.severity;
|
|
261
|
+
var background = theme.palette.grey[100];
|
|
262
|
+
var backgrounds = {
|
|
263
|
+
outlined: 'none',
|
|
264
|
+
error: 'error.main',
|
|
265
|
+
warning: 'warning.main',
|
|
266
|
+
info: 'info.light',
|
|
267
|
+
success: 'success.light',
|
|
268
|
+
};
|
|
269
|
+
if (variant === 'outlined') {
|
|
270
|
+
background = backgrounds[variant];
|
|
271
|
+
}
|
|
272
|
+
else if (severity) {
|
|
273
|
+
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
274
|
+
// @ts-expect-error - todo.
|
|
275
|
+
background = theme.palette[color][colorVariant];
|
|
276
|
+
}
|
|
277
|
+
return background;
|
|
278
|
+
}; };
|
|
279
|
+
var getColor = function (theme) { return function (props) {
|
|
280
|
+
var variant = props.variant, severity = props.severity;
|
|
281
|
+
var textColor;
|
|
282
|
+
if (variant === 'outlined' && severity) {
|
|
283
|
+
var textColors = {
|
|
284
|
+
error: theme.palette.error.main,
|
|
285
|
+
info: theme.palette.info.main,
|
|
286
|
+
warning: theme.palette.warning.dark,
|
|
287
|
+
success: theme.palette.success.dark,
|
|
288
|
+
};
|
|
289
|
+
textColor = textColors[severity];
|
|
290
|
+
}
|
|
291
|
+
else if (variant === 'outlined' && !severity) {
|
|
292
|
+
textColor = theme.palette.grey[700];
|
|
293
|
+
}
|
|
294
|
+
else if ((variant === 'default' || variant === undefined) && severity) {
|
|
295
|
+
var textColors = {
|
|
296
|
+
error: theme.palette.common.white,
|
|
297
|
+
info: theme.palette.secondary.main,
|
|
298
|
+
warning: theme.palette.secondary.main,
|
|
299
|
+
success: theme.palette.secondary.main,
|
|
300
|
+
};
|
|
301
|
+
textColor = textColors[severity];
|
|
302
|
+
}
|
|
303
|
+
return textColor;
|
|
304
|
+
}; };
|
|
305
|
+
var getBorder = function (theme) { return function (props) {
|
|
306
|
+
var variant = props.variant, severity = props.severity;
|
|
307
|
+
var borderColor;
|
|
308
|
+
if (variant === 'outlined' && severity) {
|
|
309
|
+
var borderColors = {
|
|
310
|
+
error: theme.palette.error.main,
|
|
311
|
+
info: theme.palette.info.main,
|
|
312
|
+
warning: theme.palette.warning.dark,
|
|
313
|
+
success: theme.palette.success.dark,
|
|
314
|
+
};
|
|
315
|
+
borderColor = borderColors[severity];
|
|
316
|
+
}
|
|
317
|
+
return borderColor;
|
|
318
|
+
}; };
|
|
319
|
+
// using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on
|
|
320
|
+
// any component-specific props
|
|
321
|
+
var useChipStyles = styles.makeStyles(function (theme) { return ({
|
|
322
|
+
root: {
|
|
323
|
+
background: getBackground(theme),
|
|
324
|
+
color: getColor(theme),
|
|
325
|
+
borderColor: getBorder(theme),
|
|
326
|
+
borderRadius: theme.spacing(0.5),
|
|
327
|
+
},
|
|
328
|
+
icon: {
|
|
329
|
+
color: 'inherit',
|
|
330
|
+
height: theme.spacing(2),
|
|
331
|
+
width: theme.spacing(2),
|
|
332
|
+
},
|
|
333
|
+
deleteIcon: {
|
|
334
|
+
color: theme.palette.grey[500],
|
|
335
|
+
},
|
|
702
336
|
}); });
|
|
703
337
|
|
|
704
|
-
var IconDictionary = {
|
|
705
|
-
error:
|
|
706
|
-
info:
|
|
707
|
-
success:
|
|
708
|
-
warning:
|
|
709
|
-
};
|
|
710
|
-
var Chip = function (props) {
|
|
711
|
-
var severity = props.severity, restProps = __rest(props, ["severity"]);
|
|
712
|
-
var classes = useChipStyles(props);
|
|
713
|
-
var icon = severity ?
|
|
714
|
-
var deleteIcon =
|
|
715
|
-
return
|
|
716
|
-
};
|
|
338
|
+
var IconDictionary = {
|
|
339
|
+
error: webIcons.Error,
|
|
340
|
+
info: webIcons.Info,
|
|
341
|
+
success: webIcons.CheckCircle,
|
|
342
|
+
warning: webIcons.Warning,
|
|
343
|
+
};
|
|
344
|
+
var Chip = function (props) {
|
|
345
|
+
var severity = props.severity, restProps = tslib.__rest(props, ["severity"]);
|
|
346
|
+
var classes = useChipStyles(props);
|
|
347
|
+
var icon = severity ? React.createElement(IconDictionary[severity]) : undefined;
|
|
348
|
+
var deleteIcon = React.createElement(webIcons.XCircle);
|
|
349
|
+
return React.createElement(MuiChip, tslib.__assign({ classes: classes, icon: icon, deleteIcon: deleteIcon }, restProps));
|
|
350
|
+
};
|
|
717
351
|
Chip.displayName = 'Chip';
|
|
718
352
|
|
|
719
|
-
var defaultTypographyProps = {
|
|
720
|
-
variant: 'body1',
|
|
353
|
+
var defaultTypographyProps = {
|
|
354
|
+
variant: 'body1',
|
|
721
355
|
};
|
|
722
356
|
|
|
723
|
-
var weights = {
|
|
724
|
-
regular: 400,
|
|
725
|
-
medium: 500,
|
|
726
|
-
'semi-bold': 600,
|
|
727
|
-
bold: 700,
|
|
728
|
-
};
|
|
729
|
-
var getCustomColor = function (theme, color) {
|
|
730
|
-
var isCommonColor = color && ['white', 'black'].includes(color);
|
|
731
|
-
var isGreyColor = color && color.match(/^grey\.\d{3}/);
|
|
732
|
-
var isSemanticColor = color && color.match(/(primary|secondary|info|success|error|warning).?(light|dark)?/);
|
|
733
|
-
var isTextColor = color && ['textPrimary', 'textSecondary'].includes(color);
|
|
734
|
-
switch (true) {
|
|
735
|
-
case isCommonColor:
|
|
736
|
-
// @ts-expect-error - todo.
|
|
737
|
-
return theme.palette.common[color];
|
|
738
|
-
case Boolean(isGreyColor):
|
|
739
|
-
var scale = color.split('.')[1];
|
|
740
|
-
// @ts-expect-error - todo.
|
|
741
|
-
return theme.palette.grey[scale] || theme.palette.grey[900];
|
|
742
|
-
case Boolean(isSemanticColor):
|
|
743
|
-
var _a = color.split('.'), paletteKey = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
744
|
-
// @ts-expect-error - todo.
|
|
745
|
-
return theme.palette[paletteKey][variant];
|
|
746
|
-
case isTextColor:
|
|
747
|
-
// @ts-expect-error - todo.
|
|
748
|
-
return theme.palette.text[color.slice(4).toLowerCase()];
|
|
749
|
-
default:
|
|
750
|
-
return undefined;
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
var useTypographyStyles = styles.makeStyles(function (theme) {
|
|
754
|
-
var _a;
|
|
755
|
-
return ({
|
|
756
|
-
root: (_a = {},
|
|
757
|
-
_a["& ." + iconStaticClassName] = {
|
|
758
|
-
position: 'relative',
|
|
759
|
-
top: '0.125em',
|
|
760
|
-
padding: '0 0.125em',
|
|
761
|
-
boxSizing: 'content-box',
|
|
762
|
-
},
|
|
763
|
-
_a.fontFamily = theme.typography.fontFamily,
|
|
764
|
-
_a.fontWeight = function (_a) {
|
|
765
|
-
var variant = _a.variant, weight = _a.weight;
|
|
766
|
-
return (weight ? weights[weight] : theme.typography[variant].fontWeight);
|
|
767
|
-
},
|
|
768
|
-
_a.fontSize = function (_a) {
|
|
769
|
-
var variant = _a.variant;
|
|
770
|
-
return theme.typography[variant].fontSize;
|
|
771
|
-
},
|
|
772
|
-
_a.lineHeight = function (_a) {
|
|
773
|
-
var variant = _a.variant;
|
|
774
|
-
return theme.typography[variant].lineHeight;
|
|
775
|
-
},
|
|
776
|
-
_a.textTransform = function (_a) {
|
|
777
|
-
var variant = _a.variant;
|
|
778
|
-
return theme.typography[variant].textTransform;
|
|
779
|
-
},
|
|
780
|
-
_a.color = function (_a) {
|
|
781
|
-
var color = _a.color, variant = _a.variant;
|
|
782
|
-
return (color && getCustomColor(theme, color)) || theme.typography[variant].color;
|
|
783
|
-
},
|
|
784
|
-
_a),
|
|
785
|
-
caption: {
|
|
786
|
-
display: 'inline',
|
|
787
|
-
},
|
|
788
|
-
overline: {
|
|
789
|
-
display: 'inline',
|
|
790
|
-
},
|
|
791
|
-
});
|
|
792
|
-
});
|
|
793
|
-
|
|
794
|
-
var Typography = function (props) {
|
|
795
|
-
props.weight; props.color; var TypographyRef = props.TypographyRef, restProps = __rest(props, ["weight", "color", "TypographyRef"]);
|
|
796
|
-
var classes = useTypographyStyles(__assign({}, props));
|
|
797
|
-
var variantMapping = { subtitle1: 'p' };
|
|
798
|
-
return
|
|
799
|
-
};
|
|
800
|
-
Typography.displayName = 'Typography';
|
|
357
|
+
var weights = {
|
|
358
|
+
regular: 400,
|
|
359
|
+
medium: 500,
|
|
360
|
+
'semi-bold': 600,
|
|
361
|
+
bold: 700,
|
|
362
|
+
};
|
|
363
|
+
var getCustomColor = function (theme, color) {
|
|
364
|
+
var isCommonColor = color && ['white', 'black'].includes(color);
|
|
365
|
+
var isGreyColor = color && color.match(/^grey\.\d{3}/);
|
|
366
|
+
var isSemanticColor = color && color.match(/(primary|secondary|info|success|error|warning).?(light|dark)?/);
|
|
367
|
+
var isTextColor = color && ['textPrimary', 'textSecondary'].includes(color);
|
|
368
|
+
switch (true) {
|
|
369
|
+
case isCommonColor:
|
|
370
|
+
// @ts-expect-error - todo.
|
|
371
|
+
return theme.palette.common[color];
|
|
372
|
+
case Boolean(isGreyColor):
|
|
373
|
+
var scale = color.split('.')[1];
|
|
374
|
+
// @ts-expect-error - todo.
|
|
375
|
+
return theme.palette.grey[scale] || theme.palette.grey[900];
|
|
376
|
+
case Boolean(isSemanticColor):
|
|
377
|
+
var _a = color.split('.'), paletteKey = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
378
|
+
// @ts-expect-error - todo.
|
|
379
|
+
return theme.palette[paletteKey][variant];
|
|
380
|
+
case isTextColor:
|
|
381
|
+
// @ts-expect-error - todo.
|
|
382
|
+
return theme.palette.text[color.slice(4).toLowerCase()];
|
|
383
|
+
default:
|
|
384
|
+
return undefined;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
var useTypographyStyles = styles.makeStyles(function (theme) {
|
|
388
|
+
var _a;
|
|
389
|
+
return ({
|
|
390
|
+
root: (_a = {},
|
|
391
|
+
_a["& ." + iconStaticClassName] = {
|
|
392
|
+
position: 'relative',
|
|
393
|
+
top: '0.125em',
|
|
394
|
+
padding: '0 0.125em',
|
|
395
|
+
boxSizing: 'content-box',
|
|
396
|
+
},
|
|
397
|
+
_a.fontFamily = theme.typography.fontFamily,
|
|
398
|
+
_a.fontWeight = function (_a) {
|
|
399
|
+
var variant = _a.variant, weight = _a.weight;
|
|
400
|
+
return (weight ? weights[weight] : theme.typography[variant].fontWeight);
|
|
401
|
+
},
|
|
402
|
+
_a.fontSize = function (_a) {
|
|
403
|
+
var variant = _a.variant;
|
|
404
|
+
return theme.typography[variant].fontSize;
|
|
405
|
+
},
|
|
406
|
+
_a.lineHeight = function (_a) {
|
|
407
|
+
var variant = _a.variant;
|
|
408
|
+
return theme.typography[variant].lineHeight;
|
|
409
|
+
},
|
|
410
|
+
_a.textTransform = function (_a) {
|
|
411
|
+
var variant = _a.variant;
|
|
412
|
+
return theme.typography[variant].textTransform;
|
|
413
|
+
},
|
|
414
|
+
_a.color = function (_a) {
|
|
415
|
+
var color = _a.color, variant = _a.variant;
|
|
416
|
+
return (color && getCustomColor(theme, color)) || theme.typography[variant].color;
|
|
417
|
+
},
|
|
418
|
+
_a),
|
|
419
|
+
caption: {
|
|
420
|
+
display: 'inline',
|
|
421
|
+
},
|
|
422
|
+
overline: {
|
|
423
|
+
display: 'inline',
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
var Typography = function (props) {
|
|
429
|
+
props.weight; props.color; var TypographyRef = props.TypographyRef, restProps = tslib.__rest(props, ["weight", "color", "TypographyRef"]);
|
|
430
|
+
var classes = useTypographyStyles(tslib.__assign({}, props));
|
|
431
|
+
var variantMapping = { subtitle1: 'p' };
|
|
432
|
+
return React.createElement(core.Typography, tslib.__assign({ classes: classes, variantMapping: variantMapping, ref: TypographyRef }, restProps));
|
|
433
|
+
};
|
|
434
|
+
Typography.displayName = 'Typography';
|
|
801
435
|
Typography.defaultProps = defaultTypographyProps;
|
|
802
436
|
|
|
803
|
-
var getFadeStop = function (_a, typographyVariant) {
|
|
804
|
-
var typography = _a.typography;
|
|
805
|
-
// @ts-expect-error - todo.
|
|
806
|
-
return !isNaN(Number(typography[typographyVariant].lineHeight))
|
|
807
|
-
? // @ts-expect-error - todo.
|
|
808
|
-
typography[typographyVariant].lineHeight + "rem"
|
|
809
|
-
: // @ts-expect-error - todo.
|
|
810
|
-
typography[typographyVariant].lineHeight;
|
|
811
|
-
};
|
|
812
|
-
var useCollapsibleTextStyles = core.makeStyles(function (theme) { return ({
|
|
813
|
-
overlay: {
|
|
814
|
-
position: 'absolute',
|
|
815
|
-
top: 0,
|
|
816
|
-
left: 0,
|
|
817
|
-
height: '100%',
|
|
818
|
-
width: '100%',
|
|
819
|
-
background: function (props) { return "linear-gradient(to top, white, #FFF0 " + getFadeStop(theme, props.typographyVariant) + ")"; },
|
|
820
|
-
},
|
|
437
|
+
var getFadeStop = function (_a, typographyVariant) {
|
|
438
|
+
var typography = _a.typography;
|
|
439
|
+
// @ts-expect-error - todo.
|
|
440
|
+
return !isNaN(Number(typography[typographyVariant].lineHeight))
|
|
441
|
+
? // @ts-expect-error - todo.
|
|
442
|
+
typography[typographyVariant].lineHeight + "rem"
|
|
443
|
+
: // @ts-expect-error - todo.
|
|
444
|
+
typography[typographyVariant].lineHeight;
|
|
445
|
+
};
|
|
446
|
+
var useCollapsibleTextStyles = core.makeStyles(function (theme) { return ({
|
|
447
|
+
overlay: {
|
|
448
|
+
position: 'absolute',
|
|
449
|
+
top: 0,
|
|
450
|
+
left: 0,
|
|
451
|
+
height: '100%',
|
|
452
|
+
width: '100%',
|
|
453
|
+
background: function (props) { return "linear-gradient(to top, white, #FFF0 " + getFadeStop(theme, props.typographyVariant) + ")"; },
|
|
454
|
+
},
|
|
821
455
|
}); });
|
|
822
456
|
|
|
823
|
-
var CollapsibleText = function (props) {
|
|
824
|
-
var text = props.text, open = props.open, _a = props.previewLines, previewLines = _a === void 0 ? 2 : _a, _b = props.typographyVariant, typographyVariant = _b === void 0 ? 'body1' : _b; props.collapseState; var restProps = __rest(props, ["text", "open", "previewLines", "typographyVariant", "collapseState"]);
|
|
825
|
-
var collapseState = React.useState(false);
|
|
826
|
-
var typographyRef = React.useRef(null);
|
|
827
|
-
var classes = useCollapsibleTextStyles(__assign(__assign({}, props), { previewLines: previewLines, typographyVariant: typographyVariant }));
|
|
828
|
-
var theme = core.useTheme();
|
|
829
|
-
var _c = props.collapseState ? props.collapseState : collapseState, collapsible = _c[0], setCollapsible = _c[1];
|
|
830
|
-
var typographyEntryLineHeightRem = parseFloat(theme.typography[typographyVariant].lineHeight);
|
|
831
|
-
var collapsedSizeRem = previewLines * typographyEntryLineHeightRem;
|
|
832
|
-
var documentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
833
|
-
var collapsedSizePx = collapsedSizeRem * documentFontSize;
|
|
834
|
-
React.useEffect(function () {
|
|
835
|
-
var typographyNode = typographyRef.current;
|
|
836
|
-
var observer = new ResizeObserver(function (entries) {
|
|
837
|
-
var typographyEntry = entries.find(function (entry) { return entry.target === typographyNode; });
|
|
838
|
-
if (typographyEntry) {
|
|
839
|
-
var typographyEntryHeight = typographyEntry.contentRect.height;
|
|
840
|
-
var isCollapsible = typographyEntryHeight > collapsedSizePx;
|
|
841
|
-
setCollapsible(isCollapsible);
|
|
842
|
-
}
|
|
843
|
-
});
|
|
844
|
-
observer.observe(typographyNode);
|
|
845
|
-
return function () {
|
|
846
|
-
observer.unobserve(typographyNode);
|
|
847
|
-
};
|
|
848
|
-
}, []);
|
|
849
|
-
return (
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
collapsible && !open &&
|
|
457
|
+
var CollapsibleText = function (props) {
|
|
458
|
+
var text = props.text, open = props.open, _a = props.previewLines, previewLines = _a === void 0 ? 2 : _a, _b = props.typographyVariant, typographyVariant = _b === void 0 ? 'body1' : _b; props.collapseState; var restProps = tslib.__rest(props, ["text", "open", "previewLines", "typographyVariant", "collapseState"]);
|
|
459
|
+
var collapseState = React.useState(false);
|
|
460
|
+
var typographyRef = React.useRef(null);
|
|
461
|
+
var classes = useCollapsibleTextStyles(tslib.__assign(tslib.__assign({}, props), { previewLines: previewLines, typographyVariant: typographyVariant }));
|
|
462
|
+
var theme = core.useTheme();
|
|
463
|
+
var _c = props.collapseState ? props.collapseState : collapseState, collapsible = _c[0], setCollapsible = _c[1];
|
|
464
|
+
var typographyEntryLineHeightRem = parseFloat(theme.typography[typographyVariant].lineHeight);
|
|
465
|
+
var collapsedSizeRem = previewLines * typographyEntryLineHeightRem;
|
|
466
|
+
var documentFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
467
|
+
var collapsedSizePx = collapsedSizeRem * documentFontSize;
|
|
468
|
+
React.useEffect(function () {
|
|
469
|
+
var typographyNode = typographyRef.current;
|
|
470
|
+
var observer = new ResizeObserver(function (entries) {
|
|
471
|
+
var typographyEntry = entries.find(function (entry) { return entry.target === typographyNode; });
|
|
472
|
+
if (typographyEntry) {
|
|
473
|
+
var typographyEntryHeight = typographyEntry.contentRect.height;
|
|
474
|
+
var isCollapsible = typographyEntryHeight > collapsedSizePx;
|
|
475
|
+
setCollapsible(isCollapsible);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
observer.observe(typographyNode);
|
|
479
|
+
return function () {
|
|
480
|
+
observer.unobserve(typographyNode);
|
|
481
|
+
};
|
|
482
|
+
}, []);
|
|
483
|
+
return (React.createElement(core.Box, tslib.__assign({ position: "relative", overflow: "hidden" }, restProps),
|
|
484
|
+
React.createElement(Collapse, { in: open, collapsedSize: collapsedSizePx + 'px' },
|
|
485
|
+
React.createElement(Typography, { TypographyRef: typographyRef, variant: typographyVariant }, text)),
|
|
486
|
+
collapsible && !open && React.createElement(core.Box, { className: classes.overlay })));
|
|
853
487
|
};
|
|
854
488
|
|
|
855
|
-
var SemanticColors;
|
|
856
|
-
(function (SemanticColors) {
|
|
857
|
-
SemanticColors["PRIMARY_MAIN"] = "primary.main";
|
|
858
|
-
SemanticColors["PRIMARY_DARK"] = "primary.dark";
|
|
859
|
-
SemanticColors["PRIMARY_LIGHT"] = "primary.light";
|
|
860
|
-
SemanticColors["SECONDARY_MAIN"] = "secondary.main";
|
|
861
|
-
SemanticColors["SECONDARY_DARK"] = "secondary.dark";
|
|
862
|
-
SemanticColors["SECONDARY_LIGHT"] = "secondary.light";
|
|
863
|
-
})(SemanticColors || (SemanticColors = {}));
|
|
864
|
-
var useStyles$5 = core.makeStyles(function (theme) { return ({
|
|
865
|
-
dividerRoot: {
|
|
866
|
-
gap: theme.spacing(2),
|
|
867
|
-
},
|
|
868
|
-
textRoot: {
|
|
869
|
-
color: function (props) {
|
|
870
|
-
var textColor = props.textColor;
|
|
871
|
-
if (Object.values(SemanticColors).includes(textColor)) {
|
|
872
|
-
var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
873
|
-
// @ts-expect-error - todo.
|
|
874
|
-
return theme.palette[semanticColor][shade];
|
|
875
|
-
}
|
|
876
|
-
else if (textColor) {
|
|
877
|
-
return textColor;
|
|
878
|
-
}
|
|
879
|
-
else {
|
|
880
|
-
return 'black';
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
|
-
textTransform: function (props) { return props.textTransform; },
|
|
884
|
-
},
|
|
885
|
-
dividerLine: {
|
|
886
|
-
backgroundColor: function (props) {
|
|
887
|
-
var dividerColor = props.dividerColor;
|
|
888
|
-
if (Object.values(SemanticColors).includes(dividerColor)) {
|
|
889
|
-
var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
890
|
-
// @ts-expect-error - todo.
|
|
891
|
-
return theme.palette[semanticColor][shade];
|
|
892
|
-
}
|
|
893
|
-
else if (dividerColor) {
|
|
894
|
-
return dividerColor;
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
897
|
-
return theme.palette.grey[500];
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
},
|
|
901
|
-
}); });
|
|
902
|
-
var Divider = function (props) {
|
|
903
|
-
var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
|
|
904
|
-
var classes = useStyles$5(props);
|
|
905
|
-
var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
|
|
906
|
-
return (
|
|
907
|
-
|
|
908
|
-
text && (
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
};
|
|
912
|
-
Divider.displayName = 'Divider';
|
|
913
|
-
Divider.defaultProps = {
|
|
914
|
-
textTransform: 'lowercase',
|
|
489
|
+
var SemanticColors;
|
|
490
|
+
(function (SemanticColors) {
|
|
491
|
+
SemanticColors["PRIMARY_MAIN"] = "primary.main";
|
|
492
|
+
SemanticColors["PRIMARY_DARK"] = "primary.dark";
|
|
493
|
+
SemanticColors["PRIMARY_LIGHT"] = "primary.light";
|
|
494
|
+
SemanticColors["SECONDARY_MAIN"] = "secondary.main";
|
|
495
|
+
SemanticColors["SECONDARY_DARK"] = "secondary.dark";
|
|
496
|
+
SemanticColors["SECONDARY_LIGHT"] = "secondary.light";
|
|
497
|
+
})(SemanticColors || (SemanticColors = {}));
|
|
498
|
+
var useStyles$5 = core.makeStyles(function (theme) { return ({
|
|
499
|
+
dividerRoot: {
|
|
500
|
+
gap: theme.spacing(2),
|
|
501
|
+
},
|
|
502
|
+
textRoot: {
|
|
503
|
+
color: function (props) {
|
|
504
|
+
var textColor = props.textColor;
|
|
505
|
+
if (Object.values(SemanticColors).includes(textColor)) {
|
|
506
|
+
var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
507
|
+
// @ts-expect-error - todo.
|
|
508
|
+
return theme.palette[semanticColor][shade];
|
|
509
|
+
}
|
|
510
|
+
else if (textColor) {
|
|
511
|
+
return textColor;
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
return 'black';
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
textTransform: function (props) { return props.textTransform; },
|
|
518
|
+
},
|
|
519
|
+
dividerLine: {
|
|
520
|
+
backgroundColor: function (props) {
|
|
521
|
+
var dividerColor = props.dividerColor;
|
|
522
|
+
if (Object.values(SemanticColors).includes(dividerColor)) {
|
|
523
|
+
var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
524
|
+
// @ts-expect-error - todo.
|
|
525
|
+
return theme.palette[semanticColor][shade];
|
|
526
|
+
}
|
|
527
|
+
else if (dividerColor) {
|
|
528
|
+
return dividerColor;
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
return theme.palette.grey[500];
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
},
|
|
535
|
+
}); });
|
|
536
|
+
var Divider = function (props) {
|
|
537
|
+
var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
|
|
538
|
+
var classes = useStyles$5(props);
|
|
539
|
+
var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
|
|
540
|
+
return (React.createElement(core.Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
|
|
541
|
+
React.createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
|
|
542
|
+
text && (React.createElement(React.Fragment, null,
|
|
543
|
+
React.createElement(Typography, tslib.__assign({ className: classes.textRoot }, TypographyProps), text),
|
|
544
|
+
React.createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
|
|
545
|
+
};
|
|
546
|
+
Divider.displayName = 'Divider';
|
|
547
|
+
Divider.defaultProps = {
|
|
548
|
+
textTransform: 'lowercase',
|
|
915
549
|
};
|
|
916
550
|
|
|
917
|
-
var IconButton = React.forwardRef(function (props, ref) {
|
|
918
|
-
return
|
|
919
|
-
});
|
|
920
|
-
IconButton.displayName = 'IconButton';
|
|
921
|
-
IconButton.defaultProps = {
|
|
922
|
-
color: 'secondary',
|
|
551
|
+
var IconButton = React.forwardRef(function (props, ref) {
|
|
552
|
+
return React.createElement(MuiIconButton, tslib.__assign({ ref: ref }, props));
|
|
553
|
+
});
|
|
554
|
+
IconButton.displayName = 'IconButton';
|
|
555
|
+
IconButton.defaultProps = {
|
|
556
|
+
color: 'secondary',
|
|
923
557
|
};
|
|
924
558
|
|
|
925
|
-
var useLinkStyles = styles.makeStyles(function (theme) { return ({
|
|
926
|
-
root: function (props) {
|
|
927
|
-
var _a;
|
|
928
|
-
return (__assign(__assign({ display: 'flex' }, (props.color === undefined && { color: theme.palette.info.main })), (_a = {}, _a["& ." + iconStaticClassName] = {
|
|
929
|
-
alignSelf: 'center',
|
|
930
|
-
}, _a)));
|
|
931
|
-
},
|
|
559
|
+
var useLinkStyles = styles.makeStyles(function (theme) { return ({
|
|
560
|
+
root: function (props) {
|
|
561
|
+
var _a;
|
|
562
|
+
return (tslib.__assign(tslib.__assign({ display: 'flex' }, (props.color === undefined && { color: theme.palette.info.main })), (_a = {}, _a["& ." + iconStaticClassName] = {
|
|
563
|
+
alignSelf: 'center',
|
|
564
|
+
}, _a)));
|
|
565
|
+
},
|
|
932
566
|
}); });
|
|
933
567
|
|
|
934
|
-
// eslint-disable-next-line react/display-name -- false positive
|
|
935
|
-
var Link = React.forwardRef(function (props, ref) {
|
|
936
|
-
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
937
|
-
var classes = useLinkStyles(props);
|
|
938
|
-
return (
|
|
939
|
-
});
|
|
940
|
-
Link.defaultProps = {
|
|
941
|
-
variant: 'body1',
|
|
942
|
-
};
|
|
568
|
+
// eslint-disable-next-line react/display-name -- false positive
|
|
569
|
+
var Link = React.forwardRef(function (props, ref) {
|
|
570
|
+
var children = props.children, muiProps = tslib.__rest(props, ["children"]);
|
|
571
|
+
var classes = useLinkStyles(props);
|
|
572
|
+
return (React.createElement(core.Link, tslib.__assign({ ref: ref, classes: { root: classes.root } }, muiProps), children));
|
|
573
|
+
});
|
|
574
|
+
Link.defaultProps = {
|
|
575
|
+
variant: 'body1',
|
|
576
|
+
};
|
|
943
577
|
Link.displayName = 'Link';
|
|
944
578
|
|
|
945
|
-
var useStyles$4 = core.makeStyles(function (_a) {
|
|
946
|
-
var spacing = _a.spacing;
|
|
947
|
-
return ({
|
|
948
|
-
root: {
|
|
949
|
-
'&:last-child': {
|
|
950
|
-
marginBottom: 0,
|
|
951
|
-
},
|
|
952
|
-
marginBottom: spacing(4),
|
|
953
|
-
padding: spacing(4),
|
|
954
|
-
},
|
|
955
|
-
});
|
|
956
|
-
});
|
|
957
|
-
var Paper = React.forwardRef(function (props, ref) {
|
|
958
|
-
var legacyStyles = props.legacyStyles, restProps = __rest(props, ["legacyStyles"]);
|
|
959
|
-
var classes = useStyles$4(props);
|
|
960
|
-
return
|
|
961
|
-
});
|
|
962
|
-
Paper.displayName = 'Paper';
|
|
963
|
-
Paper.defaultProps = {
|
|
964
|
-
legacyStyles: false,
|
|
579
|
+
var useStyles$4 = core.makeStyles(function (_a) {
|
|
580
|
+
var spacing = _a.spacing;
|
|
581
|
+
return ({
|
|
582
|
+
root: {
|
|
583
|
+
'&:last-child': {
|
|
584
|
+
marginBottom: 0,
|
|
585
|
+
},
|
|
586
|
+
marginBottom: spacing(4),
|
|
587
|
+
padding: spacing(4),
|
|
588
|
+
},
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
var Paper = React.forwardRef(function (props, ref) {
|
|
592
|
+
var legacyStyles = props.legacyStyles, restProps = tslib.__rest(props, ["legacyStyles"]);
|
|
593
|
+
var classes = useStyles$4(props);
|
|
594
|
+
return React.createElement(core.Paper, tslib.__assign({}, ref, { classes: tslib.__assign({}, (legacyStyles && classes)) }, restProps));
|
|
595
|
+
});
|
|
596
|
+
Paper.displayName = 'Paper';
|
|
597
|
+
Paper.defaultProps = {
|
|
598
|
+
legacyStyles: false,
|
|
965
599
|
};
|
|
966
600
|
|
|
967
|
-
var PaperContent = function (props) {
|
|
968
|
-
var children = props.children;
|
|
969
|
-
return
|
|
601
|
+
var PaperContent = function (props) {
|
|
602
|
+
var children = props.children;
|
|
603
|
+
return React.createElement(core.Box, { padding: 4 }, children);
|
|
970
604
|
};
|
|
971
605
|
|
|
972
|
-
var Radio = React.forwardRef(function (props, ref) {
|
|
973
|
-
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
|
|
974
|
-
var control =
|
|
975
|
-
return label ? (
|
|
976
|
-
});
|
|
606
|
+
var Radio = React.forwardRef(function (props, ref) {
|
|
607
|
+
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = tslib.__rest(props, ["label", "disabled", "LabelProps"]);
|
|
608
|
+
var control = React.createElement(MuiRadio, tslib.__assign({ disabled: label ? undefined : disabled }, muiProps));
|
|
609
|
+
return label ? (React.createElement(FormControlLabel, tslib.__assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
610
|
+
});
|
|
977
611
|
Radio.displayName = 'Radio';
|
|
978
612
|
|
|
979
|
-
var useSplitInputStyles = styles.makeStyles(function () { return ({
|
|
980
|
-
textfield: {
|
|
981
|
-
background: function (props) { return (props.backgroundTransparency ? '#FFFFFF44' : 'none'); },
|
|
982
|
-
borderTopLeftRadius: 4,
|
|
983
|
-
borderBottomLeftRadius: 4,
|
|
984
|
-
'& fieldset': {
|
|
985
|
-
borderRight: 'none',
|
|
986
|
-
borderTopRightRadius: 0,
|
|
987
|
-
borderBottomRightRadius: 0,
|
|
988
|
-
},
|
|
989
|
-
},
|
|
990
|
-
button: {
|
|
991
|
-
borderTopLeftRadius: 0,
|
|
992
|
-
borderBottomLeftRadius: 0,
|
|
993
|
-
alignSelf: 'stretch',
|
|
994
|
-
},
|
|
995
|
-
input: {
|
|
996
|
-
color: function (props) { return props.inputTextColor || 'inherit'; },
|
|
997
|
-
'&$focused fieldset': {
|
|
998
|
-
top: -4,
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
focused: {},
|
|
613
|
+
var useSplitInputStyles = styles.makeStyles(function () { return ({
|
|
614
|
+
textfield: {
|
|
615
|
+
background: function (props) { return (props.backgroundTransparency ? '#FFFFFF44' : 'none'); },
|
|
616
|
+
borderTopLeftRadius: 4,
|
|
617
|
+
borderBottomLeftRadius: 4,
|
|
618
|
+
'& fieldset': {
|
|
619
|
+
borderRight: 'none',
|
|
620
|
+
borderTopRightRadius: 0,
|
|
621
|
+
borderBottomRightRadius: 0,
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
button: {
|
|
625
|
+
borderTopLeftRadius: 0,
|
|
626
|
+
borderBottomLeftRadius: 0,
|
|
627
|
+
alignSelf: 'stretch',
|
|
628
|
+
},
|
|
629
|
+
input: {
|
|
630
|
+
color: function (props) { return props.inputTextColor || 'inherit'; },
|
|
631
|
+
'&$focused fieldset': {
|
|
632
|
+
top: -4,
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
focused: {},
|
|
1002
636
|
}); });
|
|
1003
637
|
|
|
1004
|
-
var SplitInput = function (props) {
|
|
1005
|
-
var buttonLabel = props.buttonLabel, TextFieldProps = props.TextFieldProps, ButtonProps = props.ButtonProps, color = props.color, onChange = props.onChange, onClick = props.onClick;
|
|
1006
|
-
var classes = useSplitInputStyles(props);
|
|
1007
|
-
return (
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
};
|
|
1011
|
-
SplitInput.displayName = 'SplitInput';
|
|
1012
|
-
SplitInput.defaultProps = {
|
|
1013
|
-
backgroundTransparency: true,
|
|
1014
|
-
color: 'primary',
|
|
638
|
+
var SplitInput = function (props) {
|
|
639
|
+
var buttonLabel = props.buttonLabel, TextFieldProps = props.TextFieldProps, ButtonProps = props.ButtonProps, color = props.color, onChange = props.onChange, onClick = props.onClick;
|
|
640
|
+
var classes = useSplitInputStyles(props);
|
|
641
|
+
return (React.createElement(core.Box, { display: "flex" },
|
|
642
|
+
React.createElement(TextField, tslib.__assign({ classes: { root: classes.textfield }, InputProps: { classes: { root: classes.input, focused: classes.focused } }, color: color, variant: "outlined", onChange: onChange }, TextFieldProps)),
|
|
643
|
+
React.createElement(Button, tslib.__assign({ classes: { root: classes.button }, disableElevation: true, color: color, variant: "contained", onClick: onClick }, ButtonProps), buttonLabel)));
|
|
644
|
+
};
|
|
645
|
+
SplitInput.displayName = 'SplitInput';
|
|
646
|
+
SplitInput.defaultProps = {
|
|
647
|
+
backgroundTransparency: true,
|
|
648
|
+
color: 'primary',
|
|
1015
649
|
};
|
|
1016
650
|
|
|
1017
|
-
var useSwitchStyles = styles.makeStyles(function (theme) { return ({
|
|
1018
|
-
checked: {
|
|
1019
|
-
'& $thumb': {
|
|
1020
|
-
background: theme.palette.success.main,
|
|
1021
|
-
},
|
|
1022
|
-
'&& + $track': {
|
|
1023
|
-
backgroundColor: theme.palette.success.main,
|
|
1024
|
-
},
|
|
1025
|
-
},
|
|
1026
|
-
thumb: {},
|
|
1027
|
-
track: {},
|
|
651
|
+
var useSwitchStyles = styles.makeStyles(function (theme) { return ({
|
|
652
|
+
checked: {
|
|
653
|
+
'& $thumb': {
|
|
654
|
+
background: theme.palette.success.main,
|
|
655
|
+
},
|
|
656
|
+
'&& + $track': {
|
|
657
|
+
backgroundColor: theme.palette.success.main,
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
thumb: {},
|
|
661
|
+
track: {},
|
|
1028
662
|
}); });
|
|
1029
663
|
|
|
1030
|
-
var Switch = React.forwardRef(function (props, ref) {
|
|
1031
|
-
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
|
|
1032
|
-
var classes = useSwitchStyles(props);
|
|
1033
|
-
var control =
|
|
1034
|
-
return label ? (
|
|
1035
|
-
});
|
|
664
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
665
|
+
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = tslib.__rest(props, ["label", "disabled", "LabelProps"]);
|
|
666
|
+
var classes = useSwitchStyles(props);
|
|
667
|
+
var control = React.createElement(MuiSwitch, tslib.__assign({ classes: classes, disabled: label ? undefined : disabled }, muiProps));
|
|
668
|
+
return label ? (React.createElement(FormControlLabel, tslib.__assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
669
|
+
});
|
|
1036
670
|
Switch.displayName = 'Switch';
|
|
1037
671
|
|
|
1038
|
-
var TabPanel = function (props) {
|
|
1039
|
-
var children = props.children, show = props.show;
|
|
1040
|
-
return show ?
|
|
672
|
+
var TabPanel = function (props) {
|
|
673
|
+
var children = props.children, show = props.show;
|
|
674
|
+
return show ? React.createElement(core.Box, null, children) : null;
|
|
1041
675
|
};
|
|
1042
676
|
|
|
1043
|
-
var useToggleButtonStyles = styles.makeStyles(function (theme) { return ({
|
|
1044
|
-
root: {
|
|
1045
|
-
color: theme.palette.text.primary,
|
|
1046
|
-
},
|
|
1047
|
-
selected: {
|
|
1048
|
-
'&&': {
|
|
1049
|
-
'&:hover': {
|
|
1050
|
-
backgroundColor: function (props) { return theme.palette[props.color || 'primary'].dark; },
|
|
1051
|
-
},
|
|
1052
|
-
backgroundColor: function (props) { return theme.palette[props.color || 'primary'].main; },
|
|
1053
|
-
color: 'white',
|
|
1054
|
-
},
|
|
1055
|
-
},
|
|
677
|
+
var useToggleButtonStyles = styles.makeStyles(function (theme) { return ({
|
|
678
|
+
root: {
|
|
679
|
+
color: theme.palette.text.primary,
|
|
680
|
+
},
|
|
681
|
+
selected: {
|
|
682
|
+
'&&': {
|
|
683
|
+
'&:hover': {
|
|
684
|
+
backgroundColor: function (props) { return theme.palette[props.color || 'primary'].dark; },
|
|
685
|
+
},
|
|
686
|
+
backgroundColor: function (props) { return theme.palette[props.color || 'primary'].main; },
|
|
687
|
+
color: 'white',
|
|
688
|
+
},
|
|
689
|
+
},
|
|
1056
690
|
}); });
|
|
1057
691
|
|
|
1058
|
-
var ToggleButton = React.forwardRef(function (props, ref) {
|
|
1059
|
-
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
1060
|
-
var classes = useToggleButtonStyles(props);
|
|
1061
|
-
return (
|
|
1062
|
-
root: classes.root,
|
|
1063
|
-
selected: classes.selected,
|
|
1064
|
-
} }, muiProps), children));
|
|
1065
|
-
});
|
|
1066
|
-
ToggleButton.defaultProps = {
|
|
1067
|
-
color: 'primary',
|
|
1068
|
-
};
|
|
692
|
+
var ToggleButton = React.forwardRef(function (props, ref) {
|
|
693
|
+
var children = props.children, muiProps = tslib.__rest(props, ["children"]);
|
|
694
|
+
var classes = useToggleButtonStyles(props);
|
|
695
|
+
return (React.createElement(MuiToggleButton, tslib.__assign({ ref: ref, classes: {
|
|
696
|
+
root: classes.root,
|
|
697
|
+
selected: classes.selected,
|
|
698
|
+
} }, muiProps), children));
|
|
699
|
+
});
|
|
700
|
+
ToggleButton.defaultProps = {
|
|
701
|
+
color: 'primary',
|
|
702
|
+
};
|
|
1069
703
|
ToggleButton.displayName = 'ToggleButton';
|
|
1070
704
|
|
|
1071
|
-
var useToggleButtonGroupStyles = styles.makeStyles(function (theme) { return ({
|
|
1072
|
-
root: {
|
|
1073
|
-
'&&': {
|
|
1074
|
-
backgroundColor: theme.palette.grey[300],
|
|
1075
|
-
},
|
|
1076
|
-
},
|
|
705
|
+
var useToggleButtonGroupStyles = styles.makeStyles(function (theme) { return ({
|
|
706
|
+
root: {
|
|
707
|
+
'&&': {
|
|
708
|
+
backgroundColor: theme.palette.grey[300],
|
|
709
|
+
},
|
|
710
|
+
},
|
|
1077
711
|
}); });
|
|
1078
712
|
|
|
1079
|
-
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
1080
|
-
var children = props.children, _a = props.color, color = _a === void 0 ? 'primary' : _a, muiProps = __rest(props, ["children", "color"]);
|
|
1081
|
-
var classes = useToggleButtonGroupStyles(props);
|
|
1082
|
-
var childrenWithProps =
|
|
1083
|
-
if (!
|
|
1084
|
-
return null;
|
|
1085
|
-
}
|
|
1086
|
-
return
|
|
1087
|
-
});
|
|
1088
|
-
return (
|
|
1089
|
-
});
|
|
713
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
714
|
+
var children = props.children, _a = props.color, color = _a === void 0 ? 'primary' : _a, muiProps = tslib.__rest(props, ["children", "color"]);
|
|
715
|
+
var classes = useToggleButtonGroupStyles(props);
|
|
716
|
+
var childrenWithProps = React.Children.map(children, function (child) {
|
|
717
|
+
if (!React.isValidElement(child)) {
|
|
718
|
+
return null;
|
|
719
|
+
}
|
|
720
|
+
return React.cloneElement(child, { color: color });
|
|
721
|
+
});
|
|
722
|
+
return (React.createElement(MuiToggleButtonGroup, tslib.__assign({ ref: ref, classes: { root: classes.root } }, muiProps), childrenWithProps));
|
|
723
|
+
});
|
|
1090
724
|
ToggleButtonGroup.displayName = 'ToggleButtonGroup';
|
|
1091
725
|
|
|
1092
|
-
var useTooltipStyles = styles.makeStyles(function (_a) {
|
|
1093
|
-
var typography = _a.typography;
|
|
1094
|
-
return ({
|
|
1095
|
-
tooltip: {
|
|
1096
|
-
fontSize: typography.pxToRem(16),
|
|
1097
|
-
},
|
|
1098
|
-
});
|
|
726
|
+
var useTooltipStyles = styles.makeStyles(function (_a) {
|
|
727
|
+
var typography = _a.typography;
|
|
728
|
+
return ({
|
|
729
|
+
tooltip: {
|
|
730
|
+
fontSize: typography.pxToRem(16),
|
|
731
|
+
},
|
|
732
|
+
});
|
|
1099
733
|
});
|
|
1100
734
|
|
|
1101
|
-
var Tooltip = React.forwardRef(function (props, ref) {
|
|
1102
|
-
var classes = useTooltipStyles(props);
|
|
1103
|
-
return
|
|
1104
|
-
});
|
|
735
|
+
var Tooltip = React.forwardRef(function (props, ref) {
|
|
736
|
+
var classes = useTooltipStyles(props);
|
|
737
|
+
return React.createElement(MuiTooltip, tslib.__assign({ ref: ref, classes: classes }, props));
|
|
738
|
+
});
|
|
1105
739
|
Tooltip.displayName = 'Tooltip';
|
|
1106
740
|
|
|
1107
|
-
var useNumberFieldStyles = core.makeStyles(function () { return ({
|
|
1108
|
-
root: {
|
|
1109
|
-
height: 56,
|
|
1110
|
-
},
|
|
1111
|
-
}); });
|
|
1112
|
-
var useNumberInputStyles = core.makeStyles(function (theme) { return ({
|
|
1113
|
-
root: {
|
|
1114
|
-
height: '100%',
|
|
1115
|
-
width: 'min-content',
|
|
1116
|
-
borderRadius: theme.spacing(1),
|
|
1117
|
-
},
|
|
1118
|
-
input: {
|
|
1119
|
-
'&::-webkit-clear-button, &::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
|
|
1120
|
-
display: 'none',
|
|
1121
|
-
},
|
|
1122
|
-
'-moz-appearance': 'textfield',
|
|
1123
|
-
minWidth: 40,
|
|
1124
|
-
padding: 0,
|
|
1125
|
-
textAlign: 'center',
|
|
1126
|
-
},
|
|
1127
|
-
adornedStart: {
|
|
1128
|
-
padding: 0,
|
|
1129
|
-
},
|
|
1130
|
-
adornedEnd: {
|
|
1131
|
-
padding: 0,
|
|
1132
|
-
},
|
|
741
|
+
var useNumberFieldStyles = core.makeStyles(function () { return ({
|
|
742
|
+
root: {
|
|
743
|
+
height: 56,
|
|
744
|
+
},
|
|
745
|
+
}); });
|
|
746
|
+
var useNumberInputStyles = core.makeStyles(function (theme) { return ({
|
|
747
|
+
root: {
|
|
748
|
+
height: '100%',
|
|
749
|
+
width: 'min-content',
|
|
750
|
+
borderRadius: theme.spacing(1),
|
|
751
|
+
},
|
|
752
|
+
input: {
|
|
753
|
+
'&::-webkit-clear-button, &::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
|
|
754
|
+
display: 'none',
|
|
755
|
+
},
|
|
756
|
+
'-moz-appearance': 'textfield',
|
|
757
|
+
minWidth: 40,
|
|
758
|
+
padding: 0,
|
|
759
|
+
textAlign: 'center',
|
|
760
|
+
},
|
|
761
|
+
adornedStart: {
|
|
762
|
+
padding: 0,
|
|
763
|
+
},
|
|
764
|
+
adornedEnd: {
|
|
765
|
+
padding: 0,
|
|
766
|
+
},
|
|
1133
767
|
}); });
|
|
1134
768
|
|
|
1135
|
-
var NumberField = function (props) {
|
|
1136
|
-
var onIncrement = props.onIncrement, onDecrement = props.onDecrement, _a = props.endAdornmentButtonProps, endAdornmentButtonProps = _a === void 0 ? {} : _a, _b = props.startAdornmentButtonProps, startAdornmentButtonProps = _b === void 0 ? {} : _b, _c = props.InputProps, InputProps = _c === void 0 ? {} : _c, classes = props.classes, restProps = __rest(props, ["onIncrement", "onDecrement", "endAdornmentButtonProps", "startAdornmentButtonProps", "InputProps", "classes"]);
|
|
1137
|
-
var _d = InputProps, inputClassesOverride = _d.classes, restInputProps = __rest(_d, ["classes"]);
|
|
1138
|
-
var fieldClasses = useNumberFieldStyles(props);
|
|
1139
|
-
var inputClasses = useNumberInputStyles(props);
|
|
1140
|
-
return (
|
|
1141
|
-
|
|
1142
|
-
|
|
769
|
+
var NumberField = function (props) {
|
|
770
|
+
var onIncrement = props.onIncrement, onDecrement = props.onDecrement, _a = props.endAdornmentButtonProps, endAdornmentButtonProps = _a === void 0 ? {} : _a, _b = props.startAdornmentButtonProps, startAdornmentButtonProps = _b === void 0 ? {} : _b, _c = props.InputProps, InputProps = _c === void 0 ? {} : _c, classes = props.classes, restProps = tslib.__rest(props, ["onIncrement", "onDecrement", "endAdornmentButtonProps", "startAdornmentButtonProps", "InputProps", "classes"]);
|
|
771
|
+
var _d = InputProps, inputClassesOverride = _d.classes, restInputProps = tslib.__rest(_d, ["classes"]);
|
|
772
|
+
var fieldClasses = useNumberFieldStyles(props);
|
|
773
|
+
var inputClasses = useNumberInputStyles(props);
|
|
774
|
+
return (React.createElement(core.TextField, tslib.__assign({ classes: tslib.__assign(tslib.__assign({}, fieldClasses), classes), variant: "filled", type: "number", defaultValue: 0, InputProps: tslib.__assign({ classes: tslib.__assign(tslib.__assign({}, inputClasses), inputClassesOverride), disableUnderline: true, endAdornment: (React.createElement(IconButton, tslib.__assign({ style: { fontSize: 20 }, onClick: onIncrement }, endAdornmentButtonProps),
|
|
775
|
+
React.createElement(Icon, { icon: webIcons.PlusCircle }))), startAdornment: (React.createElement(IconButton, tslib.__assign({ style: { fontSize: 20 }, onClick: onDecrement }, startAdornmentButtonProps),
|
|
776
|
+
React.createElement(Icon, { icon: webIcons.MinusCircle }))) }, restInputProps) }, restProps)));
|
|
1143
777
|
};
|
|
1144
778
|
|
|
1145
|
-
var useStyles$3 = core.makeStyles(function () { return ({
|
|
1146
|
-
root: {
|
|
1147
|
-
display: 'flex',
|
|
1148
|
-
flexDirection: 'column',
|
|
1149
|
-
alignItems: 'center',
|
|
1150
|
-
gridGap: 16,
|
|
1151
|
-
},
|
|
1152
|
-
}); });
|
|
1153
|
-
var FollowerAuthenticationContent = function (props) {
|
|
1154
|
-
var classes = useStyles$3();
|
|
1155
|
-
return
|
|
779
|
+
var useStyles$3 = core.makeStyles(function () { return ({
|
|
780
|
+
root: {
|
|
781
|
+
display: 'flex',
|
|
782
|
+
flexDirection: 'column',
|
|
783
|
+
alignItems: 'center',
|
|
784
|
+
gridGap: 16,
|
|
785
|
+
},
|
|
786
|
+
}); });
|
|
787
|
+
var FollowerAuthenticationContent = function (props) {
|
|
788
|
+
var classes = useStyles$3();
|
|
789
|
+
return React.createElement(core.DialogContent, { classes: classes }, props.children);
|
|
1156
790
|
};
|
|
1157
791
|
|
|
1158
|
-
var FollowerAuthenticationDialogContext = React.createContext(null);
|
|
1159
|
-
var FollowerAuthenticationDialogContextProvider = FollowerAuthenticationDialogContext.Provider;
|
|
1160
|
-
var useFollowerAuthenticationDialogContext = function () {
|
|
1161
|
-
var context = React.useContext(FollowerAuthenticationDialogContext);
|
|
1162
|
-
if (!context) {
|
|
1163
|
-
throw new Error('useFollowerAuthenticationDialogContext must be called within FollowerAuthenticationDialogContextProvider');
|
|
1164
|
-
}
|
|
1165
|
-
return context;
|
|
792
|
+
var FollowerAuthenticationDialogContext = React.createContext(null);
|
|
793
|
+
var FollowerAuthenticationDialogContextProvider = FollowerAuthenticationDialogContext.Provider;
|
|
794
|
+
var useFollowerAuthenticationDialogContext = function () {
|
|
795
|
+
var context = React.useContext(FollowerAuthenticationDialogContext);
|
|
796
|
+
if (!context) {
|
|
797
|
+
throw new Error('useFollowerAuthenticationDialogContext must be called within FollowerAuthenticationDialogContextProvider');
|
|
798
|
+
}
|
|
799
|
+
return context;
|
|
1166
800
|
};
|
|
1167
801
|
|
|
1168
|
-
var FollowerAuthenticationGraphic = function () {
|
|
1169
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, graphics = _a.graphics;
|
|
1170
|
-
var graphic = graphics[state.value];
|
|
1171
|
-
if (!graphic)
|
|
1172
|
-
return null;
|
|
1173
|
-
return (
|
|
1174
|
-
|
|
802
|
+
var FollowerAuthenticationGraphic = function () {
|
|
803
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, graphics = _a.graphics;
|
|
804
|
+
var graphic = graphics[state.value];
|
|
805
|
+
if (!graphic)
|
|
806
|
+
return null;
|
|
807
|
+
return (React.createElement(core.Box, null,
|
|
808
|
+
React.createElement("img", { src: graphic, alt: messages[state.value + "GraphicAlt"] })));
|
|
1175
809
|
};
|
|
1176
810
|
|
|
1177
|
-
var useStyles$2 = core.makeStyles(function () { return ({
|
|
1178
|
-
form: {
|
|
1179
|
-
display: 'flex',
|
|
1180
|
-
flexDirection: 'column',
|
|
1181
|
-
alignItems: 'center',
|
|
1182
|
-
width: '100%',
|
|
1183
|
-
gridGap: 16,
|
|
1184
|
-
},
|
|
1185
|
-
}); });
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
var
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1197
|
-
var
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
};
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
return (
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
return
|
|
1301
|
-
|
|
811
|
+
var useStyles$2 = core.makeStyles(function () { return ({
|
|
812
|
+
form: {
|
|
813
|
+
display: 'flex',
|
|
814
|
+
flexDirection: 'column',
|
|
815
|
+
alignItems: 'center',
|
|
816
|
+
width: '100%',
|
|
817
|
+
gridGap: 16,
|
|
818
|
+
},
|
|
819
|
+
}); });
|
|
820
|
+
var northAmericanPhoneRegex = /^(\()?[2-9]{1}\d{2}(\))?[-\s.]?[2-9]{1}\d{2}[-\s.]?\d{4}$/;
|
|
821
|
+
var ukPhoneRegex = /^((\+?44\s?|0044\s?)(\s?\d{3,5}|\(\d{3,5}\))(\s?\d{3,4})(\s?\d{3,4})$|^07\d{9}$)/;
|
|
822
|
+
var validatePhoneNumber = function (phone) {
|
|
823
|
+
if (!phone)
|
|
824
|
+
return false;
|
|
825
|
+
return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone);
|
|
826
|
+
};
|
|
827
|
+
var FollowerAuthenticationForm = function () {
|
|
828
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, locationOptions = _a.locationOptions, onActionButtonClick = _a.onActionButtonClick, loading = _a.loading;
|
|
829
|
+
var classes = useStyles$2();
|
|
830
|
+
// sign-up form state
|
|
831
|
+
var formRef = React.useRef(null);
|
|
832
|
+
var _b = React.useState(false), formValidity = _b[0], setFormValidity = _b[1];
|
|
833
|
+
var _c = React.useState(), showPhoneErrorText = _c[0], setShowPhoneErrorText = _c[1];
|
|
834
|
+
var _d = React.useState(), showEmailErrorText = _d[0], setShowEmailErrorText = _d[1];
|
|
835
|
+
var _e = React.useState(), showLocationErrorText = _e[0], setShowLocationErrorText = _e[1];
|
|
836
|
+
var _f = React.useState(state.context.phone || ''), signUpPhoneValue = _f[0], setSignUpPhoneValue = _f[1];
|
|
837
|
+
var _g = React.useState(state.context.email || ''), signUpEmailValue = _g[0], setSignUpEmailValue = _g[1];
|
|
838
|
+
var checkFieldValidity = function (e) {
|
|
839
|
+
var _a, _b;
|
|
840
|
+
var fieldName = e.target.name;
|
|
841
|
+
var fieldValue = e.target.value;
|
|
842
|
+
switch (fieldName) {
|
|
843
|
+
case 'phone':
|
|
844
|
+
var isPhoneValid = validatePhoneNumber(fieldValue);
|
|
845
|
+
setSignUpPhoneValue(fieldValue);
|
|
846
|
+
setShowPhoneErrorText(!isPhoneValid && fieldValue.length > 0);
|
|
847
|
+
break;
|
|
848
|
+
case 'email':
|
|
849
|
+
var emailField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem(fieldName);
|
|
850
|
+
var isEmailValid = (_b = emailField === null || emailField === void 0 ? void 0 : emailField.validity.valid) !== null && _b !== void 0 ? _b : false;
|
|
851
|
+
setSignUpEmailValue(fieldValue);
|
|
852
|
+
setShowEmailErrorText(!isEmailValid && fieldValue.length > 0);
|
|
853
|
+
break;
|
|
854
|
+
case 'location':
|
|
855
|
+
setShowLocationErrorText(!fieldValue);
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
React.useEffect(function () {
|
|
860
|
+
var _a;
|
|
861
|
+
var hasValidPhone = Boolean(signUpPhoneValue) && !showPhoneErrorText;
|
|
862
|
+
var hasValidEmail = Boolean(signUpEmailValue) && !showEmailErrorText;
|
|
863
|
+
var locationField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem('location');
|
|
864
|
+
var hasValidLocation = locationField ? Boolean(locationField.value) : true;
|
|
865
|
+
var hasValidContact = hasValidPhone || hasValidEmail;
|
|
866
|
+
setFormValidity(hasValidContact && hasValidLocation);
|
|
867
|
+
}, [signUpPhoneValue, signUpEmailValue, showPhoneErrorText, showEmailErrorText, showLocationErrorText]);
|
|
868
|
+
var handleSubmit = function (e) {
|
|
869
|
+
e.preventDefault();
|
|
870
|
+
var form = e.target;
|
|
871
|
+
var formData = new FormData(form);
|
|
872
|
+
var values = Object.fromEntries(formData.entries());
|
|
873
|
+
onActionButtonClick('submit-form', values);
|
|
874
|
+
};
|
|
875
|
+
var formProps = {
|
|
876
|
+
id: 'follower-authentication-form',
|
|
877
|
+
className: classes.form,
|
|
878
|
+
onSubmit: handleSubmit,
|
|
879
|
+
};
|
|
880
|
+
switch (state.value) {
|
|
881
|
+
case 'initial':
|
|
882
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
883
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.initialInputLabel, key: "identifier-input", id: "identifier-input", name: "identifier" }),
|
|
884
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.initialCtaButtonLabel)));
|
|
885
|
+
case 'signUp':
|
|
886
|
+
return (React.createElement("form", tslib.__assign({ ref: formRef }, formProps, { onInvalid: function (e) {
|
|
887
|
+
e.preventDefault();
|
|
888
|
+
} }),
|
|
889
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.signUpPhoneInputLabel, key: "phone-input", id: "phone-input", name: "phone", onChange: checkFieldValidity, error: showPhoneErrorText, helperText: showPhoneErrorText && messages.signUpPhoneErrorText, inputProps: {
|
|
890
|
+
required: signUpEmailValue ? false : true,
|
|
891
|
+
}, defaultValue: state.context.phone }),
|
|
892
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.signUpNameInputLabel, key: "name-input", id: "name-input", name: "name", inputProps: { required: true } }),
|
|
893
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.signUpEmailInputLabel, key: "email-input", id: "email-input", name: "email", error: showEmailErrorText, helperText: showEmailErrorText && messages.signUpEmailErrorText, onChange: checkFieldValidity, inputProps: {
|
|
894
|
+
required: signUpPhoneValue ? false : true,
|
|
895
|
+
type: 'email',
|
|
896
|
+
}, defaultValue: state.context.email }),
|
|
897
|
+
React.createElement(core.TextField, { disabled: loading, select: true, onChange: checkFieldValidity, label: messages.signUpLocationInputLabel, error: showLocationErrorText, helperText: showLocationErrorText && messages.signUpLocationErrorText, key: "location-input", id: "location-input", inputProps: { required: true }, name: "location" }, locationOptions.map(function (locationOption) { return (React.createElement(core.MenuItem, { "data-cy": 'option', key: locationOption.value, value: locationOption.value }, locationOption.label)); })),
|
|
898
|
+
React.createElement(core.Typography, { style: { alignSelf: 'start' } }, messages.signUpBirthdaySectionLabel),
|
|
899
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.signUpMonthInputLabel, key: "birthday-month-input", id: "birthday-month-input", name: "birthdayMonth" }),
|
|
900
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.signUpDayInputLabel, key: "birthday-date-input", id: "birthday-date-input", name: "birthdayDate" }),
|
|
901
|
+
React.createElement(core.Button, { disabled: loading || !formValidity, type: "submit" }, messages.signUp)));
|
|
902
|
+
case 'emailFound':
|
|
903
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
904
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
905
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.emailFoundCtaButtonLabel)));
|
|
906
|
+
case 'emailAuthCode':
|
|
907
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
908
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.emailAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code" }),
|
|
909
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
910
|
+
case 'indirectUserFound': {
|
|
911
|
+
if (state.context.email) {
|
|
912
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
913
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
914
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
915
|
+
}
|
|
916
|
+
else if (state.context.phone) {
|
|
917
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
918
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
919
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
920
|
+
}
|
|
921
|
+
else
|
|
922
|
+
return null;
|
|
923
|
+
}
|
|
924
|
+
case 'emailPasswordSignIn':
|
|
925
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
926
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email, InputLabelProps: { shrink: true } }),
|
|
927
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
928
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
929
|
+
case 'phoneFound':
|
|
930
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
931
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
932
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.phoneFoundCtaButtonLabel)));
|
|
933
|
+
case 'phoneAuthCode':
|
|
934
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
935
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.phoneAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code", autoComplete: "one-time-code" }),
|
|
936
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
937
|
+
case 'phonePasswordSignIn':
|
|
938
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
939
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone, InputLabelProps: { shrink: true } }),
|
|
940
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
941
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
942
|
+
case 'requirePhone':
|
|
943
|
+
return (React.createElement("form", tslib.__assign({}, formProps),
|
|
944
|
+
React.createElement(core.TextField, { disabled: loading, label: messages.requirePhoneInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
945
|
+
React.createElement(core.Button, { disabled: loading, type: "submit" }, messages.requirePhoneCtaButtonLabel)));
|
|
946
|
+
case 'welcome':
|
|
947
|
+
return null;
|
|
948
|
+
default:
|
|
949
|
+
return null;
|
|
950
|
+
}
|
|
1302
951
|
};
|
|
1303
952
|
|
|
1304
|
-
var useStyles$1 = core.makeStyles(function () { return ({
|
|
1305
|
-
main: {
|
|
1306
|
-
width: '100%',
|
|
1307
|
-
display: 'flex',
|
|
1308
|
-
flexDirection: 'column',
|
|
1309
|
-
gridGap: 16,
|
|
1310
|
-
},
|
|
1311
|
-
}); });
|
|
1312
|
-
var FollowerAuthenticationAltActions = function () {
|
|
1313
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, logos = _a.logos, loading = _a.loading, onActionButtonClick = _a.onActionButtonClick;
|
|
1314
|
-
var classes = useStyles$1();
|
|
1315
|
-
switch (state.value) {
|
|
1316
|
-
case 'initial':
|
|
1317
|
-
return (
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
onActionButtonClick('sign-in-with-facebook');
|
|
1321
|
-
} }, messages.continueWithFacebookButtonLabel),
|
|
1322
|
-
|
|
1323
|
-
onActionButtonClick('sign-in-with-google');
|
|
1324
|
-
} }, messages.continueWithGoogleButtonLabel)));
|
|
1325
|
-
case 'signUp':
|
|
1326
|
-
return null;
|
|
1327
|
-
case 'emailFound':
|
|
1328
|
-
return (
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
onActionButtonClick('sign-in-with-password');
|
|
1332
|
-
} }, messages.signInWithPassword)));
|
|
1333
|
-
case 'emailAuthCode':
|
|
1334
|
-
return (
|
|
1335
|
-
|
|
1336
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1337
|
-
var formData = new FormData(form);
|
|
1338
|
-
var values = Object.fromEntries(formData.entries());
|
|
1339
|
-
onActionButtonClick('request-auth-code-email', values);
|
|
1340
|
-
} }, messages.resendAuthCode)));
|
|
1341
|
-
case 'indirectUserFound':
|
|
1342
|
-
return (
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
onActionButtonClick('use-different-account');
|
|
1346
|
-
} }, messages.indirectUserFoundCtaButtonLabelAlt)));
|
|
1347
|
-
case 'emailPasswordSignIn':
|
|
1348
|
-
return (
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1352
|
-
var formData = new FormData(form);
|
|
1353
|
-
var values = Object.fromEntries(formData.entries());
|
|
1354
|
-
onActionButtonClick('request-auth-code-email', values);
|
|
1355
|
-
} }, messages.emailFoundCtaButtonLabel)));
|
|
1356
|
-
case 'phoneFound':
|
|
1357
|
-
return null;
|
|
1358
|
-
case 'phoneAuthCode':
|
|
1359
|
-
return (
|
|
1360
|
-
|
|
1361
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1362
|
-
var formData = new FormData(form);
|
|
1363
|
-
var values = Object.fromEntries(formData.entries());
|
|
1364
|
-
onActionButtonClick('request-auth-code-sms', values);
|
|
1365
|
-
} }, messages.resendAuthCode)));
|
|
1366
|
-
case 'phonePasswordSignIn':
|
|
1367
|
-
return (
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1371
|
-
var formData = new FormData(form);
|
|
1372
|
-
var values = Object.fromEntries(formData.entries());
|
|
1373
|
-
onActionButtonClick('request-auth-code-sms', values);
|
|
1374
|
-
} }, messages.phoneFoundCtaButtonLabel)));
|
|
1375
|
-
case 'welcome':
|
|
1376
|
-
return (
|
|
1377
|
-
onActionButtonClick('close');
|
|
1378
|
-
} }, messages.done));
|
|
1379
|
-
default:
|
|
1380
|
-
return null;
|
|
1381
|
-
}
|
|
953
|
+
var useStyles$1 = core.makeStyles(function () { return ({
|
|
954
|
+
main: {
|
|
955
|
+
width: '100%',
|
|
956
|
+
display: 'flex',
|
|
957
|
+
flexDirection: 'column',
|
|
958
|
+
gridGap: 16,
|
|
959
|
+
},
|
|
960
|
+
}); });
|
|
961
|
+
var FollowerAuthenticationAltActions = function () {
|
|
962
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, logos = _a.logos, loading = _a.loading, onActionButtonClick = _a.onActionButtonClick;
|
|
963
|
+
var classes = useStyles$1();
|
|
964
|
+
switch (state.value) {
|
|
965
|
+
case 'initial':
|
|
966
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
967
|
+
React.createElement(core.Divider, null),
|
|
968
|
+
React.createElement(core.Button, { variant: "outlined", startIcon: logos.facebook, onClick: function () {
|
|
969
|
+
onActionButtonClick('sign-in-with-facebook');
|
|
970
|
+
} }, messages.continueWithFacebookButtonLabel),
|
|
971
|
+
React.createElement(core.Button, { variant: "outlined", startIcon: logos.google, onClick: function () {
|
|
972
|
+
onActionButtonClick('sign-in-with-google');
|
|
973
|
+
} }, messages.continueWithGoogleButtonLabel)));
|
|
974
|
+
case 'signUp':
|
|
975
|
+
return null;
|
|
976
|
+
case 'emailFound':
|
|
977
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
978
|
+
React.createElement(core.Divider, null),
|
|
979
|
+
React.createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
980
|
+
onActionButtonClick('sign-in-with-password');
|
|
981
|
+
} }, messages.signInWithPassword)));
|
|
982
|
+
case 'emailAuthCode':
|
|
983
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
984
|
+
React.createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
985
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
986
|
+
var formData = new FormData(form);
|
|
987
|
+
var values = Object.fromEntries(formData.entries());
|
|
988
|
+
onActionButtonClick('request-auth-code-email', values);
|
|
989
|
+
} }, messages.resendAuthCode)));
|
|
990
|
+
case 'indirectUserFound':
|
|
991
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
992
|
+
React.createElement(core.Divider, null),
|
|
993
|
+
React.createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
994
|
+
onActionButtonClick('use-different-account');
|
|
995
|
+
} }, messages.indirectUserFoundCtaButtonLabelAlt)));
|
|
996
|
+
case 'emailPasswordSignIn':
|
|
997
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
998
|
+
React.createElement(core.Divider, null),
|
|
999
|
+
React.createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
1000
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
1001
|
+
var formData = new FormData(form);
|
|
1002
|
+
var values = Object.fromEntries(formData.entries());
|
|
1003
|
+
onActionButtonClick('request-auth-code-email', values);
|
|
1004
|
+
} }, messages.emailFoundCtaButtonLabel)));
|
|
1005
|
+
case 'phoneFound':
|
|
1006
|
+
return null;
|
|
1007
|
+
case 'phoneAuthCode':
|
|
1008
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
1009
|
+
React.createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
1010
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
1011
|
+
var formData = new FormData(form);
|
|
1012
|
+
var values = Object.fromEntries(formData.entries());
|
|
1013
|
+
onActionButtonClick('request-auth-code-sms', values);
|
|
1014
|
+
} }, messages.resendAuthCode)));
|
|
1015
|
+
case 'phonePasswordSignIn':
|
|
1016
|
+
return (React.createElement(core.Box, { className: classes.main },
|
|
1017
|
+
React.createElement(core.Divider, null),
|
|
1018
|
+
React.createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
1019
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
1020
|
+
var formData = new FormData(form);
|
|
1021
|
+
var values = Object.fromEntries(formData.entries());
|
|
1022
|
+
onActionButtonClick('request-auth-code-sms', values);
|
|
1023
|
+
} }, messages.phoneFoundCtaButtonLabel)));
|
|
1024
|
+
case 'welcome':
|
|
1025
|
+
return (React.createElement(core.Button, { onClick: function () {
|
|
1026
|
+
onActionButtonClick('close');
|
|
1027
|
+
} }, messages.done));
|
|
1028
|
+
default:
|
|
1029
|
+
return null;
|
|
1030
|
+
}
|
|
1382
1031
|
};
|
|
1383
1032
|
|
|
1384
|
-
var FollowerAuthenticationBody = function () {
|
|
1385
|
-
return (
|
|
1386
|
-
|
|
1387
|
-
|
|
1033
|
+
var FollowerAuthenticationBody = function () {
|
|
1034
|
+
return (React.createElement(React.Fragment, null,
|
|
1035
|
+
React.createElement(FollowerAuthenticationForm, null),
|
|
1036
|
+
React.createElement(FollowerAuthenticationAltActions, null)));
|
|
1388
1037
|
};
|
|
1389
1038
|
|
|
1390
|
-
var FollowerAuthenticationFooter = function () {
|
|
1391
|
-
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, logos = _a.logos;
|
|
1392
|
-
return (
|
|
1393
|
-
|
|
1394
|
-
logos.popmenu));
|
|
1039
|
+
var FollowerAuthenticationFooter = function () {
|
|
1040
|
+
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, logos = _a.logos;
|
|
1041
|
+
return (React.createElement(core.Box, { display: "flex", gridGap: 8 },
|
|
1042
|
+
React.createElement(core.Typography, { variant: "body2" }, messages.poweredBy),
|
|
1043
|
+
logos.popmenu));
|
|
1395
1044
|
};
|
|
1396
1045
|
|
|
1397
|
-
var FollowerAuthenticationTitle = function () {
|
|
1398
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1399
|
-
var title = messages[state.value + "Title"];
|
|
1400
|
-
return (
|
|
1401
|
-
|
|
1046
|
+
var FollowerAuthenticationTitle = function () {
|
|
1047
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1048
|
+
var title = messages[state.value + "Title"];
|
|
1049
|
+
return (React.createElement(core.Box, null,
|
|
1050
|
+
React.createElement(core.Typography, { variant: "h1", align: "center" }, title)));
|
|
1402
1051
|
};
|
|
1403
1052
|
|
|
1404
|
-
var FollowerAuthenticationInfo = function () {
|
|
1405
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1406
|
-
var info = messages[state.value + "Info"];
|
|
1407
|
-
if (!info)
|
|
1408
|
-
return null;
|
|
1409
|
-
return (
|
|
1410
|
-
|
|
1053
|
+
var FollowerAuthenticationInfo = function () {
|
|
1054
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1055
|
+
var info = messages[state.value + "Info"];
|
|
1056
|
+
if (!info)
|
|
1057
|
+
return null;
|
|
1058
|
+
return (React.createElement(core.Box, null,
|
|
1059
|
+
React.createElement(core.Typography, { align: "center" }, info)));
|
|
1411
1060
|
};
|
|
1412
1061
|
|
|
1413
|
-
var useStyles = core.makeStyles(function () { return ({
|
|
1414
|
-
root: {
|
|
1415
|
-
position: 'absolute',
|
|
1416
|
-
top: 0,
|
|
1417
|
-
right: 0,
|
|
1418
|
-
},
|
|
1419
|
-
}); });
|
|
1420
|
-
var FollowerAuthenticationCloseButton = function () {
|
|
1421
|
-
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, onActionButtonClick = _a.onActionButtonClick;
|
|
1422
|
-
var classes = useStyles();
|
|
1423
|
-
var handleClose = function () {
|
|
1424
|
-
onActionButtonClick('close');
|
|
1425
|
-
};
|
|
1426
|
-
return (
|
|
1427
|
-
|
|
1062
|
+
var useStyles = core.makeStyles(function () { return ({
|
|
1063
|
+
root: {
|
|
1064
|
+
position: 'absolute',
|
|
1065
|
+
top: 0,
|
|
1066
|
+
right: 0,
|
|
1067
|
+
},
|
|
1068
|
+
}); });
|
|
1069
|
+
var FollowerAuthenticationCloseButton = function () {
|
|
1070
|
+
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, onActionButtonClick = _a.onActionButtonClick;
|
|
1071
|
+
var classes = useStyles();
|
|
1072
|
+
var handleClose = function () {
|
|
1073
|
+
onActionButtonClick('close');
|
|
1074
|
+
};
|
|
1075
|
+
return (React.createElement(core.IconButton, { classes: classes, "aria-label": messages.closeButtonLabel, onClick: handleClose },
|
|
1076
|
+
React.createElement(webIcons.X, null)));
|
|
1428
1077
|
};
|
|
1429
1078
|
|
|
1430
|
-
var theme = {
|
|
1431
|
-
palette: {
|
|
1432
|
-
primary: { main: '#2E3042' },
|
|
1433
|
-
},
|
|
1434
|
-
typography: {
|
|
1435
|
-
h1: {
|
|
1436
|
-
fontFamily: 'Poppins',
|
|
1437
|
-
fontSize: '24px',
|
|
1438
|
-
fontWeight: 400,
|
|
1439
|
-
lineHeight: '36px',
|
|
1440
|
-
},
|
|
1441
|
-
},
|
|
1442
|
-
props: {
|
|
1443
|
-
MuiTextField: {
|
|
1444
|
-
variant: 'outlined',
|
|
1445
|
-
fullWidth: true,
|
|
1446
|
-
},
|
|
1447
|
-
MuiButton: {
|
|
1448
|
-
variant: 'contained',
|
|
1449
|
-
color: 'primary',
|
|
1450
|
-
disableElevation: true,
|
|
1451
|
-
fullWidth: true,
|
|
1452
|
-
},
|
|
1453
|
-
},
|
|
1454
|
-
overrides: {
|
|
1455
|
-
MuiButton: {
|
|
1456
|
-
root: {
|
|
1457
|
-
borderRadius: 32,
|
|
1458
|
-
textTransform: 'none',
|
|
1459
|
-
},
|
|
1460
|
-
},
|
|
1461
|
-
},
|
|
1079
|
+
var theme = {
|
|
1080
|
+
palette: {
|
|
1081
|
+
primary: { main: '#2E3042' },
|
|
1082
|
+
},
|
|
1083
|
+
typography: {
|
|
1084
|
+
h1: {
|
|
1085
|
+
fontFamily: 'Poppins',
|
|
1086
|
+
fontSize: '24px',
|
|
1087
|
+
fontWeight: 400,
|
|
1088
|
+
lineHeight: '36px',
|
|
1089
|
+
},
|
|
1090
|
+
},
|
|
1091
|
+
props: {
|
|
1092
|
+
MuiTextField: {
|
|
1093
|
+
variant: 'outlined',
|
|
1094
|
+
fullWidth: true,
|
|
1095
|
+
},
|
|
1096
|
+
MuiButton: {
|
|
1097
|
+
variant: 'contained',
|
|
1098
|
+
color: 'primary',
|
|
1099
|
+
disableElevation: true,
|
|
1100
|
+
fullWidth: true,
|
|
1101
|
+
},
|
|
1102
|
+
},
|
|
1103
|
+
overrides: {
|
|
1104
|
+
MuiButton: {
|
|
1105
|
+
root: {
|
|
1106
|
+
borderRadius: 32,
|
|
1107
|
+
textTransform: 'none',
|
|
1108
|
+
},
|
|
1109
|
+
},
|
|
1110
|
+
},
|
|
1462
1111
|
};
|
|
1463
1112
|
|
|
1464
|
-
var FollowerAuthenticationDialog = function (props) {
|
|
1465
|
-
var open = props.open, restProps = __rest(props, ["open"]);
|
|
1466
|
-
var theme$1 = core.createTheme(theme);
|
|
1467
|
-
var fullScreen = core.useMediaQuery(function (_a) {
|
|
1468
|
-
var breakpoints = _a.breakpoints;
|
|
1469
|
-
return breakpoints.down('sm');
|
|
1470
|
-
});
|
|
1471
|
-
var handleClose = function () {
|
|
1472
|
-
restProps.onActionButtonClick('close');
|
|
1473
|
-
};
|
|
1474
|
-
return (
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1113
|
+
var FollowerAuthenticationDialog = function (props) {
|
|
1114
|
+
var open = props.open, restProps = tslib.__rest(props, ["open"]);
|
|
1115
|
+
var theme$1 = core.createTheme(theme);
|
|
1116
|
+
var fullScreen = core.useMediaQuery(function (_a) {
|
|
1117
|
+
var breakpoints = _a.breakpoints;
|
|
1118
|
+
return breakpoints.down('sm');
|
|
1119
|
+
});
|
|
1120
|
+
var handleClose = function () {
|
|
1121
|
+
restProps.onActionButtonClick('close');
|
|
1122
|
+
};
|
|
1123
|
+
return (React.createElement(core.ThemeProvider, { theme: theme$1 },
|
|
1124
|
+
React.createElement(FollowerAuthenticationDialogContextProvider, { value: restProps },
|
|
1125
|
+
React.createElement(core.Dialog, { open: open, fullScreen: fullScreen, onClose: handleClose },
|
|
1126
|
+
React.createElement(FollowerAuthenticationContent, null,
|
|
1127
|
+
React.createElement(FollowerAuthenticationCloseButton, null),
|
|
1128
|
+
React.createElement(FollowerAuthenticationGraphic, null),
|
|
1129
|
+
React.createElement(FollowerAuthenticationTitle, null),
|
|
1130
|
+
React.createElement(FollowerAuthenticationInfo, null),
|
|
1131
|
+
React.createElement(FollowerAuthenticationBody, null),
|
|
1132
|
+
React.createElement(FollowerAuthenticationFooter, null))))));
|
|
1484
1133
|
};
|
|
1485
1134
|
|
|
1486
|
-
var useCollapsibleText = function () {
|
|
1487
|
-
var _a = React.useState(false), open = _a[0], setOpen = _a[1];
|
|
1488
|
-
var collapseState = React.useState(false);
|
|
1489
|
-
var toggle = function () { return collapseState[0] && setOpen(!open); };
|
|
1490
|
-
return {
|
|
1491
|
-
collapsibleText: {
|
|
1492
|
-
open: open,
|
|
1493
|
-
collapseState: collapseState,
|
|
1494
|
-
},
|
|
1495
|
-
toggle: toggle,
|
|
1496
|
-
};
|
|
1135
|
+
var useCollapsibleText = function () {
|
|
1136
|
+
var _a = React.useState(false), open = _a[0], setOpen = _a[1];
|
|
1137
|
+
var collapseState = React.useState(false);
|
|
1138
|
+
var toggle = function () { return collapseState[0] && setOpen(!open); };
|
|
1139
|
+
return {
|
|
1140
|
+
collapsibleText: {
|
|
1141
|
+
open: open,
|
|
1142
|
+
collapseState: collapseState,
|
|
1143
|
+
},
|
|
1144
|
+
toggle: toggle,
|
|
1145
|
+
};
|
|
1497
1146
|
};
|
|
1498
1147
|
|
|
1499
|
-
var useTabs = function (options) {
|
|
1500
|
-
var initialTab = options.initialTab;
|
|
1501
|
-
var genTabId = function (id) { return ("tab-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1502
|
-
var genPanelId = function (id) { return ("tab-panel-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1503
|
-
var _a = React.useState(genTabId(initialTab)), activeTab = _a[0], setActiveTab = _a[1];
|
|
1504
|
-
var handleChange = function (_, nextTab) { return setActiveTab(nextTab); };
|
|
1505
|
-
var TabsProps = { onChange: handleChange, value: activeTab };
|
|
1506
|
-
var useTab = function (baseId) {
|
|
1507
|
-
var tabId = genTabId(baseId);
|
|
1508
|
-
var tabPanelId = genPanelId(baseId);
|
|
1509
|
-
var tabProps = {
|
|
1510
|
-
id: tabId,
|
|
1511
|
-
label: baseId,
|
|
1512
|
-
value: tabId,
|
|
1513
|
-
'aria-controls': tabPanelId,
|
|
1514
|
-
};
|
|
1515
|
-
var panelProps = {
|
|
1516
|
-
id: tabPanelId,
|
|
1517
|
-
role: 'tabpanel',
|
|
1518
|
-
show: activeTab === tabId,
|
|
1519
|
-
'aria-labelledby': tabId,
|
|
1520
|
-
};
|
|
1521
|
-
return [tabProps, panelProps];
|
|
1522
|
-
};
|
|
1523
|
-
return {
|
|
1524
|
-
TabsProps: TabsProps,
|
|
1525
|
-
useTab: useTab,
|
|
1526
|
-
setActiveTab: function (tabId) { return setActiveTab(tabId); },
|
|
1527
|
-
};
|
|
1148
|
+
var useTabs = function (options) {
|
|
1149
|
+
var initialTab = options.initialTab;
|
|
1150
|
+
var genTabId = function (id) { return ("tab-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1151
|
+
var genPanelId = function (id) { return ("tab-panel-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1152
|
+
var _a = React.useState(genTabId(initialTab)), activeTab = _a[0], setActiveTab = _a[1];
|
|
1153
|
+
var handleChange = function (_, nextTab) { return setActiveTab(nextTab); };
|
|
1154
|
+
var TabsProps = { onChange: handleChange, value: activeTab };
|
|
1155
|
+
var useTab = function (baseId) {
|
|
1156
|
+
var tabId = genTabId(baseId);
|
|
1157
|
+
var tabPanelId = genPanelId(baseId);
|
|
1158
|
+
var tabProps = {
|
|
1159
|
+
id: tabId,
|
|
1160
|
+
label: baseId,
|
|
1161
|
+
value: tabId,
|
|
1162
|
+
'aria-controls': tabPanelId,
|
|
1163
|
+
};
|
|
1164
|
+
var panelProps = {
|
|
1165
|
+
id: tabPanelId,
|
|
1166
|
+
role: 'tabpanel',
|
|
1167
|
+
show: activeTab === tabId,
|
|
1168
|
+
'aria-labelledby': tabId,
|
|
1169
|
+
};
|
|
1170
|
+
return [tabProps, panelProps];
|
|
1171
|
+
};
|
|
1172
|
+
return {
|
|
1173
|
+
TabsProps: TabsProps,
|
|
1174
|
+
useTab: useTab,
|
|
1175
|
+
setActiveTab: function (tabId) { return setActiveTab(tabId); },
|
|
1176
|
+
};
|
|
1528
1177
|
};
|
|
1529
1178
|
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
get: function () {
|
|
1533
|
-
return Alert__default['default'];
|
|
1534
|
-
}
|
|
1535
|
-
});
|
|
1536
|
-
Object.defineProperty(exports, 'Accordion', {
|
|
1537
|
-
enumerable: true,
|
|
1538
|
-
get: function () {
|
|
1539
|
-
return core.Accordion;
|
|
1540
|
-
}
|
|
1541
|
-
});
|
|
1542
|
-
Object.defineProperty(exports, 'AccordionActions', {
|
|
1543
|
-
enumerable: true,
|
|
1544
|
-
get: function () {
|
|
1545
|
-
return core.AccordionActions;
|
|
1546
|
-
}
|
|
1547
|
-
});
|
|
1548
|
-
Object.defineProperty(exports, 'AccordionDetails', {
|
|
1549
|
-
enumerable: true,
|
|
1550
|
-
get: function () {
|
|
1551
|
-
return core.AccordionDetails;
|
|
1552
|
-
}
|
|
1553
|
-
});
|
|
1554
|
-
Object.defineProperty(exports, 'AccordionSummary', {
|
|
1555
|
-
enumerable: true,
|
|
1556
|
-
get: function () {
|
|
1557
|
-
return core.AccordionSummary;
|
|
1558
|
-
}
|
|
1559
|
-
});
|
|
1560
|
-
Object.defineProperty(exports, 'Box', {
|
|
1561
|
-
enumerable: true,
|
|
1562
|
-
get: function () {
|
|
1563
|
-
return core.Box;
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
|
-
Object.defineProperty(exports, 'Breadcrumbs', {
|
|
1179
|
+
exports.Alert = Alert;
|
|
1180
|
+
Object.defineProperty(exports, "Accordion", {
|
|
1567
1181
|
enumerable: true,
|
|
1568
|
-
get: function () {
|
|
1569
|
-
return core.Breadcrumbs;
|
|
1570
|
-
}
|
|
1182
|
+
get: function () { return core.Accordion; }
|
|
1571
1183
|
});
|
|
1572
|
-
Object.defineProperty(exports,
|
|
1184
|
+
Object.defineProperty(exports, "AccordionActions", {
|
|
1573
1185
|
enumerable: true,
|
|
1574
|
-
get: function () {
|
|
1575
|
-
return core.ButtonBase;
|
|
1576
|
-
}
|
|
1186
|
+
get: function () { return core.AccordionActions; }
|
|
1577
1187
|
});
|
|
1578
|
-
Object.defineProperty(exports,
|
|
1188
|
+
Object.defineProperty(exports, "AccordionDetails", {
|
|
1579
1189
|
enumerable: true,
|
|
1580
|
-
get: function () {
|
|
1581
|
-
return core.ClickAwayListener;
|
|
1582
|
-
}
|
|
1190
|
+
get: function () { return core.AccordionDetails; }
|
|
1583
1191
|
});
|
|
1584
|
-
Object.defineProperty(exports,
|
|
1192
|
+
Object.defineProperty(exports, "AccordionSummary", {
|
|
1585
1193
|
enumerable: true,
|
|
1586
|
-
get: function () {
|
|
1587
|
-
return core.Fab;
|
|
1588
|
-
}
|
|
1194
|
+
get: function () { return core.AccordionSummary; }
|
|
1589
1195
|
});
|
|
1590
|
-
Object.defineProperty(exports,
|
|
1196
|
+
Object.defineProperty(exports, "Box", {
|
|
1591
1197
|
enumerable: true,
|
|
1592
|
-
get: function () {
|
|
1593
|
-
return core.GridList;
|
|
1594
|
-
}
|
|
1198
|
+
get: function () { return core.Box; }
|
|
1595
1199
|
});
|
|
1596
|
-
Object.defineProperty(exports,
|
|
1200
|
+
Object.defineProperty(exports, "Breadcrumbs", {
|
|
1597
1201
|
enumerable: true,
|
|
1598
|
-
get: function () {
|
|
1599
|
-
return core.Hidden;
|
|
1600
|
-
}
|
|
1202
|
+
get: function () { return core.Breadcrumbs; }
|
|
1601
1203
|
});
|
|
1602
|
-
Object.defineProperty(exports,
|
|
1204
|
+
Object.defineProperty(exports, "ButtonBase", {
|
|
1603
1205
|
enumerable: true,
|
|
1604
|
-
get: function () {
|
|
1605
|
-
return core.Modal;
|
|
1606
|
-
}
|
|
1206
|
+
get: function () { return core.ButtonBase; }
|
|
1607
1207
|
});
|
|
1608
|
-
Object.defineProperty(exports,
|
|
1208
|
+
Object.defineProperty(exports, "ClickAwayListener", {
|
|
1609
1209
|
enumerable: true,
|
|
1610
|
-
get: function () {
|
|
1611
|
-
return core.Popover;
|
|
1612
|
-
}
|
|
1210
|
+
get: function () { return core.ClickAwayListener; }
|
|
1613
1211
|
});
|
|
1614
|
-
Object.defineProperty(exports,
|
|
1212
|
+
Object.defineProperty(exports, "Fab", {
|
|
1615
1213
|
enumerable: true,
|
|
1616
|
-
get: function () {
|
|
1617
|
-
return core.Popper;
|
|
1618
|
-
}
|
|
1214
|
+
get: function () { return core.Fab; }
|
|
1619
1215
|
});
|
|
1620
|
-
Object.defineProperty(exports,
|
|
1216
|
+
Object.defineProperty(exports, "GridList", {
|
|
1621
1217
|
enumerable: true,
|
|
1622
|
-
get: function () {
|
|
1623
|
-
return core.Step;
|
|
1624
|
-
}
|
|
1218
|
+
get: function () { return core.GridList; }
|
|
1625
1219
|
});
|
|
1626
|
-
Object.defineProperty(exports,
|
|
1220
|
+
Object.defineProperty(exports, "Hidden", {
|
|
1627
1221
|
enumerable: true,
|
|
1628
|
-
get: function () {
|
|
1629
|
-
return core.StepButton;
|
|
1630
|
-
}
|
|
1222
|
+
get: function () { return core.Hidden; }
|
|
1631
1223
|
});
|
|
1632
|
-
Object.defineProperty(exports,
|
|
1224
|
+
Object.defineProperty(exports, "Modal", {
|
|
1633
1225
|
enumerable: true,
|
|
1634
|
-
get: function () {
|
|
1635
|
-
return core.StepConnector;
|
|
1636
|
-
}
|
|
1226
|
+
get: function () { return core.Modal; }
|
|
1637
1227
|
});
|
|
1638
|
-
Object.defineProperty(exports,
|
|
1228
|
+
Object.defineProperty(exports, "Popover", {
|
|
1639
1229
|
enumerable: true,
|
|
1640
|
-
get: function () {
|
|
1641
|
-
return core.StepContent;
|
|
1642
|
-
}
|
|
1230
|
+
get: function () { return core.Popover; }
|
|
1643
1231
|
});
|
|
1644
|
-
Object.defineProperty(exports,
|
|
1232
|
+
Object.defineProperty(exports, "Popper", {
|
|
1645
1233
|
enumerable: true,
|
|
1646
|
-
get: function () {
|
|
1647
|
-
return core.StepIcon;
|
|
1648
|
-
}
|
|
1234
|
+
get: function () { return core.Popper; }
|
|
1649
1235
|
});
|
|
1650
|
-
Object.defineProperty(exports,
|
|
1236
|
+
Object.defineProperty(exports, "Step", {
|
|
1651
1237
|
enumerable: true,
|
|
1652
|
-
get: function () {
|
|
1653
|
-
return core.StepLabel;
|
|
1654
|
-
}
|
|
1238
|
+
get: function () { return core.Step; }
|
|
1655
1239
|
});
|
|
1656
|
-
Object.defineProperty(exports,
|
|
1240
|
+
Object.defineProperty(exports, "StepButton", {
|
|
1657
1241
|
enumerable: true,
|
|
1658
|
-
get: function () {
|
|
1659
|
-
return core.Stepper;
|
|
1660
|
-
}
|
|
1242
|
+
get: function () { return core.StepButton; }
|
|
1661
1243
|
});
|
|
1662
|
-
Object.defineProperty(exports,
|
|
1244
|
+
Object.defineProperty(exports, "StepConnector", {
|
|
1663
1245
|
enumerable: true,
|
|
1664
|
-
get: function () {
|
|
1665
|
-
return core.ThemeProvider;
|
|
1666
|
-
}
|
|
1246
|
+
get: function () { return core.StepConnector; }
|
|
1667
1247
|
});
|
|
1668
|
-
Object.defineProperty(exports,
|
|
1248
|
+
Object.defineProperty(exports, "StepContent", {
|
|
1669
1249
|
enumerable: true,
|
|
1670
|
-
get: function () {
|
|
1671
|
-
return core.Toolbar;
|
|
1672
|
-
}
|
|
1250
|
+
get: function () { return core.StepContent; }
|
|
1673
1251
|
});
|
|
1674
|
-
Object.defineProperty(exports,
|
|
1252
|
+
Object.defineProperty(exports, "StepIcon", {
|
|
1675
1253
|
enumerable: true,
|
|
1676
|
-
get: function () {
|
|
1677
|
-
return core.alpha;
|
|
1678
|
-
}
|
|
1254
|
+
get: function () { return core.StepIcon; }
|
|
1679
1255
|
});
|
|
1680
|
-
Object.defineProperty(exports,
|
|
1256
|
+
Object.defineProperty(exports, "StepLabel", {
|
|
1681
1257
|
enumerable: true,
|
|
1682
|
-
get: function () {
|
|
1683
|
-
return core.createTheme;
|
|
1684
|
-
}
|
|
1258
|
+
get: function () { return core.StepLabel; }
|
|
1685
1259
|
});
|
|
1686
|
-
Object.defineProperty(exports,
|
|
1260
|
+
Object.defineProperty(exports, "Stepper", {
|
|
1687
1261
|
enumerable: true,
|
|
1688
|
-
get: function () {
|
|
1689
|
-
return core.darken;
|
|
1690
|
-
}
|
|
1262
|
+
get: function () { return core.Stepper; }
|
|
1691
1263
|
});
|
|
1692
|
-
Object.defineProperty(exports,
|
|
1264
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
1693
1265
|
enumerable: true,
|
|
1694
|
-
get: function () {
|
|
1695
|
-
return core.decomposeColor;
|
|
1696
|
-
}
|
|
1266
|
+
get: function () { return core.ThemeProvider; }
|
|
1697
1267
|
});
|
|
1698
|
-
Object.defineProperty(exports,
|
|
1268
|
+
Object.defineProperty(exports, "Toolbar", {
|
|
1699
1269
|
enumerable: true,
|
|
1700
|
-
get: function () {
|
|
1701
|
-
return core.getLuminance;
|
|
1702
|
-
}
|
|
1270
|
+
get: function () { return core.Toolbar; }
|
|
1703
1271
|
});
|
|
1704
|
-
Object.defineProperty(exports,
|
|
1272
|
+
Object.defineProperty(exports, "alpha", {
|
|
1705
1273
|
enumerable: true,
|
|
1706
|
-
get: function () {
|
|
1707
|
-
return core.hexToRgb;
|
|
1708
|
-
}
|
|
1274
|
+
get: function () { return core.alpha; }
|
|
1709
1275
|
});
|
|
1710
|
-
Object.defineProperty(exports,
|
|
1276
|
+
Object.defineProperty(exports, "createTheme", {
|
|
1711
1277
|
enumerable: true,
|
|
1712
|
-
get: function () {
|
|
1713
|
-
return core.lighten;
|
|
1714
|
-
}
|
|
1278
|
+
get: function () { return core.createTheme; }
|
|
1715
1279
|
});
|
|
1716
|
-
Object.defineProperty(exports,
|
|
1280
|
+
Object.defineProperty(exports, "darken", {
|
|
1717
1281
|
enumerable: true,
|
|
1718
|
-
get: function () {
|
|
1719
|
-
return core.makeStyles;
|
|
1720
|
-
}
|
|
1282
|
+
get: function () { return core.darken; }
|
|
1721
1283
|
});
|
|
1722
|
-
Object.defineProperty(exports,
|
|
1284
|
+
Object.defineProperty(exports, "decomposeColor", {
|
|
1723
1285
|
enumerable: true,
|
|
1724
|
-
get: function () {
|
|
1725
|
-
return core.recomposeColor;
|
|
1726
|
-
}
|
|
1286
|
+
get: function () { return core.decomposeColor; }
|
|
1727
1287
|
});
|
|
1728
|
-
Object.defineProperty(exports,
|
|
1288
|
+
Object.defineProperty(exports, "getLuminance", {
|
|
1729
1289
|
enumerable: true,
|
|
1730
|
-
get: function () {
|
|
1731
|
-
return core.rgbToHex;
|
|
1732
|
-
}
|
|
1290
|
+
get: function () { return core.getLuminance; }
|
|
1733
1291
|
});
|
|
1734
|
-
Object.defineProperty(exports,
|
|
1292
|
+
Object.defineProperty(exports, "hexToRgb", {
|
|
1735
1293
|
enumerable: true,
|
|
1736
|
-
get: function () {
|
|
1737
|
-
return AppBar__default['default'];
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
Object.defineProperty(exports, 'ServerStyleSheets', {
|
|
1741
|
-
enumerable: true,
|
|
1742
|
-
get: function () {
|
|
1743
|
-
return styles.ServerStyleSheets;
|
|
1744
|
-
}
|
|
1294
|
+
get: function () { return core.hexToRgb; }
|
|
1745
1295
|
});
|
|
1746
|
-
Object.defineProperty(exports,
|
|
1296
|
+
Object.defineProperty(exports, "lighten", {
|
|
1747
1297
|
enumerable: true,
|
|
1748
|
-
get: function () {
|
|
1749
|
-
return Badge__default['default'];
|
|
1750
|
-
}
|
|
1298
|
+
get: function () { return core.lighten; }
|
|
1751
1299
|
});
|
|
1752
|
-
Object.defineProperty(exports,
|
|
1300
|
+
Object.defineProperty(exports, "makeStyles", {
|
|
1753
1301
|
enumerable: true,
|
|
1754
|
-
get: function () {
|
|
1755
|
-
return CircularProgress__default['default'];
|
|
1756
|
-
}
|
|
1302
|
+
get: function () { return core.makeStyles; }
|
|
1757
1303
|
});
|
|
1758
|
-
Object.defineProperty(exports,
|
|
1304
|
+
Object.defineProperty(exports, "recomposeColor", {
|
|
1759
1305
|
enumerable: true,
|
|
1760
|
-
get: function () {
|
|
1761
|
-
return ButtonGroup__default['default'];
|
|
1762
|
-
}
|
|
1306
|
+
get: function () { return core.recomposeColor; }
|
|
1763
1307
|
});
|
|
1764
|
-
Object.defineProperty(exports,
|
|
1308
|
+
Object.defineProperty(exports, "rgbToHex", {
|
|
1765
1309
|
enumerable: true,
|
|
1766
|
-
get: function () {
|
|
1767
|
-
return Card__default['default'];
|
|
1768
|
-
}
|
|
1769
|
-
});
|
|
1770
|
-
Object.defineProperty(exports, 'CardActionArea', {
|
|
1771
|
-
enumerable: true,
|
|
1772
|
-
get: function () {
|
|
1773
|
-
return CardActionArea__default['default'];
|
|
1774
|
-
}
|
|
1775
|
-
});
|
|
1776
|
-
Object.defineProperty(exports, 'CardActions', {
|
|
1777
|
-
enumerable: true,
|
|
1778
|
-
get: function () {
|
|
1779
|
-
return CardActions__default['default'];
|
|
1780
|
-
}
|
|
1781
|
-
});
|
|
1782
|
-
Object.defineProperty(exports, 'CardContent', {
|
|
1783
|
-
enumerable: true,
|
|
1784
|
-
get: function () {
|
|
1785
|
-
return CardContent__default['default'];
|
|
1786
|
-
}
|
|
1787
|
-
});
|
|
1788
|
-
Object.defineProperty(exports, 'CardHeader', {
|
|
1789
|
-
enumerable: true,
|
|
1790
|
-
get: function () {
|
|
1791
|
-
return CardHeader__default['default'];
|
|
1792
|
-
}
|
|
1793
|
-
});
|
|
1794
|
-
Object.defineProperty(exports, 'CardMedia', {
|
|
1795
|
-
enumerable: true,
|
|
1796
|
-
get: function () {
|
|
1797
|
-
return CardMedia__default['default'];
|
|
1798
|
-
}
|
|
1799
|
-
});
|
|
1800
|
-
Object.defineProperty(exports, 'FormControlLabel', {
|
|
1801
|
-
enumerable: true,
|
|
1802
|
-
get: function () {
|
|
1803
|
-
return FormControlLabel__default['default'];
|
|
1804
|
-
}
|
|
1805
|
-
});
|
|
1806
|
-
Object.defineProperty(exports, 'Dialog', {
|
|
1807
|
-
enumerable: true,
|
|
1808
|
-
get: function () {
|
|
1809
|
-
return Dialog__default['default'];
|
|
1810
|
-
}
|
|
1310
|
+
get: function () { return core.rgbToHex; }
|
|
1811
1311
|
});
|
|
1812
|
-
|
|
1312
|
+
exports.AppBar = AppBar;
|
|
1313
|
+
Object.defineProperty(exports, "ServerStyleSheets", {
|
|
1813
1314
|
enumerable: true,
|
|
1814
|
-
get: function () {
|
|
1815
|
-
return DialogActions__default['default'];
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
Object.defineProperty(exports, 'DialogContent', {
|
|
1819
|
-
enumerable: true,
|
|
1820
|
-
get: function () {
|
|
1821
|
-
return DialogContent__default['default'];
|
|
1822
|
-
}
|
|
1823
|
-
});
|
|
1824
|
-
Object.defineProperty(exports, 'DialogTitle', {
|
|
1825
|
-
enumerable: true,
|
|
1826
|
-
get: function () {
|
|
1827
|
-
return DialogTitle__default['default'];
|
|
1828
|
-
}
|
|
1829
|
-
});
|
|
1830
|
-
Object.defineProperty(exports, 'Drawer', {
|
|
1831
|
-
enumerable: true,
|
|
1832
|
-
get: function () {
|
|
1833
|
-
return Drawer__default['default'];
|
|
1834
|
-
}
|
|
1835
|
-
});
|
|
1836
|
-
Object.defineProperty(exports, 'FormControl', {
|
|
1837
|
-
enumerable: true,
|
|
1838
|
-
get: function () {
|
|
1839
|
-
return FormControl__default['default'];
|
|
1840
|
-
}
|
|
1841
|
-
});
|
|
1842
|
-
Object.defineProperty(exports, 'Grid', {
|
|
1843
|
-
enumerable: true,
|
|
1844
|
-
get: function () {
|
|
1845
|
-
return Grid__default['default'];
|
|
1846
|
-
}
|
|
1847
|
-
});
|
|
1848
|
-
Object.defineProperty(exports, 'InputAdornment', {
|
|
1849
|
-
enumerable: true,
|
|
1850
|
-
get: function () {
|
|
1851
|
-
return InputAdornment__default['default'];
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
Object.defineProperty(exports, 'LinearProgress', {
|
|
1855
|
-
enumerable: true,
|
|
1856
|
-
get: function () {
|
|
1857
|
-
return LinearProgress__default['default'];
|
|
1858
|
-
}
|
|
1859
|
-
});
|
|
1860
|
-
Object.defineProperty(exports, 'List', {
|
|
1861
|
-
enumerable: true,
|
|
1862
|
-
get: function () {
|
|
1863
|
-
return List__default['default'];
|
|
1864
|
-
}
|
|
1865
|
-
});
|
|
1866
|
-
Object.defineProperty(exports, 'ListItem', {
|
|
1867
|
-
enumerable: true,
|
|
1868
|
-
get: function () {
|
|
1869
|
-
return ListItem__default['default'];
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
Object.defineProperty(exports, 'ListItemAvatar', {
|
|
1873
|
-
enumerable: true,
|
|
1874
|
-
get: function () {
|
|
1875
|
-
return ListItemAvatar__default['default'];
|
|
1876
|
-
}
|
|
1877
|
-
});
|
|
1878
|
-
Object.defineProperty(exports, 'ListItemIcon', {
|
|
1879
|
-
enumerable: true,
|
|
1880
|
-
get: function () {
|
|
1881
|
-
return ListItemIcon__default['default'];
|
|
1882
|
-
}
|
|
1883
|
-
});
|
|
1884
|
-
Object.defineProperty(exports, 'ListItemSecondaryAction', {
|
|
1885
|
-
enumerable: true,
|
|
1886
|
-
get: function () {
|
|
1887
|
-
return ListItemSecondaryAction__default['default'];
|
|
1888
|
-
}
|
|
1889
|
-
});
|
|
1890
|
-
Object.defineProperty(exports, 'ListItemText', {
|
|
1891
|
-
enumerable: true,
|
|
1892
|
-
get: function () {
|
|
1893
|
-
return ListItemText__default['default'];
|
|
1894
|
-
}
|
|
1895
|
-
});
|
|
1896
|
-
Object.defineProperty(exports, 'Menu', {
|
|
1897
|
-
enumerable: true,
|
|
1898
|
-
get: function () {
|
|
1899
|
-
return Menu__default['default'];
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
Object.defineProperty(exports, 'MenuItem', {
|
|
1903
|
-
enumerable: true,
|
|
1904
|
-
get: function () {
|
|
1905
|
-
return MenuItem__default['default'];
|
|
1906
|
-
}
|
|
1907
|
-
});
|
|
1908
|
-
Object.defineProperty(exports, 'MenuList', {
|
|
1909
|
-
enumerable: true,
|
|
1910
|
-
get: function () {
|
|
1911
|
-
return MenuList__default['default'];
|
|
1912
|
-
}
|
|
1913
|
-
});
|
|
1914
|
-
Object.defineProperty(exports, 'TextField', {
|
|
1915
|
-
enumerable: true,
|
|
1916
|
-
get: function () {
|
|
1917
|
-
return TextField__default['default'];
|
|
1918
|
-
}
|
|
1919
|
-
});
|
|
1920
|
-
Object.defineProperty(exports, 'Tab', {
|
|
1921
|
-
enumerable: true,
|
|
1922
|
-
get: function () {
|
|
1923
|
-
return Tab__default['default'];
|
|
1924
|
-
}
|
|
1925
|
-
});
|
|
1926
|
-
Object.defineProperty(exports, 'Tabs', {
|
|
1927
|
-
enumerable: true,
|
|
1928
|
-
get: function () {
|
|
1929
|
-
return Tabs__default['default'];
|
|
1930
|
-
}
|
|
1315
|
+
get: function () { return styles.ServerStyleSheets; }
|
|
1931
1316
|
});
|
|
1317
|
+
exports.Badge = Badge;
|
|
1318
|
+
exports.CircularProgress = CircularProgress;
|
|
1319
|
+
exports.ButtonGroup = ButtonGroup;
|
|
1320
|
+
exports.Card = Card;
|
|
1321
|
+
exports.CardActionArea = CardActionArea;
|
|
1322
|
+
exports.CardActions = CardActions;
|
|
1323
|
+
exports.CardContent = CardContent;
|
|
1324
|
+
exports.CardHeader = CardHeader;
|
|
1325
|
+
exports.CardMedia = CardMedia;
|
|
1326
|
+
exports.FormControlLabel = FormControlLabel;
|
|
1327
|
+
exports.Dialog = Dialog;
|
|
1328
|
+
exports.DialogActions = DialogActions;
|
|
1329
|
+
exports.DialogContent = DialogContent;
|
|
1330
|
+
exports.DialogTitle = DialogTitle;
|
|
1331
|
+
exports.Drawer = Drawer;
|
|
1332
|
+
exports.FormControl = FormControl;
|
|
1333
|
+
exports.Grid = Grid;
|
|
1334
|
+
exports.InputAdornment = InputAdornment;
|
|
1335
|
+
exports.LinearProgress = LinearProgress;
|
|
1336
|
+
exports.List = List;
|
|
1337
|
+
exports.ListItem = ListItem;
|
|
1338
|
+
exports.ListItemAvatar = ListItemAvatar;
|
|
1339
|
+
exports.ListItemIcon = ListItemIcon;
|
|
1340
|
+
exports.ListItemSecondaryAction = ListItemSecondaryAction;
|
|
1341
|
+
exports.ListItemText = ListItemText;
|
|
1342
|
+
exports.Menu = Menu;
|
|
1343
|
+
exports.MenuItem = MenuItem;
|
|
1344
|
+
exports.MenuList = MenuList;
|
|
1345
|
+
exports.TextField = TextField;
|
|
1346
|
+
exports.Tab = Tab;
|
|
1347
|
+
exports.Tabs = Tabs;
|
|
1932
1348
|
exports.Avatar = Avatar;
|
|
1933
1349
|
exports.BrowserSilhouette = BrowserSilhouette;
|
|
1934
1350
|
exports.Button = Button;
|