@popmenu/common-ui 0.126.0 → 0.126.2
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/cjs/components/Avatar/Avatar.d.ts +3 -0
- package/build/{components → cjs/components}/Avatar/AvatarProps.d.ts +22 -22
- package/build/{components → cjs/components}/Avatar/avatar.styles.d.ts +2 -2
- package/build/cjs/components/Avatar/index.d.ts +2 -0
- package/build/{components → cjs/components}/Avatar/util/useImageProps.d.ts +10 -10
- package/build/{components → cjs/components}/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
- package/build/{components → cjs/components}/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -1
- package/build/cjs/components/BrowserSilhouette/index.d.ts +1 -0
- package/build/{components → cjs/components}/Button/Button.d.ts +6 -6
- package/build/{components → cjs/components}/Button/ButtonProps.d.ts +11 -11
- package/build/cjs/components/Button/ButtonStyles.d.ts +2 -0
- package/build/cjs/components/Button/index.d.ts +2 -0
- package/build/cjs/components/Checkbox/Checkbox.d.ts +3 -0
- package/build/{components → cjs/components}/Checkbox/CheckboxProps.d.ts +7 -8
- package/build/cjs/components/Checkbox/index.d.ts +2 -0
- package/build/{components → cjs/components}/Chip/Chip.d.ts +6 -6
- package/build/{components → cjs/components}/Chip/ChipProps.d.ts +8 -8
- package/build/{components → cjs/components}/Chip/ChipStyles.d.ts +2 -2
- package/build/cjs/components/Chip/index.d.ts +2 -0
- package/build/{components → cjs/components}/CollapsibleText/CollapsibleText.d.ts +3 -3
- package/build/{components → cjs/components}/CollapsibleText/CollapsibleTextProps.d.ts +13 -13
- package/build/{components → cjs/components}/CollapsibleText/CollapsibleTextStyles.d.ts +5 -5
- package/build/cjs/components/CollapsibleText/index.d.ts +2 -0
- package/build/{components → cjs/components}/Divider/Divider.d.ts +3 -3
- package/build/{components → cjs/components}/Divider/DividerProps.d.ts +17 -17
- package/build/cjs/components/Divider/index.d.ts +2 -0
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -4
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -3
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -29
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -2
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/context.d.ts +4 -4
- package/build/cjs/components/FollowerAuthenticationDialog/index.d.ts +2 -0
- package/build/{components → cjs/components}/FollowerAuthenticationDialog/theme.d.ts +35 -35
- package/build/{components → cjs/components}/Icon/Icon.d.ts +4 -4
- package/build/{components → cjs/components}/Icon/IconProps.d.ts +17 -17
- package/build/{components → cjs/components}/Icon/IconStyles.d.ts +2 -2
- package/build/cjs/components/Icon/index.d.ts +2 -0
- package/build/cjs/components/IconButton/IconButton.d.ts +3 -0
- package/build/{components → cjs/components}/IconButton/IconButtonProps.d.ts +2 -2
- package/build/cjs/components/IconButton/index.d.ts +2 -0
- package/build/{components → cjs/components}/Link/Link.d.ts +11 -11
- package/build/{components → cjs/components}/Link/LinkStyles.d.ts +2 -2
- package/build/cjs/components/Link/index.d.ts +2 -0
- package/build/{components → cjs/components}/NumberField/NumberField.d.ts +3 -3
- package/build/{components → cjs/components}/NumberField/NumberFieldProps.d.ts +12 -12
- package/build/{components → cjs/components}/NumberField/NumberFieldStyles.d.ts +2 -2
- package/build/cjs/components/NumberField/index.d.ts +2 -0
- package/build/cjs/components/Paper/Paper.d.ts +6 -0
- package/build/cjs/components/Paper/index.d.ts +2 -0
- package/build/{components → cjs/components}/PaperContent/PaperContent.d.ts +2 -2
- package/build/cjs/components/PaperContent/index.d.ts +1 -0
- package/build/cjs/components/Radio/Radio.d.ts +3 -0
- package/build/{components → cjs/components}/Radio/RadioProps.d.ts +7 -8
- package/build/cjs/components/Radio/index.d.ts +2 -0
- package/build/{components → cjs/components}/SplitInput/SplitInput.d.ts +3 -3
- package/build/{components → cjs/components}/SplitInput/SplitInputProps.d.ts +20 -20
- package/build/{components → cjs/components}/SplitInput/SplitInputStyles.d.ts +2 -2
- package/build/cjs/components/SplitInput/index.d.ts +2 -0
- package/build/cjs/components/Switch/Switch.d.ts +3 -0
- package/build/{components → cjs/components}/Switch/SwitchProps.d.ts +7 -8
- package/build/cjs/components/Switch/index.d.ts +2 -0
- package/build/{components → cjs/components}/Switch/switch.styles.d.ts +2 -2
- package/build/{components → cjs/components}/TabPanel/TabPanel.d.ts +3 -3
- package/build/{components → cjs/components}/TabPanel/TabPanelProps.d.ts +3 -3
- package/build/cjs/components/TabPanel/index.d.ts +2 -0
- package/build/cjs/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/build/{components → cjs/components}/ToggleButton/ToggleButtonProps.d.ts +4 -4
- package/build/{components → cjs/components}/ToggleButton/ToggleButtonStyles.d.ts +2 -2
- package/build/cjs/components/ToggleButton/index.d.ts +2 -0
- package/build/cjs/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
- package/build/{components → cjs/components}/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -6
- package/build/{components → cjs/components}/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -1
- package/build/cjs/components/ToggleButtonGroup/index.d.ts +2 -0
- package/build/cjs/components/Tooltip/Tooltip.d.ts +3 -0
- package/build/cjs/components/Tooltip/TooltipProps.d.ts +1 -0
- package/build/{components → cjs/components}/Tooltip/TooltipStyles.d.ts +2 -2
- package/build/cjs/components/Tooltip/index.d.ts +2 -0
- package/build/{components → cjs/components}/Typography/Typography.d.ts +9 -9
- package/build/{components → cjs/components}/Typography/TypographyProps.d.ts +14 -15
- package/build/cjs/components/Typography/TypographyStyles.d.ts +10 -0
- package/build/cjs/components/Typography/index.d.ts +2 -0
- package/build/cjs/components/index.d.ts +45 -0
- package/build/{hooks → cjs/hooks}/index.d.ts +2 -2
- package/build/{hooks → cjs/hooks}/useCollapsibleText.d.ts +9 -9
- package/build/{hooks → cjs/hooks}/useTabs/index.d.ts +1 -1
- package/build/{hooks → cjs/hooks}/useTabs/useTabs.d.ts +3 -3
- package/build/{hooks → cjs/hooks}/useTabs/useTabsOptions.d.ts +3 -3
- package/build/{hooks → cjs/hooks}/useTabs/useTabsResult.d.ts +22 -22
- package/build/{index.d.ts → cjs/index.d.ts} +3 -3
- package/build/cjs/index.js +1303 -0
- package/build/cjs/index.js.map +1 -0
- package/build/{types → cjs/types}/index.d.ts +2 -2
- package/build/{util → cjs/util}/colors/alpha.d.ts +1 -1
- package/build/{util → cjs/util}/colors/darken.d.ts +1 -1
- package/build/{util → cjs/util}/colors/decomposeColor.d.ts +1 -1
- package/build/{util → cjs/util}/colors/getLuminance.d.ts +1 -1
- package/build/{util → cjs/util}/colors/hexToRgb.d.ts +1 -1
- package/build/{util → cjs/util}/colors/index.d.ts +8 -8
- package/build/{util → cjs/util}/colors/lighten.d.ts +1 -1
- package/build/{util → cjs/util}/colors/recomposeColor.d.ts +1 -1
- package/build/{util → cjs/util}/colors/rgbToHex.d.ts +1 -1
- package/build/{util → cjs/util}/createTheme.d.ts +1 -1
- package/build/{util → cjs/util}/index.d.ts +4 -4
- package/build/{util → cjs/util}/makeStyles.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/esm/components/Avatar/AvatarProps.d.ts +22 -0
- package/build/esm/components/Avatar/avatar.styles.d.ts +2 -0
- package/build/esm/components/Avatar/avatar.styles.js +41 -0
- package/build/esm/components/Avatar/avatar.styles.js.map +1 -0
- package/build/esm/components/Avatar/index.d.ts +2 -0
- package/build/esm/components/Avatar/util/useImageProps.d.ts +10 -0
- package/build/esm/components/Avatar/util/useImageProps.js +21 -0
- package/build/esm/components/Avatar/util/useImageProps.js.map +1 -0
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -0
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js +18 -0
- package/build/esm/components/BrowserSilhouette/BrowserSilhouette.js.map +1 -0
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.d.ts +1 -0
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js +25 -0
- package/build/esm/components/BrowserSilhouette/browserSilhouette.styles.js.map +1 -0
- package/build/esm/components/BrowserSilhouette/index.d.ts +1 -0
- package/build/esm/components/Button/Button.d.ts +6 -0
- package/build/esm/components/Button/Button.js +21 -0
- package/build/esm/components/Button/Button.js.map +1 -0
- package/build/esm/components/Button/ButtonProps.d.ts +11 -0
- 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/esm/components/Button/index.d.ts +2 -0
- package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
- package/build/esm/components/Checkbox/Checkbox.js +13 -0
- package/build/esm/components/Checkbox/Checkbox.js.map +1 -0
- package/build/esm/components/Checkbox/CheckboxProps.d.ts +7 -0
- package/build/esm/components/Checkbox/index.d.ts +2 -0
- package/build/esm/components/Chip/Chip.d.ts +6 -0
- package/build/esm/components/Chip/Chip.js +23 -0
- package/build/esm/components/Chip/Chip.js.map +1 -0
- package/build/esm/components/Chip/ChipProps.d.ts +8 -0
- package/build/esm/components/Chip/ChipStyles.d.ts +2 -0
- package/build/esm/components/Chip/ChipStyles.js +83 -0
- package/build/esm/components/Chip/ChipStyles.js.map +1 -0
- package/build/esm/components/Chip/index.d.ts +2 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.d.ts +3 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.js +40 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.js.map +1 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextProps.d.ts +13 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.d.ts +5 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js +24 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.js.map +1 -0
- package/build/esm/components/CollapsibleText/index.d.ts +2 -0
- package/build/esm/components/Divider/Divider.d.ts +3 -0
- package/build/esm/components/Divider/Divider.js +70 -0
- package/build/esm/components/Divider/Divider.js.map +1 -0
- package/build/esm/components/Divider/DividerProps.d.ts +17 -0
- package/build/esm/components/Divider/index.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js +86 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js +12 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js +24 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js +18 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js +37 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +29 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +149 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +15 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js +13 -0
- package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/context.d.ts +4 -0
- package/build/esm/components/FollowerAuthenticationDialog/context.js +14 -0
- package/build/esm/components/FollowerAuthenticationDialog/context.js.map +1 -0
- package/build/esm/components/FollowerAuthenticationDialog/index.d.ts +2 -0
- package/build/esm/components/FollowerAuthenticationDialog/theme.d.ts +35 -0
- package/build/esm/components/FollowerAuthenticationDialog/theme.js +36 -0
- package/build/esm/components/FollowerAuthenticationDialog/theme.js.map +1 -0
- package/build/esm/components/Icon/Icon.d.ts +4 -0
- package/build/esm/components/Icon/Icon.js +29 -0
- package/build/esm/components/Icon/Icon.js.map +1 -0
- package/build/esm/components/Icon/IconProps.d.ts +17 -0
- package/build/esm/components/Icon/IconStyles.d.ts +2 -0
- package/build/esm/components/Icon/IconStyles.js +43 -0
- package/build/esm/components/Icon/IconStyles.js.map +1 -0
- package/build/esm/components/Icon/index.d.ts +2 -0
- 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/esm/components/IconButton/IconButtonProps.d.ts +2 -0
- package/build/esm/components/IconButton/index.d.ts +2 -0
- package/build/esm/components/Link/Link.d.ts +11 -0
- package/build/esm/components/Link/Link.js +18 -0
- package/build/esm/components/Link/Link.js.map +1 -0
- package/build/esm/components/Link/LinkStyles.d.ts +2 -0
- package/build/esm/components/Link/LinkStyles.js +15 -0
- package/build/esm/components/Link/LinkStyles.js.map +1 -0
- package/build/esm/components/Link/index.d.ts +2 -0
- package/build/esm/components/NumberField/NumberField.d.ts +3 -0
- package/build/esm/components/NumberField/NumberField.js +20 -0
- package/build/esm/components/NumberField/NumberField.js.map +1 -0
- package/build/esm/components/NumberField/NumberFieldProps.d.ts +12 -0
- package/build/esm/components/NumberField/NumberFieldStyles.d.ts +2 -0
- package/build/esm/components/NumberField/NumberFieldStyles.js +32 -0
- package/build/esm/components/NumberField/NumberFieldStyles.js.map +1 -0
- package/build/esm/components/NumberField/index.d.ts +2 -0
- 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/esm/components/Paper/index.d.ts +2 -0
- package/build/esm/components/PaperContent/PaperContent.d.ts +2 -0
- package/build/esm/components/PaperContent/PaperContent.js +10 -0
- package/build/esm/components/PaperContent/PaperContent.js.map +1 -0
- package/build/esm/components/PaperContent/index.d.ts +1 -0
- package/build/esm/components/Radio/Radio.d.ts +3 -0
- package/build/esm/components/Radio/Radio.js +13 -0
- package/build/esm/components/Radio/Radio.js.map +1 -0
- package/build/esm/components/Radio/RadioProps.d.ts +7 -0
- package/build/esm/components/Radio/index.d.ts +2 -0
- package/build/esm/components/SplitInput/SplitInput.d.ts +3 -0
- package/build/esm/components/SplitInput/SplitInput.js +21 -0
- package/build/esm/components/SplitInput/SplitInput.js.map +1 -0
- package/build/esm/components/SplitInput/SplitInputProps.d.ts +20 -0
- package/build/esm/components/SplitInput/SplitInputStyles.d.ts +2 -0
- package/build/esm/components/SplitInput/SplitInputStyles.js +29 -0
- package/build/esm/components/SplitInput/SplitInputStyles.js.map +1 -0
- package/build/esm/components/SplitInput/index.d.ts +2 -0
- package/build/esm/components/Switch/Switch.d.ts +3 -0
- package/build/esm/components/Switch/Switch.js +15 -0
- package/build/esm/components/Switch/Switch.js.map +1 -0
- package/build/esm/components/Switch/SwitchProps.d.ts +7 -0
- package/build/esm/components/Switch/index.d.ts +2 -0
- package/build/esm/components/Switch/switch.styles.d.ts +2 -0
- package/build/esm/components/Switch/switch.styles.js +17 -0
- package/build/esm/components/Switch/switch.styles.js.map +1 -0
- package/build/esm/components/TabPanel/TabPanel.d.ts +3 -0
- package/build/esm/components/TabPanel/TabPanel.js +10 -0
- package/build/esm/components/TabPanel/TabPanel.js.map +1 -0
- package/build/esm/components/TabPanel/TabPanelProps.d.ts +3 -0
- package/build/esm/components/TabPanel/index.d.ts +2 -0
- 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/esm/components/ToggleButton/ToggleButtonProps.d.ts +4 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.d.ts +2 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js +19 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.js.map +1 -0
- package/build/esm/components/ToggleButton/index.d.ts +2 -0
- 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/esm/components/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js +12 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.js.map +1 -0
- package/build/esm/components/ToggleButtonGroup/index.d.ts +2 -0
- 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/esm/components/Tooltip/TooltipProps.d.ts +1 -0
- package/build/esm/components/Tooltip/TooltipStyles.d.ts +2 -0
- package/build/esm/components/Tooltip/TooltipStyles.js +13 -0
- package/build/esm/components/Tooltip/TooltipStyles.js.map +1 -0
- package/build/esm/components/Tooltip/index.d.ts +2 -0
- package/build/esm/components/Typography/Typography.d.ts +9 -0
- package/build/esm/components/Typography/Typography.js +17 -0
- package/build/esm/components/Typography/Typography.js.map +1 -0
- package/build/esm/components/Typography/TypographyProps.d.ts +14 -0
- 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/esm/components/Typography/index.d.ts +2 -0
- package/build/esm/components/index.d.ts +45 -0
- package/build/esm/hooks/index.d.ts +2 -0
- package/build/esm/hooks/useCollapsibleText.d.ts +9 -0
- package/build/esm/hooks/useCollapsibleText.js +17 -0
- package/build/esm/hooks/useCollapsibleText.js.map +1 -0
- package/build/esm/hooks/useTabs/index.d.ts +1 -0
- package/build/esm/hooks/useTabs/useTabs.d.ts +3 -0
- package/build/esm/hooks/useTabs/useTabs.js +35 -0
- package/build/esm/hooks/useTabs/useTabs.js.map +1 -0
- package/build/esm/hooks/useTabs/useTabsOptions.d.ts +3 -0
- package/build/esm/hooks/useTabs/useTabsResult.d.ts +22 -0
- package/build/esm/index.d.ts +3 -0
- package/build/esm/index.js +28 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/types/index.d.ts +2 -0
- package/build/esm/util/colors/alpha.d.ts +1 -0
- package/build/esm/util/colors/darken.d.ts +1 -0
- package/build/esm/util/colors/decomposeColor.d.ts +1 -0
- package/build/esm/util/colors/getLuminance.d.ts +1 -0
- package/build/esm/util/colors/hexToRgb.d.ts +1 -0
- package/build/esm/util/colors/index.d.ts +8 -0
- package/build/esm/util/colors/lighten.d.ts +1 -0
- package/build/esm/util/colors/recomposeColor.d.ts +1 -0
- package/build/esm/util/colors/rgbToHex.d.ts +1 -0
- package/build/esm/util/createTheme.d.ts +1 -0
- package/build/esm/util/index.d.ts +4 -0
- package/build/esm/util/makeStyles.d.ts +1 -0
- package/package.json +8 -8
- package/build/components/Accordion/index.d.ts +0 -1
- package/build/components/AccordionActions/index.d.ts +0 -1
- package/build/components/AccordionDetails/index.d.ts +0 -1
- package/build/components/AccordionSummary/index.d.ts +0 -1
- package/build/components/Alert/index.d.ts +0 -1
- package/build/components/AppBar/index.d.ts +0 -1
- package/build/components/Avatar/Avatar.d.ts +0 -3
- package/build/components/Avatar/index.d.ts +0 -2
- package/build/components/Badge/index.d.ts +0 -1
- package/build/components/Box/Box.d.ts +0 -3
- package/build/components/Box/BoxProps.d.ts +0 -5
- package/build/components/Box/BoxStyles.d.ts +0 -1
- package/build/components/Box/index.d.ts +0 -7
- package/build/components/Breadcrumbs/index.d.ts +0 -1
- package/build/components/BrowserSilhouette/index.d.ts +0 -1
- package/build/components/Button/ButtonStyles.d.ts +0 -2
- package/build/components/Button/index.d.ts +0 -2
- package/build/components/ButtonBase/index.d.ts +0 -1
- package/build/components/ButtonGroup/index.d.ts +0 -1
- package/build/components/Card/index.d.ts +0 -1
- package/build/components/CardActionArea/index.d.ts +0 -1
- package/build/components/CardActions/index.d.ts +0 -1
- package/build/components/CardContent/index.d.ts +0 -1
- package/build/components/CardHeader/index.d.ts +0 -1
- package/build/components/CardMedia/index.d.ts +0 -1
- package/build/components/Checkbox/Checkbox.d.ts +0 -3
- package/build/components/Checkbox/index.d.ts +0 -2
- package/build/components/Chip/index.d.ts +0 -2
- package/build/components/CircularProgress/index.d.ts +0 -1
- package/build/components/ClickAwayListener/index.d.ts +0 -1
- package/build/components/CollapsibleText/index.d.ts +0 -2
- package/build/components/Dialog/index.d.ts +0 -1
- package/build/components/DialogActions/index.d.ts +0 -1
- package/build/components/DialogContent/index.d.ts +0 -1
- package/build/components/DialogContentText/index.d.ts +0 -1
- package/build/components/DialogTitle/index.d.ts +0 -1
- package/build/components/Divider/index.d.ts +0 -2
- package/build/components/Drawer/index.d.ts +0 -1
- package/build/components/Fab/index.d.ts +0 -1
- package/build/components/FollowerAuthenticationDialog/index.d.ts +0 -2
- package/build/components/FormControl/index.d.ts +0 -1
- package/build/components/FormControlLabel/index.d.ts +0 -1
- package/build/components/FormLabel/index.d.ts +0 -1
- package/build/components/Grid/index.d.ts +0 -1
- package/build/components/GridList/index.d.ts +0 -1
- package/build/components/Hidden/index.d.ts +0 -1
- package/build/components/Icon/index.d.ts +0 -2
- package/build/components/IconButton/IconButton.d.ts +0 -3
- package/build/components/IconButton/index.d.ts +0 -2
- package/build/components/InputAdornment/index.d.ts +0 -1
- package/build/components/LinearProgress/index.d.ts +0 -1
- package/build/components/Link/index.d.ts +0 -2
- package/build/components/List/index.d.ts +0 -1
- package/build/components/ListItem/index.d.ts +0 -1
- package/build/components/ListItemAvatar/index.d.ts +0 -1
- package/build/components/ListItemIcon/index.d.ts +0 -1
- package/build/components/ListItemSecondaryAction/index.d.ts +0 -1
- package/build/components/ListItemText/index.d.ts +0 -1
- package/build/components/Menu/index.d.ts +0 -1
- package/build/components/MenuItem/index.d.ts +0 -1
- package/build/components/MenuList/index.d.ts +0 -1
- package/build/components/Modal/index.d.ts +0 -1
- package/build/components/NumberField/index.d.ts +0 -2
- package/build/components/Paper/Paper.d.ts +0 -6
- package/build/components/Paper/index.d.ts +0 -1
- package/build/components/PaperContent/index.d.ts +0 -1
- package/build/components/Popover/index.d.ts +0 -1
- package/build/components/Popper/index.d.ts +0 -1
- package/build/components/Radio/Radio.d.ts +0 -3
- package/build/components/Radio/index.d.ts +0 -2
- package/build/components/SplitInput/index.d.ts +0 -2
- package/build/components/Step/index.d.ts +0 -1
- package/build/components/StepButton/index.d.ts +0 -1
- package/build/components/StepConnector/index.d.ts +0 -1
- package/build/components/StepContent/index.d.ts +0 -1
- package/build/components/StepIcon/index.d.ts +0 -1
- package/build/components/StepLabel/index.d.ts +0 -1
- package/build/components/Stepper/index.d.ts +0 -1
- package/build/components/Switch/Switch.d.ts +0 -3
- package/build/components/Switch/index.d.ts +0 -2
- package/build/components/Tab/index.d.ts +0 -1
- package/build/components/TabPanel/index.d.ts +0 -2
- package/build/components/Tabs/index.d.ts +0 -1
- package/build/components/TextField/index.d.ts +0 -1
- package/build/components/ThemeProvider/index.d.ts +0 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +0 -3
- package/build/components/ToggleButton/index.d.ts +0 -2
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -3
- package/build/components/ToggleButtonGroup/index.d.ts +0 -2
- package/build/components/Toolbar/index.d.ts +0 -1
- package/build/components/Tooltip/Tooltip.d.ts +0 -3
- package/build/components/Tooltip/TooltipProps.d.ts +0 -1
- package/build/components/Tooltip/index.d.ts +0 -2
- package/build/components/Typography/TypographyStyles.d.ts +0 -4
- package/build/components/Typography/index.d.ts +0 -2
- package/build/components/index.d.ts +0 -78
- package/build/index.es.js +0 -1479
- package/build/index.es.js.map +0 -1
- package/build/index.js +0 -1971
- package/build/index.js.map +0 -1
- package/build/util/ServerStyleSheets.d.ts +0 -1
package/build/index.js
DELETED
|
@@ -1,1971 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var Alert = require('@material-ui/lab/Alert');
|
|
6
|
-
var core = require('@material-ui/core');
|
|
7
|
-
var AppBar = require('@material-ui/core/AppBar');
|
|
8
|
-
var React = require('react');
|
|
9
|
-
var MuiAvatar = require('@material-ui/core/Avatar');
|
|
10
|
-
var styles = require('@material-ui/core/styles');
|
|
11
|
-
var Badge = require('@material-ui/core/Badge');
|
|
12
|
-
var MuiButton = require('@material-ui/core/Button');
|
|
13
|
-
var CircularProgress = require('@material-ui/core/CircularProgress');
|
|
14
|
-
var ButtonGroup = require('@material-ui/core/ButtonGroup');
|
|
15
|
-
var Card = require('@material-ui/core/Card');
|
|
16
|
-
var CardActionArea = require('@material-ui/core/CardActionArea');
|
|
17
|
-
var CardActions = require('@material-ui/core/CardActions');
|
|
18
|
-
var CardContent = require('@material-ui/core/CardContent');
|
|
19
|
-
var CardHeader = require('@material-ui/core/CardHeader');
|
|
20
|
-
var CardMedia = require('@material-ui/core/CardMedia');
|
|
21
|
-
var MuiCheckbox = require('@material-ui/core/Checkbox');
|
|
22
|
-
var FormControlLabel = require('@material-ui/core/FormControlLabel');
|
|
23
|
-
var MuiChip = require('@material-ui/core/Chip');
|
|
24
|
-
var Collapse = require('@material-ui/core/Collapse');
|
|
25
|
-
var Dialog = require('@material-ui/core/Dialog');
|
|
26
|
-
var DialogActions = require('@material-ui/core/DialogActions');
|
|
27
|
-
var DialogContent = require('@material-ui/core/DialogContent');
|
|
28
|
-
var DialogTitle = require('@material-ui/core/DialogTitle');
|
|
29
|
-
var Drawer = require('@material-ui/core/Drawer');
|
|
30
|
-
var FormControl = require('@material-ui/core/FormControl');
|
|
31
|
-
var Grid = require('@material-ui/core/Grid');
|
|
32
|
-
var MuiIconButton = require('@material-ui/core/IconButton');
|
|
33
|
-
var InputAdornment = require('@material-ui/core/InputAdornment');
|
|
34
|
-
var LinearProgress = require('@material-ui/core/LinearProgress');
|
|
35
|
-
var List = require('@material-ui/core/List');
|
|
36
|
-
var ListItem = require('@material-ui/core/ListItem');
|
|
37
|
-
var ListItemAvatar = require('@material-ui/core/ListItemAvatar');
|
|
38
|
-
var ListItemIcon = require('@material-ui/core/ListItemIcon');
|
|
39
|
-
var ListItemSecondaryAction = require('@material-ui/core/ListItemSecondaryAction');
|
|
40
|
-
var ListItemText = require('@material-ui/core/ListItemText');
|
|
41
|
-
var Menu = require('@material-ui/core/Menu');
|
|
42
|
-
var MenuItem = require('@material-ui/core/MenuItem');
|
|
43
|
-
var MenuList = require('@material-ui/core/MenuList');
|
|
44
|
-
var MuiRadio = require('@material-ui/core/Radio');
|
|
45
|
-
var TextField = require('@material-ui/core/TextField');
|
|
46
|
-
var MuiSwitch = require('@material-ui/core/Switch');
|
|
47
|
-
var Tab = require('@material-ui/core/Tab');
|
|
48
|
-
var Tabs = require('@material-ui/core/Tabs');
|
|
49
|
-
var MuiToggleButton = require('@material-ui/lab/ToggleButton');
|
|
50
|
-
var MuiToggleButtonGroup = require('@material-ui/lab/ToggleButtonGroup');
|
|
51
|
-
var MuiTooltip = require('@material-ui/core/Tooltip');
|
|
52
|
-
|
|
53
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
54
|
-
|
|
55
|
-
function _interopNamespace(e) {
|
|
56
|
-
if (e && e.__esModule) return e;
|
|
57
|
-
var n = Object.create(null);
|
|
58
|
-
if (e) {
|
|
59
|
-
Object.keys(e).forEach(function (k) {
|
|
60
|
-
if (k !== 'default') {
|
|
61
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
62
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () {
|
|
65
|
-
return e[k];
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
n['default'] = e;
|
|
72
|
-
return Object.freeze(n);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
|
|
76
|
-
var AppBar__default = /*#__PURE__*/_interopDefaultLegacy(AppBar);
|
|
77
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
78
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
79
|
-
var MuiAvatar__default = /*#__PURE__*/_interopDefaultLegacy(MuiAvatar);
|
|
80
|
-
var Badge__default = /*#__PURE__*/_interopDefaultLegacy(Badge);
|
|
81
|
-
var MuiButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiButton);
|
|
82
|
-
var CircularProgress__default = /*#__PURE__*/_interopDefaultLegacy(CircularProgress);
|
|
83
|
-
var ButtonGroup__default = /*#__PURE__*/_interopDefaultLegacy(ButtonGroup);
|
|
84
|
-
var Card__default = /*#__PURE__*/_interopDefaultLegacy(Card);
|
|
85
|
-
var CardActionArea__default = /*#__PURE__*/_interopDefaultLegacy(CardActionArea);
|
|
86
|
-
var CardActions__default = /*#__PURE__*/_interopDefaultLegacy(CardActions);
|
|
87
|
-
var CardContent__default = /*#__PURE__*/_interopDefaultLegacy(CardContent);
|
|
88
|
-
var CardHeader__default = /*#__PURE__*/_interopDefaultLegacy(CardHeader);
|
|
89
|
-
var CardMedia__default = /*#__PURE__*/_interopDefaultLegacy(CardMedia);
|
|
90
|
-
var MuiCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(MuiCheckbox);
|
|
91
|
-
var FormControlLabel__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLabel);
|
|
92
|
-
var MuiChip__default = /*#__PURE__*/_interopDefaultLegacy(MuiChip);
|
|
93
|
-
var Collapse__default = /*#__PURE__*/_interopDefaultLegacy(Collapse);
|
|
94
|
-
var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
|
|
95
|
-
var DialogActions__default = /*#__PURE__*/_interopDefaultLegacy(DialogActions);
|
|
96
|
-
var DialogContent__default = /*#__PURE__*/_interopDefaultLegacy(DialogContent);
|
|
97
|
-
var DialogTitle__default = /*#__PURE__*/_interopDefaultLegacy(DialogTitle);
|
|
98
|
-
var Drawer__default = /*#__PURE__*/_interopDefaultLegacy(Drawer);
|
|
99
|
-
var FormControl__default = /*#__PURE__*/_interopDefaultLegacy(FormControl);
|
|
100
|
-
var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
|
|
101
|
-
var MuiIconButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiIconButton);
|
|
102
|
-
var InputAdornment__default = /*#__PURE__*/_interopDefaultLegacy(InputAdornment);
|
|
103
|
-
var LinearProgress__default = /*#__PURE__*/_interopDefaultLegacy(LinearProgress);
|
|
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
|
-
};
|
|
477
|
-
Icon.displayName = 'Icon';
|
|
478
|
-
|
|
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 = React__default['default'].useState(LoadingStatus.PENDING), loaded = _a[0], setLoaded = _a[1];
|
|
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 };
|
|
493
|
-
};
|
|
494
|
-
|
|
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
|
-
}); },
|
|
529
|
-
}); });
|
|
530
|
-
|
|
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 = React__default['default'].createElement(Icon, { icon: SvgUser, className: classes.fallback });
|
|
550
|
-
}
|
|
551
|
-
return (React__default['default'].createElement(MuiAvatar__default['default'], __assign({ ref: ref, classes: { root: classes.root }, src: src, alt: alt }, muiProps, { imgProps: imgProps }), children || Fallback));
|
|
552
|
-
});
|
|
553
|
-
Avatar.defaultProps = {
|
|
554
|
-
size: 'medium',
|
|
555
|
-
fit: 'cover',
|
|
556
|
-
background: '#E0E0E0',
|
|
557
|
-
};
|
|
558
|
-
Avatar.displayName = 'Avatar';
|
|
559
|
-
|
|
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
|
-
},
|
|
579
|
-
}); });
|
|
580
|
-
|
|
581
|
-
var BrowserSilhouette = function (_a) {
|
|
582
|
-
var children = _a.children;
|
|
583
|
-
var classes = useBrowserSilhouetteStyles();
|
|
584
|
-
return (React__default['default'].createElement(core.Box, { display: "flex" },
|
|
585
|
-
React__default['default'].createElement("div", { className: classes.container },
|
|
586
|
-
React__default['default'].createElement("div", { className: classes.titleBar },
|
|
587
|
-
React__default['default'].createElement("div", { className: classes.circle }),
|
|
588
|
-
React__default['default'].createElement("div", { className: classes.circle }),
|
|
589
|
-
React__default['default'].createElement("div", { className: classes.circle })),
|
|
590
|
-
children)));
|
|
591
|
-
};
|
|
592
|
-
|
|
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
|
-
},
|
|
603
|
-
}); });
|
|
604
|
-
|
|
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: React__default['default'].createElement(CircularProgress__default['default'], { color: "inherit", size: typography.button.fontSize }),
|
|
612
|
-
disabled: true,
|
|
613
|
-
};
|
|
614
|
-
return (React__default['default'].createElement(MuiButton__default['default'], __assign({ ref: ButtonRef, classes: __assign(__assign({}, classes), classesOverride), className: classNames([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
|
|
615
|
-
};
|
|
616
|
-
Button.displayName = 'Button';
|
|
617
|
-
|
|
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 = React__default['default'].createElement(MuiCheckbox__default['default'], __assign({ disabled: label ? undefined : disabled }, muiProps));
|
|
621
|
-
return label ? (React__default['default'].createElement(FormControlLabel__default['default'], __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
622
|
-
});
|
|
623
|
-
Checkbox.displayName = 'Checkbox';
|
|
624
|
-
|
|
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
|
-
},
|
|
702
|
-
}); });
|
|
703
|
-
|
|
704
|
-
var IconDictionary = {
|
|
705
|
-
error: SvgError,
|
|
706
|
-
info: SvgInfo,
|
|
707
|
-
success: SvgCheckCircle,
|
|
708
|
-
warning: SvgWarning,
|
|
709
|
-
};
|
|
710
|
-
var Chip = function (props) {
|
|
711
|
-
var severity = props.severity, restProps = __rest(props, ["severity"]);
|
|
712
|
-
var classes = useChipStyles(props);
|
|
713
|
-
var icon = severity ? React__default['default'].createElement(IconDictionary[severity]) : undefined;
|
|
714
|
-
var deleteIcon = React__default['default'].createElement(SvgXCircle);
|
|
715
|
-
return React__default['default'].createElement(MuiChip__default['default'], __assign({ classes: classes, icon: icon, deleteIcon: deleteIcon }, restProps));
|
|
716
|
-
};
|
|
717
|
-
Chip.displayName = 'Chip';
|
|
718
|
-
|
|
719
|
-
var defaultTypographyProps = {
|
|
720
|
-
variant: 'body1',
|
|
721
|
-
};
|
|
722
|
-
|
|
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 React__default['default'].createElement(core.Typography, __assign({ classes: classes, variantMapping: variantMapping, ref: TypographyRef }, restProps));
|
|
799
|
-
};
|
|
800
|
-
Typography.displayName = 'Typography';
|
|
801
|
-
Typography.defaultProps = defaultTypographyProps;
|
|
802
|
-
|
|
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
|
-
},
|
|
821
|
-
}); });
|
|
822
|
-
|
|
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 (React__default['default'].createElement(core.Box, __assign({ position: "relative", overflow: "hidden" }, restProps),
|
|
850
|
-
React__default['default'].createElement(Collapse__default['default'], { in: open, collapsedSize: collapsedSizePx + 'px' },
|
|
851
|
-
React__default['default'].createElement(Typography, { TypographyRef: typographyRef, variant: typographyVariant }, text)),
|
|
852
|
-
collapsible && !open && React__default['default'].createElement(core.Box, { className: classes.overlay })));
|
|
853
|
-
};
|
|
854
|
-
|
|
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 (React__default['default'].createElement(core.Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
|
|
907
|
-
React__default['default'].createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
|
|
908
|
-
text && (React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
909
|
-
React__default['default'].createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
|
|
910
|
-
React__default['default'].createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
|
|
911
|
-
};
|
|
912
|
-
Divider.displayName = 'Divider';
|
|
913
|
-
Divider.defaultProps = {
|
|
914
|
-
textTransform: 'lowercase',
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
var IconButton = React.forwardRef(function (props, ref) {
|
|
918
|
-
return React__default['default'].createElement(MuiIconButton__default['default'], __assign({ ref: ref }, props));
|
|
919
|
-
});
|
|
920
|
-
IconButton.displayName = 'IconButton';
|
|
921
|
-
IconButton.defaultProps = {
|
|
922
|
-
color: 'secondary',
|
|
923
|
-
};
|
|
924
|
-
|
|
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
|
-
},
|
|
932
|
-
}); });
|
|
933
|
-
|
|
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 (React__default['default'].createElement(core.Link, __assign({ ref: ref, classes: { root: classes.root } }, muiProps), children));
|
|
939
|
-
});
|
|
940
|
-
Link.defaultProps = {
|
|
941
|
-
variant: 'body1',
|
|
942
|
-
};
|
|
943
|
-
Link.displayName = 'Link';
|
|
944
|
-
|
|
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 React__default['default'].createElement(core.Paper, __assign({}, ref, { classes: __assign({}, (legacyStyles && classes)) }, restProps));
|
|
961
|
-
});
|
|
962
|
-
Paper.displayName = 'Paper';
|
|
963
|
-
Paper.defaultProps = {
|
|
964
|
-
legacyStyles: false,
|
|
965
|
-
};
|
|
966
|
-
|
|
967
|
-
var PaperContent = function (props) {
|
|
968
|
-
var children = props.children;
|
|
969
|
-
return React__default['default'].createElement(core.Box, { padding: 4 }, children);
|
|
970
|
-
};
|
|
971
|
-
|
|
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 = React__default['default'].createElement(MuiRadio__default['default'], __assign({ disabled: label ? undefined : disabled }, muiProps));
|
|
975
|
-
return label ? (React__default['default'].createElement(FormControlLabel__default['default'], __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
976
|
-
});
|
|
977
|
-
Radio.displayName = 'Radio';
|
|
978
|
-
|
|
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: {},
|
|
1002
|
-
}); });
|
|
1003
|
-
|
|
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 (React__default['default'].createElement(core.Box, { display: "flex" },
|
|
1008
|
-
React__default['default'].createElement(TextField__default['default'], __assign({ classes: { root: classes.textfield }, InputProps: { classes: { root: classes.input, focused: classes.focused } }, color: color, variant: "outlined", onChange: onChange }, TextFieldProps)),
|
|
1009
|
-
React__default['default'].createElement(Button, __assign({ classes: { root: classes.button }, disableElevation: true, color: color, variant: "contained", onClick: onClick }, ButtonProps), buttonLabel)));
|
|
1010
|
-
};
|
|
1011
|
-
SplitInput.displayName = 'SplitInput';
|
|
1012
|
-
SplitInput.defaultProps = {
|
|
1013
|
-
backgroundTransparency: true,
|
|
1014
|
-
color: 'primary',
|
|
1015
|
-
};
|
|
1016
|
-
|
|
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: {},
|
|
1028
|
-
}); });
|
|
1029
|
-
|
|
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 = React__default['default'].createElement(MuiSwitch__default['default'], __assign({ classes: classes, disabled: label ? undefined : disabled }, muiProps));
|
|
1034
|
-
return label ? (React__default['default'].createElement(FormControlLabel__default['default'], __assign({ disabled: disabled, inputRef: ref, control: control, label: label }, LabelProps))) : (control);
|
|
1035
|
-
});
|
|
1036
|
-
Switch.displayName = 'Switch';
|
|
1037
|
-
|
|
1038
|
-
var TabPanel = function (props) {
|
|
1039
|
-
var children = props.children, show = props.show;
|
|
1040
|
-
return show ? React__default['default'].createElement(core.Box, null, children) : null;
|
|
1041
|
-
};
|
|
1042
|
-
|
|
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
|
-
},
|
|
1056
|
-
}); });
|
|
1057
|
-
|
|
1058
|
-
var ToggleButton = React.forwardRef(function (props, ref) {
|
|
1059
|
-
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
1060
|
-
var classes = useToggleButtonStyles(props);
|
|
1061
|
-
return (React__default['default'].createElement(MuiToggleButton__default['default'], __assign({ ref: ref, classes: {
|
|
1062
|
-
root: classes.root,
|
|
1063
|
-
selected: classes.selected,
|
|
1064
|
-
} }, muiProps), children));
|
|
1065
|
-
});
|
|
1066
|
-
ToggleButton.defaultProps = {
|
|
1067
|
-
color: 'primary',
|
|
1068
|
-
};
|
|
1069
|
-
ToggleButton.displayName = 'ToggleButton';
|
|
1070
|
-
|
|
1071
|
-
var useToggleButtonGroupStyles = styles.makeStyles(function (theme) { return ({
|
|
1072
|
-
root: {
|
|
1073
|
-
'&&': {
|
|
1074
|
-
backgroundColor: theme.palette.grey[300],
|
|
1075
|
-
},
|
|
1076
|
-
},
|
|
1077
|
-
}); });
|
|
1078
|
-
|
|
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 = React__default['default'].Children.map(children, function (child) {
|
|
1083
|
-
if (!React__default['default'].isValidElement(child)) {
|
|
1084
|
-
return null;
|
|
1085
|
-
}
|
|
1086
|
-
return React__default['default'].cloneElement(child, { color: color });
|
|
1087
|
-
});
|
|
1088
|
-
return (React__default['default'].createElement(MuiToggleButtonGroup__default['default'], __assign({ ref: ref, classes: { root: classes.root } }, muiProps), childrenWithProps));
|
|
1089
|
-
});
|
|
1090
|
-
ToggleButtonGroup.displayName = 'ToggleButtonGroup';
|
|
1091
|
-
|
|
1092
|
-
var useTooltipStyles = styles.makeStyles(function (_a) {
|
|
1093
|
-
var typography = _a.typography;
|
|
1094
|
-
return ({
|
|
1095
|
-
tooltip: {
|
|
1096
|
-
fontSize: typography.pxToRem(16),
|
|
1097
|
-
},
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
|
|
1101
|
-
var Tooltip = React.forwardRef(function (props, ref) {
|
|
1102
|
-
var classes = useTooltipStyles(props);
|
|
1103
|
-
return React__default['default'].createElement(MuiTooltip__default['default'], __assign({ ref: ref, classes: classes }, props));
|
|
1104
|
-
});
|
|
1105
|
-
Tooltip.displayName = 'Tooltip';
|
|
1106
|
-
|
|
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
|
-
},
|
|
1133
|
-
}); });
|
|
1134
|
-
|
|
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 (React__default['default'].createElement(core.TextField, __assign({ classes: __assign(__assign({}, fieldClasses), classes), variant: "filled", type: "number", defaultValue: 0, InputProps: __assign({ classes: __assign(__assign({}, inputClasses), inputClassesOverride), disableUnderline: true, endAdornment: (React__default['default'].createElement(IconButton, __assign({ style: { fontSize: 20 }, onClick: onIncrement }, endAdornmentButtonProps),
|
|
1141
|
-
React__default['default'].createElement(Icon, { icon: SvgPlusCircle }))), startAdornment: (React__default['default'].createElement(IconButton, __assign({ style: { fontSize: 20 }, onClick: onDecrement }, startAdornmentButtonProps),
|
|
1142
|
-
React__default['default'].createElement(Icon, { icon: SvgMinusCircle }))) }, restInputProps) }, restProps)));
|
|
1143
|
-
};
|
|
1144
|
-
|
|
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 React__default['default'].createElement(core.DialogContent, { classes: classes }, props.children);
|
|
1156
|
-
};
|
|
1157
|
-
|
|
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;
|
|
1166
|
-
};
|
|
1167
|
-
|
|
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 (React__default['default'].createElement(core.Box, null,
|
|
1174
|
-
React__default['default'].createElement("img", { src: graphic, alt: messages[state.value + "GraphicAlt"] })));
|
|
1175
|
-
};
|
|
1176
|
-
|
|
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 (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1249
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.initialInputLabel, key: "identifier-input", id: "identifier-input", name: "identifier" }),
|
|
1250
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.initialCtaButtonLabel)));
|
|
1251
|
-
case 'signUp':
|
|
1252
|
-
return (React__default['default'].createElement("form", __assign({ ref: formRef }, formProps, { onInvalid: function (e) {
|
|
1253
|
-
e.preventDefault();
|
|
1254
|
-
} }),
|
|
1255
|
-
React__default['default'].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: {
|
|
1256
|
-
required: signUpEmailValue ? false : true,
|
|
1257
|
-
}, defaultValue: state.context.phone }),
|
|
1258
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.signUpNameInputLabel, key: "name-input", id: "name-input", name: "name", inputProps: { required: true } }),
|
|
1259
|
-
React__default['default'].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: {
|
|
1260
|
-
required: signUpPhoneValue ? false : true,
|
|
1261
|
-
type: 'email',
|
|
1262
|
-
}, defaultValue: state.context.email }),
|
|
1263
|
-
React__default['default'].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__default['default'].createElement(core.MenuItem, { "data-cy": 'option', key: locationOption.value, value: locationOption.value }, locationOption.label)); })),
|
|
1264
|
-
React__default['default'].createElement(core.Typography, { style: { alignSelf: 'start' } }, messages.signUpBirthdaySectionLabel),
|
|
1265
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.signUpMonthInputLabel, key: "birthday-month-input", id: "birthday-month-input", name: "birthdayMonth" }),
|
|
1266
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.signUpDayInputLabel, key: "birthday-date-input", id: "birthday-date-input", name: "birthdayDate" }),
|
|
1267
|
-
React__default['default'].createElement(core.Button, { disabled: loading || !formValidity, type: "submit" }, messages.signUp)));
|
|
1268
|
-
case 'emailFound':
|
|
1269
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1270
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
1271
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.emailFoundCtaButtonLabel)));
|
|
1272
|
-
case 'emailAuthCode':
|
|
1273
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1274
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.emailAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code" }),
|
|
1275
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
1276
|
-
case 'indirectUserFound': {
|
|
1277
|
-
if (state.context.email) {
|
|
1278
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1279
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email }),
|
|
1280
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
1281
|
-
}
|
|
1282
|
-
else if (state.context.phone) {
|
|
1283
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1284
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
1285
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.indirectUserFoundCtaButtonLabel)));
|
|
1286
|
-
}
|
|
1287
|
-
else
|
|
1288
|
-
return null;
|
|
1289
|
-
}
|
|
1290
|
-
case 'emailPasswordSignIn':
|
|
1291
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1292
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.emailFoundInputLabel, key: "email-input", id: "email-input", name: "email", value: state.context.email, InputLabelProps: { shrink: true } }),
|
|
1293
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
1294
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
1295
|
-
case 'phoneFound':
|
|
1296
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1297
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
1298
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.phoneFoundCtaButtonLabel)));
|
|
1299
|
-
case 'phoneAuthCode':
|
|
1300
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1301
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.phoneAuthCodeInputLabel, key: "code-input", id: "code-input", name: "code", autoComplete: "one-time-code" }),
|
|
1302
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
1303
|
-
case 'phonePasswordSignIn':
|
|
1304
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1305
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.phoneFoundInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone, InputLabelProps: { shrink: true } }),
|
|
1306
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.passwordInputLabel, key: "password-input", id: "password-input", name: "password", inputProps: { type: 'password' } }),
|
|
1307
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.signIn)));
|
|
1308
|
-
case 'requirePhone':
|
|
1309
|
-
return (React__default['default'].createElement("form", __assign({}, formProps),
|
|
1310
|
-
React__default['default'].createElement(core.TextField, { disabled: loading, label: messages.requirePhoneInputLabel, key: "phone-input", id: "phone-input", name: "phone", value: state.context.phone }),
|
|
1311
|
-
React__default['default'].createElement(core.Button, { disabled: loading, type: "submit" }, messages.requirePhoneCtaButtonLabel)));
|
|
1312
|
-
case 'welcome':
|
|
1313
|
-
return null;
|
|
1314
|
-
default:
|
|
1315
|
-
return null;
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
|
|
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 (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1333
|
-
React__default['default'].createElement(core.Divider, null),
|
|
1334
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", startIcon: logos.facebook, onClick: function () {
|
|
1335
|
-
onActionButtonClick('sign-in-with-facebook');
|
|
1336
|
-
} }, messages.continueWithFacebookButtonLabel),
|
|
1337
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", startIcon: logos.google, onClick: function () {
|
|
1338
|
-
onActionButtonClick('sign-in-with-google');
|
|
1339
|
-
} }, messages.continueWithGoogleButtonLabel)));
|
|
1340
|
-
case 'signUp':
|
|
1341
|
-
return null;
|
|
1342
|
-
case 'emailFound':
|
|
1343
|
-
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1344
|
-
React__default['default'].createElement(core.Divider, null),
|
|
1345
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
1346
|
-
onActionButtonClick('sign-in-with-password');
|
|
1347
|
-
} }, messages.signInWithPassword)));
|
|
1348
|
-
case 'emailAuthCode':
|
|
1349
|
-
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1350
|
-
React__default['default'].createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
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 (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1358
|
-
React__default['default'].createElement(core.Divider, null),
|
|
1359
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
1360
|
-
onActionButtonClick('use-different-account');
|
|
1361
|
-
} }, messages.indirectUserFoundCtaButtonLabelAlt)));
|
|
1362
|
-
case 'emailPasswordSignIn':
|
|
1363
|
-
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1364
|
-
React__default['default'].createElement(core.Divider, null),
|
|
1365
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
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 (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1375
|
-
React__default['default'].createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
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 (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1383
|
-
React__default['default'].createElement(core.Divider, null),
|
|
1384
|
-
React__default['default'].createElement(core.Button, { variant: "outlined", onClick: function () {
|
|
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 (React__default['default'].createElement(core.Button, { onClick: function () {
|
|
1392
|
-
onActionButtonClick('close');
|
|
1393
|
-
} }, messages.done));
|
|
1394
|
-
default:
|
|
1395
|
-
return null;
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
var FollowerAuthenticationBody = function () {
|
|
1400
|
-
return (React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
1401
|
-
React__default['default'].createElement(FollowerAuthenticationForm, null),
|
|
1402
|
-
React__default['default'].createElement(FollowerAuthenticationAltActions, null)));
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
|
-
var FollowerAuthenticationFooter = function () {
|
|
1406
|
-
var _a = useFollowerAuthenticationDialogContext(), messages = _a.messages, logos = _a.logos;
|
|
1407
|
-
return (React__default['default'].createElement(core.Box, { display: "flex", gridGap: 8 },
|
|
1408
|
-
React__default['default'].createElement(core.Typography, { variant: "body2" }, messages.poweredBy),
|
|
1409
|
-
logos.popmenu));
|
|
1410
|
-
};
|
|
1411
|
-
|
|
1412
|
-
var FollowerAuthenticationTitle = function () {
|
|
1413
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, messages = _a.messages;
|
|
1414
|
-
var title = messages[state.value + "Title"];
|
|
1415
|
-
return (React__default['default'].createElement(core.Box, null,
|
|
1416
|
-
React__default['default'].createElement(core.Typography, { variant: "h1", align: "center" }, title)));
|
|
1417
|
-
};
|
|
1418
|
-
|
|
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 (React__default['default'].createElement(core.Box, null,
|
|
1425
|
-
React__default['default'].createElement(core.Typography, { align: "center" }, info)));
|
|
1426
|
-
};
|
|
1427
|
-
|
|
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 (React__default['default'].createElement(core.IconButton, { classes: classes, "aria-label": messages.closeButtonLabel, onClick: handleClose },
|
|
1442
|
-
React__default['default'].createElement(SvgX, null)));
|
|
1443
|
-
};
|
|
1444
|
-
|
|
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
|
-
},
|
|
1477
|
-
};
|
|
1478
|
-
|
|
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 (React__default['default'].createElement(core.ThemeProvider, { theme: theme$1 },
|
|
1490
|
-
React__default['default'].createElement(FollowerAuthenticationDialogContextProvider, { value: restProps },
|
|
1491
|
-
React__default['default'].createElement(core.Dialog, { open: open, fullScreen: fullScreen, onClose: handleClose },
|
|
1492
|
-
React__default['default'].createElement(FollowerAuthenticationContent, null,
|
|
1493
|
-
React__default['default'].createElement(FollowerAuthenticationCloseButton, null),
|
|
1494
|
-
React__default['default'].createElement(FollowerAuthenticationGraphic, null),
|
|
1495
|
-
React__default['default'].createElement(FollowerAuthenticationTitle, null),
|
|
1496
|
-
React__default['default'].createElement(FollowerAuthenticationInfo, null),
|
|
1497
|
-
React__default['default'].createElement(FollowerAuthenticationBody, null),
|
|
1498
|
-
React__default['default'].createElement(FollowerAuthenticationFooter, null))))));
|
|
1499
|
-
};
|
|
1500
|
-
|
|
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
|
-
};
|
|
1512
|
-
};
|
|
1513
|
-
|
|
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
|
-
};
|
|
1543
|
-
};
|
|
1544
|
-
|
|
1545
|
-
Object.defineProperty(exports, 'Alert', {
|
|
1546
|
-
enumerable: true,
|
|
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', {
|
|
1582
|
-
enumerable: true,
|
|
1583
|
-
get: function () {
|
|
1584
|
-
return core.Breadcrumbs;
|
|
1585
|
-
}
|
|
1586
|
-
});
|
|
1587
|
-
Object.defineProperty(exports, 'ButtonBase', {
|
|
1588
|
-
enumerable: true,
|
|
1589
|
-
get: function () {
|
|
1590
|
-
return core.ButtonBase;
|
|
1591
|
-
}
|
|
1592
|
-
});
|
|
1593
|
-
Object.defineProperty(exports, 'ClickAwayListener', {
|
|
1594
|
-
enumerable: true,
|
|
1595
|
-
get: function () {
|
|
1596
|
-
return core.ClickAwayListener;
|
|
1597
|
-
}
|
|
1598
|
-
});
|
|
1599
|
-
Object.defineProperty(exports, 'Fab', {
|
|
1600
|
-
enumerable: true,
|
|
1601
|
-
get: function () {
|
|
1602
|
-
return core.Fab;
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
Object.defineProperty(exports, 'GridList', {
|
|
1606
|
-
enumerable: true,
|
|
1607
|
-
get: function () {
|
|
1608
|
-
return core.GridList;
|
|
1609
|
-
}
|
|
1610
|
-
});
|
|
1611
|
-
Object.defineProperty(exports, 'Hidden', {
|
|
1612
|
-
enumerable: true,
|
|
1613
|
-
get: function () {
|
|
1614
|
-
return core.Hidden;
|
|
1615
|
-
}
|
|
1616
|
-
});
|
|
1617
|
-
Object.defineProperty(exports, 'Modal', {
|
|
1618
|
-
enumerable: true,
|
|
1619
|
-
get: function () {
|
|
1620
|
-
return core.Modal;
|
|
1621
|
-
}
|
|
1622
|
-
});
|
|
1623
|
-
Object.defineProperty(exports, 'Popover', {
|
|
1624
|
-
enumerable: true,
|
|
1625
|
-
get: function () {
|
|
1626
|
-
return core.Popover;
|
|
1627
|
-
}
|
|
1628
|
-
});
|
|
1629
|
-
Object.defineProperty(exports, 'Popper', {
|
|
1630
|
-
enumerable: true,
|
|
1631
|
-
get: function () {
|
|
1632
|
-
return core.Popper;
|
|
1633
|
-
}
|
|
1634
|
-
});
|
|
1635
|
-
Object.defineProperty(exports, 'Step', {
|
|
1636
|
-
enumerable: true,
|
|
1637
|
-
get: function () {
|
|
1638
|
-
return core.Step;
|
|
1639
|
-
}
|
|
1640
|
-
});
|
|
1641
|
-
Object.defineProperty(exports, 'StepButton', {
|
|
1642
|
-
enumerable: true,
|
|
1643
|
-
get: function () {
|
|
1644
|
-
return core.StepButton;
|
|
1645
|
-
}
|
|
1646
|
-
});
|
|
1647
|
-
Object.defineProperty(exports, 'StepConnector', {
|
|
1648
|
-
enumerable: true,
|
|
1649
|
-
get: function () {
|
|
1650
|
-
return core.StepConnector;
|
|
1651
|
-
}
|
|
1652
|
-
});
|
|
1653
|
-
Object.defineProperty(exports, 'StepContent', {
|
|
1654
|
-
enumerable: true,
|
|
1655
|
-
get: function () {
|
|
1656
|
-
return core.StepContent;
|
|
1657
|
-
}
|
|
1658
|
-
});
|
|
1659
|
-
Object.defineProperty(exports, 'StepIcon', {
|
|
1660
|
-
enumerable: true,
|
|
1661
|
-
get: function () {
|
|
1662
|
-
return core.StepIcon;
|
|
1663
|
-
}
|
|
1664
|
-
});
|
|
1665
|
-
Object.defineProperty(exports, 'StepLabel', {
|
|
1666
|
-
enumerable: true,
|
|
1667
|
-
get: function () {
|
|
1668
|
-
return core.StepLabel;
|
|
1669
|
-
}
|
|
1670
|
-
});
|
|
1671
|
-
Object.defineProperty(exports, 'Stepper', {
|
|
1672
|
-
enumerable: true,
|
|
1673
|
-
get: function () {
|
|
1674
|
-
return core.Stepper;
|
|
1675
|
-
}
|
|
1676
|
-
});
|
|
1677
|
-
Object.defineProperty(exports, 'ThemeProvider', {
|
|
1678
|
-
enumerable: true,
|
|
1679
|
-
get: function () {
|
|
1680
|
-
return core.ThemeProvider;
|
|
1681
|
-
}
|
|
1682
|
-
});
|
|
1683
|
-
Object.defineProperty(exports, 'Toolbar', {
|
|
1684
|
-
enumerable: true,
|
|
1685
|
-
get: function () {
|
|
1686
|
-
return core.Toolbar;
|
|
1687
|
-
}
|
|
1688
|
-
});
|
|
1689
|
-
Object.defineProperty(exports, 'alpha', {
|
|
1690
|
-
enumerable: true,
|
|
1691
|
-
get: function () {
|
|
1692
|
-
return core.alpha;
|
|
1693
|
-
}
|
|
1694
|
-
});
|
|
1695
|
-
Object.defineProperty(exports, 'createTheme', {
|
|
1696
|
-
enumerable: true,
|
|
1697
|
-
get: function () {
|
|
1698
|
-
return core.createTheme;
|
|
1699
|
-
}
|
|
1700
|
-
});
|
|
1701
|
-
Object.defineProperty(exports, 'darken', {
|
|
1702
|
-
enumerable: true,
|
|
1703
|
-
get: function () {
|
|
1704
|
-
return core.darken;
|
|
1705
|
-
}
|
|
1706
|
-
});
|
|
1707
|
-
Object.defineProperty(exports, 'decomposeColor', {
|
|
1708
|
-
enumerable: true,
|
|
1709
|
-
get: function () {
|
|
1710
|
-
return core.decomposeColor;
|
|
1711
|
-
}
|
|
1712
|
-
});
|
|
1713
|
-
Object.defineProperty(exports, 'getLuminance', {
|
|
1714
|
-
enumerable: true,
|
|
1715
|
-
get: function () {
|
|
1716
|
-
return core.getLuminance;
|
|
1717
|
-
}
|
|
1718
|
-
});
|
|
1719
|
-
Object.defineProperty(exports, 'hexToRgb', {
|
|
1720
|
-
enumerable: true,
|
|
1721
|
-
get: function () {
|
|
1722
|
-
return core.hexToRgb;
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
Object.defineProperty(exports, 'lighten', {
|
|
1726
|
-
enumerable: true,
|
|
1727
|
-
get: function () {
|
|
1728
|
-
return core.lighten;
|
|
1729
|
-
}
|
|
1730
|
-
});
|
|
1731
|
-
Object.defineProperty(exports, 'makeStyles', {
|
|
1732
|
-
enumerable: true,
|
|
1733
|
-
get: function () {
|
|
1734
|
-
return core.makeStyles;
|
|
1735
|
-
}
|
|
1736
|
-
});
|
|
1737
|
-
Object.defineProperty(exports, 'recomposeColor', {
|
|
1738
|
-
enumerable: true,
|
|
1739
|
-
get: function () {
|
|
1740
|
-
return core.recomposeColor;
|
|
1741
|
-
}
|
|
1742
|
-
});
|
|
1743
|
-
Object.defineProperty(exports, 'rgbToHex', {
|
|
1744
|
-
enumerable: true,
|
|
1745
|
-
get: function () {
|
|
1746
|
-
return core.rgbToHex;
|
|
1747
|
-
}
|
|
1748
|
-
});
|
|
1749
|
-
Object.defineProperty(exports, 'AppBar', {
|
|
1750
|
-
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
|
-
}
|
|
1760
|
-
});
|
|
1761
|
-
Object.defineProperty(exports, 'Badge', {
|
|
1762
|
-
enumerable: true,
|
|
1763
|
-
get: function () {
|
|
1764
|
-
return Badge__default['default'];
|
|
1765
|
-
}
|
|
1766
|
-
});
|
|
1767
|
-
Object.defineProperty(exports, 'CircularProgress', {
|
|
1768
|
-
enumerable: true,
|
|
1769
|
-
get: function () {
|
|
1770
|
-
return CircularProgress__default['default'];
|
|
1771
|
-
}
|
|
1772
|
-
});
|
|
1773
|
-
Object.defineProperty(exports, 'ButtonGroup', {
|
|
1774
|
-
enumerable: true,
|
|
1775
|
-
get: function () {
|
|
1776
|
-
return ButtonGroup__default['default'];
|
|
1777
|
-
}
|
|
1778
|
-
});
|
|
1779
|
-
Object.defineProperty(exports, 'Card', {
|
|
1780
|
-
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
|
-
}
|
|
1826
|
-
});
|
|
1827
|
-
Object.defineProperty(exports, 'DialogActions', {
|
|
1828
|
-
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
|
-
}
|
|
1946
|
-
});
|
|
1947
|
-
exports.Avatar = Avatar;
|
|
1948
|
-
exports.BrowserSilhouette = BrowserSilhouette;
|
|
1949
|
-
exports.Button = Button;
|
|
1950
|
-
exports.Checkbox = Checkbox;
|
|
1951
|
-
exports.Chip = Chip;
|
|
1952
|
-
exports.CollapsibleText = CollapsibleText;
|
|
1953
|
-
exports.Divider = Divider;
|
|
1954
|
-
exports.FollowerAuthenticationDialog = FollowerAuthenticationDialog;
|
|
1955
|
-
exports.Icon = Icon;
|
|
1956
|
-
exports.IconButton = IconButton;
|
|
1957
|
-
exports.Link = Link;
|
|
1958
|
-
exports.NumberField = NumberField;
|
|
1959
|
-
exports.Paper = Paper;
|
|
1960
|
-
exports.PaperContent = PaperContent;
|
|
1961
|
-
exports.Radio = Radio;
|
|
1962
|
-
exports.SplitInput = SplitInput;
|
|
1963
|
-
exports.Switch = Switch;
|
|
1964
|
-
exports.TabPanel = TabPanel;
|
|
1965
|
-
exports.ToggleButton = ToggleButton;
|
|
1966
|
-
exports.ToggleButtonGroup = ToggleButtonGroup;
|
|
1967
|
-
exports.Tooltip = Tooltip;
|
|
1968
|
-
exports.Typography = Typography;
|
|
1969
|
-
exports.useCollapsibleText = useCollapsibleText;
|
|
1970
|
-
exports.useTabs = useTabs;
|
|
1971
|
-
//# sourceMappingURL=index.js.map
|