@cloudscape-design/components 3.0.149 → 3.0.151

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.
Files changed (61) hide show
  1. package/cards/styles.css.js +37 -37
  2. package/cards/styles.scoped.css +49 -49
  3. package/cards/styles.selectors.js +37 -37
  4. package/container/interfaces.d.ts +8 -0
  5. package/container/interfaces.d.ts.map +1 -1
  6. package/container/interfaces.js.map +1 -1
  7. package/container/internal.d.ts +1 -1
  8. package/container/internal.d.ts.map +1 -1
  9. package/container/internal.js +2 -2
  10. package/container/internal.js.map +1 -1
  11. package/container/styles.css.js +17 -16
  12. package/container/styles.scoped.css +37 -36
  13. package/container/styles.selectors.js +17 -16
  14. package/expandable-section/styles.css.js +21 -21
  15. package/expandable-section/styles.scoped.css +43 -43
  16. package/expandable-section/styles.selectors.js +21 -21
  17. package/internal/base-component/styles.scoped.css +5 -4
  18. package/internal/environment.js +1 -1
  19. package/internal/generated/styles/tokens.js +1 -1
  20. package/internal/generated/theming/index.cjs +13 -6
  21. package/internal/generated/theming/index.js +13 -6
  22. package/internal/manifest.json +1 -1
  23. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  24. package/mixed-line-bar-chart/chart-container.js +13 -8
  25. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  26. package/modal/styles.css.js +22 -22
  27. package/modal/styles.scoped.css +41 -41
  28. package/modal/styles.selectors.js +22 -22
  29. package/package.json +1 -1
  30. package/pie-chart/pie-chart.d.ts.map +1 -1
  31. package/pie-chart/pie-chart.js +11 -4
  32. package/pie-chart/pie-chart.js.map +1 -1
  33. package/table/body-cell/index.d.ts +3 -1
  34. package/table/body-cell/index.d.ts.map +1 -1
  35. package/table/body-cell/index.js +4 -2
  36. package/table/body-cell/index.js.map +1 -1
  37. package/table/body-cell/styles.css.js +12 -8
  38. package/table/body-cell/styles.scoped.css +56 -20
  39. package/table/body-cell/styles.selectors.js +12 -8
  40. package/table/header-cell/styles.css.js +18 -16
  41. package/table/header-cell/styles.scoped.css +54 -27
  42. package/table/header-cell/styles.selectors.js +18 -16
  43. package/table/internal.d.ts.map +1 -1
  44. package/table/internal.js +11 -9
  45. package/table/internal.js.map +1 -1
  46. package/table/selection-control/styles.css.js +3 -3
  47. package/table/selection-control/styles.scoped.css +3 -5
  48. package/table/selection-control/styles.selectors.js +3 -3
  49. package/table/styles.css.js +33 -34
  50. package/table/styles.scoped.css +63 -58
  51. package/table/styles.selectors.js +33 -34
  52. package/table/thead.d.ts +1 -0
  53. package/table/thead.d.ts.map +1 -1
  54. package/table/thead.js +5 -3
  55. package/table/thead.js.map +1 -1
  56. package/table/use-sticky-header.d.ts.map +1 -1
  57. package/table/use-sticky-header.js +0 -13
  58. package/table/use-sticky-header.js.map +1 -1
  59. package/tabs/styles.css.js +21 -21
  60. package/tabs/styles.scoped.css +39 -39
  61. package/tabs/styles.selectors.js +21 -21
@@ -6,7 +6,7 @@
6
6
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
7
7
  SPDX-License-Identifier: Apache-2.0
8
8
  */
9
- .awsui_body-cell_c6tup_5nryh_9:not(#\9) {
9
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9) {
10
10
  box-sizing: border-box;
11
11
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
12
12
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
@@ -15,72 +15,108 @@
15
15
  word-wrap: break-word;
16
16
  border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
17
17
  }
18
- .awsui_body-cell_c6tup_5nryh_9:not(#\9):not(.awsui_body-cell-wrap_c6tup_5nryh_18) {
18
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9):not(.awsui_body-cell-wrap_c6tup_9o7yk_18) {
19
19
  white-space: nowrap;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
22
22
  }
23
- .awsui_body-cell_c6tup_5nryh_9:not(#\9):first-child {
23
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9):first-child {
24
24
  border-left: var(--border-item-width-qbbbsa, 2px) solid transparent;
25
- padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
26
25
  }
27
- .awsui_body-cell_c6tup_5nryh_9:not(#\9):last-child {
26
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9):last-child {
28
27
  border-right: var(--border-item-width-qbbbsa, 2px) solid transparent;
29
28
  padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
30
29
  }
