@aws-amplify/ui 6.5.0 → 6.6.1

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.
@@ -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 email',
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': 'Réinitialisez votre mot de passe',
95
- 'Reset Password': 'Réinitialisez votre mot de passe',
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 };
@@ -16,6 +16,8 @@ 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';
20
+ export { createGlobalCSS } from './theme/createTheme/createGlobalCSS.mjs';
19
21
  export { cssNameTransform, isDesignToken, setupTokens } from './theme/createTheme/utils.mjs';
20
22
  export { createComponentClasses } from './theme/createTheme/createComponentClasses.mjs';
21
23
  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(themeName, components, tokens, breakpoints) {
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}`;
@@ -83,4 +84,4 @@ function createComponentCSS(themeName, components, tokens, breakpoints) {
83
84
  return cssText;
84
85
  }
85
86
 
86
- export { createComponentCSS };
87
+ export { createComponentCSS, recursiveComponentCSS };
@@ -0,0 +1,11 @@
1
+ import { recursiveComponentCSS } from './createComponentCSS.mjs';
2
+
3
+ function createGlobalCSS(css) {
4
+ let cssText = ``;
5
+ for (const [selector, styles] of Object.entries(css)) {
6
+ cssText += recursiveComponentCSS(selector, styles);
7
+ }
8
+ return cssText;
9
+ }
10
+
11
+ export { createGlobalCSS };
@@ -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(name, theme.components, tokens, mergedTheme.breakpoints);
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
 
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 email',
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': 'Réinitialisez votre mot de passe',
1060
- 'Reset Password': 'Réinitialisez votre mot de passe',
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 = {
@@ -8699,8 +8727,9 @@ function recursiveComponentCSS(baseSelector, theme) {
8699
8727
  * This will take a component theme and create the appropriate CSS for it.
8700
8728
  *
8701
8729
  */
8702
- function createComponentCSS(themeName, components, tokens, breakpoints) {
8730
+ function createComponentCSS({ theme, components, }) {
8703
8731
  let cssText = '';
8732
+ const { tokens, name: themeName, breakpoints } = theme;
8704
8733
  components.forEach(({ name, theme, overrides }) => {
8705
8734
  const baseComponentClassName = `amplify-${name}`;
8706
8735
  const componentClassName = `[data-amplify-theme="${themeName}"] .${baseComponentClassName}`;
@@ -8826,7 +8855,13 @@ function createTheme(theme, DefaultTheme = defaultTheme) {
8826
8855
  .join('\n') +
8827
8856
  `\n}\n`;
8828
8857
  if (theme?.components) {
8829
- cssText += createComponentCSS(name, theme.components, tokens, mergedTheme.breakpoints);
8858
+ cssText += createComponentCSS({
8859
+ theme: {
8860
+ ...mergedTheme,
8861
+ tokens,
8862
+ },
8863
+ components: theme.components,
8864
+ });
8830
8865
  }
8831
8866
  let overrides = [];
8832
8867
  if (mergedTheme.animations) {
@@ -9008,14 +9043,29 @@ function defineComponentTheme({ name, theme, overrides, }) {
9008
9043
  name,
9009
9044
  prefix,
9010
9045
  });
9046
+ const cssText = (props) => {
9047
+ return createComponentCSS({
9048
+ theme: props.theme,
9049
+ components: [{ name, theme }],
9050
+ });
9051
+ };
9011
9052
  return {
9012
9053
  className,
9013
9054
  theme,
9014
9055
  overrides,
9015
9056
  name,
9057
+ cssText,
9016
9058
  };
9017
9059
  }
9018
9060
 
9061
+ function createGlobalCSS(css) {
9062
+ let cssText = ``;
9063
+ for (const [selector, styles] of Object.entries(css)) {
9064
+ cssText += recursiveComponentCSS(selector, styles);
9065
+ }
9066
+ return cssText;
9067
+ }
9068
+
9019
9069
  const darkModeTokens = {
9020
9070
  colors: {
9021
9071
  red: {
@@ -9163,7 +9213,9 @@ exports.classNameModifierByFlag = classNameModifierByFlag;
9163
9213
  exports.classNames = classNames;
9164
9214
  exports.countryDialCodes = countryDialCodes;
9165
9215
  exports.createAuthenticatorMachine = createAuthenticatorMachine;
9216
+ exports.createComponentCSS = createComponentCSS;
9166
9217
  exports.createComponentClasses = createComponentClasses;
9218
+ exports.createGlobalCSS = createGlobalCSS;
9167
9219
  exports.createTheme = createTheme;
9168
9220
  exports.cssNameTransform = cssNameTransform;
9169
9221
  exports.defaultAuthHubHandler = defaultAuthHubHandler;
@@ -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
  }
@@ -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
- -moz-user-select: none;
38
- user-select: none;
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
- -moz-user-select: none;
39
- user-select: none;
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);
@@ -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
- -moz-user-select: text;
21
- user-select: text;
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
@@ -18,8 +18,9 @@
18
18
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
19
19
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
20
20
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
21
- -moz-user-select: text;
22
- user-select: text;
21
+ -webkit-user-select: text;
22
+ -moz-user-select: text;
23
+ user-select: text;
23
24
  display: inline-block;
24
25
  --amplify-components-fieldcontrol-color: var(
25
26
  --amplify-components-input-color
@@ -1,21 +1,26 @@
1
1
  .amplify-link {
2
2
  color: var(--amplify-components-link-color);
3
- text-decoration: var(--amplify-components-link-text-decoration);
3
+ -webkit-text-decoration: var(--amplify-components-link-text-decoration);
4
+ text-decoration: var(--amplify-components-link-text-decoration);
4
5
  cursor: pointer;
5
6
  }
6
7
  .amplify-link:visited {
7
8
  color: var(--amplify-components-link-visited-color);
8
- text-decoration: var(--amplify-components-link-visited-text-decoration);
9
+ -webkit-text-decoration: var(--amplify-components-link-visited-text-decoration);
10
+ text-decoration: var(--amplify-components-link-visited-text-decoration);
9
11
  }
10
12
  .amplify-link:active {
11
13
  color: var(--amplify-components-link-active-color);
12
- text-decoration: var(--amplify-components-link-active-text-decoration);
14
+ -webkit-text-decoration: var(--amplify-components-link-active-text-decoration);
15
+ text-decoration: var(--amplify-components-link-active-text-decoration);
13
16
  }
14
17
  .amplify-link:focus {
15
18
  color: var(--amplify-components-link-focus-color);
16
- text-decoration: var(--amplify-components-link-focus-text-decoration);
19
+ -webkit-text-decoration: var(--amplify-components-link-focus-text-decoration);
20
+ text-decoration: var(--amplify-components-link-focus-text-decoration);
17
21
  }
18
22
  .amplify-link:hover {
19
23
  color: var(--amplify-components-link-hover-color);
20
- text-decoration: var(--amplify-components-link-hover-text-decoration);
24
+ -webkit-text-decoration: var(--amplify-components-link-hover-text-decoration);
25
+ text-decoration: var(--amplify-components-link-hover-text-decoration);
21
26
  }
@@ -1,23 +1,28 @@
1
1
  @layer amplify.components {
2
2
  .amplify-link {
3
3
  color: var(--amplify-components-link-color);
4
- text-decoration: var(--amplify-components-link-text-decoration);
4
+ -webkit-text-decoration: var(--amplify-components-link-text-decoration);
5
+ text-decoration: var(--amplify-components-link-text-decoration);
5
6
  cursor: pointer;
6
7
  }
7
8
  .amplify-link:visited {
8
9
  color: var(--amplify-components-link-visited-color);
9
- text-decoration: var(--amplify-components-link-visited-text-decoration);
10
+ -webkit-text-decoration: var(--amplify-components-link-visited-text-decoration);
11
+ text-decoration: var(--amplify-components-link-visited-text-decoration);
10
12
  }
11
13
  .amplify-link:active {
12
14
  color: var(--amplify-components-link-active-color);
13
- text-decoration: var(--amplify-components-link-active-text-decoration);
15
+ -webkit-text-decoration: var(--amplify-components-link-active-text-decoration);
16
+ text-decoration: var(--amplify-components-link-active-text-decoration);
14
17
  }
15
18
  .amplify-link:focus {
16
19
  color: var(--amplify-components-link-focus-color);
17
- text-decoration: var(--amplify-components-link-focus-text-decoration);
20
+ -webkit-text-decoration: var(--amplify-components-link-focus-text-decoration);
21
+ text-decoration: var(--amplify-components-link-focus-text-decoration);
18
22
  }
19
23
  .amplify-link:hover {
20
24
  color: var(--amplify-components-link-hover-color);
21
- text-decoration: var(--amplify-components-link-hover-text-decoration);
25
+ -webkit-text-decoration: var(--amplify-components-link-hover-text-decoration);
26
+ text-decoration: var(--amplify-components-link-hover-text-decoration);
22
27
  }
23
28
  }
@@ -6,6 +6,8 @@
6
6
 
7
7
  html:focus-within {
8
8
  scroll-behavior: smooth;
9
+ -moz-text-size-adjust: none;
10
+ -webkit-text-size-adjust: none;
9
11
  text-size-adjust: none;
10
12
  }
11
13
 
@@ -52,7 +54,8 @@ picture {
52
54
  }
53
55
 
54
56
  a:not([class]) {
55
- text-decoration-skip-ink: auto;
57
+ -webkit-text-decoration-skip: ink;
58
+ text-decoration-skip-ink: auto;
56
59
  color: currentColor;
57
60
  }
58
61
 
@@ -7,6 +7,8 @@
7
7
 
8
8
  html:focus-within {
9
9
  scroll-behavior: smooth;
10
+ -moz-text-size-adjust: none;
11
+ -webkit-text-size-adjust: none;
10
12
  text-size-adjust: none;
11
13
  }
12
14
 
@@ -53,7 +55,8 @@ picture {
53
55
  }
54
56
 
55
57
  a:not([class]) {
56
- text-decoration-skip-ink: auto;
58
+ -webkit-text-decoration-skip: ink;
59
+ text-decoration-skip-ink: auto;
57
60
  color: currentColor;
58
61
  }
59
62
 
@@ -14,8 +14,9 @@
14
14
  padding-block: var(--amplify-components-sliderfield-padding-block);
15
15
  position: relative;
16
16
  touch-action: none;
17
- -moz-user-select: none;
18
- user-select: none;
17
+ -webkit-user-select: none;
18
+ -moz-user-select: none;
19
+ user-select: none;
19
20
  --amplify-internal-sliderfield-root-height: var(
20
21
  --amplify-components-sliderfield-thumb-height
21
22
  );
@@ -15,8 +15,9 @@
15
15
  padding-block: var(--amplify-components-sliderfield-padding-block);
16
16
  position: relative;
17
17
  touch-action: none;
18
- -moz-user-select: none;
19
- user-select: none;
18
+ -webkit-user-select: none;
19
+ -moz-user-select: none;
20
+ user-select: none;
20
21
  --amplify-internal-sliderfield-root-height: var(
21
22
  --amplify-components-sliderfield-thumb-height
22
23
  );
@@ -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
- -moz-user-select: text;
21
- user-select: text;
20
+ -webkit-user-select: text;
21
+ -moz-user-select: text;
22
+ user-select: text;
22
23
  white-space: pre-wrap;
23
24
  }
24
25
  .amplify-textarea:focus {
@@ -18,8 +18,9 @@
18
18
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
19
19
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
20
20
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
21
- -moz-user-select: text;
22
- user-select: text;
21
+ -webkit-user-select: text;
22
+ -moz-user-select: text;
23
+ user-select: text;
23
24
  white-space: pre-wrap;
24
25
  }
25
26
  .amplify-textarea:focus {
package/dist/styles.css CHANGED
@@ -1730,8 +1730,9 @@ strong.amplify-text {
1730
1730
  padding-inline-start: var(--amplify-components-button-padding-inline-start);
1731
1731
  padding-inline-end: var(--amplify-components-button-padding-inline-end);
1732
1732
  transition: all var(--amplify-components-button-transition-duration);
1733
- -moz-user-select: none;
1734
- user-select: none;
1733
+ -webkit-user-select: none;
1734
+ -moz-user-select: none;
1735
+ user-select: none;
1735
1736
  --amplify-internal-button-disabled-color: var(
1736
1737
  --amplify-components-button-disabled-color
1737
1738
  );
@@ -2752,50 +2753,58 @@ strong.amplify-text {
2752
2753
  background-color: var(--amplify-internal-button-disabled-background-color);
2753
2754
  border-color: var(--amplify-internal-button-disabled-border-color);
2754
2755
  color: var(--amplify-internal-button-disabled-color);
2755
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2756
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2757
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2756
2758
  cursor: not-allowed;
2757
2759
  }
2758
2760
  .amplify-button--disabled:hover {
2759
2761
  background-color: var(--amplify-internal-button-disabled-background-color);
2760
2762
  border-color: var(--amplify-internal-button-disabled-border-color);
2761
2763
  color: var(--amplify-internal-button-disabled-color);
2762
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2764
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2765
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2763
2766
  }
2764
2767
  .amplify-button--disabled :focus {
2765
2768
  background-color: var(--amplify-internal-button-disabled-background-color);
2766
2769
  border-color: var(--amplify-internal-button-disabled-border-color);
2767
2770
  color: var(--amplify-internal-button-disabled-color);
2768
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2771
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2772
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2769
2773
  }
2770
2774
  .amplify-button--disabled:active {
2771
2775
  background-color: var(--amplify-internal-button-disabled-background-color);
2772
2776
  border-color: var(--amplify-internal-button-disabled-border-color);
2773
2777
  color: var(--amplify-internal-button-disabled-color);
2774
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2778
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2779
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2775
2780
  }
2776
2781
  .amplify-button--loading {
2777
2782
  background-color: var(--amplify-internal-button-loading-background-color);
2778
2783
  border-color: var(--amplify-internal-button-loading-border-color);
2779
2784
  color: var(--amplify-components-button-loading-color);
2780
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2785
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2786
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2781
2787
  }
2782
2788
  .amplify-button--loading:hover {
2783
2789
  background-color: var(--amplify-internal-button-loading-background-color);
2784
2790
  border-color: var(--amplify-internal-button-loading-border-color);
2785
2791
  color: var(--amplify-components-button-loading-color);
2786
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2792
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2793
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2787
2794
  }
2788
2795
  .amplify-button--loading:focus {
2789
2796
  background-color: var(--amplify-internal-button-loading-background-color);
2790
2797
  border-color: var(--amplify-internal-button-loading-border-color);
2791
2798
  color: var(--amplify-components-button-loading-color);
2792
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2799
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2800
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2793
2801
  }
2794
2802
  .amplify-button--loading:active {
2795
2803
  background-color: var(--amplify-internal-button-loading-background-color);
2796
2804
  border-color: var(--amplify-internal-button-loading-border-color);
2797
2805
  color: var(--amplify-components-button-loading-color);
2798
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2806
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2807
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2799
2808
  }
2800
2809
  .amplify-button__loader-wrapper {
2801
2810
  align-items: var(--amplify-components-button-loader-wrapper-align-items);
@@ -2943,8 +2952,9 @@ strong.amplify-text {
2943
2952
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
2944
2953
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
2945
2954
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
2946
- -moz-user-select: text;
2947
- user-select: text;
2955
+ -webkit-user-select: text;
2956
+ -moz-user-select: text;
2957
+ user-select: text;
2948
2958
  display: inline-block;
2949
2959
  --amplify-components-fieldcontrol-color: var(
2950
2960
  --amplify-components-input-color
@@ -3027,8 +3037,9 @@ strong.amplify-text {
3027
3037
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
3028
3038
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
3029
3039
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
3030
- -moz-user-select: text;
3031
- user-select: text;
3040
+ -webkit-user-select: text;
3041
+ -moz-user-select: text;
3042
+ user-select: text;
3032
3043
  white-space: pre-wrap;
3033
3044
  }
3034
3045
  .amplify-textarea:focus {
@@ -3092,24 +3103,29 @@ strong.amplify-text {
3092
3103
 
3093
3104
  .amplify-link {
3094
3105
  color: var(--amplify-components-link-color);
3095
- text-decoration: var(--amplify-components-link-text-decoration);
3106
+ -webkit-text-decoration: var(--amplify-components-link-text-decoration);
3107
+ text-decoration: var(--amplify-components-link-text-decoration);
3096
3108
  cursor: pointer;
3097
3109
  }
3098
3110
  .amplify-link:visited {
3099
3111
  color: var(--amplify-components-link-visited-color);
3100
- text-decoration: var(--amplify-components-link-visited-text-decoration);
3112
+ -webkit-text-decoration: var(--amplify-components-link-visited-text-decoration);
3113
+ text-decoration: var(--amplify-components-link-visited-text-decoration);
3101
3114
  }
3102
3115
  .amplify-link:active {
3103
3116
  color: var(--amplify-components-link-active-color);
3104
- text-decoration: var(--amplify-components-link-active-text-decoration);
3117
+ -webkit-text-decoration: var(--amplify-components-link-active-text-decoration);
3118
+ text-decoration: var(--amplify-components-link-active-text-decoration);
3105
3119
  }
3106
3120
  .amplify-link:focus {
3107
3121
  color: var(--amplify-components-link-focus-color);
3108
- text-decoration: var(--amplify-components-link-focus-text-decoration);
3122
+ -webkit-text-decoration: var(--amplify-components-link-focus-text-decoration);
3123
+ text-decoration: var(--amplify-components-link-focus-text-decoration);
3109
3124
  }
3110
3125
  .amplify-link:hover {
3111
3126
  color: var(--amplify-components-link-hover-color);
3112
- text-decoration: var(--amplify-components-link-hover-text-decoration);
3127
+ -webkit-text-decoration: var(--amplify-components-link-hover-text-decoration);
3128
+ text-decoration: var(--amplify-components-link-hover-text-decoration);
3113
3129
  }
3114
3130
 
3115
3131
  .amplify-loader {
@@ -3672,14 +3688,16 @@ strong.amplify-text {
3672
3688
  font-weight: var(--amplify-components-breadcrumbs-link-font-weight);
3673
3689
  padding-inline: var(--amplify-components-breadcrumbs-link-padding-inline);
3674
3690
  padding-block: var(--amplify-components-breadcrumbs-link-padding-block);
3675
- text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3691
+ -webkit-text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3692
+ text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3676
3693
  }
3677
3694
 
3678
3695
  .amplify-breadcrumbs__link--current {
3679
3696
  color: var(--amplify-components-breadcrumbs-link-current-color);
3680
3697
  font-size: var(--amplify-components-breadcrumbs-link-current-font-size);
3681
3698
  font-weight: var(--amplify-components-breadcrumbs-link-current-font-weight);
3682
- text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3699
+ -webkit-text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3700
+ text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3683
3701
  }
3684
3702
 
3685
3703
  .amplify-card {
@@ -5229,8 +5247,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
5229
5247
  padding-block: var(--amplify-components-sliderfield-padding-block);
5230
5248
  position: relative;
5231
5249
  touch-action: none;
5232
- -moz-user-select: none;
5233
- user-select: none;
5250
+ -webkit-user-select: none;
5251
+ -moz-user-select: none;
5252
+ user-select: none;
5234
5253
  --amplify-internal-sliderfield-root-height: var(
5235
5254
  --amplify-components-sliderfield-thumb-height
5236
5255
  );
@@ -1731,8 +1731,9 @@ strong.amplify-text {
1731
1731
  padding-inline-start: var(--amplify-components-button-padding-inline-start);
1732
1732
  padding-inline-end: var(--amplify-components-button-padding-inline-end);
1733
1733
  transition: all var(--amplify-components-button-transition-duration);
1734
- -moz-user-select: none;
1735
- user-select: none;
1734
+ -webkit-user-select: none;
1735
+ -moz-user-select: none;
1736
+ user-select: none;
1736
1737
  --amplify-internal-button-disabled-color: var(
1737
1738
  --amplify-components-button-disabled-color
1738
1739
  );
@@ -2753,50 +2754,58 @@ strong.amplify-text {
2753
2754
  background-color: var(--amplify-internal-button-disabled-background-color);
2754
2755
  border-color: var(--amplify-internal-button-disabled-border-color);
2755
2756
  color: var(--amplify-internal-button-disabled-color);
2756
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2757
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2758
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2757
2759
  cursor: not-allowed;
2758
2760
  }
2759
2761
  .amplify-button--disabled:hover {
2760
2762
  background-color: var(--amplify-internal-button-disabled-background-color);
2761
2763
  border-color: var(--amplify-internal-button-disabled-border-color);
2762
2764
  color: var(--amplify-internal-button-disabled-color);
2763
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2765
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2766
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2764
2767
  }
2765
2768
  .amplify-button--disabled :focus {
2766
2769
  background-color: var(--amplify-internal-button-disabled-background-color);
2767
2770
  border-color: var(--amplify-internal-button-disabled-border-color);
2768
2771
  color: var(--amplify-internal-button-disabled-color);
2769
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2772
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2773
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2770
2774
  }
2771
2775
  .amplify-button--disabled:active {
2772
2776
  background-color: var(--amplify-internal-button-disabled-background-color);
2773
2777
  border-color: var(--amplify-internal-button-disabled-border-color);
2774
2778
  color: var(--amplify-internal-button-disabled-color);
2775
- text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2779
+ -webkit-text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2780
+ text-decoration: var(--amplify-internal-button-disabled-text-decoration);
2776
2781
  }
2777
2782
  .amplify-button--loading {
2778
2783
  background-color: var(--amplify-internal-button-loading-background-color);
2779
2784
  border-color: var(--amplify-internal-button-loading-border-color);
2780
2785
  color: var(--amplify-components-button-loading-color);
2781
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2786
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2787
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2782
2788
  }
2783
2789
  .amplify-button--loading:hover {
2784
2790
  background-color: var(--amplify-internal-button-loading-background-color);
2785
2791
  border-color: var(--amplify-internal-button-loading-border-color);
2786
2792
  color: var(--amplify-components-button-loading-color);
2787
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2793
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2794
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2788
2795
  }
2789
2796
  .amplify-button--loading:focus {
2790
2797
  background-color: var(--amplify-internal-button-loading-background-color);
2791
2798
  border-color: var(--amplify-internal-button-loading-border-color);
2792
2799
  color: var(--amplify-components-button-loading-color);
2793
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2800
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2801
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2794
2802
  }
2795
2803
  .amplify-button--loading:active {
2796
2804
  background-color: var(--amplify-internal-button-loading-background-color);
2797
2805
  border-color: var(--amplify-internal-button-loading-border-color);
2798
2806
  color: var(--amplify-components-button-loading-color);
2799
- text-decoration: var(--amplify-internal-button-loading-text-decoration);
2807
+ -webkit-text-decoration: var(--amplify-internal-button-loading-text-decoration);
2808
+ text-decoration: var(--amplify-internal-button-loading-text-decoration);
2800
2809
  }
2801
2810
  .amplify-button__loader-wrapper {
2802
2811
  align-items: var(--amplify-components-button-loader-wrapper-align-items);
@@ -2944,8 +2953,9 @@ strong.amplify-text {
2944
2953
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
2945
2954
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
2946
2955
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
2947
- -moz-user-select: text;
2948
- user-select: text;
2956
+ -webkit-user-select: text;
2957
+ -moz-user-select: text;
2958
+ user-select: text;
2949
2959
  display: inline-block;
2950
2960
  --amplify-components-fieldcontrol-color: var(
2951
2961
  --amplify-components-input-color
@@ -3028,8 +3038,9 @@ strong.amplify-text {
3028
3038
  outline-style: var(--amplify-components-fieldcontrol-outline-style);
3029
3039
  outline-width: var(--amplify-components-fieldcontrol-outline-width);
3030
3040
  outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
3031
- -moz-user-select: text;
3032
- user-select: text;
3041
+ -webkit-user-select: text;
3042
+ -moz-user-select: text;
3043
+ user-select: text;
3033
3044
  white-space: pre-wrap;
3034
3045
  }
3035
3046
  .amplify-textarea:focus {
@@ -3093,24 +3104,29 @@ strong.amplify-text {
3093
3104
 
3094
3105
  .amplify-link {
3095
3106
  color: var(--amplify-components-link-color);
3096
- text-decoration: var(--amplify-components-link-text-decoration);
3107
+ -webkit-text-decoration: var(--amplify-components-link-text-decoration);
3108
+ text-decoration: var(--amplify-components-link-text-decoration);
3097
3109
  cursor: pointer;
3098
3110
  }
3099
3111
  .amplify-link:visited {
3100
3112
  color: var(--amplify-components-link-visited-color);
3101
- text-decoration: var(--amplify-components-link-visited-text-decoration);
3113
+ -webkit-text-decoration: var(--amplify-components-link-visited-text-decoration);
3114
+ text-decoration: var(--amplify-components-link-visited-text-decoration);
3102
3115
  }
3103
3116
  .amplify-link:active {
3104
3117
  color: var(--amplify-components-link-active-color);
3105
- text-decoration: var(--amplify-components-link-active-text-decoration);
3118
+ -webkit-text-decoration: var(--amplify-components-link-active-text-decoration);
3119
+ text-decoration: var(--amplify-components-link-active-text-decoration);
3106
3120
  }
3107
3121
  .amplify-link:focus {
3108
3122
  color: var(--amplify-components-link-focus-color);
3109
- text-decoration: var(--amplify-components-link-focus-text-decoration);
3123
+ -webkit-text-decoration: var(--amplify-components-link-focus-text-decoration);
3124
+ text-decoration: var(--amplify-components-link-focus-text-decoration);
3110
3125
  }
3111
3126
  .amplify-link:hover {
3112
3127
  color: var(--amplify-components-link-hover-color);
3113
- text-decoration: var(--amplify-components-link-hover-text-decoration);
3128
+ -webkit-text-decoration: var(--amplify-components-link-hover-text-decoration);
3129
+ text-decoration: var(--amplify-components-link-hover-text-decoration);
3114
3130
  }
3115
3131
 
3116
3132
  .amplify-loader {
@@ -3673,14 +3689,16 @@ strong.amplify-text {
3673
3689
  font-weight: var(--amplify-components-breadcrumbs-link-font-weight);
3674
3690
  padding-inline: var(--amplify-components-breadcrumbs-link-padding-inline);
3675
3691
  padding-block: var(--amplify-components-breadcrumbs-link-padding-block);
3676
- text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3692
+ -webkit-text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3693
+ text-decoration: var(--amplify-components-breadcrumbs-link-text-decoration);
3677
3694
  }
3678
3695
 
3679
3696
  .amplify-breadcrumbs__link--current {
3680
3697
  color: var(--amplify-components-breadcrumbs-link-current-color);
3681
3698
  font-size: var(--amplify-components-breadcrumbs-link-current-font-size);
3682
3699
  font-weight: var(--amplify-components-breadcrumbs-link-current-font-weight);
3683
- text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3700
+ -webkit-text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3701
+ text-decoration: var(--amplify-components-breadcrumbs-link-current-text-decoration);
3684
3702
  }
3685
3703
 
3686
3704
  .amplify-card {
@@ -5230,8 +5248,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
5230
5248
  padding-block: var(--amplify-components-sliderfield-padding-block);
5231
5249
  position: relative;
5232
5250
  touch-action: none;
5233
- -moz-user-select: none;
5234
- user-select: none;
5251
+ -webkit-user-select: none;
5252
+ -moz-user-select: none;
5253
+ user-select: none;
5235
5254
  --amplify-internal-sliderfield-root-height: var(
5236
5255
  --amplify-components-sliderfield-thumb-height
5237
5256
  );
@@ -1,7 +1,14 @@
1
- import { DefaultTheme, WebTheme } from '../types';
1
+ import { WebTheme } from '../types';
2
2
  import { ComponentsTheme } from '../components';
3
+ import { BaseTheme } from '../components/utils';
4
+ export declare function recursiveComponentCSS(baseSelector: string, theme: BaseTheme): string;
5
+ interface CreateComponentCSSParams {
6
+ theme: Pick<WebTheme, 'tokens' | 'breakpoints' | 'name'>;
7
+ components: Array<ComponentsTheme>;
8
+ }
3
9
  /**
4
10
  * This will take a component theme and create the appropriate CSS for it.
5
11
  *
6
12
  */
7
- export declare function createComponentCSS(themeName: string, components: Array<ComponentsTheme>, tokens: WebTheme['tokens'], breakpoints: DefaultTheme['breakpoints']): string;
13
+ export declare function createComponentCSS({ theme, components, }: CreateComponentCSSParams): string;
14
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ComponentStyles } from '../components/utils';
2
+ type GlobalCSS = Record<string, ComponentStyles>;
3
+ export declare function createGlobalCSS(css: GlobalCSS): string;
4
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { ComponentThemeFromName, ComponentsTheme } from '../components';
2
2
  import { BaseTheme, ComponentTheme, ComponentThemeOverride } from '../components/utils';
3
3
  import { WebTokens } from '../tokens';
4
+ import { WebTheme } from '../types';
4
5
  import { ClassNameFunction } from './createComponentClasses';
5
6
  type CreateComponentThemeProps<TokensType extends WebTokens = WebTokens, ThemeType extends BaseTheme = BaseTheme, NameType extends string = string, OverridesType extends BaseTheme = BaseTheme> = {
6
7
  name: NameType;
@@ -50,5 +51,8 @@ export declare function defineComponentTheme<ThemeType extends BaseTheme = BaseT
50
51
  theme: typeof theme;
51
52
  name: string;
52
53
  overrides?: typeof overrides;
54
+ cssText: (props: {
55
+ theme: Pick<WebTheme, 'tokens' | 'breakpoints' | 'name'>;
56
+ }) => string;
53
57
  };
54
58
  export {};
@@ -1,4 +1,6 @@
1
1
  export { createTheme } from './createTheme';
2
2
  export { defineComponentTheme } from './defineComponentTheme';
3
+ export { createComponentCSS } from './createComponentCSS';
4
+ export { createGlobalCSS } from './createGlobalCSS';
3
5
  export { cssNameTransform, setupTokens, SetupToken, isDesignToken, } from './utils';
4
6
  export { createComponentClasses, ClassNameArgs, } from './createComponentClasses';
@@ -1,4 +1,5 @@
1
- export { createTheme, defineComponentTheme, createComponentClasses, cssNameTransform, isDesignToken, setupTokens, SetupToken, } from './createTheme';
1
+ export { createTheme, defineComponentTheme, createComponentClasses, createComponentCSS, createGlobalCSS, cssNameTransform, isDesignToken, setupTokens, SetupToken, } from './createTheme';
2
+ export { BaseComponentTheme } from './components';
2
3
  export { defaultTheme } from './defaultTheme';
3
4
  export { defaultDarkModeOverride, reactNativeDarkTokens, } from './defaultDarkModeOverride';
4
5
  export { reactNativeTokens, ReactNativeTokens } from './tokens';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "6.5.0",
3
+ "version": "6.6.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "check:esm": "node --input-type=module --eval 'import \"@aws-amplify/ui\"'",
38
38
  "clean": "rimraf dist node_modules",
39
39
  "dev": "yarn build --watch",
40
- "lint": "yarn typecheck",
40
+ "lint": "yarn typecheck && eslint src --ext .js,.ts,.tsx",
41
41
  "prebuild": "rimraf dist",
42
42
  "test": "jest",
43
43
  "test:watch": "yarn test --watch",
@@ -49,7 +49,8 @@
49
49
  "tslib": "^2.5.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "aws-amplify": "^6.3.2",
52
+ "@aws-amplify/core": "^6.4.0",
53
+ "aws-amplify": "^6.6.0",
53
54
  "xstate": "^4.33.6"
54
55
  },
55
56
  "peerDependenciesMeta": {