@cloudscape-design/components 3.0.875 → 3.0.876

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,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (76a85a0a)";
2
+ export var PACKAGE_VERSION = "3.0.0 (e1c488b0)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (76a85a0a)",
3
+ "PACKAGE_VERSION": "3.0.0 (e1c488b0)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
6
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "76a85a0a9bab7d01dd78abc1ce8fd64a4af5f2d8"
2
+ "commit": "e1c488b01396999a4609573bece9dcf830311632"
3
3
  }
package/package.json CHANGED
@@ -132,7 +132,7 @@
132
132
  "./internal/base-component/index.js",
133
133
  "./internal/base-component/styles.css.js"
134
134
  ],
135
- "version": "3.0.875",
135
+ "version": "3.0.876",
136
136
  "repository": {
137
137
  "type": "git",
138
138
  "url": "https://github.com/cloudscape-design/components.git"
@@ -18,7 +18,8 @@ export interface PopoverProps extends BaseComponentProps {
18
18
  fixedWidth?: boolean;
19
19
  /**
20
20
  * Specifies the type of content inside the trigger region. The following types are available:
21
- * - `text` - Use for inline text triggers.
21
+ * - `text` - Use for triggers containing inline components, like status indicator.
22
+ * - `text-inline` - Use for triggers containing plain text only.
22
23
  * - `custom` - Use for the [button](/components/button/) component.
23
24
  */
24
25
  triggerType?: PopoverProps.TriggerType;
@@ -85,7 +86,7 @@ export type Rect = BoundingBox & {
85
86
  export declare namespace PopoverProps {
86
87
  type Position = 'top' | 'right' | 'bottom' | 'left';
87
88
  type Size = 'small' | 'medium' | 'large';
88
- type TriggerType = 'text' | 'custom';
89
+ type TriggerType = 'text' | 'text-inline' | 'custom';
89
90
  interface Ref {
90
91
  /**
91
92
  * Sets focus on the popover's trigger.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/popover/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC;IAEjC;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC;IAEvC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,cAAc,GACd,UAAU,GACV,aAAa,GACb,YAAY,GACZ,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,MAAM;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAA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IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,cAAc,GACd,UAAU,GACV,aAAa,GACb,YAAY,GACZ,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,MAAM;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,yBAAiB,YAAY,CAAC;IAC5B,KAAY,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3D,KAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAChD,KAAY,WAAW,GAAG,MAAM,GAAG,aAAa,GAAG,QAAQ,CAAC;IAE5D,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/popover/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';\n\nexport interface PopoverProps extends BaseComponentProps {\n /**\n * Determines where the popover is displayed when opened, relative to the trigger.\n * If the popover doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: PopoverProps.Position;\n\n /**\n * Determines the maximum width for the popover.\n */\n size?: PopoverProps.Size;\n\n /**\n * Expands the popover body to its maximum width regardless of content.\n * For example, use it when you need to place a column layout in the popover content.\n */\n fixedWidth?: boolean;\n\n /**\n * Specifies the type of content inside the trigger region. The following types are available:\n * - `text` - Use for inline text triggers.\n * - `custom` - Use for the [button](/components/button/) component.\n */\n triggerType?: PopoverProps.TriggerType;\n\n /**\n * Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers\n * that don't have visible text, and to distinguish between multiple triggers with identical visible text.\n */\n triggerAriaLabel?: string;\n\n /**\n * Specifies if the text trigger content should wrap. If you set it to false, it prevents the text from\n * wrapping and truncates it with an ellipsis.\n */\n wrapTriggerText?: boolean;\n\n /**\n * Element that triggers the popover when selected by the user.\n * @displayname trigger\n */\n children?: React.ReactNode;\n\n /**\n * Specifies optional header text for the popover.\n */\n header?: string;\n\n /**\n * Content of the popover.\n */\n content?: React.ReactNode;\n\n /**\n * Determines whether the dismiss button is shown in the popover body.\n */\n dismissButton?: boolean;\n\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context, such as in side navigation.\n *\n * Note: Using popover rendered with portal within a Modal is not supported.\n */\n renderWithPortal?: boolean;\n}\n\n/**\n * The position the popover is actually in, given space constraints.\n */\nexport type InternalPosition =\n | 'right-top'\n | 'right-bottom'\n | 'left-top'\n | 'left-bottom'\n | 'top-center'\n | 'top-right'\n | 'top-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'bottom-left';\n\nexport interface Offset {\n insetInlineStart: number;\n insetBlockStart: number;\n}\n\nexport interface Dimensions {\n inlineSize: number;\n blockSize: number;\n}\n\nexport type BoundingBox = Dimensions & Offset;\n\nexport type Rect = BoundingBox & {\n insetBlockEnd: number;\n insetInlineEnd: number;\n};\n\nexport namespace PopoverProps {\n export type Position = 'top' | 'right' | 'bottom' | 'left';\n export type Size = 'small' | 'medium' | 'large';\n export type TriggerType = 'text' | 'custom';\n\n export interface Ref {\n /**\n * Sets focus on the popover's trigger.\n */\n focus(): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/popover/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';\n\nexport interface PopoverProps extends BaseComponentProps {\n /**\n * Determines where the popover is displayed when opened, relative to the trigger.\n * If the popover doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: PopoverProps.Position;\n\n /**\n * Determines the maximum width for the popover.\n */\n size?: PopoverProps.Size;\n\n /**\n * Expands the popover body to its maximum width regardless of content.\n * For example, use it when you need to place a column layout in the popover content.\n */\n fixedWidth?: boolean;\n\n /**\n * Specifies the type of content inside the trigger region. The following types are available:\n * - `text` - Use for triggers containing inline components, like status indicator.\n * - `text-inline` - Use for triggers containing plain text only.\n * - `custom` - Use for the [button](/components/button/) component.\n */\n triggerType?: PopoverProps.TriggerType;\n\n /**\n * Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers\n * that don't have visible text, and to distinguish between multiple triggers with identical visible text.\n */\n triggerAriaLabel?: string;\n\n /**\n * Specifies if the text trigger content should wrap. If you set it to false, it prevents the text from\n * wrapping and truncates it with an ellipsis.\n */\n wrapTriggerText?: boolean;\n\n /**\n * Element that triggers the popover when selected by the user.\n * @displayname trigger\n */\n children?: React.ReactNode;\n\n /**\n * Specifies optional header text for the popover.\n */\n header?: string;\n\n /**\n * Content of the popover.\n */\n content?: React.ReactNode;\n\n /**\n * Determines whether the dismiss button is shown in the popover body.\n */\n dismissButton?: boolean;\n\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context, such as in side navigation.\n *\n * Note: Using popover rendered with portal within a Modal is not supported.\n */\n renderWithPortal?: boolean;\n}\n\n/**\n * The position the popover is actually in, given space constraints.\n */\nexport type InternalPosition =\n | 'right-top'\n | 'right-bottom'\n | 'left-top'\n | 'left-bottom'\n | 'top-center'\n | 'top-right'\n | 'top-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'bottom-left';\n\nexport interface Offset {\n insetInlineStart: number;\n insetBlockStart: number;\n}\n\nexport interface Dimensions {\n inlineSize: number;\n blockSize: number;\n}\n\nexport type BoundingBox = Dimensions & Offset;\n\nexport type Rect = BoundingBox & {\n insetBlockEnd: number;\n insetInlineEnd: number;\n};\n\nexport namespace PopoverProps {\n export type Position = 'top' | 'right' | 'bottom' | 'left';\n export type Size = 'small' | 'medium' | 'large';\n export type TriggerType = 'text' | 'text-inline' | 'custom';\n\n export interface Ref {\n /**\n * Sets focus on the popover's trigger.\n */\n focus(): void;\n }\n}\n"]}
@@ -31,7 +31,7 @@ function InternalPopover(_a, ref) {
31
31
  const [visible, setVisible] = useState(false);
32
32
  const focusTrigger = useCallback(() => {
33
33
  var _a, _b;
34
- if (triggerType === 'text') {
34
+ if (['text', 'text-inline'].includes(triggerType)) {
35
35
  (_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
36
36
  }
37
37
  else {
@@ -101,7 +101,7 @@ function InternalPopover(_a, ref) {
101
101
  clickFrameId.current = null;
102
102
  });
103
103
  } }),
104
- triggerType === 'text' ? (React.createElement("button", Object.assign({}, triggerProps, { className: clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis']), tabIndex: triggerTabIndex, type: "button", "aria-haspopup": "dialog", id: referrerId, "aria-label": triggerAriaLabel }), children)) : (React.createElement("span", Object.assign({}, triggerProps, { id: referrerId }), children)),
104
+ ['text', 'text-inline'].includes(triggerType) ? (React.createElement("button", Object.assign({}, triggerProps, { className: clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis']), tabIndex: triggerTabIndex, type: "button", "aria-haspopup": "dialog", id: referrerId, "aria-label": triggerAriaLabel }), children)) : (React.createElement("span", Object.assign({}, triggerProps, { id: referrerId }), children)),
105
105
  visible && (React.createElement(ResetContextsForModal, null, renderWithPortal ? React.createElement(Portal, null, popoverContent) : popoverContent))));
106
106
  }
107
107
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/popover/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,qBAAqB,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAA6B,MAAM,0BAA0B,CAAC;A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,KAAK,KAAK,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,EACjG,QAAQ,EAAE,eAAe,EACzB,IAAI,EAAC,QAAQ,mBACC,QAAQ,EACtB,EAAE,EAAE,UAAU,gBACF,gBAAgB,KAE3B,QAAQ,CACF,CACV,CAAC,CAAC,CAAC,CACF,8CAAU,YAAY,IAAE,EAAE,EAAE,UAAU,KACnC,QAAQ,CACJ,CACR;QACA,OAAO,IAAI,CACV,oBAAC,qBAAqB,QACnB,gBAAgB,CAAC,CAAC,CAAC,oBAAC,MAAM,QAAE,cAAc,CAAU,CAAC,CAAC,CAAC,cAAc,CAChD,CACzB,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable } from '../internal/components/focus-lock/utils';\nimport Portal from '../internal/components/portal';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport ResetContextsForModal from '../internal/context/reset-contexts-for-modal';\nimport { useSingleTabStopNavigation } from '../internal/context/single-tab-stop-navigation-context';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { KeyCode } from '../internal/keycode';\nimport Arrow from './arrow';\nimport PopoverBody from './body';\nimport PopoverContainer from './container';\nimport { PopoverProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalPopoverProps extends Omit<PopoverProps, 'triggerType' | 'size'>, InternalBaseComponentProps {\n __onOpen?: NonCancelableEventHandler<null>;\n triggerType?: PopoverProps.TriggerType | 'filtering-token';\n size: PopoverProps.Size | 'content';\n __closeAnalyticsAction?: string;\n isInline?: boolean;\n}\n\nexport interface InternalPopoverRef {\n dismissPopover: () => void;\n focus: HTMLElement['focus'];\n}\n\nexport default React.forwardRef(InternalPopover);\n\nfunction InternalPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n triggerType = 'text',\n dismissButton = true,\n\n children,\n header,\n content,\n triggerAriaLabel,\n\n wrapTriggerText = true,\n isInline = false,\n renderWithPortal = false,\n\n __onOpen,\n __internalRootRef = null,\n __closeAnalyticsAction,\n\n ...restProps\n }: InternalPopoverProps,\n ref: React.Ref<InternalPopoverRef>\n) {\n const baseProps = getBaseProps(restProps);\n const triggerRef = useRef<HTMLElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const clickFrameId = useRef<number | null>(null);\n\n const i18n = useInternalI18n('popover');\n const dismissAriaLabel = i18n('dismissAriaLabel', restProps.dismissAriaLabel);\n\n const [visible, setVisible] = useState(false);\n\n const focusTrigger = useCallback(() => {\n if (triggerType === 'text') {\n triggerRef.current?.focus();\n } else {\n triggerRef.current && getFirstFocusable(triggerRef.current)?.focus();\n }\n }, [triggerType]);\n\n const onTriggerClick = useCallback(() => {\n fireNonCancelableEvent(__onOpen);\n setVisible(true);\n }, [__onOpen]);\n\n const onDismiss = useCallback(() => {\n setVisible(false);\n focusTrigger();\n }, [focusTrigger]);\n\n const onTriggerKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const isEscapeKey = event.keyCode === KeyCode.escape;\n const isTabKey = event.keyCode === KeyCode.tab;\n if (isEscapeKey && visible) {\n event.stopPropagation();\n }\n if (isTabKey || isEscapeKey) {\n setVisible(false);\n }\n },\n [visible]\n );\n\n useImperativeHandle(ref, () => ({\n dismissPopover: onDismiss,\n focus: () => {\n setVisible(false);\n focusTrigger();\n },\n }));\n\n useEffect(() => {\n if (!triggerRef.current) {\n return;\n }\n const document = triggerRef.current.ownerDocument;\n\n const onDocumentClick = () => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n if (clickFrameId.current === null) {\n setVisible(false);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\n }, []);\n\n const popoverClasses = usePortalModeClasses(triggerRef);\n\n const triggerProps = {\n // https://github.com/microsoft/TypeScript/issues/36659\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref: triggerRef as any,\n onClick: onTriggerClick,\n onKeyDown: onTriggerKeyDown,\n className: clsx(styles.trigger, styles[`trigger-type-${triggerType}`]),\n };\n const { tabIndex: triggerTabIndex } = useSingleTabStopNavigation(triggerRef);\n\n const referrerId = useUniqueId();\n\n const popoverContent = (\n <div\n aria-live={dismissButton ? undefined : 'polite'}\n aria-atomic={dismissButton ? undefined : true}\n className={clsx(popoverClasses, !renderWithPortal && styles['popover-inline-content'])}\n data-awsui-referrer-id={referrerId}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={triggerRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={renderWithPortal}\n zIndex={renderWithPortal ? 7000 : undefined}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={header}\n onDismiss={onDismiss}\n overflowVisible=\"both\"\n closeAnalyticsAction={__closeAnalyticsAction}\n >\n {content}\n </PopoverBody>\n </LinkDefaultVariantContext.Provider>\n </PopoverContainer>\n </div>\n );\n\n const mergedRef = useMergeRefs(popoverRef, __internalRootRef);\n\n return (\n <span\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n triggerType === 'filtering-token' && styles['root-filtering-token'],\n isInline && styles['no-wrap']\n )}\n ref={mergedRef}\n onMouseDown={() => {\n // Indicate there was a click inside popover recently, including nested portals.\n clickFrameId.current = requestAnimationFrame(() => {\n clickFrameId.current = null;\n });\n }}\n >\n {triggerType === 'text' ? (\n <button\n {...triggerProps}\n className={clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis'])}\n tabIndex={triggerTabIndex}\n type=\"button\"\n aria-haspopup=\"dialog\"\n id={referrerId}\n aria-label={triggerAriaLabel}\n >\n {children}\n </button>\n ) : (\n <span {...triggerProps} id={referrerId}>\n {children}\n </span>\n )}\n {visible && (\n <ResetContextsForModal>\n {renderWithPortal ? <Portal>{popoverContent}</Portal> : popoverContent}\n </ResetContextsForModal>\n )}\n </span>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/popover/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,qBAAqB,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAA6B,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,MAAM,SAAS,CA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,KAE3B,QAAQ,CACF,CACV,CAAC,CAAC,CAAC,CACF,8CAAU,YAAY,IAAE,EAAE,EAAE,UAAU,KACnC,QAAQ,CACJ,CACR;QACA,OAAO,IAAI,CACV,oBAAC,qBAAqB,QACnB,gBAAgB,CAAC,CAAC,CAAC,oBAAC,MAAM,QAAE,cAAc,CAAU,CAAC,CAAC,CAAC,cAAc,CAChD,CACzB,CACI,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { getBaseProps } from '../internal/base-component';\nimport { getFirstFocusable } from '../internal/components/focus-lock/utils';\nimport Portal from '../internal/components/portal';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport ResetContextsForModal from '../internal/context/reset-contexts-for-modal';\nimport { useSingleTabStopNavigation } from '../internal/context/single-tab-stop-navigation-context';\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { KeyCode } from '../internal/keycode';\nimport Arrow from './arrow';\nimport PopoverBody from './body';\nimport PopoverContainer from './container';\nimport { PopoverProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport interface InternalPopoverProps extends Omit<PopoverProps, 'triggerType' | 'size'>, InternalBaseComponentProps {\n __onOpen?: NonCancelableEventHandler<null>;\n triggerType?: PopoverProps.TriggerType | 'filtering-token';\n size: PopoverProps.Size | 'content';\n __closeAnalyticsAction?: string;\n isInline?: boolean;\n}\n\nexport interface InternalPopoverRef {\n dismissPopover: () => void;\n focus: HTMLElement['focus'];\n}\n\nexport default React.forwardRef(InternalPopover);\n\nfunction InternalPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n triggerType = 'text',\n dismissButton = true,\n\n children,\n header,\n content,\n triggerAriaLabel,\n\n wrapTriggerText = true,\n isInline = false,\n renderWithPortal = false,\n\n __onOpen,\n __internalRootRef = null,\n __closeAnalyticsAction,\n\n ...restProps\n }: InternalPopoverProps,\n ref: React.Ref<InternalPopoverRef>\n) {\n const baseProps = getBaseProps(restProps);\n const triggerRef = useRef<HTMLElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const clickFrameId = useRef<number | null>(null);\n\n const i18n = useInternalI18n('popover');\n const dismissAriaLabel = i18n('dismissAriaLabel', restProps.dismissAriaLabel);\n\n const [visible, setVisible] = useState(false);\n\n const focusTrigger = useCallback(() => {\n if (['text', 'text-inline'].includes(triggerType)) {\n triggerRef.current?.focus();\n } else {\n triggerRef.current && getFirstFocusable(triggerRef.current)?.focus();\n }\n }, [triggerType]);\n\n const onTriggerClick = useCallback(() => {\n fireNonCancelableEvent(__onOpen);\n setVisible(true);\n }, [__onOpen]);\n\n const onDismiss = useCallback(() => {\n setVisible(false);\n focusTrigger();\n }, [focusTrigger]);\n\n const onTriggerKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n const isEscapeKey = event.keyCode === KeyCode.escape;\n const isTabKey = event.keyCode === KeyCode.tab;\n if (isEscapeKey && visible) {\n event.stopPropagation();\n }\n if (isTabKey || isEscapeKey) {\n setVisible(false);\n }\n },\n [visible]\n );\n\n useImperativeHandle(ref, () => ({\n dismissPopover: onDismiss,\n focus: () => {\n setVisible(false);\n focusTrigger();\n },\n }));\n\n useEffect(() => {\n if (!triggerRef.current) {\n return;\n }\n const document = triggerRef.current.ownerDocument;\n\n const onDocumentClick = () => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n if (clickFrameId.current === null) {\n setVisible(false);\n }\n };\n\n document.addEventListener('mousedown', onDocumentClick);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick);\n };\n }, []);\n\n const popoverClasses = usePortalModeClasses(triggerRef);\n\n const triggerProps = {\n // https://github.com/microsoft/TypeScript/issues/36659\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref: triggerRef as any,\n onClick: onTriggerClick,\n onKeyDown: onTriggerKeyDown,\n className: clsx(styles.trigger, styles[`trigger-type-${triggerType}`]),\n };\n const { tabIndex: triggerTabIndex } = useSingleTabStopNavigation(triggerRef);\n\n const referrerId = useUniqueId();\n\n const popoverContent = (\n <div\n aria-live={dismissButton ? undefined : 'polite'}\n aria-atomic={dismissButton ? undefined : true}\n className={clsx(popoverClasses, !renderWithPortal && styles['popover-inline-content'])}\n data-awsui-referrer-id={referrerId}\n >\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={triggerRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={renderWithPortal}\n zIndex={renderWithPortal ? 7000 : undefined}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={header}\n onDismiss={onDismiss}\n overflowVisible=\"both\"\n closeAnalyticsAction={__closeAnalyticsAction}\n >\n {content}\n </PopoverBody>\n </LinkDefaultVariantContext.Provider>\n </PopoverContainer>\n </div>\n );\n\n const mergedRef = useMergeRefs(popoverRef, __internalRootRef);\n\n return (\n <span\n {...baseProps}\n className={clsx(\n styles.root,\n baseProps.className,\n triggerType === 'filtering-token' && styles['root-filtering-token'],\n isInline && styles['no-wrap']\n )}\n ref={mergedRef}\n onMouseDown={() => {\n // Indicate there was a click inside popover recently, including nested portals.\n clickFrameId.current = requestAnimationFrame(() => {\n clickFrameId.current = null;\n });\n }}\n >\n {['text', 'text-inline'].includes(triggerType) ? (\n <button\n {...triggerProps}\n className={clsx(triggerProps.className, wrapTriggerText === false && styles['overflow-ellipsis'])}\n tabIndex={triggerTabIndex}\n type=\"button\"\n aria-haspopup=\"dialog\"\n id={referrerId}\n aria-label={triggerAriaLabel}\n >\n {children}\n </button>\n ) : (\n <span {...triggerProps} id={referrerId}>\n {children}\n </span>\n )}\n {visible && (\n <ResetContextsForModal>\n {renderWithPortal ? <Portal>{popoverContent}</Portal> : popoverContent}\n </ResetContextsForModal>\n )}\n </span>\n );\n}\n"]}
@@ -1,58 +1,59 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "arrow": "awsui_arrow_xjuzf_hg5hv_289",
5
- "arrow-outer": "awsui_arrow-outer_xjuzf_hg5hv_293",
6
- "arrow-inner": "awsui_arrow-inner_xjuzf_hg5hv_293",
7
- "arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_hg5hv_335",
8
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_hg5hv_335",
9
- "arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_hg5hv_338",
10
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_hg5hv_338",
11
- "arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_hg5hv_341",
12
- "arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_hg5hv_341",
13
- "arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_hg5hv_341",
14
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_hg5hv_341",
15
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_hg5hv_344",
16
- "arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_hg5hv_344",
17
- "arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_hg5hv_344",
18
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_hg5hv_344",
19
- "body": "awsui_body_xjuzf_hg5hv_492",
20
- "body-overflow-visible": "awsui_body-overflow-visible_xjuzf_hg5hv_528",
21
- "has-dismiss": "awsui_has-dismiss_xjuzf_hg5hv_532",
22
- "dismiss": "awsui_dismiss_xjuzf_hg5hv_537",
23
- "dismiss-control": "awsui_dismiss-control_xjuzf_hg5hv_545",
24
- "header-row": "awsui_header-row_xjuzf_hg5hv_549",
25
- "header": "awsui_header_xjuzf_hg5hv_549",
26
- "content": "awsui_content_xjuzf_hg5hv_574",
27
- "content-overflow-visible": "awsui_content-overflow-visible_xjuzf_hg5hv_582",
28
- "container": "awsui_container_xjuzf_hg5hv_730",
29
- "container-body": "awsui_container-body_xjuzf_hg5hv_738",
30
- "container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_hg5hv_778",
31
- "container-body-size-small": "awsui_container-body-size-small_xjuzf_hg5hv_783",
32
- "fixed-width": "awsui_fixed-width_xjuzf_hg5hv_786",
33
- "container-body-size-medium": "awsui_container-body-size-medium_xjuzf_hg5hv_790",
34
- "container-body-size-large": "awsui_container-body-size-large_xjuzf_hg5hv_797",
35
- "container-arrow": "awsui_container-arrow_xjuzf_hg5hv_809",
36
- "container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_hg5hv_813",
37
- "container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_hg5hv_813",
38
- "container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_hg5hv_830",
39
- "container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_hg5hv_830",
40
- "container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_hg5hv_847",
41
- "container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_hg5hv_847",
42
- "container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_hg5hv_847",
43
- "container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_hg5hv_847",
44
- "container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_hg5hv_863",
45
- "container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_hg5hv_867",
46
- "container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_hg5hv_871",
47
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_hg5hv_1",
48
- "refresh": "awsui_refresh_xjuzf_hg5hv_1041",
49
- "root": "awsui_root_xjuzf_hg5hv_1063",
50
- "no-wrap": "awsui_no-wrap_xjuzf_hg5hv_1095",
51
- "root-filtering-token": "awsui_root-filtering-token_xjuzf_hg5hv_1099",
52
- "trigger": "awsui_trigger_xjuzf_hg5hv_1103",
53
- "overflow-ellipsis": "awsui_overflow-ellipsis_xjuzf_hg5hv_1110",
54
- "trigger-type-text": "awsui_trigger-type-text_xjuzf_hg5hv_1118",
55
- "trigger-type-filtering-token": "awsui_trigger-type-filtering-token_xjuzf_hg5hv_1154",
56
- "popover-inline-content": "awsui_popover-inline-content_xjuzf_hg5hv_1158"
4
+ "arrow": "awsui_arrow_xjuzf_7fmsc_289",
5
+ "arrow-outer": "awsui_arrow-outer_xjuzf_7fmsc_293",
6
+ "arrow-inner": "awsui_arrow-inner_xjuzf_7fmsc_293",
7
+ "arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_7fmsc_335",
8
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_7fmsc_335",
9
+ "arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_7fmsc_338",
10
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_7fmsc_338",
11
+ "arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_7fmsc_341",
12
+ "arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_7fmsc_341",
13
+ "arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_7fmsc_341",
14
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_7fmsc_341",
15
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_7fmsc_344",
16
+ "arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_7fmsc_344",
17
+ "arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_7fmsc_344",
18
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_7fmsc_344",
19
+ "body": "awsui_body_xjuzf_7fmsc_492",
20
+ "body-overflow-visible": "awsui_body-overflow-visible_xjuzf_7fmsc_528",
21
+ "has-dismiss": "awsui_has-dismiss_xjuzf_7fmsc_532",
22
+ "dismiss": "awsui_dismiss_xjuzf_7fmsc_537",
23
+ "dismiss-control": "awsui_dismiss-control_xjuzf_7fmsc_545",
24
+ "header-row": "awsui_header-row_xjuzf_7fmsc_549",
25
+ "header": "awsui_header_xjuzf_7fmsc_549",
26
+ "content": "awsui_content_xjuzf_7fmsc_574",
27
+ "content-overflow-visible": "awsui_content-overflow-visible_xjuzf_7fmsc_582",
28
+ "container": "awsui_container_xjuzf_7fmsc_730",
29
+ "container-body": "awsui_container-body_xjuzf_7fmsc_738",
30
+ "container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_7fmsc_778",
31
+ "container-body-size-small": "awsui_container-body-size-small_xjuzf_7fmsc_783",
32
+ "fixed-width": "awsui_fixed-width_xjuzf_7fmsc_786",
33
+ "container-body-size-medium": "awsui_container-body-size-medium_xjuzf_7fmsc_790",
34
+ "container-body-size-large": "awsui_container-body-size-large_xjuzf_7fmsc_797",
35
+ "container-arrow": "awsui_container-arrow_xjuzf_7fmsc_809",
36
+ "container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_7fmsc_813",
37
+ "container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_7fmsc_813",
38
+ "container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_7fmsc_830",
39
+ "container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_7fmsc_830",
40
+ "container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_7fmsc_847",
41
+ "container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_7fmsc_847",
42
+ "container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_7fmsc_847",
43
+ "container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_7fmsc_847",
44
+ "container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_7fmsc_863",
45
+ "container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_7fmsc_867",
46
+ "container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_7fmsc_871",
47
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_7fmsc_1",
48
+ "refresh": "awsui_refresh_xjuzf_7fmsc_1041",
49
+ "root": "awsui_root_xjuzf_7fmsc_1063",
50
+ "no-wrap": "awsui_no-wrap_xjuzf_7fmsc_1095",
51
+ "root-filtering-token": "awsui_root-filtering-token_xjuzf_7fmsc_1099",
52
+ "trigger": "awsui_trigger_xjuzf_7fmsc_1103",
53
+ "overflow-ellipsis": "awsui_overflow-ellipsis_xjuzf_7fmsc_1110",
54
+ "trigger-type-text-inline": "awsui_trigger-type-text-inline_xjuzf_7fmsc_1118",
55
+ "trigger-type-text": "awsui_trigger-type-text_xjuzf_7fmsc_1118",
56
+ "trigger-type-filtering-token": "awsui_trigger-type-filtering-token_xjuzf_7fmsc_1179",
57
+ "popover-inline-content": "awsui_popover-inline-content_xjuzf_7fmsc_1183"
57
58
  };
58
59
 
@@ -286,11 +286,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
286
286
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
287
287
  SPDX-License-Identifier: Apache-2.0
288
288
  */
289
- .awsui_arrow_xjuzf_hg5hv_289:not(#\9) {
289
+ .awsui_arrow_xjuzf_7fmsc_289:not(#\9) {
290
290
  inline-size: 20px;
291
291
  block-size: 10px;
292
292
  }
293
- .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9), .awsui_arrow-inner_xjuzf_hg5hv_293:not(#\9) {
293
+ .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9), .awsui_arrow-inner_xjuzf_7fmsc_293:not(#\9) {
294
294
  position: absolute;
295
295
  overflow: hidden;
296
296
  inline-size: 20px;
@@ -299,7 +299,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
299
299
  inset-inline-start: 0;
300
300
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
301
301
  }
302
- .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-inner_xjuzf_hg5hv_293:not(#\9)::after {
302
+ .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-inner_xjuzf_7fmsc_293:not(#\9)::after {
303
303
  content: "";
304
304
  box-sizing: border-box;
305
305
  display: inline-block;
@@ -315,33 +315,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
315
315
  transform: rotate(45deg);
316
316
  transform-origin: 0 100%;
317
317
  }
318
- .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9):dir(rtl)::after, .awsui_arrow-inner_xjuzf_hg5hv_293:not(#\9):dir(rtl)::after {
318
+ .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9):dir(rtl)::after, .awsui_arrow-inner_xjuzf_7fmsc_293:not(#\9):dir(rtl)::after {
319
319
  transform: rotate(-45deg);
320
320
  transform-origin: 100% 100%;
321
321
  }
322
- .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after {
322
+ .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after {
323
323
  background-color: var(--color-border-popover-v2sc7l, #b4b4bb);
324
324
  }
325
- .awsui_arrow-inner_xjuzf_hg5hv_293:not(#\9) {
325
+ .awsui_arrow-inner_xjuzf_7fmsc_293:not(#\9) {
326
326
  inset-block-start: calc(var(--border-width-popover-h2a419, 2px) + 1px);
327
327
  }
328
- .awsui_arrow-inner_xjuzf_hg5hv_293:not(#\9)::after {
328
+ .awsui_arrow-inner_xjuzf_7fmsc_293:not(#\9)::after {
329
329
  border-start-start-radius: 1px;
330
330
  border-start-end-radius: 0;
331
331
  border-end-start-radius: 0;
332
332
  border-end-end-radius: 0;
333
333
  background-color: var(--color-background-popover-eqi5zi, #ffffff);
334
334
  }
335
- .awsui_arrow-position-right-top_xjuzf_hg5hv_335 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-right-bottom_xjuzf_hg5hv_335 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after {
335
+ .awsui_arrow-position-right-top_xjuzf_7fmsc_335 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-right-bottom_xjuzf_7fmsc_335 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after {
336
336
  box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-u7prpu, rgba(15, 20, 26, 0.12));
337
337
  }
338
- .awsui_arrow-position-left-top_xjuzf_hg5hv_338 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-left-bottom_xjuzf_hg5hv_338 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after {
338
+ .awsui_arrow-position-left-top_xjuzf_7fmsc_338 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-left-bottom_xjuzf_7fmsc_338 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after {
339
339
  box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-u7prpu, rgba(15, 20, 26, 0.12));
340
340
  }
341
- .awsui_arrow-position-top-center_xjuzf_hg5hv_341 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-top-right_xjuzf_hg5hv_341 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-top-left_xjuzf_hg5hv_341 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-top-responsive_xjuzf_hg5hv_341 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after {
341
+ .awsui_arrow-position-top-center_xjuzf_7fmsc_341 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-top-right_xjuzf_7fmsc_341 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-top-left_xjuzf_7fmsc_341 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-top-responsive_xjuzf_7fmsc_341 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after {
342
342
  box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-u7prpu, rgba(15, 20, 26, 0.12));
343
343
  }
344
- .awsui_arrow-position-bottom-center_xjuzf_hg5hv_344 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-bottom-right_xjuzf_hg5hv_344 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-bottom-left_xjuzf_hg5hv_344 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after, .awsui_arrow-position-bottom-responsive_xjuzf_hg5hv_344 > .awsui_arrow-outer_xjuzf_hg5hv_293:not(#\9)::after {
344
+ .awsui_arrow-position-bottom-center_xjuzf_7fmsc_344 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-bottom-right_xjuzf_7fmsc_344 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-bottom-left_xjuzf_7fmsc_344 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after, .awsui_arrow-position-bottom-responsive_xjuzf_7fmsc_344 > .awsui_arrow-outer_xjuzf_7fmsc_293:not(#\9)::after {
345
345
  box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-u7prpu, rgba(15, 20, 26, 0.12));
346
346
  }
347
347
 
@@ -489,7 +489,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
489
489
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
490
490
  SPDX-License-Identifier: Apache-2.0
491
491
  */
492
- .awsui_body_xjuzf_hg5hv_492:not(#\9) {
492
+ .awsui_body_xjuzf_7fmsc_492:not(#\9) {
493
493
  border-collapse: separate;
494
494
  border-spacing: 0;
495
495
  box-sizing: border-box;
@@ -526,16 +526,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
526
526
  padding-block: var(--space-s-34lx8l, 12px);
527
527
  padding-inline: var(--space-m-udix3p, 16px);
528
528
  }
529
- .awsui_body-overflow-visible_xjuzf_hg5hv_528:not(#\9) {
529
+ .awsui_body-overflow-visible_xjuzf_7fmsc_528:not(#\9) {
530
530
  overflow: visible;
531
531
  }
532
532
 
533
- .awsui_has-dismiss_xjuzf_hg5hv_532:not(#\9) {
533
+ .awsui_has-dismiss_xjuzf_7fmsc_532:not(#\9) {
534
534
  display: flex;
535
535
  align-items: baseline;
536
536
  }
537
537
 
538
- .awsui_dismiss_xjuzf_hg5hv_537:not(#\9) {
538
+ .awsui_dismiss_xjuzf_7fmsc_537:not(#\9) {
539
539
  margin-block: calc(-1 * var(--space-xs-zb16t3, 8px));
540
540
  margin-inline-start: 0;
541
541
  margin-inline-end: calc(-1 * (var(--space-xxs-p8yyaw, 4px) + var(--border-width-popover-h2a419, 2px)));
@@ -543,15 +543,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
543
543
  order: 1;
544
544
  }
545
545
 
546
- .awsui_dismiss-control_xjuzf_hg5hv_545:not(#\9) {
546
+ .awsui_dismiss-control_xjuzf_7fmsc_545:not(#\9) {
547
547
  /* used in test-utils */
548
548
  }
549
549
 
550
- .awsui_header-row_xjuzf_hg5hv_549:not(#\9) {
550
+ .awsui_header-row_xjuzf_7fmsc_549:not(#\9) {
551
551
  margin-block-end: var(--space-xs-zb16t3, 8px);
552
552
  }
553
553
 
554
- .awsui_header_xjuzf_hg5hv_549:not(#\9) {
554
+ .awsui_header_xjuzf_7fmsc_549:not(#\9) {
555
555
  word-wrap: break-word;
556
556
  max-inline-size: 100%;
557
557
  overflow: hidden;
@@ -563,7 +563,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
563
563
  flex: 1 1 auto;
564
564
  /* stylelint-disable-next-line selector-max-type */
565
565
  }
566
- .awsui_header_xjuzf_hg5hv_549 > h2:not(#\9) {
566
+ .awsui_header_xjuzf_7fmsc_549 > h2:not(#\9) {
567
567
  font-size: var(--font-size-heading-xs-wo4hpf, 14px);
568
568
  line-height: var(--line-height-heading-xs-aeleja, 18px);
569
569
  font-weight: var(--font-weight-heading-xs-l7rqme, 700);
@@ -572,7 +572,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
572
572
  display: inline;
573
573
  }
574
574
 
575
- .awsui_content_xjuzf_hg5hv_574:not(#\9) {
575
+ .awsui_content_xjuzf_7fmsc_574:not(#\9) {
576
576
  word-wrap: break-word;
577
577
  max-inline-size: 100%;
578
578
  overflow: hidden;
@@ -580,7 +580,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
580
580
  flex: 1 1 auto;
581
581
  min-inline-size: 0;
582
582
  }
583
- .awsui_content-overflow-visible_xjuzf_hg5hv_582:not(#\9) {
583
+ .awsui_content-overflow-visible_xjuzf_7fmsc_582:not(#\9) {
584
584
  overflow: visible;
585
585
  }
586
586
 
@@ -728,7 +728,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
728
728
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
729
729
  SPDX-License-Identifier: Apache-2.0
730
730
  */
731
- .awsui_container_xjuzf_hg5hv_730:not(#\9) {
731
+ .awsui_container_xjuzf_7fmsc_730:not(#\9) {
732
732
  display: inline-block;
733
733
  position: fixed;
734
734
  inset-block-start: -9999px;
@@ -736,7 +736,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
736
736
  z-index: 2000;
737
737
  }
738
738
 
739
- .awsui_container-body_xjuzf_hg5hv_738:not(#\9) {
739
+ .awsui_container-body_xjuzf_7fmsc_738:not(#\9) {
740
740
  border-collapse: separate;
741
741
  border-spacing: 0;
742
742
  box-sizing: border-box;
@@ -777,100 +777,100 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
777
777
  border-inline: var(--border-width-popover-h2a419, 2px) solid var(--color-border-popover-v2sc7l, #b4b4bb);
778
778
  }
779
779
 
780
- .awsui_container-body-variant-annotation_xjuzf_hg5hv_778:not(#\9) {
780
+ .awsui_container-body-variant-annotation_xjuzf_7fmsc_778:not(#\9) {
781
781
  background-color: var(--color-background-status-info-gflgo4, #f0fbff);
782
782
  border-color: var(--color-border-status-info-z6pwqy, #006ce0);
783
783
  }
784
784
 
785
- .awsui_container-body-size-small_xjuzf_hg5hv_783:not(#\9) {
785
+ .awsui_container-body-size-small_xjuzf_7fmsc_783:not(#\9) {
786
786
  max-inline-size: 210px;
787
787
  }
788
- .awsui_container-body-size-small_xjuzf_hg5hv_783.awsui_fixed-width_xjuzf_hg5hv_786:not(#\9) {
788
+ .awsui_container-body-size-small_xjuzf_7fmsc_783.awsui_fixed-width_xjuzf_7fmsc_786:not(#\9) {
789
789
  inline-size: 210px;
790
790
  }
791
791
 
792
- .awsui_container-body-size-medium_xjuzf_hg5hv_790:not(#\9) {
792
+ .awsui_container-body-size-medium_xjuzf_7fmsc_790:not(#\9) {
793
793
  max-inline-size: 310px;
794
794
  }
795
- .awsui_container-body-size-medium_xjuzf_hg5hv_790.awsui_fixed-width_xjuzf_hg5hv_786:not(#\9) {
795
+ .awsui_container-body-size-medium_xjuzf_7fmsc_790.awsui_fixed-width_xjuzf_7fmsc_786:not(#\9) {
796
796
  inline-size: 310px;
797
797
  }
798
798
 
799
- .awsui_container-body-size-large_xjuzf_hg5hv_797:not(#\9) {
799
+ .awsui_container-body-size-large_xjuzf_7fmsc_797:not(#\9) {
800
800
  max-inline-size: 482px;
801
801
  }
802
802
  @media (max-width: 482px) {
803
- .awsui_container-body-size-large_xjuzf_hg5hv_797:not(#\9) {
803
+ .awsui_container-body-size-large_xjuzf_7fmsc_797:not(#\9) {
804
804
  max-inline-size: 310px;
805
805
  }
806
806
  }
807
- .awsui_container-body-size-large_xjuzf_hg5hv_797.awsui_fixed-width_xjuzf_hg5hv_786:not(#\9) {
807
+ .awsui_container-body-size-large_xjuzf_7fmsc_797.awsui_fixed-width_xjuzf_7fmsc_786:not(#\9) {
808
808
  inline-size: 482px;
809
809
  }
810
810
 
811
- .awsui_container-arrow_xjuzf_hg5hv_809:not(#\9) {
811
+ .awsui_container-arrow_xjuzf_7fmsc_809:not(#\9) {
812
812
  position: absolute;
813
813
  display: inline-block;
814
814
  }
815
- .awsui_container-arrow-position-right-top_xjuzf_hg5hv_813:not(#\9), .awsui_container-arrow-position-right-bottom_xjuzf_hg5hv_813:not(#\9) {
815
+ .awsui_container-arrow-position-right-top_xjuzf_7fmsc_813:not(#\9), .awsui_container-arrow-position-right-bottom_xjuzf_7fmsc_813:not(#\9) {
816
816
  transform: rotate(-90deg);
817
817
  transform-origin: 0 100%;
818
818
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
819
819
  }
820
- .awsui_container-arrow-position-right-top_xjuzf_hg5hv_813:not(#\9):dir(rtl), .awsui_container-arrow-position-right-bottom_xjuzf_hg5hv_813:not(#\9):dir(rtl) {
820
+ .awsui_container-arrow-position-right-top_xjuzf_7fmsc_813:not(#\9):dir(rtl), .awsui_container-arrow-position-right-bottom_xjuzf_7fmsc_813:not(#\9):dir(rtl) {
821
821
  transform: rotate(90deg);
822
822
  transform-origin: 100% 100%;
823
823
  }
824
- .awsui_container-arrow-position-right-top_xjuzf_hg5hv_813:not(#\9) {
824
+ .awsui_container-arrow-position-right-top_xjuzf_7fmsc_813:not(#\9) {
825
825
  inset-block-start: calc(12px + 10px);
826
826
  inset-inline-start: 0;
827
827
  }
828
- .awsui_container-arrow-position-right-bottom_xjuzf_hg5hv_813:not(#\9) {
828
+ .awsui_container-arrow-position-right-bottom_xjuzf_7fmsc_813:not(#\9) {
829
829
  inset-block-end: 12px;
830
830
  inset-inline-start: 0;
831
831
  }
832
- .awsui_container-arrow-position-left-top_xjuzf_hg5hv_830:not(#\9), .awsui_container-arrow-position-left-bottom_xjuzf_hg5hv_830:not(#\9) {
832
+ .awsui_container-arrow-position-left-top_xjuzf_7fmsc_830:not(#\9), .awsui_container-arrow-position-left-bottom_xjuzf_7fmsc_830:not(#\9) {
833
833
  transform: rotate(90deg);
834
834
  transform-origin: 100% 100%;
835
835
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
836
836
  }
837
- .awsui_container-arrow-position-left-top_xjuzf_hg5hv_830:not(#\9):dir(rtl), .awsui_container-arrow-position-left-bottom_xjuzf_hg5hv_830:not(#\9):dir(rtl) {
837
+ .awsui_container-arrow-position-left-top_xjuzf_7fmsc_830:not(#\9):dir(rtl), .awsui_container-arrow-position-left-bottom_xjuzf_7fmsc_830:not(#\9):dir(rtl) {
838
838
  transform: rotate(-90deg);
839
839
  transform-origin: 0% 100%;
840
840
  }
841
- .awsui_container-arrow-position-left-top_xjuzf_hg5hv_830:not(#\9) {
841
+ .awsui_container-arrow-position-left-top_xjuzf_7fmsc_830:not(#\9) {
842
842
  inset-block-start: calc(12px + 10px);
843
843
  inset-inline-end: 0;
844
844
  }
845
- .awsui_container-arrow-position-left-bottom_xjuzf_hg5hv_830:not(#\9) {
845
+ .awsui_container-arrow-position-left-bottom_xjuzf_7fmsc_830:not(#\9) {
846
846
  inset-block-end: 12px;
847
847
  inset-inline-end: 0;
848
848
  }
849
- .awsui_container-arrow-position-top-center_xjuzf_hg5hv_847:not(#\9), .awsui_container-arrow-position-top-right_xjuzf_hg5hv_847:not(#\9), .awsui_container-arrow-position-top-left_xjuzf_hg5hv_847:not(#\9), .awsui_container-arrow-position-top-responsive_xjuzf_hg5hv_847:not(#\9) {
849
+ .awsui_container-arrow-position-top-center_xjuzf_7fmsc_847:not(#\9), .awsui_container-arrow-position-top-right_xjuzf_7fmsc_847:not(#\9), .awsui_container-arrow-position-top-left_xjuzf_7fmsc_847:not(#\9), .awsui_container-arrow-position-top-responsive_xjuzf_7fmsc_847:not(#\9) {
850
850
  transform: rotate(180deg);
851
851
  transform-origin: 50% 50%;
852
852
  }
853
- .awsui_container-arrow-position-top-center_xjuzf_hg5hv_847:not(#\9) {
853
+ .awsui_container-arrow-position-top-center_xjuzf_7fmsc_847:not(#\9) {
854
854
  inset-block-end: -10px;
855
855
  inset-inline-start: calc(50% - 10px);
856
856
  }
857
- .awsui_container-arrow-position-top-right_xjuzf_hg5hv_847:not(#\9) {
857
+ .awsui_container-arrow-position-top-right_xjuzf_7fmsc_847:not(#\9) {
858
858
  inset-block-end: -10px;
859
859
  inset-inline-start: 12px;
860
860
  }
861
- .awsui_container-arrow-position-top-left_xjuzf_hg5hv_847:not(#\9) {
861
+ .awsui_container-arrow-position-top-left_xjuzf_7fmsc_847:not(#\9) {
862
862
  inset-block-end: -10px;
863
863
  inset-inline-start: calc(100% - 20px - 12px);
864
864
  }
865
- .awsui_container-arrow-position-bottom-center_xjuzf_hg5hv_863:not(#\9) {
865
+ .awsui_container-arrow-position-bottom-center_xjuzf_7fmsc_863:not(#\9) {
866
866
  inset-block-start: -10px;
867
867
  inset-inline-start: calc(50% - 10px);
868
868
  }
869
- .awsui_container-arrow-position-bottom-right_xjuzf_hg5hv_867:not(#\9) {
869
+ .awsui_container-arrow-position-bottom-right_xjuzf_7fmsc_867:not(#\9) {
870
870
  inset-block-start: -10px;
871
871
  inset-inline-start: 12px;
872
872
  }
873
- .awsui_container-arrow-position-bottom-left_xjuzf_hg5hv_871:not(#\9) {
873
+ .awsui_container-arrow-position-bottom-left_xjuzf_7fmsc_871:not(#\9) {
874
874
  inset-block-start: -10px;
875
875
  inset-inline-start: calc(100% - 20px - 12px);
876
876
  }
@@ -1019,10 +1019,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1019
1019
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1020
1020
  SPDX-License-Identifier: Apache-2.0
1021
1021
  */
1022
- .awsui_container_xjuzf_hg5hv_730:not(#\9) {
1023
- animation: awsui_awsui-motion-fade-in_xjuzf_hg5hv_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
1022
+ .awsui_container_xjuzf_7fmsc_730:not(#\9) {
1023
+ animation: awsui_awsui-motion-fade-in_xjuzf_7fmsc_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
1024
1024
  }
1025
- @keyframes awsui_awsui-motion-fade-in_xjuzf_hg5hv_1 {
1025
+ @keyframes awsui_awsui-motion-fade-in_xjuzf_7fmsc_1 {
1026
1026
  from {
1027
1027
  opacity: 0.2;
1028
1028
  }
@@ -1031,19 +1031,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1031
1031
  }
1032
1032
  }
1033
1033
  @media (prefers-reduced-motion: reduce) {
1034
- .awsui_container_xjuzf_hg5hv_730:not(#\9) {
1034
+ .awsui_container_xjuzf_7fmsc_730:not(#\9) {
1035
1035
  animation: none;
1036
1036
  transition: none;
1037
1037
  }
1038
1038
  }
1039
- .awsui-motion-disabled .awsui_container_xjuzf_hg5hv_730:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_hg5hv_730:not(#\9) {
1039
+ .awsui-motion-disabled .awsui_container_xjuzf_7fmsc_730:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_7fmsc_730:not(#\9) {
1040
1040
  animation: none;
1041
1041
  transition: none;
1042
1042
  }
1043
- .awsui_container_xjuzf_hg5hv_730.awsui_refresh_xjuzf_hg5hv_1041:not(#\9) {
1044
- animation: awsui_awsui-motion-fade-in_xjuzf_hg5hv_1 var(--motion-duration-refresh-only-fast-4jn2d7, 115ms) var(--motion-easing-refresh-only-a-8flf9q, cubic-bezier(0, 0, 0, 1));
1043
+ .awsui_container_xjuzf_7fmsc_730.awsui_refresh_xjuzf_7fmsc_1041:not(#\9) {
1044
+ animation: awsui_awsui-motion-fade-in_xjuzf_7fmsc_1 var(--motion-duration-refresh-only-fast-4jn2d7, 115ms) var(--motion-easing-refresh-only-a-8flf9q, cubic-bezier(0, 0, 0, 1));
1045
1045
  }
1046
- @keyframes awsui_awsui-motion-fade-in_xjuzf_hg5hv_1 {
1046
+ @keyframes awsui_awsui-motion-fade-in_xjuzf_7fmsc_1 {
1047
1047
  from {
1048
1048
  opacity: 0.2;
1049
1049
  }
@@ -1052,17 +1052,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1052
1052
  }
1053
1053
  }
1054
1054
  @media (prefers-reduced-motion: reduce) {
1055
- .awsui_container_xjuzf_hg5hv_730.awsui_refresh_xjuzf_hg5hv_1041:not(#\9) {
1055
+ .awsui_container_xjuzf_7fmsc_730.awsui_refresh_xjuzf_7fmsc_1041:not(#\9) {
1056
1056
  animation: none;
1057
1057
  transition: none;
1058
1058
  }
1059
1059
  }
1060
- .awsui-motion-disabled .awsui_container_xjuzf_hg5hv_730.awsui_refresh_xjuzf_hg5hv_1041:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_hg5hv_730.awsui_refresh_xjuzf_hg5hv_1041:not(#\9) {
1060
+ .awsui-motion-disabled .awsui_container_xjuzf_7fmsc_730.awsui_refresh_xjuzf_7fmsc_1041:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_7fmsc_730.awsui_refresh_xjuzf_7fmsc_1041:not(#\9) {
1061
1061
  animation: none;
1062
1062
  transition: none;
1063
1063
  }
1064
1064
 
1065
- .awsui_root_xjuzf_hg5hv_1063:not(#\9) {
1065
+ .awsui_root_xjuzf_7fmsc_1063:not(#\9) {
1066
1066
  border-collapse: separate;
1067
1067
  border-spacing: 0;
1068
1068
  box-sizing: border-box;
@@ -1095,22 +1095,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1095
1095
  -moz-osx-font-smoothing: auto;
1096
1096
  color: inherit;
1097
1097
  }
1098
- .awsui_root_xjuzf_hg5hv_1063.awsui_no-wrap_xjuzf_hg5hv_1095:not(#\9) {
1098
+ .awsui_root_xjuzf_7fmsc_1063.awsui_no-wrap_xjuzf_7fmsc_1095:not(#\9) {
1099
1099
  white-space: nowrap;
1100
1100
  }
1101
1101
 
1102
- .awsui_root-filtering-token_xjuzf_hg5hv_1099:not(#\9) {
1102
+ .awsui_root-filtering-token_xjuzf_7fmsc_1099:not(#\9) {
1103
1103
  display: flex;
1104
1104
  }
1105
1105
 
1106
- .awsui_trigger_xjuzf_hg5hv_1103:not(#\9) {
1106
+ .awsui_trigger_xjuzf_7fmsc_1103:not(#\9) {
1107
1107
  display: inline-block;
1108
1108
  max-inline-size: 100%;
1109
1109
  color: inherit;
1110
1110
  text-align: inherit;
1111
1111
  }
1112
1112
 
1113
- .awsui_overflow-ellipsis_xjuzf_hg5hv_1110:not(#\9) {
1113
+ .awsui_overflow-ellipsis_xjuzf_7fmsc_1110:not(#\9) {
1114
1114
  white-space: nowrap;
1115
1115
  overflow: hidden;
1116
1116
  text-overflow: ellipsis;
@@ -1118,8 +1118,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1118
1118
  word-break: break-word;
1119
1119
  }
1120
1120
 
1121
- .awsui_trigger-type-text_xjuzf_hg5hv_1118:not(#\9) {
1121
+ .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9) {
1122
1122
  border-block: 0;
1123
+ /*
1124
+ This transparent border is necessary to maintain space between the trigger and the bottom-positioned popover.
1125
+ */
1126
+ border-block-end: var(--border-divider-list-width-27y3k5, 1px) dashed transparent;
1127
+ -webkit-text-decoration: underline dashed currentColor;
1128
+ text-decoration: underline dashed currentColor;
1129
+ text-decoration-thickness: var(--border-divider-list-width-27y3k5, 1px);
1130
+ text-underline-offset: 0.25em;
1131
+ }
1132
+ .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118.awsui_overflow-ellipsis_xjuzf_7fmsc_1110:not(#\9) {
1133
+ /*
1134
+ This line-height needs to be overridden because the overflow: hidden would otherwise conceal the underline styles.
1135
+ */
1136
+ line-height: calc(1 + 0.25em + var(--border-divider-list-width-27y3k5, 1px));
1137
+ }
1138
+
1139
+ .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9) {
1140
+ border-block: 0;
1141
+ border-block-end: var(--border-divider-list-width-27y3k5, 1px) dashed currentColor;
1142
+ }
1143
+
1144
+ .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9),
1145
+ .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9) {
1123
1146
  border-inline: 0;
1124
1147
  margin-block: 0;
1125
1148
  margin-inline: 0;
@@ -1127,19 +1150,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
1127
1150
  padding-inline: 0;
1128
1151
  background-color: transparent;
1129
1152
  cursor: pointer;
1130
- border-block-end: var(--border-divider-list-width-27y3k5, 1px) dashed currentColor;
1131
1153
  }
1132
- .awsui_trigger-type-text_xjuzf_hg5hv_1118:not(#\9):focus {
1154
+ .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9):focus,
1155
+ .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9):focus {
1133
1156
  outline: none;
1134
1157
  }
1135
- body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_hg5hv_1118:not(#\9):focus {
1158
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9):focus,
1159
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9):focus {
1136
1160
  position: relative;
1137
1161
  }
1138
- body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_hg5hv_1118:not(#\9):focus {
1162
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9):focus,
1163
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9):focus {
1139
1164
  outline: 2px dotted transparent;
1140
1165
  outline-offset: calc(1px - 1px);
1141
1166
  }
1142
- body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_hg5hv_1118:not(#\9):focus::before {
1167
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text-inline_xjuzf_7fmsc_1118:not(#\9):focus::before,
1168
+ body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_7fmsc_1118:not(#\9):focus::before {
1143
1169
  content: " ";
1144
1170
  display: block;
1145
1171
  position: absolute;
@@ -1154,10 +1180,10 @@ body[data-awsui-focus-visible=true] .awsui_trigger-type-text_xjuzf_hg5hv_1118:no
1154
1180
  box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
1155
1181
  }
1156
1182
 
1157
- .awsui_trigger-type-filtering-token_xjuzf_hg5hv_1154:not(#\9) {
1183
+ .awsui_trigger-type-filtering-token_xjuzf_7fmsc_1179:not(#\9) {
1158
1184
  display: flex;
1159
1185
  }
1160
1186
 
1161
- .awsui_popover-inline-content_xjuzf_hg5hv_1158:not(#\9) {
1187
+ .awsui_popover-inline-content_xjuzf_7fmsc_1183:not(#\9) {
1162
1188
  display: inline;
1163
1189
  }
@@ -2,58 +2,59 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "arrow": "awsui_arrow_xjuzf_hg5hv_289",
6
- "arrow-outer": "awsui_arrow-outer_xjuzf_hg5hv_293",
7
- "arrow-inner": "awsui_arrow-inner_xjuzf_hg5hv_293",
8
- "arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_hg5hv_335",
9
- "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_hg5hv_335",
10
- "arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_hg5hv_338",
11
- "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_hg5hv_338",
12
- "arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_hg5hv_341",
13
- "arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_hg5hv_341",
14
- "arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_hg5hv_341",
15
- "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_hg5hv_341",
16
- "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_hg5hv_344",
17
- "arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_hg5hv_344",
18
- "arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_hg5hv_344",
19
- "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_hg5hv_344",
20
- "body": "awsui_body_xjuzf_hg5hv_492",
21
- "body-overflow-visible": "awsui_body-overflow-visible_xjuzf_hg5hv_528",
22
- "has-dismiss": "awsui_has-dismiss_xjuzf_hg5hv_532",
23
- "dismiss": "awsui_dismiss_xjuzf_hg5hv_537",
24
- "dismiss-control": "awsui_dismiss-control_xjuzf_hg5hv_545",
25
- "header-row": "awsui_header-row_xjuzf_hg5hv_549",
26
- "header": "awsui_header_xjuzf_hg5hv_549",
27
- "content": "awsui_content_xjuzf_hg5hv_574",
28
- "content-overflow-visible": "awsui_content-overflow-visible_xjuzf_hg5hv_582",
29
- "container": "awsui_container_xjuzf_hg5hv_730",
30
- "container-body": "awsui_container-body_xjuzf_hg5hv_738",
31
- "container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_hg5hv_778",
32
- "container-body-size-small": "awsui_container-body-size-small_xjuzf_hg5hv_783",
33
- "fixed-width": "awsui_fixed-width_xjuzf_hg5hv_786",
34
- "container-body-size-medium": "awsui_container-body-size-medium_xjuzf_hg5hv_790",
35
- "container-body-size-large": "awsui_container-body-size-large_xjuzf_hg5hv_797",
36
- "container-arrow": "awsui_container-arrow_xjuzf_hg5hv_809",
37
- "container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_hg5hv_813",
38
- "container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_hg5hv_813",
39
- "container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_hg5hv_830",
40
- "container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_hg5hv_830",
41
- "container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_hg5hv_847",
42
- "container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_hg5hv_847",
43
- "container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_hg5hv_847",
44
- "container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_hg5hv_847",
45
- "container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_hg5hv_863",
46
- "container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_hg5hv_867",
47
- "container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_hg5hv_871",
48
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_hg5hv_1",
49
- "refresh": "awsui_refresh_xjuzf_hg5hv_1041",
50
- "root": "awsui_root_xjuzf_hg5hv_1063",
51
- "no-wrap": "awsui_no-wrap_xjuzf_hg5hv_1095",
52
- "root-filtering-token": "awsui_root-filtering-token_xjuzf_hg5hv_1099",
53
- "trigger": "awsui_trigger_xjuzf_hg5hv_1103",
54
- "overflow-ellipsis": "awsui_overflow-ellipsis_xjuzf_hg5hv_1110",
55
- "trigger-type-text": "awsui_trigger-type-text_xjuzf_hg5hv_1118",
56
- "trigger-type-filtering-token": "awsui_trigger-type-filtering-token_xjuzf_hg5hv_1154",
57
- "popover-inline-content": "awsui_popover-inline-content_xjuzf_hg5hv_1158"
5
+ "arrow": "awsui_arrow_xjuzf_7fmsc_289",
6
+ "arrow-outer": "awsui_arrow-outer_xjuzf_7fmsc_293",
7
+ "arrow-inner": "awsui_arrow-inner_xjuzf_7fmsc_293",
8
+ "arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_7fmsc_335",
9
+ "arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_7fmsc_335",
10
+ "arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_7fmsc_338",
11
+ "arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_7fmsc_338",
12
+ "arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_7fmsc_341",
13
+ "arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_7fmsc_341",
14
+ "arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_7fmsc_341",
15
+ "arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_7fmsc_341",
16
+ "arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_7fmsc_344",
17
+ "arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_7fmsc_344",
18
+ "arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_7fmsc_344",
19
+ "arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_7fmsc_344",
20
+ "body": "awsui_body_xjuzf_7fmsc_492",
21
+ "body-overflow-visible": "awsui_body-overflow-visible_xjuzf_7fmsc_528",
22
+ "has-dismiss": "awsui_has-dismiss_xjuzf_7fmsc_532",
23
+ "dismiss": "awsui_dismiss_xjuzf_7fmsc_537",
24
+ "dismiss-control": "awsui_dismiss-control_xjuzf_7fmsc_545",
25
+ "header-row": "awsui_header-row_xjuzf_7fmsc_549",
26
+ "header": "awsui_header_xjuzf_7fmsc_549",
27
+ "content": "awsui_content_xjuzf_7fmsc_574",
28
+ "content-overflow-visible": "awsui_content-overflow-visible_xjuzf_7fmsc_582",
29
+ "container": "awsui_container_xjuzf_7fmsc_730",
30
+ "container-body": "awsui_container-body_xjuzf_7fmsc_738",
31
+ "container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_7fmsc_778",
32
+ "container-body-size-small": "awsui_container-body-size-small_xjuzf_7fmsc_783",
33
+ "fixed-width": "awsui_fixed-width_xjuzf_7fmsc_786",
34
+ "container-body-size-medium": "awsui_container-body-size-medium_xjuzf_7fmsc_790",
35
+ "container-body-size-large": "awsui_container-body-size-large_xjuzf_7fmsc_797",
36
+ "container-arrow": "awsui_container-arrow_xjuzf_7fmsc_809",
37
+ "container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_7fmsc_813",
38
+ "container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_7fmsc_813",
39
+ "container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_7fmsc_830",
40
+ "container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_7fmsc_830",
41
+ "container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_7fmsc_847",
42
+ "container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_7fmsc_847",
43
+ "container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_7fmsc_847",
44
+ "container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_7fmsc_847",
45
+ "container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_7fmsc_863",
46
+ "container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_7fmsc_867",
47
+ "container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_7fmsc_871",
48
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_7fmsc_1",
49
+ "refresh": "awsui_refresh_xjuzf_7fmsc_1041",
50
+ "root": "awsui_root_xjuzf_7fmsc_1063",
51
+ "no-wrap": "awsui_no-wrap_xjuzf_7fmsc_1095",
52
+ "root-filtering-token": "awsui_root-filtering-token_xjuzf_7fmsc_1099",
53
+ "trigger": "awsui_trigger_xjuzf_7fmsc_1103",
54
+ "overflow-ellipsis": "awsui_overflow-ellipsis_xjuzf_7fmsc_1110",
55
+ "trigger-type-text-inline": "awsui_trigger-type-text-inline_xjuzf_7fmsc_1118",
56
+ "trigger-type-text": "awsui_trigger-type-text_xjuzf_7fmsc_1118",
57
+ "trigger-type-filtering-token": "awsui_trigger-type-filtering-token_xjuzf_7fmsc_1179",
58
+ "popover-inline-content": "awsui_popover-inline-content_xjuzf_7fmsc_1183"
58
59
  };
59
60