@cloudscape-design/components 3.0.901 → 3.0.902

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.
Files changed (36) hide show
  1. package/flashbar/flash.d.ts.map +1 -1
  2. package/flashbar/flash.js +6 -3
  3. package/flashbar/flash.js.map +1 -1
  4. package/i18n/provider.d.ts.map +1 -1
  5. package/i18n/provider.js +31 -16
  6. package/i18n/provider.js.map +1 -1
  7. package/internal/components/dropdown/dropdown-fit-handler.js +1 -1
  8. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  9. package/internal/environment.js +1 -1
  10. package/internal/environment.json +1 -1
  11. package/internal/manifest.json +1 -1
  12. package/package.json +1 -1
  13. package/select/parts/plain-list.d.ts.map +1 -1
  14. package/select/parts/plain-list.js +6 -2
  15. package/select/parts/plain-list.js.map +1 -1
  16. package/tabs/index.d.ts +1 -1
  17. package/tabs/index.d.ts.map +1 -1
  18. package/tabs/index.js +25 -7
  19. package/tabs/index.js.map +1 -1
  20. package/tabs/interfaces.d.ts +28 -0
  21. package/tabs/interfaces.d.ts.map +1 -1
  22. package/tabs/interfaces.js.map +1 -1
  23. package/tabs/styles.css.js +30 -28
  24. package/tabs/styles.scoped.css +64 -49
  25. package/tabs/styles.selectors.js +30 -28
  26. package/tabs/tab-header-bar.d.ts +3 -1
  27. package/tabs/tab-header-bar.d.ts.map +1 -1
  28. package/tabs/tab-header-bar.js +26 -12
  29. package/tabs/tab-header-bar.js.map +1 -1
  30. package/test-utils/dom/tabs/index.d.ts +1 -0
  31. package/test-utils/dom/tabs/index.js +3 -0
  32. package/test-utils/dom/tabs/index.js.map +1 -1
  33. package/test-utils/selectors/tabs/index.d.ts +1 -0
  34. package/test-utils/selectors/tabs/index.js +3 -0
  35. package/test-utils/selectors/tabs/index.js.map +1 -1
  36. package/test-utils/tsconfig.tsbuildinfo +1 -1
@@ -23,8 +23,19 @@ export interface TabsProps extends BaseComponentProps {
23
23
  * ALT, SHIFT, META). This enables the user to open new browser tabs with an initially selected component tab,
24
24
  * if your application routing can handle such deep links. You can manually update routing on the current page
25
25
  * using the `activeTabHref` property of the `change` event's detail.
26
+ * - `contentRenderStrategy` (string) - (Optional) Determines when tab content is rendered:
27
+ - `'active'`: (Default) Only render content when the tab is active.
28
+ * - `'eager'`: Always render tab content (hidden when the tab is not active).
29
+ * - `'lazy'`: Like 'eager', but content is only rendered after the tab is first activated.
26
30
  */
27
31
  tabs: ReadonlyArray<TabsProps.Tab>;
32
+ /**
33
+ * Actions for the tabs header, displayed next to the list of tabs.
34
+ * Use this to add a button or button dropdown that performs actions on the
35
+ * entire tab list. We recommend a maximum of one interactive element to
36
+ * minimize the number of keyboard tab stops between the tab list and content.
37
+ */
38
+ actions?: React.ReactNode;
28
39
  /**
29
40
  * The possible visual variants of tabs are the following:
30
41
  * * `default` - Use in any context.
@@ -69,6 +80,16 @@ export interface TabsProps extends BaseComponentProps {
69
80
  * If the tab content is too short, it will stretch. If the tab content is too long, a vertical scrollbar will be shown.
70
81
  */
71
82
  fitHeight?: boolean;
83
+ /**
84
+ * Determines how the active tab is switched when navigating using
85
+ * the keyboard. The options are:
86
+ * - 'automatic' (default): the active tab is switched using the arrow keys.
87
+ * - 'manual': a tab must be explicitly activated using the enter/space key.
88
+ * We recommend using 'automatic' in most situations to provide consistent
89
+ * and quick switching between tabs. Use 'manual' only if there is a specific
90
+ * need to introduce friction to the switching of tabs.
91
+ */
92
+ keyboardActivationMode?: 'automatic' | 'manual';
72
93
  }
