@cloudscape-design/components 3.0.504 → 3.0.506

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 (77) hide show
  1. package/app-layout/visual-refresh/background.js +2 -2
  2. package/app-layout/visual-refresh/background.js.map +1 -1
  3. package/app-layout/visual-refresh/breadcrumbs.js +2 -2
  4. package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  5. package/app-layout/visual-refresh/header.js +2 -2
  6. package/app-layout/visual-refresh/header.js.map +1 -1
  7. package/app-layout/visual-refresh/mobile-toolbar.js +2 -2
  8. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  9. package/app-layout/visual-refresh/notifications.js +2 -2
  10. package/app-layout/visual-refresh/notifications.js.map +1 -1
  11. package/app-layout/visual-refresh/styles.css.js +81 -81
  12. package/app-layout/visual-refresh/styles.scoped.css +172 -172
  13. package/app-layout/visual-refresh/styles.selectors.js +81 -81
  14. package/app-layout/visual-refresh/trigger-button.js +1 -1
  15. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  16. package/button-dropdown/category-elements/category-element.d.ts +1 -1
  17. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  18. package/button-dropdown/category-elements/category-element.js +2 -2
  19. package/button-dropdown/category-elements/category-element.js.map +1 -1
  20. package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
  21. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  22. package/button-dropdown/category-elements/expandable-category-element.js +2 -2
  23. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  24. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
  25. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  26. package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -2
  27. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  28. package/button-dropdown/category-elements/styles.css.js +13 -13
  29. package/button-dropdown/category-elements/styles.scoped.css +21 -32
  30. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  31. package/button-dropdown/interfaces.d.ts +2 -0
  32. package/button-dropdown/interfaces.d.ts.map +1 -1
  33. package/button-dropdown/interfaces.js.map +1 -1
  34. package/button-dropdown/item-element/index.d.ts +1 -1
  35. package/button-dropdown/item-element/index.d.ts.map +1 -1
  36. package/button-dropdown/item-element/index.js +6 -1
  37. package/button-dropdown/item-element/index.js.map +1 -1
  38. package/button-dropdown/item-element/styles.css.js +16 -15
  39. package/button-dropdown/item-element/styles.scoped.css +18 -18
  40. package/button-dropdown/item-element/styles.selectors.js +16 -15
  41. package/button-dropdown/items-list.d.ts.map +1 -1
  42. package/button-dropdown/items-list.js +3 -3
  43. package/button-dropdown/items-list.js.map +1 -1
  44. package/cards/index.js +2 -2
  45. package/cards/index.js.map +1 -1
  46. package/container/internal.js +4 -4
  47. package/container/internal.js.map +1 -1
  48. package/content-layout/internal.js +3 -3
  49. package/content-layout/internal.js.map +1 -1
  50. package/expandable-section/styles.css.js +32 -32
  51. package/expandable-section/styles.scoped.css +63 -63
  52. package/expandable-section/styles.selectors.js +32 -32
  53. package/internal/components/dark-ribbon/index.js +2 -2
  54. package/internal/components/dark-ribbon/index.js.map +1 -1
  55. package/internal/environment.js +1 -1
  56. package/internal/environment.json +1 -1
  57. package/internal/manifest.json +1 -1
  58. package/internal/utils/content-header-utils.d.ts +2 -2
  59. package/internal/utils/content-header-utils.d.ts.map +1 -1
  60. package/internal/utils/content-header-utils.js +2 -2
  61. package/internal/utils/content-header-utils.js.map +1 -1
  62. package/package.json +1 -1
  63. package/split-panel/icons/bottom-icon-refresh.js +2 -2
  64. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  65. package/split-panel/icons/side-position-refresh.js +2 -2
  66. package/split-panel/icons/side-position-refresh.js.map +1 -1
  67. package/table/internal.js +2 -2
  68. package/table/internal.js.map +1 -1
  69. package/top-navigation/interfaces.d.ts +2 -0
  70. package/top-navigation/interfaces.d.ts.map +1 -1
  71. package/top-navigation/interfaces.js.map +1 -1
  72. package/wizard/internal.js +4 -4
  73. package/wizard/internal.js.map +1 -1
  74. package/wizard/wizard-form-header.js +3 -3
  75. package/wizard/wizard-form-header.js.map +1 -1
  76. package/wizard/wizard-navigation.js +2 -2
  77. package/wizard/wizard-navigation.js.map +1 -1
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { contentHeaderClassName } from '../../internal/utils/content-header-utils';
5
+ import { getContentHeaderClassName } from '../../internal/utils/content-header-utils';
6
6
  import { useAppLayoutInternals } from './context';
