@cloudscape-design/components 3.0.311 → 3.0.313

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 (85) hide show
  1. package/autosuggest/virtual-list.d.ts.map +1 -1
  2. package/autosuggest/virtual-list.js +3 -4
  3. package/autosuggest/virtual-list.js.map +1 -1
  4. package/button/interfaces.d.ts +1 -1
  5. package/button/interfaces.js.map +1 -1
  6. package/button/internal.d.ts.map +1 -1
  7. package/button/internal.js +3 -1
  8. package/button/internal.js.map +1 -1
  9. package/code-editor/index.d.ts.map +1 -1
  10. package/code-editor/index.js +3 -2
  11. package/code-editor/index.js.map +1 -1
  12. package/code-editor/interfaces.d.ts +4 -0
  13. package/code-editor/interfaces.d.ts.map +1 -1
  14. package/code-editor/interfaces.js.map +1 -1
  15. package/code-editor/resizable-box/styles.css.js +3 -3
  16. package/code-editor/resizable-box/styles.scoped.css +10 -8
  17. package/code-editor/resizable-box/styles.selectors.js +3 -3
  18. package/code-editor/styles.css.js +32 -32
  19. package/code-editor/styles.scoped.css +189 -157
  20. package/code-editor/styles.selectors.js +32 -32
  21. package/container/interfaces.d.ts +50 -0
  22. package/container/interfaces.d.ts.map +1 -1
  23. package/container/interfaces.js.map +1 -1
  24. package/container/internal.d.ts +1 -1
  25. package/container/internal.d.ts.map +1 -1
  26. package/container/internal.js +24 -18
  27. package/container/internal.js.map +1 -1
  28. package/container/styles.css.js +28 -18
  29. package/container/styles.scoped.css +93 -36
  30. package/container/styles.selectors.js +28 -18
  31. package/expandable-section/expandable-section-header.d.ts +2 -1
  32. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  33. package/expandable-section/expandable-section-header.js +6 -16
  34. package/expandable-section/expandable-section-header.js.map +1 -1
  35. package/expandable-section/internal.d.ts.map +1 -1
  36. package/expandable-section/internal.js +3 -2
  37. package/expandable-section/internal.js.map +1 -1
  38. package/help-panel/styles.css.js +4 -4
  39. package/help-panel/styles.scoped.css +135 -95
  40. package/help-panel/styles.selectors.js +4 -4
  41. package/i18n/provider.d.ts.map +1 -1
  42. package/i18n/provider.js +2 -0
  43. package/i18n/provider.js.map +1 -1
  44. package/internal/base-component/styles.scoped.css +382 -379
  45. package/internal/environment.js +1 -1
  46. package/internal/generated/theming/index.cjs +2 -1
  47. package/internal/generated/theming/index.js +2 -1
  48. package/internal/hooks/use-virtual/index.d.ts +27 -0
  49. package/internal/hooks/use-virtual/index.d.ts.map +1 -0
  50. package/internal/hooks/use-virtual/index.js +41 -0
  51. package/internal/hooks/use-virtual/index.js.map +1 -0
  52. package/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  53. package/internal/hooks/use-visual-mode/index.js +3 -0
  54. package/internal/hooks/use-visual-mode/index.js.map +1 -1
  55. package/internal/manifest.json +1 -1
  56. package/package.json +1 -1
  57. package/property-filter/utils.d.ts.map +1 -1
  58. package/property-filter/utils.js +4 -1
  59. package/property-filter/utils.js.map +1 -1
  60. package/select/parts/virtual-list.d.ts.map +1 -1
  61. package/select/parts/virtual-list.js +2 -3
  62. package/select/parts/virtual-list.js.map +1 -1
  63. package/space-between/interfaces.d.ts +1 -1
  64. package/space-between/interfaces.d.ts.map +1 -1
  65. package/space-between/interfaces.js.map +1 -1
  66. package/space-between/styles.css.js +23 -21
  67. package/space-between/styles.scoped.css +30 -22
  68. package/space-between/styles.selectors.js +23 -21
  69. package/table/body-cell/index.d.ts.map +1 -1
  70. package/table/body-cell/index.js +9 -5
  71. package/table/body-cell/index.js.map +1 -1
  72. package/test-utils/dom/container/index.d.ts +1 -0
  73. package/test-utils/dom/container/index.js +3 -0
  74. package/test-utils/dom/container/index.js.map +1 -1
  75. package/test-utils/dom/expandable-section/index.js +1 -1
  76. package/test-utils/dom/expandable-section/index.js.map +1 -1
  77. package/test-utils/selectors/container/index.d.ts +1 -0
  78. package/test-utils/selectors/container/index.js +3 -0
  79. package/test-utils/selectors/container/index.js.map +1 -1
  80. package/test-utils/selectors/expandable-section/index.js +1 -1
  81. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  82. package/test-utils/tsconfig.tsbuildinfo +1 -1
  83. package/text-content/styles.css.js +1 -1
  84. package/text-content/styles.scoped.css +65 -64
  85. package/text-content/styles.selectors.js +1 -1
