@daffodil/design 0.79.0 → 0.80.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/accordion.module.d.ts +3 -1
- package/accordion/src/accordion-theme.scss +4 -4
- package/article/README.md +5 -6
- package/article/article.module.d.ts +3 -1
- package/article/src/article-theme.scss +8 -8
- package/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/breadcrumb/breadcrumb.module.d.ts +3 -1
- package/breadcrumb/src/breadcrumb-theme.scss +3 -3
- package/button/button.module.d.ts +3 -1
- package/button/src/button/basic/button-theme.scss +14 -14
- package/button/src/button/button-base.scss +3 -3
- package/button/src/button/flat/flat-theme.scss +21 -22
- package/button/src/button/icon/icon-theme.scss +13 -14
- package/button/src/button/raised/raised-theme.scss +32 -45
- package/button/src/button/stroked/stroked-theme.scss +18 -21
- package/button/src/button/underline/underline-theme.scss +14 -18
- package/callout/callout.module.d.ts +3 -1
- package/callout/src/callout-theme.scss +11 -17
- package/card/card.module.d.ts +1 -1
- package/card/src/card-theme-variants/linkable-card.scss +1 -1
- package/card/src/card-theme.scss +9 -9
- package/container/container.module.d.ts +1 -1
- package/core/public_api.d.ts +1 -0
- package/core/selectable/public_api.d.ts +2 -0
- package/core/selectable/selectable.d.ts +7 -0
- package/core/selectable/selectable.directive.d.ts +17 -0
- package/esm2022/accordion/accordion.module.mjs +4 -2
- package/esm2022/article/article.module.mjs +4 -2
- package/esm2022/atoms/form/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/atoms/form/checkbox-set/checkbox-set.component.mjs +2 -2
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
- package/esm2022/atoms/form/radio/radio.component.mjs +2 -2
- package/esm2022/atoms/form/radio-set/radio-set.component.mjs +2 -2
- package/esm2022/breadcrumb/breadcrumb.module.mjs +4 -2
- package/esm2022/button/button.module.mjs +4 -2
- package/esm2022/callout/callout.module.mjs +4 -2
- package/esm2022/card/card.module.mjs +2 -2
- package/esm2022/container/container/container.component.mjs +2 -2
- package/esm2022/container/container.module.mjs +2 -2
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/selectable/public_api.mjs +2 -0
- package/esm2022/core/selectable/selectable.directive.mjs +41 -0
- package/esm2022/core/selectable/selectable.mjs +2 -0
- package/esm2022/hero/hero.module.mjs +2 -2
- package/esm2022/image/image.module.mjs +2 -2
- package/esm2022/link-set/link-set.module.mjs +2 -2
- package/esm2022/list/examples/basic-list/basic-list.component.mjs +1 -1
- package/esm2022/list/examples/icon-list/icon-list.component.mjs +2 -2
- package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +1 -1
- package/esm2022/list/examples/nav-list/nav-list.component.mjs +2 -2
- package/esm2022/list/list/list.component.mjs +2 -2
- package/esm2022/list/list-item/list-item.component.mjs +10 -3
- package/esm2022/list/list.module.mjs +2 -2
- package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
- package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +1 -1
- package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
- package/esm2022/media-gallery/thumbnail/thumbnail.directive.mjs +26 -39
- package/esm2022/modal/modal.module.mjs +2 -2
- package/esm2022/navbar/navbar.module.mjs +2 -2
- package/esm2022/notification/notification.module.mjs +2 -2
- package/esm2022/paginator/paginator.module.mjs +2 -2
- package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
- package/esm2022/sidebar/sidebar.module.mjs +2 -2
- package/esm2022/switch/daffodil-design-switch.mjs +5 -0
- package/esm2022/switch/examples/basic-switch/basic-switch.component.mjs +23 -0
- package/esm2022/switch/examples/daffodil-design-switch-examples.mjs +5 -0
- package/esm2022/switch/examples/disabled-switch/disabled-switch.component.mjs +20 -0
- package/esm2022/switch/examples/examples.mjs +13 -0
- package/esm2022/switch/examples/index.mjs +2 -0
- package/esm2022/switch/examples/loading-switch/loading-switch.component.mjs +20 -0
- package/esm2022/switch/examples/public_api.mjs +7 -0
- package/esm2022/switch/examples/switch-error/switch-error.component.mjs +22 -0
- package/esm2022/switch/examples/switch-label-positions/switch-label-positions.component.mjs +31 -0
- package/esm2022/switch/index.mjs +2 -0
- package/esm2022/switch/public_api.mjs +3 -0
- package/esm2022/switch/switch/label-position.mjs +11 -0
- package/esm2022/switch/switch/switch.component.mjs +126 -0
- package/esm2022/switch/switch.mjs +7 -0
- package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +3 -3
- package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +22 -21
- package/esm2022/tabs/tabs/tabs.component.mjs +4 -8
- package/esm2022/toast/toast/toast.component.mjs +3 -3
- package/esm2022/toast/toast.module.mjs +2 -2
- package/esm2022/tree/tree.module.mjs +2 -2
- package/fesm2022/daffodil-design-accordion.mjs +3 -1
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +3 -1
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +3 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +3 -1
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +3 -1
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +1 -1
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +3 -3
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +1 -1
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +1 -1
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +1 -1
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +4 -4
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -5
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +3 -3
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +25 -40
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +1 -1
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +1 -1
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +1 -1
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +1 -1
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +109 -0
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-switch.mjs +148 -0
- package/fesm2022/daffodil-design-switch.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs-examples.mjs +2 -2
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +23 -26
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +3 -3
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +1 -1
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +45 -6
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/hero.module.d.ts +1 -1
- package/hero/src/hero-theme.scss +11 -17
- package/image/image.module.d.ts +1 -1
- package/link-set/link-set.module.d.ts +1 -1
- package/list/list-item/list-item.component.d.ts +3 -1
- package/list/list.module.d.ts +1 -1
- package/list/src/list-theme.scss +13 -9
- package/loading-icon/loading-icon.module.d.ts +1 -1
- package/loading-icon/src/loading-icon-theme.scss +7 -7
- package/media-gallery/media-gallery.module.d.ts +1 -1
- package/media-gallery/src/media-gallery-theme.scss +3 -3
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +9 -18
- package/menu/src/menu-theme.scss +5 -5
- package/modal/modal.module.d.ts +1 -1
- package/modal/src/modal-theme.scss +1 -1
- package/navbar/navbar.module.d.ts +1 -1
- package/navbar/src/navbar-theme.scss +8 -8
- package/notification/notification.module.d.ts +1 -1
- package/notification/src/notification-theme.scss +12 -12
- package/package.json +1 -1
- package/paginator/paginator.module.d.ts +1 -1
- package/paginator/src/paginator-theme.scss +11 -10
- package/progress-bar/progress-bar.module.d.ts +1 -1
- package/progress-bar/src/progress-bar-theme.scss +10 -10
- package/scss/accessibility/_index.scss +1 -1
- package/scss/core/_index.scss +1 -2
- package/scss/core/error/error-to-string.scss +13 -0
- package/scss/core/map/map-deep-check/map-deep-check.scss +2 -1
- package/scss/core/map/map-deep-get/map-deep-get.scss +1 -0
- package/scss/core/map/map-get/map-get.scss +23 -0
- package/scss/core/map/map-get/map-get.spec.scss +65 -0
- package/scss/core/string/split/string-split.scss +10 -7
- package/scss/global.scss +1 -0
- package/scss/interactions/_index.scss +1 -1
- package/scss/layout/_index.scss +1 -1
- package/scss/state/skeleton/_mixins.scss +2 -2
- package/scss/theme.scss +2 -0
- package/scss/theming/_configure-theme.scss +2 -2
- package/scss/theming/_daff-theme.scss +14 -4
- package/scss/theming/_index.scss +1 -1
- package/scss/theming/_theme-css-variables.scss +14 -12
- package/scss/theming/contrast/luminance/luminance.scss +8 -6
- package/scss/theming/illuminate/illuminate.scss +20 -17
- package/scss/typography/utilities/_index.scss +1 -1
- package/scss/typography/utilities/_variables.scss +1 -1
- package/sidebar/sidebar.module.d.ts +1 -1
- package/sidebar/src/sidebar-theme.scss +3 -3
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +6 -6
- package/src/atoms/form/input/input-theme.scss +2 -2
- package/src/atoms/form/native-select/native-select-theme.scss +3 -3
- package/switch/README.md +61 -0
- package/switch/examples/basic-switch/basic-switch.component.d.ts +8 -0
- package/switch/examples/disabled-switch/disabled-switch.component.d.ts +7 -0
- package/switch/examples/examples.d.ts +5 -0
- package/switch/examples/index.d.ts +1 -0
- package/switch/examples/loading-switch/loading-switch.component.d.ts +7 -0
- package/switch/examples/public_api.d.ts +6 -0
- package/switch/examples/switch-error/switch-error.component.d.ts +7 -0
- package/switch/examples/switch-label-positions/switch-label-positions.component.d.ts +12 -0
- package/switch/index.d.ts +1 -0
- package/switch/public_api.d.ts +2 -0
- package/switch/src/switch-theme.scss +31 -0
- package/switch/switch/label-position.d.ts +10 -0
- package/switch/switch/switch.component.d.ts +53 -0
- package/switch/switch.d.ts +3 -0
- package/tabs/src/tabs-theme.scss +9 -9
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +5 -4
- package/tabs/tabs/tabs.component.d.ts +1 -2
- package/toast/src/toast-theme.scss +18 -18
- package/toast/toast.module.d.ts +1 -1
- package/tree/src/tree-theme.scss +11 -11
- package/tree/tree.module.d.ts +1 -1
- package/scss/core/map/map-deep-check/map-deep-check.spec.scss +0 -43
- package/scss/core/map/map-deep-get/map-deep-get.spec.scss +0 -25
- package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
- package/src/atoms/form/radio/radio.scss +0 -0
@@ -3,7 +3,9 @@ import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "./accordion/accordion/accordion.component";
|
4
4
|
import * as i3 from "./accordion/accordion-item/accordion-item.component";
|
5
5
|
import * as i4 from "./accordion/accordion-item-title/accordion-item-title.directive";
|
6
|
-
/**
|
6
|
+
/**
|
7
|
+
* @deprecated in favor of {@link DAFF_ACCORDION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
8
|
+
*/
|
7
9
|
export declare class DaffAccordionModule {
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccordionModule, never>;
|
9
11
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAccordionModule, never, [typeof i1.CommonModule, typeof i2.DaffAccordionComponent, typeof i3.DaffAccordionItemComponent, typeof i4.DaffAccordionItemTitleDirective], [typeof i2.DaffAccordionComponent, typeof i3.DaffAccordionItemComponent, typeof i4.DaffAccordionItemTitleDirective]>;
|
@@ -3,8 +3,8 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-accordion-theme($theme) {
|
6
|
-
$neutral: core.daff-map-
|
7
|
-
$base: core.daff-map-
|
6
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
7
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
8
8
|
|
9
9
|
.daff-accordion-item {
|
10
10
|
border-top: 1px solid theming.daff-illuminate($base, $neutral, 2);
|
@@ -12,9 +12,9 @@
|
|
12
12
|
&:last-child {
|
13
13
|
border-bottom: 1px solid theming.daff-illuminate($base, $neutral, 2);
|
14
14
|
}
|
15
|
-
|
15
|
+
|
16
16
|
&__header {
|
17
|
-
|
17
|
+
&::after {
|
18
18
|
border-color: currentColor;
|
19
19
|
}
|
20
20
|
}
|
package/article/README.md
CHANGED
@@ -4,7 +4,7 @@ Article provides styles to common element selectors to create an article in a co
|
|
4
4
|
## Overview
|
5
5
|
Article can be used on any content page that displays large blocks of text-driven information. It's meant to be used as a standalone element and should not be nested inside any other components that may change the background color from the anticipated one. In the event that you must nest an article inside another component, please ensure that you set the article's background color to the default body color.
|
6
6
|
|
7
|
-
## Supported
|
7
|
+
## Supported elements
|
8
8
|
|
9
9
|
### Headings
|
10
10
|
<design-land-example-viewer-container example="article-headings"></design-land-example-viewer-container>
|
@@ -24,10 +24,10 @@ The link style in an article uses the default browser link style.
|
|
24
24
|
|
25
25
|
### Lists
|
26
26
|
|
27
|
-
#### Unordered
|
27
|
+
#### Unordered list
|
28
28
|
<design-land-example-viewer-container example="article-ul"></design-land-example-viewer-container>
|
29
29
|
|
30
|
-
#### Ordered
|
30
|
+
#### Ordered list
|
31
31
|
<design-land-example-viewer-container example="article-ol"></design-land-example-viewer-container>
|
32
32
|
|
33
33
|
### Code
|
@@ -39,15 +39,14 @@ These are styles for inline and multiline blocks of code.
|
|
39
39
|
#### Code blocks
|
40
40
|
<design-land-example-viewer-container example="article-code-block"></design-land-example-viewer-container>
|
41
41
|
|
42
|
-
### Horizontal
|
42
|
+
### Horizontal rules
|
43
43
|
<design-land-example-viewer-container example="article-hr"></design-land-example-viewer-container>
|
44
44
|
|
45
45
|
### Blockquote
|
46
46
|
<design-land-example-viewer-container example="article-blockquote"></design-land-example-viewer-container>
|
47
47
|
|
48
48
|
## Encapsulation
|
49
|
-
|
50
|
-
Articles also support other custom "non-native" components like [accordions](../accordion/README.md), [media galleries](../media-gallery/README.md), and [lists](../list/README.md). Unlike typical HTML (<p>, <ol>, <ul>, etc) content, these components must be style encaspulated to prevent article styles bleeding down from the article into their content. Many Daffodil components support this out of the box. If you have a custom component that you would like to place inside an article, you can use the `DaffArticleEncapsulatedDirective` on your component to prevent article styles bleeding into your component.
|
49
|
+
Articles also support other custom "non-native" components like [accordions](/libs/design/accordion/README.md), [media galleries](/libs/design/media-gallery/README.md), and [lists](/libs/design/list/README.md). Unlike typical HTML (`<p>`, `<ol>`, `<ul>`, etc) content, these components must be style encaspulated to prevent article styles bleeding down from the article into their content. Many Daffodil components support this out of the box. If you have a custom component that you would like to place inside an article, you can use the `DaffArticleEncapsulatedDirective` on your component to prevent article styles bleeding into your component.
|
51
50
|
|
52
51
|
## Usage
|
53
52
|
|
@@ -2,7 +2,9 @@ import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/common";
|
3
3
|
import * as i2 from "./article/article.component";
|
4
4
|
import * as i3 from "./article-meta/article-meta.directive";
|
5
|
-
/**
|
5
|
+
/**
|
6
|
+
* @deprecated in favor of {@link DAFF_ARTICLE_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
7
|
+
*/
|
6
8
|
export declare class DaffArticleModule {
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffArticleModule, never>;
|
8
10
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffArticleModule, never, [typeof i1.CommonModule, typeof i2.DaffArticleComponent, typeof i3.DaffArticleMetaDirective], [typeof i2.DaffArticleComponent, typeof i3.DaffArticleMetaDirective]>;
|
@@ -4,14 +4,14 @@
|
|
4
4
|
@use '../../scss/theming';
|
5
5
|
|
6
6
|
@mixin daff-article-theme($theme) {
|
7
|
-
$primary: map
|
8
|
-
$secondary: map
|
9
|
-
$tertiary: map
|
10
|
-
$base: core.daff-map-
|
11
|
-
$base-contrast: core.daff-map-
|
12
|
-
$white: core.daff-map-
|
13
|
-
$black: core.daff-map-
|
14
|
-
$neutral: core.daff-map-
|
7
|
+
$primary: core.daff-map-get($theme, primary);
|
8
|
+
$secondary: core.daff-map-get($theme, secondary);
|
9
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
10
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
11
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
12
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
13
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
14
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
15
15
|
|
16
16
|
$text-color: theming.daff-illuminate($base-contrast, $neutral, 2);
|
17
17
|
$table-border-color: theming.daff-illuminate($base, $neutral, 2);
|
@@ -11,7 +11,7 @@ export declare class DaffFormFieldComponent implements DoCheck, AfterContentInit
|
|
11
11
|
* The tracking property used to determine if the parent form has been submitted,
|
12
12
|
* and thus show an error message (even if the field hasn't been touched).
|
13
13
|
*
|
14
|
-
* @deprecated Deprecated in version 0.78.0. Will be removed in version 0.
|
14
|
+
* @deprecated Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
15
15
|
*/
|
16
16
|
formSubmitted: boolean;
|
17
17
|
/**
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./breadcrumb/breadcrumb.component";
|
3
3
|
import * as i2 from "./breadcrumb-item/breadcrumb-item.directive";
|
4
|
-
/**
|
4
|
+
/**
|
5
|
+
* @deprecated in favor of {@link DAFF_BREADCRUMB_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
6
|
+
*/
|
5
7
|
export declare class DaffBreadcrumbModule {
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbModule, never>;
|
7
9
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffBreadcrumbModule, never, [typeof i1.DaffBreadcrumbComponent, typeof i2.DaffBreadcrumbItemDirective], [typeof i1.DaffBreadcrumbComponent, typeof i2.DaffBreadcrumbItemDirective]>;
|
@@ -3,9 +3,9 @@
|
|
3
3
|
@use '../../scss/theming';
|
4
4
|
|
5
5
|
@mixin daff-breadcrumb-theme($theme) {
|
6
|
-
$base: core.daff-map-
|
7
|
-
$base-contrast: core.daff-map-
|
8
|
-
$neutral: core.daff-map-
|
6
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
7
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
8
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
9
9
|
|
10
10
|
.daff-breadcrumb__item {
|
11
11
|
color: theming.daff-illuminate($base-contrast, $neutral, 4);
|
@@ -7,7 +7,9 @@ import * as i5 from "./button/raised/raised.component";
|
|
7
7
|
import * as i6 from "./button/stroked/stroked.component";
|
8
8
|
import * as i7 from "./button/underline/underline.component";
|
9
9
|
import * as i8 from "@daffodil/design";
|
10
|
-
/**
|
10
|
+
/**
|
11
|
+
* @deprecated in favor of {@link DAFF_BUTTON_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
12
|
+
*/
|
11
13
|
export declare class DaffButtonModule {
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonModule, never>;
|
13
15
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffButtonModule, never, [typeof i1.CommonModule, typeof i2.DaffButtonComponent, typeof i3.DaffFlatButtonComponent, typeof i4.DaffIconButtonComponent, typeof i5.DaffRaisedButtonComponent, typeof i6.DaffStrokedButtonComponent, typeof i7.DaffUnderlineButtonComponent], [typeof i2.DaffButtonComponent, typeof i3.DaffFlatButtonComponent, typeof i4.DaffIconButtonComponent, typeof i5.DaffRaisedButtonComponent, typeof i6.DaffStrokedButtonComponent, typeof i7.DaffUnderlineButtonComponent, typeof i8.DaffPrefixSuffixModule]>;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
background-color: $base-color;
|
11
11
|
color: theming.daff-text-contrast($base-color);
|
12
12
|
|
13
|
-
|
13
|
+
&::after {
|
14
14
|
background: $hover-color;
|
15
15
|
}
|
16
16
|
|
@@ -21,25 +21,25 @@
|
|
21
21
|
&:active {
|
22
22
|
color: theming.daff-text-contrast($active-color);
|
23
23
|
|
24
|
-
|
24
|
+
&::after {
|
25
25
|
background: $active-color;
|
26
26
|
}
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
30
|
@mixin daff-button-theme($theme) {
|
31
|
-
$primary: map
|
32
|
-
$secondary: map
|
33
|
-
$tertiary: map
|
34
|
-
$info: map
|
35
|
-
$warn: map
|
36
|
-
$critical: map
|
37
|
-
$success: map
|
38
|
-
$base: core.daff-map-
|
39
|
-
$base-contrast: core.daff-map-
|
40
|
-
$white: core.daff-map-
|
41
|
-
$black: core.daff-map-
|
42
|
-
$neutral: core.daff-map-
|
31
|
+
$primary: core.daff-map-get($theme, primary);
|
32
|
+
$secondary: core.daff-map-get($theme, secondary);
|
33
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
34
|
+
$info: core.daff-map-get($theme, informational);
|
35
|
+
$warn: core.daff-map-get($theme, warn);
|
36
|
+
$critical: core.daff-map-get($theme, critical);
|
37
|
+
$success: core.daff-map-get($theme, success);
|
38
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
39
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
40
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
41
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
42
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
43
43
|
|
44
44
|
.daff-button {
|
45
45
|
@include daff-button-theme-variant(
|
@@ -35,7 +35,7 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
@mixin daff-button-background($border-radius) {
|
38
|
-
|
38
|
+
&::after {
|
39
39
|
content: '';
|
40
40
|
border-radius: $border-radius;
|
41
41
|
position: absolute;
|
@@ -47,7 +47,7 @@
|
|
47
47
|
|
48
48
|
&:hover,
|
49
49
|
&:active {
|
50
|
-
|
50
|
+
&::after {
|
51
51
|
opacity: 1;
|
52
52
|
}
|
53
53
|
}
|
@@ -76,4 +76,4 @@
|
|
76
76
|
height: 3.5rem;
|
77
77
|
padding: 0 1.5rem;
|
78
78
|
}
|
79
|
-
}
|
79
|
+
}
|
@@ -2,13 +2,10 @@
|
|
2
2
|
@use '../../../../scss/theming';
|
3
3
|
@use '../../../../scss/core';
|
4
4
|
|
5
|
-
@mixin daff-flat-button-theme-variant(
|
6
|
-
$base-color,
|
7
|
-
$active-color
|
8
|
-
) {
|
5
|
+
@mixin daff-flat-button-theme-variant($base-color, $active-color) {
|
9
6
|
color: $base-color;
|
10
7
|
|
11
|
-
|
8
|
+
&::after {
|
12
9
|
background-color: $base-color;
|
13
10
|
}
|
14
11
|
|
@@ -19,42 +16,44 @@
|
|
19
16
|
&:active {
|
20
17
|
color: theming.daff-text-contrast($active-color);
|
21
18
|
|
22
|
-
|
19
|
+
&::after {
|
23
20
|
background-color: $active-color;
|
24
21
|
}
|
25
22
|
}
|
26
23
|
}
|
27
24
|
|
28
25
|
@mixin daff-flat-button-theme($theme) {
|
29
|
-
$primary: map
|
30
|
-
$secondary: map
|
31
|
-
$tertiary: map
|
32
|
-
$info: map
|
33
|
-
$warn: map
|
34
|
-
$critical: map
|
35
|
-
$success: map
|
36
|
-
$base: core.daff-map-
|
37
|
-
$base-contrast: core.daff-map-
|
38
|
-
$white: core.daff-map-
|
39
|
-
$black: core.daff-map-
|
40
|
-
$neutral: core.daff-map-
|
26
|
+
$primary: core.daff-map-get($theme, primary);
|
27
|
+
$secondary: core.daff-map-get($theme, secondary);
|
28
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
29
|
+
$info: core.daff-map-get($theme, informational);
|
30
|
+
$warn: core.daff-map-get($theme, warn);
|
31
|
+
$critical: core.daff-map-get($theme, critical);
|
32
|
+
$success: core.daff-map-get($theme, success);
|
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');
|
41
38
|
|
42
39
|
.daff-flat-button {
|
43
40
|
color: currentColor;
|
44
41
|
|
45
|
-
|
42
|
+
&::after {
|
46
43
|
background-color: theming.daff-illuminate($base, $neutral, 2);
|
47
44
|
}
|
48
45
|
|
49
46
|
&:active {
|
50
|
-
|
47
|
+
&::after {
|
51
48
|
background-color: theming.daff-illuminate($base, $neutral, 3);
|
52
49
|
}
|
53
50
|
}
|
54
51
|
|
55
52
|
&:hover,
|
56
53
|
&:active {
|
57
|
-
color: theming.daff-text-contrast(
|
54
|
+
color: theming.daff-text-contrast(
|
55
|
+
theming.daff-illuminate($base, $neutral, 2)
|
56
|
+
);
|
58
57
|
}
|
59
58
|
|
60
59
|
&.daff-primary {
|
@@ -113,7 +112,7 @@
|
|
113
112
|
&:hover,
|
114
113
|
&:focus,
|
115
114
|
&:active {
|
116
|
-
|
115
|
+
&::after {
|
117
116
|
background: transparent;
|
118
117
|
}
|
119
118
|
}
|
@@ -13,8 +13,7 @@
|
|
13
13
|
color: $hover-color;
|
14
14
|
@if $base-color == currentColor {
|
15
15
|
opacity: 0.8;
|
16
|
-
}
|
17
|
-
@else {
|
16
|
+
} @else {
|
18
17
|
opacity: 1;
|
19
18
|
}
|
20
19
|
}
|
@@ -25,18 +24,18 @@
|
|
25
24
|
}
|
26
25
|
|
27
26
|
@mixin daff-icon-button-theme($theme) {
|
28
|
-
$primary: map
|
29
|
-
$secondary: map
|
30
|
-
$tertiary: map
|
31
|
-
$info: map
|
32
|
-
$warn: map
|
33
|
-
$critical: map
|
34
|
-
$success: map
|
35
|
-
$base: core.daff-map-
|
36
|
-
$base-contrast: core.daff-map-
|
37
|
-
$white: core.daff-map-
|
38
|
-
$black: core.daff-map-
|
39
|
-
$neutral: core.daff-map-
|
27
|
+
$primary: core.daff-map-get($theme, primary);
|
28
|
+
$secondary: core.daff-map-get($theme, secondary);
|
29
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
30
|
+
$info: core.daff-map-get($theme, informational);
|
31
|
+
$warn: core.daff-map-get($theme, warn);
|
32
|
+
$critical: core.daff-map-get($theme, critical);
|
33
|
+
$success: core.daff-map-get($theme, success);
|
34
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
35
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
36
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
37
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
38
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
40
39
|
|
41
40
|
.daff-icon-button {
|
42
41
|
@include daff-icon-button-theme-variant(
|
@@ -2,30 +2,29 @@
|
|
2
2
|
@use '../../../../scss/theming';
|
3
3
|
@use '../../../../scss/core';
|
4
4
|
|
5
|
-
@mixin daff-raised-button-theme-variant(
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
@mixin daff-raised-button-theme-variant($base-color) {
|
6
|
+
@if theming.daff-contrast-ratio(
|
7
|
+
$base-color,
|
8
|
+
theming.daff-text-contrast($base-color)
|
9
|
+
) < 4.5 {
|
9
10
|
@error 'Button Initial State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
|
10
11
|
}
|
11
12
|
|
12
|
-
@if theming.daff-contrast-ratio(
|
13
|
-
|
13
|
+
@if theming.daff-contrast-ratio(
|
14
|
+
$base-color,
|
15
|
+
theming.daff-text-contrast($base-color)
|
16
|
+
) < 4.5 {
|
17
|
+
@error 'Button Hover State: ' + map.get(a11y.$wcag-aa-errors, 'text-contrast');
|
14
18
|
}
|
15
19
|
|
16
20
|
$black: theming.daff-color(theming.$daff-neutral, 110);
|
17
|
-
|
18
21
|
background-color: $base-color;
|
19
22
|
border: 1px solid $base-color;
|
20
|
-
box-shadow:
|
21
|
-
0 3px 5px rgba($black, 0.12),
|
22
|
-
0 1px 3px rgba($black, 0.08);
|
23
|
+
box-shadow: 0 3px 5px rgba($black, 0.12), 0 1px 3px rgba($black, 0.08);
|
23
24
|
color: theming.daff-text-contrast($base-color);
|
24
25
|
|
25
|
-
|
26
|
-
box-shadow:
|
27
|
-
0 6px 12px rgba($black, 0.08),
|
28
|
-
0 4px 6px rgba($black, 0.04);
|
26
|
+
&::after {
|
27
|
+
box-shadow: 0 6px 12px rgba($black, 0.08), 0 4px 6px rgba($black, 0.04);
|
29
28
|
}
|
30
29
|
|
31
30
|
&:hover {
|
@@ -35,18 +34,18 @@
|
|
35
34
|
}
|
36
35
|
|
37
36
|
@mixin daff-raised-button-theme($theme) {
|
38
|
-
$primary: map
|
39
|
-
$secondary: map
|
40
|
-
$tertiary: map
|
41
|
-
$info: map
|
42
|
-
$warn: map
|
43
|
-
$critical: map
|
44
|
-
$success: map
|
45
|
-
$base: core.daff-map-
|
46
|
-
$base-contrast: core.daff-map-
|
47
|
-
$white: core.daff-map-
|
48
|
-
$black: core.daff-map-
|
49
|
-
$neutral: core.daff-map-
|
37
|
+
$primary: core.daff-map-get($theme, primary);
|
38
|
+
$secondary: core.daff-map-get($theme, secondary);
|
39
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
40
|
+
$info: core.daff-map-get($theme, informational);
|
41
|
+
$warn: core.daff-map-get($theme, warn);
|
42
|
+
$critical: core.daff-map-get($theme, critical);
|
43
|
+
$success: core.daff-map-get($theme, success);
|
44
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
45
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
46
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
47
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
48
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
50
49
|
|
51
50
|
.daff-raised-button {
|
52
51
|
@include daff-raised-button-theme-variant(
|
@@ -54,21 +53,15 @@
|
|
54
53
|
);
|
55
54
|
|
56
55
|
&.daff-primary {
|
57
|
-
@include daff-raised-button-theme-variant(
|
58
|
-
theming.daff-color($primary)
|
59
|
-
);
|
56
|
+
@include daff-raised-button-theme-variant(theming.daff-color($primary));
|
60
57
|
}
|
61
58
|
|
62
59
|
&.daff-secondary {
|
63
|
-
@include daff-raised-button-theme-variant(
|
64
|
-
theming.daff-color($secondary)
|
65
|
-
);
|
60
|
+
@include daff-raised-button-theme-variant(theming.daff-color($secondary));
|
66
61
|
}
|
67
62
|
|
68
63
|
&.daff-tertiary {
|
69
|
-
@include daff-raised-button-theme-variant(
|
70
|
-
theming.daff-color($tertiary)
|
71
|
-
);
|
64
|
+
@include daff-raised-button-theme-variant(theming.daff-color($tertiary));
|
72
65
|
}
|
73
66
|
|
74
67
|
&.daff-black {
|
@@ -94,27 +87,21 @@
|
|
94
87
|
);
|
95
88
|
color: theming.daff-illuminate($base, $neutral, 5);
|
96
89
|
|
97
|
-
|
90
|
+
&::after {
|
98
91
|
box-shadow: none;
|
99
92
|
}
|
100
93
|
}
|
101
94
|
|
102
95
|
&.daff-warn {
|
103
|
-
@include daff-raised-button-theme-variant(
|
104
|
-
theming.daff-color($warn)
|
105
|
-
);
|
96
|
+
@include daff-raised-button-theme-variant(theming.daff-color($warn));
|
106
97
|
}
|
107
98
|
|
108
99
|
&.daff-critical {
|
109
|
-
@include daff-raised-button-theme-variant(
|
110
|
-
theming.daff-color($critical)
|
111
|
-
);
|
100
|
+
@include daff-raised-button-theme-variant(theming.daff-color($critical));
|
112
101
|
}
|
113
102
|
|
114
103
|
&.daff-success {
|
115
|
-
@include daff-raised-button-theme-variant(
|
116
|
-
theming.daff-color($success)
|
117
|
-
);
|
104
|
+
@include daff-raised-button-theme-variant(theming.daff-color($success));
|
118
105
|
}
|
119
106
|
}
|
120
107
|
}
|
@@ -2,15 +2,12 @@
|
|
2
2
|
@use '../../../../scss/theming';
|
3
3
|
@use '../../../../scss/core';
|
4
4
|
|
5
|
-
@mixin daff-stroked-button-theme-variant(
|
6
|
-
$base-color,
|
7
|
-
$active-color
|
8
|
-
) {
|
5
|
+
@mixin daff-stroked-button-theme-variant($base-color, $active-color) {
|
9
6
|
border: 1px solid $base-color;
|
10
7
|
color: $base-color;
|
11
8
|
background-color: transparent;
|
12
9
|
|
13
|
-
|
10
|
+
&::after {
|
14
11
|
background-color: $base-color;
|
15
12
|
}
|
16
13
|
|
@@ -22,32 +19,32 @@
|
|
22
19
|
border: 1px solid $active-color;
|
23
20
|
color: theming.daff-text-contrast($active-color);
|
24
21
|
|
25
|
-
|
22
|
+
&::after {
|
26
23
|
background-color: $active-color;
|
27
24
|
}
|
28
25
|
}
|
29
26
|
}
|
30
27
|
|
31
28
|
@mixin daff-stroked-button-theme($theme) {
|
32
|
-
$primary: map
|
33
|
-
$secondary: map
|
34
|
-
$tertiary: map
|
35
|
-
$info: map
|
36
|
-
$warn: map
|
37
|
-
$critical: map
|
38
|
-
$success: map
|
39
|
-
$base: core.daff-map-
|
40
|
-
$base-contrast: core.daff-map-
|
41
|
-
$white: core.daff-map-
|
42
|
-
$black: core.daff-map-
|
43
|
-
$neutral: core.daff-map-
|
29
|
+
$primary: core.daff-map-get($theme, primary);
|
30
|
+
$secondary: core.daff-map-get($theme, secondary);
|
31
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
32
|
+
$info: core.daff-map-get($theme, informational);
|
33
|
+
$warn: core.daff-map-get($theme, warn);
|
34
|
+
$critical: core.daff-map-get($theme, critical);
|
35
|
+
$success: core.daff-map-get($theme, success);
|
36
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
37
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
38
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
39
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
40
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
44
41
|
|
45
42
|
.daff-stroked-button {
|
46
43
|
background: transparent;
|
47
44
|
border: 1px solid theming.daff-illuminate($base, $neutral, 5);
|
48
45
|
color: currentColor;
|
49
46
|
|
50
|
-
|
47
|
+
&::after {
|
51
48
|
background: theming.daff-illuminate($base, $neutral, 2);
|
52
49
|
}
|
53
50
|
|
@@ -64,7 +61,7 @@
|
|
64
61
|
theming.daff-illuminate($base, $neutral, 3)
|
65
62
|
);
|
66
63
|
|
67
|
-
|
64
|
+
&::after {
|
68
65
|
background: theming.daff-illuminate($base, $neutral, 3);
|
69
66
|
}
|
70
67
|
}
|
@@ -127,7 +124,7 @@
|
|
127
124
|
&:hover {
|
128
125
|
color: theming.daff-illuminate($base, $neutral, 5);
|
129
126
|
|
130
|
-
|
127
|
+
&::after {
|
131
128
|
background-color: transparent;
|
132
129
|
opacity: 0;
|
133
130
|
}
|
@@ -2,9 +2,7 @@
|
|
2
2
|
@use '../../../../scss/theming';
|
3
3
|
@use '../../../../scss/core';
|
4
4
|
|
5
|
-
@mixin daff-underline-button-theme-variant(
|
6
|
-
$base-color: currentColor,
|
7
|
-
) {
|
5
|
+
@mixin daff-underline-button-theme-variant($base-color: currentColor) {
|
8
6
|
color: $base-color;
|
9
7
|
|
10
8
|
&::after {
|
@@ -13,18 +11,18 @@
|
|
13
11
|
}
|
14
12
|
|
15
13
|
@mixin daff-underline-button-theme($theme) {
|
16
|
-
$primary: map
|
17
|
-
$secondary: map
|
18
|
-
$tertiary: map
|
19
|
-
$info: map
|
20
|
-
$warn: map
|
21
|
-
$critical: map
|
22
|
-
$success: map
|
23
|
-
$base: core.daff-map-
|
24
|
-
$base-contrast: core.daff-map-
|
25
|
-
$white: core.daff-map-
|
26
|
-
$black: core.daff-map-
|
27
|
-
$neutral: core.daff-map-
|
14
|
+
$primary: core.daff-map-get($theme, primary);
|
15
|
+
$secondary: core.daff-map-get($theme, secondary);
|
16
|
+
$tertiary: core.daff-map-get($theme, tertiary);
|
17
|
+
$info: core.daff-map-get($theme, informational);
|
18
|
+
$warn: core.daff-map-get($theme, warn);
|
19
|
+
$critical: core.daff-map-get($theme, critical);
|
20
|
+
$success: core.daff-map-get($theme, success);
|
21
|
+
$base: core.daff-map-get($theme, 'core', 'base');
|
22
|
+
$base-contrast: core.daff-map-get($theme, 'core', 'base-contrast');
|
23
|
+
$white: core.daff-map-get($theme, 'core', 'white');
|
24
|
+
$black: core.daff-map-get($theme, 'core', 'black');
|
25
|
+
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
28
26
|
|
29
27
|
.daff-underline-button {
|
30
28
|
@include daff-underline-button-theme-variant(
|
@@ -73,9 +71,7 @@
|
|
73
71
|
}
|
74
72
|
|
75
73
|
&.daff-warn {
|
76
|
-
@include daff-underline-button-theme-variant(
|
77
|
-
theming.daff-color($warn)
|
78
|
-
);
|
74
|
+
@include daff-underline-button-theme-variant(theming.daff-color($warn));
|
79
75
|
}
|
80
76
|
|
81
77
|
&.daff-critical {
|
@@ -6,7 +6,9 @@ import * as i4 from "./callout-title/callout-title.directive";
|
|
6
6
|
import * as i5 from "./callout-subtitle/callout-subtitle.directive";
|
7
7
|
import * as i6 from "./callout-tagline/callout-tagline.directive";
|
8
8
|
import * as i7 from "./callout-body/callout-body.directive";
|
9
|
-
/**
|
9
|
+
/**
|
10
|
+
* @deprecated in favor of {@link DAFF_CALLOUT_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
11
|
+
*/
|
10
12
|
export declare class DaffCalloutModule {
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCalloutModule, never>;
|
12
14
|
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCalloutModule, never, [typeof i1.CommonModule, typeof i2.DaffCalloutComponent, typeof i3.DaffCalloutIconDirective, typeof i4.DaffCalloutTitleDirective, typeof i5.DaffCalloutSubtitleDirective, typeof i6.DaffCalloutTaglineDirective, typeof i7.DaffCalloutBodyDirective], [typeof i2.DaffCalloutComponent, typeof i3.DaffCalloutIconDirective, typeof i5.DaffCalloutSubtitleDirective, typeof i4.DaffCalloutTitleDirective, typeof i6.DaffCalloutTaglineDirective, typeof i7.DaffCalloutBodyDirective]>;
|