@cloudscape-design/components 3.0.663 → 3.0.665
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/classic.d.ts.map +1 -1
- package/app-layout/classic.js +1 -0
- package/app-layout/classic.js.map +1 -1
- package/app-layout/drawer/drawers-helpers.d.ts +4 -1
- package/app-layout/drawer/drawers-helpers.d.ts.map +1 -1
- package/app-layout/drawer/drawers-helpers.js.map +1 -1
- package/app-layout/interfaces.d.ts +1 -1
- package/app-layout/interfaces.js.map +1 -1
- package/app-layout/internal.d.ts +6 -5
- package/app-layout/internal.d.ts.map +1 -1
- package/app-layout/internal.js +18 -2
- package/app-layout/internal.js.map +1 -1
- package/app-layout/utils/use-drawers.d.ts +1 -0
- package/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/app-layout/utils/use-drawers.js +1 -1
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/utils/use-focus-control.d.ts +1 -2
- package/app-layout/utils/use-focus-control.d.ts.map +1 -1
- package/app-layout/utils/use-focus-control.js.map +1 -1
- package/app-layout/utils/use-split-panel-focus-control.d.ts +1 -2
- package/app-layout/utils/use-split-panel-focus-control.d.ts.map +1 -1
- package/app-layout/utils/use-split-panel-focus-control.js.map +1 -1
- package/app-layout/visual-refresh/context.d.ts.map +1 -1
- package/app-layout/visual-refresh/context.js +1 -0
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/compute-layout.d.ts +33 -0
- package/app-layout/visual-refresh-toolbar/compute-layout.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/compute-layout.js +33 -0
- package/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/drawer/index.d.ts +9 -0
- package/app-layout/visual-refresh-toolbar/drawer/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/drawer/index.js +55 -0
- package/app-layout/visual-refresh-toolbar/drawer/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +11 -0
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +140 -0
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +12 -0
- package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +16 -0
- package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/drawer/use-resize.js +23 -0
- package/app-layout/visual-refresh-toolbar/drawer/use-resize.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/exports.d.ts +6 -0
- package/app-layout/visual-refresh-toolbar/exports.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/exports.js +8 -0
- package/app-layout/visual-refresh-toolbar/exports.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/index.d.ts +20 -0
- package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/index.js +172 -0
- package/app-layout/visual-refresh-toolbar/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts +41 -0
- package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/interfaces.js +4 -0
- package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/internal.d.ts +7 -0
- package/app-layout/visual-refresh-toolbar/internal.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/internal.js +14 -0
- package/app-layout/visual-refresh-toolbar/internal.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/navigation/index.d.ts +9 -0
- package/app-layout/visual-refresh-toolbar/navigation/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/navigation/index.js +32 -0
- package/app-layout/visual-refresh-toolbar/navigation/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +11 -0
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +155 -0
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +12 -0
- package/app-layout/visual-refresh-toolbar/notifications/index.d.ts +10 -0
- package/app-layout/visual-refresh-toolbar/notifications/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/notifications/index.js +17 -0
- package/app-layout/visual-refresh-toolbar/notifications/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/notifications/styles.css.js +6 -0
- package/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +8 -0
- package/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +7 -0
- package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +12 -0
- package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/skeleton/index.js +32 -0
- package/app-layout/visual-refresh-toolbar/skeleton/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts +15 -0
- package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js +8 -0
- package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +20 -0
- package/app-layout/{skeleton → visual-refresh-toolbar/skeleton}/styles.scoped.css +58 -24
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +21 -0
- package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +19 -0
- package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/split-panel/index.js +20 -0
- package/app-layout/visual-refresh-toolbar/split-panel/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +6 -0
- package/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +100 -0
- package/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +7 -0
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +8 -0
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +60 -0
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +9 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.js +52 -0
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +17 -0
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +214 -0
- package/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +18 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +20 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +18 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +11 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +243 -0
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +12 -0
- package/internal/base-component/styles.scoped.css +8 -6
- package/internal/components/tooltip/index.d.ts +2 -1
- package/internal/components/tooltip/index.d.ts.map +1 -1
- package/internal/components/tooltip/index.js +2 -2
- package/internal/components/tooltip/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +1 -0
- package/internal/generated/styles/tokens.js +3 -2
- package/internal/generated/theming/index.cjs +61 -26
- package/internal/generated/theming/index.js +61 -26
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/app-layout/implementation.d.ts +0 -50
- package/app-layout/implementation.d.ts.map +0 -1
- package/app-layout/implementation.js +0 -13
- package/app-layout/implementation.js.map +0 -1
- package/app-layout/skeleton/index.d.ts +0 -4
- package/app-layout/skeleton/index.d.ts.map +0 -1
- package/app-layout/skeleton/index.js +0 -10
- package/app-layout/skeleton/index.js.map +0 -1
- package/app-layout/skeleton/layout.d.ts +0 -8
- package/app-layout/skeleton/layout.d.ts.map +0 -1
- package/app-layout/skeleton/layout.js +0 -28
- package/app-layout/skeleton/layout.js.map +0 -1
- package/app-layout/skeleton/styles.css.js +0 -16
- package/app-layout/skeleton/styles.selectors.js +0 -17
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AppLayoutProps } from './interfaces';
|
|
3
|
-
export declare const AppLayoutImplementation: React.ForwardRefExoticComponent<Omit<AppLayoutProps, "headerSelector" | "footerSelector"> & {
|
|
4
|
-
contentType: AppLayoutProps.ContentType;
|
|
5
|
-
navigationOpen: boolean;
|
|
6
|
-
navigationWidth: number;
|
|
7
|
-
toolsWidth: number;
|
|
8
|
-
minContentWidth: number;
|
|
9
|
-
onNavigationChange: import("../internal/events").NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;
|
|
10
|
-
} & {
|
|
11
|
-
placement: {
|
|
12
|
-
insetBlockStart: number;
|
|
13
|
-
insetBlockEnd: number;
|
|
14
|
-
insetInlineStart: number;
|
|
15
|
-
insetInlineEnd: number;
|
|
16
|
-
inlineSize: number;
|
|
17
|
-
};
|
|
18
|
-
} & React.RefAttributes<AppLayoutProps.Ref>>;
|
|
19
|
-
export declare const createWidgetizedAppLayout: (Loader?: React.ForwardRefExoticComponent<Omit<AppLayoutProps, "headerSelector" | "footerSelector"> & {
|
|
20
|
-
contentType: AppLayoutProps.ContentType;
|
|
21
|
-
navigationOpen: boolean;
|
|
22
|
-
navigationWidth: number;
|
|
23
|
-
toolsWidth: number;
|
|
24
|
-
minContentWidth: number;
|
|
25
|
-
onNavigationChange: import("../internal/events").NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;
|
|
26
|
-
} & {
|
|
27
|
-
placement: {
|
|
28
|
-
insetBlockStart: number;
|
|
29
|
-
insetBlockEnd: number;
|
|
30
|
-
insetInlineStart: number;
|
|
31
|
-
insetInlineEnd: number;
|
|
32
|
-
inlineSize: number;
|
|
33
|
-
};
|
|
34
|
-
} & React.RefAttributes<AppLayoutProps.Ref>> | undefined) => React.ForwardRefExoticComponent<Omit<AppLayoutProps, "headerSelector" | "footerSelector"> & {
|
|
35
|
-
contentType: AppLayoutProps.ContentType;
|
|
36
|
-
navigationOpen: boolean;
|
|
37
|
-
navigationWidth: number;
|
|
38
|
-
toolsWidth: number;
|
|
39
|
-
minContentWidth: number;
|
|
40
|
-
onNavigationChange: import("../internal/events").NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;
|
|
41
|
-
} & {
|
|
42
|
-
placement: {
|
|
43
|
-
insetBlockStart: number;
|
|
44
|
-
insetBlockEnd: number;
|
|
45
|
-
insetInlineStart: number;
|
|
46
|
-
insetInlineEnd: number;
|
|
47
|
-
inlineSize: number;
|
|
48
|
-
};
|
|
49
|
-
} & React.RefAttributes<AppLayoutProps.Ref>>;
|
|
50
|
-
//# sourceMappingURL=implementation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.d.ts","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,cAAc,EAA8B,MAAM,cAAc,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;4CAKnC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAIZ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
5
|
-
import { createWidgetizedForwardRef } from '../internal/widgets';
|
|
6
|
-
import ClassicAppLayout from './classic';
|
|
7
|
-
import RefreshedAppLayout from './visual-refresh';
|
|
8
|
-
export const AppLayoutImplementation = React.forwardRef((props, ref) => {
|
|
9
|
-
const isRefresh = useVisualRefresh();
|
|
10
|
-
return isRefresh ? React.createElement(RefreshedAppLayout, Object.assign({ ref: ref }, props)) : React.createElement(ClassicAppLayout, Object.assign({ ref: ref }, props));
|
|
11
|
-
});
|
|
12
|
-
export const createWidgetizedAppLayout = createWidgetizedForwardRef(AppLayoutImplementation);
|
|
13
|
-
//# sourceMappingURL=implementation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/app-layout/implementation.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,gBAAgB,MAAM,WAAW,CAAC;AACzC,OAAO,kBAAkB,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC,UAAU,CACrD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACb,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,SAAS,CAAC,CAAC,CAAC,oBAAC,kBAAkB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC,CAAC,CAAC,oBAAC,gBAAgB,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AAC7G,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,0BAA0B,CAIjE,uBAAuB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { createWidgetizedForwardRef } from '../internal/widgets';\nimport ClassicAppLayout from './classic';\nimport RefreshedAppLayout from './visual-refresh';\nimport { AppLayoutProps, AppLayoutPropsWithDefaults } from './interfaces';\n\nexport const AppLayoutImplementation = React.forwardRef<AppLayoutProps.Ref, AppLayoutPropsWithDefaults>(\n (props, ref) => {\n const isRefresh = useVisualRefresh();\n return isRefresh ? <RefreshedAppLayout ref={ref} {...props} /> : <ClassicAppLayout ref={ref} {...props} />;\n }\n);\n\nexport const createWidgetizedAppLayout = createWidgetizedForwardRef<\n AppLayoutPropsWithDefaults,\n AppLayoutProps.Ref,\n typeof AppLayoutImplementation\n>(AppLayoutImplementation);\n"]}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AppLayoutPropsWithDefaults } from '../interfaces';
|
|
3
|
-
export declare function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, disableContentPaddings, }: AppLayoutPropsWithDefaults): JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAG3D,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACvB,EAAE,0BAA0B,eAmB5B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SkeletonLayout } from './layout';
|
|
5
|
-
export function AppLayoutSkeleton({ notifications, contentHeader, content, navigation, navigationHide, navigationOpen, navigationWidth, tools, toolsHide, toolsOpen, toolsWidth, placement, contentType, maxContentWidth, disableContentPaddings, }) {
|
|
6
|
-
// render nothing in the skeleton state
|
|
7
|
-
const placeholder = React.createElement(React.Fragment, null);
|
|
8
|
-
return (React.createElement(SkeletonLayout, { topBar: placeholder, notifications: notifications, contentHeader: contentHeader, content: content, navigation: !navigationHide && navigationOpen && navigation && placeholder, navigationWidth: navigationWidth, tools: !toolsHide && toolsOpen && tools && placeholder, toolsWidth: toolsWidth, placement: placement, contentType: contentType, maxContentWidth: maxContentWidth, disableContentPaddings: disableContentPaddings }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAC,EAChC,aAAa,EACb,aAAa,EACb,OAAO,EAEP,UAAU,EACV,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACK;IAC3B,uCAAuC;IACvC,MAAM,WAAW,GAAG,yCAAK,CAAC;IAC1B,OAAO,CACL,oBAAC,cAAc,IACb,MAAM,EAAE,WAAW,EACnB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,CAAC,cAAc,IAAI,cAAc,IAAI,UAAU,IAAI,WAAW,EAC1E,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,CAAC,SAAS,IAAI,SAAS,IAAI,KAAK,IAAI,WAAW,EACtD,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport { SkeletonLayout } from './layout';\n\nexport function AppLayoutSkeleton({\n notifications,\n contentHeader,\n content,\n\n navigation,\n navigationHide,\n navigationOpen,\n navigationWidth,\n tools,\n toolsHide,\n toolsOpen,\n toolsWidth,\n\n placement,\n contentType,\n maxContentWidth,\n disableContentPaddings,\n}: AppLayoutPropsWithDefaults) {\n // render nothing in the skeleton state\n const placeholder = <></>;\n return (\n <SkeletonLayout\n topBar={placeholder}\n notifications={notifications}\n contentHeader={contentHeader}\n content={content}\n navigation={!navigationHide && navigationOpen && navigation && placeholder}\n navigationWidth={navigationWidth}\n tools={!toolsHide && toolsOpen && tools && placeholder}\n toolsWidth={toolsWidth}\n placement={placement}\n contentType={contentType}\n maxContentWidth={maxContentWidth}\n disableContentPaddings={disableContentPaddings}\n />\n );\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AppLayoutPropsWithDefaults } from '../interfaces';
|
|
3
|
-
interface SkeletonLayoutProps extends Pick<AppLayoutPropsWithDefaults, 'notifications' | 'contentHeader' | 'content' | 'contentType' | 'maxContentWidth' | 'disableContentPaddings' | 'navigation' | 'navigationWidth' | 'tools' | 'toolsWidth' | 'placement'> {
|
|
4
|
-
topBar?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, disableContentPaddings, }: SkeletonLayoutProps): JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAO3D,UAAU,mBACR,SAAQ,IAAI,CACV,0BAA0B,EACxB,eAAe,GACf,eAAe,GACf,SAAS,GACT,aAAa,GACb,iBAAiB,GACjB,wBAAwB,GACxB,YAAY,GACZ,iBAAiB,GACjB,OAAO,GACP,YAAY,GACZ,WAAW,CACd;IACD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,wBAAgB,cAAc,CAAC,EAC7B,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,eAAe,EACf,KAAK,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACvB,EAAE,mBAAmB,eA2BrB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import styles from './styles.css.js';
|
|
5
|
-
import customCssProps from '../../internal/generated/custom-css-properties';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
|
-
const contentTypeCustomWidths = ['dashboard', 'cards', 'table'];
|
|
8
|
-
export function SkeletonLayout({ notifications, contentHeader, content, navigation, navigationWidth, tools, toolsWidth, topBar, placement, contentType, maxContentWidth, disableContentPaddings, }) {
|
|
9
|
-
const isMaxWidth = maxContentWidth === Number.MAX_VALUE || maxContentWidth === Number.MAX_SAFE_INTEGER;
|
|
10
|
-
return (React.createElement("div", { className: clsx(styles.root, {
|
|
11
|
-
[styles['has-adaptive-widths-default']]: !contentTypeCustomWidths.includes(contentType),
|
|
12
|
-
[styles['has-adaptive-widths-dashboard']]: contentType === 'dashboard',
|
|
13
|
-
}), style: {
|
|
14
|
-
minBlockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,
|
|
15
|
-
[customCssProps.maxContentWidth]: isMaxWidth ? '100%' : maxContentWidth ? `${maxContentWidth}px` : '',
|
|
16
|
-
[customCssProps.navigationWidth]: `${navigationWidth}px`,
|
|
17
|
-
[customCssProps.toolsWidth]: `${toolsWidth}px`,
|
|
18
|
-
} },
|
|
19
|
-
React.createElement("section", { className: styles['top-bar'] }, topBar),
|
|
20
|
-
navigation && React.createElement("div", { className: styles.navigation }, navigation),
|
|
21
|
-
React.createElement("main", { className: styles['main-landmark'] },
|
|
22
|
-
notifications && React.createElement("div", { className: styles.notifications }, notifications),
|
|
23
|
-
React.createElement("div", { className: clsx(styles.main, { [styles['main-disable-paddings']]: disableContentPaddings }) },
|
|
24
|
-
contentHeader && React.createElement("div", { className: styles['content-header'] }, contentHeader),
|
|
25
|
-
React.createElement("div", null, content))),
|
|
26
|
-
tools && React.createElement("div", { className: styles.tools }, tools)));
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../../src/app-layout/skeleton/layout.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,uBAAuB,GAA8B,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAoB3F,MAAM,UAAU,cAAc,CAAC,EAC7B,aAAa,EACb,aAAa,EACb,OAAO,EACP,UAAU,EACV,eAAe,EACf,KAAK,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,eAAe,EACf,sBAAsB,GACF;IACpB,MAAM,UAAU,GAAG,eAAe,KAAK,MAAM,CAAC,SAAS,IAAI,eAAe,KAAK,MAAM,CAAC,gBAAgB,CAAC;IACvG,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;YAC3B,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,QAAQ,CAAC,WAAW,CAAC;YACvF,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC,EAAE,WAAW,KAAK,WAAW;SACvE,CAAC,EACF,KAAK,EAAE;YACL,YAAY,EAAE,gBAAgB,SAAS,CAAC,eAAe,QAAQ,SAAS,CAAC,aAAa,KAAK;YAC3F,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,IAAI,CAAC,CAAC,CAAC,EAAE;YACrG,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,GAAG,eAAe,IAAI;YACxD,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,GAAG,UAAU,IAAI;SAC/C;QAED,iCAAS,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAG,MAAM,CAAW;QACxD,UAAU,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,UAAU,IAAG,UAAU,CAAO;QACpE,8BAAM,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC;YACrC,aAAa,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa,IAAG,aAAa,CAAO;YAC7E,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC;gBAC7F,aAAa,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,IAAG,aAAa,CAAO;gBACjF,iCAAM,OAAO,CAAO,CAChB,CACD;QACN,KAAK,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,KAAK,CAAO,CACjD,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { AppLayoutPropsWithDefaults } from '../interfaces';\nimport styles from './styles.css.js';\nimport customCssProps from '../../internal/generated/custom-css-properties';\nimport clsx from 'clsx';\n\nconst contentTypeCustomWidths: Array<string | undefined> = ['dashboard', 'cards', 'table'];\n\ninterface SkeletonLayoutProps\n extends Pick<\n AppLayoutPropsWithDefaults,\n | 'notifications'\n | 'contentHeader'\n | 'content'\n | 'contentType'\n | 'maxContentWidth'\n | 'disableContentPaddings'\n | 'navigation'\n | 'navigationWidth'\n | 'tools'\n | 'toolsWidth'\n | 'placement'\n > {\n topBar?: React.ReactNode;\n}\n\nexport function SkeletonLayout({\n notifications,\n contentHeader,\n content,\n navigation,\n navigationWidth,\n tools,\n toolsWidth,\n topBar,\n placement,\n contentType,\n maxContentWidth,\n disableContentPaddings,\n}: SkeletonLayoutProps) {\n const isMaxWidth = maxContentWidth === Number.MAX_VALUE || maxContentWidth === Number.MAX_SAFE_INTEGER;\n return (\n <div\n className={clsx(styles.root, {\n [styles['has-adaptive-widths-default']]: !contentTypeCustomWidths.includes(contentType),\n [styles['has-adaptive-widths-dashboard']]: contentType === 'dashboard',\n })}\n style={{\n minBlockSize: `calc(100vh - ${placement.insetBlockStart}px - ${placement.insetBlockEnd}px)`,\n [customCssProps.maxContentWidth]: isMaxWidth ? '100%' : maxContentWidth ? `${maxContentWidth}px` : '',\n [customCssProps.navigationWidth]: `${navigationWidth}px`,\n [customCssProps.toolsWidth]: `${toolsWidth}px`,\n }}\n >\n <section className={styles['top-bar']}>{topBar}</section>\n {navigation && <div className={styles.navigation}>{navigation}</div>}\n <main className={styles['main-landmark']}>\n {notifications && <div className={styles.notifications}>{notifications}</div>}\n <div className={clsx(styles.main, { [styles['main-disable-paddings']]: disableContentPaddings })}>\n {contentHeader && <div className={styles['content-header']}>{contentHeader}</div>}\n <div>{content}</div>\n </div>\n </main>\n {tools && <div className={styles.tools}>{tools}</div>}\n </div>\n );\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import './styles.scoped.css';
|
|
3
|
-
export default {
|
|
4
|
-
"root": "awsui_root_1uxbz_1ayfw_101",
|
|
5
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_1uxbz_1ayfw_150",
|
|
6
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_1uxbz_1ayfw_165",
|
|
7
|
-
"navigation": "awsui_navigation_1uxbz_1ayfw_180",
|
|
8
|
-
"tools": "awsui_tools_1uxbz_1ayfw_181",
|
|
9
|
-
"top-bar": "awsui_top-bar_1uxbz_1ayfw_204",
|
|
10
|
-
"notifications": "awsui_notifications_1uxbz_1ayfw_210",
|
|
11
|
-
"main-landmark": "awsui_main-landmark_1uxbz_1ayfw_217",
|
|
12
|
-
"main": "awsui_main_1uxbz_1ayfw_217",
|
|
13
|
-
"main-disable-paddings": "awsui_main-disable-paddings_1uxbz_1ayfw_226",
|
|
14
|
-
"content-header": "awsui_content-header_1uxbz_1ayfw_236"
|
|
15
|
-
};
|
|
16
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// es-module interop with Babel and Typescript
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
module.exports.default = {
|
|
5
|
-
"root": "awsui_root_1uxbz_1ayfw_101",
|
|
6
|
-
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_1uxbz_1ayfw_150",
|
|
7
|
-
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_1uxbz_1ayfw_165",
|
|
8
|
-
"navigation": "awsui_navigation_1uxbz_1ayfw_180",
|
|
9
|
-
"tools": "awsui_tools_1uxbz_1ayfw_181",
|
|
10
|
-
"top-bar": "awsui_top-bar_1uxbz_1ayfw_204",
|
|
11
|
-
"notifications": "awsui_notifications_1uxbz_1ayfw_210",
|
|
12
|
-
"main-landmark": "awsui_main-landmark_1uxbz_1ayfw_217",
|
|
13
|
-
"main": "awsui_main_1uxbz_1ayfw_217",
|
|
14
|
-
"main-disable-paddings": "awsui_main-disable-paddings_1uxbz_1ayfw_226",
|
|
15
|
-
"content-header": "awsui_content-header_1uxbz_1ayfw_236"
|
|
16
|
-
};
|
|
17
|
-
|