@cloudscape-design/components 3.0.757 → 3.0.759

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 (449) hide show
  1. package/alert/styles.css.js +27 -27
  2. package/alert/styles.scoped.css +43 -43
  3. package/alert/styles.selectors.js +27 -27
  4. package/anchor-navigation/styles.css.js +8 -8
  5. package/anchor-navigation/styles.scoped.css +23 -23
  6. package/anchor-navigation/styles.selectors.js +8 -8
  7. package/annotation-context/annotation/styles.css.js +24 -24
  8. package/annotation-context/annotation/styles.scoped.css +31 -31
  9. package/annotation-context/annotation/styles.selectors.js +24 -24
  10. package/app-layout/content-wrapper/styles.css.js +3 -3
  11. package/app-layout/content-wrapper/styles.scoped.css +7 -7
  12. package/app-layout/content-wrapper/styles.selectors.js +3 -3
  13. package/app-layout/drawer/styles.css.js +13 -13
  14. package/app-layout/drawer/styles.scoped.css +22 -22
  15. package/app-layout/drawer/styles.selectors.js +13 -13
  16. package/app-layout/interfaces.d.ts +1 -1
  17. package/app-layout/interfaces.js.map +1 -1
  18. package/app-layout/mobile-toolbar/styles.css.js +8 -8
  19. package/app-layout/mobile-toolbar/styles.scoped.css +9 -9
  20. package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
  21. package/app-layout/resize/styles.css.js +4 -4
  22. package/app-layout/resize/styles.scoped.css +9 -9
  23. package/app-layout/resize/styles.selectors.js +4 -4
  24. package/app-layout/split-panel/styles.css.js +2 -2
  25. package/app-layout/split-panel/styles.scoped.css +3 -3
  26. package/app-layout/split-panel/styles.selectors.js +2 -2
  27. package/app-layout/styles.css.js +12 -12
  28. package/app-layout/styles.scoped.css +13 -13
  29. package/app-layout/styles.selectors.js +12 -12
  30. package/app-layout/toggles/styles.css.js +2 -2
  31. package/app-layout/toggles/styles.scoped.css +7 -7
  32. package/app-layout/toggles/styles.selectors.js +2 -2
  33. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  34. package/app-layout/visual-refresh/drawers.js +4 -2
  35. package/app-layout/visual-refresh/drawers.js.map +1 -1
  36. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  37. package/app-layout/visual-refresh/mobile-toolbar.js +1 -1
  38. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  39. package/app-layout/visual-refresh/styles.css.js +85 -82
  40. package/app-layout/visual-refresh/styles.scoped.css +177 -179
  41. package/app-layout/visual-refresh/styles.selectors.js +85 -82
  42. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  43. package/app-layout/visual-refresh/trigger-button.js +2 -2
  44. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  45. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +6 -6
  46. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +7 -7
  47. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +6 -6
  48. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  49. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
  50. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  51. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +16 -16
  52. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +31 -31
  53. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +16 -16
  54. package/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +1 -1
  55. package/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +2 -2
  56. package/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +1 -1
  57. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +3 -1
  58. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
  59. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +7 -5
  60. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
  61. package/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
  62. package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
  63. package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +12 -12
  64. package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +15 -15
  65. package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +12 -12
  66. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +29 -0
  67. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
  68. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +109 -7
  69. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
  70. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +9 -6
  71. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +36 -50
  72. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +9 -6
  73. package/area-chart/styles.css.js +6 -6
  74. package/area-chart/styles.scoped.css +10 -10
  75. package/area-chart/styles.selectors.js +6 -6
  76. package/attribute-editor/styles.css.js +14 -14
  77. package/attribute-editor/styles.scoped.css +27 -27
  78. package/attribute-editor/styles.selectors.js +14 -14
  79. package/badge/styles.css.js +10 -10
  80. package/badge/styles.scoped.css +11 -11
  81. package/badge/styles.selectors.js +10 -10
  82. package/box/styles.css.js +191 -191
  83. package/box/styles.scoped.css +237 -237
  84. package/box/styles.selectors.js +191 -191
  85. package/breadcrumb-group/implementation.d.ts.map +1 -1
  86. package/breadcrumb-group/implementation.js +61 -12
  87. package/breadcrumb-group/implementation.js.map +1 -1
  88. package/breadcrumb-group/interfaces.d.ts +3 -2
  89. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  90. package/breadcrumb-group/interfaces.js.map +1 -1
  91. package/breadcrumb-group/item/funnel.d.ts +1 -0
  92. package/breadcrumb-group/item/funnel.d.ts.map +1 -1
  93. package/breadcrumb-group/item/funnel.js +3 -3
  94. package/breadcrumb-group/item/funnel.js.map +1 -1
  95. package/breadcrumb-group/item/item.d.ts +1 -1
  96. package/breadcrumb-group/item/item.d.ts.map +1 -1
  97. package/breadcrumb-group/item/item.js +19 -38
  98. package/breadcrumb-group/item/item.js.map +1 -1
  99. package/breadcrumb-group/item/styles.css.js +8 -9
  100. package/breadcrumb-group/item/styles.scoped.css +36 -35
  101. package/breadcrumb-group/item/styles.selectors.js +8 -9
  102. package/breadcrumb-group/styles.css.js +8 -7
  103. package/breadcrumb-group/styles.scoped.css +18 -58
  104. package/breadcrumb-group/styles.selectors.js +8 -7
  105. package/breadcrumb-group/utils.d.ts +5 -0
  106. package/breadcrumb-group/utils.d.ts.map +1 -1
  107. package/breadcrumb-group/utils.js +56 -0
  108. package/breadcrumb-group/utils.js.map +1 -1
  109. package/button/styles.css.js +20 -20
  110. package/button/styles.scoped.css +155 -155
  111. package/button/styles.selectors.js +20 -20
  112. package/button-dropdown/category-elements/styles.css.js +14 -14
  113. package/button-dropdown/category-elements/styles.scoped.css +31 -31
  114. package/button-dropdown/category-elements/styles.selectors.js +14 -14
  115. package/button-dropdown/item-element/styles.css.js +13 -13
  116. package/button-dropdown/item-element/styles.scoped.css +25 -25
  117. package/button-dropdown/item-element/styles.selectors.js +13 -13
  118. package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
  119. package/button-dropdown/mobile-expandable-group/styles.scoped.css +6 -6
  120. package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
  121. package/button-dropdown/styles.css.js +17 -17
  122. package/button-dropdown/styles.scoped.css +27 -27
  123. package/button-dropdown/styles.selectors.js +17 -17
  124. package/button-group/styles.css.js +4 -4
  125. package/button-group/styles.scoped.css +5 -5
  126. package/button-group/styles.selectors.js +4 -4
  127. package/calendar/styles.css.js +21 -21
  128. package/calendar/styles.scoped.css +47 -47
  129. package/calendar/styles.selectors.js +21 -21
  130. package/cards/styles.css.js +39 -39
  131. package/cards/styles.scoped.css +51 -51
  132. package/cards/styles.selectors.js +39 -39
  133. package/checkbox/styles.css.js +3 -3
  134. package/checkbox/styles.scoped.css +6 -6
  135. package/checkbox/styles.selectors.js +3 -3
  136. package/code-editor/resizable-box/styles.css.js +3 -3
  137. package/code-editor/resizable-box/styles.scoped.css +8 -8
  138. package/code-editor/resizable-box/styles.selectors.js +3 -3
  139. package/code-editor/styles.css.js +33 -33
  140. package/code-editor/styles.scoped.css +137 -137
  141. package/code-editor/styles.selectors.js +33 -33
  142. package/collection-preferences/content-display/styles.css.js +11 -11
  143. package/collection-preferences/content-display/styles.scoped.css +19 -19
  144. package/collection-preferences/content-display/styles.selectors.js +11 -11
  145. package/collection-preferences/styles.css.js +37 -37
  146. package/collection-preferences/styles.scoped.css +48 -48
  147. package/collection-preferences/styles.selectors.js +37 -37
  148. package/column-layout/flexible-column-layout/styles.css.js +5 -5
  149. package/column-layout/flexible-column-layout/styles.scoped.css +6 -6
  150. package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
  151. package/column-layout/styles.css.js +13 -13
  152. package/column-layout/styles.scoped.css +45 -45
  153. package/column-layout/styles.selectors.js +13 -13
  154. package/container/styles.css.js +30 -30
  155. package/container/styles.scoped.css +55 -55
  156. package/container/styles.selectors.js +30 -30
  157. package/content-layout/styles.css.js +14 -14
  158. package/content-layout/styles.scoped.css +17 -17
  159. package/content-layout/styles.selectors.js +14 -14
  160. package/date-picker/styles.css.js +7 -7
  161. package/date-picker/styles.scoped.css +10 -10
  162. package/date-picker/styles.selectors.js +7 -7
  163. package/date-range-picker/calendar/grids/styles.css.js +28 -28
  164. package/date-range-picker/calendar/grids/styles.scoped.css +44 -44
  165. package/date-range-picker/calendar/grids/styles.selectors.js +28 -28
  166. package/date-range-picker/relative-range/styles.css.js +9 -9
  167. package/date-range-picker/relative-range/styles.scoped.css +14 -14
  168. package/date-range-picker/relative-range/styles.selectors.js +9 -9
  169. package/date-range-picker/styles.css.js +39 -39
  170. package/date-range-picker/styles.scoped.css +49 -49
  171. package/date-range-picker/styles.selectors.js +39 -39
  172. package/drawer/styles.css.js +4 -4
  173. package/drawer/styles.scoped.css +11 -11
  174. package/drawer/styles.selectors.js +4 -4
  175. package/expandable-section/styles.css.js +34 -34
  176. package/expandable-section/styles.scoped.css +66 -66
  177. package/expandable-section/styles.selectors.js +34 -34
  178. package/file-upload/dropzone/styles.css.js +2 -2
  179. package/file-upload/dropzone/styles.scoped.css +3 -3
  180. package/file-upload/dropzone/styles.selectors.js +2 -2
  181. package/file-upload/file-input/styles.css.js +4 -4
  182. package/file-upload/file-input/styles.scoped.css +8 -8
  183. package/file-upload/file-input/styles.selectors.js +4 -4
  184. package/flashbar/styles.css.js +50 -50
  185. package/flashbar/styles.scoped.css +150 -150
  186. package/flashbar/styles.selectors.js +50 -50
  187. package/form/styles.css.js +8 -8
  188. package/form/styles.scoped.css +9 -9
  189. package/form/styles.selectors.js +8 -8
  190. package/form-field/styles.css.js +24 -24
  191. package/form-field/styles.scoped.css +43 -39
  192. package/form-field/styles.selectors.js +24 -24
  193. package/grid/styles.css.js +53 -53
  194. package/grid/styles.scoped.css +55 -55
  195. package/grid/styles.selectors.js +53 -53
  196. package/header/styles.css.js +34 -34
  197. package/header/styles.scoped.css +51 -51
  198. package/header/styles.selectors.js +34 -34
  199. package/help-panel/styles.css.js +5 -5
  200. package/help-panel/styles.scoped.css +72 -72
  201. package/help-panel/styles.selectors.js +5 -5
  202. package/hotspot/styles.css.js +7 -7
  203. package/hotspot/styles.scoped.css +8 -8
  204. package/hotspot/styles.selectors.js +7 -7
  205. package/icon/styles.css.js +38 -38
  206. package/icon/styles.scoped.css +83 -83
  207. package/icon/styles.selectors.js +38 -38
  208. package/input/styles.css.js +13 -13
  209. package/input/styles.scoped.css +33 -33
  210. package/input/styles.selectors.js +13 -13
  211. package/internal/analytics/index.d.ts +3 -1
  212. package/internal/analytics/index.d.ts.map +1 -1
  213. package/internal/analytics/index.js +8 -0
  214. package/internal/analytics/index.js.map +1 -1
  215. package/internal/analytics/interfaces.d.ts +9 -1
  216. package/internal/analytics/interfaces.d.ts.map +1 -1
  217. package/internal/analytics/interfaces.js.map +1 -1
  218. package/internal/components/abstract-switch/styles.css.js +13 -13
  219. package/internal/components/abstract-switch/styles.scoped.css +21 -21
  220. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  221. package/internal/components/button-trigger/index.d.ts.map +1 -1
  222. package/internal/components/button-trigger/index.js +1 -1
  223. package/internal/components/button-trigger/index.js.map +1 -1
  224. package/internal/components/button-trigger/styles.css.js +13 -13
  225. package/internal/components/button-trigger/styles.scoped.css +28 -28
  226. package/internal/components/button-trigger/styles.selectors.js +13 -13
  227. package/internal/components/chart-filter/styles.css.js +3 -3
  228. package/internal/components/chart-filter/styles.scoped.css +4 -4
  229. package/internal/components/chart-filter/styles.selectors.js +3 -3
  230. package/internal/components/chart-legend/styles.css.js +6 -6
  231. package/internal/components/chart-legend/styles.scoped.css +16 -16
  232. package/internal/components/chart-legend/styles.selectors.js +6 -6
  233. package/internal/components/chart-plot/styles.css.js +5 -5
  234. package/internal/components/chart-plot/styles.scoped.css +6 -6
  235. package/internal/components/chart-plot/styles.selectors.js +5 -5
  236. package/internal/components/chart-popover/styles.css.js +3 -3
  237. package/internal/components/chart-popover/styles.scoped.css +4 -4
  238. package/internal/components/chart-popover/styles.selectors.js +3 -3
  239. package/internal/components/chart-series-details/styles.css.js +20 -20
  240. package/internal/components/chart-series-details/styles.scoped.css +36 -36
  241. package/internal/components/chart-series-details/styles.selectors.js +20 -20
  242. package/internal/components/chart-series-marker/styles.css.js +5 -5
  243. package/internal/components/chart-series-marker/styles.scoped.css +8 -8
  244. package/internal/components/chart-series-marker/styles.selectors.js +5 -5
  245. package/internal/components/chart-wrapper/styles.css.js +9 -9
  246. package/internal/components/chart-wrapper/styles.scoped.css +10 -10
  247. package/internal/components/chart-wrapper/styles.selectors.js +9 -9
  248. package/internal/components/checkbox-icon/styles.css.js +9 -9
  249. package/internal/components/checkbox-icon/styles.scoped.css +16 -16
  250. package/internal/components/checkbox-icon/styles.selectors.js +9 -9
  251. package/internal/components/dropdown/index.d.ts.map +1 -1
  252. package/internal/components/dropdown/index.js +5 -2
  253. package/internal/components/dropdown/index.js.map +1 -1
  254. package/internal/components/dropdown/styles.css.js +20 -20
  255. package/internal/components/dropdown/styles.scoped.css +38 -38
  256. package/internal/components/dropdown/styles.selectors.js +20 -20
  257. package/internal/components/dropdown-footer/styles.css.js +3 -3
  258. package/internal/components/dropdown-footer/styles.scoped.css +4 -4
  259. package/internal/components/dropdown-footer/styles.selectors.js +3 -3
  260. package/internal/components/dropdown-status/styles.css.js +2 -2
  261. package/internal/components/dropdown-status/styles.scoped.css +3 -3
  262. package/internal/components/dropdown-status/styles.selectors.js +2 -2
  263. package/internal/components/handle/styles.css.js +2 -2
  264. package/internal/components/handle/styles.scoped.css +7 -7
  265. package/internal/components/handle/styles.selectors.js +2 -2
  266. package/internal/components/menu-dropdown/styles.css.js +7 -7
  267. package/internal/components/menu-dropdown/styles.scoped.css +14 -14
  268. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  269. package/internal/components/option/styles.css.js +17 -17
  270. package/internal/components/option/styles.scoped.css +30 -30
  271. package/internal/components/option/styles.selectors.js +17 -17
  272. package/internal/components/options-list/styles.css.js +2 -2
  273. package/internal/components/options-list/styles.scoped.css +3 -3
  274. package/internal/components/options-list/styles.selectors.js +2 -2
  275. package/internal/components/panel-resize-handle/styles.css.js +5 -5
  276. package/internal/components/panel-resize-handle/styles.scoped.css +11 -11
  277. package/internal/components/panel-resize-handle/styles.selectors.js +5 -5
  278. package/internal/components/screenreader-only/styles.css.js +1 -1
  279. package/internal/components/screenreader-only/styles.scoped.css +2 -2
  280. package/internal/components/screenreader-only/styles.selectors.js +1 -1
  281. package/internal/components/selectable-item/styles.css.js +16 -16
  282. package/internal/components/selectable-item/styles.scoped.css +30 -30
  283. package/internal/components/selectable-item/styles.selectors.js +16 -16
  284. package/internal/components/token-list/styles.css.js +9 -9
  285. package/internal/components/token-list/styles.scoped.css +31 -31
  286. package/internal/components/token-list/styles.selectors.js +9 -9
  287. package/internal/environment.js +1 -1
  288. package/internal/environment.json +1 -1
  289. package/internal/hooks/use-component-analytics/index.d.ts +2 -0
  290. package/internal/hooks/use-component-analytics/index.d.ts.map +1 -0
  291. package/internal/hooks/use-component-analytics/index.js +11 -0
  292. package/internal/hooks/use-component-analytics/index.js.map +1 -0
  293. package/internal/manifest.json +1 -1
  294. package/key-value-pairs/styles.css.js +8 -8
  295. package/key-value-pairs/styles.scoped.css +10 -10
  296. package/key-value-pairs/styles.selectors.js +8 -8
  297. package/link/styles.css.js +20 -20
  298. package/link/styles.scoped.css +74 -74
  299. package/link/styles.selectors.js +20 -20
  300. package/mixed-line-bar-chart/styles.css.js +11 -11
  301. package/mixed-line-bar-chart/styles.scoped.css +18 -18
  302. package/mixed-line-bar-chart/styles.selectors.js +11 -11
  303. package/modal/styles.css.js +23 -23
  304. package/modal/styles.scoped.css +39 -39
  305. package/modal/styles.selectors.js +23 -23
  306. package/multiselect/styles.css.js +2 -2
  307. package/multiselect/styles.scoped.css +3 -3
  308. package/multiselect/styles.selectors.js +2 -2
  309. package/package.json +1 -1
  310. package/pagination/styles.css.js +9 -9
  311. package/pagination/styles.scoped.css +24 -24
  312. package/pagination/styles.selectors.js +9 -9
  313. package/pie-chart/styles.css.js +27 -27
  314. package/pie-chart/styles.scoped.css +49 -49
  315. package/pie-chart/styles.selectors.js +27 -27
  316. package/popover/styles.css.js +52 -52
  317. package/popover/styles.scoped.css +74 -74
  318. package/popover/styles.selectors.js +52 -52
  319. package/progress-bar/styles.css.js +19 -19
  320. package/progress-bar/styles.scoped.css +32 -32
  321. package/progress-bar/styles.selectors.js +19 -19
  322. package/prompt-input/styles.css.js +8 -8
  323. package/prompt-input/styles.scoped.css +20 -20
  324. package/prompt-input/styles.selectors.js +8 -8
  325. package/property-filter/filtering-token/styles.css.js +18 -18
  326. package/property-filter/filtering-token/styles.scoped.css +42 -42
  327. package/property-filter/filtering-token/styles.selectors.js +18 -18
  328. package/property-filter/styles.css.js +38 -38
  329. package/property-filter/styles.scoped.css +41 -41
  330. package/property-filter/styles.selectors.js +38 -38
  331. package/radio-group/styles.css.js +10 -10
  332. package/radio-group/styles.scoped.css +25 -25
  333. package/radio-group/styles.selectors.js +10 -10
  334. package/s3-resource-selector/s3-modal/styles.css.js +3 -3
  335. package/s3-resource-selector/s3-modal/styles.scoped.css +4 -4
  336. package/s3-resource-selector/s3-modal/styles.selectors.js +3 -3
  337. package/segmented-control/styles.css.js +15 -15
  338. package/segmented-control/styles.scoped.css +35 -35
  339. package/segmented-control/styles.selectors.js +15 -15
  340. package/select/parts/styles.css.js +21 -21
  341. package/select/parts/styles.scoped.css +23 -23
  342. package/select/parts/styles.selectors.js +21 -21
  343. package/select/styles.css.js +1 -1
  344. package/select/styles.scoped.css +2 -2
  345. package/select/styles.selectors.js +1 -1
  346. package/side-navigation/analytics-metadata/interfaces.d.ts +19 -0
  347. package/side-navigation/analytics-metadata/interfaces.d.ts.map +1 -0
  348. package/side-navigation/analytics-metadata/interfaces.js +4 -0
  349. package/side-navigation/analytics-metadata/interfaces.js.map +1 -0
  350. package/side-navigation/analytics-metadata/styles.css.js +7 -0
  351. package/side-navigation/analytics-metadata/styles.scoped.css +8 -0
  352. package/side-navigation/analytics-metadata/styles.selectors.js +8 -0
  353. package/side-navigation/index.d.ts.map +1 -1
  354. package/side-navigation/index.js +10 -1
  355. package/side-navigation/index.js.map +1 -1
  356. package/side-navigation/parts.d.ts +2 -1
  357. package/side-navigation/parts.d.ts.map +1 -1
  358. package/side-navigation/parts.js +42 -21
  359. package/side-navigation/parts.js.map +1 -1
  360. package/side-navigation/styles.css.js +30 -30
  361. package/side-navigation/styles.scoped.css +43 -43
  362. package/side-navigation/styles.selectors.js +30 -30
  363. package/slider/styles.css.js +26 -26
  364. package/slider/styles.scoped.css +77 -77
  365. package/slider/styles.selectors.js +26 -26
  366. package/space-between/styles.css.js +23 -23
  367. package/space-between/styles.scoped.css +25 -25
  368. package/space-between/styles.selectors.js +23 -23
  369. package/spinner/styles.css.js +13 -13
  370. package/spinner/styles.scoped.css +20 -20
  371. package/spinner/styles.selectors.js +13 -13
  372. package/split-panel/icons/styles.css.js +22 -22
  373. package/split-panel/icons/styles.scoped.css +25 -25
  374. package/split-panel/icons/styles.selectors.js +22 -22
  375. package/split-panel/styles.css.js +26 -26
  376. package/split-panel/styles.scoped.css +44 -44
  377. package/split-panel/styles.selectors.js +26 -26
  378. package/status-indicator/styles.css.js +23 -23
  379. package/status-indicator/styles.scoped.css +34 -30
  380. package/status-indicator/styles.selectors.js +23 -23
  381. package/table/body-cell/styles.css.js +47 -47
  382. package/table/body-cell/styles.scoped.css +307 -307
  383. package/table/body-cell/styles.selectors.js +47 -47
  384. package/table/expandable-rows/styles.css.js +3 -3
  385. package/table/expandable-rows/styles.scoped.css +14 -14
  386. package/table/expandable-rows/styles.selectors.js +3 -3
  387. package/table/header-cell/styles.css.js +26 -26
  388. package/table/header-cell/styles.scoped.css +75 -75
  389. package/table/header-cell/styles.selectors.js +26 -26
  390. package/table/interfaces.d.ts +1 -0
  391. package/table/interfaces.d.ts.map +1 -1
  392. package/table/interfaces.js.map +1 -1
  393. package/table/internal.d.ts.map +1 -1
  394. package/table/internal.js +20 -0
  395. package/table/internal.js.map +1 -1
  396. package/table/resizer/styles.css.js +8 -8
  397. package/table/resizer/styles.scoped.css +16 -16
  398. package/table/resizer/styles.selectors.js +8 -8
  399. package/table/selection/styles.css.js +3 -3
  400. package/table/selection/styles.scoped.css +4 -4
  401. package/table/selection/styles.selectors.js +3 -3
  402. package/table/sticky-scrollbar/styles.css.js +6 -6
  403. package/table/sticky-scrollbar/styles.scoped.css +8 -8
  404. package/table/sticky-scrollbar/styles.selectors.js +6 -6
  405. package/table/styles.css.js +34 -34
  406. package/table/styles.scoped.css +44 -44
  407. package/table/styles.selectors.js +34 -34
  408. package/tabs/styles.css.js +28 -28
  409. package/tabs/styles.scoped.css +52 -52
  410. package/tabs/styles.selectors.js +28 -28
  411. package/tag-editor/styles.css.js +3 -3
  412. package/tag-editor/styles.scoped.css +13 -13
  413. package/tag-editor/styles.selectors.js +3 -3
  414. package/text-content/styles.css.js +1 -1
  415. package/text-content/styles.scoped.css +65 -65
  416. package/text-content/styles.selectors.js +1 -1
  417. package/text-filter/styles.css.js +3 -3
  418. package/text-filter/styles.scoped.css +4 -4
  419. package/text-filter/styles.selectors.js +3 -3
  420. package/textarea/styles.css.js +5 -5
  421. package/textarea/styles.scoped.css +15 -15
  422. package/textarea/styles.selectors.js +5 -5
  423. package/tiles/styles.css.js +30 -30
  424. package/tiles/styles.scoped.css +81 -81
  425. package/tiles/styles.selectors.js +30 -30
  426. package/toggle/styles.css.js +10 -10
  427. package/toggle/styles.scoped.css +26 -26
  428. package/toggle/styles.selectors.js +10 -10
  429. package/token-group/styles.css.js +10 -10
  430. package/token-group/styles.scoped.css +23 -23
  431. package/token-group/styles.selectors.js +10 -10
  432. package/top-navigation/1.0-beta/styles.css.js +25 -25
  433. package/top-navigation/1.0-beta/styles.scoped.css +43 -43
  434. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  435. package/top-navigation/styles.css.js +47 -47
  436. package/top-navigation/styles.scoped.css +67 -67
  437. package/top-navigation/styles.selectors.js +47 -47
  438. package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
  439. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +22 -22
  440. package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
  441. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  442. package/tutorial-panel/components/tutorial-list/styles.scoped.css +28 -28
  443. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  444. package/tutorial-panel/styles.css.js +1 -1
  445. package/tutorial-panel/styles.scoped.css +2 -2
  446. package/tutorial-panel/styles.selectors.js +1 -1
  447. package/wizard/styles.css.js +30 -30
  448. package/wizard/styles.scoped.css +59 -59
  449. package/wizard/styles.selectors.js +30 -30
