@daffodil/design 0.94.1 → 0.95.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 (170) hide show
  1. package/README.md +1 -2
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +4 -27
  4. package/article/src/article-theme.scss +14 -14
  5. package/badge/src/badge-theme.scss +0 -6
  6. package/button/README.md +0 -4
  7. package/button/src/button/basic/button-theme.scss +17 -42
  8. package/button/src/button/button-base.scss +12 -3
  9. package/button/src/button/flat/flat-theme.scss +14 -12
  10. package/button/src/button/icon/icon-theme.scss +19 -40
  11. package/button/src/button/stroked/stroked-theme.scss +22 -36
  12. package/card/src/card/stroked/stroked-theme.scss +1 -1
  13. package/card/src/card-base.scss +0 -1
  14. package/fesm2022/daffodil-design-accordion.mjs +285 -188
  15. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  16. package/fesm2022/daffodil-design-article.mjs +578 -340
  17. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  18. package/fesm2022/daffodil-design-badge.mjs +166 -84
  19. package/fesm2022/daffodil-design-badge.mjs.map +1 -1
  20. package/fesm2022/daffodil-design-beacon.mjs +109 -47
  21. package/fesm2022/daffodil-design-beacon.mjs.map +1 -1
  22. package/fesm2022/daffodil-design-breadcrumb.mjs +384 -277
  23. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  24. package/fesm2022/daffodil-design-button.mjs +541 -408
  25. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  26. package/fesm2022/daffodil-design-callout.mjs +349 -224
  27. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  28. package/fesm2022/daffodil-design-card.mjs +496 -327
  29. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  30. package/fesm2022/daffodil-design-checkbox.mjs +373 -313
  31. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -1
  32. package/fesm2022/daffodil-design-container.mjs +103 -60
  33. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  34. package/fesm2022/daffodil-design-form-field.mjs +441 -352
  35. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  36. package/fesm2022/daffodil-design-form.mjs +155 -57
  37. package/fesm2022/daffodil-design-form.mjs.map +1 -1
  38. package/fesm2022/daffodil-design-hero.mjs +349 -234
  39. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  40. package/fesm2022/daffodil-design-image-lite.mjs +60 -0
  41. package/fesm2022/daffodil-design-image-lite.mjs.map +1 -0
  42. package/fesm2022/daffodil-design-image.mjs +245 -107
  43. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  44. package/fesm2022/daffodil-design-input.mjs +217 -164
  45. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  46. package/fesm2022/daffodil-design-list.mjs +308 -170
  47. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  48. package/fesm2022/daffodil-design-media-gallery.mjs +351 -278
  49. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  50. package/fesm2022/daffodil-design-menu.mjs +525 -417
  51. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  52. package/fesm2022/daffodil-design-modal.mjs +680 -450
  53. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  54. package/fesm2022/daffodil-design-native-select.mjs +175 -166
  55. package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-navbar.mjs +145 -68
  57. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-notification.mjs +376 -226
  59. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-paginator.mjs +296 -192
  61. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-progress-bar.mjs +243 -157
  63. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-radio.mjs +382 -300
  65. package/fesm2022/daffodil-design-radio.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-select.mjs +424 -364
  67. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-sidebar.mjs +874 -887
  69. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-spinner.mjs +156 -99
  71. package/fesm2022/daffodil-design-spinner.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-switch.mjs +176 -106
  73. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-tabs.mjs +685 -427
  75. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-tag.mjs +251 -133
  77. package/fesm2022/daffodil-design-tag.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-testing.mjs +4 -16
  79. package/fesm2022/daffodil-design-testing.mjs.map +1 -1
  80. package/fesm2022/daffodil-design-text-snippet.mjs +140 -54
  81. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  82. package/fesm2022/daffodil-design-textarea.mjs +170 -150
  83. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  84. package/fesm2022/daffodil-design-toast.mjs +658 -481
  85. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-tree.mjs +456 -469
  87. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-youtube-player.mjs +168 -115
  89. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  90. package/fesm2022/daffodil-design.mjs +1628 -1650
  91. package/fesm2022/daffodil-design.mjs.map +1 -1
  92. package/form-field/README.md +0 -4
  93. package/form-field/src/form-field-theme.scss +12 -4
  94. package/image/README.md +4 -0
  95. package/image-lite/README.md +58 -0
  96. package/image-lite/src/image-theme.scss +18 -0
  97. package/list/src/list-base.scss +3 -4
  98. package/list/src/list-theme.scss +6 -5
  99. package/media-gallery/README.md +1 -1
  100. package/media-gallery/src/media-gallery-theme.scss +3 -3
  101. package/menu/src/menu-theme.scss +6 -2
  102. package/notification/src/notification-theme.scss +10 -10
  103. package/package.json +1 -1
  104. package/scss/global.scss +17 -11
  105. package/scss/theme.scss +2 -18
  106. package/scss/theming/_get-palette.scss +0 -3
  107. package/scss/theming/_index.scss +0 -1
  108. package/scss/theming/_light-dark.scss +2 -2
  109. package/scss/theming/_theme-css-variables.scss +1 -1
  110. package/scss/theming/create-theme/_create-theme.scss +2 -2
  111. package/scss/theming/get-font-colors/_get-font-colors.scss +7 -25
  112. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +0 -12
  113. package/scss/typography/_classes.scss +0 -6
  114. package/scss/typography/_index.scss +0 -1
  115. package/scss/typography/mixins/_sizes.scss +0 -1
  116. package/scss/typography/utilities/_variables.scss +3 -0
  117. package/select/src/select-theme.scss +10 -14
  118. package/switch/src/switch-theme.scss +2 -2
  119. package/tabs/src/tabs-theme.scss +4 -4
  120. package/types/daffodil-design-accordion.d.ts +92 -67
  121. package/types/daffodil-design-article.d.ts +49 -56
  122. package/types/daffodil-design-badge.d.ts +56 -33
  123. package/types/daffodil-design-beacon.d.ts +35 -14
  124. package/types/daffodil-design-breadcrumb.d.ts +89 -85
  125. package/types/daffodil-design-button.d.ts +128 -146
  126. package/types/daffodil-design-callout.d.ts +55 -39
  127. package/types/daffodil-design-card.d.ts +66 -56
  128. package/types/daffodil-design-checkbox.d.ts +211 -167
  129. package/types/daffodil-design-container.d.ts +17 -16
  130. package/types/daffodil-design-form-field.d.ts +273 -240
  131. package/types/daffodil-design-form.d.ts +21 -21
  132. package/types/daffodil-design-hero.d.ts +55 -39
  133. package/types/daffodil-design-image-lite.d.ts +17 -0
  134. package/types/daffodil-design-image.d.ts +89 -55
  135. package/types/daffodil-design-input.d.ts +86 -72
  136. package/types/daffodil-design-list.d.ts +49 -43
  137. package/types/daffodil-design-media-gallery.d.ts +176 -148
  138. package/types/daffodil-design-menu.d.ts +177 -169
  139. package/types/daffodil-design-modal.d.ts +205 -205
  140. package/types/daffodil-design-native-select.d.ts +94 -84
  141. package/types/daffodil-design-navbar.d.ts +34 -24
  142. package/types/daffodil-design-notification.d.ts +82 -67
  143. package/types/daffodil-design-paginator.d.ts +140 -118
  144. package/types/daffodil-design-progress-bar.d.ts +92 -74
  145. package/types/daffodil-design-radio.d.ts +183 -144
  146. package/types/daffodil-design-select.d.ts +207 -178
  147. package/types/daffodil-design-sidebar.d.ts +270 -253
  148. package/types/daffodil-design-spinner.d.ts +49 -36
  149. package/types/daffodil-design-switch.d.ts +77 -46
  150. package/types/daffodil-design-tabs.d.ts +248 -198
  151. package/types/daffodil-design-tag.d.ts +91 -56
  152. package/types/daffodil-design-testing.d.ts +1 -3
  153. package/types/daffodil-design-text-snippet.d.ts +48 -37
  154. package/types/daffodil-design-textarea.d.ts +88 -79
  155. package/types/daffodil-design-toast.d.ts +175 -183
  156. package/types/daffodil-design-tree.d.ts +186 -169
  157. package/types/daffodil-design-youtube-player.d.ts +56 -52
  158. package/types/daffodil-design.d.ts +614 -695
  159. package/button/src/button/raised/raised-theme.scss +0 -92
  160. package/button/src/button/underline/underline-theme.scss +0 -141
  161. package/fesm2022/daffodil-design-link-set.mjs +0 -160
  162. package/fesm2022/daffodil-design-link-set.mjs.map +0 -1
  163. package/fesm2022/daffodil-design-quantity-field.mjs +0 -364
  164. package/fesm2022/daffodil-design-quantity-field.mjs.map +0 -1
  165. package/link-set/README.md +0 -86
  166. package/quantity-field/README.md +0 -63
  167. package/scss/theming/_configure-theme.scss +0 -120
  168. package/scss/typography/mixins/_font-weight.scss +0 -14
  169. package/types/daffodil-design-link-set.d.ts +0 -72
  170. package/types/daffodil-design-quantity-field.d.ts +0 -171
