@evotor-dev/ui-kit 6.5.0 → 6.5.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 (47) hide show
  1. package/bundles/evotor-dev-ui-kit.umd.js +88 -101
  2. package/bundles/evotor-dev-ui-kit.umd.js.map +1 -1
  3. package/esm2015/lib/components/evo-autocomplete/components/evo-autocomplete.component.js +1 -1
  4. package/esm2015/lib/components/evo-badge/evo-badge.component.js +1 -1
  5. package/esm2015/lib/components/evo-banner/evo-banner.component.js +7 -10
  6. package/esm2015/lib/components/evo-banner/evo-banner.module.js +7 -11
  7. package/esm2015/lib/components/evo-button/evo-button.component.js +1 -1
  8. package/esm2015/lib/components/evo-chip/evo-chip.component.js +1 -1
  9. package/esm2015/lib/components/evo-control-error/evo-control-error.component.js +1 -1
  10. package/esm2015/lib/components/evo-control-label/evo-control-label.component.js +1 -1
  11. package/esm2015/lib/components/evo-counter/evo-counter.component.js +1 -1
  12. package/esm2015/lib/components/evo-datepicker/evo-datepicker.component.js +1 -1
  13. package/esm2015/lib/components/evo-icon/evo-icon.component.js +15 -11
  14. package/esm2015/lib/components/evo-icon-button/evo-icon-button.component.js +1 -1
  15. package/esm2015/lib/components/evo-input/evo-input.component.js +1 -1
  16. package/esm2015/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.js +1 -1
  17. package/esm2015/lib/components/evo-loader/evo-loader.component.js +4 -1
  18. package/esm2015/lib/components/evo-popover/evo-popover.component.js +1 -1
  19. package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar/evo-segmented-bar.component.js +6 -5
  20. package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar-button/evo-segmented-bar-button.component.js +4 -1
  21. package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar.module.js +9 -24
  22. package/esm2015/lib/components/evo-select/evo-select.component.js +1 -1
  23. package/esm2015/lib/components/evo-sidebar/evo-sidebar-header/evo-sidebar-header.component.js +1 -1
  24. package/esm2015/lib/components/evo-submenu/evo-submenu.component.js +19 -16
  25. package/esm2015/lib/components/evo-submenu/evo-submenu.module.js +8 -18
  26. package/esm2015/lib/components/evo-switcher/evo-switcher.component.js +1 -1
  27. package/esm2015/lib/components/evo-textarea/evo-textarea.component.js +1 -1
  28. package/fesm2015/evotor-dev-ui-kit.js +85 -103
  29. package/fesm2015/evotor-dev-ui-kit.js.map +1 -1
  30. package/lib/components/evo-icon/evo-icon.component.d.ts +7 -7
  31. package/package.json +1 -1
  32. package/styles/components/evo-button.scss +1 -1
  33. package/styles/components/evo-chip.scss +1 -3
  34. package/styles/components/evo-title.scss +1 -1
  35. package/styles/globals.scss +15 -9
  36. package/styles/mixins/_evo-input-mixins.scss +74 -0
  37. package/styles/{partials/typography/_typography-caption-mixin.scss → mixins/_evo-text-caption-mixin.scss} +5 -5
  38. package/styles/{partials/typography/_typography-field-typo-mixin.scss → mixins/_evo-text-field-mixin.scss} +2 -2
  39. package/styles/{partials/typography/_typography-header-mixin.scss → mixins/_evo-text-header-mixin.scss} +17 -17
  40. package/styles/{partials/typography/_typography-header-mobile-mixin.scss → mixins/_evo-text-mobile-header-mixin.scss} +10 -10
  41. package/styles/{partials/typography/_typography-paragraph-mixin.scss → mixins/_evo-text-paragraph-mixin.scss} +5 -12
  42. package/styles/{partials/typography/_typography-subtitle-mixin.scss → mixins/_evo-text-subtitle-mixin.scss} +5 -5
  43. package/styles/mixins/_evo-text-tips-mixin.scss +9 -0
  44. package/styles/mixins/_media-mixins.scss +38 -0
  45. package/styles/mixins.scss +26 -142
  46. package/styles/partials/_typography.scss +37 -39
  47. /package/styles/partials/{fonts.scss → _fonts.scss} +0 -0
