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

377 lines (372 loc) • 15.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_universal-toolbar_1kzri_96u7g_153:not(#\9) { background-color: var(--color-background-layout-panel-content-jymwa8, #ffffff); box-sizing: border-box; position: sticky; z-index: 1000; display: flex; transition: ease var(--motion-duration-refresh-only-slow-c396qe, 0ms); transition-property: inset-block-start, opacity; } @media (prefers-reduced-motion: reduce) { .awsui_universal-toolbar_1kzri_96u7g_153:not(#\9) { animation: none; transition: none; } } .awsui-motion-disabled .awsui_universal-toolbar_1kzri_96u7g_153:not(#\9), .awsui-mode-entering .awsui_universal-toolbar_1kzri_96u7g_153:not(#\9) { animation: none; transition: none; } .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):before, .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 5px; block-size: 5px; background: #161d26; /** * Adds a border to visually separate the main content area from the left global drawer. * * Note: Direct border application is not possible for either target element: * - Main content area: Uses `display: contents`, preventing border application * - Nav panel: May be hidden, causing the border to disappear when separation is still needed */ } @media not print { .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):before, .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */ } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):before, .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):before, .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after, .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { content: ""; position: absolute; inset-block-start: 42px; inset-inline-start: 0; inline-size: var(--border-divider-section-width-4f9905, 1px); block-size: calc(100vh - 42px); background: var(--color-border-layout-jd9fka, #d5dbdb); } } .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { background-color: var(--color-background-layout-panel-content-jymwa8, #ffffff); border-start-start-radius: var(--space-xxs-ja5cp8, 4px); } @media not print { .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */ } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after, .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9):not(:has(.awsui_universal-toolbar-ai-custom_1kzri_96u7g_172)):after { display: none; } } .awsui_universal-toolbar_1kzri_96u7g_153.awsui_disable-body-scroll_1kzri_96u7g_214:not(#\9) { inset-block-start: 0px; } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9) { grid-column: 1; position: relative; display: flex; justify-content: center; align-items: center; align-self: flex-start; padding-inline: var(--space-static-s-q0yjjb, 12px); box-sizing: border-box; /** * Button sizing adjustments for theme-specific design requirements * * Light mode: Button width is set to 100% + border width to intentionally overlap * with the bottom border, as specified in the UI design. * * Dark mode: Resets the overlap styling due to different design requirements * where overlap should not occur. */ block-size: calc(100% + var(--border-divider-section-width-4f9905, 1px)); background: #161d26; } @media not print { .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9) { /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */ } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9), .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9) { block-size: 100%; } } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):before, .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):after { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: -5px; inline-size: 5px; block-size: 5px; background: #161d26; } @media not print { .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):before, .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):after { /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */ } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):before, .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):before, .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):after, .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):after { display: none; } } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_universal-toolbar-ai-custom_1kzri_96u7g_172:not(#\9):after { background-color: var(--color-background-layout-panel-content-jymwa8, #ffffff); border-start-start-radius: var(--space-xxs-ja5cp8, 4px); } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267:not(#\9) { block-size: 100%; align-items: center; display: grid; inline-size: 100%; grid-template-columns: min-content min-content minmax(0, 3fr) minmax(auto, 1fr); grid-template-rows: 1fr; } @media not print { .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267:not(#\9) { /* stylelint-disable selector-combinator-disallowed-list, selector-class-pattern */ } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267:not(#\9), .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267:not(#\9) { border-block-start: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-layout-jd9fka, #d5dbdb); } .awsui-polaris-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9), .awsui-dark-mode .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267.awsui_with-ai-drawer_1kzri_96u7g_172:not(#\9) { border-start-start-radius: var(--space-xxs-ja5cp8, 4px); border-inline-start: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-layout-jd9fka, #d5dbdb); } } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267 > .awsui_universal-toolbar-nav_1kzri_96u7g_287:not(#\9) { grid-column: 2; padding-inline-start: var(--space-m-h2th94, 16px); padding-inline-end: var(--space-static-xxs-jqh73n, 4px); } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267 > .awsui_universal-toolbar-breadcrumbs_1kzri_96u7g_292:not(#\9) { grid-column: 3; padding-inline: var(--space-static-xs-zgeph4, 8px); background-color: transparent; flex: 1 0; } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267 > .awsui_universal-toolbar-breadcrumbs_1kzri_96u7g_292:not(#\9):first-child { padding-inline: calc(var(--space-static-xs-zgeph4, 8px) + var(--space-static-m-1plzkw, 16px)); } .awsui_universal-toolbar_1kzri_96u7g_153 > .awsui_toolbar-container_1kzri_96u7g_267 > .awsui_universal-toolbar-drawers_1kzri_96u7g_301:not(#\9) { grid-column: 4; column-gap: var(--space-static-xs-zgeph4, 8px); display: flex; justify-content: flex-end; block-size: 100%; } .awsui_drawers-desktop-triggers-container_1kzri_96u7g_309:not(#\9), .awsui_drawers-mobile-triggers-container_1kzri_96u7g_310: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; background-color: transparent; padding-inline: var(--space-m-h2th94, 16px); box-sizing: border-box; overflow-y: hidden; overflow-x: hidden; /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ overscroll-behavior-y: contain; /* stylelint-disable-next-line plugin/no-unsupported-browser-features */ overscroll-behavior-x: contain; inline-size: 100%; } .awsui_drawers-trigger-content_1kzri_96u7g_352:not(#\9) { block-size: 100%; align-items: center; display: flex; flex-direction: row; gap: var(--space-xs-edba2s, 8px); justify-content: flex-end; padding-inline-start: var(--space-xs-edba2s, 8px); } .awsui_group-divider_1kzri_96u7g_362:not(#\9) { border-inline-end: var(--border-divider-section-width-4f9905, 1px) solid var(--color-border-divider-default-g2zqci, #eaeded); block-size: 60%; } @media (max-width: 688px) { .awsui_drawers-trigger_1kzri_96u7g_352:not(#\9) { display: flex; justify-content: center; align-items: center; } } .awsui_block-body-scroll_1kzri_96u7g_375:not(#\9) { overflow: hidden; }