@daffodil/design 0.82.0 → 0.84.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 (176) hide show
  1. package/accordion/src/accordion-theme.scss +28 -6
  2. package/article/src/article-theme.scss +118 -64
  3. package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
  4. package/atoms/form/error-message/error-message.component.d.ts +4 -1
  5. package/atoms/form/error-message/error-message.module.d.ts +4 -1
  6. package/atoms/form/form-field/form-field/form-field.component.d.ts +23 -29
  7. package/atoms/form/form-field/form-field-control.d.ts +18 -4
  8. package/atoms/form/form-field/form-field-state.d.ts +7 -0
  9. package/atoms/form/form-field/form-field.d.ts +10 -0
  10. package/atoms/form/form-field/form-field.module.d.ts +6 -4
  11. package/atoms/form/form-field/public_api.d.ts +2 -1
  12. package/atoms/form/form-label/form-label.directive.d.ts +4 -1
  13. package/atoms/form/form-label/form-label.module.d.ts +4 -1
  14. package/atoms/form/hint/hint.component.d.ts +9 -0
  15. package/atoms/form/hint/public_api.d.ts +1 -0
  16. package/atoms/form/input/input.component.d.ts +15 -19
  17. package/atoms/form/input/input.module.d.ts +4 -2
  18. package/atoms/form/native-select/native-select.component.d.ts +5 -1
  19. package/atoms/form/quantity-field/quantity-field.component.d.ts +2 -1
  20. package/atoms/form/quantity-field/quantity-field.module.d.ts +3 -3
  21. package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
  22. package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
  23. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
  24. package/breadcrumb/src/breadcrumb-theme.scss +12 -3
  25. package/button/button/button-base.directive.d.ts +6 -23
  26. package/button/src/button/basic/button-theme.scss +17 -40
  27. package/button/src/button/button-base.scss +32 -5
  28. package/button/src/button/flat/flat-theme.scss +4 -38
  29. package/button/src/button/icon/icon-theme.scss +157 -79
  30. package/button/src/button/raised/raised-theme.scss +2 -2
  31. package/button/src/button/stroked/stroked-theme.scss +7 -39
  32. package/button/src/button/underline/underline-theme.scss +4 -18
  33. package/callout/src/callout-theme.scss +27 -10
  34. package/card/card/basic/basic.component.d.ts +3 -0
  35. package/card/card/raised/raised.component.d.ts +3 -0
  36. package/card/card/stroked/stroked.component.d.ts +3 -0
  37. package/card/examples/card-theming/card-theming.component.d.ts +2 -1
  38. package/card/examples/public_api.d.ts +1 -1
  39. package/card/src/card/stroked/stroked-theme.scss +102 -13
  40. package/card/src/card-base-theme.scss +126 -55
  41. package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
  42. package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
  43. package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
  44. package/core/colorable/colorable.directive.d.ts +8 -0
  45. package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
  46. package/core/openable/openable.directive.d.ts +3 -0
  47. package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
  48. package/core/prefix-suffix/prefix.directive.d.ts +4 -1
  49. package/core/prefix-suffix/public_api.d.ts +0 -4
  50. package/core/prefix-suffix/suffix.directive.d.ts +4 -1
  51. package/core/sizable/sizable.directive.d.ts +8 -0
  52. package/core/statusable/statusable.directive.d.ts +2 -0
  53. package/core/text-alignable/text-alignable.directive.d.ts +6 -1
  54. package/fesm2022/daffodil-design-accordion.mjs +2 -2
  55. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  56. package/fesm2022/daffodil-design-breadcrumb.mjs +5 -2
  57. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  58. package/fesm2022/daffodil-design-button-examples.mjs +21 -17
  59. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-button.mjs +25 -32
  61. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-card-examples.mjs +14 -12
  63. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  64. package/fesm2022/daffodil-design-card.mjs +9 -0
  65. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  66. package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -0
  67. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  68. package/fesm2022/daffodil-design-image.mjs +2 -2
  69. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  70. package/fesm2022/daffodil-design-input-examples.mjs +45 -22
  71. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  72. package/fesm2022/daffodil-design-media-gallery.mjs +57 -18
  73. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  74. package/fesm2022/daffodil-design-menu.mjs +23 -10
  75. package/fesm2022/daffodil-design-menu.mjs.map +1 -1
  76. package/fesm2022/daffodil-design-modal.mjs +33 -0
  77. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  78. package/fesm2022/daffodil-design-navbar.mjs +2 -2
  79. package/fesm2022/daffodil-design-notification-examples.mjs +8 -12
  80. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-notification.mjs +32 -5
  82. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-paginator.mjs +2 -2
  84. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  85. package/fesm2022/daffodil-design-progress-bar-examples.mjs +2 -2
  86. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  87. package/fesm2022/daffodil-design-progress-bar.mjs +18 -3
  88. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-quantity-field-examples.mjs +9 -9
  90. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-sidebar.mjs +3 -8
  92. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-switch-examples.mjs +6 -6
  94. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-switch.mjs +35 -11
  96. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-tabs.mjs +27 -8
  98. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-toast-examples.mjs +6 -0
  100. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-toast.mjs +17 -18
  102. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-tree.mjs +21 -7
  104. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-youtube-player.mjs +3 -0
  106. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
  107. package/fesm2022/daffodil-design.mjs +301 -224
  108. package/fesm2022/daffodil-design.mjs.map +1 -1
  109. package/hero/src/hero-theme.scss +27 -10
  110. package/input/examples/examples.d.ts +2 -2
  111. package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
  112. package/input/examples/input-hint/input-hint.component.d.ts +5 -0
  113. package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
  114. package/list/list/list.component.d.ts +1 -1
  115. package/list/src/list-theme.scss +16 -20
  116. package/media-gallery/README.md +3 -3
  117. package/media-gallery/media-gallery/media-gallery.component.d.ts +21 -5
  118. package/media-gallery/public_api.d.ts +3 -3
  119. package/media-gallery/thumbnail/thumbnail.directive.d.ts +23 -6
  120. package/menu/menu/menu.component.d.ts +15 -0
  121. package/menu/menu-activator/menu-activator.component.d.ts +3 -0
  122. package/menu/src/menu-theme.scss +29 -10
  123. package/modal/modal/modal.component.d.ts +21 -0
  124. package/modal/modal-actions/modal-actions.component.d.ts +3 -0
  125. package/modal/modal-close/modal-close.directive.d.ts +3 -0
  126. package/modal/modal-content/modal-content.component.d.ts +3 -0
  127. package/modal/modal-title/modal-title.directive.d.ts +3 -0
  128. package/navbar/src/navbar-theme.scss +8 -3
  129. package/notification/README.md +11 -12
  130. package/notification/notification/notification.component.d.ts +17 -2
  131. package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
  132. package/notification/notification-message/notification-message.directive.d.ts +3 -0
  133. package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
  134. package/notification/notification-title/notification-title.directive.d.ts +3 -0
  135. package/notification/notification.d.ts +2 -2
  136. package/notification/src/notification-theme.scss +62 -23
  137. package/package.json +1 -1
  138. package/paginator/src/paginator-theme.scss +22 -17
  139. package/progress-bar/README.md +2 -4
  140. package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
  141. package/progress-bar/progress-bar.component.d.ts +15 -3
  142. package/progress-bar/src/progress-bar-theme.scss +17 -8
  143. package/public_api.d.ts +1 -0
  144. package/scss/state/skeleton/_mixins.scss +19 -9
  145. package/scss/theme.scss +2 -0
  146. package/sidebar/public_api.d.ts +10 -11
  147. package/sidebar/sidebar.d.ts +1 -2
  148. package/sidebar/sidebar.module.d.ts +1 -2
  149. package/src/atoms/form/error-message/error-message-theme.scss +4 -1
  150. package/src/atoms/form/form-field/form-field/form-field-theme.scss +22 -10
  151. package/src/atoms/form/hint/hint-theme.scss +17 -0
  152. package/src/atoms/form/input/input-theme.scss +1 -5
  153. package/switch/src/switch-theme.scss +29 -10
  154. package/switch/switch/switch.component.d.ts +31 -6
  155. package/switch/switch.d.ts +2 -2
  156. package/tabs/src/tabs-theme.scss +31 -13
  157. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
  158. package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
  159. package/tabs/tabs/tabs.component.d.ts +3 -0
  160. package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
  161. package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
  162. package/toast/src/toast-theme.scss +80 -33
  163. package/toast/toast/toast-template.component.d.ts +3 -1
  164. package/toast/toast/toast.component.d.ts +3 -5
  165. package/tree/interfaces/tree-data.d.ts +15 -0
  166. package/tree/interfaces/tree-render-mode.d.ts +2 -2
  167. package/tree/src/tree-theme.scss +39 -13
  168. package/tree/tree/tree-notifier.service.d.ts +3 -3
  169. package/tree/tree/tree.component.d.ts +13 -3
  170. package/tree/tree-item/tree-item.directive.d.ts +6 -0
  171. package/youtube-player/youtube-player.component.d.ts +3 -0
  172. package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
  173. package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
  174. package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
  175. package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
  176. package/input/examples/basic-input/basic-input.component.d.ts +0 -5
