@cloudscape-design/components 3.0.505 → 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 (74) 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/trigger-button.js +1 -1
  12. package/app-layout/visual-refresh/trigger-button.js.map +1 -1
  13. package/button-dropdown/category-elements/category-element.d.ts +1 -1
  14. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  15. package/button-dropdown/category-elements/category-element.js +2 -2
  16. package/button-dropdown/category-elements/category-element.js.map +1 -1
  17. package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
  18. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  19. package/button-dropdown/category-elements/expandable-category-element.js +2 -2
  20. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  21. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
  22. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  23. package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -2
  24. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  25. package/button-dropdown/category-elements/styles.css.js +13 -13
  26. package/button-dropdown/category-elements/styles.scoped.css +21 -32
  27. package/button-dropdown/category-elements/styles.selectors.js +13 -13
  28. package/button-dropdown/interfaces.d.ts +2 -0
  29. package/button-dropdown/interfaces.d.ts.map +1 -1
  30. package/button-dropdown/interfaces.js.map +1 -1
  31. package/button-dropdown/item-element/index.d.ts +1 -1
  32. package/button-dropdown/item-element/index.d.ts.map +1 -1
  33. package/button-dropdown/item-element/index.js +6 -1
  34. package/button-dropdown/item-element/index.js.map +1 -1
  35. package/button-dropdown/item-element/styles.css.js +16 -15
  36. package/button-dropdown/item-element/styles.scoped.css +18 -18
  37. package/button-dropdown/item-element/styles.selectors.js +16 -15
  38. package/button-dropdown/items-list.d.ts.map +1 -1
  39. package/button-dropdown/items-list.js +3 -3
  40. package/button-dropdown/items-list.js.map +1 -1
  41. package/cards/index.js +2 -2
  42. package/cards/index.js.map +1 -1
  43. package/container/internal.js +4 -4
  44. package/container/internal.js.map +1 -1
  45. package/content-layout/internal.js +3 -3
  46. package/content-layout/internal.js.map +1 -1
  47. package/expandable-section/styles.css.js +32 -32
  48. package/expandable-section/styles.scoped.css +63 -63
  49. package/expandable-section/styles.selectors.js +32 -32
  50. package/internal/components/dark-ribbon/index.js +2 -2
  51. package/internal/components/dark-ribbon/index.js.map +1 -1
  52. package/internal/environment.js +1 -1
  53. package/internal/environment.json +1 -1
  54. package/internal/manifest.json +1 -1
  55. package/internal/utils/content-header-utils.d.ts +2 -2
  56. package/internal/utils/content-header-utils.d.ts.map +1 -1
  57. package/internal/utils/content-header-utils.js +2 -2
  58. package/internal/utils/content-header-utils.js.map +1 -1
  59. package/package.json +1 -1
  60. package/split-panel/icons/bottom-icon-refresh.js +2 -2
  61. package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
  62. package/split-panel/icons/side-position-refresh.js +2 -2
  63. package/split-panel/icons/side-position-refresh.js.map +1 -1
  64. package/table/internal.js +2 -2
  65. package/table/internal.js.map +1 -1
  66. package/top-navigation/interfaces.d.ts +2 -0
  67. package/top-navigation/interfaces.d.ts.map +1 -1
  68. package/top-navigation/interfaces.js.map +1 -1
  69. package/wizard/internal.js +4 -4
  70. package/wizard/internal.js.map +1 -1
  71. package/wizard/wizard-form-header.js +3 -3
  72. package/wizard/wizard-form-header.js.map +1 -1
  73. package/wizard/wizard-navigation.js +2 -2
  74. package/wizard/wizard-navigation.js.map +1 -1
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import React, { useEffect, useRef } from 'react';
6
6
  import { getBaseProps } from '../internal/base-component';
7
7
  import { useAppLayoutContext } from '../internal/context/app-layout-context';
8
- import { contentHeaderClassName } from '../internal/utils/content-header-utils';
8
+ import { getContentHeaderClassName } from '../internal/utils/content-header-utils';
9
9
  import { StickyHeaderContext, useStickyHeader } from './use-sticky-header';
10
10
  import { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';
11
11
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
@@ -61,7 +61,7 @@ export default function InternalContainer(_a) {
61
61
  hasMedia && (React.createElement("div", { className: clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media), style: mediaPosition === 'top' ? { height: (media === null || media === void 0 ? void 0 : media.height) || '' } : { width: (media === null || media === void 0 ? void 0 : media.width) || '' } }, media.content)),
62
62
  React.createElement("div", { id: contentId, ref: __subStepRef, className: clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height']) },
63
63
  header && (React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
64
- React.createElement("div", Object.assign({ className: clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], shouldRemoveHighContrastHeader && styles['remove-high-contrast-header'], {
64
+ React.createElement("div", Object.assign({ className: clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'], {
65
65
  [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
66
66
  [styles['header-sticky-enabled']]: isSticky,
67
67
  [styles['header-dynamic-height']]: hasDynamicHeight,
@@ -69,8 +69,8 @@ export default function InternalContainer(_a) {
69
69
  [styles['with-paddings']]: !disableHeaderPaddings,
70
70
  [styles['with-hidden-content']]: !children || __hiddenContent,
71
71
  [styles['header-with-media']]: hasMedia,
72
- }) }, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], contentHeaderClassName) }, header)) : (header)))),
73
- React.createElement("div", { className: clsx(styles.content, fitHeight && styles['content-fit-height'], shouldRemoveHighContrastHeader && styles['remove-high-contrast-header'], {
72
+ }) }, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], getContentHeaderClassName()) }, header)) : (header)))),
73
+ React.createElement("div", { className: clsx(styles.content, fitHeight && styles['content-fit-height'], shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'], {
74
74
  [styles['with-paddings']]: !disableContentPaddings,
75
75
  }) }, children),
