diff --git a/packages/atomic-react/src/components/search/components.ts b/packages/atomic-react/src/components/search/components.ts index ea375881b7f..d772d1e841a 100644 --- a/packages/atomic-react/src/components/search/components.ts +++ b/packages/atomic-react/src/components/search/components.ts @@ -38,6 +38,7 @@ import { AtomicSearchBoxRecentQueries as LitAtomicSearchBoxRecentQueries, AtomicSearchInterface as LitAtomicSearchInterface, AtomicSearchLayout as LitAtomicSearchLayout, + AtomicTab as LitAtomicTab, AtomicText as LitAtomicText, } from '@coveo/atomic/components'; import {createComponent} from '@lit/react'; @@ -277,6 +278,12 @@ export const AtomicSearchLayout = createComponent({ elementClass: LitAtomicSearchLayout, }); +export const AtomicTab = createComponent({ + tagName: 'atomic-tab', + react: React, + elementClass: LitAtomicTab, +}); + export const AtomicText = createComponent({ tagName: 'atomic-text', react: React, diff --git a/packages/atomic/src/components.d.ts b/packages/atomic/src/components.d.ts index d267ccb8b38..06806ccb797 100644 --- a/packages/atomic/src/components.d.ts +++ b/packages/atomic/src/components.d.ts @@ -1933,24 +1933,6 @@ export namespace Components { "side": 'left' | 'right'; "suggestion": SearchBoxSuggestionElement; } - /** - * The `atomic-tab` component represents an individual tab within the `atomic-tab-manager` component. - * It must be used as a child of the `atomic-tab-manager` component to function correctly. - */ - interface AtomicTab { - /** - * The [constant query expression (`cq`)](https://docs.coveo.com/en/2830/searching-with-coveo/about-the-query-expression#constant-query-expression-cq) to apply when the tab is the active one. - */ - "expression": string; - /** - * The label to display on the tab. - */ - "label": string; - /** - * The internal name of the atomic tab. - */ - "name": string; - } interface AtomicTabBar { } interface AtomicTabButton { @@ -3181,16 +3163,6 @@ declare global { prototype: HTMLAtomicSuggestionRendererElement; new (): HTMLAtomicSuggestionRendererElement; }; - /** - * The `atomic-tab` component represents an individual tab within the `atomic-tab-manager` component. - * It must be used as a child of the `atomic-tab-manager` component to function correctly. - */ - interface HTMLAtomicTabElement extends Components.AtomicTab, HTMLStencilElement { - } - var HTMLAtomicTabElement: { - prototype: HTMLAtomicTabElement; - new (): HTMLAtomicTabElement; - }; interface HTMLAtomicTabBarElement extends Components.AtomicTabBar, HTMLStencilElement { } var HTMLAtomicTabBarElement: { @@ -3350,7 +3322,6 @@ declare global { "atomic-sort-expression": HTMLAtomicSortExpressionElement; "atomic-stencil-facet-date-input": HTMLAtomicStencilFacetDateInputElement; "atomic-suggestion-renderer": HTMLAtomicSuggestionRendererElement; - "atomic-tab": HTMLAtomicTabElement; "atomic-tab-bar": HTMLAtomicTabBarElement; "atomic-tab-button": HTMLAtomicTabButtonElement; "atomic-tab-manager": HTMLAtomicTabManagerElement; @@ -5229,24 +5200,6 @@ declare namespace LocalJSX { "side": 'left' | 'right'; "suggestion": SearchBoxSuggestionElement; } - /** - * The `atomic-tab` component represents an individual tab within the `atomic-tab-manager` component. - * It must be used as a child of the `atomic-tab-manager` component to function correctly. - */ - interface AtomicTab { - /** - * The [constant query expression (`cq`)](https://docs.coveo.com/en/2830/searching-with-coveo/about-the-query-expression#constant-query-expression-cq) to apply when the tab is the active one. - */ - "expression"?: string; - /** - * The label to display on the tab. - */ - "label": string; - /** - * The internal name of the atomic tab. - */ - "name": string; - } interface AtomicTabBar { } interface AtomicTabButton { @@ -5470,7 +5423,6 @@ declare namespace LocalJSX { "atomic-sort-expression": AtomicSortExpression; "atomic-stencil-facet-date-input": AtomicStencilFacetDateInput; "atomic-suggestion-renderer": AtomicSuggestionRenderer; - "atomic-tab": AtomicTab; "atomic-tab-bar": AtomicTabBar; "atomic-tab-button": AtomicTabButton; "atomic-tab-manager": AtomicTabManager; @@ -5836,11 +5788,6 @@ declare module "@stencil/core" { * use native Elements. */ "atomic-suggestion-renderer": LocalJSX.AtomicSuggestionRenderer & JSXBase.HTMLAttributes; - /** - * The `atomic-tab` component represents an individual tab within the `atomic-tab-manager` component. - * It must be used as a child of the `atomic-tab-manager` component to function correctly. - */ - "atomic-tab": LocalJSX.AtomicTab & JSXBase.HTMLAttributes; "atomic-tab-bar": LocalJSX.AtomicTabBar & JSXBase.HTMLAttributes; "atomic-tab-button": LocalJSX.AtomicTabButton & JSXBase.HTMLAttributes; /** diff --git a/packages/atomic/src/components/common/tabs/tab-button.tsx b/packages/atomic/src/components/common/tabs/tab-button.tsx index 18aef6b085d..9ee75e46f3b 100644 --- a/packages/atomic/src/components/common/tabs/tab-button.tsx +++ b/packages/atomic/src/components/common/tabs/tab-button.tsx @@ -31,7 +31,7 @@ export class AtomicTabButton { } private get activeTabTextClass() { - return this.active ? '' : 'text-neutral-dark hover:text-primary-light'; + return this.active ? '' : 'text-neutral-dark'; } render() { @@ -44,7 +44,7 @@ export class AtomicTabButton { part={'button-container' + (this.active ? '-active' : '')} >