@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
@@ -1,19 +1,17 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-accordion-theme($theme) {
|
6
|
-
$neutral:
|
7
|
-
$base:
|
8
|
-
$base-contrast:
|
9
|
-
$
|
4
|
+
$neutral: daff-get-palette($theme, neutral);
|
5
|
+
$base: daff-get-base-color($theme, base);
|
6
|
+
$base-contrast: daff-get-base-color($theme, base-contrast);
|
7
|
+
$mode: daff-get-theme-mode($theme);
|
10
8
|
|
11
9
|
.daff-accordion-item {
|
12
|
-
@include
|
13
|
-
border-top: 1px solid
|
10
|
+
@include light($mode) {
|
11
|
+
border-top: 1px solid daff-color($neutral, 20);
|
14
12
|
|
15
13
|
&:last-child {
|
16
|
-
border-bottom: 1px solid
|
14
|
+
border-bottom: 1px solid daff-color($neutral, 20);
|
17
15
|
}
|
18
16
|
|
19
17
|
.daff-accordion-item__header {
|
@@ -25,11 +23,11 @@
|
|
25
23
|
}
|
26
24
|
}
|
27
25
|
|
28
|
-
@include
|
29
|
-
border-top: 1px solid
|
26
|
+
@include dark($mode) {
|
27
|
+
border-top: 1px solid daff-color($neutral, 80);
|
30
28
|
|
31
29
|
&:last-child {
|
32
|
-
border-bottom: 1px solid
|
30
|
+
border-bottom: 1px solid daff-color($neutral, 80);
|
33
31
|
}
|
34
32
|
|
35
33
|
.daff-accordion-item__header {
|
@@ -1,22 +1,20 @@
|
|
1
|
-
@use 'sass:map';
|
2
1
|
@use './article/stops-article-cascade' as *;
|
3
|
-
@use '../../scss/
|
4
|
-
@use '../../scss/theming';
|
2
|
+
@use '../../scss/theming' as *;
|
5
3
|
|
6
4
|
@mixin daff-article-theme($theme) {
|
7
|
-
$primary:
|
8
|
-
$neutral:
|
9
|
-
$
|
5
|
+
$primary: daff-get-palette($theme, primary);
|
6
|
+
$neutral: daff-get-palette($theme, neutral);
|
7
|
+
$mode: daff-get-theme-mode($theme);
|
10
8
|
|
11
|
-
$link-color-light:
|
12
|
-
$link-color-dark:
|
13
|
-
$text-color-light:
|
14
|
-
$text-color-dark:
|
15
|
-
$table-border-light:
|
16
|
-
$table-border-dark:
|
9
|
+
$link-color-light: daff-color($primary);
|
10
|
+
$link-color-dark: daff-color($primary, 40);
|
11
|
+
$text-color-light: daff-color($neutral, 90);
|
12
|
+
$text-color-dark: daff-color($neutral, 10);
|
13
|
+
$table-border-light: daff-color($neutral, 20);
|
14
|
+
$table-border-dark: daff-color($neutral, 80);
|
17
15
|
|
18
16
|
.daff-article {
|
19
|
-
@include
|
17
|
+
@include light($mode) {
|
20
18
|
color: $text-color-light;
|
21
19
|
|
22
20
|
@include stopsArticleCascade(a) {
|
@@ -25,12 +23,12 @@
|
|
25
23
|
}
|
26
24
|
|
27
25
|
code {
|
28
|
-
background: rgba(
|
26
|
+
background: rgba(daff-color($neutral, 20), 0.5);
|
29
27
|
}
|
30
28
|
|
31
29
|
pre {
|
32
|
-
background: rgba(
|
33
|
-
border: 1px solid
|
30
|
+
background: rgba(daff-color($neutral, 20), 0.3);
|
31
|
+
border: 1px solid daff-color($neutral, 20);
|
34
32
|
|
35
33
|
code {
|
36
34
|
background: none;
|
@@ -39,21 +37,21 @@
|
|
39
37
|
}
|
40
38
|
|
41
39
|
hr {
|
42
|
-
background:
|
40
|
+
background: daff-color($neutral, 20);
|
43
41
|
}
|
44
42
|
|
45
43
|
blockquote {
|
46
|
-
background: rgba(
|
47
|
-
border-left: 4px solid
|
48
|
-
color:
|
44
|
+
background: rgba(daff-color($primary), 0.1);
|
45
|
+
border-left: 4px solid daff-color($primary, 50);
|
46
|
+
color: daff-color($primary, 100);
|
49
47
|
|
50
48
|
code {
|
51
|
-
background: rgba(
|
52
|
-
color:
|
49
|
+
background: rgba(daff-color($primary), 0.12);
|
50
|
+
color: daff-color($primary, 100);
|
53
51
|
|
54
52
|
@include stopsArticleCascade(a) {
|
55
|
-
color:
|
56
|
-
text-decoration-color:
|
53
|
+
color: daff-color($primary, 70);
|
54
|
+
text-decoration-color: daff-color($primary, 70);
|
57
55
|
}
|
58
56
|
}
|
59
57
|
}
|
@@ -62,7 +60,7 @@
|
|
62
60
|
border: 1px solid $table-border-light;
|
63
61
|
|
64
62
|
th {
|
65
|
-
background:
|
63
|
+
background: daff-color($neutral, 10);
|
66
64
|
}
|
67
65
|
|
68
66
|
th,
|
@@ -89,7 +87,7 @@
|
|
89
87
|
}
|
90
88
|
}
|
91
89
|
|
92
|
-
@include
|
90
|
+
@include dark($mode) {
|
93
91
|
color: $text-color-dark;
|
94
92
|
|
95
93
|
@include stopsArticleCascade(a) {
|
@@ -98,12 +96,12 @@
|
|
98
96
|
}
|
99
97
|
|
100
98
|
code {
|
101
|
-
background: rgba(
|
99
|
+
background: rgba(daff-color($neutral, 20), 0.15);
|
102
100
|
}
|
103
101
|
|
104
102
|
pre {
|
105
|
-
background: rgba(
|
106
|
-
border: 1px solid rgba(
|
103
|
+
background: rgba(daff-color($neutral, 20), 0.15);
|
104
|
+
border: 1px solid rgba(daff-color($neutral, 20), 0.15);
|
107
105
|
|
108
106
|
code {
|
109
107
|
background: none;
|
@@ -112,21 +110,21 @@
|
|
112
110
|
}
|
113
111
|
|
114
112
|
hr {
|
115
|
-
background:
|
113
|
+
background: daff-color($neutral, 80);
|
116
114
|
}
|
117
115
|
|
118
116
|
blockquote {
|
119
|
-
background: rgba(
|
120
|
-
border-left: 4px solid
|
121
|
-
color:
|
117
|
+
background: rgba(daff-color($primary), 0.12);
|
118
|
+
border-left: 4px solid daff-color($primary, 40);
|
119
|
+
color: daff-color($primary, 10);
|
122
120
|
|
123
121
|
code {
|
124
|
-
background: rgba(
|
125
|
-
color:
|
122
|
+
background: rgba(daff-color($primary), 0.18);
|
123
|
+
color: daff-color($primary, 10);
|
126
124
|
|
127
125
|
@include stopsArticleCascade(a) {
|
128
|
-
color:
|
129
|
-
text-decoration-color:
|
126
|
+
color: daff-color($primary, 40);
|
127
|
+
text-decoration-color: daff-color($primary, 40);
|
130
128
|
}
|
131
129
|
}
|
132
130
|
}
|
@@ -135,7 +133,7 @@
|
|
135
133
|
border: 1px solid $table-border-dark;
|
136
134
|
|
137
135
|
th {
|
138
|
-
background:
|
136
|
+
background: daff-color($neutral, 90);
|
139
137
|
}
|
140
138
|
|
141
139
|
th,
|
@@ -22,6 +22,9 @@ export declare class DaffCheckboxControlValueAccessorDirective implements OnInit
|
|
22
22
|
/**
|
23
23
|
* A lifecycle method called when the directive is initialized.
|
24
24
|
*/
|
25
|
+
/**
|
26
|
+
* @docs-private
|
27
|
+
*/
|
25
28
|
ngOnInit(): void;
|
26
29
|
/**
|
27
30
|
* writes a new value down into the component.
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffErrorMessageComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageComponent, never>;
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"],
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffErrorMessageComponent, "daff-error-message", never, {}, {}, never, ["*"], true, never>;
|
6
9
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./error-message.component";
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
3
6
|
export declare class DaffErrorMessageModule {
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffErrorMessageModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffErrorMessageModule, [typeof i1.DaffErrorMessageComponent],
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffErrorMessageModule, never, [typeof i1.DaffErrorMessageComponent], [typeof i1.DaffErrorMessageComponent]>;
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffErrorMessageModule>;
|
7
10
|
}
|
@@ -1,53 +1,68 @@
|
|
1
|
-
import {
|
1
|
+
import { AfterContentInit, AfterContentChecked, ChangeDetectorRef } from '@angular/core';
|
2
|
+
import { DaffPrefixDirective } from '../../../../core/prefix-suffix/prefix.directive';
|
3
|
+
import { DaffSuffixDirective } from '../../../../core/prefix-suffix/suffix.directive';
|
2
4
|
import { DaffFormFieldControl } from '../form-field-control';
|
3
5
|
import * as i0 from "@angular/core";
|
4
|
-
|
6
|
+
import * as i1 from "../../../../core/skeletonable/skeletonable.directive";
|
7
|
+
export declare class DaffFormFieldComponent implements AfterContentInit, AfterContentChecked {
|
8
|
+
private cd;
|
9
|
+
/** @docs-private */
|
10
|
+
class: boolean;
|
11
|
+
/** @docs-private */
|
12
|
+
get isSelectField(): boolean;
|
13
|
+
/** @docs-private */
|
14
|
+
_prefix: DaffPrefixDirective;
|
15
|
+
/** @docs-private */
|
16
|
+
_suffix: DaffSuffixDirective;
|
5
17
|
/**
|
18
|
+
* The child form control that the form field manages.
|
19
|
+
*
|
6
20
|
* @docs-private
|
7
21
|
*/
|
8
|
-
|
9
|
-
class: boolean;
|
22
|
+
_control: DaffFormFieldControl<unknown>;
|
10
23
|
/**
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
* @deprecated Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
24
|
+
* Tracking property to keep a record of whether or not the
|
25
|
+
* form field should be marked as error.
|
15
26
|
*/
|
16
|
-
|
27
|
+
isError: boolean;
|
17
28
|
/**
|
18
|
-
* The child form control that the form-field manages
|
19
|
-
*
|
20
29
|
* @docs-private
|
21
30
|
*/
|
22
|
-
|
31
|
+
get errorClass(): boolean;
|
23
32
|
/**
|
24
33
|
* Tracking property to keep a record of whether or not the
|
25
|
-
* form field
|
34
|
+
* form field contains any user input.
|
26
35
|
*/
|
27
|
-
|
36
|
+
isFilled: boolean;
|
37
|
+
isDisabled: boolean;
|
38
|
+
/**
|
39
|
+
* @docs-private
|
40
|
+
*/
|
41
|
+
get disabledClass(): boolean;
|
28
42
|
/**
|
29
43
|
* Tracking property to keep a record of whether or not the
|
30
44
|
* form field should be marked as valid.
|
31
45
|
*/
|
32
46
|
isValid: boolean;
|
33
47
|
/**
|
34
|
-
* @docs
|
35
|
-
|
48
|
+
* @docs-private
|
49
|
+
*/
|
50
|
+
get validClass(): boolean;
|
51
|
+
constructor(cd: ChangeDetectorRef);
|
52
|
+
/**
|
36
53
|
* Determines whether or not the form field should display its focused state.
|
37
54
|
*/
|
38
55
|
get isFocused(): boolean;
|
39
56
|
/**
|
40
|
-
* Keeps the state of the form field consistent with its child DaffFormControl
|
41
|
-
*
|
42
|
-
* TODO: consider whether or not this can be refactored to some kind of
|
43
|
-
* observable to remove unnecessary change detection.
|
44
|
-
*
|
45
57
|
* @docs-private
|
46
58
|
*/
|
47
|
-
|
59
|
+
get focusedClass(): boolean;
|
60
|
+
/**
|
61
|
+
* @docs-private
|
62
|
+
*/
|
63
|
+
get raisedClass(): boolean;
|
48
64
|
/**
|
49
|
-
* Validate whether or not the FormField is in
|
50
|
-
* a "usable" state.
|
65
|
+
* Validate whether or not the FormField is in a "usable" state.
|
51
66
|
*/
|
52
67
|
private _validateFormControl;
|
53
68
|
/**
|
@@ -67,5 +82,5 @@ export declare class DaffFormFieldComponent implements DoCheck, AfterContentInit
|
|
67
82
|
*/
|
68
83
|
ngAfterContentChecked(): void;
|
69
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldComponent, never>;
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffFormFieldComponent, "daff-form-field", never, {}, {}, ["_prefix", "_suffix", "_control"], ["[daffPrefix]", "label[daffFormLabel]", "*", "[daffSuffix]", "daff-hint", "daff-error-message"], true, [{ directive: typeof i1.DaffSkeletonableDirective; inputs: { "skeleton": "skeleton"; }; outputs: {}; }]>;
|
71
86
|
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { NgControl } from '@angular/forms';
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
3
|
+
import { DaffFormFieldState } from './form-field-state';
|
2
4
|
/**
|
3
5
|
*
|
4
6
|
* The class that a form control must **implement** in order to be
|
@@ -10,9 +12,22 @@ import { NgControl } from '@angular/forms';
|
|
10
12
|
* in javascript, they get thrown out by the typescript compiler and cannot
|
11
13
|
* be used for the necessary dependency injection.
|
12
14
|
*/
|
13
|
-
export declare abstract class DaffFormFieldControl {
|
14
|
-
|
15
|
-
readonly controlType?: any;
|
16
|
-
readonly focused: boolean;
|
15
|
+
export declare abstract class DaffFormFieldControl<T> {
|
16
|
+
ngControl: NgControl | null;
|
17
|
+
abstract readonly controlType?: any;
|
18
|
+
abstract readonly focused: boolean;
|
19
|
+
get raised(): boolean;
|
17
20
|
abstract focus(event?: Event): void;
|
21
|
+
abstract readonly value: T;
|
22
|
+
constructor(ngControl: NgControl | null);
|
23
|
+
get state(): DaffFormFieldState;
|
24
|
+
_stateChanges: BehaviorSubject<{
|
25
|
+
focused: boolean;
|
26
|
+
filled: boolean;
|
27
|
+
disabled: boolean;
|
28
|
+
error: boolean;
|
29
|
+
valid: boolean;
|
30
|
+
}>;
|
31
|
+
stateChanges: Observable<DaffFormFieldState>;
|
32
|
+
emitState(): void;
|
18
33
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DaffFormFieldComponent } from './form-field/form-field.component';
|
2
|
+
import { DaffPrefixDirective } from '../../../core/prefix-suffix/prefix.directive';
|
3
|
+
import { DaffSuffixDirective } from '../../../core/prefix-suffix/suffix.directive';
|
4
|
+
import { DaffErrorMessageComponent } from '../error-message/error-message.component';
|
5
|
+
import { DaffFormLabelDirective } from '../form-label/form-label.directive';
|
6
|
+
import { DaffHintComponent } from '../hint/hint.component';
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
10
|
+
export declare const DAFF_FORM_FIELD_COMPONENTS: readonly [typeof DaffFormFieldComponent, typeof DaffErrorMessageComponent, typeof DaffFormLabelDirective, typeof DaffHintComponent, typeof DaffPrefixDirective, typeof DaffSuffixDirective];
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./form-field/form-field.component";
|
3
|
-
import * as i2 from "
|
4
|
-
import * as i3 from "
|
5
|
-
|
3
|
+
import * as i2 from "../error-message/error-message.module";
|
4
|
+
import * as i3 from "../form-label/form-label.module";
|
5
|
+
/**
|
6
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
7
|
+
*/
|
6
8
|
export declare class DaffFormFieldModule {
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormFieldModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormFieldModule, [typeof i1.DaffFormFieldComponent
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormFieldModule, never, [typeof i1.DaffFormFieldComponent, typeof i2.DaffErrorMessageModule, typeof i3.DaffFormLabelModule], [typeof i1.DaffFormFieldComponent, typeof i2.DaffErrorMessageModule, typeof i3.DaffFormLabelModule]>;
|
9
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffFormFieldModule>;
|
10
12
|
}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { DaffFormFieldModule } from './form-field.module';
|
2
|
-
export
|
2
|
+
export { DaffFormFieldComponent } from './form-field/form-field.component';
|
3
3
|
export { DaffFormFieldControl } from './form-field-control';
|
4
|
+
export { DAFF_FORM_FIELD_COMPONENTS } from './form-field';
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
export declare class DaffFormLabelDirective {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
3
6
|
class: boolean;
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormLabelDirective, never>;
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormLabelDirective, "[daffFormLabel]", never, {}, {}, never, never,
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffFormLabelDirective, "[daffFormLabel]", never, {}, {}, never, never, true, never>;
|
6
9
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./form-label.directive";
|
3
|
+
/**
|
4
|
+
* @deprecated in favor of standalone components. Deprecated in version 0.84.0. Will be removed in version 1.0.0.
|
5
|
+
*/
|
3
6
|
export declare class DaffFormLabelModule {
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffFormLabelModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormLabelModule, [typeof i1.DaffFormLabelDirective],
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffFormLabelModule, never, [typeof i1.DaffFormLabelDirective], [typeof i1.DaffFormLabelDirective]>;
|
6
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffFormLabelModule>;
|
7
10
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class DaffHintComponent {
|
3
|
+
/**
|
4
|
+
* @docs-private
|
5
|
+
*/
|
6
|
+
class: boolean;
|
7
|
+
/**
|
8
|
+
* Whether or not the hint has been validated
|
9
|
+
* */
|
10
|
+
validated: boolean;
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffHintComponent, never>;
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffHintComponent, "daff-hint", never, { "validated": { "alias": "validated"; "required": false; }; }, {}, never, ["*"], true, never>;
|
13
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DaffHintComponent } from './hint.component';
|
@@ -2,7 +2,7 @@ import { ElementRef } from '@angular/core';
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
3
3
|
import { DaffFormFieldControl } from '../form-field/form-field-control';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
-
export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
5
|
+
export declare class DaffNativeSelectComponent extends DaffFormFieldControl<string | number> implements DaffFormFieldControl<string | number> {
|
6
6
|
/**
|
7
7
|
* @docs-private
|
8
8
|
*/
|
@@ -12,6 +12,9 @@ export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
|
12
12
|
* @docs-private
|
13
13
|
*/
|
14
14
|
controlType: string;
|
15
|
+
/**
|
16
|
+
* @docs-private
|
17
|
+
*/
|
15
18
|
class: boolean;
|
16
19
|
/**
|
17
20
|
* Has the form been submitted.
|
@@ -32,6 +35,7 @@ export declare class DaffNativeSelectComponent implements DaffFormFieldControl {
|
|
32
35
|
*/
|
33
36
|
ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>);
|
34
37
|
onFocus(): void;
|
38
|
+
get value(): string;
|
35
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNativeSelectComponent, [{ optional: true; self: true; }, null]>;
|
36
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNativeSelectComponent, "select[daff-native-select]", never, { "formSubmitted": { "alias": "formSubmitted"; "required": false; }; }, {}, never, ["*"], false, never>;
|
37
41
|
}
|
@@ -21,6 +21,9 @@ export declare class DaffRadioControlValueAccessorDirective implements OnInit, C
|
|
21
21
|
*/
|
22
22
|
name: string;
|
23
23
|
constructor(_control: NgControl, _registry: DaffRadioRegistry, _radio: DaffRadioComponent);
|
24
|
+
/**
|
25
|
+
* @docs-private
|
26
|
+
*/
|
24
27
|
ngOnInit(): void;
|
25
28
|
/**
|
26
29
|
*
|
@@ -13,6 +13,9 @@ export declare class DaffBreadcrumbComponent implements AfterContentInit {
|
|
13
13
|
* @docs-private
|
14
14
|
*/
|
15
15
|
breadcrumbItems: QueryList<DaffBreadcrumbItemDirective>;
|
16
|
+
/**
|
17
|
+
* @docs-private
|
18
|
+
*/
|
16
19
|
ngAfterContentInit(): void;
|
17
20
|
private updateActiveState;
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffBreadcrumbComponent, never>;
|
@@ -1,13 +1,20 @@
|
|
1
|
-
@use '
|
2
|
-
@use '../../scss/core';
|
3
|
-
@use '../../scss/theming';
|
1
|
+
@use '../../scss/theming' as *;
|
4
2
|
|
5
3
|
@mixin daff-breadcrumb-theme($theme) {
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$neutral: core.daff-map-get($theme, 'core', 'neutral');
|
4
|
+
$neutral: daff-get-palette($theme, neutral);
|
5
|
+
$mode: daff-get-theme-mode($theme);
|
9
6
|
|
10
7
|
.daff-breadcrumb__item {
|
11
|
-
|
8
|
+
a {
|
9
|
+
@include light($mode) {
|
10
|
+
color: daff-color($neutral, 80);
|
11
|
+
text-decoration-color: daff-color($neutral, 80);
|
12
|
+
}
|
13
|
+
|
14
|
+
@include dark($mode) {
|
15
|
+
color: daff-color($neutral, 30);
|
16
|
+
text-decoration-color: daff-color($neutral, 30);
|
17
|
+
}
|
18
|
+
}
|
12
19
|
}
|
13
20
|
}
|
@@ -1,29 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import { DaffPrefixable, DaffSuffixable } from '@daffodil/design';
|
1
|
+
import { DaffPrefixDirective, DaffSuffixDirective } from '@daffodil/design';
|
3
2
|
import { DaffButtonSizableDirective } from './button-sizable.directive';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
import * as i1 from "@daffodil/design";
|
6
5
|
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;
|
6
|
+
export declare class DaffButtonBaseDirective {
|
25
7
|
private size;
|
26
|
-
|
8
|
+
_prefix: DaffPrefixDirective;
|
9
|
+
_suffix: DaffSuffixDirective;
|
10
|
+
constructor(size: DaffButtonSizableDirective);
|
27
11
|
/**
|
28
12
|
* @docs-private
|
29
13
|
*/
|
@@ -54,6 +38,5 @@ export declare class DaffButtonBaseDirective extends _daffButtonBase implements
|
|
54
38
|
*/
|
55
39
|
get tabIndexAttribute(): number;
|
56
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffButtonBaseDirective, never>;
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {},
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffButtonBaseDirective, "[daffButtonBase]", never, { "loading": { "alias": "loading"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_prefix", "_suffix"], 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: {}; }]>;
|
58
42
|
}
|
59
|
-
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DaffButtonBaseDirective } from '../button-base.directive';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
/**
|
4
|
-
* @deprecated in favor of the `elevated` property. Deprecated in 0.82.0. Will be removed in version 1.0.0.
|
4
|
+
* @deprecated in favor of the `elevated` property. Deprecated in version 0.82.0. Will be removed in version 1.0.0.
|
5
5
|
*
|
6
6
|
* DaffRaisedButtonComponent is a rectangular contained button with background color and elevation.
|
7
7
|
*
|