@@ -1,4 +1,4 @@
1
- import { DaffPrefixSuffixModule } from '@daffodil/design';
1
+ import { DaffPrefixDirective } from '@daffodil/design';
2
2
  import { DaffNotificationComponent } from './notification/notification.component';
3
3
  import { DaffNotificationActionsDirective } from './notification-actions/notification-actions.directive';
4
4
  import { DaffNotificationMessageDirective } from './notification-message/notification-message.directive';
@@ -7,4 +7,4 @@ import { DaffNotificationTitleDirective } from './notification-title/notificatio
7
7
  /**
8
8
  * @docs-private
9
9
  */
10
- export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixSuffixModule];
10
+ export declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffNotificationSubtitleDirective, typeof DaffPrefixDirective];
@@ -13,41 +13,80 @@
13
13
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
14
  $base: core.daff-map-get($theme, 'core', 'base');
15
15
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
16
- $white: core.daff-map-get($theme, 'core', 'white');
17
16
  $black: core.daff-map-get($theme, 'core', 'black');
17
+ $white: core.daff-map-get($theme, 'core', 'white');
18
+ $type: core.daff-map-get($theme, 'core', 'type');
18
19
 
19
20
  .daff-notification {
20
- background: theming.daff-illuminate($base, $neutral, 1);
21
- border: 1px solid theming.daff-illuminate($base, $neutral, 2);
22
- color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 1));
21
+ @include theming.light($type) {
22
+ background: theming.daff-color($neutral, 10);
23
+ border: 1px solid theming.daff-color($neutral, 20);
24
+ color: $black;
23
25
 
24
- &.daff-success {
25
- background: theming.daff-color($success, 10);
26
- border: 1px solid theming.daff-color($success, 20);
27
- color: theming.daff-text-contrast(theming.daff-color($success, 10));
26
+ &.daff-success {
27
+ background: theming.daff-color($success, 10);
28
+ border: 1px solid theming.daff-color($success, 20);
29
+ color: theming.daff-text-contrast(theming.daff-color($success, 10));
28
30
 
29
- .daff-prefix {
30
- color: theming.daff-color($success);
31
+ .daff-prefix {
32
+ color: theming.daff-color($success, 80);
33
+ }
31
34
  }
32
- }
33
35
 
34
- &.daff-warn {
35
- background: theming.daff-color($warn, 10);
36
- border: 1px solid theming.daff-color($warn, 20);
37
- color: theming.daff-text-contrast(theming.daff-color($warn, 10));
36
+ &.daff-warn {
37
+ background: theming.daff-color($warn, 10);
38
+ border: 1px solid theming.daff-color($warn, 20);
39
+ color: theming.daff-text-contrast(theming.daff-color($warn, 10));
38
40
 
39
- .daff-prefix {
40
- color: theming.daff-color($warn);
41
+ .daff-prefix {
42
+ color: theming.daff-color($warn, 80);
43
+ }
44
+ }
45
+
46
+ &.daff-critical {
47
+ background: theming.daff-color($critical, 10);
48
+ border: 1px solid theming.daff-color($critical, 20);
49
+ color: theming.daff-text-contrast(theming.daff-color($critical, 10));
50
+
51
+ .daff-prefix {
52
+ color: theming.daff-color($critical, 80);
53
+ }
41
54
  }
42
55
  }
43
56
 
44
- &.daff-critical {
45
- background: theming.daff-color($critical, 10);
46
- border: 1px solid theming.daff-color($critical, 20);
47
- color: theming.daff-text-contrast(theming.daff-color($critical, 10));
57
+ @include theming.dark($type) {
58
+ background: theming.daff-color($neutral, 90);
59
+ border: 1px solid theming.daff-color($neutral, 80);
60
+ color: $white;
61
+
62
+ &.daff-success {
63
+ background: theming.daff-color($success, 90);
64
+ border: 1px solid theming.daff-color($success, 80);
65
+ color: theming.daff-text-contrast(theming.daff-color($success, 90));
66
+
67
+ .daff-prefix {
68
+ color: theming.daff-color($success, 30);
69
+ }
70
+ }
71
+
72
+ &.daff-warn {
73
+ background: theming.daff-color($warn, 90);
74
+ border: 1px solid theming.daff-color($warn, 80);
75
+ color: theming.daff-text-contrast(theming.daff-color($warn, 90));
76
+
77
+ .daff-prefix {
78
+ color: theming.daff-color($warn, 30);
79
+ }
80
+ }
81
+
82
+ &.daff-critical {
83
+ background: theming.daff-color($critical, 90);
84
+ border: 1px solid theming.daff-color($critical, 80);
85
+ color: theming.daff-text-contrast(theming.daff-color($critical, 90));
48
86
 
49
- .daff-prefix {
50
- color: theming.daff-color($critical);
87
+ .daff-prefix {
88
+ color: theming.daff-color($critical, 30);
89
+ }
51
90
  }
52
91
  }
53
92
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.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"}}
1
+ {"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.84.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.84.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":"^3.0.1","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"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.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"},"./card/examples":{"types":"./card/examples/index.d.ts","default":"./fesm2022/daffodil-design-card-examples.mjs"},"./callout/examples":{"types":"./callout/examples/index.d.ts","default":"./fesm2022/daffodil-design-callout-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"}}
@@ -2,33 +2,38 @@
2
2
  @use '../../scss/core';
3
3
  @use '../../scss/theming';
4
4
 
5
+ // stylelint-disable selector-class-pattern
5
6
  @mixin daff-paginator-theme($theme) {
6
- $primary: core.daff-map-get($theme, primary);
7
- $secondary: core.daff-map-get($theme, secondary);
8
- $tertiary: core.daff-map-get($theme, tertiary);
9
- $base: core.daff-map-get($theme, 'core', 'base');
10
7
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
11
8
  $white: core.daff-map-get($theme, 'core', 'white');
12
- $black: core.daff-map-get($theme, 'core', 'black');
13
9
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
- $font-color: core.daff-map-get($theme, 'core', 'font-color');
10
+ $type: core.daff-map-get($theme, 'core', 'type');
15
11
 
16
12
  .daff-paginator {
17
13
  &__previous,
18
- &__next {
19
- color: $font-color;
20
- }
21
-
14
+ &__next,
22
15
  &__page-link {
23
- color: $font-color;
16
+ color: $base-contrast;
17
+ }
24
18
 
25
- // stylelint-disable selector-class-pattern
26
- &:hover,
27
- &.selected {
28
- color: daff-text-contrast(theming.daff-illuminate($base, $neutral, 2));
19
+ @include theming.light($type) {
20
+ &__page-link {
21
+ &:hover,
22
+ &.selected {
23
+ &::after {
24
+ background: theming.daff-color($neutral, 20);
25
+ }
26
+ }
27
+ }
28
+ }
29
29
 
30
- &::after {
31
- background: theming.daff-illuminate($base, $neutral, 2);
30
+ @include theming.dark($type) {
31
+ &__page-link {
32
+ &:hover,
33
+ &.selected {
34
+ &::after {
35
+ background: theming.daff-color($neutral, 90);
36
+ }
32
37
  }
33
38
  }
34
39
  }
@@ -57,11 +57,9 @@ Indeterminate progress bars should be used when the loading percentage of a task
57
57
  <design-land-example-viewer-container example="progress-bar-indeterminate"></design-land-example-viewer-container>
58
58
 
59
59
  ## Theming
60
- The progress bar color is defined by using the `color` property. By default, the color is set to `primary`. This can be changed to one of the supported colors.
60
+ Use the `color` property to change the color of a progress bar. The default color is primary.
61
61
 
62
- Supported colors: `primary | secondary | tertiary | theme | theme-contrast | white | black`
63
-
64
- > `theme`, `theme-contrast`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
62
+ > `theme`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
65
63
 
66
64
  <design-land-example-viewer-container example="progress-bar-themes"></design-land-example-viewer-container>
67
65
 
@@ -1,5 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DaffProgressBarLabelDirective {
3
+ /**
4
+ * @docs-private
5
+ */
3
6
  class: boolean;
4
7
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffProgressBarLabelDirective, never>;
5
8
  static ɵdir: i0.ɵɵDirectiveDeclaration<DaffProgressBarLabelDirective, "[daffProgressBarLabel]", never, {}, {}, never, never, true, never>;
@@ -4,9 +4,6 @@ import { DaffColorableDirective } from '@daffodil/design';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "@daffodil/design";
6
6
  export declare const clamp: (number: number, min: number, max: number) => number;
7
- /**
8
- * @inheritdoc
9
- */
10
7
  export declare class DaffProgressBarComponent {
11
8
  private _changeDetectorRef;
12
9
  private colorable;
@@ -18,10 +15,25 @@ export declare class DaffProgressBarComponent {
18
15
  * @docs-private
19
16
  */
20
17
  get indeterminateClass(): boolean;
18
+ /**
19
+ * @docs-private
20
+ */
21
21
  get role(): string;
22
+ /**
23
+ * @docs-private
24
+ */
22
25
  get ariaLabel(): string;
26
+ /**
27
+ * @docs-private
28
+ */
23
29
  ariaValueMin: string;
30
+ /**
31
+ * @docs-private
32
+ */
24
33
  ariaValueMax: string;
34
+ /**
35
+ * @docs-private
36
+ */
25
37
  get ariaValueNow(): number;
26
38
  constructor(_changeDetectorRef: ChangeDetectorRef, colorable: DaffColorableDirective);
27
39
  private _percentage;
@@ -11,33 +11,42 @@
11
11
  $white: core.daff-map-get($theme, 'core', 'white');
12
12
  $black: core.daff-map-get($theme, 'core', 'black');
13
13
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
14
+ $type: core.daff-map-get($theme, 'core', 'type');
14
15
 
15
16
  .daff-progress-bar {
16
17
  $root: '.daff-progress-bar';
17
18
 
18
19
  #{$root}__label {
19
- color: theming.daff-illuminate($base-contrast, $neutral, 2);
20
+ color: theming.daff-text-contrast($base);
20
21
  }
21
22
 
22
- #{$root}__track {
23
- background: theming.daff-illuminate($base, $neutral, 2);
23
+ @include theming.light($type) {
24
+ #{$root}__track {
25
+ background: theming.daff-color($neutral, 30);
26
+ }
27
+ }
28
+
29
+ @include theming.dark($type) {
30
+ #{$root}__track {
31
+ background: theming.daff-color($neutral, 80);
32
+ }
24
33
  }
25
34
 
26
35
  &.daff-primary {
27
36
  #{$root}__fill {
28
- background: theming.daff-illuminate($base, $primary, 6);
37
+ background: theming.daff-color($primary);
29
38
  }
30
39
  }
31
40
 
32
41
  &.daff-secondary {
33
42
  #{$root}__fill {
34
- background: theming.daff-illuminate($base, $secondary, 6);
43
+ background: theming.daff-color($secondary);
35
44
  }
36
45
  }
37
46
 
38
47
  &.daff-tertiary {
39
48
  #{$root}__fill {
40
- background: theming.daff-illuminate($base, $tertiary, 6);
49
+ background: theming.daff-color($tertiary);
41
50
  }
42
51
  }
43
52
 
@@ -53,13 +62,13 @@
53
62
  }
54
63
  }
55
64
 
56
- &.daff-white {
65
+ &.daff-light {
57
66
  #{$root}__fill {
58
67
  background: $white;
59
68
  }
60
69
  }
61
70
 
62
- &.daff-black {
71
+ &.daff-dark {
63
72
  #{$root}__fill {
64
73
  background: $black;
65
74
  }
package/public_api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './atoms/form/core/public_api';
2
2
  export * from './atoms/form/form-field/public_api';
3
3
  export * from './atoms/form/error-message/public_api';
4
+ export * from './atoms/form/hint/public_api';
4
5
  export * from './atoms/form/input/public_api';
5
6
  export * from './atoms/form/native-select/public_api';
6
7
  export * from './atoms/form/checkbox/public_api';
@@ -4,19 +4,20 @@
4
4
  @mixin daff-skeleton-theme($theme) {
5
5
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
6
6
  $base: core.daff-map-get($theme, 'core', 'base');
7
+ $type: core.daff-map-get($theme, 'core', 'type');
7
8
 
8
9
  .daff-skeleton {
9
- &::before,
10
- ::before {
11
- background: theming.daff-illuminate($base, $neutral, 2);
10
+ @include theming.light($type) {
11
+ &::before,
12
+ ::before {
13
+ background: theming.daff-color($neutral, 20);
14
+ }
12
15
  }
13
16
 
14
- @keyframes loading {
15
- from {
16
- opacity: 0.5;
17
- }
18
- to {
19
- opacity: 1;
17
+ @include theming.dark($type) {
18
+ &::before,
19
+ ::before {
20
+ background: theming.daff-color($neutral, 90);
20
21
  }
21
22
  }
22
23
  }
@@ -39,4 +40,13 @@
39
40
  top: 0;
40
41
  left: 0;
41
42
  }
43
+
44
+ @keyframes loading {
45
+ from {
46
+ opacity: 0.5;
47
+ }
48
+ to {
49
+ opacity: 1;
50
+ }
51
+ }
42
52
  }
package/scss/theme.scss CHANGED
@@ -27,6 +27,7 @@
27
27
  @use '../button/src/button/underline/underline-theme' as underline-button;
28
28
  @use '../article/src/article-theme' as article;
29
29
  @use '../src/atoms/form/error-message/error-message-theme' as error-message;
30
+ @use '../src/atoms/form/hint/hint-theme' as hint;
30
31
  @use '../src/atoms/form/form-field/form-field/form-field-theme' as form-field;
31
32
  @use '../src/atoms/form/input/input-theme' as input;
32
33
  @use '../src/atoms/form/native-select/native-select-theme' as native-select;
@@ -86,6 +87,7 @@
86
87
 
87
88
  @include form-field.daff-form-field-theme($theme);
88
89
  @include error-message.daff-error-message-theme($theme);
90
+ @include hint.daff-hint-theme($theme);
89
91
  @include input.daff-input-theme($theme);
90
92
  @include native-select.daff-native-select-theme($theme);
91
93
 
@@ -1,15 +1,14 @@
1
1
  export { DaffSidebarModule } from './sidebar.module';
2
- export * from './service/registration.type';
3
- export * from './service/sidebar.service';
4
- export * from './sidebar-viewport/sidebar-viewport.component';
5
- export * from './sidebar/sidebar.component';
6
- export * from './sidebar-header/sidebar-header.component';
7
- export * from './sidebar-footer/sidebar-footer.component';
8
- export * from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
9
- export * from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';
10
- export * from './sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';
2
+ export { DaffSidebarRegistration } from './service/registration.type';
3
+ export { DaffSidebarService } from './service/sidebar.service';
4
+ export { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';
5
+ export { DaffSidebarComponent } from './sidebar/sidebar.component';
6
+ export { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
7
+ export { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
8
+ export { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
9
+ export { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';
11
10
  export { DaffSidebarMode, DaffSidebarModeEnum, } from './helper/sidebar-mode';
12
11
  export { DaffSidebarSide, DaffSidebarSideEnum, } from './helper/sidebar-side';
13
- export * from './helper/is-docked-mode';
14
- export * from './helper/is-floating-mode';
12
+ export { daffSidebarIsDockedMode } from './helper/is-docked-mode';
13
+ export { daffSidebarIsFloatingMode } from './helper/is-floating-mode';
15
14
  export { DAFF_SIDEBAR_COMPONENTS } from './sidebar';
@@ -4,8 +4,7 @@ import { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-heade
4
4
  import { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
5
5
  import { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
6
6
  import { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';
7
- import { DaffSidebarViewportBackdropComponent } from './sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';
8
7
  /**
9
8
  * @docs-private
10
9
  */
11
- export declare const DAFF_SIDEBAR_COMPONENTS: readonly [typeof DaffSidebarComponent, typeof DaffSidebarViewportComponent, typeof DaffSidebarHeaderComponent, typeof DaffSidebarFooterComponent, typeof DaffSidebarHeaderTitleDirective, typeof DaffSidebarHeaderActionDirective, typeof DaffSidebarViewportBackdropComponent];
10
+ export declare const DAFF_SIDEBAR_COMPONENTS: readonly [typeof DaffSidebarComponent, typeof DaffSidebarViewportComponent, typeof DaffSidebarHeaderComponent, typeof DaffSidebarFooterComponent, typeof DaffSidebarHeaderTitleDirective, typeof DaffSidebarHeaderActionDirective];
@@ -7,12 +7,11 @@ import * as i5 from "./sidebar-header/sidebar-header.component";
7
7
  import * as i6 from "./sidebar-footer/sidebar-footer.component";
8
8
  import * as i7 from "./sidebar-header/sidebar-header-title/sidebar-header-title.directive";
9
9
  import * as i8 from "./sidebar-header/sidebar-header-action/sidebar-header-action.directive";
10
- import * as i9 from "./sidebar-viewport-backdrop/sidebar-viewport-backdrop.component";
11
10
  /**
12
11
  * @deprecated in favor of {@link DAFF_SIDEBAR_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
13
12
  */
14
13
  export declare class DaffSidebarModule {
15
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffSidebarModule, never, [typeof i1.CommonModule, typeof i2.A11yModule, typeof i3.DaffSidebarComponent, typeof i4.DaffSidebarViewportComponent, typeof i5.DaffSidebarHeaderComponent, typeof i6.DaffSidebarFooterComponent, typeof i7.DaffSidebarHeaderTitleDirective, typeof i8.DaffSidebarHeaderActionDirective, typeof i9.DaffSidebarViewportBackdropComponent], [typeof i3.DaffSidebarComponent, typeof i4.DaffSidebarViewportComponent, typeof i5.DaffSidebarHeaderComponent, typeof i6.DaffSidebarFooterComponent, typeof i7.DaffSidebarHeaderTitleDirective, typeof i8.DaffSidebarHeaderActionDirective, typeof i9.DaffSidebarViewportBackdropComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffSidebarModule, never, [typeof i1.CommonModule, typeof i2.A11yModule, typeof i3.DaffSidebarComponent, typeof i4.DaffSidebarViewportComponent, typeof i5.DaffSidebarHeaderComponent, typeof i6.DaffSidebarFooterComponent, typeof i7.DaffSidebarHeaderTitleDirective, typeof i8.DaffSidebarHeaderActionDirective], [typeof i3.DaffSidebarComponent, typeof i4.DaffSidebarViewportComponent, typeof i5.DaffSidebarHeaderComponent, typeof i6.DaffSidebarFooterComponent, typeof i7.DaffSidebarHeaderTitleDirective, typeof i8.DaffSidebarHeaderActionDirective]>;
17
16
  static ɵinj: i0.ɵɵInjectorDeclaration<DaffSidebarModule>;
18
17
  }
@@ -1,7 +1,10 @@
1
1
  @use '../../../../scss/theming';
2
+ @use '../../../../scss/core';
2
3
 
3
4
  @mixin daff-error-message-theme($theme) {
5
+ $critical: core.daff-map-get($theme, critical);
6
+
4
7
  .daff-error-message {
5
- color: theming.daff-color(theming.$daff-red, 60);
8
+ color: theming.daff-color($critical);
6
9
  }
7
10
  }
@@ -6,32 +6,44 @@
6
6
  $primary: core.daff-map-get($theme, primary);
7
7
  $secondary: core.daff-map-get($theme, secondary);
8
8
  $tertiary: core.daff-map-get($theme, tertiary);
9
+ $critical: core.daff-map-get($theme, critical);
9
10
  $base: core.daff-map-get($theme, 'core', 'base');
10
11
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
11
12
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
13
+ $type: core.daff-map-get($theme, 'core', 'type');
12
14
 
13
15
  .daff-form-field {
14
16
  &__control {
15
17
  background: $base;
16
- border: 1px solid theming.daff-illuminate($base, $neutral, 3);
17
- color: theming.daff-illuminate($base-contrast, $neutral, 4);
18
18
 
19
- &:focus {
20
- border: 1px solid $base-contrast;
19
+ @include theming.light($type) {
20
+ border: 1px solid theming.daff-color($neutral);
21
+ color: theming.daff-color($neutral);
22
+ }
23
+
24
+ @include theming.dark($type) {
25
+ border: 1px solid theming.daff-color($neutral, 40);
26
+ color: theming.daff-color($neutral, 40);
27
+ }
28
+
29
+ &.daff-focused {
30
+ border: 1px solid theming.daff-color($primary);
31
+
32
+ .daff-form-label {
33
+ color: theming.daff-color($primary);
34
+ }
21
35
  }
22
36
 
23
37
  &.daff-error {
24
- border: 1px solid theming.daff-color(theming.$daff-red, 60);
38
+ border: 1px solid theming.daff-color($critical);
25
39
 
26
- &:focus {
27
- border: 1px solid theming.daff-color(theming.$daff-red, 60);
40
+ .daff-form-label {
41
+ color: theming.daff-color($critical);
28
42
  }
29
43
  }
30
44
 
31
45
  &.daff-valid {
32
- > * {
33
- color: $base-contrast;
34
- }
46
+ color: $base-contrast;
35
47
  }
36
48
  }
37
49
  }
@@ -0,0 +1,17 @@
1
+ @use '../../../../scss/core';
2
+ @use '../../../../scss/theming';
3
+
4
+ @mixin daff-hint-theme($theme) {
5
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
6
+ $type: core.daff-map-get($theme, 'core', 'type');
7
+
8
+ .daff-hint {
9
+ @include theming.light($type) {
10
+ color: theming.daff-color($neutral, 80);
11
+ }
12
+
13
+ @include theming.dark($type) {
14
+ color: theming.daff-color($neutral, 30);
15
+ }
16
+ }
17
+ }
@@ -5,12 +5,8 @@
5
5
  $base: core.daff-map-get($theme, 'core', 'base');
6
6
  $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
7
7
 
8
- :host {
8
+ .daff-input {
9
9
  background: $base;
10
10
  color: $base-contrast;
11
-
12
- &::placeholder {
13
- color: transparent;
14
- }
15
11
  }
16
12
  }
@@ -4,27 +4,46 @@
4
4
 
5
5
  @mixin daff-switch-theme($theme) {
6
6
  $primary: core.daff-map-get($theme, primary);
7
- $base: core.daff-map-get($theme, 'core', 'base');
8
- $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
9
7
  $white: core.daff-map-get($theme, 'core', 'white');
10
- $black: core.daff-map-get($theme, 'core', 'black');
11
8
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
9
+ $type: core.daff-map-get($theme, 'core', 'type');
12
10
 
13
11
  .daff-switch {
14
12
  &__toggle {
15
- background-color: theming.daff-illuminate($base, $neutral, 3);
16
13
  border: 2px solid transparent;
17
14
 
18
- &:focus-within {
19
- border: 2px solid theming.daff-illuminate($base, $neutral, 2);
20
- }
21
-
22
15
  &.daff-checked {
23
16
  background-color: theming.daff-color($primary);
24
17
  }
25
18
 
26
- &::before {
27
- background-color: $base;
19
+ @include theming.light($type) {
20
+ background-color: theming.daff-color($neutral, 30);
21
+
22
+ &:focus-within {
23
+ border: 2px solid theming.daff-color($neutral, 20);
24
+ }
25
+
26
+ &::before {
27
+ background-color: $white;
28
+ }
29
+ }
30
+
31
+ @include theming.dark($type) {
32
+ background-color: theming.daff-color($neutral, 80);
33
+
34
+ &:focus-within {
35
+ border: 2px solid theming.daff-color($neutral, 90);
36
+ }
37
+
38
+ &::before {
39
+ background-color: theming.daff-color($neutral, 40);
40
+ }
41
+
42
+ &.daff-checked {
43
+ &::before {
44
+ background-color: $white;
45
+ }
46
+ }
28
47
  }
29
48
  }
30
49
  }