31
- .awsui_body-cell-first-row_c6tup_5nryh_31:not(#\9) {
30
+ .awsui_body-cell-first-row_c6tup_9o7yk_30:not(#\9) {
32
31
  border-top: var(--border-item-width-qbbbsa, 2px) solid transparent;
33
32
  }
34
- .awsui_body-cell-last-row_c6tup_5nryh_34:not(#\9) {
33
+ .awsui_body-cell-last-row_c6tup_9o7yk_33:not(#\9):not(.awsui_body-cell-selected_c6tup_9o7yk_33):not(.awsui_has-footer_c6tup_9o7yk_33) {
35
34
  border-bottom: var(--border-item-width-qbbbsa, 2px) solid transparent;
36
35
  }
37
- .awsui_body-cell-shaded_c6tup_5nryh_37:not(#\9) {
36
+ .awsui_body-cell-last-row_c6tup_9o7yk_33:not(#\9):not(.awsui_body-cell-selected_c6tup_9o7yk_33).awsui_has-footer_c6tup_9o7yk_33 {
37
+ /*
38
+ Add a bottom border to the body cells of the last row as a separator between the
39
+ table and the footer
40
+ */
41
+ border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
42
+ }
43
+ .awsui_body-cell-shaded_c6tup_9o7yk_43:not(#\9) {
38
44
  background: var(--color-background-cell-shaded-26ubfj, #f8f8f8);
39
45
  }
40
- .awsui_body-cell-selected_c6tup_5nryh_40:not(#\9) {
46
+ .awsui_body-cell-selected_c6tup_9o7yk_33:not(#\9) {
41
47
  background-color: var(--color-background-item-selected-ebt4bi, #f2f8fd);
42
48
  border-top: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
43
49
  border-bottom: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
44
50
  padding-bottom: var(--space-scaled-xs-6859qs, 8px);
45
51
  }
46
- .awsui_body-cell-selected_c6tup_5nryh_40:not(#\9):first-child {
52
+ .awsui_body-cell-selected_c6tup_9o7yk_33:not(#\9):first-child {
47
53
  border-left: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
48
54
  border-radius: var(--border-radius-item-u2ibpi, 8px) 0 0 var(--border-radius-item-u2ibpi, 8px);
49
55
  }
50
- .awsui_body-cell-selected_c6tup_5nryh_40:not(#\9):last-child {
56
+ .awsui_body-cell-selected_c6tup_9o7yk_33:not(#\9):last-child {
51
57
  border-right: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
52
58
  border-radius: 0 var(--border-radius-item-u2ibpi, 8px) var(--border-radius-item-u2ibpi, 8px) 0;
53
59
  }
54
- .awsui_body-cell-selected_c6tup_5nryh_40:not(#\9):not(:first-child) {
60
+ .awsui_body-cell-selected_c6tup_9o7yk_33:not(#\9):not(:first-child) {
55
61
  padding-top: calc(
56
62
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
57
63
  );
58
64
  }
59
- .awsui_body-cell_c6tup_5nryh_9:not(#\9):not(.awsui_body-cell-selected_c6tup_5nryh_40).awsui_body-cell-next-selected_c6tup_5nryh_59 {
65
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9):not(.awsui_body-cell-selected_c6tup_9o7yk_33).awsui_body-cell-next-selected_c6tup_9o7yk_65 {
60
66
  border-bottom: 0;
61
67
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
62
68
  }
63
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-prev-selected_c6tup_5nryh_63:not(#\9) {
69
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-prev-selected_c6tup_9o7yk_69:not(#\9) {
64
70
  padding-top: calc(
65
71
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
66
72
  );
67
73
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-jgzhnb, #0972d3);
68
74
  }
69
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-next-selected_c6tup_5nryh_59:not(#\9) {
75
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-next-selected_c6tup_9o7yk_65:not(#\9) {
70
76
  border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
71
77
  }
72
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-next-selected_c6tup_5nryh_59:not(#\9):first-child {
78
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-next-selected_c6tup_9o7yk_65:not(#\9):first-child {
73
79
  border-bottom-left-radius: 0;
74
80
  }
75
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-next-selected_c6tup_5nryh_59:not(#\9):last-child {
81
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-next-selected_c6tup_9o7yk_65:not(#\9):last-child {
76
82
  border-bottom-right-radius: 0;
77
83
  }
78
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-prev-selected_c6tup_5nryh_63:not(#\9):first-child {
84
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-prev-selected_c6tup_9o7yk_69:not(#\9):first-child {
79
85
  border-top-left-radius: 0;
80
86
  }
81
- .awsui_body-cell-selected_c6tup_5nryh_40.awsui_body-cell-prev-selected_c6tup_5nryh_63:not(#\9):last-child {
87
+ .awsui_body-cell-selected_c6tup_9o7yk_33.awsui_body-cell-prev-selected_c6tup_9o7yk_69:not(#\9):last-child {
82
88
  border-top-right-radius: 0;
83
89
  }
84
- .awsui_body-cell-selected_c6tup_5nryh_40:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_5nryh_63) {
90
+ .awsui_body-cell-selected_c6tup_9o7yk_33:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_9o7yk_69) {
85
91
  padding-top: var(--space-scaled-xs-6859qs, 8px);
92
+ }
93
+
94
+ /*
95
+ In Visual Refresh the first cell of each row should align with the
96
+ left edge of the table as closely as possible.
97
+ */
98
+ .awsui_body-cell_c6tup_9o7yk_9:not(#\9):not(.awsui_is-visual-refresh_c6tup_9o7yk_98):first-child {
99
+ padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
100
+ }
101
+
102
+ .awsui_body-cell_c6tup_9o7yk_9.awsui_is-visual-refresh_c6tup_9o7yk_98:not(#\9) {
103
+ /*
104
+ Remove the placeholder border if the row is not selectable.
105
+ Rows that are not selectable will reserve the horizontal space
106
+ that the placeholder border would consume.
107
+ */
108
+ /*
109
+ Striped rows requires additional left padding because the
110
+ shaded background makes the child content appear too close
111
+ to the table edge.
112
+ */
113
+ }
114
+ .awsui_body-cell_c6tup_9o7yk_9.awsui_is-visual-refresh_c6tup_9o7yk_98:not(#\9):first-child:not(.awsui_has-selection_c6tup_9o7yk_114) {
115
+ border-left: none;
116
+ }
117
+ .awsui_body-cell_c6tup_9o7yk_9.awsui_is-visual-refresh_c6tup_9o7yk_98:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_9o7yk_117) {
118
+ padding-left: var(--space-xxxs-k2w98v, 2px);
119
+ }
120
+ .awsui_body-cell_c6tup_9o7yk_9.awsui_is-visual-refresh_c6tup_9o7yk_98:not(#\9):first-child.awsui_has-striped-rows_c6tup_9o7yk_117 {
121
+ padding-left: var(--space-xxs-ynfts5, 4px);
86
122
  }
@@ -2,13 +2,17 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "body-cell": "awsui_body-cell_c6tup_5nryh_9",
6
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_5nryh_18",
7
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_5nryh_31",
8
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_5nryh_34",
9
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_5nryh_37",
10
- "body-cell-selected": "awsui_body-cell-selected_c6tup_5nryh_40",
11
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_5nryh_59",
12
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_5nryh_63"
5
+ "body-cell": "awsui_body-cell_c6tup_9o7yk_9",
6
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_9o7yk_18",
7
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_9o7yk_30",
8
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_9o7yk_33",
9
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_9o7yk_33",
10
+ "has-footer": "awsui_has-footer_c6tup_9o7yk_33",
11
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_9o7yk_43",
12
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_9o7yk_65",
13
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_9o7yk_69",
14
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_9o7yk_98",
15
+ "has-selection": "awsui_has-selection_c6tup_9o7yk_114",
16
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_9o7yk_117"
13
17
  };
14
18
 
@@ -1,21 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "header-cell": "awsui_header-cell_1spae_ov6lq_93",
5
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_ov6lq_103",
6
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_ov6lq_106",
7
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_ov6lq_106",
8
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_ov6lq_109",
9
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_ov6lq_115",
10
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_ov6lq_127",
11
- "sorting-icon": "awsui_sorting-icon_1spae_ov6lq_131",
12
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_ov6lq_138",
13
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_ov6lq_138",
14
- "header-cell-content": "awsui_header-cell-content_1spae_ov6lq_138",
15
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_ov6lq_171",
16
- "header-cell-text": "awsui_header-cell-text_1spae_ov6lq_200",
17
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_ov6lq_200",
18
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_ov6lq_206",
19
- "header-cell-descending": "awsui_header-cell-descending_1spae_ov6lq_207"
4
+ "header-cell": "awsui_header-cell_1spae_1gt6c_93",
5
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_1gt6c_103",
6
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_1gt6c_106",
7
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1gt6c_106",
8
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_1gt6c_109",
9
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_1gt6c_112",
10
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_1gt6c_124",
11
+ "sorting-icon": "awsui_sorting-icon_1spae_1gt6c_128",
12
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_1gt6c_135",
13
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_1gt6c_135",
14
+ "header-cell-content": "awsui_header-cell-content_1spae_1gt6c_135",
15
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1gt6c_168",
16
+ "header-cell-text": "awsui_header-cell-text_1spae_1gt6c_197",
17
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1gt6c_197",
18
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_1gt6c_203",
19
+ "header-cell-descending": "awsui_header-cell-descending_1spae_1gt6c_204",
20
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_1gt6c_214",
21
+ "has-striped-rows": "awsui_has-striped-rows_1spae_1gt6c_225"
20
22
  };
21
23
 
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_header-cell_1spae_ov6lq_93:not(#\9) {
93
+ .awsui_header-cell_1spae_1gt6c_93:not(#\9) {
94
94
  position: relative;
95
95
  text-align: left;
96
96
  box-sizing: border-box;
@@ -100,22 +100,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
100
100
  font-weight: var(--font-heading-s-weight-k8ys41, 800);
101
101
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-scaled-xs-6859qs, 8px);
102
102
  }
103
- .awsui_header-cell-sticky_1spae_ov6lq_103:not(#\9) {
103
+ .awsui_header-cell-sticky_1spae_1gt6c_103:not(#\9) {
104
104
  border-bottom: var(--border-table-sticky-width-h1tlxy, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
105
105
  }
106
- .awsui_header-cell-stuck_1spae_ov6lq_106:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_ov6lq_106) {
106
+ .awsui_header-cell-stuck_1spae_1gt6c_106:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_1gt6c_106) {
107
107
  border-bottom-color: transparent;
108
108
  }
109
- .awsui_header-cell-variant-full-page_1spae_ov6lq_106.awsui_header-cell-hidden_1spae_ov6lq_109:not(#\9) {
109
+ .awsui_header-cell-variant-full-page_1spae_1gt6c_106.awsui_header-cell-hidden_1spae_1gt6c_109:not(#\9) {
110
110
  border-bottom-color: transparent;
111
111
  }
112
- .awsui_header-cell_1spae_ov6lq_93:not(#\9):first-child {
113
- padding-left: var(--space-xs-rsr2qu, 8px);
114
- }
115
- .awsui_header-cell_1spae_ov6lq_93:not(#\9):last-child, .awsui_header-cell_1spae_ov6lq_93.awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9) {
112
+ .awsui_header-cell_1spae_1gt6c_93:not(#\9):last-child, .awsui_header-cell_1spae_1gt6c_93.awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9) {
116
113
  padding-right: var(--space-xs-rsr2qu, 8px);
117
114
  }
118
- .awsui_header-cell_1spae_ov6lq_93:not(#\9):not(:last-child):before {
115
+ .awsui_header-cell_1spae_1gt6c_93:not(#\9):not(:last-child):before {
119
116
  content: "";
120
117
  position: absolute;
121
118
  right: 0;
@@ -124,40 +121,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
124
121
  border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
125
122
  box-sizing: border-box;
126
123
  }
127
- .awsui_header-cell-resizable_1spae_ov6lq_127:not(#\9):not(:last-child):before {
124
+ .awsui_header-cell-resizable_1spae_1gt6c_124:not(#\9):not(:last-child):before {
128
125
  border-left-color: var(--color-border-divider-interactive-default-rcasvw, #e9ebed);
129
126
  }
130
127
 
131
- .awsui_sorting-icon_1spae_ov6lq_131:not(#\9) {
128
+ .awsui_sorting-icon_1spae_1gt6c_128:not(#\9) {
132
129
  position: absolute;
133
130
  top: var(--space-scaled-xxs-95dhkm, 4px);
134
131
  right: var(--space-xxs-ynfts5, 4px);
135
132
  color: var(--color-text-column-sorting-icon-q5sr09, #414d5c);
136
133
  }
137
134
 
138
- .awsui_header-cell-disabled_1spae_ov6lq_138.awsui_header-cell-sorted_1spae_ov6lq_138 > .awsui_header-cell-content_1spae_ov6lq_138 > .awsui_sorting-icon_1spae_ov6lq_131:not(#\9) {
135
+ .awsui_header-cell-disabled_1spae_1gt6c_135.awsui_header-cell-sorted_1spae_1gt6c_135 > .awsui_header-cell-content_1spae_1gt6c_135 > .awsui_sorting-icon_1spae_1gt6c_128:not(#\9) {
139
136
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
140
137
  }
141
138
 
142
- .awsui_header-cell-content_1spae_ov6lq_138:not(#\9) {
139
+ .awsui_header-cell-content_1spae_1gt6c_135:not(#\9) {
143
140
  position: relative;
144
141
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-s-hv8c1d, 12px);
145
142
  }
146
- .awsui_header-cell-sortable_1spae_ov6lq_115 > .awsui_header-cell-content_1spae_ov6lq_138:not(#\9) {
143
+ .awsui_header-cell-sortable_1spae_1gt6c_112 > .awsui_header-cell-content_1spae_1gt6c_135:not(#\9) {
147
144
  padding-right: calc(var(--space-xl-a39hup, 24px) + var(--space-xxs-ynfts5, 4px));
148
145
  }
149
- .awsui_header-cell-content_1spae_ov6lq_138:not(#\9):focus {
146
+ .awsui_header-cell-content_1spae_1gt6c_135:not(#\9):focus {
150
147
  outline: none;
151
148
  text-decoration: none;
152
149
  }
153
- .awsui_header-cell-content_1spae_ov6lq_138[data-awsui-focus-visible=true]:not(#\9):focus {
150
+ .awsui_header-cell-content_1spae_1gt6c_135[data-awsui-focus-visible=true]:not(#\9):focus {
154
151
  position: relative;
155
152
  }
156
- .awsui_header-cell-content_1spae_ov6lq_138[data-awsui-focus-visible=true]:not(#\9):focus {
153
+ .awsui_header-cell-content_1spae_1gt6c_135[data-awsui-focus-visible=true]:not(#\9):focus {
157
154
  outline: 2px dotted transparent;
158
155
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
159
156
  }
160
- .awsui_header-cell-content_1spae_ov6lq_138[data-awsui-focus-visible=true]:not(#\9):focus::before {
157
+ .awsui_header-cell-content_1spae_1gt6c_135[data-awsui-focus-visible=true]:not(#\9):focus::before {
161
158
  content: " ";
162
159
  display: block;
163
160
  position: absolute;
@@ -168,14 +165,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
168
165
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
169
166
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
170
167
  }
171
- .awsui_header-cell-content_1spae_ov6lq_138.awsui_header-cell-fake-focus_1spae_ov6lq_171:not(#\9) {
168
+ .awsui_header-cell-content_1spae_1gt6c_135.awsui_header-cell-fake-focus_1spae_1gt6c_168:not(#\9) {
172
169
  position: relative;
173
170
  }
174
- .awsui_header-cell-content_1spae_ov6lq_138.awsui_header-cell-fake-focus_1spae_ov6lq_171:not(#\9) {
171
+ .awsui_header-cell-content_1spae_1gt6c_135.awsui_header-cell-fake-focus_1spae_1gt6c_168:not(#\9) {
175
172
  outline: 2px dotted transparent;
176
173
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
177
174
  }
178
- .awsui_header-cell-content_1spae_ov6lq_138.awsui_header-cell-fake-focus_1spae_ov6lq_171:not(#\9)::before {
175
+ .awsui_header-cell-content_1spae_1gt6c_135.awsui_header-cell-fake-focus_1spae_1gt6c_168:not(#\9)::before {
179
176
  content: " ";
180
177
  display: block;
181
178
  position: absolute;
@@ -187,23 +184,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
184
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
188
185
  }
189
186
 
190
- .awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9):not(.awsui_header-cell-disabled_1spae_ov6lq_138) > .awsui_header-cell-content_1spae_ov6lq_138 {
187
+ .awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9):not(.awsui_header-cell-disabled_1spae_1gt6c_135) > .awsui_header-cell-content_1spae_1gt6c_135 {
191
188
  cursor: pointer;
192
189
  }
193
- .awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9):not(.awsui_header-cell-disabled_1spae_ov6lq_138) > .awsui_header-cell-content_1spae_ov6lq_138:hover, .awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9):not(.awsui_header-cell-disabled_1spae_ov6lq_138).awsui_header-cell-sorted_1spae_ov6lq_138 > .awsui_header-cell-content_1spae_ov6lq_138 {
190
+ .awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9):not(.awsui_header-cell-disabled_1spae_1gt6c_135) > .awsui_header-cell-content_1spae_1gt6c_135:hover, .awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9):not(.awsui_header-cell-disabled_1spae_1gt6c_135).awsui_header-cell-sorted_1spae_1gt6c_135 > .awsui_header-cell-content_1spae_1gt6c_135 {
194
191
  color: var(--color-text-interactive-active-vol84d, #000716);
195
192
  }
196
- .awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9):not(.awsui_header-cell-disabled_1spae_ov6lq_138) > .awsui_header-cell-content_1spae_ov6lq_138:hover > .awsui_sorting-icon_1spae_ov6lq_131, .awsui_header-cell-sortable_1spae_ov6lq_115:not(#\9):not(.awsui_header-cell-disabled_1spae_ov6lq_138).awsui_header-cell-sorted_1spae_ov6lq_138 > .awsui_header-cell-content_1spae_ov6lq_138 > .awsui_sorting-icon_1spae_ov6lq_131 {
193
+ .awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9):not(.awsui_header-cell-disabled_1spae_1gt6c_135) > .awsui_header-cell-content_1spae_1gt6c_135:hover > .awsui_sorting-icon_1spae_1gt6c_128, .awsui_header-cell-sortable_1spae_1gt6c_112:not(#\9):not(.awsui_header-cell-disabled_1spae_1gt6c_135).awsui_header-cell-sorted_1spae_1gt6c_135 > .awsui_header-cell-content_1spae_1gt6c_135 > .awsui_sorting-icon_1spae_1gt6c_128 {
197
194
  color: var(--color-text-interactive-active-vol84d, #000716);
198
195
  }
199
196
 
200
- .awsui_header-cell-text_1spae_ov6lq_200:not(#\9):not(.awsui_header-cell-text-wrap_1spae_ov6lq_200) {
197
+ .awsui_header-cell-text_1spae_1gt6c_197:not(#\9):not(.awsui_header-cell-text-wrap_1spae_1gt6c_197) {
201
198
  white-space: nowrap;
202
199
  overflow: hidden;
203
200
  text-overflow: ellipsis;
204
201
  }
205
202
 
206
- .awsui_header-cell-ascending_1spae_ov6lq_206:not(#\9),
207
- .awsui_header-cell-descending_1spae_ov6lq_207:not(#\9) {
203
+ .awsui_header-cell-ascending_1spae_1gt6c_203:not(#\9),
204
+ .awsui_header-cell-descending_1spae_1gt6c_204:not(#\9) {
208
205
  /* used in test-utils */
206
+ }
207
+
208
+ /*
209
+ In Visual Refresh the first cell in the header should align
210
+ with the left edge of the table as closely as possible. If the
211
+ last header cell is sortable the sort icon should align with the
212
+ settings icon in the pagination slot.
213
+ */
214
+ .awsui_header-cell_1spae_1gt6c_93:not(#\9):not(.awsui_is-visual-refresh_1spae_1gt6c_214):first-child {
215
+ padding-left: var(--space-xs-rsr2qu, 8px);
216
+ }
217
+
218
+ .awsui_header-cell_1spae_1gt6c_93.awsui_is-visual-refresh_1spae_1gt6c_214:not(#\9) {
219
+ /*
220
+ Striped rows requires additional left padding because the
221
+ shaded background makes the child content appear too close
222
+ to the table edge.
223
+ */
224
+ }
225
+ .awsui_header-cell_1spae_1gt6c_93.awsui_is-visual-refresh_1spae_1gt6c_214:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_1gt6c_225) {
226
+ padding-left: var(--space-xxxs-k2w98v, 2px);
227
+ }
228
+ .awsui_header-cell_1spae_1gt6c_93.awsui_is-visual-refresh_1spae_1gt6c_214:not(#\9):first-child.awsui_has-striped-rows_1spae_1gt6c_225 {
229
+ padding-left: var(--space-xxs-ynfts5, 4px);
230
+ }
231
+ .awsui_header-cell_1spae_1gt6c_93.awsui_is-visual-refresh_1spae_1gt6c_214:not(#\9):first-child > .awsui_header-cell-content_1spae_1gt6c_135 {
232
+ padding-left: 0;
233
+ }
234
+ .awsui_header-cell_1spae_1gt6c_93.awsui_is-visual-refresh_1spae_1gt6c_214:not(#\9):last-child.awsui_header-cell-sortable_1spae_1gt6c_112 {
235
+ padding-right: var(--space-xxxs-k2w98v, 2px);
209
236
  }
@@ -2,21 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "header-cell": "awsui_header-cell_1spae_ov6lq_93",
6
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_ov6lq_103",
7
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_ov6lq_106",
8
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_ov6lq_106",
9
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_ov6lq_109",
10
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_ov6lq_115",
11
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_ov6lq_127",
12
- "sorting-icon": "awsui_sorting-icon_1spae_ov6lq_131",
13
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_ov6lq_138",
14
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_ov6lq_138",
15
- "header-cell-content": "awsui_header-cell-content_1spae_ov6lq_138",
16
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_ov6lq_171",
17
- "header-cell-text": "awsui_header-cell-text_1spae_ov6lq_200",
18
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_ov6lq_200",
19
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_ov6lq_206",
20
- "header-cell-descending": "awsui_header-cell-descending_1spae_ov6lq_207"
5
+ "header-cell": "awsui_header-cell_1spae_1gt6c_93",
6
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_1gt6c_103",
7
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_1gt6c_106",
8
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1gt6c_106",
9
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_1gt6c_109",
10
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_1gt6c_112",
11
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_1gt6c_124",
12
+ "sorting-icon": "awsui_sorting-icon_1spae_1gt6c_128",
13
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_1gt6c_135",
14
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_1gt6c_135",
15
+ "header-cell-content": "awsui_header-cell-content_1spae_1gt6c_135",
16
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1gt6c_168",
17
+ "header-cell-text": "awsui_header-cell-text_1spae_1gt6c_197",
18
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1gt6c_197",
19
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_1gt6c_203",
20
+ "header-cell-descending": "awsui_header-cell-descending_1spae_1gt6c_204",
21
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_1gt6c_214",
22
+ "has-striped-rows": "awsui_has-striped-rows_1spae_1gt6c_225"
21
23
  };
22
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAiC/D,QAAA,MAAM,aAAa,qBA6UK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAiC/D,QAAA,MAAM,aAAa,qBAsVK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
package/table/internal.js CHANGED
@@ -77,13 +77,15 @@ var InternalTable = React.forwardRef(function (_a, ref) {
77
77
  checkSortingState(columnDefinitions, sortingColumn.sortingComparator);
78
78
  }
79
79
  }
80
- var isRefresh = useVisualRefresh();
81
- var computedVariant = isRefresh
80
+ var isVisualRefresh = useVisualRefresh();
81
+ var computedVariant = isVisualRefresh
82
82
  ? variant
83
83
  : ['embedded', 'full-page'].indexOf(variant) > -1
84
84
  ? 'container'
85
85
  : variant;
86
86
  var hasHeader = !!(header || filter || pagination || preferences);
87
+ var hasSelection = !!selectionType;
88
+ var hasFooter = !!footer;
87
89
  var theadProps = {
88
90
  containerWidth: containerWidth,
89
91
  selectionType: selectionType,
@@ -104,7 +106,8 @@ var InternalTable = React.forwardRef(function (_a, ref) {
104
106
  fireNonCancelableEvent(onColumnWidthsChange, { widths: widthsDetail });
105
107
  }
106
108
  },
107
- singleSelectionHeaderAriaLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel
109
+ singleSelectionHeaderAriaLabel: ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.selectionGroupLabel,
110
+ stripedRows: stripedRows
108
111
  };
109
112
  // Allows keyboard users to scroll horizontally with arrow keys by making the wrapper part of the tab sequence
110
113
  var isWrapperScrollable = tableWidth && containerWidth && tableWidth > containerWidth;
@@ -115,16 +118,15 @@ var InternalTable = React.forwardRef(function (_a, ref) {
115
118
  var getMouseDownTarget = useMouseDownTarget();
116
119
  var hasDynamicHeight = computedVariant === 'full-page';
117
120
  var overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight });
118
- return (React.createElement(ColumnWidthsProvider, { tableRef: tableRefObject, visibleColumnDefinitions: visibleColumnDefinitions, resizableColumns: resizableColumns, hasSelection: !!selectionType },
121
+ return (React.createElement(ColumnWidthsProvider, { tableRef: tableRefObject, visibleColumnDefinitions: visibleColumnDefinitions, resizableColumns: resizableColumns, hasSelection: hasSelection },
119
122
  React.createElement(InternalContainer, __assign({}, baseProps, { __internalRootRef: __internalRootRef, className: clsx(baseProps.className, styles.root), header: React.createElement(React.Fragment, null,
120
123
  hasHeader && (React.createElement("div", { ref: overlapElement, className: clsx(hasDynamicHeight && [styles['dark-header'], 'awsui-context-content-header']) },
121
124
  React.createElement("div", { className: clsx(styles['header-controls'], styles["variant-".concat(computedVariant)]) },
122
125
  React.createElement(ToolsHeader, { header: header, filter: filter, pagination: pagination, preferences: preferences })))),
123
126
  stickyHeader && (React.createElement(StickyHeader, { ref: stickyHeaderRef, variant: computedVariant, theadProps: theadProps, wrapperRef: wrapperRefObject, theadRef: theadRef, secondaryWrapperRef: secondaryWrapperRef, tableRef: tableRefObject, onScroll: handleScroll, tableHasHeader: hasHeader }))), disableHeaderPaddings: true, disableContentPaddings: true, variant: toContainerVariant(computedVariant), __disableFooterPaddings: true, __disableFooterDivider: true, footer: footer && (React.createElement("div", { className: clsx(styles['footer-wrapper'], styles["variant-".concat(computedVariant)]) },
124
- React.createElement("hr", { className: styles.divider }),
125
127
  React.createElement("div", { className: styles.footer }, footer))), __stickyHeader: stickyHeader, __stickyOffset: stickyHeaderVerticalOffset }, focusMarkers.root),
126
128
  React.createElement("div", __assign({ ref: wrapperRef, className: clsx(styles.wrapper, styles["variant-".concat(computedVariant)], (_b = {},
127
- _b[styles['has-footer']] = !!footer,
129
+ _b[styles['has-footer']] = hasFooter,
128
130
  _b[styles['has-header']] = hasHeader,
129
131
  _b)), onScroll: handleScroll }, wrapperProps, focusVisibleProps),
130
132
  renderAriaLive && firstIndex && (React.createElement(LiveRegion, null,
@@ -135,7 +137,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
135
137
  role: "table", "aria-label": ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.tableLabel, "aria-rowcount": totalItemsCount ? totalItemsCount + 1 : -1 },
136
138
  React.createElement(Thead, __assign({ ref: theadRef, hidden: stickyHeader, onCellFocus: function (colIndex) { var _a; return (_a = stickyHeaderRef.current) === null || _a === void 0 ? void 0 : _a.setFocusedColumn(colIndex); }, onCellBlur: function () { var _a; return (_a = stickyHeaderRef.current) === null || _a === void 0 ? void 0 : _a.setFocusedColumn(null); } }, theadProps)),
137
139
  React.createElement("tbody", null, loading || items.length === 0 ? (React.createElement("tr", null,
138
- React.createElement("td", { colSpan: selectionType ? visibleColumnDefinitions.length + 1 : visibleColumnDefinitions.length, className: styles['cell-merged'] },
140
+ React.createElement("td", { colSpan: selectionType ? visibleColumnDefinitions.length + 1 : visibleColumnDefinitions.length, className: clsx(styles['cell-merged'], hasFooter && styles['has-footer']) },
139
141
  React.createElement("div", { className: styles['cell-merged-content'], style: {
140
142
  width: (supportsStickyPosition() && containerWidth && Math.floor(containerWidth)) || undefined
141
143
  } }, loading ? (React.createElement(InternalStatusIndicator, { type: "loading", className: styles.loading, wrapText: true },
@@ -156,7 +158,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
156
158
  (_b = stickyHeaderRef.current) === null || _b === void 0 ? void 0 : _b.scrollToRow(currentTarget);
157
159
  }
158
160
  } }, focusMarkers.item, { onClick: onRowClickHandler && onRowClickHandler.bind(null, rowIndex, item), onContextMenu: onRowContextMenuHandler && onRowContextMenuHandler.bind(null, rowIndex, item), "aria-rowindex": firstIndex ? firstIndex + rowIndex + 1 : undefined }),
159
- selectionType !== undefined && (React.createElement(TableBodyCell, { className: styles['selection-control'], isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, wrapLines: false, isEvenRow: isEven, stripedRows: stripedRows },
161
+ selectionType !== undefined && (React.createElement(TableBodyCell, { className: clsx(styles['selection-control'], isVisualRefresh && styles['is-visual-refresh']), isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, wrapLines: false, isEvenRow: isEven, stripedRows: stripedRows, hasSelection: hasSelection, hasFooter: hasFooter },
160
162
  React.createElement(SelectionControl, __assign({ onFocusDown: moveFocusDown, onFocusUp: moveFocusUp, onShiftToggle: updateShiftToggle }, getItemSelectionProps(item))))),
161
163
  visibleColumnDefinitions.map(function (column, colIndex) { return (React.createElement(TableBodyCellContent, { key: getColumnKey(column, colIndex), style: resizableColumns
162
164
  ? {}
@@ -164,7 +166,7 @@ var InternalTable = React.forwardRef(function (_a, ref) {
164
166
  width: column.width,
165
167
  minWidth: column.minWidth,
166
168
  maxWidth: column.maxWidth
167
- }, column: column, item: item, wrapLines: wrapLines, isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, stripedRows: stripedRows, isEvenRow: isEven })); })));
169
+ }, column: column, item: item, wrapLines: wrapLines, isFirstRow: firstVisible, isLastRow: lastVisible, isSelected: isSelected, isNextSelected: isNextSelected, isPrevSelected: isPrevSelected, stripedRows: stripedRows, isEvenRow: isEven, hasSelection: hasSelection, hasFooter: hasFooter })); })));
168
170
  })))),
169
171
  resizableColumns && React.createElement(ResizeTracker, null)),
170
172
  React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll }))));