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

268 lines (265 loc) • 9.01 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_4yi2u_1jjhc_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; display: flex; } .awsui_outline_4yi2u_1jjhc_178:not(#\9) { position: relative; } .awsui_outline_4yi2u_1jjhc_178:not(#\9) { outline: 2px dotted transparent; outline-offset: calc(2px - 1px); } .awsui_outline_4yi2u_1jjhc_178:not(#\9)::before { content: " "; display: block; position: absolute; inset-inline-start: calc(-1 * 2px); inset-block-start: calc(-1 * 2px); inline-size: calc(100% + 2px + 2px); block-size: calc(100% + 2px + 2px); 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 2px var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_toggle-control_4yi2u_1jjhc_200:not(#\9) { forced-color-adjust: none; margin-block-start: calc((var(--line-height-body-m-0awzkk, 22px) - 16px) / 2); min-block-size: 16px; min-inline-size: 24px; block-size: 16px; inline-size: 24px; background: var(--color-background-toggle-default-64bz87, #545b64); border-start-start-radius: 8px; border-start-end-radius: 8px; border-end-start-radius: 8px; border-end-end-radius: 8px; } .awsui_toggle-control-checked_4yi2u_1jjhc_213:not(#\9) { background: var(--color-background-control-checked-6j23t6, #0073bb); } .awsui_toggle-control-disabled_4yi2u_1jjhc_216:not(#\9) { background: var(--color-background-control-disabled-h93c4j, #d5dbdb); } .awsui_toggle-control-disabled_4yi2u_1jjhc_216.awsui_toggle-control-checked_4yi2u_1jjhc_213:not(#\9) { background: var(--color-background-toggle-checked-disabled-jkq3ea, #99cbe4); } .awsui_toggle-control-readonly_4yi2u_1jjhc_222:not(#\9) { background: var(--color-background-control-disabled-h93c4j, #d5dbdb); } .awsui_toggle-handle_4yi2u_1jjhc_226:not(#\9) { display: block; position: absolute; border-start-start-radius: 6px; border-start-end-radius: 6px; border-end-start-radius: 6px; border-end-end-radius: 6px; background: var(--color-foreground-control-default-2lrfrr, #ffffff); box-shadow: 1px 1px rgba(0, 0, 0, 0.25); inline-size: 12px; block-size: 12px; inset-block-start: 2px; inset-inline-start: 2px; transition: transform var(--motion-duration-fast-3oez8u, 90ms) var(--motion-easing-ease-out-quart-aqx2l0, cubic-bezier(0.165, 0.84, 0.44, 1)), background-color var(--motion-duration-fast-3oez8u, 90ms) var(--motion-easing-ease-out-quart-aqx2l0, cubic-bezier(0.165, 0.84, 0.44, 1)); } @media (prefers-reduced-motion: reduce) { .awsui_toggle-handle_4yi2u_1jjhc_226:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_toggle-handle_4yi2u_1jjhc_226:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_1jjhc_226:not(#\9) { animation: none; transition: none; } .awsui_toggle-handle-checked_4yi2u_1jjhc_251:not(#\9) { transform: translateX(8px); /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ } .awsui_toggle-handle-checked_4yi2u_1jjhc_251:not(#\9):dir(rtl) { transform: translateX(-8px); } .awsui_toggle-handle-disabled_4yi2u_1jjhc_258:not(#\9) { background: var(--color-foreground-control-disabled-dksqnz, #ffffff); box-shadow: none; } .awsui_toggle-handle-readonly_4yi2u_1jjhc_262:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1jjhc_258) { box-shadow: none; } .awsui_toggle-handle-readonly_4yi2u_1jjhc_262:not(#\9):not(.awsui_toggle-handle-disabled_4yi2u_1jjhc_258).awsui_toggle-handle-checked_4yi2u_1jjhc_251 { background: var(--color-foreground-control-read-only-4cwci1, #687078); }