@daffodil/design 0.82.0 → 0.84.0

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 (176) hide show
  1. package/accordion/src/accordion-theme.scss +28 -6
  2. package/article/src/article-theme.scss +118 -64
  3. package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
  4. package/atoms/form/error-message/error-message.component.d.ts +4 -1
  5. package/atoms/form/error-message/error-message.module.d.ts +4 -1
  6. package/atoms/form/form-field/form-field/form-field.component.d.ts +23 -29
  7. package/atoms/form/form-field/form-field-control.d.ts +18 -4
  8. package/atoms/form/form-field/form-field-state.d.ts +7 -0
  9. package/atoms/form/form-field/form-field.d.ts +10 -0
  10. package/atoms/form/form-field/form-field.module.d.ts +6 -4
  11. package/atoms/form/form-field/public_api.d.ts +2 -1
  12. package/atoms/form/form-label/form-label.directive.d.ts +4 -1
  13. package/atoms/form/form-label/form-label.module.d.ts +4 -1
  14. package/atoms/form/hint/hint.component.d.ts +9 -0
  15. package/atoms/form/hint/public_api.d.ts +1 -0
  16. package/atoms/form/input/input.component.d.ts +15 -19
  17. package/atoms/form/input/input.module.d.ts +4 -2
  18. package/atoms/form/native-select/native-select.component.d.ts +5 -1
  19. package/atoms/form/quantity-field/quantity-field.component.d.ts +2 -1
  20. package/atoms/form/quantity-field/quantity-field.module.d.ts +3 -3
  21. package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
  22. package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
  23. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
  24. package/breadcrumb/src/breadcrumb-theme.scss +12 -3
  25. package/button/button/button-base.directive.d.ts +6 -23
  26. package/button/src/button/basic/button-theme.scss +17 -40
  27. package/button/src/button/button-base.scss +32 -5
  28. package/button/src/button/flat/flat-theme.scss +4 -38
  29. package/button/src/button/icon/icon-theme.scss +157 -79
  30. package/button/src/button/raised/raised-theme.scss +2 -2
  31. package/button/src/button/stroked/stroked-theme.scss +7 -39
  32. package/button/src/button/underline/underline-theme.scss +4 -18
  33. package/callout/src/callout-theme.scss +27 -10
  34. package/card/card/basic/basic.component.d.ts +3 -0
  35. package/card/card/raised/raised.component.d.ts +3 -0
  36. package/card/card/stroked/stroked.component.d.ts +3 -0
  37. package/card/examples/card-theming/card-theming.component.d.ts +2 -1
  38. package/card/examples/public_api.d.ts +1 -1
  39. package/card/src/card/stroked/stroked-theme.scss +102 -13
  40. package/card/src/card-base-theme.scss +126 -55
  41. package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
  42. package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
  43. package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
  44. package/core/colorable/colorable.directive.d.ts +8 -0
  45. package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
  46. package/core/openable/openable.directive.d.ts +3 -0
  47. package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
  48. package/core/prefix-suffix/prefix.directive.d.ts +4 -1
  49. package/core/prefix-suffix/public_api.d.ts +0 -4
  50. package/core/prefix-suffix/suffix.directive.d.ts +4 -1
  51. package/core/sizable/sizable.directive.d.ts +8 -0
  52. package/core/statusable/statusable.directive.d.ts +2 -0
  53. package/core/text-alignable/text-alignable.directive.d.ts +6 -1
  54. package/fesm2022/daffodil-design-accordion.mjs +2 -2
  55. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-breadcrumb.mjs +5 -2
  57. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-button-examples.mjs +21 -17
  59. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-button.mjs +25 -32
  61. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-card-examples.mjs +14 -12
  63. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-card.mjs +9 -0
  65. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -0
  67. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-image.mjs +2 -2
  69. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-input-examples.mjs +45 -22
  71. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-media-gallery.mjs +57 -18
  73. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-menu.mjs +23 -10
  75. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-modal.mjs +33 -0
  77. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-navbar.mjs +2 -2
  79. package/fesm2022/daffodil-design-notification-examples.mjs +8 -12
  80. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-notification.mjs +32 -5
  82. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-paginator.mjs +2 -2
  84. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  85. package/fesm2022/daffodil-design-progress-bar-examples.mjs +2 -2
  86. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  87. package/fesm2022/daffodil-design-progress-bar.mjs +18 -3
  88. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-quantity-field-examples.mjs +9 -9
  90. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-sidebar.mjs +3 -8
  92. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-switch-examples.mjs +6 -6
  94. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-switch.mjs +35 -11
  96. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-tabs.mjs +27 -8
  98. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-toast-examples.mjs +6 -0
  100. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-toast.mjs +17 -18
  102. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-tree.mjs +21 -7
  104. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-youtube-player.mjs +3 -0
  106. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  107. package/fesm2022/daffodil-design.mjs +301 -224
  108. package/fesm2022/daffodil-design.mjs.map +1 -1
  109. package/hero/src/hero-theme.scss +27 -10
  110. package/input/examples/examples.d.ts +2 -2
  111. package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
  112. package/input/examples/input-hint/input-hint.component.d.ts +5 -0
  113. package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
  114. package/list/list/list.component.d.ts +1 -1
  115. package/list/src/list-theme.scss +16 -20
  116. package/media-gallery/README.md +3 -3
  117. package/media-gallery/media-gallery/media-gallery.component.d.ts +21 -5
  118. package/media-gallery/public_api.d.ts +3 -3
  119. package/media-gallery/thumbnail/thumbnail.directive.d.ts +23 -6
  120. package/menu/menu/menu.component.d.ts +15 -0
  121. package/menu/menu-activator/menu-activator.component.d.ts +3 -0
  122. package/menu/src/menu-theme.scss +29 -10
  123. package/modal/modal/modal.component.d.ts +21 -0
  124. package/modal/modal-actions/modal-actions.component.d.ts +3 -0
  125. package/modal/modal-close/modal-close.directive.d.ts +3 -0
  126. package/modal/modal-content/modal-content.component.d.ts +3 -0
  127. package/modal/modal-title/modal-title.directive.d.ts +3 -0
  128. package/navbar/src/navbar-theme.scss +8 -3
  129. package/notification/README.md +11 -12
  130. package/notification/notification/notification.component.d.ts +17 -2
  131. package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
  132. package/notification/notification-message/notification-message.directive.d.ts +3 -0
  133. package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
  134. package/notification/notification-title/notification-title.directive.d.ts +3 -0
  135. package/notification/notification.d.ts +2 -2
  136. package/notification/src/notification-theme.scss +62 -23
  137. package/package.json +1 -1
  138. package/paginator/src/paginator-theme.scss +22 -17
  139. package/progress-bar/README.md +2 -4
  140. package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
  141. package/progress-bar/progress-bar.component.d.ts +15 -3
  142. package/progress-bar/src/progress-bar-theme.scss +17 -8
  143. package/public_api.d.ts +1 -0
  144. package/scss/state/skeleton/_mixins.scss +19 -9
  145. package/scss/theme.scss +2 -0
  146. package/sidebar/public_api.d.ts +10 -11
  147. package/sidebar/sidebar.d.ts +1 -2
  148. package/sidebar/sidebar.module.d.ts +1 -2
  149. package/src/atoms/form/error-message/error-message-theme.scss +4 -1
  150. package/src/atoms/form/form-field/form-field/form-field-theme.scss +22 -10
  151. package/src/atoms/form/hint/hint-theme.scss +17 -0
  152. package/src/atoms/form/input/input-theme.scss +1 -5
  153. package/switch/src/switch-theme.scss +29 -10
  154. package/switch/switch/switch.component.d.ts +31 -6
  155. package/switch/switch.d.ts +2 -2
  156. package/tabs/src/tabs-theme.scss +31 -13
  157. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
  158. package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
  159. package/tabs/tabs/tabs.component.d.ts +3 -0
  160. package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
  161. package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
  162. package/toast/src/toast-theme.scss +80 -33
  163. package/toast/toast/toast-template.component.d.ts +3 -1
  164. package/toast/toast/toast.component.d.ts +3 -5
  165. package/tree/interfaces/tree-data.d.ts +15 -0
  166. package/tree/interfaces/tree-render-mode.d.ts +2 -2
  167. package/tree/src/tree-theme.scss +39 -13
  168. package/tree/tree/tree-notifier.service.d.ts +3 -3
  169. package/tree/tree/tree.component.d.ts +13 -3
  170. package/tree/tree-item/tree-item.directive.d.ts +6 -0
  171. package/youtube-player/youtube-player.component.d.ts +3 -0
  172. package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
  173. package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
  174. package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
  175. package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
  176. package/input/examples/basic-input/basic-input.component.d.ts +0 -5
