@daffodil/design 0.90.0 → 0.92.3-rc.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 (277) hide show
  1. package/accordion/README.md +26 -38
  2. package/accordion/index.d.ts +9 -6
  3. package/article/README.md +66 -46
  4. package/article/index.d.ts +41 -0
  5. package/article/src/article-theme.scss +22 -0
  6. package/breadcrumb/README.md +6 -1
  7. package/breadcrumb/index.d.ts +65 -11
  8. package/breadcrumb/src/breadcrumb-theme.scss +1 -1
  9. package/button/README.md +36 -33
  10. package/button/index.d.ts +27 -6
  11. package/button/src/button/basic/button-theme.scss +4 -2
  12. package/button/src/button/button-base.scss +29 -6
  13. package/button/src/button/icon/icon-theme.scss +10 -6
  14. package/button/src/button/raised/raised-theme.scss +6 -4
  15. package/callout/README.md +15 -27
  16. package/card/README.md +36 -69
  17. package/card/index.d.ts +7 -41
  18. package/card/src/card-base-theme.scss +2 -5
  19. package/card/src/card-base.scss +2 -2
  20. package/checkbox/README.md +0 -0
  21. package/checkbox/index.d.ts +177 -0
  22. package/container/README.md +18 -23
  23. package/fesm2022/daffodil-design-accordion.mjs +34 -25
  24. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  25. package/fesm2022/daffodil-design-article.mjs +283 -17
  26. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  27. package/fesm2022/daffodil-design-breadcrumb.mjs +180 -28
  28. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  29. package/fesm2022/daffodil-design-button.mjs +90 -45
  30. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  31. package/fesm2022/daffodil-design-callout.mjs +23 -23
  32. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  33. package/fesm2022/daffodil-design-card.mjs +43 -90
  34. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  35. package/fesm2022/daffodil-design-checkbox.mjs +317 -0
  36. package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
  37. package/fesm2022/daffodil-design-container.mjs +8 -8
  38. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  39. package/fesm2022/daffodil-design-form-field.mjs +56 -86
  40. package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
  41. package/fesm2022/daffodil-design-form.mjs +62 -0
  42. package/fesm2022/daffodil-design-form.mjs.map +1 -0
  43. package/fesm2022/daffodil-design-hero.mjs +23 -23
  44. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  45. package/fesm2022/daffodil-design-image.mjs +19 -11
  46. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  47. package/fesm2022/daffodil-design-input.mjs +18 -14
  48. package/fesm2022/daffodil-design-input.mjs.map +1 -1
  49. package/fesm2022/daffodil-design-link-set.mjs +25 -17
  50. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  51. package/fesm2022/daffodil-design-list.mjs +16 -16
  52. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  53. package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
  54. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  55. package/fesm2022/daffodil-design-media-gallery.mjs +13 -13
  56. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  57. package/fesm2022/daffodil-design-menu.mjs +223 -60
  58. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  59. package/fesm2022/daffodil-design-modal.mjs +86 -83
  60. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  61. package/fesm2022/daffodil-design-native-select.mjs +47 -41
  62. package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
  63. package/fesm2022/daffodil-design-navbar.mjs +25 -21
  64. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-notification.mjs +28 -64
  66. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-paginator.mjs +11 -16
  68. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-progress-bar.mjs +10 -10
  70. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-quantity-field.mjs +19 -18
  72. package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-radio.mjs +27 -56
  74. package/fesm2022/daffodil-design-radio.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-select.mjs +6 -6
  76. package/fesm2022/daffodil-design-select.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-sidebar.mjs +30 -60
  78. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-spinner.mjs +99 -0
  80. package/fesm2022/daffodil-design-spinner.mjs.map +1 -0
  81. package/fesm2022/daffodil-design-switch.mjs +49 -106
  82. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-tabs.mjs +35 -27
  84. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  85. package/fesm2022/daffodil-design-tag.mjs +7 -7
  86. package/fesm2022/daffodil-design-tag.mjs.map +1 -1
  87. package/fesm2022/daffodil-design-text-snippet.mjs +6 -8
  88. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-textarea.mjs +6 -3
  90. package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-toast.mjs +79 -80
  92. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-tree.mjs +152 -112
  94. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-youtube-player.mjs +6 -6
  96. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  97. package/fesm2022/daffodil-design.mjs +559 -711
  98. package/fesm2022/daffodil-design.mjs.map +1 -1
  99. package/form/README.md +75 -0
  100. package/form/index.d.ts +27 -0
  101. package/form-field/README.md +74 -99
  102. package/form-field/index.d.ts +64 -42
  103. package/hero/README.md +5 -5
  104. package/image/README.md +27 -19
  105. package/image/index.d.ts +6 -1
  106. package/index.d.ts +282 -447
  107. package/input/README.md +36 -16
  108. package/input/index.d.ts +4 -3
  109. package/link-set/index.d.ts +9 -1
  110. package/list/README.md +2 -2
  111. package/loading-icon/README.md +1 -1
  112. package/loading-icon/index.d.ts +1 -1
  113. package/media-gallery/README.md +3 -3
  114. package/menu/README.md +107 -10
  115. package/menu/index.d.ts +143 -11
  116. package/modal/README.md +107 -17
  117. package/modal/index.d.ts +72 -35
  118. package/native-select/README.md +52 -15
  119. package/native-select/index.d.ts +8 -7
  120. package/navbar/README.md +23 -17
  121. package/navbar/index.d.ts +12 -2
  122. package/navbar/src/navbar-theme.scss +4 -46
  123. package/notification/README.md +4 -4
  124. package/notification/index.d.ts +7 -38
  125. package/package.json +1 -1
  126. package/paginator/README.md +42 -6
  127. package/paginator/index.d.ts +5 -9
  128. package/progress-bar/README.md +3 -3
  129. package/quantity-field/README.md +4 -4
  130. package/quantity-field/index.d.ts +4 -1
  131. package/radio/README.md +1 -1
  132. package/radio/index.d.ts +0 -16
  133. package/scss/layout/_breakpoint.scss +1 -1
  134. package/scss/theme.scss +9 -5
  135. package/scss/theming/_color-palettes.scss +19 -11
  136. package/scss/theming/_configure-theme.scss +11 -10
  137. package/scss/theming/_daff-theme.scss +5 -14
  138. package/scss/theming/_get-base-color.scss +2 -2
  139. package/scss/theming/_get-palette.scss +2 -2
  140. package/scss/theming/_get-theme-mode.scss +3 -3
  141. package/scss/theming/_index.scss +2 -1
  142. package/scss/theming/contrast/max-contrast/max-contrast.scss +3 -3
  143. package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
  144. package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
  145. package/scss/theming/create-theme/_create-theme.scss +330 -0
  146. package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
  147. package/scss/theming/create-theme/_index.scss +1 -0
  148. package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
  149. package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
  150. package/scss/typography/mixins/_font-weight.scss +8 -14
  151. package/select/README.md +107 -4
  152. package/sidebar/README.md +6 -14
  153. package/sidebar/index.d.ts +3 -15
  154. package/spinner/README.md +57 -0
  155. package/spinner/index.d.ts +53 -0
  156. package/spinner/src/spinner-theme.scss +62 -0
  157. package/switch/README.md +21 -29
  158. package/switch/index.d.ts +18 -48
  159. package/switch/src/switch-theme.scss +26 -18
  160. package/tabs/README.md +1 -1
  161. package/tabs/index.d.ts +8 -5
  162. package/tag/README.md +24 -30
  163. package/tag/index.d.ts +1 -1
  164. package/tag/src/tag-theme.scss +11 -9
  165. package/text-snippet/README.md +1 -1
  166. package/text-snippet/src/text-snippet-theme.scss +12 -0
  167. package/textarea/README.md +36 -6
  168. package/textarea/index.d.ts +4 -4
  169. package/toast/README.md +4 -4
  170. package/tree/README.md +39 -22
  171. package/tree/index.d.ts +57 -96
  172. package/tree/src/tree-theme.scss +0 -4
  173. package/accordion/examples/index.d.ts +0 -20
  174. package/article/examples/index.d.ts +0 -50
  175. package/breadcrumb/examples/index.d.ts +0 -10
  176. package/button/examples/index.d.ts +0 -67
  177. package/callout/examples/index.d.ts +0 -41
  178. package/card/examples/index.d.ts +0 -62
  179. package/card/src/card/raised/raised-theme.scss +0 -28
  180. package/checkbox/examples/index.d.ts +0 -32
  181. package/container/examples/index.d.ts +0 -16
  182. package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
  183. package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
  184. package/fesm2022/daffodil-design-article-examples.mjs +0 -134
  185. package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
  186. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
  187. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
  188. package/fesm2022/daffodil-design-button-examples.mjs +0 -178
  189. package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
  190. package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
  191. package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
  192. package/fesm2022/daffodil-design-card-examples.mjs +0 -168
  193. package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
  194. package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
  195. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
  196. package/fesm2022/daffodil-design-container-examples.mjs +0 -41
  197. package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
  198. package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
  199. package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
  200. package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
  201. package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
  202. package/fesm2022/daffodil-design-image-examples.mjs +0 -58
  203. package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
  204. package/fesm2022/daffodil-design-input-examples.mjs +0 -108
  205. package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
  206. package/fesm2022/daffodil-design-list-examples.mjs +0 -77
  207. package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
  208. package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
  209. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
  210. package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
  211. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
  212. package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
  213. package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
  214. package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
  215. package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
  216. package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
  217. package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
  218. package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
  219. package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
  220. package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
  221. package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
  222. package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
  223. package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
  224. package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
  225. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
  226. package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
  227. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
  228. package/fesm2022/daffodil-design-radio-examples.mjs +0 -34
  229. package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
  230. package/fesm2022/daffodil-design-select-examples.mjs +0 -117
  231. package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
  232. package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
  233. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
  234. package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
  235. package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
  236. package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
  237. package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
  238. package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
  239. package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
  240. package/fesm2022/daffodil-design-tag-examples.mjs +0 -125
  241. package/fesm2022/daffodil-design-tag-examples.mjs.map +0 -1
  242. package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
  243. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
  244. package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
  245. package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
  246. package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
  247. package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
  248. package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
  249. package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
  250. package/form-field/examples/index.d.ts +0 -18
  251. package/hero/examples/index.d.ts +0 -45
  252. package/image/examples/index.d.ts +0 -10
  253. package/input/examples/index.d.ts +0 -10
  254. package/list/examples/index.d.ts +0 -29
  255. package/loading-icon/examples/index.d.ts +0 -16
  256. package/media-gallery/examples/index.d.ts +0 -38
  257. package/menu/examples/index.d.ts +0 -20
  258. package/modal/examples/index.d.ts +0 -15
  259. package/native-select/examples/index.d.ts +0 -10
  260. package/navbar/examples/index.d.ts +0 -31
  261. package/notification/examples/index.d.ts +0 -12
  262. package/paginator/examples/index.d.ts +0 -26
  263. package/progress-bar/examples/index.d.ts +0 -10
  264. package/quantity-field/examples/index.d.ts +0 -30
  265. package/radio/examples/index.d.ts +0 -13
  266. package/select/examples/index.d.ts +0 -28
  267. package/sidebar/examples/index.d.ts +0 -10
  268. package/sticky/examples/index.d.ts +0 -10
  269. package/switch/examples/index.d.ts +0 -46
  270. package/tabs/examples/index.d.ts +0 -12
  271. package/tag/examples/index.d.ts +0 -50
  272. package/text-snippet/examples/index.d.ts +0 -10
  273. package/textarea/examples/index.d.ts +0 -10
  274. package/toast/examples/index.d.ts +0 -56
  275. package/tree/examples/index.d.ts +0 -18
  276. /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
  277. /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
