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

442 lines (428 loc) • 18.2 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 */ .awsui_root_1xupv_14kz7_145: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; } .awsui_wizard_1xupv_14kz7_177.awsui_refresh_1xupv_14kz7_177:not(#\9) { column-gap: var(--space-xl-gsucfg, 24px); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: var(--space-scaled-xxs-t2t62i, 4px); } .awsui_wizard_1xupv_14kz7_177.awsui_refresh_1xupv_14kz7_177.awsui_small-container_1xupv_14kz7_184:not(#\9) { grid-template-columns: minmax(0, 1fr) 0; row-gap: var(--space-scaled-l-2rs0gk, 20px); } .awsui_wizard_1xupv_14kz7_177:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) { display: flex; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177:not(#\9) { grid-column: 1; grid-row: 1/span 2; padding-block-start: calc(var(--space-xs-edba2s, 8px) + var(--space-scaled-xxs-t2t62i, 4px)); /* stylelint-disable selector-max-type */ /* stylelint-enable selector-max-type */ } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177:not(#\9) { position: relative; margin-block: 0; margin-inline: 0; padding-block-start: var(--space-scaled-xxs-t2t62i, 4px); padding-block-end: 0; padding-inline: 0; inline-size: 260px; box-sizing: border-box; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9) { display: grid; column-gap: var(--space-xs-edba2s, 8px); grid-template-columns: var(--space-l-f4l5gr, 20px) 1fr; grid-template-rows: repeat(2, auto); padding-block: 0; padding-inline: 0; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > hr:not(#\9) { background-color: var(--color-border-divider-default-g2zqci, #eaeded); border-block: 0; border-inline: 0; grid-column: 1; block-size: 100%; inline-size: var(--space-xxxs-j6dpcy, 2px); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > .awsui_number_1xupv_14kz7_226:not(#\9) { color: var(--color-text-small-w05wee, #687078); font-size: var(--font-size-body-s-6sh5cc, 12px); grid-column: 2; grid-row: 1; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > a:not(#\9) { align-items: start; column-gap: var(--space-xs-edba2s, 8px); cursor: pointer; display: grid; font-size: var(--font-size-body-m-kbh530, 14px); grid-column: 1/span 2; grid-row: 2; grid-template-columns: var(--space-l-f4l5gr, 20px) 1fr; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > a > .awsui_circle_1xupv_14kz7_242:not(#\9) { border-start-start-radius: 100%; border-start-end-radius: 100%; border-end-start-radius: 100%; border-end-end-radius: 100%; grid-column: 1; block-size: 10px; justify-self: center; margin-block-start: 6px; inline-size: 10px; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > a > .awsui_title_1xupv_14kz7_253:not(#\9) { min-inline-size: 0; word-break: break-word; grid-column: 2; } body[data-awsui-focus-visible=true] .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li > a:not(#\9):focus { outline: thin dotted; outline: var(--border-link-focus-ring-outline-o0qm2f, 5px auto Highlight); outline-offset: 2px; outline-color: var(--color-border-item-focused-j88ehv, #0073bb); border-start-start-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-start-end-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-end-start-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-end-end-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-ziqmfh, 0px) var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9):first-child > hr { grid-row: 2/span 2; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9):not(:first-child) > .awsui_number_1xupv_14kz7_226 { margin-block-start: var(--space-m-h2th94, 16px); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9):last-child > hr { grid-row: 1; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9):only-of-type > hr { display: none; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li:not(#\9):not(:first-child):not(:last-child) > hr { grid-row: 1/span 3; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_active_1xupv_14kz7_284 > a:not(#\9) { cursor: text; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_active_1xupv_14kz7_284 > a > .awsui_circle_1xupv_14kz7_242:not(#\9) { background-color: var(--color-background-control-checked-6j23t6, #0073bb); box-shadow: 0 0 0 3px var(--color-background-container-content-cpvvzs, #ffffff), 0 0 0 5px var(--color-background-control-checked-6j23t6, #0073bb), 0 0 0 7px var(--color-background-container-content-cpvvzs, #ffffff); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_active_1xupv_14kz7_284 > a > .awsui_title_1xupv_14kz7_253:not(#\9) { color: var(--color-background-control-checked-6j23t6, #0073bb); font-weight: 700; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_disabled_1xupv_14kz7_295 > a:not(#\9) { cursor: text; } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_disabled_1xupv_14kz7_295 > a > .awsui_circle_1xupv_14kz7_242:not(#\9) { background-color: var(--color-background-container-content-cpvvzs, #ffffff); box-shadow: 0 0 0 2px var(--color-text-interactive-disabled-jwju02, #aab7b8), 0 0 0 4px var(--color-background-container-content-cpvvzs, #ffffff); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_disabled_1xupv_14kz7_295 > a > .awsui_title_1xupv_14kz7_253:not(#\9) { color: var(--color-text-status-inactive-97nxyu, #687078); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_enabled_1xupv_14kz7_305 > a > .awsui_circle_1xupv_14kz7_242:not(#\9) { background-color: var(--color-text-interactive-default-yjja72, #545b64); box-shadow: 0 0 0 2px var(--color-text-interactive-default-yjja72, #545b64), 0 0 0 4px var(--color-background-container-content-cpvvzs, #ffffff); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_enabled_1xupv_14kz7_305 > a > .awsui_title_1xupv_14kz7_253:not(#\9) { color: var(--color-text-interactive-default-yjja72, #545b64); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_enabled_1xupv_14kz7_305 > a:not(#\9):hover > .awsui_circle_1xupv_14kz7_242 { background-color: var(--color-background-control-checked-6j23t6, #0073bb); box-shadow: 0 0 0 2px var(--color-background-control-checked-6j23t6, #0073bb), 0 0 0 4px var(--color-background-container-content-cpvvzs, #ffffff); } .awsui_navigation_1xupv_14kz7_193.awsui_refresh_1xupv_14kz7_177 > ul.awsui_refresh_1xupv_14kz7_177 > li.awsui_enabled_1xupv_14kz7_305 > a:not(#\9):hover > .awsui_title_1xupv_14kz7_253 { color: var(--color-background-control-checked-6j23t6, #0073bb); } .awsui_navigation_1xupv_14kz7_193:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) { color: var(--color-text-disabled-e7l57l, #aab7b8); display: inline-block; margin-inline-end: calc(2 * var(--space-xxxl-65sweb, 40px)); min-inline-size: 200px; padding-block-start: var(--space-xxs-ja5cp8, 4px); inline-size: 200px; /* stylelint-disable selector-max-type */ /* stylelint-enable selector-max-type */ } .awsui_navigation_1xupv_14kz7_193:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) > ul:not(.awsui_refresh_1xupv_14kz7_177) { list-style: none; padding-block: 0; padding-inline: 0; margin-block: 0; margin-inline: 0; } .awsui_navigation_1xupv_14kz7_193:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) > ul:not(.awsui_refresh_1xupv_14kz7_177) > li { min-inline-size: 0; word-break: break-word; padding-block: 0 var(--space-scaled-m-gxhdpl, 16px); } .awsui_navigation_1xupv_14kz7_193:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) > ul:not(.awsui_refresh_1xupv_14kz7_177) > li:not(:first-child) { margin-block-start: var(--space-scaled-m-gxhdpl, 16px); } .awsui_navigation_1xupv_14kz7_193:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) > ul:not(.awsui_refresh_1xupv_14kz7_177) > li:not(:last-child) { border-block-end: var(--border-divider-list-width-um3zli, 1px) solid var(--color-border-layout-jd9fka, #d5dbdb); } .awsui_form_1xupv_14kz7_349:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) { min-inline-size: 0; word-break: break-word; inline-size: 100%; } .awsui_form_1xupv_14kz7_349:not(#\9):not(.awsui_refresh_1xupv_14kz7_177) > .awsui_form-header_1xupv_14kz7_354 { position: relative; margin-block-end: var(--space-scaled-m-gxhdpl, 16px); } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177:not(#\9) { min-inline-size: 0; word-break: break-word; display: contents; } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177 > .awsui_form-header_1xupv_14kz7_354:not(#\9) { grid-column: 2; grid-row: 1; color: var(--color-text-body-default-zs35hz, #16191f); } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177 > .awsui_form-header_1xupv_14kz7_354 > .awsui_form-header-content_1xupv_14kz7_369:not(#\9) { padding-block-start: calc(var(--space-xl-gsucfg, 24px) + var(--space-scaled-xxxs-jdgipl, 2px)); padding-block-end: var(--space-scaled-s-913kwi, 12px); } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177 > .awsui_form-component_1xupv_14kz7_373:not(#\9) { grid-column: 2; grid-row: 2; } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177.awsui_small-container_1xupv_14kz7_184 > .awsui_form-header_1xupv_14kz7_354:not(#\9) { grid-column: 1/span 2; } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177.awsui_small-container_1xupv_14kz7_184 > .awsui_form-header_1xupv_14kz7_354 > .awsui_form-header-content_1xupv_14kz7_369:not(#\9) { padding-block-start: 0; } .awsui_form_1xupv_14kz7_349.awsui_refresh_1xupv_14kz7_177.awsui_small-container_1xupv_14kz7_184 > .awsui_form-component_1xupv_14kz7_373:not(#\9) { grid-column: 1/span 2; } .awsui_navigation_1xupv_14kz7_193.awsui_hidden_1xupv_14kz7_387:not(#\9) { display: none; } .awsui_collapsed-steps_1xupv_14kz7_391:not(#\9) { color: var(--color-text-heading-secondary-urdy5f, #545b64); font-weight: 700; padding-block-start: var(--space-scaled-xxs-t2t62i, 4px); } .awsui_collapsed-steps-hidden_1xupv_14kz7_396:not(#\9) { display: none; } .awsui_form-header-component-wrapper_1xupv_14kz7_400:not(#\9) { outline: none; } body[data-awsui-focus-visible=true] .awsui_form-header-component-wrapper_1xupv_14kz7_400:not(#\9):focus { outline: thin dotted; outline: var(--border-link-focus-ring-outline-o0qm2f, 5px auto Highlight); outline-offset: 2px; outline-color: var(--color-border-item-focused-j88ehv, #0073bb); border-start-start-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-start-end-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-end-start-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); border-end-end-radius: var(--border-radius-control-default-focus-ring-eq2wmk, 2px); box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-ziqmfh, 0px) var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_form-header-component_1xupv_14kz7_400:not(#\9), .awsui_navigation-link_1xupv_14kz7_416:not(#\9), .awsui_navigation-link-item_1xupv_14kz7_417:not(#\9), .awsui_navigation-link-label_1xupv_14kz7_418:not(#\9) { /* used in test-utils */ } .awsui_navigation-link-active_1xupv_14kz7_422:not(#\9) { font-weight: 700; color: var(--color-text-body-default-zs35hz, #16191f); } .awsui_navigation-link-disabled_1xupv_14kz7_427:not(#\9) { color: var(--color-text-status-inactive-97nxyu, #687078); } .awsui_cancel-button_1xupv_14kz7_431:not(#\9), .awsui_previous-button_1xupv_14kz7_432:not(#\9), .awsui_primary-button_1xupv_14kz7_433:not(#\9), .awsui_skip-to-button_1xupv_14kz7_434:not(#\9) { /* used in test-utils */ } .awsui_action-buttons_1xupv_14kz7_438:not(#\9) { display: flex; justify-content: flex-end; }