76
76
  footer && (React.createElement("div", { className: clsx(styles.footer, {
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAA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M,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;oBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { contentHeaderClassName } from '../internal/utils/content-header-utils';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { shouldRemoveHighContrastHeader } from '../internal/utils/content-header-utils';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n\n __funnelSubStepProps?: ReturnType<typeof useFunnelSubStep>['funnelSubStepProps'];\n __subStepRef?: ReturnType<typeof useFunnelSubStep>['subStepRef'];\n}\n\nexport function InternalContainerAsSubstep(props: InternalContainerProps) {\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n const modalContext = useModalContext();\n\n return (\n <InternalContainer\n {...props}\n __subStepRef={modalContext?.isInModal ? { current: null } : subStepRef}\n __funnelSubStepProps={modalContext?.isInModal ? {} : funnelSubStepProps}\n />\n );\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n media,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __darkHeader = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const contentId = useUniqueId();\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n const hasMedia = !!media?.content;\n const mediaPosition = media?.position ?? 'top';\n return (\n <div\n {...baseProps}\n {...__funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(\n isRefresh && styles.refresh,\n styles.header,\n styles[`header-variant-${variant}`],\n shouldRemoveHighContrastHeader && styles['remove-high-contrast-header'],\n {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n }\n )}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], contentHeaderClassName)}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(\n styles.content,\n fitHeight && styles['content-fit-height'],\n shouldRemoveHighContrastHeader && styles['remove-high-contrast-header'],\n {\n [styles['with-paddings']]: !disableContentPaddings,\n }\n )}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAwBxF,MAAM,UAAU,0BAA0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C,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { getContentHeaderClassName } from '../internal/utils/content-header-utils';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { shouldRemoveHighContrastHeader } from '../internal/utils/content-header-utils';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n\n __funnelSubStepProps?: ReturnType<typeof useFunnelSubStep>['funnelSubStepProps'];\n __subStepRef?: ReturnType<typeof useFunnelSubStep>['subStepRef'];\n}\n\nexport function InternalContainerAsSubstep(props: InternalContainerProps) {\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n const modalContext = useModalContext();\n\n return (\n <InternalContainer\n {...props}\n __subStepRef={modalContext?.isInModal ? { current: null } : subStepRef}\n __funnelSubStepProps={modalContext?.isInModal ? {} : funnelSubStepProps}\n />\n );\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n media,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __darkHeader = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const contentId = useUniqueId();\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n const hasMedia = !!media?.content;\n const mediaPosition = media?.position ?? 'top';\n return (\n <div\n {...baseProps}\n {...__funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(\n isRefresh && styles.refresh,\n styles.header,\n styles[`header-variant-${variant}`],\n shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'],\n {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n }\n )}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], getContentHeaderClassName())}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(\n styles.content,\n fitHeight && styles['content-fit-height'],\n shouldRemoveHighContrastHeader() && styles['remove-high-contrast-header'],\n {\n [styles['with-paddings']]: !disableContentPaddings,\n }\n )}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -4,7 +4,7 @@ import { __rest } from "tslib";
4
4
  import React, { useRef } from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { getBaseProps } from '../internal/base-component';
7
- import { contentHeaderClassName } from '../internal/utils/content-header-utils';
7
+ import { getContentHeaderClassName } from '../internal/utils/content-header-utils';
8
8
  import { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';
9
9
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
10
10
  import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
@@ -22,8 +22,8 @@ export default function InternalContentLayout(_a) {
22
22
  [styles['is-visual-refresh']]: isVisualRefresh,
23
23
  [styles['has-header']]: !!header,
24
24
  }), ref: mergedRef }),
25
- React.createElement("div", { className: clsx(styles.background, { [styles['is-overlap-disabled']]: isOverlapDisabled }, contentHeaderClassName), ref: overlapElement }),
26
- header && React.createElement("div", { className: clsx(styles.header, contentHeaderClassName) }, header),
25
+ React.createElement("div", { className: clsx(styles.background, { [styles['is-overlap-disabled']]: isOverlapDisabled }, getContentHeaderClassName()), ref: overlapElement }),
26
+ header && React.createElement("div", { className: clsx(styles.header, getContentHeaderClassName()) }, header),
27
27
  React.createElement("div", { className: styles.content }, children)));
28
28
  }
