@popmenu/admin-ui 0.126.1 → 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/cjs/components/Alert/AlertProps.d.ts +14 -0
- package/build/cjs/components/Alert/AlertStyles.d.ts +2 -0
- package/build/cjs/components/Alert/index.d.ts +2 -0
- package/build/cjs/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/build/cjs/components/AlertDialog/AlertDialogProps.d.ts +26 -0
- package/build/cjs/components/AlertDialog/AlertDialogStyles.d.ts +2 -0
- package/build/cjs/components/AlertDialog/index.d.ts +2 -0
- package/build/cjs/components/AlertDialogHeader/AlertDialogHeader.d.ts +3 -0
- package/build/cjs/components/AlertDialogHeader/index.d.ts +1 -0
- package/build/cjs/components/AlertTitle/AlertTitle.d.ts +3 -0
- package/build/cjs/components/AlertTitle/index.d.ts +2 -0
- package/build/cjs/components/Button/Button.d.ts +11 -0
- package/build/cjs/components/Button/ButtonProps.d.ts +8 -0
- package/build/cjs/components/Button/ButtonStyles.d.ts +7 -0
- package/build/cjs/components/Button/index.d.ts +2 -0
- package/build/cjs/components/Button/util/deriveButtonProps.d.ts +5 -0
- package/build/cjs/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/build/cjs/components/ButtonGroup/ButtonGroupProps.d.ts +8 -0
- package/build/cjs/components/ButtonGroup/ButtonGroupStyles.d.ts +2 -0
- package/build/cjs/components/ButtonGroup/index.d.ts +2 -0
- package/build/cjs/components/Dialog/index.d.ts +1 -0
- package/build/cjs/components/DialogActions/DialogActions.d.ts +3 -0
- package/build/cjs/components/DialogActions/index.d.ts +2 -0
- package/build/cjs/components/DialogContent/index.d.ts +1 -0
- package/build/cjs/components/DialogTitle/index.d.ts +1 -0
- package/build/cjs/components/FeatureIntro/FeatureIntro.d.ts +3 -0
- package/build/cjs/components/FeatureIntro/FeatureIntroProps.d.ts +22 -0
- package/build/cjs/components/FeatureIntro/FeatureIntroStyles.d.ts +2 -0
- package/build/cjs/components/FeatureIntro/index.d.ts +2 -0
- package/build/cjs/components/FullScreenStepper/FullScreenStepper.d.ts +8 -0
- package/build/cjs/components/FullScreenStepper/FullScreenStepperContext.d.ts +6 -0
- package/build/cjs/components/FullScreenStepper/FullScreenStepperProps.d.ts +68 -0
- package/build/cjs/components/FullScreenStepper/index.d.ts +3 -0
- package/build/cjs/components/FullScreenStepper/types/index.d.ts +25 -0
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -0
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +22 -0
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActionsStyles.d.ts +2 -0
- package/build/cjs/components/FullScreenStepperActions/index.d.ts +2 -0
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +11 -0
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +12 -0
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +11 -0
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsStatusText.d.ts +4 -0
- package/build/cjs/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +5 -0
- package/build/cjs/components/FullScreenStepperContent/FullScreenStepperContent.d.ts +5 -0
- package/build/cjs/components/FullScreenStepperContent/index.d.ts +1 -0
- package/build/cjs/components/FullScreenStepperHeader/FullScreenStepperHeader.d.ts +3 -0
- package/build/cjs/components/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +8 -0
- package/build/cjs/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.d.ts +2 -0
- package/build/cjs/components/FullScreenStepperHeader/index.d.ts +1 -0
- package/build/cjs/components/FullScreenStepperProgress/FullScreenStepperProgress.d.ts +3 -0
- package/build/cjs/components/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +5 -0
- package/build/cjs/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.d.ts +2 -0
- package/build/cjs/components/FullScreenStepperProgress/index.d.ts +1 -0
- package/build/cjs/components/List/List.d.ts +3 -0
- package/build/cjs/components/List/ListProps.d.ts +4 -0
- package/build/cjs/components/List/index.d.ts +2 -0
- package/build/cjs/components/List/styles.d.ts +2 -0
- package/build/cjs/components/Page/Page.d.ts +2 -0
- package/build/cjs/components/Page/index.d.ts +1 -0
- package/build/cjs/components/PageBody/PageBody.d.ts +2 -0
- package/build/cjs/components/PageBody/index.d.ts +1 -0
- package/build/cjs/components/PageSection/PageSection.d.ts +3 -0
- package/build/cjs/components/PageSection/PageSectionProps.d.ts +5 -0
- package/build/cjs/components/PageSection/PageSectionStyles.d.ts +2 -0
- package/build/cjs/components/PageSection/index.d.ts +1 -0
- package/build/cjs/components/PageSectionHead/PageSectionHead.d.ts +2 -0
- package/build/cjs/components/PageSectionHead/index.d.ts +1 -0
- package/build/cjs/components/PageSectionTitle/PageSectionTitle.d.ts +3 -0
- package/build/cjs/components/PageSectionTitle/index.d.ts +1 -0
- package/build/cjs/components/PageSectionTitle/styles.d.ts +1 -0
- package/build/cjs/components/PageSections/PageSections.d.ts +2 -0
- package/build/cjs/components/PageSections/index.d.ts +1 -0
- package/build/cjs/components/SelectableCard/SelectableCard.d.ts +3 -0
- package/build/cjs/components/SelectableCard/SelectableCardProps.d.ts +17 -0
- package/build/cjs/components/SelectableCard/SelectableCardStyles.d.ts +2 -0
- package/build/cjs/components/SelectableCard/index.d.ts +2 -0
- package/build/cjs/components/SettingsIndexCard/SettingsIndexCard.d.ts +11 -0
- package/build/cjs/components/SettingsIndexCard/SettingsIndexCardProps.d.ts +20 -0
- package/build/cjs/components/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -0
- package/build/cjs/components/SettingsIndexCard/index.d.ts +2 -0
- package/build/cjs/components/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -0
- package/build/cjs/components/SettingsIndexCardGroup/index.d.ts +1 -0
- package/build/cjs/components/StandardListItem/StandardListItem.d.ts +9 -0
- package/build/cjs/components/StandardListItem/StandardListItemProps.d.ts +25 -0
- package/build/cjs/components/StandardListItem/index.d.ts +2 -0
- package/build/cjs/components/Toast/Toast.d.ts +3 -0
- package/build/cjs/components/Toast/ToastProps.d.ts +10 -0
- package/build/cjs/components/Toast/ToastStyles.d.ts +2 -0
- package/build/cjs/components/Toast/index.d.ts +2 -0
- package/build/cjs/components/index.d.ts +27 -0
- package/build/cjs/hooks/index.d.ts +3 -0
- package/build/cjs/hooks/useDialog.d.ts +12 -0
- package/build/cjs/hooks/useFullScreenStepperContext.d.ts +2 -0
- package/build/cjs/hooks/useSelectableCard.d.ts +24 -0
- package/build/cjs/index.d.ts +3 -0
- package/build/{index.js → cjs/index.js} +142 -147
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/theme/adminDarkTheme.d.ts +252 -0
- package/build/cjs/theme/adminLightTheme.d.ts +253 -0
- package/build/cjs/theme/breakpoints.d.ts +9 -0
- package/build/cjs/theme/customThemeProperties.d.ts +63 -0
- package/build/cjs/theme/index.d.ts +2 -0
- package/build/cjs/theme/overrides.d.ts +30 -0
- package/build/cjs/theme/palette.d.ts +128 -0
- package/build/cjs/theme/props.d.ts +8 -0
- package/build/cjs/theme/typography.d.ts +61 -0
- package/build/esm/components/Alert/AlertStyles.js +1 -1
- package/build/esm/components/Alert/AlertStyles.js.map +1 -1
- package/build/esm/components/AlertDialog/AlertDialogStyles.js +1 -1
- package/build/esm/components/AlertDialog/AlertDialogStyles.js.map +1 -1
- package/build/esm/components/AlertTitle/AlertTitle.d.ts +1 -1
- package/build/esm/components/AlertTitle/AlertTitle.js +2 -2
- package/build/esm/components/AlertTitle/AlertTitle.js.map +1 -1
- package/build/esm/components/AlertTitle/index.d.ts +1 -1
- package/build/esm/components/ButtonGroup/ButtonGroup.js +1 -1
- package/build/esm/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js +1 -1
- package/build/esm/components/ButtonGroup/ButtonGroupStyles.js.map +1 -1
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js +1 -1
- package/build/esm/components/FeatureIntro/FeatureIntroStyles.js.map +1 -1
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js +1 -2
- package/build/esm/components/FullScreenStepper/FullScreenStepper.js.map +1 -1
- package/build/esm/components/FullScreenStepper/FullScreenStepperProps.d.ts +1 -1
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js +1 -1
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -1
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js +1 -1
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.js.map +1 -1
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +1 -1
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -1
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +1 -1
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -1
- package/build/esm/components/SelectableCard/SelectableCardProps.d.ts +1 -2
- package/build/esm/components/SelectableCard/SelectableCardStyles.js +1 -1
- package/build/esm/components/SelectableCard/SelectableCardStyles.js.map +1 -1
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js +1 -1
- package/build/esm/components/SettingsIndexCard/SettingsIndexCardStyles.js.map +1 -1
- package/build/esm/components/Toast/Toast.js +2 -2
- package/build/esm/components/Toast/Toast.js.map +1 -1
- package/build/esm/components/Toast/ToastProps.d.ts +2 -2
- package/build/esm/components/Toast/ToastStyles.js +1 -1
- package/build/esm/components/Toast/ToastStyles.js.map +1 -1
- package/build/esm/theme/adminDarkTheme.d.ts +4 -4
- package/build/esm/theme/adminDarkTheme.js +3 -3
- package/build/esm/theme/adminDarkTheme.js.map +1 -1
- package/build/esm/theme/adminLightTheme.d.ts +2 -2
- package/build/esm/theme/adminLightTheme.js +3 -3
- package/build/esm/theme/adminLightTheme.js.map +1 -1
- package/package.json +3 -3
- package/build/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSections } from './PageSections';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CardActionAreaProps, CardProps as MuiCardProps } from '@material-ui/core';
|
|
2
|
+
import { Ref } from 'react';
|
|
3
|
+
export interface SelectableCardProps extends Omit<MuiCardProps, 'onClick'> {
|
|
4
|
+
/** Id of the DOM node serving as the label of the input. */
|
|
5
|
+
labelId: string;
|
|
6
|
+
/** Sets card selection state. */
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
/** A reference to selection state managing a group of SelectableCards. */
|
|
9
|
+
selection?: Array<string>;
|
|
10
|
+
/** The value of a card in respects to selection state. */
|
|
11
|
+
value: string;
|
|
12
|
+
/** Callback for when the SelectableCard is clicked. */
|
|
13
|
+
onClick: (value: string) => void;
|
|
14
|
+
/** Props passed to the CardActionArea rendered by SelectableCard. */
|
|
15
|
+
CardActionAreaProps?: CardActionAreaProps;
|
|
16
|
+
ref?: (instance: HTMLDivElement) => void | Ref<HTMLDivElement> | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SettingsIndexCardProps } from './SettingsIndexCardProps';
|
|
3
|
+
interface SettingsIndexCardType {
|
|
4
|
+
<C extends React.ElementType = 'a'>(props: SettingsIndexCardProps<C> & {
|
|
5
|
+
component?: C;
|
|
6
|
+
}): React.ReactElement;
|
|
7
|
+
defaultProps?: Partial<SettingsIndexCardProps>;
|
|
8
|
+
displayName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SettingsIndexCard: SettingsIndexCardType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonBaseProps } from '@material-ui/core';
|
|
2
|
+
import { ThemeColors } from '@popmenu/common-ui';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare type SettingsIndexCardProps<C extends React.ElementType = 'button'> = ButtonBaseProps<C, {
|
|
5
|
+
component?: C;
|
|
6
|
+
}> & {
|
|
7
|
+
/** The icon from @popmenu/web-icons to be rendered */
|
|
8
|
+
Icon?: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
9
|
+
/** Sets the title of the card */
|
|
10
|
+
title: string;
|
|
11
|
+
/** Displays the given card description */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Event callback for the Card click event */
|
|
14
|
+
onClick?: (event: any) => void;
|
|
15
|
+
/** Sets the text and color of the label */
|
|
16
|
+
statusLabel?: {
|
|
17
|
+
text: string;
|
|
18
|
+
color: ThemeColors;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StandardListItemProps } from './StandardListItemProps';
|
|
3
|
+
/**
|
|
4
|
+
* TODO
|
|
5
|
+
* - clean props util
|
|
6
|
+
* - Avatar size and shape
|
|
7
|
+
*/
|
|
8
|
+
export declare const StandardListItem: (props: StandardListItemProps) => JSX.Element;
|
|
9
|
+
export declare const Test: () => JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FC, MouseEvent as ReactMouseEvent, SVGProps } from 'react';
|
|
2
|
+
import { ListItemProps } from '@material-ui/core';
|
|
3
|
+
export interface StandardListItemProps extends Omit<ListItemProps, 'onClick'> {
|
|
4
|
+
title: string;
|
|
5
|
+
itemId?: string | number;
|
|
6
|
+
meta?: string;
|
|
7
|
+
body?: string;
|
|
8
|
+
image?: {
|
|
9
|
+
src?: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
12
|
+
shape?: 'circle' | 'square';
|
|
13
|
+
};
|
|
14
|
+
status?: {
|
|
15
|
+
text: string;
|
|
16
|
+
severity?: string;
|
|
17
|
+
Icon?: FC<SVGProps<SVGSVGElement>>;
|
|
18
|
+
};
|
|
19
|
+
secondaryAction?: {
|
|
20
|
+
Icon: FC<SVGProps<SVGSVGElement>>;
|
|
21
|
+
'aria-label': string;
|
|
22
|
+
onClick: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>, listItem: StandardListItemProps) => void;
|
|
23
|
+
};
|
|
24
|
+
onClick?: (event: ReactMouseEvent<HTMLButtonElement | HTMLLIElement, MouseEvent>, listItem: StandardListItemProps) => void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SnackbarProps } from '@material-ui/core';
|
|
2
|
+
import { AlertProps as MuiAlertProps } from '@material-ui/lab';
|
|
3
|
+
export interface ToastProps extends SnackbarProps {
|
|
4
|
+
/** Applied to the built in [Alert](?path=/docs/admin-ui-alert--props) Component. */
|
|
5
|
+
AlertProps?: Omit<MuiAlertProps, 'ref'>;
|
|
6
|
+
/** The severity of the Alert. */
|
|
7
|
+
severity: 'error' | 'warning' | 'info' | 'success';
|
|
8
|
+
/** @ignore */
|
|
9
|
+
ref?: SnackbarProps['ref'];
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { default as Alert, AlertProps } from './Alert';
|
|
2
|
+
export { default as AlertDialog, AlertDialogProps } from './AlertDialog';
|
|
3
|
+
export { default as AlertDialogHeader } from './AlertDialogHeader';
|
|
4
|
+
export { default as AlertTitle, AlertTitleProps } from './AlertTitle';
|
|
5
|
+
export { default as Button, ButtonProps } from './Button';
|
|
6
|
+
export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
7
|
+
export { default as FeatureIntro, FeatureIntroProps } from './FeatureIntro';
|
|
8
|
+
export { default as FullScreenStepper, FullScreenStepperProps, FullScreenStepperContext } from './FullScreenStepper';
|
|
9
|
+
export { default as FullScreenStepperActions, FullScreenStepperActionsProps } from './FullScreenStepperActions';
|
|
10
|
+
export { default as FullScreenStepperContent } from './FullScreenStepperContent';
|
|
11
|
+
export { default as SelectableCard, SelectableCardProps } from './SelectableCard';
|
|
12
|
+
export { default as Toast, ToastProps } from './Toast';
|
|
13
|
+
export { DialogTitle, DialogTitleProps } from './DialogTitle';
|
|
14
|
+
export { DialogActions, DialogActionsProps } from './DialogActions';
|
|
15
|
+
export { Dialog, DialogProps } from './Dialog';
|
|
16
|
+
export { DialogContent, DialogContentProps } from './DialogContent';
|
|
17
|
+
export { Page } from './Page';
|
|
18
|
+
export { PageBody } from './PageBody';
|
|
19
|
+
export { PageSection } from './PageSection';
|
|
20
|
+
export { PageSections } from './PageSections';
|
|
21
|
+
export { PageSectionHead } from './PageSectionHead';
|
|
22
|
+
export { PageSectionTitle } from './PageSectionTitle';
|
|
23
|
+
export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
24
|
+
export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
|
|
25
|
+
export { List, ListProps } from './List';
|
|
26
|
+
export { StandardListItem, StandardListItemProps } from './StandardListItem';
|
|
27
|
+
export { Switch, SwitchProps, TextField, TextFieldProps, MenuItem, MenuItemProps, CircularProgress, CircularProgressProps, } from '@material-ui/core';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useDialog: () => ({
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
} | {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
} | {
|
|
8
|
+
open: boolean;
|
|
9
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
})[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Config {
|
|
2
|
+
defaultSelected?: Array<string>;
|
|
3
|
+
selectionMode?: 'single' | 'multi';
|
|
4
|
+
maxSelectionCount?: number;
|
|
5
|
+
}
|
|
6
|
+
interface Result {
|
|
7
|
+
card: {
|
|
8
|
+
onClick: (value: string) => void;
|
|
9
|
+
selection: Array<string>;
|
|
10
|
+
};
|
|
11
|
+
selection: Array<string>;
|
|
12
|
+
setSelection: (selection: Array<string>) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Manages state for SelectableCards.
|
|
16
|
+
* @param {Config} config - Configures the hook behavior.
|
|
17
|
+
* @param {string|string[]} [config.defaultSelected = []] - Initializes state with the provided value.
|
|
18
|
+
* @param {string} [config.selectionMode = 'single'] - Determines selection behavior. 'single' provides radio style
|
|
19
|
+
* selection. 'multi' provides checkbox style selection.
|
|
20
|
+
* @param {number} [config.maxSelectionCount] - A number to determine the maximum amount of cards to be selected.
|
|
21
|
+
* @returns {HookResult} An object with click handler and current state. Spread into a SelectableCard to use.
|
|
22
|
+
*/
|
|
23
|
+
export declare const useSelectableCard: (config?: Config) => Result;
|
|
24
|
+
export {};
|
|
@@ -4,16 +4,11 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var commonUi = require('@popmenu/common-ui');
|
|
6
6
|
var webIcons = require('@popmenu/web-icons');
|
|
7
|
-
var styles = require('@material-ui/core/styles');
|
|
8
7
|
var core = require('@material-ui/core');
|
|
9
|
-
var
|
|
10
|
-
var Box = require('@material-ui/core/Box');
|
|
11
|
-
var Dialog = require('@material-ui/core/Dialog');
|
|
12
|
-
var MuiSnackbar = require('@material-ui/core/Snackbar');
|
|
8
|
+
var lab = require('@material-ui/lab');
|
|
13
9
|
var classNames = require('classnames');
|
|
14
|
-
var createTheme = require('@material-ui/core/styles/createTheme');
|
|
15
10
|
|
|
16
|
-
var useAlertStyles =
|
|
11
|
+
var useAlertStyles = core.makeStyles(function (theme) { return ({
|
|
17
12
|
root: {
|
|
18
13
|
alignItems: 'center',
|
|
19
14
|
width: function (_a) {
|
|
@@ -235,7 +230,7 @@ Button.defaultProps = {
|
|
|
235
230
|
};
|
|
236
231
|
Button.displayName = 'Button';
|
|
237
232
|
|
|
238
|
-
var useAlertDialogStyles =
|
|
233
|
+
var useAlertDialogStyles = core.makeStyles(function (theme) { return ({
|
|
239
234
|
cancelButton: {
|
|
240
235
|
color: theme.palette.grey[700],
|
|
241
236
|
},
|
|
@@ -292,7 +287,7 @@ AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
|
292
287
|
|
|
293
288
|
var AlertTitle = function (props) {
|
|
294
289
|
var children = props.children, muiProps = tslib.__rest(props, ["children"]);
|
|
295
|
-
return (React.createElement(
|
|
290
|
+
return (React.createElement(lab.AlertTitle, tslib.__assign({}, muiProps),
|
|
296
291
|
React.createElement(commonUi.Typography, { variant: "h6" },
|
|
297
292
|
" ",
|
|
298
293
|
children,
|
|
@@ -308,7 +303,7 @@ var getBorderColor = function (palette, variant) {
|
|
|
308
303
|
}
|
|
309
304
|
return borderColor;
|
|
310
305
|
};
|
|
311
|
-
var useButtonGroupStyles =
|
|
306
|
+
var useButtonGroupStyles = core.makeStyles(function (theme) { return ({
|
|
312
307
|
root: {
|
|
313
308
|
boxShadow: 'none',
|
|
314
309
|
},
|
|
@@ -328,7 +323,7 @@ var ButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
328
323
|
var children = props.children, _a = props.variant, variant = _a === void 0 ? 'primary' : _a, muiProps = tslib.__rest(props, ["children", "variant"]);
|
|
329
324
|
var classes = useButtonGroupStyles(props);
|
|
330
325
|
var derivedProps = deriveButtonProps({ variant: variant });
|
|
331
|
-
var spacing =
|
|
326
|
+
var spacing = core.useTheme().spacing;
|
|
332
327
|
var childrenWithProps = React.Children.map(children, function (child, i) {
|
|
333
328
|
var isFirst = i === 0 && props.orientation === 'vertical';
|
|
334
329
|
var isLast = i === React.Children.toArray(children).length - 1 && props.orientation === 'vertical';
|
|
@@ -343,7 +338,7 @@ var ButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
343
338
|
});
|
|
344
339
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
345
340
|
|
|
346
|
-
var useFeatureIntroStyles =
|
|
341
|
+
var useFeatureIntroStyles = core.makeStyles(function (_a) {
|
|
347
342
|
var spacing = _a.spacing;
|
|
348
343
|
return ({
|
|
349
344
|
root: {
|
|
@@ -378,7 +373,7 @@ var FeatureIntro = function (props) {
|
|
|
378
373
|
};
|
|
379
374
|
FeatureIntro.displayName = 'FeatureIntro';
|
|
380
375
|
|
|
381
|
-
var useFullScreenStepperActionsStyles =
|
|
376
|
+
var useFullScreenStepperActionsStyles = core.makeStyles(function (theme) { return ({
|
|
382
377
|
root: {
|
|
383
378
|
position: 'sticky',
|
|
384
379
|
background: 'white',
|
|
@@ -434,7 +429,7 @@ var StepperActionsPreviousButton = function (props) {
|
|
|
434
429
|
return displayPreviousButton ? (React.createElement(Button, tslib.__assign({ variant: "tertiary", disabled: stepCursor === 1 }, augmentedPreviousButtonProps), previousButtonText || 'previous')) : null;
|
|
435
430
|
};
|
|
436
431
|
|
|
437
|
-
var useStyles$4 =
|
|
432
|
+
var useStyles$4 = core.makeStyles({
|
|
438
433
|
root: {
|
|
439
434
|
fontStyle: 'italic',
|
|
440
435
|
},
|
|
@@ -485,7 +480,7 @@ var getBorderRadius = function (theme, props) {
|
|
|
485
480
|
return theme.spacing(0.5);
|
|
486
481
|
}
|
|
487
482
|
};
|
|
488
|
-
var useFullScreenStepperProgressStyles =
|
|
483
|
+
var useFullScreenStepperProgressStyles = core.makeStyles(function (theme) { return ({
|
|
489
484
|
progress: {
|
|
490
485
|
width: function (props) { return (props.stepCursor / props.stepCount) * 100 + "%"; },
|
|
491
486
|
transition: 'all 500ms',
|
|
@@ -513,7 +508,7 @@ var FullScreenStepperProgress = function (props) {
|
|
|
513
508
|
React.createElement(commonUi.Box, { className: classes.progress })));
|
|
514
509
|
};
|
|
515
510
|
|
|
516
|
-
var useFullScreenStepperHeaderStyles =
|
|
511
|
+
var useFullScreenStepperHeaderStyles = core.makeStyles(function (_a) {
|
|
517
512
|
var spacing = _a.spacing;
|
|
518
513
|
return ({
|
|
519
514
|
closeButton: {
|
|
@@ -637,11 +632,11 @@ var FullScreenStepper = function (props) {
|
|
|
637
632
|
});
|
|
638
633
|
}); };
|
|
639
634
|
var content = React.Children.toArray(children).find(function (child) { return React.isValidElement(child) && child.props.name === step.name; });
|
|
640
|
-
return (React.createElement(Dialog, tslib.__assign({ fullScreen: true }, DialogProps),
|
|
635
|
+
return (React.createElement(core.Dialog, tslib.__assign({ fullScreen: true }, DialogProps),
|
|
641
636
|
React.createElement(FullScreenStepperContext.Provider, { value: mergedContext },
|
|
642
|
-
React.createElement(Box, { display: "flex", flexDirection: "column", flexGrow: 1 },
|
|
637
|
+
React.createElement(core.Box, { display: "flex", flexDirection: "column", flexGrow: 1 },
|
|
643
638
|
React.createElement(FullScreenStepperHeader, { stepCount: stepCount, stepCursor: stepCursor, onClose: handleClose, step: step }),
|
|
644
|
-
React.createElement(Box, { display: "flex", mx: 6, flexGrow: 1, alignItems: "center", flexDirection: "column" }, content),
|
|
639
|
+
React.createElement(core.Box, { display: "flex", mx: 6, flexGrow: 1, alignItems: "center", flexDirection: "column" }, content),
|
|
645
640
|
displayActionBar && displayStepActionBar && (React.createElement(FullScreenStepperActions, tslib.__assign({}, step.actionBar, { callbackArgs: callbackArgs, displayCancelButton: displayCancelButton, displayPreviousButton: displayPreviousButton, stepCount: stepCount, stepCursor: stepCursor, setStepCursor: setStepCursor, handleCancelClick: handleCancelClick, handleNextClick: handleNextClick, handlePreviousClick: handlePreviousClick })))))));
|
|
646
641
|
};
|
|
647
642
|
FullScreenStepper.displayName = 'FullScreenStepper';
|
|
@@ -651,9 +646,9 @@ var FullScreenStepperContent = function (props) {
|
|
|
651
646
|
return (React.createElement(commonUi.Box, tslib.__assign({ py: 8 }, boxProps), props.children));
|
|
652
647
|
};
|
|
653
648
|
|
|
654
|
-
var useSelectableCardStyles =
|
|
649
|
+
var useSelectableCardStyles = core.makeStyles(function (theme) {
|
|
655
650
|
var _a = theme.palette, info = _a.info, grey = _a.grey, getContrastText = _a.getContrastText, spacing = theme.spacing;
|
|
656
|
-
var selectedBackgroundColor =
|
|
651
|
+
var selectedBackgroundColor = core.lighten(theme.palette.info.light, 0.9);
|
|
657
652
|
var backgroundColor = theme.palette.surface.light;
|
|
658
653
|
return {
|
|
659
654
|
root: {
|
|
@@ -708,7 +703,7 @@ var SelectableCard = function (props) {
|
|
|
708
703
|
};
|
|
709
704
|
SelectableCard.displayName = 'SelectableCard';
|
|
710
705
|
|
|
711
|
-
var useToastStyles =
|
|
706
|
+
var useToastStyles = core.makeStyles(function (theme) { return ({
|
|
712
707
|
root: {
|
|
713
708
|
boxSizing: 'border-box',
|
|
714
709
|
padding: theme.spacing(0, 1.5),
|
|
@@ -723,7 +718,7 @@ var useToastStyles = styles.makeStyles(function (theme) { return ({
|
|
|
723
718
|
var Toast = function (props) {
|
|
724
719
|
var children = props.children, AlertProps = props.AlertProps, severity = props.severity, muiProps = tslib.__rest(props, ["children", "AlertProps", "severity"]);
|
|
725
720
|
var classes = useToastStyles(props);
|
|
726
|
-
return (React.createElement(
|
|
721
|
+
return (React.createElement(core.Snackbar, tslib.__assign({ ClickAwayListenerProps: { mouseEvent: false } }, muiProps),
|
|
727
722
|
React.createElement(Alert, tslib.__assign({ className: classes.root, action: null, severity: severity }, AlertProps), children)));
|
|
728
723
|
};
|
|
729
724
|
Toast.defaultProps = {
|
|
@@ -806,7 +801,7 @@ var SettingsIndexCardGroup = function (props) {
|
|
|
806
801
|
return (React.createElement(commonUi.Box, tslib.__assign({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))" }, restProps), children));
|
|
807
802
|
};
|
|
808
803
|
|
|
809
|
-
var useSettingsIndexCardStyles =
|
|
804
|
+
var useSettingsIndexCardStyles = core.makeStyles(function (theme) { return ({
|
|
810
805
|
cardRoot: {
|
|
811
806
|
border: "1px solid " + theme.palette.grey[300],
|
|
812
807
|
alignSelf: 'stretch',
|
|
@@ -955,69 +950,6 @@ var useDialog = function () {
|
|
|
955
950
|
return [triggerProps, dialogProps, { open: open, setOpen: setOpen, toggle: toggle, close: close }];
|
|
956
951
|
};
|
|
957
952
|
|
|
958
|
-
var fonts = ['"Poppins"', '"sans-serif"'];
|
|
959
|
-
var adminThemeTypography = {
|
|
960
|
-
htmlFontSize: 16,
|
|
961
|
-
fontFamily: fonts.join(', '),
|
|
962
|
-
h1: {
|
|
963
|
-
fontWeight: 400,
|
|
964
|
-
fontSize: '6rem',
|
|
965
|
-
lineHeight: '9rem',
|
|
966
|
-
},
|
|
967
|
-
h2: {
|
|
968
|
-
fontWeight: 400,
|
|
969
|
-
fontSize: '3.75rem',
|
|
970
|
-
lineHeight: '5.625rem',
|
|
971
|
-
},
|
|
972
|
-
h3: {
|
|
973
|
-
fontWeight: 400,
|
|
974
|
-
fontSize: '3rem',
|
|
975
|
-
lineHeight: '4.5rem',
|
|
976
|
-
},
|
|
977
|
-
h4: {
|
|
978
|
-
fontWeight: 400,
|
|
979
|
-
fontSize: '2.125rem',
|
|
980
|
-
lineHeight: '3.25rem',
|
|
981
|
-
},
|
|
982
|
-
h5: {
|
|
983
|
-
fontWeight: 500,
|
|
984
|
-
fontSize: '1.5rem',
|
|
985
|
-
lineHeight: '2.25rem',
|
|
986
|
-
},
|
|
987
|
-
h6: {
|
|
988
|
-
fontWeight: 500,
|
|
989
|
-
fontSize: '1.25rem',
|
|
990
|
-
lineHeight: '1.875rem',
|
|
991
|
-
},
|
|
992
|
-
h7: {
|
|
993
|
-
fontWeight: 400,
|
|
994
|
-
fontSize: '1.125rem',
|
|
995
|
-
lineHeight: '1.75rem',
|
|
996
|
-
},
|
|
997
|
-
body1: {
|
|
998
|
-
fontWeight: 400,
|
|
999
|
-
fontSize: '1rem',
|
|
1000
|
-
lineHeight: '1.5rem',
|
|
1001
|
-
},
|
|
1002
|
-
body2: {
|
|
1003
|
-
fontWeight: 400,
|
|
1004
|
-
fontSize: '0.875rem',
|
|
1005
|
-
lineHeight: '1.25rem',
|
|
1006
|
-
},
|
|
1007
|
-
subtitle1: {
|
|
1008
|
-
fontWeight: 400,
|
|
1009
|
-
fontSize: '0.75rem',
|
|
1010
|
-
lineHeight: '1.125rem',
|
|
1011
|
-
color: '#9E9E9E',
|
|
1012
|
-
},
|
|
1013
|
-
button: {
|
|
1014
|
-
fontWeight: 500,
|
|
1015
|
-
fontSize: '0.875rem',
|
|
1016
|
-
lineHeight: '1.25rem',
|
|
1017
|
-
textTransform: 'capitalize',
|
|
1018
|
-
},
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
953
|
var adminThemeBreakpoints = {
|
|
1022
954
|
values: {
|
|
1023
955
|
xs: 0,
|
|
@@ -1028,6 +960,64 @@ var adminThemeBreakpoints = {
|
|
|
1028
960
|
},
|
|
1029
961
|
};
|
|
1030
962
|
|
|
963
|
+
var props = {
|
|
964
|
+
MuiSwitch: {
|
|
965
|
+
color: 'default',
|
|
966
|
+
},
|
|
967
|
+
MuiTextField: {
|
|
968
|
+
variant: 'outlined',
|
|
969
|
+
},
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* These theme properties should be considered legacy. Make efforts to avoid new usage as well as refactor out existing
|
|
974
|
+
* usage.
|
|
975
|
+
*/
|
|
976
|
+
var adminLightPlaceholder = { placeholder: 'rgba(0, 0, 0, 1)' };
|
|
977
|
+
var adminDarkPlaceholder = { placeholder: 'rgba(255, 255, 255, 0.37)' };
|
|
978
|
+
var adminThemeStatus = {
|
|
979
|
+
status: {
|
|
980
|
+
disabled: {
|
|
981
|
+
opacity: 0.55,
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
};
|
|
985
|
+
var BASE_Z_INDEX = 1100000;
|
|
986
|
+
var adminThemeZIndex = {
|
|
987
|
+
zIndex: {
|
|
988
|
+
mobileStepper: BASE_Z_INDEX + 1000,
|
|
989
|
+
appBar: BASE_Z_INDEX + 1100,
|
|
990
|
+
drawer: BASE_Z_INDEX + 1200,
|
|
991
|
+
modal: BASE_Z_INDEX + 1300,
|
|
992
|
+
snackbar: BASE_Z_INDEX + 1400,
|
|
993
|
+
tooltip: BASE_Z_INDEX + 9100,
|
|
994
|
+
},
|
|
995
|
+
};
|
|
996
|
+
/** The defaults for MuiInputBase and MuiInputLabel can be removed once the BasicForm & 'shared' inputs have either:
|
|
997
|
+
* 1. been refactored to use secondary color.
|
|
998
|
+
* 2. been replaced with new common components.
|
|
999
|
+
*
|
|
1000
|
+
* props as imported from './props' are part updated design system.
|
|
1001
|
+
*/
|
|
1002
|
+
var adminThemeDefaultProps = {
|
|
1003
|
+
props: tslib.__assign(tslib.__assign({}, props), {
|
|
1004
|
+
// Legacy below
|
|
1005
|
+
MuiCard: {
|
|
1006
|
+
elevation: 0,
|
|
1007
|
+
}, MuiTooltip: {
|
|
1008
|
+
title: '',
|
|
1009
|
+
placement: 'right',
|
|
1010
|
+
}, MuiPaper: {
|
|
1011
|
+
elevation: 0,
|
|
1012
|
+
}, MuiAppBar: {
|
|
1013
|
+
position: 'static',
|
|
1014
|
+
}, MuiInputBase: {
|
|
1015
|
+
color: 'secondary',
|
|
1016
|
+
}, MuiInputLabel: {
|
|
1017
|
+
color: 'secondary',
|
|
1018
|
+
} }),
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1031
1021
|
var basePalette = {
|
|
1032
1022
|
/** Semantic Colors */
|
|
1033
1023
|
primary: {
|
|
@@ -1157,64 +1147,6 @@ var dataVizPalette = {
|
|
|
1157
1147
|
},
|
|
1158
1148
|
};
|
|
1159
1149
|
|
|
1160
|
-
var props = {
|
|
1161
|
-
MuiSwitch: {
|
|
1162
|
-
color: 'default',
|
|
1163
|
-
},
|
|
1164
|
-
MuiTextField: {
|
|
1165
|
-
variant: 'outlined',
|
|
1166
|
-
},
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* These theme properties should be considered legacy. Make efforts to avoid new usage as well as refactor out existing
|
|
1171
|
-
* usage.
|
|
1172
|
-
*/
|
|
1173
|
-
var adminLightPlaceholder = { placeholder: 'rgba(0, 0, 0, 1)' };
|
|
1174
|
-
var adminDarkPlaceholder = { placeholder: 'rgba(255, 255, 255, 0.37)' };
|
|
1175
|
-
var adminThemeStatus = {
|
|
1176
|
-
status: {
|
|
1177
|
-
disabled: {
|
|
1178
|
-
opacity: 0.55,
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
};
|
|
1182
|
-
var BASE_Z_INDEX = 1100000;
|
|
1183
|
-
var adminThemeZIndex = {
|
|
1184
|
-
zIndex: {
|
|
1185
|
-
mobileStepper: BASE_Z_INDEX + 1000,
|
|
1186
|
-
appBar: BASE_Z_INDEX + 1100,
|
|
1187
|
-
drawer: BASE_Z_INDEX + 1200,
|
|
1188
|
-
modal: BASE_Z_INDEX + 1300,
|
|
1189
|
-
snackbar: BASE_Z_INDEX + 1400,
|
|
1190
|
-
tooltip: BASE_Z_INDEX + 9100,
|
|
1191
|
-
},
|
|
1192
|
-
};
|
|
1193
|
-
/** The defaults for MuiInputBase and MuiInputLabel can be removed once the BasicForm & 'shared' inputs have either:
|
|
1194
|
-
* 1. been refactored to use secondary color.
|
|
1195
|
-
* 2. been replaced with new common components.
|
|
1196
|
-
*
|
|
1197
|
-
* props as imported from './props' are part updated design system.
|
|
1198
|
-
*/
|
|
1199
|
-
var adminThemeDefaultProps = {
|
|
1200
|
-
props: tslib.__assign(tslib.__assign({}, props), {
|
|
1201
|
-
// Legacy below
|
|
1202
|
-
MuiCard: {
|
|
1203
|
-
elevation: 0,
|
|
1204
|
-
}, MuiTooltip: {
|
|
1205
|
-
title: '',
|
|
1206
|
-
placement: 'right',
|
|
1207
|
-
}, MuiPaper: {
|
|
1208
|
-
elevation: 0,
|
|
1209
|
-
}, MuiAppBar: {
|
|
1210
|
-
position: 'static',
|
|
1211
|
-
}, MuiInputBase: {
|
|
1212
|
-
color: 'secondary',
|
|
1213
|
-
}, MuiInputLabel: {
|
|
1214
|
-
color: 'secondary',
|
|
1215
|
-
} }),
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1218
1150
|
var overrides = {
|
|
1219
1151
|
MuiCssBaseline: {
|
|
1220
1152
|
'@global': {
|
|
@@ -1246,11 +1178,74 @@ var overrides = {
|
|
|
1246
1178
|
},
|
|
1247
1179
|
};
|
|
1248
1180
|
|
|
1181
|
+
var fonts = ['"Poppins"', '"sans-serif"'];
|
|
1182
|
+
var adminThemeTypography = {
|
|
1183
|
+
htmlFontSize: 16,
|
|
1184
|
+
fontFamily: fonts.join(', '),
|
|
1185
|
+
h1: {
|
|
1186
|
+
fontWeight: 400,
|
|
1187
|
+
fontSize: '6rem',
|
|
1188
|
+
lineHeight: '9rem',
|
|
1189
|
+
},
|
|
1190
|
+
h2: {
|
|
1191
|
+
fontWeight: 400,
|
|
1192
|
+
fontSize: '3.75rem',
|
|
1193
|
+
lineHeight: '5.625rem',
|
|
1194
|
+
},
|
|
1195
|
+
h3: {
|
|
1196
|
+
fontWeight: 400,
|
|
1197
|
+
fontSize: '3rem',
|
|
1198
|
+
lineHeight: '4.5rem',
|
|
1199
|
+
},
|
|
1200
|
+
h4: {
|
|
1201
|
+
fontWeight: 400,
|
|
1202
|
+
fontSize: '2.125rem',
|
|
1203
|
+
lineHeight: '3.25rem',
|
|
1204
|
+
},
|
|
1205
|
+
h5: {
|
|
1206
|
+
fontWeight: 500,
|
|
1207
|
+
fontSize: '1.5rem',
|
|
1208
|
+
lineHeight: '2.25rem',
|
|
1209
|
+
},
|
|
1210
|
+
h6: {
|
|
1211
|
+
fontWeight: 500,
|
|
1212
|
+
fontSize: '1.25rem',
|
|
1213
|
+
lineHeight: '1.875rem',
|
|
1214
|
+
},
|
|
1215
|
+
h7: {
|
|
1216
|
+
fontWeight: 400,
|
|
1217
|
+
fontSize: '1.125rem',
|
|
1218
|
+
lineHeight: '1.75rem',
|
|
1219
|
+
},
|
|
1220
|
+
body1: {
|
|
1221
|
+
fontWeight: 400,
|
|
1222
|
+
fontSize: '1rem',
|
|
1223
|
+
lineHeight: '1.5rem',
|
|
1224
|
+
},
|
|
1225
|
+
body2: {
|
|
1226
|
+
fontWeight: 400,
|
|
1227
|
+
fontSize: '0.875rem',
|
|
1228
|
+
lineHeight: '1.25rem',
|
|
1229
|
+
},
|
|
1230
|
+
subtitle1: {
|
|
1231
|
+
fontWeight: 400,
|
|
1232
|
+
fontSize: '0.75rem',
|
|
1233
|
+
lineHeight: '1.125rem',
|
|
1234
|
+
color: '#9E9E9E',
|
|
1235
|
+
},
|
|
1236
|
+
button: {
|
|
1237
|
+
fontWeight: 500,
|
|
1238
|
+
fontSize: '0.875rem',
|
|
1239
|
+
lineHeight: '1.25rem',
|
|
1240
|
+
textTransform: 'capitalize',
|
|
1241
|
+
},
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1249
1244
|
var adminLightOptions = tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign({ themeName: 'Admin Light', palette: tslib.__assign(tslib.__assign(tslib.__assign({}, basePalette), adminLightPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography, overrides: overrides }, adminLightPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
1250
|
-
var adminLight = createTheme(adminLightOptions);
|
|
1245
|
+
var adminLight = core.createTheme(adminLightOptions);
|
|
1251
1246
|
|
|
1252
1247
|
var adminDarkOptions = tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign({ themeName: 'Admin Dark', palette: tslib.__assign(tslib.__assign(tslib.__assign({}, basePalette), adminDarkPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography, overrides: overrides }, adminDarkPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
1253
|
-
var adminDark = createTheme(adminDarkOptions);
|
|
1248
|
+
var adminDark = core.createTheme(adminDarkOptions);
|
|
1254
1249
|
|
|
1255
1250
|
Object.defineProperty(exports, "Dialog", {
|
|
1256
1251
|
enumerable: true,
|