@cloudscape-design/components-themeable 3.0.251 → 3.0.253

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 (356) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/constants.scss +5 -0
  3. package/lib/internal/scss/app-layout/drawer/styles.scss +45 -5
  4. package/lib/internal/scss/app-layout/mobile-toolbar/styles.scss +6 -1
  5. package/lib/internal/scss/app-layout/test-classes/styles.scss +15 -0
  6. package/lib/internal/scss/app-layout/visual-refresh/app-bar.scss +6 -3
  7. package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +151 -0
  8. package/lib/internal/scss/app-layout/visual-refresh/split-panel.scss +1 -1
  9. package/lib/internal/scss/app-layout/visual-refresh/styles.scss +1 -0
  10. package/lib/internal/scss/button/styles.scss +5 -3
  11. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +31 -30
  12. package/lib/internal/scss/internal/hooks/focus-visible/index.scss +2 -1
  13. package/lib/internal/scss/space-between/styles.scss +5 -17
  14. package/lib/internal/scss/table/body-cell/styles.scss +14 -12
  15. package/lib/internal/scss/table/header-cell/styles.scss +2 -1
  16. package/lib/internal/scss/table/resizer/styles.scss +2 -1
  17. package/lib/internal/template/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  18. package/lib/internal/template/annotation-context/annotation/annotation-trigger.js +1 -3
  19. package/lib/internal/template/annotation-context/annotation/annotation-trigger.js.map +1 -1
  20. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  21. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +30 -30
  22. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  23. package/lib/internal/template/app-layout/drawer/index.d.ts +3 -21
  24. package/lib/internal/template/app-layout/drawer/index.d.ts.map +1 -1
  25. package/lib/internal/template/app-layout/drawer/index.js +25 -5
  26. package/lib/internal/template/app-layout/drawer/index.js.map +1 -1
  27. package/lib/internal/template/app-layout/drawer/interfaces.d.ts +84 -0
  28. package/lib/internal/template/app-layout/drawer/interfaces.d.ts.map +1 -0
  29. package/lib/internal/template/app-layout/drawer/interfaces.js +2 -0
  30. package/lib/internal/template/app-layout/drawer/interfaces.js.map +1 -0
  31. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts +4 -0
  32. package/lib/internal/template/app-layout/drawer/resizable-drawer.d.ts.map +1 -0
  33. package/lib/internal/template/app-layout/drawer/resizable-drawer.js +51 -0
  34. package/lib/internal/template/app-layout/drawer/resizable-drawer.js.map +1 -0
  35. package/lib/internal/template/app-layout/drawer/styles.css.js +10 -5
  36. package/lib/internal/template/app-layout/drawer/styles.scoped.css +46 -10
  37. package/lib/internal/template/app-layout/drawer/styles.selectors.js +10 -5
  38. package/lib/internal/template/app-layout/index.d.ts.map +1 -1
  39. package/lib/internal/template/app-layout/index.js +142 -17
  40. package/lib/internal/template/app-layout/index.js.map +1 -1
  41. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts +10 -1
  42. package/lib/internal/template/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  43. package/lib/internal/template/app-layout/mobile-toolbar/index.js +3 -2
  44. package/lib/internal/template/app-layout/mobile-toolbar/index.js.map +1 -1
  45. package/lib/internal/template/app-layout/mobile-toolbar/styles.css.js +5 -4
  46. package/lib/internal/template/app-layout/mobile-toolbar/styles.scoped.css +11 -7
  47. package/lib/internal/template/app-layout/mobile-toolbar/styles.selectors.js +5 -4
  48. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  49. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  50. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  51. package/lib/internal/template/app-layout/test-classes/styles.css.js +18 -13
  52. package/lib/internal/template/app-layout/test-classes/styles.scoped.css +33 -13
  53. package/lib/internal/template/app-layout/test-classes/styles.selectors.js +18 -13
  54. package/lib/internal/template/app-layout/toggles/index.d.ts.map +1 -1
  55. package/lib/internal/template/app-layout/toggles/index.js +2 -2
  56. package/lib/internal/template/app-layout/toggles/index.js.map +1 -1
  57. package/lib/internal/template/app-layout/toggles/interfaces.d.ts +3 -1
  58. package/lib/internal/template/app-layout/toggles/interfaces.d.ts.map +1 -1
  59. package/lib/internal/template/app-layout/toggles/interfaces.js.map +1 -1
  60. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.d.ts +21 -0
  61. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.d.ts.map +1 -0
  62. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.js +65 -0
  63. package/lib/internal/template/app-layout/utils/use-drawer-focus-control.js.map +1 -0
  64. package/lib/internal/template/app-layout/visual-refresh/app-bar.d.ts.map +1 -1
  65. package/lib/internal/template/app-layout/visual-refresh/app-bar.js +8 -6
  66. package/lib/internal/template/app-layout/visual-refresh/app-bar.js.map +1 -1
  67. package/lib/internal/template/app-layout/visual-refresh/context.d.ts +13 -5
  68. package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
  69. package/lib/internal/template/app-layout/visual-refresh/context.js +104 -49
  70. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  71. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts +47 -0
  72. package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -0
  73. package/lib/internal/template/app-layout/visual-refresh/drawers.js +127 -0
  74. package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -0
  75. package/lib/internal/template/app-layout/visual-refresh/header.js +2 -2
  76. package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
  77. package/lib/internal/template/app-layout/visual-refresh/index.d.ts.map +1 -1
  78. package/lib/internal/template/app-layout/visual-refresh/index.js +3 -1
  79. package/lib/internal/template/app-layout/visual-refresh/index.js.map +1 -1
  80. package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
  81. package/lib/internal/template/app-layout/visual-refresh/layout.js +5 -42
  82. package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
  83. package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
  84. package/lib/internal/template/app-layout/visual-refresh/main.js +2 -3
  85. package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
  86. package/lib/internal/template/app-layout/visual-refresh/navigation.js +2 -2
  87. package/lib/internal/template/app-layout/visual-refresh/navigation.js.map +1 -1
  88. package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  89. package/lib/internal/template/app-layout/visual-refresh/notifications.js +2 -2
  90. package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
  91. package/lib/internal/template/app-layout/visual-refresh/split-panel.js +2 -2
  92. package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
  93. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +71 -61
  94. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +437 -229
  95. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +71 -61
  96. package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
  97. package/lib/internal/template/app-layout/visual-refresh/tools.js +7 -3
  98. package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
  99. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts +4 -3
  100. package/lib/internal/template/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  101. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js +5 -6
  102. package/lib/internal/template/app-layout/visual-refresh/trigger-button.js.map +1 -1
  103. package/lib/internal/template/area-chart/internal.js +1 -1
  104. package/lib/internal/template/area-chart/internal.js.map +1 -1
  105. package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
  106. package/lib/internal/template/breadcrumb-group/item/item.js +2 -5
  107. package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
  108. package/lib/internal/template/breadcrumb-group/item/styles.css.js +9 -9
  109. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +17 -17
  110. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +9 -9
  111. package/lib/internal/template/button/internal.d.ts.map +1 -1
  112. package/lib/internal/template/button/internal.js +2 -3
  113. package/lib/internal/template/button/internal.js.map +1 -1
  114. package/lib/internal/template/button/styles.css.js +19 -18
  115. package/lib/internal/template/button/styles.scoped.css +136 -136
  116. package/lib/internal/template/button/styles.selectors.js +19 -18
  117. package/lib/internal/template/calendar/grid/index.d.ts.map +1 -1
  118. package/lib/internal/template/calendar/grid/index.js +2 -4
  119. package/lib/internal/template/calendar/grid/index.js.map +1 -1
  120. package/lib/internal/template/calendar/styles.css.js +18 -18
  121. package/lib/internal/template/calendar/styles.scoped.css +38 -38
  122. package/lib/internal/template/calendar/styles.selectors.js +18 -18
  123. package/lib/internal/template/code-editor/styles.css.js +32 -32
  124. package/lib/internal/template/code-editor/styles.scoped.css +157 -157
  125. package/lib/internal/template/code-editor/styles.selectors.js +32 -32
  126. package/lib/internal/template/code-editor/tab-button.d.ts.map +1 -1
  127. package/lib/internal/template/code-editor/tab-button.js +2 -4
  128. package/lib/internal/template/code-editor/tab-button.js.map +1 -1
  129. package/lib/internal/template/date-picker/index.d.ts.map +1 -1
  130. package/lib/internal/template/date-picker/index.js +1 -3
  131. package/lib/internal/template/date-picker/index.js.map +1 -1
  132. package/lib/internal/template/date-picker/styles.css.js +7 -7
  133. package/lib/internal/template/date-picker/styles.scoped.css +9 -9
  134. package/lib/internal/template/date-picker/styles.selectors.js +7 -7
  135. package/lib/internal/template/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  136. package/lib/internal/template/date-range-picker/calendar/grids/grid.js +1 -3
  137. package/lib/internal/template/date-range-picker/calendar/grids/grid.js.map +1 -1
  138. package/lib/internal/template/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  139. package/lib/internal/template/date-range-picker/calendar/grids/index.js +1 -3
  140. package/lib/internal/template/date-range-picker/calendar/grids/index.js.map +1 -1
  141. package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +25 -25
  142. package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +42 -42
  143. package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  144. package/lib/internal/template/date-range-picker/dropdown.d.ts.map +1 -1
  145. package/lib/internal/template/date-range-picker/dropdown.js +1 -3
  146. package/lib/internal/template/date-range-picker/dropdown.js.map +1 -1
  147. package/lib/internal/template/date-range-picker/styles.css.js +38 -38
  148. package/lib/internal/template/date-range-picker/styles.scoped.css +45 -45
  149. package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
  150. package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
  151. package/lib/internal/template/expandable-section/expandable-section-header.js +3 -7
  152. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  153. package/lib/internal/template/expandable-section/styles.css.js +23 -23
  154. package/lib/internal/template/expandable-section/styles.scoped.css +44 -44
  155. package/lib/internal/template/expandable-section/styles.selectors.js +23 -23
  156. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  157. package/lib/internal/template/flashbar/collapsible-flashbar.js +1 -3
  158. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  159. package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
  160. package/lib/internal/template/flashbar/flash.js +1 -3
  161. package/lib/internal/template/flashbar/flash.js.map +1 -1
  162. package/lib/internal/template/flashbar/styles.css.js +45 -45
  163. package/lib/internal/template/flashbar/styles.scoped.css +169 -169
  164. package/lib/internal/template/flashbar/styles.selectors.js +45 -45
  165. package/lib/internal/template/internal/base-component/styles.scoped.css +53 -0
  166. package/lib/internal/template/internal/components/abstract-switch/index.d.ts.map +1 -1
  167. package/lib/internal/template/internal/components/abstract-switch/index.js +8 -4
  168. package/lib/internal/template/internal/components/abstract-switch/index.js.map +1 -1
  169. package/lib/internal/template/internal/components/abstract-switch/styles.css.js +13 -13
  170. package/lib/internal/template/internal/components/abstract-switch/styles.scoped.css +19 -19
  171. package/lib/internal/template/internal/components/abstract-switch/styles.selectors.js +13 -13
  172. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  173. package/lib/internal/template/internal/components/button-trigger/index.js +1 -3
  174. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  175. package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
  176. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +23 -23
  177. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
  178. package/lib/internal/template/internal/components/chart-legend/index.d.ts.map +1 -1
  179. package/lib/internal/template/internal/components/chart-legend/index.js +2 -4
  180. package/lib/internal/template/internal/components/chart-legend/index.js.map +1 -1
  181. package/lib/internal/template/internal/components/chart-legend/styles.css.js +6 -6
  182. package/lib/internal/template/internal/components/chart-legend/styles.scoped.css +15 -15
  183. package/lib/internal/template/internal/components/chart-legend/styles.selectors.js +6 -6
  184. package/lib/internal/template/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  185. package/lib/internal/template/internal/components/chart-plot/focus-outline.js +25 -3
  186. package/lib/internal/template/internal/components/chart-plot/focus-outline.js.map +1 -1
  187. package/lib/internal/template/internal/components/filtering-token/index.d.ts +2 -1
  188. package/lib/internal/template/internal/components/filtering-token/index.d.ts.map +1 -1
  189. package/lib/internal/template/internal/components/filtering-token/index.js +3 -5
  190. package/lib/internal/template/internal/components/filtering-token/index.js.map +1 -1
  191. package/lib/internal/template/internal/components/filtering-token/styles.css.js +7 -7
  192. package/lib/internal/template/internal/components/filtering-token/styles.scoped.css +13 -13
  193. package/lib/internal/template/internal/components/filtering-token/styles.selectors.js +7 -7
  194. package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
  195. package/lib/internal/template/internal/components/menu-dropdown/index.js +2 -4
  196. package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
  197. package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
  198. package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +13 -13
  199. package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
  200. package/lib/internal/template/internal/components/token-list/index.d.ts +1 -1
  201. package/lib/internal/template/internal/components/token-list/index.d.ts.map +1 -1
  202. package/lib/internal/template/internal/components/token-list/index.js +3 -3
  203. package/lib/internal/template/internal/components/token-list/index.js.map +1 -1
  204. package/lib/internal/template/internal/components/token-list/interfaces.d.ts +0 -1
  205. package/lib/internal/template/internal/components/token-list/interfaces.d.ts.map +1 -1
  206. package/lib/internal/template/internal/components/token-list/interfaces.js.map +1 -1
  207. package/lib/internal/template/internal/components/token-list/styles.css.js +9 -9
  208. package/lib/internal/template/internal/components/token-list/styles.scoped.css +20 -20
  209. package/lib/internal/template/internal/components/token-list/styles.selectors.js +9 -9
  210. package/lib/internal/template/internal/components/token-list/token-focus-controller.js +1 -1
  211. package/lib/internal/template/internal/components/token-list/token-focus-controller.js.map +1 -1
  212. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  213. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js +1 -3
  214. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  215. package/lib/internal/template/internal/environment.js +1 -1
  216. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  217. package/lib/internal/template/internal/generated/custom-css-properties/index.js +31 -30
  218. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  219. package/lib/internal/template/internal/generated/styles/tokens.d.ts +2 -0
  220. package/lib/internal/template/internal/generated/styles/tokens.js +2 -0
  221. package/lib/internal/template/internal/generated/theming/index.cjs +140 -0
  222. package/lib/internal/template/internal/generated/theming/index.js +140 -0
  223. package/lib/internal/template/internal/hooks/focus-visible/index.d.ts +2 -5
  224. package/lib/internal/template/internal/hooks/focus-visible/index.d.ts.map +1 -1
  225. package/lib/internal/template/internal/hooks/focus-visible/index.js +42 -22
  226. package/lib/internal/template/internal/hooks/focus-visible/index.js.map +1 -1
  227. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  228. package/lib/internal/template/internal/hooks/use-base-component/index.js +2 -0
  229. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  230. package/lib/internal/template/link/internal.d.ts.map +1 -1
  231. package/lib/internal/template/link/internal.js +1 -3
  232. package/lib/internal/template/link/internal.js.map +1 -1
  233. package/lib/internal/template/link/styles.css.js +20 -20
  234. package/lib/internal/template/link/styles.scoped.css +71 -71
  235. package/lib/internal/template/link/styles.selectors.js +20 -20
  236. package/lib/internal/template/mixed-line-bar-chart/internal.js +1 -1
  237. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  238. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  239. package/lib/internal/template/pagination/internal.js +1 -3
  240. package/lib/internal/template/pagination/internal.js.map +1 -1
  241. package/lib/internal/template/pagination/styles.css.js +9 -9
  242. package/lib/internal/template/pagination/styles.scoped.css +23 -23
  243. package/lib/internal/template/pagination/styles.selectors.js +9 -9
  244. package/lib/internal/template/pie-chart/index.js +1 -1
  245. package/lib/internal/template/pie-chart/index.js.map +1 -1
  246. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  247. package/lib/internal/template/popover/internal.js +1 -3
  248. package/lib/internal/template/popover/internal.js.map +1 -1
  249. package/lib/internal/template/popover/styles.css.js +50 -50
  250. package/lib/internal/template/popover/styles.scoped.css +63 -63
  251. package/lib/internal/template/popover/styles.selectors.js +50 -50
  252. package/lib/internal/template/property-filter/index.d.ts.map +1 -1
  253. package/lib/internal/template/property-filter/index.js +2 -2
  254. package/lib/internal/template/property-filter/index.js.map +1 -1
  255. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  256. package/lib/internal/template/property-filter/token.js +1 -1
  257. package/lib/internal/template/property-filter/token.js.map +1 -1
  258. package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
  259. package/lib/internal/template/segmented-control/segment.js +1 -3
  260. package/lib/internal/template/segmented-control/segment.js.map +1 -1
  261. package/lib/internal/template/segmented-control/styles.css.js +14 -14
  262. package/lib/internal/template/segmented-control/styles.scoped.css +33 -33
  263. package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
  264. package/lib/internal/template/side-navigation/internal.d.ts.map +1 -1
  265. package/lib/internal/template/side-navigation/internal.js +2 -5
  266. package/lib/internal/template/side-navigation/internal.js.map +1 -1
  267. package/lib/internal/template/side-navigation/styles.css.js +27 -27
  268. package/lib/internal/template/side-navigation/styles.scoped.css +37 -37
  269. package/lib/internal/template/side-navigation/styles.selectors.js +27 -27
  270. package/lib/internal/template/space-between/internal.js +1 -1
  271. package/lib/internal/template/space-between/internal.js.map +1 -1
  272. package/lib/internal/template/space-between/styles.css.js +20 -28
  273. package/lib/internal/template/space-between/styles.scoped.css +37 -101
  274. package/lib/internal/template/space-between/styles.selectors.js +20 -28
  275. package/lib/internal/template/split-panel/index.d.ts.map +1 -1
  276. package/lib/internal/template/split-panel/index.js +1 -3
  277. package/lib/internal/template/split-panel/index.js.map +1 -1
  278. package/lib/internal/template/split-panel/styles.css.js +59 -59
  279. package/lib/internal/template/split-panel/styles.scoped.css +81 -81
  280. package/lib/internal/template/split-panel/styles.selectors.js +59 -59
  281. package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
  282. package/lib/internal/template/table/body-cell/index.js +3 -3
  283. package/lib/internal/template/table/body-cell/index.js.map +1 -1
  284. package/lib/internal/template/table/body-cell/styles.css.js +18 -18
  285. package/lib/internal/template/table/body-cell/styles.scoped.css +57 -55
  286. package/lib/internal/template/table/body-cell/styles.selectors.js +18 -18
  287. package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
  288. package/lib/internal/template/table/header-cell/index.js +11 -9
  289. package/lib/internal/template/table/header-cell/index.js.map +1 -1
  290. package/lib/internal/template/table/header-cell/styles.css.js +19 -19
  291. package/lib/internal/template/table/header-cell/styles.scoped.css +32 -32
  292. package/lib/internal/template/table/header-cell/styles.selectors.js +19 -19
  293. package/lib/internal/template/table/internal.d.ts.map +1 -1
  294. package/lib/internal/template/table/internal.js +1 -3
  295. package/lib/internal/template/table/internal.js.map +1 -1
  296. package/lib/internal/template/table/resizer/styles.css.js +6 -6
  297. package/lib/internal/template/table/resizer/styles.scoped.css +11 -11
  298. package/lib/internal/template/table/resizer/styles.selectors.js +6 -6
  299. package/lib/internal/template/table/styles.css.js +33 -33
  300. package/lib/internal/template/table/styles.scoped.css +41 -41
  301. package/lib/internal/template/table/styles.selectors.js +33 -33
  302. package/lib/internal/template/tabs/index.d.ts.map +1 -1
  303. package/lib/internal/template/tabs/index.js +8 -3
  304. package/lib/internal/template/tabs/index.js.map +1 -1
  305. package/lib/internal/template/tabs/styles.css.js +21 -21
  306. package/lib/internal/template/tabs/styles.scoped.css +38 -38
  307. package/lib/internal/template/tabs/styles.selectors.js +21 -21
  308. package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
  309. package/lib/internal/template/tabs/tab-header-bar.js +9 -3
  310. package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
  311. package/lib/internal/template/tag-editor/internal.d.ts.map +1 -1
  312. package/lib/internal/template/tag-editor/internal.js +2 -4
  313. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  314. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  315. package/lib/internal/template/tag-editor/styles.scoped.css +10 -10
  316. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  317. package/lib/internal/template/token-group/dismiss-button.d.ts.map +1 -1
  318. package/lib/internal/template/token-group/dismiss-button.js +1 -3
  319. package/lib/internal/template/token-group/dismiss-button.js.map +1 -1
  320. package/lib/internal/template/token-group/internal.js +2 -2
  321. package/lib/internal/template/token-group/internal.js.map +1 -1
  322. package/lib/internal/template/token-group/styles.css.js +5 -5
  323. package/lib/internal/template/token-group/styles.scoped.css +12 -12
  324. package/lib/internal/template/token-group/styles.selectors.js +5 -5
  325. package/lib/internal/template/token-group/token.d.ts +3 -5
  326. package/lib/internal/template/token-group/token.d.ts.map +1 -1
  327. package/lib/internal/template/token-group/token.js +2 -2
  328. package/lib/internal/template/token-group/token.js.map +1 -1
  329. package/lib/internal/template/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  330. package/lib/internal/template/top-navigation/1.0-beta/internal.js +1 -3
  331. package/lib/internal/template/top-navigation/1.0-beta/internal.js.map +1 -1
  332. package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
  333. package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +42 -42
  334. package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
  335. package/lib/internal/template/top-navigation/internal.d.ts.map +1 -1
  336. package/lib/internal/template/top-navigation/internal.js +1 -3
  337. package/lib/internal/template/top-navigation/internal.js.map +1 -1
  338. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  339. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js +3 -7
  340. package/lib/internal/template/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  341. package/lib/internal/template/top-navigation/styles.css.js +47 -47
  342. package/lib/internal/template/top-navigation/styles.scoped.css +66 -66
  343. package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
  344. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  345. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js +1 -3
  346. package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  347. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  348. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -27
  349. package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  350. package/lib/internal/template/wizard/styles.css.js +32 -32
  351. package/lib/internal/template/wizard/styles.scoped.css +63 -63
  352. package/lib/internal/template/wizard/styles.selectors.js +32 -32
  353. package/lib/internal/template/wizard/wizard-form.d.ts.map +1 -1
  354. package/lib/internal/template/wizard/wizard-form.js +1 -3
  355. package/lib/internal/template/wizard/wizard-form.js.map +1 -1
  356. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "body-cell": "awsui_body-cell_c6tup_12rnz_93",