@@ -2,37 +2,37 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "code-editor": "awsui_code-editor_1gl9c_1pa9a_98",
6
- "code-editor-refresh": "awsui_code-editor-refresh_1gl9c_1pa9a_342",
7
- "pane": "awsui_pane_1gl9c_1pa9a_354",
8
- "pane__close-container": "awsui_pane__close-container_1gl9c_1pa9a_365",
9
- "pane__list": "awsui_pane__list_1gl9c_1pa9a_370",
10
- "pane__table": "awsui_pane__table_1gl9c_1pa9a_377",
11
- "pane__item": "awsui_pane__item_1gl9c_1pa9a_382",
12
- "pane__cell": "awsui_pane__cell_1gl9c_1pa9a_382",
13
- "pane__item--highlighted": "awsui_pane__item--highlighted_1gl9c_1pa9a_396",
14
- "pane__location": "awsui_pane__location_1gl9c_1pa9a_417",
15
- "pane__description": "awsui_pane__description_1gl9c_1pa9a_417",
16
- "focus-lock": "awsui_focus-lock_1gl9c_1pa9a_432",
17
- "editor": "awsui_editor_1gl9c_1pa9a_457",
18
- "editor-refresh": "awsui_editor-refresh_1gl9c_1pa9a_485",
19
- "status-bar": "awsui_status-bar_1gl9c_1pa9a_490",
20
- "status-bar-with-hidden-pane": "awsui_status-bar-with-hidden-pane_1gl9c_1pa9a_499",
21
- "status-bar__left": "awsui_status-bar__left_1gl9c_1pa9a_503",
22
- "status-bar__left-virtual": "awsui_status-bar__left-virtual_1gl9c_1pa9a_510",
23
- "status-bar__right": "awsui_status-bar__right_1gl9c_1pa9a_514",
24
- "status-bar__language-mode": "awsui_status-bar__language-mode_1gl9c_1pa9a_518",
25
- "status-bar__cursor-position": "awsui_status-bar__cursor-position_1gl9c_1pa9a_518",
26
- "status-bar__cog-button": "awsui_status-bar__cog-button_1gl9c_1pa9a_523",
27
- "status-bar-virtual": "awsui_status-bar-virtual_1gl9c_1pa9a_527",
28
- "tab-button": "awsui_tab-button_1gl9c_1pa9a_533",
29
- "tab-button--refresh": "awsui_tab-button--refresh_1gl9c_1pa9a_546",
30
- "tab-button--active": "awsui_tab-button--active_1gl9c_1pa9a_560",
31
- "tab-button--disabled": "awsui_tab-button--disabled_1gl9c_1pa9a_580",
32
- "tab-button--divider": "awsui_tab-button--divider_1gl9c_1pa9a_610",
33
- "tab-button--errors": "awsui_tab-button--errors_1gl9c_1pa9a_617",
34
- "tab-button--warnings": "awsui_tab-button--warnings_1gl9c_1pa9a_617",
35
- "loading-screen": "awsui_loading-screen_1gl9c_1pa9a_621",
36
- "error-screen": "awsui_error-screen_1gl9c_1pa9a_622"
5
+ "code-editor": "awsui_code-editor_1gl9c_f74y9_98",
6
+ "code-editor-refresh": "awsui_code-editor-refresh_1gl9c_f74y9_374",
7
+ "pane": "awsui_pane_1gl9c_f74y9_386",
8
+ "pane__close-container": "awsui_pane__close-container_1gl9c_f74y9_397",
9
+ "pane__list": "awsui_pane__list_1gl9c_f74y9_402",
10
+ "pane__table": "awsui_pane__table_1gl9c_f74y9_409",
11
+ "pane__item": "awsui_pane__item_1gl9c_f74y9_414",
12
+ "pane__cell": "awsui_pane__cell_1gl9c_f74y9_414",
13
+ "pane__item--highlighted": "awsui_pane__item--highlighted_1gl9c_f74y9_428",
14
+ "pane__location": "awsui_pane__location_1gl9c_f74y9_449",
15
+ "pane__description": "awsui_pane__description_1gl9c_f74y9_449",
16
+ "focus-lock": "awsui_focus-lock_1gl9c_f74y9_464",
17
+ "editor": "awsui_editor_1gl9c_f74y9_489",
18
+ "editor-refresh": "awsui_editor-refresh_1gl9c_f74y9_517",
19
+ "status-bar": "awsui_status-bar_1gl9c_f74y9_522",
20
+ "status-bar-with-hidden-pane": "awsui_status-bar-with-hidden-pane_1gl9c_f74y9_531",
21
+ "status-bar__left": "awsui_status-bar__left_1gl9c_f74y9_535",
22
+ "status-bar__left-virtual": "awsui_status-bar__left-virtual_1gl9c_f74y9_542",
23
+ "status-bar__right": "awsui_status-bar__right_1gl9c_f74y9_546",
24
+ "status-bar__language-mode": "awsui_status-bar__language-mode_1gl9c_f74y9_550",
25
+ "status-bar__cursor-position": "awsui_status-bar__cursor-position_1gl9c_f74y9_550",
26
+ "status-bar__cog-button": "awsui_status-bar__cog-button_1gl9c_f74y9_555",
27
+ "status-bar-virtual": "awsui_status-bar-virtual_1gl9c_f74y9_559",
28
+ "tab-button": "awsui_tab-button_1gl9c_f74y9_565",
29
+ "tab-button--refresh": "awsui_tab-button--refresh_1gl9c_f74y9_578",
30
+ "tab-button--active": "awsui_tab-button--active_1gl9c_f74y9_592",
31
+ "tab-button--disabled": "awsui_tab-button--disabled_1gl9c_f74y9_612",
32
+ "tab-button--divider": "awsui_tab-button--divider_1gl9c_f74y9_642",
33
+ "tab-button--errors": "awsui_tab-button--errors_1gl9c_f74y9_649",
34
+ "tab-button--warnings": "awsui_tab-button--warnings_1gl9c_f74y9_649",
35
+ "loading-screen": "awsui_loading-screen_1gl9c_f74y9_653",
36
+ "error-screen": "awsui_error-screen_1gl9c_f74y9_654"
37
37
  };
