@cloudscape-design/components 3.0.498 → 3.0.499

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 (54) hide show
  1. package/app-layout/visual-refresh/background.d.ts.map +1 -1
  2. package/app-layout/visual-refresh/background.js +2 -1
  3. package/app-layout/visual-refresh/background.js.map +1 -1
  4. package/app-layout/visual-refresh/breadcrumbs.d.ts.map +1 -1
  5. package/app-layout/visual-refresh/breadcrumbs.js +2 -1
  6. package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
  7. package/app-layout/visual-refresh/header.d.ts.map +1 -1
  8. package/app-layout/visual-refresh/header.js +2 -1
  9. package/app-layout/visual-refresh/header.js.map +1 -1
  10. package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
  11. package/app-layout/visual-refresh/mobile-toolbar.js +2 -1
  12. package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
  13. package/app-layout/visual-refresh/notifications.d.ts.map +1 -1
  14. package/app-layout/visual-refresh/notifications.js +2 -1
  15. package/app-layout/visual-refresh/notifications.js.map +1 -1
  16. package/app-layout/visual-refresh/styles.css.js +80 -80
  17. package/app-layout/visual-refresh/styles.scoped.css +170 -170
  18. package/app-layout/visual-refresh/styles.selectors.js +80 -80
  19. package/container/internal.d.ts.map +1 -1
  20. package/container/internal.js +2 -1
  21. package/container/internal.js.map +1 -1
  22. package/content-layout/internal.d.ts.map +1 -1
  23. package/content-layout/internal.js +3 -2
  24. package/content-layout/internal.js.map +1 -1
  25. package/internal/components/dark-ribbon/index.d.ts.map +1 -1
  26. package/internal/components/dark-ribbon/index.js +2 -1
  27. package/internal/components/dark-ribbon/index.js.map +1 -1
  28. package/internal/environment.js +1 -1
  29. package/internal/environment.json +1 -1
  30. package/internal/manifest.json +1 -1
  31. package/internal/utils/content-header-utils.d.ts +2 -0
  32. package/internal/utils/content-header-utils.d.ts.map +1 -0
  33. package/internal/utils/content-header-utils.js +7 -0
  34. package/internal/utils/content-header-utils.js.map +1 -0
  35. package/internal/utils/global-flags.d.ts +11 -0
  36. package/internal/utils/global-flags.d.ts.map +1 -0
  37. package/internal/utils/global-flags.js +25 -0
  38. package/internal/utils/global-flags.js.map +1 -0
  39. package/package.json +1 -1
  40. package/split-panel/icons/bottom-icon-refresh.d.ts.map +1 -1
  41. package/split-panel/icons/bottom-icon-refresh.js +3 -2
  42. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  43. package/split-panel/icons/side-position-refresh.d.ts.map +1 -1
  44. package/split-panel/icons/side-position-refresh.js +2 -1
  45. package/split-panel/icons/side-position-refresh.js.map +1 -1
  46. package/table/internal.d.ts.map +1 -1
  47. package/table/internal.js +2 -1
  48. package/table/internal.js.map +1 -1
  49. package/wizard/internal.d.ts.map +1 -1
  50. package/wizard/internal.js +2 -1
  51. package/wizard/internal.js.map +1 -1
  52. package/wizard/wizard-form-header.d.ts.map +1 -1
  53. package/wizard/wizard-form-header.js +2 -1
  54. package/wizard/wizard-form-header.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"background.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/background.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,UAAU,uBA2BjC"}
1
+ {"version":3,"file":"background.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/background.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,OAAO,UAAU,UAAU,uBA2BjC"}
@@ -2,6 +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
6
  import { useAppLayoutInternals } from './context';
6
7
  import styles from './styles.css.js';
