@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.
Files changed (52) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +30 -30
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/index.d.ts.map +1 -1
  5. package/app-layout/index.js +8 -3
  6. package/app-layout/index.js.map +1 -1
  7. package/app-layout/mobile-toolbar/index.d.ts +2 -1
  8. package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  9. package/app-layout/mobile-toolbar/index.js +2 -2
  10. package/app-layout/mobile-toolbar/index.js.map +1 -1
  11. package/app-layout/notifications/styles.css.js +3 -3
  12. package/app-layout/notifications/styles.scoped.css +7 -7
  13. package/app-layout/notifications/styles.selectors.js +3 -3
  14. package/app-layout/visual-refresh/styles.css.js +72 -72
  15. package/app-layout/visual-refresh/styles.scoped.css +275 -274
  16. package/app-layout/visual-refresh/styles.selectors.js +72 -72
  17. package/column-layout/styles.css.js +13 -13
  18. package/column-layout/styles.scoped.css +45 -45
  19. package/column-layout/styles.selectors.js +13 -13
  20. package/container/internal.d.ts +2 -1
  21. package/container/internal.d.ts.map +1 -1
  22. package/container/internal.js +2 -2
  23. package/container/internal.js.map +1 -1
  24. package/container/use-sticky-header.d.ts +12 -1
  25. package/container/use-sticky-header.d.ts.map +1 -1
  26. package/container/use-sticky-header.js +41 -16
  27. package/container/use-sticky-header.js.map +1 -1
  28. package/flashbar/styles.css.js +45 -45
  29. package/flashbar/styles.scoped.css +169 -169
  30. package/flashbar/styles.selectors.js +45 -45
  31. package/header/internal.d.ts.map +1 -1
  32. package/header/internal.js +4 -1
  33. package/header/internal.js.map +1 -1
  34. package/internal/base-component/styles.scoped.css +0 -3
  35. package/internal/context/app-layout-context.d.ts +1 -0
  36. package/internal/context/app-layout-context.d.ts.map +1 -1
  37. package/internal/context/app-layout-context.js +1 -0
  38. package/internal/context/app-layout-context.js.map +1 -1
  39. package/internal/environment.js +1 -1
  40. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  41. package/internal/generated/custom-css-properties/index.js +32 -31
  42. package/internal/generated/custom-css-properties/index.js.map +1 -1
  43. package/internal/generated/theming/index.cjs +0 -11
  44. package/internal/generated/theming/index.js +0 -11
  45. package/internal/manifest.json +1 -1
  46. package/package.json +1 -1
  47. package/table/internal.d.ts.map +1 -1
  48. package/table/internal.js +3 -5
  49. package/table/internal.js.map +1 -1
  50. package/tiles/styles.css.js +28 -28
  51. package/tiles/styles.scoped.css +70 -70
  52. 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-motion_1q84n_kln9a_93",
6
- "enter": "awsui_enter_1q84n_kln9a_93",
7
- "flash-body": "awsui_flash-body_1q84n_kln9a_107",
8
- "flash-message": "awsui_flash-message_1q84n_kln9a_107",
9
- "flash-header": "awsui_flash-header_1q84n_kln9a_107",
10
- "flash-content": "awsui_flash-content_1q84n_kln9a_108",
11
- "action-button-wrapper": "awsui_action-button-wrapper_1q84n_kln9a_109",
12
- "dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_kln9a_110",
13
- "flash-icon": "awsui_flash-icon_1q84n_kln9a_133",
14
- "entering": "awsui_entering_1q84n_kln9a_146",
15
- "entered": "awsui_entered_1q84n_kln9a_167",
16
- "exiting": "awsui_exiting_1q84n_kln9a_272",
17
- "stack": "awsui_stack_1q84n_kln9a_294",
18
- "animation-running": "awsui_animation-running_1q84n_kln9a_294",
19
- "item": "awsui_item_1q84n_kln9a_294",
20
- "flash-list-item": "awsui_flash-list-item_1q84n_kln9a_295",
21
- "notification-bar": "awsui_notification-bar_1q84n_kln9a_296",
22
- "collapsed": "awsui_collapsed_1q84n_kln9a_316",
23
- "animation-ready": "awsui_animation-ready_1q84n_kln9a_316",
24
- "expanded-only": "awsui_expanded-only_1q84n_kln9a_316",
25
- "expanded": "awsui_expanded_1q84n_kln9a_316",
26
- "flash": "awsui_flash_1q84n_kln9a_93",
27
- "collapsible": "awsui_collapsible_1q84n_kln9a_380",
28
- "short-list": "awsui_short-list_1q84n_kln9a_386",
29
- "visual-refresh": "awsui_visual-refresh_1q84n_kln9a_386",
30
- "status": "awsui_status_1q84n_kln9a_603",
31
- "header": "awsui_header_1q84n_kln9a_603",
32
- "item-count": "awsui_item-count_1q84n_kln9a_604",
33
- "button": "awsui_button_1q84n_kln9a_605",
34
- "type-count": "awsui_type-count_1q84n_kln9a_640",
35
- "count-number": "awsui_count-number_1q84n_kln9a_640",
36
- "icon": "awsui_icon_1q84n_kln9a_674",
37
- "floating": "awsui_floating_1q84n_kln9a_712",
38
- "flashbar": "awsui_flashbar_1q84n_kln9a_720",
39
- "flash-refresh": "awsui_flash-refresh_1q84n_kln9a_766",
40
- "flash-list": "awsui_flash-list_1q84n_kln9a_295",
41
- "flash-focus-container": "awsui_flash-focus-container_1q84n_kln9a_785",
42
- "flash-text": "awsui_flash-text_1q84n_kln9a_812",
43
- "dismiss-button": "awsui_dismiss-button_1q84n_kln9a_110",
44
- "breakpoint-default": "awsui_breakpoint-default_1q84n_kln9a_853",
45
- "action-button": "awsui_action-button_1q84n_kln9a_109",
46
- "flash-type-success": "awsui_flash-type-success_1q84n_kln9a_866",
47
- "flash-type-error": "awsui_flash-type-error_1q84n_kln9a_870",
48
- "flash-type-warning": "awsui_flash-type-warning_1q84n_kln9a_874",
49
- "flash-type-info": "awsui_flash-type-info_1q84n_kln9a_878"
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
 
