@cloudscape-design/components 3.0.236 → 3.0.238

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 (54) hide show
  1. package/button/index.d.ts.map +1 -1
  2. package/button/index.js +2 -2
  3. package/button/index.js.map +1 -1
  4. package/button/interfaces.d.ts +4 -0
  5. package/button/interfaces.d.ts.map +1 -1
  6. package/button/interfaces.js.map +1 -1
  7. package/container/internal.d.ts.map +1 -1
  8. package/container/internal.js +4 -2
  9. package/container/internal.js.map +1 -1
  10. package/container/styles.css.js +18 -20
  11. package/container/styles.scoped.css +36 -43
  12. package/container/styles.selectors.js +18 -20
  13. package/icon/icons.js +1 -1
  14. package/icon/interfaces.d.ts +1 -1
  15. package/icon/interfaces.d.ts.map +1 -1
  16. package/icon/interfaces.js.map +1 -1
  17. package/internal/environment.js +1 -1
  18. package/internal/hooks/use-intersection-observer/index.d.ts +9 -0
  19. package/internal/hooks/use-intersection-observer/index.d.ts.map +1 -0
  20. package/internal/hooks/use-intersection-observer/index.js +28 -0
  21. package/internal/hooks/use-intersection-observer/index.js.map +1 -0
  22. package/internal/manifest.json +1 -1
  23. package/modal/internal.d.ts.map +1 -1
  24. package/modal/internal.js +8 -2
  25. package/modal/internal.js.map +1 -1
  26. package/modal/styles.css.js +23 -22
  27. package/modal/styles.scoped.css +43 -37
  28. package/modal/styles.selectors.js +23 -22
  29. package/package.json +1 -1
  30. package/property-filter/index.d.ts.map +1 -1
  31. package/property-filter/index.js +6 -4
  32. package/property-filter/index.js.map +1 -1
  33. package/property-filter/property-filter-autosuggest.d.ts +1 -0
  34. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  35. package/property-filter/property-filter-autosuggest.js +2 -2
  36. package/property-filter/property-filter-autosuggest.js.map +1 -1
  37. package/property-filter/styles.css.js +31 -33
  38. package/property-filter/styles.scoped.css +33 -43
  39. package/property-filter/styles.selectors.js +31 -33
  40. package/test-utils/dom/property-filter/index.js +2 -1
  41. package/test-utils/dom/property-filter/index.js.map +1 -1
  42. package/test-utils/selectors/property-filter/index.js +2 -1
  43. package/test-utils/selectors/property-filter/index.js.map +1 -1
  44. package/test-utils/tsconfig.tsbuildinfo +1 -1
  45. package/text-filter/internal.d.ts.map +1 -1
  46. package/text-filter/internal.js +4 -8
  47. package/text-filter/internal.js.map +1 -1
  48. package/text-filter/search-results.d.ts +8 -0
  49. package/text-filter/search-results.d.ts.map +1 -0
  50. package/text-filter/search-results.js +13 -0
  51. package/text-filter/search-results.js.map +1 -0
  52. package/text-filter/styles.css.js +3 -4
  53. package/text-filter/styles.scoped.css +3 -5
  54. package/text-filter/styles.selectors.js +3 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,qFA0DX,CAAC;AAGF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,QAAA,MAAM,MAAM,qFA4DX,CAAC;AAGF,eAAe,MAAM,CAAC"}
package/button/index.js CHANGED
@@ -7,10 +7,10 @@ import { InternalButton } from './internal';
7
7
  import { applyDisplayName } from '../internal/utils/apply-display-name';
8
8
  import useBaseComponent from '../internal/hooks/use-base-component';
