@daffodil/design 0.39.8 → 0.39.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/bundles/daffodil-design-card-examples.umd.js +152 -14
  2. package/bundles/daffodil-design-card-examples.umd.js.map +1 -1
  3. package/bundles/daffodil-design-card-examples.umd.min.js +1 -1
  4. package/bundles/daffodil-design-card-examples.umd.min.js.map +1 -1
  5. package/bundles/daffodil-design-container-examples.umd.js +65 -0
  6. package/bundles/daffodil-design-container-examples.umd.js.map +1 -0
  7. package/bundles/daffodil-design-container-examples.umd.min.js +2 -0
  8. package/bundles/daffodil-design-container-examples.umd.min.js.map +1 -0
  9. package/bundles/daffodil-design.umd.js +171 -22
  10. package/bundles/daffodil-design.umd.js.map +1 -1
  11. package/bundles/daffodil-design.umd.min.js +2 -2
  12. package/bundles/daffodil-design.umd.min.js.map +1 -1
  13. package/card/examples/basic-card/basic-card.component.d.ts +1 -0
  14. package/card/examples/card-orientation/card-orientation.component.d.ts +9 -0
  15. package/card/examples/card-orientation/card-orientation.module.d.ts +2 -0
  16. package/card/examples/card-theming/card-theming.component.d.ts +4 -2
  17. package/card/examples/daffodil-design-card-examples.d.ts +2 -0
  18. package/card/examples/daffodil-design-card-examples.metadata.json +1 -1
  19. package/card/examples/linkable-card/linkable-card.component.d.ts +8 -0
  20. package/card/examples/public_api.d.ts +5 -1
  21. package/card/examples/raised-card/raised-card.component.d.ts +6 -0
  22. package/card/examples/stroked-card/stroked-card.component.d.ts +8 -0
  23. package/card/examples/stroked-card/stroked-card.module.d.ts +2 -0
  24. package/container/examples/container-sizes/container-sizes.component.d.ts +8 -0
  25. package/container/examples/container-sizes/container-sizes.module.d.ts +2 -0
  26. package/container/examples/daffodil-design-container-examples.d.ts +4 -0
  27. package/container/examples/daffodil-design-container-examples.metadata.json +1 -0
  28. package/container/examples/examples.d.ts +2 -0
  29. package/container/examples/index.d.ts +1 -0
  30. package/container/examples/package.json +11 -0
  31. package/container/examples/public_api.d.ts +3 -0
  32. package/core/manage-container-layout/manage-container-layout-mixin.d.ts +17 -0
  33. package/core/manage-container-layout/public_api.d.ts +1 -0
  34. package/core/public_api.d.ts +1 -0
  35. package/daff-theme.scss +165 -18
  36. package/daffodil-design.metadata.json +1 -1
  37. package/esm2015/atoms/container/container.component.js +1 -1
  38. package/esm2015/atoms/image/image.component.js +2 -2
  39. package/esm2015/card/examples/basic-card/basic-card.component.js +7 -3
  40. package/esm2015/card/examples/basic-card/basic-card.module.js +3 -1
  41. package/esm2015/card/examples/card-orientation/card-orientation.component.js +24 -0
  42. package/esm2015/card/examples/card-orientation/card-orientation.module.js +27 -0
  43. package/esm2015/card/examples/card-theming/card-theming.component.js +13 -4
  44. package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
  45. package/esm2015/card/examples/linkable-card/linkable-card.component.js +19 -3
  46. package/esm2015/card/examples/linkable-card/linkable-card.module.js +3 -1
  47. package/esm2015/card/examples/public_api.js +7 -1
  48. package/esm2015/card/examples/raised-card/raised-card.component.js +17 -3
  49. package/esm2015/card/examples/raised-card/raised-card.module.js +3 -3
  50. package/esm2015/card/examples/stroked-card/stroked-card.component.js +27 -0
  51. package/esm2015/card/examples/stroked-card/stroked-card.module.js +27 -0
  52. package/esm2015/container/examples/container-sizes/container-sizes.component.js +23 -0
  53. package/esm2015/container/examples/container-sizes/container-sizes.module.js +23 -0
  54. package/esm2015/container/examples/daffodil-design-container-examples.js +5 -0
  55. package/esm2015/container/examples/examples.js +5 -0
  56. package/esm2015/container/examples/index.js +2 -0
  57. package/esm2015/container/examples/public_api.js +4 -0
  58. package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +14 -0
  59. package/esm2015/core/manage-container-layout/public_api.js +2 -0
  60. package/esm2015/core/public_api.js +2 -1
  61. package/esm2015/molecules/callout/callout/callout.component.js +4 -3
  62. package/esm2015/molecules/card/card/card.component.js +76 -14
  63. package/esm2015/molecules/card/card-content/card-content.directive.js +18 -0
  64. package/esm2015/molecules/card/card-icon/card-icon.directive.js +18 -0
  65. package/esm2015/molecules/card/card.module.js +9 -3
  66. package/esm2015/molecules/card/public_api.js +4 -2
  67. package/esm2015/molecules/hero/hero/hero.component.js +4 -3
  68. package/esm2015/molecules/navbar/navbar.component.js +3 -2
  69. package/fesm2015/daffodil-design-card-examples.js +145 -11
  70. package/fesm2015/daffodil-design-card-examples.js.map +1 -1
  71. package/fesm2015/daffodil-design-container-examples.js +54 -0
  72. package/fesm2015/daffodil-design-container-examples.js.map +1 -0
  73. package/fesm2015/daffodil-design.js +137 -23
  74. package/fesm2015/daffodil-design.js.map +1 -1
  75. package/molecules/callout/callout/callout.component.d.ts +5 -0
  76. package/molecules/card/card/card.component.d.ts +37 -11
  77. package/molecules/card/card-content/card-content.directive.d.ts +6 -0
  78. package/molecules/card/card-icon/card-icon.directive.d.ts +6 -0
  79. package/molecules/card/public_api.d.ts +3 -1
  80. package/molecules/hero/hero/hero.component.d.ts +5 -0
  81. package/molecules/navbar/navbar.component.d.ts +5 -0
  82. package/package.json +1 -1