@@ -51,9 +51,9 @@ export type InternalBreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = B
51
51
  };
52
52
  export interface BreadcrumbItemProps<T extends BreadcrumbGroupProps.Item> {
53
53
  item: T;
54
- isDisplayed: boolean;
54
+ isTruncated?: boolean;
55
55
  isLast?: boolean;
56
- isCompressed?: boolean;
56
+ isGhost?: boolean;
57
57
  onClick?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;
58
58
  onFollow?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;
59
59
  }
@@ -66,5 +66,6 @@ export interface EllipsisDropdownProps {
66
66
  onDropdownItemFollow: CancelableEventHandler<{
67
67
  id: string;
68
68
  }>;
69
+ visible?: boolean;
69
70
  }
70
71
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/breadcrumb-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,CACnG,SAAQ,kBAAkB;IAC1B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,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IAAI,IACtG,oBAAoB,CAAC,CAAC,CAAC,GACrB,0BAA0B,GAAG;IAC3B,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C,CAAC;AAEN,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI;IACtE,IAAI,EAAE,CAAC,CAAC;IACR,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,sBAAsB,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,QAAQ,CAAC,EAAE,sBAAsB,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACpD,aAAa,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,mBAAmB,EAAE,sBAAsB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,sBAAsB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/breadcrumb-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { LinkItem } from '../button-dropdown/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nexport interface BreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>\n extends BaseComponentProps {\n /**\n * An array of breadcrumb items that describes the link hierarchy for this navigation.\n * Each option has the following properties:\n\n * * `text` (string) - Specifies the title text of the breadcrumb item.\n * * `href` (string) - Specifies the URL for the link in the breadcrumb item.\n * You should specify the link even if you have a click handler for a breadcrumb item\n * to ensure that valid markup is generated.\n\n * Note: The last breadcrumb item is automatically considered the current item, and it's\n * not a link.\n */\n items: ReadonlyArray<T>;\n /**\n * Provides an `aria-label` to the breadcrumb group that screen readers can read (for accessibility).\n */\n ariaLabel?: string;\n\n /**\n * Provides an `aria-label` to the ellipsis button that screen readers can read (for accessibility).\n * @i18n\n */\n expandAriaLabel?: string;\n /**\n * Called when the user clicks on a breadcrumb item.\n */\n onClick?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n /**\n * Called when the user clicks on a breadcrumb item with the left mouse button\n * without pressing modifier keys (that is, CTRL, ALT, SHIFT, META).\n */\n onFollow?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n}\n\nexport namespace BreadcrumbGroupProps {\n export interface Item {\n text: string;\n href: string;\n }\n\n export interface ClickDetail<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>\n extends BaseNavigationDetail {\n item: T;\n text: string;\n href: string;\n }\n}\n\nexport type InternalBreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item> =\n BreadcrumbGroupProps<T> &\n InternalBaseComponentProps & {\n __injectAnalyticsComponentMetadata?: boolean;\n };\n\nexport interface BreadcrumbItemProps<T extends BreadcrumbGroupProps.Item> {\n item: T;\n isDisplayed: boolean;\n isLast?: boolean;\n isCompressed?: boolean;\n onClick?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n onFollow?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n}\n\nexport interface EllipsisDropdownProps {\n ariaLabel?: BreadcrumbGroupProps['expandAriaLabel'];\n dropdownItems: ReadonlyArray<LinkItem>;\n onDropdownItemClick: CancelableEventHandler<{ id: string }>;\n onDropdownItemFollow: CancelableEventHandler<{ id: string }>;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/breadcrumb-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { LinkItem } from '../button-dropdown/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { BaseNavigationDetail, CancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nexport interface BreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>\n extends BaseComponentProps {\n /**\n * An array of breadcrumb items that describes the link hierarchy for this navigation.\n * Each option has the following properties:\n\n * * `text` (string) - Specifies the title text of the breadcrumb item.\n * * `href` (string) - Specifies the URL for the link in the breadcrumb item.\n * You should specify the link even if you have a click handler for a breadcrumb item\n * to ensure that valid markup is generated.\n\n * Note: The last breadcrumb item is automatically considered the current item, and it's\n * not a link.\n */\n items: ReadonlyArray<T>;\n /**\n * Provides an `aria-label` to the breadcrumb group that screen readers can read (for accessibility).\n */\n ariaLabel?: string;\n\n /**\n * Provides an `aria-label` to the ellipsis button that screen readers can read (for accessibility).\n * @i18n\n */\n expandAriaLabel?: string;\n /**\n * Called when the user clicks on a breadcrumb item.\n */\n onClick?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n /**\n * Called when the user clicks on a breadcrumb item with the left mouse button\n * without pressing modifier keys (that is, CTRL, ALT, SHIFT, META).\n */\n onFollow?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n}\n\nexport namespace BreadcrumbGroupProps {\n export interface Item {\n text: string;\n href: string;\n }\n\n export interface ClickDetail<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>\n extends BaseNavigationDetail {\n item: T;\n text: string;\n href: string;\n }\n}\n\nexport type InternalBreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item> =\n BreadcrumbGroupProps<T> &\n InternalBaseComponentProps & {\n __injectAnalyticsComponentMetadata?: boolean;\n };\n\nexport interface BreadcrumbItemProps<T extends BreadcrumbGroupProps.Item> {\n item: T;\n isTruncated?: boolean;\n isLast?: boolean;\n isGhost?: boolean;\n onClick?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n onFollow?: CancelableEventHandler<BreadcrumbGroupProps.ClickDetail<T>>;\n}\n\nexport interface EllipsisDropdownProps {\n ariaLabel?: BreadcrumbGroupProps['expandAriaLabel'];\n dropdownItems: ReadonlyArray<LinkItem>;\n onDropdownItemClick: CancelableEventHandler<{ id: string }>;\n onDropdownItemFollow: CancelableEventHandler<{ id: string }>;\n visible?: boolean;\n}\n"]}
@@ -3,6 +3,7 @@ interface FunnelBreadcrumbItemProps {
3
3
  text: string;
4
4
  last: boolean;
5
5
  hidden?: boolean;
6
+ ghost?: boolean;
6
7
  }