@@ -2,28 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { EventEmitter } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common';
4
4
  import * as i1 from '@daffodil/design';
5
- import { DaffPrefixDirective, DaffStatusableDirective } from '@daffodil/design';
5
+ import { DaffPrefixDirective, DaffStatusableDirective, DaffOrientableDirective } from '@daffodil/design';
6
6
  import * as i3 from '@fortawesome/angular-fontawesome';
7
7
  import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
8
8
 
9
- /**
10
- * The available orientations for a notification.
11
- *
12
- * | Orientation | Description |
13
- * | -- | -- |
14
- * | `vertical` | Stacks notification content from top to bottom. This is the default orientation. |
15
- * | `horizontal` | Places notification content side-by-side. |
16
- */
17
- type DaffNotificationOrientation = 'horizontal' | 'vertical';
18
- /**
19
- * Enum for representing the available notification orientations.
20
- * See {@link DaffNotificationOrientation} for descriptions of each orientation.
21
- */
22
- declare enum DaffNotificationOrientationEnum {
23
- Horizontal = "horizontal",
24
- Vertical = "vertical"
25
- }
26
-
27
9
  /**
28
10
  * Actions is used to include actionable buttons related to the notification (e.g., dismiss, navigate).
29
11
  *
@@ -60,6 +42,7 @@ declare class DaffNotificationActionsDirective {
60
42
  */
