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

333 lines (328 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_2rhyz_1957b_145:not(#\9) { /* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */ } .awsui_input_2rhyz_1957b_149: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; padding-block: var(--space-scaled-xxs-t2t62i, 4px); padding-inline: var(--space-field-horizontal-zt16s8, 8px); color: var(--color-text-body-default-zs35hz, #16191f); inline-size: 100%; cursor: text; box-sizing: border-box; background-color: var(--color-background-input-default-xowsm5, #ffffff); border-start-start-radius: var(--border-radius-input-gycuv6, 2px); border-start-end-radius: var(--border-radius-input-gycuv6, 2px); border-end-start-radius: var(--border-radius-input-gycuv6, 2px); border-end-end-radius: var(--border-radius-input-gycuv6, 2px); border-block: var(--border-width-field-404eki, 1px) solid var(--color-border-input-default-ijkrzo, #687078); border-inline: var(--border-width-field-404eki, 1px) solid var(--color-border-input-default-ijkrzo, #687078); font-size: var(--font-size-body-m-kbh530, 14px); line-height: var(--line-height-body-m-0awzkk, 22px); block-size: var(--size-vertical-input-pta06y, 32px); } .awsui_input_2rhyz_1957b_149.awsui_input-readonly_2rhyz_1957b_196:not(#\9) { background-color: var(--color-background-input-default-xowsm5, #ffffff); border-block: var(--border-width-field-404eki, 1px) solid var(--color-border-input-disabled-i75jkh, #eaeded); border-inline: var(--border-width-field-404eki, 1px) solid var(--color-border-input-disabled-i75jkh, #eaeded); } .awsui_input_2rhyz_1957b_149:not(#\9)::-webkit-input-placeholder { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; -webkit-user-select: none; user-select: none; } .awsui_input_2rhyz_1957b_149:not(#\9)::-ms-input-placeholder { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; } .awsui_input_2rhyz_1957b_149:not(#\9)::-moz-placeholder { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; opacity: 1; } .awsui_input_2rhyz_1957b_149:not(#\9):-ms-input-placeholder { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; } .awsui_input_2rhyz_1957b_149:not(#\9):-moz-placeholder { color: var(--color-text-input-placeholder-bclxfj, #687078); font-style: italic; opacity: 1; } .awsui_input_2rhyz_1957b_149:not(#\9):focus { outline: 2px dotted transparent; border-block: var(--border-width-field-404eki, 1px) solid var(--color-border-input-focused-5893wz, #0073bb); border-inline: var(--border-width-field-404eki, 1px) solid var(--color-border-input-focused-5893wz, #0073bb); border-start-start-radius: var(--border-radius-input-gycuv6, 2px); border-start-end-radius: var(--border-radius-input-gycuv6, 2px); border-end-start-radius: var(--border-radius-input-gycuv6, 2px); border-end-end-radius: var(--border-radius-input-gycuv6, 2px); box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-o8rs1p, 1px) var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_input_2rhyz_1957b_149:not(#\9):disabled { background-color: var(--color-background-input-disabled-fib0qr, #eaeded); border-block: var(--border-width-field-404eki, 1px) solid var(--color-border-input-disabled-i75jkh, #eaeded); border-inline: var(--border-width-field-404eki, 1px) solid var(--color-border-input-disabled-i75jkh, #eaeded); color: var(--color-text-input-disabled-scisz5, #879596); cursor: auto; cursor: default; } .awsui_input_2rhyz_1957b_149:not(#\9):disabled::-webkit-input-placeholder { color: var(--color-text-input-placeholder-disabled-2odnh9, #687078); -webkit-user-select: none; user-select: none; } .awsui_input_2rhyz_1957b_149:not(#\9):disabled::-ms-input-placeholder { color: var(--color-text-input-placeholder-disabled-2odnh9, #687078); } .awsui_input_2rhyz_1957b_149:not(#\9):disabled::-moz-placeholder { color: var(--color-text-input-placeholder-disabled-2odnh9, #687078); opacity: 1; } .awsui_input_2rhyz_1957b_149:not(#\9):disabled:-ms-input-placeholder { color: var(--color-text-input-placeholder-disabled-2odnh9, #687078); } .awsui_input_2rhyz_1957b_149:not(#\9):disabled:-moz-placeholder { color: var(--color-text-input-placeholder-disabled-2odnh9, #687078); opacity: 1; } .awsui_input_2rhyz_1957b_149:not(#\9):invalid { box-shadow: none; } .awsui_input_2rhyz_1957b_149.awsui_input-invalid_2rhyz_1957b_263:not(#\9) { color: var(--color-text-status-error-oa993i, #d13212); border-color: var(--color-text-status-error-oa993i, #d13212); padding-inline-start: calc(var(--space-field-horizontal-zt16s8, 8px) - (var(--border-invalid-width-jub7d4, 4px) - var(--border-width-field-404eki, 1px))); border-inline-start-width: var(--border-invalid-width-jub7d4, 4px); } .awsui_input_2rhyz_1957b_149.awsui_input-invalid_2rhyz_1957b_263:not(#\9):focus { box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-quihle, 1px) var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_input_2rhyz_1957b_149.awsui_input-invalid_2rhyz_1957b_263.awsui_input-has-icon-left_2rhyz_1957b_272:not(#\9) { padding-inline-start: calc(var(--space-field-icon-offset-3lrw7i, 32px) - (var(--border-invalid-width-jub7d4, 4px) - var(--border-width-field-404eki, 1px))); } .awsui_input_2rhyz_1957b_149.awsui_input-warning_2rhyz_1957b_275:not(#\9) { color: var(--color-text-status-warning-a2jajm, #906806); border-color: var(--color-text-status-warning-a2jajm, #906806); padding-inline-start: calc(var(--space-field-horizontal-zt16s8, 8px) - (var(--border-invalid-width-jub7d4, 4px) - var(--border-width-field-404eki, 1px))); border-inline-start-width: var(--border-invalid-width-jub7d4, 4px); } .awsui_input_2rhyz_1957b_149.awsui_input-warning_2rhyz_1957b_275:not(#\9):focus { box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-quihle, 1px) var(--color-border-item-focused-j88ehv, #0073bb); } .awsui_input_2rhyz_1957b_149.awsui_input-warning_2rhyz_1957b_275.awsui_input-has-icon-left_2rhyz_1957b_272:not(#\9) { padding-inline-start: calc(var(--space-field-icon-offset-3lrw7i, 32px) - (var(--border-invalid-width-jub7d4, 4px) - var(--border-width-field-404eki, 1px))); } .awsui_input_2rhyz_1957b_149.awsui_input-type-search_2rhyz_1957b_287:not(#\9) { box-sizing: border-box; -webkit-appearance: none; } .awsui_input_2rhyz_1957b_149.awsui_input-type-search_2rhyz_1957b_287:not(#\9)::-webkit-search-decoration { -webkit-appearance: none; } .awsui_input_2rhyz_1957b_149.awsui_input-type-search_2rhyz_1957b_287:not(#\9)::-webkit-search-cancel-button { display: none; } .awsui_input_2rhyz_1957b_149.awsui_input-has-icon-left_2rhyz_1957b_272:not(#\9) { padding-inline-start: var(--space-field-icon-offset-3lrw7i, 32px); } .awsui_input_2rhyz_1957b_149.awsui_input-has-icon-right_2rhyz_1957b_300:not(#\9) { padding-inline-end: var(--space-field-icon-offset-3lrw7i, 32px); } .awsui_input_2rhyz_1957b_149.awsui_input-has-no-border-radius_2rhyz_1957b_303:not(#\9) { 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_input-container_2rhyz_1957b_310:not(#\9) { display: flex; position: relative; } .awsui_input-icon-left_2rhyz_1957b_315:not(#\9) { position: absolute; pointer-events: none; inset-inline-start: var(--space-field-horizontal-zt16s8, 8px); inset-block-start: calc(50% - var(--line-height-body-m-0awzkk, 22px) / 2); } .awsui_input-icon-right_2rhyz_1957b_322:not(#\9) { position: absolute; inset-block-start: calc(calc(50% - var(--line-height-body-m-0awzkk, 22px) / 2) - var(--space-xxxs-j6dpcy, 2px)); inset-inline-end: calc(var(--space-field-horizontal-zt16s8, 8px) - var(--space-xxs-ja5cp8, 4px)); } .awsui_input-button-right_2rhyz_1957b_328:not(#\9) { /* used in test-utils */ }