@cloudscape-design/components 3.0.681 → 3.0.683

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 (192) hide show
  1. package/button/index.d.ts.map +1 -1
  2. package/button/index.js +2 -2
  3. package/button/index.js.map +1 -1
  4. package/button/interfaces.d.ts +6 -0
  5. package/button/interfaces.d.ts.map +1 -1
  6. package/button/interfaces.js.map +1 -1
  7. package/button/internal.d.ts.map +1 -1
  8. package/button/internal.js +15 -4
  9. package/button/internal.js.map +1 -1
  10. package/button/styles.css.js +20 -19
  11. package/button/styles.scoped.css +161 -167
  12. package/button/styles.selectors.js +20 -19
  13. package/button/test-classes/styles.css.js +6 -0
  14. package/button/test-classes/styles.scoped.css +7 -0
  15. package/button/test-classes/styles.selectors.js +7 -0
  16. package/button-dropdown/category-elements/expandable-category-element.js +1 -1
  17. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  18. package/button-dropdown/category-elements/mobile-expandable-category-element.js +1 -1
  19. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  20. package/button-dropdown/index.d.ts.map +1 -1
  21. package/button-dropdown/index.js +2 -2
  22. package/button-dropdown/index.js.map +1 -1
  23. package/button-dropdown/interfaces.d.ts +7 -0
  24. package/button-dropdown/interfaces.d.ts.map +1 -1
  25. package/button-dropdown/interfaces.js.map +1 -1
  26. package/button-dropdown/internal.d.ts.map +1 -1
  27. package/button-dropdown/internal.js +4 -2
  28. package/button-dropdown/internal.js.map +1 -1
  29. package/button-dropdown/item-element/index.js +1 -1
  30. package/button-dropdown/item-element/index.js.map +1 -1
  31. package/calendar/grid/index.d.ts +3 -1
  32. package/calendar/grid/index.d.ts.map +1 -1
  33. package/calendar/grid/index.js +26 -6
  34. package/calendar/grid/index.js.map +1 -1
  35. package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts +2 -1
  36. package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts.map +1 -1
  37. package/calendar/grid/use-calendar-grid-keyboard-navigation.js +8 -5
  38. package/calendar/grid/use-calendar-grid-keyboard-navigation.js.map +1 -1
  39. package/calendar/interfaces.d.ts +9 -0
  40. package/calendar/interfaces.d.ts.map +1 -1
  41. package/calendar/interfaces.js.map +1 -1
  42. package/calendar/internal.d.ts +1 -1
  43. package/calendar/internal.d.ts.map +1 -1
  44. package/calendar/internal.js +7 -5
  45. package/calendar/internal.js.map +1 -1
  46. package/calendar/styles.css.js +21 -20
  47. package/calendar/styles.scoped.css +46 -42
  48. package/calendar/styles.selectors.js +21 -20
  49. package/calendar/utils/navigation.d.ts +10 -10
  50. package/calendar/utils/navigation.d.ts.map +1 -1
  51. package/calendar/utils/navigation.js +29 -29
  52. package/calendar/utils/navigation.js.map +1 -1
  53. package/date-picker/index.d.ts.map +1 -1
  54. package/date-picker/index.js +2 -2
  55. package/date-picker/index.js.map +1 -1
  56. package/date-range-picker/calendar/grids/grid.d.ts +2 -1
  57. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  58. package/date-range-picker/calendar/grids/grid.js +55 -7
  59. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  60. package/date-range-picker/calendar/grids/index.d.ts +2 -1
  61. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  62. package/date-range-picker/calendar/grids/index.js +20 -12
  63. package/date-range-picker/calendar/grids/index.js.map +1 -1
  64. package/date-range-picker/calendar/grids/styles.css.js +28 -27
  65. package/date-range-picker/calendar/grids/styles.scoped.css +46 -42
  66. package/date-range-picker/calendar/grids/styles.selectors.js +28 -27
  67. package/date-range-picker/calendar/index.d.ts +2 -1
  68. package/date-range-picker/calendar/index.d.ts.map +1 -1
  69. package/date-range-picker/calendar/index.js +2 -2
  70. package/date-range-picker/calendar/index.js.map +1 -1
  71. package/date-range-picker/dropdown.d.ts +2 -2
  72. package/date-range-picker/dropdown.d.ts.map +1 -1
  73. package/date-range-picker/dropdown.js +2 -2
  74. package/date-range-picker/dropdown.js.map +1 -1
  75. package/date-range-picker/index.d.ts.map +1 -1
  76. package/date-range-picker/index.js +2 -2
  77. package/date-range-picker/index.js.map +1 -1
  78. package/date-range-picker/interfaces.d.ts +9 -0
  79. package/date-range-picker/interfaces.d.ts.map +1 -1
  80. package/date-range-picker/interfaces.js.map +1 -1
  81. package/internal/base-component/styles.scoped.css +12 -10
  82. package/internal/components/option/interfaces.d.ts +2 -0
  83. package/internal/components/option/interfaces.d.ts.map +1 -1
  84. package/internal/components/option/interfaces.js.map +1 -1
  85. package/internal/components/selectable-item/index.d.ts +1 -0
  86. package/internal/components/selectable-item/index.d.ts.map +1 -1
  87. package/internal/components/selectable-item/index.js +3 -0
  88. package/internal/components/selectable-item/index.js.map +1 -1
  89. package/internal/components/tooltip/index.d.ts +5 -2
  90. package/internal/components/tooltip/index.d.ts.map +1 -1
  91. package/internal/components/tooltip/index.js +6 -3
  92. package/internal/components/tooltip/index.js.map +1 -1
  93. package/internal/environment.js +1 -1
  94. package/internal/environment.json +1 -1
  95. package/internal/generated/styles/tokens.d.ts +2 -0
  96. package/internal/generated/styles/tokens.js +4 -2
  97. package/internal/generated/theming/index.cjs +78 -12
  98. package/internal/generated/theming/index.cjs.d.ts +16 -0
  99. package/internal/generated/theming/index.d.ts +16 -0
  100. package/internal/generated/theming/index.js +78 -12
  101. package/{button-dropdown/utils/use-hidden-description.d.ts → internal/hooks/use-hidden-description/index.d.ts} +2 -1
  102. package/internal/hooks/use-hidden-description/index.d.ts.map +1 -0
  103. package/{button-dropdown/utils/use-hidden-description.js → internal/hooks/use-hidden-description/index.js} +3 -2
  104. package/internal/hooks/use-hidden-description/index.js.map +1 -0
  105. package/internal/manifest.json +1 -1
  106. package/package.json +1 -1
  107. package/segmented-control/interfaces.d.ts +2 -0
  108. package/segmented-control/interfaces.d.ts.map +1 -1
  109. package/segmented-control/interfaces.js.map +1 -1
  110. package/segmented-control/internal-segmented-control.d.ts.map +1 -1
  111. package/segmented-control/internal-segmented-control.js +11 -8
  112. package/segmented-control/internal-segmented-control.js.map +1 -1
  113. package/segmented-control/segment.d.ts.map +1 -1
  114. package/segmented-control/segment.js +14 -4
  115. package/segmented-control/segment.js.map +1 -1
  116. package/segmented-control/styles.css.js +15 -14
  117. package/segmented-control/styles.scoped.css +37 -33
  118. package/segmented-control/styles.selectors.js +15 -14
  119. package/select/interfaces.d.ts +1 -0
  120. package/select/interfaces.d.ts.map +1 -1
  121. package/select/interfaces.js.map +1 -1
  122. package/select/parts/filter.d.ts +1 -1
  123. package/select/parts/item.d.ts.map +1 -1
  124. package/select/parts/item.js +13 -3
  125. package/select/parts/item.js.map +1 -1
  126. package/select/parts/multiselect-item.d.ts.map +1 -1
  127. package/select/parts/multiselect-item.js +15 -3
  128. package/select/parts/multiselect-item.js.map +1 -1
  129. package/select/parts/styles.css.js +17 -16
  130. package/select/parts/styles.scoped.css +21 -17
  131. package/select/parts/styles.selectors.js +17 -16
  132. package/split-panel/icons/styles.css.js +22 -22
  133. package/split-panel/icons/styles.scoped.css +25 -25
  134. package/split-panel/icons/styles.selectors.js +22 -22
  135. package/table/body-cell/disabled-inline-editor.js +1 -1
  136. package/table/body-cell/disabled-inline-editor.js.map +1 -1
  137. package/tabs/interfaces.d.ts +5 -0
  138. package/tabs/interfaces.d.ts.map +1 -1
  139. package/tabs/interfaces.js.map +1 -1
  140. package/tabs/styles.css.js +28 -25
  141. package/tabs/styles.scoped.css +60 -49
  142. package/tabs/styles.selectors.js +28 -25
  143. package/tabs/tab-header-bar.d.ts.map +1 -1
  144. package/tabs/tab-header-bar.js +38 -14
  145. package/tabs/tab-header-bar.js.map +1 -1
  146. package/test-utils/dom/button/index.d.ts +1 -0
  147. package/test-utils/dom/button/index.js +6 -2
  148. package/test-utils/dom/button/index.js.map +1 -1
  149. package/test-utils/dom/button-dropdown/index.d.ts +2 -1
  150. package/test-utils/dom/button-dropdown/index.js +5 -1
  151. package/test-utils/dom/button-dropdown/index.js.map +1 -1
  152. package/test-utils/dom/calendar/index.d.ts +4 -1
  153. package/test-utils/dom/calendar/index.js +8 -1
  154. package/test-utils/dom/calendar/index.js.map +1 -1
  155. package/test-utils/dom/date-range-picker/index.d.ts +4 -1
  156. package/test-utils/dom/date-range-picker/index.js +8 -2
  157. package/test-utils/dom/date-range-picker/index.js.map +1 -1
  158. package/test-utils/dom/internal/dropdown-host.js.map +1 -1
  159. package/test-utils/dom/internal/option.d.ts +1 -0
  160. package/test-utils/dom/internal/option.js +4 -0
  161. package/test-utils/dom/internal/option.js.map +1 -1
  162. package/test-utils/dom/segmented-control/index.d.ts +9 -0
  163. package/test-utils/dom/segmented-control/index.js +15 -0
  164. package/test-utils/dom/segmented-control/index.js.map +1 -1
  165. package/test-utils/dom/tabs/index.d.ts +9 -2
  166. package/test-utils/dom/tabs/index.js +15 -2
  167. package/test-utils/dom/tabs/index.js.map +1 -1
  168. package/test-utils/selectors/button/index.d.ts +1 -0
  169. package/test-utils/selectors/button/index.js +6 -2
  170. package/test-utils/selectors/button/index.js.map +1 -1
  171. package/test-utils/selectors/button-dropdown/index.d.ts +2 -1
  172. package/test-utils/selectors/button-dropdown/index.js +5 -1
  173. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  174. package/test-utils/selectors/calendar/index.d.ts +4 -1
  175. package/test-utils/selectors/calendar/index.js +8 -1
  176. package/test-utils/selectors/calendar/index.js.map +1 -1
  177. package/test-utils/selectors/date-range-picker/index.d.ts +4 -1
  178. package/test-utils/selectors/date-range-picker/index.js +8 -2
  179. package/test-utils/selectors/date-range-picker/index.js.map +1 -1
  180. package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  181. package/test-utils/selectors/internal/option.d.ts +1 -0
  182. package/test-utils/selectors/internal/option.js +4 -0
  183. package/test-utils/selectors/internal/option.js.map +1 -1
  184. package/test-utils/selectors/segmented-control/index.d.ts +9 -0
  185. package/test-utils/selectors/segmented-control/index.js +15 -0
  186. package/test-utils/selectors/segmented-control/index.js.map +1 -1
  187. package/test-utils/selectors/tabs/index.d.ts +9 -2
  188. package/test-utils/selectors/tabs/index.js +15 -2
  189. package/test-utils/selectors/tabs/index.js.map +1 -1
  190. package/test-utils/tsconfig.tsbuildinfo +1 -1
  191. package/button-dropdown/utils/use-hidden-description.d.ts.map +0 -1
  192. package/button-dropdown/utils/use-hidden-description.js.map +0 -1