@@ -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;AAEjD,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,eAoErB"}
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"}
@@ -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
- const dynamicVariant = isStuck ? 'h2' : 'h1';
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`]) },
@@ -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;AAOrC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAWjB;QAXiB,EACrC,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,IAAI,EACJ,iBAAiB,GAAG,IAAI,EACxB,wBAAwB,OAEJ,EADjB,SAAS,cAVyB,2IAWtC,CADa;IAEZ,MAAM,UAAU,GAAG,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,CAAC,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1F,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7C,MAAM,eAAe,GAAG,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,C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AAM,CAAC,WAAW,EAClB,MAAM,CAAC,uBAAuB,eAAe,EAAE,CAAC,EAChD,SAAS,IAAI,MAAM,CAAC,uBAAuB,eAAe,UAAU,CAAC,CACtE,IAEA,WAAW,CACV,CACL,CACG;QACL,OAAO,IAAI,CACV,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,mBAAmB,eAAe,EAAE,CAAC,EAC5C,SAAS,IAAI,MAAM,CAAC,mBAAmB,eAAe,UAAU,CAAC,CAClE,IAEA,OAAO,CACJ,CACP,CACG,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, { 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';\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 HeadingTag = headingTagOverride ?? (variant === 'awsui-h1-sticky' ? 'h1' : variant);\n const { isStuck } = useContext(StickyHeaderContext);\n const baseProps = getBaseProps(restProps);\n const isRefresh = useVisualRefresh();\n const dynamicVariant = 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"]}
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;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAWj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X-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,gDAI3B,CAAC;AAEH,wBAAgB,mBAAmB,0BAElC"}
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"}
@@ -4,6 +4,7 @@ import { useContext, createContext } from 'react';
4
4
  export const AppLayoutContext = createContext({
5
5
  stickyOffsetTop: 0,
6
6
  stickyOffsetBottom: 0,
7
+ mobileBarHeight: 0,
7
8
  hasBreadcrumbs: false,
8
9
  });
9
10
  export function useAppLayoutContext() {
@@ -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;AASlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAwB;IACnE,eAAe,EAAE,CAAC;IAClB,kBAAkB,EAAE,CAAC;IACrB,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 setHasStickyBackground?: (hasBackground: boolean) => void;\n}\n\nexport const AppLayoutContext = createContext<AppLayoutContextProps>({\n stickyOffsetTop: 0,\n stickyOffsetBottom: 0,\n hasBreadcrumbs: false,\n});\n\nexport function useAppLayoutContext() {\n return useContext(AppLayoutContext);\n}\n"]}
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"]}
@@ -1,6 +1,6 @@
1
1
 
2
2
  export var PACKAGE_SOURCE = 'components';
3
- export var PACKAGE_VERSION = '3.0.0 (182daec)';
3
+ export var PACKAGE_VERSION = '3.0.0 (fc14744)';
4
4
  export var THEME = 'open-source-visual-refresh';
5
5
  export var ALWAYS_VISUAL_REFRESH = true;
6
6
 
@@ -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,CAgClD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
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-3j0evk',
3
- offsetTop: '--awsui-offset-top-3j0evk',
4
- offsetTopWithNotifications: '--awsui-offset-top-with-notifications-3j0evk',
5
- contentGapLeft: '--awsui-content-gap-left-3j0evk',
6
- contentGapRight: '--awsui-content-gap-right-3j0evk',
7
- contentHeight: '--awsui-content-height-3j0evk',
8
- defaultMaxContentWidth: '--awsui-default-max-content-width-3j0evk',
9
- defaultMinContentWidth: '--awsui-default-min-content-width-3j0evk',
10
- footerHeight: '--awsui-footer-height-3j0evk',
11
- headerHeight: '--awsui-header-height-3j0evk',
12
- layoutWidth: '--awsui-layout-width-3j0evk',
13
- mainOffsetLeft: '--awsui-main-offset-left-3j0evk',
14
- maxContentWidth: '--awsui-max-content-width-3j0evk',
15
- minContentWidth: '--awsui-min-content-width-3j0evk',
16
- notificationsHeight: '--awsui-notifications-height-3j0evk',
17
- overlapHeight: '--awsui-overlap-height-3j0evk',
18
- navigationWidth: '--awsui-navigation-width-3j0evk',
19
- splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-3j0evk',
20
- splitPanelReportedSize: '--awsui-split-panel-reported-size-3j0evk',
21
- splitPanelHeight: '--awsui-split-panel-height-3j0evk',
22
- splitPanelMinWidth: '--awsui-split-panel-min-width-3j0evk',
23
- splitPanelMaxWidth: '--awsui-split-panel-max-width-3j0evk',
24
- toolsMaxWidth: '--awsui-tools-max-width-3j0evk',
25
- toolsWidth: '--awsui-tools-width-3j0evk',
26
- toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-3j0evk',
27
- contentScrollMargin: '--awsui-content-scroll-margin-3j0evk',
28
- flashbarStackDepth: '--awsui-flashbar-stack-depth-3j0evk',
29
- flashbarStackIndex: '--awsui-flashbar-stack-index-3j0evk',
30
- flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-3j0evk',
31
- stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-3j0evk',
32
- stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-3j0evk',
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-3j0evk',\n offsetTop: '--awsui-offset-top-3j0evk',\n offsetTopWithNotifications: '--awsui-offset-top-with-notifications-3j0evk',\n contentGapLeft: '--awsui-content-gap-left-3j0evk',\n contentGapRight: '--awsui-content-gap-right-3j0evk',\n contentHeight: '--awsui-content-height-3j0evk',\n defaultMaxContentWidth: '--awsui-default-max-content-width-3j0evk',\n defaultMinContentWidth: '--awsui-default-min-content-width-3j0evk',\n footerHeight: '--awsui-footer-height-3j0evk',\n headerHeight: '--awsui-header-height-3j0evk',\n layoutWidth: '--awsui-layout-width-3j0evk',\n mainOffsetLeft: '--awsui-main-offset-left-3j0evk',\n maxContentWidth: '--awsui-max-content-width-3j0evk',\n minContentWidth: '--awsui-min-content-width-3j0evk',\n notificationsHeight: '--awsui-notifications-height-3j0evk',\n overlapHeight: '--awsui-overlap-height-3j0evk',\n navigationWidth: '--awsui-navigation-width-3j0evk',\n splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-3j0evk',\n splitPanelReportedSize: '--awsui-split-panel-reported-size-3j0evk',\n splitPanelHeight: '--awsui-split-panel-height-3j0evk',\n splitPanelMinWidth: '--awsui-split-panel-min-width-3j0evk',\n splitPanelMaxWidth: '--awsui-split-panel-max-width-3j0evk',\n toolsMaxWidth: '--awsui-tools-max-width-3j0evk',\n toolsWidth: '--awsui-tools-width-3j0evk',\n toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-3j0evk',\n contentScrollMargin: '--awsui-content-scroll-margin-3j0evk',\n flashbarStackDepth: '--awsui-flashbar-stack-depth-3j0evk',\n flashbarStackIndex: '--awsui-flashbar-stack-index-3j0evk',\n flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-3j0evk',\n stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-3j0evk',\n stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-3j0evk',\n};\nexport default customCSSPropertiesMap;\n"]}
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",
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "182daec9b54abdf15e5b1569e7ff578041348ac0"
2
+ "commit": "fc14744014d9b2f79cc0aa8d3551bb5f91d33a40"
3
3
  }
package/package.json CHANGED
@@ -109,7 +109,7 @@
109
109
  "./internal/base-component/index.js",
110
110
  "./internal/base-component/styles.css.js"
111
111
  ],
112
- "version": "3.0.284",
112
+ "version": "3.0.285",
113
113
  "repository": {
114
114
  "type": "git",
115
115
  "url": "https://github.com/cloudscape-design/components.git"
@@ -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;AAqC/D,QAAA,MAAM,aAAa,qBA6aK,CAAC;AAEzB,eAAe,aAAa,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 mobileStickyOffset = (_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;
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, __stickyOffset: isMobile ? (stickyHeaderVerticalOffset !== null && stickyHeaderVerticalOffset !== void 0 ? stickyHeaderVerticalOffset : 0) - mobileStickyOffset : stickyHeaderVerticalOffset }, focusMarkers.root),
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,