@popmenu/admin-ui 0.125.0 → 0.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/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/{components → esm/components}/Alert/AlertProps.d.ts +14 -14
- package/build/{components → esm/components}/Alert/AlertStyles.d.ts +2 -2
- package/build/esm/components/Alert/AlertStyles.js +21 -0
- package/build/esm/components/Alert/AlertStyles.js.map +1 -0
- package/build/{components → esm/components}/Alert/index.d.ts +2 -2
- 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/{components → esm/components}/AlertDialog/AlertDialogProps.d.ts +26 -26
- 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/{components → esm/components}/AlertDialog/index.d.ts +2 -2
- package/build/{components → esm/components}/AlertDialogHeader/AlertDialogHeader.d.ts +3 -3
- package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js +13 -0
- package/build/esm/components/AlertDialogHeader/AlertDialogHeader.js.map +1 -0
- package/build/{components → esm/components}/AlertDialogHeader/index.d.ts +1 -1
- package/build/{components → esm/components}/AlertTitle/AlertTitle.d.ts +3 -3
- package/build/esm/components/AlertTitle/AlertTitle.js +17 -0
- package/build/esm/components/AlertTitle/AlertTitle.js.map +1 -0
- package/build/{components → esm/components}/AlertTitle/index.d.ts +2 -2
- package/build/{components → esm/components}/Button/Button.d.ts +11 -11
- package/build/esm/components/Button/Button.js +22 -0
- package/build/esm/components/Button/Button.js.map +1 -0
- package/build/{components → esm/components}/Button/ButtonProps.d.ts +8 -8
- package/build/{components → esm/components}/Button/ButtonStyles.d.ts +7 -7
- package/build/esm/components/Button/ButtonStyles.js +123 -0
- package/build/esm/components/Button/ButtonStyles.js.map +1 -0
- package/build/{components → esm/components}/Button/index.d.ts +2 -2
- package/build/{components → esm/components}/Button/util/deriveButtonProps.d.ts +5 -5
- 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/{components → esm/components}/ButtonGroup/ButtonGroupProps.d.ts +8 -8
- package/build/{components → esm/components}/ButtonGroup/ButtonGroupStyles.d.ts +2 -2
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js +28 -0
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js.map +1 -0
- package/build/{components → esm/components}/ButtonGroup/index.d.ts +2 -2
- package/build/{components → esm/components}/Dialog/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogActions/DialogActions.d.ts +3 -3
- package/build/esm/components/DialogActions/DialogActions.js +20 -0
- package/build/esm/components/DialogActions/DialogActions.js.map +1 -0
- package/build/{components → esm/components}/DialogActions/index.d.ts +2 -2
- package/build/{components → esm/components}/DialogContent/index.d.ts +1 -1
- package/build/{components → esm/components}/DialogTitle/index.d.ts +1 -1
- package/build/{components → esm/components}/FeatureIntro/FeatureIntro.d.ts +3 -3
- package/build/esm/components/FeatureIntro/FeatureIntro.js +27 -0
- package/build/esm/components/FeatureIntro/FeatureIntro.js.map +1 -0
- package/build/{components → esm/components}/FeatureIntro/FeatureIntroProps.d.ts +22 -22
- package/build/{components → esm/components}/FeatureIntro/FeatureIntroStyles.d.ts +2 -2
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js +20 -0
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js.map +1 -0
- package/build/{components → esm/components}/FeatureIntro/index.d.ts +2 -2
- package/build/{components → esm/components}/FullScreenStepper/FullScreenStepper.d.ts +8 -8
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js +105 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepper/FullScreenStepperContext.d.ts +6 -6
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js +6 -0
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepper/FullScreenStepperProps.d.ts +68 -68
- package/build/{components → esm/components}/FullScreenStepper/index.d.ts +3 -3
- package/build/{components → esm/components}/FullScreenStepper/types/index.d.ts +25 -25
- package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -3
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js +26 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActions.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +22 -22
- package/build/{components → esm/components}/FullScreenStepperActions/FullScreenStepperActionsStyles.d.ts +2 -2
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js +29 -0
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/index.d.ts +2 -2
- package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +11 -11
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js +13 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +12 -12
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js +17 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +11 -11
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js +13 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/util/StepperActionsStatusText.d.ts +4 -4
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js +17 -0
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperActions/util/augmentButtonProps.d.ts +5 -5
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js +29 -0
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperContent/FullScreenStepperContent.d.ts +5 -5
- package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js +11 -0
- package/build/esm/components/FullScreenStepperContent/FullScreenStepperContent.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperContent/index.d.ts +1 -1
- package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeader.d.ts +3 -3
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js +22 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeader.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +8 -8
- package/build/{components → esm/components}/FullScreenStepperHeader/FullScreenStepperHeaderStyles.d.ts +2 -2
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +26 -0
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperHeader/index.d.ts +1 -1
- package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgress.d.ts +3 -3
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js +12 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgress.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +5 -5
- package/build/{components → esm/components}/FullScreenStepperProgress/FullScreenStepperProgressStyles.d.ts +2 -2
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +36 -0
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -0
- package/build/{components → esm/components}/FullScreenStepperProgress/index.d.ts +1 -1
- package/build/{components → esm/components}/List/List.d.ts +3 -3
- package/build/esm/components/List/List.js +15 -0
- package/build/esm/components/List/List.js.map +1 -0
- package/build/{components → esm/components}/List/ListProps.d.ts +4 -4
- package/build/{components → esm/components}/List/index.d.ts +2 -2
- package/build/{components → esm/components}/List/styles.d.ts +2 -2
- package/build/esm/components/List/styles.js +24 -0
- package/build/esm/components/List/styles.js.map +1 -0
- package/build/{components → esm/components}/Page/Page.d.ts +2 -2
- package/build/esm/components/Page/Page.js +11 -0
- package/build/esm/components/Page/Page.js.map +1 -0
- package/build/{components → esm/components}/Page/index.d.ts +1 -1
- package/build/{components → esm/components}/PageBody/PageBody.d.ts +2 -2
- package/build/esm/components/PageBody/PageBody.js +11 -0
- package/build/esm/components/PageBody/PageBody.js.map +1 -0
- package/build/{components → esm/components}/PageBody/index.d.ts +1 -1
- package/build/{components → esm/components}/PageSection/PageSection.d.ts +3 -3
- package/build/esm/components/PageSection/PageSection.js +15 -0
- package/build/esm/components/PageSection/PageSection.js.map +1 -0
- package/build/{components → esm/components}/PageSection/PageSectionProps.d.ts +5 -5
- package/build/{components → esm/components}/PageSection/PageSectionStyles.d.ts +2 -2
- package/build/esm/components/PageSection/PageSectionStyles.js +19 -0
- package/build/esm/components/PageSection/PageSectionStyles.js.map +1 -0
- package/build/{components → esm/components}/PageSection/index.d.ts +1 -1
- package/build/{components → esm/components}/PageSectionHead/PageSectionHead.d.ts +2 -2
- package/build/esm/components/PageSectionHead/PageSectionHead.js +13 -0
- package/build/esm/components/PageSectionHead/PageSectionHead.js.map +1 -0
- package/build/{components → esm/components}/PageSectionHead/index.d.ts +1 -1
- package/build/{components → esm/components}/PageSectionTitle/PageSectionTitle.d.ts +3 -3
- package/build/esm/components/PageSectionTitle/PageSectionTitle.js +13 -0
- package/build/esm/components/PageSectionTitle/PageSectionTitle.js.map +1 -0
- package/build/{components → esm/components}/PageSectionTitle/index.d.ts +1 -1
- package/build/{components → esm/components}/PageSectionTitle/styles.d.ts +1 -1
- package/build/esm/components/PageSectionTitle/styles.js +10 -0
- package/build/esm/components/PageSectionTitle/styles.js.map +1 -0
- package/build/{components → esm/components}/PageSections/PageSections.d.ts +2 -2
- package/build/esm/components/PageSections/PageSections.js +11 -0
- package/build/esm/components/PageSections/PageSections.js.map +1 -0
- package/build/{components → esm/components}/PageSections/index.d.ts +1 -1
- package/build/{components → esm/components}/SelectableCard/SelectableCard.d.ts +3 -3
- package/build/esm/components/SelectableCard/SelectableCard.js +22 -0
- package/build/esm/components/SelectableCard/SelectableCard.js.map +1 -0
- package/build/{components → esm/components}/SelectableCard/SelectableCardProps.d.ts +18 -18
- package/build/{components → esm/components}/SelectableCard/SelectableCardStyles.d.ts +2 -2
- package/build/esm/components/SelectableCard/SelectableCardStyles.js +47 -0
- package/build/esm/components/SelectableCard/SelectableCardStyles.js.map +1 -0
- package/build/{components → esm/components}/SelectableCard/index.d.ts +2 -2
- package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCard.d.ts +11 -11
- package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js +24 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCard.js.map +1 -0
- package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCardProps.d.ts +20 -20
- package/build/{components → esm/components}/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -2
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js +21 -0
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js.map +1 -0
- package/build/{components → esm/components}/SettingsIndexCard/index.d.ts +2 -2
- package/build/{components → esm/components}/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -3
- package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js +11 -0
- package/build/esm/components/SettingsIndexCardGroup/SettingsIndexCardGroup.js.map +1 -0
- package/build/{components → esm/components}/SettingsIndexCardGroup/index.d.ts +1 -1
- package/build/{components → esm/components}/StandardListItem/StandardListItem.d.ts +9 -9
- package/build/esm/components/StandardListItem/StandardListItem.js +40 -0
- package/build/esm/components/StandardListItem/StandardListItem.js.map +1 -0
- package/build/{components → esm/components}/StandardListItem/StandardListItemProps.d.ts +25 -25
- package/build/{components → esm/components}/StandardListItem/index.d.ts +2 -2
- package/build/{components → esm/components}/Toast/Toast.d.ts +3 -3
- package/build/esm/components/Toast/Toast.js +20 -0
- package/build/esm/components/Toast/Toast.js.map +1 -0
- package/build/{components → esm/components}/Toast/ToastProps.d.ts +10 -10
- package/build/{components → esm/components}/Toast/ToastStyles.d.ts +2 -2
- package/build/esm/components/Toast/ToastStyles.js +16 -0
- package/build/esm/components/Toast/ToastStyles.js.map +1 -0
- package/build/{components → esm/components}/Toast/index.d.ts +2 -2
- package/build/{components → esm/components}/index.d.ts +27 -27
- package/build/{hooks → esm/hooks}/index.d.ts +3 -3
- package/build/{hooks → esm/hooks}/useDialog.d.ts +12 -12
- package/build/esm/hooks/useDialog.js +13 -0
- package/build/esm/hooks/useDialog.js.map +1 -0
- package/build/{hooks → esm/hooks}/useFullScreenStepperContext.d.ts +2 -2
- package/build/esm/hooks/useFullScreenStepperContext.js +8 -0
- package/build/esm/hooks/useFullScreenStepperContext.js.map +1 -0
- package/build/{hooks → esm/hooks}/useSelectableCard.d.ts +24 -24
- package/build/esm/hooks/useSelectableCard.js +50 -0
- package/build/esm/hooks/useSelectableCard.js.map +1 -0
- package/build/{index.d.ts → esm/index.d.ts} +3 -3
- package/build/esm/index.js +32 -0
- package/build/esm/index.js.map +1 -0
- package/build/{theme → esm/theme}/adminDarkTheme.d.ts +252 -227
- package/build/esm/theme/adminDarkTheme.js +13 -0
- package/build/esm/theme/adminDarkTheme.js.map +1 -0
- package/build/{theme → esm/theme}/adminLightTheme.d.ts +253 -228
- package/build/esm/theme/adminLightTheme.js +13 -0
- package/build/esm/theme/adminLightTheme.js.map +1 -0
- package/build/{theme → esm/theme}/breakpoints.d.ts +9 -9
- package/build/esm/theme/breakpoints.js +12 -0
- package/build/esm/theme/breakpoints.js.map +1 -0
- package/build/{theme → esm/theme}/customThemeProperties.d.ts +63 -63
- package/build/esm/theme/customThemeProperties.js +54 -0
- package/build/esm/theme/customThemeProperties.js.map +1 -0
- package/build/{theme → esm/theme}/index.d.ts +2 -2
- package/build/{theme → esm/theme}/overrides.d.ts +30 -30
- package/build/esm/theme/overrides.js +35 -0
- package/build/esm/theme/overrides.js.map +1 -0
- package/build/{theme → esm/theme}/palette.d.ts +128 -128
- package/build/esm/theme/palette.js +131 -0
- package/build/esm/theme/palette.js.map +1 -0
- package/build/{theme → esm/theme}/props.d.ts +8 -8
- package/build/esm/theme/props.js +11 -0
- package/build/esm/theme/props.js.map +1 -0
- package/build/{theme → esm/theme}/typography.d.ts +61 -61
- package/build/esm/theme/typography.js +65 -0
- package/build/esm/theme/typography.js.map +1 -0
- package/build/index.js +1143 -2327
- package/build/index.js.map +1 -1
- package/package.json +8 -8
- 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/ButtonGroup/ButtonGroup.d.ts +0 -3
- package/build/index.es.js +0 -2375
- package/build/index.es.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertProps } from './AlertProps';
|
|
3
|
+
export declare const Alert: React.ForwardRefExoticComponent<Pick<AlertProps, "classes" | "icon" | "action" | "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" | "component" | "elevation" | "square" | "innerRef" | "fullWidth" | "link" | "closeText" | "severity" | "iconMapping" | "onClose"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { Link, IconButton, Icon, Alert as Alert$1 } from '@popmenu/common-ui';
|
|
4
|
+
import { X, CheckCircle, Warning, Error, Info } from '@popmenu/web-icons';
|
|
5
|
+
import { useAlertStyles } from './AlertStyles.js';
|
|
6
|
+
|
|
7
|
+
var severityIcons = {
|
|
8
|
+
info: Info,
|
|
9
|
+
error: Error,
|
|
10
|
+
warning: Warning,
|
|
11
|
+
success: CheckCircle,
|
|
12
|
+
};
|
|
13
|
+
var getLinkProps = function (link) {
|
|
14
|
+
if (!link)
|
|
15
|
+
return null;
|
|
16
|
+
var href = link.href, onClick = link.onClick, text = link.text;
|
|
17
|
+
if (!text)
|
|
18
|
+
return null;
|
|
19
|
+
var props = { children: text };
|
|
20
|
+
if (href)
|
|
21
|
+
return __assign(__assign({}, props), { href: href });
|
|
22
|
+
if (onClick)
|
|
23
|
+
return __assign(__assign({}, props), { onClick: onClick });
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
var Alert = forwardRef(function (props, ref) {
|
|
27
|
+
var children = props.children, link = props.link, _a = props.severity, severity = _a === void 0 ? 'error' : _a, _b = props.variant, variant = _b === void 0 ? 'outlined' : _b, onClose = props.onClose, muiProps = __rest(props, ["children", "link", "severity", "variant", "onClose"]);
|
|
28
|
+
var classes = useAlertStyles(props);
|
|
29
|
+
var validLink = link && getLinkProps(link);
|
|
30
|
+
var Action = (React.createElement(React.Fragment, null,
|
|
31
|
+
validLink && React.createElement(Link, __assign({}, validLink)),
|
|
32
|
+
onClose && (React.createElement(IconButton, { onClick: onClose },
|
|
33
|
+
React.createElement(Icon, { icon: X })))));
|
|
34
|
+
return (React.createElement(Alert$1, __assign({ ref: ref, classes: classes,
|
|
35
|
+
// @ts-expect-error - todo.
|
|
36
|
+
icon: React.createElement(Icon, { icon: severityIcons[severity], size: "extra-large" }), action: Action, variant: variant, severity: severity }, muiProps), children));
|
|
37
|
+
});
|
|
38
|
+
Alert.displayName = 'Alert';
|
|
39
|
+
|
|
40
|
+
export { Alert };
|
|
41
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../../src/components/Alert/Alert.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport { Icon, Link, IconButton, Alert as CommonAlert } from '@popmenu/common-ui'\nimport { Info, Error as ErrorIcon, X as XIcon, Warning, CheckCircle } from '@popmenu/web-icons'\nimport { LinkProps } from '@material-ui/core'\nimport { useAlertStyles } from './AlertStyles'\nimport { AlertProps } from './AlertProps'\n\nconst severityIcons: Record<Extract<AlertProps, 'severity'>, string> = {\n info: Info,\n error: ErrorIcon,\n warning: Warning,\n success: CheckCircle,\n}\n\nconst getLinkProps = (link: AlertProps['link']): Pick<LinkProps, 'children' | 'href' | 'onClick'> | null => {\n if (!link) return null\n\n const { href, onClick, text } = link\n\n if (!text) return null\n\n const props = { children: text }\n\n if (href) return { ...props, href }\n if (onClick) return { ...props, onClick }\n\n return null\n}\n\nexport const Alert = forwardRef<HTMLDivElement, AlertProps>((props, ref) => {\n const { children, link, severity = 'error', variant = 'outlined', onClose, ...muiProps } = props\n const classes = useAlertStyles(props)\n const validLink = link && getLinkProps(link)\n const Action = (\n <React.Fragment>\n {validLink && <Link {...validLink} />}\n {onClose && (\n <IconButton onClick={onClose}>\n <Icon icon={XIcon} />\n </IconButton>\n )}\n </React.Fragment>\n )\n\n return (\n <CommonAlert\n ref={ref}\n classes={classes}\n // @ts-expect-error - todo.\n icon={<Icon icon={severityIcons[severity]} size=\"extra-large\" />}\n action={Action}\n variant={variant}\n severity={severity}\n {...muiProps}\n >\n {children}\n </CommonAlert>\n )\n})\n\nAlert.displayName = 'Alert'\n"],"names":["ErrorIcon","XIcon","CommonAlert"],"mappings":";;;;;;AAQA,IAAM,aAAa,GAAoD;AACrE,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAEA,KAAS;AAChB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,WAAW;CACrB;AAED,IAAM,YAAY,GAAG,UAAC,IAAwB,EAAA;AAC5C,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,IAAI;AAEd,IAAA,IAAA,IAAI,GAAoB,IAAI,CAAA,IAAxB,EAAE,OAAO,GAAW,IAAI,CAAA,OAAf,EAAE,IAAI,GAAK,IAAI,KAAT;AAE3B,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,IAAI;AAEtB,IAAA,IAAM,KAAK,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;AAEhC,IAAA,IAAI,IAAI;AAAE,QAAA,OAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EAAY,KAAK,CAAA,EAAA,EAAE,IAAI,EAAA,IAAA,EAAE,CAAA;AACnC,IAAA,IAAI,OAAO;AAAE,QAAA,OAAA,QAAA,CAAA,QAAA,CAAA,EAAA,EAAY,KAAK,CAAA,EAAA,EAAE,OAAO,EAAA,OAAA,EAAE,CAAA;AAEzC,IAAA,OAAO,IAAI;AACb,CAAC;IAEY,KAAK,GAAG,UAAU,CAA6B,UAAC,KAAK,EAAE,GAAG,EAAA;AAC7D,IAAA,IAAA,QAA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AAElB,CAAC;AAED,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AlertProps as CommonAlertProps } from '@popmenu/common-ui';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
|
-
export interface AlertProps extends CommonAlertProps {
|
|
4
|
-
/** Makes the fill the width of its container */
|
|
5
|
-
fullWidth?: boolean;
|
|
6
|
-
/** Adds a Link to the Alert. */
|
|
7
|
-
link?: {
|
|
8
|
-
href?: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
text: string;
|
|
11
|
-
};
|
|
12
|
-
/** @ignore */
|
|
13
|
-
ref?: RefObject<HTMLDivElement>;
|
|
14
|
-
}
|
|
1
|
+
import { AlertProps as CommonAlertProps } from '@popmenu/common-ui';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
export interface AlertProps extends CommonAlertProps {
|
|
4
|
+
/** Makes the fill the width of its container */
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
/** Adds a Link to the Alert. */
|
|
7
|
+
link?: {
|
|
8
|
+
href?: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
/** @ignore */
|
|
13
|
+
ref?: RefObject<HTMLDivElement>;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AlertProps } from './AlertProps';
|
|
2
|
-
export declare const useAlertStyles: (props: AlertProps) => import("@material-ui/styles").ClassNameMap<"root">;
|
|
1
|
+
import { AlertProps } from './AlertProps';
|
|
2
|
+
export declare const useAlertStyles: (props: AlertProps) => import("@material-ui/styles").ClassNameMap<"root">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
|
|
3
|
+
var useAlertStyles = makeStyles(function (theme) { return ({
|
|
4
|
+
root: {
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
width: function (_a) {
|
|
7
|
+
var fullWidth = _a.fullWidth;
|
|
8
|
+
return (fullWidth ? '100%' : 'unset');
|
|
9
|
+
},
|
|
10
|
+
background: 'white',
|
|
11
|
+
borderColor: function (props) { return theme.palette[props.severity || 'error'].main; },
|
|
12
|
+
borderLeft: theme.spacing(1) + "px solid",
|
|
13
|
+
color: theme.palette.text.primary,
|
|
14
|
+
},
|
|
15
|
+
icon: {
|
|
16
|
+
alignSelf: 'start',
|
|
17
|
+
},
|
|
18
|
+
}); });
|
|
19
|
+
|
|
20
|
+
export { useAlertStyles };
|
|
21
|
+
//# sourceMappingURL=AlertStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertStyles.js","sources":["../../../../src/components/Alert/AlertStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core/styles'\n\nimport { AlertProps } from './AlertProps'\n\nexport const useAlertStyles = makeStyles<Theme, AlertProps, 'root'>((theme) => ({\n root: {\n alignItems: 'center',\n width: ({ fullWidth }) => (fullWidth ? '100%' : 'unset'),\n background: 'white',\n borderColor: (props) => theme.palette[props.severity || 'error'].main,\n borderLeft: `${theme.spacing(1)}px solid`,\n color: theme.palette.text.primary,\n },\n icon: {\n alignSelf: 'start',\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,cAAc,GAAG,UAAU,CAA4B,UAAC,KAAK,EAAK,EAAA,QAAC;AAC9E,IAAA,IAAI,EAAE;AACJ,QAAA,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,UAAC,EAAa,EAAA;AAAX,YAAA,IAAA,SAAS,GAAA,EAAA,CAAA,SAAA;YAAO,QAAC,SAAS,GAAG,MAAM,GAAG,OAAO;SAAC;AACxD,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,WAAW,EAAE,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,IAAI,GAAA;AACrE,QAAA,UAAU,EAAK,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAU,UAAA;AACzC,QAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;AAClC,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,SAAS,EAAE,OAAO;AACnB,KAAA;CACF,EAAC,EAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Alert as default } from './Alert';
|
|
2
|
-
export { AlertProps } from './AlertProps';
|
|
1
|
+
export { Alert as default } from './Alert';
|
|
2
|
+
export { AlertProps } from './AlertProps';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertDialogProps } from './AlertDialogProps';
|
|
3
|
+
export declare const AlertDialog: React.ForwardRefExoticComponent<Pick<AlertDialogProps, "classes" | "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" | "maxWidth" | "transitionDuration" | "scroll" | "open" | "disabled" | "fullWidth" | "severity" | "onClose" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "container" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableBackdropClick" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "manager" | "onBackdropClick" | "onEscapeKeyDown" | "onRendered" | "cancelButtonText" | "hideCancelButton" | "descriptionId" | "labelId" | "onCancel" | "onProceed" | "proceedButtonText" | "fullScreen" | "PaperComponent" | "PaperProps" | "TransitionComponent" | "TransitionProps"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { Button } from '../Button/Button.js';
|
|
4
|
+
import { Dialog, Card, IconButton, Icon, CardContent, Box, CardActions } from '@popmenu/common-ui';
|
|
5
|
+
import { X, CheckCircle, Warning, Error, Info } from '@popmenu/web-icons';
|
|
6
|
+
import { useAlertDialogStyles } from './AlertDialogStyles.js';
|
|
7
|
+
|
|
8
|
+
var severityIcons = {
|
|
9
|
+
info: Info,
|
|
10
|
+
error: Error,
|
|
11
|
+
warning: Warning,
|
|
12
|
+
success: CheckCircle,
|
|
13
|
+
};
|
|
14
|
+
var AlertDialog = forwardRef(function (props, ref) {
|
|
15
|
+
var _a = props.cancelButtonText, cancelButtonText = _a === void 0 ? 'cancel' : _a, _b = props.hideCancelButton, hideCancelButton = _b === void 0 ? false : _b, children = props.children, labelId = props.labelId, descriptionId = props.descriptionId, _c = props.severity, severity = _c === void 0 ? 'info' : _c, _d = props.proceedButtonText, proceedButtonText = _d === void 0 ? 'proceed' : _d, _e = props.disabled, disabled = _e === void 0 ? false : _e, onClose = props.onClose, onCancel = props.onCancel, onProceed = props.onProceed, DialogProps = __rest(props, ["cancelButtonText", "hideCancelButton", "children", "labelId", "descriptionId", "severity", "proceedButtonText", "disabled", "onClose", "onCancel", "onProceed"]);
|
|
16
|
+
var classes = useAlertDialogStyles(props);
|
|
17
|
+
return (React.createElement(Dialog, __assign({ ref: ref, classes: { paper: classes.root }, maxWidth: "sm", fullWidth: true }, DialogProps),
|
|
18
|
+
React.createElement(Card, { classes: { root: classes.card }, role: "alertdialog", "aria-modal": "true", "aria-labelledby": labelId, "aria-describedby": descriptionId },
|
|
19
|
+
React.createElement(IconButton, { className: classes.cancelIcon, onClick: onClose, disabled: disabled },
|
|
20
|
+
React.createElement(Icon, { icon: X })),
|
|
21
|
+
React.createElement(CardContent, null,
|
|
22
|
+
React.createElement(Box, { display: "flex" },
|
|
23
|
+
React.createElement(Icon, { className: classes.icon, color: severity, icon: severityIcons[severity] }),
|
|
24
|
+
React.createElement(Box, { pl: 2, pr: 3 }, children))),
|
|
25
|
+
React.createElement(CardActions, { classes: { root: classes.cardActions } },
|
|
26
|
+
!hideCancelButton && (React.createElement(Button, { onClick: onCancel, disabled: disabled, variant: "ghost" }, cancelButtonText)),
|
|
27
|
+
React.createElement(Button, { onClick: onProceed, loading: disabled, variant: severity }, proceedButtonText)))));
|
|
28
|
+
});
|
|
29
|
+
AlertDialog.displayName = 'AlertDialog';
|
|
30
|
+
|
|
31
|
+
export { AlertDialog };
|
|
32
|
+
//# sourceMappingURL=AlertDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertDialog.js","sources":["../../../../src/components/AlertDialog/AlertDialog.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport Button from '../Button'\nimport { Card, Dialog, Icon, IconButton, Box, CardActions, CardContent } from '@popmenu/common-ui'\nimport { Info, Error as ErrorIcon, X as XIcon, Warning, CheckCircle } from '@popmenu/web-icons'\nimport { useAlertDialogStyles } from './AlertDialogStyles'\nimport { AlertDialogProps } from './AlertDialogProps'\n\nconst severityIcons: Record<Extract<AlertDialogProps, 'severity'>, string> = {\n info: Info,\n error: ErrorIcon,\n warning: Warning,\n success: CheckCircle,\n}\n\nexport const AlertDialog = forwardRef<HTMLDivElement, AlertDialogProps>((props, ref) => {\n const {\n cancelButtonText = 'cancel',\n hideCancelButton = false,\n children,\n labelId,\n descriptionId,\n severity = 'info',\n proceedButtonText = 'proceed',\n disabled = false,\n onClose,\n onCancel,\n onProceed,\n ...DialogProps\n } = props\n const classes = useAlertDialogStyles(props)\n return (\n <Dialog ref={ref} classes={{ paper: classes.root }} maxWidth=\"sm\" fullWidth={true} {...DialogProps}>\n <Card\n classes={{ root: classes.card }}\n role=\"alertdialog\"\n aria-modal=\"true\"\n aria-labelledby={labelId}\n aria-describedby={descriptionId}\n >\n <IconButton className={classes.cancelIcon} onClick={onClose} disabled={disabled}>\n <Icon icon={XIcon} />\n </IconButton>\n <CardContent>\n <Box display=\"flex\">\n {/* @ts-expect-error - todo. */}\n <Icon className={classes.icon} color={severity} icon={severityIcons[severity]} />\n <Box pl={2} pr={3}>\n {children}\n </Box>\n </Box>\n </CardContent>\n <CardActions classes={{ root: classes.cardActions }}>\n {!hideCancelButton && (\n <Button onClick={onCancel} disabled={disabled} variant=\"ghost\">\n {cancelButtonText}\n </Button>\n )}\n <Button onClick={onProceed} loading={disabled} variant={severity}>\n {proceedButtonText}\n </Button>\n </CardActions>\n </Card>\n </Dialog>\n )\n})\n\nAlertDialog.displayName = 'AlertDialog'\n"],"names":["ErrorIcon","XIcon"],"mappings":";;;;;;;AAQA,IAAM,aAAa,GAA0D;AAC3E,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAEA,KAAS;AAChB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,WAAW;CACrB;IAEY,WAAW,GAAG,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG,EAAA;AAE/E,IAAA,IAAA,KAYE,KAAK,CAAA,gBAZoB,EAA3B,gBAAgB,mBAAG,QAAQ,GAAA,EAAA,EAC3B,EAAA,GAWE,KAAK,CAXiB,gBAAA,EAAxB,gBAAgB,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACxB,QAAQ,GAUN,KAAK,SAVC,EACR,OAAO,GASL,KAAK,QATA,EACP,aAAa,GAQX,KAAK,cARM,EACb,EAAA,GAOE,KAAK,CAPU,QAAA,EAAjB,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,MAAM,GAAA,EAAA,EACjB,KAME,KAAK,CAAA,iBANsB,EAA7B,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AA;AAEjB,oBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAI,CAAA;AACjF,oBAAA,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAA,EACd,QAAQ,CACL,CACF,CACM;YACd,KAAC,CAAA,aAAA,CAAA,WAAW,EAAC,EAAA,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,EAAA;gBAChD,CAAC,gBAAgB,KAChB,KAAA,CAAA,aAAA,CAAC,MAAM,EAAC,EAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAC,OAAO,EAC3D,EAAA,gBAAgB,CACV,CACV;gBACD,KAAC,CAAA,aAAA,CAAA,MAAM,IAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,IAC7D,iBAAiB,CACX,CACG,CACT,CACA;AAEb,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
|
|
@@ -1,26 +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
|
-
}
|
|
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/styles';
|
|
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/styles'\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;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AlertDialog as default } from './AlertDialog';
|
|
2
|
-
export { AlertDialogProps } from './AlertDialogProps';
|
|
1
|
+
export { AlertDialog as default } from './AlertDialog';
|
|
2
|
+
export { AlertDialogProps } from './AlertDialogProps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BoxProps } from '@popmenu/common-ui';
|
|
3
|
-
export declare const AlertDialogHeader: FC<BoxProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BoxProps } from '@popmenu/common-ui';
|
|
3
|
+
export declare const AlertDialogHeader: FC<BoxProps>;
|
|
@@ -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;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AlertDialogHeader as default } from './AlertDialogHeader';
|
|
1
|
+
export { AlertDialogHeader as default } from './AlertDialogHeader';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { AlertTitleProps } from '@material-ui/lab/AlertTitle';
|
|
3
|
-
export declare const AlertTitle: FC<AlertTitleProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AlertTitleProps } from '@material-ui/lab/AlertTitle';
|
|
3
|
+
export declare const AlertTitle: FC<AlertTitleProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import MuiAlertTitle from '@material-ui/lab/AlertTitle';
|
|
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(MuiAlertTitle, __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 React, { FC } from 'react'\nimport MuiAlertTitle, { AlertTitleProps } from '@material-ui/lab/AlertTitle'\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":[],"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,CAAC,aAAa,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;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AlertTitle as default } from './AlertTitle';
|
|
2
|
-
export { AlertTitleProps } from '@material-ui/lab/AlertTitle';
|
|
1
|
+
export { AlertTitle as default } from './AlertTitle';
|
|
2
|
+
export { AlertTitleProps } from '@material-ui/lab/AlertTitle';
|
|
@@ -1,11 +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 {};
|
|
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;;;;"}
|
|
@@ -1,8 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,7 +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) => import("@material-ui/styles").ClassNameMap<string>;
|
|
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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