29
29
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["content-layout/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE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I,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAAG,MAAM,CAAO;QAEtF,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { ContentLayoutProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { contentHeaderClassName } from '../internal/utils/content-header-utils';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\ntype InternalContentLayoutProps = ContentLayoutProps & InternalBaseComponentProps;\n\nexport default function InternalContentLayout({\n children,\n disableOverlap,\n header,\n __internalRootRef,\n ...rest\n}: InternalContentLayoutProps) {\n const baseProps = getBaseProps(rest);\n const rootElement = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(rootElement, __internalRootRef);\n\n const isVisualRefresh = useVisualRefresh();\n const overlapElement = useDynamicOverlap();\n\n const isOverlapDisabled = !children || disableOverlap;\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.layout, {\n [styles['is-overlap-disabled']]: isOverlapDisabled,\n [styles['is-visual-refresh']]: isVisualRefresh,\n [styles['has-header']]: !!header,\n })}\n ref={mergedRef}\n >\n <div\n className={clsx(\n styles.background,\n { [styles['is-overlap-disabled']]: isOverlapDisabled },\n contentHeaderClassName\n )}\n ref={overlapElement}\n />\n\n {header && <div className={clsx(styles.header, contentHeaderClassName)}>{header}</div>}\n\n <div className={styles.content}>{children}</div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["content-layout/internal.tsx"],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E,SAAS;QAEd,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,EACjB,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,iBAAiB,EAAE,EACtD,yBAAyB,EAAE,CAC5B,EACD,GAAG,EAAE,cAAc,GACnB;QAED,MAAM,IAAI,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,CAAC,IAAG,MAAM,CAAO;QAE3F,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CAC5C,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { ContentLayoutProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { getContentHeaderClassName } from '../internal/utils/content-header-utils';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\ntype InternalContentLayoutProps = ContentLayoutProps & InternalBaseComponentProps;\n\nexport default function InternalContentLayout({\n children,\n disableOverlap,\n header,\n __internalRootRef,\n ...rest\n}: InternalContentLayoutProps) {\n const baseProps = getBaseProps(rest);\n const rootElement = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs(rootElement, __internalRootRef);\n\n const isVisualRefresh = useVisualRefresh();\n const overlapElement = useDynamicOverlap();\n\n const isOverlapDisabled = !children || disableOverlap;\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.layout, {\n [styles['is-overlap-disabled']]: isOverlapDisabled,\n [styles['is-visual-refresh']]: isVisualRefresh,\n [styles['has-header']]: !!header,\n })}\n ref={mergedRef}\n >\n <div\n className={clsx(\n styles.background,\n { [styles['is-overlap-disabled']]: isOverlapDisabled },\n getContentHeaderClassName()\n )}\n ref={overlapElement}\n />\n\n {header && <div className={clsx(styles.header, getContentHeaderClassName())}>{header}</div>}\n\n <div className={styles.content}>{children}</div>\n </div>\n );\n}\n"]}
@@ -1,37 +1,37 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "content-enter": "awsui_content-enter_gwq0h_g3frk_97",
5
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_g3frk_1",
6
- "trigger-expanded": "awsui_trigger-expanded_gwq0h_g3frk_119",
7
- "icon": "awsui_icon_gwq0h_g3frk_133",
8
- "root": "awsui_root_gwq0h_g3frk_151",
9
- "expand-button": "awsui_expand-button_gwq0h_g3frk_189",
10
- "expanded": "awsui_expanded_gwq0h_g3frk_196",
11
- "icon-container": "awsui_icon-container_gwq0h_g3frk_200",
12
- "icon-container-container": "awsui_icon-container-container_gwq0h_g3frk_205",
13
- "wrapper": "awsui_wrapper_gwq0h_g3frk_209",
14
- "wrapper-default": "awsui_wrapper-default_gwq0h_g3frk_216",
15
- "wrapper-footer": "awsui_wrapper-footer_gwq0h_g3frk_216",
16
- "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_g3frk_219",
17
- "wrapper-container": "awsui_wrapper-container_gwq0h_g3frk_222",
18
- "wrapper-compact": "awsui_wrapper-compact_gwq0h_g3frk_226",
19
- "header-deprecated": "awsui_header-deprecated_gwq0h_g3frk_240",
20
- "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_g3frk_264",
21
- "header": "awsui_header_gwq0h_g3frk_240",
22
- "header-wrapper": "awsui_header-wrapper_gwq0h_g3frk_283",
23
- "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_g3frk_293",
24
- "header-button": "awsui_header-button_gwq0h_g3frk_298",
25
- "header-container-button": "awsui_header-container-button_gwq0h_g3frk_298",
26
- "header-container": "awsui_header-container_gwq0h_g3frk_298",
27
- "header-navigation": "awsui_header-navigation_gwq0h_g3frk_330",
28
- "header-text": "awsui_header-text_gwq0h_g3frk_362",
29
- "content": "awsui_content_gwq0h_g3frk_97",
30
- "content-default": "awsui_content-default_gwq0h_g3frk_369",
31
- "content-footer": "awsui_content-footer_gwq0h_g3frk_372",
32
- "content-expanded": "awsui_content-expanded_gwq0h_g3frk_375",
33
- "content-compact": "awsui_content-compact_gwq0h_g3frk_378",
34
- "focusable": "awsui_focusable_gwq0h_g3frk_382",
35
- "click-target": "awsui_click-target_gwq0h_g3frk_393"
4
+ "content-enter": "awsui_content-enter_gwq0h_11fqg_97",
5
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_11fqg_1",
6
+ "trigger-expanded": "awsui_trigger-expanded_gwq0h_11fqg_119",
7
+ "icon": "awsui_icon_gwq0h_11fqg_133",
8
+ "root": "awsui_root_gwq0h_11fqg_151",
9
+ "expand-button": "awsui_expand-button_gwq0h_11fqg_189",
10
+ "expanded": "awsui_expanded_gwq0h_11fqg_196",
11
+ "icon-container": "awsui_icon-container_gwq0h_11fqg_200",
12
+ "icon-container-container": "awsui_icon-container-container_gwq0h_11fqg_205",
13
+ "wrapper": "awsui_wrapper_gwq0h_11fqg_209",
14
+ "wrapper-default": "awsui_wrapper-default_gwq0h_11fqg_216",
15
+ "wrapper-footer": "awsui_wrapper-footer_gwq0h_11fqg_216",
16
+ "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_11fqg_219",
17
+ "wrapper-container": "awsui_wrapper-container_gwq0h_11fqg_222",
18
+ "wrapper-compact": "awsui_wrapper-compact_gwq0h_11fqg_226",
19
+ "header-deprecated": "awsui_header-deprecated_gwq0h_11fqg_240",
20
+ "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_11fqg_264",
21
+ "header": "awsui_header_gwq0h_11fqg_240",
22
+ "header-wrapper": "awsui_header-wrapper_gwq0h_11fqg_283",
23
+ "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_11fqg_293",
24
+ "header-button": "awsui_header-button_gwq0h_11fqg_298",
25
+ "header-container-button": "awsui_header-container-button_gwq0h_11fqg_298",
26
+ "header-container": "awsui_header-container_gwq0h_11fqg_298",
27
+ "header-navigation": "awsui_header-navigation_gwq0h_11fqg_330",
28
+ "header-text": "awsui_header-text_gwq0h_11fqg_362",
29
+ "content": "awsui_content_gwq0h_11fqg_97",
30
+ "content-default": "awsui_content-default_gwq0h_11fqg_369",
31
+ "content-footer": "awsui_content-footer_gwq0h_11fqg_372",
32
+ "content-expanded": "awsui_content-expanded_gwq0h_11fqg_375",
33
+ "content-compact": "awsui_content-compact_gwq0h_11fqg_378",
34
+ "focusable": "awsui_focusable_gwq0h_11fqg_382",
35
+ "click-target": "awsui_click-target_gwq0h_11fqg_393"
36
36
  };
