@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.
Files changed (127) hide show
  1. package/README.md +114 -121
  2. package/esm2020/icons/category/index.mjs +4 -4
  3. package/esm2020/icons/navigation/index.mjs +3 -3
  4. package/esm2020/icons/system/index.mjs +9 -5
  5. package/esm2020/lib/components/evo-accordion/evo-accordion-panel/evo-accordion-panel.component.mjs +2 -2
  6. package/esm2020/lib/components/evo-accordion/evo-accordion-title/evo-accordion-title.component.mjs +2 -2
  7. package/esm2020/lib/components/evo-autocomplete/components/evo-autocomplete.component.mjs +2 -2
  8. package/esm2020/lib/components/evo-autocomplete/components/templates/evo-autocomplete-default-option.component.mjs +2 -2
  9. package/esm2020/lib/components/evo-autocomplete/helpers/switch-query-to-list.mjs +1 -1
  10. package/esm2020/lib/components/evo-badge/evo-badge.component.mjs +2 -2
  11. package/esm2020/lib/components/evo-banner/evo-banner.component.mjs +8 -11
  12. package/esm2020/lib/components/evo-banner/evo-banner.module.mjs +7 -11
  13. package/esm2020/lib/components/evo-button/components/evo-button/evo-button.component.mjs +86 -0
  14. package/esm2020/lib/components/evo-button/components/evo-button-old/evo-button-old.component.mjs +91 -0
  15. package/esm2020/lib/components/evo-button/constants/evo-button-themes-map.mjs +31 -0
  16. package/esm2020/lib/components/evo-button/evo-button.module.mjs +9 -14
  17. package/esm2020/lib/components/evo-button/public-api.mjs +4 -2
  18. package/esm2020/lib/components/evo-button/types/evo-button-color.mjs +2 -0
  19. package/esm2020/lib/components/evo-button/types/evo-button-shape.mjs +2 -0
  20. package/esm2020/lib/components/evo-button/types/evo-button-size.mjs +2 -0
  21. package/esm2020/lib/components/evo-button/types/evo-button-theme-params.mjs +2 -0
  22. package/esm2020/lib/components/evo-button/types/evo-button-theme.mjs +2 -0
  23. package/esm2020/lib/components/evo-button/types/index.mjs +6 -0
  24. package/esm2020/lib/components/evo-checkbox/evo-checkbox.component.mjs +11 -7
  25. package/esm2020/lib/components/evo-chip/evo-chip.component.mjs +2 -2
  26. package/esm2020/lib/components/evo-control-error/evo-control-error.component.mjs +2 -2
  27. package/esm2020/lib/components/evo-control-label/evo-control-label.component.mjs +2 -2
  28. package/esm2020/lib/components/evo-counter/evo-counter.component.mjs +2 -2
  29. package/esm2020/lib/components/evo-datepicker/evo-datepicker.component.mjs +2 -2
  30. package/esm2020/lib/components/evo-icon/evo-icon.component.mjs +15 -11
  31. package/esm2020/lib/components/evo-icon-button/evo-icon-button.component.mjs +6 -3
  32. package/esm2020/lib/components/evo-input/evo-input.component.mjs +5 -4
  33. package/esm2020/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.mjs +2 -2
  34. package/esm2020/lib/components/evo-loader/evo-circular-loader.component.mjs +3 -3
  35. package/esm2020/lib/components/evo-loader/evo-loader.component.mjs +4 -1
  36. package/esm2020/lib/components/evo-modal/evo-modal.component.mjs +17 -8
  37. package/esm2020/lib/components/evo-navigation-button/evo-navigation-button.component.mjs +12 -0
  38. package/esm2020/lib/components/evo-navigation-button/evo-navigation-button.module.mjs +45 -0
  39. package/esm2020/lib/components/evo-navigation-button/index.mjs +2 -0
  40. package/esm2020/lib/components/evo-navigation-button/public-api.mjs +3 -0
  41. package/esm2020/lib/components/evo-plus-minus/evo-plus-minus.component.mjs +2 -2
  42. package/esm2020/lib/components/evo-popover/evo-popover.component.mjs +3 -3
  43. package/esm2020/lib/components/evo-radio/evo-radio.component.mjs +2 -2
  44. package/esm2020/lib/components/evo-radio-group/evo-radio-group.component.mjs +2 -2
  45. package/esm2020/lib/components/evo-radioshape/components/evo-radioshape.component.mjs +2 -2
  46. package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar/evo-segmented-bar.component.mjs +6 -5
  47. package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar-button/evo-segmented-bar-button.component.mjs +6 -3
  48. package/esm2020/lib/components/evo-segmented-bar/evo-segmented-bar.module.mjs +9 -24
  49. package/esm2020/lib/components/evo-select/evo-select.component.mjs +3 -3
  50. package/esm2020/lib/components/evo-sidebar/evo-sidebar-footer/evo-sidebar-footer.component.mjs +2 -2
  51. package/esm2020/lib/components/evo-sidebar/evo-sidebar-header/evo-sidebar-header.component.mjs +2 -2
  52. package/esm2020/lib/components/evo-sidebar/evo-sidebar.component.mjs +1 -1
  53. package/esm2020/lib/components/evo-submenu/evo-submenu.component.mjs +19 -14
  54. package/esm2020/lib/components/evo-submenu/evo-submenu.module.mjs +8 -18
  55. package/esm2020/lib/components/evo-switcher/evo-switcher.component.mjs +2 -2
  56. package/esm2020/lib/components/evo-tabs/evo-tabs.component.mjs +2 -2
  57. package/esm2020/lib/components/evo-textarea/evo-textarea.component.mjs +2 -2
  58. package/esm2020/lib/components/evo-toggle/evo-toggle.component.mjs +2 -2
  59. package/esm2020/lib/components/evo-upload/evo-upload.component.mjs +4 -4
  60. package/esm2020/lib/directives/evo-let/evo-let.directive.mjs +1 -1
  61. package/esm2020/public_api.mjs +2 -1
  62. package/fesm2015/evotor-dev-ui-kit-icons-category.mjs +3 -3
  63. package/fesm2015/evotor-dev-ui-kit-icons-category.mjs.map +1 -1
  64. package/fesm2015/evotor-dev-ui-kit-icons-navigation.mjs +2 -2
  65. package/fesm2015/evotor-dev-ui-kit-icons-navigation.mjs.map +1 -1
  66. package/fesm2015/evotor-dev-ui-kit-icons-system.mjs +9 -5
  67. package/fesm2015/evotor-dev-ui-kit-icons-system.mjs.map +1 -1
  68. package/fesm2015/evotor-dev-ui-kit-icons.mjs +13 -9
  69. package/fesm2015/evotor-dev-ui-kit-icons.mjs.map +1 -1
  70. package/fesm2015/evotor-dev-ui-kit.mjs +393 -231
  71. package/fesm2015/evotor-dev-ui-kit.mjs.map +1 -1
  72. package/fesm2020/evotor-dev-ui-kit-icons-category.mjs +3 -3
  73. package/fesm2020/evotor-dev-ui-kit-icons-category.mjs.map +1 -1
  74. package/fesm2020/evotor-dev-ui-kit-icons-navigation.mjs +2 -2
  75. package/fesm2020/evotor-dev-ui-kit-icons-navigation.mjs.map +1 -1
  76. package/fesm2020/evotor-dev-ui-kit-icons-system.mjs +9 -5
  77. package/fesm2020/evotor-dev-ui-kit-icons-system.mjs.map +1 -1
  78. package/fesm2020/evotor-dev-ui-kit-icons.mjs +13 -9
  79. package/fesm2020/evotor-dev-ui-kit-icons.mjs.map +1 -1
  80. package/fesm2020/evotor-dev-ui-kit.mjs +392 -231
  81. package/fesm2020/evotor-dev-ui-kit.mjs.map +1 -1
  82. package/icons/category/index.d.ts +3 -3
  83. package/icons/index.d.ts +11 -9
  84. package/icons/navigation/index.d.ts +2 -2
  85. package/icons/system/index.d.ts +8 -4
  86. package/lib/components/evo-button/components/evo-button/evo-button.component.d.ts +24 -0
  87. package/lib/components/evo-button/{evo-button.component.d.ts → components/evo-button-old/evo-button-old.component.d.ts} +9 -3
  88. package/lib/components/evo-button/constants/evo-button-themes-map.d.ts +2 -0
  89. package/lib/components/evo-button/evo-button.module.d.ts +6 -4
  90. package/lib/components/evo-button/public-api.d.ts +3 -1
  91. package/lib/components/evo-button/types/evo-button-color.d.ts +5 -0
  92. package/lib/components/evo-button/types/evo-button-shape.d.ts +4 -0
  93. package/lib/components/evo-button/types/evo-button-size.d.ts +5 -0
  94. package/lib/components/evo-button/types/evo-button-theme-params.d.ts +5 -0
  95. package/lib/components/evo-button/types/evo-button-theme.d.ts +1 -0
  96. package/lib/components/evo-button/types/index.d.ts +5 -0
  97. package/lib/components/evo-checkbox/evo-checkbox.component.d.ts +4 -1
  98. package/lib/components/evo-icon/evo-icon.component.d.ts +7 -7
  99. package/lib/components/evo-icon-button/evo-icon-button.component.d.ts +3 -0
  100. package/lib/components/evo-modal/evo-modal.component.d.ts +10 -6
  101. package/lib/components/evo-navigation-button/evo-navigation-button.component.d.ts +5 -0
  102. package/lib/components/evo-navigation-button/evo-navigation-button.module.d.ts +9 -0
  103. package/lib/components/evo-navigation-button/index.d.ts +1 -0
  104. package/lib/components/evo-navigation-button/public-api.d.ts +2 -0
  105. package/package.json +6 -1
  106. package/public_api.d.ts +1 -0
  107. package/styles/components/evo-button.scss +233 -233
  108. package/styles/components/evo-chip.scss +167 -169
  109. package/styles/components/evo-table.scss +42 -42
  110. package/styles/components/evo-title.scss +23 -23
  111. package/styles/globals.scss +78 -67
  112. package/styles/main.scss +24 -19
  113. package/styles/mixins/_evo-input-mixins.scss +74 -0
  114. package/styles/mixins/_evo-text-button-mixin.scss +24 -0
  115. package/styles/mixins/_evo-text-caption-mixin.scss +26 -0
  116. package/styles/mixins/_evo-text-field-mixin.scss +36 -0
  117. package/styles/mixins/_evo-text-header-mixin.scss +62 -0
  118. package/styles/mixins/_evo-text-mobile-header-mixin.scss +34 -0
  119. package/styles/mixins/_evo-text-paragraph-mixin.scss +34 -0
  120. package/styles/mixins/_evo-text-subtitle-mixin.scss +20 -0
  121. package/styles/mixins/_evo-text-tips-mixin.scss +9 -0
  122. package/styles/mixins/_media-mixins.scss +38 -0
  123. package/styles/mixins.scss +96 -210
  124. package/styles/partials/_fonts.scss +2 -0
  125. package/styles/partials/_typography.scss +135 -0
  126. package/styles/variables.scss +140 -137
  127. package/esm2020/lib/components/evo-button/evo-button.component.mjs +0 -82
