@cloudscape-design/components 3.0.284 → 3.0.285
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +8 -3
- package/app-layout/index.js.map +1 -1
- package/app-layout/mobile-toolbar/index.d.ts +2 -1
- package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
- package/app-layout/mobile-toolbar/index.js +2 -2
- package/app-layout/mobile-toolbar/index.js.map +1 -1
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +72 -72
- package/app-layout/visual-refresh/styles.scoped.css +275 -274
- package/app-layout/visual-refresh/styles.selectors.js +72 -72
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +45 -45
- package/column-layout/styles.selectors.js +13 -13
- package/container/internal.d.ts +2 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +2 -2
- package/container/internal.js.map +1 -1
- package/container/use-sticky-header.d.ts +12 -1
- package/container/use-sticky-header.d.ts.map +1 -1
- package/container/use-sticky-header.js +41 -16
- package/container/use-sticky-header.js.map +1 -1
- package/flashbar/styles.css.js +45 -45
- package/flashbar/styles.scoped.css +169 -169
- package/flashbar/styles.selectors.js +45 -45
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +4 -1
- package/header/internal.js.map +1 -1
- package/internal/base-component/styles.scoped.css +0 -3
- package/internal/context/app-layout-context.d.ts +1 -0
- package/internal/context/app-layout-context.d.ts.map +1 -1
- package/internal/context/app-layout-context.js +1 -0
- package/internal/context/app-layout-context.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +32 -31
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/theming/index.cjs +0 -11
- package/internal/generated/theming/index.js +0 -11
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +3 -5
- package/table/internal.js.map +1 -1
- package/tiles/styles.css.js +28 -28
- package/tiles/styles.scoped.css +70 -70
- package/tiles/styles.selectors.js +28 -28
|
@@ -2,50 +2,50 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"notification-bar": "awsui_notification-
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"collapsible": "
|
|
28
|
-
"short-list": "awsui_short-
|
|
29
|
-
"visual-refresh": "awsui_visual-
|
|
30
|
-
"status": "
|
|
31
|
-
"header": "
|
|
32
|
-
"item-count": "awsui_item-
|
|
33
|
-
"button": "
|
|
34
|
-
"type-count": "awsui_type-
|
|
35
|
-
"count-number": "awsui_count-
|
|
36
|
-
"icon": "
|
|
37
|
-
"floating": "
|
|
38
|
-
"flashbar": "
|
|
39
|
-
"flash-refresh": "awsui_flash-
|
|
40
|
-
"flash-list": "awsui_flash-
|
|
41
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
42
|
-
"flash-text": "awsui_flash-
|
|
43
|
-
"dismiss-button": "awsui_dismiss-
|
|
44
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
45
|
-
"action-button": "awsui_action-
|
|
46
|
-
"flash-type-success": "awsui_flash-type-
|
|
47
|
-
"flash-type-error": "awsui_flash-type-
|
|
48
|
-
"flash-type-warning": "awsui_flash-type-
|
|
49
|
-
"flash-type-info": "awsui_flash-type-
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_1psfn_93",
|
|
6
|
+
"enter": "awsui_enter_1q84n_1psfn_93",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_1psfn_107",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_1psfn_107",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_1psfn_107",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_1psfn_108",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_1psfn_109",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_1psfn_110",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_1psfn_133",
|
|
14
|
+
"entering": "awsui_entering_1q84n_1psfn_146",
|
|
15
|
+
"entered": "awsui_entered_1q84n_1psfn_167",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_1psfn_272",
|
|
17
|
+
"stack": "awsui_stack_1q84n_1psfn_294",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_1psfn_294",
|
|
19
|
+
"item": "awsui_item_1q84n_1psfn_294",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_1psfn_295",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_1psfn_296",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_1psfn_316",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_1psfn_316",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_1psfn_316",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_1psfn_316",
|
|
26
|
+
"flash": "awsui_flash_1q84n_1psfn_93",
|
|
27
|
+
"collapsible": "awsui_collapsible_1q84n_1psfn_380",
|
|
28
|
+
"short-list": "awsui_short-list_1q84n_1psfn_386",
|
|
29
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_1psfn_386",
|
|
30
|
+
"status": "awsui_status_1q84n_1psfn_603",
|
|
31
|
+
"header": "awsui_header_1q84n_1psfn_603",
|
|
32
|
+
"item-count": "awsui_item-count_1q84n_1psfn_604",
|
|
33
|
+
"button": "awsui_button_1q84n_1psfn_605",
|
|
34
|
+
"type-count": "awsui_type-count_1q84n_1psfn_640",
|
|
35
|
+
"count-number": "awsui_count-number_1q84n_1psfn_640",
|
|
36
|
+
"icon": "awsui_icon_1q84n_1psfn_674",
|
|
37
|
+
"floating": "awsui_floating_1q84n_1psfn_712",
|
|
38
|
+
"flashbar": "awsui_flashbar_1q84n_1psfn_720",
|
|
39
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_1psfn_766",
|
|
40
|
+
"flash-list": "awsui_flash-list_1q84n_1psfn_295",
|
|
41
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_1psfn_785",
|
|
42
|
+
"flash-text": "awsui_flash-text_1q84n_1psfn_812",
|
|
43
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_1psfn_110",
|
|
44
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_1psfn_853",
|
|
45
|
+
"action-button": "awsui_action-button_1q84n_1psfn_109",
|
|
46
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_1psfn_866",
|
|
47
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_1psfn_870",
|
|
48
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_1psfn_874",
|
|
49
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_1psfn_878"
|
|
50
50
|
};
|
|
51
51
|
|
package/header/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["header/internal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["header/internal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,UAAU,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACpG,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,iBAAwB,EACxB,wBAAwB,EACxB,GAAG,SAAS,EACb,EAAE,mBAAmB,eAsErB"}
|
package/header/internal.js
CHANGED
|
@@ -7,13 +7,16 @@ import { getBaseProps } from '../internal/base-component';
|
|
|
7
7
|
import { StickyHeaderContext } from '../container/use-sticky-header';
|
|
8
8
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
9
9
|
import styles from './styles.css.js';
|
|
10
|
+
import { useMobile } from '../internal/hooks/use-mobile';
|
|
10
11
|
export default function InternalHeader(_a) {
|
|
11
12
|
var { variant, headingTagOverride, children, actions, counter, description, info, __internalRootRef = null, __disableActionsWrapping } = _a, restProps = __rest(_a, ["variant", "headingTagOverride", "children", "actions", "counter", "description", "info", "__internalRootRef", "__disableActionsWrapping"]);
|
|
13
|
+
const isMobile = useMobile();
|
|
12
14
|
const HeadingTag = headingTagOverride !== null && headingTagOverride !== void 0 ? headingTagOverride : (variant === 'awsui-h1-sticky' ? 'h1' : variant);
|
|
13
15
|
const { isStuck } = useContext(StickyHeaderContext);
|
|
14
16
|
const baseProps = getBaseProps(restProps);
|
|
15
17
|
const isRefresh = useVisualRefresh();
|
|
16
|
-
|
|
18
|
+
// If is mobile there is no need to have the dynamic variant because it's scrolled out of view
|
|
19
|
+
const dynamicVariant = !isMobile && isStuck ? 'h2' : 'h1';
|
|
17
20
|
const variantOverride = variant === 'awsui-h1-sticky' ? (isRefresh ? dynamicVariant : 'h2') : variant;
|
|
18
21
|
return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(styles.root, baseProps.className, styles[`root-variant-${variantOverride}`], isRefresh && styles[`root-variant-${variantOverride}-refresh`], !actions && [styles[`root-no-actions`]], description && [styles[`root-has-description`]], __disableActionsWrapping && [styles['root-no-wrap']]), ref: __internalRootRef }),
|
|
19
22
|
React.createElement("div", { className: clsx(styles.main, styles[`main-variant-${variantOverride}`], isRefresh && styles[`main-variant-${variantOverride}-refresh`]) },
|
package/header/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["header/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["header/internal.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useContext } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { StickyHeaderContext } from '../container/use-sticky-header';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { HeaderProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { SomeRequired } from '../internal/types';\nimport { useMobile } from '../internal/hooks/use-mobile';\n\ninterface InternalHeaderProps extends SomeRequired<HeaderProps, 'variant'>, InternalBaseComponentProps {\n __disableActionsWrapping?: boolean;\n}\n\nexport default function InternalHeader({\n variant,\n headingTagOverride,\n children,\n actions,\n counter,\n description,\n info,\n __internalRootRef = null,\n __disableActionsWrapping,\n ...restProps\n}: InternalHeaderProps) {\n const isMobile = useMobile();\n const HeadingTag = headingTagOverride ?? (variant === 'awsui-h1-sticky' ? 'h1' : variant);\n const { isStuck } = useContext(StickyHeaderContext);\n const baseProps = getBaseProps(restProps);\n const isRefresh = useVisualRefresh();\n // If is mobile there is no need to have the dynamic variant because it's scrolled out of view\n const dynamicVariant = !isMobile && isStuck ? 'h2' : 'h1';\n const variantOverride = variant === 'awsui-h1-sticky' ? (isRefresh ? dynamicVariant : 'h2') : variant;\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n styles[`root-variant-${variantOverride}`],\n isRefresh && styles[`root-variant-${variantOverride}-refresh`],\n !actions && [styles[`root-no-actions`]],\n description && [styles[`root-has-description`]],\n __disableActionsWrapping && [styles['root-no-wrap']]\n )}\n ref={__internalRootRef}\n >\n <div\n className={clsx(\n styles.main,\n styles[`main-variant-${variantOverride}`],\n isRefresh && styles[`main-variant-${variantOverride}-refresh`]\n )}\n >\n <div\n className={clsx(\n styles.title,\n styles[`title-variant-${variantOverride}`],\n isRefresh && styles[`title-variant-${variantOverride}-refresh`]\n )}\n >\n <HeadingTag className={clsx(styles.heading, styles[`heading-variant-${variantOverride}`])}>\n <span className={clsx(styles['heading-text'], styles[`heading-text-variant-${variantOverride}`])}>\n {children}\n </span>\n {counter !== undefined && <span className={styles.counter}> {counter}</span>}\n </HeadingTag>\n {info && <span className={styles.info}>{info}</span>}\n </div>\n {description && (\n <p\n className={clsx(\n styles.description,\n styles[`description-variant-${variantOverride}`],\n isRefresh && styles[`description-variant-${variantOverride}-refresh`]\n )}\n >\n {description}\n </p>\n )}\n </div>\n {actions && (\n <div\n className={clsx(\n styles.actions,\n styles[`actions-variant-${variantOverride}`],\n isRefresh && styles[`actions-variant-${variantOverride}-refresh`]\n )}\n >\n {actions}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -542,7 +542,6 @@
|
|
|
542
542
|
--space-table-embedded-header-top-zf07fk:0px;
|
|
543
543
|
--space-table-footer-horizontal-8o6sk8:0px;
|
|
544
544
|
--space-tabs-focus-outline-gutter-64zu5e:-8px;
|
|
545
|
-
--space-text-grid-vertical-tj8m1c:16px;
|
|
546
545
|
--space-scaled-2x-xxs-40awim:4px;
|
|
547
546
|
--space-scaled-2x-s-9svxjy:12px;
|
|
548
547
|
--space-scaled-2x-l-yejodm:20px;
|
|
@@ -966,7 +965,6 @@
|
|
|
966
965
|
--space-table-header-focus-outline-gutter-rbx7m7:-1px;
|
|
967
966
|
--space-tabs-content-top-mn4c9x:8px;
|
|
968
967
|
--space-table-content-top-t15dd1:8px;
|
|
969
|
-
--space-text-grid-vertical-tj8m1c:12px;
|
|
970
968
|
--space-scaled-2x-xxs-40awim:0px;
|
|
971
969
|
--space-scaled-2x-s-9svxjy:4px;
|
|
972
970
|
--space-scaled-2x-l-yejodm:12px;
|
|
@@ -1011,7 +1009,6 @@
|
|
|
1011
1009
|
--space-panel-split-top-0y4u4f:16px;
|
|
1012
1010
|
--space-tabs-content-top-mn4c9x:8px;
|
|
1013
1011
|
--space-table-content-top-t15dd1:8px;
|
|
1014
|
-
--space-text-grid-vertical-tj8m1c:12px;
|
|
1015
1012
|
--space-scaled-xxxs-lo883m:0px;
|
|
1016
1013
|
--space-scaled-xxs-95dhkm:2px;
|
|
1017
1014
|
--space-scaled-xs-6859qs:4px;
|
|
@@ -3,6 +3,7 @@ export interface AppLayoutContextProps {
|
|
|
3
3
|
stickyOffsetBottom: number;
|
|
4
4
|
stickyOffsetTop: number;
|
|
5
5
|
hasBreadcrumbs: boolean;
|
|
6
|
+
mobileBarHeight?: number;
|
|
6
7
|
setHasStickyBackground?: (hasBackground: boolean) => void;
|
|
7
8
|
}
|
|
8
9
|
export declare const AppLayoutContext: import("react").Context<AppLayoutContextProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-layout-context.d.ts","sourceRoot":"lib/default/","sources":["internal/context/app-layout-context.ts"],"names":[],"mappings":";AAIA,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"app-layout-context.d.ts","sourceRoot":"lib/default/","sources":["internal/context/app-layout-context.ts"],"names":[],"mappings":";AAIA,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,gBAAgB,gDAK3B,CAAC;AAEH,wBAAgB,mBAAmB,0BAElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-layout-context.js","sourceRoot":"lib/default/","sources":["internal/context/app-layout-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app-layout-context.js","sourceRoot":"lib/default/","sources":["internal/context/app-layout-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAUlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAwB;IACnE,eAAe,EAAE,CAAC;IAClB,kBAAkB,EAAE,CAAC;IACrB,eAAe,EAAE,CAAC;IAClB,cAAc,EAAE,KAAK;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB;IACjC,OAAO,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACtC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useContext, createContext } from 'react';\n\nexport interface AppLayoutContextProps {\n stickyOffsetBottom: number;\n stickyOffsetTop: number;\n hasBreadcrumbs: boolean;\n mobileBarHeight?: number;\n setHasStickyBackground?: (hasBackground: boolean) => void;\n}\n\nexport const AppLayoutContext = createContext<AppLayoutContextProps>({\n stickyOffsetTop: 0,\n stickyOffsetBottom: 0,\n mobileBarHeight: 0,\n hasBreadcrumbs: false,\n});\n\nexport function useAppLayoutContext() {\n return useContext(AppLayoutContext);\n}\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiClD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
const customCSSPropertiesMap = {
|
|
2
|
-
activeDrawerWidth: '--awsui-active-drawer-width-
|
|
3
|
-
offsetTop: '--awsui-offset-top-
|
|
4
|
-
offsetTopWithNotifications: '--awsui-offset-top-with-notifications-
|
|
5
|
-
contentGapLeft: '--awsui-content-gap-left-
|
|
6
|
-
contentGapRight: '--awsui-content-gap-right-
|
|
7
|
-
contentHeight: '--awsui-content-height-
|
|
8
|
-
defaultMaxContentWidth: '--awsui-default-max-content-width-
|
|
9
|
-
defaultMinContentWidth: '--awsui-default-min-content-width-
|
|
10
|
-
footerHeight: '--awsui-footer-height-
|
|
11
|
-
headerHeight: '--awsui-header-height-
|
|
12
|
-
layoutWidth: '--awsui-layout-width-
|
|
13
|
-
mainOffsetLeft: '--awsui-main-offset-left-
|
|
14
|
-
maxContentWidth: '--awsui-max-content-width-
|
|
15
|
-
minContentWidth: '--awsui-min-content-width-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
activeDrawerWidth: '--awsui-active-drawer-width-rrnppm',
|
|
3
|
+
offsetTop: '--awsui-offset-top-rrnppm',
|
|
4
|
+
offsetTopWithNotifications: '--awsui-offset-top-with-notifications-rrnppm',
|
|
5
|
+
contentGapLeft: '--awsui-content-gap-left-rrnppm',
|
|
6
|
+
contentGapRight: '--awsui-content-gap-right-rrnppm',
|
|
7
|
+
contentHeight: '--awsui-content-height-rrnppm',
|
|
8
|
+
defaultMaxContentWidth: '--awsui-default-max-content-width-rrnppm',
|
|
9
|
+
defaultMinContentWidth: '--awsui-default-min-content-width-rrnppm',
|
|
10
|
+
footerHeight: '--awsui-footer-height-rrnppm',
|
|
11
|
+
headerHeight: '--awsui-header-height-rrnppm',
|
|
12
|
+
layoutWidth: '--awsui-layout-width-rrnppm',
|
|
13
|
+
mainOffsetLeft: '--awsui-main-offset-left-rrnppm',
|
|
14
|
+
maxContentWidth: '--awsui-max-content-width-rrnppm',
|
|
15
|
+
minContentWidth: '--awsui-min-content-width-rrnppm',
|
|
16
|
+
mobileBarHeight: '--awsui-mobile-bar-height-rrnppm',
|
|
17
|
+
notificationsHeight: '--awsui-notifications-height-rrnppm',
|
|
18
|
+
overlapHeight: '--awsui-overlap-height-rrnppm',
|
|
19
|
+
navigationWidth: '--awsui-navigation-width-rrnppm',
|
|
20
|
+
splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-rrnppm',
|
|
21
|
+
splitPanelReportedSize: '--awsui-split-panel-reported-size-rrnppm',
|
|
22
|
+
splitPanelHeight: '--awsui-split-panel-height-rrnppm',
|
|
23
|
+
splitPanelMinWidth: '--awsui-split-panel-min-width-rrnppm',
|
|
24
|
+
splitPanelMaxWidth: '--awsui-split-panel-max-width-rrnppm',
|
|
25
|
+
toolsMaxWidth: '--awsui-tools-max-width-rrnppm',
|
|
26
|
+
toolsWidth: '--awsui-tools-width-rrnppm',
|
|
27
|
+
toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-rrnppm',
|
|
28
|
+
contentScrollMargin: '--awsui-content-scroll-margin-rrnppm',
|
|
29
|
+
flashbarStackDepth: '--awsui-flashbar-stack-depth-rrnppm',
|
|
30
|
+
flashbarStackIndex: '--awsui-flashbar-stack-index-rrnppm',
|
|
31
|
+
flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-rrnppm',
|
|
32
|
+
stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-rrnppm',
|
|
33
|
+
stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-rrnppm',
|
|
33
34
|
};
|
|
34
35
|
export default customCSSPropertiesMap;
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAA2B;IACrD,iBAAiB,EAAE,oCAAoC;IACvD,SAAS,EAAE,2BAA2B;IACtC,0BAA0B,EAAE,8CAA8C;IAC1E,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,aAAa,EAAE,+BAA+B;IAC9C,sBAAsB,EAAE,0CAA0C;IAClE,sBAAsB,EAAE,0CAA0C;IAClE,YAAY,EAAE,8BAA8B;IAC5C,YAAY,EAAE,8BAA8B;IAC5C,WAAW,EAAE,6BAA6B;IAC1C,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,mBAAmB,EAAE,qCAAqC;IAC1D,aAAa,EAAE,+BAA+B;IAC9C,eAAe,EAAE,iCAAiC;IAClD,4BAA4B,EAAE,iDAAiD;IAC/E,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,mCAAmC;IACrD,kBAAkB,EAAE,sCAAsC;IAC1D,kBAAkB,EAAE,sCAAsC;IAC1D,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,6BAA6B,EAAE,iDAAiD;IAChF,mBAAmB,EAAE,sCAAsC;IAC3D,kBAAkB,EAAE,qCAAqC;IACzD,kBAAkB,EAAE,qCAAqC;IACzD,0BAA0B,EAAE,8CAA8C;IAC1E,gCAAgC,EAAE,oDAAoD;IACtF,uCAAuC,EAAE,4DAA4D;CACtG,CAAC;AACF,eAAe,sBAAsB,CAAC","sourcesContent":["const customCSSPropertiesMap: Record<string, string> = {\n activeDrawerWidth: '--awsui-active-drawer-width-
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAA2B;IACrD,iBAAiB,EAAE,oCAAoC;IACvD,SAAS,EAAE,2BAA2B;IACtC,0BAA0B,EAAE,8CAA8C;IAC1E,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,aAAa,EAAE,+BAA+B;IAC9C,sBAAsB,EAAE,0CAA0C;IAClE,sBAAsB,EAAE,0CAA0C;IAClE,YAAY,EAAE,8BAA8B;IAC5C,YAAY,EAAE,8BAA8B;IAC5C,WAAW,EAAE,6BAA6B;IAC1C,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,mBAAmB,EAAE,qCAAqC;IAC1D,aAAa,EAAE,+BAA+B;IAC9C,eAAe,EAAE,iCAAiC;IAClD,4BAA4B,EAAE,iDAAiD;IAC/E,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,mCAAmC;IACrD,kBAAkB,EAAE,sCAAsC;IAC1D,kBAAkB,EAAE,sCAAsC;IAC1D,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,6BAA6B,EAAE,iDAAiD;IAChF,mBAAmB,EAAE,sCAAsC;IAC3D,kBAAkB,EAAE,qCAAqC;IACzD,kBAAkB,EAAE,qCAAqC;IACzD,0BAA0B,EAAE,8CAA8C;IAC1E,gCAAgC,EAAE,oDAAoD;IACtF,uCAAuC,EAAE,4DAA4D;CACtG,CAAC;AACF,eAAe,sBAAsB,CAAC","sourcesContent":["const customCSSPropertiesMap: Record<string, string> = {\n activeDrawerWidth: '--awsui-active-drawer-width-rrnppm',\n offsetTop: '--awsui-offset-top-rrnppm',\n offsetTopWithNotifications: '--awsui-offset-top-with-notifications-rrnppm',\n contentGapLeft: '--awsui-content-gap-left-rrnppm',\n contentGapRight: '--awsui-content-gap-right-rrnppm',\n contentHeight: '--awsui-content-height-rrnppm',\n defaultMaxContentWidth: '--awsui-default-max-content-width-rrnppm',\n defaultMinContentWidth: '--awsui-default-min-content-width-rrnppm',\n footerHeight: '--awsui-footer-height-rrnppm',\n headerHeight: '--awsui-header-height-rrnppm',\n layoutWidth: '--awsui-layout-width-rrnppm',\n mainOffsetLeft: '--awsui-main-offset-left-rrnppm',\n maxContentWidth: '--awsui-max-content-width-rrnppm',\n minContentWidth: '--awsui-min-content-width-rrnppm',\n mobileBarHeight: '--awsui-mobile-bar-height-rrnppm',\n notificationsHeight: '--awsui-notifications-height-rrnppm',\n overlapHeight: '--awsui-overlap-height-rrnppm',\n navigationWidth: '--awsui-navigation-width-rrnppm',\n splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-rrnppm',\n splitPanelReportedSize: '--awsui-split-panel-reported-size-rrnppm',\n splitPanelHeight: '--awsui-split-panel-height-rrnppm',\n splitPanelMinWidth: '--awsui-split-panel-min-width-rrnppm',\n splitPanelMaxWidth: '--awsui-split-panel-max-width-rrnppm',\n toolsMaxWidth: '--awsui-tools-max-width-rrnppm',\n toolsWidth: '--awsui-tools-width-rrnppm',\n toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-rrnppm',\n contentScrollMargin: '--awsui-content-scroll-margin-rrnppm',\n flashbarStackDepth: '--awsui-flashbar-stack-depth-rrnppm',\n flashbarStackIndex: '--awsui-flashbar-stack-index-rrnppm',\n flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-rrnppm',\n stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-rrnppm',\n stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-rrnppm',\n};\nexport default customCSSPropertiesMap;\n"]}
|
|
@@ -2068,10 +2068,6 @@ module.exports.preset = {
|
|
|
2068
2068
|
"comfortable": "-8px",
|
|
2069
2069
|
"compact": "-8px"
|
|
2070
2070
|
},
|
|
2071
|
-
"spaceTextGridVertical": {
|
|
2072
|
-
"comfortable": "{spaceScaledM}",
|
|
2073
|
-
"compact": "{spaceScaledM}"
|
|
2074
|
-
},
|
|
2075
2071
|
"spaceScaled2xNone": {
|
|
2076
2072
|
"comfortable": "{spaceNone}",
|
|
2077
2073
|
"compact": "{spaceNone}"
|
|
@@ -2490,10 +2486,6 @@ module.exports.preset = {
|
|
|
2490
2486
|
"comfortable": "-8px",
|
|
2491
2487
|
"compact": "-8px"
|
|
2492
2488
|
},
|
|
2493
|
-
"spaceTextGridVertical": {
|
|
2494
|
-
"comfortable": "{spaceScaledM}",
|
|
2495
|
-
"compact": "{spaceScaledM}"
|
|
2496
|
-
},
|
|
2497
2489
|
"spaceScaled2xNone": {
|
|
2498
2490
|
"comfortable": "{spaceNone}",
|
|
2499
2491
|
"compact": "{spaceNone}"
|
|
@@ -6840,7 +6832,6 @@ module.exports.preset = {
|
|
|
6840
6832
|
"spaceTableEmbeddedHeaderTop": "density",
|
|
6841
6833
|
"spaceTableFooterHorizontal": "density",
|
|
6842
6834
|
"spaceTabsFocusOutlineGutter": "density",
|
|
6843
|
-
"spaceTextGridVertical": "density",
|
|
6844
6835
|
"spaceScaled2xNone": "density",
|
|
6845
6836
|
"spaceScaled2xXxxs": "density",
|
|
6846
6837
|
"spaceScaled2xXxs": "density",
|
|
@@ -7978,7 +7969,6 @@ module.exports.preset = {
|
|
|
7978
7969
|
"spaceTableEmbeddedHeaderTop": "space-table-embedded-header-top",
|
|
7979
7970
|
"spaceTableFooterHorizontal": "space-table-footer-horizontal",
|
|
7980
7971
|
"spaceTabsFocusOutlineGutter": "space-tabs-focus-outline-gutter",
|
|
7981
|
-
"spaceTextGridVertical": "space-text-grid-vertical",
|
|
7982
7972
|
"spaceScaled2xNone": "space-scaled-2x-none",
|
|
7983
7973
|
"spaceScaled2xXxxs": "space-scaled-2x-xxxs",
|
|
7984
7974
|
"spaceScaled2xXxs": "space-scaled-2x-xxs",
|
|
@@ -8645,7 +8635,6 @@ module.exports.preset = {
|
|
|
8645
8635
|
"spaceTableEmbeddedHeaderTop": "--space-table-embedded-header-top-zf07fk",
|
|
8646
8636
|
"spaceTableFooterHorizontal": "--space-table-footer-horizontal-8o6sk8",
|
|
8647
8637
|
"spaceTabsFocusOutlineGutter": "--space-tabs-focus-outline-gutter-64zu5e",
|
|
8648
|
-
"spaceTextGridVertical": "--space-text-grid-vertical-tj8m1c",
|
|
8649
8638
|
"spaceScaled2xNone": "--space-scaled-2x-none-5hsg85",
|
|
8650
8639
|
"spaceScaled2xXxxs": "--space-scaled-2x-xxxs-g2hxk6",
|
|
8651
8640
|
"spaceScaled2xXxs": "--space-scaled-2x-xxs-40awim",
|
|
@@ -2068,10 +2068,6 @@ export var preset = {
|
|
|
2068
2068
|
"comfortable": "-8px",
|
|
2069
2069
|
"compact": "-8px"
|
|
2070
2070
|
},
|
|
2071
|
-
"spaceTextGridVertical": {
|
|
2072
|
-
"comfortable": "{spaceScaledM}",
|
|
2073
|
-
"compact": "{spaceScaledM}"
|
|
2074
|
-
},
|
|
2075
2071
|
"spaceScaled2xNone": {
|
|
2076
2072
|
"comfortable": "{spaceNone}",
|
|
2077
2073
|
"compact": "{spaceNone}"
|
|
@@ -2490,10 +2486,6 @@ export var preset = {
|
|
|
2490
2486
|
"comfortable": "-8px",
|
|
2491
2487
|
"compact": "-8px"
|
|
2492
2488
|
},
|
|
2493
|
-
"spaceTextGridVertical": {
|
|
2494
|
-
"comfortable": "{spaceScaledM}",
|
|
2495
|
-
"compact": "{spaceScaledM}"
|
|
2496
|
-
},
|
|
2497
2489
|
"spaceScaled2xNone": {
|
|
2498
2490
|
"comfortable": "{spaceNone}",
|
|
2499
2491
|
"compact": "{spaceNone}"
|
|
@@ -6840,7 +6832,6 @@ export var preset = {
|
|
|
6840
6832
|
"spaceTableEmbeddedHeaderTop": "density",
|
|
6841
6833
|
"spaceTableFooterHorizontal": "density",
|
|
6842
6834
|
"spaceTabsFocusOutlineGutter": "density",
|
|
6843
|
-
"spaceTextGridVertical": "density",
|
|
6844
6835
|
"spaceScaled2xNone": "density",
|
|
6845
6836
|
"spaceScaled2xXxxs": "density",
|
|
6846
6837
|
"spaceScaled2xXxs": "density",
|
|
@@ -7978,7 +7969,6 @@ export var preset = {
|
|
|
7978
7969
|
"spaceTableEmbeddedHeaderTop": "space-table-embedded-header-top",
|
|
7979
7970
|
"spaceTableFooterHorizontal": "space-table-footer-horizontal",
|
|
7980
7971
|
"spaceTabsFocusOutlineGutter": "space-tabs-focus-outline-gutter",
|
|
7981
|
-
"spaceTextGridVertical": "space-text-grid-vertical",
|
|
7982
7972
|
"spaceScaled2xNone": "space-scaled-2x-none",
|
|
7983
7973
|
"spaceScaled2xXxxs": "space-scaled-2x-xxxs",
|
|
7984
7974
|
"spaceScaled2xXxs": "space-scaled-2x-xxs",
|
|
@@ -8645,7 +8635,6 @@ export var preset = {
|
|
|
8645
8635
|
"spaceTableEmbeddedHeaderTop": "--space-table-embedded-header-top-zf07fk",
|
|
8646
8636
|
"spaceTableFooterHorizontal": "--space-table-footer-horizontal-8o6sk8",
|
|
8647
8637
|
"spaceTabsFocusOutlineGutter": "--space-tabs-focus-outline-gutter-64zu5e",
|
|
8648
|
-
"spaceTextGridVertical": "--space-text-grid-vertical-tj8m1c",
|
|
8649
8638
|
"spaceScaled2xNone": "--space-scaled-2x-none-5hsg85",
|
|
8650
8639
|
"spaceScaled2xXxxs": "--space-scaled-2x-xxxs-g2hxk6",
|
|
8651
8640
|
"spaceScaled2xXxs": "--space-scaled-2x-xxs-40awim",
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
package/table/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["table/internal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAc,MAAM,cAAc,CAAC;AAoC/D,QAAA,MAAM,aAAa,qBA2aK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
|
package/table/internal.js
CHANGED
|
@@ -31,13 +31,11 @@ import { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';
|
|
|
31
31
|
import LiveRegion from '../internal/components/live-region';
|
|
32
32
|
import useTableFocusNavigation from './use-table-focus-navigation';
|
|
33
33
|
import { TableTdElement } from './body-cell/td-element';
|
|
34
|
-
import { useMobile } from '../internal/hooks/use-mobile';
|
|
35
34
|
import { useStickyColumns, selectionColumnId } from './use-sticky-columns';
|
|
36
35
|
const InternalTable = React.forwardRef((_a, ref) => {
|
|
37
36
|
var _b, _c;
|
|
38
37
|
var { header, footer, empty, filter, pagination, preferences, items, columnDefinitions, trackBy, loading, loadingText, selectionType, selectedItems, isItemDisabled, ariaLabels, onSelectionChange, onSortingChange, sortingColumn, sortingDescending, sortingDisabled, visibleColumns, stickyHeader, stickyHeaderVerticalOffset, onRowClick, onRowContextMenu, wrapLines, stripedRows, contentDensity, submitEdit, onEditCancel, resizableColumns, onColumnWidthsChange, variant, __internalRootRef, totalItemsCount, firstIndex, renderAriaLive, stickyColumns, columnDisplay } = _a, rest = __rest(_a, ["header", "footer", "empty", "filter", "pagination", "preferences", "items", "columnDefinitions", "trackBy", "loading", "loadingText", "selectionType", "selectedItems", "isItemDisabled", "ariaLabels", "onSelectionChange", "onSortingChange", "sortingColumn", "sortingDescending", "sortingDisabled", "visibleColumns", "stickyHeader", "stickyHeaderVerticalOffset", "onRowClick", "onRowContextMenu", "wrapLines", "stripedRows", "contentDensity", "submitEdit", "onEditCancel", "resizableColumns", "onColumnWidthsChange", "variant", "__internalRootRef", "totalItemsCount", "firstIndex", "renderAriaLive", "stickyColumns", "columnDisplay"]);
|
|
39
38
|
const baseProps = getBaseProps(rest);
|
|
40
|
-
const isMobile = useMobile();
|
|
41
39
|
stickyHeader = stickyHeader && supportsStickyPosition();
|
|
42
40
|
const [containerWidth, wrapperMeasureRef] = useContainerQuery(({ width }) => width);
|
|
43
41
|
const wrapperRefObject = useRef(null);
|
|
@@ -152,15 +150,15 @@ const InternalTable = React.forwardRef((_a, ref) => {
|
|
|
152
150
|
const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight });
|
|
153
151
|
useTableFocusNavigation(selectionType, tableRefObject, visibleColumnDefinitions, items === null || items === void 0 ? void 0 : items.length);
|
|
154
152
|
const toolsHeaderWrapper = useRef(null);
|
|
155
|
-
// If is mobile we subtract the tools wrapper height so only the table header is sticky
|
|
156
|
-
const
|
|
153
|
+
// If is mobile, we take into consideration the AppLayout's mobile bar and we subtract the tools wrapper height so only the table header is sticky
|
|
154
|
+
const toolsHeaderHeight = (_c = (_b = toolsHeaderWrapper === null || toolsHeaderWrapper === void 0 ? void 0 : toolsHeaderWrapper.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) !== null && _c !== void 0 ? _c : 0;
|
|
157
155
|
return (React.createElement(ColumnWidthsProvider, { tableRef: tableRefObject, visibleColumnDefinitions: visibleColumnDefinitions, resizableColumns: resizableColumns, hasSelection: hasSelection },
|
|
158
156
|
React.createElement(InternalContainer, Object.assign({}, baseProps, { __internalRootRef: __internalRootRef, className: clsx(baseProps.className, styles.root), header: React.createElement(React.Fragment, null,
|
|
159
157
|
hasHeader && (React.createElement("div", { ref: overlapElement, className: clsx(hasDynamicHeight && [styles['dark-header'], 'awsui-context-content-header']) },
|
|
160
158
|
React.createElement("div", { ref: toolsHeaderWrapper, className: clsx(styles['header-controls'], styles[`variant-${computedVariant}`]) },
|
|
161
159
|
React.createElement(ToolsHeader, { header: header, filter: filter, pagination: pagination, preferences: preferences })))),
|
|
162
160
|
stickyHeader && (React.createElement(StickyHeader, { ref: stickyHeaderRef, variant: computedVariant, theadProps: theadProps, wrapperRef: wrapperRefObject, theadRef: theadRef, secondaryWrapperRef: secondaryWrapperRef, tableRef: tableRefObject, onScroll: handleScroll, tableHasHeader: hasHeader, contentDensity: contentDensity }))), disableHeaderPaddings: true, disableContentPaddings: true, variant: toContainerVariant(computedVariant), __disableFooterPaddings: true, __disableFooterDivider: true, __disableStickyMobile: false, footer: footer && (React.createElement("div", { className: clsx(styles['footer-wrapper'], styles[`variant-${computedVariant}`]) },
|
|
163
|
-
React.createElement("div", { className: styles.footer }, footer))), __stickyHeader: stickyHeader,
|
|
161
|
+
React.createElement("div", { className: styles.footer }, footer))), __stickyHeader: stickyHeader, __mobileStickyOffset: toolsHeaderHeight, __stickyOffset: stickyHeaderVerticalOffset }, focusMarkers.root),
|
|
164
162
|
React.createElement("div", Object.assign({ ref: wrapperRef, className: clsx(styles.wrapper, styles[`variant-${computedVariant}`], {
|
|
165
163
|
[styles['has-footer']]: hasFooter,
|
|
166
164
|
[styles['has-header']]: hasHeader,
|