@popmenu/common-ui 0.126.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 -1729
- 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 -1479
- 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,1900 +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 northAmericanPhoneRegex = /^(\()?[2-9]{1}\d{2}(\))?[-\s.]?[2-9]{1}\d{2}[-\s.]?\d{4}$/;
|
|
1187
|
-
var ukPhoneRegex = /^((\+?44\s?|0044\s?)(\s?\d{3,5}|\(\d{3,5}\))(\s?\d{3,4})(\s?\d{3,4})$|^07\d{9}$)/;
|
|
1188
|
-
var validatePhoneNumber = function (phone) {
|
|
1189
|
-
if (!phone)
|
|
1190
|
-
return false;
|
|
1191
|
-
return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone);
|
|
1192
|
-
};
|
|
1193
|
-
var FollowerAuthenticationForm = function () {
|
|
1194
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, locationOptions = _a.locationOptions, onActionButtonClick = _a.onActionButtonClick, loading = _a.loading;
|
|
1195
|
-
var classes = useStyles$2();
|
|
1196
|
-
// sign-up form state
|
|
1197
|
-
var formRef = React.useRef(null);
|
|
1198
|
-
var _b = React.useState(false), formValidity = _b[0], setFormValidity = _b[1];
|
|
1199
|
-
var _c = React.useState(), showPhoneErrorText = _c[0], setShowPhoneErrorText = _c[1];
|
|
1200
|
-
var _d = React.useState(), showEmailErrorText = _d[0], setShowEmailErrorText = _d[1];
|
|
1201
|
-
var _e = React.useState(), showLocationErrorText = _e[0], setShowLocationErrorText = _e[1];
|
|
1202
|
-
var _f = React.useState(state.context.phone || ''), signUpPhoneValue = _f[0], setSignUpPhoneValue = _f[1];
|
|
1203
|
-
var _g = React.useState(state.context.email || ''), signUpEmailValue = _g[0], setSignUpEmailValue = _g[1];
|
|
1204
|
-
var checkFieldValidity = function (e) {
|
|
1205
|
-
var _a, _b;
|
|
1206
|
-
var fieldName = e.target.name;
|
|
1207
|
-
var fieldValue = e.target.value;
|
|
1208
|
-
switch (fieldName) {
|
|
1209
|
-
case 'phone':
|
|
1210
|
-
var isPhoneValid = validatePhoneNumber(fieldValue);
|
|
1211
|
-
setSignUpPhoneValue(fieldValue);
|
|
1212
|
-
setShowPhoneErrorText(!isPhoneValid && fieldValue.length > 0);
|
|
1213
|
-
break;
|
|
1214
|
-
case 'email':
|
|
1215
|
-
var emailField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem(fieldName);
|
|
1216
|
-
var isEmailValid = (_b = emailField === null || emailField === void 0 ? void 0 : emailField.validity.valid) !== null && _b !== void 0 ? _b : false;
|
|
1217
|
-
setSignUpEmailValue(fieldValue);
|
|
1218
|
-
setShowEmailErrorText(!isEmailValid && fieldValue.length > 0);
|
|
1219
|
-
break;
|
|
1220
|
-
case 'location':
|
|
1221
|
-
setShowLocationErrorText(!fieldValue);
|
|
1222
|
-
break;
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
|
-
React.useEffect(function () {
|
|
1226
|
-
var _a;
|
|
1227
|
-
var hasValidPhone = Boolean(signUpPhoneValue) && !showPhoneErrorText;
|
|
1228
|
-
var hasValidEmail = Boolean(signUpEmailValue) && !showEmailErrorText;
|
|
1229
|
-
var locationField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem('location');
|
|
1230
|
-
var hasValidLocation = locationField ? Boolean(locationField.value) : true;
|
|
1231
|
-
var hasValidContact = hasValidPhone || hasValidEmail;
|
|
1232
|
-
setFormValidity(hasValidContact && hasValidLocation);
|
|
1233
|
-
}, [signUpPhoneValue, signUpEmailValue, showPhoneErrorText, showEmailErrorText, showLocationErrorText]);
|
|
1234
|
-
var handleSubmit = function (e) {
|
|
1235
|
-
e.preventDefault();
|
|
1236
|
-
var form = e.target;
|
|
1237
|
-
var formData = new FormData(form);
|
|
1238
|
-
var values = Object.fromEntries(formData.entries());
|
|
1239
|
-
onActionButtonClick('submit-form', values);
|
|
1240
|
-
};
|
|
1241
|
-
var formProps = {
|
|
1242
|
-
id: 'follower-authentication-form',
|
|
1243
|
-
className: classes.form,
|
|
1244
|
-
onSubmit: handleSubmit,
|
|
1245
|
-
};
|
|
1246
|
-
switch (state.value) {
|
|
1247
|
-
case 'initial':
|
|
1248
|
-
return (
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
case 'signUp':
|
|
1252
|
-
return (
|
|
1253
|
-
e.preventDefault();
|
|
1254
|
-
} }),
|
|
1255
|
-
|
|
1256
|
-
required: signUpEmailValue ? false : true,
|
|
1257
|
-
}, defaultValue: state.context.phone }),
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
required: signUpPhoneValue ? false : true,
|
|
1261
|
-
type: 'email',
|
|
1262
|
-
}, defaultValue: state.context.email }),
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
case 'emailFound':
|
|
1269
|
-
return (
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
case 'emailAuthCode':
|
|
1273
|
-
return (
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
case 'indirectUserFound': {
|
|
1277
|
-
if (state.context.email) {
|
|
1278
|
-
return (
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
}
|
|
1282
|
-
else if (state.context.phone) {
|
|
1283
|
-
return (
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
else
|
|
1288
|
-
return null;
|
|
1289
|
-
}
|
|
1290
|
-
case 'emailPasswordSignIn':
|
|
1291
|
-
return (
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
case 'phoneFound':
|
|
1296
|
-
return (
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
case 'phoneAuthCode':
|
|
1300
|
-
return (
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
case 'phonePasswordSignIn':
|
|
1304
|
-
return (
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
case 'requirePhone':
|
|
1309
|
-
return (
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
case 'welcome':
|
|
1313
|
-
return null;
|
|
1314
|
-
default:
|
|
1315
|
-
return null;
|
|
1316
|
-
}
|
|
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
|
+
}
|
|
1317
951
|
};
|
|
1318
952
|
|
|
1319
|
-
var useStyles$1 = core.makeStyles(function () { return ({
|
|
1320
|
-
main: {
|
|
1321
|
-
width: '100%',
|
|
1322
|
-
display: 'flex',
|
|
1323
|
-
flexDirection: 'column',
|
|
1324
|
-
gridGap: 16,
|
|
1325
|
-
},
|
|
1326
|
-
}); });
|
|
1327
|
-
var FollowerAuthenticationAltActions = function () {
|
|
1328
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, logos = _a.logos, loading = _a.loading, onActionButtonClick = _a.onActionButtonClick;
|
|
1329
|
-
var classes = useStyles$1();
|
|
1330
|
-
switch (state.value) {
|
|
1331
|
-
case 'initial':
|
|
1332
|
-
return (
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
onActionButtonClick('sign-in-with-facebook');
|
|
1336
|
-
} }, messages.continueWithFacebookButtonLabel),
|
|
1337
|
-
|
|
1338
|
-
onActionButtonClick('sign-in-with-google');
|
|
1339
|
-
} }, messages.continueWithGoogleButtonLabel)));
|
|
1340
|
-
case 'signUp':
|
|
1341
|
-
return null;
|
|
1342
|
-
case 'emailFound':
|
|
1343
|
-
return (
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
onActionButtonClick('sign-in-with-password');
|
|
1347
|
-
} }, messages.signInWithPassword)));
|
|
1348
|
-
case 'emailAuthCode':
|
|
1349
|
-
return (
|
|
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.resendAuthCode)));
|
|
1356
|
-
case 'indirectUserFound':
|
|
1357
|
-
return (
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
onActionButtonClick('use-different-account');
|
|
1361
|
-
} }, messages.indirectUserFoundCtaButtonLabelAlt)));
|
|
1362
|
-
case 'emailPasswordSignIn':
|
|
1363
|
-
return (
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1367
|
-
var formData = new FormData(form);
|
|
1368
|
-
var values = Object.fromEntries(formData.entries());
|
|
1369
|
-
onActionButtonClick('request-auth-code-email', values);
|
|
1370
|
-
} }, messages.emailFoundCtaButtonLabel)));
|
|
1371
|
-
case 'phoneFound':
|
|
1372
|
-
return null;
|
|
1373
|
-
case 'phoneAuthCode':
|
|
1374
|
-
return (
|
|
1375
|
-
|
|
1376
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1377
|
-
var formData = new FormData(form);
|
|
1378
|
-
var values = Object.fromEntries(formData.entries());
|
|
1379
|
-
onActionButtonClick('request-auth-code-sms', values);
|
|
1380
|
-
} }, messages.resendAuthCode)));
|
|
1381
|
-
case 'phonePasswordSignIn':
|
|
1382
|
-
return (
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
var form = document.querySelector('#follower-authentication-form');
|
|
1386
|
-
var formData = new FormData(form);
|
|
1387
|
-
var values = Object.fromEntries(formData.entries());
|
|
1388
|
-
onActionButtonClick('request-auth-code-sms', values);
|
|
1389
|
-
} }, messages.phoneFoundCtaButtonLabel)));
|
|
1390
|
-
case 'welcome':
|
|
1391
|
-
return (
|
|
1392
|
-
onActionButtonClick('close');
|
|
1393
|
-
} }, messages.done));
|
|
1394
|
-
default:
|
|
1395
|
-
return null;
|
|
1396
|
-
}
|
|
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
|
+
}
|
|
1397
1031
|
};
|
|
1398
1032
|
|
|
1399
|
-
var FollowerAuthenticationBody = function () {
|
|
1400
|
-
return (
|
|
1401
|
-
|
|
1402
|
-
|
|
1033
|
+
var FollowerAuthenticationBody = function () {
|
|
1034
|
+
return (React.createElement(React.Fragment, null,
|
|
1035
|
+
React.createElement(FollowerAuthenticationForm, null),
|
|
1036
|
+
React.createElement(FollowerAuthenticationAltActions, null)));
|
|
1403
1037
|
};
|
|
1404
1038
|
|
|
1405
|
-
var FollowerAuthenticationFooter = function () {
|
|
1406
|
-
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, logos = _a.logos;
|
|
1407
|
-
return (
|
|
1408
|
-
|
|
1409
|
-
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));
|
|
1410
1044
|
};
|
|
1411
1045
|
|
|
1412
|
-
var FollowerAuthenticationTitle = function () {
|
|
1413
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1414
|
-
var title = messages[state.value + "Title"];
|
|
1415
|
-
return (
|
|
1416
|
-
|
|
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)));
|
|
1417
1051
|
};
|
|
1418
1052
|
|
|
1419
|
-
var FollowerAuthenticationInfo = function () {
|
|
1420
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1421
|
-
var info = messages[state.value + "Info"];
|
|
1422
|
-
if (!info)
|
|
1423
|
-
return null;
|
|
1424
|
-
return (
|
|
1425
|
-
|
|
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)));
|
|
1426
1060
|
};
|
|
1427
1061
|
|
|
1428
|
-
var useStyles = core.makeStyles(function () { return ({
|
|
1429
|
-
root: {
|
|
1430
|
-
position: 'absolute',
|
|
1431
|
-
top: 0,
|
|
1432
|
-
right: 0,
|
|
1433
|
-
},
|
|
1434
|
-
}); });
|
|
1435
|
-
var FollowerAuthenticationCloseButton = function () {
|
|
1436
|
-
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, onActionButtonClick = _a.onActionButtonClick;
|
|
1437
|
-
var classes = useStyles();
|
|
1438
|
-
var handleClose = function () {
|
|
1439
|
-
onActionButtonClick('close');
|
|
1440
|
-
};
|
|
1441
|
-
return (
|
|
1442
|
-
|
|
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)));
|
|
1443
1077
|
};
|
|
1444
1078
|
|
|
1445
|
-
var theme = {
|
|
1446
|
-
palette: {
|
|
1447
|
-
primary: { main: '#2E3042' },
|
|
1448
|
-
},
|
|
1449
|
-
typography: {
|
|
1450
|
-
h1: {
|
|
1451
|
-
fontFamily: 'Poppins',
|
|
1452
|
-
fontSize: '24px',
|
|
1453
|
-
fontWeight: 400,
|
|
1454
|
-
lineHeight: '36px',
|
|
1455
|
-
},
|
|
1456
|
-
},
|
|
1457
|
-
props: {
|
|
1458
|
-
MuiTextField: {
|
|
1459
|
-
variant: 'outlined',
|
|
1460
|
-
fullWidth: true,
|
|
1461
|
-
},
|
|
1462
|
-
MuiButton: {
|
|
1463
|
-
variant: 'contained',
|
|
1464
|
-
color: 'primary',
|
|
1465
|
-
disableElevation: true,
|
|
1466
|
-
fullWidth: true,
|
|
1467
|
-
},
|
|
1468
|
-
},
|
|
1469
|
-
overrides: {
|
|
1470
|
-
MuiButton: {
|
|
1471
|
-
root: {
|
|
1472
|
-
borderRadius: 32,
|
|
1473
|
-
textTransform: 'none',
|
|
1474
|
-
},
|
|
1475
|
-
},
|
|
1476
|
-
},
|
|
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
|
+
},
|
|
1477
1111
|
};
|
|
1478
1112
|
|
|
1479
|
-
var FollowerAuthenticationDialog = function (props) {
|
|
1480
|
-
var open = props.open, restProps = __rest(props, ["open"]);
|
|
1481
|
-
var theme$1 = core.createTheme(theme);
|
|
1482
|
-
var fullScreen = core.useMediaQuery(function (_a) {
|
|
1483
|
-
var breakpoints = _a.breakpoints;
|
|
1484
|
-
return breakpoints.down('sm');
|
|
1485
|
-
});
|
|
1486
|
-
var handleClose = function () {
|
|
1487
|
-
restProps.onActionButtonClick('close');
|
|
1488
|
-
};
|
|
1489
|
-
return (
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
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))))));
|
|
1499
1133
|
};
|
|
1500
1134
|
|
|
1501
|
-
var useCollapsibleText = function () {
|
|
1502
|
-
var _a = React.useState(false), open = _a[0], setOpen = _a[1];
|
|
1503
|
-
var collapseState = React.useState(false);
|
|
1504
|
-
var toggle = function () { return collapseState[0] && setOpen(!open); };
|
|
1505
|
-
return {
|
|
1506
|
-
collapsibleText: {
|
|
1507
|
-
open: open,
|
|
1508
|
-
collapseState: collapseState,
|
|
1509
|
-
},
|
|
1510
|
-
toggle: toggle,
|
|
1511
|
-
};
|
|
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
|
+
};
|
|
1512
1146
|
};
|
|
1513
1147
|
|
|
1514
|
-
var useTabs = function (options) {
|
|
1515
|
-
var initialTab = options.initialTab;
|
|
1516
|
-
var genTabId = function (id) { return ("tab-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1517
|
-
var genPanelId = function (id) { return ("tab-panel-" + id).toLowerCase().replace(/ /g, '-'); };
|
|
1518
|
-
var _a = React.useState(genTabId(initialTab)), activeTab = _a[0], setActiveTab = _a[1];
|
|
1519
|
-
var handleChange = function (_, nextTab) { return setActiveTab(nextTab); };
|
|
1520
|
-
var TabsProps = { onChange: handleChange, value: activeTab };
|
|
1521
|
-
var useTab = function (baseId) {
|
|
1522
|
-
var tabId = genTabId(baseId);
|
|
1523
|
-
var tabPanelId = genPanelId(baseId);
|
|
1524
|
-
var tabProps = {
|
|
1525
|
-
id: tabId,
|
|
1526
|
-
label: baseId,
|
|
1527
|
-
value: tabId,
|
|
1528
|
-
'aria-controls': tabPanelId,
|
|
1529
|
-
};
|
|
1530
|
-
var panelProps = {
|
|
1531
|
-
id: tabPanelId,
|
|
1532
|
-
role: 'tabpanel',
|
|
1533
|
-
show: activeTab === tabId,
|
|
1534
|
-
'aria-labelledby': tabId,
|
|
1535
|
-
};
|
|
1536
|
-
return [tabProps, panelProps];
|
|
1537
|
-
};
|
|
1538
|
-
return {
|
|
1539
|
-
TabsProps: TabsProps,
|
|
1540
|
-
useTab: useTab,
|
|
1541
|
-
setActiveTab: function (tabId) { return setActiveTab(tabId); },
|
|
1542
|
-
};
|
|
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
|
+
};
|
|
1543
1177
|
};
|
|
1544
1178
|
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
get: function () {
|
|
1548
|
-
return Alert__default['default'];
|
|
1549
|
-
}
|
|
1550
|
-
});
|
|
1551
|
-
Object.defineProperty(exports, 'Accordion', {
|
|
1552
|
-
enumerable: true,
|
|
1553
|
-
get: function () {
|
|
1554
|
-
return core.Accordion;
|
|
1555
|
-
}
|
|
1556
|
-
});
|
|
1557
|
-
Object.defineProperty(exports, 'AccordionActions', {
|
|
1558
|
-
enumerable: true,
|
|
1559
|
-
get: function () {
|
|
1560
|
-
return core.AccordionActions;
|
|
1561
|
-
}
|
|
1562
|
-
});
|
|
1563
|
-
Object.defineProperty(exports, 'AccordionDetails', {
|
|
1564
|
-
enumerable: true,
|
|
1565
|
-
get: function () {
|
|
1566
|
-
return core.AccordionDetails;
|
|
1567
|
-
}
|
|
1568
|
-
});
|
|
1569
|
-
Object.defineProperty(exports, 'AccordionSummary', {
|
|
1570
|
-
enumerable: true,
|
|
1571
|
-
get: function () {
|
|
1572
|
-
return core.AccordionSummary;
|
|
1573
|
-
}
|
|
1574
|
-
});
|
|
1575
|
-
Object.defineProperty(exports, 'Box', {
|
|
1576
|
-
enumerable: true,
|
|
1577
|
-
get: function () {
|
|
1578
|
-
return core.Box;
|
|
1579
|
-
}
|
|
1580
|
-
});
|
|
1581
|
-
Object.defineProperty(exports, 'Breadcrumbs', {
|
|
1179
|
+
exports.Alert = Alert;
|
|
1180
|
+
Object.defineProperty(exports, "Accordion", {
|
|
1582
1181
|
enumerable: true,
|
|
1583
|
-
get: function () {
|
|
1584
|
-
return core.Breadcrumbs;
|
|
1585
|
-
}
|
|
1182
|
+
get: function () { return core.Accordion; }
|
|
1586
1183
|
});
|
|
1587
|
-
Object.defineProperty(exports,
|
|
1184
|
+
Object.defineProperty(exports, "AccordionActions", {
|
|
1588
1185
|
enumerable: true,
|
|
1589
|
-
get: function () {
|
|
1590
|
-
return core.ButtonBase;
|
|
1591
|
-
}
|
|
1186
|
+
get: function () { return core.AccordionActions; }
|
|
1592
1187
|
});
|
|
1593
|
-
Object.defineProperty(exports,
|
|
1188
|
+
Object.defineProperty(exports, "AccordionDetails", {
|
|
1594
1189
|
enumerable: true,
|
|
1595
|
-
get: function () {
|
|
1596
|
-
return core.ClickAwayListener;
|
|
1597
|
-
}
|
|
1190
|
+
get: function () { return core.AccordionDetails; }
|
|
1598
1191
|
});
|
|
1599
|
-
Object.defineProperty(exports,
|
|
1192
|
+
Object.defineProperty(exports, "AccordionSummary", {
|
|
1600
1193
|
enumerable: true,
|
|
1601
|
-
get: function () {
|
|
1602
|
-
return core.Fab;
|
|
1603
|
-
}
|
|
1194
|
+
get: function () { return core.AccordionSummary; }
|
|
1604
1195
|
});
|
|
1605
|
-
Object.defineProperty(exports,
|
|
1196
|
+
Object.defineProperty(exports, "Box", {
|
|
1606
1197
|
enumerable: true,
|
|
1607
|
-
get: function () {
|
|
1608
|
-
return core.GridList;
|
|
1609
|
-
}
|
|
1198
|
+
get: function () { return core.Box; }
|
|
1610
1199
|
});
|
|
1611
|
-
Object.defineProperty(exports,
|
|
1200
|
+
Object.defineProperty(exports, "Breadcrumbs", {
|
|
1612
1201
|
enumerable: true,
|
|
1613
|
-
get: function () {
|
|
1614
|
-
return core.Hidden;
|
|
1615
|
-
}
|
|
1202
|
+
get: function () { return core.Breadcrumbs; }
|
|
1616
1203
|
});
|
|
1617
|
-
Object.defineProperty(exports,
|
|
1204
|
+
Object.defineProperty(exports, "ButtonBase", {
|
|
1618
1205
|
enumerable: true,
|
|
1619
|
-
get: function () {
|
|
1620
|
-
return core.Modal;
|
|
1621
|
-
}
|
|
1206
|
+
get: function () { return core.ButtonBase; }
|
|
1622
1207
|
});
|
|
1623
|
-
Object.defineProperty(exports,
|
|
1208
|
+
Object.defineProperty(exports, "ClickAwayListener", {
|
|
1624
1209
|
enumerable: true,
|
|
1625
|
-
get: function () {
|
|
1626
|
-
return core.Popover;
|
|
1627
|
-
}
|
|
1210
|
+
get: function () { return core.ClickAwayListener; }
|
|
1628
1211
|
});
|
|
1629
|
-
Object.defineProperty(exports,
|
|
1212
|
+
Object.defineProperty(exports, "Fab", {
|
|
1630
1213
|
enumerable: true,
|
|
1631
|
-
get: function () {
|
|
1632
|
-
return core.Popper;
|
|
1633
|
-
}
|
|
1214
|
+
get: function () { return core.Fab; }
|
|
1634
1215
|
});
|
|
1635
|
-
Object.defineProperty(exports,
|
|
1216
|
+
Object.defineProperty(exports, "GridList", {
|
|
1636
1217
|
enumerable: true,
|
|
1637
|
-
get: function () {
|
|
1638
|
-
return core.Step;
|
|
1639
|
-
}
|
|
1218
|
+
get: function () { return core.GridList; }
|
|
1640
1219
|
});
|
|
1641
|
-
Object.defineProperty(exports,
|
|
1220
|
+
Object.defineProperty(exports, "Hidden", {
|
|
1642
1221
|
enumerable: true,
|
|
1643
|
-
get: function () {
|
|
1644
|
-
return core.StepButton;
|
|
1645
|
-
}
|
|
1222
|
+
get: function () { return core.Hidden; }
|
|
1646
1223
|
});
|
|
1647
|
-
Object.defineProperty(exports,
|
|
1224
|
+
Object.defineProperty(exports, "Modal", {
|
|
1648
1225
|
enumerable: true,
|
|
1649
|
-
get: function () {
|
|
1650
|
-
return core.StepConnector;
|
|
1651
|
-
}
|
|
1226
|
+
get: function () { return core.Modal; }
|
|
1652
1227
|
});
|
|
1653
|
-
Object.defineProperty(exports,
|
|
1228
|
+
Object.defineProperty(exports, "Popover", {
|
|
1654
1229
|
enumerable: true,
|
|
1655
|
-
get: function () {
|
|
1656
|
-
return core.StepContent;
|
|
1657
|
-
}
|
|
1230
|
+
get: function () { return core.Popover; }
|
|
1658
1231
|
});
|
|
1659
|
-
Object.defineProperty(exports,
|
|
1232
|
+
Object.defineProperty(exports, "Popper", {
|
|
1660
1233
|
enumerable: true,
|
|
1661
|
-
get: function () {
|
|
1662
|
-
return core.StepIcon;
|
|
1663
|
-
}
|
|
1234
|
+
get: function () { return core.Popper; }
|
|
1664
1235
|
});
|
|
1665
|
-
Object.defineProperty(exports,
|
|
1236
|
+
Object.defineProperty(exports, "Step", {
|
|
1666
1237
|
enumerable: true,
|
|
1667
|
-
get: function () {
|
|
1668
|
-
return core.StepLabel;
|
|
1669
|
-
}
|
|
1238
|
+
get: function () { return core.Step; }
|
|
1670
1239
|
});
|
|
1671
|
-
Object.defineProperty(exports,
|
|
1240
|
+
Object.defineProperty(exports, "StepButton", {
|
|
1672
1241
|
enumerable: true,
|
|
1673
|
-
get: function () {
|
|
1674
|
-
return core.Stepper;
|
|
1675
|
-
}
|
|
1242
|
+
get: function () { return core.StepButton; }
|
|
1676
1243
|
});
|
|
1677
|
-
Object.defineProperty(exports,
|
|
1244
|
+
Object.defineProperty(exports, "StepConnector", {
|
|
1678
1245
|
enumerable: true,
|
|
1679
|
-
get: function () {
|
|
1680
|
-
return core.ThemeProvider;
|
|
1681
|
-
}
|
|
1246
|
+
get: function () { return core.StepConnector; }
|
|
1682
1247
|
});
|
|
1683
|
-
Object.defineProperty(exports,
|
|
1248
|
+
Object.defineProperty(exports, "StepContent", {
|
|
1684
1249
|
enumerable: true,
|
|
1685
|
-
get: function () {
|
|
1686
|
-
return core.Toolbar;
|
|
1687
|
-
}
|
|
1250
|
+
get: function () { return core.StepContent; }
|
|
1688
1251
|
});
|
|
1689
|
-
Object.defineProperty(exports,
|
|
1252
|
+
Object.defineProperty(exports, "StepIcon", {
|
|
1690
1253
|
enumerable: true,
|
|
1691
|
-
get: function () {
|
|
1692
|
-
return core.alpha;
|
|
1693
|
-
}
|
|
1254
|
+
get: function () { return core.StepIcon; }
|
|
1694
1255
|
});
|
|
1695
|
-
Object.defineProperty(exports,
|
|
1256
|
+
Object.defineProperty(exports, "StepLabel", {
|
|
1696
1257
|
enumerable: true,
|
|
1697
|
-
get: function () {
|
|
1698
|
-
return core.createTheme;
|
|
1699
|
-
}
|
|
1258
|
+
get: function () { return core.StepLabel; }
|
|
1700
1259
|
});
|
|
1701
|
-
Object.defineProperty(exports,
|
|
1260
|
+
Object.defineProperty(exports, "Stepper", {
|
|
1702
1261
|
enumerable: true,
|
|
1703
|
-
get: function () {
|
|
1704
|
-
return core.darken;
|
|
1705
|
-
}
|
|
1262
|
+
get: function () { return core.Stepper; }
|
|
1706
1263
|
});
|
|
1707
|
-
Object.defineProperty(exports,
|
|
1264
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
1708
1265
|
enumerable: true,
|
|
1709
|
-
get: function () {
|
|
1710
|
-
return core.decomposeColor;
|
|
1711
|
-
}
|
|
1266
|
+
get: function () { return core.ThemeProvider; }
|
|
1712
1267
|
});
|
|
1713
|
-
Object.defineProperty(exports,
|
|
1268
|
+
Object.defineProperty(exports, "Toolbar", {
|
|
1714
1269
|
enumerable: true,
|
|
1715
|
-
get: function () {
|
|
1716
|
-
return core.getLuminance;
|
|
1717
|
-
}
|
|
1270
|
+
get: function () { return core.Toolbar; }
|
|
1718
1271
|
});
|
|
1719
|
-
Object.defineProperty(exports,
|
|
1272
|
+
Object.defineProperty(exports, "alpha", {
|
|
1720
1273
|
enumerable: true,
|
|
1721
|
-
get: function () {
|
|
1722
|
-
return core.hexToRgb;
|
|
1723
|
-
}
|
|
1274
|
+
get: function () { return core.alpha; }
|
|
1724
1275
|
});
|
|
1725
|
-
Object.defineProperty(exports,
|
|
1276
|
+
Object.defineProperty(exports, "createTheme", {
|
|
1726
1277
|
enumerable: true,
|
|
1727
|
-
get: function () {
|
|
1728
|
-
return core.lighten;
|
|
1729
|
-
}
|
|
1278
|
+
get: function () { return core.createTheme; }
|
|
1730
1279
|
});
|
|
1731
|
-
Object.defineProperty(exports,
|
|
1280
|
+
Object.defineProperty(exports, "darken", {
|
|
1732
1281
|
enumerable: true,
|
|
1733
|
-
get: function () {
|
|
1734
|
-
return core.makeStyles;
|
|
1735
|
-
}
|
|
1282
|
+
get: function () { return core.darken; }
|
|
1736
1283
|
});
|
|
1737
|
-
Object.defineProperty(exports,
|
|
1284
|
+
Object.defineProperty(exports, "decomposeColor", {
|
|
1738
1285
|
enumerable: true,
|
|
1739
|
-
get: function () {
|
|
1740
|
-
return core.recomposeColor;
|
|
1741
|
-
}
|
|
1286
|
+
get: function () { return core.decomposeColor; }
|
|
1742
1287
|
});
|
|
1743
|
-
Object.defineProperty(exports,
|
|
1288
|
+
Object.defineProperty(exports, "getLuminance", {
|
|
1744
1289
|
enumerable: true,
|
|
1745
|
-
get: function () {
|
|
1746
|
-
return core.rgbToHex;
|
|
1747
|
-
}
|
|
1290
|
+
get: function () { return core.getLuminance; }
|
|
1748
1291
|
});
|
|
1749
|
-
Object.defineProperty(exports,
|
|
1292
|
+
Object.defineProperty(exports, "hexToRgb", {
|
|
1750
1293
|
enumerable: true,
|
|
1751
|
-
get: function () {
|
|
1752
|
-
return AppBar__default['default'];
|
|
1753
|
-
}
|
|
1754
|
-
});
|
|
1755
|
-
Object.defineProperty(exports, 'ServerStyleSheets', {
|
|
1756
|
-
enumerable: true,
|
|
1757
|
-
get: function () {
|
|
1758
|
-
return styles.ServerStyleSheets;
|
|
1759
|
-
}
|
|
1294
|
+
get: function () { return core.hexToRgb; }
|
|
1760
1295
|
});
|
|
1761
|
-
Object.defineProperty(exports,
|
|
1296
|
+
Object.defineProperty(exports, "lighten", {
|
|
1762
1297
|
enumerable: true,
|
|
1763
|
-
get: function () {
|
|
1764
|
-
return Badge__default['default'];
|
|
1765
|
-
}
|
|
1298
|
+
get: function () { return core.lighten; }
|
|
1766
1299
|
});
|
|
1767
|
-
Object.defineProperty(exports,
|
|
1300
|
+
Object.defineProperty(exports, "makeStyles", {
|
|
1768
1301
|
enumerable: true,
|
|
1769
|
-
get: function () {
|
|
1770
|
-
return CircularProgress__default['default'];
|
|
1771
|
-
}
|
|
1302
|
+
get: function () { return core.makeStyles; }
|
|
1772
1303
|
});
|
|
1773
|
-
Object.defineProperty(exports,
|
|
1304
|
+
Object.defineProperty(exports, "recomposeColor", {
|
|
1774
1305
|
enumerable: true,
|
|
1775
|
-
get: function () {
|
|
1776
|
-
return ButtonGroup__default['default'];
|
|
1777
|
-
}
|
|
1306
|
+
get: function () { return core.recomposeColor; }
|
|
1778
1307
|
});
|
|
1779
|
-
Object.defineProperty(exports,
|
|
1308
|
+
Object.defineProperty(exports, "rgbToHex", {
|
|
1780
1309
|
enumerable: true,
|
|
1781
|
-
get: function () {
|
|
1782
|
-
return Card__default['default'];
|
|
1783
|
-
}
|
|
1784
|
-
});
|
|
1785
|
-
Object.defineProperty(exports, 'CardActionArea', {
|
|
1786
|
-
enumerable: true,
|
|
1787
|
-
get: function () {
|
|
1788
|
-
return CardActionArea__default['default'];
|
|
1789
|
-
}
|
|
1790
|
-
});
|
|
1791
|
-
Object.defineProperty(exports, 'CardActions', {
|
|
1792
|
-
enumerable: true,
|
|
1793
|
-
get: function () {
|
|
1794
|
-
return CardActions__default['default'];
|
|
1795
|
-
}
|
|
1796
|
-
});
|
|
1797
|
-
Object.defineProperty(exports, 'CardContent', {
|
|
1798
|
-
enumerable: true,
|
|
1799
|
-
get: function () {
|
|
1800
|
-
return CardContent__default['default'];
|
|
1801
|
-
}
|
|
1802
|
-
});
|
|
1803
|
-
Object.defineProperty(exports, 'CardHeader', {
|
|
1804
|
-
enumerable: true,
|
|
1805
|
-
get: function () {
|
|
1806
|
-
return CardHeader__default['default'];
|
|
1807
|
-
}
|
|
1808
|
-
});
|
|
1809
|
-
Object.defineProperty(exports, 'CardMedia', {
|
|
1810
|
-
enumerable: true,
|
|
1811
|
-
get: function () {
|
|
1812
|
-
return CardMedia__default['default'];
|
|
1813
|
-
}
|
|
1814
|
-
});
|
|
1815
|
-
Object.defineProperty(exports, 'FormControlLabel', {
|
|
1816
|
-
enumerable: true,
|
|
1817
|
-
get: function () {
|
|
1818
|
-
return FormControlLabel__default['default'];
|
|
1819
|
-
}
|
|
1820
|
-
});
|
|
1821
|
-
Object.defineProperty(exports, 'Dialog', {
|
|
1822
|
-
enumerable: true,
|
|
1823
|
-
get: function () {
|
|
1824
|
-
return Dialog__default['default'];
|
|
1825
|
-
}
|
|
1310
|
+
get: function () { return core.rgbToHex; }
|
|
1826
1311
|
});
|
|
1827
|
-
|
|
1312
|
+
exports.AppBar = AppBar;
|
|
1313
|
+
Object.defineProperty(exports, "ServerStyleSheets", {
|
|
1828
1314
|
enumerable: true,
|
|
1829
|
-
get: function () {
|
|
1830
|
-
return DialogActions__default['default'];
|
|
1831
|
-
}
|
|
1832
|
-
});
|
|
1833
|
-
Object.defineProperty(exports, 'DialogContent', {
|
|
1834
|
-
enumerable: true,
|
|
1835
|
-
get: function () {
|
|
1836
|
-
return DialogContent__default['default'];
|
|
1837
|
-
}
|
|
1838
|
-
});
|
|
1839
|
-
Object.defineProperty(exports, 'DialogTitle', {
|
|
1840
|
-
enumerable: true,
|
|
1841
|
-
get: function () {
|
|
1842
|
-
return DialogTitle__default['default'];
|
|
1843
|
-
}
|
|
1844
|
-
});
|
|
1845
|
-
Object.defineProperty(exports, 'Drawer', {
|
|
1846
|
-
enumerable: true,
|
|
1847
|
-
get: function () {
|
|
1848
|
-
return Drawer__default['default'];
|
|
1849
|
-
}
|
|
1850
|
-
});
|
|
1851
|
-
Object.defineProperty(exports, 'FormControl', {
|
|
1852
|
-
enumerable: true,
|
|
1853
|
-
get: function () {
|
|
1854
|
-
return FormControl__default['default'];
|
|
1855
|
-
}
|
|
1856
|
-
});
|
|
1857
|
-
Object.defineProperty(exports, 'Grid', {
|
|
1858
|
-
enumerable: true,
|
|
1859
|
-
get: function () {
|
|
1860
|
-
return Grid__default['default'];
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1863
|
-
Object.defineProperty(exports, 'InputAdornment', {
|
|
1864
|
-
enumerable: true,
|
|
1865
|
-
get: function () {
|
|
1866
|
-
return InputAdornment__default['default'];
|
|
1867
|
-
}
|
|
1868
|
-
});
|
|
1869
|
-
Object.defineProperty(exports, 'LinearProgress', {
|
|
1870
|
-
enumerable: true,
|
|
1871
|
-
get: function () {
|
|
1872
|
-
return LinearProgress__default['default'];
|
|
1873
|
-
}
|
|
1874
|
-
});
|
|
1875
|
-
Object.defineProperty(exports, 'List', {
|
|
1876
|
-
enumerable: true,
|
|
1877
|
-
get: function () {
|
|
1878
|
-
return List__default['default'];
|
|
1879
|
-
}
|
|
1880
|
-
});
|
|
1881
|
-
Object.defineProperty(exports, 'ListItem', {
|
|
1882
|
-
enumerable: true,
|
|
1883
|
-
get: function () {
|
|
1884
|
-
return ListItem__default['default'];
|
|
1885
|
-
}
|
|
1886
|
-
});
|
|
1887
|
-
Object.defineProperty(exports, 'ListItemAvatar', {
|
|
1888
|
-
enumerable: true,
|
|
1889
|
-
get: function () {
|
|
1890
|
-
return ListItemAvatar__default['default'];
|
|
1891
|
-
}
|
|
1892
|
-
});
|
|
1893
|
-
Object.defineProperty(exports, 'ListItemIcon', {
|
|
1894
|
-
enumerable: true,
|
|
1895
|
-
get: function () {
|
|
1896
|
-
return ListItemIcon__default['default'];
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
Object.defineProperty(exports, 'ListItemSecondaryAction', {
|
|
1900
|
-
enumerable: true,
|
|
1901
|
-
get: function () {
|
|
1902
|
-
return ListItemSecondaryAction__default['default'];
|
|
1903
|
-
}
|
|
1904
|
-
});
|
|
1905
|
-
Object.defineProperty(exports, 'ListItemText', {
|
|
1906
|
-
enumerable: true,
|
|
1907
|
-
get: function () {
|
|
1908
|
-
return ListItemText__default['default'];
|
|
1909
|
-
}
|
|
1910
|
-
});
|
|
1911
|
-
Object.defineProperty(exports, 'Menu', {
|
|
1912
|
-
enumerable: true,
|
|
1913
|
-
get: function () {
|
|
1914
|
-
return Menu__default['default'];
|
|
1915
|
-
}
|
|
1916
|
-
});
|
|
1917
|
-
Object.defineProperty(exports, 'MenuItem', {
|
|
1918
|
-
enumerable: true,
|
|
1919
|
-
get: function () {
|
|
1920
|
-
return MenuItem__default['default'];
|
|
1921
|
-
}
|
|
1922
|
-
});
|
|
1923
|
-
Object.defineProperty(exports, 'MenuList', {
|
|
1924
|
-
enumerable: true,
|
|
1925
|
-
get: function () {
|
|
1926
|
-
return MenuList__default['default'];
|
|
1927
|
-
}
|
|
1928
|
-
});
|
|
1929
|
-
Object.defineProperty(exports, 'TextField', {
|
|
1930
|
-
enumerable: true,
|
|
1931
|
-
get: function () {
|
|
1932
|
-
return TextField__default['default'];
|
|
1933
|
-
}
|
|
1934
|
-
});
|
|
1935
|
-
Object.defineProperty(exports, 'Tab', {
|
|
1936
|
-
enumerable: true,
|
|
1937
|
-
get: function () {
|
|
1938
|
-
return Tab__default['default'];
|
|
1939
|
-
}
|
|
1940
|
-
});
|
|
1941
|
-
Object.defineProperty(exports, 'Tabs', {
|
|
1942
|
-
enumerable: true,
|
|
1943
|
-
get: function () {
|
|
1944
|
-
return Tabs__default['default'];
|
|
1945
|
-
}
|
|
1315
|
+
get: function () { return styles.ServerStyleSheets; }
|
|
1946
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;
|
|
1947
1348
|
exports.Avatar = Avatar;
|
|
1948
1349
|
exports.BrowserSilhouette = BrowserSilhouette;
|
|
1949
1350
|
exports.Button = Button;
|