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

407 lines (392 loc) • 13.4 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_1wzqe_a56yz_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_search-field_1wzqe_a56yz_177:not(#\9) { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--space-xs-edba2s, 8px) var(--space-s-hdd878, 12px); } .awsui_input-wrapper_1wzqe_a56yz_184:not(#\9) { flex-grow: 1; display: flex; align-items: flex-end; max-inline-size: calc(688px - 2 * var(--space-l-f4l5gr, 20px)); } .awsui_add-token_1wzqe_a56yz_191:not(#\9) { border-inline-start: 1px solid var(--color-border-divider-default-g2zqci, #eaeded); box-sizing: border-box; margin-inline-start: var(--space-m-h2th94, 16px); padding-inline-start: var(--space-m-h2th94, 16px); } .awsui_tokens_1wzqe_a56yz_198:not(#\9) { margin-block: var(--space-xs-edba2s, 8px); margin-inline: 0; } .awsui_token-operator_1wzqe_a56yz_203:not(#\9) { font-weight: bold; } .awsui_property-editor_1wzqe_a56yz_207:not(#\9) { overflow-y: auto; } .awsui_property-editor-header_1wzqe_a56yz_210: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-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; font-weight: bold; padding-block-start: var(--space-s-hdd878, 12px); padding-block-end: var(--space-xxs-ja5cp8, 4px); padding-inline: var(--space-s-hdd878, 12px); } .awsui_property-editor-header-enum_1wzqe_a56yz_223:not(#\9) { display: flex; gap: var(--space-xs-edba2s, 8px); 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; font-weight: bold; color: var(--color-text-dropdown-group-label-s1hwg5, #545b64); padding-block: calc(var(--space-xs-edba2s, 8px) + var(--border-item-width-ip3vxj, 1px) - var(--border-divider-list-width-um3zli, 1px)); padding-inline: calc(var(--space-field-horizontal-zt16s8, 8px) + var(--border-item-width-ip3vxj, 1px)); } .awsui_property-editor-form_1wzqe_a56yz_238:not(#\9) { padding-block-start: var(--space-xxs-ja5cp8, 4px); padding-block-end: var(--space-s-hdd878, 12px); padding-inline: var(--space-s-hdd878, 12px); } .awsui_property-editor-cancel_1wzqe_a56yz_243:not(#\9) { margin-inline-end: var(--space-xs-edba2s, 8px); } .awsui_property-editor-actions_1wzqe_a56yz_246:not(#\9) { display: flex; justify-content: flex-end; border-block-start: var(--border-divider-list-width-um3zli, 1px) solid var(--color-border-dropdown-item-default-tizn4l, #eaeded); padding-inline: var(--space-l-f4l5gr, 20px); padding-block: var(--space-s-hdd878, 12px); } .awsui_property-editor-enum_1wzqe_a56yz_254:not(#\9) { display: flex; flex-direction: column; } .awsui_token-editor_1wzqe_a56yz_259:not(#\9) { display: flex; flex-direction: column; gap: var(--space-s-hdd878, 12px); margin-block: var(--space-xxs-ja5cp8, 4px); margin-inline: var(--space-xxs-ja5cp8, 4px); } .awsui_token-editor-form_1wzqe_a56yz_266:not(#\9) { /* used in test-utils */ } .awsui_token-editor-field-property_1wzqe_a56yz_269:not(#\9) { flex-grow: 2; } .awsui_token-editor-field-operator_1wzqe_a56yz_272:not(#\9) { flex-grow: 1; } .awsui_token-editor-field-value_1wzqe_a56yz_275:not(#\9) { flex-grow: 2; } .awsui_token-editor-multiselect-wrapper_1wzqe_a56yz_278:not(#\9) { position: relative; block-size: var(--size-vertical-input-pta06y, 32px); min-inline-size: 200px; } .awsui_token-editor-multiselect-wrapper-inner_1wzqe_a56yz_283:not(#\9) { position: absolute; inline-size: 100%; } .awsui_token-editor-cancel_1wzqe_a56yz_287:not(#\9) { margin-inline-end: var(--space-xs-edba2s, 8px); } .awsui_token-editor-submit_1wzqe_a56yz_290:not(#\9) { /* used in test-utils */ } .awsui_token-editor-actions_1wzqe_a56yz_293:not(#\9) { display: flex; justify-content: flex-end; padding-block-start: var(--space-s-hdd878, 12px); border-block-start: 1px solid var(--color-border-dropdown-item-default-tizn4l, #eaeded); padding-inline-end: calc(var(--space-m-h2th94, 16px) + var(--space-xxs-ja5cp8, 4px)); margin-inline: calc(-1 * var(--space-m-h2th94, 16px) + -1 * var(--space-xxs-ja5cp8, 4px)); margin-block-start: var(--space-s-hdd878, 12px); } .awsui_token-editor-grid_1wzqe_a56yz_302: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: grid; gap: var(--space-s-hdd878, 12px); grid-template-columns: minmax(min-content, 2fr) minmax(min-content, 120px) minmax(min-content, 3fr) min-content; } .awsui_token-editor-grid-group_1wzqe_a56yz_336:not(#\9) { display: contents; } .awsui_token-editor-grid_1wzqe_a56yz_302.awsui_token-editor-narrow_1wzqe_a56yz_339:not(#\9) { grid-template-columns: minmax(100px, 1fr); gap: var(--space-m-h2th94, 16px); } .awsui_token-editor-grid_1wzqe_a56yz_302.awsui_token-editor-narrow_1wzqe_a56yz_339 > .awsui_token-editor-grid-group_1wzqe_a56yz_336:not(#\9) { display: flex; flex-direction: column; gap: var(--space-s-hdd878, 12px); } .awsui_token-editor-grid_1wzqe_a56yz_302.awsui_token-editor-narrow_1wzqe_a56yz_339 > .awsui_token-editor-grid-group_1wzqe_a56yz_336.awsui_token-editor-supports-groups_1wzqe_a56yz_348:not(#\9) { padding-block-end: var(--space-m-h2th94, 16px); border-block-end: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-divider-default-g2zqci, #eaeded); } .awsui_token-editor-grid-header_1wzqe_a56yz_352:not(#\9) { color: var(--color-text-column-header-xxfilq, #545b64); font-weight: var(--font-weight-heading-s-6rdhmg, 700); padding-block: var(--space-scaled-xxs-t2t62i, 4px); text-align: start; } .awsui_token-editor-grid-cell_1wzqe_a56yz_358:not(#\9):not(.awsui_token-editor-narrow_1wzqe_a56yz_339) { display: flex; align-items: flex-end; justify-content: flex-end; } .awsui_token-editor-grid-cell_1wzqe_a56yz_358.awsui_token-editor-narrow_1wzqe_a56yz_339:not(#\9):nth-child(4) { display: flex; justify-content: flex-end; } .awsui_token-editor-add-token_1wzqe_a56yz_367:not(#\9) { margin-block-start: var(--space-s-hdd878, 12px); } .awsui_custom-content-wrapper_1wzqe_a56yz_371:not(#\9) { display: contents; } .awsui_custom-control_1wzqe_a56yz_375:not(#\9) { /* used in test-utils */ } .awsui_input_1wzqe_a56yz_184:not(#\9) { flex: 1; } .awsui_results_1wzqe_a56yz_383:not(#\9) { padding-block: calc(var(--space-scaled-xxs-t2t62i, 4px) + var(--border-width-field-404eki, 1px)); padding-inline: 0; } .awsui_token-trigger_1wzqe_a56yz_388:not(#\9) { min-inline-size: 0; word-break: break-word; } .awsui_remove-all_1wzqe_a56yz_393:not(#\9), .awsui_join-operation_1wzqe_a56yz_394:not(#\9), .awsui_custom-filter-actions_1wzqe_a56yz_395:not(#\9) { /* used in test-utils */ } .awsui_constraint_1wzqe_a56yz_399:not(#\9) { padding-block-start: var(--space-xxs-ja5cp8, 4px); color: var(--color-text-form-secondary-6vvbul, #687078); font-size: var(--font-size-body-s-6sh5cc, 12px); line-height: var(--line-height-body-s-usc3fr, 16px); letter-spacing: var(--letter-spacing-body-s-4f9u0r, normal); }