@cloudscape-design/components-themeable 3.0.1401 → 3.0.1402
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/button/styles.scss +3 -0
- package/lib/internal/scss/copy-to-clipboard/styles.scss +0 -41
- package/lib/internal/scss/internal/components/sticky-scrollbar/mixins.scss +10 -0
- package/lib/internal/scss/{table → internal/components}/sticky-scrollbar/styles.scss +2 -2
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/table-root/styles.scss +3 -0
- package/lib/internal/scss/tabs/styles.scss +0 -1
- package/lib/internal/scss/tabs/tab-header-bar.scss +20 -42
- package/lib/internal/scss/token/styles.scss +1 -0
- package/lib/internal/template/button/styles.css.js +24 -24
- package/lib/internal/template/button/styles.scoped.css +83 -79
- package/lib/internal/template/button/styles.selectors.js +24 -24
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +16 -36
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/styles.css.js +5 -10
- package/lib/internal/template/copy-to-clipboard/styles.scoped.css +6 -38
- package/lib/internal/template/copy-to-clipboard/styles.selectors.js +5 -10
- package/lib/internal/template/icon/generated/icons.d.ts +1 -1
- package/lib/internal/template/icon/generated/icons.js +3 -3
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/index.js.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/sticky-scrollbar.d.ts +2 -1
- package/lib/internal/template/internal/components/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/sticky-scrollbar.js +8 -5
- package/lib/internal/template/internal/components/sticky-scrollbar/sticky-scrollbar.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/styles.css.js +11 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/styles.scoped.css +8 -8
- package/lib/internal/template/internal/components/sticky-scrollbar/styles.selectors.js +12 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.d.ts +10 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/use-sticky-scrollbar.js +17 -16
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +4 -0
- package/lib/internal/template/internal/generated/theming/index.d.cts +9 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.js +4 -0
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +1 -1
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table-root/internal.d.ts.map +1 -1
- package/lib/internal/template/table-root/internal.js +17 -3
- package/lib/internal/template/table-root/internal.js.map +1 -1
- package/lib/internal/template/table-root/styles.css.js +5 -5
- package/lib/internal/template/table-root/styles.scoped.css +10 -6
- package/lib/internal/template/table-root/styles.selectors.js +5 -5
- package/lib/internal/template/tabs/styles.css.js +30 -31
- package/lib/internal/template/tabs/styles.scoped.css +51 -67
- package/lib/internal/template/tabs/styles.selectors.js +30 -31
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +5 -54
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/toggle/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle/internal.js +1 -1
- package/lib/internal/template/toggle/internal.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +25 -24
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/package.json +1 -1
- package/lib/internal/scss/copy-to-clipboard/motion.scss +0 -31
- package/lib/internal/scss/tabs/motion.scss +0 -22
- package/lib/internal/template/table/sticky-scrollbar/index.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/index.js.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.js.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/styles.css.js +0 -11
- package/lib/internal/template/table/sticky-scrollbar/styles.selectors.js +0 -12
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.d.ts +0 -4
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.js.map +0 -1
- /package/lib/internal/template/{table → internal/components}/sticky-scrollbar/index.d.ts +0 -0
- /package/lib/internal/template/{table → internal/components}/sticky-scrollbar/index.js +0 -0
|
@@ -11,7 +11,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
11
11
|
SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
*/
|
|
13
13
|
/* stylelint-disable selector-max-type */
|
|
14
|
-
.awsui_tabs-
|
|
14
|
+
.awsui_tabs-header_14rmt_1ldql_14:not(#\9) {
|
|
15
15
|
margin-block: 0;
|
|
16
16
|
margin-inline: 0;
|
|
17
17
|
padding-block: 0;
|
|
@@ -20,13 +20,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
20
20
|
flex-wrap: wrap;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.awsui_tab-header-scroll-
|
|
23
|
+
.awsui_tab-header-scroll-container_14rmt_1ldql_23:not(#\9) {
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-grow: 1;
|
|
26
26
|
max-inline-size: 100%;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.awsui_tabs-header-
|
|
29
|
+
.awsui_tabs-header-list_14rmt_1ldql_29:not(#\9) {
|
|
30
30
|
margin-block: 0;
|
|
31
31
|
margin-inline: 0;
|
|
32
32
|
padding-block: 0;
|
|
@@ -39,33 +39,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
39
39
|
scroll-snap-type: inline proximity;
|
|
40
40
|
scrollbar-width: none; /* Firefox */
|
|
41
41
|
}
|
|
42
|
-
.awsui_tabs-header-
|
|
42
|
+
.awsui_tabs-header-list_14rmt_1ldql_29:not(#\9)::-webkit-scrollbar {
|
|
43
43
|
display: none; /* Safari and Chrome */
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.awsui_pagination-
|
|
46
|
+
.awsui_pagination-button_14rmt_1ldql_46:not(#\9) {
|
|
47
47
|
margin-block: var(--space-scaled-s-2crg2b, 12px);
|
|
48
48
|
margin-inline: 0;
|
|
49
49
|
padding-block: 0;
|
|
50
50
|
padding-inline: var(--space-xxs-3o1yoq, 4px);
|
|
51
51
|
display: flex;
|
|
52
52
|
}
|
|
53
|
-
.awsui_pagination-button-
|
|
53
|
+
.awsui_pagination-button-left_14rmt_1ldql_53:not(#\9) {
|
|
54
54
|
border-inline-end: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-control-disabled-dh8zaw, #d5dbdb);
|
|
55
55
|
}
|
|
56
|
-
.awsui_pagination-button-left-
|
|
56
|
+
.awsui_pagination-button-left-scrollable_14rmt_1ldql_56:not(#\9) {
|
|
57
57
|
z-index: 1;
|
|
58
58
|
box-shadow: 5px 0px 4px -3px var(--color-border-tabs-shadow-egq8wq, #eaeded), 1px 0px 0px 0px var(--color-border-tabs-shadow-egq8wq, #eaeded);
|
|
59
59
|
}
|
|
60
|
-
.awsui_pagination-button-
|
|
60
|
+
.awsui_pagination-button-right_14rmt_1ldql_60:not(#\9) {
|
|
61
61
|
border-inline-start: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-control-disabled-dh8zaw, #d5dbdb);
|
|
62
62
|
}
|
|
63
|
-
.awsui_pagination-button-right-
|
|
63
|
+
.awsui_pagination-button-right-scrollable_14rmt_1ldql_63:not(#\9) {
|
|
64
64
|
z-index: 1;
|
|
65
65
|
box-shadow: -5px 0px 4px -3px var(--color-border-tabs-shadow-egq8wq, #eaeded), -1px 0px 0px 0 var(--color-border-tabs-shadow-egq8wq, #eaeded);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.awsui_actions-
|
|
68
|
+
.awsui_actions-container_14rmt_1ldql_68:not(#\9) {
|
|
69
69
|
flex-shrink: 0;
|
|
70
70
|
align-self: center;
|
|
71
71
|
padding-block: var(--space-xs-m9b7jf, 8px);
|
|
@@ -73,7 +73,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
73
73
|
margin-inline-start: auto;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.awsui_tabs-
|
|
76
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9) {
|
|
77
77
|
list-style: none;
|
|
78
78
|
padding-block: 0;
|
|
79
79
|
padding-inline: 0;
|
|
@@ -83,7 +83,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
83
83
|
scroll-snap-align: start;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.awsui_tabs-tab-
|
|
86
|
+
.awsui_tabs-tab-label_14rmt_1ldql_86:not(#\9) {
|
|
87
87
|
display: flex;
|
|
88
88
|
align-items: center;
|
|
89
89
|
padding-inline: var(--space-xs-m9b7jf, 8px);
|
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
word-break: break-word;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.awsui_tabs-tab-header-
|
|
97
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9) {
|
|
98
98
|
position: relative;
|
|
99
99
|
border-block: var(--border-divider-section-width-dlkb8v, 1px) solid transparent;
|
|
100
100
|
border-inline: var(--border-divider-section-width-dlkb8v, 1px) solid transparent;
|
|
@@ -102,74 +102,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
102
102
|
display: flex;
|
|
103
103
|
align-items: stretch;
|
|
104
104
|
}
|
|
105
|
-
.awsui_tabs-tab-header-
|
|
105
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97 > .awsui_tabs-tab-dismiss_14rmt_1ldql_105:not(#\9), .awsui_tabs-tab-header-container_14rmt_1ldql_97 > .awsui_tabs-tab-action_14rmt_1ldql_105:not(#\9) {
|
|
106
106
|
position: relative;
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
109
109
|
}
|
|
110
|
-
.awsui_tabs-tab-header-
|
|
110
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97.awsui_refresh_14rmt_1ldql_110 > span:not(#\9):first-of-type {
|
|
111
111
|
margin-inline-start: calc(-1 * var(--space-scaled-xs-pajbd1, 8px));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.awsui_tabs-tab-header-
|
|
114
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114):after {
|
|
115
115
|
content: "";
|
|
116
116
|
position: absolute;
|
|
117
117
|
inset-inline-start: 0;
|
|
118
118
|
inline-size: calc(100% - 1px);
|
|
119
119
|
inset-block-end: calc(-1 * var(--border-divider-section-width-dlkb8v, 1px));
|
|
120
|
-
opacity: 0;
|
|
121
120
|
block-size: var(--awsui-style-tabs-active-indicator-width-8i8exb, var(--border-active-width-8f63o4, 2px));
|
|
122
121
|
border-start-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
123
122
|
border-start-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
124
123
|
border-end-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
125
124
|
border-end-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
126
125
|
background: var(--awsui-style-tabs-active-indicator-color-8i8exb, var(--color-border-tabs-underline-yipmio, #16191f));
|
|
126
|
+
opacity: 0;
|
|
127
127
|
}
|
|
128
|
-
.awsui_tabs-tab-header-
|
|
128
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114).awsui_refresh_14rmt_1ldql_110:after {
|
|
129
129
|
transition: opacity var(--motion-duration-refresh-only-medium-s8g1xv, 0ms) var(--motion-easing-refresh-only-c-7hkv9v, cubic-bezier(0.84, 0, 0.16, 1));
|
|
130
130
|
}
|
|
131
131
|
@media (prefers-reduced-motion: reduce) {
|
|
132
|
-
.awsui_tabs-tab-header-
|
|
132
|
+
.awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114).awsui_refresh_14rmt_1ldql_110:after {
|
|
133
133
|
animation: none;
|
|
134
134
|
transition: none;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
.awsui-motion-disabled .awsui_tabs-tab-header-
|
|
137
|
+
.awsui-motion-disabled .awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114).awsui_refresh_14rmt_1ldql_110:after, .awsui-mode-entering .awsui_tabs-tab-header-container_14rmt_1ldql_97:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114).awsui_refresh_14rmt_1ldql_110:after {
|
|
138
138
|
animation: none;
|
|
139
139
|
transition: none;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.awsui_tabs-
|
|
143
|
-
list-style: none;
|
|
144
|
-
position: absolute;
|
|
145
|
-
inset-block-end: 0;
|
|
146
|
-
inset-inline-start: 0;
|
|
147
|
-
inline-size: 0;
|
|
148
|
-
opacity: 0;
|
|
149
|
-
pointer-events: none;
|
|
150
|
-
block-size: var(--awsui-style-tabs-active-indicator-width-8i8exb, var(--border-active-width-8f63o4, 2px));
|
|
151
|
-
border-start-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
152
|
-
border-start-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
153
|
-
border-end-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
154
|
-
border-end-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-8i8exb, var(--border-radius-tabs-focus-ring-ss6drb, 0px));
|
|
155
|
-
background: var(--awsui-style-tabs-active-indicator-color-8i8exb, var(--color-border-tabs-underline-yipmio, #16191f));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.awsui_tabs-tab_14rmt_js5d6_76:not(#\9):has(+ .awsui_tabs-tab_14rmt_js5d6_76) > .awsui_tabs-tab-header-container_14rmt_js5d6_97 {
|
|
142
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ldql_97 {
|
|
159
143
|
margin-inline-end: calc(-1 * var(--border-divider-section-width-dlkb8v, 1px));
|
|
160
144
|
}
|
|
161
|
-
.awsui_tabs-
|
|
145
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ldql_97:before {
|
|
162
146
|
content: "";
|
|
163
147
|
position: absolute;
|
|
164
148
|
border-inline-end: var(--awsui-style-tabs-separator-width-8i8exb, var(--border-divider-section-width-dlkb8v, 1px)) solid var(--awsui-style-tabs-separator-color-8i8exb, var(--color-border-tabs-divider-sog0al, #aab7b8));
|
|
165
149
|
inset: var(--space-scaled-s-2crg2b, 12px) 0;
|
|
166
150
|
opacity: 1;
|
|
167
151
|
}
|
|
168
|
-
.awsui_tabs-
|
|
152
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ldql_97.awsui_refresh_14rmt_1ldql_110:before {
|
|
169
153
|
inset: calc(var(--space-static-s-bwcdfm, 12px) - var(--border-active-width-8f63o4, 2px)) 0;
|
|
170
154
|
}
|
|
171
155
|
|
|
172
|
-
.awsui_tabs-tab-
|
|
156
|
+
.awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9) {
|
|
173
157
|
position: relative;
|
|
174
158
|
display: flex;
|
|
175
159
|
align-items: stretch;
|
|
@@ -191,28 +175,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
175
|
-webkit-font-smoothing: var(--font-smoothing-webkit-dpz0hr, auto);
|
|
192
176
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-kjlydy, auto);
|
|
193
177
|
}
|
|
194
|
-
.awsui_tabs-tab-
|
|
178
|
+
.awsui_tabs-tab-link_14rmt_1ldql_156.awsui_refresh_14rmt_1ldql_110:not(#\9) {
|
|
195
179
|
padding-block-start: calc(var(--space-static-xs-789l1l, 8px) - 1px);
|
|
196
180
|
padding-block-end: calc(var(--space-static-xs-789l1l, 8px) - 1px);
|
|
197
181
|
margin-block-start: 0;
|
|
198
182
|
}
|
|
199
|
-
.awsui_tabs-tab-
|
|
183
|
+
.awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9):hover {
|
|
200
184
|
color: var(--awsui-style-color-hover-8i8exb, var(--color-text-accent-1mglsg, #0073bb));
|
|
201
185
|
border-color: var(--awsui-style-border-color-hover-8i8exb, var(--awsui-style-border-color-default-8i8exb, transparent));
|
|
202
186
|
background-color: var(--awsui-style-background-hover-8i8exb, var(--awsui-style-background-default-8i8exb, transparent));
|
|
203
187
|
}
|
|
204
|
-
.awsui_tabs-tab-
|
|
188
|
+
.awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9):focus {
|
|
205
189
|
outline: none;
|
|
206
190
|
}
|
|
207
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
191
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9):focus {
|
|
208
192
|
--awsui-style-focus-ring-box-shadow-8i8exb: 0 0 0 var(--awsui-style-focus-ring-border-width-8i8exb, 2px) var(--awsui-style-focus-ring-border-color-8i8exb, var(--color-border-item-focused-sewkzn, #0073bb));
|
|
209
193
|
position: relative;
|
|
210
194
|
}
|
|
211
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
195
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9):focus {
|
|
212
196
|
outline: 2px dotted transparent;
|
|
213
197
|
outline-offset: calc(var(--space-tabs-focus-outline-gutter-j12jn3, 0px) - 1px);
|
|
214
198
|
}
|
|
215
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
199
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ldql_156:not(#\9):focus::before {
|
|
216
200
|
content: " ";
|
|
217
201
|
display: block;
|
|
218
202
|
position: absolute;
|
|
@@ -228,23 +212,23 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_js5d6_172:not(#\9
|
|
|
228
212
|
z-index: 1;
|
|
229
213
|
}
|
|
230
214
|
|
|
231
|
-
.awsui_tabs-
|
|
215
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):first-child {
|
|
232
216
|
margin-inline-start: 1px;
|
|
233
217
|
scroll-margin-inline-start: 1px;
|
|
234
218
|
}
|
|
235
|
-
.awsui_tabs-
|
|
219
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):first-child > .awsui_tabs-tab-header-container_14rmt_1ldql_97 {
|
|
236
220
|
padding-inline-start: calc(var(--space-xs-m9b7jf, 8px) - 1px);
|
|
237
221
|
}
|
|
238
222
|
|
|
239
|
-
.awsui_tabs-
|
|
223
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):last-child {
|
|
240
224
|
margin-inline-end: 1px;
|
|
241
225
|
scroll-margin-inline-end: 1px;
|
|
242
226
|
}
|
|
243
|
-
.awsui_tabs-
|
|
227
|
+
.awsui_tabs-tab_14rmt_1ldql_76:not(#\9):last-child > .awsui_tabs-tab-header-container_14rmt_1ldql_97 {
|
|
244
228
|
padding-inline-end: calc(var(--space-xs-m9b7jf, 8px) - 1px);
|
|
245
229
|
}
|
|
246
230
|
|
|
247
|
-
.awsui_tabs-tab-
|
|
231
|
+
.awsui_tabs-tab-disabled_14rmt_1ldql_114:not(#\9), .awsui_tabs-tab-disabled_14rmt_1ldql_114:not(#\9):hover {
|
|
248
232
|
cursor: default;
|
|
249
233
|
color: var(--awsui-style-color-disabled-8i8exb, var(--color-text-interactive-disabled-tuxgxq, #aab7b8));
|
|
250
234
|
border-color: var(--awsui-style-border-color-disabled-8i8exb, transparent);
|
|
@@ -252,28 +236,28 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_js5d6_172:not(#\9
|
|
|
252
236
|
font-weight: var(--font-weight-tabs-disabled-utbnpu, 400);
|
|
253
237
|
}
|
|
254
238
|
|
|
255
|
-
.awsui_tabs-tab-
|
|
239
|
+
.awsui_tabs-tab-active_14rmt_1ldql_239:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114) {
|
|
256
240
|
color: var(--awsui-style-color-active-8i8exb, var(--color-text-accent-1mglsg, #0073bb));
|
|
257
241
|
border-color: var(--awsui-style-border-color-active-8i8exb, transparent);
|
|
258
242
|
background-color: var(--awsui-style-background-active-8i8exb, transparent);
|
|
259
243
|
}
|
|
260
|
-
.awsui_tabs-tab-
|
|
244
|
+
.awsui_tabs-tab-active_14rmt_1ldql_239:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ldql_114):after {
|
|
261
245
|
opacity: 1;
|
|
262
246
|
}
|
|
263
247
|
|
|
264
|
-
.awsui_tabs-header-with-
|
|
248
|
+
.awsui_tabs-header-with-divider_14rmt_1ldql_248:not(#\9) {
|
|
265
249
|
border-block-end: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-tabs-divider-sog0al, #aab7b8);
|
|
266
250
|
}
|
|
267
251
|
|
|
268
|
-
.awsui_tabs-tab-
|
|
252
|
+
.awsui_tabs-tab-focusable_14rmt_1ldql_252:not(#\9) {
|
|
269
253
|
/* used to manage focusable logic */
|
|
270
254
|
}
|
|
271
255
|
|
|
272
|
-
.
|
|
256
|
+
.awsui_root_14rmt_1ldql_256:not(#\9) {
|
|
273
257
|
/* used in test-utils or tests */
|
|
274
258
|
}
|
|
275
259
|
|
|
276
|
-
.
|
|
260
|
+
.awsui_tabs_14rmt_1ldql_14:not(#\9) {
|
|
277
261
|
border-collapse: separate;
|
|
278
262
|
border-spacing: 0;
|
|
279
263
|
box-sizing: border-box;
|
|
@@ -307,21 +291,21 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_js5d6_172:not(#\9
|
|
|
307
291
|
inline-size: 100%;
|
|
308
292
|
}
|
|
309
293
|
|
|
310
|
-
.awsui_tabs-
|
|
294
|
+
.awsui_tabs-content_14rmt_1ldql_294:not(#\9) {
|
|
311
295
|
display: none;
|
|
312
296
|
}
|
|
313
297
|
|
|
314
|
-
.awsui_fit-
|
|
298
|
+
.awsui_fit-height_14rmt_1ldql_298:not(#\9) {
|
|
315
299
|
display: flex;
|
|
316
300
|
flex-direction: column;
|
|
317
301
|
block-size: 100%;
|
|
318
302
|
}
|
|
319
303
|
|
|
320
|
-
.awsui_tabs-content-
|
|
304
|
+
.awsui_tabs-content-active_14rmt_1ldql_304:not(#\9) {
|
|
321
305
|
display: block;
|
|
322
306
|
flex: 1;
|
|
323
307
|
}
|
|
324
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-content-
|
|
308
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_1ldql_304:not(#\9):focus {
|
|
325
309
|
outline: 2px dotted transparent;
|
|
326
310
|
outline-offset: 2px;
|
|
327
311
|
border-start-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
@@ -331,32 +315,32 @@ body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_js5d6_320:n
|
|
|
331
315
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-sewkzn, #0073bb);
|
|
332
316
|
}
|
|
333
317
|
|
|
334
|
-
.awsui_tabs-content-
|
|
318
|
+
.awsui_tabs-content-wrapper_14rmt_1ldql_318.awsui_with-paddings_14rmt_1ldql_318 > .awsui_tabs-content_14rmt_1ldql_294:not(#\9) {
|
|
335
319
|
padding-block: var(--space-scaled-m-lfeh3i, 16px);
|
|
336
320
|
padding-inline: 0;
|
|
337
321
|
}
|
|
338
|
-
.awsui_fit-
|
|
322
|
+
.awsui_fit-height_14rmt_1ldql_298 > .awsui_tabs-content-wrapper_14rmt_1ldql_318:not(#\9) {
|
|
339
323
|
flex: 1;
|
|
340
324
|
display: flex;
|
|
341
325
|
flex-direction: column;
|
|
342
326
|
overflow: auto;
|
|
343
327
|
}
|
|
344
328
|
|
|
345
|
-
.awsui_fit-
|
|
329
|
+
.awsui_fit-height_14rmt_1ldql_298 > .awsui_tabs-content-wrapper_14rmt_1ldql_318 > .awsui_tabs-container-content-wrapper_14rmt_1ldql_329:not(#\9) {
|
|
346
330
|
block-size: 100%;
|
|
347
331
|
display: flex;
|
|
348
332
|
flex-direction: column;
|
|
349
333
|
}
|
|
350
|
-
.awsui_tabs-container-content-
|
|
334
|
+
.awsui_tabs-container-content-wrapper_14rmt_1ldql_329.awsui_with-paddings_14rmt_1ldql_318 > .awsui_tabs-content_14rmt_1ldql_294:not(#\9) {
|
|
351
335
|
padding-block-start: var(--space-tabs-content-top-vepiyd, 16px);
|
|
352
336
|
padding-block-end: var(--space-scaled-l-33ruz6, 20px);
|
|
353
337
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
354
338
|
}
|
|
355
339
|
|
|
356
|
-
.awsui_disabled-reason-
|
|
340
|
+
.awsui_disabled-reason-tooltip_14rmt_1ldql_340:not(#\9) {
|
|
357
341
|
/* used in test-utils or tests */
|
|
358
342
|
}
|
|
359
343
|
|
|
360
|
-
.awsui_tabs-tab-
|
|
344
|
+
.awsui_tabs-tab-focused_14rmt_1ldql_344:not(#\9) {
|
|
361
345
|
/* used to manage focusable state for disabled with reason tabs */
|
|
362
346
|
}
|
|
@@ -2,36 +2,35 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"tabs-header": "awsui_tabs-
|
|
6
|
-
"tab-header-scroll-container": "awsui_tab-header-scroll-
|
|
7
|
-
"tabs-header-list": "awsui_tabs-header-
|
|
8
|
-
"pagination-button": "awsui_pagination-
|
|
9
|
-
"pagination-button-left": "awsui_pagination-button-
|
|
10
|
-
"pagination-button-left-scrollable": "awsui_pagination-button-left-
|
|
11
|
-
"pagination-button-right": "awsui_pagination-button-
|
|
12
|
-
"pagination-button-right-scrollable": "awsui_pagination-button-right-
|
|
13
|
-
"actions-container": "awsui_actions-
|
|
14
|
-
"tabs-tab": "awsui_tabs-
|
|
15
|
-
"tabs-tab-label": "awsui_tabs-tab-
|
|
16
|
-
"tabs-tab-header-container": "awsui_tabs-tab-header-
|
|
17
|
-
"tabs-tab-dismiss": "awsui_tabs-tab-
|
|
18
|
-
"tabs-tab-action": "awsui_tabs-tab-
|
|
19
|
-
"refresh": "
|
|
20
|
-
"tabs-tab-disabled": "awsui_tabs-tab-
|
|
21
|
-
"tabs-
|
|
22
|
-
"tabs-tab-
|
|
23
|
-
"tabs-
|
|
24
|
-
"tabs-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"tabs": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"tabs-content-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_js5d6_360"
|
|
5
|
+
"tabs-header": "awsui_tabs-header_14rmt_1ldql_14",
|
|
6
|
+
"tab-header-scroll-container": "awsui_tab-header-scroll-container_14rmt_1ldql_23",
|
|
7
|
+
"tabs-header-list": "awsui_tabs-header-list_14rmt_1ldql_29",
|
|
8
|
+
"pagination-button": "awsui_pagination-button_14rmt_1ldql_46",
|
|
9
|
+
"pagination-button-left": "awsui_pagination-button-left_14rmt_1ldql_53",
|
|
10
|
+
"pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_1ldql_56",
|
|
11
|
+
"pagination-button-right": "awsui_pagination-button-right_14rmt_1ldql_60",
|
|
12
|
+
"pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_1ldql_63",
|
|
13
|
+
"actions-container": "awsui_actions-container_14rmt_1ldql_68",
|
|
14
|
+
"tabs-tab": "awsui_tabs-tab_14rmt_1ldql_76",
|
|
15
|
+
"tabs-tab-label": "awsui_tabs-tab-label_14rmt_1ldql_86",
|
|
16
|
+
"tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_1ldql_97",
|
|
17
|
+
"tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_1ldql_105",
|
|
18
|
+
"tabs-tab-action": "awsui_tabs-tab-action_14rmt_1ldql_105",
|
|
19
|
+
"refresh": "awsui_refresh_14rmt_1ldql_110",
|
|
20
|
+
"tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_1ldql_114",
|
|
21
|
+
"tabs-tab-link": "awsui_tabs-tab-link_14rmt_1ldql_156",
|
|
22
|
+
"tabs-tab-active": "awsui_tabs-tab-active_14rmt_1ldql_239",
|
|
23
|
+
"tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_1ldql_248",
|
|
24
|
+
"tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_1ldql_252",
|
|
25
|
+
"root": "awsui_root_14rmt_1ldql_256",
|
|
26
|
+
"tabs": "awsui_tabs_14rmt_1ldql_14",
|
|
27
|
+
"tabs-content": "awsui_tabs-content_14rmt_1ldql_294",
|
|
28
|
+
"fit-height": "awsui_fit-height_14rmt_1ldql_298",
|
|
29
|
+
"tabs-content-active": "awsui_tabs-content-active_14rmt_1ldql_304",
|
|
30
|
+
"tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_1ldql_318",
|
|
31
|
+
"with-paddings": "awsui_with-paddings_14rmt_1ldql_318",
|
|
32
|
+
"tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_1ldql_329",
|
|
33
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_1ldql_340",
|
|
34
|
+
"tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_1ldql_344"
|
|
36
35
|
};
|
|
37
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-header-bar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab-header-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tab-header-bar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab-header-bar.tsx"],"names":[],"mappings":"AAiCA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA2CzC,UAAU,iBAAiB;IACzB,QAAQ,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,KAAK,IAAI,CAAC;IACzD,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACtC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;IACpC,sBAAsB,EAAE,QAAQ,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,WAAW,EACX,SAAS,EACT,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,OAAO,EACP,KAAK,GACN,EAAE,iBAAiB,eAmcnB;AAoFD,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,UAEzF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React, { forwardRef,
|
|
3
|
+
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useContainerQuery } from '@cloudscape-design/component-toolkit';
|
|
6
|
-
import {
|
|
6
|
+
import { SingleTabStopNavigationProvider, useMergeRefs, useSingleTabStopNavigation, } from '@cloudscape-design/component-toolkit/internal';
|
|
7
7
|
import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
8
8
|
import { InternalButton } from '../button/internal';
|
|
9
9
|
import { useInternalI18n } from '../i18n/context';
|
|
@@ -11,7 +11,7 @@ import { getAllFocusables } from '../internal/components/focus-lock/utils';
|
|
|
11
11
|
import { hasModifierKeys, isPlainLeftClick } from '../internal/events';
|
|
12
12
|
import useHiddenDescription from '../internal/hooks/use-hidden-description';
|
|
13
13
|
import { usePrevious } from '../internal/hooks/use-previous';
|
|
14
|
-
import {
|
|
14
|
+
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
15
15
|
import { KeyCode } from '../internal/keycode';
|
|
16
16
|
import { circleIndex } from '../internal/utils/circle-index';
|
|
17
17
|
import { isHTMLElement } from '../internal/utils/dom';
|
|
@@ -34,10 +34,6 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
34
34
|
const inlineStartOverflowButton = useRef(null);
|
|
35
35
|
const i18n = useInternalI18n('tabs');
|
|
36
36
|
const isVisualRefresh = useVisualRefresh();
|
|
37
|
-
const isOneTheme = useOneTheme();
|
|
38
|
-
const [indicatorStyle, setIndicatorStyle] = useState({ opacity: 0 });
|
|
39
|
-
const previousIndicatorTabId = usePrevious(activeTabId);
|
|
40
|
-
const activeHeaderContainerRef = useRef(null);
|
|
41
37
|
const containerObjectRef = useRef(null);
|
|
42
38
|
const documentRef = useRef(typeof document !== 'undefined' ? document : null);
|
|
43
39
|
const documentRefCallback = (node) => { var _a; return (documentRef.current = (_a = node === null || node === void 0 ? void 0 : node.ownerDocument) !== null && _a !== void 0 ? _a : document); };
|
|
@@ -117,44 +113,6 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
117
113
|
}
|
|
118
114
|
}
|
|
119
115
|
}, [activeTabId]);
|
|
120
|
-
const activeTab = tabs.find(tab => tab.id === activeTabId);
|
|
121
|
-
const activeTabVisible = activeTab !== undefined && !activeTab.disabled;
|
|
122
|
-
const updateIndicator = () => {
|
|
123
|
-
const list = headerBarRef.current;
|
|
124
|
-
const headerContainer = activeTabVisible ? activeHeaderContainerRef.current : null;
|
|
125
|
-
if (!list || !headerContainer) {
|
|
126
|
-
setIndicatorStyle({ opacity: 0 });
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
const borderWidth = headerContainer.clientLeft;
|
|
130
|
-
// Layout metrics ignore transforms (such as a Modal scaling in) and the scroll position.
|
|
131
|
-
// start = tabStart + border, width = tabWidth - 2 * border - 1 (as the per-tab :after)
|
|
132
|
-
const tabStart = getIsRtl(list)
|
|
133
|
-
? list.clientWidth - headerContainer.offsetLeft - headerContainer.offsetWidth
|
|
134
|
-
: headerContainer.offsetLeft;
|
|
135
|
-
const insetInlineStart = `${tabStart + borderWidth}px`;
|
|
136
|
-
const inlineSize = `${headerContainer.offsetWidth - 2 * borderWidth - 1}px`;
|
|
137
|
-
const animate = previousIndicatorTabId !== undefined && previousIndicatorTabId !== activeTabId;
|
|
138
|
-
setIndicatorStyle(prev => {
|
|
139
|
-
const sameGeometry = prev.insetInlineStart === insetInlineStart && prev.inlineSize === inlineSize && prev.opacity === 1;
|
|
140
|
-
if (sameGeometry) {
|
|
141
|
-
return prev;
|
|
142
|
-
}
|
|
143
|
-
return { insetInlineStart, inlineSize, opacity: 1, transition: animate ? undefined : 'none' };
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
useLayoutEffect(() => {
|
|
147
|
-
if (isOneTheme) {
|
|
148
|
-
updateIndicator();
|
|
149
|
-
}
|
|
150
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
151
|
-
}, [isOneTheme, activeTabId, activeTabVisible, tabs, widthChange]);
|
|
152
|
-
const getActiveHeaderContainer = useCallback(() => (activeTabId !== undefined ? activeHeaderContainerRef.current : null), [activeTabId]);
|
|
153
|
-
useResizeObserver(getActiveHeaderContainer, () => {
|
|
154
|
-
if (isOneTheme) {
|
|
155
|
-
updateIndicator();
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
116
|
const onScroll = () => {
|
|
159
117
|
if (headerBarRef.current) {
|
|
160
118
|
setInlineStartOverflow(hasInlineStartOverflow(headerBarRef.current));
|
|
@@ -284,15 +242,12 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
284
242
|
return getAllFocusables(target).filter(el => isElementRegistered(el) && isElementFocusable(el));
|
|
285
243
|
}
|
|
286
244
|
const TabList = hasActionOrDismissible ? 'div' : 'ul';
|
|
287
|
-
const Indicator = hasActionOrDismissible ? 'span' : 'li';
|
|
288
245
|
return (React.createElement("div", { className: classes },
|
|
289
246
|
React.createElement("div", { className: styles['tab-header-scroll-container'], ref: containerRef },
|
|
290
247
|
horizontalOverflow && (React.createElement("span", { ref: inlineStartOverflowButton, className: leftButtonClasses },
|
|
291
248
|
React.createElement(InternalButton, { formAction: "none", variant: "icon", iconName: "angle-left", disabled: !inlineStartOverflow, __focusable: true, onClick: () => onPaginationClick(headerBarRef, 'backward'), ariaLabel: i18n('i18nStrings.scrollLeftAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.scrollLeftAriaLabel) }))),
|
|
292
249
|
React.createElement(SingleTabStopNavigationProvider, { ref: navigationAPI, navigationActive: true, getNextFocusTarget: getNextFocusTarget, onUnregisterActive: onUnregisterActive },
|
|
293
|
-
React.createElement(TabList, { ...tabActionAttributes, className: clsx(styles['tabs-header-list'], analyticsSelectors['tabs-header-list']), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ref: headerBarRef,
|
|
294
|
-
tabs.map(renderTabHeader),
|
|
295
|
-
isOneTheme && activeTabVisible && (React.createElement(Indicator, { className: styles['tabs-active-indicator'], style: indicatorStyle, "aria-hidden": "true" })))),
|
|
250
|
+
React.createElement(TabList, { ...tabActionAttributes, className: clsx(styles['tabs-header-list'], analyticsSelectors['tabs-header-list']), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ref: headerBarRef, onScroll: onScroll, onKeyDown: onKeyDown, onFocus: onFocus, onBlur: onBlur }, tabs.map(renderTabHeader))),
|
|
296
251
|
horizontalOverflow && (React.createElement("span", { className: rightButtonClasses },
|
|
297
252
|
React.createElement(InternalButton, { formAction: "none", variant: "icon", iconName: "angle-right", disabled: !inlineEndOverflow, __focusable: true, onClick: () => onPaginationClick(headerBarRef, 'forward'), ariaLabel: i18n('i18nStrings.scrollRightAriaLabel', i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.scrollRightAriaLabel) })))),
|
|
298
253
|
actions && React.createElement("div", { className: styles['actions-container'] }, actions)));
|
|
@@ -415,11 +370,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
415
370
|
},
|
|
416
371
|
};
|
|
417
372
|
return (React.createElement(TabItem, { ref: (element) => tabRefs.current.set(tab.id, element), className: styles['tabs-tab'], role: "presentation", key: tab.id },
|
|
418
|
-
React.createElement("div", {
|
|
419
|
-
if (tab.id === activeTabId) {
|
|
420
|
-
activeHeaderContainerRef.current = element;
|
|
421
|
-
}
|
|
422
|
-
}, className: tabHeaderContainerClasses, ...tabHeaderContainerAriaProps, ...getAnalyticsMetadataAttribute({ component: analyticsComponentMetadataInnerContext }), style: getTabContainerStyles(style) },
|
|
373
|
+
React.createElement("div", { className: tabHeaderContainerClasses, ...tabHeaderContainerAriaProps, ...getAnalyticsMetadataAttribute({ component: analyticsComponentMetadataInnerContext }), style: getTabContainerStyles(style) },
|
|
423
374
|
React.createElement(TabTrigger, { ref: setElement, tab: tab, elementProps: commonProps, activeTabId: activeTabId, index: index, style: style }),
|
|
424
375
|
action && React.createElement("span", { className: tabActionClasses }, action),
|
|
425
376
|
dismissible && (React.createElement("span", { className: styles['tabs-tab-dismiss'], ...getAnalyticsMetadataAttribute(analyticsDismissMetadata) }, dismissButton({ dismissLabel, dismissDisabled, onDismiss: handleDismiss, tabId: tab.id }))))));
|