7
8
  export default function Background() {
@@ -9,7 +10,7 @@ export default function Background() {
9
10
  if (!hasNotificationsContent && (!breadcrumbs || isMobile) && !hasBackgroundOverlap) {
10
11
  return null;
11
12
  }
12
- return (React.createElement("div", { className: clsx(styles.background, 'awsui-context-content-header') },
13
+ return (React.createElement("div", { className: clsx(styles.background, contentHeaderClassName) },
13
14
  React.createElement("div", { className: styles['scrolling-background'] }),
14
15
  !isMobile && hasStickyBackground && (React.createElement("div", { className: clsx(styles['sticky-background'], {
15
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,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,8BAA8B,CAAC;QACrE,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 { 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, 'awsui-context-content-header')}>\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,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 +1 @@
1
- {"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/breadcrumbs.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,OAAO,UAAU,WAAW,uBAqBlC"}
1
+ {"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/breadcrumbs.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,OAAO,UAAU,WAAW,uBAqBlC"}
@@ -2,6 +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
6
  import { useAppLayoutInternals } from './context';
6
7
  import styles from './styles.css.js';
7
8
  import testutilStyles from '../test-classes/styles.css.js';
@@ -12,6 +13,6 @@ export default function Breadcrumbs() {
12
13
  }
13
14
  return (React.createElement("div", { className: clsx(styles.breadcrumbs, testutilStyles.breadcrumbs, {
14
15
  [styles['has-sticky-background']]: hasStickyBackground,
15
- }, 'awsui-context-content-header') }, breadcrumbs));
16
+ }, contentHeaderClassName) }, breadcrumbs));
16
17
  }
17
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,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,8BAA8B,CAC/B,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 { 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 'awsui-context-content-header'\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,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 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/header.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,MAAM,uBAsB7B"}
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/header.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,OAAO,UAAU,MAAM,uBAsB7B"}
@@ -2,6 +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
6
  import { useAppLayoutInternals } from './context';
6
7
  import styles from './styles.css.js';
7
8
  export default function Header() {
@@ -13,6 +14,6 @@ export default function Header() {
13
14
  [styles['has-breadcrumbs']]: breadcrumbs,
14
15
  [styles['has-notifications-content']]: hasNotificationsContent,
15
16
  [styles.unfocusable]: hasDrawerViewportOverlay,
16
- }, 'awsui-context-content-header') }, contentHeader));
17
+ }, contentHeaderClassName) }, contentHeader));
17
18
  }
18
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,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,8BAA8B,CAC/B,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 { 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 'awsui-context-content-header'\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,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 +1 @@
1
- {"version":3,"file":"mobile-toolbar.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/mobile-toolbar.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,aAAa,uBAyFpC"}
1
+ {"version":3,"file":"mobile-toolbar.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/mobile-toolbar.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,aAAa,uBAyFpC"}
@@ -2,6 +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
6
  import { InternalButton } from '../../button/internal';
6
7
  import { MobileTriggers as DrawersMobileTriggers } from './drawers';
7
8
  import { useAppLayoutInternals } from './context';
@@ -18,7 +19,7 @@ export default function MobileToolbar() {
18
19
  return (React.createElement("section", { className: clsx(styles['mobile-toolbar'], [testutilStyles['mobile-bar']], {
19
20
  [styles['has-breadcrumbs']]: breadcrumbs,
20
21
  [styles.unfocusable]: hasDrawerViewportOverlay,
21
- }, testutilStyles['mobile-bar'], 'awsui-context-content-header') },
22
+ }, testutilStyles['mobile-bar'], contentHeaderClassName) },
22
23
  !navigationHide && (React.createElement("nav", { "aria-hidden": isNavigationOpen, className: clsx(styles['mobile-toolbar-nav'], { [testutilStyles['drawer-closed']]: !isNavigationOpen }) },
23
24
  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 } }))),
24
25
  breadcrumbs && (React.createElement("div", { className: clsx(styles['mobile-toolbar-breadcrumbs'], testutilStyles.breadcrumbs) }, breadcrumbs)),
