mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[EC 456] Component Library Content Switching Tabs (#3452)
* [EC-456] Rename bitTabItem -> bitTab * [EC-456] Use templateRefs or text for tab label content * [EC-456] Add bit-tab-nav-bar component * [EC-456] Finish content tab switching and nav tabs * [EC-456] Undo accidental eslintrc.json change * [EC-456] Fix directive/component selector naming convention * [EC-456] Cleanup unnecessary InjectionTokens and simplify template label property * [EC-456] Cleanup one more unnecessary InjectionToken * [EC-456] Cleanup tab styles to better match Figma. Add internal tab header component for styling header background according to Figma. * [EC-456] Add sub-folders for nav, content, and shared tab components/directives * [EC-456] Code/style cleanup * [EC-456] Remove underscore from protected members * [EC-456] Cleanup tab stories and forgotten any type. * [EC-456] Fix dark theme story tab content text color * [EC-456] Add missing padding to tab header * [EC-456] Add tab content padding to align with tab headers * [EC-456] Move bottom tab border to header to span entire content area * [EC-456] Force text-main tab label color * [EC-456] Undo text-main change
This commit is contained in:
@@ -1,13 +1,37 @@
|
||||
import { PortalModule } from "@angular/cdk/portal";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router";
|
||||
|
||||
import { TabGroupComponent } from "./tab-group.component";
|
||||
import { TabItemComponent } from "./tab-item.component";
|
||||
import { TabHeaderComponent } from "./shared/tab-header.component";
|
||||
import { TabListContainerDirective } from "./shared/tab-list-container.directive";
|
||||
import { TabListItemDirective } from "./shared/tab-list-item.directive";
|
||||
import { TabBodyComponent } from "./tab-group/tab-body.component";
|
||||
import { TabGroupComponent } from "./tab-group/tab-group.component";
|
||||
import { TabLabelDirective } from "./tab-group/tab-label.directive";
|
||||
import { TabComponent } from "./tab-group/tab.component";
|
||||
import { TabLinkComponent } from "./tab-nav-bar/tab-link.component";
|
||||
import { TabNavBarComponent } from "./tab-nav-bar/tab-nav-bar.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, RouterModule],
|
||||
exports: [TabGroupComponent, TabItemComponent],
|
||||
declarations: [TabGroupComponent, TabItemComponent],
|
||||
imports: [CommonModule, RouterModule, PortalModule],
|
||||
exports: [
|
||||
TabGroupComponent,
|
||||
TabComponent,
|
||||
TabLabelDirective,
|
||||
TabNavBarComponent,
|
||||
TabLinkComponent,
|
||||
],
|
||||
declarations: [
|
||||
TabGroupComponent,
|
||||
TabComponent,
|
||||
TabLabelDirective,
|
||||
TabListContainerDirective,
|
||||
TabListItemDirective,
|
||||
TabHeaderComponent,
|
||||
TabNavBarComponent,
|
||||
TabLinkComponent,
|
||||
TabBodyComponent,
|
||||
],
|
||||
})
|
||||
export class TabsModule {}
|
||||
|
||||
Reference in New Issue
Block a user