@daffodil/design 0.78.0 → 0.79.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/atoms/form/form-field/form-field/form-field.component.d.ts +1 -1
- package/button/README.md +3 -3
- package/button/button/basic/button.component.d.ts +28 -0
- package/button/button/button-base.directive.d.ts +51 -0
- package/button/button/flat/flat.component.d.ts +28 -0
- package/button/button/icon/icon.component.d.ts +24 -0
- package/button/button/raised/raised.component.d.ts +28 -0
- package/button/button/stroked/stroked.component.d.ts +28 -0
- package/button/button/underline/underline.component.d.ts +28 -0
- package/button/button.d.ts +7 -2
- package/button/button.module.d.ts +8 -3
- package/button/public_api.d.ts +6 -1
- package/button/src/button/basic/button-theme.scss +145 -0
- package/button/src/button/button-base.scss +79 -0
- package/button/src/button/flat/flat-theme.scss +143 -0
- package/button/src/button/icon/icon-theme.scss +141 -0
- package/button/src/button/raised/raised-theme.scss +120 -0
- package/button/src/button/stroked/stroked-theme.scss +158 -0
- package/button/src/button/underline/underline-theme.scss +93 -0
- package/card/card.module.d.ts +1 -1
- package/container/container.module.d.ts +1 -1
- package/core/statusable/statusable.d.ts +5 -3
- package/core/statusable/statusable.directive.d.ts +6 -4
- package/esm2022/accordion/accordion/animation/accordion-animation.mjs +1 -4
- package/esm2022/atoms/form/form-field/form-field/form-field.component.mjs +2 -2
- package/esm2022/button/button/basic/button.component.mjs +48 -0
- package/esm2022/button/button/button-base.directive.mjs +105 -0
- package/esm2022/button/button/flat/flat.component.mjs +48 -0
- package/esm2022/button/button/icon/icon.component.mjs +44 -0
- package/esm2022/button/button/raised/raised.component.mjs +48 -0
- package/esm2022/button/button/stroked/stroked.component.mjs +48 -0
- package/esm2022/button/button/underline/underline.component.mjs +48 -0
- package/esm2022/button/button.mjs +12 -2
- package/esm2022/button/button.module.mjs +34 -4
- package/esm2022/button/examples/basic-button/basic-button.component.mjs +4 -6
- package/esm2022/button/examples/flat-button/flat-button.component.mjs +4 -6
- package/esm2022/button/examples/icon-button/icon-button.component.mjs +4 -6
- package/esm2022/button/examples/raised-button/raised-button.component.mjs +4 -6
- package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +2 -2
- package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +3 -3
- package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +4 -6
- package/esm2022/button/examples/underline-button/underline-button.component.mjs +4 -6
- package/esm2022/button/public_api.mjs +7 -2
- package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +5 -7
- package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +5 -7
- package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +5 -6
- package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +4 -6
- package/esm2022/card/card.module.mjs +2 -2
- package/esm2022/card/examples/basic-card/basic-card.component.mjs +4 -6
- package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +5 -7
- package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +4 -5
- package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +4 -5
- package/esm2022/container/container.module.mjs +2 -2
- package/esm2022/core/statusable/statusable.directive.mjs +7 -5
- package/esm2022/core/statusable/statusable.mjs +3 -2
- package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +4 -6
- package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +5 -7
- package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +5 -7
- package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +4 -6
- 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/list.module.mjs +2 -2
- package/esm2022/loading-icon/examples/examples.mjs +1 -3
- package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +2 -2
- package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +5 -20
- package/esm2022/loading-icon/loading-icon.module.mjs +2 -2
- package/esm2022/media-gallery/helpers/media-gallery-token.mjs +7 -3
- package/esm2022/media-gallery/media-gallery.module.mjs +2 -2
- package/esm2022/media-gallery/thumbnail/thumbnail-compat.token.mjs +8 -3
- package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +5 -7
- package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +4 -6
- package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +4 -6
- package/esm2022/modal/modal-header/modal-header.component.mjs +4 -6
- package/esm2022/modal/modal.module.mjs +2 -2
- package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +4 -6
- package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +4 -6
- package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +5 -7
- package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +4 -6
- package/esm2022/navbar/navbar.module.mjs +2 -2
- package/esm2022/notification/examples/default-notification/default-notification.component.mjs +1 -3
- package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +1 -3
- package/esm2022/notification/examples/notification-status/notification-status.component.mjs +3 -5
- package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +4 -5
- package/esm2022/notification/notification/notification.component.mjs +3 -3
- 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/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +5 -6
- package/esm2022/sidebar/sidebar-viewport/scroll-token/scroll.token.mjs +9 -3
- package/esm2022/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +3 -3
- package/esm2022/sidebar/sidebar.module.mjs +2 -2
- package/esm2022/tabs/daffodil-design-tabs.mjs +5 -0
- package/esm2022/tabs/examples/basic-tabs/basic-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/custom-select-tabs/custom-select-tabs.component.mjs +34 -0
- package/esm2022/tabs/examples/daffodil-design-tabs-examples.mjs +5 -0
- package/esm2022/tabs/examples/disabled-tabs/disabled-tabs.component.mjs +22 -0
- package/esm2022/tabs/examples/index.mjs +2 -0
- package/esm2022/tabs/examples/initially-select-tab/initially-select-tab.component.mjs +22 -0
- package/esm2022/tabs/examples/public_api.mjs +11 -0
- package/esm2022/tabs/index.mjs +2 -0
- package/esm2022/tabs/public_api.mjs +6 -0
- package/esm2022/tabs/tabs/tab/tab.component.mjs +86 -0
- package/esm2022/tabs/tabs/tab-activator/tab-activator.component.mjs +83 -0
- package/esm2022/tabs/tabs/tab-label/tab-label.component.mjs +33 -0
- package/esm2022/tabs/tabs/tab-panel/tab-panel.component.mjs +68 -0
- package/esm2022/tabs/tabs/tabs.component.mjs +161 -0
- package/esm2022/tabs/tabs.mjs +13 -0
- package/esm2022/text-snippet/daffodil-design-text-snippet.mjs +5 -0
- package/esm2022/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.mjs +14 -0
- package/esm2022/text-snippet/examples/daffodil-design-text-snippet-examples.mjs +5 -0
- package/esm2022/text-snippet/examples/index.mjs +2 -0
- package/esm2022/text-snippet/examples/public_api.mjs +5 -0
- package/esm2022/text-snippet/index.mjs +2 -0
- package/esm2022/text-snippet/public_api.mjs +2 -0
- package/esm2022/text-snippet/text-snippet.component.mjs +46 -0
- package/esm2022/toast/examples/default-toast/default-toast.component.mjs +4 -6
- package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +4 -6
- package/esm2022/toast/examples/toast-status/toast-status.component.mjs +8 -10
- package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +4 -6
- package/esm2022/toast/options/daff-toast-options.mjs +7 -7
- package/esm2022/toast/toast/toast-provider.mjs +2 -2
- package/esm2022/toast/toast/toast-template.component.mjs +2 -2
- package/esm2022/toast/toast.module.mjs +2 -2
- package/esm2022/tree/tree.module.mjs +2 -2
- package/fesm2022/daffodil-design-accordion.mjs +0 -3
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +16 -16
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +305 -131
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +12 -13
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +10 -12
- package/fesm2022/daffodil-design-card-examples.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-checkbox-examples.mjs +5 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +1 -1
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +11 -13
- package/fesm2022/daffodil-design-hero-examples.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.mjs +1 -1
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +1 -13
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +5 -20
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +14 -4
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +3 -5
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +5 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +4 -5
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +11 -13
- package/fesm2022/daffodil-design-navbar-examples.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-examples.mjs +5 -9
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +3 -3
- 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-examples.mjs +4 -5
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +11 -5
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +93 -0
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-tabs.mjs +431 -0
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +25 -0
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -0
- package/fesm2022/daffodil-design-text-snippet.mjs +53 -0
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -0
- package/fesm2022/daffodil-design-toast-examples.mjs +13 -15
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +11 -10
- 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 +9 -6
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/hero.module.d.ts +1 -1
- package/image/README.md +4 -1
- package/image/image.module.d.ts +1 -1
- package/link-set/README.md +1 -1
- package/link-set/link-set.module.d.ts +1 -1
- package/list/list.module.d.ts +1 -1
- package/loading-icon/README.md +0 -5
- package/loading-icon/examples/examples.d.ts +2 -2
- package/loading-icon/loading-icon/loading-icon.component.d.ts +1 -9
- package/loading-icon/loading-icon.module.d.ts +1 -1
- package/media-gallery/README.md +4 -1
- package/media-gallery/helpers/media-gallery-token.d.ts +1 -2
- package/media-gallery/media-gallery.module.d.ts +1 -1
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +1 -5
- package/modal/modal.module.d.ts +1 -1
- package/navbar/navbar.module.d.ts +1 -1
- package/notification/README.md +2 -2
- package/notification/notification/notification.component.d.ts +1 -1
- package/notification/notification.module.d.ts +1 -1
- package/notification/src/notification-theme.scss +17 -13
- package/package.json +1 -1
- package/paginator/paginator.module.d.ts +1 -1
- package/progress-bar/progress-bar.module.d.ts +1 -1
- package/scss/theme.scss +13 -1
- package/scss/theming/_configure-theme.scss +60 -2
- package/scss/theming/_theme-css-variables.scss +1 -1
- package/sidebar/sidebar-viewport/scroll-token/scroll.token.d.ts +1 -7
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +1 -1
- package/sidebar/sidebar.module.d.ts +1 -1
- package/tabs/README.md +19 -0
- package/tabs/examples/basic-tabs/basic-tabs.component.d.ts +6 -0
- package/tabs/examples/custom-select-tabs/custom-select-tabs.component.d.ts +11 -0
- package/tabs/examples/disabled-tabs/disabled-tabs.component.d.ts +6 -0
- package/tabs/examples/index.d.ts +1 -0
- package/tabs/examples/initially-select-tab/initially-select-tab.component.d.ts +6 -0
- package/tabs/examples/public_api.d.ts +2 -0
- package/tabs/index.d.ts +1 -0
- package/tabs/public_api.d.ts +5 -0
- package/tabs/src/tabs-theme.scss +22 -0
- package/tabs/tabs/tab/tab.component.d.ts +57 -0
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +37 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +19 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +38 -0
- package/tabs/tabs/tabs.component.d.ts +104 -0
- package/tabs/tabs.d.ts +6 -0
- package/text-snippet/README.md +2 -0
- package/text-snippet/examples/basic-text-snippet/basic-text-snippet.component.d.ts +5 -0
- package/text-snippet/examples/index.d.ts +1 -0
- package/text-snippet/examples/public_api.d.ts +2 -0
- package/text-snippet/index.d.ts +1 -0
- package/text-snippet/public_api.d.ts +1 -0
- package/text-snippet/text-snippet.component.d.ts +19 -0
- package/toast/README.md +5 -5
- package/toast/options/daff-toast-options.d.ts +1 -3
- package/toast/src/toast-theme.scss +14 -10
- package/toast/toast/toast-provider.d.ts +1 -1
- package/toast/toast.module.d.ts +1 -1
- package/tree/tree.module.d.ts +1 -1
- package/button/button/button.component.d.ts +0 -80
- package/button/src/button-theme-variants/button.scss +0 -26
- package/button/src/button-theme-variants/flat.scss +0 -25
- package/button/src/button-theme-variants/icon.scss +0 -21
- package/button/src/button-theme-variants/raised.scss +0 -36
- package/button/src/button-theme-variants/stroked.scss +0 -28
- package/button/src/button-theme-variants/underline.scss +0 -9
- package/button/src/button-theme.scss +0 -574
- package/esm2022/button/button/button.component.mjs +0 -212
- package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +0 -15
- package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +0 -5
@@ -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
|
14
|
+
* @deprecated Deprecated in version 0.78.0. Will be removed in version 0.81.0.
|
15
15
|
*/
|
16
16
|
formSubmitted: boolean;
|
17
17
|
/**
|
package/button/README.md
CHANGED
@@ -34,7 +34,7 @@ Native `<button>` or `<a>` elements are always used in order to provide an easy,
|
|
34
34
|
## Usage
|
35
35
|
|
36
36
|
### Within a standalone component
|
37
|
-
To use button in a standalone component, import it directly into your custom component
|
37
|
+
To use button in a standalone component, import it directly into your custom component. Buttons can be imported individually or all together by using `DAFF_BUTTON_COMPONENTS`:
|
38
38
|
|
39
39
|
```ts
|
40
40
|
@Component({
|
@@ -42,7 +42,7 @@ To use button in a standalone component, import it directly into your custom com
|
|
42
42
|
templateUrl: './custom-component.component.html',
|
43
43
|
standalone: true,
|
44
44
|
imports: [
|
45
|
-
|
45
|
+
DaffButtonComponent,
|
46
46
|
],
|
47
47
|
})
|
48
48
|
export class CustomComponent {}
|
@@ -89,7 +89,7 @@ Supported colors: `primary | secondary | tertiary | black | white | theme | them
|
|
89
89
|
## Status Indicators
|
90
90
|
Buttons with status indicators can be used to distinguish what type of action it performs and its importance compared to other buttons in the same context.
|
91
91
|
|
92
|
-
Supported statuses: `warn |
|
92
|
+
Supported statuses: `warn | critical | success`
|
93
93
|
|
94
94
|
<design-land-example-viewer-container example="statusable-button"></design-land-example-viewer-container>
|
95
95
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffButtonComponent is a rectangular contained button with background color.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-button>
|
9
|
+
* <div daffPrefix></div>
|
10
|
+
* Button
|
11
|
+
* <div daffSuffix></div>
|
12
|
+
* </button>
|
13
|
+
*
|
14
|
+
* <a href="/" daff-button>
|
15
|
+
* <div daffPrefix></div>
|
16
|
+
* Linked button
|
17
|
+
* <div daffSuffix></div>
|
18
|
+
* </a>
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
export declare class DaffButtonComponent extends DaffButtonBaseDirective {
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
class: boolean;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffButtonComponent, "button[daff-button],a[daff-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
2
|
+
import { DaffPrefixable, DaffSuffixable } from '@daffodil/design';
|
3
|
+
import { DaffButtonSizableDirective } from './button-sizable.directive';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@daffodil/design";
|
6
|
+
import * as i2 from "./button-sizable.directive";
|
7
|
+
/**
|
8
|
+
* An _elementRef and an instance of renderer2 are needed for the button mixins
|
9
|
+
*/
|
10
|
+
declare class DaffButtonBase {
|
11
|
+
_elementRef: ElementRef;
|
12
|
+
_renderer: Renderer2;
|
13
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
14
|
+
}
|
15
|
+
declare const _daffButtonBase: (new (...args: any[]) => {
|
16
|
+
[x: string]: any;
|
17
|
+
_prefix: import("@daffodil/design").DaffPrefixDirective;
|
18
|
+
}) & (new (...args: any[]) => {
|
19
|
+
[x: string]: any;
|
20
|
+
_suffix: import("@daffodil/design").DaffSuffixDirective;
|
21
|
+
}) & typeof DaffButtonBase;
|
22
|
+
export declare class DaffButtonBaseDirective extends _daffButtonBase implements DaffPrefixable, DaffSuffixable {
|
23
|
+
private elementRef;
|
24
|
+
private renderer;
|
25
|
+
private size;
|
26
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, size: DaffButtonSizableDirective);
|
27
|
+
/**
|
28
|
+
* @docs-private
|
29
|
+
*/
|
30
|
+
get disabledClass(): any;
|
31
|
+
loading: boolean;
|
32
|
+
/**
|
33
|
+
* Set the `tabindex` to 0.
|
34
|
+
*/
|
35
|
+
tabindex: number;
|
36
|
+
_disabled: boolean;
|
37
|
+
/**
|
38
|
+
* The disabled state of the button.
|
39
|
+
*/
|
40
|
+
get disabled(): any;
|
41
|
+
set disabled(value: any);
|
42
|
+
get disabledAttribute(): boolean;
|
43
|
+
get ariaDisabled(): boolean;
|
44
|
+
/**
|
45
|
+
* Set the `tabindex` to -1 if the button is disabled.
|
46
|
+
*/
|
47
|
+
get disabledTabIndex(): number;
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.DaffButtonSizableDirective; inputs: { "size": "size"; }; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffColorableDirective; inputs: { "color": "color"; }; outputs: {}; }]>;
|
50
|
+
}
|
51
|
+
export {};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffFlatButtonComponent is a rectangular contained button no background.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-flat-button>
|
9
|
+
* <div daffPrefix></div>
|
10
|
+
* Flat Button
|
11
|
+
* <div daffSuffix></div>
|
12
|
+
* </button>
|
13
|
+
*
|
14
|
+
* <a href="/" daff-flat-button>
|
15
|
+
* <div daffPrefix></div>
|
16
|
+
* Linked flat button
|
17
|
+
* <div daffSuffix></div>
|
18
|
+
* </a>
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
export declare class DaffFlatButtonComponent extends DaffButtonBaseDirective {
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
class: boolean;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFlatButtonComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFlatButtonComponent, "button[daff-flat-button],a[daff-flat-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffIconButtonComponent is an icon button used with icon fonts.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-icon-button>
|
9
|
+
* <fa-icon [icon]="faPlus"></fa-icon>
|
10
|
+
* </button>
|
11
|
+
*
|
12
|
+
* <a href="/" daff-icon-button>
|
13
|
+
* <fa-icon [icon]="faPlus"></fa-icon>
|
14
|
+
* </a>
|
15
|
+
* ```
|
16
|
+
*/
|
17
|
+
export declare class DaffIconButtonComponent extends DaffButtonBaseDirective {
|
18
|
+
/**
|
19
|
+
* @docs-private
|
20
|
+
*/
|
21
|
+
class: boolean;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffIconButtonComponent, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffIconButtonComponent, "button[daff-icon-button],a[daff-icon-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
24
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffRaisedButtonComponent is a rectangular contained button with background color and elevation.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-raised-button>
|
9
|
+
* <div daffPrefix></div>
|
10
|
+
* Raised Button
|
11
|
+
* <div daffSuffix></div>
|
12
|
+
* </button>
|
13
|
+
*
|
14
|
+
* <a href="/" daff-raised-button>
|
15
|
+
* <div daffPrefix></div>
|
16
|
+
* Linked raised button
|
17
|
+
* <div daffSuffix></div>
|
18
|
+
* </a>
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
export declare class DaffRaisedButtonComponent extends DaffButtonBaseDirective {
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
class: boolean;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRaisedButtonComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRaisedButtonComponent, "button[daff-raised-button],a[daff-raised-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffStrokedButtonComponent is a rectangular outlined button with no background color.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-stroked-button>
|
9
|
+
* <div daffPrefix></div>
|
10
|
+
* Stroked Button
|
11
|
+
* <div daffSuffix></div>
|
12
|
+
* </button>
|
13
|
+
*
|
14
|
+
* <a href="/" daff-stroked-button>
|
15
|
+
* <div daffPrefix></div>
|
16
|
+
* Linked stroked button
|
17
|
+
* <div daffSuffix></div>
|
18
|
+
* </a>
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
export declare class DaffStrokedButtonComponent extends DaffButtonBaseDirective {
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
class: boolean;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffStrokedButtonComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffStrokedButtonComponent, "button[daff-stroked-button],a[daff-stroked-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* DaffUnderlineButtonComponent is a borderless button with a custom underline style.
|
5
|
+
*
|
6
|
+
* ## Usage
|
7
|
+
* ```html
|
8
|
+
* <button daff-underline-button>
|
9
|
+
* <div daffPrefix></div>
|
10
|
+
* Underline Button
|
11
|
+
* <div daffSuffix></div>
|
12
|
+
* </button>
|
13
|
+
*
|
14
|
+
* <a href="/" daff-underline-button>
|
15
|
+
* <div daffPrefix></div>
|
16
|
+
* Linked underline button
|
17
|
+
* <div daffSuffix></div>
|
18
|
+
* </a>
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
export declare class DaffUnderlineButtonComponent extends DaffButtonBaseDirective {
|
22
|
+
/**
|
23
|
+
* @docs-private
|
24
|
+
*/
|
25
|
+
class: boolean;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffUnderlineButtonComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffUnderlineButtonComponent, "button[daff-underline-button],a[daff-underline-button]", never, {}, {}, never, ["[daffPrefix]", "*", "[daffSuffix]"], true, never>;
|
28
|
+
}
|
package/button/button.d.ts
CHANGED
@@ -1,3 +1,8 @@
|
|
1
1
|
import { DaffPrefixSuffixModule } from '@daffodil/design';
|
2
|
-
import { DaffButtonComponent } from './button/button.component';
|
3
|
-
|
2
|
+
import { DaffButtonComponent } from './button/basic/button.component';
|
3
|
+
import { DaffFlatButtonComponent } from './button/flat/flat.component';
|
4
|
+
import { DaffIconButtonComponent } from './button/icon/icon.component';
|
5
|
+
import { DaffRaisedButtonComponent } from './button/raised/raised.component';
|
6
|
+
import { DaffStrokedButtonComponent } from './button/stroked/stroked.component';
|
7
|
+
import { DaffUnderlineButtonComponent } from './button/underline/underline.component';
|
8
|
+
export declare const DAFF_BUTTON_COMPONENTS: readonly [typeof DaffButtonComponent, typeof DaffPrefixSuffixModule, typeof DaffFlatButtonComponent, typeof DaffIconButtonComponent, typeof DaffRaisedButtonComponent, typeof DaffStrokedButtonComponent, typeof DaffUnderlineButtonComponent];
|
@@ -1,10 +1,15 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "@angular/common";
|
3
|
-
import * as i2 from "./button/button.component";
|
4
|
-
import * as i3 from "
|
3
|
+
import * as i2 from "./button/basic/button.component";
|
4
|
+
import * as i3 from "./button/flat/flat.component";
|
5
|
+
import * as i4 from "./button/icon/icon.component";
|
6
|
+
import * as i5 from "./button/raised/raised.component";
|
7
|
+
import * as i6 from "./button/stroked/stroked.component";
|
8
|
+
import * as i7 from "./button/underline/underline.component";
|
9
|
+
import * as i8 from "@daffodil/design";
|
5
10
|
/** @deprecated in favor of {@link DAFF_BUTTON_COMPONENTS} */
|
6
11
|
export declare class DaffButtonModule {
|
7
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffButtonModule, never, [typeof i1.CommonModule, typeof i2.DaffButtonComponent], [typeof i2.DaffButtonComponent, typeof i3.DaffPrefixSuffixModule]>;
|
13
|
+
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]>;
|
9
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffButtonModule>;
|
10
15
|
}
|
package/button/public_api.d.ts
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
export { DaffButtonModule } from './button.module';
|
2
2
|
export { DAFF_BUTTON_COMPONENTS } from './button';
|
3
|
-
export { DaffButtonComponent } from './button/button.component';
|
3
|
+
export { DaffButtonComponent } from './button/basic/button.component';
|
4
4
|
export { DaffButtonSizableDirective } from './button/button-sizable.directive';
|
5
|
+
export { DaffFlatButtonComponent } from './button/flat/flat.component';
|
6
|
+
export { DaffRaisedButtonComponent } from './button/raised/raised.component';
|
7
|
+
export { DaffStrokedButtonComponent } from './button/stroked/stroked.component';
|
8
|
+
export { DaffUnderlineButtonComponent } from './button/underline/underline.component';
|
9
|
+
export { DaffIconButtonComponent } from './button/icon/icon.component';
|
@@ -0,0 +1,145 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-button-theme-variant(
|
6
|
+
$base-color,
|
7
|
+
$hover-color,
|
8
|
+
$active-color: $hover-color
|
9
|
+
) {
|
10
|
+
background-color: $base-color;
|
11
|
+
color: theming.daff-text-contrast($base-color);
|
12
|
+
|
13
|
+
&:after {
|
14
|
+
background: $hover-color;
|
15
|
+
}
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
color: theming.daff-text-contrast($hover-color);
|
19
|
+
}
|
20
|
+
|
21
|
+
&:active {
|
22
|
+
color: theming.daff-text-contrast($active-color);
|
23
|
+
|
24
|
+
&:after {
|
25
|
+
background: $active-color;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin daff-button-theme($theme) {
|
31
|
+
$primary: map.get($theme, primary);
|
32
|
+
$secondary: map.get($theme, secondary);
|
33
|
+
$tertiary: map.get($theme, tertiary);
|
34
|
+
$info: map.get($theme, info);
|
35
|
+
$warn: map.get($theme, warn);
|
36
|
+
$critical: map.get($theme, critical);
|
37
|
+
$success: map.get($theme, success);
|
38
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
39
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
40
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
41
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
42
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
43
|
+
|
44
|
+
.daff-button {
|
45
|
+
@include daff-button-theme-variant(
|
46
|
+
theming.daff-illuminate($base, $neutral, 2),
|
47
|
+
theming.daff-illuminate($base, $neutral, 3),
|
48
|
+
theming.daff-illuminate($base, $neutral, 4)
|
49
|
+
);
|
50
|
+
|
51
|
+
&.daff-primary {
|
52
|
+
@include daff-button-theme-variant(
|
53
|
+
theming.daff-color($primary),
|
54
|
+
theming.daff-color($primary, 70),
|
55
|
+
theming.daff-color($primary, 80)
|
56
|
+
);
|
57
|
+
}
|
58
|
+
|
59
|
+
&.daff-secondary {
|
60
|
+
@include daff-button-theme-variant(
|
61
|
+
theming.daff-color($secondary),
|
62
|
+
theming.daff-color($secondary, 70),
|
63
|
+
theming.daff-color($secondary, 80)
|
64
|
+
);
|
65
|
+
}
|
66
|
+
|
67
|
+
&.daff-tertiary {
|
68
|
+
@include daff-button-theme-variant(
|
69
|
+
theming.daff-color($tertiary),
|
70
|
+
theming.daff-color($tertiary, 70),
|
71
|
+
theming.daff-color($tertiary, 80)
|
72
|
+
);
|
73
|
+
}
|
74
|
+
|
75
|
+
&.daff-black {
|
76
|
+
@include daff-button-theme-variant(
|
77
|
+
$black,
|
78
|
+
theming.daff-color($neutral, 90),
|
79
|
+
theming.daff-color($neutral, 80)
|
80
|
+
);
|
81
|
+
}
|
82
|
+
|
83
|
+
&.daff-white {
|
84
|
+
@include daff-button-theme-variant(
|
85
|
+
$white,
|
86
|
+
theming.daff-color($neutral, 20),
|
87
|
+
theming.daff-color($neutral, 30)
|
88
|
+
);
|
89
|
+
}
|
90
|
+
|
91
|
+
&.daff-theme {
|
92
|
+
@include daff-button-theme-variant(
|
93
|
+
$base,
|
94
|
+
theming.daff-illuminate($base, $neutral, 2),
|
95
|
+
theming.daff-illuminate($base, $neutral, 3)
|
96
|
+
);
|
97
|
+
}
|
98
|
+
|
99
|
+
&.daff-theme-contrast {
|
100
|
+
@include daff-button-theme-variant(
|
101
|
+
$base-contrast,
|
102
|
+
theming.daff-illuminate($base-contrast, $neutral, 2),
|
103
|
+
theming.daff-illuminate($base-contrast, $neutral, 3)
|
104
|
+
);
|
105
|
+
}
|
106
|
+
|
107
|
+
&[disabled],
|
108
|
+
&.disabled {
|
109
|
+
@include daff-button-theme-variant(
|
110
|
+
theming.daff-illuminate($base, $neutral, 3),
|
111
|
+
theming.daff-illuminate($base, $neutral, 3),
|
112
|
+
theming.daff-illuminate($base, $neutral, 3)
|
113
|
+
);
|
114
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
115
|
+
|
116
|
+
&:hover {
|
117
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
&.daff-warn {
|
122
|
+
@include daff-button-theme-variant(
|
123
|
+
theming.daff-color($warn),
|
124
|
+
theming.daff-color($warn, 70),
|
125
|
+
theming.daff-color($warn, 80)
|
126
|
+
);
|
127
|
+
}
|
128
|
+
|
129
|
+
&.daff-success {
|
130
|
+
@include daff-button-theme-variant(
|
131
|
+
theming.daff-color($success),
|
132
|
+
theming.daff-color($success, 70),
|
133
|
+
theming.daff-color($success, 80)
|
134
|
+
);
|
135
|
+
}
|
136
|
+
|
137
|
+
&.daff-critical {
|
138
|
+
@include daff-button-theme-variant(
|
139
|
+
theming.daff-color($critical),
|
140
|
+
theming.daff-color($critical, 70),
|
141
|
+
theming.daff-color($critical, 80)
|
142
|
+
);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
@use '../../../scss/interactions';
|
2
|
+
@use '../../../scss/typography' as t;
|
3
|
+
|
4
|
+
@mixin daff-button-base {
|
5
|
+
@include interactions.clickable();
|
6
|
+
display: inline-flex;
|
7
|
+
justify-content: center;
|
8
|
+
align-items: center;
|
9
|
+
gap: 0.5rem;
|
10
|
+
appearance: none;
|
11
|
+
border: none;
|
12
|
+
border-radius: 0.25rem;
|
13
|
+
position: relative;
|
14
|
+
text-align: center;
|
15
|
+
text-decoration: none;
|
16
|
+
|
17
|
+
&[disabled],
|
18
|
+
&.disabled {
|
19
|
+
cursor: not-allowed;
|
20
|
+
}
|
21
|
+
|
22
|
+
.daff-button__content,
|
23
|
+
.daff-prefix,
|
24
|
+
.daff-suffix {
|
25
|
+
z-index: 2;
|
26
|
+
}
|
27
|
+
|
28
|
+
.daff-button__loading {
|
29
|
+
max-width: 1.5rem;
|
30
|
+
}
|
31
|
+
|
32
|
+
.daff-button__content {
|
33
|
+
@include t.text-truncate();
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin daff-button-background($border-radius) {
|
38
|
+
&:after {
|
39
|
+
content: '';
|
40
|
+
border-radius: $border-radius;
|
41
|
+
position: absolute;
|
42
|
+
width: 100%;
|
43
|
+
height: 100%;
|
44
|
+
opacity: 0;
|
45
|
+
transition: opacity 300ms;
|
46
|
+
}
|
47
|
+
|
48
|
+
&:hover,
|
49
|
+
&:active {
|
50
|
+
&:after {
|
51
|
+
opacity: 1;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
@mixin daff-button-sizes {
|
57
|
+
min-width: 96px;
|
58
|
+
|
59
|
+
&.daff-sm {
|
60
|
+
font-size: t.$small-font-size;
|
61
|
+
line-height: 2rem;
|
62
|
+
height: 2rem;
|
63
|
+
padding: 0 1rem;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.daff-md {
|
67
|
+
font-size: t.$normal-font-size;
|
68
|
+
line-height: 3rem;
|
69
|
+
height: 3rem;
|
70
|
+
padding: 0 1.5rem;
|
71
|
+
}
|
72
|
+
|
73
|
+
&.daff-lg {
|
74
|
+
font-size: t.$medium-font-size;
|
75
|
+
line-height: 3.5rem;
|
76
|
+
height: 3.5rem;
|
77
|
+
padding: 0 1.5rem;
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/theming';
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-flat-button-theme-variant(
|
6
|
+
$base-color,
|
7
|
+
$active-color
|
8
|
+
) {
|
9
|
+
color: $base-color;
|
10
|
+
|
11
|
+
&:after {
|
12
|
+
background-color: $base-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:hover {
|
16
|
+
color: theming.daff-text-contrast($base-color);
|
17
|
+
}
|
18
|
+
|
19
|
+
&:active {
|
20
|
+
color: theming.daff-text-contrast($active-color);
|
21
|
+
|
22
|
+
&:after {
|
23
|
+
background-color: $active-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin daff-flat-button-theme($theme) {
|
29
|
+
$primary: map.get($theme, primary);
|
30
|
+
$secondary: map.get($theme, secondary);
|
31
|
+
$tertiary: map.get($theme, tertiary);
|
32
|
+
$info: map.get($theme, info);
|
33
|
+
$warn: map.get($theme, warn);
|
34
|
+
$critical: map.get($theme, critical);
|
35
|
+
$success: map.get($theme, success);
|
36
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
37
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
38
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
39
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
40
|
+
$neutral: core.daff-map-deep-get($theme, 'core.neutral');
|
41
|
+
|
42
|
+
.daff-flat-button {
|
43
|
+
color: currentColor;
|
44
|
+
|
45
|
+
&:after {
|
46
|
+
background-color: theming.daff-illuminate($base, $neutral, 2);
|
47
|
+
}
|
48
|
+
|
49
|
+
&:active {
|
50
|
+
&:after {
|
51
|
+
background-color: theming.daff-illuminate($base, $neutral, 3);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
&:hover,
|
56
|
+
&:active {
|
57
|
+
color: theming.daff-text-contrast(theming.daff-illuminate($base, $neutral, 2));
|
58
|
+
}
|
59
|
+
|
60
|
+
&.daff-primary {
|
61
|
+
@include daff-flat-button-theme-variant(
|
62
|
+
theming.daff-color($primary),
|
63
|
+
theming.daff-color($primary, 70)
|
64
|
+
);
|
65
|
+
}
|
66
|
+
|
67
|
+
&.daff-secondary {
|
68
|
+
@include daff-flat-button-theme-variant(
|
69
|
+
theming.daff-color($secondary),
|
70
|
+
theming.daff-color($secondary, 70)
|
71
|
+
);
|
72
|
+
}
|
73
|
+
|
74
|
+
&.daff-tertiary {
|
75
|
+
@include daff-flat-button-theme-variant(
|
76
|
+
theming.daff-color($tertiary),
|
77
|
+
theming.daff-color($tertiary, 70)
|
78
|
+
);
|
79
|
+
}
|
80
|
+
|
81
|
+
&.daff-black {
|
82
|
+
@include daff-flat-button-theme-variant(
|
83
|
+
$black,
|
84
|
+
theming.daff-color($neutral, 100)
|
85
|
+
);
|
86
|
+
}
|
87
|
+
|
88
|
+
&.daff-white {
|
89
|
+
@include daff-flat-button-theme-variant(
|
90
|
+
$white,
|
91
|
+
theming.daff-color($neutral, 20)
|
92
|
+
);
|
93
|
+
}
|
94
|
+
|
95
|
+
&.daff-theme {
|
96
|
+
@include daff-flat-button-theme-variant(
|
97
|
+
$base,
|
98
|
+
theming.daff-illuminate($base, $neutral, 2)
|
99
|
+
);
|
100
|
+
}
|
101
|
+
|
102
|
+
&.daff-theme-contrast {
|
103
|
+
@include daff-flat-button-theme-variant(
|
104
|
+
$base-contrast,
|
105
|
+
theming.daff-illuminate($base-contrast, $neutral, 2)
|
106
|
+
);
|
107
|
+
}
|
108
|
+
|
109
|
+
&[disabled],
|
110
|
+
&.disabled {
|
111
|
+
color: theming.daff-illuminate($base, $neutral, 5);
|
112
|
+
|
113
|
+
&:hover,
|
114
|
+
&:focus,
|
115
|
+
&:active {
|
116
|
+
&:after {
|
117
|
+
background: transparent;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
&.daff-warn {
|
123
|
+
@include daff-flat-button-theme-variant(
|
124
|
+
theming.daff-color($warn),
|
125
|
+
theming.daff-color($warn, 70)
|
126
|
+
);
|
127
|
+
}
|
128
|
+
|
129
|
+
&.daff-critical {
|
130
|
+
@include daff-flat-button-theme-variant(
|
131
|
+
theming.daff-color($critical),
|
132
|
+
theming.daff-color($critical, 70)
|
133
|
+
);
|
134
|
+
}
|
135
|
+
|
136
|
+
&.daff-success {
|
137
|
+
@include daff-flat-button-theme-variant(
|
138
|
+
theming.daff-color($success),
|
139
|
+
theming.daff-color($success, 70)
|
140
|
+
);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|