@daffodil/design 0.79.0 → 0.80.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 (219) hide show
  1. package/accordion/accordion.module.d.ts +3 -1
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +5 -6
  4. package/article/article.module.d.ts +3 -1
  5. package/article/src/article-theme.scss +8 -8
  6. package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
  7. package/breadcrumb/breadcrumb.module.d.ts +3 -1
  8. package/breadcrumb/src/breadcrumb-theme.scss +3 -3
  9. package/button/button.module.d.ts +3 -1
  10. package/button/src/button/basic/button-theme.scss +14 -14
  11. package/button/src/button/button-base.scss +3 -3
  12. package/button/src/button/flat/flat-theme.scss +21 -22
  13. package/button/src/button/icon/icon-theme.scss +13 -14
  14. package/button/src/button/raised/raised-theme.scss +32 -45
  15. package/button/src/button/stroked/stroked-theme.scss +18 -21
  16. package/button/src/button/underline/underline-theme.scss +14 -18
  17. package/callout/callout.module.d.ts +3 -1
  18. package/callout/src/callout-theme.scss +11 -17
  19. package/card/card.module.d.ts +1 -1
  20. package/card/src/card-theme-variants/linkable-card.scss +1 -1
  21. package/card/src/card-theme.scss +9 -9
  22. package/container/container.module.d.ts +1 -1
  23. package/core/public_api.d.ts +1 -0
  24. package/core/selectable/public_api.d.ts +2 -0
  25. package/core/selectable/selectable.d.ts +7 -0
  26. package/core/selectable/selectable.directive.d.ts +17 -0
  27. package/esm2022/accordion/accordion.module.mjs +4 -2
  28. package/esm2022/article/article.module.mjs +4 -2
  29. package/esm2022/atoms/form/checkbox/checkbox.component.mjs +2 -2
  30. package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +2 -2
  31. package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
  32. package/esm2022/atoms/form/radio/radio.component.mjs +2 -2
  33. package/esm2022/atoms/form/radio-set/radio-set.component.mjs +2 -2
  34. package/esm2022/breadcrumb/breadcrumb.module.mjs +4 -2
  35. package/esm2022/button/button.module.mjs +4 -2
  36. package/esm2022/callout/callout.module.mjs +4 -2
  37. package/esm2022/card/card.module.mjs +2 -2
  38. package/esm2022/container/container/container.component.mjs +2 -2
  39. package/esm2022/container/container.module.mjs +2 -2
  40. package/esm2022/core/public_api.mjs +2 -1
  41. package/esm2022/core/selectable/public_api.mjs +2 -0
  42. package/esm2022/core/selectable/selectable.directive.mjs +41 -0
  43. package/esm2022/core/selectable/selectable.mjs +2 -0
  44. package/esm2022/hero/hero.module.mjs +2 -2
  45. package/esm2022/image/image.module.mjs +2 -2
  46. package/esm2022/link-set/link-set.module.mjs +2 -2
  47. package/esm2022/list/examples/basic-list/basic-list.component.mjs +1 -1
  48. package/esm2022/list/examples/icon-list/icon-list.component.mjs +2 -2
  49. package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +1 -1
  50. package/esm2022/list/examples/nav-list/nav-list.component.mjs +2 -2
  51. package/esm2022/list/list/list.component.mjs +2 -2
  52. package/esm2022/list/list-item/list-item.component.mjs +10 -3
  53. package/esm2022/list/list.module.mjs +2 -2
  54. package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
  55. package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +1 -1
  56. package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +1 -1
  57. package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +1 -1
  58. package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
  59. package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +26 -39
  60. package/esm2022/modal/modal.module.mjs +2 -2
  61. package/esm2022/navbar/navbar.module.mjs +2 -2
  62. package/esm2022/notification/notification.module.mjs +2 -2
  63. package/esm2022/paginator/paginator.module.mjs +2 -2
  64. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  65. package/esm2022/sidebar/sidebar.module.mjs +2 -2
  66. package/esm2022/switch/daffodil-design-switch.mjs +5 -0
  67. package/esm2022/switch/examples/basic-switch/basic-switch.component.mjs +23 -0
  68. package/esm2022/switch/examples/daffodil-design-switch-examples.mjs +5 -0
  69. package/esm2022/switch/examples/disabled-switch/disabled-switch.component.mjs +20 -0
  70. package/esm2022/switch/examples/examples.mjs +13 -0
  71. package/esm2022/switch/examples/index.mjs +2 -0
  72. package/esm2022/switch/examples/loading-switch/loading-switch.component.mjs +20 -0
  73. package/esm2022/switch/examples/public_api.mjs +7 -0
  74. package/esm2022/switch/examples/switch-error/switch-error.component.mjs +22 -0
  75. package/esm2022/switch/examples/switch-label-positions/switch-label-positions.component.mjs +31 -0
  76. package/esm2022/switch/index.mjs +2 -0
  77. package/esm2022/switch/public_api.mjs +3 -0
  78. package/esm2022/switch/switch/label-position.mjs +11 -0
  79. package/esm2022/switch/switch/switch.component.mjs +126 -0
  80. package/esm2022/switch/switch.mjs +7 -0
  81. package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +3 -3
  82. package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +22 -21
  83. package/esm2022/tabs/tabs/tabs.component.mjs +4 -8
  84. package/esm2022/toast/toast/toast.component.mjs +3 -3
  85. package/esm2022/toast/toast.module.mjs +2 -2
  86. package/esm2022/tree/tree.module.mjs +2 -2
  87. package/fesm2022/daffodil-design-accordion.mjs +3 -1
  88. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-article.mjs +3 -1
  90. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-breadcrumb.mjs +3 -1
  92. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-button.mjs +3 -1
  94. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-callout.mjs +3 -1
  96. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-card.mjs +1 -1
  98. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-container.mjs +3 -3
  100. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-hero.mjs +1 -1
  102. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-image.mjs +1 -1
  104. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-link-set.mjs +1 -1
  106. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  107. package/fesm2022/daffodil-design-list-examples.mjs +4 -4
  108. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-list.mjs +12 -5
  110. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  111. package/fesm2022/daffodil-design-loading-icon.mjs +1 -1
  112. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  113. package/fesm2022/daffodil-design-media-gallery-examples.mjs +3 -3
  114. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  115. package/fesm2022/daffodil-design-media-gallery.mjs +25 -40
  116. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  117. package/fesm2022/daffodil-design-modal.mjs +1 -1
  118. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  119. package/fesm2022/daffodil-design-navbar.mjs +1 -1
  120. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  121. package/fesm2022/daffodil-design-notification.mjs +1 -1
  122. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  123. package/fesm2022/daffodil-design-paginator.mjs +1 -1
  124. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  125. package/fesm2022/daffodil-design-progress-bar.mjs +1 -1
  126. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-sidebar.mjs +1 -1
  128. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-switch-examples.mjs +109 -0
  130. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -0
  131. package/fesm2022/daffodil-design-switch.mjs +148 -0
  132. package/fesm2022/daffodil-design-switch.mjs.map +1 -0
  133. package/fesm2022/daffodil-design-tabs-examples.mjs +2 -2
  134. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  135. package/fesm2022/daffodil-design-tabs.mjs +23 -26
  136. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  137. package/fesm2022/daffodil-design-toast.mjs +3 -3
  138. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  139. package/fesm2022/daffodil-design-tree.mjs +1 -1
  140. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  141. package/fesm2022/daffodil-design.mjs +45 -6
  142. package/fesm2022/daffodil-design.mjs.map +1 -1
  143. package/hero/hero.module.d.ts +1 -1
  144. package/hero/src/hero-theme.scss +11 -17
  145. package/image/image.module.d.ts +1 -1
  146. package/link-set/link-set.module.d.ts +1 -1
  147. package/list/list-item/list-item.component.d.ts +3 -1
  148. package/list/list.module.d.ts +1 -1
  149. package/list/src/list-theme.scss +13 -9
  150. package/loading-icon/loading-icon.module.d.ts +1 -1
  151. package/loading-icon/src/loading-icon-theme.scss +7 -7
  152. package/media-gallery/media-gallery.module.d.ts +1 -1
  153. package/media-gallery/src/media-gallery-theme.scss +3 -3
  154. package/media-gallery/thumbnail/thumbnail.directive.d.ts +9 -18
  155. package/menu/src/menu-theme.scss +5 -5
  156. package/modal/modal.module.d.ts +1 -1
  157. package/modal/src/modal-theme.scss +1 -1
  158. package/navbar/navbar.module.d.ts +1 -1
  159. package/navbar/src/navbar-theme.scss +8 -8
  160. package/notification/notification.module.d.ts +1 -1
  161. package/notification/src/notification-theme.scss +12 -12
  162. package/package.json +1 -1
  163. package/paginator/paginator.module.d.ts +1 -1
  164. package/paginator/src/paginator-theme.scss +11 -10
  165. package/progress-bar/progress-bar.module.d.ts +1 -1
  166. package/progress-bar/src/progress-bar-theme.scss +10 -10
  167. package/scss/accessibility/_index.scss +1 -1
  168. package/scss/core/_index.scss +1 -2
  169. package/scss/core/error/error-to-string.scss +13 -0
  170. package/scss/core/map/map-deep-check/map-deep-check.scss +2 -1
  171. package/scss/core/map/map-deep-get/map-deep-get.scss +1 -0
  172. package/scss/core/map/map-get/map-get.scss +23 -0
  173. package/scss/core/map/map-get/map-get.spec.scss +65 -0
  174. package/scss/core/string/split/string-split.scss +10 -7
  175. package/scss/global.scss +1 -0
  176. package/scss/interactions/_index.scss +1 -1
  177. package/scss/layout/_index.scss +1 -1
  178. package/scss/state/skeleton/_mixins.scss +2 -2
  179. package/scss/theme.scss +2 -0
  180. package/scss/theming/_configure-theme.scss +2 -2
  181. package/scss/theming/_daff-theme.scss +14 -4
  182. package/scss/theming/_index.scss +1 -1
  183. package/scss/theming/_theme-css-variables.scss +14 -12
  184. package/scss/theming/contrast/luminance/luminance.scss +8 -6
  185. package/scss/theming/illuminate/illuminate.scss +20 -17
  186. package/scss/typography/utilities/_index.scss +1 -1
  187. package/scss/typography/utilities/_variables.scss +1 -1
  188. package/sidebar/sidebar.module.d.ts +1 -1
  189. package/sidebar/src/sidebar-theme.scss +3 -3
  190. package/src/atoms/form/form-field/form-field/form-field-theme.scss +6 -6
  191. package/src/atoms/form/input/input-theme.scss +2 -2
  192. package/src/atoms/form/native-select/native-select-theme.scss +3 -3
  193. package/switch/README.md +61 -0
  194. package/switch/examples/basic-switch/basic-switch.component.d.ts +8 -0
  195. package/switch/examples/disabled-switch/disabled-switch.component.d.ts +7 -0
  196. package/switch/examples/examples.d.ts +5 -0
  197. package/switch/examples/index.d.ts +1 -0
  198. package/switch/examples/loading-switch/loading-switch.component.d.ts +7 -0
  199. package/switch/examples/public_api.d.ts +6 -0
  200. package/switch/examples/switch-error/switch-error.component.d.ts +7 -0
  201. package/switch/examples/switch-label-positions/switch-label-positions.component.d.ts +12 -0
  202. package/switch/index.d.ts +1 -0
  203. package/switch/public_api.d.ts +2 -0
  204. package/switch/src/switch-theme.scss +31 -0
  205. package/switch/switch/label-position.d.ts +10 -0
  206. package/switch/switch/switch.component.d.ts +53 -0
  207. package/switch/switch.d.ts +3 -0
  208. package/tabs/src/tabs-theme.scss +9 -9
  209. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +5 -4
  210. package/tabs/tabs/tabs.component.d.ts +1 -2
  211. package/toast/src/toast-theme.scss +18 -18
  212. package/toast/toast.module.d.ts +1 -1
  213. package/tree/src/tree-theme.scss +11 -11
  214. package/tree/tree.module.d.ts +1 -1
  215. package/scss/core/map/map-deep-check/map-deep-check.spec.scss +0 -43
  216. package/scss/core/map/map-deep-get/map-deep-get.spec.scss +0 -25
  217. package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
  218. package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
  219. package/src/atoms/form/radio/radio.scss +0 -0
