@aws-amplify/ui 6.15.4 → 6.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/helpers/authenticator/textUtil.mjs +5 -2
- package/dist/esm/i18n/sentencePunctuation.mjs +72 -0
- package/dist/esm/machines/authenticator/index.mjs +16 -0
- package/dist/index.js +91 -2
- package/dist/styles/base.css +4 -4
- package/dist/styles/base.layer.css +4 -4
- package/dist/styles/button.css +58 -50
- package/dist/styles/button.layer.css +58 -50
- package/dist/styles/checkbox.css +3 -3
- package/dist/styles/checkbox.layer.css +3 -3
- package/dist/styles/fieldset.css +3 -1
- package/dist/styles/fieldset.layer.css +3 -1
- package/dist/styles/input.css +18 -16
- package/dist/styles/input.layer.css +18 -16
- package/dist/styles/loader.css +4 -2
- package/dist/styles/loader.layer.css +4 -2
- package/dist/styles/select.css +7 -5
- package/dist/styles/select.layer.css +7 -5
- package/dist/styles/stepperField.css +4 -4
- package/dist/styles/stepperField.layer.css +4 -4
- package/dist/styles/table.css +5 -3
- package/dist/styles/table.layer.css +5 -3
- package/dist/styles/textArea.css +7 -5
- package/dist/styles/textArea.layer.css +7 -5
- package/dist/styles/toggleButton.css +31 -21
- package/dist/styles/toggleButton.layer.css +31 -21
- package/dist/styles.css +144 -114
- package/dist/styles.layer.css +144 -114
- package/dist/types/i18n/sentencePunctuation.d.ts +32 -0
- package/dist/types/machines/authenticator/types.d.ts +1 -0
- package/package.json +2 -2
package/dist/styles.layer.css
CHANGED
|
@@ -1513,11 +1513,11 @@
|
|
|
1513
1513
|
--amplify-colors-black: hsl(0, 0%, 0%);
|
|
1514
1514
|
--amplify-colors-white: hsl(0, 0%, 100%);
|
|
1515
1515
|
--amplify-colors-transparent: transparent;
|
|
1516
|
-
--amplify-fonts-default-variable:
|
|
1517
|
-
|
|
1516
|
+
--amplify-fonts-default-variable: 'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
|
|
1517
|
+
'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
1518
1518
|
sans-serif;
|
|
1519
|
-
--amplify-fonts-default-static:
|
|
1520
|
-
|
|
1519
|
+
--amplify-fonts-default-static: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
1520
|
+
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
|
|
1521
1521
|
--amplify-font-sizes-xxxs: 0.375rem;
|
|
1522
1522
|
--amplify-font-sizes-xxs: 0.5rem;
|
|
1523
1523
|
--amplify-font-sizes-xs: 0.75rem;
|
|
@@ -2068,9 +2068,6 @@ strong.amplify-text {
|
|
|
2068
2068
|
border-width: var(--amplify-components-button-menu-border-width);
|
|
2069
2069
|
background-color: var(--amplify-components-button-menu-background-color);
|
|
2070
2070
|
justify-content: var(--amplify-components-button-menu-justify-content);
|
|
2071
|
-
--amplify-internal-button-disabled-color: var(
|
|
2072
|
-
--amplify-components-button-menu-disabled-color
|
|
2073
|
-
);
|
|
2074
2071
|
}
|
|
2075
2072
|
.amplify-button--menu:hover {
|
|
2076
2073
|
color: var(--amplify-components-button-menu-hover-color);
|
|
@@ -2085,6 +2082,11 @@ strong.amplify-text {
|
|
|
2085
2082
|
color: var(--amplify-components-button-menu-active-color);
|
|
2086
2083
|
background-color: var(--amplify-components-button-menu-active-background-color);
|
|
2087
2084
|
}
|
|
2085
|
+
.amplify-button--menu {
|
|
2086
|
+
--amplify-internal-button-disabled-color: var(
|
|
2087
|
+
--amplify-components-button-menu-disabled-color
|
|
2088
|
+
);
|
|
2089
|
+
}
|
|
2088
2090
|
.amplify-button--primary {
|
|
2089
2091
|
--amplify-internal-button-border-width: var(
|
|
2090
2092
|
--amplify-components-button-primary-border-width
|
|
@@ -2098,24 +2100,6 @@ strong.amplify-text {
|
|
|
2098
2100
|
--amplify-internal-button-color: var(
|
|
2099
2101
|
--amplify-components-button-primary-color
|
|
2100
2102
|
);
|
|
2101
|
-
--amplify-internal-button-disabled-border-color: var(
|
|
2102
|
-
--amplify-components-button-primary-disabled-border-color
|
|
2103
|
-
);
|
|
2104
|
-
--amplify-internal-button-disabled-background-color: var(
|
|
2105
|
-
--amplify-components-button-primary-disabled-background-color
|
|
2106
|
-
);
|
|
2107
|
-
--amplify-internal-button-disabled-color: var(
|
|
2108
|
-
--amplify-components-button-primary-disabled-color
|
|
2109
|
-
);
|
|
2110
|
-
--amplify-internal-button-loading-background-color: var(
|
|
2111
|
-
--amplify-components-button-primary-loading-background-color
|
|
2112
|
-
);
|
|
2113
|
-
--amplify-internal-button-loading-border-color: var(
|
|
2114
|
-
--amplify-components-button-primary-loading-border-color
|
|
2115
|
-
);
|
|
2116
|
-
--amplify-internal-button-loading-color: var(
|
|
2117
|
-
--amplify-components-button-primary-loading-color
|
|
2118
|
-
);
|
|
2119
2103
|
}
|
|
2120
2104
|
.amplify-button--primary:hover {
|
|
2121
2105
|
--amplify-internal-button-background-color: var(
|
|
@@ -2388,6 +2372,26 @@ strong.amplify-text {
|
|
|
2388
2372
|
--amplify-components-button-primary-overlay-active-color
|
|
2389
2373
|
);
|
|
2390
2374
|
}
|
|
2375
|
+
.amplify-button--primary {
|
|
2376
|
+
--amplify-internal-button-disabled-border-color: var(
|
|
2377
|
+
--amplify-components-button-primary-disabled-border-color
|
|
2378
|
+
);
|
|
2379
|
+
--amplify-internal-button-disabled-background-color: var(
|
|
2380
|
+
--amplify-components-button-primary-disabled-background-color
|
|
2381
|
+
);
|
|
2382
|
+
--amplify-internal-button-disabled-color: var(
|
|
2383
|
+
--amplify-components-button-primary-disabled-color
|
|
2384
|
+
);
|
|
2385
|
+
--amplify-internal-button-loading-background-color: var(
|
|
2386
|
+
--amplify-components-button-primary-loading-background-color
|
|
2387
|
+
);
|
|
2388
|
+
--amplify-internal-button-loading-border-color: var(
|
|
2389
|
+
--amplify-components-button-primary-loading-border-color
|
|
2390
|
+
);
|
|
2391
|
+
--amplify-internal-button-loading-color: var(
|
|
2392
|
+
--amplify-components-button-primary-loading-color
|
|
2393
|
+
);
|
|
2394
|
+
}
|
|
2391
2395
|
.amplify-button--link {
|
|
2392
2396
|
--amplify-internal-button-border-width: var(
|
|
2393
2397
|
--amplify-components-button-link-border-width
|
|
@@ -2401,24 +2405,6 @@ strong.amplify-text {
|
|
|
2401
2405
|
--amplify-internal-button-color: var(
|
|
2402
2406
|
--amplify-components-button-link-color
|
|
2403
2407
|
);
|
|
2404
|
-
--amplify-internal-button-disabled-border-color: var(
|
|
2405
|
-
--amplify-components-button-link-disabled-border-color
|
|
2406
|
-
);
|
|
2407
|
-
--amplify-internal-button-disabled-background-color: var(
|
|
2408
|
-
--amplify-components-button-link-disabled-background-color
|
|
2409
|
-
);
|
|
2410
|
-
--amplify-internal-button-disabled-color: var(
|
|
2411
|
-
--amplify-components-button-link-disabled-color
|
|
2412
|
-
);
|
|
2413
|
-
--amplify-internal-button-loading-background-color: var(
|
|
2414
|
-
--amplify-components-button-link-loading-background-color
|
|
2415
|
-
);
|
|
2416
|
-
--amplify-internal-button-loading-border-color: var(
|
|
2417
|
-
--amplify-components-button-link-loading-border-color
|
|
2418
|
-
);
|
|
2419
|
-
--amplify-internal-button-loading-color: var(
|
|
2420
|
-
--amplify-components-button-link-loading-color
|
|
2421
|
-
);
|
|
2422
2408
|
}
|
|
2423
2409
|
.amplify-button--link:hover {
|
|
2424
2410
|
--amplify-internal-button-background-color: var(
|
|
@@ -2691,30 +2677,32 @@ strong.amplify-text {
|
|
|
2691
2677
|
--amplify-components-button-link-overlay-active-color
|
|
2692
2678
|
);
|
|
2693
2679
|
}
|
|
2694
|
-
.amplify-button--
|
|
2695
|
-
border-width: var(--amplify-components-button-destructive-border-width);
|
|
2696
|
-
background-color: var(--amplify-components-button-destructive-background-color);
|
|
2697
|
-
border-color: var(--amplify-components-button-destructive-border-color);
|
|
2698
|
-
color: var(--amplify-components-button-destructive-color);
|
|
2680
|
+
.amplify-button--link {
|
|
2699
2681
|
--amplify-internal-button-disabled-border-color: var(
|
|
2700
|
-
--amplify-components-button-
|
|
2682
|
+
--amplify-components-button-link-disabled-border-color
|
|
2701
2683
|
);
|
|
2702
2684
|
--amplify-internal-button-disabled-background-color: var(
|
|
2703
|
-
--amplify-components-button-
|
|
2685
|
+
--amplify-components-button-link-disabled-background-color
|
|
2704
2686
|
);
|
|
2705
2687
|
--amplify-internal-button-disabled-color: var(
|
|
2706
|
-
--amplify-components-button-
|
|
2688
|
+
--amplify-components-button-link-disabled-color
|
|
2707
2689
|
);
|
|
2708
2690
|
--amplify-internal-button-loading-background-color: var(
|
|
2709
|
-
--amplify-components-button-
|
|
2691
|
+
--amplify-components-button-link-loading-background-color
|
|
2710
2692
|
);
|
|
2711
2693
|
--amplify-internal-button-loading-border-color: var(
|
|
2712
|
-
--amplify-components-button-
|
|
2694
|
+
--amplify-components-button-link-loading-border-color
|
|
2713
2695
|
);
|
|
2714
2696
|
--amplify-internal-button-loading-color: var(
|
|
2715
|
-
--amplify-components-button-
|
|
2697
|
+
--amplify-components-button-link-loading-color
|
|
2716
2698
|
);
|
|
2717
2699
|
}
|
|
2700
|
+
.amplify-button--destructive {
|
|
2701
|
+
border-width: var(--amplify-components-button-destructive-border-width);
|
|
2702
|
+
background-color: var(--amplify-components-button-destructive-background-color);
|
|
2703
|
+
border-color: var(--amplify-components-button-destructive-border-color);
|
|
2704
|
+
color: var(--amplify-components-button-destructive-color);
|
|
2705
|
+
}
|
|
2718
2706
|
.amplify-button--destructive:hover {
|
|
2719
2707
|
background-color: var(--amplify-components-button-destructive-hover-background-color);
|
|
2720
2708
|
border-color: var(--amplify-components-button-destructive-hover-border-color);
|
|
@@ -2731,6 +2719,26 @@ strong.amplify-text {
|
|
|
2731
2719
|
border-color: var(--amplify-components-button-destructive-active-border-color);
|
|
2732
2720
|
color: var(--amplify-components-button-destructive-active-color);
|
|
2733
2721
|
}
|
|
2722
|
+
.amplify-button--destructive {
|
|
2723
|
+
--amplify-internal-button-disabled-border-color: var(
|
|
2724
|
+
--amplify-components-button-destructive-disabled-border-color
|
|
2725
|
+
);
|
|
2726
|
+
--amplify-internal-button-disabled-background-color: var(
|
|
2727
|
+
--amplify-components-button-destructive-disabled-background-color
|
|
2728
|
+
);
|
|
2729
|
+
--amplify-internal-button-disabled-color: var(
|
|
2730
|
+
--amplify-components-button-destructive-disabled-color
|
|
2731
|
+
);
|
|
2732
|
+
--amplify-internal-button-loading-background-color: var(
|
|
2733
|
+
--amplify-components-button-destructive-loading-background-color
|
|
2734
|
+
);
|
|
2735
|
+
--amplify-internal-button-loading-border-color: var(
|
|
2736
|
+
--amplify-components-button-destructive-loading-border-color
|
|
2737
|
+
);
|
|
2738
|
+
--amplify-internal-button-loading-color: var(
|
|
2739
|
+
--amplify-components-button-destructive-loading-color
|
|
2740
|
+
);
|
|
2741
|
+
}
|
|
2734
2742
|
.amplify-button--warning {
|
|
2735
2743
|
background-color: var(--amplify-components-button-warning-background-color);
|
|
2736
2744
|
border-color: var(--amplify-components-button-warning-border-color);
|
|
@@ -2990,22 +2998,6 @@ strong.amplify-text {
|
|
|
2990
2998
|
outline-style: var(--amplify-components-fieldcontrol-outline-style);
|
|
2991
2999
|
outline-width: var(--amplify-components-fieldcontrol-outline-width);
|
|
2992
3000
|
outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
|
|
2993
|
-
-webkit-user-select: text;
|
|
2994
|
-
-moz-user-select: text;
|
|
2995
|
-
user-select: text;
|
|
2996
|
-
display: inline-block;
|
|
2997
|
-
--amplify-components-fieldcontrol-color: var(
|
|
2998
|
-
--amplify-components-input-color
|
|
2999
|
-
);
|
|
3000
|
-
--amplify-components-fieldcontrol-border-color: var(
|
|
3001
|
-
--amplify-components-input-border-color
|
|
3002
|
-
);
|
|
3003
|
-
--amplify-components-fieldcontrol-font-size: var(
|
|
3004
|
-
--amplify-components-input-font-size
|
|
3005
|
-
);
|
|
3006
|
-
--amplify-components-fieldcontrol-focus-border-color: var(
|
|
3007
|
-
--amplify-components-input-focus-border-color
|
|
3008
|
-
);
|
|
3009
3001
|
}
|
|
3010
3002
|
.amplify-input:focus {
|
|
3011
3003
|
border-color: var(--amplify-components-fieldcontrol-focus-border-color);
|
|
@@ -3055,6 +3047,24 @@ strong.amplify-text {
|
|
|
3055
3047
|
border-color: var(--amplify-components-fieldcontrol-disabled-border-color);
|
|
3056
3048
|
background-color: var(--amplify-components-fieldcontrol-disabled-background-color);
|
|
3057
3049
|
}
|
|
3050
|
+
.amplify-input {
|
|
3051
|
+
-webkit-user-select: text;
|
|
3052
|
+
-moz-user-select: text;
|
|
3053
|
+
user-select: text;
|
|
3054
|
+
display: inline-block;
|
|
3055
|
+
--amplify-components-fieldcontrol-color: var(
|
|
3056
|
+
--amplify-components-input-color
|
|
3057
|
+
);
|
|
3058
|
+
--amplify-components-fieldcontrol-border-color: var(
|
|
3059
|
+
--amplify-components-input-border-color
|
|
3060
|
+
);
|
|
3061
|
+
--amplify-components-fieldcontrol-font-size: var(
|
|
3062
|
+
--amplify-components-input-font-size
|
|
3063
|
+
);
|
|
3064
|
+
--amplify-components-fieldcontrol-focus-border-color: var(
|
|
3065
|
+
--amplify-components-input-focus-border-color
|
|
3066
|
+
);
|
|
3067
|
+
}
|
|
3058
3068
|
|
|
3059
3069
|
.amplify-textarea {
|
|
3060
3070
|
box-sizing: border-box;
|
|
@@ -3075,11 +3085,6 @@ strong.amplify-text {
|
|
|
3075
3085
|
outline-style: var(--amplify-components-fieldcontrol-outline-style);
|
|
3076
3086
|
outline-width: var(--amplify-components-fieldcontrol-outline-width);
|
|
3077
3087
|
outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
|
|
3078
|
-
-webkit-user-select: text;
|
|
3079
|
-
-moz-user-select: text;
|
|
3080
|
-
user-select: text;
|
|
3081
|
-
white-space: pre-wrap;
|
|
3082
|
-
max-height: 100%;
|
|
3083
3088
|
}
|
|
3084
3089
|
.amplify-textarea:focus {
|
|
3085
3090
|
border-color: var(--amplify-components-fieldcontrol-focus-border-color);
|
|
@@ -3129,6 +3134,13 @@ strong.amplify-text {
|
|
|
3129
3134
|
border-color: var(--amplify-components-fieldcontrol-disabled-border-color);
|
|
3130
3135
|
background-color: var(--amplify-components-fieldcontrol-disabled-background-color);
|
|
3131
3136
|
}
|
|
3137
|
+
.amplify-textarea {
|
|
3138
|
+
-webkit-user-select: text;
|
|
3139
|
+
-moz-user-select: text;
|
|
3140
|
+
user-select: text;
|
|
3141
|
+
white-space: pre-wrap;
|
|
3142
|
+
max-height: 100%;
|
|
3143
|
+
}
|
|
3132
3144
|
|
|
3133
3145
|
.amplify-image {
|
|
3134
3146
|
height: var(--amplify-components-image-height);
|
|
@@ -3186,8 +3198,6 @@ strong.amplify-text {
|
|
|
3186
3198
|
animation-timing-function: linear;
|
|
3187
3199
|
animation-iteration-count: infinite;
|
|
3188
3200
|
animation-duration: var(--amplify-components-loader-animation-duration);
|
|
3189
|
-
stroke: var(--amplify-components-loader-stroke-filled);
|
|
3190
|
-
stroke-linecap: var(--amplify-components-loader-stroke-linecap);
|
|
3191
3201
|
}
|
|
3192
3202
|
@media (prefers-reduced-motion) {
|
|
3193
3203
|
.amplify-loader circle:last-of-type {
|
|
@@ -3196,6 +3206,10 @@ strong.amplify-text {
|
|
|
3196
3206
|
stroke-dashoffset: 50%;
|
|
3197
3207
|
}
|
|
3198
3208
|
}
|
|
3209
|
+
.amplify-loader circle:last-of-type {
|
|
3210
|
+
stroke: var(--amplify-components-loader-stroke-filled);
|
|
3211
|
+
stroke-linecap: var(--amplify-components-loader-stroke-linecap);
|
|
3212
|
+
}
|
|
3199
3213
|
.amplify-loader line:last-of-type {
|
|
3200
3214
|
stroke: var(--amplify-components-loader-linear-stroke-filled);
|
|
3201
3215
|
stroke-dasharray: 50% 200%;
|
|
@@ -3898,6 +3912,9 @@ strong.amplify-text {
|
|
|
3898
3912
|
border-color: var(--amplify-internal-checkbox_button-focused-before-border-color);
|
|
3899
3913
|
box-shadow: var(--amplify-internal-checkbox_button-focused-before-box-shadow);
|
|
3900
3914
|
}
|
|
3915
|
+
.amplify-checkbox__button--error::before {
|
|
3916
|
+
border-color: var(--amplify-components-checkbox-button-error-border-color);
|
|
3917
|
+
}
|
|
3901
3918
|
.amplify-checkbox__button--error {
|
|
3902
3919
|
--amplify-internal-checkbox_button-focused-before-border-color: var(
|
|
3903
3920
|
--amplify-components-checkbox-button-error-focus-border-color
|
|
@@ -3906,9 +3923,6 @@ strong.amplify-text {
|
|
|
3906
3923
|
--amplify-components-checkbox-button-error-focus-box-shadow
|
|
3907
3924
|
);
|
|
3908
3925
|
}
|
|
3909
|
-
.amplify-checkbox__button--error::before {
|
|
3910
|
-
border-color: var(--amplify-components-checkbox-button-error-border-color);
|
|
3911
|
-
}
|
|
3912
3926
|
.amplify-checkbox__button--disabled::before {
|
|
3913
3927
|
border-color: var(--amplify-components-checkbox-button-disabled-border-color);
|
|
3914
3928
|
}
|
|
@@ -4167,7 +4181,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4167
4181
|
flex-direction: var(--amplify-components-fieldset-flex-direction);
|
|
4168
4182
|
gap: var(--amplify-components-fieldset-gap);
|
|
4169
4183
|
/* Sizes */
|
|
4170
|
-
/* Variations */
|
|
4171
4184
|
}
|
|
4172
4185
|
.amplify-fieldset--small {
|
|
4173
4186
|
gap: var(--amplify-components-fieldset-small-gap);
|
|
@@ -4175,6 +4188,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4175
4188
|
.amplify-fieldset--large {
|
|
4176
4189
|
gap: var(--amplify-components-fieldset-large-gap);
|
|
4177
4190
|
}
|
|
4191
|
+
.amplify-fieldset {
|
|
4192
|
+
/* Variations */
|
|
4193
|
+
}
|
|
4178
4194
|
.amplify-fieldset--outlined {
|
|
4179
4195
|
border: var(--amplify-components-fieldset-outlined-border-width) var(--amplify-components-fieldset-outlined-border-style) var(--amplify-components-fieldset-outlined-border-color);
|
|
4180
4196
|
padding: var(--amplify-components-fieldset-outlined-padding);
|
|
@@ -5281,11 +5297,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5281
5297
|
outline-style: var(--amplify-components-fieldcontrol-outline-style);
|
|
5282
5298
|
outline-width: var(--amplify-components-fieldcontrol-outline-width);
|
|
5283
5299
|
outline-offset: var(--amplify-components-fieldcontrol-outline-offset);
|
|
5284
|
-
background-color: var(--amplify-components-select-background-color);
|
|
5285
|
-
color: var(--amplify-components-select-color);
|
|
5286
|
-
min-width: var(--amplify-components-select-min-width);
|
|
5287
|
-
padding-inline-end: var(--amplify-components-select-padding-inline-end);
|
|
5288
|
-
white-space: var(--amplify-components-select-white-space);
|
|
5289
5300
|
}
|
|
5290
5301
|
.amplify-select:focus {
|
|
5291
5302
|
border-color: var(--amplify-components-fieldcontrol-focus-border-color);
|
|
@@ -5335,6 +5346,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5335
5346
|
border-color: var(--amplify-components-fieldcontrol-disabled-border-color);
|
|
5336
5347
|
background-color: var(--amplify-components-fieldcontrol-disabled-background-color);
|
|
5337
5348
|
}
|
|
5349
|
+
.amplify-select {
|
|
5350
|
+
background-color: var(--amplify-components-select-background-color);
|
|
5351
|
+
color: var(--amplify-components-select-color);
|
|
5352
|
+
min-width: var(--amplify-components-select-min-width);
|
|
5353
|
+
padding-inline-end: var(--amplify-components-select-padding-inline-end);
|
|
5354
|
+
white-space: var(--amplify-components-select-white-space);
|
|
5355
|
+
}
|
|
5338
5356
|
.amplify-select option {
|
|
5339
5357
|
background-color: var(--amplify-components-select-option-background-color);
|
|
5340
5358
|
color: var(--amplify-components-select-option-color);
|
|
@@ -5596,14 +5614,14 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5596
5614
|
border-inline-start: none;
|
|
5597
5615
|
}
|
|
5598
5616
|
|
|
5599
|
-
.amplify-stepperfield__input {
|
|
5600
|
-
-moz-appearance: textfield;
|
|
5601
|
-
text-align: var(--amplify-components-stepperfield-input-text-align);
|
|
5602
|
-
}
|
|
5603
5617
|
.amplify-stepperfield__input::-webkit-outer-spin-button, .amplify-stepperfield__input::-webkit-inner-spin-button {
|
|
5604
5618
|
-webkit-appearance: none;
|
|
5605
5619
|
margin: 0;
|
|
5606
5620
|
}
|
|
5621
|
+
.amplify-stepperfield__input {
|
|
5622
|
+
-moz-appearance: textfield;
|
|
5623
|
+
text-align: var(--amplify-components-stepperfield-input-text-align);
|
|
5624
|
+
}
|
|
5607
5625
|
.amplify-stepperfield__input:not(:focus, [aria-invalid=true]) {
|
|
5608
5626
|
border-inline-start: none;
|
|
5609
5627
|
border-inline-end: none;
|
|
@@ -5716,9 +5734,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5716
5734
|
--amplify-components-table-header-border-width
|
|
5717
5735
|
)
|
|
5718
5736
|
0px var(--amplify-components-table-header-border-width) 0px;
|
|
5719
|
-
/**
|
|
5720
|
-
* Data attribute stylings
|
|
5721
|
-
*/
|
|
5722
5737
|
}
|
|
5723
5738
|
.amplify-table--small {
|
|
5724
5739
|
--amplify-internal-table-caption-font-size: var(
|
|
@@ -5832,6 +5847,11 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5832
5847
|
.amplify-table__td:last-child {
|
|
5833
5848
|
border-right-width: var(--amplify-components-table-data-border-width);
|
|
5834
5849
|
}
|
|
5850
|
+
.amplify-table {
|
|
5851
|
+
/**
|
|
5852
|
+
* Data attribute stylings
|
|
5853
|
+
*/
|
|
5854
|
+
}
|
|
5835
5855
|
.amplify-table[data-highlightonhover=true] .amplify-table__row:not(.amplify-table__head *):hover {
|
|
5836
5856
|
background-color: var(--amplify-components-table-row-hover-background-color);
|
|
5837
5857
|
}
|
|
@@ -5973,6 +5993,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5973
5993
|
--amplify-internal-togglebutton-focus-color: var(
|
|
5974
5994
|
--amplify-components-togglebutton-focus-color
|
|
5975
5995
|
);
|
|
5996
|
+
}
|
|
5997
|
+
.amplify-togglebutton:focus {
|
|
5998
|
+
background-color: var(--amplify-internal-togglebutton-focus-background-color);
|
|
5999
|
+
border-color: var(--amplify-internal-togglebutton-focus-border-color);
|
|
6000
|
+
color: var(--amplify-internal-togglebutton-focus-color);
|
|
6001
|
+
}
|
|
6002
|
+
.amplify-togglebutton {
|
|
5976
6003
|
--amplify-internal-togglebutton-hover-background-color: var(
|
|
5977
6004
|
--amplify-components-togglebutton-hover-background-color
|
|
5978
6005
|
);
|
|
@@ -5982,9 +6009,21 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5982
6009
|
--amplify-internal-togglebutton-hover-color: var(
|
|
5983
6010
|
--amplify-internal-togglebutton-color
|
|
5984
6011
|
);
|
|
6012
|
+
}
|
|
6013
|
+
.amplify-togglebutton:hover {
|
|
6014
|
+
background-color: var(--amplify-internal-togglebutton-hover-background-color);
|
|
6015
|
+
border-color: var(--amplify-internal-togglebutton-hover-border-color);
|
|
6016
|
+
color: var(--amplify-internal-togglebutton-hover-color);
|
|
6017
|
+
}
|
|
6018
|
+
.amplify-togglebutton {
|
|
5985
6019
|
--amplify-internal-togglebutton-active-background-color: var(
|
|
5986
6020
|
--amplify-components-togglebutton-active-background-color
|
|
5987
6021
|
);
|
|
6022
|
+
}
|
|
6023
|
+
.amplify-togglebutton:active {
|
|
6024
|
+
background-color: var(--amplify-internal-togglebutton-active-background-color);
|
|
6025
|
+
}
|
|
6026
|
+
.amplify-togglebutton {
|
|
5988
6027
|
--amplify-internal-togglebutton-disabled-background-color: var(
|
|
5989
6028
|
--amplify-components-togglebutton-disabled-background-color
|
|
5990
6029
|
);
|
|
@@ -5995,19 +6034,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
5995
6034
|
--amplify-components-togglebutton-disabled-color
|
|
5996
6035
|
);
|
|
5997
6036
|
}
|
|
5998
|
-
.amplify-togglebutton:focus {
|
|
5999
|
-
background-color: var(--amplify-internal-togglebutton-focus-background-color);
|
|
6000
|
-
border-color: var(--amplify-internal-togglebutton-focus-border-color);
|
|
6001
|
-
color: var(--amplify-internal-togglebutton-focus-color);
|
|
6002
|
-
}
|
|
6003
|
-
.amplify-togglebutton:hover {
|
|
6004
|
-
background-color: var(--amplify-internal-togglebutton-hover-background-color);
|
|
6005
|
-
border-color: var(--amplify-internal-togglebutton-hover-border-color);
|
|
6006
|
-
color: var(--amplify-internal-togglebutton-hover-color);
|
|
6007
|
-
}
|
|
6008
|
-
.amplify-togglebutton:active {
|
|
6009
|
-
background-color: var(--amplify-internal-togglebutton-active-background-color);
|
|
6010
|
-
}
|
|
6011
6037
|
.amplify-togglebutton:disabled {
|
|
6012
6038
|
background-color: var(--amplify-internal-togglebutton-disabled-background-color);
|
|
6013
6039
|
border-color: var(--amplify-internal-togglebutton-disabled-border-color);
|
|
@@ -6077,6 +6103,11 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6077
6103
|
--amplify-internal-togglebutton-focus-color: var(
|
|
6078
6104
|
--amplify-internal-togglebutton-primary-focus-color
|
|
6079
6105
|
);
|
|
6106
|
+
}
|
|
6107
|
+
.amplify-togglebutton--primary:focus {
|
|
6108
|
+
box-shadow: var(--amplify-internal-togglebutton-primary-focus-box-shadow);
|
|
6109
|
+
}
|
|
6110
|
+
.amplify-togglebutton--primary {
|
|
6080
6111
|
--amplify-internal-togglebutton-primary-hover-background-color: var(
|
|
6081
6112
|
--amplify-components-togglebutton-primary-hover-background-color
|
|
6082
6113
|
);
|
|
@@ -6114,9 +6145,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6114
6145
|
--amplify-internal-togglebutton-primary-disabled-color
|
|
6115
6146
|
);
|
|
6116
6147
|
}
|
|
6117
|
-
.amplify-togglebutton--primary:focus {
|
|
6118
|
-
box-shadow: var(--amplify-internal-togglebutton-primary-focus-box-shadow);
|
|
6119
|
-
}
|
|
6120
6148
|
.amplify-togglebutton--pressed {
|
|
6121
6149
|
--amplify-internal-togglebutton-primary-background-color: var(
|
|
6122
6150
|
--amplify-components-togglebutton-primary-pressed-background-color
|
|
@@ -6145,6 +6173,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6145
6173
|
--amplify-internal-togglebutton-primary-hover-color: var(
|
|
6146
6174
|
--amplify-components-togglebutton-primary-pressed-hover-color
|
|
6147
6175
|
);
|
|
6176
|
+
}
|
|
6177
|
+
.amplify-togglebutton--pressed:hover {
|
|
6178
|
+
--amplify-internal-togglebutton-primary-focus-box-shadow: var(
|
|
6179
|
+
--amplify-components-togglebutton-primary-pressed-hover-box-shadow
|
|
6180
|
+
);
|
|
6181
|
+
}
|
|
6182
|
+
.amplify-togglebutton--pressed {
|
|
6148
6183
|
--amplify-internal-togglebutton-primary-disabled-background-color: var(
|
|
6149
6184
|
--amplify-components-togglebutton-primary-pressed-background-color
|
|
6150
6185
|
);
|
|
@@ -6155,11 +6190,6 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
6155
6190
|
--amplify-components-togglebutton-primary-pressed-color
|
|
6156
6191
|
);
|
|
6157
6192
|
}
|
|
6158
|
-
.amplify-togglebutton--pressed:hover {
|
|
6159
|
-
--amplify-internal-togglebutton-primary-focus-box-shadow: var(
|
|
6160
|
-
--amplify-components-togglebutton-primary-pressed-hover-box-shadow
|
|
6161
|
-
);
|
|
6162
|
-
}
|
|
6163
6193
|
.amplify-togglebutton--link {
|
|
6164
6194
|
--amplify-internal-togglebutton-link-background-color: var(
|
|
6165
6195
|
--amplify-components-togglebutton-link-background-color
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #6966 — script-aware punctuation for the Authenticator delivery message.
|
|
3
|
+
*
|
|
4
|
+
* The delivery message is assembled from translated fragments joined by
|
|
5
|
+
* punctuation. Hardcoding an ASCII period is wrong for locales whose sentence
|
|
6
|
+
* terminator differs: Japanese/Chinese use the ideographic full stop `。` and
|
|
7
|
+
* Thai writes no sentence terminator at all. The terminator and the
|
|
8
|
+
* inter-sentence spacer are therefore derived from the script of the
|
|
9
|
+
* surrounding translated copy, keeping punctuation locale-correct without
|
|
10
|
+
* adding a translation key, interpolation, or any public API.
|
|
11
|
+
*
|
|
12
|
+
* Script detection is MAJORITY-based rather than "contains any": a sentence is
|
|
13
|
+
* treated as CJK or Thai only when most of its non-whitespace characters belong
|
|
14
|
+
* to that script. "Contains any" mis-classifies copy such as a Latin sentence
|
|
15
|
+
* that includes a single CJK proper noun, or a Korean (Hangul) phrase that
|
|
16
|
+
* happens to contain a stray CJK codepoint.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Appends the script-appropriate sentence terminator to `sentence` unless it is
|
|
20
|
+
* already terminated. CJK copy receives the ideographic full stop `。`, Thai
|
|
21
|
+
* copy is left untouched, and every other script receives an ASCII period.
|
|
22
|
+
*
|
|
23
|
+
* @internal Not exported from the `@aws-amplify/ui` public entry point.
|
|
24
|
+
*/
|
|
25
|
+
export declare const terminateSentence: (sentence: string) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the separator to place between two joined sentences. CJK scripts do
|
|
28
|
+
* not separate sentences with a space; every other script does.
|
|
29
|
+
*
|
|
30
|
+
* @internal Not exported from the `@aws-amplify/ui` public entry point.
|
|
31
|
+
*/
|
|
32
|
+
export declare const getSentenceSpacer: (sentence: string) => string;
|
|
@@ -96,6 +96,7 @@ export interface AuthContext {
|
|
|
96
96
|
user?: AuthUser;
|
|
97
97
|
actorDoneData?: ActorDoneData;
|
|
98
98
|
hasSetup?: boolean;
|
|
99
|
+
hasInitialized?: boolean;
|
|
99
100
|
passwordlessCapabilities?: PasswordlessCapabilities;
|
|
100
101
|
}
|
|
101
102
|
export type InitialStep = 'FORGOT_PASSWORD' | 'SIGN_IN' | 'SIGN_UP';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@types/webpack-env": "^1.16.2",
|
|
65
65
|
"autoprefixer": "^10.3.1",
|
|
66
66
|
"glob": "^10.5.0",
|
|
67
|
-
"postcss": "^8.
|
|
67
|
+
"postcss": "^8.5.18",
|
|
68
68
|
"sass": "^1.35.2",
|
|
69
69
|
"style-dictionary": "3.9.1",
|
|
70
70
|
"ts-node": "^10.9.1"
|