@cloudscape-design/components 3.0.1365 → 3.0.1366

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 (431) hide show
  1. package/action-card/styles.css.js +17 -17
  2. package/action-card/styles.scoped.css +117 -117
  3. package/action-card/styles.selectors.js +17 -17
  4. package/alert/actions-wrapper/styles.css.js +1 -1
  5. package/alert/actions-wrapper/styles.scoped.css +3 -3
  6. package/alert/actions-wrapper/styles.selectors.js +1 -1
  7. package/alert/styles.css.js +27 -27
  8. package/alert/styles.scoped.css +67 -67
  9. package/alert/styles.selectors.js +27 -27
  10. package/anchor-navigation/styles.css.js +8 -8
  11. package/anchor-navigation/styles.scoped.css +22 -22
  12. package/anchor-navigation/styles.selectors.js +8 -8
  13. package/annotation-context/annotation/styles.css.js +13 -13
  14. package/annotation-context/annotation/styles.scoped.css +23 -23
  15. package/annotation-context/annotation/styles.selectors.js +13 -13
  16. package/app-layout/content-wrapper/styles.css.js +3 -3
  17. package/app-layout/content-wrapper/styles.scoped.css +10 -10
  18. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  19. package/app-layout/drawer/styles.css.js +14 -14
  20. package/app-layout/drawer/styles.scoped.css +25 -25
  21. package/app-layout/drawer/styles.selectors.js +14 -14
  22. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  23. package/app-layout/mobile-toolbar/styles.scoped.css +13 -13
  24. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  25. package/app-layout/notifications/styles.css.js +3 -3
  26. package/app-layout/notifications/styles.scoped.css +7 -7
  27. package/app-layout/notifications/styles.selectors.js +3 -3
  28. package/app-layout/resize/styles.css.js +5 -5
  29. package/app-layout/resize/styles.scoped.css +14 -14
  30. package/app-layout/resize/styles.selectors.js +5 -5
  31. package/app-layout/styles.css.js +12 -12
  32. package/app-layout/styles.scoped.css +18 -18
  33. package/app-layout/styles.selectors.js +12 -12
  34. package/app-layout/toggles/styles.css.js +2 -2
  35. package/app-layout/toggles/styles.scoped.css +15 -15
  36. package/app-layout/toggles/styles.selectors.js +2 -2
  37. package/app-layout/visual-refresh/styles.css.js +86 -86
  38. package/app-layout/visual-refresh/styles.scoped.css +288 -288
  39. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  40. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  41. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +112 -112
  42. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  43. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
  44. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +15 -15
  45. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
  46. package/app-layout/visual-refresh-toolbar/notifications/styles.css.js +3 -3
  47. package/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +4 -4
  48. package/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +3 -3
  49. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
  50. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +74 -74
  51. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
  52. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +14 -14
  53. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +44 -44
  54. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +14 -14
  55. package/area-chart/styles.css.js +6 -6
  56. package/area-chart/styles.scoped.css +11 -11
  57. package/area-chart/styles.selectors.js +6 -6
  58. package/attribute-editor/styles.css.js +15 -15
  59. package/attribute-editor/styles.scoped.css +32 -32
  60. package/attribute-editor/styles.selectors.js +15 -15
  61. package/badge/styles.css.js +10 -10
  62. package/badge/styles.scoped.css +11 -11
  63. package/badge/styles.selectors.js +10 -10
  64. package/box/styles.css.js +220 -220
  65. package/box/styles.scoped.css +433 -433
  66. package/box/styles.selectors.js +220 -220
  67. package/breadcrumb-group/item/styles.css.js +7 -7
  68. package/breadcrumb-group/item/styles.scoped.css +30 -30
  69. package/breadcrumb-group/item/styles.selectors.js +7 -7
  70. package/breadcrumb-group/styles.css.js +14 -14
  71. package/breadcrumb-group/styles.scoped.css +32 -32
  72. package/breadcrumb-group/styles.selectors.js +14 -14
  73. package/button/styles.css.js +23 -23
  74. package/button/styles.scoped.css +295 -295
  75. package/button/styles.selectors.js +23 -23
  76. package/button-dropdown/category-elements/styles.css.js +18 -18
  77. package/button-dropdown/category-elements/styles.scoped.css +37 -37
  78. package/button-dropdown/category-elements/styles.selectors.js +18 -18
  79. package/button-dropdown/filter.d.ts +1 -1
  80. package/button-dropdown/filter.d.ts.map +1 -1
  81. package/button-dropdown/internal.d.ts.map +1 -1
  82. package/button-dropdown/internal.js +9 -3
  83. package/button-dropdown/internal.js.map +1 -1
  84. package/button-dropdown/item-element/styles.css.js +21 -21
  85. package/button-dropdown/item-element/styles.scoped.css +45 -45
  86. package/button-dropdown/item-element/styles.selectors.js +21 -21
  87. package/button-dropdown/styles.css.js +23 -23
  88. package/button-dropdown/styles.scoped.css +40 -40
  89. package/button-dropdown/styles.selectors.js +23 -23
  90. package/button-dropdown/utils/use-button-dropdown.d.ts +5 -2
  91. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  92. package/button-dropdown/utils/use-button-dropdown.js +14 -2
  93. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  94. package/button-group/styles.css.js +4 -4
  95. package/button-group/styles.scoped.css +6 -6
  96. package/button-group/styles.selectors.js +4 -4
  97. package/calendar/styles.css.js +21 -21
  98. package/calendar/styles.scoped.css +62 -62
  99. package/calendar/styles.selectors.js +21 -21
  100. package/cards/styles.css.js +39 -38
  101. package/cards/styles.scoped.css +54 -51
  102. package/cards/styles.selectors.js +39 -38
  103. package/checkbox/styles.css.js +3 -3
  104. package/checkbox/styles.scoped.css +16 -16
  105. package/checkbox/styles.selectors.js +3 -3
  106. package/code-editor/resizable-box/styles.css.js +4 -4
  107. package/code-editor/resizable-box/styles.scoped.css +9 -9
  108. package/code-editor/resizable-box/styles.selectors.js +4 -4
  109. package/code-editor/styles.css.js +33 -33
  110. package/code-editor/styles.scoped.css +159 -159
  111. package/code-editor/styles.selectors.js +33 -33
  112. package/collection-preferences/styles.css.js +38 -38
  113. package/collection-preferences/styles.scoped.css +52 -52
  114. package/collection-preferences/styles.selectors.js +38 -38
  115. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  116. package/column-layout/flexible-column-layout/styles.scoped.css +12 -12
  117. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  118. package/column-layout/styles.css.js +13 -13
  119. package/column-layout/styles.scoped.css +51 -51
  120. package/column-layout/styles.selectors.js +13 -13
  121. package/container/styles.css.js +33 -33
  122. package/container/styles.scoped.css +73 -72
  123. package/container/styles.selectors.js +33 -33
  124. package/content-layout/styles.css.js +14 -14
  125. package/content-layout/styles.scoped.css +30 -30
  126. package/content-layout/styles.selectors.js +14 -14
  127. package/copy-to-clipboard/styles.css.js +5 -5
  128. package/copy-to-clipboard/styles.scoped.css +7 -7
  129. package/copy-to-clipboard/styles.selectors.js +5 -5
  130. package/date-picker/styles.css.js +7 -7
  131. package/date-picker/styles.scoped.css +10 -10
  132. package/date-picker/styles.selectors.js +7 -7
  133. package/date-range-picker/calendar/grids/styles.css.js +30 -30
  134. package/date-range-picker/calendar/grids/styles.scoped.css +69 -69
  135. package/date-range-picker/calendar/grids/styles.selectors.js +30 -30
  136. package/date-range-picker/relative-range/styles.css.js +6 -6
  137. package/date-range-picker/relative-range/styles.scoped.css +13 -13
  138. package/date-range-picker/relative-range/styles.selectors.js +6 -6
  139. package/date-range-picker/styles.css.js +23 -23
  140. package/date-range-picker/styles.scoped.css +46 -46
  141. package/date-range-picker/styles.selectors.js +23 -23
  142. package/divider/styles.css.js +6 -6
  143. package/divider/styles.scoped.css +8 -8
  144. package/divider/styles.selectors.js +6 -6
  145. package/drawer/styles.css.js +29 -29
  146. package/drawer/styles.scoped.css +47 -47
  147. package/drawer/styles.selectors.js +29 -29
  148. package/dropdown/styles.css.js +20 -20
  149. package/dropdown/styles.scoped.css +54 -54
  150. package/dropdown/styles.selectors.js +20 -20
  151. package/expandable-section/styles.css.js +43 -43
  152. package/expandable-section/styles.scoped.css +129 -129
  153. package/expandable-section/styles.selectors.js +43 -43
  154. package/file-dropzone/styles.css.js +3 -3
  155. package/file-dropzone/styles.scoped.css +6 -6
  156. package/file-dropzone/styles.selectors.js +3 -3
  157. package/file-input/styles.css.js +5 -5
  158. package/file-input/styles.scoped.css +18 -18
  159. package/file-input/styles.selectors.js +5 -5
  160. package/file-token-group/styles.css.js +23 -23
  161. package/file-token-group/styles.scoped.css +52 -52
  162. package/file-token-group/styles.selectors.js +23 -23
  163. package/file-upload/styles.css.js +2 -2
  164. package/file-upload/styles.scoped.css +4 -4
  165. package/file-upload/styles.selectors.js +2 -2
  166. package/flashbar/styles.css.js +50 -50
  167. package/flashbar/styles.scoped.css +249 -249
  168. package/flashbar/styles.selectors.js +50 -50
  169. package/form/styles.css.js +8 -8
  170. package/form/styles.scoped.css +16 -16
  171. package/form/styles.selectors.js +8 -8
  172. package/form-field/styles.css.js +24 -24
  173. package/form-field/styles.scoped.css +44 -44
  174. package/form-field/styles.selectors.js +24 -24
  175. package/grid/styles.css.js +53 -53
  176. package/grid/styles.scoped.css +58 -58
  177. package/grid/styles.selectors.js +53 -53
  178. package/header/styles.css.js +35 -35
  179. package/header/styles.scoped.css +83 -83
  180. package/header/styles.selectors.js +35 -35
  181. package/help-panel/styles.css.js +6 -6
  182. package/help-panel/styles.scoped.css +100 -100
  183. package/help-panel/styles.selectors.js +6 -6
  184. package/hotspot/styles.css.js +7 -7
  185. package/hotspot/styles.scoped.css +10 -10
  186. package/hotspot/styles.selectors.js +7 -7
  187. package/icon/styles.css.js +42 -42
  188. package/icon/styles.scoped.css +118 -118
  189. package/icon/styles.selectors.js +42 -42
  190. package/input/index.d.ts.map +1 -1
  191. package/input/index.js +3 -2
  192. package/input/index.js.map +1 -1
  193. package/input/interfaces.d.ts +6 -0
  194. package/input/interfaces.d.ts.map +1 -1
  195. package/input/interfaces.js.map +1 -1
  196. package/input/internal.d.ts +0 -1
  197. package/input/internal.d.ts.map +1 -1
  198. package/input/internal.js +26 -12
  199. package/input/internal.js.map +1 -1
  200. package/input/styles.css.js +29 -28
  201. package/input/styles.scoped.css +159 -156
  202. package/input/styles.selectors.js +29 -28
  203. package/internal/base-component/styles.scoped.css +2 -2
  204. package/internal/base-theme/styles.scoped.css +319 -319
  205. package/internal/components/abstract-switch/styles.css.js +13 -13
  206. package/internal/components/abstract-switch/styles.scoped.css +22 -22
  207. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  208. package/internal/components/button-trigger/styles.css.js +14 -14
  209. package/internal/components/button-trigger/styles.scoped.css +43 -43
  210. package/internal/components/button-trigger/styles.selectors.js +14 -14
  211. package/internal/components/chart-legend/styles.css.js +6 -6
  212. package/internal/components/chart-legend/styles.scoped.css +16 -16
  213. package/internal/components/chart-legend/styles.selectors.js +6 -6
  214. package/internal/components/chart-popover/styles.css.js +3 -3
  215. package/internal/components/chart-popover/styles.scoped.css +6 -6
  216. package/internal/components/chart-popover/styles.selectors.js +3 -3
  217. package/internal/components/chart-series-details/styles.css.js +19 -19
  218. package/internal/components/chart-series-details/styles.scoped.css +39 -39
  219. package/internal/components/chart-series-details/styles.selectors.js +19 -19
  220. package/internal/components/chart-series-marker/styles.css.js +5 -5
  221. package/internal/components/chart-series-marker/styles.scoped.css +9 -9
  222. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  223. package/internal/components/checkbox-icon/styles.css.js +9 -9
  224. package/internal/components/checkbox-icon/styles.scoped.css +10 -10
  225. package/internal/components/checkbox-icon/styles.selectors.js +9 -9
  226. package/internal/components/drag-handle/styles.css.js +14 -14
  227. package/internal/components/drag-handle/styles.scoped.css +21 -21
  228. package/internal/components/drag-handle/styles.selectors.js +14 -14
  229. package/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
  230. package/internal/components/drag-handle-wrapper/index.js +2 -1
  231. package/internal/components/drag-handle-wrapper/index.js.map +1 -1
  232. package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
  233. package/internal/components/drag-handle-wrapper/styles.scoped.css +84 -84
  234. package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
  235. package/internal/components/dropdown-status/styles.css.js +2 -2
  236. package/internal/components/dropdown-status/styles.scoped.css +5 -5
  237. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  238. package/internal/components/expand-toggle-button/styles.css.js +4 -4
  239. package/internal/components/expand-toggle-button/styles.scoped.css +21 -21
  240. package/internal/components/expand-toggle-button/styles.selectors.js +4 -4
  241. package/internal/components/menu-dropdown/styles.css.js +7 -7
  242. package/internal/components/menu-dropdown/styles.scoped.css +18 -18
  243. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  244. package/internal/components/option/styles.css.js +17 -17
  245. package/internal/components/option/styles.scoped.css +34 -34
  246. package/internal/components/option/styles.selectors.js +17 -17
  247. package/internal/components/radio-button/styles.css.js +7 -7
  248. package/internal/components/radio-button/styles.scoped.css +24 -24
  249. package/internal/components/radio-button/styles.selectors.js +7 -7
  250. package/internal/components/selectable-item/styles.css.js +22 -22
  251. package/internal/components/selectable-item/styles.scoped.css +66 -66
  252. package/internal/components/selectable-item/styles.selectors.js +22 -22
  253. package/internal/components/sortable-area/styles.css.js +8 -8
  254. package/internal/components/sortable-area/styles.scoped.css +17 -17
  255. package/internal/components/sortable-area/styles.selectors.js +8 -8
  256. package/internal/components/structured-item/styles.css.js +7 -7
  257. package/internal/components/structured-item/styles.scoped.css +11 -11
  258. package/internal/components/structured-item/styles.selectors.js +7 -7
  259. package/internal/components/token-list/styles.css.js +10 -10
  260. package/internal/components/token-list/styles.scoped.css +33 -33
  261. package/internal/components/token-list/styles.selectors.js +10 -10
  262. package/internal/environment.js +2 -2
  263. package/internal/environment.json +2 -2
  264. package/internal/generated/custom-css-properties/index.d.ts +1 -0
  265. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  266. package/internal/generated/custom-css-properties/index.js +174 -173
  267. package/internal/generated/custom-css-properties/index.js.map +1 -1
  268. package/internal/generated/styles/tokens.js +200 -200
  269. package/internal/generated/theming/index.cjs +200 -200
  270. package/internal/generated/theming/index.js +200 -200
  271. package/internal/manifest.json +1 -1
  272. package/internal/utils/focus-visible.d.ts +14 -0
  273. package/internal/utils/focus-visible.d.ts.map +1 -0
  274. package/internal/utils/focus-visible.js +21 -0
  275. package/internal/utils/focus-visible.js.map +1 -0
  276. package/item-card/styles.css.js +14 -14
  277. package/item-card/styles.scoped.css +94 -94
  278. package/item-card/styles.selectors.js +14 -14
  279. package/key-value-pairs/styles.css.js +8 -8
  280. package/key-value-pairs/styles.scoped.css +14 -14
  281. package/key-value-pairs/styles.selectors.js +8 -8
  282. package/link/styles.css.js +21 -21
  283. package/link/styles.scoped.css +112 -112
  284. package/link/styles.selectors.js +21 -21
  285. package/list/styles.css.js +5 -5
  286. package/list/styles.scoped.css +9 -9
  287. package/list/styles.selectors.js +5 -5
  288. package/manifest.json +2 -2
  289. package/mixed-line-bar-chart/styles.css.js +11 -11
  290. package/mixed-line-bar-chart/styles.scoped.css +18 -18
  291. package/mixed-line-bar-chart/styles.selectors.js +11 -11
  292. package/modal/styles.css.js +31 -31
  293. package/modal/styles.scoped.css +65 -65
  294. package/modal/styles.selectors.js +31 -31
  295. package/multiselect/styles.css.js +5 -5
  296. package/multiselect/styles.scoped.css +6 -6
  297. package/multiselect/styles.selectors.js +5 -5
  298. package/package.json +1 -1
  299. package/pagination/internal.js +1 -1
  300. package/pagination/internal.js.map +1 -1
  301. package/pagination/styles.css.js +12 -12
  302. package/pagination/styles.scoped.css +36 -36
  303. package/pagination/styles.selectors.js +12 -12
  304. package/pie-chart/styles.css.js +27 -27
  305. package/pie-chart/styles.scoped.css +58 -58
  306. package/pie-chart/styles.selectors.js +27 -27
  307. package/popover/styles.css.js +58 -58
  308. package/popover/styles.scoped.css +102 -102
  309. package/popover/styles.selectors.js +58 -58
  310. package/progress-bar/styles.css.js +19 -19
  311. package/progress-bar/styles.scoped.css +64 -64
  312. package/progress-bar/styles.selectors.js +19 -19
  313. package/prompt-input/styles.css.js +26 -26
  314. package/prompt-input/styles.scoped.css +127 -127
  315. package/prompt-input/styles.selectors.js +26 -26
  316. package/property-filter/filtering-token/styles.css.js +18 -18
  317. package/property-filter/filtering-token/styles.scoped.css +54 -54
  318. package/property-filter/filtering-token/styles.selectors.js +18 -18
  319. package/property-filter/styles.css.js +39 -39
  320. package/property-filter/styles.scoped.css +75 -75
  321. package/property-filter/styles.selectors.js +39 -39
  322. package/radio-group/styles.css.js +5 -5
  323. package/radio-group/styles.scoped.css +10 -10
  324. package/radio-group/styles.selectors.js +5 -5
  325. package/s3-resource-selector/s3-in-context/styles.css.js +7 -7
  326. package/s3-resource-selector/s3-in-context/styles.scoped.css +13 -13
  327. package/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
  328. package/segmented-control/styles.css.js +16 -16
  329. package/segmented-control/styles.scoped.css +67 -67
  330. package/segmented-control/styles.selectors.js +16 -16
  331. package/select/parts/filter.d.ts +1 -1
  332. package/select/parts/filter.d.ts.map +1 -1
  333. package/select/parts/styles.css.js +21 -21
  334. package/select/parts/styles.scoped.css +38 -38
  335. package/select/parts/styles.selectors.js +21 -21
  336. package/side-navigation/styles.css.js +64 -64
  337. package/side-navigation/styles.scoped.css +162 -162
  338. package/side-navigation/styles.selectors.js +64 -64
  339. package/slider/styles.css.js +26 -26
  340. package/slider/styles.scoped.css +205 -205
  341. package/slider/styles.selectors.js +26 -26
  342. package/space-between/styles.css.js +23 -23
  343. package/space-between/styles.scoped.css +40 -40
  344. package/space-between/styles.selectors.js +23 -23
  345. package/spinner/styles.css.js +14 -14
  346. package/spinner/styles.scoped.css +55 -55
  347. package/spinner/styles.selectors.js +14 -14
  348. package/split-panel/styles.css.js +38 -38
  349. package/split-panel/styles.scoped.css +84 -84
  350. package/split-panel/styles.selectors.js +38 -38
  351. package/status-indicator/styles.css.js +25 -25
  352. package/status-indicator/styles.scoped.css +50 -50
  353. package/status-indicator/styles.selectors.js +25 -25
  354. package/steps/styles.css.js +17 -17
  355. package/steps/styles.scoped.css +51 -51
  356. package/steps/styles.selectors.js +17 -17
  357. package/table/body-cell/styles.css.js +48 -48
  358. package/table/body-cell/styles.scoped.css +816 -816
  359. package/table/body-cell/styles.selectors.js +48 -48
  360. package/table/header-cell/styles.css.js +38 -38
  361. package/table/header-cell/styles.scoped.css +156 -156
  362. package/table/header-cell/styles.selectors.js +38 -38
  363. package/table/resizer/styles.css.js +17 -17
  364. package/table/resizer/styles.scoped.css +39 -39
  365. package/table/resizer/styles.selectors.js +17 -17
  366. package/table/selection/styles.css.js +4 -4
  367. package/table/selection/styles.scoped.css +6 -6
  368. package/table/selection/styles.selectors.js +4 -4
  369. package/table/styles.css.js +37 -37
  370. package/table/styles.scoped.css +73 -70
  371. package/table/styles.selectors.js +37 -37
  372. package/tabs/styles.css.js +30 -30
  373. package/tabs/styles.scoped.css +105 -105
  374. package/tabs/styles.selectors.js +30 -30
  375. package/tag-editor/styles.css.js +3 -3
  376. package/tag-editor/styles.scoped.css +14 -14
  377. package/tag-editor/styles.selectors.js +3 -3
  378. package/test-utils/dom/input/index.d.ts +1 -0
  379. package/test-utils/dom/input/index.js +3 -0
  380. package/test-utils/dom/input/index.js.map +1 -1
  381. package/test-utils/selectors/input/index.d.ts +1 -0
  382. package/test-utils/selectors/input/index.js +3 -0
  383. package/test-utils/selectors/input/index.js.map +1 -1
  384. package/text-content/styles.css.js +1 -1
  385. package/text-content/styles.scoped.css +73 -73
  386. package/text-content/styles.selectors.js +1 -1
  387. package/text-filter/styles.css.js +3 -3
  388. package/text-filter/styles.scoped.css +5 -5
  389. package/text-filter/styles.selectors.js +3 -3
  390. package/textarea/styles.css.js +9 -9
  391. package/textarea/styles.scoped.css +55 -55
  392. package/textarea/styles.selectors.js +9 -9
  393. package/tiles/styles.css.js +30 -30
  394. package/tiles/styles.scoped.css +123 -123
  395. package/tiles/styles.selectors.js +30 -30
  396. package/toggle/styles.css.js +10 -10
  397. package/toggle/styles.scoped.css +24 -24
  398. package/toggle/styles.selectors.js +10 -10
  399. package/token/styles.css.js +14 -14
  400. package/token/styles.scoped.css +58 -58
  401. package/token/styles.selectors.js +14 -14
  402. package/token-group/styles.css.js +5 -5
  403. package/token-group/styles.scoped.css +5 -5
  404. package/token-group/styles.selectors.js +5 -5
  405. package/tooltip/styles.css.js +2 -2
  406. package/tooltip/styles.scoped.css +5 -5
  407. package/tooltip/styles.selectors.js +2 -2
  408. package/top-navigation/styles.css.js +47 -47
  409. package/top-navigation/styles.scoped.css +97 -97
  410. package/top-navigation/styles.selectors.js +47 -47
  411. package/tree-view/styles.css.js +2 -2
  412. package/tree-view/styles.scoped.css +4 -4
  413. package/tree-view/styles.selectors.js +2 -2
  414. package/tree-view/tree-item/styles.css.js +10 -10
  415. package/tree-view/tree-item/styles.scoped.css +15 -15
  416. package/tree-view/tree-item/styles.selectors.js +10 -10
  417. package/tree-view/vertical-connector/styles.css.js +3 -3
  418. package/tree-view/vertical-connector/styles.scoped.css +4 -4
  419. package/tree-view/vertical-connector/styles.selectors.js +3 -3
  420. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  421. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +26 -26
  422. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  423. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  424. package/tutorial-panel/components/tutorial-list/styles.scoped.css +33 -33
  425. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  426. package/tutorial-panel/styles.css.js +1 -1
  427. package/tutorial-panel/styles.scoped.css +7 -7
  428. package/tutorial-panel/styles.selectors.js +1 -1
  429. package/wizard/styles.css.js +30 -30
  430. package/wizard/styles.scoped.css +79 -79
  431. package/wizard/styles.selectors.js +30 -30
