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

343 lines (327 loc) • 10.9 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 */ .awsui_calendar_mgja0_1oswl_153:not(#\9) { animation: awsui_awsui-motion-fade-in-0_mgja0_1oswl_1 var(--motion-duration-show-quick-fkbsov, 135ms) var(--motion-easing-show-quick-17va6f, ease-out); animation-fill-mode: both; } @keyframes awsui_awsui-motion-fade-in-0_mgja0_1oswl_1 { from { opacity: 0; } to { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .awsui_calendar_mgja0_1oswl_153:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_calendar_mgja0_1oswl_153:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_1oswl_153:not(#\9) { animation: none; transition: none; } .awsui_root_mgja0_1oswl_176: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; } .awsui_root_mgja0_1oswl_176:not(#\9):not(.awsui_wide_mgja0_1oswl_207) { max-inline-size: 32em; } .awsui_root_mgja0_1oswl_176.awsui_wide_mgja0_1oswl_207:not(#\9) { max-inline-size: 39em; } .awsui_focus-lock_mgja0_1oswl_214:not(#\9) { display: contents; } .awsui_trigger-flexbox_mgja0_1oswl_218:not(#\9) { display: flex; } .awsui_calendar-container_mgja0_1oswl_222:not(#\9) { inline-size: calc(2 * var(--size-calendar-grid-width-awqqfd, 234px) + var(--space-xs-edba2s, 8px)); } .awsui_calendar-container_mgja0_1oswl_222.awsui_one-grid_mgja0_1oswl_225:not(#\9) { inline-size: var(--size-calendar-grid-width-awqqfd, 234px); } .awsui_calendar-header_mgja0_1oswl_229:not(#\9) { display: flex; justify-content: space-between; align-items: center; position: relative; } .awsui_calendar-header-pages-wrapper_mgja0_1oswl_235:not(#\9) { position: absolute; inset: 0; margin-block: 0; margin-inline: 0; display: flex; justify-content: space-around; align-items: center; flex: 1; pointer-events: none; } .awsui_calendar-header-page_mgja0_1oswl_235:not(#\9) { font-size: var(--font-size-body-m-kbh530, 14px); line-height: var(--line-height-body-m-0awzkk, 22px); font-weight: 700; color: var(--color-text-body-default-zs35hz, #16191f); display: flex; pointer-events: auto; } .awsui_date-and-time-container_mgja0_1oswl_255:not(#\9) { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--size-calendar-grid-width-awqqfd, 234px), 1fr)); gap: var(--space-xs-edba2s, 8px); } .awsui_date-and-time-wrapper_mgja0_1oswl_261:not(#\9) { inline-size: var(--size-calendar-grid-width-awqqfd, 234px); display: grid; gap: var(--space-xs-edba2s, 8px); grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } .awsui_footer_mgja0_1oswl_268:not(#\9) { display: flex; flex-wrap: wrap; justify-content: flex-end; border-block-start: 1px solid var(--color-border-dropdown-item-default-tizn4l, #eaeded); padding-block-start: 0; padding-block-end: var(--space-s-hdd878, 12px); padding-inline: var(--space-l-f4l5gr, 20px); } .awsui_footer_mgja0_1oswl_268.awsui_has-clear-button_mgja0_1oswl_277:not(#\9) { justify-content: space-between; } .awsui_footer_mgja0_1oswl_268.awsui_one-grid_mgja0_1oswl_225:not(#\9) { padding-block-start: 0; padding-block-end: var(--space-s-hdd878, 12px); padding-inline: var(--space-xs-edba2s, 8px); } .awsui_footer-button-wrapper_mgja0_1oswl_286:not(#\9) { padding-block-start: var(--space-s-hdd878, 12px); } .awsui_footer-button-wrapper_mgja0_1oswl_286:not(#\9):last-child { margin-inline-start: auto; } .awsui_icon-wrapper_mgja0_1oswl_293:not(#\9) { color: var(--color-text-interactive-default-yjja72, #545b64); margin-inline-end: var(--space-xs-edba2s, 8px); } .awsui_label_mgja0_1oswl_298:not(#\9) { cursor: default; } .awsui_label_mgja0_1oswl_298.awsui_label-enabled_mgja0_1oswl_302:not(#\9):hover > .awsui_trigger-flexbox_mgja0_1oswl_218 > .awsui_icon-wrapper_mgja0_1oswl_293 { color: var(--color-text-interactive-hover-fgfl9g, #16191f); } .awsui_label-text_mgja0_1oswl_306:not(#\9) { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; } .awsui_label-token-nowrap_mgja0_1oswl_311:not(#\9) { white-space: nowrap; } .awsui_dropdown_mgja0_1oswl_315:not(#\9) { overflow: auto; border-block-start: 1px solid var(--color-border-container-top-wiud2r, #eaeded); border-block-end: 1px solid var(--color-border-container-top-wiud2r, #eaeded); border-start-start-radius: var(--border-radius-dropdown-awjhsp, 0px); border-start-end-radius: var(--border-radius-dropdown-awjhsp, 0px); border-end-start-radius: var(--border-radius-dropdown-awjhsp, 0px); border-end-end-radius: var(--border-radius-dropdown-awjhsp, 0px); } .awsui_dropdown_mgja0_1oswl_315:not(#\9):focus { outline: none; } body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_1oswl_315:not(#\9):focus { outline: 2px dotted transparent; outline-offset: 2px; border-start-start-radius: var(--border-radius-dropdown-awjhsp, 0px); border-start-end-radius: var(--border-radius-dropdown-awjhsp, 0px); border-end-start-radius: var(--border-radius-dropdown-awjhsp, 0px); border-end-end-radius: var(--border-radius-dropdown-awjhsp, 0px); box-shadow: 0 0 0 2px var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_dropdown-content_mgja0_1oswl_337:not(#\9) { background-color: var(--color-background-container-content-cpvvzs, #ffffff); inline-size: calc(2 * var(--size-calendar-grid-width-awqqfd, 234px) + var(--space-xs-edba2s, 8px) + 2 * var(--space-l-f4l5gr, 20px)); } .awsui_dropdown-content_mgja0_1oswl_337.awsui_one-grid_mgja0_1oswl_225:not(#\9) { inline-size: calc(var(--size-calendar-grid-width-awqqfd, 234px) + 2 * var(--space-l-f4l5gr, 20px)); }