5
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_12rnz_102",
6
- "is-visual-refresh": "awsui_is-visual-refresh_c6tup_12rnz_114",
7
- "has-striped-rows": "awsui_has-striped-rows_c6tup_12rnz_126",
8
- "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_12rnz_129",
9
- "body-cell-editable": "awsui_body-cell-editable_c6tup_12rnz_129",
10
- "has-selection": "awsui_has-selection_c6tup_12rnz_135",
11
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_12rnz_141",
12
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_12rnz_144",
13
- "body-cell-selected": "awsui_body-cell-selected_c6tup_12rnz_144",
14
- "has-footer": "awsui_has-footer_c6tup_12rnz_144",
15
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_12rnz_154",
16
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_12rnz_176",
17
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_12rnz_180",
18
- "body-cell-editor": "awsui_body-cell-editor_c6tup_12rnz_204",
19
- "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_12rnz_214",
20
- "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_12rnz_223",
21
- "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_12rnz_233"
4
+ "body-cell": "awsui_body-cell_c6tup_m07vi_93",
5
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_m07vi_102",
6
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_m07vi_114",
7
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_m07vi_126",
8
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_m07vi_129",
9
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_m07vi_129",
10
+ "has-selection": "awsui_has-selection_c6tup_m07vi_135",
11
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_m07vi_141",
12
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_m07vi_144",
13
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_m07vi_144",
14
+ "has-footer": "awsui_has-footer_c6tup_m07vi_144",
15
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_m07vi_154",
16
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_m07vi_176",
17
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_m07vi_180",
18
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_m07vi_204",
19
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_m07vi_214",
20
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_m07vi_223",
21
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_m07vi_233"
22
22
  };
