@daffodil/design 0.83.0 → 0.85.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 +11 -13
- package/article/src/article-theme.scss +36 -38
- 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 +40 -25
- package/atoms/form/form-field/form-field-control.d.ts +19 -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 +13 -0
- package/atoms/form/hint/public_api.d.ts +1 -0
- package/atoms/form/native-select/native-select.component.d.ts +5 -1
- 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 +14 -7
- package/button/button/button-base.directive.d.ts +6 -23
- package/button/button/raised/raised.component.d.ts +1 -1
- package/button/src/button/basic/button-theme.scss +84 -114
- package/button/src/button/button-base.scss +17 -4
- package/button/src/button/flat/flat-theme.scss +32 -68
- package/button/src/button/icon/icon-theme.scss +78 -106
- package/button/src/button/raised/raised-theme.scss +30 -32
- package/button/src/button/stroked/stroked-theme.scss +35 -69
- package/button/src/button/underline/underline-theme.scss +34 -50
- package/callout/src/callout-theme.scss +37 -22
- 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/src/card/raised/raised-theme.scss +9 -11
- package/card/src/card/stroked/stroked-theme.scss +32 -34
- package/card/src/card-base-theme.scss +42 -44
- 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.d.ts +2 -2
- 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-examples.mjs +10 -10
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +15 -15
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +31 -31
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +11 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +15 -12
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +41 -37
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +46 -53
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +23 -23
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +19 -19
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +44 -35
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +13 -7
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +4 -4
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +8 -8
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +23 -23
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +10 -10
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +72 -28
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +96 -0
- package/fesm2022/daffodil-design-input.mjs.map +1 -0
- package/fesm2022/daffodil-design-link-set.mjs +17 -17
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +13 -13
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -12
- 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 +8 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +39 -26
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- 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 +61 -28
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +9 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -22
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +51 -24
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +9 -9
- 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 +30 -12
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +23 -22
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
- package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +27 -27
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +17 -17
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +6 -7
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +38 -19
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +22 -16
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +24 -26
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +30 -16
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +10 -7
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +531 -818
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/src/hero-theme.scss +37 -22
- package/input/README.md +66 -0
- 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-hint-and-error/input-hint-and-error.component.d.ts +9 -0
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
- package/input/index.d.ts +1 -0
- package/{atoms/form/input → input}/input.component.d.ts +16 -20
- package/input/input.module.d.ts +10 -0
- package/list/list/list.component.d.ts +1 -1
- package/list/src/list-theme.scss +20 -26
- package/loading-icon/src/loading-icon-theme.scss +20 -22
- package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
- package/media-gallery/src/media-gallery-theme.scss +10 -12
- package/menu/helpers/create-overlay.d.ts +1 -1
- 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 +34 -16
- 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/modal/src/modal-theme.scss +2 -2
- package/navbar/src/navbar-theme.scss +21 -18
- 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 +44 -46
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +26 -23
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
- package/progress-bar/progress-bar.component.d.ts +15 -0
- package/progress-bar/src/progress-bar-theme.scss +18 -20
- package/public_api.d.ts +1 -2
- package/quantity-field/README.md +63 -0
- package/quantity-field/index.d.ts +1 -0
- package/quantity-field/public_api.d.ts +2 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +5 -4
- package/quantity-field/quantity-field.module.d.ts +11 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +5 -2
- package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
- package/scss/state/skeleton/_mixins.scss +22 -13
- package/scss/theme.scss +2 -2
- package/scss/theming/_configure-theme.scss +16 -16
- package/scss/theming/_get-base-color.scss +19 -0
- package/scss/theming/_get-palette.scss +27 -0
- package/scss/theming/_get-theme-mode.scss +9 -0
- package/scss/theming/_index.scss +3 -0
- package/scss/theming/_light-dark.scss +4 -4
- package/scss/theming/_theme-css-variables.scss +20 -20
- package/sidebar/src/sidebar-theme.scss +4 -5
- package/src/atoms/form/error-message/error-message-theme.scss +4 -2
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +47 -24
- package/src/atoms/form/hint/hint-theme.scss +22 -0
- package/src/atoms/form/native-select/native-select-theme.scss +5 -7
- package/switch/src/switch-theme.scss +13 -15
- package/switch/switch.d.ts +2 -2
- package/tabs/src/tabs-theme.scss +13 -15
- 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 +36 -38
- 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 +20 -22
- 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/atoms/form/input/input.module.d.ts +0 -8
- package/atoms/form/quantity-field/public_api.d.ts +0 -4
- package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
- 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
- package/src/atoms/form/input/input-theme.scss +0 -16
- /package/{atoms/form/input → input}/public_api.d.ts +0 -0
@@ -1,6 +1,4 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../../../scss/theming';
|
3
|
-
@use '../../../../scss/core';
|
1
|
+
@use '../../../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-underline-button-theme-variant($base-color: currentColor) {
|
6
4
|
color: $base-color;
|
@@ -11,49 +9,49 @@
|
|
11
9
|
}
|
12
10
|
|
13
11
|
@mixin daff-underline-button-theme($theme) {
|
14
|
-
$primary:
|
15
|
-
$secondary:
|
16
|
-
$tertiary:
|
17
|
-
$info:
|
18
|
-
$warn:
|
19
|
-
$critical:
|
20
|
-
$success:
|
21
|
-
$base:
|
22
|
-
$base-contrast:
|
23
|
-
$white:
|
24
|
-
$black:
|
25
|
-
$neutral:
|
26
|
-
$
|
12
|
+
$primary: daff-get-palette($theme, primary);
|
13
|
+
$secondary: daff-get-palette($theme, secondary);
|
14
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
15
|
+
$info: daff-get-palette($theme, informational);
|
16
|
+
$warn: daff-get-palette($theme, warn);
|
17
|
+
$critical: daff-get-palette($theme, critical);
|
18
|
+
$success: daff-get-palette($theme, success);
|
19
|
+
$base: daff-get-base-color($theme, base);
|
20
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
21
|
+
$white: daff-get-base-color($theme, 'white');
|
22
|
+
$black: daff-get-base-color($theme, 'black');
|
23
|
+
$neutral: daff-get-palette($theme, neutral);
|
24
|
+
$mode: daff-get-theme-mode($theme);
|
27
25
|
|
28
26
|
.daff-underline-button {
|
29
|
-
@include
|
27
|
+
@include light($mode) {
|
30
28
|
@include daff-underline-button-theme-variant(
|
31
|
-
|
29
|
+
daff-color($neutral, 70)
|
32
30
|
);
|
33
31
|
|
34
32
|
&.daff-primary {
|
35
33
|
@include daff-underline-button-theme-variant(
|
36
|
-
|
34
|
+
daff-color($primary)
|
37
35
|
);
|
38
36
|
}
|
39
37
|
|
40
38
|
&.daff-secondary {
|
41
39
|
@include daff-underline-button-theme-variant(
|
42
|
-
|
40
|
+
daff-color($secondary)
|
43
41
|
);
|
44
42
|
}
|
45
43
|
|
46
44
|
&.daff-tertiary {
|
47
45
|
@include daff-underline-button-theme-variant(
|
48
|
-
|
46
|
+
daff-color($tertiary)
|
49
47
|
);
|
50
48
|
}
|
51
49
|
|
52
|
-
&.daff-
|
50
|
+
&.daff-dark {
|
53
51
|
@include daff-underline-button-theme-variant($black);
|
54
52
|
}
|
55
53
|
|
56
|
-
&.daff-
|
54
|
+
&.daff-light {
|
57
55
|
@include daff-underline-button-theme-variant($white);
|
58
56
|
}
|
59
57
|
|
@@ -65,58 +63,51 @@
|
|
65
63
|
@include daff-underline-button-theme-variant($base-contrast);
|
66
64
|
}
|
67
65
|
|
68
|
-
&[disabled],
|
69
|
-
&.disabled {
|
70
|
-
@include daff-underline-button-theme-variant(
|
71
|
-
theming.daff-color($neutral, 40)
|
72
|
-
);
|
73
|
-
}
|
74
|
-
|
75
66
|
&.daff-warn {
|
76
|
-
@include daff-underline-button-theme-variant(
|
67
|
+
@include daff-underline-button-theme-variant(daff-color($warn));
|
77
68
|
}
|
78
69
|
|
79
70
|
&.daff-critical {
|
80
71
|
@include daff-underline-button-theme-variant(
|
81
|
-
|
72
|
+
daff-color($critical)
|
82
73
|
);
|
83
74
|
}
|
84
75
|
|
85
76
|
&.daff-success {
|
86
77
|
@include daff-underline-button-theme-variant(
|
87
|
-
|
78
|
+
daff-color($success)
|
88
79
|
);
|
89
80
|
}
|
90
81
|
}
|
91
82
|
|
92
|
-
@include
|
83
|
+
@include dark($mode) {
|
93
84
|
@include daff-underline-button-theme-variant(
|
94
|
-
|
85
|
+
daff-color($neutral, 40)
|
95
86
|
);
|
96
87
|
|
97
88
|
&.daff-primary {
|
98
89
|
@include daff-underline-button-theme-variant(
|
99
|
-
|
90
|
+
daff-color($primary, 40)
|
100
91
|
);
|
101
92
|
}
|
102
93
|
|
103
94
|
&.daff-secondary {
|
104
95
|
@include daff-underline-button-theme-variant(
|
105
|
-
|
96
|
+
daff-color($secondary, 40)
|
106
97
|
);
|
107
98
|
}
|
108
99
|
|
109
100
|
&.daff-tertiary {
|
110
101
|
@include daff-underline-button-theme-variant(
|
111
|
-
|
102
|
+
daff-color($tertiary, 40)
|
112
103
|
);
|
113
104
|
}
|
114
105
|
|
115
|
-
&.daff-
|
106
|
+
&.daff-dark {
|
116
107
|
@include daff-underline-button-theme-variant($black);
|
117
108
|
}
|
118
109
|
|
119
|
-
&.daff-
|
110
|
+
&.daff-light {
|
120
111
|
@include daff-underline-button-theme-variant($white);
|
121
112
|
}
|
122
113
|
|
@@ -128,28 +119,21 @@
|
|
128
119
|
@include daff-underline-button-theme-variant($base-contrast);
|
129
120
|
}
|
130
121
|
|
131
|
-
&[disabled],
|
132
|
-
&.disabled {
|
133
|
-
@include daff-underline-button-theme-variant(
|
134
|
-
theming.daff-color($neutral, 60)
|
135
|
-
);
|
136
|
-
}
|
137
|
-
|
138
122
|
&.daff-warn {
|
139
123
|
@include daff-underline-button-theme-variant(
|
140
|
-
|
124
|
+
daff-color($warn, 40)
|
141
125
|
);
|
142
126
|
}
|
143
127
|
|
144
128
|
&.daff-critical {
|
145
129
|
@include daff-underline-button-theme-variant(
|
146
|
-
|
130
|
+
daff-color($critical, 40)
|
147
131
|
);
|
148
132
|
}
|
149
133
|
|
150
134
|
&.daff-success {
|
151
135
|
@include daff-underline-button-theme-variant(
|
152
|
-
|
136
|
+
daff-color($success, 40)
|
153
137
|
);
|
154
138
|
}
|
155
139
|
}
|
@@ -1,37 +1,52 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-callout-theme-variant($color) {
|
6
4
|
background: $color;
|
7
|
-
color:
|
5
|
+
color: daff-text-contrast($color);
|
8
6
|
}
|
9
7
|
|
10
8
|
@mixin daff-callout-theme($theme) {
|
11
|
-
$primary:
|
12
|
-
$secondary:
|
13
|
-
$tertiary:
|
14
|
-
$neutral:
|
15
|
-
$base:
|
16
|
-
$base-contrast:
|
17
|
-
$white:
|
18
|
-
$black:
|
9
|
+
$primary: daff-get-palette($theme, primary);
|
10
|
+
$secondary: daff-get-palette($theme, secondary);
|
11
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
12
|
+
$neutral: daff-get-palette($theme, neutral);
|
13
|
+
$base: daff-get-base-color($theme, base);
|
14
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
15
|
+
$white: daff-get-base-color($theme, 'white');
|
16
|
+
$black: daff-get-base-color($theme, 'black');
|
17
|
+
$mode: daff-get-theme-mode($theme);
|
19
18
|
|
20
19
|
.daff-callout {
|
21
|
-
@include
|
22
|
-
|
23
|
-
);
|
20
|
+
@include light($mode) {
|
21
|
+
@include daff-callout-theme-variant(daff-color($neutral, 10));
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
&.daff-primary {
|
24
|
+
@include daff-callout-theme-variant(daff-color($primary));
|
25
|
+
}
|
26
|
+
|
27
|
+
&.daff-secondary {
|
28
|
+
@include daff-callout-theme-variant(daff-color($secondary));
|
29
|
+
}
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
+
&.daff-tertiary {
|
32
|
+
@include daff-callout-theme-variant(daff-color($tertiary));
|
33
|
+
}
|
31
34
|
}
|
32
35
|
|
33
|
-
|
34
|
-
@include daff-callout-theme-variant(
|
36
|
+
@include dark($mode) {
|
37
|
+
@include daff-callout-theme-variant(daff-color($neutral, 90));
|
38
|
+
|
39
|
+
&.daff-primary {
|
40
|
+
@include daff-callout-theme-variant(daff-color($primary, 60));
|
41
|
+
}
|
42
|
+
|
43
|
+
&.daff-secondary {
|
44
|
+
@include daff-callout-theme-variant(daff-color($secondary, 60));
|
45
|
+
}
|
46
|
+
|
47
|
+
&.daff-tertiary {
|
48
|
+
@include daff-callout-theme-variant(daff-color($tertiary, 60));
|
49
|
+
}
|
35
50
|
}
|
36
51
|
|
37
52
|
&.daff-theme {
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class DaffCardComponent extends DaffCardBaseDirective {
|
4
|
+
/**
|
5
|
+
* @docs-private
|
6
|
+
*/
|
4
7
|
class: boolean;
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardComponent, never>;
|
6
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffCardComponent, "daff-card,a[daff-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class DaffRaisedCardComponent extends DaffCardBaseDirective {
|
4
|
+
/**
|
5
|
+
* @docs-private
|
6
|
+
*/
|
4
7
|
class: boolean;
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedCardComponent, never>;
|
6
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedCardComponent, "daff-raised-card,a[daff-raised-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class DaffStrokedCardComponent extends DaffCardBaseDirective {
|
4
|
+
/**
|
5
|
+
* @docs-private
|
6
|
+
*/
|
4
7
|
class: boolean;
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedCardComponent, never>;
|
6
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedCardComponent, "daff-stroked-card,a[daff-stroked-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
@@ -1,16 +1,14 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../../../scss/core';
|
3
|
-
@use '../../../../scss/theming';
|
1
|
+
@use '../../../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-raised-card-theme($theme) {
|
6
|
-
$primary:
|
7
|
-
$secondary:
|
8
|
-
$tertiary:
|
9
|
-
$base:
|
10
|
-
$base-contrast:
|
11
|
-
$white:
|
12
|
-
$black:
|
13
|
-
$neutral:
|
4
|
+
$primary: daff-get-palette($theme, primary);
|
5
|
+
$secondary: daff-get-palette($theme, secondary);
|
6
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
7
|
+
$base: daff-get-base-color($theme, base);
|
8
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
9
|
+
$white: daff-get-base-color($theme, 'white');
|
10
|
+
$black: daff-get-base-color($theme, 'black');
|
11
|
+
$neutral: daff-get-palette($theme, neutral);
|
14
12
|
|
15
13
|
.daff-raised-card {
|
16
14
|
box-shadow: 0 6px 12px -4px rgba($black, 0.12),
|
@@ -1,6 +1,4 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../../../scss/core';
|
3
|
-
@use '../../../../scss/theming';
|
1
|
+
@use '../../../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin stroked-card-theme-variant($color) {
|
6
4
|
border: 1px solid $color;
|
@@ -25,109 +23,109 @@
|
|
25
23
|
}
|
26
24
|
|
27
25
|
@mixin daff-stroked-card-theme($theme) {
|
28
|
-
$primary:
|
29
|
-
$secondary:
|
30
|
-
$tertiary:
|
31
|
-
$base:
|
32
|
-
$base-contrast:
|
33
|
-
$white:
|
34
|
-
$black:
|
35
|
-
$neutral:
|
36
|
-
$
|
26
|
+
$primary: daff-get-palette($theme, primary);
|
27
|
+
$secondary: daff-get-palette($theme, secondary);
|
28
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
29
|
+
$base: daff-get-base-color($theme, base);
|
30
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
31
|
+
$white: daff-get-base-color($theme, 'white');
|
32
|
+
$black: daff-get-base-color($theme, 'black');
|
33
|
+
$neutral: daff-get-palette($theme, neutral);
|
34
|
+
$mode: daff-get-theme-mode($theme);
|
37
35
|
|
38
36
|
.daff-stroked-card {
|
39
37
|
&.daff-primary {
|
40
|
-
@include stroked-card-theme-variant(
|
38
|
+
@include stroked-card-theme-variant(daff-color($primary));
|
41
39
|
}
|
42
40
|
|
43
41
|
&.daff-secondary {
|
44
|
-
@include stroked-card-theme-variant(
|
42
|
+
@include stroked-card-theme-variant(daff-color($secondary));
|
45
43
|
}
|
46
44
|
|
47
45
|
&.daff-tertiary {
|
48
|
-
@include stroked-card-theme-variant(
|
46
|
+
@include stroked-card-theme-variant(daff-color($tertiary));
|
49
47
|
}
|
50
48
|
|
51
49
|
&.daff-dark {
|
52
|
-
@include stroked-card-theme-variant(
|
50
|
+
@include stroked-card-theme-variant(daff-color($neutral, 90));
|
53
51
|
}
|
54
52
|
|
55
53
|
&.daff-light {
|
56
|
-
@include stroked-card-theme-variant(
|
54
|
+
@include stroked-card-theme-variant(daff-color($neutral, 20));
|
57
55
|
}
|
58
56
|
|
59
|
-
@include
|
60
|
-
@include stroked-card-theme-variant(
|
57
|
+
@include light($mode) {
|
58
|
+
@include stroked-card-theme-variant(daff-color($neutral, 20));
|
61
59
|
color: $base-contrast;
|
62
60
|
|
63
61
|
&.daff-theme {
|
64
|
-
@include stroked-card-theme-variant(
|
62
|
+
@include stroked-card-theme-variant(daff-color($neutral, 20));
|
65
63
|
color: $base-contrast;
|
66
64
|
}
|
67
65
|
|
68
66
|
&.daff-theme-contrast {
|
69
|
-
@include stroked-card-theme-variant(
|
67
|
+
@include stroked-card-theme-variant(daff-color($neutral, 90));
|
70
68
|
}
|
71
69
|
}
|
72
70
|
|
73
|
-
@include
|
74
|
-
@include stroked-card-theme-variant(
|
71
|
+
@include dark($mode) {
|
72
|
+
@include stroked-card-theme-variant(daff-color($neutral, 90));
|
75
73
|
color: $base-contrast;
|
76
74
|
|
77
75
|
&.daff-theme {
|
78
|
-
@include stroked-card-theme-variant(
|
76
|
+
@include stroked-card-theme-variant(daff-color($neutral, 90));
|
79
77
|
color: $base-contrast;
|
80
78
|
}
|
81
79
|
|
82
80
|
&.daff-theme-contrast {
|
83
|
-
@include stroked-card-theme-variant(
|
81
|
+
@include stroked-card-theme-variant(daff-color($neutral, 20));
|
84
82
|
}
|
85
83
|
}
|
86
84
|
}
|
87
85
|
|
88
86
|
a {
|
89
87
|
&.daff-stroked-card {
|
90
|
-
@include
|
88
|
+
@include light($mode) {
|
91
89
|
@include linkable-stroked-card-theme-variant(
|
92
|
-
|
90
|
+
daff-color($neutral, 20),
|
93
91
|
0.2
|
94
92
|
);
|
95
93
|
}
|
96
94
|
|
97
|
-
@include
|
95
|
+
@include dark($mode) {
|
98
96
|
@include linkable-stroked-card-theme-variant(
|
99
|
-
|
97
|
+
daff-color($neutral, 90),
|
100
98
|
0.2
|
101
99
|
);
|
102
100
|
}
|
103
101
|
|
104
102
|
&.daff-primary {
|
105
103
|
@include linkable-stroked-card-theme-variant(
|
106
|
-
|
104
|
+
daff-color($primary)
|
107
105
|
);
|
108
106
|
}
|
109
107
|
|
110
108
|
&.daff-secondary {
|
111
109
|
@include linkable-stroked-card-theme-variant(
|
112
|
-
|
110
|
+
daff-color($secondary)
|
113
111
|
);
|
114
112
|
}
|
115
113
|
|
116
114
|
&.daff-tertiary {
|
117
115
|
@include linkable-stroked-card-theme-variant(
|
118
|
-
|
116
|
+
daff-color($tertiary)
|
119
117
|
);
|
120
118
|
}
|
121
119
|
|
122
120
|
&.daff-dark {
|
123
121
|
@include linkable-stroked-card-theme-variant(
|
124
|
-
|
122
|
+
daff-color($neutral, 90)
|
125
123
|
);
|
126
124
|
}
|
127
125
|
|
128
126
|
&.daff-light {
|
129
127
|
@include linkable-stroked-card-theme-variant(
|
130
|
-
|
128
|
+
daff-color($neutral, 20)
|
131
129
|
);
|
132
130
|
}
|
133
131
|
}
|