@daffodil/design 0.79.0 → 0.80.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 (219) hide show
  1. package/accordion/accordion.module.d.ts +3 -1
  2. package/accordion/src/accordion-theme.scss +4 -4
  3. package/article/README.md +5 -6
  4. package/article/article.module.d.ts +3 -1
  5. package/article/src/article-theme.scss +8 -8
  6. package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
  7. package/breadcrumb/breadcrumb.module.d.ts +3 -1
  8. package/breadcrumb/src/breadcrumb-theme.scss +3 -3
  9. package/button/button.module.d.ts +3 -1
  10. package/button/src/button/basic/button-theme.scss +14 -14
  11. package/button/src/button/button-base.scss +3 -3
  12. package/button/src/button/flat/flat-theme.scss +21 -22
  13. package/button/src/button/icon/icon-theme.scss +13 -14
  14. package/button/src/button/raised/raised-theme.scss +32 -45
  15. package/button/src/button/stroked/stroked-theme.scss +18 -21
  16. package/button/src/button/underline/underline-theme.scss +14 -18
  17. package/callout/callout.module.d.ts +3 -1
  18. package/callout/src/callout-theme.scss +11 -17
  19. package/card/card.module.d.ts +1 -1
  20. package/card/src/card-theme-variants/linkable-card.scss +1 -1
  21. package/card/src/card-theme.scss +9 -9
  22. package/container/container.module.d.ts +1 -1
  23. package/core/public_api.d.ts +1 -0
  24. package/core/selectable/public_api.d.ts +2 -0
  25. package/core/selectable/selectable.d.ts +7 -0
  26. package/core/selectable/selectable.directive.d.ts +17 -0
  27. package/esm2022/accordion/accordion.module.mjs +4 -2
  28. package/esm2022/article/article.module.mjs +4 -2
  29. package/esm2022/atoms/form/checkbox/checkbox.component.mjs +2 -2
  30. package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +2 -2
  31. package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
  32. package/esm2022/atoms/form/radio/radio.component.mjs +2 -2
  33. package/esm2022/atoms/form/radio-set/radio-set.component.mjs +2 -2
  34. package/esm2022/breadcrumb/breadcrumb.module.mjs +4 -2
  35. package/esm2022/button/button.module.mjs +4 -2
  36. package/esm2022/callout/callout.module.mjs +4 -2
  37. package/esm2022/card/card.module.mjs +2 -2
  38. package/esm2022/container/container/container.component.mjs +2 -2
  39. package/esm2022/container/container.module.mjs +2 -2
  40. package/esm2022/core/public_api.mjs +2 -1
  41. package/esm2022/core/selectable/public_api.mjs +2 -0
  42. package/esm2022/core/selectable/selectable.directive.mjs +41 -0
  43. package/esm2022/core/selectable/selectable.mjs +2 -0
  44. package/esm2022/hero/hero.module.mjs +2 -2
  45. package/esm2022/image/image.module.mjs +2 -2
  46. package/esm2022/link-set/link-set.module.mjs +2 -2
  47. package/esm2022/list/examples/basic-list/basic-list.component.mjs +1 -1
  48. package/esm2022/list/examples/icon-list/icon-list.component.mjs +2 -2
  49. package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +1 -1
  50. package/esm2022/list/examples/nav-list/nav-list.component.mjs +2 -2
  51. package/esm2022/list/list/list.component.mjs +2 -2
  52. package/esm2022/list/list-item/list-item.component.mjs +10 -3
  53. package/esm2022/list/list.module.mjs +2 -2
  54. package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
  55. package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +1 -1
  56. package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +1 -1
  57. package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +1 -1
  58. package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
  59. package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +26 -39
  60. package/esm2022/modal/modal.module.mjs +2 -2
  61. package/esm2022/navbar/navbar.module.mjs +2 -2
  62. package/esm2022/notification/notification.module.mjs +2 -2
  63. package/esm2022/paginator/paginator.module.mjs +2 -2
  64. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  65. package/esm2022/sidebar/sidebar.module.mjs +2 -2
  66. package/esm2022/switch/daffodil-design-switch.mjs +5 -0
  67. package/esm2022/switch/examples/basic-switch/basic-switch.component.mjs +23 -0
  68. package/esm2022/switch/examples/daffodil-design-switch-examples.mjs +5 -0
  69. package/esm2022/switch/examples/disabled-switch/disabled-switch.component.mjs +20 -0
  70. package/esm2022/switch/examples/examples.mjs +13 -0
  71. package/esm2022/switch/examples/index.mjs +2 -0
  72. package/esm2022/switch/examples/loading-switch/loading-switch.component.mjs +20 -0
  73. package/esm2022/switch/examples/public_api.mjs +7 -0
  74. package/esm2022/switch/examples/switch-error/switch-error.component.mjs +22 -0
  75. package/esm2022/switch/examples/switch-label-positions/switch-label-positions.component.mjs +31 -0
  76. package/esm2022/switch/index.mjs +2 -0
  77. package/esm2022/switch/public_api.mjs +3 -0
  78. package/esm2022/switch/switch/label-position.mjs +11 -0
  79. package/esm2022/switch/switch/switch.component.mjs +126 -0
  80. package/esm2022/switch/switch.mjs +7 -0
  81. package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +3 -3
  82. package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +22 -21
  83. package/esm2022/tabs/tabs/tabs.component.mjs +4 -8
  84. package/esm2022/toast/toast/toast.component.mjs +3 -3
  85. package/esm2022/toast/toast.module.mjs +2 -2
  86. package/esm2022/tree/tree.module.mjs +2 -2
  87. package/fesm2022/daffodil-design-accordion.mjs +3 -1
  88. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  89. package/fesm2022/daffodil-design-article.mjs +3 -1
  90. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  91. package/fesm2022/daffodil-design-breadcrumb.mjs +3 -1
  92. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-button.mjs +3 -1
  94. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  95. package/fesm2022/daffodil-design-callout.mjs +3 -1
  96. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  97. package/fesm2022/daffodil-design-card.mjs +1 -1
  98. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-container.mjs +3 -3
  100. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-hero.mjs +1 -1
  102. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-image.mjs +1 -1
  104. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-link-set.mjs +1 -1
  106. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  107. package/fesm2022/daffodil-design-list-examples.mjs +4 -4
  108. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-list.mjs +12 -5
  110. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  111. package/fesm2022/daffodil-design-loading-icon.mjs +1 -1
  112. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  113. package/fesm2022/daffodil-design-media-gallery-examples.mjs +3 -3
  114. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  115. package/fesm2022/daffodil-design-media-gallery.mjs +25 -40
  116. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  117. package/fesm2022/daffodil-design-modal.mjs +1 -1
  118. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  119. package/fesm2022/daffodil-design-navbar.mjs +1 -1
  120. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  121. package/fesm2022/daffodil-design-notification.mjs +1 -1
  122. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  123. package/fesm2022/daffodil-design-paginator.mjs +1 -1
  124. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  125. package/fesm2022/daffodil-design-progress-bar.mjs +1 -1
  126. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-sidebar.mjs +1 -1
  128. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-switch-examples.mjs +109 -0
  130. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -0
  131. package/fesm2022/daffodil-design-switch.mjs +148 -0
  132. package/fesm2022/daffodil-design-switch.mjs.map +1 -0
  133. package/fesm2022/daffodil-design-tabs-examples.mjs +2 -2
  134. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  135. package/fesm2022/daffodil-design-tabs.mjs +23 -26
  136. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  137. package/fesm2022/daffodil-design-toast.mjs +3 -3
  138. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  139. package/fesm2022/daffodil-design-tree.mjs +1 -1
  140. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  141. package/fesm2022/daffodil-design.mjs +45 -6
  142. package/fesm2022/daffodil-design.mjs.map +1 -1
  143. package/hero/hero.module.d.ts +1 -1
  144. package/hero/src/hero-theme.scss +11 -17
  145. package/image/image.module.d.ts +1 -1
  146. package/link-set/link-set.module.d.ts +1 -1
  147. package/list/list-item/list-item.component.d.ts +3 -1
  148. package/list/list.module.d.ts +1 -1
  149. package/list/src/list-theme.scss +13 -9
  150. package/loading-icon/loading-icon.module.d.ts +1 -1
  151. package/loading-icon/src/loading-icon-theme.scss +7 -7
  152. package/media-gallery/media-gallery.module.d.ts +1 -1
  153. package/media-gallery/src/media-gallery-theme.scss +3 -3
  154. package/media-gallery/thumbnail/thumbnail.directive.d.ts +9 -18
  155. package/menu/src/menu-theme.scss +5 -5
  156. package/modal/modal.module.d.ts +1 -1
  157. package/modal/src/modal-theme.scss +1 -1
  158. package/navbar/navbar.module.d.ts +1 -1
  159. package/navbar/src/navbar-theme.scss +8 -8
  160. package/notification/notification.module.d.ts +1 -1
  161. package/notification/src/notification-theme.scss +12 -12
  162. package/package.json +1 -1
  163. package/paginator/paginator.module.d.ts +1 -1
  164. package/paginator/src/paginator-theme.scss +11 -10
  165. package/progress-bar/progress-bar.module.d.ts +1 -1
  166. package/progress-bar/src/progress-bar-theme.scss +10 -10
  167. package/scss/accessibility/_index.scss +1 -1
  168. package/scss/core/_index.scss +1 -2
  169. package/scss/core/error/error-to-string.scss +13 -0
  170. package/scss/core/map/map-deep-check/map-deep-check.scss +2 -1
  171. package/scss/core/map/map-deep-get/map-deep-get.scss +1 -0
  172. package/scss/core/map/map-get/map-get.scss +23 -0
  173. package/scss/core/map/map-get/map-get.spec.scss +65 -0
  174. package/scss/core/string/split/string-split.scss +10 -7
  175. package/scss/global.scss +1 -0
  176. package/scss/interactions/_index.scss +1 -1
  177. package/scss/layout/_index.scss +1 -1
  178. package/scss/state/skeleton/_mixins.scss +2 -2
  179. package/scss/theme.scss +2 -0
  180. package/scss/theming/_configure-theme.scss +2 -2
  181. package/scss/theming/_daff-theme.scss +14 -4
  182. package/scss/theming/_index.scss +1 -1
  183. package/scss/theming/_theme-css-variables.scss +14 -12
  184. package/scss/theming/contrast/luminance/luminance.scss +8 -6
  185. package/scss/theming/illuminate/illuminate.scss +20 -17
  186. package/scss/typography/utilities/_index.scss +1 -1
  187. package/scss/typography/utilities/_variables.scss +1 -1
  188. package/sidebar/sidebar.module.d.ts +1 -1
  189. package/sidebar/src/sidebar-theme.scss +3 -3
  190. package/src/atoms/form/form-field/form-field/form-field-theme.scss +6 -6
  191. package/src/atoms/form/input/input-theme.scss +2 -2
  192. package/src/atoms/form/native-select/native-select-theme.scss +3 -3
  193. package/switch/README.md +61 -0
  194. package/switch/examples/basic-switch/basic-switch.component.d.ts +8 -0
  195. package/switch/examples/disabled-switch/disabled-switch.component.d.ts +7 -0
  196. package/switch/examples/examples.d.ts +5 -0
  197. package/switch/examples/index.d.ts +1 -0
  198. package/switch/examples/loading-switch/loading-switch.component.d.ts +7 -0
  199. package/switch/examples/public_api.d.ts +6 -0
  200. package/switch/examples/switch-error/switch-error.component.d.ts +7 -0
  201. package/switch/examples/switch-label-positions/switch-label-positions.component.d.ts +12 -0
  202. package/switch/index.d.ts +1 -0
  203. package/switch/public_api.d.ts +2 -0
  204. package/switch/src/switch-theme.scss +31 -0
  205. package/switch/switch/label-position.d.ts +10 -0
  206. package/switch/switch/switch.component.d.ts +53 -0
  207. package/switch/switch.d.ts +3 -0
  208. package/tabs/src/tabs-theme.scss +9 -9
  209. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +5 -4
  210. package/tabs/tabs/tabs.component.d.ts +1 -2
  211. package/toast/src/toast-theme.scss +18 -18
  212. package/toast/toast.module.d.ts +1 -1
  213. package/tree/src/tree-theme.scss +11 -11
  214. package/tree/tree.module.d.ts +1 -1
  215. package/scss/core/map/map-deep-check/map-deep-check.spec.scss +0 -43
  216. package/scss/core/map/map-deep-get/map-deep-get.spec.scss +0 -25
  217. package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
  218. package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
  219. package/src/atoms/form/radio/radio.scss +0 -0
