@cloudscape-design/components-themeable 3.0.1374 → 3.0.1375
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/app-layout/visual-refresh-toolbar/toolbar/styles.scss +4 -0
- package/lib/internal/scss/container/styles.scss +10 -0
- package/lib/internal/scss/expandable-section/styles.scss +16 -0
- package/lib/internal/scss/flashbar/collapsible.scss +22 -45
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/table/body-cell/styles.scss +7 -0
- package/lib/internal/scss/table/header-cell/styles.scss +12 -0
- package/lib/internal/scss/table/sticky-columns/sticky-boundary.scss +24 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/contexts.d.ts +4 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/contexts.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/contexts.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +3 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts +3 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.js +8 -5
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/slots.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts +4 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/toolbar-container.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js +27 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts +7 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.d.ts.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js +16 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-own-breadcrumbs-props.js.map +1 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +4 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +15 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +35 -31
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +15 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/implementation.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/implementation.js +30 -1
- package/lib/internal/template/breadcrumb-group/implementation.js.map +1 -1
- package/lib/internal/template/container/index.d.ts +3 -1
- package/lib/internal/template/container/index.d.ts.map +1 -1
- package/lib/internal/template/container/index.js +4 -3
- package/lib/internal/template/container/index.js.map +1 -1
- package/lib/internal/template/container/interfaces.d.ts +7 -0
- package/lib/internal/template/container/interfaces.d.ts.map +1 -1
- package/lib/internal/template/container/interfaces.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts +3 -2
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +37 -8
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +34 -33
- package/lib/internal/template/container/styles.scoped.css +77 -56
- package/lib/internal/template/container/styles.selectors.js +34 -33
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +3 -1
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +160 -200
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +3 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +6 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +3 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +3 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +65 -0
- package/lib/internal/template/internal/generated/theming/index.js +65 -0
- package/lib/internal/template/internal/plugins/widget/index.d.ts +5 -1
- package/lib/internal/template/internal/plugins/widget/index.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget/index.js +26 -1
- package/lib/internal/template/internal/plugins/widget/index.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +12 -2
- package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
- package/lib/internal/template/internal/plugins/widget.d.ts +1 -1
- package/lib/internal/template/internal/plugins/widget.d.ts.map +1 -1
- package/lib/internal/template/internal/plugins/widget.js +1 -1
- package/lib/internal/template/internal/plugins/widget.js.map +1 -1
- package/lib/internal/template/plugins/index.d.ts +2 -1
- package/lib/internal/template/plugins/index.d.ts.map +1 -1
- package/lib/internal/template/plugins/index.js +2 -1
- package/lib/internal/template/plugins/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +38 -38
- package/lib/internal/template/table/header-cell/styles.scoped.css +80 -81
- package/lib/internal/template/table/header-cell/styles.selectors.js +38 -38
- package/lib/internal/template/table/sticky-columns/interfaces.d.ts +2 -0
- package/lib/internal/template/table/sticky-columns/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-columns/interfaces.js.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js +11 -5
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/lib/internal/template/table/sticky-columns/utils.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-columns/utils.js +2 -0
- package/lib/internal/template/table/sticky-columns/utils.js.map +1 -1
- package/lib/internal/template/table/utils.d.ts +1 -3
- package/lib/internal/template/table/utils.d.ts.map +1 -1
- package/lib/internal/template/table/utils.js +12 -5
- package/lib/internal/template/table/utils.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +0 -4785
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.d.ts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-License-Identifier: Apache-2.0
|
|
3
|
-
import React, { useRef } from 'react';
|
|
3
|
+
import React, { useImperativeHandle, useRef, useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';
|
|
6
6
|
import { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
@@ -12,25 +12,53 @@ import { ContainerHeaderContextProvider } from '../internal/context/container-he
|
|
|
12
12
|
import { useModalContext } from '../internal/context/modal-context';
|
|
13
13
|
import { useMobile } from '../internal/hooks/use-mobile';
|
|
14
14
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
15
|
+
import { scrollElementIntoView } from '../internal/utils/scrollable-containers';
|
|
15
16
|
import { getContentStyles, getFooterStyles, getHeaderStyles, getMediaStyles, getRootStyles } from './style';
|
|
16
17
|
import { StickyHeaderContext, useStickyHeader } from './use-sticky-header';
|
|
17
18
|
import analyticsSelectors from './analytics-metadata/styles.css.js';
|
|
18
19
|
import styles from './styles.css.js';
|
|
19
20
|
import testStyles from './test-classes/styles.css.js';
|
|
20
|
-
export
|
|
21
|
+
export const InternalContainerAsSubstep = React.forwardRef((props, ref) => {
|
|
21
22
|
const { subStepRef, funnelSubStepProps } = useFunnelSubStep();
|
|
22
23
|
const modalContext = useModalContext();
|
|
23
|
-
return (React.createElement(InternalContainer, { ...props, __subStepRef: (modalContext === null || modalContext === void 0 ? void 0 : modalContext.isInModal) ? { current: null } : subStepRef, __funnelSubStepProps: (modalContext === null || modalContext === void 0 ? void 0 : modalContext.isInModal) ? {} : funnelSubStepProps }));
|
|
24
|
-
}
|
|
25
|
-
|
|
24
|
+
return (React.createElement(InternalContainer, { ...props, ref: ref, __subStepRef: (modalContext === null || modalContext === void 0 ? void 0 : modalContext.isInModal) ? { current: null } : subStepRef, __funnelSubStepProps: (modalContext === null || modalContext === void 0 ? void 0 : modalContext.isInModal) ? {} : funnelSubStepProps }));
|
|
25
|
+
});
|
|
26
|
+
const InternalContainer = React.forwardRef(function InternalContainer({ header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, disableFooterPaddings = false, fitHeight, media, style, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef, __disableFooterDivider = false, __hiddenContent = false, __headerRef, __fullPage = false, __disableStickyMobile = true, __funnelSubStepProps, __subStepRef, __contentKey, ...restProps }, ref) {
|
|
26
27
|
var _a;
|
|
27
28
|
const isMobile = useMobile();
|
|
28
29
|
const isRefresh = useVisualRefresh();
|
|
29
30
|
const baseProps = getBaseProps(restProps);
|
|
30
31
|
const rootRef = useRef(null);
|
|
31
32
|
const headerRef = useRef(null);
|
|
33
|
+
const [showFocusRing, setShowFocusRing] = useState(false);
|
|
34
|
+
useImperativeHandle(ref, () => ({
|
|
35
|
+
focus: () => {
|
|
36
|
+
if (rootRef.current) {
|
|
37
|
+
rootRef.current.tabIndex = -1;
|
|
38
|
+
rootRef.current.setAttribute('role', 'group');
|
|
39
|
+
if (header) {
|
|
40
|
+
rootRef.current.setAttribute('aria-labelledby', headerId);
|
|
41
|
+
}
|
|
42
|
+
setShowFocusRing(true);
|
|
43
|
+
// focus()'s implicit scroll is a no-op when the container is already focused (repeated jump).
|
|
44
|
+
rootRef.current.focus({ preventScroll: true });
|
|
45
|
+
scrollElementIntoView(rootRef.current);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
}));
|
|
49
|
+
const onRootBlur = (event) => {
|
|
50
|
+
const funnelOnBlur = __funnelSubStepProps === null || __funnelSubStepProps === void 0 ? void 0 : __funnelSubStepProps.onBlur;
|
|
51
|
+
funnelOnBlur === null || funnelOnBlur === void 0 ? void 0 : funnelOnBlur(event);
|
|
52
|
+
if (event.target === rootRef.current) {
|
|
53
|
+
rootRef.current.removeAttribute('tabindex');
|
|
54
|
+
rootRef.current.removeAttribute('role');
|
|
55
|
+
rootRef.current.removeAttribute('aria-labelledby');
|
|
56
|
+
setShowFocusRing(false);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
32
59
|
const { isSticky, isStuck, isStuckAtBottom, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset, __mobileStickyOffset, __disableStickyMobile, __fullPage && isRefresh && !isMobile);
|
|
33
60
|
const contentId = useUniqueId();
|
|
61
|
+
const headerId = useUniqueId('container-header-');
|
|
34
62
|
const hasDynamicHeight = isRefresh && variant === 'full-page';
|
|
35
63
|
const mergedRef = useMergeRefs(rootRef, __internalRootRef);
|
|
36
64
|
const headerMergedRef = useMergeRefs(headerRef, __headerRef);
|
|
@@ -39,7 +67,7 @@ export default function InternalContainer({ header, footer, children, variant =
|
|
|
39
67
|
const shouldHaveStickyStyles = isSticky && !isMobile;
|
|
40
68
|
const hasMedia = !!(media === null || media === void 0 ? void 0 : media.content);
|
|
41
69
|
const mediaPosition = (_a = media === null || media === void 0 ? void 0 : media.position) !== null && _a !== void 0 ? _a : 'top';
|
|
42
|
-
return (React.createElement("div", { ...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`), style: getRootStyles(style) },
|
|
70
|
+
return (React.createElement("div", { ...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']], showFocusRing && styles['focus-ring'], isRefresh && styles.refresh), ref: mergedRef, onBlur: onRootBlur, ...getAnalyticsLabelAttribute(`.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`), style: getRootStyles(style) },
|
|
43
71
|
hasMedia && (React.createElement("div", { className: clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media), style: mediaPosition === 'top'
|
|
44
72
|
? { ...getMediaStyles(mediaPosition, style), height: (media === null || media === void 0 ? void 0 : media.height) || '' }
|
|
45
73
|
: { ...getMediaStyles(mediaPosition, style), width: (media === null || media === void 0 ? void 0 : media.width) || '' } }, media.content)),
|
|
@@ -47,7 +75,7 @@ export default function InternalContainer({ header, footer, children, variant =
|
|
|
47
75
|
React.createElement(BuiltInErrorBoundary, { wrapper: content => React.createElement(InternalBox, { padding: "m" }, content) },
|
|
48
76
|
header && (React.createElement(ContainerHeaderContextProvider, null,
|
|
49
77
|
React.createElement(StickyHeaderContext.Provider, { value: { isStuck, isStuckAtBottom } },
|
|
50
|
-
React.createElement("div", { className: clsx(isRefresh && styles.refresh, styles.header, analyticsSelectors.header, styles[`header-variant-${variant}`], {
|
|
78
|
+
React.createElement("div", { id: headerId, className: clsx(isRefresh && styles.refresh, styles.header, analyticsSelectors.header, styles[`header-variant-${variant}`], {
|
|
51
79
|
[styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
|
|
52
80
|
[styles['header-sticky-enabled']]: isSticky,
|
|
53
81
|
[styles['header-dynamic-height']]: hasDynamicHeight,
|
|
@@ -72,5 +100,6 @@ export default function InternalContainer({ header, footer, children, variant =
|
|
|
72
100
|
[styles['with-divider']]: !__disableFooterDivider,
|
|
73
101
|
[styles['with-paddings']]: !disableFooterPaddings,
|
|
74
102
|
}), style: getFooterStyles(style) }, footer))))));
|
|
75
|
-
}
|
|
103
|
+
});
|
|
104
|
+
export default InternalContainer;
|
|
76
105
|
//# sourceMappingURL=internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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CAAe,CACxF,IAEA,QAAQ,CACY,CACnB,CACF;gBACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;wBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;wBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,qBAAqB;qBAClD,CAAC,EACF,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,IAE5B,MAAM,CACH,CACP,CACoB,CACnB,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { BuiltInErrorBoundary } from '../error-boundary/internal';\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 { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { ContainerProps } from './interfaces';\nimport { getContentStyles, getFooterStyles, getHeaderStyles, getMediaStyles, getRootStyles } from './style';\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 disableFooterPaddings?: boolean;\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: 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 /**\n * React key attached to the content wrapper. It is used to force content re-mount but not container re-mount, which\n * is necessary for components that use container as a root node internally so that their test-utils wrapper is not detached.\n */\n __contentKey?: string;\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 disableFooterPaddings = false,\n fitHeight,\n media,\n style,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef,\n __disableFooterDivider = false,\n __hiddenContent = false,\n __headerRef,\n __fullPage = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n __contentKey,\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\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 style={getRootStyles(style)}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={\n mediaPosition === 'top'\n ? { ...getMediaStyles(mediaPosition, style), height: media?.height || '' }\n : { ...getMediaStyles(mediaPosition, style), width: media?.width || '' }\n }\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n key={__contentKey}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {/* We use a wrapper around the boundary to preserve container's paddings. */}\n <BuiltInErrorBoundary wrapper={content => <InternalBox padding=\"m\">{content}</InternalBox>}>\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 ref={headerMergedRef}\n style={{\n ...stickyStyles.style,\n ...getHeaderStyles(style),\n }}\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 style={getContentStyles(style)}\n >\n {/* We use a wrapper around the boundary to preserve paddings in case they were disabled by the consumer.\n That is needed because the consumer-defined paddings that normally come with the content can no longer\n apply since the content failed to render. */}\n <BuiltInErrorBoundary\n wrapper={content => (\n <InternalBox padding={disableContentPaddings ? 'm' : undefined}>{content}</InternalBox>\n )}\n >\n {children}\n </BuiltInErrorBoundary>\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 style={getFooterStyles(style)}\n >\n {footer}\n </div>\n )}\n </BuiltInErrorBoundary>\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;AAEtC,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW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AClB,oBAAC,WAAW,IAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,IAAG,OAAO,CAAe,CACxF,IAEA,QAAQ,CACY,CACnB,CACF;gBACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;wBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;wBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,qBAAqB;qBAClD,CAAC,EACF,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,IAE5B,MAAM,CACH,CACP,CACoB,CACnB,CACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsLabelAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalBox from '../box/internal';\nimport { BuiltInErrorBoundary } from '../error-boundary/internal';\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 { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { scrollElementIntoView } from '../internal/utils/scrollable-containers';\nimport { ContainerProps } from './interfaces';\nimport { getContentStyles, getFooterStyles, getHeaderStyles, getMediaStyles, getRootStyles } from './style';\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 disableFooterPaddings?: boolean;\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: 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 /**\n * React key attached to the content wrapper. It is used to force content re-mount but not container re-mount, which\n * is necessary for components that use container as a root node internally so that their test-utils wrapper is not detached.\n */\n __contentKey?: string;\n}\n\nexport const InternalContainerAsSubstep = React.forwardRef(\n (props: InternalContainerProps, ref: React.Ref<ContainerProps.Ref>) => {\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n const modalContext = useModalContext();\n\n return (\n <InternalContainer\n {...props}\n ref={ref}\n __subStepRef={modalContext?.isInModal ? { current: null } : subStepRef}\n __funnelSubStepProps={modalContext?.isInModal ? {} : funnelSubStepProps}\n />\n );\n }\n);\n\nconst InternalContainer = React.forwardRef(function InternalContainer(\n {\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n disableFooterPaddings = false,\n fitHeight,\n media,\n style,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef,\n __disableFooterDivider = false,\n __hiddenContent = false,\n __headerRef,\n __fullPage = false,\n __disableStickyMobile = true,\n __funnelSubStepProps,\n __subStepRef,\n __contentKey,\n ...restProps\n }: InternalContainerProps,\n ref: React.Ref<ContainerProps.Ref>\n) {\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\n const [showFocusRing, setShowFocusRing] = useState(false);\n useImperativeHandle(ref, () => ({\n focus: () => {\n if (rootRef.current) {\n rootRef.current.tabIndex = -1;\n rootRef.current.setAttribute('role', 'group');\n if (header) {\n rootRef.current.setAttribute('aria-labelledby', headerId);\n }\n setShowFocusRing(true);\n // focus()'s implicit scroll is a no-op when the container is already focused (repeated jump).\n rootRef.current.focus({ preventScroll: true });\n scrollElementIntoView(rootRef.current);\n }\n },\n }));\n const onRootBlur = (event: React.FocusEvent<HTMLDivElement>) => {\n const funnelOnBlur = __funnelSubStepProps?.onBlur as React.FocusEventHandler<HTMLDivElement> | undefined;\n funnelOnBlur?.(event);\n if (event.target === rootRef.current) {\n rootRef.current.removeAttribute('tabindex');\n rootRef.current.removeAttribute('role');\n rootRef.current.removeAttribute('aria-labelledby');\n setShowFocusRing(false);\n }\n };\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 const headerId = useUniqueId('container-header-');\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\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 showFocusRing && styles['focus-ring'],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n onBlur={onRootBlur}\n {...getAnalyticsLabelAttribute(\n `.${analyticsSelectors.header} h1, .${analyticsSelectors.header} h2, .${analyticsSelectors.header} h3`\n )}\n style={getRootStyles(style)}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={\n mediaPosition === 'top'\n ? { ...getMediaStyles(mediaPosition, style), height: media?.height || '' }\n : { ...getMediaStyles(mediaPosition, style), width: media?.width || '' }\n }\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n key={__contentKey}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {/* We use a wrapper around the boundary to preserve container's paddings. */}\n <BuiltInErrorBoundary wrapper={content => <InternalBox padding=\"m\">{content}</InternalBox>}>\n {header && (\n <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck, isStuckAtBottom }}>\n <div\n id={headerId}\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 ref={headerMergedRef}\n style={{\n ...stickyStyles.style,\n ...getHeaderStyles(style),\n }}\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 style={getContentStyles(style)}\n >\n {/* We use a wrapper around the boundary to preserve paddings in case they were disabled by the consumer.\n That is needed because the consumer-defined paddings that normally come with the content can no longer\n apply since the content failed to render. */}\n <BuiltInErrorBoundary\n wrapper={content => (\n <InternalBox padding={disableContentPaddings ? 'm' : undefined}>{content}</InternalBox>\n )}\n >\n {children}\n </BuiltInErrorBoundary>\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 style={getFooterStyles(style)}\n >\n {footer}\n </div>\n )}\n </BuiltInErrorBoundary>\n </div>\n </div>\n );\n});\n\nexport default InternalContainer;\n"]}
|
|
@@ -1,38 +1,39 @@
|
|
|
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-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-
|
|
12
|
-
"
|
|
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
|
-
"
|
|
4
|
+
"root": "awsui_root_14iqq_w40we_13",
|
|
5
|
+
"fit-height": "awsui_fit-height_14iqq_w40we_46",
|
|
6
|
+
"with-side-media": "awsui_with-side-media_14iqq_w40we_51",
|
|
7
|
+
"variant-default": "awsui_variant-default_14iqq_w40we_54",
|
|
8
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_w40we_54",
|
|
9
|
+
"refresh": "awsui_refresh_14iqq_w40we_63",
|
|
10
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_w40we_113",
|
|
11
|
+
"with-stuck-sticky-header-at-bottom": "awsui_with-stuck-sticky-header-at-bottom_14iqq_w40we_119",
|
|
12
|
+
"focus-ring": "awsui_focus-ring_14iqq_w40we_126",
|
|
13
|
+
"with-top-media": "awsui_with-top-media_14iqq_w40we_150",
|
|
14
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_w40we_155",
|
|
15
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_w40we_160",
|
|
16
|
+
"media": "awsui_media_14iqq_w40we_167",
|
|
17
|
+
"media-top": "awsui_media-top_14iqq_w40we_185",
|
|
18
|
+
"media-side": "awsui_media-side_14iqq_w40we_190",
|
|
19
|
+
"header": "awsui_header_14iqq_w40we_196",
|
|
20
|
+
"header-full-page": "awsui_header-full-page_14iqq_w40we_201",
|
|
21
|
+
"header-variant-embedded": "awsui_header-variant-embedded_14iqq_w40we_204",
|
|
22
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_w40we_204",
|
|
23
|
+
"header-with-media": "awsui_header-with-media_14iqq_w40we_207",
|
|
24
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_w40we_213",
|
|
25
|
+
"header-stuck": "awsui_header-stuck_14iqq_w40we_223",
|
|
26
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_w40we_233",
|
|
27
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_w40we_236",
|
|
28
|
+
"with-paddings": "awsui_with-paddings_14iqq_w40we_242",
|
|
29
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_w40we_251",
|
|
30
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_w40we_309",
|
|
31
|
+
"header-cover": "awsui_header-cover_14iqq_w40we_312",
|
|
32
|
+
"content": "awsui_content_14iqq_w40we_155",
|
|
33
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_w40we_340",
|
|
34
|
+
"content-inner": "awsui_content-inner_14iqq_w40we_346",
|
|
35
|
+
"with-header": "awsui_with-header_14iqq_w40we_353",
|
|
36
|
+
"footer": "awsui_footer_14iqq_w40we_357",
|
|
37
|
+
"with-divider": "awsui_with-divider_14iqq_w40we_361"
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -10,7 +10,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
10
10
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
11
|
SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
*/
|
|
13
|
-
.
|
|
13
|
+
.awsui_root_14iqq_w40we_13:not(#\9) {
|
|
14
14
|
border-collapse: separate;
|
|
15
15
|
border-spacing: 0;
|
|
16
16
|
box-sizing: border-box;
|
|
@@ -43,15 +43,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
43
43
|
word-wrap: break-word;
|
|
44
44
|
position: relative;
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.awsui_root_14iqq_w40we_13.awsui_fit-height_14iqq_w40we_46:not(#\9) {
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
block-size: 100%;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.awsui_root_14iqq_w40we_13.awsui_fit-height_14iqq_w40we_46.awsui_with-side-media_14iqq_w40we_51:not(#\9) {
|
|
52
52
|
flex-direction: row;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-default_14iqq_w40we_54:not(#\9), .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9) {
|
|
55
55
|
background-color: var(--color-background-container-content-mjfil9, #ffffff);
|
|
56
56
|
--awsui-inline-label-background-color-66120l: var(--color-background-container-content-mjfil9, #ffffff);
|
|
57
57
|
border-start-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
@@ -60,11 +60,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
60
60
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
61
61
|
box-sizing: border-box;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-default_14iqq_w40we_54.awsui_refresh_14iqq_w40we_63:not(#\9), .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54.awsui_refresh_14iqq_w40we_63:not(#\9) {
|
|
64
64
|
border-block: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #eaeded);
|
|
65
65
|
border-inline: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #eaeded);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-default_14iqq_w40we_54:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::before, .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::before {
|
|
68
68
|
content: "";
|
|
69
69
|
position: absolute;
|
|
70
70
|
inset-inline-start: 0px;
|
|
@@ -82,7 +82,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
82
82
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
83
83
|
z-index: 1;
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-default_14iqq_w40we_54:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::after, .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::after {
|
|
86
86
|
content: "";
|
|
87
87
|
position: absolute;
|
|
88
88
|
inset-inline-start: 0px;
|
|
@@ -98,151 +98,172 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
98
98
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
99
99
|
box-shadow: var(--shadow-container-quglkl, 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));
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(:last-child), .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(:last-child)::before, .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(:last-child)::after {
|
|
102
102
|
border-end-end-radius: 0;
|
|
103
103
|
border-end-start-radius: 0;
|
|
104
104
|
border-block-end-width: 0;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54 + .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9), .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54 + .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9)::before, .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54 + .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9)::after {
|
|
107
107
|
border-start-start-radius: 0;
|
|
108
108
|
border-start-end-radius: 0;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54 + .awsui_root_14iqq_w40we_13.awsui_variant-stacked_14iqq_w40we_54:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::before {
|
|
111
111
|
border-block-start: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-divider-default-diwd4w, #eaeded);
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
.awsui_root_14iqq_w40we_13.awsui_sticky-enabled_14iqq_w40we_113:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::before {
|
|
114
114
|
inset-block-start: calc(-1 * var(--border-container-top-width-6p1io9, 1px));
|
|
115
115
|
}
|
|
116
|
-
.
|
|
116
|
+
.awsui_root_14iqq_w40we_13.awsui_sticky-enabled_14iqq_w40we_113:not(#\9):not(.awsui_refresh_14iqq_w40we_63).awsui_variant-stacked_14iqq_w40we_54::before {
|
|
117
117
|
inset-block-start: calc(-1 * var(--border-divider-section-width-dlkb8v, 1px));
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.awsui_root_14iqq_w40we_13.awsui_with-stuck-sticky-header-at-bottom_14iqq_w40we_119:not(#\9) {
|
|
120
120
|
border-end-end-radius: 0;
|
|
121
121
|
border-end-start-radius: 0;
|
|
122
122
|
}
|
|
123
|
+
.awsui_root_14iqq_w40we_13:not(#\9):focus {
|
|
124
|
+
outline: none;
|
|
125
|
+
}
|
|
126
|
+
.awsui_root_14iqq_w40we_13.awsui_focus-ring_14iqq_w40we_126:not(#\9):focus::after {
|
|
127
|
+
content: "";
|
|
128
|
+
position: absolute;
|
|
129
|
+
inset-inline-start: 0px;
|
|
130
|
+
inset-block-start: 0px;
|
|
131
|
+
inline-size: 100%;
|
|
132
|
+
block-size: 100%;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
background: transparent;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
outline: 2px dotted transparent;
|
|
137
|
+
outline-offset: 2px;
|
|
138
|
+
border-start-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
139
|
+
border-start-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
140
|
+
border-end-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
141
|
+
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
142
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-sewkzn, #0073bb);
|
|
143
|
+
}
|
|
123
144
|
|
|
124
|
-
.awsui_with-side-
|
|
145
|
+
.awsui_with-side-media_14iqq_w40we_51:not(#\9) {
|
|
125
146
|
display: flex;
|
|
126
147
|
flex-direction: row;
|
|
127
148
|
}
|
|
128
149
|
|
|
129
|
-
.awsui_with-top-
|
|
150
|
+
.awsui_with-top-media_14iqq_w40we_150:not(#\9) {
|
|
130
151
|
display: flex;
|
|
131
152
|
flex-direction: column;
|
|
132
153
|
}
|
|
133
154
|
|
|
134
|
-
.awsui_content-
|
|
155
|
+
.awsui_content-wrapper_14iqq_w40we_155:not(#\9) {
|
|
135
156
|
display: flex;
|
|
136
157
|
flex-direction: column;
|
|
137
158
|
inline-size: 100%;
|
|
138
159
|
}
|
|
139
|
-
.awsui_content-wrapper-fit-
|
|
160
|
+
.awsui_content-wrapper-fit-height_14iqq_w40we_160:not(#\9) {
|
|
140
161
|
block-size: 100%;
|
|
141
162
|
overflow: hidden;
|
|
142
163
|
border-end-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
143
164
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
144
165
|
}
|
|
145
166
|
|
|
146
|
-
.
|
|
167
|
+
.awsui_media_14iqq_w40we_167:not(#\9) {
|
|
147
168
|
overflow: hidden;
|
|
148
169
|
flex-shrink: 0;
|
|
149
170
|
}
|
|
150
|
-
.
|
|
151
|
-
.
|
|
152
|
-
.
|
|
171
|
+
.awsui_media_14iqq_w40we_167 img:not(#\9),
|
|
172
|
+
.awsui_media_14iqq_w40we_167 video:not(#\9),
|
|
173
|
+
.awsui_media_14iqq_w40we_167 picture:not(#\9) {
|
|
153
174
|
inline-size: 100%;
|
|
154
175
|
block-size: 100%;
|
|
155
176
|
object-fit: cover;
|
|
156
177
|
object-position: center;
|
|
157
178
|
}
|
|
158
|
-
.
|
|
179
|
+
.awsui_media_14iqq_w40we_167 iframe:not(#\9) {
|
|
159
180
|
inline-size: 100%;
|
|
160
181
|
block-size: 100%;
|
|
161
182
|
border-block: 0;
|
|
162
183
|
border-inline: 0;
|
|
163
184
|
}
|
|
164
|
-
.awsui_media-
|
|
185
|
+
.awsui_media-top_14iqq_w40we_185:not(#\9) {
|
|
165
186
|
max-block-size: 66%;
|
|
166
187
|
border-start-start-radius: calc(var(--border-radius-container-33hhdh, 0px) - 1px);
|
|
167
188
|
border-start-end-radius: calc(var(--border-radius-container-33hhdh, 0px) - 1px);
|
|
168
189
|
}
|
|
169
|
-
.awsui_media-
|
|
190
|
+
.awsui_media-side_14iqq_w40we_190:not(#\9) {
|
|
170
191
|
max-inline-size: 66%;
|
|
171
192
|
border-start-start-radius: calc(var(--border-radius-container-33hhdh, 0px) - 1px);
|
|
172
193
|
border-end-start-radius: calc(var(--border-radius-container-33hhdh, 0px) - 1px);
|
|
173
194
|
}
|
|
174
195
|
|
|
175
|
-
.
|
|
196
|
+
.awsui_header_14iqq_w40we_196:not(#\9) {
|
|
176
197
|
background-color: var(--color-background-container-header-irktp5, #fafafa);
|
|
177
198
|
border-start-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
178
199
|
border-start-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
179
200
|
}
|
|
180
|
-
.
|
|
201
|
+
.awsui_header_14iqq_w40we_196.awsui_header-full-page_14iqq_w40we_201:not(#\9) {
|
|
181
202
|
background-color: var(--color-background-layout-main-y4565g, #f2f3f3);
|
|
182
203
|
}
|
|
183
|
-
.awsui_header-variant-
|
|
204
|
+
.awsui_header-variant-embedded_14iqq_w40we_204.awsui_refresh_14iqq_w40we_63:not(#\9):not(.awsui_header-sticky-enabled_14iqq_w40we_204) {
|
|
184
205
|
background-color: transparent;
|
|
185
206
|
}
|
|
186
|
-
.
|
|
207
|
+
.awsui_header_14iqq_w40we_196.awsui_header-with-media_14iqq_w40we_207:not(#\9) {
|
|
187
208
|
background: none;
|
|
188
209
|
}
|
|
189
|
-
.
|
|
210
|
+
.awsui_header_14iqq_w40we_196.awsui_header-with-media_14iqq_w40we_207:not(#\9):not(:empty) {
|
|
190
211
|
border-block-end: none;
|
|
191
212
|
}
|
|
192
|
-
.awsui_header-sticky-
|
|
213
|
+
.awsui_header-sticky-disabled_14iqq_w40we_213:not(#\9) {
|
|
193
214
|
position: relative;
|
|
194
215
|
z-index: 1;
|
|
195
216
|
}
|
|
196
|
-
.awsui_header-sticky-
|
|
217
|
+
.awsui_header-sticky-enabled_14iqq_w40we_204:not(#\9) {
|
|
197
218
|
inset-block-start: 0;
|
|
198
219
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
199
220
|
position: sticky;
|
|
200
221
|
z-index: 800;
|
|
201
222
|
}
|
|
202
|
-
.awsui_header-
|
|
223
|
+
.awsui_header-stuck_14iqq_w40we_223:not(#\9) {
|
|
203
224
|
border-start-start-radius: 0;
|
|
204
225
|
border-start-end-radius: 0;
|
|
205
226
|
border-end-start-radius: 0;
|
|
206
227
|
border-end-end-radius: 0;
|
|
207
228
|
}
|
|
208
|
-
.awsui_header-
|
|
229
|
+
.awsui_header-stuck_14iqq_w40we_223:not(#\9)::before {
|
|
209
230
|
border-block: 0;
|
|
210
231
|
border-inline: 0;
|
|
211
232
|
}
|
|
212
|
-
.awsui_header-
|
|
233
|
+
.awsui_header-stuck_14iqq_w40we_223:not(#\9):not(.awsui_header-variant-cards_14iqq_w40we_233) {
|
|
213
234
|
box-shadow: var(--shadow-sticky-embedded-5m1s1m, 0px 1px 4px -2px rgba(0, 28, 36, 0.5));
|
|
214
235
|
}
|
|
215
|
-
.awsui_header-dynamic-
|
|
236
|
+
.awsui_header-dynamic-height_14iqq_w40we_236.awsui_header-stuck_14iqq_w40we_223:not(#\9) {
|
|
216
237
|
margin-block-end: calc(var(--line-height-heading-xl-pi61pg, 36px) - var(--line-height-heading-l-zmt48b, 22px));
|
|
217
238
|
}
|
|
218
|
-
.
|
|
239
|
+
.awsui_header_14iqq_w40we_196:not(#\9):not(:empty) {
|
|
219
240
|
border-block-end: var(--border-container-sticky-width-ns9pe4, 1px) solid var(--color-border-container-divider-rkhoab, #eaeded);
|
|
220
241
|
}
|
|
221
|
-
.
|
|
242
|
+
.awsui_header_14iqq_w40we_196.awsui_with-paddings_14iqq_w40we_242:not(#\9) {
|
|
222
243
|
padding-block-start: var(--space-container-header-top-3txhx4, 12px);
|
|
223
244
|
padding-block-end: var(--space-container-header-bottom-9elagw, 12px);
|
|
224
245
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
225
246
|
}
|
|
226
|
-
.
|
|
247
|
+
.awsui_header_14iqq_w40we_196.awsui_with-paddings_14iqq_w40we_242.awsui_header-variant-cards_14iqq_w40we_233:not(#\9) {
|
|
227
248
|
padding-block: var(--space-container-header-top-3txhx4, 12px);
|
|
228
249
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
229
250
|
}
|
|
230
|
-
.
|
|
251
|
+
.awsui_header_14iqq_w40we_196.awsui_with-hidden-content_14iqq_w40we_251:not(#\9) {
|
|
231
252
|
border-end-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
232
253
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
233
254
|
}
|
|
234
|
-
.awsui_header-variant-
|
|
255
|
+
.awsui_header-variant-cards_14iqq_w40we_233:not(#\9) {
|
|
235
256
|
border-start-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
236
257
|
border-start-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
237
258
|
border-end-start-radius: var(--border-radius-container-33hhdh, 0px);
|
|
238
259
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
239
260
|
box-sizing: border-box;
|
|
240
261
|
}
|
|
241
|
-
.awsui_header-variant-
|
|
262
|
+
.awsui_header-variant-cards_14iqq_w40we_233.awsui_refresh_14iqq_w40we_63:not(#\9) {
|
|
242
263
|
border-block: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #eaeded);
|
|
243
264
|
border-inline: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #eaeded);
|
|
244
265
|
}
|
|
245
|
-
.awsui_header-variant-
|
|
266
|
+
.awsui_header-variant-cards_14iqq_w40we_233:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::before {
|
|
246
267
|
content: "";
|
|
247
268
|
position: absolute;
|
|
248
269
|
inset-inline-start: 0px;
|
|
@@ -260,7 +281,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
260
281
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
261
282
|
z-index: 1;
|
|
262
283
|
}
|
|
263
|
-
.awsui_header-variant-
|
|
284
|
+
.awsui_header-variant-cards_14iqq_w40we_233:not(#\9):not(.awsui_refresh_14iqq_w40we_63)::after {
|
|
264
285
|
content: "";
|
|
265
286
|
position: absolute;
|
|
266
287
|
inset-inline-start: 0px;
|
|
@@ -276,26 +297,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
276
297
|
border-end-end-radius: var(--border-radius-container-33hhdh, 0px);
|
|
277
298
|
box-shadow: var(--shadow-container-quglkl, 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));
|
|
278
299
|
}
|
|
279
|
-
.awsui_header-variant-
|
|
300
|
+
.awsui_header-variant-cards_14iqq_w40we_233:not(#\9):not(.awsui_header-sticky-enabled_14iqq_w40we_204) {
|
|
280
301
|
position: relative;
|
|
281
302
|
}
|
|
282
|
-
.awsui_header-variant-
|
|
303
|
+
.awsui_header-variant-cards_14iqq_w40we_233.awsui_header-stuck_14iqq_w40we_223:not(#\9)::after, .awsui_header-variant-cards_14iqq_w40we_233.awsui_header-stuck_14iqq_w40we_223:not(#\9)::before {
|
|
283
304
|
border-block: 0;
|
|
284
305
|
border-inline: 0;
|
|
285
306
|
border-start-start-radius: 0;
|
|
286
307
|
border-start-end-radius: 0;
|
|
287
308
|
}
|
|
288
|
-
.awsui_header-variant-full-
|
|
309
|
+
.awsui_header-variant-full-page_14iqq_w40we_309.awsui_header-stuck_14iqq_w40we_223:not(#\9) {
|
|
289
310
|
box-shadow: none;
|
|
290
311
|
}
|
|
291
|
-
.awsui_header-variant-full-
|
|
312
|
+
.awsui_header-variant-full-page_14iqq_w40we_309.awsui_header-stuck_14iqq_w40we_223 > .awsui_header-cover_14iqq_w40we_312:not(#\9) {
|
|
292
313
|
background-color: var(--color-background-layout-main-y4565g, #f2f3f3);
|
|
293
314
|
inline-size: 100%;
|
|
294
315
|
position: absolute;
|
|
295
316
|
block-size: var(--space-scaled-s-2crg2b, 12px);
|
|
296
317
|
inset-block-start: calc(-1 * var(--space-scaled-s-2crg2b, 12px));
|
|
297
318
|
}
|
|
298
|
-
.awsui_header-variant-full-
|
|
319
|
+
.awsui_header-variant-full-page_14iqq_w40we_309.awsui_header-stuck_14iqq_w40we_223:not(#\9)::before {
|
|
299
320
|
content: "";
|
|
300
321
|
position: absolute;
|
|
301
322
|
pointer-events: none;
|
|
@@ -305,7 +326,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
305
326
|
inset-block-start: 0;
|
|
306
327
|
border-block-end: solid var(--border-divider-section-width-dlkb8v, 1px) var(--color-border-divider-default-diwd4w, #eaeded);
|
|
307
328
|
}
|
|
308
|
-
.awsui_header-variant-full-
|
|
329
|
+
.awsui_header-variant-full-page_14iqq_w40we_309.awsui_header-stuck_14iqq_w40we_223:not(#\9)::after {
|
|
309
330
|
content: "";
|
|
310
331
|
position: absolute;
|
|
311
332
|
inset: 0;
|
|
@@ -313,30 +334,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
313
334
|
clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
|
|
314
335
|
}
|
|
315
336
|
|
|
316
|
-
.
|
|
337
|
+
.awsui_content_14iqq_w40we_155:not(#\9) {
|
|
317
338
|
flex: 1;
|
|
318
339
|
}
|
|
319
|
-
.awsui_content-fit-
|
|
340
|
+
.awsui_content-fit-height_14iqq_w40we_340:not(#\9) {
|
|
320
341
|
overflow: auto;
|
|
321
342
|
display: flex;
|
|
322
343
|
flex-direction: column;
|
|
323
344
|
}
|
|
324
345
|
|
|
325
|
-
.awsui_content-
|
|
346
|
+
.awsui_content-inner_14iqq_w40we_346:not(#\9) {
|
|
326
347
|
flex: 1;
|
|
327
348
|
}
|
|
328
|
-
.awsui_content-
|
|
349
|
+
.awsui_content-inner_14iqq_w40we_346.awsui_with-paddings_14iqq_w40we_242:not(#\9) {
|
|
329
350
|
padding-block: var(--space-scaled-l-33ruz6, 20px);
|
|
330
351
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
331
352
|
}
|
|
332
|
-
.awsui_content-
|
|
353
|
+
.awsui_content-inner_14iqq_w40we_346.awsui_with-paddings_14iqq_w40we_242.awsui_with-header_14iqq_w40we_353:not(#\9) {
|
|
333
354
|
padding-block-start: var(--space-container-content-top-ryubqz, 16px);
|
|
334
355
|
}
|
|
335
356
|
|
|
336
|
-
.
|
|
357
|
+
.awsui_footer_14iqq_w40we_357.awsui_with-paddings_14iqq_w40we_242:not(#\9) {
|
|
337
358
|
padding-block: var(--space-scaled-s-2crg2b, 12px);
|
|
338
359
|
padding-inline: var(--space-container-horizontal-quy5ai, 20px);
|
|
339
360
|
}
|
|
340
|
-
.
|
|
361
|
+
.awsui_footer_14iqq_w40we_357.awsui_with-divider_14iqq_w40we_361:not(#\9) {
|
|
341
362
|
border-block-start: var(--border-divider-section-width-dlkb8v, 1px) solid var(--color-border-divider-default-diwd4w, #eaeded);
|
|
342
363
|
}
|