@cloudscape-design/components 3.0.387 → 3.0.389
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/anchor-navigation/index.d.ts +5 -0
- package/anchor-navigation/index.d.ts.map +1 -0
- package/anchor-navigation/index.js +14 -0
- package/anchor-navigation/index.js.map +1 -0
- package/anchor-navigation/interfaces.d.ts +67 -0
- package/anchor-navigation/interfaces.d.ts.map +1 -0
- package/anchor-navigation/interfaces.js +4 -0
- package/anchor-navigation/interfaces.js.map +1 -0
- package/anchor-navigation/internal.d.ts +5 -0
- package/anchor-navigation/internal.d.ts.map +1 -0
- package/anchor-navigation/internal.js +48 -0
- package/anchor-navigation/internal.js.map +1 -0
- package/anchor-navigation/styles.css.js +13 -0
- package/anchor-navigation/styles.scoped.css +243 -0
- package/anchor-navigation/styles.selectors.js +14 -0
- package/anchor-navigation/test-classes/styles.css.js +11 -0
- package/anchor-navigation/test-classes/styles.scoped.css +27 -0
- package/anchor-navigation/test-classes/styles.selectors.js +12 -0
- package/anchor-navigation/use-scroll-spy.d.ts +18 -0
- package/anchor-navigation/use-scroll-spy.d.ts.map +1 -0
- package/anchor-navigation/use-scroll-spy.js +74 -0
- package/anchor-navigation/use-scroll-spy.js.map +1 -0
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +75 -75
- package/app-layout/visual-refresh/styles.scoped.css +295 -295
- package/app-layout/visual-refresh/styles.selectors.js +75 -75
- package/button/styles.css.js +20 -20
- package/button/styles.scoped.css +151 -152
- package/button/styles.selectors.js +20 -20
- package/button-dropdown/item-element/styles.css.js +15 -15
- package/button-dropdown/item-element/styles.scoped.css +18 -19
- package/button-dropdown/item-element/styles.selectors.js +15 -15
- package/cards/index.js +2 -2
- package/cards/index.js.map +1 -1
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +129 -131
- package/code-editor/styles.selectors.js +32 -32
- package/collection-preferences/content-display/styles.css.js +11 -11
- package/collection-preferences/content-display/styles.scoped.css +17 -18
- package/collection-preferences/content-display/styles.selectors.js +11 -11
- package/collection-preferences/styles.css.js +37 -37
- package/collection-preferences/styles.scoped.css +44 -45
- package/collection-preferences/styles.selectors.js +37 -37
- package/container/index.d.ts.map +1 -1
- package/container/index.js +2 -2
- package/container/index.js.map +1 -1
- package/container/internal.d.ts +5 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +7 -4
- package/container/internal.js.map +1 -1
- package/content-layout/styles.css.js +7 -7
- package/content-layout/styles.scoped.css +13 -13
- package/content-layout/styles.selectors.js +7 -7
- package/expandable-section/expandable-section-container.d.ts +5 -3
- package/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/expandable-section/expandable-section-container.js +2 -2
- package/expandable-section/expandable-section-container.js.map +1 -1
- package/expandable-section/index.d.ts.map +1 -1
- package/expandable-section/index.js +8 -3
- package/expandable-section/index.js.map +1 -1
- package/expandable-section/internal.d.ts +3 -3
- package/expandable-section/internal.d.ts.map +1 -1
- package/expandable-section/internal.js +2 -2
- package/expandable-section/internal.js.map +1 -1
- package/expandable-section/styles.css.js +29 -29
- package/expandable-section/styles.scoped.css +58 -59
- package/expandable-section/styles.selectors.js +29 -29
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -172
- package/flashbar/styles.selectors.js +47 -47
- package/form-field/styles.css.js +19 -19
- package/form-field/styles.scoped.css +29 -30
- package/form-field/styles.selectors.js +19 -19
- package/header/styles.css.js +32 -32
- package/header/styles.scoped.css +48 -49
- package/header/styles.selectors.js +32 -32
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/analytics/components/analytics-funnel.d.ts +3 -2
- package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
- package/internal/analytics/components/analytics-funnel.js +20 -5
- package/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
- package/internal/analytics/hooks/use-funnel.js +2 -1
- package/internal/analytics/hooks/use-funnel.js.map +1 -1
- package/internal/components/abstract-switch/styles.css.js +13 -13
- package/internal/components/abstract-switch/styles.scoped.css +19 -21
- package/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/internal/components/dropdown/dropdown-fit-handler.d.ts +31 -2
- package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
- package/internal/components/dropdown/dropdown-fit-handler.js +49 -7
- package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
- package/internal/components/dropdown/index.d.ts.map +1 -1
- package/internal/components/dropdown/index.js +20 -2
- package/internal/components/dropdown/index.js.map +1 -1
- package/internal/components/dropdown/styles.css.js +21 -21
- package/internal/components/dropdown/styles.scoped.css +37 -36
- package/internal/components/dropdown/styles.selectors.js +21 -21
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +13 -14
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +29 -30
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +40 -39
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/scrollable-containers.d.ts +6 -1
- package/internal/utils/scrollable-containers.d.ts.map +1 -1
- package/internal/utils/scrollable-containers.js +1 -1
- package/internal/utils/scrollable-containers.js.map +1 -1
- package/modal/internal.d.ts.map +1 -1
- package/modal/internal.js +6 -4
- package/modal/internal.js.map +1 -1
- package/package.json +2 -1
- package/progress-bar/styles.css.js +18 -18
- package/progress-bar/styles.scoped.css +32 -33
- package/progress-bar/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +30 -30
- package/property-filter/styles.scoped.css +32 -33
- package/property-filter/styles.selectors.js +30 -30
- package/side-navigation/styles.css.js +28 -28
- package/side-navigation/styles.scoped.css +38 -39
- package/side-navigation/styles.selectors.js +28 -28
- package/split-panel/styles.css.js +56 -56
- package/split-panel/styles.scoped.css +77 -78
- package/split-panel/styles.selectors.js +56 -56
- package/status-indicator/internal.d.ts.map +1 -1
- package/status-indicator/internal.js +3 -1
- package/status-indicator/internal.js.map +1 -1
- package/status-indicator/styles.css.js +22 -22
- package/status-indicator/styles.scoped.css +36 -34
- package/status-indicator/styles.selectors.js +22 -22
- package/table/header-cell/index.d.ts +1 -4
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +2 -2
- package/table/header-cell/index.js.map +1 -1
- package/table/index.d.ts.map +1 -1
- package/table/index.js +8 -4
- package/table/index.js.map +1 -1
- package/table/internal.d.ts +1 -0
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +9 -10
- package/table/internal.js.map +1 -1
- package/table/resizer/index.d.ts +3 -6
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +59 -119
- package/table/resizer/index.js.map +1 -1
- package/table/resizer/resizer-lookup.d.ts +8 -0
- package/table/resizer/resizer-lookup.d.ts.map +1 -0
- package/table/resizer/resizer-lookup.js +39 -0
- package/table/resizer/resizer-lookup.js.map +1 -0
- package/table/sticky-columns/utils.js +2 -2
- package/table/sticky-columns/utils.js.map +1 -1
- package/table/thead.d.ts +0 -1
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +2 -2
- package/table/thead.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +39 -40
- package/tabs/styles.selectors.js +21 -21
- package/test-utils/dom/anchor-navigation/index.d.ts +16 -0
- package/test-utils/dom/anchor-navigation/index.js +58 -0
- package/test-utils/dom/anchor-navigation/index.js.map +1 -0
- package/test-utils/dom/index.d.ts +3 -0
- package/test-utils/dom/index.js +10 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/selectors/anchor-navigation/index.d.ts +15 -0
- package/test-utils/selectors/anchor-navigation/index.js +45 -0
- package/test-utils/selectors/anchor-navigation/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +3 -0
- package/test-utils/selectors/index.js +10 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/tiles/styles.css.js +29 -29
- package/tiles/styles.scoped.css +70 -71
- package/tiles/styles.selectors.js +29 -29
- package/wizard/styles.css.js +31 -31
- package/wizard/styles.scoped.css +64 -68
- package/wizard/styles.selectors.js +31 -31
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"icon-shake": "awsui_icon-
|
|
5
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
6
|
-
"container-fade-in": "awsui_container-fade-
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"root": "
|
|
9
|
-
"status-error": "awsui_status-
|
|
10
|
-
"status-warning": "awsui_status-
|
|
11
|
-
"status-success": "awsui_status-
|
|
12
|
-
"status-info": "awsui_status-
|
|
13
|
-
"status-stopped": "awsui_status-
|
|
14
|
-
"status-pending": "awsui_status-
|
|
15
|
-
"status-in-progress": "awsui_status-in-
|
|
16
|
-
"status-loading": "awsui_status-
|
|
17
|
-
"color-override-red": "awsui_color-override-
|
|
18
|
-
"color-override-grey": "awsui_color-override-
|
|
19
|
-
"color-override-blue": "awsui_color-override-
|
|
20
|
-
"color-override-green": "awsui_color-override-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"display-inline-block": "awsui_display-inline-
|
|
25
|
-
"overflow-ellipsis": "awsui_overflow-
|
|
4
|
+
"icon-shake": "awsui_icon-shake_1cbgc_yqmfc_97",
|
|
5
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_yqmfc_1",
|
|
6
|
+
"container-fade-in": "awsui_container-fade-in_1cbgc_yqmfc_125",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_yqmfc_1",
|
|
8
|
+
"root": "awsui_root_1cbgc_yqmfc_147",
|
|
9
|
+
"status-error": "awsui_status-error_1cbgc_yqmfc_156",
|
|
10
|
+
"status-warning": "awsui_status-warning_1cbgc_yqmfc_159",
|
|
11
|
+
"status-success": "awsui_status-success_1cbgc_yqmfc_162",
|
|
12
|
+
"status-info": "awsui_status-info_1cbgc_yqmfc_165",
|
|
13
|
+
"status-stopped": "awsui_status-stopped_1cbgc_yqmfc_168",
|
|
14
|
+
"status-pending": "awsui_status-pending_1cbgc_yqmfc_171",
|
|
15
|
+
"status-in-progress": "awsui_status-in-progress_1cbgc_yqmfc_174",
|
|
16
|
+
"status-loading": "awsui_status-loading_1cbgc_yqmfc_177",
|
|
17
|
+
"color-override-red": "awsui_color-override-red_1cbgc_yqmfc_180",
|
|
18
|
+
"color-override-grey": "awsui_color-override-grey_1cbgc_yqmfc_183",
|
|
19
|
+
"color-override-blue": "awsui_color-override-blue_1cbgc_yqmfc_186",
|
|
20
|
+
"color-override-green": "awsui_color-override-green_1cbgc_yqmfc_189",
|
|
21
|
+
"container": "awsui_container_1cbgc_yqmfc_125",
|
|
22
|
+
"display-inline": "awsui_display-inline_1cbgc_yqmfc_193",
|
|
23
|
+
"icon": "awsui_icon_1cbgc_yqmfc_97",
|
|
24
|
+
"display-inline-block": "awsui_display-inline-block_1cbgc_yqmfc_201",
|
|
25
|
+
"overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_yqmfc_210"
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -94,11 +94,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.awsui_icon-
|
|
97
|
+
.awsui_icon-shake_1cbgc_yqmfc_97:not(#\9) {
|
|
98
98
|
display: inline-block;
|
|
99
|
-
animation: awsui_awsui-motion-shake-
|
|
99
|
+
animation: awsui_awsui-motion-shake-horizontally_1cbgc_yqmfc_1 var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
100
100
|
}
|
|
101
|
-
@keyframes awsui_awsui-motion-shake-
|
|
101
|
+
@keyframes awsui_awsui-motion-shake-horizontally_1cbgc_yqmfc_1 {
|
|
102
102
|
0% {
|
|
103
103
|
transform: translateX(-5px);
|
|
104
104
|
animation-timing-function: linear;
|
|
@@ -112,20 +112,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
@media (prefers-reduced-motion: reduce) {
|
|
115
|
-
.awsui_icon-
|
|
115
|
+
.awsui_icon-shake_1cbgc_yqmfc_97:not(#\9) {
|
|
116
116
|
animation: none;
|
|
117
117
|
transition: none;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
.awsui-motion-disabled .awsui_icon-
|
|
120
|
+
.awsui-motion-disabled .awsui_icon-shake_1cbgc_yqmfc_97:not(#\9), .awsui-mode-entering .awsui_icon-shake_1cbgc_yqmfc_97:not(#\9) {
|
|
121
121
|
animation: none;
|
|
122
122
|
transition: none;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.awsui_container-fade-
|
|
126
|
-
animation: awsui_awsui-motion-fade-in-
|
|
125
|
+
.awsui_container-fade-in_1cbgc_yqmfc_125:not(#\9) {
|
|
126
|
+
animation: awsui_awsui-motion-fade-in-0_1cbgc_yqmfc_1 var(--motion-duration-refresh-only-medium-nf6485, 165ms) var(--motion-easing-refresh-only-a-8flf9q, cubic-bezier(0, 0, 0, 1));
|
|
127
127
|
}
|
|
128
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
128
|
+
@keyframes awsui_awsui-motion-fade-in-0_1cbgc_yqmfc_1 {
|
|
129
129
|
from {
|
|
130
130
|
opacity: 0;
|
|
131
131
|
}
|
|
@@ -134,17 +134,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
@media (prefers-reduced-motion: reduce) {
|
|
137
|
-
.awsui_container-fade-
|
|
137
|
+
.awsui_container-fade-in_1cbgc_yqmfc_125:not(#\9) {
|
|
138
138
|
animation: none;
|
|
139
139
|
transition: none;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
.awsui-motion-disabled .awsui_container-fade-
|
|
142
|
+
.awsui-motion-disabled .awsui_container-fade-in_1cbgc_yqmfc_125:not(#\9), .awsui-mode-entering .awsui_container-fade-in_1cbgc_yqmfc_125:not(#\9) {
|
|
143
143
|
animation: none;
|
|
144
144
|
transition: none;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.
|
|
147
|
+
.awsui_root_1cbgc_yqmfc_147:not(#\9) {
|
|
148
148
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
149
149
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
150
150
|
color: var(--color-text-body-default-2sxhhn, #000716);
|
|
@@ -153,59 +153,61 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
153
153
|
-webkit-font-smoothing: auto;
|
|
154
154
|
-moz-osx-font-smoothing: auto;
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-error_1cbgc_yqmfc_156:not(#\9) {
|
|
157
157
|
color: var(--color-text-status-error-wdvepn, #d91515);
|
|
158
158
|
}
|
|
159
|
-
.
|
|
159
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-warning_1cbgc_yqmfc_159:not(#\9) {
|
|
160
160
|
color: var(--color-text-status-warning-yik8vi, #8d6605);
|
|
161
161
|
}
|
|
162
|
-
.
|
|
162
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-success_1cbgc_yqmfc_162:not(#\9) {
|
|
163
163
|
color: var(--color-text-status-success-bpiyjm, #037f0c);
|
|
164
164
|
}
|
|
165
|
-
.
|
|
165
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-info_1cbgc_yqmfc_165:not(#\9) {
|
|
166
166
|
color: var(--color-text-status-info-ahz8zp, #0972d3);
|
|
167
167
|
}
|
|
168
|
-
.
|
|
168
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-stopped_1cbgc_yqmfc_168:not(#\9) {
|
|
169
169
|
color: var(--color-text-status-inactive-m7co45, #5f6b7a);
|
|
170
170
|
}
|
|
171
|
-
.
|
|
171
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-pending_1cbgc_yqmfc_171:not(#\9) {
|
|
172
172
|
color: var(--color-text-status-inactive-m7co45, #5f6b7a);
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-in-progress_1cbgc_yqmfc_174:not(#\9) {
|
|
175
175
|
color: var(--color-text-status-inactive-m7co45, #5f6b7a);
|
|
176
176
|
}
|
|
177
|
-
.
|
|
177
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_status-loading_1cbgc_yqmfc_177:not(#\9) {
|
|
178
178
|
color: var(--color-text-status-inactive-m7co45, #5f6b7a);
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_color-override-red_1cbgc_yqmfc_180:not(#\9) {
|
|
181
181
|
color: var(--color-text-status-error-wdvepn, #d91515);
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_color-override-grey_1cbgc_yqmfc_183:not(#\9) {
|
|
184
184
|
color: var(--color-text-status-inactive-m7co45, #5f6b7a);
|
|
185
185
|
}
|
|
186
|
-
.
|
|
186
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_color-override-blue_1cbgc_yqmfc_186:not(#\9) {
|
|
187
187
|
color: var(--color-text-status-info-ahz8zp, #0972d3);
|
|
188
188
|
}
|
|
189
|
-
.
|
|
189
|
+
.awsui_root_1cbgc_yqmfc_147.awsui_color-override-green_1cbgc_yqmfc_189:not(#\9) {
|
|
190
190
|
color: var(--color-text-status-success-bpiyjm, #037f0c);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
.awsui_container_1cbgc_wuerj_125:not(#\9) {
|
|
198
|
-
word-break: break-all;
|
|
199
|
-
word-wrap: break-word;
|
|
200
|
-
}
|
|
201
|
-
.awsui_container_1cbgc_wuerj_125.awsui_display-inline_1cbgc_wuerj_201:not(#\9) {
|
|
193
|
+
.awsui_container_1cbgc_yqmfc_125.awsui_display-inline_1cbgc_yqmfc_193:not(#\9) {
|
|
194
|
+
min-width: 0;
|
|
195
|
+
word-break: break-word;
|
|
202
196
|
display: inline;
|
|
203
197
|
}
|
|
204
|
-
.
|
|
198
|
+
.awsui_container_1cbgc_yqmfc_125.awsui_display-inline_1cbgc_yqmfc_193 > .awsui_icon_1cbgc_yqmfc_97:not(#\9) {
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
}
|
|
201
|
+
.awsui_container_1cbgc_yqmfc_125.awsui_display-inline-block_1cbgc_yqmfc_201:not(#\9) {
|
|
205
202
|
display: inline-block;
|
|
203
|
+
word-wrap: break-word;
|
|
204
|
+
word-break: break-all;
|
|
205
|
+
}
|
|
206
|
+
.awsui_container_1cbgc_yqmfc_125.awsui_display-inline-block_1cbgc_yqmfc_201 > .awsui_icon_1cbgc_yqmfc_97:not(#\9) {
|
|
207
|
+
padding-right: var(--space-xxs-p8yyaw, 4px);
|
|
206
208
|
}
|
|
207
209
|
|
|
208
|
-
.awsui_overflow-
|
|
210
|
+
.awsui_overflow-ellipsis_1cbgc_yqmfc_210:not(#\9) {
|
|
209
211
|
max-width: 100%;
|
|
210
212
|
overflow: hidden;
|
|
211
213
|
text-overflow: ellipsis;
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"icon-shake": "awsui_icon-
|
|
6
|
-
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-
|
|
7
|
-
"container-fade-in": "awsui_container-fade-
|
|
8
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
9
|
-
"root": "
|
|
10
|
-
"status-error": "awsui_status-
|
|
11
|
-
"status-warning": "awsui_status-
|
|
12
|
-
"status-success": "awsui_status-
|
|
13
|
-
"status-info": "awsui_status-
|
|
14
|
-
"status-stopped": "awsui_status-
|
|
15
|
-
"status-pending": "awsui_status-
|
|
16
|
-
"status-in-progress": "awsui_status-in-
|
|
17
|
-
"status-loading": "awsui_status-
|
|
18
|
-
"color-override-red": "awsui_color-override-
|
|
19
|
-
"color-override-grey": "awsui_color-override-
|
|
20
|
-
"color-override-blue": "awsui_color-override-
|
|
21
|
-
"color-override-green": "awsui_color-override-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"display-inline-block": "awsui_display-inline-
|
|
26
|
-
"overflow-ellipsis": "awsui_overflow-
|
|
5
|
+
"icon-shake": "awsui_icon-shake_1cbgc_yqmfc_97",
|
|
6
|
+
"awsui-motion-shake-horizontally": "awsui_awsui-motion-shake-horizontally_1cbgc_yqmfc_1",
|
|
7
|
+
"container-fade-in": "awsui_container-fade-in_1cbgc_yqmfc_125",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1cbgc_yqmfc_1",
|
|
9
|
+
"root": "awsui_root_1cbgc_yqmfc_147",
|
|
10
|
+
"status-error": "awsui_status-error_1cbgc_yqmfc_156",
|
|
11
|
+
"status-warning": "awsui_status-warning_1cbgc_yqmfc_159",
|
|
12
|
+
"status-success": "awsui_status-success_1cbgc_yqmfc_162",
|
|
13
|
+
"status-info": "awsui_status-info_1cbgc_yqmfc_165",
|
|
14
|
+
"status-stopped": "awsui_status-stopped_1cbgc_yqmfc_168",
|
|
15
|
+
"status-pending": "awsui_status-pending_1cbgc_yqmfc_171",
|
|
16
|
+
"status-in-progress": "awsui_status-in-progress_1cbgc_yqmfc_174",
|
|
17
|
+
"status-loading": "awsui_status-loading_1cbgc_yqmfc_177",
|
|
18
|
+
"color-override-red": "awsui_color-override-red_1cbgc_yqmfc_180",
|
|
19
|
+
"color-override-grey": "awsui_color-override-grey_1cbgc_yqmfc_183",
|
|
20
|
+
"color-override-blue": "awsui_color-override-blue_1cbgc_yqmfc_186",
|
|
21
|
+
"color-override-green": "awsui_color-override-green_1cbgc_yqmfc_189",
|
|
22
|
+
"container": "awsui_container_1cbgc_yqmfc_125",
|
|
23
|
+
"display-inline": "awsui_display-inline_1cbgc_yqmfc_193",
|
|
24
|
+
"icon": "awsui_icon_1cbgc_yqmfc_97",
|
|
25
|
+
"display-inline-block": "awsui_display-inline-block_1cbgc_yqmfc_201",
|
|
26
|
+
"overflow-ellipsis": "awsui_overflow-ellipsis_1cbgc_yqmfc_210"
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -16,8 +16,6 @@ interface TableHeaderCellProps<ItemType> {
|
|
|
16
16
|
onResizeFinish: () => void;
|
|
17
17
|
colIndex: number;
|
|
18
18
|
updateColumn: (columnId: PropertyKey, newWidth: number) => void;
|
|
19
|
-
onFocus?: () => void;
|
|
20
|
-
onBlur?: () => void;
|
|
21
19
|
resizableColumns?: boolean;
|
|
22
20
|
isEditable?: boolean;
|
|
23
21
|
columnId: PropertyKey;
|
|
@@ -25,8 +23,7 @@ interface TableHeaderCellProps<ItemType> {
|
|
|
25
23
|
cellRef: React.RefCallback<HTMLElement>;
|
|
26
24
|
focusedComponent?: null | string;
|
|
27
25
|
tableRole: TableRole;
|
|
28
|
-
getDescriptionRoot?: () => null | HTMLElement;
|
|
29
26
|
}
|
|
30
|
-
export declare function TableHeaderCell<ItemType>({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole,
|
|
27
|
+
export declare function TableHeaderCell<ItemType>({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, }: TableHeaderCellProps<ItemType>): JSX.Element;
|
|
31
28
|
export {};
|
|
32
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,UAAU,oBAAoB,CAAC,QAAQ;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,O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W,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACjC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,EACxC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE,oBAAoB,CAAC,QAAQ,CAAC,eA4FhC"}
|
|
@@ -10,7 +10,7 @@ import { Resizer } from '../resizer';
|
|
|
10
10
|
import { useUniqueId } from '../../internal/hooks/use-unique-id';
|
|
11
11
|
import { useInternalI18n } from '../../i18n/context';
|
|
12
12
|
import { TableThElement } from './th-element';
|
|
13
|
-
export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole,
|
|
13
|
+
export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, columnId, stickyState, cellRef, tableRole, }) {
|
|
14
14
|
var _a;
|
|
15
15
|
const i18n = useInternalI18n('table');
|
|
16
16
|
const sortable = !!column.sortingComparator || !!column.sortingField;
|
|
@@ -54,6 +54,6 @@ export function TableHeaderCell({ className, style, tabIndex, column, activeSort
|
|
|
54
54
|
React.createElement(InternalIcon, { name: "edit" }))) : null),
|
|
55
55
|
sortingStatus && (React.createElement("span", { className: styles['sorting-icon'] },
|
|
56
56
|
React.createElement(InternalIcon, { name: getSortingIconName(sortingStatus) })))),
|
|
57
|
-
resizableColumns && (React.createElement(Resizer, { tabIndex: tabIndex, focusId: `resize-control-${String(columnId)}`, showFocusRing: focusedComponent === `resize-control-${String(columnId)}`,
|
|
57
|
+
resizableColumns && (React.createElement(Resizer, { tabIndex: tabIndex, focusId: `resize-control-${String(columnId)}`, showFocusRing: focusedComponent === `resize-control-${String(columnId)}`, onWidthUpdate: newWidth => updateColumn(columnId, newWidth), onWidthUpdateCommit: onResizeFinish, ariaLabelledby: headerId, minWidth: typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth }))));
|
|
58
58
|
}
|
|
59
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"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AK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAC3F,CACH,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from './styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { useInternalI18n } from '../../i18n/context';\nimport { StickyColumnsModel } from '../sticky-columns';\nimport { TableRole } from '../table-role';\nimport { TableThElement } from './th-element';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (columnId: PropertyKey, newWidth: number) => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef: React.RefCallback<HTMLElement>;\n focusedComponent?: null | string;\n tableRole: TableRole;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n}: TableHeaderCellProps<ItemType>) {\n const i18n = useInternalI18n('table');\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <TableThElement\n className={className}\n style={style}\n cellRef={cellRef}\n sortingStatus={sortingStatus}\n sortingDisabled={sortingDisabled}\n hidden={hidden}\n colIndex={colIndex}\n resizableColumns={resizableColumns}\n columnId={columnId}\n stickyState={stickyState}\n tableRole={tableRole}\n >\n <div\n data-focus-id={`sorting-control-${String(columnId)}`}\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent === `sorting-control-${String(columnId)}`,\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n onClick: handleClick,\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span\n className={styles['edit-icon']}\n role=\"img\"\n aria-label={i18n('columnDefinitions.editConfig.editIconAriaLabel', column.editConfig?.editIconAriaLabel)}\n >\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <Resizer\n tabIndex={tabIndex}\n focusId={`resize-control-${String(columnId)}`}\n showFocusRing={focusedComponent === `resize-control-${String(columnId)}`}\n onWidthUpdate={newWidth => updateColumn(columnId, newWidth)}\n onWidthUpdateCommit={onResizeFinish}\n ariaLabelledby={headerId}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n />\n )}\n </TableThElement>\n );\n}\n"]}
|
package/table/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/D,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/D,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,QAAA,MAAM,KAAK,qBA2Ba,CAAC;AAGzB,eAAe,KAAK,CAAC"}
|
package/table/index.js
CHANGED
|
@@ -3,17 +3,21 @@ import { __rest } from "tslib";
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
6
|
-
import InternalTable from './internal';
|
|
6
|
+
import InternalTable, { InternalTableAsSubstep } from './internal';
|
|
7
7
|
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
8
8
|
import { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';
|
|
9
9
|
const Table = React.forwardRef((_a, ref) => {
|
|
10
10
|
var { items = [], selectedItems = [], variant = 'container', contentDensity = 'comfortable' } = _a, props = __rest(_a, ["items", "selectedItems", "variant", "contentDensity"]);
|
|
11
11
|
const baseComponentProps = useBaseComponent('Table');
|
|
12
|
-
const
|
|
12
|
+
const tableProps = Object.assign(Object.assign(Object.assign({ items,
|
|
13
|
+
selectedItems,
|
|
14
|
+
variant,
|
|
15
|
+
contentDensity }, props), baseComponentProps), { ref });
|
|
13
16
|
if (variant === 'borderless' || variant === 'embedded') {
|
|
14
|
-
return
|
|
17
|
+
return React.createElement(InternalTable, Object.assign({}, tableProps));
|
|
15
18
|
}
|
|
16
|
-
return React.createElement(AnalyticsFunnelSubStep, null,
|
|
19
|
+
return (React.createElement(AnalyticsFunnelSubStep, null,
|
|
20
|
+
React.createElement(InternalTableAsSubstep, Object.assign({}, tableProps))));
|
|
17
21
|
});
|
|
18
22
|
applyDisplayName(Table, 'Table');
|
|
19
23
|
export default Table;
|
package/table/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,aAAa,EAAE,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAG3F,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CACE,EAAkH,EAClH,GAA8B,EAC9B,EAAE;QAFF,EAAE,KAAK,GAAG,EAAE,EAAE,aAAa,GAAG,EAAE,EAAE,OAAO,GAAG,WAAW,EAAE,cAAc,GAAG,aAAa,OAA2B,EAAtB,KAAK,cAAjG,uDAAmG,CAAF;IAGjG,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAErD,MAAM,UAAU,+CACd,KAAK;QACL,aAAa;QACb,OAAO;QACP,cAAc,IACX,KAAK,GACL,kBAAkB,KACrB,GAAG,GACJ,CAAC;IAEF,IAAI,OAAO,KAAK,YAAY,IAAI,OAAO,KAAK,UAAU,EAAE;QACtD,OAAO,oBAAC,aAAa,oBAAK,UAAU,EAAI,CAAC;KAC1C;IAED,OAAO,CACL,oBAAC,sBAAsB;QACrB,oBAAC,sBAAsB,oBAAK,UAAU,EAAI,CACnB,CAC1B,CAAC;AACJ,CAAC,CACqB,CAAC;AAEzB,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACjC,eAAe,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { TableForwardRefType, TableProps } from './interfaces';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalTable, { InternalTableAsSubstep } from './internal';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';\n\nexport { TableProps };\nconst Table = React.forwardRef(\n <T,>(\n { items = [], selectedItems = [], variant = 'container', contentDensity = 'comfortable', ...props }: TableProps<T>,\n ref: React.Ref<TableProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('Table');\n\n const tableProps: Parameters<typeof InternalTable<T>>[0] = {\n items,\n selectedItems,\n variant,\n contentDensity,\n ...props,\n ...baseComponentProps,\n ref,\n };\n\n if (variant === 'borderless' || variant === 'embedded') {\n return <InternalTable {...tableProps} />;\n }\n\n return (\n <AnalyticsFunnelSubStep>\n <InternalTableAsSubstep {...tableProps} />\n </AnalyticsFunnelSubStep>\n );\n }\n) as TableForwardRefType;\n\napplyDisplayName(Table, 'Table');\nexport default Table;\n"]}
|
package/table/internal.d.ts
CHANGED
package/table/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAgD/D,eAAO,MAAM,sBAAsB,qBAYX,CAAC;AAEzB,QAAA,MAAM,aAAa,qBA0bK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
|
package/table/internal.js
CHANGED
|
@@ -37,12 +37,17 @@ import { getTableRoleProps, getTableRowRoleProps, getTableWrapperRoleProps } fro
|
|
|
37
37
|
import { useCellEditing } from './use-cell-editing';
|
|
38
38
|
import { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';
|
|
39
39
|
import { CollectionLabelContext } from '../internal/context/collection-label-context';
|
|
40
|
-
import
|
|
40
|
+
import { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';
|
|
41
41
|
const SELECTION_COLUMN_WIDTH = 54;
|
|
42
42
|
const selectionColumnId = Symbol('selection-column-id');
|
|
43
|
+
export const InternalTableAsSubstep = React.forwardRef((props, ref) => {
|
|
44
|
+
const { subStepRef, funnelSubStepProps } = useFunnelSubStep();
|
|
45
|
+
const tableProps = Object.assign(Object.assign({}, props), { __subStepRef: subStepRef, __funnelSubStepProps: funnelSubStepProps });
|
|
46
|
+
return React.createElement(InternalTable, Object.assign({}, tableProps, { ref: ref }));
|
|
47
|
+
});
|
|
43
48
|
const InternalTable = React.forwardRef((_a, ref) => {
|
|
44
49
|
var _b, _c, _d, _e, _f;
|
|
45
|
-
var { header, footer, empty, filter, pagination, preferences, items, columnDefinitions, trackBy, loading, loadingText, selectionType, selectedItems, isItemDisabled, ariaLabels, onSelectionChange, onSortingChange, sortingColumn, sortingDescending, sortingDisabled, visibleColumns, stickyHeader, stickyHeaderVerticalOffset, onRowClick, onRowContextMenu, wrapLines, stripedRows, contentDensity, submitEdit, onEditCancel, resizableColumns, onColumnWidthsChange, variant, __internalRootRef, totalItemsCount, firstIndex, renderAriaLive, stickyColumns, columnDisplay } = _a, rest = __rest(_a, ["header", "footer", "empty", "filter", "pagination", "preferences", "items", "columnDefinitions", "trackBy", "loading", "loadingText", "selectionType", "selectedItems", "isItemDisabled", "ariaLabels", "onSelectionChange", "onSortingChange", "sortingColumn", "sortingDescending", "sortingDisabled", "visibleColumns", "stickyHeader", "stickyHeaderVerticalOffset", "onRowClick", "onRowContextMenu", "wrapLines", "stripedRows", "contentDensity", "submitEdit", "onEditCancel", "resizableColumns", "onColumnWidthsChange", "variant", "__internalRootRef", "totalItemsCount", "firstIndex", "renderAriaLive", "stickyColumns", "columnDisplay"]);
|
|
50
|
+
var { header, footer, empty, filter, pagination, preferences, items, columnDefinitions, trackBy, loading, loadingText, selectionType, selectedItems, isItemDisabled, ariaLabels, onSelectionChange, onSortingChange, sortingColumn, sortingDescending, sortingDisabled, visibleColumns, stickyHeader, stickyHeaderVerticalOffset, onRowClick, onRowContextMenu, wrapLines, stripedRows, contentDensity, submitEdit, onEditCancel, resizableColumns, onColumnWidthsChange, variant, __internalRootRef, totalItemsCount, firstIndex, renderAriaLive, stickyColumns, columnDisplay, __funnelSubStepProps, __subStepRef } = _a, rest = __rest(_a, ["header", "footer", "empty", "filter", "pagination", "preferences", "items", "columnDefinitions", "trackBy", "loading", "loadingText", "selectionType", "selectedItems", "isItemDisabled", "ariaLabels", "onSelectionChange", "onSortingChange", "sortingColumn", "sortingDescending", "sortingDisabled", "visibleColumns", "stickyHeader", "stickyHeaderVerticalOffset", "onRowClick", "onRowContextMenu", "wrapLines", "stripedRows", "contentDensity", "submitEdit", "onEditCancel", "resizableColumns", "onColumnWidthsChange", "variant", "__internalRootRef", "totalItemsCount", "firstIndex", "renderAriaLive", "stickyColumns", "columnDisplay", "__funnelSubStepProps", "__subStepRef"]);
|
|
46
51
|
const baseProps = getBaseProps(rest);
|
|
47
52
|
stickyHeader = stickyHeader && supportsStickyPosition();
|
|
48
53
|
const isMobile = useMobile();
|
|
@@ -50,9 +55,6 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
50
55
|
const wrapperRefObject = useRef(null);
|
|
51
56
|
const [tableWidth, tableMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);
|
|
52
57
|
const tableRefObject = useRef(null);
|
|
53
|
-
// Used to render table's ARIA description nodes into.
|
|
54
|
-
const descriptionRef = useRef(null);
|
|
55
|
-
const getDescriptionRoot = useCallback(() => descriptionRef.current, []);
|
|
56
58
|
const secondaryWrapperRef = React.useRef(null);
|
|
57
59
|
const theadRef = useRef(null);
|
|
58
60
|
const stickyHeaderRef = React.useRef(null);
|
|
@@ -150,7 +152,6 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
150
152
|
stickyState,
|
|
151
153
|
selectionColumnId,
|
|
152
154
|
tableRole,
|
|
153
|
-
getDescriptionRoot,
|
|
154
155
|
};
|
|
155
156
|
const wrapperRef = useMergeRefs(wrapperMeasureRef, wrapperRefObject, stickyState.refs.wrapper);
|
|
156
157
|
const tableRef = useMergeRefs(tableMeasureRef, tableRefObject, stickyState.refs.table);
|
|
@@ -169,7 +170,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
169
170
|
const totalColumnsCount = selectionType ? visibleColumnDefinitions.length + 1 : visibleColumnDefinitions.length;
|
|
170
171
|
return (React.createElement(LinkDefaultVariantContext.Provider, { value: { defaultVariant: 'primary' } },
|
|
171
172
|
React.createElement(ColumnWidthsProvider, { visibleColumns: visibleColumnWidthsWithSelection, resizableColumns: resizableColumns },
|
|
172
|
-
React.createElement(InternalContainer, Object.assign({}, baseProps, { __internalRootRef: __internalRootRef, className: clsx(baseProps.className, styles.root), header: React.createElement(React.Fragment, null,
|
|
173
|
+
React.createElement(InternalContainer, Object.assign({}, baseProps, { __internalRootRef: __internalRootRef, className: clsx(baseProps.className, styles.root), __funnelSubStepProps: __funnelSubStepProps, __subStepRef: __subStepRef, header: React.createElement(React.Fragment, null,
|
|
173
174
|
hasHeader && (React.createElement("div", { ref: overlapElement, className: clsx(hasDynamicHeight && [styles['dark-header'], 'awsui-context-content-header']) },
|
|
174
175
|
React.createElement("div", { ref: toolsHeaderWrapper, className: clsx(styles['header-controls'], styles[`variant-${computedVariant}`]) },
|
|
175
176
|
React.createElement(CollectionLabelContext.Provider, { value: { assignId: setHeaderRef } },
|
|
@@ -230,9 +231,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
230
231
|
})));
|
|
231
232
|
})))),
|
|
232
233
|
resizableColumns && React.createElement(ResizeTracker, null)),
|
|
233
|
-
React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll, hasStickyColumns: hasStickyColumns })
|
|
234
|
-
React.createElement(ScreenreaderOnly, null,
|
|
235
|
-
React.createElement("span", { ref: descriptionRef }))))));
|
|
234
|
+
React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll, hasStickyColumns: hasStickyColumns })))));
|
|
236
235
|
});
|
|
237
236
|
export default InternalTable;
|
|
238
237
|
//# sourceMappingURL=internal.js.map
|