7
7
  import styles from './styles.css.js';
8
8
  export default function Background() {
@@ -10,7 +10,7 @@ export default function Background() {
10
10
  if (!hasNotificationsContent && (!breadcrumbs || isMobile) && !hasBackgroundOverlap) {
11
11
  return null;
12
12
  }
13
- return (React.createElement("div", { className: clsx(styles.background, contentHeaderClassName) },
13
+ return (React.createElement("div", { className: clsx(styles.background, getContentHeaderClassName()) },
14
14
  React.createElement("div", { className: styles['scrolling-background'] }),
15
15
  !isMobile && hasStickyBackground && (React.createElement("div", { className: clsx(styles['sticky-background'], {
16
16
  [styles['has-sticky-notifications']]: stickyNotifications,
@@ -1 +1 @@
1
- {"version":3,"file":"background.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/background.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,UAAU;IAChC,MAAM,EACJ,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,QAAQ,EACR,mBAAmB,GACpB,GAAG,qBAAqB,EAAE,CAAC;IAE5B,IAAI,CAAC,uBAAuB,IAAI,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE;QACnF,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,sBAAsB,CAAC;QAC7D,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,GAAI;QAEjD,CAAC,QAAQ,IAAI,mBAAmB,IAAI,CACnC,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE;gBAC3C,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,mBAAmB;aAC1D,CAAC,GACF,CACH,CACG,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';\nimport { contentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\n\nexport default function Background() {\n const {\n breadcrumbs,\n hasBackgroundOverlap,\n hasNotificationsContent,\n hasStickyBackground,\n isMobile,\n stickyNotifications,\n } = useAppLayoutInternals();\n\n if (!hasNotificationsContent && (!breadcrumbs || isMobile) && !hasBackgroundOverlap) {\n return null;\n }\n\n return (\n <div className={clsx(styles.background, contentHeaderClassName)}>\n <div className={styles['scrolling-background']} />\n\n {!isMobile && hasStickyBackground && (\n <div\n className={clsx(styles['sticky-background'], {\n [styles['has-sticky-notifications']]: stickyNotifications,\n })}\n />\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"background.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/background.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,UAAU;IAChC,MAAM,EACJ,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,QAAQ,EACR,mBAAmB,GACpB,GAAG,qBAAqB,EAAE,CAAC;IAE5B,IAAI,CAAC,uBAAuB,IAAI,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE;QACnF,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,yBAAyB,EAAE,CAAC;QAClE,6BAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,GAAI;QAEjD,CAAC,QAAQ,IAAI,mBAAmB,IAAI,CACnC,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE;gBAC3C,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,mBAAmB;aAC1D,CAAC,GACF,CACH,CACG,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';\nimport { getContentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\n\nexport default function Background() {\n const {\n breadcrumbs,\n hasBackgroundOverlap,\n hasNotificationsContent,\n hasStickyBackground,\n isMobile,\n stickyNotifications,\n } = useAppLayoutInternals();\n\n if (!hasNotificationsContent && (!breadcrumbs || isMobile) && !hasBackgroundOverlap) {\n return null;\n }\n\n return (\n <div className={clsx(styles.background, getContentHeaderClassName())}>\n <div className={styles['scrolling-background']} />\n\n {!isMobile && hasStickyBackground && (\n <div\n className={clsx(styles['sticky-background'], {\n [styles['has-sticky-notifications']]: stickyNotifications,\n })}\n />\n )}\n </div>\n );\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { contentHeaderClassName } from '../../internal/utils/content-header-utils';
5
+ import { getContentHeaderClassName } from '../../internal/utils/content-header-utils';
6
6
  import { useAppLayoutInternals } from './context';
7
7
  import styles from './styles.css.js';
8
8
  import testutilStyles from '../test-classes/styles.css.js';
@@ -13,6 +13,6 @@ export default function Breadcrumbs() {
13
13
  }
14
14
  return (React.createElement("div", { className: clsx(styles.breadcrumbs, testutilStyles.breadcrumbs, {
15
15
  [styles['has-sticky-background']]: hasStickyBackground,
16
- }, contentHeaderClassName) }, breadcrumbs));
16
+ }, getContentHeaderClassName()) }, breadcrumbs));
17
17
  }
18
18
  //# sourceMappingURL=breadcrumbs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbs.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,WAAW;IACjC,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAE/E,IAAI,QAAQ,IAAI,CAAC,WAAW,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,WAAW,EAClB,cAAc,CAAC,WAAW,EAC1B;YACE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,mBAAmB;SACvD,EACD,sBAAsB,CACvB,IAEA,WAAW,CACR,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';\nimport { contentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\n\nexport default function Breadcrumbs() {\n const { breadcrumbs, hasStickyBackground, isMobile } = useAppLayoutInternals();\n\n if (isMobile || !breadcrumbs) {\n return null;\n }\n\n return (\n <div\n className={clsx(\n styles.breadcrumbs,\n testutilStyles.breadcrumbs,\n {\n [styles['has-sticky-background']]: hasStickyBackground,\n },\n contentHeaderClassName\n )}\n >\n {breadcrumbs}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"breadcrumbs.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/breadcrumbs.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,WAAW;IACjC,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAE/E,IAAI,QAAQ,IAAI,CAAC,WAAW,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,WAAW,EAClB,cAAc,CAAC,WAAW,EAC1B;YACE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,mBAAmB;SACvD,EACD,yBAAyB,EAAE,CAC5B,IAEA,WAAW,CACR,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';\nimport { getContentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\n\nexport default function Breadcrumbs() {\n const { breadcrumbs, hasStickyBackground, isMobile } = useAppLayoutInternals();\n\n if (isMobile || !breadcrumbs) {\n return null;\n }\n\n return (\n <div\n className={clsx(\n styles.breadcrumbs,\n testutilStyles.breadcrumbs,\n {\n [styles['has-sticky-background']]: hasStickyBackground,\n },\n getContentHeaderClassName()\n )}\n >\n {breadcrumbs}\n </div>\n );\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { contentHeaderClassName } from '../../internal/utils/content-header-utils';
5
+ import { getContentHeaderClassName } from '../../internal/utils/content-header-utils';
6
6
  import { useAppLayoutInternals } from './context';
7
7
  import styles from './styles.css.js';
8
8
  export default function Header() {
@@ -14,6 +14,6 @@ export default function Header() {
14
14
  [styles['has-breadcrumbs']]: breadcrumbs,
15
15
  [styles['has-notifications-content']]: hasNotificationsContent,
16
16
  [styles.unfocusable]: hasDrawerViewportOverlay,
17
- }, contentHeaderClassName) }, contentHeader));
17
+ }, getContentHeaderClassName()) }, contentHeader));
18
18
  }
