@cloudscape-design/components-themeable 3.0.955 → 3.0.957
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.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/top-navigation/styles.scss +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.js +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/dropdown-footer/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/dropdown-footer/index.js +2 -2
- package/lib/internal/template/internal/components/dropdown-footer/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/live-region/internal.d.ts +1 -0
- package/lib/internal/template/live-region/internal.d.ts.map +1 -1
- package/lib/internal/template/live-region/internal.js +15 -2
- package/lib/internal/template/live-region/internal.js.map +1 -1
- package/lib/internal/template/package.json +1 -2
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +66 -65
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/package.json +1 -1
|
@@ -152,7 +152,7 @@ const AutosuggestInput = React.forwardRef((_a, ref) => {
|
|
|
152
152
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
153
153
|
}, [open]);
|
|
154
154
|
return (React.createElement("div", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root), ref: __internalRootRef }),
|
|
155
|
-
React.createElement(Dropdown, { minWidth: dropdownWidth, stretchWidth: !dropdownWidth, stretchBeyondTriggerWidth: true, contentKey: dropdownContentKey, onFocus: handleFocus, onBlur: handleBlur, trigger: React.createElement(InternalInput, Object.assign({ type: "visualSearch", value: value, onChange: event => handleChange(event.detail.value), __onDelayedInput: event => handleDelayedInput(event.detail.value), onKeyDown: handleKeyDown, onKeyUp: onKeyUp, disabled: disabled, disableBrowserAutocorrect: disableBrowserAutocorrect, readOnly: readOnly, ariaRequired: ariaRequired, clearAriaLabel: clearAriaLabel, ref: inputRef, autoComplete: false, __nativeAttributes: nativeAttributes }, formFieldContext)), onMouseDown: handleDropdownMouseDown, open: open && (!!dropdownContent || !!dropdownFooter), footer: dropdownFooterRef && (React.createElement("div", { ref: dropdownFooterRef, className: styles['dropdown-footer'] }, dropdownFooter)), expandToViewport: expandToViewport, loopFocus: loopFocus }, open && dropdownContent ? (React.createElement("div", { ref: dropdownContentRef, className: styles['dropdown-content'] }, dropdownContent)) : null)));
|
|
155
|
+
React.createElement(Dropdown, { minWidth: dropdownWidth, stretchWidth: !dropdownWidth, stretchBeyondTriggerWidth: true, contentKey: dropdownContentKey, onFocus: handleFocus, onBlur: handleBlur, trigger: React.createElement(InternalInput, Object.assign({ type: "visualSearch", value: value, onChange: event => handleChange(event.detail.value), __onDelayedInput: event => handleDelayedInput(event.detail.value), onKeyDown: handleKeyDown, onKeyUp: onKeyUp, disabled: disabled, disableBrowserAutocorrect: disableBrowserAutocorrect, readOnly: readOnly, ariaRequired: ariaRequired, clearAriaLabel: clearAriaLabel, ref: inputRef, autoComplete: false, __nativeAttributes: nativeAttributes }, formFieldContext)), onMouseDown: handleDropdownMouseDown, open: open && (!!dropdownContent || !!dropdownFooter), footer: dropdownFooterRef && (React.createElement("div", { ref: dropdownFooterRef, className: styles['dropdown-footer'] }, open && dropdownFooter ? dropdownFooter : null)), expandToViewport: expandToViewport, loopFocus: loopFocus }, open && dropdownContent ? (React.createElement("div", { ref: dropdownContentRef, className: styles['dropdown-content'] }, dropdownContent)) : null)));
|
|
156
156
|
});
|
|
157
157
|
export default AutosuggestInput;
|
|
158
158
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/autosuggest-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,KAAK,EAAE,EAAO,SAAS,EAAE,mBAAm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AAK,CAAC,MAAM,CAAC,KAAK,CAAC,EACjE,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,yBAAyB,EAAE,yBAAyB,EACpD,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,KAAK,EACnB,kBAAkB,EAAE,gBAAgB,IAChC,gBAAgB,EACpB,EAEJ,WAAW,EAAE,uBAAuB,EACpC,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe,IAAI,CAAC,CAAC,cAAc,CAAC,EACrD,MAAM,EACJ,iBAAiB,IAAI,CACnB,6BAAK,GAAG,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,IAC9D,cAAc,CACX,CACP,EAEH,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS,IAEnB,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,CACzB,6BAAK,GAAG,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,IAChE,eAAe,CACZ,CACP,CAAC,CAAC,CAAC,IAAI,CACC,CACP,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { AutosuggestProps } from '../../../autosuggest/interfaces';\nimport {\n BaseChangeDetail,\n BaseInputProps,\n InputAutoCorrect,\n InputClearLabel,\n InputKeyEvents,\n} from '../../../input/interfaces';\nimport InternalInput, { InternalInputProps } from '../../../input/internal';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../../context/form-field-context';\nimport { BaseKeyDetail, fireCancelableEvent, fireNonCancelableEvent, NonCancelableEventHandler } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { KeyCode } from '../../keycode';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport Dropdown from '../dropdown';\nimport { ExpandToViewport } from '../dropdown/interfaces';\n\nimport styles from './styles.css.js';\n\ninterface AutosuggestInputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputAutoCorrect,\n InputKeyEvents,\n InputClearLabel,\n FormFieldValidationControlProps,\n ExpandToViewport,\n InternalBaseComponentProps {\n ariaControls?: string;\n ariaActivedescendant?: string;\n dropdownExpanded?: boolean;\n dropdownContentKey?: string;\n dropdownContentFocusable?: boolean;\n dropdownContent?: React.ReactNode;\n dropdownFooter?: React.ReactNode;\n dropdownWidth?: number;\n loopFocus?: boolean;\n onCloseDropdown?: NonCancelableEventHandler<null>;\n onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n onPressArrowDown?: () => void;\n onPressArrowUp?: () => void;\n onPressEnter?: () => boolean;\n}\n\ninterface AutosuggestInputFocusOptions {\n preventDropdown?: boolean;\n}\n\nexport interface AutosuggestInputRef extends AutosuggestProps.Ref {\n focus(options?: AutosuggestInputFocusOptions): void;\n open(): void;\n close(): void;\n}\n\nconst AutosuggestInput = React.forwardRef(\n (\n {\n value,\n onChange,\n onBlur,\n onFocus,\n onKeyUp,\n onKeyDown,\n name,\n placeholder,\n disabled,\n readOnly,\n autoFocus,\n ariaLabel,\n ariaRequired,\n disableBrowserAutocorrect = false,\n expandToViewport,\n ariaControls,\n ariaActivedescendant,\n clearAriaLabel,\n dropdownExpanded = true,\n dropdownContentKey,\n dropdownContentFocusable = false,\n dropdownContent = null,\n dropdownFooter = null,\n dropdownWidth,\n loopFocus,\n onCloseDropdown,\n onDelayedInput,\n onPressArrowDown,\n onPressArrowUp,\n onPressEnter,\n __internalRootRef,\n ...restProps\n }: AutosuggestInputProps,\n ref: Ref<AutosuggestInputRef>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const inputRef = useRef<HTMLInputElement>(null);\n const dropdownContentRef = useRef<HTMLDivElement>(null);\n const dropdownFooterRef = useRef<HTMLDivElement>(null);\n const preventOpenOnFocusRef = useRef(false);\n const preventCloseOnBlurRef = useRef(false);\n\n const [open, setOpen] = useState(false);\n\n const openDropdown = () => !readOnly && setOpen(true);\n\n const closeDropdown = () => {\n setOpen(false);\n fireNonCancelableEvent(onCloseDropdown, null);\n };\n\n useImperativeHandle(ref, () => ({\n focus(options?: AutosuggestInputFocusOptions) {\n if (options?.preventDropdown) {\n preventOpenOnFocusRef.current = true;\n }\n inputRef.current?.focus();\n },\n select() {\n inputRef.current?.select();\n },\n open: openDropdown,\n close: closeDropdown,\n }));\n\n const handleBlur = () => {\n if (!preventCloseOnBlurRef.current) {\n closeDropdown();\n fireNonCancelableEvent(onBlur, null);\n }\n };\n\n const handleFocus = () => {\n if (!preventOpenOnFocusRef.current) {\n openDropdown();\n fireNonCancelableEvent(onFocus, null);\n }\n preventOpenOnFocusRef.current = false;\n };\n\n const fireKeydown = (event: CustomEvent<BaseKeyDetail>) => fireCancelableEvent(onKeyDown, event.detail, event);\n\n const handleKeyDown = (event: CustomEvent<BaseKeyDetail>) => {\n switch (event.detail.keyCode) {\n case KeyCode.down: {\n onPressArrowDown?.();\n openDropdown();\n event.preventDefault();\n break;\n }\n case KeyCode.up: {\n onPressArrowUp?.();\n openDropdown();\n event.preventDefault();\n break;\n }\n case KeyCode.enter: {\n if (open) {\n if (!onPressEnter?.()) {\n closeDropdown();\n }\n event.preventDefault();\n }\n fireKeydown(event);\n break;\n }\n case KeyCode.escape: {\n if (open) {\n event.stopPropagation();\n closeDropdown();\n } else if (value) {\n event.stopPropagation();\n fireNonCancelableEvent(onChange, { value: '' });\n }\n event.preventDefault();\n fireKeydown(event);\n break;\n }\n default: {\n fireKeydown(event);\n }\n }\n };\n\n const handleChange = (value: string) => {\n openDropdown();\n fireNonCancelableEvent(onChange, { value });\n };\n\n const handleDelayedInput = (value: string) => {\n fireNonCancelableEvent(onDelayedInput, { value });\n };\n\n const handleDropdownMouseDown: React.MouseEventHandler = event => {\n // Prevent currently focused element from losing focus.\n if (!dropdownContentFocusable) {\n event.preventDefault();\n }\n // Prevent closing dropdown on click inside.\n else {\n preventCloseOnBlurRef.current = true;\n requestAnimationFrame(() => {\n preventCloseOnBlurRef.current = false;\n });\n }\n };\n\n const expanded = open && dropdownExpanded;\n const nativeAttributes: InternalInputProps['__nativeAttributes'] = {\n name,\n placeholder,\n autoFocus,\n onClick: openDropdown,\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-expanded': expanded,\n 'aria-controls': open ? ariaControls : undefined,\n // 'aria-owns' needed for safari+vo to announce activedescendant content\n 'aria-owns': open ? ariaControls : undefined,\n 'aria-label': ariaLabel,\n 'aria-activedescendant': ariaActivedescendant,\n };\n\n // Closes dropdown when outside click is detected.\n // Similar to the internal dropdown implementation but includes the target as well.\n useEffect(() => {\n if (!open) {\n return;\n }\n\n const clickListener = (event: MouseEvent) => {\n if (\n !nodeBelongs(inputRef.current, event.target) &&\n !nodeBelongs(dropdownContentRef.current, event.target) &&\n !nodeBelongs(dropdownFooterRef.current, event.target)\n ) {\n closeDropdown();\n }\n };\n\n window.addEventListener('mousedown', clickListener);\n\n return () => {\n window.removeEventListener('mousedown', clickListener);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <Dropdown\n minWidth={dropdownWidth}\n stretchWidth={!dropdownWidth}\n stretchBeyondTriggerWidth={true}\n contentKey={dropdownContentKey}\n onFocus={handleFocus}\n onBlur={handleBlur}\n trigger={\n <InternalInput\n type=\"visualSearch\"\n value={value}\n onChange={event => handleChange(event.detail.value)}\n __onDelayedInput={event => handleDelayedInput(event.detail.value)}\n onKeyDown={handleKeyDown}\n onKeyUp={onKeyUp}\n disabled={disabled}\n disableBrowserAutocorrect={disableBrowserAutocorrect}\n readOnly={readOnly}\n ariaRequired={ariaRequired}\n clearAriaLabel={clearAriaLabel}\n ref={inputRef}\n autoComplete={false}\n __nativeAttributes={nativeAttributes}\n {...formFieldContext}\n />\n }\n onMouseDown={handleDropdownMouseDown}\n open={open && (!!dropdownContent || !!dropdownFooter)}\n footer={\n dropdownFooterRef && (\n <div ref={dropdownFooterRef} className={styles['dropdown-footer']}>\n {dropdownFooter}\n </div>\n )\n }\n expandToViewport={expandToViewport}\n loopFocus={loopFocus}\n >\n {open && dropdownContent ? (\n <div ref={dropdownContentRef} className={styles['dropdown-content']}>\n {dropdownContent}\n </div>\n ) : null}\n </Dropdown>\n </div>\n );\n }\n);\n\nexport default AutosuggestInput;\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/autosuggest-input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,KAAK,EAAE,EAAO,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,IAAI,MAAM,MAAM,CAAC;AAUxB,OAAO,aAAqC,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAsB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAmC,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACxG,OAAO,EAAiB,mBAAmB,EAAE,sBAAsB,EAA6B,MAAM,cAAc,CAAC;AAErH,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,QAAQ,MAAM,aAAa,CAAC;AAGnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqCrC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CACvC,CACE,EAiCwB,EACxB,GAA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cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAC3C,CACP,EAEH,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS,IAEnB,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,CACzB,6BAAK,GAAG,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,IAChE,eAAe,CACZ,CACP,CAAC,CAAC,CAAC,IAAI,CACC,CACP,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Ref, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { AutosuggestProps } from '../../../autosuggest/interfaces';\nimport {\n BaseChangeDetail,\n BaseInputProps,\n InputAutoCorrect,\n InputClearLabel,\n InputKeyEvents,\n} from '../../../input/interfaces';\nimport InternalInput, { InternalInputProps } from '../../../input/internal';\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../../context/form-field-context';\nimport { BaseKeyDetail, fireCancelableEvent, fireNonCancelableEvent, NonCancelableEventHandler } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { KeyCode } from '../../keycode';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport Dropdown from '../dropdown';\nimport { ExpandToViewport } from '../dropdown/interfaces';\n\nimport styles from './styles.css.js';\n\ninterface AutosuggestInputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputAutoCorrect,\n InputKeyEvents,\n InputClearLabel,\n FormFieldValidationControlProps,\n ExpandToViewport,\n InternalBaseComponentProps {\n ariaControls?: string;\n ariaActivedescendant?: string;\n dropdownExpanded?: boolean;\n dropdownContentKey?: string;\n dropdownContentFocusable?: boolean;\n dropdownContent?: React.ReactNode;\n dropdownFooter?: React.ReactNode;\n dropdownWidth?: number;\n loopFocus?: boolean;\n onCloseDropdown?: NonCancelableEventHandler<null>;\n onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n onPressArrowDown?: () => void;\n onPressArrowUp?: () => void;\n onPressEnter?: () => boolean;\n}\n\ninterface AutosuggestInputFocusOptions {\n preventDropdown?: boolean;\n}\n\nexport interface AutosuggestInputRef extends AutosuggestProps.Ref {\n focus(options?: AutosuggestInputFocusOptions): void;\n open(): void;\n close(): void;\n}\n\nconst AutosuggestInput = React.forwardRef(\n (\n {\n value,\n onChange,\n onBlur,\n onFocus,\n onKeyUp,\n onKeyDown,\n name,\n placeholder,\n disabled,\n readOnly,\n autoFocus,\n ariaLabel,\n ariaRequired,\n disableBrowserAutocorrect = false,\n expandToViewport,\n ariaControls,\n ariaActivedescendant,\n clearAriaLabel,\n dropdownExpanded = true,\n dropdownContentKey,\n dropdownContentFocusable = false,\n dropdownContent = null,\n dropdownFooter = null,\n dropdownWidth,\n loopFocus,\n onCloseDropdown,\n onDelayedInput,\n onPressArrowDown,\n onPressArrowUp,\n onPressEnter,\n __internalRootRef,\n ...restProps\n }: AutosuggestInputProps,\n ref: Ref<AutosuggestInputRef>\n ) => {\n const baseProps = getBaseProps(restProps);\n const formFieldContext = useFormFieldContext(restProps);\n\n const inputRef = useRef<HTMLInputElement>(null);\n const dropdownContentRef = useRef<HTMLDivElement>(null);\n const dropdownFooterRef = useRef<HTMLDivElement>(null);\n const preventOpenOnFocusRef = useRef(false);\n const preventCloseOnBlurRef = useRef(false);\n\n const [open, setOpen] = useState(false);\n\n const openDropdown = () => !readOnly && setOpen(true);\n\n const closeDropdown = () => {\n setOpen(false);\n fireNonCancelableEvent(onCloseDropdown, null);\n };\n\n useImperativeHandle(ref, () => ({\n focus(options?: AutosuggestInputFocusOptions) {\n if (options?.preventDropdown) {\n preventOpenOnFocusRef.current = true;\n }\n inputRef.current?.focus();\n },\n select() {\n inputRef.current?.select();\n },\n open: openDropdown,\n close: closeDropdown,\n }));\n\n const handleBlur = () => {\n if (!preventCloseOnBlurRef.current) {\n closeDropdown();\n fireNonCancelableEvent(onBlur, null);\n }\n };\n\n const handleFocus = () => {\n if (!preventOpenOnFocusRef.current) {\n openDropdown();\n fireNonCancelableEvent(onFocus, null);\n }\n preventOpenOnFocusRef.current = false;\n };\n\n const fireKeydown = (event: CustomEvent<BaseKeyDetail>) => fireCancelableEvent(onKeyDown, event.detail, event);\n\n const handleKeyDown = (event: CustomEvent<BaseKeyDetail>) => {\n switch (event.detail.keyCode) {\n case KeyCode.down: {\n onPressArrowDown?.();\n openDropdown();\n event.preventDefault();\n break;\n }\n case KeyCode.up: {\n onPressArrowUp?.();\n openDropdown();\n event.preventDefault();\n break;\n }\n case KeyCode.enter: {\n if (open) {\n if (!onPressEnter?.()) {\n closeDropdown();\n }\n event.preventDefault();\n }\n fireKeydown(event);\n break;\n }\n case KeyCode.escape: {\n if (open) {\n event.stopPropagation();\n closeDropdown();\n } else if (value) {\n event.stopPropagation();\n fireNonCancelableEvent(onChange, { value: '' });\n }\n event.preventDefault();\n fireKeydown(event);\n break;\n }\n default: {\n fireKeydown(event);\n }\n }\n };\n\n const handleChange = (value: string) => {\n openDropdown();\n fireNonCancelableEvent(onChange, { value });\n };\n\n const handleDelayedInput = (value: string) => {\n fireNonCancelableEvent(onDelayedInput, { value });\n };\n\n const handleDropdownMouseDown: React.MouseEventHandler = event => {\n // Prevent currently focused element from losing focus.\n if (!dropdownContentFocusable) {\n event.preventDefault();\n }\n // Prevent closing dropdown on click inside.\n else {\n preventCloseOnBlurRef.current = true;\n requestAnimationFrame(() => {\n preventCloseOnBlurRef.current = false;\n });\n }\n };\n\n const expanded = open && dropdownExpanded;\n const nativeAttributes: InternalInputProps['__nativeAttributes'] = {\n name,\n placeholder,\n autoFocus,\n onClick: openDropdown,\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-expanded': expanded,\n 'aria-controls': open ? ariaControls : undefined,\n // 'aria-owns' needed for safari+vo to announce activedescendant content\n 'aria-owns': open ? ariaControls : undefined,\n 'aria-label': ariaLabel,\n 'aria-activedescendant': ariaActivedescendant,\n };\n\n // Closes dropdown when outside click is detected.\n // Similar to the internal dropdown implementation but includes the target as well.\n useEffect(() => {\n if (!open) {\n return;\n }\n\n const clickListener = (event: MouseEvent) => {\n if (\n !nodeBelongs(inputRef.current, event.target) &&\n !nodeBelongs(dropdownContentRef.current, event.target) &&\n !nodeBelongs(dropdownFooterRef.current, event.target)\n ) {\n closeDropdown();\n }\n };\n\n window.addEventListener('mousedown', clickListener);\n\n return () => {\n window.removeEventListener('mousedown', clickListener);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <Dropdown\n minWidth={dropdownWidth}\n stretchWidth={!dropdownWidth}\n stretchBeyondTriggerWidth={true}\n contentKey={dropdownContentKey}\n onFocus={handleFocus}\n onBlur={handleBlur}\n trigger={\n <InternalInput\n type=\"visualSearch\"\n value={value}\n onChange={event => handleChange(event.detail.value)}\n __onDelayedInput={event => handleDelayedInput(event.detail.value)}\n onKeyDown={handleKeyDown}\n onKeyUp={onKeyUp}\n disabled={disabled}\n disableBrowserAutocorrect={disableBrowserAutocorrect}\n readOnly={readOnly}\n ariaRequired={ariaRequired}\n clearAriaLabel={clearAriaLabel}\n ref={inputRef}\n autoComplete={false}\n __nativeAttributes={nativeAttributes}\n {...formFieldContext}\n />\n }\n onMouseDown={handleDropdownMouseDown}\n open={open && (!!dropdownContent || !!dropdownFooter)}\n footer={\n dropdownFooterRef && (\n <div ref={dropdownFooterRef} className={styles['dropdown-footer']}>\n {open && dropdownFooter ? dropdownFooter : null}\n </div>\n )\n }\n expandToViewport={expandToViewport}\n loopFocus={loopFocus}\n >\n {open && dropdownContent ? (\n <div ref={dropdownContentRef} className={styles['dropdown-content']}>\n {dropdownContent}\n </div>\n ) : null}\n </Dropdown>\n </div>\n );\n }\n);\n\nexport default AutosuggestInput;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAQ5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import InternalLiveRegion from '../../../live-region/internal.js';
|
|
6
6
|
import DropdownStatus from '../dropdown-status/index.js';
|
|
7
7
|
import styles from './styles.css.js';
|
|
8
|
-
const DropdownFooter = ({ content, id, hasItems = true }) => (React.createElement("div", { className: clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems }) },
|
|
9
|
-
React.createElement(
|
|
8
|
+
const DropdownFooter = ({ content, id, hasItems = true }) => (React.createElement("div", { className: clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems }) }, content && (React.createElement(InternalLiveRegion, { id: id },
|
|
9
|
+
React.createElement(DropdownStatus, null, content)))));
|
|
10
10
|
export default DropdownFooter;
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,kBAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACrG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown-footer/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,kBAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAQrC,MAAM,cAAc,GAA6B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAkB,EAAE,EAAE,CAAC,CACrG,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,IACtG,OAAO,IAAI,CACV,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE;IACxB,oBAAC,cAAc,QAAE,OAAO,CAAkB,CACvB,CACtB,CACG,CACP,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport InternalLiveRegion from '../../../live-region/internal.js';\nimport DropdownStatus from '../dropdown-status/index.js';\n\nimport styles from './styles.css.js';\n\ninterface DropdownFooter {\n content?: React.ReactNode | null;\n hasItems?: boolean;\n id?: string;\n}\n\nconst DropdownFooter: React.FC<DropdownFooter> = ({ content, id, hasItems = true }: DropdownFooter) => (\n <div className={clsx(styles.root, { [styles.hidden]: content === null, [styles['no-items']]: !hasItems })}>\n {content && (\n <InternalLiveRegion id={id}>\n <DropdownStatus>{content}</DropdownStatus>\n </InternalLiveRegion>\n )}\n </div>\n);\n\nexport default DropdownFooter;\n"]}
|
|
@@ -28,4 +28,5 @@ export interface InternalLiveRegionRef {
|
|
|
28
28
|
}
|
|
29
29
|
declare const _default: React.ForwardRefExoticComponent<InternalLiveRegionProps & React.RefAttributes<InternalLiveRegionRef>>;
|
|
30
30
|
export default _default;
|
|
31
|
+
export declare function extractTextContent(node: HTMLElement): string;
|
|
31
32
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/live-region/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAItE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,UAAU,uBAAwB,SAAQ,0BAA0B,EAAE,eAAe;IACnF;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;;;;OAOG;IACH,UAAU,IAAI,IAAI,CAAC;CACpB;;AAED,wBAyEG"}
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/live-region/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAItE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,UAAU,uBAAwB,SAAQ,0BAA0B,EAAE,eAAe;IACnF;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,qBAAqB;IACpC;;;;;;;OAOG;IACH,UAAU,IAAI,IAAI,CAAC;CACpB;;AAED,wBAyEG;AAcH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAU5D"}
|
|
@@ -57,12 +57,25 @@ export default React.forwardRef(function InternalLiveRegion(_a, ref) {
|
|
|
57
57
|
}));
|
|
58
58
|
return (React.createElement(TagName, Object.assign({ ref: mergedRef }, baseProps, { className: clsx(styles.root, testUtilStyles.root, className), hidden: hidden }), children));
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
const processNode = (childNode) => {
|
|
61
|
+
if (childNode.nodeType === Node.TEXT_NODE) {
|
|
62
|
+
return childNode.textContent || '';
|
|
63
|
+
}
|
|
64
|
+
if (childNode.nodeType === Node.ELEMENT_NODE) {
|
|
65
|
+
return extractTextContent(childNode);
|
|
66
|
+
}
|
|
67
|
+
return '';
|
|
68
|
+
};
|
|
69
|
+
export function extractTextContent(node) {
|
|
70
|
+
var _a;
|
|
61
71
|
// We use the text content of the node as the announcement text.
|
|
62
72
|
// This only extracts text content from the node including all its children which is enough for now.
|
|
63
73
|
// To make it more powerful, it is possible to create a more sophisticated extractor with respect to
|
|
64
74
|
// ARIA properties to ignore aria-hidden nodes and read ARIA labels from the live content.
|
|
65
|
-
|
|
75
|
+
if (!node || !((_a = node === null || node === void 0 ? void 0 : node.childNodes) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
76
|
+
return '';
|
|
77
|
+
}
|
|
78
|
+
return Array.from(node.childNodes, processNode).join(' ').replace(/\s+/g, ' ').trim();
|
|
66
79
|
}
|
|
67
80
|
function getSourceContent(source) {
|
|
68
81
|
return source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/live-region/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AA8B1D,eAAe,KAAK,CAAC,UAAU,CAAC,SAAS,kBAAkB,CACzD,EAU0B,EAC1B,GAAqC;QAXrC,EACE,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,KAAK,EACd,OAAO,EAAE,OAAO,GAAG,KAAK,EACxB,K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EAAE;QACtC,OAAO,EAAE,CAAC;KACX;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AACxF,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAwE;IAChG,OAAO,MAAM;SACV,GAAG,CAAC,IAAI,CAAC,EAAE;QACV,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACrC,OAAO,IAAI,CAAC;SACb;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,OAAO,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACzC;IACH,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { LiveRegionController } from './controller';\nimport { LiveRegionProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface InternalLiveRegionProps extends InternalBaseComponentProps, LiveRegionProps {\n /**\n * The delay between each announcement from this live region. You should\n * leave this set to the default unless this live region is commonly\n * interrupted by other actions (like text entry in text filtering).\n */\n delay?: number;\n\n /**\n * Use a list of strings and/or refs to existing elements for building the\n * announcement text. If this property is set, `children` and `message` will\n * be ignored.\n */\n sources?: ReadonlyArray<string | React.RefObject<HTMLElement> | undefined>;\n}\n\nexport interface InternalLiveRegionRef {\n /**\n * Force the live region to announce the message, even if it's the same as\n * the previously announced message.\n *\n * This is useful when making status updates after a change (e.g. filtering)\n * where the new message might be the same as the old one, but the announcement\n * also serves to tell screen reader users that the action was performed.\n */\n reannounce(): void;\n}\n\nexport default React.forwardRef(function InternalLiveRegion(\n {\n assertive = false,\n hidden = false,\n tagName: TagName = 'div',\n delay,\n sources,\n children,\n __internalRootRef,\n className,\n ...restProps\n }: InternalLiveRegionProps,\n ref: React.Ref<InternalLiveRegionRef>\n) {\n const baseProps = getBaseProps(restProps);\n const childrenRef = useRef<HTMLSpanElement & HTMLDivElement>(null);\n const mergedRef = useMergeRefs(childrenRef, __internalRootRef);\n\n useEffect(() => {\n // We have to do this because `inert` isn't properly supported until\n // React 19 and this seems much more maintainable than version detection.\n // `inert` is better than `hidden` because it also blocks pointer and\n // focus events as well as hiding the contents from screen readers.\n // https://github.com/facebook/react/issues/17157\n if (childrenRef.current) {\n childrenRef.current.inert = hidden;\n }\n }, [hidden]);\n\n // Initialize the live region controller inside an effect. We have to do this\n // because the controller depends on DOM elements, which aren't available on the\n // server.\n const liveRegionControllerRef = useRef<LiveRegionController | undefined>();\n useEffect(() => {\n const liveRegionController = new LiveRegionController(assertive ? 'assertive' : 'polite');\n liveRegionControllerRef.current = liveRegionController;\n return () => {\n liveRegionController.destroy();\n liveRegionControllerRef.current = undefined;\n };\n }, [assertive]);\n\n const getContent = () => {\n if (sources) {\n return getSourceContent(sources);\n }\n if (childrenRef.current) {\n return extractTextContent(childrenRef.current);\n }\n };\n\n // Call the controller on every render. The controller will deduplicate the\n // message against the previous announcement internally.\n useEffect(() => {\n liveRegionControllerRef.current?.announce({ message: getContent(), delay });\n });\n\n useImperativeHandle(ref, () => ({\n reannounce() {\n liveRegionControllerRef.current?.announce({ message: getContent(), delay, forceReannounce: true });\n },\n }));\n\n return (\n <TagName\n ref={mergedRef}\n {...baseProps}\n className={clsx(styles.root, testUtilStyles.root, className)}\n hidden={hidden}\n >\n {children}\n </TagName>\n );\n});\n\nconst processNode = (childNode: Node): string => {\n if (childNode.nodeType === Node.TEXT_NODE) {\n return childNode.textContent || '';\n }\n\n if (childNode.nodeType === Node.ELEMENT_NODE) {\n return extractTextContent(childNode as HTMLElement);\n }\n\n return '';\n};\n\nexport function extractTextContent(node: HTMLElement): string {\n // We use the text content of the node as the announcement text.\n // This only extracts text content from the node including all its children which is enough for now.\n // To make it more powerful, it is possible to create a more sophisticated extractor with respect to\n // ARIA properties to ignore aria-hidden nodes and read ARIA labels from the live content.\n if (!node || !node?.childNodes?.length) {\n return '';\n }\n\n return Array.from(node.childNodes, processNode).join(' ').replace(/\\s+/g, ' ').trim();\n}\n\nfunction getSourceContent(source: ReadonlyArray<string | React.RefObject<HTMLElement> | undefined>): string {\n return source\n .map(item => {\n if (!item || typeof item === 'string') {\n return item;\n }\n if (item.current) {\n return extractTextContent(item.current);\n }\n })\n .filter(Boolean)\n .join(' ');\n}\n"]}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"top-navigation": "awsui_top-
|
|
5
|
-
"padding-box": "awsui_padding-
|
|
6
|
-
"medium": "
|
|
7
|
-
"narrow": "
|
|
8
|
-
"virtual": "
|
|
9
|
-
"hidden": "
|
|
10
|
-
"\t": "awsui_\
|
|
11
|
-
"identity": "
|
|
12
|
-
"identity-link": "awsui_identity-
|
|
13
|
-
"no-logo": "awsui_no-
|
|
14
|
-
"logo": "
|
|
15
|
-
"title": "
|
|
16
|
-
"inputs": "
|
|
17
|
-
"search": "
|
|
18
|
-
"search-expanded": "awsui_search-
|
|
19
|
-
"utilities": "
|
|
20
|
-
"utility-wrapper": "awsui_utility-
|
|
21
|
-
"utility-type-button-link": "awsui_utility-type-button-
|
|
22
|
-
"utility-type-menu-dropdown": "awsui_utility-type-menu-
|
|
23
|
-
"utility-type-button-primary-button": "awsui_utility-type-button-primary-
|
|
24
|
-
"utility-link-icon": "awsui_utility-link-
|
|
25
|
-
"utility-button-external-icon": "awsui_utility-button-external-
|
|
26
|
-
"offset-right-none": "awsui_offset-right-
|
|
27
|
-
"offset-right-l": "awsui_offset-right-
|
|
28
|
-
"offset-right-xxl": "awsui_offset-right-
|
|
29
|
-
"overflow-menu-drawer": "awsui_overflow-menu-
|
|
30
|
-
"overflow-menu": "awsui_overflow-
|
|
31
|
-
"overflow-menu-header": "awsui_overflow-menu-
|
|
32
|
-
"overflow-menu-header-text": "awsui_overflow-menu-header-
|
|
33
|
-
"overflow-menu-header-text--secondary": "awsui_overflow-menu-header-text--
|
|
34
|
-
"overflow-menu-header-text--title": "awsui_overflow-menu-header-text--
|
|
35
|
-
"overflow-menu-back-button": "awsui_overflow-menu-back-
|
|
36
|
-
"overflow-menu-dismiss-button": "awsui_overflow-menu-dismiss-
|
|
37
|
-
"overflow-menu-control": "awsui_overflow-menu-
|
|
38
|
-
"overflow-menu-list-item-utility": "awsui_overflow-menu-list-item-
|
|
39
|
-
"overflow-menu-control-link": "awsui_overflow-menu-control-
|
|
40
|
-
"overflow-menu-control-expandable-menu-trigger": "awsui_overflow-menu-control-expandable-menu-
|
|
41
|
-
"overflow-menu-list": "awsui_overflow-menu-
|
|
42
|
-
"overflow-menu-list-submenu": "awsui_overflow-menu-list-
|
|
43
|
-
"overflow-menu-list-item": "awsui_overflow-menu-list-
|
|
44
|
-
"overflow-menu-list-item-icon": "awsui_overflow-menu-list-item-
|
|
45
|
-
"overflow-menu-list-item-text": "awsui_overflow-menu-list-item-
|
|
46
|
-
"overflow-menu-list-item-submenu": "awsui_overflow-menu-list-item-
|
|
47
|
-
"overflow-menu-list-item-dropdown-menu": "awsui_overflow-menu-list-item-dropdown-
|
|
48
|
-
"overflow-menu-list-item-expandable": "awsui_overflow-menu-list-item-
|
|
49
|
-
"icon": "
|
|
50
|
-
"icon-open": "awsui_icon-
|
|
4
|
+
"top-navigation": "awsui_top-navigation_k5dlb_pyvh1_145",
|
|
5
|
+
"padding-box": "awsui_padding-box_k5dlb_pyvh1_178",
|
|
6
|
+
"medium": "awsui_medium_k5dlb_pyvh1_188",
|
|
7
|
+
"narrow": "awsui_narrow_k5dlb_pyvh1_188",
|
|
8
|
+
"virtual": "awsui_virtual_k5dlb_pyvh1_199",
|
|
9
|
+
"hidden": "awsui_hidden_k5dlb_pyvh1_203",
|
|
10
|
+
"\t": "awsui_\t_k5dlb_pyvh1_1",
|
|
11
|
+
"identity": "awsui_identity_k5dlb_pyvh1_215",
|
|
12
|
+
"identity-link": "awsui_identity-link_k5dlb_pyvh1_218",
|
|
13
|
+
"no-logo": "awsui_no-logo_k5dlb_pyvh1_238",
|
|
14
|
+
"logo": "awsui_logo_k5dlb_pyvh1_242",
|
|
15
|
+
"title": "awsui_title_k5dlb_pyvh1_254",
|
|
16
|
+
"inputs": "awsui_inputs_k5dlb_pyvh1_269",
|
|
17
|
+
"search": "awsui_search_k5dlb_pyvh1_277",
|
|
18
|
+
"search-expanded": "awsui_search-expanded_k5dlb_pyvh1_281",
|
|
19
|
+
"utilities": "awsui_utilities_k5dlb_pyvh1_285",
|
|
20
|
+
"utility-wrapper": "awsui_utility-wrapper_k5dlb_pyvh1_296",
|
|
21
|
+
"utility-type-button-link": "awsui_utility-type-button-link_k5dlb_pyvh1_317",
|
|
22
|
+
"utility-type-menu-dropdown": "awsui_utility-type-menu-dropdown_k5dlb_pyvh1_322",
|
|
23
|
+
"utility-type-button-primary-button": "awsui_utility-type-button-primary-button_k5dlb_pyvh1_331",
|
|
24
|
+
"utility-link-icon": "awsui_utility-link-icon_k5dlb_pyvh1_339",
|
|
25
|
+
"utility-button-external-icon": "awsui_utility-button-external-icon_k5dlb_pyvh1_343",
|
|
26
|
+
"offset-right-none": "awsui_offset-right-none_k5dlb_pyvh1_347",
|
|
27
|
+
"offset-right-l": "awsui_offset-right-l_k5dlb_pyvh1_351",
|
|
28
|
+
"offset-right-xxl": "awsui_offset-right-xxl_k5dlb_pyvh1_355",
|
|
29
|
+
"overflow-menu-drawer": "awsui_overflow-menu-drawer_k5dlb_pyvh1_360",
|
|
30
|
+
"overflow-menu": "awsui_overflow-menu_k5dlb_pyvh1_360",
|
|
31
|
+
"overflow-menu-header": "awsui_overflow-menu-header_k5dlb_pyvh1_401",
|
|
32
|
+
"overflow-menu-header-text": "awsui_overflow-menu-header-text_k5dlb_pyvh1_409",
|
|
33
|
+
"overflow-menu-header-text--secondary": "awsui_overflow-menu-header-text--secondary_k5dlb_pyvh1_421",
|
|
34
|
+
"overflow-menu-header-text--title": "awsui_overflow-menu-header-text--title_k5dlb_pyvh1_427",
|
|
35
|
+
"overflow-menu-back-button": "awsui_overflow-menu-back-button_k5dlb_pyvh1_431",
|
|
36
|
+
"overflow-menu-dismiss-button": "awsui_overflow-menu-dismiss-button_k5dlb_pyvh1_435",
|
|
37
|
+
"overflow-menu-control": "awsui_overflow-menu-control_k5dlb_pyvh1_439",
|
|
38
|
+
"overflow-menu-list-item-utility": "awsui_overflow-menu-list-item-utility_k5dlb_pyvh1_477",
|
|
39
|
+
"overflow-menu-control-link": "awsui_overflow-menu-control-link_k5dlb_pyvh1_485",
|
|
40
|
+
"overflow-menu-control-expandable-menu-trigger": "awsui_overflow-menu-control-expandable-menu-trigger_k5dlb_pyvh1_488",
|
|
41
|
+
"overflow-menu-list": "awsui_overflow-menu-list_k5dlb_pyvh1_477",
|
|
42
|
+
"overflow-menu-list-submenu": "awsui_overflow-menu-list-submenu_k5dlb_pyvh1_524",
|
|
43
|
+
"overflow-menu-list-item": "awsui_overflow-menu-list-item_k5dlb_pyvh1_477",
|
|
44
|
+
"overflow-menu-list-item-icon": "awsui_overflow-menu-list-item-icon_k5dlb_pyvh1_533",
|
|
45
|
+
"overflow-menu-list-item-text": "awsui_overflow-menu-list-item-text_k5dlb_pyvh1_536",
|
|
46
|
+
"overflow-menu-list-item-submenu": "awsui_overflow-menu-list-item-submenu_k5dlb_pyvh1_545",
|
|
47
|
+
"overflow-menu-list-item-dropdown-menu": "awsui_overflow-menu-list-item-dropdown-menu_k5dlb_pyvh1_551",
|
|
48
|
+
"overflow-menu-list-item-expandable": "awsui_overflow-menu-list-item-expandable_k5dlb_pyvh1_555",
|
|
49
|
+
"icon": "awsui_icon_k5dlb_pyvh1_560",
|
|
50
|
+
"icon-open": "awsui_icon-open_k5dlb_pyvh1_574"
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.awsui_top-
|
|
145
|
+
.awsui_top-navigation_k5dlb_pyvh1_145:not(#\9) {
|
|
146
146
|
border-collapse: separate;
|
|
147
147
|
border-spacing: 0;
|
|
148
148
|
box-sizing: border-box;
|
|
@@ -174,8 +174,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
174
174
|
-webkit-font-smoothing: auto;
|
|
175
175
|
-moz-osx-font-smoothing: auto;
|
|
176
176
|
background: var(--color-background-container-content-myy7cn, #ffffff);
|
|
177
|
+
border-block-end: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
|
|
177
178
|
}
|
|
178
|
-
.awsui_top-
|
|
179
|
+
.awsui_top-navigation_k5dlb_pyvh1_145 > .awsui_padding-box_k5dlb_pyvh1_178:not(#\9) {
|
|
179
180
|
display: flex;
|
|
180
181
|
flex-direction: row;
|
|
181
182
|
flex-wrap: nowrap;
|
|
@@ -185,22 +186,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
185
186
|
block-size: calc(var(--space-xxxl-vkrt7p, 40px) + var(--space-scaled-m-3uxq9h, 16px));
|
|
186
187
|
padding-inline-start: var(--space-xxl-thzxkv, 32px);
|
|
187
188
|
}
|
|
188
|
-
.awsui_top-
|
|
189
|
+
.awsui_top-navigation_k5dlb_pyvh1_145.awsui_medium_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178:not(#\9), .awsui_top-navigation_k5dlb_pyvh1_145.awsui_narrow_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178:not(#\9) {
|
|
189
190
|
padding-inline-start: var(--space-l-eenfqd, 20px);
|
|
190
191
|
}
|
|
191
|
-
.awsui_top-
|
|
192
|
+
.awsui_top-navigation_k5dlb_pyvh1_145.awsui_medium_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178:not(#\9) {
|
|
192
193
|
block-size: calc(var(--space-xxxl-vkrt7p, 40px) + var(--space-scaled-xs-t3am3w, 8px));
|
|
193
194
|
padding-inline-end: 0;
|
|
194
195
|
}
|
|
195
|
-
.awsui_top-
|
|
196
|
+
.awsui_top-navigation_k5dlb_pyvh1_145.awsui_narrow_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178:not(#\9) {
|
|
196
197
|
block-size: var(--space-xxxl-vkrt7p, 40px);
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
.
|
|
200
|
+
.awsui_virtual_k5dlb_pyvh1_199:not(#\9) {
|
|
200
201
|
inline-size: 9000px;
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
.
|
|
204
|
+
.awsui_hidden_k5dlb_pyvh1_203:not(#\9) {
|
|
204
205
|
position: absolute !important;
|
|
205
206
|
inset-block-start: -9999px !important;
|
|
206
207
|
inset-inline-start: -9999px !important;
|
|
@@ -208,23 +209,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
/* stylelint-disable-next-line selector-combinator-disallowed-list, selector-max-universal */
|
|
211
|
-
.
|
|
212
|
+
.awsui_hidden_k5dlb_pyvh1_203 *:not(#\9):not(#awsui_\9 _k5dlb_pyvh1_1) {
|
|
212
213
|
visibility: hidden;
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
.
|
|
216
|
+
.awsui_identity_k5dlb_pyvh1_215:not(#\9) {
|
|
216
217
|
min-inline-size: 0;
|
|
217
218
|
}
|
|
218
|
-
.
|
|
219
|
+
.awsui_identity_k5dlb_pyvh1_215 > .awsui_identity-link_k5dlb_pyvh1_218:not(#\9) {
|
|
219
220
|
display: flex;
|
|
220
221
|
align-items: center;
|
|
221
222
|
text-decoration: none;
|
|
222
223
|
color: var(--color-text-top-navigation-title-e4w0av, #16191f);
|
|
223
224
|
}
|
|
224
|
-
.
|
|
225
|
+
.awsui_identity_k5dlb_pyvh1_215 > .awsui_identity-link_k5dlb_pyvh1_218:not(#\9):hover {
|
|
225
226
|
color: var(--color-text-accent-b3retj, #0073bb);
|
|
226
227
|
}
|
|
227
|
-
body[data-awsui-focus-visible=true] .
|
|
228
|
+
body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_pyvh1_215 > .awsui_identity-link_k5dlb_pyvh1_218:not(#\9):focus {
|
|
228
229
|
outline: thin dotted;
|
|
229
230
|
outline: var(--border-link-focus-ring-outline-bptw2p, 5px auto Highlight);
|
|
230
231
|
outline-offset: 2px;
|
|
@@ -235,11 +236,11 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
235
236
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-vy2hlh, 2px);
|
|
236
237
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-yrkso1, 0px) var(--color-border-item-focused-q68bgg, #0073bb);
|
|
237
238
|
}
|
|
238
|
-
.
|
|
239
|
+
.awsui_identity_k5dlb_pyvh1_215.awsui_no-logo_k5dlb_pyvh1_238:not(#\9) {
|
|
239
240
|
min-inline-size: 100px;
|
|
240
241
|
}
|
|
241
242
|
|
|
242
|
-
.
|
|
243
|
+
.awsui_logo_k5dlb_pyvh1_242:not(#\9) {
|
|
243
244
|
display: block;
|
|
244
245
|
max-block-size: var(--space-xxl-thzxkv, 32px);
|
|
245
246
|
margin-inline-end: var(--space-s-vmutj3, 12px);
|
|
@@ -247,11 +248,11 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
247
248
|
flex-shrink: 0;
|
|
248
249
|
min-inline-size: 10px;
|
|
249
250
|
}
|
|
250
|
-
.
|
|
251
|
+
.awsui_logo_k5dlb_pyvh1_242.awsui_narrow_k5dlb_pyvh1_188:not(#\9) {
|
|
251
252
|
max-block-size: var(--space-xl-vss8pc, 24px);
|
|
252
253
|
}
|
|
253
254
|
|
|
254
|
-
.
|
|
255
|
+
.awsui_title_k5dlb_pyvh1_254:not(#\9) {
|
|
255
256
|
font-size: var(--font-size-heading-m-abxcoe, 18px);
|
|
256
257
|
line-height: var(--line-height-heading-m-v86qsm, 22px);
|
|
257
258
|
letter-spacing: var(--letter-spacing-heading-m-790tuq, normal);
|
|
@@ -262,11 +263,11 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
262
263
|
overflow: hidden;
|
|
263
264
|
text-overflow: ellipsis;
|
|
264
265
|
}
|
|
265
|
-
.awsui_no-
|
|
266
|
+
.awsui_no-logo_k5dlb_pyvh1_238 > .awsui_identity-link_k5dlb_pyvh1_218 > .awsui_title_k5dlb_pyvh1_254:not(#\9) {
|
|
266
267
|
font-weight: 700;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
.
|
|
270
|
+
.awsui_inputs_k5dlb_pyvh1_269:not(#\9) {
|
|
270
271
|
display: flex;
|
|
271
272
|
flex: 1;
|
|
272
273
|
padding-block: 0;
|
|
@@ -274,26 +275,26 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
274
275
|
justify-content: center;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
.
|
|
278
|
+
.awsui_search_k5dlb_pyvh1_277:not(#\9) {
|
|
278
279
|
inline-size: 100%;
|
|
279
280
|
max-inline-size: 340px;
|
|
280
281
|
}
|
|
281
|
-
.awsui_search-
|
|
282
|
+
.awsui_search-expanded_k5dlb_pyvh1_281:not(#\9) {
|
|
282
283
|
max-inline-size: none;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
|
-
.
|
|
286
|
+
.awsui_utilities_k5dlb_pyvh1_285:not(#\9) {
|
|
286
287
|
display: flex;
|
|
287
288
|
flex-shrink: 0;
|
|
288
289
|
flex-direction: row;
|
|
289
290
|
align-items: stretch;
|
|
290
291
|
block-size: 100%;
|
|
291
292
|
}
|
|
292
|
-
.
|
|
293
|
+
.awsui_medium_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178 > .awsui_utilities_k5dlb_pyvh1_285:not(#\9), .awsui_narrow_k5dlb_pyvh1_188 > .awsui_padding-box_k5dlb_pyvh1_178 > .awsui_utilities_k5dlb_pyvh1_285:not(#\9) {
|
|
293
294
|
padding-inline-start: 0;
|
|
294
295
|
}
|
|
295
296
|
|
|
296
|
-
.awsui_utility-
|
|
297
|
+
.awsui_utility-wrapper_k5dlb_pyvh1_296:not(#\9) {
|
|
297
298
|
display: flex;
|
|
298
299
|
position: relative;
|
|
299
300
|
flex-shrink: 0;
|
|
@@ -301,7 +302,7 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
301
302
|
padding-block: 0;
|
|
302
303
|
padding-inline: var(--space-m-u91ipm, 16px);
|
|
303
304
|
}
|
|
304
|
-
.awsui_utility-
|
|
305
|
+
.awsui_utility-wrapper_k5dlb_pyvh1_296:not(#\9)::after {
|
|
305
306
|
display: block;
|
|
306
307
|
position: absolute;
|
|
307
308
|
content: "";
|
|
@@ -310,61 +311,61 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
310
311
|
inset-block: var(--space-s-vmutj3, 12px);
|
|
311
312
|
background: var(--color-border-divider-default-u5ytia, #eaeded);
|
|
312
313
|
}
|
|
313
|
-
.awsui_utility-
|
|
314
|
+
.awsui_utility-wrapper_k5dlb_pyvh1_296:not(#\9):last-of-type::after {
|
|
314
315
|
display: none;
|
|
315
316
|
}
|
|
316
317
|
|
|
317
|
-
.awsui_utility-type-button-
|
|
318
|
+
.awsui_utility-type-button-link_k5dlb_pyvh1_317:not(#\9) {
|
|
318
319
|
padding-block: 0;
|
|
319
320
|
padding-inline: var(--space-l-eenfqd, 20px);
|
|
320
321
|
}
|
|
321
322
|
|
|
322
|
-
.awsui_utility-type-menu-
|
|
323
|
+
.awsui_utility-type-menu-dropdown_k5dlb_pyvh1_322:not(#\9) {
|
|
323
324
|
padding-block: 0;
|
|
324
325
|
padding-inline: var(--space-s-vmutj3, 12px);
|
|
325
326
|
align-items: stretch;
|
|
326
327
|
}
|
|
327
|
-
.awsui_utility-type-menu-
|
|
328
|
+
.awsui_utility-type-menu-dropdown_k5dlb_pyvh1_322:not(#\9):not(.awsui_narrow_k5dlb_pyvh1_188):last-of-type, .awsui_utility-type-menu-dropdown_k5dlb_pyvh1_322:not(#\9):not(.awsui_medium_k5dlb_pyvh1_188):last-of-type {
|
|
328
329
|
padding-inline-end: 0;
|
|
329
330
|
}
|
|
330
331
|
|
|
331
|
-
.awsui_utility-type-button-primary-
|
|
332
|
+
.awsui_utility-type-button-primary-button_k5dlb_pyvh1_331:not(#\9) {
|
|
332
333
|
inset-inline-start: -1px;
|
|
333
334
|
border-inline-start: 1px solid var(--color-background-container-content-myy7cn, #ffffff);
|
|
334
335
|
}
|
|
335
|
-
.awsui_utility-type-button-primary-
|
|
336
|
+
.awsui_utility-type-button-primary-button_k5dlb_pyvh1_331:not(#\9)::after {
|
|
336
337
|
display: none;
|
|
337
338
|
}
|
|
338
339
|
|
|
339
|
-
.awsui_utility-link-
|
|
340
|
+
.awsui_utility-link-icon_k5dlb_pyvh1_339:not(#\9) {
|
|
340
341
|
margin-inline-start: var(--space-xxs-y2432o, 4px);
|
|
341
342
|
}
|
|
342
343
|
|
|
343
|
-
.awsui_utility-button-external-
|
|
344
|
+
.awsui_utility-button-external-icon_k5dlb_pyvh1_343:not(#\9) {
|
|
344
345
|
display: inline-block;
|
|
345
346
|
}
|
|
346
347
|
|
|
347
|
-
.awsui_offset-right-
|
|
348
|
+
.awsui_offset-right-none_k5dlb_pyvh1_347:not(#\9) {
|
|
348
349
|
margin-inline-end: 0;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
|
-
.awsui_offset-right-
|
|
352
|
+
.awsui_offset-right-l_k5dlb_pyvh1_351:not(#\9) {
|
|
352
353
|
margin-inline-end: var(--space-xxs-y2432o, 4px);
|
|
353
354
|
}
|
|
354
355
|
|
|
355
|
-
.awsui_offset-right-
|
|
356
|
+
.awsui_offset-right-xxl_k5dlb_pyvh1_355:not(#\9) {
|
|
356
357
|
margin-inline-end: var(--space-m-u91ipm, 16px);
|
|
357
358
|
}
|
|
358
359
|
|
|
359
360
|
/* Overflow Menu */
|
|
360
|
-
.awsui_overflow-menu-
|
|
361
|
+
.awsui_overflow-menu-drawer_k5dlb_pyvh1_360:not(#\9) {
|
|
361
362
|
position: fixed;
|
|
362
363
|
block-size: 100%;
|
|
363
364
|
inline-size: 100%;
|
|
364
365
|
z-index: 1001;
|
|
365
366
|
}
|
|
366
367
|
|
|
367
|
-
.awsui_overflow-
|
|
368
|
+
.awsui_overflow-menu_k5dlb_pyvh1_360:not(#\9) {
|
|
368
369
|
border-collapse: separate;
|
|
369
370
|
border-spacing: 0;
|
|
370
371
|
box-sizing: border-box;
|
|
@@ -399,7 +400,7 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
399
400
|
block-size: 100%;
|
|
400
401
|
}
|
|
401
402
|
|
|
402
|
-
.awsui_overflow-menu-
|
|
403
|
+
.awsui_overflow-menu-header_k5dlb_pyvh1_401:not(#\9) {
|
|
403
404
|
display: flex;
|
|
404
405
|
align-items: center;
|
|
405
406
|
min-block-size: var(--font-panel-header-line-height-av95ns, 22px);
|
|
@@ -407,7 +408,7 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
407
408
|
padding-inline: var(--space-scaled-m-3uxq9h, 16px);
|
|
408
409
|
border-block-end: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
|
|
409
410
|
}
|
|
410
|
-
.awsui_overflow-menu-header-
|
|
411
|
+
.awsui_overflow-menu-header-text_k5dlb_pyvh1_409:not(#\9) {
|
|
411
412
|
font-size: var(--font-panel-header-size-197c0y, 18px);
|
|
412
413
|
line-height: var(--font-panel-header-line-height-av95ns, 22px);
|
|
413
414
|
font-weight: var(--font-weight-heading-l-ypbqtk, 700);
|
|
@@ -419,25 +420,25 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
419
420
|
margin-inline: 0;
|
|
420
421
|
text-align: center;
|
|
421
422
|
}
|
|
422
|
-
.awsui_overflow-menu-header-text--
|
|
423
|
+
.awsui_overflow-menu-header-text--secondary_k5dlb_pyvh1_421:not(#\9) {
|
|
423
424
|
font-size: var(--font-header-h2-description-size-jr9dz3, 12px);
|
|
424
425
|
line-height: var(--font-header-h2-description-line-height-mth7kd, 16px);
|
|
425
426
|
font-weight: 400;
|
|
426
427
|
}
|
|
427
428
|
|
|
428
|
-
.awsui_overflow-menu-header-text--
|
|
429
|
+
.awsui_overflow-menu-header-text--title_k5dlb_pyvh1_427:not(#\9) {
|
|
429
430
|
/* used in test-utils */
|
|
430
431
|
}
|
|
431
432
|
|
|
432
|
-
.awsui_overflow-menu-back-
|
|
433
|
+
.awsui_overflow-menu-back-button_k5dlb_pyvh1_431:not(#\9) {
|
|
433
434
|
/* used in test-utils */
|
|
434
435
|
}
|
|
435
436
|
|
|
436
|
-
.awsui_overflow-menu-dismiss-
|
|
437
|
+
.awsui_overflow-menu-dismiss-button_k5dlb_pyvh1_435:not(#\9) {
|
|
437
438
|
/* used in test-utils */
|
|
438
439
|
}
|
|
439
440
|
|
|
440
|
-
.awsui_overflow-menu-
|
|
441
|
+
.awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9) {
|
|
441
442
|
border-collapse: separate;
|
|
442
443
|
border-spacing: 0;
|
|
443
444
|
box-sizing: border-box;
|
|
@@ -476,32 +477,32 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_xlf2u_214 > .awsui_ide
|
|
|
476
477
|
border-block: none;
|
|
477
478
|
border-inline: none;
|
|
478
479
|
}
|
|
479
|
-
.awsui_overflow-menu-list-item-
|
|
480
|
+
.awsui_overflow-menu-list-item-utility_k5dlb_pyvh1_477 > .awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9) {
|
|
480
481
|
padding-block: var(--space-scaled-m-3uxq9h, 16px);
|
|
481
482
|
padding-inline: var(--space-scaled-m-3uxq9h, 16px);
|
|
482
483
|
}
|
|
483
|
-
.awsui_overflow-menu-
|
|
484
|
+
.awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9):hover {
|
|
484
485
|
color: var(--color-text-accent-b3retj, #0073bb);
|
|
485
486
|
cursor: pointer;
|
|
486
487
|
}
|
|
487
|
-
.awsui_overflow-menu-control-
|
|
488
|
+
.awsui_overflow-menu-control-link_k5dlb_pyvh1_485:not(#\9) {
|
|
488
489
|
text-decoration: none;
|
|
489
490
|
}
|
|
490
|
-
.awsui_overflow-menu-control-expandable-menu-
|
|
491
|
+
.awsui_overflow-menu-control-expandable-menu-trigger_k5dlb_pyvh1_488:not(#\9) {
|
|
491
492
|
color: var(--color-text-dropdown-group-label-h1uzwg, #545b64);
|
|
492
493
|
font-weight: bold;
|
|
493
494
|
}
|
|
494
|
-
.awsui_overflow-menu-control-expandable-menu-
|
|
495
|
+
.awsui_overflow-menu-control-expandable-menu-trigger_k5dlb_pyvh1_488:not(#\9):hover {
|
|
495
496
|
color: var(--color-text-accent-b3retj, #0073bb);
|
|
496
497
|
}
|
|
497
|
-
body[data-awsui-focus-visible=true] .awsui_overflow-menu-
|
|
498
|
+
body[data-awsui-focus-visible=true] .awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9):focus {
|
|
498
499
|
position: relative;
|
|
499
500
|
}
|
|
500
|
-
body[data-awsui-focus-visible=true] .awsui_overflow-menu-
|
|
501
|
+
body[data-awsui-focus-visible=true] .awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9):focus {
|
|
501
502
|
outline: 2px dotted transparent;
|
|
502
503
|
outline-offset: calc(var(--space-button-focus-outline-gutter-90p0io, 3px) - 1px);
|
|
503
504
|
}
|
|
504
|
-
body[data-awsui-focus-visible=true] .awsui_overflow-menu-
|
|
505
|
+
body[data-awsui-focus-visible=true] .awsui_overflow-menu-control_k5dlb_pyvh1_439:not(#\9):focus::before {
|
|
505
506
|
content: " ";
|
|
506
507
|
display: block;
|
|
507
508
|
position: absolute;
|
|
@@ -516,63 +517,63 @@ body[data-awsui-focus-visible=true] .awsui_overflow-menu-control_k5dlb_xlf2u_438
|
|
|
516
517
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-q68bgg, #0073bb);
|
|
517
518
|
}
|
|
518
519
|
|
|
519
|
-
.awsui_overflow-menu-
|
|
520
|
+
.awsui_overflow-menu-list_k5dlb_pyvh1_477:not(#\9) {
|
|
520
521
|
list-style: none;
|
|
521
522
|
margin-block: 0;
|
|
522
523
|
margin-inline: 0;
|
|
523
524
|
padding-block: 0;
|
|
524
525
|
padding-inline: 0;
|
|
525
526
|
}
|
|
526
|
-
.awsui_overflow-menu-list-
|
|
527
|
+
.awsui_overflow-menu-list-submenu_k5dlb_pyvh1_524:not(#\9) {
|
|
527
528
|
margin-block: var(--space-scaled-xxs-krq5fq, 4px);
|
|
528
529
|
margin-inline: 0;
|
|
529
530
|
}
|
|
530
531
|
|
|
531
|
-
.awsui_overflow-menu-list-
|
|
532
|
+
.awsui_overflow-menu-list-item_k5dlb_pyvh1_477:not(#\9) {
|
|
532
533
|
box-sizing: border-box;
|
|
533
534
|
letter-spacing: var(--font-button-letter-spacing-47n0nr, 0.25px);
|
|
534
535
|
}
|
|
535
|
-
.awsui_overflow-menu-list-item-
|
|
536
|
+
.awsui_overflow-menu-list-item-icon_k5dlb_pyvh1_533:not(#\9) {
|
|
536
537
|
margin-inline-end: var(--space-xxs-y2432o, 4px);
|
|
537
538
|
}
|
|
538
|
-
.awsui_overflow-menu-list-item-
|
|
539
|
+
.awsui_overflow-menu-list-item-text_k5dlb_pyvh1_536:not(#\9) {
|
|
539
540
|
flex: 1;
|
|
540
541
|
}
|
|
541
|
-
.awsui_overflow-menu-list-item-
|
|
542
|
+
.awsui_overflow-menu-list-item-utility_k5dlb_pyvh1_477:not(#\9) {
|
|
542
543
|
font-weight: var(--font-weight-button-rw26ot, 700);
|
|
543
544
|
-webkit-font-smoothing: var(--font-smoothing-webkit-trr1e8, auto);
|
|
544
545
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hyxkxc, auto);
|
|
545
546
|
border-block-end: var(--border-divider-section-width-iueskx, 1px) solid var(--color-border-divider-default-u5ytia, #eaeded);
|
|
546
547
|
}
|
|
547
|
-
.awsui_overflow-menu-list-item-
|
|
548
|
+
.awsui_overflow-menu-list-item-submenu_k5dlb_pyvh1_545:not(#\9) {
|
|
548
549
|
border-block-start: var(--border-divider-section-width-iueskx, 1px) solid transparent;
|
|
549
550
|
border-block-end: var(--border-divider-section-width-iueskx, 1px) solid transparent;
|
|
550
551
|
padding-block: var(--space-scaled-xxs-krq5fq, 4px);
|
|
551
552
|
padding-inline: var(--space-scaled-l-7e51pg, 20px);
|
|
552
553
|
}
|
|
553
|
-
.awsui_overflow-menu-list-item-dropdown-
|
|
554
|
+
.awsui_overflow-menu-list-item-dropdown-menu_k5dlb_pyvh1_551:not(#\9) {
|
|
554
555
|
padding-block: var(--space-scaled-xxs-krq5fq, 4px);
|
|
555
556
|
padding-inline: var(--space-scaled-s-8j7izy, 12px);
|
|
556
557
|
}
|
|
557
|
-
.awsui_overflow-menu-list-item-
|
|
558
|
+
.awsui_overflow-menu-list-item-expandable_k5dlb_pyvh1_555:not(#\9) {
|
|
558
559
|
border-block-start-color: var(--color-border-divider-default-u5ytia, #eaeded);
|
|
559
560
|
border-block-end-color: var(--color-border-divider-default-u5ytia, #eaeded);
|
|
560
561
|
}
|
|
561
562
|
|
|
562
|
-
.
|
|
563
|
+
.awsui_icon_k5dlb_pyvh1_560:not(#\9) {
|
|
563
564
|
transform: rotate(0deg);
|
|
564
565
|
transition: transform var(--motion-duration-rotate-180-llqolb, 135ms) var(--motion-easing-rotate-180-wt4cje, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
565
566
|
}
|
|
566
567
|
@media (prefers-reduced-motion: reduce) {
|
|
567
|
-
.
|
|
568
|
+
.awsui_icon_k5dlb_pyvh1_560:not(#\9) {
|
|
568
569
|
animation: none;
|
|
569
570
|
transition: none;
|
|
570
571
|
}
|
|
571
572
|
}
|
|
572
|
-
.awsui-motion-disabled .
|
|
573
|
+
.awsui-motion-disabled .awsui_icon_k5dlb_pyvh1_560:not(#\9), .awsui-mode-entering .awsui_icon_k5dlb_pyvh1_560:not(#\9) {
|
|
573
574
|
animation: none;
|
|
574
575
|
transition: none;
|
|
575
576
|
}
|
|
576
|
-
.awsui_icon-
|
|
577
|
+
.awsui_icon-open_k5dlb_pyvh1_574:not(#\9) {
|
|
577
578
|
transform: rotate(-180deg);
|
|
578
579
|
}
|
|
@@ -2,52 +2,52 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"top-navigation": "awsui_top-
|
|
6
|
-
"padding-box": "awsui_padding-
|
|
7
|
-
"medium": "
|
|
8
|
-
"narrow": "
|
|
9
|
-
"virtual": "
|
|
10
|
-
"hidden": "
|
|
11
|
-
"\t": "awsui_\
|
|
12
|
-
"identity": "
|
|
13
|
-
"identity-link": "awsui_identity-
|
|
14
|
-
"no-logo": "awsui_no-
|
|
15
|
-
"logo": "
|
|
16
|
-
"title": "
|
|
17
|
-
"inputs": "
|
|
18
|
-
"search": "
|
|
19
|
-
"search-expanded": "awsui_search-
|
|
20
|
-
"utilities": "
|
|
21
|
-
"utility-wrapper": "awsui_utility-
|
|
22
|
-
"utility-type-button-link": "awsui_utility-type-button-
|
|
23
|
-
"utility-type-menu-dropdown": "awsui_utility-type-menu-
|
|
24
|
-
"utility-type-button-primary-button": "awsui_utility-type-button-primary-
|
|
25
|
-
"utility-link-icon": "awsui_utility-link-
|
|
26
|
-
"utility-button-external-icon": "awsui_utility-button-external-
|
|
27
|
-
"offset-right-none": "awsui_offset-right-
|
|
28
|
-
"offset-right-l": "awsui_offset-right-
|
|
29
|
-
"offset-right-xxl": "awsui_offset-right-
|
|
30
|
-
"overflow-menu-drawer": "awsui_overflow-menu-
|
|
31
|
-
"overflow-menu": "awsui_overflow-
|
|
32
|
-
"overflow-menu-header": "awsui_overflow-menu-
|
|
33
|
-
"overflow-menu-header-text": "awsui_overflow-menu-header-
|
|
34
|
-
"overflow-menu-header-text--secondary": "awsui_overflow-menu-header-text--
|
|
35
|
-
"overflow-menu-header-text--title": "awsui_overflow-menu-header-text--
|
|
36
|
-
"overflow-menu-back-button": "awsui_overflow-menu-back-
|
|
37
|
-
"overflow-menu-dismiss-button": "awsui_overflow-menu-dismiss-
|
|
38
|
-
"overflow-menu-control": "awsui_overflow-menu-
|
|
39
|
-
"overflow-menu-list-item-utility": "awsui_overflow-menu-list-item-
|
|
40
|
-
"overflow-menu-control-link": "awsui_overflow-menu-control-
|
|
41
|
-
"overflow-menu-control-expandable-menu-trigger": "awsui_overflow-menu-control-expandable-menu-
|
|
42
|
-
"overflow-menu-list": "awsui_overflow-menu-
|
|
43
|
-
"overflow-menu-list-submenu": "awsui_overflow-menu-list-
|
|
44
|
-
"overflow-menu-list-item": "awsui_overflow-menu-list-
|
|
45
|
-
"overflow-menu-list-item-icon": "awsui_overflow-menu-list-item-
|
|
46
|
-
"overflow-menu-list-item-text": "awsui_overflow-menu-list-item-
|
|
47
|
-
"overflow-menu-list-item-submenu": "awsui_overflow-menu-list-item-
|
|
48
|
-
"overflow-menu-list-item-dropdown-menu": "awsui_overflow-menu-list-item-dropdown-
|
|
49
|
-
"overflow-menu-list-item-expandable": "awsui_overflow-menu-list-item-
|
|
50
|
-
"icon": "
|
|
51
|
-
"icon-open": "awsui_icon-
|
|
5
|
+
"top-navigation": "awsui_top-navigation_k5dlb_pyvh1_145",
|
|
6
|
+
"padding-box": "awsui_padding-box_k5dlb_pyvh1_178",
|
|
7
|
+
"medium": "awsui_medium_k5dlb_pyvh1_188",
|
|
8
|
+
"narrow": "awsui_narrow_k5dlb_pyvh1_188",
|
|
9
|
+
"virtual": "awsui_virtual_k5dlb_pyvh1_199",
|
|
10
|
+
"hidden": "awsui_hidden_k5dlb_pyvh1_203",
|
|
11
|
+
"\t": "awsui_\t_k5dlb_pyvh1_1",
|
|
12
|
+
"identity": "awsui_identity_k5dlb_pyvh1_215",
|
|
13
|
+
"identity-link": "awsui_identity-link_k5dlb_pyvh1_218",
|
|
14
|
+
"no-logo": "awsui_no-logo_k5dlb_pyvh1_238",
|
|
15
|
+
"logo": "awsui_logo_k5dlb_pyvh1_242",
|
|
16
|
+
"title": "awsui_title_k5dlb_pyvh1_254",
|
|
17
|
+
"inputs": "awsui_inputs_k5dlb_pyvh1_269",
|
|
18
|
+
"search": "awsui_search_k5dlb_pyvh1_277",
|
|
19
|
+
"search-expanded": "awsui_search-expanded_k5dlb_pyvh1_281",
|
|
20
|
+
"utilities": "awsui_utilities_k5dlb_pyvh1_285",
|
|
21
|
+
"utility-wrapper": "awsui_utility-wrapper_k5dlb_pyvh1_296",
|
|
22
|
+
"utility-type-button-link": "awsui_utility-type-button-link_k5dlb_pyvh1_317",
|
|
23
|
+
"utility-type-menu-dropdown": "awsui_utility-type-menu-dropdown_k5dlb_pyvh1_322",
|
|
24
|
+
"utility-type-button-primary-button": "awsui_utility-type-button-primary-button_k5dlb_pyvh1_331",
|
|
25
|
+
"utility-link-icon": "awsui_utility-link-icon_k5dlb_pyvh1_339",
|
|
26
|
+
"utility-button-external-icon": "awsui_utility-button-external-icon_k5dlb_pyvh1_343",
|
|
27
|
+
"offset-right-none": "awsui_offset-right-none_k5dlb_pyvh1_347",
|
|
28
|
+
"offset-right-l": "awsui_offset-right-l_k5dlb_pyvh1_351",
|
|
29
|
+
"offset-right-xxl": "awsui_offset-right-xxl_k5dlb_pyvh1_355",
|
|
30
|
+
"overflow-menu-drawer": "awsui_overflow-menu-drawer_k5dlb_pyvh1_360",
|
|
31
|
+
"overflow-menu": "awsui_overflow-menu_k5dlb_pyvh1_360",
|
|
32
|
+
"overflow-menu-header": "awsui_overflow-menu-header_k5dlb_pyvh1_401",
|
|
33
|
+
"overflow-menu-header-text": "awsui_overflow-menu-header-text_k5dlb_pyvh1_409",
|
|
34
|
+
"overflow-menu-header-text--secondary": "awsui_overflow-menu-header-text--secondary_k5dlb_pyvh1_421",
|
|
35
|
+
"overflow-menu-header-text--title": "awsui_overflow-menu-header-text--title_k5dlb_pyvh1_427",
|
|
36
|
+
"overflow-menu-back-button": "awsui_overflow-menu-back-button_k5dlb_pyvh1_431",
|
|
37
|
+
"overflow-menu-dismiss-button": "awsui_overflow-menu-dismiss-button_k5dlb_pyvh1_435",
|
|
38
|
+
"overflow-menu-control": "awsui_overflow-menu-control_k5dlb_pyvh1_439",
|
|
39
|
+
"overflow-menu-list-item-utility": "awsui_overflow-menu-list-item-utility_k5dlb_pyvh1_477",
|
|
40
|
+
"overflow-menu-control-link": "awsui_overflow-menu-control-link_k5dlb_pyvh1_485",
|
|
41
|
+
"overflow-menu-control-expandable-menu-trigger": "awsui_overflow-menu-control-expandable-menu-trigger_k5dlb_pyvh1_488",
|
|
42
|
+
"overflow-menu-list": "awsui_overflow-menu-list_k5dlb_pyvh1_477",
|
|
43
|
+
"overflow-menu-list-submenu": "awsui_overflow-menu-list-submenu_k5dlb_pyvh1_524",
|
|
44
|
+
"overflow-menu-list-item": "awsui_overflow-menu-list-item_k5dlb_pyvh1_477",
|
|
45
|
+
"overflow-menu-list-item-icon": "awsui_overflow-menu-list-item-icon_k5dlb_pyvh1_533",
|
|
46
|
+
"overflow-menu-list-item-text": "awsui_overflow-menu-list-item-text_k5dlb_pyvh1_536",
|
|
47
|
+
"overflow-menu-list-item-submenu": "awsui_overflow-menu-list-item-submenu_k5dlb_pyvh1_545",
|
|
48
|
+
"overflow-menu-list-item-dropdown-menu": "awsui_overflow-menu-list-item-dropdown-menu_k5dlb_pyvh1_551",
|
|
49
|
+
"overflow-menu-list-item-expandable": "awsui_overflow-menu-list-item-expandable_k5dlb_pyvh1_555",
|
|
50
|
+
"icon": "awsui_icon_k5dlb_pyvh1_560",
|
|
51
|
+
"icon-open": "awsui_icon-open_k5dlb_pyvh1_574"
|
|
52
52
|
};
|
|
53
53
|
|