@daffodil/design 0.81.0 → 0.82.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 (243) 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/article/README.md +4 -3
  10. package/article/article.d.ts +3 -0
  11. package/article/src/article-theme.scss +25 -2
  12. package/breadcrumb/README.md +38 -28
  13. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
  14. package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
  15. package/breadcrumb/breadcrumb.d.ts +3 -0
  16. package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
  17. package/breadcrumb/public_api.d.ts +2 -2
  18. package/button/README.md +43 -23
  19. package/button/button/basic/button.component.d.ts +5 -1
  20. package/button/button/button-base.directive.d.ts +11 -3
  21. package/button/button/button-sizable.directive.d.ts +1 -1
  22. package/button/button/raised/raised.component.d.ts +2 -0
  23. package/button/button/stroked/stroked.component.d.ts +5 -1
  24. package/button/button.d.ts +4 -2
  25. package/button/button.module.d.ts +1 -2
  26. package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
  27. package/button/examples/examples.d.ts +2 -1
  28. package/button/examples/public_api.d.ts +1 -0
  29. package/button/public_api.d.ts +0 -1
  30. package/button/src/button/basic/button-theme.scss +180 -80
  31. package/button/src/button/button-base.scss +26 -15
  32. package/button/src/button/flat/flat-theme.scss +144 -85
  33. package/button/src/button/raised/raised-theme.scss +2 -7
  34. package/button/src/button/stroked/stroked-theme.scss +126 -92
  35. package/button/src/button/underline/underline-theme.scss +112 -44
  36. package/callout/README.md +4 -3
  37. package/callout/callout.d.ts +3 -0
  38. package/card/README.md +6 -3
  39. package/card/card/basic/basic.component.d.ts +7 -0
  40. package/card/card/raised/raised.component.d.ts +7 -0
  41. package/card/card/stroked/stroked.component.d.ts +7 -0
  42. package/card/card-base.directive.d.ts +25 -0
  43. package/card/card.d.ts +18 -1
  44. package/card/card.module.d.ts +10 -8
  45. package/card/public_api.d.ts +6 -1
  46. package/card/src/card/raised/raised-theme.scss +30 -0
  47. package/card/src/card/stroked/stroked-theme.scss +46 -0
  48. package/card/src/card-base-theme.scss +126 -0
  49. package/card/src/card-base.scss +134 -0
  50. package/container/README.md +5 -3
  51. package/container/container.d.ts +3 -0
  52. package/core/colorable/colorable.d.ts +20 -14
  53. package/core/colorable/colorable.directive.d.ts +9 -6
  54. package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
  55. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-accordion.mjs +56 -29
  57. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-article-examples.mjs +30 -30
  59. package/fesm2022/daffodil-design-article.mjs +14 -11
  60. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  61. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
  62. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  63. package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
  64. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-button-examples.mjs +55 -33
  66. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-button.mjs +79 -69
  68. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
  70. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-callout.mjs +25 -22
  72. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-card-examples.mjs +23 -21
  74. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-card.mjs +140 -86
  76. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
  78. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-container-examples.mjs +3 -3
  80. package/fesm2022/daffodil-design-container.mjs +10 -7
  81. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
  83. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-hero.mjs +25 -22
  85. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-image-examples.mjs +9 -9
  87. package/fesm2022/daffodil-design-image.mjs +36 -19
  88. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-input-examples.mjs +12 -12
  90. package/fesm2022/daffodil-design-link-set.mjs +19 -16
  91. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  92. package/fesm2022/daffodil-design-list-examples.mjs +12 -12
  93. package/fesm2022/daffodil-design-list.mjs +13 -10
  94. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  96. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-loading-icon.mjs +11 -8
  98. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
  100. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-media-gallery.mjs +165 -250
  102. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
  104. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-menu.mjs +16 -16
  106. package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
  107. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  108. package/fesm2022/daffodil-design-modal.mjs +28 -25
  109. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  110. package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
  111. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  112. package/fesm2022/daffodil-design-navbar.mjs +10 -7
  113. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  114. package/fesm2022/daffodil-design-notification-examples.mjs +15 -15
  115. package/fesm2022/daffodil-design-notification.mjs +22 -19
  116. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  117. package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
  118. package/fesm2022/daffodil-design-paginator.mjs +13 -7
  119. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  120. package/fesm2022/daffodil-design-progress-bar-examples.mjs +9 -9
  121. package/fesm2022/daffodil-design-progress-bar.mjs +13 -10
  122. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  123. package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
  124. package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
  125. package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
  126. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-sidebar.mjs +147 -53
  128. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
  130. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  131. package/fesm2022/daffodil-design-switch.mjs +6 -3
  132. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  133. package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
  134. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  135. package/fesm2022/daffodil-design-tabs.mjs +66 -34
  136. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  137. package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
  138. package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
  139. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  140. package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
  141. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  142. package/fesm2022/daffodil-design-toast.mjs +301 -245
  143. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  144. package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
  145. package/fesm2022/daffodil-design-tree.mjs +13 -10
  146. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  147. package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
  148. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
  149. package/fesm2022/daffodil-design.mjs +167 -155
  150. package/fesm2022/daffodil-design.mjs.map +1 -1
  151. package/hero/README.md +4 -3
  152. package/hero/hero.d.ts +3 -0
  153. package/image/README.md +4 -3
  154. package/image/image/image.component.d.ts +22 -1
  155. package/image/image.d.ts +3 -0
  156. package/link-set/README.md +4 -3
  157. package/link-set/link-set.d.ts +3 -0
  158. package/list/README.md +4 -3
  159. package/list/list.d.ts +3 -0
  160. package/loading-icon/README.md +10 -7
  161. package/loading-icon/loading-icon.d.ts +3 -0
  162. package/loading-icon/src/loading-icon-theme.scss +66 -38
  163. package/media-gallery/README.md +17 -8
  164. package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
  165. package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
  166. package/media-gallery/examples/public_api.d.ts +2 -0
  167. package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
  168. package/media-gallery/media-gallery/media-gallery.component.d.ts +73 -11
  169. package/media-gallery/media-gallery.d.ts +4 -2
  170. package/media-gallery/media-gallery.module.d.ts +1 -2
  171. package/media-gallery/public_api.d.ts +0 -1
  172. package/media-gallery/src/media-gallery-theme.scss +30 -4
  173. package/media-gallery/thumbnail/thumbnail.directive.d.ts +29 -23
  174. package/menu/README.md +1 -2
  175. package/modal/README.md +3 -2
  176. package/modal/modal.d.ts +3 -0
  177. package/navbar/README.md +3 -2
  178. package/navbar/navbar.d.ts +3 -0
  179. package/notification/README.md +5 -4
  180. package/notification/notification.d.ts +3 -0
  181. package/package.json +1 -1
  182. package/paginator/README.md +3 -2
  183. package/paginator/paginator/paginator.component.d.ts +3 -0
  184. package/paginator/paginator.d.ts +3 -0
  185. package/progress-bar/README.md +3 -2
  186. package/progress-bar/progress-bar.d.ts +3 -0
  187. package/scss/theme.scss +36 -17
  188. package/scss/theming/_configure-theme.scss +2 -0
  189. package/scss/theming/_index.scss +1 -0
  190. package/scss/theming/_light-dark.scss +45 -0
  191. package/sidebar/README.md +20 -21
  192. package/sidebar/helper/sidebar-mode.d.ts +9 -15
  193. package/sidebar/sidebar/sidebar.component.d.ts +22 -7
  194. package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
  195. package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
  196. package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
  197. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
  198. package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
  199. package/sidebar/sidebar.d.ts +3 -0
  200. package/switch/README.md +3 -2
  201. package/switch/switch.d.ts +3 -0
  202. package/tabs/README.md +33 -3
  203. package/tabs/tabs/tab/tab.component.d.ts +1 -1
  204. package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
  205. package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
  206. package/tabs/tabs/tabs.component.d.ts +21 -4
  207. package/tabs/tabs.d.ts +8 -2
  208. package/text-snippet/README.md +19 -1
  209. package/toast/README.md +21 -151
  210. package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
  211. package/toast/examples/public_api.d.ts +2 -1
  212. package/toast/interfaces/toast-action.d.ts +22 -11
  213. package/toast/interfaces/toast-action.type.d.ts +10 -0
  214. package/toast/interfaces/toast.d.ts +11 -5
  215. package/toast/options/daff-toast-options.d.ts +2 -1
  216. package/toast/public_api.d.ts +2 -6
  217. package/toast/service/position.service.d.ts +9 -1
  218. package/toast/service/toast.service.d.ts +63 -0
  219. package/toast/toast/toast-config.d.ts +24 -1
  220. package/toast/toast/toast-provider.d.ts +16 -0
  221. package/toast/toast/toast-template.component.d.ts +1 -3
  222. package/toast/toast/toast.component.d.ts +20 -1
  223. package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
  224. package/toast/toast-message/toast-message.directive.d.ts +3 -0
  225. package/toast/toast-title/toast-title.directive.d.ts +3 -0
  226. package/tree/README.md +6 -10
  227. package/tree/tree.d.ts +3 -0
  228. package/youtube-player/index.d.ts +1 -0
  229. package/youtube-player/public_api.d.ts +3 -0
  230. package/youtube-player/safe-url.pipe.d.ts +10 -0
  231. package/youtube-player/youtube-player.component.d.ts +23 -0
  232. package/youtube-player/youtube-player.d.ts +6 -0
  233. package/card/card/card.component.d.ts +0 -48
  234. package/card/src/card-theme-variants/basic-card.scss +0 -6
  235. package/card/src/card-theme-variants/linkable-card.scss +0 -16
  236. package/card/src/card-theme-variants/stroked-card.scss +0 -3
  237. package/card/src/card-theme.scss +0 -170
  238. package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
  239. package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
  240. package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
  241. package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
  242. package/scss/theming/prebuilt/internal-theme.scss +0 -13
  243. 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,41 @@
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
+ * A structural directive marking thumbnails for 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 {
15
12
  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;
13
+ templateRef: TemplateRef<unknown>;
21
14
  /**
22
- * Adds a class for styling a thumbnail
15
+ * The id of the thumbnail.
23
16
  */
24
- class: boolean;
17
+ get id(): string;
25
18
  /**
26
- * Adds a click event to trigger selection of the media element.
27
- *
28
- * @param event: MouseEvent
19
+ * The id of the thumbnail panel.
20
+ */
21
+ get panelId(): string;
22
+ /**
23
+ * The file path to a thumbnail, presumably an image.
24
+ */
25
+ thumbnailSrc: any;
26
+ /**
27
+ * The button label for the thumbnail.
28
+ */
29
+ label: string;
30
+ isVideo: boolean;
31
+ /**
32
+ * @docs-private
33
+ */
34
+ constructor(gallery: DaffMediaGalleryRegistration, templateRef: TemplateRef<unknown>);
35
+ /**
36
+ * @docs-private
29
37
  */
30
- onClick($event: MouseEvent): void;
31
38
  ngOnInit(): void;
32
- ngOnDestroy(): void;
33
39
  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"; }; }]>;
40
+ 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
41
  }
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];
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.81.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.7","@angular/common":"19.0.7","@angular/core":"19.0.7","@angular/forms":"19.0.7","@angular/cdk":"19.0.5","@daffodil/core":"0.81.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"},"./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"},"./radio/examples":{"types":"./radio/examples/index.d.ts","default":"./fesm2022/daffodil-design-radio-examples.mjs"},"./quantity-field/examples":{"types":"./quantity-field/examples/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field-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.82.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.82.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: [
@@ -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];
package/scss/theme.scss CHANGED
@@ -33,7 +33,9 @@
33
33
  @use '../loading-icon/src/loading-icon-theme' as loading-icon;