19
19
  //# sourceMappingURL=header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/header.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,MAAM;IAC5B,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAElH,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,gCACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd;YACE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,WAAW;YACxC,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,EAAE,uBAAuB;YAC9D,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,wBAAwB;SAC/C,EACD,sBAAsB,CACvB,IAEA,aAAa,CACP,CACV,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';\nimport { contentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\n\nexport default function Header() {\n const { breadcrumbs, contentHeader, hasDrawerViewportOverlay, hasNotificationsContent } = useAppLayoutInternals();\n\n if (!contentHeader) {\n return null;\n }\n\n return (\n <header\n className={clsx(\n styles.content,\n {\n [styles['has-breadcrumbs']]: breadcrumbs,\n [styles['has-notifications-content']]: hasNotificationsContent,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n contentHeaderClassName\n )}\n >\n {contentHeader}\n </header>\n );\n}\n"]}
1
+ {"version":3,"file":"header.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/header.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,MAAM;IAC5B,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAElH,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,gCACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd;YACE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,WAAW;YACxC,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,EAAE,uBAAuB;YAC9D,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,wBAAwB;SAC/C,EACD,yBAAyB,EAAE,CAC5B,IAEA,aAAa,CACP,CACV,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';\nimport { getContentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\n\nexport default function Header() {\n const { breadcrumbs, contentHeader, hasDrawerViewportOverlay, hasNotificationsContent } = useAppLayoutInternals();\n\n if (!contentHeader) {\n return null;\n }\n\n return (\n <header\n className={clsx(\n styles.content,\n {\n [styles['has-breadcrumbs']]: breadcrumbs,\n [styles['has-notifications-content']]: hasNotificationsContent,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n getContentHeaderClassName()\n )}\n >\n {contentHeader}\n </header>\n );\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { contentHeaderClassName } from '../../internal/utils/content-header-utils';
5
+ import { getContentHeaderClassName } from '../../internal/utils/content-header-utils';
6
6
  import { InternalButton } from '../../button/internal';
7
7
  import { MobileTriggers as DrawersMobileTriggers } from './drawers';
8
8
  import { useAppLayoutInternals } from './context';
@@ -20,7 +20,7 @@ export default function MobileToolbar() {
20
20
  return (React.createElement("section", { className: clsx(styles['mobile-toolbar'], [testutilStyles['mobile-bar']], {
21
21
  [styles['has-breadcrumbs']]: breadcrumbs,
22
22
  [styles.unfocusable]: hasDrawerViewportOverlay,
23
- }, testutilStyles['mobile-bar'], contentHeaderClassName, shouldRemoveHighContrastHeader && styles['remove-high-contrast-header']) },
23
+ }, testutilStyles['mobile-bar'], getContentHeaderClassName(), shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header']) },
24
24
  !navigationHide && (React.createElement("nav", { "aria-hidden": isNavigationOpen, className: clsx(styles['mobile-toolbar-nav'], { [testutilStyles['drawer-closed']]: !isNavigationOpen }) },
25
25
  React.createElement(InternalButton, { ariaLabel: (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.navigationToggle) !== null && _a !== void 0 ? _a : undefined, ariaExpanded: isNavigationOpen ? undefined : false, iconName: "menu", formAction: "none", onClick: () => handleNavigationClick(true), variant: "icon", className: testutilStyles['navigation-toggle'], ref: navigationRefs.toggle, disabled: hasDrawerViewportOverlay, __nativeAttributes: { 'aria-haspopup': isNavigationOpen ? undefined : true } }))),
26
26
  breadcrumbs && (React.createElement("div", { className: clsx(styles['mobile-toolbar-breadcrumbs'], testutilStyles.breadcrumbs) }, breadcrumbs)),
@@ -1 +1 @@
1
- {"version":3,"file":"mobile-toolbar.js","sourceRoot":"lib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AAC;YAEpG,oBAAC,cAAc,IACb,SAAS,EAAE,cAAc,CAAC,cAAc,CAAC,EACzC,YAAY,EAAE,WAAW,EACzB,QAAQ,EAAE,wBAAwB,EAClC,SAAS,EAAE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,mCAAI,SAAS,EAC/C,QAAQ,EAAC,aAAa,EACtB,UAAU,EAAC,MAAM,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EACrC,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,SAAS,CAAC,MAAM,EACrB,kBAAkB,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,GAC7C,CACI,CACT,CACF,CACO,CACX,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';\nimport { contentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { InternalButton } from '../../button/internal';\nimport { MobileTriggers as DrawersMobileTriggers } from './drawers';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\nimport { shouldRemoveHighContrastHeader } from '../../internal/utils/content-header-utils';\n\nexport default function MobileToolbar() {\n const {\n ariaLabels,\n breadcrumbs,\n drawers,\n handleNavigationClick,\n handleToolsClick,\n hasDrawerViewportOverlay,\n isMobile,\n isNavigationOpen,\n __embeddedViewMode,\n isToolsOpen,\n navigationHide,\n navigationRefs,\n toolsHide,\n toolsRefs,\n } = useAppLayoutInternals();\n\n if (\n !isMobile ||\n __embeddedViewMode ||\n (navigationHide && !breadcrumbs && toolsHide && (!drawers || drawers.length === 0))\n ) {\n return null;\n }\n\n return (\n <section\n className={clsx(\n styles['mobile-toolbar'],\n [testutilStyles['mobile-bar']],\n {\n [styles['has-breadcrumbs']]: breadcrumbs,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n testutilStyles['mobile-bar'],\n contentHeaderClassName,\n shouldRemoveHighContrastHeader && styles['remove-high-contrast-header']\n )}\n >\n {!navigationHide && (\n <nav\n aria-hidden={isNavigationOpen}\n className={clsx(styles['mobile-toolbar-nav'], { [testutilStyles['drawer-closed']]: !isNavigationOpen })}\n >\n <InternalButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={isNavigationOpen ? undefined : false}\n iconName=\"menu\"\n formAction=\"none\"\n onClick={() => handleNavigationClick(true)}\n variant=\"icon\"\n className={testutilStyles['navigation-toggle']}\n ref={navigationRefs.toggle}\n disabled={hasDrawerViewportOverlay}\n __nativeAttributes={{ 'aria-haspopup': isNavigationOpen ? undefined : true }}\n />\n </nav>\n )}\n\n {breadcrumbs && (\n <div className={clsx(styles['mobile-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>{breadcrumbs}</div>\n )}\n\n {drawers ? (\n <DrawersMobileTriggers />\n ) : (\n !toolsHide && (\n <aside\n aria-hidden={isToolsOpen}\n aria-label={ariaLabels?.tools ?? undefined}\n className={clsx(styles['mobile-toolbar-tools'], { [testutilStyles['drawer-closed']]: !isToolsOpen })}\n >\n <InternalButton\n className={testutilStyles['tools-toggle']}\n ariaExpanded={isToolsOpen}\n disabled={hasDrawerViewportOverlay}\n ariaLabel={ariaLabels?.toolsToggle ?? undefined}\n iconName=\"status-info\"\n formAction=\"none\"\n onClick={() => handleToolsClick(true)}\n variant=\"icon\"\n ref={toolsRefs.toggle}\n __nativeAttributes={{ 'aria-haspopup': true }}\n />\n </aside>\n )\n )}\n </section>\n );\n}\n"]}
1
+ {"version":3,"file":"mobile-toolbar.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/mobile-toolbar.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2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AW,mCAAI,SAAS,EAC/C,QAAQ,EAAC,aAAa,EACtB,UAAU,EAAC,MAAM,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EACrC,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,SAAS,CAAC,MAAM,EACrB,kBAAkB,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,GAC7C,CACI,CACT,CACF,CACO,CACX,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';\nimport { getContentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { InternalButton } from '../../button/internal';\nimport { MobileTriggers as DrawersMobileTriggers } from './drawers';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\nimport { shouldRemoveHighContrastHeader } from '../../internal/utils/content-header-utils';\n\nexport default function MobileToolbar() {\n const {\n ariaLabels,\n breadcrumbs,\n drawers,\n handleNavigationClick,\n handleToolsClick,\n hasDrawerViewportOverlay,\n isMobile,\n isNavigationOpen,\n __embeddedViewMode,\n isToolsOpen,\n navigationHide,\n navigationRefs,\n toolsHide,\n toolsRefs,\n } = useAppLayoutInternals();\n\n if (\n !isMobile ||\n __embeddedViewMode ||\n (navigationHide && !breadcrumbs && toolsHide && (!drawers || drawers.length === 0))\n ) {\n return null;\n }\n\n return (\n <section\n className={clsx(\n styles['mobile-toolbar'],\n [testutilStyles['mobile-bar']],\n {\n [styles['has-breadcrumbs']]: breadcrumbs,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n testutilStyles['mobile-bar'],\n getContentHeaderClassName(),\n shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header']\n )}\n >\n {!navigationHide && (\n <nav\n aria-hidden={isNavigationOpen}\n className={clsx(styles['mobile-toolbar-nav'], { [testutilStyles['drawer-closed']]: !isNavigationOpen })}\n >\n <InternalButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={isNavigationOpen ? undefined : false}\n iconName=\"menu\"\n formAction=\"none\"\n onClick={() => handleNavigationClick(true)}\n variant=\"icon\"\n className={testutilStyles['navigation-toggle']}\n ref={navigationRefs.toggle}\n disabled={hasDrawerViewportOverlay}\n __nativeAttributes={{ 'aria-haspopup': isNavigationOpen ? undefined : true }}\n />\n </nav>\n )}\n\n {breadcrumbs && (\n <div className={clsx(styles['mobile-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>{breadcrumbs}</div>\n )}\n\n {drawers ? (\n <DrawersMobileTriggers />\n ) : (\n !toolsHide && (\n <aside\n aria-hidden={isToolsOpen}\n aria-label={ariaLabels?.tools ?? undefined}\n className={clsx(styles['mobile-toolbar-tools'], { [testutilStyles['drawer-closed']]: !isToolsOpen })}\n >\n <InternalButton\n className={testutilStyles['tools-toggle']}\n ariaExpanded={isToolsOpen}\n disabled={hasDrawerViewportOverlay}\n ariaLabel={ariaLabels?.toolsToggle ?? undefined}\n iconName=\"status-info\"\n formAction=\"none\"\n onClick={() => handleToolsClick(true)}\n variant=\"icon\"\n ref={toolsRefs.toggle}\n __nativeAttributes={{ 'aria-haspopup': true }}\n />\n </aside>\n )\n )}\n </section>\n );\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import React from 'react';
4
4
  import clsx from 'clsx';
5
- import { contentHeaderClassName } from '../../internal/utils/content-header-utils';
5
+ import { getContentHeaderClassName } from '../../internal/utils/content-header-utils';
6
6
  import { useAppLayoutInternals } from './context';
7
7
  import styles from './styles.css.js';
8
8
  import testutilStyles from '../test-classes/styles.css.js';
@@ -19,7 +19,7 @@ export default function Notifications() {
19
19
  return (React.createElement("div", { role: "region", "aria-label": (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.notifications) !== null && _a !== void 0 ? _a : undefined, className: clsx(styles.notifications, {
20
20
  [styles['sticky-notifications']]: stickyNotifications,
21
21
  [styles.unfocusable]: hasDrawerViewportOverlay,
22
- }, testutilStyles.notifications, contentHeaderClassName) },
22
+ }, testutilStyles.notifications, getContentHeaderClassName()) },
23
23
  React.createElement("div", { ref: notificationsElement }, notifications)));
24
24
  }
