@popmenu/common-ui 0.92.0 → 0.94.0
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/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +4 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +3 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +53 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/context.d.ts +4 -0
- package/build/components/FollowerAuthenticationDialog/index.d.ts +2 -0
- package/build/components/FollowerAuthenticationDialog/theme.d.ts +35 -0
- package/build/components/index.d.ts +1 -0
- package/build/index.es.js +327 -7
- package/build/index.es.js.map +1 -1
- package/build/index.js +325 -4
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare type FollowerAuthenticationDialogProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
state: ReducerState;
|
|
4
|
+
dispatch: (event: ReducerEvent) => void;
|
|
5
|
+
messages: Record<MessageKey, string>;
|
|
6
|
+
trigger: 'generic' | 'engagement';
|
|
7
|
+
locationOptions: LocationOption[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type ReducerState = {
|
|
11
|
+
value: ReducerStateValue;
|
|
12
|
+
effects: string[];
|
|
13
|
+
formValues: Record<string, string>;
|
|
14
|
+
defaultFormValues: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
export declare type ReducerStateValue = 'initial' | 'signUp' | 'emailFound' | 'emailAuthCode' | 'emailPasswordSignIn' | 'phoneFound' | 'phoneAuthCode' | 'phonePasswordSignIn' | 'welcome';
|
|
17
|
+
export declare type ReducerEvent = {
|
|
18
|
+
type: 'submit-form';
|
|
19
|
+
context: {
|
|
20
|
+
values: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
type: 'click-password-continue';
|
|
24
|
+
} | {
|
|
25
|
+
type: 'click-facebook-continue';
|
|
26
|
+
} | {
|
|
27
|
+
type: 'click-google-continue';
|
|
28
|
+
} | {
|
|
29
|
+
type: 'click-get-code';
|
|
30
|
+
context: {
|
|
31
|
+
values: Record<string, string>;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
type: 'click-done';
|
|
35
|
+
} | {
|
|
36
|
+
type: 'click-close';
|
|
37
|
+
} | {
|
|
38
|
+
type: 'reset';
|
|
39
|
+
} | {
|
|
40
|
+
type: 'dialog-closed';
|
|
41
|
+
} | {
|
|
42
|
+
type: 'user-found';
|
|
43
|
+
} | {
|
|
44
|
+
type: 'user-not-found';
|
|
45
|
+
} | {
|
|
46
|
+
type: 'sign-in-success';
|
|
47
|
+
};
|
|
48
|
+
declare type MessageKey = `${ReducerStateValue}Title` | `${ReducerStateValue}Info` | `${ReducerStateValue}GraphicAlt` | 'signUpPhoneInputLabel' | 'signUpNameInputLabel' | 'signUpEmailInputLabel' | 'signUpLocationInputLabel' | 'signUpBirthdaySectionLabel' | 'signUpMonthInputLabel' | 'signUpDayInputLabel' | 'signUp' | 'signUpFinePrint' | 'emailFoundInputLabel' | 'emailFoundCtaButtonLabel' | 'phoneFoundInputLabel' | 'phoneFoundCtaButtonLabel' | 'emailAuthCodeInputLabel' | 'phoneAuthCodeInputLabel' | 'or' | 'popmenuLogoAlt' | 'continueWithFacebookButtonLabel' | 'continueWithGoogleButtonLabel' | 'initialCtaButtonLabel' | 'initialInputLabel' | 'passwordInputLabel' | 'poweredBy' | 'done' | 'signIn' | 'signInWithPassword' | 'closeButtonLabel';
|
|
49
|
+
declare type LocationOption = {
|
|
50
|
+
label: string;
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
|
|
3
|
+
export declare const FollowerAuthenticationDialogContextProvider: import("react").Provider<Omit<FollowerAuthenticationDialogProps, "open"> | null>;
|
|
4
|
+
export declare const useFollowerAuthenticationDialogContext: () => Omit<FollowerAuthenticationDialogProps, "open">;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const theme: {
|
|
2
|
+
readonly palette: {
|
|
3
|
+
readonly primary: {
|
|
4
|
+
readonly main: "#2E3042";
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
readonly typography: {
|
|
8
|
+
readonly h1: {
|
|
9
|
+
readonly fontFamily: "Poppins";
|
|
10
|
+
readonly fontSize: "24px";
|
|
11
|
+
readonly fontWeight: 400;
|
|
12
|
+
readonly lineHeight: "36px";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly props: {
|
|
16
|
+
readonly MuiTextField: {
|
|
17
|
+
readonly variant: "outlined";
|
|
18
|
+
readonly fullWidth: true;
|
|
19
|
+
};
|
|
20
|
+
readonly MuiButton: {
|
|
21
|
+
readonly variant: "contained";
|
|
22
|
+
readonly color: "primary";
|
|
23
|
+
readonly disableElevation: true;
|
|
24
|
+
readonly fullWidth: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly overrides: {
|
|
28
|
+
readonly MuiButton: {
|
|
29
|
+
readonly root: {
|
|
30
|
+
readonly borderRadius: 32;
|
|
31
|
+
readonly textTransform: "none";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -75,3 +75,4 @@ export { default as Toolbar, ToolbarProps } from './Toolbar';
|
|
|
75
75
|
export { default as Tooltip, TooltipProps } from './Tooltip';
|
|
76
76
|
export { default as Typography, TypographyProps, ThemeColors } from './Typography';
|
|
77
77
|
export { NumberField, NumberFieldProps } from './NumberField';
|
|
78
|
+
export { FollowerAuthenticationDialog, FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialog';
|