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

290 lines (273 loc) • 9.96 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_placeholder_dwuol_1bb38_145:not(#\9) { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; } .awsui_item_dwuol_1bb38_150:not(#\9) { display: flex; align-items: center; } .awsui_item_dwuol_1bb38_150 > .awsui_checkbox_dwuol_1bb38_154:not(#\9) { position: relative; min-block-size: var(--size-control-wa1dpj, 14px); min-inline-size: var(--size-control-wa1dpj, 14px); block-size: var(--size-control-wa1dpj, 14px); inline-size: var(--size-control-wa1dpj, 14px); margin-inline-end: var(--space-field-horizontal-zt16s8, 8px); } .awsui_filter_dwuol_1bb38_163:not(#\9) { z-index: 4; flex-shrink: 0; } .awsui_trigger_dwuol_1bb38_168:not(#\9) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .awsui_layout-strut_dwuol_1bb38_174:not(#\9) { inline-size: 100%; position: relative; transform: translate3d(0, 0, 0); } .awsui_list-bottom_dwuol_1bb38_180:not(#\9) { /* used in unit-tests */ } .awsui_selected-icon_dwuol_1bb38_184:not(#\9) { color: var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_show-label-tag_dwuol_1bb38_188 > .awsui_selected-icon_dwuol_1bb38_184:not(#\9) { padding-inline-start: var(--space-scaled-s-913kwi, 12px); } .awsui_inline-token-trigger_dwuol_1bb38_192:not(#\9) { display: flex; flex-wrap: nowrap; column-gap: var(--space-xxs-ja5cp8, 4px); inline-size: 100%; } .awsui_inline-token-list_dwuol_1bb38_199:not(#\9) { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-xxs-ja5cp8, 4px); inline-size: 100%; overflow-x: hidden; -webkit-mask-image: linear-gradient(270deg, transparent, white 20px, white); mask-image: linear-gradient(270deg, transparent, white 20px, white); /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ } .awsui_inline-token-list_dwuol_1bb38_199:not(#\9):dir(rtl) { -webkit-mask-image: linear-gradient(-270deg, transparent, white 20px, white); mask-image: linear-gradient(-270deg, transparent, white 20px, white); } .awsui_inline-token-list_dwuol_1bb38_199 > .awsui_inline-token_dwuol_1bb38_192:not(#\9) { display: flex; align-items: center; min-inline-size: max-content; block-size: 18px; border-block: var(--border-width-field-404eki, 1px) solid var(--color-border-item-selected-xu3hwl, #0073bb); border-inline: var(--border-width-field-404eki, 1px) solid var(--color-border-item-selected-xu3hwl, #0073bb); padding-block: 0; padding-inline: var(--space-xxs-ja5cp8, 4px); background: var(--color-background-item-selected-bc67ge, #f1faff); border-start-start-radius: var(--border-radius-token-8fyrg1, 2px); border-start-end-radius: var(--border-radius-token-8fyrg1, 2px); border-end-start-radius: var(--border-radius-token-8fyrg1, 2px); border-end-end-radius: var(--border-radius-token-8fyrg1, 2px); color: var(--color-text-body-default-zs35hz, #16191f); } .awsui_visual-refresh_dwuol_1bb38_229 > .awsui_inline-token-list_dwuol_1bb38_199 > .awsui_inline-token_dwuol_1bb38_192:not(#\9) { border-start-start-radius: var(--border-radius-badge-5bxe5h, 16px); border-start-end-radius: var(--border-radius-badge-5bxe5h, 16px); border-end-start-radius: var(--border-radius-badge-5bxe5h, 16px); border-end-end-radius: var(--border-radius-badge-5bxe5h, 16px); } .awsui_inline-token-hidden-placeholder_dwuol_1bb38_236:not(#\9) { position: absolute !important; inset-block-start: -9999px !important; inset-inline-start: -9999px !important; } .awsui_inline-token-counter_dwuol_1bb38_242:not(#\9) { white-space: nowrap; } .awsui_inline-token-trigger--disabled_dwuol_1bb38_246 > .awsui_inline-token-list_dwuol_1bb38_199 > .awsui_inline-token_dwuol_1bb38_192:not(#\9) { border-color: var(--color-border-control-disabled-hrmqh9, #d5dbdb); background-color: var(--color-background-container-content-cpvvzs, #ffffff); color: var(--color-text-disabled-e7l57l, #aab7b8); } .awsui_inline-label-trigger-wrapper_dwuol_1bb38_252:not(#\9) { margin-block-start: -7px; } .awsui_inline-label-wrapper_dwuol_1bb38_256:not(#\9) { margin-block-start: calc(var(--space-scaled-xs-wbfgrv, 8px) * -1); } .awsui_inline-label_dwuol_1bb38_252:not(#\9) { background-image: linear-gradient(to bottom, transparent calc(100% - (var(--border-width-field-404eki, 1px) + var(--border-control-focus-ring-shadow-spread-o8rs1p, 1px) + 5px)), var(--color-background-input-default-xowsm5, #ffffff) 1px); background-position: bottom; box-sizing: border-box; display: inline-block; color: var(--color-text-form-label-uk0nvv, #16191f); font-weight: var(--font-display-label-weight-q56x6f, 400); font-size: var(--font-size-body-s-6sh5cc, 12px); line-height: 14px; letter-spacing: var(--letter-spacing-body-s-4f9u0r, normal); position: relative; inset-inline-start: calc(var(--border-width-field-404eki, 1px) + var(--space-field-horizontal-zt16s8, 8px) - var(--space-scaled-xxs-t2t62i, 4px)); margin-block-start: var(--space-scaled-xs-wbfgrv, 8px); padding-block-end: 2px; padding-inline: var(--space-scaled-xxs-t2t62i, 4px); max-inline-size: calc(100% - 2 * var(--space-field-horizontal-zt16s8, 8px)); z-index: 1; } .awsui_inline-label_dwuol_1bb38_252.awsui_inline-label-disabled_dwuol_1bb38_278:not(#\9) { background: var(--color-background-container-header-1edgmi, #fafafa); border-start-start-radius: 2px; border-start-end-radius: 2px; border-end-start-radius: 2px; border-end-end-radius: 2px; } .awsui_disabled-reason-tooltip_dwuol_1bb38_286:not(#\9) { /* used in test-utils or tests */ }