@popmenu/admin-ui 0.126.2 → 0.126.3
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/FullScreenStepper/FullScreenStepperContext.d.ts +2 -2
- package/build/cjs/components/FullScreenStepper/FullScreenStepperProps.d.ts +65 -45
- package/build/cjs/components/FullScreenStepper/index.d.ts +2 -2
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +6 -7
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +3 -3
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +4 -4
- package/build/cjs/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +3 -3
- package/build/cjs/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +2 -2
- package/build/cjs/components/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +4 -5
- package/build/cjs/components/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +3 -3
- package/build/cjs/components/index.d.ts +11 -11
- package/build/cjs/index.js +123 -123
- package/build/cjs/index.js.map +1 -1
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.d.ts +2 -2
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -1
- package/build/esm/components/FullScreenStepper/FullScreenStepperProps.d.ts +65 -45
- package/build/esm/components/FullScreenStepper/index.d.ts +2 -2
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +6 -7
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.d.ts +3 -3
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsCancelButton.js.map +1 -1
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.d.ts +4 -4
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsNextButton.js.map +1 -1
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts +3 -3
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsPreviousButton.js.map +1 -1
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.d.ts +2 -2
- package/build/esm/components/FullScreenStepperActions/util/augmentButtonProps.js.map +1 -1
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderProps.d.ts +4 -5
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +3 -3
- package/build/esm/components/index.d.ts +11 -11
- package/build/esm/index.js +7 -7
- package/package.json +2 -2
- package/build/cjs/components/FullScreenStepper/types/index.d.ts +0 -25
- package/build/esm/components/FullScreenStepper/types/index.d.ts +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export interface FullScreenStepperContextValue extends
|
|
2
|
+
import { ActionBarActionCallbackArgs } from './FullScreenStepperProps';
|
|
3
|
+
export interface FullScreenStepperContextValue extends ActionBarActionCallbackArgs {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}
|
|
6
6
|
export declare const FullScreenStepperContext: import("react").Context<FullScreenStepperContextValue>;
|
|
@@ -1,46 +1,66 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DialogProps } from '@material-ui/core';
|
|
3
3
|
import { ButtonProps } from '../Button';
|
|
4
|
-
|
|
5
|
-
export declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
4
|
+
/** The current active step. Counts up from 1. */
|
|
5
|
+
export declare type StepCursor = number;
|
|
6
|
+
/** An updater function the state controlling which step is active. */
|
|
7
|
+
export declare type SetStepCursor = (step: number) => void;
|
|
8
|
+
/** The total number of steps. */
|
|
9
|
+
export declare type StepCount = number;
|
|
10
|
+
/** The index of the current step in the steps array. */
|
|
11
|
+
export declare type StepIndex = number;
|
|
12
|
+
/** Indicates that the FullScreenStepper is showing the last step in the steps array. */
|
|
13
|
+
export declare type IsFinalStep = boolean;
|
|
14
|
+
export declare type ActionBarActionCallbackArgs = {
|
|
15
|
+
/** The current step object. */
|
|
16
|
+
step: StepperStep;
|
|
17
|
+
/** The total number of steps. */
|
|
18
|
+
stepCount: number;
|
|
19
|
+
/** The index of the current step in the steps array. */
|
|
20
|
+
stepIndex: number;
|
|
21
|
+
/** An updater function the state controlling which step is active. */
|
|
22
|
+
setStepCursor: (cursor: number) => void;
|
|
23
|
+
/** The steps prop that is passed into the FullScreenStepper */
|
|
24
|
+
steps: Array<StepperStep>;
|
|
25
|
+
};
|
|
26
|
+
export declare type ActionBarAction = {
|
|
27
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, callbackArgs: ActionBarActionCallbackArgs) => void;
|
|
28
|
+
props: ButtonProps;
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
export declare type StepperActionBar = {
|
|
32
|
+
/** Custom actions for a given step. Will appear as additional Button components. */
|
|
33
|
+
actions?: Array<ActionBarAction>;
|
|
34
|
+
/** Override for "Cancel" button. */
|
|
35
|
+
cancelButtonProps?: ButtonProps;
|
|
36
|
+
/** Custom text for "Cancel" button. */
|
|
37
|
+
cancelButtonText?: string;
|
|
38
|
+
/** Custom text for "Finish" button. */
|
|
39
|
+
finishButtonText?: string;
|
|
40
|
+
/** Override for "Next" button. */
|
|
41
|
+
nextButtonProps?: ButtonProps;
|
|
42
|
+
/** Custom text for "Next" button. */
|
|
43
|
+
nextButtonText?: string;
|
|
44
|
+
/** Override for "Previous" button. */
|
|
45
|
+
previousButtonProps?: ButtonProps;
|
|
46
|
+
/** Custom text for "Previous" button. */
|
|
47
|
+
previousButtonText?: string;
|
|
48
|
+
/** Text for the optional "Status Text" region. */
|
|
49
|
+
statusText?: string;
|
|
50
|
+
};
|
|
51
|
+
export declare type StepperStep = {
|
|
52
|
+
/** Group of props for modifying the ActionBar region of FullScreenStepper. */
|
|
53
|
+
actionBar?: StepperActionBar;
|
|
54
|
+
/** When false; disables the ActionBar of a step */
|
|
55
|
+
displayActionBar?: boolean;
|
|
56
|
+
/** The name of a given step. Used to match with a provided content component. */
|
|
57
|
+
name: string;
|
|
58
|
+
/** Text displayed as the title of a step. */
|
|
59
|
+
title: string;
|
|
60
|
+
};
|
|
61
|
+
export declare type FullScreenStepperProps = DialogProps & {
|
|
42
62
|
/** Configurations for each step. Modifies elements outside the FullScreenStepper content area. */
|
|
43
|
-
steps: Array<
|
|
63
|
+
steps: Array<StepperStep>;
|
|
44
64
|
/** Will be used to initialize a React context which can be accessed with the useFullScreenStepperHook. */
|
|
45
65
|
context?: Record<string, unknown>;
|
|
46
66
|
/** Specifies which step the dialog will initialize at. */
|
|
@@ -56,13 +76,13 @@ export interface FullScreenStepperProps extends DialogProps {
|
|
|
56
76
|
/** When true; the stepper will update it's internal state to render the first step after a user closes the stepper. */
|
|
57
77
|
resetStepCursorOnClose?: boolean;
|
|
58
78
|
/** Callback triggered when the "Cancel" button is clicked. Called with `step`, `steps`, and `stepIndex`. */
|
|
59
|
-
onCancel?: (args:
|
|
79
|
+
onCancel?: (args: ActionBarActionCallbackArgs) => void;
|
|
60
80
|
/** Callback triggered when the close icon button is clicked. Called with `step`, `steps`, and `stepIndex`. */
|
|
61
|
-
onClose?: (args:
|
|
81
|
+
onClose?: (args: ActionBarActionCallbackArgs) => void;
|
|
62
82
|
/** Callback triggered when the "Finish" button is clicked. Called with `step`, `steps`, and `stepIndex`. */
|
|
63
|
-
onFinish?: (args:
|
|
83
|
+
onFinish?: (args: ActionBarActionCallbackArgs) => void;
|
|
64
84
|
/** Callback triggered when the "Next" button is clicked. Called with `step`, `steps`, and `stepIndex`. */
|
|
65
|
-
onNext?: (args:
|
|
85
|
+
onNext?: (args: ActionBarActionCallbackArgs) => void;
|
|
66
86
|
/** Callback triggered when the "Previous" button is clicked. Called with `step`, `steps`, and `stepIndex`. */
|
|
67
|
-
onPrevious?: (args:
|
|
68
|
-
}
|
|
87
|
+
onPrevious?: (args: ActionBarActionCallbackArgs) => void;
|
|
88
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FullScreenStepper
|
|
1
|
+
export { FullScreenStepper } from './FullScreenStepper';
|
|
2
2
|
export { FullScreenStepperContext, FullScreenStepperContextValue } from './FullScreenStepperContext';
|
|
3
|
-
export
|
|
3
|
+
export * from './FullScreenStepperProps';
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface FullScreenStepperActionsProps extends Partial<FullScreenStepperSubProps.ActionBar> {
|
|
1
|
+
import { ActionBarActionCallbackArgs, SetStepCursor, StepCount, StepCursor, StepperActionBar } from '../FullScreenStepper/FullScreenStepperProps';
|
|
2
|
+
export interface FullScreenStepperActionsProps extends Partial<StepperActionBar> {
|
|
4
3
|
/** The callback args for custom actions */
|
|
5
|
-
callbackArgs:
|
|
4
|
+
callbackArgs: ActionBarActionCallbackArgs;
|
|
6
5
|
/** When false; hides the "Cancel" button */
|
|
7
6
|
displayCancelButton: boolean;
|
|
8
7
|
/** When false; hides the "Previous" button */
|
|
9
8
|
displayPreviousButton: boolean;
|
|
10
9
|
/** The total number of steps */
|
|
11
|
-
stepCount:
|
|
10
|
+
stepCount: StepCount;
|
|
12
11
|
/** The current value of step cursor */
|
|
13
|
-
stepCursor:
|
|
12
|
+
stepCursor: StepCursor;
|
|
14
13
|
/** The setter for value of step cursor */
|
|
15
|
-
setStepCursor:
|
|
14
|
+
setStepCursor: SetStepCursor;
|
|
16
15
|
/** Callback triggered when the "Cancel" button is clicked. */
|
|
17
16
|
handleCancelClick?: () => Promise<void>;
|
|
18
17
|
/** Callback triggered when the "Next" button is clicked. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FullScreenStepperTypes } from '../../FullScreenStepper/types';
|
|
2
1
|
import { FC } from 'react';
|
|
3
2
|
import { ButtonProps } from '../../Button';
|
|
3
|
+
import { SetStepCursor, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps';
|
|
4
4
|
export declare const StepperActionsCancelButton: FC<{
|
|
5
|
-
setStepCursor:
|
|
6
|
-
stepCursor:
|
|
5
|
+
setStepCursor: SetStepCursor;
|
|
6
|
+
stepCursor: StepCursor;
|
|
7
7
|
cancelButtonText?: string;
|
|
8
8
|
cancelButtonProps?: ButtonProps;
|
|
9
9
|
handleCancelClick?: () => Promise<void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FullScreenStepperTypes } from '../../FullScreenStepper/types';
|
|
2
1
|
import { FC } from 'react';
|
|
3
2
|
import { ButtonProps } from '../../Button';
|
|
3
|
+
import { SetStepCursor, StepCount, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps';
|
|
4
4
|
export declare const StepperActionsNextButton: FC<{
|
|
5
5
|
handleNextClick: () => Promise<void>;
|
|
6
6
|
nextButtonProps?: ButtonProps;
|
|
7
|
-
setStepCursor:
|
|
8
|
-
stepCursor:
|
|
9
|
-
stepCount:
|
|
7
|
+
setStepCursor: SetStepCursor;
|
|
8
|
+
stepCursor: StepCursor;
|
|
9
|
+
stepCount: StepCount;
|
|
10
10
|
finishButtonText?: string;
|
|
11
11
|
nextButtonText?: string;
|
|
12
12
|
}>;
|
package/build/cjs/components/FullScreenStepperActions/util/StepperActionsPreviousButton.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FullScreenStepperTypes } from '../../FullScreenStepper/types';
|
|
2
1
|
import { FC } from 'react';
|
|
3
2
|
import { ButtonProps } from '../../Button';
|
|
3
|
+
import { SetStepCursor, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps';
|
|
4
4
|
export declare const StepperActionsPreviousButton: FC<{
|
|
5
5
|
previousButtonText?: string;
|
|
6
|
-
stepCursor:
|
|
6
|
+
stepCursor: StepCursor;
|
|
7
7
|
handlePreviousClick: () => Promise<void>;
|
|
8
8
|
previousButtonProps?: ButtonProps;
|
|
9
|
-
setStepCursor:
|
|
9
|
+
setStepCursor: SetStepCursor;
|
|
10
10
|
displayPreviousButton: boolean;
|
|
11
11
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FullScreenStepperTypes } from '../../FullScreenStepper/types';
|
|
2
1
|
import { ButtonProps } from '../../Button';
|
|
2
|
+
import { SetStepCursor, StepCursor } from '../../FullScreenStepper/FullScreenStepperProps';
|
|
3
3
|
export declare const augmentButtonProps: (internalProps: {
|
|
4
4
|
onClick?: () => Promise<void>;
|
|
5
|
-
}, externalProps: ButtonProps<"button"> | undefined, setStepCursor:
|
|
5
|
+
}, externalProps: ButtonProps<"button"> | undefined, setStepCursor: SetStepCursor, stepCursor: StepCursor, incrementor: number) => ButtonProps;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FullScreenStepperSubProps } from '../FullScreenStepper/FullScreenStepperProps';
|
|
1
|
+
import { StepCount, StepCursor, StepperStep } from '../FullScreenStepper/FullScreenStepperProps';
|
|
3
2
|
export interface FullScreenStepperHeaderProps {
|
|
4
|
-
stepCursor:
|
|
5
|
-
stepCount:
|
|
6
|
-
step:
|
|
3
|
+
stepCursor: StepCursor;
|
|
4
|
+
stepCount: StepCount;
|
|
5
|
+
step: StepperStep;
|
|
7
6
|
onClose: () => void;
|
|
8
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StepCount, StepCursor } from '../FullScreenStepper/FullScreenStepperProps';
|
|
2
2
|
export interface FullScreenStepperProgressProps {
|
|
3
|
-
stepCursor:
|
|
4
|
-
stepCount:
|
|
3
|
+
stepCursor: StepCursor;
|
|
4
|
+
stepCount: StepCount;
|
|
5
5
|
}
|
|
@@ -4,24 +4,24 @@ export { default as AlertDialogHeader } from './AlertDialogHeader';
|
|
|
4
4
|
export { default as AlertTitle, AlertTitleProps } from './AlertTitle';
|
|
5
5
|
export { default as Button, ButtonProps } from './Button';
|
|
6
6
|
export { default as ButtonGroup, ButtonGroupProps } from './ButtonGroup';
|
|
7
|
+
export { Dialog, DialogProps } from './Dialog';
|
|
8
|
+
export { DialogActions, DialogActionsProps } from './DialogActions';
|
|
9
|
+
export { DialogContent, DialogContentProps } from './DialogContent';
|
|
10
|
+
export { DialogTitle, DialogTitleProps } from './DialogTitle';
|
|
7
11
|
export { default as FeatureIntro, FeatureIntroProps } from './FeatureIntro';
|
|
8
|
-
export
|
|
12
|
+
export * from './FullScreenStepper';
|
|
9
13
|
export { default as FullScreenStepperActions, FullScreenStepperActionsProps } from './FullScreenStepperActions';
|
|
10
14
|
export { default as FullScreenStepperContent } from './FullScreenStepperContent';
|
|
11
|
-
export {
|
|
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';
|
|
15
|
+
export { List, ListProps } from './List';
|
|
17
16
|
export { Page } from './Page';
|
|
18
17
|
export { PageBody } from './PageBody';
|
|
19
18
|
export { PageSection } from './PageSection';
|
|
20
|
-
export { PageSections } from './PageSections';
|
|
21
19
|
export { PageSectionHead } from './PageSectionHead';
|
|
20
|
+
export { PageSections } from './PageSections';
|
|
22
21
|
export { PageSectionTitle } from './PageSectionTitle';
|
|
23
|
-
export {
|
|
22
|
+
export { default as SelectableCard, SelectableCardProps } from './SelectableCard';
|
|
24
23
|
export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
|
|
25
|
-
export {
|
|
24
|
+
export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
26
25
|
export { StandardListItem, StandardListItemProps } from './StandardListItem';
|
|
27
|
-
export {
|
|
26
|
+
export { default as Toast, ToastProps } from './Toast';
|
|
27
|
+
export { CircularProgress, CircularProgressProps, MenuItem, MenuItemProps, Switch, SwitchProps, TextField, TextFieldProps, } from '@material-ui/core';
|
package/build/cjs/index.js
CHANGED
|
@@ -338,6 +338,19 @@ var ButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
338
338
|
});
|
|
339
339
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
340
340
|
|
|
341
|
+
var useStyles$4 = core.makeStyles(function (_a) {
|
|
342
|
+
var palette = _a.palette;
|
|
343
|
+
return ({
|
|
344
|
+
root: {
|
|
345
|
+
background: palette.grey['100'],
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
var DialogActions = function (props) {
|
|
350
|
+
var classes = useStyles$4(props);
|
|
351
|
+
return React.createElement(commonUi.DialogActions, tslib.__assign({ classes: classes }, props));
|
|
352
|
+
};
|
|
353
|
+
|
|
341
354
|
var useFeatureIntroStyles = core.makeStyles(function (_a) {
|
|
342
355
|
var spacing = _a.spacing;
|
|
343
356
|
return ({
|
|
@@ -429,14 +442,14 @@ var StepperActionsPreviousButton = function (props) {
|
|
|
429
442
|
return displayPreviousButton ? (React.createElement(Button, tslib.__assign({ variant: "tertiary", disabled: stepCursor === 1 }, augmentedPreviousButtonProps), previousButtonText || 'previous')) : null;
|
|
430
443
|
};
|
|
431
444
|
|
|
432
|
-
var useStyles$
|
|
445
|
+
var useStyles$3 = core.makeStyles({
|
|
433
446
|
root: {
|
|
434
447
|
fontStyle: 'italic',
|
|
435
448
|
},
|
|
436
449
|
});
|
|
437
450
|
var StepperActionsStatusText = function (props) {
|
|
438
451
|
var statusText = props.statusText;
|
|
439
|
-
var classes = useStyles$
|
|
452
|
+
var classes = useStyles$3(props);
|
|
440
453
|
return statusText ? (React.createElement(commonUi.Typography, { classes: { root: classes.root }, variant: "body2" }, statusText)) : null;
|
|
441
454
|
};
|
|
442
455
|
|
|
@@ -646,98 +659,31 @@ var FullScreenStepperContent = function (props) {
|
|
|
646
659
|
return (React.createElement(commonUi.Box, tslib.__assign({ py: 8 }, boxProps), props.children));
|
|
647
660
|
};
|
|
648
661
|
|
|
649
|
-
var
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
root: {
|
|
655
|
-
position: 'relative',
|
|
656
|
-
border: function (_a) {
|
|
657
|
-
var selected = _a.selected;
|
|
658
|
-
return (selected ? "1px solid " + info.light : "1px solid " + grey[700]);
|
|
659
|
-
},
|
|
660
|
-
backgroundColor: function (_a) {
|
|
661
|
-
var selected = _a.selected;
|
|
662
|
-
return (selected ? selectedBackgroundColor : backgroundColor);
|
|
663
|
-
},
|
|
664
|
-
color: function (_a) {
|
|
665
|
-
var selected = _a.selected;
|
|
666
|
-
return (selected ? getContrastText(selectedBackgroundColor) : getContrastText(backgroundColor));
|
|
667
|
-
},
|
|
668
|
-
transition: 'none',
|
|
669
|
-
},
|
|
670
|
-
cardContent: {
|
|
671
|
-
display: 'flex',
|
|
672
|
-
flexDirection: 'column',
|
|
673
|
-
alignItems: 'center',
|
|
674
|
-
justifyContent: 'center',
|
|
675
|
-
marginTop: spacing(2.5),
|
|
676
|
-
},
|
|
677
|
-
icon: {
|
|
678
|
-
position: 'absolute',
|
|
679
|
-
top: spacing(2),
|
|
680
|
-
left: spacing(2),
|
|
681
|
-
color: function (_a) {
|
|
682
|
-
var selected = _a.selected;
|
|
683
|
-
return (selected ? info.main : grey[700]);
|
|
684
|
-
},
|
|
662
|
+
var useStyles$2 = core.makeStyles(function (theme) { return ({
|
|
663
|
+
root: {
|
|
664
|
+
'&$uncontained > li > *:first-child': {
|
|
665
|
+
background: theme.palette.background.paper,
|
|
666
|
+
borderRadius: theme.spacing(1),
|
|
685
667
|
},
|
|
686
|
-
|
|
687
|
-
|
|
668
|
+
'& > li > *:first-child': {
|
|
669
|
+
borderBottom: "1px solid " + theme.palette.grey[300],
|
|
688
670
|
},
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
var SelectableCard = function (props) {
|
|
693
|
-
var children = props.children, selectedProp = props.selected, _a = props.selection, selection = _a === void 0 ? [] : _a, onClick = props.onClick, value = props.value, labelId = props.labelId, CardActionAreaProps = props.CardActionAreaProps, muiProps = tslib.__rest(props, ["children", "selected", "selection", "onClick", "value", "labelId", "CardActionAreaProps"]);
|
|
694
|
-
var selected = typeof selectedProp === 'boolean' ? selectedProp : selection.includes(value);
|
|
695
|
-
var classes = useSelectableCardStyles(tslib.__assign(tslib.__assign({}, props), { selected: selected }));
|
|
696
|
-
var handleClick = function () {
|
|
697
|
-
onClick(value);
|
|
698
|
-
};
|
|
699
|
-
return (React.createElement(commonUi.Card, tslib.__assign({ classes: { root: classes.root } }, muiProps),
|
|
700
|
-
React.createElement(commonUi.CardActionArea, tslib.__assign({ onClick: handleClick, classes: { focusHighlight: classes.focusHighlight }, role: "checkbox", "aria-checked": selected, "aria-labelledby": labelId }, CardActionAreaProps),
|
|
701
|
-
React.createElement(commonUi.Icon, { className: classes.icon, icon: selected ? webIcons.CheckCircle : webIcons.Circle, size: "medium" }),
|
|
702
|
-
React.createElement(commonUi.CardContent, { classes: { root: classes.cardContent } }, children))));
|
|
703
|
-
};
|
|
704
|
-
SelectableCard.displayName = 'SelectableCard';
|
|
705
|
-
|
|
706
|
-
var useToastStyles = core.makeStyles(function (theme) { return ({
|
|
707
|
-
root: {
|
|
708
|
-
boxSizing: 'border-box',
|
|
709
|
-
padding: theme.spacing(0, 1.5),
|
|
710
|
-
/** TODO: design to define responsive width value. */
|
|
711
|
-
width: '350px',
|
|
712
|
-
'& > div:first-child': {
|
|
713
|
-
alignItems: 'center',
|
|
671
|
+
'& > li:last-child > *:first-child': {
|
|
672
|
+
borderBottom: 'none',
|
|
714
673
|
},
|
|
715
674
|
},
|
|
675
|
+
uncontained: {
|
|
676
|
+
display: 'flex',
|
|
677
|
+
flexDirection: 'column',
|
|
678
|
+
gap: 16,
|
|
679
|
+
},
|
|
716
680
|
}); });
|
|
717
681
|
|
|
718
|
-
var
|
|
719
|
-
var
|
|
720
|
-
var
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
};
|
|
724
|
-
Toast.defaultProps = {
|
|
725
|
-
AlertProps: {},
|
|
726
|
-
autoHideDuration: 5000,
|
|
727
|
-
};
|
|
728
|
-
Toast.displayName = 'Toast';
|
|
729
|
-
|
|
730
|
-
var useStyles$3 = core.makeStyles(function (_a) {
|
|
731
|
-
var palette = _a.palette;
|
|
732
|
-
return ({
|
|
733
|
-
root: {
|
|
734
|
-
background: palette.grey['100'],
|
|
735
|
-
},
|
|
736
|
-
});
|
|
737
|
-
});
|
|
738
|
-
var DialogActions = function (props) {
|
|
739
|
-
var classes = useStyles$3(props);
|
|
740
|
-
return React.createElement(commonUi.DialogActions, tslib.__assign({ classes: classes }, props));
|
|
682
|
+
var List = function (props) {
|
|
683
|
+
var _a;
|
|
684
|
+
var children = props.children, uncontained = props.uncontained, className = props.className, restProps = tslib.__rest(props, ["children", "uncontained", "className"]);
|
|
685
|
+
var classes = useStyles$2(props);
|
|
686
|
+
return (React.createElement(core.List, tslib.__assign({ classes: classes, className: classNames((_a = {}, _a[classes.uncontained] = uncontained, _a), className) }, restProps), children));
|
|
741
687
|
};
|
|
742
688
|
|
|
743
689
|
var Page = function (props) {
|
|
@@ -773,18 +719,18 @@ var PageSection = React.forwardRef(function (props, ref) {
|
|
|
773
719
|
});
|
|
774
720
|
PageSection.displayName = 'PageSection';
|
|
775
721
|
|
|
776
|
-
var PageSections = function (props) {
|
|
777
|
-
var children = props.children, restProps = tslib.__rest(props, ["children"]);
|
|
778
|
-
return (React.createElement(commonUi.Box, tslib.__assign({ display: "flex", flexDirection: "column", gridGap: 16 }, restProps), children));
|
|
779
|
-
};
|
|
780
|
-
|
|
781
722
|
var PageSectionHead = function (props) {
|
|
782
723
|
var children = props.children, restProps = tslib.__rest(props, ["children"]);
|
|
783
724
|
var theme = core.useTheme();
|
|
784
725
|
return (React.createElement(commonUi.Box, tslib.__assign({ fontSize: theme.typography.h5.fontSize, mb: "1em", display: "flex", justifyContent: "space-between" }, restProps), children));
|
|
785
726
|
};
|
|
786
727
|
|
|
787
|
-
var
|
|
728
|
+
var PageSections = function (props) {
|
|
729
|
+
var children = props.children, restProps = tslib.__rest(props, ["children"]);
|
|
730
|
+
return (React.createElement(commonUi.Box, tslib.__assign({ display: "flex", flexDirection: "column", gridGap: 16 }, restProps), children));
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
var useStyles$1 = core.makeStyles(function () { return ({
|
|
788
734
|
gutterBottom: {
|
|
789
735
|
marginBottom: '1em',
|
|
790
736
|
},
|
|
@@ -792,14 +738,66 @@ var useStyles$2 = core.makeStyles(function () { return ({
|
|
|
792
738
|
|
|
793
739
|
var PageSectionTitle = function (props) {
|
|
794
740
|
var children = props.children, restProps = tslib.__rest(props, ["children"]);
|
|
795
|
-
var classes = useStyles$
|
|
741
|
+
var classes = useStyles$1();
|
|
796
742
|
return (React.createElement(commonUi.Typography, tslib.__assign({ classes: classes, gutterBottom: true, variant: "h5" }, restProps), children));
|
|
797
743
|
};
|
|
798
744
|
|
|
799
|
-
var
|
|
800
|
-
var
|
|
801
|
-
|
|
745
|
+
var useSelectableCardStyles = core.makeStyles(function (theme) {
|
|
746
|
+
var _a = theme.palette, info = _a.info, grey = _a.grey, getContrastText = _a.getContrastText, spacing = theme.spacing;
|
|
747
|
+
var selectedBackgroundColor = core.lighten(theme.palette.info.light, 0.9);
|
|
748
|
+
var backgroundColor = theme.palette.surface.light;
|
|
749
|
+
return {
|
|
750
|
+
root: {
|
|
751
|
+
position: 'relative',
|
|
752
|
+
border: function (_a) {
|
|
753
|
+
var selected = _a.selected;
|
|
754
|
+
return (selected ? "1px solid " + info.light : "1px solid " + grey[700]);
|
|
755
|
+
},
|
|
756
|
+
backgroundColor: function (_a) {
|
|
757
|
+
var selected = _a.selected;
|
|
758
|
+
return (selected ? selectedBackgroundColor : backgroundColor);
|
|
759
|
+
},
|
|
760
|
+
color: function (_a) {
|
|
761
|
+
var selected = _a.selected;
|
|
762
|
+
return (selected ? getContrastText(selectedBackgroundColor) : getContrastText(backgroundColor));
|
|
763
|
+
},
|
|
764
|
+
transition: 'none',
|
|
765
|
+
},
|
|
766
|
+
cardContent: {
|
|
767
|
+
display: 'flex',
|
|
768
|
+
flexDirection: 'column',
|
|
769
|
+
alignItems: 'center',
|
|
770
|
+
justifyContent: 'center',
|
|
771
|
+
marginTop: spacing(2.5),
|
|
772
|
+
},
|
|
773
|
+
icon: {
|
|
774
|
+
position: 'absolute',
|
|
775
|
+
top: spacing(2),
|
|
776
|
+
left: spacing(2),
|
|
777
|
+
color: function (_a) {
|
|
778
|
+
var selected = _a.selected;
|
|
779
|
+
return (selected ? info.main : grey[700]);
|
|
780
|
+
},
|
|
781
|
+
},
|
|
782
|
+
focusHighlight: {
|
|
783
|
+
backgroundColor: 'inherit',
|
|
784
|
+
},
|
|
785
|
+
};
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
var SelectableCard = function (props) {
|
|
789
|
+
var children = props.children, selectedProp = props.selected, _a = props.selection, selection = _a === void 0 ? [] : _a, onClick = props.onClick, value = props.value, labelId = props.labelId, CardActionAreaProps = props.CardActionAreaProps, muiProps = tslib.__rest(props, ["children", "selected", "selection", "onClick", "value", "labelId", "CardActionAreaProps"]);
|
|
790
|
+
var selected = typeof selectedProp === 'boolean' ? selectedProp : selection.includes(value);
|
|
791
|
+
var classes = useSelectableCardStyles(tslib.__assign(tslib.__assign({}, props), { selected: selected }));
|
|
792
|
+
var handleClick = function () {
|
|
793
|
+
onClick(value);
|
|
794
|
+
};
|
|
795
|
+
return (React.createElement(commonUi.Card, tslib.__assign({ classes: { root: classes.root } }, muiProps),
|
|
796
|
+
React.createElement(commonUi.CardActionArea, tslib.__assign({ onClick: handleClick, classes: { focusHighlight: classes.focusHighlight }, role: "checkbox", "aria-checked": selected, "aria-labelledby": labelId }, CardActionAreaProps),
|
|
797
|
+
React.createElement(commonUi.Icon, { className: classes.icon, icon: selected ? webIcons.CheckCircle : webIcons.Circle, size: "medium" }),
|
|
798
|
+
React.createElement(commonUi.CardContent, { classes: { root: classes.cardContent } }, children))));
|
|
802
799
|
};
|
|
800
|
+
SelectableCard.displayName = 'SelectableCard';
|
|
803
801
|
|
|
804
802
|
var useSettingsIndexCardStyles = core.makeStyles(function (theme) { return ({
|
|
805
803
|
cardRoot: {
|
|
@@ -834,31 +832,9 @@ var SettingsIndexCard = React.forwardRef(function (props, ref) {
|
|
|
834
832
|
});
|
|
835
833
|
SettingsIndexCard.displayName = 'SettingsIndexCard';
|
|
836
834
|
|
|
837
|
-
var
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
background: theme.palette.background.paper,
|
|
841
|
-
borderRadius: theme.spacing(1),
|
|
842
|
-
},
|
|
843
|
-
'& > li > *:first-child': {
|
|
844
|
-
borderBottom: "1px solid " + theme.palette.grey[300],
|
|
845
|
-
},
|
|
846
|
-
'& > li:last-child > *:first-child': {
|
|
847
|
-
borderBottom: 'none',
|
|
848
|
-
},
|
|
849
|
-
},
|
|
850
|
-
uncontained: {
|
|
851
|
-
display: 'flex',
|
|
852
|
-
flexDirection: 'column',
|
|
853
|
-
gap: 16,
|
|
854
|
-
},
|
|
855
|
-
}); });
|
|
856
|
-
|
|
857
|
-
var List = function (props) {
|
|
858
|
-
var _a;
|
|
859
|
-
var children = props.children, uncontained = props.uncontained, className = props.className, restProps = tslib.__rest(props, ["children", "uncontained", "className"]);
|
|
860
|
-
var classes = useStyles$1(props);
|
|
861
|
-
return (React.createElement(core.List, tslib.__assign({ classes: classes, className: classNames((_a = {}, _a[classes.uncontained] = uncontained, _a), className) }, restProps), children));
|
|
835
|
+
var SettingsIndexCardGroup = function (props) {
|
|
836
|
+
var children = props.children, restProps = tslib.__rest(props, ["children"]);
|
|
837
|
+
return (React.createElement(commonUi.Box, tslib.__assign({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))" }, restProps), children));
|
|
862
838
|
};
|
|
863
839
|
|
|
864
840
|
var useStyles = core.makeStyles(function (theme) { return ({
|
|
@@ -894,6 +870,30 @@ var StandardListItem = function (props) {
|
|
|
894
870
|
React.createElement(commonUi.Icon, { icon: secondaryAction.Icon }))))));
|
|
895
871
|
};
|
|
896
872
|
|
|
873
|
+
var useToastStyles = core.makeStyles(function (theme) { return ({
|
|
874
|
+
root: {
|
|
875
|
+
boxSizing: 'border-box',
|
|
876
|
+
padding: theme.spacing(0, 1.5),
|
|
877
|
+
/** TODO: design to define responsive width value. */
|
|
878
|
+
width: '350px',
|
|
879
|
+
'& > div:first-child': {
|
|
880
|
+
alignItems: 'center',
|
|
881
|
+
},
|
|
882
|
+
},
|
|
883
|
+
}); });
|
|
884
|
+
|
|
885
|
+
var Toast = function (props) {
|
|
886
|
+
var children = props.children, AlertProps = props.AlertProps, severity = props.severity, muiProps = tslib.__rest(props, ["children", "AlertProps", "severity"]);
|
|
887
|
+
var classes = useToastStyles(props);
|
|
888
|
+
return (React.createElement(core.Snackbar, tslib.__assign({ ClickAwayListenerProps: { mouseEvent: false } }, muiProps),
|
|
889
|
+
React.createElement(Alert, tslib.__assign({ className: classes.root, action: null, severity: severity }, AlertProps), children)));
|
|
890
|
+
};
|
|
891
|
+
Toast.defaultProps = {
|
|
892
|
+
AlertProps: {},
|
|
893
|
+
autoHideDuration: 5000,
|
|
894
|
+
};
|
|
895
|
+
Toast.displayName = 'Toast';
|
|
896
|
+
|
|
897
897
|
var useFullScreenStepperContext = function () { return React.useContext(FullScreenStepperContext); };
|
|
898
898
|
|
|
899
899
|
/**
|