@energinet/watt 0.0.1

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 (291) hide show
  1. package/LICENSE +201 -0
  2. package/badge/index.d.ts +17 -0
  3. package/badge/watt-badge.component.d.ts +15 -0
  4. package/breadcrumbs/index.d.ts +17 -0
  5. package/breadcrumbs/watt-breadcrumbs.component.d.ts +23 -0
  6. package/button/index.d.ts +17 -0
  7. package/button/watt-button.component.d.ts +20 -0
  8. package/card/index.d.ts +18 -0
  9. package/card/watt-card-title.component.d.ts +6 -0
  10. package/card/watt-card.component.d.ts +15 -0
  11. package/checkbox/index.d.ts +17 -0
  12. package/checkbox/watt-checkbox.component.d.ts +17 -0
  13. package/chip/index.d.ts +23 -0
  14. package/chip/watt-action-chip.component.d.ts +8 -0
  15. package/chip/watt-chip.component.d.ts +8 -0
  16. package/chip/watt-chip.directive.d.ts +16 -0
  17. package/chip/watt-date-chip.component.d.ts +29 -0
  18. package/chip/watt-date-range-chip.component.d.ts +50 -0
  19. package/chip/watt-filter-chip.component.d.ts +30 -0
  20. package/chip/watt-menu-chip.component.d.ts +30 -0
  21. package/clipboard/index.d.ts +18 -0
  22. package/clipboard/watt-clipboard-intl.service.d.ts +7 -0
  23. package/clipboard/watt-copy-to-clipboard.directive.d.ts +12 -0
  24. package/code/index.d.ts +18 -0
  25. package/code/watt-code.component.d.ts +32 -0
  26. package/code/watt-code.worker.token.d.ts +18 -0
  27. package/core/breakpoints/_breakpoints.import.scss +53 -0
  28. package/core/breakpoints/_include-media.scss +568 -0
  29. package/core/breakpoints/breakpoints-observer.d.ts +39 -0
  30. package/core/breakpoints/breakpoints.d.ts +29 -0
  31. package/core/breakpoints/index.d.ts +18 -0
  32. package/core/color/+storybook/storybook-colors-overview.component.scss +50 -0
  33. package/core/color/color-helper.service.d.ts +12 -0
  34. package/core/color/colors.d.ts +51 -0
  35. package/core/color/index.d.ts +18 -0
  36. package/core/date/dayjs.d.ts +22 -0
  37. package/core/date/index.d.ts +23 -0
  38. package/core/date/watt-danish-datetime.providers.d.ts +1 -0
  39. package/core/date/watt-date-adapter.d.ts +31 -0
  40. package/core/date/watt-date-range.d.ts +25 -0
  41. package/core/date/watt-date.pipe.d.ts +28 -0
  42. package/core/date/watt-format-date.d.ts +11 -0
  43. package/core/date/watt-locale.service.d.ts +13 -0
  44. package/core/styles/@energinet-datahub/watt/_index.scss +52 -0
  45. package/core/styles/@energinet-datahub/watt/_utils.scss +16 -0
  46. package/core/styles/@energinet-datahub/watt/theme/light-theme.scss +71 -0
  47. package/core/styles/@energinet-datahub/watt/theme/material-overwrites/datepicker.scss +69 -0
  48. package/core/styles/@energinet-datahub/watt/theme/material-overwrites/snack-bar.scss +26 -0
  49. package/core/styles/_box-sizing.scss +22 -0
  50. package/core/styles/_chips.scss +22 -0
  51. package/core/styles/_elevation.scss +18 -0
  52. package/core/styles/_hr.scss +20 -0
  53. package/core/styles/_table.scss +89 -0
  54. package/core/styles/_tokens.scss +134 -0
  55. package/core/styles/_tooltip.scss +64 -0
  56. package/core/styles/_variables.scss +106 -0
  57. package/core/styles/_vater.scss +69 -0
  58. package/core/styles/spacing/+storybook/storybook-spacing-overview.component.scss +25 -0
  59. package/core/styles/spacing/_baseline.scss +23 -0
  60. package/core/styles/spacing/_inline.scss +38 -0
  61. package/core/styles/spacing/_inset.scss +61 -0
  62. package/core/styles/spacing/_spacing.import.scss +113 -0
  63. package/core/styles/spacing/_stack.scss +38 -0
  64. package/core/styles/spacing/_variables.scss +14 -0
  65. package/core/styles/spacing/index.scss +18 -0
  66. package/core/styles/typography/+storybook/storybook-typography-overview.component.scss +78 -0
  67. package/core/styles/typography/_rem.scss +24 -0
  68. package/core/styles/typography/_typography.import.scss +195 -0
  69. package/core/styles/typography/index.scss +118 -0
  70. package/data/index.d.ts +20 -0
  71. package/data/watt-data-actions.component.d.ts +5 -0
  72. package/data/watt-data-filters.component.d.ts +5 -0
  73. package/data/watt-data-intl.service.d.ts +15 -0
  74. package/data/watt-data-table.component.d.ts +27 -0
  75. package/datetime-field/index.d.ts +17 -0
  76. package/datetime-field/watt-datetime-field.component.d.ts +39 -0
  77. package/description-list/index.d.ts +17 -0
  78. package/description-list/watt-description-list-item.component.d.ts +27 -0
  79. package/description-list/watt-description-list.component.d.ts +19 -0
  80. package/drawer/index.d.ts +21 -0
  81. package/drawer/watt-drawer-actions.component.d.ts +5 -0
  82. package/drawer/watt-drawer-content.component.d.ts +5 -0
  83. package/drawer/watt-drawer-heading.component.d.ts +5 -0
  84. package/drawer/watt-drawer-topbar.component.d.ts +5 -0
  85. package/drawer/watt-drawer.component.d.ts +61 -0
  86. package/dropdown/index.d.ts +19 -0
  87. package/dropdown/watt-dropdown-option.d.ts +22 -0
  88. package/dropdown/watt-dropdown-value.d.ts +17 -0
  89. package/dropdown/watt-dropdown.component.d.ts +195 -0
  90. package/empty-state/icons/explore.d.ts +5 -0
  91. package/empty-state/icons/no-results.d.ts +5 -0
  92. package/empty-state/icons/power.d.ts +5 -0
  93. package/empty-state/index.d.ts +20 -0
  94. package/empty-state/watt-empty-state.component.d.ts +16 -0
  95. package/expandable-card/index.d.ts +19 -0
  96. package/expandable-card/watt-expandable-card.component.d.ts +34 -0
  97. package/expansion/expansion.component.d.ts +18 -0
  98. package/expansion/index.d.ts +17 -0
  99. package/fesm2022/energinet-watt-badge.mjs +66 -0
  100. package/fesm2022/energinet-watt-badge.mjs.map +1 -0
  101. package/fesm2022/energinet-watt-breadcrumbs.mjs +116 -0
  102. package/fesm2022/energinet-watt-breadcrumbs.mjs.map +1 -0
  103. package/fesm2022/energinet-watt-button.mjs +120 -0
  104. package/fesm2022/energinet-watt-button.mjs.map +1 -0
  105. package/fesm2022/energinet-watt-card.mjs +117 -0
  106. package/fesm2022/energinet-watt-card.mjs.map +1 -0
  107. package/fesm2022/energinet-watt-checkbox.mjs +118 -0
  108. package/fesm2022/energinet-watt-checkbox.mjs.map +1 -0
  109. package/fesm2022/energinet-watt-chip.mjs +760 -0
  110. package/fesm2022/energinet-watt-chip.mjs.map +1 -0
  111. package/fesm2022/energinet-watt-clipboard.mjs +118 -0
  112. package/fesm2022/energinet-watt-clipboard.mjs.map +1 -0
  113. package/fesm2022/energinet-watt-code.mjs +119 -0
  114. package/fesm2022/energinet-watt-code.mjs.map +1 -0
  115. package/fesm2022/energinet-watt-core-breakpoints.mjs +100 -0
  116. package/fesm2022/energinet-watt-core-breakpoints.mjs.map +1 -0
  117. package/fesm2022/energinet-watt-core-color.mjs +127 -0
  118. package/fesm2022/energinet-watt-core-color.mjs.map +1 -0
  119. package/fesm2022/energinet-watt-core-date.mjs +260 -0
  120. package/fesm2022/energinet-watt-core-date.mjs.map +1 -0
  121. package/fesm2022/energinet-watt-data.mjs +286 -0
  122. package/fesm2022/energinet-watt-data.mjs.map +1 -0
  123. package/fesm2022/energinet-watt-datetime-field.mjs +233 -0
  124. package/fesm2022/energinet-watt-datetime-field.mjs.map +1 -0
  125. package/fesm2022/energinet-watt-description-list.mjs +130 -0
  126. package/fesm2022/energinet-watt-description-list.mjs.map +1 -0
  127. package/fesm2022/energinet-watt-drawer.mjs +271 -0
  128. package/fesm2022/energinet-watt-drawer.mjs.map +1 -0
  129. package/fesm2022/energinet-watt-dropdown.mjs +423 -0
  130. package/fesm2022/energinet-watt-dropdown.mjs.map +1 -0
  131. package/fesm2022/energinet-watt-empty-state.mjs +299 -0
  132. package/fesm2022/energinet-watt-empty-state.mjs.map +1 -0
  133. package/fesm2022/energinet-watt-expandable-card.mjs +151 -0
  134. package/fesm2022/energinet-watt-expandable-card.mjs.map +1 -0
  135. package/fesm2022/energinet-watt-expansion.mjs +78 -0
  136. package/fesm2022/energinet-watt-expansion.mjs.map +1 -0
  137. package/fesm2022/energinet-watt-field.mjs +249 -0
  138. package/fesm2022/energinet-watt-field.mjs.map +1 -0
  139. package/fesm2022/energinet-watt-icon-flags.mjs +376 -0
  140. package/fesm2022/energinet-watt-icon-flags.mjs.map +1 -0
  141. package/fesm2022/energinet-watt-icon.mjs +195 -0
  142. package/fesm2022/energinet-watt-icon.mjs.map +1 -0
  143. package/fesm2022/energinet-watt-modal.mjs +260 -0
  144. package/fesm2022/energinet-watt-modal.mjs.map +1 -0
  145. package/fesm2022/energinet-watt-paginator.mjs +164 -0
  146. package/fesm2022/energinet-watt-paginator.mjs.map +1 -0
  147. package/fesm2022/energinet-watt-phone-field.mjs +322 -0
  148. package/fesm2022/energinet-watt-phone-field.mjs.map +1 -0
  149. package/fesm2022/energinet-watt-picker-__shared.mjs +384 -0
  150. package/fesm2022/energinet-watt-picker-__shared.mjs.map +1 -0
  151. package/fesm2022/energinet-watt-picker-datepicker.mjs +430 -0
  152. package/fesm2022/energinet-watt-picker-datepicker.mjs.map +1 -0
  153. package/fesm2022/energinet-watt-picker-timepicker.mjs +394 -0
  154. package/fesm2022/energinet-watt-picker-timepicker.mjs.map +1 -0
  155. package/fesm2022/energinet-watt-progress-tracker.mjs +141 -0
  156. package/fesm2022/energinet-watt-progress-tracker.mjs.map +1 -0
  157. package/fesm2022/energinet-watt-query-params.mjs +95 -0
  158. package/fesm2022/energinet-watt-query-params.mjs.map +1 -0
  159. package/fesm2022/energinet-watt-radio.mjs +125 -0
  160. package/fesm2022/energinet-watt-radio.mjs.map +1 -0
  161. package/fesm2022/energinet-watt-search.mjs +126 -0
  162. package/fesm2022/energinet-watt-search.mjs.map +1 -0
  163. package/fesm2022/energinet-watt-shell.mjs +315 -0
  164. package/fesm2022/energinet-watt-shell.mjs.map +1 -0
  165. package/fesm2022/energinet-watt-slider.mjs +159 -0
  166. package/fesm2022/energinet-watt-slider.mjs.map +1 -0
  167. package/fesm2022/energinet-watt-spinner.mjs +72 -0
  168. package/fesm2022/energinet-watt-spinner.mjs.map +1 -0
  169. package/fesm2022/energinet-watt-stepper.mjs +185 -0
  170. package/fesm2022/energinet-watt-stepper.mjs.map +1 -0
  171. package/fesm2022/energinet-watt-table.mjs +423 -0
  172. package/fesm2022/energinet-watt-table.mjs.map +1 -0
  173. package/fesm2022/energinet-watt-tabs.mjs +254 -0
  174. package/fesm2022/energinet-watt-tabs.mjs.map +1 -0
  175. package/fesm2022/energinet-watt-text-field.mjs +316 -0
  176. package/fesm2022/energinet-watt-text-field.mjs.map +1 -0
  177. package/fesm2022/energinet-watt-textarea-field.mjs +136 -0
  178. package/fesm2022/energinet-watt-textarea-field.mjs.map +1 -0
  179. package/fesm2022/energinet-watt-toast.mjs +174 -0
  180. package/fesm2022/energinet-watt-toast.mjs.map +1 -0
  181. package/fesm2022/energinet-watt-tooltip.mjs +214 -0
  182. package/fesm2022/energinet-watt-tooltip.mjs.map +1 -0
  183. package/fesm2022/energinet-watt-utils-css.mjs +72 -0
  184. package/fesm2022/energinet-watt-utils-css.mjs.map +1 -0
  185. package/fesm2022/energinet-watt-utils-intersection-observer.mjs +83 -0
  186. package/fesm2022/energinet-watt-utils-intersection-observer.mjs.map +1 -0
  187. package/fesm2022/energinet-watt-utils-resize-observer.mjs +144 -0
  188. package/fesm2022/energinet-watt-utils-resize-observer.mjs.map +1 -0
  189. package/fesm2022/energinet-watt-validation-message.mjs +114 -0
  190. package/fesm2022/energinet-watt-validation-message.mjs.map +1 -0
  191. package/fesm2022/energinet-watt-validators.mjs +40 -0
  192. package/fesm2022/energinet-watt-validators.mjs.map +1 -0
  193. package/fesm2022/energinet-watt-vater.mjs +287 -0
  194. package/fesm2022/energinet-watt-vater.mjs.map +1 -0
  195. package/fesm2022/energinet-watt.mjs +47 -0
  196. package/fesm2022/energinet-watt.mjs.map +1 -0
  197. package/field/index.d.ts +20 -0
  198. package/field/watt-field-error.component.d.ts +5 -0
  199. package/field/watt-field-hint.component.d.ts +5 -0
  200. package/field/watt-field-intl.service.d.ts +8 -0
  201. package/field/watt-field.component.d.ts +42 -0
  202. package/icon/flags/index.d.ts +23 -0
  203. package/icon/flags/watt-flag-de.d.ts +5 -0
  204. package/icon/flags/watt-flag-dk.d.ts +5 -0
  205. package/icon/flags/watt-flag-fi.d.ts +5 -0
  206. package/icon/flags/watt-flag-no.d.ts +5 -0
  207. package/icon/flags/watt-flag-pl.d.ts +5 -0
  208. package/icon/flags/watt-flag-se.d.ts +5 -0
  209. package/icon/flags/watt-flag.d.ts +13 -0
  210. package/icon/icon.component.d.ts +20 -0
  211. package/icon/icons.d.ts +82 -0
  212. package/icon/index.d.ts +17 -0
  213. package/index.d.ts +33 -0
  214. package/modal/index.d.ts +18 -0
  215. package/modal/watt-modal.component.d.ts +86 -0
  216. package/modal/watt-modal.service.d.ts +62 -0
  217. package/package.json +237 -0
  218. package/paginator/index.d.ts +18 -0
  219. package/paginator/watt-paginator-intl.service.d.ts +14 -0
  220. package/paginator/watt-paginator.component.d.ts +53 -0
  221. package/phone-field/index.d.ts +18 -0
  222. package/phone-field/watt-phone-field-intl.service.d.ts +14 -0
  223. package/phone-field/watt-phone-field.component.d.ts +75 -0
  224. package/picker/__shared/index.d.ts +19 -0
  225. package/picker/__shared/placeholder-mask/watt-placeholder-mask.component.d.ts +34 -0
  226. package/picker/__shared/watt-picker-base.d.ts +201 -0
  227. package/picker/__shared/watt-picker-value.d.ts +18 -0
  228. package/picker/datepicker/index.d.ts +19 -0
  229. package/picker/datepicker/watt-datepicker-intl.service.d.ts +7 -0
  230. package/picker/datepicker/watt-datepicker.component.d.ts +149 -0
  231. package/picker/timepicker/index.d.ts +17 -0
  232. package/picker/timepicker/maskito-time-range-mask.d.ts +18 -0
  233. package/picker/timepicker/watt-timepicker.component.d.ts +132 -0
  234. package/progress-tracker/index.d.ts +20 -0
  235. package/progress-tracker/watt-progress-tracker-step.component.d.ts +10 -0
  236. package/progress-tracker/watt-progress-tracker.component.d.ts +5 -0
  237. package/query-params/index.d.ts +17 -0
  238. package/query-params/watt-query-params.directive.d.ts +27 -0
  239. package/radio/index.d.ts +17 -0
  240. package/radio/watt-radio.component.d.ts +24 -0
  241. package/search/index.d.ts +17 -0
  242. package/search/watt-search.component.d.ts +31 -0
  243. package/shell/index.d.ts +18 -0
  244. package/shell/nav-list/index.d.ts +18 -0
  245. package/shell/nav-list/watt-expand-on-active-link.directive.d.ts +26 -0
  246. package/shell/nav-list/watt-nav-list-item.component.d.ts +16 -0
  247. package/shell/nav-list/watt-nav-list.component.d.ts +12 -0
  248. package/shell/shell.component.d.ts +28 -0
  249. package/slider/index.d.ts +17 -0
  250. package/slider/watt-slider.component.d.ts +57 -0
  251. package/spinner/index.d.ts +17 -0
  252. package/spinner/watt-spinner.component.d.ts +15 -0
  253. package/stepper/index.d.ts +18 -0
  254. package/stepper/watt-stepper-step.component.d.ts +34 -0
  255. package/stepper/watt-stepper.component.d.ts +40 -0
  256. package/table/index.d.ts +18 -0
  257. package/table/watt-table-data-source.d.ts +37 -0
  258. package/table/watt-table.component.d.ts +239 -0
  259. package/tabs/index.d.ts +26 -0
  260. package/tabs/watt-link-tab.component.d.ts +7 -0
  261. package/tabs/watt-link-tabs.component.d.ts +7 -0
  262. package/tabs/watt-tab.component.d.ts +26 -0
  263. package/tabs/watt-tabs-action.component.d.ts +5 -0
  264. package/tabs/watt-tabs.component.d.ts +36 -0
  265. package/text-field/index.d.ts +17 -0
  266. package/text-field/watt-text-field.component.d.ts +77 -0
  267. package/textarea-field/index.d.ts +17 -0
  268. package/textarea-field/watt-textarea-field.component.d.ts +27 -0
  269. package/toast/index.d.ts +19 -0
  270. package/toast/watt-toast.component.d.ts +47 -0
  271. package/toast/watt-toast.service.d.ts +13 -0
  272. package/tooltip/index.d.ts +17 -0
  273. package/tooltip/watt-tooltip.component.d.ts +47 -0
  274. package/tooltip/watt-tooltip.directive.d.ts +31 -0
  275. package/utils/css/css-custom-properties.service.d.ts +10 -0
  276. package/utils/css/index.d.ts +17 -0
  277. package/utils/intersection-observer/index.d.ts +17 -0
  278. package/utils/intersection-observer/watt-intersection-observer.service.d.ts +21 -0
  279. package/utils/resize-observer/index.d.ts +18 -0
  280. package/utils/resize-observer/watt-resize-observer.directive.d.ts +35 -0
  281. package/utils/resize-observer/watt-resize-observer.service.d.ts +39 -0
  282. package/validation-message/index.d.ts +17 -0
  283. package/validation-message/watt-validation-message.component.d.ts +50 -0
  284. package/validators/index.d.ts +17 -0
  285. package/validators/watt-range.validators.d.ts +23 -0
  286. package/vater/index.d.ts +20 -0
  287. package/vater/types.d.ts +21 -0
  288. package/vater/vater-flex.component.d.ts +19 -0
  289. package/vater/vater-spacer.component.d.ts +5 -0
  290. package/vater/vater-stack.component.d.ts +14 -0
  291. package/vater/vater-utility.directive.d.ts +16 -0
