@daffodil/design 0.83.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/src/accordion-theme.scss +11 -13
- package/article/src/article-theme.scss +36 -38
- package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
- package/atoms/form/error-message/error-message.component.d.ts +4 -1
- package/atoms/form/error-message/error-message.module.d.ts +4 -1
- package/atoms/form/form-field/form-field/form-field.component.d.ts +40 -25
- package/atoms/form/form-field/form-field-control.d.ts +19 -4
- package/atoms/form/form-field/form-field-state.d.ts +7 -0
- package/atoms/form/form-field/form-field.d.ts +10 -0
- package/atoms/form/form-field/form-field.module.d.ts +6 -4
- package/atoms/form/form-field/public_api.d.ts +2 -1
- package/atoms/form/form-label/form-label.directive.d.ts +4 -1
- package/atoms/form/form-label/form-label.module.d.ts +4 -1
- package/atoms/form/hint/hint.component.d.ts +13 -0
- package/atoms/form/hint/public_api.d.ts +1 -0
- package/atoms/form/native-select/native-select.component.d.ts +5 -1
- package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/breadcrumb/src/breadcrumb-theme.scss +14 -7
- package/button/button/button-base.directive.d.ts +6 -23
- package/button/button/raised/raised.component.d.ts +1 -1
- package/button/src/button/basic/button-theme.scss +84 -114
- package/button/src/button/button-base.scss +17 -4
- package/button/src/button/flat/flat-theme.scss +32 -68
- package/button/src/button/icon/icon-theme.scss +78 -106
- package/button/src/button/raised/raised-theme.scss +30 -32
- package/button/src/button/stroked/stroked-theme.scss +35 -69
- package/button/src/button/underline/underline-theme.scss +34 -50
- package/callout/src/callout-theme.scss +37 -22
- package/card/card/basic/basic.component.d.ts +3 -0
- package/card/card/raised/raised.component.d.ts +3 -0
- package/card/card/stroked/stroked.component.d.ts +3 -0
- package/card/src/card/raised/raised-theme.scss +9 -11
- package/card/src/card/stroked/stroked-theme.scss +32 -34
- package/card/src/card-base-theme.scss +42 -44
- package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
- package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
- package/core/article-encapsulated/article-encapsulated.directive.d.ts +3 -0
- package/core/colorable/colorable.d.ts +2 -2
- package/core/colorable/colorable.directive.d.ts +8 -0
- package/core/manage-container-layout/manage-container-layout.directive.d.ts +3 -0
- package/core/openable/openable.directive.d.ts +3 -0
- package/core/prefix-suffix/prefix-suffix.module.d.ts +1 -1
- package/core/prefix-suffix/prefix.directive.d.ts +4 -1
- package/core/prefix-suffix/public_api.d.ts +0 -4
- package/core/prefix-suffix/suffix.directive.d.ts +4 -1
- package/core/sizable/sizable.directive.d.ts +8 -0
- package/core/statusable/statusable.directive.d.ts +2 -0
- package/core/text-alignable/text-alignable.directive.d.ts +6 -1
- package/fesm2022/daffodil-design-accordion-examples.mjs +10 -10
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +15 -15
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +31 -31
- package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +11 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +7 -7
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +15 -12
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +41 -37
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +46 -53
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +13 -13
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +23 -23
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +19 -19
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +44 -35
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +13 -7
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +4 -4
- package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container.mjs +8 -8
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +13 -13
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +23 -23
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +10 -10
- package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +72 -28
- package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +96 -0
- package/fesm2022/daffodil-design-input.mjs.map +1 -0
- package/fesm2022/daffodil-design-link-set.mjs +17 -17
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +13 -13
- package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +12 -12
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +16 -16
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +14 -21
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +7 -7
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +39 -26
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +61 -28
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +9 -9
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -22
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +51 -24
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +7 -7
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +9 -9
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +30 -12
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +23 -22
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +355 -0
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -0
- package/fesm2022/daffodil-design-radio-examples.mjs +4 -4
- package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +13 -13
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +27 -27
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +17 -17
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +6 -7
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +16 -16
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +38 -19
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -4
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +22 -16
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +24 -26
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +7 -7
- package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +30 -16
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +10 -7
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +531 -818
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/src/hero-theme.scss +37 -22
- package/input/README.md +66 -0
- package/input/examples/examples.d.ts +2 -2
- package/input/examples/input-disabled/input-disabled.component.d.ts +2 -0
- package/input/examples/input-hint/input-hint.component.d.ts +5 -0
- package/input/examples/input-hint-and-error/input-hint-and-error.component.d.ts +9 -0
- package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +2 -0
- package/input/index.d.ts +1 -0
- package/{atoms/form/input → input}/input.component.d.ts +16 -20
- package/input/input.module.d.ts +10 -0
- package/list/list/list.component.d.ts +1 -1
- package/list/src/list-theme.scss +20 -26
- package/loading-icon/src/loading-icon-theme.scss +20 -22
- package/media-gallery/media-gallery/media-gallery.component.d.ts +0 -4
- package/media-gallery/src/media-gallery-theme.scss +10 -12
- package/menu/helpers/create-overlay.d.ts +1 -1
- package/menu/menu/menu.component.d.ts +15 -0
- package/menu/menu-activator/menu-activator.component.d.ts +3 -0
- package/menu/src/menu-theme.scss +34 -16
- package/modal/modal/modal.component.d.ts +21 -0
- package/modal/modal-actions/modal-actions.component.d.ts +3 -0
- package/modal/modal-close/modal-close.directive.d.ts +3 -0
- package/modal/modal-content/modal-content.component.d.ts +3 -0
- package/modal/modal-title/modal-title.directive.d.ts +3 -0
- package/modal/src/modal-theme.scss +2 -2
- package/navbar/src/navbar-theme.scss +21 -18
- package/notification/README.md +11 -12
- package/notification/notification/notification.component.d.ts +17 -2
- package/notification/notification-actions/notification-actions.directive.d.ts +3 -0
- package/notification/notification-message/notification-message.directive.d.ts +3 -0
- package/notification/notification-subtitle/notification-subtitle.directive.d.ts +3 -0
- package/notification/notification-title/notification-title.directive.d.ts +3 -0
- package/notification/notification.d.ts +2 -2
- package/notification/src/notification-theme.scss +44 -46
- package/package.json +1 -1
- package/paginator/src/paginator-theme.scss +26 -23
- package/progress-bar/progress-bar-label/progress-bar-label.directive.d.ts +3 -0
- package/progress-bar/progress-bar.component.d.ts +15 -0
- package/progress-bar/src/progress-bar-theme.scss +18 -20
- package/public_api.d.ts +1 -2
- package/quantity-field/README.md +63 -0
- package/quantity-field/index.d.ts +1 -0
- package/quantity-field/public_api.d.ts +2 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-field.component.d.ts +5 -4
- package/quantity-field/quantity-field.module.d.ts +11 -0
- package/{atoms/form/quantity-field → quantity-field}/quantity-input/quantity-input.component.d.ts +5 -2
- package/{atoms/form/quantity-field → quantity-field}/quantity-select/quantity-select.component.d.ts +2 -2
- package/scss/state/skeleton/_mixins.scss +22 -13
- package/scss/theme.scss +2 -2
- package/scss/theming/_configure-theme.scss +16 -16
- package/scss/theming/_get-base-color.scss +19 -0
- package/scss/theming/_get-palette.scss +27 -0
- package/scss/theming/_get-theme-mode.scss +9 -0
- package/scss/theming/_index.scss +3 -0
- package/scss/theming/_light-dark.scss +4 -4
- package/scss/theming/_theme-css-variables.scss +20 -20
- package/sidebar/src/sidebar-theme.scss +4 -5
- package/src/atoms/form/error-message/error-message-theme.scss +4 -2
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +47 -24
- package/src/atoms/form/hint/hint-theme.scss +22 -0
- package/src/atoms/form/native-select/native-select-theme.scss +5 -7
- package/switch/src/switch-theme.scss +13 -15
- package/switch/switch.d.ts +2 -2
- package/tabs/src/tabs-theme.scss +13 -15
- package/tabs/tabs/tab-activator/tab-activator.component.d.ts +15 -0
- package/tabs/tabs/tab-label/tab-label.component.d.ts +2 -5
- package/tabs/tabs/tabs.component.d.ts +3 -0
- package/toast/examples/default-toast/default-toast.component.d.ts +3 -0
- package/toast/examples/toast-positions/toast-positions.component.d.ts +3 -0
- package/toast/src/toast-theme.scss +36 -38
- package/toast/toast/toast.component.d.ts +3 -5
- package/tree/interfaces/tree-data.d.ts +15 -0
- package/tree/interfaces/tree-render-mode.d.ts +2 -2
- package/tree/src/tree-theme.scss +20 -22
- package/tree/tree/tree-notifier.service.d.ts +3 -3
- package/tree/tree/tree.component.d.ts +13 -3
- package/tree/tree-item/tree-item.directive.d.ts +6 -0
- package/youtube-player/youtube-player.component.d.ts +3 -0
- package/atoms/form/input/input.module.d.ts +0 -8
- package/atoms/form/quantity-field/public_api.d.ts +0 -4
- package/atoms/form/quantity-field/quantity-field.module.d.ts +0 -13
- package/core/prefix-suffix/prefixable/prefixable-interface.d.ts +0 -7
- package/core/prefix-suffix/prefixable/prefixable.d.ts +0 -11
- package/core/prefix-suffix/suffixable/suffixable-interface.d.ts +0 -7
- package/core/prefix-suffix/suffixable/suffixable.d.ts +0 -11
- package/input/examples/basic-input/basic-input.component.d.ts +0 -5
- package/src/atoms/form/input/input-theme.scss +0 -16
- /package/{atoms/form/input → input}/public_api.d.ts +0 -0
package/hero/src/hero-theme.scss
CHANGED
@@ -1,37 +1,52 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-hero-theme-variant($color) {
|
6
4
|
background: $color;
|
7
|
-
color:
|
5
|
+
color: daff-text-contrast($color);
|
8
6
|
}
|
9
7
|
|
10
8
|
@mixin daff-hero-theme($theme) {
|
11
|
-
$primary:
|
12
|
-
$secondary:
|
13
|
-
$tertiary:
|
14
|
-
$neutral:
|
15
|
-
$base:
|
16
|
-
$base-contrast:
|
17
|
-
$white:
|
18
|
-
$black:
|
9
|
+
$primary: daff-get-palette($theme, primary);
|
10
|
+
$secondary: daff-get-palette($theme, secondary);
|
11
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
12
|
+
$neutral: daff-get-palette($theme, neutral);
|
13
|
+
$base: daff-get-base-color($theme, base);
|
14
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
15
|
+
$white: daff-get-base-color($theme, 'white');
|
16
|
+
$black: daff-get-base-color($theme, 'black');
|
17
|
+
$mode: daff-get-theme-mode($theme);
|
19
18
|
|
20
19
|
.daff-hero {
|
21
|
-
@include
|
22
|
-
|
23
|
-
);
|
20
|
+
@include light($mode) {
|
21
|
+
@include daff-hero-theme-variant(daff-color($neutral, 10));
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
&.daff-primary {
|
24
|
+
@include daff-hero-theme-variant(daff-color($primary));
|
25
|
+
}
|
26
|
+
|
27
|
+
&.daff-secondary {
|
28
|
+
@include daff-hero-theme-variant(daff-color($secondary));
|
29
|
+
}
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
+
&.daff-tertiary {
|
32
|
+
@include daff-hero-theme-variant(daff-color($tertiary));
|
33
|
+
}
|
31
34
|
}
|
32
35
|
|
33
|
-
|
34
|
-
@include daff-hero-theme-variant(
|
36
|
+
@include dark($mode) {
|
37
|
+
@include daff-hero-theme-variant(daff-color($neutral, 90));
|
38
|
+
|
39
|
+
&.daff-primary {
|
40
|
+
@include daff-hero-theme-variant(daff-color($primary, 60));
|
41
|
+
}
|
42
|
+
|
43
|
+
&.daff-secondary {
|
44
|
+
@include daff-hero-theme-variant(daff-color($secondary, 60));
|
45
|
+
}
|
46
|
+
|
47
|
+
&.daff-tertiary {
|
48
|
+
@include daff-hero-theme-variant(daff-color($tertiary, 60));
|
49
|
+
}
|
35
50
|
}
|
36
51
|
|
37
52
|
&.daff-theme {
|
package/input/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Input
|
2
|
+
The input component allows a native HTML input element to work with the form field component.
|
3
|
+
|
4
|
+
## Overview
|
5
|
+
The input component has the same functionality as a native HTML `<input>` element, with additional custom styling and functionality. It **cannot** be used by itself and must be contained within a [DaffFormFieldComponent](/libs/design/src/atoms/form/form-field/README.md).
|
6
|
+
|
7
|
+
<design-land-example-viewer-container example="input-with-form-field"></design-land-example-viewer-container>
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
### Within a standalone component
|
12
|
+
To use form field in a standalone component, import `DaffInputComponent` directly into your custom component:
|
13
|
+
|
14
|
+
```ts
|
15
|
+
import { DaffInputComponent } from '@daffodil/design/input';
|
16
|
+
|
17
|
+
@Component({
|
18
|
+
selector: 'custom-component',
|
19
|
+
templateUrl: './custom-component.component.html',
|
20
|
+
imports: [
|
21
|
+
DaffInputComponent,
|
22
|
+
],
|
23
|
+
})
|
24
|
+
export class CustomComponent {}
|
25
|
+
```
|
26
|
+
|
27
|
+
### Within a module (deprecated)
|
28
|
+
To use form field in a module, import `DaffInputModule` into your custom module:
|
29
|
+
|
30
|
+
```ts
|
31
|
+
import { NgModule } from '@angular/core';
|
32
|
+
import { DaffInputModule } from '@daffodil/design/input';
|
33
|
+
import { CustomComponent } from './custom.component';
|
34
|
+
|
35
|
+
@NgModule({
|
36
|
+
declarations: [
|
37
|
+
CustomComponent,
|
38
|
+
],
|
39
|
+
exports: [
|
40
|
+
CustomComponent,
|
41
|
+
],
|
42
|
+
imports: [
|
43
|
+
DaffInputModule,
|
44
|
+
],
|
45
|
+
})
|
46
|
+
export class CustomComponentModule { }
|
47
|
+
```
|
48
|
+
|
49
|
+
> This method is deprecated. It's recommended to update all custom components to standalone.
|
50
|
+
|
51
|
+
## Examples
|
52
|
+
|
53
|
+
### Disabled input
|
54
|
+
The input in this example is disabled using the native HTML disabled attribute.
|
55
|
+
|
56
|
+
<design-land-example-viewer-container example="input-disabled"></design-land-example-viewer-container>
|
57
|
+
|
58
|
+
### Input with error messages
|
59
|
+
The input in this example uses the `ReactiveFormsModule` to display errors.
|
60
|
+
|
61
|
+
<design-land-example-viewer-container example="input-error"></design-land-example-viewer-container>
|
62
|
+
|
63
|
+
### Input with hint
|
64
|
+
The input in this example has a hint.
|
65
|
+
|
66
|
+
<design-land-example-viewer-container example="input-hint"></design-land-example-viewer-container>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const INPUT_EXAMPLES: (typeof
|
1
|
+
import { InputHintComponent } from './input-hint/input-hint.component';
|
2
|
+
export declare const INPUT_EXAMPLES: (typeof InputHintComponent)[];
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { UntypedFormControl } from '@angular/forms';
|
1
2
|
import * as i0 from "@angular/core";
|
2
3
|
export declare class InputDisabledComponent {
|
4
|
+
disabled: UntypedFormControl;
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDisabledComponent, never>;
|
4
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputDisabledComponent, "input-disabled", never, {}, {}, never, never, true, never>;
|
5
7
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { UntypedFormControl } from '@angular/forms';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class InputHintAndErrorComponent {
|
4
|
+
faCheck: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
5
|
+
faXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
6
|
+
control: UntypedFormControl;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputHintAndErrorComponent, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputHintAndErrorComponent, "input-hint-and-error", never, {}, {}, never, never, true, never>;
|
9
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class InputWithFormFieldComponent {
|
3
|
+
faUser: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
4
|
+
faCircleXmark: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputWithFormFieldComponent, never>;
|
4
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputWithFormFieldComponent, "input-with-form-field", never, {}, {}, never, never, true, never>;
|
5
7
|
}
|
package/input/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './public_api';
|
@@ -1,35 +1,31 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
2
|
import { NgControl } from '@angular/forms';
|
3
|
-
import { DaffFormFieldControl } from '
|
3
|
+
import { DaffFormFieldControl } from '@daffodil/design';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
/**
|
6
6
|
* DaffInputComponent provides the same functionality as a native `<input>` and contains custom styling and functionality.
|
7
7
|
*/
|
8
|
-
export declare class DaffInputComponent implements DaffFormFieldControl {
|
9
|
-
/**
|
10
|
-
* @docs-private
|
11
|
-
*/
|
8
|
+
export declare class DaffInputComponent extends DaffFormFieldControl<string> implements DaffFormFieldControl<string>, OnInit {
|
9
|
+
/** @docs-private */
|
12
10
|
ngControl: NgControl;
|
13
11
|
private _elementRef;
|
14
|
-
/**
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
/** @docs-private */
|
13
|
+
class: boolean;
|
14
|
+
/** @docs-private */
|
15
|
+
controlType: string;
|
18
16
|
focused: boolean;
|
19
|
-
/**
|
20
|
-
* @docs-private
|
21
|
-
*/
|
17
|
+
/** @docs-private */
|
22
18
|
focus(): void;
|
23
|
-
/**
|
24
|
-
* @docs-private
|
25
|
-
*/
|
19
|
+
/** @docs-private */
|
26
20
|
blur(): void;
|
27
21
|
constructor(
|
28
|
-
/**
|
29
|
-
* @docs-private
|
30
|
-
*/
|
22
|
+
/** @docs-private */
|
31
23
|
ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>);
|
24
|
+
/** @docs-private */
|
25
|
+
ngOnInit(): void;
|
26
|
+
/** @docs-private */
|
32
27
|
onFocus(): void;
|
28
|
+
get value(): string;
|
33
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputComponent, [{ optional: true; self: true; }, null]>;
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffInputComponent, "input[daff-input]", never, {
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffInputComponent, "input[daff-input]", never, {}, {}, never, ["*"], true, never>;
|
35
31
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./input.component";
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
6
|
+
export declare class DaffInputModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInputModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffInputModule, never, [typeof i1.DaffInputComponent], [typeof i1.DaffInputComponent]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DaffInputModule>;
|
10
|
+
}
|
@@ -22,7 +22,7 @@ export declare class DaffListComponent {
|
|
22
22
|
*
|
23
23
|
* @docs-private
|
24
24
|
*/
|
25
|
-
get role(): "
|
25
|
+
get role(): "navigation" | "list";
|
26
26
|
private _getHostElement;
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffListComponent, never>;
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffListComponent, "daff-list,daff-nav-list", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }]>;
|
package/list/src/list-theme.scss
CHANGED
@@ -1,28 +1,11 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
// styleline-disable selector-class-pattern
|
6
4
|
@mixin daff-list-theme($theme) {
|
7
|
-
$neutral:
|
8
|
-
$base:
|
9
|
-
$base-contrast:
|
10
|
-
|
11
|
-
.daff-list {
|
12
|
-
.daff-list-item {
|
13
|
-
&__content {
|
14
|
-
// stylelint-disable-next-line scss/selector-nest-combinators
|
15
|
-
*:nth-child(1) {
|
16
|
-
color: $base-contrast;
|
17
|
-
}
|
18
|
-
|
19
|
-
// stylelint-disable-next-line scss/selector-nest-combinators
|
20
|
-
*:nth-child(n + 2) {
|
21
|
-
color: theming.daff-illuminate($base-contrast, $neutral, 3);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
5
|
+
$neutral: daff-get-palette($theme, neutral);
|
6
|
+
$base: daff-get-base-color($theme, base);
|
7
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
8
|
+
$mode: daff-get-theme-mode($theme);
|
26
9
|
|
27
10
|
.daff-nav-list {
|
28
11
|
.daff-list-item {
|
@@ -30,10 +13,21 @@
|
|
30
13
|
background-color: $base;
|
31
14
|
}
|
32
15
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
16
|
+
@include light($mode) {
|
17
|
+
&:hover,
|
18
|
+
&.active {
|
19
|
+
&::after {
|
20
|
+
background-color: rgba(daff-color($neutral, 20), 0.5);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@include dark($mode) {
|
26
|
+
&:hover,
|
27
|
+
&.active {
|
28
|
+
&::after {
|
29
|
+
background-color: rgba(daff-color($neutral, 20), 0.08);
|
30
|
+
}
|
37
31
|
}
|
38
32
|
}
|
39
33
|
}
|
@@ -1,6 +1,4 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-loading-icon-light-variant($loader-color) {
|
6
4
|
.daff-loading-icon__loader {
|
@@ -23,34 +21,34 @@
|
|
23
21
|
}
|
24
22
|
|
25
23
|
@mixin daff-loading-icon-theme($theme) {
|
26
|
-
$primary:
|
27
|
-
$secondary:
|
28
|
-
$tertiary:
|
29
|
-
$base:
|
30
|
-
$base-contrast:
|
31
|
-
$white:
|
32
|
-
$black:
|
33
|
-
$neutral:
|
34
|
-
$
|
24
|
+
$primary: daff-get-palette($theme, primary);
|
25
|
+
$secondary: daff-get-palette($theme, secondary);
|
26
|
+
$tertiary: daff-get-palette($theme, tertiary);
|
27
|
+
$base: daff-get-base-color($theme, base);
|
28
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
29
|
+
$white: daff-get-base-color($theme, 'white');
|
30
|
+
$black: daff-get-base-color($theme, 'black');
|
31
|
+
$neutral: daff-get-palette($theme, neutral);
|
32
|
+
$mode: daff-get-theme-mode($theme);
|
35
33
|
|
36
34
|
.daff-loading-icon {
|
37
|
-
@include
|
35
|
+
@include light($mode) {
|
38
36
|
@include daff-loading-icon-light-variant(
|
39
|
-
|
37
|
+
daff-color($neutral, 60)
|
40
38
|
);
|
41
39
|
|
42
40
|
&.daff-primary {
|
43
|
-
@include daff-loading-icon-light-variant(
|
41
|
+
@include daff-loading-icon-light-variant(daff-color($primary));
|
44
42
|
}
|
45
43
|
|
46
44
|
&.daff-secondary {
|
47
45
|
@include daff-loading-icon-light-variant(
|
48
|
-
|
46
|
+
daff-color($secondary)
|
49
47
|
);
|
50
48
|
}
|
51
49
|
|
52
50
|
&.daff-tertiary {
|
53
|
-
@include daff-loading-icon-light-variant(
|
51
|
+
@include daff-loading-icon-light-variant(daff-color($tertiary));
|
54
52
|
}
|
55
53
|
|
56
54
|
&.daff-theme {
|
@@ -70,19 +68,19 @@
|
|
70
68
|
}
|
71
69
|
}
|
72
70
|
|
73
|
-
@include
|
74
|
-
@include daff-loading-icon-dark-variant(
|
71
|
+
@include dark($mode) {
|
72
|
+
@include daff-loading-icon-dark-variant(daff-color($neutral, 40));
|
75
73
|
|
76
74
|
&.daff-primary {
|
77
|
-
@include daff-loading-icon-dark-variant(
|
75
|
+
@include daff-loading-icon-dark-variant(daff-color($primary));
|
78
76
|
}
|
79
77
|
|
80
78
|
&.daff-secondary {
|
81
|
-
@include daff-loading-icon-dark-variant(
|
79
|
+
@include daff-loading-icon-dark-variant(daff-color($secondary));
|
82
80
|
}
|
83
81
|
|
84
82
|
&.daff-tertiary {
|
85
|
-
@include daff-loading-icon-dark-variant(
|
83
|
+
@include daff-loading-icon-dark-variant(daff-color($tertiary));
|
86
84
|
}
|
87
85
|
|
88
86
|
&.daff-theme {
|
@@ -17,10 +17,6 @@ import * as i1 from "@daffodil/design";
|
|
17
17
|
*/
|
18
18
|
export declare class DaffMediaGalleryComponent implements DaffMediaGalleryRegistration {
|
19
19
|
private skeletonDirective;
|
20
|
-
/**
|
21
|
-
* @docs-private
|
22
|
-
*/
|
23
|
-
role: string;
|
24
20
|
/**
|
25
21
|
* The internal ID of the gallery.
|
26
22
|
*/
|
@@ -1,31 +1,29 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/theming';
|
3
|
-
@use '../../scss/core';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-media-gallery-theme($theme) {
|
6
|
-
$neutral:
|
7
|
-
$white:
|
8
|
-
$
|
4
|
+
$neutral: daff-get-palette($theme, neutral);
|
5
|
+
$white: daff-get-base-color($theme, 'white');
|
6
|
+
$mode: daff-get-theme-mode($theme);
|
9
7
|
|
10
8
|
.daff-media-gallery {
|
11
9
|
$root: &;
|
12
10
|
|
13
|
-
@include
|
11
|
+
@include light($mode) {
|
14
12
|
.daff-thumbnail {
|
15
|
-
background:
|
13
|
+
background: daff-color($neutral, 20);
|
16
14
|
|
17
15
|
&.daff-selected {
|
18
|
-
border: 1px solid
|
16
|
+
border: 1px solid daff-color($neutral);
|
19
17
|
}
|
20
18
|
}
|
21
19
|
}
|
22
20
|
|
23
|
-
@include
|
21
|
+
@include dark($mode) {
|
24
22
|
.daff-thumbnail {
|
25
|
-
background:
|
23
|
+
background: daff-color($neutral, 70);
|
26
24
|
|
27
25
|
&.daff-selected {
|
28
|
-
border: 1px solid
|
26
|
+
border: 1px solid daff-color($neutral, 30);
|
29
27
|
}
|
30
28
|
}
|
31
29
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
|
2
2
|
import { ElementRef } from '@angular/core';
|
3
|
-
export declare function daffMenuCreateOverlay(overlay: Overlay, element: ElementRef, config?: OverlayConfig): import("@angular/cdk/overlay").
|
3
|
+
export declare function daffMenuCreateOverlay(overlay: Overlay, element: ElementRef, config?: OverlayConfig): import("@angular/cdk/overlay-module.d-B3qEQtts").b;
|
@@ -7,12 +7,27 @@ export declare class DaffMenuComponent implements AfterContentInit, AfterViewIni
|
|
7
7
|
private _ngZone;
|
8
8
|
private _elementRef;
|
9
9
|
private menuService;
|
10
|
+
/**
|
11
|
+
* @docs-private
|
12
|
+
*/
|
10
13
|
class: boolean;
|
14
|
+
/**
|
15
|
+
* @docs-private
|
16
|
+
*/
|
11
17
|
tabindex: number;
|
18
|
+
/**
|
19
|
+
* @docs-private
|
20
|
+
*/
|
12
21
|
role: string;
|
13
22
|
private _focusTrap;
|
14
23
|
constructor(_focusTrapFactory: ConfigurableFocusTrapFactory, _ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, menuService: DaffMenuService);
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*/
|
15
27
|
ngAfterContentInit(): void;
|
28
|
+
/**
|
29
|
+
* @docs-private
|
30
|
+
*/
|
16
31
|
ngAfterViewInit(): void;
|
17
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMenuComponent, never>;
|
18
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffMenuComponent, "daff-menu", never, {}, {}, never, ["[daff-menu-item]"], true, never>;
|
@@ -7,6 +7,9 @@ export declare class DaffMenuActivatorDirective implements OnDestroy {
|
|
7
7
|
private cdRef;
|
8
8
|
private _destroyed$;
|
9
9
|
private _open;
|
10
|
+
/**
|
11
|
+
* @docs-private
|
12
|
+
*/
|
10
13
|
get openClass(): boolean;
|
11
14
|
daffMenuActivator: Type<unknown> | TemplateRef<unknown>;
|
12
15
|
constructor(service: DaffMenuService, viewContainerRef: ViewContainerRef, cdRef: ChangeDetectorRef);
|
package/menu/src/menu-theme.scss
CHANGED
@@ -1,25 +1,43 @@
|
|
1
|
-
@use '../../scss/
|
2
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
3
2
|
|
4
3
|
@mixin daff-menu-theme($theme) {
|
5
|
-
$
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$base:
|
9
|
-
$
|
4
|
+
$black: daff-get-base-color($theme, 'black');
|
5
|
+
$neutral: daff-get-palette($theme, neutral);
|
6
|
+
$base: daff-get-base-color($theme, base);
|
7
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
8
|
+
$mode: daff-get-theme-mode($theme);
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
@include light($mode) {
|
11
|
+
.daff-menu {
|
12
|
+
background: $base;
|
13
|
+
box-shadow: 0 0 24px rgb($black, 0.12);
|
14
|
+
}
|
15
|
+
|
16
|
+
.daff-menu-item {
|
17
|
+
background: $base;
|
18
|
+
color: $base-contrast;
|
19
|
+
|
20
|
+
&:hover,
|
21
|
+
&:focus {
|
22
|
+
background: rgba(daff-color($neutral, 20), 0.5);
|
23
|
+
}
|
24
|
+
}
|
14
25
|
}
|
15
26
|
|
16
|
-
|
17
|
-
|
18
|
-
|
27
|
+
@include dark($mode) {
|
28
|
+
.daff-menu {
|
29
|
+
background: $base;
|
30
|
+
box-shadow: 0 0 24px rgb($black, 0.12);
|
31
|
+
}
|
32
|
+
|
33
|
+
.daff-menu-item {
|
34
|
+
background: $base;
|
35
|
+
color: $base-contrast;
|
19
36
|
|
20
|
-
|
21
|
-
|
22
|
-
|
37
|
+
&:hover,
|
38
|
+
&:focus {
|
39
|
+
background: rgba(daff-color($neutral, 20), 0.08);
|
40
|
+
}
|
23
41
|
}
|
24
42
|
}
|
25
43
|
}
|
@@ -14,14 +14,23 @@ export declare class DaffModalComponent implements AfterContentInit, AfterViewIn
|
|
14
14
|
/**
|
15
15
|
* Sets a class of .daff-modal to the host element.
|
16
16
|
*/
|
17
|
+
/**
|
18
|
+
* @docs-private
|
19
|
+
*/
|
17
20
|
modalClass: boolean;
|
18
21
|
/**
|
19
22
|
* Sets the role to dialog.
|
20
23
|
*/
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*/
|
21
27
|
role: string;
|
22
28
|
/**
|
23
29
|
* Sets aria-modal to true.
|
24
30
|
*/
|
31
|
+
/**
|
32
|
+
* @docs-private
|
33
|
+
*/
|
25
34
|
ariaModal: boolean;
|
26
35
|
private _ariaLabelledBy;
|
27
36
|
/**
|
@@ -29,6 +38,9 @@ export declare class DaffModalComponent implements AfterContentInit, AfterViewIn
|
|
29
38
|
* {@link DaffModalTitleDirective} when it is used.
|
30
39
|
*
|
31
40
|
*/
|
41
|
+
/**
|
42
|
+
* @docs-private
|
43
|
+
*/
|
32
44
|
get ariaLabelledBy(): string;
|
33
45
|
set ariaLabelledBy(value: string);
|
34
46
|
/**
|
@@ -49,13 +61,22 @@ export declare class DaffModalComponent implements AfterContentInit, AfterViewIn
|
|
49
61
|
onEscape(): void;
|
50
62
|
private _focusTrap;
|
51
63
|
constructor(modalService: DaffModalService, _focusTrapFactory: ConfigurableFocusTrapFactory, elementRef: ElementRef<HTMLElement>, openDirective: DaffOpenableDirective);
|
64
|
+
/**
|
65
|
+
* @docs-private
|
66
|
+
*/
|
52
67
|
ngAfterContentInit(): void;
|
68
|
+
/**
|
69
|
+
* @docs-private
|
70
|
+
*/
|
53
71
|
ngAfterViewInit(): void;
|
54
72
|
/**
|
55
73
|
* Helper method to attach portable content to modal.
|
56
74
|
*/
|
57
75
|
attachContent(portal: ComponentPortal<any>): any;
|
58
76
|
/** Animation hook that controls the entrance and exit animations of the modal. */
|
77
|
+
/**
|
78
|
+
* @docs-private
|
79
|
+
*/
|
59
80
|
get fadeState(): string;
|
60
81
|
/**
|
61
82
|
* Animation event that can used to hook into when
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffModalActionsComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalActionsComponent, never>;
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalActionsComponent, "daff-modal-actions", never, {}, {}, never, ["*"], true, never>;
|
@@ -18,6 +18,9 @@ export declare class DaffModalCloseDirective {
|
|
18
18
|
/**
|
19
19
|
* Sets the button type attribute to button.
|
20
20
|
*/
|
21
|
+
/**
|
22
|
+
* @docs-private
|
23
|
+
*/
|
21
24
|
typeAttribute: string;
|
22
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalCloseDirective, [null, { optional: true; }]>;
|
23
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffModalCloseDirective, "button[daffModalClose]", never, {}, {}, never, never, true, never>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffModalContentComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffModalContentComponent, never>;
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffModalContentComponent, "daff-modal-content", never, {}, {}, never, ["*"], true, never>;
|