@evotor-dev/ui-kit 6.4.0 → 6.5.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 (33) hide show
  1. package/README.md +0 -7
  2. package/bundles/evotor-dev-ui-kit.umd.js +14 -14
  3. package/bundles/evotor-dev-ui-kit.umd.js.map +1 -1
  4. package/esm2015/lib/components/evo-autocomplete/components/evo-autocomplete.component.js +1 -1
  5. package/esm2015/lib/components/evo-badge/evo-badge.component.js +1 -1
  6. package/esm2015/lib/components/evo-banner/evo-banner.component.js +1 -1
  7. package/esm2015/lib/components/evo-button/evo-button.component.js +1 -1
  8. package/esm2015/lib/components/evo-counter/evo-counter.component.js +1 -1
  9. package/esm2015/lib/components/evo-datepicker/evo-datepicker.component.js +1 -1
  10. package/esm2015/lib/components/evo-input/evo-input.component.js +1 -1
  11. package/esm2015/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.js +1 -1
  12. package/esm2015/lib/components/evo-popover/evo-popover.component.js +1 -1
  13. package/esm2015/lib/components/evo-select/evo-select.component.js +1 -1
  14. package/esm2015/lib/components/evo-sidebar/evo-sidebar-header/evo-sidebar-header.component.js +1 -1
  15. package/esm2015/lib/components/evo-submenu/evo-submenu.component.js +1 -1
  16. package/esm2015/lib/components/evo-switcher/evo-switcher.component.js +1 -1
  17. package/esm2015/lib/components/evo-textarea/evo-textarea.component.js +1 -1
  18. package/fesm2015/evotor-dev-ui-kit.js +14 -14
  19. package/fesm2015/evotor-dev-ui-kit.js.map +1 -1
  20. package/package.json +1 -1
  21. package/styles/components/evo-button.scss +1 -1
  22. package/styles/components/evo-title.scss +1 -1
  23. package/styles/globals.scss +6 -1
  24. package/styles/main.scss +6 -1
  25. package/styles/mixins.scss +2 -2
  26. package/styles/partials/_typography.scss +123 -0
  27. package/styles/partials/fonts.scss +2 -0
  28. package/styles/partials/typography/_typography-caption-mixin.scss +26 -0
  29. package/styles/partials/typography/_typography-field-typo-mixin.scss +36 -0
  30. package/styles/partials/typography/_typography-header-mixin.scss +62 -0
  31. package/styles/partials/typography/_typography-header-mobile-mixin.scss +34 -0
  32. package/styles/partials/typography/_typography-paragraph-mixin.scss +41 -0
  33. package/styles/partials/typography/_typography-subtitle-mixin.scss +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evotor-dev/ui-kit",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=12.0.0 <13.0.0",
6
6
  "@angular/core": ">=12.0.0 <13.0.0",
@@ -13,7 +13,7 @@ $dot-size: 10px;
13
13
  color: $color-white;
14
14
  font-weight: 500;
15
15
  font-size: 16px;
16
- font-family: $font-secondary;
16
+ font-family: var(--font-secondary);
17
17
  line-height: 1;
18
18
  white-space: nowrap;
19
19
  text-align: center;