@@ -1 +1 @@
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,E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,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 { 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';\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 'awsui-context-content-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,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACpE,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,EACJ,UAAU,EACV,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,cAAc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AC,IAAI,EAAE,GAC5E,CACE,CACP;QAEA,WAAW,IAAI,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,IAAG,WAAW,CAAO,CAC5G;QAEA,OAAO,CAAC,CAAC,CAAC,CACT,oBAAC,qBAAqB,OAAG,CAC1B,CAAC,CAAC,CAAC,CACF,CAAC,SAAS,IAAI,CACZ,8CACe,WAAW,gBACZ,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,mCAAI,SAAS,EAC1C,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;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';\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 )}\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 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/notifications.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,OAAO,UAAU,aAAa,uBA6BpC"}
1
+ {"version":3,"file":"notifications.d.ts","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/notifications.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,OAAO,UAAU,aAAa,uBA6BpC"}
@@ -2,6 +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
6
  import { useAppLayoutInternals } from './context';
6
7
  import styles from './styles.css.js';
7
8
  import testutilStyles from '../test-classes/styles.css.js';
@@ -18,7 +19,7 @@ export default function Notifications() {
18
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, {
19
20
  [styles['sticky-notifications']]: stickyNotifications,
20
21
  [styles.unfocusable]: hasDrawerViewportOverlay,
21
- }, testutilStyles.notifications, 'awsui-context-content-header') },
22
+ }, testutilStyles.notifications, contentHeaderClassName) },
22
23
  React.createElement("div", { ref: notificationsElement }, notifications)));
23
24
  }