@@ -3,7 +3,9 @@ import * as i1 from "@angular/common";
3
3
  import * as i2 from "./accordion/accordion/accordion.component";
4
4
  import * as i3 from "./accordion/accordion-item/accordion-item.component";
5
5
  import * as i4 from "./accordion/accordion-item-title/accordion-item-title.directive";
6
- /** @deprecated in favor of {@link DAFF_ACCORDION_COMPONENTS} */
6
+ /**
7
+ * @deprecated in favor of {@link DAFF_ACCORDION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
8
+ */
7
9
  export declare class DaffAccordionModule {
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccordionModule, never>;
9
11
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAccordionModule, never, [typeof i1.CommonModule, typeof i2.DaffAccordionComponent, typeof i3.DaffAccordionItemComponent, typeof i4.DaffAccordionItemTitleDirective], [typeof i2.DaffAccordionComponent, typeof i3.DaffAccordionItemComponent, typeof i4.DaffAccordionItemTitleDirective]>;
@@ -3,8 +3,8 @@
3
3
  @use '../../scss/theming';
4
4
 
5
5
  @mixin daff-accordion-theme($theme) {
6
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
7
- $base: core.daff-map-deep-get($theme, 'core.base');
6
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
7
+ $base: core.daff-map-get($theme, 'core', 'base');
8
8
 
9
9
  .daff-accordion-item {
10
10
  border-top: 1px solid theming.daff-illuminate($base, $neutral, 2);
@@ -12,9 +12,9 @@
12
12
  &:last-child {
13
13
  border-bottom: 1px solid theming.daff-illuminate($base, $neutral, 2);
14
14
  }
15
-
15
+
16
16
  &__header {
17
- &:after {
17
+ &::after {
18
18
  border-color: currentColor;
19
19
  }
20
20
  }
package/article/README.md CHANGED
@@ -4,7 +4,7 @@ Article provides styles to common element selectors to create an article in a co
4
4
  ## Overview
5
5
  Article can be used on any content page that displays large blocks of text-driven information. It's meant to be used as a standalone element and should not be nested inside any other components that may change the background color from the anticipated one. In the event that you must nest an article inside another component, please ensure that you set the article's background color to the default body color.
6
6
 
7
- ## Supported Elements
7
+ ## Supported elements
8
8
 
9
9
  ### Headings
10
10
  <design-land-example-viewer-container example="article-headings"></design-land-example-viewer-container>
@@ -24,10 +24,10 @@ The link style in an article uses the default browser link style.
24
24
 
25
25
  ### Lists
26
26
 
27
- #### Unordered List
27
+ #### Unordered list
28
28
  <design-land-example-viewer-container example="article-ul"></design-land-example-viewer-container>
29
29
 
30
- #### Ordered List
30
+ #### Ordered list
31
31
  <design-land-example-viewer-container example="article-ol"></design-land-example-viewer-container>
32
32
 
33
33
  ### Code
@@ -39,15 +39,14 @@ These are styles for inline and multiline blocks of code.
39
39
  #### Code blocks
40
40
  <design-land-example-viewer-container example="article-code-block"></design-land-example-viewer-container>
41
41
 
42
- ### Horizontal Rules
42
+ ### Horizontal rules
43
43
  <design-land-example-viewer-container example="article-hr"></design-land-example-viewer-container>
44
44
 
45
45
  ### Blockquote
46
46
  <design-land-example-viewer-container example="article-blockquote"></design-land-example-viewer-container>
47
47
 
48
48
  ## Encapsulation
49
-
50
- Articles also support other custom "non-native" components like [accordions](../accordion/README.md), [media galleries](../media-gallery/README.md), and [lists](../list/README.md). Unlike typical HTML (<p>, <ol>, <ul>, etc) content, these components must be style encaspulated to prevent article styles bleeding down from the article into their content. Many Daffodil components support this out of the box. If you have a custom component that you would like to place inside an article, you can use the `DaffArticleEncapsulatedDirective` on your component to prevent article styles bleeding into your component.
49
+ Articles also support other custom "non-native" components like [accordions](/libs/design/accordion/README.md), [media galleries](/libs/design/media-gallery/README.md), and [lists](/libs/design/list/README.md). Unlike typical HTML (`<p>`, `<ol>`, `<ul>`, etc) content, these components must be style encaspulated to prevent article styles bleeding down from the article into their content. Many Daffodil components support this out of the box. If you have a custom component that you would like to place inside an article, you can use the `DaffArticleEncapsulatedDirective` on your component to prevent article styles bleeding into your component.
51
50
 
52
51
  ## Usage
53
52
 
@@ -2,7 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/common";
3
3
  import * as i2 from "./article/article.component";
4
4
  import * as i3 from "./article-meta/article-meta.directive";
5
- /** @deprecated in favor of {@link DAFF_ARTICLE_COMPONENTS} */
5
+ /**
6
+ * @deprecated in favor of {@link DAFF_ARTICLE_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
7
+ */
6
8
  export declare class DaffArticleModule {
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleModule, never>;
8
10
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffArticleModule, never, [typeof i1.CommonModule, typeof i2.DaffArticleComponent, typeof i3.DaffArticleMetaDirective], [typeof i2.DaffArticleComponent, typeof i3.DaffArticleMetaDirective]>;
@@ -4,14 +4,14 @@
4
4
  @use '../../scss/theming';
5
5
 
6
6
  @mixin daff-article-theme($theme) {
7
- $primary: map.get($theme, primary);
8
- $secondary: map.get($theme, secondary);
9
- $tertiary: map.get($theme, tertiary);
10
- $base: core.daff-map-deep-get($theme, 'core.base');
11
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
12
- $white: core.daff-map-deep-get($theme, 'core.white');
13
- $black: core.daff-map-deep-get($theme, 'core.black');
14
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
7
+ $primary: core.daff-map-get($theme, primary);
8
+ $secondary: core.daff-map-get($theme, secondary);
9
+ $tertiary: core.daff-map-get($theme, tertiary);
10
+ $base: core.daff-map-get($theme, 'core', 'base');
11
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
12
+ $white: core.daff-map-get($theme, 'core', 'white');
13
+ $black: core.daff-map-get($theme, 'core', 'black');
14
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
15
15
 
16
16
  $text-color: theming.daff-illuminate($base-contrast, $neutral, 2);
17
17
  $table-border-color: theming.daff-illuminate($base, $neutral, 2);
@@ -11,7 +11,7 @@ export declare class DaffFormFieldComponent implements DoCheck, AfterContentInit
11
11
  * The tracking property used to determine if the parent form has been submitted,
12
12
  * and thus show an error message (even if the field hasn't been touched).
13
13
  *
14
- * @deprecated Deprecated in version 0.78.0. Will be removed in version 0.81.0.
14
+ * @deprecated Deprecated in version 0.78.0. Will be removed in version 1.0.0.
15
15
  */
16
16
  formSubmitted: boolean;
17
17
  /**
@@ -1,7 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./breadcrumb/breadcrumb.component";
3
3
  import * as i2 from "./breadcrumb-item/breadcrumb-item.directive";
4
- /** @deprecated in favor of {@link DAFF_BREADCRUMB_COMPONENTS} */
4
+ /**
5
+ * @deprecated in favor of {@link DAFF_BREADCRUMB_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
6
+ */
5
7
  export declare class DaffBreadcrumbModule {
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbModule, never>;
7
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffBreadcrumbModule, never, [typeof i1.DaffBreadcrumbComponent, typeof i2.DaffBreadcrumbItemDirective], [typeof i1.DaffBreadcrumbComponent, typeof i2.DaffBreadcrumbItemDirective]>;
@@ -3,9 +3,9 @@
3
3
  @use '../../scss/theming';
4
4
 
5
5
  @mixin daff-breadcrumb-theme($theme) {
6
- $base: core.daff-map-deep-get($theme, 'core.base');
7
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
8
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
6
+ $base: core.daff-map-get($theme, 'core', 'base');
7
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
8
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
9
9
 
10
10
  .daff-breadcrumb__item {
11
11
  color: theming.daff-illuminate($base-contrast, $neutral, 4);
@@ -7,7 +7,9 @@ import * as i5 from "./button/raised/raised.component";
7
7
  import * as i6 from "./button/stroked/stroked.component";
8
8
  import * as i7 from "./button/underline/underline.component";
9
9
  import * as i8 from "@daffodil/design";
10
- /** @deprecated in favor of {@link DAFF_BUTTON_COMPONENTS} */
10
+ /**
11
+ * @deprecated in favor of {@link DAFF_BUTTON_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
12
+ */
11
13
  export declare class DaffButtonModule {
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonModule, never>;
13
15
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffButtonModule, never, [typeof i1.CommonModule, typeof i2.DaffButtonComponent, typeof i3.DaffFlatButtonComponent, typeof i4.DaffIconButtonComponent, typeof i5.DaffRaisedButtonComponent, typeof i6.DaffStrokedButtonComponent, typeof i7.DaffUnderlineButtonComponent], [typeof i2.DaffButtonComponent, typeof i3.DaffFlatButtonComponent, typeof i4.DaffIconButtonComponent, typeof i5.DaffRaisedButtonComponent, typeof i6.DaffStrokedButtonComponent, typeof i7.DaffUnderlineButtonComponent, typeof i8.DaffPrefixSuffixModule]>;
@@ -10,7 +10,7 @@
10
10
  background-color: $base-color;
11
11
  color: theming.daff-text-contrast($base-color);
12
12
 
13
- &:after {
13
+ &::after {
14
14
  background: $hover-color;
15
15
  }
16
16
 
@@ -21,25 +21,25 @@
21
21
  &:active {
22
22
  color: theming.daff-text-contrast($active-color);
23
23
 
24
- &:after {
24
+ &::after {
25
25
  background: $active-color;
26
26
  }
27
27
  }
28
28
  }
29
29
 
30
30
  @mixin daff-button-theme($theme) {
31
- $primary: map.get($theme, primary);
32
- $secondary: map.get($theme, secondary);
33
- $tertiary: map.get($theme, tertiary);
34
- $info: map.get($theme, info);
35
- $warn: map.get($theme, warn);
36
- $critical: map.get($theme, critical);
37
- $success: map.get($theme, success);
38
- $base: core.daff-map-deep-get($theme, 'core.base');
39
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
40
- $white: core.daff-map-deep-get($theme, 'core.white');
41
- $black: core.daff-map-deep-get($theme, 'core.black');
42
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
31
+ $primary: core.daff-map-get($theme, primary);
32
+ $secondary: core.daff-map-get($theme, secondary);
33
+ $tertiary: core.daff-map-get($theme, tertiary);
34
+ $info: core.daff-map-get($theme, informational);
35
+ $warn: core.daff-map-get($theme, warn);
36
+ $critical: core.daff-map-get($theme, critical);
37
+ $success: core.daff-map-get($theme, success);
38
+ $base: core.daff-map-get($theme, 'core', 'base');
39
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
40
+ $white: core.daff-map-get($theme, 'core', 'white');
41
+ $black: core.daff-map-get($theme, 'core', 'black');
42
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
43
43
 
44
44
  .daff-button {
45
45
  @include daff-button-theme-variant(
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  @mixin daff-button-background($border-radius) {
38
- &:after {
38
+ &::after {
39
39
  content: '';
40
40
  border-radius: $border-radius;
41
41
  position: absolute;
@@ -47,7 +47,7 @@
47
47
 
48
48
  &:hover,
49
49
  &:active {
50
- &:after {
50
+ &::after {
51
51
  opacity: 1;
52
52
  }
53
53
  }
@@ -76,4 +76,4 @@
76
76
  height: 3.5rem;
77
77
  padding: 0 1.5rem;
78
78
  }
79
- }
79
+ }
@@ -2,13 +2,10 @@
2
2
  @use '../../../../scss/theming';
3
3
  @use '../../../../scss/core';
4
4
 
5
- @mixin daff-flat-button-theme-variant(
6
- $base-color,
7
- $active-color
8
- ) {
5
+ @mixin daff-flat-button-theme-variant($base-color, $active-color) {
9
6
  color: $base-color;
10
7
 
11
- &:after {
8
+ &::after {
12
9
  background-color: $base-color;
13
10
  }
14
11
 
@@ -19,42 +16,44 @@
19
16
  &:active {
20
17
  color: theming.daff-text-contrast($active-color);
21
18
 
22
- &:after {
19
+ &::after {
23
20
  background-color: $active-color;
24
21
  }
25
22
  }
26
23
  }
27
24
 
28
25
  @mixin daff-flat-button-theme($theme) {
29
- $primary: map.get($theme, primary);
30
- $secondary: map.get($theme, secondary);
31
- $tertiary: map.get($theme, tertiary);
32
- $info: map.get($theme, info);
33
- $warn: map.get($theme, warn);
34
- $critical: map.get($theme, critical);
35
- $success: map.get($theme, success);
36
- $base: core.daff-map-deep-get($theme, 'core.base');
37
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
38
- $white: core.daff-map-deep-get($theme, 'core.white');
39
- $black: core.daff-map-deep-get($theme, 'core.black');
40
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
26
+ $primary: core.daff-map-get($theme, primary);
27
+ $secondary: core.daff-map-get($theme, secondary);
28
+ $tertiary: core.daff-map-get($theme, tertiary);
29
+ $info: core.daff-map-get($theme, informational);
30
+ $warn: core.daff-map-get($theme, warn);
31
+ $critical: core.daff-map-get($theme, critical);
32
+ $success: core.daff-map-get($theme, success);
33
+ $base: core.daff-map-get($theme, 'core', 'base');
34
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
35
+ $white: core.daff-map-get($theme, 'core', 'white');
36
+ $black: core.daff-map-get($theme, 'core', 'black');
37
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
41
38
 
42
39
  .daff-flat-button {
43
40
  color: currentColor;
44
41
 
45
- &:after {
42
+ &::after {
46
43
  background-color: theming.daff-illuminate($base, $neutral, 2);
47
44
  }
48
45
 
49
46
  &:active {
50
- &:after {
47
+ &::after {
51
48
  background-color: theming.daff-illuminate($base, $neutral, 3);
52
49
  }
53
50
  }
54
51
 
55
52
  &:hover,
56
53
  &:active {
57
- color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 2));
54
+ color: theming.daff-text-contrast(
55
+ theming.daff-illuminate($base, $neutral, 2)
56
+ );
58
57
  }
59
58
 
60
59
  &.daff-primary {
@@ -113,7 +112,7 @@
113
112
  &:hover,
114
113
  &:focus,
115
114
  &:active {
116
- &:after {
115
+ &::after {
117
116
  background: transparent;
118
117
  }
119
118
  }
@@ -13,8 +13,7 @@
13
13
  color: $hover-color;
14
14
  @if $base-color == currentColor {
15
15
  opacity: 0.8;
16
- }
17
- @else {
16
+ } @else {
18
17
  opacity: 1;
19
18
  }
20
19
  }
@@ -25,18 +24,18 @@
25
24
  }
26
25
 
27
26
  @mixin daff-icon-button-theme($theme) {
28
- $primary: map.get($theme, primary);
29
- $secondary: map.get($theme, secondary);
30
- $tertiary: map.get($theme, tertiary);
31
- $info: map.get($theme, info);
32
- $warn: map.get($theme, warn);
33
- $critical: map.get($theme, critical);
34
- $success: map.get($theme, success);
35
- $base: core.daff-map-deep-get($theme, 'core.base');
36
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
37
- $white: core.daff-map-deep-get($theme, 'core.white');
38
- $black: core.daff-map-deep-get($theme, 'core.black');
39
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
27
+ $primary: core.daff-map-get($theme, primary);
28
+ $secondary: core.daff-map-get($theme, secondary);
29
+ $tertiary: core.daff-map-get($theme, tertiary);
30
+ $info: core.daff-map-get($theme, informational);
31
+ $warn: core.daff-map-get($theme, warn);
32
+ $critical: core.daff-map-get($theme, critical);
33
+ $success: core.daff-map-get($theme, success);
34
+ $base: core.daff-map-get($theme, 'core', 'base');
35
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
36
+ $white: core.daff-map-get($theme, 'core', 'white');
37
+ $black: core.daff-map-get($theme, 'core', 'black');
38
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
40
39
 
41
40
  .daff-icon-button {
42
41
  @include daff-icon-button-theme-variant(
@@ -2,30 +2,29 @@
2
2
  @use '../../../../scss/theming';
3
3
  @use '../../../../scss/core';
4
4
 
5
- @mixin daff-raised-button-theme-variant(
6
- $base-color,
7
- ) {
8
- @if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
5
+ @mixin daff-raised-button-theme-variant($base-color) {
6
+ @if theming.daff-contrast-ratio(
7
+ $base-color,
8
+ theming.daff-text-contrast($base-color)
9
+ ) < 4.5 {
9
10
  @error 'Button Initial State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
10
11
  }
11
12
 
12
- @if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
13
- @error 'Button Hover State: '+ map.get(a11y.$wcag-aa-errors, 'text-contrast');
13
+ @if theming.daff-contrast-ratio(
14
+ $base-color,
15
+ theming.daff-text-contrast($base-color)
16
+ ) < 4.5 {
17
+ @error 'Button Hover State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
14
18
  }
15
19
 
16
20
  $black: theming.daff-color(theming.$daff-neutral, 110);
17
-
18
21
  background-color: $base-color;
19
22
  border: 1px solid $base-color;
20
- box-shadow:
21
- 0 3px 5px rgba($black, 0.12),
22
- 0 1px 3px rgba($black, 0.08);
23
+ box-shadow: 0 3px 5px rgba($black, 0.12), 0 1px 3px rgba($black, 0.08);
23
24
  color: theming.daff-text-contrast($base-color);
24
25
 
25
- &:after {
26
- box-shadow:
27
- 0 6px 12px rgba($black, 0.08),
28
- 0 4px 6px rgba($black, 0.04);
26
+ &::after {
27
+ box-shadow: 0 6px 12px rgba($black, 0.08), 0 4px 6px rgba($black, 0.04);
29
28
  }
30
29
 
31
30
  &:hover {
@@ -35,18 +34,18 @@
35
34
  }
36
35
 
37
36
  @mixin daff-raised-button-theme($theme) {
38
- $primary: map.get($theme, primary);
39
- $secondary: map.get($theme, secondary);
40
- $tertiary: map.get($theme, tertiary);
41
- $info: map.get($theme, info);
42
- $warn: map.get($theme, warn);
43
- $critical: map.get($theme, critical);
44
- $success: map.get($theme, success);
45
- $base: core.daff-map-deep-get($theme, 'core.base');
46
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
47
- $white: core.daff-map-deep-get($theme, 'core.white');
48
- $black: core.daff-map-deep-get($theme, 'core.black');
49
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
37
+ $primary: core.daff-map-get($theme, primary);
38
+ $secondary: core.daff-map-get($theme, secondary);
39
+ $tertiary: core.daff-map-get($theme, tertiary);
40
+ $info: core.daff-map-get($theme, informational);
41
+ $warn: core.daff-map-get($theme, warn);
42
+ $critical: core.daff-map-get($theme, critical);
43
+ $success: core.daff-map-get($theme, success);
44
+ $base: core.daff-map-get($theme, 'core', 'base');
45
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
46
+ $white: core.daff-map-get($theme, 'core', 'white');
47
+ $black: core.daff-map-get($theme, 'core', 'black');
48
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
50
49
 
51
50
  .daff-raised-button {
52
51
  @include daff-raised-button-theme-variant(
@@ -54,21 +53,15 @@
54
53
  );
55
54
 
56
55
  &.daff-primary {
57
- @include daff-raised-button-theme-variant(
58
- theming.daff-color($primary)
59
- );
56
+ @include daff-raised-button-theme-variant(theming.daff-color($primary));
60
57
  }
61
58
 
62
59
  &.daff-secondary {
63
- @include daff-raised-button-theme-variant(
64
- theming.daff-color($secondary)
65
- );
60
+ @include daff-raised-button-theme-variant(theming.daff-color($secondary));
66
61
  }
67
62
 
68
63
  &.daff-tertiary {
69
- @include daff-raised-button-theme-variant(
70
- theming.daff-color($tertiary)
71
- );
64
+ @include daff-raised-button-theme-variant(theming.daff-color($tertiary));
72
65
  }
73
66
 
74
67
  &.daff-black {
@@ -94,27 +87,21 @@
94
87
  );
95
88
  color: theming.daff-illuminate($base, $neutral, 5);
96
89
 
97
- &:after {
90
+ &::after {
98
91
  box-shadow: none;
99
92
  }
100
93
  }
101
94
 
102
95
  &.daff-warn {
103
- @include daff-raised-button-theme-variant(
104
- theming.daff-color($warn)
105
- );
96
+ @include daff-raised-button-theme-variant(theming.daff-color($warn));
106
97
  }
107
98
 
108
99
  &.daff-critical {
109
- @include daff-raised-button-theme-variant(
110
- theming.daff-color($critical)
111
- );
100
+ @include daff-raised-button-theme-variant(theming.daff-color($critical));
112
101
  }
113
102
 
114
103
  &.daff-success {
115
- @include daff-raised-button-theme-variant(
116
- theming.daff-color($success)
117
- );
104
+ @include daff-raised-button-theme-variant(theming.daff-color($success));
118
105
  }
119
106
  }
120
107
  }
@@ -2,15 +2,12 @@
2
2
  @use '../../../../scss/theming';
3
3
  @use '../../../../scss/core';
4
4
 
5
- @mixin daff-stroked-button-theme-variant(
6
- $base-color,
7
- $active-color
8
- ) {
5
+ @mixin daff-stroked-button-theme-variant($base-color, $active-color) {
9
6
  border: 1px solid $base-color;
10
7
  color: $base-color;
11
8
  background-color: transparent;
12
9
 
13
- &:after {
10
+ &::after {
14
11
  background-color: $base-color;
15
12
  }
16
13
 
@@ -22,32 +19,32 @@
22
19
  border: 1px solid $active-color;
23
20
  color: theming.daff-text-contrast($active-color);
24
21
 
25
- &:after {
22
+ &::after {
26
23
  background-color: $active-color;
27
24
  }
28
25
  }
29
26
  }
30
27
 
31
28
  @mixin daff-stroked-button-theme($theme) {
32
- $primary: map.get($theme, primary);
33
- $secondary: map.get($theme, secondary);
34
- $tertiary: map.get($theme, tertiary);
35
- $info: map.get($theme, info);
36
- $warn: map.get($theme, warn);
37
- $critical: map.get($theme, critical);
38
- $success: map.get($theme, success);
39
- $base: core.daff-map-deep-get($theme, 'core.base');
40
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
41
- $white: core.daff-map-deep-get($theme, 'core.white');
42
- $black: core.daff-map-deep-get($theme, 'core.black');
43
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
29
+ $primary: core.daff-map-get($theme, primary);
30
+ $secondary: core.daff-map-get($theme, secondary);
31
+ $tertiary: core.daff-map-get($theme, tertiary);
32
+ $info: core.daff-map-get($theme, informational);
33
+ $warn: core.daff-map-get($theme, warn);
34
+ $critical: core.daff-map-get($theme, critical);
35
+ $success: core.daff-map-get($theme, success);
36
+ $base: core.daff-map-get($theme, 'core', 'base');
37
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
38
+ $white: core.daff-map-get($theme, 'core', 'white');
39
+ $black: core.daff-map-get($theme, 'core', 'black');
40
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
44
41
 
45
42
  .daff-stroked-button {
46
43
  background: transparent;
47
44
  border: 1px solid theming.daff-illuminate($base, $neutral, 5);
48
45
  color: currentColor;
49
46
 
50
- &:after {
47
+ &::after {
51
48
  background: theming.daff-illuminate($base, $neutral, 2);
52
49
  }
53
50
 
@@ -64,7 +61,7 @@
64
61
  theming.daff-illuminate($base, $neutral, 3)
65
62
  );
66
63
 
67
- &:after {
64
+ &::after {
68
65
  background: theming.daff-illuminate($base, $neutral, 3);
69
66
  }
70
67
  }
@@ -127,7 +124,7 @@
127
124
  &:hover {
128
125
  color: theming.daff-illuminate($base, $neutral, 5);
129
126
 
130
- &:after {
127
+ &::after {
131
128
  background-color: transparent;
132
129
  opacity: 0;
133
130
  }
@@ -2,9 +2,7 @@
2
2
  @use '../../../../scss/theming';
3
3
  @use '../../../../scss/core';
4
4
 
5
- @mixin daff-underline-button-theme-variant(
6
- $base-color: currentColor,
7
- ) {
5
+ @mixin daff-underline-button-theme-variant($base-color: currentColor) {
8
6
  color: $base-color;
9
7
 
10
8
  &::after {
@@ -13,18 +11,18 @@
13
11
  }
14
12
 
15
13
  @mixin daff-underline-button-theme($theme) {
16
- $primary: map.get($theme, primary);
17
- $secondary: map.get($theme, secondary);
18
- $tertiary: map.get($theme, tertiary);
19
- $info: map.get($theme, info);
20
- $warn: map.get($theme, warn);
21
- $critical: map.get($theme, critical);
22
- $success: map.get($theme, success);
23
- $base: core.daff-map-deep-get($theme, 'core.base');
24
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
25
- $white: core.daff-map-deep-get($theme, 'core.white');
26
- $black: core.daff-map-deep-get($theme, 'core.black');
27
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
14
+ $primary: core.daff-map-get($theme, primary);
15
+ $secondary: core.daff-map-get($theme, secondary);
16
+ $tertiary: core.daff-map-get($theme, tertiary);
17
+ $info: core.daff-map-get($theme, informational);
18
+ $warn: core.daff-map-get($theme, warn);
19
+ $critical: core.daff-map-get($theme, critical);
20
+ $success: core.daff-map-get($theme, success);
21
+ $base: core.daff-map-get($theme, 'core', 'base');
22
+ $base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
23
+ $white: core.daff-map-get($theme, 'core', 'white');
24
+ $black: core.daff-map-get($theme, 'core', 'black');
25
+ $neutral: core.daff-map-get($theme, 'core', 'neutral');
28
26
 
29
27
  .daff-underline-button {
30
28
  @include daff-underline-button-theme-variant(
@@ -73,9 +71,7 @@
73
71
  }
74
72
 
75
73
  &.daff-warn {
76
- @include daff-underline-button-theme-variant(
77
- theming.daff-color($warn)
78
- );
74
+ @include daff-underline-button-theme-variant(theming.daff-color($warn));
79
75
  }
80
76
 
81
77
  &.daff-critical {
@@ -6,7 +6,9 @@ import * as i4 from "./callout-title/callout-title.directive";
6
6
  import * as i5 from "./callout-subtitle/callout-subtitle.directive";
7
7
  import * as i6 from "./callout-tagline/callout-tagline.directive";
8
8
  import * as i7 from "./callout-body/callout-body.directive";
9
- /** @deprecated in favor of {@link DAFF_CALLOUT_COMPONENTS} */
9
+ /**
10
+ * @deprecated in favor of {@link DAFF_CALLOUT_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
11
+ */
10
12
  export declare class DaffCalloutModule {
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutModule, never>;
12
14
  static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCalloutModule, never, [typeof i1.CommonModule, typeof i2.DaffCalloutComponent, typeof i3.DaffCalloutIconDirective, typeof i4.DaffCalloutTitleDirective, typeof i5.DaffCalloutSubtitleDirective, typeof i6.DaffCalloutTaglineDirective, typeof i7.DaffCalloutBodyDirective], [typeof i2.DaffCalloutComponent, typeof i3.DaffCalloutIconDirective, typeof i5.DaffCalloutSubtitleDirective, typeof i4.DaffCalloutTitleDirective, typeof i6.DaffCalloutTaglineDirective, typeof i7.DaffCalloutBodyDirective]>;