@cloudscape-design/components 3.0.244 → 3.0.246

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/annotation-context/annotation/annotation-trigger.d.ts.map +1 -1
  2. package/annotation-context/annotation/annotation-trigger.js +1 -3
  3. package/annotation-context/annotation/annotation-trigger.js.map +1 -1
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +29 -29
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/app-layout/visual-refresh/styles.css.js +61 -61
  8. package/app-layout/visual-refresh/styles.scoped.css +151 -151
  9. package/app-layout/visual-refresh/styles.selectors.js +61 -61
  10. package/app-layout/visual-refresh/trigger-button.d.ts.map +1 -1
  11. package/app-layout/visual-refresh/trigger-button.js +2 -4
  12. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  13. package/breadcrumb-group/item/item.d.ts.map +1 -1
  14. package/breadcrumb-group/item/item.js +2 -5
  15. package/breadcrumb-group/item/item.js.map +1 -1
  16. package/breadcrumb-group/item/styles.css.js +9 -9
  17. package/breadcrumb-group/item/styles.scoped.css +17 -17
  18. package/breadcrumb-group/item/styles.selectors.js +9 -9
  19. package/button/internal.d.ts.map +1 -1
  20. package/button/internal.js +2 -3
  21. package/button/internal.js.map +1 -1
  22. package/button/styles.css.js +19 -18
  23. package/button/styles.scoped.css +136 -136
  24. package/button/styles.selectors.js +19 -18
  25. package/calendar/grid/index.d.ts.map +1 -1
  26. package/calendar/grid/index.js +2 -4
  27. package/calendar/grid/index.js.map +1 -1
  28. package/calendar/styles.css.js +18 -18
  29. package/calendar/styles.scoped.css +38 -38
  30. package/calendar/styles.selectors.js +18 -18
  31. package/code-editor/styles.css.js +32 -32
  32. package/code-editor/styles.scoped.css +109 -109
  33. package/code-editor/styles.selectors.js +32 -32
  34. package/code-editor/tab-button.d.ts.map +1 -1
  35. package/code-editor/tab-button.js +2 -4
  36. package/code-editor/tab-button.js.map +1 -1
  37. package/date-picker/index.d.ts.map +1 -1
  38. package/date-picker/index.js +1 -3
  39. package/date-picker/index.js.map +1 -1
  40. package/date-picker/styles.css.js +7 -7
  41. package/date-picker/styles.scoped.css +9 -9
  42. package/date-picker/styles.selectors.js +7 -7
  43. package/date-range-picker/calendar/grids/grid.d.ts.map +1 -1
  44. package/date-range-picker/calendar/grids/grid.js +1 -3
  45. package/date-range-picker/calendar/grids/grid.js.map +1 -1
  46. package/date-range-picker/calendar/grids/index.d.ts.map +1 -1
  47. package/date-range-picker/calendar/grids/index.js +1 -3
  48. package/date-range-picker/calendar/grids/index.js.map +1 -1
  49. package/date-range-picker/calendar/grids/styles.css.js +25 -25
  50. package/date-range-picker/calendar/grids/styles.scoped.css +42 -42
  51. package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
  52. package/date-range-picker/dropdown.d.ts.map +1 -1
  53. package/date-range-picker/dropdown.js +1 -3
  54. package/date-range-picker/dropdown.js.map +1 -1
  55. package/date-range-picker/styles.css.js +38 -38
  56. package/date-range-picker/styles.scoped.css +45 -45
  57. package/date-range-picker/styles.selectors.js +38 -38
  58. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  59. package/expandable-section/expandable-section-header.js +8 -11
  60. package/expandable-section/expandable-section-header.js.map +1 -1
  61. package/expandable-section/styles.css.js +23 -23
  62. package/expandable-section/styles.scoped.css +44 -44
  63. package/expandable-section/styles.selectors.js +23 -23
  64. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  65. package/flashbar/collapsible-flashbar.js +1 -3
  66. package/flashbar/collapsible-flashbar.js.map +1 -1
  67. package/flashbar/flash.d.ts.map +1 -1
  68. package/flashbar/flash.js +1 -3
  69. package/flashbar/flash.js.map +1 -1
  70. package/flashbar/styles.css.js +45 -45
  71. package/flashbar/styles.scoped.css +144 -144
  72. package/flashbar/styles.selectors.js +45 -45
  73. package/internal/components/abstract-switch/index.d.ts.map +1 -1
  74. package/internal/components/abstract-switch/index.js +8 -4
  75. package/internal/components/abstract-switch/index.js.map +1 -1
  76. package/internal/components/abstract-switch/styles.css.js +13 -13
  77. package/internal/components/abstract-switch/styles.scoped.css +19 -19
  78. package/internal/components/abstract-switch/styles.selectors.js +13 -13
  79. package/internal/components/button-trigger/index.d.ts.map +1 -1
  80. package/internal/components/button-trigger/index.js +1 -3
  81. package/internal/components/button-trigger/index.js.map +1 -1
  82. package/internal/components/button-trigger/styles.css.js +9 -9
  83. package/internal/components/button-trigger/styles.scoped.css +23 -23
  84. package/internal/components/button-trigger/styles.selectors.js +9 -9
  85. package/internal/components/chart-legend/index.d.ts.map +1 -1
  86. package/internal/components/chart-legend/index.js +2 -4
  87. package/internal/components/chart-legend/index.js.map +1 -1
  88. package/internal/components/chart-legend/styles.css.js +6 -6
  89. package/internal/components/chart-legend/styles.scoped.css +15 -15
  90. package/internal/components/chart-legend/styles.selectors.js +6 -6
  91. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  92. package/internal/components/chart-plot/focus-outline.js +25 -3
  93. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  94. package/internal/components/filtering-token/index.d.ts +2 -1
  95. package/internal/components/filtering-token/index.d.ts.map +1 -1
  96. package/internal/components/filtering-token/index.js +3 -5
  97. package/internal/components/filtering-token/index.js.map +1 -1
  98. package/internal/components/filtering-token/styles.css.js +7 -7
  99. package/internal/components/filtering-token/styles.scoped.css +13 -13
  100. package/internal/components/filtering-token/styles.selectors.js +7 -7
  101. package/internal/components/menu-dropdown/index.d.ts.map +1 -1
  102. package/internal/components/menu-dropdown/index.js +2 -4
  103. package/internal/components/menu-dropdown/index.js.map +1 -1
  104. package/internal/components/menu-dropdown/styles.css.js +7 -7
  105. package/internal/components/menu-dropdown/styles.scoped.css +13 -13
  106. package/internal/components/menu-dropdown/styles.selectors.js +7 -7
  107. package/internal/components/options-list/utils/use-keyboard.d.ts +0 -2
  108. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  109. package/internal/components/options-list/utils/use-keyboard.js +2 -3
  110. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  111. package/internal/components/token-list/index.d.ts +1 -1
  112. package/internal/components/token-list/index.d.ts.map +1 -1
  113. package/internal/components/token-list/index.js +3 -3
  114. package/internal/components/token-list/index.js.map +1 -1
  115. package/internal/components/token-list/interfaces.d.ts +0 -1
  116. package/internal/components/token-list/interfaces.d.ts.map +1 -1
  117. package/internal/components/token-list/interfaces.js.map +1 -1
  118. package/internal/components/token-list/styles.css.js +9 -9
  119. package/internal/components/token-list/styles.scoped.css +20 -20
  120. package/internal/components/token-list/styles.selectors.js +9 -9
  121. package/internal/components/token-list/token-focus-controller.js +1 -1
  122. package/internal/components/token-list/token-focus-controller.js.map +1 -1
  123. package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  124. package/internal/components/token-list/token-limit-toggle.js +1 -3
  125. package/internal/components/token-list/token-limit-toggle.js.map +1 -1
  126. package/internal/environment.js +1 -1
  127. package/internal/hooks/focus-visible/index.d.ts +2 -5
  128. package/internal/hooks/focus-visible/index.d.ts.map +1 -1
  129. package/internal/hooks/focus-visible/index.js +42 -22
  130. package/internal/hooks/focus-visible/index.js.map +1 -1
  131. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  132. package/internal/hooks/use-base-component/index.js +2 -0
  133. package/internal/hooks/use-base-component/index.js.map +1 -1
  134. package/internal/manifest.json +1 -1
  135. package/link/internal.d.ts.map +1 -1
  136. package/link/internal.js +1 -3
  137. package/link/internal.js.map +1 -1
  138. package/link/styles.css.js +20 -20
  139. package/link/styles.scoped.css +71 -71
  140. package/link/styles.selectors.js +20 -20
  141. package/package.json +1 -1
  142. package/pagination/internal.d.ts.map +1 -1
  143. package/pagination/internal.js +1 -3
  144. package/pagination/internal.js.map +1 -1
  145. package/pagination/styles.css.js +9 -9
  146. package/pagination/styles.scoped.css +23 -23
  147. package/pagination/styles.selectors.js +9 -9
  148. package/popover/internal.d.ts.map +1 -1
  149. package/popover/internal.js +1 -3
  150. package/popover/internal.js.map +1 -1
  151. package/popover/styles.css.js +50 -50
  152. package/popover/styles.scoped.css +63 -63
  153. package/popover/styles.selectors.js +50 -50
  154. package/property-filter/index.d.ts.map +1 -1
  155. package/property-filter/index.js +2 -2
  156. package/property-filter/index.js.map +1 -1
  157. package/property-filter/token.d.ts.map +1 -1
  158. package/property-filter/token.js +1 -1
  159. package/property-filter/token.js.map +1 -1
  160. package/segmented-control/segment.d.ts.map +1 -1
  161. package/segmented-control/segment.js +1 -3
  162. package/segmented-control/segment.js.map +1 -1
  163. package/segmented-control/styles.css.js +14 -14
  164. package/segmented-control/styles.scoped.css +33 -33
  165. package/segmented-control/styles.selectors.js +14 -14
  166. package/select/utils/use-select.d.ts.map +1 -1
  167. package/select/utils/use-select.js +0 -3
  168. package/select/utils/use-select.js.map +1 -1
  169. package/side-navigation/internal.d.ts.map +1 -1
  170. package/side-navigation/internal.js +2 -5
  171. package/side-navigation/internal.js.map +1 -1
  172. package/side-navigation/styles.css.js +27 -27
  173. package/side-navigation/styles.scoped.css +37 -37
  174. package/side-navigation/styles.selectors.js +27 -27
  175. package/split-panel/index.d.ts.map +1 -1
  176. package/split-panel/index.js +1 -3
  177. package/split-panel/index.js.map +1 -1
  178. package/split-panel/styles.css.js +59 -59
  179. package/split-panel/styles.scoped.css +81 -81
  180. package/split-panel/styles.selectors.js +59 -59
  181. package/table/body-cell/index.d.ts.map +1 -1
  182. package/table/body-cell/index.js +3 -3
  183. package/table/body-cell/index.js.map +1 -1
  184. package/table/body-cell/styles.css.js +18 -18
  185. package/table/body-cell/styles.scoped.css +57 -55
  186. package/table/body-cell/styles.selectors.js +18 -18
  187. package/table/header-cell/index.d.ts.map +1 -1
  188. package/table/header-cell/index.js +11 -9
  189. package/table/header-cell/index.js.map +1 -1
  190. package/table/header-cell/styles.css.js +19 -19
  191. package/table/header-cell/styles.scoped.css +32 -32
  192. package/table/header-cell/styles.selectors.js +19 -19
  193. package/table/internal.d.ts.map +1 -1
  194. package/table/internal.js +1 -3
  195. package/table/internal.js.map +1 -1
  196. package/table/resizer/styles.css.js +6 -6
  197. package/table/resizer/styles.scoped.css +11 -11
  198. package/table/resizer/styles.selectors.js +6 -6
  199. package/table/styles.css.js +33 -33
  200. package/table/styles.scoped.css +41 -41
  201. package/table/styles.selectors.js +33 -33
  202. package/tabs/index.d.ts.map +1 -1
  203. package/tabs/index.js +8 -3
  204. package/tabs/index.js.map +1 -1
  205. package/tabs/styles.css.js +21 -21
  206. package/tabs/styles.scoped.css +38 -38
  207. package/tabs/styles.selectors.js +21 -21
  208. package/tabs/tab-header-bar.d.ts.map +1 -1
  209. package/tabs/tab-header-bar.js +9 -3
  210. package/tabs/tab-header-bar.js.map +1 -1
  211. package/tag-editor/internal.d.ts.map +1 -1
  212. package/tag-editor/internal.js +2 -4
  213. package/tag-editor/internal.js.map +1 -1
  214. package/tag-editor/styles.css.js +3 -3
  215. package/tag-editor/styles.scoped.css +10 -10
  216. package/tag-editor/styles.selectors.js +3 -3
  217. package/token-group/dismiss-button.d.ts.map +1 -1
  218. package/token-group/dismiss-button.js +1 -3
  219. package/token-group/dismiss-button.js.map +1 -1
  220. package/token-group/internal.js +2 -2
  221. package/token-group/internal.js.map +1 -1
  222. package/token-group/styles.css.js +5 -5
  223. package/token-group/styles.scoped.css +12 -12
  224. package/token-group/styles.selectors.js +5 -5
  225. package/token-group/token.d.ts +3 -5
  226. package/token-group/token.d.ts.map +1 -1
  227. package/token-group/token.js +2 -2
  228. package/token-group/token.js.map +1 -1
  229. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  230. package/top-navigation/1.0-beta/internal.js +1 -3
  231. package/top-navigation/1.0-beta/internal.js.map +1 -1
  232. package/top-navigation/1.0-beta/styles.css.js +25 -25
  233. package/top-navigation/1.0-beta/styles.scoped.css +42 -42
  234. package/top-navigation/1.0-beta/styles.selectors.js +25 -25
  235. package/top-navigation/interfaces.d.ts +4 -0
  236. package/top-navigation/interfaces.d.ts.map +1 -1
  237. package/top-navigation/interfaces.js.map +1 -1
  238. package/top-navigation/internal.d.ts.map +1 -1
  239. package/top-navigation/internal.js +1 -3
  240. package/top-navigation/internal.js.map +1 -1
  241. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  242. package/top-navigation/parts/overflow-menu/menu-item.js +9 -13
  243. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  244. package/top-navigation/parts/utility.d.ts.map +1 -1
  245. package/top-navigation/parts/utility.js +2 -1
  246. package/top-navigation/parts/utility.js.map +1 -1
  247. package/top-navigation/styles.css.js +47 -47
  248. package/top-navigation/styles.scoped.css +66 -66
  249. package/top-navigation/styles.selectors.js +47 -47
  250. package/tutorial-panel/components/tutorial-list/index.d.ts.map +1 -1
  251. package/tutorial-panel/components/tutorial-list/index.js +1 -3
  252. package/tutorial-panel/components/tutorial-list/index.js.map +1 -1
  253. package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
  254. package/tutorial-panel/components/tutorial-list/styles.scoped.css +27 -27
  255. package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
  256. package/wizard/styles.css.js +32 -32
  257. package/wizard/styles.scoped.css +63 -63
  258. package/wizard/styles.selectors.js +32 -32
  259. package/wizard/wizard-form.d.ts.map +1 -1
  260. package/wizard/wizard-form.js +1 -3
  261. package/wizard/wizard-form.js.map +1 -1
