@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.
Files changed (258) hide show
  1. package/accordion/examples/package.json +1 -1
  2. package/article/examples/package.json +1 -1
  3. package/atoms/button/button.component.d.ts +18 -2
  4. package/atoms/button/button.module.d.ts +2 -1
  5. package/atoms/form/error-message/error-message.component.d.ts +1 -0
  6. package/atoms/form/form-label/form-label.directive.d.ts +6 -0
  7. package/atoms/form/form-label/form-label.module.d.ts +7 -0
  8. package/atoms/form/form-label/public_api.d.ts +2 -0
  9. package/atoms/form/{select/select/select.component.d.ts → native-select/native-select.component.d.ts} +1 -1
  10. package/atoms/form/{select/select.module.d.ts → native-select/native-select.module.d.ts} +1 -1
  11. package/atoms/form/native-select/public_api.d.ts +2 -0
  12. package/atoms/form/quantity-field/quantity-field.module.d.ts +1 -1
  13. package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +1 -1
  14. package/atoms/loading-icon/loading-icon.component.d.ts +3 -3
  15. package/button/examples/examples.d.ts +4 -0
  16. package/button/examples/flat-button/flat-button.component.d.ts +7 -0
  17. package/button/examples/flat-button/flat-button.module.d.ts +9 -0
  18. package/button/examples/package.json +1 -1
  19. package/button/examples/public_api.d.ts +10 -9
  20. package/callout/examples/package.json +1 -1
  21. package/card/examples/package.json +1 -1
  22. package/checkbox/examples/package.json +1 -1
  23. package/container/examples/package.json +1 -1
  24. package/core/animation/animation-state-with-params.d.ts +8 -0
  25. package/core/public_api.d.ts +3 -2
  26. package/core/statusable/public_api.d.ts +2 -0
  27. package/esm2020/atoms/button/button.component.mjs +62 -5
  28. package/esm2020/atoms/button/button.module.mjs +6 -2
  29. package/esm2020/atoms/form/error-message/error-message.component.mjs +10 -4
  30. package/esm2020/atoms/form/form-label/form-label.directive.mjs +19 -0
  31. package/esm2020/atoms/form/form-label/form-label.module.mjs +20 -0
  32. package/esm2020/atoms/form/form-label/public_api.mjs +3 -0
  33. package/esm2020/atoms/form/native-select/native-select.component.mjs +64 -0
  34. package/esm2020/atoms/form/{select/select.module.mjs → native-select/native-select.module.mjs} +2 -2
  35. package/esm2020/atoms/form/native-select/public_api.mjs +3 -0
  36. package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +2 -2
  37. package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +3 -3
  38. package/esm2020/atoms/image/image.component.mjs +2 -2
  39. package/esm2020/atoms/loading-icon/loading-icon.component.mjs +4 -5
  40. package/esm2020/button/examples/basic-button/basic-button.component.mjs +7 -6
  41. package/esm2020/button/examples/examples.mjs +19 -0
  42. package/esm2020/button/examples/flat-button/flat-button.component.mjs +24 -0
  43. package/esm2020/button/examples/flat-button/flat-button.module.mjs +30 -0
  44. package/esm2020/button/examples/icon-button/icon-button.component.mjs +6 -5
  45. package/esm2020/button/examples/public_api.mjs +11 -18
  46. package/esm2020/button/examples/raised-button/raised-button.component.mjs +7 -6
  47. package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +3 -7
  48. package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +3 -11
  49. package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +7 -6
  50. package/esm2020/button/examples/underline-button/underline-button.component.mjs +7 -6
  51. package/esm2020/button/examples/underline-button/underline-button.module.mjs +1 -1
  52. package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +1 -1
  53. package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +1 -1
  54. package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +1 -1
  55. package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +1 -1
  56. package/esm2020/card/examples/basic-card/basic-card.component.mjs +1 -1
  57. package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +1 -1
  58. package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +1 -1
  59. package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +1 -1
  60. package/esm2020/core/animation/animation-state-with-params.mjs +2 -0
  61. package/esm2020/core/public_api.mjs +4 -3
  62. package/esm2020/core/statusable/public_api.mjs +3 -0
  63. package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +1 -1
  64. package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +1 -1
  65. package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +1 -1
  66. package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +1 -1
  67. package/esm2020/menu/examples/basic-menu/basic-menu.component.mjs +1 -1
  68. package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +1 -1
  69. package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +1 -1
  70. package/esm2020/molecules/backdrop/animation/backdrop-animation-state.mjs +2 -0
  71. package/esm2020/molecules/backdrop/animation/backdrop-animation.mjs +6 -2
  72. package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +40 -5
  73. package/esm2020/molecules/media-gallery/media-gallery.component.mjs +2 -2
  74. package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +1 -1
  75. package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +2 -2
  76. package/esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs +2 -2
  77. package/esm2020/molecules/sidebar/animation/sidebar-animation-width.mjs +2 -0
  78. package/esm2020/molecules/sidebar/animation/sidebar-animation.mjs +21 -4
  79. package/esm2020/molecules/sidebar/animation/sidebar-viewport-animation-state.mjs +3 -0
  80. package/esm2020/molecules/sidebar/helper/sidebar-mode.mjs +1 -1
  81. package/esm2020/molecules/sidebar/helper/sidebar-side.mjs +2 -0
  82. package/esm2020/molecules/sidebar/public_api.mjs +1 -2
  83. package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +62 -10
  84. package/esm2020/molecules/sidebar/sidebar-viewport/backdrop-interactable.mjs +5 -0
  85. package/esm2020/molecules/sidebar/sidebar-viewport/content-pad.mjs +17 -0
  86. package/esm2020/molecules/sidebar/sidebar-viewport/content-shift.mjs +21 -0
  87. package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +83 -81
  88. package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +1 -1
  89. package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +1 -1
  90. package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +1 -1
  91. package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +1 -1
  92. package/esm2020/public_api.mjs +3 -2
  93. package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +12 -0
  94. package/esm2020/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +29 -0
  95. package/esm2020/sidebar/examples/daffodil-design-sidebar-examples.mjs +5 -0
  96. package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.mjs +21 -0
  97. package/esm2020/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.mjs +32 -0
  98. package/esm2020/sidebar/examples/index.mjs +2 -0
  99. package/esm2020/sidebar/examples/public_api.mjs +18 -0
  100. package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.mjs +12 -0
  101. package/esm2020/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.mjs +29 -0
  102. package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.mjs +12 -0
  103. package/esm2020/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.mjs +29 -0
  104. package/esm2020/sidebar/examples/under-sidebar/under-sidebar.component.mjs +26 -0
  105. package/esm2020/sidebar/examples/under-sidebar/under-sidebar.module.mjs +32 -0
  106. package/esm2020/tree/daffodil-design-tree.mjs +5 -0
  107. package/esm2020/tree/examples/basic-tree/basic-tree.component.mjs +39 -0
  108. package/esm2020/tree/examples/basic-tree/basic-tree.module.mjs +34 -0
  109. package/esm2020/tree/examples/daffodil-design-tree-examples.mjs +5 -0
  110. package/esm2020/tree/examples/index.mjs +2 -0
  111. package/esm2020/tree/examples/public_api.mjs +7 -0
  112. package/esm2020/tree/index.mjs +2 -0
  113. package/esm2020/tree/interfaces/recursive-key.mjs +2 -0
  114. package/esm2020/tree/interfaces/tree-data.mjs +2 -0
  115. package/esm2020/tree/interfaces/tree-ui.mjs +2 -0
  116. package/esm2020/tree/public_api.mjs +5 -0
  117. package/esm2020/tree/tree/tree-notifier.service.mjs +45 -0
  118. package/esm2020/tree/tree/tree.component.mjs +106 -0
  119. package/esm2020/tree/tree-item/tree-item.directive.mjs +154 -0
  120. package/esm2020/tree/tree.module.mjs +31 -0
  121. package/esm2020/tree/utils/flatten-tree.mjs +47 -0
  122. package/esm2020/tree/utils/hydrate-tree.mjs +31 -0
  123. package/esm2020/tree/utils/transform-in-place.mjs +23 -0
  124. package/esm2020/tree/utils/traverse-tree.mjs +21 -0
  125. package/fesm2015/daffodil-design-button-examples.mjs +160 -122
  126. package/fesm2015/daffodil-design-button-examples.mjs.map +1 -1
  127. package/fesm2015/daffodil-design-callout-examples.mjs +4 -4
  128. package/fesm2015/daffodil-design-callout-examples.mjs.map +1 -1
  129. package/fesm2015/daffodil-design-card-examples.mjs +2 -2
  130. package/fesm2015/daffodil-design-card-examples.mjs.map +1 -1
  131. package/fesm2015/daffodil-design-checkbox-examples.mjs +2 -2
  132. package/fesm2015/daffodil-design-checkbox-examples.mjs.map +1 -1
  133. package/fesm2015/daffodil-design-hero-examples.mjs +4 -4
  134. package/fesm2015/daffodil-design-hero-examples.mjs.map +1 -1
  135. package/fesm2015/daffodil-design-menu-examples.mjs +1 -1
  136. package/fesm2015/daffodil-design-menu-examples.mjs.map +1 -1
  137. package/fesm2015/daffodil-design-modal-examples.mjs +2 -2
  138. package/fesm2015/daffodil-design-modal-examples.mjs.map +1 -1
  139. package/fesm2015/daffodil-design-navbar-examples.mjs +4 -4
  140. package/fesm2015/daffodil-design-navbar-examples.mjs.map +1 -1
  141. package/fesm2015/daffodil-design-sidebar-examples.mjs +218 -0
  142. package/fesm2015/daffodil-design-sidebar-examples.mjs.map +1 -0
  143. package/fesm2015/daffodil-design-tree-examples.mjs +81 -0
  144. package/fesm2015/daffodil-design-tree-examples.mjs.map +1 -0
  145. package/fesm2015/daffodil-design-tree.mjs +443 -0
  146. package/fesm2015/daffodil-design-tree.mjs.map +1 -0
  147. package/fesm2015/daffodil-design.mjs +440 -191
  148. package/fesm2015/daffodil-design.mjs.map +1 -1
  149. package/fesm2020/daffodil-design-button-examples.mjs +160 -122
  150. package/fesm2020/daffodil-design-button-examples.mjs.map +1 -1
  151. package/fesm2020/daffodil-design-callout-examples.mjs +4 -4
  152. package/fesm2020/daffodil-design-callout-examples.mjs.map +1 -1
  153. package/fesm2020/daffodil-design-card-examples.mjs +2 -2
  154. package/fesm2020/daffodil-design-card-examples.mjs.map +1 -1
  155. package/fesm2020/daffodil-design-checkbox-examples.mjs +2 -2
  156. package/fesm2020/daffodil-design-checkbox-examples.mjs.map +1 -1
  157. package/fesm2020/daffodil-design-hero-examples.mjs +4 -4
  158. package/fesm2020/daffodil-design-hero-examples.mjs.map +1 -1
  159. package/fesm2020/daffodil-design-menu-examples.mjs +1 -1
  160. package/fesm2020/daffodil-design-menu-examples.mjs.map +1 -1
  161. package/fesm2020/daffodil-design-modal-examples.mjs +2 -2
  162. package/fesm2020/daffodil-design-modal-examples.mjs.map +1 -1
  163. package/fesm2020/daffodil-design-navbar-examples.mjs +4 -4
  164. package/fesm2020/daffodil-design-navbar-examples.mjs.map +1 -1
  165. package/fesm2020/daffodil-design-sidebar-examples.mjs +218 -0
  166. package/fesm2020/daffodil-design-sidebar-examples.mjs.map +1 -0
  167. package/fesm2020/daffodil-design-tree-examples.mjs +81 -0
  168. package/fesm2020/daffodil-design-tree-examples.mjs.map +1 -0
  169. package/fesm2020/daffodil-design-tree.mjs +448 -0
  170. package/fesm2020/daffodil-design-tree.mjs.map +1 -0
  171. package/fesm2020/daffodil-design.mjs +440 -191
  172. package/fesm2020/daffodil-design.mjs.map +1 -1
  173. package/hero/examples/package.json +1 -1
  174. package/image/examples/package.json +1 -1
  175. package/input/examples/package.json +1 -1
  176. package/list/examples/package.json +1 -1
  177. package/loading-icon/examples/package.json +1 -1
  178. package/media-gallery/examples/package.json +1 -1
  179. package/menu/examples/package.json +1 -1
  180. package/modal/examples/package.json +1 -1
  181. package/molecules/backdrop/animation/backdrop-animation-state.d.ts +2 -0
  182. package/molecules/backdrop/backdrop/backdrop.component.d.ts +17 -3
  183. package/molecules/qty-dropdown/qty-dropdown.module.d.ts +1 -1
  184. package/molecules/sidebar/animation/sidebar-animation-state.d.ts +2 -1
  185. package/molecules/sidebar/animation/sidebar-animation-width.d.ts +2 -0
  186. package/molecules/sidebar/animation/sidebar-animation.d.ts +3 -1
  187. package/molecules/sidebar/animation/sidebar-viewport-animation-state.d.ts +6 -0
  188. package/molecules/sidebar/helper/sidebar-mode.d.ts +27 -1
  189. package/molecules/sidebar/helper/sidebar-side.d.ts +12 -0
  190. package/molecules/sidebar/public_api.d.ts +2 -1
  191. package/molecules/sidebar/sidebar/sidebar.component.d.ts +37 -5
  192. package/molecules/sidebar/sidebar-viewport/backdrop-interactable.d.ts +6 -0
  193. package/molecules/sidebar/sidebar-viewport/content-pad.d.ts +7 -0
  194. package/molecules/sidebar/sidebar-viewport/content-shift.d.ts +8 -0
  195. package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +47 -44
  196. package/navbar/examples/package.json +1 -1
  197. package/package.json +1 -1
  198. package/paginator/examples/package.json +1 -1
  199. package/public_api.d.ts +2 -1
  200. package/quantity-field/examples/package.json +1 -1
  201. package/radio/examples/package.json +1 -1
  202. package/scss/global.scss +1 -0
  203. package/scss/state/skeleton/_mixins.scss +1 -0
  204. package/scss/theme.scss +4 -2
  205. package/scss/theming/_color-palettes.scss +5 -5
  206. package/sidebar/examples/basic-sidebar/basic-sidebar.component.d.ts +5 -0
  207. package/sidebar/examples/basic-sidebar/basic-sidebar.module.d.ts +8 -0
  208. package/sidebar/examples/daffodil-design-sidebar-examples.d.ts +5 -0
  209. package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.component.d.ts +8 -0
  210. package/sidebar/examples/fixed-and-over-sidebar/fixed-and-over-sidebar.module.d.ts +8 -0
  211. package/sidebar/examples/index.d.ts +1 -0
  212. package/sidebar/examples/package.json +1 -0
  213. package/sidebar/examples/public_api.d.ts +2 -0
  214. package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.component.d.ts +5 -0
  215. package/sidebar/examples/sidebar-with-sticky/sidebar-with-sticky.module.d.ts +8 -0
  216. package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.component.d.ts +5 -0
  217. package/sidebar/examples/two-fixed-sidebars-either-side/two-fixed-sidebars-either-side.module.d.ts +8 -0
  218. package/sidebar/examples/under-sidebar/under-sidebar.component.d.ts +10 -0
  219. package/sidebar/examples/under-sidebar/under-sidebar.module.d.ts +8 -0
  220. package/src/atoms/button/button-theme-variants/button.scss +9 -18
  221. package/src/atoms/button/button-theme-variants/flat.scss +25 -0
  222. package/src/atoms/button/button-theme-variants/raised.scss +6 -26
  223. package/src/atoms/button/button-theme-variants/stroked.scss +12 -20
  224. package/src/atoms/button/button-theme.scss +121 -117
  225. package/src/atoms/form/{select → native-select}/README.md +1 -1
  226. package/src/atoms/form/{select/select/select-theme.scss → native-select/native-select-theme.scss} +3 -3
  227. package/src/atoms/loading-icon/loading-icon-theme.scss +4 -0
  228. package/src/molecules/sidebar/README.md +10 -0
  229. package/src/molecules/sidebar/helper/_variables.scss +7 -0
  230. package/src/molecules/sidebar/sidebar/sidebar-theme.scss +3 -3
  231. package/src/molecules/sidebar/sidebar-viewport/sidebar-viewport-theme.scss +5 -0
  232. package/tree/README.md +38 -0
  233. package/tree/daffodil-design-tree.d.ts +5 -0
  234. package/tree/examples/basic-tree/basic-tree.component.d.ts +7 -0
  235. package/tree/examples/basic-tree/basic-tree.module.d.ts +10 -0
  236. package/tree/examples/daffodil-design-tree-examples.d.ts +5 -0
  237. package/tree/examples/index.d.ts +1 -0
  238. package/tree/examples/package.json +1 -0
  239. package/tree/examples/public_api.d.ts +4 -0
  240. package/tree/index.d.ts +1 -0
  241. package/tree/interfaces/recursive-key.d.ts +3 -0
  242. package/tree/interfaces/tree-data.d.ts +13 -0
  243. package/tree/interfaces/tree-ui.d.ts +11 -0
  244. package/tree/package.json +1 -0
  245. package/tree/public_api.d.ts +6 -0
  246. package/tree/src/tree-theme.scss +38 -0
  247. package/tree/tree/tree-notifier.service.d.ts +32 -0
  248. package/tree/tree/tree.component.d.ts +75 -0
  249. package/tree/tree-item/tree-item.directive.d.ts +102 -0
  250. package/tree/tree.module.d.ts +9 -0
  251. package/tree/utils/flatten-tree.d.ts +19 -0
  252. package/tree/utils/hydrate-tree.d.ts +8 -0
  253. package/tree/utils/transform-in-place.d.ts +15 -0
  254. package/tree/utils/traverse-tree.d.ts +5 -0
  255. package/atoms/form/select/public_api.d.ts +0 -2
  256. package/esm2020/atoms/form/select/public_api.mjs +0 -3
  257. package/esm2020/atoms/form/select/select/select.component.mjs +0 -64
  258. 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/focus';
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, 100),
56
- theming.daff-color($gray, 90)
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
- &:hover {
194
- box-shadow: 0 3px 5px rgba($black, 0.12), 0 1px 3px rgba($black, 0.08);
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
- z
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-color: transparent;
295
+ background: transparent;
326
296
  border: 1px solid theming.daff-illuminate($base, $gray, 5);
327
- color: theming.daff-text-contrast($base);
297
+ color: currentColor;
328
298
 
329
- &:hover,
330
- &:focus {
331
- background-color: theming.daff-illuminate($base, $gray, 2);
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
- @include stroked.daff-stroked-button-theme-variant(
404
- theming.daff-illuminate($base, $gray, 3),
405
- theming.daff-illuminate($base, $gray, 5),
406
- transparent
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-underline-button {
441
- @include underline.daff-underline-button-theme-variant(
442
- theming.daff-illuminate($base, $gray, 7)
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 underline.daff-underline-button-theme-variant(
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 underline.daff-underline-button-theme-variant(
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 underline.daff-underline-button-theme-variant(
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 underline.daff-underline-button-theme-variant($black);
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 underline.daff-underline-button-theme-variant($white);
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 underline.daff-underline-button-theme-variant($base);
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 underline.daff-underline-button-theme-variant($base-contrast);
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
- @include underline.daff-underline-button-theme-variant(
481
- theming.daff-illuminate($base, $gray, 4)
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 underline.daff-underline-button-theme-variant(
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 underline.daff-underline-button-theme-variant(
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 underline.daff-underline-button-theme-variant(
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
- .daff-stroked-button,
506
- .daff-underline-button,
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant($base);
542
+ @include underline.daff-underline-button-theme-variant($base);
544
543
  }
545
544
 
546
545
  &.daff-theme-contrast {
547
- @include focus.daff-button-focus-theme-variant(
548
- theming.daff-color($gray)
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
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 focus.daff-button-focus-theme-variant(
569
+ @include underline.daff-underline-button-theme-variant(
566
570
  theming.daff-color(theming.$daff-green, 60)
567
571
  );
568
572
  }
@@ -1,4 +1,4 @@
1
- # Select Component
1
+ # Native Select Component
2
2
 
3
3
  `daff-native-select` is a form control element that can be used in forms to select a value from a set of options.
4
4
 
@@ -1,8 +1,8 @@
1
1
  @use 'sass:map';
2
- @use '../../../../../scss/core';
3
- @use '../../../../../scss/theming';
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');
@@ -12,6 +12,10 @@
12
12
  $black: core.daff-map-deep-get($theme, 'core.black');
13
13
 
14
14
  .daff-loading-icon {
15
+ circle {
16
+ stroke: currentColor;
17
+ }
18
+
15
19
  &.daff-primary {
16
20
  circle {
17
21
  stroke: theming.daff-color($primary);
@@ -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.
@@ -0,0 +1,7 @@
1
+ // Stacking Context Layers
2
+ $daff-sidebar-sidebar-over-z-index: 5;
3
+ $daff-sidebar-backdrop-z-index: 4;
4
+ $daff-sidebar-sidebar-side-fixed-z-index: 4;
5
+ $daff-sidebar-content-z-index: 3;
6
+ $daff-sidebar-sidebar-under-z-index: 2;
7
+ $daff-sidebar-viewport-z-index: 1;
@@ -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, "core.base-contrast");
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
- box-shadow: 6px 1px 9px 0 rgba($black, 0.1);
11
- color: $base-contrast;
11
+ color: $font-color;
12
12
  }
13
13
  }
@@ -7,5 +7,10 @@
7
7
  .daff-sidebar-viewport {
8
8
  background: $base;
9
9
  color: $base-contrast;
10
+
11
+ &__content {
12
+ background: $base;
13
+ color: $base-contrast;
14
+ }
10
15
  }
11
16
  }
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,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@daffodil/design/tree" />
5
+ export * from './index';
@@ -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,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@daffodil/design/tree/examples" />
5
+ export * from './index';
@@ -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"}
@@ -0,0 +1,4 @@
1
+ import { BasicTreeComponent } from './basic-tree/basic-tree.component';
2
+ export { BasicTreeModule } from './basic-tree/basic-tree.module';
3
+ export { BasicTreeComponent };
4
+ export declare const TREE_EXAMPLES: (typeof BasicTreeComponent)[];
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export declare type RecursiveTreeKeyOfType<T> = keyof {
2
+ [P in keyof T as T[P] extends T[] ? P : never]: T[];
3
+ };