@@ -35,16 +35,16 @@
35
35
 
36
36
  .daff-stroked-button {
37
37
  background: transparent;
38
- border: 1px solid theming.daff-illuminate($base, $neutral, 5);
38
+ border: 1px solid theming.daff-color($neutral, 50);
39
39
  color: currentColor;
40
40
 
41
41
  &::after {
42
- background: rgba(theming.daff-illuminate($base, $neutral, 5), 0.1);
42
+ background: rgba(theming.daff-color($neutral, 50), 0.1);
43
43
  }
44
44
 
45
45
  &:active {
46
46
  &::after {
47
- background: rgba(theming.daff-illuminate($base, $neutral, 5), 0.2);
47
+ background: rgba(theming.daff-color($neutral, 50), 0.2);
48
48
  }
49
49
  }
50
50
 
@@ -67,11 +67,11 @@
67
67
  );
68
68
  }
69
69
 
70
- &.daff-black {
70
+ &.daff-dark {
71
71
  @include daff-stroked-button-theme-variant($black);
72
72
  }
73
73
 
74
- &.daff-white {
74
+ &.daff-light {
75
75
  @include daff-stroked-button-theme-variant($white);
76
76
  }
77
77
 
@@ -83,22 +83,6 @@
83
83
  @include daff-stroked-button-theme-variant($base-contrast);
84
84
  }
85
85
 
86
- &[disabled],
87
- &.disabled {
88
- background-color: transparent;
89
- border-color: theming.daff-illuminate($base, $neutral, 3);
90
- color: theming.daff-illuminate($base, $neutral, 5);
91
-
92
- &:hover {
93
- color: theming.daff-illuminate($base, $neutral, 5);
94
-
95
- &::after {
96
- background-color: transparent;
97
- opacity: 0;
98
- }
99
- }
100
- }
101
-
102
86
  &.daff-warn {
103
87
  @include daff-stroked-button-theme-variant(theming.daff-color($warn));
104
88
  }
@@ -135,11 +119,11 @@
135
119
  );
