@daffodil/design 0.81.1 → 0.83.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 (258) hide show
  1. package/accordion/README.md +44 -29
  2. package/accordion/accordion/accordion/accordion.component.d.ts +3 -0
  3. package/accordion/accordion/accordion-item/accordion-item.component.d.ts +23 -12
  4. package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
  5. package/accordion/accordion.d.ts +5 -0
  6. package/accordion/examples/disabled-accordion/disabled-accordion.component.d.ts +5 -0
  7. package/accordion/examples/initially-expanded-accordion/initially-expanded-accordion.component.d.ts +5 -0
  8. package/accordion/examples/public_api.d.ts +2 -0
  9. package/accordion/src/accordion-theme.scss +28 -6
  10. package/article/README.md +4 -3
  11. package/article/article.d.ts +3 -0
  12. package/article/src/article-theme.scss +128 -51
  13. package/breadcrumb/README.md +38 -28
  14. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
  15. package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
  16. package/breadcrumb/breadcrumb.d.ts +3 -0
  17. package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
  18. package/breadcrumb/public_api.d.ts +2 -2
  19. package/button/README.md +43 -23
  20. package/button/button/basic/button.component.d.ts +5 -1
  21. package/button/button/button-base.directive.d.ts +11 -3
  22. package/button/button/button-sizable.directive.d.ts +1 -1
  23. package/button/button/raised/raised.component.d.ts +2 -0
  24. package/button/button/stroked/stroked.component.d.ts +5 -1
  25. package/button/button.d.ts +4 -2
  26. package/button/button.module.d.ts +1 -2
  27. package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
  28. package/button/examples/examples.d.ts +2 -1
  29. package/button/examples/public_api.d.ts +1 -0
  30. package/button/public_api.d.ts +0 -1
  31. package/button/src/button/basic/button-theme.scss +185 -80
  32. package/button/src/button/button-base.scss +41 -16
  33. package/button/src/button/flat/flat-theme.scss +144 -85
  34. package/button/src/button/icon/icon-theme.scss +183 -79
  35. package/button/src/button/raised/raised-theme.scss +2 -7
  36. package/button/src/button/stroked/stroked-theme.scss +128 -94
  37. package/button/src/button/underline/underline-theme.scss +112 -44
  38. package/callout/README.md +4 -3
  39. package/callout/callout.d.ts +3 -0
  40. package/card/README.md +6 -3
  41. package/card/card/basic/basic.component.d.ts +7 -0
  42. package/card/card/raised/raised.component.d.ts +7 -0
  43. package/card/card/stroked/stroked.component.d.ts +7 -0
  44. package/card/card-base.directive.d.ts +25 -0
  45. package/card/card.d.ts +18 -1
  46. package/card/card.module.d.ts +10 -8
  47. package/card/examples/card-theming/card-theming.component.d.ts +2 -1
  48. package/card/examples/public_api.d.ts +1 -1
  49. package/card/public_api.d.ts +6 -1
  50. package/card/src/card/raised/raised-theme.scss +30 -0
  51. package/card/src/card/stroked/stroked-theme.scss +135 -0
  52. package/card/src/card-base-theme.scss +197 -0
  53. package/card/src/card-base.scss +134 -0
  54. package/container/README.md +5 -3
  55. package/container/container.d.ts +3 -0
  56. package/core/colorable/colorable.d.ts +20 -14
  57. package/core/colorable/colorable.directive.d.ts +9 -6
  58. package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
  59. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-accordion.mjs +56 -29
  61. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-article-examples.mjs +30 -30
  63. package/fesm2022/daffodil-design-article.mjs +14 -11
  64. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
  66. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
  68. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-button-examples.mjs +55 -33
  70. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-button.mjs +79 -69
  72. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
  74. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-callout.mjs +25 -22
  76. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-card-examples.mjs +35 -31
  78. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-card.mjs +140 -86
  80. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
  82. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-container-examples.mjs +3 -3
  84. package/fesm2022/daffodil-design-container.mjs +10 -7
  85. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
  87. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-hero.mjs +25 -22
  89. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  90. package/fesm2022/daffodil-design-image-examples.mjs +9 -9
  91. package/fesm2022/daffodil-design-image.mjs +36 -19
  92. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-input-examples.mjs +12 -12
  94. package/fesm2022/daffodil-design-link-set.mjs +19 -16
  95. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  96. package/fesm2022/daffodil-design-list-examples.mjs +12 -12
  97. package/fesm2022/daffodil-design-list.mjs +13 -10
  98. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  100. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-loading-icon.mjs +11 -8
  102. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
  104. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-media-gallery.mjs +204 -250
  106. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  107. package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
  108. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-menu.mjs +16 -16
  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 +28 -25
  113. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  114. package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
  115. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  116. package/fesm2022/daffodil-design-navbar.mjs +10 -7
  117. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  118. package/fesm2022/daffodil-design-notification-examples.mjs +17 -16
  119. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  120. package/fesm2022/daffodil-design-notification.mjs +23 -20
  121. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  122. package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
  123. package/fesm2022/daffodil-design-paginator.mjs +13 -7
  124. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  125. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
  126. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-progress-bar.mjs +13 -13
  128. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
  130. package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
  131. package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
  132. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  133. package/fesm2022/daffodil-design-sidebar.mjs +150 -61
  134. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  135. package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
  136. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  137. package/fesm2022/daffodil-design-switch.mjs +38 -10
  138. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  139. package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
  140. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  141. package/fesm2022/daffodil-design-tabs.mjs +67 -35
  142. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  143. package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
  144. package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
  145. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  146. package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
  147. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  148. package/fesm2022/daffodil-design-toast.mjs +296 -239
  149. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  150. package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
  151. package/fesm2022/daffodil-design-tree.mjs +15 -12
  152. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  153. package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
  154. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
  155. package/fesm2022/daffodil-design.mjs +167 -155
  156. package/fesm2022/daffodil-design.mjs.map +1 -1
  157. package/hero/README.md +4 -3
  158. package/hero/hero.d.ts +3 -0
  159. package/image/README.md +4 -3
  160. package/image/image/image.component.d.ts +22 -1
  161. package/image/image.d.ts +3 -0
  162. package/link-set/README.md +4 -3
  163. package/link-set/link-set.d.ts +3 -0
  164. package/list/README.md +4 -3
  165. package/list/list.d.ts +3 -0
  166. package/loading-icon/README.md +10 -7
  167. package/loading-icon/loading-icon.d.ts +3 -0
  168. package/loading-icon/src/loading-icon-theme.scss +66 -38
  169. package/media-gallery/README.md +19 -10
  170. package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
  171. package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
  172. package/media-gallery/examples/public_api.d.ts +2 -0
  173. package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
  174. package/media-gallery/media-gallery/media-gallery.component.d.ts +89 -11
  175. package/media-gallery/media-gallery.d.ts +4 -2
  176. package/media-gallery/media-gallery.module.d.ts +1 -2
  177. package/media-gallery/public_api.d.ts +3 -4
  178. package/media-gallery/src/media-gallery-theme.scss +30 -4
  179. package/media-gallery/thumbnail/thumbnail.directive.d.ts +45 -22
  180. package/menu/README.md +1 -2
  181. package/modal/README.md +3 -2
  182. package/modal/modal.d.ts +3 -0
  183. package/navbar/README.md +3 -2
  184. package/navbar/navbar.d.ts +3 -0
  185. package/notification/README.md +5 -4
  186. package/notification/notification.d.ts +3 -0
  187. package/notification/src/notification-theme.scss +62 -23
  188. package/package.json +1 -1
  189. package/paginator/README.md +3 -2
  190. package/paginator/paginator/paginator.component.d.ts +3 -0
  191. package/paginator/paginator.d.ts +3 -0
  192. package/progress-bar/README.md +5 -6
  193. package/progress-bar/progress-bar.component.d.ts +0 -3
  194. package/progress-bar/progress-bar.d.ts +3 -0
  195. package/progress-bar/src/progress-bar-theme.scss +17 -8
  196. package/scss/theme.scss +36 -17
  197. package/scss/theming/_configure-theme.scss +2 -0
  198. package/scss/theming/_index.scss +1 -0
  199. package/scss/theming/_light-dark.scss +45 -0
  200. package/sidebar/README.md +20 -21
  201. package/sidebar/helper/sidebar-mode.d.ts +9 -15
  202. package/sidebar/public_api.d.ts +10 -11
  203. package/sidebar/sidebar/sidebar.component.d.ts +22 -7
  204. package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
  205. package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
  206. package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
  207. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
  208. package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
  209. package/sidebar/sidebar.d.ts +4 -2
  210. package/sidebar/sidebar.module.d.ts +1 -2
  211. package/switch/README.md +3 -2
  212. package/switch/src/switch-theme.scss +29 -10
  213. package/switch/switch/switch.component.d.ts +31 -6
  214. package/switch/switch.d.ts +3 -0
  215. package/tabs/README.md +33 -3
  216. package/tabs/src/tabs-theme.scss +31 -13
  217. package/tabs/tabs/tab/tab.component.d.ts +1 -1
  218. package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
  219. package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
  220. package/tabs/tabs/tabs.component.d.ts +21 -4
  221. package/tabs/tabs.d.ts +8 -2
  222. package/text-snippet/README.md +19 -1
  223. package/toast/README.md +21 -151
  224. package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
  225. package/toast/examples/public_api.d.ts +2 -1
  226. package/toast/interfaces/toast-action.d.ts +22 -11
  227. package/toast/interfaces/toast-action.type.d.ts +10 -0
  228. package/toast/interfaces/toast.d.ts +11 -5
  229. package/toast/options/daff-toast-options.d.ts +2 -1
  230. package/toast/public_api.d.ts +2 -6
  231. package/toast/service/position.service.d.ts +9 -1
  232. package/toast/service/toast.service.d.ts +63 -0
  233. package/toast/src/toast-theme.scss +80 -33
  234. package/toast/toast/toast-config.d.ts +24 -1
  235. package/toast/toast/toast-provider.d.ts +16 -0
  236. package/toast/toast/toast.component.d.ts +20 -1
  237. package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
  238. package/toast/toast-message/toast-message.directive.d.ts +3 -0
  239. package/toast/toast-title/toast-title.directive.d.ts +3 -0
  240. package/tree/README.md +6 -10
  241. package/tree/src/tree-theme.scss +39 -13
  242. package/tree/tree.d.ts +3 -0
  243. package/youtube-player/index.d.ts +1 -0
  244. package/youtube-player/public_api.d.ts +3 -0
  245. package/youtube-player/safe-url.pipe.d.ts +10 -0
  246. package/youtube-player/youtube-player.component.d.ts +23 -0
  247. package/youtube-player/youtube-player.d.ts +6 -0
  248. package/card/card/card.component.d.ts +0 -48
  249. package/card/src/card-theme-variants/basic-card.scss +0 -6
  250. package/card/src/card-theme-variants/linkable-card.scss +0 -16
  251. package/card/src/card-theme-variants/stroked-card.scss +0 -3
  252. package/card/src/card-theme.scss +0 -170
  253. package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
  254. package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
  255. package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
  256. package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
  257. package/scss/theming/prebuilt/internal-theme.scss +0 -13
  258. package/toast/toast.module.d.ts +0 -19
