@daffodil/design 0.84.0 → 0.85.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 (180) hide show
  1. package/accordion/src/accordion-theme.scss +11 -13
  2. package/article/src/article-theme.scss +36 -38
  3. package/atoms/form/form-field/form-field/form-field.component.d.ts +22 -1
  4. package/atoms/form/form-field/form-field-control.d.ts +1 -0
  5. package/atoms/form/hint/hint.component.d.ts +5 -1
  6. package/breadcrumb/src/breadcrumb-theme.scss +9 -11
  7. package/button/button/raised/raised.component.d.ts +1 -1
  8. package/button/src/button/basic/button-theme.scss +80 -82
  9. package/button/src/button/flat/flat-theme.scss +28 -30
  10. package/button/src/button/icon/icon-theme.scss +74 -76
  11. package/button/src/button/raised/raised-theme.scss +28 -30
  12. package/button/src/button/stroked/stroked-theme.scss +31 -33
  13. package/button/src/button/underline/underline-theme.scss +30 -32
  14. package/callout/src/callout-theme.scss +21 -23
  15. package/card/src/card/raised/raised-theme.scss +9 -11
  16. package/card/src/card/stroked/stroked-theme.scss +32 -34
  17. package/card/src/card-base-theme.scss +42 -44
  18. package/core/colorable/colorable.d.ts +2 -2
  19. package/fesm2022/daffodil-design-accordion-examples.mjs +10 -10
  20. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  21. package/fesm2022/daffodil-design-accordion.mjs +15 -15
  22. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  23. package/fesm2022/daffodil-design-article-examples.mjs +31 -31
  24. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  25. package/fesm2022/daffodil-design-article.mjs +11 -11
  26. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  27. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
  28. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  29. package/fesm2022/daffodil-design-breadcrumb.mjs +11 -11
  30. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  31. package/fesm2022/daffodil-design-button-examples.mjs +28 -28
  32. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  33. package/fesm2022/daffodil-design-button.mjs +30 -30
  34. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  35. package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
  36. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  37. package/fesm2022/daffodil-design-callout.mjs +23 -23
  38. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  39. package/fesm2022/daffodil-design-card-examples.mjs +19 -19
  40. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  41. package/fesm2022/daffodil-design-card.mjs +35 -35
  42. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  43. package/fesm2022/daffodil-design-checkbox-examples.mjs +7 -7
  44. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  45. package/fesm2022/daffodil-design-container-examples.mjs +4 -4
  46. package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
  47. package/fesm2022/daffodil-design-container.mjs +8 -8
  48. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
  50. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  51. package/fesm2022/daffodil-design-hero.mjs +23 -23
  52. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-image-examples.mjs +10 -10
  54. package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
  55. package/fesm2022/daffodil-design-image.mjs +8 -8
  56. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  57. package/fesm2022/daffodil-design-input-examples.mjs +38 -17
  58. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  59. package/fesm2022/daffodil-design-input.mjs +96 -0
  60. package/fesm2022/daffodil-design-input.mjs.map +1 -0
  61. package/fesm2022/daffodil-design-link-set.mjs +17 -17
  62. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  63. package/fesm2022/daffodil-design-list-examples.mjs +13 -13
  64. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-list.mjs +12 -12
  66. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  68. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
  70. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
  72. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
  74. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
  76. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-menu.mjs +17 -17
  78. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
  80. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-modal.mjs +28 -28
  82. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
  84. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  85. package/fesm2022/daffodil-design-navbar.mjs +8 -8
  86. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  87. package/fesm2022/daffodil-design-notification-examples.mjs +16 -16
  88. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-notification.mjs +20 -20
  90. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
  92. package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-paginator.mjs +8 -8
  94. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
  96. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-progress-bar.mjs +12 -12
  98. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-quantity-field-examples.mjs +19 -18
  100. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
  102. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
  103. package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
  104. package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
  106. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  107. package/fesm2022/daffodil-design-sidebar.mjs +27 -27
  108. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-switch-examples.mjs +16 -16
  110. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  111. package/fesm2022/daffodil-design-switch.mjs +4 -4
  112. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  113. package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
  114. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  115. package/fesm2022/daffodil-design-tabs.mjs +16 -16
  116. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  117. package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
  118. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
  119. package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
  120. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  121. package/fesm2022/daffodil-design-toast-examples.mjs +16 -16
  122. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  123. package/fesm2022/daffodil-design-toast.mjs +22 -22
  124. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  125. package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
  126. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-tree.mjs +11 -11
  128. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-youtube-player.mjs +7 -7
  130. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  131. package/fesm2022/daffodil-design.mjs +252 -616
  132. package/fesm2022/daffodil-design.mjs.map +1 -1
  133. package/hero/src/hero-theme.scss +21 -23
  134. package/input/README.md +66 -0
  135. package/input/examples/input-hint-and-error/input-hint-and-error.component.d.ts +9 -0
  136. package/input/index.d.ts +1 -0
  137. package/{atoms/form/input → input}/input.component.d.ts +1 -1
  138. package/list/src/list-theme.scss +9 -11
  139. package/loading-icon/src/loading-icon-theme.scss +20 -22
  140. package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
  141. package/media-gallery/src/media-gallery-theme.scss +10 -12
  142. package/menu/helpers/create-overlay.d.ts +1 -1
  143. package/menu/src/menu-theme.scss +10 -11
  144. package/modal/src/modal-theme.scss +2 -2
  145. package/navbar/src/navbar-theme.scss +18 -20
  146. package/notification/src/notification-theme.scss +44 -46
  147. package/package.json +1 -1
  148. package/paginator/src/paginator-theme.scss +9 -11
  149. package/progress-bar/src/progress-bar-theme.scss +18 -20
  150. package/public_api.d.ts +0 -2
  151. package/quantity-field/README.md +63 -0
  152. package/quantity-field/index.d.ts +1 -0
  153. package/quantity-field/public_api.d.ts +2 -0
  154. package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +3 -3
  155. package/quantity-field/quantity-field.module.d.ts +11 -0
  156. package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +2 -2
  157. package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
  158. package/scss/state/skeleton/_mixins.scss +8 -9
  159. package/scss/theme.scss +0 -2
  160. package/scss/theming/_configure-theme.scss +16 -16
  161. package/scss/theming/_get-base-color.scss +19 -0
  162. package/scss/theming/_get-palette.scss +27 -0
  163. package/scss/theming/_get-theme-mode.scss +9 -0
  164. package/scss/theming/_index.scss +3 -0
  165. package/scss/theming/_light-dark.scss +4 -4
  166. package/scss/theming/_theme-css-variables.scss +20 -20
  167. package/sidebar/src/sidebar-theme.scss +4 -5
  168. package/src/atoms/form/error-message/error-message-theme.scss +3 -4
  169. package/src/atoms/form/form-field/form-field/form-field-theme.scss +42 -31
  170. package/src/atoms/form/hint/hint-theme.scss +13 -8
  171. package/src/atoms/form/native-select/native-select-theme.scss +5 -7
  172. package/switch/src/switch-theme.scss +13 -15
  173. package/tabs/src/tabs-theme.scss +13 -15
  174. package/toast/src/toast-theme.scss +36 -38
  175. package/tree/src/tree-theme.scss +20 -22
  176. package/atoms/form/quantity-field/public_api.d.ts +0 -4
  177. package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
  178. package/src/atoms/form/input/input-theme.scss +0 -12
  179. /package/{atoms/form/input → input}/input.module.d.ts +0 -0
  180. /package/{atoms/form/input → input}/public_api.d.ts +0 -0
