@cloudscape-design/components 3.0.380 → 3.0.382

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.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["attribute-editor/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAY/D,MAAM,WAAW,6BAA6B;IAC5C,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;CAClG;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,uBAAuB,CAAC,CAAC;QACxC,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;KACpB;IAED,KAAY,eAAe,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACjF,UAAiB,eAAe,CAAC,CAAC;QAChC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;QAC/C,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;QACjD,cAAc,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;KACvD;IAED,UAAiB,uBAAuB;QACtC,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,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cesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface AttributeEditorForwardRefType {\n <T>(props: AttributeEditorProps<T> & { ref?: React.Ref<AttributeEditorProps.Ref> }): JSX.Element;\n}\n\nexport namespace AttributeEditorProps {\n export interface IsItemRemovableFunction<T> {\n (item: T): boolean;\n }\n\n export type FieldRenderable<T> = (item: T, itemIndex: number) => React.ReactNode;\n export interface FieldDefinition<T> {\n label?: React.ReactNode;\n info?: React.ReactNode;\n control?: FieldRenderable<T> | React.ReactNode;\n errorText?: FieldRenderable<T> | React.ReactNode;\n constraintText?: FieldRenderable<T> | React.ReactNode;\n }\n\n export interface RemoveButtonClickDetail {\n itemIndex: number;\n }\n\n export interface Ref {\n /**\n * Focuses the 'remove' button for the given row index.\n */\n focusRemoveButton(itemIndex: number): void;\n /**\n * Focuses the 'add' button. Use this, for example, after a user removes the last row.\n */\n focusAddButton(): void;\n }\n\n export interface I18nStrings<T = any> {\n errorIconAriaLabel?: string;\n itemRemovedAriaLive?: string;\n\n /**\n * @deprecated Use `removeButtonAriaLabel` on the component instead.\n */\n removeButtonAriaLabel?: (item: T) => string;\n }\n}\n\nexport interface AttributeEditorProps<T> extends BaseComponentProps {\n /**\n * Displayed when there are no items to display.\n */\n empty?: React.ReactNode;\n\n /**\n * Displayed below the add button. Use it for additional information related to the attribute editor.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Specifies the text that's displayed in the add button.\n */\n addButtonText: string;\n\n /**\n * Specifies the text that's displayed in the remove button.\n * @i18n\n */\n removeButtonText?: string;\n\n /**\n * Adds an `aria-label` to the remove button.\n */\n removeButtonAriaLabel?: (item: T) => string;\n\n /**\n * Specifies the items that serve as the data source for all rows.\n * The display of a row is handled by the `definition` property.\n */\n items?: ReadonlyArray<T>;\n\n /**\n * Function that determines whether an item is removable. When this function returns `false`, the remove\n * button is not rendered and the user can't remove the item.\n * By default, all items are removable.\n */\n isItemRemovable?: AttributeEditorProps.IsItemRemovableFunction<T>;\n\n /**\n * Determines whether the add button is disabled.\n */\n disableAddButton?: boolean;\n\n /**\n * Defines the editor configuration. Each object in the array represents one form field in the row.\n * * `label` (ReactNode) - Text label for the form field.\n * * `info` (ReactNode) - Info link for the form field.\n * * `errorText` ((item, itemIndex) => ReactNode) - Error message text to display as a control validation message.\n * It renders the form field as invalid if the returned value is not `null` or `undefined`.\n * * `constraintText` ((item, itemIndex) => ReactNode) - Text to display as a constraint message below the field.\n * * `control` ((item, itemIndex) => ReactNode) - A control to use as the input for the field.\n *\n * A maximum of four fields are supported.\n */\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n\n /**\n * Called when add button is clicked.\n */\n onAddButtonClick?: NonCancelableEventHandler;\n\n /**\n * Called when remove button is clicked.\n * The event `detail` contains the index of the corresponding item.\n */\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings?: AttributeEditorProps.I18nStrings<T>;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["attribute-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface AttributeEditorForwardRefType {\n <T>(props: AttributeEditorProps<T> & { ref?: React.Ref<AttributeEditorProps.Ref> }): JSX.Element;\n}\n\nexport namespace AttributeEditorProps {\n export interface IsItemRemovableFunction<T> {\n (item: T): boolean;\n }\n\n export type FieldRenderable<T> = (item: T, itemIndex: number) => React.ReactNode;\n export interface FieldDefinition<T> {\n label?: React.ReactNode;\n info?: React.ReactNode;\n control?: FieldRenderable<T> | React.ReactNode;\n errorText?: FieldRenderable<T> | React.ReactNode;\n constraintText?: FieldRenderable<T> | React.ReactNode;\n }\n\n export interface RemoveButtonClickDetail {\n itemIndex: number;\n }\n\n export interface Ref {\n /**\n * Focuses the 'remove' button for the given row index.\n */\n focusRemoveButton(itemIndex: number): void;\n /**\n * Focuses the 'add' button. Use this, for example, after a user removes the last row.\n */\n focusAddButton(): void;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n export interface I18nStrings<T = any> {\n errorIconAriaLabel?: string;\n itemRemovedAriaLive?: string;\n\n /**\n * @deprecated Use `removeButtonAriaLabel` on the component instead.\n */\n removeButtonAriaLabel?: (item: T) => string;\n }\n}\n\nexport interface AttributeEditorProps<T> extends BaseComponentProps {\n /**\n * Displayed when there are no items to display.\n */\n empty?: React.ReactNode;\n\n /**\n * Displayed below the add button. Use it for additional information related to the attribute editor.\n */\n additionalInfo?: React.ReactNode;\n\n /**\n * Specifies the text that's displayed in the add button.\n */\n addButtonText: string;\n\n /**\n * Specifies the text that's displayed in the remove button.\n * @i18n\n */\n removeButtonText?: string;\n\n /**\n * Adds an `aria-label` to the remove button.\n */\n removeButtonAriaLabel?: (item: T) => string;\n\n /**\n * Specifies the items that serve as the data source for all rows.\n * The display of a row is handled by the `definition` property.\n */\n items?: ReadonlyArray<T>;\n\n /**\n * Function that determines whether an item is removable. When this function returns `false`, the remove\n * button is not rendered and the user can't remove the item.\n * By default, all items are removable.\n */\n isItemRemovable?: AttributeEditorProps.IsItemRemovableFunction<T>;\n\n /**\n * Determines whether the add button is disabled.\n */\n disableAddButton?: boolean;\n\n /**\n * Defines the editor configuration. Each object in the array represents one form field in the row.\n * * `label` (ReactNode) - Text label for the form field.\n * * `info` (ReactNode) - Info link for the form field.\n * * `errorText` ((item, itemIndex) => ReactNode) - Error message text to display as a control validation message.\n * It renders the form field as invalid if the returned value is not `null` or `undefined`.\n * * `constraintText` ((item, itemIndex) => ReactNode) - Text to display as a constraint message below the field.\n * * `control` ((item, itemIndex) => ReactNode) - A control to use as the input for the field.\n *\n * A maximum of four fields are supported.\n */\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n\n /**\n * Called when add button is clicked.\n */\n onAddButtonClick?: NonCancelableEventHandler;\n\n /**\n * Called when remove button is clicked.\n * The event `detail` contains the index of the corresponding item.\n */\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings?: AttributeEditorProps.I18nStrings<T>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"row.d.ts","sourceRoot":"lib/default/","sources":["attribute-editor/row.tsx"],"names":[],"mappings":";AAMA,OAA6B,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAA0B,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AASvF,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC;IACR,UAAU,EAAE,aAAa,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,WAAW,EAAE,oBAAoB,CAAC,WAAW,GAAG,SAAS,CAAC;IAC1D,KAAK,EAAE,MA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AM,GAAG,6BA6EgB,WAAW,CAAC"}
@@ -13,7 +13,13 @@ import { useUniqueId } from '../internal/hooks/use-unique-id';
13
13
  import { useInternalI18n } from '../i18n/context';
14
14
  const Divider = () => React.createElement(InternalBox, { className: styles.divider, padding: { top: 'l' } });
15
15
  function render(item, itemIndex, slot) {
16
- return typeof slot === 'function' ? slot(item, itemIndex) : slot;
16
+ if (isSlotFunction(slot)) {
17
+ return slot(item, itemIndex);
18
+ }
19
+ return slot;
20
+ function isSlotFunction(slot) {
21
+ return typeof slot === 'function';
22
+ }
17
23
  }
18
24
  const GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }];