23
23
 
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_body-cell_c6tup_12rnz_93:not(#\9) {
93
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9) {
94
94
  box-sizing: border-box;
95
95
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
96
96
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
@@ -99,19 +99,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
99
99
  word-wrap: break-word;
100
100
  border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
101
101
  }
102
- .awsui_body-cell_c6tup_12rnz_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_12rnz_102) {
102
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_m07vi_102) {
103
103
  white-space: nowrap;
104
104
  overflow: hidden;
105
105
  text-overflow: ellipsis;
106
106
  }
107
- .awsui_body-cell_c6tup_12rnz_93:not(#\9):first-child {
107
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9):first-child {
108
108
  border-left: var(--border-item-width-yvnixs, 1px) solid transparent;
109
109
  }
110
- .awsui_body-cell_c6tup_12rnz_93:not(#\9):last-child {
110
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9):last-child {
111
111
  border-right: var(--border-item-width-yvnixs, 1px) solid transparent;
112
112
  padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
113
113
  }
114
- .awsui_body-cell_c6tup_12rnz_93.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):first-child {
114
+ .awsui_body-cell_c6tup_m07vi_93.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):first-child {
115
115
  /*
116
116
  Striped rows requires additional left padding because the
117
117
  shaded background makes the child content appear too close
@@ -123,85 +123,85 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
123
123
  that the placeholder border would consume.
124
124
  */
125
125
  }