38
38
 
@@ -9,6 +9,26 @@ export interface ContainerProps extends BaseComponentProps {
9
9
  * Determines whether the container header has padding. If `true`, removes the default padding from the header.
10
10
  */
11
11
  disableHeaderPaddings?: boolean;
12
+ /**
13
+ *
14
+ * Use this slot to render a media element. Supported element types are 'img', 'video', and 'picture'.
15
+ * You can define different positions and sizes for the media element within the container.
16
+ *
17
+ * * `content` - Use this slot to render your media element. We support `img`, `video` and `picture` elements.
18
+ *
19
+ * * `position` - Defines the media slot's position within the container. Defaults to `top`.
20
+ *
21
+ * * `width` - Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.
22
+ * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it.
23
+ * Note: This value is considered only when `position` is set to `side`.
24
+ * If no width is provided, the media slot will take a maximum of 66% of the container's width.
25
+ *
26
+ * * `height` - Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.
27
+ * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it. * Note: This value is only considered if `position` is set to `top`.
28
+ * If no height is provided, the media slot will be displayed at its full height.
29
+ *
30
+ */
31
+ media?: ContainerProps.Media;
12
32
  /**
13
33
  * Main content of the container.
14
34
  */
@@ -38,4 +58,34 @@ export interface ContainerProps extends BaseComponentProps {
38
58
  */
39
59
  variant?: 'default' | 'stacked';
40
60
  }
61
+ export declare namespace ContainerProps {
62
+ interface Media {
63
+ /**
64
+ *
65
+ * Use this slot to render your media element. We support `img`, `video` and `picture` elements.
66
+ *
67
+ */
68
+ content: React.ReactNode;
69
+ /**
70
+ * Defines the media slot's position within the container. Defaults to `top`.
71
+ */
72
+ position?: 'top' | 'side';
73
+ /**
74
+ * Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.
75
+ * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.
76
+ *
77
+ * Note: This value is considered only when `position` is set to `side`.
78
+ * If no width is provided, the media slot will take a maximum of 66% of the container's width.
79
+ */
80
+ width?: string | number;
81
+ /**
82
+ * Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.
83
+ * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.
84
+ *
85
+ * Note: This value is only considered if `position` is set to `top`.
86
+ * If no height is provided, the media slot will be displayed at its full height.
87
+ */
88
+ height?: string | number;
89
+ }
90
+ }
41
91
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK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AAM,CAAC;QAE1B;;;;;;WAMG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC1B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n *\n * Use this slot to render a media element. Supported element types are 'img', 'video', and 'picture'.\n * You can define different positions and sizes for the media element within the container.\n *\n * * `content` - Use this slot to render your media element. We support `img`, `video` and `picture` elements.\n *\n * * `position` - Defines the media slot's position within the container. Defaults to `top`.\n *\n * * `width` - Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it.\n * Note: This value is considered only when `position` is set to `side`.\n * If no width is provided, the media slot will take a maximum of 66% of the container's width.\n *\n * * `height` - Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it. * Note: This value is only considered if `position` is set to `top`.\n * If no height is provided, the media slot will be displayed at its full height.\n *\n */\n media?: ContainerProps.Media;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n\nexport namespace ContainerProps {\n export interface Media {\n /**\n *\n * Use this slot to render your media element. We support `img`, `video` and `picture` elements.\n *\n */\n content: React.ReactNode;\n\n /**\n * Defines the media slot's position within the container. Defaults to `top`.\n */\n position?: 'top' | 'side';\n\n /**\n * Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.\n * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.\n *\n * Note: This value is considered only when `position` is set to `side`.\n * If no width is provided, the media slot will take a maximum of 66% of the container's width.\n */\n width?: string | number;\n\n /**\n * Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.\n * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.\n *\n * Note: This value is only considered if `position` is set to `top`.\n * If no height is provided, the media slot will be displayed at its full height.\n */\n height?: string | number;\n }\n}\n"]}
@@ -20,5 +20,5 @@ export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>,
20
20
  */
21
21
  variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';
22
22
  }
23
- export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, __stickyOffset, __mobileStickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, __disableStickyMobile, ...restProps }: InternalContainerProps): JSX.Element;
23
+ export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, __disableStickyMobile, ...restProps }: InternalContainerProps): JSX.Element;
24
24
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AASlF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAA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,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;CAC1E;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,SAAS,EACT,KAAK,EACL,cAAc,EACd,oBAAoB,EACpB,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAU,EACV,YAAoB,EACpB,qBAA4B,EAC5B,GAAG,SAAS,EACb,EAAE,sBAAsB,eAoHxB"}
@@ -13,7 +13,8 @@ import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
13
13
  import styles from './styles.css.js';
