@cloudscape-design/components 3.0.217 → 3.0.219
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/internal/components/dropdown/index.d.ts.map +1 -1
- package/internal/components/dropdown/index.js +1 -2
- package/internal/components/dropdown/index.js.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
- package/internal/components/options-list/utils/use-keyboard.js +1 -0
- package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +64 -63
- package/popover/styles.selectors.js +50 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiG7C,QAAA,MAAM,QAAQ,6QAsBX,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAiG7C,QAAA,MAAM,QAAQ,6QAsBX,aAAa,gBA6Qf,CAAC;AAMF,eAAe,QAAQ,CAAC"}
|
|
@@ -193,8 +193,7 @@ var Dropdown = function (_a) {
|
|
|
193
193
|
}
|
|
194
194
|
var clickListener = function (e) {
|
|
195
195
|
var _a, _b;
|
|
196
|
-
|
|
197
|
-
if (!((_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(target)) && !((_b = triggerRef.current) === null || _b === void 0 ? void 0 : _b.contains(target))) {
|
|
196
|
+
if (!((_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) && !((_b = triggerRef.current) === null || _b === void 0 ? void 0 : _b.contains(e.target))) {
|
|
198
197
|
fireNonCancelableEvent(onDropdownClose);
|
|
199
198
|
}
|
|
200
199
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAA8C,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvG,OAAO,EAAE,UAAU,EAAoB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAgC,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAS7E,IAAM,iBAAiB,GAAG,UAAC,EAAwE;QAAtE,QAAQ,cAAA,EAAE,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK,KAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA;IACvE,IAAI,gBAAgB,EAAE;QACpB,IAAI,IAAI,EAAE;YACR,OAAO,YAAY,CAAC,6BAAK,EAAE,EAAE,EAAE,IAAG,QAAQ,CAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;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,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UACzB,QAAqD,IACZ,OAAC,QAAqC,CAAC,MAAM,KAAK,SAAS,EAA3D,CAA2D,CAAC;AAEvG,eAAe,QAAQ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport styles from './styles.css.js';\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport { fireNonCancelableEvent } from '../../events';\nimport { DropdownProps } from './interfaces';\nimport { DropdownPosition, InteriorDropdownPosition, calculatePosition } from './dropdown-fit-handler';\nimport { Transition, TransitionStatus } from '../transition';\nimport { useVisualRefresh } from '../../hooks/use-visual-mode';\nimport { usePortalModeClasses } from '../../hooks/use-portal-mode-classes';\nimport { DropdownContextProvider, DropdownContextProviderProps } from './context';\nimport { useMobile } from '../../hooks/use-mobile';\nimport TabTrap from '../tab-trap/index.js';\nimport { getFirstFocusable, getLastFocusable } from '../focus-lock/utils.js';\n\ninterface DropdownContainerProps {\n children?: React.ReactNode;\n renderWithPortal?: boolean;\n id?: string;\n open?: boolean;\n}\n\nconst DropdownContainer = ({ children, renderWithPortal = false, id, open }: DropdownContainerProps) => {\n if (renderWithPortal) {\n if (open) {\n return createPortal(<div id={id}>{children}</div>, document.body);\n } else {\n return null;\n }\n } else {\n return <>{children}</>;\n }\n};\n\ninterface TransitionContentProps {\n state: TransitionStatus;\n transitionRef: React.MutableRefObject<any>;\n dropdownClasses: string;\n stretchWidth: boolean;\n interior: boolean;\n isRefresh: boolean;\n dropdownRef: React.RefObject<HTMLDivElement>;\n verticalContainerRef: React.RefObject<HTMLDivElement>;\n expandToViewport?: boolean;\n header?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n position?: DropdownContextProviderProps['position'];\n open?: boolean;\n onMouseDown?: React.MouseEventHandler<Element>;\n}\n\nconst TransitionContent = ({\n state,\n transitionRef,\n dropdownClasses,\n stretchWidth,\n interior,\n isRefresh,\n dropdownRef,\n verticalContainerRef,\n expandToViewport,\n header,\n children,\n footer,\n position,\n open,\n onMouseDown,\n}: TransitionContentProps) => {\n const contentRef = useMergeRefs(dropdownRef, transitionRef);\n return (\n <div\n className={clsx(styles.dropdown, dropdownClasses, {\n [styles.open]: open,\n [styles['with-limited-width']]: !stretchWidth,\n [styles['hide-upper-border']]: stretchWidth,\n [styles.interior]: interior,\n [styles['is-empty']]: !header && !children,\n [styles.refresh]: isRefresh,\n [styles['use-portal']]: expandToViewport && !interior,\n })}\n ref={contentRef}\n data-open={open}\n data-animating={state !== 'exited'}\n aria-hidden={!open}\n onMouseDown={onMouseDown}\n >\n <div className={clsx(styles['dropdown-content-wrapper'], isRefresh && styles.refresh)}>\n <div className={styles['ie11-wrapper']}>\n <div ref={verticalContainerRef} className={styles['dropdown-content']}>\n <DropdownContextProvider position={position}>\n {header}\n {children}\n {footer}\n </DropdownContextProvider>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nconst Dropdown = ({\n children,\n trigger,\n open,\n onDropdownClose,\n onMouseDown,\n header,\n footer,\n dropdownId,\n stretchTriggerHeight = false,\n stretchWidth = true,\n stretchHeight = false,\n stretchToTriggerWidth = true,\n expandToViewport = false,\n preferCenter = false,\n interior = false,\n minWidth,\n scrollable = true,\n loopFocus = expandToViewport,\n onFocus,\n onBlur,\n contentKey,\n}: DropdownProps) => {\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const triggerRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const dropdownContainerRef = useRef<HTMLDivElement | null>(null);\n // This container is only needed to apply max-height to. We can't move max-height to it's parent\n // because of an IE11 issue with flexbox. https://github.com/philipwalton/flexbugs/issues/216\n const verticalContainerRef = useRef<HTMLDivElement>(null);\n // To keep track of the initial position (drop up/down) which is kept the same during fixed repositioning\n const fixedPosition = useRef<DropdownPosition | null>(null);\n\n const isRefresh = useVisualRefresh();\n\n const dropdownClasses = usePortalModeClasses(triggerRef);\n const [position, setPosition] = useState<DropdownContextProviderProps['position']>('bottom-right');\n\n const isMobile = useMobile();\n\n const setDropdownPosition = (\n position: DropdownPosition | InteriorDropdownPosition,\n triggerBox: DOMRect,\n target: HTMLDivElement,\n verticalContainer: HTMLDivElement\n ) => {\n const entireWidth = !interior && stretchWidth;\n if (!stretchWidth) {\n // 1px offset for dropdowns where the dropdown itself needs a border, rather than on the items\n verticalContainer.style.maxHeight = `${parseInt(position.height) + 1}px`;\n } else {\n verticalContainer.style.maxHeight = position.height;\n }\n\n if (entireWidth && !expandToViewport) {\n if (stretchToTriggerWidth) {\n target.classList.add(styles['occupy-entire-width']);\n }\n } else {\n target.style.width = position.width;\n }\n // Using styles for main dropdown to adjust its position as preferred alternative\n if (position.dropUp && !interior) {\n target.classList.add(styles['dropdown-drop-up']);\n if (!expandToViewport) {\n target.style.bottom = '100%';\n }\n } else {\n target.classList.remove(styles['dropdown-drop-up']);\n }\n target.classList.add(position.dropLeft ? styles['dropdown-drop-left'] : styles['dropdown-drop-right']);\n\n if (position.left && position.left !== 'auto') {\n target.style.left = position.left;\n }\n\n // Position normal overflow dropdowns with fixed positioning relative to viewport\n if (expandToViewport && !interior) {\n target.style.position = 'fixed';\n if (position.dropUp) {\n target.style.bottom = `calc(100% - ${triggerBox.top}px)`;\n } else {\n target.style.top = `${triggerBox.bottom}px`;\n }\n if (position.dropLeft) {\n target.style.left = `calc(${triggerBox.right}px - ${position.width})`;\n } else {\n target.style.left = `${triggerBox.left}px`;\n }\n // Keep track of the initial dropdown position and direction.\n // Dropdown direction doesn't need to change as the user scrolls, just needs to stay attached to the trigger.\n fixedPosition.current = position;\n return;\n }\n\n // For an interior dropdown (the fly out) we need exact values for positioning\n // and classes are not enough\n // usage of relative position is impossible due to overwrite of overflow-x\n if (interior && isInteriorPosition(position)) {\n if (position.dropUp) {\n target.style.bottom = position.bottom;\n } else {\n target.style.top = position.top;\n }\n target.style.left = position.left;\n }\n\n if (position.dropUp && position.dropLeft) {\n setPosition('top-left');\n } else if (position.dropUp) {\n setPosition('top-right');\n } else if (position.dropLeft) {\n setPosition('bottom-left');\n } else {\n setPosition('bottom-right');\n }\n };\n\n const isOutsideDropdown = (element: Element) =>\n (!wrapperRef.current || !wrapperRef.current.contains(element)) &&\n (!dropdownContainerRef.current || !dropdownContainerRef.current.contains(element));\n\n const focusHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onFocus, event);\n }\n };\n\n const blurHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onBlur, event);\n }\n };\n\n useLayoutEffect(() => {\n const onDropdownOpen = () => {\n if (open && dropdownRef.current && triggerRef.current && verticalContainerRef.current) {\n // calculate scroll width only for dropdowns that has a scrollbar and ignore it for date picker components\n if (scrollable) {\n dropdownRef.current.classList.add(styles.nowrap);\n }\n setDropdownPosition(\n ...calculatePosition(\n dropdownRef.current,\n triggerRef.current,\n verticalContainerRef.current,\n interior,\n expandToViewport,\n preferCenter,\n stretchWidth,\n stretchHeight,\n isMobile,\n minWidth\n ),\n dropdownRef.current,\n verticalContainerRef.current\n );\n if (scrollable) {\n dropdownRef.current.classList.remove(styles.nowrap);\n }\n }\n };\n onDropdownOpen();\n\n if (open) {\n // window may scroll when dropdown opens, for example when soft keyboard shows up\n window.addEventListener('scroll', onDropdownOpen);\n // only listen to window scroll within very short time after the dropdown opens\n // do not want to interfere dropdown position on scroll afterwards\n const timeoutId = setTimeout(() => {\n window.removeEventListener('scroll', onDropdownOpen);\n }, 500);\n\n return () => {\n clearTimeout(timeoutId);\n window.removeEventListener('scroll', onDropdownOpen);\n };\n }\n // See AWSUI-13040\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, dropdownRef, triggerRef, verticalContainerRef, interior, stretchWidth, isMobile, contentKey]);\n\n // subscribe to outside click\n useEffect(() => {\n if (!open) {\n return;\n }\n const clickListener = (e: MouseEvent) => {\n const target = e.composedPath()[0];\n\n if (!dropdownRef.current?.contains(target as Node) && !triggerRef.current?.contains(target as Node)) {\n fireNonCancelableEvent(onDropdownClose);\n }\n };\n window.addEventListener('click', clickListener, true);\n\n return () => {\n window.removeEventListener('click', clickListener, true);\n };\n }, [open, onDropdownClose]);\n\n // sync dropdown position on scroll and resize\n useLayoutEffect(() => {\n if (!expandToViewport || !open) {\n return;\n }\n const updateDropdownPosition = () => {\n if (triggerRef.current && dropdownRef.current && verticalContainerRef.current) {\n const triggerRect = triggerRef.current.getBoundingClientRect();\n const target = dropdownRef.current;\n if (fixedPosition.current) {\n if (fixedPosition.current.dropUp) {\n dropdownRef.current.style.bottom = `calc(100% - ${triggerRect.top}px)`;\n } else {\n target.style.top = `${triggerRect.bottom}px`;\n }\n if (fixedPosition.current.dropLeft) {\n target.style.left = `calc(${triggerRect.right}px - ${fixedPosition.current.width})`;\n } else {\n target.style.left = `${triggerRect.left}px`;\n }\n }\n }\n };\n\n updateDropdownPosition();\n\n window.addEventListener('scroll', updateDropdownPosition, true);\n window.addEventListener('resize', updateDropdownPosition, true);\n return () => {\n window.removeEventListener('scroll', updateDropdownPosition, true);\n window.removeEventListener('resize', updateDropdownPosition, true);\n };\n }, [open, expandToViewport]);\n\n return (\n <div\n className={clsx(\n styles.root,\n interior && styles.interior,\n stretchTriggerHeight && styles['stretch-trigger-height']\n )}\n ref={wrapperRef}\n onFocus={focusHandler}\n onBlur={blurHandler}\n >\n <div className={clsx(stretchTriggerHeight && styles['stretch-trigger-height'])} ref={triggerRef}>\n {trigger}\n </div>\n\n <TabTrap\n focusNextCallback={() => dropdownRef.current && getFirstFocusable(dropdownRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <DropdownContainer renderWithPortal={expandToViewport && !interior} id={dropdownId} open={open}>\n <Transition in={open ?? false} exit={false}>\n {(state, ref) => (\n <div ref={dropdownContainerRef}>\n <TabTrap\n focusNextCallback={() => triggerRef.current && getLastFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <TransitionContent\n state={state}\n transitionRef={ref}\n dropdownClasses={dropdownClasses}\n open={open}\n stretchWidth={stretchWidth}\n interior={interior}\n header={header}\n expandToViewport={expandToViewport}\n footer={footer}\n onMouseDown={onMouseDown}\n isRefresh={isRefresh}\n dropdownRef={dropdownRef}\n verticalContainerRef={verticalContainerRef}\n position={position}\n >\n {children}\n </TransitionContent>\n\n <TabTrap\n focusNextCallback={() => triggerRef.current && getFirstFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n </div>\n )}\n </Transition>\n </DropdownContainer>\n </div>\n );\n};\n\nconst isInteriorPosition = (\n position: DropdownPosition | InteriorDropdownPosition\n): position is InteriorDropdownPosition => (position as InteriorDropdownPosition).bottom !== undefined;\n\nexport default Dropdown;\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/dropdown/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAA8C,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvG,OAAO,EAAE,UAAU,EAAoB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAA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AAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,QAAQ,IAEjB,QAAQ,CACS;gBAEpB,oBAAC,OAAO,IACN,iBAAiB,EAAE,sBAAM,OAAA,UAAU,CAAC,OAAO,KAAI,MAAA,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,0CAAE,KAAK,EAAE,CAAA,CAAA,EAAA,EAC7F,QAAQ,EAAE,CAAC,IAAI,IAAI,CAAC,SAAS,GAC7B,CACE,CACP,EA/BgB,CA+BhB,CACU,CACK,CAChB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UACzB,QAAqD,IACZ,OAAC,QAAqC,CAAC,MAAM,KAAK,SAAS,EAA3D,CAA2D,CAAC;AAEvG,eAAe,QAAQ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport styles from './styles.css.js';\nimport clsx from 'clsx';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { createPortal } from 'react-dom';\nimport { fireNonCancelableEvent } from '../../events';\nimport { DropdownProps } from './interfaces';\nimport { DropdownPosition, InteriorDropdownPosition, calculatePosition } from './dropdown-fit-handler';\nimport { Transition, TransitionStatus } from '../transition';\nimport { useVisualRefresh } from '../../hooks/use-visual-mode';\nimport { usePortalModeClasses } from '../../hooks/use-portal-mode-classes';\nimport { DropdownContextProvider, DropdownContextProviderProps } from './context';\nimport { useMobile } from '../../hooks/use-mobile';\nimport TabTrap from '../tab-trap/index.js';\nimport { getFirstFocusable, getLastFocusable } from '../focus-lock/utils.js';\n\ninterface DropdownContainerProps {\n children?: React.ReactNode;\n renderWithPortal?: boolean;\n id?: string;\n open?: boolean;\n}\n\nconst DropdownContainer = ({ children, renderWithPortal = false, id, open }: DropdownContainerProps) => {\n if (renderWithPortal) {\n if (open) {\n return createPortal(<div id={id}>{children}</div>, document.body);\n } else {\n return null;\n }\n } else {\n return <>{children}</>;\n }\n};\n\ninterface TransitionContentProps {\n state: TransitionStatus;\n transitionRef: React.MutableRefObject<any>;\n dropdownClasses: string;\n stretchWidth: boolean;\n interior: boolean;\n isRefresh: boolean;\n dropdownRef: React.RefObject<HTMLDivElement>;\n verticalContainerRef: React.RefObject<HTMLDivElement>;\n expandToViewport?: boolean;\n header?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n position?: DropdownContextProviderProps['position'];\n open?: boolean;\n onMouseDown?: React.MouseEventHandler<Element>;\n}\n\nconst TransitionContent = ({\n state,\n transitionRef,\n dropdownClasses,\n stretchWidth,\n interior,\n isRefresh,\n dropdownRef,\n verticalContainerRef,\n expandToViewport,\n header,\n children,\n footer,\n position,\n open,\n onMouseDown,\n}: TransitionContentProps) => {\n const contentRef = useMergeRefs(dropdownRef, transitionRef);\n return (\n <div\n className={clsx(styles.dropdown, dropdownClasses, {\n [styles.open]: open,\n [styles['with-limited-width']]: !stretchWidth,\n [styles['hide-upper-border']]: stretchWidth,\n [styles.interior]: interior,\n [styles['is-empty']]: !header && !children,\n [styles.refresh]: isRefresh,\n [styles['use-portal']]: expandToViewport && !interior,\n })}\n ref={contentRef}\n data-open={open}\n data-animating={state !== 'exited'}\n aria-hidden={!open}\n onMouseDown={onMouseDown}\n >\n <div className={clsx(styles['dropdown-content-wrapper'], isRefresh && styles.refresh)}>\n <div className={styles['ie11-wrapper']}>\n <div ref={verticalContainerRef} className={styles['dropdown-content']}>\n <DropdownContextProvider position={position}>\n {header}\n {children}\n {footer}\n </DropdownContextProvider>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nconst Dropdown = ({\n children,\n trigger,\n open,\n onDropdownClose,\n onMouseDown,\n header,\n footer,\n dropdownId,\n stretchTriggerHeight = false,\n stretchWidth = true,\n stretchHeight = false,\n stretchToTriggerWidth = true,\n expandToViewport = false,\n preferCenter = false,\n interior = false,\n minWidth,\n scrollable = true,\n loopFocus = expandToViewport,\n onFocus,\n onBlur,\n contentKey,\n}: DropdownProps) => {\n const wrapperRef = useRef<HTMLDivElement | null>(null);\n const triggerRef = useRef<HTMLDivElement | null>(null);\n const dropdownRef = useRef<HTMLDivElement | null>(null);\n const dropdownContainerRef = useRef<HTMLDivElement | null>(null);\n // This container is only needed to apply max-height to. We can't move max-height to it's parent\n // because of an IE11 issue with flexbox. https://github.com/philipwalton/flexbugs/issues/216\n const verticalContainerRef = useRef<HTMLDivElement>(null);\n // To keep track of the initial position (drop up/down) which is kept the same during fixed repositioning\n const fixedPosition = useRef<DropdownPosition | null>(null);\n\n const isRefresh = useVisualRefresh();\n\n const dropdownClasses = usePortalModeClasses(triggerRef);\n const [position, setPosition] = useState<DropdownContextProviderProps['position']>('bottom-right');\n\n const isMobile = useMobile();\n\n const setDropdownPosition = (\n position: DropdownPosition | InteriorDropdownPosition,\n triggerBox: DOMRect,\n target: HTMLDivElement,\n verticalContainer: HTMLDivElement\n ) => {\n const entireWidth = !interior && stretchWidth;\n if (!stretchWidth) {\n // 1px offset for dropdowns where the dropdown itself needs a border, rather than on the items\n verticalContainer.style.maxHeight = `${parseInt(position.height) + 1}px`;\n } else {\n verticalContainer.style.maxHeight = position.height;\n }\n\n if (entireWidth && !expandToViewport) {\n if (stretchToTriggerWidth) {\n target.classList.add(styles['occupy-entire-width']);\n }\n } else {\n target.style.width = position.width;\n }\n // Using styles for main dropdown to adjust its position as preferred alternative\n if (position.dropUp && !interior) {\n target.classList.add(styles['dropdown-drop-up']);\n if (!expandToViewport) {\n target.style.bottom = '100%';\n }\n } else {\n target.classList.remove(styles['dropdown-drop-up']);\n }\n target.classList.add(position.dropLeft ? styles['dropdown-drop-left'] : styles['dropdown-drop-right']);\n\n if (position.left && position.left !== 'auto') {\n target.style.left = position.left;\n }\n\n // Position normal overflow dropdowns with fixed positioning relative to viewport\n if (expandToViewport && !interior) {\n target.style.position = 'fixed';\n if (position.dropUp) {\n target.style.bottom = `calc(100% - ${triggerBox.top}px)`;\n } else {\n target.style.top = `${triggerBox.bottom}px`;\n }\n if (position.dropLeft) {\n target.style.left = `calc(${triggerBox.right}px - ${position.width})`;\n } else {\n target.style.left = `${triggerBox.left}px`;\n }\n // Keep track of the initial dropdown position and direction.\n // Dropdown direction doesn't need to change as the user scrolls, just needs to stay attached to the trigger.\n fixedPosition.current = position;\n return;\n }\n\n // For an interior dropdown (the fly out) we need exact values for positioning\n // and classes are not enough\n // usage of relative position is impossible due to overwrite of overflow-x\n if (interior && isInteriorPosition(position)) {\n if (position.dropUp) {\n target.style.bottom = position.bottom;\n } else {\n target.style.top = position.top;\n }\n target.style.left = position.left;\n }\n\n if (position.dropUp && position.dropLeft) {\n setPosition('top-left');\n } else if (position.dropUp) {\n setPosition('top-right');\n } else if (position.dropLeft) {\n setPosition('bottom-left');\n } else {\n setPosition('bottom-right');\n }\n };\n\n const isOutsideDropdown = (element: Element) =>\n (!wrapperRef.current || !wrapperRef.current.contains(element)) &&\n (!dropdownContainerRef.current || !dropdownContainerRef.current.contains(element));\n\n const focusHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onFocus, event);\n }\n };\n\n const blurHandler = (event: React.FocusEvent) => {\n if (!event.relatedTarget || isOutsideDropdown(event.relatedTarget)) {\n fireNonCancelableEvent(onBlur, event);\n }\n };\n\n useLayoutEffect(() => {\n const onDropdownOpen = () => {\n if (open && dropdownRef.current && triggerRef.current && verticalContainerRef.current) {\n // calculate scroll width only for dropdowns that has a scrollbar and ignore it for date picker components\n if (scrollable) {\n dropdownRef.current.classList.add(styles.nowrap);\n }\n setDropdownPosition(\n ...calculatePosition(\n dropdownRef.current,\n triggerRef.current,\n verticalContainerRef.current,\n interior,\n expandToViewport,\n preferCenter,\n stretchWidth,\n stretchHeight,\n isMobile,\n minWidth\n ),\n dropdownRef.current,\n verticalContainerRef.current\n );\n if (scrollable) {\n dropdownRef.current.classList.remove(styles.nowrap);\n }\n }\n };\n onDropdownOpen();\n\n if (open) {\n // window may scroll when dropdown opens, for example when soft keyboard shows up\n window.addEventListener('scroll', onDropdownOpen);\n // only listen to window scroll within very short time after the dropdown opens\n // do not want to interfere dropdown position on scroll afterwards\n const timeoutId = setTimeout(() => {\n window.removeEventListener('scroll', onDropdownOpen);\n }, 500);\n\n return () => {\n clearTimeout(timeoutId);\n window.removeEventListener('scroll', onDropdownOpen);\n };\n }\n // See AWSUI-13040\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open, dropdownRef, triggerRef, verticalContainerRef, interior, stretchWidth, isMobile, contentKey]);\n\n // subscribe to outside click\n useEffect(() => {\n if (!open) {\n return;\n }\n const clickListener = (e: MouseEvent) => {\n if (!dropdownRef.current?.contains(e.target as Node) && !triggerRef.current?.contains(e.target as Node)) {\n fireNonCancelableEvent(onDropdownClose);\n }\n };\n window.addEventListener('click', clickListener, true);\n\n return () => {\n window.removeEventListener('click', clickListener, true);\n };\n }, [open, onDropdownClose]);\n\n // sync dropdown position on scroll and resize\n useLayoutEffect(() => {\n if (!expandToViewport || !open) {\n return;\n }\n const updateDropdownPosition = () => {\n if (triggerRef.current && dropdownRef.current && verticalContainerRef.current) {\n const triggerRect = triggerRef.current.getBoundingClientRect();\n const target = dropdownRef.current;\n if (fixedPosition.current) {\n if (fixedPosition.current.dropUp) {\n dropdownRef.current.style.bottom = `calc(100% - ${triggerRect.top}px)`;\n } else {\n target.style.top = `${triggerRect.bottom}px`;\n }\n if (fixedPosition.current.dropLeft) {\n target.style.left = `calc(${triggerRect.right}px - ${fixedPosition.current.width})`;\n } else {\n target.style.left = `${triggerRect.left}px`;\n }\n }\n }\n };\n\n updateDropdownPosition();\n\n window.addEventListener('scroll', updateDropdownPosition, true);\n window.addEventListener('resize', updateDropdownPosition, true);\n return () => {\n window.removeEventListener('scroll', updateDropdownPosition, true);\n window.removeEventListener('resize', updateDropdownPosition, true);\n };\n }, [open, expandToViewport]);\n\n return (\n <div\n className={clsx(\n styles.root,\n interior && styles.interior,\n stretchTriggerHeight && styles['stretch-trigger-height']\n )}\n ref={wrapperRef}\n onFocus={focusHandler}\n onBlur={blurHandler}\n >\n <div className={clsx(stretchTriggerHeight && styles['stretch-trigger-height'])} ref={triggerRef}>\n {trigger}\n </div>\n\n <TabTrap\n focusNextCallback={() => dropdownRef.current && getFirstFocusable(dropdownRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <DropdownContainer renderWithPortal={expandToViewport && !interior} id={dropdownId} open={open}>\n <Transition in={open ?? false} exit={false}>\n {(state, ref) => (\n <div ref={dropdownContainerRef}>\n <TabTrap\n focusNextCallback={() => triggerRef.current && getLastFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n\n <TransitionContent\n state={state}\n transitionRef={ref}\n dropdownClasses={dropdownClasses}\n open={open}\n stretchWidth={stretchWidth}\n interior={interior}\n header={header}\n expandToViewport={expandToViewport}\n footer={footer}\n onMouseDown={onMouseDown}\n isRefresh={isRefresh}\n dropdownRef={dropdownRef}\n verticalContainerRef={verticalContainerRef}\n position={position}\n >\n {children}\n </TransitionContent>\n\n <TabTrap\n focusNextCallback={() => triggerRef.current && getFirstFocusable(triggerRef.current)?.focus()}\n disabled={!open || !loopFocus}\n />\n </div>\n )}\n </Transition>\n </DropdownContainer>\n </div>\n );\n};\n\nconst isInteriorPosition = (\n position: DropdownPosition | InteriorDropdownPosition\n): position is InteriorDropdownPosition => (position as InteriorDropdownPosition).bottom !== undefined;\n\nexport default Dropdown;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-keyboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKxE,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,aAAa,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QAChE,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,KAAK,EAAE,MAAM,IAAI,CAAC;QAClB,aAAa,EAAE,MAAM,IAAI,CAAC;QAC1B,qBAAqB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,EAAE,eA2C7B,CAAC;AAEF,UAAU,kBAAkB;IAC1B,CAAC,UAAU,EAAE;QAAE,YAAY,EAAE,MAAM,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;CACvG;AAED,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"use-keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-keyboard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKxE,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,aAAa,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QAChE,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,KAAK,EAAE,MAAM,IAAI,CAAC;QAClB,aAAa,EAAE,MAAM,IAAI,CAAC;QAC1B,qBAAqB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,EAAE,eA2C7B,CAAC;AAEF,UAAU,kBAAkB;IAC1B,CAAC,UAAU,EAAE;QAAE,YAAY,EAAE,MAAM,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;CACvG;AAED,eAAO,MAAM,kBAAkB,EAAE,kBAmBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-keyboard.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-keyboard.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAoB,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,IAAM,IAAI,GAAG,EAAE,CAAC;AAChB,IAAM,GAAG,GAAG,EAAE,CAAC;AAcf,MAAM,CAAC,IAAM,eAAe,GAAoB,UAAC,EAQhD;QAPC,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,MAAM,YAAA,EACN,KAAK,WAAA,EACL,aAAa,mBAAA,EACb,qBAAqB,2BAAA,EACrB,0BAA0B,EAA1B,kBAAkB,mBAAG,KAAK,KAAA;IAE1B,OAAO,WAAW,CAChB,UAAC,CAA6B;QAC5B,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;YACxB,KAAK,OAAO,CAAC,EAAE;gBACb,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClB,MA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AC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, MutableRefObject } from 'react';\nimport { KeyCode } from '../../../keycode';\nimport { BaseKeyDetail, CancelableEventHandler } from '../../../events';\n\nconst HOME = 36;\nconst END = 35;\n\ninterface UseMenuKeyboard {\n (inputProps: {\n moveHighlight: (direction: -1 | 1, startIndex?: number) => void;\n selectOption: () => void;\n goHome: () => void;\n goEnd: () => void;\n closeDropdown: () => void;\n isSelectingUsingSpace: MutableRefObject<boolean>;\n preventNativeSpace?: boolean;\n }): CancelableEventHandler<BaseKeyDetail>;\n}\n\nexport const useMenuKeyboard: UseMenuKeyboard = ({\n moveHighlight,\n selectOption,\n goHome,\n goEnd,\n closeDropdown,\n isSelectingUsingSpace,\n preventNativeSpace = false,\n}) => {\n return useCallback(\n (e: CustomEvent<BaseKeyDetail>) => {\n switch (e.detail.keyCode) {\n case KeyCode.up:\n e.preventDefault();\n moveHighlight(-1);\n break;\n case KeyCode.down:\n e.preventDefault();\n moveHighlight(1);\n break;\n case HOME:\n goHome();\n break;\n case END:\n goEnd();\n break;\n case KeyCode.escape:\n closeDropdown();\n break;\n case KeyCode.enter:\n e.preventDefault();\n selectOption();\n break;\n case KeyCode.space:\n if (preventNativeSpace) {\n e.preventDefault();\n selectOption();\n isSelectingUsingSpace.current = true;\n }\n }\n },\n [moveHighlight, selectOption, goHome, goEnd, closeDropdown, isSelectingUsingSpace, preventNativeSpace]\n );\n};\n\ninterface UseTriggerKeyboard {\n (inputProps: { openDropdown: () => void; goHome: () => void }): CancelableEventHandler<BaseKeyDetail>;\n}\n\nexport const useTriggerKeyboard: UseTriggerKeyboard = ({ openDropdown, goHome }) => {\n return useCallback(\n (e: CustomEvent<BaseKeyDetail>) => {\n switch (e.detail.keyCode) {\n case KeyCode.up:\n case KeyCode.down:\n e.preventDefault();\n goHome();\n openDropdown();\n break;\n case KeyCode.space:\n e.preventDefault();\n openDropdown();\n break;\n }\n },\n [openDropdown, goHome]\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"use-keyboard.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-keyboard.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAoB,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,IAAM,IAAI,GAAG,EAAE,CAAC;AAChB,IAAM,GAAG,GAAG,EAAE,CAAC;AAcf,MAAM,CAAC,IAAM,eAAe,GAAoB,UAAC,EAQhD;QAPC,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,MAAM,YAAA,EACN,KAAK,WAAA,EACL,aAAa,mBAAA,EACb,qBAAqB,2BAAA,EACrB,0BAA0B,EAA1B,kBAAkB,mBAAG,KAAK,KAAA;IAE1B,OAAO,WAAW,CAChB,UAAC,CAA6B;QAC5B,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;YACxB,KAAK,OAAO,CAAC,EAAE;gBACb,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClB,MAAM;YACR,KAAK,OAAO,CAAC,IAAI;gBACf,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,aAAa,CAAC,CAAC,CAAC,CAAC;gBACjB,MAAM;YACR,KAAK,IAAI;gBACP,MAAM,EAAE,CAAC;gBACT,MAAM;YACR,KAAK,GAAG;gBACN,KAAK,EAAE,CAAC;gBACR,MAAM;YACR,KAAK,OAAO,CAAC,MAAM;gBACjB,aAAa,EAAE,CAAC;gBAChB,MAAM;YACR,KAAK,OAAO,CAAC,KAAK;gBAChB,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,YAAY,EAAE,CAAC;gBACf,MAAM;YACR,KAAK,OAAO,CAAC,KAAK;gBAChB,IAAI,kBAAkB,EAAE;oBACtB,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,YAAY,EAAE,CAAC;oBACf,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;iBACtC;SACJ;IACH,CAAC,EACD,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,qBAAqB,EAAE,kBAAkB,CAAC,CACvG,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,CAAC,IAAM,kBAAkB,GAAuB,UAAC,EAAwB;QAAtB,YAAY,kBAAA,EAAE,MAAM,YAAA;IAC3E,OAAO,WAAW,CAChB,UAAC,CAA6B;QAC5B,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE;YACxB,KAAK,OAAO,CAAC,EAAE,CAAC;YAChB,KAAK,OAAO,CAAC,IAAI;gBACf,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,MAAM,EAAE,CAAC;gBACT,YAAY,EAAE,CAAC;gBACf,MAAM;YACR,KAAK,OAAO,CAAC,KAAK,CAAC;YACnB,KAAK,OAAO,CAAC,KAAK;gBAChB,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,YAAY,EAAE,CAAC;gBACf,MAAM;SACT;IACH,CAAC,EACD,CAAC,YAAY,EAAE,MAAM,CAAC,CACvB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, MutableRefObject } from 'react';\nimport { KeyCode } from '../../../keycode';\nimport { BaseKeyDetail, CancelableEventHandler } from '../../../events';\n\nconst HOME = 36;\nconst END = 35;\n\ninterface UseMenuKeyboard {\n (inputProps: {\n moveHighlight: (direction: -1 | 1, startIndex?: number) => void;\n selectOption: () => void;\n goHome: () => void;\n goEnd: () => void;\n closeDropdown: () => void;\n isSelectingUsingSpace: MutableRefObject<boolean>;\n preventNativeSpace?: boolean;\n }): CancelableEventHandler<BaseKeyDetail>;\n}\n\nexport const useMenuKeyboard: UseMenuKeyboard = ({\n moveHighlight,\n selectOption,\n goHome,\n goEnd,\n closeDropdown,\n isSelectingUsingSpace,\n preventNativeSpace = false,\n}) => {\n return useCallback(\n (e: CustomEvent<BaseKeyDetail>) => {\n switch (e.detail.keyCode) {\n case KeyCode.up:\n e.preventDefault();\n moveHighlight(-1);\n break;\n case KeyCode.down:\n e.preventDefault();\n moveHighlight(1);\n break;\n case HOME:\n goHome();\n break;\n case END:\n goEnd();\n break;\n case KeyCode.escape:\n closeDropdown();\n break;\n case KeyCode.enter:\n e.preventDefault();\n selectOption();\n break;\n case KeyCode.space:\n if (preventNativeSpace) {\n e.preventDefault();\n selectOption();\n isSelectingUsingSpace.current = true;\n }\n }\n },\n [moveHighlight, selectOption, goHome, goEnd, closeDropdown, isSelectingUsingSpace, preventNativeSpace]\n );\n};\n\ninterface UseTriggerKeyboard {\n (inputProps: { openDropdown: () => void; goHome: () => void }): CancelableEventHandler<BaseKeyDetail>;\n}\n\nexport const useTriggerKeyboard: UseTriggerKeyboard = ({ openDropdown, goHome }) => {\n return useCallback(\n (e: CustomEvent<BaseKeyDetail>) => {\n switch (e.detail.keyCode) {\n case KeyCode.up:\n case KeyCode.down:\n e.preventDefault();\n goHome();\n openDropdown();\n break;\n case KeyCode.space:\n case KeyCode.enter:\n e.preventDefault();\n openDropdown();\n break;\n }\n },\n [openDropdown, goHome]\n );\n};\n"]}
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
package/popover/styles.css.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"arrow": "
|
|
5
|
-
"arrow-outer": "awsui_arrow-
|
|
6
|
-
"arrow-inner": "awsui_arrow-
|
|
7
|
-
"arrow-position-right-top": "awsui_arrow-position-right-
|
|
8
|
-
"arrow-position-right-bottom": "awsui_arrow-position-right-
|
|
9
|
-
"arrow-position-left-top": "awsui_arrow-position-left-
|
|
10
|
-
"arrow-position-left-bottom": "awsui_arrow-position-left-
|
|
11
|
-
"arrow-position-top-center": "awsui_arrow-position-top-
|
|
12
|
-
"arrow-position-top-right": "awsui_arrow-position-top-
|
|
13
|
-
"arrow-position-top-left": "awsui_arrow-position-top-
|
|
14
|
-
"arrow-position-top-responsive": "awsui_arrow-position-top-
|
|
15
|
-
"arrow-position-bottom-center": "awsui_arrow-position-bottom-
|
|
16
|
-
"arrow-position-bottom-right": "awsui_arrow-position-bottom-
|
|
17
|
-
"arrow-position-bottom-left": "awsui_arrow-position-bottom-
|
|
18
|
-
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-
|
|
19
|
-
"body": "
|
|
20
|
-
"body-overflow-visible": "awsui_body-overflow-
|
|
21
|
-
"has-dismiss": "awsui_has-
|
|
22
|
-
"dismiss": "
|
|
23
|
-
"dismiss-control": "awsui_dismiss-
|
|
24
|
-
"header-row": "awsui_header-
|
|
25
|
-
"header": "
|
|
26
|
-
"content": "
|
|
27
|
-
"content-overflow-visible": "awsui_content-overflow-
|
|
28
|
-
"container": "
|
|
29
|
-
"container-body": "awsui_container-
|
|
30
|
-
"container-body-variant-annotation": "awsui_container-body-variant-
|
|
31
|
-
"container-body-size-small": "awsui_container-body-size-
|
|
32
|
-
"fixed-width": "awsui_fixed-
|
|
33
|
-
"container-body-size-medium": "awsui_container-body-size-
|
|
34
|
-
"container-body-size-large": "awsui_container-body-size-
|
|
35
|
-
"container-arrow": "awsui_container-
|
|
36
|
-
"container-arrow-position-right-top": "awsui_container-arrow-position-right-
|
|
37
|
-
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-
|
|
38
|
-
"container-arrow-position-left-top": "awsui_container-arrow-position-left-
|
|
39
|
-
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-
|
|
40
|
-
"container-arrow-position-top-center": "awsui_container-arrow-position-top-
|
|
41
|
-
"container-arrow-position-top-right": "awsui_container-arrow-position-top-
|
|
42
|
-
"container-arrow-position-top-left": "awsui_container-arrow-position-top-
|
|
43
|
-
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-
|
|
44
|
-
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-
|
|
45
|
-
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-
|
|
46
|
-
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-
|
|
47
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
48
|
-
"refresh": "
|
|
49
|
-
"root": "
|
|
50
|
-
"trigger": "
|
|
51
|
-
"trigger-type-text": "awsui_trigger-type-
|
|
52
|
-
"trigger-inner-text": "awsui_trigger-inner-
|
|
53
|
-
"popover-content": "awsui_popover-
|
|
4
|
+
"arrow": "awsui_arrow_xjuzf_106nh_185",
|
|
5
|
+
"arrow-outer": "awsui_arrow-outer_xjuzf_106nh_189",
|
|
6
|
+
"arrow-inner": "awsui_arrow-inner_xjuzf_106nh_189",
|
|
7
|
+
"arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_106nh_220",
|
|
8
|
+
"arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_106nh_220",
|
|
9
|
+
"arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_106nh_223",
|
|
10
|
+
"arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_106nh_223",
|
|
11
|
+
"arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_106nh_226",
|
|
12
|
+
"arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_106nh_226",
|
|
13
|
+
"arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_106nh_226",
|
|
14
|
+
"arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_106nh_226",
|
|
15
|
+
"arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_106nh_229",
|
|
16
|
+
"arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_106nh_229",
|
|
17
|
+
"arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_106nh_229",
|
|
18
|
+
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_106nh_229",
|
|
19
|
+
"body": "awsui_body_xjuzf_106nh_325",
|
|
20
|
+
"body-overflow-visible": "awsui_body-overflow-visible_xjuzf_106nh_341",
|
|
21
|
+
"has-dismiss": "awsui_has-dismiss_xjuzf_106nh_345",
|
|
22
|
+
"dismiss": "awsui_dismiss_xjuzf_106nh_350",
|
|
23
|
+
"dismiss-control": "awsui_dismiss-control_xjuzf_106nh_357",
|
|
24
|
+
"header-row": "awsui_header-row_xjuzf_106nh_361",
|
|
25
|
+
"header": "awsui_header_xjuzf_106nh_361",
|
|
26
|
+
"content": "awsui_content_xjuzf_106nh_387",
|
|
27
|
+
"content-overflow-visible": "awsui_content-overflow-visible_xjuzf_106nh_395",
|
|
28
|
+
"container": "awsui_container_xjuzf_106nh_491",
|
|
29
|
+
"container-body": "awsui_container-body_xjuzf_106nh_499",
|
|
30
|
+
"container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_106nh_516",
|
|
31
|
+
"container-body-size-small": "awsui_container-body-size-small_xjuzf_106nh_521",
|
|
32
|
+
"fixed-width": "awsui_fixed-width_xjuzf_106nh_524",
|
|
33
|
+
"container-body-size-medium": "awsui_container-body-size-medium_xjuzf_106nh_528",
|
|
34
|
+
"container-body-size-large": "awsui_container-body-size-large_xjuzf_106nh_535",
|
|
35
|
+
"container-arrow": "awsui_container-arrow_xjuzf_106nh_547",
|
|
36
|
+
"container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_106nh_551",
|
|
37
|
+
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_106nh_551",
|
|
38
|
+
"container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_106nh_563",
|
|
39
|
+
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_106nh_563",
|
|
40
|
+
"container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_106nh_575",
|
|
41
|
+
"container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_106nh_575",
|
|
42
|
+
"container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_106nh_575",
|
|
43
|
+
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_106nh_575",
|
|
44
|
+
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_106nh_591",
|
|
45
|
+
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_106nh_595",
|
|
46
|
+
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_106nh_599",
|
|
47
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_106nh_1",
|
|
48
|
+
"refresh": "awsui_refresh_xjuzf_106nh_717",
|
|
49
|
+
"root": "awsui_root_xjuzf_106nh_739",
|
|
50
|
+
"trigger": "awsui_trigger_xjuzf_106nh_754",
|
|
51
|
+
"trigger-type-text": "awsui_trigger-type-text_xjuzf_106nh_761",
|
|
52
|
+
"trigger-inner-text": "awsui_trigger-inner-text_xjuzf_106nh_790",
|
|
53
|
+
"popover-content": "awsui_popover-content_xjuzf_106nh_794"
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -182,11 +182,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.
|
|
185
|
+
.awsui_arrow_xjuzf_106nh_185:not(#\9) {
|
|
186
186
|
width: 20px;
|
|
187
187
|
height: 10px;
|
|
188
188
|
}
|
|
189
|
-
.awsui_arrow-
|
|
189
|
+
.awsui_arrow-outer_xjuzf_106nh_189:not(#\9), .awsui_arrow-inner_xjuzf_106nh_189:not(#\9) {
|
|
190
190
|
position: absolute;
|
|
191
191
|
overflow: hidden;
|
|
192
192
|
width: 20px;
|
|
@@ -194,7 +194,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
194
|
top: 0;
|
|
195
195
|
left: 0;
|
|
196
196
|
}
|
|
197
|
-
.awsui_arrow-
|
|
197
|
+
.awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-inner_xjuzf_106nh_189:not(#\9)::after {
|
|
198
198
|
content: "";
|
|
199
199
|
box-sizing: border-box;
|
|
200
200
|
display: inline-block;
|
|
@@ -207,26 +207,26 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
207
207
|
transform: rotate(45deg);
|
|
208
208
|
transform-origin: 0 100%;
|
|
209
209
|
}
|
|
210
|
-
.awsui_arrow-
|
|
210
|
+
.awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after {
|
|
211
211
|
background-color: var(--color-border-popover-5pygk7, #9ba7b6);
|
|
212
212
|
}
|
|
213
|
-
.awsui_arrow-
|
|
213
|
+
.awsui_arrow-inner_xjuzf_106nh_189:not(#\9) {
|
|
214
214
|
top: 2px;
|
|
215
215
|
}
|
|
216
|
-
.awsui_arrow-
|
|
216
|
+
.awsui_arrow-inner_xjuzf_106nh_189:not(#\9)::after {
|
|
217
217
|
border-radius: 1px 0 0 0;
|
|
218
218
|
background-color: var(--color-background-popover-mn5o9k, #ffffff);
|
|
219
219
|
}
|
|
220
|
-
.awsui_arrow-position-right-
|
|
220
|
+
.awsui_arrow-position-right-top_xjuzf_106nh_220 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-right-bottom_xjuzf_106nh_220 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after {
|
|
221
221
|
box-shadow: -0.71px 0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
222
222
|
}
|
|
223
|
-
.awsui_arrow-position-left-
|
|
223
|
+
.awsui_arrow-position-left-top_xjuzf_106nh_223 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-left-bottom_xjuzf_106nh_223 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after {
|
|
224
224
|
box-shadow: 0.71px -0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
225
225
|
}
|
|
226
|
-
.awsui_arrow-position-top-
|
|
226
|
+
.awsui_arrow-position-top-center_xjuzf_106nh_226 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-top-right_xjuzf_106nh_226 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-top-left_xjuzf_106nh_226 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-top-responsive_xjuzf_106nh_226 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after {
|
|
227
227
|
box-shadow: -0.71px -0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
228
228
|
}
|
|
229
|
-
.awsui_arrow-position-bottom-
|
|
229
|
+
.awsui_arrow-position-bottom-center_xjuzf_106nh_229 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-bottom-right_xjuzf_106nh_229 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-bottom-left_xjuzf_106nh_229 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after, .awsui_arrow-position-bottom-responsive_xjuzf_106nh_229 > .awsui_arrow-outer_xjuzf_106nh_189:not(#\9)::after {
|
|
230
230
|
box-shadow: 0.71px 0.71px 4px -2px var(--color-shadow-default-3se70f, rgba(0, 7, 22, 0.12));
|
|
231
231
|
}
|
|
232
232
|
|
|
@@ -322,7 +322,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
322
322
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
323
323
|
SPDX-License-Identifier: Apache-2.0
|
|
324
324
|
*/
|
|
325
|
-
.
|
|
325
|
+
.awsui_body_xjuzf_106nh_325:not(#\9) {
|
|
326
326
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
327
327
|
border-collapse: separate;
|
|
328
328
|
border-spacing: 0;
|
|
@@ -364,31 +364,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
364
364
|
overflow: hidden;
|
|
365
365
|
padding: var(--space-s-hv8c1d, 12px) var(--space-m-17eucw, 16px);
|
|
366
366
|
}
|
|
367
|
-
.awsui_body-overflow-
|
|
367
|
+
.awsui_body-overflow-visible_xjuzf_106nh_341:not(#\9) {
|
|
368
368
|
overflow: visible;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
.awsui_has-
|
|
371
|
+
.awsui_has-dismiss_xjuzf_106nh_345:not(#\9) {
|
|
372
372
|
display: flex;
|
|
373
373
|
align-items: baseline;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
.
|
|
376
|
+
.awsui_dismiss_xjuzf_106nh_350:not(#\9) {
|
|
377
377
|
margin: calc(-1 * (var(--space-scaled-xxs-95dhkm, 4px) + var(--border-field-width-idlekx, 2px))) calc(-1 * (var(--space-xxs-ynfts5, 4px) + var(--border-field-width-idlekx, 2px)));
|
|
378
378
|
margin-left: 0;
|
|
379
379
|
flex: 0 0 auto;
|
|
380
380
|
order: 1;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
.awsui_dismiss-
|
|
383
|
+
.awsui_dismiss-control_xjuzf_106nh_357:not(#\9) {
|
|
384
384
|
/* used in test-utils */
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
.awsui_header-
|
|
387
|
+
.awsui_header-row_xjuzf_106nh_361:not(#\9) {
|
|
388
388
|
margin-bottom: var(--space-xs-rsr2qu, 8px);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
.
|
|
391
|
+
.awsui_header_xjuzf_106nh_361:not(#\9) {
|
|
392
392
|
word-wrap: break-word;
|
|
393
393
|
max-width: 100%;
|
|
394
394
|
overflow: hidden;
|
|
@@ -401,7 +401,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
401
401
|
/* stylelint-disable selector-max-type */
|
|
402
402
|
/* stylelint-enable selector-max-type */
|
|
403
403
|
}
|
|
404
|
-
.
|
|
404
|
+
.awsui_header_xjuzf_106nh_361 > h2:not(#\9) {
|
|
405
405
|
font-size: var(--font-heading-xs-size-fryxro, 14px);
|
|
406
406
|
line-height: var(--font-heading-xs-line-height-5x131j, 18px);
|
|
407
407
|
font-weight: var(--font-heading-xs-weight-wwznty, 800);
|
|
@@ -410,14 +410,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
410
410
|
display: inline;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
.
|
|
413
|
+
.awsui_content_xjuzf_106nh_387:not(#\9) {
|
|
414
414
|
word-wrap: break-word;
|
|
415
415
|
max-width: 100%;
|
|
416
416
|
overflow: hidden;
|
|
417
417
|
color: var(--color-text-body-secondary-fdstdf, #414d5c);
|
|
418
418
|
flex: 1 1 auto;
|
|
419
|
+
min-width: 0;
|
|
419
420
|
}
|
|
420
|
-
.awsui_content-overflow-
|
|
421
|
+
.awsui_content-overflow-visible_xjuzf_106nh_395:not(#\9) {
|
|
421
422
|
overflow: visible;
|
|
422
423
|
}
|
|
423
424
|
|
|
@@ -513,7 +514,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
513
514
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
514
515
|
SPDX-License-Identifier: Apache-2.0
|
|
515
516
|
*/
|
|
516
|
-
.
|
|
517
|
+
.awsui_container_xjuzf_106nh_491:not(#\9) {
|
|
517
518
|
display: inline-block;
|
|
518
519
|
position: fixed;
|
|
519
520
|
top: -9999px;
|
|
@@ -521,7 +522,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
521
522
|
z-index: 2000;
|
|
522
523
|
}
|
|
523
524
|
|
|
524
|
-
.awsui_container-
|
|
525
|
+
.awsui_container-body_xjuzf_106nh_499:not(#\9) {
|
|
525
526
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
526
527
|
border-collapse: separate;
|
|
527
528
|
border-spacing: 0;
|
|
@@ -564,90 +565,90 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
564
565
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-popover-5pygk7, #9ba7b6);
|
|
565
566
|
}
|
|
566
567
|
|
|
567
|
-
.awsui_container-body-variant-
|
|
568
|
+
.awsui_container-body-variant-annotation_xjuzf_106nh_516:not(#\9) {
|
|
568
569
|
background-color: var(--color-background-status-info-usb30e, #f2f8fd);
|
|
569
570
|
border-color: var(--color-border-status-info-546i7i, #0972d3);
|
|
570
571
|
}
|
|
571
572
|
|
|
572
|
-
.awsui_container-body-size-
|
|
573
|
+
.awsui_container-body-size-small_xjuzf_106nh_521:not(#\9) {
|
|
573
574
|
max-width: 210px;
|
|
574
575
|
}
|
|
575
|
-
.awsui_container-body-size-
|
|
576
|
+
.awsui_container-body-size-small_xjuzf_106nh_521.awsui_fixed-width_xjuzf_106nh_524:not(#\9) {
|
|
576
577
|
width: 210px;
|
|
577
578
|
}
|
|
578
579
|
|
|
579
|
-
.awsui_container-body-size-
|
|
580
|
+
.awsui_container-body-size-medium_xjuzf_106nh_528:not(#\9) {
|
|
580
581
|
max-width: 310px;
|
|
581
582
|
}
|
|
582
|
-
.awsui_container-body-size-
|
|
583
|
+
.awsui_container-body-size-medium_xjuzf_106nh_528.awsui_fixed-width_xjuzf_106nh_524:not(#\9) {
|
|
583
584
|
width: 310px;
|
|
584
585
|
}
|
|
585
586
|
|
|
586
|
-
.awsui_container-body-size-
|
|
587
|
+
.awsui_container-body-size-large_xjuzf_106nh_535:not(#\9) {
|
|
587
588
|
max-width: 480px;
|
|
588
589
|
}
|
|
589
590
|
@media (max-width: 480px) {
|
|
590
|
-
.awsui_container-body-size-
|
|
591
|
+
.awsui_container-body-size-large_xjuzf_106nh_535:not(#\9) {
|
|
591
592
|
max-width: 310px;
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
|
-
.awsui_container-body-size-
|
|
595
|
+
.awsui_container-body-size-large_xjuzf_106nh_535.awsui_fixed-width_xjuzf_106nh_524:not(#\9) {
|
|
595
596
|
width: 480px;
|
|
596
597
|
}
|
|
597
598
|
|
|
598
|
-
.awsui_container-
|
|
599
|
+
.awsui_container-arrow_xjuzf_106nh_547:not(#\9) {
|
|
599
600
|
position: absolute;
|
|
600
601
|
display: inline-block;
|
|
601
602
|
}
|
|
602
|
-
.awsui_container-arrow-position-right-
|
|
603
|
+
.awsui_container-arrow-position-right-top_xjuzf_106nh_551:not(#\9), .awsui_container-arrow-position-right-bottom_xjuzf_106nh_551:not(#\9) {
|
|
603
604
|
transform: rotate(-90deg);
|
|
604
605
|
transform-origin: 0 100%;
|
|
605
606
|
}
|
|
606
|
-
.awsui_container-arrow-position-right-
|
|
607
|
+
.awsui_container-arrow-position-right-top_xjuzf_106nh_551:not(#\9) {
|
|
607
608
|
top: calc(12px + 10px);
|
|
608
609
|
left: 0;
|
|
609
610
|
}
|
|
610
|
-
.awsui_container-arrow-position-right-
|
|
611
|
+
.awsui_container-arrow-position-right-bottom_xjuzf_106nh_551:not(#\9) {
|
|
611
612
|
bottom: 12px;
|
|
612
613
|
left: 0;
|
|
613
614
|
}
|
|
614
|
-
.awsui_container-arrow-position-left-
|
|
615
|
+
.awsui_container-arrow-position-left-top_xjuzf_106nh_563:not(#\9), .awsui_container-arrow-position-left-bottom_xjuzf_106nh_563:not(#\9) {
|
|
615
616
|
transform: rotate(90deg);
|
|
616
617
|
transform-origin: 100% 100%;
|
|
617
618
|
}
|
|
618
|
-
.awsui_container-arrow-position-left-
|
|
619
|
+
.awsui_container-arrow-position-left-top_xjuzf_106nh_563:not(#\9) {
|
|
619
620
|
top: calc(12px + 10px);
|
|
620
621
|
right: 0;
|
|
621
622
|
}
|
|
622
|
-
.awsui_container-arrow-position-left-
|
|
623
|
+
.awsui_container-arrow-position-left-bottom_xjuzf_106nh_563:not(#\9) {
|
|
623
624
|
bottom: 12px;
|
|
624
625
|
right: 0;
|
|
625
626
|
}
|
|
626
|
-
.awsui_container-arrow-position-top-
|
|
627
|
+
.awsui_container-arrow-position-top-center_xjuzf_106nh_575:not(#\9), .awsui_container-arrow-position-top-right_xjuzf_106nh_575:not(#\9), .awsui_container-arrow-position-top-left_xjuzf_106nh_575:not(#\9), .awsui_container-arrow-position-top-responsive_xjuzf_106nh_575:not(#\9) {
|
|
627
628
|
transform: rotate(180deg);
|
|
628
629
|
transform-origin: 50% 50%;
|
|
629
630
|
}
|
|
630
|
-
.awsui_container-arrow-position-top-
|
|
631
|
+
.awsui_container-arrow-position-top-center_xjuzf_106nh_575:not(#\9) {
|
|
631
632
|
bottom: -10px;
|
|
632
633
|
left: calc(50% - 10px);
|
|
633
634
|
}
|
|
634
|
-
.awsui_container-arrow-position-top-
|
|
635
|
+
.awsui_container-arrow-position-top-right_xjuzf_106nh_575:not(#\9) {
|
|
635
636
|
bottom: -10px;
|
|
636
637
|
left: 12px;
|
|
637
638
|
}
|
|
638
|
-
.awsui_container-arrow-position-top-
|
|
639
|
+
.awsui_container-arrow-position-top-left_xjuzf_106nh_575:not(#\9) {
|
|
639
640
|
bottom: -10px;
|
|
640
641
|
left: calc(100% - 20px - 12px);
|
|
641
642
|
}
|
|
642
|
-
.awsui_container-arrow-position-bottom-
|
|
643
|
+
.awsui_container-arrow-position-bottom-center_xjuzf_106nh_591:not(#\9) {
|
|
643
644
|
top: -10px;
|
|
644
645
|
left: calc(50% - 10px);
|
|
645
646
|
}
|
|
646
|
-
.awsui_container-arrow-position-bottom-
|
|
647
|
+
.awsui_container-arrow-position-bottom-right_xjuzf_106nh_595:not(#\9) {
|
|
647
648
|
top: -10px;
|
|
648
649
|
left: 12px;
|
|
649
650
|
}
|
|
650
|
-
.awsui_container-arrow-position-bottom-
|
|
651
|
+
.awsui_container-arrow-position-bottom-left_xjuzf_106nh_599:not(#\9) {
|
|
651
652
|
top: -10px;
|
|
652
653
|
left: calc(100% - 20px - 12px);
|
|
653
654
|
}
|
|
@@ -744,10 +745,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
744
745
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
745
746
|
SPDX-License-Identifier: Apache-2.0
|
|
746
747
|
*/
|
|
747
|
-
.
|
|
748
|
-
animation: awsui_awsui-motion-fade-
|
|
748
|
+
.awsui_container_xjuzf_106nh_491:not(#\9) {
|
|
749
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_106nh_1 var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
749
750
|
}
|
|
750
|
-
@keyframes awsui_awsui-motion-fade-
|
|
751
|
+
@keyframes awsui_awsui-motion-fade-in_xjuzf_106nh_1 {
|
|
751
752
|
from {
|
|
752
753
|
opacity: 0.2;
|
|
753
754
|
}
|
|
@@ -756,19 +757,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
756
757
|
}
|
|
757
758
|
}
|
|
758
759
|
@media (prefers-reduced-motion: reduce) {
|
|
759
|
-
.
|
|
760
|
+
.awsui_container_xjuzf_106nh_491:not(#\9) {
|
|
760
761
|
animation: none;
|
|
761
762
|
transition: none;
|
|
762
763
|
}
|
|
763
764
|
}
|
|
764
|
-
.awsui-motion-disabled .
|
|
765
|
+
.awsui-motion-disabled .awsui_container_xjuzf_106nh_491:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_106nh_491:not(#\9) {
|
|
765
766
|
animation: none;
|
|
766
767
|
transition: none;
|
|
767
768
|
}
|
|
768
|
-
.
|
|
769
|
-
animation: awsui_awsui-motion-fade-
|
|
769
|
+
.awsui_container_xjuzf_106nh_491.awsui_refresh_xjuzf_106nh_717:not(#\9) {
|
|
770
|
+
animation: awsui_awsui-motion-fade-in_xjuzf_106nh_1 var(--motion-duration-refresh-only-fast-addxjd, 115ms) var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
|
|
770
771
|
}
|
|
771
|
-
@keyframes awsui_awsui-motion-fade-
|
|
772
|
+
@keyframes awsui_awsui-motion-fade-in_xjuzf_106nh_1 {
|
|
772
773
|
from {
|
|
773
774
|
opacity: 0.2;
|
|
774
775
|
}
|
|
@@ -777,17 +778,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
777
778
|
}
|
|
778
779
|
}
|
|
779
780
|
@media (prefers-reduced-motion: reduce) {
|
|
780
|
-
.
|
|
781
|
+
.awsui_container_xjuzf_106nh_491.awsui_refresh_xjuzf_106nh_717:not(#\9) {
|
|
781
782
|
animation: none;
|
|
782
783
|
transition: none;
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
|
-
.awsui-motion-disabled .
|
|
786
|
+
.awsui-motion-disabled .awsui_container_xjuzf_106nh_491.awsui_refresh_xjuzf_106nh_717:not(#\9), .awsui-mode-entering .awsui_container_xjuzf_106nh_491.awsui_refresh_xjuzf_106nh_717:not(#\9) {
|
|
786
787
|
animation: none;
|
|
787
788
|
transition: none;
|
|
788
789
|
}
|
|
789
790
|
|
|
790
|
-
.
|
|
791
|
+
.awsui_root_xjuzf_106nh_739:not(#\9) {
|
|
791
792
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
792
793
|
border-collapse: separate;
|
|
793
794
|
border-spacing: 0;
|
|
@@ -828,14 +829,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
828
829
|
display: inline;
|
|
829
830
|
}
|
|
830
831
|
|
|
831
|
-
.
|
|
832
|
+
.awsui_trigger_xjuzf_106nh_754:not(#\9) {
|
|
832
833
|
display: inline-block;
|
|
833
834
|
max-width: 100%;
|
|
834
835
|
color: inherit;
|
|
835
836
|
text-align: inherit;
|
|
836
837
|
}
|
|
837
838
|
|
|
838
|
-
.awsui_trigger-type-
|
|
839
|
+
.awsui_trigger-type-text_xjuzf_106nh_761:not(#\9) {
|
|
839
840
|
border: 0;
|
|
840
841
|
margin: 0;
|
|
841
842
|
padding: 0;
|
|
@@ -843,17 +844,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
843
844
|
cursor: pointer;
|
|
844
845
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) dashed currentColor;
|
|
845
846
|
}
|
|
846
|
-
.awsui_trigger-type-
|
|
847
|
+
.awsui_trigger-type-text_xjuzf_106nh_761:not(#\9):focus {
|
|
847
848
|
outline: none;
|
|
848
849
|
}
|
|
849
|
-
.awsui_trigger-type-
|
|
850
|
+
.awsui_trigger-type-text_xjuzf_106nh_761[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
850
851
|
position: relative;
|
|
851
852
|
}
|
|
852
|
-
.awsui_trigger-type-
|
|
853
|
+
.awsui_trigger-type-text_xjuzf_106nh_761[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
853
854
|
outline: 2px dotted transparent;
|
|
854
855
|
outline-offset: calc(1px - 1px);
|
|
855
856
|
}
|
|
856
|
-
.awsui_trigger-type-
|
|
857
|
+
.awsui_trigger-type-text_xjuzf_106nh_761[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
857
858
|
content: " ";
|
|
858
859
|
display: block;
|
|
859
860
|
position: absolute;
|
|
@@ -864,10 +865,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
864
865
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
865
866
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
866
867
|
}
|
|
867
|
-
.awsui_trigger-type-
|
|
868
|
+
.awsui_trigger-type-text_xjuzf_106nh_761 > .awsui_trigger-inner-text_xjuzf_106nh_790:not(#\9) {
|
|
868
869
|
position: relative;
|
|
869
870
|
}
|
|
870
871
|
|
|
871
|
-
.awsui_popover-
|
|
872
|
+
.awsui_popover-content_xjuzf_106nh_794:not(#\9) {
|
|
872
873
|
display: inline;
|
|
873
874
|
}
|
|
@@ -2,55 +2,55 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"arrow": "
|
|
6
|
-
"arrow-outer": "awsui_arrow-
|
|
7
|
-
"arrow-inner": "awsui_arrow-
|
|
8
|
-
"arrow-position-right-top": "awsui_arrow-position-right-
|
|
9
|
-
"arrow-position-right-bottom": "awsui_arrow-position-right-
|
|
10
|
-
"arrow-position-left-top": "awsui_arrow-position-left-
|
|
11
|
-
"arrow-position-left-bottom": "awsui_arrow-position-left-
|
|
12
|
-
"arrow-position-top-center": "awsui_arrow-position-top-
|
|
13
|
-
"arrow-position-top-right": "awsui_arrow-position-top-
|
|
14
|
-
"arrow-position-top-left": "awsui_arrow-position-top-
|
|
15
|
-
"arrow-position-top-responsive": "awsui_arrow-position-top-
|
|
16
|
-
"arrow-position-bottom-center": "awsui_arrow-position-bottom-
|
|
17
|
-
"arrow-position-bottom-right": "awsui_arrow-position-bottom-
|
|
18
|
-
"arrow-position-bottom-left": "awsui_arrow-position-bottom-
|
|
19
|
-
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-
|
|
20
|
-
"body": "
|
|
21
|
-
"body-overflow-visible": "awsui_body-overflow-
|
|
22
|
-
"has-dismiss": "awsui_has-
|
|
23
|
-
"dismiss": "
|
|
24
|
-
"dismiss-control": "awsui_dismiss-
|
|
25
|
-
"header-row": "awsui_header-
|
|
26
|
-
"header": "
|
|
27
|
-
"content": "
|
|
28
|
-
"content-overflow-visible": "awsui_content-overflow-
|
|
29
|
-
"container": "
|
|
30
|
-
"container-body": "awsui_container-
|
|
31
|
-
"container-body-variant-annotation": "awsui_container-body-variant-
|
|
32
|
-
"container-body-size-small": "awsui_container-body-size-
|
|
33
|
-
"fixed-width": "awsui_fixed-
|
|
34
|
-
"container-body-size-medium": "awsui_container-body-size-
|
|
35
|
-
"container-body-size-large": "awsui_container-body-size-
|
|
36
|
-
"container-arrow": "awsui_container-
|
|
37
|
-
"container-arrow-position-right-top": "awsui_container-arrow-position-right-
|
|
38
|
-
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-
|
|
39
|
-
"container-arrow-position-left-top": "awsui_container-arrow-position-left-
|
|
40
|
-
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-
|
|
41
|
-
"container-arrow-position-top-center": "awsui_container-arrow-position-top-
|
|
42
|
-
"container-arrow-position-top-right": "awsui_container-arrow-position-top-
|
|
43
|
-
"container-arrow-position-top-left": "awsui_container-arrow-position-top-
|
|
44
|
-
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-
|
|
45
|
-
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-
|
|
46
|
-
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-
|
|
47
|
-
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-
|
|
48
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
49
|
-
"refresh": "
|
|
50
|
-
"root": "
|
|
51
|
-
"trigger": "
|
|
52
|
-
"trigger-type-text": "awsui_trigger-type-
|
|
53
|
-
"trigger-inner-text": "awsui_trigger-inner-
|
|
54
|
-
"popover-content": "awsui_popover-
|
|
5
|
+
"arrow": "awsui_arrow_xjuzf_106nh_185",
|
|
6
|
+
"arrow-outer": "awsui_arrow-outer_xjuzf_106nh_189",
|
|
7
|
+
"arrow-inner": "awsui_arrow-inner_xjuzf_106nh_189",
|
|
8
|
+
"arrow-position-right-top": "awsui_arrow-position-right-top_xjuzf_106nh_220",
|
|
9
|
+
"arrow-position-right-bottom": "awsui_arrow-position-right-bottom_xjuzf_106nh_220",
|
|
10
|
+
"arrow-position-left-top": "awsui_arrow-position-left-top_xjuzf_106nh_223",
|
|
11
|
+
"arrow-position-left-bottom": "awsui_arrow-position-left-bottom_xjuzf_106nh_223",
|
|
12
|
+
"arrow-position-top-center": "awsui_arrow-position-top-center_xjuzf_106nh_226",
|
|
13
|
+
"arrow-position-top-right": "awsui_arrow-position-top-right_xjuzf_106nh_226",
|
|
14
|
+
"arrow-position-top-left": "awsui_arrow-position-top-left_xjuzf_106nh_226",
|
|
15
|
+
"arrow-position-top-responsive": "awsui_arrow-position-top-responsive_xjuzf_106nh_226",
|
|
16
|
+
"arrow-position-bottom-center": "awsui_arrow-position-bottom-center_xjuzf_106nh_229",
|
|
17
|
+
"arrow-position-bottom-right": "awsui_arrow-position-bottom-right_xjuzf_106nh_229",
|
|
18
|
+
"arrow-position-bottom-left": "awsui_arrow-position-bottom-left_xjuzf_106nh_229",
|
|
19
|
+
"arrow-position-bottom-responsive": "awsui_arrow-position-bottom-responsive_xjuzf_106nh_229",
|
|
20
|
+
"body": "awsui_body_xjuzf_106nh_325",
|
|
21
|
+
"body-overflow-visible": "awsui_body-overflow-visible_xjuzf_106nh_341",
|
|
22
|
+
"has-dismiss": "awsui_has-dismiss_xjuzf_106nh_345",
|
|
23
|
+
"dismiss": "awsui_dismiss_xjuzf_106nh_350",
|
|
24
|
+
"dismiss-control": "awsui_dismiss-control_xjuzf_106nh_357",
|
|
25
|
+
"header-row": "awsui_header-row_xjuzf_106nh_361",
|
|
26
|
+
"header": "awsui_header_xjuzf_106nh_361",
|
|
27
|
+
"content": "awsui_content_xjuzf_106nh_387",
|
|
28
|
+
"content-overflow-visible": "awsui_content-overflow-visible_xjuzf_106nh_395",
|
|
29
|
+
"container": "awsui_container_xjuzf_106nh_491",
|
|
30
|
+
"container-body": "awsui_container-body_xjuzf_106nh_499",
|
|
31
|
+
"container-body-variant-annotation": "awsui_container-body-variant-annotation_xjuzf_106nh_516",
|
|
32
|
+
"container-body-size-small": "awsui_container-body-size-small_xjuzf_106nh_521",
|
|
33
|
+
"fixed-width": "awsui_fixed-width_xjuzf_106nh_524",
|
|
34
|
+
"container-body-size-medium": "awsui_container-body-size-medium_xjuzf_106nh_528",
|
|
35
|
+
"container-body-size-large": "awsui_container-body-size-large_xjuzf_106nh_535",
|
|
36
|
+
"container-arrow": "awsui_container-arrow_xjuzf_106nh_547",
|
|
37
|
+
"container-arrow-position-right-top": "awsui_container-arrow-position-right-top_xjuzf_106nh_551",
|
|
38
|
+
"container-arrow-position-right-bottom": "awsui_container-arrow-position-right-bottom_xjuzf_106nh_551",
|
|
39
|
+
"container-arrow-position-left-top": "awsui_container-arrow-position-left-top_xjuzf_106nh_563",
|
|
40
|
+
"container-arrow-position-left-bottom": "awsui_container-arrow-position-left-bottom_xjuzf_106nh_563",
|
|
41
|
+
"container-arrow-position-top-center": "awsui_container-arrow-position-top-center_xjuzf_106nh_575",
|
|
42
|
+
"container-arrow-position-top-right": "awsui_container-arrow-position-top-right_xjuzf_106nh_575",
|
|
43
|
+
"container-arrow-position-top-left": "awsui_container-arrow-position-top-left_xjuzf_106nh_575",
|
|
44
|
+
"container-arrow-position-top-responsive": "awsui_container-arrow-position-top-responsive_xjuzf_106nh_575",
|
|
45
|
+
"container-arrow-position-bottom-center": "awsui_container-arrow-position-bottom-center_xjuzf_106nh_591",
|
|
46
|
+
"container-arrow-position-bottom-right": "awsui_container-arrow-position-bottom-right_xjuzf_106nh_595",
|
|
47
|
+
"container-arrow-position-bottom-left": "awsui_container-arrow-position-bottom-left_xjuzf_106nh_599",
|
|
48
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_xjuzf_106nh_1",
|
|
49
|
+
"refresh": "awsui_refresh_xjuzf_106nh_717",
|
|
50
|
+
"root": "awsui_root_xjuzf_106nh_739",
|
|
51
|
+
"trigger": "awsui_trigger_xjuzf_106nh_754",
|
|
52
|
+
"trigger-type-text": "awsui_trigger-type-text_xjuzf_106nh_761",
|
|
53
|
+
"trigger-inner-text": "awsui_trigger-inner-text_xjuzf_106nh_790",
|
|
54
|
+
"popover-content": "awsui_popover-content_xjuzf_106nh_794"
|
|
55
55
|
};
|
|
56
56
|
|