126
- .awsui_body-cell_c6tup_12rnz_93.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_12rnz_126) {
126
+ .awsui_body-cell_c6tup_m07vi_93.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_m07vi_126) {
127
127
  padding-left: var(--space-xxxs-k2w98v, 2px);
128
128
  }
129
- .awsui_body-cell_c6tup_12rnz_93.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_12rnz_126):not(.awsui_body-cell-edit-active_c6tup_12rnz_129).awsui_body-cell-editable_c6tup_12rnz_129:hover {
129
+ .awsui_body-cell_c6tup_m07vi_93.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_m07vi_126):not(.awsui_body-cell-edit-active_c6tup_m07vi_129).awsui_body-cell-editable_c6tup_m07vi_129:hover {
130
130
  padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
131
131
  }
132
- .awsui_body-cell_c6tup_12rnz_93.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_12rnz_126 {
132
+ .awsui_body-cell_c6tup_m07vi_93.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_m07vi_126 {
133
133
  padding-left: var(--space-xxs-ynfts5, 4px);
134
134
  }
135
- .awsui_body-cell_c6tup_12rnz_93.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_12rnz_135):not(.awsui_body-cell-editable_c6tup_12rnz_129) {
135
+ .awsui_body-cell_c6tup_m07vi_93.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_m07vi_135):not(.awsui_body-cell-editable_c6tup_m07vi_129) {
136
136
  border-left: none;
137
137
  }
