@cloudscape-design/components 3.0.686 → 3.0.687

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/drawer/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnD,UAAU,kCAAkC;IAC1C,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,wBAAgB,6BAA6B,CAAC,EAAE,kBAAkB,EAAE,EAAE,kCAAkC,eA8FvG;AAED,eAAO,MAAM,+BAA+B,qGAA2D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/drawer/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnD,UAAU,kCAAkC;IAC1C,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,wBAAgB,6BAA6B,CAAC,EAAE,kBAAkB,EAAE,EAAE,kCAAkC,eAgGvG;AAED,eAAO,MAAM,+BAA+B,qGAA2D,CAAC"}
@@ -41,7 +41,8 @@ export function AppLayoutDrawerImplementation({ appLayoutInternals }) {
41
41
  blockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,
42
42
  insetBlockStart: placement.insetBlockStart,
43
43
  } },
44
- !isMobile && (activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.resizable) && (React.createElement(PanelResizeHandle, { ref: drawersFocusControl.refs.slider, position: "side", className: testutilStyles['drawers-slider'], ariaLabel: (_d = activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.ariaLabels) === null || _d === void 0 ? void 0 : _d.resizeHandle, ariaValuenow: resizeProps.relativeSize, onKeyDown: resizeProps.onKeyDown, onPointerDown: resizeProps.onPointerDown })),
44
+ !isMobile && (activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.resizable) && (React.createElement("div", { className: styles['drawer-slider'] },
45
+ React.createElement(PanelResizeHandle, { ref: drawersFocusControl.refs.slider, position: "side", className: testutilStyles['drawers-slider'], ariaLabel: (_d = activeDrawer === null || activeDrawer === void 0 ? void 0 : activeDrawer.ariaLabels) === null || _d === void 0 ? void 0 : _d.resizeHandle, ariaValuenow: resizeProps.relativeSize, onKeyDown: resizeProps.onKeyDown, onPointerDown: resizeProps.onPointerDown }))),
45
46
  React.createElement("div", { className: styles['drawer-content-container'] },
46
47
  React.createElement("div", { className: clsx(styles['drawer-close-button']) },
47
48
  React.createElement(InternalButton, { ariaLabel: computedAriaLabels.closeButton, className: clsx({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/drawer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,UAAU,6BAA6B,CAAC,EAAE,kBAAkB,EAAsC;;IACtG,MAAM,EACJ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,QAAQ,EACR,S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AW,EACzC,SAAS,EAAE,IAAI,CAAC;wBACd,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,aAAa,IAAI,cAAc;wBAChF,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa;qBAC/C,CAAC,EACF,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EACzC,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,EACnC,OAAO,EAAC,MAAM,GACd,CACE;YACL,YAAY,IAAI,CACf,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,gBAAgB,CAAC,EACxB,cAAc,KAAK,eAAe,IAAI,MAAM,CAAC,uBAAuB,CAAC,CACtE,IAEA,YAAY,CACT,CACP;YACA,cAAc,KAAK,eAAe,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,IAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,CAAO,CAC1G,CACA,CACT,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,yBAAyB,CAAC,6BAA6B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { InternalButton } from '../../../button/internal';\nimport styles from './styles.css.js';\nimport sharedStyles from '../../styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport { TOOLS_DRAWER_ID } from '../../utils/use-drawers';\nimport PanelResizeHandle from '../../../internal/components/panel-resize-handle';\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutInternals } from '../interfaces';\nimport { useResize } from './use-resize';\n\ninterface AppLayoutDrawerImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n}\n\nexport function AppLayoutDrawerImplementation({ appLayoutInternals }: AppLayoutDrawerImplementationProps) {\n const {\n activeDrawer,\n minDrawerSize,\n activeDrawerSize,\n maxDrawerSize,\n ariaLabels,\n drawers,\n drawersFocusControl,\n isMobile,\n placement,\n onActiveDrawerChange,\n onActiveDrawerResize,\n } = appLayoutInternals;\n const drawerRef = useRef<HTMLDivElement>(null);\n const activeDrawerId = activeDrawer?.id;\n\n const computedAriaLabels = {\n closeButton: activeDrawer ? activeDrawer.ariaLabels?.closeButton : ariaLabels?.toolsClose,\n content: activeDrawer ? activeDrawer.ariaLabels?.drawerName : ariaLabels?.tools,\n };\n\n const isToolsDrawer = activeDrawer?.id === TOOLS_DRAWER_ID;\n const toolsOnlyMode = drawers.length === 1 && drawers[0].id === TOOLS_DRAWER_ID;\n const toolsContent = drawers?.find(drawer => drawer.id === TOOLS_DRAWER_ID)?.content;\n const resizeProps = useResize({\n currentWidth: activeDrawerSize,\n minWidth: minDrawerSize,\n maxWidth: maxDrawerSize,\n panelRef: drawerRef,\n handleRef: drawersFocusControl.refs.slider,\n onResize: size => onActiveDrawerResize({ id: activeDrawerId!, size }),\n });\n\n return (\n <aside\n id={activeDrawerId}\n aria-hidden={!activeDrawer}\n aria-label={computedAriaLabels.content}\n className={clsx(styles.drawer, sharedStyles['with-motion'], {\n [testutilStyles['active-drawer']]: !toolsOnlyMode && activeDrawerId,\n [testutilStyles.tools]: isToolsDrawer,\n })}\n ref={drawerRef}\n onBlur={e => {\n if (!e.relatedTarget || !e.currentTarget.contains(e.relatedTarget)) {\n drawersFocusControl.loseFocus();\n }\n }}\n style={{\n blockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,\n insetBlockStart: placement.insetBlockStart,\n }}\n >\n {!isMobile && activeDrawer?.resizable && (\n <PanelResizeHandle\n ref={drawersFocusControl.refs.slider}\n position=\"side\"\n className={testutilStyles['drawers-slider']}\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n ariaValuenow={resizeProps.relativeSize}\n onKeyDown={resizeProps.onKeyDown}\n onPointerDown={resizeProps.onPointerDown}\n />\n )}\n <div className={styles['drawer-content-container']}>\n <div className={clsx(styles['drawer-close-button'])}>\n <InternalButton\n ariaLabel={computedAriaLabels.closeButton}\n className={clsx({\n [testutilStyles['active-drawer-close-button']]: !isToolsDrawer && activeDrawerId,\n [testutilStyles['tools-close']]: isToolsDrawer,\n })}\n formAction=\"none\"\n iconName={isMobile ? 'close' : 'angle-right'}\n onClick={() => onActiveDrawerChange(null)}\n ref={drawersFocusControl.refs.close}\n variant=\"icon\"\n />\n </div>\n {toolsContent && (\n <div\n className={clsx(\n styles['drawer-content'],\n activeDrawerId !== TOOLS_DRAWER_ID && styles['drawer-content-hidden']\n )}\n >\n {toolsContent}\n </div>\n )}\n {activeDrawerId !== TOOLS_DRAWER_ID && <div className={styles['drawer-content']}>{activeDrawer?.content}</div>}\n </div>\n </aside>\n );\n}\n\nexport const createWidgetizedAppLayoutDrawer = createWidgetizedComponent(AppLayoutDrawerImplementation);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/drawer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,SA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AS,EAAE,WAAW,CAAC,SAAS,EAChC,aAAa,EAAE,WAAW,CAAC,aAAa,GACxC,CACE,CACP;QACD,6BAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC;YAChD,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBACjD,oBAAC,cAAc,IACb,SAAS,EAAE,kBAAkB,CAAC,WAAW,EACzC,SAAS,EAAE,IAAI,CAAC;wBACd,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,aAAa,IAAI,cAAc;wBAChF,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa;qBAC/C,CAAC,EACF,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,EACzC,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,EACnC,OAAO,EAAC,MAAM,GACd,CACE;YACL,YAAY,IAAI,CACf,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,gBAAgB,CAAC,EACxB,cAAc,KAAK,eAAe,IAAI,MAAM,CAAC,uBAAuB,CAAC,CACtE,IAEA,YAAY,CACT,CACP;YACA,cAAc,KAAK,eAAe,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,IAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,CAAO,CAC1G,CACA,CACT,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,yBAAyB,CAAC,6BAA6B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { InternalButton } from '../../../button/internal';\nimport styles from './styles.css.js';\nimport sharedStyles from '../../styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport { TOOLS_DRAWER_ID } from '../../utils/use-drawers';\nimport PanelResizeHandle from '../../../internal/components/panel-resize-handle';\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutInternals } from '../interfaces';\nimport { useResize } from './use-resize';\n\ninterface AppLayoutDrawerImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n}\n\nexport function AppLayoutDrawerImplementation({ appLayoutInternals }: AppLayoutDrawerImplementationProps) {\n const {\n activeDrawer,\n minDrawerSize,\n activeDrawerSize,\n maxDrawerSize,\n ariaLabels,\n drawers,\n drawersFocusControl,\n isMobile,\n placement,\n onActiveDrawerChange,\n onActiveDrawerResize,\n } = appLayoutInternals;\n const drawerRef = useRef<HTMLDivElement>(null);\n const activeDrawerId = activeDrawer?.id;\n\n const computedAriaLabels = {\n closeButton: activeDrawer ? activeDrawer.ariaLabels?.closeButton : ariaLabels?.toolsClose,\n content: activeDrawer ? activeDrawer.ariaLabels?.drawerName : ariaLabels?.tools,\n };\n\n const isToolsDrawer = activeDrawer?.id === TOOLS_DRAWER_ID;\n const toolsOnlyMode = drawers.length === 1 && drawers[0].id === TOOLS_DRAWER_ID;\n const toolsContent = drawers?.find(drawer => drawer.id === TOOLS_DRAWER_ID)?.content;\n const resizeProps = useResize({\n currentWidth: activeDrawerSize,\n minWidth: minDrawerSize,\n maxWidth: maxDrawerSize,\n panelRef: drawerRef,\n handleRef: drawersFocusControl.refs.slider,\n onResize: size => onActiveDrawerResize({ id: activeDrawerId!, size }),\n });\n\n return (\n <aside\n id={activeDrawerId}\n aria-hidden={!activeDrawer}\n aria-label={computedAriaLabels.content}\n className={clsx(styles.drawer, sharedStyles['with-motion'], {\n [testutilStyles['active-drawer']]: !toolsOnlyMode && activeDrawerId,\n [testutilStyles.tools]: isToolsDrawer,\n })}\n ref={drawerRef}\n onBlur={e => {\n if (!e.relatedTarget || !e.currentTarget.contains(e.relatedTarget)) {\n drawersFocusControl.loseFocus();\n }\n }}\n style={{\n blockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,\n insetBlockStart: placement.insetBlockStart,\n }}\n >\n {!isMobile && activeDrawer?.resizable && (\n <div className={styles['drawer-slider']}>\n <PanelResizeHandle\n ref={drawersFocusControl.refs.slider}\n position=\"side\"\n className={testutilStyles['drawers-slider']}\n ariaLabel={activeDrawer?.ariaLabels?.resizeHandle}\n ariaValuenow={resizeProps.relativeSize}\n onKeyDown={resizeProps.onKeyDown}\n onPointerDown={resizeProps.onPointerDown}\n />\n </div>\n )}\n <div className={styles['drawer-content-container']}>\n <div className={clsx(styles['drawer-close-button'])}>\n <InternalButton\n ariaLabel={computedAriaLabels.closeButton}\n className={clsx({\n [testutilStyles['active-drawer-close-button']]: !isToolsDrawer && activeDrawerId,\n [testutilStyles['tools-close']]: isToolsDrawer,\n })}\n formAction=\"none\"\n iconName={isMobile ? 'close' : 'angle-right'}\n onClick={() => onActiveDrawerChange(null)}\n ref={drawersFocusControl.refs.close}\n variant=\"icon\"\n />\n </div>\n {toolsContent && (\n <div\n className={clsx(\n styles['drawer-content'],\n activeDrawerId !== TOOLS_DRAWER_ID && styles['drawer-content-hidden']\n )}\n >\n {toolsContent}\n </div>\n )}\n {activeDrawerId !== TOOLS_DRAWER_ID && <div className={styles['drawer-content']}>{activeDrawer?.content}</div>}\n </div>\n </aside>\n );\n}\n\nexport const createWidgetizedAppLayoutDrawer = createWidgetizedComponent(AppLayoutDrawerImplementation);\n"]}
@@ -14,7 +14,7 @@ export function AppLayoutToolbarImplementation({ appLayoutInternals }) {
14
14
  var _a, _b;
15
15
  const { ariaLabels, breadcrumbs, discoveredBreadcrumbs, activeDrawer, drawers, drawersFocusControl, setToolbarHeight, verticalOffsets, onNavigationToggle, isMobile, toolbarState, setToolbarState, navigationOpen, navigation, navigationFocusControl, splitPanelControlId, splitPanelPosition, splitPanelToggleConfig, splitPanelFocusControl, onSplitPanelToggle, splitPanelOpen, onActiveDrawerChange, } = appLayoutInternals;
16
16
  // TODO: expose configuration property
17
- const pinnedToolbar = false;
17
+ const pinnedToolbar = true;
18
18
  const ref = useRef(null);
19
19
  useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));
20
20
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAM7E,MAAM,UAAU,8BAA8B,CAAC,EAAE,kBAAkB,EAAuC;;IACxG,MAAM,EACJ,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,GACrB,GAAG,kBAAkB,CAAC;IACvB,sCAAsC;IACtC,MAAM,aAAa,GAAG,KAAK,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,WAAW,CAAC;gBACtF,WAAW;gBACX,qBAAqB,IAAI,oBAAC,uBAAuB,oBAAK,qBAAqB,EAAI,CAC5E,CACP;YACA,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,sBAAsB,CAAC,SAAS,CAAC,IAAI,CAC3D,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;gBACxD,oBAAC,cAAc,IACb,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,EAAE,mCAAI,IAAI,EACxC,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAChD,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EACnB,sBAAsB,CAAC,SAAS;wBAC9B,CAAC,iCACM,sBAAsB,KACzB,SAAS,EAAE,mBAAmB,EAC9B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,kBAAkB,IAEhC,CAAC,CAAC,SAAS,EAEf,kBAAkB,EAAE,sBAAsB,CAAC,IAAI,CAAC,MAAM,EACtD,kBAAkB,EAAE,kBAAkB,GACtC,CACG,CACR,CACG,CACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,8BAA8B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport { DrawerTriggers } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\nimport { ToolbarSlot } from '../skeleton/slot-wrappers';\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutInternals } from '../interfaces';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\nimport { InternalBreadcrumbGroup } from '../../../breadcrumb-group/internal';\n\ninterface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n}\n\nexport function AppLayoutToolbarImplementation({ appLayoutInternals }: AppLayoutToolbarImplementationProps) {\n const {\n ariaLabels,\n breadcrumbs,\n discoveredBreadcrumbs,\n activeDrawer,\n drawers,\n drawersFocusControl,\n setToolbarHeight,\n verticalOffsets,\n onNavigationToggle,\n isMobile,\n toolbarState,\n setToolbarState,\n navigationOpen,\n navigation,\n navigationFocusControl,\n splitPanelControlId,\n splitPanelPosition,\n splitPanelToggleConfig,\n splitPanelFocusControl,\n onSplitPanelToggle,\n splitPanelOpen,\n onActiveDrawerChange,\n } = appLayoutInternals;\n // TODO: expose configuration property\n const pinnedToolbar = false;\n const ref = useRef<HTMLElement>(null);\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n let lastScrollY = window.scrollY;\n\n /* istanbul ignore next not testable in JSDOM */\n const updateScrollDirection = () => {\n if (pinnedToolbar) {\n setToolbarState('show');\n return;\n }\n const scrollY = window.scrollY;\n // 80 is an arbitrary number to have a pause before the toolbar scrolls out of view at the top of the page\n const direction = scrollY > lastScrollY && scrollY > 80 ? 'hide' : 'show';\n // 2 as a buffer to avoid mistaking minor accidental mouse moves as scroll\n if (direction !== toolbarState && (scrollY - lastScrollY > 2 || scrollY - lastScrollY < -2)) {\n setToolbarState(direction);\n }\n lastScrollY = scrollY > 0 ? scrollY : 0;\n };\n\n window.addEventListener('scroll', updateScrollDirection);\n return () => {\n window.removeEventListener('scroll', updateScrollDirection);\n };\n }, [pinnedToolbar, setToolbarState, toolbarState]);\n\n const toolbarHidden = toolbarState === 'hide' && !pinnedToolbar;\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx(styles['universal-toolbar'], {\n [testutilStyles['mobile-bar']]: isMobile,\n [styles['toolbar-hidden']]: toolbarHidden,\n })}\n style={{\n insetBlockStart: toolbarHidden ? '-60px' : verticalOffsets.toolbar,\n }}\n >\n <div className={styles['toolbar-container']}>\n {navigation && !navigationOpen && (\n <nav\n aria-hidden={navigationOpen}\n className={clsx(styles['universal-toolbar-nav'], { [testutilStyles['drawer-closed']]: !navigationOpen })}\n >\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={navigationOpen ? undefined : false}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => onNavigationToggle(!navigationOpen)}\n ref={navigationFocusControl.refs.toggle}\n selected={navigationOpen}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <div className={clsx(styles['universal-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>\n {breadcrumbs}\n {discoveredBreadcrumbs && <InternalBreadcrumbGroup {...discoveredBreadcrumbs} />}\n </div>\n )}\n {(drawers.length > 0 || splitPanelToggleConfig.displayed) && (\n <span className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawer?.id ?? null}\n drawers={drawers}\n drawersFocusRef={drawersFocusControl.refs.toggle}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={\n splitPanelToggleConfig.displayed\n ? {\n ...splitPanelToggleConfig,\n controlId: splitPanelControlId,\n active: splitPanelOpen,\n position: splitPanelPosition,\n }\n : undefined\n }\n splitPanelFocusRef={splitPanelFocusControl.refs.toggle}\n onSplitPanelToggle={onSplitPanelToggle}\n />\n </span>\n )}\n </div>\n </ToolbarSlot>\n );\n}\n\nexport const createWidgetizedAppLayoutToolbar = createWidgetizedComponent(AppLayoutToolbarImplementation);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;A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,YAAY,uBAAZ,YAAY,CAAE,EAAE,mCAAI,IAAI,EACxC,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAChD,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EACnB,sBAAsB,CAAC,SAAS;wBAC9B,CAAC,iCACM,sBAAsB,KACzB,SAAS,EAAE,mBAAmB,EAC9B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,kBAAkB,IAEhC,CAAC,CAAC,SAAS,EAEf,kBAAkB,EAAE,sBAAsB,CAAC,IAAI,CAAC,MAAM,EACtD,kBAAkB,EAAE,kBAAkB,GACtC,CACG,CACR,CACG,CACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,8BAA8B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport { DrawerTriggers } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\nimport { ToolbarSlot } from '../skeleton/slot-wrappers';\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutInternals } from '../interfaces';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\nimport { InternalBreadcrumbGroup } from '../../../breadcrumb-group/internal';\n\ninterface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n}\n\nexport function AppLayoutToolbarImplementation({ appLayoutInternals }: AppLayoutToolbarImplementationProps) {\n const {\n ariaLabels,\n breadcrumbs,\n discoveredBreadcrumbs,\n activeDrawer,\n drawers,\n drawersFocusControl,\n setToolbarHeight,\n verticalOffsets,\n onNavigationToggle,\n isMobile,\n toolbarState,\n setToolbarState,\n navigationOpen,\n navigation,\n navigationFocusControl,\n splitPanelControlId,\n splitPanelPosition,\n splitPanelToggleConfig,\n splitPanelFocusControl,\n onSplitPanelToggle,\n splitPanelOpen,\n onActiveDrawerChange,\n } = appLayoutInternals;\n // TODO: expose configuration property\n const pinnedToolbar = true;\n const ref = useRef<HTMLElement>(null);\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n let lastScrollY = window.scrollY;\n\n /* istanbul ignore next not testable in JSDOM */\n const updateScrollDirection = () => {\n if (pinnedToolbar) {\n setToolbarState('show');\n return;\n }\n const scrollY = window.scrollY;\n // 80 is an arbitrary number to have a pause before the toolbar scrolls out of view at the top of the page\n const direction = scrollY > lastScrollY && scrollY > 80 ? 'hide' : 'show';\n // 2 as a buffer to avoid mistaking minor accidental mouse moves as scroll\n if (direction !== toolbarState && (scrollY - lastScrollY > 2 || scrollY - lastScrollY < -2)) {\n setToolbarState(direction);\n }\n lastScrollY = scrollY > 0 ? scrollY : 0;\n };\n\n window.addEventListener('scroll', updateScrollDirection);\n return () => {\n window.removeEventListener('scroll', updateScrollDirection);\n };\n }, [pinnedToolbar, setToolbarState, toolbarState]);\n\n const toolbarHidden = toolbarState === 'hide' && !pinnedToolbar;\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx(styles['universal-toolbar'], {\n [testutilStyles['mobile-bar']]: isMobile,\n [styles['toolbar-hidden']]: toolbarHidden,\n })}\n style={{\n insetBlockStart: toolbarHidden ? '-60px' : verticalOffsets.toolbar,\n }}\n >\n <div className={styles['toolbar-container']}>\n {navigation && !navigationOpen && (\n <nav\n aria-hidden={navigationOpen}\n className={clsx(styles['universal-toolbar-nav'], { [testutilStyles['drawer-closed']]: !navigationOpen })}\n >\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={navigationOpen ? undefined : false}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => onNavigationToggle(!navigationOpen)}\n ref={navigationFocusControl.refs.toggle}\n selected={navigationOpen}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <div className={clsx(styles['universal-toolbar-breadcrumbs'], testutilStyles.breadcrumbs)}>\n {breadcrumbs}\n {discoveredBreadcrumbs && <InternalBreadcrumbGroup {...discoveredBreadcrumbs} />}\n </div>\n )}\n {(drawers.length > 0 || splitPanelToggleConfig.displayed) && (\n <span className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawer?.id ?? null}\n drawers={drawers}\n drawersFocusRef={drawersFocusControl.refs.toggle}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={\n splitPanelToggleConfig.displayed\n ? {\n ...splitPanelToggleConfig,\n controlId: splitPanelControlId,\n active: splitPanelOpen,\n position: splitPanelPosition,\n }\n : undefined\n }\n splitPanelFocusRef={splitPanelFocusControl.refs.toggle}\n onSplitPanelToggle={onSplitPanelToggle}\n />\n </span>\n )}\n </div>\n </ToolbarSlot>\n );\n}\n\nexport const createWidgetizedAppLayoutToolbar = createWidgetizedComponent(AppLayoutToolbarImplementation);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAMlF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAM1E,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,oBAA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wC,CAAC;AAK1E,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,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,eAmGxB"}
@@ -13,7 +13,6 @@ import { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';
13
13
  import { useModalContext } from '../internal/context/modal-context';
14
14
  import { useUniqueId } from '../internal/hooks/use-unique-id';
15
15
  import { ContainerHeaderContextProvider } from '../internal/context/container-header';
16
- import { getGlobalFlag } from '../internal/utils/global-flags';
17
16
  export function InternalContainerAsSubstep(props) {
18
17
  const { subStepRef, funnelSubStepProps } = useFunnelSubStep();
19
18
  const modalContext = useModalContext();
@@ -36,7 +35,6 @@ export default function InternalContainer(_a) {
36
35
  // 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.
37
36
  const shouldHaveStickyStyles = isSticky && !isMobile;
38
37
  const hasMedia = !!(media === null || media === void 0 ? void 0 : media.content);
39
- const hasToolbar = getGlobalFlag('appLayoutWidget');
40
38
  const mediaPosition = (_b = media === null || media === void 0 ? void 0 : media.position) !== null && _b !== void 0 ? _b : 'top';
41
39
  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 }),
42
40
  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)),
@@ -49,7 +47,6 @@ export default function InternalContainer(_a) {
49
47
  [styles['header-dynamic-height']]: hasDynamicHeight,
50
48
  [styles['header-stuck']]: isStuck,
51
49
  [styles['with-paddings']]: !disableHeaderPaddings,
52
- [styles['with-toolbar']]: hasToolbar,
53
50
  [styles['with-hidden-content']]: !children || __hiddenContent,
54
51
  [styles['header-with-media']]: hasMedia,
55
52
  [styles['header-full-page']]: __fullPage && isRefresh,
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"m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AAE;oBACzE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;iBACnD,CAAC,IAED,QAAQ,CACL;YACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;oBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\nimport { getGlobalFlag } from '../internal/utils/global-flags';\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 hasToolbar = getGlobalFlag('appLayoutWidget');\n const mediaPosition = media?.position ?? 'top';\n return (\n <div\n {...baseProps}\n {...__funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']],\n isRefresh && styles.refresh\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div\n id={contentId}\n ref={__subStepRef}\n className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}\n >\n {header && (\n <ContainerHeaderContextProvider>\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], {\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-toolbar']]: hasToolbar,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n [styles['header-full-page']]: __fullPage && isRefresh,\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\n className={clsx(styles.content, fitHeight && styles['content-fit-height'], {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {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MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;oBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;oBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;iBACpD,CAAC,IAED,MAAM,CACH,CACP,CACG,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { useModalContext } from '../internal/context/modal-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { ContainerHeaderContextProvider } from '../internal/context/container-header';\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 >\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(isRefresh && styles.refresh, styles.header, styles[`header-variant-${variant}`], {\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 {...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\n className={clsx(styles.content, fitHeight && styles['content-fit-height'], {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1,36 +1,35 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_14iqq_1ml84_101",
5
- "fit-height": "awsui_fit-height_14iqq_1ml84_137",
6
- "with-side-media": "awsui_with-side-media_14iqq_1ml84_142",
7
- "variant-default": "awsui_variant-default_14iqq_1ml84_145",
8
- "variant-stacked": "awsui_variant-stacked_14iqq_1ml84_145",
9
- "refresh": "awsui_refresh_14iqq_1ml84_153",
10
- "sticky-enabled": "awsui_sticky-enabled_14iqq_1ml84_203",
11
- "with-top-media": "awsui_with-top-media_14iqq_1ml84_215",
12
- "content-wrapper": "awsui_content-wrapper_14iqq_1ml84_220",
13
- "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1ml84_225",
14
- "media": "awsui_media_14iqq_1ml84_232",
15
- "media-top": "awsui_media-top_14iqq_1ml84_250",
16
- "media-side": "awsui_media-side_14iqq_1ml84_255",
17
- "header": "awsui_header_14iqq_1ml84_261",
18
- "header-full-page": "awsui_header-full-page_14iqq_1ml84_266",
19
- "header-with-media": "awsui_header-with-media_14iqq_1ml84_269",
20
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1ml84_275",
21
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1ml84_279",
22
- "header-stuck": "awsui_header-stuck_14iqq_1ml84_285",
23
- "header-variant-cards": "awsui_header-variant-cards_14iqq_1ml84_295",
24
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1ml84_298",
25
- "with-paddings": "awsui_with-paddings_14iqq_1ml84_304",
26
- "with-hidden-content": "awsui_with-hidden-content_14iqq_1ml84_313",
27
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1ml84_371",
28
- "with-toolbar": "awsui_with-toolbar_14iqq_1ml84_371",
29
- "header-cover": "awsui_header-cover_14iqq_1ml84_377",
30
- "content": "awsui_content_14iqq_1ml84_220",
31
- "content-fit-height": "awsui_content-fit-height_14iqq_1ml84_405",
32
- "content-with-media": "awsui_content-with-media_14iqq_1ml84_415",
33
- "footer": "awsui_footer_14iqq_1ml84_419",
34
- "with-divider": "awsui_with-divider_14iqq_1ml84_423"
4
+ "root": "awsui_root_14iqq_1vekq_101",
5
+ "fit-height": "awsui_fit-height_14iqq_1vekq_137",
6
+ "with-side-media": "awsui_with-side-media_14iqq_1vekq_142",
7
+ "variant-default": "awsui_variant-default_14iqq_1vekq_145",
8
+ "variant-stacked": "awsui_variant-stacked_14iqq_1vekq_145",
9
+ "refresh": "awsui_refresh_14iqq_1vekq_153",
10
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1vekq_203",
11
+ "with-top-media": "awsui_with-top-media_14iqq_1vekq_215",
12
+ "content-wrapper": "awsui_content-wrapper_14iqq_1vekq_220",
13
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1vekq_225",
14
+ "media": "awsui_media_14iqq_1vekq_232",
15
+ "media-top": "awsui_media-top_14iqq_1vekq_250",
16
+ "media-side": "awsui_media-side_14iqq_1vekq_255",
17
+ "header": "awsui_header_14iqq_1vekq_261",
18
+ "header-full-page": "awsui_header-full-page_14iqq_1vekq_266",
19
+ "header-with-media": "awsui_header-with-media_14iqq_1vekq_269",
20
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1vekq_275",
21
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1vekq_279",
22
+ "header-stuck": "awsui_header-stuck_14iqq_1vekq_285",
23
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1vekq_295",
24
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1vekq_298",
25
+ "with-paddings": "awsui_with-paddings_14iqq_1vekq_304",
26
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1vekq_313",
27
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1vekq_371",
28
+ "header-cover": "awsui_header-cover_14iqq_1vekq_374",
29
+ "content": "awsui_content_14iqq_1vekq_220",
30
+ "content-fit-height": "awsui_content-fit-height_14iqq_1vekq_402",
31
+ "content-with-media": "awsui_content-with-media_14iqq_1vekq_412",
32
+ "footer": "awsui_footer_14iqq_1vekq_416",
33
+ "with-divider": "awsui_with-divider_14iqq_1vekq_420"
35
34
  };
36
35
 
@@ -98,7 +98,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
98
98
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
99
99
  SPDX-License-Identifier: Apache-2.0
100
100
  */
101
- .awsui_root_14iqq_1ml84_101:not(#\9) {
101
+ .awsui_root_14iqq_1vekq_101:not(#\9) {
102
102
  border-collapse: separate;
103
103
  border-spacing: 0;
104
104
  box-sizing: border-box;
@@ -135,15 +135,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
135
135
  word-wrap: break-word;
136
136
  position: relative;
137
137
  }
138
- .awsui_root_14iqq_1ml84_101.awsui_fit-height_14iqq_1ml84_137:not(#\9) {
138
+ .awsui_root_14iqq_1vekq_101.awsui_fit-height_14iqq_1vekq_137:not(#\9) {
139
139
  display: flex;
140
140
  flex-direction: column;
141
141
  block-size: 100%;
142
142
  }
143
- .awsui_root_14iqq_1ml84_101.awsui_fit-height_14iqq_1ml84_137.awsui_with-side-media_14iqq_1ml84_142:not(#\9) {
143
+ .awsui_root_14iqq_1vekq_101.awsui_fit-height_14iqq_1vekq_137.awsui_with-side-media_14iqq_1vekq_142:not(#\9) {
144
144
  flex-direction: row;
145
145
  }
146
- .awsui_root_14iqq_1ml84_101.awsui_variant-default_14iqq_1ml84_145:not(#\9), .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9) {
146
+ .awsui_root_14iqq_1vekq_101.awsui_variant-default_14iqq_1vekq_145:not(#\9), .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9) {
147
147
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
148
148
  border-start-start-radius: var(--border-radius-container-wqv1zi, 16px);
149
149
  border-start-end-radius: var(--border-radius-container-wqv1zi, 16px);
@@ -151,11 +151,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
151
151
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
152
152
  box-sizing: border-box;
153
153
  }
154
- .awsui_root_14iqq_1ml84_101.awsui_variant-default_14iqq_1ml84_145.awsui_refresh_14iqq_1ml84_153:not(#\9), .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145.awsui_refresh_14iqq_1ml84_153:not(#\9) {
154
+ .awsui_root_14iqq_1vekq_101.awsui_variant-default_14iqq_1vekq_145.awsui_refresh_14iqq_1vekq_153:not(#\9), .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145.awsui_refresh_14iqq_1vekq_153:not(#\9) {
155
155
  border-block: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
156
156
  border-inline: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
157
157
  }
158
- .awsui_root_14iqq_1ml84_101.awsui_variant-default_14iqq_1ml84_145:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::before, .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::before {
158
+ .awsui_root_14iqq_1vekq_101.awsui_variant-default_14iqq_1vekq_145:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::before, .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::before {
159
159
  content: "";
160
160
  position: absolute;
161
161
  inset-inline-start: 0px;
@@ -173,7 +173,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
173
173
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
174
174
  z-index: 1;
175
175
  }
176
- .awsui_root_14iqq_1ml84_101.awsui_variant-default_14iqq_1ml84_145:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::after, .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::after {
176
+ .awsui_root_14iqq_1vekq_101.awsui_variant-default_14iqq_1vekq_145:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::after, .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::after {
177
177
  content: "";
178
178
  position: absolute;
179
179
  inset-inline-start: 0px;
@@ -189,144 +189,144 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
189
189
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
190
190
  box-shadow: var(--shadow-container-fxmdn3, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
191
191
  }
192
- .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(:last-child), .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(:last-child)::after {
192
+ .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(:last-child), .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(:last-child)::after {
193
193
  border-end-end-radius: 0;
194
194
  border-end-start-radius: 0;
195
195
  border-block-end-width: 0;
196
196
  }
197
- .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145 + .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9), .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145 + .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9)::before, .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145 + .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9)::after {
197
+ .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145 + .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9), .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145 + .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9)::before, .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145 + .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9)::after {
198
198
  border-start-start-radius: 0;
199
199
  border-start-end-radius: 0;
200
200
  }
201
- .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145 + .awsui_root_14iqq_1ml84_101.awsui_variant-stacked_14iqq_1ml84_145:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::before {
201
+ .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145 + .awsui_root_14iqq_1vekq_101.awsui_variant-stacked_14iqq_1vekq_145:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::before {
202
202
  border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
203
203
  }
204
- .awsui_root_14iqq_1ml84_101.awsui_sticky-enabled_14iqq_1ml84_203:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::before {
204
+ .awsui_root_14iqq_1vekq_101.awsui_sticky-enabled_14iqq_1vekq_203:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::before {
205
205
  inset-block-start: calc(-1 * var(--border-container-top-width-uugwwl, 0px));
206
206
  }
207
- .awsui_root_14iqq_1ml84_101.awsui_sticky-enabled_14iqq_1ml84_203:not(#\9):not(.awsui_refresh_14iqq_1ml84_153).awsui_variant-stacked_14iqq_1ml84_145::before {
207
+ .awsui_root_14iqq_1vekq_101.awsui_sticky-enabled_14iqq_1vekq_203:not(#\9):not(.awsui_refresh_14iqq_1vekq_153).awsui_variant-stacked_14iqq_1vekq_145::before {
208
208
  inset-block-start: calc(-1 * var(--border-divider-section-width-1061zr, 1px));
209
209
  }
210
210
 
211
- .awsui_with-side-media_14iqq_1ml84_142:not(#\9) {
211
+ .awsui_with-side-media_14iqq_1vekq_142:not(#\9) {
212
212
  display: flex;
213
213
  flex-direction: row;
214
214
  }
215
215
 
216
- .awsui_with-top-media_14iqq_1ml84_215:not(#\9) {
216
+ .awsui_with-top-media_14iqq_1vekq_215:not(#\9) {
217
217
  display: flex;
218
218
  flex-direction: column;
219
219
  }
220
220
 
221
- .awsui_content-wrapper_14iqq_1ml84_220:not(#\9) {
221
+ .awsui_content-wrapper_14iqq_1vekq_220:not(#\9) {
222
222
  display: flex;
223
223
  flex-direction: column;
224
224
  inline-size: 100%;
225
225
  }
226
- .awsui_content-wrapper-fit-height_14iqq_1ml84_225:not(#\9) {
226
+ .awsui_content-wrapper-fit-height_14iqq_1vekq_225:not(#\9) {
227
227
  block-size: 100%;
228
228
  overflow: hidden;
229
229
  border-end-start-radius: var(--border-radius-container-wqv1zi, 16px);
230
230
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
231
231
  }
232
232
 
233
- .awsui_media_14iqq_1ml84_232:not(#\9) {
233
+ .awsui_media_14iqq_1vekq_232:not(#\9) {
234
234
  overflow: hidden;
235
235
  flex-shrink: 0;
236
236
  }
237
- .awsui_media_14iqq_1ml84_232 img:not(#\9),
238
- .awsui_media_14iqq_1ml84_232 video:not(#\9),
239
- .awsui_media_14iqq_1ml84_232 picture:not(#\9) {
237
+ .awsui_media_14iqq_1vekq_232 img:not(#\9),
238
+ .awsui_media_14iqq_1vekq_232 video:not(#\9),
239
+ .awsui_media_14iqq_1vekq_232 picture:not(#\9) {
240
240
  inline-size: 100%;
241
241
  block-size: 100%;
242
242
  object-fit: cover;
243
243
  object-position: center;
244
244
  }
245
- .awsui_media_14iqq_1ml84_232 iframe:not(#\9) {
245
+ .awsui_media_14iqq_1vekq_232 iframe:not(#\9) {
246
246
  inline-size: 100%;
247
247
  block-size: 100%;
248
248
  border-block: 0;
249
249
  border-inline: 0;
250
250
  }
251
- .awsui_media-top_14iqq_1ml84_250:not(#\9) {
251
+ .awsui_media-top_14iqq_1vekq_250:not(#\9) {
252
252
  max-block-size: 66%;
253
253
  border-start-start-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
254
254
  border-start-end-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
255
255
  }
256
- .awsui_media-side_14iqq_1ml84_255:not(#\9) {
256
+ .awsui_media-side_14iqq_1vekq_255:not(#\9) {
257
257
  max-inline-size: 66%;
258
258
  border-start-start-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
259
259
  border-end-start-radius: calc(var(--border-radius-container-wqv1zi, 16px) - 1px);
260
260
  }
261
261
 
262
- .awsui_header_14iqq_1ml84_261:not(#\9) {
262
+ .awsui_header_14iqq_1vekq_261:not(#\9) {
263
263
  background-color: var(--color-background-container-header-8b9fgi, #ffffff);
264
264
  border-start-start-radius: var(--border-radius-container-wqv1zi, 16px);
265
265
  border-start-end-radius: var(--border-radius-container-wqv1zi, 16px);
266
266
  }
267
- .awsui_header_14iqq_1ml84_261.awsui_header-full-page_14iqq_1ml84_266:not(#\9) {
267
+ .awsui_header_14iqq_1vekq_261.awsui_header-full-page_14iqq_1vekq_266:not(#\9) {
268
268
  background-color: var(--color-background-layout-main-nx09lr, #ffffff);
269
269
  }
270
- .awsui_header_14iqq_1ml84_261.awsui_header-with-media_14iqq_1ml84_269:not(#\9) {
270
+ .awsui_header_14iqq_1vekq_261.awsui_header-with-media_14iqq_1vekq_269:not(#\9) {
271
271
  background: none;
272
272
  }
273
- .awsui_header_14iqq_1ml84_261.awsui_header-with-media_14iqq_1ml84_269:not(#\9):not(:empty) {
273
+ .awsui_header_14iqq_1vekq_261.awsui_header-with-media_14iqq_1vekq_269:not(#\9):not(:empty) {
274
274
  border-block-end: none;
275
275
  }
276
- .awsui_header-sticky-disabled_14iqq_1ml84_275:not(#\9) {
276
+ .awsui_header-sticky-disabled_14iqq_1vekq_275:not(#\9) {
277
277
  position: relative;
278
278
  z-index: 1;
279
279
  }
280
- .awsui_header-sticky-enabled_14iqq_1ml84_279:not(#\9) {
280
+ .awsui_header-sticky-enabled_14iqq_1vekq_279:not(#\9) {
281
281
  inset-block-start: 0;
282
282
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
283
283
  position: sticky;
284
284
  z-index: 800;
285
285
  }
286
- .awsui_header-stuck_14iqq_1ml84_285:not(#\9) {
286
+ .awsui_header-stuck_14iqq_1vekq_285:not(#\9) {
287
287
  border-start-start-radius: 0;
288
288
  border-start-end-radius: 0;
289
289
  border-end-start-radius: 0;
290
290
  border-end-end-radius: 0;
291
291
  }
292
- .awsui_header-stuck_14iqq_1ml84_285:not(#\9)::before {
292
+ .awsui_header-stuck_14iqq_1vekq_285:not(#\9)::before {
293
293
  border-block: 0;
294
294
  border-inline: 0;
295
295
  }
296
- .awsui_header-stuck_14iqq_1ml84_285:not(#\9):not(.awsui_header-variant-cards_14iqq_1ml84_295) {
296
+ .awsui_header-stuck_14iqq_1vekq_285:not(#\9):not(.awsui_header-variant-cards_14iqq_1vekq_295) {
297
297
  box-shadow: var(--shadow-sticky-embedded-uvh5ry, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
298
298
  }
299
- .awsui_header-dynamic-height_14iqq_1ml84_298.awsui_header-stuck_14iqq_1ml84_285:not(#\9) {
299
+ .awsui_header-dynamic-height_14iqq_1vekq_298.awsui_header-stuck_14iqq_1vekq_285:not(#\9) {
300
300
  margin-block-end: calc(var(--line-height-heading-xl-avbttk, 30px) - var(--line-height-heading-l-mmm3my, 24px));
301
301
  }
302
- .awsui_header_14iqq_1ml84_261:not(#\9):not(:empty) {
302
+ .awsui_header_14iqq_1vekq_261:not(#\9):not(:empty) {
303
303
  border-block-end: var(--border-container-sticky-width-6asz33, 0px) solid var(--color-border-container-divider-p2uygo, transparent);
304
304
  }
305
- .awsui_header_14iqq_1ml84_261.awsui_with-paddings_14iqq_1ml84_304:not(#\9) {
305
+ .awsui_header_14iqq_1vekq_261.awsui_with-paddings_14iqq_1vekq_304:not(#\9) {
306
306
  padding-block-start: var(--space-container-header-top-5qav00, 12px);
307
307
  padding-block-end: var(--space-container-header-bottom-vj01hn, 8px);
308
308
  padding-inline: var(--space-container-horizontal-wfukh3, 20px);
309
309
  }
310
- .awsui_header_14iqq_1ml84_261.awsui_with-paddings_14iqq_1ml84_304.awsui_header-variant-cards_14iqq_1ml84_295:not(#\9) {
310
+ .awsui_header_14iqq_1vekq_261.awsui_with-paddings_14iqq_1vekq_304.awsui_header-variant-cards_14iqq_1vekq_295:not(#\9) {
311
311
  padding-block: var(--space-container-header-top-5qav00, 12px);
312
312
  padding-inline: var(--space-container-horizontal-wfukh3, 20px);
313
313
  }
314
- .awsui_header_14iqq_1ml84_261.awsui_with-hidden-content_14iqq_1ml84_313:not(#\9) {
314
+ .awsui_header_14iqq_1vekq_261.awsui_with-hidden-content_14iqq_1vekq_313:not(#\9) {
315
315
  border-end-start-radius: var(--border-radius-container-wqv1zi, 16px);
316
316
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
317
317
  }
318
- .awsui_header-variant-cards_14iqq_1ml84_295:not(#\9) {
318
+ .awsui_header-variant-cards_14iqq_1vekq_295:not(#\9) {
319
319
  border-start-start-radius: var(--border-radius-container-wqv1zi, 16px);
320
320
  border-start-end-radius: var(--border-radius-container-wqv1zi, 16px);
321
321
  border-end-start-radius: var(--border-radius-container-wqv1zi, 16px);
322
322
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
323
323
  box-sizing: border-box;
324
324
  }
325
- .awsui_header-variant-cards_14iqq_1ml84_295.awsui_refresh_14iqq_1ml84_153:not(#\9) {
325
+ .awsui_header-variant-cards_14iqq_1vekq_295.awsui_refresh_14iqq_1vekq_153:not(#\9) {
326
326
  border-block: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
327
327
  border-inline: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
328
328
  }
329
- .awsui_header-variant-cards_14iqq_1ml84_295:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::before {
329
+ .awsui_header-variant-cards_14iqq_1vekq_295:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::before {
330
330
  content: "";
331
331
  position: absolute;
332
332
  inset-inline-start: 0px;
@@ -344,7 +344,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
344
344
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
345
345
  z-index: 1;
346
346
  }
347
- .awsui_header-variant-cards_14iqq_1ml84_295:not(#\9):not(.awsui_refresh_14iqq_1ml84_153)::after {
347
+ .awsui_header-variant-cards_14iqq_1vekq_295:not(#\9):not(.awsui_refresh_14iqq_1vekq_153)::after {
348
348
  content: "";
349
349
  position: absolute;
350
350
  inset-inline-start: 0px;
@@ -360,29 +360,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
360
360
  border-end-end-radius: var(--border-radius-container-wqv1zi, 16px);
361
361
  box-shadow: var(--shadow-container-fxmdn3, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
362
362
  }
363
- .awsui_header-variant-cards_14iqq_1ml84_295:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1ml84_279) {
363
+ .awsui_header-variant-cards_14iqq_1vekq_295:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1vekq_279) {
364
364
  position: relative;
365
365
  }
366
- .awsui_header-variant-cards_14iqq_1ml84_295.awsui_header-stuck_14iqq_1ml84_285:not(#\9)::after, .awsui_header-variant-cards_14iqq_1ml84_295.awsui_header-stuck_14iqq_1ml84_285:not(#\9)::before {
366
+ .awsui_header-variant-cards_14iqq_1vekq_295.awsui_header-stuck_14iqq_1vekq_285:not(#\9)::after, .awsui_header-variant-cards_14iqq_1vekq_295.awsui_header-stuck_14iqq_1vekq_285:not(#\9)::before {
367
367
  border-block: 0;
368
368
  border-inline: 0;
369
369
  border-start-start-radius: 0;
370
370
  border-start-end-radius: 0;
371
371
  }
372
- .awsui_header-variant-full-page_14iqq_1ml84_371.awsui_with-toolbar_14iqq_1ml84_371:not(#\9) {
373
- padding-block-start: var(--space-scaled-s-aqzyko, 12px);
374
- }
375
- .awsui_header-variant-full-page_14iqq_1ml84_371.awsui_header-stuck_14iqq_1ml84_285:not(#\9) {
372
+ .awsui_header-variant-full-page_14iqq_1vekq_371.awsui_header-stuck_14iqq_1vekq_285:not(#\9) {
376
373
  box-shadow: none;
377
374
  }
378
- .awsui_header-variant-full-page_14iqq_1ml84_371.awsui_header-stuck_14iqq_1ml84_285 > .awsui_header-cover_14iqq_1ml84_377:not(#\9) {
375
+ .awsui_header-variant-full-page_14iqq_1vekq_371.awsui_header-stuck_14iqq_1vekq_285 > .awsui_header-cover_14iqq_1vekq_374:not(#\9) {
379
376
  background-color: var(--color-background-layout-main-nx09lr, #ffffff);
380
377
  inline-size: 100%;
381
378
  position: absolute;
382
379
  block-size: var(--space-scaled-s-aqzyko, 12px);
383
380
  inset-block-start: calc(-1 * var(--space-scaled-s-aqzyko, 12px));
384
381
  }
385
- .awsui_header-variant-full-page_14iqq_1ml84_371.awsui_header-stuck_14iqq_1ml84_285:not(#\9)::before {
382
+ .awsui_header-variant-full-page_14iqq_1vekq_371.awsui_header-stuck_14iqq_1vekq_285:not(#\9)::before {
386
383
  content: "";
387
384
  position: absolute;
388
385
  pointer-events: none;
@@ -392,7 +389,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
392
389
  inset-block-start: 0;
393
390
  border-block-end: solid var(--border-divider-section-width-1061zr, 1px) var(--color-border-divider-default-j74lyz, #b6bec9);
394
391
  }
395
- .awsui_header-variant-full-page_14iqq_1ml84_371.awsui_header-stuck_14iqq_1ml84_285:not(#\9)::after {
392
+ .awsui_header-variant-full-page_14iqq_1vekq_371.awsui_header-stuck_14iqq_1vekq_285:not(#\9)::after {
396
393
  content: "";
397
394
  position: absolute;
398
395
  inset: 0;
@@ -400,27 +397,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
400
397
  clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
401
398
  }
402
399
 
403
- .awsui_content_14iqq_1ml84_220:not(#\9) {
400
+ .awsui_content_14iqq_1vekq_220:not(#\9) {
404
401
  flex: 1;
405
402
  }
406
- .awsui_content-fit-height_14iqq_1ml84_405:not(#\9) {
403
+ .awsui_content-fit-height_14iqq_1vekq_402:not(#\9) {
407
404
  overflow: auto;
408
405
  }
409
- .awsui_content_14iqq_1ml84_220.awsui_with-paddings_14iqq_1ml84_304:not(#\9) {
406
+ .awsui_content_14iqq_1vekq_220.awsui_with-paddings_14iqq_1vekq_304:not(#\9) {
410
407
  padding-block: var(--space-scaled-l-0hpmd7, 20px);
411
408
  padding-inline: var(--space-container-horizontal-wfukh3, 20px);
412
409
  }
413
- .awsui_header_14iqq_1ml84_261 + .awsui_content_14iqq_1ml84_220.awsui_with-paddings_14iqq_1ml84_304:not(#\9) {
410
+ .awsui_header_14iqq_1vekq_261 + .awsui_content_14iqq_1vekq_220.awsui_with-paddings_14iqq_1vekq_304:not(#\9) {
414
411
  padding-block-start: var(--space-container-content-top-1ae0r3, 4px);
415
412
  }
416
- .awsui_header_14iqq_1ml84_261 + .awsui_content_14iqq_1ml84_220.awsui_with-paddings_14iqq_1ml84_304.awsui_content-with-media_14iqq_1ml84_415:not(#\9) {
413
+ .awsui_header_14iqq_1vekq_261 + .awsui_content_14iqq_1vekq_220.awsui_with-paddings_14iqq_1vekq_304.awsui_content-with-media_14iqq_1vekq_412:not(#\9) {
417
414
  padding-block-start: 0;
418
415
  }
419
416
 
420
- .awsui_footer_14iqq_1ml84_419.awsui_with-paddings_14iqq_1ml84_304:not(#\9) {
417
+ .awsui_footer_14iqq_1vekq_416.awsui_with-paddings_14iqq_1vekq_304:not(#\9) {
421
418
  padding-block: var(--space-scaled-s-aqzyko, 12px);
422
419
  padding-inline: var(--space-container-horizontal-wfukh3, 20px);
423
420
  }
424
- .awsui_footer_14iqq_1ml84_419.awsui_with-divider_14iqq_1ml84_423:not(#\9) {
421
+ .awsui_footer_14iqq_1vekq_416.awsui_with-divider_14iqq_1vekq_420:not(#\9) {
425
422
  border-block-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
426
423
  }
@@ -2,36 +2,35 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_14iqq_1ml84_101",
6
- "fit-height": "awsui_fit-height_14iqq_1ml84_137",
7
- "with-side-media": "awsui_with-side-media_14iqq_1ml84_142",
8
- "variant-default": "awsui_variant-default_14iqq_1ml84_145",
9
- "variant-stacked": "awsui_variant-stacked_14iqq_1ml84_145",
10
- "refresh": "awsui_refresh_14iqq_1ml84_153",
11
- "sticky-enabled": "awsui_sticky-enabled_14iqq_1ml84_203",
12
- "with-top-media": "awsui_with-top-media_14iqq_1ml84_215",
13
- "content-wrapper": "awsui_content-wrapper_14iqq_1ml84_220",
14
- "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1ml84_225",
15
- "media": "awsui_media_14iqq_1ml84_232",
16
- "media-top": "awsui_media-top_14iqq_1ml84_250",
17
- "media-side": "awsui_media-side_14iqq_1ml84_255",
18
- "header": "awsui_header_14iqq_1ml84_261",
19
- "header-full-page": "awsui_header-full-page_14iqq_1ml84_266",
20
- "header-with-media": "awsui_header-with-media_14iqq_1ml84_269",
21
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1ml84_275",
22
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1ml84_279",
23
- "header-stuck": "awsui_header-stuck_14iqq_1ml84_285",
24
- "header-variant-cards": "awsui_header-variant-cards_14iqq_1ml84_295",
25
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1ml84_298",
26
- "with-paddings": "awsui_with-paddings_14iqq_1ml84_304",
27
- "with-hidden-content": "awsui_with-hidden-content_14iqq_1ml84_313",
28
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1ml84_371",
29
- "with-toolbar": "awsui_with-toolbar_14iqq_1ml84_371",
30
- "header-cover": "awsui_header-cover_14iqq_1ml84_377",
31
- "content": "awsui_content_14iqq_1ml84_220",
32
- "content-fit-height": "awsui_content-fit-height_14iqq_1ml84_405",
33
- "content-with-media": "awsui_content-with-media_14iqq_1ml84_415",
34
- "footer": "awsui_footer_14iqq_1ml84_419",
35
- "with-divider": "awsui_with-divider_14iqq_1ml84_423"
5
+ "root": "awsui_root_14iqq_1vekq_101",
6
+ "fit-height": "awsui_fit-height_14iqq_1vekq_137",
7
+ "with-side-media": "awsui_with-side-media_14iqq_1vekq_142",
8
+ "variant-default": "awsui_variant-default_14iqq_1vekq_145",
9
+ "variant-stacked": "awsui_variant-stacked_14iqq_1vekq_145",
10
+ "refresh": "awsui_refresh_14iqq_1vekq_153",
11
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1vekq_203",
12
+ "with-top-media": "awsui_with-top-media_14iqq_1vekq_215",
13
+ "content-wrapper": "awsui_content-wrapper_14iqq_1vekq_220",
14
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1vekq_225",
15
+ "media": "awsui_media_14iqq_1vekq_232",
16
+ "media-top": "awsui_media-top_14iqq_1vekq_250",
17
+ "media-side": "awsui_media-side_14iqq_1vekq_255",
18
+ "header": "awsui_header_14iqq_1vekq_261",
19
+ "header-full-page": "awsui_header-full-page_14iqq_1vekq_266",
20
+ "header-with-media": "awsui_header-with-media_14iqq_1vekq_269",
21
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1vekq_275",
22
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1vekq_279",
23
+ "header-stuck": "awsui_header-stuck_14iqq_1vekq_285",
24
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1vekq_295",
25
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1vekq_298",
26
+ "with-paddings": "awsui_with-paddings_14iqq_1vekq_304",
27
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1vekq_313",
28
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1vekq_371",
29
+ "header-cover": "awsui_header-cover_14iqq_1vekq_374",
30
+ "content": "awsui_content_14iqq_1vekq_220",
31
+ "content-fit-height": "awsui_content-fit-height_14iqq_1vekq_402",
32
+ "content-with-media": "awsui_content-with-media_14iqq_1vekq_412",
33
+ "footer": "awsui_footer_14iqq_1vekq_416",
34
+ "with-divider": "awsui_with-divider_14iqq_1vekq_420"
36
35
  };
37
36
 
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (b5981ca7)";
2
+ export var PACKAGE_VERSION = "3.0.0 (df4cffb5)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (b5981ca7)",
3
+ "PACKAGE_VERSION": "3.0.0 (df4cffb5)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "b5981ca7801d32d97e646a550bd48dd9cf601a52"
2
+ "commit": "df4cffb535947135209bbc64e7bc26d5fd63a3e6"
3
3
  }
package/package.json CHANGED
@@ -124,7 +124,7 @@
124
124
  "./internal/base-component/index.js",
125
125
  "./internal/base-component/styles.css.js"
126
126
  ],
127
- "version": "3.0.686",
127
+ "version": "3.0.687",
128
128
  "repository": {
129
129
  "type": "git",
130
130
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1 +1 @@
1
- {"version":3,"file":"bottom.d.ts","sourceRoot":"","sources":["../../../src/split-panel/bottom.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,KAAK,EAAE,gBAAgB,CAAC;IACxB,uBAAuB,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxC,iBAAiB,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;CACpD;AAED,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,KAAK,EACL,uBAAuB,EACvB,aAAa,EACb,UAAU,EACV,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,QAAQ,GACT,EAAE,4BAA4B,eAsD9B"}
1
+ {"version":3,"file":"bottom.d.ts","sourceRoot":"","sources":["../../../src/split-panel/bottom.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAQtD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,KAAK,EAAE,gBAAgB,CAAC;IACxB,uBAAuB,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxC,iBAAiB,EAAE,KAAK,CAAC,aAAa,GAAG,SAAS,CAAC;CACpD;AAED,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,KAAK,EACL,uBAAuB,EACvB,aAAa,EACb,UAAU,EACV,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,aAAa,EACb,QAAQ,GACT,EAAE,4BAA4B,eAwD9B"}
@@ -9,8 +9,10 @@ import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
9
9
  import { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';
10
10
  import styles from './styles.css.js';
11
11
  import testUtilStyles from './test-classes/styles.css.js';
12
+ import { getGlobalFlag } from '../internal/utils/global-flags';
12
13
  export function SplitPanelContentBottom({ baseProps, isOpen, state, transitioningElementRef, splitPanelRef, cappedSize, header, resizeHandle, children, appLayoutMaxWidth, panelHeaderId, onToggle, }) {
13
14
  const isRefresh = useVisualRefresh();
15
+ const hasToolbar = getGlobalFlag('appLayoutWidget');
14
16
  const { bottomOffset, leftOffset, rightOffset, disableContentPaddings, contentWrapperPaddings, reportHeaderHeight } = useSplitPanelContext();
15
17
  const transitionContentBottomRef = useMergeRefs(splitPanelRef || null, transitioningElementRef);
16
18
  const isMobile = useMobile();
@@ -33,6 +35,7 @@ export function SplitPanelContentBottom({ baseProps, isOpen, state, transitionin
33
35
  [styles['drawer-disable-content-paddings']]: disableContentPaddings,
34
36
  [styles.animating]: isRefresh && (state === 'entering' || state === 'exiting'),
35
37
  [styles.refresh]: isRefresh,
38
+ [styles['with-toolbar']]: hasToolbar,
36
39
  }), onClick: () => !isOpen && onToggle(), style: {
37
40
  insetBlockEnd: bottomOffset,
38
41
  insetInlineStart: leftOffset,
@@ -1 +1 @@
1
- {"version":3,"file":"bottom.js","sourceRoot":"","sources":["../../../src/split-panel/bottom.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,EAAE,oBAAoB,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YACN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,iBAAe,CAAC,MAAM;gBAC3F,6BAAK,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,iBAAiB,IAChG,QAAQ,CACL,CACF,CACF,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { TransitionStatus } from '../internal/components/transition';\nimport { SplitPanelContentProps } from './interfaces';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface SplitPanelContentBottomProps extends SplitPanelContentProps {\n state: TransitionStatus;\n transitioningElementRef: React.Ref<any>;\n appLayoutMaxWidth: React.CSSProperties | undefined;\n}\n\nexport function SplitPanelContentBottom({\n baseProps,\n isOpen,\n state,\n transitioningElementRef,\n splitPanelRef,\n cappedSize,\n header,\n resizeHandle,\n children,\n appLayoutMaxWidth,\n panelHeaderId,\n onToggle,\n}: SplitPanelContentBottomProps) {\n const isRefresh = useVisualRefresh();\n const { bottomOffset, leftOffset, rightOffset, disableContentPaddings, contentWrapperPaddings, reportHeaderHeight } =\n useSplitPanelContext();\n const transitionContentBottomRef = useMergeRefs(splitPanelRef || null, transitioningElementRef);\n const isMobile = useMobile();\n\n const headerRef = useRef<HTMLDivElement>(null);\n useResizeObserver(headerRef, entry => reportHeaderHeight(entry.borderBoxHeight));\n useEffect(() => {\n // report empty height when unmounting the panel\n return () => reportHeaderHeight(0);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const centeredMaxWidthClasses = clsx({\n [styles['pane-bottom-center-align']]: isRefresh,\n [styles['pane-bottom-content-nav-padding']]: contentWrapperPaddings?.closedNav,\n [styles['pane-bottom-content-tools-padding']]: contentWrapperPaddings?.closedTools,\n });\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.drawer, styles['position-bottom'], testUtilStyles.root, {\n [testUtilStyles['open-position-bottom']]: isOpen,\n [styles['drawer-closed']]: !isOpen,\n [styles['drawer-mobile']]: isMobile,\n [styles['drawer-disable-content-paddings']]: disableContentPaddings,\n [styles.animating]: isRefresh && (state === 'entering' || state === 'exiting'),\n [styles.refresh]: isRefresh,\n })}\n onClick={() => !isOpen && onToggle()}\n style={{\n insetBlockEnd: bottomOffset,\n insetInlineStart: leftOffset,\n insetInlineEnd: rightOffset,\n blockSize: isOpen ? cappedSize : undefined,\n }}\n ref={transitionContentBottomRef}\n >\n {isOpen && <div className={styles['slider-wrapper-bottom']}>{resizeHandle}</div>}\n <div className={styles['drawer-content-bottom']} aria-labelledby={panelHeaderId} role=\"region\">\n <div className={clsx(styles['pane-header-wrapper-bottom'], centeredMaxWidthClasses)} ref={headerRef}>\n {header}\n </div>\n <div className={clsx(styles['content-bottom'], centeredMaxWidthClasses)} aria-hidden={!isOpen}>\n <div className={clsx({ [styles['content-bottom-max-width']]: isRefresh })} style={appLayoutMaxWidth}>\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"bottom.js","sourceRoot":"","sources":["../../../src/split-panel/bottom.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,C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uB,CAAC,IAAG,YAAY,CAAO;QAChF,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC,qBAAmB,aAAa,EAAE,IAAI,EAAC,QAAQ;YAC5F,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAAE,uBAAuB,CAAC,EAAE,GAAG,EAAE,SAAS,IAChG,MAAM,CACH;YACN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,iBAAe,CAAC,MAAM;gBAC3F,6BAAK,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,iBAAiB,IAChG,QAAQ,CACL,CACF,CACF,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { TransitionStatus } from '../internal/components/transition';\nimport { SplitPanelContentProps } from './interfaces';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\nimport { getGlobalFlag } from '../internal/utils/global-flags';\n\ninterface SplitPanelContentBottomProps extends SplitPanelContentProps {\n state: TransitionStatus;\n transitioningElementRef: React.Ref<any>;\n appLayoutMaxWidth: React.CSSProperties | undefined;\n}\n\nexport function SplitPanelContentBottom({\n baseProps,\n isOpen,\n state,\n transitioningElementRef,\n splitPanelRef,\n cappedSize,\n header,\n resizeHandle,\n children,\n appLayoutMaxWidth,\n panelHeaderId,\n onToggle,\n}: SplitPanelContentBottomProps) {\n const isRefresh = useVisualRefresh();\n const hasToolbar = getGlobalFlag('appLayoutWidget');\n const { bottomOffset, leftOffset, rightOffset, disableContentPaddings, contentWrapperPaddings, reportHeaderHeight } =\n useSplitPanelContext();\n const transitionContentBottomRef = useMergeRefs(splitPanelRef || null, transitioningElementRef);\n const isMobile = useMobile();\n\n const headerRef = useRef<HTMLDivElement>(null);\n useResizeObserver(headerRef, entry => reportHeaderHeight(entry.borderBoxHeight));\n useEffect(() => {\n // report empty height when unmounting the panel\n return () => reportHeaderHeight(0);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const centeredMaxWidthClasses = clsx({\n [styles['pane-bottom-center-align']]: isRefresh,\n [styles['pane-bottom-content-nav-padding']]: contentWrapperPaddings?.closedNav,\n [styles['pane-bottom-content-tools-padding']]: contentWrapperPaddings?.closedTools,\n });\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.drawer, styles['position-bottom'], testUtilStyles.root, {\n [testUtilStyles['open-position-bottom']]: isOpen,\n [styles['drawer-closed']]: !isOpen,\n [styles['drawer-mobile']]: isMobile,\n [styles['drawer-disable-content-paddings']]: disableContentPaddings,\n [styles.animating]: isRefresh && (state === 'entering' || state === 'exiting'),\n [styles.refresh]: isRefresh,\n [styles['with-toolbar']]: hasToolbar,\n })}\n onClick={() => !isOpen && onToggle()}\n style={{\n insetBlockEnd: bottomOffset,\n insetInlineStart: leftOffset,\n insetInlineEnd: rightOffset,\n blockSize: isOpen ? cappedSize : undefined,\n }}\n ref={transitionContentBottomRef}\n >\n {isOpen && <div className={styles['slider-wrapper-bottom']}>{resizeHandle}</div>}\n <div className={styles['drawer-content-bottom']} aria-labelledby={panelHeaderId} role=\"region\">\n <div className={clsx(styles['pane-header-wrapper-bottom'], centeredMaxWidthClasses)} ref={headerRef}>\n {header}\n </div>\n <div className={clsx(styles['content-bottom'], centeredMaxWidthClasses)} aria-hidden={!isOpen}>\n <div className={clsx({ [styles['content-bottom-max-width']]: isRefresh })} style={appLayoutMaxWidth}>\n {children}\n </div>\n </div>\n </div>\n </div>\n );\n}\n"]}
@@ -1,31 +1,32 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "drawer": "awsui_drawer_1r9lg_ofsif_197",
5
- "refresh": "awsui_refresh_1r9lg_ofsif_197",
6
- "animating": "awsui_animating_1r9lg_ofsif_211",
7
- "drawer-closed": "awsui_drawer-closed_1r9lg_ofsif_266",
8
- "drawer-content-side": "awsui_drawer-content-side_1r9lg_ofsif_271",
9
- "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_ofsif_287",
10
- "position-bottom": "awsui_position-bottom_1r9lg_ofsif_294",
11
- "position-side": "awsui_position-side_1r9lg_ofsif_321",
12
- "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_ofsif_327",
13
- "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_ofsif_338",
14
- "open-button-side": "awsui_open-button-side_1r9lg_ofsif_349",
15
- "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358",
16
- "drawer-mobile": "awsui_drawer-mobile_1r9lg_ofsif_368",
17
- "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_ofsif_372",
18
- "content-bottom": "awsui_content-bottom_1r9lg_ofsif_381",
19
- "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_ofsif_397",
20
- "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_ofsif_402",
21
- "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_ofsif_406",
22
- "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_ofsif_410",
23
- "content-side": "awsui_content-side_1r9lg_ofsif_415",
24
- "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_ofsif_425",
25
- "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_ofsif_431",
26
- "header": "awsui_header_1r9lg_ofsif_439",
27
- "header-text": "awsui_header-text_1r9lg_ofsif_449",
28
- "header-actions": "awsui_header-actions_1r9lg_ofsif_462",
29
- "divider": "awsui_divider_1r9lg_ofsif_470"
4
+ "drawer": "awsui_drawer_1r9lg_10v1l_197",
5
+ "refresh": "awsui_refresh_1r9lg_10v1l_197",
6
+ "animating": "awsui_animating_1r9lg_10v1l_211",
7
+ "drawer-closed": "awsui_drawer-closed_1r9lg_10v1l_266",
8
+ "drawer-content-side": "awsui_drawer-content-side_1r9lg_10v1l_271",
9
+ "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_10v1l_287",
10
+ "position-bottom": "awsui_position-bottom_1r9lg_10v1l_294",
11
+ "with-toolbar": "awsui_with-toolbar_1r9lg_10v1l_311",
12
+ "position-side": "awsui_position-side_1r9lg_10v1l_324",
13
+ "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_10v1l_330",
14
+ "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_10v1l_341",
15
+ "open-button-side": "awsui_open-button-side_1r9lg_10v1l_352",
16
+ "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361",
17
+ "drawer-mobile": "awsui_drawer-mobile_1r9lg_10v1l_371",
18
+ "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_10v1l_375",
19
+ "content-bottom": "awsui_content-bottom_1r9lg_10v1l_384",
20
+ "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_10v1l_400",
21
+ "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_10v1l_405",
22
+ "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_10v1l_409",
23
+ "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_10v1l_413",
24
+ "content-side": "awsui_content-side_1r9lg_10v1l_418",
25
+ "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_10v1l_428",
26
+ "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_10v1l_434",
27
+ "header": "awsui_header_1r9lg_10v1l_442",
28
+ "header-text": "awsui_header-text_1r9lg_10v1l_452",
29
+ "header-actions": "awsui_header-actions_1r9lg_10v1l_465",
30
+ "divider": "awsui_divider_1r9lg_10v1l_473"
30
31
  };
31
32
 
@@ -194,36 +194,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
194
194
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
195
195
  SPDX-License-Identifier: Apache-2.0
196
196
  */
197
- .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197:not(#\9) {
197
+ .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197:not(#\9) {
198
198
  transition-duration: var(--motion-duration-refresh-only-fast-4jn2d7, 115ms);
199
199
  transition-property: none;
200
200
  }
201
201
  @media (prefers-reduced-motion: reduce) {
202
- .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197:not(#\9) {
202
+ .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197:not(#\9) {
203
203
  animation: none;
204
204
  transition: none;
205
205
  }
206
206
  }
207
- .awsui-motion-disabled .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197:not(#\9), .awsui-mode-entering .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197:not(#\9) {
207
+ .awsui-motion-disabled .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197:not(#\9), .awsui-mode-entering .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197:not(#\9) {
208
208
  animation: none;
209
209
  transition: none;
210
210
  }
211
- .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197.awsui_animating_1r9lg_ofsif_211:not(#\9) {
211
+ .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197.awsui_animating_1r9lg_10v1l_211:not(#\9) {
212
212
  transition-property: transform;
213
213
  transition-timing-function: var(--motion-easing-refresh-only-a-8flf9q, cubic-bezier(0, 0, 0, 1));
214
214
  }
215
215
  @media (prefers-reduced-motion: reduce) {
216
- .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197.awsui_animating_1r9lg_ofsif_211:not(#\9) {
216
+ .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197.awsui_animating_1r9lg_10v1l_211:not(#\9) {
217
217
  animation: none;
218
218
  transition: none;
219
219
  }
220
220
  }
221
- .awsui-motion-disabled .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197.awsui_animating_1r9lg_ofsif_211:not(#\9), .awsui-mode-entering .awsui_drawer_1r9lg_ofsif_197.awsui_refresh_1r9lg_ofsif_197.awsui_animating_1r9lg_ofsif_211:not(#\9) {
221
+ .awsui-motion-disabled .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197.awsui_animating_1r9lg_10v1l_211:not(#\9), .awsui-mode-entering .awsui_drawer_1r9lg_10v1l_197.awsui_refresh_1r9lg_10v1l_197.awsui_animating_1r9lg_10v1l_211:not(#\9) {
222
222
  animation: none;
223
223
  transition: none;
224
224
  }
225
225
 
226
- .awsui_drawer_1r9lg_ofsif_197:not(#\9) {
226
+ .awsui_drawer_1r9lg_10v1l_197:not(#\9) {
227
227
  border-collapse: separate;
228
228
  border-spacing: 0;
229
229
  box-sizing: border-box;
@@ -264,35 +264,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
264
264
  background-color: var(--color-background-layout-panel-content-t82vgh, #ffffff);
265
265
  z-index: 840;
266
266
  }
267
- .awsui_drawer-closed_1r9lg_ofsif_266:not(#\9) {
267
+ .awsui_drawer-closed_1r9lg_10v1l_266:not(#\9) {
268
268
  cursor: pointer;
269
269
  min-inline-size: 40px;
270
270
  }
271
271
 
272
- .awsui_drawer-content-side_1r9lg_ofsif_271:not(#\9) {
272
+ .awsui_drawer-content-side_1r9lg_10v1l_271:not(#\9) {
273
273
  display: flex;
274
274
  align-items: center;
275
275
  block-size: 100%;
276
276
  overflow: auto;
277
277
  }
278
- .awsui_drawer-closed_1r9lg_ofsif_266 > .awsui_drawer-content-side_1r9lg_ofsif_271:not(#\9) {
278
+ .awsui_drawer-closed_1r9lg_10v1l_266 > .awsui_drawer-content-side_1r9lg_10v1l_271:not(#\9) {
279
279
  inline-size: 40px;
280
280
  }
281
- .awsui_drawer-closed_1r9lg_ofsif_266 > .awsui_drawer-content-side_1r9lg_ofsif_271:not(#\9):hover {
281
+ .awsui_drawer-closed_1r9lg_10v1l_266 > .awsui_drawer-content-side_1r9lg_10v1l_271:not(#\9):hover {
282
282
  background: var(--color-background-layout-panel-hover-n9apd3, #e9ebed);
283
283
  }
284
- .awsui_drawer-content-side_1r9lg_ofsif_271 > [aria-hidden=true]:not(#\9) {
284
+ .awsui_drawer-content-side_1r9lg_10v1l_271 > [aria-hidden=true]:not(#\9) {
285
285
  display: none;
286
286
  }
287
287
 
288
- :not(#\9):not(.awsui_drawer-closed_1r9lg_ofsif_266) > .awsui_drawer-content-bottom_1r9lg_ofsif_287 {
288
+ :not(#\9):not(.awsui_drawer-closed_1r9lg_10v1l_266) > .awsui_drawer-content-bottom_1r9lg_10v1l_287 {
289
289
  overflow-y: auto;
290
290
  position: absolute;
291
291
  inset: 0;
292
292
  clip-path: border-box;
293
293
  }
294
294
 
295
- .awsui_position-bottom_1r9lg_ofsif_294:not(#\9) {
295
+ .awsui_position-bottom_1r9lg_10v1l_294:not(#\9) {
296
296
  position: fixed;
297
297
  overflow-y: auto;
298
298
  border-block-start: var(--border-panel-top-width-7uc0w9, 1px) solid var(--color-border-divider-panel-bottom-dwyqvg, #b6bec9);
@@ -301,31 +301,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
301
301
  SplitPanel is no longer in fixed position in the DOM.
302
302
  */
303
303
  }
304
- .awsui_position-bottom_1r9lg_ofsif_294:not(#\9):not(.awsui_refresh_1r9lg_ofsif_197) {
304
+ .awsui_position-bottom_1r9lg_10v1l_294:not(#\9):not(.awsui_refresh_1r9lg_10v1l_197) {
305
305
  box-shadow: var(--shadow-split-bottom-5e389u, 0px -36px 36px -36px rgba(0, 7, 22, 0.1));
306
306
  border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-dwyqvg, #b6bec9);
307
307
  border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-dwyqvg, #b6bec9);
308
308
  }
309
- .awsui_position-bottom_1r9lg_ofsif_294.awsui_drawer-closed_1r9lg_ofsif_266:not(#\9) {
309
+ .awsui_position-bottom_1r9lg_10v1l_294.awsui_drawer-closed_1r9lg_10v1l_266:not(#\9) {
310
310
  overflow: hidden;
311
311
  }
312
- .awsui_position-bottom_1r9lg_ofsif_294.awsui_drawer-closed_1r9lg_ofsif_266:not(#\9):hover {
312
+ .awsui_position-bottom_1r9lg_10v1l_294.awsui_drawer-closed_1r9lg_10v1l_266.awsui_with-toolbar_1r9lg_10v1l_311:not(#\9) {
313
+ display: none;
314
+ }
315
+ .awsui_position-bottom_1r9lg_10v1l_294.awsui_drawer-closed_1r9lg_10v1l_266:not(#\9):hover {
313
316
  background: var(--color-background-layout-panel-hover-n9apd3, #e9ebed);
314
317
  }
315
- .awsui_position-bottom_1r9lg_ofsif_294 > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > [aria-hidden=true]:not(#\9) {
318
+ .awsui_position-bottom_1r9lg_10v1l_294 > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > [aria-hidden=true]:not(#\9) {
316
319
  display: none;
317
320
  }
318
- .awsui_position-bottom_1r9lg_ofsif_294.awsui_refresh_1r9lg_ofsif_197:not(#\9) {
321
+ .awsui_position-bottom_1r9lg_10v1l_294.awsui_refresh_1r9lg_10v1l_197:not(#\9) {
319
322
  position: relative;
320
323
  }
321
324
 
322
- .awsui_position-side_1r9lg_ofsif_321:not(#\9) {
325
+ .awsui_position-side_1r9lg_10v1l_324:not(#\9) {
323
326
  border-block-start: none;
324
327
  box-shadow: var(--shadow-split-side-ggdtnk, -1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.1));
325
328
  block-size: 100%;
326
329
  }
327
330
 
328
- .awsui_slider-wrapper-bottom_1r9lg_ofsif_327:not(#\9) {
331
+ .awsui_slider-wrapper-bottom_1r9lg_10v1l_330:not(#\9) {
329
332
  position: absolute;
330
333
  inset-block-start: 0;
331
334
  inset-inline-start: 0;
@@ -336,7 +339,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
336
339
  z-index: 2;
337
340
  }
338
341
 
339
- .awsui_slider-wrapper-side_1r9lg_ofsif_338:not(#\9) {
342
+ .awsui_slider-wrapper-side_1r9lg_10v1l_341:not(#\9) {
340
343
  position: absolute;
341
344
  inset-inline-start: 0;
342
345
  inset-block-start: 0;
@@ -347,7 +350,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
347
350
  z-index: 1;
348
351
  }
349
352
 
350
- .awsui_open-button-side_1r9lg_ofsif_349:not(#\9) {
353
+ .awsui_open-button-side_1r9lg_10v1l_352:not(#\9) {
351
354
  flex: 0 0 auto;
352
355
  align-self: flex-start;
353
356
  box-sizing: border-box;
@@ -356,7 +359,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
356
359
  margin-inline: auto;
357
360
  }
358
361
 
359
- .awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358:not(#\9) {
362
+ .awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361:not(#\9) {
360
363
  position: sticky;
361
364
  inset-block-start: 0;
362
365
  display: flex;
@@ -366,54 +369,54 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
366
369
  padding-block: 0;
367
370
  padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
368
371
  }
369
- .awsui_drawer-mobile_1r9lg_ofsif_368 > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > .awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358:not(#\9) {
372
+ .awsui_drawer-mobile_1r9lg_10v1l_371 > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > .awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361:not(#\9) {
370
373
  padding-block: 0;
371
374
  padding-inline: var(--space-l-t419sm, 20px);
372
375
  }
373
- .awsui_drawer-disable-content-paddings_1r9lg_ofsif_372 > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > .awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358:not(#\9) {
376
+ .awsui_drawer-disable-content-paddings_1r9lg_10v1l_375 > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > .awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361:not(#\9) {
374
377
  padding-block: 0;
375
378
  padding-inline: var(--space-l-t419sm, 20px);
376
379
  }
377
- :not(#\9):not(.awsui_drawer-closed_1r9lg_ofsif_266) > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > .awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358 {
380
+ :not(#\9):not(.awsui_drawer-closed_1r9lg_10v1l_266) > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > .awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361 {
378
381
  background-color: var(--color-background-layout-panel-content-t82vgh, #ffffff);
379
382
  border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
380
383
  }
381
384
 
382
- .awsui_content-bottom_1r9lg_ofsif_381:not(#\9) {
385
+ .awsui_content-bottom_1r9lg_10v1l_384:not(#\9) {
383
386
  padding-block: 0;
384
387
  padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
385
388
  margin-block-start: var(--space-panel-split-top-q1pux4, 20px);
386
389
  position: relative;
387
390
  z-index: 0;
388
391
  }
389
- .awsui_drawer-mobile_1r9lg_ofsif_368 > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > .awsui_content-bottom_1r9lg_ofsif_381:not(#\9) {
392
+ .awsui_drawer-mobile_1r9lg_10v1l_371 > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > .awsui_content-bottom_1r9lg_10v1l_384:not(#\9) {
390
393
  padding-block: 0;
391
394
  padding-inline: var(--space-l-t419sm, 20px);
392
395
  }
393
- .awsui_drawer-disable-content-paddings_1r9lg_ofsif_372 > .awsui_drawer-content-bottom_1r9lg_ofsif_287 > .awsui_content-bottom_1r9lg_ofsif_381:not(#\9) {
396
+ .awsui_drawer-disable-content-paddings_1r9lg_10v1l_375 > .awsui_drawer-content-bottom_1r9lg_10v1l_287 > .awsui_content-bottom_1r9lg_10v1l_384:not(#\9) {
394
397
  padding-block: 0;
395
398
  padding-inline: 0;
396
399
  }
397
400
 
398
- .awsui_pane-bottom-center-align_1r9lg_ofsif_397:not(#\9) {
401
+ .awsui_pane-bottom-center-align_1r9lg_10v1l_400:not(#\9) {
399
402
  display: flex;
400
403
  justify-content: center;
401
404
  }
402
405
 
403
- .awsui_pane-bottom-content-nav-padding_1r9lg_ofsif_402:not(#\9) {
406
+ .awsui_pane-bottom-content-nav-padding_1r9lg_10v1l_405:not(#\9) {
404
407
  padding-inline-start: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
405
408
  }
406
409
 
407
- .awsui_pane-bottom-content-tools-padding_1r9lg_ofsif_406:not(#\9) {
410
+ .awsui_pane-bottom-content-tools-padding_1r9lg_10v1l_409:not(#\9) {
408
411
  padding-inline-end: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
409
412
  }
410
413
 
411
- .awsui_content-bottom-max-width_1r9lg_ofsif_410:not(#\9) {
414
+ .awsui_content-bottom-max-width_1r9lg_10v1l_413:not(#\9) {
412
415
  flex-grow: 1;
413
416
  max-inline-size: 100%;
414
417
  }
415
418
 
416
- .awsui_content-side_1r9lg_ofsif_415:not(#\9) {
419
+ .awsui_content-side_1r9lg_10v1l_418:not(#\9) {
417
420
  flex: auto;
418
421
  align-self: flex-start;
419
422
  box-sizing: border-box;
@@ -423,13 +426,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
423
426
  inset-inline: 0;
424
427
  block-size: 100%;
425
428
  }
426
- .awsui_content-side_1r9lg_ofsif_415 > .awsui_pane-header-wrapper-side_1r9lg_ofsif_425:not(#\9) {
429
+ .awsui_content-side_1r9lg_10v1l_418 > .awsui_pane-header-wrapper-side_1r9lg_10v1l_428:not(#\9) {
427
430
  padding-block: 0;
428
431
  padding-inline-end: var(--space-m-udix3p, 16px);
429
432
  padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
430
433
  border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
431
434
  }
432
- .awsui_content-side_1r9lg_ofsif_415 > .awsui_pane-content-wrapper-side_1r9lg_ofsif_431:not(#\9) {
435
+ .awsui_content-side_1r9lg_10v1l_418 > .awsui_pane-content-wrapper-side_1r9lg_10v1l_434:not(#\9) {
433
436
  padding-block: 0;
434
437
  padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
435
438
  padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
@@ -437,7 +440,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
437
440
  margin-block-end: var(--space-panel-split-bottom-qwdduf, 20px);
438
441
  }
439
442
 
440
- .awsui_header_1r9lg_ofsif_439:not(#\9) {
443
+ .awsui_header_1r9lg_10v1l_442:not(#\9) {
441
444
  display: flex;
442
445
  flex: auto;
443
446
  flex-direction: row;
@@ -447,7 +450,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
447
450
  margin-block: var(--size-vertical-panel-icon-offset-wy8j08, 15px);
448
451
  margin-inline: 0;
449
452
  }
450
- .awsui_header-text_1r9lg_ofsif_449:not(#\9) {
453
+ .awsui_header-text_1r9lg_10v1l_452:not(#\9) {
451
454
  font-size: var(--font-panel-header-size-edjz3l, 18px);
452
455
  line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
453
456
  font-weight: var(--font-weight-heading-l-f8711v, 700);
@@ -460,7 +463,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
460
463
  margin-block-start: calc(var(--space-scaled-xxs-7597g1, 4px) + 1px);
461
464
  }
462
465
 
463
- .awsui_header-actions_1r9lg_ofsif_462:not(#\9) {
466
+ .awsui_header-actions_1r9lg_10v1l_465:not(#\9) {
464
467
  display: flex;
465
468
  flex-direction: row;
466
469
  justify-content: space-between;
@@ -468,7 +471,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
468
471
  margin-inline-start: var(--space-xs-zb16t3, 8px);
469
472
  }
470
473
 
471
- .awsui_divider_1r9lg_ofsif_470:not(#\9) {
474
+ .awsui_divider_1r9lg_10v1l_473:not(#\9) {
472
475
  border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-j74lyz, #b6bec9);
473
476
  margin-block: var(--space-scaled-xxs-7597g1, 4px);
474
477
  margin-inline: var(--space-scaled-xs-26e2du, 8px);
@@ -2,31 +2,32 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "drawer": "awsui_drawer_1r9lg_ofsif_197",
6
- "refresh": "awsui_refresh_1r9lg_ofsif_197",
7
- "animating": "awsui_animating_1r9lg_ofsif_211",
8
- "drawer-closed": "awsui_drawer-closed_1r9lg_ofsif_266",
9
- "drawer-content-side": "awsui_drawer-content-side_1r9lg_ofsif_271",
10
- "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_ofsif_287",
11
- "position-bottom": "awsui_position-bottom_1r9lg_ofsif_294",
12
- "position-side": "awsui_position-side_1r9lg_ofsif_321",
13
- "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_ofsif_327",
14
- "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_ofsif_338",
15
- "open-button-side": "awsui_open-button-side_1r9lg_ofsif_349",
16
- "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_ofsif_358",
17
- "drawer-mobile": "awsui_drawer-mobile_1r9lg_ofsif_368",
18
- "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_ofsif_372",
19
- "content-bottom": "awsui_content-bottom_1r9lg_ofsif_381",
20
- "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_ofsif_397",
21
- "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_ofsif_402",
22
- "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_ofsif_406",
23
- "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_ofsif_410",
24
- "content-side": "awsui_content-side_1r9lg_ofsif_415",
25
- "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_ofsif_425",
26
- "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_ofsif_431",
27
- "header": "awsui_header_1r9lg_ofsif_439",
28
- "header-text": "awsui_header-text_1r9lg_ofsif_449",
29
- "header-actions": "awsui_header-actions_1r9lg_ofsif_462",
30
- "divider": "awsui_divider_1r9lg_ofsif_470"
5
+ "drawer": "awsui_drawer_1r9lg_10v1l_197",
6
+ "refresh": "awsui_refresh_1r9lg_10v1l_197",
7
+ "animating": "awsui_animating_1r9lg_10v1l_211",
8
+ "drawer-closed": "awsui_drawer-closed_1r9lg_10v1l_266",
9
+ "drawer-content-side": "awsui_drawer-content-side_1r9lg_10v1l_271",
10
+ "drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_10v1l_287",
11
+ "position-bottom": "awsui_position-bottom_1r9lg_10v1l_294",
12
+ "with-toolbar": "awsui_with-toolbar_1r9lg_10v1l_311",
13
+ "position-side": "awsui_position-side_1r9lg_10v1l_324",
14
+ "slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_10v1l_330",
15
+ "slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_10v1l_341",
16
+ "open-button-side": "awsui_open-button-side_1r9lg_10v1l_352",
17
+ "pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_10v1l_361",
18
+ "drawer-mobile": "awsui_drawer-mobile_1r9lg_10v1l_371",
19
+ "drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_10v1l_375",
20
+ "content-bottom": "awsui_content-bottom_1r9lg_10v1l_384",
21
+ "pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_10v1l_400",
22
+ "pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_10v1l_405",
23
+ "pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_10v1l_409",
24
+ "content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_10v1l_413",
25
+ "content-side": "awsui_content-side_1r9lg_10v1l_418",
26
+ "pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_10v1l_428",
27
+ "pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_10v1l_434",
28
+ "header": "awsui_header_1r9lg_10v1l_442",
29
+ "header-text": "awsui_header-text_1r9lg_10v1l_452",
30
+ "header-actions": "awsui_header-actions_1r9lg_10v1l_465",
31
+ "divider": "awsui_divider_1r9lg_10v1l_473"
31
32
  };
32
33