9
9
  const Button = React.forwardRef((_a, ref) => {
10
- var { children, iconName, iconAlign = 'left', iconUrl, iconSvg, iconAlt, variant = 'normal', loading = false, loadingText, disabled = false, wrapText = true, href, target, rel, download, formAction = 'submit', ariaLabel, onClick, onFollow, ariaExpanded } = _a, props = __rest(_a, ["children", "iconName", "iconAlign", "iconUrl", "iconSvg", "iconAlt", "variant", "loading", "loadingText", "disabled", "wrapText", "href", "target", "rel", "download", "formAction", "ariaLabel", "onClick", "onFollow", "ariaExpanded"]);
10
+ var { children, iconName, iconAlign = 'left', iconUrl, iconSvg, iconAlt, variant = 'normal', loading = false, loadingText, disabled = false, wrapText = true, href, target, rel, download, formAction = 'submit', ariaLabel, onClick, onFollow, ariaExpanded, form } = _a, props = __rest(_a, ["children", "iconName", "iconAlign", "iconUrl", "iconSvg", "iconAlt", "variant", "loading", "loadingText", "disabled", "wrapText", "href", "target", "rel", "download", "formAction", "ariaLabel", "onClick", "onFollow", "ariaExpanded", "form"]);
11
11
  const baseComponentProps = useBaseComponent('Button');
12
12
  const baseProps = getBaseProps(props);
13
- return (React.createElement(InternalButton, Object.assign({}, baseProps, baseComponentProps, { ref: ref, iconName: iconName, iconAlign: iconAlign, iconUrl: iconUrl, iconSvg: iconSvg, iconAlt: iconAlt, variant: variant, loading: loading, loadingText: loadingText, disabled: disabled, wrapText: wrapText, href: href, target: target, rel: rel, download: download, formAction: formAction, ariaLabel: ariaLabel, onClick: onClick, onFollow: onFollow, ariaExpanded: ariaExpanded }), children));
13
+ return (React.createElement(InternalButton, Object.assign({}, baseProps, baseComponentProps, { ref: ref, iconName: iconName, iconAlign: iconAlign, iconUrl: iconUrl, iconSvg: iconSvg, iconAlt: iconAlt, variant: variant, loading: loading, loadingText: loadingText, disabled: disabled, wrapText: wrapText, href: href, target: target, rel: rel, download: download, formAction: formAction, ariaLabel: ariaLabel, onClick: onClick, onFollow: onFollow, ariaExpanded: ariaExpanded, form: form }), children));
14
14
  });
15
15
  applyDisplayName(Button, 'Button');
16
16
  export default Button;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAA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AE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,KAEzB,QAAQ,CACM,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACnC,eAAe,MAAM,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { ButtonProps } from './interfaces';\nimport { InternalButton } from './internal';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ButtonProps };\n\nconst Button = React.forwardRef(\n (\n {\n children,\n iconName,\n iconAlign = 'left',\n iconUrl,\n iconSvg,\n iconAlt,\n variant = 'normal',\n loading = false,\n loadingText,\n disabled = false,\n wrapText = true,\n href,\n target,\n rel,\n download,\n formAction = 'submit',\n ariaLabel,\n onClick,\n onFollow,\n ariaExpanded,\n ...props\n }: ButtonProps,\n ref: React.Ref<ButtonProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('Button');\n const baseProps = getBaseProps(props);\n return (\n <InternalButton\n {...baseProps}\n {...baseComponentProps}\n ref={ref}\n iconName={iconName}\n iconAlign={iconAlign}\n iconUrl={iconUrl}\n iconSvg={iconSvg}\n iconAlt={iconAlt}\n variant={variant}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n wrapText={wrapText}\n href={href}\n target={target}\n rel={rel}\n download={download}\n formAction={formAction}\n ariaLabel={ariaLabel}\n onClick={onClick}\n onFollow={onFollow}\n ariaExpanded={ariaExpanded}\n >\n {children}\n </InternalButton>\n );\n }\n);\n\napplyDisplayName(Button, 'Button');\nexport default Button;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,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AS,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI,KAET,QAAQ,CACM,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACnC,eAAe,MAAM,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { ButtonProps } from './interfaces';\nimport { InternalButton } from './internal';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\n\nexport { ButtonProps };\n\nconst Button = React.forwardRef(\n (\n {\n children,\n iconName,\n iconAlign = 'left',\n iconUrl,\n iconSvg,\n iconAlt,\n variant = 'normal',\n loading = false,\n loadingText,\n disabled = false,\n wrapText = true,\n href,\n target,\n rel,\n download,\n formAction = 'submit',\n ariaLabel,\n onClick,\n onFollow,\n ariaExpanded,\n form,\n ...props\n }: ButtonProps,\n ref: React.Ref<ButtonProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('Button');\n const baseProps = getBaseProps(props);\n return (\n <InternalButton\n {...baseProps}\n {...baseComponentProps}\n ref={ref}\n iconName={iconName}\n iconAlign={iconAlign}\n iconUrl={iconUrl}\n iconSvg={iconSvg}\n iconAlt={iconAlt}\n variant={variant}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n wrapText={wrapText}\n href={href}\n target={target}\n rel={rel}\n download={download}\n formAction={formAction}\n ariaLabel={ariaLabel}\n onClick={onClick}\n onFollow={onFollow}\n ariaExpanded={ariaExpanded}\n form={form}\n >\n {children}\n </InternalButton>\n );\n }\n);\n\napplyDisplayName(Button, 'Button');\nexport default Button;\n"]}