25
25
  //# sourceMappingURL=notifications.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/notifications.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,aAAa;;IACnC,MAAM,EAAE,UAAU,EAAE,wBAAwB,EAAE,aAAa,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GACtG,qBAAqB,EAAE,CAAC;IAE1B,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED;;;OAGG;IACH,OAAO,CACL,6BACE,IAAI,EAAC,QAAQ,gBACD,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,mCAAI,SAAS,EAClD,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,aAAa,EACpB;YACE,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,mBAAmB;YACrD,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,wBAAwB;SAC/C,EACD,cAAc,CAAC,aAAa,EAC5B,sBAAsB,CACvB;QAED,6BAAK,GAAG,EAAE,oBAAoB,IAAG,aAAa,CAAO,CACjD,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';\nimport { contentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\n\nexport default function Notifications() {\n const { ariaLabels, hasDrawerViewportOverlay, notifications, notificationsElement, stickyNotifications } =\n useAppLayoutInternals();\n\n if (!notifications) {\n return null;\n }\n\n /**\n * The notificationsElement ref is assigned to an inner div to prevent internal bottom margin\n * from affecting the calculated height, which is used for sticky elements below.\n */\n return (\n <div\n role=\"region\"\n aria-label={ariaLabels?.notifications ?? undefined}\n className={clsx(\n styles.notifications,\n {\n [styles['sticky-notifications']]: stickyNotifications,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n testutilStyles.notifications,\n contentHeaderClassName\n )}\n >\n <div ref={notificationsElement}>{notifications}</div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"notifications.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/notifications.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,aAAa;;IACnC,MAAM,EAAE,UAAU,EAAE,wBAAwB,EAAE,aAAa,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GACtG,qBAAqB,EAAE,CAAC;IAE1B,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED;;;OAGG;IACH,OAAO,CACL,6BACE,IAAI,EAAC,QAAQ,gBACD,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,mCAAI,SAAS,EAClD,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,aAAa,EACpB;YACE,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,mBAAmB;YACrD,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,wBAAwB;SAC/C,EACD,cAAc,CAAC,aAAa,EAC5B,yBAAyB,EAAE,CAC5B;QAED,6BAAK,GAAG,EAAE,oBAAoB,IAAG,aAAa,CAAO,CACjD,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';\nimport { getContentHeaderClassName } from '../../internal/utils/content-header-utils';\nimport { useAppLayoutInternals } from './context';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\n\nexport default function Notifications() {\n const { ariaLabels, hasDrawerViewportOverlay, notifications, notificationsElement, stickyNotifications } =\n useAppLayoutInternals();\n\n if (!notifications) {\n return null;\n }\n\n /**\n * The notificationsElement ref is assigned to an inner div to prevent internal bottom margin\n * from affecting the calculated height, which is used for sticky elements below.\n */\n return (\n <div\n role=\"region\"\n aria-label={ariaLabels?.notifications ?? undefined}\n className={clsx(\n styles.notifications,\n {\n [styles['sticky-notifications']]: stickyNotifications,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n testutilStyles.notifications,\n getContentHeaderClassName()\n )}\n >\n <div ref={notificationsElement}>{notifications}</div>\n </div>\n );\n}\n"]}