37
37
 
@@ -94,10 +94,10 @@ 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_content-enter_gwq0h_g3frk_97:not(#\9) {
98
- animation: awsui_awsui-motion-fade-in_gwq0h_g3frk_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
97
+ .awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
98
+ animation: awsui_awsui-motion-fade-in_gwq0h_11fqg_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
99
99
  }
100
- @keyframes awsui_awsui-motion-fade-in_gwq0h_g3frk_1 {
100
+ @keyframes awsui_awsui-motion-fade-in_gwq0h_11fqg_1 {
101
101
  from {
102
102
  opacity: 0.2;
103
103
  }
@@ -106,40 +106,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  }
107
107
  }
108
108
  @media (prefers-reduced-motion: reduce) {
109
- .awsui_content-enter_gwq0h_g3frk_97:not(#\9) {
109
+ .awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
110
110
  animation: none;
111
111
  transition: none;
112
112
  }
113
113
  }
114
- .awsui-motion-disabled .awsui_content-enter_gwq0h_g3frk_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_g3frk_97:not(#\9) {
114
+ .awsui-motion-disabled .awsui_content-enter_gwq0h_11fqg_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
115
115
  animation: none;
116
116
  transition: none;
117
117
  }
118
118
 
119
- .awsui_trigger-expanded_gwq0h_g3frk_119:not(#\9) {
119
+ .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
120
120
  transition: border-bottom-color var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
121
121
  }
122
122
  @media (prefers-reduced-motion: reduce) {
123
- .awsui_trigger-expanded_gwq0h_g3frk_119:not(#\9) {
123
+ .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
124
124
  animation: none;
125
125
  transition: none;
126
126
  }
127
127
  }
128
- .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_g3frk_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_g3frk_119:not(#\9) {
128
+ .awsui-motion-disabled .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
129
129
  animation: none;
130
130
  transition: none;
131
131
  }
132
132
 