@@ -99,6 +99,10 @@ export interface ButtonProps extends BaseComponentProps {
99
99
  * * `inline-icon` to display an icon-only (no text) button within a text context.
100
100
  */
101
101
  variant?: ButtonProps.Variant;
102
+ /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.
103
+ * Use when a button is not the ancestor of a form element, such as when used in a modal.
104
+ */
105
+ form?: string;
102
106
  /**
103
107
  * Text displayed in the button element.
104
108
  * @displayname text
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/button/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEzF,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,GA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AAM,GAAG,MAAM,GAAG,aAAa,CAAC;IAC7E,KAAY,WAAW,GAAG,YAAY,CAAC;IAEvC,KAAY,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;IAE3C,KAAY,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAEzC,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;KACrC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/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 { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n /**\n * Adds `aria-label` to the button element. It should be used in buttons that don't have text in order to make\n * them accessible.\n */\n ariaLabel?: string;\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n */\n variant?: ButtonProps.Variant;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<null>;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n\n ariaExpanded?: boolean;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon';\n export type ClickDetail = _ClickDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/button/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 { IconProps } from '../icon/interfaces';\nimport React from 'react';\nimport { CancelableEventHandler, ClickDetail as _ClickDetail } from '../internal/events';\n\nexport interface ButtonProps extends BaseComponentProps {\n /**\n * Renders the button as disabled and prevents clicks.\n */\n disabled?: boolean;\n /**\n * Renders the button as being in a loading state. It takes precedence over the `disabled` if both are set to `true`.\n * It prevents users from clicking the button.\n */\n loading?: boolean;\n /**\n * Specifies the text that screen reader announces when the button is in a loading state.\n */\n loadingText?: string;\n /**\n * Displays an icon next to the text. You can use the `iconAlign` property to position the icon.\n */\n iconName?: IconProps.Name;\n /**\n * Specifies the alignment of the icon.\n */\n iconAlign?: ButtonProps.IconAlign;\n /**\n * Specifies the URL of a custom icon. Use this property if the icon you want isn't available.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n */\n iconUrl?: string;\n /**\n * Specifies the SVG of a custom icon.\n *\n * Use this property if you want your custom icon to inherit colors dictated by variant or hover states.\n * When this property is set, the component will be decorated with `aria-hidden=\"true\"`. Ensure that the `svg` element:\n * - has attribute `focusable=\"false\"`.\n * - has `viewBox=\"0 0 16 16\"`.\n *\n * If you set the `svg` element as the root node of the slot, the component will automatically\n * - set `stroke=\"currentColor\"`, `fill=\"none\"`, and `vertical-align=\"top\"`.\n * - set the stroke width based on the size of the icon.\n * - set the width and height of the SVG element based on the size of the icon.\n *\n * If you don't want these styles to be automatically set, wrap the `svg` element into a `span`.\n * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.\n *\n * If you set both `iconUrl` and `iconSvg`, `iconSvg` will take precedence.\n *\n * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.\n * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.\n */\n iconSvg?: React.ReactNode;\n /**\n * Specifies alternate text for a custom icon. We recommend that you provide this for accessibility.\n * This property is ignored if you use a predefined icon or if you set your custom icon using the `iconSvg` slot.\n */\n iconAlt?: string;\n /**\n * The form action that is performed by a button click.\n */\n formAction?: ButtonProps.FormAction;\n /**\n * Adds `aria-label` to the button element. It should be used in buttons that don't have text in order to make\n * them accessible.\n */\n ariaLabel?: string;\n /**\n * Applies button styling to a link. Use this property if you need a link styled as a button (`variant=link`).\n * For example, if you have a 'help' button that links to a documentation page.\n */\n href?: string;\n\n /**\n * Specifies where to open the linked URL (for example, to open in a new browser window or tab use `_blank`).\n * This property only applies when an `href` is provided.\n */\n target?: string;\n\n /**\n * Adds a `rel` attribute to the link. By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `target` is `\"_blank\"`.\n * If the `rel` property is provided, it overrides the default behavior.\n */\n rel?: string;\n\n /**\n * Specifies whether the linked URL, when selected, will prompt the user to download instead of navigate.\n * You can specify a string value that will be suggested as the name of the downloaded file.\n * This property only applies when an `href` is provided.\n **/\n download?: boolean | string;\n\n /**\n * Specifies if the `text` content wraps. If you set it to `false`, it prevents the text from wrapping.\n */\n wrapText?: boolean;\n\n /** Determines the general styling of the button as follows:\n * * `primary` for primary buttons.\n * * `normal` for secondary buttons.\n * * `link` for tertiary buttons.\n * * `icon` to display an icon only (no text).\n * * `inline-icon` to display an icon-only (no text) button within a text context.\n */\n variant?: ButtonProps.Variant;\n\n /** The id of the <form> element to associate with the button. The value of this attribute must be the id of a <form> in the same document.\n * Use when a button is not the ancestor of a form element, such as when used in a modal.\n */\n form?: string;\n\n /**\n * Text displayed in the button element.\n * @displayname text\n */\n children?: React.ReactNode;\n\n /**\n * Called when the user clicks on the button and the button is not disabled or in loading state.\n */\n onClick?: CancelableEventHandler<ButtonProps.ClickDetail>;\n\n /**\n * Called when the user clicks on the button with the left mouse button without pressing\n * modifier keys (that is, CTRL, ALT, SHIFT, META), and the button has an `href` set.\n */\n onFollow?: CancelableEventHandler<null>;\n\n /**\n * Adds aria-expanded to the button element. Use when the button controls an expandable element.\n */\n\n ariaExpanded?: boolean;\n}\n\nexport namespace ButtonProps {\n export type Variant = 'normal' | 'primary' | 'link' | 'icon' | 'inline-icon';\n export type ClickDetail = _ClickDetail;\n\n export type FormAction = 'submit' | 'none';\n\n export type IconAlign = 'left' | 'right';\n\n export interface Ref {\n /**\n * Focuses the underlying native button.\n */\n focus(options?: FocusOptions): void;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/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;AAOlF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,C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CAAC,EAAE,OAAO,CAAC;IACvB;;;;;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,cAAc,EACd,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAU,EACV,YAAoB,EACpB,GAAG,SAAS,EACb,EAAE,sBAAsB,eAuFxB"}
@@ -39,7 +39,7 @@ export default function InternalContainer(_a) {
39
39
  }
40
40
  };
41
41
  }, [isSticky, setHasStickyBackground, variant]);
