@daffodil/design 0.90.0 → 0.92.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/README.md +26 -38
- package/accordion/index.d.ts +9 -6
- package/article/README.md +66 -46
- package/article/index.d.ts +41 -0
- package/article/src/article-theme.scss +22 -0
- package/breadcrumb/README.md +6 -1
- package/breadcrumb/index.d.ts +65 -11
- package/breadcrumb/src/breadcrumb-theme.scss +1 -1
- package/button/README.md +36 -33
- package/button/index.d.ts +27 -6
- package/button/src/button/basic/button-theme.scss +4 -2
- package/button/src/button/button-base.scss +29 -6
- package/button/src/button/icon/icon-theme.scss +10 -6
- package/button/src/button/raised/raised-theme.scss +6 -4
- package/callout/README.md +15 -27
- package/card/README.md +36 -69
- package/card/index.d.ts +7 -41
- package/card/src/card-base-theme.scss +2 -5
- package/card/src/card-base.scss +2 -2
- package/checkbox/README.md +0 -0
- package/checkbox/index.d.ts +177 -0
- package/container/README.md +18 -23
- package/fesm2022/daffodil-design-accordion.mjs +34 -25
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article.mjs +283 -17
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +180 -28
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +90 -45
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +23 -23
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +43 -90
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox.mjs +317 -0
- package/fesm2022/daffodil-design-checkbox.mjs.map +1 -0
- package/fesm2022/daffodil-design-container.mjs +8 -8
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-form-field.mjs +56 -86
- package/fesm2022/daffodil-design-form-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-form.mjs +62 -0
- package/fesm2022/daffodil-design-form.mjs.map +1 -0
- package/fesm2022/daffodil-design-hero.mjs +23 -23
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image.mjs +19 -11
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input.mjs +18 -14
- package/fesm2022/daffodil-design-input.mjs.map +1 -1
- package/fesm2022/daffodil-design-link-set.mjs +25 -17
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list.mjs +16 -16
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +8 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +13 -13
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +223 -60
- package/fesm2022/daffodil-design-menu.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +86 -83
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-native-select.mjs +47 -41
- package/fesm2022/daffodil-design-native-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +25 -21
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +28 -64
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator.mjs +11 -16
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field.mjs +19 -18
- package/fesm2022/daffodil-design-quantity-field.mjs.map +1 -1
- package/fesm2022/daffodil-design-radio.mjs +27 -56
- package/fesm2022/daffodil-design-radio.mjs.map +1 -1
- package/fesm2022/daffodil-design-select.mjs +6 -6
- package/fesm2022/daffodil-design-select.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +30 -60
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-spinner.mjs +99 -0
- package/fesm2022/daffodil-design-spinner.mjs.map +1 -0
- package/fesm2022/daffodil-design-switch.mjs +49 -106
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +35 -27
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-tag.mjs +7 -7
- package/fesm2022/daffodil-design-tag.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet.mjs +6 -8
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-textarea.mjs +6 -3
- package/fesm2022/daffodil-design-textarea.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +79 -80
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree.mjs +152 -112
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +6 -6
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -1
- package/fesm2022/daffodil-design.mjs +559 -711
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/form/README.md +75 -0
- package/form/index.d.ts +27 -0
- package/form-field/README.md +74 -99
- package/form-field/index.d.ts +64 -42
- package/hero/README.md +5 -5
- package/image/README.md +27 -19
- package/image/index.d.ts +6 -1
- package/index.d.ts +282 -447
- package/input/README.md +36 -16
- package/input/index.d.ts +4 -3
- package/link-set/index.d.ts +9 -1
- package/list/README.md +2 -2
- package/loading-icon/README.md +1 -1
- package/loading-icon/index.d.ts +1 -1
- package/media-gallery/README.md +3 -3
- package/menu/README.md +107 -10
- package/menu/index.d.ts +143 -11
- package/modal/README.md +107 -17
- package/modal/index.d.ts +72 -35
- package/native-select/README.md +52 -15
- package/native-select/index.d.ts +8 -7
- package/navbar/README.md +23 -17
- package/navbar/index.d.ts +12 -2
- package/navbar/src/navbar-theme.scss +4 -46
- package/notification/README.md +4 -4
- package/notification/index.d.ts +7 -38
- package/package.json +1 -1
- package/paginator/README.md +42 -6
- package/paginator/index.d.ts +5 -9
- package/progress-bar/README.md +3 -3
- package/quantity-field/README.md +4 -4
- package/quantity-field/index.d.ts +4 -1
- package/radio/README.md +1 -1
- package/radio/index.d.ts +0 -16
- package/scss/layout/_breakpoint.scss +1 -1
- package/scss/theme.scss +9 -5
- package/scss/theming/_color-palettes.scss +19 -11
- package/scss/theming/_configure-theme.scss +11 -10
- package/scss/theming/_daff-theme.scss +5 -14
- package/scss/theming/_get-base-color.scss +2 -2
- package/scss/theming/_get-palette.scss +2 -2
- package/scss/theming/_get-theme-mode.scss +3 -3
- package/scss/theming/_index.scss +2 -1
- package/scss/theming/contrast/max-contrast/max-contrast.scss +3 -3
- package/scss/theming/contrast/text-contrast/text-contrast.scss +22 -16
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +57 -0
- package/scss/theming/create-theme/_create-theme.scss +330 -0
- package/scss/theming/create-theme/_create-theme.spec.scss +122 -0
- package/scss/theming/create-theme/_index.scss +1 -0
- package/scss/theming/get-font-colors/_get-font-colors.scss +36 -0
- package/scss/theming/get-font-colors/_get-font-colors.spec.scss +72 -0
- package/scss/typography/mixins/_font-weight.scss +8 -14
- package/select/README.md +107 -4
- package/sidebar/README.md +6 -14
- package/sidebar/index.d.ts +3 -15
- package/spinner/README.md +57 -0
- package/spinner/index.d.ts +53 -0
- package/spinner/src/spinner-theme.scss +62 -0
- package/switch/README.md +21 -29
- package/switch/index.d.ts +18 -48
- package/switch/src/switch-theme.scss +26 -18
- package/tabs/README.md +1 -1
- package/tabs/index.d.ts +8 -5
- package/tag/README.md +24 -30
- package/tag/index.d.ts +1 -1
- package/tag/src/tag-theme.scss +11 -9
- package/text-snippet/README.md +1 -1
- package/text-snippet/src/text-snippet-theme.scss +12 -0
- package/textarea/README.md +36 -6
- package/textarea/index.d.ts +4 -4
- package/toast/README.md +4 -4
- package/tree/README.md +39 -22
- package/tree/index.d.ts +57 -96
- package/tree/src/tree-theme.scss +0 -4
- package/accordion/examples/index.d.ts +0 -20
- package/article/examples/index.d.ts +0 -50
- package/breadcrumb/examples/index.d.ts +0 -10
- package/button/examples/index.d.ts +0 -67
- package/callout/examples/index.d.ts +0 -41
- package/card/examples/index.d.ts +0 -62
- package/card/src/card/raised/raised-theme.scss +0 -28
- package/checkbox/examples/index.d.ts +0 -32
- package/container/examples/index.d.ts +0 -16
- package/fesm2022/daffodil-design-accordion-examples.mjs +0 -50
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-article-examples.mjs +0 -134
- package/fesm2022/daffodil-design-article-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +0 -46
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-button-examples.mjs +0 -178
- package/fesm2022/daffodil-design-button-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +0 -116
- package/fesm2022/daffodil-design-callout-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-card-examples.mjs +0 -168
- package/fesm2022/daffodil-design-card-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +0 -76
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-container-examples.mjs +0 -41
- package/fesm2022/daffodil-design-container-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-form-field-examples.mjs +0 -96
- package/fesm2022/daffodil-design-form-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +0 -121
- package/fesm2022/daffodil-design-hero-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-image-examples.mjs +0 -58
- package/fesm2022/daffodil-design-image-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-input-examples.mjs +0 -108
- package/fesm2022/daffodil-design-input-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-list-examples.mjs +0 -77
- package/fesm2022/daffodil-design-list-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +0 -44
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +0 -104
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +0 -50
- package/fesm2022/daffodil-design-menu-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-modal-examples.mjs +0 -51
- package/fesm2022/daffodil-design-modal-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-native-select-examples.mjs +0 -71
- package/fesm2022/daffodil-design-native-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +0 -88
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +0 -102
- package/fesm2022/daffodil-design-notification-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +0 -59
- package/fesm2022/daffodil-design-paginator-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +0 -57
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +0 -85
- package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-radio-examples.mjs +0 -34
- package/fesm2022/daffodil-design-radio-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-select-examples.mjs +0 -117
- package/fesm2022/daffodil-design-select-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sidebar-examples.mjs +0 -109
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-sticky-examples.mjs +0 -25
- package/fesm2022/daffodil-design-sticky-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +0 -110
- package/fesm2022/daffodil-design-switch-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +0 -115
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tag-examples.mjs +0 -125
- package/fesm2022/daffodil-design-tag-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +0 -25
- package/fesm2022/daffodil-design-text-snippet-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-textarea-examples.mjs +0 -66
- package/fesm2022/daffodil-design-textarea-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +0 -147
- package/fesm2022/daffodil-design-toast-examples.mjs.map +0 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +0 -104
- package/fesm2022/daffodil-design-tree-examples.mjs.map +0 -1
- package/form-field/examples/index.d.ts +0 -18
- package/hero/examples/index.d.ts +0 -45
- package/image/examples/index.d.ts +0 -10
- package/input/examples/index.d.ts +0 -10
- package/list/examples/index.d.ts +0 -29
- package/loading-icon/examples/index.d.ts +0 -16
- package/media-gallery/examples/index.d.ts +0 -38
- package/menu/examples/index.d.ts +0 -20
- package/modal/examples/index.d.ts +0 -15
- package/native-select/examples/index.d.ts +0 -10
- package/navbar/examples/index.d.ts +0 -31
- package/notification/examples/index.d.ts +0 -12
- package/paginator/examples/index.d.ts +0 -26
- package/progress-bar/examples/index.d.ts +0 -10
- package/quantity-field/examples/index.d.ts +0 -30
- package/radio/examples/index.d.ts +0 -13
- package/select/examples/index.d.ts +0 -28
- package/sidebar/examples/index.d.ts +0 -10
- package/sticky/examples/index.d.ts +0 -10
- package/switch/examples/index.d.ts +0 -46
- package/tabs/examples/index.d.ts +0 -12
- package/tag/examples/index.d.ts +0 -50
- package/text-snippet/examples/index.d.ts +0 -10
- package/textarea/examples/index.d.ts +0 -10
- package/toast/examples/index.d.ts +0 -56
- package/tree/examples/index.d.ts +0 -18
- /package/{form-field → form}/src/error-message/error-message-theme.scss +0 -0
- /package/{form-field → form}/src/hint/hint-theme.scss +0 -0
package/notification/index.d.ts
CHANGED
|
@@ -2,28 +2,10 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import * as i1 from '@daffodil/design';
|
|
5
|
-
import { DaffPrefixDirective, DaffStatusableDirective } from '@daffodil/design';
|
|
5
|
+
import { DaffPrefixDirective, DaffStatusableDirective, DaffOrientableDirective } from '@daffodil/design';
|
|
6
6
|
import * as i3 from '@fortawesome/angular-fontawesome';
|
|
7
7
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* The available orientations for a notification.
|
|
11
|
-
*
|
|
12
|
-
* | Orientation | Description |
|
|
13
|
-
* | -- | -- |
|
|
14
|
-
* | `vertical` | Stacks notification content from top to bottom. This is the default orientation. |
|
|
15
|
-
* | `horizontal` | Places notification content side-by-side. |
|
|
16
|
-
*/
|
|
17
|
-
type DaffNotificationOrientation = 'horizontal' | 'vertical';
|
|
18
|
-
/**
|
|
19
|
-
* Enum for representing the available notification orientations.
|
|
20
|
-
* See {@link DaffNotificationOrientation} for descriptions of each orientation.
|
|
21
|
-
*/
|
|
22
|
-
declare enum DaffNotificationOrientationEnum {
|
|
23
|
-
Horizontal = "horizontal",
|
|
24
|
-
Vertical = "vertical"
|
|
25
|
-
}
|
|
26
|
-
|
|
27
9
|
/**
|
|
28
10
|
* Actions is used to include actionable buttons related to the notification (e.g., dismiss, navigate).
|
|
29
11
|
*
|
|
@@ -60,6 +42,7 @@ declare class DaffNotificationActionsDirective {
|
|
|
60
42
|
*/
|
|
61
43
|
declare class DaffNotificationComponent {
|
|
62
44
|
private statusDirective;
|
|
45
|
+
private orientation;
|
|
63
46
|
/**
|
|
64
47
|
* @docs-private
|
|
65
48
|
*/
|
|
@@ -83,11 +66,7 @@ declare class DaffNotificationComponent {
|
|
|
83
66
|
* Displays a close icon if `true`.
|
|
84
67
|
*/
|
|
85
68
|
dismissible: boolean;
|
|
86
|
-
constructor(statusDirective: DaffStatusableDirective);
|
|
87
|
-
/**
|
|
88
|
-
* The orientation of a notification.
|
|
89
|
-
*/
|
|
90
|
-
orientation: DaffNotificationOrientation;
|
|
69
|
+
constructor(statusDirective: DaffStatusableDirective, orientation: DaffOrientableDirective);
|
|
91
70
|
/**
|
|
92
71
|
* Emits when the notification is closed.
|
|
93
72
|
*/
|
|
@@ -99,8 +78,7 @@ declare class DaffNotificationComponent {
|
|
|
99
78
|
*/
|
|
100
79
|
onCloseNotification(event: Event): void;
|
|
101
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationComponent, never>;
|
|
102
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; };
|
|
103
|
-
static ngAcceptInputType_orientation: DaffNotificationOrientation | null | undefined;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffNotificationComponent, "daff-notification", never, { "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeNotification": "closeNotification"; }, ["_prefix", "_actions"], ["[daffPrefix]", "[daffNotificationTitle]", "[daffNotificationMessage]", "[daffNotificationActions]"], true, [{ directive: typeof i1.DaffArticleEncapsulatedDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.DaffStatusableDirective; inputs: { "status": "status"; }; outputs: {}; }, { directive: typeof i1.DaffOrientableDirective; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
|
|
104
82
|
}
|
|
105
83
|
|
|
106
84
|
/**
|
|
@@ -130,27 +108,18 @@ declare class DaffNotificationTitleDirective {
|
|
|
130
108
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationTitleDirective, "[daffNotificationTitle]", never, {}, {}, never, never, true, never>;
|
|
131
109
|
}
|
|
132
110
|
|
|
133
|
-
/**
|
|
134
|
-
* @deprecated in favor of DaffNotificationMessageDirective. Deprecated in version 0.88.0. Will be removed in version 0.91.0.
|
|
135
|
-
*/
|
|
136
|
-
declare class DaffNotificationSubtitleDirective {
|
|
137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationSubtitleDirective, never>;
|
|
138
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DaffNotificationSubtitleDirective, "[daffNotificationSubtitle]", never, {}, {}, never, never, true, never>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
111
|
/**
|
|
142
112
|
* @deprecated in favor of {@link DAFF_NOTIFICATION_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
|
143
113
|
*/
|
|
144
114
|
declare class DaffNotificationModule {
|
|
145
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffNotificationModule, never>;
|
|
146
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective
|
|
116
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffNotificationModule, never, [typeof i1$1.CommonModule, typeof i1.DaffPrefixSuffixModule, typeof i3.FontAwesomeModule, typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective], [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof i1.DaffPrefixSuffixModule]>;
|
|
147
117
|
static ɵinj: i0.ɵɵInjectorDeclaration<DaffNotificationModule>;
|
|
148
118
|
}
|
|
149
119
|
|
|
150
120
|
/**
|
|
151
121
|
* @docs-private
|
|
152
122
|
*/
|
|
153
|
-
declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof
|
|
123
|
+
declare const DAFF_NOTIFICATION_COMPONENTS: readonly [typeof DaffNotificationComponent, typeof DaffNotificationActionsDirective, typeof DaffNotificationMessageDirective, typeof DaffNotificationTitleDirective, typeof DaffPrefixDirective];
|
|
154
124
|
|
|
155
|
-
export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule,
|
|
156
|
-
export type { DaffNotificationOrientation };
|
|
125
|
+
export { DAFF_NOTIFICATION_COMPONENTS, DaffNotificationActionsDirective, DaffNotificationComponent, DaffNotificationMessageDirective, DaffNotificationModule, DaffNotificationTitleDirective };
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/design","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/design"]}}},"version":"0.92.3-rc.0","author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","description":"An Angular component library built to support ecommerce applications with accessible UI components and theming. Part of the Daffodil ecommerce framework.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"peerDependencies":{"@angular/animations":"^20.0.0","@angular/common":"^20.0.0","@angular/core":"^20.0.0","@angular/forms":"^20.0.0","@angular/cdk":"^20.0.0","@daffodil/core":"0.92.3-rc.0","@fortawesome/angular-fontawesome":"^3.0.0","@fortawesome/fontawesome-svg-core":"^7.0.1","@fortawesome/free-solid-svg-icons":"^7.0.1","@fortawesome/free-brands-svg-icons":"^7.0.1","@fortawesome/free-regular-svg-icons":"^7.0.1","modern-normalize":"^3.0.1","rxjs":"^7.0.0"},"optionalDependencies":{"@faker-js/faker":"^10.3.0"},"exports":{"./scss/global":{"sass":"./scss/global.scss"},"./scss/theme":{"sass":"./scss/theme.scss"},"./scss/utilities":{"sass":"./scss/utilities.scss"},"./scss/typography":{"sass":"./scss/typography/_index.scss"},"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-design.mjs"},"./article":{"types":"./article/index.d.ts","default":"./fesm2022/daffodil-design-article.mjs"},"./accordion":{"types":"./accordion/index.d.ts","default":"./fesm2022/daffodil-design-accordion.mjs"},"./breadcrumb":{"types":"./breadcrumb/index.d.ts","default":"./fesm2022/daffodil-design-breadcrumb.mjs"},"./button":{"types":"./button/index.d.ts","default":"./fesm2022/daffodil-design-button.mjs"},"./callout":{"types":"./callout/index.d.ts","default":"./fesm2022/daffodil-design-callout.mjs"},"./card":{"types":"./card/index.d.ts","default":"./fesm2022/daffodil-design-card.mjs"},"./checkbox":{"types":"./checkbox/index.d.ts","default":"./fesm2022/daffodil-design-checkbox.mjs"},"./container":{"types":"./container/index.d.ts","default":"./fesm2022/daffodil-design-container.mjs"},"./form":{"types":"./form/index.d.ts","default":"./fesm2022/daffodil-design-form.mjs"},"./form-field":{"types":"./form-field/index.d.ts","default":"./fesm2022/daffodil-design-form-field.mjs"},"./hero":{"types":"./hero/index.d.ts","default":"./fesm2022/daffodil-design-hero.mjs"},"./image":{"types":"./image/index.d.ts","default":"./fesm2022/daffodil-design-image.mjs"},"./input":{"types":"./input/index.d.ts","default":"./fesm2022/daffodil-design-input.mjs"},"./link-set":{"types":"./link-set/index.d.ts","default":"./fesm2022/daffodil-design-link-set.mjs"},"./list":{"types":"./list/index.d.ts","default":"./fesm2022/daffodil-design-list.mjs"},"./loading-icon":{"types":"./loading-icon/index.d.ts","default":"./fesm2022/daffodil-design-loading-icon.mjs"},"./media-gallery":{"types":"./media-gallery/index.d.ts","default":"./fesm2022/daffodil-design-media-gallery.mjs"},"./menu":{"types":"./menu/index.d.ts","default":"./fesm2022/daffodil-design-menu.mjs"},"./modal":{"types":"./modal/index.d.ts","default":"./fesm2022/daffodil-design-modal.mjs"},"./native-select":{"types":"./native-select/index.d.ts","default":"./fesm2022/daffodil-design-native-select.mjs"},"./navbar":{"types":"./navbar/index.d.ts","default":"./fesm2022/daffodil-design-navbar.mjs"},"./notification":{"types":"./notification/index.d.ts","default":"./fesm2022/daffodil-design-notification.mjs"},"./paginator":{"types":"./paginator/index.d.ts","default":"./fesm2022/daffodil-design-paginator.mjs"},"./progress-bar":{"types":"./progress-bar/index.d.ts","default":"./fesm2022/daffodil-design-progress-bar.mjs"},"./quantity-field":{"types":"./quantity-field/index.d.ts","default":"./fesm2022/daffodil-design-quantity-field.mjs"},"./radio":{"types":"./radio/index.d.ts","default":"./fesm2022/daffodil-design-radio.mjs"},"./select":{"types":"./select/index.d.ts","default":"./fesm2022/daffodil-design-select.mjs"},"./sidebar":{"types":"./sidebar/index.d.ts","default":"./fesm2022/daffodil-design-sidebar.mjs"},"./spinner":{"types":"./spinner/index.d.ts","default":"./fesm2022/daffodil-design-spinner.mjs"},"./switch":{"types":"./switch/index.d.ts","default":"./fesm2022/daffodil-design-switch.mjs"},"./tabs":{"types":"./tabs/index.d.ts","default":"./fesm2022/daffodil-design-tabs.mjs"},"./tag":{"types":"./tag/index.d.ts","default":"./fesm2022/daffodil-design-tag.mjs"},"./text-snippet":{"types":"./text-snippet/index.d.ts","default":"./fesm2022/daffodil-design-text-snippet.mjs"},"./textarea":{"types":"./textarea/index.d.ts","default":"./fesm2022/daffodil-design-textarea.mjs"},"./toast":{"types":"./toast/index.d.ts","default":"./fesm2022/daffodil-design-toast.mjs"},"./tree":{"types":"./tree/index.d.ts","default":"./fesm2022/daffodil-design-tree.mjs"},"./youtube-player":{"types":"./youtube-player/index.d.ts","default":"./fesm2022/daffodil-design-youtube-player.mjs"}},"module":"fesm2022/daffodil-design.mjs","typings":"index.d.ts","sideEffects":false,"dependencies":{"tslib":"^2.6.2"}}
|
package/paginator/README.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
# Paginator
|
|
2
|
-
|
|
2
|
+
Pagination organizes and divides large amounts of content on separate pages and gives the user control over how much content they want to view on each page.
|
|
3
3
|
|
|
4
|
-
##
|
|
5
|
-
|
|
4
|
+
## Overview
|
|
5
|
+
Pagination can be used with a data table or on a page. It automatically truncates page numbers when there are many pages, using ellipses to indicate skipped pages.
|
|
6
|
+
|
|
7
|
+
<daff-docs-example-viewer example="basic-paginator"></daff-docs-example-viewer>
|
|
8
|
+
|
|
9
|
+
## Best practices
|
|
10
|
+
|
|
11
|
+
**When to use**
|
|
12
|
+
- Displaying large datasets or lists that would be overwhelming on a single page
|
|
13
|
+
- Navigating through search results or product listings
|
|
14
|
+
- Breaking up long-form content into manageable sections
|
|
15
|
+
|
|
16
|
+
**When not to use**
|
|
17
|
+
- Do not use it to display linear journeys, for example, in a form progression. Instead, use the [progress bar](/libs/design/progress-bar/README.md) or [button](/libs/design/button/README.md) components to navigate forward and backward.
|
|
6
18
|
|
|
7
19
|
## Usage
|
|
8
20
|
|
|
@@ -44,10 +56,34 @@ import { CustomComponent } from './custom.component';
|
|
|
44
56
|
export class CustomComponentModule { }
|
|
45
57
|
```
|
|
46
58
|
|
|
59
|
+
> **Warning**
|
|
60
|
+
>
|
|
47
61
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
|
48
62
|
|
|
49
|
-
##
|
|
50
|
-
|
|
63
|
+
## Basic structure
|
|
64
|
+
```html
|
|
65
|
+
<daff-paginator aria-label="Search results page"></daff-paginator>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Features
|
|
69
|
+
|
|
70
|
+
### Truncation
|
|
71
|
+
Ellipses are used to truncate page numbers when the total number of pages exceeds the maximum display limit. Double truncation appears when the current page is separated by more than three pages from both the first and last page.
|
|
51
72
|
|
|
52
73
|
## Accessibility
|
|
53
|
-
|
|
74
|
+
|
|
75
|
+
### Daffodil provides
|
|
76
|
+
`role="navigation"` on the paginator element to ensure proper semantic structure.
|
|
77
|
+
|
|
78
|
+
### Developer responsibilities
|
|
79
|
+
Use `aria-label` or `aria-labelledby` to give a meaningful label to `<daff-paginator>` that describes the content controlled by the paginator. If more than one paginator is used on a page, each will need a unique `aria-label`.
|
|
80
|
+
|
|
81
|
+
```html
|
|
82
|
+
<daff-paginator aria-label="Product list paginator">
|
|
83
|
+
<!-- paginator content -->
|
|
84
|
+
</daff-paginator>
|
|
85
|
+
|
|
86
|
+
<daff-paginator aria-label="Search results paginator">
|
|
87
|
+
<!-- paginator content -->
|
|
88
|
+
</daff-paginator>
|
|
89
|
+
```
|
package/paginator/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges,
|
|
2
|
+
import { OnChanges, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/router';
|
|
5
5
|
import { Params } from '@angular/router';
|
|
@@ -7,7 +7,6 @@ import * as i3 from '@fortawesome/angular-fontawesome';
|
|
|
7
7
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
8
8
|
|
|
9
9
|
declare class DaffPaginatorComponent implements OnChanges {
|
|
10
|
-
private elementRef;
|
|
11
10
|
/**
|
|
12
11
|
* @docs-private
|
|
13
12
|
*/
|
|
@@ -17,13 +16,10 @@ declare class DaffPaginatorComponent implements OnChanges {
|
|
|
17
16
|
*/
|
|
18
17
|
faChevronLeft: _fortawesome_fontawesome_common_types.IconDefinition;
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping numberOfPages
|
|
26
|
-
* and currentPage in sync. For example, if the numberOfPages is dynamically changed to a value less than the currentPage, the paginator will break.
|
|
19
|
+
* The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping `numberOfPages`
|
|
20
|
+
* and `currentPage` in sync.
|
|
21
|
+
*
|
|
22
|
+
* For example, if the `numberOfPages` is dynamically changed to a value less than the `currentPage`, the paginator will break.
|
|
27
23
|
*/
|
|
28
24
|
numberOfPages: number;
|
|
29
25
|
/**
|
package/progress-bar/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A progress bar provides visual feedback about the duration or progress of a task
|
|
|
4
4
|
## Overview
|
|
5
5
|
Progress bars help users understand the status of ongoing processes or tasks. They can display either determinate progress (when the percentage is known) or indeterminate progress (when the percentage is unknown or cannot be calculated).
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<daff-docs-example-viewer example="progress-bar-default"></daff-docs-example-viewer>
|
|
8
8
|
|
|
9
9
|
## Best practices
|
|
10
10
|
|
|
@@ -81,7 +81,7 @@ Use determinate progress bars when the percentage of completion is known. This i
|
|
|
81
81
|
### Indeterminate
|
|
82
82
|
Use indeterminate progress bars when when the percentage of completion is unknown or cannot be calculated. Set the `indeterminate` property to `true`:
|
|
83
83
|
|
|
84
|
-
<
|
|
84
|
+
<daff-docs-example-viewer example="progress-bar-indeterminate"></daff-docs-example-viewer>
|
|
85
85
|
|
|
86
86
|
## Features
|
|
87
87
|
|
|
@@ -90,7 +90,7 @@ The default color is `primary`. Use the `color` property to change a progress ba
|
|
|
90
90
|
|
|
91
91
|
> `theme`, `white`, and `black` should be used with caution to ensure that there is sufficient contrast.
|
|
92
92
|
|
|
93
|
-
<
|
|
93
|
+
<daff-docs-example-viewer example="progress-bar-themes"></daff-docs-example-viewer>
|
|
94
94
|
|
|
95
95
|
## Accessibility
|
|
96
96
|
Progress bar implements the ARIA `role="progressbar"` pattern.
|
package/quantity-field/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Quantity field is a form control element that switches between a native select a
|
|
|
4
4
|
## Overview
|
|
5
5
|
Quantity field is intended for use with cart items and product quantities. The maximum number accepted in a quantity select is configurable and set to 10 by default. It will switch to a quantity input if 10+ is selected.
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<daff-docs-example-viewer example="basic-quantity-field"></daff-docs-example-viewer>
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -52,12 +52,12 @@ export class CustomComponentModule { }
|
|
|
52
52
|
The default allowed range of numbers is 1 to 500. This can be changed by passing in the desired min and max values as inputs. Note that this does not validate the actual input. It merely informs the select which options it should generate and sets the input's min and max attributes. See [input#min](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#min) and [input#max](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#max) for more information.
|
|
53
53
|
|
|
54
54
|
## Disabled quantity field
|
|
55
|
-
<
|
|
55
|
+
<daff-docs-example-viewer example="disabled-quantity-field"></daff-docs-example-viewer>
|
|
56
56
|
|
|
57
57
|
## Custom Select Max Value (15)
|
|
58
58
|
The maximum value at which the field will switch to using an input is configurable.
|
|
59
|
-
<
|
|
59
|
+
<daff-docs-example-viewer example="select-max-quantity-field"></daff-docs-example-viewer>
|
|
60
60
|
|
|
61
61
|
## Custom Range Limits (5 - 50)
|
|
62
62
|
Custom range limits is the absolute minimum and maximum values can be specified.
|
|
63
|
-
<
|
|
63
|
+
<daff-docs-example-viewer example="custom-range-quantity-field"></daff-docs-example-viewer>
|
|
@@ -96,6 +96,9 @@ declare class DaffQuantitySelectComponent {
|
|
|
96
96
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffQuantitySelectComponent, "daff-quantity-select", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "extendable": { "alias": "extendable"; "required": false; }; }, {}, never, never, true, never>;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated in favor of DaffSfQuantityFieldComponent. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
|
|
101
|
+
*/
|
|
99
102
|
declare class DaffQuantityFieldComponent extends DaffFormFieldControl<number> implements ControlValueAccessor, DaffFormFieldControl<number> {
|
|
100
103
|
ngControl: NgControl;
|
|
101
104
|
private cd;
|
|
@@ -157,7 +160,7 @@ declare class DaffQuantityFieldComponent extends DaffFormFieldControl<number> im
|
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
/**
|
|
160
|
-
* @deprecated in favor of
|
|
163
|
+
* @deprecated in favor of DaffSfQuantityFieldComponent. Deprecated in version 0.92.0. Will be removed in version 0.95.0.
|
|
161
164
|
*/
|
|
162
165
|
declare class DaffQuantityFieldModule {
|
|
163
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffQuantityFieldModule, never>;
|
package/radio/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Radio is used to select a single value from a selection of values.
|
|
|
4
4
|
## Overview
|
|
5
5
|
It can be hooked into Angular's `FormControl` to accomodate custom functionality. The `DaffRadioSetComponent` serves as a wrapper around a logical group of radios to provide styling.
|
|
6
6
|
|
|
7
|
-
<
|
|
7
|
+
<daff-docs-example-viewer example="basic-radio"></daff-docs-example-viewer>
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
package/radio/index.d.ts
CHANGED
|
@@ -6,28 +6,12 @@ import { NgControl, ControlValueAccessor } from '@angular/forms';
|
|
|
6
6
|
declare class DaffRadioSetComponent {
|
|
7
7
|
name: string;
|
|
8
8
|
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* @docs-private
|
|
11
|
-
*/
|
|
12
|
-
role: string;
|
|
13
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffRadioSetComponent, never>;
|
|
14
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffRadioSetComponent, "daff-radio-set", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
15
11
|
}
|
|
16
12
|
|
|
17
13
|
declare class DaffRadioComponent implements OnInit {
|
|
18
14
|
private radioset;
|
|
19
|
-
/**
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
role: string;
|
|
23
|
-
/**
|
|
24
|
-
* @docs-private
|
|
25
|
-
*/
|
|
26
|
-
get focusClass(): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @docs-private
|
|
29
|
-
*/
|
|
30
|
-
get disabledClass(): boolean;
|
|
31
15
|
/**
|
|
32
16
|
* @docs-private
|
|
33
17
|
*/
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
///
|
|
21
21
|
@mixin breakpoint($point) {
|
|
22
22
|
@if not map.has-key($map: v.$breakpoints, $key: $point) {
|
|
23
|
-
@warn 'breakpoint(): "#{$
|
|
23
|
+
@warn 'breakpoint(): "#{$point}" is not defined in the $breakpoints map.';
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@media (min-width: map.get(v.$breakpoints, $point)) {
|
package/scss/theme.scss
CHANGED
|
@@ -27,15 +27,14 @@
|
|
|
27
27
|
@use '../button/src/button/underline/underline-theme' as underline-button;
|
|
28
28
|
@use '../article/src/article-theme' as article;
|
|
29
29
|
@use '../tag/src/tag-theme' as tag;
|
|
30
|
-
@use '../form
|
|
31
|
-
@use '../form
|
|
30
|
+
@use '../form/src/error-message/error-message-theme' as error-message;
|
|
31
|
+
@use '../form/src/hint/hint-theme' as hint;
|
|
32
32
|
@use '../form-field/src/form-field-theme' as form-field;
|
|
33
33
|
@use '../native-select/src/native-select-theme' as native-select;
|
|
34
34
|
@use '../loading-icon/src/loading-icon-theme' as loading-icon;
|
|
35
35
|
@use '../accordion/src/accordion-theme' as accordion;
|
|
36
36
|
@use '../callout/src/callout-theme' as callout;
|
|
37
37
|
@use '../card/src/card-base-theme' as card-base;
|
|
38
|
-
@use '../card/src/card/raised/raised-theme' as raised-card;
|
|
39
38
|
@use '../card/src/card/stroked/stroked-theme' as stroked-card;
|
|
40
39
|
@use '../hero/src/hero-theme' as hero;
|
|
41
40
|
@use '../list/src/list-theme' as list;
|
|
@@ -47,10 +46,12 @@
|
|
|
47
46
|
@use '../paginator/src/paginator-theme' as paginator;
|
|
48
47
|
@use '../select/src/select-theme' as select;
|
|
49
48
|
@use '../sidebar/src/sidebar-theme' as sidebar;
|
|
49
|
+
@use '../spinner/src/spinner-theme' as spinner;
|
|
50
50
|
@use '../switch/src/switch-theme' as switch;
|
|
51
51
|
@use '../progress-bar/src/progress-bar-theme' as progress-bar;
|
|
52
52
|
@use '../scss/state/skeleton/mixins' as skeleton;
|
|
53
53
|
@use '../tabs/src/tabs-theme' as tabs;
|
|
54
|
+
@use '../text-snippet//src/text-snippet-theme' as text-snippet;
|
|
54
55
|
@use '../tree/src/tree-theme' as tree;
|
|
55
56
|
@use '../toast/src/toast-theme' as toast;
|
|
56
57
|
|
|
@@ -84,7 +85,6 @@
|
|
|
84
85
|
|
|
85
86
|
@include callout.daff-callout-theme($theme);
|
|
86
87
|
@include card-base.daff-card-base-theme($theme);
|
|
87
|
-
@include raised-card.daff-raised-card-theme($theme);
|
|
88
88
|
@include stroked-card.daff-stroked-card-theme($theme);
|
|
89
89
|
|
|
90
90
|
@include form-field.daff-form-field-theme($theme);
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
@include select.daff-select-theme($theme);
|
|
94
94
|
@include native-select.daff-native-select-theme($theme);
|
|
95
95
|
|
|
96
|
-
@include
|
|
96
|
+
@include spinner.daff-spinner-theme($theme);
|
|
97
97
|
@include progress-bar.daff-progress-bar-theme($theme);
|
|
98
98
|
|
|
99
99
|
@include accordion.daff-accordion-theme($theme);
|
|
@@ -101,7 +101,10 @@
|
|
|
101
101
|
@include callout.daff-callout-theme($theme);
|
|
102
102
|
@include hero.daff-hero-theme($theme);
|
|
103
103
|
@include list.daff-list-theme($theme);
|
|
104
|
+
|
|
105
|
+
// deprecated
|
|
104
106
|
@include loading-icon.daff-loading-icon-theme($theme);
|
|
107
|
+
|
|
105
108
|
@include media-gallery.daff-media-gallery-theme($theme);
|
|
106
109
|
@include menu.daff-menu-theme($theme);
|
|
107
110
|
@include modal.daff-modal-theme($theme);
|
|
@@ -112,6 +115,7 @@
|
|
|
112
115
|
@include sidebar.daff-sidebar-theme($theme);
|
|
113
116
|
@include switch.daff-switch-theme($theme);
|
|
114
117
|
@include tabs.daff-tabs-theme($theme);
|
|
118
|
+
@include text-snippet.daff-text-snippet-theme($theme);
|
|
115
119
|
@include toast.daff-toast-theme($theme);
|
|
116
120
|
@include tree.daff-tree-theme($theme);
|
|
117
121
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group color-palettes
|
|
3
|
+
////
|
|
4
|
+
|
|
1
5
|
// Base colors
|
|
2
|
-
|
|
6
|
+
/// @access private
|
|
7
|
+
$white: #ffffff;
|
|
8
|
+
/// @access private
|
|
9
|
+
$black: #070707;
|
|
10
|
+
// need to deprecate
|
|
11
|
+
/// @access private
|
|
3
12
|
$error: #dd0000;
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
// 50 apart passes AA level for any size text (except for 10/60)
|
|
7
|
-
|
|
14
|
+
/// @access private
|
|
8
15
|
$daff-blue: (
|
|
9
16
|
10: #ebf1ff,
|
|
10
17
|
20: #c4d8ff,
|
|
@@ -18,8 +25,7 @@ $daff-blue: (
|
|
|
18
25
|
100: #000033
|
|
19
26
|
);
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
/// @access private
|
|
23
29
|
$daff-purple: (
|
|
24
30
|
10: #ebebff,
|
|
25
31
|
20: #d4d3ff,
|
|
@@ -33,8 +39,7 @@ $daff-purple: (
|
|
|
33
39
|
100: #110033
|
|
34
40
|
);
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
/// @access private
|
|
38
43
|
$daff-turquoise: (
|
|
39
44
|
10: #d6fcea,
|
|
40
45
|
20: #9dfbd3,
|
|
@@ -48,6 +53,7 @@ $daff-turquoise: (
|
|
|
48
53
|
100: #082218
|
|
49
54
|
);
|
|
50
55
|
|
|
56
|
+
/// @access private
|
|
51
57
|
$daff-yellow: (
|
|
52
58
|
10: #fffaeb,
|
|
53
59
|
20: #fff1c2,
|
|
@@ -61,6 +67,7 @@ $daff-yellow: (
|
|
|
61
67
|
100: #7a5e00
|
|
62
68
|
);
|
|
63
69
|
|
|
70
|
+
/// @access private
|
|
64
71
|
$daff-red: (
|
|
65
72
|
10: #fcf1f1,
|
|
66
73
|
20: #fae0e0,
|
|
@@ -74,6 +81,7 @@ $daff-red: (
|
|
|
74
81
|
100: #3f0809,
|
|
75
82
|
);
|
|
76
83
|
|
|
84
|
+
/// @access private
|
|
77
85
|
$daff-bronze: (
|
|
78
86
|
10: #fcf2eb,
|
|
79
87
|
20: #f7dac6,
|
|
@@ -87,6 +95,7 @@ $daff-bronze: (
|
|
|
87
95
|
100: #1a0f00,
|
|
88
96
|
);
|
|
89
97
|
|
|
98
|
+
/// @access private
|
|
90
99
|
$daff-green: (
|
|
91
100
|
10: #d1fbd6,
|
|
92
101
|
20: #97f8a5,
|
|
@@ -100,8 +109,8 @@ $daff-green: (
|
|
|
100
109
|
100: #07230d,
|
|
101
110
|
);
|
|
102
111
|
|
|
112
|
+
/// @access private
|
|
103
113
|
$daff-neutral: (
|
|
104
|
-
0: #ffffff,
|
|
105
114
|
10: #fafafa,
|
|
106
115
|
20: #e8e8e8,
|
|
107
116
|
30: #d3d3d3,
|
|
@@ -111,6 +120,5 @@ $daff-neutral: (
|
|
|
111
120
|
70: #5e5e5e,
|
|
112
121
|
80: #474747,
|
|
113
122
|
90: #323232,
|
|
114
|
-
100: #1a1a1a
|
|
115
|
-
110: #070707
|
|
123
|
+
100: #1a1a1a
|
|
116
124
|
);
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
$daff-light-theme: (
|
|
7
7
|
'mode': 'light',
|
|
8
|
-
'font-color':
|
|
9
|
-
'base':
|
|
10
|
-
'base-contrast':
|
|
11
|
-
'white':
|
|
12
|
-
'black':
|
|
8
|
+
'font-color': palette.$black,
|
|
9
|
+
'base': palette.$white,
|
|
10
|
+
'base-contrast': palette.$black,
|
|
11
|
+
'white': palette.$white,
|
|
12
|
+
'black': palette.$black,
|
|
13
13
|
'neutral': configure-palette.daff-configure-palette(palette.$daff-neutral, 60),
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
$daff-dark-theme: (
|
|
17
17
|
'mode': 'dark',
|
|
18
|
-
'font-color':
|
|
19
|
-
'base':
|
|
20
|
-
'base-contrast':
|
|
21
|
-
'white':
|
|
22
|
-
'black':
|
|
18
|
+
'font-color': palette.$white,
|
|
19
|
+
'base': palette.$black,
|
|
20
|
+
'base-contrast': palette.$white,
|
|
21
|
+
'white': palette.$white,
|
|
22
|
+
'black': palette.$black,
|
|
23
23
|
'neutral': configure-palette.daff-configure-palette(palette.$daff-neutral, 50),
|
|
24
24
|
);
|
|
25
25
|
|
|
@@ -28,6 +28,7 @@ $supported-theme-modes: (
|
|
|
28
28
|
'dark': $daff-dark-theme
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
+
/// @deprecated Use `daff-create-theme` instead.
|
|
31
32
|
/// Create a theme object given some initial settings.
|
|
32
33
|
///
|
|
33
34
|
/// Sets light and dark mode defaults for `$info`, `$warn`, `$critical`, and `$success`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'configure-palette';
|
|
2
|
-
@use '
|
|
2
|
+
@use './create-theme/create-theme';
|
|
3
3
|
@use 'color-palettes' as palette;
|
|
4
4
|
@use '../core';
|
|
5
5
|
|
|
@@ -7,23 +7,14 @@ $primary: configure-palette.daff-configure-palette(palette.$daff-blue, 60);
|
|
|
7
7
|
$secondary: configure-palette.daff-configure-palette(palette.$daff-purple, 60);
|
|
8
8
|
$tertiary: configure-palette.daff-configure-palette(palette.$daff-turquoise, 60);
|
|
9
9
|
|
|
10
|
-
$theme:
|
|
11
|
-
$primary,
|
|
12
|
-
$secondary,
|
|
13
|
-
$tertiary,
|
|
14
|
-
'light'
|
|
10
|
+
$theme: create-theme.daff-create-theme(
|
|
11
|
+
('primary': $primary, 'secondary': $secondary, 'tertiary': $tertiary, 'mode': 'light')
|
|
15
12
|
);
|
|
16
13
|
|
|
17
14
|
$primary-dark: configure-palette.daff-configure-palette(palette.$daff-blue, 50);
|
|
18
15
|
$secondary-dark: configure-palette.daff-configure-palette(palette.$daff-purple, 50);
|
|
19
16
|
$tertiary-dark: configure-palette.daff-configure-palette(palette.$daff-turquoise, 50);
|
|
20
17
|
|
|
21
|
-
$theme-dark:
|
|
22
|
-
$primary-dark,
|
|
23
|
-
$secondary-dark,
|
|
24
|
-
$tertiary-dark,
|
|
25
|
-
'dark'
|
|
18
|
+
$theme-dark: create-theme.daff-create-theme(
|
|
19
|
+
('primary': $primary-dark, 'secondary': $secondary-dark, 'tertiary': $tertiary-dark, 'mode': 'dark')
|
|
26
20
|
);
|
|
27
|
-
|
|
28
|
-
$black: core.daff-map-get($theme, 'core', 'black');
|
|
29
|
-
$white: core.daff-map-get($theme, 'core', 'white');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/// Retrieves a core base color from a configured theme.
|
|
4
4
|
///
|
|
5
5
|
/// If you are not using Daffodil's default theme, a theme **must** be
|
|
6
|
-
/// created with `daff-
|
|
6
|
+
/// created with `daff-create-theme` before this function can be used.
|
|
7
7
|
/// See the [customize your own theme](daff.io/docs/design/theming/customize-your-own-theme)
|
|
8
8
|
/// guide for more information.
|
|
9
9
|
///
|
|
10
10
|
/// @group Theming
|
|
11
11
|
///
|
|
12
|
-
/// @param {Map} $theme — A theme map created with the `daff-
|
|
12
|
+
/// @param {Map} $theme — A theme map created with the `daff-create-theme` function.
|
|
13
13
|
/// @param {String} $color — The core color to retrieve. Supported colors: `white`, `black`, `base`, or `base-contrast`.
|
|
14
14
|
///
|
|
15
15
|
/// @throws Will throw an error if `$color` is not supported as part of Daffodil's core colors.
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/// Retrieves a specific color palette from a configured theme.
|
|
4
4
|
///
|
|
5
5
|
/// If you are not using Daffodil's default theme, a theme **must** be
|
|
6
|
-
/// created with `daff-
|
|
6
|
+
/// created with `daff-create-theme` before this function can be used.
|
|
7
7
|
/// See the [customize your own theme](daff.io/docs/design/theming/customize-your-own-theme)
|
|
8
8
|
/// guide for more information.
|
|
9
9
|
///
|
|
10
10
|
/// @group Theming
|
|
11
11
|
///
|
|
12
|
-
/// @param {Map} $theme — A theme map created with with `daff-
|
|
12
|
+
/// @param {Map} $theme — A theme map created with with `daff-create-theme` function.
|
|
13
13
|
/// @param {Map} $palette — The palette being retrieved.
|
|
14
14
|
/// Supported values: `primary`, `secondary`, `tertiary`, `informational`, `warn`, `critical`, `success`, or `neutral`.
|
|
15
15
|
///
|