@daffodil/design 0.84.0 → 0.86.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 (210) hide show
  1. package/accordion/src/accordion-theme.scss +11 -13
  2. package/article/src/article-theme.scss +36 -38
  3. package/atoms/form/error-message/error-message.component.d.ts +6 -0
  4. package/atoms/form/form-field/form-field/form-field.component.d.ts +104 -13
  5. package/atoms/form/form-field/form-field-control.d.ts +3 -0
  6. package/atoms/form/form-field/form-field.d.ts +2 -1
  7. package/atoms/form/form-field/label/label.directive.d.ts +5 -0
  8. package/atoms/form/form-field/public_api.d.ts +1 -0
  9. package/atoms/form/form-label/form-label.directive.d.ts +3 -0
  10. package/atoms/form/hint/hint.component.d.ts +5 -1
  11. package/breadcrumb/src/breadcrumb-theme.scss +9 -11
  12. package/button/README.md +3 -3
  13. package/button/button/button-base.directive.d.ts +1 -2
  14. package/button/button/raised/raised.component.d.ts +1 -1
  15. package/button/src/button/basic/button-theme.scss +80 -82
  16. package/button/src/button/button-base.scss +0 -18
  17. package/button/src/button/flat/flat-theme.scss +28 -30
  18. package/button/src/button/icon/icon-theme.scss +74 -76
  19. package/button/src/button/raised/raised-theme.scss +28 -30
  20. package/button/src/button/stroked/stroked-theme.scss +31 -33
  21. package/button/src/button/underline/underline-theme.scss +30 -32
  22. package/callout/src/callout-theme.scss +21 -23
  23. package/card/src/card/raised/raised-theme.scss +9 -11
  24. package/card/src/card/stroked/stroked-theme.scss +32 -34
  25. package/card/src/card-base-theme.scss +42 -44
  26. package/core/colorable/colorable.d.ts +2 -2
  27. package/core/compactable/compactable.directive.d.ts +3 -0
  28. package/core/openable/openable.directive.d.ts +1 -1
  29. package/core/selectable/selectable.directive.d.ts +3 -1
  30. package/core/sizable/sizable.directive.d.ts +2 -2
  31. package/core/skeletonable/public_api.d.ts +0 -1
  32. package/core/skeletonable/skeletonable.directive.d.ts +3 -0
  33. package/core/text-alignable/text-alignable.directive.d.ts +9 -5
  34. package/fesm2022/daffodil-design-accordion-examples.mjs +10 -10
  35. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  36. package/fesm2022/daffodil-design-accordion.mjs +15 -15
  37. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  38. package/fesm2022/daffodil-design-article-examples.mjs +31 -31
  39. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  40. package/fesm2022/daffodil-design-article.mjs +12 -12
  41. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  42. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
  43. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  44. package/fesm2022/daffodil-design-breadcrumb.mjs +12 -12
  45. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  46. package/fesm2022/daffodil-design-button-examples.mjs +34 -34
  47. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  48. package/fesm2022/daffodil-design-button.mjs +37 -61
  49. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  50. package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
  51. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-callout.mjs +23 -23
  53. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-card-examples.mjs +19 -19
  55. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-card.mjs +35 -35
  57. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-checkbox-examples.mjs +7 -7
  59. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-container-examples.mjs +4 -4
  61. package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-container.mjs +8 -8
  63. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
  65. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-hero.mjs +23 -23
  67. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-image-examples.mjs +10 -10
  69. package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-image.mjs +9 -9
  71. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-input-examples.mjs +42 -21
  73. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-input.mjs +139 -0
  75. package/fesm2022/daffodil-design-input.mjs.map +1 -0
  76. package/fesm2022/daffodil-design-link-set.mjs +17 -17
  77. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-list-examples.mjs +13 -13
  79. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-list.mjs +12 -12
  81. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  83. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
  85. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
  87. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
  89. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  90. package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
  91. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  92. package/fesm2022/daffodil-design-menu.mjs +17 -17
  93. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  94. package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
  95. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  96. package/fesm2022/daffodil-design-modal.mjs +28 -28
  97. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  98. package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
  99. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  100. package/fesm2022/daffodil-design-navbar.mjs +8 -8
  101. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  102. package/fesm2022/daffodil-design-notification-examples.mjs +16 -16
  103. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  104. package/fesm2022/daffodil-design-notification.mjs +20 -20
  105. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  106. package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
  107. package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
  108. package/fesm2022/daffodil-design-paginator.mjs +8 -8
  109. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  110. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
  111. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  112. package/fesm2022/daffodil-design-progress-bar.mjs +12 -12
  113. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  114. package/fesm2022/daffodil-design-quantity-field-examples.mjs +19 -18
  115. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  116. package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
  117. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
  118. package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
  119. package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
  120. package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
  121. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  122. package/fesm2022/daffodil-design-sidebar.mjs +27 -27
  123. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  124. package/fesm2022/daffodil-design-switch-examples.mjs +16 -16
  125. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  126. package/fesm2022/daffodil-design-switch.mjs +4 -4
  127. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  128. package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
  129. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  130. package/fesm2022/daffodil-design-tabs.mjs +16 -16
  131. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  132. package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
  133. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
  134. package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
  135. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  136. package/fesm2022/daffodil-design-toast-examples.mjs +13 -72
  137. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  138. package/fesm2022/daffodil-design-toast.mjs +73 -61
  139. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  140. package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
  141. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  142. package/fesm2022/daffodil-design-tree.mjs +11 -11
  143. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  144. package/fesm2022/daffodil-design-youtube-player.mjs +7 -7
  145. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  146. package/fesm2022/daffodil-design.mjs +477 -711
  147. package/fesm2022/daffodil-design.mjs.map +1 -1
  148. package/hero/src/hero-theme.scss +21 -23
  149. package/input/README.md +66 -0
  150. package/input/examples/input-hint-and-error/input-hint-and-error.component.d.ts +9 -0
  151. package/input/index.d.ts +1 -0
  152. package/{atoms/form/input → input}/input.component.d.ts +21 -5
  153. package/list/src/list-theme.scss +9 -11
  154. package/loading-icon/src/loading-icon-theme.scss +20 -22
  155. package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
  156. package/media-gallery/src/media-gallery-theme.scss +10 -12
  157. package/menu/helpers/create-overlay.d.ts +1 -1
  158. package/menu/src/menu-theme.scss +10 -11
  159. package/modal/src/modal-theme.scss +2 -2
  160. package/navbar/src/navbar-theme.scss +18 -20
  161. package/notification/src/notification-theme.scss +44 -46
  162. package/package.json +1 -1
  163. package/paginator/src/paginator-theme.scss +9 -11
  164. package/progress-bar/src/progress-bar-theme.scss +18 -20
  165. package/public_api.d.ts +0 -2
  166. package/quantity-field/README.md +63 -0
  167. package/quantity-field/index.d.ts +1 -0
  168. package/quantity-field/public_api.d.ts +2 -0
  169. package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +3 -3
  170. package/quantity-field/quantity-field.module.d.ts +11 -0
  171. package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +2 -2
  172. package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
  173. package/scss/state/skeleton/_mixins.scss +12 -10
  174. package/scss/theme.scss +0 -2
  175. package/scss/theming/_configure-theme.scss +16 -16
  176. package/scss/theming/_get-base-color.scss +19 -0
  177. package/scss/theming/_get-palette.scss +27 -0
  178. package/scss/theming/_get-theme-mode.scss +9 -0
  179. package/scss/theming/_index.scss +3 -0
  180. package/scss/theming/_light-dark.scss +4 -4
  181. package/scss/theming/_theme-css-variables.scss +20 -20
  182. package/scss/theming/contrast/luminance/luminance.scss +3 -3
  183. package/sidebar/src/sidebar-theme.scss +4 -5
  184. package/src/atoms/form/error-message/error-message-theme.scss +3 -4
  185. package/src/atoms/form/form-field/form-field/form-field-theme.scss +47 -31
  186. package/src/atoms/form/hint/hint-theme.scss +13 -8
  187. package/src/atoms/form/native-select/native-select-theme.scss +5 -7
  188. package/switch/src/switch-theme.scss +13 -15
  189. package/tabs/src/tabs-theme.scss +13 -15
  190. package/toast/README.md +21 -1
  191. package/toast/examples/public_api.d.ts +1 -2
  192. package/toast/helpers/toast-position.d.ts +8 -0
  193. package/toast/interfaces/toast-options.d.ts +19 -0
  194. package/toast/interfaces/toast.d.ts +1 -1
  195. package/toast/public_api.d.ts +2 -2
  196. package/toast/service/position-strategy.d.ts +1 -1
  197. package/toast/service/position.service.d.ts +1 -1
  198. package/toast/service/toast.service.d.ts +1 -1
  199. package/toast/src/toast-theme.scss +36 -38
  200. package/toast/toast/toast-provider.d.ts +16 -4
  201. package/toast/toast/toast-template.component.d.ts +1 -1
  202. package/tree/src/tree-theme.scss +20 -22
  203. package/atoms/form/quantity-field/public_api.d.ts +0 -4
  204. package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
  205. package/core/skeletonable/skeletonable.d.ts +0 -6
  206. package/src/atoms/form/input/input-theme.scss +0 -12
  207. package/toast/examples/toast-positions/toast-positions.component.d.ts +0 -20
  208. package/toast/options/daff-toast-options.d.ts +0 -14
  209. /package/{atoms/form/input → input}/input.module.d.ts +0 -0
  210. /package/{atoms/form/input → input}/public_api.d.ts +0 -0