@@ -1,19 +1,17 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-accordion-theme($theme) {
6
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
7
- $base: core.daff-map-get($theme, 'core', 'base');
8
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
9
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $neutral: daff-get-palette($theme, neutral);
5
+ $base: daff-get-base-color($theme, base);
6
+ $base-contrast: daff-get-base-color($theme, base-contrast);
7
+ $mode: daff-get-theme-mode($theme);
10
8
 
11
9
  .daff-accordion-item {
12
- @include theming.light($type) {
13
- border-top: 1px solid theming.daff-color($neutral, 20);
10
+ @include light($mode) {
11
+ border-top: 1px solid daff-color($neutral, 20);
14
12
 
15
13
  &:last-child {
16
- border-bottom: 1px solid theming.daff-color($neutral, 20);
14
+ border-bottom: 1px solid daff-color($neutral, 20);
17
15
  }
18
16
 
19
17
  .daff-accordion-item__header {
@@ -25,11 +23,11 @@
25
23
  }
26
24
  }
27
25
 
28
- @include theming.dark($type) {
29
- border-top: 1px solid theming.daff-color($neutral, 80);
26
+ @include dark($mode) {
27
+ border-top: 1px solid daff-color($neutral, 80);
30
28
 
31
29
  &:last-child {
32
- border-bottom: 1px solid theming.daff-color($neutral, 80);
30
+ border-bottom: 1px solid daff-color($neutral, 80);
33
31
  }
34
32
 
35
33
  .daff-accordion-item__header {
@@ -1,22 +1,20 @@
1
- @use 'sass:map';
2
1
  @use './article/stops-article-cascade' as *;
3
- @use '../../scss/core';
4
- @use '../../scss/theming';
2
+ @use '../../scss/theming' as *;
5
3
 
6
4
  @mixin daff-article-theme($theme) {
7
- $primary: core.daff-map-get($theme, primary);
8
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
9
- $type: core.daff-map-get($theme, 'core', 'type');
5
+ $primary: daff-get-palette($theme, primary);
6
+ $neutral: daff-get-palette($theme, neutral);
7
+ $mode: daff-get-theme-mode($theme);
10
8
 
11
- $link-color-light: theming.daff-color($primary);
12
- $link-color-dark: theming.daff-color($primary, 40);
13
- $text-color-light: theming.daff-color($neutral, 90);
14
- $text-color-dark: theming.daff-color($neutral, 10);
15
- $table-border-light: theming.daff-color($neutral, 20);
16
- $table-border-dark: theming.daff-color($neutral, 80);
9
+ $link-color-light: daff-color($primary);
10
+ $link-color-dark: daff-color($primary, 40);
11
+ $text-color-light: daff-color($neutral, 90);
12
+ $text-color-dark: daff-color($neutral, 10);
13
+ $table-border-light: daff-color($neutral, 20);
14
+ $table-border-dark: daff-color($neutral, 80);
17
15
 
18
16
  .daff-article {
19
- @include theming.light($type) {
17
+ @include light($mode) {
20
18
  color: $text-color-light;
21
19
 
22
20
  @include stopsArticleCascade(a) {
@@ -25,12 +23,12 @@
25
23
  }
26
24
 
27
25
  code {
28
- background: rgba(theming.daff-color($neutral, 20), 0.5);
26
+ background: rgba(daff-color($neutral, 20), 0.5);
29
27
  }
30
28
 
31
29
  pre {
32
- background: rgba(theming.daff-color($neutral, 20), 0.3);
33
- border: 1px solid theming.daff-color($neutral, 20);
30
+ background: rgba(daff-color($neutral, 20), 0.3);
31
+ border: 1px solid daff-color($neutral, 20);
34
32
 
35
33
  code {
36
34
  background: none;
@@ -39,21 +37,21 @@
39
37
  }
40
38
 
41
39
  hr {
42
- background: theming.daff-color($neutral, 20);
40
+ background: daff-color($neutral, 20);
43
41
  }
44
42
 
45
43
  blockquote {
46
- background: rgba(theming.daff-color($primary), 0.1);
47
- border-left: 4px solid theming.daff-color($primary, 50);
48
- color: theming.daff-color($primary, 100);
44
+ background: rgba(daff-color($primary), 0.1);
45
+ border-left: 4px solid daff-color($primary, 50);
46
+ color: daff-color($primary, 100);
49
47
 
50
48
  code {
51
- background: rgba(theming.daff-color($primary), 0.12);
52
- color: theming.daff-color($primary, 100);
49
+ background: rgba(daff-color($primary), 0.12);
50
+ color: daff-color($primary, 100);
53
51
 
54
52
  @include stopsArticleCascade(a) {
55
- color: theming.daff-color($primary, 70);
56
- text-decoration-color: theming.daff-color($primary, 70);
53
+ color: daff-color($primary, 70);
54
+ text-decoration-color: daff-color($primary, 70);
57
55
  }
58
56
  }
59
57
  }
@@ -62,7 +60,7 @@
62
60
  border: 1px solid $table-border-light;
63
61
 
64
62
  th {
65
- background: theming.daff-color($neutral, 10);
63
+ background: daff-color($neutral, 10);
66
64
  }
67
65
 
68
66
  th,
@@ -89,7 +87,7 @@
89
87
  }
90
88
  }
91
89
 
92
- @include theming.dark($type) {
90
+ @include dark($mode) {
93
91
  color: $text-color-dark;
94
92
 
95
93
  @include stopsArticleCascade(a) {
@@ -98,12 +96,12 @@
98
96
  }
99
97
 
100
98
  code {
101
- background: rgba(theming.daff-color($neutral, 20), 0.15);
99
+ background: rgba(daff-color($neutral, 20), 0.15);
102
100
  }
103
101
 
104
102
  pre {
105
- background: rgba(theming.daff-color($neutral, 20), 0.15);
106
- border: 1px solid rgba(theming.daff-color($neutral, 20), 0.15);
103
+ background: rgba(daff-color($neutral, 20), 0.15);
104
+ border: 1px solid rgba(daff-color($neutral, 20), 0.15);
107
105
 
108
106
  code {
109
107
  background: none;
@@ -112,21 +110,21 @@
112
110
  }
113
111
 
114
112
  hr {
115
- background: theming.daff-color($neutral, 80);
113
+ background: daff-color($neutral, 80);
116
114
  }
117
115
 
118
116
  blockquote {
119
- background: rgba(theming.daff-color($primary), 0.12);
120
- border-left: 4px solid theming.daff-color($primary, 40);
121
- color: theming.daff-color($primary, 10);
117
+ background: rgba(daff-color($primary), 0.12);
118
+ border-left: 4px solid daff-color($primary, 40);
119
+ color: daff-color($primary, 10);
122
120
 
123
121
  code {
124
- background: rgba(theming.daff-color($primary), 0.18);
125
- color: theming.daff-color($primary, 10);
122
+ background: rgba(daff-color($primary), 0.18);
123
+ color: daff-color($primary, 10);
126
124
 
127
125
  @include stopsArticleCascade(a) {
128
- color: theming.daff-color($primary, 40);
129
- text-decoration-color: theming.daff-color($primary, 40);
126
+ color: daff-color($primary, 40);
127
+ text-decoration-color: daff-color($primary, 40);
130
128
  }
131
129
  }
132
130
  }
@@ -135,7 +133,7 @@
135
133
  border: 1px solid $table-border-dark;
136
134
 
137
135
  th {
138
- background: theming.daff-color($neutral, 90);
136
+ background: daff-color($neutral, 90);
139
137
  }
140
138
 
141
139
  th,
@@ -3,6 +3,7 @@ import { DaffPrefixDirective } from '../../../../core/prefix-suffix/prefix.direc
3
3
  import { DaffSuffixDirective } from '../../../../core/prefix-suffix/suffix.directive';
4
4
  import { DaffFormFieldControl } from '../form-field-control';
5
5
  import * as i0 from "@angular/core";
6
+ import * as i1 from "../../../../core/skeletonable/skeletonable.directive";
6
7
  export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked {
7
8
  private cd;
8
9
  /** @docs-private */
@@ -24,22 +25,42 @@ export declare class DaffFormFieldComponent implements AfterContentInit, AfterCo
24
25
  * form field should be marked as error.
25
26
  */
26
27
  isError: boolean;
28
+ /**
29
+ * @docs-private
30
+ */
31
+ get errorClass(): boolean;
27
32
  /**
28
33
  * Tracking property to keep a record of whether or not the
29
34
  * form field contains any user input.
30
35
  */
31
36
  isFilled: boolean;
32
37
  isDisabled: boolean;
38
+ /**
39
+ * @docs-private
40
+ */
41
+ get disabledClass(): boolean;
33
42
  /**
34
43
  * Tracking property to keep a record of whether or not the
35
44
  * form field should be marked as valid.
36
45
  */
37
46
  isValid: boolean;
47
+ /**
48
+ * @docs-private
49
+ */
50
+ get validClass(): boolean;
38
51
  constructor(cd: ChangeDetectorRef);
39
52
  /**
40
53
  * Determines whether or not the form field should display its focused state.
41
54
  */
42
55
  get isFocused(): boolean;
56
+ /**
57
+ * @docs-private
58
+ */
59
+ get focusedClass(): boolean;
60
+ /**
61
+ * @docs-private
62
+ */
63
+ get raisedClass(): boolean;
43
64
  /**
44
65
  * Validate whether or not the FormField is in a "usable" state.
45
66
  */
@@ -61,5 +82,5 @@ export declare class DaffFormFieldComponent implements AfterContentInit, AfterCo
61
82
  */
62
83
  ngAfterContentChecked(): void;
63
84
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {}, {}, ["_prefix", "_suffix", "_control"], ["[daffPrefix]", "label[daffFormLabel]", "*", "[daffSuffix]", "daff-error-message", "daff-hint"], true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {}, {}, ["_prefix", "_suffix", "_control"], ["[daffPrefix]", "label[daffFormLabel]", "*", "[daffSuffix]", "daff-hint", "daff-error-message"], true, [{ directive: typeof i1.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
65
86
  }
@@ -16,6 +16,7 @@ export declare abstract class DaffFormFieldControl<T> {
16
16
  ngControl: NgControl | null;
17
17
  abstract readonly controlType?: any;
18
18
  abstract readonly focused: boolean;
19
+ get raised(): boolean;
19
20
  abstract focus(event?: Event): void;
20
21
  abstract readonly value: T;
21
22
  constructor(ngControl: NgControl | null);
@@ -4,6 +4,10 @@ export declare class DaffHintComponent {
4
4
  * @docs-private
5
5
  */
6
6
  class: boolean;
7
+ /**
8
+ * Whether or not the hint has been validated
9
+ * */
10
+ validated: boolean;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, {}, {}, never, ["*"], true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, { "validated": { "alias": "validated"; "required": false; }; }, {}, never, ["*"], true, never>;
9
13
  }
@@ -1,21 +1,19 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-breadcrumb-theme($theme) {
6
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
7
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $neutral: daff-get-palette($theme, neutral);
5
+ $mode: daff-get-theme-mode($theme);
8
6
 
9
7
  .daff-breadcrumb__item {
10
8
  a {
11
- @include theming.light($type) {
12
- color: theming.daff-color($neutral, 80);
13
- text-decoration-color: theming.daff-color($neutral, 80);
9
+ @include light($mode) {
10
+ color: daff-color($neutral, 80);
11
+ text-decoration-color: daff-color($neutral, 80);
14
12
  }
15
13
 
16
- @include theming.dark($type) {
17
- color: theming.daff-color($neutral, 30);
18
- text-decoration-color: theming.daff-color($neutral, 30);
14
+ @include dark($mode) {
15
+ color: daff-color($neutral, 30);
16
+ text-decoration-color: daff-color($neutral, 30);
19
17
  }
20
18
  }
21
19
  }
@@ -1,7 +1,7 @@
1
1
  import { DaffButtonBaseDirective } from '../button-base.directive';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
- * @deprecated in favor of the `elevated` property. Deprecated in 0.82.0. Will be removed in version 1.0.0. Deprecated in version 0.82.0. Will be removed in version 0.85.0.
4
+ * @deprecated in favor of the `elevated` property. Deprecated in version 0.82.0. Will be removed in version 1.0.0.
5
5
  *
6
6
  * DaffRaisedButtonComponent is a rectangular contained button with background color and elevation.
7
7
  *
@@ -1,6 +1,4 @@
1
- @use 'sass:map';
2
- @use '../../../../scss/theming';
3
- @use '../../../../scss/core';
1
+ @use '../../../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-button-theme-variant(
6
4
  $base-color,
@@ -8,18 +6,18 @@
8
6
  $active-color: $hover-color
9
7
  ) {
10
8
  background-color: $base-color;
11
- color: theming.daff-text-contrast($base-color);
9
+ color: daff-text-contrast($base-color);
12
10
 
13
11
  &::after {
14
12
  background: $hover-color;
15
13
  }
16
14
 
17
15
  &:hover {
18
- color: theming.daff-text-contrast($hover-color);
16
+ color: daff-text-contrast($hover-color);
19
17
  }
20
18
 
21
19
  &:active {
22
- color: theming.daff-text-contrast($active-color);
20
+ color: daff-text-contrast($active-color);
23
21
 
24
22
  &::after {
25
23
  background: $active-color;
@@ -28,193 +26,193 @@
28
26
  }
29
27
 
30
28
  @mixin daff-button-theme($theme) {
31
- $primary: core.daff-map-get($theme, primary);
32
- $secondary: core.daff-map-get($theme, secondary);
33
- $tertiary: core.daff-map-get($theme, tertiary);
34
- $info: core.daff-map-get($theme, informational);
35
- $warn: core.daff-map-get($theme, warn);
36
- $critical: core.daff-map-get($theme, critical);
37
- $success: core.daff-map-get($theme, success);
38
- $base: core.daff-map-get($theme, 'core', 'base');
39
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
40
- $white: core.daff-map-get($theme, 'core', 'white');
41
- $black: core.daff-map-get($theme, 'core', 'black');
42
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
43
- $type: core.daff-map-get($theme, 'core', 'type');
29
+ $primary: daff-get-palette($theme, primary);
30
+ $secondary: daff-get-palette($theme, secondary);
31
+ $tertiary: daff-get-palette($theme, tertiary);
32
+ $info: daff-get-palette($theme, informational);
33
+ $warn: daff-get-palette($theme, warn);
34
+ $critical: daff-get-palette($theme, critical);
35
+ $success: daff-get-palette($theme, success);
36
+ $neutral: daff-get-palette($theme, neutral);
37
+ $base: daff-get-base-color($theme, base);
38
+ $base-contrast: daff-get-base-color($theme, base-contrast);
39
+ $white: daff-get-base-color($theme, 'white');
40
+ $black: daff-get-base-color($theme, 'black');
41
+ $mode: daff-get-theme-mode($theme);
44
42
 
45
43
  .daff-button {
46
- @include theming.light($type) {
44
+ @include light($mode) {
47
45
  @include daff-button-theme-variant(
48
- theming.daff-color($neutral, 10),
49
- theming.daff-color($neutral, 20),
50
- theming.daff-color($neutral, 30)
46
+ daff-color($neutral, 10),
47
+ daff-color($neutral, 20),
48
+ daff-color($neutral, 30)
51
49
  );
52
50
 
53
51
  &.daff-primary {
54
52
  @include daff-button-theme-variant(
55
- theming.daff-color($primary),
56
- theming.daff-color($primary, 70),
57
- theming.daff-color($primary, 80)
53
+ daff-color($primary),
54
+ daff-color($primary, 70),
55
+ daff-color($primary, 80)
58
56
  );
59
57
  }
60
58
 
61
59
  &.daff-secondary {
62
60
  @include daff-button-theme-variant(
63
- theming.daff-color($secondary),
64
- theming.daff-color($secondary, 70),
65
- theming.daff-color($secondary, 80)
61
+ daff-color($secondary),
62
+ daff-color($secondary, 70),
63
+ daff-color($secondary, 80)
66
64
  );
67
65
  }
68
66
 
69
67
  &.daff-tertiary {
70
68
  @include daff-button-theme-variant(
71
- theming.daff-color($tertiary),
72
- theming.daff-color($tertiary, 70),
73
- theming.daff-color($tertiary, 80)
69
+ daff-color($tertiary),
70
+ daff-color($tertiary, 70),
71
+ daff-color($tertiary, 80)
74
72
  );
75
73
  }
76
74
 
77
75
  &.daff-dark {
78
76
  @include daff-button-theme-variant(
79
- theming.daff-color($neutral, 100),
80
- theming.daff-color($neutral, 90),
81
- theming.daff-color($neutral, 80)
77
+ daff-color($neutral, 100),
78
+ daff-color($neutral, 90),
79
+ daff-color($neutral, 80)
82
80
  );
83
81
  }
84
82
 
85
83
  &.daff-light {
86
84
  @include daff-button-theme-variant(
87
- theming.daff-color($neutral, 10),
88
- theming.daff-color($neutral, 20),
89
- theming.daff-color($neutral, 30)
85
+ daff-color($neutral, 10),
86
+ daff-color($neutral, 20),
87
+ daff-color($neutral, 30)
90
88
  );
91
89
  }
92
90
 
93
91
  &.daff-theme {
94
92
  @include daff-button-theme-variant(
95
93
  $base,
96
- theming.daff-color($neutral, 20),
97
- theming.daff-color($neutral, 30)
94
+ daff-color($neutral, 20),
95
+ daff-color($neutral, 30)
98
96
  );
99
97
  }
100
98
 
101
99
  &.daff-theme-contrast {
102
100
  @include daff-button-theme-variant(
103
101
  $base-contrast,
104
- theming.daff-color($neutral, 90),
105
- theming.daff-color($neutral, 80)
102
+ daff-color($neutral, 90),
103
+ daff-color($neutral, 80)
106
104
  );
107
105
  }
108
106
 
109
107
  &.daff-warn {
110
108
  @include daff-button-theme-variant(
111
- theming.daff-color($warn),
112
- theming.daff-color($warn, 70),
113
- theming.daff-color($warn, 80)
109
+ daff-color($warn),
110
+ daff-color($warn, 70),
111
+ daff-color($warn, 80)
114
112
  );
115
113
  }
116
114
 
117
115
  &.daff-success {
118
116
  @include daff-button-theme-variant(
119
- theming.daff-color($success),
120
- theming.daff-color($success, 70),
121
- theming.daff-color($success, 80)
117
+ daff-color($success),
118
+ daff-color($success, 70),
119
+ daff-color($success, 80)
122
120
  );
123
121
  }
124
122
 
125
123
  &.daff-critical {
126
124
  @include daff-button-theme-variant(
127
- theming.daff-color($critical),
128
- theming.daff-color($critical, 70),
129
- theming.daff-color($critical, 80)
125
+ daff-color($critical),
126
+ daff-color($critical, 70),
127
+ daff-color($critical, 80)
130
128
  );
131
129
  }
132
130
  }
133
131
 
134
- @include theming.dark($type) {
132
+ @include dark($mode) {
135
133
  @include daff-button-theme-variant(
136
- theming.daff-color($neutral, 90),
137
- theming.daff-color($neutral, 80),
138
- theming.daff-color($neutral, 70)
134
+ daff-color($neutral, 90),
135
+ daff-color($neutral, 80),
136
+ daff-color($neutral, 70)
139
137
  );
140
138
 
141
139
  &.daff-primary {
142
140
  @include daff-button-theme-variant(
143
- theming.daff-color($primary),
144
- theming.daff-color($primary, 40),
145
- theming.daff-color($primary, 30)
141
+ daff-color($primary),
142
+ daff-color($primary, 40),
143
+ daff-color($primary, 30)
146
144
  );
147
145
  }
148
146
 
149
147
  &.daff-secondary {
150
148
  @include daff-button-theme-variant(
151
- theming.daff-color($secondary),
152
- theming.daff-color($secondary, 40),
153
- theming.daff-color($secondary, 30)
149
+ daff-color($secondary),
150
+ daff-color($secondary, 40),
151
+ daff-color($secondary, 30)
154
152
  );
155
153
  }
156
154
 
157
155
  &.daff-tertiary {
158
156
  @include daff-button-theme-variant(
159
- theming.daff-color($tertiary),
160
- theming.daff-color($tertiary, 40),
161
- theming.daff-color($tertiary, 30)
157
+ daff-color($tertiary),
158
+ daff-color($tertiary, 40),
159
+ daff-color($tertiary, 30)
162
160
  );
163
161
  }
164
162
 
165
163
  &.daff-dark {
166
164
  @include daff-button-theme-variant(
167
- theming.daff-color($neutral, 100),
168
- theming.daff-color($neutral, 90),
169
- theming.daff-color($neutral, 80)
165
+ daff-color($neutral, 100),
166
+ daff-color($neutral, 90),
167
+ daff-color($neutral, 80)
170
168
  );
171
169
  }
172
170
 
173
171
  &.daff-light {
174
172
  @include daff-button-theme-variant(
175
173
  $white,
176
- theming.daff-color($neutral, 20),
177
- theming.daff-color($neutral, 30)
174
+ daff-color($neutral, 20),
175
+ daff-color($neutral, 30)
178
176
  );
179
177
  }
180
178
 
181
179
  &.daff-theme {
182
180
  @include daff-button-theme-variant(
183
181
  $base,
184
- theming.daff-color($neutral, 90),
185
- theming.daff-color($neutral, 80)
182
+ daff-color($neutral, 90),
183
+ daff-color($neutral, 80)
186
184
  );
187
185
  }
188
186
 
189
187
  &.daff-theme-contrast {
190
188
  @include daff-button-theme-variant(
191
189
  $base-contrast,
192
- theming.daff-color($neutral, 20),
193
- theming.daff-color($neutral, 30)
190
+ daff-color($neutral, 20),
191
+ daff-color($neutral, 30)
194
192
  );
195
193
  }
196
194
 
197
195
  &.daff-warn {
198
196
  @include daff-button-theme-variant(
199
- theming.daff-color($warn),
200
- theming.daff-color($warn, 40),
201
- theming.daff-color($warn, 30)
197
+ daff-color($warn),
198
+ daff-color($warn, 40),
199
+ daff-color($warn, 30)
202
200
  );
203
201
  }
204
202
 
205
203
  &.daff-success {
206
204
  @include daff-button-theme-variant(
207
- theming.daff-color($success),
208
- theming.daff-color($success, 40),
209
- theming.daff-color($success, 30)
205
+ daff-color($success),
206
+ daff-color($success, 40),
207
+ daff-color($success, 30)
210
208
  );
211
209
  }
212
210
 
213
211
  &.daff-critical {
214
212
  @include daff-button-theme-variant(
215
- theming.daff-color($critical),
216
- theming.daff-color($critical, 40),
217
- theming.daff-color($critical, 30)
213
+ daff-color($critical),
214
+ daff-color($critical, 40),
215
+ daff-color($critical, 30)
218
216
  );
219
217
  }
220
218
  }