diff --git a/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/atomic-angular.module.ts b/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/atomic-angular.module.ts index 642538c8ccb..64a2bbc46c5 100644 --- a/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/atomic-angular.module.ts +++ b/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/atomic-angular.module.ts @@ -103,6 +103,7 @@ AtomicSmartSnippetFeedbackModal, AtomicSmartSnippetSuggestions, AtomicSortDropdown, AtomicSortExpression, +AtomicTabManager, AtomicTableElement, AtomicText, AtomicTimeframe, @@ -213,6 +214,7 @@ AtomicSmartSnippetFeedbackModal, AtomicSmartSnippetSuggestions, AtomicSortDropdown, AtomicSortExpression, +AtomicTabManager, AtomicTableElement, AtomicText, AtomicTimeframe, diff --git a/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/components.ts b/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/components.ts index 7b01808e15b..b9f59d11f27 100644 --- a/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/components.ts +++ b/packages/atomic-angular/projects/atomic-angular/src/lib/stencil-generated/components.ts @@ -2223,6 +2223,28 @@ export class AtomicSortExpression { export declare interface AtomicSortExpression extends Components.AtomicSortExpression {} +@ProxyCmp({ + inputs: ['clearFiltersOnTabChange'] +}) +@Component({ + selector: 'atomic-tab-manager', + changeDetection: ChangeDetectionStrategy.OnPush, + template: '', + // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property + inputs: ['clearFiltersOnTabChange'], +}) +export class AtomicTabManager { + protected el: HTMLElement; + constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) { + c.detach(); + this.el = r.nativeElement; + } +} + + +export declare interface AtomicTabManager extends Components.AtomicTabManager {} + + @ProxyCmp({ inputs: ['label'] }) diff --git a/packages/atomic-react/src/components/stencil-generated/search/index.ts b/packages/atomic-react/src/components/stencil-generated/search/index.ts index 50765440f10..1e9311bb84f 100644 --- a/packages/atomic-react/src/components/stencil-generated/search/index.ts +++ b/packages/atomic-react/src/components/stencil-generated/search/index.ts @@ -90,6 +90,7 @@ export const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/createReactComponent export const AtomicSmartSnippetSuggestions = /*@__PURE__*/createReactComponent('atomic-smart-snippet-suggestions'); export const AtomicSortDropdown = /*@__PURE__*/createReactComponent('atomic-sort-dropdown'); export const AtomicSortExpression = /*@__PURE__*/createReactComponent('atomic-sort-expression'); +export const AtomicTabManager = /*@__PURE__*/createReactComponent('atomic-tab-manager'); export const AtomicTableElement = /*@__PURE__*/createReactComponent('atomic-table-element'); export const AtomicText = /*@__PURE__*/createReactComponent('atomic-text'); export const AtomicTimeframe = /*@__PURE__*/createReactComponent('atomic-timeframe'); diff --git a/packages/atomic/src/components.d.ts b/packages/atomic/src/components.d.ts index ff0c7ef5c5d..a151a53f748 100644 --- a/packages/atomic/src/components.d.ts +++ b/packages/atomic/src/components.d.ts @@ -3352,6 +3352,9 @@ export namespace Components { */ "name": string; } + /** + * @alpha + */ interface AtomicTabManager { /** * Whether to clear the filters when the active tab changes. @@ -5482,6 +5485,9 @@ declare global { prototype: HTMLAtomicTabElement; new (): HTMLAtomicTabElement; }; + /** + * @alpha + */ interface HTMLAtomicTabManagerElement extends Components.AtomicTabManager, HTMLStencilElement { } var HTMLAtomicTabManagerElement: { @@ -8867,6 +8873,9 @@ declare namespace LocalJSX { */ "name": string; } + /** + * @alpha + */ interface AtomicTabManager { /** * Whether to clear the filters when the active tab changes. @@ -9901,6 +9910,9 @@ declare module "@stencil/core" { */ "atomic-sort-expression": LocalJSX.AtomicSortExpression & JSXBase.HTMLAttributes; "atomic-tab": LocalJSX.AtomicTab & JSXBase.HTMLAttributes; + /** + * @alpha + */ "atomic-tab-manager": LocalJSX.AtomicTabManager & JSXBase.HTMLAttributes; /** * The `atomic-table-element` element defines a table column in a result list. diff --git a/packages/atomic/src/components/common/tab-manager/tab-button.tsx b/packages/atomic/src/components/common/tab-manager/tab-button.tsx index eb3c53b48f3..04e8c64adaf 100644 --- a/packages/atomic/src/components/common/tab-manager/tab-button.tsx +++ b/packages/atomic/src/components/common/tab-manager/tab-button.tsx @@ -13,14 +13,19 @@ export const TabButton: FunctionalComponent = (props) => { : ''; const activeTabTextClass = props.isActive ? '' : 'text-neutral-dark'; return ( -
+
  • -
  • + ); }; diff --git a/packages/atomic/src/components/common/tab-manager/tab-dropdown.tsx b/packages/atomic/src/components/common/tab-manager/tab-dropdown.tsx index 68ac2145dd9..1ff2e970e38 100644 --- a/packages/atomic/src/components/common/tab-manager/tab-dropdown.tsx +++ b/packages/atomic/src/components/common/tab-manager/tab-dropdown.tsx @@ -11,8 +11,12 @@ export const TabDropdown: FunctionalComponent = ( children ) => { return ( -