@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
@@ -13,6 +13,9 @@ export declare class DaffBreadcrumbComponent implements AfterContentInit {
13
13
  * @docs-private
14
14
  */
15
15
  breadcrumbItems: QueryList<DaffBreadcrumbItemDirective>;
16
+ /**
17
+ * @docs-private
18
+ */
16
19
  ngAfterContentInit(): void;
17
20
  private updateActiveState;
18
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbComponent, never>;
@@ -3,11 +3,20 @@
3
3
  @use '../../scss/theming';
4
4
 
5
5
  @mixin daff-breadcrumb-theme($theme) {
6
- $base: core.daff-map-get($theme, 'core', 'base');
7
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
8
6
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
7
+ $type: core.daff-map-get($theme, 'core', 'type');
9
8
 
10
9
  .daff-breadcrumb__item {
11
- color: theming.daff-illuminate($base-contrast, $neutral, 4);
10
+ a {
11
+ @include theming.light($type) {
12
+ color: theming.daff-color($neutral, 80);
13
+ text-decoration-color: theming.daff-color($neutral, 80);
14
+ }
15
+
16
+ @include theming.dark($type) {
17
+ color: theming.daff-color($neutral, 30);
18
+ text-decoration-color: theming.daff-color($neutral, 30);
19
+ }
20
+ }
12
21
  }
13
22
  }
@@ -1,29 +1,13 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
2
- import { DaffPrefixable, DaffSuffixable } from '@daffodil/design';
1
+ import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
3
2
  import { DaffButtonSizableDirective } from './button-sizable.directive';
4
3
  import * as i0 from "@angular/core";
5
4
  import * as i1 from "@daffodil/design";
6
5
  import * as i2 from "./button-sizable.directive";
7
- /**
8
- * An _elementRef and an instance of renderer2 are needed for the button mixins
9
- */
10
- declare class DaffButtonBase {
11
- _elementRef: ElementRef;
12
- _renderer: Renderer2;
13
- constructor(_elementRef: ElementRef, _renderer: Renderer2);
14
- }
15
- declare const _daffButtonBase: (new (...args: any[]) => {
16
- [x: string]: any;
17
- _prefix: import("@daffodil/design").DaffPrefixDirective;
18
- }) & (new (...args: any[]) => {
19
- [x: string]: any;
20
- _suffix: import("@daffodil/design").DaffSuffixDirective;
21
- }) & typeof DaffButtonBase;
22
- export declare class DaffButtonBaseDirective extends _daffButtonBase implements DaffPrefixable, DaffSuffixable {
23
- private elementRef;
24
- private renderer;
6
+ export declare class DaffButtonBaseDirective {
25
7
  private size;
26
- constructor(elementRef: ElementRef, renderer: Renderer2, size: DaffButtonSizableDirective);
8
+ _prefix: DaffPrefixDirective;
9
+ _suffix: DaffSuffixDirective;
10
+ constructor(size: DaffButtonSizableDirective);
27
11
  /**
28
12
  * @docs-private
29
13
  */
@@ -54,6 +38,5 @@ export declare class DaffButtonBaseDirective extends _daffButtonBase implements
54
38
  */
55
39
  get tabIndexAttribute(): number;
56
40
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
57
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
58
42
  }
59
- export {};
@@ -45,9 +45,9 @@
45
45
  .daff-button {
46
46
  @include theming.light($type) {
47
47
  @include daff-button-theme-variant(
48
+ theming.daff-color($neutral, 10),
48
49
  theming.daff-color($neutral, 20),
49
- theming.daff-color($neutral, 30),
50
- theming.daff-color($neutral, 40)
50
+ theming.daff-color($neutral, 30)
51
51
  );
52
52
 
53
53
  &.daff-primary {
@@ -74,17 +74,17 @@
74
74
  );
75
75
  }
76
76
 
77
- &.daff-black {
77
+ &.daff-dark {
78
78
  @include daff-button-theme-variant(
79
- $black,
79
+ theming.daff-color($neutral, 100),
80
80
  theming.daff-color($neutral, 90),
81
81
  theming.daff-color($neutral, 80)
82
82
  );
83
83
  }
84
84
 
85
- &.daff-white {
85
+ &.daff-light {
86
86
  @include daff-button-theme-variant(
87
- $white,
87
+ theming.daff-color($neutral, 10),
88
88
  theming.daff-color($neutral, 20),
89
89
  theming.daff-color($neutral, 30)
90
90
  );
@@ -93,31 +93,17 @@
93
93
  &.daff-theme {
94
94
  @include daff-button-theme-variant(
95
95
  $base,
96
- theming.daff-illuminate($base, $neutral, 2),
97
- theming.daff-illuminate($base, $neutral, 3)
96
+ theming.daff-color($neutral, 20),
97
+ theming.daff-color($neutral, 30)
98
98
  );
99
99
  }
100
100
 
101
101
  &.daff-theme-contrast {
102
102
  @include daff-button-theme-variant(
103
103
  $base-contrast,
104
- theming.daff-illuminate($base-contrast, $neutral, 2),
105
- theming.daff-illuminate($base-contrast, $neutral, 3)
106
- );
107
- }
108
-
109
- &[disabled],
110
- &.disabled {
111
- @include daff-button-theme-variant(
112
- theming.daff-illuminate($base, $neutral, 3),
113
- theming.daff-illuminate($base, $neutral, 3),
114
- theming.daff-illuminate($base, $neutral, 3),
104
+ theming.daff-color($neutral, 90),
105
+ theming.daff-color($neutral, 80)
115
106
  );
116
- color: theming.daff-illuminate($base, $neutral, 5);
117
-
118
- &:hover {
119
- color: theming.daff-illuminate($base, $neutral, 5);
120
- }
121
107
  }
122
108
 
123
109
  &.daff-warn {
@@ -176,15 +162,15 @@
176
162
  );
177
163
  }
178
164
 
179
- &.daff-black {
165
+ &.daff-dark {
180
166
  @include daff-button-theme-variant(
181
- $black,
167
+ theming.daff-color($neutral, 100),
182
168
  theming.daff-color($neutral, 90),
183
169
  theming.daff-color($neutral, 80)
184
170
  );
185
171
  }
186
172
 
187
- &.daff-white {
173
+ &.daff-light {
188
174
  @include daff-button-theme-variant(
189
175
  $white,
190
176
  theming.daff-color($neutral, 20),
@@ -195,25 +181,16 @@
195
181
  &.daff-theme {
196
182
  @include daff-button-theme-variant(
197
183
  $base,
198
- theming.daff-illuminate($base, $neutral, 2),
199
- theming.daff-illuminate($base, $neutral, 3)
184
+ theming.daff-color($neutral, 90),
185
+ theming.daff-color($neutral, 80)
200
186
  );
201
187
  }
202
188
 
203
189
  &.daff-theme-contrast {
204
190
  @include daff-button-theme-variant(
205
191
  $base-contrast,
206
- theming.daff-illuminate($base-contrast, $neutral, 2),
207
- theming.daff-illuminate($base-contrast, $neutral, 3)
208
- );
209
- }
210
-
211
- &[disabled],
212
- &.disabled {
213
- @include daff-button-theme-variant(
214
- theming.daff-illuminate($base, $neutral, 3),
215
- theming.daff-illuminate($base, $neutral, 3),
216
- theming.daff-illuminate($base, $neutral, 3)
192
+ theming.daff-color($neutral, 20),
193
+ theming.daff-color($neutral, 30)
217
194
  );
218
195
  }
219
196
 
@@ -1,13 +1,23 @@
1
1
  @use '../../../scss/interactions';
2
2
  @use '../../../scss/typography' as t;
3
3
 
4
+ // stylelint-disable selector-class-pattern
4
5
  @mixin daff-button-elevated {
5
- &.elevated { /* stylelint-disable-line selector-class-pattern */
6
- box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5), 0 4px 8px 0 rgba(0, 0, 0, 0.05);
6
+ &.elevated {
7
+ box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
8
+ 0 4px 8px 0 rgba(0, 0, 0, 0.05);
7
9
 
8
- &:hover { /* stylelint-disable-line selector-class-pattern */
10
+ &:hover {
9
11
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
10
12
  }
13
+
14
+ &[disabled],
15
+ &.disabled {
16
+ &:hover {
17
+ box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
18
+ 0 4px 8px 0 rgba(0, 0, 0, 0.05);
19
+ }
20
+ }
11
21
  }
12
22
  }
13
23
 
@@ -28,16 +38,19 @@
28
38
  &[disabled],
29
39
  &.disabled {
30
40
  cursor: not-allowed;
41
+ opacity: 0.5;
31
42
  }
32
43
 
33
44
  .daff-button__content,
34
45
  .daff-prefix,
35
46
  .daff-suffix {
36
- z-index: 2;
47
+ z-index: 1;
37
48
  }
38
49
 
39
50
  .daff-button__loading {
40
- max-width: 1.5rem;
51
+ > * {
52
+ width: 100%;
53
+ }
41
54
  }
42
55
 
43
56
  .daff-button__content {
@@ -54,7 +67,9 @@
54
67
  width: 100%;
55
68
  height: 100%;
56
69
  opacity: 0;
70
+ pointer-events: none;
57
71
  transition: opacity 300ms;
72
+ z-index: 0;
58
73
  }
59
74
 
60
75
  &:hover,
@@ -72,6 +87,10 @@
72
87
  line-height: 2rem;
73
88
  height: 2rem;
74
89
  padding: 0 1rem;
90
+
91
+ .daff-button__loading {
92
+ width: 1rem;
93
+ }
75
94
  }
76
95
 
77
96
  &.daff-md {
@@ -79,6 +98,10 @@
79
98
  line-height: 3rem;
80
99
  height: 3rem;
81
100
  padding: 0 1.5rem;
101
+
102
+ .daff-button__loading {
103
+ width: 1.5rem;
104
+ }
82
105
  }
83
106
 
84
107
  &.daff-lg {
@@ -86,5 +109,9 @@
86
109
  line-height: 3.5rem;
87
110
  height: 3.5rem;
88
111
  padding: 0 1.5rem;
112
+
113
+ .daff-button__loading {
114
+ width: 2rem;
115
+ }
89
116
  }
90
117
  }
@@ -55,13 +55,13 @@
55
55
  );
56
56
  }
57
57
 
58
- &.daff-black {
58
+ &.daff-dark {
59
59
  @include daff-flat-button-theme-variant(
60
60
  $black,
61
61
  );
62
62
  }
63
63
 
64
- &.daff-white {
64
+ &.daff-light {
65
65
  @include daff-flat-button-theme-variant(
66
66
  $white,
67
67
  );
@@ -79,23 +79,6 @@
79
79
  );
80
80
  }
81
81
 
82
- &[disabled],
83
- &.disabled {
84
- color: theming.daff-illuminate($base, $neutral, 5);
85
-
86
- &::after {
87
- background: transparent;
88
- }
89
-
90
- &:hover,
91
- &:focus,
92
- &:active {
93
- &::after {
94
- background: transparent;
95
- }
96
- }
97
- }
98
-
99
82
  &.daff-warn {
100
83
  @include daff-flat-button-theme-variant(
101
84
  theming.daff-color($warn)
@@ -138,13 +121,13 @@
138
121
  );
139
122
  }
140
123
 
141
- &.daff-black {
124
+ &.daff-dark {
142
125
  @include daff-flat-button-theme-variant(
143
126
  $black,
144
127
  );
145
128
  }
146
129
 
147
- &.daff-white {
130
+ &.daff-light {
148
131
  @include daff-flat-button-theme-variant(
149
132
  $white,
150
133
  );
@@ -162,23 +145,6 @@
162
145
  );
163
146
  }
164
147
 
165
- &[disabled],
166
- &.disabled {
167
- color: theming.daff-illuminate($base, $neutral, 5);
168
-
169
- &::after {
170
- background: transparent;
171
- }
172
-
173
- &:hover,
174
- &:focus,
175
- &:active {
176
- &::after {
177
- background: transparent;
178
- }
179
- }
180
- }
181
-
182
148
  &.daff-warn {
183
149
  @include daff-flat-button-theme-variant(
184
150
  theming.daff-color($warn, 40)
@@ -36,105 +36,183 @@
36
36
  $white: core.daff-map-get($theme, 'core', 'white');
37
37
  $black: core.daff-map-get($theme, 'core', 'black');
38
38
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
39
+ $type: core.daff-map-get($theme, 'core', 'type');
39
40
 
40
41
  .daff-icon-button {
41
- @include daff-icon-button-theme-variant(
42
- theming.daff-illuminate($base, $neutral, 5),
43
- theming.daff-illuminate($base, $neutral, 6),
44
- theming.daff-illuminate($base, $neutral, 7)
45
- );
46
-
47
- &.daff-primary {
42
+ @include theming.light($type) {
48
43
  @include daff-icon-button-theme-variant(
49
- theming.daff-color($primary),
50
- theming.daff-color($primary, 70),
51
- theming.daff-color($primary, 80)
44
+ theming.daff-color($neutral, 50),
45
+ theming.daff-color($neutral, 60),
46
+ theming.daff-color($neutral, 70)
52
47
  );
53
- }
54
48
 
55
- &.daff-secondary {
56
- @include daff-icon-button-theme-variant(
57
- theming.daff-color($secondary),
58
- theming.daff-color($secondary, 70),
59
- theming.daff-color($secondary, 80)
60
- );
61
- }
49
+ &.daff-primary {
50
+ @include daff-icon-button-theme-variant(
51
+ theming.daff-color($primary),
52
+ theming.daff-color($primary, 70),
53
+ theming.daff-color($primary, 80)
54
+ );
55
+ }
62
56
 
63
- &.daff-tertiary {
64
- @include daff-icon-button-theme-variant(
65
- theming.daff-color($tertiary),
66
- theming.daff-color($tertiary, 70),
67
- theming.daff-color($tertiary, 80)
68
- );
69
- }
57
+ &.daff-secondary {
58
+ @include daff-icon-button-theme-variant(
59
+ theming.daff-color($secondary),
60
+ theming.daff-color($secondary, 70),
61
+ theming.daff-color($secondary, 80)
62
+ );
63
+ }
70
64
 
71
- &.daff-black {
72
- @include daff-icon-button-theme-variant(
73
- $black,
74
- theming.daff-color($neutral, 100),
75
- theming.daff-color($neutral, 80)
76
- );
65
+ &.daff-tertiary {
66
+ @include daff-icon-button-theme-variant(
67
+ theming.daff-color($tertiary),
68
+ theming.daff-color($tertiary, 70),
69
+ theming.daff-color($tertiary, 80)
70
+ );
71
+ }
72
+
73
+ &.daff-dark {
74
+ @include daff-icon-button-theme-variant(
75
+ $black,
76
+ theming.daff-color($neutral, 90),
77
+ theming.daff-color($neutral, 80)
78
+ );
79
+ }
80
+
81
+ &.daff-light {
82
+ @include daff-icon-button-theme-variant(
83
+ $white,
84
+ theming.daff-color($neutral, 20),
85
+ theming.daff-color($neutral, 30)
86
+ );
87
+ }
88
+
89
+ &.daff-theme {
90
+ @include daff-icon-button-theme-variant(
91
+ $base,
92
+ theming.daff-color($neutral, 10),
93
+ theming.daff-color($neutral, 20)
94
+ );
95
+ }
96
+
97
+ &.daff-theme-contrast {
98
+ @include daff-icon-button-theme-variant(
99
+ $base-contrast,
100
+ theming.daff-color($neutral, 90),
101
+ theming.daff-color($neutral, 80)
102
+ );
103
+ }
104
+
105
+ &.daff-warn {
106
+ @include daff-icon-button-theme-variant(
107
+ theming.daff-color($warn),
108
+ theming.daff-color($warn, 70),
109
+ theming.daff-color($warn, 80)
110
+ );
111
+ }
112
+
113
+ &.daff-critical {
114
+ @include daff-icon-button-theme-variant(
115
+ theming.daff-color($critical),
116
+ theming.daff-color($critical, 70),
117
+ theming.daff-color($critical, 80)
118
+ );
119
+ }
120
+
121
+ &.daff-success {
122
+ @include daff-icon-button-theme-variant(
123
+ theming.daff-color($success),
124
+ theming.daff-color($success, 70),
125
+ theming.daff-color($success, 80)
126
+ );
127
+ }
77
128
  }
78
129
 
79
- &.daff-white {
130
+ @include theming.dark($type) {
80
131
  @include daff-icon-button-theme-variant(
81
- $white,
82
- theming.daff-color($neutral, 20),
132
+ theming.daff-color($neutral, 50),
133
+ theming.daff-color($neutral, 40),
83
134
  theming.daff-color($neutral, 30)
84
135
  );
85
- }
86
136
 
87
- &.daff-theme {
88
- @include daff-icon-button-theme-variant(
89
- $base,
90
- theming.daff-illuminate($base, $neutral, 1),
91
- theming.daff-illuminate($base, $neutral, 2)
92
- );
93
- }
137
+ &.daff-primary {
138
+ @include daff-icon-button-theme-variant(
139
+ theming.daff-color($primary),
140
+ theming.daff-color($primary, 40),
141
+ theming.daff-color($primary, 30)
142
+ );
143
+ }
94
144
 
95
- &.daff-theme-contrast {
96
- @include daff-icon-button-theme-variant(
97
- $base-contrast,
98
- theming.daff-illuminate($base-contrast, $neutral, 1),
99
- theming.daff-illuminate($base-contrast, $neutral, 2)
100
- );
101
- }
145
+ &.daff-secondary {
146
+ @include daff-icon-button-theme-variant(
147
+ theming.daff-color($secondary),
148
+ theming.daff-color($secondary, 40),
149
+ theming.daff-color($secondary, 30)
150
+ );
151
+ }
102
152
 
103
- &[disabled],
104
- &.disabled {
105
- @include daff-icon-button-theme-variant(
106
- theming.daff-illuminate($base, $neutral, 4),
107
- theming.daff-illuminate($base, $neutral, 4),
108
- theming.daff-illuminate($base, $neutral, 4)
109
- );
153
+ &.daff-tertiary {
154
+ @include daff-icon-button-theme-variant(
155
+ theming.daff-color($tertiary),
156
+ theming.daff-color($tertiary, 40),
157
+ theming.daff-color($tertiary, 30)
158
+ );
159
+ }
110
160
 
111
- &:hover {
112
- color: theming.daff-illuminate($base, $neutral, 4);
161
+ &.daff-dark {
162
+ @include daff-icon-button-theme-variant(
163
+ $black,
164
+ theming.daff-color($neutral, 100),
165
+ theming.daff-color($neutral, 80)
166
+ );
113
167
  }
114
- }
115
168
 
116
- &.daff-warn {
117
- @include daff-icon-button-theme-variant(
118
- theming.daff-color($warn),
119
- theming.daff-color($warn, 70),
120
- theming.daff-color($warn, 80)
121
- );
122
- }
169
+ &.daff-light {
170
+ @include daff-icon-button-theme-variant(
171
+ $white,
172
+ theming.daff-color($neutral, 20),
173
+ theming.daff-color($neutral, 30)
174
+ );
175
+ }
123
176
 
124
- &.daff-critical {
125
- @include daff-icon-button-theme-variant(
126
- theming.daff-color($critical),
127
- theming.daff-color($critical, 70),
128
- theming.daff-color($critical, 80)
129
- );
130
- }
177
+ &.daff-theme {
178
+ @include daff-icon-button-theme-variant(
179
+ $base,
180
+ theming.daff-color($neutral, 100),
181
+ theming.daff-color($neutral, 80)
182
+ );
183
+ }
131
184
 
132
- &.daff-success {
133
- @include daff-icon-button-theme-variant(
134
- theming.daff-color($success),
135
- theming.daff-color($success, 70),
136
- theming.daff-color($success, 80)
137
- );
185
+ &.daff-theme-contrast {
186
+ @include daff-icon-button-theme-variant(
187
+ $base-contrast,
188
+ theming.daff-color($neutral, 20),
189
+ theming.daff-color($neutral, 30)
190
+ );
191
+ }
192
+
193
+ &.daff-warn {
194
+ @include daff-icon-button-theme-variant(
195
+ theming.daff-color($warn),
196
+ theming.daff-color($warn, 40),
197
+ theming.daff-color($warn, 30)
198
+ );
199
+ }
200
+
201
+ &.daff-critical {
202
+ @include daff-icon-button-theme-variant(
203
+ theming.daff-color($critical),
204
+ theming.daff-color($critical, 40),
205
+ theming.daff-color($critical, 30)
206
+ );
207
+ }
208
+
209
+ &.daff-success {
210
+ @include daff-icon-button-theme-variant(
211
+ theming.daff-color($success),
212
+ theming.daff-color($success, 40),
213
+ theming.daff-color($success, 30)
214
+ );
215
+ }
138
216
  }
139
217
  }
140
218
  }
@@ -59,11 +59,11 @@
59
59
  @include daff-raised-button-theme-variant(theming.daff-color($tertiary));
60
60
  }
61
61
 
62
- &.daff-black {
62
+ &.daff-dark {
63
63
  @include daff-raised-button-theme-variant($black);
64
64
  }
65
65
 
66
- &.daff-white {
66
+ &.daff-light {
67
67
  @include daff-raised-button-theme-variant($white);
68
68
  }
69
69