34
34
  @use '../accordion/src/accordion-theme' as accordion;
35
35
  @use '../callout/src/callout-theme' as callout;
36
- @use '../card/src/card-theme' as card;
36
+ @use '../card/src/card-base-theme' as card-base;
37
+ @use '../card/src/card/raised/raised-theme' as raised-card;
38
+ @use '../card/src/card/stroked/stroked-theme' as stroked-card;
37
39
  @use '../hero/src/hero-theme' as hero;
38
40
  @use '../list/src/list-theme' as list;
39
41
  @use '../media-gallery/src/media-gallery-theme' as media-gallery;
@@ -51,52 +53,69 @@
51
53
  @use '../toast/src/toast-theme' as toast;
52
54
 
53
55
  //
54
- // Generates the styles of a @daffodil/design theme.
56
+ // Generates the styles of `@daffodil/design`'s component themes.
55
57
  //
56
- // Usage:
58
+ // @usage
57
59
  // ```scss
58
- // @use '@daffodil/design/scss/theme';
60
+ // @use '@daffodil/design/scss/theme' as daff-theme;
59
61
  //
60
- // @include daff-theme($theme);
62
+ // @include daff-theme.daff-component-themes($theme);
61
63
  // ```
62
- @mixin daff-theme($theme) {
64
+ @mixin daff-component-themes($theme) {
63
65
  // CSS variables
64
66
  @include variables.daff-theme-css-variables($theme);
65
67
 
66
68
  // Mixins
67
69
  @include skeleton.daff-skeleton-theme($theme);
68
70
 
69
- // Atoms
71
+ @include accordion.daff-accordion-theme($theme);
72
+ @include article.daff-article-theme($theme);
73
+ @include breadcrumb.daff-breadcrumb-theme($theme);
74
+
70
75
  @include button.daff-button-theme($theme);
71
76
  @include flat-button.daff-flat-button-theme($theme);
72
77
  @include icon-button.daff-icon-button-theme($theme);
73
78
  @include raised-button.daff-raised-button-theme($theme);
74
79
  @include stroked-button.daff-stroked-button-theme($theme);
75
80
  @include underline-button.daff-underline-button-theme($theme);
76
- @include breadcrumb.daff-breadcrumb-theme($theme);
77
- @include error-message.daff-error-message-theme($theme);
81
+
82
+ @include callout.daff-callout-theme($theme);
83
+ @include card-base.daff-card-base-theme($theme);
84
+ @include raised-card.daff-raised-card-theme($theme);
85
+ @include stroked-card.daff-stroked-card-theme($theme);
86
+
78
87
  @include form-field.daff-form-field-theme($theme);
88
+ @include error-message.daff-error-message-theme($theme);
79
89
  @include input.daff-input-theme($theme);
80
90
  @include native-select.daff-native-select-theme($theme);
81
- @include loading-icon.daff-loading-icon-theme($theme);
82
- @include progress-bar.daff-progress-bar-theme($theme);
83
91
 
84
- // Molecules
85
- @include accordion.daff-accordion-theme($theme);
86
- @include article.daff-article-theme($theme);
87
- @include callout.daff-callout-theme($theme);
88
- @include card.daff-card-theme($theme);
89
92
  @include hero.daff-hero-theme($theme);
90
93
  @include list.daff-list-theme($theme);
94
+ @include loading-icon.daff-loading-icon-theme($theme);
91
95
  @include media-gallery.daff-media-gallery-theme($theme);
92
96
  @include menu.daff-menu-theme($theme);
93
97
  @include modal.daff-modal-theme($theme);
94
98
  @include navbar.daff-navbar-theme($theme);
95
99
  @include notification.daff-notification-theme($theme);
96
100
  @include paginator.daff-paginator-theme($theme);
101
+ @include progress-bar.daff-progress-bar-theme($theme);
97
102
  @include sidebar.daff-sidebar-theme($theme);
98
103
  @include switch.daff-switch-theme($theme);
99
104
  @include tabs.daff-tabs-theme($theme);
100
- @include tree.daff-tree-theme($theme);
101
105
  @include toast.daff-toast-theme($theme);
106
+ @include tree.daff-tree-theme($theme);
107
+ }
108
+
109
+ //
110
+ // @deprecated
111
+ // Generates the styles of a @daffodil/design theme.
112
+ //
113
+ // Usage:
114
+ // ```scss
115
+ // @use '@daffodil/design/scss/theme';
116
+ //
117
+ // @include daff-theme($theme);
118
+ // ```
119
+ @mixin daff-theme($theme) {
120
+ @include daff-component-themes($theme);
102
121
  }
@@ -4,6 +4,7 @@
4
4
  @use 'get-color';
5
5
 
6
6
  $daff-light-theme: (
7
+ 'type': 'light',
7
8
  'font-color': get-color.daff-color(palette.$daff-neutral, 110),
8
9
  'base': get-color.daff-color(palette.$daff-neutral, 0),
9
10
  'base-contrast': get-color.daff-color(palette.$daff-neutral, 110),
@@ -13,6 +14,7 @@ $daff-light-theme: (
13
14
  );
14
15
 
15
16
  $daff-dark-theme: (
17
+ 'type': 'dark',
16
18
  'font-color': get-color.daff-color(palette.$daff-neutral, 0),
17
19
  'base': get-color.daff-color(palette.$daff-neutral, 100),
18
20
  'base-contrast': get-color.daff-color(palette.$daff-neutral, 0),
@@ -4,4 +4,5 @@
4
4
  @forward 'illuminate/illuminate';
5
5
  @forward 'configure-palette';
6
6
  @forward 'configure-theme';
7
+ @forward 'light-dark';
7
8
  @forward 'daff-theme';
@@ -0,0 +1,45 @@
1
+ //
2
+ // Apply styles only in light mode.
3
+ //
4
+ // @usage
5
+ // ```scss
6
+ // @use 'theme' as daff-theme;
7
+ //
8
+ // $type: daff-theme.daff-map-get($theme, 'core', 'type');
9
+ //
10
+ // @include daff-theme.light($type) {
11
+ // color: blue;
12
+ //
13
+ // .class {
14
+ // background: white;
15
+ // }
16
+ // }
17
+ // ```
18
+ @mixin light($mode) {
19
+ @if $mode == 'light' {
20
+ @content;
21
+ }
22
+ }
23
+
24
+ //
25
+ // Apply styles only in dark mode.
26
+ //
27
+ // @usage
28
+ // ```scss
29
+ // @use 'theme' as daff-theme;
30
+ //
31
+ // $type: daff-theme.daff-map-get($theme, 'core', 'type');
32
+ //
33
+ // @include daff-theme.dark($type) {
34
+ // color: blue;
35
+ //
36
+ // .class {
37
+ // background: white;
38
+ // }
39
+ // }
40
+ // ```
41
+ @mixin dark($mode) {
42
+ @if $mode == 'dark' {
43
+ @content;
44
+ }
45
+ }