7
8
  export declare const FunnelBreadcrumbItem: React.ForwardRefExoticComponent<FunnelBreadcrumbItemProps & React.RefAttributes<HTMLSpanElement>>;
8
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"funnel.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/funnel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,oBAAoB,mGAiBhC,CAAC"}
1
+ {"version":3,"file":"funnel.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/funnel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,oBAAoB,mGAiBhC,CAAC"}
@@ -5,11 +5,11 @@ import clsx from 'clsx';
5
5
  import { DATA_ATTR_FUNNEL_KEY, FUNNEL_KEY_FUNNEL_NAME } from '../../internal/analytics/selectors';
6
6
  import analyticsSelectors from '../analytics-metadata/styles.css.js';
7
7
  import styles from './styles.css.js';
8
- export const FunnelBreadcrumbItem = React.forwardRef(({ text, hidden, last }, ref) => {
8
+ export const FunnelBreadcrumbItem = React.forwardRef(({ text, hidden, last, ghost }, ref) => {
9
9
  const funnelAttributes = {};
10
- if (last) {
10
+ if (last && !ghost) {
11
11
  funnelAttributes[DATA_ATTR_FUNNEL_KEY] = FUNNEL_KEY_FUNNEL_NAME;
12
12
  }
13
- return (React.createElement("span", Object.assign({}, funnelAttributes, { className: clsx(styles.text, hidden && styles['text-hidden'], analyticsSelectors['breadcrumb-item']), ref: ref }), text));
13
+ return (React.createElement("span", Object.assign({}, funnelAttributes, { className: clsx(styles.text, hidden && styles['text-hidden'], !ghost && analyticsSelectors['breadcrumb-item']), ref: ref }), text));
14
14
  });
15
15
  //# sourceMappingURL=funnel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"funnel.js","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/funnel.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAElG,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAClD,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IAC9B,MAAM,gBAAgB,GAA2B,EAAE,CAAC;IACpD,IAAI,IAAI,EAAE;QACR,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,sBAAsB,CAAC;KACjE;IAED,OAAO,CACL,8CACM,gBAAgB,IACpB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,EACpG,GAAG,EAAE,GAAG,KAEP,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { DATA_ATTR_FUNNEL_KEY, FUNNEL_KEY_FUNNEL_NAME } from '../../internal/analytics/selectors';\n\nimport analyticsSelectors from '../analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface FunnelBreadcrumbItemProps {\n text: string;\n last: boolean;\n hidden?: boolean;\n}\n\nexport const FunnelBreadcrumbItem = React.forwardRef<HTMLSpanElement, FunnelBreadcrumbItemProps>(\n ({ text, hidden, last }, ref) => {\n const funnelAttributes: Record<string, string> = {};\n if (last) {\n funnelAttributes[DATA_ATTR_FUNNEL_KEY] = FUNNEL_KEY_FUNNEL_NAME;\n }\n\n return (\n <span\n {...funnelAttributes}\n className={clsx(styles.text, hidden && styles['text-hidden'], analyticsSelectors['breadcrumb-item'])}\n ref={ref}\n >\n {text}\n </span>\n );\n }\n);\n"]}
1
+ {"version":3,"file":"funnel.js","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/funnel.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAElG,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,UAAU,CAClD,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrC,MAAM,gBAAgB,GAA2B,EAAE,CAAC;IACpD,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;QAClB,gBAAgB,CAAC,oBAAoB,CAAC,GAAG,sBAAsB,CAAC;KACjE;IAED,OAAO,CACL,8CACM,gBAAgB,IACpB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,IAAI,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,EAC9G,GAAG,EAAE,GAAG,KAEP,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { DATA_ATTR_FUNNEL_KEY, FUNNEL_KEY_FUNNEL_NAME } from '../../internal/analytics/selectors';\n\nimport analyticsSelectors from '../analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface FunnelBreadcrumbItemProps {\n text: string;\n last: boolean;\n hidden?: boolean;\n ghost?: boolean;\n}\n\nexport const FunnelBreadcrumbItem = React.forwardRef<HTMLSpanElement, FunnelBreadcrumbItemProps>(\n ({ text, hidden, last, ghost }, ref) => {\n const funnelAttributes: Record<string, string> = {};\n if (last && !ghost) {\n funnelAttributes[DATA_ATTR_FUNNEL_KEY] = FUNNEL_KEY_FUNNEL_NAME;\n }\n\n return (\n <span\n {...funnelAttributes}\n className={clsx(styles.text, hidden && styles['text-hidden'], !ghost && analyticsSelectors['breadcrumb-item'])}\n ref={ref}\n >\n {text}\n </span>\n );\n }\n);\n"]}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';
3
- export declare function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({ item, onClick, onFollow, isDisplayed, isLast, isCompressed, }: BreadcrumbItemProps<T>): JSX.Element;
3
+ export declare function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({ item, onClick, onFollow, isLast, isGhost, isTruncated, }: BreadcrumbItemProps<T>): JSX.Element;
4
4
  //# sourceMappingURL=item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAwF1E,wBAAgB,cAAc,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,EAAE,EAClE,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,MAAc,EACd,YAAoB,GACrB,EAAE,mBAAmB,CAAC,CAAC,CAAC,eAsCxB"}
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAkE1E,wBAAgB,cAAc,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,EAAE,EAClE,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,MAAc,EACd,OAAe,EACf,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,eAiCxB"}
@@ -5,55 +5,36 @@ import React, { useEffect, useRef, useState } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import InternalIcon from '../../icon/internal';
7
7
  import Tooltip from '../../internal/components/tooltip';
8
+ import { registerTooltip } from '../../internal/components/tooltip/registry';
8
9
  import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
9
10
  import { getEventDetail } from '../utils';
10
11
  import { FunnelBreadcrumbItem } from './funnel';
11
12
  import styles from './styles.css.js';
12
- const BreadcrumbItemWithPopover = (_a) => {
13
- var { item, isLast, anchorAttributes } = _a, itemAttributes = __rest(_a, ["item", "isLast", "anchorAttributes"]);
13
+ const BreadcrumbItemWithPopover = ({ item, isLast, anchorAttributes, }) => {
14
14
  const [showPopover, setShowPopover] = useState(false);
15
15
  const textRef = useRef(null);
16
- const virtualTextRef = useRef(null);
17
- const isTruncated = (textRef, virtualTextRef) => {
18
- if (!textRef || !virtualTextRef || !textRef.current || !virtualTextRef.current) {
19
- return false;
20
- }
21
- const virtualTextWidth = virtualTextRef.current.getBoundingClientRect().width;
22
- const textWidth = textRef.current.getBoundingClientRect().width;
23
- if (virtualTextWidth > textWidth) {
24
- return true;
25
- }
26
- return false;
27
- };
28
- const popoverContent = React.createElement(Tooltip, { trackRef: textRef, value: item.text });
16
+ const popoverContent = React.createElement(Tooltip, { trackRef: textRef, value: item.text, size: "medium" });
29
17
  useEffect(() => {
30
- const onKeyDown = (event) => {
31
- if (event.key === 'Escape') {
32
- setShowPopover(false);
33
- }
34
- };
35
18
  if (showPopover) {
36
- document.addEventListener('keydown', onKeyDown);
19
+ return registerTooltip(() => {
20
+ setShowPopover(false);
21
+ });
37
22
  }
38
- return () => {
39
- document.removeEventListener('keydown', onKeyDown);
40
- };
41
23
  }, [showPopover]);
42
24
  return (React.createElement(React.Fragment, null,
43
- React.createElement(Item, Object.assign({ isLast: isLast }, itemAttributes, { onFocus: () => {
44
- isTruncated(textRef, virtualTextRef) && setShowPopover(true);
25
+ React.createElement(Item, Object.assign({ isLast: isLast, onFocus: () => {
26
+ setShowPopover(true);
45
27
  }, onBlur: () => setShowPopover(false), onMouseEnter: () => {
46
- isTruncated(textRef, virtualTextRef) && setShowPopover(true);
47
- }, onMouseLeave: () => setShowPopover(false), anchorAttributes: anchorAttributes }),
48
- React.createElement(FunnelBreadcrumbItem, { ref: textRef, text: item.text, last: isLast }),
49
- React.createElement("span", { className: styles['virtual-item'], ref: virtualTextRef }, item.text)),
28
+ setShowPopover(true);
29
+ }, onMouseLeave: () => setShowPopover(false), anchorAttributes: anchorAttributes }, (isLast ? { tabIndex: 0 } : {})),
30
+ React.createElement(FunnelBreadcrumbItem, { ref: textRef, text: item.text, last: isLast })),
50
31
  showPopover && popoverContent));
51
32
  };
52
33
  const Item = (_a) => {
53
34
  var { anchorAttributes, children, isLast } = _a, itemAttributes = __rest(_a, ["anchorAttributes", "children", "isLast"]);
54
- return isLast ? (React.createElement("span", Object.assign({}, itemAttributes), children)) : (React.createElement("a", Object.assign({}, itemAttributes, anchorAttributes), children));
35
+ return isLast ? (React.createElement("span", Object.assign({ className: styles.anchor }, itemAttributes), children)) : (React.createElement("a", Object.assign({ className: styles.anchor }, itemAttributes, anchorAttributes), children));
55
36
  };
56
- export function BreadcrumbItem({ item, onClick, onFollow, isDisplayed, isLast = false, isCompressed = false, }) {
37
+ export function BreadcrumbItem({ item, onClick, onFollow, isLast = false, isGhost = false, isTruncated = false, }) {
57
38
  const preventDefault = (event) => event.preventDefault();
58
39
  const onClickHandler = (event) => {
59
40
  if (isPlainLeftClick(event)) {
@@ -61,16 +42,16 @@ export function BreadcrumbItem({ item, onClick, onFollow, isDisplayed, isLast =
61
42
  }
62
43
  fireCancelableEvent(onClick, getEventDetail(item), event);
63
44
  };
64
- const itemAttributes = {
65
- className: clsx(styles.anchor, { [styles.compressed]: isCompressed }),
66
- };
67
45
  const anchorAttributes = {
68
46
  href: item.href || '#',
69
47
  onClick: isLast ? preventDefault : onClickHandler,
70
48
  };
71
- return (React.createElement("div", { className: clsx(styles.breadcrumb, isLast && styles.last) },
72
- isDisplayed && isCompressed ? (React.createElement(BreadcrumbItemWithPopover, Object.assign({ item: item, isLast: isLast, anchorAttributes: anchorAttributes }, itemAttributes))) : (React.createElement(Item, Object.assign({ isLast: isLast, anchorAttributes: anchorAttributes }, itemAttributes),
73
- React.createElement(FunnelBreadcrumbItem, { text: item.text, last: isLast }))),
49
+ if (isGhost) {
50
+ anchorAttributes.tabIndex = -1;
51
+ }
52
+ return (React.createElement("div", { className: clsx(!isGhost && styles.breadcrumb, isGhost && styles['ghost-breadcrumb'], isLast && styles.last) },
53
+ isTruncated && !isGhost ? (React.createElement(BreadcrumbItemWithPopover, { item: item, isLast: isLast, anchorAttributes: anchorAttributes })) : (React.createElement(Item, { isLast: isLast, anchorAttributes: anchorAttributes },
54
+ React.createElement(FunnelBreadcrumbItem, { text: item.text, last: isLast, ghost: isGhost }))),
74
55
  !isLast ? (React.createElement("span", { className: styles.icon },
75
56
  React.createElement(InternalIcon, { name: "angle-right" }))) : null));
76
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sourceRoot":"","sources":["../../../../src/breadcrumb-group/item/item.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,OAAO,MAAM,mCAAmC,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,yBAAyB,GAAG,CAAsC,EAKpC,EAAE,EAAE;QALgC,EACtE,IAAI,EACJ,MAAM,EACN,gBAAgB,OAEkB,EAD/B,cAAc,cAJqD,sCAKvE,CADkB;IAEjB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC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on.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport Tooltip from '../../internal/components/tooltip';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';\nimport { getEventDetail } from '../utils';\nimport { FunnelBreadcrumbItem } from './funnel';\n\nimport styles from './styles.css.js';\n\ntype BreadcrumbItemWithPopoverProps<T extends BreadcrumbGroupProps.Item> = React.HTMLAttributes<HTMLElement> & {\n item: T;\n isLast: boolean;\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n};\n\nconst BreadcrumbItemWithPopover = <T extends BreadcrumbGroupProps.Item>({\n item,\n isLast,\n anchorAttributes,\n ...itemAttributes\n}: BreadcrumbItemWithPopoverProps<T>) => {\n const [showPopover, setShowPopover] = useState(false);\n const textRef = useRef<HTMLElement>(null);\n const virtualTextRef = useRef<HTMLElement>(null);\n\n const isTruncated = (textRef: React.RefObject<HTMLElement>, virtualTextRef: React.RefObject<HTMLElement>) => {\n if (!textRef || !virtualTextRef || !textRef.current || !virtualTextRef.current) {\n return false;\n }\n const virtualTextWidth = virtualTextRef.current.getBoundingClientRect().width;\n const textWidth = textRef.current.getBoundingClientRect().width;\n if (virtualTextWidth > textWidth) {\n return true;\n }\n return false;\n };\n\n const popoverContent = <Tooltip trackRef={textRef} value={item.text} />;\n\n useEffect(() => {\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setShowPopover(false);\n }\n };\n if (showPopover) {\n document.addEventListener('keydown', onKeyDown);\n }\n return () => {\n document.removeEventListener('keydown', onKeyDown);\n };\n }, [showPopover]);\n\n return (\n <>\n <Item\n isLast={isLast}\n {...itemAttributes}\n onFocus={() => {\n isTruncated(textRef, virtualTextRef) && setShowPopover(true);\n }}\n onBlur={() => setShowPopover(false)}\n onMouseEnter={() => {\n isTruncated(textRef, virtualTextRef) && setShowPopover(true);\n }}\n onMouseLeave={() => setShowPopover(false)}\n anchorAttributes={anchorAttributes}\n >\n <FunnelBreadcrumbItem ref={textRef} text={item.text} last={isLast} />\n <span className={styles['virtual-item']} ref={virtualTextRef}>\n {item.text}\n </span>\n </Item>\n {showPopover && popoverContent}\n </>\n );\n};\n\ntype ItemProps = React.HTMLAttributes<HTMLElement> & {\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n isLast: boolean;\n};\nconst Item = ({ anchorAttributes, children, isLast, ...itemAttributes }: ItemProps) =>\n isLast ? (\n <span {...itemAttributes}>{children}</span>\n ) : (\n <a {...itemAttributes} {...anchorAttributes}>\n {children}\n </a>\n );\n\nexport function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({\n item,\n onClick,\n onFollow,\n isDisplayed,\n isLast = false,\n isCompressed = false,\n}: BreadcrumbItemProps<T>) {\n const preventDefault = (event: React.MouseEvent) => event.preventDefault();\n const onClickHandler = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, getEventDetail(item), event);\n }\n fireCancelableEvent(onClick, getEventDetail(item), event);\n };\n\n const itemAttributes: React.HTMLAttributes<HTMLElement> = {\n className: clsx(styles.anchor, { [styles.compressed]: isCompressed }),\n };\n const anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> = {\n href: item.href || '#',\n onClick: isLast ? preventDefault : onClickHandler,\n };\n\n return (\n <div className={clsx(styles.breadcrumb, isLast && styles.last)}>\n {isDisplayed && isCompressed ? (\n <BreadcrumbItemWithPopover\n item={item}\n isLast={isLast}\n anchorAttributes={anchorAttributes}\n {...itemAttributes}\n />\n ) : (\n <Item isLast={isLast} anchorAttributes={anchorAttributes} {...itemAttributes}>\n <FunnelBreadcrumbItem text={item.text} last={isLast} />\n </Item>\n )}\n {!isLast ? (\n <span className={styles.icon}>\n <InternalIcon name=\"angle-right\" />\n </span>\n ) : null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affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalIcon from '../../icon/internal';\nimport Tooltip from '../../internal/components/tooltip';\nimport { registerTooltip } from '../../internal/components/tooltip/registry';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';\nimport { getEventDetail } from '../utils';\nimport { FunnelBreadcrumbItem } from './funnel';\n\nimport styles from './styles.css.js';\n\ninterface BreadcrumbItemWithPopoverProps<T extends BreadcrumbGroupProps.Item> {\n item: T;\n isLast: boolean;\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n}\n\nconst BreadcrumbItemWithPopover = <T extends BreadcrumbGroupProps.Item>({\n item,\n isLast,\n anchorAttributes,\n}: BreadcrumbItemWithPopoverProps<T>) => {\n const [showPopover, setShowPopover] = useState(false);\n const textRef = useRef<HTMLElement>(null);\n const popoverContent = <Tooltip trackRef={textRef} value={item.text} size=\"medium\" />;\n\n useEffect(() => {\n if (showPopover) {\n return registerTooltip(() => {\n setShowPopover(false);\n });\n }\n }, [showPopover]);\n\n return (\n <>\n <Item\n isLast={isLast}\n onFocus={() => {\n setShowPopover(true);\n }}\n onBlur={() => setShowPopover(false)}\n onMouseEnter={() => {\n setShowPopover(true);\n }}\n onMouseLeave={() => setShowPopover(false)}\n anchorAttributes={anchorAttributes}\n {...(isLast ? { tabIndex: 0 } : {})}\n >\n <FunnelBreadcrumbItem ref={textRef} text={item.text} last={isLast} />\n </Item>\n {showPopover && popoverContent}\n </>\n );\n};\n\ntype ItemProps = React.HTMLAttributes<HTMLElement> & {\n anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement>;\n isLast: boolean;\n};\nconst Item = ({ anchorAttributes, children, isLast, ...itemAttributes }: ItemProps) =>\n isLast ? (\n <span className={styles.anchor} {...itemAttributes}>\n {children}\n </span>\n ) : (\n <a className={styles.anchor} {...itemAttributes} {...anchorAttributes}>\n {children}\n </a>\n );\n\nexport function BreadcrumbItem<T extends BreadcrumbGroupProps.Item>({\n item,\n onClick,\n onFollow,\n isLast = false,\n isGhost = false,\n isTruncated = false,\n}: BreadcrumbItemProps<T>) {\n const preventDefault = (event: React.MouseEvent) => event.preventDefault();\n const onClickHandler = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(onFollow, getEventDetail(item), event);\n }\n fireCancelableEvent(onClick, getEventDetail(item), event);\n };\n\n const anchorAttributes: React.AnchorHTMLAttributes<HTMLAnchorElement> = {\n href: item.href || '#',\n onClick: isLast ? preventDefault : onClickHandler,\n };\n if (isGhost) {\n anchorAttributes.tabIndex = -1;\n }\n\n return (\n <div className={clsx(!isGhost && styles.breadcrumb, isGhost && styles['ghost-breadcrumb'], isLast && styles.last)}>\n {isTruncated && !isGhost ? (\n <BreadcrumbItemWithPopover item={item} isLast={isLast} anchorAttributes={anchorAttributes} />\n ) : (\n <Item isLast={isLast} anchorAttributes={anchorAttributes}>\n <FunnelBreadcrumbItem text={item.text} last={isLast} ghost={isGhost} />\n </Item>\n )}\n {!isLast ? (\n <span className={styles.icon}>\n <InternalIcon name=\"angle-right\" />\n </span>\n ) : null}\n </div>\n );\n}\n"]}
@@ -1,14 +1,13 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "link": "awsui_link_1kosq_15j42_141",
5
- "breadcrumb": "awsui_breadcrumb_1kosq_15j42_145",
6
- "icon": "awsui_icon_1kosq_15j42_148",
7
- "anchor": "awsui_anchor_1kosq_15j42_153",
8
- "last": "awsui_last_1kosq_15j42_199",
9
- "compressed": "awsui_compressed_1kosq_15j42_209",
10
- "text": "awsui_text_1kosq_15j42_213",
11
- "virtual-item": "awsui_virtual-item_1kosq_15j42_220",
12
- "text-hidden": "awsui_text-hidden_1kosq_15j42_227"
4
+ "link": "awsui_link_1kosq_1k093_141",
5
+ "breadcrumb": "awsui_breadcrumb_1kosq_1k093_145",
6
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1k093_146",
7
+ "icon": "awsui_icon_1kosq_1k093_149",
8
+ "anchor": "awsui_anchor_1kosq_1k093_155",
9
+ "text": "awsui_text_1kosq_1k093_202",
10
+ "last": "awsui_last_1kosq_1k093_221",
11
+ "text-hidden": "awsui_text-hidden_1kosq_1k093_233"
13
12
  };
14
13
 
@@ -136,21 +136,28 @@
136
136
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
137
  SPDX-License-Identifier: Apache-2.0
138
138
  */
139
- /* Style used for links in slots/components that are text heavy, to help links stand out among
139
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
140
140
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
141
- .awsui_link_1kosq_15j42_141:not(#\9):after {
141
+ .awsui_link_1kosq_1k093_141:not(#\9):after {
142
142
  display: none;
143
143
  }
144
144
 
145
- .awsui_breadcrumb_1kosq_15j42_145:not(#\9) {
145
+ .awsui_breadcrumb_1kosq_1k093_145:not(#\9),
146
+ .awsui_ghost-breadcrumb_1kosq_1k093_146:not(#\9) {
146
147
  display: flex;
147
148
  }
148
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_icon_1kosq_15j42_148:not(#\9) {
149
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_icon_1kosq_1k093_149:not(#\9),
150
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_icon_1kosq_1k093_149:not(#\9) {
149
151
  margin-block: 0;
150
152
  margin-inline: var(--space-xs-zb16t3, 8px);
151
153
  color: var(--color-text-breadcrumb-icon-ma8w3r, #7d8998);
152
154
  }
153
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9) {
155
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9),
156
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9) {
157
+ min-inline-size: 0;
158
+ overflow: hidden;
159
+ text-underline-offset: 0.25em;
160
+ text-decoration-thickness: 1px;
154
161
  color: var(--color-text-link-default-latg1a, #0972d3);
155
162
  font-weight: inherit;
156
163
  letter-spacing: normal;
@@ -160,34 +167,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
160
167
  transition-property: color, text-decoration;
161
168
  transition-property: color, text-decoration, -webkit-text-decoration;
162
169
  transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
163
- text-underline-offset: 0.25em;
164
- text-decoration-thickness: 1px;
165
170
  }
166
171
  @media (prefers-reduced-motion: reduce) {
167
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9) {
172
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9),
173
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9) {
168
174
  animation: none;
169
175
  transition: none;
170
176
  }
171
177
  }
172
- .awsui-motion-disabled .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9) {
178
+ .awsui-motion-disabled .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9) {
173
179
  animation: none;
174
180
  transition: none;
175
181
  }
176
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):hover {
182
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):hover,
183
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):hover {
177
184
  cursor: pointer;
178
185
  color: var(--color-text-link-hover-8j6p14, #033160);
179
186
  }
180
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):focus {
187
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus,
188
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus {
181
189
  outline: none;
182
190
  }
183
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):active {
191
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):active,
192
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):active {
184
193
  color: var(--color-text-link-hover-8j6p14, #033160);
185
194
  }
186
- .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):active, .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):focus, .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):hover {
195
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):active, .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus, .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):hover {
187
196
  text-decoration-line: underline;
188
197
  text-decoration-color: currentColor;
189
198
  }
190
- body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_15j42_145 > .awsui_anchor_1kosq_15j42_153:not(#\9):focus {
199
+ .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155 > .awsui_text_1kosq_1k093_202:not(#\9),
200
+ .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155 > .awsui_text_1kosq_1k093_202:not(#\9) {
201
+ overflow: hidden;
202
+ text-overflow: ellipsis;
203
+ white-space: nowrap;
204
+ display: block;
205
+ }
206
+ body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_1k093_145 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus,
207
+ body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_1k093_146 > .awsui_anchor_1kosq_1k093_155:not(#\9):focus {
191
208
  outline: thin dotted;
192
209
  outline: var(--border-link-focus-ring-outline-kkfop6, 0);
193
210
  outline-offset: 2px;
@@ -198,34 +215,18 @@ body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_15j42_145 > .awsui_a
198
215
  border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
199
216
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-v8hkrl, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
200
217
  }
201
- .awsui_breadcrumb_1kosq_15j42_145.awsui_last_1kosq_15j42_199 > .awsui_icon_1kosq_15j42_148:not(#\9) {
218
+ .awsui_breadcrumb_1kosq_1k093_145.awsui_last_1kosq_1k093_221 > .awsui_icon_1kosq_1k093_149:not(#\9),
219
+ .awsui_ghost-breadcrumb_1kosq_1k093_146.awsui_last_1kosq_1k093_221 > .awsui_icon_1kosq_1k093_149:not(#\9) {
202
220
  display: none;
203
221
  }
204
- .awsui_breadcrumb_1kosq_15j42_145.awsui_last_1kosq_15j42_199 > .awsui_anchor_1kosq_15j42_153:not(#\9) {
222
+ .awsui_breadcrumb_1kosq_1k093_145.awsui_last_1kosq_1k093_221 > .awsui_anchor_1kosq_1k093_155:not(#\9),
223
+ .awsui_ghost-breadcrumb_1kosq_1k093_146.awsui_last_1kosq_1k093_221 > .awsui_anchor_1kosq_1k093_155:not(#\9) {
205
224
  color: var(--color-text-breadcrumb-current-bnqeha, #5f6b7a);
206
225
  font-weight: 700;
207
226
  text-decoration: none;
208
227
  cursor: default;
209
228
  }
210
229
 
211
- .awsui_compressed_1kosq_15j42_209:not(#\9) {
212
- min-inline-size: 0;
213
- overflow: hidden;
214
- }
215
- .awsui_compressed_1kosq_15j42_209 > .awsui_text_1kosq_15j42_213:not(#\9) {
216
- overflow: hidden;
217
- text-overflow: ellipsis;
218
- white-space: nowrap;
219
- display: block;
220
- }
221
-
222
- .awsui_virtual-item_1kosq_15j42_220:not(#\9) {
223
- position: absolute !important;
224
- inset-block-start: -9999px !important;
225
- inset-inline-start: -9999px !important;
226
- visibility: hidden;
227
- }
228
-
229
- .awsui_text-hidden_1kosq_15j42_227:not(#\9) {
230
+ .awsui_text-hidden_1kosq_1k093_233:not(#\9) {
230
231
  display: none;
231
232
  }
@@ -2,14 +2,13 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "link": "awsui_link_1kosq_15j42_141",
6
- "breadcrumb": "awsui_breadcrumb_1kosq_15j42_145",
7
- "icon": "awsui_icon_1kosq_15j42_148",
8
- "anchor": "awsui_anchor_1kosq_15j42_153",
9
- "last": "awsui_last_1kosq_15j42_199",
10
- "compressed": "awsui_compressed_1kosq_15j42_209",
11
- "text": "awsui_text_1kosq_15j42_213",
12
- "virtual-item": "awsui_virtual-item_1kosq_15j42_220",
13
- "text-hidden": "awsui_text-hidden_1kosq_15j42_227"
5
+ "link": "awsui_link_1kosq_1k093_141",
6
+ "breadcrumb": "awsui_breadcrumb_1kosq_1k093_145",
7
+ "ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_1k093_146",
8
+ "icon": "awsui_icon_1kosq_1k093_149",
9
+ "anchor": "awsui_anchor_1kosq_1k093_155",
10
+ "text": "awsui_text_1kosq_1k093_202",
11
+ "last": "awsui_last_1kosq_1k093_221",
12
+ "text-hidden": "awsui_text-hidden_1kosq_1k093_233"
14
13
  };
15
14
 
@@ -1,12 +1,13 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "breadcrumb-group": "awsui_breadcrumb-group_d19fg_dhp0d_141",
5
- "item": "awsui_item_d19fg_dhp0d_179",
6
- "breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_dhp0d_214",
7
- "ellipsis": "awsui_ellipsis_d19fg_dhp0d_226",
8
- "icon": "awsui_icon_d19fg_dhp0d_236",
9
- "mobile": "awsui_mobile_d19fg_dhp0d_241",
10
- "mobile-short": "awsui_mobile-short_d19fg_dhp0d_254"
4
+ "breadcrumb-group": "awsui_breadcrumb-group_d19fg_1sf7w_141",
5
+ "breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_1sf7w_179",
6
+ "ghost": "awsui_ghost_d19fg_1sf7w_190",
7
+ "item": "awsui_item_d19fg_1sf7w_195",
8
+ "ellipsis": "awsui_ellipsis_d19fg_1sf7w_196",
9
+ "hide": "awsui_hide_d19fg_1sf7w_203",
10
+ "visible": "awsui_visible_d19fg_1sf7w_209",
11
+ "icon": "awsui_icon_d19fg_1sf7w_213"
11
12
  };
12
13
 
@@ -136,9 +136,9 @@
136
136
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
137
137
  SPDX-License-Identifier: Apache-2.0
138
138
  */
139
- /* Style used for links in slots/components that are text heavy, to help links stand out among
139
+ /* Style used for links in slots/components that are text heavy, to help links stand out among
140
140
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
141
- .awsui_breadcrumb-group_d19fg_dhp0d_141:not(#\9) {
141
+ .awsui_breadcrumb-group_d19fg_1sf7w_141:not(#\9) {
142
142
  border-collapse: separate;
143
143
  border-spacing: 0;
144
144
  box-sizing: border-box;
@@ -177,43 +177,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
177
177
  padding-block: var(--space-xxs-p8yyaw, 4px);
178
178
  padding-inline: 0;
179
179
  }
180
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_item_d19fg_dhp0d_179:not(#\9) {
181
- border-collapse: separate;
182
- border-spacing: 0;
183
- box-sizing: border-box;
184
- caption-side: top;
185
- cursor: auto;
186
- direction: inherit;
187
- empty-cells: show;
188
- font-family: serif;
189
- font-size: medium;
190
- font-style: normal;
191
- font-variant: normal;
192
- font-weight: 400;
193
- font-stretch: normal;
194
- line-height: normal;
195
- -webkit-hyphens: none;
196
- hyphens: none;
197
- letter-spacing: normal;
198
- list-style: disc outside none;
199
- tab-size: 8;
200
- text-align: start;
201
- text-indent: 0;
202
- text-shadow: none;
203
- text-transform: none;
204
- visibility: visible;
205
- white-space: normal;
206
- word-spacing: normal;
207
- font-size: var(--font-size-body-m-x4okxb, 14px);
208
- line-height: var(--line-height-body-m-30ar75, 20px);
209
- color: var(--color-text-body-default-at06ol, #000716);
210
- font-weight: 400;
211
- font-family: var(--font-family-base-dnvic8, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
212
- -webkit-font-smoothing: auto;
213
- -moz-osx-font-smoothing: auto;
214
- display: inline;
215
- }
216
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214:not(#\9) {
180
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179:not(#\9) {
217
181
  display: flex;
218
182
  align-items: center;
219
183
  padding-block: 0;
@@ -222,37 +186,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
222
186
  margin-inline: 0;
223
187
  list-style: none;
224
188
  inline-size: 100%;
189
+ flex-wrap: nowrap;
190
+ }
191
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179.awsui_ghost_d19fg_1sf7w_190:not(#\9) {
225
192
  flex-wrap: wrap;
193
+ position: absolute;
194
+ inset-inline-start: -9000px;
226
195
  }
227
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_item_d19fg_dhp0d_179:not(#\9),
228
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_ellipsis_d19fg_dhp0d_226:not(#\9) {
196
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_item_d19fg_1sf7w_195:not(#\9),
197
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_ellipsis_d19fg_1sf7w_196:not(#\9) {
229
198
  display: inline-block;
230
199
  padding-block: 0;
231
200
  padding-inline: 0;
232
201
  margin-block: 0;
233
202
  margin-inline: 0;
234
203
  }
235
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_ellipsis_d19fg_dhp0d_226:not(#\9) {
204
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_item_d19fg_1sf7w_195.awsui_hide_d19fg_1sf7w_203:not(#\9) {
236
205
  display: none;
237
206
  }
238
- .awsui_breadcrumb-group_d19fg_dhp0d_141 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_ellipsis_d19fg_dhp0d_226 > .awsui_icon_d19fg_dhp0d_236:not(#\9) {
239
- margin-block: 0;
240
- margin-inline: 10px;
241
- color: var(--color-text-breadcrumb-icon-ma8w3r, #7d8998);
242
- }
243
- .awsui_breadcrumb-group_d19fg_dhp0d_141.awsui_mobile_d19fg_dhp0d_241 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214:not(#\9) {
244
- flex-wrap: nowrap;
207
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_ellipsis_d19fg_1sf7w_196:not(#\9) {
208
+ display: none;
245
209
  }
246
- .awsui_breadcrumb-group_d19fg_dhp0d_141.awsui_mobile_d19fg_dhp0d_241 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_ellipsis_d19fg_dhp0d_226:not(#\9) {
210
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_ellipsis_d19fg_1sf7w_196.awsui_visible_d19fg_1sf7w_209:not(#\9) {
247
211
  display: flex;
248
212
  flex-shrink: 0;
249
213
  }
250
- .awsui_breadcrumb-group_d19fg_dhp0d_141.awsui_mobile_d19fg_dhp0d_241 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_item_d19fg_dhp0d_179:not(#\9) {
251
- min-inline-size: 0;
252
- }
253
- .awsui_breadcrumb-group_d19fg_dhp0d_141.awsui_mobile_d19fg_dhp0d_241 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_item_d19fg_dhp0d_179:not(#\9):not(:first-child):not(:last-child) {
254
- display: none;
255
- }
256
- .awsui_breadcrumb-group_d19fg_dhp0d_141.awsui_mobile-short_d19fg_dhp0d_254 > .awsui_breadcrumb-group-list_d19fg_dhp0d_214 > .awsui_ellipsis_d19fg_dhp0d_226:not(#\9) {
257
- display: none;
214
+ .awsui_breadcrumb-group_d19fg_1sf7w_141 > .awsui_breadcrumb-group-list_d19fg_1sf7w_179 > .awsui_ellipsis_d19fg_1sf7w_196 > .awsui_icon_d19fg_1sf7w_213:not(#\9) {
215
+ margin-block: 0;
216
+ margin-inline: 10px;
217
+ color: var(--color-text-breadcrumb-icon-ma8w3r, #7d8998);
258
218
  }
@@ -2,12 +2,13 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "breadcrumb-group": "awsui_breadcrumb-group_d19fg_dhp0d_141",
6
- "item": "awsui_item_d19fg_dhp0d_179",
7
- "breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_dhp0d_214",
8
- "ellipsis": "awsui_ellipsis_d19fg_dhp0d_226",
9
- "icon": "awsui_icon_d19fg_dhp0d_236",
10
- "mobile": "awsui_mobile_d19fg_dhp0d_241",
11
- "mobile-short": "awsui_mobile-short_d19fg_dhp0d_254"
5
+ "breadcrumb-group": "awsui_breadcrumb-group_d19fg_1sf7w_141",
6
+ "breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_1sf7w_179",
7
+ "ghost": "awsui_ghost_d19fg_1sf7w_190",
8
+ "item": "awsui_item_d19fg_1sf7w_195",
9
+ "ellipsis": "awsui_ellipsis_d19fg_1sf7w_196",
10
+ "hide": "awsui_hide_d19fg_1sf7w_203",
11
+ "visible": "awsui_visible_d19fg_1sf7w_209",
12
+ "icon": "awsui_icon_d19fg_1sf7w_213"
12
13
  };
13
14
 
@@ -4,4 +4,9 @@ export declare const getEventDetail: <T extends BreadcrumbGroupProps.Item>(item:
4
4
  text: string;
5
5
  href: string;
6
6
  };
7
+ export declare const getItemsDisplayProperties: (itemsWidths: Array<number>, navWidth: number | null) => {
8
+ shrinkFactors: number[];
9
+ minWidths: number[];
10
+ collapsed: number;
11
+ };
7
12
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;CAIzB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;CAIzB,CAAC;AAKH,eAAO,MAAM,yBAAyB,gBAAiB,MAAM,MAAM,CAAC,YAAY,MAAM,GAAG,IAAI;;;;CAW5F,CAAC"}