24
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,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,8BAA8B,CAC/B;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 { 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 'awsui-context-content-header'\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,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,85 +1,85 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "background": "awsui_background_hyvsj_1jkoz_93",
5
- "scrolling-background": "awsui_scrolling-background_hyvsj_1jkoz_96",
6
- "sticky-background": "awsui_sticky-background_hyvsj_1jkoz_102",
7
- "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1jkoz_110",
8
- "breadcrumbs": "awsui_breadcrumbs_hyvsj_1jkoz_123",
9
- "has-sticky-background": "awsui_has-sticky-background_hyvsj_1jkoz_133",
10
- "drawers-container": "awsui_drawers-container_hyvsj_1jkoz_145",
11
- "has-open-drawer": "awsui_has-open-drawer_hyvsj_1jkoz_156",
12
- "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1jkoz_179",
13
- "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1jkoz_184",
14
- "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1jkoz_225",
15
- "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1jkoz_235",
16
- "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1jkoz_239",
17
- "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1jkoz_253",
18
- "drawers-trigger": "awsui_drawers-trigger_hyvsj_1jkoz_239",
19
- "drawer": "awsui_drawer_hyvsj_1jkoz_145",
20
- "drawer-content-container": "awsui_drawer-content-container_hyvsj_1jkoz_283",
21
- "drawer-close-button": "awsui_drawer-close-button_hyvsj_1jkoz_292",
22
- "drawer-content": "awsui_drawer-content_hyvsj_1jkoz_283",
23
- "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1jkoz_300",
24
- "drawer-slider": "awsui_drawer-slider_hyvsj_1jkoz_303",
25
- "is-drawer-open": "awsui_is-drawer-open_hyvsj_1jkoz_310",
26
- "content": "awsui_content_hyvsj_1jkoz_336",
27
- "layout": "awsui_layout_hyvsj_1jkoz_357",
28
- "has-max-content-width": "awsui_has-max-content-width_hyvsj_1jkoz_440",
29
- "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1jkoz_455",
30
- "content-type-table": "awsui_content-type-table_hyvsj_1jkoz_469",
31
- "content-type-cards": "awsui_content-type-cards_hyvsj_1jkoz_469",
32
- "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1jkoz_475",
33
- "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1jkoz_478",
34
- "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1jkoz_510",
35
- "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1jkoz_513",
36
- "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1jkoz_523",
37
- "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1jkoz_526",
38
- "content-first-child-header": "awsui_content-first-child-header_hyvsj_1jkoz_529",
39
- "has-header": "awsui_has-header_hyvsj_1jkoz_529",
40
- "content-first-child-main": "awsui_content-first-child-main_hyvsj_1jkoz_550",
41
- "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1jkoz_550",
42
- "has-split-panel": "awsui_has-split-panel_hyvsj_1jkoz_593",
43
- "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1jkoz_593",
44
- "block-body-scroll": "awsui_block-body-scroll_hyvsj_1jkoz_609",
45
- "unfocusable": "awsui_unfocusable_hyvsj_1jkoz_614",
46
- "container": "awsui_container_hyvsj_1jkoz_624",
47
- "is-navigation-open": "awsui_is-navigation-open_hyvsj_1jkoz_649",
48
- "is-tools-open": "awsui_is-tools-open_hyvsj_1jkoz_652",
49
- "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1jkoz_652",
50
- "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1jkoz_652",
51
- "has-active-drawer": "awsui_has-active-drawer_hyvsj_1jkoz_652",
52
- "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1jkoz_661",
53
- "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1jkoz_677",
54
- "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1jkoz_681",
55
- "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1jkoz_685",
56
- "navigation-container": "awsui_navigation-container_hyvsj_1jkoz_694",
57
- "show-navigation": "awsui_show-navigation_hyvsj_1jkoz_738",
58
- "animating": "awsui_animating_hyvsj_1jkoz_760",
59
- "showButtons": "awsui_showButtons_hyvsj_1jkoz_1",
60
- "navigation": "awsui_navigation_hyvsj_1jkoz_694",
61
- "openNavigation": "awsui_openNavigation_hyvsj_1jkoz_1",
62
- "animated-content": "awsui_animated-content_hyvsj_1jkoz_822",
63
- "hide-navigation": "awsui_hide-navigation_hyvsj_1jkoz_831",
64
- "notifications": "awsui_notifications_hyvsj_1jkoz_841",
65
- "sticky-notifications": "awsui_sticky-notifications_hyvsj_1jkoz_847",
66
- "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1jkoz_864",
67
- "position-bottom": "awsui_position-bottom_hyvsj_1jkoz_911",
68
- "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1jkoz_1",
69
- "split-panel-side": "awsui_split-panel-side_hyvsj_1jkoz_940",
70
- "position-side": "awsui_position-side_hyvsj_1jkoz_953",
71
- "tools-container": "awsui_tools-container_hyvsj_1jkoz_975",
72
- "tools": "awsui_tools_hyvsj_1jkoz_975",
73
- "openTools": "awsui_openTools_hyvsj_1jkoz_1",
74
- "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1jkoz_1072",
75
- "hide-tools": "awsui_hide-tools_hyvsj_1jkoz_1082",
76
- "show-tools": "awsui_show-tools_hyvsj_1jkoz_1094",
77
- "has-tools-form": "awsui_has-tools-form_hyvsj_1jkoz_1072",
78
- "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1jkoz_1176",
79
- "trigger": "awsui_trigger_hyvsj_1jkoz_1176",
80
- "selected": "awsui_selected_hyvsj_1jkoz_1239",
81
- "badge": "awsui_badge_hyvsj_1jkoz_1259",
82
- "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1jkoz_1263",
83
- "dot": "awsui_dot_hyvsj_1jkoz_1269"
4
+ "background": "awsui_background_hyvsj_1p6he_93",
5
+ "scrolling-background": "awsui_scrolling-background_hyvsj_1p6he_96",
6
+ "sticky-background": "awsui_sticky-background_hyvsj_1p6he_102",
7
+ "has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1p6he_110",
8
+ "breadcrumbs": "awsui_breadcrumbs_hyvsj_1p6he_123",
9
+ "has-sticky-background": "awsui_has-sticky-background_hyvsj_1p6he_133",
10
+ "drawers-container": "awsui_drawers-container_hyvsj_1p6he_145",
11
+ "has-open-drawer": "awsui_has-open-drawer_hyvsj_1p6he_156",
12
+ "disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1p6he_179",
13
+ "drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1p6he_184",
14
+ "has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1p6he_225",
15
+ "drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1p6he_235",
16
+ "drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1p6he_239",
17
+ "drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1p6he_253",
18
+ "drawers-trigger": "awsui_drawers-trigger_hyvsj_1p6he_239",
19
+ "drawer": "awsui_drawer_hyvsj_1p6he_145",
20
+ "drawer-content-container": "awsui_drawer-content-container_hyvsj_1p6he_283",
21
+ "drawer-close-button": "awsui_drawer-close-button_hyvsj_1p6he_292",
22
+ "drawer-content": "awsui_drawer-content_hyvsj_1p6he_283",
23
+ "drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1p6he_300",
24
+ "drawer-slider": "awsui_drawer-slider_hyvsj_1p6he_303",
25
+ "is-drawer-open": "awsui_is-drawer-open_hyvsj_1p6he_310",
26
+ "content": "awsui_content_hyvsj_1p6he_336",
27
+ "layout": "awsui_layout_hyvsj_1p6he_357",
28
+ "has-max-content-width": "awsui_has-max-content-width_hyvsj_1p6he_440",
29
+ "content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1p6he_455",
30
+ "content-type-table": "awsui_content-type-table_hyvsj_1p6he_469",
31
+ "content-type-cards": "awsui_content-type-cards_hyvsj_1p6he_469",
32
+ "is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1p6he_475",
33
+ "is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1p6he_478",
34
+ "has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1p6he_510",
35
+ "has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1p6he_513",
36
+ "content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1p6he_523",
37
+ "has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1p6he_526",
38
+ "content-first-child-header": "awsui_content-first-child-header_hyvsj_1p6he_529",
39
+ "has-header": "awsui_has-header_hyvsj_1p6he_529",
40
+ "content-first-child-main": "awsui_content-first-child-main_hyvsj_1p6he_550",
41
+ "disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1p6he_550",
42
+ "has-split-panel": "awsui_has-split-panel_hyvsj_1p6he_593",
43
+ "split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1p6he_593",
44
+ "block-body-scroll": "awsui_block-body-scroll_hyvsj_1p6he_609",
45
+ "unfocusable": "awsui_unfocusable_hyvsj_1p6he_614",
46
+ "container": "awsui_container_hyvsj_1p6he_624",
47
+ "is-navigation-open": "awsui_is-navigation-open_hyvsj_1p6he_649",
48
+ "is-tools-open": "awsui_is-tools-open_hyvsj_1p6he_652",
49
+ "is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1p6he_652",
50
+ "split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1p6he_652",
51
+ "has-active-drawer": "awsui_has-active-drawer_hyvsj_1p6he_652",
52
+ "mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1p6he_661",
53
+ "mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1p6he_677",
54
+ "mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1p6he_681",
55
+ "mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1p6he_685",
56
+ "navigation-container": "awsui_navigation-container_hyvsj_1p6he_694",
57
+ "show-navigation": "awsui_show-navigation_hyvsj_1p6he_738",
58
+ "animating": "awsui_animating_hyvsj_1p6he_760",
59
+ "showButtons": "awsui_showButtons_hyvsj_1p6he_1",
60
+ "navigation": "awsui_navigation_hyvsj_1p6he_694",
61
+ "openNavigation": "awsui_openNavigation_hyvsj_1p6he_1",
62
+ "animated-content": "awsui_animated-content_hyvsj_1p6he_822",
63
+ "hide-navigation": "awsui_hide-navigation_hyvsj_1p6he_831",
64
+ "notifications": "awsui_notifications_hyvsj_1p6he_841",
65
+ "sticky-notifications": "awsui_sticky-notifications_hyvsj_1p6he_847",
66
+ "split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1p6he_864",
67
+ "position-bottom": "awsui_position-bottom_hyvsj_1p6he_911",
68
+ "openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1p6he_1",
69
+ "split-panel-side": "awsui_split-panel-side_hyvsj_1p6he_940",
70
+ "position-side": "awsui_position-side_hyvsj_1p6he_953",
71
+ "tools-container": "awsui_tools-container_hyvsj_1p6he_975",
72
+ "tools": "awsui_tools_hyvsj_1p6he_975",
73
+ "openTools": "awsui_openTools_hyvsj_1p6he_1",
74
+ "has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1p6he_1072",
75
+ "hide-tools": "awsui_hide-tools_hyvsj_1p6he_1082",
76
+ "show-tools": "awsui_show-tools_hyvsj_1p6he_1094",
77
+ "has-tools-form": "awsui_has-tools-form_hyvsj_1p6he_1072",
78
+ "trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1p6he_1176",
79
+ "trigger": "awsui_trigger_hyvsj_1p6he_1176",
80
+ "selected": "awsui_selected_hyvsj_1p6he_1239",
81
+ "badge": "awsui_badge_hyvsj_1p6he_1259",
82
+ "trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1p6he_1263",
83
+ "dot": "awsui_dot_hyvsj_1p6he_1269"
84
84
  };
85
85