@daffodil/design 0.90.0 → 0.92.3-rc.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 +26 -38
- package/accordion/index.d.ts +9 -6
- package/article/README.md +66 -46
- package/article/index.d.ts +41 -0
- package/article/src/article-theme.scss +22 -0
- package/breadcrumb/README.md +6 -1
- package/breadcrumb/index.d.ts +65 -11
- package/breadcrumb/src/breadcrumb-theme.scss +1 -1
- package/button/README.md +36 -33
- package/button/index.d.ts +27 -6
- package/button/src/button/basic/button-theme.scss +4 -2
- package/button/src/button/button-base.scss +29 -6
- package/button/src/button/icon/icon-theme.scss +10 -6
- package/button/src/button/raised/raised-theme.scss +6 -4
- package/callout/README.md +15 -27
- package/card/README.md +36 -69
- package/card/index.d.ts +7 -41
- package/card/src/card-base-theme.scss +2 -5
- package/card/src/card-base.scss +2 -2
- package/checkbox/README.md +0 -0
- package/checkbox/index.d.ts +177 -0
- package/container/README.md +18 -23
- package/fesm2022/daffodil-design-accordion.mjs +34 -25
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +283 -17
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +180 -28
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +90 -45
- package/fesm2022/daffodil-design-button.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.mjs +43 -90
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +317 -0
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
- package/fesm2022/daffodil-design-container.mjs +8 -8
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +56 -86
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +62 -0
- package/fesm2022/daffodil-design-form.mjs.map +1 -0
- package/fesm2022/daffodil-design-hero.mjs +23 -23
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +19 -11
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +18 -14
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +25 -17
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +16 -16
- package/fesm2022/daffodil-design-list.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.mjs +13 -13
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +223 -60
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +86 -83
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +47 -41
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +25 -21
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +28 -64
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +11 -16
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +19 -18
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +27 -56
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +6 -6
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +30 -60
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +99 -0
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -0
- package/fesm2022/daffodil-design-switch.mjs +49 -106
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +35 -27
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +7 -7
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +6 -8
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +6 -3
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +79 -80
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +152 -112
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +6 -6
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +559 -711
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/README.md +75 -0
- package/form/index.d.ts +27 -0
- package/form-field/README.md +74 -99
- package/form-field/index.d.ts +64 -42
- package/hero/README.md +5 -5
- package/image/README.md +27 -19
- package/image/index.d.ts +6 -1
- package/index.d.ts +282 -447
- package/input/README.md +36 -16
- package/input/index.d.ts +4 -3
- package/link-set/index.d.ts +9 -1
- package/list/README.md +2 -2
- package/loading-icon/README.md +1 -1
- package/loading-icon/index.d.ts +1 -1
- package/media-gallery/README.md +3 -3
- package/menu/README.md +107 -10
- package/menu/index.d.ts +143 -11
- package/modal/README.md +107 -17
- package/modal/index.d.ts +72 -35
- package/native-select/README.md +52 -15
- package/native-select/index.d.ts +8 -7
- package/navbar/README.md +23 -17
- package/navbar/index.d.ts +12 -2
- package/navbar/src/navbar-theme.scss +4 -46
- package/notification/README.md +4 -4
- package/notification/index.d.ts +7 -38
- package/package.json +1 -1
- package/paginator/README.md +42 -6
- package/paginator/index.d.ts +5 -9
- package/progress-bar/README.md +3 -3
- package/quantity-field/README.md +4 -4
- package/quantity-field/index.d.ts +4 -1
- package/radio/README.md +1 -1
- package/radio/index.d.ts +0 -16
- package/scss/layout/_breakpoint.scss +1 -1
- package/scss/theme.scss +9 -5
- package/scss/theming/_color-palettes.scss +19 -11
- package/scss/theming/_configure-theme.scss +11 -10
- package/scss/theming/_daff-theme.scss +5 -14
- package/scss/theming/_get-base-color.scss +2 -2
- package/scss/theming/_get-palette.scss +2 -2
- package/scss/theming/_get-theme-mode.scss +3 -3
- package/scss/theming/_index.scss +2 -1
- package/scss/theming/contrast/max-contrast/max-contrast.scss +3 -3
- package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
- package/scss/theming/create-theme/_create-theme.scss +330 -0
- package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
- package/scss/theming/create-theme/_index.scss +1 -0
- package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
- package/scss/typography/mixins/_font-weight.scss +8 -14
- package/select/README.md +107 -4
- package/sidebar/README.md +6 -14
- package/sidebar/index.d.ts +3 -15
- package/spinner/README.md +57 -0
- package/spinner/index.d.ts +53 -0
- package/spinner/src/spinner-theme.scss +62 -0
- package/switch/README.md +21 -29
- package/switch/index.d.ts +18 -48
- package/switch/src/switch-theme.scss +26 -18
- package/tabs/README.md +1 -1
- package/tabs/index.d.ts +8 -5
- package/tag/README.md +24 -30
- package/tag/index.d.ts +1 -1
- package/tag/src/tag-theme.scss +11 -9
- package/text-snippet/README.md +1 -1
- package/text-snippet/src/text-snippet-theme.scss +12 -0
- package/textarea/README.md +36 -6
- package/textarea/index.d.ts +4 -4
- package/toast/README.md +4 -4
- package/tree/README.md +39 -22
- package/tree/index.d.ts +57 -96
- package/tree/src/tree-theme.scss +0 -4
- package/accordion/examples/index.d.ts +0 -20
- package/article/examples/index.d.ts +0 -50
- package/breadcrumb/examples/index.d.ts +0 -10
- package/button/examples/index.d.ts +0 -67
- package/callout/examples/index.d.ts +0 -41
- package/card/examples/index.d.ts +0 -62
- package/card/src/card/raised/raised-theme.scss +0 -28
- package/checkbox/examples/index.d.ts +0 -32
- package/container/examples/index.d.ts +0 -16
- package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-article-examples.mjs +0 -134
- package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-button-examples.mjs +0 -178
- package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
- package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-card-examples.mjs +0 -168
- package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-container-examples.mjs +0 -41
- package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
- package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
- package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-image-examples.mjs +0 -58
- package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-input-examples.mjs +0 -108
- package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-list-examples.mjs +0 -77
- package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
- package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
- package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
- package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
- package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +0 -34
- package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-select-examples.mjs +0 -117
- package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
- package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
- package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tag-examples.mjs +0 -125
- package/fesm2022/daffodil-design-tag-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
- package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
- package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
- package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
- package/form-field/examples/index.d.ts +0 -18
- package/hero/examples/index.d.ts +0 -45
- package/image/examples/index.d.ts +0 -10
- package/input/examples/index.d.ts +0 -10
- package/list/examples/index.d.ts +0 -29
- package/loading-icon/examples/index.d.ts +0 -16
- package/media-gallery/examples/index.d.ts +0 -38
- package/menu/examples/index.d.ts +0 -20
- package/modal/examples/index.d.ts +0 -15
- package/native-select/examples/index.d.ts +0 -10
- package/navbar/examples/index.d.ts +0 -31
- package/notification/examples/index.d.ts +0 -12
- package/paginator/examples/index.d.ts +0 -26
- package/progress-bar/examples/index.d.ts +0 -10
- package/quantity-field/examples/index.d.ts +0 -30
- package/radio/examples/index.d.ts +0 -13
- package/select/examples/index.d.ts +0 -28
- package/sidebar/examples/index.d.ts +0 -10
- package/sticky/examples/index.d.ts +0 -10
- package/switch/examples/index.d.ts +0 -46
- package/tabs/examples/index.d.ts +0 -12
- package/tag/examples/index.d.ts +0 -50
- package/text-snippet/examples/index.d.ts +0 -10
- package/textarea/examples/index.d.ts +0 -10
- package/toast/examples/index.d.ts +0 -56
- package/tree/examples/index.d.ts +0 -18
- /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
- /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
package/button/index.d.ts
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1$1 from '@angular/common';
|
|
3
|
+
import * as _daffodil_design_button from '@daffodil/design/button';
|
|
3
4
|
import * as i1 from '@daffodil/design';
|
|
4
|
-
import { DaffSizableDirective, DaffSizeSmallType, DaffSizeMediumType, DaffSizeLargeType, DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
|
|
5
|
+
import { DaffSizableDirective, DaffSizeSmallType, DaffSizeMediumType, DaffSizeLargeType, DaffDisableable, DaffPrefixDirective, DaffSuffixDirective, DaffDisableableDirective, DaffLoadableDirective } from '@daffodil/design';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* The size types that the DaffButtonComponent can implement.
|
|
8
9
|
*/
|
|
9
10
|
type DaffButtonSize = DaffSizeSmallType | DaffSizeMediumType | DaffSizeLargeType;
|
|
10
11
|
declare class DaffButtonSizableDirective extends DaffSizableDirective<DaffButtonSize> {
|
|
12
|
+
/**
|
|
13
|
+
* @docs-private
|
|
14
|
+
*/
|
|
15
|
+
defaultSize: DaffButtonSize;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonSizableDirective, never>;
|
|
12
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonSizableDirective, never, never, {}, {}, never, never, true, never>;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
declare class DaffButtonBaseDirective {
|
|
16
|
-
private
|
|
20
|
+
declare class DaffButtonBaseDirective implements DaffDisableable {
|
|
21
|
+
private buttonSizable;
|
|
22
|
+
private disabledDirective;
|
|
23
|
+
private loadingDirective;
|
|
17
24
|
/**
|
|
18
25
|
* @docs-private
|
|
19
26
|
*/
|
|
@@ -22,19 +29,30 @@ declare class DaffButtonBaseDirective {
|
|
|
22
29
|
* @docs-private
|
|
23
30
|
*/
|
|
24
31
|
_suffix: DaffSuffixDirective;
|
|
25
|
-
constructor(
|
|
32
|
+
constructor(buttonSizable: DaffButtonSizableDirective, disabledDirective: DaffDisableableDirective, loadingDirective: DaffLoadableDirective);
|
|
26
33
|
/**
|
|
27
34
|
* Sets the tabindex.
|
|
28
35
|
*/
|
|
29
36
|
tabindex: number;
|
|
30
|
-
private _disabled;
|
|
31
37
|
/**
|
|
32
38
|
* The disabled state of the button.
|
|
33
39
|
*/
|
|
34
40
|
get disabled(): any;
|
|
35
41
|
set disabled(value: any);
|
|
42
|
+
/**
|
|
43
|
+
* @docs-private
|
|
44
|
+
*
|
|
45
|
+
* Internal function to access the loading property of the DaffLoadableDirective
|
|
46
|
+
*/
|
|
47
|
+
get loading(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @docs-private
|
|
50
|
+
*
|
|
51
|
+
* Internal function to access the size property of the DaffButtonSizableDirective
|
|
52
|
+
*/
|
|
53
|
+
get buttonSize(): _daffodil_design_button.DaffButtonSize;
|
|
36
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffDisableableDirective; inputs: { "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.DaffLoadableDirective; inputs: { "loading": "loading"; }; outputs: {}; }]>;
|
|
38
56
|
}
|
|
39
57
|
|
|
40
58
|
/**
|
|
@@ -163,6 +181,8 @@ declare class DaffStrokedButtonComponent extends DaffButtonBaseDirective {
|
|
|
163
181
|
}
|
|
164
182
|
|
|
165
183
|
/**
|
|
184
|
+
* @deprecated Deprecated in version 0.92.0. Will be removed in version 1.0.0.
|
|
185
|
+
*
|
|
166
186
|
* DaffUnderlineButtonComponent is a borderless button with a custom underline style.
|
|
167
187
|
*
|
|
168
188
|
* @example Underline button
|
|
@@ -216,6 +236,7 @@ declare const DAFF_ICON_BUTTON_COMPONENTS: readonly [typeof DaffIconButtonCompon
|
|
|
216
236
|
declare const DAFF_STROKED_BUTTON_COMPONENTS: readonly [typeof DaffStrokedButtonComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective];
|
|
217
237
|
/**
|
|
218
238
|
* @docs-private
|
|
239
|
+
* @deprecated Deprecated in version 0.92.0. Will be removed in version 0.95.0.
|
|
219
240
|
*/
|
|
220
241
|
declare const DAFF_UNDERLINE_BUTTON_COMPONENTS: readonly [typeof DaffUnderlineButtonComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective];
|
|
221
242
|
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
|
8
8
|
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
@media (hover: hover) {
|
|
11
|
+
&:hover {
|
|
12
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08),
|
|
13
|
+
0 4px 6px rgba(0, 0, 0, 0.04);
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
&[disabled],
|
|
15
|
-
&.disabled {
|
|
18
|
+
&.daff-disabled {
|
|
16
19
|
&:hover {
|
|
17
20
|
box-shadow: 0 1px 5px -4px rgba(0, 0, 0, 0.5),
|
|
18
21
|
0 4px 8px 0 rgba(0, 0, 0, 0.05);
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
text-decoration: none;
|
|
36
39
|
|
|
37
40
|
&[disabled],
|
|
38
|
-
&.disabled {
|
|
41
|
+
&.daff-disabled {
|
|
39
42
|
cursor: not-allowed;
|
|
40
43
|
opacity: 0.5;
|
|
41
44
|
}
|
|
@@ -49,10 +52,23 @@
|
|
|
49
52
|
.daff-button__content {
|
|
50
53
|
@include t.text-truncate();
|
|
51
54
|
}
|
|
55
|
+
|
|
56
|
+
&.daff-loading {
|
|
57
|
+
.daff-button__content,
|
|
58
|
+
.daff-prefix,
|
|
59
|
+
.daff-suffix {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.daff-button__loading {
|
|
64
|
+
z-index: 5;
|
|
65
|
+
position: absolute;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
52
68
|
}
|
|
53
69
|
|
|
54
70
|
@mixin daff-button-background($border-radius) {
|
|
55
|
-
&:not(&[disabled], &.disabled) {
|
|
71
|
+
&:not(&[disabled], &.daff-disabled) {
|
|
56
72
|
&::after {
|
|
57
73
|
content: '';
|
|
58
74
|
border-radius: $border-radius;
|
|
@@ -65,12 +81,19 @@
|
|
|
65
81
|
z-index: 0;
|
|
66
82
|
}
|
|
67
83
|
|
|
68
|
-
&:hover,
|
|
69
84
|
&:active {
|
|
70
85
|
&::after {
|
|
71
86
|
opacity: 1;
|
|
72
87
|
}
|
|
73
88
|
}
|
|
89
|
+
|
|
90
|
+
@media (hover: hover) {
|
|
91
|
+
&:hover {
|
|
92
|
+
&::after {
|
|
93
|
+
opacity: 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
74
97
|
}
|
|
75
98
|
}
|
|
76
99
|
|
|
@@ -7,12 +7,16 @@
|
|
|
7
7
|
) {
|
|
8
8
|
color: $base-color;
|
|
9
9
|
|
|
10
|
-
&:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
&:not(&[disabled], &.daff-disabled) {
|
|
11
|
+
@media (hover: hover) {
|
|
12
|
+
&:hover {
|
|
13
|
+
color: $hover-color;
|
|
14
|
+
@if $base-color == currentColor {
|
|
15
|
+
opacity: 0.8;
|
|
16
|
+
} @else {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
|
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
@error 'Button Hover State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
$black: daff-color($
|
|
12
|
+
$black: daff-get-base-color($theme, 'black');
|
|
13
13
|
background-color: $base-color;
|
|
14
14
|
border: 1px solid $base-color;
|
|
15
15
|
box-shadow: 0 1px 5px -4px rgba($black, 0.5), 0 4px 8px 0 rgba($black, 0.05);
|
|
16
16
|
color: daff-text-contrast($base-color);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
@media (hover: hover) {
|
|
19
|
+
&:hover {
|
|
20
|
+
box-shadow: 0 6px 12px rgba($black, 0.08), 0 4px 6px rgba($black, 0.04);
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -66,7 +68,7 @@
|
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
&[disabled],
|
|
69
|
-
&.disabled {
|
|
71
|
+
&.daff-disabled {
|
|
70
72
|
@include daff-raised-button-theme-variant(daff-color($neutral, 30));
|
|
71
73
|
color: daff-color($neutral, 50);
|
|
72
74
|
|
package/callout/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A callout is a versatile, pre-styled container used to highlight key pieces of c
|
|
|
4
4
|
## Overview
|
|
5
5
|
Callouts help draw attention to important information and can be used multiple times on a page. They're flexible enough to support various content arrangements and include built-in containers for icons, taglines, titles, subtitles, and custom body content.
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<daff-docs-example-viewer example="basic-callout"></daff-docs-example-viewer>
|
|
8
8
|
|
|
9
9
|
## Best practices
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ Callouts help draw attention to important information and can be used multiple t
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
### Within a standalone component
|
|
20
|
-
|
|
20
|
+
Import `DAFF_CALLOUT_COMPONENTS` into your component:
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
import { DAFF_CALLOUT_COMPONENTS } from '@daffodil/design/callout';
|
|
@@ -57,27 +57,8 @@ export class CustomComponentModule { }
|
|
|
57
57
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
|
58
58
|
|
|
59
59
|
## Anatomy
|
|
60
|
-
A callout
|
|
60
|
+
A callout is composed of a wrapper, icon, tagline, title, subtitle, and body, displayed in the order listed:
|
|
61
61
|
|
|
62
|
-
### Container
|
|
63
|
-
**`<daff-callout>`**: The main wrapper that holds all callout content.
|
|
64
|
-
|
|
65
|
-
### Icon
|
|
66
|
-
**`[daffCalloutIcon]`**: Displays a visual or branding element. Avoid using for interactive or actionable icons.
|
|
67
|
-
|
|
68
|
-
### Tagline
|
|
69
|
-
**`[daffCalloutTagline]`**: Short, memorable phrase that provides quick context.
|
|
70
|
-
|
|
71
|
-
### Title
|
|
72
|
-
**`[daffCalloutTitle]`**: The primary heading text. Applied to heading elements (`<h1>`, `<h2>`, etc.).
|
|
73
|
-
|
|
74
|
-
### Subtitle
|
|
75
|
-
**`[daffCalloutSubtitle]`**: Secondary descriptive text displayed beneath the title.
|
|
76
|
-
|
|
77
|
-
### Body
|
|
78
|
-
**`[daffCalloutBody]`**: Flexible container for additional content. It's unstyled except for spaicng and should only be used once per callout.
|
|
79
|
-
|
|
80
|
-
### Basic structure
|
|
81
62
|
```html
|
|
82
63
|
<daff-callout>
|
|
83
64
|
<div daffCalloutIcon>
|
|
@@ -92,26 +73,33 @@ A callout consists of the following components, displayed in the order listed:
|
|
|
92
73
|
</daff-callout>
|
|
93
74
|
```
|
|
94
75
|
|
|
76
|
+
- **`<daff-callout>`**: The wrapper component that holds all callout content.
|
|
77
|
+
- **`[daffCalloutIcon]`**: Displays a visual or branding element. Avoid using for interactive or actionable icons.
|
|
78
|
+
- **`[daffCalloutTagline]`**: Short, memorable phrase that provides quick context.
|
|
79
|
+
- **`[daffCalloutTitle]`**: The primary heading text. Applied to heading elements (`<h1>`, `<h2>`, etc.).
|
|
80
|
+
- **`[daffCalloutSubtitle]`**: Secondary descriptive text displayed beneath the title.
|
|
81
|
+
- **`[daffCalloutBody]`**: Flexible container for additional content. It's unstyled except for spacing and **should only be used once per callout**.
|
|
82
|
+
|
|
95
83
|
## Features
|
|
96
84
|
|
|
97
85
|
### Colors
|
|
98
86
|
Use the `color` property to change the background of a callout.
|
|
99
87
|
|
|
100
|
-
<
|
|
88
|
+
<daff-docs-example-viewer example="callout-theming"></daff-docs-example-viewer>
|
|
101
89
|
|
|
102
90
|
### Text alignment
|
|
103
|
-
Control callout-specific text alignment with the `textAlignment` property. It defaults to `left` and **does not** affect `[daffCalloutBody]
|
|
91
|
+
Control callout-specific text alignment with the `textAlignment` property. It defaults to `left` and **does not** affect content placed within `[daffCalloutBody]`.
|
|
104
92
|
|
|
105
|
-
<
|
|
93
|
+
<daff-docs-example-viewer example="callout-text-alignment"></daff-docs-example-viewer>
|
|
106
94
|
|
|
107
95
|
### Compact
|
|
108
96
|
Use the `compact` property on callout to reduce padding and suit UIs with tighter spacing requirements.
|
|
109
97
|
|
|
110
|
-
<
|
|
98
|
+
<daff-docs-example-viewer example="compact-callout"></daff-docs-example-viewer>
|
|
111
99
|
|
|
112
100
|
## Examples
|
|
113
101
|
|
|
114
102
|
### Callout with two columns
|
|
115
103
|
Callouts are flexible enough to support custom grid layouts for more complex arrangements:
|
|
116
104
|
|
|
117
|
-
<
|
|
105
|
+
<daff-docs-example-viewer example="callout-with-grid"></daff-docs-example-viewer>
|
package/card/README.md
CHANGED
|
@@ -4,11 +4,7 @@ A card is a flexible content container used to group related information and act
|
|
|
4
4
|
## Overview
|
|
5
5
|
Cards help organize and present information in a clear and visually appealing way. There are two styles: **default (filled)** and **stroked**, and can include images, text, lists, actions, or even other components.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
<design-land-example-viewer-container example="basic-card"></design-land-example-viewer-container>
|
|
9
|
-
|
|
10
|
-
**Stroked card**
|
|
11
|
-
<design-land-example-viewer-container example="stroked-card"></design-land-example-viewer-container>
|
|
7
|
+
<daff-docs-example-viewer example="basic-cards"></daff-docs-example-viewer>
|
|
12
8
|
|
|
13
9
|
## Best practices
|
|
14
10
|
|
|
@@ -19,8 +15,7 @@ Cards help organize and present information in a clear and visually appealing wa
|
|
|
19
15
|
|
|
20
16
|
## Usage
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
Import the card style(s) you need into a standalone component:
|
|
18
|
+
Import the card style(s) you need into your component:
|
|
24
19
|
|
|
25
20
|
Available imports:
|
|
26
21
|
- Default (filled) cards: `DAFF_CARD_COMPONENTS`
|
|
@@ -40,55 +35,13 @@ import { DAFF_CARD_COMPONENTS } from '@daffodil/design/card';
|
|
|
40
35
|
export class CustomComponent {}
|
|
41
36
|
```
|
|
42
37
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```ts
|
|
47
|
-
import { NgModule } from '@angular/core';
|
|
48
|
-
import { DaffCardModule } from '@daffodil/design/card';
|
|
49
|
-
import { CustomComponent } from './custom.component';
|
|
50
|
-
|
|
51
|
-
@NgModule({
|
|
52
|
-
declarations: [
|
|
53
|
-
CustomComponent,
|
|
54
|
-
],
|
|
55
|
-
exports: [
|
|
56
|
-
CustomComponent,
|
|
57
|
-
],
|
|
58
|
-
imports: [
|
|
59
|
-
DaffCardModule,
|
|
60
|
-
],
|
|
61
|
-
})
|
|
62
|
-
export class CustomComponentModule { }
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
> This method is deprecated. It's recommended to update all custom components to standalone.
|
|
38
|
+
> **Deprecation notice:**
|
|
39
|
+
>
|
|
40
|
+
> `DaffCalloutModule` is deprecated. Use the standalone component imports instead.
|
|
66
41
|
|
|
67
42
|
## Anatomy
|
|
68
|
-
A card
|
|
69
|
-
|
|
70
|
-
### Container
|
|
71
|
-
**`<daff-card>`** or **`<daff-stroked-card>`**: The main wrapper that holds all card content.
|
|
72
|
-
|
|
73
|
-
### Image
|
|
74
|
-
**`[daffCardImage]`**: Image element at the top of the card.
|
|
75
|
-
|
|
76
|
-
### Icon
|
|
77
|
-
**`[daffCardIcon]`**: Displays a visual or branding element. Avoid using for interactive icons.
|
|
78
|
-
|
|
79
|
-
### Tagline
|
|
80
|
-
**`[daffCardTagline]`**: Short phrase that provides quick context.
|
|
43
|
+
A card is composed of a container, image, icon, tagline, title, content, and actions, displayed in the order listed:
|
|
81
44
|
|
|
82
|
-
### Title
|
|
83
|
-
**`[daffCardTitle]`**: The primary heading of the card.
|
|
84
|
-
|
|
85
|
-
### Content
|
|
86
|
-
**`[daffCardContent]`**: Flexible container for body text or custom content. It's unstyled except for spacing and should only be used once per card.
|
|
87
|
-
|
|
88
|
-
### Actions
|
|
89
|
-
**`[daffCardActions]`**: Container for buttons or links, positioned at the bottom.
|
|
90
|
-
|
|
91
|
-
### Basic structure
|
|
92
45
|
```html
|
|
93
46
|
<daff-card>
|
|
94
47
|
<img daffCardImage src="/product.jpg" alt="Product image">
|
|
@@ -107,6 +60,27 @@ A card consists of the following components, displayed in the order listed:
|
|
|
107
60
|
</daff-card>
|
|
108
61
|
```
|
|
109
62
|
|
|
63
|
+
**`<daff-card>`** or **`<daff-stroked-card>`**\
|
|
64
|
+
The wrapper component that holds all card content.
|
|
65
|
+
|
|
66
|
+
**`[daffCardImage]`**\
|
|
67
|
+
Image element at the top of the card.
|
|
68
|
+
|
|
69
|
+
**`[daffCardIcon]`**\
|
|
70
|
+
Displays a visual or branding element. Avoid using for interactive icons.
|
|
71
|
+
|
|
72
|
+
**`[daffCardTagline]`**\
|
|
73
|
+
Short phrase that provides quick context.
|
|
74
|
+
|
|
75
|
+
**`[daffCardTitle]`**\
|
|
76
|
+
The primary heading of the card.
|
|
77
|
+
|
|
78
|
+
**`[daffCardContent]`**\
|
|
79
|
+
Flexible container for body text or custom content. It's unstyled except for spacing and **should only be used once per card**.
|
|
80
|
+
|
|
81
|
+
**`[daffCardActions]`**\
|
|
82
|
+
Container for buttons or links, positioned at the bottom.
|
|
83
|
+
|
|
110
84
|
## Features
|
|
111
85
|
|
|
112
86
|
### Interactive card
|
|
@@ -114,27 +88,20 @@ An interactive card turns the entire card into a clickable area that navigates t
|
|
|
114
88
|
|
|
115
89
|
To create an interactive card, apply the component selector to an `<a>` element. All card styles support interactive behavior.
|
|
116
90
|
|
|
117
|
-
<
|
|
91
|
+
<daff-docs-example-viewer example="linkable-card"></daff-docs-example-viewer>
|
|
92
|
+
|
|
93
|
+
### Colors
|
|
94
|
+
Cards default to a light gray background. Use the `color` property to change a card's color.
|
|
95
|
+
|
|
96
|
+
<daff-docs-example-viewer example="card-theming"></daff-docs-example-viewer>
|
|
97
|
+
|
|
118
98
|
|
|
119
99
|
### Elevation
|
|
120
100
|
Use the `elevated` property to add shadows to cards.
|
|
121
101
|
|
|
122
|
-
<
|
|
102
|
+
<daff-docs-example-viewer example="elevated-card"></daff-docs-example-viewer>
|
|
123
103
|
|
|
124
104
|
### Orientation
|
|
125
105
|
Use the `orientation` property to stack card content either `vertical` (default) or `horizontal`. Horizontal cards automatically switch to vertical on smaller screens.
|
|
126
106
|
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
### Colors
|
|
130
|
-
Cards default to a light gray background. Use the `color` property to change a card's color.
|
|
131
|
-
|
|
132
|
-
<design-land-example-viewer-container example="card-theming"></design-land-example-viewer-container>
|
|
133
|
-
|
|
134
|
-
## Deprecations
|
|
135
|
-
The raised card style has been deprecated in favor of the `elevated` property. Replace `<daff-raised-card>` with `<daff-card [elevated]="true">`
|
|
136
|
-
|
|
137
|
-
```html
|
|
138
|
-
<daff-card [elevated]="true">
|
|
139
|
-
</daff-card>
|
|
140
|
-
```
|
|
107
|
+
<daff-docs-example-viewer example="card-orientation"></daff-docs-example-viewer>
|
package/card/index.d.ts
CHANGED
|
@@ -1,37 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1$1 from '@angular/common';
|
|
3
3
|
import * as i1 from '@daffodil/design';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The available orientations for a card.
|
|
7
|
-
*
|
|
8
|
-
* | Orientation | Description |
|
|
9
|
-
* | -- | -- |
|
|
10
|
-
* | `vertical` | Stacks card content from top to bottom. This is the default orientation. |
|
|
11
|
-
* | `horizontal` | Places card content side-by-side. On smaller screens, horizontal cards automatically switch to vertical for responsiveness. |
|
|
12
|
-
*/
|
|
13
|
-
type DaffCardOrientation = 'vertical' | 'horizontal';
|
|
14
|
-
/**
|
|
15
|
-
* Enum for representing the available card orientations.
|
|
16
|
-
* See {@link DaffCardOrientation} for descriptions of each orientation.
|
|
17
|
-
*/
|
|
18
|
-
declare enum DaffCardOrientationEnum {
|
|
19
|
-
Vertical = "vertical",
|
|
20
|
-
Horizontal = "horizontal"
|
|
21
|
-
}
|
|
4
|
+
import { DaffOrientableDirective } from '@daffodil/design';
|
|
22
5
|
|
|
23
6
|
declare class DaffCardBaseDirective {
|
|
24
|
-
|
|
25
|
-
* The orientation of a card.
|
|
26
|
-
*/
|
|
27
|
-
orientation: DaffCardOrientation;
|
|
7
|
+
private orientation;
|
|
28
8
|
/**
|
|
29
9
|
* Whether or not a card displays a shadow.
|
|
30
10
|
*/
|
|
31
11
|
elevated: boolean;
|
|
12
|
+
constructor(orientation: DaffOrientableDirective);
|
|
32
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardBaseDirective, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "
|
|
34
|
-
static ngAcceptInputType_orientation: DaffCardOrientation | null | undefined;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffCardBaseDirective, "[daffCardBase]", never, { "elevated": { "alias": "elevated"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
35
15
|
}
|
|
36
16
|
|
|
37
17
|
/**
|
|
@@ -57,14 +37,6 @@ declare class DaffCardComponent extends DaffCardBaseDirective {
|
|
|
57
37
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffCardComponent, "daff-card,a[daff-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
|
58
38
|
}
|
|
59
39
|
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Deprecated in version 0.88.0. Will be removed in version 0.91.0.
|
|
62
|
-
*/
|
|
63
|
-
declare class DaffRaisedCardComponent extends DaffCardBaseDirective {
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedCardComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedCardComponent, "daff-raised-card,a[daff-raised-card]", never, {}, {}, never, ["[daffCardImage]", "[daffCardIcon]", "[daffCardTagline]", "[daffCardTitle]", "[daffCardContent]", "[daffCardActions]"], true, never>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
40
|
/**
|
|
69
41
|
* A card variant with a stroked (outlined) border instead of a filled background.
|
|
70
42
|
*
|
|
@@ -172,7 +144,7 @@ declare class DaffCardActionsDirective {
|
|
|
172
144
|
*/
|
|
173
145
|
declare class DaffCardModule {
|
|
174
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCardModule, never>;
|
|
175
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCardModule, never, [typeof i1$1.CommonModule, typeof DaffCardComponent, typeof
|
|
147
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCardModule, never, [typeof i1$1.CommonModule, typeof DaffCardComponent, typeof DaffStrokedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective], [typeof DaffCardComponent, typeof DaffStrokedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective]>;
|
|
176
148
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCardModule>;
|
|
177
149
|
}
|
|
178
150
|
|
|
@@ -180,11 +152,6 @@ declare class DaffCardModule {
|
|
|
180
152
|
* @docs-private
|
|
181
153
|
*/
|
|
182
154
|
declare const DAFF_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
|
183
|
-
/**
|
|
184
|
-
* @docs-private
|
|
185
|
-
* @deprecated Deprecated in version 0.88.0. Will be removed in version 0.91.0.
|
|
186
|
-
*/
|
|
187
|
-
declare const DAFF_RAISED_CARD_COMPONENTS: readonly [typeof DaffRaisedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
|
188
155
|
/**
|
|
189
156
|
* @docs-private
|
|
190
157
|
*/
|
|
@@ -192,7 +159,6 @@ declare const DAFF_STROKED_CARD_COMPONENTS: readonly [typeof DaffStrokedCardComp
|
|
|
192
159
|
/**
|
|
193
160
|
* @docs-private
|
|
194
161
|
*/
|
|
195
|
-
declare const DAFF_ALL_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof
|
|
162
|
+
declare const DAFF_ALL_CARD_COMPONENTS: readonly [typeof DaffCardComponent, typeof DaffStrokedCardComponent, typeof DaffCardIconDirective, typeof DaffCardImageDirective, typeof DaffCardTaglineDirective, typeof DaffCardTitleDirective, typeof DaffCardContentDirective, typeof DaffCardActionsDirective];
|
|
196
163
|
|
|
197
|
-
export { DAFF_ALL_CARD_COMPONENTS, DAFF_CARD_COMPONENTS,
|
|
198
|
-
export type { DaffCardOrientation };
|
|
164
|
+
export { DAFF_ALL_CARD_COMPONENTS, DAFF_CARD_COMPONENTS, DAFF_STROKED_CARD_COMPONENTS, DaffCardActionsDirective, DaffCardComponent, DaffCardContentDirective, DaffCardIconDirective, DaffCardImageDirective, DaffCardModule, DaffCardTaglineDirective, DaffCardTitleDirective, DaffStrokedCardComponent };
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
$tertiary: daff-get-palette($theme, tertiary);
|
|
32
32
|
$base: daff-get-base-color($theme, base);
|
|
33
33
|
$base-contrast: daff-get-base-color($theme, base-contrast);
|
|
34
|
-
$black: daff-get-base-color($theme, 'black');
|
|
35
34
|
$neutral: daff-get-palette($theme, neutral);
|
|
36
35
|
$mode: daff-get-theme-mode($theme);
|
|
37
36
|
|
|
@@ -43,8 +42,7 @@
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
.daff-card
|
|
47
|
-
.daff-raised-card {
|
|
45
|
+
.daff-card {
|
|
48
46
|
@include light($mode) {
|
|
49
47
|
@include daff-basic-card-theme-variant(daff-color($neutral, 10));
|
|
50
48
|
|
|
@@ -107,8 +105,7 @@
|
|
|
107
105
|
}
|
|
108
106
|
}
|
|
109
107
|
|
|
110
|
-
&.daff-card
|
|
111
|
-
&.daff-raised-card {
|
|
108
|
+
&.daff-card {
|
|
112
109
|
@include light($mode) {
|
|
113
110
|
@include daff-linkable-card-theme-variant(daff-color($neutral, 20));
|
|
114
111
|
|
package/card/src/card-base.scss
CHANGED
|
@@ -32,7 +32,7 @@ $card-inner-border-radius: calc(#{$card-border-radius} - 1px);
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
&.vertical {
|
|
35
|
+
&.daff-vertical {
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
|
|
38
38
|
.daff-card__image {
|
|
@@ -44,7 +44,7 @@ $card-inner-border-radius: calc(#{$card-border-radius} - 1px);
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
&.horizontal {
|
|
47
|
+
&.daff-horizontal {
|
|
48
48
|
flex-wrap: wrap;
|
|
49
49
|
|
|
50
50
|
@include layout.breakpoint(mobile) {
|
|
File without changes
|