@@ -1,2 +1,3 @@
1
1
  export declare class BasicCardComponent {
2
+ faMapMarked: import("@fortawesome/fontawesome-common-types").IconDefinition;
2
3
  }
@@ -0,0 +1,9 @@
1
+ import { FormControl } from '@angular/forms';
2
+ export declare class CardOrientationComponent {
3
+ faMapMarked: import("@fortawesome/fontawesome-common-types").IconDefinition;
4
+ orientationControl: FormControl;
5
+ options: {
6
+ value: string;
7
+ label: string;
8
+ }[];
9
+ }
@@ -0,0 +1,2 @@
1
+ export declare class CardOrientationModule {
2
+ }
@@ -1,6 +1,8 @@
1
1
  import { FormControl } from '@angular/forms';
2
- import { DaffPalette } from '@daffodil/design';
3
2
  export declare class CardThemingComponent {
4
- color: DaffPalette;
5
3
  colorControl: FormControl;
4
+ options: {
5
+ value: string;
6
+ label: string;
7
+ }[];
6
8
  }
@@ -3,6 +3,8 @@
3
3
  */
4
4
  export * from './index';
5
5
  export { BasicCardComponent as ɵa } from './basic-card/basic-card.component';
6
+ export { CardOrientationComponent as ɵf } from './card-orientation/card-orientation.component';
6
7
  export { CardThemingComponent as ɵb } from './card-theming/card-theming.component';
7
8
  export { LinkableCardComponent as ɵc } from './linkable-card/linkable-card.component';
8
9
  export { RaisedCardComponent as ɵd } from './raised-card/raised-card.component';