14
14
  import { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';
15
15
  export default function InternalContainer(_a) {
16
- var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __headerId, __darkHeader = false, __disableStickyMobile = true } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "__stickyOffset", "__mobileStickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader", "__disableStickyMobile"]);
16
+ var _b;
17
+ var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, media, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __headerId, __darkHeader = false, __disableStickyMobile = true } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "media", "__stickyOffset", "__mobileStickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader", "__disableStickyMobile"]);
17
18
  const isMobile = useMobile();
18
19
  const baseProps = getBaseProps(restProps);
19
20
  const rootRef = useRef(null);
@@ -46,22 +47,27 @@ export default function InternalContainer(_a) {
46
47
  // The container is only sticky on mobile if it is the header for the table.
47
48
  // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.
48
49
  const shouldHaveStickyStyles = isSticky && !isMobile;
49
- return (React.createElement("div", Object.assign({}, baseProps, funnelSubStepProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], shouldHaveStickyStyles && [styles['sticky-enabled']]), ref: mergedRef }),
50
- header && (React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
51
- React.createElement("div", Object.assign({ className: clsx(styles.header, styles[`header-variant-${variant}`], {
52
- [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
53
- [styles['header-sticky-enabled']]: isSticky,
54
- [styles['header-dynamic-height']]: hasDynamicHeight,
55
- [styles['header-stuck']]: isStuck,
56
- [styles['with-paddings']]: !disableHeaderPaddings,
57
- [styles['with-hidden-content']]: !children || __hiddenContent,
58
- }) }, headerIdProp, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], 'awsui-context-content-header') }, header)) : (header)))),
59
- React.createElement("div", { className: clsx(styles.content, {
60
- [styles['with-paddings']]: !disableContentPaddings,
61
- }) }, children),
62
- footer && (React.createElement("div", { className: clsx(styles.footer, {
63
- [styles['with-divider']]: !__disableFooterDivider,
64
- [styles['with-paddings']]: !__disableFooterPaddings,
65
- }) }, footer))));
50
+ const hasMedia = !!(media === null || media === void 0 ? void 0 : media.content);
51
+ const mediaPosition = (_b = media === null || media === void 0 ? void 0 : media.position) !== null && _b !== void 0 ? _b : 'top';
52
+ return (React.createElement("div", Object.assign({}, baseProps, funnelSubStepProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']), shouldHaveStickyStyles && [styles['sticky-enabled']]), ref: mergedRef }),
53
+ hasMedia && (React.createElement("div", { className: clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media), style: mediaPosition === 'top' ? { height: (media === null || media === void 0 ? void 0 : media.height) || '' } : { width: (media === null || media === void 0 ? void 0 : media.width) || '' } }, media.content)),
54
+ React.createElement("div", { className: clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height']) },
55
+ header && (React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
56
+ React.createElement("div", Object.assign({ className: clsx(styles.header, styles[`header-variant-${variant}`], {
57
+ [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
58
+ [styles['header-sticky-enabled']]: isSticky,
59
+ [styles['header-dynamic-height']]: hasDynamicHeight,
60
+ [styles['header-stuck']]: isStuck,
61
+ [styles['with-paddings']]: !disableHeaderPaddings,
62
+ [styles['with-hidden-content']]: !children || __hiddenContent,
63
+ [styles['header-with-media']]: hasMedia,
64
+ }) }, headerIdProp, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], 'awsui-context-content-header') }, header)) : (header)))),
65
+ React.createElement("div", { className: clsx(styles.content, fitHeight && styles['content-fit-height'], {
66
+ [styles['with-paddings']]: !disableContentPaddings,
67
+ }) }, children),
68
+ footer && (React.createElement("div", { className: clsx(styles.footer, {
69
+ [styles['with-divider']]: !__disableFooterDivider,
70
+ [styles['with-paddings']]: !__disableFooterPaddings,
71
+ }) }, footer)))));
66
72
  }