61
43
  declare class DaffNotificationComponent {
62
44
  private statusDirective;
45
+ private orientation;
63
46
  /**
64
47
  * @docs-private
65
48
  */
@@ -83,11 +66,7 @@ declare class DaffNotificationComponent {
83
66
  * Displays a close icon if `true`.
84
67
  */
85
68
  dismissible: boolean;
86
- constructor(statusDirective: DaffStatusableDirective);
87
- /**
88
- * The orientation of a notification.
89
- */
90
- orientation: DaffNotificationOrientation;
69
+ constructor(statusDirective: DaffStatusableDirective, orientation: DaffOrientableDirective);
91
70
  /**
92
71
  * Emits when the notification is closed.
93
72
  */
@@ -99,8 +78,7 @@ declare class DaffNotificationComponent {
99
78
  */
100
79
  onCloseNotification(event: Event): void;
101
80
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationComponent, never>;
102
- static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; }, { "closeNotification": "closeNotification"; }, ["_prefix", "_actions"], ["[daffPrefix]", "[daffNotificationTitle]", "[daffNotificationMessage]", "[daffNotificationActions]"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }]>;
103
- static ngAcceptInputType_orientation: DaffNotificationOrientation | null | undefined;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeNotification": "closeNotification"; }, ["_prefix", "_actions"], ["[daffPrefix]", "[daffNotificationTitle]", "[daffNotificationMessage]", "[daffNotificationActions]"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
104
82
  }
105
83
 
106
84
  /**
@@ -130,27 +108,18 @@ declare class DaffNotificationTitleDirective {
130
108
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationTitleDirective, "[daffNotificationTitle]", never, {}, {}, never, never, true, never>;
131
109
  }
132
110
 
133
- /**
134
- * @deprecated in favor of DaffNotificationMessageDirective. Deprecated in version 0.88.0. Will be removed in version 0.91.0.
135
- */
136
- declare class DaffNotificationSubtitleDirective {
137
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationSubtitleDirective, never>;
138
- static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationSubtitleDirective, "[daffNotificationSubtitle]", never, {}, {}, never, never, true, never>;
139
- }
140
-
141
111
  /**
142
112
  * @deprecated in favor of {@link DAFF_NOTIFICATION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
143
113
  */
144
114
  declare class DaffNotificationModule {
145
115
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationModule, never>;
146
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective], [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof i1.DaffPrefixSuffixModule]>;
116
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective], [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof i1.DaffPrefixSuffixModule]>;
147
117
  static ɵinj: i0.ɵɵInjectorDeclaration<DaffNotificationModule>;
148
118
  }
149
119
 
150
120
  /**
151
121
  * @docs-private
152
122
  */
153
- declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixDirective];
123
+ declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffPrefixDirective];
154
124
 