@@ -3,7 +3,7 @@
3
3
  .evo-title {
4
4
  color: $color-text;
5
5
  font-weight: 700;
6
- font-family: $font-secondary;
6
+ font-family: var(--font-secondary);
7
7
 
8
8
  &_h1 {
9
9
  @include h1;
@@ -1,14 +1,19 @@
1
+ @import "variables";
2
+
1
3
  * {
2
4
  box-sizing: border-box;
3
5
  }
4
6
 
5
7
  body {
8
+ --font: 'Noto Sans', #{$font-fallback};
9
+ --font-secondary: #{$font-secondary};
10
+
6
11
  min-width: 320px;
7
12
  overflow-x: hidden;
8
13
  color: $color-text;
9
14
  font-weight: 400;
10
15
  font-size: 14px;
11
- font-family: $font;
16
+ font-family: var(--font);
12
17
  line-height: 1.4;
13
18
  background-color: $color-white;
14
19
  -moz-osx-font-smoothing: grayscale;
package/styles/main.scss CHANGED
@@ -3,7 +3,12 @@
3
3
  @import 'variables.scss';
4
4
  @import 'mixins.scss';
5
5
  @import 'globals.scss';
6
- /*components*/
6
+
7
+ /* partials*/
8
+ @import './partials/fonts';
9
+ @import './partials/typography';
10
+
11
+ /* components*/
7
12
  @import './components/evo-grid.scss';
8
13
  @import './components/evo-alert.scss';
9
14
  @import './components/evo-button-loader.scss';
@@ -75,7 +75,7 @@
75
75
  @mixin title {
76
76
  color: #333F48;
77
77
  font-weight: 700;
78
- font-family: $font-secondary;
78
+ font-family: var(--font-secondary);
79
79
  }
80
80
 
81
81
  @mixin h1 {
@@ -154,7 +154,7 @@
154
154
  color: $color-text;
155
155
  font-weight: normal;
156
156
  font-size: var(--evo-input-font-size);
157
- font-family: $font;
157
+ font-family: var(--font);
158
158
  white-space: nowrap;
159
159
  background-color: $color-white;
160
160
  border: 1px solid $color-disabled;
@@ -0,0 +1,123 @@
1
+ @import '../mixins';
2
+ @import './typography/typography-caption-mixin';
3
+ @import './typography/typography-header-mixin';
4
+ @import './typography/typography-header-mobile-mixin';
5
+ @import './typography/typography-paragraph-mixin';
6
+ @import './typography/typography-field-typo-mixin';
7
+ @import './typography/typography-subtitle-mixin';
8
+
9
+ .evo-field-typo {
10
+ &_label {
11
+ @include evo-field-typo(label);
12
+ }
13
+
14
+ &_placeholder {
15
+ @include evo-field-typo(placeholder);
16
+ }
17
+
18
+ &_placeholder-bold {
19
+ @include evo-field-typo(placeholder-bold);
20
+ }
21
+
22
+ &_hint {
23
+ @include evo-field-typo(hint);
24
+ }
25
+
26
+ &_error {
27
+ @include evo-field-typo(error);
28
+ }
29
+ }
30
+
31
+ .evo-paragraph {
32
+ &_p1 {
33
+ @include evo-paragraph(p1);
34
+ }
35
+
36
+ &_p2 {
37
+ @include evo-paragraph(p2);
38
+ }
39
+
40
+ &_p3 {
41
+ @include evo-paragraph(p3);
42
+ }
43
+
44
+ &_p4 {
45
+ @include evo-paragraph(p4);
46
+ }
47
+
48
+ &_p5 {
49
+ @include evo-paragraph(p5);
50
+ }
51
+
52
+ &_tips {
53
+ @include evo-paragraph(tips);
54
+ }
55
+ }
56
+
57
+ .evo-caption {
58
+ &_c1 {
59
+ @include evo-caption(c1);
60
+ }
61
+
62
+ &_c2 {
63
+ @include evo-caption(c2);
64
+ }
65
+
66
+ &_c3 {
67
+ @include evo-caption(c3);
68
+ }
69
+ }
70
+
71
+ .evo-subtitle {
72
+ &_s1 {
73
+ @include evo-subtitle(s1);
74
+ }
75
+
76
+ &_s2 {
77
+ @include evo-subtitle(s2);
78
+ }
79
+ }
80
+
81
+ .evo-header {
82
+ &_h1 {
83
+ @include evo-header(h1);
84
+ }
85
+
86
+ &_h2 {
87
+ @include evo-header(h2);
88
+ }
89
+
90
+ &_h3 {
91
+ @include evo-header(h3);
92
+ }
93
+
94
+ &_h4 {
95
+ @include evo-header(h4);
96
+ }
97
+
98
+ &_h5 {
99
+ @include evo-header(h5);
100
+ }
101
+ }
102
+
103
+ .evo-header-mobile {
104
+ &_h1 {
105
+ @include evo-header-mobile(h1-mobile);
106
+ }
107
+
108
+ &_h2 {
109
+ @include evo-header-mobile(h2-mobile);
110
+ }
111
+
112
+ &_h3 {
113
+ @include evo-header-mobile(h3-mobile);
114
+ }
115
+
116
+ &_h4 {
117
+ @include evo-header-mobile(h4-mobile);
118
+ }
119
+
120
+ &_h5 {
121
+ @include evo-header-mobile(h5-mobile);
122
+ }
123
+ }
@@ -0,0 +1,2 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Ubuntu:400,400i,500,500i,700,700i&display=swap');
2
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
@@ -0,0 +1,26 @@
1
+ @use "sass:list";
2
+
3
+ $evo-caption-styles: c1, c2, c3;
4
+
5
+ @mixin evo-caption($style) {
6
+ @if not list.index($evo-caption-styles, $style) {
7
+ @error "#{$style} is not a valid caption style. Use one of #{$evo-caption-styles}";
8
+ }
9
+
10
+ font-family: var(--font);
11
+ font-style: normal;
12
+
13
+ @if $style == c1 {
14
+ font-size: 12px;
15
+ line-height: 18px;
16
+ font-weight: 400;
17
+ } @else if $style == c2 {
18
+ font-size: 12px;
19
+ line-height: 18px;
20
+ font-weight: 600;
21
+ } @else if $style == c3 {
22
+ font-size: 12px;
23
+ line-height: 18px;
24
+ font-weight: 700;
25
+ }
26
+ }
@@ -0,0 +1,36 @@
1
+ @use "sass:list";
2
+
3
+ $evo-field-typo-styles: label, placeholder, placeholder-bold, hint, error;
4
+
5
+ @mixin evo-field-typo($style) {
6
+ @if not list.index($evo-field-typo-styles, $style) {
7
+ @error "#{$style} is not a valid field typo style. Use one of #{$evo-field-typo-styles}";
8
+ }
9
+
10
+ font-family: var(--font);
11
+ font-style: normal;
12
+
13
+ @if $style == label {
14
+ font-size: 14px;
15
+ line-height: 22px;
16
+ font-weight: 400;
17
+ } @else if $style == placeholder {
18
+ font-size: 16px;
19
+ line-height: 24px;
20
+ font-weight: 400;
21
+ } @else if $style == placeholder-bold {
22
+ font-size: 16px;
23
+ line-height: 24px;
24
+ font-weight: 600;
25
+ } @else if $style == hint {
26
+ font-size: 14px;
27
+ line-height: 22px;
28
+ font-weight: 400;
29
+ font-style: italic;
30
+ } @else if $style == error {
31
+ font-size: 14px;
32
+ line-height: 22px;
33
+ font-weight: 400;
34
+ font-style: italic;
35
+ }
36
+ }
@@ -0,0 +1,62 @@
1
+ @use "sass:list";
2
+ @import "../../mixins";
3
+ @import "./typography-header-mobile-mixin";
4
+
5
+ $evo-header-styles: h1, h2, h3, h4, h5;
6
+
7
+ @mixin evo-header($style, $noMobile: false) {
8
+ @if not list.index($evo-header-styles, $style) {
9
+ @error "#{$style} is not a valid header style. Use one of #{$evo-header-styles}";
10
+ }
11
+
12
+ font-family: var(--font-secondary);
13
+ font-style: normal;
14
+ font-weight: 700;
15
+
16
+ @if $style == h1 {
17
+ font-size: 36px;
18
+ line-height: 44px;
19
+
20
+ @if not $noMobile {
21
+ @include media-mobile {
22
+ @include evo-header-mobile(h1-mobile);
23
+ }
24
+ }
25
+ } @else if $style == h2 {
26
+ font-size: 30px;
27
+ line-height: 38px;
28
+
29
+ @if not $noMobile {
30
+ @include media-mobile {
31
+ @include evo-header-mobile(h2-mobile);
32
+ }
33
+ }
34
+ } @else if $style == h3 {
35
+ font-size: 24px;
36
+ line-height: 32px;
37
+
38
+ @if not $noMobile {
39
+ @include media-mobile {
40
+ @include evo-header-mobile(h3-mobile);
41
+ }
42
+ }
43
+ } @else if $style == h4 {
44
+ font-size: 18px;
45
+ line-height: 26px;
46
+
47
+ @if not $noMobile {
48
+ @include media-mobile {
49
+ @include evo-header-mobile(h4-mobile);
50
+ }
51
+ }
52
+ } @else if $style == h5 {
53
+ font-size: 16px;
54
+ line-height: 24px;
55
+
56
+ @if not $noMobile {
57
+ @include media-mobile {
58
+ @include evo-header-mobile(h5-mobile);
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,34 @@
1
+ @use "sass:list";
2
+
3
+ $evo-header-mobile-styles: h1-mobile, h2-mobile, h3-mobile, h4-mobile, h5-mobile;
4
+
5
+ @mixin evo-header-mobile($style) {
6
+ @if not list.index($evo-header-mobile-styles, $style) {
7
+ @error "#{$style} is not a valid header mobile style. Use one of #{$evo-header-mobile-styles}";
8
+ }
9
+
10
+ font-family: var(--font-secondary);
11
+ font-style: normal;
12
+
13
+ @if $style == h1-mobile {
14
+ font-weight: 700;
15
+ font-size: 30px;
16
+ line-height: 38px;
17
+ } @else if $style == h2-mobile {
18
+ font-weight: 700;
19
+ font-size: 24px;
20
+ line-height: 32px;
21
+ } @else if $style == h3-mobile {
22
+ font-weight: 700;
23
+ font-size: 20px;
24
+ line-height: 28px;
25
+ } @else if $style == h4-mobile {
26
+ font-weight: 700;
27
+ font-size: 16px;
28
+ line-height: 24px;
29
+ } @else if $style == h5-mobile {
30
+ font-weight: 700;
31
+ font-size: 14px;
32
+ line-height: 22px;
33
+ }
34
+ }
@@ -0,0 +1,41 @@
1
+ @use "sass:list";
2
+ @import "../../variables";
3
+
4
+ $evo-paragraph-styles: p1, p2, p3, p4, p5, tips;
5
+
6
+ @mixin evo-paragraph($style) {
7
+ @if not list.index($evo-paragraph-styles, $style) {
8
+ @error "#{$style} is not a valid paragraph style. Use one of #{$evo-paragraph-styles}";
9
+ }
10
+
11
+ font-family: var(--font);
12
+ font-style: normal;
13
+
14
+ @if $style == p1 {
15
+ font-size: 14px;
16
+ line-height: 22px;
17
+ font-weight: 400;
18
+ } @else if $style == p2 {
19
+ font-size: 14px;
20
+ line-height: 22px;
21
+ font-weight: 600;
22
+ } @else if $style == p3 {
23
+ font-size: 14px;
24
+ line-height: 24px;
25
+ font-weight: 400;
26
+ } @else if $style == p4 {
27
+ font-size: 14px;
28
+ line-height: 24px;
29
+ font-weight: 600;
30
+ } @else if $style == p5 {
31
+ font-size: 16px;
32
+ line-height: 24px;
33
+ font-weight: 600;
34
+ } @else if $style == tips {
35
+ font-size: 12px;
36
+ line-height: 18px;
37
+ font-weight: 400;
38
+ font-style: italic;
39
+ color: $color-text-grey;
40
+ }
41
+ }
@@ -0,0 +1,20 @@
1
+ @use "sass:list";
2
+
3
+ $evo-subtitle-styles: s1, s2;
4
+
5
+ @mixin evo-subtitle($style) {
6
+ @if not list.index($evo-subtitle-styles, $style) {
7
+ @error "#{$style} is not a valid caption style. Use one of #{$evo-subtitle-styles}";
8
+ }
9
+
10
+ font-family: var(--font);
11
+ font-style: normal;
12
+ font-size: 18px;
13
+ line-height: 26px;
14
+
15
+ @if $style == s1 {
16
+ font-weight: 400;
17
+ } @else if $style == s2 {
18
+ font-weight: 600;
19
+ }
20
+ }