19
25
  const REMOVABLE_GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }, { colspan: { default: 12, xs: 3 } }];
@@ -1 +1 @@
1
- {"version":3,"file":"row.js","sourceRoot":"lib/default/","sources":["attribute-editor/row.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,oBAAgD,MAAM,2BAA2B,CAAC;AAGzF,OAAO,EAAE,sBAAsB,EAA6B,MAAM,oBAAoB,CAAC;AACvF,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,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AAC,GAAG,CAAC,KAAK,CAAC;oBAE3C,oBAAC,cAAc,IACb,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,EAClC,UAAU,EAAC,MAAM,EACjB,GAAG,EAAE,GAAG,CAAC,EAAE;4BACT,gBAAgB,CAAC,KAAK,CAAC,GAAG,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,SAAS,CAAC;wBAC7C,CAAC,EACD,SAAS,EAAE,MAAA,CAAC,qBAAqB,aAArB,qBAAqB,cAArB,qBAAqB,GAAI,WAAW,CAAC,qBAAqB,CAAC,0CAAG,IAAI,CAAC,EAC/E,OAAO,EAAE,iBAAiB,IAEzB,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAC5B,CACD,CACnB,CACY,CACX;QACL,gBAAgB,IAAI,oBAAC,OAAO,OAAG,CACpB,CACf,CAAC;AACJ,CAAC,CACwC,CAAC;AAS5C,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAmB,EAAE,EAAE,CAAC,CAC5F,6BACE,SAAS,EAAE,IAAI,CAAC;QACd,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,EAAE,CAAC,gBAAgB,IAAI,KAAK,KAAK,CAAC,IAAI,QAAQ;QACnF,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,gBAAgB,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,QAAQ;QACnF,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,gBAAgB;KAC1C,CAAC,IAED,QAAQ,CACL,CACP,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport InternalBox from '../box/internal';\nimport styles from './styles.css.js';\nimport React, { useCallback } from 'react';\nimport InternalFormField from '../form-field/internal';\nimport InternalColumnLayout, { ColumnLayoutBreakpoint } from '../column-layout/internal';\nimport { AttributeEditorProps } from './interfaces';\nimport { ButtonProps } from '../button/interfaces';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport InternalGrid from '../grid/internal';\nimport { InternalButton } from '../button/internal';\nimport clsx from 'clsx';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useInternalI18n } from '../i18n/context';\n\nconst Divider = () => <InternalBox className={styles.divider} padding={{ top: 'l' }} />;\n\nexport interface RowProps<T> {\n breakpoint: ColumnLayoutBreakpoint | null;\n item: T;\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n i18nStrings: AttributeEditorProps.I18nStrings | undefined;\n index: number;\n removable: boolean;\n removeButtonText?: string;\n removeButtonRefs: Array<ButtonProps.Ref | undefined>;\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n removeButtonAriaLabel?: (item: T) => string;\n}\n\nfunction render<T>(\n item: T,\n itemIndex: number,\n slot: AttributeEditorProps.FieldRenderable<T> | React.ReactNode | undefined\n) {\n return typeof slot === 'function' ? slot(item, itemIndex) : slot;\n}\n\nconst GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }];\nconst REMOVABLE_GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }, { colspan: { default: 12, xs: 3 } }];\nexport const Row = React.memo(\n <T,>({\n breakpoint,\n item,\n definition,\n i18nStrings = {},\n index,\n removable,\n removeButtonText,\n removeButtonRefs,\n onRemoveButtonClick,\n removeButtonAriaLabel,\n }: RowProps<T>) => {\n const i18n = useInternalI18n('attribute-editor');\n const isNarrowViewport = breakpoint === 'default' || breakpoint === 'xxs';\n const isWideViewport = !isNarrowViewport;\n\n const handleRemoveClick = useCallback(() => {\n fireNonCancelableEvent(onRemoveButtonClick, { itemIndex: index });\n }, [onRemoveButtonClick, index]);\n\n const firstControlId = useUniqueId('first-control-id-');\n\n return (\n <InternalBox className={styles.row} margin={{ bottom: 's' }}>\n <div role=\"group\" aria-labelledby={`${firstControlId}-label ${firstControlId}`}>\n <InternalGrid\n __breakpoint={breakpoint}\n gridDefinition={removable ? REMOVABLE_GRID_DEFINITION : GRID_DEFINITION}\n >\n <InternalColumnLayout\n className={styles['row-control']}\n columns={definition.length}\n __breakpoint={breakpoint}\n >\n {definition.map(({ info, label, constraintText, errorText, control }, defIndex) => (\n <InternalFormField\n key={defIndex}\n className={styles.field}\n label={label}\n info={info}\n constraintText={render(item, index, constraintText)}\n errorText={render(item, index, errorText)}\n stretch={true}\n i18nStrings={{ errorIconAriaLabel: i18nStrings.errorIconAriaLabel }}\n __hideLabel={isWideViewport && index > 0}\n controlId={defIndex === 0 ? firstControlId : undefined}\n >\n {render(item, index, control)}\n </InternalFormField>\n ))}\n </InternalColumnLayout>\n {removable && (\n <ButtonContainer\n index={index}\n isNarrowViewport={isNarrowViewport}\n hasLabel={definition.some(row => row.label)}\n >\n <InternalButton\n className={styles['remove-button']}\n formAction=\"none\"\n ref={ref => {\n removeButtonRefs[index] = ref ?? undefined;\n }}\n ariaLabel={(removeButtonAriaLabel ?? i18nStrings.removeButtonAriaLabel)?.(item)}\n onClick={handleRemoveClick}\n >\n {i18n('removeButtonText', removeButtonText)}\n </InternalButton>\n </ButtonContainer>\n )}\n </InternalGrid>\n </div>\n {isNarrowViewport && <Divider />}\n </InternalBox>\n );\n }\n) as <T>(props: RowProps<T>) => JSX.Element;\n\ninterface ButtonContainer {\n index: number;\n children: React.ReactNode;\n isNarrowViewport: boolean;\n hasLabel: boolean;\n}\n\nconst ButtonContainer = ({ index, children, isNarrowViewport, hasLabel }: ButtonContainer) => (\n <div\n className={clsx({\n [styles['button-container-haslabel']]: !isNarrowViewport && index === 0 && hasLabel,\n [styles['button-container-nolabel']]: !isNarrowViewport && index === 0 && !hasLabel,\n [styles['right-align']]: isNarrowViewport,\n })}\n >\n {children}\n </div>\n);\n"]}
1
+ {"version":3,"file":"row.js","sourceRoot":"lib/default/","sources":["attribute-editor/row.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE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,OAAO,OAAG,CACpB,CACf,CAAC;AACJ,CAAC,CACwC,CAAC;AAS5C,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAmB,EAAE,EAAE,CAAC,CAC5F,6BACE,SAAS,EAAE,IAAI,CAAC;QACd,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,EAAE,CAAC,gBAAgB,IAAI,KAAK,KAAK,CAAC,IAAI,QAAQ;QACnF,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,gBAAgB,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,QAAQ;QACnF,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,gBAAgB;KAC1C,CAAC,IAED,QAAQ,CACL,CACP,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport InternalBox from '../box/internal';\nimport styles from './styles.css.js';\nimport React, { useCallback } from 'react';\nimport InternalFormField from '../form-field/internal';\nimport InternalColumnLayout, { ColumnLayoutBreakpoint } from '../column-layout/internal';\nimport { AttributeEditorProps } from './interfaces';\nimport { ButtonProps } from '../button/interfaces';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport InternalGrid from '../grid/internal';\nimport { InternalButton } from '../button/internal';\nimport clsx from 'clsx';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useInternalI18n } from '../i18n/context';\n\nconst Divider = () => <InternalBox className={styles.divider} padding={{ top: 'l' }} />;\n\nexport interface RowProps<T> {\n breakpoint: ColumnLayoutBreakpoint | null;\n item: T;\n definition: ReadonlyArray<AttributeEditorProps.FieldDefinition<T>>;\n i18nStrings: AttributeEditorProps.I18nStrings | undefined;\n index: number;\n removable: boolean;\n removeButtonText?: string;\n removeButtonRefs: Array<ButtonProps.Ref | undefined>;\n onRemoveButtonClick?: NonCancelableEventHandler<AttributeEditorProps.RemoveButtonClickDetail>;\n removeButtonAriaLabel?: (item: T) => string;\n}\n\nfunction render<T>(\n item: T,\n itemIndex: number,\n slot: AttributeEditorProps.FieldRenderable<T> | React.ReactNode | undefined\n) {\n if (isSlotFunction(slot)) {\n return slot(item, itemIndex);\n }\n return slot;\n\n function isSlotFunction(slot: unknown): slot is AttributeEditorProps.FieldRenderable<T> {\n return typeof slot === 'function';\n }\n}\n\nconst GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }];\nconst REMOVABLE_GRID_DEFINITION = [{ colspan: { default: 12, xs: 9 } }, { colspan: { default: 12, xs: 3 } }];\nexport const Row = React.memo(\n <T,>({\n breakpoint,\n item,\n definition,\n i18nStrings = {},\n index,\n removable,\n removeButtonText,\n removeButtonRefs,\n onRemoveButtonClick,\n removeButtonAriaLabel,\n }: RowProps<T>) => {\n const i18n = useInternalI18n('attribute-editor');\n const isNarrowViewport = breakpoint === 'default' || breakpoint === 'xxs';\n const isWideViewport = !isNarrowViewport;\n\n const handleRemoveClick = useCallback(() => {\n fireNonCancelableEvent(onRemoveButtonClick, { itemIndex: index });\n }, [onRemoveButtonClick, index]);\n\n const firstControlId = useUniqueId('first-control-id-');\n\n return (\n <InternalBox className={styles.row} margin={{ bottom: 's' }}>\n <div role=\"group\" aria-labelledby={`${firstControlId}-label ${firstControlId}`}>\n <InternalGrid\n __breakpoint={breakpoint}\n gridDefinition={removable ? REMOVABLE_GRID_DEFINITION : GRID_DEFINITION}\n >\n <InternalColumnLayout\n className={styles['row-control']}\n columns={definition.length}\n __breakpoint={breakpoint}\n >\n {definition.map(({ info, label, constraintText, errorText, control }, defIndex) => (\n <InternalFormField\n key={defIndex}\n className={styles.field}\n label={label}\n info={info}\n constraintText={render(item, index, constraintText)}\n errorText={render(item, index, errorText)}\n stretch={true}\n i18nStrings={{ errorIconAriaLabel: i18nStrings.errorIconAriaLabel }}\n __hideLabel={isWideViewport && index > 0}\n controlId={defIndex === 0 ? firstControlId : undefined}\n >\n {render(item, index, control)}\n </InternalFormField>\n ))}\n </InternalColumnLayout>\n {removable && (\n <ButtonContainer\n index={index}\n isNarrowViewport={isNarrowViewport}\n hasLabel={definition.some(row => row.label)}\n >\n <InternalButton\n className={styles['remove-button']}\n formAction=\"none\"\n ref={ref => {\n removeButtonRefs[index] = ref ?? undefined;\n }}\n ariaLabel={(removeButtonAriaLabel ?? i18nStrings.removeButtonAriaLabel)?.(item)}\n onClick={handleRemoveClick}\n >\n {i18n('removeButtonText', removeButtonText)}\n </InternalButton>\n </ButtonContainer>\n )}\n </InternalGrid>\n </div>\n {isNarrowViewport && <Divider />}\n </InternalBox>\n );\n }\n) as <T>(props: RowProps<T>) => JSX.Element;\n\ninterface ButtonContainer {\n index: number;\n children: React.ReactNode;\n isNarrowViewport: boolean;\n hasLabel: boolean;\n}\n\nconst ButtonContainer = ({ index, children, isNarrowViewport, hasLabel }: ButtonContainer) => (\n <div\n className={clsx({\n [styles['button-container-haslabel']]: !isNarrowViewport && index === 0 && hasLabel,\n [styles['button-container-nolabel']]: !isNarrowViewport && index === 0 && !hasLabel,\n [styles['right-align']]: isNarrowViewport,\n })}\n >\n {children}\n </div>\n);\n"]}
@@ -14,7 +14,7 @@ export interface ContainerProps extends BaseComponentProps {
14
14
  * Use this slot to render a media element. Supported element types are 'img', 'video', and 'picture'.
15
15
  * You can define different positions and sizes for the media element within the container.
16
16
  *
17
- * * `content` - Use this slot to render your media element. We support `img`, `video` and `picture` elements.
17
+ * * `content` - Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.
18
18
  *
19
19
  * * `position` - Defines the media slot's position within the container. Defaults to `top`.
20
20
  *
@@ -61,9 +61,7 @@ export interface ContainerProps extends BaseComponentProps {
61
61
  export declare namespace ContainerProps {
62
62
  interface Media {
63
63
  /**
64
- *
65
- * Use this slot to render your media element. We support `img`, `video` and `picture` elements.
66
- *
64
+ * Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.
67
65
  */
68
66
  content: React.ReactNode;
69
67
  /**
@@ -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,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,KAAK;QACpB;;;;WAIG;QACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QAEzB;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;QAE1B;;;;;;WAMG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC1B;CACF"}
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,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,KAAK;QACpB;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QAEzB;;WAEG;QACH,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,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 *\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"]}
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`, `picture`, and `iframe` 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 * Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.\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"]}
@@ -1,33 +1,33 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_14iqq_lzyhg_97",
5
- "fit-height": "awsui_fit-height_14iqq_lzyhg_111",
6
- "with-side-media": "awsui_with-side-media_14iqq_lzyhg_116",
7
- "variant-default": "awsui_variant-default_14iqq_lzyhg_119",
8
- "variant-stacked": "awsui_variant-stacked_14iqq_lzyhg_119",
9
- "sticky-enabled": "awsui_sticky-enabled_14iqq_lzyhg_172",
10
- "with-top-media": "awsui_with-top-media_14iqq_lzyhg_184",
11
- "content-wrapper": "awsui_content-wrapper_14iqq_lzyhg_189",
12
- "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_lzyhg_194",
13
- "media": "awsui_media_14iqq_lzyhg_199",
14
- "media-top": "awsui_media-top_14iqq_lzyhg_211",
15
- "media-side": "awsui_media-side_14iqq_lzyhg_216",
16
- "header": "awsui_header_14iqq_lzyhg_222",
17
- "header-with-media": "awsui_header-with-media_14iqq_lzyhg_227",
18
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_lzyhg_233",
19
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_lzyhg_237",
20
- "header-stuck": "awsui_header-stuck_14iqq_lzyhg_243",
21
- "header-variant-cards": "awsui_header-variant-cards_14iqq_lzyhg_249",
22
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_lzyhg_252",
23
- "with-paddings": "awsui_with-paddings_14iqq_lzyhg_258",
24
- "with-hidden-content": "awsui_with-hidden-content_14iqq_lzyhg_264",
25
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_lzyhg_314",
26
- "dark-header": "awsui_dark-header_14iqq_lzyhg_332",
27
- "content": "awsui_content_14iqq_lzyhg_189",
28
- "content-fit-height": "awsui_content-fit-height_14iqq_lzyhg_340",
29
- "content-with-media": "awsui_content-with-media_14iqq_lzyhg_349",
30
- "footer": "awsui_footer_14iqq_lzyhg_353",
31
- "with-divider": "awsui_with-divider_14iqq_lzyhg_356"
4
+ "root": "awsui_root_14iqq_1x1rn_97",
5
+ "fit-height": "awsui_fit-height_14iqq_1x1rn_111",
6
+ "with-side-media": "awsui_with-side-media_14iqq_1x1rn_116",
7
+ "variant-default": "awsui_variant-default_14iqq_1x1rn_119",
8
+ "variant-stacked": "awsui_variant-stacked_14iqq_1x1rn_119",
9
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1x1rn_172",
10
+ "with-top-media": "awsui_with-top-media_14iqq_1x1rn_184",
11
+ "content-wrapper": "awsui_content-wrapper_14iqq_1x1rn_189",
12
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1x1rn_194",
13
+ "media": "awsui_media_14iqq_1x1rn_199",
14
+ "media-top": "awsui_media-top_14iqq_1x1rn_216",
15
+ "media-side": "awsui_media-side_14iqq_1x1rn_221",
16
+ "header": "awsui_header_14iqq_1x1rn_227",
17
+ "header-with-media": "awsui_header-with-media_14iqq_1x1rn_232",
18
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1x1rn_238",
19
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1x1rn_242",
20
+ "header-stuck": "awsui_header-stuck_14iqq_1x1rn_248",
21
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1x1rn_254",
22
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1x1rn_257",
23
+ "with-paddings": "awsui_with-paddings_14iqq_1x1rn_263",
24
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1x1rn_269",
25
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1x1rn_319",
26
+ "dark-header": "awsui_dark-header_14iqq_1x1rn_337",
27
+ "content": "awsui_content_14iqq_1x1rn_189",
28
+ "content-fit-height": "awsui_content-fit-height_14iqq_1x1rn_345",
29
+ "content-with-media": "awsui_content-with-media_14iqq_1x1rn_354",
30
+ "footer": "awsui_footer_14iqq_1x1rn_358",
31
+ "with-divider": "awsui_with-divider_14iqq_1x1rn_361"
32
32
  };
33
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_lzyhg_97:not(#\9) {
97
+ .awsui_root_14iqq_1x1rn_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,20 +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_lzyhg_97.awsui_fit-height_14iqq_lzyhg_111:not(#\9) {
137
+ .awsui_root_14iqq_1x1rn_97.awsui_fit-height_14iqq_1x1rn_111:not(#\9) {
138
138
  display: flex;
139
139
  flex-direction: column;
140
140
  height: 100%;
141
141
  }
142
- .awsui_root_14iqq_lzyhg_97.awsui_fit-height_14iqq_lzyhg_111.awsui_with-side-media_14iqq_lzyhg_116:not(#\9) {
142
+ .awsui_root_14iqq_1x1rn_97.awsui_fit-height_14iqq_1x1rn_111.awsui_with-side-media_14iqq_1x1rn_116:not(#\9) {
143
143
  flex-direction: row;
144
144
  }
145
- .awsui_root_14iqq_lzyhg_97.awsui_variant-default_14iqq_lzyhg_119:not(#\9), .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9) {
145
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-default_14iqq_1x1rn_119:not(#\9), .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9) {
146
146
  border-radius: var(--border-radius-container-wqv1zi, 16px);
147
147
  box-sizing: border-box;
148
148
  background-color: var(--color-background-container-content-4un1ap, #ffffff);
149
149
  }
150
- .awsui_root_14iqq_lzyhg_97.awsui_variant-default_14iqq_lzyhg_119:not(#\9)::before, .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::before {
150
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-default_14iqq_1x1rn_119:not(#\9)::before, .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::before {
151
151
  content: "";
152
152
  position: absolute;
153
153
  left: 0px;
@@ -162,7 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
162
162
  border-radius: var(--border-radius-container-wqv1zi, 16px);
163
163
  z-index: 1;
164
164
  }
165
- .awsui_root_14iqq_lzyhg_97.awsui_variant-default_14iqq_lzyhg_119:not(#\9)::after, .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::after {
165
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-default_14iqq_1x1rn_119:not(#\9)::after, .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::after {
166
166
  content: "";
167
167
  position: absolute;
168
168
  left: 0px;
@@ -177,128 +177,133 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
177
177
  mix-blend-mode: multiply;
178
178
  }
179
179
  @media screen and (-ms-high-contrast: active) {
180
- .awsui_root_14iqq_lzyhg_97.awsui_variant-default_14iqq_lzyhg_119:not(#\9), .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9) {
180
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-default_14iqq_1x1rn_119:not(#\9), .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9) {
181
181
  border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
182
182
  }
183
183
  }
184
- .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9):not(:last-child), .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9):not(:last-child)::before, .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9):not(:last-child)::after {
184
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9):not(:last-child), .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9):not(:last-child)::after {
185
185
  border-bottom-right-radius: 0;
186
186
  border-bottom-left-radius: 0;
187
187
  }
188
- .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119 + .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9), .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119 + .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::before, .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119 + .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::after {
188
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119 + .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9), .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119 + .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::before, .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119 + .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::after {
189
189
  border-top-left-radius: 0;
190
190
  border-top-right-radius: 0;
191
191
  }
192
- .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119 + .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::before {
192
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119 + .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::before {
193
193
  border-top: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
194
194
  }
195
- .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119 + .awsui_root_14iqq_lzyhg_97.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::after {
195
+ .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119 + .awsui_root_14iqq_1x1rn_97.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::after {
196
196
  box-shadow: var(--shadow-container-stacked-4gw245, -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));
197
197
  }
198
- .awsui_root_14iqq_lzyhg_97.awsui_sticky-enabled_14iqq_lzyhg_172:not(#\9)::before {
198
+ .awsui_root_14iqq_1x1rn_97.awsui_sticky-enabled_14iqq_1x1rn_172:not(#\9)::before {
199
199
  top: calc(-1 * var(--border-container-top-width-uugwwl, 0px));
200
200
  }
201
- .awsui_root_14iqq_lzyhg_97.awsui_sticky-enabled_14iqq_lzyhg_172.awsui_variant-stacked_14iqq_lzyhg_119:not(#\9)::before {
201
+ .awsui_root_14iqq_1x1rn_97.awsui_sticky-enabled_14iqq_1x1rn_172.awsui_variant-stacked_14iqq_1x1rn_119:not(#\9)::before {
202
202
  top: calc(-1 * var(--border-divider-section-width-8a5uu9, 2px));
203
203
  }
204
204
 
205
- .awsui_with-side-media_14iqq_lzyhg_116:not(#\9) {
205
+ .awsui_with-side-media_14iqq_1x1rn_116:not(#\9) {
206
206
  display: flex;
207
207
  flex-direction: row;
208
208
  }
209
209
 
210
- .awsui_with-top-media_14iqq_lzyhg_184:not(#\9) {
210
+ .awsui_with-top-media_14iqq_1x1rn_184:not(#\9) {
211
211
  display: flex;
212
212
  flex-direction: column;
213
213
  }
214
214
 
215
- .awsui_content-wrapper_14iqq_lzyhg_189:not(#\9) {
215
+ .awsui_content-wrapper_14iqq_1x1rn_189:not(#\9) {
216
216
  display: flex;
217
217
  flex-direction: column;
218
218
  width: 100%;
219
219
  }
220
- .awsui_content-wrapper-fit-height_14iqq_lzyhg_194:not(#\9) {
220
+ .awsui_content-wrapper-fit-height_14iqq_1x1rn_194:not(#\9) {
221
221
  height: 100%;
222
222
  overflow: hidden;
223
223
  }
224
224
 
225
- .awsui_media_14iqq_lzyhg_199:not(#\9) {
225
+ .awsui_media_14iqq_1x1rn_199:not(#\9) {
226
226
  overflow: hidden;
227
227
  flex-shrink: 0;
228
228
  }
229
- .awsui_media_14iqq_lzyhg_199 img:not(#\9),
230
- .awsui_media_14iqq_lzyhg_199 video:not(#\9),
231
- .awsui_media_14iqq_lzyhg_199 picture:not(#\9) {
229
+ .awsui_media_14iqq_1x1rn_199 img:not(#\9),
230
+ .awsui_media_14iqq_1x1rn_199 video:not(#\9),
231
+ .awsui_media_14iqq_1x1rn_199 picture:not(#\9) {
232
232
  width: 100%;
233
233
  height: 100%;
234
234
  object-fit: cover;
235
235
  object-position: center;
236
236
  }
237
- .awsui_media-top_14iqq_lzyhg_211:not(#\9) {
237
+ .awsui_media_14iqq_1x1rn_199 iframe:not(#\9) {
238
+ width: 100%;
239
+ height: 100%;
240
+ border: 0;
241
+ }
242
+ .awsui_media-top_14iqq_1x1rn_216:not(#\9) {
238
243
  max-height: 66%;
239
244
  border-top-left-radius: var(--border-radius-container-wqv1zi, 16px);
240
245
  border-top-right-radius: var(--border-radius-container-wqv1zi, 16px);
241
246
  }
242
- .awsui_media-side_14iqq_lzyhg_216:not(#\9) {
247
+ .awsui_media-side_14iqq_1x1rn_221:not(#\9) {
243
248
  max-width: 66%;
244
249
  border-top-left-radius: var(--border-radius-container-wqv1zi, 16px);
245
250
  border-bottom-left-radius: var(--border-radius-container-wqv1zi, 16px);
246
251
  }
247
252
 
248
- .awsui_header_14iqq_lzyhg_222:not(#\9) {
253
+ .awsui_header_14iqq_1x1rn_227:not(#\9) {
249
254
  background-color: var(--color-background-container-header-8b9fgi, #ffffff);
250
255
  border-top-left-radius: var(--border-radius-container-wqv1zi, 16px);
251
256
  border-top-right-radius: var(--border-radius-container-wqv1zi, 16px);
252
257
  }
253
- .awsui_header_14iqq_lzyhg_222.awsui_header-with-media_14iqq_lzyhg_227:not(#\9) {
258
+ .awsui_header_14iqq_1x1rn_227.awsui_header-with-media_14iqq_1x1rn_232:not(#\9) {
254
259
  background: none;
255
260
  }
256
- .awsui_header_14iqq_lzyhg_222.awsui_header-with-media_14iqq_lzyhg_227:not(#\9):not(:empty) {
261
+ .awsui_header_14iqq_1x1rn_227.awsui_header-with-media_14iqq_1x1rn_232:not(#\9):not(:empty) {
257
262
  border-bottom: none;
258
263
  }
259
- .awsui_header-sticky-disabled_14iqq_lzyhg_233:not(#\9) {
264
+ .awsui_header-sticky-disabled_14iqq_1x1rn_238:not(#\9) {
260
265
  position: relative;
261
266
  z-index: 1;
262
267
  }
263
- .awsui_header-sticky-enabled_14iqq_lzyhg_237:not(#\9) {
268
+ .awsui_header-sticky-enabled_14iqq_1x1rn_242:not(#\9) {
264
269
  top: 0;
265
270
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
266
271
  position: sticky;
267
272
  z-index: 800;
268
273
  }
269
- .awsui_header-stuck_14iqq_lzyhg_243:not(#\9) {
274
+ .awsui_header-stuck_14iqq_1x1rn_248:not(#\9) {
270
275
  border-radius: 0;
271
276
  }
272
- .awsui_header-stuck_14iqq_lzyhg_243:not(#\9)::before {
277
+ .awsui_header-stuck_14iqq_1x1rn_248:not(#\9)::before {
273
278
  border: 0;
274
279
  }
275
- .awsui_header-stuck_14iqq_lzyhg_243:not(#\9):not(.awsui_header-variant-cards_14iqq_lzyhg_249) {
280
+ .awsui_header-stuck_14iqq_1x1rn_248:not(#\9):not(.awsui_header-variant-cards_14iqq_1x1rn_254) {
276
281
  box-shadow: var(--shadow-sticky-embedded-uvh5ry, 0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.1));
277
282
  }
278
- .awsui_header-dynamic-height_14iqq_lzyhg_252.awsui_header-stuck_14iqq_lzyhg_243:not(#\9) {
283
+ .awsui_header-dynamic-height_14iqq_1x1rn_257.awsui_header-stuck_14iqq_1x1rn_248:not(#\9) {
279
284
  margin-bottom: calc(var(--line-height-heading-xl-avbttk, 30px) - var(--line-height-heading-l-mmm3my, 24px));
280
285
  }
281
- .awsui_header_14iqq_lzyhg_222:not(#\9):not(:empty) {
286
+ .awsui_header_14iqq_1x1rn_227:not(#\9):not(:empty) {
282
287
  border-bottom: var(--border-container-sticky-width-6asz33, 0px) solid var(--color-border-container-divider-p2uygo, transparent);
283
288
  }
284
- .awsui_header_14iqq_lzyhg_222.awsui_with-paddings_14iqq_lzyhg_258:not(#\9) {
289
+ .awsui_header_14iqq_1x1rn_227.awsui_with-paddings_14iqq_1x1rn_263:not(#\9) {
285
290
  padding: var(--space-container-header-top-5qav00, 12px) var(--space-container-horizontal-wfukh3, 20px) var(--space-container-header-bottom-vj01hn, 8px);
286
291
  }
287
- .awsui_header_14iqq_lzyhg_222.awsui_with-paddings_14iqq_lzyhg_258.awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9) {
292
+ .awsui_header_14iqq_1x1rn_227.awsui_with-paddings_14iqq_1x1rn_263.awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9) {
288
293
  padding: var(--space-container-header-top-5qav00, 12px) var(--space-container-horizontal-wfukh3, 20px);
289
294
  }
290
- .awsui_header_14iqq_lzyhg_222.awsui_with-hidden-content_14iqq_lzyhg_264:not(#\9) {
295
+ .awsui_header_14iqq_1x1rn_227.awsui_with-hidden-content_14iqq_1x1rn_269:not(#\9) {
291
296
  border-bottom-left-radius: var(--border-radius-container-wqv1zi, 16px);
292
297
  border-bottom-right-radius: var(--border-radius-container-wqv1zi, 16px);
293
298
  }
294
- .awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9) {
299
+ .awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9) {
295
300
  border-radius: var(--border-radius-container-wqv1zi, 16px);
296
301
  box-sizing: border-box;
297
302
  }
298
- .awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9):not(.awsui_header-sticky-enabled_14iqq_lzyhg_237) {
303
+ .awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1x1rn_242) {
299
304
  position: relative;
300
305
  }
301
- .awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9)::before {
306
+ .awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9)::before {
302
307
  content: "";
303
308
  position: absolute;
304
309
  left: 0px;
@@ -313,7 +318,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
313
318
  border-radius: var(--border-radius-container-wqv1zi, 16px);
314
319
  z-index: 1;
315
320
  }
316
- .awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9)::after {
321
+ .awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9)::after {
317
322
  content: "";
318
323
  position: absolute;
319
324
  left: 0px;
@@ -328,19 +333,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
328
333
  mix-blend-mode: multiply;
329
334
  }
330
335
  @media screen and (-ms-high-contrast: active) {
331
- .awsui_header-variant-cards_14iqq_lzyhg_249:not(#\9) {
336
+ .awsui_header-variant-cards_14iqq_1x1rn_254:not(#\9) {
332
337
  border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
333
338
  }
334
339
  }
335
- .awsui_header-variant-cards_14iqq_lzyhg_249.awsui_header-stuck_14iqq_lzyhg_243:not(#\9)::after, .awsui_header-variant-cards_14iqq_lzyhg_249.awsui_header-stuck_14iqq_lzyhg_243:not(#\9)::before {
340
+ .awsui_header-variant-cards_14iqq_1x1rn_254.awsui_header-stuck_14iqq_1x1rn_248:not(#\9)::after, .awsui_header-variant-cards_14iqq_1x1rn_254.awsui_header-stuck_14iqq_1x1rn_248:not(#\9)::before {
336
341
  border: 0;
337
342
  border-top-left-radius: 0;
338
343
  border-top-right-radius: 0;
339
344
  }
340
- .awsui_header-variant-full-page_14iqq_lzyhg_314.awsui_header-stuck_14iqq_lzyhg_243:not(#\9) {
345
+ .awsui_header-variant-full-page_14iqq_1x1rn_319.awsui_header-stuck_14iqq_1x1rn_248:not(#\9) {
341
346
  box-shadow: none;
342
347
  }
343
- .awsui_header-variant-full-page_14iqq_lzyhg_314.awsui_header-stuck_14iqq_lzyhg_243:not(#\9)::after {
348
+ .awsui_header-variant-full-page_14iqq_1x1rn_319.awsui_header-stuck_14iqq_1x1rn_248:not(#\9)::after {
344
349
  content: "";
345
350
  position: absolute;
346
351
  right: 0;
@@ -355,30 +360,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
355
360
  The dynamic height dark header needs a background that will cover
356
361
  the default white background of the container component.
357
362
  */
358
- .awsui_dark-header_14iqq_lzyhg_332:not(#\9) {
363
+ .awsui_dark-header_14iqq_1x1rn_337:not(#\9) {
359
364
  background-color: var(--color-background-layout-main-nx09lr, #ffffff);
360
365
  color: var(--color-text-body-default-2sxhhn, #000716);
361
366
  }
362
367
 
363
- .awsui_content_14iqq_lzyhg_189:not(#\9) {
368
+ .awsui_content_14iqq_1x1rn_189:not(#\9) {
364
369
  flex: 1;
365
370
  }
366
- .awsui_content-fit-height_14iqq_lzyhg_340:not(#\9) {
371
+ .awsui_content-fit-height_14iqq_1x1rn_345:not(#\9) {
367
372
  overflow: auto;
368
373
  }
369
- .awsui_content_14iqq_lzyhg_189.awsui_with-paddings_14iqq_lzyhg_258:not(#\9) {
374
+ .awsui_content_14iqq_1x1rn_189.awsui_with-paddings_14iqq_1x1rn_263:not(#\9) {
370
375
  padding: var(--space-scaled-l-0hpmd7, 20px) var(--space-container-horizontal-wfukh3, 20px);
371
376
  }
372
- .awsui_header_14iqq_lzyhg_222 + .awsui_content_14iqq_lzyhg_189.awsui_with-paddings_14iqq_lzyhg_258:not(#\9) {
377
+ .awsui_header_14iqq_1x1rn_227 + .awsui_content_14iqq_1x1rn_189.awsui_with-paddings_14iqq_1x1rn_263:not(#\9) {
373
378
  padding-top: var(--space-container-content-top-1ae0r3, 4px);
374
379
  }
375
- .awsui_header_14iqq_lzyhg_222 + .awsui_content_14iqq_lzyhg_189.awsui_with-paddings_14iqq_lzyhg_258.awsui_content-with-media_14iqq_lzyhg_349:not(#\9) {
380
+ .awsui_header_14iqq_1x1rn_227 + .awsui_content_14iqq_1x1rn_189.awsui_with-paddings_14iqq_1x1rn_263.awsui_content-with-media_14iqq_1x1rn_354:not(#\9) {
376
381
  padding-top: 0;
377
382
  }
378
383
 
379
- .awsui_footer_14iqq_lzyhg_353.awsui_with-paddings_14iqq_lzyhg_258:not(#\9) {
384
+ .awsui_footer_14iqq_1x1rn_358.awsui_with-paddings_14iqq_1x1rn_263:not(#\9) {
380
385
  padding: var(--space-scaled-s-aqzyko, 12px) var(--space-container-horizontal-wfukh3, 20px);
381
386
  }
382
- .awsui_footer_14iqq_lzyhg_353.awsui_with-divider_14iqq_lzyhg_356:not(#\9) {
387
+ .awsui_footer_14iqq_1x1rn_358.awsui_with-divider_14iqq_1x1rn_361:not(#\9) {
383
388
  border-top: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
384
389
  }
@@ -2,33 +2,33 @@
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_lzyhg_97",
6
- "fit-height": "awsui_fit-height_14iqq_lzyhg_111",
7
- "with-side-media": "awsui_with-side-media_14iqq_lzyhg_116",
8
- "variant-default": "awsui_variant-default_14iqq_lzyhg_119",
9
- "variant-stacked": "awsui_variant-stacked_14iqq_lzyhg_119",
10
- "sticky-enabled": "awsui_sticky-enabled_14iqq_lzyhg_172",
11
- "with-top-media": "awsui_with-top-media_14iqq_lzyhg_184",
12
- "content-wrapper": "awsui_content-wrapper_14iqq_lzyhg_189",
13
- "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_lzyhg_194",
14
- "media": "awsui_media_14iqq_lzyhg_199",
15
- "media-top": "awsui_media-top_14iqq_lzyhg_211",
16
- "media-side": "awsui_media-side_14iqq_lzyhg_216",
17
- "header": "awsui_header_14iqq_lzyhg_222",
18
- "header-with-media": "awsui_header-with-media_14iqq_lzyhg_227",
19
- "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_lzyhg_233",
20
- "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_lzyhg_237",
21
- "header-stuck": "awsui_header-stuck_14iqq_lzyhg_243",
22
- "header-variant-cards": "awsui_header-variant-cards_14iqq_lzyhg_249",
23
- "header-dynamic-height": "awsui_header-dynamic-height_14iqq_lzyhg_252",
24
- "with-paddings": "awsui_with-paddings_14iqq_lzyhg_258",
25
- "with-hidden-content": "awsui_with-hidden-content_14iqq_lzyhg_264",
26
- "header-variant-full-page": "awsui_header-variant-full-page_14iqq_lzyhg_314",
27
- "dark-header": "awsui_dark-header_14iqq_lzyhg_332",
28
- "content": "awsui_content_14iqq_lzyhg_189",
29
- "content-fit-height": "awsui_content-fit-height_14iqq_lzyhg_340",
30
- "content-with-media": "awsui_content-with-media_14iqq_lzyhg_349",
31
- "footer": "awsui_footer_14iqq_lzyhg_353",
32
- "with-divider": "awsui_with-divider_14iqq_lzyhg_356"
5
+ "root": "awsui_root_14iqq_1x1rn_97",
6
+ "fit-height": "awsui_fit-height_14iqq_1x1rn_111",
7
+ "with-side-media": "awsui_with-side-media_14iqq_1x1rn_116",
8
+ "variant-default": "awsui_variant-default_14iqq_1x1rn_119",
9
+ "variant-stacked": "awsui_variant-stacked_14iqq_1x1rn_119",
10
+ "sticky-enabled": "awsui_sticky-enabled_14iqq_1x1rn_172",
11
+ "with-top-media": "awsui_with-top-media_14iqq_1x1rn_184",
12
+ "content-wrapper": "awsui_content-wrapper_14iqq_1x1rn_189",
13
+ "content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1x1rn_194",
14
+ "media": "awsui_media_14iqq_1x1rn_199",
15
+ "media-top": "awsui_media-top_14iqq_1x1rn_216",
16
+ "media-side": "awsui_media-side_14iqq_1x1rn_221",
17
+ "header": "awsui_header_14iqq_1x1rn_227",
18
+ "header-with-media": "awsui_header-with-media_14iqq_1x1rn_232",
19
+ "header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1x1rn_238",
20
+ "header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1x1rn_242",
21
+ "header-stuck": "awsui_header-stuck_14iqq_1x1rn_248",
22
+ "header-variant-cards": "awsui_header-variant-cards_14iqq_1x1rn_254",
23
+ "header-dynamic-height": "awsui_header-dynamic-height_14iqq_1x1rn_257",
24
+ "with-paddings": "awsui_with-paddings_14iqq_1x1rn_263",
25
+ "with-hidden-content": "awsui_with-hidden-content_14iqq_1x1rn_269",
26
+ "header-variant-full-page": "awsui_header-variant-full-page_14iqq_1x1rn_319",
27
+ "dark-header": "awsui_dark-header_14iqq_1x1rn_337",
28
+ "content": "awsui_content_14iqq_1x1rn_189",
29
+ "content-fit-height": "awsui_content-fit-height_14iqq_1x1rn_345",
30
+ "content-with-media": "awsui_content-with-media_14iqq_1x1rn_354",
31
+ "footer": "awsui_footer_14iqq_1x1rn_358",
32
+ "with-divider": "awsui_with-divider_14iqq_1x1rn_361"
33
33
  };
34
34
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FunnelStepContextValue } from '../context/analytics-context';
3
3
  import { FunnelProps, FunnelStepProps } from '../interfaces';
4
- export declare const FUNNEL_VERSION = "1.0";
4
+ export declare const FUNNEL_VERSION = "1.1";
5
5
  type AnalyticsFunnelProps = {
6
6
  children?: React.ReactNode;
7
7
  } & Pick<FunnelProps, 'funnelType' | 'optionalStepNumbers' | 'totalFunnelSteps'>;
@@ -10,7 +10,7 @@ import { PACKAGE_VERSION } from '../../environment';
10
10
  import { FunnelMetrics } from '../index';
11
11
  import { DATA_ATTR_FUNNEL_STEP, getFunnelNameSelector, getNameFromSelector, getSubStepAllSelector, getSubStepNameSelector, getSubStepSelector, } from '../selectors';
12
12
  import { useDebounceCallback } from '../../hooks/use-debounce-callback';
13
- export const FUNNEL_VERSION = '1.0';
13
+ export const FUNNEL_VERSION = '1.1';
14
14
  export const AnalyticsFunnel = (props) => {
15
15
  const { isInFunnel } = useFunnel();
16
16
  /*