@@ -4,18 +4,36 @@
4
4
 
5
5
  @mixin daff-media-gallery-theme($theme) {
6
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');
7
9
 
8
10
  .daff-media-gallery {
9
11
  $root: &;
10
12
 
11
- .daff-thumbnail {
12
- border: 1px solid transparent;
13
+ @include theming.light($type) {
14
+ .daff-thumbnail {
15
+ background: theming.daff-color($neutral, 20);
16
+
17
+ &.daff-selected {
18
+ border: 1px solid theming.daff-color($neutral);
19
+ }
20
+ }
21
+ }
22
+
23
+ @include theming.dark($type) {
24
+ .daff-thumbnail {
25
+ background: theming.daff-color($neutral, 70);
13
26
 
14
- &.daff-selected {
15
- border: 1px solid theming.daff-color($neutral);
27
+ &.daff-selected {
28
+ border: 1px solid theming.daff-color($neutral, 30);
29
+ }
16
30
  }
17
31
  }
18
32
 
33
+ .daff-thumbnail {
34
+ border: 1px solid transparent;
35
+ }
36
+
19
37
  &.daff-skeleton {
20
38
  .daff-thumbnail {
21
39
  &.daff-selected {
@@ -23,5 +41,13 @@
23
41
  }
24
42
  }
25
43
  }
44
+
45
+ &__video-button {
46
+ border: solid thin $white;
47
+
48
+ &::after {
49
+ background-color: $white;
50
+ }
51
+ }
26
52
  }
27
53
  }
@@ -1,35 +1,58 @@
1
- import { Type, OnInit, OnDestroy } from '@angular/core';
2
- import { DaffSelectableDirective } from '@daffodil/design';
3
- import { DaffThumbnailRegistration } from './thumbnail-registration.interface';
1
+ import { TemplateRef, OnInit } from '@angular/core';
4
2
  import { DaffMediaGalleryRegistration } from '../helpers/media-gallery-registration.interface';
5
- import { DaffMediaGalleryRegistry } from '../registry/media-gallery.registry';
6
3
  import * as i0 from "@angular/core";
7
- import * as i1 from "@daffodil/design";
8
4
  /**
9
- * A directive marking thumbnails for the `DaffMediaRendererComponent`. Needs to be wrapped in a `daff-media-gallery` component
10
- * and needs to be placed on a component that is provided as a `daffThumbnailCompatToken`.
5
+ * DaffThumbnailDirective is a structural directive used to mark elements as thumbnails within the `DaffMediaGalleryComponent`.
6
+ *
7
+ * ```html
8
+ * <ng-template daffThumbnail></ng-template>
9
+ * ```
11
10
  */
12
- export declare class DaffThumbnailDirective implements OnInit, OnDestroy, DaffThumbnailRegistration {
13
- component: Type<unknown>;
14
- private registry;
11
+ export declare class DaffThumbnailDirective implements OnInit {
12
+ /**
13
+ * @docs-private
14
+ */
15
15
  gallery: DaffMediaGalleryRegistration;
16
- private selectedDirective;
17
- constructor(component: Type<unknown>, registry: DaffMediaGalleryRegistry, gallery: DaffMediaGalleryRegistration, selectedDirective: DaffSelectableDirective);
18
- get selected(): boolean;
19
- select(): this;
20
- deselect(): this;
21
16
  /**
22
- * Adds a class for styling a thumbnail
17
+ * @docs-private
18
+ */
19
+ templateRef: TemplateRef<unknown>;
20
+ private _increment;
21
+ /**
22
+ * @docs-private
23
+ *
24
+ * The autogenerated unique id for a thumbnail.
23
25
  */
24
- class: boolean;
26
+ get id(): string;
25
27
  /**
26
- * Adds a click event to trigger selection of the media element.
28
+ * @docs-private
27
29
  *
28
- * @param event: MouseEvent
30
+ * The unique id of the selected thumbnail.
31
+ */
32
+ get selectedThumbnailId(): string;
33
+ /**
34
+ * The file path to a thumbnail, presumably an image.
35
+ */
36
+ thumbnailSrc: any;
37
+ /**
38
+ * Provides an accessible label for a thumbnail.
39
+ */
40
+ label: string;
41
+ /** Indicates whether the thumbnail represents a video. */
42
+ isVideo: boolean;
43
+ constructor(
44
+ /**
45
+ * @docs-private
46
+ */
47
+ gallery: DaffMediaGalleryRegistration,
48
+ /**
49
+ * @docs-private
50
+ */
51
+ templateRef: TemplateRef<unknown>);
52
+ /**
53
+ * @docs-private
29
54
  */
30
- onClick($event: MouseEvent): void;
31
55
  ngOnInit(): void;
32
- ngOnDestroy(): void;
33
56
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffThumbnailDirective, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffThumbnailDirective, "[daffThumbnail]", never, {}, {}, never, never, true, [{ directive: typeof i1.DaffSelectableDirective; inputs: { "selected": "selected"; }; outputs: { "becameSelected": "becameSelected"; }; }]>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DaffThumbnailDirective, "[daffThumbnail]", never, { "thumbnailSrc": { "alias": "thumbnailSrc"; "required": false; }; "label": { "alias": "label"; "required": false; }; "isVideo": { "alias": "isVideo"; "required": false; }; }, {}, never, never, true, never>;
35
58
  }
package/menu/README.md CHANGED
@@ -8,13 +8,12 @@ Menus only appear when a user interacts with a menu activator button. They shoul
8
8
  <design-land-example-viewer-container example="basic-menu"></design-land-example-viewer-container>
9
9
 
10
10
  ## Usage
11
-
12
11
  To use menu, import `DaffMenuModule` into your custom module:
13
12
 
14
13
  ```ts
15
14
  import { NgModule } from '@angular/core';
16
-
17
15
  import { DaffMenuModule } from '@daffodil/design/menu';
16
+ import { CustomComponent } from './custom.component';
18
17
 
19
18
  @NgModule({
20
19
  declarations: [
package/modal/README.md CHANGED
@@ -10,10 +10,11 @@ Modal is a dynamically rendered element that floats above the rest of a page's c
10
10
  To use modal in a standalone component, import `DAFF_MODAL_COMPONENTS` directly into your custom component:
11
11
 
12
12
  ```ts
13
+ import { DAFF_MODAL_COMPONENTS } from '@daffodil/design/modal';
14
+
13
15
  @Component({
14
16
  selector: 'custom-component',
15
17
  templateUrl: './custom-component.component.html',
16
- standalone: true,
17
18
  imports: [
18
19
  DAFF_MODAL_COMPONENTS,
19
20
  ],
@@ -26,8 +27,8 @@ To use modal in a module, import `DaffModalModule` into your custom module:
26
27
 
27
28
  ```ts
28
29
  import { NgModule } from '@angular/core';
29
-
30
30
  import { DaffModalModule } from '@daffodil/design/modal';
31
+ import { CustomComponent } from './custom.component';
31
32
 
32
33
  @NgModule({
33
34
  declarations: [
package/modal/modal.d.ts CHANGED
@@ -3,4 +3,7 @@ import { DaffModalCloseDirective } from './modal-close/modal-close.directive';
3
3
  import { DaffModalContentComponent } from './modal-content/modal-content.component';
4
4
  import { DaffModalHeaderComponent } from './modal-header/modal-header.component';
5
5
  import { DaffModalTitleDirective } from './modal-title/modal-title.directive';
6
+ /**
7
+ * @docs-private
8
+ */
6
9
  export declare const DAFF_MODAL_COMPONENTS: readonly [typeof DaffModalHeaderComponent, typeof DaffModalTitleDirective, typeof DaffModalContentComponent, typeof DaffModalActionsComponent, typeof DaffModalCloseDirective];
package/navbar/README.md CHANGED
@@ -13,10 +13,11 @@ The navbar contains minimal layout styles, allowing the content within it to be
13
13
  To use navbar in a standalone component, import `DAFF_NAVBAR_COMPONENTS` directly into your custom component:
14
14
 
15
15
  ```ts
16
+ import { DAFF_NAVBAR_COMPONENTS } from '@daffodil/design/navbar';
17
+
16
18
  @Component({
17
19
  selector: 'custom-component',
18
20
  templateUrl: './custom-component.component.html',
19
- standalone: true,
20
21
  imports: [
21
22
  DAFF_NAVBAR_COMPONENTS,
22
23
  ],
@@ -29,8 +30,8 @@ To use navbar in a module, import `DaffNavbarModule` into your custom module:
29
30
 
30
31
  ```ts
31
32
  import { NgModule } from '@angular/core';
32
-
33
33
  import { DaffNavbarModule } from '@daffodil/design/navbar';
34
+ import { CustomComponent } from './custom.component';
34
35
 
35
36
  @NgModule({
36
37
  declarations: [
@@ -1,2 +1,5 @@
1
1
  import { DaffNavbarComponent } from './navbar/navbar.component';
2
+ /**
3
+ * @docs-private
4
+ */
2
5
  export declare const DAFF_NAVBAR_COMPONENTS: readonly [typeof DaffNavbarComponent];
@@ -13,10 +13,11 @@ Notifications are used to display short messages that provide context in close p
13
13
  To use notification in a standalone component, import `DAFF_NOTIFICATION_COMPONENTS` directly into your custom component:
14
14
 
15
15
  ```ts
16
+ import { DAFF_NOTIFICATION_COMPONENTS } from '@daffodil/design/notification';
17
+
16
18
  @Component({
17
19
  selector: 'custom-component',
18
20
  templateUrl: './custom-component.component.html',
19
- standalone: true,
20
21
  imports: [
21
22
  DAFF_NOTIFICATION_COMPONENTS,
22
23
  ],
@@ -29,8 +30,8 @@ To use notification in a module, import `DaffNotificationModule` into your custo
29
30
 
30
31
  ```ts
31
32
  import { NgModule } from '@angular/core';
32
-
33
33
  import { DaffNotificationModule } from '@daffodil/design/notification';
34
+ import { CustomComponent } from './custom.component';
34
35
 
35
36
  @NgModule({
36
37
  declarations: [
@@ -62,7 +63,7 @@ Subtitle provides additional details about the notification that should be limit
62
63
  ### Actions
63
64
  Buttons can be included in notifications to resolve the notification or navigate them to a page with more information. It can be added by using the `daffNotificationActions` selector.
64
65
 
65
- <design-land-example-viewer-container example="notification-with-actions"></design-land-example-viewer-container>d
66
+ <design-land-example-viewer-container example="notification-with-actions"></design-land-example-viewer-container>
66
67
 
67
68
  ## Properties
68
69
 
@@ -87,4 +88,4 @@ The close button is hidden by default but can be visible by setting the `dismiss
87
88
  <design-land-example-viewer-container example="dismissible-notification"></design-land-example-viewer-container>
88
89
 
89
90
  ## Accessibility
90
- Notifications with a `critical` or `warn` status have a `role="alert"` so that it can be announced by assistive technologies. See (live region roles)[https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#4._live_region_roles] for more information. All other notifications have a `role="status"`. Notifications have a `tabindex="0"` so users can discover them while tabbing through a page.
91
+ Notifications with a `critical` or `warn` status have a `role="alert"` so that it can be announced by assistive technologies. See [live region roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#4._live_region_roles) for more information. All other notifications have a `role="status"`. Notifications have a `tabindex="0"` so users can discover them while tabbing through a page.
@@ -4,4 +4,7 @@ import { DaffNotificationActionsDirective } from './notification-actions/notific
4
4
  import { DaffNotificationMessageDirective } from './notification-message/notification-message.directive';
5
5
  import { DaffNotificationSubtitleDirective } from './notification-subtitle/notification-subtitle.directive';
6
6
  import { DaffNotificationTitleDirective } from './notification-title/notification-title.directive';
7
+ /**
8
+ * @docs-private
9
+ */
7
10
  export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixSuffixModule];
@@ -13,41 +13,80 @@
13
13
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
14
  $base: core.daff-map-get($theme, 'core', 'base');
15
15
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
16
- $white: core.daff-map-get($theme, 'core', 'white');
17
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');
18
19
 
19
20
  .daff-notification {
20
- background: theming.daff-illuminate($base, $neutral, 1);
21
- border: 1px solid theming.daff-illuminate($base, $neutral, 2);
22
- color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 1));
21
+ @include theming.light($type) {
22
+ background: theming.daff-color($neutral, 10);
23
+ border: 1px solid theming.daff-color($neutral, 20);
24
+ color: $black;
23
25
 
24
- &.daff-success {
25
- background: theming.daff-color($success, 10);
26
- border: 1px solid theming.daff-color($success, 20);
27
- color: theming.daff-text-contrast(theming.daff-color($success, 10));
26
+ &.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));
28
30
 
29
- .daff-prefix {
30
- color: theming.daff-color($success);
31
+ .daff-prefix {
32
+ color: theming.daff-color($success, 80);
33
+ }
31
34
  }
32
- }
33
35
 
34
- &.daff-warn {
35
- background: theming.daff-color($warn, 10);
36
- border: 1px solid theming.daff-color($warn, 20);
37
- color: theming.daff-text-contrast(theming.daff-color($warn, 10));
36
+ &.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));
38
40
 
39
- .daff-prefix {
40
- color: theming.daff-color($warn);
41
+ .daff-prefix {
42
+ color: theming.daff-color($warn, 80);
43
+ }
44
+ }
45
+
46
+ &.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));
50
+
51
+ .daff-prefix {
52
+ color: theming.daff-color($critical, 80);
53
+ }
41
54
  }
42
55
  }
43
56
 
44
- &.daff-critical {
45
- background: theming.daff-color($critical, 10);
46
- border: 1px solid theming.daff-color($critical, 20);
47
- color: theming.daff-text-contrast(theming.daff-color($critical, 10));
57
+ @include theming.dark($type) {
58
+ background: theming.daff-color($neutral, 90);
59
+ border: 1px solid theming.daff-color($neutral, 80);
60
+ color: $white;
61
+
62
+ &.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));
66
+
67
+ .daff-prefix {
68
+ color: theming.daff-color($success, 30);
69
+ }
70
+ }
71
+
72
+ &.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));
76
+
77
+ .daff-prefix {
78
+ color: theming.daff-color($warn, 30);
79
+ }
80
+ }
81
+
82
+ &.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));
48
86
 