133
- .awsui_icon_gwq0h_g3frk_133:not(#\9) {
133
+ .awsui_icon_gwq0h_11fqg_133:not(#\9) {
134
134
  transition: transform var(--motion-duration-rotate-90-4ry26y, 135ms) var(--motion-easing-rotate-90-sb4dk7, cubic-bezier(0.165, 0.84, 0.44, 1));
135
135
  }
136
136
  @media (prefers-reduced-motion: reduce) {
137
- .awsui_icon_gwq0h_g3frk_133:not(#\9) {
137
+ .awsui_icon_gwq0h_11fqg_133:not(#\9) {
138
138
  animation: none;
139
139
  transition: none;
140
140
  }
141
141
  }
142
- .awsui-motion-disabled .awsui_icon_gwq0h_g3frk_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_g3frk_133:not(#\9) {
142
+ .awsui-motion-disabled .awsui_icon_gwq0h_11fqg_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_11fqg_133:not(#\9) {
143
143
  animation: none;
144
144
  transition: none;
145
145
  }
@@ -148,7 +148,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
148
148
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
149
149
  SPDX-License-Identifier: Apache-2.0
150
150
  */
151
- .awsui_root_gwq0h_g3frk_151:not(#\9) {
151
+ .awsui_root_gwq0h_11fqg_151:not(#\9) {
152
152
  border-collapse: separate;
153
153
  border-spacing: 0;
154
154
  box-sizing: border-box;
@@ -187,123 +187,123 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
187
187
  display: block;
188
188
  }
189
189
 
190
- .awsui_expand-button_gwq0h_g3frk_189:not(#\9) {
191
- /* used in test-utils */
190
+ .awsui_expand-button_gwq0h_11fqg_189:not(#\9) {
191
+ outline: none;
192
192
  }
193
193
 
194
- .awsui_icon_gwq0h_g3frk_133:not(#\9) {
194
+ .awsui_icon_gwq0h_11fqg_133:not(#\9) {
195
195
  transform: rotate(-90deg);
196
196
  }
197
- .awsui_icon_gwq0h_g3frk_133.awsui_expanded_gwq0h_g3frk_196:not(#\9) {
197
+ .awsui_icon_gwq0h_11fqg_133.awsui_expanded_gwq0h_11fqg_196:not(#\9) {
198
198
  transform: rotate(0deg);
199
199
  }
200
200
 
201
- .awsui_icon-container_gwq0h_g3frk_200:not(#\9) {
201
+ .awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
202
202
  position: relative;
203
203
  margin-left: calc((var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2);
204
204
  margin-right: calc(var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
205
205
  }
206
- .awsui_icon-container-container_gwq0h_g3frk_205:not(#\9) {
206
+ .awsui_icon-container-container_gwq0h_11fqg_205:not(#\9) {
207
207
  margin-right: var(--space-xs-zb16t3, 8px);
208
208
  }
209
209
 
210
- .awsui_wrapper_gwq0h_g3frk_209:not(#\9) {
210
+ .awsui_wrapper_gwq0h_11fqg_209:not(#\9) {
211
211
  box-sizing: border-box;
212
212
  border: none;
213
213
  width: 100%;
214
214
  line-height: var(--line-height-body-m-30ar75, 20px);
215
215
  text-align: left;
216
216
  }
217
- .awsui_wrapper-default_gwq0h_g3frk_216:not(#\9), .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9) {
217
+ .awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
218
218
  border: var(--border-divider-section-width-1061zr, 1px) solid transparent;
219
219
  }
220
- .awsui_wrapper-navigation_gwq0h_g3frk_219:not(#\9) {
220
+ .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9) {
221
221
  border-left: var(--border-divider-section-width-1061zr, 1px) solid transparent;
222
222
  }
223
- .awsui_wrapper-navigation_gwq0h_g3frk_219:not(#\9), .awsui_wrapper-container_gwq0h_g3frk_222:not(#\9) {
223
+ .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9) {
224
224
  display: flex;
225
225
  font-weight: var(--font-weight-heading-s-cwn6wc, 700);
226
226
  }
227
- .awsui_wrapper-default_gwq0h_g3frk_216:not(#\9), .awsui_wrapper-navigation_gwq0h_g3frk_219:not(#\9), .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9), .awsui_wrapper-compact_gwq0h_g3frk_226:not(#\9) {
227
+ .awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9) {
228
228
  color: var(--color-text-expandable-section-default-djhi83, #000716);
229
229
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
230
230
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
231
231
  }
232
- .awsui_wrapper-default_gwq0h_g3frk_216:not(#\9), .awsui_wrapper-navigation_gwq0h_g3frk_219:not(#\9), .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9) {
232
+ .awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
233
233
  font-size: var(--font-expandable-heading-size-smdiul, 16px);
234
234
  letter-spacing: var(--letter-spacing-heading-s-jr3mor, -0.005em);
235
235
  }
236
- .awsui_wrapper-default_gwq0h_g3frk_216:not(#\9) {
236
+ .awsui_wrapper-default_gwq0h_11fqg_216:not(#\9) {
237
237
  padding-top: var(--space-scaled-xxs-7597g1, 4px);
238
238
  padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
239
239
  padding-right: var(--space-xxs-p8yyaw, 4px);
240
240
  }
241
- .awsui_wrapper-default_gwq0h_g3frk_216.awsui_header-deprecated_gwq0h_g3frk_240:not(#\9) {
241
+ .awsui_wrapper-default_gwq0h_11fqg_216.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
242
242
  padding-left: var(--space-xxs-p8yyaw, 4px);
243
243
  }
244
- .awsui_wrapper-default_gwq0h_g3frk_216:not(#\9):not(.awsui_header-deprecated_gwq0h_g3frk_240) {
244
+ .awsui_wrapper-default_gwq0h_11fqg_216:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
245
245
  padding-left: calc(var(--space-xxs-p8yyaw, 4px) + calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
246
246
  }
247
- .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9) {
247
+ .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
248
248
  padding-top: var(--space-scaled-xxs-7597g1, 4px);
249
249
  padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
250
250
  }
251
- .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9), .awsui_wrapper-compact_gwq0h_g3frk_226:not(#\9) {
251
+ .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9) {
252
252
  padding-right: 0;
253
253
  }
254
- .awsui_wrapper-footer_gwq0h_g3frk_216.awsui_header-deprecated_gwq0h_g3frk_240:not(#\9), .awsui_wrapper-compact_gwq0h_g3frk_226.awsui_header-deprecated_gwq0h_g3frk_240:not(#\9) {
254
+ .awsui_wrapper-footer_gwq0h_11fqg_216.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
255
255
  padding-left: 0;
256
256
  }
257
- .awsui_wrapper-footer_gwq0h_g3frk_216:not(#\9):not(.awsui_header-deprecated_gwq0h_g3frk_240), .awsui_wrapper-compact_gwq0h_g3frk_226:not(#\9):not(.awsui_header-deprecated_gwq0h_g3frk_240) {
257
+ .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
258
258
  padding-left: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
259
259
  }
260
- .awsui_wrapper-container_gwq0h_g3frk_222:not(#\9) {
260
+ .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9) {
261
261
  padding-top: var(--space-container-header-top-5qav00, 12px);
262
262
  padding-bottom: var(--space-container-header-bottom-vj01hn, 8px);
263
263
  padding-right: var(--space-container-horizontal-wfukh3, 20px);
264
264
  }
265
- .awsui_wrapper-container_gwq0h_g3frk_222:not(#\9):not(.awsui_wrapper-expanded_gwq0h_g3frk_264) {
265
+ .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):not(.awsui_wrapper-expanded_gwq0h_11fqg_264) {
266
266
  padding-bottom: var(--space-container-header-top-5qav00, 12px);
267
267
  }
268
- .awsui_wrapper-container_gwq0h_g3frk_222.awsui_header-deprecated_gwq0h_g3frk_240:not(#\9) {
268
+ .awsui_wrapper-container_gwq0h_11fqg_222.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
269
269
  padding-left: var(--space-container-horizontal-wfukh3, 20px);
270
270
  }
271
- .awsui_wrapper-container_gwq0h_g3frk_222:not(#\9):not(.awsui_header-deprecated_gwq0h_g3frk_240) {
271
+ .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
272
272
  padding-left: calc(var(--space-container-horizontal-wfukh3, 20px) + calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
273
273
  }
274
- body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_g3frk_222:not(#\9):focus {
274
+ body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):focus {
275
275
  padding: calc(var(--space-scaled-s-aqzyko, 12px) - var(--border-divider-section-width-1061zr, 1px)) calc(var(--space-l-t419sm, 20px) - var(--border-divider-section-width-1061zr, 1px));
276
276
  }
277
- .awsui_wrapper-default_gwq0h_g3frk_216.awsui_wrapper-expanded_gwq0h_g3frk_264:not(#\9) {
277
+ .awsui_wrapper-default_gwq0h_11fqg_216.awsui_wrapper-expanded_gwq0h_11fqg_264:not(#\9) {
278
278
  border-bottom-color: var(--color-border-divider-default-j74lyz, #b6bec9);
279
279
  }
280
280
 
281
- .awsui_header_gwq0h_g3frk_240:not(#\9) {
281
+ .awsui_header_gwq0h_11fqg_240:not(#\9) {
282
282
  /* used in test-utils */
283
283
  }
284
- .awsui_header-wrapper_gwq0h_g3frk_283:not(#\9), .awsui_header-deprecated_gwq0h_g3frk_240:not(#\9) {
284
+ .awsui_header-wrapper_gwq0h_11fqg_283:not(#\9), .awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
285
285
  display: flex;
286
286
  font-weight: var(--font-weight-heading-s-cwn6wc, 700);
287
287
  }
288
- .awsui_header-wrapper_gwq0h_g3frk_283:not(#\9) {
288
+ .awsui_header-wrapper_gwq0h_11fqg_283:not(#\9) {
289
289
  font-size: inherit;
290
290
  letter-spacing: inherit;
291
291
  margin: 0;
292
292
  padding: 0;
293
293
  }
294
- .awsui_header-actions-wrapper_gwq0h_g3frk_293:not(#\9) {
294
+ .awsui_header-actions-wrapper_gwq0h_11fqg_293:not(#\9) {
295
295
  display: flex;
296
296
  flex-direction: row;
297
297
  justify-content: space-between;
298
298
  }
299
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_g3frk_298:not(#\9):focus {
299
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus {
300
300
  position: relative;
301
301
  }
302
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_g3frk_298:not(#\9):focus {
302
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus {
303
303
  outline: 2px dotted transparent;
304
304
  outline-offset: calc(0px - 1px);
305
305
  }
306
- body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_g3frk_298:not(#\9):focus::before {
306
+ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus::before {
307
307
  content: " ";
308
308
  display: block;
309
309
  position: absolute;
@@ -314,21 +314,21 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9
314
314
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
315
315
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
316
316
  }
317
- .awsui_header-button_gwq0h_g3frk_298:not(#\9) {
317
+ .awsui_header-button_gwq0h_11fqg_298:not(#\9) {
318
318
  box-sizing: border-box;
319
319
  display: flex;
320
320
  margin-left: calc(-1 * calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
321
321
  }
322
- .awsui_header-container-button_gwq0h_g3frk_298:not(#\9) {
322
+ .awsui_header-container-button_gwq0h_11fqg_298:not(#\9) {
323
323
  margin-left: calc(-1 * calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
324
324
  }
325
- .awsui_header-container_gwq0h_g3frk_298:not(#\9) {
325
+ .awsui_header-container_gwq0h_11fqg_298:not(#\9) {
326
326
  width: 100%;
327
327
  }
328
- .awsui_header-container_gwq0h_g3frk_298 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9) {
328
+ .awsui_header-container_gwq0h_11fqg_298 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
329
329
  margin-top: var(--space-expandable-section-icon-offset-top-ekk5vc, 4px);
330
330
  }
331
- .awsui_header-navigation_gwq0h_g3frk_330 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9) {
331
+ .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
332
332
  display: inline-flex;
333
333
  cursor: pointer;
334
334
  color: var(--color-text-expandable-section-navigation-icon-default-htcovl, #414d5c);
@@ -339,17 +339,17 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9
339
339
  text-decoration: none;
340
340
  flex-direction: column;
341
341
  }
342
- .awsui_header-navigation_gwq0h_g3frk_330 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9):hover {
342
+ .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):hover {
343
343
  color: var(--color-text-expandable-section-hover-2d1zpj, #0972d3);
344
344
  }
345
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_g3frk_330 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9):focus {
345
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus {
346
346
  position: relative;
347
347
  }
348
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_g3frk_330 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9):focus {
348
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus {
349
349
  outline: 2px dotted transparent;
350
350
  outline-offset: calc(2px - 1px);
351
351
  }
352
- body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_g3frk_330 > .awsui_icon-container_gwq0h_g3frk_200:not(#\9):focus::before {
352
+ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus::before {
353
353
  content: " ";
354
354
  display: block;
355
355
  position: absolute;
@@ -360,40 +360,40 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_g3frk_330 > .
360
360
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
361
361
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
362
362
  }
363
- .awsui_header-text_gwq0h_g3frk_362:not(#\9) {
363
+ .awsui_header-text_gwq0h_11fqg_362:not(#\9) {
364
364
  /* used in test-utils */
365
365
  }
366
366
 
367
- .awsui_content_gwq0h_g3frk_97:not(#\9) {
367
+ .awsui_content_gwq0h_11fqg_97:not(#\9) {
368
368
  display: none;
369
369
  }
370
- .awsui_content-default_gwq0h_g3frk_369:not(#\9) {
370
+ .awsui_content-default_gwq0h_11fqg_369:not(#\9) {
371
371
  padding: var(--space-scaled-xs-26e2du, 8px) 0;
372
372
  }
373
- .awsui_content-footer_gwq0h_g3frk_372:not(#\9) {
373
+ .awsui_content-footer_gwq0h_11fqg_372:not(#\9) {
374
374
  padding: var(--space-xs-zb16t3, 8px) 0;
375
375
  }
376
- .awsui_content-expanded_gwq0h_g3frk_375:not(#\9) {
376
+ .awsui_content-expanded_gwq0h_11fqg_375:not(#\9) {
377
377
  display: block;
378
378
  }
379
- .awsui_content-compact_gwq0h_g3frk_378:not(#\9) {
379
+ .awsui_content-compact_gwq0h_11fqg_378:not(#\9) {
380
380
  padding-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
381
381
  }
382
382
 
383
- .awsui_focusable_gwq0h_g3frk_382:not(#\9):focus {
383
+ .awsui_focusable_gwq0h_11fqg_382:not(#\9):focus {
384
384
  outline: none;
385
385
  text-decoration: none;
386
386
  }
387
- body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_g3frk_382:not(#\9):focus {
387
+ body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_11fqg_382:not(#\9):focus {
388
388
  outline: 2px dotted transparent;
389
389
  border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
390
390
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
391
391
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
392
392
  }
393
393
 
394
- .awsui_click-target_gwq0h_g3frk_393:not(#\9) {
394
+ .awsui_click-target_gwq0h_11fqg_393:not(#\9) {
395
395
  cursor: pointer;
396
396
  }
397
- .awsui_click-target_gwq0h_g3frk_393:not(#\9):not(.awsui_wrapper-container_gwq0h_g3frk_222):not(.awsui_header-container-button_gwq0h_g3frk_298):hover {
397
+ .awsui_click-target_gwq0h_11fqg_393:not(#\9):not(.awsui_wrapper-container_gwq0h_11fqg_222):not(.awsui_header-container-button_gwq0h_11fqg_298):hover {
398
398
  color: var(--color-text-expandable-section-hover-2d1zpj, #0972d3);
399
399
  }
@@ -2,37 +2,37 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "content-enter": "awsui_content-enter_gwq0h_g3frk_97",
6
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_g3frk_1",
7
- "trigger-expanded": "awsui_trigger-expanded_gwq0h_g3frk_119",
8
- "icon": "awsui_icon_gwq0h_g3frk_133",
9
- "root": "awsui_root_gwq0h_g3frk_151",
10
- "expand-button": "awsui_expand-button_gwq0h_g3frk_189",
11
- "expanded": "awsui_expanded_gwq0h_g3frk_196",
12
- "icon-container": "awsui_icon-container_gwq0h_g3frk_200",
13
- "icon-container-container": "awsui_icon-container-container_gwq0h_g3frk_205",
14
- "wrapper": "awsui_wrapper_gwq0h_g3frk_209",
15
- "wrapper-default": "awsui_wrapper-default_gwq0h_g3frk_216",
16
- "wrapper-footer": "awsui_wrapper-footer_gwq0h_g3frk_216",
17
- "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_g3frk_219",
18
- "wrapper-container": "awsui_wrapper-container_gwq0h_g3frk_222",
19
- "wrapper-compact": "awsui_wrapper-compact_gwq0h_g3frk_226",
20
- "header-deprecated": "awsui_header-deprecated_gwq0h_g3frk_240",
21
- "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_g3frk_264",
22
- "header": "awsui_header_gwq0h_g3frk_240",
23
- "header-wrapper": "awsui_header-wrapper_gwq0h_g3frk_283",
24
- "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_g3frk_293",
25
- "header-button": "awsui_header-button_gwq0h_g3frk_298",
26
- "header-container-button": "awsui_header-container-button_gwq0h_g3frk_298",
27
- "header-container": "awsui_header-container_gwq0h_g3frk_298",
28
- "header-navigation": "awsui_header-navigation_gwq0h_g3frk_330",
29
- "header-text": "awsui_header-text_gwq0h_g3frk_362",
30
- "content": "awsui_content_gwq0h_g3frk_97",
31
- "content-default": "awsui_content-default_gwq0h_g3frk_369",
32
- "content-footer": "awsui_content-footer_gwq0h_g3frk_372",
33
- "content-expanded": "awsui_content-expanded_gwq0h_g3frk_375",
34
- "content-compact": "awsui_content-compact_gwq0h_g3frk_378",
35
- "focusable": "awsui_focusable_gwq0h_g3frk_382",
36
- "click-target": "awsui_click-target_gwq0h_g3frk_393"
5
+ "content-enter": "awsui_content-enter_gwq0h_11fqg_97",
6
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_11fqg_1",
7
+ "trigger-expanded": "awsui_trigger-expanded_gwq0h_11fqg_119",
8
+ "icon": "awsui_icon_gwq0h_11fqg_133",
9
+ "root": "awsui_root_gwq0h_11fqg_151",
10
+ "expand-button": "awsui_expand-button_gwq0h_11fqg_189",
11
+ "expanded": "awsui_expanded_gwq0h_11fqg_196",
12
+ "icon-container": "awsui_icon-container_gwq0h_11fqg_200",
13
+ "icon-container-container": "awsui_icon-container-container_gwq0h_11fqg_205",
14
+ "wrapper": "awsui_wrapper_gwq0h_11fqg_209",
15
+ "wrapper-default": "awsui_wrapper-default_gwq0h_11fqg_216",
16
+ "wrapper-footer": "awsui_wrapper-footer_gwq0h_11fqg_216",
17
+ "wrapper-navigation": "awsui_wrapper-navigation_gwq0h_11fqg_219",
18
+ "wrapper-container": "awsui_wrapper-container_gwq0h_11fqg_222",
19
+ "wrapper-compact": "awsui_wrapper-compact_gwq0h_11fqg_226",
20
+ "header-deprecated": "awsui_header-deprecated_gwq0h_11fqg_240",
21
+ "wrapper-expanded": "awsui_wrapper-expanded_gwq0h_11fqg_264",
22
+ "header": "awsui_header_gwq0h_11fqg_240",
23
+ "header-wrapper": "awsui_header-wrapper_gwq0h_11fqg_283",
24
+ "header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_11fqg_293",
25
+ "header-button": "awsui_header-button_gwq0h_11fqg_298",
26
+ "header-container-button": "awsui_header-container-button_gwq0h_11fqg_298",
27
+ "header-container": "awsui_header-container_gwq0h_11fqg_298",
28
+ "header-navigation": "awsui_header-navigation_gwq0h_11fqg_330",
29
+ "header-text": "awsui_header-text_gwq0h_11fqg_362",
30
+ "content": "awsui_content_gwq0h_11fqg_97",
31
+ "content-default": "awsui_content-default_gwq0h_11fqg_369",
32
+ "content-footer": "awsui_content-footer_gwq0h_11fqg_372",
33
+ "content-expanded": "awsui_content-expanded_gwq0h_11fqg_375",
34
+ "content-compact": "awsui_content-compact_gwq0h_11fqg_378",
35
+ "focusable": "awsui_focusable_gwq0h_11fqg_382",
36
+ "click-target": "awsui_click-target_gwq0h_11fqg_393"
37
37
  };
38
38