@aws-amplify/ui 3.12.5 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/helpers/authenticator/facade.js +1 -1
- package/dist/esm/helpers/authenticator/form.js +1 -1
- package/dist/esm/helpers/authenticator/formFields/defaults.js +1 -1
- package/dist/esm/helpers/authenticator/formFields/util.js +1 -1
- package/dist/esm/i18n/dictionaries/index.js +1 -1
- package/dist/esm/i18n/translations.js +1 -1
- package/dist/esm/machines/authenticator/actions.js +1 -1
- package/dist/esm/machines/authenticator/actors/resetPassword.js +1 -1
- package/dist/esm/machines/authenticator/actors/signIn.js +1 -1
- package/dist/esm/machines/authenticator/defaultServices.js +1 -1
- package/dist/esm/machines/authenticator/index.js +1 -1
- package/dist/esm/machines/authenticator/signUp.js +1 -1
- package/dist/esm/theme/createTheme.js +1 -1
- package/dist/esm/theme/tokens/components/checkbox.js +1 -1
- package/dist/esm/theme/tokens/components/searchField.js +1 -1
- package/dist/esm/theme/tokens/components/select.js +1 -1
- package/dist/esm/theme/tokens/components/switchField.js +1 -1
- package/dist/esm/theme/utils.js +1 -1
- package/dist/esm/types/authenticator/attributes.js +1 -1
- package/dist/esm/validators/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +19 -1
- package/dist/theme.css +7 -1
- package/dist/types/theme/tokens/components/checkbox.d.ts +6 -0
- package/dist/types/theme/tokens/components/searchField.d.ts +2 -1
- package/dist/types/theme/tokens/components/select.d.ts +3 -0
- package/dist/types/theme/tokens/components/switchField.d.ts +1 -0
- package/package.json +4 -4
- package/dist/esm/node_modules/tslib/tslib.es6.js +0 -1
package/dist/styles.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Do not edit directly
|
|
6
|
-
* Generated on
|
|
6
|
+
* Generated on Thu, 11 Aug 2022 21:46:17 GMT
|
|
7
7
|
*/
|
|
8
8
|
:root, [data-amplify-theme] {
|
|
9
9
|
--amplify-transforms-slide-x-large: translateX(2em);
|
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
--amplify-components-checkboxfield-flex-direction: column;
|
|
291
291
|
--amplify-components-checkboxfield-align-content: center;
|
|
292
292
|
--amplify-components-checkboxfield-align-items: flex-start;
|
|
293
|
+
--amplify-components-checkbox-icon-indeterminate-transform: scale(1);
|
|
293
294
|
--amplify-components-checkbox-icon-checked-transform: scale(1);
|
|
294
295
|
--amplify-components-checkbox-icon-transition-timing-function: ease-in-out;
|
|
295
296
|
--amplify-components-checkbox-icon-transition-property: all;
|
|
@@ -440,6 +441,7 @@
|
|
|
440
441
|
--amplify-components-switchfield-label-padding: var(--amplify-space-xs);
|
|
441
442
|
--amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
|
|
442
443
|
--amplify-components-switchfield-large-font-size: var(--amplify-font-sizes-large);
|
|
444
|
+
--amplify-components-switchfield-font-size: var(--amplify-font-sizes-medium);
|
|
443
445
|
--amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
|
|
444
446
|
--amplify-components-stepperfield-button-background-color: var(--amplify-colors-transparent);
|
|
445
447
|
--amplify-components-sliderfield-thumb-border-width: var(--amplify-border-widths-medium);
|
|
@@ -583,6 +585,7 @@
|
|
|
583
585
|
--amplify-components-copy-tool-tip-bottom: var(--amplify-space-large);
|
|
584
586
|
--amplify-components-copy-gap: var(--amplify-space-relative-medium);
|
|
585
587
|
--amplify-components-copy-font-size: var(--amplify-font-sizes-xs);
|
|
588
|
+
--amplify-components-checkbox-icon-indeterminate-opacity: var(--amplify-opacities-100);
|
|
586
589
|
--amplify-components-checkbox-icon-checked-opacity: var(--amplify-opacities-100);
|
|
587
590
|
--amplify-components-checkbox-icon-transition-duration: var(--amplify-time-short);
|
|
588
591
|
--amplify-components-checkbox-icon-opacity: var(--amplify-opacities-0);
|
|
@@ -684,8 +687,10 @@
|
|
|
684
687
|
--amplify-components-sliderfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
685
688
|
--amplify-components-sliderfield-range-background-color: var(--amplify-colors-brand-primary-80);
|
|
686
689
|
--amplify-components-sliderfield-track-background-color: var(--amplify-colors-background-quaternary);
|
|
690
|
+
--amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
|
|
687
691
|
--amplify-components-select-option-color: var(--amplify-colors-font-primary);
|
|
688
692
|
--amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
|
|
693
|
+
--amplify-components-searchfield-button-background-color: var(--amplify-colors-background-primary);
|
|
689
694
|
--amplify-components-rating-empty-color: var(--amplify-colors-background-tertiary);
|
|
690
695
|
--amplify-components-rating-filled-color: var(--amplify-colors-brand-secondary-80);
|
|
691
696
|
--amplify-components-radiogroup-radio-border-width: var(--amplify-components-radio-button-border-width);
|
|
@@ -895,6 +900,7 @@
|
|
|
895
900
|
--amplify-components-collection-pagination-button-hover-color: var(--amplify-components-pagination-button-hover-color);
|
|
896
901
|
--amplify-components-collection-pagination-button-color: var(--amplify-components-pagination-button-color);
|
|
897
902
|
--amplify-components-collection-pagination-current-color: var(--amplify-components-pagination-current-color);
|
|
903
|
+
--amplify-components-checkbox-icon-indeterminate-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
898
904
|
--amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
899
905
|
--amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
900
906
|
--amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
|
|
@@ -2130,6 +2136,13 @@ strong.amplify-text {
|
|
|
2130
2136
|
--amplify-components-checkbox-icon-checked-disabled-background-color
|
|
2131
2137
|
);
|
|
2132
2138
|
}
|
|
2139
|
+
.amplify-checkbox__icon--indeterminate {
|
|
2140
|
+
opacity: var(--amplify-components-checkbox-icon-indeterminate-opacity);
|
|
2141
|
+
transform: var(--amplify-components-checkbox-icon-indeterminate-transform);
|
|
2142
|
+
--amplify-internal-checkbox-icon-disabled-background-color: var(
|
|
2143
|
+
--amplify-components-checkbox-icon-indeterminate-disabled-background-color
|
|
2144
|
+
);
|
|
2145
|
+
}
|
|
2133
2146
|
.amplify-checkbox__icon--disabled {
|
|
2134
2147
|
background-color: var(--amplify-internal-checkbox-icon-disabled-background-color);
|
|
2135
2148
|
}
|
|
@@ -2840,6 +2853,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2840
2853
|
}
|
|
2841
2854
|
.amplify-searchfield__search {
|
|
2842
2855
|
color: var(--amplify-components-searchfield-button-color);
|
|
2856
|
+
background-color: var(--amplify-components-searchfield-button-background-color);
|
|
2843
2857
|
}
|
|
2844
2858
|
.amplify-searchfield__search:active {
|
|
2845
2859
|
background-color: var(--amplify-components-button-active-background-color);
|
|
@@ -2967,6 +2981,9 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
2967
2981
|
.amplify-select option {
|
|
2968
2982
|
color: initial;
|
|
2969
2983
|
}
|
|
2984
|
+
.amplify-select option[disabled=""] {
|
|
2985
|
+
color: var(--amplify-components-select-option-disabled-color);
|
|
2986
|
+
}
|
|
2970
2987
|
@-moz-document url-prefix() {
|
|
2971
2988
|
.amplify-select option {
|
|
2972
2989
|
background-color: var(--amplify-components-select-option-background-color);
|
|
@@ -3228,6 +3245,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3228
3245
|
|
|
3229
3246
|
.amplify-switchfield {
|
|
3230
3247
|
display: inline-block;
|
|
3248
|
+
font-size: var(--amplify-components-switchfield-font-size);
|
|
3231
3249
|
}
|
|
3232
3250
|
.amplify-switchfield--small {
|
|
3233
3251
|
font-size: var(--amplify-components-switchfield-small-font-size);
|
package/dist/theme.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 11 Aug 2022 21:46:17 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root, [data-amplify-theme] {
|
|
@@ -288,6 +288,7 @@
|
|
|
288
288
|
--amplify-components-checkboxfield-flex-direction: column;
|
|
289
289
|
--amplify-components-checkboxfield-align-content: center;
|
|
290
290
|
--amplify-components-checkboxfield-align-items: flex-start;
|
|
291
|
+
--amplify-components-checkbox-icon-indeterminate-transform: scale(1);
|
|
291
292
|
--amplify-components-checkbox-icon-checked-transform: scale(1);
|
|
292
293
|
--amplify-components-checkbox-icon-transition-timing-function: ease-in-out;
|
|
293
294
|
--amplify-components-checkbox-icon-transition-property: all;
|
|
@@ -438,6 +439,7 @@
|
|
|
438
439
|
--amplify-components-switchfield-label-padding: var(--amplify-space-xs);
|
|
439
440
|
--amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
|
|
440
441
|
--amplify-components-switchfield-large-font-size: var(--amplify-font-sizes-large);
|
|
442
|
+
--amplify-components-switchfield-font-size: var(--amplify-font-sizes-medium);
|
|
441
443
|
--amplify-components-switchfield-disabled-opacity: var(--amplify-opacities-60);
|
|
442
444
|
--amplify-components-stepperfield-button-background-color: var(--amplify-colors-transparent);
|
|
443
445
|
--amplify-components-sliderfield-thumb-border-width: var(--amplify-border-widths-medium);
|
|
@@ -581,6 +583,7 @@
|
|
|
581
583
|
--amplify-components-copy-tool-tip-bottom: var(--amplify-space-large);
|
|
582
584
|
--amplify-components-copy-gap: var(--amplify-space-relative-medium);
|
|
583
585
|
--amplify-components-copy-font-size: var(--amplify-font-sizes-xs);
|
|
586
|
+
--amplify-components-checkbox-icon-indeterminate-opacity: var(--amplify-opacities-100);
|
|
584
587
|
--amplify-components-checkbox-icon-checked-opacity: var(--amplify-opacities-100);
|
|
585
588
|
--amplify-components-checkbox-icon-transition-duration: var(--amplify-time-short);
|
|
586
589
|
--amplify-components-checkbox-icon-opacity: var(--amplify-opacities-0);
|
|
@@ -682,8 +685,10 @@
|
|
|
682
685
|
--amplify-components-sliderfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
683
686
|
--amplify-components-sliderfield-range-background-color: var(--amplify-colors-brand-primary-80);
|
|
684
687
|
--amplify-components-sliderfield-track-background-color: var(--amplify-colors-background-quaternary);
|
|
688
|
+
--amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
|
|
685
689
|
--amplify-components-select-option-color: var(--amplify-colors-font-primary);
|
|
686
690
|
--amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
|
|
691
|
+
--amplify-components-searchfield-button-background-color: var(--amplify-colors-background-primary);
|
|
687
692
|
--amplify-components-rating-empty-color: var(--amplify-colors-background-tertiary);
|
|
688
693
|
--amplify-components-rating-filled-color: var(--amplify-colors-brand-secondary-80);
|
|
689
694
|
--amplify-components-radiogroup-radio-border-width: var(--amplify-components-radio-button-border-width);
|
|
@@ -893,6 +898,7 @@
|
|
|
893
898
|
--amplify-components-collection-pagination-button-hover-color: var(--amplify-components-pagination-button-hover-color);
|
|
894
899
|
--amplify-components-collection-pagination-button-color: var(--amplify-components-pagination-button-color);
|
|
895
900
|
--amplify-components-collection-pagination-current-color: var(--amplify-components-pagination-current-color);
|
|
901
|
+
--amplify-components-checkbox-icon-indeterminate-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
896
902
|
--amplify-components-checkbox-icon-checked-disabled-background-color: var(--amplify-colors-background-disabled);
|
|
897
903
|
--amplify-components-checkbox-button-disabled-border-color: var(--amplify-colors-border-disabled);
|
|
898
904
|
--amplify-components-checkbox-button-focus-box-shadow: 0px 0px 0px 2px var(--amplify-colors-border-focus);
|
|
@@ -47,6 +47,11 @@ interface IconCheckedToken {
|
|
|
47
47
|
transform: DesignToken<TransformValue>;
|
|
48
48
|
_disabled: IconCheckedDisabled;
|
|
49
49
|
}
|
|
50
|
+
interface IconIndeterminateToken {
|
|
51
|
+
opacity: DesignToken<OpacityValue>;
|
|
52
|
+
transform: DesignToken<TransformValue>;
|
|
53
|
+
_disabled: IconCheckedDisabled;
|
|
54
|
+
}
|
|
50
55
|
interface IconToken {
|
|
51
56
|
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
52
57
|
borderRadius: DesignToken<BorderRadiusValue>;
|
|
@@ -56,6 +61,7 @@ interface IconToken {
|
|
|
56
61
|
transitionDuration: DesignToken<TransitionDurationValue>;
|
|
57
62
|
transitionTimingFunction: DesignToken<TransitionTimingFunctionValue>;
|
|
58
63
|
_checked: IconCheckedToken;
|
|
64
|
+
_indeterminate: IconIndeterminateToken;
|
|
59
65
|
}
|
|
60
66
|
interface LabelDisabledToken {
|
|
61
67
|
color: DesignToken<ColorValue>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ColorValue, DesignToken } from '../types/designToken';
|
|
1
|
+
import { BackgroundColorValue, ColorValue, DesignToken } from '../types/designToken';
|
|
2
2
|
import { StateTokens } from './button';
|
|
3
3
|
interface SearchTokens {
|
|
4
4
|
color: DesignToken<ColorValue>;
|
|
5
|
+
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
5
6
|
_active: StateTokens;
|
|
6
7
|
_disabled: StateTokens;
|
|
7
8
|
_focus: StateTokens;
|
|
@@ -16,6 +16,9 @@ interface SelectIconWrapperTokens {
|
|
|
16
16
|
interface SelectOptionTokens {
|
|
17
17
|
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
18
18
|
color: DesignToken<ColorValue>;
|
|
19
|
+
_disabled: {
|
|
20
|
+
color: DesignToken<ColorValue>;
|
|
21
|
+
};
|
|
19
22
|
}
|
|
20
23
|
interface SelectSizeTokens {
|
|
21
24
|
minWidth: DesignToken<SpaceValue>;
|
|
@@ -41,6 +41,7 @@ interface SwitchFieldTrackCheckedTokens {
|
|
|
41
41
|
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
42
42
|
}
|
|
43
43
|
export interface SwitchFieldTokens {
|
|
44
|
+
fontSize: DesignToken<FontSizeValue>;
|
|
44
45
|
_disabled: SwitchFieldDisabledTokens;
|
|
45
46
|
_focused: SwitchFieldFocusedTokens;
|
|
46
47
|
large: SwitchFieldSizeTokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist",
|
|
27
|
-
"dist/esm/node_modules",
|
|
28
27
|
"LICENSE"
|
|
29
28
|
],
|
|
30
29
|
"scripts": {
|
|
@@ -43,7 +42,8 @@
|
|
|
43
42
|
"dependencies": {
|
|
44
43
|
"lodash": "4.17.21",
|
|
45
44
|
"style-dictionary": "3.7.0",
|
|
46
|
-
"xstate": "^4.
|
|
45
|
+
"xstate": "^4.33.0",
|
|
46
|
+
"tslib": "2.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@rollup/plugin-typescript": "^8.3.1",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"postcss": "^8.3.6",
|
|
59
59
|
"rimraf": "^3.0.2",
|
|
60
60
|
"rollup": "^2.70.0",
|
|
61
|
+
"rollup-plugin-node-externals": "^4.1.1",
|
|
61
62
|
"rollup-plugin-terser": "^7.0.2",
|
|
62
63
|
"sass": "^1.35.2",
|
|
63
64
|
"ts-jest": "^27.0.3",
|
|
64
65
|
"ts-node": "^10.2.1",
|
|
65
|
-
"tslib": "^2.3.0",
|
|
66
66
|
"type-fest": "^2.3.4"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=function(){return t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},t.apply(this,arguments)};function e(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function n(t,e,n,r){return new(n||(n=Promise))((function(o,a){function l(t){try{i(r.next(t))}catch(t){a(t)}}function c(t){try{i(r.throw(t))}catch(t){a(t)}}function i(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(l,c)}i((r=r.apply(t,e||[])).next())}))}function r(t,e){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,r=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=e.call(t,l)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function o(t,e,n){if(n||2===arguments.length)for(var r,o=0,a=e.length;o<a;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}export{t as __assign,n as __awaiter,r as __generator,e as __rest,o as __spreadArray};
|