@cloudscape-design/components-themeable 3.0.690 → 3.0.691
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/tabs/tab-header-bar.scss +86 -48
- 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 +1 -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/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/tabs/interfaces.d.ts +36 -0
- 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/tabs/styles.css.js +25 -22
- package/lib/internal/template/tabs/styles.scoped.css +107 -77
- package/lib/internal/template/tabs/styles.selectors.js +25 -22
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +106 -17
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/test-utils/dom/tabs/index.d.ts +38 -1
- package/lib/internal/template/test-utils/dom/tabs/index.js +53 -2
- package/lib/internal/template/test-utils/dom/tabs/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/tabs/index.d.ts +38 -1
- package/lib/internal/template/test-utils/selectors/tabs/index.js +53 -2
- package/lib/internal/template/test-utils/selectors/tabs/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@use '../internal/hooks/focus-visible' as focus-visible;
|
|
10
10
|
|
|
11
11
|
$separator-color: awsui.$color-border-tabs-divider;
|
|
12
|
-
$label-horizontal-spacing: awsui.$space-
|
|
12
|
+
$label-horizontal-spacing: awsui.$space-xs;
|
|
13
13
|
|
|
14
14
|
.tabs-header {
|
|
15
15
|
margin-block: 0;
|
|
@@ -73,29 +73,91 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
73
73
|
|
|
74
74
|
flex-shrink: 0;
|
|
75
75
|
display: flex;
|
|
76
|
-
max-inline-size: calc(90% -
|
|
77
|
-
|
|
78
|
-
& > button {
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
}
|
|
76
|
+
max-inline-size: calc(90% - awsui.$space-l);
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
.tabs-tab-label {
|
|
84
80
|
display: flex;
|
|
85
81
|
align-items: center;
|
|
86
|
-
padding-block: awsui.$space-scaled-2x-xxs;
|
|
87
82
|
padding-inline: $label-horizontal-spacing;
|
|
83
|
+
padding-block: awsui.$space-scaled-2x-xxs;
|
|
88
84
|
text-align: start;
|
|
89
85
|
position: relative;
|
|
90
86
|
|
|
91
87
|
@include styles.text-wrapping;
|
|
92
88
|
}
|
|
93
89
|
|
|
90
|
+
.tabs-tab-dismiss,
|
|
91
|
+
.tabs-tab-action {
|
|
92
|
+
/* Used as a selector for tests */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tabs-tab-header-container {
|
|
96
|
+
position: relative;
|
|
97
|
+
|
|
98
|
+
border-block: awsui.$border-divider-section-width solid transparent;
|
|
99
|
+
border-inline: awsui.$border-divider-section-width solid transparent;
|
|
100
|
+
|
|
101
|
+
padding-inline: $label-horizontal-spacing;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: stretch;
|
|
104
|
+
|
|
105
|
+
&,
|
|
106
|
+
& > button {
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& > .tabs-tab-dismiss,
|
|
111
|
+
& > .tabs-tab-action {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.refresh > span:first-of-type {
|
|
117
|
+
margin-inline-start: calc(-1 * awsui.$space-scaled-xs);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.tabs-tab-header-container:not(.tabs-tab-disabled) {
|
|
122
|
+
// This is the underline for the currently selected tab.
|
|
123
|
+
&:after {
|
|
124
|
+
content: '';
|
|
125
|
+
position: absolute;
|
|
126
|
+
inset-inline-start: 0;
|
|
127
|
+
inline-size: calc(100% - 1px);
|
|
128
|
+
inset-block-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
129
|
+
block-size: awsui.$border-active-width;
|
|
130
|
+
border-start-start-radius: awsui.$border-radius-tabs-focus-ring;
|
|
131
|
+
border-start-end-radius: awsui.$border-radius-tabs-focus-ring;
|
|
132
|
+
border-end-start-radius: awsui.$border-radius-tabs-focus-ring;
|
|
133
|
+
border-end-end-radius: awsui.$border-radius-tabs-focus-ring;
|
|
134
|
+
background: awsui.$color-border-tabs-underline;
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.refresh {
|
|
139
|
+
&:after {
|
|
140
|
+
@include styles.with-motion {
|
|
141
|
+
transition: opacity awsui.$motion-duration-refresh-only-medium awsui.$motion-easing-refresh-only-c;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
94
147
|
.tabs-tab:not(:last-child) {
|
|
95
|
-
& >
|
|
96
|
-
& > button > .tabs-tab-label {
|
|
148
|
+
& > .tabs-tab-header-container {
|
|
97
149
|
margin-inline-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
98
|
-
|
|
150
|
+
&:before {
|
|
151
|
+
content: '';
|
|
152
|
+
position: absolute;
|
|
153
|
+
border-inline-end: awsui.$border-divider-section-width solid $separator-color;
|
|
154
|
+
inset: calc(#{awsui.$space-scaled-s}) 0;
|
|
155
|
+
opacity: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.refresh:before {
|
|
159
|
+
inset: calc(#{awsui.$space-scaled-s} - #{awsui.$border-active-width}) 0;
|
|
160
|
+
}
|
|
99
161
|
}
|
|
100
162
|
}
|
|
101
163
|
|
|
@@ -105,8 +167,9 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
105
167
|
align-items: stretch;
|
|
106
168
|
text-decoration: none;
|
|
107
169
|
cursor: pointer;
|
|
108
|
-
padding-block-start: calc(#{awsui.$space-scaled-s} -
|
|
109
|
-
padding-block-end: awsui.$space-scaled-s;
|
|
170
|
+
padding-block-start: calc(#{awsui.$space-scaled-s} - 2px);
|
|
171
|
+
padding-block-end: calc(#{awsui.$space-scaled-s} - 1px);
|
|
172
|
+
|
|
110
173
|
padding-inline: 0;
|
|
111
174
|
margin-block-start: 1px;
|
|
112
175
|
border-block: awsui.$border-divider-section-width solid transparent;
|
|
@@ -116,10 +179,15 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
116
179
|
line-height: awsui.$font-tabs-line-height;
|
|
117
180
|
font-weight: awsui.$font-wayfinding-link-active-weight;
|
|
118
181
|
color: awsui.$color-text-interactive-default;
|
|
182
|
+
|
|
183
|
+
padding-inline-start: calc(#{awsui.$space-xxs} - 1px);
|
|
184
|
+
padding-inline-end: awsui.$space-xxs;
|
|
185
|
+
|
|
119
186
|
&.refresh {
|
|
120
187
|
padding-block-start: calc(awsui.$space-static-xs - 1px);
|
|
121
|
-
padding-block-end: awsui.$space-static-xs;
|
|
122
|
-
|
|
188
|
+
padding-block-end: calc(awsui.$space-static-xs - 1px);
|
|
189
|
+
|
|
190
|
+
margin-block-start: 0;
|
|
123
191
|
}
|
|
124
192
|
|
|
125
193
|
&:hover {
|
|
@@ -129,23 +197,20 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
129
197
|
&:focus {
|
|
130
198
|
outline: none;
|
|
131
199
|
}
|
|
200
|
+
|
|
132
201
|
@include styles.font-smoothing;
|
|
133
202
|
|
|
134
203
|
@include focus-visible.when-visible {
|
|
135
204
|
z-index: 1;
|
|
136
205
|
@include styles.focus-highlight(awsui.$space-tabs-focus-outline-gutter);
|
|
137
|
-
|
|
138
|
-
& > button > .tabs-tab-label {
|
|
139
|
-
border-inline-end-color: transparent;
|
|
140
|
-
}
|
|
206
|
+
border-inline-end-color: transparent;
|
|
141
207
|
}
|
|
142
208
|
}
|
|
143
209
|
|
|
144
210
|
// Remediate focus shadow
|
|
145
211
|
.tabs-tab:first-child {
|
|
146
212
|
margin-inline-start: 1px;
|
|
147
|
-
& >
|
|
148
|
-
& > button > .tabs-tab-label {
|
|
213
|
+
& > .tabs-tab-header-container {
|
|
149
214
|
padding-inline-start: calc(#{$label-horizontal-spacing} - 1px);
|
|
150
215
|
}
|
|
151
216
|
}
|
|
@@ -153,8 +218,7 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
153
218
|
// Remediate focus shadow
|
|
154
219
|
.tabs-tab:last-child {
|
|
155
220
|
margin-inline-end: 1px;
|
|
156
|
-
& >
|
|
157
|
-
& > button > .tabs-tab-label {
|
|
221
|
+
& > .tabs-tab-header-container {
|
|
158
222
|
padding-inline-end: calc(#{$label-horizontal-spacing} - 1px);
|
|
159
223
|
}
|
|
160
224
|
}
|
|
@@ -169,32 +233,6 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
169
233
|
}
|
|
170
234
|
}
|
|
171
235
|
|
|
172
|
-
.tabs-tab-link:not(.tabs-tab-disabled) {
|
|
173
|
-
// This is the underline for the currently selected tab.
|
|
174
|
-
&:after {
|
|
175
|
-
content: '';
|
|
176
|
-
position: absolute;
|
|
177
|
-
inset-inline-start: 0;
|
|
178
|
-
inline-size: 100%;
|
|
179
|
-
inset-block-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
180
|
-
block-size: awsui.$border-active-width;
|
|
181
|
-
border-start-start-radius: awsui.$border-radius-tabs-focus-ring;
|
|
182
|
-
border-start-end-radius: awsui.$border-radius-tabs-focus-ring;
|
|
183
|
-
border-end-start-radius: awsui.$border-radius-tabs-focus-ring;
|
|
184
|
-
border-end-end-radius: awsui.$border-radius-tabs-focus-ring;
|
|
185
|
-
background: awsui.$color-border-tabs-underline;
|
|
186
|
-
opacity: 0;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&.refresh {
|
|
190
|
-
&:after {
|
|
191
|
-
@include styles.with-motion {
|
|
192
|
-
transition: opacity awsui.$motion-duration-refresh-only-medium awsui.$motion-easing-refresh-only-c;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
236
|
.tabs-tab-active:not(.tabs-tab-disabled) {
|
|
199
237
|
color: awsui.$color-text-accent;
|
|
200
238
|
&:after {
|