@@ -1,53 +1,51 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-hero-theme-variant($color) {
6
4
  background: $color;
7
- color: theming.daff-text-contrast($color);
5
+ color: daff-text-contrast($color);
8
6
  }
9
7
 
10
8
  @mixin daff-hero-theme($theme) {
11
- $primary: core.daff-map-get($theme, primary);
12
- $secondary: core.daff-map-get($theme, secondary);
13
- $tertiary: core.daff-map-get($theme, tertiary);
14
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
15
- $base: core.daff-map-get($theme, 'core', 'base');
16
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
17
- $white: core.daff-map-get($theme, 'core', 'white');
18
- $black: core.daff-map-get($theme, 'core', 'black');
19
- $type: core.daff-map-get($theme, 'core', 'type');
9
+ $primary: daff-get-palette($theme, primary);
10
+ $secondary: daff-get-palette($theme, secondary);
11
+ $tertiary: daff-get-palette($theme, tertiary);
12
+ $neutral: daff-get-palette($theme, neutral);
13
+ $base: daff-get-base-color($theme, base);
14
+ $base-contrast: daff-get-base-color($theme, base-contrast);
15
+ $white: daff-get-base-color($theme, 'white');
16
+ $black: daff-get-base-color($theme, 'black');
17
+ $mode: daff-get-theme-mode($theme);
20
18
 
21
19
  .daff-hero {
22
- @include theming.light($type) {
23
- @include daff-hero-theme-variant(theming.daff-color($neutral, 10));
20
+ @include light($mode) {
21
+ @include daff-hero-theme-variant(daff-color($neutral, 10));
24
22
 
25
23
  &.daff-primary {
26
- @include daff-hero-theme-variant(theming.daff-color($primary));
24
+ @include daff-hero-theme-variant(daff-color($primary));
27
25
  }
28
26
 
29
27
  &.daff-secondary {
30
- @include daff-hero-theme-variant(theming.daff-color($secondary));
28
+ @include daff-hero-theme-variant(daff-color($secondary));
31
29
  }
32
30
 
33
31
  &.daff-tertiary {
34
- @include daff-hero-theme-variant(theming.daff-color($tertiary));
32
+ @include daff-hero-theme-variant(daff-color($tertiary));
35
33
  }
36
34
  }
37
35
 
38
- @include theming.dark($type) {
39
- @include daff-hero-theme-variant(theming.daff-color($neutral, 90));
36
+ @include dark($mode) {
37
+ @include daff-hero-theme-variant(daff-color($neutral, 90));
40
38
 
41
39
  &.daff-primary {
42
- @include daff-hero-theme-variant(theming.daff-color($primary, 60));
40
+ @include daff-hero-theme-variant(daff-color($primary, 60));
43
41
  }
44
42
 
45
43
  &.daff-secondary {
46
- @include daff-hero-theme-variant(theming.daff-color($secondary, 60));
44
+ @include daff-hero-theme-variant(daff-color($secondary, 60));
47
45
  }
48
46
 
49
47
  &.daff-tertiary {
50
- @include daff-hero-theme-variant(theming.daff-color($tertiary, 60));
48
+ @include daff-hero-theme-variant(daff-color($tertiary, 60));
51
49
  }
52
50
  }
53
51
 
@@ -0,0 +1,66 @@
1
+ # Input
2
+ The input component allows a native HTML input element to work with the form field component.
3
+
4
+ ## Overview
5
+ The input component has the same functionality as a native HTML `<input>` element, with additional custom styling and functionality. It **cannot** be used by itself and must be contained within a [DaffFormFieldComponent](/libs/design/src/atoms/form/form-field/README.md).
6
+
7
+ <design-land-example-viewer-container example="input-with-form-field"></design-land-example-viewer-container>
8
+
9
+ ## Usage
10
+
11
+ ### Within a standalone component
12
+ To use form field in a standalone component, import `DaffInputComponent` directly into your custom component:
13
+
14
+ ```ts
15
+ import { DaffInputComponent } from '@daffodil/design/input';
16
+
17
+ @Component({
18
+ selector: 'custom-component',
19
+ templateUrl: './custom-component.component.html',
20
+ imports: [
21
+ DaffInputComponent,
22
+ ],
23
+ })
24
+ export class CustomComponent {}
25
+ ```
26
+
27
+ ### Within a module (deprecated)
28
+ To use form field in a module, import `DaffInputModule` into your custom module:
29
+
30
+ ```ts
31
+ import { NgModule } from '@angular/core';
32
+ import { DaffInputModule } from '@daffodil/design/input';
33
+ import { CustomComponent } from './custom.component';
34
+
35
+ @NgModule({
36
+ declarations: [
37
+ CustomComponent,
38
+ ],
39
+ exports: [
40
+ CustomComponent,
41
+ ],
42
+ imports: [
43
+ DaffInputModule,
44
+ ],
45
+ })
46
+ export class CustomComponentModule { }
47
+ ```
48
+
49
+ > This method is deprecated. It's recommended to update all custom components to standalone.
50
+
51
+ ## Examples
52
+
53
+ ### Disabled input
54
+ The input in this example is disabled using the native HTML disabled attribute.
55
+
56
+ <design-land-example-viewer-container example="input-disabled"></design-land-example-viewer-container>
57
+
58
+ ### Input with error messages
59
+ The input in this example uses the `ReactiveFormsModule` to display errors.
60
+
61
+ <design-land-example-viewer-container example="input-error"></design-land-example-viewer-container>
62
+
63
+ ### Input with hint
64
+ The input in this example has a hint.
65
+
66
+ <design-land-example-viewer-container example="input-hint"></design-land-example-viewer-container>
@@ -0,0 +1,9 @@
1
+ import { UntypedFormControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputHintAndErrorComponent {
4
+ faCheck: import("@fortawesome/fontawesome-common-types").IconDefinition;
5
+ faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
6
+ control: UntypedFormControl;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputHintAndErrorComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputHintAndErrorComponent, "input-hint-and-error", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -1,31 +1,47 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { ElementRef, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { NgControl } from '@angular/forms';
3
- import { DaffFormFieldControl } from '../form-field/form-field-control';
3
+ import { DaffFormFieldComponent, DaffFormFieldControl } from '@daffodil/design';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * DaffInputComponent provides the same functionality as a native `<input>` and contains custom styling and functionality.
7
7
  */
8
- export declare class DaffInputComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {
8
+ export declare class DaffInputComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit, OnChanges {
9
9
  /** @docs-private */
10
10
  ngControl: NgControl;
11
11
  private _elementRef;
12
+ private formField;
12
13
  /** @docs-private */
13
14
  class: boolean;
14
15
  /** @docs-private */
15
16
  controlType: string;
17
+ /** @docs-private */
16
18
  focused: boolean;
17
19
  /** @docs-private */
18
20
  focus(): void;
21
+ private _id;
22
+ /**
23
+ * @docs-private
24
+ */
25
+ get internalId(): string;
26
+ /**
27
+ * @docs-private
28
+ */
29
+ get ariaDescribedBy(): string;
19
30
  /** @docs-private */
20
31
  blur(): void;
21
32
  constructor(
22
33
  /** @docs-private */
23
- ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>);
34
+ ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>, formField: DaffFormFieldComponent);
35
+ /**
36
+ * @docs-private
37
+ */
38
+ ngOnChanges(changes: SimpleChanges): void;
24
39
  /** @docs-private */
25
40
  ngOnInit(): void;
26
41
  /** @docs-private */
27
42
  onFocus(): void;
43
+ /** @docs-private */
28
44
  get value(): string;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputComponent, [{ optional: true; self: true; }, null]>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputComponent, [{ optional: true; self: true; }, null, null]>;
30
46
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffInputComponent, "input[daff-input]", never, {}, {}, never, ["*"], true, never>;
31
47
  }
@@ -1,13 +1,11 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  // styleline-disable selector-class-pattern
6
4
  @mixin daff-list-theme($theme) {
7
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
8
- $base: core.daff-map-get($theme, 'core', 'base');
9
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
10
- $type: core.daff-map-get($theme, 'core', 'type');
5
+ $neutral: daff-get-palette($theme, neutral);
6
+ $base: daff-get-base-color($theme, base);
7
+ $base-contrast: daff-get-base-color($theme, base-contrast);
8
+ $mode: daff-get-theme-mode($theme);
11
9
 
12
10
  .daff-nav-list {
13
11
  .daff-list-item {
@@ -15,20 +13,20 @@
15
13
  background-color: $base;
16
14
  }
17
15
 
18
- @include theming.light($type) {
16
+ @include light($mode) {
19
17
  &:hover,
20
18
  &.active {
21
19
  &::after {
22
- background-color: rgba(theming.daff-color($neutral, 20), 0.5);
20
+ background-color: rgba(daff-color($neutral, 20), 0.5);
23
21
  }
24
22
  }
25
23
  }
26
24
 
27
- @include theming.dark($type) {
25
+ @include dark($mode) {
28
26
  &:hover,
29
27
  &.active {
30
28
  &::after {
31
- background-color: rgba(theming.daff-color($neutral, 20), 0.08);
29
+ background-color: rgba(daff-color($neutral, 20), 0.08);
32
30
  }
33
31
  }
34
32
  }
@@ -1,6 +1,4 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-loading-icon-light-variant($loader-color) {
6
4
  .daff-loading-icon__loader {
@@ -23,34 +21,34 @@
23
21
  }
24
22
 
25
23
  @mixin daff-loading-icon-theme($theme) {
26
- $primary: core.daff-map-get($theme, primary);
27
- $secondary: core.daff-map-get($theme, secondary);
28
- $tertiary: core.daff-map-get($theme, tertiary);
29
- $base: core.daff-map-get($theme, 'core', 'base');
30
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
31
- $white: core.daff-map-get($theme, 'core', 'white');
32
- $black: core.daff-map-get($theme, 'core', 'black');
33
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
34
- $type: core.daff-map-get($theme, 'core', 'type');
24
+ $primary: daff-get-palette($theme, primary);
25
+ $secondary: daff-get-palette($theme, secondary);
26
+ $tertiary: daff-get-palette($theme, tertiary);
27
+ $base: daff-get-base-color($theme, base);
28
+ $base-contrast: daff-get-base-color($theme, base-contrast);
29
+ $white: daff-get-base-color($theme, 'white');
30
+ $black: daff-get-base-color($theme, 'black');
31
+ $neutral: daff-get-palette($theme, neutral);
32
+ $mode: daff-get-theme-mode($theme);
35
33
 
36
34
  .daff-loading-icon {
37
- @include theming.light($type) {
35
+ @include light($mode) {
38
36
  @include daff-loading-icon-light-variant(
39
- theming.daff-color($neutral, 60)
37
+ daff-color($neutral, 60)
40
38
  );
41
39
 
42
40
  &.daff-primary {
43
- @include daff-loading-icon-light-variant(theming.daff-color($primary));
41
+ @include daff-loading-icon-light-variant(daff-color($primary));
44
42
  }
45
43
 
46
44
  &.daff-secondary {
47
45
  @include daff-loading-icon-light-variant(
48
- theming.daff-color($secondary)
46
+ daff-color($secondary)
49
47
  );
50
48
  }
51
49
 
52
50
  &.daff-tertiary {
53
- @include daff-loading-icon-light-variant(theming.daff-color($tertiary));
51
+ @include daff-loading-icon-light-variant(daff-color($tertiary));
54
52
  }
55
53
 
56
54
  &.daff-theme {
@@ -70,19 +68,19 @@
70
68
  }
71
69
  }
72
70
 
73
- @include theming.dark($type) {
74
- @include daff-loading-icon-dark-variant(theming.daff-color($neutral, 40));
71
+ @include dark($mode) {
72
+ @include daff-loading-icon-dark-variant(daff-color($neutral, 40));
75
73
 
76
74
  &.daff-primary {
77
- @include daff-loading-icon-dark-variant(theming.daff-color($primary));
75
+ @include daff-loading-icon-dark-variant(daff-color($primary));
78
76
  }
79
77
 
80
78
  &.daff-secondary {
81
- @include daff-loading-icon-dark-variant(theming.daff-color($secondary));
79
+ @include daff-loading-icon-dark-variant(daff-color($secondary));
82
80
  }
83
81
 
84
82
  &.daff-tertiary {
85
- @include daff-loading-icon-dark-variant(theming.daff-color($tertiary));
83
+ @include daff-loading-icon-dark-variant(daff-color($tertiary));
86
84
  }
87
85
 
88
86
  &.daff-theme {
@@ -17,10 +17,6 @@ import * as i1 from "@daffodil/design";
17
17
  */
18
18
  export declare class DaffMediaGalleryComponent implements DaffMediaGalleryRegistration {
19
19
  private skeletonDirective;
20
- /**
21
- * @docs-private
22
- */
23
- role: string;
24
20
  /**
25
21
  * The internal ID of the gallery.
26
22
  */
@@ -1,31 +1,29 @@
1
- @use 'sass:map';
2
- @use '../../scss/theming';
3
- @use '../../scss/core';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-media-gallery-theme($theme) {
6
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
7
- $white: core.daff-map-get($theme, 'core', 'white');
8
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $neutral: daff-get-palette($theme, neutral);
5
+ $white: daff-get-base-color($theme, 'white');
6
+ $mode: daff-get-theme-mode($theme);
9
7
 
10
8
  .daff-media-gallery {
11
9
  $root: &;
12
10
 
13
- @include theming.light($type) {
11
+ @include light($mode) {
14
12
  .daff-thumbnail {
15
- background: theming.daff-color($neutral, 20);
13
+ background: daff-color($neutral, 20);
16
14
 
17
15
  &.daff-selected {
18
- border: 1px solid theming.daff-color($neutral);
16
+ border: 1px solid daff-color($neutral);
19
17
  }
20
18
  }
21
19
  }
22
20
 
23
- @include theming.dark($type) {
21
+ @include dark($mode) {
24
22
  .daff-thumbnail {
25
- background: theming.daff-color($neutral, 70);
23
+ background: daff-color($neutral, 70);
26
24
 
27
25
  &.daff-selected {
28
- border: 1px solid theming.daff-color($neutral, 30);
26
+ border: 1px solid daff-color($neutral, 30);
29
27
  }
30
28
  }
31
29
  }
@@ -1,3 +1,3 @@
1
1
  import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
2
2
  import { ElementRef } from '@angular/core';
3
- export declare function daffMenuCreateOverlay(overlay: Overlay, element: ElementRef, config?: OverlayConfig): import("@angular/cdk/overlay").OverlayRef;
3
+ export declare function daffMenuCreateOverlay(overlay: Overlay, element: ElementRef, config?: OverlayConfig): import("@angular/cdk/overlay-module.d-B3qEQtts").b;
@@ -1,14 +1,13 @@
1
- @use '../../scss/core';
2
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
3
2
 
4
3
  @mixin daff-menu-theme($theme) {
5
- $black: core.daff-map-get($theme, 'core', 'black');
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
+ $black: daff-get-base-color($theme, 'black');
5
+ $neutral: daff-get-palette($theme, neutral);
6
+ $base: daff-get-base-color($theme, base);
7
+ $base-contrast: daff-get-base-color($theme, base-contrast);
8
+ $mode: daff-get-theme-mode($theme);
10
9
 
11
- @include theming.light($type) {
10
+ @include light($mode) {
12
11
  .daff-menu {
13
12
  background: $base;
14
13
  box-shadow: 0 0 24px rgb($black, 0.12);
@@ -20,12 +19,12 @@
20
19
 
21
20
  &:hover,
22
21
  &:focus {
23
- background: rgba(theming.daff-color($neutral, 20), 0.5);
22
+ background: rgba(daff-color($neutral, 20), 0.5);
24
23
  }
25
24
  }
26
25
  }
27
26
 
28
- @include theming.dark($type) {
27
+ @include dark($mode) {
29
28
  .daff-menu {
30
29
  background: $base;
31
30
  box-shadow: 0 0 24px rgb($black, 0.12);
@@ -37,7 +36,7 @@
37
36
 
38
37
  &:hover,
39
38
  &:focus {
40
- background: rgba(theming.daff-color($neutral, 20), 0.08);
39
+ background: rgba(daff-color($neutral, 20), 0.08);
41
40
  }
42
41
  }
43
42
  }
@@ -1,7 +1,7 @@
1
- @use '../../scss/core';
1
+ @use '../../scss/theming' as *;
2
2
 
3
3
  @mixin daff-modal-theme($theme) {
4
- $base: core.daff-map-get($theme, 'core', 'base');
4
+ $base: daff-get-base-color($theme, base);
5
5
 
6
6
  .daff-modal {
7
7
  background: $base;
@@ -1,30 +1,28 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-navbar-theme-variant($color) {
6
4
  background: $color;
7
- color: theming.daff-text-contrast($color);
5
+ color: daff-text-contrast($color);
8
6
  }
9
7
 
10
8
  @mixin daff-navbar-theme($theme) {
11
- $primary: core.daff-map-get($theme, primary);
12
- $secondary: core.daff-map-get($theme, secondary);
13
- $tertiary: core.daff-map-get($theme, tertiary);
14
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
15
- $base: core.daff-map-get($theme, 'core', 'base');
16
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
17
- $white: core.daff-map-get($theme, 'core', 'white');
18
- $black: core.daff-map-get($theme, 'core', 'black');
19
- $type: core.daff-map-get($theme, 'core', 'type');
9
+ $primary: daff-get-palette($theme, primary);
10
+ $secondary: daff-get-palette($theme, secondary);
11
+ $tertiary: daff-get-palette($theme, tertiary);
12
+ $neutral: daff-get-palette($theme, neutral);
13
+ $base: daff-get-base-color($theme, base);
14
+ $base-contrast: daff-get-base-color($theme, base-contrast);
15
+ $white: daff-get-base-color($theme, 'white');
16
+ $black: daff-get-base-color($theme, 'black');
17
+ $mode: daff-get-theme-mode($theme);
20
18
 
21
19
  .daff-navbar {
22
- @include theming.light($type) {
23
- @include daff-navbar-theme-variant(theming.daff-color($neutral, 10));
20
+ @include light($mode) {
21
+ @include daff-navbar-theme-variant(daff-color($neutral, 10));
24
22
  }
25
23
 
26
- @include theming.dark($type) {
27
- @include daff-navbar-theme-variant(theming.daff-color($neutral, 90));
24
+ @include dark($mode) {
25
+ @include daff-navbar-theme-variant(daff-color($neutral, 90));
28
26
  }
29
27
 
30
28
  &--raised {
@@ -32,15 +30,15 @@
32
30
  }
33
31
 
34
32
  &.daff-primary {
35
- @include daff-navbar-theme-variant(theming.daff-color($primary));
33
+ @include daff-navbar-theme-variant(daff-color($primary));
36
34
  }
37
35
 
38
36
  &.daff-secondary {
39
- @include daff-navbar-theme-variant(theming.daff-color($secondary));
37
+ @include daff-navbar-theme-variant(daff-color($secondary));
40
38
  }
41
39
 
42
40
  &.daff-tertiary {
43
- @include daff-navbar-theme-variant(theming.daff-color($tertiary));
41
+ @include daff-navbar-theme-variant(daff-color($tertiary));
44
42
  }
45
43
 
46
44
  &.daff-black {
@@ -1,91 +1,89 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-notification-theme($theme) {
6
- $primary: core.daff-map-get($theme, primary);
7
- $secondary: core.daff-map-get($theme, secondary);
8
- $tertiary: core.daff-map-get($theme, tertiary);
9
- $info: core.daff-map-get($theme, informational);
10
- $warn: core.daff-map-get($theme, warn);
11
- $critical: core.daff-map-get($theme, critical);
12
- $success: core.daff-map-get($theme, success);
13
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
- $base: core.daff-map-get($theme, 'core', 'base');
15
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
16
- $black: core.daff-map-get($theme, 'core', 'black');
17
- $white: core.daff-map-get($theme, 'core', 'white');
18
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $primary: daff-get-palette($theme, primary);
5
+ $secondary: daff-get-palette($theme, secondary);
6
+ $tertiary: daff-get-palette($theme, tertiary);
7
+ $info: daff-get-palette($theme, informational);
8
+ $warn: daff-get-palette($theme, warn);
9
+ $critical: daff-get-palette($theme, critical);
10
+ $success: daff-get-palette($theme, success);
11
+ $neutral: daff-get-palette($theme, neutral);
12
+ $base: daff-get-base-color($theme, base);
13
+ $base-contrast: daff-get-base-color($theme, base-contrast);
14
+ $black: daff-get-base-color($theme, 'black');
15
+ $white: daff-get-base-color($theme, 'white');
16
+ $mode: daff-get-theme-mode($theme);
19
17
 
20
18
  .daff-notification {
21
- @include theming.light($type) {
22
- background: theming.daff-color($neutral, 10);
23
- border: 1px solid theming.daff-color($neutral, 20);
19
+ @include light($mode) {
20
+ background: daff-color($neutral, 10);
21
+ border: 1px solid daff-color($neutral, 20);
24
22
  color: $black;
25
23
 
26
24
  &.daff-success {
27
- background: theming.daff-color($success, 10);
28
- border: 1px solid theming.daff-color($success, 20);
29
- color: theming.daff-text-contrast(theming.daff-color($success, 10));
25
+ background: daff-color($success, 10);
26
+ border: 1px solid daff-color($success, 20);
27
+ color: daff-text-contrast(daff-color($success, 10));
30
28
 
31
29
  .daff-prefix {
32
- color: theming.daff-color($success, 80);
30
+ color: daff-color($success, 80);
33
31
  }
34
32
  }
35
33
 
36
34
  &.daff-warn {
37
- background: theming.daff-color($warn, 10);
38
- border: 1px solid theming.daff-color($warn, 20);
39
- color: theming.daff-text-contrast(theming.daff-color($warn, 10));
35
+ background: daff-color($warn, 10);
36
+ border: 1px solid daff-color($warn, 20);
37
+ color: daff-text-contrast(daff-color($warn, 10));
40
38
 
41
39
  .daff-prefix {
42
- color: theming.daff-color($warn, 80);
40
+ color: daff-color($warn, 80);
43
41
  }
44
42
  }
45
43
 
46
44
  &.daff-critical {
47
- background: theming.daff-color($critical, 10);
48
- border: 1px solid theming.daff-color($critical, 20);
49
- color: theming.daff-text-contrast(theming.daff-color($critical, 10));
45
+ background: daff-color($critical, 10);
46
+ border: 1px solid daff-color($critical, 20);
47
+ color: daff-text-contrast(daff-color($critical, 10));
50
48
 
51
49
  .daff-prefix {
52
- color: theming.daff-color($critical, 80);
50
+ color: daff-color($critical, 80);
53
51
  }
54
52
  }
55
53
  }
56
54
 
57
- @include theming.dark($type) {
58
- background: theming.daff-color($neutral, 90);
59
- border: 1px solid theming.daff-color($neutral, 80);
55
+ @include dark($mode) {
56
+ background: daff-color($neutral, 90);
57
+ border: 1px solid daff-color($neutral, 80);
60
58
  color: $white;
61
59
 
62
60
  &.daff-success {
63
- background: theming.daff-color($success, 90);
64
- border: 1px solid theming.daff-color($success, 80);
65
- color: theming.daff-text-contrast(theming.daff-color($success, 90));
61
+ background: daff-color($success, 90);
62
+ border: 1px solid daff-color($success, 80);
63
+ color: daff-text-contrast(daff-color($success, 90));
66
64
 
67
65
  .daff-prefix {
68
- color: theming.daff-color($success, 30);
66
+ color: daff-color($success, 30);
69
67
  }
70
68
  }
71
69
 
72
70
  &.daff-warn {
73
- background: theming.daff-color($warn, 90);
74
- border: 1px solid theming.daff-color($warn, 80);
75
- color: theming.daff-text-contrast(theming.daff-color($warn, 90));
71
+ background: daff-color($warn, 90);
72
+ border: 1px solid daff-color($warn, 80);
73
+ color: daff-text-contrast(daff-color($warn, 90));
76
74
 
77
75
  .daff-prefix {
78
- color: theming.daff-color($warn, 30);
76
+ color: daff-color($warn, 30);
79
77
  }
80
78
  }
81
79
 
82
80
  &.daff-critical {
83
- background: theming.daff-color($critical, 90);
84
- border: 1px solid theming.daff-color($critical, 80);
85
- color: theming.daff-text-contrast(theming.daff-color($critical, 90));
81
+ background: daff-color($critical, 90);
82
+ border: 1px solid daff-color($critical, 80);
83
+ color: daff-text-contrast(daff-color($critical, 90));
86
84
 
87
85
  .daff-prefix {
88
- color: theming.daff-color($critical, 30);
86
+ color: daff-color($critical, 30);
89
87
  }
90
88
  }
91
89
  }