@@ -1,20 +1,20 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
2
  import { EvoIconsLibrary } from './classes/evo-icons-library';
4
3
  import * as i0 from "@angular/core";
5
- export declare class EvoIconComponent implements OnInit {
6
- private sanitizer;
7
- private iconsService;
8
- shape: string;
4
+ export declare class EvoIconComponent {
5
+ private readonly sanitizer;
6
+ private readonly iconsService;
7
+ set shape(shape: string);
8
+ get shape(): string;
9
9
  svgWidth: number;
10
10
  svgHeight: number;
11
11
  svgViewBox: string;
12
- get viewBox(): string;
13
12
  content: SafeHtml;
13
+ get viewBox(): string;
14
14
  hostClass: boolean;
15
15
  get classes(): string[];
16
+ private _shape;
16
17
  constructor(sanitizer: DomSanitizer, iconsService: EvoIconsLibrary);
17
- ngOnInit(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoIconComponent, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconComponent, "evo-icon", never, { "shape": "shape"; "svgWidth": "svgWidth"; "svgHeight": "svgHeight"; "svgViewBox": "svgViewBox"; }, {}, never, never>;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evotor-dev/ui-kit",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
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: var(--font-secondary);
16
+ font-family: var(--evo-font-secondary);
17
17
  line-height: 1;
18
18
  white-space: nowrap;
19
19
  text-align: center;
@@ -19,9 +19,7 @@
19
19
  overflow: hidden;
20
20
  color: $color-link;
21
21
 
22
- font-weight: 600;
23
- font-size: 14px;
24
- line-height: 24px;
22
+ @include evo-text-paragraph(p4);
25
23
 
26
24
  background-color: $color-background-grey;
27
25
 
@@ -3,7 +3,7 @@
3
3
  .evo-title {
4
4
  color: $color-text;
5
5
  font-weight: 700;
6
- font-family: var(--font-secondary);
6
+ font-family: var(--evo-font-secondary);
7
7
 
8
8
  &_h1 {
9
9
  @include h1;
@@ -1,41 +1,47 @@
1
- @import "variables";
1
+ @import 'variables';
2
2
 
3
3
  * {
4
4
  box-sizing: border-box;
5
5
  }
6
6
 
7
7
  body {
8
- --font: 'Noto Sans', #{$font-fallback};
9
- --font-secondary: #{$font-secondary};
8
+ --evo-font: #{$font};
9
+ --evo-font-secondary: #{$font-secondary};
10
10
 
11
11
  min-width: 320px;
12
12
  overflow-x: hidden;
13
13
  color: $color-text;
14
14
  font-weight: 400;
15
15
  font-size: 14px;
16
- font-family: var(--font);
16
+ font-family: var(--evo-font);
17
17
  line-height: 1.4;
18
18
  background-color: $color-white;
19
19
  -moz-osx-font-smoothing: grayscale;
20
20
  -webkit-font-smoothing: antialiased;
21
21
  }
22
22
 
23
- input, button, select, textarea {
23
+ input,
24
+ button,
25
+ select,
26
+ textarea {
24
27
  font-size: inherit;
25
28
  font-family: inherit;
26
- line-height: inherit
29
+ line-height: inherit;
27
30
  }
28
31
 
29
- a, button {
32
+ a,
33
+ button {
30
34
  outline: none !important;
31
35
  }
32
36
 
33
37
  a {
34
38
  color: $color-link;
35
39
  cursor: pointer !important;
36
- transition: color .3s;
40
+ transition: color 0.3s;
37
41
 
38
- &, &:hover, &:focus {
42
+ &,
43
+ &:hover,
44
+ &:focus {
39
45
  text-decoration: none;
40
46
  }
41
47
  }
@@ -0,0 +1,74 @@
1
+ @import '../variables';
2
+
3
+ /**
4
+ * size: normal | small
5
+ * theme: default | rounded
6
+ */
7
+ @mixin evo-input($size: normal, $theme: default) {
8
+ --evo-input-height: 48px;
9
+ --evo-input-border-radius: 4px;
10
+ --evo-input-font-size: 16px;
11
+
12
+ @if ($size == small) {
13
+ @if ($theme == default) {
14
+ --evo-input-height: 32px;
15
+ } @else if ($theme == rounded) {
16
+ --evo-input-font-size: 14px;
17
+ --evo-input-height: 40px;
18
+ }
19
+ }
20
+
21
+ @if ($theme == rounded) {
22
+ --evo-input-border-radius: 256px;
23
+ }
24
+
25
+ display: flex;
26
+ align-items: center;
27
+ height: var(--evo-input-height);
28
+ color: $color-text;
29
+ font-weight: normal;
30
+ font-size: var(--evo-input-font-size);
31
+ font-family: var(--evo-font);
32
+ white-space: nowrap;
33
+ background-color: $color-white;
34
+ border: 1px solid $color-disabled;
35
+ border-radius: var(--evo-input-border-radius);
36
+ outline: none;
37
+ transition: color 0.3s, box-shadow 0.3s, background 0.3s, border 0.3s;
38
+ }
39
+
40
+ @mixin evo-input-focused {
41
+ border: solid 1px $color-secondary-lighter;
42
+ }
43
+
44
+ @mixin evo-input-disabled {
45
+ color: $color-disabled-text !important;
46
+ background-color: $color-background-grey-light !important;
47
+ border: 1px solid $color-disabled-light !important;
48
+ cursor: default;
49
+ pointer-events: none;
50
+ }
51
+
52
+ /**
53
+ * @deprecated
54
+ */
55
+ @mixin evo-input-valid {
56
+ }
57
+
58
+ @mixin evo-input-invalid {
59
+ border-color: $color-error !important;
60
+ }
61
+
62
+ @mixin evo-input-states {
63
+ &_focused {
64
+ @include evo-input-focused;
65
+ }
66
+
67
+ &_disabled {
68
+ @include evo-input-disabled;
69
+ }
70
+
71
+ &_invalid {
72
+ @include evo-input-invalid;
73
+ }
74
+ }
@@ -1,13 +1,13 @@
1
1
  @use "sass:list";
2
2
 
3
- $evo-caption-styles: c1, c2, c3;
3
+ $evo-text-caption-styles: c1, c2, c3;
4
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}";
5
+ @mixin evo-text-caption($style) {
6
+ @if not list.index($evo-text-caption-styles, $style) {
7
+ @error "#{$style} is not a valid caption style. Use one of #{$evo-text-caption-styles}";
8
8
  }
9
9
 
10
- font-family: var(--font);
10
+ font-family: var(--evo-font);
11
11
  font-style: normal;
12
12
 
13
13
  @if $style == c1 {
@@ -2,12 +2,12 @@
2
2
 
3
3
  $evo-field-typo-styles: label, placeholder, placeholder-bold, hint, error;
4
4
 
5
- @mixin evo-field-typo($style) {
5
+ @mixin evo-text-field($style) {
6
6
  @if not list.index($evo-field-typo-styles, $style) {
7
7
  @error "#{$style} is not a valid field typo style. Use one of #{$evo-field-typo-styles}";
8
8
  }
9
9
 
10
- font-family: var(--font);
10
+ font-family: var(--evo-font);
11
11
  font-style: normal;
12
12
 
13
13
  @if $style == label {
@@ -1,15 +1,15 @@
1
1
  @use "sass:list";
2
- @import "../../mixins";
3
- @import "./typography-header-mobile-mixin";
2
+ @import 'media-mixins';
3
+ @import 'evo-text-mobile-header-mixin';
4
4
 
5
- $evo-header-styles: h1, h2, h3, h4, h5;
5
+ $evo-text-header-styles: h1, h2, h3, h4, h5;
6
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}";
7
+ @mixin evo-text-header($style, $autoMobile: true) {
8
+ @if not list.index($evo-text-header-styles, $style) {
9
+ @error "#{$style} is not a valid header style. Use one of #{$evo-text-header-styles}";
10
10
  }
11
11
 
12
- font-family: var(--font-secondary);
12
+ font-family: var(--evo-font-secondary);
13
13
  font-style: normal;
14
14
  font-weight: 700;
15
15
 
@@ -17,45 +17,45 @@ $evo-header-styles: h1, h2, h3, h4, h5;
17
17
  font-size: 36px;
18
18
  line-height: 44px;
19
19
 
20
- @if not $noMobile {
20
+ @if $autoMobile {
21
21
  @include media-mobile {
22
- @include evo-header-mobile(h1-mobile);
22
+ @include evo-text-mobile-header(h1);
23
23
  }
24
24
  }
25
25
  } @else if $style == h2 {
26
26
  font-size: 30px;
27
27
  line-height: 38px;
28
28
 
29
- @if not $noMobile {
29
+ @if $autoMobile {
30
30
  @include media-mobile {
31
- @include evo-header-mobile(h2-mobile);
31
+ @include evo-text-mobile-header(h2);
32
32
  }
33
33
  }
34
34
  } @else if $style == h3 {
35
35
  font-size: 24px;
36
36
  line-height: 32px;
37
37
 
38
- @if not $noMobile {
38
+ @if $autoMobile {
39
39
  @include media-mobile {
40
- @include evo-header-mobile(h3-mobile);
40
+ @include evo-text-mobile-header(h3);
41
41
  }
42
42
  }
43
43
  } @else if $style == h4 {
44
44
  font-size: 18px;
45
45
  line-height: 26px;
46
46
 
47
- @if not $noMobile {
47
+ @if $autoMobile {
48
48
  @include media-mobile {
49
- @include evo-header-mobile(h4-mobile);
49
+ @include evo-text-mobile-header(h4);
50
50
  }
51
51
  }
52
52
  } @else if $style == h5 {
53
53
  font-size: 16px;
54
54
  line-height: 24px;
55
55
 
56
- @if not $noMobile {
56
+ @if $autoMobile {
57
57
  @include media-mobile {
58
- @include evo-header-mobile(h5-mobile);
58
+ @include evo-text-mobile-header(h5);
59
59
  }
60
60
  }
61
61
  }
@@ -1,32 +1,32 @@
1
1
  @use "sass:list";
2
2
 
3
- $evo-header-mobile-styles: h1-mobile, h2-mobile, h3-mobile, h4-mobile, h5-mobile;
3
+ $evo-text-mobile-header-styles: h1, h2, h3, h4, h5;
4
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}";
5
+ @mixin evo-text-mobile-header($style) {
6
+ @if not list.index($evo-text-mobile-header-styles, $style) {
7
+ @error "#{$style} is not a valid header mobile style. Use one of #{$evo-text-mobile-header-styles}";
8
8
  }
9
9
 
10
- font-family: var(--font-secondary);
10
+ font-family: var(--evo-font-secondary);
11
11
  font-style: normal;
12
12
 
13
- @if $style == h1-mobile {
13
+ @if $style == h1 {
14
14
  font-weight: 700;
15
15
  font-size: 30px;
16
16
  line-height: 38px;
17
- } @else if $style == h2-mobile {
17
+ } @else if $style == h2 {
18
18
  font-weight: 700;
19
19
  font-size: 24px;
20
20
  line-height: 32px;
21
- } @else if $style == h3-mobile {
21
+ } @else if $style == h3 {
22
22
  font-weight: 700;
23
23
  font-size: 20px;
24
24
  line-height: 28px;
25
- } @else if $style == h4-mobile {
25
+ } @else if $style == h4 {
26
26
  font-weight: 700;
27
27
  font-size: 16px;
28
28
  line-height: 24px;
29
- } @else if $style == h5-mobile {
29
+ } @else if $style == h5 {
30
30
  font-weight: 700;
31
31
  font-size: 14px;
32
32
  line-height: 22px;
@@ -1,14 +1,13 @@
1
1
  @use "sass:list";
2
- @import "../../variables";
3
2
 
4
- $evo-paragraph-styles: p1, p2, p3, p4, p5, tips;
3
+ $evo-text-paragraph-styles: p1, p2, p3, p4, p5, tips;
5
4
 
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}";
5
+ @mixin evo-text-paragraph($style) {
6
+ @if not list.index($evo-text-paragraph-styles, $style) {
7
+ @error "#{$style} is not a valid paragraph style. Use one of #{$evo-text-paragraph-styles}";
9
8
  }
10
9
 
11
- font-family: var(--font);
10
+ font-family: var(--evo-font);
12
11
  font-style: normal;
13
12
 
14
13
  @if $style == p1 {
@@ -31,11 +30,5 @@ $evo-paragraph-styles: p1, p2, p3, p4, p5, tips;
31
30
  font-size: 16px;
32
31
  line-height: 24px;
33
32
  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
33
  }
41
34
  }
@@ -1,13 +1,13 @@
1
1
  @use "sass:list";
2
2
 
3
- $evo-subtitle-styles: s1, s2;
3
+ $evo-text-subtitle-styles: s1, s2;
4
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}";
5
+ @mixin evo-text-subtitle($style) {
6
+ @if not list.index($evo-text-subtitle-styles, $style) {
7
+ @error "#{$style} is not a valid caption style. Use one of #{$evo-text-subtitle-styles}";
8
8
  }
9
9
 
10
- font-family: var(--font);
10
+ font-family: var(--evo-font);
11
11
  font-style: normal;
12
12
  font-size: 18px;
13
13
  line-height: 26px;
@@ -0,0 +1,9 @@
1
+ @use "sass:list";
2
+
3
+ @mixin evo-text-tips() {
4
+ font-family: var(--evo-font);
5
+ font-size: 12px;
6
+ line-height: 18px;
7
+ font-weight: 400;
8
+ font-style: italic;
9
+ }
@@ -0,0 +1,38 @@
1
+ @import '../variables';
2
+
3
+ @mixin media-mobile {
4
+ @media (max-width: #{$media-tablet - 1}) {
5
+ @content;
6
+ }
7
+ }
8
+
9
+ /* media mixins - mobile first*/
10
+ @mixin media-tablet {
11
+ @media (min-width: #{$media-tablet}) {
12
+ @content;
13
+ }
14
+ }
15
+
16
+ @mixin media-desktop-s {
17
+ @media (min-width: #{$media-desktop-s}) {
18
+ @content;
19
+ }
20
+ }
21
+
22
+ @mixin media-desktop-m {
23
+ @media (min-width: #{$media-desktop-m}) {
24
+ @content;
25
+ }
26
+ }
27
+
28
+ @mixin media-desktop-l {
29
+ @media (min-width: #{$media-desktop-l}) {
30
+ @content;
31
+ }
32
+ }
33
+
34
+ @mixin media-desktop-xl {
35
+ @media (min-width: #{$media-desktop-xl}) {
36
+ @content;
37
+ }
38
+ }
@@ -1,4 +1,13 @@
1
1
  @import 'variables.scss';
2
+ @import './mixins/media-mixins';
3
+ @import './mixins/evo-input-mixins';
4
+ @import 'mixins/evo-text-caption-mixin';
5
+ @import 'mixins/evo-text-header-mixin';
6
+ @import 'mixins/evo-text-mobile-header-mixin';
7
+ @import 'mixins/evo-text-paragraph-mixin';
8
+ @import 'mixins/evo-text-field-mixin';
9
+ @import 'mixins/evo-text-subtitle-mixin';
10
+ @import 'mixins/evo-text-tips-mixin';
2
11
 
3
12
  /* @include clearfix();*/
4
13
  @mixin clearfix() {
@@ -34,176 +43,51 @@
34
43
  }
35
44
  }
36
45
 
37
- @mixin media-mobile {
38
- @media (max-width: #{$media-tablet - 1}) {
39
- @content;
40
- }
41
- }
42
-
43
- /* media mixins - mobile first*/
44
- @mixin media-tablet {
45
- @media (min-width: #{$media-tablet}) {
46
- @content;
47
- }
48
- }
49
-
50
- @mixin media-desktop-s {
51
- @media (min-width: #{$media-desktop-s}) {
52
- @content;
53
- }
54
- }
55
-
56
- @mixin media-desktop-m {
57
- @media (min-width: #{$media-desktop-m}) {
58
- @content;
59
- }
60
- }
61
-
62
- @mixin media-desktop-l {
63
- @media (min-width: #{$media-desktop-l}) {
64
- @content;
65
- }
66
- }
67
-
68
- @mixin media-desktop-xl {
69
- @media (min-width: #{$media-desktop-xl}) {
70
- @content;
71
- }
72
- }
73
-
74
- /*title mixins*/
46
+ /* title mixins*/
47
+ /* @deprecated use evo-text-* mixins*/
75
48
  @mixin title {
76
- color: #333F48;
49
+ color: #333f48;
77
50
  font-weight: 700;
78
- font-family: var(--font-secondary);
51
+ font-family: var(--evo-font-secondary);
79
52
  }
80
53
 
54
+ /* @deprecated use evo-text-* mixins*/
81
55
  @mixin h1 {
82
- font-size: 30px;
83
- line-height: 38px;
84
-
85
- @include media-desktop-s {
86
- font-size: 36px;
87
- line-height: 44px;
88
- }
56
+ @include evo-text-header(h1);
89
57
  }
90
58
 
59
+ /* @deprecated use evo-text-* mixins*/
91
60
  @mixin h2 {
92
- font-size: 24px;
93
- line-height: 32px;
94
-
95
- @include media-desktop-s {
96
- font-size: 30px;
97
- line-height: 38px;
98
- }
61
+ @include evo-text-header(h2);
99
62
  }
100
63
 
64
+ /* @deprecated use evo-text-* mixins*/
101
65
  @mixin h3 {
102
- font-size: 18px;
103
- line-height: 26px;
104
-
105
- @include media-desktop-s {
106
- font-size: 24px;
107
- line-height: 32px;
108
- }
66
+ @include evo-text-header(h3);
109
67
  }
110
68
 
69
+ /* @deprecated use evo-text-* mixins*/
111
70
  @mixin h4 {
112
- font-size: 14px;
113
- line-height: 22px;
114
-
115
- @include media-desktop-s {
116
- font-size: 18px;
117
- line-height: 26px;
118
- }
71
+ @include evo-text-header(h4);
119
72
  }
120
73
 
121
-
122
74
  /**
123
- * @deprecated
75
+ * @deprecated use evo-input-* mixins
124
76
  */
125
77
  @mixin input {
126
78
  @include evo-input(normal, default);
127
79
  }
128
80
 
129
81
  /**
130
- * size: normal | small
131
- * theme: default | rounded
82
+ * @deprecated use evo-input-states mixin
132
83
  */
133
- @mixin evo-input($size: normal, $theme: default) {
134
- --evo-input-height: 48px;
135
- --evo-input-border-radius: 4px;
136
- --evo-input-font-size: 16px;
137
-
138
- @if ($size == small) {
139
- @if ($theme == default) {
140
- --evo-input-height: 32px;
141
- } @else if ($theme == rounded) {
142
- --evo-input-font-size: 14px;
143
- --evo-input-height: 40px;
144
- }
145
- }
146
-
147
- @if ($theme == rounded) {
148
- --evo-input-border-radius: 256px;
149
- }
150
-
151
- display: flex;
152
- align-items: center;
153
- height: var(--evo-input-height);
154
- color: $color-text;
155
- font-weight: normal;
156
- font-size: var(--evo-input-font-size);
157
- font-family: var(--font);
158
- white-space: nowrap;
159
- background-color: $color-white;
160
- border: 1px solid $color-disabled;
161
- border-radius: var(--evo-input-border-radius);
162
- outline: none;
163
- transition: color .3s, box-shadow .3s, background .3s, border .3s;
164
- }
165
-
166
- @mixin evo-input-focused {
167
- border: solid 1px $color-secondary-lighter;
168
- }
169
-
170
- @mixin evo-input-disabled {
171
- color: $color-disabled-text !important;
172
- background-color: $color-background-grey-light !important;
173
- border: 1px solid $color-disabled-light !important;
174
- cursor: default;
175
- pointer-events: none;
176
- }
177
-
178
- /**
179
- * @deprecated
180
- */
181
- @mixin evo-input-valid {
182
- }
183
-
184
- @mixin evo-input-invalid {
185
- border-color: $color-error !important;
186
- }
187
-
188
84
  @mixin evo-control-states {
189
- $self: &;
190
-
191
- &_focused {
192
- @include evo-input-focused;
193
- }
194
-
195
- &_disabled {
196
- @include evo-input-disabled;
197
- }
198
-
199
- &_invalid {
200
- @include evo-input-invalid;
201
- }
85
+ @include evo-input-states();
202
86
  }
203
87
 
204
88
  @mixin hide-scroll {
205
- -ms-overflow-style: none; /* Internet Explorer 10+ */
206
- scrollbar-width: none; /* Firefox */
89
+ -ms-overflow-style: none; /* Internet Explorer 10+ */
90
+ scrollbar-width: none; /* Firefox */
207
91
 
208
92
  &::-webkit-scrollbar {
209
93
  display: none;