@cloudscape-design/components 3.0.244 → 3.0.246

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 (261) hide show
  1. package/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  2. package/annotation-context/annotation/annotation-trigger.js +1 -3
  3. package/annotation-context/annotation/annotation-trigger.js.map +1 -1
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +29 -29
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/app-layout/visual-refresh/styles.css.js +61 -61
  8. package/app-layout/visual-refresh/styles.scoped.css +151 -151
  9. package/app-layout/visual-refresh/styles.selectors.js +61 -61
  10. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  11. package/app-layout/visual-refresh/trigger-button.js +2 -4
  12. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  13. package/breadcrumb-group/item/item.d.ts.map +1 -1
  14. package/breadcrumb-group/item/item.js +2 -5
  15. package/breadcrumb-group/item/item.js.map +1 -1
  16. package/breadcrumb-group/item/styles.css.js +9 -9
  17. package/breadcrumb-group/item/styles.scoped.css +17 -17
  18. package/breadcrumb-group/item/styles.selectors.js +9 -9
  19. package/button/internal.d.ts.map +1 -1
  20. package/button/internal.js +2 -3
  21. package/button/internal.js.map +1 -1
  22. package/button/styles.css.js +19 -18
  23. package/button/styles.scoped.css +136 -136
  24. package/button/styles.selectors.js +19 -18
  25. package/calendar/grid/index.d.ts.map +1 -1
  26. package/calendar/grid/index.js +2 -4
  27. package/calendar/grid/index.js.map +1 -1
  28. package/calendar/styles.css.js +18 -18
  29. package/calendar/styles.scoped.css +38 -38
  30. package/calendar/styles.selectors.js +18 -18
  31. package/code-editor/styles.css.js +32 -32
  32. package/code-editor/styles.scoped.css +109 -109
  33. package/code-editor/styles.selectors.js +32 -32
  34. package/code-editor/tab-button.d.ts.map +1 -1
  35. package/code-editor/tab-button.js +2 -4
  36. package/code-editor/tab-button.js.map +1 -1
  37. package/date-picker/index.d.ts.map +1 -1
  38. package/date-picker/index.js +1 -3
  39. package/date-picker/index.js.map +1 -1
  40. package/date-picker/styles.css.js +7 -7
  41. package/date-picker/styles.scoped.css +9 -9
  42. package/date-picker/styles.selectors.js +7 -7
  43. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  44. package/date-range-picker/calendar/grids/grid.js +1 -3
  45. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  46. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  47. package/date-range-picker/calendar/grids/index.js +1 -3
  48. package/date-range-picker/calendar/grids/index.js.map +1 -1
  49. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  50. package/date-range-picker/calendar/grids/styles.scoped.css +42 -42
  51. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  52. package/date-range-picker/dropdown.d.ts.map +1 -1
  53. package/date-range-picker/dropdown.js +1 -3
  54. package/date-range-picker/dropdown.js.map +1 -1
  55. package/date-range-picker/styles.css.js +38 -38
  56. package/date-range-picker/styles.scoped.css +45 -45
  57. package/date-range-picker/styles.selectors.js +38 -38
  58. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  59. package/expandable-section/expandable-section-header.js +8 -11
  60. package/expandable-section/expandable-section-header.js.map +1 -1
  61. package/expandable-section/styles.css.js +23 -23
  62. package/expandable-section/styles.scoped.css +44 -44
  63. package/expandable-section/styles.selectors.js +23 -23
  64. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  65. package/flashbar/collapsible-flashbar.js +1 -3
  66. package/flashbar/collapsible-flashbar.js.map +1 -1
  67. package/flashbar/flash.d.ts.map +1 -1
  68. package/flashbar/flash.js +1 -3
  69. package/flashbar/flash.js.map +1 -1
  70. package/flashbar/styles.css.js +45 -45
  71. package/flashbar/styles.scoped.css +144 -144
  72. package/flashbar/styles.selectors.js +45 -45
  73. package/internal/components/abstract-switch/index.d.ts.map +1 -1
  74. package/internal/components/abstract-switch/index.js +8 -4
  75. package/internal/components/abstract-switch/index.js.map +1 -1
  76. package/internal/components/abstract-switch/styles.css.js +13 -13
  77. package/internal/components/abstract-switch/styles.scoped.css +19 -19
  78. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  79. package/internal/components/button-trigger/index.d.ts.map +1 -1
  80. package/internal/components/button-trigger/index.js +1 -3
  81. package/internal/components/button-trigger/index.js.map +1 -1
  82. package/internal/components/button-trigger/styles.css.js +9 -9
  83. package/internal/components/button-trigger/styles.scoped.css +23 -23
  84. package/internal/components/button-trigger/styles.selectors.js +9 -9
  85. package/internal/components/chart-legend/index.d.ts.map +1 -1
  86. package/internal/components/chart-legend/index.js +2 -4
  87. package/internal/components/chart-legend/index.js.map +1 -1
  88. package/internal/components/chart-legend/styles.css.js +6 -6
  89. package/internal/components/chart-legend/styles.scoped.css +15 -15
  90. package/internal/components/chart-legend/styles.selectors.js +6 -6
  91. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  92. package/internal/components/chart-plot/focus-outline.js +25 -3
  93. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  94. package/internal/components/filtering-token/index.d.ts +2 -1
  95. package/internal/components/filtering-token/index.d.ts.map +1 -1
  96. package/internal/components/filtering-token/index.js +3 -5
  97. package/internal/components/filtering-token/index.js.map +1 -1
  98. package/internal/components/filtering-token/styles.css.js +7 -7
  99. package/internal/components/filtering-token/styles.scoped.css +13 -13
  100. package/internal/components/filtering-token/styles.selectors.js +7 -7
  101. package/internal/components/menu-dropdown/index.d.ts.map +1 -1
  102. package/internal/components/menu-dropdown/index.js +2 -4
  103. package/internal/components/menu-dropdown/index.js.map +1 -1
  104. package/internal/components/menu-dropdown/styles.css.js +7 -7
  105. package/internal/components/menu-dropdown/styles.scoped.css +13 -13
  106. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  107. package/internal/components/options-list/utils/use-keyboard.d.ts +0 -2
  108. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  109. package/internal/components/options-list/utils/use-keyboard.js +2 -3
  110. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  111. package/internal/components/token-list/index.d.ts +1 -1
  112. package/internal/components/token-list/index.d.ts.map +1 -1
  113. package/internal/components/token-list/index.js +3 -3
  114. package/internal/components/token-list/index.js.map +1 -1
  115. package/internal/components/token-list/interfaces.d.ts +0 -1
  116. package/internal/components/token-list/interfaces.d.ts.map +1 -1
  117. package/internal/components/token-list/interfaces.js.map +1 -1
  118. package/internal/components/token-list/styles.css.js +9 -9
  119. package/internal/components/token-list/styles.scoped.css +20 -20
  120. package/internal/components/token-list/styles.selectors.js +9 -9
  121. package/internal/components/token-list/token-focus-controller.js +1 -1
  122. package/internal/components/token-list/token-focus-controller.js.map +1 -1
  123. package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  124. package/internal/components/token-list/token-limit-toggle.js +1 -3
  125. package/internal/components/token-list/token-limit-toggle.js.map +1 -1
  126. package/internal/environment.js +1 -1
  127. package/internal/hooks/focus-visible/index.d.ts +2 -5
  128. package/internal/hooks/focus-visible/index.d.ts.map +1 -1
  129. package/internal/hooks/focus-visible/index.js +42 -22
  130. package/internal/hooks/focus-visible/index.js.map +1 -1
  131. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  132. package/internal/hooks/use-base-component/index.js +2 -0
  133. package/internal/hooks/use-base-component/index.js.map +1 -1
  134. package/internal/manifest.json +1 -1
  135. package/link/internal.d.ts.map +1 -1
  136. package/link/internal.js +1 -3
  137. package/link/internal.js.map +1 -1
  138. package/link/styles.css.js +20 -20
  139. package/link/styles.scoped.css +71 -71
  140. package/link/styles.selectors.js +20 -20
  141. package/package.json +1 -1
  142. package/pagination/internal.d.ts.map +1 -1
  143. package/pagination/internal.js +1 -3
  144. package/pagination/internal.js.map +1 -1
  145. package/pagination/styles.css.js +9 -9
  146. package/pagination/styles.scoped.css +23 -23
  147. package/pagination/styles.selectors.js +9 -9
  148. package/popover/internal.d.ts.map +1 -1
  149. package/popover/internal.js +1 -3
  150. package/popover/internal.js.map +1 -1
  151. package/popover/styles.css.js +50 -50
  152. package/popover/styles.scoped.css +63 -63
  153. package/popover/styles.selectors.js +50 -50
  154. package/property-filter/index.d.ts.map +1 -1
  155. package/property-filter/index.js +2 -2
  156. package/property-filter/index.js.map +1 -1
  157. package/property-filter/token.d.ts.map +1 -1
  158. package/property-filter/token.js +1 -1
  159. package/property-filter/token.js.map +1 -1
  160. package/segmented-control/segment.d.ts.map +1 -1
  161. package/segmented-control/segment.js +1 -3
  162. package/segmented-control/segment.js.map +1 -1
  163. package/segmented-control/styles.css.js +14 -14
  164. package/segmented-control/styles.scoped.css +33 -33
  165. package/segmented-control/styles.selectors.js +14 -14
  166. package/select/utils/use-select.d.ts.map +1 -1
  167. package/select/utils/use-select.js +0 -3
  168. package/select/utils/use-select.js.map +1 -1
  169. package/side-navigation/internal.d.ts.map +1 -1
  170. package/side-navigation/internal.js +2 -5
  171. package/side-navigation/internal.js.map +1 -1
  172. package/side-navigation/styles.css.js +27 -27
  173. package/side-navigation/styles.scoped.css +37 -37
  174. package/side-navigation/styles.selectors.js +27 -27
  175. package/split-panel/index.d.ts.map +1 -1
  176. package/split-panel/index.js +1 -3
  177. package/split-panel/index.js.map +1 -1
  178. package/split-panel/styles.css.js +59 -59
  179. package/split-panel/styles.scoped.css +81 -81
  180. package/split-panel/styles.selectors.js +59 -59
  181. package/table/body-cell/index.d.ts.map +1 -1
  182. package/table/body-cell/index.js +3 -3
  183. package/table/body-cell/index.js.map +1 -1
  184. package/table/body-cell/styles.css.js +18 -18
  185. package/table/body-cell/styles.scoped.css +57 -55
  186. package/table/body-cell/styles.selectors.js +18 -18
  187. package/table/header-cell/index.d.ts.map +1 -1
  188. package/table/header-cell/index.js +11 -9
  189. package/table/header-cell/index.js.map +1 -1
  190. package/table/header-cell/styles.css.js +19 -19
  191. package/table/header-cell/styles.scoped.css +32 -32
  192. package/table/header-cell/styles.selectors.js +19 -19
  193. package/table/internal.d.ts.map +1 -1
  194. package/table/internal.js +1 -3
  195. package/table/internal.js.map +1 -1
  196. package/table/resizer/styles.css.js +6 -6
  197. package/table/resizer/styles.scoped.css +11 -11
  198. package/table/resizer/styles.selectors.js +6 -6
  199. package/table/styles.css.js +33 -33
  200. package/table/styles.scoped.css +41 -41
  201. package/table/styles.selectors.js +33 -33
  202. package/tabs/index.d.ts.map +1 -1
  203. package/tabs/index.js +8 -3
  204. package/tabs/index.js.map +1 -1
  205. package/tabs/styles.css.js +21 -21
  206. package/tabs/styles.scoped.css +38 -38
  207. package/tabs/styles.selectors.js +21 -21
  208. package/tabs/tab-header-bar.d.ts.map +1 -1
  209. package/tabs/tab-header-bar.js +9 -3
  210. package/tabs/tab-header-bar.js.map +1 -1
  211. package/tag-editor/internal.d.ts.map +1 -1
  212. package/tag-editor/internal.js +2 -4
  213. package/tag-editor/internal.js.map +1 -1
  214. package/tag-editor/styles.css.js +3 -3
  215. package/tag-editor/styles.scoped.css +10 -10
  216. package/tag-editor/styles.selectors.js +3 -3
  217. package/token-group/dismiss-button.d.ts.map +1 -1
  218. package/token-group/dismiss-button.js +1 -3
  219. package/token-group/dismiss-button.js.map +1 -1
  220. package/token-group/internal.js +2 -2
  221. package/token-group/internal.js.map +1 -1
  222. package/token-group/styles.css.js +5 -5
  223. package/token-group/styles.scoped.css +12 -12
  224. package/token-group/styles.selectors.js +5 -5
  225. package/token-group/token.d.ts +3 -5
  226. package/token-group/token.d.ts.map +1 -1
  227. package/token-group/token.js +2 -2
  228. package/token-group/token.js.map +1 -1
  229. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  230. package/top-navigation/1.0-beta/internal.js +1 -3
  231. package/top-navigation/1.0-beta/internal.js.map +1 -1
  232. package/top-navigation/1.0-beta/styles.css.js +25 -25
  233. package/top-navigation/1.0-beta/styles.scoped.css +42 -42
  234. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  235. package/top-navigation/interfaces.d.ts +4 -0
  236. package/top-navigation/interfaces.d.ts.map +1 -1
  237. package/top-navigation/interfaces.js.map +1 -1
  238. package/top-navigation/internal.d.ts.map +1 -1
  239. package/top-navigation/internal.js +1 -3
  240. package/top-navigation/internal.js.map +1 -1
  241. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  242. package/top-navigation/parts/overflow-menu/menu-item.js +9 -13
  243. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  244. package/top-navigation/parts/utility.d.ts.map +1 -1
  245. package/top-navigation/parts/utility.js +2 -1
  246. package/top-navigation/parts/utility.js.map +1 -1
  247. package/top-navigation/styles.css.js +47 -47
  248. package/top-navigation/styles.scoped.css +66 -66
  249. package/top-navigation/styles.selectors.js +47 -47
  250. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  251. package/tutorial-panel/components/tutorial-list/index.js +1 -3
  252. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  253. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  254. package/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -27
  255. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  256. package/wizard/styles.css.js +32 -32
  257. package/wizard/styles.scoped.css +63 -63
  258. package/wizard/styles.selectors.js +32 -32
  259. package/wizard/wizard-form.d.ts.map +1 -1
  260. package/wizard/wizard-form.js +1 -3
  261. package/wizard/wizard-form.js.map +1 -1
