@ndwnu/design-system 9.0.0 → 9.2.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/assets/images/map-backgrounds/osm-basic.webp +0 -0
- package/assets/images/map-backgrounds/osm-color-blind.webp +0 -0
- package/assets/images/map-backgrounds/osm-dark-with-highlighted-main-roads.webp +0 -0
- package/assets/images/map-backgrounds/osm-dark.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-no-roads.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-fcd-links_1-5.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-fcd-roads.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-fcd-segments.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-mst.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-nwb-roads-white.webp +0 -0
- package/assets/images/map-backgrounds/osm-default-with-nwb-roads.webp +0 -0
- package/assets/images/map-backgrounds/osm-default.webp +0 -0
- package/assets/images/map-backgrounds/osm-front-office-dark.webp +0 -0
- package/assets/images/map-backgrounds/osm-front-office-light-with-nwb-roads.webp +0 -0
- package/assets/images/map-backgrounds/osm-front-office-light.webp +0 -0
- package/assets/images/map-backgrounds/osm-green.webp +0 -0
- package/assets/images/map-layers/actueelverkeer1.webp +0 -0
- package/assets/images/map-layers/actueelverkeerv2.webp +0 -0
- package/assets/images/map-layers/beeldstand1.webp +0 -0
- package/assets/images/map-layers/beeldstand2.webp +0 -0
- package/assets/images/map-layers/hectometrering.webp +0 -0
- package/assets/images/map-layers/wegwerkzaamheden.webp +0 -0
- package/fesm2022/ndwnu-design-system.mjs +2606 -2256
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +3 -3
- package/lib/components/badge/badge.component.d.ts +6 -1
- package/lib/components/collapsible/collapsible.component.d.ts +3 -1
- package/lib/components/dropdown/dropdown.component.d.ts +1 -1
- package/lib/components/form-field/autosuggest/autosuggest-option/base-autosuggest-option.component.d.ts +1 -1
- package/lib/components/form-field/month-input/date-validators.d.ts +3 -0
- package/lib/components/form-field/month-input/month-input-utils.d.ts +2 -1
- package/lib/components/form-field/month-input/month-input.component.d.ts +4 -1
- package/lib/components/form-field/option-group/option.component.d.ts +2 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/list/list.component.d.ts +6 -0
- package/lib/components/list-item/index.d.ts +1 -0
- package/lib/components/list-item/list-item.component.d.ts +28 -0
- package/lib/components/main-navigation/main-navigation-header/main-navigation-header.component.d.ts +1 -1
- package/lib/components/map-display/backgrounds.d.ts +21 -0
- package/lib/components/map-display/index.d.ts +3 -0
- package/lib/components/map-display/layers.d.ts +10 -0
- package/lib/components/map-display/map-display-option/index.d.ts +2 -0
- package/lib/components/map-display/map-display-option/map-display-option.component.d.ts +11 -0
- package/lib/components/map-display/map-display-option/map-display-option.model.d.ts +14 -0
- package/lib/components/map-display/map-display.component.d.ts +30 -0
- package/lib/components/multi-select/checkbox-data.interface.d.ts +3 -0
- package/lib/models/image.model.d.ts +4 -0
- package/lib/models/index.d.ts +1 -0
- package/package.json +2 -2
- package/styles/base/_colors.scss +1 -1
- package/styles/base/colors.stories.model.ts +28 -92
- package/styles/base/colors.stories.ts +13 -3
- package/styles/base/typography.stories.ts +4 -9
- package/styles/components/_divider.scss +1 -1
- package/styles/components/_input.scss +0 -4
- package/lib/components/form-field/autosuggest/match-bold.pipe.d.ts +0 -7
- package/styles/base/colors.stories.utils.ts +0 -58
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ColorGroup } from './colors.stories.model';
|
|
2
|
-
|
|
3
|
-
export function header(values: string[]): string {
|
|
4
|
-
return `
|
|
5
|
-
<div class="header">
|
|
6
|
-
${values.map((value) => `<p class="ndw-heading-sm">${value}</p>`).join('')}
|
|
7
|
-
</div>
|
|
8
|
-
`;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function colors(type: ColorGroup): string {
|
|
12
|
-
const style = getComputedStyle(document.body);
|
|
13
|
-
|
|
14
|
-
return `${type.colors
|
|
15
|
-
.map((color) => {
|
|
16
|
-
const subName = color.subName ? `-${color.subName}` : '';
|
|
17
|
-
const convertedValue = color.value && color.value < 100 ? `0${color.value}` : color.value;
|
|
18
|
-
const value = color.value ? `-${convertedValue}` : '';
|
|
19
|
-
const variable = `--ndw-color-${type.name}${subName}${value}`.toLowerCase();
|
|
20
|
-
|
|
21
|
-
return `
|
|
22
|
-
<div class="content">
|
|
23
|
-
<div
|
|
24
|
-
class="block"
|
|
25
|
-
style="background-color: var(${variable})"
|
|
26
|
-
></div>
|
|
27
|
-
<p>${type.name}${subName}${value}</p>
|
|
28
|
-
<p>${style.getPropertyValue(variable)}</p>
|
|
29
|
-
<p>${variable}</p>
|
|
30
|
-
</div>
|
|
31
|
-
`;
|
|
32
|
-
})
|
|
33
|
-
.join('')}`;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function alphas(values: string[]): string {
|
|
37
|
-
const style = getComputedStyle(document.body);
|
|
38
|
-
|
|
39
|
-
return `
|
|
40
|
-
${values
|
|
41
|
-
.map((alpha) => {
|
|
42
|
-
const variable = `--ndw-alpha-${alpha.toLowerCase()}`;
|
|
43
|
-
|
|
44
|
-
return `
|
|
45
|
-
<div class="content">
|
|
46
|
-
<div
|
|
47
|
-
class="block"
|
|
48
|
-
style="background-color: var(--ndw-alpha-${alpha.toLowerCase()})"
|
|
49
|
-
></div>
|
|
50
|
-
<p>${alpha}</p>
|
|
51
|
-
<p>${style.getPropertyValue(variable)}</p>
|
|
52
|
-
<p>${variable}</p>
|
|
53
|
-
</div>
|
|
54
|
-
`;
|
|
55
|
-
})
|
|
56
|
-
.join('')}
|
|
57
|
-
`;
|
|
58
|
-
}
|