155
- export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule, DaffNotificationOrientationEnum, DaffNotificationSubtitleDirective, DaffNotificationTitleDirective };
156
- export type { DaffNotificationOrientation };
125
+ export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule, DaffNotificationTitleDirective };
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.90.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":"^20.0.0","@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/forms":"^20.0.0","@angular/cdk":"^20.0.0","@daffodil/core":"0.90.0","@fortawesome/angular-fontawesome":"^3.0.0","@fortawesome/fontawesome-svg-core":"^7.0.1","@fortawesome/free-solid-svg-icons":"^7.0.1","@fortawesome/free-brands-svg-icons":"^7.0.1","@fortawesome/free-regular-svg-icons":"^7.0.1","modern-normalize":"^3.0.1","rxjs":"^7.0.0"},"optionalDependencies":{"@faker-js/faker":"^9.8.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"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.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"},"./form-field":{"types":"./form-field/index.d.ts","default":"./fesm2022/daffodil-design-form-field.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"},"./input":{"types":"./input/index.d.ts","default":"./fesm2022/daffodil-design-input.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"},"./native-select":{"types":"./native-select/index.d.ts","default":"./fesm2022/daffodil-design-native-select.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"},"./quantity-field":{"types":"./quantity-field/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field.mjs"},"./radio":{"types":"./radio/index.d.ts","default":"./fesm2022/daffodil-design-radio.mjs"},"./select":{"types":"./select/index.d.ts","default":"./fesm2022/daffodil-design-select.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"},"./tag":{"types":"./tag/index.d.ts","default":"./fesm2022/daffodil-design-tag.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./textarea":{"types":"./textarea/index.d.ts","default":"./fesm2022/daffodil-design-textarea.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"},"./article/examples":{"types":"./article/examples/index.d.ts","default":"./fesm2022/daffodil-design-article-examples.mjs"},"./accordion/examples":{"types":"./accordion/examples/index.d.ts","default":"./fesm2022/daffodil-design-accordion-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"},"./form-field/examples":{"types":"./form-field/examples/index.d.ts","default":"./fesm2022/daffodil-design-form-field-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"},"./native-select/examples":{"types":"./native-select/examples/index.d.ts","default":"./fesm2022/daffodil-design-native-select-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"},"./select/examples":{"types":"./select/examples/index.d.ts","default":"./fesm2022/daffodil-design-select-examples.mjs"},"./sidebar/examples":{"types":"./sidebar/examples/index.d.ts","default":"./fesm2022/daffodil-design-sidebar-examples.mjs"},"./sticky/examples":{"types":"./sticky/examples/index.d.ts","default":"./fesm2022/daffodil-design-sticky-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"},"./tag/examples":{"types":"./tag/examples/index.d.ts","default":"./fesm2022/daffodil-design-tag-examples.mjs"},"./text-snippet/examples":{"types":"./text-snippet/examples/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet-examples.mjs"},"./textarea/examples":{"types":"./textarea/examples/index.d.ts","default":"./fesm2022/daffodil-design-textarea-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.6.2"}}
1
+ {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.92.3-rc.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"An Angular component library built to support ecommerce applications with accessible UI components and theming. Part of the Daffodil ecommerce framework.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^20.0.0","@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/forms":"^20.0.0","@angular/cdk":"^20.0.0","@daffodil/core":"0.92.3-rc.0","@fortawesome/angular-fontawesome":"^3.0.0","@fortawesome/fontawesome-svg-core":"^7.0.1","@fortawesome/free-solid-svg-icons":"^7.0.1","@fortawesome/free-brands-svg-icons":"^7.0.1","@fortawesome/free-regular-svg-icons":"^7.0.1","modern-normalize":"^3.0.1","rxjs":"^7.0.0"},"optionalDependencies":{"@faker-js/faker":"^10.3.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"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.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"},"./checkbox":{"types":"./checkbox/index.d.ts","default":"./fesm2022/daffodil-design-checkbox.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./form":{"types":"./form/index.d.ts","default":"./fesm2022/daffodil-design-form.mjs"},"./form-field":{"types":"./form-field/index.d.ts","default":"./fesm2022/daffodil-design-form-field.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"},"./input":{"types":"./input/index.d.ts","default":"./fesm2022/daffodil-design-input.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"},"./native-select":{"types":"./native-select/index.d.ts","default":"./fesm2022/daffodil-design-native-select.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"},"./quantity-field":{"types":"./quantity-field/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field.mjs"},"./radio":{"types":"./radio/index.d.ts","default":"./fesm2022/daffodil-design-radio.mjs"},"./select":{"types":"./select/index.d.ts","default":"./fesm2022/daffodil-design-select.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./spinner":{"types":"./spinner/index.d.ts","default":"./fesm2022/daffodil-design-spinner.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"},"./tag":{"types":"./tag/index.d.ts","default":"./fesm2022/daffodil-design-tag.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./textarea":{"types":"./textarea/index.d.ts","default":"./fesm2022/daffodil-design-textarea.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"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.6.2"}}
@@ -1,8 +1,20 @@
1
1
  # Paginator
2
- Paginator is used to break up large amounts of content into multiple pages, enabling users to easily navigate between pages of content.
2
+ Pagination organizes and divides large amounts of content on separate pages and gives the user control over how much content they want to view on each page.
3
3
 
4
- ## Default Paginator
5
- <design-land-example-viewer-container example="basic-paginator"></design-land-example-viewer-container>
4
+ ## Overview
5
+ Pagination can be used with a data table or on a page. It automatically truncates page numbers when there are many pages, using ellipses to indicate skipped pages.
6
+
7
+ <daff-docs-example-viewer example="basic-paginator"></daff-docs-example-viewer>
8
+
9
+ ## Best practices
10
+
11
+ **When to use**
12
+ - Displaying large datasets or lists that would be overwhelming on a single page
13
+ - Navigating through search results or product listings
14
+ - Breaking up long-form content into manageable sections
15
+
16
+ **When not to use**
17
+ - Do not use it to display linear journeys, for example, in a form progression. Instead, use the [progress bar](/libs/design/progress-bar/README.md) or [button](/libs/design/button/README.md) components to navigate forward and backward.
6
18
 