10
+ export { StrokedCardComponent as ɵe } from './stroked-card/stroked-card.component';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"CARD_EXAMPLES":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"BasicCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":17,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":19,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"CardThemingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":17,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":19,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"LinkableCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":19,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":21,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"RaisedCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":19,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":21,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"basic-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":10,"character":19},"member":"OnPush"},"template":"<daff-card>\n <daff-image daffCardImage src=\"/assets/card/uber-logo-dark.svg\" alt=\"uber logo\" width=\"340\" height=\"135\"></daff-image>\n <div daffCardTagline>Card Tagline</div>\n <h4 daffCardTitle>Title</h4>\n <p>This is a basic card.</p>\n <div daffCardActions class=\"daff-basic-card__actions\">\n <button daff-underline-button>Card Button</button>\n <button daff-underline-button>Another Card Button</button>\n </div>\n</daff-card>","styles":[":host{display:block;max-width:340px}.daff-basic-card__actions>*{margin-right:16px}.daff-basic-card__actions>:last-child{margin-right:0}"]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"card-theming","styles":["\n daff-card {\n max-width: 400px;\n }\n "],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":17,"character":19},"member":"OnPush"},"template":"<daff-card [color]=\"colorControl.value\">\n <div daffCardTagline>Card Tagline</div>\n <div daffCardTitle>Title</div>\n <p>Cards are themable.</p>\n</daff-card>\n\n<select [formControl]=\"colorControl\">\n <option value=\"\">Default</option>\n <option value=\"primary\">Primary</option>\n <option value=\"secondary\">Secondary</option>\n <option value=\"tertiary\">Tertiary</option>\n <option value=\"theme\">Theme</option>\n <option value=\"theme-contrast\">Theme Contrast</option>\n <option value=\"black\">Black</option>\n <option value=\"white\">White</option>\n</select>"}]}],"members":{}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"linkable-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":10,"character":19},"member":"OnPush"},"template":"<a routerLink=\"/\" daff-card>\n\t<daff-image daffCardImage\n\t\tsrc=\"/assets/card/uber-logo-dark.svg\"\n\t\talt=\"uber logo\"\n\t\twidth=\"340\"\n\t\theight=\"135\">\n\t</daff-image>\n\t<div daffCardTagline>Card Tagline</div>\n\t<h4 daffCardTitle>Title</h4>\n\t<p>This is a linkable card.</p>\n</a>\n","styles":[":host{display:block;max-width:340px}"]}]}],"members":{}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"raised-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":10,"character":19},"member":"OnPush"},"template":"<daff-card [raised]=\"true\">\n\t<daff-image\n\t\tdaffCardImage\n\t\tsrc=\"/assets/card/uber-logo-dark.svg\"\n\t\talt=\"uber logo\"\n\t\twidth=\"340\"\n\t\theight=\"135\"\n\t></daff-image>\n\t<div daffCardTagline>Card Tagline</div>\n\t<h4 daffCardTitle>Title</h4>\n\t<p>This is a raised card.</p>\n</daff-card>\n","styles":[":host{display:block;max-width:340px}"]}]}],"members":{}}},"origins":{"CARD_EXAMPLES":"./public_api","BasicCardModule":"./basic-card/basic-card.module","CardThemingModule":"./card-theming/card-theming.module","LinkableCardModule":"./linkable-card/linkable-card.module","RaisedCardModule":"./raised-card/raised-card.module","ɵa":"./basic-card/basic-card.component","ɵb":"./card-theming/card-theming.component","ɵc":"./linkable-card/linkable-card.component","ɵd":"./raised-card/raised-card.component"},"importAs":"@daffodil/design/card/examples"}
1
+ {"__symbolic":"module","version":4,"metadata":{"CARD_EXAMPLES":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}],"BasicCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":19,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":20,"character":4},{"__symbolic":"reference","module":"@fortawesome/angular-fontawesome","name":"FontAwesomeModule","line":22,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"CardOrientationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵf"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":19,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":21,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":22,"character":4},{"__symbolic":"reference","module":"@fortawesome/angular-fontawesome","name":"FontAwesomeModule","line":23,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵf"}]}]}],"members":{}},"CardThemingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":17,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":19,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"LinkableCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":19,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":21,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":22,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":23,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"RaisedCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":21,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":22,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{}},"StrokedCardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":19,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":20,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffCardModule","line":22,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffImageModule","line":23,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffButtonModule","line":24,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵe"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"basic-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":19},"member":"OnPush"},"template":"<daff-card>\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n <fa-icon daffCardIcon [icon]=\"faMapMarked\"></fa-icon>\n <div daffCardTagline>Basel, Switzerland</div>\n <h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n <p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n </div>\n <div daffCardActions>\n <button daff-button color=\"theme-contrast\">Learn More</button>\n </div>\n</daff-card>\n","styles":["daff-card{max-width:480px}"]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"card-theming","styles":["\n daff-card {\n max-width: 480px;\n }\n "],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"template":"<daff-card [color]=\"colorControl.value\">\n <div daffCardTagline>Card Tagline</div>\n <div daffCardTitle>Title</div>\n <div daffCardContent>\n <p>Cards are themable.</p>\n </div>\n</daff-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>"}]}],"members":{}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"linkable-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":19},"member":"OnPush"},"template":"<a daff-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"basicColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"basicColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>\n\n<a daff-raised-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"raisedColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"strokedColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>\n\n<a daff-stroked-card href=\"https://www.basel.com/en/attractions/basel-exhibition-centre-f45d5dd6f0\" target=\"_blank\" [color]=\"strokedColorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</a>\n\n<select [formControl]=\"strokedColorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>","styles":["a daff-card,a daff-raised-card,a daff-stroked-card{max-width:480px}"]}]}],"members":{}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"raised-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":19},"member":"OnPush"},"template":"<daff-raised-card [color]=\"colorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</daff-raised-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>","styles":["daff-raised-card{max-width:480px}"]}]}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"stroked-card","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":19},"member":"OnPush"},"template":"<daff-stroked-card [color]=\"colorControl.value\">\n\t<daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n\t<div daffCardTagline>Basel, Switzerland</div>\n\t<h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n\t\t<p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n\t</div>\n</daff-stroked-card>\n\n<select [formControl]=\"colorControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>","styles":[":host{display:block;max-width:340px}"]}]}],"members":{}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"card-orientation","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":12,"character":19},"member":"OnPush"},"template":"<daff-card [orientation]=\"orientationControl.value\">\n <daff-image daffCardImage\n\t\tsrc=\"https://images.unsplash.com/photo-1593519749347-80f101e93113?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3774&q=80\"\n\t\talt=\"Bottom up view of Basel exhibition centre\"\n\t\twidth=\"1261\"\n\t\theight=\"946\">\n\t</daff-image>\n <fa-icon daffCardIcon [icon]=\"faMapMarked\"></fa-icon>\n <div daffCardTagline>Basel, Switzerland</div>\n <h4 daffCardTitle>Basel Exhibition Centre</h4>\n\t<div daffCardContent>\n <p>This covered, public space not only marks the entrance to the exhibitions, but also functions as a meeting place for locals and visitors. The architects called the prominent hole in the middle the \"Fenster zum Himmel\" (\"window to heaven\").</p>\n </div>\n\t<div daffCardActions>\n <button daff-button color=\"theme-contrast\">Learn More</button>\n </div>\n</daff-card>\n\n<select [formControl]=\"orientationControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>","styles":[".daff-card--vertical{max-width:560px}"]}]}],"members":{}}},"origins":{"CARD_EXAMPLES":"./public_api","BasicCardModule":"./basic-card/basic-card.module","CardOrientationModule":"./card-orientation/card-orientation.module","CardThemingModule":"./card-theming/card-theming.module","LinkableCardModule":"./linkable-card/linkable-card.module","RaisedCardModule":"./raised-card/raised-card.module","StrokedCardModule":"./stroked-card/stroked-card.module","ɵa":"./basic-card/basic-card.component","ɵb":"./card-theming/card-theming.component","ɵc":"./linkable-card/linkable-card.component","ɵd":"./raised-card/raised-card.component","ɵe":"./stroked-card/stroked-card.component","ɵf":"./card-orientation/card-orientation.component"},"importAs":"@daffodil/design/card/examples"}
@@ -1,2 +1,10 @@
1
+ import { FormControl } from '@angular/forms';
1
2
  export declare class LinkableCardComponent {
3
+ basicColorControl: FormControl;
4
+ raisedColorControl: FormControl;
5
+ strokedColorControl: FormControl;
6
+ options: {
7
+ value: string;
8
+ label: string;
9
+ }[];
2
10
  }
