@daffodil/design 0.78.0 → 0.79.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 (264) hide show
  1. package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
  2. package/button/README.md +3 -3
  3. package/button/button/basic/button.component.d.ts +28 -0
  4. package/button/button/button-base.directive.d.ts +51 -0
  5. package/button/button/flat/flat.component.d.ts +28 -0
  6. package/button/button/icon/icon.component.d.ts +24 -0
  7. package/button/button/raised/raised.component.d.ts +28 -0
  8. package/button/button/stroked/stroked.component.d.ts +28 -0
  9. package/button/button/underline/underline.component.d.ts +28 -0
  10. package/button/button.d.ts +7 -2
  11. package/button/button.module.d.ts +8 -3
  12. package/button/public_api.d.ts +6 -1
  13. package/button/src/button/basic/button-theme.scss +145 -0
  14. package/button/src/button/button-base.scss +79 -0
  15. package/button/src/button/flat/flat-theme.scss +143 -0
  16. package/button/src/button/icon/icon-theme.scss +141 -0
  17. package/button/src/button/raised/raised-theme.scss +120 -0
  18. package/button/src/button/stroked/stroked-theme.scss +158 -0
  19. package/button/src/button/underline/underline-theme.scss +93 -0
  20. package/card/card.module.d.ts +1 -1
  21. package/container/container.module.d.ts +1 -1
  22. package/core/statusable/statusable.d.ts +5 -3
  23. package/core/statusable/statusable.directive.d.ts +6 -4
  24. package/esm2022/accordion/accordion/animation/accordion-animation.mjs +1 -4
  25. package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
  26. package/esm2022/button/button/basic/button.component.mjs +48 -0
  27. package/esm2022/button/button/button-base.directive.mjs +105 -0
  28. package/esm2022/button/button/flat/flat.component.mjs +48 -0
  29. package/esm2022/button/button/icon/icon.component.mjs +44 -0
  30. package/esm2022/button/button/raised/raised.component.mjs +48 -0
  31. package/esm2022/button/button/stroked/stroked.component.mjs +48 -0
  32. package/esm2022/button/button/underline/underline.component.mjs +48 -0
  33. package/esm2022/button/button.mjs +12 -2
  34. package/esm2022/button/button.module.mjs +34 -4
  35. package/esm2022/button/examples/basic-button/basic-button.component.mjs +4 -6
  36. package/esm2022/button/examples/flat-button/flat-button.component.mjs +4 -6
  37. package/esm2022/button/examples/icon-button/icon-button.component.mjs +4 -6
  38. package/esm2022/button/examples/raised-button/raised-button.component.mjs +4 -6
  39. package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +2 -2
  40. package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +3 -3
  41. package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +4 -6
  42. package/esm2022/button/examples/underline-button/underline-button.component.mjs +4 -6
  43. package/esm2022/button/public_api.mjs +7 -2
  44. package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +5 -7
  45. package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +5 -7
  46. package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +5 -6
  47. package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +4 -6
  48. package/esm2022/card/card.module.mjs +2 -2
  49. package/esm2022/card/examples/basic-card/basic-card.component.mjs +4 -6
  50. package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +5 -7
  51. package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +4 -5
  52. package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +4 -5
  53. package/esm2022/container/container.module.mjs +2 -2
  54. package/esm2022/core/statusable/statusable.directive.mjs +7 -5
  55. package/esm2022/core/statusable/statusable.mjs +3 -2
  56. package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +4 -6
  57. package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +5 -7
  58. package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +5 -7
  59. package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +4 -6
  60. package/esm2022/hero/hero.module.mjs +2 -2
  61. package/esm2022/image/image.module.mjs +2 -2
  62. package/esm2022/link-set/link-set.module.mjs +2 -2
  63. package/esm2022/list/list.module.mjs +2 -2
  64. package/esm2022/loading-icon/examples/examples.mjs +1 -3
  65. package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +2 -2
  66. package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +5 -20
  67. package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
  68. package/esm2022/media-gallery/helpers/media-gallery-token.mjs +7 -3
  69. package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
  70. package/esm2022/media-gallery/thumbnail/thumbnail-compat.token.mjs +8 -3
  71. package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +5 -7
  72. package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +4 -6
  73. package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +4 -6
  74. package/esm2022/modal/modal-header/modal-header.component.mjs +4 -6
  75. package/esm2022/modal/modal.module.mjs +2 -2
  76. package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +4 -6
  77. package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +4 -6
  78. package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +5 -7
  79. package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +4 -6
  80. package/esm2022/navbar/navbar.module.mjs +2 -2
  81. package/esm2022/notification/examples/default-notification/default-notification.component.mjs +1 -3
  82. package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +1 -3
  83. package/esm2022/notification/examples/notification-status/notification-status.component.mjs +3 -5
  84. package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +4 -5
  85. package/esm2022/notification/notification/notification.component.mjs +3 -3
  86. package/esm2022/notification/notification.module.mjs +2 -2
  87. package/esm2022/paginator/paginator.module.mjs +2 -2
  88. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  89. package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +5 -6
  90. package/esm2022/sidebar/sidebar-viewport/scroll-token/scroll.token.mjs +9 -3
  91. package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +3 -3
  92. package/esm2022/sidebar/sidebar.module.mjs +2 -2
  93. package/esm2022/tabs/daffodil-design-tabs.mjs +5 -0
  94. package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +22 -0
  95. package/esm2022/tabs/examples/custom-select-tabs/custom-select-tabs.component.mjs +34 -0
  96. package/esm2022/tabs/examples/daffodil-design-tabs-examples.mjs +5 -0
  97. package/esm2022/tabs/examples/disabled-tabs/disabled-tabs.component.mjs +22 -0
  98. package/esm2022/tabs/examples/index.mjs +2 -0
  99. package/esm2022/tabs/examples/initially-select-tab/initially-select-tab.component.mjs +22 -0
  100. package/esm2022/tabs/examples/public_api.mjs +11 -0
  101. package/esm2022/tabs/index.mjs +2 -0
  102. package/esm2022/tabs/public_api.mjs +6 -0
  103. package/esm2022/tabs/tabs/tab/tab.component.mjs +86 -0
  104. package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +83 -0
  105. package/esm2022/tabs/tabs/tab-label/tab-label.component.mjs +33 -0
  106. package/esm2022/tabs/tabs/tab-panel/tab-panel.component.mjs +68 -0
  107. package/esm2022/tabs/tabs/tabs.component.mjs +161 -0
  108. package/esm2022/tabs/tabs.mjs +13 -0
  109. package/esm2022/text-snippet/daffodil-design-text-snippet.mjs +5 -0
  110. package/esm2022/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.mjs +14 -0
  111. package/esm2022/text-snippet/examples/daffodil-design-text-snippet-examples.mjs +5 -0
  112. package/esm2022/text-snippet/examples/index.mjs +2 -0
  113. package/esm2022/text-snippet/examples/public_api.mjs +5 -0
  114. package/esm2022/text-snippet/index.mjs +2 -0
  115. package/esm2022/text-snippet/public_api.mjs +2 -0
  116. package/esm2022/text-snippet/text-snippet.component.mjs +46 -0
  117. package/esm2022/toast/examples/default-toast/default-toast.component.mjs +4 -6
  118. package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +4 -6
  119. package/esm2022/toast/examples/toast-status/toast-status.component.mjs +8 -10
  120. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +4 -6
  121. package/esm2022/toast/options/daff-toast-options.mjs +7 -7
  122. package/esm2022/toast/toast/toast-provider.mjs +2 -2
  123. package/esm2022/toast/toast/toast-template.component.mjs +2 -2
  124. package/esm2022/toast/toast.module.mjs +2 -2
  125. package/esm2022/tree/tree.module.mjs +2 -2
  126. package/fesm2022/daffodil-design-accordion.mjs +0 -3
  127. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  128. package/fesm2022/daffodil-design-button-examples.mjs +16 -16
  129. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  130. package/fesm2022/daffodil-design-button.mjs +305 -131
  131. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  132. package/fesm2022/daffodil-design-callout-examples.mjs +12 -13
  133. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  134. package/fesm2022/daffodil-design-card-examples.mjs +10 -12
  135. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  136. package/fesm2022/daffodil-design-card.mjs +1 -1
  137. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  138. package/fesm2022/daffodil-design-checkbox-examples.mjs +5 -6
  139. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  140. package/fesm2022/daffodil-design-container.mjs +1 -1
  141. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  142. package/fesm2022/daffodil-design-hero-examples.mjs +11 -13
  143. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  144. package/fesm2022/daffodil-design-hero.mjs +1 -1
  145. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  146. package/fesm2022/daffodil-design-image.mjs +1 -1
  147. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  148. package/fesm2022/daffodil-design-link-set.mjs +1 -1
  149. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  150. package/fesm2022/daffodil-design-list.mjs +1 -1
  151. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  152. package/fesm2022/daffodil-design-loading-icon-examples.mjs +1 -13
  153. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  154. package/fesm2022/daffodil-design-loading-icon.mjs +5 -20
  155. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  156. package/fesm2022/daffodil-design-media-gallery.mjs +14 -4
  157. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  158. package/fesm2022/daffodil-design-menu-examples.mjs +3 -5
  159. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  160. package/fesm2022/daffodil-design-modal-examples.mjs +5 -7
  161. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  162. package/fesm2022/daffodil-design-modal.mjs +4 -5
  163. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  164. package/fesm2022/daffodil-design-navbar-examples.mjs +11 -13
  165. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  166. package/fesm2022/daffodil-design-navbar.mjs +1 -1
  167. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  168. package/fesm2022/daffodil-design-notification-examples.mjs +5 -9
  169. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  170. package/fesm2022/daffodil-design-notification.mjs +3 -3
  171. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  172. package/fesm2022/daffodil-design-paginator.mjs +1 -1
  173. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  174. package/fesm2022/daffodil-design-progress-bar.mjs +1 -1
  175. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  176. package/fesm2022/daffodil-design-sidebar-examples.mjs +4 -5
  177. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  178. package/fesm2022/daffodil-design-sidebar.mjs +11 -5
  179. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  180. package/fesm2022/daffodil-design-tabs-examples.mjs +93 -0
  181. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -0
  182. package/fesm2022/daffodil-design-tabs.mjs +431 -0
  183. package/fesm2022/daffodil-design-tabs.mjs.map +1 -0
  184. package/fesm2022/daffodil-design-text-snippet-examples.mjs +25 -0
  185. package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -0
  186. package/fesm2022/daffodil-design-text-snippet.mjs +53 -0
  187. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -0
  188. package/fesm2022/daffodil-design-toast-examples.mjs +13 -15
  189. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  190. package/fesm2022/daffodil-design-toast.mjs +11 -10
  191. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  192. package/fesm2022/daffodil-design-tree.mjs +1 -1
  193. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  194. package/fesm2022/daffodil-design.mjs +9 -6
  195. package/fesm2022/daffodil-design.mjs.map +1 -1
  196. package/hero/hero.module.d.ts +1 -1
  197. package/image/README.md +4 -1
  198. package/image/image.module.d.ts +1 -1
  199. package/link-set/README.md +1 -1
  200. package/link-set/link-set.module.d.ts +1 -1
  201. package/list/list.module.d.ts +1 -1
  202. package/loading-icon/README.md +0 -5
  203. package/loading-icon/examples/examples.d.ts +2 -2
  204. package/loading-icon/loading-icon/loading-icon.component.d.ts +1 -9
  205. package/loading-icon/loading-icon.module.d.ts +1 -1
  206. package/media-gallery/README.md +4 -1
  207. package/media-gallery/helpers/media-gallery-token.d.ts +1 -2
  208. package/media-gallery/media-gallery.module.d.ts +1 -1
  209. package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +1 -5
  210. package/modal/modal.module.d.ts +1 -1
  211. package/navbar/navbar.module.d.ts +1 -1
  212. package/notification/README.md +2 -2
  213. package/notification/notification/notification.component.d.ts +1 -1
  214. package/notification/notification.module.d.ts +1 -1
  215. package/notification/src/notification-theme.scss +17 -13
  216. package/package.json +1 -1
  217. package/paginator/paginator.module.d.ts +1 -1
  218. package/progress-bar/progress-bar.module.d.ts +1 -1
  219. package/scss/theme.scss +13 -1
  220. package/scss/theming/_configure-theme.scss +60 -2
  221. package/scss/theming/_theme-css-variables.scss +1 -1
  222. package/sidebar/sidebar-viewport/scroll-token/scroll.token.d.ts +1 -7
  223. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +1 -1
  224. package/sidebar/sidebar.module.d.ts +1 -1
  225. package/tabs/README.md +19 -0
  226. package/tabs/examples/basic-tabs/basic-tabs.component.d.ts +6 -0
  227. package/tabs/examples/custom-select-tabs/custom-select-tabs.component.d.ts +11 -0
  228. package/tabs/examples/disabled-tabs/disabled-tabs.component.d.ts +6 -0
  229. package/tabs/examples/index.d.ts +1 -0
  230. package/tabs/examples/initially-select-tab/initially-select-tab.component.d.ts +6 -0
  231. package/tabs/examples/public_api.d.ts +2 -0
  232. package/tabs/index.d.ts +1 -0
  233. package/tabs/public_api.d.ts +5 -0
  234. package/tabs/src/tabs-theme.scss +22 -0
  235. package/tabs/tabs/tab/tab.component.d.ts +57 -0
  236. package/tabs/tabs/tab-activator/tab-activator.component.d.ts +37 -0
  237. package/tabs/tabs/tab-label/tab-label.component.d.ts +19 -0
  238. package/tabs/tabs/tab-panel/tab-panel.component.d.ts +38 -0
  239. package/tabs/tabs/tabs.component.d.ts +104 -0
  240. package/tabs/tabs.d.ts +6 -0
  241. package/text-snippet/README.md +2 -0
  242. package/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.d.ts +5 -0
  243. package/text-snippet/examples/index.d.ts +1 -0
  244. package/text-snippet/examples/public_api.d.ts +2 -0
  245. package/text-snippet/index.d.ts +1 -0
  246. package/text-snippet/public_api.d.ts +1 -0
  247. package/text-snippet/text-snippet.component.d.ts +19 -0
  248. package/toast/README.md +5 -5
  249. package/toast/options/daff-toast-options.d.ts +1 -3
  250. package/toast/src/toast-theme.scss +14 -10
  251. package/toast/toast/toast-provider.d.ts +1 -1
  252. package/toast/toast.module.d.ts +1 -1
  253. package/tree/tree.module.d.ts +1 -1
  254. package/button/button/button.component.d.ts +0 -80
  255. package/button/src/button-theme-variants/button.scss +0 -26
  256. package/button/src/button-theme-variants/flat.scss +0 -25
  257. package/button/src/button-theme-variants/icon.scss +0 -21
  258. package/button/src/button-theme-variants/raised.scss +0 -36
  259. package/button/src/button-theme-variants/stroked.scss +0 -28
  260. package/button/src/button-theme-variants/underline.scss +0 -9
  261. package/button/src/button-theme.scss +0 -574
  262. package/esm2022/button/button/button.component.mjs +0 -212
  263. package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +0 -15
  264. package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +0 -5
