@daffodil/design 0.83.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 (251) hide show
  1. package/accordion/src/accordion-theme.scss +11 -13
  2. package/article/src/article-theme.scss +36 -38
  3. package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
  4. package/atoms/form/error-message/error-message.component.d.ts +4 -1
  5. package/atoms/form/error-message/error-message.module.d.ts +4 -1
  6. package/atoms/form/form-field/form-field/form-field.component.d.ts +40 -25
  7. package/atoms/form/form-field/form-field-control.d.ts +19 -4
  8. package/atoms/form/form-field/form-field-state.d.ts +7 -0
  9. package/atoms/form/form-field/form-field.d.ts +10 -0
  10. package/atoms/form/form-field/form-field.module.d.ts +6 -4
  11. package/atoms/form/form-field/public_api.d.ts +2 -1
  12. package/atoms/form/form-label/form-label.directive.d.ts +4 -1
  13. package/atoms/form/form-label/form-label.module.d.ts +4 -1
  14. package/atoms/form/hint/hint.component.d.ts +13 -0
  15. package/atoms/form/hint/public_api.d.ts +1 -0
  16. package/atoms/form/native-select/native-select.component.d.ts +5 -1
  17. package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
  18. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
  19. package/breadcrumb/src/breadcrumb-theme.scss +14 -7
  20. package/button/button/button-base.directive.d.ts +6 -23
  21. package/button/button/raised/raised.component.d.ts +1 -1
  22. package/button/src/button/basic/button-theme.scss +84 -114
  23. package/button/src/button/button-base.scss +17 -4
  24. package/button/src/button/flat/flat-theme.scss +32 -68
  25. package/button/src/button/icon/icon-theme.scss +78 -106
  26. package/button/src/button/raised/raised-theme.scss +30 -32
  27. package/button/src/button/stroked/stroked-theme.scss +35 -69
  28. package/button/src/button/underline/underline-theme.scss +34 -50
  29. package/callout/src/callout-theme.scss +37 -22
  30. package/card/card/basic/basic.component.d.ts +3 -0
  31. package/card/card/raised/raised.component.d.ts +3 -0
  32. package/card/card/stroked/stroked.component.d.ts +3 -0
  33. package/card/src/card/raised/raised-theme.scss +9 -11
  34. package/card/src/card/stroked/stroked-theme.scss +32 -34
  35. package/card/src/card-base-theme.scss +42 -44
  36. package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
  37. package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
  38. package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
  39. package/core/colorable/colorable.d.ts +2 -2
  40. package/core/colorable/colorable.directive.d.ts +8 -0
  41. package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
  42. package/core/openable/openable.directive.d.ts +3 -0
  43. package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
  44. package/core/prefix-suffix/prefix.directive.d.ts +4 -1
  45. package/core/prefix-suffix/public_api.d.ts +0 -4
  46. package/core/prefix-suffix/suffix.directive.d.ts +4 -1
  47. package/core/sizable/sizable.directive.d.ts +8 -0
  48. package/core/statusable/statusable.directive.d.ts +2 -0
  49. package/core/text-alignable/text-alignable.directive.d.ts +6 -1
  50. package/fesm2022/daffodil-design-accordion-examples.mjs +10 -10
  51. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-accordion.mjs +15 -15
  53. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-article-examples.mjs +31 -31
  55. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-article.mjs +11 -11
  57. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
  59. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-breadcrumb.mjs +15 -12
  61. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-button-examples.mjs +41 -37
  63. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-button.mjs +46 -53
  65. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
  67. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-callout.mjs +23 -23
  69. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-card-examples.mjs +19 -19
  71. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-card.mjs +44 -35
  73. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-checkbox-examples.mjs +13 -7
  75. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-container-examples.mjs +4 -4
  77. package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-container.mjs +8 -8
  79. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
  81. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-hero.mjs +23 -23
  83. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-image-examples.mjs +10 -10
  85. package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-image.mjs +9 -9
  87. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-input-examples.mjs +72 -28
  89. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  90. package/fesm2022/daffodil-design-input.mjs +96 -0
  91. package/fesm2022/daffodil-design-input.mjs.map +1 -0
  92. package/fesm2022/daffodil-design-link-set.mjs +17 -17
  93. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  94. package/fesm2022/daffodil-design-list-examples.mjs +13 -13
  95. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  96. package/fesm2022/daffodil-design-list.mjs +12 -12
  97. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  98. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  99. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  100. package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
  101. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  102. package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
  103. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  104. package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
  105. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  106. package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
  107. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  108. package/fesm2022/daffodil-design-menu.mjs +39 -26
  109. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  110. package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
  111. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  112. package/fesm2022/daffodil-design-modal.mjs +61 -28
  113. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  114. package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
  115. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  116. package/fesm2022/daffodil-design-navbar.mjs +9 -9
  117. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  118. package/fesm2022/daffodil-design-notification-examples.mjs +17 -22
  119. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  120. package/fesm2022/daffodil-design-notification.mjs +51 -24
  121. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  122. package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
  123. package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
  124. package/fesm2022/daffodil-design-paginator.mjs +9 -9
  125. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  126. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
  127. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  128. package/fesm2022/daffodil-design-progress-bar.mjs +30 -12
  129. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  130. package/fesm2022/daffodil-design-quantity-field-examples.mjs +23 -22
  131. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  132. package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
  133. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
  134. package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
  135. package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
  136. package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
  137. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  138. package/fesm2022/daffodil-design-sidebar.mjs +27 -27
  139. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  140. package/fesm2022/daffodil-design-switch-examples.mjs +17 -17
  141. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  142. package/fesm2022/daffodil-design-switch.mjs +6 -7
  143. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  144. package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
  145. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  146. package/fesm2022/daffodil-design-tabs.mjs +38 -19
  147. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  148. package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
  149. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
  150. package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
  151. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  152. package/fesm2022/daffodil-design-toast-examples.mjs +22 -16
  153. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  154. package/fesm2022/daffodil-design-toast.mjs +24 -26
  155. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  156. package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
  157. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  158. package/fesm2022/daffodil-design-tree.mjs +30 -16
  159. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  160. package/fesm2022/daffodil-design-youtube-player.mjs +10 -7
  161. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  162. package/fesm2022/daffodil-design.mjs +531 -818
  163. package/fesm2022/daffodil-design.mjs.map +1 -1
  164. package/hero/src/hero-theme.scss +37 -22
  165. package/input/README.md +66 -0
  166. package/input/examples/examples.d.ts +2 -2
  167. package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
  168. package/input/examples/input-hint/input-hint.component.d.ts +5 -0
  169. package/input/examples/input-hint-and-error/input-hint-and-error.component.d.ts +9 -0
  170. package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
  171. package/input/index.d.ts +1 -0
  172. package/{atoms/form/input → input}/input.component.d.ts +16 -20
  173. package/input/input.module.d.ts +10 -0
  174. package/list/list/list.component.d.ts +1 -1
  175. package/list/src/list-theme.scss +20 -26
  176. package/loading-icon/src/loading-icon-theme.scss +20 -22
  177. package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
  178. package/media-gallery/src/media-gallery-theme.scss +10 -12
  179. package/menu/helpers/create-overlay.d.ts +1 -1
  180. package/menu/menu/menu.component.d.ts +15 -0
  181. package/menu/menu-activator/menu-activator.component.d.ts +3 -0
  182. package/menu/src/menu-theme.scss +34 -16
  183. package/modal/modal/modal.component.d.ts +21 -0
  184. package/modal/modal-actions/modal-actions.component.d.ts +3 -0
  185. package/modal/modal-close/modal-close.directive.d.ts +3 -0
  186. package/modal/modal-content/modal-content.component.d.ts +3 -0
  187. package/modal/modal-title/modal-title.directive.d.ts +3 -0
  188. package/modal/src/modal-theme.scss +2 -2
  189. package/navbar/src/navbar-theme.scss +21 -18
  190. package/notification/README.md +11 -12
  191. package/notification/notification/notification.component.d.ts +17 -2
  192. package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
  193. package/notification/notification-message/notification-message.directive.d.ts +3 -0
  194. package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
  195. package/notification/notification-title/notification-title.directive.d.ts +3 -0
  196. package/notification/notification.d.ts +2 -2
  197. package/notification/src/notification-theme.scss +44 -46
  198. package/package.json +1 -1
  199. package/paginator/src/paginator-theme.scss +26 -23
  200. package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
  201. package/progress-bar/progress-bar.component.d.ts +15 -0
  202. package/progress-bar/src/progress-bar-theme.scss +18 -20
  203. package/public_api.d.ts +1 -2
  204. package/quantity-field/README.md +63 -0
  205. package/quantity-field/index.d.ts +1 -0
  206. package/quantity-field/public_api.d.ts +2 -0
  207. package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +5 -4
  208. package/quantity-field/quantity-field.module.d.ts +11 -0
  209. package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +5 -2
  210. package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
  211. package/scss/state/skeleton/_mixins.scss +22 -13
  212. package/scss/theme.scss +2 -2
  213. package/scss/theming/_configure-theme.scss +16 -16
  214. package/scss/theming/_get-base-color.scss +19 -0
  215. package/scss/theming/_get-palette.scss +27 -0
  216. package/scss/theming/_get-theme-mode.scss +9 -0
  217. package/scss/theming/_index.scss +3 -0
  218. package/scss/theming/_light-dark.scss +4 -4
  219. package/scss/theming/_theme-css-variables.scss +20 -20
  220. package/sidebar/src/sidebar-theme.scss +4 -5
  221. package/src/atoms/form/error-message/error-message-theme.scss +4 -2
  222. package/src/atoms/form/form-field/form-field/form-field-theme.scss +47 -24
  223. package/src/atoms/form/hint/hint-theme.scss +22 -0
  224. package/src/atoms/form/native-select/native-select-theme.scss +5 -7
  225. package/switch/src/switch-theme.scss +13 -15
  226. package/switch/switch.d.ts +2 -2
  227. package/tabs/src/tabs-theme.scss +13 -15
  228. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
  229. package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
  230. package/tabs/tabs/tabs.component.d.ts +3 -0
  231. package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
  232. package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
  233. package/toast/src/toast-theme.scss +36 -38
  234. package/toast/toast/toast.component.d.ts +3 -5
  235. package/tree/interfaces/tree-data.d.ts +15 -0
  236. package/tree/interfaces/tree-render-mode.d.ts +2 -2
  237. package/tree/src/tree-theme.scss +20 -22
  238. package/tree/tree/tree-notifier.service.d.ts +3 -3
  239. package/tree/tree/tree.component.d.ts +13 -3
  240. package/tree/tree-item/tree-item.directive.d.ts +6 -0
  241. package/youtube-player/youtube-player.component.d.ts +3 -0
  242. package/atoms/form/input/input.module.d.ts +0 -8
  243. package/atoms/form/quantity-field/public_api.d.ts +0 -4
  244. package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
  245. package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
  246. package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
  247. package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
  248. package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
  249. package/input/examples/basic-input/basic-input.component.d.ts +0 -5
  250. package/src/atoms/form/input/input-theme.scss +0 -16
  251. /package/{atoms/form/input → input}/public_api.d.ts +0 -0
