@popmenu/common-ui 0.125.0 → 0.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{components → esm/components}/Accordion/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionActions/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionDetails/index.d.ts +1 -1
- package/build/{components → esm/components}/AccordionSummary/index.d.ts +1 -1
- package/build/{components → esm/components}/Alert/index.d.ts +1 -1
- package/build/{components → esm/components}/AppBar/index.d.ts +1 -1
- package/build/esm/components/Avatar/Avatar.d.ts +3 -0
- package/build/esm/components/Avatar/Avatar.js +39 -0
- package/build/esm/components/Avatar/Avatar.js.map +1 -0
- package/build/{components → esm/components}/Avatar/AvatarProps.d.ts +22 -22
- package/build/{components → esm/components}/Avatar/avatar.styles.d.ts +2 -2
- package/build/esm/components/Avatar/avatar.styles.js +41 -0
- package/build/esm/components/Avatar/avatar.styles.js.map +1 -0
- package/build/{components → esm/components}/Avatar/index.d.ts +2 -2
- package/build/{components → esm/components}/Avatar/util/useImageProps.d.ts +10 -10
- package/build/esm/components/Avatar/util/useImageProps.js +21 -0
- package/build/esm/components/Avatar/util/useImageProps.js.map +1 -0
- package/build/{components → esm/components}/Badge/index.d.ts +1 -1
- package/build/{components → esm/components}/Box/Box.d.ts +3 -3
- package/build/{components → esm/components}/Box/BoxProps.d.ts +5 -5
- package/build/{components → esm/components}/Box/BoxStyles.d.ts +1 -1
- package/build/{components → esm/components}/Box/index.d.ts +7 -7
- package/build/{components → esm/components}/Breadcrumbs/index.d.ts +1 -1
- package/build/{components → esm/components}/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js +18 -0
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -0
- package/build/{components → esm/components}/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -1
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +25 -0
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -0
- package/build/{components → esm/components}/BrowserSilhouette/index.d.ts +1 -1
- package/build/{components → esm/components}/Button/Button.d.ts +6 -6
- package/build/esm/components/Button/Button.js +23 -0
- package/build/esm/components/Button/Button.js.map +1 -0
- package/build/{components → esm/components}/Button/ButtonProps.d.ts +11 -11
- package/build/esm/components/Button/ButtonStyles.d.ts +2 -0
- package/build/esm/components/Button/ButtonStyles.js +16 -0
- package/build/esm/components/Button/ButtonStyles.js.map +1 -0
- package/build/{components → esm/components}/Button/index.d.ts +2 -2
- package/build/{components → esm/components}/ButtonBase/index.d.ts +1 -1
- package/build/{components → esm/components}/ButtonGroup/index.d.ts +1 -1
- package/build/{components → esm/components}/Card/index.d.ts +1 -1
- package/build/{components → esm/components}/CardActionArea/index.d.ts +1 -1
- package/build/{components → esm/components}/CardActions/index.d.ts +1 -1
- package/build/{components → esm/components}/CardContent/index.d.ts +1 -1
- package/build/{components → esm/components}/CardHeader/index.d.ts +1 -1
- package/build/{components → esm/components}/CardMedia/index.d.ts +1 -1
- package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
- package/build/esm/components/Checkbox/Checkbox.js +14 -0
- package/build/esm/components/Checkbox/Checkbox.js.map +1 -0
- package/build/{components → esm/components}/Checkbox/CheckboxProps.d.ts +8 -8
- package/build/{components → esm/components}/Checkbox/index.d.ts +2 -2
- package/build/{components → esm/components}/Chip/Chip.d.ts +6 -6
- package/build/esm/components/Chip/Chip.js +23 -0
- package/build/esm/components/Chip/Chip.js.map +1 -0
- package/build/{components → esm/components}/Chip/ChipProps.d.ts +8 -8
- package/build/{components → esm/components}/Chip/ChipStyles.d.ts +2 -2
- package/build/esm/components/Chip/ChipStyles.js +83 -0
- package/build/esm/components/Chip/ChipStyles.js.map +1 -0
- package/build/{components → esm/components}/Chip/index.d.ts +2 -2
- package/build/{components → esm/components}/CircularProgress/index.d.ts +1 -1
- package/build/{components → esm/components}/ClickAwayListener/index.d.ts +1 -1
- package/build/{components → esm/components}/CollapsibleText/CollapsibleText.d.ts +3 -3
- package/build/esm/components/CollapsibleText/CollapsibleText.js +41 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -0
- package/build/{components → esm/components}/CollapsibleText/CollapsibleTextProps.d.ts +13 -13
- package/build/{components → esm/components}/CollapsibleText/CollapsibleTextStyles.d.ts +5 -5
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js +24 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js.map +1 -0
- package/build/{components → esm/components}/CollapsibleText/index.d.ts +2 -2
- package/build/{components → esm/components}/Dialog/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogActions/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogContent/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogContentText/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogTitle/index.d.ts +1 -1
- package/build/{components → esm/components}/Divider/Divider.d.ts +3 -3
- package/build/esm/components/Divider/Divider.js +70 -0
- package/build/esm/components/Divider/Divider.js.map +1 -0
- package/build/{components → esm/components}/Divider/DividerProps.d.ts +17 -17
- package/build/{components → esm/components}/Divider/index.d.ts +2 -2
- package/build/{components → esm/components}/Drawer/index.d.ts +1 -1
- package/build/{components → esm/components}/Fab/index.d.ts +1 -1
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js +86 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js +12 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js +24 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -4
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js +18 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -3
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js +37 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -29
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +149 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -2
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/context.d.ts +4 -4
- package/build/esm/components/FollowerAuthenticationDialog/context.js +14 -0
- package/build/esm/components/FollowerAuthenticationDialog/context.js.map +1 -0
- package/build/{components → esm/components}/FollowerAuthenticationDialog/index.d.ts +2 -2
- package/build/{components → esm/components}/FollowerAuthenticationDialog/theme.d.ts +35 -35
- package/build/esm/components/FollowerAuthenticationDialog/theme.js +36 -0
- package/build/esm/components/FollowerAuthenticationDialog/theme.js.map +1 -0
- package/build/{components → esm/components}/FormControl/index.d.ts +1 -1
- package/build/{components → esm/components}/FormControlLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/FormLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/Grid/index.d.ts +1 -1
- package/build/{components → esm/components}/GridList/index.d.ts +1 -1
- package/build/{components → esm/components}/Hidden/index.d.ts +1 -1
- package/build/{components → esm/components}/Icon/Icon.d.ts +4 -4
- package/build/esm/components/Icon/Icon.js +29 -0
- package/build/esm/components/Icon/Icon.js.map +1 -0
- package/build/{components → esm/components}/Icon/IconProps.d.ts +17 -17
- package/build/{components → esm/components}/Icon/IconStyles.d.ts +2 -2
- package/build/esm/components/Icon/IconStyles.js +41 -0
- package/build/esm/components/Icon/IconStyles.js.map +1 -0
- package/build/{components → esm/components}/Icon/index.d.ts +2 -2
- package/build/esm/components/IconButton/IconButton.d.ts +3 -0
- package/build/esm/components/IconButton/IconButton.js +14 -0
- package/build/esm/components/IconButton/IconButton.js.map +1 -0
- package/build/{components → esm/components}/IconButton/IconButtonProps.d.ts +2 -2
- package/build/{components → esm/components}/IconButton/index.d.ts +2 -2
- package/build/{components → esm/components}/InputAdornment/index.d.ts +1 -1
- package/build/{components → esm/components}/LinearProgress/index.d.ts +1 -1
- package/build/{components → esm/components}/Link/Link.d.ts +11 -11
- package/build/esm/components/Link/Link.js +18 -0
- package/build/esm/components/Link/Link.js.map +1 -0
- package/build/{components → esm/components}/Link/LinkStyles.d.ts +2 -2
- package/build/esm/components/Link/LinkStyles.js +15 -0
- package/build/esm/components/Link/LinkStyles.js.map +1 -0
- package/build/{components → esm/components}/Link/index.d.ts +2 -2
- package/build/{components → esm/components}/List/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItem/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemAvatar/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemIcon/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemSecondaryAction/index.d.ts +1 -1
- package/build/{components → esm/components}/ListItemText/index.d.ts +1 -1
- package/build/{components → esm/components}/Menu/index.d.ts +1 -1
- package/build/{components → esm/components}/MenuItem/index.d.ts +1 -1
- package/build/{components → esm/components}/MenuList/index.d.ts +1 -1
- package/build/{components → esm/components}/Modal/index.d.ts +1 -1
- package/build/{components → esm/components}/NumberField/NumberField.d.ts +3 -3
- package/build/esm/components/NumberField/NumberField.js +20 -0
- package/build/esm/components/NumberField/NumberField.js.map +1 -0
- package/build/{components → esm/components}/NumberField/NumberFieldProps.d.ts +12 -12
- package/build/{components → esm/components}/NumberField/NumberFieldStyles.d.ts +2 -2
- package/build/esm/components/NumberField/NumberFieldStyles.js +32 -0
- package/build/esm/components/NumberField/NumberFieldStyles.js.map +1 -0
- package/build/{components → esm/components}/NumberField/index.d.ts +2 -2
- package/build/esm/components/Paper/Paper.d.ts +6 -0
- package/build/esm/components/Paper/Paper.js +28 -0
- package/build/esm/components/Paper/Paper.js.map +1 -0
- package/build/{components → esm/components}/Paper/index.d.ts +1 -1
- package/build/{components → esm/components}/PaperContent/PaperContent.d.ts +2 -2
- package/build/esm/components/PaperContent/PaperContent.js +10 -0
- package/build/esm/components/PaperContent/PaperContent.js.map +1 -0
- package/build/{components → esm/components}/PaperContent/index.d.ts +1 -1
- package/build/{components → esm/components}/Popover/index.d.ts +1 -1
- package/build/{components → esm/components}/Popper/index.d.ts +1 -1
- package/build/esm/components/Radio/Radio.d.ts +3 -0
- package/build/esm/components/Radio/Radio.js +14 -0
- package/build/esm/components/Radio/Radio.js.map +1 -0
- package/build/{components → esm/components}/Radio/RadioProps.d.ts +8 -8
- package/build/{components → esm/components}/Radio/index.d.ts +2 -2
- package/build/{components → esm/components}/SplitInput/SplitInput.d.ts +3 -3
- package/build/esm/components/SplitInput/SplitInput.js +22 -0
- package/build/esm/components/SplitInput/SplitInput.js.map +1 -0
- package/build/{components → esm/components}/SplitInput/SplitInputProps.d.ts +20 -20
- package/build/{components → esm/components}/SplitInput/SplitInputStyles.d.ts +2 -2
- package/build/esm/components/SplitInput/SplitInputStyles.js +29 -0
- package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -0
- package/build/{components → esm/components}/SplitInput/index.d.ts +2 -2
- package/build/{components → esm/components}/Step/index.d.ts +1 -1
- package/build/{components → esm/components}/StepButton/index.d.ts +1 -1
- package/build/{components → esm/components}/StepConnector/index.d.ts +1 -1
- package/build/{components → esm/components}/StepContent/index.d.ts +1 -1
- package/build/{components → esm/components}/StepIcon/index.d.ts +1 -1
- package/build/{components → esm/components}/StepLabel/index.d.ts +1 -1
- package/build/{components → esm/components}/Stepper/index.d.ts +1 -1
- package/build/esm/components/Switch/Switch.d.ts +3 -0
- package/build/esm/components/Switch/Switch.js +16 -0
- package/build/esm/components/Switch/Switch.js.map +1 -0
- package/build/{components → esm/components}/Switch/SwitchProps.d.ts +8 -8
- package/build/{components → esm/components}/Switch/index.d.ts +2 -2
- package/build/{components → esm/components}/Switch/switch.styles.d.ts +2 -2
- package/build/esm/components/Switch/switch.styles.js +17 -0
- package/build/esm/components/Switch/switch.styles.js.map +1 -0
- package/build/{components → esm/components}/Tab/index.d.ts +1 -1
- package/build/{components → esm/components}/TabPanel/TabPanel.d.ts +3 -3
- package/build/esm/components/TabPanel/TabPanel.js +10 -0
- package/build/esm/components/TabPanel/TabPanel.js.map +1 -0
- package/build/{components → esm/components}/TabPanel/TabPanelProps.d.ts +3 -3
- package/build/{components → esm/components}/TabPanel/index.d.ts +2 -2
- package/build/{components → esm/components}/Tabs/index.d.ts +1 -1
- package/build/{components → esm/components}/TextField/index.d.ts +1 -1
- package/build/{components → esm/components}/ThemeProvider/index.d.ts +1 -1
- package/build/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/build/esm/components/ToggleButton/ToggleButton.js +20 -0
- package/build/esm/components/ToggleButton/ToggleButton.js.map +1 -0
- package/build/{components → esm/components}/ToggleButton/ToggleButtonProps.d.ts +4 -4
- package/build/{components → esm/components}/ToggleButton/ToggleButtonStyles.d.ts +2 -2
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js +19 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -0
- package/build/{components → esm/components}/ToggleButton/index.d.ts +2 -2
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js +20 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -0
- package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -6
- package/build/{components → esm/components}/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -1
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +12 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -0
- package/build/{components → esm/components}/ToggleButtonGroup/index.d.ts +2 -2
- package/build/{components → esm/components}/Toolbar/index.d.ts +1 -1
- package/build/esm/components/Tooltip/Tooltip.d.ts +3 -0
- package/build/esm/components/Tooltip/Tooltip.js +13 -0
- package/build/esm/components/Tooltip/Tooltip.js.map +1 -0
- package/build/{components → esm/components}/Tooltip/TooltipProps.d.ts +1 -1
- package/build/{components → esm/components}/Tooltip/TooltipStyles.d.ts +2 -2
- package/build/esm/components/Tooltip/TooltipStyles.js +13 -0
- package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -0
- package/build/{components → esm/components}/Tooltip/index.d.ts +2 -2
- package/build/{components → esm/components}/Typography/Typography.d.ts +9 -9
- package/build/esm/components/Typography/Typography.js +17 -0
- package/build/esm/components/Typography/Typography.js.map +1 -0
- package/build/{components → esm/components}/Typography/TypographyProps.d.ts +15 -15
- package/build/esm/components/Typography/TypographyProps.js +6 -0
- package/build/esm/components/Typography/TypographyProps.js.map +1 -0
- package/build/esm/components/Typography/TypographyStyles.d.ts +10 -0
- package/build/esm/components/Typography/TypographyStyles.js +76 -0
- package/build/esm/components/Typography/TypographyStyles.js.map +1 -0
- package/build/{components → esm/components}/Typography/index.d.ts +2 -2
- package/build/{components → esm/components}/index.d.ts +78 -78
- package/build/{hooks → esm/hooks}/index.d.ts +2 -2
- package/build/{hooks → esm/hooks}/useCollapsibleText.d.ts +9 -9
- package/build/esm/hooks/useCollapsibleText.js +17 -0
- package/build/esm/hooks/useCollapsibleText.js.map +1 -0
- package/build/{hooks → esm/hooks}/useTabs/index.d.ts +1 -1
- package/build/{hooks → esm/hooks}/useTabs/useTabs.d.ts +3 -3
- package/build/esm/hooks/useTabs/useTabs.js +35 -0
- package/build/esm/hooks/useTabs/useTabs.js.map +1 -0
- package/build/{hooks → esm/hooks}/useTabs/useTabsOptions.d.ts +3 -3
- package/build/{hooks → esm/hooks}/useTabs/useTabsResult.d.ts +22 -22
- package/build/{index.d.ts → esm/index.d.ts} +3 -3
- package/build/esm/index.js +60 -0
- package/build/esm/index.js.map +1 -0
- package/build/{types → esm/types}/index.d.ts +2 -2
- package/build/{util → esm/util}/ServerStyleSheets.d.ts +1 -1
- package/build/{util → esm/util}/colors/alpha.d.ts +1 -1
- package/build/{util → esm/util}/colors/darken.d.ts +1 -1
- package/build/{util → esm/util}/colors/decomposeColor.d.ts +1 -1
- package/build/{util → esm/util}/colors/getLuminance.d.ts +1 -1
- package/build/{util → esm/util}/colors/hexToRgb.d.ts +1 -1
- package/build/{util → esm/util}/colors/index.d.ts +8 -8
- package/build/{util → esm/util}/colors/lighten.d.ts +1 -1
- package/build/{util → esm/util}/colors/recomposeColor.d.ts +1 -1
- package/build/{util → esm/util}/colors/rgbToHex.d.ts +1 -1
- package/build/{util → esm/util}/createTheme.d.ts +1 -1
- package/build/{util → esm/util}/index.d.ts +4 -4
- package/build/{util → esm/util}/makeStyles.d.ts +1 -1
- package/build/index.js +1130 -1714
- package/build/index.js.map +1 -1
- package/package.json +7 -7
- package/build/components/Avatar/Avatar.d.ts +0 -3
- package/build/components/Button/ButtonStyles.d.ts +0 -2
- package/build/components/Checkbox/Checkbox.d.ts +0 -3
- package/build/components/IconButton/IconButton.d.ts +0 -3
- package/build/components/Paper/Paper.d.ts +0 -6
- package/build/components/Radio/Radio.d.ts +0 -3
- package/build/components/Switch/Switch.d.ts +0 -3
- package/build/components/ToggleButton/ToggleButton.d.ts +0 -3
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -3
- package/build/components/Tooltip/Tooltip.d.ts +0 -3
- package/build/components/Typography/TypographyStyles.d.ts +0 -4
- package/build/index.es.js +0 -1464
- package/build/index.es.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationCloseButton: () => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationCloseButton: () => JSX.Element;
|
package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { makeStyles, IconButton } from '@material-ui/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
4
|
+
import { X } from '@popmenu/web-icons';
|
|
5
|
+
|
|
6
|
+
var useStyles = makeStyles(function () { return ({
|
|
7
|
+
root: {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
top: 0,
|
|
10
|
+
right: 0,
|
|
11
|
+
},
|
|
12
|
+
}); });
|
|
13
|
+
var FollowerAuthenticationCloseButton = function () {
|
|
14
|
+
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, onActionButtonClick = _a.onActionButtonClick;
|
|
15
|
+
var classes = useStyles();
|
|
16
|
+
var handleClose = function () {
|
|
17
|
+
onActionButtonClick('close');
|
|
18
|
+
};
|
|
19
|
+
return (React.createElement(IconButton, { classes: classes, "aria-label": messages.closeButtonLabel, onClick: handleClose },
|
|
20
|
+
React.createElement(X, null)));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { FollowerAuthenticationCloseButton };
|
|
24
|
+
//# sourceMappingURL=FollowerAuthenticationCloseButton.js.map
|
package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationCloseButton.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.tsx"],"sourcesContent":["import { IconButton, makeStyles } from '@material-ui/core'\nimport React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { X as XIcon } from '@popmenu/web-icons'\n\nconst useStyles = makeStyles(() => ({\n root: {\n position: 'absolute',\n top: 0,\n right: 0,\n },\n}))\nexport const FollowerAuthenticationCloseButton = () => {\n const { messages, onActionButtonClick } = useFollowerAuthenticationDialogContext()\n const classes = useStyles()\n const handleClose = () => {\n onActionButtonClick('close')\n }\n return (\n <IconButton classes={classes} aria-label={messages.closeButtonLabel} onClick={handleClose}>\n <XIcon />\n </IconButton>\n )\n}\n"],"names":["XIcon"],"mappings":";;;;;AAKA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,GAAG,EAAE,CAAC;AACN,QAAA,KAAK,EAAE,CAAC;AACT,KAAA;CACF,EAAC,EAAA,CAAC;AACU,IAAA,iCAAiC,GAAG,YAAA;IACzC,IAAA,EAAA,GAAoC,sCAAsC,EAAE,EAA1E,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,mBAAmB,GAAA,EAAA,CAAA,mBAA6C;AAClF,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;AAC3B,IAAA,IAAM,WAAW,GAAG,YAAA;QAClB,mBAAmB,CAAC,OAAO,CAAC;AAC9B,KAAC;AACD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAE,OAAO,EAAc,YAAA,EAAA,QAAQ,CAAC,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAA;AACvF,QAAA,KAAA,CAAA,aAAA,CAACA,CAAK,EAAA,IAAA,CAAG,CACE;AAEjB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const FollowerAuthenticationContent: (props: {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FollowerAuthenticationContent: (props: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { makeStyles, DialogContent } from '@material-ui/core';
|
|
3
|
+
|
|
4
|
+
var useStyles = makeStyles(function () { return ({
|
|
5
|
+
root: {
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
gridGap: 16,
|
|
10
|
+
},
|
|
11
|
+
}); });
|
|
12
|
+
var FollowerAuthenticationContent = function (props) {
|
|
13
|
+
var classes = useStyles();
|
|
14
|
+
return React.createElement(DialogContent, { classes: classes }, props.children);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { FollowerAuthenticationContent };
|
|
18
|
+
//# sourceMappingURL=FollowerAuthenticationContent.js.map
|
package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationContent.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.tsx"],"sourcesContent":["import React from 'react'\nimport { DialogContent, makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles(() => ({\n root: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gridGap: 16,\n },\n}))\nexport const FollowerAuthenticationContent = (props: { children: React.ReactNode }) => {\n const classes = useStyles()\n return <DialogContent classes={classes}>{props.children}</DialogContent>\n}\n"],"names":[],"mappings":";;;AAGA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,OAAO,EAAE,EAAE;AACZ,KAAA;CACF,EAAC,EAAA,CAAC;AACI,IAAM,6BAA6B,GAAG,UAAC,KAAoC,EAAA;AAChF,IAAA,IAAM,OAAO,GAAG,SAAS,EAAE;IAC3B,OAAO,KAAA,CAAA,aAAA,CAAC,aAAa,EAAA,EAAC,OAAO,EAAE,OAAO,EAAA,EAAG,KAAK,CAAC,QAAQ,CAAiB;AAC1E;;;;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
3
|
-
export declare const FollowerAuthenticationDialog: (props: FollowerAuthenticationDialogProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
3
|
+
export declare const FollowerAuthenticationDialog: (props: FollowerAuthenticationDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __rest } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createTheme, useMediaQuery, ThemeProvider, Dialog } from '@material-ui/core';
|
|
4
|
+
import { FollowerAuthenticationContent } from './FollowerAuthenticationContent.js';
|
|
5
|
+
import { FollowerAuthenticationGraphic } from './FollowerAuthenticationGraphic.js';
|
|
6
|
+
import { FollowerAuthenticationBody } from './FollowerAuthenticationBody.js';
|
|
7
|
+
import { FollowerAuthenticationFooter } from './FollowerAuthenticationFooter.js';
|
|
8
|
+
import { FollowerAuthenticationDialogContextProvider } from './context.js';
|
|
9
|
+
import { FollowerAuthenticationTitle } from './FollowerAuthenticationTitle.js';
|
|
10
|
+
import { FollowerAuthenticationInfo } from './FollowerAuthenticationInfo.js';
|
|
11
|
+
import { FollowerAuthenticationCloseButton } from './FollowerAuthenticationCloseButton.js';
|
|
12
|
+
import { theme } from './theme.js';
|
|
13
|
+
|
|
14
|
+
var FollowerAuthenticationDialog = function (props) {
|
|
15
|
+
var open = props.open, restProps = __rest(props, ["open"]);
|
|
16
|
+
var theme$1 = createTheme(theme);
|
|
17
|
+
var fullScreen = useMediaQuery(function (_a) {
|
|
18
|
+
var breakpoints = _a.breakpoints;
|
|
19
|
+
return breakpoints.down('sm');
|
|
20
|
+
});
|
|
21
|
+
var handleClose = function () {
|
|
22
|
+
restProps.onActionButtonClick('close');
|
|
23
|
+
};
|
|
24
|
+
return (React.createElement(ThemeProvider, { theme: theme$1 },
|
|
25
|
+
React.createElement(FollowerAuthenticationDialogContextProvider, { value: restProps },
|
|
26
|
+
React.createElement(Dialog, { open: open, fullScreen: fullScreen, onClose: handleClose },
|
|
27
|
+
React.createElement(FollowerAuthenticationContent, null,
|
|
28
|
+
React.createElement(FollowerAuthenticationCloseButton, null),
|
|
29
|
+
React.createElement(FollowerAuthenticationGraphic, null),
|
|
30
|
+
React.createElement(FollowerAuthenticationTitle, null),
|
|
31
|
+
React.createElement(FollowerAuthenticationInfo, null),
|
|
32
|
+
React.createElement(FollowerAuthenticationBody, null),
|
|
33
|
+
React.createElement(FollowerAuthenticationFooter, null))))));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { FollowerAuthenticationDialog };
|
|
37
|
+
//# sourceMappingURL=FollowerAuthenticationDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationDialog.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.tsx"],"sourcesContent":["import React from 'react'\nimport { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps'\nimport { createTheme, Dialog, ThemeProvider, useMediaQuery } from '@material-ui/core'\nimport { FollowerAuthenticationContent } from './FollowerAuthenticationContent'\nimport { FollowerAuthenticationGraphic } from './FollowerAuthenticationGraphic'\nimport { FollowerAuthenticationBody } from './FollowerAuthenticationBody'\nimport { FollowerAuthenticationFooter } from './FollowerAuthenticationFooter'\nimport { FollowerAuthenticationDialogContextProvider } from './context'\nimport { FollowerAuthenticationTitle } from './FollowerAuthenticationTitle'\nimport { FollowerAuthenticationInfo } from './FollowerAuthenticationInfo'\nimport { FollowerAuthenticationCloseButton } from './FollowerAuthenticationCloseButton'\nimport { theme as themeOptions } from './theme'\n\nexport const FollowerAuthenticationDialog = (props: FollowerAuthenticationDialogProps) => {\n const { open, ...restProps } = props\n const theme = createTheme(themeOptions)\n const fullScreen = useMediaQuery(({ breakpoints }) => breakpoints.down('sm'))\n const handleClose = () => {\n restProps.onActionButtonClick('close')\n }\n return (\n <ThemeProvider theme={theme}>\n <FollowerAuthenticationDialogContextProvider value={restProps}>\n <Dialog open={open} fullScreen={fullScreen} onClose={handleClose}>\n <FollowerAuthenticationContent>\n <FollowerAuthenticationCloseButton />\n <FollowerAuthenticationGraphic />\n <FollowerAuthenticationTitle />\n <FollowerAuthenticationInfo />\n <FollowerAuthenticationBody />\n <FollowerAuthenticationF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9B,oBAAA,KAAA,CAAA,aAAA,CAAC,0BAA0B,EAAG,IAAA,CAAA;AAC9B,oBAAA,KAAA,CAAA,aAAA,CAAC,4BAA4B,EAAG,IAAA,CAAA,CACF,CACzB,CACmC,CAChC;AAEpB;;;;"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare type FollowerAuthenticationDialogProps = {
|
|
3
|
-
open: boolean;
|
|
4
|
-
state: ReducerState;
|
|
5
|
-
messages: Record<MessageKey, ReactNode> & {
|
|
6
|
-
closeButtonLabel: string;
|
|
7
|
-
};
|
|
8
|
-
locationOptions: LocationOption[];
|
|
9
|
-
loading: boolean;
|
|
10
|
-
graphics: Record<`${ReducerStateValue}`, string>;
|
|
11
|
-
logos: Record<'popmenu' | 'facebook' | 'google', ReactNode>;
|
|
12
|
-
onActionButtonClick: (eventType: ClickEventType, values?: Record<string, string>) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare type ReducerState = {
|
|
15
|
-
value: ReducerStateValue;
|
|
16
|
-
context: {
|
|
17
|
-
email?: string;
|
|
18
|
-
phone?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare type ReducerStateValue = 'initial' | 'signUp' | 'emailFound' | 'indirectUserFound' | 'emailAuthCode' | 'emailPasswordSignIn' | 'phoneFound' | 'phoneAuthCode' | 'phonePasswordSignIn' | 'welcome' | 'requirePhone';
|
|
23
|
-
export declare type ClickEventType = 'submit-form' | 'click-close' | 'code-sent' | 'request-auth-code-email' | 'request-auth-code-sms' | 'close' | 'use-different-account' | 'sign-in-with-password' | 'sign-in-with-facebook' | 'sign-in-with-google';
|
|
24
|
-
export declare type MessageKey = `${ReducerStateValue}Title` | `${ReducerStateValue}Info` | `${ReducerStateValue}GraphicAlt` | 'requirePhoneInputLabel' | 'requirePhoneCtaButtonLabel' | 'indirectUserFoundLabel' | 'indirectUserFoundCtaButtonLabel' | 'indirectUserFoundCtaButtonLabelAlt' | 'signUpPhoneErrorText' | 'signUpPhoneInputLabel' | 'signUpNameInputLabel' | 'signUpEmailErrorText' | 'signUpEmailInputLabel' | 'signUpLocationErrorText' | 'signUpLocationInputLabel' | 'signUpBirthdaySectionLabel' | 'signUpMonthInputLabel' | 'signUpDayInputLabel' | 'signUp' | 'signUpFinePrint' | 'emailFoundInputLabel' | 'emailFoundCtaButtonLabel' | 'phoneFoundInputLabel' | 'phoneFoundCtaButtonLabel' | 'emailAuthCodeInputLabel' | 'phoneAuthCodeInputLabel' | 'resendAuthCode' | 'or' | 'popmenuLogoAlt' | 'continueWithFacebookButtonLabel' | 'continueWithGoogleButtonLabel' | 'initialCtaButtonLabel' | 'initialInputLabel' | 'passwordInputLabel' | 'poweredBy' | 'done' | 'signIn' | 'signInWithPassword';
|
|
25
|
-
declare type LocationOption = {
|
|
26
|
-
label: string;
|
|
27
|
-
value: string;
|
|
28
|
-
};
|
|
29
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type FollowerAuthenticationDialogProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
state: ReducerState;
|
|
5
|
+
messages: Record<MessageKey, ReactNode> & {
|
|
6
|
+
closeButtonLabel: string;
|
|
7
|
+
};
|
|
8
|
+
locationOptions: LocationOption[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
graphics: Record<`${ReducerStateValue}`, string>;
|
|
11
|
+
logos: Record<'popmenu' | 'facebook' | 'google', ReactNode>;
|
|
12
|
+
onActionButtonClick: (eventType: ClickEventType, values?: Record<string, string>) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare type ReducerState = {
|
|
15
|
+
value: ReducerStateValue;
|
|
16
|
+
context: {
|
|
17
|
+
email?: string;
|
|
18
|
+
phone?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type ReducerStateValue = 'initial' | 'signUp' | 'emailFound' | 'indirectUserFound' | 'emailAuthCode' | 'emailPasswordSignIn' | 'phoneFound' | 'phoneAuthCode' | 'phonePasswordSignIn' | 'welcome' | 'requirePhone';
|
|
23
|
+
export declare type ClickEventType = 'submit-form' | 'click-close' | 'code-sent' | 'request-auth-code-email' | 'request-auth-code-sms' | 'close' | 'use-different-account' | 'sign-in-with-password' | 'sign-in-with-facebook' | 'sign-in-with-google';
|
|
24
|
+
export declare type MessageKey = `${ReducerStateValue}Title` | `${ReducerStateValue}Info` | `${ReducerStateValue}GraphicAlt` | 'requirePhoneInputLabel' | 'requirePhoneCtaButtonLabel' | 'indirectUserFoundLabel' | 'indirectUserFoundCtaButtonLabel' | 'indirectUserFoundCtaButtonLabelAlt' | 'signUpPhoneErrorText' | 'signUpPhoneInputLabel' | 'signUpNameInputLabel' | 'signUpEmailErrorText' | 'signUpEmailInputLabel' | 'signUpLocationErrorText' | 'signUpLocationInputLabel' | 'signUpBirthdaySectionLabel' | 'signUpMonthInputLabel' | 'signUpDayInputLabel' | 'signUp' | 'signUpFinePrint' | 'emailFoundInputLabel' | 'emailFoundCtaButtonLabel' | 'phoneFoundInputLabel' | 'phoneFoundCtaButtonLabel' | 'emailAuthCodeInputLabel' | 'phoneAuthCodeInputLabel' | 'resendAuthCode' | 'or' | 'popmenuLogoAlt' | 'continueWithFacebookButtonLabel' | 'continueWithGoogleButtonLabel' | 'initialCtaButtonLabel' | 'initialInputLabel' | 'passwordInputLabel' | 'poweredBy' | 'done' | 'signIn' | 'signInWithPassword';
|
|
25
|
+
declare type LocationOption = {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationFooter: () => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationFooter: () => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Box, Typography } from '@material-ui/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
4
|
+
|
|
5
|
+
var FollowerAuthenticationFooter = function () {
|
|
6
|
+
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, logos = _a.logos;
|
|
7
|
+
return (React.createElement(Box, { display: "flex", gridGap: 8 },
|
|
8
|
+
React.createElement(Typography, { variant: "body2" }, messages.poweredBy),
|
|
9
|
+
logos.popmenu));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { FollowerAuthenticationFooter };
|
|
13
|
+
//# sourceMappingURL=FollowerAuthenticationFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationFooter.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.tsx"],"sourcesContent":["import { Box, Typography } from '@material-ui/core'\nimport React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\n\nexport const FollowerAuthenticationFooter = () => {\n const { messages, logos } = useFollowerAuthenticationDialogContext()\n return (\n <Box display=\"flex\" gridGap={8}>\n <Typography variant=\"body2\">{messages.poweredBy}</Typography>\n {logos.popmenu}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAIa,IAAA,4BAA4B,GAAG,YAAA;IACpC,IAAA,EAAA,GAAsB,sCAAsC,EAAE,EAA5D,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAA6C;IACpE,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,EAAA,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,CAAC,EAAA;QAC5B,KAAC,CAAA,aAAA,CAAA,UAAU,IAAC,OAAO,EAAC,OAAO,EAAE,EAAA,QAAQ,CAAC,SAAS,CAAc;AAC5D,QAAA,KAAK,CAAC,OAAO,CACV;AAEV;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationForm: () => JSX.Element | null;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationForm: () => JSX.Element | null;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import React, { useRef, useState, useEffect } from 'react';
|
|
3
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
4
|
+
import { makeStyles, TextField, Button, MenuItem, Typography } from '@material-ui/core';
|
|
5
|
+
|
|
6
|
+
var useStyles = makeStyles(function () { return ({
|
|
7
|
+
form: {
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
width: '100%',
|
|
12
|
+
gridGap: 16,
|
|
13
|
+
},
|
|
14
|
+
}); });
|
|
15
|
+
var northAmericanPhoneRegex = /^(\()?[2-9]{1}\d{2}(\))?[-\s.]?[2-9]{1}\d{2}[-\s.]?\d{4}$/;
|
|
16
|
+
var ukPhoneRegex = /^((\+?44\s?|0044\s?)(\s?\d{3,5}|\(\d{3,5}\))(\s?\d{3,4})(\s?\d{3,4})$|^07\d{9}$)/;
|
|
17
|
+
var validatePhoneNumber = function (phone) {
|
|
18
|
+
if (!phone)
|
|
19
|
+
return false;
|
|
20
|
+
return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone);
|
|
21
|
+
};
|
|
22
|
+
var FollowerAuthenticationForm = function () {
|
|
23
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, locationOptions = _a.locationOptions, onActionButtonClick = _a.onActionButtonClick, loading = _a.loading;
|
|
24
|
+
var classes = useStyles();
|
|
25
|
+
// sign-up form state
|
|
26
|
+
var formRef = useRef(null);
|
|
27
|
+
var _b = useState(false), formValidity = _b[0], setFormValidity = _b[1];
|
|
28
|
+
var _c = useState(), showPhoneErrorText = _c[0], setShowPhoneErrorText = _c[1];
|
|
29
|
+
var _d = useState(), showEmailErrorText = _d[0], setShowEmailErrorText = _d[1];
|
|
30
|
+
var _e = useState(), showLocationErrorText = _e[0], setShowLocationErrorText = _e[1];
|
|
31
|
+
var _f = useState(state.context.phone || ''), signUpPhoneValue = _f[0], setSignUpPhoneValue = _f[1];
|
|
32
|
+
var _g = useState(state.context.email || ''), signUpEmailValue = _g[0], setSignUpEmailValue = _g[1];
|
|
33
|
+
var checkFieldValidity = function (e) {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
var fieldName = e.target.name;
|
|
36
|
+
var fieldValue = e.target.value;
|
|
37
|
+
switch (fieldName) {
|
|
38
|
+
case 'phone':
|
|
39
|
+
var isPhoneValid = validatePhoneNumber(fieldValue);
|
|
40
|
+
setSignUpPhoneValue(fieldValue);
|
|
41
|
+
setShowPhoneErrorText(!isPhoneValid && fieldValue.length > 0);
|
|
42
|
+
break;
|
|
43
|
+
case 'email':
|
|
44
|
+
var emailField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem(fieldName);
|
|
45
|
+
var isEmailValid = (_b = emailField === null || emailField === void 0 ? void 0 : emailField.validity.valid) !== null && _b !== void 0 ? _b : false;
|
|
46
|
+
setSignUpEmailValue(fieldValue);
|
|
47
|
+
setShowEmailErrorText(!isEmailValid && fieldValue.length > 0);
|
|
48
|
+
break;
|
|
49
|
+
case 'location':
|
|
50
|
+
setShowLocationErrorText(!fieldValue);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
useEffect(function () {
|
|
55
|
+
var _a;
|
|
56
|
+
var hasValidPhone = Boolean(signUpPhoneValue) && !showPhoneErrorText;
|
|
57
|
+
var hasValidEmail = Boolean(signUpEmailValue) && !showEmailErrorText;
|
|
58
|
+
var locationField = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.elements.namedItem('location');
|
|
59
|
+
var hasValidLocation = locationField ? Boolean(locationField.value) : true;
|
|
60
|
+
var hasValidContact = hasValidPhone || hasValidEmail;
|
|
61
|
+
setFormValidity(hasValidContact && hasValidLocation);
|
|
62
|
+
}, [signUpPhoneValue, signUpEmailValue, showPhoneErrorText, showEmailErrorText, showLocationErrorText]);
|
|
63
|
+
var handleSubmit = function (e) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
var form = e.target;
|
|
66
|
+
var formData = new FormData(form);
|
|
67
|
+
var values = Object.fromEntries(formData.entries());
|
|
68
|
+
onActionButtonClick('submit-form', values);
|
|
69
|
+
};
|
|
70
|
+
var formProps = {
|
|
71
|
+
id: 'follower-authentication-form',
|
|
72
|
+
className: classes.form,
|
|
73
|
+
onSubmit: handleSubmit,
|
|
74
|
+
};
|
|
75
|
+
switch (state.value) {
|
|
76
|
+
case 'initial':
|
|
77
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
78
|
+
React.createElement(TextField, { disabled: loading, label: messages.initialInputLabel, key: "identifier-input", id: "identifier-input", name: "identifier" }),
|
|
79
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.initialCtaButtonLabel)));
|
|
80
|
+
case 'signUp':
|
|
81
|
+
return (React.createElement("form", __assign({ ref: formRef }, formProps, { onInvalid: function (e) {
|
|
82
|
+
e.preventDefault();
|
|
83
|
+
} }),
|
|
84
|
+
React.createElement(TextField, { disabled: loading, label: messages.signUpPhoneInputLabel, key: "phone-input", id: "phone-input", name: "phone", onChange: checkFieldValidity, error: showPhoneErrorText, helperText: showPhoneErrorText && messages.signUpPhoneErrorText, inputProps: {
|
|
85
|
+
required: signUpEmailValue ? false : true,
|
|
86
|
+
}, defaultValue: state.context.phone }),
|
|
87
|
+
React.createElement(TextField, { disabled: loading, label: messages.signUpNameInputLabel, key: "name-input", id: "name-input", name: "name", inputProps: { required: true } }),
|
|
88
|
+
React.createElement(TextField, { disabled: loading, label: messages.signUpEmailInputLabel, key: "email-input", id: "email-input", name: "email", error: showEmailErrorText, helperText: showEmailErrorText && messages.signUpEmailErrorText, onChange: checkFieldValidity, inputProps: {
|
|
89
|
+
required: signUpPhoneValue ? false : true,
|
|
90
|
+
type: 'email',
|
|
91
|
+
}, defaultValue: state.context.email }),
|
|
92
|
+
React.createElement(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(MenuItem, { "data-cy": 'option', key: locationOption.value, value: locationOption.value }, locationOption.label)); })),
|
|
93
|
+
React.createElement(Typography, { style: { alignSelf: 'start' } }, messages.signUpBirthdaySectionLabel),
|
|
94
|
+
React.createElement(TextField, { disabled: loading, label: messages.signUpMonthInputLabel, key: "birthday-month-input", id: "birthday-month-input", name: "birthdayMonth" }),
|
|
95
|
+
React.createElement(TextField, { disabled: loading, label: messages.signUpDayInputLabel, key: "birthday-date-input", id: "birthday-date-input", name: "birthdayDate" }),
|
|
96
|
+
React.createElement(Button, { disabled: loading || !formValidity, type: "submit" }, messages.signUp)));
|
|
97
|
+
case 'emailFound':
|
|
98
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
99
|
+
React.createElement(TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
100
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.emailFoundCtaButtonLabel)));
|
|
101
|
+
case 'emailAuthCode':
|
|
102
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
103
|
+
React.createElement(TextField, { disabled: loading, label: messages.emailAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code" }),
|
|
104
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
105
|
+
case 'indirectUserFound': {
|
|
106
|
+
if (state.context.email) {
|
|
107
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
108
|
+
React.createElement(TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
109
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
110
|
+
}
|
|
111
|
+
else if (state.context.phone) {
|
|
112
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
113
|
+
React.createElement(TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
114
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
115
|
+
}
|
|
116
|
+
else
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
case 'emailPasswordSignIn':
|
|
120
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
121
|
+
React.createElement(TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email, InputLabelProps: { shrink: true } }),
|
|
122
|
+
React.createElement(TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
123
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
124
|
+
case 'phoneFound':
|
|
125
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
126
|
+
React.createElement(TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
127
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.phoneFoundCtaButtonLabel)));
|
|
128
|
+
case 'phoneAuthCode':
|
|
129
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
130
|
+
React.createElement(TextField, { disabled: loading, label: messages.phoneAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code", autoComplete: "one-time-code" }),
|
|
131
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
132
|
+
case 'phonePasswordSignIn':
|
|
133
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
134
|
+
React.createElement(TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone, InputLabelProps: { shrink: true } }),
|
|
135
|
+
React.createElement(TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
136
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
137
|
+
case 'requirePhone':
|
|
138
|
+
return (React.createElement("form", __assign({}, formProps),
|
|
139
|
+
React.createElement(TextField, { disabled: loading, label: messages.requirePhoneInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
140
|
+
React.createElement(Button, { disabled: loading, type: "submit" }, messages.requirePhoneCtaButtonLabel)));
|
|
141
|
+
case 'welcome':
|
|
142
|
+
return null;
|
|
143
|
+
default:
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export { FollowerAuthenticationForm };
|
|
149
|
+
//# sourceMappingURL=FollowerAuthenticationForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationForm.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.tsx"],"sourcesContent":["import React, { ChangeEventHandler, useEffect, useRef, useState } from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Button, makeStyles, MenuItem, TextField, Typography } from '@material-ui/core'\n\nconst useStyles = makeStyles(() => ({\n form: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n width: '100%',\n gridGap: 16,\n },\n}))\n\nconst northAmericanPhoneRegex = /^(\\()?[2-9]{1}\\d{2}(\\))?[-\\s.]?[2-9]{1}\\d{2}[-\\s.]?\\d{4}$/\nconst ukPhoneRegex = /^((\\+?44\\s?|0044\\s?)(\\s?\\d{3,5}|\\(\\d{3,5}\\))(\\s?\\d{3,4})(\\s?\\d{3,4})$|^07\\d{9}$)/\n\nconst validatePhoneNumber = (phone: string): boolean => {\n if (!phone) return false\n return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone)\n}\n\nexport const FollowerAuthenticationForm = () => {\n const { state, messages, locationOptions, onActionButtonClick, loading } = useFollowerAuthenticationDialogContext()\n const classes = useStyles()\n\n // sign-up form state\n const formRef = useRef<HTMLFormElement>(null)\n const [formValidity, setFormValidity] = useState(false)\n const [showPhoneErrorText, setShowPhoneErrorText] = useState<boolean | undefined>()\n const [showEmailErrorText, setShowEmailErrorText] = useState<boolean | undefined>()\n const [showLocationErrorText, setShowLocationErrorText] = useState<boolean | undefined>()\n const [signUpPhoneValue, setSignUpPhoneValue] = useState(state.context.phone || '')\n const [signUpEmailValue, setSignUpEmailValue] = useState(state.context.email || '')\n\n const checkFieldValidity: ChangeEventHandler<HTMLInputElement> = (e) => {\n const fieldName = e.target.name\n const fieldValue = e.target.value\n\n switch (fieldName) {\n case 'phone':\n const isPhoneValid = validatePhoneNumber(fieldValue)\n setSignUpPhoneValue(fieldValue)\n setShowPhoneErrorText(!isPhoneValid && fieldValue.length > 0)\n break\n case 'email':\n const emailField = formRef.current?.elements.namedItem(fieldName) as HTMLInputElement\n const isEmailValid = emailField?.validity.valid ?? false\n setSignUpEmailValue(fieldValue)\n setShowEmailErrorText(!isEmailValid && fieldValue.length > 0)\n break\n case 'location':\n setShowLocationErrorText(!fieldValue)\n break\n default:\n break\n }\n }\n\n useEffect(() => {\n const hasValidPhone = Boolean(signUpPhoneValue) && !showPhoneErrorText\n const hasValidEmail = Boolean(signUpEmailValue) && !showEmailErrorText\n\n const locationField = formRef.current?.elements.namedItem('location') as HTMLInputElement\n const hasValidLocation = locationField ? Boolean(locationField.value) : true\n\n const hasValidContact = hasValidPhone || hasValidEmail\n setFormValidity(hasValidContact && hasValidLocation)\n }, [signUpPhoneValue, signUpEmailValue, showPhoneErrorText, showEmailErrorText, showLocationErrorText])\n\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n const form = e.target as HTMLFormElement\n const formData = new FormData(form)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n onActionButtonClick('submit-form', values)\n }\n const formProps = {\n id: 'follower-authentication-form',\n className: classes.form,\n onSubmit: handleSubmit,\n }\n switch (state.value) {\n case 'initial':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.initialInputLabel}\n key=\"identifier-input\"\n id=\"identifier-input\"\n name=\"identifier\"\n />\n <Button disabled={loading} type=\"submit\">\n {messages.initialCtaButtonLabel}\n </Button>\n </form>\n )\n case 'signUp':\n return (\n <form\n ref={formRef}\n {...formProps}\n onInvalid={(e) => {\n e.preventDefault()\n }}\n >\n <TextField\n disabled={loading}\n label={messages.signUpPhoneInputLabel}\n key=\"phone-input\"\n id=\"phone-input\"\n name=\"phone\"\n onChange={checkFieldValidity}\n error={showPhoneErrorText}\n helperText={showPhoneErrorText && messages.signUpPhoneErrorText}\n inputProps={{\n required: signUpEmailValue ? false : true,\n }}\n defaultValue={state.context.phone}\n />\n <TextField\n disabled={loading}\n label={messages.signUpNameInputLabel}\n key=\"name-input\"\n id=\"name-input\"\n name=\"name\"\n inputProps={{ required: true }}\n />\n <TextField\n disabled={loading}\n label={messages.signUpEmailInputLabel}\n key=\"email-input\"\n id=\"email-input\"\n name=\"email\"\n error={showEmailErrorText}\n helperText={showEmailErrorText && messages.signUpEmailErrorText}\n onChange={checkFieldValidity}\n inputProps={{\n required: signUpPhoneValue ? false : true,\n type: 'email',\n }}\n defaultValue={state.context.email}\n />\n <TextField\n disabled={loading}\n select\n onChange={checkFieldValidity}\n label={messages.signUpLocationInputLabel}\n error={showLocationErrorText}\n helperText={showLocationErrorText && messages.signUpLocationErrorText}\n key=\"location-input\"\n id=\"location-input\"\n inputProps={{ required: true }}\n name=\"location\"\n >\n {locationOptions.map((locationOption) => (\n <MenuItem data-cy={'option'} key={locationOption.value} value={locationOption.value}>\n {locationOption.label}\n </MenuItem>\n ))}\n </TextField>\n <Typography style={{ alignSelf: 'start' }}>{messages.signUpBirthdaySectionLabel}</Typography>\n <TextField\n disabled={loading}\n label={messages.signUpMonthInputLabel}\n key=\"birthday-month-input\"\n id=\"birthday-month-input\"\n name=\"birthdayMonth\"\n />\n <TextField\n disabled={loading}\n label={messages.signUpDayInputLabel}\n key=\"birthday-date-input\"\n id=\"birthday-date-input\"\n name=\"birthdayDate\"\n />\n <Button disabled={loading || !formValidity} type=\"submit\">\n {messages.signUp}\n </Button>\n </form>\n )\n case 'emailFound':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.emailFoundInputLabel}\n key=\"email-input\"\n id=\"email-input\"\n name=\"email\"\n value={state.context.email}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.emailFoundCtaButtonLabel}\n </Button>\n </form>\n )\n case 'emailAuthCode':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.emailAuthCodeInputLabel}\n key=\"code-input\"\n id=\"code-input\"\n name=\"code\"\n />\n <Button disabled={loading} type=\"submit\">\n {messages.signIn}\n </Button>\n </form>\n )\n case 'indirectUserFound': {\n if (state.context.email) {\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.emailFoundInputLabel}\n key=\"email-input\"\n id=\"email-input\"\n name=\"email\"\n value={state.context.email}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.indirectUserFoundCtaButtonLabel}\n </Button>\n </form>\n )\n } else if (state.context.phone) {\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.phoneFoundInputLabel}\n key=\"phone-input\"\n id=\"phone-input\"\n name=\"phone\"\n value={state.context.phone}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.indirectUserFoundCtaButtonLabel}\n </Button>\n </form>\n )\n } else return null\n }\n case 'emailPasswordSignIn':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.emailFoundInputLabel}\n key=\"email-input\"\n id=\"email-input\"\n name=\"email\"\n value={state.context.email}\n InputLabelProps={{ shrink: true }}\n />\n <TextField\n disabled={loading}\n label={messages.passwordInputLabel}\n key=\"password-input\"\n id=\"password-input\"\n name=\"password\"\n inputProps={{ type: 'password' }}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.signIn}\n </Button>\n </form>\n )\n case 'phoneFound':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.phoneFoundInputLabel}\n key=\"phone-input\"\n id=\"phone-input\"\n name=\"phone\"\n value={state.context.phone}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.phoneFoundCtaButtonLabel}\n </Button>\n </form>\n )\n case 'phoneAuthCode':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.phoneAuthCodeInputLabel}\n key=\"code-input\"\n id=\"code-input\"\n name=\"code\"\n autoComplete=\"one-time-code\"\n />\n <Button disabled={loading} type=\"submit\">\n {messages.signIn}\n </Button>\n </form>\n )\n case 'phonePasswordSignIn':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.phoneFoundInputLabel}\n key=\"phone-input\"\n id=\"phone-input\"\n name=\"phone\"\n value={state.context.phone}\n InputLabelProps={{ shrink: true }}\n />\n <TextField\n disabled={loading}\n label={messages.passwordInputLabel}\n key=\"password-input\"\n id=\"password-input\"\n name=\"password\"\n inputProps={{ type: 'password' }}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.signIn}\n </Button>\n </form>\n )\n case 'requirePhone':\n return (\n <form {...formProps}>\n <TextField\n disabled={loading}\n label={messages.requirePhoneInputLabel}\n key=\"phone-input\"\n id=\"phone-input\"\n name=\"phone\"\n value={state.context.phone}\n />\n <Button disabled={loading} type=\"submit\">\n {messages.requirePhoneCtaButtonLabel}\n </Button>\n </form>\n )\n case 'welcome':\n return null\n default:\n return null\n }\n}\n"],"names":[],"mappings":";;;;;AAIA,IAAM,SAAS,GAAG,UAAU,CAAC,YAAA,EAAM,QAAC;AAClC,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,UAAU,EAAE,QAAQ;A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AAO,CAAC,KAAK,EAC1B,CAAA;AACF,gBAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAC,EAAA,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAC,QAAQ,EAAA,EACrC,QAAQ,CAAC,0BAA0B,CAC7B,CACJ;AAEX,QAAA,KAAK,SAAS;AACZ,YAAA,OAAO,IAAI;AACb,QAAA;AACE,YAAA,OAAO,IAAI;AACd;AACH;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationGraphic: () => JSX.Element | null;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationGraphic: () => JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
3
|
+
import { Box } from '@material-ui/core';
|
|
4
|
+
|
|
5
|
+
var FollowerAuthenticationGraphic = function () {
|
|
6
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages, graphics = _a.graphics;
|
|
7
|
+
var graphic = graphics[state.value];
|
|
8
|
+
if (!graphic)
|
|
9
|
+
return null;
|
|
10
|
+
return (React.createElement(Box, null,
|
|
11
|
+
React.createElement("img", { src: graphic, alt: messages[state.value + "GraphicAlt"] })));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { FollowerAuthenticationGraphic };
|
|
15
|
+
//# sourceMappingURL=FollowerAuthenticationGraphic.js.map
|
package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationGraphic.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box } from '@material-ui/core'\nimport { MessageKey } from './FollowerAuthenticationDialogProps'\n\nexport const FollowerAuthenticationGraphic = () => {\n const { state, messages, graphics } = useFollowerAuthenticationDialogContext()\n const graphic = graphics[state.value]\n if (!graphic) return null\n return (\n <Box>\n <img src={graphic} alt={messages[`${state.value}GraphicAlt` as MessageKey] as string} />\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAKa,IAAA,6BAA6B,GAAG,YAAA;AACrC,IAAA,IAAA,EAAgC,GAAA,sCAAsC,EAAE,EAAtE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAA6C;IAC9E,IAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;AACrC,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,IAAI;IACzB,QACE,oBAAC,GAAG,EAAA,IAAA;AACF,QAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAI,KAAK,CAAC,KAAK,GAA0B,YAAA,CAAW,EAAI,CAAA,CACpF;AAEV;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationInfo: () => JSX.Element | null;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationInfo: () => JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
3
|
+
import { Box, Typography } from '@material-ui/core';
|
|
4
|
+
|
|
5
|
+
var FollowerAuthenticationInfo = function () {
|
|
6
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
7
|
+
var info = messages[state.value + "Info"];
|
|
8
|
+
if (!info)
|
|
9
|
+
return null;
|
|
10
|
+
return (React.createElement(Box, null,
|
|
11
|
+
React.createElement(Typography, { align: "center" }, info)));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { FollowerAuthenticationInfo };
|
|
15
|
+
//# sourceMappingURL=FollowerAuthenticationInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationInfo.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, Typography } from '@material-ui/core'\nimport { MessageKey } from './FollowerAuthenticationDialogProps'\n\nexport const FollowerAuthenticationInfo = () => {\n const { state, messages } = useFollowerAuthenticationDialogContext()\n const info = messages[`${state.value}Info` as MessageKey]\n\n if (!info) return null\n return (\n <Box>\n <Typography align=\"center\">{info}</Typography>\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAKa,IAAA,0BAA0B,GAAG,YAAA;IAClC,IAAA,EAAA,GAAsB,sCAAsC,EAAE,EAA5D,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAA6C;IACpE,IAAM,IAAI,GAAG,QAAQ,CAAI,KAAK,CAAC,KAAK,GAAoB,MAAA,CAAC;AAEzD,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,IAAI;IACtB,QACE,oBAAC,GAAG,EAAA,IAAA;QACF,KAAC,CAAA,aAAA,CAAA,UAAU,EAAC,EAAA,KAAK,EAAC,QAAQ,IAAE,IAAI,CAAc,CAC1C;AAEV;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FollowerAuthenticationTitle: () => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FollowerAuthenticationTitle: () => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useFollowerAuthenticationDialogContext } from './context.js';
|
|
3
|
+
import { Box, Typography } from '@material-ui/core';
|
|
4
|
+
|
|
5
|
+
var FollowerAuthenticationTitle = function () {
|
|
6
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
7
|
+
var title = messages[state.value + "Title"];
|
|
8
|
+
return (React.createElement(Box, null,
|
|
9
|
+
React.createElement(Typography, { variant: "h1", align: "center" }, title)));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { FollowerAuthenticationTitle };
|
|
13
|
+
//# sourceMappingURL=FollowerAuthenticationTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowerAuthenticationTitle.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, Typography } from '@material-ui/core'\nimport { MessageKey } from './FollowerAuthenticationDialogProps'\n\nexport const FollowerAuthenticationTitle = () => {\n const { state, messages } = useFollowerAuthenticationDialogContext()\n const title = messages[`${state.value}Title` as MessageKey]\n return (\n <Box>\n <Typography variant=\"h1\" align=\"center\">\n {title}\n </Typography>\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;AAKa,IAAA,2BAA2B,GAAG,YAAA;IACnC,IAAA,EAAA,GAAsB,sCAAsC,EAAE,EAA5D,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAA6C;IACpE,IAAM,KAAK,GAAG,QAAQ,CAAI,KAAK,CAAC,KAAK,GAAqB,OAAA,CAAC;IAC3D,QACE,oBAAC,GAAG,EAAA,IAAA;AACF,QAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,QAAQ,EACpC,EAAA,KAAK,CACK,CACT;AAEV;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
3
|
-
export declare const FollowerAuthenticationDialogContextProvider: import("react").Provider<Omit<FollowerAuthenticationDialogProps, "open"> | null>;
|
|
4
|
-
export declare const useFollowerAuthenticationDialogContext: () => Omit<FollowerAuthenticationDialogProps, "open">;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
3
|
+
export declare const FollowerAuthenticationDialogContextProvider: import("react").Provider<Omit<FollowerAuthenticationDialogProps, "open"> | null>;
|
|
4
|
+
export declare const useFollowerAuthenticationDialogContext: () => Omit<FollowerAuthenticationDialogProps, "open">;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
var FollowerAuthenticationDialogContext = createContext(null);
|
|
4
|
+
var FollowerAuthenticationDialogContextProvider = FollowerAuthenticationDialogContext.Provider;
|
|
5
|
+
var useFollowerAuthenticationDialogContext = function () {
|
|
6
|
+
var context = useContext(FollowerAuthenticationDialogContext);
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error('useFollowerAuthenticationDialogContext must be called within FollowerAuthenticationDialogContextProvider');
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { FollowerAuthenticationDialogContextProvider, useFollowerAuthenticationDialogContext };
|
|
14
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../src/components/FollowerAuthenticationDialog/context.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps'\n\nconst FollowerAuthenticationDialogContext = createContext<Omit<FollowerAuthenticationDialogProps, 'open'> | null>(null)\n\nexport const FollowerAuthenticationDialogContextProvider = FollowerAuthenticationDialogContext.Provider\n\nexport const useFollowerAuthenticationDialogContext = () => {\n const context = useContext(FollowerAuthenticationDialogContext)\n if (!context) {\n throw new Error(\n 'useFollowerAuthenticationDialogContext must be called within FollowerAuthenticationDialogContextProvider',\n )\n }\n return context\n}\n"],"names":[],"mappings":";;AAGA,IAAM,mCAAmC,GAAG,aAAa,CAAyD,IAAI,CAAC;AAE1G,IAAA,2CAA2C,GAAG,mCAAmC,CAAC;AAElF,IAAA,sCAAsC,GAAG,YAAA;AACpD,IAAA,IAAM,OAAO,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAC/D,IAAI,CAAC,OAAO,EAAE;AACZ,QAAA,MAAM,IAAI,KAAK,CACb,0GAA0G,CAC3G;AACF;AACD,IAAA,OAAO,OAAO;AAChB;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FollowerAuthenticationDialog } from './FollowerAuthenticationDialog';
|
|
2
|
-
export { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
1
|
+
export { FollowerAuthenticationDialog } from './FollowerAuthenticationDialog';
|
|
2
|
+
export { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|