@@ -1,6 +1,10 @@
1
1
  import { BasicCardComponent } from './basic-card/basic-card.component';
2
2
  export { BasicCardModule } from './basic-card/basic-card.module';
3
+ export { CardOrientationModule } from './card-orientation/card-orientation.module';
4
+ import { CardThemingComponent } from './card-theming/card-theming.component';
3
5
  export { CardThemingModule } from './card-theming/card-theming.module';
6
+ import { LinkableCardComponent } from './linkable-card/linkable-card.component';
4
7
  export { LinkableCardModule } from './linkable-card/linkable-card.module';
5
8
  export { RaisedCardModule } from './raised-card/raised-card.module';
6
- export declare const CARD_EXAMPLES: (typeof BasicCardComponent)[];
9
+ export { StrokedCardModule } from './stroked-card/stroked-card.module';
10
+ export declare const CARD_EXAMPLES: (typeof BasicCardComponent | typeof CardThemingComponent | typeof LinkableCardComponent)[];
@@ -1,2 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
1
2
  export declare class RaisedCardComponent {
3
+ colorControl: FormControl;
4
+ options: {
5
+ value: string;
6
+ label: string;
7
+ }[];
2
8
  }
@@ -0,0 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
2
+ export declare class StrokedCardComponent {
3
+ colorControl: FormControl;
4
+ options: {
5
+ value: string;
6
+ label: string;
7
+ }[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StrokedCardModule {
2
+ }
@@ -0,0 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
2
+ export declare class ContainerSizesComponent {
3
+ sizeControl: FormControl;
4
+ options: {
5
+ value: string;
6
+ label: string;
7
+ }[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ContainerSizesModule {
2
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
@@ -0,0 +1 @@
1
+ {"__symbolic":"module","version":4,"metadata":{"ContainerSizesComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"container-sizes","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":10,"character":19},"member":"OnPush"},"template":"<daff-container [size]=\"sizeControl.value\">\n\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum in egestas ex, sed scelerisque neque. In ut vestibulum dui. Donec aliquet tortor pellentesque ex tincidunt faucibus. Vestibulum scelerisque dolor sit amet enim facilisis mattis. Pellentesque scelerisque vitae sapien sit amet dignissim. Aenean gravida facilisis ligula id vestibulum. Etiam viverra massa et nibh auctor molestie. Vestibulum rutrum pretium ex, vitae tempus mi. Nunc non arcu id ligula feugiat venenatis eu id urna. Vivamus fringilla, sapien ut molestie eleifend, ex arcu fringilla sapien, nec eleifend erat justo scelerisque metus. Integer eleifend, felis eget ultrices iaculis, sapien nibh pharetra enim, non malesuada mauris orci sed diam. Curabitur ultricies, enim in porta blandit, justo urna porta lacus, eu aliquet lectus est nec quam. Morbi condimentum auctor nisl, id convallis purus blandit laoreet. Nunc quis nulla mattis tellus feugiat laoreet. Curabitur in efficitur nisl. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.\n</daff-container>\n\n<select [formControl]=\"sizeControl\">\n\t<option *ngFor=\"let option of options\" [value]=\"option.value\">{{ option.label }}</option>\n</select>"}]}],"members":{}},"ContainerSizesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ContainerSizesComponent"}],"exports":[{"__symbolic":"reference","name":"ContainerSizesComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":18,"character":4},{"__symbolic":"reference","module":"@daffodil/design","name":"DaffContainerModule","line":20,"character":4}]}]}],"members":{}},"CONTAINER_EXAMPLES":[{"__symbolic":"reference","name":"ContainerSizesComponent"}]},"origins":{"ContainerSizesComponent":"./container-sizes/container-sizes.component","ContainerSizesModule":"./container-sizes/container-sizes.module","CONTAINER_EXAMPLES":"./examples"},"importAs":"@daffodil/design/container/examples"}
@@ -0,0 +1,2 @@
1
+ import { ContainerSizesComponent } from './container-sizes/container-sizes.component';
2
+ export declare const CONTAINER_EXAMPLES: (typeof ContainerSizesComponent)[];
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@daffodil/design/container/examples",
3
+ "main": "../../bundles/daffodil-design-container-examples.umd.js",
4
+ "module": "../../fesm2015/daffodil-design-container-examples.js",
5
+ "es2015": "../../fesm2015/daffodil-design-container-examples.js",
6
+ "esm2015": "../../esm2015/container/examples/daffodil-design-container-examples.js",
7
+ "fesm2015": "../../fesm2015/daffodil-design-container-examples.js",
8
+ "typings": "daffodil-design-container-examples.d.ts",
9
+ "metadata": "daffodil-design-container-examples.metadata.json",
10
+ "sideEffects": false
11
+ }
@@ -0,0 +1,3 @@
1
+ export { ContainerSizesComponent } from './container-sizes/container-sizes.component';
2
+ export { ContainerSizesModule } from './container-sizes/container-sizes.module';
3
+ export { CONTAINER_EXAMPLES } from './examples';
@@ -0,0 +1,17 @@
1
+ import { ElementRef, Renderer2 } from '@angular/core';
2
+ import { Constructor } from '../constructor/constructor';
3
+ export interface HasElementRef {
4
+ _elementRef: ElementRef;
5
+ _renderer: Renderer2;
6
+ }
7
+ /**
8
+ * A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
9
+ * It passes predetermined layout styles down to the container. In order for a component to
10
+ * do this, it must implement this mixin.
11
+ */
12
+ export declare function daffManageContainerLayoutMixin<T extends Constructor<HasElementRef>>(Base: T): {
13
+ new (...args: any[]): {
14
+ _elementRef: ElementRef<any>;
15
+ _renderer: Renderer2;
16
+ };
17
+ } & T;
@@ -0,0 +1 @@
1
+ export { daffManageContainerLayoutMixin } from './manage-container-layout-mixin';
@@ -7,3 +7,4 @@ export * from './skeletonable/skeletonable';
7
7
  export * from './mutable/mutable';
