@cloudscape-design/components 3.0.494 → 3.0.496
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/alert/styles.css.js +25 -25
- package/alert/styles.scoped.css +45 -51
- package/alert/styles.selectors.js +25 -25
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +21 -24
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +32 -35
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/visual-refresh/styles.css.js +80 -80
- package/app-layout/visual-refresh/styles.scoped.css +175 -181
- package/app-layout/visual-refresh/styles.selectors.js +80 -80
- package/attribute-editor/styles.css.js +14 -14
- package/attribute-editor/styles.scoped.css +27 -30
- package/attribute-editor/styles.selectors.js +14 -14
- package/badge/styles.css.js +5 -5
- package/badge/styles.scoped.css +8 -11
- package/badge/styles.selectors.js +5 -5
- package/breadcrumb-group/styles.css.js +7 -7
- package/breadcrumb-group/styles.scoped.css +18 -24
- package/breadcrumb-group/styles.selectors.js +7 -7
- package/button/styles.css.js +20 -20
- package/button/styles.scoped.css +154 -157
- package/button/styles.selectors.js +20 -20
- package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -11
- package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/calendar/styles.css.js +18 -18
- package/calendar/styles.scoped.css +41 -44
- package/calendar/styles.selectors.js +18 -18
- package/cards/styles.css.js +39 -39
- package/cards/styles.scoped.css +52 -55
- package/cards/styles.selectors.js +39 -39
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +8 -11
- package/checkbox/styles.selectors.js +3 -3
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +132 -135
- package/code-editor/styles.selectors.js +32 -32
- package/collection-preferences/content-display/styles.css.js +11 -11
- package/collection-preferences/content-display/styles.scoped.css +20 -23
- package/collection-preferences/content-display/styles.selectors.js +11 -11
- package/collection-preferences/styles.css.js +37 -37
- package/collection-preferences/styles.scoped.css +47 -50
- package/collection-preferences/styles.selectors.js +37 -37
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +46 -49
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +29 -29
- package/container/styles.scoped.css +55 -58
- package/container/styles.selectors.js +29 -29
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +12 -15
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +49 -52
- package/date-range-picker/styles.selectors.js +38 -38
- package/drawer/styles.css.js +3 -3
- package/drawer/styles.scoped.css +11 -14
- package/drawer/styles.selectors.js +3 -3
- package/expandable-section/styles.css.js +32 -32
- package/expandable-section/styles.scoped.css +65 -68
- package/expandable-section/styles.selectors.js +32 -32
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +149 -152
- package/flashbar/styles.selectors.js +47 -47
- package/form/styles.css.js +9 -9
- package/form/styles.scoped.css +11 -14
- package/form/styles.selectors.js +9 -9
- package/form-field/styles.css.js +19 -19
- package/form-field/styles.scoped.css +32 -35
- package/form-field/styles.selectors.js +19 -19
- package/grid/styles.css.js +53 -53
- package/grid/styles.scoped.css +57 -60
- package/grid/styles.selectors.js +53 -53
- package/header/styles.css.js +34 -34
- package/header/styles.scoped.css +53 -56
- package/header/styles.selectors.js +34 -34
- package/help-panel/styles.css.js +4 -4
- package/help-panel/styles.scoped.css +66 -69
- package/help-panel/styles.selectors.js +4 -4
- package/input/styles.css.js +12 -12
- package/input/styles.scoped.css +33 -36
- package/input/styles.selectors.js +12 -12
- package/internal/components/button-trigger/styles.css.js +10 -10
- package/internal/components/button-trigger/styles.scoped.css +27 -30
- package/internal/components/button-trigger/styles.selectors.js +10 -10
- package/internal/components/chart-filter/styles.css.js +3 -3
- package/internal/components/chart-filter/styles.scoped.css +6 -9
- package/internal/components/chart-filter/styles.selectors.js +3 -3
- package/internal/components/chart-legend/styles.css.js +6 -6
- package/internal/components/chart-legend/styles.scoped.css +18 -21
- package/internal/components/chart-legend/styles.selectors.js +6 -6
- package/internal/components/chart-popover/styles.css.js +3 -3
- package/internal/components/chart-popover/styles.scoped.css +6 -9
- package/internal/components/chart-popover/styles.selectors.js +3 -3
- package/internal/components/chart-series-details/styles.css.js +20 -20
- package/internal/components/chart-series-details/styles.scoped.css +42 -51
- package/internal/components/chart-series-details/styles.selectors.js +20 -20
- package/internal/components/chart-series-marker/styles.css.js +5 -5
- package/internal/components/chart-series-marker/styles.scoped.css +10 -13
- package/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/internal/components/chart-wrapper/styles.css.js +9 -9
- package/internal/components/chart-wrapper/styles.scoped.css +12 -15
- package/internal/components/chart-wrapper/styles.selectors.js +9 -9
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +38 -41
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/dropdown-footer/styles.css.js +3 -3
- package/internal/components/dropdown-footer/styles.scoped.css +6 -9
- package/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/internal/components/dropdown-status/styles.css.js +2 -2
- package/internal/components/dropdown-status/styles.scoped.css +5 -8
- package/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/internal/components/focus-lock/utils.d.ts +1 -0
- package/internal/components/focus-lock/utils.d.ts.map +1 -1
- package/internal/components/focus-lock/utils.js +4 -3
- package/internal/components/focus-lock/utils.js.map +1 -1
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +16 -19
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/option/styles.css.js +17 -17
- package/internal/components/option/styles.scoped.css +32 -35
- package/internal/components/option/styles.selectors.js +17 -17
- package/internal/components/options-list/styles.css.js +2 -2
- package/internal/components/options-list/styles.scoped.css +5 -8
- package/internal/components/options-list/styles.selectors.js +2 -2
- package/internal/components/token-list/styles.css.js +9 -9
- package/internal/components/token-list/styles.scoped.css +23 -26
- package/internal/components/token-list/styles.selectors.js +9 -9
- package/internal/context/single-tab-stop-navigation-context.d.ts +9 -4
- package/internal/context/single-tab-stop-navigation-context.d.ts.map +1 -1
- package/internal/context/single-tab-stop-navigation-context.js +15 -5
- package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/scrollable-containers.d.ts +2 -1
- package/internal/utils/scrollable-containers.d.ts.map +1 -1
- package/internal/utils/scrollable-containers.js +11 -2
- package/internal/utils/scrollable-containers.js.map +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +74 -77
- package/link/styles.selectors.js +20 -20
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +44 -50
- package/modal/styles.selectors.js +23 -23
- package/multiselect/styles.css.js +2 -2
- package/multiselect/styles.scoped.css +5 -8
- package/multiselect/styles.selectors.js +2 -2
- package/package.json +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +26 -29
- package/pagination/styles.selectors.js +9 -9
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +72 -81
- package/popover/styles.selectors.js +50 -50
- package/popover/use-popover-position.d.ts.map +1 -1
- package/popover/use-popover-position.js +4 -2
- package/popover/use-popover-position.js.map +1 -1
- package/progress-bar/styles.css.js +18 -18
- package/progress-bar/styles.scoped.css +35 -38
- package/progress-bar/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +31 -31
- package/property-filter/styles.scoped.css +36 -39
- package/property-filter/styles.selectors.js +31 -31
- package/radio-group/styles.css.js +9 -9
- package/radio-group/styles.scoped.css +18 -21
- package/radio-group/styles.selectors.js +9 -9
- package/segmented-control/styles.css.js +14 -14
- package/segmented-control/styles.scoped.css +36 -39
- package/segmented-control/styles.selectors.js +14 -14
- package/select/styles.css.js +1 -1
- package/select/styles.scoped.css +4 -7
- package/select/styles.selectors.js +1 -1
- package/side-navigation/styles.css.js +28 -28
- package/side-navigation/styles.scoped.css +41 -44
- package/side-navigation/styles.selectors.js +28 -28
- package/split-panel/styles.css.js +55 -55
- package/split-panel/styles.scoped.css +78 -81
- package/split-panel/styles.selectors.js +55 -55
- package/table/resizer/styles.css.js +8 -8
- package/table/resizer/styles.scoped.css +17 -20
- package/table/resizer/styles.selectors.js +8 -8
- package/table/table-role/grid-navigation.d.ts.map +1 -1
- package/table/table-role/grid-navigation.js +73 -41
- package/table/table-role/grid-navigation.js.map +1 -1
- package/table/table-role/utils.d.ts +1 -16
- package/table/table-role/utils.d.ts.map +1 -1
- package/table/table-role/utils.js +0 -53
- package/table/table-role/utils.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +42 -45
- package/tabs/styles.selectors.js +21 -21
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +63 -66
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/styles.css.js +3 -3
- package/text-filter/styles.scoped.css +6 -9
- package/text-filter/styles.selectors.js +3 -3
- package/textarea/styles.css.js +4 -4
- package/textarea/styles.scoped.css +15 -18
- package/textarea/styles.selectors.js +4 -4
- package/tiles/styles.css.js +29 -29
- package/tiles/styles.scoped.css +76 -82
- package/tiles/styles.selectors.js +29 -29
- package/toggle/styles.css.js +8 -8
- package/toggle/styles.scoped.css +16 -19
- package/toggle/styles.selectors.js +8 -8
- package/token-group/styles.css.js +8 -8
- package/token-group/styles.scoped.css +19 -22
- package/token-group/styles.selectors.js +8 -8
- package/top-navigation/1.0-beta/styles.css.js +25 -25
- package/top-navigation/1.0-beta/styles.scoped.css +45 -48
- package/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +75 -84
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +24 -27
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +36 -45
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/tutorial-panel/styles.css.js +1 -1
- package/tutorial-panel/styles.scoped.css +4 -7
- package/tutorial-panel/styles.selectors.js +1 -1
- package/wizard/styles.css.js +31 -31
- package/wizard/styles.scoped.css +65 -68
- package/wizard/styles.selectors.js +31 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-popover-position.js","sourceRoot":"lib/default/","sources":["popover/use-popover-position.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAc,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,GAYb;IACC,MAAM,2BAA2B,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAC1E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACtE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GA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AC,eAAe,CAAC,qBAAqB,EAAE,CAAC;IACvE,OAAO;QACL,GAAG;QACH,IAAI;QACJ,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,WAAW;QAC3C,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,YAAY;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useCallback, useRef, useState } from 'react';\nimport { BoundingBox, InternalPosition, Offset, PopoverProps } from './interfaces';\nimport { calculatePosition, getDimensions, getOffsetDimensions } from './utils/positions';\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport { calculateScroll, scrollRectangleIntoView } from '../internal/utils/scrollable-containers';\nimport { getContainingBlock } from '../internal/utils/dom';\n\nexport default function usePopoverPosition({\n popoverRef,\n bodyRef,\n arrowRef,\n trackRef,\n contentRef,\n allowScrollToFit,\n allowVerticalOverflow,\n preferredPosition,\n renderWithPortal,\n keepPosition,\n}: {\n popoverRef: React.RefObject<HTMLDivElement | null>;\n bodyRef: React.RefObject<HTMLDivElement | null>;\n arrowRef: React.RefObject<HTMLDivElement | null>;\n trackRef: React.RefObject<Element | null>;\n contentRef: React.RefObject<HTMLDivElement | null>;\n allowScrollToFit?: boolean;\n allowVerticalOverflow?: boolean;\n preferredPosition: PopoverProps.Position;\n renderWithPortal?: boolean;\n keepPosition?: boolean;\n}) {\n const previousInternalPositionRef = useRef<InternalPosition | null>(null);\n const [popoverStyle, setPopoverStyle] = useState<Partial<Offset>>({});\n const [internalPosition, setInternalPosition] = useState<InternalPosition | null>(null);\n\n // Store the handler in a ref so that it can still be replaced from outside of the listener closure.\n const positionHandlerRef = useRef<() => void>(() => {});\n\n const updatePositionHandler = useCallback(\n (onContentResize = false) => {\n if (!trackRef.current || !popoverRef.current || !bodyRef.current || !contentRef.current || !arrowRef.current) {\n return;\n }\n\n // Get important elements\n const popover = popoverRef.current;\n const body = bodyRef.current;\n const arrow = arrowRef.current;\n const document = popover.ownerDocument;\n const track = trackRef.current;\n\n // If the popover body isn't being rendered for whatever reason (e.g. \"display: none\" or JSDOM),\n // or track does not belong to the document - bail on calculating dimensions.\n const { offsetWidth, offsetHeight } = getOffsetDimensions(popover);\n if (offsetWidth === 0 || offsetHeight === 0 || !nodeContains(document.body, track)) {\n return;\n }\n\n // Imperatively move body off-screen to give it room to expand.\n // Not doing this in React because this recalculation should happen\n // in the span of a single frame without rerendering anything.\n const prevTop = popover.style.top;\n const prevLeft = popover.style.left;\n\n popover.style.top = '0';\n popover.style.left = '0';\n // Imperatively remove body styles that can remain from the previous computation.\n body.style.maxHeight = '';\n body.style.overflowX = '';\n body.style.overflowY = '';\n\n // Get rects representing key elements\n // Use getComputedStyle for arrowRect to avoid modifications made by transform\n const viewportRect = getViewportRect(document.defaultView!);\n const trackRect = track.getBoundingClientRect();\n const arrowRect = getDimensions(arrow);\n const containingBlock = getContainingBlock(popover);\n const containingBlockRect = containingBlock ? containingBlock.getBoundingClientRect() : viewportRect;\n\n const bodyBorderWidth = getBorderWidth(body);\n const contentRect = contentRef.current.getBoundingClientRect();\n const contentBoundingBox = {\n width: contentRect.width + 2 * bodyBorderWidth,\n height: contentRect.height + 2 * bodyBorderWidth,\n };\n\n // When keepPosition is true and the recalculation was triggered by a resize of the popover content,\n // we maintain the previously defined internal position,\n // but we still call calculatePosition to know if the popover should be scrollable.\n const shouldKeepPosition = keepPosition && onContentResize && !!previousInternalPositionRef.current;\n const fixedInternalPosition = (shouldKeepPosition && previousInternalPositionRef.current) ?? undefined;\n\n // Calculate the arrow direction and viewport-relative position of the popover.\n const {\n scrollable,\n internalPosition: newInternalPosition,\n rect,\n } = calculatePosition({\n preferredPosition,\n fixedInternalPosition,\n trigger: trackRect,\n arrow: arrowRect,\n body: contentBoundingBox,\n container: containingBlock ? containingBlockRect : getDocumentRect(document),\n viewport: viewportRect,\n renderWithPortal,\n allowVerticalOverflow,\n });\n\n // Get the position of the popover relative to the offset parent.\n const popoverOffset = toRelativePosition(rect, containingBlockRect);\n\n // Cache the distance between the trigger and the popover (which stays the same as you scroll),\n // and use that to recalculate the new popover position.\n const trackRelativeOffset = toRelativePosition(popoverOffset, toRelativePosition(trackRect, containingBlockRect));\n\n // Bring back the container to its original position to prevent any flashing.\n popover.style.top = prevTop;\n popover.style.left = prevLeft;\n\n // Allow popover body to scroll if can't fit the popover into the container/viewport otherwise.\n if (scrollable) {\n body.style.maxHeight = rect.height + 'px';\n body.style.overflowX = 'hidden';\n body.style.overflowY = 'auto';\n }\n\n // Remember the internal position in case we want to keep it later.\n previousInternalPositionRef.current = newInternalPosition;\n setInternalPosition(newInternalPosition);\n\n const shouldScroll = allowScrollToFit && !shouldKeepPosition;\n\n // Position the popover\n const top = shouldScroll ? popoverOffset.top + calculateScroll(rect) : popoverOffset.top;\n setPopoverStyle({ top, left: popoverOffset.left });\n if (shouldScroll) {\n scrollRectangleIntoView(rect);\n }\n\n positionHandlerRef.current = () => {\n const newTrackOffset = toRelativePosition(\n track.getBoundingClientRect(),\n containingBlock ? containingBlock.getBoundingClientRect() : viewportRect\n );\n setPopoverStyle({\n top: newTrackOffset.top + trackRelativeOffset.top,\n left: newTrackOffset.left + trackRelativeOffset.left,\n });\n };\n },\n [\n trackRef,\n popoverRef,\n bodyRef,\n contentRef,\n arrowRef,\n keepPosition,\n allowScrollToFit,\n preferredPosition,\n renderWithPortal,\n allowVerticalOverflow,\n ]\n );\n return { updatePositionHandler, popoverStyle, internalPosition, positionHandlerRef };\n}\n\nfunction getBorderWidth(element: HTMLElement) {\n return parseInt(getComputedStyle(element).borderWidth) || 0;\n}\n\n/**\n * Convert a viewport-relative offset to an element-relative offset.\n */\nfunction toRelativePosition(element: Offset, parent: Offset): Offset {\n return {\n top: element.top - parent.top,\n left: element.left - parent.left,\n };\n}\n\n/**\n * Get a BoundingBox that represents the visible viewport.\n */\nfunction getViewportRect(window: Window): BoundingBox {\n return {\n top: 0,\n left: 0,\n width: window.innerWidth,\n height: window.innerHeight,\n };\n}\n\nfunction getDocumentRect(document: Document): BoundingBox {\n const { top, left } = document.documentElement.getBoundingClientRect();\n return {\n top,\n left,\n width: document.documentElement.scrollWidth,\n height: document.documentElement.scrollHeight,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"use-popover-position.js","sourceRoot":"lib/default/","sources":["popover/use-popover-position.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAc,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,GAYb;IACC,MAAM,2BAA2B,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAC1E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAkB,EAAE,CAAC,CAAC;IACtE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAA0B,IAAI,CAAC,CAAC;IAExF,oGAAoG;IACpG,MAAM,kBAAkB,GAAG,MAAM,CAAa,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAExD,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,eAAe,GAAG,KAAK,EAAE,EAAE;;QAC1B,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,CAAC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C,YAAY;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useCallback, useRef, useState } from 'react';\nimport { BoundingBox, InternalPosition, Offset, PopoverProps } from './interfaces';\nimport { calculatePosition, getDimensions, getOffsetDimensions } from './utils/positions';\nimport { nodeContains } from '@cloudscape-design/component-toolkit/dom';\nimport {\n calculateScroll,\n getFirstScrollableParent,\n scrollRectangleIntoView,\n} from '../internal/utils/scrollable-containers';\nimport { getContainingBlock } from '../internal/utils/dom';\n\nexport default function usePopoverPosition({\n popoverRef,\n bodyRef,\n arrowRef,\n trackRef,\n contentRef,\n allowScrollToFit,\n allowVerticalOverflow,\n preferredPosition,\n renderWithPortal,\n keepPosition,\n}: {\n popoverRef: React.RefObject<HTMLDivElement | null>;\n bodyRef: React.RefObject<HTMLDivElement | null>;\n arrowRef: React.RefObject<HTMLDivElement | null>;\n trackRef: React.RefObject<Element | null>;\n contentRef: React.RefObject<HTMLDivElement | null>;\n allowScrollToFit?: boolean;\n allowVerticalOverflow?: boolean;\n preferredPosition: PopoverProps.Position;\n renderWithPortal?: boolean;\n keepPosition?: boolean;\n}) {\n const previousInternalPositionRef = useRef<InternalPosition | null>(null);\n const [popoverStyle, setPopoverStyle] = useState<Partial<Offset>>({});\n const [internalPosition, setInternalPosition] = useState<InternalPosition | null>(null);\n\n // Store the handler in a ref so that it can still be replaced from outside of the listener closure.\n const positionHandlerRef = useRef<() => void>(() => {});\n\n const updatePositionHandler = useCallback(\n (onContentResize = false) => {\n if (!trackRef.current || !popoverRef.current || !bodyRef.current || !contentRef.current || !arrowRef.current) {\n return;\n }\n\n // Get important elements\n const popover = popoverRef.current;\n const body = bodyRef.current;\n const arrow = arrowRef.current;\n const document = popover.ownerDocument;\n const track = trackRef.current;\n\n // If the popover body isn't being rendered for whatever reason (e.g. \"display: none\" or JSDOM),\n // or track does not belong to the document - bail on calculating dimensions.\n const { offsetWidth, offsetHeight } = getOffsetDimensions(popover);\n if (offsetWidth === 0 || offsetHeight === 0 || !nodeContains(document.body, track)) {\n return;\n }\n\n // Imperatively move body off-screen to give it room to expand.\n // Not doing this in React because this recalculation should happen\n // in the span of a single frame without rerendering anything.\n const prevTop = popover.style.top;\n const prevLeft = popover.style.left;\n\n popover.style.top = '0';\n popover.style.left = '0';\n // Imperatively remove body styles that can remain from the previous computation.\n body.style.maxHeight = '';\n body.style.overflowX = '';\n body.style.overflowY = '';\n\n // Get rects representing key elements\n // Use getComputedStyle for arrowRect to avoid modifications made by transform\n const viewportRect = getViewportRect(document.defaultView!);\n const trackRect = track.getBoundingClientRect();\n const arrowRect = getDimensions(arrow);\n const containingBlock = getContainingBlock(popover);\n const containingBlockRect = containingBlock ? containingBlock.getBoundingClientRect() : viewportRect;\n\n const bodyBorderWidth = getBorderWidth(body);\n const contentRect = contentRef.current.getBoundingClientRect();\n const contentBoundingBox = {\n width: contentRect.width + 2 * bodyBorderWidth,\n height: contentRect.height + 2 * bodyBorderWidth,\n };\n\n // When keepPosition is true and the recalculation was triggered by a resize of the popover content,\n // we maintain the previously defined internal position,\n // but we still call calculatePosition to know if the popover should be scrollable.\n const shouldKeepPosition = keepPosition && onContentResize && !!previousInternalPositionRef.current;\n const fixedInternalPosition = (shouldKeepPosition && previousInternalPositionRef.current) ?? undefined;\n\n // Calculate the arrow direction and viewport-relative position of the popover.\n const {\n scrollable,\n internalPosition: newInternalPosition,\n rect,\n } = calculatePosition({\n preferredPosition,\n fixedInternalPosition,\n trigger: trackRect,\n arrow: arrowRect,\n body: contentBoundingBox,\n container: containingBlock ? containingBlockRect : getDocumentRect(document),\n viewport: viewportRect,\n renderWithPortal,\n allowVerticalOverflow,\n });\n\n // Get the position of the popover relative to the offset parent.\n const popoverOffset = toRelativePosition(rect, containingBlockRect);\n\n // Cache the distance between the trigger and the popover (which stays the same as you scroll),\n // and use that to recalculate the new popover position.\n const trackRelativeOffset = toRelativePosition(popoverOffset, toRelativePosition(trackRect, containingBlockRect));\n\n // Bring back the container to its original position to prevent any flashing.\n popover.style.top = prevTop;\n popover.style.left = prevLeft;\n\n // Allow popover body to scroll if can't fit the popover into the container/viewport otherwise.\n if (scrollable) {\n body.style.maxHeight = rect.height + 'px';\n body.style.overflowX = 'hidden';\n body.style.overflowY = 'auto';\n }\n\n // Remember the internal position in case we want to keep it later.\n previousInternalPositionRef.current = newInternalPosition;\n setInternalPosition(newInternalPosition);\n\n const shouldScroll = allowScrollToFit && !shouldKeepPosition;\n\n // Position the popover\n const top = shouldScroll ? popoverOffset.top + calculateScroll(rect) : popoverOffset.top;\n setPopoverStyle({ top, left: popoverOffset.left });\n\n // Scroll if necessary\n if (shouldScroll) {\n const scrollableParent = getFirstScrollableParent(popover);\n scrollRectangleIntoView(rect, scrollableParent);\n }\n\n positionHandlerRef.current = () => {\n const newTrackOffset = toRelativePosition(\n track.getBoundingClientRect(),\n containingBlock ? containingBlock.getBoundingClientRect() : viewportRect\n );\n setPopoverStyle({\n top: newTrackOffset.top + trackRelativeOffset.top,\n left: newTrackOffset.left + trackRelativeOffset.left,\n });\n };\n },\n [\n trackRef,\n popoverRef,\n bodyRef,\n contentRef,\n arrowRef,\n keepPosition,\n allowScrollToFit,\n preferredPosition,\n renderWithPortal,\n allowVerticalOverflow,\n ]\n );\n return { updatePositionHandler, popoverStyle, internalPosition, positionHandlerRef };\n}\n\nfunction getBorderWidth(element: HTMLElement) {\n return parseInt(getComputedStyle(element).borderWidth) || 0;\n}\n\n/**\n * Convert a viewport-relative offset to an element-relative offset.\n */\nfunction toRelativePosition(element: Offset, parent: Offset): Offset {\n return {\n top: element.top - parent.top,\n left: element.left - parent.left,\n };\n}\n\n/**\n * Get a BoundingBox that represents the visible viewport.\n */\nfunction getViewportRect(window: Window): BoundingBox {\n return {\n top: 0,\n left: 0,\n width: window.innerWidth,\n height: window.innerHeight,\n };\n}\n\nfunction getDocumentRect(document: Document): BoundingBox {\n const { top, left } = document.documentElement.getBoundingClientRect();\n return {\n top,\n left,\n width: document.documentElement.scrollWidth,\n height: document.documentElement.scrollHeight,\n };\n}\n"]}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"progress": "
|
|
5
|
-
"result-state": "awsui_result-
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"root": "
|
|
8
|
-
"with-result-button": "awsui_with-result-
|
|
9
|
-
"result-text": "awsui_result-
|
|
10
|
-
"result-container-error": "awsui_result-container-
|
|
11
|
-
"result-container-success": "awsui_result-container-
|
|
12
|
-
"result-button": "awsui_result-
|
|
13
|
-
"word-wrap": "awsui_word-
|
|
14
|
-
"label-flash": "awsui_label-
|
|
15
|
-
"label-key-value": "awsui_label-key-
|
|
16
|
-
"flash": "
|
|
17
|
-
"progress-container": "awsui_progress-
|
|
18
|
-
"percentage-container": "awsui_percentage-
|
|
19
|
-
"percentage": "
|
|
20
|
-
"complete": "
|
|
21
|
-
"progress-in-flash": "awsui_progress-in-
|
|
4
|
+
"progress": "awsui_progress_11huc_jv86d_185",
|
|
5
|
+
"result-state": "awsui_result-state_11huc_jv86d_199",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_jv86d_1",
|
|
7
|
+
"root": "awsui_root_11huc_jv86d_221",
|
|
8
|
+
"with-result-button": "awsui_with-result-button_11huc_jv86d_256",
|
|
9
|
+
"result-text": "awsui_result-text_11huc_jv86d_260",
|
|
10
|
+
"result-container-error": "awsui_result-container-error_11huc_jv86d_264",
|
|
11
|
+
"result-container-success": "awsui_result-container-success_11huc_jv86d_264",
|
|
12
|
+
"result-button": "awsui_result-button_11huc_jv86d_268",
|
|
13
|
+
"word-wrap": "awsui_word-wrap_11huc_jv86d_273",
|
|
14
|
+
"label-flash": "awsui_label-flash_11huc_jv86d_278",
|
|
15
|
+
"label-key-value": "awsui_label-key-value_11huc_jv86d_282",
|
|
16
|
+
"flash": "awsui_flash_11huc_jv86d_290",
|
|
17
|
+
"progress-container": "awsui_progress-container_11huc_jv86d_294",
|
|
18
|
+
"percentage-container": "awsui_percentage-container_11huc_jv86d_301",
|
|
19
|
+
"percentage": "awsui_percentage_11huc_jv86d_301",
|
|
20
|
+
"complete": "awsui_complete_11huc_jv86d_336",
|
|
21
|
+
"progress-in-flash": "awsui_progress-in-flash_11huc_jv86d_351"
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -182,27 +182,27 @@ 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_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-value {
|
|
186
186
|
-webkit-transition: width var(--motion-duration-moderate-5k1phv, 135ms) linear;
|
|
187
187
|
transition: width var(--motion-duration-moderate-5k1phv, 135ms) linear;
|
|
188
188
|
}
|
|
189
189
|
@media (prefers-reduced-motion: reduce) {
|
|
190
|
-
.
|
|
190
|
+
.awsui_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-value {
|
|
191
191
|
animation: none;
|
|
192
192
|
-webkit-transition: none;
|
|
193
193
|
transition: none;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
.awsui-motion-disabled .
|
|
196
|
+
.awsui-motion-disabled .awsui_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-value {
|
|
197
197
|
animation: none;
|
|
198
198
|
-webkit-transition: none;
|
|
199
199
|
transition: none;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.awsui_result-
|
|
203
|
-
animation: awsui_awsui-motion-fade-
|
|
202
|
+
.awsui_result-state_11huc_jv86d_199:not(#\9) {
|
|
203
|
+
animation: awsui_awsui-motion-fade-in_11huc_jv86d_1 var(--motion-duration-transition-show-paced-9s9l5z, 180ms) var(--motion-easing-transition-show-paced-eobwvi, ease-out);
|
|
204
204
|
}
|
|
205
|
-
@keyframes awsui_awsui-motion-fade-
|
|
205
|
+
@keyframes awsui_awsui-motion-fade-in_11huc_jv86d_1 {
|
|
206
206
|
from {
|
|
207
207
|
opacity: 0.2;
|
|
208
208
|
}
|
|
@@ -211,29 +211,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
@media (prefers-reduced-motion: reduce) {
|
|
214
|
-
.awsui_result-
|
|
214
|
+
.awsui_result-state_11huc_jv86d_199:not(#\9) {
|
|
215
215
|
animation: none;
|
|
216
216
|
transition: none;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
.awsui-motion-disabled .awsui_result-
|
|
219
|
+
.awsui-motion-disabled .awsui_result-state_11huc_jv86d_199:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_jv86d_199:not(#\9) {
|
|
220
220
|
animation: none;
|
|
221
221
|
transition: none;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
225
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
224
|
+
.awsui_root_11huc_jv86d_221:not(#\9) {
|
|
226
225
|
border-collapse: separate;
|
|
227
226
|
border-spacing: 0;
|
|
227
|
+
box-sizing: border-box;
|
|
228
228
|
caption-side: top;
|
|
229
229
|
cursor: auto;
|
|
230
|
-
direction:
|
|
230
|
+
direction: inherit;
|
|
231
231
|
empty-cells: show;
|
|
232
232
|
font-family: serif;
|
|
233
233
|
font-size: medium;
|
|
234
234
|
font-style: normal;
|
|
235
235
|
font-variant: normal;
|
|
236
|
-
font-weight:
|
|
236
|
+
font-weight: 400;
|
|
237
237
|
font-stretch: normal;
|
|
238
238
|
line-height: normal;
|
|
239
239
|
-webkit-hyphens: none;
|
|
@@ -242,15 +242,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
242
242
|
list-style: disc outside none;
|
|
243
243
|
tab-size: 8;
|
|
244
244
|
text-align: left;
|
|
245
|
-
text-align-last: auto;
|
|
246
245
|
text-indent: 0;
|
|
247
246
|
text-shadow: none;
|
|
248
247
|
text-transform: none;
|
|
249
248
|
visibility: visible;
|
|
250
249
|
white-space: normal;
|
|
251
|
-
widows: 2;
|
|
252
250
|
word-spacing: normal;
|
|
253
|
-
box-sizing: border-box;
|
|
254
251
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
255
252
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
256
253
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
@@ -260,33 +257,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
260
257
|
-moz-osx-font-smoothing: auto;
|
|
261
258
|
}
|
|
262
259
|
|
|
263
|
-
.awsui_with-result-
|
|
260
|
+
.awsui_with-result-button_11huc_jv86d_256:not(#\9) {
|
|
264
261
|
padding-right: var(--space-m-udix3p, 16px);
|
|
265
262
|
}
|
|
266
263
|
|
|
267
|
-
.awsui_result-
|
|
264
|
+
.awsui_result-text_11huc_jv86d_260:not(#\9) {
|
|
268
265
|
/* used in test-utils */
|
|
269
266
|
}
|
|
270
267
|
|
|
271
|
-
.awsui_result-container-
|
|
268
|
+
.awsui_result-container-error_11huc_jv86d_264:not(#\9), .awsui_result-container-success_11huc_jv86d_264:not(#\9) {
|
|
272
269
|
/* used in test-utils */
|
|
273
270
|
}
|
|
274
271
|
|
|
275
|
-
.awsui_result-
|
|
272
|
+
.awsui_result-button_11huc_jv86d_268:not(#\9) {
|
|
276
273
|
display: inline-block;
|
|
277
274
|
margin: var(--space-scaled-xxs-7597g1, 4px) 0;
|
|
278
275
|
}
|
|
279
276
|
|
|
280
|
-
.awsui_word-
|
|
277
|
+
.awsui_word-wrap_11huc_jv86d_273:not(#\9) {
|
|
281
278
|
min-width: 0;
|
|
282
279
|
word-break: break-word;
|
|
283
280
|
}
|
|
284
281
|
|
|
285
|
-
.awsui_label-
|
|
282
|
+
.awsui_label-flash_11huc_jv86d_278:not(#\9) {
|
|
286
283
|
color: "inherit";
|
|
287
284
|
font-weight: 700;
|
|
288
285
|
}
|
|
289
|
-
.awsui_label-key-
|
|
286
|
+
.awsui_label-key-value_11huc_jv86d_282:not(#\9) {
|
|
290
287
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
291
288
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
292
289
|
font-weight: var(--font-display-label-weight-815ja9, 700);
|
|
@@ -294,18 +291,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
294
291
|
margin-bottom: var(--space-scaled-xxxs-27y4hv, 2px);
|
|
295
292
|
}
|
|
296
293
|
|
|
297
|
-
.
|
|
294
|
+
.awsui_flash_11huc_jv86d_290:not(#\9) {
|
|
298
295
|
color: inherit;
|
|
299
296
|
}
|
|
300
297
|
|
|
301
|
-
.awsui_progress-
|
|
298
|
+
.awsui_progress-container_11huc_jv86d_294:not(#\9) {
|
|
302
299
|
display: flex;
|
|
303
300
|
align-items: center;
|
|
304
301
|
max-width: 800px;
|
|
305
302
|
height: var(--line-height-body-m-30ar75, 20px);
|
|
306
303
|
}
|
|
307
304
|
|
|
308
|
-
.awsui_percentage-
|
|
305
|
+
.awsui_percentage-container_11huc_jv86d_301:not(#\9) {
|
|
309
306
|
width: 33px;
|
|
310
307
|
flex-shrink: 0;
|
|
311
308
|
white-space: nowrap;
|
|
@@ -315,11 +312,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
315
312
|
letter-spacing: var(--letter-spacing-body-s-z9jkwp, 0.005em);
|
|
316
313
|
}
|
|
317
314
|
|
|
318
|
-
.
|
|
315
|
+
.awsui_percentage_11huc_jv86d_301:not(#\9) {
|
|
319
316
|
/* used in test-utils */
|
|
320
317
|
}
|
|
321
318
|
|
|
322
|
-
.
|
|
319
|
+
.awsui_progress_11huc_jv86d_185:not(#\9) {
|
|
323
320
|
width: 100%;
|
|
324
321
|
margin-right: var(--space-s-34lx8l, 12px);
|
|
325
322
|
min-width: 0;
|
|
@@ -329,44 +326,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
329
326
|
border-radius: 10px;
|
|
330
327
|
background-color: var(--color-background-progress-bar-layout-default-ktc0zl, #e9ebed);
|
|
331
328
|
}
|
|
332
|
-
.
|
|
329
|
+
.awsui_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-bar {
|
|
333
330
|
height: 4px;
|
|
334
331
|
border: 0 none;
|
|
335
332
|
box-sizing: border-box;
|
|
336
333
|
border-radius: 10px;
|
|
337
334
|
background-color: var(--color-background-progress-bar-layout-default-ktc0zl, #e9ebed);
|
|
338
335
|
}
|
|
339
|
-
.
|
|
336
|
+
.awsui_progress_11huc_jv86d_185:not(#\9)::-webkit-progress-value {
|
|
340
337
|
border-radius: 10px 0px 0px 10px;
|
|
341
338
|
background-color: var(--color-background-progress-bar-content-default-yvwdkl, #0972d3);
|
|
342
339
|
}
|
|
343
|
-
.
|
|
340
|
+
.awsui_progress_11huc_jv86d_185.awsui_complete_11huc_jv86d_336:not(#\9)::-webkit-progress-value {
|
|
344
341
|
border-radius: 10px;
|
|
345
342
|
}
|
|
346
|
-
.
|
|
343
|
+
.awsui_progress_11huc_jv86d_185:not(#\9)::-moz-progress-bar {
|
|
347
344
|
border-radius: 10px 0px 0px 10px;
|
|
348
345
|
background-color: var(--color-background-progress-bar-content-default-yvwdkl, #0972d3);
|
|
349
346
|
}
|
|
350
|
-
.
|
|
347
|
+
.awsui_progress_11huc_jv86d_185:not(#\9)::-ms-fill {
|
|
351
348
|
border-radius: 10px 0px 0px 10px;
|
|
352
349
|
background-color: #0073bb;
|
|
353
350
|
border: none;
|
|
354
351
|
}
|
|
355
|
-
.
|
|
352
|
+
.awsui_progress_11huc_jv86d_185.awsui_complete_11huc_jv86d_336:not(#\9)::-ms-fill {
|
|
356
353
|
border-radius: 10px;
|
|
357
354
|
}
|
|
358
|
-
.
|
|
355
|
+
.awsui_progress_11huc_jv86d_185.awsui_progress-in-flash_11huc_jv86d_351:not(#\9) {
|
|
359
356
|
background-color: var(--color-background-progress-bar-layout-in-flash-rlu77n, rgba(255, 255, 255, 0.25));
|
|
360
357
|
}
|
|
361
|
-
.
|
|
358
|
+
.awsui_progress_11huc_jv86d_185.awsui_progress-in-flash_11huc_jv86d_351:not(#\9)::-webkit-progress-bar {
|
|
362
359
|
background-color: var(--color-background-progress-bar-layout-in-flash-rlu77n, rgba(255, 255, 255, 0.25));
|
|
363
360
|
}
|
|
364
|
-
.
|
|
361
|
+
.awsui_progress_11huc_jv86d_185.awsui_progress-in-flash_11huc_jv86d_351:not(#\9)::-webkit-progress-value {
|
|
365
362
|
background-color: var(--color-background-progress-bar-content-in-flash-ccuxyt, #ffffff);
|
|
366
363
|
}
|
|
367
|
-
.
|
|
364
|
+
.awsui_progress_11huc_jv86d_185.awsui_progress-in-flash_11huc_jv86d_351:not(#\9)::-moz-progress-bar {
|
|
368
365
|
background-color: var(--color-background-progress-bar-content-in-flash-ccuxyt, #ffffff);
|
|
369
366
|
}
|
|
370
|
-
.
|
|
367
|
+
.awsui_progress_11huc_jv86d_185.awsui_progress-in-flash_11huc_jv86d_351:not(#\9)::-ms-fill {
|
|
371
368
|
background-color: rgba(255, 255, 255, 0.7);
|
|
372
369
|
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"progress": "
|
|
6
|
-
"result-state": "awsui_result-
|
|
7
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
8
|
-
"root": "
|
|
9
|
-
"with-result-button": "awsui_with-result-
|
|
10
|
-
"result-text": "awsui_result-
|
|
11
|
-
"result-container-error": "awsui_result-container-
|
|
12
|
-
"result-container-success": "awsui_result-container-
|
|
13
|
-
"result-button": "awsui_result-
|
|
14
|
-
"word-wrap": "awsui_word-
|
|
15
|
-
"label-flash": "awsui_label-
|
|
16
|
-
"label-key-value": "awsui_label-key-
|
|
17
|
-
"flash": "
|
|
18
|
-
"progress-container": "awsui_progress-
|
|
19
|
-
"percentage-container": "awsui_percentage-
|
|
20
|
-
"percentage": "
|
|
21
|
-
"complete": "
|
|
22
|
-
"progress-in-flash": "awsui_progress-in-
|
|
5
|
+
"progress": "awsui_progress_11huc_jv86d_185",
|
|
6
|
+
"result-state": "awsui_result-state_11huc_jv86d_199",
|
|
7
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_jv86d_1",
|
|
8
|
+
"root": "awsui_root_11huc_jv86d_221",
|
|
9
|
+
"with-result-button": "awsui_with-result-button_11huc_jv86d_256",
|
|
10
|
+
"result-text": "awsui_result-text_11huc_jv86d_260",
|
|
11
|
+
"result-container-error": "awsui_result-container-error_11huc_jv86d_264",
|
|
12
|
+
"result-container-success": "awsui_result-container-success_11huc_jv86d_264",
|
|
13
|
+
"result-button": "awsui_result-button_11huc_jv86d_268",
|
|
14
|
+
"word-wrap": "awsui_word-wrap_11huc_jv86d_273",
|
|
15
|
+
"label-flash": "awsui_label-flash_11huc_jv86d_278",
|
|
16
|
+
"label-key-value": "awsui_label-key-value_11huc_jv86d_282",
|
|
17
|
+
"flash": "awsui_flash_11huc_jv86d_290",
|
|
18
|
+
"progress-container": "awsui_progress-container_11huc_jv86d_294",
|
|
19
|
+
"percentage-container": "awsui_percentage-container_11huc_jv86d_301",
|
|
20
|
+
"percentage": "awsui_percentage_11huc_jv86d_301",
|
|
21
|
+
"complete": "awsui_complete_11huc_jv86d_336",
|
|
22
|
+
"progress-in-flash": "awsui_progress-in-flash_11huc_jv86d_351"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"search-field": "awsui_search-
|
|
6
|
-
"input-wrapper": "awsui_input-
|
|
7
|
-
"add-token": "awsui_add-
|
|
8
|
-
"tokens": "
|
|
9
|
-
"token-operator": "awsui_token-
|
|
10
|
-
"property-editor": "awsui_property-
|
|
11
|
-
"token-editor": "awsui_token-
|
|
12
|
-
"property-editor-form": "awsui_property-editor-
|
|
13
|
-
"token-editor-form": "awsui_token-editor-
|
|
14
|
-
"property-editor-field-property": "awsui_property-editor-field-
|
|
15
|
-
"token-editor-field-property": "awsui_token-editor-field-
|
|
16
|
-
"property-editor-field-operator": "awsui_property-editor-field-
|
|
17
|
-
"token-editor-field-operator": "awsui_token-editor-field-
|
|
18
|
-
"property-editor-field-value": "awsui_property-editor-field-
|
|
19
|
-
"token-editor-field-value": "awsui_token-editor-field-
|
|
20
|
-
"property-editor-cancel": "awsui_property-editor-
|
|
21
|
-
"token-editor-cancel": "awsui_token-editor-
|
|
22
|
-
"property-editor-submit": "awsui_property-editor-
|
|
23
|
-
"token-editor-submit": "awsui_token-editor-
|
|
24
|
-
"property-editor-actions": "awsui_property-editor-
|
|
25
|
-
"token-editor-actions": "awsui_token-editor-
|
|
26
|
-
"custom-content-wrapper": "awsui_custom-content-
|
|
27
|
-
"custom-control": "awsui_custom-
|
|
28
|
-
"input": "
|
|
29
|
-
"results": "
|
|
30
|
-
"token-trigger": "awsui_token-
|
|
31
|
-
"remove-all": "awsui_remove-
|
|
32
|
-
"token-label": "awsui_token-
|
|
33
|
-
"join-operation": "awsui_join-
|
|
34
|
-
"custom-filter-actions": "awsui_custom-filter-
|
|
4
|
+
"root": "awsui_root_1wzqe_1oi2m_93",
|
|
5
|
+
"search-field": "awsui_search-field_1wzqe_1oi2m_128",
|
|
6
|
+
"input-wrapper": "awsui_input-wrapper_1wzqe_1oi2m_134",
|
|
7
|
+
"add-token": "awsui_add-token_1wzqe_1oi2m_138",
|
|
8
|
+
"tokens": "awsui_tokens_1wzqe_1oi2m_145",
|
|
9
|
+
"token-operator": "awsui_token-operator_1wzqe_1oi2m_149",
|
|
10
|
+
"property-editor": "awsui_property-editor_1wzqe_1oi2m_153",
|
|
11
|
+
"token-editor": "awsui_token-editor_1wzqe_1oi2m_154",
|
|
12
|
+
"property-editor-form": "awsui_property-editor-form_1wzqe_1oi2m_158",
|
|
13
|
+
"token-editor-form": "awsui_token-editor-form_1wzqe_1oi2m_159",
|
|
14
|
+
"property-editor-field-property": "awsui_property-editor-field-property_1wzqe_1oi2m_162",
|
|
15
|
+
"token-editor-field-property": "awsui_token-editor-field-property_1wzqe_1oi2m_163",
|
|
16
|
+
"property-editor-field-operator": "awsui_property-editor-field-operator_1wzqe_1oi2m_166",
|
|
17
|
+
"token-editor-field-operator": "awsui_token-editor-field-operator_1wzqe_1oi2m_167",
|
|
18
|
+
"property-editor-field-value": "awsui_property-editor-field-value_1wzqe_1oi2m_170",
|
|
19
|
+
"token-editor-field-value": "awsui_token-editor-field-value_1wzqe_1oi2m_171",
|
|
20
|
+
"property-editor-cancel": "awsui_property-editor-cancel_1wzqe_1oi2m_174",
|
|
21
|
+
"token-editor-cancel": "awsui_token-editor-cancel_1wzqe_1oi2m_175",
|
|
22
|
+
"property-editor-submit": "awsui_property-editor-submit_1wzqe_1oi2m_178",
|
|
23
|
+
"token-editor-submit": "awsui_token-editor-submit_1wzqe_1oi2m_179",
|
|
24
|
+
"property-editor-actions": "awsui_property-editor-actions_1wzqe_1oi2m_182",
|
|
25
|
+
"token-editor-actions": "awsui_token-editor-actions_1wzqe_1oi2m_183",
|
|
26
|
+
"custom-content-wrapper": "awsui_custom-content-wrapper_1wzqe_1oi2m_201",
|
|
27
|
+
"custom-control": "awsui_custom-control_1wzqe_1oi2m_205",
|
|
28
|
+
"input": "awsui_input_1wzqe_1oi2m_134",
|
|
29
|
+
"results": "awsui_results_1wzqe_1oi2m_213",
|
|
30
|
+
"token-trigger": "awsui_token-trigger_1wzqe_1oi2m_219",
|
|
31
|
+
"remove-all": "awsui_remove-all_1wzqe_1oi2m_224",
|
|
32
|
+
"token-label": "awsui_token-label_1wzqe_1oi2m_225",
|
|
33
|
+
"join-operation": "awsui_join-operation_1wzqe_1oi2m_226",
|
|
34
|
+
"custom-filter-actions": "awsui_custom-filter-actions_1wzqe_1oi2m_227"
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -90,19 +90,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
94
|
-
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
93
|
+
.awsui_root_1wzqe_1oi2m_93:not(#\9) {
|
|
95
94
|
border-collapse: separate;
|
|
96
95
|
border-spacing: 0;
|
|
96
|
+
box-sizing: border-box;
|
|
97
97
|
caption-side: top;
|
|
98
98
|
cursor: auto;
|
|
99
|
-
direction:
|
|
99
|
+
direction: inherit;
|
|
100
100
|
empty-cells: show;
|
|
101
101
|
font-family: serif;
|
|
102
102
|
font-size: medium;
|
|
103
103
|
font-style: normal;
|
|
104
104
|
font-variant: normal;
|
|
105
|
-
font-weight:
|
|
105
|
+
font-weight: 400;
|
|
106
106
|
font-stretch: normal;
|
|
107
107
|
line-height: normal;
|
|
108
108
|
-webkit-hyphens: none;
|
|
@@ -111,15 +111,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
111
111
|
list-style: disc outside none;
|
|
112
112
|
tab-size: 8;
|
|
113
113
|
text-align: left;
|
|
114
|
-
text-align-last: auto;
|
|
115
114
|
text-indent: 0;
|
|
116
115
|
text-shadow: none;
|
|
117
116
|
text-transform: none;
|
|
118
117
|
visibility: visible;
|
|
119
118
|
white-space: normal;
|
|
120
|
-
widows: 2;
|
|
121
119
|
word-spacing: normal;
|
|
122
|
-
box-sizing: border-box;
|
|
123
120
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
124
121
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
125
122
|
color: var(--color-text-body-default-at06ol, #000716);
|
|
@@ -129,106 +126,106 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
129
126
|
-moz-osx-font-smoothing: auto;
|
|
130
127
|
}
|
|
131
128
|
|
|
132
|
-
.awsui_search-
|
|
129
|
+
.awsui_search-field_1wzqe_1oi2m_128:not(#\9) {
|
|
133
130
|
display: flex;
|
|
134
131
|
align-items: flex-end;
|
|
135
132
|
max-width: calc(688px - 2 * var(--space-l-t419sm, 20px));
|
|
136
133
|
}
|
|
137
134
|
|
|
138
|
-
.awsui_input-
|
|
135
|
+
.awsui_input-wrapper_1wzqe_1oi2m_134:not(#\9) {
|
|
139
136
|
flex-grow: 1;
|
|
140
137
|
}
|
|
141
138
|
|
|
142
|
-
.awsui_add-
|
|
139
|
+
.awsui_add-token_1wzqe_1oi2m_138:not(#\9) {
|
|
143
140
|
border-left: 1px solid var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
144
141
|
box-sizing: border-box;
|
|
145
142
|
margin-left: var(--space-m-udix3p, 16px);
|
|
146
143
|
padding-left: var(--space-m-udix3p, 16px);
|
|
147
144
|
}
|
|
148
145
|
|
|
149
|
-
.
|
|
146
|
+
.awsui_tokens_1wzqe_1oi2m_145:not(#\9) {
|
|
150
147
|
margin: var(--space-xs-zb16t3, 8px) 0;
|
|
151
148
|
}
|
|
152
149
|
|
|
153
|
-
.awsui_token-
|
|
150
|
+
.awsui_token-operator_1wzqe_1oi2m_149:not(#\9) {
|
|
154
151
|
font-weight: bold;
|
|
155
152
|
}
|
|
156
153
|
|
|
157
|
-
.awsui_property-
|
|
158
|
-
.awsui_token-
|
|
154
|
+
.awsui_property-editor_1wzqe_1oi2m_153:not(#\9),
|
|
155
|
+
.awsui_token-editor_1wzqe_1oi2m_154:not(#\9) {
|
|
159
156
|
-webkit-user-select: text;
|
|
160
157
|
user-select: text;
|
|
161
158
|
margin: var(--space-xxs-p8yyaw, 4px);
|
|
162
159
|
}
|
|
163
|
-
.awsui_property-editor-
|
|
164
|
-
.awsui_token-editor-
|
|
160
|
+
.awsui_property-editor-form_1wzqe_1oi2m_158:not(#\9),
|
|
161
|
+
.awsui_token-editor-form_1wzqe_1oi2m_159:not(#\9) {
|
|
165
162
|
margin-bottom: var(--space-scaled-l-0hpmd7, 20px);
|
|
166
163
|
}
|
|
167
|
-
.awsui_property-editor-field-
|
|
168
|
-
.awsui_token-editor-field-
|
|
164
|
+
.awsui_property-editor-field-property_1wzqe_1oi2m_162:not(#\9),
|
|
165
|
+
.awsui_token-editor-field-property_1wzqe_1oi2m_163:not(#\9) {
|
|
169
166
|
/* used in test-utils */
|
|
170
167
|
}
|
|
171
|
-
.awsui_property-editor-field-
|
|
172
|
-
.awsui_token-editor-field-
|
|
168
|
+
.awsui_property-editor-field-operator_1wzqe_1oi2m_166:not(#\9),
|
|
169
|
+
.awsui_token-editor-field-operator_1wzqe_1oi2m_167:not(#\9) {
|
|
173
170
|
margin-top: var(--space-scaled-l-0hpmd7, 20px);
|
|
174
171
|
}
|
|
175
|
-
.awsui_property-editor-field-
|
|
176
|
-
.awsui_token-editor-field-
|
|
172
|
+
.awsui_property-editor-field-value_1wzqe_1oi2m_170:not(#\9),
|
|
173
|
+
.awsui_token-editor-field-value_1wzqe_1oi2m_171:not(#\9) {
|
|
177
174
|
margin-top: var(--space-scaled-l-0hpmd7, 20px);
|
|
178
175
|
}
|
|
179
|
-
.awsui_property-editor-
|
|
180
|
-
.awsui_token-editor-
|
|
176
|
+
.awsui_property-editor-cancel_1wzqe_1oi2m_174:not(#\9),
|
|
177
|
+
.awsui_token-editor-cancel_1wzqe_1oi2m_175:not(#\9) {
|
|
181
178
|
margin-right: var(--space-xs-zb16t3, 8px);
|
|
182
179
|
}
|
|
183
|
-
.awsui_property-editor-
|
|
184
|
-
.awsui_token-editor-
|
|
180
|
+
.awsui_property-editor-submit_1wzqe_1oi2m_178:not(#\9),
|
|
181
|
+
.awsui_token-editor-submit_1wzqe_1oi2m_179:not(#\9) {
|
|
185
182
|
/* used in test-utils */
|
|
186
183
|
}
|
|
187
|
-
.awsui_property-editor-
|
|
188
|
-
.awsui_token-editor-
|
|
184
|
+
.awsui_property-editor-actions_1wzqe_1oi2m_182:not(#\9),
|
|
185
|
+
.awsui_token-editor-actions_1wzqe_1oi2m_183:not(#\9) {
|
|
189
186
|
display: flex;
|
|
190
187
|
justify-content: flex-end;
|
|
191
188
|
padding-top: var(--space-s-34lx8l, 12px);
|
|
192
189
|
border-top: 1px solid var(--color-border-dropdown-item-default-k36ra7, #b6bec9);
|
|
193
190
|
}
|
|
194
191
|
|
|
195
|
-
.awsui_token-editor-
|
|
192
|
+
.awsui_token-editor-actions_1wzqe_1oi2m_183:not(#\9) {
|
|
196
193
|
padding-right: calc(var(--space-m-udix3p, 16px) + var(--space-xxs-p8yyaw, 4px));
|
|
197
194
|
margin-left: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
|
|
198
195
|
margin-right: calc(-1 * var(--space-m-udix3p, 16px) + -1 * var(--space-xxs-p8yyaw, 4px));
|
|
199
196
|
}
|
|
200
197
|
|
|
201
|
-
.awsui_property-
|
|
198
|
+
.awsui_property-editor_1wzqe_1oi2m_153:not(#\9) {
|
|
202
199
|
padding: var(--space-m-udix3p, 16px);
|
|
203
200
|
overflow-y: auto;
|
|
204
201
|
}
|
|
205
202
|
|
|
206
|
-
.awsui_custom-content-
|
|
203
|
+
.awsui_custom-content-wrapper_1wzqe_1oi2m_201:not(#\9) {
|
|
207
204
|
display: contents;
|
|
208
205
|
}
|
|
209
206
|
|
|
210
|
-
.awsui_custom-
|
|
207
|
+
.awsui_custom-control_1wzqe_1oi2m_205:not(#\9) {
|
|
211
208
|
margin-right: var(--space-s-34lx8l, 12px);
|
|
212
209
|
}
|
|
213
210
|
|
|
214
|
-
.
|
|
211
|
+
.awsui_input_1wzqe_1oi2m_134:not(#\9) {
|
|
215
212
|
flex: 1;
|
|
216
213
|
}
|
|
217
214
|
|
|
218
|
-
.
|
|
215
|
+
.awsui_results_1wzqe_1oi2m_213:not(#\9) {
|
|
219
216
|
padding: calc(var(--space-scaled-xxs-7597g1, 4px) + var(--border-field-width-09w7vk, 2px));
|
|
220
217
|
padding-left: 0;
|
|
221
218
|
padding-right: 0;
|
|
222
219
|
}
|
|
223
220
|
|
|
224
|
-
.awsui_token-
|
|
221
|
+
.awsui_token-trigger_1wzqe_1oi2m_219:not(#\9) {
|
|
225
222
|
min-width: 0;
|
|
226
223
|
word-break: break-word;
|
|
227
224
|
}
|
|
228
225
|
|
|
229
|
-
.awsui_remove-
|
|
230
|
-
.awsui_token-
|
|
231
|
-
.awsui_join-
|
|
232
|
-
.awsui_custom-filter-
|
|
226
|
+
.awsui_remove-all_1wzqe_1oi2m_224:not(#\9),
|
|
227
|
+
.awsui_token-label_1wzqe_1oi2m_225:not(#\9),
|
|
228
|
+
.awsui_join-operation_1wzqe_1oi2m_226:not(#\9),
|
|
229
|
+
.awsui_custom-filter-actions_1wzqe_1oi2m_227:not(#\9) {
|
|
233
230
|
/* used in test-utils */
|
|
234
231
|
}
|