@@ -1,86 +1,86 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "background": "awsui_background_hyvsj_1hfun_93",
5
- "scrolling-background": "awsui_scrolling-background_hyvsj_1hfun_96",
6
- "sticky-background": "awsui_sticky-background_hyvsj_1hfun_102",
7
- "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1hfun_110",
8
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_1hfun_123",
9
- "has-sticky-background": "awsui_has-sticky-background_hyvsj_1hfun_133",
10
- "drawers-container": "awsui_drawers-container_hyvsj_1hfun_145",
11
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_1hfun_156",
12
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1hfun_179",
13
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1hfun_184",
14
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1hfun_225",
15
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1hfun_235",
16
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1hfun_239",
17
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1hfun_253",
18
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_1hfun_239",
19
- "drawer": "awsui_drawer_hyvsj_1hfun_145",
20
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_1hfun_283",
21
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_1hfun_292",
22
- "drawer-content": "awsui_drawer-content_hyvsj_1hfun_283",
23
- "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1hfun_300",
24
- "drawer-slider": "awsui_drawer-slider_hyvsj_1hfun_303",
25
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_1hfun_310",
26
- "content": "awsui_content_hyvsj_1hfun_336",
27
- "layout": "awsui_layout_hyvsj_1hfun_357",
28
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_1hfun_440",
29
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1hfun_455",
30
- "content-type-table": "awsui_content-type-table_hyvsj_1hfun_469",
31
- "content-type-cards": "awsui_content-type-cards_hyvsj_1hfun_469",
32
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1hfun_475",
33
- "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1hfun_478",
34
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1hfun_510",
35
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1hfun_513",
36
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1hfun_523",
37
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1hfun_526",
38
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_1hfun_529",
39
- "has-header": "awsui_has-header_hyvsj_1hfun_529",
40
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_1hfun_550",
41
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1hfun_550",
42
- "has-split-panel": "awsui_has-split-panel_hyvsj_1hfun_593",
43
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1hfun_593",
44
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_1hfun_609",
45
- "unfocusable": "awsui_unfocusable_hyvsj_1hfun_614",
46
- "container": "awsui_container_hyvsj_1hfun_624",
47
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_1hfun_649",
48
- "is-tools-open": "awsui_is-tools-open_hyvsj_1hfun_652",
49
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1hfun_652",
50
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1hfun_652",
51
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_1hfun_652",
52
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1hfun_661",
53
- "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_1hfun_677",
54
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1hfun_681",
55
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1hfun_685",
56
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1hfun_689",
57
- "navigation-container": "awsui_navigation-container_hyvsj_1hfun_698",
58
- "show-navigation": "awsui_show-navigation_hyvsj_1hfun_742",
59
- "animating": "awsui_animating_hyvsj_1hfun_764",
60
- "showButtons": "awsui_showButtons_hyvsj_1hfun_1",
61
- "navigation": "awsui_navigation_hyvsj_1hfun_698",
62
- "openNavigation": "awsui_openNavigation_hyvsj_1hfun_1",
63
- "animated-content": "awsui_animated-content_hyvsj_1hfun_826",
64
- "hide-navigation": "awsui_hide-navigation_hyvsj_1hfun_835",
65
- "notifications": "awsui_notifications_hyvsj_1hfun_845",
66
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_1hfun_851",
67
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1hfun_868",
68
- "position-bottom": "awsui_position-bottom_hyvsj_1hfun_915",
69
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1hfun_1",
70
- "split-panel-side": "awsui_split-panel-side_hyvsj_1hfun_944",
71
- "position-side": "awsui_position-side_hyvsj_1hfun_957",
72
- "tools-container": "awsui_tools-container_hyvsj_1hfun_979",
73
- "tools": "awsui_tools_hyvsj_1hfun_979",
74
- "openTools": "awsui_openTools_hyvsj_1hfun_1",
75
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1hfun_1076",
76
- "hide-tools": "awsui_hide-tools_hyvsj_1hfun_1086",
77
- "show-tools": "awsui_show-tools_hyvsj_1hfun_1098",
78
- "has-tools-form": "awsui_has-tools-form_hyvsj_1hfun_1076",
79
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1hfun_1180",
80
- "trigger": "awsui_trigger_hyvsj_1hfun_1180",
81
- "selected": "awsui_selected_hyvsj_1hfun_1243",
82
- "badge": "awsui_badge_hyvsj_1hfun_1263",
83
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1hfun_1267",
84
- "dot": "awsui_dot_hyvsj_1hfun_1275"
4
+ "background": "awsui_background_hyvsj_2jy8k_93",
5
+ "scrolling-background": "awsui_scrolling-background_hyvsj_2jy8k_96",
6
+ "sticky-background": "awsui_sticky-background_hyvsj_2jy8k_102",
7
+ "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_2jy8k_110",
8
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_2jy8k_123",
9
+ "has-sticky-background": "awsui_has-sticky-background_hyvsj_2jy8k_133",
10
+ "drawers-container": "awsui_drawers-container_hyvsj_2jy8k_145",
11
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_2jy8k_156",
12
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_2jy8k_179",
13
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_2jy8k_184",
14
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_2jy8k_225",
15
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_2jy8k_235",
16
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_2jy8k_239",
17
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_2jy8k_253",
18
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_2jy8k_239",
19
+ "drawer": "awsui_drawer_hyvsj_2jy8k_145",
20
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_2jy8k_283",
21
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_2jy8k_292",
22
+ "drawer-content": "awsui_drawer-content_hyvsj_2jy8k_283",
23
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_2jy8k_300",
24
+ "drawer-slider": "awsui_drawer-slider_hyvsj_2jy8k_303",
25
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_2jy8k_310",
26
+ "content": "awsui_content_hyvsj_2jy8k_336",
27
+ "layout": "awsui_layout_hyvsj_2jy8k_357",
28
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_2jy8k_440",
29
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_2jy8k_455",
30
+ "content-type-table": "awsui_content-type-table_hyvsj_2jy8k_469",
31
+ "content-type-cards": "awsui_content-type-cards_hyvsj_2jy8k_469",
32
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_2jy8k_475",
33
+ "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_2jy8k_478",
34
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_2jy8k_510",
35
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_2jy8k_513",
36
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_2jy8k_523",
37
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_2jy8k_526",
38
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_2jy8k_529",
39
+ "has-header": "awsui_has-header_hyvsj_2jy8k_529",
40
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_2jy8k_550",
41
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_2jy8k_550",
42
+ "has-split-panel": "awsui_has-split-panel_hyvsj_2jy8k_593",
43
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_2jy8k_593",
44
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_2jy8k_609",
45
+ "unfocusable": "awsui_unfocusable_hyvsj_2jy8k_614",
46
+ "container": "awsui_container_hyvsj_2jy8k_624",
47
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_2jy8k_649",
48
+ "is-tools-open": "awsui_is-tools-open_hyvsj_2jy8k_652",
49
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_2jy8k_652",
50
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_2jy8k_652",
51
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_2jy8k_652",
52
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_2jy8k_661",
53
+ "remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_2jy8k_677",
54
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_2jy8k_681",
55
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_2jy8k_685",
56
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_2jy8k_689",
57
+ "navigation-container": "awsui_navigation-container_hyvsj_2jy8k_698",
58
+ "show-navigation": "awsui_show-navigation_hyvsj_2jy8k_742",
59
+ "animating": "awsui_animating_hyvsj_2jy8k_764",
60
+ "showButtons": "awsui_showButtons_hyvsj_2jy8k_1",
61
+ "navigation": "awsui_navigation_hyvsj_2jy8k_698",
62
+ "openNavigation": "awsui_openNavigation_hyvsj_2jy8k_1",
63
+ "animated-content": "awsui_animated-content_hyvsj_2jy8k_826",
64
+ "hide-navigation": "awsui_hide-navigation_hyvsj_2jy8k_835",
65
+ "notifications": "awsui_notifications_hyvsj_2jy8k_845",
66
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_2jy8k_851",
67
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_2jy8k_868",
68
+ "position-bottom": "awsui_position-bottom_hyvsj_2jy8k_915",
69
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_2jy8k_1",
70
+ "split-panel-side": "awsui_split-panel-side_hyvsj_2jy8k_944",
71
+ "position-side": "awsui_position-side_hyvsj_2jy8k_957",
72
+ "tools-container": "awsui_tools-container_hyvsj_2jy8k_979",
73
+ "tools": "awsui_tools_hyvsj_2jy8k_979",
74
+ "openTools": "awsui_openTools_hyvsj_2jy8k_1",
75
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_2jy8k_1076",
76
+ "hide-tools": "awsui_hide-tools_hyvsj_2jy8k_1086",
77
+ "show-tools": "awsui_show-tools_hyvsj_2jy8k_1098",
78
+ "has-tools-form": "awsui_has-tools-form_hyvsj_2jy8k_1076",
79
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_2jy8k_1180",
80
+ "trigger": "awsui_trigger_hyvsj_2jy8k_1180",
81
+ "selected": "awsui_selected_hyvsj_2jy8k_1243",
82
+ "badge": "awsui_badge_hyvsj_2jy8k_1263",
83
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_2jy8k_1267",
84
+ "dot": "awsui_dot_hyvsj_2jy8k_1275"
85
85
  };
86
86