@cloudscape-design/components 3.0.227 → 3.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-layout/{drawer.d.ts → drawer/index.d.ts} +12 -12
- package/app-layout/drawer/index.d.ts.map +1 -0
- package/app-layout/{drawer.js → drawer/index.js} +6 -7
- package/app-layout/drawer/index.js.map +1 -0
- package/app-layout/drawer/styles.css.js +10 -0
- package/app-layout/drawer/styles.scoped.css +139 -0
- package/app-layout/drawer/styles.selectors.js +11 -0
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +6 -23
- package/app-layout/index.js.map +1 -1
- package/app-layout/split-panel-drawer/index.d.ts +11 -0
- package/app-layout/split-panel-drawer/index.d.ts.map +1 -0
- package/app-layout/split-panel-drawer/index.js +10 -0
- package/app-layout/split-panel-drawer/index.js.map +1 -0
- package/app-layout/split-panel-drawer/styles.css.js +7 -0
- package/app-layout/split-panel-drawer/styles.scoped.css +103 -0
- package/app-layout/split-panel-drawer/styles.selectors.js +8 -0
- package/app-layout/styles.css.js +13 -26
- package/app-layout/styles.scoped.css +13 -100
- package/app-layout/styles.selectors.js +13 -26
- package/app-layout/toggles/index.d.ts +0 -2
- package/app-layout/toggles/index.d.ts.map +1 -1
- package/app-layout/toggles/index.js +2 -2
- package/app-layout/toggles/index.js.map +1 -1
- package/app-layout/utils/use-content-height.d.ts +0 -3
- package/app-layout/utils/use-content-height.d.ts.map +1 -1
- package/app-layout/utils/use-content-height.js +0 -3
- package/app-layout/utils/use-content-height.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/events/index.d.ts +2 -1
- package/internal/events/index.d.ts.map +1 -1
- package/internal/events/index.js +4 -6
- package/internal/events/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/property-filter/index.js +1 -1
- package/property-filter/index.js.map +1 -1
- package/side-navigation/index.js +2 -2
- package/side-navigation/index.js.map +1 -1
- package/side-navigation/internal.d.ts +2 -2
- package/side-navigation/internal.d.ts.map +1 -1
- package/side-navigation/internal.js +81 -15
- package/side-navigation/internal.js.map +1 -1
- package/side-navigation/styles.css.js +27 -26
- package/side-navigation/styles.scoped.css +39 -37
- package/side-navigation/styles.selectors.js +27 -26
- package/tabs/tab-header-bar.js +2 -2
- package/tabs/tab-header-bar.js.map +1 -1
- package/test-utils/dom/side-navigation/index.js +2 -2
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.js +2 -2
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/app-layout/drawer.d.ts.map +0 -1
- package/app-layout/drawer.js.map +0 -1
- package/app-layout/navigation-panel.d.ts +0 -21
- package/app-layout/navigation-panel.d.ts.map +0 -1
- package/app-layout/navigation-panel.js +0 -16
- package/app-layout/navigation-panel.js.map +0 -1
- package/app-layout/tools-and-split-panel.d.ts +0 -23
- package/app-layout/tools-and-split-panel.d.ts.map +0 -1
- package/app-layout/tools-and-split-panel.js +0 -20
- package/app-layout/tools-and-split-panel.js.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Drawer } from './drawer';
|
|
6
|
-
import styles from './styles.css.js';
|
|
7
|
-
import testutilStyles from './test-classes/styles.css.js';
|
|
8
|
-
export function NavigationPanel({ ariaLabels, footerHeight, headerHeight, isMobile, navigation, navigationDrawerWidth, navigationWidth, navigationOpen, onClick, onNavigationToggle, panelHeightStyle, toggleRefs, }) {
|
|
9
|
-
return (React.createElement("div", { className: styles['navigation-panel'], style: { width: navigationDrawerWidth } },
|
|
10
|
-
React.createElement("div", { className: clsx(styles['panel-wrapper-outer'], {
|
|
11
|
-
[styles.mobile]: isMobile,
|
|
12
|
-
[styles.open]: navigationOpen,
|
|
13
|
-
}), style: Object.assign({}, (isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle)) },
|
|
14
|
-
React.createElement(Drawer, { type: "navigation", isMobile: isMobile, width: navigationWidth, isOpen: navigationOpen, onToggle: onNavigationToggle, toggleRefs: toggleRefs, onClick: onClick, contentClassName: testutilStyles.navigation, closeClassName: testutilStyles['navigation-close'], toggleClassName: testutilStyles['navigation-toggle'], topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels }, navigation))));
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=navigation-panel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-panel.js","sourceRoot":"","sources":["../../../src/app-layout/navigation-panel.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsB,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAwB1D,MAAM,UAAU,eAAe,CAAC,EAC9B,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,GACW;IACrB,OAAO,CACL,6BAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;QACjF,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE;gBAC7C,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;gBACzB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,cAAc;aAC9B,CAAC,EACF,KAAK,oBACA,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;YAGhF,oBAAC,MAAM,IACL,IAAI,EAAC,YAAY,EACjB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,eAAe,EACtB,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,kBAAkB,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,cAAc,CAAC,UAAU,EAC3C,cAAc,EAAE,cAAc,CAAC,kBAAkB,CAAC,EAClD,eAAe,EAAE,cAAc,CAAC,mBAAmB,CAAC,EACpD,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAErB,UAAU,CACJ,CACL,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 from 'react';\nimport { AppLayoutProps } from './interfaces';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\nimport useContentHeight from './utils/use-content-height';\n\ninterface NavigationPanelProps {\n navigationOpen: boolean;\n\n navigationDrawerWidth: number;\n navigationWidth: number;\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n\n navigation: React.ReactNode;\n\n ariaLabels: AppLayoutProps['ariaLabels'];\n\n isMobile: boolean;\n\n onNavigationToggle: DesktopDrawerProps['onToggle'];\n onClick: DesktopDrawerProps['onClick'];\n\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n}\n\nexport function NavigationPanel({\n ariaLabels,\n footerHeight,\n headerHeight,\n isMobile,\n navigation,\n navigationDrawerWidth,\n navigationWidth,\n navigationOpen,\n onClick,\n onNavigationToggle,\n panelHeightStyle,\n toggleRefs,\n}: NavigationPanelProps) {\n return (\n <div className={styles['navigation-panel']} style={{ width: navigationDrawerWidth }}>\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: navigationOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n <Drawer\n type=\"navigation\"\n isMobile={isMobile}\n width={navigationWidth}\n isOpen={navigationOpen}\n onToggle={onNavigationToggle}\n toggleRefs={toggleRefs}\n onClick={onClick}\n contentClassName={testutilStyles.navigation}\n closeClassName={testutilStyles['navigation-close']}\n toggleClassName={testutilStyles['navigation-toggle']}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n >\n {navigation}\n </Drawer>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DesktopDrawerProps } from './drawer';
|
|
3
|
-
import { AppLayoutProps } from './interfaces';
|
|
4
|
-
import useContentHeight from './utils/use-content-height';
|
|
5
|
-
interface ToolsAndSplitPanelProps {
|
|
6
|
-
toolsHide: boolean;
|
|
7
|
-
toolsOpen: boolean;
|
|
8
|
-
drawerWidth: number;
|
|
9
|
-
toolsWidth: number;
|
|
10
|
-
headerHeight: DesktopDrawerProps['topOffset'];
|
|
11
|
-
footerHeight: DesktopDrawerProps['bottomOffset'];
|
|
12
|
-
panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];
|
|
13
|
-
tools: React.ReactNode;
|
|
14
|
-
splitPanel: React.ReactNode;
|
|
15
|
-
ariaLabels: AppLayoutProps['ariaLabels'];
|
|
16
|
-
isMobile: boolean;
|
|
17
|
-
onToolsToggle: DesktopDrawerProps['onToggle'];
|
|
18
|
-
toggleRefs: DesktopDrawerProps['toggleRefs'];
|
|
19
|
-
onLoseToolsFocus: (event: React.FocusEvent) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function ToolsAndSplitPanel({ ariaLabels, drawerWidth, footerHeight, headerHeight, isMobile, onToolsToggle, panelHeightStyle, splitPanel, toggleRefs, onLoseToolsFocus, tools, toolsHide, toolsOpen, toolsWidth, }: ToolsAndSplitPanelProps): JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=tools-and-split-panel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-and-split-panel.d.ts","sourceRoot":"","sources":["../../../src/app-layout/tools-and-split-panel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAU,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAI1D,UAAU,uBAAuB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC9C,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACjD,gBAAgB,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC1E,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC9C,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACrD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,uBAAuB,eAyCzB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Drawer } from './drawer';
|
|
6
|
-
import styles from './styles.css.js';
|
|
7
|
-
import testutilStyles from './test-classes/styles.css.js';
|
|
8
|
-
export function ToolsAndSplitPanel({ ariaLabels, drawerWidth, footerHeight, headerHeight, isMobile, onToolsToggle, panelHeightStyle, splitPanel, toggleRefs, onLoseToolsFocus, tools, toolsHide, toolsOpen, toolsWidth, }) {
|
|
9
|
-
return (React.createElement(React.Fragment, null,
|
|
10
|
-
React.createElement("div", { style: {
|
|
11
|
-
width: drawerWidth,
|
|
12
|
-
} },
|
|
13
|
-
React.createElement("div", { className: clsx(styles['panel-wrapper-outer'], {
|
|
14
|
-
[styles.mobile]: isMobile,
|
|
15
|
-
[styles.open]: toolsOpen,
|
|
16
|
-
}), style: Object.assign({}, (isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle)) },
|
|
17
|
-
splitPanel,
|
|
18
|
-
!toolsHide && (React.createElement(Drawer, { type: "tools", isMobile: isMobile, width: toolsWidth, isOpen: toolsOpen, onToggle: onToolsToggle, toggleRefs: toggleRefs, onLoseFocus: onLoseToolsFocus, contentClassName: testutilStyles.tools, closeClassName: testutilStyles['tools-close'], toggleClassName: testutilStyles['tools-toggle'], topOffset: headerHeight, bottomOffset: footerHeight, ariaLabels: ariaLabels }, tools))))));
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=tools-and-split-panel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools-and-split-panel.js","sourceRoot":"","sources":["../../../src/app-layout/tools-and-split-panel.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAsB,MAAM,EAAE,MAAM,UAAU,CAAC;AAGtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAmB1D,MAAM,UAAU,kBAAkB,CAAC,EACjC,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,GACc;IACxB,OAAO,CACL;QACE,6BACE,KAAK,EAAE;gBACL,KAAK,EAAE,WAAW;aACnB;YAED,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE;oBAC7C,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;oBACzB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS;iBACzB,CAAC,EACF,KAAK,oBACA,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;gBAG/E,UAAU;gBACV,CAAC,SAAS,IAAI,CACb,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,aAAa,EACvB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,gBAAgB,EAC7B,gBAAgB,EAAE,cAAc,CAAC,KAAK,EACtC,cAAc,EAAE,cAAc,CAAC,aAAa,CAAC,EAC7C,eAAe,EAAE,cAAc,CAAC,cAAc,CAAC,EAC/C,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAErB,KAAK,CACC,CACV,CACG,CACF,CACL,CACJ,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 from 'react';\nimport { DesktopDrawerProps, Drawer } from './drawer';\nimport { AppLayoutProps } from './interfaces';\nimport useContentHeight from './utils/use-content-height';\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface ToolsAndSplitPanelProps {\n toolsHide: boolean;\n toolsOpen: boolean;\n drawerWidth: number;\n toolsWidth: number;\n headerHeight: DesktopDrawerProps['topOffset'];\n footerHeight: DesktopDrawerProps['bottomOffset'];\n panelHeightStyle: ReturnType<typeof useContentHeight>['panelHeightStyle'];\n tools: React.ReactNode;\n splitPanel: React.ReactNode;\n ariaLabels: AppLayoutProps['ariaLabels'];\n isMobile: boolean;\n onToolsToggle: DesktopDrawerProps['onToggle'];\n toggleRefs: DesktopDrawerProps['toggleRefs'];\n onLoseToolsFocus: (event: React.FocusEvent) => void;\n}\n\nexport function ToolsAndSplitPanel({\n ariaLabels,\n drawerWidth,\n footerHeight,\n headerHeight,\n isMobile,\n onToolsToggle,\n panelHeightStyle,\n splitPanel,\n toggleRefs,\n onLoseToolsFocus,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n}: ToolsAndSplitPanelProps) {\n return (\n <>\n <div\n style={{\n width: drawerWidth,\n }}\n >\n <div\n className={clsx(styles['panel-wrapper-outer'], {\n [styles.mobile]: isMobile,\n [styles.open]: toolsOpen,\n })}\n style={{\n ...(isMobile ? { top: headerHeight, bottom: footerHeight } : panelHeightStyle),\n }}\n >\n {splitPanel}\n {!toolsHide && (\n <Drawer\n type=\"tools\"\n isMobile={isMobile}\n width={toolsWidth}\n isOpen={toolsOpen}\n onToggle={onToolsToggle}\n toggleRefs={toggleRefs}\n onLoseFocus={onLoseToolsFocus}\n contentClassName={testutilStyles.tools}\n closeClassName={testutilStyles['tools-close']}\n toggleClassName={testutilStyles['tools-toggle']}\n topOffset={headerHeight}\n bottomOffset={footerHeight}\n ariaLabels={ariaLabels}\n >\n {tools}\n </Drawer>\n )}\n </div>\n </div>\n </>\n );\n}\n"]}
|