@@ -1,233 +1,233 @@
1
- @import '../mixins';
2
- @import '../keyframes';
3
-
4
- $dot-size: 10px;
5
-
6
- .evo-button {
7
- display: flex;
8
- justify-content: center;
9
- align-items: center;
10
- min-width: 96px;
11
- height: 40px;
12
- padding: 0 24px;
13
- color: $color-white;
14
- font-weight: 500;
15
- font-size: 16px;
16
- font-family: $font-secondary;
17
- line-height: 1;
18
- white-space: nowrap;
19
- text-align: center;
20
- text-transform: uppercase;
21
- background: $color-primary none;
22
- border: solid 1px transparent;
23
- border-radius: 30px;
24
- outline: none;
25
- cursor: pointer;
26
- transition: background-color .3s, color .3s, border .3s;
27
- user-select: none;
28
-
29
- &:hover {
30
- color: $color-white;
31
- background-color: $color-primary-hover;
32
- }
33
-
34
- &:active,
35
- &:focus {
36
- color: $color-white;
37
- background-color: $color-primary-active;
38
- outline: none;
39
- }
40
-
41
- &:disabled,
42
- &_disabled {
43
- color: $color-white !important;
44
- background: rgba($color-black, .16) !important;
45
- border-color: transparent !important;
46
- pointer-events: none;
47
- }
48
-
49
- /* COLORS */
50
- &_lined {
51
- color: $color-primary;
52
- background-color: $color-white;
53
- border: 1px solid $color-primary;
54
-
55
- &:hover {
56
- color: $color-white;
57
- background-color: $color-primary;
58
- }
59
-
60
- &:active,
61
- &:focus {
62
- color: $color-white;
63
- background-color: $color-primary-active;
64
- border-color: $color-primary-active;
65
- }
66
- }
67
-
68
- &_darkblue {
69
- background-color: #546E7A;
70
-
71
- &:hover {
72
- background-color: #7596A5;
73
- }
74
-
75
- &:active,
76
- &:focus {
77
- background-color: #283239;
78
- }
79
- }
80
-
81
- &_darkblue-lined {
82
- color: $color-secondary-light;
83
- background-color: $color-white;
84
- border: 1px solid $color-secondary-light;
85
-
86
- &:hover {
87
- color: $color-white;
88
- background-color: $color-secondary-light;
89
- }
90
-
91
- &:active,
92
- &:focus {
93
- color: $color-white;
94
- background-color: #343031;
95
- border-color: #343031;
96
- }
97
- }
98
-
99
- &_green {
100
- background-color: $color-success;
101
-
102
- &:hover {
103
- background-color: #4cd2a2;
104
- }
105
-
106
- &:active,
107
- &:focus {
108
- background-color: #1c9e6e;
109
- }
110
- }
111
-
112
- &_green-lined {
113
- color: $color-success;
114
- background-color: $color-white;
115
- border: 1px solid $color-success;
116
-
117
- &:hover {
118
- color: $color-white;
119
- background-color: $color-success;
120
- }
121
-
122
- &:active,
123
- &:focus {
124
- color: $color-white;
125
- background-color: #1c9e6e;
126
- border-color: #1c9e6e;
127
- }
128
- }
129
-
130
- &_red {
131
- color: $color-white;
132
- background-color: $color-error;
133
-
134
- &:hover {
135
- background-color: $color-error-hover;
136
- }
137
-
138
- &:active,
139
- &:focus {
140
- background-color: $color-error-active;
141
- }
142
- }
143
-
144
- &_purple {
145
- background-color: $color-bonus;
146
-
147
- &:hover {
148
- background-color: #d255be;
149
- }
150
-
151
- &:active,
152
- &:focus {
153
- background-color: #9f228b;
154
- }
155
- }
156
-
157
- &_white {
158
- background-color: transparent;
159
- border: 1px solid $color-white;
160
-
161
- &:hover {
162
- color: $color-secondary-light;
163
- background-color: $color-white;
164
- }
165
-
166
- &:active,
167
- &:focus {
168
- color: $color-white;
169
- background-color: transparent;
170
- }
171
- }
172
-
173
- /* COLORS */
174
-
175
-
176
- &_small {
177
- min-width: 72px;
178
- height: 32px;
179
- padding: 0 16px;
180
- font-size: 14px;
181
- }
182
-
183
- &_large {
184
- min-width: 120px;
185
- height: 56px;
186
- padding: 0 40px;
187
- font-size: 18px;
188
- }
189
-
190
- /* SIZES */
191
-
192
-
193
- /*with icon*/
194
- &_icon {
195
- display: inline-flex;
196
- align-items: center;
197
- padding-right: 22px;
198
- padding-left: 22px;
199
- }
200
-
201
- &_loading {
202
- position: relative;
203
- pointer-events: none;
204
- }
205
-
206
- &__dots {
207
- position: absolute;
208
- top: 50%;
209
- left: 50%;
210
- margin-top: -5px;
211
- margin-left: -30px;
212
- }
213
-
214
- &__dot {
215
- float: left;
216
- width: $dot-size;
217
- height: $dot-size;
218
- margin: 0 5px;
219
- background: currentColor;
220
- border-radius: 50%;
221
- transform: scale(0);
222
- @include animation();
223
-
224
- &:nth-child(2) {
225
- @include animation($animation-speed * 0.3);
226
- }
227
-
228
- &:nth-child(3) {
229
- @include animation($animation-speed * 0.6);
230
- }
231
- }
232
- }
233
-
1
+ @import '../mixins';
2
+ @import '../keyframes';
3
+
4
+ $dot-size: 10px;
5
+
6
+ .evo-button {
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ min-width: 96px;
11
+ height: 40px;
12
+ padding: 0 24px;
13
+ color: $color-white;
14
+ font-weight: 500;
15
+ font-size: 16px;
16
+ font-family: var(--evo-font-secondary);
17
+ line-height: 1;
18
+ white-space: nowrap;
19
+ text-align: center;
20
+ text-transform: uppercase;
21
+ background: $color-primary none;
22
+ border: solid 1px transparent;
23
+ border-radius: 30px;
24
+ outline: none;
25
+ cursor: pointer;
26
+ transition: background-color .3s, color .3s, border .3s;
27
+ user-select: none;
28
+
29
+ &:hover {
30
+ color: $color-white;
31
+ background-color: $color-primary-hover;
32
+ }
33
+
34
+ &:active,
35
+ &:focus {
36
+ color: $color-white;
37
+ background-color: $color-primary-active;
38
+ outline: none;
39
+ }
40
+
41
+ &:disabled,
42
+ &_disabled {
43
+ color: $color-white !important;
44
+ background: rgba($color-black, .16) !important;
45
+ border-color: transparent !important;
46
+ pointer-events: none;
47
+ }
48
+
49
+ /* COLORS */
50
+ &_lined {
51
+ color: $color-primary;
52
+ background-color: $color-white;
53
+ border: 1px solid $color-primary;
54
+
55
+ &:hover {
56
+ color: $color-white;
57
+ background-color: $color-primary;
58
+ }
59
+
60
+ &:active,
61
+ &:focus {
62
+ color: $color-white;
63
+ background-color: $color-primary-active;
64
+ border-color: $color-primary-active;
65
+ }
66
+ }
67
+
68
+ &_darkblue {
69
+ background-color: #546E7A;
70
+
71
+ &:hover {
72
+ background-color: #7596A5;
73
+ }
74
+
75
+ &:active,
76
+ &:focus {
77
+ background-color: #283239;
78
+ }
79
+ }
80
+
81
+ &_darkblue-lined {
82
+ color: $color-secondary-light;
83
+ background-color: $color-white;
84
+ border: 1px solid $color-secondary-light;
85
+
86
+ &:hover {
87
+ color: $color-white;
88
+ background-color: $color-secondary-light;
89
+ }
90
+
91
+ &:active,
92
+ &:focus {
93
+ color: $color-white;
94
+ background-color: #343031;
95
+ border-color: #343031;
96
+ }
97
+ }
98
+
99
+ &_green {
100
+ background-color: $color-success;
101
+
102
+ &:hover {
103
+ background-color: #4cd2a2;
104
+ }
105
+
106
+ &:active,
107
+ &:focus {
108
+ background-color: #1c9e6e;
109
+ }
110
+ }
111
+
112
+ &_green-lined {
113
+ color: $color-success;
114
+ background-color: $color-white;
115
+ border: 1px solid $color-success;
116
+
117
+ &:hover {
118
+ color: $color-white;
119
+ background-color: $color-success;
120
+ }
121
+
122
+ &:active,
123
+ &:focus {
124
+ color: $color-white;
125
+ background-color: #1c9e6e;
126
+ border-color: #1c9e6e;
127
+ }
128
+ }
129
+
130
+ &_red {
131
+ color: $color-white;
132
+ background-color: $color-error;
133
+
134
+ &:hover {
135
+ background-color: $color-error-hover;
136
+ }
137
+
138
+ &:active,
139
+ &:focus {
140
+ background-color: $color-error-active;
141
+ }
142
+ }
143
+
144
+ &_purple {
145
+ background-color: $color-bonus;
146
+
147
+ &:hover {
148
+ background-color: #d255be;
149
+ }
150
+
151
+ &:active,
152
+ &:focus {
153
+ background-color: #9f228b;
154
+ }
155
+ }
156
+
157
+ &_white {
158
+ background-color: transparent;
159
+ border: 1px solid $color-white;
160
+
161
+ &:hover {
162
+ color: $color-secondary-light;
163
+ background-color: $color-white;
164
+ }
165
+
166
+ &:active,
167
+ &:focus {
168
+ color: $color-white;
169
+ background-color: transparent;
170
+ }
171
+ }
172
+
173
+ /* COLORS */
174
+
175
+
176
+ &_small {
177
+ min-width: 72px;
178
+ height: 32px;
179
+ padding: 0 16px;
180
+ font-size: 14px;
181
+ }
182
+
183
+ &_large {
184
+ min-width: 120px;
185
+ height: 56px;
186
+ padding: 0 40px;
187
+ font-size: 18px;
188
+ }
189
+
190
+ /* SIZES */
191
+
192
+
193
+ /*with icon*/
194
+ &_icon {
195
+ display: inline-flex;
196
+ align-items: center;
197
+ padding-right: 22px;
198
+ padding-left: 22px;
199
+ }
200
+
201
+ &_loading {
202
+ position: relative;
203
+ pointer-events: none;
204
+ }
205
+
206
+ &__dots {
207
+ position: absolute;
208
+ top: 50%;
209
+ left: 50%;
210
+ margin-top: -5px;
211
+ margin-left: -30px;
212
+ }
213
+
214
+ &__dot {
215
+ float: left;
216
+ width: $dot-size;
217
+ height: $dot-size;
218
+ margin: 0 5px;
219
+ background: currentColor;
220
+ border-radius: 50%;
221
+ transform: scale(0);
222
+ @include animation();
223
+
224
+ &:nth-child(2) {
225
+ @include animation($animation-speed * 0.3);
226
+ }
227
+
228
+ &:nth-child(3) {
229
+ @include animation($animation-speed * 0.6);
230
+ }
231
+ }
232
+ }
233
+