@popmenu/admin-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/Alert/Alert.d.ts +3 -0
- package/build/{components → cjs/components}/Alert/AlertProps.d.ts +14 -14
- package/build/{components → cjs/components}/Alert/AlertStyles.d.ts +2 -2
- package/build/{components → cjs/components}/Alert/index.d.ts +2 -2
- package/build/cjs/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/build/{components → cjs/components}/AlertDialog/AlertDialogProps.d.ts +26 -26
- package/build/cjs/components/AlertDialog/AlertDialogStyles.d.ts +2 -0
- package/build/{components → cjs/components}/AlertDialog/index.d.ts +2 -2
- package/build/{components → cjs/components}/AlertDialogHeader/AlertDialogHeader.d.ts +3 -3
- package/build/{components → cjs/components}/AlertDialogHeader/index.d.ts +1 -1
- package/build/{components → cjs/components}/AlertTitle/AlertTitle.d.ts +3 -3
- package/build/cjs/components/AlertTitle/index.d.ts +2 -0
- package/build/{components → cjs/components}/Button/Button.d.ts +11 -11
- package/build/{components → cjs/components}/Button/ButtonProps.d.ts +8 -8
- package/build/{components → cjs/components}/Button/ButtonStyles.d.ts +7 -7
- package/build/{components → cjs/components}/Button/index.d.ts +2 -2
- package/build/{components → cjs/components}/Button/util/deriveButtonProps.d.ts +5 -5
- package/build/cjs/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/build/{components → cjs/components}/ButtonGroup/ButtonGroupProps.d.ts +8 -8
- package/build/{components → cjs/components}/ButtonGroup/ButtonGroupStyles.d.ts +2 -2
- package/build/{components → cjs/components}/ButtonGroup/index.d.ts +2 -2
- package/build/{components → cjs/components}/Dialog/index.d.ts +1 -1
- package/build/{components → cjs/components}/DialogActions/DialogActions.d.ts +3 -3
- package/build/{components → cjs/components}/DialogActions/index.d.ts +2 -2
- package/build/{components → cjs/components}/DialogContent/index.d.ts +1 -1
- package/build/{components → cjs/components}/DialogTitle/index.d.ts +1 -1
- package/build/{components → cjs/components}/FeatureIntro/FeatureIntro.d.ts +3 -3
- package/build/{components → cjs/components}/FeatureIntro/FeatureIntroProps.d.ts +22 -22
- package/build/{components → cjs/components}/FeatureIntro/FeatureIntroStyles.d.ts +2 -2
- package/build/{components → cjs/components}/FeatureIntro/index.d.ts +2 -2
- package/build/{components → cjs/components}/FullScreenStepper/FullScreenStepper.d.ts +8 -8
- package/build/{components → cjs/components}/FullScreenStepper/FullScreenStepperContext.d.ts +6 -6
- package/build/{components → cjs/components}/FullScreenStepper/FullScreenStepperProps.d.ts +68 -68
- package/build/{components → cjs/components}/FullScreenStepper/index.d.ts +3 -3
- package/build/{components → cjs/components}/FullScreenStepper/types/index.d.ts +25 -25
- package/build/{components → cjs/components}/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -3
- package/build/{components → cjs/components}/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +22 -22
- package/build/{components → cjs/components}/FullScreenStepperActions/FullScreenStepperActionsStyles.d.ts +2 -2
- package/build/{components → cjs/components}/FullScreenStepperActions/index.d.ts +2 -2
- package/build/{components → cjs/components}/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +11 -11
- package/build/{components → cjs/components}/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +12 -12
- package/build/{components → cjs/components}/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +11 -11
- package/build/{components → cjs/components}/FullScreenStepperActions/util/StepperActionsStatusText.d.ts +4 -4
- package/build/{components → cjs/components}/FullScreenStepperActions/util/augmentButtonProps.d.ts +5 -5
- package/build/{components → cjs/components}/FullScreenStepperContent/FullScreenStepperContent.d.ts +5 -5
- package/build/{components → cjs/components}/FullScreenStepperContent/index.d.ts +1 -1
- package/build/{components → cjs/components}/FullScreenStepperHeader/FullScreenStepperHeader.d.ts +3 -3
- package/build/{components → cjs/components}/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +8 -8
- package/build/{components → cjs/components}/FullScreenStepperHeader/FullScreenStepperHeaderStyles.d.ts +2 -2
- package/build/{components → cjs/components}/FullScreenStepperHeader/index.d.ts +1 -1
- package/build/{components → cjs/components}/FullScreenStepperProgress/FullScreenStepperProgress.d.ts +3 -3
- package/build/{components → cjs/components}/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +5 -5
- package/build/{components → cjs/components}/FullScreenStepperProgress/FullScreenStepperProgressStyles.d.ts +2 -2
- package/build/{components → cjs/components}/FullScreenStepperProgress/index.d.ts +1 -1
- package/build/{components → cjs/components}/List/List.d.ts +3 -3
- package/build/{components → cjs/components}/List/ListProps.d.ts +4 -4
- package/build/{components → cjs/components}/List/index.d.ts +2 -2
- package/build/{components → cjs/components}/List/styles.d.ts +2 -2
- package/build/{components → cjs/components}/Page/Page.d.ts +2 -2
- package/build/{components → cjs/components}/Page/index.d.ts +1 -1
- package/build/{components → cjs/components}/PageBody/PageBody.d.ts +2 -2
- package/build/{components → cjs/components}/PageBody/index.d.ts +1 -1
- package/build/{components → cjs/components}/PageSection/PageSection.d.ts +3 -3
- package/build/{components → cjs/components}/PageSection/PageSectionProps.d.ts +5 -5
- package/build/{components → cjs/components}/PageSection/PageSectionStyles.d.ts +2 -2
- package/build/{components → cjs/components}/PageSection/index.d.ts +1 -1
- package/build/{components → cjs/components}/PageSectionHead/PageSectionHead.d.ts +2 -2
- package/build/{components → cjs/components}/PageSectionHead/index.d.ts +1 -1
- package/build/{components → cjs/components}/PageSectionTitle/PageSectionTitle.d.ts +3 -3
- package/build/{components → cjs/components}/PageSectionTitle/index.d.ts +1 -1
- package/build/{components → cjs/components}/PageSectionTitle/styles.d.ts +1 -1
- package/build/{components → cjs/components}/PageSections/PageSections.d.ts +2 -2
- package/build/{components → cjs/components}/PageSections/index.d.ts +1 -1
- package/build/{components → cjs/components}/SelectableCard/SelectableCard.d.ts +3 -3
- package/build/{components → cjs/components}/SelectableCard/SelectableCardProps.d.ts +17 -18
- package/build/{components → cjs/components}/SelectableCard/SelectableCardStyles.d.ts +2 -2
- package/build/{components → cjs/components}/SelectableCard/index.d.ts +2 -2
- package/build/{components → cjs/components}/SettingsIndexCard/SettingsIndexCard.d.ts +11 -11
- package/build/{components → cjs/components}/SettingsIndexCard/SettingsIndexCardProps.d.ts +20 -20
- package/build/{components → cjs/components}/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -2
- package/build/{components → cjs/components}/SettingsIndexCard/index.d.ts +2 -2
- package/build/{components → cjs/components}/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -3
- package/build/{components → cjs/components}/SettingsIndexCardGroup/index.d.ts +1 -1
- package/build/{components → cjs/components}/StandardListItem/StandardListItem.d.ts +9 -9
- package/build/{components → cjs/components}/StandardListItem/StandardListItemProps.d.ts +25 -25
- package/build/{components → cjs/components}/StandardListItem/index.d.ts +2 -2
- package/build/{components → cjs/components}/Toast/Toast.d.ts +3 -3
- package/build/{components → cjs/components}/Toast/ToastProps.d.ts +10 -10
- package/build/{components → cjs/components}/Toast/ToastStyles.d.ts +2 -2
- package/build/{components → cjs/components}/Toast/index.d.ts +2 -2
- package/build/{components → cjs/components}/index.d.ts +27 -27
- package/build/{hooks → cjs/hooks}/index.d.ts +3 -3
- package/build/{hooks → cjs/hooks}/useDialog.d.ts +12 -12
- package/build/{hooks → cjs/hooks}/useFullScreenStepperContext.d.ts +2 -2
- package/build/{hooks → cjs/hooks}/useSelectableCard.d.ts +24 -24
- package/build/{index.d.ts → cjs/index.d.ts} +3 -3
- package/build/cjs/index.js +1309 -0
- package/build/cjs/index.js.map +1 -0
- package/build/{theme → cjs/theme}/adminDarkTheme.d.ts +252 -227
- package/build/{theme → cjs/theme}/adminLightTheme.d.ts +253 -228
- package/build/{theme → cjs/theme}/breakpoints.d.ts +9 -9
- package/build/{theme → cjs/theme}/customThemeProperties.d.ts +63 -63
- package/build/{theme → cjs/theme}/index.d.ts +2 -2
- package/build/{theme → cjs/theme}/overrides.d.ts +30 -30
- package/build/{theme → cjs/theme}/palette.d.ts +128 -128
- package/build/{theme → cjs/theme}/props.d.ts +8 -8
- package/build/{theme → cjs/theme}/typography.d.ts +61 -61
- package/build/esm/components/Alert/Alert.d.ts +3 -0
- package/build/esm/components/Alert/Alert.js +41 -0
- package/build/esm/components/Alert/Alert.js.map +1 -0
- package/build/esm/components/Alert/AlertProps.d.ts +14 -0
- package/build/esm/components/Alert/AlertStyles.d.ts +2 -0
- package/build/esm/components/Alert/AlertStyles.js +21 -0
- package/build/esm/components/Alert/AlertStyles.js.map +1 -0
- package/build/esm/components/Alert/index.d.ts +2 -0
- package/build/esm/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/build/esm/components/AlertDialog/AlertDialog.js +32 -0
- package/build/esm/components/AlertDialog/AlertDialog.js.map +1 -0
- package/build/esm/components/AlertDialog/AlertDialogProps.d.ts +26 -0
- package/build/esm/components/AlertDialog/AlertDialogStyles.d.ts +2 -0
- package/build/esm/components/AlertDialog/AlertDialogStyles.js +29 -0
- package/build/esm/components/AlertDialog/AlertDialogStyles.js.map +1 -0
- package/build/esm/components/AlertDialog/index.d.ts +2 -0
- package/build/esm/components/AlertDialogHeader/AlertDialogHeader.d.ts +3 -0
- package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js +13 -0
- package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js.map +1 -0
- package/build/esm/components/AlertDialogHeader/index.d.ts +1 -0
- package/build/esm/components/AlertTitle/AlertTitle.d.ts +3 -0
- package/build/esm/components/AlertTitle/AlertTitle.js +17 -0
- package/build/esm/components/AlertTitle/AlertTitle.js.map +1 -0
- package/build/esm/components/AlertTitle/index.d.ts +2 -0
- package/build/esm/components/Button/Button.d.ts +11 -0
- package/build/esm/components/Button/Button.js +22 -0
- package/build/esm/components/Button/Button.js.map +1 -0
- package/build/esm/components/Button/ButtonProps.d.ts +8 -0
- package/build/esm/components/Button/ButtonStyles.d.ts +7 -0
- package/build/esm/components/Button/ButtonStyles.js +123 -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/Button/util/deriveButtonProps.d.ts +5 -0
- package/build/esm/components/Button/util/deriveButtonProps.js +42 -0
- package/build/esm/components/Button/util/deriveButtonProps.js.map +1 -0
- package/build/esm/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/build/esm/components/ButtonGroup/ButtonGroup.js +28 -0
- package/build/esm/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/build/esm/components/ButtonGroup/ButtonGroupProps.d.ts +8 -0
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.d.ts +2 -0
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js +28 -0
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js.map +1 -0
- package/build/esm/components/ButtonGroup/index.d.ts +2 -0
- package/build/esm/components/Dialog/index.d.ts +1 -0
- package/build/esm/components/DialogActions/DialogActions.d.ts +3 -0
- package/build/esm/components/DialogActions/DialogActions.js +20 -0
- package/build/esm/components/DialogActions/DialogActions.js.map +1 -0
- package/build/esm/components/DialogActions/index.d.ts +2 -0
- package/build/esm/components/DialogContent/index.d.ts +1 -0
- package/build/esm/components/DialogTitle/index.d.ts +1 -0
- package/build/esm/components/FeatureIntro/FeatureIntro.d.ts +3 -0
- package/build/esm/components/FeatureIntro/FeatureIntro.js +27 -0
- package/build/esm/components/FeatureIntro/FeatureIntro.js.map +1 -0
- package/build/esm/components/FeatureIntro/FeatureIntroProps.d.ts +22 -0
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.d.ts +2 -0
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js +20 -0
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js.map +1 -0
- package/build/esm/components/FeatureIntro/index.d.ts +2 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepper.d.ts +8 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js +104 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js.map +1 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.d.ts +6 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js +6 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepperProps.d.ts +68 -0
- package/build/esm/components/FullScreenStepper/index.d.ts +3 -0
- package/build/esm/components/FullScreenStepper/types/index.d.ts +25 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js +26 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +22 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.d.ts +2 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js +29 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/index.d.ts +2 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +11 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js +13 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +12 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js +17 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +11 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js +13 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.d.ts +4 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js +17 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js.map +1 -0
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +5 -0
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js +29 -0
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js.map +1 -0
- package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.d.ts +5 -0
- package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js +11 -0
- package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js.map +1 -0
- package/build/esm/components/FullScreenStepperContent/index.d.ts +1 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.d.ts +3 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js +22 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js.map +1 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +8 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.d.ts +2 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +26 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -0
- package/build/esm/components/FullScreenStepperHeader/index.d.ts +1 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.d.ts +3 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js +12 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js.map +1 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +5 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.d.ts +2 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +36 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -0
- package/build/esm/components/FullScreenStepperProgress/index.d.ts +1 -0
- package/build/esm/components/List/List.d.ts +3 -0
- package/build/esm/components/List/List.js +15 -0
- package/build/esm/components/List/List.js.map +1 -0
- package/build/esm/components/List/ListProps.d.ts +4 -0
- package/build/esm/components/List/index.d.ts +2 -0
- package/build/esm/components/List/styles.d.ts +2 -0
- package/build/esm/components/List/styles.js +24 -0
- package/build/esm/components/List/styles.js.map +1 -0
- package/build/esm/components/Page/Page.d.ts +2 -0
- package/build/esm/components/Page/Page.js +11 -0
- package/build/esm/components/Page/Page.js.map +1 -0
- package/build/esm/components/Page/index.d.ts +1 -0
- package/build/esm/components/PageBody/PageBody.d.ts +2 -0
- package/build/esm/components/PageBody/PageBody.js +11 -0
- package/build/esm/components/PageBody/PageBody.js.map +1 -0
- package/build/esm/components/PageBody/index.d.ts +1 -0
- package/build/esm/components/PageSection/PageSection.d.ts +3 -0
- package/build/esm/components/PageSection/PageSection.js +15 -0
- package/build/esm/components/PageSection/PageSection.js.map +1 -0
- package/build/esm/components/PageSection/PageSectionProps.d.ts +5 -0
- package/build/esm/components/PageSection/PageSectionStyles.d.ts +2 -0
- package/build/esm/components/PageSection/PageSectionStyles.js +19 -0
- package/build/esm/components/PageSection/PageSectionStyles.js.map +1 -0
- package/build/esm/components/PageSection/index.d.ts +1 -0
- package/build/esm/components/PageSectionHead/PageSectionHead.d.ts +2 -0
- package/build/esm/components/PageSectionHead/PageSectionHead.js +13 -0
- package/build/esm/components/PageSectionHead/PageSectionHead.js.map +1 -0
- package/build/esm/components/PageSectionHead/index.d.ts +1 -0
- package/build/esm/components/PageSectionTitle/PageSectionTitle.d.ts +3 -0
- package/build/esm/components/PageSectionTitle/PageSectionTitle.js +13 -0
- package/build/esm/components/PageSectionTitle/PageSectionTitle.js.map +1 -0
- package/build/esm/components/PageSectionTitle/index.d.ts +1 -0
- package/build/esm/components/PageSectionTitle/styles.d.ts +1 -0
- package/build/esm/components/PageSectionTitle/styles.js +10 -0
- package/build/esm/components/PageSectionTitle/styles.js.map +1 -0
- package/build/esm/components/PageSections/PageSections.d.ts +2 -0
- package/build/esm/components/PageSections/PageSections.js +11 -0
- package/build/esm/components/PageSections/PageSections.js.map +1 -0
- package/build/esm/components/PageSections/index.d.ts +1 -0
- package/build/esm/components/SelectableCard/SelectableCard.d.ts +3 -0
- package/build/esm/components/SelectableCard/SelectableCard.js +22 -0
- package/build/esm/components/SelectableCard/SelectableCard.js.map +1 -0
- package/build/esm/components/SelectableCard/SelectableCardProps.d.ts +17 -0
- package/build/esm/components/SelectableCard/SelectableCardStyles.d.ts +2 -0
- package/build/esm/components/SelectableCard/SelectableCardStyles.js +47 -0
- package/build/esm/components/SelectableCard/SelectableCardStyles.js.map +1 -0
- package/build/esm/components/SelectableCard/index.d.ts +2 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCard.d.ts +11 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js +24 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js.map +1 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardProps.d.ts +20 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js +21 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js.map +1 -0
- package/build/esm/components/SettingsIndexCard/index.d.ts +2 -0
- package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -0
- package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js +11 -0
- package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js.map +1 -0
- package/build/esm/components/SettingsIndexCardGroup/index.d.ts +1 -0
- package/build/esm/components/StandardListItem/StandardListItem.d.ts +9 -0
- package/build/esm/components/StandardListItem/StandardListItem.js +40 -0
- package/build/esm/components/StandardListItem/StandardListItem.js.map +1 -0
- package/build/esm/components/StandardListItem/StandardListItemProps.d.ts +25 -0
- package/build/esm/components/StandardListItem/index.d.ts +2 -0
- package/build/esm/components/Toast/Toast.d.ts +3 -0
- package/build/esm/components/Toast/Toast.js +20 -0
- package/build/esm/components/Toast/Toast.js.map +1 -0
- package/build/esm/components/Toast/ToastProps.d.ts +10 -0
- package/build/esm/components/Toast/ToastStyles.d.ts +2 -0
- package/build/esm/components/Toast/ToastStyles.js +16 -0
- package/build/esm/components/Toast/ToastStyles.js.map +1 -0
- package/build/esm/components/Toast/index.d.ts +2 -0
- package/build/esm/components/index.d.ts +27 -0
- package/build/esm/hooks/index.d.ts +3 -0
- package/build/esm/hooks/useDialog.d.ts +12 -0
- package/build/esm/hooks/useDialog.js +13 -0
- package/build/esm/hooks/useDialog.js.map +1 -0
- package/build/esm/hooks/useFullScreenStepperContext.d.ts +2 -0
- package/build/esm/hooks/useFullScreenStepperContext.js +8 -0
- package/build/esm/hooks/useFullScreenStepperContext.js.map +1 -0
- package/build/esm/hooks/useSelectableCard.d.ts +24 -0
- package/build/esm/hooks/useSelectableCard.js +50 -0
- package/build/esm/hooks/useSelectableCard.js.map +1 -0
- package/build/esm/index.d.ts +3 -0
- package/build/esm/index.js +32 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/theme/adminDarkTheme.d.ts +252 -0
- package/build/esm/theme/adminDarkTheme.js +13 -0
- package/build/esm/theme/adminDarkTheme.js.map +1 -0
- package/build/esm/theme/adminLightTheme.d.ts +253 -0
- package/build/esm/theme/adminLightTheme.js +13 -0
- package/build/esm/theme/adminLightTheme.js.map +1 -0
- package/build/esm/theme/breakpoints.d.ts +9 -0
- package/build/esm/theme/breakpoints.js +12 -0
- package/build/esm/theme/breakpoints.js.map +1 -0
- package/build/esm/theme/customThemeProperties.d.ts +63 -0
- package/build/esm/theme/customThemeProperties.js +54 -0
- package/build/esm/theme/customThemeProperties.js.map +1 -0
- package/build/esm/theme/index.d.ts +2 -0
- package/build/esm/theme/overrides.d.ts +30 -0
- package/build/esm/theme/overrides.js +35 -0
- package/build/esm/theme/overrides.js.map +1 -0
- package/build/esm/theme/palette.d.ts +128 -0
- package/build/esm/theme/palette.js +131 -0
- package/build/esm/theme/palette.js.map +1 -0
- package/build/esm/theme/props.d.ts +8 -0
- package/build/esm/theme/props.js +11 -0
- package/build/esm/theme/props.js.map +1 -0
- package/build/esm/theme/typography.d.ts +61 -0
- package/build/esm/theme/typography.js +65 -0
- package/build/esm/theme/typography.js.map +1 -0
- package/package.json +9 -9
- package/build/components/Alert/Alert.d.ts +0 -3
- package/build/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/build/components/AlertDialog/AlertDialogStyles.d.ts +0 -2
- package/build/components/AlertTitle/index.d.ts +0 -2
- package/build/components/ButtonGroup/ButtonGroup.d.ts +0 -3
- package/build/index.es.js +0 -2375
- package/build/index.es.js.map +0 -1
- package/build/index.js +0 -2498
- package/build/index.js.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { DialogProps } from '@popmenu/common-ui';
|
|
3
|
+
export interface AlertDialogProps extends DialogProps {
|
|
4
|
+
/** Sets the text within the cancel button. */
|
|
5
|
+
cancelButtonText?: string;
|
|
6
|
+
/** Hides the cancel button. */
|
|
7
|
+
hideCancelButton?: boolean;
|
|
8
|
+
/** The id of the DOM node serving as the description for the AlertDialog. Required for accessibility standards. */
|
|
9
|
+
descriptionId: string;
|
|
10
|
+
/** The id of the DOM node serving as the label for the AlertDialog. Required for accessibility standards. */
|
|
11
|
+
labelId: string;
|
|
12
|
+
/** Callback for when the cancel button in the dialog is clicked. */
|
|
13
|
+
onClose?: (event: React.SyntheticEvent) => void;
|
|
14
|
+
/** Callback for when the cancel button in the dialog is clicked. */
|
|
15
|
+
onCancel?: () => void;
|
|
16
|
+
/** Callback for when the proceed button in the dialog is clicked. */
|
|
17
|
+
onProceed?: () => void;
|
|
18
|
+
/** Sets the text within the proceed button. */
|
|
19
|
+
proceedButtonText?: string;
|
|
20
|
+
/** Sets disabled state on the buttons */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Sets the type of dialog that will be shown. */
|
|
23
|
+
severity?: 'info' | 'error' | 'warning' | 'success';
|
|
24
|
+
/** @ignore */
|
|
25
|
+
ref?: (instance: HTMLDivElement) => void | Ref<HTMLDivElement> | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { makeStyles } from '@material-ui/core';
|
|
2
|
+
|
|
3
|
+
var useAlertDialogStyles = makeStyles(function (theme) { return ({
|
|
4
|
+
cancelButton: {
|
|
5
|
+
color: theme.palette.grey[700],
|
|
6
|
+
},
|
|
7
|
+
cancelIcon: {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
right: theme.spacing(1),
|
|
10
|
+
top: theme.spacing(2),
|
|
11
|
+
},
|
|
12
|
+
card: {
|
|
13
|
+
borderRadius: theme.spacing(0.75),
|
|
14
|
+
borderTop: function (props) { return theme.spacing(1.25) + "px solid " + theme.palette[props.severity || 'info'].main; },
|
|
15
|
+
},
|
|
16
|
+
cardActions: {
|
|
17
|
+
background: theme.palette.grey[100],
|
|
18
|
+
justifyContent: 'flex-end',
|
|
19
|
+
},
|
|
20
|
+
icon: {
|
|
21
|
+
fontSize: theme.spacing(5),
|
|
22
|
+
},
|
|
23
|
+
root: {
|
|
24
|
+
borderRadius: theme.spacing(0.75),
|
|
25
|
+
},
|
|
26
|
+
}); });
|
|
27
|
+
|
|
28
|
+
export { useAlertDialogStyles };
|
|
29
|
+
//# sourceMappingURL=AlertDialogStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialogStyles.js","sources":["../../../../src/components/AlertDialog/AlertDialogStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { AlertDialogProps } from './AlertDialogProps'\n\nexport const useAlertDialogStyles = makeStyles<\n Theme,\n AlertDialogProps,\n 'cancelButton' | 'cancelIcon' | 'card' | 'cardActions' | 'icon' | 'root'\n>((theme) => ({\n cancelButton: {\n color: theme.palette.grey[700],\n },\n cancelIcon: {\n position: 'absolute',\n right: theme.spacing(1),\n top: theme.spacing(2),\n },\n card: {\n borderRadius: theme.spacing(0.75),\n borderTop: (props) => `${theme.spacing(1.25)}px solid ${theme.palette[props.severity || 'info'].main}`,\n },\n cardActions: {\n background: theme.palette.grey[100],\n justifyContent: 'flex-end',\n },\n icon: {\n fontSize: theme.spacing(5),\n },\n root: {\n borderRadius: theme.spacing(0.75),\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,oBAAoB,GAAG,UAAU,CAI5C,UAAC,KAAK,EAAK,EAAA,QAAC;AACZ,IAAA,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/B,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACvB,QAAA,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACtB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACjC,SAAS,EAAE,UAAC,KAAK,EAAK,EAAA,OAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAA,WAAA,GAAY,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,IAAM,CAAA,EAAA;AACvG,KAAA;AACD,IAAA,WAAW,EAAE;QACX,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACnC,QAAA,cAAc,EAAE,UAAU;AAC3B,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;AAClC,KAAA;CACF,EAAC,EAAA;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box, Typography } from '@popmenu/common-ui';
|
|
4
|
+
|
|
5
|
+
var AlertDialogHeader = function (props) {
|
|
6
|
+
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
7
|
+
return (React.createElement(Box, __assign({ display: "flex", height: 40, alignItems: "center" }, muiProps),
|
|
8
|
+
React.createElement(Typography, { variant: "h6" }, children)));
|
|
9
|
+
};
|
|
10
|
+
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
11
|
+
|
|
12
|
+
export { AlertDialogHeader };
|
|
13
|
+
//# sourceMappingURL=AlertDialogHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialogHeader.js","sources":["../../../../src/components/AlertDialogHeader/AlertDialogHeader.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport { Box, BoxProps, Typography } from '@popmenu/common-ui'\n\nexport const AlertDialogHeader: FC<BoxProps> = (props) => {\n const { children, ...muiProps } = props\n return (\n <Box display=\"flex\" height={40} alignItems=\"center\" {...muiProps}>\n <Typography variant=\"h6\">{children}</Typography>\n </Box>\n )\n}\n\nAlertDialogHeader.displayName = 'AlertDialogHeader'\n"],"names":[],"mappings":";;;;AAIO,IAAM,iBAAiB,GAAiB,UAAC,KAAK,EAAA;IAC3C,IAAA,QAAQ,GAAkB,KAAK,CAAvB,QAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAAjC,CAAyB,UAAA,CAAA,CAAF;AAC7B,IAAA,QACE,KAAC,CAAA,aAAA,CAAA,GAAG,EAAC,QAAA,CAAA,EAAA,OAAO,EAAC,MAAM,EAAC,MAAM,EAAE,EAAE,EAAE,UAAU,EAAC,QAAQ,IAAK,QAAQ,CAAA;QAC9D,KAAC,CAAA,aAAA,CAAA,UAAU,EAAC,EAAA,OAAO,EAAC,IAAI,IAAE,QAAQ,CAAc,CAC5C;AAEV;AAEA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlertDialogHeader as default } from './AlertDialogHeader';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import { AlertTitle as AlertTitle$1 } from '@material-ui/lab';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Typography } from '@popmenu/common-ui';
|
|
5
|
+
|
|
6
|
+
var AlertTitle = function (props) {
|
|
7
|
+
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
8
|
+
return (React.createElement(AlertTitle$1, __assign({}, muiProps),
|
|
9
|
+
React.createElement(Typography, { variant: "h6" },
|
|
10
|
+
" ",
|
|
11
|
+
children,
|
|
12
|
+
" ")));
|
|
13
|
+
};
|
|
14
|
+
AlertTitle.displayName = 'AlertTitle';
|
|
15
|
+
|
|
16
|
+
export { AlertTitle };
|
|
17
|
+
//# sourceMappingURL=AlertTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertTitle.js","sources":["../../../../src/components/AlertTitle/AlertTitle.tsx"],"sourcesContent":["import { AlertTitleProps, AlertTitle as MuiAlertTitle } from '@material-ui/lab'\nimport React, { FC } from 'react'\n\nimport { Typography } from '@popmenu/common-ui'\n\nexport const AlertTitle: FC<AlertTitleProps> = (props) => {\n const { children, ...muiProps } = props\n return (\n <MuiAlertTitle {...muiProps}>\n <Typography variant=\"h6\"> {children} </Typography>\n </MuiAlertTitle>\n )\n}\n\nAlertTitle.displayName = 'AlertTitle'\n"],"names":["MuiAlertTitle"],"mappings":";;;;;AAKO,IAAM,UAAU,GAAwB,UAAC,KAAK,EAAA;IAC3C,IAAA,QAAQ,GAAkB,KAAK,CAAvB,QAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAAjC,CAAyB,UAAA,CAAA,CAAF;AAC7B,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,YAAa,EAAA,QAAA,CAAA,EAAA,EAAK,QAAQ,CAAA;AACzB,QAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,IAAI,EAAA;;YAAG,QAAQ;AAAe,YAAA,GAAA,CAAA,CACpC;AAEpB;AAEA,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './ButtonProps';
|
|
3
|
+
interface ButtonType {
|
|
4
|
+
<C extends React.ElementType = 'a'>(props: ButtonProps<C> & {
|
|
5
|
+
component?: C;
|
|
6
|
+
}): React.ReactElement;
|
|
7
|
+
defaultProps?: Partial<ButtonProps>;
|
|
8
|
+
displayName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Button: ButtonType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { Button as Button$1 } from '@popmenu/common-ui';
|
|
4
|
+
import { useButtonStyles } from './ButtonStyles.js';
|
|
5
|
+
import { deriveButtonProps } from './util/deriveButtonProps.js';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line react/display-name -- false positive
|
|
8
|
+
var Button = forwardRef(function (props, ref) {
|
|
9
|
+
var children = props.children; props.variant; var classesOverride = props.classes, commonProps = __rest(props, ["children", "variant", "classes"]);
|
|
10
|
+
var classes = useButtonStyles(props);
|
|
11
|
+
var derivedProps = deriveButtonProps(props);
|
|
12
|
+
var mergedProps = __assign(__assign({}, derivedProps), commonProps);
|
|
13
|
+
return (React.createElement(Button$1, __assign({ ref: ref, classes: __assign(__assign({}, classes), classesOverride), disableElevation: true }, mergedProps), children));
|
|
14
|
+
});
|
|
15
|
+
Button.defaultProps = {
|
|
16
|
+
textTransform: 'uppercase',
|
|
17
|
+
variant: 'primary',
|
|
18
|
+
};
|
|
19
|
+
Button.displayName = 'Button';
|
|
20
|
+
|
|
21
|
+
export { Button };
|
|
22
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\nimport { Button as CommonButton } from '@popmenu/common-ui'\n\nimport { ButtonProps } from './ButtonProps'\nimport { useButtonStyles } from './ButtonStyles'\nimport { deriveButtonProps } from './util/deriveButtonProps'\n\ninterface ButtonType {\n <C extends React.ElementType = 'a'>(props: ButtonProps<C> & { component?: C }): React.ReactElement\n defaultProps?: Partial<ButtonProps>\n displayName?: string\n}\n\n// eslint-disable-next-line react/display-name -- false positive\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {\n const { children, variant: remove, classes: classesOverride, ...commonProps } = props\n const classes = useButtonStyles(props)\n const derivedProps = deriveButtonProps(props)\n const mergedProps = {\n ...derivedProps,\n ...commonProps,\n }\n\n return (\n <CommonButton\n ref={ref}\n classes={{\n ...classes,\n ...classesOverride,\n }}\n disableElevation={true}\n {...mergedProps}\n >\n {children}\n </CommonButton>\n )\n}) as ButtonType\n\nButton.defaultProps = {\n textTransform: 'uppercase',\n variant: 'primary',\n}\n\nButton.displayName = 'Button'\n"],"names":["CommonButton"],"mappings":";;;;;;AAaA;IACa,MAAM,GAAG,UAAU,CAAiC,UAAC,KAAK,EAAE,GAAG,EAAA;IAClE,IAAA,QAAQ,GAAgE,KAAK,CAAA,QAArE,EAAgE,KAAK,CAApD,OAAA,CAAA,KAAW,eAAe,GAAqB,KAAK,QAA1B,CAAK,CAAA,WAAW,UAAK,KAAK,EAA/E,CAAuE,UAAA,EAAA,SAAA,EAAA,SAAA,CAAA;AAC7E,IAAA,IAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC;AACtC,IAAA,IAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC;AAC7C,IAAA,IAAM,WAAW,GACZ,QAAA,CAAA,QAAA,CAAA,EAAA,EAAA,YAAY,CACZ,EAAA,WAAW,CACf;IAED,QACE,oBAACA,QAAY,EAAA,QAAA,CAAA,EACX,GAAG,EAAE,GAAG,EACR,OAAO,EACF,QAAA,CAAA,QAAA,CAAA,EAAA,EAAA,OAAO,GACP,eAAe,CAAA,EAEpB,gBAAgB,EAAE,IAAI,EAAA,EAClB,WAAW,CAEd,EAAA,QAAQ,CACI;AAEnB,CAAC;AAED,MAAM,CAAC,YAAY,GAAG;AACpB,IAAA,aAAa,EAAE,WAAW;AAC1B,IAAA,OAAO,EAAE,SAAS;CACnB;AAED,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps as CommonButtonProps } from '@popmenu/common-ui';
|
|
3
|
+
export declare type ButtonProps<C extends React.ElementType = 'button'> = Omit<CommonButtonProps<C>, 'variant'> & {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
/** Sets the overall visual of a button according the the design system button variants. Accepts MUI variants and
|
|
6
|
+
* pre-defined design system variants */
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'success' | 'info' | 'warning' | 'error' | 'outlined' | 'contained' | 'text';
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonProps } from './ButtonProps';
|
|
2
|
+
export declare const buttonTypography: {
|
|
3
|
+
fontWeight: number;
|
|
4
|
+
fontSize: string;
|
|
5
|
+
lineHeight: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const useButtonStyles: (props: ButtonProps<"button">) => import("@material-ui/styles").ClassNameMap<string>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import { makeStyles } from '@material-ui/core';
|
|
3
|
+
|
|
4
|
+
var borderWidth = 1;
|
|
5
|
+
var getColor = function (palette, props) {
|
|
6
|
+
var variant = props.variant;
|
|
7
|
+
var color = 'inherit';
|
|
8
|
+
if (['primary', 'info', 'success', 'warning', 'error'].includes(variant)) {
|
|
9
|
+
// @ts-expect-error - todo.
|
|
10
|
+
color = palette[variant].contrastText;
|
|
11
|
+
}
|
|
12
|
+
if (variant === 'secondary') {
|
|
13
|
+
color = palette[variant].main;
|
|
14
|
+
/**
|
|
15
|
+
* Temporary fix for dark theme buttons.
|
|
16
|
+
* Dark theme will be addressed in ch-11596 and the following if block should be removed
|
|
17
|
+
*/
|
|
18
|
+
if (palette.type === 'dark') {
|
|
19
|
+
color = 'black';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (variant === 'tertiary') {
|
|
23
|
+
color = palette.secondary.contrastText;
|
|
24
|
+
}
|
|
25
|
+
if (variant === 'text') {
|
|
26
|
+
color = palette.info.main;
|
|
27
|
+
}
|
|
28
|
+
return color;
|
|
29
|
+
};
|
|
30
|
+
var getColorHover = function (palette, props) {
|
|
31
|
+
var color;
|
|
32
|
+
if (props.variant === 'secondary') {
|
|
33
|
+
color = palette.secondary.contrastText;
|
|
34
|
+
}
|
|
35
|
+
return color;
|
|
36
|
+
};
|
|
37
|
+
var getBackground = function (palette, props) {
|
|
38
|
+
var backgroundColor = 'inherit';
|
|
39
|
+
if (['info', 'success', 'warning', 'error'].includes(props.variant)) {
|
|
40
|
+
// @ts-expect-error - todo.
|
|
41
|
+
backgroundColor = palette[props.variant].main;
|
|
42
|
+
}
|
|
43
|
+
if (props.variant === 'primary') {
|
|
44
|
+
// @ts-expect-error gradient colors are included in the extended palette.
|
|
45
|
+
backgroundColor = "linear-gradient(97.36deg, " + palette.primary.gradientStart + " 17.03%, " + palette.primary.gradientEnd + " 72.96%)";
|
|
46
|
+
}
|
|
47
|
+
if (props.variant === 'secondary') {
|
|
48
|
+
backgroundColor = 'white';
|
|
49
|
+
}
|
|
50
|
+
if (props.variant === 'tertiary') {
|
|
51
|
+
backgroundColor = palette.secondary.main;
|
|
52
|
+
}
|
|
53
|
+
return backgroundColor;
|
|
54
|
+
};
|
|
55
|
+
var getBackgroundHover = function (palette, props) {
|
|
56
|
+
var backgroundHoverColor = 'inherit';
|
|
57
|
+
if (['primary', 'info', 'success', 'warning', 'error'].includes(props.variant)) {
|
|
58
|
+
// @ts-expect-error - todo.
|
|
59
|
+
backgroundHoverColor = palette[props.variant].dark;
|
|
60
|
+
}
|
|
61
|
+
if (props.variant === 'secondary') {
|
|
62
|
+
backgroundHoverColor = palette.secondary.main;
|
|
63
|
+
}
|
|
64
|
+
if (props.variant === 'tertiary') {
|
|
65
|
+
backgroundHoverColor = palette.secondary.light;
|
|
66
|
+
}
|
|
67
|
+
if (props.variant === 'text' || props.variant === 'ghost') {
|
|
68
|
+
backgroundHoverColor = palette.action.hover;
|
|
69
|
+
}
|
|
70
|
+
return backgroundHoverColor;
|
|
71
|
+
};
|
|
72
|
+
var buttonTypography = {
|
|
73
|
+
fontWeight: 500,
|
|
74
|
+
fontSize: '0.875rem',
|
|
75
|
+
lineHeight: '1.25rem',
|
|
76
|
+
};
|
|
77
|
+
var useButtonStyles = makeStyles(function (_a) {
|
|
78
|
+
var palette = _a.palette, spacing = _a.spacing;
|
|
79
|
+
return ({
|
|
80
|
+
root: function (props) { return ({
|
|
81
|
+
minWidth: 'unset',
|
|
82
|
+
color: getColor(palette, props),
|
|
83
|
+
background: getBackground(palette, props),
|
|
84
|
+
backgroundColor: props.variant === 'primary' ? palette.primary.dark : getBackground(palette, props),
|
|
85
|
+
borderRadius: spacing(6),
|
|
86
|
+
transition: 'all 200ms ease-in-out',
|
|
87
|
+
'&:hover': {
|
|
88
|
+
color: getColorHover(palette, props),
|
|
89
|
+
background: getBackgroundHover(palette, props),
|
|
90
|
+
},
|
|
91
|
+
}); },
|
|
92
|
+
disabled: {
|
|
93
|
+
'&$root': {
|
|
94
|
+
background: palette.action.disabled,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
contained: {
|
|
98
|
+
padding: spacing(1, 2),
|
|
99
|
+
},
|
|
100
|
+
outlined: {
|
|
101
|
+
padding: "calc(" + spacing(1) + "px - " + borderWidth + "px) calc(" + spacing(2) + "px - " + borderWidth + "px)",
|
|
102
|
+
'&$sizeSmall': {
|
|
103
|
+
padding: "calc(" + spacing(0.5) + "px - " + borderWidth + "px) calc(" + spacing(2) + "px - " + borderWidth + "px)",
|
|
104
|
+
},
|
|
105
|
+
'&$sizeLarge': {
|
|
106
|
+
padding: "calc(" + spacing(1.5) + "px - " + borderWidth + "px) calc(" + spacing(2) + "px - " + borderWidth + "px)",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
text: {
|
|
110
|
+
padding: spacing(1, 2),
|
|
111
|
+
},
|
|
112
|
+
label: __assign(__assign({}, buttonTypography), { textTransform: function (props) { return props.textTransform; } }),
|
|
113
|
+
sizeSmall: {
|
|
114
|
+
padding: spacing(0.5, 2),
|
|
115
|
+
},
|
|
116
|
+
sizeLarge: {
|
|
117
|
+
padding: spacing(1.5, 2),
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
export { buttonTypography, useButtonStyles };
|
|
123
|
+
//# sourceMappingURL=ButtonStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonStyles.js","sources":["../../../../src/components/Button/ButtonStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { ButtonProps } from './ButtonProps'\n\nconst borderWidth = 1\n\nconst getColor = (palette: Theme['palette'], props: ButtonProps): string => {\n const variant = props.variant as string\n let color = 'inherit'\n if (['primary', 'info', 'success', 'warning', 'error'].includes(variant)) {\n // @ts-expect-error - todo.\n color = palette[variant].contrastText\n }\n if (variant === 'secondary') {\n color = palette[variant].main\n /**\n * Temporary fix for dark theme buttons.\n * Dark theme will be addressed in ch-11596 and the following if block should be removed\n */\n if (palette.type === 'dark') {\n color = 'black'\n }\n }\n if (variant === 'tertiary') {\n color = palette.secondary.contrastText\n }\n if (variant === 'text') {\n color = palette.info.main\n }\n return color\n}\n\nconst getColorHover = (palette: Theme['palette'], props: ButtonProps): string | undefined => {\n let color\n if (props.variant === 'secondary') {\n color = palette.secondary.contrastText\n }\n return color\n}\n\nconst getBackground = (palette: Theme['palette'], props: ButtonProps): string => {\n let backgroundColor = 'inherit'\n if (['info', 'success', 'warning', 'error'].includes(props.variant as string)) {\n // @ts-expect-error - todo.\n backgroundColor = palette[props.variant as string].main\n }\n if (props.variant === 'primary') {\n // @ts-expect-error gradient colors are included in the extended palette.\n backgroundColor = `linear-gradient(97.36deg, ${palette.primary.gradientStart} 17.03%, ${palette.primary.gradientEnd} 72.96%)`\n }\n if (props.variant === 'secondary') {\n backgroundColor = 'white'\n }\n if (props.variant === 'tertiary') {\n backgroundColor = palette.secondary.main\n }\n return backgroundColor\n}\n\nconst getBackgroundHover = (palette: Theme['palette'], props: ButtonProps): string => {\n let backgroundHoverColor = 'inherit'\n if (['primary', 'info', 'success', 'warning', 'error'].includes(props.variant as string)) {\n // @ts-expect-error - todo.\n backgroundHoverColor = palette[props.variant as string].dark\n }\n if (props.variant === 'secondary') {\n backgroundHoverColor = palette.secondary.main\n }\n if (props.variant === 'tertiary') {\n backgroundHoverColor = palette.secondary.light\n }\n if (props.variant === 'text' || props.variant === 'ghost') {\n backgroundHoverColor = palette.action.hover\n }\n return backgroundHoverColor\n}\n\nexport const buttonTypography = {\n fontWeight: 500,\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n}\n\nexport const useButtonStyles = makeStyles<Theme, ButtonProps>(({ palette, spacing }) => ({\n root: (props) => ({\n minWidth: 'unset',\n color: getColor(palette, props),\n background: getBackground(palette, props),\n backgroundColor: props.variant === 'primary' ? palette.primary.dark : getBackground(palette, props),\n borderRadius: spacing(6),\n transition: 'all 200ms ease-in-out',\n '&:hover': {\n color: getColorHover(palette, props),\n background: getBackgroundHover(palette, props),\n },\n }),\n disabled: {\n '&$root': {\n background: palette.action.disabled,\n },\n },\n contained: {\n padding: spacing(1, 2),\n },\n outlined: {\n padding: `calc(${spacing(1)}px - ${borderWidth}px) calc(${spacing(2)}px - ${borderWidth}px)`,\n '&$sizeSmall': {\n padding: `calc(${spacing(0.5)}px - ${borderWidth}px) calc(${spacing(2)}px - ${borderWidth}px)`,\n },\n '&$sizeLarge': {\n padding: `calc(${spacing(1.5)}px - ${borderWidth}px) calc(${spacing(2)}px - ${borderWidth}px)`,\n },\n },\n text: {\n padding: spacing(1, 2),\n },\n label: {\n ...buttonTypography,\n textTransform: (props) => props.textTransform,\n },\n sizeSmall: {\n padding: spacing(0.5, 2),\n },\n sizeLarge: {\n padding: spacing(1.5, 2),\n },\n}))\n"],"names":[],"mappings":";;;AAIA,IAAM,WAAW,GAAG,CAAC;AAErB,IAAM,QAAQ,GAAG,UAAC,OAAyB,EAAE,KAAkB,EAAA;AAC7D,IAAA,IAAM,OAAO,GAAG,KAAK,CAAC,OAAiB;IACvC,IAAI,KAAK,GAAG,SAAS;AACrB,IAAA,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;;AAExE,QAAA,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,YAAY;AACtC;IACD,IAAI,OAAO,KAAK,WAAW,EAAE;AAC3B,QAAA,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI;AAC7B;;;AAGG;AACH,QAAA,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;YAC3B,KAAK,GAAG,OAAO;AAChB;AACF;IACD,IAAI,OAAO,KAAK,UAAU,EAAE;AAC1B,QAAA,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,YAAY;AACvC;IACD,IAAI,OAAO,KAAK,MAAM,EAAE;AACtB,QAAA,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI;AAC1B;AACD,IAAA,OAAO,KAAK;AACd,C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AAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AACzB,SAAA;KACF;AA3CuF,CA2CtF;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../ButtonProps';
|
|
2
|
+
import { ButtonProps as CommonButtonProps } from '@popmenu/common-ui';
|
|
3
|
+
declare type DerivedProps = Partial<Pick<CommonButtonProps, 'variant' | 'color'>>;
|
|
4
|
+
export declare const deriveButtonProps: (props: ButtonProps) => DerivedProps;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var deriveButtonProps = function (buttonProps) {
|
|
2
|
+
var variant = buttonProps.variant;
|
|
3
|
+
var derived = {};
|
|
4
|
+
switch (variant) {
|
|
5
|
+
case 'primary':
|
|
6
|
+
derived.variant = 'contained';
|
|
7
|
+
derived.color = 'primary';
|
|
8
|
+
break;
|
|
9
|
+
case 'secondary':
|
|
10
|
+
derived.variant = 'outlined';
|
|
11
|
+
derived.color = 'secondary';
|
|
12
|
+
break;
|
|
13
|
+
case 'tertiary':
|
|
14
|
+
derived.variant = 'contained';
|
|
15
|
+
derived.color = 'secondary';
|
|
16
|
+
break;
|
|
17
|
+
case 'text':
|
|
18
|
+
derived.variant = 'text';
|
|
19
|
+
case 'ghost':
|
|
20
|
+
derived.variant = 'text';
|
|
21
|
+
break;
|
|
22
|
+
case 'success':
|
|
23
|
+
derived.variant = 'contained';
|
|
24
|
+
break;
|
|
25
|
+
case 'info':
|
|
26
|
+
derived.variant = 'contained';
|
|
27
|
+
break;
|
|
28
|
+
case 'warning':
|
|
29
|
+
derived.variant = 'contained';
|
|
30
|
+
break;
|
|
31
|
+
case 'error':
|
|
32
|
+
derived.variant = 'contained';
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
derived.variant = variant;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
return derived;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { deriveButtonProps };
|
|
42
|
+
//# sourceMappingURL=deriveButtonProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deriveButtonProps.js","sources":["../../../../../src/components/Button/util/deriveButtonProps.ts"],"sourcesContent":["import { ButtonProps } from '../ButtonProps'\nimport { ButtonProps as CommonButtonProps } from '@popmenu/common-ui'\n\ntype DerivedProps = Partial<Pick<CommonButtonProps, 'variant' | 'color'>>\nexport const deriveButtonProps: (props: ButtonProps) => DerivedProps = (buttonProps) => {\n const { variant } = buttonProps\n const derived: DerivedProps = {}\n switch (variant) {\n case 'primary':\n derived.variant = 'contained'\n derived.color = 'primary'\n break\n case 'secondary':\n derived.variant = 'outlined'\n derived.color = 'secondary'\n break\n case 'tertiary':\n derived.variant = 'contained'\n derived.color = 'secondary'\n break\n case 'text':\n derived.variant = 'text'\n case 'ghost':\n derived.variant = 'text'\n break\n case 'success':\n derived.variant = 'contained'\n break\n case 'info':\n derived.variant = 'contained'\n break\n case 'warning':\n derived.variant = 'contained'\n break\n case 'error':\n derived.variant = 'contained'\n break\n default:\n derived.variant = variant\n break\n }\n return derived\n}\n"],"names":[],"mappings":"AAIO,IAAM,iBAAiB,GAAyC,UAAC,WAAW,EAAA;AACzE,IAAA,IAAA,OAAO,GAAK,WAAW,CAAA,OAAhB;IACf,IAAM,OAAO,GAAiB,EAAE;AAChC,IAAA,QAAQ,OAAO;AACb,QAAA,KAAK,SAAS;AACZ,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;AAC7B,YAAA,OAAO,CAAC,KAAK,GAAG,SAAS;YACzB;AACF,QAAA,KAAK,WAAW;AACd,YAAA,OAAO,CAAC,OAAO,GAAG,UAAU;AAC5B,YAAA,OAAO,CAAC,KAAK,GAAG,WAAW;YAC3B;AACF,QAAA,KAAK,UAAU;AACb,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;AAC7B,YAAA,OAAO,CAAC,KAAK,GAAG,WAAW;YAC3B;AACF,QAAA,KAAK,MAAM;AACT,YAAA,OAAO,CAAC,OAAO,GAAG,MAAM;AAC1B,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,CAAC,OAAO,GAAG,MAAM;YACxB;AACF,QAAA,KAAK,SAAS;AACZ,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;YAC7B;AACF,QAAA,KAAK,MAAM;AACT,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;YAC7B;AACF,QAAA,KAAK,SAAS;AACZ,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;YAC7B;AACF,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,CAAC,OAAO,GAAG,WAAW;YAC7B;AACF,QAAA;AACE,YAAA,OAAO,CAAC,OAAO,GAAG,OAAO;YACzB;AACH;AACD,IAAA,OAAO,OAAO;AAChB;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonGroupProps } from './ButtonGroupProps';
|
|
3
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<Pick<ButtonGroupProps, "classes" | "variant" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "textTransform" | "size" | "disabled" | "fullWidth" | "key" | "orientation" | "disableFocusRipple" | "disableRipple" | "disableElevation"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { useTheme } from '@material-ui/core';
|
|
4
|
+
import { ButtonGroup as ButtonGroup$1 } from '@popmenu/common-ui';
|
|
5
|
+
import { deriveButtonProps } from '../Button/util/deriveButtonProps.js';
|
|
6
|
+
import { useButtonGroupStyles } from './ButtonGroupStyles.js';
|
|
7
|
+
|
|
8
|
+
var ButtonGroup = forwardRef(function (props, ref) {
|
|
9
|
+
var children = props.children, _a = props.variant, variant = _a === void 0 ? 'primary' : _a, muiProps = __rest(props, ["children", "variant"]);
|
|
10
|
+
var classes = useButtonGroupStyles(props);
|
|
11
|
+
var derivedProps = deriveButtonProps({ variant: variant });
|
|
12
|
+
var spacing = useTheme().spacing;
|
|
13
|
+
var childrenWithProps = React.Children.map(children, function (child, i) {
|
|
14
|
+
var isFirst = i === 0 && props.orientation === 'vertical';
|
|
15
|
+
var isLast = i === React.Children.toArray(children).length - 1 && props.orientation === 'vertical';
|
|
16
|
+
var firstStyles = { style: { borderTopLeftRadius: spacing(2), borderTopRightRadius: spacing(2) } };
|
|
17
|
+
var lastStyles = { style: { borderBottomLeftRadius: spacing(2), borderBottomRightRadius: spacing(2) } };
|
|
18
|
+
if (!React.isValidElement(child)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return React.cloneElement(child, __assign(__assign({ variant: variant }, (isFirst && firstStyles)), (isLast && lastStyles)));
|
|
22
|
+
});
|
|
23
|
+
return (React.createElement(ButtonGroup$1, __assign({ ref: ref, classes: classes }, derivedProps, muiProps), childrenWithProps));
|
|
24
|
+
});
|
|
25
|
+
ButtonGroup.displayName = 'ButtonGroup';
|
|
26
|
+
|
|
27
|
+
export { ButtonGroup };
|
|
28
|
+
//# sourceMappingURL=ButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","sources":["../../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport { useTheme } from '@material-ui/core'\nimport { ButtonGroup as CommonButtonGroup } from '@popmenu/common-ui'\nimport { deriveButtonProps } from '../Button/util/deriveButtonProps'\nimport { ButtonGroupProps } from './ButtonGroupProps'\nimport { useButtonGroupStyles } from './ButtonGroupStyles'\n\nexport const ButtonGroup = forwardRef<HTMLDivElement, ButtonGroupProps>((props, ref) => {\n const { children, variant = 'primary', ...muiProps } = props\n const classes = useButtonGroupStyles(props)\n const derivedProps = deriveButtonProps({ variant })\n const { spacing } = useTheme()\n const childrenWithProps = React.Children.map(children, (child, i) => {\n const isFirst = i === 0 && props.orientation === 'vertical'\n const isLast = i === React.Children.toArray(children).length - 1 && props.orientation === 'vertical'\n const firstStyles = { style: { borderTopLeftRadius: spacing(2), borderTopRightRadius: spacing(2) } }\n const lastStyles = { style: { borderBottomLeftRadius: spacing(2), borderBottomRightRadius: spacing(2) } }\n if (!React.isValidElement(child)) {\n return null\n }\n return React.cloneElement(child, { variant, ...(isFirst && firstStyles), ...(isLast && lastStyles) })\n })\n return (\n <CommonButtonGroup ref={ref} classes={classes} {...derivedProps} {...muiProps}>\n {childrenWithProps}\n </CommonButtonGroup>\n )\n})\n\nButtonGroup.displayName = 'ButtonGroup'\n"],"names":["CommonButtonGroup"],"mappings":";;;;;;;IAQa,WAAW,GAAG,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG,EAAA;IACzE,IAAA,QAAQ,GAAuC,KAAK,CAAA,QAA5C,EAAE,EAAqC,GAAA,KAAK,QAAvB,EAAnB,OAAO,mBAAG,SAAS,GAAA,EAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAAtD,CAAA,UAAA,EAAA,SAAA,CAA8C,CAAF;AAClD,IAAA,IAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC;IAC3C,IAAM,YAAY,GAAG,iBAAiB,CAAC,EAAE,OAAO,EAAA,OAAA,EAAE,CAAC;AAC3C,IAAA,IAAA,OAAO,GAA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upProps extends Omit<CommonButtonGroupProps, 'variant'> {
|
|
3
|
+
/** Sets the text transformation property of a button. */
|
|
4
|
+
textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
5
|
+
/** Sets the overall visual of a button according the the design system button variants. Accepts MUI variants and
|
|
6
|
+
* pre-defined design system variants */
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'ghost' | 'success' | 'info' | 'warning' | 'error' | 'outlined' | 'contained';
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { makeStyles } from '@material-ui/core';
|
|
2
|
+
|
|
3
|
+
var getBorderColor = function (palette, variant) {
|
|
4
|
+
var borderColor = 'inherit';
|
|
5
|
+
if (['primary', 'secondary', 'info', 'success', 'warning', 'error'].includes(variant)) {
|
|
6
|
+
// @ts-expect-error - todo.
|
|
7
|
+
borderColor = palette[variant].light;
|
|
8
|
+
}
|
|
9
|
+
return borderColor;
|
|
10
|
+
};
|
|
11
|
+
var useButtonGroupStyles = makeStyles(function (theme) { return ({
|
|
12
|
+
root: {
|
|
13
|
+
boxShadow: 'none',
|
|
14
|
+
},
|
|
15
|
+
groupedContained: {
|
|
16
|
+
'&&': {
|
|
17
|
+
borderColor: function (props) { return getBorderColor(theme.palette, props.variant); },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
groupedText: {
|
|
21
|
+
'&&': {
|
|
22
|
+
borderColor: theme.palette.info.main,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}); });
|
|
26
|
+
|
|
27
|
+
export { useButtonGroupStyles };
|
|
28
|
+
//# sourceMappingURL=ButtonGroupStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroupStyles.js","sources":["../../../../src/components/ButtonGroup/ButtonGroupStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { ButtonGroupProps } from './ButtonGroupProps'\n\nconst getBorderColor = (palette: Theme['palette'], variant: ButtonGroupProps['variant']): string => {\n let borderColor = 'inherit'\n if (['primary', 'secondary', 'info', 'success', 'warning', 'error'].includes(variant as string)) {\n // @ts-expect-error - todo.\n borderColor = palette[variant as string].light\n }\n return borderColor\n}\n\nexport const useButtonGroupStyles = makeStyles<Theme, ButtonGroupProps, 'groupedContained' | 'groupedText'>(\n (theme) => ({\n root: {\n boxShadow: 'none',\n },\n groupedContained: {\n '&&': {\n borderColor: (props) => getBorderColor(theme.palette, props.variant),\n },\n },\n groupedText: {\n '&&': {\n borderColor: theme.palette.info.main,\n },\n },\n }),\n)\n"],"names":[],"mappings":";;AAIA,IAAM,cAAc,GAAG,UAAC,OAAyB,EAAE,OAAoC,EAAA;IACrF,IAAI,WAAW,GAAG,SAAS;AAC3B,IAAA,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,OAAiB,CAAC,EAAE;;AAE/F,QAAA,WAAW,GAAG,OAAO,CAAC,OAAiB,CAAC,CAAC,KAAK;AAC/C;AACD,IAAA,OAAO,WAAW;AACpB,CAAC;AAEY,IAAA,oBAAoB,GAAG,UAAU,CAC5C,UAAC,KAAK,EAAK,EAAA,QAAC;AACV,IAAA,IAAI,EAAE;AACJ,QAAA,SAAS,EAAE,MAAM;AAClB,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,IAAI,EAAE;AACJ,YAAA,WAAW,EAAE,UAAC,KAAK,EAAK,EAAA,OAAA,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAA;AACrE,SAAA;AACF,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE;AACJ,YAAA,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;AACrC,SAAA;AACF,KAAA;CACF,EAAC,EAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, DialogProps } from '@popmenu/common-ui';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DialogActions as DialogActions$1 } from '@popmenu/common-ui';
|
|
4
|
+
import { makeStyles } from '@material-ui/core';
|
|
5
|
+
|
|
6
|
+
var useStyles = makeStyles(function (_a) {
|
|
7
|
+
var palette = _a.palette;
|
|
8
|
+
return ({
|
|
9
|
+
root: {
|
|
10
|
+
background: palette.grey['100'],
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
var DialogActions = function (props) {
|
|
15
|
+
var classes = useStyles(props);
|
|
16
|
+
return React.createElement(DialogActions$1, __assign({ classes: classes }, props));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { DialogActions };
|
|
20
|
+
//# sourceMappingURL=DialogActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogActions.js","sources":["../../../../src/components/DialogActions/DialogActions.tsx"],"sourcesContent":["import React, { FC } from 'react'\nimport { DialogActions as CommonDialogActions, DialogActionsProps } from '@popmenu/common-ui'\nimport { makeStyles } from '@material-ui/core'\n\nconst useStyles = makeStyles(({ palette }) => ({\n root: {\n background: palette.grey['100'],\n },\n}))\nexport const DialogActions: FC<DialogActionsProps> = (props) => {\n const classes = useStyles(props)\n return <CommonDialogActions classes={classes} {...props} />\n}\n"],"names":["CommonDialogActions"],"mappings":";;;;;AAIA,IAAM,SAAS,GAAG,UAAU,CAAC,UAAC,EAAW,EAAA;AAAT,IAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,IAAA,QAAC;AAC7C,QAAA,IAAI,EAAE;AACJ,YAAA,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;AAChC,SAAA;KACF;AAJ6C,CAI5C,CAAC;AACI,IAAM,aAAa,GAA2B,UAAC,KAAK,EAAA;AACzD,IAAA,IAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;IAChC,OAAO,KAAA,CAAA,aAAA,CAACA,eAAmB,EAAC,QAAA,CAAA,EAAA,OAAO,EAAE,OAAO,EAAA,EAAM,KAAK,CAAA,CAAI;AAC7D;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogContent, DialogContentProps } from '@popmenu/common-ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogTitle, DialogTitleProps } from '@popmenu/common-ui';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from '../Button/Button.js';
|
|
4
|
+
import { Box, Typography } from '@popmenu/common-ui';
|
|
5
|
+
import { useFeatureIntroStyles } from './FeatureIntroStyles.js';
|
|
6
|
+
|
|
7
|
+
var FeatureIntro = function (props) {
|
|
8
|
+
var title = props.title, body = props.body, primaryAction = props.primaryAction, secondaryAction = props.secondaryAction, image = props.image;
|
|
9
|
+
var primaryActionLabel = primaryAction.label, primaryActionProps = __rest(primaryAction, ["label"]);
|
|
10
|
+
var _a = secondaryAction || {}, secondaryActionLabel = _a.label, secondaryActionProps = __rest(_a, ["label"]);
|
|
11
|
+
var classes = useFeatureIntroStyles(props);
|
|
12
|
+
var validImage = (image === null || image === void 0 ? void 0 : image.src) && (image === null || image === void 0 ? void 0 : image.alt);
|
|
13
|
+
return (React.createElement(Box, { className: classes.root, padding: { xs: 4, sm: 8 }, flexDirection: { xs: 'column-reverse', sm: 'row' }, display: "flex", justifyContent: "center", alignItems: "center" },
|
|
14
|
+
React.createElement(Box, { display: "flex", flexDirection: "column", width: { xs: '100%', sm: '50%' }, alignItems: { xs: 'center', sm: 'unset' } },
|
|
15
|
+
React.createElement(Box, { textAlign: { xs: 'center', sm: 'start' }, marginBottom: 2 },
|
|
16
|
+
React.createElement(Typography, { align: "inherit", variant: "h4" }, title)),
|
|
17
|
+
React.createElement(Box, { textAlign: { xs: 'center', sm: 'start' }, marginBottom: 6 }, body),
|
|
18
|
+
React.createElement(Box, { className: classes.actions, display: "flex", flexDirection: "column", width: "fit-content" },
|
|
19
|
+
primaryAction && React.createElement(Button, __assign({}, primaryActionProps), primaryActionLabel),
|
|
20
|
+
secondaryAction && (React.createElement(Button, __assign({ variant: "tertiary" }, secondaryActionProps), secondaryActionLabel)))),
|
|
21
|
+
React.createElement(Box, { display: "flex", width: { xs: '100%', sm: '50%' }, alignItems: "center", justifyContent: "center" },
|
|
22
|
+
React.createElement(Box, { display: "flex", maxWidth: 450, maxHeight: 450 }, validImage && React.createElement("img", { src: image.src, alt: image.alt, className: classes.image })))));
|
|
23
|
+
};
|
|
24
|
+
FeatureIntro.displayName = 'FeatureIntro';
|
|
25
|
+
|
|
26
|
+
export { FeatureIntro };
|
|
27
|
+
//# sourceMappingURL=FeatureIntro.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureIntro.js","sources":["../../../../src/components/FeatureIntro/FeatureIntro.tsx"],"sourcesContent":["import React, { FC } from 'react'\n\nimport Button from '../Button'\nimport { Box, Typography } from '@popmenu/common-ui'\n\nimport { useFeatureIntroStyles } from './FeatureIntroStyles'\nimport { FeatureIntroProps } from './FeatureIntroProps'\n\nexport const FeatureIntro: FC<FeatureIntroProps> = (props) => {\n const { title, body, primaryAction, secondaryAction, image } = props\n const { label: primaryActionLabel, ...primaryActionProps } = primaryAction\n const { label: secondaryActionLabel, ...secondaryActionProps } = secondaryAction || {}\n const classes = useFeatureIntroStyles(props)\n const validImage = image?.src && image?.alt\n return (\n <Box\n className={classes.root}\n padding={{ xs: 4, sm: 8 }}\n flexDirection={{ xs: 'column-reverse', sm: 'row' }}\n display=\"flex\"\n justifyContent=\"center\"\n alignItems=\"center\"\n >\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n width={{ xs: '100%', sm: '50%' }}\n alignItems={{ xs: 'center', sm: 'unset' }}\n >\n <Box textAlign={{ xs: 'center', sm: 'start' }} marginBottom={2}>\n <Typography align=\"inherit\" variant=\"h4\">\n {title}\n </Typography>\n </Box>\n <Box textAlign={{ xs: 'center', sm: 'start' }} marginBottom={6}>\n {body}\n </Box>\n <Box className={classes.actions} display=\"flex\" flexDirection=\"column\" width=\"fit-content\">\n {primaryAction && <Button {...primaryActionProps}>{primaryActionLabel}</Button>}\n {secondaryAction && (\n <Button variant=\"tertiary\" {...secondaryActionProps}>\n {secondaryActionLabel}\n </Button>\n )}\n </Box>\n </Box>\n <Box display=\"flex\" width={{ xs: '100%', sm: '50%' }} alignItems=\"center\" justifyContent=\"center\">\n <Box display=\"flex\" maxWidth={450} maxHeight={450}>\n {validImage && <img src={image.src} alt={image.alt} className={classes.image} />}\n </Box>\n </Box>\n </Box>\n )\n}\n\nFeatureIntro.displayName = 'FeatureIntro'\n"],"names":[],"mappings":";;;;;;AAQO,IAAM,YAAY,GAA0B,UAAC,KAAK,EAAA;IAC/C,IAAA,KAAK,GAAkD,KAAK,CAAvD,KAAA,EAAE,IAAI,GAA4C,KAAK,CAAjD,IAAA,EAAE,aAAa,GAA6B,KAAK,CAAlC,aAAA,EAAE,eAAe,GAAY,KAAK,CAAA,eAAjB,EAAE,KAAK,GAAK,KAAK,CAAA,KAAV;IAClD,IAAO,kBAAkB,GAA4B,aAAa,CAAzC,KAAA,EAAK,kBAAkB,GAAA,MAAA,CAAK,aAAa,EAApE,CAAoD,OAAA,CAAA,CAAF;AACxD,IAAA,IAAM,EAA2D,GAAA,eAAe,IAAI,EAAE,EAAvE,oBAAoB,GAAA,EAAA,CAAA,KAAA,EAAK,oBAAoB,GAAA,MAAA,CAAA,EAAA,EAAtD,CAAwD,OAAA,CAAA,CAAwB;AACtF,IAAA,IAAM,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC;AAC5C,IAAA,IAAM,UAAU,GAAG,CAAA,KAAK,KAAL,IAAA,IAAA,KAAK,uBAAL,KAAK,CAAE,GAAG,MAAI,KAAK,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