@aws-amplify/ui 3.0.14 → 3.0.15
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/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +11 -13
- package/dist/theme.css +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,11 @@ declare const defaultServices: {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
declare type AuthFormData = Record<string, string>;
|
|
48
|
+
interface ActorDoneData {
|
|
49
|
+
authAttributes?: AuthFormData;
|
|
50
|
+
intent?: string;
|
|
51
|
+
user?: CognitoUserAmplify;
|
|
52
|
+
}
|
|
48
53
|
interface AuthContext {
|
|
49
54
|
actorRef?: any;
|
|
50
55
|
config?: {
|
|
@@ -59,6 +64,7 @@ interface AuthContext {
|
|
|
59
64
|
password?: string;
|
|
60
65
|
code?: string;
|
|
61
66
|
mfaType?: AuthChallengeNames.SMS_MFA | AuthChallengeNames.SOFTWARE_TOKEN_MFA;
|
|
67
|
+
actorDoneData?: Omit<ActorDoneData, 'user'>;
|
|
62
68
|
}
|
|
63
69
|
interface ServicesContext {
|
|
64
70
|
username?: string;
|
|
@@ -260,6 +266,9 @@ declare const listenToAuthHub: (send: AuthMachineSend) => () => void;
|
|
|
260
266
|
declare type ContactMethod = 'Email' | 'Phone Number';
|
|
261
267
|
declare const censorAllButFirstAndLast: (value: string) => string;
|
|
262
268
|
declare const censorPhoneNumber: (val: string) => string;
|
|
269
|
+
declare const getFormDataFromEvent: (event: Event) => {
|
|
270
|
+
[k: string]: FormDataEntryValue;
|
|
271
|
+
};
|
|
263
272
|
|
|
264
273
|
declare const countryDialCodes: string[];
|
|
265
274
|
|
|
@@ -452,9 +461,13 @@ interface OrdinalVariation<DesignTokenType = DesignToken<ColorValue>> {
|
|
|
452
461
|
}
|
|
453
462
|
|
|
454
463
|
declare type ScaleKeys = 10 | 20 | 40 | 60 | 80 | 90 | 100;
|
|
464
|
+
declare type OverlayKeys = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
|
455
465
|
declare type ColorScale<DesignTokenType = DesignToken<ColorValue>> = {
|
|
456
466
|
[key in ScaleKeys]: DesignTokenType;
|
|
457
467
|
};
|
|
468
|
+
declare type OverlayColors<DesignTokenType = DesignToken<ColorValue>> = {
|
|
469
|
+
[key in OverlayKeys]: DesignTokenType;
|
|
470
|
+
};
|
|
458
471
|
declare type FontColors<DesignTokenType = DesignToken<ColorValue>> = {
|
|
459
472
|
inverse: DesignTokenType;
|
|
460
473
|
interactive: DesignTokenType;
|
|
@@ -494,6 +507,7 @@ declare type Colors = {
|
|
|
494
507
|
primary: ColorScale;
|
|
495
508
|
secondary: ColorScale;
|
|
496
509
|
};
|
|
510
|
+
overlay: OverlayColors;
|
|
497
511
|
[key: string]: ColorTypes | Record<string, ColorTypes>;
|
|
498
512
|
};
|
|
499
513
|
declare type WebColors = {
|
|
@@ -515,6 +529,7 @@ declare type WebColors = {
|
|
|
515
529
|
primary: ColorScale<WebDesignToken<ColorValue>>;
|
|
516
530
|
secondary: ColorScale<WebDesignToken<ColorValue>>;
|
|
517
531
|
};
|
|
532
|
+
overlay: OverlayColors<WebDesignToken<ColorValue>>;
|
|
518
533
|
[key: string]: WebColorTypes | Record<string, WebColorTypes>;
|
|
519
534
|
};
|
|
520
535
|
|
|
@@ -847,4 +862,4 @@ declare function createTheme(theme?: Theme, baseTheme?: BaseTheme): WebTheme;
|
|
|
847
862
|
|
|
848
863
|
declare const defaultTheme: WebTheme;
|
|
849
864
|
|
|
850
|
-
export { ActorContextWithForms, AuthActorContext, AuthActorState, AuthChallengeNames, AuthContext, AuthEvent, AuthEventData, AuthEventTypes, AuthFieldsWithDefaults, AuthFormData, AuthInputAttributes, AuthInterpreter, AuthMachineSend, AuthMachineState, AuthenticatorMachineOptions, BaseTheme, BorderWidthValue, CognitoAttributes, CognitoUserAmplify, ColorModeOverride, ColorValue, ContactMethod, DefaultTexts, DesignToken, Dict, FederatedIdentityProviders, FontSizeValue, FontValue, FontWeightValue, InputAttributes, InvokeActorEventTypes, LineHeightValue, LoginMechanism, LoginMechanismArray, MediaQueryOverride, NoInfer, OpacityValue, OutlineOffsetValue, OutlineWidthValue, Override, Phrase, RadiusValue, ResetPasswordContext, ResetPasswordState, SelectorOverride, ServicesContext, ShadowValue, SignInContext, SignInResult, SignInState, SignInTypes, SignOutContext, SignOutState, SignUpAttribute, SignUpContext, SignUpFieldsWithDefaults, SignUpFieldsWithoutDefaults, SignUpState, SocialProvider, SpaceValue, Theme, TimeValue, TransformValue, ValidationError, Validator, ValidatorResult, WebDesignToken, WebTheme, authInputAttributes, censorAllButFirstAndLast, censorPhoneNumber, countryDialCodes, createAuthenticatorMachine, createTheme, defaultTheme, getActorContext, getActorState, getAliasInfoFromContext, getConfiguredAliases, getSendEventAliases, getServiceContextFacade, getServiceFacade, hasTranslation, isDesignToken, listenToAuthHub, signUpFieldsWithDefault, signUpFieldsWithoutDefault, translate, translations };
|
|
865
|
+
export { ActorContextWithForms, ActorDoneData, AuthActorContext, AuthActorState, AuthChallengeNames, AuthContext, AuthEvent, AuthEventData, AuthEventTypes, AuthFieldsWithDefaults, AuthFormData, AuthInputAttributes, AuthInterpreter, AuthMachineSend, AuthMachineState, AuthenticatorMachineOptions, BaseTheme, BorderWidthValue, CognitoAttributes, CognitoUserAmplify, ColorModeOverride, ColorValue, ContactMethod, DefaultTexts, DesignToken, Dict, FederatedIdentityProviders, FontSizeValue, FontValue, FontWeightValue, InputAttributes, InvokeActorEventTypes, LineHeightValue, LoginMechanism, LoginMechanismArray, MediaQueryOverride, NoInfer, OpacityValue, OutlineOffsetValue, OutlineWidthValue, Override, Phrase, RadiusValue, ResetPasswordContext, ResetPasswordState, SelectorOverride, ServicesContext, ShadowValue, SignInContext, SignInResult, SignInState, SignInTypes, SignOutContext, SignOutState, SignUpAttribute, SignUpContext, SignUpFieldsWithDefaults, SignUpFieldsWithoutDefaults, SignUpState, SocialProvider, SpaceValue, Theme, TimeValue, TransformValue, ValidationError, Validator, ValidatorResult, WebDesignToken, WebTheme, authInputAttributes, censorAllButFirstAndLast, censorPhoneNumber, countryDialCodes, createAuthenticatorMachine, createTheme, defaultTheme, getActorContext, getActorState, getAliasInfoFromContext, getConfiguredAliases, getFormDataFromEvent, getSendEventAliases, getServiceContextFacade, getServiceFacade, hasTranslation, isDesignToken, listenToAuthHub, signUpFieldsWithDefault, signUpFieldsWithoutDefault, translate, translations };
|