@cloudscape-design/components-themeable 3.0.910 → 3.0.912
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/container/styles.scss +5 -0
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +3 -3
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +33 -32
- package/lib/internal/template/container/styles.scoped.css +59 -55
- package/lib/internal/template/container/styles.selectors.js +33 -32
- package/lib/internal/template/container/use-sticky-header.d.ts +2 -0
- package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
- package/lib/internal/template/container/use-sticky-header.js +11 -0
- package/lib/internal/template/container/use-sticky-header.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/test-utils/dom/anchor-navigation/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/anchor-navigation/index.js +1 -1
- package/lib/internal/template/test-utils/dom/anchor-navigation/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/attribute-editor/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/attribute-editor/index.js +1 -1
- package/lib/internal/template/test-utils/dom/attribute-editor/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/date-range-picker/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/date-range-picker/index.js +1 -1
- package/lib/internal/template/test-utils/dom/date-range-picker/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/abstract-switch.d.ts +2 -2
- package/lib/internal/template/test-utils/dom/internal/abstract-switch.js +1 -1
- package/lib/internal/template/test-utils/dom/internal/abstract-switch.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/chart-popover.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/internal/chart-popover.js +1 -1
- package/lib/internal/template/test-utils/dom/internal/chart-popover.js.map +1 -1
- package/lib/internal/template/test-utils/dom/radio-group/radio-button.d.ts +2 -2
- package/lib/internal/template/test-utils/dom/radio-group/radio-button.js +1 -1
- package/lib/internal/template/test-utils/dom/radio-group/radio-button.js.map +1 -1
- package/lib/internal/template/test-utils/dom/side-navigation/index.d.ts +1 -1
- package/lib/internal/template/test-utils/dom/side-navigation/index.js +1 -1
- package/lib/internal/template/test-utils/dom/side-navigation/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/tiles/tile.d.ts +2 -2
- package/lib/internal/template/test-utils/dom/tiles/tile.js +1 -1
- package/lib/internal/template/test-utils/dom/tiles/tile.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/anchor-navigation/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/anchor-navigation/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/anchor-navigation/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/attribute-editor/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/attribute-editor/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/attribute-editor/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/date-range-picker/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/date-range-picker/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/date-range-picker/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/abstract-switch.d.ts +2 -2
- package/lib/internal/template/test-utils/selectors/internal/abstract-switch.js +1 -1
- package/lib/internal/template/test-utils/selectors/internal/abstract-switch.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.js +1 -1
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/radio-group/radio-button.d.ts +2 -2
- package/lib/internal/template/test-utils/selectors/radio-group/radio-button.js +1 -1
- package/lib/internal/template/test-utils/selectors/radio-group/radio-button.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/side-navigation/index.d.ts +1 -1
- package/lib/internal/template/test-utils/selectors/side-navigation/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/tiles/tile.d.ts +2 -2
- package/lib/internal/template/test-utils/selectors/tiles/tile.js +1 -1
- package/lib/internal/template/test-utils/selectors/tiles/tile.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAI1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAKlF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAO9C,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IAEzE,oBAAoB,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,oBAAoB,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C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IAEzE,oBAAoB,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,oBAAoB,CAAC,CAAC;IACjF,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC;CAClE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,eAWvE;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,SAAS,EACT,KAAK,EACL,cAAc,EACd,oBAAoB,EACpB,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAkB,EAClB,qBAA4B,EAC5B,oBAAoB,EACpB,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,sBAAsB,eAgHxB"}
|
|
@@ -29,7 +29,7 @@ export default function InternalContainer(_a) {
|
|
|
29
29
|
const baseProps = getBaseProps(restProps);
|
|
30
30
|
const rootRef = useRef(null);
|
|
31
31
|
const headerRef = useRef(null);
|
|
32
|
-
const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset, __mobileStickyOffset, __disableStickyMobile, __fullPage && isRefresh && !isMobile);
|
|
32
|
+
const { isSticky, isStuck, isStuckAtBottom, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset, __mobileStickyOffset, __disableStickyMobile, __fullPage && isRefresh && !isMobile);
|
|
33
33
|
const contentId = useUniqueId();
|
|
34
34
|
const hasDynamicHeight = isRefresh && variant === 'full-page';
|
|
35
35
|
const mergedRef = useMergeRefs(rootRef, __internalRootRef);
|
|
@@ -39,11 +39,11 @@ export default function InternalContainer(_a) {
|
|
|
39
39
|
const shouldHaveStickyStyles = isSticky && !isMobile;
|
|
40
40
|
const hasMedia = !!(media === null || media === void 0 ? void 0 : media.content);
|
|
41
41
|
const mediaPosition = (_b = media === null || media === void 0 ? void 0 : media.position) !== null && _b !== void 0 ? _b : 'top';
|
|
42
|
-
return (React.createElement("div", Object.assign({}, baseProps, __funnelSubStepProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']), shouldHaveStickyStyles && [styles['sticky-enabled']], isRefresh && styles.refresh), ref: mergedRef }, getAnalyticsLabelAttribute(`.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`)),
|
|
42
|
+
return (React.createElement("div", Object.assign({}, baseProps, __funnelSubStepProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']), shouldHaveStickyStyles && [styles['sticky-enabled']], shouldHaveStickyStyles && isStuck && isStuckAtBottom && [styles['with-stuck-sticky-header-at-bottom']], isRefresh && styles.refresh), ref: mergedRef }, getAnalyticsLabelAttribute(`.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`)),
|
|
43
43
|
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)),
|
|
44
44
|
React.createElement("div", { id: contentId, ref: __subStepRef, className: clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height']) },
|
|
45
45
|
header && (React.createElement(ContainerHeaderContextProvider, null,
|
|
46
|
-
React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
|
|
46
|
+
React.createElement(StickyHeaderContext.Provider, { value: { isStuck, isStuckAtBottom } },
|
|
47
47
|
React.createElement("div", Object.assign({ className: clsx(isRefresh && styles.refresh, styles.header, analyticsSelectors.header, styles[`header-variant-${variant}`], {
|
|
48
48
|
[styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
|
|
49
49
|
[styles['header-sticky-enabled']]: isSticky,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/container/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,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AAE9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3E,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAwBtD,MAAM,UAAU,0BAA0B,CAAC,KAA6B;IACtE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAC9D,MAAM,YAAY,GA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,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,QAAQ;4BACvC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAAE,UAAU,IAAI,SAAS;yBACtD,CACF,IACG,YAAY,IAChB,GAAG,EAAE,eAAe;wBAEnB,OAAO,IAAI,CAAC,QAAQ,IAAI,SAAS,IAAI,UAAU,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,GAAQ;wBACjG,MAAM,CACH,CACuB,CACA,CAClC;YACD,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,CAAC;gBAC7E,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,EAAE;wBACpE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;wBAClD,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM;qBAClC,CAAC,IAED,QAAQ,CACL,CACF;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 React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { getBaseProps } from '../internal/base-component';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { ContainerProps } from './interfaces';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\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 __fullPage?: 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 __fullPage = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const isRefresh = useVisualRefresh();\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 __fullPage && isRefresh && !isMobile\n );\n const contentId = useUniqueId();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, __headerRef);\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 {...getAnalyticsLabelAttribute(\n `.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`\n )}\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 <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(\n isRefresh && styles.refresh,\n styles.header,\n analyticsSelectors.header,\n styles[`header-variant-${variant}`],\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 [styles['header-full-page']]: __fullPage && isRefresh,\n }\n )}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {isStuck && !isMobile && isRefresh && __fullPage && <div className={styles['header-cover']}></div>}\n {header}\n </div>\n </StickyHeaderContext.Provider>\n </ContainerHeaderContextProvider>\n )}\n <div className={clsx(styles.content, fitHeight && styles['content-fit-height'])}>\n <div\n className={clsx(styles['content-inner'], testStyles['content-inner'], {\n [styles['with-paddings']]: !disableContentPaddings,\n [styles['with-header']]: !!header,\n })}\n >\n {children}\n </div>\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":"","sources":["../../../src/container/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,0BAA0B,EAAE,MAAM,kEAAkE,CAAC;AAE9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,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EAAE,CAAC,sBAAsB;wBAClD,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM;qBAClC,CAAC,IAED,QAAQ,CACL,CACF;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 React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { getBaseProps } from '../internal/base-component';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { ContainerProps } from './interfaces';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\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 __fullPage?: 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 __fullPage = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const isRefresh = useVisualRefresh();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, isStuckAtBottom, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile,\n __fullPage && isRefresh && !isMobile\n );\n const contentId = useUniqueId();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, __headerRef);\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 shouldHaveStickyStyles && isStuck && isStuckAtBottom && [styles['with-stuck-sticky-header-at-bottom']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n {...getAnalyticsLabelAttribute(\n `.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`\n )}\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 <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck, isStuckAtBottom }}>\n <div\n className={clsx(\n isRefresh && styles.refresh,\n styles.header,\n analyticsSelectors.header,\n styles[`header-variant-${variant}`],\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 [styles['header-full-page']]: __fullPage && isRefresh,\n }\n )}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {isStuck && !isMobile && isRefresh && __fullPage && <div className={styles['header-cover']}></div>}\n {header}\n </div>\n </StickyHeaderContext.Provider>\n </ContainerHeaderContextProvider>\n )}\n <div className={clsx(styles.content, fitHeight && styles['content-fit-height'])}>\n <div\n className={clsx(styles['content-inner'], testStyles['content-inner'], {\n [styles['with-paddings']]: !disableContentPaddings,\n [styles['with-header']]: !!header,\n })}\n >\n {children}\n </div>\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,37 +1,38 @@
|
|
|
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-
|
|
12
|
-
"
|
|
13
|
-
"content-wrapper
|
|
14
|
-
"
|
|
15
|
-
"media
|
|
16
|
-
"media-
|
|
17
|
-
"
|
|
18
|
-
"header
|
|
19
|
-
"header-
|
|
20
|
-
"header-
|
|
21
|
-
"header-
|
|
22
|
-
"header-
|
|
23
|
-
"header-
|
|
24
|
-
"header-
|
|
25
|
-
"header-
|
|
26
|
-
"
|
|
27
|
-
"with-
|
|
28
|
-
"
|
|
29
|
-
"header-
|
|
30
|
-
"
|
|
31
|
-
"content
|
|
32
|
-
"content-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
4
|
+
"root": "awsui_root_14iqq_1kkdz_189",
|
|
5
|
+
"fit-height": "awsui_fit-height_14iqq_1kkdz_222",
|
|
6
|
+
"with-side-media": "awsui_with-side-media_14iqq_1kkdz_227",
|
|
7
|
+
"variant-default": "awsui_variant-default_14iqq_1kkdz_230",
|
|
8
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_1kkdz_230",
|
|
9
|
+
"refresh": "awsui_refresh_14iqq_1kkdz_238",
|
|
10
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_1kkdz_288",
|
|
11
|
+
"with-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-bottom_14iqq_1kkdz_294",
|
|
12
|
+
"with-top-media": "awsui_with-top-media_14iqq_1kkdz_304",
|
|
13
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_1kkdz_309",
|
|
14
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1kkdz_314",
|
|
15
|
+
"media": "awsui_media_14iqq_1kkdz_321",
|
|
16
|
+
"media-top": "awsui_media-top_14iqq_1kkdz_339",
|
|
17
|
+
"media-side": "awsui_media-side_14iqq_1kkdz_344",
|
|
18
|
+
"header": "awsui_header_14iqq_1kkdz_350",
|
|
19
|
+
"header-full-page": "awsui_header-full-page_14iqq_1kkdz_355",
|
|
20
|
+
"header-variant-embedded": "awsui_header-variant-embedded_14iqq_1kkdz_358",
|
|
21
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1kkdz_358",
|
|
22
|
+
"header-with-media": "awsui_header-with-media_14iqq_1kkdz_361",
|
|
23
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1kkdz_367",
|
|
24
|
+
"header-stuck": "awsui_header-stuck_14iqq_1kkdz_377",
|
|
25
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_1kkdz_387",
|
|
26
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_1kkdz_390",
|
|
27
|
+
"with-paddings": "awsui_with-paddings_14iqq_1kkdz_396",
|
|
28
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_1kkdz_405",
|
|
29
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_1kkdz_463",
|
|
30
|
+
"header-cover": "awsui_header-cover_14iqq_1kkdz_466",
|
|
31
|
+
"content": "awsui_content_14iqq_1kkdz_309",
|
|
32
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_1kkdz_494",
|
|
33
|
+
"content-inner": "awsui_content-inner_14iqq_1kkdz_500",
|
|
34
|
+
"with-header": "awsui_with-header_14iqq_1kkdz_507",
|
|
35
|
+
"footer": "awsui_footer_14iqq_1kkdz_511",
|
|
36
|
+
"with-divider": "awsui_with-divider_14iqq_1kkdz_515"
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -186,7 +186,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
186
186
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
187
|
SPDX-License-Identifier: Apache-2.0
|
|
188
188
|
*/
|
|
189
|
-
.
|
|
189
|
+
.awsui_root_14iqq_1kkdz_189:not(#\9) {
|
|
190
190
|
border-collapse: separate;
|
|
191
191
|
border-spacing: 0;
|
|
192
192
|
box-sizing: border-box;
|
|
@@ -220,15 +220,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
220
220
|
word-wrap: break-word;
|
|
221
221
|
position: relative;
|
|
222
222
|
}
|
|
223
|
-
.
|
|
223
|
+
.awsui_root_14iqq_1kkdz_189.awsui_fit-height_14iqq_1kkdz_222:not(#\9) {
|
|
224
224
|
display: flex;
|
|
225
225
|
flex-direction: column;
|
|
226
226
|
block-size: 100%;
|
|
227
227
|
}
|
|
228
|
-
.
|
|
228
|
+
.awsui_root_14iqq_1kkdz_189.awsui_fit-height_14iqq_1kkdz_222.awsui_with-side-media_14iqq_1kkdz_227:not(#\9) {
|
|
229
229
|
flex-direction: row;
|
|
230
230
|
}
|
|
231
|
-
.
|
|
231
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-default_14iqq_1kkdz_230:not(#\9), .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9) {
|
|
232
232
|
background-color: var(--color-background-container-content-myy7cn, #ffffff);
|
|
233
233
|
border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
234
234
|
border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
@@ -236,11 +236,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
236
236
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
237
237
|
box-sizing: border-box;
|
|
238
238
|
}
|
|
239
|
-
.
|
|
239
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-default_14iqq_1kkdz_230.awsui_refresh_14iqq_1kkdz_238:not(#\9), .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230.awsui_refresh_14iqq_1kkdz_238:not(#\9) {
|
|
240
240
|
border-block: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
|
|
241
241
|
border-inline: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
|
|
242
242
|
}
|
|
243
|
-
.
|
|
243
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-default_14iqq_1kkdz_230:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::before, .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::before {
|
|
244
244
|
content: "";
|
|
245
245
|
position: absolute;
|
|
246
246
|
inset-inline-start: 0px;
|
|
@@ -258,7 +258,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
258
258
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
259
259
|
z-index: 1;
|
|
260
260
|
}
|
|
261
|
-
.
|
|
261
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-default_14iqq_1kkdz_230:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::after, .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::after {
|
|
262
262
|
content: "";
|
|
263
263
|
position: absolute;
|
|
264
264
|
inset-inline-start: 0px;
|
|
@@ -274,147 +274,151 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
274
274
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
275
275
|
box-shadow: var(--shadow-container-8g76zh, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(:last-child), .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(:last-child)::after {
|
|
278
278
|
border-end-end-radius: 0;
|
|
279
279
|
border-end-start-radius: 0;
|
|
280
280
|
border-block-end-width: 0;
|
|
281
281
|
}
|
|
282
|
-
.
|
|
282
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230 + .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9), .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230 + .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9)::before, .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230 + .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9)::after {
|
|
283
283
|
border-start-start-radius: 0;
|
|
284
284
|
border-start-end-radius: 0;
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230 + .awsui_root_14iqq_1kkdz_189.awsui_variant-stacked_14iqq_1kkdz_230:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::before {
|
|
287
287
|
border-block-start: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
.awsui_root_14iqq_1kkdz_189.awsui_sticky-enabled_14iqq_1kkdz_288:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::before {
|
|
290
290
|
inset-block-start: calc(-1 * var(--border-container-top-width-197qfn, 1px));
|
|
291
291
|
}
|
|
292
|
-
.
|
|
292
|
+
.awsui_root_14iqq_1kkdz_189.awsui_sticky-enabled_14iqq_1kkdz_288:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238).awsui_variant-stacked_14iqq_1kkdz_230::before {
|
|
293
293
|
inset-block-start: calc(-1 * var(--border-divider-section-width-iueskx, 1px));
|
|
294
294
|
}
|
|
295
|
+
.awsui_root_14iqq_1kkdz_189.awsui_with-stuck-sticky-header-at-bottom_14iqq_1kkdz_294:not(#\9) {
|
|
296
|
+
border-end-end-radius: 0;
|
|
297
|
+
border-end-start-radius: 0;
|
|
298
|
+
}
|
|
295
299
|
|
|
296
|
-
.awsui_with-side-
|
|
300
|
+
.awsui_with-side-media_14iqq_1kkdz_227:not(#\9) {
|
|
297
301
|
display: flex;
|
|
298
302
|
flex-direction: row;
|
|
299
303
|
}
|
|
300
304
|
|
|
301
|
-
.awsui_with-top-
|
|
305
|
+
.awsui_with-top-media_14iqq_1kkdz_304:not(#\9) {
|
|
302
306
|
display: flex;
|
|
303
307
|
flex-direction: column;
|
|
304
308
|
}
|
|
305
309
|
|
|
306
|
-
.awsui_content-
|
|
310
|
+
.awsui_content-wrapper_14iqq_1kkdz_309:not(#\9) {
|
|
307
311
|
display: flex;
|
|
308
312
|
flex-direction: column;
|
|
309
313
|
inline-size: 100%;
|
|
310
314
|
}
|
|
311
|
-
.awsui_content-wrapper-fit-
|
|
315
|
+
.awsui_content-wrapper-fit-height_14iqq_1kkdz_314:not(#\9) {
|
|
312
316
|
block-size: 100%;
|
|
313
317
|
overflow: hidden;
|
|
314
318
|
border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
315
319
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
316
320
|
}
|
|
317
321
|
|
|
318
|
-
.
|
|
322
|
+
.awsui_media_14iqq_1kkdz_321:not(#\9) {
|
|
319
323
|
overflow: hidden;
|
|
320
324
|
flex-shrink: 0;
|
|
321
325
|
}
|
|
322
|
-
.
|
|
323
|
-
.
|
|
324
|
-
.
|
|
326
|
+
.awsui_media_14iqq_1kkdz_321 img:not(#\9),
|
|
327
|
+
.awsui_media_14iqq_1kkdz_321 video:not(#\9),
|
|
328
|
+
.awsui_media_14iqq_1kkdz_321 picture:not(#\9) {
|
|
325
329
|
inline-size: 100%;
|
|
326
330
|
block-size: 100%;
|
|
327
331
|
object-fit: cover;
|
|
328
332
|
object-position: center;
|
|
329
333
|
}
|
|
330
|
-
.
|
|
334
|
+
.awsui_media_14iqq_1kkdz_321 iframe:not(#\9) {
|
|
331
335
|
inline-size: 100%;
|
|
332
336
|
block-size: 100%;
|
|
333
337
|
border-block: 0;
|
|
334
338
|
border-inline: 0;
|
|
335
339
|
}
|
|
336
|
-
.awsui_media-
|
|
340
|
+
.awsui_media-top_14iqq_1kkdz_339:not(#\9) {
|
|
337
341
|
max-block-size: 66%;
|
|
338
342
|
border-start-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
|
|
339
343
|
border-start-end-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
|
|
340
344
|
}
|
|
341
|
-
.awsui_media-
|
|
345
|
+
.awsui_media-side_14iqq_1kkdz_344:not(#\9) {
|
|
342
346
|
max-inline-size: 66%;
|
|
343
347
|
border-start-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
|
|
344
348
|
border-end-start-radius: calc(var(--border-radius-container-3o3ats, 0px) - 1px);
|
|
345
349
|
}
|
|
346
350
|
|
|
347
|
-
.
|
|
351
|
+
.awsui_header_14iqq_1kkdz_350:not(#\9) {
|
|
348
352
|
background-color: var(--color-background-container-header-9jxtzb, #fafafa);
|
|
349
353
|
border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
350
354
|
border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
351
355
|
}
|
|
352
|
-
.
|
|
356
|
+
.awsui_header_14iqq_1kkdz_350.awsui_header-full-page_14iqq_1kkdz_355:not(#\9) {
|
|
353
357
|
background-color: var(--color-background-layout-main-f96353, #f2f3f3);
|
|
354
358
|
}
|
|
355
|
-
.awsui_header-variant-
|
|
359
|
+
.awsui_header-variant-embedded_14iqq_1kkdz_358.awsui_refresh_14iqq_1kkdz_238:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1kkdz_358) {
|
|
356
360
|
background-color: transparent;
|
|
357
361
|
}
|
|
358
|
-
.
|
|
362
|
+
.awsui_header_14iqq_1kkdz_350.awsui_header-with-media_14iqq_1kkdz_361:not(#\9) {
|
|
359
363
|
background: none;
|
|
360
364
|
}
|
|
361
|
-
.
|
|
365
|
+
.awsui_header_14iqq_1kkdz_350.awsui_header-with-media_14iqq_1kkdz_361:not(#\9):not(:empty) {
|
|
362
366
|
border-block-end: none;
|
|
363
367
|
}
|
|
364
|
-
.awsui_header-sticky-
|
|
368
|
+
.awsui_header-sticky-disabled_14iqq_1kkdz_367:not(#\9) {
|
|
365
369
|
position: relative;
|
|
366
370
|
z-index: 1;
|
|
367
371
|
}
|
|
368
|
-
.awsui_header-sticky-
|
|
372
|
+
.awsui_header-sticky-enabled_14iqq_1kkdz_358:not(#\9) {
|
|
369
373
|
inset-block-start: 0;
|
|
370
374
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
371
375
|
position: sticky;
|
|
372
376
|
z-index: 800;
|
|
373
377
|
}
|
|
374
|
-
.awsui_header-
|
|
378
|
+
.awsui_header-stuck_14iqq_1kkdz_377:not(#\9) {
|
|
375
379
|
border-start-start-radius: 0;
|
|
376
380
|
border-start-end-radius: 0;
|
|
377
381
|
border-end-start-radius: 0;
|
|
378
382
|
border-end-end-radius: 0;
|
|
379
383
|
}
|
|
380
|
-
.awsui_header-
|
|
384
|
+
.awsui_header-stuck_14iqq_1kkdz_377:not(#\9)::before {
|
|
381
385
|
border-block: 0;
|
|
382
386
|
border-inline: 0;
|
|
383
387
|
}
|
|
384
|
-
.awsui_header-
|
|
388
|
+
.awsui_header-stuck_14iqq_1kkdz_377:not(#\9):not(.awsui_header-variant-cards_14iqq_1kkdz_387) {
|
|
385
389
|
box-shadow: var(--shadow-sticky-embedded-bxmsxm, 0px 1px 4px -2px rgba(0, 28, 36, 0.5));
|
|
386
390
|
}
|
|
387
|
-
.awsui_header-dynamic-
|
|
391
|
+
.awsui_header-dynamic-height_14iqq_1kkdz_390.awsui_header-stuck_14iqq_1kkdz_377:not(#\9) {
|
|
388
392
|
margin-block-end: calc(var(--line-height-heading-xl-66u22x, 36px) - var(--line-height-heading-l-643aq3, 22px));
|
|
389
393
|
}
|
|
390
|
-
.
|
|
394
|
+
.awsui_header_14iqq_1kkdz_350:not(#\9):not(:empty) {
|
|
391
395
|
border-block-end: var(--border-container-sticky-width-lhedby, 1px) solid var(--color-border-container-divider-xr1vlc, #eaeded);
|
|
392
396
|
}
|
|
393
|
-
.
|
|
397
|
+
.awsui_header_14iqq_1kkdz_350.awsui_with-paddings_14iqq_1kkdz_396:not(#\9) {
|
|
394
398
|
padding-block-start: var(--space-container-header-top-2yfg3x, 12px);
|
|
395
399
|
padding-block-end: var(--space-container-header-bottom-p6av5y, 12px);
|
|
396
400
|
padding-inline: var(--space-container-horizontal-v3575u, 20px);
|
|
397
401
|
}
|
|
398
|
-
.
|
|
402
|
+
.awsui_header_14iqq_1kkdz_350.awsui_with-paddings_14iqq_1kkdz_396.awsui_header-variant-cards_14iqq_1kkdz_387:not(#\9) {
|
|
399
403
|
padding-block: var(--space-container-header-top-2yfg3x, 12px);
|
|
400
404
|
padding-inline: var(--space-container-horizontal-v3575u, 20px);
|
|
401
405
|
}
|
|
402
|
-
.
|
|
406
|
+
.awsui_header_14iqq_1kkdz_350.awsui_with-hidden-content_14iqq_1kkdz_405:not(#\9) {
|
|
403
407
|
border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
404
408
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
405
409
|
}
|
|
406
|
-
.awsui_header-variant-
|
|
410
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387:not(#\9) {
|
|
407
411
|
border-start-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
408
412
|
border-start-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
409
413
|
border-end-start-radius: var(--border-radius-container-3o3ats, 0px);
|
|
410
414
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
411
415
|
box-sizing: border-box;
|
|
412
416
|
}
|
|
413
|
-
.awsui_header-variant-
|
|
417
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387.awsui_refresh_14iqq_1kkdz_238:not(#\9) {
|
|
414
418
|
border-block: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
|
|
415
419
|
border-inline: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
|
|
416
420
|
}
|
|
417
|
-
.awsui_header-variant-
|
|
421
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::before {
|
|
418
422
|
content: "";
|
|
419
423
|
position: absolute;
|
|
420
424
|
inset-inline-start: 0px;
|
|
@@ -432,7 +436,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
432
436
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
433
437
|
z-index: 1;
|
|
434
438
|
}
|
|
435
|
-
.awsui_header-variant-
|
|
439
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387:not(#\9):not(.awsui_refresh_14iqq_1kkdz_238)::after {
|
|
436
440
|
content: "";
|
|
437
441
|
position: absolute;
|
|
438
442
|
inset-inline-start: 0px;
|
|
@@ -448,26 +452,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
448
452
|
border-end-end-radius: var(--border-radius-container-3o3ats, 0px);
|
|
449
453
|
box-shadow: var(--shadow-container-8g76zh, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
450
454
|
}
|
|
451
|
-
.awsui_header-variant-
|
|
455
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1kkdz_358) {
|
|
452
456
|
position: relative;
|
|
453
457
|
}
|
|
454
|
-
.awsui_header-variant-
|
|
458
|
+
.awsui_header-variant-cards_14iqq_1kkdz_387.awsui_header-stuck_14iqq_1kkdz_377:not(#\9)::after, .awsui_header-variant-cards_14iqq_1kkdz_387.awsui_header-stuck_14iqq_1kkdz_377:not(#\9)::before {
|
|
455
459
|
border-block: 0;
|
|
456
460
|
border-inline: 0;
|
|
457
461
|
border-start-start-radius: 0;
|
|
458
462
|
border-start-end-radius: 0;
|
|
459
463
|
}
|
|
460
|
-
.awsui_header-variant-full-
|
|
464
|
+
.awsui_header-variant-full-page_14iqq_1kkdz_463.awsui_header-stuck_14iqq_1kkdz_377:not(#\9) {
|
|
461
465
|
box-shadow: none;
|
|
462
466
|
}
|
|
463
|
-
.awsui_header-variant-full-
|
|
467
|
+
.awsui_header-variant-full-page_14iqq_1kkdz_463.awsui_header-stuck_14iqq_1kkdz_377 > .awsui_header-cover_14iqq_1kkdz_466:not(#\9) {
|
|
464
468
|
background-color: var(--color-background-layout-main-f96353, #f2f3f3);
|
|
465
469
|
inline-size: 100%;
|
|
466
470
|
position: absolute;
|
|
467
471
|
block-size: var(--space-scaled-s-8j7izy, 12px);
|
|
468
472
|
inset-block-start: calc(-1 * var(--space-scaled-s-8j7izy, 12px));
|
|
469
473
|
}
|
|
470
|
-
.awsui_header-variant-full-
|
|
474
|
+
.awsui_header-variant-full-page_14iqq_1kkdz_463.awsui_header-stuck_14iqq_1kkdz_377:not(#\9)::before {
|
|
471
475
|
content: "";
|
|
472
476
|
position: absolute;
|
|
473
477
|
pointer-events: none;
|
|
@@ -477,7 +481,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
477
481
|
inset-block-start: 0;
|
|
478
482
|
border-block-end: solid var(--border-divider-section-width-iueskx, 1px) var(--color-border-divider-default-u5ytia, #eaeded);
|
|
479
483
|
}
|
|
480
|
-
.awsui_header-variant-full-
|
|
484
|
+
.awsui_header-variant-full-page_14iqq_1kkdz_463.awsui_header-stuck_14iqq_1kkdz_377:not(#\9)::after {
|
|
481
485
|
content: "";
|
|
482
486
|
position: absolute;
|
|
483
487
|
inset: 0;
|
|
@@ -485,30 +489,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
485
489
|
clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
|
|
486
490
|
}
|
|
487
491
|
|
|
488
|
-
.
|
|
492
|
+
.awsui_content_14iqq_1kkdz_309:not(#\9) {
|
|
489
493
|
flex: 1;
|
|
490
494
|
}
|
|
491
|
-
.awsui_content-fit-
|
|
495
|
+
.awsui_content-fit-height_14iqq_1kkdz_494:not(#\9) {
|
|
492
496
|
overflow: auto;
|
|
493
497
|
display: flex;
|
|
494
498
|
flex-direction: column;
|
|
495
499
|
}
|
|
496
500
|
|
|
497
|
-
.awsui_content-
|
|
501
|
+
.awsui_content-inner_14iqq_1kkdz_500:not(#\9) {
|
|
498
502
|
flex: 1;
|
|
499
503
|
}
|
|
500
|
-
.awsui_content-
|
|
504
|
+
.awsui_content-inner_14iqq_1kkdz_500.awsui_with-paddings_14iqq_1kkdz_396:not(#\9) {
|
|
501
505
|
padding-block: var(--space-scaled-l-7e51pg, 20px);
|
|
502
506
|
padding-inline: var(--space-container-horizontal-v3575u, 20px);
|
|
503
507
|
}
|
|
504
|
-
.awsui_content-
|
|
508
|
+
.awsui_content-inner_14iqq_1kkdz_500.awsui_with-paddings_14iqq_1kkdz_396.awsui_with-header_14iqq_1kkdz_507:not(#\9) {
|
|
505
509
|
padding-block-start: var(--space-container-content-top-pvv221, 16px);
|
|
506
510
|
}
|
|
507
511
|
|
|
508
|
-
.
|
|
512
|
+
.awsui_footer_14iqq_1kkdz_511.awsui_with-paddings_14iqq_1kkdz_396:not(#\9) {
|
|
509
513
|
padding-block: var(--space-scaled-s-8j7izy, 12px);
|
|
510
514
|
padding-inline: var(--space-container-horizontal-v3575u, 20px);
|
|
511
515
|
}
|
|
512
|
-
.
|
|
516
|
+
.awsui_footer_14iqq_1kkdz_511.awsui_with-divider_14iqq_1kkdz_515:not(#\9) {
|
|
513
517
|
border-block-start: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
|
|
514
518
|
}
|
|
@@ -2,37 +2,38 @@
|
|
|
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-
|
|
13
|
-
"
|
|
14
|
-
"content-wrapper
|
|
15
|
-
"
|
|
16
|
-
"media
|
|
17
|
-
"media-
|
|
18
|
-
"
|
|
19
|
-
"header
|
|
20
|
-
"header-
|
|
21
|
-
"header-
|
|
22
|
-
"header-
|
|
23
|
-
"header-
|
|
24
|
-
"header-
|
|
25
|
-
"header-
|
|
26
|
-
"header-
|
|
27
|
-
"
|
|
28
|
-
"with-
|
|
29
|
-
"
|
|
30
|
-
"header-
|
|
31
|
-
"
|
|
32
|
-
"content
|
|
33
|
-
"content-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
5
|
+
"root": "awsui_root_14iqq_1kkdz_189",
|
|
6
|
+
"fit-height": "awsui_fit-height_14iqq_1kkdz_222",
|
|
7
|
+
"with-side-media": "awsui_with-side-media_14iqq_1kkdz_227",
|
|
8
|
+
"variant-default": "awsui_variant-default_14iqq_1kkdz_230",
|
|
9
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_1kkdz_230",
|
|
10
|
+
"refresh": "awsui_refresh_14iqq_1kkdz_238",
|
|
11
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_1kkdz_288",
|
|
12
|
+
"with-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-bottom_14iqq_1kkdz_294",
|
|
13
|
+
"with-top-media": "awsui_with-top-media_14iqq_1kkdz_304",
|
|
14
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_1kkdz_309",
|
|
15
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1kkdz_314",
|
|
16
|
+
"media": "awsui_media_14iqq_1kkdz_321",
|
|
17
|
+
"media-top": "awsui_media-top_14iqq_1kkdz_339",
|
|
18
|
+
"media-side": "awsui_media-side_14iqq_1kkdz_344",
|
|
19
|
+
"header": "awsui_header_14iqq_1kkdz_350",
|
|
20
|
+
"header-full-page": "awsui_header-full-page_14iqq_1kkdz_355",
|
|
21
|
+
"header-variant-embedded": "awsui_header-variant-embedded_14iqq_1kkdz_358",
|
|
22
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1kkdz_358",
|
|
23
|
+
"header-with-media": "awsui_header-with-media_14iqq_1kkdz_361",
|
|
24
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1kkdz_367",
|
|
25
|
+
"header-stuck": "awsui_header-stuck_14iqq_1kkdz_377",
|
|
26
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_1kkdz_387",
|
|
27
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_1kkdz_390",
|
|
28
|
+
"with-paddings": "awsui_with-paddings_14iqq_1kkdz_396",
|
|
29
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_1kkdz_405",
|
|
30
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_1kkdz_463",
|
|
31
|
+
"header-cover": "awsui_header-cover_14iqq_1kkdz_466",
|
|
32
|
+
"content": "awsui_content_14iqq_1kkdz_309",
|
|
33
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_1kkdz_494",
|
|
34
|
+
"content-inner": "awsui_content-inner_14iqq_1kkdz_500",
|
|
35
|
+
"with-header": "awsui_with-header_14iqq_1kkdz_507",
|
|
36
|
+
"footer": "awsui_footer_14iqq_1kkdz_511",
|
|
37
|
+
"with-divider": "awsui_with-divider_14iqq_1kkdz_515"
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
interface StickyHeaderContextProps {
|
|
3
3
|
isStuck: boolean;
|
|
4
|
+
isStuckAtBottom: boolean;
|
|
4
5
|
}
|
|
5
6
|
interface ComputeOffsetProps {
|
|
6
7
|
isMobile: boolean;
|
|
@@ -14,6 +15,7 @@ export declare const StickyHeaderContext: import("react").Context<StickyHeaderCo
|
|
|
14
15
|
export declare const useStickyHeader: (rootRef: RefObject<HTMLDivElement>, headerRef: RefObject<HTMLDivElement>, __stickyHeader?: boolean, __stickyOffset?: number, __mobileStickyOffset?: number, __disableMobile?: boolean, __additionalOffset?: boolean) => {
|
|
15
16
|
isSticky: boolean;
|
|
16
17
|
isStuck: boolean;
|
|
18
|
+
isStuckAtBottom: boolean;
|
|
17
19
|
stickyStyles: {
|
|
18
20
|
style: {
|
|
19
21
|
top: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/container/use-sticky-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,SAAS,EAAqD,MAAM,OAAO,CAAC;AASpG,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"","sources":["../../../src/container/use-sticky-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,SAAS,EAAqD,MAAM,OAAO,CAAC;AASpG,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,OAAO,CAAC;IACjC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,GACnB,EAAE,kBAAkB,GAAG,MAAM,CAQ7B;AAED,eAAO,MAAM,mBAAmB,mDAG9B,CAAC;AAEH,eAAO,MAAM,eAAe,YACjB,UAAU,cAAc,CAAC,aACvB,UAAU,cAAc,CAAC,mBACnB,OAAO,mBACP,MAAM,yBACA,MAAM,oBACX,OAAO;;;;;;;;;;;CAyF1B,CAAC"}
|