@aws-amplify/ui 6.4.1 → 6.6.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/i18n/dictionaries/authenticator/es.mjs +17 -0
- package/dist/esm/i18n/dictionaries/authenticator/fr.mjs +14 -3
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/theme/createTheme/createComponentCSS.mjs +2 -1
- package/dist/esm/theme/createTheme/createTheme.mjs +7 -1
- package/dist/esm/theme/createTheme/defineComponentTheme.mjs +8 -0
- package/dist/esm/types/primitives/componentClassName.mjs +1 -0
- package/dist/index.js +49 -5
- package/dist/styles/avatar.css +20 -0
- package/dist/styles/avatar.layer.css +20 -0
- package/dist/styles/breadcrumbs.css +4 -2
- package/dist/styles/breadcrumbs.layer.css +4 -2
- package/dist/styles/button.css +19 -10
- package/dist/styles/button.layer.css +19 -10
- package/dist/styles/input.css +3 -2
- package/dist/styles/input.layer.css +3 -2
- package/dist/styles/link.css +10 -5
- package/dist/styles/link.layer.css +10 -5
- package/dist/styles/reset.css +4 -1
- package/dist/styles/reset.layer.css +4 -1
- package/dist/styles/sliderField.css +3 -2
- package/dist/styles/sliderField.layer.css +3 -2
- package/dist/styles/textArea.css +3 -2
- package/dist/styles/textArea.layer.css +3 -2
- package/dist/styles.css +62 -23
- package/dist/styles.layer.css +62 -23
- package/dist/types/theme/components/avatar.d.ts +1 -0
- package/dist/types/theme/createTheme/createComponentCSS.d.ts +7 -2
- package/dist/types/theme/createTheme/defineComponentTheme.d.ts +4 -0
- package/dist/types/theme/createTheme/index.d.ts +1 -0
- package/dist/types/theme/index.d.ts +2 -1
- package/dist/types/types/primitives/componentClassName.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ const esDict = {
|
|
|
4
4
|
'Change Password': 'Cambiar contraseña',
|
|
5
5
|
Changing: 'Cambiando',
|
|
6
6
|
Code: 'Código',
|
|
7
|
+
'Code *': 'Código *',
|
|
7
8
|
'Confirm Password': 'Confirmar contraseña',
|
|
8
9
|
'Confirm Sign Up': 'Confirmar registro',
|
|
9
10
|
'Confirm SMS Code': 'Confirmar el código de SMS',
|
|
@@ -18,6 +19,7 @@ const esDict = {
|
|
|
18
19
|
Email: 'Email',
|
|
19
20
|
'Enter your code': 'Ingrese el código',
|
|
20
21
|
'Enter your Email': 'Escriba su Email',
|
|
22
|
+
'Enter your email': 'Escriba su email',
|
|
21
23
|
'Enter your Password': 'Escriba su Contraseña',
|
|
22
24
|
'Enter your phone number': 'Ingrese el número de teléfono',
|
|
23
25
|
'Enter your username': 'Ingrese el nombre de usuario',
|
|
@@ -63,6 +65,12 @@ const esDict = {
|
|
|
63
65
|
'Confirm Sign In': 'Confirmar inicio de sesión',
|
|
64
66
|
'Forgot Password': 'Olvidé mi contraseña',
|
|
65
67
|
'Incorrect username or password.': 'Nombre de usuario o contraseña incorrecta',
|
|
68
|
+
'Enter your Family Name': 'Escriba su apellido',
|
|
69
|
+
'Enter your Given Name': 'Escriba su nombre',
|
|
70
|
+
'Given Name': 'Nombre',
|
|
71
|
+
'Family Name': 'Apellido',
|
|
72
|
+
'Reset Password': 'Restablecer contraseña',
|
|
73
|
+
'Please confirm your Password': 'Confirme su contraseña',
|
|
66
74
|
'Invalid password format': 'Formato de contraseña inválido',
|
|
67
75
|
'Invalid phone number format': 'Formato de número de teléfono inválido',
|
|
68
76
|
'Loading...': 'Cargando...',
|
|
@@ -76,8 +84,17 @@ const esDict = {
|
|
|
76
84
|
'Sign Up': 'Crear cuenta',
|
|
77
85
|
'User already exists': 'El usuario ya existe',
|
|
78
86
|
'User does not exist': 'El usuario no existe',
|
|
87
|
+
'Username/client id combination not found.': 'El usuario no existe',
|
|
79
88
|
'Username cannot be empty': 'El nombre de usuario no puede estar vacío',
|
|
80
89
|
'Your passwords must match': 'Las contraseñas deben coincidir',
|
|
90
|
+
'Password must have at least 8 characters': 'La contraseña debe tener al menos 8 caracteres',
|
|
91
|
+
'Password did not conform with policy: Password must have uppercase characters': 'La contraseña debe tener al menos un carácter en mayúscula',
|
|
92
|
+
'Password did not conform with policy: Password must have numeric characters': 'La contraseña debe tener al menos un carácter numérico',
|
|
93
|
+
'Password did not conform with policy: Password must have symbol characters': 'La contraseña debe tener al menos un símbolo',
|
|
94
|
+
'Password did not conform with policy: Password must have lowercase characters': 'La contraseña debe tener al menos un carácter en minúsculas',
|
|
95
|
+
'Invalid verification code provided, please try again.': 'Código de verificación no válido, inténtelo de nuevo.',
|
|
96
|
+
'Attempt limit exceeded, please try after some time.': 'Número máximo de intentos excedido, por favor inténtelo de nuevo más tarde.',
|
|
97
|
+
'A network error has occurred.': 'Se ha producido un error de red.'
|
|
81
98
|
};
|
|
82
99
|
|
|
83
100
|
export { esDict };
|
|
@@ -17,7 +17,8 @@ const frDict = {
|
|
|
17
17
|
'Dismiss alert': `Supprimer l'alerte`,
|
|
18
18
|
Email: 'Email',
|
|
19
19
|
'Enter your code': 'Saisissez cotre code de confirmation',
|
|
20
|
-
'Enter your Email': 'Saisissez votre adresse
|
|
20
|
+
'Enter your Email': 'Saisissez votre adresse e-mail',
|
|
21
|
+
'Enter your email': 'Saisissez votre adresse e-mail',
|
|
21
22
|
'Enter your phone number': 'Saisissez votre numéro de téléphone',
|
|
22
23
|
'Enter your username': "Saisissez votre nom d'utilisateur",
|
|
23
24
|
'Forgot your password?': 'Mot de passe oublié ? ',
|
|
@@ -73,9 +74,11 @@ const frDict = {
|
|
|
73
74
|
'Enter your Phone Number': 'Saisissez votre numéro de téléphone',
|
|
74
75
|
'Enter your Preferred Username': "Saisissez votre nom d'utilisateur",
|
|
75
76
|
'Enter your password': 'Saisissez votre mot de passe',
|
|
77
|
+
'Given Name': 'Prénom',
|
|
76
78
|
'Family Name': 'Nom de famille',
|
|
77
79
|
'Forgot Password': 'Mot de passe oublié',
|
|
78
80
|
'Forgot Password?': 'Mot de passe oublié ?',
|
|
81
|
+
'Incorrect username or password.': 'Identifiant ou mot de passe incorrect.',
|
|
79
82
|
'Have an account? ': 'Déjà un compte ? ',
|
|
80
83
|
Hello: 'Bonjour',
|
|
81
84
|
'Incorrect username or password': 'Identifiant ou mot de passe incorrect',
|
|
@@ -91,8 +94,8 @@ const frDict = {
|
|
|
91
94
|
'Preferred Username': "Nom d'utilisateur préféré",
|
|
92
95
|
'Profile': 'Profil',
|
|
93
96
|
'Resend a Code': 'Renvoyer un code',
|
|
94
|
-
'Reset password': '
|
|
95
|
-
'Reset Password': '
|
|
97
|
+
'Reset password': 'Réinitialiser le mot de passe',
|
|
98
|
+
'Reset Password': 'Réinitialiser le mot de passe',
|
|
96
99
|
Send: 'Envoyer',
|
|
97
100
|
'Sign In with AWS': 'Se connecter avec AWS',
|
|
98
101
|
'Sign Out': 'Déconnexion',
|
|
@@ -108,6 +111,14 @@ const frDict = {
|
|
|
108
111
|
'Your passwords must match': 'Vos mots de passe doivent être identiques',
|
|
109
112
|
'It may take a minute to arrive.': 'Cela peut prendre quelques minutes.',
|
|
110
113
|
'Website': 'Site web',
|
|
114
|
+
'Password must have at least 8 characters': 'Le mot de passe doit comporter au moins 8 caractères',
|
|
115
|
+
'Password did not conform with policy: Password must have uppercase characters': 'Le mot de passe doit comporter des caractères majuscules',
|
|
116
|
+
'Password did not conform with policy: Password must have numeric characters': 'Le mot de passe doit comporter des caractères numériques',
|
|
117
|
+
'Password did not conform with policy: Password must have symbol characters': 'Le mot de passe doit comporter des symboles',
|
|
118
|
+
'Password did not conform with policy: Password must have lowercase characters': 'Le mot de passe doit comporter des caractères minuscules',
|
|
119
|
+
'Invalid verification code provided, please try again.': 'Code de vérification invalide, veuillez réessayer.',
|
|
120
|
+
'Attempt limit exceeded, please try after some time.': 'Nombre maximum de tentatives dépassé, veuillez réessayer plus tard.',
|
|
121
|
+
'A network error has occurred.': "Une erreur de réseau s'est produite."
|
|
111
122
|
};
|
|
112
123
|
|
|
113
124
|
export { frDict };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -16,6 +16,7 @@ export { DefaultTexts, hasTranslation, translate, translations } from './i18n/tr
|
|
|
16
16
|
export { createAuthenticatorMachine } from './machines/authenticator/index.mjs';
|
|
17
17
|
export { createTheme } from './theme/createTheme/createTheme.mjs';
|
|
18
18
|
export { defineComponentTheme } from './theme/createTheme/defineComponentTheme.mjs';
|
|
19
|
+
export { createComponentCSS } from './theme/createTheme/createComponentCSS.mjs';
|
|
19
20
|
export { cssNameTransform, isDesignToken, setupTokens } from './theme/createTheme/utils.mjs';
|
|
20
21
|
export { createComponentClasses } from './theme/createTheme/createComponentClasses.mjs';
|
|
21
22
|
export { defaultTheme } from './theme/defaultTheme.mjs';
|
|
@@ -44,8 +44,9 @@ function recursiveComponentCSS(baseSelector, theme) {
|
|
|
44
44
|
* This will take a component theme and create the appropriate CSS for it.
|
|
45
45
|
*
|
|
46
46
|
*/
|
|
47
|
-
function createComponentCSS(
|
|
47
|
+
function createComponentCSS({ theme, components, }) {
|
|
48
48
|
let cssText = '';
|
|
49
|
+
const { tokens, name: themeName, breakpoints } = theme;
|
|
49
50
|
components.forEach(({ name, theme, overrides }) => {
|
|
50
51
|
const baseComponentClassName = `amplify-${name}`;
|
|
51
52
|
const componentClassName = `[data-amplify-theme="${themeName}"] .${baseComponentClassName}`;
|
|
@@ -58,7 +58,13 @@ function createTheme(theme, DefaultTheme = defaultTheme) {
|
|
|
58
58
|
.join('\n') +
|
|
59
59
|
`\n}\n`;
|
|
60
60
|
if (theme?.components) {
|
|
61
|
-
cssText += createComponentCSS(
|
|
61
|
+
cssText += createComponentCSS({
|
|
62
|
+
theme: {
|
|
63
|
+
...mergedTheme,
|
|
64
|
+
tokens,
|
|
65
|
+
},
|
|
66
|
+
components: theme.components,
|
|
67
|
+
});
|
|
62
68
|
}
|
|
63
69
|
let overrides = [];
|
|
64
70
|
if (mergedTheme.animations) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponentCSS } from './createComponentCSS.mjs';
|
|
1
2
|
import { createComponentClasses } from './createComponentClasses.mjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -44,11 +45,18 @@ function defineComponentTheme({ name, theme, overrides, }) {
|
|
|
44
45
|
name,
|
|
45
46
|
prefix,
|
|
46
47
|
});
|
|
48
|
+
const cssText = (props) => {
|
|
49
|
+
return createComponentCSS({
|
|
50
|
+
theme: props.theme,
|
|
51
|
+
components: [{ name, theme }],
|
|
52
|
+
});
|
|
53
|
+
};
|
|
47
54
|
return {
|
|
48
55
|
className,
|
|
49
56
|
theme,
|
|
50
57
|
overrides,
|
|
51
58
|
name,
|
|
59
|
+
cssText,
|
|
52
60
|
};
|
|
53
61
|
}
|
|
54
62
|
|
|
@@ -20,6 +20,7 @@ const ComponentClassName = {
|
|
|
20
20
|
Avatar: 'amplify-avatar',
|
|
21
21
|
AvatarIcon: 'amplify-avatar__icon',
|
|
22
22
|
AvatarImage: 'amplify-avatar__image',
|
|
23
|
+
AvatarLoader: 'amplify-avatar__loader',
|
|
23
24
|
AIConversation: 'amplify-ai-conversation',
|
|
24
25
|
AIConversationAttachment: 'amplify-ai-conversation__attachment',
|
|
25
26
|
AIConversationAttachmentList: 'amplify-ai-conversation__attachment__list',
|
package/dist/index.js
CHANGED
|
@@ -887,6 +887,7 @@ const esDict$1 = {
|
|
|
887
887
|
'Change Password': 'Cambiar contraseña',
|
|
888
888
|
Changing: 'Cambiando',
|
|
889
889
|
Code: 'Código',
|
|
890
|
+
'Code *': 'Código *',
|
|
890
891
|
'Confirm Password': 'Confirmar contraseña',
|
|
891
892
|
'Confirm Sign Up': 'Confirmar registro',
|
|
892
893
|
'Confirm SMS Code': 'Confirmar el código de SMS',
|
|
@@ -901,6 +902,7 @@ const esDict$1 = {
|
|
|
901
902
|
Email: 'Email',
|
|
902
903
|
'Enter your code': 'Ingrese el código',
|
|
903
904
|
'Enter your Email': 'Escriba su Email',
|
|
905
|
+
'Enter your email': 'Escriba su email',
|
|
904
906
|
'Enter your Password': 'Escriba su Contraseña',
|
|
905
907
|
'Enter your phone number': 'Ingrese el número de teléfono',
|
|
906
908
|
'Enter your username': 'Ingrese el nombre de usuario',
|
|
@@ -946,6 +948,12 @@ const esDict$1 = {
|
|
|
946
948
|
'Confirm Sign In': 'Confirmar inicio de sesión',
|
|
947
949
|
'Forgot Password': 'Olvidé mi contraseña',
|
|
948
950
|
'Incorrect username or password.': 'Nombre de usuario o contraseña incorrecta',
|
|
951
|
+
'Enter your Family Name': 'Escriba su apellido',
|
|
952
|
+
'Enter your Given Name': 'Escriba su nombre',
|
|
953
|
+
'Given Name': 'Nombre',
|
|
954
|
+
'Family Name': 'Apellido',
|
|
955
|
+
'Reset Password': 'Restablecer contraseña',
|
|
956
|
+
'Please confirm your Password': 'Confirme su contraseña',
|
|
949
957
|
'Invalid password format': 'Formato de contraseña inválido',
|
|
950
958
|
'Invalid phone number format': 'Formato de número de teléfono inválido',
|
|
951
959
|
'Loading...': 'Cargando...',
|
|
@@ -959,8 +967,17 @@ const esDict$1 = {
|
|
|
959
967
|
'Sign Up': 'Crear cuenta',
|
|
960
968
|
'User already exists': 'El usuario ya existe',
|
|
961
969
|
'User does not exist': 'El usuario no existe',
|
|
970
|
+
'Username/client id combination not found.': 'El usuario no existe',
|
|
962
971
|
'Username cannot be empty': 'El nombre de usuario no puede estar vacío',
|
|
963
972
|
'Your passwords must match': 'Las contraseñas deben coincidir',
|
|
973
|
+
'Password must have at least 8 characters': 'La contraseña debe tener al menos 8 caracteres',
|
|
974
|
+
'Password did not conform with policy: Password must have uppercase characters': 'La contraseña debe tener al menos un carácter en mayúscula',
|
|
975
|
+
'Password did not conform with policy: Password must have numeric characters': 'La contraseña debe tener al menos un carácter numérico',
|
|
976
|
+
'Password did not conform with policy: Password must have symbol characters': 'La contraseña debe tener al menos un símbolo',
|
|
977
|
+
'Password did not conform with policy: Password must have lowercase characters': 'La contraseña debe tener al menos un carácter en minúsculas',
|
|
978
|
+
'Invalid verification code provided, please try again.': 'Código de verificación no válido, inténtelo de nuevo.',
|
|
979
|
+
'Attempt limit exceeded, please try after some time.': 'Número máximo de intentos excedido, por favor inténtelo de nuevo más tarde.',
|
|
980
|
+
'A network error has occurred.': 'Se ha producido un error de red.'
|
|
964
981
|
};
|
|
965
982
|
|
|
966
983
|
const frDict$1 = {
|
|
@@ -982,7 +999,8 @@ const frDict$1 = {
|
|
|
982
999
|
'Dismiss alert': `Supprimer l'alerte`,
|
|
983
1000
|
Email: 'Email',
|
|
984
1001
|
'Enter your code': 'Saisissez cotre code de confirmation',
|
|
985
|
-
'Enter your Email': 'Saisissez votre adresse
|
|
1002
|
+
'Enter your Email': 'Saisissez votre adresse e-mail',
|
|
1003
|
+
'Enter your email': 'Saisissez votre adresse e-mail',
|
|
986
1004
|
'Enter your phone number': 'Saisissez votre numéro de téléphone',
|
|
987
1005
|
'Enter your username': "Saisissez votre nom d'utilisateur",
|
|
988
1006
|
'Forgot your password?': 'Mot de passe oublié ? ',
|
|
@@ -1038,9 +1056,11 @@ const frDict$1 = {
|
|
|
1038
1056
|
'Enter your Phone Number': 'Saisissez votre numéro de téléphone',
|
|
1039
1057
|
'Enter your Preferred Username': "Saisissez votre nom d'utilisateur",
|
|
1040
1058
|
'Enter your password': 'Saisissez votre mot de passe',
|
|
1059
|
+
'Given Name': 'Prénom',
|
|
1041
1060
|
'Family Name': 'Nom de famille',
|
|
1042
1061
|
'Forgot Password': 'Mot de passe oublié',
|
|
1043
1062
|
'Forgot Password?': 'Mot de passe oublié ?',
|
|
1063
|
+
'Incorrect username or password.': 'Identifiant ou mot de passe incorrect.',
|
|
1044
1064
|
'Have an account? ': 'Déjà un compte ? ',
|
|
1045
1065
|
Hello: 'Bonjour',
|
|
1046
1066
|
'Incorrect username or password': 'Identifiant ou mot de passe incorrect',
|
|
@@ -1056,8 +1076,8 @@ const frDict$1 = {
|
|
|
1056
1076
|
'Preferred Username': "Nom d'utilisateur préféré",
|
|
1057
1077
|
'Profile': 'Profil',
|
|
1058
1078
|
'Resend a Code': 'Renvoyer un code',
|
|
1059
|
-
'Reset password': '
|
|
1060
|
-
'Reset Password': '
|
|
1079
|
+
'Reset password': 'Réinitialiser le mot de passe',
|
|
1080
|
+
'Reset Password': 'Réinitialiser le mot de passe',
|
|
1061
1081
|
Send: 'Envoyer',
|
|
1062
1082
|
'Sign In with AWS': 'Se connecter avec AWS',
|
|
1063
1083
|
'Sign Out': 'Déconnexion',
|
|
@@ -1073,6 +1093,14 @@ const frDict$1 = {
|
|
|
1073
1093
|
'Your passwords must match': 'Vos mots de passe doivent être identiques',
|
|
1074
1094
|
'It may take a minute to arrive.': 'Cela peut prendre quelques minutes.',
|
|
1075
1095
|
'Website': 'Site web',
|
|
1096
|
+
'Password must have at least 8 characters': 'Le mot de passe doit comporter au moins 8 caractères',
|
|
1097
|
+
'Password did not conform with policy: Password must have uppercase characters': 'Le mot de passe doit comporter des caractères majuscules',
|
|
1098
|
+
'Password did not conform with policy: Password must have numeric characters': 'Le mot de passe doit comporter des caractères numériques',
|
|
1099
|
+
'Password did not conform with policy: Password must have symbol characters': 'Le mot de passe doit comporter des symboles',
|
|
1100
|
+
'Password did not conform with policy: Password must have lowercase characters': 'Le mot de passe doit comporter des caractères minuscules',
|
|
1101
|
+
'Invalid verification code provided, please try again.': 'Code de vérification invalide, veuillez réessayer.',
|
|
1102
|
+
'Attempt limit exceeded, please try after some time.': 'Nombre maximum de tentatives dépassé, veuillez réessayer plus tard.',
|
|
1103
|
+
'A network error has occurred.': "Une erreur de réseau s'est produite."
|
|
1076
1104
|
};
|
|
1077
1105
|
|
|
1078
1106
|
const itDict$1 = {
|
|
@@ -2871,6 +2899,7 @@ const ComponentClassName = {
|
|
|
2871
2899
|
Avatar: 'amplify-avatar',
|
|
2872
2900
|
AvatarIcon: 'amplify-avatar__icon',
|
|
2873
2901
|
AvatarImage: 'amplify-avatar__image',
|
|
2902
|
+
AvatarLoader: 'amplify-avatar__loader',
|
|
2874
2903
|
AIConversation: 'amplify-ai-conversation',
|
|
2875
2904
|
AIConversationAttachment: 'amplify-ai-conversation__attachment',
|
|
2876
2905
|
AIConversationAttachmentList: 'amplify-ai-conversation__attachment__list',
|
|
@@ -8698,8 +8727,9 @@ function recursiveComponentCSS(baseSelector, theme) {
|
|
|
8698
8727
|
* This will take a component theme and create the appropriate CSS for it.
|
|
8699
8728
|
*
|
|
8700
8729
|
*/
|
|
8701
|
-
function createComponentCSS(
|
|
8730
|
+
function createComponentCSS({ theme, components, }) {
|
|
8702
8731
|
let cssText = '';
|
|
8732
|
+
const { tokens, name: themeName, breakpoints } = theme;
|
|
8703
8733
|
components.forEach(({ name, theme, overrides }) => {
|
|
8704
8734
|
const baseComponentClassName = `amplify-${name}`;
|
|
8705
8735
|
const componentClassName = `[data-amplify-theme="${themeName}"] .${baseComponentClassName}`;
|
|
@@ -8825,7 +8855,13 @@ function createTheme(theme, DefaultTheme = defaultTheme) {
|
|
|
8825
8855
|
.join('\n') +
|
|
8826
8856
|
`\n}\n`;
|
|
8827
8857
|
if (theme?.components) {
|
|
8828
|
-
cssText += createComponentCSS(
|
|
8858
|
+
cssText += createComponentCSS({
|
|
8859
|
+
theme: {
|
|
8860
|
+
...mergedTheme,
|
|
8861
|
+
tokens,
|
|
8862
|
+
},
|
|
8863
|
+
components: theme.components,
|
|
8864
|
+
});
|
|
8829
8865
|
}
|
|
8830
8866
|
let overrides = [];
|
|
8831
8867
|
if (mergedTheme.animations) {
|
|
@@ -9007,11 +9043,18 @@ function defineComponentTheme({ name, theme, overrides, }) {
|
|
|
9007
9043
|
name,
|
|
9008
9044
|
prefix,
|
|
9009
9045
|
});
|
|
9046
|
+
const cssText = (props) => {
|
|
9047
|
+
return createComponentCSS({
|
|
9048
|
+
theme: props.theme,
|
|
9049
|
+
components: [{ name, theme }],
|
|
9050
|
+
});
|
|
9051
|
+
};
|
|
9010
9052
|
return {
|
|
9011
9053
|
className,
|
|
9012
9054
|
theme,
|
|
9013
9055
|
overrides,
|
|
9014
9056
|
name,
|
|
9057
|
+
cssText,
|
|
9015
9058
|
};
|
|
9016
9059
|
}
|
|
9017
9060
|
|
|
@@ -9162,6 +9205,7 @@ exports.classNameModifierByFlag = classNameModifierByFlag;
|
|
|
9162
9205
|
exports.classNames = classNames;
|
|
9163
9206
|
exports.countryDialCodes = countryDialCodes;
|
|
9164
9207
|
exports.createAuthenticatorMachine = createAuthenticatorMachine;
|
|
9208
|
+
exports.createComponentCSS = createComponentCSS;
|
|
9165
9209
|
exports.createComponentClasses = createComponentClasses;
|
|
9166
9210
|
exports.createTheme = createTheme;
|
|
9167
9211
|
exports.cssNameTransform = cssNameTransform;
|
package/dist/styles/avatar.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--avatar-border-color: var(--amplify-components-avatar-border-color);
|
|
7
7
|
--avatar-size: var(--amplify-components-avatar-width);
|
|
8
8
|
--amplify-components-icon-height: 100%;
|
|
9
|
+
position: relative;
|
|
9
10
|
display: inline-flex;
|
|
10
11
|
align-items: center;
|
|
11
12
|
justify-content: center;
|
|
@@ -56,6 +57,9 @@
|
|
|
56
57
|
--avatar-filled-color: var(
|
|
57
58
|
--amplify-components-avatar-warning-background-color
|
|
58
59
|
);
|
|
60
|
+
--amplify-components-loader-stroke-filled: var(
|
|
61
|
+
--amplify-components-avatar-warning-color
|
|
62
|
+
);
|
|
59
63
|
}
|
|
60
64
|
.amplify-avatar--error {
|
|
61
65
|
--avatar-border-color: var(--amplify-components-avatar-error-border-color);
|
|
@@ -69,6 +73,9 @@
|
|
|
69
73
|
--avatar-filled-color: var(
|
|
70
74
|
--amplify-components-avatar-error-background-color
|
|
71
75
|
);
|
|
76
|
+
--amplify-components-loader-stroke-filled: var(
|
|
77
|
+
--amplify-components-avatar-error-color
|
|
78
|
+
);
|
|
72
79
|
}
|
|
73
80
|
.amplify-avatar--info {
|
|
74
81
|
--avatar-border-color: var(--amplify-components-avatar-info-border-color);
|
|
@@ -82,6 +89,9 @@
|
|
|
82
89
|
--avatar-filled-color: var(
|
|
83
90
|
--amplify-components-avatar-info-background-color
|
|
84
91
|
);
|
|
92
|
+
--amplify-components-loader-stroke-filled: var(
|
|
93
|
+
--amplify-components-avatar-info-color
|
|
94
|
+
);
|
|
85
95
|
}
|
|
86
96
|
.amplify-avatar--success {
|
|
87
97
|
--avatar-border-color: var(
|
|
@@ -97,6 +107,9 @@
|
|
|
97
107
|
--avatar-filled-color: var(
|
|
98
108
|
--amplify-components-avatar-success-background-color
|
|
99
109
|
);
|
|
110
|
+
--amplify-components-loader-stroke-filled: var(
|
|
111
|
+
--amplify-components-avatar-success-color
|
|
112
|
+
);
|
|
100
113
|
}
|
|
101
114
|
.amplify-avatar__icon {
|
|
102
115
|
display: flex;
|
|
@@ -108,4 +121,11 @@
|
|
|
108
121
|
-o-object-fit: cover;
|
|
109
122
|
object-fit: cover;
|
|
110
123
|
display: block;
|
|
124
|
+
}
|
|
125
|
+
.amplify-avatar__loader {
|
|
126
|
+
position: absolute;
|
|
127
|
+
inset: 0;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
stroke: transparent;
|
|
111
131
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--avatar-border-color: var(--amplify-components-avatar-border-color);
|
|
8
8
|
--avatar-size: var(--amplify-components-avatar-width);
|
|
9
9
|
--amplify-components-icon-height: 100%;
|
|
10
|
+
position: relative;
|
|
10
11
|
display: inline-flex;
|
|
11
12
|
align-items: center;
|
|
12
13
|
justify-content: center;
|
|
@@ -57,6 +58,9 @@
|
|
|
57
58
|
--avatar-filled-color: var(
|
|
58
59
|
--amplify-components-avatar-warning-background-color
|
|
59
60
|
);
|
|
61
|
+
--amplify-components-loader-stroke-filled: var(
|
|
62
|
+
--amplify-components-avatar-warning-color
|
|
63
|
+
);
|
|
60
64
|
}
|
|
61
65
|
.amplify-avatar--error {
|
|
62
66
|
--avatar-border-color: var(--amplify-components-avatar-error-border-color);
|
|
@@ -70,6 +74,9 @@
|
|
|
70
74
|
--avatar-filled-color: var(
|
|
71
75
|
--amplify-components-avatar-error-background-color
|
|
72
76
|
);
|
|
77
|
+
--amplify-components-loader-stroke-filled: var(
|
|
78
|
+
--amplify-components-avatar-error-color
|
|
79
|
+
);
|
|
73
80
|
}
|
|
74
81
|
.amplify-avatar--info {
|
|
75
82
|
--avatar-border-color: var(--amplify-components-avatar-info-border-color);
|
|
@@ -83,6 +90,9 @@
|
|
|
83
90
|
--avatar-filled-color: var(
|
|
84
91
|
--amplify-components-avatar-info-background-color
|
|
85
92
|
);
|
|
93
|
+
--amplify-components-loader-stroke-filled: var(
|
|
94
|
+
--amplify-components-avatar-info-color
|
|
95
|
+
);
|
|
86
96
|
}
|
|
87
97
|
.amplify-avatar--success {
|
|
88
98
|
--avatar-border-color: var(
|
|
@@ -98,6 +108,9 @@
|
|
|
98
108
|
--avatar-filled-color: var(
|
|
99
109
|
--amplify-components-avatar-success-background-color
|
|
100
110
|
);
|
|
111
|
+
--amplify-components-loader-stroke-filled: var(
|
|
112
|
+
--amplify-components-avatar-success-color
|
|
113
|
+
);
|
|
101
114
|
}
|
|
102
115
|
.amplify-avatar__icon {
|
|
103
116
|
display: flex;
|
|
@@ -110,4 +123,11 @@
|
|
|
110
123
|
object-fit: cover;
|
|
111
124
|
display: block;
|
|
112
125
|
}
|
|
126
|
+
.amplify-avatar__loader {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 100%;
|
|
131
|
+
stroke: transparent;
|
|
132
|
+
}
|
|
113
133
|
}
|
|
@@ -27,12 +27,14 @@
|
|
|
27
27
|
font-weight: var(--amplify-components-breadcrumbs-link-font-weight);
|
|
28
28
|
padding-inline: var(--amplify-components-breadcrumbs-link-padding-inline);
|
|
29
29
|
padding-block: var(--amplify-components-breadcrumbs-link-padding-block);
|
|
30
|
-
text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
30
|
+
-webkit-text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
31
|
+
text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.amplify-breadcrumbs__link--current {
|
|
34
35
|
color: var(--amplify-components-breadcrumbs-link-current-color);
|
|
35
36
|
font-size: var(--amplify-components-breadcrumbs-link-current-font-size);
|
|
36
37
|
font-weight: var(--amplify-components-breadcrumbs-link-current-font-weight);
|
|
37
|
-
text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
38
|
+
-webkit-text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
39
|
+
text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
38
40
|
}
|
|
@@ -28,13 +28,15 @@
|
|
|
28
28
|
font-weight: var(--amplify-components-breadcrumbs-link-font-weight);
|
|
29
29
|
padding-inline: var(--amplify-components-breadcrumbs-link-padding-inline);
|
|
30
30
|
padding-block: var(--amplify-components-breadcrumbs-link-padding-block);
|
|
31
|
-
text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
31
|
+
-webkit-text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
32
|
+
text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.amplify-breadcrumbs__link--current {
|
|
35
36
|
color: var(--amplify-components-breadcrumbs-link-current-color);
|
|
36
37
|
font-size: var(--amplify-components-breadcrumbs-link-current-font-size);
|
|
37
38
|
font-weight: var(--amplify-components-breadcrumbs-link-current-font-weight);
|
|
38
|
-
text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
39
|
+
-webkit-text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
40
|
+
text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
|
|
39
41
|
}
|
|
40
42
|
}
|
package/dist/styles/button.css
CHANGED
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
padding-inline-start: var(--amplify-components-button-padding-inline-start);
|
|
35
35
|
padding-inline-end: var(--amplify-components-button-padding-inline-end);
|
|
36
36
|
transition: all var(--amplify-components-button-transition-duration);
|
|
37
|
-
-
|
|
38
|
-
|
|
37
|
+
-webkit-user-select: none;
|
|
38
|
+
-moz-user-select: none;
|
|
39
|
+
user-select: none;
|
|
39
40
|
--amplify-internal-button-disabled-color: var(
|
|
40
41
|
--amplify-components-button-disabled-color
|
|
41
42
|
);
|
|
@@ -1056,50 +1057,58 @@
|
|
|
1056
1057
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1057
1058
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1058
1059
|
color: var(--amplify-internal-button-disabled-color);
|
|
1059
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1060
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1061
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1060
1062
|
cursor: not-allowed;
|
|
1061
1063
|
}
|
|
1062
1064
|
.amplify-button--disabled:hover {
|
|
1063
1065
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1064
1066
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1065
1067
|
color: var(--amplify-internal-button-disabled-color);
|
|
1066
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1068
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1069
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1067
1070
|
}
|
|
1068
1071
|
.amplify-button--disabled :focus {
|
|
1069
1072
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1070
1073
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1071
1074
|
color: var(--amplify-internal-button-disabled-color);
|
|
1072
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1075
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1076
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1073
1077
|
}
|
|
1074
1078
|
.amplify-button--disabled:active {
|
|
1075
1079
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1076
1080
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1077
1081
|
color: var(--amplify-internal-button-disabled-color);
|
|
1078
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1082
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1083
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1079
1084
|
}
|
|
1080
1085
|
.amplify-button--loading {
|
|
1081
1086
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1082
1087
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1083
1088
|
color: var(--amplify-components-button-loading-color);
|
|
1084
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1089
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1090
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1085
1091
|
}
|
|
1086
1092
|
.amplify-button--loading:hover {
|
|
1087
1093
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1088
1094
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1089
1095
|
color: var(--amplify-components-button-loading-color);
|
|
1090
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1096
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1097
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1091
1098
|
}
|
|
1092
1099
|
.amplify-button--loading:focus {
|
|
1093
1100
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1094
1101
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1095
1102
|
color: var(--amplify-components-button-loading-color);
|
|
1096
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1103
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1104
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1097
1105
|
}
|
|
1098
1106
|
.amplify-button--loading:active {
|
|
1099
1107
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1100
1108
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1101
1109
|
color: var(--amplify-components-button-loading-color);
|
|
1102
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1110
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1111
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1103
1112
|
}
|
|
1104
1113
|
.amplify-button__loader-wrapper {
|
|
1105
1114
|
align-items: var(--amplify-components-button-loader-wrapper-align-items);
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
padding-inline-start: var(--amplify-components-button-padding-inline-start);
|
|
36
36
|
padding-inline-end: var(--amplify-components-button-padding-inline-end);
|
|
37
37
|
transition: all var(--amplify-components-button-transition-duration);
|
|
38
|
-
-
|
|
39
|
-
|
|
38
|
+
-webkit-user-select: none;
|
|
39
|
+
-moz-user-select: none;
|
|
40
|
+
user-select: none;
|
|
40
41
|
--amplify-internal-button-disabled-color: var(
|
|
41
42
|
--amplify-components-button-disabled-color
|
|
42
43
|
);
|
|
@@ -1057,50 +1058,58 @@
|
|
|
1057
1058
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1058
1059
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1059
1060
|
color: var(--amplify-internal-button-disabled-color);
|
|
1060
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1061
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1062
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1061
1063
|
cursor: not-allowed;
|
|
1062
1064
|
}
|
|
1063
1065
|
.amplify-button--disabled:hover {
|
|
1064
1066
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1065
1067
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1066
1068
|
color: var(--amplify-internal-button-disabled-color);
|
|
1067
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1069
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1070
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1068
1071
|
}
|
|
1069
1072
|
.amplify-button--disabled :focus {
|
|
1070
1073
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1071
1074
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1072
1075
|
color: var(--amplify-internal-button-disabled-color);
|
|
1073
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1076
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1077
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1074
1078
|
}
|
|
1075
1079
|
.amplify-button--disabled:active {
|
|
1076
1080
|
background-color: var(--amplify-internal-button-disabled-background-color);
|
|
1077
1081
|
border-color: var(--amplify-internal-button-disabled-border-color);
|
|
1078
1082
|
color: var(--amplify-internal-button-disabled-color);
|
|
1079
|
-
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1083
|
+
-webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1084
|
+
text-decoration: var(--amplify-internal-button-disabled-text-decoration);
|
|
1080
1085
|
}
|
|
1081
1086
|
.amplify-button--loading {
|
|
1082
1087
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1083
1088
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1084
1089
|
color: var(--amplify-components-button-loading-color);
|
|
1085
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1090
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1091
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1086
1092
|
}
|
|
1087
1093
|
.amplify-button--loading:hover {
|
|
1088
1094
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1089
1095
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1090
1096
|
color: var(--amplify-components-button-loading-color);
|
|
1091
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1097
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1098
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1092
1099
|
}
|
|
1093
1100
|
.amplify-button--loading:focus {
|
|
1094
1101
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1095
1102
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1096
1103
|
color: var(--amplify-components-button-loading-color);
|
|
1097
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1104
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1105
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1098
1106
|
}
|
|
1099
1107
|
.amplify-button--loading:active {
|
|
1100
1108
|
background-color: var(--amplify-internal-button-loading-background-color);
|
|
1101
1109
|
border-color: var(--amplify-internal-button-loading-border-color);
|
|
1102
1110
|
color: var(--amplify-components-button-loading-color);
|
|
1103
|
-
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1111
|
+
-webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1112
|
+
text-decoration: var(--amplify-internal-button-loading-text-decoration);
|
|
1104
1113
|
}
|
|
1105
1114
|
.amplify-button__loader-wrapper {
|
|
1106
1115
|
align-items: var(--amplify-components-button-loader-wrapper-align-items);
|
package/dist/styles/input.css
CHANGED
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
outline-style: var(--amplify-components-fieldcontrol-outline-style);
|
|
18
18
|
outline-width: var(--amplify-components-fieldcontrol-outline-width);
|
|
19
19
|
outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
|
|
20
|
-
-
|
|
21
|
-
|
|
20
|
+
-webkit-user-select: text;
|
|
21
|
+
-moz-user-select: text;
|
|
22
|
+
user-select: text;
|
|
22
23
|
display: inline-block;
|
|
23
24
|
--amplify-components-fieldcontrol-color: var(
|
|
24
25
|
--amplify-components-input-color
|