@daffodil/design 0.81.1 → 0.83.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 (258) hide show
  1. package/accordion/README.md +44 -29
  2. package/accordion/accordion/accordion/accordion.component.d.ts +3 -0
  3. package/accordion/accordion/accordion-item/accordion-item.component.d.ts +23 -12
  4. package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
  5. package/accordion/accordion.d.ts +5 -0
  6. package/accordion/examples/disabled-accordion/disabled-accordion.component.d.ts +5 -0
  7. package/accordion/examples/initially-expanded-accordion/initially-expanded-accordion.component.d.ts +5 -0
  8. package/accordion/examples/public_api.d.ts +2 -0
  9. package/accordion/src/accordion-theme.scss +28 -6
  10. package/article/README.md +4 -3
  11. package/article/article.d.ts +3 -0
  12. package/article/src/article-theme.scss +128 -51
  13. package/breadcrumb/README.md +38 -28
  14. package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
  15. package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
  16. package/breadcrumb/breadcrumb.d.ts +3 -0
  17. package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
  18. package/breadcrumb/public_api.d.ts +2 -2
  19. package/button/README.md +43 -23
  20. package/button/button/basic/button.component.d.ts +5 -1
  21. package/button/button/button-base.directive.d.ts +11 -3
  22. package/button/button/button-sizable.directive.d.ts +1 -1
  23. package/button/button/raised/raised.component.d.ts +2 -0
  24. package/button/button/stroked/stroked.component.d.ts +5 -1
  25. package/button/button.d.ts +4 -2
  26. package/button/button.module.d.ts +1 -2
  27. package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
  28. package/button/examples/examples.d.ts +2 -1
  29. package/button/examples/public_api.d.ts +1 -0
  30. package/button/public_api.d.ts +0 -1
  31. package/button/src/button/basic/button-theme.scss +185 -80
  32. package/button/src/button/button-base.scss +41 -16
  33. package/button/src/button/flat/flat-theme.scss +144 -85
  34. package/button/src/button/icon/icon-theme.scss +183 -79
  35. package/button/src/button/raised/raised-theme.scss +2 -7
  36. package/button/src/button/stroked/stroked-theme.scss +128 -94
  37. package/button/src/button/underline/underline-theme.scss +112 -44
  38. package/callout/README.md +4 -3
  39. package/callout/callout.d.ts +3 -0
  40. package/card/README.md +6 -3
  41. package/card/card/basic/basic.component.d.ts +7 -0
  42. package/card/card/raised/raised.component.d.ts +7 -0
  43. package/card/card/stroked/stroked.component.d.ts +7 -0
  44. package/card/card-base.directive.d.ts +25 -0
  45. package/card/card.d.ts +18 -1
  46. package/card/card.module.d.ts +10 -8
  47. package/card/examples/card-theming/card-theming.component.d.ts +2 -1
  48. package/card/examples/public_api.d.ts +1 -1
  49. package/card/public_api.d.ts +6 -1
  50. package/card/src/card/raised/raised-theme.scss +30 -0
  51. package/card/src/card/stroked/stroked-theme.scss +135 -0
  52. package/card/src/card-base-theme.scss +197 -0
  53. package/card/src/card-base.scss +134 -0
  54. package/container/README.md +5 -3
  55. package/container/container.d.ts +3 -0
  56. package/core/colorable/colorable.d.ts +20 -14
  57. package/core/colorable/colorable.directive.d.ts +9 -6
  58. package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
  59. package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
  60. package/fesm2022/daffodil-design-accordion.mjs +56 -29
  61. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  62. package/fesm2022/daffodil-design-article-examples.mjs +30 -30
  63. package/fesm2022/daffodil-design-article.mjs +14 -11
  64. package/fesm2022/daffodil-design-article.mjs.map +1 -1
  65. package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
  66. package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
  67. package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
  68. package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
  69. package/fesm2022/daffodil-design-button-examples.mjs +55 -33
  70. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  71. package/fesm2022/daffodil-design-button.mjs +79 -69
  72. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  73. package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
  74. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  75. package/fesm2022/daffodil-design-callout.mjs +25 -22
  76. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  77. package/fesm2022/daffodil-design-card-examples.mjs +35 -31
  78. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  79. package/fesm2022/daffodil-design-card.mjs +140 -86
  80. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  81. package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
  82. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  83. package/fesm2022/daffodil-design-container-examples.mjs +3 -3
  84. package/fesm2022/daffodil-design-container.mjs +10 -7
  85. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  86. package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
  87. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  88. package/fesm2022/daffodil-design-hero.mjs +25 -22
  89. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  90. package/fesm2022/daffodil-design-image-examples.mjs +9 -9
  91. package/fesm2022/daffodil-design-image.mjs +36 -19
  92. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  93. package/fesm2022/daffodil-design-input-examples.mjs +12 -12
  94. package/fesm2022/daffodil-design-link-set.mjs +19 -16
  95. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  96. package/fesm2022/daffodil-design-list-examples.mjs +12 -12
  97. package/fesm2022/daffodil-design-list.mjs +13 -10
  98. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  99. package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
  100. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  101. package/fesm2022/daffodil-design-loading-icon.mjs +11 -8
  102. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  103. package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
  104. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  105. package/fesm2022/daffodil-design-media-gallery.mjs +204 -250
  106. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  107. package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
  108. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  109. package/fesm2022/daffodil-design-menu.mjs +16 -16
  110. package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
  111. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  112. package/fesm2022/daffodil-design-modal.mjs +28 -25
  113. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  114. package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
  115. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  116. package/fesm2022/daffodil-design-navbar.mjs +10 -7
  117. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  118. package/fesm2022/daffodil-design-notification-examples.mjs +17 -16
  119. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  120. package/fesm2022/daffodil-design-notification.mjs +23 -20
  121. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  122. package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
  123. package/fesm2022/daffodil-design-paginator.mjs +13 -7
  124. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  125. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
  126. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  127. package/fesm2022/daffodil-design-progress-bar.mjs +13 -13
  128. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  129. package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
  130. package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
  131. package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
  132. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  133. package/fesm2022/daffodil-design-sidebar.mjs +150 -61
  134. package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
  135. package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
  136. package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
  137. package/fesm2022/daffodil-design-switch.mjs +38 -10
  138. package/fesm2022/daffodil-design-switch.mjs.map +1 -1
  139. package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
  140. package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
  141. package/fesm2022/daffodil-design-tabs.mjs +67 -35
  142. package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
  143. package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
  144. package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
  145. package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
  146. package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
  147. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  148. package/fesm2022/daffodil-design-toast.mjs +296 -239
  149. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  150. package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
  151. package/fesm2022/daffodil-design-tree.mjs +15 -12
  152. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  153. package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
  154. package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
  155. package/fesm2022/daffodil-design.mjs +167 -155
  156. package/fesm2022/daffodil-design.mjs.map +1 -1
  157. package/hero/README.md +4 -3
  158. package/hero/hero.d.ts +3 -0
  159. package/image/README.md +4 -3
  160. package/image/image/image.component.d.ts +22 -1
  161. package/image/image.d.ts +3 -0
  162. package/link-set/README.md +4 -3
  163. package/link-set/link-set.d.ts +3 -0
  164. package/list/README.md +4 -3
  165. package/list/list.d.ts +3 -0
  166. package/loading-icon/README.md +10 -7
  167. package/loading-icon/loading-icon.d.ts +3 -0
  168. package/loading-icon/src/loading-icon-theme.scss +66 -38
  169. package/media-gallery/README.md +19 -10
  170. package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
  171. package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
  172. package/media-gallery/examples/public_api.d.ts +2 -0
  173. package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
  174. package/media-gallery/media-gallery/media-gallery.component.d.ts +89 -11
  175. package/media-gallery/media-gallery.d.ts +4 -2
  176. package/media-gallery/media-gallery.module.d.ts +1 -2
  177. package/media-gallery/public_api.d.ts +3 -4
  178. package/media-gallery/src/media-gallery-theme.scss +30 -4
  179. package/media-gallery/thumbnail/thumbnail.directive.d.ts +45 -22
  180. package/menu/README.md +1 -2
  181. package/modal/README.md +3 -2
  182. package/modal/modal.d.ts +3 -0
  183. package/navbar/README.md +3 -2
  184. package/navbar/navbar.d.ts +3 -0
  185. package/notification/README.md +5 -4
  186. package/notification/notification.d.ts +3 -0
  187. package/notification/src/notification-theme.scss +62 -23
  188. package/package.json +1 -1
  189. package/paginator/README.md +3 -2
  190. package/paginator/paginator/paginator.component.d.ts +3 -0
  191. package/paginator/paginator.d.ts +3 -0
  192. package/progress-bar/README.md +5 -6
  193. package/progress-bar/progress-bar.component.d.ts +0 -3
  194. package/progress-bar/progress-bar.d.ts +3 -0
  195. package/progress-bar/src/progress-bar-theme.scss +17 -8
  196. package/scss/theme.scss +36 -17
  197. package/scss/theming/_configure-theme.scss +2 -0
  198. package/scss/theming/_index.scss +1 -0
  199. package/scss/theming/_light-dark.scss +45 -0
  200. package/sidebar/README.md +20 -21
  201. package/sidebar/helper/sidebar-mode.d.ts +9 -15
  202. package/sidebar/public_api.d.ts +10 -11
  203. package/sidebar/sidebar/sidebar.component.d.ts +22 -7
  204. package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
  205. package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
  206. package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
  207. package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
  208. package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
  209. package/sidebar/sidebar.d.ts +4 -2
  210. package/sidebar/sidebar.module.d.ts +1 -2
  211. package/switch/README.md +3 -2
  212. package/switch/src/switch-theme.scss +29 -10
  213. package/switch/switch/switch.component.d.ts +31 -6
  214. package/switch/switch.d.ts +3 -0
  215. package/tabs/README.md +33 -3
  216. package/tabs/src/tabs-theme.scss +31 -13
  217. package/tabs/tabs/tab/tab.component.d.ts +1 -1
  218. package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
  219. package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
  220. package/tabs/tabs/tabs.component.d.ts +21 -4
  221. package/tabs/tabs.d.ts +8 -2
  222. package/text-snippet/README.md +19 -1
  223. package/toast/README.md +21 -151
  224. package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
  225. package/toast/examples/public_api.d.ts +2 -1
  226. package/toast/interfaces/toast-action.d.ts +22 -11
  227. package/toast/interfaces/toast-action.type.d.ts +10 -0
  228. package/toast/interfaces/toast.d.ts +11 -5
  229. package/toast/options/daff-toast-options.d.ts +2 -1
  230. package/toast/public_api.d.ts +2 -6
  231. package/toast/service/position.service.d.ts +9 -1
  232. package/toast/service/toast.service.d.ts +63 -0
  233. package/toast/src/toast-theme.scss +80 -33
  234. package/toast/toast/toast-config.d.ts +24 -1
  235. package/toast/toast/toast-provider.d.ts +16 -0
  236. package/toast/toast/toast.component.d.ts +20 -1
  237. package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
  238. package/toast/toast-message/toast-message.directive.d.ts +3 -0
  239. package/toast/toast-title/toast-title.directive.d.ts +3 -0
  240. package/tree/README.md +6 -10
  241. package/tree/src/tree-theme.scss +39 -13
  242. package/tree/tree.d.ts +3 -0
  243. package/youtube-player/index.d.ts +1 -0
  244. package/youtube-player/public_api.d.ts +3 -0
  245. package/youtube-player/safe-url.pipe.d.ts +10 -0
  246. package/youtube-player/youtube-player.component.d.ts +23 -0
  247. package/youtube-player/youtube-player.d.ts +6 -0
  248. package/card/card/card.component.d.ts +0 -48
  249. package/card/src/card-theme-variants/basic-card.scss +0 -6
  250. package/card/src/card-theme-variants/linkable-card.scss +0 -16
  251. package/card/src/card-theme-variants/stroked-card.scss +0 -3
  252. package/card/src/card-theme.scss +0 -170
  253. package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
  254. package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
  255. package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
  256. package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
  257. package/scss/theming/prebuilt/internal-theme.scss +0 -13
  258. package/toast/toast.module.d.ts +0 -19
