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