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

386 lines (363 loc) • 13.3 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_l0dv0_wnkew_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; 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; min-inline-size: 0; word-break: break-word; } .awsui_header_l0dv0_wnkew_179:not(#\9) { font-size: var(--font-panel-header-size-ey4ywd, 18px); letter-spacing: var(--letter-spacing-heading-m-m4ll99, normal); line-height: var(--font-panel-header-line-height-pqpwyv, 22px); font-weight: var(--font-weight-heading-l-0lcea3, 700); -webkit-font-smoothing: var(--font-smoothing-webkit-gsroen, auto); -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-7ax6sl, auto); margin-block: 0; margin-inline: 0; padding-block: var(--space-panel-header-vertical-zbqp6n, 20px); padding-inline-start: var(--space-panel-nav-left-fseqea, 32px); padding-inline-end: calc(var(--space-scaled-xxl-fzmynl, 32px) + var(--space-xl-gsucfg, 24px)); } .awsui_header-link_l0dv0_wnkew_193:not(#\9) { font-size: var(--font-panel-header-size-ey4ywd, 18px); letter-spacing: var(--letter-spacing-heading-m-m4ll99, normal); line-height: var(--font-panel-header-line-height-pqpwyv, 22px); font-weight: var(--font-weight-heading-l-0lcea3, 700); -webkit-font-smoothing: var(--font-smoothing-webkit-gsroen, auto); -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-7ax6sl, auto); color: var(--color-text-heading-default-wliqyu, #16191f); min-block-size: var(--font-panel-header-line-height-pqpwyv, 22px); display: flex; } .awsui_header-link--has-logo_l0dv0_wnkew_204 > .awsui_header-link-text_l0dv0_wnkew_204:not(#\9) { font-weight: 400; align-self: center; } .awsui_header-logo_l0dv0_wnkew_209:not(#\9) { margin-inline-end: var(--space-s-hdd878, 12px); margin-block-start: var(--space-xxxs-j6dpcy, 2px); max-inline-size: calc(1.25 * var(--size-icon-big-0l8skx, 32px)); align-self: flex-start; } .awsui_header-logo--stretched_l0dv0_wnkew_215:not(#\9) { max-inline-size: 100%; margin-inline-end: 0; } .awsui_items-control_l0dv0_wnkew_220:not(#\9) { padding-inline: var(--space-l-f4l5gr, 20px); } .awsui_list-container_l0dv0_wnkew_224:not(#\9) { margin-block-end: var(--space-panel-content-bottom-s2l12q, 40px); } .awsui_items-control_l0dv0_wnkew_220:not(#\9), .awsui_list-container_l0dv0_wnkew_224:not(#\9) { margin-block-start: var(--space-panel-content-top-kw8n3a, 20px); } .awsui_with-toolbar_l0dv0_wnkew_232 > .awsui_divider-header_l0dv0_wnkew_232 + .awsui_items-control_l0dv0_wnkew_220:not(#\9), .awsui_with-toolbar_l0dv0_wnkew_232 > .awsui_divider-header_l0dv0_wnkew_232 + .awsui_list-container_l0dv0_wnkew_224:not(#\9) { margin-block-start: 0; } .awsui_list_l0dv0_wnkew_224:not(#\9) { margin-block: 0; margin-inline: 0; padding-block: 0; padding-inline-end: 0; padding-inline-start: var(--space-l-f4l5gr, 20px); } .awsui_list-variant-root_l0dv0_wnkew_245:not(#\9) { margin-block: 0; margin-inline: 0; padding-block: 0; padding-inline-start: var(--space-panel-nav-left-fseqea, 32px); padding-inline-end: var(--space-panel-side-right-lgtbro, 32px); } .awsui_list-variant-root--first_l0dv0_wnkew_252:not(#\9) { margin-block-start: 0; } .awsui_list-variant-expandable-link-group_l0dv0_wnkew_256:not(#\9) { padding-inline-start: var(--space-xxxl-65sweb, 40px); } .awsui_list-item_l0dv0_wnkew_260:not(#\9) { margin-block: var(--space-scaled-xs-wbfgrv, 8px); margin-inline: 0; padding-block: 0; padding-inline: 0; list-style: none; } .awsui_list-variant-root--first_l0dv0_wnkew_252 > .awsui_list-item_l0dv0_wnkew_260:not(#\9):first-child { margin-block-start: 0px; } .awsui_section_l0dv0_wnkew_271:not(#\9), .awsui_expandable-link-group_l0dv0_wnkew_272:not(#\9) { margin-inline-start: calc(-1 * var(--space-l-f4l5gr, 20px)); } .awsui_section--no-ident_l0dv0_wnkew_275:not(#\9), .awsui_expandable-link-group--no-ident_l0dv0_wnkew_276:not(#\9) { margin-inline-start: 0; } .awsui_section_l0dv0_wnkew_271:not(#\9) { margin-block: calc(var(--space-scaled-2x-l-qun137, 20px) - var(--border-divider-section-width-4f9905, 1px)); /* stylelint-disable-next-line selector-max-type */ } .awsui_section_l0dv0_wnkew_271.awsui_refresh_l0dv0_wnkew_284:not(#\9) { margin-block: calc(var(--space-scaled-2x-m-lwig8x, 16px) - var(--border-divider-section-width-4f9905, 1px)); } .awsui_list-variant-root--first_l0dv0_wnkew_252 > .awsui_list-item_l0dv0_wnkew_260:not(#\9):first-child > .awsui_section_l0dv0_wnkew_271 { margin-block-start: 0px; } .awsui_section_l0dv0_wnkew_271 > div:not(#\9) { padding-block: 0; padding-inline: 0; } .awsui_list-variant-section-group_l0dv0_wnkew_295:not(#\9) { margin-block: 0; margin-inline: 0; padding-block: 0; padding-inline: 0; } .awsui_section-group_l0dv0_wnkew_302:not(#\9) { font-size: var(--font-size-heading-m-9xjzrj, 18px); line-height: var(--line-height-heading-m-gv8yla, 22px); letter-spacing: var(--letter-spacing-heading-m-m4ll99, normal); font-weight: var(--font-weight-heading-m-0c5l08, 400); -webkit-font-smoothing: var(--font-smoothing-webkit-gsroen, auto); -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-7ax6sl, auto); margin-block: 0; margin-inline: 0; } .awsui_section-group-title_l0dv0_wnkew_313:not(#\9) { /* used in test-utils */ } .awsui_link_l0dv0_wnkew_317:not(#\9) { font-size: var(--font-size-body-m-kbh530, 14px); line-height: var(--line-height-body-m-0awzkk, 22px); color: var(--color-text-body-secondary-kc95tq, #545b64); font-weight: 400; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; } .awsui_link-active_l0dv0_wnkew_326:not(#\9) { font-weight: var(--font-wayfinding-link-active-weight-frdnvo, 700); -webkit-font-smoothing: var(--font-smoothing-webkit-gsroen, auto); -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-7ax6sl, auto); color: var(--color-text-accent-27s5l3, #0073bb); } .awsui_header-link_l0dv0_wnkew_193:not(#\9), .awsui_link_l0dv0_wnkew_317:not(#\9) { text-decoration: none; } .awsui_header-link_l0dv0_wnkew_193:not(#\9):hover, .awsui_link_l0dv0_wnkew_317:not(#\9):hover { color: var(--color-text-accent-27s5l3, #0073bb); } .awsui_header-link_l0dv0_wnkew_193:not(#\9):focus, .awsui_link_l0dv0_wnkew_317:not(#\9):focus { outline: none; } .awsui_header-link_l0dv0_wnkew_193:not(#\9):hover, .awsui_header-link_l0dv0_wnkew_193:not(#\9):focus, .awsui_link_l0dv0_wnkew_317:not(#\9):hover, .awsui_link_l0dv0_wnkew_317:not(#\9):focus { text-decoration: none; } body[data-awsui-focus-visible=true] .awsui_header-link_l0dv0_wnkew_193:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_link_l0dv0_wnkew_317: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_info_l0dv0_wnkew_363:not(#\9) { margin-inline-start: var(--space-xs-edba2s, 8px); } .awsui_external-icon_l0dv0_wnkew_367:not(#\9) { margin-inline-start: var(--space-xxs-ja5cp8, 4px); } .awsui_divider_l0dv0_wnkew_232:not(#\9) { border-block: none; border-inline: none; } .awsui_divider-default_l0dv0_wnkew_376:not(#\9) { margin-block: var(--space-scaled-2x-xl-a8w4ze, 24px); margin-inline: calc(-1 * var(--space-panel-divider-margin-horizontal-ouvw5o, 12px)); border-block-start: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-divider-default-g2zqci, #eaeded); } .awsui_divider-header_l0dv0_wnkew_232:not(#\9) { margin-block: 0; border-block-start: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-panel-header-x89ddl, #eaeded); } .awsui_with-toolbar_l0dv0_wnkew_232 > .awsui_divider-header_l0dv0_wnkew_232:not(#\9) { border-color: transparent; }