@cloudscape-design/components 3.0.1156 → 3.0.1158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/index.js +1 -1
- package/alert/interfaces.d.ts +1 -2
- package/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +50 -50
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +21 -21
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/runtime-drawer/index.d.ts.map +1 -1
- package/app-layout/runtime-drawer/index.js +20 -18
- package/app-layout/runtime-drawer/index.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +30 -30
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/autosuggest/index.js +28 -11
- package/autosuggest/interfaces.d.ts +2 -1
- package/autosuggest/interfaces.js.map +1 -1
- package/badge/index.d.ts +2 -0
- package/badge/index.js +14 -13
- package/badge/interfaces.d.ts +3 -2
- package/box/index.js +18 -13
- package/box/interfaces.d.ts +2 -1
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/index.js +12 -11
- package/button/interfaces.d.ts +4 -2
- package/button/styles.css.js +22 -22
- package/button/styles.scoped.css +256 -256
- package/button/styles.selectors.js +22 -22
- package/button-dropdown/index.js +27 -11
- package/button-dropdown/interfaces.d.ts +6 -2
- package/button-dropdown/item-element/styles.css.js +20 -20
- package/button-dropdown/item-element/styles.scoped.css +34 -34
- package/button-dropdown/item-element/styles.selectors.js +20 -20
- package/button-group/index.js +42 -11
- package/button-group/interfaces.d.ts +10 -0
- package/button-group/interfaces.d.ts.map +1 -1
- package/button-group/interfaces.js.map +1 -1
- package/checkbox/index.js +9 -11
- package/checkbox/interfaces.d.ts +3 -2
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +11 -11
- package/checkbox/styles.selectors.js +3 -3
- package/container/index.js +29 -13
- package/container/interfaces.d.ts +2 -1
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/date-input/index.js +8 -10
- package/flashbar/index.js +10 -13
- package/flashbar/interfaces.d.ts +1 -0
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +187 -187
- package/flashbar/styles.selectors.js +50 -50
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +73 -73
- package/help-panel/styles.selectors.js +6 -6
- package/icon/index.js +8 -13
- package/icon/interfaces.d.ts +2 -1
- package/icon-provider/index.js +12 -2
- package/index.d.ts +4 -1
- package/index.js +4 -0
- package/input/index.js +53 -12
- package/input/interfaces.d.ts +3 -1
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +74 -74
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +21 -21
- package/internal/components/drag-handle-wrapper/styles.scoped.css +49 -49
- package/internal/components/drag-handle-wrapper/styles.selectors.js +21 -21
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +38 -38
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/radio-button/interfaces.d.ts +3 -3
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +18 -18
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +3 -3
- package/internal/environment.json +3 -3
- package/internal/generated/custom-css-properties/index.d.ts +5 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +131 -126
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/controllers/drawers.d.ts +2 -2
- package/internal/plugins/controllers/drawers.d.ts.map +1 -1
- package/internal/plugins/controllers/drawers.js.map +1 -1
- package/internal/plugins/widget/interfaces.d.ts +2 -2
- package/internal/plugins/widget/interfaces.d.ts.map +1 -1
- package/internal/plugins/widget/interfaces.js.map +1 -1
- package/internal/types.d.ts +19 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js.map +1 -1
- package/link/index.js +25 -11
- package/link/interfaces.d.ts +3 -2
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +103 -103
- package/link/styles.selectors.js +20 -20
- package/navigable-group/index.js +19 -4
- package/package.json +4 -1
- package/progress-bar/index.d.ts +1 -0
- package/progress-bar/index.js +52 -14
- package/progress-bar/interfaces.d.ts +1 -0
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +56 -56
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/index.js +19 -11
- package/prompt-input/interfaces.d.ts +4 -3
- package/prompt-input/styles.css.js +17 -17
- package/prompt-input/styles.scoped.css +79 -79
- package/prompt-input/styles.selectors.js +17 -17
- package/radio-button/index.js +19 -4
- package/radio-group/index.js +20 -11
- package/radio-group/interfaces.d.ts +1 -1
- package/segmented-control/index.js +14 -13
- package/segmented-control/interfaces.d.ts +1 -0
- package/segmented-control/styles.css.js +16 -16
- package/segmented-control/styles.scoped.css +46 -46
- package/segmented-control/styles.selectors.js +16 -16
- package/select/interfaces.d.ts +1 -1
- package/select/interfaces.js.map +1 -1
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +86 -86
- package/slider/styles.selectors.js +26 -26
- package/space-between/index.js +10 -13
- package/space-between/interfaces.d.ts +2 -1
- package/spinner/index.js +10 -13
- package/spinner/interfaces.d.ts +2 -1
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/status-indicator/index.js +10 -13
- package/status-indicator/interfaces.d.ts +2 -1
- package/steps/index.js +11 -11
- package/steps/interfaces.d.ts +6 -2
- package/table/header-cell/index.d.ts +1 -1
- package/table/header-cell/index.d.ts.map +1 -1
- package/table/header-cell/index.js +1 -1
- package/table/header-cell/index.js.map +1 -1
- package/table/header-cell/th-element.d.ts +1 -1
- package/table/header-cell/th-element.d.ts.map +1 -1
- package/table/header-cell/th-element.js.map +1 -1
- package/table/resizer/index.d.ts +3 -1
- package/table/resizer/index.d.ts.map +1 -1
- package/table/resizer/index.js +8 -5
- package/table/resizer/index.js.map +1 -1
- package/table/resizer/styles.css.js +13 -12
- package/table/resizer/styles.scoped.css +22 -22
- package/table/resizer/styles.selectors.js +13 -12
- package/table/thead.d.ts +1 -1
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js.map +1 -1
- package/tabs/index.d.ts +1 -0
- package/tabs/index.d.ts.map +1 -1
- package/tabs/index.js +3 -3
- package/tabs/index.js.map +1 -1
- package/tabs/interfaces.d.ts +45 -0
- package/tabs/interfaces.d.ts.map +1 -1
- package/tabs/interfaces.js.map +1 -1
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.d.ts +32 -0
- package/tabs/styles.d.ts.map +1 -0
- package/tabs/styles.js +47 -0
- package/tabs/styles.js.map +1 -0
- package/tabs/styles.scoped.css +77 -73
- package/tabs/styles.selectors.js +30 -30
- package/tabs/tab-header-bar.d.ts +3 -1
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +6 -4
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/text-filter/index.js +17 -10
- package/text-filter/interfaces.d.ts +1 -0
- package/textarea/index.js +65 -12
- package/textarea/interfaces.d.ts +3 -2
- package/textarea/styles.css.js +5 -5
- package/textarea/styles.scoped.css +45 -45
- package/textarea/styles.selectors.js +5 -5
- package/time-input/index.js +15 -11
- package/toggle/index.js +6 -10
- package/toggle/interfaces.d.ts +3 -2
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +23 -23
- package/toggle/styles.selectors.js +10 -10
- package/toggle-button/index.js +14 -11
- package/wizard/index.js +35 -13
- package/wizard/interfaces.d.ts +1 -1
- package/autosuggest/internal-do-not-use-core.js +0 -35
- package/badge/internal-do-not-use-core.js +0 -19
- package/box/internal-do-not-use-core.js +0 -23
- package/button/internal-do-not-use-core.js +0 -19
- package/button-dropdown/internal-do-not-use-core.js +0 -34
- package/button-group/internal-do-not-use-core.js +0 -49
- package/checkbox/internal-do-not-use-core.js +0 -16
- package/container/internal-do-not-use-core.js +0 -34
- package/date-input/internal-do-not-use-core.js +0 -16
- package/flashbar/internal-do-not-use-core.js +0 -15
- package/icon/internal-do-not-use-core.js +0 -13
- package/input/internal-do-not-use-core.js +0 -59
- package/link/internal-do-not-use-core.js +0 -32
- package/progress-bar/internal-do-not-use-core.js +0 -56
- package/prompt-input/internal-do-not-use-core.js +0 -26
- package/radio-group/internal-do-not-use-core.js +0 -27
- package/segmented-control/internal-do-not-use-core.js +0 -19
- package/space-between/internal-do-not-use-core.js +0 -15
- package/spinner/internal-do-not-use-core.js +0 -15
- package/status-indicator/internal-do-not-use-core.js +0 -15
- package/steps/internal-do-not-use-core.js +0 -18
- package/text-filter/internal-do-not-use-core.js +0 -25
- package/textarea/internal-do-not-use-core.js +0 -71
- package/time-input/internal-do-not-use-core.js +0 -22
- package/toggle/internal-do-not-use-core.js +0 -14
- package/toggle-button/internal-do-not-use-core.js +0 -21
- package/wizard/internal-do-not-use-core.js +0 -40
- /package/autosuggest/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/badge/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/box/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button-dropdown/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/button-group/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/checkbox/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/container/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/date-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/flashbar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/icon/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/link/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/progress-bar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/prompt-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/radio-group/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/segmented-control/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/space-between/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/spinner/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/status-indicator/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/steps/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/text-filter/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/textarea/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/time-input/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/toggle/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/toggle-button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
- /package/wizard/{internal-do-not-use-core.js.map → index.js.map} +0 -0
package/tabs/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonProps } from '../button/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface TabsProps extends BaseComponentProps {\n /**\n * Specifies the tabs to display. Each tab object has the following properties:\n *\n * - `id` (string) - The tab identifier. This value needs to be passed to the Tabs component as `activeTabId` to select this tab.\n * - `label` (ReactNode) - Tab label shown in the UI.\n * - `content` (ReactNode) - (Optional) Tab content to render in the container.\n * - `disabled` (boolean) - (Optional) Specifies if this tab is disabled.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the tab when disabled. Use to provide additional context.\n * - `dismissible` (boolean) - (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * - `dismissLabel` (boolean) - (Optional) Specifies an aria-label for the dismiss icon button.\n * - `dismissDisabled` (boolean) - (Optional) Determines whether the dismiss button is disabled.\n * - `action` (ReactNode) - (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n * - `onDismiss` (ButtonProps['onClick']) - (Optional) Called when a user clicks on the dismiss button.\n * - `href` (string) - (Optional) You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (that is, CTRL,\n * ALT, SHIFT, META). This enables the user to open new browser tabs with an initially selected component tab,\n * if your application routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n * - `contentRenderStrategy` (string) - (Optional) Determines when tab content is rendered:\n - `'active'`: (Default) Only render content when the tab is active.\n * - `'eager'`: Always render tab content (hidden when the tab is not active).\n * - `'lazy'`: Like 'eager', but content is only rendered after the tab is first activated.\n */\n tabs: ReadonlyArray<TabsProps.Tab>;\n\n /**\n * Actions for the tabs header, displayed next to the list of tabs.\n * Use this to add a button or button dropdown that performs actions on the\n * entire tab list. We recommend a maximum of one interactive element to\n * minimize the number of keyboard tab stops between the tab list and content.\n */\n actions?: React.ReactNode;\n\n /**\n * The possible visual variants of tabs are the following:\n * * `default` - Use in any context.\n * * `container` - Use this variant to have the tabs displayed within a container header.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * @visualrefresh `stacked` variant\n */\n variant?: TabsProps.Variant;\n\n /**\n * Called whenever the user selects a different tab.\n * The event's `detail` contains the new `activeTabId`.\n */\n onChange?: NonCancelableEventHandler<TabsProps.ChangeDetail>;\n\n /**\n * The `id` of the currently active tab.\n * * If you don't set this property, the component activates the first tab and switches tabs automatically when a tab header is clicked (that is, uncontrolled behavior).\n * * If you explicitly set this property, you must set define an `onChange` handler to update the property when a tab header is clicked (that is, controlled behavior).\n */\n activeTabId?: string;\n\n /**\n * Provides an `aria-label` to the tab container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tab container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Determines whether the tab content has padding. If `true`, removes the default padding from the tab content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TabsProps.I18nStrings;\n /**\n * Enabling this property makes the tab content fit to the available height.\n * If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.\n */\n fitHeight?: boolean;\n /**\n * Determines how the active tab is switched when navigating using\n * the keyboard. The options are:\n * - 'automatic' (default): the active tab is switched using the arrow keys.\n * - 'manual': a tab must be explicitly activated using the enter/space key.\n * We recommend using 'automatic' in most situations to provide consistent\n * and quick switching between tabs. Use 'manual' only if there is a specific\n * need to introduce friction to the switching of tabs.\n */\n keyboardActivationMode?: 'automatic' | 'manual';\n}\nexport namespace TabsProps {\n export type Variant = 'default' | 'container' | 'stacked';\n\n export interface Tab {\n /**\n * The tab id. This value will be need to be passed to the Tabs component as `activeTabId` to select this tab.\n */\n id: string;\n /**\n * Tab label shown in the UI.\n */\n label: React.ReactNode;\n /**\n * Tab content to render in the container.\n */\n content?: React.ReactNode;\n /**\n * Whether this tab is disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why this tab is disabled.\n */\n disabledReason?: string;\n /**\n * (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * When a user clicks on this button the onDismiss handler is called.\n */\n dismissible?: boolean;\n /**\n * (Optional) Specifies an aria-label for the dismiss icon button.\n */\n dismissLabel?: string;\n /**\n * (Optional) Determines whether the dismiss button is disabled.\n */\n dismissDisabled?: boolean;\n /**\n * (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n */\n action?: React.ReactNode;\n /**\n * (event => void) Called when a user clicks on the dismiss button.\n */\n onDismiss?: ButtonProps['onClick'];\n /**\n * You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (CTRL,\n * ALT, SHIFT, META). This allows to open new browser tabs with an initially selected component tab,\n * when the routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n href?: string;\n /**\n * Determines when tab content is rendered:\n * - 'active' (default): Only render content when the tab is active.\n * - 'eager': Always render tab content (hidden when the tab is not active).\n * - 'lazy': Like 'eager', but content is only rendered after the tab is first activated.\n */\n contentRenderStrategy?: 'active' | 'eager' | 'lazy';\n }\n\n export interface ChangeDetail {\n /**\n * The ID of the clicked tab.\n */\n activeTabId: string;\n /**\n * The `href` attribute of the clicked tab, if defined.\n */\n activeTabHref?: string;\n }\n\n export interface I18nStrings {\n /**\n * ARIA label for the scroll left button that appears when the tab header is wider than the container.\n */\n scrollLeftAriaLabel?: string;\n /**\n * ARIA label for the scroll right button that appears when the tab header is wider than the container.\n */\n scrollRightAriaLabel?: string;\n /**\n * ARIA role description for the Tabs component when an action or dismissible prop is in use. This is used\n * with role=\"application\" to provide further information on the purpose of this component\n */\n tabsWithActionsAriaRoleDescription?: string;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonProps } from '../button/interfaces';\nimport { ContainerProps } from '../container/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { FocusRingStyle } from '../internal/types';\n\nexport interface TabsProps extends BaseComponentProps {\n /**\n * Specifies the tabs to display. Each tab object has the following properties:\n *\n * - `id` (string) - The tab identifier. This value needs to be passed to the Tabs component as `activeTabId` to select this tab.\n * - `label` (ReactNode) - Tab label shown in the UI.\n * - `content` (ReactNode) - (Optional) Tab content to render in the container.\n * - `disabled` (boolean) - (Optional) Specifies if this tab is disabled.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the tab when disabled. Use to provide additional context.\n * - `dismissible` (boolean) - (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * - `dismissLabel` (boolean) - (Optional) Specifies an aria-label for the dismiss icon button.\n * - `dismissDisabled` (boolean) - (Optional) Determines whether the dismiss button is disabled.\n * - `action` (ReactNode) - (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n * - `onDismiss` (ButtonProps['onClick']) - (Optional) Called when a user clicks on the dismiss button.\n * - `href` (string) - (Optional) You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (that is, CTRL,\n * ALT, SHIFT, META). This enables the user to open new browser tabs with an initially selected component tab,\n * if your application routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n * - `contentRenderStrategy` (string) - (Optional) Determines when tab content is rendered:\n - `'active'`: (Default) Only render content when the tab is active.\n * - `'eager'`: Always render tab content (hidden when the tab is not active).\n * - `'lazy'`: Like 'eager', but content is only rendered after the tab is first activated.\n */\n tabs: ReadonlyArray<TabsProps.Tab>;\n\n /**\n * Actions for the tabs header, displayed next to the list of tabs.\n * Use this to add a button or button dropdown that performs actions on the\n * entire tab list. We recommend a maximum of one interactive element to\n * minimize the number of keyboard tab stops between the tab list and content.\n */\n actions?: React.ReactNode;\n\n /**\n * The possible visual variants of tabs are the following:\n * * `default` - Use in any context.\n * * `container` - Use this variant to have the tabs displayed within a container header.\n * * `stacked` - Use this variant directly adjacent to other stacked containers (such as a container, table).\n * @visualrefresh `stacked` variant\n */\n variant?: TabsProps.Variant;\n\n /**\n * Called whenever the user selects a different tab.\n * The event's `detail` contains the new `activeTabId`.\n */\n onChange?: NonCancelableEventHandler<TabsProps.ChangeDetail>;\n\n /**\n * The `id` of the currently active tab.\n * * If you don't set this property, the component activates the first tab and switches tabs automatically when a tab header is clicked (that is, uncontrolled behavior).\n * * If you explicitly set this property, you must set define an `onChange` handler to update the property when a tab header is clicked (that is, controlled behavior).\n */\n activeTabId?: string;\n\n /**\n * Provides an `aria-label` to the tab container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tab container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Determines whether the tab content has padding. If `true`, removes the default padding from the tab content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TabsProps.I18nStrings;\n /**\n * Enabling this property makes the tab content fit to the available height.\n * If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.\n */\n fitHeight?: boolean;\n /**\n * Determines how the active tab is switched when navigating using\n * the keyboard. The options are:\n * - 'automatic' (default): the active tab is switched using the arrow keys.\n * - 'manual': a tab must be explicitly activated using the enter/space key.\n * We recommend using 'automatic' in most situations to provide consistent\n * and quick switching between tabs. Use 'manual' only if there is a specific\n * need to introduce friction to the switching of tabs.\n */\n keyboardActivationMode?: 'automatic' | 'manual';\n\n /**\n * @awsuiSystem core\n */\n style?: TabsProps.Style;\n}\nexport namespace TabsProps {\n export type Variant = 'default' | 'container' | 'stacked';\n\n export interface Tab {\n /**\n * The tab id. This value will be need to be passed to the Tabs component as `activeTabId` to select this tab.\n */\n id: string;\n /**\n * Tab label shown in the UI.\n */\n label: React.ReactNode;\n /**\n * Tab content to render in the container.\n */\n content?: React.ReactNode;\n /**\n * Whether this tab is disabled.\n */\n disabled?: boolean;\n /**\n * Provides a reason why this tab is disabled.\n */\n disabledReason?: string;\n /**\n * (Optional) Determines whether the tab includes a dismiss icon button. By default, the dismiss button is not included.\n * When a user clicks on this button the onDismiss handler is called.\n */\n dismissible?: boolean;\n /**\n * (Optional) Specifies an aria-label for the dismiss icon button.\n */\n dismissLabel?: string;\n /**\n * (Optional) Determines whether the dismiss button is disabled.\n */\n dismissDisabled?: boolean;\n /**\n * (Optional) Action for the tab, rendered next to its corresponding label.\n * Although it is technically possible to insert any content, our UX guidelines only allow you to add\n * an icon button or icon button dropdown.\n */\n action?: React.ReactNode;\n /**\n * (event => void) Called when a user clicks on the dismiss button.\n */\n onDismiss?: ButtonProps['onClick'];\n /**\n * You can use this parameter to change the default `href` of the internal tab anchor. The\n * `click` event default behavior is prevented, unless the user clicks the tab with a key modifier (CTRL,\n * ALT, SHIFT, META). This allows to open new browser tabs with an initially selected component tab,\n * when the routing can handle such deep links. You can manually update routing on the current page\n * using the `activeTabHref` property of the `change` event's detail.\n */\n href?: string;\n /**\n * Determines when tab content is rendered:\n * - 'active' (default): Only render content when the tab is active.\n * - 'eager': Always render tab content (hidden when the tab is not active).\n * - 'lazy': Like 'eager', but content is only rendered after the tab is first activated.\n */\n contentRenderStrategy?: 'active' | 'eager' | 'lazy';\n }\n\n export interface ChangeDetail {\n /**\n * The ID of the clicked tab.\n */\n activeTabId: string;\n /**\n * The `href` attribute of the clicked tab, if defined.\n */\n activeTabHref?: string;\n }\n\n export interface I18nStrings {\n /**\n * ARIA label for the scroll left button that appears when the tab header is wider than the container.\n */\n scrollLeftAriaLabel?: string;\n /**\n * ARIA label for the scroll right button that appears when the tab header is wider than the container.\n */\n scrollRightAriaLabel?: string;\n /**\n * ARIA role description for the Tabs component when an action or dismissible prop is in use. This is used\n * with role=\"application\" to provide further information on the purpose of this component\n */\n tabsWithActionsAriaRoleDescription?: string;\n }\n\n export interface Style {\n container?: ContainerProps.Style;\n tab?: {\n backgroundColor?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n borderColor?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n color?: {\n active?: string;\n default?: string;\n disabled?: string;\n hover?: string;\n };\n fontSize?: string;\n fontWeight?: string;\n focusRing?: FocusRingStyle;\n paddingBlock?: string;\n paddingInline?: string;\n activeIndicator?: {\n color?: string;\n width?: string;\n borderRadius?: string;\n };\n };\n tabSeparator?: {\n color?: string;\n width?: string;\n };\n }\n}\n"]}
|
package/tabs/styles.css.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"tabs-header": "awsui_tabs-
|
|
5
|
-
"tab-header-scroll-container": "awsui_tab-header-scroll-
|
|
6
|
-
"tabs-header-list": "awsui_tabs-header-
|
|
7
|
-
"pagination-button": "awsui_pagination-
|
|
8
|
-
"pagination-button-left": "awsui_pagination-button-
|
|
9
|
-
"pagination-button-left-scrollable": "awsui_pagination-button-left-
|
|
10
|
-
"pagination-button-right": "awsui_pagination-button-
|
|
11
|
-
"pagination-button-right-scrollable": "awsui_pagination-button-right-
|
|
12
|
-
"actions-container": "awsui_actions-
|
|
13
|
-
"tabs-tab": "awsui_tabs-
|
|
14
|
-
"tabs-tab-label": "awsui_tabs-tab-
|
|
15
|
-
"tabs-tab-header-container": "awsui_tabs-tab-header-
|
|
16
|
-
"tabs-tab-dismiss": "awsui_tabs-tab-
|
|
17
|
-
"tabs-tab-action": "awsui_tabs-tab-
|
|
18
|
-
"refresh": "
|
|
19
|
-
"tabs-tab-disabled": "awsui_tabs-tab-
|
|
20
|
-
"tabs-tab-link": "awsui_tabs-tab-
|
|
21
|
-
"tabs-tab-active": "awsui_tabs-tab-
|
|
22
|
-
"tabs-header-with-divider": "awsui_tabs-header-with-
|
|
23
|
-
"tabs-tab-focusable": "awsui_tabs-tab-
|
|
24
|
-
"root": "
|
|
25
|
-
"tabs": "
|
|
26
|
-
"tabs-content": "awsui_tabs-
|
|
27
|
-
"fit-height": "awsui_fit-
|
|
28
|
-
"tabs-content-active": "awsui_tabs-content-
|
|
29
|
-
"tabs-content-wrapper": "awsui_tabs-content-
|
|
30
|
-
"with-paddings": "awsui_with-
|
|
31
|
-
"tabs-container-content-wrapper": "awsui_tabs-container-content-
|
|
32
|
-
"disabled-reason-tooltip": "awsui_disabled-reason-
|
|
33
|
-
"tabs-tab-focused": "awsui_tabs-tab-
|
|
4
|
+
"tabs-header": "awsui_tabs-header_14rmt_15h2w_154",
|
|
5
|
+
"tab-header-scroll-container": "awsui_tab-header-scroll-container_14rmt_15h2w_163",
|
|
6
|
+
"tabs-header-list": "awsui_tabs-header-list_14rmt_15h2w_169",
|
|
7
|
+
"pagination-button": "awsui_pagination-button_14rmt_15h2w_186",
|
|
8
|
+
"pagination-button-left": "awsui_pagination-button-left_14rmt_15h2w_193",
|
|
9
|
+
"pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_15h2w_196",
|
|
10
|
+
"pagination-button-right": "awsui_pagination-button-right_14rmt_15h2w_200",
|
|
11
|
+
"pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_15h2w_203",
|
|
12
|
+
"actions-container": "awsui_actions-container_14rmt_15h2w_208",
|
|
13
|
+
"tabs-tab": "awsui_tabs-tab_14rmt_15h2w_216",
|
|
14
|
+
"tabs-tab-label": "awsui_tabs-tab-label_14rmt_15h2w_226",
|
|
15
|
+
"tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_15h2w_237",
|
|
16
|
+
"tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_15h2w_245",
|
|
17
|
+
"tabs-tab-action": "awsui_tabs-tab-action_14rmt_15h2w_245",
|
|
18
|
+
"refresh": "awsui_refresh_14rmt_15h2w_250",
|
|
19
|
+
"tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_15h2w_254",
|
|
20
|
+
"tabs-tab-link": "awsui_tabs-tab-link_14rmt_15h2w_296",
|
|
21
|
+
"tabs-tab-active": "awsui_tabs-tab-active_14rmt_15h2w_379",
|
|
22
|
+
"tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_15h2w_388",
|
|
23
|
+
"tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_15h2w_392",
|
|
24
|
+
"root": "awsui_root_14rmt_15h2w_396",
|
|
25
|
+
"tabs": "awsui_tabs_14rmt_15h2w_154",
|
|
26
|
+
"tabs-content": "awsui_tabs-content_14rmt_15h2w_434",
|
|
27
|
+
"fit-height": "awsui_fit-height_14rmt_15h2w_438",
|
|
28
|
+
"tabs-content-active": "awsui_tabs-content-active_14rmt_15h2w_444",
|
|
29
|
+
"tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_15h2w_458",
|
|
30
|
+
"with-paddings": "awsui_with-paddings_14rmt_15h2w_458",
|
|
31
|
+
"tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_15h2w_469",
|
|
32
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_15h2w_480",
|
|
33
|
+
"tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_15h2w_484"
|
|
34
34
|
};
|
|
35
35
|
|
package/tabs/styles.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import customCssProps from '../internal/generated/custom-css-properties';
|
|
2
|
+
import { TabsProps } from './interfaces';
|
|
3
|
+
export declare function getTabStyles(style: TabsProps['style']): {
|
|
4
|
+
[customCssProps.styleBackgroundActive]: string | undefined;
|
|
5
|
+
[customCssProps.styleBackgroundDefault]: string | undefined;
|
|
6
|
+
[customCssProps.styleBackgroundDisabled]: string | undefined;
|
|
7
|
+
[customCssProps.styleBackgroundHover]: string | undefined;
|
|
8
|
+
[customCssProps.styleBorderColorActive]: string | undefined;
|
|
9
|
+
[customCssProps.styleBorderColorDefault]: string | undefined;
|
|
10
|
+
[customCssProps.styleBorderColorDisabled]: string | undefined;
|
|
11
|
+
[customCssProps.styleBorderColorHover]: string | undefined;
|
|
12
|
+
[customCssProps.styleColorActive]: string | undefined;
|
|
13
|
+
[customCssProps.styleColorDefault]: string | undefined;
|
|
14
|
+
[customCssProps.styleColorDisabled]: string | undefined;
|
|
15
|
+
[customCssProps.styleColorHover]: string | undefined;
|
|
16
|
+
[customCssProps.styleFocusRingBorderColor]: string | undefined;
|
|
17
|
+
[customCssProps.styleFocusRingBorderRadius]: string | undefined;
|
|
18
|
+
[customCssProps.styleFocusRingBorderWidth]: string | undefined;
|
|
19
|
+
borderRadius: string | undefined;
|
|
20
|
+
borderWidth: string | undefined;
|
|
21
|
+
fontSize: string | undefined;
|
|
22
|
+
fontWeight: string | undefined;
|
|
23
|
+
paddingBlock: string | undefined;
|
|
24
|
+
paddingInline: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
export declare function getTabContainerStyles(style: TabsProps['style']): {
|
|
27
|
+
[customCssProps.styleTabsActiveIndicatorColor]: string | undefined;
|
|
28
|
+
[customCssProps.styleTabsActiveIndicatorWidth]: string | undefined;
|
|
29
|
+
[customCssProps.styleTabsActiveIndicatorBorderRadius]: string | undefined;
|
|
30
|
+
[customCssProps.styleTabsSeparatorColor]: string | undefined;
|
|
31
|
+
[customCssProps.styleTabsSeparatorWidth]: string | undefined;
|
|
32
|
+
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/tabs/styles.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAYlD,CAAC,cAAc,CAAC,qBAAqB,CAAC,qBAAqC;IAC3E,CAAC,cAAc,CAAC,sBAAsB,CAAC,qBAAsC;IAC7E,CAAC,cAAc,CAAC,uBAAuB,CAAC,qBAAuC;IAC/E,CAAC,cAAc,CAAC,oBAAoB,CAAC,qBAAoC;IACzE,CAAC,cAAc,CAAC,sBAAsB,CAAC,qBAAiC;IACxE,CAAC,cAAc,CAAC,uBAAuB,CAAC,qBAAkC;IAC1E,CAAC,cAAc,CAAC,wBAAwB,CAAC,qBAAmC;IAC5E,CAAC,cAAc,CAAC,qBAAqB,CAAC,qBAAgC;IACtE,CAAC,cAAc,CAAC,gBAAgB,CAAC,qBAA2B;IAC5D,CAAC,cAAc,CAAC,iBAAiB,CAAC,qBAA4B;IAC9D,CAAC,cAAc,CAAC,kBAAkB,CAAC,qBAA6B;IAChE,CAAC,cAAc,CAAC,eAAe,CAAC,qBAA0B;IAC1D,CAAC,cAAc,CAAC,yBAAyB,CAAC,qBAAoC;IAC9E,CAAC,cAAc,CAAC,0BAA0B,CAAC,qBAAqC;IAChF,CAAC,cAAc,CAAC,yBAAyB,CAAC,qBAAoC;;;;;;;cAEjF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAM3D,CAAC,cAAc,CAAC,6BAA6B,CAAC,qBAAoC;IAClF,CAAC,cAAc,CAAC,6BAA6B,CAAC,qBAAoC;IAClF,CAAC,cAAc,CAAC,oCAAoC,CAAC,qBAA2C;IAChG,CAAC,cAAc,CAAC,uBAAuB,CAAC,qBAA4B;IACpE,CAAC,cAAc,CAAC,uBAAuB,CAAC,qBAA4B;cAEvE"}
|
package/tabs/styles.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { SYSTEM } from '../internal/environment';
|
|
4
|
+
import customCssProps from '../internal/generated/custom-css-properties';
|
|
5
|
+
export function getTabStyles(style) {
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
|
|
7
|
+
if (SYSTEM !== 'core') {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
borderRadius: (_a = style === null || style === void 0 ? void 0 : style.tab) === null || _a === void 0 ? void 0 : _a.borderRadius,
|
|
12
|
+
borderWidth: (_b = style === null || style === void 0 ? void 0 : style.tab) === null || _b === void 0 ? void 0 : _b.borderWidth,
|
|
13
|
+
fontSize: (_c = style === null || style === void 0 ? void 0 : style.tab) === null || _c === void 0 ? void 0 : _c.fontSize,
|
|
14
|
+
fontWeight: (_d = style === null || style === void 0 ? void 0 : style.tab) === null || _d === void 0 ? void 0 : _d.fontWeight,
|
|
15
|
+
paddingBlock: (_e = style === null || style === void 0 ? void 0 : style.tab) === null || _e === void 0 ? void 0 : _e.paddingBlock,
|
|
16
|
+
paddingInline: (_f = style === null || style === void 0 ? void 0 : style.tab) === null || _f === void 0 ? void 0 : _f.paddingInline,
|
|
17
|
+
[customCssProps.styleBackgroundActive]: (_h = (_g = style === null || style === void 0 ? void 0 : style.tab) === null || _g === void 0 ? void 0 : _g.backgroundColor) === null || _h === void 0 ? void 0 : _h.active,
|
|
18
|
+
[customCssProps.styleBackgroundDefault]: (_k = (_j = style === null || style === void 0 ? void 0 : style.tab) === null || _j === void 0 ? void 0 : _j.backgroundColor) === null || _k === void 0 ? void 0 : _k.default,
|
|
19
|
+
[customCssProps.styleBackgroundDisabled]: (_m = (_l = style === null || style === void 0 ? void 0 : style.tab) === null || _l === void 0 ? void 0 : _l.backgroundColor) === null || _m === void 0 ? void 0 : _m.disabled,
|
|
20
|
+
[customCssProps.styleBackgroundHover]: (_p = (_o = style === null || style === void 0 ? void 0 : style.tab) === null || _o === void 0 ? void 0 : _o.backgroundColor) === null || _p === void 0 ? void 0 : _p.hover,
|
|
21
|
+
[customCssProps.styleBorderColorActive]: (_r = (_q = style === null || style === void 0 ? void 0 : style.tab) === null || _q === void 0 ? void 0 : _q.borderColor) === null || _r === void 0 ? void 0 : _r.active,
|
|
22
|
+
[customCssProps.styleBorderColorDefault]: (_t = (_s = style === null || style === void 0 ? void 0 : style.tab) === null || _s === void 0 ? void 0 : _s.borderColor) === null || _t === void 0 ? void 0 : _t.default,
|
|
23
|
+
[customCssProps.styleBorderColorDisabled]: (_v = (_u = style === null || style === void 0 ? void 0 : style.tab) === null || _u === void 0 ? void 0 : _u.borderColor) === null || _v === void 0 ? void 0 : _v.disabled,
|
|
24
|
+
[customCssProps.styleBorderColorHover]: (_x = (_w = style === null || style === void 0 ? void 0 : style.tab) === null || _w === void 0 ? void 0 : _w.borderColor) === null || _x === void 0 ? void 0 : _x.hover,
|
|
25
|
+
[customCssProps.styleColorActive]: (_z = (_y = style === null || style === void 0 ? void 0 : style.tab) === null || _y === void 0 ? void 0 : _y.color) === null || _z === void 0 ? void 0 : _z.active,
|
|
26
|
+
[customCssProps.styleColorDefault]: (_1 = (_0 = style === null || style === void 0 ? void 0 : style.tab) === null || _0 === void 0 ? void 0 : _0.color) === null || _1 === void 0 ? void 0 : _1.default,
|
|
27
|
+
[customCssProps.styleColorDisabled]: (_3 = (_2 = style === null || style === void 0 ? void 0 : style.tab) === null || _2 === void 0 ? void 0 : _2.color) === null || _3 === void 0 ? void 0 : _3.disabled,
|
|
28
|
+
[customCssProps.styleColorHover]: (_5 = (_4 = style === null || style === void 0 ? void 0 : style.tab) === null || _4 === void 0 ? void 0 : _4.color) === null || _5 === void 0 ? void 0 : _5.hover,
|
|
29
|
+
[customCssProps.styleFocusRingBorderColor]: (_7 = (_6 = style === null || style === void 0 ? void 0 : style.tab) === null || _6 === void 0 ? void 0 : _6.focusRing) === null || _7 === void 0 ? void 0 : _7.borderColor,
|
|
30
|
+
[customCssProps.styleFocusRingBorderRadius]: (_9 = (_8 = style === null || style === void 0 ? void 0 : style.tab) === null || _8 === void 0 ? void 0 : _8.focusRing) === null || _9 === void 0 ? void 0 : _9.borderRadius,
|
|
31
|
+
[customCssProps.styleFocusRingBorderWidth]: (_11 = (_10 = style === null || style === void 0 ? void 0 : style.tab) === null || _10 === void 0 ? void 0 : _10.focusRing) === null || _11 === void 0 ? void 0 : _11.borderWidth,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function getTabContainerStyles(style) {
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36
|
+
if (SYSTEM !== 'core') {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
[customCssProps.styleTabsActiveIndicatorColor]: (_b = (_a = style === null || style === void 0 ? void 0 : style.tab) === null || _a === void 0 ? void 0 : _a.activeIndicator) === null || _b === void 0 ? void 0 : _b.color,
|
|
41
|
+
[customCssProps.styleTabsActiveIndicatorWidth]: (_d = (_c = style === null || style === void 0 ? void 0 : style.tab) === null || _c === void 0 ? void 0 : _c.activeIndicator) === null || _d === void 0 ? void 0 : _d.width,
|
|
42
|
+
[customCssProps.styleTabsActiveIndicatorBorderRadius]: (_f = (_e = style === null || style === void 0 ? void 0 : style.tab) === null || _e === void 0 ? void 0 : _e.activeIndicator) === null || _f === void 0 ? void 0 : _f.borderRadius,
|
|
43
|
+
[customCssProps.styleTabsSeparatorColor]: (_g = style === null || style === void 0 ? void 0 : style.tabSeparator) === null || _g === void 0 ? void 0 : _g.color,
|
|
44
|
+
[customCssProps.styleTabsSeparatorWidth]: (_h = style === null || style === void 0 ? void 0 : style.tabSeparator) === null || _h === void 0 ? void 0 : _h.width,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/tabs/styles.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAGzE,MAAM,UAAU,YAAY,CAAC,KAAyB;;IACpD,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,YAAY,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,YAAY;QACtC,WAAW,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,WAAW;QACpC,QAAQ,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,QAAQ;QAC9B,UAAU,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,UAAU;QAClC,YAAY,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,YAAY;QACtC,aAAa,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,aAAa;QACxC,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,MAAM;QAC3E,CAAC,cAAc,CAAC,sBAAsB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,OAAO;QAC7E,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,QAAQ;QAC/E,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,KAAK;QACzE,CAAC,cAAc,CAAC,sBAAsB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,WAAW,0CAAE,MAAM;QACxE,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,WAAW,0CAAE,OAAO;QAC1E,CAAC,cAAc,CAAC,wBAAwB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,WAAW,0CAAE,QAAQ;QAC5E,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,WAAW,0CAAE,KAAK;QACtE,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,KAAK,0CAAE,MAAM;QAC5D,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,KAAK,0CAAE,OAAO;QAC9D,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,KAAK,0CAAE,QAAQ;QAChE,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,KAAK,0CAAE,KAAK;QAC1D,CAAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,SAAS,0CAAE,WAAW;QAC9E,CAAC,cAAc,CAAC,0BAA0B,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,SAAS,0CAAE,YAAY;QAChF,CAAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,OAAA,OAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,4CAAE,SAAS,4CAAE,WAAW;KAC/E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAyB;;IAC7D,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,CAAC,cAAc,CAAC,6BAA6B,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,KAAK;QAClF,CAAC,cAAc,CAAC,6BAA6B,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,KAAK;QAClF,CAAC,cAAc,CAAC,oCAAoC,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,0CAAE,eAAe,0CAAE,YAAY;QAChG,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,0CAAE,KAAK;QACpE,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,0CAAE,KAAK;KACrE,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { SYSTEM } from '../internal/environment';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { TabsProps } from './interfaces';\n\nexport function getTabStyles(style: TabsProps['style']) {\n if (SYSTEM !== 'core') {\n return undefined;\n }\n\n return {\n borderRadius: style?.tab?.borderRadius,\n borderWidth: style?.tab?.borderWidth,\n fontSize: style?.tab?.fontSize,\n fontWeight: style?.tab?.fontWeight,\n paddingBlock: style?.tab?.paddingBlock,\n paddingInline: style?.tab?.paddingInline,\n [customCssProps.styleBackgroundActive]: style?.tab?.backgroundColor?.active,\n [customCssProps.styleBackgroundDefault]: style?.tab?.backgroundColor?.default,\n [customCssProps.styleBackgroundDisabled]: style?.tab?.backgroundColor?.disabled,\n [customCssProps.styleBackgroundHover]: style?.tab?.backgroundColor?.hover,\n [customCssProps.styleBorderColorActive]: style?.tab?.borderColor?.active,\n [customCssProps.styleBorderColorDefault]: style?.tab?.borderColor?.default,\n [customCssProps.styleBorderColorDisabled]: style?.tab?.borderColor?.disabled,\n [customCssProps.styleBorderColorHover]: style?.tab?.borderColor?.hover,\n [customCssProps.styleColorActive]: style?.tab?.color?.active,\n [customCssProps.styleColorDefault]: style?.tab?.color?.default,\n [customCssProps.styleColorDisabled]: style?.tab?.color?.disabled,\n [customCssProps.styleColorHover]: style?.tab?.color?.hover,\n [customCssProps.styleFocusRingBorderColor]: style?.tab?.focusRing?.borderColor,\n [customCssProps.styleFocusRingBorderRadius]: style?.tab?.focusRing?.borderRadius,\n [customCssProps.styleFocusRingBorderWidth]: style?.tab?.focusRing?.borderWidth,\n };\n}\n\nexport function getTabContainerStyles(style: TabsProps['style']) {\n if (SYSTEM !== 'core') {\n return undefined;\n }\n\n return {\n [customCssProps.styleTabsActiveIndicatorColor]: style?.tab?.activeIndicator?.color,\n [customCssProps.styleTabsActiveIndicatorWidth]: style?.tab?.activeIndicator?.width,\n [customCssProps.styleTabsActiveIndicatorBorderRadius]: style?.tab?.activeIndicator?.borderRadius,\n [customCssProps.styleTabsSeparatorColor]: style?.tabSeparator?.color,\n [customCssProps.styleTabsSeparatorWidth]: style?.tabSeparator?.width,\n };\n}\n"]}
|
package/tabs/styles.scoped.css
CHANGED
|
@@ -151,7 +151,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
151
151
|
SPDX-License-Identifier: Apache-2.0
|
|
152
152
|
*/
|
|
153
153
|
/* stylelint-disable selector-max-type */
|
|
154
|
-
.awsui_tabs-
|
|
154
|
+
.awsui_tabs-header_14rmt_15h2w_154:not(#\9) {
|
|
155
155
|
margin-block: 0;
|
|
156
156
|
margin-inline: 0;
|
|
157
157
|
padding-block: 0;
|
|
@@ -160,13 +160,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
160
160
|
flex-wrap: wrap;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
.awsui_tab-header-scroll-
|
|
163
|
+
.awsui_tab-header-scroll-container_14rmt_15h2w_163:not(#\9) {
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-grow: 1;
|
|
166
166
|
max-inline-size: 100%;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.awsui_tabs-header-
|
|
169
|
+
.awsui_tabs-header-list_14rmt_15h2w_169:not(#\9) {
|
|
170
170
|
margin-block: 0;
|
|
171
171
|
margin-inline: 0;
|
|
172
172
|
padding-block: 0;
|
|
@@ -179,33 +179,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
179
179
|
scroll-snap-type: inline proximity;
|
|
180
180
|
scrollbar-width: none; /* Firefox */
|
|
181
181
|
}
|
|
182
|
-
.awsui_tabs-header-
|
|
182
|
+
.awsui_tabs-header-list_14rmt_15h2w_169:not(#\9)::-webkit-scrollbar {
|
|
183
183
|
display: none; /* Safari and Chrome */
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.awsui_pagination-
|
|
186
|
+
.awsui_pagination-button_14rmt_15h2w_186:not(#\9) {
|
|
187
187
|
margin-block: var(--space-scaled-s-8ozaad, 12px);
|
|
188
188
|
margin-inline: 0;
|
|
189
189
|
padding-block: 0;
|
|
190
190
|
padding-inline: var(--space-xxs-hwfkai, 4px);
|
|
191
191
|
display: flex;
|
|
192
192
|
}
|
|
193
|
-
.awsui_pagination-button-
|
|
193
|
+
.awsui_pagination-button-left_14rmt_15h2w_193:not(#\9) {
|
|
194
194
|
border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-control-disabled-uj7t08, #dedee3);
|
|
195
195
|
}
|
|
196
|
-
.awsui_pagination-button-left-
|
|
196
|
+
.awsui_pagination-button-left-scrollable_14rmt_15h2w_196:not(#\9) {
|
|
197
197
|
z-index: 1;
|
|
198
198
|
box-shadow: 5px 0px 4px -3px var(--color-border-tabs-shadow-ugyo07, rgba(15, 20, 26, 0.12)), 1px 0px 0px 0px var(--color-border-tabs-shadow-ugyo07, rgba(15, 20, 26, 0.12));
|
|
199
199
|
}
|
|
200
|
-
.awsui_pagination-button-
|
|
200
|
+
.awsui_pagination-button-right_14rmt_15h2w_200:not(#\9) {
|
|
201
201
|
border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-control-disabled-uj7t08, #dedee3);
|
|
202
202
|
}
|
|
203
|
-
.awsui_pagination-button-right-
|
|
203
|
+
.awsui_pagination-button-right-scrollable_14rmt_15h2w_203:not(#\9) {
|
|
204
204
|
z-index: 1;
|
|
205
205
|
box-shadow: -5px 0px 4px -3px var(--color-border-tabs-shadow-ugyo07, rgba(15, 20, 26, 0.12)), -1px 0px 0px 0 var(--color-border-tabs-shadow-ugyo07, rgba(15, 20, 26, 0.12));
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.awsui_actions-
|
|
208
|
+
.awsui_actions-container_14rmt_15h2w_208:not(#\9) {
|
|
209
209
|
flex-shrink: 0;
|
|
210
210
|
align-self: center;
|
|
211
211
|
padding-block: var(--space-xs-ymlm0b, 8px);
|
|
@@ -213,7 +213,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
213
213
|
margin-inline-start: auto;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
.awsui_tabs-
|
|
216
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9) {
|
|
217
217
|
list-style: none;
|
|
218
218
|
padding-block: 0;
|
|
219
219
|
padding-inline: 0;
|
|
@@ -223,7 +223,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
223
223
|
scroll-snap-align: start;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.awsui_tabs-tab-
|
|
226
|
+
.awsui_tabs-tab-label_14rmt_15h2w_226:not(#\9) {
|
|
227
227
|
display: flex;
|
|
228
228
|
align-items: center;
|
|
229
229
|
padding-inline: var(--space-xs-ymlm0b, 8px);
|
|
@@ -234,7 +234,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
234
234
|
word-break: break-word;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.awsui_tabs-tab-header-
|
|
237
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9) {
|
|
238
238
|
position: relative;
|
|
239
239
|
border-block: var(--border-divider-section-width-uwo8my, 1px) solid transparent;
|
|
240
240
|
border-inline: var(--border-divider-section-width-uwo8my, 1px) solid transparent;
|
|
@@ -242,61 +242,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
242
242
|
display: flex;
|
|
243
243
|
align-items: stretch;
|
|
244
244
|
}
|
|
245
|
-
.awsui_tabs-tab-header-
|
|
246
|
-
background-color: transparent;
|
|
247
|
-
}
|
|
248
|
-
.awsui_tabs-tab-header-container_14rmt_1l8w6_237 > .awsui_tabs-tab-dismiss_14rmt_1l8w6_248:not(#\9), .awsui_tabs-tab-header-container_14rmt_1l8w6_237 > .awsui_tabs-tab-action_14rmt_1l8w6_248:not(#\9) {
|
|
245
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237 > .awsui_tabs-tab-dismiss_14rmt_15h2w_245:not(#\9), .awsui_tabs-tab-header-container_14rmt_15h2w_237 > .awsui_tabs-tab-action_14rmt_15h2w_245:not(#\9) {
|
|
249
246
|
position: relative;
|
|
250
247
|
display: flex;
|
|
251
248
|
align-items: center;
|
|
252
249
|
}
|
|
253
|
-
.awsui_tabs-tab-header-
|
|
250
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237.awsui_refresh_14rmt_15h2w_250 > span:not(#\9):first-of-type {
|
|
254
251
|
margin-inline-start: calc(-1 * var(--space-scaled-xs-xwoogq, 8px));
|
|
255
252
|
}
|
|
256
253
|
|
|
257
|
-
.awsui_tabs-tab-header-
|
|
254
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254):after {
|
|
258
255
|
content: "";
|
|
259
256
|
position: absolute;
|
|
260
257
|
inset-inline-start: 0;
|
|
261
258
|
inline-size: calc(100% - 1px);
|
|
262
259
|
inset-block-end: calc(-1 * var(--border-divider-section-width-uwo8my, 1px));
|
|
263
|
-
block-size: var(--border-active-width-axzm24, 4px);
|
|
264
|
-
border-start-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
265
|
-
border-start-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
266
|
-
border-end-start-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
267
|
-
border-end-end-radius: var(--border-radius-tabs-focus-ring-o4qku1, 20px);
|
|
268
|
-
background: var(--color-border-tabs-underline-gudemr, #006ce0);
|
|
260
|
+
block-size: var(--awsui-style-tabs-active-indicator-width-rhu47t, var(--border-active-width-axzm24, 4px));
|
|
261
|
+
border-start-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-rhu47t, var(--border-radius-tabs-focus-ring-o4qku1, 20px));
|
|
262
|
+
border-start-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-rhu47t, var(--border-radius-tabs-focus-ring-o4qku1, 20px));
|
|
263
|
+
border-end-start-radius: var(--awsui-style-tabs-active-indicator-border-radius-rhu47t, var(--border-radius-tabs-focus-ring-o4qku1, 20px));
|
|
264
|
+
border-end-end-radius: var(--awsui-style-tabs-active-indicator-border-radius-rhu47t, var(--border-radius-tabs-focus-ring-o4qku1, 20px));
|
|
265
|
+
background: var(--awsui-style-tabs-active-indicator-color-rhu47t, var(--color-border-tabs-underline-gudemr, #006ce0));
|
|
269
266
|
opacity: 0;
|
|
270
267
|
}
|
|
271
|
-
.awsui_tabs-tab-header-
|
|
268
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254).awsui_refresh_14rmt_15h2w_250:after {
|
|
272
269
|
transition: opacity var(--motion-duration-refresh-only-medium-5rbn3k, 165ms) var(--motion-easing-refresh-only-c-cxy2sk, cubic-bezier(0.84, 0, 0.16, 1));
|
|
273
270
|
}
|
|
274
271
|
@media (prefers-reduced-motion: reduce) {
|
|
275
|
-
.awsui_tabs-tab-header-
|
|
272
|
+
.awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254).awsui_refresh_14rmt_15h2w_250:after {
|
|
276
273
|
animation: none;
|
|
277
274
|
transition: none;
|
|
278
275
|
}
|
|
279
276
|
}
|
|
280
|
-
.awsui-motion-disabled .awsui_tabs-tab-header-
|
|
277
|
+
.awsui-motion-disabled .awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254).awsui_refresh_14rmt_15h2w_250:after, .awsui-mode-entering .awsui_tabs-tab-header-container_14rmt_15h2w_237:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254).awsui_refresh_14rmt_15h2w_250:after {
|
|
281
278
|
animation: none;
|
|
282
279
|
transition: none;
|
|
283
280
|
}
|
|
284
281
|
|
|
285
|
-
.awsui_tabs-
|
|
282
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_15h2w_237 {
|
|
286
283
|
margin-inline-end: calc(-1 * var(--border-divider-section-width-uwo8my, 1px));
|
|
287
284
|
}
|
|
288
|
-
.awsui_tabs-
|
|
285
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_15h2w_237:before {
|
|
289
286
|
content: "";
|
|
290
287
|
position: absolute;
|
|
291
|
-
border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-tabs-divider-f5t9va, #c6c6cd);
|
|
288
|
+
border-inline-end: var(--awsui-style-tabs-separator-width-rhu47t, var(--border-divider-section-width-uwo8my, 1px)) solid var(--awsui-style-tabs-separator-color-rhu47t, var(--color-border-tabs-divider-f5t9va, #c6c6cd));
|
|
292
289
|
inset: var(--space-scaled-s-8ozaad, 12px) 0;
|
|
293
290
|
opacity: 1;
|
|
294
291
|
}
|
|
295
|
-
.awsui_tabs-
|
|
292
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_15h2w_237.awsui_refresh_14rmt_15h2w_250:before {
|
|
296
293
|
inset: calc(var(--space-static-s-t763lu, 12px) - var(--border-active-width-axzm24, 4px)) 0;
|
|
297
294
|
}
|
|
298
295
|
|
|
299
|
-
.awsui_tabs-tab-
|
|
296
|
+
.awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9) {
|
|
300
297
|
position: relative;
|
|
301
298
|
display: flex;
|
|
302
299
|
align-items: stretch;
|
|
@@ -306,38 +303,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
306
303
|
padding-block-end: calc(var(--space-scaled-s-8ozaad, 12px) - 1px);
|
|
307
304
|
padding-inline: 0;
|
|
308
305
|
margin-block-start: 1px;
|
|
309
|
-
border-block: var(--border-divider-section-width-uwo8my, 1px) solid transparent;
|
|
310
|
-
border-inline: var(--border-divider-section-width-uwo8my, 1px) solid transparent;
|
|
306
|
+
border-block: var(--border-divider-section-width-uwo8my, 1px) solid var(--awsui-style-border-color-default-rhu47t, transparent);
|
|
307
|
+
border-inline: var(--border-divider-section-width-uwo8my, 1px) solid var(--awsui-style-border-color-default-rhu47t, transparent);
|
|
311
308
|
font-size: var(--font-tabs-size-18irgl, 16px);
|
|
312
309
|
line-height: var(--font-tabs-line-height-5g6n1v, 20px);
|
|
313
310
|
font-weight: var(--font-wayfinding-link-active-weight-ny4hup, 700);
|
|
314
|
-
color: var(--color-text-interactive-default-ugh9wp, #424650);
|
|
311
|
+
color: var(--awsui-style-color-default-rhu47t, var(--color-text-interactive-default-ugh9wp, #424650));
|
|
312
|
+
background-color: var(--awsui-style-background-default-rhu47t, transparent);
|
|
315
313
|
padding-inline-start: calc(var(--space-xxs-hwfkai, 4px) - 1px);
|
|
316
314
|
padding-inline-end: var(--space-xxs-hwfkai, 4px);
|
|
317
315
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
318
316
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
319
317
|
}
|
|
320
|
-
.awsui_tabs-tab-
|
|
318
|
+
.awsui_tabs-tab-link_14rmt_15h2w_296.awsui_refresh_14rmt_15h2w_250:not(#\9) {
|
|
321
319
|
padding-block-start: calc(var(--space-static-xs-gnm0mz, 8px) - 1px);
|
|
322
320
|
padding-block-end: calc(var(--space-static-xs-gnm0mz, 8px) - 1px);
|
|
323
321
|
margin-block-start: 0;
|
|
324
322
|
}
|
|
325
|
-
.awsui_tabs-tab-
|
|
326
|
-
color: var(--color-text-accent-n1kmht, #006ce0);
|
|
323
|
+
.awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9):hover {
|
|
324
|
+
color: var(--awsui-style-color-hover-rhu47t, var(--color-text-accent-n1kmht, #006ce0));
|
|
325
|
+
border-color: var(--awsui-style-border-color-hover-rhu47t, var(--awsui-style-border-color-default-rhu47t, transparent));
|
|
326
|
+
background-color: var(--awsui-style-background-hover-rhu47t, var(--awsui-style-background-default-rhu47t, transparent));
|
|
327
327
|
}
|
|
328
|
-
.awsui_tabs-tab-
|
|
328
|
+
.awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9):focus {
|
|
329
329
|
outline: none;
|
|
330
330
|
}
|
|
331
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
332
|
-
|
|
333
|
-
border-inline-end-color: transparent;
|
|
331
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9):focus {
|
|
332
|
+
--awsui-style-focus-ring-box-shadow-rhu47t: 0 0 0 var(--awsui-style-focus-ring-border-width-rhu47t, 2px) var(--awsui-style-focus-ring-border-color-rhu47t, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
334
333
|
position: relative;
|
|
335
334
|
}
|
|
336
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
335
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9):focus {
|
|
337
336
|
outline: 2px dotted transparent;
|
|
338
337
|
outline-offset: calc(var(--space-tabs-focus-outline-gutter-eerrg4, -8px) - 1px);
|
|
339
338
|
}
|
|
340
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-tab-
|
|
339
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_15h2w_296:not(#\9):focus::before {
|
|
341
340
|
content: " ";
|
|
342
341
|
display: block;
|
|
343
342
|
position: absolute;
|
|
@@ -345,55 +344,60 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1l8w6_299:not(#\9
|
|
|
345
344
|
inset-block-start: calc(-1 * var(--space-tabs-focus-outline-gutter-eerrg4, -8px));
|
|
346
345
|
inline-size: calc(100% + var(--space-tabs-focus-outline-gutter-eerrg4, -8px) + var(--space-tabs-focus-outline-gutter-eerrg4, -8px));
|
|
347
346
|
block-size: calc(100% + var(--space-tabs-focus-outline-gutter-eerrg4, -8px) + var(--space-tabs-focus-outline-gutter-eerrg4, -8px));
|
|
348
|
-
border-start-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
349
|
-
border-start-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
350
|
-
border-end-start-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
351
|
-
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
352
|
-
box-shadow:
|
|
347
|
+
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-rhu47t, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
348
|
+
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-rhu47t, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
349
|
+
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-rhu47t, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
350
|
+
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-rhu47t, var(--border-radius-control-default-focus-ring-1uabki, 4px));
|
|
351
|
+
box-shadow: var(--awsui-style-focus-ring-box-shadow-rhu47t);
|
|
352
|
+
z-index: 1;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
.awsui_tabs-
|
|
355
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):first-child {
|
|
356
356
|
margin-inline-start: 1px;
|
|
357
357
|
scroll-margin-inline-start: 1px;
|
|
358
358
|
}
|
|
359
|
-
.awsui_tabs-
|
|
359
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):first-child > .awsui_tabs-tab-header-container_14rmt_15h2w_237 {
|
|
360
360
|
padding-inline-start: calc(var(--space-xs-ymlm0b, 8px) - 1px);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
.awsui_tabs-
|
|
363
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):last-child {
|
|
364
364
|
margin-inline-end: 1px;
|
|
365
365
|
scroll-margin-inline-end: 1px;
|
|
366
366
|
}
|
|
367
|
-
.awsui_tabs-
|
|
367
|
+
.awsui_tabs-tab_14rmt_15h2w_216:not(#\9):last-child > .awsui_tabs-tab-header-container_14rmt_15h2w_237 {
|
|
368
368
|
padding-inline-end: calc(var(--space-xs-ymlm0b, 8px) - 1px);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
.awsui_tabs-tab-
|
|
371
|
+
.awsui_tabs-tab-disabled_14rmt_15h2w_254:not(#\9), .awsui_tabs-tab-disabled_14rmt_15h2w_254:not(#\9):hover {
|
|
372
372
|
cursor: default;
|
|
373
|
-
color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
|
|
373
|
+
color: var(--awsui-style-color-disabled-rhu47t, var(--color-text-interactive-disabled-1bqmrl, #b4b4bb));
|
|
374
|
+
border-color: var(--awsui-style-border-color-disabled-rhu47t, transparent);
|
|
375
|
+
background-color: var(--awsui-style-background-disabled-rhu47t, transparent);
|
|
374
376
|
font-weight: var(--font-tabs-disabled-weight-e3lt4d, 700);
|
|
375
377
|
}
|
|
376
378
|
|
|
377
|
-
.awsui_tabs-tab-
|
|
378
|
-
color: var(--color-text-accent-n1kmht, #006ce0);
|
|
379
|
+
.awsui_tabs-tab-active_14rmt_15h2w_379:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254) {
|
|
380
|
+
color: var(--awsui-style-color-active-rhu47t, var(--color-text-accent-n1kmht, #006ce0));
|
|
381
|
+
border-color: var(--awsui-style-border-color-active-rhu47t, transparent);
|
|
382
|
+
background-color: var(--awsui-style-background-active-rhu47t, transparent);
|
|
379
383
|
}
|
|
380
|
-
.awsui_tabs-tab-
|
|
384
|
+
.awsui_tabs-tab-active_14rmt_15h2w_379:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_15h2w_254):after {
|
|
381
385
|
opacity: 1;
|
|
382
386
|
}
|
|
383
387
|
|
|
384
|
-
.awsui_tabs-header-with-
|
|
388
|
+
.awsui_tabs-header-with-divider_14rmt_15h2w_388:not(#\9) {
|
|
385
389
|
border-block-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-tabs-divider-f5t9va, #c6c6cd);
|
|
386
390
|
}
|
|
387
391
|
|
|
388
|
-
.awsui_tabs-tab-
|
|
392
|
+
.awsui_tabs-tab-focusable_14rmt_15h2w_392:not(#\9) {
|
|
389
393
|
/* used to manage focusable logic */
|
|
390
394
|
}
|
|
391
395
|
|
|
392
|
-
.
|
|
396
|
+
.awsui_root_14rmt_15h2w_396:not(#\9) {
|
|
393
397
|
/* used in test-utils or tests */
|
|
394
398
|
}
|
|
395
399
|
|
|
396
|
-
.
|
|
400
|
+
.awsui_tabs_14rmt_15h2w_154:not(#\9) {
|
|
397
401
|
border-collapse: separate;
|
|
398
402
|
border-spacing: 0;
|
|
399
403
|
box-sizing: border-box;
|
|
@@ -427,21 +431,21 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1l8w6_299:not(#\9
|
|
|
427
431
|
inline-size: 100%;
|
|
428
432
|
}
|
|
429
433
|
|
|
430
|
-
.awsui_tabs-
|
|
434
|
+
.awsui_tabs-content_14rmt_15h2w_434:not(#\9) {
|
|
431
435
|
display: none;
|
|
432
436
|
}
|
|
433
437
|
|
|
434
|
-
.awsui_fit-
|
|
438
|
+
.awsui_fit-height_14rmt_15h2w_438:not(#\9) {
|
|
435
439
|
display: flex;
|
|
436
440
|
flex-direction: column;
|
|
437
441
|
block-size: 100%;
|
|
438
442
|
}
|
|
439
443
|
|
|
440
|
-
.awsui_tabs-content-
|
|
444
|
+
.awsui_tabs-content-active_14rmt_15h2w_444:not(#\9) {
|
|
441
445
|
display: block;
|
|
442
446
|
flex: 1;
|
|
443
447
|
}
|
|
444
|
-
body[data-awsui-focus-visible=true] .awsui_tabs-content-
|
|
448
|
+
body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_15h2w_444:not(#\9):focus {
|
|
445
449
|
outline: 2px dotted transparent;
|
|
446
450
|
outline-offset: 2px;
|
|
447
451
|
border-start-start-radius: var(--border-radius-container-nsfwmm, 16px);
|
|
@@ -451,32 +455,32 @@ body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_1l8w6_440:n
|
|
|
451
455
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
452
456
|
}
|
|
453
457
|
|
|
454
|
-
.awsui_tabs-content-
|
|
458
|
+
.awsui_tabs-content-wrapper_14rmt_15h2w_458.awsui_with-paddings_14rmt_15h2w_458 > .awsui_tabs-content_14rmt_15h2w_434:not(#\9) {
|
|
455
459
|
padding-block: var(--space-scaled-m-m892r9, 16px);
|
|
456
460
|
padding-inline: 0;
|
|
457
461
|
}
|
|
458
|
-
.awsui_fit-
|
|
462
|
+
.awsui_fit-height_14rmt_15h2w_438 > .awsui_tabs-content-wrapper_14rmt_15h2w_458:not(#\9) {
|
|
459
463
|
flex: 1;
|
|
460
464
|
display: flex;
|
|
461
465
|
flex-direction: column;
|
|
462
466
|
overflow: auto;
|
|
463
467
|
}
|
|
464
468
|
|
|
465
|
-
.awsui_fit-
|
|
469
|
+
.awsui_fit-height_14rmt_15h2w_438 > .awsui_tabs-content-wrapper_14rmt_15h2w_458 > .awsui_tabs-container-content-wrapper_14rmt_15h2w_469:not(#\9) {
|
|
466
470
|
block-size: 100%;
|
|
467
471
|
display: flex;
|
|
468
472
|
flex-direction: column;
|
|
469
473
|
}
|
|
470
|
-
.awsui_tabs-container-content-
|
|
474
|
+
.awsui_tabs-container-content-wrapper_14rmt_15h2w_469.awsui_with-paddings_14rmt_15h2w_458 > .awsui_tabs-content_14rmt_15h2w_434:not(#\9) {
|
|
471
475
|
padding-block-start: var(--space-tabs-content-top-ju6qox, 12px);
|
|
472
476
|
padding-block-end: var(--space-scaled-l-sej05l, 20px);
|
|
473
477
|
padding-inline: var(--space-container-horizontal-nqrzyh, 20px);
|
|
474
478
|
}
|
|
475
479
|
|
|
476
|
-
.awsui_disabled-reason-
|
|
480
|
+
.awsui_disabled-reason-tooltip_14rmt_15h2w_480:not(#\9) {
|
|
477
481
|
/* used in test-utils or tests */
|
|
478
482
|
}
|
|
479
483
|
|
|
480
|
-
.awsui_tabs-tab-
|
|
484
|
+
.awsui_tabs-tab-focused_14rmt_15h2w_484:not(#\9) {
|
|
481
485
|
/* used to manage focusable state for disabled with reason tabs */
|
|
482
486
|
}
|