@testgorilla/tgo-ui 2.3.0 → 2.3.3
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/components/autocomplete/autocomplete.component.d.ts +11 -5
- package/components/autocomplete/autocomplete.component.module.d.ts +2 -1
- package/components/checkbox/checkbox.component.d.ts +20 -7
- package/components/checkbox/checkbox.component.module.d.ts +4 -1
- package/components/dropdown/dropdown.component.d.ts +12 -6
- package/components/dropdown/dropdown.component.module.d.ts +2 -1
- package/components/field/field.component.d.ts +11 -5
- package/components/field/field.component.module.d.ts +2 -1
- package/components/phone-input/phone-input.component.d.ts +8 -2
- package/components/phone-input/phone-input.component.module.d.ts +2 -1
- package/components/validation-error/validation-error.component.d.ts +27 -0
- package/components/validation-error/validation-error.model.d.ts +1 -0
- package/components/validation-error/validation-error.module.d.ts +10 -0
- package/esm2022/assets/i18n/en.json +8 -0
- package/esm2022/components/autocomplete/autocomplete.component.mjs +39 -30
- package/esm2022/components/autocomplete/autocomplete.component.module.mjs +7 -3
- package/esm2022/components/checkbox/checkbox.component.mjs +39 -22
- package/esm2022/components/checkbox/checkbox.component.module.mjs +7 -4
- package/esm2022/components/dropdown/dropdown.component.mjs +34 -27
- package/esm2022/components/dropdown/dropdown.component.module.mjs +7 -3
- package/esm2022/components/field/field.component.mjs +35 -29
- package/esm2022/components/field/field.component.module.mjs +7 -3
- package/esm2022/components/navbar/mobile-navbar-side-sheet/mobile-navbar-side-sheet.component.mjs +3 -3
- package/esm2022/components/phone-input/phone-input.component.mjs +23 -7
- package/esm2022/components/phone-input/phone-input.component.module.mjs +7 -3
- package/esm2022/components/scale/scale.component.mjs +2 -2
- package/esm2022/components/segmented-button/segmented-button.component.mjs +2 -2
- package/esm2022/components/validation-error/validation-error.component.mjs +59 -0
- package/esm2022/components/validation-error/validation-error.model.mjs +2 -0
- package/esm2022/components/validation-error/validation-error.module.mjs +20 -0
- package/fesm2022/testgorilla-tgo-ui.mjs +498 -361
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/i18n/en.json +8 -0
- package/src/theme/_font.scss +46 -16
- package/src/theme/_lib-styles.scss +2 -1
- package/src/theme/_typography.scss +5 -5
- package/src/theme/theme.scss +2 -1
package/package.json
CHANGED
package/src/assets/i18n/en.json
CHANGED
|
@@ -83,5 +83,13 @@
|
|
|
83
83
|
"SPECIAL_CHARACTER": "Contains at least one special character",
|
|
84
84
|
"CHARACTERS": "Contains at least 12 characters",
|
|
85
85
|
"PASSWORD_PLACEHOLDER": "Password"
|
|
86
|
+
},
|
|
87
|
+
"ERRORS": {
|
|
88
|
+
"REQUIRED": "This field is required",
|
|
89
|
+
"REQUIRED_FIELD": "This field is required - ({{label}})",
|
|
90
|
+
"MAX_LENGTH": "Please enter a value with a maximum length of ({{maxlength}}) characters",
|
|
91
|
+
"MIN_LENGTH": "Please enter a value with a minimum length of ({{maxlength}}) characters",
|
|
92
|
+
"MAX": "Please enter a value with a maximum value of ({{max}})",
|
|
93
|
+
"MIN": "Please enter a value with a minimum value of ({{min}})"
|
|
86
94
|
}
|
|
87
95
|
}
|
package/src/theme/_font.scss
CHANGED
|
@@ -1,65 +1,95 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-display: swap;
|
|
3
|
-
font-
|
|
3
|
+
font-weight: 900;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-family: 'ModernGothic';
|
|
4
6
|
src: url('./fonts/ModernGothic-Black.otf') format('truetype');
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
@font-face {
|
|
8
10
|
font-display: swap;
|
|
9
|
-
font-
|
|
11
|
+
font-weight: 900;
|
|
12
|
+
font-style: italic;
|
|
13
|
+
font-family: 'ModernGothic';
|
|
10
14
|
src: url('./fonts/ModernGothic-BlackItalic.otf') format('truetype');
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
@font-face {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-style: normal;
|
|
14
20
|
font-display: swap;
|
|
15
|
-
font-family: 'ModernGothic
|
|
21
|
+
font-family: 'ModernGothic';
|
|
16
22
|
src: url('./fonts/ModernGothic-Bold.otf') format('truetype');
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
@font-face {
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-style: italic;
|
|
20
28
|
font-display: swap;
|
|
21
|
-
font-family: 'ModernGothic
|
|
29
|
+
font-family: 'ModernGothic';
|
|
22
30
|
src: url('./fonts/ModernGothic-BoldItalic.otf') format('truetype');
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
@font-face {
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
font-style: normal;
|
|
26
36
|
font-display: swap;
|
|
27
|
-
font-family: 'ModernGothic
|
|
28
|
-
src: url('./fonts/ModernGothic-
|
|
37
|
+
font-family: 'ModernGothic';
|
|
38
|
+
src: url('./fonts/ModernGothic-Medium.otf') format('truetype');
|
|
29
39
|
}
|
|
30
40
|
|
|
31
41
|
@font-face {
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
font-style: italic;
|
|
32
44
|
font-display: swap;
|
|
33
|
-
font-family: 'ModernGothic
|
|
34
|
-
src: url('./fonts/ModernGothic-
|
|
45
|
+
font-family: 'ModernGothic';
|
|
46
|
+
src: url('./fonts/ModernGothic-MediumItalic.otf') format('truetype');
|
|
35
47
|
}
|
|
36
48
|
|
|
37
49
|
@font-face {
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-style: normal;
|
|
38
52
|
font-display: swap;
|
|
39
|
-
font-family: 'ModernGothic
|
|
40
|
-
src: url('./fonts/ModernGothic-
|
|
53
|
+
font-family: 'ModernGothic';
|
|
54
|
+
src: url('./fonts/ModernGothic-Regular.otf') format('truetype');
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
@font-face {
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
font-style: italic;
|
|
44
60
|
font-display: swap;
|
|
45
|
-
font-family: 'ModernGothic
|
|
46
|
-
src: url('./fonts/ModernGothic-
|
|
61
|
+
font-family: 'ModernGothic';
|
|
62
|
+
src: url('./fonts/ModernGothic-Italic.otf') format('truetype');
|
|
47
63
|
}
|
|
48
64
|
|
|
49
65
|
@font-face {
|
|
66
|
+
font-weight: 300;
|
|
67
|
+
font-style: normal;
|
|
50
68
|
font-display: swap;
|
|
51
|
-
font-family: 'ModernGothic
|
|
52
|
-
src: url('./fonts/ModernGothic-
|
|
69
|
+
font-family: 'ModernGothic';
|
|
70
|
+
src: url('./fonts/ModernGothic-Light.otf') format('truetype');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@font-face {
|
|
74
|
+
font-weight: 300;
|
|
75
|
+
font-style: italic;
|
|
76
|
+
font-display: swap;
|
|
77
|
+
font-family: 'ModernGothic';
|
|
78
|
+
src: url('./fonts/ModernGothic-LightItalic.otf') format('truetype');
|
|
53
79
|
}
|
|
54
80
|
|
|
55
81
|
@font-face {
|
|
82
|
+
font-weight: 200;
|
|
83
|
+
font-style: normal;
|
|
56
84
|
font-display: swap;
|
|
57
|
-
font-family: 'ModernGothic
|
|
85
|
+
font-family: 'ModernGothic';
|
|
58
86
|
src: url('./fonts/ModernGothic-Thin.otf') format('truetype');
|
|
59
87
|
}
|
|
60
88
|
|
|
61
89
|
@font-face {
|
|
90
|
+
font-weight: 200;
|
|
91
|
+
font-style: italic;
|
|
62
92
|
font-display: swap;
|
|
63
|
-
font-family: 'ModernGothic
|
|
93
|
+
font-family: 'ModernGothic';
|
|
64
94
|
src: url('./fonts/ModernGothic-ThinItalic.otf') format('truetype');
|
|
65
95
|
}
|
|
@@ -166,7 +166,7 @@ caption,
|
|
|
166
166
|
font-weight: 400;
|
|
167
167
|
|
|
168
168
|
&.black {
|
|
169
|
-
font-family: "ModernGothic
|
|
169
|
+
font-family: "ModernGothic", sans-serif!important;
|
|
170
170
|
font-weight: 900;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -177,7 +177,7 @@ caption,
|
|
|
177
177
|
font-size: 24px;
|
|
178
178
|
line-height: 30px;
|
|
179
179
|
font-weight: 900;
|
|
180
|
-
font-family: "ModernGothic
|
|
180
|
+
font-family: "ModernGothic", sans-serif!important;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
h3,
|
|
@@ -188,7 +188,7 @@ caption,
|
|
|
188
188
|
color: $black;
|
|
189
189
|
|
|
190
190
|
&.bold {
|
|
191
|
-
font-family: "ModernGothic
|
|
191
|
+
font-family: "ModernGothic", sans-serif!important;
|
|
192
192
|
font-weight: 700;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -199,7 +199,7 @@ caption,
|
|
|
199
199
|
line-height: 20px;
|
|
200
200
|
font-weight: 700;
|
|
201
201
|
color: $black;
|
|
202
|
-
font-family: "ModernGothic
|
|
202
|
+
font-family: "ModernGothic", sans-serif!important;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
h5,
|
|
@@ -208,7 +208,7 @@ caption,
|
|
|
208
208
|
line-height: 18px;
|
|
209
209
|
font-weight: 700;
|
|
210
210
|
color: $black;
|
|
211
|
-
font-family: "ModernGothic
|
|
211
|
+
font-family: "ModernGothic", sans-serif!important;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.body-large {
|
package/src/theme/theme.scss
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
*[theme="dark"], *[theme="light"] {
|
|
18
18
|
* {
|
|
19
|
-
font-family: "ModernGothic
|
|
19
|
+
font-family: "ModernGothic", sans-serif;
|
|
20
|
+
font-weight: 400;
|
|
20
21
|
|
|
21
22
|
.mat-mdc-elevation-specific.mat-elevation-z8 {
|
|
22
23
|
box-shadow: $box-shadow-modal!important;
|