@cloudscape-design/components-themeable 3.0.1391 → 3.0.1393
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/box/visual-accent.scss +0 -24
- package/lib/internal/scss/button/constants.scss +15 -0
- package/lib/internal/scss/button/styles.scss +21 -1
- package/lib/internal/scss/input/styles.scss +104 -203
- package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +138 -0
- package/lib/internal/scss/internal/components/autosuggest-input/test-classes/styles.scss +19 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +20 -1
- package/lib/internal/scss/internal/components/control-group/styles.scss +39 -15
- package/lib/internal/scss/internal/components/control-group/test-classes/styles.scss +16 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/forms/grouped-control.scss +65 -0
- package/lib/internal/scss/internal/styles/forms/index.scss +1 -0
- package/lib/internal/scss/internal/styles/forms/mixins.scss +41 -43
- package/lib/internal/scss/internal/styles/utils/mixins.scss +10 -0
- package/lib/internal/scss/segmented-control/styles.scss +1 -0
- package/lib/internal/template/autosuggest/i18n-utils.d.ts +12 -0
- package/lib/internal/template/autosuggest/i18n-utils.d.ts.map +1 -0
- package/lib/internal/template/autosuggest/i18n-utils.js +15 -0
- package/lib/internal/template/autosuggest/i18n-utils.js.map +1 -0
- package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/index.js +3 -0
- package/lib/internal/template/autosuggest/index.js.map +1 -1
- package/lib/internal/template/autosuggest/interfaces.d.ts +94 -1
- package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +21 -12
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/options-controller.d.ts +2 -1
- package/lib/internal/template/autosuggest/options-controller.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/options-controller.js +3 -6
- package/lib/internal/template/autosuggest/options-controller.js.map +1 -1
- package/lib/internal/template/box/interfaces.d.ts +4 -1
- package/lib/internal/template/box/interfaces.d.ts.map +1 -1
- package/lib/internal/template/box/interfaces.js.map +1 -1
- package/lib/internal/template/box/styles.css.js +214 -220
- package/lib/internal/template/box/styles.scoped.css +259 -289
- package/lib/internal/template/box/styles.selectors.js +214 -220
- package/lib/internal/template/button/interfaces.d.ts +3 -1
- package/lib/internal/template/button/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button/interfaces.js.map +1 -1
- package/lib/internal/template/button/internal.d.ts +2 -2
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +9 -1
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button/styles.css.js +24 -23
- package/lib/internal/template/button/styles.scoped.css +116 -70
- package/lib/internal/template/button/styles.selectors.js +24 -23
- package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.d.ts +6 -3
- package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/button-group/interfaces.d.ts +22 -13
- package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-group/interfaces.js.map +1 -1
- package/lib/internal/template/calendar/grid/index.js.map +1 -1
- package/lib/internal/template/calendar/interfaces.d.ts +3 -1
- package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/calendar/interfaces.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +3 -1
- package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.d.ts +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/grid-cell.js.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.d.ts +3 -1
- package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
- package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
- package/lib/internal/template/drawer/interfaces.d.ts +3 -1
- package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
- package/lib/internal/template/drawer/interfaces.js.map +1 -1
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/i18n/messages-types.d.ts +13 -0
- package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages-types.js.map +1 -1
- package/lib/internal/template/input/internal.d.ts +1 -0
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +15 -19
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +37 -36
- package/lib/internal/template/input/styles.scoped.css +180 -243
- package/lib/internal/template/input/styles.selectors.js +37 -36
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +0 -61
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +158 -12
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts +21 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js +95 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts +16 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js +94 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +27 -2
- package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +195 -2
- package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +27 -2
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.css.js +9 -0
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.scoped.css +19 -0
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.selectors.js +10 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts +21 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js +63 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js.map +1 -0
- package/lib/internal/template/internal/components/button-trigger/index.d.ts +4 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +5 -3
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +23 -21
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +79 -36
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +23 -21
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +1 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +3 -2
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/index.d.ts +3 -9
- package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/index.js +16 -10
- package/lib/internal/template/internal/components/control-group/index.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts +43 -0
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts.map +1 -0
- package/lib/internal/template/internal/components/control-group/interfaces.js +2 -0
- package/lib/internal/template/internal/components/control-group/interfaces.js.map +1 -0
- package/lib/internal/template/internal/components/control-group/styles.css.js +16 -11
- package/lib/internal/template/internal/components/control-group/styles.scoped.css +34 -14
- package/lib/internal/template/internal/components/control-group/styles.selectors.js +16 -11
- package/lib/internal/template/internal/components/control-group/test-classes/styles.css.js +8 -0
- package/lib/internal/template/internal/components/control-group/test-classes/styles.scoped.css +15 -0
- package/lib/internal/template/internal/components/control-group/test-classes/styles.selectors.js +9 -0
- package/lib/internal/template/internal/components/option/interfaces.d.ts +1 -1
- package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
- package/lib/internal/template/internal/context/control-group-context.d.ts +5 -0
- package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -1
- package/lib/internal/template/internal/context/control-group-context.js +1 -0
- package/lib/internal/template/internal/context/control-group-context.js.map +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/hooks/use-hidden-description/index.d.ts +2 -1
- package/lib/internal/template/internal/hooks/use-hidden-description/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-hidden-description/index.js.map +1 -1
- package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
- package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +27 -26
- package/lib/internal/template/segmented-control/styles.scoped.css +51 -47
- package/lib/internal/template/segmented-control/styles.selectors.js +27 -26
- package/lib/internal/template/select/interfaces.d.ts +1 -1
- package/lib/internal/template/select/interfaces.js.map +1 -1
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts +2 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.js.map +1 -1
- package/lib/internal/template/table/interfaces.d.ts +5 -3
- package/lib/internal/template/table/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/interfaces.js.map +1 -1
- package/lib/internal/template/tabs/interfaces.d.ts +4 -2
- package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
- package/lib/internal/template/tabs/interfaces.js.map +1 -1
- package/lib/internal/template/test-utils/dom/autosuggest/index.d.ts +39 -0
- package/lib/internal/template/test-utils/dom/autosuggest/index.js +68 -16
- package/lib/internal/template/test-utils/dom/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/control-group.d.ts +5 -0
- package/lib/internal/template/test-utils/dom/internal/control-group.js +9 -2
- package/lib/internal/template/test-utils/dom/internal/control-group.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/autosuggest/index.d.ts +53 -0
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js +84 -16
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/control-group.d.ts +5 -0
- package/lib/internal/template/test-utils/selectors/internal/control-group.js +9 -2
- package/lib/internal/template/test-utils/selectors/internal/control-group.js.map +1 -1
- package/lib/internal/template/toggle-button/interfaces.d.ts +3 -1
- package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
- package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
- package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
- package/lib/internal/template/token/dismiss-button.js +6 -3
- package/lib/internal/template/token/dismiss-button.js.map +1 -1
- package/lib/internal/template/types/option.d.ts +1 -1
- package/lib/internal/template/types/option.d.ts.map +1 -1
- package/lib/internal/template/types/option.js.map +1 -1
- package/package.json +1 -1
|
@@ -109,10 +109,6 @@ $accent-colors: (
|
|
|
109
109
|
background: awsui.$color-background-visual-accent-purple,
|
|
110
110
|
foreground: awsui.$color-text-visual-accent-purple,
|
|
111
111
|
),
|
|
112
|
-
'lime': (
|
|
113
|
-
background: awsui.$color-background-visual-accent-lime,
|
|
114
|
-
foreground: awsui.$color-text-visual-accent-lime,
|
|
115
|
-
),
|
|
116
112
|
'grey': (
|
|
117
113
|
background: awsui.$color-background-visual-accent-grey,
|
|
118
114
|
foreground: awsui.$color-text-visual-accent-grey,
|
|
@@ -121,26 +117,6 @@ $accent-colors: (
|
|
|
121
117
|
background: awsui.$color-background-visual-accent-teal,
|
|
122
118
|
foreground: awsui.$color-text-visual-accent-teal,
|
|
123
119
|
),
|
|
124
|
-
'blue': (
|
|
125
|
-
background: awsui.$color-background-visual-accent-blue,
|
|
126
|
-
foreground: awsui.$color-text-visual-accent-blue,
|
|
127
|
-
),
|
|
128
|
-
'violet': (
|
|
129
|
-
background: awsui.$color-background-visual-accent-violet,
|
|
130
|
-
foreground: awsui.$color-text-visual-accent-violet,
|
|
131
|
-
),
|
|
132
|
-
'magenta': (
|
|
133
|
-
background: awsui.$color-background-visual-accent-magenta,
|
|
134
|
-
foreground: awsui.$color-text-visual-accent-magenta,
|
|
135
|
-
),
|
|
136
|
-
'pink': (
|
|
137
|
-
background: awsui.$color-background-visual-accent-pink,
|
|
138
|
-
foreground: awsui.$color-text-visual-accent-pink,
|
|
139
|
-
),
|
|
140
|
-
'amber': (
|
|
141
|
-
background: awsui.$color-background-visual-accent-amber,
|
|
142
|
-
foreground: awsui.$color-text-visual-accent-amber,
|
|
143
|
-
),
|
|
144
120
|
);
|
|
145
121
|
|
|
146
122
|
@each $accent, $colors in $accent-colors {
|
|
@@ -62,6 +62,21 @@ $variants: (
|
|
|
62
62
|
'disabled-border-color': transparent,
|
|
63
63
|
'disabled-color': awsui.$color-text-button-icon-disabled,
|
|
64
64
|
),
|
|
65
|
+
'control-group-action': (
|
|
66
|
+
'default-background': transparent,
|
|
67
|
+
'default-border-color': awsui.$color-border-input-default,
|
|
68
|
+
'default-color': awsui.$color-text-interactive-default,
|
|
69
|
+
'hover-background': transparent,
|
|
70
|
+
'hover-border-color': awsui.$color-border-input-default,
|
|
71
|
+
'hover-color': awsui.$color-text-button-icon-hover,
|
|
72
|
+
'active-background': transparent,
|
|
73
|
+
'active-border-color': awsui.$color-border-input-default,
|
|
74
|
+
'active-color': awsui.$color-text-interactive-default,
|
|
75
|
+
'disabled-background': transparent,
|
|
76
|
+
'disabled-border-color': awsui.$color-border-input-default,
|
|
77
|
+
'disabled-color': awsui.$color-text-button-icon-disabled,
|
|
78
|
+
'border-width': awsui.$border-width-field,
|
|
79
|
+
),
|
|
65
80
|
'inline-icon': (
|
|
66
81
|
'default-background': transparent,
|
|
67
82
|
'default-border-color': transparent,
|
|
@@ -129,7 +129,10 @@ $tokens: style-api.resolve($props, carrier);
|
|
|
129
129
|
$radius: var(#{custom-props.$styleFocusRingBorderRadius}, awsui.$border-radius-control-default-focus-ring);
|
|
130
130
|
$width: var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width);
|
|
131
131
|
$color: var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-item-focused);
|
|
132
|
-
|
|
132
|
+
|
|
133
|
+
&:not(.variant-control-group-action) {
|
|
134
|
+
@include style-api.focus-highlight($radius: $radius, $width: $width, $color: $color);
|
|
135
|
+
}
|
|
133
136
|
|
|
134
137
|
&.variant-icon,
|
|
135
138
|
&.variant-modal-dismiss,
|
|
@@ -152,6 +155,13 @@ $tokens: style-api.resolve($props, carrier);
|
|
|
152
155
|
$color: $color
|
|
153
156
|
);
|
|
154
157
|
}
|
|
158
|
+
|
|
159
|
+
&.variant-control-group-action {
|
|
160
|
+
@include styles.form-focus-element(
|
|
161
|
+
$border-color: $color,
|
|
162
|
+
$box-shadow: var(#{custom-props.$styleBoxShadowFocus}, foundation.$box-shadow-focused-light)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
155
165
|
}
|
|
156
166
|
|
|
157
167
|
&.button-no-text {
|
|
@@ -201,6 +211,16 @@ $tokens: style-api.resolve($props, carrier);
|
|
|
201
211
|
border-inline-width: 0;
|
|
202
212
|
}
|
|
203
213
|
|
|
214
|
+
&.variant-control-group-action {
|
|
215
|
+
border-block-style: solid;
|
|
216
|
+
border-inline-style: solid;
|
|
217
|
+
@include styles.grouped-control-base;
|
|
218
|
+
@include styles.grouped-control-horizontal-last;
|
|
219
|
+
padding-block: awsui.$space-field-vertical;
|
|
220
|
+
padding-inline: awsui.$space-xs;
|
|
221
|
+
min-block-size: awsui.$size-vertical-input;
|
|
222
|
+
}
|
|
223
|
+
|
|
204
224
|
> .icon-left {
|
|
205
225
|
position: relative;
|
|
206
226
|
// margin-left was breaking layout on firefox
|
|
@@ -28,75 +28,36 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
%input-default-styles {
|
|
32
|
-
background-color: var(#{custom-props.$styleBackgroundDefault}, awsui.$color-background-input-default);
|
|
33
|
-
border-block: awsui.$border-width-field solid
|
|
34
|
-
var(#{custom-props.$styleBorderColorDefault}, awsui.$color-border-input-default);
|
|
35
|
-
border-inline: awsui.$border-width-field solid
|
|
36
|
-
var(#{custom-props.$styleBorderColorDefault}, awsui.$color-border-input-default);
|
|
37
|
-
box-shadow: var(#{custom-props.$styleBoxShadowDefault});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
%input-hover-styles {
|
|
41
|
-
border-color: var(
|
|
42
|
-
#{custom-props.$styleBorderColorHover},
|
|
43
|
-
var(#{custom-props.$styleBorderColorDefault}, awsui.$color-border-input-default)
|
|
44
|
-
);
|
|
45
|
-
background-color: var(
|
|
46
|
-
#{custom-props.$styleBackgroundHover},
|
|
47
|
-
var(#{custom-props.$styleBackgroundDefault}, awsui.$color-background-input-default)
|
|
48
|
-
);
|
|
49
|
-
box-shadow: var(#{custom-props.$styleBoxShadowHover}, #{custom-props.$styleBoxShadowDefault});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
%input-readonly-styles {
|
|
53
|
-
@include styles.form-readonly-element(
|
|
54
|
-
$background-color: var(
|
|
55
|
-
#{custom-props.$styleBackgroundReadonly},
|
|
56
|
-
var(#{custom-props.$styleBackgroundDefault}, awsui.$color-background-input-default)
|
|
57
|
-
),
|
|
58
|
-
$border-color: var(
|
|
59
|
-
#{custom-props.$styleBorderColorReadonly},
|
|
60
|
-
var(#{custom-props.$styleBorderColorDefault}, awsui.$color-border-input-disabled)
|
|
61
|
-
)
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
%input-focus-styles {
|
|
66
|
-
@include styles.form-focus-element(
|
|
67
|
-
$border-color: var(#{custom-props.$styleBorderColorFocus}, awsui.$color-border-input-focused),
|
|
68
|
-
$box-shadow: var(#{custom-props.$styleBoxShadowFocus}, foundation.$box-shadow-focused-light)
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
31
|
.root {
|
|
73
32
|
/* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
|
|
74
33
|
}
|
|
75
34
|
|
|
35
|
+
// The native input only renders text: the border, background, box-shadow and all state styles
|
|
36
|
+
// live on the surrounding .input-field box.
|
|
76
37
|
.input {
|
|
77
38
|
@include styles.styles-reset;
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-inline-size: 0;
|
|
41
|
+
inline-size: 100%;
|
|
78
42
|
padding-block: styles.$control-padding-vertical;
|
|
79
43
|
padding-inline: styles.$control-padding-horizontal;
|
|
80
44
|
color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-body-default);
|
|
81
|
-
inline-size: 100%;
|
|
82
45
|
cursor: text;
|
|
83
46
|
box-sizing: border-box;
|
|
84
|
-
border-
|
|
85
|
-
border-
|
|
86
|
-
|
|
87
|
-
|
|
47
|
+
border-block: none;
|
|
48
|
+
border-inline: none;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
// Also discards built-in invalid styles, customers should use `invalid` property only (AWSUI-3947)
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
outline: none;
|
|
88
53
|
|
|
89
54
|
@include styles.font-body-m;
|
|
90
|
-
min-block-size: awsui.$size-vertical-input;
|
|
91
|
-
|
|
92
|
-
@extend %input-default-styles;
|
|
93
55
|
|
|
94
56
|
&:hover {
|
|
95
57
|
color: var(
|
|
96
58
|
#{custom-props.$styleColorHover},
|
|
97
59
|
var(#{custom-props.$styleBorderColorDefault}, awsui.$color-text-body-default)
|
|
98
60
|
);
|
|
99
|
-
@extend %input-hover-styles;
|
|
100
61
|
}
|
|
101
62
|
|
|
102
63
|
&.input-readonly {
|
|
@@ -104,8 +65,6 @@
|
|
|
104
65
|
#{custom-props.$styleColorReadonly},
|
|
105
66
|
var(#{custom-props.$styleColorDefault}, awsui.$color-text-body-default)
|
|
106
67
|
);
|
|
107
|
-
box-shadow: var(#{custom-props.$styleBoxShadowReadonly});
|
|
108
|
-
@extend %input-readonly-styles;
|
|
109
68
|
}
|
|
110
69
|
|
|
111
70
|
@include placeholder {
|
|
@@ -119,18 +78,12 @@
|
|
|
119
78
|
|
|
120
79
|
&:focus {
|
|
121
80
|
color: var(#{custom-props.$styleColorFocus}, awsui.$color-text-body-default);
|
|
122
|
-
background-color: var(#{custom-props.$styleBackgroundFocus}, awsui.$color-background-input-default);
|
|
123
|
-
@extend %input-focus-styles;
|
|
124
81
|
}
|
|
125
82
|
|
|
126
83
|
&:disabled {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
$color: var(#{custom-props.$styleColorDisabled}, awsui.$color-text-input-disabled),
|
|
131
|
-
$cursor: default
|
|
132
|
-
);
|
|
133
|
-
box-shadow: var(#{custom-props.$styleBoxShadowDisabled});
|
|
84
|
+
opacity: 1;
|
|
85
|
+
color: var(#{custom-props.$styleColorDisabled}, awsui.$color-text-input-disabled);
|
|
86
|
+
cursor: default;
|
|
134
87
|
@include placeholder {
|
|
135
88
|
@include styles.form-placeholder-disabled(
|
|
136
89
|
$color: var(#{custom-props.$stylePlaceholderColor}, awsui.$color-text-input-placeholder-disabled)
|
|
@@ -138,37 +91,12 @@
|
|
|
138
91
|
}
|
|
139
92
|
}
|
|
140
93
|
|
|
141
|
-
&:invalid {
|
|
142
|
-
// discard built-in invalid styles, customers should use `invalid` property only (AWSUI-3947)
|
|
143
|
-
box-shadow: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
94
|
&.input-invalid {
|
|
147
|
-
|
|
148
|
-
$color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-error),
|
|
149
|
-
$border-color: var(#{custom-props.$styleBorderColorDefault}, awsui.$color-text-status-error),
|
|
150
|
-
$focus-box-shadow: var(#{custom-props.$styleBoxShadowFocus}, foundation.$box-shadow-focused-light-invalid)
|
|
151
|
-
);
|
|
152
|
-
&.input-has-icon-start {
|
|
153
|
-
padding-inline-start: calc(
|
|
154
|
-
#{styles.$control-icon-horizontal-padding} -
|
|
155
|
-
(#{styles.$invalid-control-left-border} - #{awsui.$border-width-field})
|
|
156
|
-
);
|
|
157
|
-
}
|
|
95
|
+
color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-error);
|
|
158
96
|
}
|
|
159
97
|
|
|
160
98
|
&.input-warning {
|
|
161
|
-
|
|
162
|
-
$color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-warning),
|
|
163
|
-
$border-color: var(#{custom-props.$styleBorderColorDefault}, awsui.$color-text-status-warning),
|
|
164
|
-
$focus-box-shadow: var(#{custom-props.$styleBoxShadowFocus}, foundation.$box-shadow-focused-light-invalid)
|
|
165
|
-
);
|
|
166
|
-
&.input-has-icon-start {
|
|
167
|
-
padding-inline-start: calc(
|
|
168
|
-
#{styles.$control-icon-horizontal-padding} -
|
|
169
|
-
(#{styles.$invalid-control-left-border} - #{awsui.$border-width-field})
|
|
170
|
-
);
|
|
171
|
-
}
|
|
99
|
+
color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-warning);
|
|
172
100
|
}
|
|
173
101
|
|
|
174
102
|
&.input-type-search {
|
|
@@ -190,16 +118,6 @@
|
|
|
190
118
|
&.input-has-icon-end {
|
|
191
119
|
padding-inline-end: styles.$control-icon-horizontal-padding;
|
|
192
120
|
}
|
|
193
|
-
&.input-has-no-border-radius {
|
|
194
|
-
border-start-start-radius: awsui.$border-radius-dropdown;
|
|
195
|
-
border-start-end-radius: awsui.$border-radius-dropdown;
|
|
196
|
-
border-end-start-radius: awsui.$border-radius-dropdown;
|
|
197
|
-
border-end-end-radius: awsui.$border-radius-dropdown;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.grouped {
|
|
202
|
-
@include styles.grouped-control;
|
|
203
121
|
}
|
|
204
122
|
|
|
205
123
|
.input-container {
|
|
@@ -207,87 +125,49 @@
|
|
|
207
125
|
position: relative;
|
|
208
126
|
}
|
|
209
127
|
|
|
210
|
-
.input-
|
|
211
|
-
position: absolute;
|
|
212
|
-
pointer-events: none;
|
|
213
|
-
inset-inline-start: styles.$control-icon-horizontal-offset;
|
|
214
|
-
inset-block-start: styles.$control-icon-vertical-offset;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.input-icon-end {
|
|
218
|
-
position: absolute;
|
|
219
|
-
inset-block-start: calc(#{styles.$control-icon-vertical-offset} - #{awsui.$space-xxxs});
|
|
220
|
-
inset-inline-end: calc(#{styles.$control-icon-horizontal-offset} - #{awsui.$space-xxs});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.input-button-right {
|
|
224
|
-
/* used in test-utils */
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.inline-label-trigger-wrapper {
|
|
228
|
-
@include forms.inline-label-trigger-wrapper;
|
|
229
|
-
|
|
230
|
-
&-full-width {
|
|
231
|
-
inline-size: 100%;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.inline-label-wrapper {
|
|
236
|
-
@include forms.inline-label-wrapper;
|
|
237
|
-
|
|
238
|
-
&-full-width {
|
|
239
|
-
inline-size: 100%;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.inline-label {
|
|
244
|
-
@include forms.inline-label;
|
|
245
|
-
|
|
246
|
-
&-disabled {
|
|
247
|
-
@include forms.inline-label-disabled;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.input-adorned-container {
|
|
128
|
+
.input-field {
|
|
252
129
|
display: flex;
|
|
253
130
|
align-items: stretch;
|
|
254
131
|
inline-size: 100%;
|
|
255
132
|
box-sizing: border-box;
|
|
133
|
+
cursor: text;
|
|
134
|
+
overflow: clip;
|
|
256
135
|
color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-form-secondary);
|
|
257
136
|
border-start-start-radius: styles.$control-border-radius;
|
|
258
137
|
border-start-end-radius: styles.$control-border-radius;
|
|
259
138
|
border-end-start-radius: styles.$control-border-radius;
|
|
260
139
|
border-end-end-radius: styles.$control-border-radius;
|
|
261
140
|
min-block-size: awsui.$size-vertical-input;
|
|
262
|
-
|
|
263
|
-
@extend %input-default-styles;
|
|
141
|
+
@include styles.input-default-styles;
|
|
264
142
|
|
|
265
143
|
&:hover {
|
|
266
|
-
@extend %input-hover-styles;
|
|
267
144
|
color: var(
|
|
268
145
|
#{custom-props.$styleColorHover},
|
|
269
146
|
var(#{custom-props.$styleColorDefault}, awsui.$color-text-form-secondary)
|
|
270
147
|
);
|
|
148
|
+
@include styles.input-hover-styles;
|
|
271
149
|
}
|
|
272
150
|
|
|
273
|
-
&.input-
|
|
274
|
-
@extend %input-readonly-styles;
|
|
151
|
+
&.input-field-readonly {
|
|
275
152
|
color: var(
|
|
276
153
|
#{custom-props.$styleColorReadonly},
|
|
277
154
|
var(#{custom-props.$styleColorDefault}, awsui.$color-text-form-secondary)
|
|
278
155
|
);
|
|
156
|
+
box-shadow: var(#{custom-props.$styleBoxShadowReadonly});
|
|
157
|
+
@include styles.input-readonly-styles;
|
|
279
158
|
}
|
|
280
159
|
|
|
281
160
|
&:focus-within {
|
|
282
|
-
@extend %input-focus-styles;
|
|
283
161
|
color: var(
|
|
284
162
|
#{custom-props.$styleColorFocus},
|
|
285
163
|
var(#{custom-props.$styleColorDefault}, awsui.$color-text-form-secondary)
|
|
286
164
|
);
|
|
165
|
+
background-color: var(#{custom-props.$styleBackgroundFocus}, awsui.$color-background-input-default);
|
|
166
|
+
@include styles.input-focus-styles;
|
|
287
167
|
}
|
|
288
168
|
|
|
289
169
|
// Keep disabled styles before validation modifiers so invalid/warning border colors win when both modifiers are present.
|
|
290
|
-
&.input-
|
|
170
|
+
&.input-field-disabled {
|
|
291
171
|
@include styles.form-disabled-element(
|
|
292
172
|
$background-color: var(#{custom-props.$styleBackgroundDisabled}, awsui.$color-background-input-disabled),
|
|
293
173
|
$border-color: var(#{custom-props.$styleBorderColorDisabled}, awsui.$color-border-input-disabled),
|
|
@@ -297,7 +177,7 @@
|
|
|
297
177
|
box-shadow: var(#{custom-props.$styleBoxShadowDisabled});
|
|
298
178
|
}
|
|
299
179
|
|
|
300
|
-
&.input-
|
|
180
|
+
&.input-field-invalid {
|
|
301
181
|
@include styles.form-invalid-control(
|
|
302
182
|
$color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-error),
|
|
303
183
|
$border-color: var(#{custom-props.$styleBorderColorDefault}, awsui.$color-text-status-error),
|
|
@@ -311,7 +191,7 @@
|
|
|
311
191
|
}
|
|
312
192
|
}
|
|
313
193
|
|
|
314
|
-
&.input-
|
|
194
|
+
&.input-field-warning {
|
|
315
195
|
@include styles.form-warning-control(
|
|
316
196
|
$color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-status-warning),
|
|
317
197
|
$border-color: var(#{custom-props.$styleBorderColorDefault}, awsui.$color-text-status-warning),
|
|
@@ -324,6 +204,30 @@
|
|
|
324
204
|
box-shadow: var(#{custom-props.$styleBoxShadowFocus}, foundation.$box-shadow-focused-light-invalid);
|
|
325
205
|
}
|
|
326
206
|
}
|
|
207
|
+
|
|
208
|
+
&.input-field-no-border-radius {
|
|
209
|
+
border-start-start-radius: awsui.$border-radius-dropdown;
|
|
210
|
+
border-start-end-radius: awsui.$border-radius-dropdown;
|
|
211
|
+
border-end-start-radius: awsui.$border-radius-dropdown;
|
|
212
|
+
border-end-end-radius: awsui.$border-radius-dropdown;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Nested so the grouped corner rules win over the field's own radius by specificity, not by source order.
|
|
216
|
+
&.input-field-no-border {
|
|
217
|
+
min-block-size: unset;
|
|
218
|
+
&,
|
|
219
|
+
&:hover,
|
|
220
|
+
&:focus-within {
|
|
221
|
+
border-block-width: 0;
|
|
222
|
+
border-inline-width: 0;
|
|
223
|
+
box-shadow: none;
|
|
224
|
+
background-color: transparent;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.grouped {
|
|
229
|
+
@include styles.grouped-control;
|
|
230
|
+
}
|
|
327
231
|
}
|
|
328
232
|
|
|
329
233
|
.input-prefix,
|
|
@@ -336,6 +240,8 @@
|
|
|
336
240
|
padding-block: styles.$control-padding-vertical;
|
|
337
241
|
padding-inline: styles.$control-padding-horizontal;
|
|
338
242
|
color: inherit;
|
|
243
|
+
// Adornments are not part of the editable text, so they do not show the text cursor.
|
|
244
|
+
cursor: default;
|
|
339
245
|
@include styles.font-body-m;
|
|
340
246
|
}
|
|
341
247
|
|
|
@@ -354,73 +260,68 @@
|
|
|
354
260
|
inline-size: awsui.$border-width-field;
|
|
355
261
|
background-color: awsui.$color-border-divider-default;
|
|
356
262
|
align-self: stretch;
|
|
263
|
+
cursor: default;
|
|
357
264
|
}
|
|
358
265
|
|
|
359
|
-
.
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
border-end-start-radius: 0;
|
|
367
|
-
border-end-end-radius: 0;
|
|
368
|
-
background-color: transparent;
|
|
369
|
-
box-shadow: none;
|
|
370
|
-
min-block-size: unset;
|
|
371
|
-
|
|
372
|
-
&.input:focus {
|
|
373
|
-
border-block: 0;
|
|
374
|
-
border-inline: 0;
|
|
375
|
-
box-shadow: none;
|
|
376
|
-
outline: none;
|
|
266
|
+
// The wider invalid/warning start border is absorbed by the first cell, so the content does not shift.
|
|
267
|
+
// The first cell is the prefix when present, otherwise the native input.
|
|
268
|
+
.input-field-invalid,
|
|
269
|
+
.input-field-warning {
|
|
270
|
+
> .input-prefix,
|
|
271
|
+
> .input:first-child {
|
|
272
|
+
padding-inline-start: styles.$invalid-control-left-padding;
|
|
377
273
|
}
|
|
378
274
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
275
|
+
> .input-has-icon-start:first-child {
|
|
276
|
+
padding-inline-start: calc(
|
|
277
|
+
#{styles.$control-icon-horizontal-padding} -
|
|
278
|
+
(#{styles.$invalid-control-left-border} - #{awsui.$border-width-field})
|
|
279
|
+
);
|
|
382
280
|
}
|
|
383
281
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
border-block: 0;
|
|
388
|
-
border-inline: 0;
|
|
282
|
+
> .input-prefix,
|
|
283
|
+
> .input-suffix {
|
|
284
|
+
max-inline-size: calc(50% - 6rem + (#{styles.$invalid-control-left-border} - #{awsui.$border-width-field}) / 2);
|
|
389
285
|
}
|
|
286
|
+
}
|
|
390
287
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
288
|
+
.input-icon-start {
|
|
289
|
+
position: absolute;
|
|
290
|
+
pointer-events: none;
|
|
291
|
+
inset-inline-start: styles.$control-icon-horizontal-offset;
|
|
292
|
+
inset-block-start: styles.$control-icon-vertical-offset;
|
|
293
|
+
}
|
|
397
294
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
295
|
+
.input-icon-end {
|
|
296
|
+
position: absolute;
|
|
297
|
+
inset-block-start: calc(#{styles.$control-icon-vertical-offset} - #{awsui.$space-xxxs});
|
|
298
|
+
inset-inline-end: calc(#{styles.$control-icon-horizontal-offset} - #{awsui.$space-xxs});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.input-button-right {
|
|
302
|
+
/* used in test-utils */
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.inline-label-trigger-wrapper {
|
|
306
|
+
@include forms.inline-label-trigger-wrapper;
|
|
307
|
+
|
|
308
|
+
&-full-width {
|
|
309
|
+
inline-size: 100%;
|
|
412
310
|
}
|
|
413
311
|
}
|
|
414
312
|
|
|
415
|
-
.
|
|
416
|
-
.
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
313
|
+
.inline-label-wrapper {
|
|
314
|
+
@include forms.inline-label-wrapper;
|
|
315
|
+
|
|
316
|
+
&-full-width {
|
|
317
|
+
inline-size: 100%;
|
|
420
318
|
}
|
|
319
|
+
}
|
|
421
320
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
321
|
+
.inline-label {
|
|
322
|
+
@include forms.inline-label;
|
|
323
|
+
|
|
324
|
+
&-disabled {
|
|
325
|
+
@include forms.inline-label-disabled;
|
|
425
326
|
}
|
|
426
327
|
}
|