@@ -94,16 +94,16 @@ 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_placeholder_dwuol_k04db_97:not(#\9) {
97
+ .awsui_placeholder_dwuol_1bifm_97:not(#\9) {
98
98
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
99
99
  font-style: italic;
100
100
  }
101
101
 
102
- .awsui_item_dwuol_k04db_102:not(#\9) {
102
+ .awsui_item_dwuol_1bifm_102:not(#\9) {
103
103
  display: flex;
104
104
  align-items: center;
105
105
  }
106
- .awsui_item_dwuol_k04db_102 > .awsui_checkbox_dwuol_k04db_106:not(#\9) {
106
+ .awsui_item_dwuol_1bifm_102 > .awsui_checkbox_dwuol_1bifm_106:not(#\9) {
107
107
  position: relative;
108
108
  min-block-size: var(--size-control-28i7hr, 16px);
109
109
  min-inline-size: var(--size-control-28i7hr, 16px);
@@ -112,43 +112,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
112
112
  margin-inline-end: var(--space-field-horizontal-gg19kw, 12px);
113
113
  }
114
114
 
115
- .awsui_filter_dwuol_k04db_115:not(#\9) {
115
+ .awsui_filter_dwuol_1bifm_115:not(#\9) {
116
116
  z-index: 4;
117
117
  flex-shrink: 0;
118
118
  }
119
119
 
120
- .awsui_trigger_dwuol_k04db_120:not(#\9) {
120
+ .awsui_trigger_dwuol_1bifm_120:not(#\9) {
121
121
  white-space: nowrap;
122
122
  overflow: hidden;
123
123
  text-overflow: ellipsis;
124
124
  }
125
125
 
126
- .awsui_layout-strut_dwuol_k04db_126:not(#\9) {
126
+ .awsui_layout-strut_dwuol_1bifm_126:not(#\9) {
127
127
  inline-size: 100%;
128
128
  position: relative;
129
129
  transform: translate3d(0, 0, 0);
130
130
  }
131
131
 
132
- .awsui_list-bottom_dwuol_k04db_132:not(#\9) {
132
+ .awsui_list-bottom_dwuol_1bifm_132:not(#\9) {
133
133
  /* used in unit-tests */
134
134
  }
135
135
 
136
- .awsui_selected-icon_dwuol_k04db_136:not(#\9) {
136
+ .awsui_selected-icon_dwuol_1bifm_136:not(#\9) {
137
137
  color: var(--color-border-item-focused-b2ntyl, #0972d3);
138
138
  }
139
139
 
140
- .awsui_show-label-tag_dwuol_k04db_140 > .awsui_selected-icon_dwuol_k04db_136:not(#\9) {
140
+ .awsui_show-label-tag_dwuol_1bifm_140 > .awsui_selected-icon_dwuol_1bifm_136:not(#\9) {
141
141
  padding-inline-start: var(--space-scaled-s-aqzyko, 12px);
142
142
  }
143
143
 
144
- .awsui_inline-token-trigger_dwuol_k04db_144:not(#\9) {
144
+ .awsui_inline-token-trigger_dwuol_1bifm_144:not(#\9) {
145
145
  display: flex;
146
146
  flex-wrap: nowrap;
147
147
  column-gap: var(--space-xxs-p8yyaw, 4px);
148
148
  inline-size: 100%;
149
149
  }
150
150
 
151
- .awsui_inline-token-list_dwuol_k04db_151:not(#\9) {
151
+ .awsui_inline-token-list_dwuol_1bifm_151:not(#\9) {
152
152
  display: flex;
153
153
  flex-wrap: nowrap;
154
154
  align-items: center;
@@ -159,11 +159,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
159
  mask-image: linear-gradient(270deg, transparent, white 20px, white);
160
160
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
161
161
  }
162
- .awsui_inline-token-list_dwuol_k04db_151:not(#\9):dir(rtl) {
162
+ .awsui_inline-token-list_dwuol_1bifm_151:not(#\9):dir(rtl) {
163
163
  -webkit-mask-image: linear-gradient(-270deg, transparent, white 20px, white);
164
164
  mask-image: linear-gradient(-270deg, transparent, white 20px, white);
165
165
  }
166
- .awsui_inline-token-list_dwuol_k04db_151 > .awsui_inline-token_dwuol_k04db_144:not(#\9) {
166
+ .awsui_inline-token-list_dwuol_1bifm_151 > .awsui_inline-token_dwuol_1bifm_144:not(#\9) {
167
167
  display: flex;
168
168
  align-items: center;
169
169
  min-inline-size: max-content;
@@ -180,25 +180,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
180
180
  color: var(--color-text-body-default-at06ol, #000716);
181
181
  }
182
182
 
183
- .awsui_visual-refresh_dwuol_k04db_181 > .awsui_inline-token-list_dwuol_k04db_151 > .awsui_inline-token_dwuol_k04db_144:not(#\9) {
183
+ .awsui_visual-refresh_dwuol_1bifm_181 > .awsui_inline-token-list_dwuol_1bifm_151 > .awsui_inline-token_dwuol_1bifm_144:not(#\9) {
184
184
  border-start-start-radius: var(--border-radius-badge-0z09dt, 4px);
185
185
  border-start-end-radius: var(--border-radius-badge-0z09dt, 4px);
186
186
  border-end-start-radius: var(--border-radius-badge-0z09dt, 4px);
187
187
  border-end-end-radius: var(--border-radius-badge-0z09dt, 4px);
188
188
  }
189
189
 
190
- .awsui_inline-token-hidden-placeholder_dwuol_k04db_188:not(#\9) {
190
+ .awsui_inline-token-hidden-placeholder_dwuol_1bifm_188:not(#\9) {
191
191
  position: absolute !important;
192
192
  inset-block-start: -9999px !important;
193
193
  inset-inline-start: -9999px !important;
194
194
  }
195
195
 
196
- .awsui_inline-token-counter_dwuol_k04db_194:not(#\9) {
196
+ .awsui_inline-token-counter_dwuol_1bifm_194:not(#\9) {
197
197
  white-space: nowrap;
198
198
  }
199
199
 
200
- .awsui_inline-token-trigger--disabled_dwuol_k04db_198 > .awsui_inline-token-list_dwuol_k04db_151 > .awsui_inline-token_dwuol_k04db_144:not(#\9) {
200
+ .awsui_inline-token-trigger--disabled_dwuol_1bifm_198 > .awsui_inline-token-list_dwuol_1bifm_151 > .awsui_inline-token_dwuol_1bifm_144:not(#\9) {
201
201
  border-color: var(--color-border-control-disabled-bv2kkn, #d1d5db);
202
202
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
203
203
  color: var(--color-text-disabled-f4c52h, #9ba7b6);
204
+ }
205
+
206
+ .awsui_disabled-reason-tooltip_dwuol_1bifm_204:not(#\9) {
207
+ /* used in test-utils or tests */
204
208
  }
@@ -2,21 +2,22 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "placeholder": "awsui_placeholder_dwuol_k04db_97",
6
- "item": "awsui_item_dwuol_k04db_102",
7
- "checkbox": "awsui_checkbox_dwuol_k04db_106",
8
- "filter": "awsui_filter_dwuol_k04db_115",
9
- "trigger": "awsui_trigger_dwuol_k04db_120",
10
- "layout-strut": "awsui_layout-strut_dwuol_k04db_126",
11
- "list-bottom": "awsui_list-bottom_dwuol_k04db_132",
12
- "selected-icon": "awsui_selected-icon_dwuol_k04db_136",
13
- "show-label-tag": "awsui_show-label-tag_dwuol_k04db_140",
14
- "inline-token-trigger": "awsui_inline-token-trigger_dwuol_k04db_144",
15
- "inline-token-list": "awsui_inline-token-list_dwuol_k04db_151",
16
- "inline-token": "awsui_inline-token_dwuol_k04db_144",
17
- "visual-refresh": "awsui_visual-refresh_dwuol_k04db_181",
18
- "inline-token-hidden-placeholder": "awsui_inline-token-hidden-placeholder_dwuol_k04db_188",
19
- "inline-token-counter": "awsui_inline-token-counter_dwuol_k04db_194",
20
- "inline-token-trigger--disabled": "awsui_inline-token-trigger--disabled_dwuol_k04db_198"
5
+ "placeholder": "awsui_placeholder_dwuol_1bifm_97",
6
+ "item": "awsui_item_dwuol_1bifm_102",
7
+ "checkbox": "awsui_checkbox_dwuol_1bifm_106",
8
+ "filter": "awsui_filter_dwuol_1bifm_115",
9
+ "trigger": "awsui_trigger_dwuol_1bifm_120",
10
+ "layout-strut": "awsui_layout-strut_dwuol_1bifm_126",
11
+ "list-bottom": "awsui_list-bottom_dwuol_1bifm_132",
12
+ "selected-icon": "awsui_selected-icon_dwuol_1bifm_136",
13
+ "show-label-tag": "awsui_show-label-tag_dwuol_1bifm_140",
14
+ "inline-token-trigger": "awsui_inline-token-trigger_dwuol_1bifm_144",
15
+ "inline-token-list": "awsui_inline-token-list_dwuol_1bifm_151",
16
+ "inline-token": "awsui_inline-token_dwuol_1bifm_144",
17
+ "visual-refresh": "awsui_visual-refresh_dwuol_1bifm_181",
18
+ "inline-token-hidden-placeholder": "awsui_inline-token-hidden-placeholder_dwuol_1bifm_188",
19
+ "inline-token-counter": "awsui_inline-token-counter_dwuol_1bifm_194",
20
+ "inline-token-trigger--disabled": "awsui_inline-token-trigger--disabled_dwuol_1bifm_198",
21
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_dwuol_1bifm_204"
21
22
  };
22
23
 
@@ -1,27 +1,27 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "preference-icon--svg": "awsui_preference-icon--svg_d4xxm_d02xf_97",
5
- "preference-icon--layout-border": "awsui_preference-icon--layout-border_d4xxm_d02xf_103",
6
- "preference-icon--layout-background": "awsui_preference-icon--layout-background_d4xxm_d02xf_107",
7
- "preference-icon--layout-header": "awsui_preference-icon--layout-header_d4xxm_d02xf_110",
8
- "preference-icon--border": "awsui_preference-icon--border_d4xxm_d02xf_113",
9
- "preference-icon--primary-button": "awsui_preference-icon--primary-button_d4xxm_d02xf_117",
10
- "preference-icon--secondary": "awsui_preference-icon--secondary_d4xxm_d02xf_120",
11
- "preference-icon--disabled-element": "awsui_preference-icon--disabled-element_d4xxm_d02xf_123",
12
- "preference-icon--separator": "awsui_preference-icon--separator_d4xxm_d02xf_126",
13
- "preference-icon--focus-text": "awsui_preference-icon--focus-text_d4xxm_d02xf_129",
14
- "preference-icon-refresh--svg": "awsui_preference-icon-refresh--svg_d4xxm_d02xf_133",
15
- "preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-top_d4xxm_d02xf_139",
16
- "preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-main_d4xxm_d02xf_142",
17
- "preference-icon-refresh--primary": "awsui_preference-icon-refresh--primary_d4xxm_d02xf_145",
18
- "preference-icon-refresh--disabled": "awsui_preference-icon-refresh--disabled_d4xxm_d02xf_148",
19
- "preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-header_d4xxm_d02xf_151",
20
- "preference-icon-refresh--window": "awsui_preference-icon-refresh--window_d4xxm_d02xf_154",
21
- "preference-icon-refresh--secondary": "awsui_preference-icon-refresh--secondary_d4xxm_d02xf_158",
22
- "preference-icon-refresh--default": "awsui_preference-icon-refresh--default_d4xxm_d02xf_161",
23
- "preference-icon-refresh--separator": "awsui_preference-icon-refresh--separator_d4xxm_d02xf_164",
24
- "preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-default_d4xxm_d02xf_167",
25
- "preference-icon-refresh--heading": "awsui_preference-icon-refresh--heading_d4xxm_d02xf_170"
4
+ "preference-icon--svg": "awsui_preference-icon--svg_d4xxm_1022u_97",
5
+ "preference-icon--layout-border": "awsui_preference-icon--layout-border_d4xxm_1022u_103",
6
+ "preference-icon--layout-background": "awsui_preference-icon--layout-background_d4xxm_1022u_107",
7
+ "preference-icon--layout-header": "awsui_preference-icon--layout-header_d4xxm_1022u_110",
8
+ "preference-icon--border": "awsui_preference-icon--border_d4xxm_1022u_113",
9
+ "preference-icon--primary-button": "awsui_preference-icon--primary-button_d4xxm_1022u_117",
10
+ "preference-icon--secondary": "awsui_preference-icon--secondary_d4xxm_1022u_120",
11
+ "preference-icon--disabled-element": "awsui_preference-icon--disabled-element_d4xxm_1022u_123",
12
+ "preference-icon--separator": "awsui_preference-icon--separator_d4xxm_1022u_126",
13
+ "preference-icon--focus-text": "awsui_preference-icon--focus-text_d4xxm_1022u_129",
14
+ "preference-icon-refresh--svg": "awsui_preference-icon-refresh--svg_d4xxm_1022u_133",
15
+ "preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-top_d4xxm_1022u_139",
16
+ "preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-main_d4xxm_1022u_142",
17
+ "preference-icon-refresh--primary": "awsui_preference-icon-refresh--primary_d4xxm_1022u_145",
18
+ "preference-icon-refresh--disabled": "awsui_preference-icon-refresh--disabled_d4xxm_1022u_148",
19
+ "preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-header_d4xxm_1022u_151",
20
+ "preference-icon-refresh--window": "awsui_preference-icon-refresh--window_d4xxm_1022u_154",
21
+ "preference-icon-refresh--secondary": "awsui_preference-icon-refresh--secondary_d4xxm_1022u_158",
22
+ "preference-icon-refresh--default": "awsui_preference-icon-refresh--default_d4xxm_1022u_161",
23
+ "preference-icon-refresh--separator": "awsui_preference-icon-refresh--separator_d4xxm_1022u_164",
24
+ "preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-default_d4xxm_1022u_167",
25
+ "preference-icon-refresh--heading": "awsui_preference-icon-refresh--heading_d4xxm_1022u_170"
26
26
  };
27
27
 
@@ -94,79 +94,79 @@ 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_preference-icon--svg_d4xxm_d02xf_97:not(#\9) {
97
+ .awsui_preference-icon--svg_d4xxm_1022u_97:not(#\9) {
98
98
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
99
99
  }
100
- .awsui_preference-icon--svg_d4xxm_d02xf_97:not(#\9):dir(rtl) {
100
+ .awsui_preference-icon--svg_d4xxm_1022u_97:not(#\9):dir(rtl) {
101
101
  transform: scaleX(-1);
102
102
  }
103
- .awsui_preference-icon--layout-border_d4xxm_d02xf_103:not(#\9) {
103
+ .awsui_preference-icon--layout-border_d4xxm_1022u_103:not(#\9) {
104
104
  stroke: var(--color-background-home-header-2rudu7, #000716);
105
105
  fill: var(--color-background-container-content-4un1ap, #ffffff);
106
106
  }
107
- .awsui_preference-icon--layout-background_d4xxm_d02xf_107:not(#\9) {
107
+ .awsui_preference-icon--layout-background_d4xxm_1022u_107:not(#\9) {
108
108
  fill: var(--color-background-layout-main-nx09lr, #ffffff);
109
109
  }
110
- .awsui_preference-icon--layout-header_d4xxm_d02xf_110:not(#\9) {
110
+ .awsui_preference-icon--layout-header_d4xxm_1022u_110:not(#\9) {
111
111
  fill: var(--color-background-home-header-2rudu7, #000716);
112
112
  }
113
- .awsui_preference-icon--border_d4xxm_d02xf_113:not(#\9) {
113
+ .awsui_preference-icon--border_d4xxm_1022u_113:not(#\9) {
114
114
  stroke: var(--color-text-group-label-jpw8sm, #414d5c);
115
115
  fill: var(--color-background-container-content-4un1ap, #ffffff);
116
116
  }
117
- .awsui_preference-icon--primary-button_d4xxm_d02xf_117:not(#\9) {
117
+ .awsui_preference-icon--primary-button_d4xxm_1022u_117:not(#\9) {
118
118
  fill: var(--color-background-button-primary-default-jrg2xu, #0972d3);
119
119
  }
120
- .awsui_preference-icon--secondary_d4xxm_d02xf_120:not(#\9) {
120
+ .awsui_preference-icon--secondary_d4xxm_1022u_120:not(#\9) {
121
121
  fill: var(--color-text-group-label-jpw8sm, #414d5c);
122
122
  }
123
- .awsui_preference-icon--disabled-element_d4xxm_d02xf_123:not(#\9) {
123
+ .awsui_preference-icon--disabled-element_d4xxm_1022u_123:not(#\9) {
124
124
  fill: var(--color-background-control-disabled-pwkvgd, #d1d5db);
125
125
  }
126
- .awsui_preference-icon--separator_d4xxm_d02xf_126:not(#\9) {
126
+ .awsui_preference-icon--separator_d4xxm_1022u_126:not(#\9) {
127
127
  stroke: var(--color-background-control-disabled-pwkvgd, #d1d5db);
128
128
  }
129
- .awsui_preference-icon--focus-text_d4xxm_d02xf_129:not(#\9) {
129
+ .awsui_preference-icon--focus-text_d4xxm_1022u_129:not(#\9) {
130
130
  fill: var(--color-text-interactive-default-lnx6lk, #414d5c);
131
131
  }
132
132
 
133
- .awsui_preference-icon-refresh--svg_d4xxm_d02xf_133:not(#\9) {
133
+ .awsui_preference-icon-refresh--svg_d4xxm_1022u_133:not(#\9) {
134
134
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
135
135
  }
136
- .awsui_preference-icon-refresh--svg_d4xxm_d02xf_133:not(#\9):dir(rtl) {
136
+ .awsui_preference-icon-refresh--svg_d4xxm_1022u_133:not(#\9):dir(rtl) {
137
137
  transform: scaleX(-1);
138
138
  }
139
- .awsui_preference-icon-refresh--layout-top_d4xxm_d02xf_139:not(#\9) {
140
- fill: var(--color-background-button-primary-disabled-31l9pn, #e9ebed);
139
+ .awsui_preference-icon-refresh--layout-top_d4xxm_1022u_139:not(#\9) {
140
+ fill: var(--color-background-button-primary-disabled-yblour, #e9ebed);
141
141
  }
142
- .awsui_preference-icon-refresh--layout-main_d4xxm_d02xf_142:not(#\9) {
142
+ .awsui_preference-icon-refresh--layout-main_d4xxm_1022u_142:not(#\9) {
143
143
  fill: var(--color-background-layout-main-nx09lr, #ffffff);
144
144
  }
145
- .awsui_preference-icon-refresh--primary_d4xxm_d02xf_145:not(#\9) {
145
+ .awsui_preference-icon-refresh--primary_d4xxm_1022u_145:not(#\9) {
146
146
  fill: var(--color-background-button-primary-default-jrg2xu, #0972d3);
147
147
  }
148
- .awsui_preference-icon-refresh--disabled_d4xxm_d02xf_148:not(#\9) {
148
+ .awsui_preference-icon-refresh--disabled_d4xxm_1022u_148:not(#\9) {
149
149
  fill: var(--color-background-control-disabled-pwkvgd, #d1d5db);
150
150
  }
151
- .awsui_preference-icon-refresh--column-header_d4xxm_d02xf_151:not(#\9) {
151
+ .awsui_preference-icon-refresh--column-header_d4xxm_1022u_151:not(#\9) {
152
152
  fill: var(--color-text-input-disabled-f8pjm5, #9ba7b6);
153
153
  }
154
- .awsui_preference-icon-refresh--window_d4xxm_d02xf_154:not(#\9) {
154
+ .awsui_preference-icon-refresh--window_d4xxm_1022u_154:not(#\9) {
155
155
  stroke: var(--color-background-home-header-2rudu7, #000716);
156
156
  fill: var(--color-background-container-content-4un1ap, #ffffff);
157
157
  }
158
- .awsui_preference-icon-refresh--secondary_d4xxm_d02xf_158:not(#\9) {
158
+ .awsui_preference-icon-refresh--secondary_d4xxm_1022u_158:not(#\9) {
159
159
  fill: var(--color-text-body-secondary-w9jvno, #414d5c);
160
160
  }
161
- .awsui_preference-icon-refresh--default_d4xxm_d02xf_161:not(#\9) {
161
+ .awsui_preference-icon-refresh--default_d4xxm_1022u_161:not(#\9) {
162
162
  fill: var(--color-text-body-default-at06ol, #000716);
163
163
  }
164
- .awsui_preference-icon-refresh--separator_d4xxm_d02xf_164:not(#\9) {
164
+ .awsui_preference-icon-refresh--separator_d4xxm_1022u_164:not(#\9) {
165
165
  stroke: var(--color-border-divider-default-j74lyz, #b6bec9);
166
166
  }
167
- .awsui_preference-icon-refresh--input-default_d4xxm_d02xf_167:not(#\9) {
167
+ .awsui_preference-icon-refresh--input-default_d4xxm_1022u_167:not(#\9) {
168
168
  fill: var(--color-border-input-default-1zl7hq, #7d8998);
169
169
  }
170
- .awsui_preference-icon-refresh--heading_d4xxm_d02xf_170:not(#\9) {
170
+ .awsui_preference-icon-refresh--heading_d4xxm_1022u_170:not(#\9) {
171
171
  fill: var(--color-text-heading-default-lstrpn, #000716);
172
172
  }
@@ -2,27 +2,27 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "preference-icon--svg": "awsui_preference-icon--svg_d4xxm_d02xf_97",
6
- "preference-icon--layout-border": "awsui_preference-icon--layout-border_d4xxm_d02xf_103",
7
- "preference-icon--layout-background": "awsui_preference-icon--layout-background_d4xxm_d02xf_107",
8
- "preference-icon--layout-header": "awsui_preference-icon--layout-header_d4xxm_d02xf_110",
9
- "preference-icon--border": "awsui_preference-icon--border_d4xxm_d02xf_113",
10
- "preference-icon--primary-button": "awsui_preference-icon--primary-button_d4xxm_d02xf_117",
11
- "preference-icon--secondary": "awsui_preference-icon--secondary_d4xxm_d02xf_120",
12
- "preference-icon--disabled-element": "awsui_preference-icon--disabled-element_d4xxm_d02xf_123",
13
- "preference-icon--separator": "awsui_preference-icon--separator_d4xxm_d02xf_126",
14
- "preference-icon--focus-text": "awsui_preference-icon--focus-text_d4xxm_d02xf_129",
15
- "preference-icon-refresh--svg": "awsui_preference-icon-refresh--svg_d4xxm_d02xf_133",
16
- "preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-top_d4xxm_d02xf_139",
17
- "preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-main_d4xxm_d02xf_142",
18
- "preference-icon-refresh--primary": "awsui_preference-icon-refresh--primary_d4xxm_d02xf_145",
19
- "preference-icon-refresh--disabled": "awsui_preference-icon-refresh--disabled_d4xxm_d02xf_148",
20
- "preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-header_d4xxm_d02xf_151",
21
- "preference-icon-refresh--window": "awsui_preference-icon-refresh--window_d4xxm_d02xf_154",
22
- "preference-icon-refresh--secondary": "awsui_preference-icon-refresh--secondary_d4xxm_d02xf_158",
23
- "preference-icon-refresh--default": "awsui_preference-icon-refresh--default_d4xxm_d02xf_161",
24
- "preference-icon-refresh--separator": "awsui_preference-icon-refresh--separator_d4xxm_d02xf_164",
25
- "preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-default_d4xxm_d02xf_167",
26
- "preference-icon-refresh--heading": "awsui_preference-icon-refresh--heading_d4xxm_d02xf_170"
5
+ "preference-icon--svg": "awsui_preference-icon--svg_d4xxm_1022u_97",
6
+ "preference-icon--layout-border": "awsui_preference-icon--layout-border_d4xxm_1022u_103",
7
+ "preference-icon--layout-background": "awsui_preference-icon--layout-background_d4xxm_1022u_107",
8
+ "preference-icon--layout-header": "awsui_preference-icon--layout-header_d4xxm_1022u_110",
9
+ "preference-icon--border": "awsui_preference-icon--border_d4xxm_1022u_113",
10
+ "preference-icon--primary-button": "awsui_preference-icon--primary-button_d4xxm_1022u_117",
11
+ "preference-icon--secondary": "awsui_preference-icon--secondary_d4xxm_1022u_120",
12
+ "preference-icon--disabled-element": "awsui_preference-icon--disabled-element_d4xxm_1022u_123",
13
+ "preference-icon--separator": "awsui_preference-icon--separator_d4xxm_1022u_126",
14
+ "preference-icon--focus-text": "awsui_preference-icon--focus-text_d4xxm_1022u_129",
15
+ "preference-icon-refresh--svg": "awsui_preference-icon-refresh--svg_d4xxm_1022u_133",
16
+ "preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-top_d4xxm_1022u_139",
17
+ "preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-main_d4xxm_1022u_142",
18
+ "preference-icon-refresh--primary": "awsui_preference-icon-refresh--primary_d4xxm_1022u_145",
19
+ "preference-icon-refresh--disabled": "awsui_preference-icon-refresh--disabled_d4xxm_1022u_148",
20
+ "preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-header_d4xxm_1022u_151",
21
+ "preference-icon-refresh--window": "awsui_preference-icon-refresh--window_d4xxm_1022u_154",
22
+ "preference-icon-refresh--secondary": "awsui_preference-icon-refresh--secondary_d4xxm_1022u_158",
23
+ "preference-icon-refresh--default": "awsui_preference-icon-refresh--default_d4xxm_1022u_161",
24
+ "preference-icon-refresh--separator": "awsui_preference-icon-refresh--separator_d4xxm_1022u_164",
25
+ "preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-default_d4xxm_1022u_167",
26
+ "preference-icon-refresh--heading": "awsui_preference-icon-refresh--heading_d4xxm_1022u_170"
27
27
  };
28
28
 
@@ -3,7 +3,7 @@ import { __rest } from "tslib";
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  import React, { useRef, useState } from 'react';
5
5
  import clsx from 'clsx';
6
- import useHiddenDescription from '../../button-dropdown/utils/use-hidden-description';
6
+ import useHiddenDescription from '../../internal/hooks/use-hidden-description';
7
7
  import Icon from '../../icon/internal';
8
8
  import PopoverContainer from '../../popover/container';
9
9
  import PopoverBody from '../../popover/body';
@@ -1 +1 @@
1
- {"version":3,"file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,IAAI;wBAEZ,oBAAC,WAAW,IACV,aAAa,EAAE,KAAK,EACpB,gBAAgB,EAAE,SAAS,EAC3B,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC,EACnB,eAAe,EAAC,MAAM;4BAEtB,2CAAgB,QAAQ,IAAE,kBAAkB,CAAQ,CACxC,CACG,CACd,CACA,CACJ,CACR,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport useHiddenDescription from '../../button-dropdown/utils/use-hidden-description';\nimport Icon from '../../icon/internal';\nimport PopoverContainer from '../../popover/container';\nimport PopoverBody from '../../popover/body';\nimport Portal from '../../internal/components/portal';\nimport { usePortalModeClasses } from '../../internal/hooks/use-portal-mode-classes';\nimport Arrow from '../../popover/arrow';\nimport { useClickAway } from './click-away';\nimport { TableTdElement, TableTdElementProps } from './td-element';\nimport { TableBodyCellProps } from './index';\nimport styles from './styles.css.js';\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\n\ninterface DisabledInlineEditorProps<ItemType> extends TableBodyCellProps<ItemType> {\n editDisabledReason: string;\n}\n\nexport function DisabledInlineEditor<ItemType>({\n className,\n item,\n column,\n ariaLabels,\n isEditing,\n onEditStart,\n onEditEnd,\n editDisabledReason,\n isVisualRefresh,\n interactiveCell = true,\n resizableColumns = false,\n ...rest\n}: DisabledInlineEditorProps<ItemType>) {\n const clickAwayRef = useClickAway(() => {\n if (isEditing) {\n onEditEnd(true);\n }\n });\n\n const [hasHover, setHasHover] = useState(false);\n const [hasFocus, setHasFocus] = useState(false);\n // When a cell is both expandable and editable the icon is always shown.\n const showIcon = hasHover || hasFocus || isEditing || !interactiveCell;\n\n const iconRef = useRef(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n const portalRef = useRef<HTMLSpanElement>(null);\n\n function handleEscape(event: React.KeyboardEvent): void {\n if (event.key === 'Escape') {\n onEditEnd(true);\n }\n }\n\n const onClick = () => {\n onEditStart();\n buttonRef.current?.focus();\n };\n\n const { targetProps, descriptionEl } = useHiddenDescription(editDisabledReason);\n const portalClasses = usePortalModeClasses(portalRef);\n\n const { tabIndex } = useSingleTabStopNavigation(buttonRef);\n\n return (\n <TableTdElement\n {...rest}\n nativeAttributes={\n { 'data-inline-editing-active': isEditing.toString() } as TableTdElementProps['nativeAttributes']\n }\n className={clsx(\n className,\n styles['body-cell-editable'],\n interactiveCell && styles['body-cell-interactive'],\n resizableColumns && styles['resizable-columns'],\n isEditing && styles['body-cell-edit-disabled-popover'],\n isVisualRefresh && styles['is-visual-refresh']\n )}\n onClick={interactiveCell && !isEditing ? onClick : undefined}\n onMouseEnter={() => setHasHover(true)}\n onMouseLeave={() => setHasHover(false)}\n ref={clickAwayRef}\n >\n {column.cell(item)}\n\n <div className={styles['body-cell-editor-wrapper']}>\n <button\n ref={buttonRef}\n tabIndex={tabIndex}\n className={clsx(styles['body-cell-editor'], styles['body-cell-editor-disabled'])}\n aria-label={ariaLabels?.activateEditLabel?.(column, item)}\n aria-haspopup=\"dialog\"\n aria-disabled=\"true\"\n onClick={!interactiveCell && !isEditing ? onClick : undefined}\n onFocus={() => setHasFocus(true)}\n onBlur={() => setHasFocus(false)}\n onKeyDown={handleEscape}\n {...targetProps}\n >\n {showIcon && <Icon name=\"lock-private\" variant=\"normal\" __internalRootRef={iconRef} />}\n {descriptionEl}\n </button>\n </div>\n\n {isEditing && (\n <span ref={portalRef}>\n <Portal>\n <span className={portalClasses}>\n <PopoverContainer\n size=\"medium\"\n fixedWidth={false}\n position=\"top\"\n trackRef={iconRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={true}\n zIndex={2000}\n >\n <PopoverBody\n dismissButton={false}\n dismissAriaLabel={undefined}\n header={null}\n onDismiss={() => {}}\n overflowVisible=\"both\"\n >\n <span aria-live=\"polite\">{editDisabledReason}</span>\n </PopoverBody>\n </PopoverContainer>\n </span>\n </Portal>\n </span>\n )}\n </TableTdElement>\n );\n}\n"]}
1
+ {"version":3,"file":"disabled-inline-editor.js","sourceRoot":"","sources":["../../../../src/table/body-cell/disabled-inline-editor.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAC/E,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,MAAM,MAAM,kCAAkC,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAuB,MAAM,cAAc,CAAC;AAEnE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAMvG,MAAM,UAAU,oBAAoB,CAAW,EAaT;;QAbS,EAC7C,SAAS,EACT,IAAI,EACJ,MAAM,EACN,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,eAAe,EACf,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,KAAK,OAEY,EADjC,IAAI,cAZsC,sKAa9C,CADQ;IAEP,MAAM,YAAY,GAAG,YAAY,CAAC,GAAG,EAAE;QACrC,IAAI,SAAS,EAAE;YACb,SAAS,CAAC,IAAI,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ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,EAAE,CAAC,oBAAC,KAAK,IAAC,QAAQ,EAAE,QAAQ,GAAI,EAChD,gBAAgB,EAAE,IAAI,EACtB,MAAM,EAAE,IAAI;wBAEZ,oBAAC,WAAW,IACV,aAAa,EAAE,KAAK,EACpB,gBAAgB,EAAE,SAAS,EAC3B,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC,EACnB,eAAe,EAAC,MAAM;4BAEtB,2CAAgB,QAAQ,IAAE,kBAAkB,CAAQ,CACxC,CACG,CACd,CACA,CACJ,CACR,CACc,CAClB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport useHiddenDescription from '../../internal/hooks/use-hidden-description';\nimport Icon from '../../icon/internal';\nimport PopoverContainer from '../../popover/container';\nimport PopoverBody from '../../popover/body';\nimport Portal from '../../internal/components/portal';\nimport { usePortalModeClasses } from '../../internal/hooks/use-portal-mode-classes';\nimport Arrow from '../../popover/arrow';\nimport { useClickAway } from './click-away';\nimport { TableTdElement, TableTdElementProps } from './td-element';\nimport { TableBodyCellProps } from './index';\nimport styles from './styles.css.js';\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\n\ninterface DisabledInlineEditorProps<ItemType> extends TableBodyCellProps<ItemType> {\n editDisabledReason: string;\n}\n\nexport function DisabledInlineEditor<ItemType>({\n className,\n item,\n column,\n ariaLabels,\n isEditing,\n onEditStart,\n onEditEnd,\n editDisabledReason,\n isVisualRefresh,\n interactiveCell = true,\n resizableColumns = false,\n ...rest\n}: DisabledInlineEditorProps<ItemType>) {\n const clickAwayRef = useClickAway(() => {\n if (isEditing) {\n onEditEnd(true);\n }\n });\n\n const [hasHover, setHasHover] = useState(false);\n const [hasFocus, setHasFocus] = useState(false);\n // When a cell is both expandable and editable the icon is always shown.\n const showIcon = hasHover || hasFocus || isEditing || !interactiveCell;\n\n const iconRef = useRef(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n const portalRef = useRef<HTMLSpanElement>(null);\n\n function handleEscape(event: React.KeyboardEvent): void {\n if (event.key === 'Escape') {\n onEditEnd(true);\n }\n }\n\n const onClick = () => {\n onEditStart();\n buttonRef.current?.focus();\n };\n\n const { targetProps, descriptionEl } = useHiddenDescription(editDisabledReason);\n const portalClasses = usePortalModeClasses(portalRef);\n\n const { tabIndex } = useSingleTabStopNavigation(buttonRef);\n\n return (\n <TableTdElement\n {...rest}\n nativeAttributes={\n { 'data-inline-editing-active': isEditing.toString() } as TableTdElementProps['nativeAttributes']\n }\n className={clsx(\n className,\n styles['body-cell-editable'],\n interactiveCell && styles['body-cell-interactive'],\n resizableColumns && styles['resizable-columns'],\n isEditing && styles['body-cell-edit-disabled-popover'],\n isVisualRefresh && styles['is-visual-refresh']\n )}\n onClick={interactiveCell && !isEditing ? onClick : undefined}\n onMouseEnter={() => setHasHover(true)}\n onMouseLeave={() => setHasHover(false)}\n ref={clickAwayRef}\n >\n {column.cell(item)}\n\n <div className={styles['body-cell-editor-wrapper']}>\n <button\n ref={buttonRef}\n tabIndex={tabIndex}\n className={clsx(styles['body-cell-editor'], styles['body-cell-editor-disabled'])}\n aria-label={ariaLabels?.activateEditLabel?.(column, item)}\n aria-haspopup=\"dialog\"\n aria-disabled=\"true\"\n onClick={!interactiveCell && !isEditing ? onClick : undefined}\n onFocus={() => setHasFocus(true)}\n onBlur={() => setHasFocus(false)}\n onKeyDown={handleEscape}\n {...targetProps}\n >\n {showIcon && <Icon name=\"lock-private\" variant=\"normal\" __internalRootRef={iconRef} />}\n {descriptionEl}\n </button>\n </div>\n\n {isEditing && (\n <span ref={portalRef}>\n <Portal>\n <span className={portalClasses}>\n <PopoverContainer\n size=\"medium\"\n fixedWidth={false}\n position=\"top\"\n trackRef={iconRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={true}\n zIndex={2000}\n >\n <PopoverBody\n dismissButton={false}\n dismissAriaLabel={undefined}\n header={null}\n onDismiss={() => {}}\n overflowVisible=\"both\"\n >\n <span aria-live=\"polite\">{editDisabledReason}</span>\n </PopoverBody>\n </PopoverContainer>\n </span>\n </Portal>\n </span>\n )}\n </TableTdElement>\n );\n}\n"]}
@@ -10,6 +10,7 @@ export interface TabsProps extends BaseComponentProps {
10
10
  * - `label` (ReactNode) - Tab label shown in the UI.
11
11
  * - `content` (ReactNode) - (Optional) Tab content to render in the container.
12
12
  * - `disabled` (boolean) - (Optional) Specifies if this tab is disabled.
13
+ * - `disabledReason` (string) - (Optional) Displays tooltip near the tab when disabled. Use to provide additional context.
13
14
  * - `dismissible` (boolean) - (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.
14
15
  * - `dismissLabel` (boolean) - (Optional) Specifies an aria-label for the dismiss icon button.
15
16
  * - `dismissDisabled` (boolean) - (Optional) Determines whether the dismiss button is disabled.
@@ -88,6 +89,10 @@ export declare namespace TabsProps {
88
89
  * Whether this tab is disabled.
89
90
  */
90
91
  disabled?: boolean;
92
+ /**
93
+ * Provides a reason why this tab is disabled.
94
+ */
95
+ disabledReason?: string;
91
96
  /**
92
97
  * (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.
93
98
  * When a user clicks on this button the onDismiss handler is called.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEnC;;;;;;OAMG;IACH,OA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CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;;;WAIG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB;;WAEG;QACH,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;QACnC;;;;;;WAMG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,WAAW;QAC1B;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B;;;WAGG;QACH,kCAAkC,CAAC,EAAE,MAAM,CAAC;KAC7C;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { ButtonProps } from '../button/interfaces';\n\nexport interface TabsProps extends BaseComponentProps {\n /**\n * Specifies the tabs to display. Each tab object has the following properties:\n *\n * - `id` (string) - The tab identifier. This value needs to be passed to the Tabs component as `activeTabId` to select this tab.\n * - `label` (ReactNode) - Tab label shown in the UI.\n * - `content` (ReactNode) - (Optional) Tab content to render in the container.\n * - `disabled` (boolean) - (Optional) Specifies if this tab is disabled.\n * - `dismissible` (boolean) - (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * - `dismissLabel` (boolean) - (Optional) Specifies an aria-label for the dismiss icon button.\n * - `dismissDisabled` (boolean) - (Optional) Determines whether the dismiss button is disabled.\n * - `action` (ReactNode) - (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n * - `onDismiss` (ButtonProps['onClick']) - (Optional) Called when a user clicks on the dismiss button.\n * - `href` (string) - (Optional) You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (that is, CTRL,\n * ALT, SHIFT, META). This enables the user to open new browser tabs with an initially selected component tab,\n * if your application routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n tabs: ReadonlyArray<TabsProps.Tab>;\n\n /**\n * The possible visual variants of tabs are the following:\n * * `default` - Use in any context.\n * * `container` - Use this variant to have the tabs displayed within a container header.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * @visualrefresh `stacked` variant\n */\n variant?: TabsProps.Variant;\n\n /**\n * Called whenever the user selects a different tab.\n * The event's `detail` contains the new `activeTabId`.\n */\n onChange?: NonCancelableEventHandler<TabsProps.ChangeDetail>;\n\n /**\n * The `id` of the currently active tab.\n * * If you don't set this property, the component activates the first tab and switches tabs automatically when a tab header is clicked (that is, uncontrolled behavior).\n * * If you explicitly set this property, you must set define an `onChange` handler to update the property when a tab header is clicked (that is, controlled behavior).\n */\n activeTabId?: string;\n\n /**\n * Provides an `aria-label` to the tab container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tab container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Determines whether the tab content has padding. If `true`, removes the default padding from the tab content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TabsProps.I18nStrings;\n /**\n * Enabling this property makes the tab content fit to the available height.\n * If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.\n */\n fitHeight?: boolean;\n}\nexport namespace TabsProps {\n export type Variant = 'default' | 'container' | 'stacked';\n\n export interface Tab {\n /**\n * The tab id. This value will be need to be passed to the Tabs component as `activeTabId` to select this tab.\n */\n id: string;\n /**\n * Tab label shown in the UI.\n */\n label: React.ReactNode;\n /**\n * Tab content to render in the container.\n */\n content?: React.ReactNode;\n /**\n * Whether this tab is disabled.\n */\n disabled?: boolean;\n /**\n * (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * When a user clicks on this button the onDismiss handler is called.\n */\n dismissible?: boolean;\n /**\n * (Optional) Specifies an aria-label for the dismiss icon button.\n */\n dismissLabel?: string;\n /**\n * (Optional) Determines whether the dismiss button is disabled.\n */\n dismissDisabled?: boolean;\n /**\n * (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n */\n action?: React.ReactNode;\n /**\n * (event => void) Called when a user clicks on the dismiss button.\n */\n onDismiss?: ButtonProps['onClick'];\n /**\n * You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (CTRL,\n * ALT, SHIFT, META). This allows to open new browser tabs with an initially selected component tab,\n * when the routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n href?: string;\n }\n\n export interface ChangeDetail {\n /**\n * The ID of the clicked tab.\n */\n activeTabId: string;\n /**\n * The `href` attribute of the clicked tab, if defined.\n */\n activeTabHref?: string;\n }\n\n export interface I18nStrings {\n /**\n * ARIA label for the scroll left button that appears when the tab header is wider than the container.\n */\n scrollLeftAriaLabel?: string;\n /**\n * ARIA label for the scroll right button that appears when the tab header is wider than the container.\n */\n scrollRightAriaLabel?: string;\n /**\n * ARIA role description for the Tabs component when an action or dismissible prop is in use. This is used\n * with role=\"application\" to provide further information on the purpose of this component\n */\n tabsWithActionsAriaRoleDescription?: string;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { ButtonProps } from '../button/interfaces';\n\nexport interface TabsProps extends BaseComponentProps {\n /**\n * Specifies the tabs to display. Each tab object has the following properties:\n *\n * - `id` (string) - The tab identifier. This value needs to be passed to the Tabs component as `activeTabId` to select this tab.\n * - `label` (ReactNode) - Tab label shown in the UI.\n * - `content` (ReactNode) - (Optional) Tab content to render in the container.\n * - `disabled` (boolean) - (Optional) Specifies if this tab is disabled.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the tab when disabled. Use to provide additional context.\n * - `dismissible` (boolean) - (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * - `dismissLabel` (boolean) - (Optional) Specifies an aria-label for the dismiss icon button.\n * - `dismissDisabled` (boolean) - (Optional) Determines whether the dismiss button is disabled.\n * - `action` (ReactNode) - (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n * - `onDismiss` (ButtonProps['onClick']) - (Optional) Called when a user clicks on the dismiss button.\n * - `href` (string) - (Optional) You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (that is, CTRL,\n * ALT, SHIFT, META). This enables the user to open new browser tabs with an initially selected component tab,\n * if your application routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n tabs: ReadonlyArray<TabsProps.Tab>;\n\n /**\n * The possible visual variants of tabs are the following:\n * * `default` - Use in any context.\n * * `container` - Use this variant to have the tabs displayed within a container header.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * @visualrefresh `stacked` variant\n */\n variant?: TabsProps.Variant;\n\n /**\n * Called whenever the user selects a different tab.\n * The event's `detail` contains the new `activeTabId`.\n */\n onChange?: NonCancelableEventHandler<TabsProps.ChangeDetail>;\n\n /**\n * The `id` of the currently active tab.\n * * If you don't set this property, the component activates the first tab and switches tabs automatically when a tab header is clicked (that is, uncontrolled behavior).\n * * If you explicitly set this property, you must set define an `onChange` handler to update the property when a tab header is clicked (that is, controlled behavior).\n */\n activeTabId?: string;\n\n /**\n * Provides an `aria-label` to the tab container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tab container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Determines whether the tab content has padding. If `true`, removes the default padding from the tab content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TabsProps.I18nStrings;\n /**\n * Enabling this property makes the tab content fit to the available height.\n * If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.\n */\n fitHeight?: boolean;\n}\nexport namespace TabsProps {\n export type Variant = 'default' | 'container' | 'stacked';\n\n export interface Tab {\n /**\n * The tab id. This value will be need to be passed to the Tabs component as `activeTabId` to select this tab.\n */\n id: string;\n /**\n * Tab label shown in the UI.\n */\n label: React.ReactNode;\n /**\n * Tab content to render in the container.\n */\n content?: React.ReactNode;\n /**\n * Whether this tab is disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why this tab is disabled.\n */\n disabledReason?: string;\n /**\n * (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * When a user clicks on this button the onDismiss handler is called.\n */\n dismissible?: boolean;\n /**\n * (Optional) Specifies an aria-label for the dismiss icon button.\n */\n dismissLabel?: string;\n /**\n * (Optional) Determines whether the dismiss button is disabled.\n */\n dismissDisabled?: boolean;\n /**\n * (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n */\n action?: React.ReactNode;\n /**\n * (event => void) Called when a user clicks on the dismiss button.\n */\n onDismiss?: ButtonProps['onClick'];\n /**\n * You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (CTRL,\n * ALT, SHIFT, META). This allows to open new browser tabs with an initially selected component tab,\n * when the routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n href?: string;\n }\n\n export interface ChangeDetail {\n /**\n * The ID of the clicked tab.\n */\n activeTabId: string;\n /**\n * The `href` attribute of the clicked tab, if defined.\n */\n activeTabHref?: string;\n }\n\n export interface I18nStrings {\n /**\n * ARIA label for the scroll left button that appears when the tab header is wider than the container.\n */\n scrollLeftAriaLabel?: string;\n /**\n * ARIA label for the scroll right button that appears when the tab header is wider than the container.\n */\n scrollRightAriaLabel?: string;\n /**\n * ARIA role description for the Tabs component when an action or dismissible prop is in use. This is used\n * with role=\"application\" to provide further information on the purpose of this component\n */\n tabsWithActionsAriaRoleDescription?: string;\n }\n}\n"]}
@@ -1,30 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "tabs-header": "awsui_tabs-header_14rmt_8vbks_194",
5
- "tabs-header-list": "awsui_tabs-header-list_14rmt_8vbks_202",
6
- "pagination-button": "awsui_pagination-button_14rmt_8vbks_219",
7
- "pagination-button-left": "awsui_pagination-button-left_14rmt_8vbks_226",
8
- "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_8vbks_229",
9
- "pagination-button-right": "awsui_pagination-button-right_14rmt_8vbks_233",
10
- "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_8vbks_236",
11
- "tabs-tab": "awsui_tabs-tab_14rmt_8vbks_241",
12
- "tabs-tab-label": "awsui_tabs-tab-label_14rmt_8vbks_250",
13
- "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_8vbks_261",
14
- "tabs-tab-action": "awsui_tabs-tab-action_14rmt_8vbks_262",
15
- "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_8vbks_266",
16
- "refresh": "awsui_refresh_14rmt_8vbks_281",
17
- "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_8vbks_285",
18
- "tabs-tab-link": "awsui_tabs-tab-link_14rmt_8vbks_327",
19
- "tabs-tab-active": "awsui_tabs-tab-active_14rmt_8vbks_404",
20
- "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_8vbks_411",
21
- "root": "awsui_root_14rmt_8vbks_415",
22
- "tabs": "awsui_tabs_14rmt_8vbks_194",
23
- "tabs-content": "awsui_tabs-content_14rmt_8vbks_456",
24
- "fit-height": "awsui_fit-height_14rmt_8vbks_460",
25
- "tabs-content-active": "awsui_tabs-content-active_14rmt_8vbks_466",
26
- "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_8vbks_480",
27
- "with-paddings": "awsui_with-paddings_14rmt_8vbks_480",
28
- "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_8vbks_491"
4
+ "tabs-header": "awsui_tabs-header_14rmt_1piyt_194",
5
+ "tabs-header-list": "awsui_tabs-header-list_14rmt_1piyt_202",
6
+ "pagination-button": "awsui_pagination-button_14rmt_1piyt_219",
7
+ "pagination-button-left": "awsui_pagination-button-left_14rmt_1piyt_226",
8
+ "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_1piyt_229",
9
+ "pagination-button-right": "awsui_pagination-button-right_14rmt_1piyt_233",
10
+ "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_1piyt_236",
11
+ "tabs-tab": "awsui_tabs-tab_14rmt_1piyt_241",
12
+ "tabs-tab-label": "awsui_tabs-tab-label_14rmt_1piyt_250",
13
+ "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_1piyt_261",
14
+ "tabs-tab-action": "awsui_tabs-tab-action_14rmt_1piyt_262",
15
+ "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_1piyt_266",
16
+ "refresh": "awsui_refresh_14rmt_1piyt_281",
17
+ "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_1piyt_285",
18
+ "tabs-tab-link": "awsui_tabs-tab-link_14rmt_1piyt_327",
19
+ "tabs-tab-active": "awsui_tabs-tab-active_14rmt_1piyt_403",
20
+ "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_1piyt_410",
21
+ "tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_1piyt_414",
22
+ "root": "awsui_root_14rmt_1piyt_418",
23
+ "tabs": "awsui_tabs_14rmt_1piyt_194",
24
+ "tabs-content": "awsui_tabs-content_14rmt_1piyt_459",
25
+ "fit-height": "awsui_fit-height_14rmt_1piyt_463",
26
+ "tabs-content-active": "awsui_tabs-content-active_14rmt_1piyt_469",
27
+ "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_1piyt_483",
28
+ "with-paddings": "awsui_with-paddings_14rmt_1piyt_483",
29
+ "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_1piyt_494",
30
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_1piyt_505",
31
+ "tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_1piyt_509"
29
32
  };
30
33