@aws-amplify/ui 5.6.7 → 5.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/i18n/dictionaries/authenticator/de.mjs +1 -1
- package/dist/esm/theme/tokens/components/select.mjs +1 -1
- package/dist/esm/theme/tokens/components/switchField.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +20 -9
- package/dist/theme.css +7 -1
- package/dist/types/theme/tokens/components/select.d.ts +6 -2
- package/dist/types/theme/tokens/components/switchField.d.ts +1 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -677,13 +677,17 @@
|
|
|
677
677
|
--amplify-components-select-icon-wrapper-right: var(--amplify-space-medium);
|
|
678
678
|
--amplify-components-select-icon-wrapper-transform: translateY(-50%);
|
|
679
679
|
--amplify-components-select-icon-wrapper-pointer-events: none;
|
|
680
|
+
--amplify-components-select-icon-wrapper-small-right: var(--amplify-space-xs);
|
|
681
|
+
--amplify-components-select-icon-wrapper-large-right: var(--amplify-space-medium);
|
|
680
682
|
--amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
|
|
681
683
|
--amplify-components-select-option-color: var(--amplify-colors-font-primary);
|
|
682
684
|
--amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
|
|
683
685
|
--amplify-components-select-white-space: nowrap;
|
|
684
686
|
--amplify-components-select-min-width: 6.5rem;
|
|
685
687
|
--amplify-components-select-small-min-width: 5.5rem;
|
|
688
|
+
--amplify-components-select-small-padding-inline-end: var(--amplify-space-xl);
|
|
686
689
|
--amplify-components-select-large-min-width: 7.5rem;
|
|
690
|
+
--amplify-components-select-large-padding-inline-end: var(--amplify-space-xxl);
|
|
687
691
|
--amplify-components-selectfield-border-color: var(--amplify-components-fieldcontrol-border-color);
|
|
688
692
|
--amplify-components-selectfield-color: var(--amplify-components-fieldcontrol-color);
|
|
689
693
|
--amplify-components-selectfield-flex-direction: column;
|
|
@@ -807,7 +811,9 @@
|
|
|
807
811
|
--amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
|
|
808
812
|
--amplify-components-switchfield-label-padding: var(--amplify-space-xs);
|
|
809
813
|
--amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
810
|
-
--amplify-components-switchfield-thumb-border-color:
|
|
814
|
+
--amplify-components-switchfield-thumb-border-color: transparent;
|
|
815
|
+
--amplify-components-switchfield-thumb-border-width: var(--amplify-border-widths-small);
|
|
816
|
+
--amplify-components-switchfield-thumb-border-style: solid;
|
|
811
817
|
--amplify-components-switchfield-thumb-border-radius: var(--amplify-radii-xxxl);
|
|
812
818
|
--amplify-components-switchfield-thumb-checked-transform: var(--amplify-transforms-slide-x-medium);
|
|
813
819
|
--amplify-components-switchfield-thumb-transition-duration: var(--amplify-time-medium);
|
|
@@ -1222,14 +1228,6 @@ select {
|
|
|
1222
1228
|
display: block;
|
|
1223
1229
|
overflow: auto;
|
|
1224
1230
|
}
|
|
1225
|
-
.amplify-scrollview--horizontal {
|
|
1226
|
-
overflow-x: scroll;
|
|
1227
|
-
overflow-y: initial;
|
|
1228
|
-
}
|
|
1229
|
-
.amplify-scrollview--vertical {
|
|
1230
|
-
overflow-x: initial;
|
|
1231
|
-
overflow-y: scroll;
|
|
1232
|
-
}
|
|
1233
1231
|
|
|
1234
1232
|
.amplify-text {
|
|
1235
1233
|
display: block;
|
|
@@ -3695,6 +3693,12 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3695
3693
|
transform: var(--amplify-components-select-icon-wrapper-transform);
|
|
3696
3694
|
pointer-events: var(--amplify-components-select-icon-wrapper-pointer-events);
|
|
3697
3695
|
}
|
|
3696
|
+
.amplify-select__icon-wrapper--small {
|
|
3697
|
+
right: var(--amplify-components-select-icon-wrapper-small-right);
|
|
3698
|
+
}
|
|
3699
|
+
.amplify-select__icon-wrapper--large {
|
|
3700
|
+
right: var(--amplify-components-select-icon-wrapper-large-right);
|
|
3701
|
+
}
|
|
3698
3702
|
|
|
3699
3703
|
.amplify-select {
|
|
3700
3704
|
box-sizing: border-box;
|
|
@@ -3796,9 +3800,13 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
3796
3800
|
}
|
|
3797
3801
|
.amplify-select--small {
|
|
3798
3802
|
min-width: var(--amplify-components-select-small-min-width);
|
|
3803
|
+
-webkit-padding-end: var(--amplify-components-select-small-padding-inline-end);
|
|
3804
|
+
padding-inline-end: var(--amplify-components-select-small-padding-inline-end);
|
|
3799
3805
|
}
|
|
3800
3806
|
.amplify-select--large {
|
|
3801
3807
|
min-width: var(--amplify-components-select-large-min-width);
|
|
3808
|
+
-webkit-padding-end: var(--amplify-components-select-large-padding-inline-end);
|
|
3809
|
+
padding-inline-end: var(--amplify-components-select-large-padding-inline-end);
|
|
3802
3810
|
}
|
|
3803
3811
|
|
|
3804
3812
|
.amplify-selectfield {
|
|
@@ -4049,6 +4057,7 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4049
4057
|
.amplify-switchfield {
|
|
4050
4058
|
display: inline-block;
|
|
4051
4059
|
font-size: var(--amplify-components-switchfield-font-size);
|
|
4060
|
+
cursor: pointer;
|
|
4052
4061
|
}
|
|
4053
4062
|
.amplify-switchfield--small {
|
|
4054
4063
|
font-size: var(--amplify-components-switchfield-small-font-size);
|
|
@@ -4105,6 +4114,8 @@ html[dir=rtl] .amplify-field-group__inner-start {
|
|
|
4105
4114
|
border-radius: var(--amplify-components-switchfield-thumb-border-radius);
|
|
4106
4115
|
width: var(--amplify-components-switchfield-thumb-width);
|
|
4107
4116
|
height: var(--amplify-components-switchfield-thumb-width);
|
|
4117
|
+
border-width: var(--amplify-components-switchfield-thumb-border-width);
|
|
4118
|
+
border-style: var(--amplify-components-switchfield-thumb-border-style);
|
|
4108
4119
|
border-color: var(--amplify-components-switchfield-thumb-border-color);
|
|
4109
4120
|
overflow-wrap: break-word;
|
|
4110
4121
|
}
|
package/dist/theme.css
CHANGED
|
@@ -674,13 +674,17 @@
|
|
|
674
674
|
--amplify-components-select-icon-wrapper-right: var(--amplify-space-medium);
|
|
675
675
|
--amplify-components-select-icon-wrapper-transform: translateY(-50%);
|
|
676
676
|
--amplify-components-select-icon-wrapper-pointer-events: none;
|
|
677
|
+
--amplify-components-select-icon-wrapper-small-right: var(--amplify-space-xs);
|
|
678
|
+
--amplify-components-select-icon-wrapper-large-right: var(--amplify-space-medium);
|
|
677
679
|
--amplify-components-select-option-background-color: var(--amplify-colors-background-primary);
|
|
678
680
|
--amplify-components-select-option-color: var(--amplify-colors-font-primary);
|
|
679
681
|
--amplify-components-select-option-disabled-color: var(--amplify-colors-font-disabled);
|
|
680
682
|
--amplify-components-select-white-space: nowrap;
|
|
681
683
|
--amplify-components-select-min-width: 6.5rem;
|
|
682
684
|
--amplify-components-select-small-min-width: 5.5rem;
|
|
685
|
+
--amplify-components-select-small-padding-inline-end: var(--amplify-space-xl);
|
|
683
686
|
--amplify-components-select-large-min-width: 7.5rem;
|
|
687
|
+
--amplify-components-select-large-padding-inline-end: var(--amplify-space-xxl);
|
|
684
688
|
--amplify-components-selectfield-border-color: var(--amplify-components-fieldcontrol-border-color);
|
|
685
689
|
--amplify-components-selectfield-color: var(--amplify-components-fieldcontrol-color);
|
|
686
690
|
--amplify-components-selectfield-flex-direction: column;
|
|
@@ -804,7 +808,9 @@
|
|
|
804
808
|
--amplify-components-switchfield-small-font-size: var(--amplify-font-sizes-small);
|
|
805
809
|
--amplify-components-switchfield-label-padding: var(--amplify-space-xs);
|
|
806
810
|
--amplify-components-switchfield-thumb-background-color: var(--amplify-colors-background-primary);
|
|
807
|
-
--amplify-components-switchfield-thumb-border-color:
|
|
811
|
+
--amplify-components-switchfield-thumb-border-color: transparent;
|
|
812
|
+
--amplify-components-switchfield-thumb-border-width: var(--amplify-border-widths-small);
|
|
813
|
+
--amplify-components-switchfield-thumb-border-style: solid;
|
|
808
814
|
--amplify-components-switchfield-thumb-border-radius: var(--amplify-radii-xxxl);
|
|
809
815
|
--amplify-components-switchfield-thumb-checked-transform: var(--amplify-transforms-slide-x-medium);
|
|
810
816
|
--amplify-components-switchfield-thumb-transition-duration: var(--amplify-time-medium);
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
type SelectSizeTokens<Output> = DesignTokenProperties<'minWidth', Output>;
|
|
2
|
+
type SelectSizeTokens<Output> = DesignTokenProperties<'minWidth' | 'paddingInlineEnd', Output>;
|
|
3
|
+
type SelectIconWrapperTokens<Output> = DesignTokenProperties<'alignItems' | 'position' | 'top' | 'right' | 'transform' | 'pointerEvents', Output> & {
|
|
4
|
+
small?: DesignTokenProperties<'right', Output>;
|
|
5
|
+
large?: DesignTokenProperties<'right', Output>;
|
|
6
|
+
};
|
|
3
7
|
export type SelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'paddingInlineEnd' | 'whiteSpace' | 'minWidth', Output> & {
|
|
4
8
|
wrapper?: DesignTokenProperties<'cursor' | 'display' | 'flex' | 'position', Output>;
|
|
5
|
-
iconWrapper?:
|
|
9
|
+
iconWrapper?: SelectIconWrapperTokens<Output>;
|
|
6
10
|
option?: DesignTokenProperties<'backgroundColor' | 'color', Output> & {
|
|
7
11
|
_disabled?: DesignTokenProperties<'color', Output>;
|
|
8
12
|
};
|
|
@@ -7,7 +7,7 @@ export type SwitchFieldTokens<OutputType extends OutputVariantKey> = DesignToken
|
|
|
7
7
|
large?: SwitchFieldSizeTokens<OutputType>;
|
|
8
8
|
small?: SwitchFieldSizeTokens<OutputType>;
|
|
9
9
|
label?: DesignTokenProperties<'padding', OutputType>;
|
|
10
|
-
thumb?: DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderRadius' | 'width', OutputType> & {
|
|
10
|
+
thumb?: DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderStyle' | 'borderWidth' | 'borderRadius' | 'width', OutputType> & {
|
|
11
11
|
checked?: DesignTokenProperties<'transform', OutputType>;
|
|
12
12
|
transition?: DesignTokenProperties<'duration', OutputType>;
|
|
13
13
|
};
|