73
94
  export declare namespace TabsProps {
74
95
  type Variant = 'default' | 'container' | 'stacked';
@@ -124,6 +145,13 @@ export declare namespace TabsProps {
124
145
  * using the `activeTabHref` property of the `change` event's detail.
125
146
  */
126
147
  href?: string;
148
+ /**
149
+ * Determines when tab content is rendered:
150
+ * - 'active' (default): Only render content when the tab is active.
151
+ * - 'eager': Always render tab content (hidden when the tab is not active).
152
+ * - 'lazy': Like 'eager', but content is only rendered after the tab is first activated.
153
+ */
154
+ contentRenderStrategy?: 'active' | 'eager' | 'lazy';
127
155
  }
128
156
  interface ChangeDetail {
129
157
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tabs/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEnC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAE7D;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,yBAAiB,SAAS,CAAC;IACzB,KAAY,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IAE1D,UAAiB,GAAG;QAClB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB;;WAEG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAA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AAY;QAC3B;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,WAAW;QAC1B;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B;;;WAGG;QACH,kCAAkC,CAAC,EAAE,MAAM,CAAC;KAC7C;CACF"}
@@ -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 */\n tabs: ReadonlyArray<TabsProps.Tab>;\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}\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\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 { 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,33 +1,35 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "tabs-header": "awsui_tabs-header_14rmt_1ebqu_290",
5
- "tabs-header-list": "awsui_tabs-header-list_14rmt_1ebqu_298",
6
- "pagination-button": "awsui_pagination-button_14rmt_1ebqu_316",
7
- "pagination-button-left": "awsui_pagination-button-left_14rmt_1ebqu_323",
8
- "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_1ebqu_326",
9
- "pagination-button-right": "awsui_pagination-button-right_14rmt_1ebqu_330",
10
- "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_1ebqu_333",
11
- "tabs-tab": "awsui_tabs-tab_14rmt_1ebqu_338",
12
- "tabs-tab-label": "awsui_tabs-tab-label_14rmt_1ebqu_348",
13
- "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_1ebqu_359",
14
- "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_1ebqu_370",
15
- "tabs-tab-action": "awsui_tabs-tab-action_14rmt_1ebqu_370",
16
- "refresh": "awsui_refresh_14rmt_1ebqu_375",
17
- "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_1ebqu_379",
18
- "tabs-tab-link": "awsui_tabs-tab-link_14rmt_1ebqu_421",
19
- "tabs-tab-active": "awsui_tabs-tab-active_14rmt_1ebqu_499",
20
- "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_1ebqu_506",
21
- "tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_1ebqu_510",
22
- "root": "awsui_root_14rmt_1ebqu_514",
23
- "tabs": "awsui_tabs_14rmt_1ebqu_290",
24
- "tabs-content": "awsui_tabs-content_14rmt_1ebqu_552",
25
- "fit-height": "awsui_fit-height_14rmt_1ebqu_556",
26
- "tabs-content-active": "awsui_tabs-content-active_14rmt_1ebqu_562",
27
- "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_1ebqu_576",
28
- "with-paddings": "awsui_with-paddings_14rmt_1ebqu_576",
29
- "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_1ebqu_587",
30
- "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_1ebqu_598",
31
- "tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_1ebqu_602"
4
+ "tabs-header": "awsui_tabs-header_14rmt_11l2w_290",
5
+ "tab-header-scroll-container": "awsui_tab-header-scroll-container_14rmt_11l2w_299",
6
+ "tabs-header-list": "awsui_tabs-header-list_14rmt_11l2w_305",
7
+ "pagination-button": "awsui_pagination-button_14rmt_11l2w_323",
8
+ "pagination-button-left": "awsui_pagination-button-left_14rmt_11l2w_330",
9
+ "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_11l2w_333",
10
+ "pagination-button-right": "awsui_pagination-button-right_14rmt_11l2w_337",
11
+ "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_11l2w_340",
12
+ "actions-container": "awsui_actions-container_14rmt_11l2w_345",
13
+ "tabs-tab": "awsui_tabs-tab_14rmt_11l2w_353",
14
+ "tabs-tab-label": "awsui_tabs-tab-label_14rmt_11l2w_363",
15
+ "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_11l2w_374",
16
+ "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_11l2w_385",
17
+ "tabs-tab-action": "awsui_tabs-tab-action_14rmt_11l2w_385",
18
+ "refresh": "awsui_refresh_14rmt_11l2w_390",
19
+ "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_11l2w_394",
20
+ "tabs-tab-link": "awsui_tabs-tab-link_14rmt_11l2w_436",
21
+ "tabs-tab-active": "awsui_tabs-tab-active_14rmt_11l2w_514",
22
+ "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_11l2w_521",
23
+ "tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_11l2w_525",
24
+ "root": "awsui_root_14rmt_11l2w_529",
25
+ "tabs": "awsui_tabs_14rmt_11l2w_290",
26
+ "tabs-content": "awsui_tabs-content_14rmt_11l2w_567",
27
+ "fit-height": "awsui_fit-height_14rmt_11l2w_571",
28
+ "tabs-content-active": "awsui_tabs-content-active_14rmt_11l2w_577",
29
+ "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_11l2w_591",
30
+ "with-paddings": "awsui_with-paddings_14rmt_11l2w_591",
31
+ "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_11l2w_602",
32
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_11l2w_613",
33
+ "tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_11l2w_617"
32
34
  };
33
35
 
@@ -287,15 +287,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
287
287
  SPDX-License-Identifier: Apache-2.0
288
288
  */
289
289
  /* stylelint-disable selector-max-type */
290
- .awsui_tabs-header_14rmt_1ebqu_290:not(#\9) {
290
+ .awsui_tabs-header_14rmt_11l2w_290:not(#\9) {
291
291
  margin-block: 0;
292
292
  margin-inline: 0;
293
293
  padding-block: 0;
294
294
  padding-inline: 0;
295
295
  display: flex;
296
+ flex-wrap: wrap;
296
297
  }
297
298
 
298
- .awsui_tabs-header-list_14rmt_1ebqu_298:not(#\9) {
299
+ .awsui_tab-header-scroll-container_14rmt_11l2w_299:not(#\9) {
300
+ display: flex;
301
+ flex-grow: 1;
302
+ max-inline-size: 100%;
303
+ }
304
+
305
+ .awsui_tabs-header-list_14rmt_11l2w_305:not(#\9) {
299
306
  margin-block: 0;
300
307
  margin-inline: 0;
301
308
  padding-block: 0;
@@ -309,33 +316,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
309
316
  -ms-overflow-style: none; /* Internet Explorer 10+ */
310
317
  scrollbar-width: none; /* Firefox */
311
318
  }
312
- .awsui_tabs-header-list_14rmt_1ebqu_298:not(#\9)::-webkit-scrollbar {
319
+ .awsui_tabs-header-list_14rmt_11l2w_305:not(#\9)::-webkit-scrollbar {
313
320
  display: none; /* Safari and Chrome */
314
321
  }
315
322
 
316
- .awsui_pagination-button_14rmt_1ebqu_316:not(#\9) {
323
+ .awsui_pagination-button_14rmt_11l2w_323:not(#\9) {
317
324
  margin-block: var(--space-scaled-s-aqzyko, 12px);
318
325
  margin-inline: 0;
319
326
  padding-block: 0;
320
327
  padding-inline: var(--space-xxs-p8yyaw, 4px);
321
328
  display: flex;
322
329
  }
323
- .awsui_pagination-button-left_14rmt_1ebqu_323:not(#\9) {
330
+ .awsui_pagination-button-left_14rmt_11l2w_330:not(#\9) {
324
331
  border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-control-disabled-qc5csz, #dedee3);
325
332
  }
326
- .awsui_pagination-button-left-scrollable_14rmt_1ebqu_326:not(#\9) {
333
+ .awsui_pagination-button-left-scrollable_14rmt_11l2w_333:not(#\9) {
327
334
  z-index: 1;
328
335
  box-shadow: 5px 0px 4px -3px var(--color-border-tabs-shadow-enjrr2, rgba(15, 20, 26, 0.12)), 1px 0px 0px 0px var(--color-border-tabs-shadow-enjrr2, rgba(15, 20, 26, 0.12));
329
336
  }
330
- .awsui_pagination-button-right_14rmt_1ebqu_330:not(#\9) {
337
+ .awsui_pagination-button-right_14rmt_11l2w_337:not(#\9) {
331
338
  border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-control-disabled-qc5csz, #dedee3);
332
339
  }
333
- .awsui_pagination-button-right-scrollable_14rmt_1ebqu_333:not(#\9) {
340
+ .awsui_pagination-button-right-scrollable_14rmt_11l2w_340:not(#\9) {
334
341
  z-index: 1;
335
342
  box-shadow: -5px 0px 4px -3px var(--color-border-tabs-shadow-enjrr2, rgba(15, 20, 26, 0.12)), -1px 0px 0px 0 var(--color-border-tabs-shadow-enjrr2, rgba(15, 20, 26, 0.12));
336
343
  }
337
344
 
338
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9) {
345
+ .awsui_actions-container_14rmt_11l2w_345:not(#\9) {
346
+ flex-shrink: 0;
347
+ align-self: center;
348
+ padding-block: var(--space-xs-zb16t3, 8px);
349
+ padding-inline: var(--space-xs-zb16t3, 8px);
350
+ margin-inline-start: auto;
351
+ }
352
+
353
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9) {
339
354
  list-style: none;
340
355
  padding-block: 0;
341
356
  padding-inline: 0;
@@ -345,7 +360,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
345
360
  scroll-snap-align: start;
346
361
  }
347
362
 
348
- .awsui_tabs-tab-label_14rmt_1ebqu_348:not(#\9) {
363
+ .awsui_tabs-tab-label_14rmt_11l2w_363:not(#\9) {
349
364
  display: flex;
350
365
  align-items: center;
351
366
  padding-inline: var(--space-xs-zb16t3, 8px);
@@ -356,7 +371,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
356
371
  word-break: break-word;
357
372
  }
358
373
 
359
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9) {
374
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9) {
360
375
  position: relative;
361
376
  border-block: var(--border-divider-section-width-1061zr, 1px) solid transparent;
362
377
  border-inline: var(--border-divider-section-width-1061zr, 1px) solid transparent;
@@ -364,19 +379,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
364
379
  display: flex;
365
380
  align-items: stretch;
366
381
  }
367
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9), .awsui_tabs-tab-header-container_14rmt_1ebqu_359 > button:not(#\9) {
382
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9), .awsui_tabs-tab-header-container_14rmt_11l2w_374 > button:not(#\9) {
368
383
  background-color: transparent;
369
384
  }
370
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359 > .awsui_tabs-tab-dismiss_14rmt_1ebqu_370:not(#\9), .awsui_tabs-tab-header-container_14rmt_1ebqu_359 > .awsui_tabs-tab-action_14rmt_1ebqu_370:not(#\9) {
385
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374 > .awsui_tabs-tab-dismiss_14rmt_11l2w_385:not(#\9), .awsui_tabs-tab-header-container_14rmt_11l2w_374 > .awsui_tabs-tab-action_14rmt_11l2w_385:not(#\9) {
371
386
  position: relative;
372
387
  display: flex;
373
388
  align-items: center;
374
389
  }
375
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359.awsui_refresh_14rmt_1ebqu_375 > span:not(#\9):first-of-type {
390
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374.awsui_refresh_14rmt_11l2w_390 > span:not(#\9):first-of-type {
376
391
  margin-inline-start: calc(-1 * var(--space-scaled-xs-26e2du, 8px));
377
392
  }
378
393
 
379
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379):after {
394
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394):after {
380
395
  content: "";
381
396
  position: absolute;
382
397
  inset-inline-start: 0;
@@ -390,35 +405,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
390
405
  background: var(--color-border-tabs-underline-a5fmhd, #006ce0);
391
406
  opacity: 0;
392
407
  }
393
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379).awsui_refresh_14rmt_1ebqu_375:after {
408
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394).awsui_refresh_14rmt_11l2w_390:after {
394
409
  transition: opacity var(--motion-duration-refresh-only-medium-nf6485, 165ms) var(--motion-easing-refresh-only-c-vg1m9h, cubic-bezier(0.84, 0, 0.16, 1));
395
410
  }
396
411
  @media (prefers-reduced-motion: reduce) {
397
- .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379).awsui_refresh_14rmt_1ebqu_375:after {
412
+ .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394).awsui_refresh_14rmt_11l2w_390:after {
398
413
  animation: none;
399
414
  transition: none;
400
415
  }
401
416
  }
402
- .awsui-motion-disabled .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379).awsui_refresh_14rmt_1ebqu_375:after, .awsui-mode-entering .awsui_tabs-tab-header-container_14rmt_1ebqu_359:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379).awsui_refresh_14rmt_1ebqu_375:after {
417
+ .awsui-motion-disabled .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394).awsui_refresh_14rmt_11l2w_390:after, .awsui-mode-entering .awsui_tabs-tab-header-container_14rmt_11l2w_374:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394).awsui_refresh_14rmt_11l2w_390:after {
403
418
  animation: none;
404
419
  transition: none;
405
420
  }
406
421
 
407
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ebqu_359 {
422
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_11l2w_374 {
408
423
  margin-inline-end: calc(-1 * var(--border-divider-section-width-1061zr, 1px));
409
424
  }
410
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ebqu_359:before {
425
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_11l2w_374:before {
411
426
  content: "";
412
427
  position: absolute;
413
428
  border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-tabs-divider-djfdfj, #c6c6cd);
414
429
  inset: var(--space-scaled-s-aqzyko, 12px) 0;
415
430
  opacity: 1;
416
431
  }
417
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_1ebqu_359.awsui_refresh_14rmt_1ebqu_375:before {
432
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):not(:last-child) > .awsui_tabs-tab-header-container_14rmt_11l2w_374.awsui_refresh_14rmt_11l2w_390:before {
418
433
  inset: calc(var(--space-static-s-n2eb28, 12px) - var(--border-active-width-9dmqf4, 4px)) 0;
419
434
  }
420
435
 
421
- .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9) {
436
+ .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9) {
422
437
  position: relative;
423
438
  display: flex;
424
439
  align-items: stretch;
@@ -439,27 +454,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
439
454
  -webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
440
455
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
441
456
  }
442
- .awsui_tabs-tab-link_14rmt_1ebqu_421.awsui_refresh_14rmt_1ebqu_375:not(#\9) {
457
+ .awsui_tabs-tab-link_14rmt_11l2w_436.awsui_refresh_14rmt_11l2w_390:not(#\9) {
443
458
  padding-block-start: calc(var(--space-static-xs-7sfb63, 8px) - 1px);
444
459
  padding-block-end: calc(var(--space-static-xs-7sfb63, 8px) - 1px);
445
460
  margin-block-start: 0;
446
461
  }
447
- .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9):hover {
462
+ .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9):hover {
448
463
  color: var(--color-text-accent-fptgkc, #006ce0);
449
464
  }
450
- .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9):focus {
465
+ .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9):focus {
451
466
  outline: none;
452
467
  }
453
- body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9):focus {
468
+ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9):focus {
454
469
  z-index: 1;
455
470
  border-inline-end-color: transparent;
456
471
  position: relative;
457
472
  }
458
- body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9):focus {
473
+ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9):focus {
459
474
  outline: 2px dotted transparent;
460
475
  outline-offset: calc(var(--space-tabs-focus-outline-gutter-xm37ly, -8px) - 1px);
461
476
  }
462
- body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9):focus::before {
477
+ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_11l2w_436:not(#\9):focus::before {
463
478
  content: " ";
464
479
  display: block;
465
480
  position: absolute;
@@ -474,48 +489,48 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9
474
489
  box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
475
490
  }
476
491
 
477
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):first-child {
492
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):first-child {
478
493
  margin-inline-start: 1px;
479
494
  scroll-margin-inline-start: 1px;
480
495
  }
481
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):first-child > .awsui_tabs-tab-header-container_14rmt_1ebqu_359 {
496
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):first-child > .awsui_tabs-tab-header-container_14rmt_11l2w_374 {
482
497
  padding-inline-start: calc(var(--space-xs-zb16t3, 8px) - 1px);
483
498
  }
484
499
 
485
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):last-child {
500
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):last-child {
486
501
  margin-inline-end: 1px;
487
502
  scroll-margin-inline-end: 1px;
488
503
  }