@@ -0,0 +1,31 @@
1
+ @use 'sass:map';
2
+ @use '../../scss/core';
3
+ @use '../../scss/theming';
4
+
5
+ @mixin daff-switch-theme($theme) {
6
+ $primary: core.daff-map-get($theme, primary);
7
+ $base: core.daff-map-get($theme, 'core', 'base');
8
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
9
+ $white: core.daff-map-get($theme, 'core', 'white');
10
+ $black: core.daff-map-get($theme, 'core', 'black');
11
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
12
+
13
+ .daff-switch {
14
+ &__toggle {
15
+ background-color: theming.daff-illuminate($base, $neutral, 3);
16
+ border: 2px solid transparent;
17
+
18
+ &:focus-within {
19
+ border: 2px solid theming.daff-illuminate($base, $neutral, 2);
20
+ }
21
+
22
+ &.daff-checked {
23
+ background-color: theming.daff-color($primary);
24
+ }
25
+
26
+ &::before {
27
+ background-color: $base;
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,10 @@
1
+ export type DaffLabelPosition = 'daff-left' | 'daff-right' | 'daff-top' | 'daff-bottom';
2
+ /**
3
+ * The position of the label relative to the switch.
4
+ */
5
+ export declare enum DaffLabelPositionEnum {
6
+ LEFT = "daff-left",
7
+ RIGHT = "daff-right",
8
+ TOP = "daff-top",
9
+ BOTTOM = "daff-bottom"
10
+ }
@@ -0,0 +1,53 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { DaffLabelPosition } from './label-position';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * The switch component provides a way to toggle between two settings.
6
+ *
7
+ * ## Usage
8
+ * <daff-switch [checked]="checked" loading="loading" [error]="true" [labelPosition]="daff-left">
9
+ * Label
10
+ * <daff-error-message>Error message</daff-error-message>
11
+ * </daff-switch>
12
+ */
13
+ export declare class DaffSwitchComponent {
14
+ /**
15
+ * Whether the switch is disabled and/or loading.
16
+ */
17
+ get disabled(): any;
18
+ set disabled(value: any);
19
+ get disabledAttribute(): boolean;
20
+ get ariaDisabled(): boolean;
21
+ get classes(): string;
22
+ /**
23
+ * Whether the switch is loading.
24
+ */
25
+ loading: boolean;
26
+ /**
27
+ * Current state of switch (on/off).
28
+ */
29
+ checked: boolean;
30
+ /**
31
+ * The position of the label relative to the switch. Defaults to 'daff-left'.
32
+ */
33
+ labelPosition: DaffLabelPosition;
34
+ /**
35
+ * Whether the switch shows an error.
36
+ */
37
+ error: boolean;
38
+ _disabled: boolean;
39
+ handleKeydown(event: KeyboardEvent): void;
40
+ /**
41
+ * @docs-private
42
+ */
43
+ private externalAriaLabel;
44
+ /**
45
+ * aria-label for the switch.
46
+ */
47
+ ariaLabel: string;
48
+ id: string;
49
+ toggled: EventEmitter<boolean>;
50
+ onToggle(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffSwitchComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffSwitchComponent, "daff-switch", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "error": { "alias": "error"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "toggled": "toggled"; }, never, ["*", "daff-error-message"], true, never>;
53
+ }
@@ -0,0 +1,3 @@
1
+ import { DaffErrorMessageModule } from '@daffodil/design';
2
+ import { DaffSwitchComponent } from './switch/switch.component';
3
+ export declare const DAFF_SWITCH_COMPONENTS: readonly [typeof DaffSwitchComponent, typeof DaffErrorMessageModule];
@@ -3,19 +3,19 @@
3
3
  @use '../../scss/theming';
4
4
 
5
5
  @mixin daff-tabs-theme($theme) {
6
- $primary: map.get($theme, primary);
7
- $secondary: map.get($theme, secondary);
8
- $tertiary: map.get($theme, tertiary);
9
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
10
- $base: core.daff-map-deep-get($theme, 'core.base');
11
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
12
- $white: core.daff-map-deep-get($theme, 'core.white');
13
- $black: core.daff-map-deep-get($theme, 'core.black');
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
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
10
+ $base: core.daff-map-get($theme, 'core', 'base');
11
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
12
+ $white: core.daff-map-get($theme, 'core', 'white');
13
+ $black: core.daff-map-get($theme, 'core', 'black');
14
14
 
15
15
  .daff-tab-activator {
16
16
  border-bottom: 2px solid theming.daff-illuminate($base, $neutral, 2);
17
17
 
18
- &.selected {
18
+ &.daff-selected {
19
19
  border-bottom: 2px solid theming.daff-color($primary);
20
20
  }
21
21
  }
@@ -1,7 +1,10 @@
1
1
  import { OnInit, ElementRef } from '@angular/core';
2
+ import { DaffSelectableDirective } from '@daffodil/design';
2
3
  import * as i0 from "@angular/core";
4
+ import * as i1 from "@daffodil/design";
3
5
  export declare class DaffTabActivatorComponent implements OnInit {
4
6
  private el;
7
+ private selectableDirective;
5
8
  /**
6
9
  * @docs-private
7
10
  */
@@ -10,8 +13,6 @@ export declare class DaffTabActivatorComponent implements OnInit {
10
13
  * Sets the `role` to tab.
11
14
  */
12
15
  role: string;
13
- /** Whether or not a tab is selected */
14
- selected: boolean;
15
16
  /**
16
17
  * Sets `aria-selected` to true if the component is selected and false if it's not selected.
17
18
  */
@@ -21,17 +22,17 @@ export declare class DaffTabActivatorComponent implements OnInit {
21
22
  */
22
23
  get tabIndex(): "0" | "-1";
23
24
  ariaControls: string;
25
+ constructor(el: ElementRef, selectableDirective: DaffSelectableDirective);
24
26
  /**
25
27
  * The html id of the tab activator component
26
28
  */
27
29
  tabActivatorId: string;
28
30
  panelId: string;
29
31
  ngOnInit(): void;
30
- constructor(el: ElementRef);
31
32
  /**
32
33
  * Sets focus to the native element of the component
33
34
  */
34
35
  focus(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffTabActivatorComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabActivatorComponent, "button[daff-tab-activator],a[daff-tab-activator]", never, { "selected": { "alias": "selected"; "required": false; }; "tabActivatorId": { "alias": "tabActivatorId"; "required": false; }; "panelId": { "alias": "panelId"; "required": false; }; }, {}, never, ["*"], true, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabActivatorComponent, "button[daff-tab-activator],a[daff-tab-activator]", never, { "tabActivatorId": { "alias": "tabActivatorId"; "required": false; }; "panelId": { "alias": "panelId"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.DaffSelectableDirective; inputs: { "selected": "selected"; }; outputs: {}; }]>;
37
38
  }
@@ -3,7 +3,6 @@ import { DaffTabComponent } from './tab/tab.component';
3
3
  import { DaffTabActivatorComponent } from './tab-activator/tab-activator.component';
4
4
  import { DaffTabLabelComponent } from './tab-label/tab-label.component';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "@daffodil/design";
7
6
  /**
8
7
  * Tabs provide a way to navigate between panels that display related content.
9
8
  *
@@ -100,5 +99,5 @@ export declare class DaffTabsComponent implements AfterContentInit {
100
99
  */
101
100
  selectLast(event: KeyboardEvent | null): void;
102
101
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffTabsComponent, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabsComponent, "daff-tabs", never, { "initiallySelected": { "alias": "initiallySelected"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "tabChange": "tabChange"; }, ["_labels", "_tabs"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }]>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffTabsComponent, "daff-tabs", never, { "initiallySelected": { "alias": "initiallySelected"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; }, { "tabChange": "tabChange"; }, ["_labels", "_tabs"], never, true, never>;
104
103
  }
@@ -3,25 +3,25 @@
3
3
  @use '../../scss/theming';
4
4
 
5
5
  @mixin daff-toast-theme($theme) {
6
- $primary: map.get($theme, primary);
7
- $secondary: map.get($theme, secondary);
8
- $tertiary: map.get($theme, tertiary);
9
- $info: map.get($theme, info);
10
- $warn: map.get($theme, warn);
11
- $critical: map.get($theme, critical);
12
- $success: map.get($theme, success);
13
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
14
- $base: core.daff-map-deep-get($theme, 'core.base');
15
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
16
- $white: core.daff-map-deep-get($theme, 'core.white');
17
- $black: core.daff-map-deep-get($theme, 'core.black');
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
+ $white: core.daff-map-get($theme, 'core', 'white');
17
+ $black: core.daff-map-get($theme, 'core', 'black');
18
18
 
19
19
  .daff-toast {
20
20
  background: theming.daff-illuminate($base, $neutral, 1);
21
- box-shadow: 0 -16px 24px -4px rgba($black, 0.04), 0 8px 24px -4px rgba($black, 0.10);
21
+ box-shadow: 0 -16px 24px -4px rgba($black, 0.04), 0 8px 24px -4px rgba($black, 0.1);
22
22
  color: theming.daff-text-contrast($base);
23
23
 
24
- &:before {
24
+ &::before {
25
25
  background: theming.daff-illuminate($base, $neutral, 4);
26
26
  }
27
27
 
@@ -32,8 +32,8 @@
32
32
  .daff-prefix {
33
33
  color: theming.daff-color($success);
34
34
  }
35
-
36
- &:before {
35
+
36
+ &::before {
37
37
  background: theming.daff-color($success);
38
38
  }
39
39
  }
@@ -46,7 +46,7 @@
46
46
  color: theming.daff-color($warn);
47
47
  }
48
48
 
49
- &:before {
49
+ &::before {
50
50
  background: theming.daff-color($warn);
51
51
  }
52
52
  }
@@ -59,7 +59,7 @@
59
59
  color: theming.daff-color($critical);
60
60
  }
61
61
 
62
- &:before {
62
+ &::before {
63
63
  background: theming.daff-color($critical);
64
64
  }
65
65
  }
@@ -10,7 +10,7 @@ import * as i8 from "./toast-actions/toast-actions.directive";
10
10
  import * as i9 from "./toast-title/toast-title.directive";
11
11
  import * as i10 from "./toast-message/toast-message.directive";
12
12
  /**
13
- * @deprecated in favor of {@link provideDaffToast} Deprecated in version 0.78.0. Will be removed in version 0.81.0.
13
+ * @deprecated in favor of {@link provideDaffToast}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
14
14
  */
15
15
  export declare class DaffToastModule {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastModule, never>;
@@ -3,18 +3,17 @@
3
3
  @use '../../scss/core';
4
4
 
5
5
  @mixin daff-tree-theme($theme) {
6
- $primary: map.get($theme, primary);
7
- $secondary: map.get($theme, secondary);
8
- $tertiary: map.get($theme, tertiary);
9
- $base: core.daff-map-deep-get($theme, 'core.base');
10
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
11
- $white: core.daff-map-deep-get($theme, 'core.white');
12
- $black: core.daff-map-deep-get($theme, 'core.black');
13
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
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
+ $base: core.daff-map-get($theme, 'core', 'base');
10
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
11
+ $white: core.daff-map-get($theme, 'core', 'white');
12
+ $black: core.daff-map-get($theme, 'core', 'black');
13
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
14
 
15
15
  .daff-tree-item {
16
16
  $root: &;
17
-
18
17
  background-color: $base;
19
18
  color: theming.daff-illuminate($base-contrast, $neutral, 2);
20
19
 
@@ -22,15 +21,16 @@
22
21
  background-color: theming.daff-illuminate($base, $neutral, 2);
23
22
  }
24
23
 
25
- &:after {
24
+ &::after {
26
25
  border-color: currentColor;
27
26
  }
28
27
 
28
+ // stylelint-disable selector-class-pattern
29
29
  &.selected {
30
30
  background-color: theming.daff-illuminate($base, $neutral, 2);
31
31
  color: $base-contrast;
32
32
 
33
- &:before {
33
+ &::before {
34
34
  background-color: theming.daff-color($primary);
35
35
  }
36
36
  }
@@ -3,7 +3,7 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "./tree/tree.component";
4
4
  import * as i3 from "./tree-item/tree-item.directive";
5
5
  /**
6
- * @deprecated in favor of {@link DAFF_TREE_COMPONENTS} Deprecated in version 0.78.0. Will be removed in version 0.81.0.
6
+ * @deprecated in favor of {@link DAFF_TREE_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
7
7
  */
8
8
  export declare class DaffTreeModule {
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffTreeModule, never>;
@@ -1,43 +0,0 @@
1
- @use 'true' as *;
2
- @use './map-deep-check' as *;
3
-
4
- @include describe('map-deep-check') {
5
- $map: (
6
- 'nested': (
7
- 'string': '1',
8
- 'number': 2,
9
- 'map': (
10
- 'string': '3',
11
- 'number': 4
12
- )
13
- )
14
- );
15
-
16
- @include it('returns `true` if the map contains the key') {
17
- @include assert-equal(
18
- daff-map-deep-check($map, ('nested', 'string')),
19
- true
20
- );
21
- @include assert-equal(
22
- daff-map-deep-check($map, ('nested', 'number')),
23
- true
24
- );
25
- @include assert-equal(daff-map-deep-check($map, ('nested', 'map')), true);
26
- @include assert-equal(
27
- daff-map-deep-check($map, ('nested', 'map', 'string')),
28
- true
29
- );
30
- @include assert-equal(
31
- daff-map-deep-check($map, ('nested', 'map', 'number')),
32
- true
33
- );
34
- }
35
-
36
- @include it('should return false if the $key is not in the list') {
37
- @include assert-equal(
38
- daff-map-deep-check($map, ('UNREALKEY', 'TEST')),
39
- false
40
- );
41
- @include assert-equal(daff-map-deep-check($map, ('SOMEOTHER')), false);
42
- }
43
- }
@@ -1,25 +0,0 @@
1
- @use 'true' as *;
2
- @use './map-deep-get' as *;
3
-
4
- @include describe('map-deep-get') {
5
- $nested-map: (
6
- 'string': '3',
7
- 'number': 4
8
- );
9
-
10
- $map: (
11
- 'nested': (
12
- 'string': '1',
13
- 'number': 2,
14
- 'map': $nested-map
15
- )
16
- );
17
-
18
- @include it('returns the value of the nested key if it exists in the map') {
19
- @include assert-equal(daff-map-deep-get($map, ('nested.string')), '1');
20
- @include assert-equal(daff-map-deep-get($map, ('nested.number')), 2);
21
- @include assert-equal(daff-map-deep-get($map, ('nested.map')), $nested-map);
22
- @include assert-equal(daff-map-deep-get($map, ('nested.map.string')), '3');
23
- @include assert-equal(daff-map-deep-get($map, ('nested.map.number')), 4);
24
- }
25
- }
File without changes