7
19
  ## Usage
8
20
 
@@ -44,10 +56,34 @@ import { CustomComponent } from './custom.component';
44
56
  export class CustomComponentModule { }
45
57
  ```
46
58
 
59
+ > **Warning**
60
+ >
47
61
  > This method is deprecated. It's recommended to update all custom components to standalone.
48
62
 
49
- ## Truncation
50
- An ellipsis is used to truncate pages when the number of pages exceed the maximum display limit. Double truncation appears when the current page is separated by more than three pages from both the first and last page.
63
+ ## Basic structure
64
+ ```html
65
+ <daff-paginator aria-label="Search results page"></daff-paginator>
66
+ ```
67
+
68
+ ## Features
69
+
70
+ ### Truncation
71
+ Ellipses are used to truncate page numbers when the total number of pages exceeds the maximum display limit. Double truncation appears when the current page is separated by more than three pages from both the first and last page.
51
72
 
52
73
  ## Accessibility
53
- Use `aria-label` or `aria-labelledby` to give a meaningful label to `daff-paginator` that describes the content controlled by the paginator. If more than one paginator component is used on a page, each will need a unique `aria-label`.
74
+
75
+ ### Daffodil provides
76
+ `role="navigation"` on the paginator element to ensure proper semantic structure.
77
+
78
+ ### Developer responsibilities
79
+ Use `aria-label` or `aria-labelledby` to give a meaningful label to `<daff-paginator>` that describes the content controlled by the paginator. If more than one paginator is used on a page, each will need a unique `aria-label`.
80
+
81
+ ```html
82
+ <daff-paginator aria-label="Product list paginator">
83
+ <!-- paginator content -->
84
+ </daff-paginator>
85
+
86
+ <daff-paginator aria-label="Search results paginator">
87
+ <!-- paginator content -->
88
+ </daff-paginator>
89
+ ```
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnChanges, ElementRef, EventEmitter } from '@angular/core';
2
+ import { OnChanges, EventEmitter } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import * as i2 from '@angular/router';
5
5
  import { Params } from '@angular/router';
@@ -7,7 +7,6 @@ import * as i3 from '@fortawesome/angular-fontawesome';
7
7
  import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
8
8
 
9
9
  declare class DaffPaginatorComponent implements OnChanges {
10
- private elementRef;
11
10
  /**
12
11
  * @docs-private
13
12
  */
@@ -17,13 +16,10 @@ declare class DaffPaginatorComponent implements OnChanges {
17
16
  */
18
17
  faChevronLeft: _fortawesome_fontawesome_common_types.IconDefinition;
19
18
  /**
20
- * @docs-private
21
- */
22
- _paginatorId: string;
23
- constructor(elementRef: ElementRef);
24
- /**
25
- * The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping numberOfPages
26
- * and currentPage in sync. For example, if the numberOfPages is dynamically changed to a value less than the currentPage, the paginator will break.
19
+ * The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping `numberOfPages`
20
+ * and `currentPage` in sync.
21
+ *
22
+ * For example, if the `numberOfPages` is dynamically changed to a value less than the `currentPage`, the paginator will break.
27
23
  */
28
24
  numberOfPages: number;
29
25
  /**
@@ -4,7 +4,7 @@ A progress bar provides visual feedback about the duration or progress of a task
4
4
  ## Overview
5
5
  Progress bars help users understand the status of ongoing processes or tasks. They can display either determinate progress (when the percentage is known) or indeterminate progress (when the percentage is unknown or cannot be calculated).
6
6
 
7
- <design-land-example-viewer-container example="progress-bar-default"></design-land-example-viewer-container>
7
+ <daff-docs-example-viewer example="progress-bar-default"></daff-docs-example-viewer>
8
8
 
9
9
  ## Best practices
10
10
 
@@ -81,7 +81,7 @@ Use determinate progress bars when the percentage of completion is known. This i
81
81
  ### Indeterminate
82
82
  Use indeterminate progress bars when when the percentage of completion is unknown or cannot be calculated. Set the `indeterminate` property to `true`:
83
83
 
84
- <design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container>
84
+ <daff-docs-example-viewer example="progress-bar-indeterminate"></daff-docs-example-viewer>
85
85
 
86
86
  ## Features
87
87
 
@@ -90,7 +90,7 @@ The default color is `primary`. Use the `color` property to change a progress ba
90
90
 
91
91
  > `theme`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
92
92
 
93
- <design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container>
93
+ <daff-docs-example-viewer example="progress-bar-themes"></daff-docs-example-viewer>
94
94
 
95
95
  ## Accessibility
96
96
  Progress bar implements the ARIA `role="progressbar"` pattern.
@@ -4,7 +4,7 @@ Quantity field is a form control element that switches between a native select a
4
4
  ## Overview
5
5
  Quantity field is intended for use with cart items and product quantities. The maximum number accepted in a quantity select is configurable and set to 10 by default. It will switch to a quantity input if 10+ is selected.
6
6
 
7
- <design-land-example-viewer-container example="basic-quantity-field"></design-land-example-viewer-container>
7
+ <daff-docs-example-viewer example="basic-quantity-field"></daff-docs-example-viewer>
8
8
 
9
9
  ## Usage
10
10
 
@@ -52,12 +52,12 @@ export class CustomComponentModule { }
52
52
  The default allowed range of numbers is 1 to 500. This can be changed by passing in the desired min and max values as inputs. Note that this does not validate the actual input. It merely informs the select which options it should generate and sets the input's min and max attributes. See [input#min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#min) and [input#max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#max) for more information.
53
53
 
54
54
  ## Disabled quantity field
55
- <design-land-example-viewer-container example="disabled-quantity-field"></design-land-example-viewer-container>
55
+ <daff-docs-example-viewer example="disabled-quantity-field"></daff-docs-example-viewer>
56
56
 
57
57
  ## Custom Select Max Value (15)
58
58
  The maximum value at which the field will switch to using an input is configurable.
59
- <design-land-example-viewer-container example="select-max-quantity-field"></design-land-example-viewer-container>
59
+ <daff-docs-example-viewer example="select-max-quantity-field"></daff-docs-example-viewer>
60
60
 
61
61
  ## Custom Range Limits (5 - 50)
62
62
  Custom range limits is the absolute minimum and maximum values can be specified.
63
- <design-land-example-viewer-container example="custom-range-quantity-field"></design-land-example-viewer-container>
63
+ <daff-docs-example-viewer example="custom-range-quantity-field"></daff-docs-example-viewer>
@@ -96,6 +96,9 @@ declare class DaffQuantitySelectComponent {
96
96
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffQuantitySelectComponent, "daff-quantity-select", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "extendable": { "alias": "extendable"; "required": false; }; }, {}, never, never, true, never>;
97
97
  }
98
98
 
99
+ /**
100
+ * @deprecated in favor of DaffSfQuantityFieldComponent. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
101
+ */
99
102
  declare class DaffQuantityFieldComponent extends DaffFormFieldControl<number> implements ControlValueAccessor, DaffFormFieldControl<number> {
100
103
  ngControl: NgControl;
101
104
  private cd;
@@ -157,7 +160,7 @@ declare class DaffQuantityFieldComponent extends DaffFormFieldControl<number> im
157
160
  }
158
161
 
159
162
  /**
160
- * @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
163
+ * @deprecated in favor of DaffSfQuantityFieldComponent. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
161
164
  */
162
165
  declare class DaffQuantityFieldModule {
163
166
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffQuantityFieldModule, never>;
package/radio/README.md CHANGED
@@ -4,7 +4,7 @@ Radio is used to select a single value from a selection of values.
4
4
  ## Overview
5
5
  It can be hooked into Angular's `FormControl` to accomodate custom functionality. The `DaffRadioSetComponent` serves as a wrapper around a logical group of radios to provide styling.
6
6
 
7
- <design-land-example-viewer-container example="basic-radio"></design-land-example-viewer-container>
7
+ <daff-docs-example-viewer example="basic-radio"></daff-docs-example-viewer>
8
8
 
9
9
  ## Usage
10
10
 
package/radio/index.d.ts CHANGED
@@ -6,28 +6,12 @@ import { NgControl, ControlValueAccessor } from '@angular/forms';
6
6
  declare class DaffRadioSetComponent {
7
7
  name: string;
8
8
  constructor();
9
- /**
10
- * @docs-private
11
- */
12
- role: string;
13
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioSetComponent, never>;
14
10
  static ɵcmp: i0.ɵɵComponentDeclaration<DaffRadioSetComponent, "daff-radio-set", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
15
11
  }
16
12
 
17
13
  declare class DaffRadioComponent implements OnInit {
18
14
  private radioset;
19
- /**
20
- * @docs-private
21
- */
22
- role: string;
23
- /**
24
- * @docs-private
25
- */
26
- get focusClass(): boolean;
27
- /**
28
- * @docs-private
29
- */
30
- get disabledClass(): boolean;
31
15
  /**
32
16
  * @docs-private
33
17
  */
@@ -20,7 +20,7 @@
20
20
  ///
21
21
  @mixin breakpoint($point) {
22
22
  @if not map.has-key($map: v.$breakpoints, $key: $point) {
23
- @warn 'breakpoint(): "#{$key}" is not defined in your $breakpoints setting.';
23
+ @warn 'breakpoint(): "#{$point}" is not defined in the $breakpoints map.';
24
24
  }
25
25
 
26
26
  @media (min-width: map.get(v.$breakpoints, $point)) {
package/scss/theme.scss CHANGED
@@ -27,15 +27,14 @@
27
27
  @use '../button/src/button/underline/underline-theme' as underline-button;
28
28
  @use '../article/src/article-theme' as article;
29
29
  @use '../tag/src/tag-theme' as tag;
30
- @use '../form-field/src/error-message/error-message-theme' as error-message;
31
- @use '../form-field/src/hint/hint-theme' as hint;
30
+ @use '../form/src/error-message/error-message-theme' as error-message;
31
+ @use '../form/src/hint/hint-theme' as hint;
32
32
  @use '../form-field/src/form-field-theme' as form-field;
33
33
  @use '../native-select/src/native-select-theme' as native-select;
34
34
  @use '../loading-icon/src/loading-icon-theme' as loading-icon;
35
35
  @use '../accordion/src/accordion-theme' as accordion;
36
36
  @use '../callout/src/callout-theme' as callout;
37
37
  @use '../card/src/card-base-theme' as card-base;
38
- @use '../card/src/card/raised/raised-theme' as raised-card;
39
38
  @use '../card/src/card/stroked/stroked-theme' as stroked-card;
40
39
  @use '../hero/src/hero-theme' as hero;
41
40
  @use '../list/src/list-theme' as list;
@@ -47,10 +46,12 @@
47
46
  @use '../paginator/src/paginator-theme' as paginator;
48
47
  @use '../select/src/select-theme' as select;
49
48
  @use '../sidebar/src/sidebar-theme' as sidebar;
49
+ @use '../spinner/src/spinner-theme' as spinner;
50
50
  @use '../switch/src/switch-theme' as switch;
51
51
  @use '../progress-bar/src/progress-bar-theme' as progress-bar;
52
52
  @use '../scss/state/skeleton/mixins' as skeleton;
53
53
  @use '../tabs/src/tabs-theme' as tabs;
54
+ @use '../text-snippet//src/text-snippet-theme' as text-snippet;
54
55
  @use '../tree/src/tree-theme' as tree;
55
56
  @use '../toast/src/toast-theme' as toast;
56
57
 
@@ -84,7 +85,6 @@
84
85
 
85
86
  @include callout.daff-callout-theme($theme);
86
87
  @include card-base.daff-card-base-theme($theme);
87
- @include raised-card.daff-raised-card-theme($theme);
88
88
  @include stroked-card.daff-stroked-card-theme($theme);
89
89
 
90
90
  @include form-field.daff-form-field-theme($theme);
@@ -93,7 +93,7 @@
93
93
  @include select.daff-select-theme($theme);
94
94
  @include native-select.daff-native-select-theme($theme);
95
95
 
96
- @include loading-icon.daff-loading-icon-theme($theme);
96
+ @include spinner.daff-spinner-theme($theme);
97
97
  @include progress-bar.daff-progress-bar-theme($theme);
98
98
 
99
99
  @include accordion.daff-accordion-theme($theme);
@@ -101,7 +101,10 @@
101
101
  @include callout.daff-callout-theme($theme);
102
102
  @include hero.daff-hero-theme($theme);
103
103
  @include list.daff-list-theme($theme);
104
+
105
+ // deprecated
104
106
  @include loading-icon.daff-loading-icon-theme($theme);
107
+
105
108
  @include media-gallery.daff-media-gallery-theme($theme);
106
109
  @include menu.daff-menu-theme($theme);
107
110
  @include modal.daff-modal-theme($theme);
@@ -112,6 +115,7 @@
112
115
  @include sidebar.daff-sidebar-theme($theme);
113
116
  @include switch.daff-switch-theme($theme);
114
117
  @include tabs.daff-tabs-theme($theme);
118
+ @include text-snippet.daff-text-snippet-theme($theme);
115
119
  @include toast.daff-toast-theme($theme);
116
120
  @include tree.daff-tree-theme($theme);
117
121
  }
@@ -1,10 +1,17 @@
1
+ ////
2
+ /// @group color-palettes
3
+ ////
4
+
1
5
  // Base colors
2
- $daff-white: #ffffff;
6
+ /// @access private
7
+ $white: #ffffff;
8
+ /// @access private
9
+ $black: #070707;
10
+ // need to deprecate
11
+ /// @access private
3
12
  $error: #dd0000;
4
13
 
5
- // 60 apart passes AAA level for any size text (except for 10/70)
6
- // 50 apart passes AA level for any size text (except for 10/60)
7
-
14
+ /// @access private
8
15
  $daff-blue: (
9
16
  10: #ebf1ff,
10
17
  20: #c4d8ff,
@@ -18,8 +25,7 @@ $daff-blue: (
18
25
  100: #000033
19
26
  );
20
27
 
21
- $daff-primary: $daff-blue;
22
-
28
+ /// @access private
23
29
  $daff-purple: (
24
30
  10: #ebebff,
25
31
  20: #d4d3ff,
@@ -33,8 +39,7 @@ $daff-purple: (
33
39
  100: #110033
34
40
  );
35
41
 
36
- $daff-accent: $daff-purple;
37
-
42
+ /// @access private
38
43
  $daff-turquoise: (
39
44
  10: #d6fcea,
40
45
  20: #9dfbd3,
@@ -48,6 +53,7 @@ $daff-turquoise: (
48
53
  100: #082218
49
54
  );
50
55
 
56
+ /// @access private
51
57
  $daff-yellow: (
52
58
  10: #fffaeb,
53
59
  20: #fff1c2,
@@ -61,6 +67,7 @@ $daff-yellow: (
61
67
  100: #7a5e00
62
68
  );
63
69
 
70
+ /// @access private
64
71
  $daff-red: (
65
72
  10: #fcf1f1,
66
73
  20: #fae0e0,
@@ -74,6 +81,7 @@ $daff-red: (
74
81
  100: #3f0809,
75
82
  );
76
83
 
84
+ /// @access private
77
85
  $daff-bronze: (
78
86
  10: #fcf2eb,
79
87
  20: #f7dac6,
@@ -87,6 +95,7 @@ $daff-bronze: (
87
95
  100: #1a0f00,
88
96
  );
89
97
 
98
+ /// @access private
90
99
  $daff-green: (
91
100
  10: #d1fbd6,
92
101
  20: #97f8a5,
@@ -100,8 +109,8 @@ $daff-green: (
100
109
  100: #07230d,
101
110
  );
102
111
 
112
+ /// @access private
103
113
  $daff-neutral: (
104
- 0: #ffffff,
105
114
  10: #fafafa,
106
115
  20: #e8e8e8,
107
116
  30: #d3d3d3,
@@ -111,6 +120,5 @@ $daff-neutral: (
111
120
  70: #5e5e5e,
112
121
  80: #474747,
113
122
  90: #323232,
114
- 100: #1a1a1a,
115
- 110: #070707
123
+ 100: #1a1a1a
116
124
  );
@@ -5,21 +5,21 @@
5
5
 
6
6
  $daff-light-theme: (
7
7
  'mode': 'light',
8
- 'font-color': get-color.daff-color(palette.$daff-neutral, 110),
9
- 'base': get-color.daff-color(palette.$daff-neutral, 0),
10
- 'base-contrast': get-color.daff-color(palette.$daff-neutral, 110),
11
- 'white': get-color.daff-color(palette.$daff-neutral, 0),
12
- 'black': get-color.daff-color(palette.$daff-neutral, 110),
8
+ 'font-color': palette.$black,
9
+ 'base': palette.$white,
10
+ 'base-contrast': palette.$black,
11
+ 'white': palette.$white,
12
+ 'black': palette.$black,
13
13
  'neutral': configure-palette.daff-configure-palette(palette.$daff-neutral, 60),
14
14
  );
15
15
 
16
16
  $daff-dark-theme: (
17
17
  'mode': 'dark',
18
- 'font-color': get-color.daff-color(palette.$daff-neutral, 0),
19
- 'base': get-color.daff-color(palette.$daff-neutral, 100),
20
- 'base-contrast': get-color.daff-color(palette.$daff-neutral, 0),
21
- 'white': get-color.daff-color(palette.$daff-neutral, 0),
22
- 'black': get-color.daff-color(palette.$daff-neutral, 110),
18
+ 'font-color': palette.$white,
19
+ 'base': palette.$black,
20
+ 'base-contrast': palette.$white,
21
+ 'white': palette.$white,
22
+ 'black': palette.$black,
23
23
  'neutral': configure-palette.daff-configure-palette(palette.$daff-neutral, 50),
24
24
  );
25
25
 
@@ -28,6 +28,7 @@ $supported-theme-modes: (
28
28
  'dark': $daff-dark-theme
29
29
  );
30
30
 
31
+ /// @deprecated Use `daff-create-theme` instead.
31
32
  /// Create a theme object given some initial settings.
32
33
  ///
33
34
  /// Sets light and dark mode defaults for `$info`, `$warn`, `$critical`, and `$success`
@@ -1,5 +1,5 @@
1
1
  @use 'configure-palette';
2
- @use 'configure-theme';
2
+ @use './create-theme/create-theme';
3
3
  @use 'color-palettes' as palette;
4
4
  @use '../core';
5
5
 
@@ -7,23 +7,14 @@ $primary: configure-palette.daff-configure-palette(palette.$daff-blue, 60);
7
7
  $secondary: configure-palette.daff-configure-palette(palette.$daff-purple, 60);
8
8
  $tertiary: configure-palette.daff-configure-palette(palette.$daff-turquoise, 60);
9
9
 
10
- $theme: configure-theme.daff-configure-theme(
11
- $primary,
12
- $secondary,
13
- $tertiary,
14
- 'light'
10
+ $theme: create-theme.daff-create-theme(
11
+ ('primary': $primary, 'secondary': $secondary, 'tertiary': $tertiary, 'mode': 'light')
15
12
  );
16
13
 
17
14
  $primary-dark: configure-palette.daff-configure-palette(palette.$daff-blue, 50);
18
15
  $secondary-dark: configure-palette.daff-configure-palette(palette.$daff-purple, 50);
19
16
  $tertiary-dark: configure-palette.daff-configure-palette(palette.$daff-turquoise, 50);
20
17
 
21
- $theme-dark: configure-theme.daff-configure-theme(
22
- $primary-dark,
23
- $secondary-dark,
24
- $tertiary-dark,
25
- 'dark'
18
+ $theme-dark: create-theme.daff-create-theme(
19
+ ('primary': $primary-dark, 'secondary': $secondary-dark, 'tertiary': $tertiary-dark, 'mode': 'dark')
26
20
  );
27
-
28
- $black: core.daff-map-get($theme, 'core', 'black');
29
- $white: core.daff-map-get($theme, 'core', 'white');
@@ -3,13 +3,13 @@
3
3
  /// Retrieves a core base color from a configured theme.
4
4
  ///
5
5
  /// If you are not using Daffodil's default theme, a theme **must** be
6
- /// created with `daff-configure-theme` before this function can be used.
6
+ /// created with `daff-create-theme` before this function can be used.
7
7
  /// See the [customize your own theme](daff.io/docs/design/theming/customize-your-own-theme)
8
8
  /// guide for more information.
9
9
  ///
10
10
  /// @group Theming
11
11
  ///
12
- /// @param {Map} $theme — A theme map created with the `daff-configure-theme` function.
12
+ /// @param {Map} $theme — A theme map created with the `daff-create-theme` function.
13
13
  /// @param {String} $color — The core color to retrieve. Supported colors: `white`, `black`, `base`, or `base-contrast`.
14
14
  ///
15
15
  /// @throws Will throw an error if `$color` is not supported as part of Daffodil's core colors.
@@ -3,13 +3,13 @@
3
3
  /// Retrieves a specific color palette from a configured theme.
4
4
  ///
5
5
  /// If you are not using Daffodil's default theme, a theme **must** be
6
- /// created with `daff-configure-theme` before this function can be used.
6
+ /// created with `daff-create-theme` before this function can be used.
7
7
  /// See the [customize your own theme](daff.io/docs/design/theming/customize-your-own-theme)
8
8
  /// guide for more information.
9
9
  ///
10
10
  /// @group Theming
11
11
  ///
12
- /// @param {Map} $theme — A theme map created with with `daff-configure-theme` function.
12
+ /// @param {Map} $theme — A theme map created with with `daff-create-theme` function.
13
13
  /// @param {Map} $palette — The palette being retrieved.
14
14
  /// Supported values: `primary`, `secondary`, `tertiary`, `informational`, `warn`, `critical`, `success`, or `neutral`.
15
15
  ///