@@ -1,184 +1,176 @@
1
- import { BreakpointObserver } from '@angular/cdk/layout';
2
- import { Overlay } from '@angular/cdk/overlay';
3
- import * as i0 from '@angular/core';
4
- import { EventEmitter, OnDestroy, Injector, Provider } from '@angular/core';
5
- import { DaffPalette, DaffStatus, DaffFocusStackService } from '@daffodil/design';
6
- import { Observable } from 'rxjs';
7
-
1
+ import { BreakpointObserver } from "@angular/cdk/layout";
2
+ import { Overlay } from "@angular/cdk/overlay";
3
+ import * as i0 from "@angular/core";
4
+ import { EventEmitter, Injector, OnDestroy, Provider } from "@angular/core";
5
+ import { DaffColor, DaffFocusStackService, DaffStatus } from "@daffodil/design";
6
+ import { Observable } from "rxjs";
8
7
  /**
9
8
  * The available vertical positions for toasts.
10
9
  */
11
- type DaffToastVerticalPosition = 'top' | 'bottom';
10
+ export type DaffToastVerticalPosition = 'top' | 'bottom';
12
11
  /**
13
12
  * The available horizontal positions for toasts.
14
13
  */
15
- type DaffToastHorizontalPosition = 'left' | 'center' | 'right';
16
-
14
+ export type DaffToastHorizontalPosition = 'left' | 'center' | 'right';
17
15
  interface DaffToastVerticalPositionInterface {
18
- vertical: DaffToastVerticalPosition;
16
+ vertical: DaffToastVerticalPosition;
19
17
  }