138
- .awsui_body-cell_c6tup_12rnz_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_12rnz_114) {
138
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_m07vi_114) {
139
139
  padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-yvnixs, 1px));
140
140
  }
141
- .awsui_body-cell-first-row_c6tup_12rnz_141:not(#\9) {
141
+ .awsui_body-cell-first-row_c6tup_m07vi_141:not(#\9) {
142
142
  border-top: var(--border-item-width-yvnixs, 1px) solid transparent;
143
143
  }
144
- .awsui_body-cell-last-row_c6tup_12rnz_144:not(#\9):not(.awsui_body-cell-selected_c6tup_12rnz_144):not(.awsui_has-footer_c6tup_12rnz_144) {
144
+ .awsui_body-cell-last-row_c6tup_m07vi_144:not(#\9):not(.awsui_body-cell-selected_c6tup_m07vi_144):not(.awsui_has-footer_c6tup_m07vi_144) {
145
145
  border-bottom: var(--border-item-width-yvnixs, 1px) solid transparent;
146
146
  }
147
- .awsui_body-cell-last-row_c6tup_12rnz_144:not(#\9):not(.awsui_body-cell-selected_c6tup_12rnz_144).awsui_has-footer_c6tup_12rnz_144 {
147
+ .awsui_body-cell-last-row_c6tup_m07vi_144:not(#\9):not(.awsui_body-cell-selected_c6tup_m07vi_144).awsui_has-footer_c6tup_m07vi_144 {
148
148
  /*
149
149
  Add a bottom border to the body cells of the last row as a separator between the
150
150
  table and the footer
151
151
  */
152
152
  border-bottom: var(--border-divider-section-width-5a4cv1, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
153
153
  }
154
- .awsui_body-cell-shaded_c6tup_12rnz_154:not(#\9) {
154
+ .awsui_body-cell-shaded_c6tup_m07vi_154:not(#\9) {
155
155
  background: var(--color-background-cell-shaded-y6pwcp, #f2f3f3);
156
156
  }
157
- .awsui_body-cell-selected_c6tup_12rnz_144:not(#\9) {
157
+ .awsui_body-cell-selected_c6tup_m07vi_144:not(#\9) {
158
158
  background-color: var(--color-background-item-selected-fva7ca, #f1faff);
159
159
  border-top: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
160
160
  border-bottom: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
161
161
  padding-bottom: var(--space-scaled-xs-6859qs, 8px);
162
162
  }
163
- .awsui_body-cell-selected_c6tup_12rnz_144:not(#\9):first-child {
163
+ .awsui_body-cell-selected_c6tup_m07vi_144:not(#\9):first-child {
164
164
  border-left: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
165
165
  border-radius: var(--border-radius-item-wjpc1f, 0px) 0 0 var(--border-radius-item-wjpc1f, 0px);
166
166
  }
167
- .awsui_body-cell-selected_c6tup_12rnz_144:not(#\9):last-child {
167
+ .awsui_body-cell-selected_c6tup_m07vi_144:not(#\9):last-child {
168
168
  border-right: var(--border-item-width-yvnixs, 1px) solid var(--color-border-item-selected-pr9yuf, #00a1c9);
169
169
  border-radius: 0 var(--border-radius-item-wjpc1f, 0px) var(--border-radius-item-wjpc1f, 0px) 0;
170
170
  }
171
- .awsui_body-cell-selected_c6tup_12rnz_144:not(#\9):not(:first-child) {
171
+ .awsui_body-cell-selected_c6tup_m07vi_144:not(#\9):not(:first-child) {
172
172
  padding-top: calc(
173
173
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
174
174
  );
175
175
  }
176
- .awsui_body-cell_c6tup_12rnz_93:not(#\9):not(.awsui_body-cell-selected_c6tup_12rnz_144).awsui_body-cell-next-selected_c6tup_12rnz_176 {
176
+ .awsui_body-cell_c6tup_m07vi_93:not(#\9):not(.awsui_body-cell-selected_c6tup_m07vi_144).awsui_body-cell-next-selected_c6tup_m07vi_176 {
177
177
  border-bottom: 0;
178
178
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
179
179
  }
180
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-prev-selected_c6tup_12rnz_180:not(#\9) {
180
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-prev-selected_c6tup_m07vi_180:not(#\9) {
181
181
  padding-top: calc(
182
182
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-yvnixs, 1px) - var(--border-divider-list-width-hacikr, 1px))
183
183
  );
184
184
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-wtgwev, transparent);
185
185
  }
186
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-next-selected_c6tup_12rnz_176:not(#\9) {
186
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-next-selected_c6tup_m07vi_176:not(#\9) {
187
187
  border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
188
188
  }
189
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-next-selected_c6tup_12rnz_176:not(#\9):first-child {
189
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-next-selected_c6tup_m07vi_176:not(#\9):first-child {
190
190
  border-bottom-left-radius: 0;
191
191
  }
192
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-next-selected_c6tup_12rnz_176:not(#\9):last-child {
192
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-next-selected_c6tup_m07vi_176:not(#\9):last-child {
193
193
  border-bottom-right-radius: 0;
194
194
  }
195
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-prev-selected_c6tup_12rnz_180:not(#\9):first-child {
195
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-prev-selected_c6tup_m07vi_180:not(#\9):first-child {
196
196
  border-top-left-radius: 0;
197
197
  }
198
- .awsui_body-cell-selected_c6tup_12rnz_144.awsui_body-cell-prev-selected_c6tup_12rnz_180:not(#\9):last-child {
198
+ .awsui_body-cell-selected_c6tup_m07vi_144.awsui_body-cell-prev-selected_c6tup_m07vi_180:not(#\9):last-child {
199
199
  border-top-right-radius: 0;
200
200
  }
201
- .awsui_body-cell-selected_c6tup_12rnz_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_12rnz_180) {
201
+ .awsui_body-cell-selected_c6tup_m07vi_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_m07vi_180) {
202
202
  padding-top: var(--space-scaled-xs-6859qs, 8px);
203
203
  }
204
- .awsui_body-cell-editor_c6tup_12rnz_204:not(#\9) {
204
+ .awsui_body-cell-editor_c6tup_m07vi_204:not(#\9) {
205
205
  top: 0;
206
206
  right: 0;
207
207
  bottom: 0;
@@ -211,77 +211,79 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
211
211
  justify-content: flex-end;
212
212
  padding-right: var(--space-xs-rsr2qu, 8px);
213
213
  }
214
- .awsui_body-cell-editor-form_c6tup_12rnz_214:not(#\9) {
214
+ .awsui_body-cell-editor-form_c6tup_m07vi_214:not(#\9) {
215
215
  margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
216
216
  }
217
- .awsui_is-visual-refresh_c6tup_12rnz_114.awsui_body-cell_c6tup_12rnz_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_12rnz_126 > .awsui_body-cell-editor-form_c6tup_12rnz_214 {
217
+ .awsui_is-visual-refresh_c6tup_m07vi_114.awsui_body-cell_c6tup_m07vi_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_m07vi_126 > .awsui_body-cell-editor-form_c6tup_m07vi_214 {
218
218
  margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
219
219
  }
220
- .awsui_is-visual-refresh_c6tup_12rnz_114.awsui_body-cell_c6tup_12rnz_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_12rnz_126) > .awsui_body-cell-editor-form_c6tup_12rnz_214 {
220
+ .awsui_is-visual-refresh_c6tup_m07vi_114.awsui_body-cell_c6tup_m07vi_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_m07vi_126) > .awsui_body-cell-editor-form_c6tup_m07vi_214 {
221
221
  margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
222
222
  }
223
- .awsui_body-cell-editor-row_c6tup_12rnz_223:not(#\9) {
223
+ .awsui_body-cell-editor-row_c6tup_m07vi_223:not(#\9) {
224
224
  display: flex;
225
225
  flex-flow: row nowrap;
226
226
  align-items: center;
227
227
  justify-content: space-between;
228
228
  column-gap: var(--space-xxs-ynfts5, 4px);
229
229
  }
230
- .awsui_body-cell-editor-row_c6tup_12rnz_223 > :not(#\9):not(:last-child) {
230
+ .awsui_body-cell-editor-row_c6tup_m07vi_223 > :not(#\9):not(:last-child) {
231
231
  flex-grow: 1;
232
232
  }
233
- .awsui_body-cell-editor-controls_c6tup_12rnz_233:not(#\9) {
233
+ .awsui_body-cell-editor-controls_c6tup_m07vi_233:not(#\9) {
234
234
  flex-shrink: 0;
235
235
  }
236
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9) {
236
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9) {
237
237
  position: relative;
238
238
  cursor: pointer;
239
239
  }
240
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129.awsui_body-cell-edit-active_c6tup_12rnz_129:not(#\9) {
240
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129.awsui_body-cell-edit-active_c6tup_m07vi_129:not(#\9) {
241
241
  overflow: visible;
242
242
  }
243
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129) > .awsui_body-cell-editor_c6tup_12rnz_204 {
243
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129) > .awsui_body-cell-editor_c6tup_m07vi_204 {
244
244
  opacity: 0;
245
245
  }
246
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover {
246
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover {
247
247
  position: relative;
248
248
  background-color: var(--color-background-dropdown-item-hover-hgdj8r, #f2f3f3);
249
249
  border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-bwkbmv, #879596);
250
250
  left: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
251
251
  right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
252
+ padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
253
+ }
254
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover > .awsui_body-cell-editor_c6tup_m07vi_204 {
255
+ opacity: 1;
256
+ }
257
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover:first-child {
258
+ left: 0;
259
+ right: 0;
252
260
  }
253
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover > .awsui_body-cell-editor_c6tup_12rnz_204 {
261
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover > .awsui_body-cell-editor_c6tup_m07vi_204 {
254
262
  padding-right: calc(var(--space-xs-rsr2qu, 8px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
255
263
  }
256
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover.awsui_body-cell-last-row_c6tup_12rnz_144.awsui_body-cell-selected_c6tup_12rnz_144, .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover.awsui_body-cell-next-selected_c6tup_12rnz_176 {
264
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover.awsui_body-cell-last-row_c6tup_m07vi_144.awsui_body-cell-selected_c6tup_m07vi_144, .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover.awsui_body-cell-next-selected_c6tup_m07vi_176 {
257
265
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
258
266
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
259
267
  }
260
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover.awsui_body-cell-last-row_c6tup_12rnz_144:not(.awsui_body-cell-selected_c6tup_12rnz_144) {
268
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover.awsui_body-cell-last-row_c6tup_m07vi_144:not(.awsui_body-cell-selected_c6tup_m07vi_144) {
261
269
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
262
270
  }
263
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover.awsui_body-cell-first-row_c6tup_12rnz_141:not(.awsui_body-cell-selected_c6tup_12rnz_144) {
271
+ .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover.awsui_body-cell-first-row_c6tup_m07vi_141:not(.awsui_body-cell-selected_c6tup_m07vi_144) {
264
272
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
265
273
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
266
274
  }
267
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover, .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129)[data-awsui-focus-visible=true]:focus-within {
275
+ body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):focus-within {
268
276
  padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
277
+ position: relative;
269
278
  }
270
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover > .awsui_body-cell-editor_c6tup_12rnz_204, .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129)[data-awsui-focus-visible=true]:focus-within > .awsui_body-cell-editor_c6tup_12rnz_204 {
279
+ body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):focus-within > .awsui_body-cell-editor_c6tup_m07vi_204 {
271
280
  opacity: 1;
272
281
  }
273
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover:first-child {
274
- left: 0;
275
- right: 0;
276
- }
277
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129)[data-awsui-focus-visible=true]:focus-within {
278
- position: relative;
279
- }
280
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129)[data-awsui-focus-visible=true]:focus-within {
282
+ body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):focus-within {
281
283
  outline: 2px dotted transparent;
282
284
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
283
285
  }
284
- .awsui_body-cell_c6tup_12rnz_93.awsui_body-cell-editable_c6tup_12rnz_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129)[data-awsui-focus-visible=true]:focus-within::before {
286
+ body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_m07vi_93.awsui_body-cell-editable_c6tup_m07vi_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):focus-within::before {
285
287
  content: " ";
286
288
  display: block;
287
289
  position: absolute;
@@ -292,14 +294,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
292
294
  border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
293
295
  box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
294
296
  }
295
- .awsui_body-cell-editable_c6tup_12rnz_129.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover:first-child {
297
+ .awsui_body-cell-editable_c6tup_m07vi_129.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover:first-child {
296
298
  border-top-left-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
297
299
  border-bottom-left-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
298
300
  }
299
- .awsui_body-cell-editable_c6tup_12rnz_129.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover:last-child {
301
+ .awsui_body-cell-editable_c6tup_m07vi_129.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover:last-child {
300
302
  border-top-right-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
301
303
  border-bottom-right-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
302
304
  }
303
- .awsui_body-cell-editable_c6tup_12rnz_129.awsui_is-visual-refresh_c6tup_12rnz_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_12rnz_129):hover.awsui_body-cell-first-row_c6tup_12rnz_141 > .awsui_body-cell-editor_c6tup_12rnz_204 {
305
+ .awsui_body-cell-editable_c6tup_m07vi_129.awsui_is-visual-refresh_c6tup_m07vi_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_m07vi_129):hover.awsui_body-cell-first-row_c6tup_m07vi_141 > .awsui_body-cell-editor_c6tup_m07vi_204 {
304
306
  padding-top: var(--border-divider-list-width-hacikr, 1px);
305
307
  }
@@ -2,23 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "body-cell": "awsui_body-cell_c6tup_12rnz_93",
6
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_12rnz_102",
7
- "is-visual-refresh": "awsui_is-visual-refresh_c6tup_12rnz_114",
8
- "has-striped-rows": "awsui_has-striped-rows_c6tup_12rnz_126",
9
- "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_12rnz_129",
10
- "body-cell-editable": "awsui_body-cell-editable_c6tup_12rnz_129",
11
- "has-selection": "awsui_has-selection_c6tup_12rnz_135",
12
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_12rnz_141",
13
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_12rnz_144",
14
- "body-cell-selected": "awsui_body-cell-selected_c6tup_12rnz_144",
15
- "has-footer": "awsui_has-footer_c6tup_12rnz_144",
16
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_12rnz_154",
17
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_12rnz_176",
18
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_12rnz_180",
19
- "body-cell-editor": "awsui_body-cell-editor_c6tup_12rnz_204",
20
- "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_12rnz_214",
21
- "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_12rnz_223",
22
- "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_12rnz_233"
5
+ "body-cell": "awsui_body-cell_c6tup_m07vi_93",
6
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_m07vi_102",
7
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_m07vi_114",
8
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_m07vi_126",
9
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_m07vi_129",
10
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_m07vi_129",
11
+ "has-selection": "awsui_has-selection_c6tup_m07vi_135",
12
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_m07vi_141",
13
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_m07vi_144",
14
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_m07vi_144",
15
+ "has-footer": "awsui_has-footer_c6tup_m07vi_144",
16
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_m07vi_154",
17
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_m07vi_176",
18
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_m07vi_180",
19
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_m07vi_204",
20
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_m07vi_214",
21
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_m07vi_223",
22
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_m07vi_233"
23
23
  };
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,UAAU,oBAAoB,CAAC,QAAQ;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,mBAAmB,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACpD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,gBAAgB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC/C,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,GAAG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AC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,gBAAgB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC/C,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3E;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,EACxC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,wBAAwB,EACxB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,EAAE,oBAAoB,CAAC,QAAQ,CAAC,eA4FhC"}
@@ -3,7 +3,6 @@
3
3
  import clsx from 'clsx';
4
4
  import React from 'react';
5
5
  import InternalIcon from '../../icon/internal';
6
- import useFocusVisible from '../../internal/hooks/focus-visible';
7
6
  import { KeyCode } from '../../internal/keycode';
8
7
  import { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';
9
8
  import styles from './styles.css.js';
@@ -11,7 +10,6 @@ import { Resizer } from '../resizer';
11
10
  import { useUniqueId } from '../../internal/hooks/use-unique-id';
12
11
  export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, onFocusedComponentChange, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, }) {
13
12
  var _a;
14
- const focusVisible = useFocusVisible();
15
13
  const sortable = !!column.sortingComparator || !!column.sortingField;
16
14
  const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);
17
15
  const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);
@@ -40,9 +38,7 @@ export function TableHeaderCell({ className, style, tabIndex, column, activeSort
40
38
  [styles['header-cell-hidden']]: hidden,
41
39
  }), "aria-sort": sortingStatus && getAriaSort(sortingStatus), style: style, scope: "col" },
42
40
  React.createElement("div", Object.assign({ className: clsx(styles['header-cell-content'], {
43
- [styles['header-cell-fake-focus']]: (focusedComponent === null || focusedComponent === void 0 ? void 0 : focusedComponent.type) === 'column' &&
44
- focusedComponent.col === colIndex &&
45
- focusVisible['data-awsui-focus-visible'],
41
+ [styles['header-cell-fake-focus']]: (focusedComponent === null || focusedComponent === void 0 ? void 0 : focusedComponent.type) === 'column' && focusedComponent.col === colIndex,
46
42
  }), "aria-label": column.ariaLabel
47
43
  ? column.ariaLabel({
48
44
  sorted: sorted,
@@ -50,7 +46,15 @@ export function TableHeaderCell({ className, style, tabIndex, column, activeSort
50
46
  disabled: !!sortingDisabled,
51
47
  })
52
48
  : undefined }, (sortingStatus && !sortingDisabled
53
- ? Object.assign(Object.assign({ onKeyPress: handleKeyPress, tabIndex: tabIndex, role: 'button' }, focusVisible), { onClick: handleClick, onFocus: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange({ type: 'column', col: colIndex }), onBlur: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange(null) }) : {})),
49
+ ? {
50
+ onKeyPress: handleKeyPress,
51
+ tabIndex: tabIndex,
52
+ role: 'button',
53
+ onClick: handleClick,
54
+ onFocus: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange({ type: 'column', col: colIndex }),
55
+ onBlur: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange(null),
56
+ }
57
+ : {})),
54
58
  React.createElement("div", { className: clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap']), id: headerId },
55
59
  column.header,
56
60
  isEditable ? (React.createElement("span", { className: styles['edit-icon'], role: "img", "aria-label": (_a = column.editConfig) === null || _a === void 0 ? void 0 : _a.editIconAriaLabel },
@@ -58,8 +62,6 @@ export function TableHeaderCell({ className, style, tabIndex, column, activeSort
58
62
  sortingStatus && (React.createElement("span", { className: styles['sorting-icon'] },
59
63
  React.createElement(InternalIcon, { name: getSortingIconName(sortingStatus) })))),
60
64
  resizableColumns && (React.createElement(React.Fragment, null,
61
- React.createElement(Resizer, { tabIndex: tabIndex, showFocusRing: (focusedComponent === null || focusedComponent === void 0 ? void 0 : focusedComponent.type) === 'resizer' &&
62
- focusedComponent.col === colIndex &&
63
- focusVisible['data-awsui-focus-visible'], onDragMove: newWidth => updateColumn(colIndex, newWidth), onFinish: onResizeFinish, ariaLabelledby: headerId, onFocus: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange({ type: 'resizer', col: colIndex }), onBlur: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange(null), minWidth: typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth })))));
65
+ React.createElement(Resizer, { tabIndex: tabIndex, showFocusRing: (focusedComponent === null || focusedComponent === void 0 ? void 0 : focusedComponent.type) === 'resizer' && focusedComponent.col === colIndex, onDragMove: newWidth => updateColumn(colIndex, newWidth), onFinish: onResizeFinish, ariaLabelledby: headerId, onFocus: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange({ type: 'resizer', col: colIndex }), onBlur: () => onFocusedComponentChange === null || onFocusedComponentChange === void 0 ? void 0 : onFocusedComponentChange(null), minWidth: typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth })))));
64
66
  }
65
67
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO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E,QAAQ,EAClB,aAAa,EACX,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,MAAK,SAAS;oBACpC,gBAAgB,CAAC,GAAG,KAAK,QAAQ;oBACjC,YAAY,CAAC,0BAA0B,CAAC,EAE1C,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACxD,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,QAAQ,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,EAC7E,MAAM,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,IAAI,CAAC,EAC9C,QAAQ,EAAE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAC3F,CACD,CACJ,CACE,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport useFocusVisible from '../../internal/hooks/focus-visible';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from './styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { InteractiveComponent } from '../thead';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (colIndex: number, newWidth: number) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n\n focusedComponent?: InteractiveComponent | null;\n onFocusedComponentChange?: (element: InteractiveComponent | null) => void;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n onFocusedComponentChange,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n}: TableHeaderCellProps<ItemType>) {\n const focusVisible = useFocusVisible();\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <th\n className={clsx(className, {\n [styles['header-cell-resizable']]: !!resizableColumns,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n })}\n aria-sort={sortingStatus && getAriaSort(sortingStatus)}\n style={style}\n scope=\"col\"\n >\n <div\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]:\n focusedComponent?.type === 'column' &&\n focusedComponent.col === colIndex &&\n focusVisible['data-awsui-focus-visible'],\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n ...focusVisible,\n onClick: handleClick,\n onFocus: () => onFocusedComponentChange?.({ type: 'column', col: colIndex }),\n onBlur: () => onFocusedComponentChange?.(null),\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span className={styles['edit-icon']} role=\"img\" aria-label={column.editConfig?.editIconAriaLabel}>\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <>\n <Resizer\n tabIndex={tabIndex}\n showFocusRing={\n focusedComponent?.type === 'resizer' &&\n focusedComponent.col === colIndex &&\n focusVisible['data-awsui-focus-visible']\n }\n onDragMove={newWidth => updateColumn(colIndex, newWidth)}\n onFinish={onResizeFinish}\n ariaLabelledby={headerId}\n onFocus={() => onFocusedComponentChange?.({ type: 'resizer', col: colIndex })}\n onBlur={() => onFocusedComponentChange?.(null)}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n />\n </>\n )}\n </th>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC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AAE,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,MAAK,SAAS,IAAI,gBAAgB,CAAC,GAAG,KAAK,QAAQ,EACxF,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACxD,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,QAAQ,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,EAC7E,MAAM,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,IAAI,CAAC,EAC9C,QAAQ,EAAE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAC3F,CACD,CACJ,CACE,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from './styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { InteractiveComponent } from '../thead';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (colIndex: number, newWidth: number) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n\n focusedComponent?: InteractiveComponent | null;\n onFocusedComponentChange?: (element: InteractiveComponent | null) => void;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n onFocusedComponentChange,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n}: TableHeaderCellProps<ItemType>) {\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <th\n className={clsx(className, {\n [styles['header-cell-resizable']]: !!resizableColumns,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n })}\n aria-sort={sortingStatus && getAriaSort(sortingStatus)}\n style={style}\n scope=\"col\"\n >\n <div\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent?.type === 'column' && focusedComponent.col === colIndex,\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n onClick: handleClick,\n onFocus: () => onFocusedComponentChange?.({ type: 'column', col: colIndex }),\n onBlur: () => onFocusedComponentChange?.(null),\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span className={styles['edit-icon']} role=\"img\" aria-label={column.editConfig?.editIconAriaLabel}>\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <>\n <Resizer\n tabIndex={tabIndex}\n showFocusRing={focusedComponent?.type === 'resizer' && focusedComponent.col === colIndex}\n onDragMove={newWidth => updateColumn(colIndex, newWidth)}\n onFinish={onResizeFinish}\n ariaLabelledby={headerId}\n onFocus={() => onFocusedComponentChange?.({ type: 'resizer', col: colIndex })}\n onBlur={() => onFocusedComponentChange?.(null)}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n />\n </>\n )}\n </th>\n );\n}\n"]}
@@ -1,24 +1,24 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "header-cell": "awsui_header-cell_1spae_utdph_93",
5
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_utdph_105",
6
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_utdph_108",
7
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_utdph_108",
8
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_utdph_111",
9
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_utdph_114",
10
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_utdph_129",
11
- "sorting-icon": "awsui_sorting-icon_1spae_utdph_133",
12
- "edit-icon": "awsui_edit-icon_1spae_utdph_141",
13
- "header-cell-content": "awsui_header-cell-content_1spae_utdph_147",
14
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_utdph_176",
15
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_utdph_194",
16
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_utdph_194",
17
- "header-cell-text": "awsui_header-cell-text_1spae_utdph_208",
18
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_utdph_213",
19
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_utdph_219",
20
- "header-cell-descending": "awsui_header-cell-descending_1spae_utdph_220",
21
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_utdph_230",
22
- "has-striped-rows": "awsui_has-striped-rows_1spae_utdph_241"
4
+ "header-cell": "awsui_header-cell_1spae_1951e_93",
5
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_1951e_105",
6
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_1951e_108",
7
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1951e_108",
8
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_1951e_111",
9
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_1951e_114",
10
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_1951e_129",
11
+ "sorting-icon": "awsui_sorting-icon_1spae_1951e_133",
12
+ "edit-icon": "awsui_edit-icon_1spae_1951e_141",
13
+ "header-cell-content": "awsui_header-cell-content_1spae_1951e_147",
14
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1951e_176",
15
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_1951e_194",
16
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_1951e_194",
17
+ "header-cell-text": "awsui_header-cell-text_1spae_1951e_208",
18
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1951e_213",
19
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_1951e_219",
20
+ "header-cell-descending": "awsui_header-cell-descending_1spae_1951e_220",
21
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_1951e_230",
22
+ "has-striped-rows": "awsui_has-striped-rows_1spae_1951e_241"
23
23
  };
24
24