@cloudscape-design/components 3.0.505 → 3.0.507
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.
- package/app-layout/visual-refresh/background.js +2 -2
- package/app-layout/visual-refresh/background.js.map +1 -1
- package/app-layout/visual-refresh/breadcrumbs.js +2 -2
- package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
- package/app-layout/visual-refresh/header.js +2 -2
- package/app-layout/visual-refresh/header.js.map +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.js +2 -2
- package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
- package/app-layout/visual-refresh/notifications.js +2 -2
- package/app-layout/visual-refresh/notifications.js.map +1 -1
- package/app-layout/visual-refresh/trigger-button.js +1 -1
- package/app-layout/visual-refresh/trigger-button.js.map +1 -1
- package/button-dropdown/category-elements/category-element.d.ts +1 -1
- package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/category-element.js +2 -2
- package/button-dropdown/category-elements/category-element.js.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +2 -2
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -2
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/styles.css.js +13 -13
- package/button-dropdown/category-elements/styles.scoped.css +21 -32
- package/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/button-dropdown/interfaces.d.ts +2 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +6 -1
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +16 -15
- package/button-dropdown/item-element/styles.scoped.css +18 -18
- package/button-dropdown/item-element/styles.selectors.js +16 -15
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +3 -3
- package/button-dropdown/items-list.js.map +1 -1
- package/cards/index.js +2 -2
- package/cards/index.js.map +1 -1
- package/container/internal.js +4 -4
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +30 -30
- package/container/styles.scoped.css +55 -54
- package/container/styles.selectors.js +30 -30
- package/content-layout/internal.js +3 -3
- package/content-layout/internal.js.map +1 -1
- package/expandable-section/styles.css.js +32 -32
- package/expandable-section/styles.scoped.css +63 -63
- package/expandable-section/styles.selectors.js +32 -32
- package/internal/components/dark-ribbon/index.js +2 -2
- package/internal/components/dark-ribbon/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/content-header-utils.d.ts +2 -2
- package/internal/utils/content-header-utils.d.ts.map +1 -1
- package/internal/utils/content-header-utils.js +2 -2
- package/internal/utils/content-header-utils.js.map +1 -1
- package/package.json +1 -1
- package/split-panel/icons/bottom-icon-refresh.js +2 -2
- package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
- package/split-panel/icons/side-position-refresh.js +2 -2
- package/split-panel/icons/side-position-refresh.js.map +1 -1
- package/table/internal.js +2 -2
- package/table/internal.js.map +1 -1
- package/top-navigation/interfaces.d.ts +2 -0
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/wizard/internal.js +4 -4
- package/wizard/internal.js.map +1 -1
- package/wizard/wizard-form-header.js +3 -3
- package/wizard/wizard-form-header.js.map +1 -1
- package/wizard/wizard-navigation.js +2 -2
- package/wizard/wizard-navigation.js.map +1 -1
package/container/internal.js
CHANGED
|
@@ -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 {
|
|
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'],
|
|
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,OA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sB;iBACnD,CACF,IAEA,QAAQ,CACL;YACL,MAAM,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,EAA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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 { 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"]}
|
package/container/styles.css.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"fit-height": "awsui_fit-
|
|
6
|
-
"with-side-media": "awsui_with-side-
|
|
7
|
-
"variant-default": "awsui_variant-
|
|
8
|
-
"variant-stacked": "awsui_variant-
|
|
9
|
-
"refresh": "
|
|
10
|
-
"sticky-enabled": "awsui_sticky-
|
|
11
|
-
"with-top-media": "awsui_with-top-
|
|
12
|
-
"content-wrapper": "awsui_content-
|
|
13
|
-
"content-wrapper-fit-height": "awsui_content-wrapper-fit-
|
|
14
|
-
"media": "
|
|
15
|
-
"media-top": "awsui_media-
|
|
16
|
-
"media-side": "awsui_media-
|
|
17
|
-
"header": "
|
|
18
|
-
"header-with-media": "awsui_header-with-
|
|
19
|
-
"header-sticky-disabled": "awsui_header-sticky-
|
|
20
|
-
"header-sticky-enabled": "awsui_header-sticky-
|
|
21
|
-
"header-stuck": "awsui_header-
|
|
22
|
-
"header-variant-cards": "awsui_header-variant-
|
|
23
|
-
"header-dynamic-height": "awsui_header-dynamic-
|
|
24
|
-
"with-paddings": "awsui_with-
|
|
25
|
-
"with-hidden-content": "awsui_with-hidden-
|
|
26
|
-
"header-variant-full-page": "awsui_header-variant-full-
|
|
27
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
28
|
-
"dark-header": "awsui_dark-
|
|
29
|
-
"content": "
|
|
30
|
-
"content-fit-height": "awsui_content-fit-
|
|
31
|
-
"content-with-media": "awsui_content-with-
|
|
32
|
-
"footer": "
|
|
33
|
-
"with-divider": "awsui_with-
|
|
4
|
+
"root": "awsui_root_14iqq_uo2bo_97",
|
|
5
|
+
"fit-height": "awsui_fit-height_14iqq_uo2bo_133",
|
|
6
|
+
"with-side-media": "awsui_with-side-media_14iqq_uo2bo_138",
|
|
7
|
+
"variant-default": "awsui_variant-default_14iqq_uo2bo_141",
|
|
8
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_uo2bo_141",
|
|
9
|
+
"refresh": "awsui_refresh_14iqq_uo2bo_146",
|
|
10
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_uo2bo_189",
|
|
11
|
+
"with-top-media": "awsui_with-top-media_14iqq_uo2bo_201",
|
|
12
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_uo2bo_206",
|
|
13
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_uo2bo_211",
|
|
14
|
+
"media": "awsui_media_14iqq_uo2bo_216",
|
|
15
|
+
"media-top": "awsui_media-top_14iqq_uo2bo_233",
|
|
16
|
+
"media-side": "awsui_media-side_14iqq_uo2bo_238",
|
|
17
|
+
"header": "awsui_header_14iqq_uo2bo_244",
|
|
18
|
+
"header-with-media": "awsui_header-with-media_14iqq_uo2bo_249",
|
|
19
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_uo2bo_255",
|
|
20
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_uo2bo_259",
|
|
21
|
+
"header-stuck": "awsui_header-stuck_14iqq_uo2bo_265",
|
|
22
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_uo2bo_271",
|
|
23
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_uo2bo_274",
|
|
24
|
+
"with-paddings": "awsui_with-paddings_14iqq_uo2bo_280",
|
|
25
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_uo2bo_286",
|
|
26
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_uo2bo_333",
|
|
27
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_14iqq_uo2bo_356",
|
|
28
|
+
"dark-header": "awsui_dark-header_14iqq_uo2bo_365",
|
|
29
|
+
"content": "awsui_content_14iqq_uo2bo_206",
|
|
30
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_uo2bo_373",
|
|
31
|
+
"content-with-media": "awsui_content-with-media_14iqq_uo2bo_382",
|
|
32
|
+
"footer": "awsui_footer_14iqq_uo2bo_386",
|
|
33
|
+
"with-divider": "awsui_with-divider_14iqq_uo2bo_389"
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.
|
|
97
|
+
.awsui_root_14iqq_uo2bo_97:not(#\9) {
|
|
98
98
|
border-collapse: separate;
|
|
99
99
|
border-spacing: 0;
|
|
100
100
|
box-sizing: border-box;
|
|
@@ -131,23 +131,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
131
131
|
word-wrap: break-word;
|
|
132
132
|
position: relative;
|
|
133
133
|
}
|
|
134
|
-
.
|
|
134
|
+
.awsui_root_14iqq_uo2bo_97.awsui_fit-height_14iqq_uo2bo_133:not(#\9) {
|
|
135
135
|
display: flex;
|
|
136
136
|
flex-direction: column;
|
|
137
137
|
height: 100%;
|
|
138
138
|
}
|
|
139
|
-
.
|
|
139
|
+
.awsui_root_14iqq_uo2bo_97.awsui_fit-height_14iqq_uo2bo_133.awsui_with-side-media_14iqq_uo2bo_138:not(#\9) {
|
|
140
140
|
flex-direction: row;
|
|
141
141
|
}
|
|
142
|
-
.
|
|
142
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-default_14iqq_uo2bo_141:not(#\9), .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9) {
|
|
143
143
|
background-color: var(--color-background-container-content-4un1ap, #ffffff);
|
|
144
144
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
145
145
|
box-sizing: border-box;
|
|
146
146
|
}
|
|
147
|
-
.
|
|
147
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-default_14iqq_uo2bo_141.awsui_refresh_14iqq_uo2bo_146:not(#\9), .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141.awsui_refresh_14iqq_uo2bo_146:not(#\9) {
|
|
148
148
|
border: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
149
149
|
}
|
|
150
|
-
.
|
|
150
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-default_14iqq_uo2bo_141:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::before, .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::before {
|
|
151
151
|
content: "";
|
|
152
152
|
position: absolute;
|
|
153
153
|
left: 0px;
|
|
@@ -162,7 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
162
162
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
163
163
|
z-index: 1;
|
|
164
164
|
}
|
|
165
|
-
.
|
|
165
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-default_14iqq_uo2bo_141:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::after, .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::after {
|
|
166
166
|
content: "";
|
|
167
167
|
position: absolute;
|
|
168
168
|
left: 0px;
|
|
@@ -175,127 +175,127 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
175
175
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
176
176
|
box-shadow: var(--shadow-container-fxmdn3, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
177
177
|
}
|
|
178
|
-
.
|
|
178
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(:last-child), .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(:last-child)::before, .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(:last-child)::after {
|
|
179
179
|
border-bottom-right-radius: 0;
|
|
180
180
|
border-bottom-left-radius: 0;
|
|
181
181
|
border-bottom-width: 0;
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141 + .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9), .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141 + .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9)::before, .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141 + .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9)::after {
|
|
184
184
|
border-top-left-radius: 0;
|
|
185
185
|
border-top-right-radius: 0;
|
|
186
186
|
}
|
|
187
|
-
.
|
|
187
|
+
.awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141 + .awsui_root_14iqq_uo2bo_97.awsui_variant-stacked_14iqq_uo2bo_141:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::before {
|
|
188
188
|
border-top: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
.awsui_root_14iqq_uo2bo_97.awsui_sticky-enabled_14iqq_uo2bo_189:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::before {
|
|
191
191
|
top: calc(-1 * var(--border-container-top-width-uugwwl, 0px));
|
|
192
192
|
}
|
|
193
|
-
.
|
|
193
|
+
.awsui_root_14iqq_uo2bo_97.awsui_sticky-enabled_14iqq_uo2bo_189:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146).awsui_variant-stacked_14iqq_uo2bo_141::before {
|
|
194
194
|
top: calc(-1 * var(--border-divider-section-width-1061zr, 1px));
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
.awsui_with-side-
|
|
197
|
+
.awsui_with-side-media_14iqq_uo2bo_138:not(#\9) {
|
|
198
198
|
display: flex;
|
|
199
199
|
flex-direction: row;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.awsui_with-top-
|
|
202
|
+
.awsui_with-top-media_14iqq_uo2bo_201:not(#\9) {
|
|
203
203
|
display: flex;
|
|
204
204
|
flex-direction: column;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.awsui_content-
|
|
207
|
+
.awsui_content-wrapper_14iqq_uo2bo_206:not(#\9) {
|
|
208
208
|
display: flex;
|
|
209
209
|
flex-direction: column;
|
|
210
210
|
width: 100%;
|
|
211
211
|
}
|
|
212
|
-
.awsui_content-wrapper-fit-
|
|
212
|
+
.awsui_content-wrapper-fit-height_14iqq_uo2bo_211:not(#\9) {
|
|
213
213
|
height: 100%;
|
|
214
214
|
overflow: hidden;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
.
|
|
217
|
+
.awsui_media_14iqq_uo2bo_216:not(#\9) {
|
|
218
218
|
overflow: hidden;
|
|
219
219
|
flex-shrink: 0;
|
|
220
220
|
}
|
|
221
|
-
.
|
|
222
|
-
.
|
|
223
|
-
.
|
|
221
|
+
.awsui_media_14iqq_uo2bo_216 img:not(#\9),
|
|
222
|
+
.awsui_media_14iqq_uo2bo_216 video:not(#\9),
|
|
223
|
+
.awsui_media_14iqq_uo2bo_216 picture:not(#\9) {
|
|
224
224
|
width: 100%;
|
|
225
225
|
height: 100%;
|
|
226
226
|
object-fit: cover;
|
|
227
227
|
object-position: center;
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
.awsui_media_14iqq_uo2bo_216 iframe:not(#\9) {
|
|
230
230
|
width: 100%;
|
|
231
231
|
height: 100%;
|
|
232
232
|
border: 0;
|
|
233
233
|
}
|
|
234
|
-
.awsui_media-
|
|
234
|
+
.awsui_media-top_14iqq_uo2bo_233:not(#\9) {
|
|
235
235
|
max-height: 66%;
|
|
236
236
|
border-top-left-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
|
|
237
237
|
border-top-right-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
|
|
238
238
|
}
|
|
239
|
-
.awsui_media-
|
|
239
|
+
.awsui_media-side_14iqq_uo2bo_238:not(#\9) {
|
|
240
240
|
max-width: 66%;
|
|
241
241
|
border-top-left-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
|
|
242
242
|
border-bottom-left-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.
|
|
245
|
+
.awsui_header_14iqq_uo2bo_244:not(#\9) {
|
|
246
246
|
background-color: var(--color-background-container-header-8b9fgi, #ffffff);
|
|
247
247
|
border-top-left-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
248
248
|
border-top-right-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
249
249
|
}
|
|
250
|
-
.
|
|
250
|
+
.awsui_header_14iqq_uo2bo_244.awsui_header-with-media_14iqq_uo2bo_249:not(#\9) {
|
|
251
251
|
background: none;
|
|
252
252
|
}
|
|
253
|
-
.
|
|
253
|
+
.awsui_header_14iqq_uo2bo_244.awsui_header-with-media_14iqq_uo2bo_249:not(#\9):not(:empty) {
|
|
254
254
|
border-bottom: none;
|
|
255
255
|
}
|
|
256
|
-
.awsui_header-sticky-
|
|
256
|
+
.awsui_header-sticky-disabled_14iqq_uo2bo_255:not(#\9) {
|
|
257
257
|
position: relative;
|
|
258
258
|
z-index: 1;
|
|
259
259
|
}
|
|
260
|
-
.awsui_header-sticky-
|
|
260
|
+
.awsui_header-sticky-enabled_14iqq_uo2bo_259:not(#\9) {
|
|
261
261
|
top: 0;
|
|
262
262
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
263
263
|
position: sticky;
|
|
264
264
|
z-index: 800;
|
|
265
265
|
}
|
|
266
|
-
.awsui_header-
|
|
266
|
+
.awsui_header-stuck_14iqq_uo2bo_265:not(#\9) {
|
|
267
267
|
border-radius: 0;
|
|
268
268
|
}
|
|
269
|
-
.awsui_header-
|
|
269
|
+
.awsui_header-stuck_14iqq_uo2bo_265:not(#\9)::before {
|
|
270
270
|
border: 0;
|
|
271
271
|
}
|
|
272
|
-
.awsui_header-
|
|
272
|
+
.awsui_header-stuck_14iqq_uo2bo_265:not(#\9):not(.awsui_header-variant-cards_14iqq_uo2bo_271) {
|
|
273
273
|
box-shadow: var(--shadow-sticky-embedded-uvh5ry, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
|
|
274
274
|
}
|
|
275
|
-
.awsui_header-dynamic-
|
|
275
|
+
.awsui_header-dynamic-height_14iqq_uo2bo_274.awsui_header-stuck_14iqq_uo2bo_265:not(#\9) {
|
|
276
276
|
margin-bottom: calc(var(--line-height-heading-xl-avbttk, 30px) - var(--line-height-heading-l-mmm3my, 24px));
|
|
277
277
|
}
|
|
278
|
-
.
|
|
278
|
+
.awsui_header_14iqq_uo2bo_244:not(#\9):not(:empty) {
|
|
279
279
|
border-bottom: var(--border-container-sticky-width-6asz33, 0px) solid var(--color-border-container-divider-p2uygo, transparent);
|
|
280
280
|
}
|
|
281
|
-
.
|
|
281
|
+
.awsui_header_14iqq_uo2bo_244.awsui_with-paddings_14iqq_uo2bo_280:not(#\9) {
|
|
282
282
|
padding: var(--space-container-header-top-5qav00, 12px) var(--space-container-horizontal-wfukh3, 20px) var(--space-container-header-bottom-vj01hn, 8px);
|
|
283
283
|
}
|
|
284
|
-
.
|
|
284
|
+
.awsui_header_14iqq_uo2bo_244.awsui_with-paddings_14iqq_uo2bo_280.awsui_header-variant-cards_14iqq_uo2bo_271:not(#\9) {
|
|
285
285
|
padding: var(--space-container-header-top-5qav00, 12px) var(--space-container-horizontal-wfukh3, 20px);
|
|
286
286
|
}
|
|
287
|
-
.
|
|
287
|
+
.awsui_header_14iqq_uo2bo_244.awsui_with-hidden-content_14iqq_uo2bo_286:not(#\9) {
|
|
288
288
|
border-bottom-left-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
289
289
|
border-bottom-right-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
290
290
|
}
|
|
291
|
-
.awsui_header-variant-
|
|
291
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271:not(#\9) {
|
|
292
292
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
293
293
|
box-sizing: border-box;
|
|
294
294
|
}
|
|
295
|
-
.awsui_header-variant-
|
|
295
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271.awsui_refresh_14iqq_uo2bo_146:not(#\9) {
|
|
296
296
|
border: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
297
297
|
}
|
|
298
|
-
.awsui_header-variant-
|
|
298
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::before {
|
|
299
299
|
content: "";
|
|
300
300
|
position: absolute;
|
|
301
301
|
left: 0px;
|
|
@@ -310,7 +310,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
310
310
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
311
311
|
z-index: 1;
|
|
312
312
|
}
|
|
313
|
-
.awsui_header-variant-
|
|
313
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271:not(#\9):not(.awsui_refresh_14iqq_uo2bo_146)::after {
|
|
314
314
|
content: "";
|
|
315
315
|
position: absolute;
|
|
316
316
|
left: 0px;
|
|
@@ -323,27 +323,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
323
323
|
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
324
324
|
box-shadow: var(--shadow-container-fxmdn3, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
325
325
|
}
|
|
326
|
-
.awsui_header-variant-
|
|
326
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271:not(#\9):not(.awsui_header-sticky-enabled_14iqq_uo2bo_259) {
|
|
327
327
|
position: relative;
|
|
328
328
|
}
|
|
329
|
-
.awsui_header-variant-
|
|
329
|
+
.awsui_header-variant-cards_14iqq_uo2bo_271.awsui_header-stuck_14iqq_uo2bo_265:not(#\9)::after, .awsui_header-variant-cards_14iqq_uo2bo_271.awsui_header-stuck_14iqq_uo2bo_265:not(#\9)::before {
|
|
330
330
|
border: 0;
|
|
331
331
|
border-top-left-radius: 0;
|
|
332
332
|
border-top-right-radius: 0;
|
|
333
333
|
}
|
|
334
|
-
.awsui_header-variant-full-
|
|
334
|
+
.awsui_header-variant-full-page_14iqq_uo2bo_333.awsui_header-stuck_14iqq_uo2bo_265:not(#\9) {
|
|
335
335
|
box-shadow: none;
|
|
336
336
|
}
|
|
337
|
-
.awsui_header-variant-full-
|
|
337
|
+
.awsui_header-variant-full-page_14iqq_uo2bo_333.awsui_header-stuck_14iqq_uo2bo_265:not(#\9)::before {
|
|
338
338
|
content: "";
|
|
339
339
|
position: absolute;
|
|
340
|
+
pointer-events: none;
|
|
340
341
|
right: 0;
|
|
341
342
|
left: 0;
|
|
342
343
|
bottom: 0;
|
|
343
344
|
top: 0;
|
|
344
345
|
border-bottom: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
345
346
|
}
|
|
346
|
-
.awsui_header-variant-full-
|
|
347
|
+
.awsui_header-variant-full-page_14iqq_uo2bo_333.awsui_header-stuck_14iqq_uo2bo_265:not(#\9)::after {
|
|
347
348
|
content: "";
|
|
348
349
|
position: absolute;
|
|
349
350
|
right: 0;
|
|
@@ -353,7 +354,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
353
354
|
box-shadow: var(--shadow-sticky-blixp9, 0px 4px 8px 1px rgba(0, 7, 22, 0.1));
|
|
354
355
|
clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
|
|
355
356
|
}
|
|
356
|
-
.awsui_header-variant-full-
|
|
357
|
+
.awsui_header-variant-full-page_14iqq_uo2bo_333.awsui_header-stuck_14iqq_uo2bo_265:not(#\9):not(.awsui_remove-high-contrast-header_14iqq_uo2bo_356)::before {
|
|
357
358
|
content: "";
|
|
358
359
|
border-bottom: none;
|
|
359
360
|
}
|
|
@@ -362,30 +363,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
362
363
|
The dynamic height dark header needs a background that will cover
|
|
363
364
|
the default white background of the container component.
|
|
364
365
|
*/
|
|
365
|
-
.awsui_dark-
|
|
366
|
+
.awsui_dark-header_14iqq_uo2bo_365:not(#\9) {
|
|
366
367
|
background-color: var(--color-background-layout-main-nx09lr, #ffffff);
|
|
367
368
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
368
369
|
}
|
|
369
370
|
|
|
370
|
-
.
|
|
371
|
+
.awsui_content_14iqq_uo2bo_206:not(#\9) {
|
|
371
372
|
flex: 1;
|
|
372
373
|
}
|
|
373
|
-
.awsui_content-fit-
|
|
374
|
+
.awsui_content-fit-height_14iqq_uo2bo_373:not(#\9) {
|
|
374
375
|
overflow: auto;
|
|
375
376
|
}
|
|
376
|
-
.
|
|
377
|
+
.awsui_content_14iqq_uo2bo_206.awsui_with-paddings_14iqq_uo2bo_280:not(#\9) {
|
|
377
378
|
padding: var(--space-scaled-l-0hpmd7, 20px) var(--space-container-horizontal-wfukh3, 20px);
|
|
378
379
|
}
|
|
379
|
-
.
|
|
380
|
+
.awsui_header_14iqq_uo2bo_244 + .awsui_content_14iqq_uo2bo_206.awsui_with-paddings_14iqq_uo2bo_280:not(#\9) {
|
|
380
381
|
padding-top: var(--space-container-content-top-1ae0r3, 4px);
|
|
381
382
|
}
|
|
382
|
-
.
|
|
383
|
+
.awsui_header_14iqq_uo2bo_244 + .awsui_content_14iqq_uo2bo_206.awsui_with-paddings_14iqq_uo2bo_280.awsui_content-with-media_14iqq_uo2bo_382:not(#\9) {
|
|
383
384
|
padding-top: 0;
|
|
384
385
|
}
|
|
385
386
|
|
|
386
|
-
.
|
|
387
|
+
.awsui_footer_14iqq_uo2bo_386.awsui_with-paddings_14iqq_uo2bo_280:not(#\9) {
|
|
387
388
|
padding: var(--space-scaled-s-aqzyko, 12px) var(--space-container-horizontal-wfukh3, 20px);
|
|
388
389
|
}
|
|
389
|
-
.
|
|
390
|
+
.awsui_footer_14iqq_uo2bo_386.awsui_with-divider_14iqq_uo2bo_389:not(#\9) {
|
|
390
391
|
border-top: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
391
392
|
}
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"fit-height": "awsui_fit-
|
|
7
|
-
"with-side-media": "awsui_with-side-
|
|
8
|
-
"variant-default": "awsui_variant-
|
|
9
|
-
"variant-stacked": "awsui_variant-
|
|
10
|
-
"refresh": "
|
|
11
|
-
"sticky-enabled": "awsui_sticky-
|
|
12
|
-
"with-top-media": "awsui_with-top-
|
|
13
|
-
"content-wrapper": "awsui_content-
|
|
14
|
-
"content-wrapper-fit-height": "awsui_content-wrapper-fit-
|
|
15
|
-
"media": "
|
|
16
|
-
"media-top": "awsui_media-
|
|
17
|
-
"media-side": "awsui_media-
|
|
18
|
-
"header": "
|
|
19
|
-
"header-with-media": "awsui_header-with-
|
|
20
|
-
"header-sticky-disabled": "awsui_header-sticky-
|
|
21
|
-
"header-sticky-enabled": "awsui_header-sticky-
|
|
22
|
-
"header-stuck": "awsui_header-
|
|
23
|
-
"header-variant-cards": "awsui_header-variant-
|
|
24
|
-
"header-dynamic-height": "awsui_header-dynamic-
|
|
25
|
-
"with-paddings": "awsui_with-
|
|
26
|
-
"with-hidden-content": "awsui_with-hidden-
|
|
27
|
-
"header-variant-full-page": "awsui_header-variant-full-
|
|
28
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
29
|
-
"dark-header": "awsui_dark-
|
|
30
|
-
"content": "
|
|
31
|
-
"content-fit-height": "awsui_content-fit-
|
|
32
|
-
"content-with-media": "awsui_content-with-
|
|
33
|
-
"footer": "
|
|
34
|
-
"with-divider": "awsui_with-
|
|
5
|
+
"root": "awsui_root_14iqq_uo2bo_97",
|
|
6
|
+
"fit-height": "awsui_fit-height_14iqq_uo2bo_133",
|
|
7
|
+
"with-side-media": "awsui_with-side-media_14iqq_uo2bo_138",
|
|
8
|
+
"variant-default": "awsui_variant-default_14iqq_uo2bo_141",
|
|
9
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_uo2bo_141",
|
|
10
|
+
"refresh": "awsui_refresh_14iqq_uo2bo_146",
|
|
11
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_uo2bo_189",
|
|
12
|
+
"with-top-media": "awsui_with-top-media_14iqq_uo2bo_201",
|
|
13
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_uo2bo_206",
|
|
14
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_uo2bo_211",
|
|
15
|
+
"media": "awsui_media_14iqq_uo2bo_216",
|
|
16
|
+
"media-top": "awsui_media-top_14iqq_uo2bo_233",
|
|
17
|
+
"media-side": "awsui_media-side_14iqq_uo2bo_238",
|
|
18
|
+
"header": "awsui_header_14iqq_uo2bo_244",
|
|
19
|
+
"header-with-media": "awsui_header-with-media_14iqq_uo2bo_249",
|
|
20
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_uo2bo_255",
|
|
21
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_uo2bo_259",
|
|
22
|
+
"header-stuck": "awsui_header-stuck_14iqq_uo2bo_265",
|
|
23
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_uo2bo_271",
|
|
24
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_uo2bo_274",
|
|
25
|
+
"with-paddings": "awsui_with-paddings_14iqq_uo2bo_280",
|
|
26
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_uo2bo_286",
|
|
27
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_uo2bo_333",
|
|
28
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_14iqq_uo2bo_356",
|
|
29
|
+
"dark-header": "awsui_dark-header_14iqq_uo2bo_365",
|
|
30
|
+
"content": "awsui_content_14iqq_uo2bo_206",
|
|
31
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_uo2bo_373",
|
|
32
|
+
"content-with-media": "awsui_content-with-media_14iqq_uo2bo_382",
|
|
33
|
+
"footer": "awsui_footer_14iqq_uo2bo_386",
|
|
34
|
+
"with-divider": "awsui_with-divider_14iqq_uo2bo_389"
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -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 {
|
|
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 },
|
|
26
|
-
header && React.createElement("div", { className: clsx(styles.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,
|
|
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,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC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AM,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"]}
|