@@ -1,36 +0,0 @@
1
- @use 'sass:map';
2
- @use '../../../scss/core';
3
- @use '../../../scss/theming';
4
- @use '../../../scss/accessibility' as a11y;
5
-
6
- $black: theming.daff-color(theming.$daff-neutral, 110);
7
-
8
- @mixin daff-raised-button-theme-variant(
9
- $base-color,
10
- ) {
11
- @if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
12
- @error 'Button Initial State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
13
- }
14
-
15
- @if theming.daff-contrast-ratio($base-color, theming.daff-text-contrast($base-color)) < 4.5 {
16
- @error 'Button Hover State: '+ map.get(a11y.$wcag-aa-errors, 'text-contrast');
17
- }
18
-
19
- background-color: $base-color;
20
- border: 1px solid $base-color;
21
- box-shadow:
22
- 0 3px 5px rgba($black, 0.12),
23
- 0 1px 3px rgba($black, 0.08);
24
- color: theming.daff-text-contrast($base-color);
25
-
26
- &:after {
27
- box-shadow:
28
- 0 6px 12px rgba($black, 0.08),
29
- 0 4px 6px rgba($black, 0.04);
30
- }
31
-
32
- &:hover {
33
- background-color: $base-color;
34
- border: 1px solid $base-color;
35
- }
36
- }
@@ -1,28 +0,0 @@
1
- @use 'sass:map';
2
- @use '../../../scss/theming';
3
-
4
- @mixin daff-stroked-button-theme-variant(
5
- $base-color,
6
- $active-color
7
- ) {
8
- border: 1px solid $base-color;
9
- color: $base-color;
10
- background-color: transparent;
11
-
12
- &:after {
13
- background-color: $base-color;
14
- }
15
-
16
- &:hover {
17
- color: theming.daff-text-contrast($base-color);
18
- }
19
-
20
- &:active {
21
- border: 1px solid $active-color;
22
- color: theming.daff-text-contrast($active-color);
23
-
24
- &:after {
25
- background-color: $active-color;
26
- }
27
- }
28
- }
@@ -1,9 +0,0 @@
1
- @mixin daff-underline-button-theme-variant(
2
- $base-color: currentColor,
3
- ) {
4
- color: $base-color;
5
-
6
- &::after {
7
- background-color: $base-color;
8
- }
9
- }
@@ -1,574 +0,0 @@
1
- @use 'sass:map';
2
- @use '../../scss/theming';
3
- @use '../../scss/core';
4
- @use './button-theme-variants/button';
5
- @use './button-theme-variants/icon';
6
- @use './button-theme-variants/raised';
7
- @use './button-theme-variants/stroked';
8
- @use './button-theme-variants/underline';
9
- @use './button-theme-variants/flat';
10
-
11
- @mixin daff-button-theme($theme) {
12
- $primary: map.get($theme, primary);
13
- $secondary: map.get($theme, secondary);
14
- $tertiary: map.get($theme, tertiary);
15
- $base: core.daff-map-deep-get($theme, 'core.base');
16
- $base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
17
- $white: core.daff-map-deep-get($theme, 'core.white');
18
- $black: core.daff-map-deep-get($theme, 'core.black');
19
- $neutral: core.daff-map-deep-get($theme, 'core.neutral');
20
-
21
- .daff-button {
22
- @include button.daff-button-theme-variant(
23
- theming.daff-illuminate($base, $neutral, 2),
24
- theming.daff-illuminate($base, $neutral, 3),
25
- theming.daff-illuminate($base, $neutral, 4)
26
- );
27
-
28
- &.daff-primary {
29
- @include button.daff-button-theme-variant(
30
- theming.daff-color($primary),
31
- theming.daff-color($primary, 70),
32
- theming.daff-color($primary, 80)
33
- );
34
- }
35
-
36
- &.daff-secondary {
37
- @include button.daff-button-theme-variant(
38
- theming.daff-color($secondary),
39
- theming.daff-color($secondary, 70),
40
- theming.daff-color($secondary, 80)
41
- );
42
- }
43
-
44
- &.daff-tertiary {
45
- @include button.daff-button-theme-variant(
46
- theming.daff-color($tertiary),
47
- theming.daff-color($tertiary, 70),
48
- theming.daff-color($tertiary, 80)
49
- );
50
- }
51
-
52
- &.daff-black {
53
- @include button.daff-button-theme-variant(
54
- $black,
55
- theming.daff-color($neutral, 90),
56
- theming.daff-color($neutral, 80)
57
- );
58
- }
59
-
60
- &.daff-white {
61
- @include button.daff-button-theme-variant(
62
- $white,
63
- theming.daff-color($neutral, 20),
64
- theming.daff-color($neutral, 30)
65
- );
66
- }
67
-
68
- &.daff-theme {
69
- @include button.daff-button-theme-variant(
70
- $base,
71
- theming.daff-illuminate($base, $neutral, 2),
72
- theming.daff-illuminate($base, $neutral, 3)
73
- );
74
- }
75
-
76
- &.daff-theme-contrast {
77
- @include button.daff-button-theme-variant(
78
- $base-contrast,
79
- theming.daff-illuminate($base-contrast, $neutral, 2),
80
- theming.daff-illuminate($base-contrast, $neutral, 3)
81
- );
82
- }
83
-
84
- &[disabled],
85
- &.daff-button--disabled {
86
- @include button.daff-button-theme-variant(
87
- theming.daff-illuminate($base, $neutral, 3),
88
- theming.daff-illuminate($base, $neutral, 3),
89
- theming.daff-illuminate($base, $neutral, 3)
90
- );
91
- color: theming.daff-illuminate($base, $neutral, 5);
92
-
93
- &:hover {
94
- color: theming.daff-illuminate($base, $neutral, 5);
95
- }
96
- }
97
-
98
- &.daff-warn {
99
- @include button.daff-button-theme-variant(
100
- theming.daff-color(theming.$daff-bronze, 60),
101
- theming.daff-color(theming.$daff-bronze, 70),
102
- theming.daff-color(theming.$daff-bronze, 80)
103
- );
104
- }
105
-
106
- &.daff-success {
107
- @include button.daff-button-theme-variant(
108
- theming.daff-color(theming.$daff-green, 60),
109
- theming.daff-color(theming.$daff-green, 70),
110
- theming.daff-color(theming.$daff-green, 80)
111
- );
112
- }
113
-
114
- &.daff-danger {
115
- @include button.daff-button-theme-variant(
116
- theming.daff-color(theming.$daff-red, 60),
117
- theming.daff-color(theming.$daff-red, 70),
118
- theming.daff-color(theming.$daff-red, 80)
119
- );
120
- }
121
- }
122
-
123
- .daff-raised-button {
124
- @include raised.daff-raised-button-theme-variant(
125
- theming.daff-illuminate($base, $neutral, 2)
126
- );
127
-
128
- &.daff-primary {
129
- @include raised.daff-raised-button-theme-variant(
130
- theming.daff-color($primary)
131
- );
132
- }
133
-
134
- &.daff-secondary {
135
- @include raised.daff-raised-button-theme-variant(
136
- theming.daff-color($secondary)
137
- );
138
- }
139
-
140
- &.daff-tertiary {
141
- @include raised.daff-raised-button-theme-variant(
142
- theming.daff-color($tertiary)
143
- );
144
- }
145
-
146
- &.daff-black {
147
- @include raised.daff-raised-button-theme-variant($black);
148
- }
149
-
150
- &.daff-white {
151
- @include raised.daff-raised-button-theme-variant($white);
152
- }
153
-
154
- &.daff-theme {
155
- @include raised.daff-raised-button-theme-variant($base);
156
- }
157
-
158
- &.daff-theme-contrast {
159
- @include raised.daff-raised-button-theme-variant($base-contrast);
160
- }
161
-
162
- &[disabled],
163
- &.daff-button--disabled {
164
- @include raised.daff-raised-button-theme-variant(
165
- theming.daff-illuminate($base, $neutral, 3)
166
- );
167
- color: theming.daff-illuminate($base, $neutral, 5);
168
-
169
- &:after {
170
- box-shadow: none;
171
- }
172
- }
173
-
174
- &.daff-warn {
175
- @include raised.daff-raised-button-theme-variant(
176
- theming.daff-color(theming.$daff-bronze, 60)
177
- );
178
- }
179
-
180
- &.daff-danger {
181
- @include raised.daff-raised-button-theme-variant(
182
- theming.daff-color(theming.$daff-red, 60)
183
- );
184
- }
185
-
186
- &.daff-success {
187
- @include raised.daff-raised-button-theme-variant(
188
- theming.daff-color(theming.$daff-green, 60)
189
- );
190
- }
191
- }
192
-
193
- .daff-icon-button {
194
- @include icon.daff-icon-button-theme-variant(
195
- theming.daff-illuminate($base, $neutral, 5),
196
- theming.daff-illuminate($base, $neutral, 6),
197
- theming.daff-illuminate($base, $neutral, 7)
198
- );
199
-
200
- &.daff-primary {
201
- @include icon.daff-icon-button-theme-variant(
202
- theming.daff-color($primary),
203
- theming.daff-color($primary, 70),
204
- theming.daff-color($primary, 80)
205
- );
206
- }
207
-
208
- &.daff-secondary {
209
- @include icon.daff-icon-button-theme-variant(
210
- theming.daff-color($secondary),
211
- theming.daff-color($secondary, 70),
212
- theming.daff-color($secondary, 80)
213
- );
214
- }
215
-
216
- &.daff-tertiary {
217
- @include icon.daff-icon-button-theme-variant(
218
- theming.daff-color($tertiary),
219
- theming.daff-color($tertiary, 70),
220
- theming.daff-color($tertiary, 80)
221
- );
222
- }
223
-
224
- &.daff-black {
225
- @include icon.daff-icon-button-theme-variant(
226
- $black,
227
- theming.daff-color($neutral, 100),
228
- theming.daff-color($neutral, 80)
229
- );
230
- }
231
-
232
- &.daff-white {
233
- @include icon.daff-icon-button-theme-variant(
234
- $white,
235
- theming.daff-color($neutral, 20),
236
- theming.daff-color($neutral, 30)
237
- );
238
- }
239
-
240
- &.daff-theme {
241
- @include icon.daff-icon-button-theme-variant(
242
- $base,
243
- theming.daff-illuminate($base, $neutral, 1),
244
- theming.daff-illuminate($base, $neutral, 2)
245
- );
246
- }
247
-
248
- &.daff-theme-contrast {
249
- @include icon.daff-icon-button-theme-variant(
250
- $base-contrast,
251
- theming.daff-illuminate($base-contrast, $neutral, 1),
252
- theming.daff-illuminate($base-contrast, $neutral, 2)
253
- );
254
- }
255
-
256
- &[disabled],
257
- &.daff-button--disabled {
258
- @include icon.daff-icon-button-theme-variant(
259
- theming.daff-illuminate($base, $neutral, 4),
260
- theming.daff-illuminate($base, $neutral, 4),
261
- theming.daff-illuminate($base, $neutral, 4)
262
- );
263
-
264
- &:hover {
265
- color: theming.daff-illuminate($base, $neutral, 4);
266
- }
267
- }
268
-
269
- &.daff-warn {
270
- @include icon.daff-icon-button-theme-variant(
271
- theming.daff-color(theming.$daff-bronze, 60),
272
- theming.daff-color(theming.$daff-bronze, 70),
273
- theming.daff-color(theming.$daff-bronze, 80)
274
- );
275
- }
276
-
277
- &.daff-danger {
278
- @include icon.daff-icon-button-theme-variant(
279
- theming.daff-color(theming.$daff-red, 60),
280
- theming.daff-color(theming.$daff-red, 70),
281
- theming.daff-color(theming.$daff-red, 80)
282
- );
283
- }
284
-
285
- &.daff-success {
286
- @include icon.daff-icon-button-theme-variant(
287
- theming.daff-color(theming.$daff-green, 60),
288
- theming.daff-color(theming.$daff-green, 70),
289
- theming.daff-color(theming.$daff-green, 80)
290
- );
291
- }
292
- }
293
-
294
- .daff-stroked-button {
295
- background: transparent;
296
- border: 1px solid theming.daff-illuminate($base, $neutral, 5);
297
- color: currentColor;
298
-
299
- &:after {
300
- background: theming.daff-illuminate($base, $neutral, 2);
301
- }
302
-
303
- &:hover {
304
- border: 1px solid theming.daff-illuminate($base, $neutral, 2);
305
- color: theming.daff-text-contrast(
306
- theming.daff-illuminate($base, $neutral, 2)
307
- );
308
- }
309
-
310
- &:active {
311
- border: 1px solid theming.daff-illuminate($base, $neutral, 3);
312
- color: theming.daff-text-contrast(
313
- theming.daff-illuminate($base, $neutral, 3)
314
- );
315
-
316
- &:after {
317
- background: theming.daff-illuminate($base, $neutral, 3);
318
- }
319
- }
320
-
321
- &.daff-primary {
322
- @include stroked.daff-stroked-button-theme-variant(
323
- theming.daff-color($primary),
324
- theming.daff-color($primary, 70)
325
- );
326
- }
327
-
328
- &.daff-secondary {
329
- @include stroked.daff-stroked-button-theme-variant(
330
- theming.daff-color($secondary),
331
- theming.daff-color($secondary, 70)
332
- );
333
- }
334
-
335
- &.daff-tertiary {
336
- @include stroked.daff-stroked-button-theme-variant(
337
- theming.daff-color($tertiary),
338
- theming.daff-color($tertiary, 70)
339
- );
340
- }
341
-
342
- &.daff-black {
343
- @include stroked.daff-stroked-button-theme-variant(
344
- $black,
345
- theming.daff-color($neutral, 100)
346
- );
347
- }
348
-
349
- &.daff-white {
350
- @include stroked.daff-stroked-button-theme-variant(
351
- $white,
352
- theming.daff-color($neutral, 20)
353
- );
354
- }
355
-
356
- &.daff-theme {
357
- @include stroked.daff-stroked-button-theme-variant(
358
- $base,
359
- theming.daff-illuminate($base, $neutral, 2)
360
- );
361
- }
362
-
363
- &.daff-theme-contrast {
364
- @include stroked.daff-stroked-button-theme-variant(
365
- $base-contrast,
366
- theming.daff-illuminate($base-contrast, $neutral, 2)
367
- );
368
- }
369
-
370
- &[disabled],
371
- &.daff-button--disabled {
372
- background-color: transparent;
373
- border-color: theming.daff-illuminate($base, $neutral, 3);
374
- color: theming.daff-illuminate($base, $neutral, 5);
375
-
376
- &:hover {
377
- color: theming.daff-illuminate($base, $neutral, 5);
378
-
379
- &:after {
380
- background-color: transparent;
381
- opacity: 0;
382
- }
383
- }
384
- }
385
-
386
- &.daff-warn {
387
- @include stroked.daff-stroked-button-theme-variant(
388
- theming.daff-color(theming.$daff-bronze, 60),
389
- theming.daff-color(theming.$daff-bronze, 70)
390
- );
391
- }
392
-
393
- &.daff-danger {
394
- @include stroked.daff-stroked-button-theme-variant(
395
- theming.daff-color(theming.$daff-red, 60),
396
- theming.daff-color(theming.$daff-red, 70)
397
- );
398
- }
399
-
400
- &.daff-success {
401
- @include stroked.daff-stroked-button-theme-variant(
402
- theming.daff-color(theming.$daff-green, 60),
403
- theming.daff-color(theming.$daff-green, 70)
404
- );
405
- }
406
- }
407
-
408
- .daff-flat-button {
409
- color: currentColor;
410
-
411
- &:after {
412
- background-color: theming.daff-illuminate($base, $neutral, 2);
413
- }
414
-
415
- &:active {
416
- &:after {
417
- background-color: theming.daff-illuminate($base, $neutral, 3);
418
- }
419
- }
420
-
421
- &:hover,
422
- &:active {
423
- color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 2));
424
- }
425
-
426
- &.daff-primary {
427
- @include flat.daff-flat-button-theme-variant(
428
- theming.daff-color($primary),
429
- theming.daff-color($primary, 70)
430
- );
431
- }
432
-
433
- &.daff-secondary {
434
- @include flat.daff-flat-button-theme-variant(
435
- theming.daff-color($secondary),
436
- theming.daff-color($secondary, 70)
437
- );
438
- }
439
-
440
- &.daff-tertiary {
441
- @include flat.daff-flat-button-theme-variant(
442
- theming.daff-color($tertiary),
443
- theming.daff-color($tertiary, 70)
444
- );
445
- }
446
-
447
- &.daff-black {
448
- @include flat.daff-flat-button-theme-variant(
449
- $black,
450
- theming.daff-color($neutral, 100)
451
- );
452
- }
453
-
454
- &.daff-white {
455
- @include flat.daff-flat-button-theme-variant(
456
- $white,
457
- theming.daff-color($neutral, 20)
458
- );
459
- }
460
-
461
- &.daff-theme {
462
- @include flat.daff-flat-button-theme-variant(
463
- $base,
464
- theming.daff-illuminate($base, $neutral, 2)
465
- );
466
- }
467
-
468
- &.daff-theme-contrast {
469
- @include flat.daff-flat-button-theme-variant(
470
- $base-contrast,
471
- theming.daff-illuminate($base-contrast, $neutral, 2)
472
- );
473
- }
474
-
475
- &[disabled],
476
- &.daff-button--disabled {
477
- color: theming.daff-illuminate($base, $neutral, 5);
478
-
479
- &:hover,
480
- &:focus,
481
- &:active {
482
- &:after {
483
- background: transparent;
484
- }
485
- }
486
- }
487
-
488
- &.daff-warn {
489
- @include flat.daff-flat-button-theme-variant(
490
- theming.daff-color(theming.$daff-bronze, 60),
491
- theming.daff-color(theming.$daff-bronze, 70)
492
- );
493
- }
494
-
495
- &.daff-danger {
496
- @include flat.daff-flat-button-theme-variant(
497
- theming.daff-color(theming.$daff-red, 60),
498
- theming.daff-color(theming.$daff-red, 70)
499
- );
500
- }
501
-
502
- &.daff-success {
503
- @include flat.daff-flat-button-theme-variant(
504
- theming.daff-color(theming.$daff-green, 60),
505
- theming.daff-color(theming.$daff-green, 70)
506
- );
507
- }
508
- }
509
-
510
- .daff-underline-button {
511
- @include underline.daff-underline-button-theme-variant(
512
- theming.daff-illuminate($base, $neutral, 7)
513
- );
514
-
515
- &.daff-primary {
516
- @include underline.daff-underline-button-theme-variant(
517
- theming.daff-color($primary)
518
- );
519
- }
520
-
521
- &.daff-secondary {
522
- @include underline.daff-underline-button-theme-variant(
523
- theming.daff-color($secondary)
524
- );
525
- }
526
-
527
- &.daff-tertiary {
528
- @include underline.daff-underline-button-theme-variant(
529
- theming.daff-color($tertiary)
530
- );
531
- }
532
-
533
- &.daff-black {
534
- @include underline.daff-underline-button-theme-variant($black);
535
- }
536
-
537
- &.daff-white {
538
- @include underline.daff-underline-button-theme-variant($white);
539
- }
540
-
541
- &.daff-theme {
542
- @include underline.daff-underline-button-theme-variant($base);
543
- }
544
-
545
- &.daff-theme-contrast {
546
- @include underline.daff-underline-button-theme-variant($base-contrast);
547
- }
548
-
549
- &[disabled],
550
- &.daff-button--disabled {
551
- @include underline.daff-underline-button-theme-variant(
552
- theming.daff-illuminate($base, $neutral, 4)
553
- );
554
- }
555
-
556
- &.daff-warn {
557
- @include underline.daff-underline-button-theme-variant(
558
- theming.daff-color(theming.$daff-bronze, 60)
559
- );
560
- }
561
-
562
- &.daff-danger {
563
- @include underline.daff-underline-button-theme-variant(
564
- theming.daff-color(theming.$daff-red, 60)
565
- );
566
- }
567
-
568
- &.daff-success {
569
- @include underline.daff-underline-button-theme-variant(
570
- theming.daff-color(theming.$daff-green, 60)
571
- );
572
- }
573
- }
574
- }