136
120
  }
137
121
 
138
- &.daff-black {
122
+ &.daff-dark {
139
123
  @include daff-stroked-button-theme-variant($black);
140
124
  }
141
125
 
142
- &.daff-white {
126
+ &.daff-light {
143
127
  @include daff-stroked-button-theme-variant($white);
144
128
  }
145
129
 
@@ -151,22 +135,6 @@
151
135
  @include daff-stroked-button-theme-variant($base-contrast);
152
136
  }
153
137
 
154
- &[disabled],
155
- &.disabled {
156
- background-color: transparent;
157
- border-color: theming.daff-illuminate($base, $neutral, 3);
158
- color: theming.daff-illuminate($base, $neutral, 5);
159
-
160
- &:hover {
161
- color: theming.daff-illuminate($base, $neutral, 5);
162
-
163
- &::after {
164
- background-color: transparent;
165
- opacity: 0;
166
- }
167
- }
168
- }
169
-
170
138
  &.daff-warn {
171
139
  @include daff-stroked-button-theme-variant(
172
140
  theming.daff-color($warn, 40)
@@ -49,11 +49,11 @@
49
49
  );
50
50
  }
51
51
 
52
- &.daff-black {
52
+ &.daff-dark {
53
53
  @include daff-underline-button-theme-variant($black);
54
54
  }
55
55
 
56
- &.daff-white {
56
+ &.daff-light {
57
57
  @include daff-underline-button-theme-variant($white);
58
58
  }
59
59
 
@@ -65,13 +65,6 @@
65
65
  @include daff-underline-button-theme-variant($base-contrast);
66
66
  }
67
67
 
68
- &[disabled],
69
- &.disabled {
70
- @include daff-underline-button-theme-variant(
71
- theming.daff-illuminate($base, $neutral, 4)
72
- );
73
- }
74
-
75
68
  &.daff-warn {
76
69
  @include daff-underline-button-theme-variant(theming.daff-color($warn));
77
70
  }
@@ -112,11 +105,11 @@
112
105
  );
113
106
  }
