@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.
- package/accordion/README.md +44 -29
- package/accordion/accordion/accordion/accordion.component.d.ts +3 -0
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +23 -12
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
- package/accordion/accordion.d.ts +5 -0
- package/accordion/examples/disabled-accordion/disabled-accordion.component.d.ts +5 -0
- package/accordion/examples/initially-expanded-accordion/initially-expanded-accordion.component.d.ts +5 -0
- package/accordion/examples/public_api.d.ts +2 -0
- package/accordion/src/accordion-theme.scss +28 -6
- package/article/README.md +4 -3
- package/article/article.d.ts +3 -0
- package/article/src/article-theme.scss +128 -51
- package/breadcrumb/README.md +38 -28
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
- package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
- package/breadcrumb/breadcrumb.d.ts +3 -0
- package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
- package/breadcrumb/public_api.d.ts +2 -2
- package/button/README.md +43 -23
- package/button/button/basic/button.component.d.ts +5 -1
- package/button/button/button-base.directive.d.ts +11 -3
- package/button/button/button-sizable.directive.d.ts +1 -1
- package/button/button/raised/raised.component.d.ts +2 -0
- package/button/button/stroked/stroked.component.d.ts +5 -1
- package/button/button.d.ts +4 -2
- package/button/button.module.d.ts +1 -2
- package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
- package/button/examples/examples.d.ts +2 -1
- package/button/examples/public_api.d.ts +1 -0
- package/button/public_api.d.ts +0 -1
- package/button/src/button/basic/button-theme.scss +185 -80
- package/button/src/button/button-base.scss +41 -16
- package/button/src/button/flat/flat-theme.scss +144 -85
- package/button/src/button/icon/icon-theme.scss +183 -79
- package/button/src/button/raised/raised-theme.scss +2 -7
- package/button/src/button/stroked/stroked-theme.scss +128 -94
- package/button/src/button/underline/underline-theme.scss +112 -44
- package/callout/README.md +4 -3
- package/callout/callout.d.ts +3 -0
- package/card/README.md +6 -3
- package/card/card/basic/basic.component.d.ts +7 -0
- package/card/card/raised/raised.component.d.ts +7 -0
- package/card/card/stroked/stroked.component.d.ts +7 -0
- package/card/card-base.directive.d.ts +25 -0
- package/card/card.d.ts +18 -1
- package/card/card.module.d.ts +10 -8
- package/card/examples/card-theming/card-theming.component.d.ts +2 -1
- package/card/examples/public_api.d.ts +1 -1
- package/card/public_api.d.ts +6 -1
- package/card/src/card/raised/raised-theme.scss +30 -0
- package/card/src/card/stroked/stroked-theme.scss +135 -0
- package/card/src/card-base-theme.scss +197 -0
- package/card/src/card-base.scss +134 -0
- package/container/README.md +5 -3
- package/container/container.d.ts +3 -0
- package/core/colorable/colorable.d.ts +20 -14
- package/core/colorable/colorable.directive.d.ts +9 -6
- package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +56 -29
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +30 -30
- package/fesm2022/daffodil-design-article.mjs +14 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +55 -33
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +79 -69
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +25 -22
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +35 -31
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +140 -86
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container.mjs +10 -7
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +25 -22
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs +36 -19
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +12 -12
- package/fesm2022/daffodil-design-link-set.mjs +19 -16
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +12 -12
- package/fesm2022/daffodil-design-list.mjs +13 -10
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +11 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +204 -250
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +16 -16
- package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +28 -25
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +10 -7
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -16
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +23 -20
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
- package/fesm2022/daffodil-design-paginator.mjs +13 -7
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +13 -13
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
- package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
- package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +150 -61
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +38 -10
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +67 -35
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +296 -239
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
- package/fesm2022/daffodil-design-tree.mjs +15 -12
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
- package/fesm2022/daffodil-design.mjs +167 -155
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +4 -3
- package/hero/hero.d.ts +3 -0
- package/image/README.md +4 -3
- package/image/image/image.component.d.ts +22 -1
- package/image/image.d.ts +3 -0
- package/link-set/README.md +4 -3
- package/link-set/link-set.d.ts +3 -0
- package/list/README.md +4 -3
- package/list/list.d.ts +3 -0
- package/loading-icon/README.md +10 -7
- package/loading-icon/loading-icon.d.ts +3 -0
- package/loading-icon/src/loading-icon-theme.scss +66 -38
- package/media-gallery/README.md +19 -10
- package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
- package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
- package/media-gallery/examples/public_api.d.ts +2 -0
- package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
- package/media-gallery/media-gallery/media-gallery.component.d.ts +89 -11
- package/media-gallery/media-gallery.d.ts +4 -2
- package/media-gallery/media-gallery.module.d.ts +1 -2
- package/media-gallery/public_api.d.ts +3 -4
- package/media-gallery/src/media-gallery-theme.scss +30 -4
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +45 -22
- package/menu/README.md +1 -2
- package/modal/README.md +3 -2
- package/modal/modal.d.ts +3 -0
- package/navbar/README.md +3 -2
- package/navbar/navbar.d.ts +3 -0
- package/notification/README.md +5 -4
- package/notification/notification.d.ts +3 -0
- package/notification/src/notification-theme.scss +62 -23
- package/package.json +1 -1
- package/paginator/README.md +3 -2
- package/paginator/paginator/paginator.component.d.ts +3 -0
- package/paginator/paginator.d.ts +3 -0
- package/progress-bar/README.md +5 -6
- package/progress-bar/progress-bar.component.d.ts +0 -3
- package/progress-bar/progress-bar.d.ts +3 -0
- package/progress-bar/src/progress-bar-theme.scss +17 -8
- package/scss/theme.scss +36 -17
- package/scss/theming/_configure-theme.scss +2 -0
- package/scss/theming/_index.scss +1 -0
- package/scss/theming/_light-dark.scss +45 -0
- package/sidebar/README.md +20 -21
- package/sidebar/helper/sidebar-mode.d.ts +9 -15
- package/sidebar/public_api.d.ts +10 -11
- package/sidebar/sidebar/sidebar.component.d.ts +22 -7
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
- package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
- package/sidebar/sidebar.d.ts +4 -2
- package/sidebar/sidebar.module.d.ts +1 -2
- package/switch/README.md +3 -2
- package/switch/src/switch-theme.scss +29 -10
- package/switch/switch/switch.component.d.ts +31 -6
- package/switch/switch.d.ts +3 -0
- package/tabs/README.md +33 -3
- package/tabs/src/tabs-theme.scss +31 -13
- package/tabs/tabs/tab/tab.component.d.ts +1 -1
- package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
- package/tabs/tabs/tabs.component.d.ts +21 -4
- package/tabs/tabs.d.ts +8 -2
- package/text-snippet/README.md +19 -1
- package/toast/README.md +21 -151
- package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
- package/toast/examples/public_api.d.ts +2 -1
- package/toast/interfaces/toast-action.d.ts +22 -11
- package/toast/interfaces/toast-action.type.d.ts +10 -0
- package/toast/interfaces/toast.d.ts +11 -5
- package/toast/options/daff-toast-options.d.ts +2 -1
- package/toast/public_api.d.ts +2 -6
- package/toast/service/position.service.d.ts +9 -1
- package/toast/service/toast.service.d.ts +63 -0
- package/toast/src/toast-theme.scss +80 -33
- package/toast/toast/toast-config.d.ts +24 -1
- package/toast/toast/toast-provider.d.ts +16 -0
- package/toast/toast/toast.component.d.ts +20 -1
- package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
- package/toast/toast-message/toast-message.directive.d.ts +3 -0
- package/toast/toast-title/toast-title.directive.d.ts +3 -0
- package/tree/README.md +6 -10
- package/tree/src/tree-theme.scss +39 -13
- package/tree/tree.d.ts +3 -0
- package/youtube-player/index.d.ts +1 -0
- package/youtube-player/public_api.d.ts +3 -0
- package/youtube-player/safe-url.pipe.d.ts +10 -0
- package/youtube-player/youtube-player.component.d.ts +23 -0
- package/youtube-player/youtube-player.d.ts +6 -0
- package/card/card/card.component.d.ts +0 -48
- package/card/src/card-theme-variants/basic-card.scss +0 -6
- package/card/src/card-theme-variants/linkable-card.scss +0 -16
- package/card/src/card-theme-variants/stroked-card.scss +0 -3
- package/card/src/card-theme.scss +0 -170
- package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
- package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
- package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
- package/scss/theming/prebuilt/internal-theme.scss +0 -13
- 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
|
-
|
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
|
-
|
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
|
-
|
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
|
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: $
|
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
|
-
|
35
|
+
@include theming.light($type) {
|
36
|
+
@include daff-flat-button-theme-variant(
|
37
|
+
$base-contrast,
|
38
|
+
);
|
41
39
|
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
&.daff-primary {
|
41
|
+
@include daff-flat-button-theme-variant(
|
42
|
+
theming.daff-color($primary),
|
43
|
+
);
|
44
|
+
}
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
&.daff-secondary {
|
47
|
+
@include daff-flat-button-theme-variant(
|
48
|
+
theming.daff-color($secondary),
|
49
|
+
);
|
49
50
|
}
|
50
|
-
}
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
}
|
52
|
+
&.daff-tertiary {
|
53
|
+
@include daff-flat-button-theme-variant(
|
54
|
+
theming.daff-color($tertiary)
|
55
|
+
);
|
56
|
+
}
|
58
57
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
}
|
58
|
+
&.daff-black {
|
59
|
+
@include daff-flat-button-theme-variant(
|
60
|
+
$black,
|
61
|
+
);
|
62
|
+
}
|
65
63
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
}
|
64
|
+
&.daff-white {
|
65
|
+
@include daff-flat-button-theme-variant(
|
66
|
+
$white,
|
67
|
+
);
|
68
|
+
}
|
72
69
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
}
|
70
|
+
&.daff-theme {
|
71
|
+
@include daff-flat-button-theme-variant(
|
72
|
+
$base,
|
73
|
+
);
|
74
|
+
}
|
79
75
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
}
|
76
|
+
&.daff-theme-contrast {
|
77
|
+
@include daff-flat-button-theme-variant(
|
78
|
+
$base-contrast,
|
79
|
+
);
|
80
|
+
}
|
86
81
|
|
87
|
-
|
88
|
-
|
89
|
-
$
|
90
|
-
theming.daff-color($neutral, 20)
|
91
|
-
);
|
92
|
-
}
|
82
|
+
&[disabled],
|
83
|
+
&.disabled {
|
84
|
+
color: theming.daff-color($neutral, 50);
|
93
85
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
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
|
-
|
109
|
-
|
110
|
-
|
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
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
}
|
182
|
+
&.daff-warn {
|
183
|
+
@include daff-flat-button-theme-variant(
|
184
|
+
theming.daff-color($warn, 40)
|
185
|
+
);
|
186
|
+
}
|
127
187
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
}
|
188
|
+
&.daff-critical {
|
189
|
+
@include daff-flat-button-theme-variant(
|
190
|
+
theming.daff-color($critical, 40)
|
191
|
+
);
|
192
|
+
}
|
134
193
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
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
|
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($
|
50
|
-
theming.daff-color($
|
51
|
-
theming.daff-color($
|
44
|
+
theming.daff-color($neutral, 50),
|
45
|
+
theming.daff-color($neutral, 60),
|
46
|
+
theming.daff-color($neutral, 70)
|
52
47
|
);
|
53
|
-
}
|
54
48
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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
|
-
|
143
|
+
@include theming.dark($type) {
|
80
144
|
@include daff-icon-button-theme-variant(
|
81
|
-
$
|
82
|
-
theming.daff-color($neutral,
|
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
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
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
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
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
|
-
|
112
|
-
|
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
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
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
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
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
|
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
|
-
|
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
|
|