@daffodil/design 0.60.0 → 0.62.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/examples/package.json +1 -1
- package/article/examples/package.json +1 -1
- package/atoms/button/button.component.d.ts +18 -2
- package/atoms/button/button.module.d.ts +2 -1
- package/atoms/form/error-message/error-message.component.d.ts +1 -0
- package/atoms/form/form-label/form-label.directive.d.ts +6 -0
- package/atoms/form/form-label/form-label.module.d.ts +7 -0
- package/atoms/form/form-label/public_api.d.ts +2 -0
- package/atoms/form/{select/select/select.component.d.ts → native-select/native-select.component.d.ts} +1 -1
- package/atoms/form/{select/select.module.d.ts → native-select/native-select.module.d.ts} +1 -1
- package/atoms/form/native-select/public_api.d.ts +2 -0
- package/atoms/form/quantity-field/quantity-field.module.d.ts +1 -1
- package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +1 -1
- package/atoms/loading-icon/loading-icon.component.d.ts +3 -3
- package/button/examples/examples.d.ts +4 -0
- package/button/examples/flat-button/flat-button.component.d.ts +7 -0
- package/button/examples/flat-button/flat-button.module.d.ts +9 -0
- package/button/examples/package.json +1 -1
- package/button/examples/public_api.d.ts +10 -9
- package/callout/examples/package.json +1 -1
- package/card/examples/package.json +1 -1
- package/checkbox/examples/package.json +1 -1
- package/container/examples/package.json +1 -1
- package/core/animation/animation-state-with-params.d.ts +8 -0
- package/core/public_api.d.ts +3 -2
- package/core/statusable/public_api.d.ts +2 -0
- package/esm2020/atoms/button/button.component.mjs +62 -5
- package/esm2020/atoms/button/button.module.mjs +6 -2
- package/esm2020/atoms/form/error-message/error-message.component.mjs +10 -4
- package/esm2020/atoms/form/form-label/form-label.directive.mjs +19 -0
- package/esm2020/atoms/form/form-label/form-label.module.mjs +20 -0
- package/esm2020/atoms/form/form-label/public_api.mjs +3 -0
- package/esm2020/atoms/form/native-select/native-select.component.mjs +64 -0
- package/esm2020/atoms/form/{select/select.module.mjs → native-select/native-select.module.mjs} +2 -2
- package/esm2020/atoms/form/native-select/public_api.mjs +3 -0
- package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +2 -2
- package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +3 -3
- package/esm2020/atoms/image/image.component.mjs +2 -2
- package/esm2020/atoms/loading-icon/loading-icon.component.mjs +4 -5
- package/esm2020/button/examples/basic-button/basic-button.component.mjs +7 -6
- package/esm2020/button/examples/examples.mjs +19 -0
- package/esm2020/button/examples/flat-button/flat-button.component.mjs +24 -0
- package/esm2020/button/examples/flat-button/flat-button.module.mjs +30 -0
- package/esm2020/button/examples/icon-button/icon-button.component.mjs +6 -5
- package/esm2020/button/examples/public_api.mjs +11 -18
- package/esm2020/button/examples/raised-button/raised-button.component.mjs +7 -6
- package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +3 -7
- package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +3 -11
- package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +7 -6
- package/esm2020/button/examples/underline-button/underline-button.component.mjs +7 -6
- package/esm2020/button/examples/underline-button/underline-button.module.mjs +1 -1
- package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +1 -1
- package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +1 -1
- package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +1 -1
- package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +1 -1
- package/esm2020/card/examples/basic-card/basic-card.component.mjs +1 -1
- package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +1 -1
- package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +1 -1
- package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +1 -1
- package/esm2020/core/animation/animation-state-with-params.mjs +2 -0
- package/esm2020/core/public_api.mjs +4 -3
- package/esm2020/core/statusable/public_api.mjs +3 -0
- package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +1 -1
- package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +1 -1
- package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +1 -1
- package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +1 -1
- package/esm2020/menu/examples/basic-menu/basic-menu.component.mjs +1 -1
- package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +1 -1
- package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +1 -1
- package/esm2020/molecules/backdrop/animation/backdrop-animation-state.mjs +2 -0
- package/esm2020/molecules/backdrop/animation/backdrop-animation.mjs +6 -2
- package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +40 -5
- package/esm2020/molecules/media-gallery/media-gallery.component.mjs +2 -2
- package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +1 -1
- package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +2 -2
- package/esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs +2 -2
- package/esm2020/molecules/sidebar/animation/sidebar-animation-width.mjs +2 -0
- package/esm2020/molecules/sidebar/animation/sidebar-animation.mjs +21 -4
- package/esm2020/molecules/sidebar/animation/sidebar-viewport-animation-state.mjs +3 -0
- package/esm2020/molecules/sidebar/helper/sidebar-mode.mjs +1 -1
- package/esm2020/molecules/sidebar/helper/sidebar-side.mjs +2 -0
- package/esm2020/molecules/sidebar/public_api.mjs +1 -2
- package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +62 -10
- package/esm2020/molecules/sidebar/sidebar-viewport/backdrop-interactable.mjs +5 -0
- package/esm2020/molecules/sidebar/sidebar-viewport/content-pad.mjs +17 -0
- package/esm2020/molecules/sidebar/sidebar-viewport/content-shift.mjs +21 -0
- package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +83 -81
- package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +1 -1
- package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +1 -1
- package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +1 -1
- package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +1 -1
- package/esm2020/public_api.mjs +3 -2
- package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +12 -0
- package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +29 -0
- package/esm2020/sidebar/examples/daffodil-design-sidebar-examples.mjs +5 -0
- package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.mjs +21 -0
- package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.mjs +32 -0
- package/esm2020/sidebar/examples/index.mjs +2 -0
- package/esm2020/sidebar/examples/public_api.mjs +18 -0
- package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.mjs +12 -0
- package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.mjs +29 -0
- package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.mjs +12 -0
- package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.mjs +29 -0
- package/esm2020/sidebar/examples/under-sidebar/under-sidebar.component.mjs +26 -0
- package/esm2020/sidebar/examples/under-sidebar/under-sidebar.module.mjs +32 -0
- package/esm2020/tree/daffodil-design-tree.mjs +5 -0
- package/esm2020/tree/examples/basic-tree/basic-tree.component.mjs +39 -0
- package/esm2020/tree/examples/basic-tree/basic-tree.module.mjs +34 -0
- package/esm2020/tree/examples/daffodil-design-tree-examples.mjs +5 -0
- package/esm2020/tree/examples/index.mjs +2 -0
- package/esm2020/tree/examples/public_api.mjs +7 -0
- package/esm2020/tree/index.mjs +2 -0
- package/esm2020/tree/interfaces/recursive-key.mjs +2 -0
- package/esm2020/tree/interfaces/tree-data.mjs +2 -0
- package/esm2020/tree/interfaces/tree-ui.mjs +2 -0
- package/esm2020/tree/public_api.mjs +5 -0
- package/esm2020/tree/tree/tree-notifier.service.mjs +45 -0
- package/esm2020/tree/tree/tree.component.mjs +106 -0
- package/esm2020/tree/tree-item/tree-item.directive.mjs +154 -0
- package/esm2020/tree/tree.module.mjs +31 -0
- package/esm2020/tree/utils/flatten-tree.mjs +47 -0
- package/esm2020/tree/utils/hydrate-tree.mjs +31 -0
- package/esm2020/tree/utils/transform-in-place.mjs +23 -0
- package/esm2020/tree/utils/traverse-tree.mjs +21 -0
- package/fesm2015/daffodil-design-button-examples.mjs +160 -122
- package/fesm2015/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-callout-examples.mjs +4 -4
- package/fesm2015/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-card-examples.mjs +2 -2
- package/fesm2015/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-checkbox-examples.mjs +2 -2
- package/fesm2015/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-hero-examples.mjs +4 -4
- package/fesm2015/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-menu-examples.mjs +1 -1
- package/fesm2015/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-modal-examples.mjs +2 -2
- package/fesm2015/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-navbar-examples.mjs +4 -4
- package/fesm2015/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2015/daffodil-design-sidebar-examples.mjs +218 -0
- package/fesm2015/daffodil-design-sidebar-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-tree-examples.mjs +81 -0
- package/fesm2015/daffodil-design-tree-examples.mjs.map +1 -0
- package/fesm2015/daffodil-design-tree.mjs +443 -0
- package/fesm2015/daffodil-design-tree.mjs.map +1 -0
- package/fesm2015/daffodil-design.mjs +440 -191
- package/fesm2015/daffodil-design.mjs.map +1 -1
- package/fesm2020/daffodil-design-button-examples.mjs +160 -122
- package/fesm2020/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-callout-examples.mjs +4 -4
- package/fesm2020/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-card-examples.mjs +2 -2
- package/fesm2020/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-checkbox-examples.mjs +2 -2
- package/fesm2020/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-hero-examples.mjs +4 -4
- package/fesm2020/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-menu-examples.mjs +1 -1
- package/fesm2020/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-modal-examples.mjs +2 -2
- package/fesm2020/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-navbar-examples.mjs +4 -4
- package/fesm2020/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2020/daffodil-design-sidebar-examples.mjs +218 -0
- package/fesm2020/daffodil-design-sidebar-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-tree-examples.mjs +81 -0
- package/fesm2020/daffodil-design-tree-examples.mjs.map +1 -0
- package/fesm2020/daffodil-design-tree.mjs +448 -0
- package/fesm2020/daffodil-design-tree.mjs.map +1 -0
- package/fesm2020/daffodil-design.mjs +440 -191
- package/fesm2020/daffodil-design.mjs.map +1 -1
- package/hero/examples/package.json +1 -1
- package/image/examples/package.json +1 -1
- package/input/examples/package.json +1 -1
- package/list/examples/package.json +1 -1
- package/loading-icon/examples/package.json +1 -1
- package/media-gallery/examples/package.json +1 -1
- package/menu/examples/package.json +1 -1
- package/modal/examples/package.json +1 -1
- package/molecules/backdrop/animation/backdrop-animation-state.d.ts +2 -0
- package/molecules/backdrop/backdrop/backdrop.component.d.ts +17 -3
- package/molecules/qty-dropdown/qty-dropdown.module.d.ts +1 -1
- package/molecules/sidebar/animation/sidebar-animation-state.d.ts +2 -1
- package/molecules/sidebar/animation/sidebar-animation-width.d.ts +2 -0
- package/molecules/sidebar/animation/sidebar-animation.d.ts +3 -1
- package/molecules/sidebar/animation/sidebar-viewport-animation-state.d.ts +6 -0
- package/molecules/sidebar/helper/sidebar-mode.d.ts +27 -1
- package/molecules/sidebar/helper/sidebar-side.d.ts +12 -0
- package/molecules/sidebar/public_api.d.ts +2 -1
- package/molecules/sidebar/sidebar/sidebar.component.d.ts +37 -5
- package/molecules/sidebar/sidebar-viewport/backdrop-interactable.d.ts +6 -0
- package/molecules/sidebar/sidebar-viewport/content-pad.d.ts +7 -0
- package/molecules/sidebar/sidebar-viewport/content-shift.d.ts +8 -0
- package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +47 -44
- package/navbar/examples/package.json +1 -1
- package/package.json +1 -1
- package/paginator/examples/package.json +1 -1
- package/public_api.d.ts +2 -1
- package/quantity-field/examples/package.json +1 -1
- package/radio/examples/package.json +1 -1
- package/scss/global.scss +1 -0
- package/scss/state/skeleton/_mixins.scss +1 -0
- package/scss/theme.scss +4 -2
- package/scss/theming/_color-palettes.scss +5 -5
- package/sidebar/examples/basic-sidebar/basic-sidebar.component.d.ts +5 -0
- package/sidebar/examples/basic-sidebar/basic-sidebar.module.d.ts +8 -0
- package/sidebar/examples/daffodil-design-sidebar-examples.d.ts +5 -0
- package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.d.ts +8 -0
- package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.d.ts +8 -0
- package/sidebar/examples/index.d.ts +1 -0
- package/sidebar/examples/package.json +1 -0
- package/sidebar/examples/public_api.d.ts +2 -0
- package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.d.ts +5 -0
- package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.d.ts +8 -0
- package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.d.ts +5 -0
- package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.d.ts +8 -0
- package/sidebar/examples/under-sidebar/under-sidebar.component.d.ts +10 -0
- package/sidebar/examples/under-sidebar/under-sidebar.module.d.ts +8 -0
- package/src/atoms/button/button-theme-variants/button.scss +9 -18
- package/src/atoms/button/button-theme-variants/flat.scss +25 -0
- package/src/atoms/button/button-theme-variants/raised.scss +6 -26
- package/src/atoms/button/button-theme-variants/stroked.scss +12 -20
- package/src/atoms/button/button-theme.scss +121 -117
- package/src/atoms/form/{select → native-select}/README.md +1 -1
- package/src/atoms/form/{select/select/select-theme.scss → native-select/native-select-theme.scss} +3 -3
- package/src/atoms/loading-icon/loading-icon-theme.scss +4 -0
- package/src/molecules/sidebar/README.md +10 -0
- package/src/molecules/sidebar/helper/_variables.scss +7 -0
- package/src/molecules/sidebar/sidebar/sidebar-theme.scss +3 -3
- package/src/molecules/sidebar/sidebar-viewport/sidebar-viewport-theme.scss +5 -0
- package/tree/README.md +38 -0
- package/tree/daffodil-design-tree.d.ts +5 -0
- package/tree/examples/basic-tree/basic-tree.component.d.ts +7 -0
- package/tree/examples/basic-tree/basic-tree.module.d.ts +10 -0
- package/tree/examples/daffodil-design-tree-examples.d.ts +5 -0
- package/tree/examples/index.d.ts +1 -0
- package/tree/examples/package.json +1 -0
- package/tree/examples/public_api.d.ts +4 -0
- package/tree/index.d.ts +1 -0
- package/tree/interfaces/recursive-key.d.ts +3 -0
- package/tree/interfaces/tree-data.d.ts +13 -0
- package/tree/interfaces/tree-ui.d.ts +11 -0
- package/tree/package.json +1 -0
- package/tree/public_api.d.ts +6 -0
- package/tree/src/tree-theme.scss +38 -0
- package/tree/tree/tree-notifier.service.d.ts +32 -0
- package/tree/tree/tree.component.d.ts +75 -0
- package/tree/tree-item/tree-item.directive.d.ts +102 -0
- package/tree/tree.module.d.ts +9 -0
- package/tree/utils/flatten-tree.d.ts +19 -0
- package/tree/utils/hydrate-tree.d.ts +8 -0
- package/tree/utils/transform-in-place.d.ts +15 -0
- package/tree/utils/traverse-tree.d.ts +5 -0
- package/atoms/form/select/public_api.d.ts +0 -2
- package/esm2020/atoms/form/select/public_api.mjs +0 -3
- package/esm2020/atoms/form/select/select/select.component.mjs +0 -64
- package/src/atoms/button/button-theme-variants/focus.scss +0 -6
@@ -6,7 +6,7 @@
|
|
6
6
|
@use './button-theme-variants/raised';
|
7
7
|
@use './button-theme-variants/stroked';
|
8
8
|
@use './button-theme-variants/underline';
|
9
|
-
@use './button-theme-variants/
|
9
|
+
@use './button-theme-variants/flat';
|
10
10
|
|
11
11
|
@mixin daff-button-theme($theme) {
|
12
12
|
$primary: map.get($theme, primary);
|
@@ -52,8 +52,8 @@
|
|
52
52
|
&.daff-black {
|
53
53
|
@include button.daff-button-theme-variant(
|
54
54
|
$black,
|
55
|
-
theming.daff-color($gray,
|
56
|
-
theming.daff-color($gray,
|
55
|
+
theming.daff-color($gray, 90),
|
56
|
+
theming.daff-color($gray, 80)
|
57
57
|
);
|
58
58
|
}
|
59
59
|
|
@@ -81,7 +81,8 @@
|
|
81
81
|
);
|
82
82
|
}
|
83
83
|
|
84
|
-
&[disabled]
|
84
|
+
&[disabled],
|
85
|
+
&.daff-button--disabled {
|
85
86
|
@include button.daff-button-theme-variant(
|
86
87
|
theming.daff-illuminate($base, $gray, 3),
|
87
88
|
theming.daff-illuminate($base, $gray, 3),
|
@@ -121,101 +122,69 @@
|
|
121
122
|
|
122
123
|
.daff-raised-button {
|
123
124
|
@include raised.daff-raised-button-theme-variant(
|
124
|
-
theming.daff-illuminate($base, $gray, 2)
|
125
|
-
theming.daff-illuminate($base, $gray, 3),
|
126
|
-
theming.daff-color($gray)
|
125
|
+
theming.daff-illuminate($base, $gray, 2)
|
127
126
|
);
|
128
127
|
|
129
128
|
&.daff-primary {
|
130
129
|
@include raised.daff-raised-button-theme-variant(
|
131
|
-
theming.daff-color($primary),
|
132
|
-
theming.daff-color($primary, 70),
|
133
130
|
theming.daff-color($primary)
|
134
131
|
);
|
135
132
|
}
|
136
133
|
|
137
134
|
&.daff-secondary {
|
138
135
|
@include raised.daff-raised-button-theme-variant(
|
139
|
-
theming.daff-color($secondary),
|
140
|
-
theming.daff-color($secondary, 70),
|
141
136
|
theming.daff-color($secondary)
|
142
137
|
);
|
143
138
|
}
|
144
|
-
|
139
|
+
|
145
140
|
&.daff-tertiary {
|
146
141
|
@include raised.daff-raised-button-theme-variant(
|
147
|
-
theming.daff-color($tertiary),
|
148
|
-
theming.daff-color($tertiary, 70),
|
149
142
|
theming.daff-color($tertiary)
|
150
143
|
);
|
151
144
|
}
|
152
145
|
|
153
146
|
&.daff-black {
|
154
|
-
@include raised.daff-raised-button-theme-variant(
|
155
|
-
$black,
|
156
|
-
theming.daff-color($gray, 100),
|
157
|
-
theming.daff-color($gray)
|
158
|
-
);
|
147
|
+
@include raised.daff-raised-button-theme-variant($black);
|
159
148
|
}
|
160
149
|
|
161
150
|
&.daff-white {
|
162
|
-
@include raised.daff-raised-button-theme-variant(
|
163
|
-
$white,
|
164
|
-
theming.daff-color($gray, 10),
|
165
|
-
theming.daff-color($gray)
|
166
|
-
);
|
151
|
+
@include raised.daff-raised-button-theme-variant($white);
|
167
152
|
}
|
168
153
|
|
169
154
|
&.daff-theme {
|
170
|
-
@include raised.daff-raised-button-theme-variant(
|
171
|
-
$base,
|
172
|
-
theming.daff-illuminate($base, $gray, 1),
|
173
|
-
$base
|
174
|
-
);
|
155
|
+
@include raised.daff-raised-button-theme-variant($base);
|
175
156
|
}
|
176
157
|
|
177
158
|
&.daff-theme-contrast {
|
178
|
-
@include raised.daff-raised-button-theme-variant(
|
179
|
-
$base-contrast,
|
180
|
-
theming.daff-illuminate($base-contrast, $gray, 1),
|
181
|
-
$base-contrast
|
182
|
-
);
|
159
|
+
@include raised.daff-raised-button-theme-variant($base-contrast);
|
183
160
|
}
|
184
161
|
|
185
|
-
&[disabled]
|
162
|
+
&[disabled],
|
163
|
+
&.daff-button--disabled {
|
186
164
|
@include raised.daff-raised-button-theme-variant(
|
187
|
-
theming.daff-illuminate($base, $gray, 3)
|
188
|
-
theming.daff-illuminate($base, $gray, 3),
|
189
|
-
theming.daff-illuminate($base, $gray, 6)
|
165
|
+
theming.daff-illuminate($base, $gray, 3)
|
190
166
|
);
|
191
167
|
color: theming.daff-illuminate($base, $gray, 5);
|
192
168
|
|
193
|
-
&:
|
194
|
-
box-shadow:
|
195
|
-
color: theming.daff-illuminate($base, $gray, 5);
|
169
|
+
&:after {
|
170
|
+
box-shadow: none;
|
196
171
|
}
|
197
172
|
}
|
198
173
|
|
199
174
|
&.daff-warn {
|
200
175
|
@include raised.daff-raised-button-theme-variant(
|
201
|
-
theming.daff-color(theming.$daff-bronze, 60),
|
202
|
-
theming.daff-color(theming.$daff-bronze, 70),
|
203
176
|
theming.daff-color(theming.$daff-bronze, 60)
|
204
177
|
);
|
205
178
|
}
|
206
179
|
|
207
180
|
&.daff-danger {
|
208
181
|
@include raised.daff-raised-button-theme-variant(
|
209
|
-
theming.daff-color(theming.$daff-red, 60),
|
210
|
-
theming.daff-color(theming.$daff-red, 70),
|
211
182
|
theming.daff-color(theming.$daff-red, 60)
|
212
183
|
);
|
213
184
|
}
|
214
185
|
|
215
186
|
&.daff-success {
|
216
187
|
@include raised.daff-raised-button-theme-variant(
|
217
|
-
theming.daff-color(theming.$daff-green, 60),
|
218
|
-
theming.daff-color(theming.$daff-green, 70),
|
219
188
|
theming.daff-color(theming.$daff-green, 60)
|
220
189
|
);
|
221
190
|
}
|
@@ -283,8 +252,9 @@
|
|
283
252
|
theming.daff-illuminate($base-contrast, $gray, 2)
|
284
253
|
);
|
285
254
|
}
|
286
|
-
|
287
|
-
&[disabled]
|
255
|
+
|
256
|
+
&[disabled],
|
257
|
+
&.daff-button--disabled {
|
288
258
|
@include icon.daff-icon-button-theme-variant(
|
289
259
|
theming.daff-illuminate($base, $gray, 4),
|
290
260
|
theming.daff-illuminate($base, $gray, 4),
|
@@ -322,13 +292,15 @@ z
|
|
322
292
|
}
|
323
293
|
|
324
294
|
.daff-stroked-button {
|
325
|
-
background
|
295
|
+
background: transparent;
|
326
296
|
border: 1px solid theming.daff-illuminate($base, $gray, 5);
|
327
|
-
color:
|
297
|
+
color: currentColor;
|
328
298
|
|
329
|
-
&:
|
330
|
-
|
331
|
-
|
299
|
+
&:after {
|
300
|
+
background: theming.daff-illuminate($base, $gray, 2);
|
301
|
+
}
|
302
|
+
|
303
|
+
&:hover {
|
332
304
|
border: 1px solid theming.daff-illuminate($base, $gray, 2);
|
333
305
|
color: theming.daff-text-contrast(
|
334
306
|
theming.daff-illuminate($base, $gray, 2)
|
@@ -336,16 +308,18 @@ z
|
|
336
308
|
}
|
337
309
|
|
338
310
|
&:active {
|
339
|
-
background-color: theming.daff-illuminate($base, $gray, 3);
|
340
311
|
border: 1px solid theming.daff-illuminate($base, $gray, 3);
|
341
312
|
color: theming.daff-text-contrast(
|
342
313
|
theming.daff-illuminate($base, $gray, 3)
|
343
314
|
);
|
315
|
+
|
316
|
+
&:after {
|
317
|
+
background: theming.daff-illuminate($base, $gray, 3);
|
318
|
+
}
|
344
319
|
}
|
345
320
|
|
346
321
|
&.daff-primary {
|
347
322
|
@include stroked.daff-stroked-button-theme-variant(
|
348
|
-
theming.daff-color($primary),
|
349
323
|
theming.daff-color($primary),
|
350
324
|
theming.daff-color($primary, 70)
|
351
325
|
);
|
@@ -353,7 +327,6 @@ z
|
|
353
327
|
|
354
328
|
&.daff-secondary {
|
355
329
|
@include stroked.daff-stroked-button-theme-variant(
|
356
|
-
theming.daff-color($secondary),
|
357
330
|
theming.daff-color($secondary),
|
358
331
|
theming.daff-color($secondary, 70)
|
359
332
|
);
|
@@ -361,7 +334,6 @@ z
|
|
361
334
|
|
362
335
|
&.daff-tertiary {
|
363
336
|
@include stroked.daff-stroked-button-theme-variant(
|
364
|
-
theming.daff-color($tertiary),
|
365
337
|
theming.daff-color($tertiary),
|
366
338
|
theming.daff-color($tertiary, 70)
|
367
339
|
);
|
@@ -369,7 +341,6 @@ z
|
|
369
341
|
|
370
342
|
&.daff-black {
|
371
343
|
@include stroked.daff-stroked-button-theme-variant(
|
372
|
-
$black,
|
373
344
|
$black,
|
374
345
|
theming.daff-color($gray, 100)
|
375
346
|
);
|
@@ -377,7 +348,6 @@ z
|
|
377
348
|
|
378
349
|
&.daff-white {
|
379
350
|
@include stroked.daff-stroked-button-theme-variant(
|
380
|
-
$white,
|
381
351
|
$white,
|
382
352
|
theming.daff-color($gray, 20)
|
383
353
|
);
|
@@ -385,7 +355,6 @@ z
|
|
385
355
|
|
386
356
|
&.daff-theme {
|
387
357
|
@include stroked.daff-stroked-button-theme-variant(
|
388
|
-
$base,
|
389
358
|
$base,
|
390
359
|
theming.daff-illuminate($base, $gray, 2)
|
391
360
|
);
|
@@ -393,28 +362,29 @@ z
|
|
393
362
|
|
394
363
|
&.daff-theme-contrast {
|
395
364
|
@include stroked.daff-stroked-button-theme-variant(
|
396
|
-
$base-contrast,
|
397
365
|
$base-contrast,
|
398
366
|
theming.daff-illuminate($base-contrast, $gray, 2)
|
399
367
|
);
|
400
368
|
}
|
401
369
|
|
402
|
-
&[disabled]
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
);
|
370
|
+
&[disabled],
|
371
|
+
&.daff-button--disabled {
|
372
|
+
background-color: transparent;
|
373
|
+
border-color: theming.daff-illuminate($base, $gray, 3);
|
374
|
+
color: theming.daff-illuminate($base, $gray, 5);
|
408
375
|
|
409
376
|
&:hover {
|
410
|
-
background-color: transparent;
|
411
377
|
color: theming.daff-illuminate($base, $gray, 5);
|
378
|
+
|
379
|
+
&:after {
|
380
|
+
background-color: transparent;
|
381
|
+
opacity: 0;
|
382
|
+
}
|
412
383
|
}
|
413
384
|
}
|
414
385
|
|
415
386
|
&.daff-warn {
|
416
387
|
@include stroked.daff-stroked-button-theme-variant(
|
417
|
-
theming.daff-color(theming.$daff-bronze, 60),
|
418
388
|
theming.daff-color(theming.$daff-bronze, 60),
|
419
389
|
theming.daff-color(theming.$daff-bronze, 70)
|
420
390
|
);
|
@@ -422,7 +392,6 @@ z
|
|
422
392
|
|
423
393
|
&.daff-danger {
|
424
394
|
@include stroked.daff-stroked-button-theme-variant(
|
425
|
-
theming.daff-color(theming.$daff-red, 60),
|
426
395
|
theming.daff-color(theming.$daff-red, 60),
|
427
396
|
theming.daff-color(theming.$daff-red, 70)
|
428
397
|
);
|
@@ -430,139 +399,174 @@ z
|
|
430
399
|
|
431
400
|
&.daff-success {
|
432
401
|
@include stroked.daff-stroked-button-theme-variant(
|
433
|
-
theming.daff-color(theming.$daff-green, 60),
|
434
402
|
theming.daff-color(theming.$daff-green, 60),
|
435
403
|
theming.daff-color(theming.$daff-green, 70)
|
436
404
|
);
|
437
405
|
}
|
438
406
|
}
|
439
407
|
|
440
|
-
.daff-
|
441
|
-
|
442
|
-
|
443
|
-
|
408
|
+
.daff-flat-button {
|
409
|
+
color: currentColor;
|
410
|
+
|
411
|
+
&:after {
|
412
|
+
background-color: theming.daff-illuminate($base, $gray, 2);
|
413
|
+
}
|
414
|
+
|
415
|
+
&:active {
|
416
|
+
&:after {
|
417
|
+
background-color: theming.daff-illuminate($base, $gray, 3);
|
418
|
+
}
|
419
|
+
}
|
420
|
+
|
421
|
+
&:hover,
|
422
|
+
&:active {
|
423
|
+
color: theming.daff-text-contrast(theming.daff-illuminate($base, $gray, 2));
|
424
|
+
}
|
444
425
|
|
445
426
|
&.daff-primary {
|
446
|
-
@include
|
447
|
-
theming.daff-color($primary)
|
427
|
+
@include flat.daff-flat-button-theme-variant(
|
428
|
+
theming.daff-color($primary),
|
429
|
+
theming.daff-color($primary, 70)
|
448
430
|
);
|
449
431
|
}
|
450
432
|
|
451
433
|
&.daff-secondary {
|
452
|
-
@include
|
453
|
-
theming.daff-color($secondary)
|
434
|
+
@include flat.daff-flat-button-theme-variant(
|
435
|
+
theming.daff-color($secondary),
|
436
|
+
theming.daff-color($secondary, 70)
|
454
437
|
);
|
455
438
|
}
|
456
439
|
|
457
440
|
&.daff-tertiary {
|
458
|
-
@include
|
459
|
-
theming.daff-color($tertiary)
|
441
|
+
@include flat.daff-flat-button-theme-variant(
|
442
|
+
theming.daff-color($tertiary),
|
443
|
+
theming.daff-color($tertiary, 70)
|
460
444
|
);
|
461
445
|
}
|
462
446
|
|
463
447
|
&.daff-black {
|
464
|
-
@include
|
448
|
+
@include flat.daff-flat-button-theme-variant(
|
449
|
+
$black,
|
450
|
+
theming.daff-color($gray, 100)
|
451
|
+
);
|
465
452
|
}
|
466
453
|
|
467
454
|
&.daff-white {
|
468
|
-
@include
|
455
|
+
@include flat.daff-flat-button-theme-variant(
|
456
|
+
$white,
|
457
|
+
theming.daff-color($gray, 20)
|
458
|
+
);
|
469
459
|
}
|
470
460
|
|
471
461
|
&.daff-theme {
|
472
|
-
@include
|
462
|
+
@include flat.daff-flat-button-theme-variant(
|
463
|
+
$base,
|
464
|
+
theming.daff-illuminate($base, $gray, 2)
|
465
|
+
);
|
473
466
|
}
|
474
467
|
|
475
468
|
&.daff-theme-contrast {
|
476
|
-
@include
|
469
|
+
@include flat.daff-flat-button-theme-variant(
|
470
|
+
$base-contrast,
|
471
|
+
theming.daff-illuminate($base-contrast, $gray, 2)
|
472
|
+
);
|
477
473
|
}
|
478
474
|
|
479
|
-
&[disabled]
|
480
|
-
|
481
|
-
|
482
|
-
|
475
|
+
&[disabled],
|
476
|
+
&.daff-button--disabled {
|
477
|
+
color: theming.daff-illuminate($base, $gray, 5);
|
478
|
+
|
479
|
+
&:hover,
|
480
|
+
&:focus,
|
481
|
+
&:active {
|
482
|
+
&:after {
|
483
|
+
background: transparent;
|
484
|
+
}
|
485
|
+
}
|
483
486
|
}
|
484
487
|
|
485
488
|
&.daff-warn {
|
486
|
-
@include
|
487
|
-
theming.daff-color(theming.$daff-bronze, 60)
|
489
|
+
@include flat.daff-flat-button-theme-variant(
|
490
|
+
theming.daff-color(theming.$daff-bronze, 60),
|
491
|
+
theming.daff-color(theming.$daff-bronze, 70)
|
488
492
|
);
|
489
493
|
}
|
490
494
|
|
491
495
|
&.daff-danger {
|
492
|
-
@include
|
493
|
-
theming.daff-color(theming.$daff-red, 60)
|
496
|
+
@include flat.daff-flat-button-theme-variant(
|
497
|
+
theming.daff-color(theming.$daff-red, 60),
|
498
|
+
theming.daff-color(theming.$daff-red, 70)
|
494
499
|
);
|
495
500
|
}
|
496
501
|
|
497
502
|
&.daff-success {
|
498
|
-
@include
|
499
|
-
theming.daff-color(theming.$daff-green, 60)
|
503
|
+
@include flat.daff-flat-button-theme-variant(
|
504
|
+
theming.daff-color(theming.$daff-green, 60),
|
505
|
+
theming.daff-color(theming.$daff-green, 70)
|
500
506
|
);
|
501
507
|
}
|
502
508
|
}
|
503
509
|
|
504
|
-
.daff-button
|
505
|
-
|
506
|
-
|
507
|
-
.daff-icon-button {
|
508
|
-
@include focus.daff-button-focus-theme-variant(
|
509
|
-
theming.daff-color($gray)
|
510
|
+
.daff-underline-button {
|
511
|
+
@include underline.daff-underline-button-theme-variant(
|
512
|
+
theming.daff-illuminate($base, $gray, 7)
|
510
513
|
);
|
511
514
|
|
512
515
|
&.daff-primary {
|
513
|
-
@include
|
516
|
+
@include underline.daff-underline-button-theme-variant(
|
514
517
|
theming.daff-color($primary)
|
515
518
|
);
|
516
519
|
}
|
517
520
|
|
518
521
|
&.daff-secondary {
|
519
|
-
@include
|
522
|
+
@include underline.daff-underline-button-theme-variant(
|
520
523
|
theming.daff-color($secondary)
|
521
524
|
);
|
522
525
|
}
|
523
526
|
|
524
527
|
&.daff-tertiary {
|
525
|
-
@include
|
528
|
+
@include underline.daff-underline-button-theme-variant(
|
526
529
|
theming.daff-color($tertiary)
|
527
530
|
);
|
528
531
|
}
|
529
532
|
|
530
533
|
&.daff-black {
|
531
|
-
@include
|
532
|
-
theming.daff-color($gray)
|
533
|
-
);
|
534
|
+
@include underline.daff-underline-button-theme-variant($black);
|
534
535
|
}
|
535
536
|
|
536
537
|
&.daff-white {
|
537
|
-
@include
|
538
|
-
theming.daff-color($gray)
|
539
|
-
);
|
538
|
+
@include underline.daff-underline-button-theme-variant($white);
|
540
539
|
}
|
541
540
|
|
542
541
|
&.daff-theme {
|
543
|
-
@include
|
542
|
+
@include underline.daff-underline-button-theme-variant($base);
|
544
543
|
}
|
545
544
|
|
546
545
|
&.daff-theme-contrast {
|
547
|
-
@include
|
548
|
-
|
546
|
+
@include underline.daff-underline-button-theme-variant($base-contrast);
|
547
|
+
}
|
548
|
+
|
549
|
+
&[disabled],
|
550
|
+
&.daff-button--disabled {
|
551
|
+
@include underline.daff-underline-button-theme-variant(
|
552
|
+
theming.daff-illuminate($base, $gray, 4)
|
549
553
|
);
|
550
554
|
}
|
551
555
|
|
552
556
|
&.daff-warn {
|
553
|
-
@include
|
557
|
+
@include underline.daff-underline-button-theme-variant(
|
554
558
|
theming.daff-color(theming.$daff-bronze, 60)
|
555
559
|
);
|
556
560
|
}
|
557
561
|
|
558
562
|
&.daff-danger {
|
559
|
-
@include
|
563
|
+
@include underline.daff-underline-button-theme-variant(
|
560
564
|
theming.daff-color(theming.$daff-red, 60)
|
561
565
|
);
|
562
566
|
}
|
563
567
|
|
564
568
|
&.daff-success {
|
565
|
-
@include
|
569
|
+
@include underline.daff-underline-button-theme-variant(
|
566
570
|
theming.daff-color(theming.$daff-green, 60)
|
567
571
|
);
|
568
572
|
}
|
package/src/atoms/form/{select/select/select-theme.scss → native-select/native-select-theme.scss}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
@use 'sass:map';
|
2
|
-
@use '
|
3
|
-
@use '
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
4
|
|
5
|
-
@mixin daff-select-theme($theme) {
|
5
|
+
@mixin daff-native-select-theme($theme) {
|
6
6
|
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
7
7
|
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
8
8
|
$black: core.daff-map-deep-get($theme, 'core.black');
|
@@ -8,3 +8,13 @@
|
|
8
8
|
<p>Some Content</p>
|
9
9
|
</daff-sidebar-viewport>
|
10
10
|
```
|
11
|
+
|
12
|
+
|
13
|
+
### Goals
|
14
|
+
|
15
|
+
1. Support position sticky inside sidebar content
|
16
|
+
2. Support 1 sidebar at a time on each side
|
17
|
+
3. Support viewports inside of other viewports.
|
18
|
+
4. A `global` flag that can be set to use `dvh`
|
19
|
+
5. Sidebars as the window size changes from `side` to `over` and vice-versa by default.
|
20
|
+
6. Where does the body scrollbar start and end? Does it hit the header of go to the top of the document.
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
@mixin daff-sidebar-theme($theme) {
|
4
4
|
$base: core.daff-map-deep-get($theme, 'core.base');
|
5
|
-
$base-contrast: core.daff-map-deep-get($theme,
|
5
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
6
6
|
$black: core.daff-map-deep-get($theme, 'core.black');
|
7
|
+
$font-color: core.daff-map-deep-get($theme, 'core.font-color');
|
7
8
|
|
8
9
|
.daff-sidebar {
|
9
10
|
background: $base;
|
10
|
-
|
11
|
-
color: $base-contrast;
|
11
|
+
color: $font-color;
|
12
12
|
}
|
13
13
|
}
|
package/tree/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Tree
|
2
|
+
|
3
|
+
Trees are used to visualize hierarchial information. They are often used to display navigational structures like nested lists of links.
|
4
|
+
|
5
|
+
## Overview
|
6
|
+
|
7
|
+
The `DaffTreeComponent` renders a tree structure. Typically, this is a structure of `<a>` and `<button>` elements that allow users to either navigate to a page, or explore the tree to find an item inside the tree that they want to navigate to.
|
8
|
+
|
9
|
+
Instead of defining a recursive tree structure of components, which is often prohibitively slow when rendering large trees, the `DaffTreeComponent` renders a flattened tree, using padding to indicate the nesting level of the tree elements.
|
10
|
+
|
11
|
+
Generally, tree usage consists of taking existing tree data, converting it to the `DaffTreeData` format, setting the `tree` input on the `DaffTreeComponent`, and providing templates for the cases where the tree element has children or not.
|
12
|
+
|
13
|
+
## Features
|
14
|
+
|
15
|
+
The `DaffTreeComponent` controls the rendering of the structure of the tree and provides template slots so that you can control the ultimate UI rendered for each node.
|
16
|
+
|
17
|
+
Currently, we support two kind of templates `daffTreeItemWithChildrenTpl` and `daffTreeItemTpl`. These templates allow you to control the content of each tree node. In the case of `daffTreeItemWithChildrenTpl` a `click` handler will be automatically applied (along with an icon indicating the expanded state) to the template to allow users to automatically open and close the node.
|
18
|
+
|
19
|
+
```html
|
20
|
+
<ng-template #daffTreeItemWithChildrenTpl let-node>
|
21
|
+
<button daffTreeItem [node]="node">{{ node.title }} </button>
|
22
|
+
</ng-template>
|
23
|
+
|
24
|
+
<ng-template #daffTreeItemTpl let-node>
|
25
|
+
<a daffTreeItem [node]="node" [routerLink]="node.url">{{ node.title }}</a>
|
26
|
+
</ng-template>
|
27
|
+
```
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
### Basic Tree
|
32
|
+
|
33
|
+
<design-land-example-viewer-container example="basic-tree">
|
34
|
+
</design-land-example-viewer-container>
|
35
|
+
|
36
|
+
## Accessibility
|
37
|
+
|
38
|
+
The `DaffTreeComponent` follows the specification for a [disclosure navigation menu](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-navigation/) instead of a [tree view](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/).
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DaffTreeData } from '@daffodil/design/tree';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class BasicTreeComponent {
|
4
|
+
tree: DaffTreeData<unknown>;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicTreeComponent, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicTreeComponent, "basic-tree", never, {}, {}, never, never>;
|
7
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./basic-tree.component";
|
3
|
+
import * as i2 from "@angular/router";
|
4
|
+
import * as i3 from "@daffodil/design/tree";
|
5
|
+
import * as i4 from "@fortawesome/angular-fontawesome";
|
6
|
+
export declare class BasicTreeModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicTreeModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BasicTreeModule, [typeof i1.BasicTreeComponent], [typeof i2.RouterModule, typeof i3.DaffTreeModule, typeof i4.FontAwesomeModule], [typeof i1.BasicTreeComponent]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BasicTreeModule>;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './public_api';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"@daffodil/design/tree/examples","module":"../../fesm2015/daffodil-design-tree-examples.mjs","es2020":"../../fesm2020/daffodil-design-tree-examples.mjs","esm2020":"../../esm2020/tree/examples/daffodil-design-tree-examples.mjs","fesm2020":"../../fesm2020/daffodil-design-tree-examples.mjs","fesm2015":"../../fesm2015/daffodil-design-tree-examples.mjs","typings":"daffodil-design-tree-examples.d.ts","sideEffects":false,"version":"0.62.0"}
|
package/tree/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './public_api';
|