@@ -17,10 +17,10 @@ export default function InternalTokenGroup(_a) {
17
17
  const baseProps = getBaseProps(props);
18
18
  const hasItems = items.length > 0;
19
19
  return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, hasItems && styles['has-items']), ref: __internalRootRef }),
20
- React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(Token, { dismissLabel: item.dismissLabel, onDismiss: () => {
20
+ React.createElement(TokenList, { alignment: alignment, items: items, limit: limit, renderItem: (item, itemIndex) => (React.createElement(Token, { ariaLabel: item.label, dismissLabel: item.dismissLabel, onDismiss: () => {
21
21
  fireNonCancelableEvent(onDismiss, { itemIndex });
22
22
  setRemovedItemIndex(itemIndex);
23
23
  }, disabled: item.disabled },
24
- React.createElement(Option, { option: item, isGenericGroup: false }))), itemAttributes: item => ({ 'aria-label': item.label, 'aria-disabled': item.disabled ? true : undefined }), i18nStrings: i18nStrings, removedItemIndex: removedItemIndex })));
24
+ React.createElement(Option, { option: item, isGenericGroup: false }))), i18nStrings: i18nStrings, removedItemIndex: removedItemIndex })));
25
25
  }
26
26
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["token-group/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAKjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAQjB;QARiB,EACzC,SAAS,EACT,KAAK,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,iBAAiB,OAEO,EADrB,KAAK,cAPiC,gFAQ1C,CADS;IAER,eAAe,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAEtE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE9E,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,OAAO,CACL,6CACM,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,EAClF,GAAG,EAAE,iBAAiB;QAEtB,oBAAC,SAAS,IACR,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAC/B,oBAAC,KAAK,IACJ,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,GAAG,EAAE;oBACd,sBAAsB,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;oBACjD,mBAAmB,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC,EACD,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBAEvB,oBAAC,MAAM,IAAC,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,GAAI,CACzC,CACT,EACD,cAAc,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,EACzG,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GAClC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport Option from '../internal/components/option';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { TokenGroupProps } from './interfaces';\nimport { SomeRequired } from '../internal/types';\nimport { getBaseProps } from '../internal/base-component';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport TokenList from '../internal/components/token-list';\nimport { Token } from './token';\n\ntype InternalTokenGroupProps = SomeRequired<TokenGroupProps, 'items' | 'alignment'> & InternalBaseComponentProps;\n\nexport default function InternalTokenGroup({\n alignment,\n items,\n onDismiss,\n limit,\n i18nStrings,\n __internalRootRef,\n ...props\n}: InternalTokenGroupProps) {\n checkControlled('TokenGroup', 'items', items, 'onDismiss', onDismiss);\n\n const [removedItemIndex, setRemovedItemIndex] = useState<null | number>(null);\n\n const baseProps = getBaseProps(props);\n const hasItems = items.length > 0;\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root, hasItems && styles['has-items'])}\n ref={__internalRootRef}\n >\n <TokenList\n alignment={alignment}\n items={items}\n limit={limit}\n renderItem={(item, itemIndex) => (\n <Token\n dismissLabel={item.dismissLabel}\n onDismiss={() => {\n fireNonCancelableEvent(onDismiss, { itemIndex });\n setRemovedItemIndex(itemIndex);\n }}\n disabled={item.disabled}\n >\n <Option option={item} isGenericGroup={false} />\n </Token>\n )}\n itemAttributes={item => ({ 'aria-label': item.label, 'aria-disabled': item.disabled ? true : undefined })}\n i18nStrings={i18nStrings}\n removedItemIndex={removedItemIndex}\n />\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["token-group/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAKjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,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AE,KAAK,GAAI,CACzC,CACT,EACD,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,GAClC,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useState } from 'react';\n\nimport Option from '../internal/components/option';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { TokenGroupProps } from './interfaces';\nimport { SomeRequired } from '../internal/types';\nimport { getBaseProps } from '../internal/base-component';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport TokenList from '../internal/components/token-list';\nimport { Token } from './token';\n\ntype InternalTokenGroupProps = SomeRequired<TokenGroupProps, 'items' | 'alignment'> & InternalBaseComponentProps;\n\nexport default function InternalTokenGroup({\n alignment,\n items,\n onDismiss,\n limit,\n i18nStrings,\n __internalRootRef,\n ...props\n}: InternalTokenGroupProps) {\n checkControlled('TokenGroup', 'items', items, 'onDismiss', onDismiss);\n\n const [removedItemIndex, setRemovedItemIndex] = useState<null | number>(null);\n\n const baseProps = getBaseProps(props);\n const hasItems = items.length > 0;\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root, hasItems && styles['has-items'])}\n ref={__internalRootRef}\n >\n <TokenList\n alignment={alignment}\n items={items}\n limit={limit}\n renderItem={(item, itemIndex) => (\n <Token\n ariaLabel={item.label}\n dismissLabel={item.dismissLabel}\n onDismiss={() => {\n fireNonCancelableEvent(onDismiss, { itemIndex });\n setRemovedItemIndex(itemIndex);\n }}\n disabled={item.disabled}\n >\n <Option option={item} isGenericGroup={false} />\n </Token>\n )}\n i18nStrings={i18nStrings}\n removedItemIndex={removedItemIndex}\n />\n </div>\n );\n}\n"]}
@@ -1,10 +1,10 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_dm8gx_1aubl_97",
5
- "has-items": "awsui_has-items_dm8gx_1aubl_109",
6
- "token": "awsui_token_dm8gx_1aubl_113",
7
- "dismiss-button": "awsui_dismiss-button_dm8gx_1aubl_125",
8
- "token-disabled": "awsui_token-disabled_dm8gx_1aubl_159"
4
+ "root": "awsui_root_dm8gx_on6jb_97",
5
+ "has-items": "awsui_has-items_dm8gx_on6jb_109",
6
+ "token": "awsui_token_dm8gx_on6jb_113",
7
+ "dismiss-button": "awsui_dismiss-button_dm8gx_on6jb_125",
8
+ "token-disabled": "awsui_token-disabled_dm8gx_on6jb_159"
9
9
  };