20
18
  interface DaffToastHorizontalPositionInterface {
21
- horizontal: DaffToastHorizontalPosition;
19
+ horizontal: DaffToastHorizontalPosition;
22
20
  }
23
- type DaffToastPosition = DaffToastVerticalPositionInterface & DaffToastHorizontalPositionInterface;
24
- interface DaffToastOptions {
25
- /**
26
- * The position of all toasts.
27
- */
28
- position: DaffToastPosition;
29
- /**
30
- * @docs-private
31
- */
32
- useParent?: boolean;
21
+ export type DaffToastPosition = DaffToastVerticalPositionInterface & DaffToastHorizontalPositionInterface;
22
+ export interface DaffToastOptions {
23
+ /**
24
+ * The position of all toasts.
25
+ */
26
+ position: DaffToastPosition;
27
+ /**
28
+ * @docs-private
29
+ */
30
+ useParent?: boolean;
33
31
  }
34
-
35
32
  declare class DaffToastPositionService {
36
- private options;
37
- private mediaQuery;
38
- constructor(options: DaffToastOptions, mediaQuery: BreakpointObserver);
39
- private _config;
40
- private _position;
41
- /**
42
- * Reads the current position of the toast. Defaults to bottom center on mobile devices.
43
- */
44
- get config(): DaffToastPosition;
45
- private set config(value);
46
- /**
47
- * Changes the position of the toast.
48
- *
49
- * @param position The position of the toast.
50
- */
51
- setPosition(position: DaffToastPosition): void;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastPositionService, never>;
53
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffToastPositionService>;
33
+ private options;
34
+ private mediaQuery;
35
+ constructor(options: DaffToastOptions, mediaQuery: BreakpointObserver);
36
+ private _config;
37
+ private _position;
38
+ /**
39
+ * Reads the current position of the toast. Defaults to bottom center on mobile devices.
40
+ */
41
+ get config(): DaffToastPosition;
42
+ private set config(value);
43
+ /**
44
+ * Changes the position of the toast.
45
+ *
46
+ * @param position The position of the toast.
47
+ */
48
+ setPosition(position: DaffToastPosition): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastPositionService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
54
51
  }
55
-
56
52
  /**
57
53
  * The available button styles that can be used in {@link DaffToastAction}.
58
54
  * These correspond to the types supported by {@link DaffButtonComponent}.
59
55
  */
60
- type DaffToastActionButtonType = 'raised' | 'underline' | 'stroked' | 'flat' | undefined;
56
+ export type DaffToastActionButtonType = 'stroked' | 'flat' | undefined;
61
57
  /**
62
58
  * The available button sizes that can be used in {@link DaffToastAction}.
63
59
  * These correspond to the types supported by {@link DaffButtonComponent}.
64
60
  */
65
- type DaffToastActionButtonSize = 'sm' | 'md' | 'lg' | undefined;
66
-
61
+ export type DaffToastActionButtonSize = 'sm' | 'md' | 'lg' | undefined;
67
62
  /**
68
63
  * Configuration for an action button inside a toast. Actions are rendered using {@link DaffButtonComponent}.
69
64
  */
70
- interface DaffToastAction {
71
- /**
72
- * The type of button.
73
- *
74
- * Matches one of the predefined types supported by {@link DaffButtonComponent}.
75
- */
76
- type?: DaffToastActionButtonType;
77
- /**
78
- * The text displayed on the button.
79
- */
80
- content: string;
81
- /**
82
- * The button size.
83
- *
84
- * Matches one of the predefined sizes supported by {@link DaffButtonComponent}.
85
- */
86
- size?: DaffToastActionButtonSize;
87
- /**
88
- * The button color.
89
- *
90
- * Do not use both `color` and `status` simultaneously.
91
- */
92
- color?: DaffPalette;
93
- /**
94
- * The button status.
95
- *
96
- * Do not use both `color` and `status` simultaneously.
97
- */
98
- status?: DaffStatus;
99
- /**
100
- * Data associated with the action.
101
- */
102
- data?: Record<string, any>;
103
- /**
104
- * Emits when the action is triggered.
105
- */
106
- eventEmitter?: EventEmitter<DaffToastAction>;
65
+ export interface DaffToastAction {
66
+ /**
67
+ * The type of button.
68
+ *
69
+ * Matches one of the predefined types supported by {@link DaffButtonComponent}.
70
+ */
71
+ type?: DaffToastActionButtonType;
72
+ /**
73
+ * The text displayed on the button.
74
+ */
75
+ content: string;
76
+ /**
77
+ * The button size.
78
+ *
79
+ * Matches one of the predefined sizes supported by {@link DaffButtonComponent}.
80
+ */
81
+ size?: DaffToastActionButtonSize;
82
+ /**
83
+ * The button color.
84
+ *
85
+ * Do not use both `color` and `status` simultaneously.
86
+ */
87
+ color?: DaffColor;
88
+ /**
89
+ * The button status.
90
+ *
91
+ * Do not use both `color` and `status` simultaneously.
92
+ */
93
+ status?: DaffStatus;
94
+ /**
95
+ * Data associated with the action.
96
+ */
97
+ data?: Record<string, any>;
98
+ /**
99
+ * Emits when the action is triggered.
100
+ */
101
+ eventEmitter?: EventEmitter<DaffToastAction>;
107
102
  }
108
-
109
103
  /**
110
104
  * Data that defines the content and behavior of a toast.
111
105
  */
112
- interface DaffToastData {
113
- /**
114
- * The primary text that summarizes the purpose of the toast.
115
- */
116
- title: string;
117
- /**
118
- * Provides additional details or context about the toast.
119
- */
120
- message?: string;
121
- /**
122
- * The visual status of the toast.
123
- */
124
- status?: DaffStatus;
125
- /**
126
- * Used to display actionable buttons related to the toast.
127
- */
128
- actions?: DaffToastAction[];
129
- /**
130
- * Whether the toast can be manually dismissed with a close button.
131
- */
132
- dismissible?: boolean;
106
+ export interface DaffToastData {
107
+ /**
108
+ * The primary text that summarizes the purpose of the toast.
109
+ */
110
+ title: string;
111
+ /**
112
+ * Provides additional details or context about the toast.
113
+ */
114
+ message?: string;
115
+ /**
116
+ * The visual status of the toast.
117
+ */
118
+ status?: DaffStatus;
119
+ /**
120
+ * Used to display actionable buttons related to the toast.
121
+ */
122
+ actions?: DaffToastAction[];
123
+ /**
124
+ * Whether the toast can be manually dismissed with a close button.
125
+ */
126
+ dismissible?: boolean;
133
127
  }
134
128
  /**
135
129
  * A toast instance.
136
130
  */
137
- interface DaffToast extends DaffToastData {
138
- /**
139
- * Closes the toast.
140
- */
141
- dismiss: () => void;
142
- /**
143
- * Emits when the toast has been closed.
144
- */
145
- dismissalStream: Observable<void>;
131
+ export interface DaffToast extends DaffToastData {
132
+ /**
133
+ * Closes the toast.
134
+ */
135
+ dismiss: () => void;
136
+ /**
137
+ * Emits when the toast has been closed.
138
+ */
139
+ dismissalStream: Observable<void>;
146
140
  }
147
-
148
141
  /**
149
142
  * Defines optional settings that control the behavior of a toast.
150
143
  */
151
- interface DaffToastConfiguration {
152
- /**
153
- * The duration (in milliseconds) the toast remains visible before dismissal. By default, toasts without actions are dismissed after `5000ms`.
154
- *
155
- * While a duration can be set for actionable toasts, it is not recommended since
156
- * users should have sufficient time to interact with the actions.
157
- *
158
- *
159
- * @usage
160
- * ```
161
- * export class CustomComponent {
162
- * private toast: DaffToast;
163
- *
164
- * constructor(private toastService: DaffToastService) {}
165
- *
166
- * open() {
167
- * this.toast = this.toastService.open({
168
- * title: 'Update Complete',
169
- * message: 'This page has been updated to the newest version.',
170
- * status: 'success',
171
- * },
172
- * {
173
- * duration: 7000,
174
- * });
175
- * }
176
- * }
177
- * ```
178
- */
179
- duration?: number;
144
+ export interface DaffToastConfiguration {
145
+ /**
146
+ * The duration (in milliseconds) the toast remains visible before dismissal. By default, toasts without actions are dismissed after `5000ms`.
147
+ *
148
+ * While a duration can be set for actionable toasts, it is not recommended since
149
+ * users should have sufficient time to interact with the actions.
150
+ *
151
+ *
152
+ * @usage
153
+ * ```
154
+ * export class CustomComponent {
155
+ * private toast: DaffToast;
156
+ *
157
+ * constructor(private toastService: DaffToastService) {}
158
+ *
159
+ * open() {
160
+ * this.toast = this.toastService.open({
161
+ * title: 'Update Complete',
162
+ * message: 'This page has been updated to the newest version.',
163
+ * status: 'success',
164
+ * },
165
+ * {
166
+ * duration: 7000,
167
+ * });
168
+ * }
169
+ * }
170
+ * ```
171
+ */
172
+ duration?: number;
180
173
  }
181
-
182
174
  /**
183
175
  * Service to display toasts.
184
176
  *
@@ -228,42 +220,44 @@ interface DaffToastConfiguration {
228
220
  * }
229
221
  * ```
230
222
  */
231
- declare class DaffToastService implements OnDestroy {
232
- private overlay;
233
- private options;
234
- private _parentToast;
235
- private mediaQuery;
236
- private toastPosition;
237
- private focusStack;
238
- private injector;
239
- private _sub;
240
- private _toasts;
241
- private _overlayRef?;
242
- private _template?;
243
- constructor(overlay: Overlay, options: DaffToastOptions, _parentToast: DaffToastService, mediaQuery: BreakpointObserver, toastPosition: DaffToastPositionService, focusStack: DaffFocusStackService, injector: Injector);
244
- /**
245
- * @docs-private
246
- */
247
- ngOnDestroy(): void;
248
- private _attachToastTemplate;
249
- private _createOverlayRef;
250
- /**
251
- * Opens a toast.
252
- *
253
- * @param toast Data that can be shown on a toast.
254
- * @param configuration Additional configuration options such as duration. The default duration is set to `5000ms`.
255
- */
256
- open(toast: DaffToastData, configuration?: Partial<DaffToastConfiguration>): DaffToast;
257
- /**
258
- * Closes a toast.
259
- *
260
- * @param toast The instance of toast that you wish to close.
261
- */
262
- close(toast: DaffToast): void;
263
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastService, [null, null, { optional: true; skipSelf: true; }, null, null, null, null]>;
264
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffToastService>;
223
+ export declare class DaffToastService implements OnDestroy {
224
+ private overlay;
225
+ private options;
226
+ private _parentToast;
227
+ private mediaQuery;
228
+ private toastPosition;
229
+ private focusStack;
230
+ private injector;
231
+ private _sub;
232
+ private _toasts;
233
+ private _overlayRef?;
234
+ private _template?;
235
+ constructor(overlay: Overlay, options: DaffToastOptions, _parentToast: DaffToastService, mediaQuery: BreakpointObserver, toastPosition: DaffToastPositionService, focusStack: DaffFocusStackService, injector: Injector);
236
+ /**
237
+ * @docs-private
238
+ */
239
+ ngOnDestroy(): void;
240
+ private _attachToastTemplate;
241
+ private _createOverlayRef;
242
+ /**
243
+ * Opens a toast.
244
+ *
245
+ * @param toast Data that can be shown on a toast.
246
+ * @param configuration Additional configuration options such as duration. The default duration is set to `5000ms`.
247
+ */
248
+ open(toast: DaffToastData, configuration?: Partial<DaffToastConfiguration>): DaffToast;
249
+ /**
250
+ * Closes a toast.
251
+ *
252
+ * @param toast The instance of toast that you wish to close.
253
+ */
254
+ close(toast: DaffToast): void;
255
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffToastService, [null, null, {
256
+ optional: true;
257
+ skipSelf: true;
258
+ }, null, null, null, null]>;
259
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
265
260
  }
266
-
267
261
  /**
268
262
  * Registers the `DaffToastService` for displaying a toast. This provider ensures
269
263
  * toasts function correctly within your application.
@@ -291,7 +285,5 @@ declare class DaffToastService implements OnDestroy {
291
285
  * regardless of configuration settings.
292
286
  *
293
287
  */
294
- declare const provideDaffToast: (config?: DaffToastOptions) => Provider[];
295
-
296
- export { DaffToastService, provideDaffToast };
297
- export type { DaffToast, DaffToastAction, DaffToastActionButtonSize, DaffToastActionButtonType, DaffToastConfiguration, DaffToastData, DaffToastHorizontalPosition, DaffToastOptions, DaffToastPosition, DaffToastVerticalPosition };
288
+ export declare const provideDaffToast: (config?: DaffToastOptions) => Provider[];
289
+ export {};