114
107
 
115
- &.daff-black {
108
+ &.daff-dark {
116
109
  @include daff-underline-button-theme-variant($black);
117
110
  }
118
111
 
119
- &.daff-white {
112
+ &.daff-light {
120
113
  @include daff-underline-button-theme-variant($white);
121
114
  }
122
115
 
@@ -128,13 +121,6 @@
128
121
  @include daff-underline-button-theme-variant($base-contrast);
129
122
  }
130
123
 
131
- &[disabled],
132
- &.disabled {
133
- @include daff-underline-button-theme-variant(
134
- theming.daff-illuminate($base, $neutral, 4)
135
- );
136
- }
137
-
138
124
  &.daff-warn {
139
125
  @include daff-underline-button-theme-variant(
140
126
  theming.daff-color($warn, 40)
@@ -16,22 +16,39 @@
16
16
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
17
17
  $white: core.daff-map-get($theme, 'core', 'white');
18
18
  $black: core.daff-map-get($theme, 'core', 'black');
19
+ $type: core.daff-map-get($theme, 'core', 'type');
19
20
 
20
21
  .daff-callout {
21
- @include daff-callout-theme-variant(
22
- theming.daff-illuminate($base, $neutral, 1)
23
- );
22
+ @include theming.light($type) {
23
+ @include daff-callout-theme-variant(theming.daff-color($neutral, 10));
24
24
 
25
- &.daff-primary {
26
- @include daff-callout-theme-variant(theming.daff-color($primary));
27
- }
25
+ &.daff-primary {
26
+ @include daff-callout-theme-variant(theming.daff-color($primary));
27
+ }
28
+
29
+ &.daff-secondary {
30
+ @include daff-callout-theme-variant(theming.daff-color($secondary));
31
+ }
28
32
 
29
- &.daff-secondary {
30
- @include daff-callout-theme-variant(theming.daff-color($secondary));
33
+ &.daff-tertiary {
34
+ @include daff-callout-theme-variant(theming.daff-color($tertiary));
35
+ }
31
36
  }
32
37
 
33
- &.daff-tertiary {
34
- @include daff-callout-theme-variant(theming.daff-color($tertiary));
38
+ @include theming.dark($type) {
39
+ @include daff-callout-theme-variant(theming.daff-color($neutral, 90));
40
+
41
+ &.daff-primary {
42
+ @include daff-callout-theme-variant(theming.daff-color($primary, 60));
43
+ }
44
+
45
+ &.daff-secondary {
46
+ @include daff-callout-theme-variant(theming.daff-color($secondary, 60));
47
+ }
48
+
49
+ &.daff-tertiary {
50
+ @include daff-callout-theme-variant(theming.daff-color($tertiary, 60));
51
+ }
35
52
  }
36
53
 
37
54
  &.daff-theme {
@@ -1,6 +1,9 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DaffCardComponent extends DaffCardBaseDirective {
4
+ /**
5
+ * @docs-private
6
+ */
4
7
  class: boolean;
5
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardComponent, never>;
6
9
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffCardComponent, "daff-card,a[daff-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
@@ -1,6 +1,9 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DaffRaisedCardComponent extends DaffCardBaseDirective {
4
+ /**
5
+ * @docs-private
6
+ */
4
7
  class: boolean;
5
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedCardComponent, never>;
6
9
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedCardComponent, "daff-raised-card,a[daff-raised-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
@@ -1,6 +1,9 @@
1
1
  import { DaffCardBaseDirective } from '../../card-base.directive';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DaffStrokedCardComponent extends DaffCardBaseDirective {
4
+ /**
5
+ * @docs-private
6
+ */
4
7
  class: boolean;
5
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedCardComponent, never>;
6
9
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedCardComponent, "daff-stroked-card,a[daff-stroked-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
@@ -1,7 +1,8 @@
1
1
  import { UntypedFormControl } from '@angular/forms';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class CardThemingComponent {
4
- colorControl: UntypedFormControl;
4
+ cardControl: UntypedFormControl;
5
+ strokedCardControl: UntypedFormControl;
5
6
  options: {
6
7
  value: string;
7
8
  label: string;
@@ -4,5 +4,5 @@ import { CardThemingComponent } from './card-theming/card-theming.component';
4
4
  import { LinkableCardComponent } from './linkable-card/linkable-card.component';
5
5
  import { RaisedCardComponent } from './raised-card/raised-card.component';
6
6
  import { StrokedCardComponent } from './stroked-card/stroked-card.component';
7
- export declare const CARD_EXAMPLES: (typeof BasicCardComponent | typeof CardThemingComponent | typeof LinkableCardComponent)[];
7
+ export declare const CARD_EXAMPLES: (typeof BasicCardComponent | typeof CardThemingComponent | typeof LinkableCardComponent | typeof RaisedCardComponent)[];
8
8
  export { BasicCardComponent, CardThemingComponent, LinkableCardComponent, RaisedCardComponent, StrokedCardComponent, CardOrientationComponent, };
@@ -2,6 +2,28 @@
2
2
  @use '../../../../scss/core';
3
3
  @use '../../../../scss/theming';
4
4
 
5
+ @mixin stroked-card-theme-variant($color) {
6
+ border: 1px solid $color;
7
+ color: $color;
8
+ }
9
+
10
+ @mixin linkable-stroked-card-theme-variant($hover-color, $opacity: 0.08) {
11
+ .daff-card__wrapper {
12
+ &::after {
13
+ background: rgba($hover-color, $opacity);
14
+ }
15
+ }
16
+
17
+ &:hover,
18
+ &:focus {
19
+ .daff-card__wrapper {
20
+ &::after {
21
+ opacity: 1;
22
+ }
23
+ }
24
+ }
25
+ }
26
+
5
27
  @mixin daff-stroked-card-theme($theme) {
6
28
  $primary: core.daff-map-get($theme, primary);
7
29
  $secondary: core.daff-map-get($theme, secondary);
@@ -11,36 +33,103 @@
11
33
  $white: core.daff-map-get($theme, 'core', 'white');
12
34
  $black: core.daff-map-get($theme, 'core', 'black');
13
35
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
36
+ $type: core.daff-map-get($theme, 'core', 'type');
14
37
 
15
38
  .daff-stroked-card {
16
- border: 1px solid theming.daff-illuminate($base, $neutral, 2);
17
-
18
39
  &.daff-primary {
19
- border: 1px solid theming.daff-illuminate($base-contrast, $primary, 3);
40
+ @include stroked-card-theme-variant(theming.daff-color($primary));
20
41
  }
21
42
 
22
43
  &.daff-secondary {
23
- border: 1px solid theming.daff-illuminate($base-contrast, $secondary, 3);
44
+ @include stroked-card-theme-variant(theming.daff-color($secondary));
24
45
  }
25
46
 
26
47
  &.daff-tertiary {
27
- border: 1px solid theming.daff-illuminate($base-contrast, $tertiary, 3);
48
+ @include stroked-card-theme-variant(theming.daff-color($tertiary));
28
49
  }
29
50
 
30
- &.daff-theme {
31
- border: 1px solid theming.daff-illuminate($base, $neutral, 2);
51
+ &.daff-dark {
52
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 90));
32
53
  }
33
54
 
34
- &.daff-theme-contrast {
35
- border: 1px solid theming.daff-illuminate($base-contrast, $neutral, 2);
55
+ &.daff-light {
56
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 20));
36
57
  }
37
58
 
38
- &.daff-black {
39
- border: 1px solid theming.daff-color($neutral, 90);
59
+ @include theming.light($type) {
60
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 20));
61
+ color: $base-contrast;
62
+
63
+ &.daff-theme {
64
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 20));
65
+ color: $base-contrast;
66
+ }
67
+
68
+ &.daff-theme-contrast {
69
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 90));
70
+ }
40
71
  }
41
72
 
42
- &.daff-white {
43
- border: 1px solid theming.daff-color($neutral, 20);
73
+ @include theming.dark($type) {
74
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 90));
75
+ color: $base-contrast;
76
+
77
+ &.daff-theme {
78
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 90));
79
+ color: $base-contrast;
80
+ }
81
+
82
+ &.daff-theme-contrast {
83
+ @include stroked-card-theme-variant(theming.daff-color($neutral, 20));
84
+ }
85
+ }
86
+ }
87
+
88
+ a {
89
+ &.daff-stroked-card {
90
+ @include theming.light($type) {
91
+ @include linkable-stroked-card-theme-variant(
92
+ theming.daff-color($neutral, 20),
93
+ 0.2
94
+ );
95
+ }
96
+
97
+ @include theming.dark($type) {
98
+ @include linkable-stroked-card-theme-variant(
99
+ theming.daff-color($neutral, 90),
100
+ 0.2
101
+ );
102
+ }
103
+
104
+ &.daff-primary {
105
+ @include linkable-stroked-card-theme-variant(
106
+ theming.daff-color($primary)
107
+ );
108
+ }
109
+
110
+ &.daff-secondary {
111
+ @include linkable-stroked-card-theme-variant(
112
+ theming.daff-color($secondary)
113
+ );
114
+ }
115
+
116
+ &.daff-tertiary {
117
+ @include linkable-stroked-card-theme-variant(
118
+ theming.daff-color($tertiary)
119
+ );
120
+ }
121
+
122
+ &.daff-dark {
123
+ @include linkable-stroked-card-theme-variant(
124
+ theming.daff-color($neutral, 90)
125
+ );
126
+ }
127
+
128
+ &.daff-light {
129
+ @include linkable-stroked-card-theme-variant(
130
+ theming.daff-color($neutral, 20)
131
+ );
132
+ }
44
133
  }
45
134
  }
46
135
  }
@@ -35,24 +35,46 @@
35
35
  $white: core.daff-map-get($theme, 'core', 'white');
36
36
  $black: core.daff-map-get($theme, 'core', 'black');
37
37
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
38
+ $type: core.daff-map-get($theme, 'core', 'type');
38
39
 
39
40
  .daff-card,
40
- .daff-raised-card,
41
- .daff-stroked-card {
42
- @include daff-basic-card-theme-variant(
43
- theming.daff-illuminate($base, $neutral, 1)
44
- );
45
-
46
- &.daff-primary {
47
- @include daff-basic-card-theme-variant(theming.daff-color($primary));
48
- }
41
+ .daff-raised-card {
42
+ @include theming.light($type) {
43
+ @include daff-basic-card-theme-variant(theming.daff-color($neutral, 10));
44
+
45
+ &.daff-primary {
46
+ @include daff-basic-card-theme-variant(theming.daff-color($primary));
47
+ }
49
48
 
50
- &.daff-secondary {
51
- @include daff-basic-card-theme-variant(theming.daff-color($secondary));
49
+ &.daff-secondary {
50
+ @include daff-basic-card-theme-variant(theming.daff-color($secondary));
51
+ }
52
+
53
+ &.daff-tertiary {
54
+ @include daff-basic-card-theme-variant(theming.daff-color($tertiary));
55
+ }
52
56
  }
53
57
 
54
- &.daff-tertiary {
55
- @include daff-basic-card-theme-variant(theming.daff-color($tertiary));
58
+ @include theming.dark($type) {
59
+ @include daff-basic-card-theme-variant(theming.daff-color($neutral, 90));
60
+
61
+ &.daff-primary {
62
+ @include daff-basic-card-theme-variant(
63
+ theming.daff-color($primary, 60)
64
+ );
65
+ }
66
+
67
+ &.daff-secondary {
68
+ @include daff-basic-card-theme-variant(
69
+ theming.daff-color($secondary, 60)
70
+ );
71
+ }
72
+
73
+ &.daff-tertiary {
74
+ @include daff-basic-card-theme-variant(
75
+ theming.daff-color($tertiary, 60)
76
+ );
77
+ }
56
78
  }
57
79
 
58
80
  &.daff-theme {
@@ -63,63 +85,112 @@
63
85
  @include daff-basic-card-theme-variant($base-contrast);
64
86
  }
65
87
 
66
- &.daff-black {
67
- @include daff-basic-card-theme-variant($black);
88
+ &.daff-dark {
89
+ @include daff-basic-card-theme-variant(theming.daff-color($neutral, 90));
68
90
  }
69
91
 
70
- &.daff-white {
71
- @include daff-basic-card-theme-variant($white);
92
+ &.daff-light {
93
+ @include daff-basic-card-theme-variant(theming.daff-color($neutral, 10));
72
94
  }
73
95
  }
74
96
 
75
97
  a {
76
98
  &.daff-card,
77
- &.daff-raised-card,
78
- &.daff-stroked-card {
79
- @include daff-linkable-card-theme-variant(
80
- theming.daff-illuminate($base, $neutral, 2)
81
- );
82
-
83
- &.daff-primary {
99
+ &.daff-raised-card {
100
+ @include theming.light($type) {
84
101
  @include daff-linkable-card-theme-variant(
85
- theming.daff-color($primary, 70)
102
+ theming.daff-color($neutral, 20)
86
103
  );
87
- }
88
104
 
89
- &.daff-secondary {
90
- @include daff-linkable-card-theme-variant(
91
- theming.daff-color($secondary, 70)
92
- );
105
+ &.daff-primary {
106
+ @include daff-linkable-card-theme-variant(
107
+ theming.daff-color($primary, 70)
108
+ );
109
+ }
110
+
111
+ &.daff-secondary {
112
+ @include daff-linkable-card-theme-variant(
113
+ theming.daff-color($secondary, 70)
114
+ );
115
+ }
116
+
117
+ &.daff-tertiary {
118
+ @include daff-linkable-card-theme-variant(
119
+ theming.daff-color($tertiary, 70)
120
+ );
121
+ }
122
+
123
+ &.daff-theme {
124
+ @include daff-linkable-card-theme-variant(
125
+ theming.daff-color($neutral, 10)
126
+ );
127
+ }
128
+
129
+ &.daff-theme-contrast {
130
+ @include daff-linkable-card-theme-variant(
131
+ theming.daff-color($neutral, 100)
132
+ );
133
+ }
134
+
135
+ &.daff-dark {
136
+ @include daff-linkable-card-theme-variant(
137
+ theming.daff-color($neutral, 90)
138
+ );
139
+ }
140
+
141
+ &.daff-light {
142
+ @include daff-linkable-card-theme-variant(
143
+ theming.daff-color($neutral, 10)
144
+ );
145
+ }
93
146
  }
94
147
 
95
- &.daff-tertiary {
148
+ @include theming.dark($type) {
96
149
  @include daff-linkable-card-theme-variant(
97
- theming.daff-color($tertiary, 70)
150
+ theming.daff-color($neutral, 80)
98
151
  );
99
- }
100
-
101
- &.daff-theme {
102
- @include daff-linkable-card-theme-variant(
103
- theming.daff-illuminate($base, $neutral, 1)
104
- );
105
- }
106
152
 
107
- &.daff-theme-contrast {
108
- @include daff-linkable-card-theme-variant(
109
- theming.daff-illuminate($base-contrast, $neutral, 1)
110
- );
111
- }
112
-
113
- &.daff-black {
114
- @include daff-linkable-card-theme-variant(
115
- theming.daff-color($neutral, 100)
116
- );
117
- }
118
-
119
- &.daff-white {
120
- @include daff-linkable-card-theme-variant(
121
- theming.daff-color($neutral, 10)
122
- );
153
+ &.daff-primary {
154
+ @include daff-linkable-card-theme-variant(
155
+ theming.daff-color($primary, 70)
156
+ );
157
+ }
158
+
159
+ &.daff-secondary {
160
+ @include daff-linkable-card-theme-variant(
161
+ theming.daff-color($secondary, 70)
162
+ );
163
+ }
164
+
165
+ &.daff-tertiary {
166
+ @include daff-linkable-card-theme-variant(
167
+ theming.daff-color($tertiary, 70)
168
+ );
169
+ }
170
+
171
+ &.daff-theme {
172
+ @include daff-linkable-card-theme-variant(
173
+ theming.daff-color($neutral, 90)
174
+ );
175
+ }
176
+
177
+ &.daff-theme-contrast {
178
+ @include daff-linkable-card-theme-variant(
179
+ theming.daff-color($neutral, 10)
180
+ );
181
+ }
182
+
183
+ &.daff-dark {
184
+ @include daff-linkable-card-theme-variant(
185
+ theming.daff-color($neutral, 100)
186
+ );
187
+ }
188
+
189
+ &.daff-light {
190
+ @include daff-linkable-card-theme-variant(
191
+ theming.daff-color($neutral, 10)
192
+ );
193
+ }
123
194
  }
124
195
  }
125
196
  }
@@ -3,6 +3,9 @@ import { UntypedFormControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BasicCheckboxComponent implements OnInit {
5
5
  checkboxExample: UntypedFormControl;
6
+ /**
7
+ * @docs-private
8
+ */
6
9
  ngOnInit(): void;
7
10
  setFalse(): void;
8
11
  setTrue(): void;
@@ -5,6 +5,9 @@ export declare class CheckboxSetComponent implements OnInit {
5
5
  private checkboxSet;
6
6
  checkboxArray: UntypedFormArray;
7
7
  selectedValues: any[];
8
+ /**
9
+ * @docs-private
10
+ */
8
11
  ngOnInit(): void;
9
12
  displayList(): void;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxSetComponent, never>;
@@ -24,6 +24,9 @@ import * as i0 from "@angular/core";
24
24
  * This directive will apply the `daff-ae` class to the component, ensuring that it is encapsulated from the article's styles.
25
25
  */
26
26
  export declare class DaffArticleEncapsulatedDirective {
27
+ /**
28
+ * @docs-private
29
+ */
27
30
  class: boolean;
28
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleEncapsulatedDirective, never>;
29
32
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffArticleEncapsulatedDirective, "[daffArticleEncapsulated]", never, {}, {}, never, never, true, never>;
@@ -82,13 +82,21 @@ export declare class DaffColorableDirective implements DaffColorable, OnChanges,
82
82
  };
83
83
  /**
84
84
  * Sets the color on a component.
85
+ *
86
+ * Default options are: `primary`, `secondary`, `tertiary`, `light`, `dark`, `theme`, and `theme-contrast`.
85
87
  */
86
88
  color: DaffPalette;
87
89
  /**
88
90
  * Sets a default color.
89
91
  */
90
92
  defaultColor: DaffPalette;
93
+ /**
94
+ * @docs-private
95
+ */
91
96
  ngOnChanges(changes: SimpleChanges): void;
97
+ /**
98
+ * @docs-private
99
+ */
92
100
  ngOnInit(): void;
93
101
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffColorableDirective, never>;
94
102
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffColorableDirective, "[daffColorable]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
@@ -58,6 +58,9 @@ import * as i0 from "@angular/core";
58
58
  * This directive will apply the `daff-manage-container-layout` class to your component, ensuring that the styles set on `:host` are passed down to the container.
59
59
  */
60
60
  export declare class DaffManageContainerLayoutDirective {
61
+ /**
62
+ * @docs-private
63
+ */
61
64
  class: boolean;
62
65
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffManageContainerLayoutDirective, never>;
63
66
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffManageContainerLayoutDirective, "[daffManageContainerLayout]", never, {}, {}, never, never, true, never>;