10
10
 
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_root_dm8gx_1aubl_97:not(#\9) {
97
+ .awsui_root_dm8gx_on6jb_97:not(#\9) {
98
98
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
99
99
  border-collapse: separate;
100
100
  border-spacing: 0;
@@ -132,11 +132,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
132
132
  -webkit-font-smoothing: auto;
133
133
  -moz-osx-font-smoothing: auto;
134
134
  }
135
- .awsui_root_dm8gx_1aubl_97.awsui_has-items_dm8gx_1aubl_109:not(#\9) {
135
+ .awsui_root_dm8gx_on6jb_97.awsui_has-items_dm8gx_on6jb_109:not(#\9) {
136
136
  padding-top: var(--space-xs-rsr2qu, 8px);
137
137
  }
138
138
 
139
- .awsui_token_dm8gx_1aubl_113:not(#\9) {
139
+ .awsui_token_dm8gx_on6jb_113:not(#\9) {
140
140
  height: 100%;
141
141
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
142
142
  padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-xxs-ynfts5, 4px) var(--space-scaled-xxs-95dhkm, 4px) var(--space-field-horizontal-89h2yr, 12px);
@@ -148,21 +148,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  box-sizing: border-box;
149
149
  }
150
150
 
151
- .awsui_dismiss-button_dm8gx_1aubl_125:not(#\9) {
151
+ .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9) {
152
152
  margin: -1px -1px 0 var(--space-xxs-ynfts5, 4px);
153
153
  border: 1px solid transparent;
154
154
  padding: 0 var(--space-xxs-ynfts5, 4px);
155
155
  color: var(--color-text-button-inline-icon-default-w65lqn, #0972d3);
156
156
  background-color: transparent;
157
157
  }
158
- .awsui_dismiss-button_dm8gx_1aubl_125[data-awsui-focus-visible=true]:not(#\9):focus {
158
+ body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
159
159
  position: relative;
160
160
  }
161
- .awsui_dismiss-button_dm8gx_1aubl_125[data-awsui-focus-visible=true]:not(#\9):focus {
161
+ body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
162
162
  outline: 2px dotted transparent;
163
163
  outline-offset: calc(0px - 1px);
164
164
  }
165
- .awsui_dismiss-button_dm8gx_1aubl_125[data-awsui-focus-visible=true]:not(#\9):focus::before {
165
+ body[data-awsui-focus-visible=true] .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus::before {
166
166
  content: " ";
167
167
  display: block;
168
168
  position: absolute;
@@ -173,25 +173,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
173
173
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
174
174
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
175
175
  }
176
- .awsui_dismiss-button_dm8gx_1aubl_125:not(#\9):focus {
176
+ .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):focus {
177
177
  outline: none;
178
178
  text-decoration: none;
179
179
  }
180
- .awsui_dismiss-button_dm8gx_1aubl_125:not(#\9):hover {
180
+ .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):hover {
181
181
  cursor: pointer;
182
182
  color: var(--color-text-button-inline-icon-hover-wd5icp, #033160);
183
183
  }
184
184
 
185
- .awsui_token-disabled_dm8gx_1aubl_159:not(#\9) {
185
+ .awsui_token-disabled_dm8gx_on6jb_159:not(#\9) {
186
186
  border-color: var(--color-border-control-disabled-vx8bco, #d1d5db);
187
187
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
188
188
  color: var(--color-text-disabled-a2nkh4, #9ba7b6);
189
189
  pointer-events: none;
190
190
  }
191
- .awsui_token-disabled_dm8gx_1aubl_159 > .awsui_dismiss-button_dm8gx_1aubl_125:not(#\9) {
191
+ .awsui_token-disabled_dm8gx_on6jb_159 > .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9) {
192
192
  color: var(--color-text-button-inline-icon-disabled-gfhvz7, #9ba7b6);
193
193
  }
194
- .awsui_token-disabled_dm8gx_1aubl_159 > .awsui_dismiss-button_dm8gx_1aubl_125:not(#\9):hover {
194
+ .awsui_token-disabled_dm8gx_on6jb_159 > .awsui_dismiss-button_dm8gx_on6jb_125:not(#\9):hover {
195
195
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
196
196
  cursor: auto;
197
197
  color: var(--color-text-button-inline-icon-disabled-gfhvz7, #9ba7b6);
@@ -2,10 +2,10 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_dm8gx_1aubl_97",
6
- "has-items": "awsui_has-items_dm8gx_1aubl_109",
7
- "token": "awsui_token_dm8gx_1aubl_113",
8
- "dismiss-button": "awsui_dismiss-button_dm8gx_1aubl_125",
9
- "token-disabled": "awsui_token-disabled_dm8gx_1aubl_159"
5
+ "root": "awsui_root_dm8gx_on6jb_97",
6
+ "has-items": "awsui_has-items_dm8gx_on6jb_109",
7
+ "token": "awsui_token_dm8gx_on6jb_113",
8
+ "dismiss-button": "awsui_dismiss-button_dm8gx_on6jb_125",
9
+ "token-disabled": "awsui_token-disabled_dm8gx_on6jb_159"
10
10
  };
11
11
 
@@ -1,13 +1,11 @@
1
1
  import React from 'react';
2
- interface ItemAttributes {
2
+ interface TokenProps {
3
3
  children: React.ReactNode;
4
+ ariaLabel?: string;
4
5
  dismissLabel?: string;
5
6
  onDismiss?: () => void;
6
7
  disabled?: boolean;
7
8
  }
8
- interface TokenProps extends ItemAttributes {
9
- children: React.ReactNode;
10
- }
11
- export declare function Token({ disabled, dismissLabel, onDismiss, children }: TokenProps): JSX.Element;
9
+ export declare function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }: TokenProps): JSX.Element;
12
10
  export {};
13
11
  //# sourceMappingURL=token.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,UAAW,SAAQ,cAAc;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,eAOhF"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,UAAU,eAY3F"}
@@ -4,8 +4,8 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import DismissButton from './dismiss-button';
6
6
  import styles from './styles.css.js';
7
- export function Token({ disabled, dismissLabel, onDismiss, children }) {
8
- return (React.createElement("div", { className: clsx(styles.token, disabled && styles['token-disabled']) },
7
+ export function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }) {
8
+ return (React.createElement("div", { className: clsx(styles.token, disabled && styles['token-disabled']), role: "group", "aria-label": ariaLabel, "aria-disabled": disabled },
9
9
  children,
10
10
  onDismiss && React.createElement(DismissButton, { disabled: disabled, dismissLabel: dismissLabel, onDismiss: onDismiss })));
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAarC,MAAM,UAAU,KAAK,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAc;IAC/E,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACrE,QAAQ;QACR,SAAS,IAAI,oBAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAI,CACjG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport DismissButton from './dismiss-button';\nimport styles from './styles.css.js';\n\ninterface ItemAttributes {\n children: React.ReactNode;\n dismissLabel?: string;\n onDismiss?: () => void;\n disabled?: boolean;\n}\n\ninterface TokenProps extends ItemAttributes {\n children: React.ReactNode;\n}\n\nexport function Token({ disabled, dismissLabel, onDismiss, children }: TokenProps) {\n return (\n <div className={clsx(styles.token, disabled && styles['token-disabled'])}>\n {children}\n {onDismiss && <DismissButton disabled={disabled} dismissLabel={dismissLabel} onDismiss={onDismiss} />}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"token.js","sourceRoot":"lib/default/","sources":["token-group/token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAUrC,MAAM,UAAU,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAc;IAC1F,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,EACnE,IAAI,EAAC,OAAO,gBACA,SAAS,mBACN,QAAQ;QAEtB,QAAQ;QACR,SAAS,IAAI,oBAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAI,CACjG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport DismissButton from './dismiss-button';\nimport styles from './styles.css.js';\n\ninterface TokenProps {\n children: React.ReactNode;\n ariaLabel?: string;\n dismissLabel?: string;\n onDismiss?: () => void;\n disabled?: boolean;\n}\n\nexport function Token({ ariaLabel, disabled, dismissLabel, onDismiss, children }: TokenProps) {\n return (\n <div\n className={clsx(styles.token, disabled && styles['token-disabled'])}\n role=\"group\"\n aria-label={ariaLabel}\n aria-disabled={disabled}\n >\n {children}\n {onDismiss && <DismissButton disabled={disabled} dismissLabel={dismissLabel} onDismiss={onDismiss} />}\n </div>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAOrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAQlD,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAEzF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAc,EACd,MAAM,EACN,GAAG,SAAS,EACb,EAAE,0BAA0B,eAmL5B"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAMrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAQlD,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG,0BAA0B,CAAC;AAEzF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,SAAc,EACd,MAAM,EACN,GAAG,SAAS,EACb,EAAE,0BAA0B,eAkL5B"}
@@ -7,7 +7,6 @@ import { getBaseProps } from '../../internal/base-component';
7
7
  import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
8
8
  import VisualContext from '../../internal/components/visual-context';
9
9
  import Portal from '../../internal/components/portal';
10
- import useFocusVisible from '../../internal/hooks/focus-visible';
11
10
  import { useTopNavigation } from './use-top-navigation.js';
12
11
  import Utility from './parts/utility';
13
12
  import OverflowMenu from './parts/overflow-menu';
@@ -30,7 +29,6 @@ export default function InternalTopNavigation(_a) {
30
29
  fireCancelableEvent(identity.onFollow, {}, event);
31
30
  }
32
31
  };
33
- const focusVisible = useFocusVisible();
34
32
  // Render the top nav twice; once as the top nav that users can see, and another
35
33
  // "virtual" top nav used just for calculations. The virtual top nav doesn't react to
36
34
  // layout changes and renders two sets of utilities: one with labels and one without.
@@ -53,7 +51,7 @@ export default function InternalTopNavigation(_a) {
53
51
  }) },
54
52
  React.createElement("div", { className: styles['padding-box'] },
55
53
  showIdentity && (React.createElement("div", { className: clsx(styles.identity, !identity.logo && styles['no-logo']) },
56
- React.createElement("a", Object.assign({}, focusVisible, { className: styles['identity-link'], href: identity.href, onClick: onIdentityClick }),
54
+ React.createElement("a", { className: styles['identity-link'], href: identity.href, onClick: onIdentityClick },
57
55
  identity.logo && (React.createElement("img", { role: "img", src: (_a = identity.logo) === null || _a === void 0 ? void 0 : _a.src, alt: (_b = identity.logo) === null || _b === void 0 ? void 0 : _b.alt, className: clsx(styles.logo, {
58
56
  [styles.narrow]: isNarrowViewport,
59
57
  }) })),
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,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AAE,CAAC,EACN,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,iBAAiB,CAAC,EACzB,MAAM,CAAC,gBAAgB,OAAO,CAAC,IAAI,EAAE,CAAC,EACtC,IAAI,IAAI,MAAM,CAAC,sBAAsB,CAAC,EACtC,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,uBAAuB,MAAA,OAAO,CAAC,OAAO,mCAAI,MAAM,EAAE,CAAC,CACxF,wBACmB,CAAC,uBACF,GAAG,QAAQ,EAAE;gCAEhC,oBAAC,OAAO,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAChG,CACP,CAAC;wBACJ,CAAC,CAAC;oBAEH,eAAe,IAAI,CAClB,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,iBAAiB,CAAC,EACzB,MAAM,CAAC,4BAA4B,CAAC,EACpC,MAAM,CAAC,sBAAsB,CAAC,CAC/B,0BACoB,cAAc;wBAEnC,oBAAC,YAAY,IACX,SAAS,EAAE,MAAA,MAAA,eAAe,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,mCAAI,EAAE,EACtE,gBAAgB,EAAE,gBAAgB,IAEjC,WAAW,CAAC,uBAAuB,CACvB,CACX,CACP,CACG,CACF,CACE,CACX,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,6CAAS,SAAS,IAAE,GAAG,EAAE,iBAAiB;QACxC,oBAAC,aAAa,IAAC,WAAW,EAAC,gBAAgB;YACxC,OAAO,CAAC,KAAK,CAAC;YACf,oBAAC,MAAM,QAAE,OAAO,CAAC,IAAI,CAAC,CAAU,CAClB,CACZ,CACP,CAAC;AACJ,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 { InternalBaseComponentProps } from '../../internal/hooks/use-base-component';\nimport { getBaseProps } from '../../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport VisualContext from '../../internal/components/visual-context';\nimport Portal from '../../internal/components/portal';\nimport useFocusVisible from '../../internal/hooks/focus-visible';\n\nimport { TopNavigationProps } from './interfaces';\nimport { useTopNavigation } from './use-top-navigation.js';\nimport Utility from './parts/utility';\nimport OverflowMenu from './parts/overflow-menu';\n\nimport styles from './styles.css.js';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\n\nexport type InternalTopNavigationProps = TopNavigationProps & InternalBaseComponentProps;\n\nexport default function InternalTopNavigation({\n __internalRootRef,\n identity,\n i18nStrings,\n utilities = [],\n search,\n ...restProps\n}: InternalTopNavigationProps) {\n checkSafeUrl('TopNavigation', identity.href);\n const baseProps = getBaseProps(restProps);\n const { ref, virtualRef, breakpoint, responsiveState, isSearchExpanded, onSearchUtilityClick } = useTopNavigation({\n __internalRootRef,\n identity,\n search,\n utilities,\n });\n\n const isNarrowViewport = breakpoint === 'default';\n const isMediumViewport = breakpoint === 'xxs';\n\n const onIdentityClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(identity.onFollow, {}, event);\n }\n };\n const focusVisible = useFocusVisible();\n\n // Render the top nav twice; once as the top nav that users can see, and another\n // \"virtual\" top nav used just for calculations. The virtual top nav doesn't react to\n // layout changes and renders two sets of utilities: one with labels and one without.\n const content = (isVirtual: boolean) => {\n const Wrapper = isVirtual ? 'div' : 'header';\n const showIdentity = isVirtual || !isSearchExpanded;\n const showTitle = isVirtual || !responsiveState.hideTitle;\n const showSearchSlot = search && (isVirtual || !responsiveState.hideSearch || isSearchExpanded);\n const showSearchUtility = isVirtual || (search && responsiveState.hideSearch);\n const showUtilities = isVirtual || !isSearchExpanded;\n const showMenuTrigger = isVirtual || (!isSearchExpanded && responsiveState.hideUtilities);\n\n return (\n <Wrapper\n ref={isVirtual ? virtualRef : ref}\n aria-hidden={isVirtual ? true : undefined}\n // False positive, \"Wrapper\" is either a \"div\" or a \"header\"\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(styles['top-navigation'], {\n [styles.hidden]: isVirtual,\n [styles.narrow]: isNarrowViewport,\n [styles.medium]: isMediumViewport,\n })}\n >\n <div className={styles['padding-box']}>\n {showIdentity && (\n <div className={clsx(styles.identity, !identity.logo && styles['no-logo'])}>\n <a {...focusVisible} className={styles['identity-link']} href={identity.href} onClick={onIdentityClick}>\n {identity.logo && (\n <img\n role=\"img\"\n src={identity.logo?.src}\n alt={identity.logo?.alt}\n className={clsx(styles.logo, {\n [styles.narrow]: isNarrowViewport,\n })}\n />\n )}\n {showTitle && <span className={styles.title}>{identity.title}</span>}\n </a>\n </div>\n )}\n\n <div className={styles.inputs}>\n {showSearchSlot && (\n <div className={clsx(styles.search, !isVirtual && isSearchExpanded && styles['search-expanded'])}>\n {search}\n </div>\n )}\n </div>\n\n <div className={styles.utilities}>\n {showSearchUtility && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-button'],\n styles['utility-type-button-link']\n )}\n data-utility-special=\"search\"\n >\n <Utility\n hideText={true}\n isNarrowViewport={isNarrowViewport}\n definition={{\n type: 'button',\n iconName: isSearchExpanded ? 'close' : 'search',\n ariaLabel: isSearchExpanded\n ? i18nStrings.searchDismissIconAriaLabel\n : i18nStrings.searchIconAriaLabel,\n onClick: onSearchUtilityClick,\n }}\n />\n </div>\n )}\n\n {showUtilities &&\n utilities\n .filter(\n (_utility, i) =>\n isVirtual || !responsiveState.hideUtilities || responsiveState.hideUtilities.indexOf(i) === -1\n )\n .map((utility, i) => {\n const hideText = !!responsiveState.hideUtilityText;\n const last = (isVirtual || !showMenuTrigger) && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility\n hideText={hideText}\n definition={utility}\n last={last}\n isNarrowViewport={isNarrowViewport}\n />\n </div>\n );\n })}\n\n {isVirtual &&\n utilities.map((utility, i) => {\n const hideText = !responsiveState.hideUtilityText;\n const last = !showMenuTrigger && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility hideText={hideText} definition={utility} last={last} isNarrowViewport={isNarrowViewport} />\n </div>\n );\n })}\n\n {showMenuTrigger && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-menu-dropdown'],\n styles['utility-wrapper-last']\n )}\n data-utility-special=\"menu-trigger\"\n >\n <OverflowMenu\n utilities={responsiveState.hideUtilities?.map(i => utilities[i]) ?? []}\n isNarrowViewport={isNarrowViewport}\n >\n {i18nStrings.overflowMenuTriggerText}\n </OverflowMenu>\n </div>\n )}\n </div>\n </div>\n </Wrapper>\n );\n };\n\n return (\n <div {...baseProps} ref={__internalRootRef}>\n <VisualContext contextName=\"top-navigation\">\n {content(false)}\n <Portal>{content(true)}</Portal>\n </VisualContext>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["top-navigation/1.0-beta/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,aAAa,MAAM,0CAA0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AAE,CAAC,EACtC,IAAI,IAAI,MAAM,CAAC,sBAAsB,CAAC,EACtC,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,uBAAuB,MAAA,OAAO,CAAC,OAAO,mCAAI,MAAM,EAAE,CAAC,CACxF,wBACmB,CAAC,uBACF,GAAG,QAAQ,EAAE;gCAEhC,oBAAC,OAAO,IAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAChG,CACP,CAAC;wBACJ,CAAC,CAAC;oBAEH,eAAe,IAAI,CAClB,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,iBAAiB,CAAC,EACzB,MAAM,CAAC,4BAA4B,CAAC,EACpC,MAAM,CAAC,sBAAsB,CAAC,CAC/B,0BACoB,cAAc;wBAEnC,oBAAC,YAAY,IACX,SAAS,EAAE,MAAA,MAAA,eAAe,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,mCAAI,EAAE,EACtE,gBAAgB,EAAE,gBAAgB,IAEjC,WAAW,CAAC,uBAAuB,CACvB,CACX,CACP,CACG,CACF,CACE,CACX,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,6CAAS,SAAS,IAAE,GAAG,EAAE,iBAAiB;QACxC,oBAAC,aAAa,IAAC,WAAW,EAAC,gBAAgB;YACxC,OAAO,CAAC,KAAK,CAAC;YACf,oBAAC,MAAM,QAAE,OAAO,CAAC,IAAI,CAAC,CAAU,CAClB,CACZ,CACP,CAAC;AACJ,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 { InternalBaseComponentProps } from '../../internal/hooks/use-base-component';\nimport { getBaseProps } from '../../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';\nimport VisualContext from '../../internal/components/visual-context';\nimport Portal from '../../internal/components/portal';\n\nimport { TopNavigationProps } from './interfaces';\nimport { useTopNavigation } from './use-top-navigation.js';\nimport Utility from './parts/utility';\nimport OverflowMenu from './parts/overflow-menu';\n\nimport styles from './styles.css.js';\nimport { checkSafeUrl } from '../../internal/utils/check-safe-url';\n\nexport type InternalTopNavigationProps = TopNavigationProps & InternalBaseComponentProps;\n\nexport default function InternalTopNavigation({\n __internalRootRef,\n identity,\n i18nStrings,\n utilities = [],\n search,\n ...restProps\n}: InternalTopNavigationProps) {\n checkSafeUrl('TopNavigation', identity.href);\n const baseProps = getBaseProps(restProps);\n const { ref, virtualRef, breakpoint, responsiveState, isSearchExpanded, onSearchUtilityClick } = useTopNavigation({\n __internalRootRef,\n identity,\n search,\n utilities,\n });\n\n const isNarrowViewport = breakpoint === 'default';\n const isMediumViewport = breakpoint === 'xxs';\n\n const onIdentityClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireCancelableEvent(identity.onFollow, {}, event);\n }\n };\n\n // Render the top nav twice; once as the top nav that users can see, and another\n // \"virtual\" top nav used just for calculations. The virtual top nav doesn't react to\n // layout changes and renders two sets of utilities: one with labels and one without.\n const content = (isVirtual: boolean) => {\n const Wrapper = isVirtual ? 'div' : 'header';\n const showIdentity = isVirtual || !isSearchExpanded;\n const showTitle = isVirtual || !responsiveState.hideTitle;\n const showSearchSlot = search && (isVirtual || !responsiveState.hideSearch || isSearchExpanded);\n const showSearchUtility = isVirtual || (search && responsiveState.hideSearch);\n const showUtilities = isVirtual || !isSearchExpanded;\n const showMenuTrigger = isVirtual || (!isSearchExpanded && responsiveState.hideUtilities);\n\n return (\n <Wrapper\n ref={isVirtual ? virtualRef : ref}\n aria-hidden={isVirtual ? true : undefined}\n // False positive, \"Wrapper\" is either a \"div\" or a \"header\"\n // eslint-disable-next-line react/forbid-component-props\n className={clsx(styles['top-navigation'], {\n [styles.hidden]: isVirtual,\n [styles.narrow]: isNarrowViewport,\n [styles.medium]: isMediumViewport,\n })}\n >\n <div className={styles['padding-box']}>\n {showIdentity && (\n <div className={clsx(styles.identity, !identity.logo && styles['no-logo'])}>\n <a className={styles['identity-link']} href={identity.href} onClick={onIdentityClick}>\n {identity.logo && (\n <img\n role=\"img\"\n src={identity.logo?.src}\n alt={identity.logo?.alt}\n className={clsx(styles.logo, {\n [styles.narrow]: isNarrowViewport,\n })}\n />\n )}\n {showTitle && <span className={styles.title}>{identity.title}</span>}\n </a>\n </div>\n )}\n\n <div className={styles.inputs}>\n {showSearchSlot && (\n <div className={clsx(styles.search, !isVirtual && isSearchExpanded && styles['search-expanded'])}>\n {search}\n </div>\n )}\n </div>\n\n <div className={styles.utilities}>\n {showSearchUtility && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-button'],\n styles['utility-type-button-link']\n )}\n data-utility-special=\"search\"\n >\n <Utility\n hideText={true}\n isNarrowViewport={isNarrowViewport}\n definition={{\n type: 'button',\n iconName: isSearchExpanded ? 'close' : 'search',\n ariaLabel: isSearchExpanded\n ? i18nStrings.searchDismissIconAriaLabel\n : i18nStrings.searchIconAriaLabel,\n onClick: onSearchUtilityClick,\n }}\n />\n </div>\n )}\n\n {showUtilities &&\n utilities\n .filter(\n (_utility, i) =>\n isVirtual || !responsiveState.hideUtilities || responsiveState.hideUtilities.indexOf(i) === -1\n )\n .map((utility, i) => {\n const hideText = !!responsiveState.hideUtilityText;\n const last = (isVirtual || !showMenuTrigger) && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility\n hideText={hideText}\n definition={utility}\n last={last}\n isNarrowViewport={isNarrowViewport}\n />\n </div>\n );\n })}\n\n {isVirtual &&\n utilities.map((utility, i) => {\n const hideText = !responsiveState.hideUtilityText;\n const last = !showMenuTrigger && i === utilities.length - 1;\n return (\n <div\n key={i}\n className={clsx(\n styles['utility-wrapper'],\n styles[`utility-type-${utility.type}`],\n last && styles['utility-wrapper-last'],\n utility.type === 'button' && styles[`utility-type-button-${utility.variant ?? 'link'}`]\n )}\n data-utility-index={i}\n data-utility-hide={`${hideText}`}\n >\n <Utility hideText={hideText} definition={utility} last={last} isNarrowViewport={isNarrowViewport} />\n </div>\n );\n })}\n\n {showMenuTrigger && (\n <div\n className={clsx(\n styles['utility-wrapper'],\n styles['utility-type-menu-dropdown'],\n styles['utility-wrapper-last']\n )}\n data-utility-special=\"menu-trigger\"\n >\n <OverflowMenu\n utilities={responsiveState.hideUtilities?.map(i => utilities[i]) ?? []}\n isNarrowViewport={isNarrowViewport}\n >\n {i18nStrings.overflowMenuTriggerText}\n </OverflowMenu>\n </div>\n )}\n </div>\n </div>\n </Wrapper>\n );\n };\n\n return (\n <div {...baseProps} ref={__internalRootRef}>\n <VisualContext contextName=\"top-navigation\">\n {content(false)}\n <Portal>{content(true)}</Portal>\n </VisualContext>\n </div>\n );\n}\n"]}
@@ -1,30 +1,30 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "top-navigation": "awsui_top-navigation_1ca1i_1hszl_93",
5
- "padding-box": "awsui_padding-box_1ca1i_1hszl_106",
6
- "medium": "awsui_medium_1ca1i_1hszl_116",
7
- "narrow": "awsui_narrow_1ca1i_1hszl_116",
8
- "hidden": "awsui_hidden_1ca1i_1hszl_124",
9
- "\t": "awsui_\t_1ca1i_1hszl_1",
10
- "identity": "awsui_identity_1ca1i_1hszl_137",
11
- "identity-link": "awsui_identity-link_1ca1i_1hszl_137",
12
- "no-logo": "awsui_no-logo_1ca1i_1hszl_154",
13
- "logo": "awsui_logo_1ca1i_1hszl_158",
14
- "title": "awsui_title_1ca1i_1hszl_169",
15
- "inputs": "awsui_inputs_1ca1i_1hszl_185",
16
- "search": "awsui_search_1ca1i_1hszl_192",
17
- "search-expanded": "awsui_search-expanded_1ca1i_1hszl_197",
18
- "utilities": "awsui_utilities_1ca1i_1hszl_202",
19
- "utility-wrapper": "awsui_utility-wrapper_1ca1i_1hszl_214",
20
- "utility-wrapper-last": "awsui_utility-wrapper-last_1ca1i_1hszl_230",
21
- "utility-type-button-primary-button": "awsui_utility-type-button-primary-button_1ca1i_1hszl_230",
22
- "utility-type-menu-dropdown": "awsui_utility-type-menu-dropdown_1ca1i_1hszl_244",
23
- "utility-type-button-link": "awsui_utility-type-button-link_1ca1i_1hszl_259",
24
- "utility-link-icon": "awsui_utility-link-icon_1ca1i_1hszl_272",
25
- "utility-button-external-icon": "awsui_utility-button-external-icon_1ca1i_1hszl_276",
26
- "trigger": "awsui_trigger_1ca1i_1hszl_280",
27
- "rotate-up": "awsui_rotate-up_1ca1i_1hszl_284",
28
- "rotate-down": "awsui_rotate-down_1ca1i_1hszl_299"
4
+ "top-navigation": "awsui_top-navigation_1ca1i_pnu7h_93",
5
+ "padding-box": "awsui_padding-box_1ca1i_pnu7h_106",
6
+ "medium": "awsui_medium_1ca1i_pnu7h_116",
7
+ "narrow": "awsui_narrow_1ca1i_pnu7h_116",
8
+ "hidden": "awsui_hidden_1ca1i_pnu7h_124",
9
+ "\t": "awsui_\t_1ca1i_pnu7h_1",
10
+ "identity": "awsui_identity_1ca1i_pnu7h_137",
11
+ "identity-link": "awsui_identity-link_1ca1i_pnu7h_137",
12
+ "no-logo": "awsui_no-logo_1ca1i_pnu7h_154",
13
+ "logo": "awsui_logo_1ca1i_pnu7h_158",
14
+ "title": "awsui_title_1ca1i_pnu7h_169",
15
+ "inputs": "awsui_inputs_1ca1i_pnu7h_185",
16
+ "search": "awsui_search_1ca1i_pnu7h_192",
17
+ "search-expanded": "awsui_search-expanded_1ca1i_pnu7h_197",
18
+ "utilities": "awsui_utilities_1ca1i_pnu7h_202",
19
+ "utility-wrapper": "awsui_utility-wrapper_1ca1i_pnu7h_214",
20
+ "utility-wrapper-last": "awsui_utility-wrapper-last_1ca1i_pnu7h_230",
21
+ "utility-type-button-primary-button": "awsui_utility-type-button-primary-button_1ca1i_pnu7h_230",
22
+ "utility-type-menu-dropdown": "awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244",
23
+ "utility-type-button-link": "awsui_utility-type-button-link_1ca1i_pnu7h_259",
24
+ "utility-link-icon": "awsui_utility-link-icon_1ca1i_pnu7h_272",
25
+ "utility-button-external-icon": "awsui_utility-button-external-icon_1ca1i_pnu7h_276",
26
+ "trigger": "awsui_trigger_1ca1i_pnu7h_280",
27
+ "rotate-up": "awsui_rotate-up_1ca1i_pnu7h_284",
28
+ "rotate-down": "awsui_rotate-down_1ca1i_pnu7h_299"
29
29
  };
30
30
 
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_top-navigation_1ca1i_1hszl_93:not(#\9) {
93
+ .awsui_top-navigation_1ca1i_pnu7h_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -129,7 +129,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
129
129
  -moz-osx-font-smoothing: auto;
130
130
  background: var(--color-background-container-content-i8i4a0, #ffffff);
131
131
  }
132
- .awsui_top-navigation_1ca1i_1hszl_93 > .awsui_padding-box_1ca1i_1hszl_106:not(#\9) {
132
+ .awsui_top-navigation_1ca1i_pnu7h_93 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
133
133
  display: flex;
134
134
  flex-direction: row;
135
135
  flex-wrap: nowrap;
@@ -139,15 +139,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
139
139
  height: calc(var(--space-xxxl-bo9z7f, 40px) + var(--space-scaled-m-pv0fmt, 16px));
140
140
  padding: 0 0 0 var(--space-l-4vl6xu, 20px);
141
141
  }
142
- .awsui_top-navigation_1ca1i_1hszl_93.awsui_medium_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106:not(#\9), .awsui_top-navigation_1ca1i_1hszl_93.awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106:not(#\9) {
142
+ .awsui_top-navigation_1ca1i_pnu7h_93.awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9), .awsui_top-navigation_1ca1i_pnu7h_93.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
143
143
  height: calc(var(--space-xxxl-bo9z7f, 40px) + var(--space-scaled-xs-6859qs, 8px));
144
144
  }
145
- .awsui_top-navigation_1ca1i_1hszl_93.awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106:not(#\9) {
145
+ .awsui_top-navigation_1ca1i_pnu7h_93.awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106:not(#\9) {
146
146
  height: var(--space-xxxl-bo9z7f, 40px);
147
147
  padding: 0 0 0 var(--space-xs-rsr2qu, 8px);
148
148
  }
149
149
 
150
- .awsui_hidden_1ca1i_1hszl_124:not(#\9) {
150
+ .awsui_hidden_1ca1i_pnu7h_124:not(#\9) {
151
151
  position: absolute !important;
152
152
  top: -9999px !important;
153
153
  left: -9999px !important;
@@ -156,20 +156,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
156
156
  }
157
157
 
158
158
  /* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
159
- .awsui_hidden_1ca1i_1hszl_124 *:not(#\9):not(#awsui_\9 _1ca1i_1hszl_1) {
159
+ .awsui_hidden_1ca1i_pnu7h_124 *:not(#\9):not(#awsui_\9 _1ca1i_pnu7h_1) {
160
160
  visibility: hidden;
161
161
  }
162
162
 
163
- .awsui_identity_1ca1i_1hszl_137 > .awsui_identity-link_1ca1i_1hszl_137:not(#\9) {
163
+ .awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9) {
164
164
  display: flex;
165
165
  align-items: center;
166
166
  text-decoration: none;
167
167
  color: var(--color-text-top-navigation-title-oypxe3, #000716);
168
168
  }
169
- .awsui_identity_1ca1i_1hszl_137 > .awsui_identity-link_1ca1i_1hszl_137:not(#\9):hover {
169
+ .awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9):hover {
170
170
  color: var(--color-text-accent-s1eqko, #0972d3);
171
171
  }
172
- .awsui_identity_1ca1i_1hszl_137 > .awsui_identity-link_1ca1i_1hszl_137[data-awsui-focus-visible=true]:not(#\9):focus {
172
+ body[data-awsui-focus-visible=true] .awsui_identity_1ca1i_pnu7h_137 > .awsui_identity-link_1ca1i_pnu7h_137:not(#\9):focus {
173
173
  outline: thin dotted;
174
174
  outline: var(--border-link-focus-ring-outline-k2wccv, 0);
175
175
  outline-offset: 2px;
@@ -177,22 +177,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
177
177
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
178
178
  box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-nv4ahb, 2px) var(--color-border-item-focused-ap3b6s, #0972d3);
179
179
  }
180
- .awsui_identity_1ca1i_1hszl_137.awsui_no-logo_1ca1i_1hszl_154:not(#\9) {
180
+ .awsui_identity_1ca1i_pnu7h_137.awsui_no-logo_1ca1i_pnu7h_154:not(#\9) {
181
181
  min-width: 100px;
182
182
  }
183
183
 
184
- .awsui_logo_1ca1i_1hszl_158:not(#\9) {
184
+ .awsui_logo_1ca1i_pnu7h_158:not(#\9) {
185
185
  display: block;
186
186
  max-height: var(--space-xxl-2nvmf1, 32px);
187
187
  margin-left: var(--space-s-hv8c1d, 12px);
188
188
  width: auto;
189
189
  min-width: 10px;
190
190
  }
191
- .awsui_logo_1ca1i_1hszl_158.awsui_narrow_1ca1i_1hszl_116:not(#\9) {
191
+ .awsui_logo_1ca1i_pnu7h_158.awsui_narrow_1ca1i_pnu7h_116:not(#\9) {
192
192
  max-height: var(--space-xl-a39hup, 24px);
193
193
  }
194
194
 
195
- .awsui_title_1ca1i_1hszl_169:not(#\9) {
195
+ .awsui_title_1ca1i_pnu7h_169:not(#\9) {
196
196
  font-size: var(--font-heading-m-size-6e3jmg, 20px);
197
197
  line-height: var(--font-heading-m-line-height-u3t54f, 24px);
198
198
  letter-spacing: var(--font-heading-m-letter-spacing-r00pg3, -0.01em);
@@ -204,28 +204,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
204
204
  overflow: hidden;
205
205
  text-overflow: ellipsis;
206
206
  }
207
- .awsui_no-logo_1ca1i_1hszl_154 > .awsui_identity-link_1ca1i_1hszl_137 > .awsui_title_1ca1i_1hszl_169:not(#\9) {
207
+ .awsui_no-logo_1ca1i_pnu7h_154 > .awsui_identity-link_1ca1i_pnu7h_137 > .awsui_title_1ca1i_pnu7h_169:not(#\9) {
208
208
  font-weight: 700;
209
209
  }
210
210
 
211
- .awsui_inputs_1ca1i_1hszl_185:not(#\9) {
211
+ .awsui_inputs_1ca1i_pnu7h_185:not(#\9) {
212
212
  flex: 1;
213
213
  min-width: 0;
214
214
  display: flex;
215
215
  justify-content: center;
216
216
  }
217
217
 
218
- .awsui_search_1ca1i_1hszl_192:not(#\9) {
218
+ .awsui_search_1ca1i_pnu7h_192:not(#\9) {
219
219
  width: 100%;
220
220
  max-width: 340px;
221
221
  padding-left: var(--space-xxxl-bo9z7f, 40px);
222
222
  }
223
- .awsui_search-expanded_1ca1i_1hszl_197:not(#\9) {
223
+ .awsui_search-expanded_1ca1i_pnu7h_197:not(#\9) {
224
224
  max-width: none;
225
225
  padding-left: var(--space-s-hv8c1d, 12px);
226
226
  }
227
227
 
228
- .awsui_utilities_1ca1i_1hszl_202:not(#\9) {
228
+ .awsui_utilities_1ca1i_pnu7h_202:not(#\9) {
229
229
  display: flex;
230
230
  flex-shrink: 0;
231
231
  flex-direction: row;
@@ -233,17 +233,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
233
233
  padding-left: var(--space-m-17eucw, 16px);
234
234
  height: 100%;
235
235
  }
236
- .awsui_medium_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202:not(#\9), .awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202:not(#\9) {
236
+ .awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202:not(#\9), .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202:not(#\9) {
237
237
  padding-left: 0;
238
238
  }
239
239
 
240
- .awsui_utility-wrapper_1ca1i_1hszl_214:not(#\9) {
240
+ .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9) {
241
241
  display: flex;
242
242
  position: relative;
243
243
  flex-shrink: 0;
244
244
  align-items: center;
245
245
  }
246
- .awsui_utility-wrapper_1ca1i_1hszl_214:not(#\9)::after {
246
+ .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after {
247
247
  display: block;
248
248
  position: absolute;
249
249
  content: "";
@@ -253,86 +253,86 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
253
253
  bottom: var(--space-s-hv8c1d, 12px);
254
254
  background: var(--color-border-divider-default-7s2wjw, #e9ebed);
255
255
  }
256
- .awsui_utility-wrapper_1ca1i_1hszl_214.awsui_utility-wrapper-last_1ca1i_1hszl_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_1hszl_230) {
256
+ .awsui_utility-wrapper_1ca1i_pnu7h_214.awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230) {
257
257
  padding-right: 0;
258
258
  }
259
- .awsui_utility-wrapper_1ca1i_1hszl_214.awsui_utility-wrapper-last_1ca1i_1hszl_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_1hszl_230)::after {
259
+ .awsui_utility-wrapper_1ca1i_pnu7h_214.awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9):not(.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230)::after {
260
260
  display: none;
261
261
  }
262
- .awsui_medium_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202 > .awsui_utility-wrapper_1ca1i_1hszl_214:not(#\9)::after, .awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202 > .awsui_utility-wrapper_1ca1i_1hszl_214:not(#\9)::after {
262
+ .awsui_medium_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after, .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper_1ca1i_pnu7h_214:not(#\9)::after {
263
263
  top: var(--space-xs-rsr2qu, 8px);
264
264
  bottom: var(--space-xs-rsr2qu, 8px);
265
265
  }
266
266
 
267
- .awsui_utility-wrapper-last_1ca1i_1hszl_230:not(#\9) {
267
+ .awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9) {
268
268
  margin-right: var(--space-s-hv8c1d, 12px);
269
269
  }
270
- .awsui_utility-wrapper-last_1ca1i_1hszl_230.awsui_utility-type-menu-dropdown_1ca1i_1hszl_244:not(#\9) {
270
+ .awsui_utility-wrapper-last_1ca1i_pnu7h_230.awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244:not(#\9) {
271
271
  margin-right: 0;
272
272
  }
273
- .awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202 > .awsui_utility-wrapper-last_1ca1i_1hszl_230:not(#\9) {
273
+ .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper-last_1ca1i_pnu7h_230:not(#\9) {
274
274
  margin-right: 0;
275
275
  }
276
- .awsui_narrow_1ca1i_1hszl_116 > .awsui_padding-box_1ca1i_1hszl_106 > .awsui_utilities_1ca1i_1hszl_202 > .awsui_utility-wrapper-last_1ca1i_1hszl_230.awsui_utility-type-button-primary-button_1ca1i_1hszl_230:not(#\9) {
276
+ .awsui_narrow_1ca1i_pnu7h_116 > .awsui_padding-box_1ca1i_pnu7h_106 > .awsui_utilities_1ca1i_pnu7h_202 > .awsui_utility-wrapper-last_1ca1i_pnu7h_230.awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
277
277
  padding-right: var(--space-l-4vl6xu, 20px);
278
278
  }
279
279
 
280
- .awsui_utility-type-menu-dropdown_1ca1i_1hszl_244:not(#\9) {
280
+ .awsui_utility-type-menu-dropdown_1ca1i_pnu7h_244:not(#\9) {
281
281
  padding: 0 var(--space-s-hv8c1d, 12px);
282
282
  align-items: stretch;
283
283
  }
284
284
 
285
- .awsui_utility-type-button-link_1ca1i_1hszl_259:not(#\9),
286
- .awsui_utility-type-button-primary-button_1ca1i_1hszl_230:not(#\9) {
285
+ .awsui_utility-type-button-link_1ca1i_pnu7h_259:not(#\9),
286
+ .awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
287
287
  padding: 0 var(--space-m-17eucw, 16px);
288
288
  }
289
289
 
290
- .awsui_utility-type-button-primary-button_1ca1i_1hszl_230:not(#\9) {
290
+ .awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9) {
291
291
  left: -1px;
292
292
  border-left: 1px solid var(--color-background-container-content-i8i4a0, #ffffff);
293
293
  }
294
- .awsui_utility-type-button-primary-button_1ca1i_1hszl_230:not(#\9)::after {
294
+ .awsui_utility-type-button-primary-button_1ca1i_pnu7h_230:not(#\9)::after {
295
295
  display: none;
296
296
  }
297
297
 
298
- .awsui_utility-link-icon_1ca1i_1hszl_272:not(#\9) {
298
+ .awsui_utility-link-icon_1ca1i_pnu7h_272:not(#\9) {
299
299
  margin-right: var(--space-xxs-ynfts5, 4px);
300
300
  }
301
301
 
302
- .awsui_utility-button-external-icon_1ca1i_1hszl_276:not(#\9) {
302
+ .awsui_utility-button-external-icon_1ca1i_pnu7h_276:not(#\9) {
303
303
  display: inline-block;
304
304
  }
305
305
 
306
- .awsui_trigger_1ca1i_1hszl_280:not(#\9) {
306
+ .awsui_trigger_1ca1i_pnu7h_280:not(#\9) {
307
307
  /*used in test-utils*/
308
308
  }
309
309
 
310
- .awsui_rotate-up_1ca1i_1hszl_284:not(#\9) {
310
+ .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
311
311
  transform: rotate(-180deg);
312
312
  transition: transform var(--motion-duration-rotate-180-ofa1ir, 135ms) var(--motion-easing-rotate-180-3rbbga, cubic-bezier(0.165, 0.84, 0.44, 1));
313
313
  }
314
314
  @media (prefers-reduced-motion: reduce) {
315
- .awsui_rotate-up_1ca1i_1hszl_284:not(#\9) {
315
+ .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
316
316
  animation: none;
317
317
  transition: none;
318
318
  }
319
319
  }
320
- .awsui-motion-disabled .awsui_rotate-up_1ca1i_1hszl_284:not(#\9), .awsui-mode-entering .awsui_rotate-up_1ca1i_1hszl_284:not(#\9) {
320
+ .awsui-motion-disabled .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9), .awsui-mode-entering .awsui_rotate-up_1ca1i_pnu7h_284:not(#\9) {
321
321
  animation: none;
322
322
  transition: none;
323
323
  }
324
324
 
325
- .awsui_rotate-down_1ca1i_1hszl_299:not(#\9) {
325
+ .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
326
326
  transform: rotate(0deg);
327
327
  transition: transform var(--motion-duration-rotate-180-ofa1ir, 135ms) var(--motion-easing-rotate-180-3rbbga, cubic-bezier(0.165, 0.84, 0.44, 1));
328
328
  }
329
329
  @media (prefers-reduced-motion: reduce) {
330
- .awsui_rotate-down_1ca1i_1hszl_299:not(#\9) {
330
+ .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
331
331
  animation: none;
332
332
  transition: none;
333
333
  }
334
334
  }
335
- .awsui-motion-disabled .awsui_rotate-down_1ca1i_1hszl_299:not(#\9), .awsui-mode-entering .awsui_rotate-down_1ca1i_1hszl_299:not(#\9) {
335
+ .awsui-motion-disabled .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9), .awsui-mode-entering .awsui_rotate-down_1ca1i_pnu7h_299:not(#\9) {
336
336
  animation: none;
337
337
  transition: none;
338
338
  }