@@ -1,26 +1,24 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-switch-theme($theme) {
6
- $primary: core.daff-map-get($theme, primary);
7
- $white: core.daff-map-get($theme, 'core', 'white');
8
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
9
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $primary: daff-get-palette($theme, primary);
5
+ $white: daff-get-base-color($theme, 'white');
6
+ $neutral: daff-get-palette($theme, neutral);
7
+ $mode: daff-get-theme-mode($theme);
10
8
 
11
9
  .daff-switch {
12
10
  &__toggle {
13
11
  border: 2px solid transparent;
14
12
 
15
13
  &.daff-checked {
16
- background-color: theming.daff-color($primary);
14
+ background-color: daff-color($primary);
17
15
  }
18
16
 
19
- @include theming.light($type) {
20
- background-color: theming.daff-color($neutral, 30);
17
+ @include light($mode) {
18
+ background-color: daff-color($neutral, 30);
21
19
 
22
20
  &:focus-within {
23
- border: 2px solid theming.daff-color($neutral, 20);
21
+ border: 2px solid daff-color($neutral, 20);
24
22
  }
25
23
 
26
24
  &::before {
@@ -28,15 +26,15 @@
28
26
  }
29
27
  }
30
28
 
31
- @include theming.dark($type) {
32
- background-color: theming.daff-color($neutral, 80);
29
+ @include dark($mode) {
30
+ background-color: daff-color($neutral, 80);
33
31
 
34
32
  &:focus-within {
35
- border: 2px solid theming.daff-color($neutral, 90);
33
+ border: 2px solid daff-color($neutral, 90);
36
34
  }
37
35
 
38
36
  &::before {
39
- background-color: theming.daff-color($neutral, 40);
37
+ background-color: daff-color($neutral, 40);
40
38
  }
41
39
 
42
40
  &.daff-checked {
@@ -1,6 +1,6 @@
1
- import { DaffErrorMessageModule } from '@daffodil/design';
1
+ import { DaffErrorMessageComponent } from '@daffodil/design';
2
2
  import { DaffSwitchComponent } from './switch/switch.component';
3
3
  /**
4
4
  * @docs-private
5
5
  */
6
- export declare const DAFF_SWITCH_COMPONENTS: readonly [typeof DaffSwitchComponent, typeof DaffErrorMessageModule];
6
+ export declare const DAFF_SWITCH_COMPONENTS: readonly [typeof DaffSwitchComponent, typeof DaffErrorMessageComponent];
@@ -1,47 +1,45 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-tabs-theme($theme) {
6
- $primary: core.daff-map-get($theme, primary);
7
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
8
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
9
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $primary: daff-get-palette($theme, primary);
5
+ $neutral: daff-get-palette($theme, neutral);
6
+ $base-contrast: daff-get-base-color($theme, base-contrast);
7
+ $mode: daff-get-theme-mode($theme);
10
8
 
11
- @include theming.light($type) {
9
+ @include light($mode) {
12
10
  .daff-tabs {
13
11
  &__tab-list {
14
12
  &::after {
15
- background: theming.daff-color($neutral, 20);
13
+ background: daff-color($neutral, 20);
16
14
  }
17
15
  }
18
16
  }
19
17
 
20
18
  .daff-tab-activator {
21
- border-bottom: 2px solid theming.daff-color($neutral, 20);
19
+ border-bottom: 2px solid daff-color($neutral, 20);
22
20
  color: $base-contrast;
23
21
 
24
22
  &.daff-selected {
25
- border-bottom: 2px solid theming.daff-color($primary);
23
+ border-bottom: 2px solid daff-color($primary);
26
24
  }
27
25
  }
28
26
  }
29
27
 
30
- @include theming.dark($type) {
28
+ @include dark($mode) {
31
29
  .daff-tabs {
32
30
  &__tab-list {
33
31
  &::after {
34
- background: theming.daff-color($neutral, 80);
32
+ background: daff-color($neutral, 80);
35
33
  }
36
34
  }
37
35
  }
38
36
 
39
37
  .daff-tab-activator {
40
- border-bottom: 2px solid theming.daff-color($neutral, 80);
38
+ border-bottom: 2px solid daff-color($neutral, 80);
41
39
  color: $base-contrast;
42
40
 
43
41
  &.daff-selected {
44
- border-bottom: 2px solid theming.daff-color($primary);
42
+ border-bottom: 2px solid daff-color($primary);
45
43
  }
46
44
  }
47
45
  }
@@ -12,15 +12,27 @@ export declare class DaffTabActivatorComponent implements OnInit {
12
12
  /**
13
13
  * Sets the `role` to tab.
14
14
  */
15
+ /**
16
+ * @docs-private
17
+ */
15
18
  role: string;
16
19
  /**
17
20
  * Sets `aria-selected` to true if the component is selected and false if it's not selected.
18
21
  */
22
+ /**
23
+ * @docs-private
24
+ */
19
25
  get ariaSelected(): boolean;
20
26
  /**
21
27
  * Sets `tabindex` to `0` if the component is selected and `-1` if it's not selected.
22
28
  */
29
+ /**
30
+ * @docs-private
31
+ */
23
32
  get tabIndex(): "0" | "-1";
33
+ /**
34
+ * @docs-private
35
+ */
24
36
  ariaControls: string;
25
37
  constructor(el: ElementRef, selectableDirective: DaffSelectableDirective);
26
38
  /**
@@ -28,6 +40,9 @@ export declare class DaffTabActivatorComponent implements OnInit {
28
40
  */
29
41
  tabActivatorId: string;
30
42
  panelId: string;
43
+ /**
44
+ * @docs-private
45
+ */
31
46
  ngOnInit(): void;
32
47
  /**
33
48
  * Sets focus to the native element of the component
@@ -1,4 +1,4 @@
1
- import { DaffPrefixDirective, DaffSuffixDirective, DaffPrefixable, DaffSuffixable } from '@daffodil/design';
1
+ import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * DaffTabLabelComponent is used to display the label of a tab panel. Labels may optionally contain a `daffPrefix` or `daffSuffix` to add icons or badges.
@@ -12,10 +12,7 @@ import * as i0 from "@angular/core";
12
12
  * </daff-tab-Label>
13
13
  * ```
14
14
  */
15
- export declare class DaffTabLabelComponent implements DaffPrefixable, DaffSuffixable {
16
- /**
17
- * @docs-private
18
- */
15
+ export declare class DaffTabLabelComponent {
19
16
  _prefix: DaffPrefixDirective;
20
17
  /**
21
18
  * @docs-private
@@ -52,6 +52,9 @@ export declare class DaffTabsComponent implements AfterContentInit, OnInit {
52
52
  /**
53
53
  * aria-label for the tab.
54
54
  */
55
+ /**
56
+ * @docs-private
57
+ */
55
58
  private externalAriaLabel;
56
59
  /**
57
60
  * @docs-private
@@ -8,6 +8,9 @@ export declare class DefaultToastComponent implements OnInit {
8
8
  update: EventEmitter<DaffToastAction>;
9
9
  closeToast: EventEmitter<DaffToastAction>;
10
10
  open(): void;
11
+ /**
12
+ * @docs-private
13
+ */
11
14
  ngOnInit(): void;
12
15
  private count;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultToastComponent, never>;
@@ -11,6 +11,9 @@ export declare class ToastPositionsComponent implements OnInit {
11
11
  private count;
12
12
  horizontalControl: FormControl;
13
13
  verticalControl: FormControl;
14
+ /**
15
+ * @docs-private
16
+ */
14
17
  ngOnInit(): void;
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastPositionsComponent, never>;
16
19
  static ɵcmp: i0.ɵɵComponentDeclaration<ToastPositionsComponent, "toast-positions", never, {}, {}, never, never, true, never>;
@@ -1,112 +1,110 @@
1
- @use 'sass:map';
2
- @use '../../scss/core';
3
- @use '../../scss/theming';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-toast-theme($theme) {
6
- $info: core.daff-map-get($theme, informational);
7
- $warn: core.daff-map-get($theme, warn);
8
- $critical: core.daff-map-get($theme, critical);
9
- $success: core.daff-map-get($theme, success);
10
- $neutral: core.daff-map-get($theme, 'core', 'neutral');
11
- $base: core.daff-map-get($theme, 'core', 'base');
12
- $black: core.daff-map-get($theme, 'core', 'black');
13
- $white: core.daff-map-get($theme, 'core', 'white');
14
- $type: core.daff-map-get($theme, 'core', 'type');
4
+ $info: daff-get-palette($theme, informational);
5
+ $warn: daff-get-palette($theme, warn);
6
+ $critical: daff-get-palette($theme, critical);
7
+ $success: daff-get-palette($theme, success);
8
+ $neutral: daff-get-palette($theme, neutral);
9
+ $base: daff-get-base-color($theme, base);
10
+ $black: daff-get-base-color($theme, 'black');
11
+ $white: daff-get-base-color($theme, 'white');
12
+ $mode: daff-get-theme-mode($theme);
15
13
 
16
14
  .daff-toast {
17
- @include theming.light($type) {
18
- background: theming.daff-color($neutral, 10);
15
+ @include light($mode) {
16
+ background: daff-color($neutral, 10);
19
17
  box-shadow: 0 -16px 24px -4px rgba($black, 0.04),
20
18
  0 8px 24px -4px rgba($black, 0.1);
21
- color: theming.daff-text-contrast($base);
19
+ color: daff-text-contrast($base);
22
20
 
23
21
  &::before {
24
- background: theming.daff-color($neutral, 40);
22
+ background: daff-color($neutral, 40);
25
23
  }
26
24
 
27
25
  &.daff-success {
28
- background: theming.daff-color($success, 10);
26
+ background: daff-color($success, 10);
29
27
  color: $black;
30
28
 
31
29
  .daff-prefix {
32
- color: theming.daff-color($success);
30
+ color: daff-color($success);
33
31
  }
34
32
 
35
33
  &::before {
36
- background: theming.daff-color($success);
34
+ background: daff-color($success);
37
35
  }
38
36
  }
39
37
 
40
38
  &.daff-warn {
41
- background: theming.daff-color($warn, 10);
39
+ background: daff-color($warn, 10);
42
40
  color: $black;
43
41
 
44
42
  .daff-prefix {
45
- color: theming.daff-color($warn);
43
+ color: daff-color($warn);
46
44
  }
47
45
 
48
46
  &::before {
49
- background: theming.daff-color($warn);
47
+ background: daff-color($warn);
50
48
  }
51
49
  }
52
50
 
53
51
  &.daff-critical {
54
- background: theming.daff-color($critical, 10);
52
+ background: daff-color($critical, 10);
55
53
  color: $black;
56
54
 
57
55
  .daff-prefix {
58
- color: theming.daff-color($critical);
56
+ color: daff-color($critical);
59
57
  }
60
58
 
61
59
  &::before {
62
- background: theming.daff-color($critical);
60
+ background: daff-color($critical);
63
61
  }
64
62
  }
65
63
  }
66
64
 
67
- @include theming.dark($type) {
68
- background: theming.daff-color($neutral, 90);
65
+ @include dark($mode) {
66
+ background: daff-color($neutral, 90);
69
67
  box-shadow: 0 -16px 24px -4px rgba($black, 0.04),
70
68
  0 8px 24px -4px rgba($black, 0.1);
71
- color: theming.daff-text-contrast($base);
69
+ color: daff-text-contrast($base);
72
70
 
73
71
  &::before {
74
- background: theming.daff-color($neutral, 30);
72
+ background: daff-color($neutral, 30);
75
73
  }
76
74
 
77
75
  &.daff-success {
78
- background: theming.daff-color($success, 90);
76
+ background: daff-color($success, 90);
79
77
 
80
78
  .daff-prefix {
81
- color: theming.daff-color($success, 30);
79
+ color: daff-color($success, 30);
82
80
  }
83
81
 
84
82
  &::before {
85
- background: theming.daff-color($success, 30);
83
+ background: daff-color($success, 30);
86
84
  }
87
85
  }
88
86
 
89
87
  &.daff-warn {
90
- background: theming.daff-color($warn, 90);
88
+ background: daff-color($warn, 90);
91
89
 
92
90
  .daff-prefix {
93
- color: theming.daff-color($warn, 30);
91
+ color: daff-color($warn, 30);
94
92
  }
95
93
 
96
94
  &::before {
97
- background: theming.daff-color($warn, 30);
95
+ background: daff-color($warn, 30);
98
96
  }
99
97
  }
100
98
 
101
99
  &.daff-critical {
102
- background: theming.daff-color($critical, 90);
100
+ background: daff-color($critical, 90);
103
101
 
104
102
  .daff-prefix {
105
- color: theming.daff-color($critical, 30);
103
+ color: daff-color($critical, 30);
106
104
  }
107
105
 
108
106
  &::before {
109
- background: theming.daff-color($critical, 30);
107
+ background: daff-color($critical, 30);
110
108
  }
111
109
  }
112
110
  }
@@ -1,6 +1,6 @@
1
1
  import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y';
2
2
  import { ElementRef, AfterViewInit, AfterContentInit, OnDestroy } from '@angular/core';
3
- import { DaffFocusStackService, DaffPrefixable, DaffPrefixDirective } from '@daffodil/design';
3
+ import { DaffFocusStackService, DaffPrefixDirective } from '@daffodil/design';
4
4
  import { DaffToast } from '../interfaces/toast';
5
5
  import { DaffToastActionsDirective } from '../toast-actions/toast-actions.directive';
6
6
  import * as i0 from "@angular/core";
@@ -11,13 +11,11 @@ import * as i1 from "@daffodil/design";
11
11
  * DaffToastComponent provides a way to display and
12
12
  * communicate information for user actions or system updates.
13
13
  */
14
- export declare class DaffToastComponent implements DaffPrefixable, AfterContentInit, AfterViewInit, OnDestroy {
14
+ export declare class DaffToastComponent implements AfterContentInit, AfterViewInit, OnDestroy {
15
15
  private _elementRef;
16
16
  private _focusTrapFactory;
17
17
  private _focusStack;
18
- /**
19
- * @docs-private
20
- */
18
+ /** @docs-private */
21
19
  class: boolean;
22
20
  /**
23
21
  * @docs-private
@@ -5,9 +5,24 @@
5
5
  * There may be other important data that needs to be available at render time.
6
6
  */
7
7
  export interface DaffTreeData<T> {
8
+ /**
9
+ * The label displayed for a tree node.
10
+ */
8
11
  title: string;
12
+ /**
13
+ * A URL associated with a tree node, which can be used for navigation or linking.
14
+ */
9
15
  url: string;
16
+ /**
17
+ * A unique ID for a tree node.
18
+ */
10
19
  id: string;
20
+ /**
21
+ * An array of child nodes, each of which is also a `DaffTreeData` item.
22
+ */
11
23
  items: DaffTreeData<T>[];
24
+ /**
25
+ * Additional data associated with a tree node.
26
+ */
12
27
  data: T;
13
28
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Represents the mode of rendering for nodes in a tree UI.
3
- * - 'in-dom': Closed nodes are present in the Document Object Model (DOM).
4
- * - 'not-in-dom': Closed nodes are not present in the Document Object Model (DOM).
3
+ * - `in-dom`: Closed nodes are present in the Document Object Model (DOM).
4
+ * - `not-in-dom`: Closed nodes are not present in the Document Object Model (DOM).
5
5
  */
6
6
  export type DaffTreeRenderMode = 'in-dom' | 'not-in-dom';
@@ -1,28 +1,26 @@
1
- @use 'sass:map';
2
- @use '../../scss/theming';
3
- @use '../../scss/core';
1
+ @use '../../scss/theming' as *;
4
2
 
5
3
  @mixin daff-tree-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
- $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
- $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
+ $base: daff-get-base-color($theme, base);
8
+ $base-contrast: daff-get-base-color($theme, base-contrast);
9
+ $white: daff-get-base-color($theme, 'white');
10
+ $black: daff-get-base-color($theme, 'black');
11
+ $neutral: daff-get-palette($theme, neutral);
12
+ $mode: daff-get-theme-mode($theme);
15
13
 
16
14
  // stylelint-disable selector-class-pattern
17
15
  .daff-tree-item {
18
16
  $root: &;
19
17
 
20
- @include theming.light($type) {
18
+ @include light($mode) {
21
19
  background-color: $base;
22
- color: theming.daff-color($neutral, 90);
20
+ color: daff-color($neutral, 90);
23
21
 
24
22
  &:hover {
25
- background-color: theming.daff-color($neutral, 20);
23
+ background-color: daff-color($neutral, 20);
26
24
  }
27
25
 
28
26
  &::after {
@@ -30,21 +28,21 @@
30
28
  }
31
29
 
32
30
  &.selected {
33
- background-color: theming.daff-color($neutral, 20);
31
+ background-color: daff-color($neutral, 20);
34
32
  color: $base-contrast;
35
33
 
36
34
  &::before {
37
- background-color: theming.daff-color($primary);
35
+ background-color: daff-color($primary);
38
36
  }
39
37
  }
40
38
  }
41
39
 
42
- @include theming.dark($type) {
40
+ @include dark($mode) {
43
41
  background-color: $base;
44
- color: theming.daff-color($neutral, 20);
42
+ color: daff-color($neutral, 20);
45
43
 
46
44
  &:hover {
47
- background-color: theming.daff-color($neutral, 90);
45
+ background-color: daff-color($neutral, 90);
48
46
  }
49
47
 
50
48
  &::after {
@@ -52,11 +50,11 @@
52
50
  }
53
51
 
54
52
  &.selected {
55
- background-color: theming.daff-color($neutral, 90);
53
+ background-color: daff-color($neutral, 90);
56
54
  color: $base-contrast;
57
55
 
58
56
  &::before {
59
- background-color: theming.daff-color($primary);
57
+ background-color: daff-color($primary);
60
58
  }
61
59
  }
62
60
  }
@@ -1,10 +1,10 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  /**
3
- * This service is used by tree-items to notify their parent
4
- * that the tree has to be re-computed.
3
+ * This service is used by tree items to notify their parent
4
+ * that the tree has to be recomputed.
5
5
  *
6
6
  * This service is a multiton associated with each tree instance.
7
- * It follows the same lifecycle has the tree it is associated with.
7
+ * It follows the same lifecycle as the tree it is associated with.
8
8
  */
9
9
  export declare class DaffTreeNotifierService implements OnDestroy {
10
10
  /**
@@ -6,7 +6,7 @@ import { DaffTreeFlatNode } from '../utils/flatten-tree';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@daffodil/design";
8
8
  /**
9
- * The `DaffTreeComponent` allows you to render tree structures as interactable ui.
9
+ * The `DaffTreeComponent` allows you to render tree structures as interactable UI.
10
10
  *
11
11
  * @example Basic use of the tree component
12
12
  * ```html
@@ -35,7 +35,7 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
35
35
  /**
36
36
  * The rendering mode for nodes in the tree.
37
37
  *
38
- * Default value is 'in-dom', which means nodes are present in the DOM.
38
+ * Default value is `in-dom`, which means nodes are present in the DOM.
39
39
  *
40
40
  * Generally, `not-in-dom` is faster as there are less DOM elements to render,
41
41
  * but there may be use-cases (like SEO) where having the tree in the DOM
@@ -47,7 +47,9 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
47
47
  */
48
48
  private _tree;
49
49
  /**
50
- * The flattened tree data. You can iterate through this if you want to inspect
50
+ * @docs-private
51
+ *
52
+ * The flattened tree data. For debugging purposes, you can iterate through this if you want to inspect
51
53
  * the resulting array structure we computed to render the tree.
52
54
  */
53
55
  flatTree: DaffTreeFlatNode[];
@@ -67,9 +69,17 @@ export declare class DaffTreeComponent implements OnInit, OnChanges {
67
69
  * @docs-private
68
70
  */
69
71
  treeItemTemplate: TemplateRef<any>;
72
+ /**
73
+ * @docs-private
74
+ */
70
75
  constructor(notifier: DaffTreeNotifierService);
76
+ /**
77
+ * @docs-private
78
+ */
71
79
  ngOnChanges(changes: SimpleChanges): void;
72
80
  /**
81
+ * @docs-private
82
+ *
73
83
  * The track-by function used to reduce tree-item re-renders
74
84
  */
75
85
  trackByTreeElement(index: number, el: any): any;
@@ -50,16 +50,22 @@ export declare class DaffTreeItemDirective {
50
50
  */
51
51
  ariaExpanded: string;
52
52
  /**
53
+ * @docs-private
54
+ *
53
55
  * A css variable indicating the depth of the tree.
54
56
  * You can use this to style your templates if you want to
55
57
  * use different designs at different depths.
56
58
  */
57
59
  depth: number;
58
60
  /**
61
+ * @docs-private
62
+ *
59
63
  * The CSS class indicating whether or not the tree is `selected`.
60
64
  */
61
65
  get selectedClass(): boolean;
62
66
  /**
67
+ * @docs-private
68
+ *
63
69
  * The CSS class indicating whether or not the tree is `open`.
64
70
  */
65
71
  openClass: boolean;
@@ -17,6 +17,9 @@ export declare class DaffYoutubePlayerComponent implements OnInit {
17
17
  */
18
18
  ngOnInit(): void;
19
19
  get _aspectRatio(): SafeStyle;
20
+ /**
21
+ * @docs-private
22
+ */
20
23
  get maxWidth(): string;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffYoutubePlayerComponent, never>;
22
25
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffYoutubePlayerComponent, "daff-youtube-player", never, { "src": { "alias": "src"; "required": false; }; "title": { "alias": "title"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./input.component";
3
- import * as i2 from "@angular/common";
4
- export declare class DaffInputModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffInputModule, [typeof i1.DaffInputComponent], [typeof i2.CommonModule], [typeof i1.DaffInputComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffInputModule>;
8
- }
@@ -1,4 +0,0 @@
1
- export { DaffQuantityFieldModule } from './quantity-field.module';
2
- export { DaffQuantityFieldComponent } from './quantity-field.component';
3
- export { DaffQuantityInputComponent } from './quantity-input/quantity-input.component';
4
- export { DaffQuantitySelectComponent } from './quantity-select/quantity-select.component';
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./quantity-field.component";
3
- import * as i2 from "./quantity-input/quantity-input.component";
4
- import * as i3 from "./quantity-select/quantity-select.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "../native-select/native-select.module";
7
- import * as i6 from "../input/input.module";
8
- import * as i7 from "@angular/forms";
9
- export declare class DaffQuantityFieldModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffQuantityFieldModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffQuantityFieldModule, [typeof i1.DaffQuantityFieldComponent, typeof i2.DaffQuantityInputComponent, typeof i3.DaffQuantitySelectComponent], [typeof i4.CommonModule, typeof i5.DaffNativeSelectModule, typeof i6.DaffInputModule, typeof i7.ReactiveFormsModule], [typeof i1.DaffQuantityFieldComponent, typeof i2.DaffQuantityInputComponent, typeof i3.DaffQuantitySelectComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffQuantityFieldModule>;
13
- }
@@ -1,7 +0,0 @@
1
- import { DaffPrefixDirective } from '../prefix.directive';
2
- /**
3
- * An interface enforcing that a component has the ability to interact with a given DaffPrefixDirective.
4
- */
5
- export interface DaffPrefixable {
6
- _prefix: DaffPrefixDirective;
7
- }
@@ -1,11 +0,0 @@
1
- import { Constructor } from '../../../core/public_api';
2
- import { DaffPrefixDirective } from '../prefix.directive';
3
- /**
4
- * A mixin for giving a component the ability to place content before another piece of content.
5
- */
6
- export declare function daffPrefixableMixin<T extends Constructor>(Base: T): {
7
- new (...args: any[]): {
8
- [x: string]: any;
9
- _prefix: DaffPrefixDirective;
10
- };
11
- } & T;