@igo2/sdg-core 1.1.0 → 2.0.0-next.2
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/README.md +62 -4
- package/fesm2022/igo2-sdg-core.mjs +0 -97
- package/fesm2022/igo2-sdg-core.mjs.map +1 -1
- package/package.json +5 -10
- package/src/_index.scss +0 -1
- package/src/style/_index.scss +0 -1
- package/src/tokens/_system.scss +4 -22
- package/types/igo2-sdg-core.d.ts +2 -0
- package/index.d.ts +0 -53
- package/src/style/overrides/_index.scss +0 -2
- package/src/style/overrides/igo2-lib/_index.scss +0 -9
- package/src/style/overrides/igo2-lib/_list.scss +0 -22
- package/src/style/overrides/igo2-lib/_panel.scss +0 -7
- package/src/style/overrides/igo2-lib/_search-bar.scss +0 -72
- package/src/style/overrides/material/_button.scss +0 -137
- package/src/style/overrides/material/_checkbox.scss +0 -120
- package/src/style/overrides/material/_chip.scss +0 -122
- package/src/style/overrides/material/_dialog.scss +0 -37
- package/src/style/overrides/material/_divider.scss +0 -11
- package/src/style/overrides/material/_expansion-panel.scss +0 -62
- package/src/style/overrides/material/_form-field.scss +0 -140
- package/src/style/overrides/material/_icon.scss +0 -34
- package/src/style/overrides/material/_index.scss +0 -27
- package/src/style/overrides/material/_radio-button.scss +0 -124
- package/src/style/overrides/material/_select.scss +0 -74
- package/src/style/overrides/material/_sidenav.scss +0 -9
- package/src/style/overrides/material/_tab.scss +0 -95
- package/src/theme/_index.scss +0 -1
- package/src/theme/material/_index.scss +0 -1
- package/src/theme/material/_theme.scss +0 -241
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
$blue-dark: var(--sdg-color-blue-dark);
|
|
5
|
-
$blue-piv: var(--sdg-color-blue-piv);
|
|
6
|
-
$grey-medium: var(--sdg-color-grey-medium);
|
|
7
|
-
|
|
8
|
-
$text-font: var(--sdg-font-family-text);
|
|
9
|
-
$text-line-height: var(--sdg-line-height-md);
|
|
10
|
-
$text-size: var(--sdg-font-size-md);
|
|
11
|
-
|
|
12
|
-
.mat-mdc-form-field {
|
|
13
|
-
@include mat.select-overrides(
|
|
14
|
-
(
|
|
15
|
-
enabled-trigger-text-color: $blue-dark,
|
|
16
|
-
enabled-arrow-color: $blue-piv,
|
|
17
|
-
//
|
|
18
|
-
disabled-trigger-text-color: $grey-medium,
|
|
19
|
-
disabled-arrow-color: var(--sdg-color-grey-normal),
|
|
20
|
-
//
|
|
21
|
-
placeholder-text-color: $grey-medium,
|
|
22
|
-
//
|
|
23
|
-
trigger-text-font: $text-font,
|
|
24
|
-
trigger-text-line-height: $text-line-height,
|
|
25
|
-
trigger-text-size: $text-size
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.mat-mdc-select-panel {
|
|
31
|
-
@include mat.select-overrides(
|
|
32
|
-
(
|
|
33
|
-
container-elevation-shadow: none,
|
|
34
|
-
//
|
|
35
|
-
panel-background-color: var(--sdg-color-background)
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
padding: 0 !important;
|
|
40
|
-
border: 1px solid $grey-medium;
|
|
41
|
-
border-radius: 0 !important;
|
|
42
|
-
|
|
43
|
-
.mat-mdc-option {
|
|
44
|
-
min-height: 0;
|
|
45
|
-
padding: 8px;
|
|
46
|
-
|
|
47
|
-
.mdc-list-item__primary-text {
|
|
48
|
-
color: $blue-dark;
|
|
49
|
-
font-family: $text-font;
|
|
50
|
-
font-size: $text-size;
|
|
51
|
-
line-height: $text-line-height;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:hover {
|
|
55
|
-
background-color: var(--sdg-color-grey-pale);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&-active {
|
|
59
|
-
background-color: var(--sdg-color-blue-pale) !important;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&::-webkit-scrollbar {
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
width: 8px;
|
|
66
|
-
height: auto;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&::-webkit-scrollbar-thumb {
|
|
70
|
-
background: $blue-piv;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mat-mdc-tab-group {
|
|
5
|
-
$blue-piv: var(--sdg-color-blue-piv);
|
|
6
|
-
$blue-dark: var(--sdg-color-blue-dark);
|
|
7
|
-
$grey-pale: var(--sdg-color-grey-pale);
|
|
8
|
-
|
|
9
|
-
.mat-mdc-tab-labels {
|
|
10
|
-
column-gap: 24px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.mdc-tab {
|
|
14
|
-
padding: 0 8px;
|
|
15
|
-
min-width: unset;
|
|
16
|
-
|
|
17
|
-
&--active {
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:hover:not(&--active) {
|
|
22
|
-
.mdc-tab-indicator {
|
|
23
|
-
border-bottom: 4px solid $grey-pale;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:focus {
|
|
28
|
-
.mdc-tab-indicator {
|
|
29
|
-
border: 2px solid var(--sdg-color-blue-light);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.mat-mdc-tab-header-pagination {
|
|
35
|
-
min-width: 40px;
|
|
36
|
-
|
|
37
|
-
&-after,
|
|
38
|
-
&-before {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&-after {
|
|
43
|
-
.mat-mdc-tab-header-pagination-chevron {
|
|
44
|
-
transform: rotate(45deg) translateX(-2px);
|
|
45
|
-
height: 10px;
|
|
46
|
-
width: 10px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&-before {
|
|
51
|
-
.mat-mdc-tab-header-pagination-chevron {
|
|
52
|
-
transform: rotate(225deg) translate(-2px, 2px);
|
|
53
|
-
height: 10px;
|
|
54
|
-
width: 10px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
background-color: $grey-pale;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:active {
|
|
63
|
-
background-color: var(--sdg-color-blue-pale);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@include mat.tabs-overrides(
|
|
68
|
-
(
|
|
69
|
-
active-indicator-color: $blue-piv,
|
|
70
|
-
active-indicator-height: 4px,
|
|
71
|
-
active-hover-indicator-color: $blue-piv,
|
|
72
|
-
active-hover-label-text-color: $blue-dark,
|
|
73
|
-
active-focus-indicator-color: $blue-piv,
|
|
74
|
-
active-focus-label-text-color: $blue-dark,
|
|
75
|
-
active-ripple-color: transparent,
|
|
76
|
-
active-label-text-color: $blue-dark,
|
|
77
|
-
//
|
|
78
|
-
inactive-ripple-color: transparent,
|
|
79
|
-
inactive-label-text-color: $blue-piv,
|
|
80
|
-
inactive-focus-label-text-color: $blue-piv,
|
|
81
|
-
inactive-hover-label-text-color: $blue-piv,
|
|
82
|
-
//
|
|
83
|
-
divider-color: var(--sdg-color-grey-light),
|
|
84
|
-
divider-height: 1px,
|
|
85
|
-
//
|
|
86
|
-
label-text-size: var(--sdg-font-size-md),
|
|
87
|
-
label-text-line-height: var(--sdg-line-height-md),
|
|
88
|
-
//
|
|
89
|
-
pagination-icon-color: $blue-dark,
|
|
90
|
-
//
|
|
91
|
-
container-height: 40px
|
|
92
|
-
)
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
}
|
package/src/theme/_index.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward './material' as material-*;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward './theme';
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use 'sass:color';
|
|
4
|
-
@use '../../tokens/sys-palettes';
|
|
5
|
-
@use '../../tokens/sys-typography';
|
|
6
|
-
|
|
7
|
-
// This file was generated by running 'ng generate @angular/material:theme-color'.
|
|
8
|
-
// Proceed with caution if making changes to this file.
|
|
9
|
-
// Note: Color palettes are generated from primary: #095797, error: #bb3a23
|
|
10
|
-
// But was adjusted manually to fit the _sys_palette.scss files
|
|
11
|
-
$_palettes: (
|
|
12
|
-
primary: (
|
|
13
|
-
0: #000000,
|
|
14
|
-
10: map.get(sys-palettes.$palettes, 'blue', 800),
|
|
15
|
-
20: map.get(sys-palettes.$palettes, 'blue', 700),
|
|
16
|
-
25: color.adjust(
|
|
17
|
-
map.get(sys-palettes.$palettes, 'blue', 700),
|
|
18
|
-
$lightness: 1%
|
|
19
|
-
),
|
|
20
|
-
30: color.adjust(
|
|
21
|
-
map.get(sys-palettes.$palettes, 'blue', 700),
|
|
22
|
-
$lightness: 2%
|
|
23
|
-
),
|
|
24
|
-
35: map.get(sys-palettes.$palettes, 'blue', 650),
|
|
25
|
-
// Button background
|
|
26
|
-
40: map.get(sys-palettes.$palettes, 'blue', 600),
|
|
27
|
-
50: map.get(sys-palettes.$palettes, 'blue', 550),
|
|
28
|
-
60: map.get(sys-palettes.$palettes, 'blue', 500),
|
|
29
|
-
70: map.get(sys-palettes.$palettes, 'blue', 400),
|
|
30
|
-
80: map.get(sys-palettes.$palettes, 'blue', 350),
|
|
31
|
-
90: map.get(sys-palettes.$palettes, 'blue', 300),
|
|
32
|
-
95: map.get(sys-palettes.$palettes, 'blue', 200),
|
|
33
|
-
98: map.get(sys-palettes.$palettes, 'blue', 150),
|
|
34
|
-
99: map.get(sys-palettes.$palettes, 'blue', 100),
|
|
35
|
-
100: #ffffff
|
|
36
|
-
),
|
|
37
|
-
secondary: (
|
|
38
|
-
0: #000000,
|
|
39
|
-
10: #061c34,
|
|
40
|
-
20: #1d314a,
|
|
41
|
-
25: #293d56,
|
|
42
|
-
30: #344861,
|
|
43
|
-
35: #40546e,
|
|
44
|
-
40: #4c607a,
|
|
45
|
-
50: #657894,
|
|
46
|
-
60: #7e92af,
|
|
47
|
-
70: #99adca,
|
|
48
|
-
80: #b4c8e7,
|
|
49
|
-
90: #d3e4ff,
|
|
50
|
-
95: #eaf1ff,
|
|
51
|
-
98: #ffffff,
|
|
52
|
-
99: #ffffff,
|
|
53
|
-
100: #ffffff
|
|
54
|
-
),
|
|
55
|
-
neutral: (
|
|
56
|
-
0: #000000,
|
|
57
|
-
10: #191c20,
|
|
58
|
-
20: #2e3035,
|
|
59
|
-
25: #393b40,
|
|
60
|
-
30: #44474c,
|
|
61
|
-
35: #505257,
|
|
62
|
-
40: #5c5e63,
|
|
63
|
-
50: #75777c,
|
|
64
|
-
60: #8f9196,
|
|
65
|
-
70: #a9abb1,
|
|
66
|
-
80: #c5c6cc,
|
|
67
|
-
90: #e1e2e8,
|
|
68
|
-
95: #f0f0f6,
|
|
69
|
-
98: #ffffff,
|
|
70
|
-
99: #ffffff,
|
|
71
|
-
100: #ffffff,
|
|
72
|
-
4: #0c0e12,
|
|
73
|
-
6: #111418,
|
|
74
|
-
12: #1d2024,
|
|
75
|
-
17: #272a2f,
|
|
76
|
-
22: #323539,
|
|
77
|
-
24: #37393e,
|
|
78
|
-
87: #d9dae0,
|
|
79
|
-
92: #e7e8ee,
|
|
80
|
-
94: #ededf4,
|
|
81
|
-
96: #f2f3f9
|
|
82
|
-
),
|
|
83
|
-
neutral-variant: (
|
|
84
|
-
0: #000000,
|
|
85
|
-
10: #161c24,
|
|
86
|
-
20: #2b3139,
|
|
87
|
-
25: #363c45,
|
|
88
|
-
30: #414750,
|
|
89
|
-
35: #4d535c,
|
|
90
|
-
40: #595f68,
|
|
91
|
-
50: #727781,
|
|
92
|
-
60: #8b919b,
|
|
93
|
-
70: #a6abb6,
|
|
94
|
-
80: #c1c7d2,
|
|
95
|
-
90: #dee3ee,
|
|
96
|
-
95: #ecf1fc,
|
|
97
|
-
98: #ffffff,
|
|
98
|
-
99: #ffffff,
|
|
99
|
-
100: #ffffff
|
|
100
|
-
),
|
|
101
|
-
error: (
|
|
102
|
-
0: #000000,
|
|
103
|
-
10: map.get(sys-palettes.$palettes, 'red', 800),
|
|
104
|
-
20: color.adjust(
|
|
105
|
-
map.get(sys-palettes.$palettes, 'red', 800),
|
|
106
|
-
$lightness: 2%
|
|
107
|
-
),
|
|
108
|
-
25: map.get(sys-palettes.$palettes, 'red', 700),
|
|
109
|
-
30: color.adjust(
|
|
110
|
-
map.get(sys-palettes.$palettes, 'red', 700),
|
|
111
|
-
$lightness: 2%
|
|
112
|
-
),
|
|
113
|
-
35: map.get(sys-palettes.$palettes, 'red', 550),
|
|
114
|
-
40: color.adjust(
|
|
115
|
-
map.get(sys-palettes.$palettes, 'red', 550),
|
|
116
|
-
$lightness: 2%
|
|
117
|
-
),
|
|
118
|
-
50: map.get(sys-palettes.$palettes, 'red', 500),
|
|
119
|
-
60: map.get(sys-palettes.$palettes, 'red', 400),
|
|
120
|
-
70: map.get(sys-palettes.$palettes, 'red', 300),
|
|
121
|
-
80: map.get(sys-palettes.$palettes, 'red', 200),
|
|
122
|
-
90: map.get(sys-palettes.$palettes, 'red', 50),
|
|
123
|
-
95: #ffede9,
|
|
124
|
-
98: #fff8f6,
|
|
125
|
-
99: #fffbff,
|
|
126
|
-
100: #ffffff
|
|
127
|
-
)
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
$_rest: (
|
|
131
|
-
secondary: map.get($_palettes, secondary),
|
|
132
|
-
neutral: map.get($_palettes, neutral),
|
|
133
|
-
neutral-variant: map.get($_palettes, neutral-variant),
|
|
134
|
-
error: map.get($_palettes, error)
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
$primary-palette: map.merge(map.get($_palettes, primary), $_rest);
|
|
138
|
-
|
|
139
|
-
@function _high-contrast-value($light, $dark, $theme-type) {
|
|
140
|
-
@if ($theme-type == light) {
|
|
141
|
-
@return $light;
|
|
142
|
-
}
|
|
143
|
-
@if ($theme-type == dark) {
|
|
144
|
-
@return $dark;
|
|
145
|
-
}
|
|
146
|
-
@if ($theme-type == color-scheme) {
|
|
147
|
-
@return light-dark(#{$light}, #{$dark});
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@error 'Unknown theme-type #{$theme-type}. Expected light, dark, or color-scheme';
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@mixin high-contrast-overrides($theme-type) {
|
|
154
|
-
@include mat.theme-overrides(
|
|
155
|
-
(
|
|
156
|
-
primary: _high-contrast-value(#002d54, #e9f0ff, $theme-type),
|
|
157
|
-
on-primary: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
158
|
-
primary-container: _high-contrast-value(#004b85, #9ac5ff, $theme-type),
|
|
159
|
-
on-primary-container: _high-contrast-value(#ffffff, #000c1c, $theme-type),
|
|
160
|
-
inverse-primary: _high-contrast-value(#a2c9ff, #004982, $theme-type),
|
|
161
|
-
primary-fixed: _high-contrast-value(#004b85, #d3e4ff, $theme-type),
|
|
162
|
-
primary-fixed-dim: _high-contrast-value(#00345f, #a2c9ff, $theme-type),
|
|
163
|
-
on-primary-fixed: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
164
|
-
on-primary-fixed-variant: _high-contrast-value(
|
|
165
|
-
#ffffff,
|
|
166
|
-
#001226,
|
|
167
|
-
$theme-type
|
|
168
|
-
),
|
|
169
|
-
secondary: _high-contrast-value(#192d45, #e9f0ff, $theme-type),
|
|
170
|
-
on-secondary: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
171
|
-
secondary-container: _high-contrast-value(#374a64, #b0c4e3, $theme-type),
|
|
172
|
-
on-secondary-container: _high-contrast-value(
|
|
173
|
-
#ffffff,
|
|
174
|
-
#000c1c,
|
|
175
|
-
$theme-type
|
|
176
|
-
),
|
|
177
|
-
secondary-fixed: _high-contrast-value(#374a64, #d3e4ff, $theme-type),
|
|
178
|
-
secondary-fixed-dim: _high-contrast-value(#20344c, #b4c8e7, $theme-type),
|
|
179
|
-
on-secondary-fixed: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
180
|
-
on-secondary-fixed-variant: _high-contrast-value(
|
|
181
|
-
#ffffff,
|
|
182
|
-
#001226,
|
|
183
|
-
$theme-type
|
|
184
|
-
),
|
|
185
|
-
tertiary: _high-contrast-value(#46135a, #feeaff, $theme-type),
|
|
186
|
-
on-tertiary: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
187
|
-
tertiary-container: _high-contrast-value(#67337a, #eaadfd, $theme-type),
|
|
188
|
-
on-tertiary-container: _high-contrast-value(#ffffff, #190025, $theme-type),
|
|
189
|
-
tertiary-fixed: _high-contrast-value(#67337a, #f9d8ff, $theme-type),
|
|
190
|
-
tertiary-fixed-dim: _high-contrast-value(#4e1b61, #edb1ff, $theme-type),
|
|
191
|
-
on-tertiary-fixed: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
192
|
-
on-tertiary-fixed-variant: _high-contrast-value(
|
|
193
|
-
#ffffff,
|
|
194
|
-
#220031,
|
|
195
|
-
$theme-type
|
|
196
|
-
),
|
|
197
|
-
background: _high-contrast-value(#f8f9ff, #111418, $theme-type),
|
|
198
|
-
on-background: _high-contrast-value(#191c20, #e1e2e8, $theme-type),
|
|
199
|
-
surface: _high-contrast-value(#f8f9ff, #111418, $theme-type),
|
|
200
|
-
surface-dim: _high-contrast-value(#b7b8be, #111418, $theme-type),
|
|
201
|
-
surface-bright: _high-contrast-value(#f8f9ff, #4e5055, $theme-type),
|
|
202
|
-
surface-container-low: _high-contrast-value(#f0f0f6, #1d2024, $theme-type),
|
|
203
|
-
surface-container-lowest: _high-contrast-value(
|
|
204
|
-
#ffffff,
|
|
205
|
-
#000000,
|
|
206
|
-
$theme-type
|
|
207
|
-
),
|
|
208
|
-
surface-container: _high-contrast-value(#e1e2e8, #2e3035, $theme-type),
|
|
209
|
-
surface-container-high: _high-contrast-value(
|
|
210
|
-
#d3d4da,
|
|
211
|
-
#393b40,
|
|
212
|
-
$theme-type
|
|
213
|
-
),
|
|
214
|
-
surface-container-highest: _high-contrast-value(
|
|
215
|
-
#c5c6cc,
|
|
216
|
-
#44474c,
|
|
217
|
-
$theme-type
|
|
218
|
-
),
|
|
219
|
-
on-surface: _high-contrast-value(#000000, #ffffff, $theme-type),
|
|
220
|
-
shadow: _high-contrast-value(#000000, #000000, $theme-type),
|
|
221
|
-
scrim: _high-contrast-value(#000000, #000000, $theme-type),
|
|
222
|
-
surface-tint: _high-contrast-value(#1c60a1, #a2c9ff, $theme-type),
|
|
223
|
-
inverse-surface: _high-contrast-value(#2e3035, #e1e2e8, $theme-type),
|
|
224
|
-
inverse-on-surface: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
225
|
-
outline: _high-contrast-value(#272c35, #ebf0fc, $theme-type),
|
|
226
|
-
outline-variant: _high-contrast-value(#444953, #bec3ce, $theme-type),
|
|
227
|
-
error: _high-contrast-value(#5d0900, #ffece8, $theme-type),
|
|
228
|
-
on-error: _high-contrast-value(#ffffff, #000000, $theme-type),
|
|
229
|
-
error-container: _high-contrast-value(#901a06, #ffaf9e, $theme-type),
|
|
230
|
-
on-error-container: _high-contrast-value(#ffffff, #200100, $theme-type),
|
|
231
|
-
surface-variant: _high-contrast-value(#dee3ee, #414750, $theme-type),
|
|
232
|
-
on-surface-variant: _high-contrast-value(#000000, #ffffff, $theme-type)
|
|
233
|
-
)
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
$theme: (
|
|
238
|
-
color: $primary-palette,
|
|
239
|
-
typography: var(--sdg-font-family-text),
|
|
240
|
-
density: 0
|
|
241
|
-
);
|