42
- return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], isSticky && [styles['sticky-enabled']], !disableContentPaddings && styles['with-content-paddings'], footer && styles['with-footer']), ref: mergedRef }),
42
+ return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, styles[`variant-${variant}`], fitHeight && styles['fit-height'], isSticky && [styles['sticky-enabled']]), ref: mergedRef }),
43
43
  header && (React.createElement(StickyHeaderContext.Provider, { value: { isStuck } },
44
44
  React.createElement("div", Object.assign({ className: clsx(styles.header, styles[`header-variant-${variant}`], {
45
45
  [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,
@@ -49,7 +49,9 @@ export default function InternalContainer(_a) {
49
49
  [styles['with-paddings']]: !disableHeaderPaddings,
50
50
  [styles['with-hidden-content']]: !children || __hiddenContent,
51
51
  }) }, headerIdProp, stickyStyles, { ref: headerMergedRef }), __darkHeader ? (React.createElement("div", { className: clsx(styles['dark-header'], 'awsui-context-content-header') }, header)) : (header)))),
52
- React.createElement("div", { className: styles.content }, children),
52
+ React.createElement("div", { className: clsx(styles.content, {
53
+ [styles['with-paddings']]: !disableContentPaddings,
54
+ }) }, children),
53
55
  footer && (React.createElement("div", { className: clsx(styles.footer, {
54
56
  [styles['with-divider']]: !__disableFooterDivider,
55
57
  [styles['with-paddings']]: !__disableFooterPaddings,
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/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,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAoBrC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAkBjB;QAlBiB,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,KAAK,EAC9B,SAAS,EACT,cAAc,EACd,cAAc,GAAG,KAAK,EACtB,iBAAiB,GAAG,IAAI,EACxB,sBAAsB,GAAG,KAAK,EAC9B,uBAAuB,GAAG,KAAK,EAC/B,eAAe,GAAG,KAAK,EACvB,WAAW,EACX,UAAU,EACV,YAAY,GAAG,KAAK,OAEG,EADpB,SAAS,cAjB4B,yRAkBzC,CADa;IAEZ,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,M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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 { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: 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 __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n ...restProps\n}: InternalContainerProps) {\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset);\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __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 return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n isSticky && [styles['sticky-enabled']],\n !disableContentPaddings && styles['with-content-paddings'],\n footer && styles['with-footer']\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 className={styles.content}>{children}</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":"","sources":["../../../src/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,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAoBrC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAkBjB;QAlBiB,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,KAAK,EAC9B,SAAS,EACT,cAAc,EACd,cAAc,GAAG,KAAK,EACtB,iBAAiB,GAAG,IAAI,EACxB,sBAAsB,GAAG,KAAK,EAC9B,uBAAuB,GAAG,KAAK,EAC/B,eAAe,GAAG,KAAK,EACvB,WAAW,EACX,UAAU,EACV,YAAY,GAAG,KAAK,OAEG,EADpB,SAAS,cAjB4B,yRAkBzC,CADa;IAEZ,MAAM,SAAS,GAAG,YAA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ACT,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 { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: 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 __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n ...restProps\n}: InternalContainerProps) {\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset);\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __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 return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n isSticky && [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,25 +1,23 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_14iqq_wj0a7_97",
5
- "fit-height": "awsui_fit-height_14iqq_wj0a7_111",
6
- "variant-default": "awsui_variant-default_14iqq_wj0a7_116",
7
- "variant-stacked": "awsui_variant-stacked_14iqq_wj0a7_116",
8
- "sticky-enabled": "awsui_sticky-enabled_14iqq_wj0a7_169",
9
- "header": "awsui_header_14iqq_wj0a7_176",
10
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_wj0a7_181",
11
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_wj0a7_185",
12
- "header-stuck": "awsui_header-stuck_14iqq_wj0a7_191",
13
- "header-variant-cards": "awsui_header-variant-cards_14iqq_wj0a7_197",
14
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_wj0a7_200",
15
- "with-paddings": "awsui_with-paddings_14iqq_wj0a7_206",
16
- "with-hidden-content": "awsui_with-hidden-content_14iqq_wj0a7_209",
17
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_wj0a7_259",
18
- "dark-header": "awsui_dark-header_14iqq_wj0a7_277",
19
- "content": "awsui_content_14iqq_wj0a7_282",
20
- "with-content-paddings": "awsui_with-content-paddings_14iqq_wj0a7_286",
21
- "with-footer": "awsui_with-footer_14iqq_wj0a7_293",
22
- "footer": "awsui_footer_14iqq_wj0a7_300",
23
- "with-divider": "awsui_with-divider_14iqq_wj0a7_303"
4
+ "root": "awsui_root_14iqq_1h06v_97",
5
+ "fit-height": "awsui_fit-height_14iqq_1h06v_111",
6
+ "variant-default": "awsui_variant-default_14iqq_1h06v_116",
7
+ "variant-stacked": "awsui_variant-stacked_14iqq_1h06v_116",
8
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1h06v_169",
9
+ "header": "awsui_header_14iqq_1h06v_176",
10
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1h06v_181",
11
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1h06v_185",
12
+ "header-stuck": "awsui_header-stuck_14iqq_1h06v_191",
13
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1h06v_197",
14
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1h06v_200",
15
+ "with-paddings": "awsui_with-paddings_14iqq_1h06v_206",
16
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1h06v_209",
17
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1h06v_259",
18
+ "dark-header": "awsui_dark-header_14iqq_1h06v_277",
19
+ "content": "awsui_content_14iqq_1h06v_282",
20
+ "footer": "awsui_footer_14iqq_1h06v_293",
21
+ "with-divider": "awsui_with-divider_14iqq_1h06v_296"
24
22
  };
25
23
 
@@ -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_wj0a7_97:not(#\9) {
97
+ .awsui_root_14iqq_1h06v_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,17 @@ 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_wj0a7_97.awsui_fit-height_14iqq_wj0a7_111:not(#\9) {
137
+ .awsui_root_14iqq_1h06v_97.awsui_fit-height_14iqq_1h06v_111:not(#\9) {
138
138
  display: flex;
139
139
  flex-direction: column;
140
140
  height: 100%;
141
141
  }
142
- .awsui_root_14iqq_wj0a7_97.awsui_variant-default_14iqq_wj0a7_116:not(#\9), .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9) {
142
+ .awsui_root_14iqq_1h06v_97.awsui_variant-default_14iqq_1h06v_116:not(#\9), .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9) {
143
143
  border-radius: var(--border-radius-container-gh9ysk, 16px);
144
144
  box-sizing: border-box;
145
145
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
146
146
  }
147
- .awsui_root_14iqq_wj0a7_97.awsui_variant-default_14iqq_wj0a7_116:not(#\9)::before, .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::before {
147
+ .awsui_root_14iqq_1h06v_97.awsui_variant-default_14iqq_1h06v_116:not(#\9)::before, .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::before {
148
148
  content: "";
149
149
  position: absolute;
150
150
  left: 0px;
@@ -159,7 +159,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
159
  border-radius: var(--border-radius-container-gh9ysk, 16px);
160
160
  z-index: 1;
161
161
  }
162
- .awsui_root_14iqq_wj0a7_97.awsui_variant-default_14iqq_wj0a7_116:not(#\9)::after, .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::after {
162
+ .awsui_root_14iqq_1h06v_97.awsui_variant-default_14iqq_1h06v_116:not(#\9)::after, .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::after {
163
163
  content: "";
164
164
  position: absolute;
165
165
  left: 0px;
@@ -174,76 +174,76 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
174
174
  mix-blend-mode: multiply;
175
175
  }
176
176
  @media screen and (-ms-high-contrast: active) {
177
- .awsui_root_14iqq_wj0a7_97.awsui_variant-default_14iqq_wj0a7_116:not(#\9), .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9) {
177
+ .awsui_root_14iqq_1h06v_97.awsui_variant-default_14iqq_1h06v_116:not(#\9), .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9) {
178
178
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
179
179
  }
180
180
  }
181
- .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9):not(:last-child), .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9):not(:last-child)::before, .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9):not(:last-child)::after {
181
+ .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9):not(:last-child), .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9):not(:last-child)::after {
182
182
  border-bottom-right-radius: 0;
183
183
  border-bottom-left-radius: 0;
184
184
  }
185
- .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116 + .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9), .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116 + .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::before, .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116 + .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::after {
185
+ .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116 + .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9), .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116 + .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::before, .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116 + .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::after {
186
186
  border-top-left-radius: 0;
187
187
  border-top-right-radius: 0;
188
188
  }
189
- .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116 + .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::before {
189
+ .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116 + .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::before {
190
190
  border-top: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
191
191
  }
192
- .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116 + .awsui_root_14iqq_wj0a7_97.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::after {
192
+ .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116 + .awsui_root_14iqq_1h06v_97.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::after {
193
193
  box-shadow: var(--shadow-container-stacked-jfo2nn, -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
194
  }
195
- .awsui_root_14iqq_wj0a7_97.awsui_sticky-enabled_14iqq_wj0a7_169:not(#\9)::before {
195
+ .awsui_root_14iqq_1h06v_97.awsui_sticky-enabled_14iqq_1h06v_169:not(#\9)::before {
196
196
  top: calc(-1 * var(--border-container-top-width-jk6fhm, 0px));
197
197
  }
198
- .awsui_root_14iqq_wj0a7_97.awsui_sticky-enabled_14iqq_wj0a7_169.awsui_variant-stacked_14iqq_wj0a7_116:not(#\9)::before {
198
+ .awsui_root_14iqq_1h06v_97.awsui_sticky-enabled_14iqq_1h06v_169.awsui_variant-stacked_14iqq_1h06v_116:not(#\9)::before {
199
199
  top: calc(-1 * var(--border-divider-section-width-4wm2it, 2px));
200
200
  }
201
201
 
202
- .awsui_header_14iqq_wj0a7_176:not(#\9) {
202
+ .awsui_header_14iqq_1h06v_176:not(#\9) {
203
203
  background-color: var(--color-background-container-header-4flbq5, #ffffff);
204
204
  border-top-left-radius: var(--border-radius-container-gh9ysk, 16px);
205
205
  border-top-right-radius: var(--border-radius-container-gh9ysk, 16px);
206
206
  }
207
- .awsui_header-sticky-disabled_14iqq_wj0a7_181:not(#\9) {
207
+ .awsui_header-sticky-disabled_14iqq_1h06v_181:not(#\9) {
208
208
  position: relative;
209
209
  z-index: 1;
210
210
  }
211
- .awsui_header-sticky-enabled_14iqq_wj0a7_185:not(#\9) {
211
+ .awsui_header-sticky-enabled_14iqq_1h06v_185:not(#\9) {
212
212
  top: 0;
213
213
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
214
214
  position: sticky;
215
215
  z-index: 800;
216
216
  }
217
- .awsui_header-stuck_14iqq_wj0a7_191:not(#\9) {
217
+ .awsui_header-stuck_14iqq_1h06v_191:not(#\9) {
218
218
  border-radius: 0;
219
219
  }
220
- .awsui_header-stuck_14iqq_wj0a7_191:not(#\9)::before {
220
+ .awsui_header-stuck_14iqq_1h06v_191:not(#\9)::before {
221
221
  border: 0;
222
222
  }
223
- .awsui_header-stuck_14iqq_wj0a7_191:not(#\9):not(.awsui_header-variant-cards_14iqq_wj0a7_197) {
223
+ .awsui_header-stuck_14iqq_1h06v_191:not(#\9):not(.awsui_header-variant-cards_14iqq_1h06v_197) {
224
224
  box-shadow: var(--shadow-sticky-embedded-qit8ba, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
225
225
  }
226
- .awsui_header-dynamic-height_14iqq_wj0a7_200.awsui_header-stuck_14iqq_wj0a7_191:not(#\9) {
226
+ .awsui_header-dynamic-height_14iqq_1h06v_200.awsui_header-stuck_14iqq_1h06v_191:not(#\9) {
227
227
  margin-bottom: calc(var(--font-heading-xl-line-height-doxfdj, 40px) - var(--font-heading-l-line-height-gev4n1, 30px));
228
228
  }
229
- .awsui_header_14iqq_wj0a7_176:not(#\9):not(:empty) {
229
+ .awsui_header_14iqq_1h06v_176:not(#\9):not(:empty) {
230
230
  border-bottom: var(--border-container-sticky-width-i7t7xe, 0px) solid var(--color-border-container-divider-4ade7z, transparent);
231
231
  }
232
- .awsui_header_14iqq_wj0a7_176.awsui_with-paddings_14iqq_wj0a7_206:not(#\9) {
232
+ .awsui_header_14iqq_1h06v_176.awsui_with-paddings_14iqq_1h06v_206:not(#\9) {
233
233
  padding: var(--space-container-header-vertical-zsjhel, 12px) var(--space-container-horizontal-tlw03i, 20px);
234
234
  }
235
- .awsui_header_14iqq_wj0a7_176.awsui_with-hidden-content_14iqq_wj0a7_209:not(#\9) {
235
+ .awsui_header_14iqq_1h06v_176.awsui_with-hidden-content_14iqq_1h06v_209:not(#\9) {
236
236
  border-bottom-left-radius: var(--border-radius-container-gh9ysk, 16px);
237
237
  border-bottom-right-radius: var(--border-radius-container-gh9ysk, 16px);
238
238
  }
239
- .awsui_header-variant-cards_14iqq_wj0a7_197:not(#\9) {
239
+ .awsui_header-variant-cards_14iqq_1h06v_197:not(#\9) {
240
240
  border-radius: var(--border-radius-container-gh9ysk, 16px);
241
241
  box-sizing: border-box;
242
242
  }
243
- .awsui_header-variant-cards_14iqq_wj0a7_197:not(#\9):not(.awsui_header-sticky-enabled_14iqq_wj0a7_185) {
243
+ .awsui_header-variant-cards_14iqq_1h06v_197:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1h06v_185) {
244
244
  position: relative;
245
245
  }
246
- .awsui_header-variant-cards_14iqq_wj0a7_197:not(#\9)::before {
246
+ .awsui_header-variant-cards_14iqq_1h06v_197:not(#\9)::before {
247
247
  content: "";
248
248
  position: absolute;
249
249
  left: 0px;
@@ -258,7 +258,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
258
258
  border-radius: var(--border-radius-container-gh9ysk, 16px);
259
259
  z-index: 1;
260
260
  }
261
- .awsui_header-variant-cards_14iqq_wj0a7_197:not(#\9)::after {
261
+ .awsui_header-variant-cards_14iqq_1h06v_197:not(#\9)::after {
262
262
  content: "";
263
263
  position: absolute;
264
264
  left: 0px;
@@ -273,19 +273,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
273
273
  mix-blend-mode: multiply;
274
274
  }
275
275
  @media screen and (-ms-high-contrast: active) {
276
- .awsui_header-variant-cards_14iqq_wj0a7_197:not(#\9) {
276
+ .awsui_header-variant-cards_14iqq_1h06v_197:not(#\9) {
277
277
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
278
278
  }
279
279
  }
280
- .awsui_header-variant-cards_14iqq_wj0a7_197.awsui_header-stuck_14iqq_wj0a7_191:not(#\9)::after, .awsui_header-variant-cards_14iqq_wj0a7_197.awsui_header-stuck_14iqq_wj0a7_191:not(#\9)::before {
280
+ .awsui_header-variant-cards_14iqq_1h06v_197.awsui_header-stuck_14iqq_1h06v_191:not(#\9)::after, .awsui_header-variant-cards_14iqq_1h06v_197.awsui_header-stuck_14iqq_1h06v_191:not(#\9)::before {
281
281
  border: 0;
282
282
  border-top-left-radius: 0;
283
283
  border-top-right-radius: 0;
284
284
  }
285
- .awsui_header-variant-full-page_14iqq_wj0a7_259.awsui_header-stuck_14iqq_wj0a7_191:not(#\9) {
285
+ .awsui_header-variant-full-page_14iqq_1h06v_259.awsui_header-stuck_14iqq_1h06v_191:not(#\9) {
286
286
  box-shadow: none;
287
287
  }
288
- .awsui_header-variant-full-page_14iqq_wj0a7_259.awsui_header-stuck_14iqq_wj0a7_191:not(#\9)::after {
288
+ .awsui_header-variant-full-page_14iqq_1h06v_259.awsui_header-stuck_14iqq_1h06v_191:not(#\9)::after {
289
289
  content: "";
290
290
  position: absolute;
291
291
  right: 0;
@@ -300,32 +300,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
300
300
  The dynamic height dark header needs a background that will cover
301
301
  the default white background of the container component.
302
302
  */
303
- .awsui_dark-header_14iqq_wj0a7_277:not(#\9) {
303
+ .awsui_dark-header_14iqq_1h06v_277:not(#\9) {
304
304
  background-color: var(--color-background-layout-main-sfhm4y, #ffffff);
305
305
  color: var(--color-text-body-default-ajf1h5, #000716);
306
306
  }
307
307
 
308
- .awsui_fit-height_14iqq_wj0a7_111 > .awsui_content_14iqq_wj0a7_282:not(#\9) {
308
+ .awsui_fit-height_14iqq_1h06v_111 > .awsui_content_14iqq_1h06v_282:not(#\9) {
309
309
  flex: 1;
310
310
  overflow: auto;
311
311
  }
312
- .awsui_with-content-paddings_14iqq_wj0a7_286 > .awsui_content_14iqq_wj0a7_282:not(#\9) {
312
+ .awsui_content_14iqq_1h06v_282.awsui_with-paddings_14iqq_1h06v_206:not(#\9) {
313
313
  padding: var(--space-scaled-l-t03y3z, 20px) var(--space-container-horizontal-tlw03i, 20px);
314
314
  }
315
- .awsui_with-content-paddings_14iqq_wj0a7_286 > .awsui_header_14iqq_wj0a7_176 + .awsui_content_14iqq_wj0a7_282:not(#\9) {
315
+ .awsui_header_14iqq_1h06v_176 + .awsui_content_14iqq_1h06v_282.awsui_with-paddings_14iqq_1h06v_206:not(#\9) {
316
316
  padding-top: var(--space-container-content-top-fsd8nr, 0px);
317
317
  }
318
318
 
319
- .awsui_fit-height_14iqq_wj0a7_111.awsui_with-content-paddings_14iqq_wj0a7_286:not(#\9):not(.awsui_with-footer_14iqq_wj0a7_293) {
320
- padding-bottom: var(--space-scaled-l-t03y3z, 20px);
321
- }
322
- .awsui_fit-height_14iqq_wj0a7_111.awsui_with-content-paddings_14iqq_wj0a7_286:not(#\9):not(.awsui_with-footer_14iqq_wj0a7_293) > .awsui_content_14iqq_wj0a7_282 {
323
- padding-bottom: 0;
324
- }
325
-
326
- .awsui_footer_14iqq_wj0a7_300.awsui_with-paddings_14iqq_wj0a7_206:not(#\9) {
319
+ .awsui_footer_14iqq_1h06v_293.awsui_with-paddings_14iqq_1h06v_206:not(#\9) {
327
320
  padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-container-horizontal-tlw03i, 20px);
328
321
  }
329
- .awsui_footer_14iqq_wj0a7_300.awsui_with-divider_14iqq_wj0a7_303:not(#\9) {
322
+ .awsui_footer_14iqq_1h06v_293.awsui_with-divider_14iqq_1h06v_296:not(#\9) {
330
323
  border-top: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
331
324
  }
@@ -2,25 +2,23 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_14iqq_wj0a7_97",
6
- "fit-height": "awsui_fit-height_14iqq_wj0a7_111",
7
- "variant-default": "awsui_variant-default_14iqq_wj0a7_116",
8
- "variant-stacked": "awsui_variant-stacked_14iqq_wj0a7_116",
9
- "sticky-enabled": "awsui_sticky-enabled_14iqq_wj0a7_169",
10
- "header": "awsui_header_14iqq_wj0a7_176",
11
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_wj0a7_181",
12
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_wj0a7_185",
13
- "header-stuck": "awsui_header-stuck_14iqq_wj0a7_191",
14
- "header-variant-cards": "awsui_header-variant-cards_14iqq_wj0a7_197",
15
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_wj0a7_200",
16
- "with-paddings": "awsui_with-paddings_14iqq_wj0a7_206",
17
- "with-hidden-content": "awsui_with-hidden-content_14iqq_wj0a7_209",
18
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_wj0a7_259",
19
- "dark-header": "awsui_dark-header_14iqq_wj0a7_277",
20
- "content": "awsui_content_14iqq_wj0a7_282",
21
- "with-content-paddings": "awsui_with-content-paddings_14iqq_wj0a7_286",
22
- "with-footer": "awsui_with-footer_14iqq_wj0a7_293",
23
- "footer": "awsui_footer_14iqq_wj0a7_300",
24
- "with-divider": "awsui_with-divider_14iqq_wj0a7_303"
5
+ "root": "awsui_root_14iqq_1h06v_97",
6
+ "fit-height": "awsui_fit-height_14iqq_1h06v_111",
7
+ "variant-default": "awsui_variant-default_14iqq_1h06v_116",
8
+ "variant-stacked": "awsui_variant-stacked_14iqq_1h06v_116",
9
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1h06v_169",
10
+ "header": "awsui_header_14iqq_1h06v_176",
11
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1h06v_181",
12
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1h06v_185",
13
+ "header-stuck": "awsui_header-stuck_14iqq_1h06v_191",
14
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1h06v_197",
15
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1h06v_200",
16
+ "with-paddings": "awsui_with-paddings_14iqq_1h06v_206",
17
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1h06v_209",
18
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1h06v_259",
19
+ "dark-header": "awsui_dark-header_14iqq_1h06v_277",
20
+ "content": "awsui_content_14iqq_1h06v_282",
21
+ "footer": "awsui_footer_14iqq_1h06v_293",
22
+ "with-divider": "awsui_with-divider_14iqq_1h06v_296"
25
23
  };
26
24