@popmenu/admin-ui 0.126.1 → 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/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 +88 -0
- package/build/cjs/components/FullScreenStepper/index.d.ts +3 -0
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActions.d.ts +3 -0
- package/build/cjs/components/FullScreenStepperActions/FullScreenStepperActionsProps.d.ts +21 -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 +7 -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} +260 -265
- 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/FullScreenStepperContext.d.ts +2 -2
- package/build/esm/components/FullScreenStepper/FullScreenStepperContext.js.map +1 -1
- package/build/esm/components/FullScreenStepper/FullScreenStepperProps.d.ts +66 -46
- 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/FullScreenStepperActionsStyles.js +1 -1
- package/build/esm/components/FullScreenStepperActions/FullScreenStepperActionsStyles.js.map +1 -1
- 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/StepperActionsStatusText.js +1 -1
- package/build/esm/components/FullScreenStepperActions/util/StepperActionsStatusText.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/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js +1 -1
- package/build/esm/components/FullScreenStepperHeader/FullScreenStepperHeaderStyles.js.map +1 -1
- package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressProps.d.ts +3 -3
- 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/components/index.d.ts +11 -11
- package/build/esm/index.js +7 -7
- 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/esm/components/FullScreenStepper/types/index.d.ts +0 -25
- package/build/index.js.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These theme properties should be considered legacy. Make efforts to avoid new usage as well as refactor out existing
|
|
3
|
+
* usage.
|
|
4
|
+
*/
|
|
5
|
+
export declare const adminLightPlaceholder: {
|
|
6
|
+
placeholder: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const adminDarkPlaceholder: {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const adminThemeStatus: {
|
|
12
|
+
status: {
|
|
13
|
+
disabled: {
|
|
14
|
+
opacity: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const BASE_Z_INDEX = 1100000;
|
|
19
|
+
export declare const adminThemeZIndex: {
|
|
20
|
+
zIndex: {
|
|
21
|
+
mobileStepper: number;
|
|
22
|
+
appBar: number;
|
|
23
|
+
drawer: number;
|
|
24
|
+
modal: number;
|
|
25
|
+
snackbar: number;
|
|
26
|
+
tooltip: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/** The defaults for MuiInputBase and MuiInputLabel can be removed once the BasicForm & 'shared' inputs have either:
|
|
30
|
+
* 1. been refactored to use secondary color.
|
|
31
|
+
* 2. been replaced with new common components.
|
|
32
|
+
*
|
|
33
|
+
* props as imported from './props' are part updated design system.
|
|
34
|
+
*/
|
|
35
|
+
export declare const adminThemeDefaultProps: {
|
|
36
|
+
props: {
|
|
37
|
+
MuiCard: {
|
|
38
|
+
elevation: number;
|
|
39
|
+
};
|
|
40
|
+
MuiTooltip: {
|
|
41
|
+
title: string;
|
|
42
|
+
placement: string;
|
|
43
|
+
};
|
|
44
|
+
MuiPaper: {
|
|
45
|
+
elevation: number;
|
|
46
|
+
};
|
|
47
|
+
MuiAppBar: {
|
|
48
|
+
position: string;
|
|
49
|
+
};
|
|
50
|
+
MuiInputBase: {
|
|
51
|
+
color: string;
|
|
52
|
+
};
|
|
53
|
+
MuiInputLabel: {
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
MuiSwitch: {
|
|
57
|
+
color: string;
|
|
58
|
+
};
|
|
59
|
+
MuiTextField: {
|
|
60
|
+
variant: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const overrides: {
|
|
2
|
+
MuiCssBaseline: {
|
|
3
|
+
'@global': {
|
|
4
|
+
'*::-webkit-scrollbar': {
|
|
5
|
+
width: string;
|
|
6
|
+
};
|
|
7
|
+
'*::-webkit-scrollbar-thumb': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
border: string;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
};
|
|
12
|
+
'*::-webkit-scrollbar-track': {
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
MuiSwitch: {
|
|
19
|
+
checked: {};
|
|
20
|
+
track: {};
|
|
21
|
+
switchBase: {
|
|
22
|
+
'&$checked': {
|
|
23
|
+
color: string;
|
|
24
|
+
'& + $track': {
|
|
25
|
+
background: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export declare const basePalette: {
|
|
2
|
+
/** Semantic Colors */
|
|
3
|
+
primary: {
|
|
4
|
+
light: string;
|
|
5
|
+
main: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
contrastText: string;
|
|
8
|
+
gradientStart: string;
|
|
9
|
+
gradientEnd: string;
|
|
10
|
+
};
|
|
11
|
+
info: {
|
|
12
|
+
light: string;
|
|
13
|
+
main: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
};
|
|
16
|
+
success: {
|
|
17
|
+
light: string;
|
|
18
|
+
main: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
contrastText: string;
|
|
21
|
+
};
|
|
22
|
+
error: {
|
|
23
|
+
light: string;
|
|
24
|
+
main: string;
|
|
25
|
+
dark: string;
|
|
26
|
+
};
|
|
27
|
+
warning: {
|
|
28
|
+
light: string;
|
|
29
|
+
main: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
};
|
|
32
|
+
/** Colors */
|
|
33
|
+
blue: {
|
|
34
|
+
light: string;
|
|
35
|
+
main: string;
|
|
36
|
+
dark: string;
|
|
37
|
+
darker: string;
|
|
38
|
+
};
|
|
39
|
+
green: {
|
|
40
|
+
light: string;
|
|
41
|
+
main: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
};
|
|
44
|
+
purple: {
|
|
45
|
+
light: string;
|
|
46
|
+
main: string;
|
|
47
|
+
dark: string;
|
|
48
|
+
};
|
|
49
|
+
red: {
|
|
50
|
+
light: string;
|
|
51
|
+
main: string;
|
|
52
|
+
dark: string;
|
|
53
|
+
};
|
|
54
|
+
yellow: {
|
|
55
|
+
light: string;
|
|
56
|
+
main: string;
|
|
57
|
+
dark: string;
|
|
58
|
+
};
|
|
59
|
+
gray: {
|
|
60
|
+
light: string;
|
|
61
|
+
main: string;
|
|
62
|
+
dark: string;
|
|
63
|
+
};
|
|
64
|
+
white: {
|
|
65
|
+
main: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const adminLightPalette: {
|
|
69
|
+
type: string;
|
|
70
|
+
/** Semantic Colors */
|
|
71
|
+
secondary: {
|
|
72
|
+
light: string;
|
|
73
|
+
main: string;
|
|
74
|
+
dark: string;
|
|
75
|
+
};
|
|
76
|
+
surface: {
|
|
77
|
+
light: string;
|
|
78
|
+
main: string;
|
|
79
|
+
dark: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const adminDarkPalette: {
|
|
83
|
+
type: string;
|
|
84
|
+
/** Semantic Colors */
|
|
85
|
+
secondary: {
|
|
86
|
+
light: string;
|
|
87
|
+
main: string;
|
|
88
|
+
};
|
|
89
|
+
surface: {
|
|
90
|
+
light: string;
|
|
91
|
+
main: string;
|
|
92
|
+
dark: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export declare const dataVizPalette: {
|
|
96
|
+
data: {
|
|
97
|
+
blue: {
|
|
98
|
+
light: string;
|
|
99
|
+
main: string;
|
|
100
|
+
dark: string;
|
|
101
|
+
};
|
|
102
|
+
peach: {
|
|
103
|
+
light: string;
|
|
104
|
+
main: string;
|
|
105
|
+
dark: string;
|
|
106
|
+
};
|
|
107
|
+
pink: {
|
|
108
|
+
light: string;
|
|
109
|
+
main: string;
|
|
110
|
+
dark: string;
|
|
111
|
+
};
|
|
112
|
+
purple: {
|
|
113
|
+
light: string;
|
|
114
|
+
main: string;
|
|
115
|
+
dark: string;
|
|
116
|
+
};
|
|
117
|
+
marigold: {
|
|
118
|
+
light: string;
|
|
119
|
+
main: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
};
|
|
122
|
+
teal: {
|
|
123
|
+
light: string;
|
|
124
|
+
main: string;
|
|
125
|
+
dark: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const adminThemeTypography: {
|
|
2
|
+
htmlFontSize: number;
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
h1: {
|
|
5
|
+
fontWeight: number;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
lineHeight: string;
|
|
8
|
+
};
|
|
9
|
+
h2: {
|
|
10
|
+
fontWeight: number;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
};
|
|
14
|
+
h3: {
|
|
15
|
+
fontWeight: number;
|
|
16
|
+
fontSize: string;
|
|
17
|
+
lineHeight: string;
|
|
18
|
+
};
|
|
19
|
+
h4: {
|
|
20
|
+
fontWeight: number;
|
|
21
|
+
fontSize: string;
|
|
22
|
+
lineHeight: string;
|
|
23
|
+
};
|
|
24
|
+
h5: {
|
|
25
|
+
fontWeight: number;
|
|
26
|
+
fontSize: string;
|
|
27
|
+
lineHeight: string;
|
|
28
|
+
};
|
|
29
|
+
h6: {
|
|
30
|
+
fontWeight: number;
|
|
31
|
+
fontSize: string;
|
|
32
|
+
lineHeight: string;
|
|
33
|
+
};
|
|
34
|
+
h7: {
|
|
35
|
+
fontWeight: number;
|
|
36
|
+
fontSize: string;
|
|
37
|
+
lineHeight: string;
|
|
38
|
+
};
|
|
39
|
+
body1: {
|
|
40
|
+
fontWeight: number;
|
|
41
|
+
fontSize: string;
|
|
42
|
+
lineHeight: string;
|
|
43
|
+
};
|
|
44
|
+
body2: {
|
|
45
|
+
fontWeight: number;
|
|
46
|
+
fontSize: string;
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
};
|
|
49
|
+
subtitle1: {
|
|
50
|
+
fontWeight: number;
|
|
51
|
+
fontSize: string;
|
|
52
|
+
lineHeight: string;
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
55
|
+
button: {
|
|
56
|
+
fontWeight: number;
|
|
57
|
+
fontSize: string;
|
|
58
|
+
lineHeight: string;
|
|
59
|
+
textTransform: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertStyles.js","sources":["../../../../src/components/Alert/AlertStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core
|
|
1
|
+
{"version":3,"file":"AlertStyles.js","sources":["../../../../src/components/Alert/AlertStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialogStyles.js","sources":["../../../../src/components/AlertDialog/AlertDialogStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core
|
|
1
|
+
{"version":3,"file":"AlertDialogStyles.js","sources":["../../../../src/components/AlertDialog/AlertDialogStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { AlertDialogProps } from './AlertDialogProps'\n\nexport const useAlertDialogStyles = makeStyles<\n Theme,\n AlertDialogProps,\n 'cancelButton' | 'cancelIcon' | 'card' | 'cardActions' | 'icon' | 'root'\n>((theme) => ({\n cancelButton: {\n color: theme.palette.grey[700],\n },\n cancelIcon: {\n position: 'absolute',\n right: theme.spacing(1),\n top: theme.spacing(2),\n },\n card: {\n borderRadius: theme.spacing(0.75),\n borderTop: (props) => `${theme.spacing(1.25)}px solid ${theme.palette[props.severity || 'info'].main}`,\n },\n cardActions: {\n background: theme.palette.grey[100],\n justifyContent: 'flex-end',\n },\n icon: {\n fontSize: theme.spacing(5),\n },\n root: {\n borderRadius: theme.spacing(0.75),\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,oBAAoB,GAAG,UAAU,CAI5C,UAAC,KAAK,EAAK,EAAA,QAAC;AACZ,IAAA,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AAC/B,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACvB,QAAA,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACtB,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACjC,SAAS,EAAE,UAAC,KAAK,EAAK,EAAA,OAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAA,WAAA,GAAY,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,IAAM,CAAA,EAAA;AACvG,KAAA;AACD,IAAA,WAAW,EAAE;QACX,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;AACnC,QAAA,cAAc,EAAE,UAAU;AAC3B,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;AAClC,KAAA;CACF,EAAC,EAAA;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import { AlertTitle as AlertTitle$1 } from '@material-ui/lab';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import MuiAlertTitle from '@material-ui/lab/AlertTitle';
|
|
4
4
|
import { Typography } from '@popmenu/common-ui';
|
|
5
5
|
|
|
6
6
|
var AlertTitle = function (props) {
|
|
7
7
|
var children = props.children, muiProps = __rest(props, ["children"]);
|
|
8
|
-
return (React.createElement(
|
|
8
|
+
return (React.createElement(AlertTitle$1, __assign({}, muiProps),
|
|
9
9
|
React.createElement(Typography, { variant: "h6" },
|
|
10
10
|
" ",
|
|
11
11
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertTitle.js","sources":["../../../../src/components/AlertTitle/AlertTitle.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"AlertTitle.js","sources":["../../../../src/components/AlertTitle/AlertTitle.tsx"],"sourcesContent":["import { AlertTitleProps, AlertTitle as MuiAlertTitle } from '@material-ui/lab'\nimport React, { FC } from 'react'\n\nimport { Typography } from '@popmenu/common-ui'\n\nexport const AlertTitle: FC<AlertTitleProps> = (props) => {\n const { children, ...muiProps } = props\n return (\n <MuiAlertTitle {...muiProps}>\n <Typography variant=\"h6\"> {children} </Typography>\n </MuiAlertTitle>\n )\n}\n\nAlertTitle.displayName = 'AlertTitle'\n"],"names":["MuiAlertTitle"],"mappings":";;;;;AAKO,IAAM,UAAU,GAAwB,UAAC,KAAK,EAAA;IAC3C,IAAA,QAAQ,GAAkB,KAAK,CAAvB,QAAA,EAAK,QAAQ,GAAA,MAAA,CAAK,KAAK,EAAjC,CAAyB,UAAA,CAAA,CAAF;AAC7B,IAAA,QACE,KAAA,CAAA,aAAA,CAACA,YAAa,EAAA,QAAA,CAAA,EAAA,EAAK,QAAQ,CAAA;AACzB,QAAA,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,IAAI,EAAA;;YAAG,QAAQ;AAAe,YAAA,GAAA,CAAA,CACpC;AAEpB;AAEA,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
+
import { useTheme } from '@material-ui/core';
|
|
3
4
|
import { ButtonGroup as ButtonGroup$1 } from '@popmenu/common-ui';
|
|
4
5
|
import { deriveButtonProps } from '../Button/util/deriveButtonProps.js';
|
|
5
6
|
import { useButtonGroupStyles } from './ButtonGroupStyles.js';
|
|
6
|
-
import { useTheme } from '@material-ui/core/styles';
|
|
7
7
|
|
|
8
8
|
var ButtonGroup = forwardRef(function (props, ref) {
|
|
9
9
|
var children = props.children, _a = props.variant, variant = _a === void 0 ? 'primary' : _a, muiProps = __rest(props, ["children", "variant"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.js","sources":["../../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport {
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","sources":["../../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import React, { forwardRef } from 'react'\n\nimport { useTheme } from '@material-ui/core'\nimport { ButtonGroup as CommonButtonGroup } from '@popmenu/common-ui'\nimport { deriveButtonProps } from '../Button/util/deriveButtonProps'\nimport { ButtonGroupProps } from './ButtonGroupProps'\nimport { useButtonGroupStyles } from './ButtonGroupStyles'\n\nexport const ButtonGroup = forwardRef<HTMLDivElement, ButtonGroupProps>((props, ref) => {\n const { children, variant = 'primary', ...muiProps } = props\n const classes = useButtonGroupStyles(props)\n const derivedProps = deriveButtonProps({ variant })\n const { spacing } = useTheme()\n const childrenWithProps = React.Children.map(children, (child, i) => {\n const isFirst = i === 0 && props.orientation === 'vertical'\n const isLast = i === React.Children.toArray(children).length - 1 && props.orientation === 'vertical'\n const firstStyles = { style: { borderTopLeftRadius: spacing(2), borderTopRightRadius: spacing(2) } }\n const lastStyles = { style: { borderBottomLeftRadius: spacing(2), borderBottomRightRadius: spacing(2) } }\n if (!React.isValidElement(child)) {\n return null\n }\n return React.cloneElement(child, { variant, ...(isFirst && firstStyles), ...(isLast && lastStyles) })\n })\n return (\n <CommonButtonGroup ref={ref} classes={classes} {...derivedProps} {...muiProps}>\n {childrenWithProps}\n </CommonButtonGroup>\n )\n})\n\nButtonGroup.displayName = 'ButtonGroup'\n"],"names":["CommonButtonGroup"],"mappings":";;;;;;;IAQa,WAAW,GAAG,UAAU,CAAmC,UAAC,KAAK,EAAE,GAAG,EAAA;IACzE,IAAA,QAAQ,GAAuC,KAAK,CAAA,QAA5C,EAAE,EAAqC,GAAA,KAAK,QAAvB,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aAAA,CAAAA,aAAiB,aAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAA,EAAM,YAAY,EAAM,QAAQ,GAC1E,iBAAiB,CACA;AAExB,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroupStyles.js","sources":["../../../../src/components/ButtonGroup/ButtonGroupStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core
|
|
1
|
+
{"version":3,"file":"ButtonGroupStyles.js","sources":["../../../../src/components/ButtonGroup/ButtonGroupStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { ButtonGroupProps } from './ButtonGroupProps'\n\nconst getBorderColor = (palette: Theme['palette'], variant: ButtonGroupProps['variant']): string => {\n let borderColor = 'inherit'\n if (['primary', 'secondary', 'info', 'success', 'warning', 'error'].includes(variant as string)) {\n // @ts-expect-error - todo.\n borderColor = palette[variant as string].light\n }\n return borderColor\n}\n\nexport const useButtonGroupStyles = makeStyles<Theme, ButtonGroupProps, 'groupedContained' | 'groupedText'>(\n (theme) => ({\n root: {\n boxShadow: 'none',\n },\n groupedContained: {\n '&&': {\n borderColor: (props) => getBorderColor(theme.palette, props.variant),\n },\n },\n groupedText: {\n '&&': {\n borderColor: theme.palette.info.main,\n },\n },\n }),\n)\n"],"names":[],"mappings":";;AAIA,IAAM,cAAc,GAAG,UAAC,OAAyB,EAAE,OAAoC,EAAA;IACrF,IAAI,WAAW,GAAG,SAAS;AAC3B,IAAA,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,OAAiB,CAAC,EAAE;;AAE/F,QAAA,WAAW,GAAG,OAAO,CAAC,OAAiB,CAAC,CAAC,KAAK;AAC/C;AACD,IAAA,OAAO,WAAW;AACpB,CAAC;AAEY,IAAA,oBAAoB,GAAG,UAAU,CAC5C,UAAC,KAAK,EAAK,EAAA,QAAC;AACV,IAAA,IAAI,EAAE;AACJ,QAAA,SAAS,EAAE,MAAM;AAClB,KAAA;AACD,IAAA,gBAAgB,EAAE;AAChB,QAAA,IAAI,EAAE;AACJ,YAAA,WAAW,EAAE,UAAC,KAAK,EAAK,EAAA,OAAA,cAAc,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAA;AACrE,SAAA;AACF,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE;AACJ,YAAA,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;AACrC,SAAA;AACF,KAAA;CACF,EAAC,EAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureIntroStyles.js","sources":["../../../../src/components/FeatureIntro/FeatureIntroStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core
|
|
1
|
+
{"version":3,"file":"FeatureIntroStyles.js","sources":["../../../../src/components/FeatureIntro/FeatureIntroStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core'\n\nimport { FeatureIntroProps } from './FeatureIntroProps'\n\nexport const useFeatureIntroStyles = makeStyles<Theme, FeatureIntroProps>(({ spacing }) => ({\n root: {\n gap: spacing(3),\n },\n actions: {\n gap: spacing(3),\n },\n image: {\n width: '100%',\n objectFit: 'contain',\n },\n}))\n"],"names":[],"mappings":";;AAIa,IAAA,qBAAqB,GAAG,UAAU,CAA2B,UAAC,EAAW,EAAA;AAAT,IAAA,IAAA,OAAO,GAAA,EAAA,CAAA,OAAA;AAAO,IAAA,QAAC;AAC1F,QAAA,IAAI,EAAE;AACJ,YAAA,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AAChB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;AAChB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,SAAS,EAAE,SAAS;AACrB,SAAA;KACF;AAX0F,CAWzF;;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __rest, __assign, __awaiter, __generator } from 'tslib';
|
|
2
|
+
import { Dialog, Box } from '@material-ui/core';
|
|
2
3
|
import React, { useState } from 'react';
|
|
3
|
-
import Box from '@material-ui/core/Box';
|
|
4
|
-
import Dialog from '@material-ui/core/Dialog';
|
|
5
4
|
import { FullScreenStepperActions } from '../FullScreenStepperActions/FullScreenStepperActions.js';
|
|
6
5
|
import { FullScreenStepperHeader } from '../FullScreenStepperHeader/FullScreenStepperHeader.js';
|
|
7
6
|
import { FullScreenStepperContext } from './FullScreenStepperContext.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenStepper.js","sources":["../../../../src/components/FullScreenStepper/FullScreenStepper.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"FullScreenStepper.js","sources":["../../../../src/components/FullScreenStepper/FullScreenStepper.tsx"],"sourcesContent":["import { Box, Dialog } from '@material-ui/core'\nimport React, { FC, useState } from 'react'\nimport FullScreenStepperActions from '../FullScreenStepperActions'\nimport FullScreenStepperHeader from '../FullScreenStepperHeader'\nimport { FullScreenStepperContext } from './FullScreenStepperContext'\nimport { FullScreenStepperProps } from './FullScreenStepperProps'\n\n/**\n * TODO\n * - i18n?\n * - loading?\n */\n\nexport const FullScreenStepper: FC<FullScreenStepperProps> = (props) => {\n const {\n children,\n context = {},\n defaultStepCursor = 1,\n displayActionBar = true,\n displayCancelButton = true,\n displayPreviousButton = true,\n resetStepCursorOnCancel = true,\n resetStepCursorOnClose = true,\n steps,\n onClose,\n onFinish,\n onNext,\n onCancel,\n onPrevious,\n ...DialogProps\n } = props\n const [stepCursor, setStepCursor] = useState(defaultStepCursor)\n const stepCount = steps.length\n const stepIndex = stepCursor - 1\n const step = steps[stepIndex]\n const { displayActionBar: displayStepActionBar = true } = step\n const isFinalStep = stepCursor / stepCount === 1\n const callbackArgs = { setStepCursor, step, stepCount, stepIndex, steps }\n const mergedContext = { ...context, ...callbackArgs }\n const resetStepCursor = () => setTimeout(() => setStepCursor(1), 600)\n const handleClose = () => {\n if (typeof onClose === 'function') {\n onClose(callbackArgs)\n }\n if (resetStepCursorOnClose) {\n resetStepCursor()\n }\n }\n const handleNextClick = async () => {\n if (isFinalStep) {\n if (typeof onFinish === 'function') {\n await onFinish(callbackArgs)\n }\n if (typeof onClose === 'function') {\n onClose(callbackArgs)\n }\n resetStepCursor()\n } else {\n if (typeof onNext === 'function') {\n await onNext(callbackArgs)\n }\n setStepCursor(stepCursor + 1)\n }\n }\n const handlePreviousClick = async () => {\n if (typeof onPrevious === 'function') {\n await onPrevious(callbackArgs)\n }\n setStepCursor(stepCursor - 1)\n }\n const handleCancelClick = async () => {\n if (typeof onCancel === 'function') {\n await onCancel(callbackArgs)\n }\n if (resetStepCursorOnCancel) {\n resetStepCursor()\n }\n }\n const content = React.Children.toArray(children).find(\n (child) => React.isValidElement(child) && child.props.name === step.name,\n )\n\n return (\n <Dialog fullScreen {...DialogProps}>\n <FullScreenStepperContext.Provider value={mergedContext}>\n <Box display=\"flex\" flexDirection=\"column\" flexGrow={1}>\n <FullScreenStepperHeader stepCount={stepCount} stepCursor={stepCursor} onClose={handleClose} step={step} />\n <Box display=\"flex\" mx={6} flexGrow={1} alignItems=\"center\" flexDirection=\"column\">\n {content}\n </Box>\n {displayActionBar && displayStepActionBar && (\n <FullScreenStepperActions\n {...step.actionBar}\n callbackArgs={callbackArgs}\n displayCancelButton={displayCancelButton}\n displayPreviousButton={displayPreviousButton}\n stepCount={stepCount}\n stepCursor={stepCursor}\n setStepCursor={setStepCursor}\n handleCancelClick={handleCancelClick}\n handleNextClick={handleNextClick}\n handlePreviousClick={handlePreviousClick}\n />\n )}\n </Box>\n </FullScreenStepperContext.Provider>\n </Dialog>\n )\n}\n\nFullScreenStepper.displayName = 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,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,EAChC,mBAAmB,EAAE,mBAAmB,EAAA,CAAA,CACxC,CACH,CACG,CAC4B,CAC7B;AAEb;AAEA,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;;;"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenStepperContext.js","sources":["../../../../src/components/FullScreenStepper/FullScreenStepperContext.ts"],"sourcesContent":["import { createContext } from 'react'\nimport {
|
|
1
|
+
{"version":3,"file":"FullScreenStepperContext.js","sources":["../../../../src/components/FullScreenStepper/FullScreenStepperContext.ts"],"sourcesContent":["import { createContext } from 'react'\nimport { ActionBarActionCallbackArgs } from './FullScreenStepperProps'\n\nexport interface FullScreenStepperContextValue extends ActionBarActionCallbackArgs {\n [key: string]: unknown\n}\n\nexport const FullScreenStepperContext = createContext({} as FullScreenStepperContextValue)\n"],"names":[],"mappings":";;IAOa,wBAAwB,GAAG,aAAa,CAAC,EAAmC;;;;"}
|
|
@@ -1,46 +1,66 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DialogProps } from '@material-ui/core
|
|
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';
|