49
- .daff-prefix {
50
- color: theming.daff-color($critical);
87
+ .daff-prefix {
88
+ color: theming.daff-color($critical, 30);
89
+ }
51
90
  }
52
91
  }
53
92
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.81.1","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^19.0.0","@angular/common":"^19.0.0","@angular/core":"^19.0.0","@angular/forms":"^19.0.0","@angular/cdk":"^19.0.0","@daffodil/core":"0.81.1","@fortawesome/angular-fontawesome":"^1.0.0","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","modern-normalize":"^0.5.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.0"},"exports":{"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/typography":{"sass":"./scss/typography/_index.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-design.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.mjs"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./breadcrumb":{"types":"./breadcrumb/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb.mjs"},"./button":{"types":"./button/index.d.ts","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./hero":{"types":"./hero/index.d.ts","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","default":"./fesm2022/daffodil-design-image.mjs"},"./link-set":{"types":"./link-set/index.d.ts","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","default":"./fesm2022/daffodil-design-modal.mjs"},"./navbar":{"types":"./navbar/index.d.ts","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./fesm2022/daffodil-design-switch.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./fesm2022/daffodil-design-tabs.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./toast":{"types":"./toast/index.d.ts","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","default":"./fesm2022/daffodil-design-tree.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","default":"./fesm2022/daffodil-design-accordion-examples.mjs"},"./article/examples":{"types":"./article/examples/index.d.ts","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./breadcrumb/examples":{"types":"./breadcrumb/examples/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb-examples.mjs"},"./button/examples":{"types":"./button/examples/index.d.ts","default":"./fesm2022/daffodil-design-button-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","default":"./fesm2022/daffodil-design-callout-examples.mjs"},"./card/examples":{"types":"./card/examples/index.d.ts","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./checkbox/examples":{"types":"./checkbox/examples/index.d.ts","default":"./fesm2022/daffodil-design-checkbox-examples.mjs"},"./container/examples":{"types":"./container/examples/index.d.ts","default":"./fesm2022/daffodil-design-container-examples.mjs"},"./hero/examples":{"types":"./hero/examples/index.d.ts","default":"./fesm2022/daffodil-design-hero-examples.mjs"},"./image/examples":{"types":"./image/examples/index.d.ts","default":"./fesm2022/daffodil-design-image-examples.mjs"},"./input/examples":{"types":"./input/examples/index.d.ts","default":"./fesm2022/daffodil-design-input-examples.mjs"},"./list/examples":{"types":"./list/examples/index.d.ts","default":"./fesm2022/daffodil-design-list-examples.mjs"},"./loading-icon/examples":{"types":"./loading-icon/examples/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon-examples.mjs"},"./media-gallery/examples":{"types":"./media-gallery/examples/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery-examples.mjs"},"./menu/examples":{"types":"./menu/examples/index.d.ts","default":"./fesm2022/daffodil-design-menu-examples.mjs"},"./modal/examples":{"types":"./modal/examples/index.d.ts","default":"./fesm2022/daffodil-design-modal-examples.mjs"},"./navbar/examples":{"types":"./navbar/examples/index.d.ts","default":"./fesm2022/daffodil-design-navbar-examples.mjs"},"./notification/examples":{"types":"./notification/examples/index.d.ts","default":"./fesm2022/daffodil-design-notification-examples.mjs"},"./paginator/examples":{"types":"./paginator/examples/index.d.ts","default":"./fesm2022/daffodil-design-paginator-examples.mjs"},"./progress-bar/examples":{"types":"./progress-bar/examples/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field-examples.mjs"},"./radio/examples":{"types":"./radio/examples/index.d.ts","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./switch/examples":{"types":"./switch/examples/index.d.ts","default":"./fesm2022/daffodil-design-switch-examples.mjs"},"./tabs/examples":{"types":"./tabs/examples/index.d.ts","default":"./fesm2022/daffodil-design-tabs-examples.mjs"},"./text-snippet/examples":{"types":"./text-snippet/examples/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet-examples.mjs"},"./toast/examples":{"types":"./toast/examples/index.d.ts","default":"./fesm2022/daffodil-design-toast-examples.mjs"},"./tree/examples":{"types":"./tree/examples/index.d.ts","default":"./fesm2022/daffodil-design-tree-examples.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
1
+ {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.83.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"A consistent, sane api driver that works with different ecommerce systems.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^19.0.0","@angular/common":"^19.0.0","@angular/core":"^19.0.0","@angular/forms":"^19.0.0","@angular/cdk":"^19.0.0","@daffodil/core":"0.83.0","@fortawesome/angular-fontawesome":"^1.0.0","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","modern-normalize":"^0.5.0","rxjs":"7.8.1"},"optionalDependencies":{"@faker-js/faker":"^7.6.0"},"exports":{"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/typography":{"sass":"./scss/typography/_index.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-design.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.mjs"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./breadcrumb":{"types":"./breadcrumb/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb.mjs"},"./button":{"types":"./button/index.d.ts","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./hero":{"types":"./hero/index.d.ts","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","default":"./fesm2022/daffodil-design-image.mjs"},"./link-set":{"types":"./link-set/index.d.ts","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","default":"./fesm2022/daffodil-design-modal.mjs"},"./navbar":{"types":"./navbar/index.d.ts","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./fesm2022/daffodil-design-switch.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./fesm2022/daffodil-design-tabs.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./toast":{"types":"./toast/index.d.ts","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","default":"./fesm2022/daffodil-design-tree.mjs"},"./youtube-player":{"types":"./youtube-player/index.d.ts","default":"./fesm2022/daffodil-design-youtube-player.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","default":"./fesm2022/daffodil-design-accordion-examples.mjs"},"./article/examples":{"types":"./article/examples/index.d.ts","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./breadcrumb/examples":{"types":"./breadcrumb/examples/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb-examples.mjs"},"./button/examples":{"types":"./button/examples/index.d.ts","default":"./fesm2022/daffodil-design-button-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","default":"./fesm2022/daffodil-design-callout-examples.mjs"},"./card/examples":{"types":"./card/examples/index.d.ts","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./checkbox/examples":{"types":"./checkbox/examples/index.d.ts","default":"./fesm2022/daffodil-design-checkbox-examples.mjs"},"./container/examples":{"types":"./container/examples/index.d.ts","default":"./fesm2022/daffodil-design-container-examples.mjs"},"./hero/examples":{"types":"./hero/examples/index.d.ts","default":"./fesm2022/daffodil-design-hero-examples.mjs"},"./image/examples":{"types":"./image/examples/index.d.ts","default":"./fesm2022/daffodil-design-image-examples.mjs"},"./input/examples":{"types":"./input/examples/index.d.ts","default":"./fesm2022/daffodil-design-input-examples.mjs"},"./list/examples":{"types":"./list/examples/index.d.ts","default":"./fesm2022/daffodil-design-list-examples.mjs"},"./loading-icon/examples":{"types":"./loading-icon/examples/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon-examples.mjs"},"./media-gallery/examples":{"types":"./media-gallery/examples/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery-examples.mjs"},"./menu/examples":{"types":"./menu/examples/index.d.ts","default":"./fesm2022/daffodil-design-menu-examples.mjs"},"./modal/examples":{"types":"./modal/examples/index.d.ts","default":"./fesm2022/daffodil-design-modal-examples.mjs"},"./navbar/examples":{"types":"./navbar/examples/index.d.ts","default":"./fesm2022/daffodil-design-navbar-examples.mjs"},"./notification/examples":{"types":"./notification/examples/index.d.ts","default":"./fesm2022/daffodil-design-notification-examples.mjs"},"./paginator/examples":{"types":"./paginator/examples/index.d.ts","default":"./fesm2022/daffodil-design-paginator-examples.mjs"},"./progress-bar/examples":{"types":"./progress-bar/examples/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field-examples.mjs"},"./radio/examples":{"types":"./radio/examples/index.d.ts","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./switch/examples":{"types":"./switch/examples/index.d.ts","default":"./fesm2022/daffodil-design-switch-examples.mjs"},"./tabs/examples":{"types":"./tabs/examples/index.d.ts","default":"./fesm2022/daffodil-design-tabs-examples.mjs"},"./text-snippet/examples":{"types":"./text-snippet/examples/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet-examples.mjs"},"./toast/examples":{"types":"./toast/examples/index.d.ts","default":"./fesm2022/daffodil-design-toast-examples.mjs"},"./tree/examples":{"types":"./tree/examples/index.d.ts","default":"./fesm2022/daffodil-design-tree-examples.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
@@ -10,10 +10,11 @@ Paginator is used to break up large amounts of content into multiple pages, enab
10
10
  To use paginator in a standalone component, import `DAFF_PAGINATOR_COMPONENTS` directly into your custom component:
11
11
 
12
12
  ```ts
13
+ import { DAFF_PAGINATOR_COMPONENTS } from '@daffodil/design/paginator';
14
+
13
15
  @Component({
14
16
  selector: 'custom-component',
15
17
  templateUrl: './custom-component.component.html',
16
- standalone: true,
17
18
  imports: [
18
19
  DAFF_PAGINATOR_COMPONENTS,
19
20
  ],
@@ -26,8 +27,8 @@ To use paginator in a module, import `DaffPaginatorModule` into your custom modu
26
27
 
27
28
  ```ts
28
29
  import { NgModule } from '@angular/core';
29
-
30
30
  import { DaffPaginatorModule } from '@daffodil/design/paginator';
31
+ import { CustomComponent } from './custom.component';
31
32
 
32
33
  @NgModule({
33
34
  declarations: [
@@ -116,6 +116,9 @@ export declare class DaffPaginatorComponent implements OnChanges {
116
116
  * @param pageNumber page number to check.
117
117
  */
118
118
  _showNumber(pageNumber: number): boolean;
119
+ /**
120
+ * @docs-private
121
+ */
119
122
  _buildPageQueryParams(page: number): Params;
120
123
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaginatorComponent, never>;
121
124
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffPaginatorComponent, "daff-paginator", never, { "numberOfPages": { "alias": "numberOfPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "linkMode": { "alias": "linkMode"; "required": false; }; "url": { "alias": "url"; "required": false; }; "queryParam": { "alias": "queryParam"; "required": false; }; }, { "notifyPageChange": "notifyPageChange"; }, never, never, true, never>;
@@ -1,2 +1,5 @@
1
1
  import { DaffPaginatorComponent } from './paginator/paginator.component';
2
+ /**
3
+ * @docs-private
4
+ */
2
5
  export declare const DAFF_PAGINATOR_COMPONENTS: readonly [typeof DaffPaginatorComponent];
@@ -7,10 +7,11 @@ A progress bar provides visual feedback about the duration or progress of a task
7
7
  To use progress bar in a standalone component, import `DAFF_PROGRESS_BAR_COMPONENTS` directly into your custom component:
8
8
 
9
9
  ```ts
10
+ import { DAFF_PROGRESS_BAR_COMPONENTS } from '@daffodil/design/progress-bar';
11
+
10
12
  @Component({
11
13
  selector: 'custom-component',
12
14
  templateUrl: './custom-component.component.html',
13
- standalone: true,
14
15
  imports: [
15
16
  DAFF_PROGRESS_BAR_COMPONENTS,
16
17
  ],
@@ -23,8 +24,8 @@ To use progress bar in a module, import `DaffProgressBarModule` into your custom
23
24
 
24
25
  ```ts
25
26
  import { NgModule } from '@angular/core';
26
-
27
27
  import { DaffProgressBarModule } from '@daffodil/design/progress-bar';
28
+ import { CustomComponent } from './custom.component';
28
29
 
29
30
  @NgModule({
30
31
  declarations: [
@@ -56,11 +57,9 @@ Indeterminate progress bars should be used when the loading percentage of a task
56
57
  <design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container>
57
58
 
58
59
  ## Theming
59
- The progress bar color is defined by using the `color` property. By default, the color is set to `primary`. This can be changed to one of the supported colors.
60
-
61
- Supported colors: `primary | secondary | tertiary | theme | theme-contrast | white | black`
60
+ Use the `color` property to change the color of a progress bar. The default color is primary.
62
61
 
63
- > `theme`, `theme-contrast`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
62
+ > `theme`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
64
63
 
65
64
  <design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container>
66
65
 
@@ -4,9 +4,6 @@ import { DaffColorableDirective } from '@daffodil/design';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@daffodil/design";
6
6
  export declare const clamp: (number: number, min: number, max: number) => number;
7
- /**
8
- * @inheritdoc
9
- */
10
7
  export declare class DaffProgressBarComponent {
11
8
  private _changeDetectorRef;
12
9
  private colorable;
@@ -1,3 +1,6 @@
1
1
  import { DaffProgressBarLabelDirective } from './progress-bar-label/progress-bar-label.directive';
2
2
  import { DaffProgressBarComponent } from './progress-bar.component';
3
+ /**
4
+ * @docs-private
5
+ */
3
6
  export declare const DAFF_PROGRESS_BAR_COMPONENTS: readonly [typeof DaffProgressBarComponent, typeof DaffProgressBarLabelDirective];
@@ -11,33 +11,42 @@
11
11
  $white: core.daff-map-get($theme, 'core', 'white');
12
12
  $black: core.daff-map-get($theme, 'core', 'black');
13
13
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
+ $type: core.daff-map-get($theme, 'core', 'type');
14
15
 
15
16
  .daff-progress-bar {
16
17
  $root: '.daff-progress-bar';
17
18
 
18
19
  #{$root}__label {
19
- color: theming.daff-illuminate($base-contrast, $neutral, 2);
20
+ color: theming.daff-text-contrast($base);
20
21
  }
21
22
 
22
- #{$root}__track {
23
- background: theming.daff-illuminate($base, $neutral, 2);
23
+ @include theming.light($type) {
24
+ #{$root}__track {
25
+ background: theming.daff-color($neutral, 30);
26
+ }
27
+ }
28
+
29
+ @include theming.dark($type) {
30
+ #{$root}__track {
31
+ background: theming.daff-color($neutral, 80);
32
+ }
24
33
  }
25
34
 
26
35
  &.daff-primary {
27
36
  #{$root}__fill {
28
- background: theming.daff-illuminate($base, $primary, 6);
37
+ background: theming.daff-color($primary);
29
38
  }
30
39
  }
31
40
 
32
41
  &.daff-secondary {
33
42
  #{$root}__fill {
34
- background: theming.daff-illuminate($base, $secondary, 6);
43
+ background: theming.daff-color($secondary);
35
44
  }
36
45
  }
37
46
 
38
47
  &.daff-tertiary {
39
48
  #{$root}__fill {
40
- background: theming.daff-illuminate($base, $tertiary, 6);
49
+ background: theming.daff-color($tertiary);
41
50
  }
42
51
  }
43
52
 
@@ -53,13 +62,13 @@
53
62
  }
54
63
  }
55
64
 
56
- &.daff-white {
65
+ &.daff-light {
57
66
  #{$root}__fill {
58
67
  background: $white;
59
68
  }
60
69
  }
61
70
 
62
- &.daff-black {
71
+ &.daff-dark {
63
72
  #{$root}__fill {
64
73
  background: $black;
65
74
  }