Skip to content

Commit

Permalink
update action size properties and fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Dec 15, 2023
1 parent 22b8a80 commit 487c8fd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/design-land/src/app/toast/toast.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import { DaffArticleModule } from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffToastModule } from '@daffodil/design/toast';

import { DesignLandToastRoutingModule } from './toast-routing-module';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import {
DaffToast,
DaffToastAction,
DaffToastPositionService,
DaffToastService,
} from '@daffodil/design/toast';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import { DaffButtonModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffToastModule } from '@daffodil/design/toast';

import { DefaultToastComponent } from './default-toast.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import { DaffButtonModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import {
DaffToastModule,
provideDaffToastOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import { DaffButtonModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffToastModule } from '@daffodil/design/toast';

import { ToastStatusComponent } from './toast-status.component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffButtonModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffToastModule } from '@daffodil/design/toast';

import { ToastWithCustomDurationComponent } from './toast-with-custom-duration.component';
Expand Down
6 changes: 4 additions & 2 deletions libs/design/toast/src/interfaces/toast-action.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EventEmitter } from '@angular/core';

import {
DaffButtonSize,
DaffPalette,
DaffStatus,
} from '@daffodil/design';
Expand All @@ -14,7 +13,10 @@ export interface DaffToastAction {

content: string;

size?: DaffButtonSize;
/**
* The size of the button, as defined in the {@link DaffButtonComponent}.
*/
size?: 'sm' | 'md' | 'lg' | undefined;

color?: DaffPalette;

Expand Down
6 changes: 2 additions & 4 deletions libs/design/toast/src/toast.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffButtonModule,
DaffPrefixSuffixModule,
} from '@daffodil/design';
import { DaffPrefixSuffixModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffToastPositionService } from './service/position.service';
import { DaffToastTemplateComponent } from './toast/toast-template.component';
Expand Down

0 comments on commit 487c8fd

Please sign in to comment.