@@ -0,0 +1,89 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./typography/typography.import" as typography;
15
+
16
+ .watt-table-row--highlighted {
17
+ background-color: var(--watt-color-secondary-light);
18
+ }
19
+
20
+ mat-table,
21
+ .mat-table {
22
+ .mat-header-row {
23
+ min-height: 34px;
24
+ }
25
+
26
+ .mat-header-cell {
27
+ background-color: var(--watt-color-primary-light);
28
+ @include typography.watt-label;
29
+ }
30
+
31
+ mat-row.clickable {
32
+ cursor: pointer;
33
+ }
34
+
35
+ .multi-line-cell {
36
+ padding: 0.5rem 0;
37
+ }
38
+ }
39
+
40
+ mat-paginator:not(.watt-paginator) {
41
+ &.mat-paginator,
42
+ .mat-paginator-page-size .mat-select-trigger {
43
+ @include typography.watt-text-s;
44
+ }
45
+
46
+ & .mat-paginator-container {
47
+ padding: var(--watt-space-s) 0;
48
+ }
49
+
50
+ & .mat-paginator-page-size-label {
51
+ margin: 0 var(--watt-space-m);
52
+ }
53
+
54
+ & .mat-icon-button {
55
+ color: var(--watt-color-primary);
56
+ line-height: 1;
57
+
58
+ // Decrease spacing between arrow buttons
59
+ width: 36px;
60
+ height: 36px;
61
+ }
62
+
63
+ & .mat-icon-button.mat-button-disabled.mat-button-disabled {
64
+ color: var(--watt-color-neutral-grey-500);
65
+ }
66
+
67
+ & .mat-paginator-range-label {
68
+ margin: 0 var(--watt-space-l);
69
+ }
70
+
71
+ mat-form-field {
72
+ &.mat-paginator-page-size-select {
73
+ width: 80px; // Magic width
74
+ margin: 0;
75
+ padding: 0 var(--watt-space-s);
76
+ border: 1px solid var(--watt-color-neutral-grey-400);
77
+ border-radius: 3px;
78
+ }
79
+
80
+ & .mat-form-field-underline {
81
+ display: none;
82
+ }
83
+
84
+ & .mat-form-field-flex {
85
+ height: 42px; // Standard field height minus 1px border
86
+ align-items: center;
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,134 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ /**
15
+ * Do not edit directly
16
+ * Generated on Thu, 23 Mar 2023 09:53:46 GMT
17
+ */
18
+
19
+ :root {
20
+ --bg-button-high-emphasis: #00847c;
21
+ --bg-button-medium-emphasis: #ffffff;
22
+ --bg-badge-success: #dfebda;
23
+ --bg-card: #ffffff;
24
+ --bg-tab: #ffffff;
25
+ --bg-table: #ffffff;
26
+ --bg-table-column-header: #dfebda;
27
+ --bg-default: #ffffff;
28
+ --bg-cta: #00847c;
29
+ --bg-success: #dfebda;
30
+ --fg-button-high-emphasis: #ffffff;
31
+ --fg-button-medium-emphasis: #00847c;
32
+ --fg-badge-success: #005d5c;
33
+ --fg-tab-enabled: #0000009e;
34
+ --fg-tab-active: #00847c;
35
+ --fg-table: #000000de;
36
+ --fg-table-column-header: #000000de;
37
+ --fg-default: #000000de;
38
+ --fg-muted: #0000009e;
39
+ --fg-primary: #00847c;
40
+ --border-radius-0: 0px;
41
+ --border-radius-50: 2px;
42
+ --border-radius-100: 4px;
43
+ --border-radius-200: 8px;
44
+ --border-radius-button: 4px;
45
+ --border-radius-badge: 4px;
46
+ --border-radius-card: 4px;
47
+ --spacing-0: 0px;
48
+ --spacing-50: 4px;
49
+ --spacing-100: 8px;
50
+ --spacing-200: 16px;
51
+ --spacing-300: 24px;
52
+ --spacing-400: 32px;
53
+ --spacing-500: 40px;
54
+ --spacing-button-padding: 16px;
55
+ --spacing-table-padding: 8px;
56
+ --spacing-badge-padding: 4px;
57
+ --box-shadow-300-x: 0;
58
+ --box-shadow-300-y: 1;
59
+ --box-shadow-300-blur: 6;
60
+ --box-shadow-300-spread: 0;
61
+ --box-shadow-300-color: #0b3c5d26;
62
+ --box-shadow-300-type: dropShadow;
63
+ --box-shadow-card-x: 0;
64
+ --box-shadow-card-y: 1;
65
+ --box-shadow-card-blur: 6;
66
+ --box-shadow-card-spread: 0;
67
+ --box-shadow-card-color: #0b3c5d26;
68
+ --box-shadow-card-type: dropShadow;
69
+ --size-300: 24rem;
70
+ --size-500: 56rem;
71
+ --size-table-cell: 56rem;
72
+ --size-tab: 56rem;
73
+ --size-button: 44rem;
74
+ --size-badge: 24rem;
75
+ --border-button-medium-emphasis-color: #00847c;
76
+ --border-button-medium-emphasis-width: 1px;
77
+ --border-button-medium-emphasis-style: solid;
78
+ --border-table-cell-color: #e0e0e0;
79
+ --border-table-cell-width: 1px;
80
+ --border-table-cell-style: solid;
81
+ --border-tab-active-color: #00847c;
82
+ --border-tab-active-width: 3px;
83
+ --border-tab-active-style: solid;
84
+ --typography-h1-font-family: Open Sans;
85
+ --typography-h1-font-weight: 600;
86
+ --typography-h1-font-size: 28px;
87
+ --typography-h3-font-family: Open Sans;
88
+ --typography-h3-font-weight: 600;
89
+ --typography-h3-font-size: 20px;
90
+ --typography-button-font-family: Open Sans;
91
+ --typography-button-font-weight: 600;
92
+ --typography-button-font-size: 16px;
93
+ --typography-label-font-family: Open Sans;
94
+ --typography-label-font-weight: 600;
95
+ --typography-label-font-size: 14px;
96
+ --typography-label-text-case: uppercase;
97
+ --typography-body-font-family: Open Sans;
98
+ --typography-body-font-weight: 400;
99
+ --typography-body-font-size: 14px;
100
+ --typography-body-text-case: As typed;
101
+ --sizing-interactive-element: 44px;
102
+ --color-primary-100: #ebf5f5;
103
+ --color-primary-300: #b2d0d2;
104
+ --color-primary-500: #00847c;
105
+ --color-primary-700: #005d5c;
106
+ --color-primary-900: #02525e;
107
+ --color-black: #000000;
108
+ --color-white: #ffffff;
109
+ --color-secondary-500: #f8ad3c;
110
+ --color-secondary-700: #ee9331;
111
+ --color-green-200: #dfebda;
112
+ --color-green-500: #7fb069;
113
+ --color-blue-500: #0b3c5d;
114
+ --color-neutral-300: #e0e0e0;
115
+ --font-family-sans-serif: Open Sans;
116
+ --font-weight-regular: 400;
117
+ --font-weight-semibold: 600;
118
+ --font-size-100: 12px;
119
+ --font-size-200: 14px;
120
+ --font-size-300: 16px;
121
+ --font-size-400: 20px;
122
+ --font-size-500: 24px;
123
+ --font-size-600: 28px;
124
+ --border-width-none: 0px;
125
+ --border-width-xs: 1px;
126
+ --border-width-md: 3px;
127
+ --opacity-100: 87%;
128
+ --opacity-200: 62%;
129
+ --text-case-uppercase: uppercase;
130
+ --text-case-none: As typed;
131
+ --token-set-order-0: core;
132
+ --token-set-order-1: semantic;
133
+ --token-set-order-2: component;
134
+ }
@@ -0,0 +1,64 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./typography/typography.import" as typography;
15
+ @use "./spacing/spacing.import" as space;
16
+
17
+ $arrow-size: 6px; // magic number by designer
18
+
19
+ .mat-tooltip-panel .mat-tooltip {
20
+ @include typography.watt-text-s;
21
+ overflow: visible;
22
+ margin: var(--watt-space-m);
23
+ background-color: var(--watt-color-primary-dark);
24
+
25
+ &::before {
26
+ position: absolute;
27
+ content: "";
28
+ width: 0;
29
+ height: 0;
30
+ border: $arrow-size solid transparent;
31
+ }
32
+
33
+ &.mat-tooltip-handset {
34
+ @include space.inset-squish-s;
35
+ }
36
+ }
37
+
38
+ .mat-tooltip-panel-below .mat-tooltip::before {
39
+ bottom: 100%;
40
+ left: calc(50% - $arrow-size);
41
+ border-top-width: 0;
42
+ border-bottom-color: var(--watt-color-primary-dark);
43
+ }
44
+
45
+ .mat-tooltip-panel-above .mat-tooltip::before {
46
+ top: 100%;
47
+ left: calc(50% - $arrow-size);
48
+ border-bottom-width: 0;
49
+ border-top-color: var(--watt-color-primary-dark);
50
+ }
51
+
52
+ .mat-tooltip-panel-left .mat-tooltip::before {
53
+ left: 100%;
54
+ top: calc(50% - $arrow-size);
55
+ border-right-width: 0;
56
+ border-left-color: var(--watt-color-primary-dark);
57
+ }
58
+
59
+ .mat-tooltip-panel-right .mat-tooltip::before {
60
+ right: 100%;
61
+ top: calc(50% - $arrow-size);
62
+ border-left-width: 0;
63
+ border-right-color: var(--watt-color-primary-dark);
64
+ }
@@ -0,0 +1,106 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ :root {
15
+ // Primary
16
+ --watt-color-primary: #00898a;
17
+ --watt-color-primary-contrast: var(--watt-color-neutral-white);
18
+ --watt-color-primary-light: #b2d0d2;
19
+ --watt-color-primary-light-contrast: var(--watt-color-neutral-black);
20
+ --watt-color-primary-dark: #005d5c;
21
+ --watt-color-primary-dark-contrast: var(--watt-color-neutral-white);
22
+ --watt-color-primary-darker: #02525e;
23
+ --watt-color-primary-darker-contrast: var(--watt-color-neutral-white);
24
+ --watt-color-primary-ultralight: #ebf5f5;
25
+ --watt-color-primary-ultralight-contrast: var(--watt-color-neutral-black);
26
+ --mitid-color: #0061e9;
27
+ --mitid-color-hover: #176ee9;
28
+ // Secondary
29
+ --watt-color-secondary: #f8ad3c;
30
+ --watt-color-secondary-dark: #ee9331;
31
+ --watt-color-secondary-light: #f9dba7;
32
+ --watt-color-secondary-ultralight: #fff4de;
33
+ --watt-color-secondary-ultralight-contrast: var(--watt-color-neutral-black);
34
+ // Data Visualization
35
+ --watt-color-data-1: #9fcd91;
36
+ --watt-color-data-2: #a0c1c2;
37
+ --watt-color-data-3: #00a58d;
38
+ // Neutrals
39
+ --watt-color-neutral-black: #000;
40
+ --watt-color-neutral-black-contrast: var(--watt-color-neutral-white);
41
+ --watt-color-neutral-white: #fff;
42
+ --watt-color-neutral-white-contrast: var(--watt-color-neutral-black);
43
+ --watt-color-neutral-grey-50: #fafafa;
44
+ --watt-color-neutral-grey-50-contrast: var(--watt-color-neutral-black);
45
+ --watt-color-neutral-grey-100: #f5f5f5;
46
+ --watt-color-neutral-grey-100-contrast: var(--watt-color-neutral-black);
47
+ --watt-color-neutral-grey-200: #eeeeee;
48
+ --watt-color-neutral-grey-200-contrast: var(--watt-color-neutral-black);
49
+ --watt-color-neutral-grey-300: #e0e0e0;
50
+ --watt-color-neutral-grey-300-contrast: var(--watt-color-neutral-black);
51
+ --watt-color-neutral-grey-400: #bdbdbd;
52
+ --watt-color-neutral-grey400--contrast: var(--watt-color-neutral-black);
53
+ --watt-color-neutral-grey-500: #9e9e9e;
54
+ --watt-color-neutral-grey-500-contrast: var(--watt-color-neutral-black);
55
+ --watt-color-neutral-grey-600: #757575;
56
+ --watt-color-neutral-grey-600-contrast: var(--watt-color-neutral-white);
57
+ --watt-color-neutral-grey-700: #616161;
58
+ --watt-color-neutral-grey-700-contrast: var(--watt-color-neutral-white);
59
+ --watt-color-neutral-grey-800: #424242;
60
+ --watt-color-neutral-grey-800-contrast: var(--watt-color-neutral-white);
61
+ --watt-color-neutral-grey-900: #212121;
62
+ --watt-color-neutral-grey-900-contrast: var(--watt-color-neutral-white);
63
+ // States
64
+ --watt-color-state-danger: #d12923;
65
+ --watt-color-state-danger-contrast: var(--watt-color-neutral-white);
66
+ --watt-color-state-danger-light: #f4c9c8;
67
+ --watt-color-state-danger-light-contrast: var(--watt-color-neutral-black);
68
+ --watt-color-state-warning: var(--watt-color-secondary-dark);
69
+ --watt-color-state-warning-contrast: var(--watt-color-neutral-black);
70
+ --watt-color-state-warning-light: #fef5d5;
71
+ --watt-color-state-warning-light-contrast: var(--watt-color-neutral-black);
72
+ --watt-color-state-success: #7fb069;
73
+ --watt-color-state-success-contrast: var(--watt-color-neutral-black);
74
+ --watt-color-state-success-light: #dfebda;
75
+ --watt-color-state-success-light-contrast: var(--watt-color-neutral-black);
76
+ --watt-color-state-info: #00a6bc;
77
+ --watt-color-state-info-contrast: var(--watt-color-neutral-black);
78
+ --watt-color-state-info-light: #d6f1f4;
79
+ --watt-color-state-info-light-contrast: var(--watt-color-neutral-black);
80
+ // Typography
81
+ --watt-typography-headline-color: var(--watt-on-light-high-emphasis);
82
+ --watt-typography-text-color: var(--watt-on-light-high-emphasis);
83
+ --watt-typography-button-color: var(--watt-color-primary);
84
+ --watt-typography-label-color: var(--watt-on-light-high-emphasis);
85
+ --watt-typography-link-color: var(--watt-color-primary-dark);
86
+ // Text Color Emphasis
87
+ --watt-on-light-high-emphasis: rgba(0, 0, 0, 0.87);
88
+ --watt-on-light-medium-emphasis: rgba(0, 0, 0, 0.62);
89
+ --watt-on-light-low-emphasis: rgba(0, 0, 0, 0.38);
90
+ --watt-on-dark-high-emphasis: rgba(255, 255, 255, 1);
91
+ --watt-on-dark-medium-emphasis: rgba(255, 255, 255, 0.62);
92
+ --watt-on-dark-low-emphasis: rgba(255, 255, 255, 0.38);
93
+ // Surface overlays
94
+ --watt-on-light-surface-overlay: rgba(33, 33, 33, 0.08);
95
+
96
+ // ripple
97
+ // based on primary color
98
+ --watt-ripple-color: rgba(0, 137, 138, 0.1);
99
+
100
+ // shadows
101
+ --watt-bottom-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.08);
102
+
103
+ // Components
104
+ --watt-sidenav-background-color: #09505d;
105
+ --watt-nav-list-hover-background-color: #07404a;
106
+ }
@@ -0,0 +1,69 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @layer vater {
15
+ .vater-fill-horizontal {
16
+ display: block;
17
+ width: 100%;
18
+ }
19
+
20
+ .vater-fill-vertical {
21
+ display: block;
22
+ height: 100%;
23
+ }
24
+
25
+ .vater-fill-both {
26
+ display: block;
27
+ width: 100%;
28
+ height: 100%;
29
+ }
30
+
31
+ .vater-center {
32
+ margin: auto;
33
+ }
34
+
35
+ .vater-inset-0 {
36
+ position: absolute;
37
+ inset: 0;
38
+ }
39
+
40
+ .vater-inset-xs {
41
+ position: absolute;
42
+ inset: var(--watt-space-xs);
43
+ }
44
+
45
+ .vater-inset-s {
46
+ position: absolute;
47
+ inset: var(--watt-space-s);
48
+ }
49
+
50
+ .vater-inset-m {
51
+ position: absolute;
52
+ inset: var(--watt-space-m);
53
+ }
54
+
55
+ .vater-inset-ml {
56
+ position: absolute;
57
+ inset: var(--watt-space-ml);
58
+ }
59
+
60
+ .vater-inset-l {
61
+ position: absolute;
62
+ inset: var(--watt-space-l);
63
+ }
64
+
65
+ .vater-inset-xl {
66
+ position: absolute;
67
+ inset: var(--watt-space-xl);
68
+ }
69
+ }
@@ -0,0 +1,25 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ :host {
15
+ display: block;
16
+ }
17
+
18
+ .visual-example {
19
+ background-color: var(--watt-color-primary);
20
+ height: 1.5rem;
21
+ }
22
+
23
+ .visual-reference {
24
+ width: 50%;
25
+ }
@@ -0,0 +1,23 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./variables" as spaceVariables;
15
+
16
+ :root {
17
+ --watt-space-xs: #{spaceVariables.$watt-space-baseline};
18
+ --watt-space-s: #{spaceVariables.$watt-space-baseline * 2};
19
+ --watt-space-m: #{spaceVariables.$watt-space-baseline * 4};
20
+ --watt-space-ml: #{spaceVariables.$watt-space-baseline * 6};
21
+ --watt-space-l: #{spaceVariables.$watt-space-baseline * 8};
22
+ --watt-space-xl: #{spaceVariables.$watt-space-baseline * 16};
23
+ }
@@ -0,0 +1,38 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./spacing.import" as space;
15
+
16
+ .watt-space-inline-xxs {
17
+ @include space.inline-xxs;
18
+ }
19
+
20
+ .watt-space-inline-xs {
21
+ @include space.inline-xs;
22
+ }
23
+
24
+ .watt-space-inline-s {
25
+ @include space.inline-s;
26
+ }
27
+
28
+ .watt-space-inline-m {
29
+ @include space.inline-m;
30
+ }
31
+
32
+ .watt-space-inline-l {
33
+ @include space.inline-l;
34
+ }
35
+
36
+ .watt-space-inline-xl {
37
+ @include space.inline-xl;
38
+ }
@@ -0,0 +1,61 @@
1
+ // Copyright 2020 Energinet DataHub A/S
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License2");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ @use "./spacing.import" as space;
15
+
16
+ // Inset
17
+ .watt-space-inset-xs {
18
+ @include space.inset-xs;
19
+ }
20
+
21
+ .watt-space-inset-s {
22
+ @include space.inset-s;
23
+ }
24
+
25
+ .watt-space-inset-m {
26
+ @include space.inset-m;
27
+ }
28
+
29
+ .watt-space-inset-l {
30
+ @include space.inset-l;
31
+ }
32
+
33
+ .watt-space-inset-xl {
34
+ @include space.inset-xl;
35
+ }
36
+
37
+ // Inset Squish
38
+ .watt-space-inset-squish-xs {
39
+ @include space.inset-squish-xs;
40
+ }
41
+
42
+ .watt-space-inset-squish-s {
43
+ @include space.inset-squish-s;
44
+ }
45
+
46
+ .watt-space-inset-squish-m {
47
+ @include space.inset-squish-m;
48
+ }
49
+
50
+ .watt-space-inset-squish-l {
51
+ @include space.inset-squish-l;
52
+ }
53
+
54
+ // Inset Stretch
55
+ .watt-space-inset-stretch-s {
56
+ @include space.inset-stretch-s;
57
+ }
58
+
59
+ .watt-space-inset-stretch-m {
60
+ @include space.inset-stretch-m;
61
+ }