489
- .awsui_tabs-tab_14rmt_1ebqu_338:not(#\9):last-child > .awsui_tabs-tab-header-container_14rmt_1ebqu_359 {
504
+ .awsui_tabs-tab_14rmt_11l2w_353:not(#\9):last-child > .awsui_tabs-tab-header-container_14rmt_11l2w_374 {
490
505
  padding-inline-end: calc(var(--space-xs-zb16t3, 8px) - 1px);
491
506
  }
492
507
 
493
- .awsui_tabs-tab-disabled_14rmt_1ebqu_379:not(#\9), .awsui_tabs-tab-disabled_14rmt_1ebqu_379:not(#\9):hover {
508
+ .awsui_tabs-tab-disabled_14rmt_11l2w_394:not(#\9), .awsui_tabs-tab-disabled_14rmt_11l2w_394:not(#\9):hover {
494
509
  cursor: default;
495
510
  color: var(--color-text-interactive-disabled-f5b4z5, #b4b4bb);
496
511
  font-weight: var(--font-tabs-disabled-weight-1xcs5l, 700);
497
512
  }
498
513
 
499
- .awsui_tabs-tab-active_14rmt_1ebqu_499:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379) {
514
+ .awsui_tabs-tab-active_14rmt_11l2w_514:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394) {
500
515
  color: var(--color-text-accent-fptgkc, #006ce0);
501
516
  }
502
- .awsui_tabs-tab-active_14rmt_1ebqu_499:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_1ebqu_379):after {
517
+ .awsui_tabs-tab-active_14rmt_11l2w_514:not(#\9):not(.awsui_tabs-tab-disabled_14rmt_11l2w_394):after {
503
518
  opacity: 1;
504
519
  }
505
520
 
506
- .awsui_tabs-header-with-divider_14rmt_1ebqu_506:not(#\9) {
521
+ .awsui_tabs-header-with-divider_14rmt_11l2w_521:not(#\9) {
507
522
  border-block-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-tabs-divider-djfdfj, #c6c6cd);
508
523
  }
509
524
 
510
- .awsui_tabs-tab-focusable_14rmt_1ebqu_510:not(#\9) {
525
+ .awsui_tabs-tab-focusable_14rmt_11l2w_525:not(#\9) {
511
526
  /* used to manage focusable logic */
512
527
  }
513
528
 
514
- .awsui_root_14rmt_1ebqu_514:not(#\9) {
529
+ .awsui_root_14rmt_11l2w_529:not(#\9) {
515
530
  /* used in test-utils or tests */
516
531
  }
517
532
 
518
- .awsui_tabs_14rmt_1ebqu_290:not(#\9) {
533
+ .awsui_tabs_14rmt_11l2w_290:not(#\9) {
519
534
  border-collapse: separate;
520
535
  border-spacing: 0;
521
536
  box-sizing: border-box;
@@ -550,21 +565,21 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_1ebqu_421:not(#\9
550
565
  inline-size: 100%;
551
566
  }
552
567
 
553
- .awsui_tabs-content_14rmt_1ebqu_552:not(#\9) {
568
+ .awsui_tabs-content_14rmt_11l2w_567:not(#\9) {
554
569
  display: none;
555
570
  }
556
571
 
557
- .awsui_fit-height_14rmt_1ebqu_556:not(#\9) {
572
+ .awsui_fit-height_14rmt_11l2w_571:not(#\9) {
558
573
  display: flex;
559
574
  flex-direction: column;
560
575
  block-size: 100%;
561
576
  }
562
577
 
563
- .awsui_tabs-content-active_14rmt_1ebqu_562:not(#\9) {
578
+ .awsui_tabs-content-active_14rmt_11l2w_577:not(#\9) {
564
579
  display: block;
565
580
  flex: 1;
566
581
  }
567
- body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_1ebqu_562:not(#\9):focus {
582
+ body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_11l2w_577:not(#\9):focus {
568
583
  outline: 2px dotted transparent;
569
584
  outline-offset: 2px;
570
585
  border-start-start-radius: var(--border-radius-container-wqv1zi, 16px);
@@ -574,32 +589,32 @@ body[data-awsui-focus-visible=true] .awsui_tabs-content-active_14rmt_1ebqu_562:n
574
589
  box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
575
590
  }
576
591
 
577
- .awsui_tabs-content-wrapper_14rmt_1ebqu_576.awsui_with-paddings_14rmt_1ebqu_576 > .awsui_tabs-content_14rmt_1ebqu_552:not(#\9) {
592
+ .awsui_tabs-content-wrapper_14rmt_11l2w_591.awsui_with-paddings_14rmt_11l2w_591 > .awsui_tabs-content_14rmt_11l2w_567:not(#\9) {
578
593
  padding-block: var(--space-scaled-m-mo5yse, 16px);
579
594
  padding-inline: 0;
580
595
  }
581
- .awsui_fit-height_14rmt_1ebqu_556 > .awsui_tabs-content-wrapper_14rmt_1ebqu_576:not(#\9) {
596
+ .awsui_fit-height_14rmt_11l2w_571 > .awsui_tabs-content-wrapper_14rmt_11l2w_591:not(#\9) {
582
597
  flex: 1;
583
598
  display: flex;
584
599
  flex-direction: column;
585
600
  overflow: auto;
586
601
  }
587
602
 
588
- .awsui_fit-height_14rmt_1ebqu_556 > .awsui_tabs-content-wrapper_14rmt_1ebqu_576 > .awsui_tabs-container-content-wrapper_14rmt_1ebqu_587:not(#\9) {
603
+ .awsui_fit-height_14rmt_11l2w_571 > .awsui_tabs-content-wrapper_14rmt_11l2w_591 > .awsui_tabs-container-content-wrapper_14rmt_11l2w_602:not(#\9) {
589
604
  block-size: 100%;
590
605
  display: flex;
591
606
  flex-direction: column;
592
607
  }
593
- .awsui_tabs-container-content-wrapper_14rmt_1ebqu_587.awsui_with-paddings_14rmt_1ebqu_576 > .awsui_tabs-content_14rmt_1ebqu_552:not(#\9) {
608
+ .awsui_tabs-container-content-wrapper_14rmt_11l2w_602.awsui_with-paddings_14rmt_11l2w_591 > .awsui_tabs-content_14rmt_11l2w_567:not(#\9) {
594
609
  padding-block-start: var(--space-tabs-content-top-dedu0k, 12px);
595
610
  padding-block-end: var(--space-scaled-l-0hpmd7, 20px);
596
611
  padding-inline: var(--space-container-horizontal-wfukh3, 20px);
597
612
  }
598
613
 
599
- .awsui_disabled-reason-tooltip_14rmt_1ebqu_598:not(#\9) {
614
+ .awsui_disabled-reason-tooltip_14rmt_11l2w_613:not(#\9) {
600
615
  /* used in test-utils or tests */
601
616
  }
602
617
 
603
- .awsui_tabs-tab-focused_14rmt_1ebqu_602:not(#\9) {
618
+ .awsui_tabs-tab-focused_14rmt_11l2w_617:not(#\9) {
604
619
  /* used to manage focusable state for disabled with reason tabs */
605
620
  }
@@ -2,33 +2,35 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "tabs-header": "awsui_tabs-header_14rmt_1ebqu_290",
6
- "tabs-header-list": "awsui_tabs-header-list_14rmt_1ebqu_298",
7
- "pagination-button": "awsui_pagination-button_14rmt_1ebqu_316",
8
- "pagination-button-left": "awsui_pagination-button-left_14rmt_1ebqu_323",
9
- "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_1ebqu_326",
10
- "pagination-button-right": "awsui_pagination-button-right_14rmt_1ebqu_330",
11
- "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_1ebqu_333",
12
- "tabs-tab": "awsui_tabs-tab_14rmt_1ebqu_338",
13
- "tabs-tab-label": "awsui_tabs-tab-label_14rmt_1ebqu_348",
14
- "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_1ebqu_359",
15
- "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_1ebqu_370",
16
- "tabs-tab-action": "awsui_tabs-tab-action_14rmt_1ebqu_370",
17
- "refresh": "awsui_refresh_14rmt_1ebqu_375",
18
- "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_1ebqu_379",
19
- "tabs-tab-link": "awsui_tabs-tab-link_14rmt_1ebqu_421",
20
- "tabs-tab-active": "awsui_tabs-tab-active_14rmt_1ebqu_499",
21
- "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_1ebqu_506",
22
- "tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_1ebqu_510",
23
- "root": "awsui_root_14rmt_1ebqu_514",
24
- "tabs": "awsui_tabs_14rmt_1ebqu_290",
25
- "tabs-content": "awsui_tabs-content_14rmt_1ebqu_552",
26
- "fit-height": "awsui_fit-height_14rmt_1ebqu_556",
27
- "tabs-content-active": "awsui_tabs-content-active_14rmt_1ebqu_562",
28
- "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_1ebqu_576",
29
- "with-paddings": "awsui_with-paddings_14rmt_1ebqu_576",
30
- "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_1ebqu_587",
31
- "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_1ebqu_598",
32
- "tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_1ebqu_602"
5
+ "tabs-header": "awsui_tabs-header_14rmt_11l2w_290",
6
+ "tab-header-scroll-container": "awsui_tab-header-scroll-container_14rmt_11l2w_299",
7
+ "tabs-header-list": "awsui_tabs-header-list_14rmt_11l2w_305",
8
+ "pagination-button": "awsui_pagination-button_14rmt_11l2w_323",
9
+ "pagination-button-left": "awsui_pagination-button-left_14rmt_11l2w_330",
10
+ "pagination-button-left-scrollable": "awsui_pagination-button-left-scrollable_14rmt_11l2w_333",
11
+ "pagination-button-right": "awsui_pagination-button-right_14rmt_11l2w_337",
12
+ "pagination-button-right-scrollable": "awsui_pagination-button-right-scrollable_14rmt_11l2w_340",
13
+ "actions-container": "awsui_actions-container_14rmt_11l2w_345",
14
+ "tabs-tab": "awsui_tabs-tab_14rmt_11l2w_353",
15
+ "tabs-tab-label": "awsui_tabs-tab-label_14rmt_11l2w_363",
16
+ "tabs-tab-header-container": "awsui_tabs-tab-header-container_14rmt_11l2w_374",
17
+ "tabs-tab-dismiss": "awsui_tabs-tab-dismiss_14rmt_11l2w_385",
18
+ "tabs-tab-action": "awsui_tabs-tab-action_14rmt_11l2w_385",
19
+ "refresh": "awsui_refresh_14rmt_11l2w_390",
20
+ "tabs-tab-disabled": "awsui_tabs-tab-disabled_14rmt_11l2w_394",
21
+ "tabs-tab-link": "awsui_tabs-tab-link_14rmt_11l2w_436",
22
+ "tabs-tab-active": "awsui_tabs-tab-active_14rmt_11l2w_514",
23
+ "tabs-header-with-divider": "awsui_tabs-header-with-divider_14rmt_11l2w_521",
24
+ "tabs-tab-focusable": "awsui_tabs-tab-focusable_14rmt_11l2w_525",
25
+ "root": "awsui_root_14rmt_11l2w_529",
26
+ "tabs": "awsui_tabs_14rmt_11l2w_290",
27
+ "tabs-content": "awsui_tabs-content_14rmt_11l2w_567",
28
+ "fit-height": "awsui_fit-height_14rmt_11l2w_571",
29
+ "tabs-content-active": "awsui_tabs-content-active_14rmt_11l2w_577",
30
+ "tabs-content-wrapper": "awsui_tabs-content-wrapper_14rmt_11l2w_591",
31
+ "with-paddings": "awsui_with-paddings_14rmt_11l2w_591",
32
+ "tabs-container-content-wrapper": "awsui_tabs-container-content-wrapper_14rmt_11l2w_602",
33
+ "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_14rmt_11l2w_613",
34
+ "tabs-tab-focused": "awsui_tabs-tab-focused_14rmt_11l2w_617"
33
35
  };
34
36
 
@@ -9,8 +9,10 @@ interface TabHeaderBarProps {
9
9
  ariaLabel?: string;
10
10
  ariaLabelledby?: string;
11
11
  i18nStrings?: TabsProps.I18nStrings;
12
+ keyboardActivationMode: Required<TabsProps['keyboardActivationMode']>;
13
+ actions?: TabsProps['actions'];
12
14
  }
13
- export declare function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace, ariaLabel, ariaLabelledby, i18nStrings, }: TabHeaderBarProps): JSX.Element;
15
+ export declare function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace, ariaLabel, ariaLabelledby, i18nStrings, keyboardActivationMode, actions, }: TabHeaderBarProps): JSX.Element;
14
16
  export declare function getTabElementId({ namespace, tabId }: {
15
17
  namespace: string;
16
18
  tabId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tab-header-bar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab-header-bar.tsx"],"names":[],"mappings":";AA8BA,OAAO,EAA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