@@ -1,8 +1,19 @@
1
1
  @use '../../../scss/interactions';
2
2
  @use '../../../scss/typography' as t;
3
3
 
4
+ @mixin daff-button-elevated {
5
+ &.elevated { /* stylelint-disable-line selector-class-pattern */
6
+ box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5), 0 4px 8px 0 rgba(0, 0, 0, 0.05);
7
+
8
+ &:hover { /* stylelint-disable-line selector-class-pattern */
9
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
10
+ }
11
+ }
12
+ }
13
+
4
14
  @mixin daff-button-base {
5
15
  @include interactions.clickable();
16
+ @include t.text-truncate();
6
17
  display: inline-flex;
7
18
  justify-content: center;
8
19
  align-items: center;
@@ -26,7 +37,9 @@
26
37
  }
27
38
 
28
39
  .daff-button__loading {
29
- max-width: 1.5rem;
40
+ > * {
41
+ width: 100%;
42
+ }
30
43
  }
31
44
 
32
45
  .daff-button__content {
@@ -35,32 +48,36 @@
35
48
  }
36
49
 
37
50
  @mixin daff-button-background($border-radius) {
38
- &::after {
39
- content: '';
40
- border-radius: $border-radius;
41
- position: absolute;
42
- width: 100%;
43
- height: 100%;
44
- opacity: 0;
45
- transition: opacity 300ms;
46
- }
47
-
48
- &:hover,
49
- &:active {
51
+ &:not(&[disabled], &.disabled) {
50
52
  &::after {
51
- opacity: 1;
53
+ content: '';
54
+ border-radius: $border-radius;
55
+ position: absolute;
56
+ width: 100%;
57
+ height: 100%;
58
+ opacity: 0;
59
+ transition: opacity 300ms;
60
+ }
61
+
62
+ &:hover,
63
+ &:active {
64
+ &::after {
65
+ opacity: 1;
66
+ }
52
67
  }
53
68
  }
54
69
  }
55
70
 
56
71
  @mixin daff-button-sizes {
57
- min-width: 96px;
58
-
59
72
  &.daff-sm {
60
73
  font-size: t.$small-font-size;
61
74
  line-height: 2rem;
62
75
  height: 2rem;
63
76
  padding: 0 1rem;
77
+
78
+ .daff-button__loading {
79
+ width: 1rem;
80
+ }
64
81
  }
65
82
 
66
83
  &.daff-md {
@@ -68,6 +85,10 @@
68
85
  line-height: 3rem;
69
86
  height: 3rem;
70
87
  padding: 0 1.5rem;
88
+
89
+ .daff-button__loading {
90
+ width: 1.5rem;
91
+ }
71
92
  }
72
93
 
73
94
  &.daff-lg {
@@ -75,5 +96,9 @@
75
96
  line-height: 3.5rem;
76
97
  height: 3.5rem;
77
98
  padding: 0 1.5rem;
99
+
100
+ .daff-button__loading {
101
+ width: 2rem;
102
+ }
78
103
  }
79
104
  }
@@ -2,22 +2,16 @@
2
2
  @use '../../../../scss/theming';
3
3
  @use '../../../../scss/core';
4
4
 
5
- @mixin daff-flat-button-theme-variant($base-color, $active-color) {
5
+ @mixin daff-flat-button-theme-variant($base-color) {
6
6
  color: $base-color;
7
7
 
8
8
  &::after {
9
- background-color: $base-color;
10
- }
11
-
12
- &:hover {
13
- color: theming.daff-text-contrast($base-color);
9
+ background-color: rgba($base-color, 0.1);
14
10
  }
15
11
 
16
12
  &:active {
17
- color: theming.daff-text-contrast($active-color);
18
-
19
13
  &::after {
20
- background-color: $active-color;
14
+ background-color: rgba($base-color, 0.15);
21
15
  }
22
16
  }
23
17
  }
@@ -35,108 +29,173 @@
35
29
  $white: core.daff-map-get($theme, 'core', 'white');
36
30
  $black: core.daff-map-get($theme, 'core', 'black');
37
31
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
32
+ $type: core.daff-map-get($theme, 'core', 'type');
38
33
 
39
34
  .daff-flat-button {
40
- color: currentColor;
35
+ @include theming.light($type) {
36
+ @include daff-flat-button-theme-variant(
37
+ $base-contrast,
38
+ );
41
39
 
42
- &::after {
43
- background-color: theming.daff-illuminate($base, $neutral, 2);
44
- }
40
+ &.daff-primary {
41
+ @include daff-flat-button-theme-variant(
42
+ theming.daff-color($primary),
43
+ );
44
+ }
45
45
 
46
- &:active {
47
- &::after {
48
- background-color: theming.daff-illuminate($base, $neutral, 3);
46
+ &.daff-secondary {
47
+ @include daff-flat-button-theme-variant(
48
+ theming.daff-color($secondary),
49
+ );
49
50
  }
50
- }
51
51
 
52
- &:hover,
53
- &:active {
54
- color: theming.daff-text-contrast(
55
- theming.daff-illuminate($base, $neutral, 2)
56
- );
57
- }
52
+ &.daff-tertiary {
53
+ @include daff-flat-button-theme-variant(
54
+ theming.daff-color($tertiary)
55
+ );
56
+ }
58
57
 
59
- &.daff-primary {
60
- @include daff-flat-button-theme-variant(
61
- theming.daff-color($primary),
62
- theming.daff-color($primary, 70)
63
- );
64
- }
58
+ &.daff-black {
59
+ @include daff-flat-button-theme-variant(
60
+ $black,
61
+ );
62
+ }
65
63
 
66
- &.daff-secondary {
67
- @include daff-flat-button-theme-variant(
68
- theming.daff-color($secondary),
69
- theming.daff-color($secondary, 70)
70
- );
71
- }
64
+ &.daff-white {
65
+ @include daff-flat-button-theme-variant(
66
+ $white,
67
+ );
68
+ }
72
69
 
73
- &.daff-tertiary {
74
- @include daff-flat-button-theme-variant(
75
- theming.daff-color($tertiary),
76
- theming.daff-color($tertiary, 70)
77
- );
78
- }
70
+ &.daff-theme {
71
+ @include daff-flat-button-theme-variant(
72
+ $base,
73
+ );
74
+ }
79
75
 
80
- &.daff-black {
81
- @include daff-flat-button-theme-variant(
82
- $black,
83
- theming.daff-color($neutral, 100)
84
- );
85
- }
76
+ &.daff-theme-contrast {
77
+ @include daff-flat-button-theme-variant(
78
+ $base-contrast,
79
+ );
80
+ }
86
81
 
87
- &.daff-white {
88
- @include daff-flat-button-theme-variant(
89
- $white,
90
- theming.daff-color($neutral, 20)
91
- );
92
- }
82
+ &[disabled],
83
+ &.disabled {
84
+ color: theming.daff-color($neutral, 50);
93
85
 
94
- &.daff-theme {
95
- @include daff-flat-button-theme-variant(
96
- $base,
97
- theming.daff-illuminate($base, $neutral, 2)
98
- );
86
+ &::after {
87
+ background: transparent;
88
+ }
89
+
90
+ &:hover,
91
+ &:focus,
92
+ &:active {
93
+ &::after {
94
+ background: transparent;
95
+ }
96
+ }
97
+ }
98
+
99
+ &.daff-warn {
100
+ @include daff-flat-button-theme-variant(
101
+ theming.daff-color($warn)
102
+ );
103
+ }
104
+
105
+ &.daff-critical {
106
+ @include daff-flat-button-theme-variant(
107
+ theming.daff-color($critical)
108
+ );
109
+ }
110
+
111
+ &.daff-success {
112
+ @include daff-flat-button-theme-variant(
113
+ theming.daff-color($success)
114
+ );
115
+ }
99
116
  }
100
117
 
101
- &.daff-theme-contrast {
118
+ @include theming.dark($type) {
102
119
  @include daff-flat-button-theme-variant(
103
120
  $base-contrast,
104
- theming.daff-illuminate($base-contrast, $neutral, 2)
105
121
  );
106
- }
107
122
 
108
- &[disabled],
109
- &.disabled {
110
- color: theming.daff-illuminate($base, $neutral, 5);
123
+ &.daff-primary {
124
+ @include daff-flat-button-theme-variant(
125
+ theming.daff-color($primary, 40),
126
+ );
127
+ }
128
+
129
+ &.daff-secondary {
130
+ @include daff-flat-button-theme-variant(
131
+ theming.daff-color($secondary, 40),
132
+ );
133
+ }
134
+
135
+ &.daff-tertiary {
136
+ @include daff-flat-button-theme-variant(
137
+ theming.daff-color($tertiary, 40)
138
+ );
139
+ }
140
+
141
+ &.daff-black {
142
+ @include daff-flat-button-theme-variant(
143
+ $black,
144
+ );
145
+ }
146
+
147
+ &.daff-white {
148
+ @include daff-flat-button-theme-variant(
149
+ $white,
150
+ );
151
+ }
152
+
153
+ &.daff-theme {
154
+ @include daff-flat-button-theme-variant(
155
+ $base,
156
+ );
157
+ }
158
+
159
+ &.daff-theme-contrast {
160
+ @include daff-flat-button-theme-variant(
161
+ $base-contrast,
162
+ );
163
+ }
164
+
165
+ &[disabled],
166
+ &.disabled {
167
+ color: theming.daff-color($neutral, 50);
111
168
 
112
- &:hover,
113
- &:focus,
114
- &:active {
115
169
  &::after {
116
170
  background: transparent;
117
171
  }
172
+
173
+ &:hover,
174
+ &:focus,
175
+ &:active {
176
+ &::after {
177
+ background: transparent;
178
+ }
179
+ }
118
180
  }
119
- }
120
181
 
121
- &.daff-warn {
122
- @include daff-flat-button-theme-variant(
123
- theming.daff-color($warn),
124
- theming.daff-color($warn, 70)
125
- );
126
- }
182
+ &.daff-warn {
183
+ @include daff-flat-button-theme-variant(
184
+ theming.daff-color($warn, 40)
185
+ );
186
+ }
127
187
 
128
- &.daff-critical {
129
- @include daff-flat-button-theme-variant(
130
- theming.daff-color($critical),
131
- theming.daff-color($critical, 70)
132
- );
133
- }
188
+ &.daff-critical {
189
+ @include daff-flat-button-theme-variant(
190
+ theming.daff-color($critical, 40)
191
+ );
192
+ }
134
193
 
135
- &.daff-success {
136
- @include daff-flat-button-theme-variant(
137
- theming.daff-color($success),
138
- theming.daff-color($success, 70)
139
- );
194
+ &.daff-success {
195
+ @include daff-flat-button-theme-variant(
196
+ theming.daff-color($success, 40)
197
+ );
198
+ }
140
199
  }
141
200
  }
142
201
  }
@@ -36,105 +36,209 @@
36
36
  $white: core.daff-map-get($theme, 'core', 'white');
37
37
  $black: core.daff-map-get($theme, 'core', 'black');
38
38
  $neutral: core.daff-map-get($theme, 'core', 'neutral');
39
+ $type: core.daff-map-get($theme, 'core', 'type');
39
40
 
40
41
  .daff-icon-button {
41
- @include daff-icon-button-theme-variant(
42
- theming.daff-illuminate($base, $neutral, 5),
43
- theming.daff-illuminate($base, $neutral, 6),
44
- theming.daff-illuminate($base, $neutral, 7)
45
- );
46
-
47
- &.daff-primary {
42
+ @include theming.light($type) {
48
43
  @include daff-icon-button-theme-variant(
49
- theming.daff-color($primary),
50
- theming.daff-color($primary, 70),
51
- theming.daff-color($primary, 80)
44
+ theming.daff-color($neutral, 50),
45
+ theming.daff-color($neutral, 60),
46
+ theming.daff-color($neutral, 70)
52
47
  );
53
- }
54
48
 
55
- &.daff-secondary {
56
- @include daff-icon-button-theme-variant(
57
- theming.daff-color($secondary),
58
- theming.daff-color($secondary, 70),
59
- theming.daff-color($secondary, 80)
60
- );
61
- }
49
+ &.daff-primary {
50
+ @include daff-icon-button-theme-variant(
51
+ theming.daff-color($primary),
52
+ theming.daff-color($primary, 70),
53
+ theming.daff-color($primary, 80)
54
+ );
55
+ }
62
56
 
63
- &.daff-tertiary {
64
- @include daff-icon-button-theme-variant(
65
- theming.daff-color($tertiary),
66
- theming.daff-color($tertiary, 70),
67
- theming.daff-color($tertiary, 80)
68
- );
69
- }
57
+ &.daff-secondary {
58
+ @include daff-icon-button-theme-variant(
59
+ theming.daff-color($secondary),
60
+ theming.daff-color($secondary, 70),
61
+ theming.daff-color($secondary, 80)
62
+ );
63
+ }
70
64
 
71
- &.daff-black {
72
- @include daff-icon-button-theme-variant(
73
- $black,
74
- theming.daff-color($neutral, 100),
75
- theming.daff-color($neutral, 80)
76
- );
65
+ &.daff-tertiary {
66
+ @include daff-icon-button-theme-variant(
67
+ theming.daff-color($tertiary),
68
+ theming.daff-color($tertiary, 70),
69
+ theming.daff-color($tertiary, 80)
70
+ );
71
+ }
72
+
73
+ &.daff-black {
74
+ @include daff-icon-button-theme-variant(
75
+ $black,
76
+ theming.daff-color($neutral, 90),
77
+ theming.daff-color($neutral, 80)
78
+ );
79
+ }
80
+
81
+ &.daff-white {
82
+ @include daff-icon-button-theme-variant(
83
+ $white,
84
+ theming.daff-color($neutral, 20),
85
+ theming.daff-color($neutral, 30)
86
+ );
87
+ }
88
+
89
+ &.daff-theme {
90
+ @include daff-icon-button-theme-variant(
91
+ $base,
92
+ theming.daff-color($neutral, 10),
93
+ theming.daff-color($neutral, 20)
94
+ );
95
+ }
96
+
97
+ &.daff-theme-contrast {
98
+ @include daff-icon-button-theme-variant(
99
+ $base-contrast,
100
+ theming.daff-color($neutral, 90),
101
+ theming.daff-color($neutral, 80)
102
+ );
103
+ }
104
+
105
+ &[disabled],
106
+ &.disabled {
107
+ @include daff-icon-button-theme-variant(
108
+ theming.daff-color($neutral, 40),
109
+ theming.daff-color($neutral, 40),
110
+ theming.daff-color($neutral, 40)
111
+ );
112
+
113
+ &:hover {
114
+ color: theming.daff-color($neutral, 40);
115
+ }
116
+ }
117
+
118
+ &.daff-warn {
119
+ @include daff-icon-button-theme-variant(
120
+ theming.daff-color($warn),
121
+ theming.daff-color($warn, 70),
122
+ theming.daff-color($warn, 80)
123
+ );
124
+ }
125
+
126
+ &.daff-critical {
127
+ @include daff-icon-button-theme-variant(
128
+ theming.daff-color($critical),
129
+ theming.daff-color($critical, 70),
130
+ theming.daff-color($critical, 80)
131
+ );
132
+ }
133
+
134
+ &.daff-success {
135
+ @include daff-icon-button-theme-variant(
136
+ theming.daff-color($success),
137
+ theming.daff-color($success, 70),
138
+ theming.daff-color($success, 80)
139
+ );
140
+ }
77
141
  }
78
142
 
79
- &.daff-white {
143
+ @include theming.dark($type) {
80
144
  @include daff-icon-button-theme-variant(
81
- $white,
82
- theming.daff-color($neutral, 20),
145
+ theming.daff-color($neutral, 50),
146
+ theming.daff-color($neutral, 40),
83
147
  theming.daff-color($neutral, 30)
84
148
  );
85
- }
86
149
 
87
- &.daff-theme {
88
- @include daff-icon-button-theme-variant(
89
- $base,
90
- theming.daff-illuminate($base, $neutral, 1),
91
- theming.daff-illuminate($base, $neutral, 2)
92
- );
93
- }
150
+ &.daff-primary {
151
+ @include daff-icon-button-theme-variant(
152
+ theming.daff-color($primary),
153
+ theming.daff-color($primary, 40),
154
+ theming.daff-color($primary, 30)
155
+ );
156
+ }
94
157
 
95
- &.daff-theme-contrast {
96
- @include daff-icon-button-theme-variant(
97
- $base-contrast,
98
- theming.daff-illuminate($base-contrast, $neutral, 1),
99
- theming.daff-illuminate($base-contrast, $neutral, 2)
100
- );
101
- }
158
+ &.daff-secondary {
159
+ @include daff-icon-button-theme-variant(
160
+ theming.daff-color($secondary),
161
+ theming.daff-color($secondary, 40),
162
+ theming.daff-color($secondary, 30)
163
+ );
164
+ }
102
165
 
103
- &[disabled],
104
- &.disabled {
105
- @include daff-icon-button-theme-variant(
106
- theming.daff-illuminate($base, $neutral, 4),
107
- theming.daff-illuminate($base, $neutral, 4),
108
- theming.daff-illuminate($base, $neutral, 4)
109
- );
166
+ &.daff-tertiary {
167
+ @include daff-icon-button-theme-variant(
168
+ theming.daff-color($tertiary),
169
+ theming.daff-color($tertiary, 40),
170
+ theming.daff-color($tertiary, 30)
171
+ );
172
+ }
110
173
 
111
- &:hover {
112
- color: theming.daff-illuminate($base, $neutral, 4);
174
+ &.daff-black {
175
+ @include daff-icon-button-theme-variant(
176
+ $black,
177
+ theming.daff-color($neutral, 100),
178
+ theming.daff-color($neutral, 80)
179
+ );
113
180
  }
114
- }
115
181
 
116
- &.daff-warn {
117
- @include daff-icon-button-theme-variant(
118
- theming.daff-color($warn),
119
- theming.daff-color($warn, 70),
120
- theming.daff-color($warn, 80)
121
- );
122
- }
182
+ &.daff-white {
183
+ @include daff-icon-button-theme-variant(
184
+ $white,
185
+ theming.daff-color($neutral, 20),
186
+ theming.daff-color($neutral, 30)
187
+ );
188
+ }
123
189
 
124
- &.daff-critical {
125
- @include daff-icon-button-theme-variant(
126
- theming.daff-color($critical),
127
- theming.daff-color($critical, 70),
128
- theming.daff-color($critical, 80)
129
- );
130
- }
190
+ &.daff-theme {
191
+ @include daff-icon-button-theme-variant(
192
+ $base,
193
+ theming.daff-color($neutral, 100),
194
+ theming.daff-color($neutral, 80)
195
+ );
196
+ }
131
197
 
132
- &.daff-success {
133
- @include daff-icon-button-theme-variant(
134
- theming.daff-color($success),
135
- theming.daff-color($success, 70),
136
- theming.daff-color($success, 80)
137
- );
198
+ &.daff-theme-contrast {
199
+ @include daff-icon-button-theme-variant(
200
+ $base-contrast,
201
+ theming.daff-color($neutral, 20),
202
+ theming.daff-color($neutral, 30)
203
+ );
204
+ }
205
+
206
+ &[disabled],
207
+ &.disabled {
208
+ @include daff-icon-button-theme-variant(
209
+ theming.daff-color($neutral, 40),
210
+ theming.daff-color($neutral, 40),
211
+ theming.daff-color($neutral, 40)
212
+ );
213
+
214
+ &:hover {
215
+ color: theming.daff-color($neutral, 40);
216
+ }
217
+ }
218
+
219
+ &.daff-warn {
220
+ @include daff-icon-button-theme-variant(
221
+ theming.daff-color($warn),
222
+ theming.daff-color($warn, 40),
223
+ theming.daff-color($warn, 30)
224
+ );
225
+ }
226
+
227
+ &.daff-critical {
228
+ @include daff-icon-button-theme-variant(
229
+ theming.daff-color($critical),
230
+ theming.daff-color($critical, 40),
231
+ theming.daff-color($critical, 30)
232
+ );
233
+ }
234
+
235
+ &.daff-success {
236
+ @include daff-icon-button-theme-variant(
237
+ theming.daff-color($success),
238
+ theming.daff-color($success, 40),
239
+ theming.daff-color($success, 30)
240
+ );
241
+ }
138
242
  }
139
243
  }
140
244
  }
@@ -20,16 +20,11 @@
20
20
  $black: theming.daff-color(theming.$daff-neutral, 110);
21
21
  background-color: $base-color;
22
22
  border: 1px solid $base-color;
23
- box-shadow: 0 3px 5px rgba($black, 0.12), 0 1px 3px rgba($black, 0.08);
23
+ box-shadow: 0 1px 5px -4px rgba($black, 0.5), 0 4px 8px 0 rgba($black, 0.05);
24
24
  color: theming.daff-text-contrast($base-color);
25
25
 
26
- &::after {
27
- box-shadow: 0 6px 12px rgba($black, 0.08), 0 4px 6px rgba($black, 0.04);
28
- }
29
-
30
26
  &:hover {
31
- background-color: $base-color;
32
- border: 1px solid $base-color;
27
+ box-shadow: 0 6px 12px rgba($black, 0.08), 0 4px 6px rgba($black, 0.04);
33
28
  }
34
29
  }
35
30