@@ -6,7 +6,7 @@
6
6
  /* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
7
7
  /* Style used for links in slots/components that are text heavy, to help links stand out among
8
8
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
9
- .awsui_handle_sdha6_15rng_9:not(#\9) {
9
+ .awsui_handle_sdha6_h0wwp_9:not(#\9) {
10
10
  appearance: none;
11
11
  color: var(--color-text-interactive-default-1o1pl2, #424650);
12
12
  background: transparent;
@@ -15,25 +15,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
15
15
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
16
16
  touch-action: none;
17
17
  }
18
- .awsui_handle-size-normal_sdha6_15rng_17:not(#\9) {
18
+ .awsui_handle-size-normal_sdha6_h0wwp_17:not(#\9) {
19
19
  block-size: var(--line-height-body-m-5xw6xo, 20px);
20
- padding-inline: var(--space-scaled-xxxs-oo06c7, 2px);
20
+ padding-inline: var(--space-scaled-xxxs-n0ri6o, 2px);
21
21
  }
22
- .awsui_handle-size-small_sdha6_15rng_21:not(#\9) {
22
+ .awsui_handle-size-small_sdha6_h0wwp_21:not(#\9) {
23
23
  block-size: var(--line-height-body-s-gako33, 16px);
24
24
  }
25
- .awsui_handle-drag-indicator_sdha6_15rng_24:not(#\9):not(.awsui_handle-disabled_sdha6_15rng_24) {
25
+ .awsui_handle-drag-indicator_sdha6_h0wwp_24:not(#\9):not(.awsui_handle-disabled_sdha6_h0wwp_24) {
26
26
  cursor: grab;
27
27
  }
28
- .awsui_handle-drag-indicator_sdha6_15rng_24:not(#\9):not(.awsui_handle-disabled_sdha6_15rng_24).awsui_active_sdha6_15rng_27 {
28
+ .awsui_handle-drag-indicator_sdha6_h0wwp_24:not(#\9):not(.awsui_handle-disabled_sdha6_h0wwp_24).awsui_active_sdha6_h0wwp_27 {
29
29
  cursor: grabbing;
30
30
  }
31
- .awsui_handle-resize-area_sdha6_15rng_30:not(#\9) {
31
+ .awsui_handle-resize-area_sdha6_h0wwp_30:not(#\9) {
32
32
  cursor: nwse-resize;
33
33
  position: relative;
34
34
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
35
35
  }
36
- .awsui_handle-resize-area_sdha6_15rng_30:not(#\9)::after {
36
+ .awsui_handle-resize-area_sdha6_h0wwp_30:not(#\9)::after {
37
37
  content: "";
38
38
  position: absolute;
39
39
  inset-block-end: 0;
@@ -43,30 +43,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
43
43
  min-inline-size: 24px;
44
44
  min-block-size: 24px;
45
45
  }
46
- .awsui_handle-resize-area_sdha6_15rng_30:not(#\9):dir(rtl) {
46
+ .awsui_handle-resize-area_sdha6_h0wwp_30:not(#\9):dir(rtl) {
47
47
  cursor: nesw-resize;
48
48
  }
49
- .awsui_handle-resize-horizontal_sdha6_15rng_48:not(#\9) {
49
+ .awsui_handle-resize-horizontal_sdha6_h0wwp_48:not(#\9) {
50
50
  cursor: ew-resize;
51
51
  }
52
- .awsui_handle-resize-vertical_sdha6_15rng_51:not(#\9) {
52
+ .awsui_handle-resize-vertical_sdha6_h0wwp_51:not(#\9) {
53
53
  cursor: ns-resize;
54
54
  }
55
- .awsui_handle_sdha6_15rng_9:not(#\9):hover {
55
+ .awsui_handle_sdha6_h0wwp_9:not(#\9):hover {
56
56
  color: var(--color-text-interactive-hover-j5y3wx, #0f141a);
57
57
  }
58
- .awsui_handle_sdha6_15rng_9:not(#\9):focus {
58
+ .awsui_handle_sdha6_h0wwp_9:not(#\9):focus {
59
59
  outline: none;
60
60
  text-decoration: none;
61
61
  }
62
- body[data-awsui-focus-visible=true] .awsui_handle_sdha6_15rng_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_15rng_61) {
62
+ body[data-awsui-focus-visible=true] .awsui_handle_sdha6_h0wwp_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_h0wwp_61) {
63
63
  position: relative;
64
64
  }
65
- body[data-awsui-focus-visible=true] .awsui_handle_sdha6_15rng_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_15rng_61) {
65
+ body[data-awsui-focus-visible=true] .awsui_handle_sdha6_h0wwp_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_h0wwp_61) {
66
66
  outline: 2px dotted transparent;
67
67
  outline-offset: calc(0px - 1px);
68
68
  }
69
- body[data-awsui-focus-visible=true] .awsui_handle_sdha6_15rng_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_15rng_61)::before {
69
+ body[data-awsui-focus-visible=true] .awsui_handle_sdha6_h0wwp_9:not(#\9):focus:not(.awsui_hide-focus_sdha6_h0wwp_61)::before {
70
70
  content: " ";
71
71
  display: block;
72
72
  position: absolute;
@@ -82,20 +82,20 @@ body[data-awsui-focus-visible=true] .awsui_handle_sdha6_15rng_9:not(#\9):focus:n
82
82
  z-index: 2;
83
83
  }
84
84
 
85
- .awsui_resize-icon_sdha6_15rng_84:not(#\9) {
85
+ .awsui_resize-icon_sdha6_h0wwp_84:not(#\9) {
86
86
  stroke: var(--color-text-interactive-default-1o1pl2, #424650);
87
87
  }
88
- .awsui_resize-icon_sdha6_15rng_84:not(#\9):hover {
88
+ .awsui_resize-icon_sdha6_h0wwp_84:not(#\9):hover {
89
89
  stroke: var(--color-text-interactive-hover-j5y3wx, #0f141a);
90
90
  }
91
- .awsui_resize-icon-vertical_sdha6_15rng_90:not(#\9) {
91
+ .awsui_resize-icon-vertical_sdha6_h0wwp_90:not(#\9) {
92
92
  margin-block: auto;
93
93
  margin-inline: auto;
94
94
  }
95
- .awsui_resize-icon-horizontal_sdha6_15rng_94:not(#\9) {
95
+ .awsui_resize-icon-horizontal_sdha6_h0wwp_94:not(#\9) {
96
96
  transform: rotate(90deg);
97
97
  }
98
98
 
99
- .awsui_prevent-pointer_sdha6_15rng_98:not(#\9) {
99
+ .awsui_prevent-pointer_sdha6_h0wwp_98:not(#\9) {
100
100
  pointer-events: none;
101
101
  }
@@ -2,19 +2,19 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "handle": "awsui_handle_sdha6_15rng_9",
6
- "handle-size-normal": "awsui_handle-size-normal_sdha6_15rng_17",
7
- "handle-size-small": "awsui_handle-size-small_sdha6_15rng_21",
8
- "handle-drag-indicator": "awsui_handle-drag-indicator_sdha6_15rng_24",
9
- "handle-disabled": "awsui_handle-disabled_sdha6_15rng_24",
10
- "active": "awsui_active_sdha6_15rng_27",
11
- "handle-resize-area": "awsui_handle-resize-area_sdha6_15rng_30",
12
- "handle-resize-horizontal": "awsui_handle-resize-horizontal_sdha6_15rng_48",
13
- "handle-resize-vertical": "awsui_handle-resize-vertical_sdha6_15rng_51",
14
- "hide-focus": "awsui_hide-focus_sdha6_15rng_61",
15
- "resize-icon": "awsui_resize-icon_sdha6_15rng_84",
16
- "resize-icon-vertical": "awsui_resize-icon-vertical_sdha6_15rng_90",
17
- "resize-icon-horizontal": "awsui_resize-icon-horizontal_sdha6_15rng_94",
18
- "prevent-pointer": "awsui_prevent-pointer_sdha6_15rng_98"
5
+ "handle": "awsui_handle_sdha6_h0wwp_9",
6
+ "handle-size-normal": "awsui_handle-size-normal_sdha6_h0wwp_17",
7
+ "handle-size-small": "awsui_handle-size-small_sdha6_h0wwp_21",
8
+ "handle-drag-indicator": "awsui_handle-drag-indicator_sdha6_h0wwp_24",
9
+ "handle-disabled": "awsui_handle-disabled_sdha6_h0wwp_24",
10
+ "active": "awsui_active_sdha6_h0wwp_27",
11
+ "handle-resize-area": "awsui_handle-resize-area_sdha6_h0wwp_30",
12
+ "handle-resize-horizontal": "awsui_handle-resize-horizontal_sdha6_h0wwp_48",
13
+ "handle-resize-vertical": "awsui_handle-resize-vertical_sdha6_h0wwp_51",
14
+ "hide-focus": "awsui_hide-focus_sdha6_h0wwp_61",
15
+ "resize-icon": "awsui_resize-icon_sdha6_h0wwp_84",
16
+ "resize-icon-vertical": "awsui_resize-icon-vertical_sdha6_h0wwp_90",
17
+ "resize-icon-horizontal": "awsui_resize-icon-horizontal_sdha6_h0wwp_94",
18
+ "prevent-pointer": "awsui_prevent-pointer_sdha6_h0wwp_98"
19
19
  };
20
20
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle-wrapper/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAa,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAYjE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAqB,EACrB,kBAA0B,EAC1B,qBAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,EAAE,sBAAsB,eAwPxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle-wrapper/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAa,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAYjE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAqB,EACrB,kBAA0B,EAC1B,qBAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,EAAE,sBAAsB,eAwPxB"}
@@ -4,6 +4,7 @@ import React, { useEffect, useRef, useState } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { nodeContains } from '@cloudscape-design/component-toolkit/dom';
6
6
  import { getLogicalBoundingClientRect, useUniqueId } from '@cloudscape-design/component-toolkit/internal';
7
+ import { isKeyboardInteraction } from '../../utils/focus-visible';
7
8
  import Tooltip from '../tooltip';
8
9
  import DirectionButton from './direction-button';
9
10
  import PortalOverlay from './portal-overlay';
@@ -35,7 +36,7 @@ export default function DragHandleWrapper({ directions, tooltipText, children, o
35
36
  // handled in the "pointerup" listener instead. In cases where focus is moved
36
37
  // to the button (by manually calling `.focus()`), the buttons should only appear
37
38
  // if the action that triggered the focus move was the result of a keypress.
38
- if (document.body.dataset.awsuiFocusVisible && !nodeContains(wrapperRef.current, event.relatedTarget)) {
39
+ if (isKeyboardInteraction(wrapperRef.current) && !nodeContains(wrapperRef.current, event.relatedTarget)) {
39
40
  setShowTooltip(false);
40
41
  if (triggerMode === 'focus') {
41
42
  setUncontrolledShowButtons(true);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle-wrapper/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE1G,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,+FAA+F;AAC/F,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,uEAAuE;AACvE,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,gBAAgB,GAAgB,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;AAEjG,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAW,GAAG,OAAO,EACrB,kBAAkB,GAAG,KAAK,EAC1B,qBAAqB,GAAG,KAAK,EAC7B,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,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,SAAS,CAAC,EAC5C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,KAAK,GAClB,CACH,CACJ,CACa,CACf,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport { getLogicalBoundingClientRect, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport Tooltip from '../tooltip';\nimport DirectionButton from './direction-button';\nimport { Direction, DragHandleWrapperProps } from './interfaces';\nimport PortalOverlay from './portal-overlay';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\n// The UAP buttons are forced to top/bottom position if the handle is close to the screen edge.\nconst FORCED_POSITION_PROXIMITY_PX = 50;\n// Approximate UAP button size with margins to decide forced direction.\nconst UAP_BUTTON_SIZE_PX = 40;\nconst DIRECTIONS_ORDER: Direction[] = ['block-end', 'block-start', 'inline-end', 'inline-start'];\n\nexport default function DragHandleWrapper({\n directions,\n tooltipText,\n children,\n onDirectionClick,\n triggerMode = 'focus',\n initialShowButtons = false,\n controlledShowButtons = false,\n wrapperClassName,\n hideButtonsOnDrag,\n clickDragThreshold,\n}: DragHandleWrapperProps) {\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const dragHandleRef = useRef<HTMLDivElement | null>(null);\n // Links the portaled UAP buttons back to the drag handle's position in the regular DOM,\n // so outside-click / focus detection treats them as belonging to the handle's container.\n const referrerId = useUniqueId('drag-handle');\n const [showTooltip, setShowTooltip] = useState(false);\n const [uncontrolledShowButtons, setUncontrolledShowButtons] = useState(initialShowButtons);\n\n const isPointerDown = useRef(false);\n const initialPointerPosition = useRef<{ x: number; y: number } | undefined>();\n const didPointerDrag = useRef(false);\n\n // The tooltip (\"Drag or select to move/resize\") shouldn't show if clicking\n // on the handle wouldn't do anything.\n const isDisabled =\n !directions['block-start'] && !directions['block-end'] && !directions['inline-start'] && !directions['inline-end'];\n\n const onWrapperFocusIn: React.FocusEventHandler = event => {\n // The drag handle is focused when it's either tabbed to, or the pointer\n // is pressed on it. We exclude handling the pointer press in this handler,\n // since it could be the start of a drag event - the pointer stuff is\n // handled in the \"pointerup\" listener instead. In cases where focus is moved\n // to the button (by manually calling `.focus()`), the buttons should only appear\n // if the action that triggered the focus move was the result of a keypress.\n if (document.body.dataset.awsuiFocusVisible && !nodeContains(wrapperRef.current, event.relatedTarget)) {\n setShowTooltip(false);\n if (triggerMode === 'focus') {\n setUncontrolledShowButtons(true);\n }\n }\n };\n\n const onWrapperFocusOut: React.FocusEventHandler = event => {\n // Close the directional buttons when the focus leaves the drag handle.\n // \"focusout\" is also triggered when the user switches to another tab, but\n // since it'll be returned when they switch back anyway, we exclude that\n // case by checking for `document.hasFocus()`.\n if (document.hasFocus() && !nodeContains(wrapperRef.current, event.relatedTarget)) {\n setUncontrolledShowButtons(false);\n }\n };\n\n useEffect(() => {\n const controller = new AbortController();\n\n // We need to differentiate between a \"click\" and a \"drag\" action.\n // We can say a \"click\" happens when a \"pointerdown\" is followed by\n // a \"pointerup\" with no \"pointermove\" between the two.\n // However, it would be a poor usability experience if a \"click\" isn't\n // registered because, while pressing my mouse, I moved it by just one\n // pixel, making it a \"drag\" instead. So we allow the pointer to move by\n // `clickDragThreshold` pixels before setting `didPointerDrag` to true.\n document.addEventListener(\n 'pointermove',\n event => {\n if (\n isPointerDown.current &&\n initialPointerPosition.current &&\n (event.clientX > initialPointerPosition.current.x + clickDragThreshold ||\n event.clientX < initialPointerPosition.current.x - clickDragThreshold ||\n event.clientY > initialPointerPosition.current.y + clickDragThreshold ||\n event.clientY < initialPointerPosition.current.y - clickDragThreshold)\n ) {\n didPointerDrag.current = true;\n if (hideButtonsOnDrag) {\n setUncontrolledShowButtons(false);\n }\n }\n },\n { signal: controller.signal }\n );\n\n // Shared behavior when a \"pointerdown\" state ends. This is shared so it\n // can be called for both \"pointercancel\" and \"pointerup\" events.\n const resetPointerDownState = () => {\n isPointerDown.current = false;\n initialPointerPosition.current = undefined;\n };\n\n document.addEventListener(\n 'pointercancel',\n () => {\n resetPointerDownState();\n },\n { signal: controller.signal }\n );\n\n document.addEventListener(\n 'pointerup',\n () => {\n if (isPointerDown.current && !didPointerDrag.current) {\n // The cursor didn't move much between \"pointerdown\" and \"pointerup\".\n // Handle this as a \"click\" instead of a \"drag\".\n setUncontrolledShowButtons(true);\n }\n resetPointerDownState();\n },\n { signal: controller.signal }\n );\n\n return () => controller.abort();\n }, [clickDragThreshold, hideButtonsOnDrag]);\n\n const onHandlePointerDown: React.PointerEventHandler = event => {\n // Tooltip behavior: the tooltip should appear on hover, but disappear when\n // the pointer starts dragging (having the tooltip get in the way while\n // you're trying to drag upwards is annoying). Additionally, the tooltip\n // shouldn't reappear when dragging ends, but only when the pointer leaves\n // the drag handle and comes back.\n\n isPointerDown.current = true;\n didPointerDrag.current = false;\n initialPointerPosition.current = { x: event.clientX, y: event.clientY };\n setShowTooltip(false);\n };\n\n // Tooltip behavior: the tooltip should stay open when the cursor moves\n // from the drag handle into the tooltip content itself. This is why the\n // handler is set on the wrapper for both the drag handle and the tooltip.\n const onTooltipGroupPointerEnter: React.PointerEventHandler = () => {\n if (!isPointerDown.current) {\n setShowTooltip(true);\n }\n };\n const onTooltipGroupPointerLeave: React.PointerEventHandler = () => {\n setShowTooltip(false);\n };\n\n const onDragHandleKeyDown: React.KeyboardEventHandler = event => {\n // For accessibility reasons, pressing escape should always close the floating controls.\n if (event.key === 'Escape') {\n setUncontrolledShowButtons(false);\n } else if (triggerMode === 'keyboard-activate' && (event.key === 'Enter' || event.key === ' ')) {\n // toggle buttons when Enter or space is pressed in 'keyboard-activate' triggerMode\n setUncontrolledShowButtons(prevShowButtons => !prevShowButtons);\n } else if (\n event.key !== 'Alt' &&\n event.key !== 'Control' &&\n event.key !== 'Meta' &&\n event.key !== 'Shift' &&\n triggerMode === 'focus'\n ) {\n // Pressing any other key will display the focus-visible ring around the\n // drag handle if it's in focus, so we should also show the buttons now.\n setUncontrolledShowButtons(true);\n }\n };\n\n const showButtons = triggerMode === 'controlled' ? controlledShowButtons : uncontrolledShowButtons;\n\n const [forcedPosition, setForcedPosition] = useState<null | 'top' | 'bottom'>(null);\n const directionsOrder = forcedPosition === 'bottom' ? [...DIRECTIONS_ORDER].reverse() : DIRECTIONS_ORDER;\n const visibleDirections = directionsOrder.filter(dir => directions[dir]);\n\n // Continuously monitor position while buttons are shown to handle CSS transitions/animations.\n // The position needs to be recalculated as the element may animate into its final position.\n useEffect(() => {\n if (!showButtons || !dragHandleRef.current) {\n if (forcedPosition !== null) {\n setForcedPosition(null);\n }\n return;\n }\n\n let frameId: number;\n\n const checkPosition = () => {\n if (!dragHandleRef.current) {\n return;\n }\n const rect = getLogicalBoundingClientRect(dragHandleRef.current);\n const conflicts = {\n 'block-start': rect.insetBlockStart < FORCED_POSITION_PROXIMITY_PX,\n 'block-end': window.innerHeight - rect.insetBlockEnd < FORCED_POSITION_PROXIMITY_PX,\n 'inline-start': rect.insetInlineStart < FORCED_POSITION_PROXIMITY_PX,\n 'inline-end': window.innerWidth - rect.insetInlineEnd < FORCED_POSITION_PROXIMITY_PX,\n };\n if (visibleDirections.some(direction => conflicts[direction])) {\n const hasEnoughSpaceAbove = rect.insetBlockStart > visibleDirections.length * UAP_BUTTON_SIZE_PX;\n setForcedPosition(hasEnoughSpaceAbove ? 'top' : 'bottom');\n } else {\n setForcedPosition(null);\n }\n frameId = requestAnimationFrame(checkPosition);\n };\n\n frameId = requestAnimationFrame(checkPosition);\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [forcedPosition, showButtons, visibleDirections]);\n\n return (\n <>\n {/* Wrapper for focus detection. The buttons are shown when any element inside this wrapper is\n focused, either via the keyboard or a pointer press. The UAP buttons will never receive focus. */}\n <div\n className={clsx(testUtilsStyles.root, styles.contents)}\n ref={wrapperRef}\n onFocus={onWrapperFocusIn}\n onBlur={onWrapperFocusOut}\n >\n {/* Wrapper for pointer detection. Determines whether or not the tooltip should be shown. */}\n <div\n className={styles.contents}\n onPointerEnter={onTooltipGroupPointerEnter}\n onPointerLeave={onTooltipGroupPointerLeave}\n >\n {/* Position tracking wrapper used to position the tooltip and drag buttons accurately.\n Its dimensions must match the inner button's dimensions. */}\n <div\n className={clsx(styles['drag-handle'], wrapperClassName)}\n ref={dragHandleRef}\n id={referrerId}\n onPointerDown={onHandlePointerDown}\n onKeyDown={onDragHandleKeyDown}\n >\n {children}\n </div>\n\n {!isDisabled && !showButtons && showTooltip && tooltipText && (\n // Rendered in a portal but pointerenter/pointerleave events still propagate\n // up the React DOM tree, which is why it's placed in this nested context.\n <Tooltip trackRef={dragHandleRef} value={tooltipText} onDismiss={() => setShowTooltip(false)} />\n )}\n </div>\n </div>\n\n <PortalOverlay track={dragHandleRef} isDisabled={!showButtons} referrerId={referrerId}>\n {visibleDirections.map(\n (direction, index) =>\n directions[direction] && (\n <DirectionButton\n key={direction}\n show={!isDisabled && showButtons}\n direction={direction}\n state={directions[direction]}\n onClick={() => onDirectionClick?.(direction)}\n forcedPosition={forcedPosition}\n forcedIndex={index}\n />\n )\n )}\n </PortalOverlay>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/drag-handle-wrapper/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;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C5E,0EAA0E;gBAC1E,oBAAC,OAAO,IAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,GAAI,CACjG,CACG,CACF;QAEN,oBAAC,aAAa,IAAC,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,IAClF,iBAAiB,CAAC,GAAG,CACpB,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,CACnB,UAAU,CAAC,SAAS,CAAC,IAAI,CACvB,oBAAC,eAAe,IACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,CAAC,UAAU,IAAI,WAAW,EAChC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,SAAS,CAAC,EAC5C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,KAAK,GAClB,CACH,CACJ,CACa,CACf,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport { getLogicalBoundingClientRect, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport { isKeyboardInteraction } from '../../utils/focus-visible';\nimport Tooltip from '../tooltip';\nimport DirectionButton from './direction-button';\nimport { Direction, DragHandleWrapperProps } from './interfaces';\nimport PortalOverlay from './portal-overlay';\n\nimport styles from './styles.css.js';\nimport testUtilsStyles from './test-classes/styles.css.js';\n\n// The UAP buttons are forced to top/bottom position if the handle is close to the screen edge.\nconst FORCED_POSITION_PROXIMITY_PX = 50;\n// Approximate UAP button size with margins to decide forced direction.\nconst UAP_BUTTON_SIZE_PX = 40;\nconst DIRECTIONS_ORDER: Direction[] = ['block-end', 'block-start', 'inline-end', 'inline-start'];\n\nexport default function DragHandleWrapper({\n directions,\n tooltipText,\n children,\n onDirectionClick,\n triggerMode = 'focus',\n initialShowButtons = false,\n controlledShowButtons = false,\n wrapperClassName,\n hideButtonsOnDrag,\n clickDragThreshold,\n}: DragHandleWrapperProps) {\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const dragHandleRef = useRef<HTMLDivElement | null>(null);\n // Links the portaled UAP buttons back to the drag handle's position in the regular DOM,\n // so outside-click / focus detection treats them as belonging to the handle's container.\n const referrerId = useUniqueId('drag-handle');\n const [showTooltip, setShowTooltip] = useState(false);\n const [uncontrolledShowButtons, setUncontrolledShowButtons] = useState(initialShowButtons);\n\n const isPointerDown = useRef(false);\n const initialPointerPosition = useRef<{ x: number; y: number } | undefined>();\n const didPointerDrag = useRef(false);\n\n // The tooltip (\"Drag or select to move/resize\") shouldn't show if clicking\n // on the handle wouldn't do anything.\n const isDisabled =\n !directions['block-start'] && !directions['block-end'] && !directions['inline-start'] && !directions['inline-end'];\n\n const onWrapperFocusIn: React.FocusEventHandler = event => {\n // The drag handle is focused when it's either tabbed to, or the pointer\n // is pressed on it. We exclude handling the pointer press in this handler,\n // since it could be the start of a drag event - the pointer stuff is\n // handled in the \"pointerup\" listener instead. In cases where focus is moved\n // to the button (by manually calling `.focus()`), the buttons should only appear\n // if the action that triggered the focus move was the result of a keypress.\n if (isKeyboardInteraction(wrapperRef.current) && !nodeContains(wrapperRef.current, event.relatedTarget)) {\n setShowTooltip(false);\n if (triggerMode === 'focus') {\n setUncontrolledShowButtons(true);\n }\n }\n };\n\n const onWrapperFocusOut: React.FocusEventHandler = event => {\n // Close the directional buttons when the focus leaves the drag handle.\n // \"focusout\" is also triggered when the user switches to another tab, but\n // since it'll be returned when they switch back anyway, we exclude that\n // case by checking for `document.hasFocus()`.\n if (document.hasFocus() && !nodeContains(wrapperRef.current, event.relatedTarget)) {\n setUncontrolledShowButtons(false);\n }\n };\n\n useEffect(() => {\n const controller = new AbortController();\n\n // We need to differentiate between a \"click\" and a \"drag\" action.\n // We can say a \"click\" happens when a \"pointerdown\" is followed by\n // a \"pointerup\" with no \"pointermove\" between the two.\n // However, it would be a poor usability experience if a \"click\" isn't\n // registered because, while pressing my mouse, I moved it by just one\n // pixel, making it a \"drag\" instead. So we allow the pointer to move by\n // `clickDragThreshold` pixels before setting `didPointerDrag` to true.\n document.addEventListener(\n 'pointermove',\n event => {\n if (\n isPointerDown.current &&\n initialPointerPosition.current &&\n (event.clientX > initialPointerPosition.current.x + clickDragThreshold ||\n event.clientX < initialPointerPosition.current.x - clickDragThreshold ||\n event.clientY > initialPointerPosition.current.y + clickDragThreshold ||\n event.clientY < initialPointerPosition.current.y - clickDragThreshold)\n ) {\n didPointerDrag.current = true;\n if (hideButtonsOnDrag) {\n setUncontrolledShowButtons(false);\n }\n }\n },\n { signal: controller.signal }\n );\n\n // Shared behavior when a \"pointerdown\" state ends. This is shared so it\n // can be called for both \"pointercancel\" and \"pointerup\" events.\n const resetPointerDownState = () => {\n isPointerDown.current = false;\n initialPointerPosition.current = undefined;\n };\n\n document.addEventListener(\n 'pointercancel',\n () => {\n resetPointerDownState();\n },\n { signal: controller.signal }\n );\n\n document.addEventListener(\n 'pointerup',\n () => {\n if (isPointerDown.current && !didPointerDrag.current) {\n // The cursor didn't move much between \"pointerdown\" and \"pointerup\".\n // Handle this as a \"click\" instead of a \"drag\".\n setUncontrolledShowButtons(true);\n }\n resetPointerDownState();\n },\n { signal: controller.signal }\n );\n\n return () => controller.abort();\n }, [clickDragThreshold, hideButtonsOnDrag]);\n\n const onHandlePointerDown: React.PointerEventHandler = event => {\n // Tooltip behavior: the tooltip should appear on hover, but disappear when\n // the pointer starts dragging (having the tooltip get in the way while\n // you're trying to drag upwards is annoying). Additionally, the tooltip\n // shouldn't reappear when dragging ends, but only when the pointer leaves\n // the drag handle and comes back.\n\n isPointerDown.current = true;\n didPointerDrag.current = false;\n initialPointerPosition.current = { x: event.clientX, y: event.clientY };\n setShowTooltip(false);\n };\n\n // Tooltip behavior: the tooltip should stay open when the cursor moves\n // from the drag handle into the tooltip content itself. This is why the\n // handler is set on the wrapper for both the drag handle and the tooltip.\n const onTooltipGroupPointerEnter: React.PointerEventHandler = () => {\n if (!isPointerDown.current) {\n setShowTooltip(true);\n }\n };\n const onTooltipGroupPointerLeave: React.PointerEventHandler = () => {\n setShowTooltip(false);\n };\n\n const onDragHandleKeyDown: React.KeyboardEventHandler = event => {\n // For accessibility reasons, pressing escape should always close the floating controls.\n if (event.key === 'Escape') {\n setUncontrolledShowButtons(false);\n } else if (triggerMode === 'keyboard-activate' && (event.key === 'Enter' || event.key === ' ')) {\n // toggle buttons when Enter or space is pressed in 'keyboard-activate' triggerMode\n setUncontrolledShowButtons(prevShowButtons => !prevShowButtons);\n } else if (\n event.key !== 'Alt' &&\n event.key !== 'Control' &&\n event.key !== 'Meta' &&\n event.key !== 'Shift' &&\n triggerMode === 'focus'\n ) {\n // Pressing any other key will display the focus-visible ring around the\n // drag handle if it's in focus, so we should also show the buttons now.\n setUncontrolledShowButtons(true);\n }\n };\n\n const showButtons = triggerMode === 'controlled' ? controlledShowButtons : uncontrolledShowButtons;\n\n const [forcedPosition, setForcedPosition] = useState<null | 'top' | 'bottom'>(null);\n const directionsOrder = forcedPosition === 'bottom' ? [...DIRECTIONS_ORDER].reverse() : DIRECTIONS_ORDER;\n const visibleDirections = directionsOrder.filter(dir => directions[dir]);\n\n // Continuously monitor position while buttons are shown to handle CSS transitions/animations.\n // The position needs to be recalculated as the element may animate into its final position.\n useEffect(() => {\n if (!showButtons || !dragHandleRef.current) {\n if (forcedPosition !== null) {\n setForcedPosition(null);\n }\n return;\n }\n\n let frameId: number;\n\n const checkPosition = () => {\n if (!dragHandleRef.current) {\n return;\n }\n const rect = getLogicalBoundingClientRect(dragHandleRef.current);\n const conflicts = {\n 'block-start': rect.insetBlockStart < FORCED_POSITION_PROXIMITY_PX,\n 'block-end': window.innerHeight - rect.insetBlockEnd < FORCED_POSITION_PROXIMITY_PX,\n 'inline-start': rect.insetInlineStart < FORCED_POSITION_PROXIMITY_PX,\n 'inline-end': window.innerWidth - rect.insetInlineEnd < FORCED_POSITION_PROXIMITY_PX,\n };\n if (visibleDirections.some(direction => conflicts[direction])) {\n const hasEnoughSpaceAbove = rect.insetBlockStart > visibleDirections.length * UAP_BUTTON_SIZE_PX;\n setForcedPosition(hasEnoughSpaceAbove ? 'top' : 'bottom');\n } else {\n setForcedPosition(null);\n }\n frameId = requestAnimationFrame(checkPosition);\n };\n\n frameId = requestAnimationFrame(checkPosition);\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [forcedPosition, showButtons, visibleDirections]);\n\n return (\n <>\n {/* Wrapper for focus detection. The buttons are shown when any element inside this wrapper is\n focused, either via the keyboard or a pointer press. The UAP buttons will never receive focus. */}\n <div\n className={clsx(testUtilsStyles.root, styles.contents)}\n ref={wrapperRef}\n onFocus={onWrapperFocusIn}\n onBlur={onWrapperFocusOut}\n >\n {/* Wrapper for pointer detection. Determines whether or not the tooltip should be shown. */}\n <div\n className={styles.contents}\n onPointerEnter={onTooltipGroupPointerEnter}\n onPointerLeave={onTooltipGroupPointerLeave}\n >\n {/* Position tracking wrapper used to position the tooltip and drag buttons accurately.\n Its dimensions must match the inner button's dimensions. */}\n <div\n className={clsx(styles['drag-handle'], wrapperClassName)}\n ref={dragHandleRef}\n id={referrerId}\n onPointerDown={onHandlePointerDown}\n onKeyDown={onDragHandleKeyDown}\n >\n {children}\n </div>\n\n {!isDisabled && !showButtons && showTooltip && tooltipText && (\n // Rendered in a portal but pointerenter/pointerleave events still propagate\n // up the React DOM tree, which is why it's placed in this nested context.\n <Tooltip trackRef={dragHandleRef} value={tooltipText} onDismiss={() => setShowTooltip(false)} />\n )}\n </div>\n </div>\n\n <PortalOverlay track={dragHandleRef} isDisabled={!showButtons} referrerId={referrerId}>\n {visibleDirections.map(\n (direction, index) =>\n directions[direction] && (\n <DirectionButton\n key={direction}\n show={!isDisabled && showButtons}\n direction={direction}\n state={directions[direction]}\n onClick={() => onDirectionClick?.(direction)}\n forcedPosition={forcedPosition}\n forcedIndex={index}\n />\n )\n )}\n </PortalOverlay>\n </>\n );\n}\n"]}
@@ -1,35 +1,35 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "direction-button-wrapper": "awsui_direction-button-wrapper_155yk_itebw_29",
5
- "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_itebw_49",
6
- "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_itebw_49",
7
- "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_itebw_49",
8
- "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_itebw_49",
9
- "drag-handle-entry": "awsui_drag-handle-entry_155yk_itebw_1",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_itebw_1",
11
- "drag-handle-exit": "awsui_drag-handle-exit_155yk_itebw_1",
12
- "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_itebw_1",
13
- "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_itebw_89",
14
- "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_itebw_93",
15
- "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_itebw_97",
16
- "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_itebw_108",
17
- "contents": "awsui_contents_155yk_itebw_119",
18
- "portal-overlay": "awsui_portal-overlay_155yk_itebw_123",
19
- "portal-overlay-disabled": "awsui_portal-overlay-disabled_155yk_itebw_131",
20
- "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_itebw_135",
21
- "drag-handle": "awsui_drag-handle_155yk_itebw_139",
22
- "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_itebw_152",
23
- "direction-button-wrapper-forced": "awsui_direction-button-wrapper-forced_155yk_itebw_176",
24
- "direction-button-wrapper-forced-top-0": "awsui_direction-button-wrapper-forced-top-0_155yk_itebw_180",
25
- "direction-button-wrapper-forced-top-1": "awsui_direction-button-wrapper-forced-top-1_155yk_itebw_184",
26
- "direction-button-wrapper-forced-top-2": "awsui_direction-button-wrapper-forced-top-2_155yk_itebw_188",
27
- "direction-button-wrapper-forced-top-3": "awsui_direction-button-wrapper-forced-top-3_155yk_itebw_192",
28
- "direction-button-wrapper-forced-bottom-0": "awsui_direction-button-wrapper-forced-bottom-0_155yk_itebw_196",
29
- "direction-button-wrapper-forced-bottom-1": "awsui_direction-button-wrapper-forced-bottom-1_155yk_itebw_200",
30
- "direction-button-wrapper-forced-bottom-2": "awsui_direction-button-wrapper-forced-bottom-2_155yk_itebw_204",
31
- "direction-button-wrapper-forced-bottom-3": "awsui_direction-button-wrapper-forced-bottom-3_155yk_itebw_208",
32
- "direction-button": "awsui_direction-button_155yk_itebw_29",
33
- "direction-button-disabled": "awsui_direction-button-disabled_155yk_itebw_231"
4
+ "direction-button-wrapper": "awsui_direction-button-wrapper_155yk_1id8u_29",
5
+ "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_1id8u_49",
6
+ "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_1id8u_49",
7
+ "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_1id8u_49",
8
+ "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_1id8u_49",
9
+ "drag-handle-entry": "awsui_drag-handle-entry_155yk_1id8u_1",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_1id8u_1",
11
+ "drag-handle-exit": "awsui_drag-handle-exit_155yk_1id8u_1",
12
+ "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_1id8u_1",
13
+ "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_1id8u_89",
14
+ "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_1id8u_93",
15
+ "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_1id8u_97",
16
+ "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_1id8u_108",
17
+ "contents": "awsui_contents_155yk_1id8u_119",
18
+ "portal-overlay": "awsui_portal-overlay_155yk_1id8u_123",
19
+ "portal-overlay-disabled": "awsui_portal-overlay-disabled_155yk_1id8u_131",
20
+ "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_1id8u_135",
21
+ "drag-handle": "awsui_drag-handle_155yk_1id8u_139",
22
+ "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_1id8u_152",
23
+ "direction-button-wrapper-forced": "awsui_direction-button-wrapper-forced_155yk_1id8u_176",
24
+ "direction-button-wrapper-forced-top-0": "awsui_direction-button-wrapper-forced-top-0_155yk_1id8u_180",
25
+ "direction-button-wrapper-forced-top-1": "awsui_direction-button-wrapper-forced-top-1_155yk_1id8u_184",
26
+ "direction-button-wrapper-forced-top-2": "awsui_direction-button-wrapper-forced-top-2_155yk_1id8u_188",
27
+ "direction-button-wrapper-forced-top-3": "awsui_direction-button-wrapper-forced-top-3_155yk_1id8u_192",
28
+ "direction-button-wrapper-forced-bottom-0": "awsui_direction-button-wrapper-forced-bottom-0_155yk_1id8u_196",
29
+ "direction-button-wrapper-forced-bottom-1": "awsui_direction-button-wrapper-forced-bottom-1_155yk_1id8u_200",
30
+ "direction-button-wrapper-forced-bottom-2": "awsui_direction-button-wrapper-forced-bottom-2_155yk_1id8u_204",
31
+ "direction-button-wrapper-forced-bottom-3": "awsui_direction-button-wrapper-forced-bottom-3_155yk_1id8u_208",
32
+ "direction-button": "awsui_direction-button_155yk_1id8u_29",
33
+ "direction-button-disabled": "awsui_direction-button-disabled_155yk_1id8u_231"
34
34
  };
35
35