8
8
  export * from './text-alignable/text-alignable';
9
9
  export * from './compactable/public_api';
10
+ export * from './manage-container-layout/public_api';
package/daff-theme.scss CHANGED
@@ -3103,6 +3103,38 @@ $supported-theme-types: (
3103
3103
  }
3104
3104
  }
3105
3105
 
3106
+ @mixin daff-basic-card-theme-variant($color) {
3107
+ background: $color;
3108
+ color: daff-text-contrast($color);
3109
+ }
3110
+
3111
+ @mixin daff-linkable-basic-card-theme-variant(
3112
+ $hover-color,
3113
+ $active-color,
3114
+ $shadow-color
3115
+ ) {
3116
+ &:hover,
3117
+ &:focus {
3118
+ background: $hover-color;
3119
+ color: daff-text-contrast($hover-color);
3120
+ }
3121
+
3122
+ &:focus {
3123
+ outline: none;
3124
+ box-shadow: 0 0 0 4px rgba($shadow-color, 0.3);
3125
+ }
3126
+
3127
+ &:active {
3128
+ background: $active-color;
3129
+ color: daff-text-contrast($active-color);
3130
+ }
3131
+ }
3132
+
3133
+ @mixin daff-stroked-card-theme-variant($color) {
3134
+ border: 1px solid $color;
3135
+ }
3136
+
3137
+
3106
3138
  @mixin daff-card-theme($theme) {
3107
3139
  $primary: map-get($theme, primary);
3108
3140
  $secondary: map-get($theme, secondary);
@@ -3111,49 +3143,164 @@ $supported-theme-types: (
3111
3143
  $base-contrast: daff-map-deep-get($theme, 'core.base-contrast');
3112
3144
  $white: daff-map-deep-get($theme, 'core.white');
3113
3145
  $black: daff-map-deep-get($theme, 'core.black');
3146
+ $gray: daff-configure-palette($daff-gray, 60);
3114
3147
 
3115
3148
  .daff-card {
3116
3149
  $root: &;
3117
- background: daff-illuminate($base, $daff-gray, 1);
3118
- color: daff-text-contrast(daff-illuminate($base, $daff-gray, 1));
3150
+ @include daff-basic-card-theme-variant(
3151
+ daff-illuminate($base, $daff-gray, 1)
3152
+ );
3119
3153
 
3120
- &--raised {
3121
- box-shadow: 0 14px 28px 0 rgba($black, 0.12), 0 4px 12px rgba($black, 0.06);
3154
+ &.daff-primary {
3155
+ @include daff-basic-card-theme-variant(daff-color($primary));
3156
+ }
3157
+
3158
+ &.daff-secondary {
3159
+ @include daff-basic-card-theme-variant(daff-color($secondary));
3122
3160
  }
3123
3161
 
3162
+ &.daff-tertiary {
3163
+ @include daff-basic-card-theme-variant(daff-color($tertiary));
3164
+ }
3165
+
3166
+ &.daff-theme {
3167
+ @include daff-basic-card-theme-variant($base);
3168
+ }
3169
+
3170
+ &.daff-theme-contrast {
3171
+ @include daff-basic-card-theme-variant($base-contrast);
3172
+ }
3173
+
3174
+ &.daff-black {
3175
+ @include daff-basic-card-theme-variant($black);
3176
+ }
3177
+
3178
+ &.daff-white {
3179
+ @include daff-basic-card-theme-variant($white);
3180
+ }
3181
+ }
3182
+
3183
+ .daff-raised-card {
3184
+ box-shadow: 0 6px 12px -4px rgba($black, 0.12),
3185
+ 0 4px 8px -2px rgba($black, 0.06);
3186
+ }
3187
+
3188
+ .daff-stroked-card {
3189
+ @include daff-stroked-card-theme-variant(
3190
+ daff-illuminate($base, $daff-gray, 2)
3191
+ );
3192
+
3124
3193
  &.daff-primary {
3125
- background: daff-color($primary);
3126
- color: daff-text-contrast(daff-color($primary));
3194
+ @include daff-stroked-card-theme-variant(
3195
+ daff-illuminate($base-contrast, $primary, 3)
3196
+ );
3127
3197
  }
3128
3198
 
3129
3199
  &.daff-secondary {
3130
- background: daff-color($secondary);
3131
- color: daff-text-contrast(daff-color($secondary));
3200
+ @include daff-stroked-card-theme-variant(
3201
+ daff-illuminate($base-contrast, $secondary, 3)
3202
+ );
3132
3203
  }
3133
3204
 
3134
3205
  &.daff-tertiary {
3135
- background: daff-color($tertiary);
3136
- color: daff-text-contrast(daff-color($tertiary));
3206
+ @include daff-stroked-card-theme-variant(
3207
+ daff-illuminate($base-contrast, $tertiary, 3)
3208
+ );
3137
3209
  }
3138
3210
 
3139
3211
  &.daff-theme {
3140
- background: $base;
3141
- color: daff-text-contrast($base);
3212
+ @include daff-stroked-card-theme-variant(
3213
+ daff-illuminate($base, $daff-gray, 2)
3214
+ );
3142
3215
  }
3143
3216
 
3144
3217
  &.daff-theme-contrast {
3145
- background: $base-contrast;
3146
- color: daff-text-contrast($base-contrast);
3218
+ @include daff-stroked-card-theme-variant(
3219
+ daff-illuminate($base-contrast, $daff-gray, 2)
3220
+ );
3147
3221
  }
3148
3222
 
3149
3223
  &.daff-black {
3150
- background: $black;
3151
- color: daff-text-contrast($black);
3224
+ @include daff-stroked-card-theme-variant(daff-color($gray, 90));
3152
3225
  }
3153
3226
 
3154
3227
  &.daff-white {
3155
- background: $white;
3156
- color: daff-text-contrast($white);
3228
+ @include daff-stroked-card-theme-variant(daff-color($gray, 20));
3229
+ }
3230
+ }
3231
+
3232
+ a {
3233
+ &.daff-card {
3234
+ @include daff-linkable-basic-card-theme-variant(
3235
+ daff-illuminate($base, $daff-gray, 2),
3236
+ daff-illuminate($base, $daff-gray, 3),
3237
+ daff-color($gray)
3238
+ );
3239
+
3240
+ &.daff-primary {
3241
+ @include daff-linkable-basic-card-theme-variant(
3242
+ daff-color($primary, 70),
3243
+ daff-color($primary, 80),
3244
+ daff-color($primary)
3245
+ );
3246
+ }
3247
+
3248
+ &.daff-secondary {
3249
+ @include daff-linkable-basic-card-theme-variant(
3250
+ daff-color($secondary, 70),
3251
+ daff-color($secondary, 80),
3252
+ daff-color($secondary)
3253
+ );
3254
+ }
3255
+
3256
+ &.daff-tertiary {
3257
+ @include daff-linkable-basic-card-theme-variant(
3258
+ daff-color($tertiary, 70),
3259
+ daff-color($tertiary, 80),
3260
+ daff-color($tertiary)
3261
+ );
3262
+ }
3263
+
3264
+ &.daff-theme {
3265
+ @include daff-linkable-basic-card-theme-variant(
3266
+ daff-illuminate($base, $daff-gray, 1),
3267
+ daff-illuminate($base, $daff-gray, 2),
3268
+ daff-color($gray)
3269
+ );
3270
+ }
3271
+
3272
+ &.daff-theme-contrast {
3273
+ @include daff-linkable-basic-card-theme-variant(
3274
+ daff-illuminate($base-contrast, $daff-gray, 1),
3275
+ daff-illuminate($base-contrast, $daff-gray, 2),
3276
+ daff-color($gray)
3277
+ );
3278
+ }
3279
+
3280
+ &.daff-black {
3281
+ @include daff-linkable-basic-card-theme-variant(
3282
+ daff-color($gray, 100),
3283
+ daff-color($gray, 90),
3284
+ daff-color($gray)
3285
+ );
3286
+ }
3287
+
3288
+ &.daff-white {
3289
+ @include daff-linkable-basic-card-theme-variant(
3290
+ daff-color($gray, 10),
3291
+ daff-color($gray, 20),
3292
+ daff-color($gray)
3293
+ );
3294
+ }
3295
+ }
3296
+
3297
+ &.daff-raised-card {
3298
+ &:hover,
3299
+ &:focus,
3300
+ &:active {
3301
+ box-shadow: 0 16px 32px -4px rgba($black, 0.12),
3302
+ 0 8px 12px -2px rgba($black, 0.06);
3303
+ }
3157
3304
  }
3158
3305
  }
3159
3306
  }