67
73
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAsB1E,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAoBjB;QApBiB,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,KAAK,EAC9B,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,cAAc,GAAG,KAAK,EACtB,iBAAiB,GAAG,IAAI,EACxB,sBAAsB,GAAG,KAAK,EAC9B,uBAAuB,GAAG,KAAK,EAC/B,eAAe,GAAG,KA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,YAAY,EACZ,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,YAAY,CAAC,CAAC,CAAC,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,8BAA8B,CAAC,IAAG,MAAM,CAAO,CAC5F,CAAC,CAAC,CAAC,CACF,MAAM,CACP,CACG,CACuB,CAChC;QACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC9B,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,sBAAsB;aACnD,CAAC,IAED,QAAQ,CACL;QACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;gBAC7B,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,sBAAsB;gBACjD,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,uBAAuB;aACpD,CAAC,IAED,MAAM,CACH,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, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n __disableStickyMobile = true,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, subStepRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n const headerIdProp = __headerId ? { id: __headerId } : {};\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n return (\n <div\n {...baseProps}\n {...funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n shouldHaveStickyStyles && [styles['sticky-enabled']]\n )}\n ref={mergedRef}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n })}\n {...headerIdProp}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], 'awsui-context-content-header')}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(styles.content, {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAA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ACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\nimport { useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n media,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n __disableStickyMobile = true,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n const { subStepRef, funnelSubStepProps } = useFunnelSubStep();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, subStepRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n const headerIdProp = __headerId ? { id: __headerId } : {};\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n const hasMedia = !!media?.content;\n const mediaPosition = media?.position ?? 'top';\n\n return (\n <div\n {...baseProps}\n {...funnelSubStepProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n hasMedia && (mediaPosition === 'side' ? styles['with-side-media'] : styles['with-top-media']),\n shouldHaveStickyStyles && [styles['sticky-enabled']]\n )}\n ref={mergedRef}\n >\n {hasMedia && (\n <div\n className={clsx(styles[`media-${mediaPosition === 'side' ? 'side' : 'top'}`], styles.media)}\n style={mediaPosition === 'top' ? { height: media?.height || '' } : { width: media?.width || '' }}\n >\n {media.content}\n </div>\n )}\n <div className={clsx(styles['content-wrapper'], fitHeight && styles['content-wrapper-fit-height'])}>\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n [styles['header-with-media']]: hasMedia,\n })}\n {...headerIdProp}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], 'awsui-context-content-header')}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(styles.content, fitHeight && styles['content-fit-height'], {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1,23 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_14iqq_1rij9_97",
5
- "fit-height": "awsui_fit-height_14iqq_1rij9_111",
6
- "variant-default": "awsui_variant-default_14iqq_1rij9_116",
7
- "variant-stacked": "awsui_variant-stacked_14iqq_1rij9_116",
8
- "sticky-enabled": "awsui_sticky-enabled_14iqq_1rij9_169",
9
- "header": "awsui_header_14iqq_1rij9_176",
10
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1rij9_181",
11
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1rij9_185",
12
- "header-stuck": "awsui_header-stuck_14iqq_1rij9_191",
13
- "header-variant-cards": "awsui_header-variant-cards_14iqq_1rij9_197",
14
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1rij9_200",
15
- "with-paddings": "awsui_with-paddings_14iqq_1rij9_206",
16
- "with-hidden-content": "awsui_with-hidden-content_14iqq_1rij9_209",
17
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1rij9_259",
18
- "dark-header": "awsui_dark-header_14iqq_1rij9_277",
19
- "content": "awsui_content_14iqq_1rij9_282",
20
- "footer": "awsui_footer_14iqq_1rij9_293",
21
- "with-divider": "awsui_with-divider_14iqq_1rij9_296"
4
+ "root": "awsui_root_14iqq_y5ati_97",
5
+ "fit-height": "awsui_fit-height_14iqq_y5ati_111",
6
+ "with-side-media": "awsui_with-side-media_14iqq_y5ati_116",
7
+ "variant-default": "awsui_variant-default_14iqq_y5ati_119",
8
+ "variant-stacked": "awsui_variant-stacked_14iqq_y5ati_119",
9
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_y5ati_172",
10
+ "with-top-media": "awsui_with-top-media_14iqq_y5ati_184",
11
+ "content-wrapper": "awsui_content-wrapper_14iqq_y5ati_189",
12
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_y5ati_194",
13
+ "media": "awsui_media_14iqq_y5ati_199",
14
+ "media-top": "awsui_media-top_14iqq_y5ati_211",
15
+ "media-side": "awsui_media-side_14iqq_y5ati_216",
16
+ "header": "awsui_header_14iqq_y5ati_222",
17
+ "header-with-media": "awsui_header-with-media_14iqq_y5ati_227",
18
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_y5ati_233",
19
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_y5ati_237",
20
+ "header-stuck": "awsui_header-stuck_14iqq_y5ati_243",
21
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_y5ati_249",
22
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_y5ati_252",
23
+ "with-paddings": "awsui_with-paddings_14iqq_y5ati_258",
24
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_y5ati_261",
25
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_y5ati_311",
26
+ "dark-header": "awsui_dark-header_14iqq_y5ati_329",
27
+ "content": "awsui_content_14iqq_y5ati_189",
28
+ "content-fit-height": "awsui_content-fit-height_14iqq_y5ati_337",
29
+ "content-with-media": "awsui_content-with-media_14iqq_y5ati_346",
30
+ "footer": "awsui_footer_14iqq_y5ati_350",
31
+ "with-divider": "awsui_with-divider_14iqq_y5ati_353"
22
32
  };
23
33
 
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
94
94
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
95
95
  SPDX-License-Identifier: Apache-2.0
96
96
  */
97
- .awsui_root_14iqq_1rij9_97:not(#\9) {
97
+ .awsui_root_14iqq_y5ati_97:not(#\9) {
98
98
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
99
99
  border-collapse: separate;
100
100
  border-spacing: 0;
@@ -134,17 +134,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
134
134
  word-wrap: break-word;
135
135
  position: relative;
136
136
  }
137
- .awsui_root_14iqq_1rij9_97.awsui_fit-height_14iqq_1rij9_111:not(#\9) {
137
+ .awsui_root_14iqq_y5ati_97.awsui_fit-height_14iqq_y5ati_111:not(#\9) {
138
138
  display: flex;
139
139
  flex-direction: column;
140
140
  height: 100%;
141
141
  }
142
- .awsui_root_14iqq_1rij9_97.awsui_variant-default_14iqq_1rij9_116:not(#\9), .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9) {
142
+ .awsui_root_14iqq_y5ati_97.awsui_fit-height_14iqq_y5ati_111.awsui_with-side-media_14iqq_y5ati_116:not(#\9) {
143
+ flex-direction: row;
144
+ }
145
+ .awsui_root_14iqq_y5ati_97.awsui_variant-default_14iqq_y5ati_119:not(#\9), .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9) {
143
146
  border-radius: var(--border-radius-container-pmtq2d, 16px);
144
147
  box-sizing: border-box;
145
148
  background-color: var(--color-background-container-content-og3y0v, #ffffff);
146
149
  }
147
- .awsui_root_14iqq_1rij9_97.awsui_variant-default_14iqq_1rij9_116:not(#\9)::before, .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::before {
150
+ .awsui_root_14iqq_y5ati_97.awsui_variant-default_14iqq_y5ati_119:not(#\9)::before, .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::before {
148
151
  content: "";
149
152
  position: absolute;
150
153
  left: 0px;
@@ -159,7 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
162
  border-radius: var(--border-radius-container-pmtq2d, 16px);
160
163
  z-index: 1;
161
164
  }
162
- .awsui_root_14iqq_1rij9_97.awsui_variant-default_14iqq_1rij9_116:not(#\9)::after, .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::after {
165
+ .awsui_root_14iqq_y5ati_97.awsui_variant-default_14iqq_y5ati_119:not(#\9)::after, .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::after {
163
166
  content: "";
164
167
  position: absolute;
165
168
  left: 0px;
@@ -174,76 +177,125 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
174
177
  mix-blend-mode: multiply;
175
178
  }
176
179
  @media screen and (-ms-high-contrast: active) {
177
- .awsui_root_14iqq_1rij9_97.awsui_variant-default_14iqq_1rij9_116:not(#\9), .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9) {
180
+ .awsui_root_14iqq_y5ati_97.awsui_variant-default_14iqq_y5ati_119:not(#\9), .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9) {
178
181
  border: var(--border-field-width-riro62, 2px) solid var(--color-border-container-top-camjrq, transparent);
179
182
  }
180
183
  }
181
- .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9):not(:last-child), .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9):not(:last-child)::after {
184
+ .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9):not(:last-child), .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9):not(:last-child)::before, .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9):not(:last-child)::after {
182
185
  border-bottom-right-radius: 0;
183
186
  border-bottom-left-radius: 0;
184
187
  }
185
- .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116 + .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9), .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116 + .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::before, .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116 + .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::after {
188
+ .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119 + .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9), .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119 + .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::before, .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119 + .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::after {
186
189
  border-top-left-radius: 0;
187
190
  border-top-right-radius: 0;
188
191
  }
189
- .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116 + .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::before {
192
+ .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119 + .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::before {
190
193
  border-top: var(--border-divider-section-width-orq175, 2px) solid var(--color-border-divider-default-9o8zql, #e9ebed);
191
194
  }
192
- .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116 + .awsui_root_14iqq_1rij9_97.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::after {
195
+ .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119 + .awsui_root_14iqq_y5ati_97.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::after {
193
196
  box-shadow: var(--shadow-container-stacked-nlxqjb, -1px 1px 1px 0px #e9ebed, 1px 1px 1px 0px #e9ebed, 0px 9px 8px -7px rgba(0, 7, 22, 0.12), 8px 0px 8px -7px rgba(0, 7, 22, 0.12), -8px 0px 8px -7px rgba(0, 7, 22, 0.12));
194
197
  }
195
- .awsui_root_14iqq_1rij9_97.awsui_sticky-enabled_14iqq_1rij9_169:not(#\9)::before {
198
+ .awsui_root_14iqq_y5ati_97.awsui_sticky-enabled_14iqq_y5ati_172:not(#\9)::before {
196
199
  top: calc(-1 * var(--border-container-top-width-5cncr0, 0px));
197
200
  }
198
- .awsui_root_14iqq_1rij9_97.awsui_sticky-enabled_14iqq_1rij9_169.awsui_variant-stacked_14iqq_1rij9_116:not(#\9)::before {
201
+ .awsui_root_14iqq_y5ati_97.awsui_sticky-enabled_14iqq_y5ati_172.awsui_variant-stacked_14iqq_y5ati_119:not(#\9)::before {
199
202
  top: calc(-1 * var(--border-divider-section-width-orq175, 2px));
200
203
  }
201
204
 
202
- .awsui_header_14iqq_1rij9_176:not(#\9) {
205
+ .awsui_with-side-media_14iqq_y5ati_116:not(#\9) {
206
+ display: flex;
207
+ flex-direction: row;
208
+ }
209
+
210
+ .awsui_with-top-media_14iqq_y5ati_184:not(#\9) {
211
+ display: flex;
212
+ flex-direction: column;
213
+ }
214
+
215
+ .awsui_content-wrapper_14iqq_y5ati_189:not(#\9) {
216
+ display: flex;
217
+ flex-direction: column;
218
+ width: 100%;
219
+ }
220
+ .awsui_content-wrapper-fit-height_14iqq_y5ati_194:not(#\9) {
221
+ height: 100%;
222
+ overflow: hidden;
223
+ }
224
+
225
+ .awsui_media_14iqq_y5ati_199:not(#\9) {
226
+ overflow: hidden;
227
+ flex-shrink: 0;
228
+ }
229
+ .awsui_media_14iqq_y5ati_199 img:not(#\9),
230
+ .awsui_media_14iqq_y5ati_199 video:not(#\9),
231
+ .awsui_media_14iqq_y5ati_199 picture:not(#\9) {
232
+ width: 100%;
233
+ height: 100%;
234
+ object-fit: cover;
235
+ object-position: center;
236
+ }
237
+ .awsui_media-top_14iqq_y5ati_211:not(#\9) {
238
+ max-height: 66%;
239
+ border-top-left-radius: var(--border-radius-container-pmtq2d, 16px);
240
+ border-top-right-radius: var(--border-radius-container-pmtq2d, 16px);
241
+ }
242
+ .awsui_media-side_14iqq_y5ati_216:not(#\9) {
243
+ max-width: 66%;
244
+ border-top-left-radius: var(--border-radius-container-pmtq2d, 16px);
245
+ border-bottom-left-radius: var(--border-radius-container-pmtq2d, 16px);
246
+ }
247
+
248
+ .awsui_header_14iqq_y5ati_222:not(#\9) {
203
249
  background-color: var(--color-background-container-header-l5cy7j, #ffffff);
204
250
  border-top-left-radius: var(--border-radius-container-pmtq2d, 16px);
205
251
  border-top-right-radius: var(--border-radius-container-pmtq2d, 16px);
206
252
  }
207
- .awsui_header-sticky-disabled_14iqq_1rij9_181:not(#\9) {
253
+ .awsui_header_14iqq_y5ati_222.awsui_header-with-media_14iqq_y5ati_227:not(#\9) {
254
+ background: none;
255
+ }
256
+ .awsui_header_14iqq_y5ati_222.awsui_header-with-media_14iqq_y5ati_227:not(#\9):not(:empty) {
257
+ border-bottom: none;
258
+ }
259
+ .awsui_header-sticky-disabled_14iqq_y5ati_233:not(#\9) {
208
260
  position: relative;
209
261
  z-index: 1;
210
262
  }
211
- .awsui_header-sticky-enabled_14iqq_1rij9_185:not(#\9) {
263
+ .awsui_header-sticky-enabled_14iqq_y5ati_237:not(#\9) {
212
264
  top: 0;
213
265
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
214
266
  position: sticky;
215
267
  z-index: 800;
216
268
  }
217
- .awsui_header-stuck_14iqq_1rij9_191:not(#\9) {
269
+ .awsui_header-stuck_14iqq_y5ati_243:not(#\9) {
218
270
  border-radius: 0;
219
271
  }
220
- .awsui_header-stuck_14iqq_1rij9_191:not(#\9)::before {
272
+ .awsui_header-stuck_14iqq_y5ati_243:not(#\9)::before {
221
273
  border: 0;
222
274
  }
223
- .awsui_header-stuck_14iqq_1rij9_191:not(#\9):not(.awsui_header-variant-cards_14iqq_1rij9_197) {
275
+ .awsui_header-stuck_14iqq_y5ati_243:not(#\9):not(.awsui_header-variant-cards_14iqq_y5ati_249) {
224
276
  box-shadow: var(--shadow-sticky-embedded-rcrcz5, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
225
277
  }
226
- .awsui_header-dynamic-height_14iqq_1rij9_200.awsui_header-stuck_14iqq_1rij9_191:not(#\9) {
278
+ .awsui_header-dynamic-height_14iqq_y5ati_252.awsui_header-stuck_14iqq_y5ati_243:not(#\9) {
227
279
  margin-bottom: calc(var(--font-heading-xl-line-height-4s70cu, 40px) - var(--font-heading-l-line-height-l1pmir, 30px));
228
280
  }
229
- .awsui_header_14iqq_1rij9_176:not(#\9):not(:empty) {
281
+ .awsui_header_14iqq_y5ati_222:not(#\9):not(:empty) {
230
282
  border-bottom: var(--border-container-sticky-width-3mz641, 0px) solid var(--color-border-container-divider-tildlh, transparent);
231
283
  }
232
- .awsui_header_14iqq_1rij9_176.awsui_with-paddings_14iqq_1rij9_206:not(#\9) {
284
+ .awsui_header_14iqq_y5ati_222.awsui_with-paddings_14iqq_y5ati_258:not(#\9) {
233
285
  padding: var(--space-container-header-vertical-di96ce, 12px) var(--space-container-horizontal-jxdgil, 20px);
234
286
  }
235
- .awsui_header_14iqq_1rij9_176.awsui_with-hidden-content_14iqq_1rij9_209:not(#\9) {
287
+ .awsui_header_14iqq_y5ati_222.awsui_with-hidden-content_14iqq_y5ati_261:not(#\9) {
236
288
  border-bottom-left-radius: var(--border-radius-container-pmtq2d, 16px);
237
289
  border-bottom-right-radius: var(--border-radius-container-pmtq2d, 16px);
238
290
  }
239
- .awsui_header-variant-cards_14iqq_1rij9_197:not(#\9) {
291
+ .awsui_header-variant-cards_14iqq_y5ati_249:not(#\9) {
240
292
  border-radius: var(--border-radius-container-pmtq2d, 16px);
241
293
  box-sizing: border-box;
242
294
  }
243
- .awsui_header-variant-cards_14iqq_1rij9_197:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1rij9_185) {
295
+ .awsui_header-variant-cards_14iqq_y5ati_249:not(#\9):not(.awsui_header-sticky-enabled_14iqq_y5ati_237) {
244
296
  position: relative;
245
297
  }
246
- .awsui_header-variant-cards_14iqq_1rij9_197:not(#\9)::before {
298
+ .awsui_header-variant-cards_14iqq_y5ati_249:not(#\9)::before {
247
299
  content: "";
248
300
  position: absolute;
249
301
  left: 0px;
@@ -258,7 +310,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
258
310
  border-radius: var(--border-radius-container-pmtq2d, 16px);
259
311
  z-index: 1;
260
312
  }
261
- .awsui_header-variant-cards_14iqq_1rij9_197:not(#\9)::after {
313
+ .awsui_header-variant-cards_14iqq_y5ati_249:not(#\9)::after {
262
314
  content: "";
263
315
  position: absolute;
264
316
  left: 0px;
@@ -273,19 +325,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
273
325
  mix-blend-mode: multiply;
274
326
  }
275
327
  @media screen and (-ms-high-contrast: active) {
276
- .awsui_header-variant-cards_14iqq_1rij9_197:not(#\9) {
328
+ .awsui_header-variant-cards_14iqq_y5ati_249:not(#\9) {
277
329
  border: var(--border-field-width-riro62, 2px) solid var(--color-border-container-top-camjrq, transparent);
278
330
  }
279
331
  }
280
- .awsui_header-variant-cards_14iqq_1rij9_197.awsui_header-stuck_14iqq_1rij9_191:not(#\9)::after, .awsui_header-variant-cards_14iqq_1rij9_197.awsui_header-stuck_14iqq_1rij9_191:not(#\9)::before {
332
+ .awsui_header-variant-cards_14iqq_y5ati_249.awsui_header-stuck_14iqq_y5ati_243:not(#\9)::after, .awsui_header-variant-cards_14iqq_y5ati_249.awsui_header-stuck_14iqq_y5ati_243:not(#\9)::before {
281
333
  border: 0;
282
334
  border-top-left-radius: 0;
283
335
  border-top-right-radius: 0;
284
336
  }
285
- .awsui_header-variant-full-page_14iqq_1rij9_259.awsui_header-stuck_14iqq_1rij9_191:not(#\9) {
337
+ .awsui_header-variant-full-page_14iqq_y5ati_311.awsui_header-stuck_14iqq_y5ati_243:not(#\9) {
286
338
  box-shadow: none;
287
339
  }
288
- .awsui_header-variant-full-page_14iqq_1rij9_259.awsui_header-stuck_14iqq_1rij9_191:not(#\9)::after {
340
+ .awsui_header-variant-full-page_14iqq_y5ati_311.awsui_header-stuck_14iqq_y5ati_243:not(#\9)::after {
289
341
  content: "";
290
342
  position: absolute;
291
343
  right: 0;
@@ -300,25 +352,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
300
352
  The dynamic height dark header needs a background that will cover
301
353
  the default white background of the container component.
302
354
  */
303
- .awsui_dark-header_14iqq_1rij9_277:not(#\9) {
355
+ .awsui_dark-header_14iqq_y5ati_329:not(#\9) {
304
356
  background-color: var(--color-background-layout-main-m49752, #ffffff);
305
357
  color: var(--color-text-body-default-mmvcvg, #000716);
306
358
  }
307
359
 
308
- .awsui_fit-height_14iqq_1rij9_111 > .awsui_content_14iqq_1rij9_282:not(#\9) {
360
+ .awsui_content_14iqq_y5ati_189:not(#\9) {
309
361
  flex: 1;
362
+ }
363
+ .awsui_content-fit-height_14iqq_y5ati_337:not(#\9) {
310
364
  overflow: auto;
311
365
  }
312
- .awsui_content_14iqq_1rij9_282.awsui_with-paddings_14iqq_1rij9_206:not(#\9) {
366
+ .awsui_content_14iqq_y5ati_189.awsui_with-paddings_14iqq_y5ati_258:not(#\9) {
313
367
  padding: var(--space-scaled-l-2rs0gk, 20px) var(--space-container-horizontal-jxdgil, 20px);
314
368
  }
315
- .awsui_header_14iqq_1rij9_176 + .awsui_content_14iqq_1rij9_282.awsui_with-paddings_14iqq_1rij9_206:not(#\9) {
369
+ .awsui_header_14iqq_y5ati_222 + .awsui_content_14iqq_y5ati_189.awsui_with-paddings_14iqq_y5ati_258:not(#\9) {
316
370
  padding-top: var(--space-container-content-top-aj37fz, 0px);
317
371
  }
372
+ .awsui_header_14iqq_y5ati_222 + .awsui_content_14iqq_y5ati_189.awsui_with-paddings_14iqq_y5ati_258.awsui_content-with-media_14iqq_y5ati_346:not(#\9) {
373
+ padding-top: 0;
374
+ }
318
375
 
319
- .awsui_footer_14iqq_1rij9_293.awsui_with-paddings_14iqq_1rij9_206:not(#\9) {
376
+ .awsui_footer_14iqq_y5ati_350.awsui_with-paddings_14iqq_y5ati_258:not(#\9) {
320
377
  padding: var(--space-scaled-s-913kwi, 12px) var(--space-container-horizontal-jxdgil, 20px);
321
378
  }
322
- .awsui_footer_14iqq_1rij9_293.awsui_with-divider_14iqq_1rij9_296:not(#\9) {
379
+ .awsui_footer_14iqq_y5ati_350.awsui_with-divider_14iqq_y5ati_353:not(#\9) {
323
380
  border-top: var(--border-divider-section-width-orq175, 2px) solid var(--color-border-divider-default-9o8zql, #e9ebed);
324
381
  }