@aws-amplify/ui 3.10.1 → 3.12.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/dist/esm/helpers/authenticator/constants.js +1 -1
- package/dist/esm/helpers/authenticator/utils.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/machines/authenticator/defaultServices.js +1 -1
- package/dist/esm/theme/createTheme.js +1 -1
- package/dist/esm/theme/tokens/components/index.js +1 -1
- package/dist/esm/theme/tokens/components/passwordField.js +1 -0
- package/dist/esm/theme/tokens/components/phoneNumberField.js +1 -0
- package/dist/esm/theme/tokens/components/radio.js +1 -1
- package/dist/esm/theme/tokens/components/radioGroup.js +1 -0
- package/dist/esm/theme/tokens/components/selectField.js +1 -1
- package/dist/esm/theme/tokens/components/stepperField.js +1 -1
- package/dist/esm/theme/tokens/components/textAreaField.js +1 -0
- package/dist/esm/theme/tokens/components/textField.js +1 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +227 -1
- package/dist/theme.css +51 -1
- package/dist/types/helpers/authenticator/constants.d.ts +6 -0
- package/dist/types/helpers/authenticator/facade.d.ts +2 -3
- package/dist/types/helpers/authenticator/utils.d.ts +1 -0
- package/dist/types/theme/tokens/components/index.d.ts +10 -0
- package/dist/types/theme/tokens/components/passwordField.d.ts +15 -0
- package/dist/types/theme/tokens/components/phoneNumberField.d.ts +25 -0
- package/dist/types/theme/tokens/components/radio.d.ts +1 -0
- package/dist/types/theme/tokens/components/radioGroup.d.ts +18 -0
- package/dist/types/theme/tokens/components/selectField.d.ts +10 -1
- package/dist/types/theme/tokens/components/stepperField.d.ts +16 -1
- package/dist/types/theme/tokens/components/textAreaField.d.ts +11 -0
- package/dist/types/theme/tokens/components/textField.d.ts +12 -0
- package/dist/types/types/authenticator/stateMachine/context.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import { DesignToken, FlexDirectionValue, TextAlignValue } from '../types/designToken';
|
|
1
|
+
import { ColorValue, DesignToken, FontSizeValue, FlexDirectionValue, TextAlignValue, BorderColorValue } from '../types/designToken';
|
|
2
2
|
interface StepperFieldInputTokens {
|
|
3
3
|
textAlign: DesignToken<TextAlignValue>;
|
|
4
|
+
color: DesignToken<ColorValue>;
|
|
5
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
6
|
+
}
|
|
7
|
+
interface ButtonStateColorTokens {
|
|
8
|
+
color: DesignToken<ColorValue>;
|
|
9
|
+
backgroundColor: DesignToken<ColorValue>;
|
|
4
10
|
}
|
|
5
11
|
export interface StepperFieldTokens {
|
|
12
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
6
13
|
flexDirection: DesignToken<FlexDirectionValue>;
|
|
7
14
|
input: StepperFieldInputTokens;
|
|
15
|
+
button: {
|
|
16
|
+
color: DesignToken<ColorValue>;
|
|
17
|
+
backgroundColor: DesignToken<ColorValue>;
|
|
18
|
+
_active: ButtonStateColorTokens;
|
|
19
|
+
_focus: ButtonStateColorTokens;
|
|
20
|
+
_disabled: ButtonStateColorTokens;
|
|
21
|
+
_hover: ButtonStateColorTokens;
|
|
22
|
+
};
|
|
8
23
|
}
|
|
9
24
|
export declare const stepperfield: StepperFieldTokens;
|
|
10
25
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ColorValue, DesignToken, BorderColorValue } from '../types/designToken';
|
|
2
|
+
interface TextAreaFieldStateToken {
|
|
3
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
4
|
+
}
|
|
5
|
+
export interface TextAreaFieldTokens {
|
|
6
|
+
color: DesignToken<ColorValue>;
|
|
7
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
8
|
+
_focus: TextAreaFieldStateToken;
|
|
9
|
+
}
|
|
10
|
+
export declare const textareafield: TextAreaFieldTokens;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColorValue, DesignToken, BorderColorValue, FontSizeValue } from '../types/designToken';
|
|
2
|
+
interface TextFieldStateToken {
|
|
3
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
4
|
+
}
|
|
5
|
+
export interface TextFieldTokens {
|
|
6
|
+
color: DesignToken<ColorValue>;
|
|
7
|
+
borderColor: DesignToken<BorderColorValue>;
|
|
8
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
9
|
+
_focus: TextFieldStateToken;
|
|
10
|
+
}
|
|
11
|
+
export declare const textfield: TextFieldTokens;
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ValidationError } from '../validator';
|
|
2
2
|
import { AuthFormData, AuthFormFields } from '../form';
|
|
3
3
|
import { AuthChallengeNames, CognitoUserAmplify } from '../user';
|
|
4
|
-
import { CodeDeliveryDetails } from 'amazon-cognito-identity-js';
|
|
4
|
+
import { CodeDeliveryDetails as CognitoCodeDeliveryDetails } from 'amazon-cognito-identity-js';
|
|
5
5
|
import { LoginMechanism, SignUpAttribute, SocialProvider } from '../attributes';
|
|
6
6
|
import { defaultServices } from '../../../machines/authenticator/defaultServices';
|
|
7
7
|
import { PasswordSettings } from '..';
|
|
@@ -39,6 +39,8 @@ export interface AuthContext {
|
|
|
39
39
|
actorDoneData?: Omit<ActorDoneData, 'user'>;
|
|
40
40
|
hasSetup?: boolean;
|
|
41
41
|
}
|
|
42
|
+
export interface CodeDeliveryDetails extends CognitoCodeDeliveryDetails {
|
|
43
|
+
}
|
|
42
44
|
/**
|
|
43
45
|
* Base context for all actors that have auth forms associated
|
|
44
46
|
*/
|