UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

342 lines (326 loc) • 12.5 kB
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* stylelint-disable @awsui/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */ /* stylelint-enable @awsui/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Style used for links in slots/components that are text heavy, to help links stand out among surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ @keyframes awsui_drag-handle-entry_155yk_1rcmz_1 { from { transform: translate(var(--awsui-drag-handle-animation-inline-offset-d43v8n), var(--awsui-drag-handle-animation-block-offset-d43v8n)); } to { transform: translate(0, 0); } } @keyframes awsui_drag-handle-exit_155yk_1rcmz_1 { from { transform: translate(0, 0); } to { transform: translate(var(--awsui-drag-handle-animation-inline-offset-d43v8n), var(--awsui-drag-handle-animation-block-offset-d43v8n)); } } .awsui_direction-button-wrapper_155yk_1rcmz_169:not(#\9) { --awsui-drag-handle-animation-inline-offset-d43v8n: 0; --awsui-drag-handle-animation-block-offset-d43v8n: 0; } @keyframes awsui_awsui-motion-fade-in_155yk_1rcmz_1 { from { opacity: 0.2; } to { opacity: 1; } } @keyframes awsui_awsui-motion-fade-out-0_155yk_1rcmz_1 { from { opacity: 1; } to { opacity: 0; } } .awsui_direction-button-wrapper-motion-enter_155yk_1rcmz_189:not(#\9), .awsui_direction-button-wrapper-motion-entering_155yk_1rcmz_189:not(#\9), .awsui_direction-button-wrapper-motion-exit_155yk_1rcmz_189:not(#\9), .awsui_direction-button-wrapper-motion-exiting_155yk_1rcmz_189:not(#\9) { pointer-events: none; } .awsui_direction-button-wrapper-motion-entering_155yk_1rcmz_189:not(#\9) { animation: awsui_drag-handle-entry_155yk_1rcmz_1 var(--motion-duration-complex-gcxcdu, 270ms) var(--motion-easing-responsive-kehcbg, ease-out), awsui_awsui-motion-fade-in_155yk_1rcmz_1 var(--motion-duration-complex-gcxcdu, 270ms) var(--motion-easing-responsive-kehcbg, ease-out); } @media (prefers-reduced-motion: reduce) { .awsui_direction-button-wrapper-motion-entering_155yk_1rcmz_189:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_direction-button-wrapper-motion-entering_155yk_1rcmz_189:not(#\9), .awsui-mode-entering .awsui_direction-button-wrapper-motion-entering_155yk_1rcmz_189:not(#\9) { animation: none; transition: none; } .awsui_direction-button-wrapper-motion-exiting_155yk_1rcmz_189:not(#\9) { animation: awsui_drag-handle-exit_155yk_1rcmz_1 var(--motion-duration-complex-gcxcdu, 270ms) var(--motion-easing-responsive-kehcbg, ease-out) forwards, awsui_awsui-motion-fade-out-0_155yk_1rcmz_1 var(--motion-duration-complex-gcxcdu, 270ms) var(--motion-easing-responsive-kehcbg, ease-out) forwards; } @media (prefers-reduced-motion: reduce) { .awsui_direction-button-wrapper-motion-exiting_155yk_1rcmz_189:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_direction-button-wrapper-motion-exiting_155yk_1rcmz_189:not(#\9), .awsui-mode-entering .awsui_direction-button-wrapper-motion-exiting_155yk_1rcmz_189:not(#\9) { animation: none; transition: none; } @media (prefers-reduced-motion: reduce) { .awsui_direction-button-wrapper_155yk_1rcmz_169:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_direction-button-wrapper_155yk_1rcmz_169:not(#\9), .awsui-mode-entering .awsui_direction-button-wrapper_155yk_1rcmz_169:not(#\9) { animation: none; transition: none; } .awsui_direction-button-wrapper-block-start_155yk_1rcmz_229:not(#\9) { --awsui-drag-handle-animation-block-offset-d43v8n: 20px; } .awsui_direction-button-wrapper-block-end_155yk_1rcmz_233:not(#\9) { --awsui-drag-handle-animation-block-offset-d43v8n: -20px; } .awsui_direction-button-wrapper-inline-start_155yk_1rcmz_237:not(#\9) { /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ } .awsui_direction-button-wrapper-inline-start_155yk_1rcmz_237:not(#\9):dir(ltr) { --awsui-drag-handle-animation-inline-offset-d43v8n: 20px; } .awsui_direction-button-wrapper-inline-start_155yk_1rcmz_237:not(#\9):dir(rtl) { --awsui-drag-handle-animation-inline-offset-d43v8n: -20px; } .awsui_direction-button-wrapper-inline-end_155yk_1rcmz_248:not(#\9) { /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ } .awsui_direction-button-wrapper-inline-end_155yk_1rcmz_248:not(#\9):dir(ltr) { --awsui-drag-handle-animation-inline-offset-d43v8n: -20px; } .awsui_direction-button-wrapper-inline-end_155yk_1rcmz_248:not(#\9):dir(rtl) { --awsui-drag-handle-animation-inline-offset-d43v8n: 20px; } .awsui_contents_155yk_1rcmz_259:not(#\9) { display: contents; } .awsui_portal-overlay_155yk_1rcmz_263:not(#\9) { position: absolute; inset-block-start: 0; inset-inline-start: 0; pointer-events: none; z-index: 7000; } .awsui_portal-overlay-contents_155yk_1rcmz_271:not(#\9) { pointer-events: auto; } .awsui_drag-handle_155yk_1rcmz_275:not(#\9) { position: relative; display: inline-flex; } .awsui_direction-button-wrapper_155yk_1rcmz_169:not(#\9) { position: absolute; block-size: var(--space-static-xl-nmb7ge, 24px); inline-size: var(--space-static-xl-nmb7ge, 24px); padding-block: var(--space-static-xxs-jqh73n, 4px); padding-inline: var(--space-static-xxs-jqh73n, 4px); } .awsui_direction-button-wrapper-hidden_155yk_1rcmz_288:not(#\9) { display: none; } .awsui_direction-button-wrapper-block-start_155yk_1rcmz_229:not(#\9) { inset-block-start: calc(-1 * (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px))); inset-inline-start: calc(50% - (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px)) / 2); } .awsui_direction-button-wrapper-block-end_155yk_1rcmz_233:not(#\9) { inset-block-end: calc(-1 * (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px))); inset-inline-start: calc(50% - (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px)) / 2); } .awsui_direction-button-wrapper-inline-start_155yk_1rcmz_237:not(#\9) { inset-inline-start: calc(-1 * (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px))); inset-block-start: calc(50% - (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px)) / 2); } .awsui_direction-button-wrapper-inline-end_155yk_1rcmz_248:not(#\9) { inset-inline-end: calc(-1 * (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px))); inset-block-start: calc(50% - (var(--space-static-xl-nmb7ge, 24px) + 2 * var(--space-static-xxs-jqh73n, 4px)) / 2); } .awsui_direction-button_155yk_1rcmz_169:not(#\9) { position: absolute; border-width: 0; cursor: pointer; display: inline-block; box-sizing: border-box; touch-action: manipulation; inline-size: var(--space-static-xl-nmb7ge, 24px); block-size: var(--space-static-xl-nmb7ge, 24px); padding-block: var(--space-xxs-ja5cp8, 4px); padding-inline: var(--space-xxs-ja5cp8, 4px); border-start-start-radius: 50%; border-start-end-radius: 50%; border-end-start-radius: 50%; border-end-end-radius: 50%; background-color: var(--color-background-direction-button-default-g14807, #545b64); color: var(--color-text-direction-button-default-4ufswm, #ffffff); box-shadow: var(--shadow-dropdown-yqlbut, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15)); } .awsui_direction-button_155yk_1rcmz_169:not(#\9):not(.awsui_direction-button-disabled_155yk_1rcmz_331):hover { background-color: var(--color-background-direction-button-hover-w7ezw2, #414750); } .awsui_direction-button_155yk_1rcmz_169:not(#\9):not(.awsui_direction-button-disabled_155yk_1rcmz_331):active { background-color: var(--color-background-direction-button-active-afe0n9, #2a2e33); } .awsui_direction-button-disabled_155yk_1rcmz_331:not(#\9) { cursor: default; background-color: var(--color-background-direction-button-disabled-2azguy, #eaeded); color: var(--color-text-direction-button-disabled-igta0p, #aab7b8); }