@daffodil/design 0.81.1 → 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.
- 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/article/README.md +4 -3
- package/article/article.d.ts +3 -0
- package/article/src/article-theme.scss +25 -2
- 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 +180 -80
- package/button/src/button/button-base.scss +26 -15
- package/button/src/button/flat/flat-theme.scss +144 -85
- package/button/src/button/raised/raised-theme.scss +2 -7
- package/button/src/button/stroked/stroked-theme.scss +126 -92
- 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/public_api.d.ts +6 -1
- package/card/src/card/raised/raised-theme.scss +30 -0
- package/card/src/card/stroked/stroked-theme.scss +46 -0
- package/card/src/card-base-theme.scss +126 -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 +23 -21
- 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 +165 -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 +15 -15
- package/fesm2022/daffodil-design-notification.mjs +22 -19
- 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 +9 -9
- package/fesm2022/daffodil-design-progress-bar.mjs +13 -10
- 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 +147 -53
- 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 +6 -3
- 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 +66 -34
- 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 +301 -245
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
- package/fesm2022/daffodil-design-tree.mjs +13 -10
- 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 +17 -8
- 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 +73 -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 +0 -1
- package/media-gallery/src/media-gallery-theme.scss +30 -4
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +29 -23
- 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/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 +3 -2
- package/progress-bar/progress-bar.d.ts +3 -0
- 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/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 +3 -0
- package/switch/README.md +3 -2
- package/switch/switch.d.ts +3 -0
- package/tabs/README.md +33 -3
- 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/toast/toast-config.d.ts +24 -1
- package/toast/toast/toast-provider.d.ts +16 -0
- package/toast/toast/toast-template.component.d.ts +1 -3
- 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/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
@@ -23,67 +23,135 @@
|
|
23
23
|
$white: core.daff-map-get($theme, 'core', 'white');
|
24
24
|
$black: core.daff-map-get($theme, 'core', 'black');
|
25
25
|
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
26
|
+
$type: core.daff-map-get($theme, 'core', 'type');
|
26
27
|
|
27
28
|
.daff-underline-button {
|
28
|
-
@include
|
29
|
-
theming.daff-illuminate($base, $neutral, 7)
|
30
|
-
);
|
31
|
-
|
32
|
-
&.daff-primary {
|
29
|
+
@include theming.light($type) {
|
33
30
|
@include daff-underline-button-theme-variant(
|
34
|
-
theming.daff-color($
|
31
|
+
theming.daff-color($neutral, 70)
|
35
32
|
);
|
36
|
-
}
|
37
33
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
34
|
+
&.daff-primary {
|
35
|
+
@include daff-underline-button-theme-variant(
|
36
|
+
theming.daff-color($primary)
|
37
|
+
);
|
38
|
+
}
|
43
39
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
40
|
+
&.daff-secondary {
|
41
|
+
@include daff-underline-button-theme-variant(
|
42
|
+
theming.daff-color($secondary)
|
43
|
+
);
|
44
|
+
}
|
49
45
|
|
50
|
-
|
51
|
-
|
52
|
-
|
46
|
+
&.daff-tertiary {
|
47
|
+
@include daff-underline-button-theme-variant(
|
48
|
+
theming.daff-color($tertiary)
|
49
|
+
);
|
50
|
+
}
|
53
51
|
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
&.daff-black {
|
53
|
+
@include daff-underline-button-theme-variant($black);
|
54
|
+
}
|
57
55
|
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
&.daff-white {
|
57
|
+
@include daff-underline-button-theme-variant($white);
|
58
|
+
}
|
61
59
|
|
62
|
-
|
63
|
-
|
64
|
-
|
60
|
+
&.daff-theme {
|
61
|
+
@include daff-underline-button-theme-variant($base);
|
62
|
+
}
|
65
63
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
theming.daff-illuminate($base, $neutral, 4)
|
70
|
-
);
|
71
|
-
}
|
64
|
+
&.daff-theme-contrast {
|
65
|
+
@include daff-underline-button-theme-variant($base-contrast);
|
66
|
+
}
|
72
67
|
|
73
|
-
|
74
|
-
|
75
|
-
|
68
|
+
&[disabled],
|
69
|
+
&.disabled {
|
70
|
+
@include daff-underline-button-theme-variant(
|
71
|
+
theming.daff-illuminate($base, $neutral, 4)
|
72
|
+
);
|
73
|
+
}
|
76
74
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
75
|
+
&.daff-warn {
|
76
|
+
@include daff-underline-button-theme-variant(theming.daff-color($warn));
|
77
|
+
}
|
78
|
+
|
79
|
+
&.daff-critical {
|
80
|
+
@include daff-underline-button-theme-variant(
|
81
|
+
theming.daff-color($critical)
|
82
|
+
);
|
83
|
+
}
|
84
|
+
|
85
|
+
&.daff-success {
|
86
|
+
@include daff-underline-button-theme-variant(
|
87
|
+
theming.daff-color($success)
|
88
|
+
);
|
89
|
+
}
|
81
90
|
}
|
82
91
|
|
83
|
-
|
92
|
+
@include theming.dark($type) {
|
84
93
|
@include daff-underline-button-theme-variant(
|
85
|
-
theming.daff-color($
|
94
|
+
theming.daff-color($neutral, 40)
|
86
95
|
);
|
96
|
+
|
97
|
+
&.daff-primary {
|
98
|
+
@include daff-underline-button-theme-variant(
|
99
|
+
theming.daff-color($primary, 40)
|
100
|
+
);
|
101
|
+
}
|
102
|
+
|
103
|
+
&.daff-secondary {
|
104
|
+
@include daff-underline-button-theme-variant(
|
105
|
+
theming.daff-color($secondary, 40)
|
106
|
+
);
|
107
|
+
}
|
108
|
+
|
109
|
+
&.daff-tertiary {
|
110
|
+
@include daff-underline-button-theme-variant(
|
111
|
+
theming.daff-color($tertiary, 40)
|
112
|
+
);
|
113
|
+
}
|
114
|
+
|
115
|
+
&.daff-black {
|
116
|
+
@include daff-underline-button-theme-variant($black);
|
117
|
+
}
|
118
|
+
|
119
|
+
&.daff-white {
|
120
|
+
@include daff-underline-button-theme-variant($white);
|
121
|
+
}
|
122
|
+
|
123
|
+
&.daff-theme {
|
124
|
+
@include daff-underline-button-theme-variant($base);
|
125
|
+
}
|
126
|
+
|
127
|
+
&.daff-theme-contrast {
|
128
|
+
@include daff-underline-button-theme-variant($base-contrast);
|
129
|
+
}
|
130
|
+
|
131
|
+
&[disabled],
|
132
|
+
&.disabled {
|
133
|
+
@include daff-underline-button-theme-variant(
|
134
|
+
theming.daff-illuminate($base, $neutral, 4)
|
135
|
+
);
|
136
|
+
}
|
137
|
+
|
138
|
+
&.daff-warn {
|
139
|
+
@include daff-underline-button-theme-variant(
|
140
|
+
theming.daff-color($warn, 40)
|
141
|
+
);
|
142
|
+
}
|
143
|
+
|
144
|
+
&.daff-critical {
|
145
|
+
@include daff-underline-button-theme-variant(
|
146
|
+
theming.daff-color($critical, 40)
|
147
|
+
);
|
148
|
+
}
|
149
|
+
|
150
|
+
&.daff-success {
|
151
|
+
@include daff-underline-button-theme-variant(
|
152
|
+
theming.daff-color($success, 40)
|
153
|
+
);
|
154
|
+
}
|
87
155
|
}
|
88
156
|
}
|
89
157
|
}
|
package/callout/README.md
CHANGED
@@ -7,13 +7,14 @@ Callouts can be used multiple times on a page. It's a flexible and extensible co
|
|
7
7
|
## Usage
|
8
8
|
|
9
9
|
### Within a standalone component
|
10
|
-
To use callout in a standalone component, import
|
10
|
+
To use callout in a standalone component, import `DAFF_CALLOUT_COMPONENTS` directly into your custom component:
|
11
11
|
|
12
12
|
```ts
|
13
|
+
import { DAFF_CALLOUT_COMPONENTS } from '@daffodil/design/callout';
|
14
|
+
|
13
15
|
@Component({
|
14
16
|
selector: 'custom-component',
|
15
17
|
templateUrl: './custom-component.component.html',
|
16
|
-
standalone: true,
|
17
18
|
imports: [
|
18
19
|
DAFF_CALLOUT_COMPONENTS,
|
19
20
|
],
|
@@ -26,8 +27,8 @@ To use callout in a module, import `DaffCalloutModule` into your custom module:
|
|
26
27
|
|
27
28
|
```ts
|
28
29
|
import { NgModule } from '@angular/core';
|
29
|
-
|
30
30
|
import { DaffCalloutModule } from '@daffodil/design/callout';
|
31
|
+
import { CustomComponent } from './custom.component';
|
31
32
|
|
32
33
|
@NgModule({
|
33
34
|
declarations: [
|
package/callout/callout.d.ts
CHANGED
@@ -4,4 +4,7 @@ import { DaffCalloutIconDirective } from './callout-icon/callout-icon.directive'
|
|
4
4
|
import { DaffCalloutSubtitleDirective } from './callout-subtitle/callout-subtitle.directive';
|
5
5
|
import { DaffCalloutTaglineDirective } from './callout-tagline/callout-tagline.directive';
|
6
6
|
import { DaffCalloutTitleDirective } from './callout-title/callout-title.directive';
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
7
10
|
export declare const DAFF_CALLOUT_COMPONENTS: readonly [typeof DaffCalloutComponent, typeof DaffCalloutIconDirective, typeof DaffCalloutTitleDirective, typeof DaffCalloutSubtitleDirective, typeof DaffCalloutTaglineDirective, typeof DaffCalloutBodyDirective];
|
package/card/README.md
CHANGED
@@ -12,13 +12,16 @@ The example below is a default, filled card that includes all of a card's pre-st
|
|
12
12
|
## Usage
|
13
13
|
|
14
14
|
### Within a standalone component
|
15
|
-
To use card in a standalone component, import
|
15
|
+
To use card in a standalone component, import each card type directly into your custom component.
|
16
|
+
|
17
|
+
The following imports are available, depending on which card you choose to use: `DAFF_CARD_COMPONENTS`, `DAFF_RAISED_CARD_COMPONENTS`, `DAFF_STROKED_CARD_COMPONENTS`. If you need to use all the card types, you can use `DAFF_ALL_CARD_COMPONENTS`.
|
16
18
|
|
17
19
|
```ts
|
20
|
+
import { DAFF_CARD_COMPONENTS } from '@daffodil/design/card';
|
21
|
+
|
18
22
|
@Component({
|
19
23
|
selector: 'custom-component',
|
20
24
|
templateUrl: './custom-component.component.html',
|
21
|
-
standalone: true,
|
22
25
|
imports: [
|
23
26
|
DAFF_CARD_COMPONENTS,
|
24
27
|
],
|
@@ -31,8 +34,8 @@ To use card in a module, import `DaffCardModule` into your custom module:
|
|
31
34
|
|
32
35
|
```ts
|
33
36
|
import { NgModule } from '@angular/core';
|
34
|
-
|
35
37
|
import { DaffCardModule } from '@daffodil/design/card';
|
38
|
+
import { CustomComponent } from './custom.component';
|
36
39
|
|
37
40
|
@NgModule({
|
38
41
|
declarations: [
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class DaffCardComponent extends DaffCardBaseDirective {
|
4
|
+
class: boolean;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardComponent, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffCardComponent, "daff-card,a[daff-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class DaffRaisedCardComponent extends DaffCardBaseDirective {
|
4
|
+
class: boolean;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedCardComponent, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedCardComponent, "daff-raised-card,a[daff-raised-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
7
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DaffCardBaseDirective } from '../../card-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class DaffStrokedCardComponent extends DaffCardBaseDirective {
|
4
|
+
class: boolean;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedCardComponent, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedCardComponent, "daff-stroked-card,a[daff-stroked-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
7
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@daffodil/design";
|
3
|
+
/**
|
4
|
+
* This attribute determines what orientation the the card contents are stacked.
|
5
|
+
*/
|
6
|
+
export type DaffCardOrientation = 'vertical' | 'horizontal';
|
7
|
+
export declare enum DaffCardOrientationEnum {
|
8
|
+
Vertical = "vertical",
|
9
|
+
Horizontal = "horizontal"
|
10
|
+
}
|
11
|
+
export declare class DaffCardBaseDirective {
|
12
|
+
private _orientation;
|
13
|
+
get orientation(): DaffCardOrientation;
|
14
|
+
set orientation(value: DaffCardOrientation);
|
15
|
+
/**
|
16
|
+
* @docs-private
|
17
|
+
*/
|
18
|
+
get verticalClass(): boolean;
|
19
|
+
/**
|
20
|
+
* @docs-private
|
21
|
+
*/
|
22
|
+
get horizontalClass(): boolean;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardBaseDirective, never>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "orientation": { "alias": "orientation"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
25
|
+
}
|
package/card/card.d.ts
CHANGED
@@ -1,8 +1,25 @@
|
|
1
|
-
import { DaffCardComponent } from './card/
|
1
|
+
import { DaffCardComponent } from './card/basic/basic.component';
|
2
|
+
import { DaffRaisedCardComponent } from './card/raised/raised.component';
|
3
|
+
import { DaffStrokedCardComponent } from './card/stroked/stroked.component';
|
2
4
|
import { DaffCardActionsDirective } from './card-actions/card-actions.directive';
|
3
5
|
import { DaffCardContentDirective } from './card-content/card-content.directive';
|
4
6
|
import { DaffCardIconDirective } from './card-icon/card-icon.directive';
|
5
7
|
import { DaffCardImageDirective } from './card-image/card-image.directive';
|
6
8
|
import { DaffCardTaglineDirective } from './card-tagline/card-tagline.directive';
|
7
9
|
import { DaffCardTitleDirective } from './card-title/card-title.directive';
|
10
|
+
/**
|
11
|
+
* @docs-private
|
12
|
+
*/
|
8
13
|
export declare const DAFF_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
14
|
+
/**
|
15
|
+
* @docs-private
|
16
|
+
*/
|
17
|
+
export declare const DAFF_RAISED_CARD_COMPONENTS: readonly [typeof DaffRaisedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
18
|
+
/**
|
19
|
+
* @docs-private
|
20
|
+
*/
|
21
|
+
export declare const DAFF_STROKED_CARD_COMPONENTS: readonly [typeof DaffStrokedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
export declare const DAFF_ALL_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof DaffRaisedCardComponent, typeof DaffStrokedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
package/card/card.module.d.ts
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "@angular/common";
|
3
|
-
import * as i2 from "./card/
|
4
|
-
import * as i3 from "./card
|
5
|
-
import * as i4 from "./card
|
6
|
-
import * as i5 from "./card-
|
7
|
-
import * as i6 from "./card-
|
8
|
-
import * as i7 from "./card-
|
9
|
-
import * as i8 from "./card-
|
3
|
+
import * as i2 from "./card/basic/basic.component";
|
4
|
+
import * as i3 from "./card/raised/raised.component";
|
5
|
+
import * as i4 from "./card/stroked/stroked.component";
|
6
|
+
import * as i5 from "./card-icon/card-icon.directive";
|
7
|
+
import * as i6 from "./card-image/card-image.directive";
|
8
|
+
import * as i7 from "./card-tagline/card-tagline.directive";
|
9
|
+
import * as i8 from "./card-title/card-title.directive";
|
10
|
+
import * as i9 from "./card-content/card-content.directive";
|
11
|
+
import * as i10 from "./card-actions/card-actions.directive";
|
10
12
|
/**
|
11
13
|
* @deprecated in favor of {@link DAFF_CARD_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
12
14
|
*/
|
13
15
|
export declare class DaffCardModule {
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardModule, never>;
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCardModule, never, [typeof i1.CommonModule, typeof i2.DaffCardComponent, typeof i3.
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCardModule, never, [typeof i1.CommonModule, typeof i2.DaffCardComponent, typeof i3.DaffRaisedCardComponent, typeof i4.DaffStrokedCardComponent, typeof i5.DaffCardIconDirective, typeof i6.DaffCardImageDirective, typeof i7.DaffCardTaglineDirective, typeof i8.DaffCardTitleDirective, typeof i9.DaffCardContentDirective, typeof i10.DaffCardActionsDirective], [typeof i2.DaffCardComponent, typeof i3.DaffRaisedCardComponent, typeof i4.DaffStrokedCardComponent, typeof i5.DaffCardIconDirective, typeof i6.DaffCardImageDirective, typeof i7.DaffCardTaglineDirective, typeof i8.DaffCardTitleDirective, typeof i9.DaffCardContentDirective, typeof i10.DaffCardActionsDirective]>;
|
16
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCardModule>;
|
17
19
|
}
|
package/card/public_api.d.ts
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
export { DaffCardModule } from './card.module';
|
2
2
|
export { DAFF_CARD_COMPONENTS } from './card';
|
3
|
-
export
|
3
|
+
export { DAFF_RAISED_CARD_COMPONENTS } from './card';
|
4
|
+
export { DAFF_STROKED_CARD_COMPONENTS } from './card';
|
5
|
+
export { DAFF_ALL_CARD_COMPONENTS } from './card';
|
6
|
+
export * from './card/basic/basic.component';
|
7
|
+
export * from './card/raised/raised.component';
|
8
|
+
export * from './card/stroked/stroked.component';
|
4
9
|
export * from './card-icon/card-icon.directive';
|
5
10
|
export * from './card-image/card-image.directive';
|
6
11
|
export * from './card-tagline/card-tagline.directive';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-raised-card-theme($theme) {
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$secondary: core.daff-map-get($theme, secondary);
|
8
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
10
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
11
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
12
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
13
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
|
+
|
15
|
+
.daff-raised-card {
|
16
|
+
box-shadow: 0 6px 12px -4px rgba($black, 0.12),
|
17
|
+
0 4px 8px -2px rgba($black, 0.06);
|
18
|
+
}
|
19
|
+
|
20
|
+
a {
|
21
|
+
&.daff-raised-card {
|
22
|
+
.daff-card__wrapper {
|
23
|
+
&::after {
|
24
|
+
box-shadow: 0 16px 32px -4px rgba($black, 0.12),
|
25
|
+
0 8px 12px -2px rgba($black, 0.06);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-stroked-card-theme($theme) {
|
6
|
+
$primary: core.daff-map-get($theme, primary);
|
7
|
+
$secondary: core.daff-map-get($theme, secondary);
|
8
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
9
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
10
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
11
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
12
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
13
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
14
|
+
|
15
|
+
.daff-stroked-card {
|
16
|
+
border: 1px solid theming.daff-illuminate($base, $neutral, 2);
|
17
|
+
|
18
|
+
&.daff-primary {
|
19
|
+
border: 1px solid theming.daff-illuminate($base-contrast, $primary, 3);
|
20
|
+
}
|
21
|
+
|
22
|
+
&.daff-secondary {
|
23
|
+
border: 1px solid theming.daff-illuminate($base-contrast, $secondary, 3);
|
24
|
+
}
|
25
|
+
|
26
|
+
&.daff-tertiary {
|
27
|
+
border: 1px solid theming.daff-illuminate($base-contrast, $tertiary, 3);
|
28
|
+
}
|
29
|
+
|
30
|
+
&.daff-theme {
|
31
|
+
border: 1px solid theming.daff-illuminate($base, $neutral, 2);
|
32
|
+
}
|
33
|
+
|
34
|
+
&.daff-theme-contrast {
|
35
|
+
border: 1px solid theming.daff-illuminate($base-contrast, $neutral, 2);
|
36
|
+
}
|
37
|
+
|
38
|
+
&.daff-black {
|
39
|
+
border: 1px solid theming.daff-color($neutral, 90);
|
40
|
+
}
|
41
|
+
|
42
|
+
&.daff-white {
|
43
|
+
border: 1px solid theming.daff-color($neutral, 20);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../scss/core';
|
3
|
+
@use '../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-basic-card-theme-variant($color) {
|
6
|
+
background: $color;
|
7
|
+
color: theming.daff-text-contrast($color);
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin daff-linkable-card-theme-variant($hover-color) {
|
11
|
+
.daff-card__wrapper {
|
12
|
+
&::after {
|
13
|
+
background: $hover-color;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
&:hover,
|
18
|
+
&:focus {
|
19
|
+
color: theming.daff-text-contrast($hover-color);
|
20
|
+
|
21
|
+
.daff-card__wrapper {
|
22
|
+
&::after {
|
23
|
+
opacity: 1;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin daff-card-base-theme($theme) {
|
30
|
+
$primary: core.daff-map-get($theme, primary);
|
31
|
+
$secondary: core.daff-map-get($theme, secondary);
|
32
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
33
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
34
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
35
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
36
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
37
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
38
|
+
|
39
|
+
.daff-card,
|
40
|
+
.daff-raised-card,
|
41
|
+
.daff-stroked-card {
|
42
|
+
@include daff-basic-card-theme-variant(
|
43
|
+
theming.daff-illuminate($base, $neutral, 1)
|
44
|
+
);
|
45
|
+
|
46
|
+
&.daff-primary {
|
47
|
+
@include daff-basic-card-theme-variant(theming.daff-color($primary));
|
48
|
+
}
|
49
|
+
|
50
|
+
&.daff-secondary {
|
51
|
+
@include daff-basic-card-theme-variant(theming.daff-color($secondary));
|
52
|
+
}
|
53
|
+
|
54
|
+
&.daff-tertiary {
|
55
|
+
@include daff-basic-card-theme-variant(theming.daff-color($tertiary));
|
56
|
+
}
|
57
|
+
|
58
|
+
&.daff-theme {
|
59
|
+
@include daff-basic-card-theme-variant($base);
|
60
|
+
}
|
61
|
+
|
62
|
+
&.daff-theme-contrast {
|
63
|
+
@include daff-basic-card-theme-variant($base-contrast);
|
64
|
+
}
|
65
|
+
|
66
|
+
&.daff-black {
|
67
|
+
@include daff-basic-card-theme-variant($black);
|
68
|
+
}
|
69
|
+
|
70
|
+
&.daff-white {
|
71
|
+
@include daff-basic-card-theme-variant($white);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
a {
|
76
|
+
&.daff-card,
|
77
|
+
&.daff-raised-card,
|
78
|
+
&.daff-stroked-card {
|
79
|
+
@include daff-linkable-card-theme-variant(
|
80
|
+
theming.daff-illuminate($base, $neutral, 2)
|
81
|
+
);
|
82
|
+
|
83
|
+
&.daff-primary {
|
84
|
+
@include daff-linkable-card-theme-variant(
|
85
|
+
theming.daff-color($primary, 70)
|
86
|
+
);
|
87
|
+
}
|
88
|
+
|
89
|
+
&.daff-secondary {
|
90
|
+
@include daff-linkable-card-theme-variant(
|
91
|
+
theming.daff-color($secondary, 70)
|
92
|
+
);
|
93
|
+
}
|
94
|
+
|
95
|
+
&.daff-tertiary {
|
96
|
+
@include daff-linkable-card-theme-variant(
|
97
|
+
theming.daff-color($tertiary, 70)
|
98
|
+
);
|
99
|
+
}
|
100
|
+
|
101
|
+
&.daff-theme {
|
102
|
+
@include daff-linkable-card-theme-variant(
|
103
|
+
theming.daff-illuminate($base, $neutral, 1)
|
104
|
+
);
|
105
|
+
}
|
106
|
+
|
107
|
+
&.daff-theme-contrast {
|
108
|
+
@include daff-linkable-card-theme-variant(
|
109
|
+
theming.daff-illuminate($base-contrast, $neutral, 1)
|
110
|
+
);
|
111
|
+
}
|
112
|
+
|
113
|
+
&.daff-black {
|
114
|
+
@include daff-linkable-card-theme-variant(
|
115
|
+
theming.daff-color($neutral, 100)
|
116
|
+
);
|
117
|
+
}
|
118
|
+
|
119
|
+
&.daff-white {
|
120
|
+
@include daff-linkable-card-theme-variant(
|
121
|
+
theming.daff-color($neutral, 10)
|
122
|
+
);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|