Skip to content

Commit

Permalink
feat(design)!: shard button component (#2654)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `DaffButtonModule` has moved to its own package. Update imports to `@daffodil/design/button`
  • Loading branch information
xelaint committed Dec 13, 2023
1 parent 6347315 commit eba3142
Show file tree
Hide file tree
Showing 80 changed files with 110 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import { RouterModule } from '@angular/router';
import {
DaffContainerModule,
DaffCalloutModule,
DaffButtonModule,
DaffImageModule,
DaffCardModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioHomeCalloutPwaComponent } from './home-callout-pwa.component';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import { RouterModule } from '@angular/router';
import {
DaffContainerModule,
DaffHeroModule,
DaffButtonModule,
DaffImageModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioHomeHeroComponent } from './home-hero.component';


@NgModule({
imports: [
CommonModule,
Expand Down
3 changes: 1 addition & 2 deletions apps/daffio/src/app/content/not-found/not-found.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import { RouterModule } from '@angular/router';
import {
DaffHeroModule,
DaffContainerModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioNotFoundComponent } from './component/not-found.component';
import { DaffioNotFoundRoutingModule } from './not-found-routing.module';
import { TemplateModule } from '../../core/template/template.module';


@NgModule({
imports: [
CommonModule,
Expand Down
3 changes: 1 addition & 2 deletions apps/daffio/src/app/content/support/support.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import { RouterModule } from '@angular/router';
import {
DaffHeroModule,
DaffContainerModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioSupportComponent } from './component/support.component';
import { DaffioSupportRoutingModule } from './support-routing.module';
import { TemplateModule } from '../../core/template/template.module';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import { RouterModule } from '@angular/router';
import {
DaffContainerModule,
DaffHeroModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioWhyPwaHeroComponent } from './why-pwa-hero.component';


@NgModule({
imports: [
CommonModule,
Expand Down
5 changes: 1 addition & 4 deletions apps/daffio/src/app/core/footer/footer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ import {
DaffCalloutModule,
DaffListModule,
DaffButtonSetModule,
DaffButtonModule,
DaffContainerModule,
DaffInputModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DaffioSimpleFooterComponent } from './simple-footer/simple-footer.component';
import { DaffioSubFooterComponent } from './sub-footer/sub-footer.component';
import { DaffioNewsletterModule } from '../../newsletter/newsletter.module';




@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import { DaffLogoModule } from '@daffodil/branding';
import { DaffButtonModule } from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffThemeSwitchButtonModule } from '@daffodil/theme-switch';

import { DaffioHeaderContainer } from './header.component';
Expand Down
6 changes: 2 additions & 4 deletions apps/daffio/src/app/core/sidebar/sidebar.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

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

import { DaffioSidebarViewportContainer } from './containers/sidebar-viewport/sidebar-viewport.component';
import { DaffioSidebarStateModule } from './sidebar.state.module';
Expand Down
3 changes: 1 addition & 2 deletions apps/daffio/src/app/newsletter/newsletter.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import { NgModule } from '@angular/core';

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

import { DaffioNewsletterComponent } from './newsletter.component';


@NgModule({
imports: [
CommonModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import {
DaffButtonSetModule,
DaffLoadingIconModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { AddToCartNotificationComponent } from './add-to-cart-notification.component';
import { ProceedToCheckoutModule } from '../../../proceed-to-checkout/proceed-to-checkout.module';
import { ViewCartModule } from '../../../view-cart/view-cart.module';
import { ProductAddedModule } from '../product-added/product-added.module';


@NgModule({
imports: [
CommonModule,
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 { CartSidebarComponent } from './cart-sidebar.component';
import { HelpBoxModule } from '../../../misc/help-box/help-box.module';
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 { ViewCartDirective } from './view-cart.directive';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ReactiveFormsModule } from '@angular/forms';
import {
DaffInputModule,
DaffNativeSelectModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { PaymentFormComponent } from './payment-form.component';
import { AddressFormModule } from '../../forms/address-form/address-form.module';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

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

import { PlaceOrderComponent } from './place-order.component';


@NgModule({
imports: [
CommonModule,
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 { ReactiveFormsModule } from '@angular/forms';

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

import { ShippingFormComponent } from './shipping-form.component';
import { AddressFormModule } from '../../forms/address-form/address-form.module';
Expand Down
3 changes: 1 addition & 2 deletions apps/demo/src/app/core/footer/footer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { FooterComponent } from './footer.component';


@NgModule({
imports: [
CommonModule,
Expand Down
7 changes: 2 additions & 5 deletions apps/demo/src/app/core/header/header.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { DemoHeaderComponent } from './components/header/header.component';
import { DemoHeaderContainer } from './containers/header/header.component';
import { LogoModule } from '../logo/logo.module';
import { SidebarModule } from '../sidebar/sidebar.module';


@NgModule({
imports: [
CommonModule,
Expand Down
4 changes: 1 addition & 3 deletions apps/demo/src/app/newsletter/newsletter.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import { ReactiveFormsModule } from '@angular/forms';

import {
DaffInputModule,
DaffButtonModule,
DaffContainerModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffNewsletterStateModule } from '@daffodil/newsletter/state';

import { NewsletterComponent } from './newsletter.component';



@NgModule({
imports: [
CommonModule,
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 { AddToCartComponent } from './add-to-cart.component';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

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

import { PrintOrderSummaryComponent } from './print-order-summary.component';


@NgModule({
imports: [
CommonModule,
Expand Down
2 changes: 1 addition & 1 deletion apps/design-land/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
DaffLinkSetModule,
DAFF_THEME_INITIALIZER,
DaffNavbarModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffButtonModule } from '@daffodil/design/button';
import { DaffThemeSwitchButtonModule } from '@daffodil/theme-switch';

import { DesignLandAppRoutingModule } from './app-routing.module';
Expand Down
2 changes: 1 addition & 1 deletion apps/design-land/src/app/button/button.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { DaffButtonModule } from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffButtonModule } from '@daffodil/design/button';

import { DesignLandButtonRoutingModule } from './button-routing.module';
import { DesignLandButtonComponent } from './button.component';
Expand Down
2 changes: 1 addition & 1 deletion apps/design-land/src/app/form/form.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ReactiveFormsModule } from '@angular/forms';
import {
DaffInputModule,
DaffFormFieldModule,
DaffButtonModule,
} from '@daffodil/design';
import { DaffButtonModule } from '@daffodil/design/button';

import { DesignLandFormRoutingModule } from './form-routing.module';
import { DesignLandFormComponent } from './form.component';
Expand Down
6 changes: 2 additions & 4 deletions apps/design-land/src/app/menu/menu.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import {
DaffButtonModule,
DaffMenuModule,
} from '@daffodil/design';
import { DaffMenuModule } from '@daffodil/design';
import { DaffArticleModule } from '@daffodil/design/article';
import { DaffButtonModule } from '@daffodil/design/button';

import { DesignLandMenuRoutingModule } from './menu-routing-module';
import { DesignLandMenuComponent } from './menu.component';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { BasicButtonComponent } from './basic-button.component';


@NgModule({
declarations: [
BasicButtonComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { FlatButtonComponent } from './flat-button.component';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { IconButtonComponent } from './icon-button.component';


@NgModule({
declarations: [
IconButtonComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { RaisedButtonComponent } from './raised-button.component';


@NgModule({
declarations: [
RaisedButtonComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { SizeableButtonComponent } from './sizeable-button.component';


@NgModule({
declarations: [
SizeableButtonComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

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

import { StatusableButtonComponent } from './statusable-button.component';


@NgModule({
declarations: [
StatusableButtonComponent,
Expand Down
Loading

0 comments on commit eba3142

Please sign in to comment.