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

445 lines (434 loc) • 14.1 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 */ /* 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_modal-slide-up_1d2i7_17mqm_1 { 0% { transform: translate(0, 10px); } 100% { transform: translate(0, 0); } } .awsui_dialog_1d2i7_17mqm_169:not(#\9) { animation: awsui_modal-slide-up_1d2i7_17mqm_1 var(--motion-duration-slow-qk0n8k, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_17mqm_1 var(--motion-duration-slow-qk0n8k, 180ms) ease-out; animation-delay: var(--motion-duration-fast-3oez8u, 90ms); animation-fill-mode: both; } @keyframes awsui_awsui-motion-fade-in-0_1d2i7_17mqm_1 { from { opacity: 0; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .awsui_dialog_1d2i7_17mqm_169:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_dialog_1d2i7_17mqm_169:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_17mqm_169:not(#\9) { animation: none; transition: none; } .awsui_dialog_1d2i7_17mqm_169.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation: awsui_awsui-motion-scale-popup_1d2i7_17mqm_1, awsui_awsui-motion-fade-in-0_1d2i7_17mqm_1; animation-duration: var(--motion-duration-refresh-only-fast-2lwlmd, 0ms); animation-timing-function: var(--motion-easing-refresh-only-a-6ywz7k, cubic-bezier(0, 0, 0, 1)); animation-fill-mode: both; } @keyframes awsui_awsui-motion-fade-in-0_1d2i7_17mqm_1 { from { opacity: 0; } to { opacity: 1; } } @keyframes awsui_awsui-motion-scale-popup_1d2i7_17mqm_1 { 0% { transform: scale(0.95); } 100% { transform: scale(1); } } @media (prefers-reduced-motion: reduce) { .awsui_dialog_1d2i7_17mqm_169.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_dialog_1d2i7_17mqm_169.awsui_refresh_1d2i7_17mqm_192:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_17mqm_169.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation: none; transition: none; } .awsui_root_1d2i7_17mqm_225:not(#\9) { animation: awsui_awsui-motion-fade-in_1d2i7_17mqm_1 var(--motion-duration-extra-slow-q9xfa7, 270ms) ease-out; animation-fill-mode: both; } @keyframes awsui_awsui-motion-fade-in_1d2i7_17mqm_1 { from { opacity: 0.2; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .awsui_root_1d2i7_17mqm_225:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_root_1d2i7_17mqm_225:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_17mqm_225:not(#\9) { animation: none; transition: none; } .awsui_root_1d2i7_17mqm_225.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation-duration: var(--motion-duration-refresh-only-fast-2lwlmd, 0ms); } @media (prefers-reduced-motion: reduce) { .awsui_root_1d2i7_17mqm_225.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_root_1d2i7_17mqm_225.awsui_refresh_1d2i7_17mqm_192:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_17mqm_225.awsui_refresh_1d2i7_17mqm_192:not(#\9) { animation: none; transition: none; } .awsui_root_1d2i7_17mqm_225:not(#\9) { border-collapse: separate; border-spacing: 0; box-sizing: border-box; caption-side: top; cursor: auto; direction: inherit; empty-cells: show; font-family: serif; font-style: normal; font-variant: normal; font-stretch: normal; -webkit-hyphens: none; hyphens: none; letter-spacing: normal; list-style: disc outside none; tab-size: 8; text-align: start; text-indent: 0; text-shadow: none; text-transform: none; visibility: visible; white-space: normal; word-spacing: normal; font-size: var(--font-size-body-m-kbh530, 14px); line-height: var(--line-height-body-m-0awzkk, 22px); color: var(--color-text-body-default-zs35hz, #16191f); font-weight: 400; font-family: var(--font-family-base-5z8fw5, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif); -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; background-color: var(--color-background-modal-overlay-zp5lne, rgba(242, 243, 243, 0.9)); display: flex; align-items: center; justify-items: center; inset: 0; position: fixed; z-index: 5000; outline: 0; overflow: auto; cursor: pointer; } .awsui_root_1d2i7_17mqm_225.awsui_hidden_1d2i7_17mqm_302:not(#\9) { display: none; } .awsui_focus-lock_1d2i7_17mqm_306:not(#\9) { align-self: flex-start; margin-block: auto; margin-inline: auto; padding-block: var(--space-s-hdd878, 12px); padding-inline: 0; z-index: 5000; pointer-events: none; } .awsui_dialog_1d2i7_17mqm_169:not(#\9) { position: static; inset-block-start: 0; transform: translate(0, 0); inline-size: calc(100vw - var(--space-s-hdd878, 12px) * 2); box-sizing: border-box; outline: none; z-index: 5000; pointer-events: all; } .awsui_dialog_1d2i7_17mqm_169.awsui_small_1d2i7_17mqm_326:not(#\9) { max-inline-size: 320px; } .awsui_dialog_1d2i7_17mqm_169.awsui_medium_1d2i7_17mqm_329:not(#\9) { max-inline-size: 600px; } .awsui_dialog_1d2i7_17mqm_169.awsui_large_1d2i7_17mqm_332:not(#\9) { max-inline-size: 820px; } .awsui_dialog_1d2i7_17mqm_169.awsui_max_1d2i7_17mqm_335.awsui_breakpoint-xs_1d2i7_17mqm_335:not(#\9) { max-inline-size: calc(100vw - (8 * 10px + var(--space-xxxl-65sweb, 40px))); margin-block: auto; margin-inline: auto; } .awsui_container_1d2i7_17mqm_341:not(#\9) { border-collapse: separate; border-spacing: 0; box-sizing: border-box; caption-side: top; cursor: auto; direction: inherit; empty-cells: show; font-family: serif; font-style: normal; font-variant: normal; font-stretch: normal; -webkit-hyphens: none; hyphens: none; letter-spacing: normal; list-style: disc outside none; tab-size: 8; text-align: start; text-indent: 0; text-shadow: none; text-transform: none; visibility: visible; white-space: normal; word-spacing: normal; font-size: var(--font-size-body-m-kbh530, 14px); line-height: var(--line-height-body-m-0awzkk, 22px); color: var(--color-text-body-default-zs35hz, #16191f); font-weight: 400; font-family: var(--font-family-base-5z8fw5, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif); -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; display: block; background-color: var(--color-background-container-content-cpvvzs, #ffffff); word-wrap: break-word; border-block-start: var(--border-container-top-width-khbhr4, 1px) solid var(--color-border-container-top-wiud2r, #eaeded); border-start-start-radius: var(--border-radius-container-r46evd, 0px); border-start-end-radius: var(--border-radius-container-r46evd, 0px); border-end-start-radius: var(--border-radius-container-r46evd, 0px); border-end-end-radius: var(--border-radius-container-r46evd, 0px); box-shadow: var(--shadow-modal-knebe7, 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_content_1d2i7_17mqm_382:not(#\9) { padding-block-start: var(--space-container-content-top-8wf5md, 16px); padding-block-end: var(--space-modal-content-bottom-7sx2ce, 20px); padding-inline: var(--space-modal-horizontal-rzqrfo, 20px); } .awsui_content_1d2i7_17mqm_382.awsui_no-paddings_1d2i7_17mqm_387:not(#\9) { padding-block: 0; padding-inline: 0; } .awsui_header_1d2i7_17mqm_392:not(#\9) { padding-block-start: var(--space-container-header-top-c6bw9y, 12px); padding-block-end: var(--space-container-header-bottom-83qu8n, 12px); padding-inline: var(--space-modal-horizontal-rzqrfo, 20px); background-color: var(--color-background-container-header-1edgmi, #fafafa); border-block-end: 1px solid var(--color-border-container-divider-1j5zof, #eaeded); border-start-start-radius: var(--border-radius-container-r46evd, 0px); border-start-end-radius: var(--border-radius-container-r46evd, 0px); border-end-start-radius: 0; border-end-end-radius: 0; } .awsui_header--text_1d2i7_17mqm_404:not(#\9) { /* used in test-utils */ } .awsui_footer_1d2i7_17mqm_408:not(#\9) { border-block-start: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-divider-default-g2zqci, #eaeded); padding-block: var(--space-scaled-s-913kwi, 12px); padding-inline: var(--space-container-horizontal-jxdgil, 20px); background-color: var(--color-background-container-content-cpvvzs, #ffffff); position: sticky; inset-block-end: 0; z-index: 800; } .awsui_footer--stuck_1d2i7_17mqm_417:not(#\9) { border-start-start-radius: 0; border-start-end-radius: 0; border-end-start-radius: var(--border-radius-container-r46evd, 0px); border-end-end-radius: var(--border-radius-container-r46evd, 0px); } .awsui_footer_1d2i7_17mqm_408:not(#\9):after { content: ""; display: table; clear: both; } .awsui_dismiss-control_1d2i7_17mqm_429:not(#\9) { /* used in test-utils */ } .awsui_modal-open_1d2i7_17mqm_433:not(#\9) { overflow: hidden; /* * When padding-right is added to account for scrollbar being turned * off by overflow:hidden, that padding will go offscreen and have no * effect if box-sizing is content-box and body width is 100%. Set * border-box to avoid this; this should be safe as box-sizing isn't * inherited by child elements normally. */ box-sizing: border-box; }