@@ -90,13 +90,13 @@ 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_resize-active_x7peu_1nqyy_93:not(#\9):not(.awsui_resize-active-with-focus_x7peu_1nqyy_93) * {
93
+ .awsui_resize-active_x7peu_1px6f_93:not(#\9):not(.awsui_resize-active-with-focus_x7peu_1px6f_93) * {
94
94
  cursor: col-resize;
95
95
  -webkit-user-select: none;
96
96
  user-select: none;
97
97
  }
98
98
 
99
- .awsui_resizer_x7peu_1nqyy_98:not(#\9) {
99
+ .awsui_resizer_x7peu_1px6f_98:not(#\9) {
100
100
  bottom: 0;
101
101
  cursor: col-resize;
102
102
  position: absolute;
@@ -105,14 +105,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
105
105
  width: var(--space-l-4vl6xu, 20px);
106
106
  z-index: 10;
107
107
  }
108
- .awsui_resize-active_x7peu_1nqyy_93 .awsui_resizer_x7peu_1nqyy_98:not(#\9) {
108
+ .awsui_resize-active_x7peu_1px6f_93 .awsui_resizer_x7peu_1px6f_98:not(#\9) {
109
109
  pointer-events: none;
110
110
  }
111
- th:not(#\9):last-child > .awsui_resizer_x7peu_1nqyy_98 {
111
+ th:not(#\9):last-child > .awsui_resizer_x7peu_1px6f_98 {
112
112
  width: calc(var(--space-l-4vl6xu, 20px) / 2);
113
113
  right: 0;
114
114
  }
115
- th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1nqyy_98:hover::before, th:not(#\9):not(:last-child) > .awsui_resizer-active_x7peu_1nqyy_114::before {
115
+ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1px6f_98:hover::before, th:not(#\9):not(:last-child) > .awsui_resizer-active_x7peu_1px6f_114::before {
116
116
  content: "";
117
117
  position: absolute;
118
118
  left: calc(var(--space-l-4vl6xu, 20px) / 2 - 2px);
@@ -124,15 +124,15 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1nqyy_98:hover::before, th:n
124
124
  border-left: 2px solid var(--color-border-divider-active-nnnfx9, #7d8998);
125
125
  box-sizing: border-box;
126
126
  }
127
- .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9) {
127
+ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_1px6f_98.awsui_has-focus_x7peu_1px6f_126:not(#\9) {
128
128
  position: relative;
129
129
  position: absolute;
130
130
  }
131
- .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9) {
131
+ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_1px6f_98.awsui_has-focus_x7peu_1px6f_126:not(#\9) {
132
132
  outline: 2px dotted transparent;
133
133
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
134
134
  }
135
- .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9)::before {
135
+ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_1px6f_98.awsui_has-focus_x7peu_1px6f_126:not(#\9)::before {
136
136
  content: " ";
137
137
  display: block;
138
138
  position: absolute;
@@ -143,11 +143,11 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1nqyy_98:hover::before, th:n
143
143
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
144
144
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
145
145
  }
146
- .awsui_resizer_x7peu_1nqyy_98.awsui_has-focus_x7peu_1nqyy_126:not(#\9)::before {
146
+ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_1px6f_98.awsui_has-focus_x7peu_1px6f_126:not(#\9)::before {
147
147
  box-shadow: inset 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
148
148
  }
149
149
 
150
- .awsui_tracker_x7peu_1nqyy_149:not(#\9) {
150
+ .awsui_tracker_x7peu_1px6f_149:not(#\9) {
151
151
  display: none;
152
152
  position: absolute;
153
153
  border-left: var(--border-divider-list-width-hacikr, 1px) dashed var(--color-border-divider-active-nnnfx9, #7d8998);
@@ -155,6 +155,6 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1nqyy_98:hover::before, th:n
155
155
  top: 0;
156
156
  bottom: 0;
157
157
  }
158
- .awsui_resize-active_x7peu_1nqyy_93 .awsui_tracker_x7peu_1nqyy_149:not(#\9) {
158
+ .awsui_resize-active_x7peu_1px6f_93 .awsui_tracker_x7peu_1px6f_149:not(#\9) {
159
159
  display: block;
160
160
  }
@@ -2,11 +2,11 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "resize-active": "awsui_resize-active_x7peu_1nqyy_93",
6
- "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_1nqyy_93",
7
- "resizer": "awsui_resizer_x7peu_1nqyy_98",
8
- "resizer-active": "awsui_resizer-active_x7peu_1nqyy_114",
9
- "has-focus": "awsui_has-focus_x7peu_1nqyy_126",
10
- "tracker": "awsui_tracker_x7peu_1nqyy_149"
5
+ "resize-active": "awsui_resize-active_x7peu_1px6f_93",
6
+ "resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_1px6f_93",
7
+ "resizer": "awsui_resizer_x7peu_1px6f_98",
8
+ "resizer-active": "awsui_resizer-active_x7peu_1px6f_114",
9
+ "has-focus": "awsui_has-focus_x7peu_1px6f_126",
10
+ "tracker": "awsui_tracker_x7peu_1px6f_149"
11
11
  };
12
12
 
@@ -1,38 +1,38 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_wih1l_1o3zu_97",
5
- "tools": "awsui_tools_wih1l_1o3zu_108",
6
- "tools-filtering": "awsui_tools-filtering_wih1l_1o3zu_114",
7
- "tools-align-right": "awsui_tools-align-right_wih1l_1o3zu_128",
8
- "tools-pagination": "awsui_tools-pagination_wih1l_1o3zu_132",
9
- "tools-preferences": "awsui_tools-preferences_wih1l_1o3zu_132",
10
- "tools-small": "awsui_tools-small_wih1l_1o3zu_138",
11
- "table": "awsui_table_wih1l_1o3zu_144",
12
- "table-layout-fixed": "awsui_table-layout-fixed_wih1l_1o3zu_150",
13
- "wrapper": "awsui_wrapper_wih1l_1o3zu_154",
14
- "variant-stacked": "awsui_variant-stacked_wih1l_1o3zu_162",
15
- "variant-container": "awsui_variant-container_wih1l_1o3zu_162",
16
- "variant-embedded": "awsui_variant-embedded_wih1l_1o3zu_166",
17
- "has-header": "awsui_has-header_wih1l_1o3zu_169",
18
- "has-footer": "awsui_has-footer_wih1l_1o3zu_172",
19
- "cell-merged": "awsui_cell-merged_wih1l_1o3zu_186",
20
- "cell-merged-content": "awsui_cell-merged-content_wih1l_1o3zu_197",
21
- "empty": "awsui_empty_wih1l_1o3zu_212",
22
- "loading": "awsui_loading_wih1l_1o3zu_216",
23
- "selection-control": "awsui_selection-control_wih1l_1o3zu_225",
24
- "selection-control-header": "awsui_selection-control-header_wih1l_1o3zu_232",
25
- "sticky-scrollbar": "awsui_sticky-scrollbar_wih1l_1o3zu_237",
26
- "sticky-scrollbar-content": "awsui_sticky-scrollbar-content_wih1l_1o3zu_247",
27
- "sticky-scrollbar-visible": "awsui_sticky-scrollbar-visible_wih1l_1o3zu_250",
28
- "dark-header": "awsui_dark-header_wih1l_1o3zu_258",
29
- "header-secondary": "awsui_header-secondary_wih1l_1o3zu_263",
30
- "table-has-header": "awsui_table-has-header_wih1l_1o3zu_279",
31
- "header-controls": "awsui_header-controls_wih1l_1o3zu_283",
32
- "footer-wrapper": "awsui_footer-wrapper_wih1l_1o3zu_297",
33
- "footer": "awsui_footer_wih1l_1o3zu_297",
34
- "thead-active": "awsui_thead-active_wih1l_1o3zu_306",
35
- "row": "awsui_row_wih1l_1o3zu_307",
36
- "row-selected": "awsui_row-selected_wih1l_1o3zu_308"
4
+ "root": "awsui_root_wih1l_17qe8_97",
5
+ "tools": "awsui_tools_wih1l_17qe8_108",
6
+ "tools-filtering": "awsui_tools-filtering_wih1l_17qe8_114",
7
+ "tools-align-right": "awsui_tools-align-right_wih1l_17qe8_128",
8
+ "tools-pagination": "awsui_tools-pagination_wih1l_17qe8_132",
9
+ "tools-preferences": "awsui_tools-preferences_wih1l_17qe8_132",
10
+ "tools-small": "awsui_tools-small_wih1l_17qe8_138",
11
+ "table": "awsui_table_wih1l_17qe8_144",
12
+ "table-layout-fixed": "awsui_table-layout-fixed_wih1l_17qe8_150",
13
+ "wrapper": "awsui_wrapper_wih1l_17qe8_154",
14
+ "variant-stacked": "awsui_variant-stacked_wih1l_17qe8_162",
15
+ "variant-container": "awsui_variant-container_wih1l_17qe8_162",
16
+ "variant-embedded": "awsui_variant-embedded_wih1l_17qe8_166",
17
+ "has-header": "awsui_has-header_wih1l_17qe8_169",
18
+ "has-footer": "awsui_has-footer_wih1l_17qe8_172",
19
+ "cell-merged": "awsui_cell-merged_wih1l_17qe8_186",
20
+ "cell-merged-content": "awsui_cell-merged-content_wih1l_17qe8_197",
21
+ "empty": "awsui_empty_wih1l_17qe8_212",
22
+ "loading": "awsui_loading_wih1l_17qe8_216",
23
+ "selection-control": "awsui_selection-control_wih1l_17qe8_225",
24
+ "selection-control-header": "awsui_selection-control-header_wih1l_17qe8_232",
25
+ "sticky-scrollbar": "awsui_sticky-scrollbar_wih1l_17qe8_237",
26
+ "sticky-scrollbar-content": "awsui_sticky-scrollbar-content_wih1l_17qe8_247",
27
+ "sticky-scrollbar-visible": "awsui_sticky-scrollbar-visible_wih1l_17qe8_250",
28
+ "dark-header": "awsui_dark-header_wih1l_17qe8_258",
29
+ "header-secondary": "awsui_header-secondary_wih1l_17qe8_263",
30
+ "table-has-header": "awsui_table-has-header_wih1l_17qe8_279",
31
+ "header-controls": "awsui_header-controls_wih1l_17qe8_283",
32
+ "footer-wrapper": "awsui_footer-wrapper_wih1l_17qe8_297",
33
+ "footer": "awsui_footer_wih1l_17qe8_297",
34
+ "thead-active": "awsui_thead-active_wih1l_17qe8_306",
35
+ "row": "awsui_row_wih1l_17qe8_307",
36
+ "row-selected": "awsui_row-selected_wih1l_17qe8_308"
37
37
  };
38
38
 
@@ -94,7 +94,7 @@ 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_root_wih1l_1o3zu_97:not(#\9) {
97
+ .awsui_root_wih1l_17qe8_97:not(#\9) {
98
98
  font-size: var(--font-body-m-size-sregvd, 14px);
99
99
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
100
100
  color: var(--color-text-body-default-ajf1h5, #000716);
@@ -105,53 +105,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
105
105
  width: 100%;
106
106
  }
107
107
 
108
- .awsui_tools_wih1l_1o3zu_108:not(#\9) {
108
+ .awsui_tools_wih1l_17qe8_108:not(#\9) {
109
109
  display: flex;
110
110
  align-items: flex-start;
111
111
  flex-wrap: wrap;
112
112
  padding: var(--space-scaled-xs-6859qs, 8px) 0 var(--space-scaled-xxs-95dhkm, 4px);
113
113
  }
114
- .awsui_tools-filtering_wih1l_1o3zu_114:not(#\9) {
114
+ .awsui_tools-filtering_wih1l_17qe8_114:not(#\9) {
115
115
  max-width: 100%;
116
116
  margin-right: var(--space-l-4vl6xu, 20px);
117
117
  }
118
118
  @supports (flex-basis: fit-content) {
119
- .awsui_tools-filtering_wih1l_1o3zu_114:not(#\9) {
119
+ .awsui_tools-filtering_wih1l_17qe8_114:not(#\9) {
120
120
  flex: 1 1 fit-content;
121
121
  }
122
122
  }
123
123
  @supports not (flex-basis: fit-content) {
124
- .awsui_tools-filtering_wih1l_1o3zu_114:not(#\9) {
124
+ .awsui_tools-filtering_wih1l_17qe8_114:not(#\9) {
125
125
  flex: 1 1 auto;
126
126
  }
127
127
  }
128
- .awsui_tools-align-right_wih1l_1o3zu_128:not(#\9) {
128
+ .awsui_tools-align-right_wih1l_17qe8_128:not(#\9) {
129
129
  display: flex;
130
130
  margin-left: auto;
131
131
  }
132
- .awsui_tools-pagination_wih1l_1o3zu_132 + .awsui_tools-preferences_wih1l_1o3zu_132:not(#\9) {
132
+ .awsui_tools-pagination_wih1l_17qe8_132 + .awsui_tools-preferences_wih1l_17qe8_132:not(#\9) {
133
133
  border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
134
134
  box-sizing: border-box;
135
135
  margin-left: var(--space-xs-rsr2qu, 8px);
136
136
  padding-left: var(--space-xs-rsr2qu, 8px);
137
137
  }
138
- .awsui_tools-small_wih1l_1o3zu_138 > .awsui_tools-filtering_wih1l_1o3zu_114:not(#\9) {
138
+ .awsui_tools-small_wih1l_17qe8_138 > .awsui_tools-filtering_wih1l_17qe8_114:not(#\9) {
139
139
  margin-right: 0;
140
140
  margin-bottom: var(--space-scaled-xs-6859qs, 8px);
141
141
  flex-basis: 100%;
142
142
  }
143
143
 
144
- .awsui_table_wih1l_1o3zu_144:not(#\9) {
144
+ .awsui_table_wih1l_17qe8_144:not(#\9) {
145
145
  width: 100%;
146
146
  border-spacing: 0;
147
147
  position: relative;
148
148
  box-sizing: border-box;
149
149
  }
150
- .awsui_table-layout-fixed_wih1l_1o3zu_150:not(#\9) {
150
+ .awsui_table-layout-fixed_wih1l_17qe8_150:not(#\9) {
151
151
  table-layout: fixed;
152
152
  }
153
153
 
154
- .awsui_wrapper_wih1l_1o3zu_154:not(#\9) {
154
+ .awsui_wrapper_wih1l_17qe8_154:not(#\9) {
155
155
  position: relative;
156
156
  box-sizing: border-box;
157
157
  width: 100%;
@@ -159,42 +159,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
159
  padding-bottom: var(--space-table-content-bottom-pg6yvn, 4px);
160
160
  overflow-x: auto;
161
161
  }
162
- .awsui_wrapper_wih1l_1o3zu_154.awsui_variant-stacked_wih1l_1o3zu_162 > .awsui_table_wih1l_1o3zu_144:not(#\9), .awsui_wrapper_wih1l_1o3zu_154.awsui_variant-container_wih1l_1o3zu_162 > .awsui_table_wih1l_1o3zu_144:not(#\9) {
162
+ .awsui_wrapper_wih1l_17qe8_154.awsui_variant-stacked_wih1l_17qe8_162 > .awsui_table_wih1l_17qe8_144:not(#\9), .awsui_wrapper_wih1l_17qe8_154.awsui_variant-container_wih1l_17qe8_162 > .awsui_table_wih1l_17qe8_144:not(#\9) {
163
163
  padding-left: var(--space-table-horizontal-mj7h0h, 20px);
164
164
  padding-right: var(--space-table-horizontal-mj7h0h, 20px);
165
165
  }
166
- .awsui_wrapper_wih1l_1o3zu_154.awsui_variant-embedded_wih1l_1o3zu_166:not(#\9) {
166
+ .awsui_wrapper_wih1l_17qe8_154.awsui_variant-embedded_wih1l_17qe8_166:not(#\9) {
167
167
  padding-bottom: var(--space-table-embedded-content-bottom-7vc5vt, 0px);
168
168
  }
169
- .awsui_wrapper_wih1l_1o3zu_154.awsui_has-header_wih1l_1o3zu_169:not(#\9) {
169
+ .awsui_wrapper_wih1l_17qe8_154.awsui_has-header_wih1l_17qe8_169:not(#\9) {
170
170
  padding-top: 0px;
171
171
  }
172
- .awsui_wrapper_wih1l_1o3zu_154.awsui_has-footer_wih1l_1o3zu_172:not(#\9) {
172
+ .awsui_wrapper_wih1l_17qe8_154.awsui_has-footer_wih1l_17qe8_172:not(#\9) {
173
173
  padding-bottom: 0px;
174
174
  }
175
- .awsui_wrapper_wih1l_1o3zu_154:not(#\9):not(.awsui_has-header_wih1l_1o3zu_169) {
175
+ .awsui_wrapper_wih1l_17qe8_154:not(#\9):not(.awsui_has-header_wih1l_17qe8_169) {
176
176
  border-top-right-radius: var(--border-radius-container-gh9ysk, 16px);
177
177
  border-top-left-radius: var(--border-radius-container-gh9ysk, 16px);
178
178
  }
179
- .awsui_wrapper_wih1l_1o3zu_154[data-awsui-focus-visible=true]:not(#\9):focus {
179
+ body[data-awsui-focus-visible=true] .awsui_wrapper_wih1l_17qe8_154:not(#\9):focus {
180
180
  outline: 2px dotted transparent;
181
181
  outline-offset: 2px;
182
182
  border-radius: var(--border-radius-container-gh9ysk, 16px);
183
183
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
184
184
  }
185
185
 
186
- .awsui_cell-merged_wih1l_1o3zu_186:not(#\9) {
186
+ .awsui_cell-merged_wih1l_17qe8_186:not(#\9) {
187
187
  text-align: center;
188
188
  padding: 0;
189
189
  }
190
- .awsui_cell-merged_wih1l_1o3zu_186.awsui_has-footer_wih1l_1o3zu_172:not(#\9) {
190
+ .awsui_cell-merged_wih1l_17qe8_186.awsui_has-footer_wih1l_17qe8_172:not(#\9) {
191
191
  /*
192
192
  Add a bottom border to the body cell of an empty table as a separator between the
193
193
  table and the footer
194
194
  */
195
195
  border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
196
196
  }
197
- .awsui_cell-merged-content_wih1l_1o3zu_197:not(#\9) {
197
+ .awsui_cell-merged-content_wih1l_17qe8_197:not(#\9) {
198
198
  box-sizing: border-box;
199
199
  width: 100%;
200
200
  padding: var(--space-scaled-m-pv0fmt, 16px) var(--space-l-4vl6xu, 20px) var(--space-scaled-l-t03y3z, 20px);
@@ -202,18 +202,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
202
202
  /* stylelint-enable plugin/no-unsupported-browser-features */
203
203
  }
204
204
  @supports (position: sticky) {
205
- .awsui_cell-merged-content_wih1l_1o3zu_197:not(#\9) {
205
+ .awsui_cell-merged-content_wih1l_17qe8_197:not(#\9) {
206
206
  position: sticky;
207
207
  left: 0;
208
208
  margin: 0 calc(-2 * var(--space-table-horizontal-mj7h0h, 20px));
209
209
  }
210
210
  }
211
211
 
212
- .awsui_empty_wih1l_1o3zu_212:not(#\9) {
212
+ .awsui_empty_wih1l_17qe8_212:not(#\9) {
213
213
  color: var(--color-text-empty-fjv325, #5f6b7a);
214
214
  }
215
215
 
216
- .awsui_loading_wih1l_1o3zu_216:not(#\9) {
216
+ .awsui_loading_wih1l_17qe8_216:not(#\9) {
217
217
  /* used in test-utils */
218
218
  }
219
219
 
@@ -222,19 +222,19 @@ The min/max/width token values in Visual Refresh should align
222
222
  the table header and body cells selection control with the table
223
223
  filter search icon.
224
224
  */
225
- .awsui_selection-control_wih1l_1o3zu_225:not(#\9) {
225
+ .awsui_selection-control_wih1l_17qe8_225:not(#\9) {
226
226
  box-sizing: border-box;
227
227
  max-width: var(--size-table-selection-horizontal-o8c8gs, 40px);
228
228
  min-width: var(--size-table-selection-horizontal-o8c8gs, 40px);
229
229
  position: relative;
230
230
  width: var(--size-table-selection-horizontal-o8c8gs, 40px);
231
231
  }
232
- .awsui_selection-control_wih1l_1o3zu_225.awsui_selection-control-header_wih1l_1o3zu_232:not(#\9) {
232
+ .awsui_selection-control_wih1l_17qe8_225.awsui_selection-control-header_wih1l_17qe8_232:not(#\9) {
233
233
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px);
234
234
  border-left: var(--border-item-width-qbbbsa, 2px) solid transparent;
235
235
  }
236
236
 
237
- .awsui_sticky-scrollbar_wih1l_1o3zu_237:not(#\9) {
237
+ .awsui_sticky-scrollbar_wih1l_17qe8_237:not(#\9) {
238
238
  height: 15px;
239
239
  position: fixed;
240
240
  display: none;
@@ -244,10 +244,10 @@ filter search icon.
244
244
  bottom: 0;
245
245
  width: 100%;
246
246
  }
247
- .awsui_sticky-scrollbar-content_wih1l_1o3zu_247:not(#\9) {
247
+ .awsui_sticky-scrollbar-content_wih1l_17qe8_247:not(#\9) {
248
248
  height: 15px;
249
249
  }
250
- .awsui_sticky-scrollbar-visible_wih1l_1o3zu_250:not(#\9) {
250
+ .awsui_sticky-scrollbar-visible_wih1l_17qe8_250:not(#\9) {
251
251
  display: block;
252
252
  }
253
253
 
@@ -255,12 +255,12 @@ filter search icon.
255
255
  The dynamic height dark header needs a background that will cover
256
256
  the default white background of the container component.
257
257
  */
258
- .awsui_dark-header_wih1l_1o3zu_258:not(#\9) {
258
+ .awsui_dark-header_wih1l_17qe8_258:not(#\9) {
259
259
  background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
260
260
  color: var(--color-text-body-default-ajf1h5, #000716);
261
261
  }
262
262
 
263
- .awsui_header-secondary_wih1l_1o3zu_263:not(#\9) {
263
+ .awsui_header-secondary_wih1l_17qe8_263:not(#\9) {
264
264
  overflow: auto;
265
265
  -ms-overflow-style: none; /* Internet Explorer 10+ */
266
266
  scrollbar-width: none; /* Firefox */
@@ -269,42 +269,42 @@ the default white background of the container component.
269
269
  border-radius: 0;
270
270
  background: var(--color-background-table-header-i1pa1g, #ffffff);
271
271
  }
272
- .awsui_header-secondary_wih1l_1o3zu_263.awsui_variant-stacked_wih1l_1o3zu_162 > .awsui_table_wih1l_1o3zu_144:not(#\9), .awsui_header-secondary_wih1l_1o3zu_263.awsui_variant-container_wih1l_1o3zu_162 > .awsui_table_wih1l_1o3zu_144:not(#\9) {
272
+ .awsui_header-secondary_wih1l_17qe8_263.awsui_variant-stacked_wih1l_17qe8_162 > .awsui_table_wih1l_17qe8_144:not(#\9), .awsui_header-secondary_wih1l_17qe8_263.awsui_variant-container_wih1l_17qe8_162 > .awsui_table_wih1l_17qe8_144:not(#\9) {
273
273
  padding-left: var(--space-table-horizontal-mj7h0h, 20px);
274
274
  padding-right: var(--space-table-horizontal-mj7h0h, 20px);
275
275
  }
276
- .awsui_header-secondary_wih1l_1o3zu_263:not(#\9)::-webkit-scrollbar {
276
+ .awsui_header-secondary_wih1l_17qe8_263:not(#\9)::-webkit-scrollbar {
277
277
  display: none; /* Safari and Chrome */
278
278
  }
279
- .awsui_header-secondary_wih1l_1o3zu_263.awsui_table-has-header_wih1l_1o3zu_279:not(#\9) {
279
+ .awsui_header-secondary_wih1l_17qe8_263.awsui_table-has-header_wih1l_17qe8_279:not(#\9) {
280
280
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-container-divider-4ade7z, transparent);
281
281
  }
282
282
 
283
- .awsui_header-controls_wih1l_1o3zu_283:not(#\9) {
283
+ .awsui_header-controls_wih1l_17qe8_283:not(#\9) {
284
284
  padding-top: var(--space-container-header-vertical-zsjhel, 12px);
285
285
  padding-bottom: var(--space-container-header-vertical-zsjhel, 12px);
286
286
  }
287
- .awsui_header-controls_wih1l_1o3zu_283.awsui_variant-stacked_wih1l_1o3zu_162:not(#\9), .awsui_header-controls_wih1l_1o3zu_283.awsui_variant-container_wih1l_1o3zu_162:not(#\9) {
287
+ .awsui_header-controls_wih1l_17qe8_283.awsui_variant-stacked_wih1l_17qe8_162:not(#\9), .awsui_header-controls_wih1l_17qe8_283.awsui_variant-container_wih1l_17qe8_162:not(#\9) {
288
288
  padding-left: calc(var(--space-table-horizontal-mj7h0h, 20px) + var(--space-table-header-horizontal-et2ko8, 0px));
289
289
  padding-right: calc(var(--space-table-horizontal-mj7h0h, 20px) + var(--space-table-header-horizontal-et2ko8, 0px));
290
290
  }
291
- .awsui_header-controls_wih1l_1o3zu_283.awsui_variant-embedded_wih1l_1o3zu_166:not(#\9) {
291
+ .awsui_header-controls_wih1l_17qe8_283.awsui_variant-embedded_wih1l_17qe8_166:not(#\9) {
292
292
  padding-left: var(--space-table-header-horizontal-et2ko8, 0px);
293
293
  padding-right: var(--space-table-header-horizontal-et2ko8, 0px);
294
294
  padding-top: var(--space-table-embedded-header-top-zf07fk, 0px);
295
295
  }
296
296
 
297
- .awsui_footer-wrapper_wih1l_1o3zu_297.awsui_variant-stacked_wih1l_1o3zu_162:not(#\9), .awsui_footer-wrapper_wih1l_1o3zu_297.awsui_variant-container_wih1l_1o3zu_162:not(#\9) {
297
+ .awsui_footer-wrapper_wih1l_17qe8_297.awsui_variant-stacked_wih1l_17qe8_162:not(#\9), .awsui_footer-wrapper_wih1l_17qe8_297.awsui_variant-container_wih1l_17qe8_162:not(#\9) {
298
298
  padding-left: var(--space-table-horizontal-mj7h0h, 20px);
299
299
  padding-right: var(--space-table-horizontal-mj7h0h, 20px);
300
300
  }
301
301
 
302
- .awsui_footer_wih1l_1o3zu_297:not(#\9) {
302
+ .awsui_footer_wih1l_17qe8_297:not(#\9) {
303
303
  padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-table-footer-horizontal-8o6sk8, 0px);
304
304
  }
305
305
 
306
- .awsui_thead-active_wih1l_1o3zu_306:not(#\9),
307
- .awsui_row_wih1l_1o3zu_307:not(#\9),
308
- .awsui_row-selected_wih1l_1o3zu_308:not(#\9) {
306
+ .awsui_thead-active_wih1l_17qe8_306:not(#\9),
307
+ .awsui_row_wih1l_17qe8_307:not(#\9),
308
+ .awsui_row-selected_wih1l_17qe8_308:not(#\9) {
309
309
  /* used in test-utils */
310
310
  }
@@ -2,38 +2,38 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_wih1l_1o3zu_97",
6
- "tools": "awsui_tools_wih1l_1o3zu_108",
7
- "tools-filtering": "awsui_tools-filtering_wih1l_1o3zu_114",
8
- "tools-align-right": "awsui_tools-align-right_wih1l_1o3zu_128",
9
- "tools-pagination": "awsui_tools-pagination_wih1l_1o3zu_132",
10
- "tools-preferences": "awsui_tools-preferences_wih1l_1o3zu_132",
11
- "tools-small": "awsui_tools-small_wih1l_1o3zu_138",
12
- "table": "awsui_table_wih1l_1o3zu_144",
13
- "table-layout-fixed": "awsui_table-layout-fixed_wih1l_1o3zu_150",
14
- "wrapper": "awsui_wrapper_wih1l_1o3zu_154",
15
- "variant-stacked": "awsui_variant-stacked_wih1l_1o3zu_162",
16
- "variant-container": "awsui_variant-container_wih1l_1o3zu_162",
17
- "variant-embedded": "awsui_variant-embedded_wih1l_1o3zu_166",
18
- "has-header": "awsui_has-header_wih1l_1o3zu_169",
19
- "has-footer": "awsui_has-footer_wih1l_1o3zu_172",
20
- "cell-merged": "awsui_cell-merged_wih1l_1o3zu_186",
21
- "cell-merged-content": "awsui_cell-merged-content_wih1l_1o3zu_197",
22
- "empty": "awsui_empty_wih1l_1o3zu_212",
23
- "loading": "awsui_loading_wih1l_1o3zu_216",
24
- "selection-control": "awsui_selection-control_wih1l_1o3zu_225",
25
- "selection-control-header": "awsui_selection-control-header_wih1l_1o3zu_232",
26
- "sticky-scrollbar": "awsui_sticky-scrollbar_wih1l_1o3zu_237",
27
- "sticky-scrollbar-content": "awsui_sticky-scrollbar-content_wih1l_1o3zu_247",
28
- "sticky-scrollbar-visible": "awsui_sticky-scrollbar-visible_wih1l_1o3zu_250",
29
- "dark-header": "awsui_dark-header_wih1l_1o3zu_258",
30
- "header-secondary": "awsui_header-secondary_wih1l_1o3zu_263",
31
- "table-has-header": "awsui_table-has-header_wih1l_1o3zu_279",
32
- "header-controls": "awsui_header-controls_wih1l_1o3zu_283",
33
- "footer-wrapper": "awsui_footer-wrapper_wih1l_1o3zu_297",
34
- "footer": "awsui_footer_wih1l_1o3zu_297",
35
- "thead-active": "awsui_thead-active_wih1l_1o3zu_306",
36
- "row": "awsui_row_wih1l_1o3zu_307",
37
- "row-selected": "awsui_row-selected_wih1l_1o3zu_308"
5
+ "root": "awsui_root_wih1l_17qe8_97",
6
+ "tools": "awsui_tools_wih1l_17qe8_108",
7
+ "tools-filtering": "awsui_tools-filtering_wih1l_17qe8_114",
8
+ "tools-align-right": "awsui_tools-align-right_wih1l_17qe8_128",
9
+ "tools-pagination": "awsui_tools-pagination_wih1l_17qe8_132",
10
+ "tools-preferences": "awsui_tools-preferences_wih1l_17qe8_132",
11
+ "tools-small": "awsui_tools-small_wih1l_17qe8_138",
12
+ "table": "awsui_table_wih1l_17qe8_144",
13
+ "table-layout-fixed": "awsui_table-layout-fixed_wih1l_17qe8_150",
14
+ "wrapper": "awsui_wrapper_wih1l_17qe8_154",
15
+ "variant-stacked": "awsui_variant-stacked_wih1l_17qe8_162",
16
+ "variant-container": "awsui_variant-container_wih1l_17qe8_162",
17
+ "variant-embedded": "awsui_variant-embedded_wih1l_17qe8_166",
18
+ "has-header": "awsui_has-header_wih1l_17qe8_169",
19
+ "has-footer": "awsui_has-footer_wih1l_17qe8_172",
20
+ "cell-merged": "awsui_cell-merged_wih1l_17qe8_186",
21
+ "cell-merged-content": "awsui_cell-merged-content_wih1l_17qe8_197",
22
+ "empty": "awsui_empty_wih1l_17qe8_212",
23
+ "loading": "awsui_loading_wih1l_17qe8_216",
24
+ "selection-control": "awsui_selection-control_wih1l_17qe8_225",
25
+ "selection-control-header": "awsui_selection-control-header_wih1l_17qe8_232",
26
+ "sticky-scrollbar": "awsui_sticky-scrollbar_wih1l_17qe8_237",
27
+ "sticky-scrollbar-content": "awsui_sticky-scrollbar-content_wih1l_17qe8_247",
28
+ "sticky-scrollbar-visible": "awsui_sticky-scrollbar-visible_wih1l_17qe8_250",
29
+ "dark-header": "awsui_dark-header_wih1l_17qe8_258",
30
+ "header-secondary": "awsui_header-secondary_wih1l_17qe8_263",
31
+ "table-has-header": "awsui_table-has-header_wih1l_17qe8_279",
32
+ "header-controls": "awsui_header-controls_wih1l_17qe8_283",
33
+ "footer-wrapper": "awsui_footer-wrapper_wih1l_17qe8_297",
34
+ "footer": "awsui_footer_wih1l_17qe8_297",
35
+ "thead-active": "awsui_thead-active_wih1l_17qe8_306",
36
+ "row": "awsui_row_wih1l_17qe8_307",
37
+ "row-selected": "awsui_row-selected_wih1l_17qe8_308"
38
38
  };
39
39
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["tabs/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,eAAO,MAAM,eAAe,cAA+E,CAAC;AAU5G,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,IAAI,EACJ,OAAmB,EACnB,QAAQ,EACR,WAAW,EAAE,eAAe,EAC5B,SAAS,EACT,cAAc,EACd,sBAA8B,EAC9B,WAAW,EACX,GAAG,IAAI,EACR,EAAE,SAAS,eA4FX"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["tabs/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzC,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,eAAO,MAAM,eAAe,cAA+E,CAAC;AAU5G,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,IAAI,EACJ,OAAmB,EACnB,QAAQ,EACR,WAAW,EAAE,eAAe,EAC5B,SAAS,EACT,cAAc,EACd,sBAA8B,EAC9B,WAAW,EACX,GAAG,IAAI,EACR,EAAE,SAAS,eAyFX"}
package/tabs/index.js CHANGED
@@ -12,7 +12,6 @@ import { useControllable } from '../internal/hooks/use-controllable';
12
12
  import { applyDisplayName } from '../internal/utils/apply-display-name';
13
13
  import useBaseComponent from '../internal/hooks/use-base-component';
14
14
  import { checkSafeUrl } from '../internal/utils/check-safe-url';
15
- import useFocusVisible from '../internal/hooks/focus-visible';
16
15
  let lastGeneratedId = 0;
17
16
  export const nextGeneratedId = () => `awsui-tabs-${lastGeneratedId++}-${Math.round(Math.random() * 10000)}`;
18
17
  function firstEnabledTab(tabs) {
@@ -36,7 +35,6 @@ export default function Tabs(_a) {
36
35
  changeHandler: 'onChange',
37
36
  });
38
37
  const baseProps = getBaseProps(rest);
39
- const focusVisible = useFocusVisible();
40
38
  const content = () => {
41
39
  const selectedTab = tabs.filter(tab => tab.id === activeTabId)[0];
42
40
  const renderContent = (tab) => {
@@ -45,7 +43,14 @@ export default function Tabs(_a) {
45
43
  [styles['tabs-content']]: true,
46
44
  [styles['tabs-content-active']]: isTabSelected,
47
45
  });
48
- const contentAttributes = Object.assign(Object.assign({}, focusVisible), { className: classes, role: 'tabpanel', id: `${idNamespace}-${tab.id}-panel`, key: `${idNamespace}-${tab.id}-panel`, tabIndex: 0, 'aria-labelledby': getTabElementId({ namespace: idNamespace, tabId: tab.id }) });
46
+ const contentAttributes = {
47
+ className: classes,
48
+ role: 'tabpanel',
49
+ id: `${idNamespace}-${tab.id}-panel`,
50
+ key: `${idNamespace}-${tab.id}-panel`,
51
+ tabIndex: 0,
52
+ 'aria-labelledby': getTabElementId({ namespace: idNamespace, tabId: tab.id }),
53
+ };
49
54
  const isContentShown = isTabSelected && !selectedTab.disabled;
50
55
  return React.createElement("div", Object.assign({}, contentAttributes), isContentShown && selectedTab.content);
51
56
  };
package/tabs/index.js.map CHANG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AiB,kBAChB,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,IAAI,IACvB,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EACjD,iBAAiB,EAAE,iBAAiB,EACpC,sBAAsB,EAAE,IAAI,KAE3B,OAAO,EAAE,CACQ,CACrB,CAAC;KACH;IAED,OAAO,CACL,6CAAS,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,iBAAiB;QACvG,MAAM;QACN,OAAO,EAAE,CACN,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport InternalContainer from '../container/internal';\nimport { TabsProps } from './interfaces';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport { getTabElementId, TabHeaderBar } from './tab-header-bar';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\nimport useFocusVisible from '../internal/hooks/focus-visible';\n\nexport { TabsProps };\n\nlet lastGeneratedId = 0;\nexport const nextGeneratedId = () => `awsui-tabs-${lastGeneratedId++}-${Math.round(Math.random() * 10000)}`;\n\nfunction firstEnabledTab(tabs: ReadonlyArray<TabsProps.Tab>) {\n const enabledTabs = tabs.filter(tab => !tab.disabled);\n if (enabledTabs.length > 0) {\n return enabledTabs[0];\n }\n return null;\n}\n\nexport default function Tabs({\n tabs,\n variant = 'default',\n onChange,\n activeTabId: controlledTabId,\n ariaLabel,\n ariaLabelledby,\n disableContentPaddings = false,\n i18nStrings,\n ...rest\n}: TabsProps) {\n for (const tab of tabs) {\n checkSafeUrl('Tabs', tab.href);\n }\n const { __internalRootRef } = useBaseComponent('Tabs');\n const [idNamespace] = useState(() => nextGeneratedId());\n\n const [activeTabId, setActiveTabId] = useControllable(controlledTabId, onChange, firstEnabledTab(tabs)?.id ?? '', {\n componentName: 'Tabs',\n controlledProp: 'activeTabId',\n changeHandler: 'onChange',\n });\n\n const baseProps = getBaseProps(rest);\n\n const focusVisible = useFocusVisible();\n\n const content = () => {\n const selectedTab = tabs.filter(tab => tab.id === activeTabId)[0];\n const renderContent = (tab: TabsProps.Tab) => {\n const isTabSelected = tab === selectedTab;\n\n const classes = clsx({\n [styles['tabs-content']]: true,\n [styles['tabs-content-active']]: isTabSelected,\n });\n\n const contentAttributes: JSX.IntrinsicElements['div'] = {\n ...focusVisible,\n className: classes,\n role: 'tabpanel',\n id: `${idNamespace}-${tab.id}-panel`,\n key: `${idNamespace}-${tab.id}-panel`,\n tabIndex: 0,\n 'aria-labelledby': getTabElementId({ namespace: idNamespace, tabId: tab.id }),\n };\n\n const isContentShown = isTabSelected && !selectedTab.disabled;\n return <div {...contentAttributes}>{isContentShown && selectedTab.content}</div>;\n };\n\n return (\n <div\n className={clsx(\n variant === 'container' ? styles['tabs-container-content-wrapper'] : styles['tabs-content-wrapper'],\n {\n [styles['with-paddings']]: !disableContentPaddings,\n }\n )}\n >\n {tabs.map(renderContent)}\n </div>\n );\n };\n\n const header = (\n <TabHeaderBar\n activeTabId={activeTabId}\n variant={variant}\n idNamespace={idNamespace}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n tabs={tabs}\n onChange={changeDetail => {\n setActiveTabId(changeDetail.activeTabId);\n fireNonCancelableEvent(onChange, changeDetail);\n }}\n i18nStrings={i18nStrings}\n />\n );\n\n if (variant === 'container') {\n return (\n <InternalContainer\n header={header}\n disableHeaderPaddings={true}\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n __internalRootRef={__internalRootRef}\n disableContentPaddings={true}\n >\n {content()}\n </InternalContainer>\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root, styles.tabs)} ref={__internalRootRef}>\n {header}\n {content()}\n </div>\n );\n}\n\napplyDisplayName(Tabs, 'Tabs');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["tabs/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AAEtD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,IAAI,eAAe,GAAG,CAAC,CAAC;AACxB,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,cAAc,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;AAE5G,SAAS,eAAe,CAAC,IAAkC;IACzD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,WAAW,CAAC,MAAM,GA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CAAC,CAAC;QACjD,CAAC,EACD,WAAW,EAAE,WAAW,GACxB,CACH,CAAC;IAEF,IAAI,OAAO,KAAK,WAAW,EAAE;QAC3B,OAAO,CACL,oBAAC,iBAAiB,kBAChB,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,IAAI,IACvB,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EACjD,iBAAiB,EAAE,iBAAiB,EACpC,sBAAsB,EAAE,IAAI,KAE3B,OAAO,EAAE,CACQ,CACrB,CAAC;KACH;IAED,OAAO,CACL,6CAAS,SAAS,IAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,iBAAiB;QACvG,MAAM;QACN,OAAO,EAAE,CACN,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport InternalContainer from '../container/internal';\nimport { TabsProps } from './interfaces';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport { getTabElementId, TabHeaderBar } from './tab-header-bar';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\n\nexport { TabsProps };\n\nlet lastGeneratedId = 0;\nexport const nextGeneratedId = () => `awsui-tabs-${lastGeneratedId++}-${Math.round(Math.random() * 10000)}`;\n\nfunction firstEnabledTab(tabs: ReadonlyArray<TabsProps.Tab>) {\n const enabledTabs = tabs.filter(tab => !tab.disabled);\n if (enabledTabs.length > 0) {\n return enabledTabs[0];\n }\n return null;\n}\n\nexport default function Tabs({\n tabs,\n variant = 'default',\n onChange,\n activeTabId: controlledTabId,\n ariaLabel,\n ariaLabelledby,\n disableContentPaddings = false,\n i18nStrings,\n ...rest\n}: TabsProps) {\n for (const tab of tabs) {\n checkSafeUrl('Tabs', tab.href);\n }\n const { __internalRootRef } = useBaseComponent('Tabs');\n const [idNamespace] = useState(() => nextGeneratedId());\n\n const [activeTabId, setActiveTabId] = useControllable(controlledTabId, onChange, firstEnabledTab(tabs)?.id ?? '', {\n componentName: 'Tabs',\n controlledProp: 'activeTabId',\n changeHandler: 'onChange',\n });\n\n const baseProps = getBaseProps(rest);\n\n const content = () => {\n const selectedTab = tabs.filter(tab => tab.id === activeTabId)[0];\n const renderContent = (tab: TabsProps.Tab) => {\n const isTabSelected = tab === selectedTab;\n\n const classes = clsx({\n [styles['tabs-content']]: true,\n [styles['tabs-content-active']]: isTabSelected,\n });\n\n const contentAttributes: JSX.IntrinsicElements['div'] = {\n className: classes,\n role: 'tabpanel',\n id: `${idNamespace}-${tab.id}-panel`,\n key: `${idNamespace}-${tab.id}-panel`,\n tabIndex: 0,\n 'aria-labelledby': getTabElementId({ namespace: idNamespace, tabId: tab.id }),\n };\n\n const isContentShown = isTabSelected && !selectedTab.disabled;\n return <div {...contentAttributes}>{isContentShown && selectedTab.content}</div>;\n };\n\n return (\n <div\n className={clsx(\n variant === 'container' ? styles['tabs-container-content-wrapper'] : styles['tabs-content-wrapper'],\n {\n [styles['with-paddings']]: !disableContentPaddings,\n }\n )}\n >\n {tabs.map(renderContent)}\n </div>\n );\n };\n\n const header = (\n <TabHeaderBar\n activeTabId={activeTabId}\n variant={variant}\n idNamespace={idNamespace}\n ariaLabel={ariaLabel}\n ariaLabelledby={ariaLabelledby}\n tabs={tabs}\n onChange={changeDetail => {\n setActiveTabId(changeDetail.activeTabId);\n fireNonCancelableEvent(onChange, changeDetail);\n }}\n i18nStrings={i18nStrings}\n />\n );\n\n if (variant === 'container') {\n return (\n <InternalContainer\n header={header}\n disableHeaderPaddings={true}\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n __internalRootRef={__internalRootRef}\n disableContentPaddings={true}\n >\n {content()}\n </InternalContainer>\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root, styles.tabs)} ref={__internalRootRef}>\n {header}\n {content()}\n </div>\n );\n}\n\napplyDisplayName(Tabs, 'Tabs');\n"]}
@@ -1,26 +1,26 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "tabs-header": "awsui_tabs-header_14rmt_14l19_186",
5
- "tabs-header-list": "awsui_tabs-header-list_14rmt_14l19_192",
6
- "pagination-button": "awsui_pagination-button_14rmt_14l19_207",
7
- "pagination-button-left": "awsui_pagination-button-left_14rmt_14l19_212",
8
- "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_14l19_215",
9
- "pagination-button-right": "awsui_pagination-button-right_14rmt_14l19_219",
10
- "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_14l19_222",
11
- "tabs-tab": "awsui_tabs-tab_14rmt_14l19_227",
12
- "tabs-tab-label": "awsui_tabs-tab-label_14rmt_14l19_238",
13
- "tabs-tab-link": "awsui_tabs-tab-link_14rmt_14l19_254",
14
- "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_14l19_313",
15
- "refresh": "awsui_refresh_14rmt_14l19_331",
16
- "tabs-tab-active": "awsui_tabs-tab-active_14rmt_14l19_345",
17
- "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_14l19_352",
18
- "root": "awsui_root_14rmt_14l19_356",
19
- "tabs": "awsui_tabs_14rmt_14l19_186",
20
- "tabs-content": "awsui_tabs-content_14rmt_14l19_375",
21
- "tabs-content-active": "awsui_tabs-content-active_14rmt_14l19_379",
22
- "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_14l19_389",
23
- "with-paddings": "awsui_with-paddings_14rmt_14l19_389",
24
- "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_14l19_393"
4
+ "tabs-header": "awsui_tabs-header_14rmt_174dr_186",
5
+ "tabs-header-list": "awsui_tabs-header-list_14rmt_174dr_192",
6
+ "pagination-button": "awsui_pagination-button_14rmt_174dr_207",
7
+ "pagination-button-left": "awsui_pagination-button-left_14rmt_174dr_212",
8
+ "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_174dr_215",
9
+ "pagination-button-right": "awsui_pagination-button-right_14rmt_174dr_219",
10
+ "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_174dr_222",
11
+ "tabs-tab": "awsui_tabs-tab_14rmt_174dr_227",
12
+ "tabs-tab-label": "awsui_tabs-tab-label_14rmt_174dr_238",
13
+ "tabs-tab-link": "awsui_tabs-tab-link_14rmt_174dr_254",
14
+ "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_174dr_313",
15
+ "refresh": "awsui_refresh_14rmt_174dr_331",
16
+ "tabs-tab-active": "awsui_tabs-tab-active_14rmt_174dr_345",
17
+ "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_174dr_352",
18
+ "root": "awsui_root_14rmt_174dr_356",
19
+ "tabs": "awsui_tabs_14rmt_174dr_186",
20
+ "tabs-content": "awsui_tabs-content_14rmt_174dr_375",
21
+ "tabs-content-active": "awsui_tabs-content-active_14rmt_174dr_379",
22
+ "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_174dr_389",
23
+ "with-paddings": "awsui_with-paddings_14rmt_174dr_389",
24
+ "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_174dr_393"
25
25
  };
26
26