@popmenu/common-ui 0.93.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.
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationAltActions: () => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationBody: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationCloseButton: () => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const FollowerAuthenticationContent: (props: {
3
+ children: React.ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
3
+ export declare const FollowerAuthenticationDialog: (props: FollowerAuthenticationDialogProps) => JSX.Element;
@@ -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,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationFooter: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationForm: () => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationGraphic: () => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationInfo: () => JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const FollowerAuthenticationTitle: () => JSX.Element;
@@ -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,2 @@
1
+ export { FollowerAuthenticationDialog } from './FollowerAuthenticationDialog';
2
+ export { FollowerAuthenticationDialogProps } from './FollowerAuthenticationDialogProps';
@@ -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';