@daffodil/design 0.82.0 → 0.84.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/src/accordion-theme.scss +28 -6
- package/article/src/article-theme.scss +118 -64
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +4 -1
- package/atoms/form/error-message/error-message.module.d.ts +4 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +23 -29
- package/atoms/form/form-field/form-field-control.d.ts +18 -4
- package/atoms/form/form-field/form-field-state.d.ts +7 -0
- package/atoms/form/form-field/form-field.d.ts +10 -0
- package/atoms/form/form-field/form-field.module.d.ts +6 -4
- package/atoms/form/form-field/public_api.d.ts +2 -1
- package/atoms/form/form-label/form-label.directive.d.ts +4 -1
- package/atoms/form/form-label/form-label.module.d.ts +4 -1
- package/atoms/form/hint/hint.component.d.ts +9 -0
- package/atoms/form/hint/public_api.d.ts +1 -0
- package/atoms/form/input/input.component.d.ts +15 -19
- package/atoms/form/input/input.module.d.ts +4 -2
- package/atoms/form/native-select/native-select.component.d.ts +5 -1
- package/atoms/form/quantity-field/quantity-field.component.d.ts +2 -1
- package/atoms/form/quantity-field/quantity-field.module.d.ts +3 -3
- package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/breadcrumb/src/breadcrumb-theme.scss +12 -3
- package/button/button/button-base.directive.d.ts +6 -23
- package/button/src/button/basic/button-theme.scss +17 -40
- package/button/src/button/button-base.scss +32 -5
- package/button/src/button/flat/flat-theme.scss +4 -38
- package/button/src/button/icon/icon-theme.scss +157 -79
- package/button/src/button/raised/raised-theme.scss +2 -2
- package/button/src/button/stroked/stroked-theme.scss +7 -39
- package/button/src/button/underline/underline-theme.scss +4 -18
- package/callout/src/callout-theme.scss +27 -10
- package/card/card/basic/basic.component.d.ts +3 -0
- package/card/card/raised/raised.component.d.ts +3 -0
- package/card/card/stroked/stroked.component.d.ts +3 -0
- package/card/examples/card-theming/card-theming.component.d.ts +2 -1
- package/card/examples/public_api.d.ts +1 -1
- package/card/src/card/stroked/stroked-theme.scss +102 -13
- package/card/src/card-base-theme.scss +126 -55
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
- package/core/colorable/colorable.directive.d.ts +8 -0
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
- package/core/openable/openable.directive.d.ts +3 -0
- package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
- package/core/prefix-suffix/prefix.directive.d.ts +4 -1
- package/core/prefix-suffix/public_api.d.ts +0 -4
- package/core/prefix-suffix/suffix.directive.d.ts +4 -1
- package/core/sizable/sizable.directive.d.ts +8 -0
- package/core/statusable/statusable.directive.d.ts +2 -0
- package/core/text-alignable/text-alignable.directive.d.ts +6 -1
- package/fesm2022/daffodil-design-accordion.mjs +2 -2
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +5 -2
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +21 -17
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +25 -32
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +14 -12
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +9 -0
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -0
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +2 -2
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +45 -22
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +57 -18
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +23 -10
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +33 -0
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +2 -2
- package/fesm2022/daffodil-design-notification-examples.mjs +8 -12
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +32 -5
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +2 -2
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +2 -2
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +18 -3
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +9 -9
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +3 -8
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +6 -6
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +35 -11
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +27 -8
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +6 -0
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +17 -18
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +21 -7
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +3 -0
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +301 -224
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/src/hero-theme.scss +27 -10
- package/input/examples/examples.d.ts +2 -2
- package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
- package/input/examples/input-hint/input-hint.component.d.ts +5 -0
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
- package/list/list/list.component.d.ts +1 -1
- package/list/src/list-theme.scss +16 -20
- package/media-gallery/README.md +3 -3
- package/media-gallery/media-gallery/media-gallery.component.d.ts +21 -5
- package/media-gallery/public_api.d.ts +3 -3
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +23 -6
- package/menu/menu/menu.component.d.ts +15 -0
- package/menu/menu-activator/menu-activator.component.d.ts +3 -0
- package/menu/src/menu-theme.scss +29 -10
- package/modal/modal/modal.component.d.ts +21 -0
- package/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/modal/modal-close/modal-close.directive.d.ts +3 -0
- package/modal/modal-content/modal-content.component.d.ts +3 -0
- package/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/navbar/src/navbar-theme.scss +8 -3
- package/notification/README.md +11 -12
- package/notification/notification/notification.component.d.ts +17 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
- package/notification/notification-message/notification-message.directive.d.ts +3 -0
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
- package/notification/notification-title/notification-title.directive.d.ts +3 -0
- package/notification/notification.d.ts +2 -2
- package/notification/src/notification-theme.scss +62 -23
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +22 -17
- package/progress-bar/README.md +2 -4
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
- package/progress-bar/progress-bar.component.d.ts +15 -3
- package/progress-bar/src/progress-bar-theme.scss +17 -8
- package/public_api.d.ts +1 -0
- package/scss/state/skeleton/_mixins.scss +19 -9
- package/scss/theme.scss +2 -0
- package/sidebar/public_api.d.ts +10 -11
- package/sidebar/sidebar.d.ts +1 -2
- package/sidebar/sidebar.module.d.ts +1 -2
- package/src/atoms/form/error-message/error-message-theme.scss +4 -1
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +22 -10
- package/src/atoms/form/hint/hint-theme.scss +17 -0
- package/src/atoms/form/input/input-theme.scss +1 -5
- package/switch/src/switch-theme.scss +29 -10
- package/switch/switch/switch.component.d.ts +31 -6
- package/switch/switch.d.ts +2 -2
- package/tabs/src/tabs-theme.scss +31 -13
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
- package/tabs/tabs/tabs.component.d.ts +3 -0
- package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
- package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
- package/toast/src/toast-theme.scss +80 -33
- package/toast/toast/toast-template.component.d.ts +3 -1
- package/toast/toast/toast.component.d.ts +3 -5
- package/tree/interfaces/tree-data.d.ts +15 -0
- package/tree/interfaces/tree-render-mode.d.ts +2 -2
- package/tree/src/tree-theme.scss +39 -13
- package/tree/tree/tree-notifier.service.d.ts +3 -3
- package/tree/tree/tree.component.d.ts +13 -3
- package/tree/tree-item/tree-item.directive.d.ts +6 -0
- package/youtube-player/youtube-player.component.d.ts +3 -0
- package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
- package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
- package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
- package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
- package/input/examples/basic-input/basic-input.component.d.ts +0 -5
@@ -13,6 +13,9 @@ export declare class DaffBreadcrumbComponent implements AfterContentInit {
|
|
13
13
|
* @docs-private
|
14
14
|
*/
|
15
15
|
breadcrumbItems: QueryList<DaffBreadcrumbItemDirective>;
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
16
19
|
ngAfterContentInit(): void;
|
17
20
|
private updateActiveState;
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbComponent, never>;
|
@@ -3,11 +3,20 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-breadcrumb-theme($theme) {
|
6
|
-
$base: core.daff-map-get($theme, 'core', 'base');
|
7
|
-
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
8
6
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
7
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
9
8
|
|
10
9
|
.daff-breadcrumb__item {
|
11
|
-
|
10
|
+
a {
|
11
|
+
@include theming.light($type) {
|
12
|
+
color: theming.daff-color($neutral, 80);
|
13
|
+
text-decoration-color: theming.daff-color($neutral, 80);
|
14
|
+
}
|
15
|
+
|
16
|
+
@include theming.dark($type) {
|
17
|
+
color: theming.daff-color($neutral, 30);
|
18
|
+
text-decoration-color: theming.daff-color($neutral, 30);
|
19
|
+
}
|
20
|
+
}
|
12
21
|
}
|
13
22
|
}
|
@@ -1,29 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import { DaffPrefixable, DaffSuffixable } from '@daffodil/design';
|
1
|
+
import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
|
3
2
|
import { DaffButtonSizableDirective } from './button-sizable.directive';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
import * as i1 from "@daffodil/design";
|
6
5
|
import * as i2 from "./button-sizable.directive";
|
7
|
-
|
8
|
-
* An _elementRef and an instance of renderer2 are needed for the button mixins
|
9
|
-
*/
|
10
|
-
declare class DaffButtonBase {
|
11
|
-
_elementRef: ElementRef;
|
12
|
-
_renderer: Renderer2;
|
13
|
-
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
14
|
-
}
|
15
|
-
declare const _daffButtonBase: (new (...args: any[]) => {
|
16
|
-
[x: string]: any;
|
17
|
-
_prefix: import("@daffodil/design").DaffPrefixDirective;
|
18
|
-
}) & (new (...args: any[]) => {
|
19
|
-
[x: string]: any;
|
20
|
-
_suffix: import("@daffodil/design").DaffSuffixDirective;
|
21
|
-
}) & typeof DaffButtonBase;
|
22
|
-
export declare class DaffButtonBaseDirective extends _daffButtonBase implements DaffPrefixable, DaffSuffixable {
|
23
|
-
private elementRef;
|
24
|
-
private renderer;
|
6
|
+
export declare class DaffButtonBaseDirective {
|
25
7
|
private size;
|
26
|
-
|
8
|
+
_prefix: DaffPrefixDirective;
|
9
|
+
_suffix: DaffSuffixDirective;
|
10
|
+
constructor(size: DaffButtonSizableDirective);
|
27
11
|
/**
|
28
12
|
* @docs-private
|
29
13
|
*/
|
@@ -54,6 +38,5 @@ export declare class DaffButtonBaseDirective extends _daffButtonBase implements
|
|
54
38
|
*/
|
55
39
|
get tabIndexAttribute(): number;
|
56
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {},
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
58
42
|
}
|
59
|
-
export {};
|
@@ -45,9 +45,9 @@
|
|
45
45
|
.daff-button {
|
46
46
|
@include theming.light($type) {
|
47
47
|
@include daff-button-theme-variant(
|
48
|
+
theming.daff-color($neutral, 10),
|
48
49
|
theming.daff-color($neutral, 20),
|
49
|
-
theming.daff-color($neutral, 30)
|
50
|
-
theming.daff-color($neutral, 40)
|
50
|
+
theming.daff-color($neutral, 30)
|
51
51
|
);
|
52
52
|
|
53
53
|
&.daff-primary {
|
@@ -74,17 +74,17 @@
|
|
74
74
|
);
|
75
75
|
}
|
76
76
|
|
77
|
-
&.daff-
|
77
|
+
&.daff-dark {
|
78
78
|
@include daff-button-theme-variant(
|
79
|
-
$
|
79
|
+
theming.daff-color($neutral, 100),
|
80
80
|
theming.daff-color($neutral, 90),
|
81
81
|
theming.daff-color($neutral, 80)
|
82
82
|
);
|
83
83
|
}
|
84
84
|
|
85
|
-
&.daff-
|
85
|
+
&.daff-light {
|
86
86
|
@include daff-button-theme-variant(
|
87
|
-
$
|
87
|
+
theming.daff-color($neutral, 10),
|
88
88
|
theming.daff-color($neutral, 20),
|
89
89
|
theming.daff-color($neutral, 30)
|
90
90
|
);
|
@@ -93,31 +93,17 @@
|
|
93
93
|
&.daff-theme {
|
94
94
|
@include daff-button-theme-variant(
|
95
95
|
$base,
|
96
|
-
theming.daff-
|
97
|
-
theming.daff-
|
96
|
+
theming.daff-color($neutral, 20),
|
97
|
+
theming.daff-color($neutral, 30)
|
98
98
|
);
|
99
99
|
}
|
100
100
|
|
101
101
|
&.daff-theme-contrast {
|
102
102
|
@include daff-button-theme-variant(
|
103
103
|
$base-contrast,
|
104
|
-
theming.daff-
|
105
|
-
theming.daff-
|
106
|
-
);
|
107
|
-
}
|
108
|
-
|
109
|
-
&[disabled],
|
110
|
-
&.disabled {
|
111
|
-
@include daff-button-theme-variant(
|
112
|
-
theming.daff-illuminate($base, $neutral, 3),
|
113
|
-
theming.daff-illuminate($base, $neutral, 3),
|
114
|
-
theming.daff-illuminate($base, $neutral, 3),
|
104
|
+
theming.daff-color($neutral, 90),
|
105
|
+
theming.daff-color($neutral, 80)
|
115
106
|
);
|
116
|
-
color: theming.daff-illuminate($base, $neutral, 5);
|
117
|
-
|
118
|
-
&:hover {
|
119
|
-
color: theming.daff-illuminate($base, $neutral, 5);
|
120
|
-
}
|
121
107
|
}
|
122
108
|
|
123
109
|
&.daff-warn {
|
@@ -176,15 +162,15 @@
|
|
176
162
|
);
|
177
163
|
}
|
178
164
|
|
179
|
-
&.daff-
|
165
|
+
&.daff-dark {
|
180
166
|
@include daff-button-theme-variant(
|
181
|
-
$
|
167
|
+
theming.daff-color($neutral, 100),
|
182
168
|
theming.daff-color($neutral, 90),
|
183
169
|
theming.daff-color($neutral, 80)
|
184
170
|
);
|
185
171
|
}
|
186
172
|
|
187
|
-
&.daff-
|
173
|
+
&.daff-light {
|
188
174
|
@include daff-button-theme-variant(
|
189
175
|
$white,
|
190
176
|
theming.daff-color($neutral, 20),
|
@@ -195,25 +181,16 @@
|
|
195
181
|
&.daff-theme {
|
196
182
|
@include daff-button-theme-variant(
|
197
183
|
$base,
|
198
|
-
theming.daff-
|
199
|
-
theming.daff-
|
184
|
+
theming.daff-color($neutral, 90),
|
185
|
+
theming.daff-color($neutral, 80)
|
200
186
|
);
|
201
187
|
}
|
202
188
|
|
203
189
|
&.daff-theme-contrast {
|
204
190
|
@include daff-button-theme-variant(
|
205
191
|
$base-contrast,
|
206
|
-
theming.daff-
|
207
|
-
theming.daff-
|
208
|
-
);
|
209
|
-
}
|
210
|
-
|
211
|
-
&[disabled],
|
212
|
-
&.disabled {
|
213
|
-
@include daff-button-theme-variant(
|
214
|
-
theming.daff-illuminate($base, $neutral, 3),
|
215
|
-
theming.daff-illuminate($base, $neutral, 3),
|
216
|
-
theming.daff-illuminate($base, $neutral, 3)
|
192
|
+
theming.daff-color($neutral, 20),
|
193
|
+
theming.daff-color($neutral, 30)
|
217
194
|
);
|
218
195
|
}
|
219
196
|
|
@@ -1,13 +1,23 @@
|
|
1
1
|
@use '../../../scss/interactions';
|
2
2
|
@use '../../../scss/typography' as t;
|
3
3
|
|
4
|
+
// stylelint-disable selector-class-pattern
|
4
5
|
@mixin daff-button-elevated {
|
5
|
-
&.elevated {
|
6
|
-
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
6
|
+
&.elevated {
|
7
|
+
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
8
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
7
9
|
|
8
|
-
&:hover {
|
10
|
+
&:hover {
|
9
11
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
|
10
12
|
}
|
13
|
+
|
14
|
+
&[disabled],
|
15
|
+
&.disabled {
|
16
|
+
&:hover {
|
17
|
+
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
18
|
+
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
19
|
+
}
|
20
|
+
}
|
11
21
|
}
|
12
22
|
}
|
13
23
|
|
@@ -28,16 +38,19 @@
|
|
28
38
|
&[disabled],
|
29
39
|
&.disabled {
|
30
40
|
cursor: not-allowed;
|
41
|
+
opacity: 0.5;
|
31
42
|
}
|
32
43
|
|
33
44
|
.daff-button__content,
|
34
45
|
.daff-prefix,
|
35
46
|
.daff-suffix {
|
36
|
-
z-index:
|
47
|
+
z-index: 1;
|
37
48
|
}
|
38
49
|
|
39
50
|
.daff-button__loading {
|
40
|
-
|
51
|
+
> * {
|
52
|
+
width: 100%;
|
53
|
+
}
|
41
54
|
}
|
42
55
|
|
43
56
|
.daff-button__content {
|
@@ -54,7 +67,9 @@
|
|
54
67
|
width: 100%;
|
55
68
|
height: 100%;
|
56
69
|
opacity: 0;
|
70
|
+
pointer-events: none;
|
57
71
|
transition: opacity 300ms;
|
72
|
+
z-index: 0;
|
58
73
|
}
|
59
74
|
|
60
75
|
&:hover,
|
@@ -72,6 +87,10 @@
|
|
72
87
|
line-height: 2rem;
|
73
88
|
height: 2rem;
|
74
89
|
padding: 0 1rem;
|
90
|
+
|
91
|
+
.daff-button__loading {
|
92
|
+
width: 1rem;
|
93
|
+
}
|
75
94
|
}
|
76
95
|
|
77
96
|
&.daff-md {
|
@@ -79,6 +98,10 @@
|
|
79
98
|
line-height: 3rem;
|
80
99
|
height: 3rem;
|
81
100
|
padding: 0 1.5rem;
|
101
|
+
|
102
|
+
.daff-button__loading {
|
103
|
+
width: 1.5rem;
|
104
|
+
}
|
82
105
|
}
|
83
106
|
|
84
107
|
&.daff-lg {
|
@@ -86,5 +109,9 @@
|
|
86
109
|
line-height: 3.5rem;
|
87
110
|
height: 3.5rem;
|
88
111
|
padding: 0 1.5rem;
|
112
|
+
|
113
|
+
.daff-button__loading {
|
114
|
+
width: 2rem;
|
115
|
+
}
|
89
116
|
}
|
90
117
|
}
|
@@ -55,13 +55,13 @@
|
|
55
55
|
);
|
56
56
|
}
|
57
57
|
|
58
|
-
&.daff-
|
58
|
+
&.daff-dark {
|
59
59
|
@include daff-flat-button-theme-variant(
|
60
60
|
$black,
|
61
61
|
);
|
62
62
|
}
|
63
63
|
|
64
|
-
&.daff-
|
64
|
+
&.daff-light {
|
65
65
|
@include daff-flat-button-theme-variant(
|
66
66
|
$white,
|
67
67
|
);
|
@@ -79,23 +79,6 @@
|
|
79
79
|
);
|
80
80
|
}
|
81
81
|
|
82
|
-
&[disabled],
|
83
|
-
&.disabled {
|
84
|
-
color: theming.daff-illuminate($base, $neutral, 5);
|
85
|
-
|
86
|
-
&::after {
|
87
|
-
background: transparent;
|
88
|
-
}
|
89
|
-
|
90
|
-
&:hover,
|
91
|
-
&:focus,
|
92
|
-
&:active {
|
93
|
-
&::after {
|
94
|
-
background: transparent;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
82
|
&.daff-warn {
|
100
83
|
@include daff-flat-button-theme-variant(
|
101
84
|
theming.daff-color($warn)
|
@@ -138,13 +121,13 @@
|
|
138
121
|
);
|
139
122
|
}
|
140
123
|
|
141
|
-
&.daff-
|
124
|
+
&.daff-dark {
|
142
125
|
@include daff-flat-button-theme-variant(
|
143
126
|
$black,
|
144
127
|
);
|
145
128
|
}
|
146
129
|
|
147
|
-
&.daff-
|
130
|
+
&.daff-light {
|
148
131
|
@include daff-flat-button-theme-variant(
|
149
132
|
$white,
|
150
133
|
);
|
@@ -162,23 +145,6 @@
|
|
162
145
|
);
|
163
146
|
}
|
164
147
|
|
165
|
-
&[disabled],
|
166
|
-
&.disabled {
|
167
|
-
color: theming.daff-illuminate($base, $neutral, 5);
|
168
|
-
|
169
|
-
&::after {
|
170
|
-
background: transparent;
|
171
|
-
}
|
172
|
-
|
173
|
-
&:hover,
|
174
|
-
&:focus,
|
175
|
-
&:active {
|
176
|
-
&::after {
|
177
|
-
background: transparent;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
|
182
148
|
&.daff-warn {
|
183
149
|
@include daff-flat-button-theme-variant(
|
184
150
|
theming.daff-color($warn, 40)
|
@@ -36,105 +36,183 @@
|
|
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-dark {
|
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-light {
|
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
|
+
&.daff-warn {
|
106
|
+
@include daff-icon-button-theme-variant(
|
107
|
+
theming.daff-color($warn),
|
108
|
+
theming.daff-color($warn, 70),
|
109
|
+
theming.daff-color($warn, 80)
|
110
|
+
);
|
111
|
+
}
|
112
|
+
|
113
|
+
&.daff-critical {
|
114
|
+
@include daff-icon-button-theme-variant(
|
115
|
+
theming.daff-color($critical),
|
116
|
+
theming.daff-color($critical, 70),
|
117
|
+
theming.daff-color($critical, 80)
|
118
|
+
);
|
119
|
+
}
|
120
|
+
|
121
|
+
&.daff-success {
|
122
|
+
@include daff-icon-button-theme-variant(
|
123
|
+
theming.daff-color($success),
|
124
|
+
theming.daff-color($success, 70),
|
125
|
+
theming.daff-color($success, 80)
|
126
|
+
);
|
127
|
+
}
|
77
128
|
}
|
78
129
|
|
79
|
-
|
130
|
+
@include theming.dark($type) {
|
80
131
|
@include daff-icon-button-theme-variant(
|
81
|
-
$
|
82
|
-
theming.daff-color($neutral,
|
132
|
+
theming.daff-color($neutral, 50),
|
133
|
+
theming.daff-color($neutral, 40),
|
83
134
|
theming.daff-color($neutral, 30)
|
84
135
|
);
|
85
|
-
}
|
86
136
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
137
|
+
&.daff-primary {
|
138
|
+
@include daff-icon-button-theme-variant(
|
139
|
+
theming.daff-color($primary),
|
140
|
+
theming.daff-color($primary, 40),
|
141
|
+
theming.daff-color($primary, 30)
|
142
|
+
);
|
143
|
+
}
|
94
144
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
145
|
+
&.daff-secondary {
|
146
|
+
@include daff-icon-button-theme-variant(
|
147
|
+
theming.daff-color($secondary),
|
148
|
+
theming.daff-color($secondary, 40),
|
149
|
+
theming.daff-color($secondary, 30)
|
150
|
+
);
|
151
|
+
}
|
102
152
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
153
|
+
&.daff-tertiary {
|
154
|
+
@include daff-icon-button-theme-variant(
|
155
|
+
theming.daff-color($tertiary),
|
156
|
+
theming.daff-color($tertiary, 40),
|
157
|
+
theming.daff-color($tertiary, 30)
|
158
|
+
);
|
159
|
+
}
|
110
160
|
|
111
|
-
|
112
|
-
|
161
|
+
&.daff-dark {
|
162
|
+
@include daff-icon-button-theme-variant(
|
163
|
+
$black,
|
164
|
+
theming.daff-color($neutral, 100),
|
165
|
+
theming.daff-color($neutral, 80)
|
166
|
+
);
|
113
167
|
}
|
114
|
-
}
|
115
168
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
169
|
+
&.daff-light {
|
170
|
+
@include daff-icon-button-theme-variant(
|
171
|
+
$white,
|
172
|
+
theming.daff-color($neutral, 20),
|
173
|
+
theming.daff-color($neutral, 30)
|
174
|
+
);
|
175
|
+
}
|
123
176
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
177
|
+
&.daff-theme {
|
178
|
+
@include daff-icon-button-theme-variant(
|
179
|
+
$base,
|
180
|
+
theming.daff-color($neutral, 100),
|
181
|
+
theming.daff-color($neutral, 80)
|
182
|
+
);
|
183
|
+
}
|
131
184
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
185
|
+
&.daff-theme-contrast {
|
186
|
+
@include daff-icon-button-theme-variant(
|
187
|
+
$base-contrast,
|
188
|
+
theming.daff-color($neutral, 20),
|
189
|
+
theming.daff-color($neutral, 30)
|
190
|
+
);
|
191
|
+
}
|
192
|
+
|
193
|
+
&.daff-warn {
|
194
|
+
@include daff-icon-button-theme-variant(
|
195
|
+
theming.daff-color($warn),
|
196
|
+
theming.daff-color($warn, 40),
|
197
|
+
theming.daff-color($warn, 30)
|
198
|
+
);
|
199
|
+
}
|
200
|
+
|
201
|
+
&.daff-critical {
|
202
|
+
@include daff-icon-button-theme-variant(
|
203
|
+
theming.daff-color($critical),
|
204
|
+
theming.daff-color($critical, 40),
|
205
|
+
theming.daff-color($critical, 30)
|
206
|
+
);
|
207
|
+
}
|
208
|
+
|
209
|
+
&.daff-success {
|
210
|
+
@include daff-icon-button-theme-variant(
|
211
|
+
theming.daff-color($success),
|
212
|
+
theming.daff-color($success, 40),
|
213
|
+
theming.daff-color($success, 30)
|
214
|
+
);
|
215
|
+
}
|
138
216
|
}
|
139
217
|
}
|
140
218
|
}
|
@@ -59,11 +59,11 @@
|
|
59
59
|
@include daff-raised-button-theme-variant(theming.daff-color($tertiary));
|
60
60
|
}
|
61
61
|
|
62
|
-
&.daff-
|
62
|
+
&.daff-dark {
|
63
63
|
@include daff-raised-button-theme-variant($black);
|
64
64
|
}
|
65
65
|
|
66
|
-
&.daff-
|
66
|
+
&.daff-light {
|
67
67
|
@include daff-raised-button-theme-variant($white);
|
68
68
|
}
|
69
69
|
|