@evotor-dev/ui-kit 7.0.3 → 7.1.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/README.md +114 -121
- package/esm2020/icons/category/index.mjs +4 -4
- package/esm2020/icons/navigation/index.mjs +3 -3
- package/esm2020/icons/system/index.mjs +9 -5
- package/esm2020/lib/components/evo-accordion/evo-accordion-panel/evo-accordion-panel.component.mjs +2 -2
- package/esm2020/lib/components/evo-accordion/evo-accordion-title/evo-accordion-title.component.mjs +2 -2
- package/esm2020/lib/components/evo-autocomplete/components/evo-autocomplete.component.mjs +2 -2
- package/esm2020/lib/components/evo-autocomplete/components/templates/evo-autocomplete-default-option.component.mjs +2 -2
- package/esm2020/lib/components/evo-autocomplete/helpers/switch-query-to-list.mjs +1 -1
- package/esm2020/lib/components/evo-badge/evo-badge.component.mjs +2 -2
- package/esm2020/lib/components/evo-banner/evo-banner.component.mjs +8 -11
- package/esm2020/lib/components/evo-banner/evo-banner.module.mjs +7 -11
- package/esm2020/lib/components/evo-button/components/evo-button/evo-button.component.mjs +86 -0
- package/esm2020/lib/components/evo-button/components/evo-button-old/evo-button-old.component.mjs +91 -0
- package/esm2020/lib/components/evo-button/constants/evo-button-themes-map.mjs +31 -0
- package/esm2020/lib/components/evo-button/evo-button.module.mjs +9 -14
- package/esm2020/lib/components/evo-button/public-api.mjs +4 -2
- package/esm2020/lib/components/evo-button/types/evo-button-color.mjs +2 -0
- package/esm2020/lib/components/evo-button/types/evo-button-shape.mjs +2 -0
- package/esm2020/lib/components/evo-button/types/evo-button-size.mjs +2 -0
- package/esm2020/lib/components/evo-button/types/evo-button-theme-params.mjs +2 -0
- package/esm2020/lib/components/evo-button/types/evo-button-theme.mjs +2 -0
- package/esm2020/lib/components/evo-button/types/index.mjs +6 -0
- package/esm2020/lib/components/evo-checkbox/evo-checkbox.component.mjs +11 -7
- package/esm2020/lib/components/evo-chip/evo-chip.component.mjs +2 -2
- package/esm2020/lib/components/evo-control-error/evo-control-error.component.mjs +2 -2
- package/esm2020/lib/components/evo-control-label/evo-control-label.component.mjs +2 -2
- package/esm2020/lib/components/evo-counter/evo-counter.component.mjs +2 -2
- package/esm2020/lib/components/evo-datepicker/evo-datepicker.component.mjs +2 -2
- package/esm2020/lib/components/evo-icon/evo-icon.component.mjs +15 -11
- package/esm2020/lib/components/evo-icon-button/evo-icon-button.component.mjs +6 -3
- package/esm2020/lib/components/evo-input/evo-input.component.mjs +5 -4
- package/esm2020/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.mjs +2 -2
- package/esm2020/lib/components/evo-loader/evo-circular-loader.component.mjs +3 -3
- package/esm2020/lib/components/evo-loader/evo-loader.component.mjs +4 -1
- package/esm2020/lib/components/evo-modal/evo-modal.component.mjs +17 -8
- package/esm2020/lib/components/evo-navigation-button/evo-navigation-button.component.mjs +12 -0
- package/esm2020/lib/components/evo-navigation-button/evo-navigation-button.module.mjs +45 -0
- package/esm2020/lib/components/evo-navigation-button/index.mjs +2 -0
- package/esm2020/lib/components/evo-navigation-button/public-api.mjs +3 -0
- package/esm2020/lib/components/evo-plus-minus/evo-plus-minus.component.mjs +2 -2
- package/esm2020/lib/components/evo-popover/evo-popover.component.mjs +3 -3
- package/esm2020/lib/components/evo-radio/evo-radio.component.mjs +2 -2
- package/esm2020/lib/components/evo-radio-group/evo-radio-group.component.mjs +2 -2
- package/esm2020/lib/components/evo-radioshape/components/evo-radioshape.component.mjs +2 -2
- package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar/evo-segmented-bar.component.mjs +6 -5
- package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar-button/evo-segmented-bar-button.component.mjs +6 -3
- package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar.module.mjs +9 -24
- package/esm2020/lib/components/evo-select/evo-select.component.mjs +3 -3
- package/esm2020/lib/components/evo-sidebar/evo-sidebar-footer/evo-sidebar-footer.component.mjs +2 -2
- package/esm2020/lib/components/evo-sidebar/evo-sidebar-header/evo-sidebar-header.component.mjs +2 -2
- package/esm2020/lib/components/evo-sidebar/evo-sidebar.component.mjs +1 -1
- package/esm2020/lib/components/evo-submenu/evo-submenu.component.mjs +19 -14
- package/esm2020/lib/components/evo-submenu/evo-submenu.module.mjs +8 -18
- package/esm2020/lib/components/evo-switcher/evo-switcher.component.mjs +2 -2
- package/esm2020/lib/components/evo-tabs/evo-tabs.component.mjs +2 -2
- package/esm2020/lib/components/evo-textarea/evo-textarea.component.mjs +2 -2
- package/esm2020/lib/components/evo-toggle/evo-toggle.component.mjs +2 -2
- package/esm2020/lib/components/evo-upload/evo-upload.component.mjs +4 -4
- package/esm2020/lib/directives/evo-let/evo-let.directive.mjs +1 -1
- package/esm2020/public_api.mjs +2 -1
- package/fesm2015/evotor-dev-ui-kit-icons-category.mjs +3 -3
- package/fesm2015/evotor-dev-ui-kit-icons-category.mjs.map +1 -1
- package/fesm2015/evotor-dev-ui-kit-icons-navigation.mjs +2 -2
- package/fesm2015/evotor-dev-ui-kit-icons-navigation.mjs.map +1 -1
- package/fesm2015/evotor-dev-ui-kit-icons-system.mjs +9 -5
- package/fesm2015/evotor-dev-ui-kit-icons-system.mjs.map +1 -1
- package/fesm2015/evotor-dev-ui-kit-icons.mjs +13 -9
- package/fesm2015/evotor-dev-ui-kit-icons.mjs.map +1 -1
- package/fesm2015/evotor-dev-ui-kit.mjs +393 -231
- package/fesm2015/evotor-dev-ui-kit.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit-icons-category.mjs +3 -3
- package/fesm2020/evotor-dev-ui-kit-icons-category.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit-icons-navigation.mjs +2 -2
- package/fesm2020/evotor-dev-ui-kit-icons-navigation.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit-icons-system.mjs +9 -5
- package/fesm2020/evotor-dev-ui-kit-icons-system.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit-icons.mjs +13 -9
- package/fesm2020/evotor-dev-ui-kit-icons.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit.mjs +392 -231
- package/fesm2020/evotor-dev-ui-kit.mjs.map +1 -1
- package/icons/category/index.d.ts +3 -3
- package/icons/index.d.ts +11 -9
- package/icons/navigation/index.d.ts +2 -2
- package/icons/system/index.d.ts +8 -4
- package/lib/components/evo-button/components/evo-button/evo-button.component.d.ts +24 -0
- package/lib/components/evo-button/{evo-button.component.d.ts → components/evo-button-old/evo-button-old.component.d.ts} +9 -3
- package/lib/components/evo-button/constants/evo-button-themes-map.d.ts +2 -0
- package/lib/components/evo-button/evo-button.module.d.ts +6 -4
- package/lib/components/evo-button/public-api.d.ts +3 -1
- package/lib/components/evo-button/types/evo-button-color.d.ts +5 -0
- package/lib/components/evo-button/types/evo-button-shape.d.ts +4 -0
- package/lib/components/evo-button/types/evo-button-size.d.ts +5 -0
- package/lib/components/evo-button/types/evo-button-theme-params.d.ts +5 -0
- package/lib/components/evo-button/types/evo-button-theme.d.ts +1 -0
- package/lib/components/evo-button/types/index.d.ts +5 -0
- package/lib/components/evo-checkbox/evo-checkbox.component.d.ts +4 -1
- package/lib/components/evo-icon/evo-icon.component.d.ts +7 -7
- package/lib/components/evo-icon-button/evo-icon-button.component.d.ts +3 -0
- package/lib/components/evo-modal/evo-modal.component.d.ts +10 -6
- package/lib/components/evo-navigation-button/evo-navigation-button.component.d.ts +5 -0
- package/lib/components/evo-navigation-button/evo-navigation-button.module.d.ts +9 -0
- package/lib/components/evo-navigation-button/index.d.ts +1 -0
- package/lib/components/evo-navigation-button/public-api.d.ts +2 -0
- package/package.json +6 -1
- package/public_api.d.ts +1 -0
- package/styles/components/evo-button.scss +233 -233
- package/styles/components/evo-chip.scss +167 -169
- package/styles/components/evo-table.scss +42 -42
- package/styles/components/evo-title.scss +23 -23
- package/styles/globals.scss +78 -67
- package/styles/main.scss +24 -19
- package/styles/mixins/_evo-input-mixins.scss +74 -0
- package/styles/mixins/_evo-text-button-mixin.scss +24 -0
- package/styles/mixins/_evo-text-caption-mixin.scss +26 -0
- package/styles/mixins/_evo-text-field-mixin.scss +36 -0
- package/styles/mixins/_evo-text-header-mixin.scss +62 -0
- package/styles/mixins/_evo-text-mobile-header-mixin.scss +34 -0
- package/styles/mixins/_evo-text-paragraph-mixin.scss +34 -0
- package/styles/mixins/_evo-text-subtitle-mixin.scss +20 -0
- package/styles/mixins/_evo-text-tips-mixin.scss +9 -0
- package/styles/mixins/_media-mixins.scss +38 -0
- package/styles/mixins.scss +96 -210
- package/styles/partials/_fonts.scss +2 -0
- package/styles/partials/_typography.scss +135 -0
- package/styles/variables.scss +140 -137
- package/esm2020/lib/components/evo-button/evo-button.component.mjs +0 -82
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-button-styles: b1, b2, b3;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-button($style) {
|
|
6
|
+
@if not list.index($evo-text-button-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid button style. Use one of #{$evo-text-button-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font-secondary);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
|
|
14
|
+
@if $style == b1 {
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
} @else if $style == b2 {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 20px;
|
|
20
|
+
} @else if $style == b3 {
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
line-height: 20px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-caption-styles: c1, c2, c3;
|
|
4
|
+
|
|
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
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-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-text-field($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(--evo-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 'media-mixins';
|
|
3
|
+
@import 'evo-text-mobile-header-mixin';
|
|
4
|
+
|
|
5
|
+
$evo-text-header-styles: h1, h2, h3, h4, h5;
|
|
6
|
+
|
|
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
|
+
}
|
|
11
|
+
|
|
12
|
+
font-family: var(--evo-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 $autoMobile {
|
|
21
|
+
@include media-mobile {
|
|
22
|
+
@include evo-text-mobile-header(h1);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
} @else if $style == h2 {
|
|
26
|
+
font-size: 30px;
|
|
27
|
+
line-height: 38px;
|
|
28
|
+
|
|
29
|
+
@if $autoMobile {
|
|
30
|
+
@include media-mobile {
|
|
31
|
+
@include evo-text-mobile-header(h2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} @else if $style == h3 {
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
line-height: 32px;
|
|
37
|
+
|
|
38
|
+
@if $autoMobile {
|
|
39
|
+
@include media-mobile {
|
|
40
|
+
@include evo-text-mobile-header(h3);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} @else if $style == h4 {
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
line-height: 26px;
|
|
46
|
+
|
|
47
|
+
@if $autoMobile {
|
|
48
|
+
@include media-mobile {
|
|
49
|
+
@include evo-text-mobile-header(h4);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} @else if $style == h5 {
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
|
|
56
|
+
@if $autoMobile {
|
|
57
|
+
@include media-mobile {
|
|
58
|
+
@include evo-text-mobile-header(h5);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-mobile-header-styles: h1, h2, h3, h4, h5;
|
|
4
|
+
|
|
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
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font-secondary);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == h1 {
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
font-size: 30px;
|
|
16
|
+
line-height: 38px;
|
|
17
|
+
} @else if $style == h2 {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: 24px;
|
|
20
|
+
line-height: 32px;
|
|
21
|
+
} @else if $style == h3 {
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
line-height: 28px;
|
|
25
|
+
} @else if $style == h4 {
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
line-height: 24px;
|
|
29
|
+
} @else if $style == h5 {
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-paragraph-styles: p1, p2, p3, p4, p5, tips;
|
|
4
|
+
|
|
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}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == p1 {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 22px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
} @else if $style == p2 {
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 22px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
} @else if $style == p3 {
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
} @else if $style == p4 {
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
} @else if $style == p5 {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
line-height: 24px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-subtitle-styles: s1, s2;
|
|
4
|
+
|
|
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
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-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
|
+
}
|
|
@@ -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
|
+
}
|
package/styles/mixins.scss
CHANGED
|
@@ -1,210 +1,96 @@
|
|
|
1
|
-
@import 'variables.scss';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@mixin
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
@mixin
|
|
57
|
-
@
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
@
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
line-height: 38px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@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
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@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
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @deprecated
|
|
124
|
-
*/
|
|
125
|
-
@mixin input {
|
|
126
|
-
@include evo-input(normal, default);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* size: normal | small
|
|
131
|
-
* theme: default | rounded
|
|
132
|
-
*/
|
|
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: $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-text-subscription;
|
|
172
|
-
background-color: $color-background-grey !important;
|
|
173
|
-
cursor: default;
|
|
174
|
-
pointer-events: none;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @deprecated
|
|
179
|
-
*/
|
|
180
|
-
@mixin evo-input-valid {
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@mixin evo-input-invalid {
|
|
184
|
-
border-color: $color-error !important;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@mixin evo-control-states {
|
|
188
|
-
$self: &;
|
|
189
|
-
|
|
190
|
-
&_focused {
|
|
191
|
-
@include evo-input-focused;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&_disabled {
|
|
195
|
-
@include evo-input-disabled;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&_invalid {
|
|
199
|
-
@include evo-input-invalid;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@mixin hide-scroll {
|
|
204
|
-
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
205
|
-
scrollbar-width: none; /* Firefox */
|
|
206
|
-
|
|
207
|
-
&::-webkit-scrollbar {
|
|
208
|
-
display: none;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
1
|
+
@import 'variables.scss';
|
|
2
|
+
@import './mixins/media-mixins';
|
|
3
|
+
@import './mixins/evo-input-mixins';
|
|
4
|
+
@import './mixins/evo-text-button-mixin';
|
|
5
|
+
@import './mixins/evo-text-caption-mixin';
|
|
6
|
+
@import './mixins/evo-text-header-mixin';
|
|
7
|
+
@import './mixins/evo-text-mobile-header-mixin';
|
|
8
|
+
@import './mixins/evo-text-paragraph-mixin';
|
|
9
|
+
@import './mixins/evo-text-field-mixin';
|
|
10
|
+
@import './mixins/evo-text-subtitle-mixin';
|
|
11
|
+
@import './mixins/evo-text-tips-mixin';
|
|
12
|
+
|
|
13
|
+
/* @include clearfix();*/
|
|
14
|
+
@mixin clearfix() {
|
|
15
|
+
&:after {
|
|
16
|
+
content: '';
|
|
17
|
+
display: block;
|
|
18
|
+
clear: both;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* @include clear-ul();*/
|
|
23
|
+
@mixin clear-ul() {
|
|
24
|
+
margin: 0;
|
|
25
|
+
padding: 0;
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* @include clear-btn();*/
|
|
30
|
+
@mixin clear-btn() {
|
|
31
|
+
padding: 0;
|
|
32
|
+
overflow: visible;
|
|
33
|
+
color: inherit;
|
|
34
|
+
font: inherit;
|
|
35
|
+
line-height: inherit;
|
|
36
|
+
background: none;
|
|
37
|
+
border: 0;
|
|
38
|
+
-webkit-appearance: none;
|
|
39
|
+
user-select: none;
|
|
40
|
+
|
|
41
|
+
&::-moz-focus-inner {
|
|
42
|
+
padding: 0;
|
|
43
|
+
border: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* title mixins*/
|
|
48
|
+
/* @deprecated use evo-text-* mixins*/
|
|
49
|
+
@mixin title {
|
|
50
|
+
color: #333f48;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
font-family: var(--evo-font-secondary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* @deprecated use evo-text-* mixins*/
|
|
56
|
+
@mixin h1 {
|
|
57
|
+
@include evo-text-header(h1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* @deprecated use evo-text-* mixins*/
|
|
61
|
+
@mixin h2 {
|
|
62
|
+
@include evo-text-header(h2);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* @deprecated use evo-text-* mixins*/
|
|
66
|
+
@mixin h3 {
|
|
67
|
+
@include evo-text-header(h3);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* @deprecated use evo-text-* mixins*/
|
|
71
|
+
@mixin h4 {
|
|
72
|
+
@include evo-text-header(h4);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated use evo-input-* mixins
|
|
77
|
+
*/
|
|
78
|
+
@mixin input {
|
|
79
|
+
@include evo-input(normal, default);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use evo-input-states mixin
|
|
84
|
+
*/
|
|
85
|
+
@mixin evo-control-states {
|
|
86
|
+
@include evo-input-states();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin hide-scroll {
|
|
90
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
91
|
+
scrollbar-width: none; /* Firefox */
|
|
92
|
+
|
|
93
|
+
&::-webkit-scrollbar {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
|
+
}
|