@formixru/b2b-ui 3.0.6 → 3.2.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/package.json +3 -1
- package/src/components/button/index.scss +6 -2
- package/src/components/form/index.js +2 -1
- package/src/components/quantity-input/index.scss +2 -8
- package/src/components/quantity-input/index.vue +1 -0
- package/src/components/sidebar/index.scss +0 -20
- package/src/components/slider-nav/index.scss +10 -10
- package/src/components/tabs/index.js +13 -20
- package/src/components/warning-message/index.scss +16 -60
- package/src/components/warning-message/index.vue +2 -1
- package/src/utils/error-handler.js +2 -6
- package/src/variables.scss +20 -24
- package/src/utils/scroll-to.js +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formixru/b2b-ui",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@advdominion/eslint-config": "^1.1.2",
|
|
27
27
|
"@advdominion/get-scrollbar-width": "^2.0.1",
|
|
28
28
|
"@advdominion/pluralize": "^1.0.2",
|
|
29
|
+
"@advdominion/scroll-to": "^1.0.0",
|
|
29
30
|
"@advdominion/tooltip": "^6.0.0",
|
|
30
31
|
"@floating-ui/dom": "^1.7.4",
|
|
31
32
|
"@popperjs/core": "^2.11.8",
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"peerDependencies": {
|
|
71
72
|
"@advdominion/get-scrollbar-width": "^2.0.0",
|
|
72
73
|
"@advdominion/pluralize": "^1.0.0",
|
|
74
|
+
"@advdominion/scroll-to": "^1.0.0",
|
|
73
75
|
"@advdominion/tooltip": "^6.0.0",
|
|
74
76
|
"color": "^5.0.0",
|
|
75
77
|
"dayjs": "^1.0.0",
|
|
@@ -193,8 +193,8 @@ $b: '.button';
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
&_narrow {
|
|
196
|
-
min-width:
|
|
197
|
-
padding: 0
|
|
196
|
+
min-width: 72px;
|
|
197
|
+
padding: 0 16px;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
&_small {
|
|
@@ -211,6 +211,10 @@ $b: '.button';
|
|
|
211
211
|
|
|
212
212
|
&_only-icon {
|
|
213
213
|
@include only-icon;
|
|
214
|
+
|
|
215
|
+
&#{$b}_small {
|
|
216
|
+
@include only-icon($button-small-height);
|
|
217
|
+
}
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
&__icon {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* globals SmartCaptcha, SMART_CAPTCHA_KEY */
|
|
2
2
|
|
|
3
|
+
import { scrollTo } from '@advdominion/scroll-to';
|
|
4
|
+
|
|
3
5
|
import { getSmartCaptcha } from '../../utils/get-smart-captcha.js';
|
|
4
|
-
import { scrollTo } from '../../utils/scroll-to.js';
|
|
5
6
|
import { initRequestContent, request } from '../request/index.js';
|
|
6
7
|
|
|
7
8
|
const scrollToError = ($b = document.body) => {
|
|
@@ -123,7 +123,7 @@ $b: '.quantity-input';
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&__input {
|
|
126
|
-
appearance:
|
|
126
|
+
appearance: textfield;
|
|
127
127
|
background-color: $quantity-input-bg;
|
|
128
128
|
border-bottom: $quantity-input-border-width solid $quantity-input-border-color;
|
|
129
129
|
border-left-style: none;
|
|
@@ -142,15 +142,9 @@ $b: '.quantity-input';
|
|
|
142
142
|
|
|
143
143
|
@include font($quantity-input-font);
|
|
144
144
|
|
|
145
|
-
@media (--tablet-landscape-up) {
|
|
146
|
-
appearance: textfield;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
145
|
&::-webkit-inner-spin-button,
|
|
150
146
|
&::-webkit-outer-spin-button {
|
|
151
|
-
|
|
152
|
-
appearance: none;
|
|
153
|
-
}
|
|
147
|
+
appearance: none;
|
|
154
148
|
}
|
|
155
149
|
|
|
156
150
|
&:disabled {
|
|
@@ -55,7 +55,6 @@ $b: '.sidebar';
|
|
|
55
55
|
display: flex;
|
|
56
56
|
height: 4px * 14;
|
|
57
57
|
justify-content: center;
|
|
58
|
-
position: relative;
|
|
59
58
|
transition-duration: var(--duration-micro-s);
|
|
60
59
|
transition-property: background-color, color;
|
|
61
60
|
transition-timing-function: var(--easing-standard);
|
|
@@ -81,25 +80,6 @@ $b: '.sidebar';
|
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
|
|
84
|
-
&[data-notification] {
|
|
85
|
-
&::before {
|
|
86
|
-
align-items: center;
|
|
87
|
-
background-color: $sidebar-notification-bg;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
color: $sidebar-notification-color;
|
|
90
|
-
content: attr(data-notification);
|
|
91
|
-
display: flex;
|
|
92
|
-
height: 4px * 4;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
position: absolute;
|
|
95
|
-
right: 4px * 3;
|
|
96
|
-
top: 4px * 3;
|
|
97
|
-
width: 4px * 4;
|
|
98
|
-
|
|
99
|
-
@include font($sidebar-notification-font);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
83
|
&[data-sidebar-close] {
|
|
104
84
|
background-color: $sidebar-close-bg;
|
|
105
85
|
color: $sidebar-close-color;
|
|
@@ -10,21 +10,21 @@ $b: '.slider-nav';
|
|
|
10
10
|
border-radius: $slider-nav-button-radius;
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
display: flex;
|
|
13
|
-
height:
|
|
13
|
+
height: 32px;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
opacity: 1;
|
|
16
16
|
transition-duration: var(--duration-micro-s);
|
|
17
|
-
transition-property: border-color, color, opacity;
|
|
17
|
+
transition-property: background-color, border-color, color, opacity;
|
|
18
18
|
transition-timing-function: var(--easing-standard);
|
|
19
|
-
width:
|
|
19
|
+
width: 32px;
|
|
20
20
|
|
|
21
21
|
@media (--tablet-portrait-down) {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@media (--tablet-landscape-up) {
|
|
26
|
-
height:
|
|
27
|
-
width:
|
|
26
|
+
height: 48px;
|
|
27
|
+
width: 48px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&_disabled {
|
|
@@ -65,16 +65,16 @@ $b: '.slider-nav';
|
|
|
65
65
|
|
|
66
66
|
&__icon {
|
|
67
67
|
fill: currentcolor;
|
|
68
|
-
height:
|
|
69
|
-
width:
|
|
68
|
+
height: 16px;
|
|
69
|
+
width: 16px;
|
|
70
70
|
|
|
71
71
|
@media (--tablet-landscape-up) {
|
|
72
|
-
height:
|
|
73
|
-
width:
|
|
72
|
+
height: 24px;
|
|
73
|
+
width: 24px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
#{$b}__button_prev & {
|
|
77
|
-
transform: translateX(-
|
|
77
|
+
transform: translateX(-1px);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
#{$b}__button_next & {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* globals BX */
|
|
2
2
|
|
|
3
|
+
import { scrollTo } from '@advdominion/scroll-to';
|
|
4
|
+
|
|
3
5
|
import { cssVar } from '../../utils/css-var.js';
|
|
4
6
|
import { errorHandler } from '../../utils/error-handler.js';
|
|
5
7
|
import { isInViewport } from '../../utils/is-in-viewport.js';
|
|
6
|
-
import { scrollTo } from '../../utils/scroll-to.js';
|
|
7
8
|
import { hide as hideLoader, show as showLoader } from '../loader/index.js';
|
|
8
9
|
|
|
9
10
|
const setLeftWidth = async ($line, $el) => {
|
|
@@ -21,18 +22,16 @@ const setLeftWidth = async ($line, $el) => {
|
|
|
21
22
|
|
|
22
23
|
export const setInitLineStyles = ($b) => {
|
|
23
24
|
const $nav = $b.querySelector('.tabs__nav');
|
|
24
|
-
const $
|
|
25
|
+
const $items = $nav.querySelectorAll('.tabs__item');
|
|
25
26
|
const $line = $nav.querySelector('.tabs__line');
|
|
26
27
|
|
|
27
|
-
const $el = [...$
|
|
28
|
+
const $el = [...$items].find((el) => {
|
|
28
29
|
return el.disabled || (el.tagName !== 'BUTTON' && !el.href);
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
setLeftWidth($line, $el);
|
|
32
33
|
// Прокручиваем до нужного таба
|
|
33
|
-
|
|
34
|
-
$nav.swiper.slideTo([...$item].indexOf($el));
|
|
35
|
-
}
|
|
34
|
+
$nav.swiper?.slideTo([...$items].indexOf($el));
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
const initTabsContent = ($b) => {
|
|
@@ -46,14 +45,14 @@ const initTabsContent = ($b) => {
|
|
|
46
45
|
export const init = async ($b) => {
|
|
47
46
|
const $nav = $b.querySelector('.tabs__nav');
|
|
48
47
|
const $list = $nav.querySelector('.tabs__list');
|
|
49
|
-
const $
|
|
48
|
+
const $items = $nav.querySelectorAll('.tabs__item');
|
|
50
49
|
const $line = $nav.querySelector('.tabs__line');
|
|
51
50
|
const $content = $b.querySelectorAll('.tabs__content');
|
|
52
51
|
|
|
53
52
|
// Переключаем табы и меняем стили для линии
|
|
54
53
|
const handleItemClick = async (e) => {
|
|
55
54
|
const $el = e.currentTarget;
|
|
56
|
-
const index = [...$
|
|
55
|
+
const index = [...$items].indexOf($el);
|
|
57
56
|
if ($el.tagName === 'BUTTON') {
|
|
58
57
|
if ($el.dataset.tabsFetch && $content[index].innerHTML.trim() === '') {
|
|
59
58
|
showLoader();
|
|
@@ -73,7 +72,7 @@ export const init = async ($b) => {
|
|
|
73
72
|
// Вставляем полученный HTML
|
|
74
73
|
$content[index].innerHTML = data;
|
|
75
74
|
// Переключаем таб
|
|
76
|
-
for (const i of $
|
|
75
|
+
for (const i of $items) i.disabled = false;
|
|
77
76
|
$el.disabled = true;
|
|
78
77
|
for (const [i, c] of $content.entries()) {
|
|
79
78
|
if (i === index) {
|
|
@@ -102,7 +101,7 @@ export const init = async ($b) => {
|
|
|
102
101
|
}
|
|
103
102
|
} else {
|
|
104
103
|
// Переключаем таб
|
|
105
|
-
for (const i of $
|
|
104
|
+
for (const i of $items) i.disabled = false;
|
|
106
105
|
$el.disabled = true;
|
|
107
106
|
for (const [i, c] of $content.entries()) {
|
|
108
107
|
if (i === index) {
|
|
@@ -135,14 +134,14 @@ export const init = async ($b) => {
|
|
|
135
134
|
|
|
136
135
|
if ($nav.swiper) {
|
|
137
136
|
$nav.swiper.destroy();
|
|
138
|
-
for (const i of $
|
|
137
|
+
for (const i of $items) i.removeEventListener('click', handleItemClick);
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
const { default: Swiper } = await import('swiper');
|
|
142
141
|
|
|
143
142
|
$nav.classList.add('swiper');
|
|
144
143
|
$list.classList.add('swiper-wrapper');
|
|
145
|
-
for (const i of $
|
|
144
|
+
for (const i of $items) i.classList.add('swiper-slide');
|
|
146
145
|
|
|
147
146
|
new Swiper($nav, {
|
|
148
147
|
speed: cssVar('--duration-effect-s'),
|
|
@@ -150,6 +149,7 @@ export const init = async ($b) => {
|
|
|
150
149
|
freeMode: true,
|
|
151
150
|
on: {
|
|
152
151
|
init() {
|
|
152
|
+
setInitLineStyles($b); // Устанавливаем стили для линии при загрузке страницы
|
|
153
153
|
if (!this.isBeginning) {
|
|
154
154
|
$nav.classList.toggle('tabs__nav_shadow-start', true);
|
|
155
155
|
}
|
|
@@ -168,14 +168,7 @@ export const init = async ($b) => {
|
|
|
168
168
|
},
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
if ($line) {
|
|
173
|
-
setTimeout(() => {
|
|
174
|
-
setInitLineStyles($b);
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
for (const i of $item) i.addEventListener('click', handleItemClick);
|
|
171
|
+
for (const i of $items) i.addEventListener('click', handleItemClick);
|
|
179
172
|
};
|
|
180
173
|
|
|
181
174
|
document.body.addEventListener('click', async (e) => {
|
|
@@ -7,6 +7,7 @@ $b: '.warning-message';
|
|
|
7
7
|
background-color: $warning-message-bg;
|
|
8
8
|
border-radius: $warning-message-radius;
|
|
9
9
|
box-shadow: $warning-message-shadow;
|
|
10
|
+
color: $warning-message-color;
|
|
10
11
|
display: flex;
|
|
11
12
|
padding: 16px 16px 24px;
|
|
12
13
|
|
|
@@ -26,34 +27,43 @@ $b: '.warning-message';
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
&_success {
|
|
30
|
+
color: $warning-message-success-color;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
&_info {
|
|
34
|
+
color: $warning-message-info-color;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
&_light-info {
|
|
38
|
+
color: $warning-message-light-info-color;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
&_error {
|
|
42
|
+
color: $warning-message-error-color;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
&_solid {
|
|
41
|
-
background-color: $warning-message-
|
|
46
|
+
background-color: $warning-message-solid-bg;
|
|
47
|
+
color: $warning-message-solid-color;
|
|
42
48
|
|
|
43
49
|
&#{$b}_success {
|
|
44
|
-
background-color: $warning-message-success-
|
|
50
|
+
background-color: $warning-message-solid-success-bg;
|
|
51
|
+
color: $warning-message-solid-success-color;
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
&#{$b}_info {
|
|
48
|
-
background-color: $warning-message-info-
|
|
55
|
+
background-color: $warning-message-solid-info-bg;
|
|
56
|
+
color: $warning-message-solid-info-color;
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
&#{$b}_light-info {
|
|
52
|
-
background-color: $warning-message-light-info-
|
|
60
|
+
background-color: $warning-message-solid-light-info-bg;
|
|
61
|
+
color: $warning-message-solid-light-info-color;
|
|
53
62
|
}
|
|
54
63
|
|
|
55
64
|
&#{$b}_error {
|
|
56
|
-
background-color: $warning-message-error-
|
|
65
|
+
background-color: $warning-message-solid-error-bg;
|
|
66
|
+
color: $warning-message-solid-error-color;
|
|
57
67
|
}
|
|
58
68
|
}
|
|
59
69
|
|
|
@@ -138,49 +148,11 @@ $b: '.warning-message';
|
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
&__title {
|
|
141
|
-
color: $warning-message-color;
|
|
142
|
-
|
|
143
151
|
@include font($warning-message-title-font);
|
|
144
152
|
|
|
145
153
|
#{$b}_small & {
|
|
146
154
|
@include font($warning-message-small-title-font);
|
|
147
155
|
}
|
|
148
|
-
|
|
149
|
-
#{$b}_solid & {
|
|
150
|
-
color: $warning-message-solid-color;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
#{$b}_success & {
|
|
154
|
-
color: $warning-message-success-color;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
#{$b}_solid#{$b}_success & {
|
|
158
|
-
color: $warning-message-solid-success-color;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
#{$b}_info & {
|
|
162
|
-
color: $warning-message-info-color;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
#{$b}_solid#{$b}_info & {
|
|
166
|
-
color: $warning-message-solid-info-color;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
#{$b}_light-info & {
|
|
170
|
-
color: $warning-message-light-info-color;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
#{$b}_solid#{$b}_light-info & {
|
|
174
|
-
color: $warning-message-solid-light-info-color;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
#{$b}_error & {
|
|
178
|
-
color: $warning-message-error-color;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
#{$b}_solid#{$b}_error & {
|
|
182
|
-
color: $warning-message-solid-error-color;
|
|
183
|
-
}
|
|
184
156
|
}
|
|
185
157
|
|
|
186
158
|
&__descr {
|
|
@@ -197,23 +169,7 @@ $b: '.warning-message';
|
|
|
197
169
|
}
|
|
198
170
|
|
|
199
171
|
#{$b}_solid & {
|
|
200
|
-
color:
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
#{$b}_solid#{$b}_success & {
|
|
204
|
-
color: $warning-message-solid-success-descr-color;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
#{$b}_solid#{$b}_info & {
|
|
208
|
-
color: $warning-message-solid-info-descr-color;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
#{$b}_solid#{$b}_light-info & {
|
|
212
|
-
color: $warning-message-solid-light-info-descr-color;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
#{$b}_solid#{$b}_error & {
|
|
216
|
-
color: $warning-message-solid-error-descr-color;
|
|
172
|
+
color: inherit;
|
|
217
173
|
}
|
|
218
174
|
}
|
|
219
175
|
|
|
@@ -42,15 +42,11 @@ export const errorHandler = async (error) => {
|
|
|
42
42
|
}
|
|
43
43
|
const $descr = $dialog.querySelector('.dialog__descr');
|
|
44
44
|
$descr.innerHTML = content;
|
|
45
|
-
$descr.style =
|
|
46
|
-
overflow: auto;
|
|
47
|
-
`;
|
|
45
|
+
$descr.style.overflow = 'auto';
|
|
48
46
|
$dialog.addEventListener(
|
|
49
47
|
'dialog-hidden',
|
|
50
48
|
() => {
|
|
51
|
-
$descr.style =
|
|
52
|
-
overflow: '';
|
|
53
|
-
`;
|
|
49
|
+
$descr.style.overflow = '';
|
|
54
50
|
},
|
|
55
51
|
{
|
|
56
52
|
once: true,
|
package/src/variables.scss
CHANGED
|
@@ -939,10 +939,6 @@ $sidebar-active-button-label-color: $sidebar-active-button-color !default;
|
|
|
939
939
|
$sidebar-close-bg: $sidebar-button-bg !default;
|
|
940
940
|
$sidebar-close-color: $color-grey-20 !default;
|
|
941
941
|
|
|
942
|
-
$sidebar-notification-bg: $color-error !default;
|
|
943
|
-
$sidebar-notification-color: $color-white !default;
|
|
944
|
-
$sidebar-notification-font: ('font-weight': bold, 'font-size': $font-size-3xs, 'line-height': 1) !default;
|
|
945
|
-
|
|
946
942
|
$sidebar-header-separator-color: autocolor(('light': $color-grey-alpha-80, 'dark': $color-grey-alpha-i-90), $sidebar-bg) !default;
|
|
947
943
|
$sidebar-header-separator-width: 1px !default;
|
|
948
944
|
$sidebar-header-icon-border-color: $color-primary !default;
|
|
@@ -1029,15 +1025,20 @@ $warning-message-color: $color-warning !default;
|
|
|
1029
1025
|
|
|
1030
1026
|
$warning-message-small-shadow: $shadow-s !default;
|
|
1031
1027
|
|
|
1032
|
-
$warning-message-solid-color: $font-color-inverted !default;
|
|
1033
|
-
|
|
1034
1028
|
$warning-message-success-color: $color-success !default;
|
|
1035
|
-
$warning-message-solid-success-color: $warning-message-solid-color !default;
|
|
1036
1029
|
$warning-message-info-color: $color-primary !default;
|
|
1030
|
+
$warning-message-light-info-color: $color-primary-70 !default;
|
|
1031
|
+
$warning-message-error-color: $color-error !default;
|
|
1032
|
+
|
|
1033
|
+
$warning-message-solid-bg: $warning-message-color !default;
|
|
1034
|
+
$warning-message-solid-color: $font-color-inverted !default;
|
|
1035
|
+
$warning-message-solid-success-bg: $warning-message-success-color !default;
|
|
1036
|
+
$warning-message-solid-success-color: $warning-message-solid-color !default;
|
|
1037
|
+
$warning-message-solid-info-bg: $warning-message-info-color !default;
|
|
1037
1038
|
$warning-message-solid-info-color: $warning-message-solid-color !default;
|
|
1038
|
-
$warning-message-light-info-
|
|
1039
|
+
$warning-message-solid-light-info-bg: $color-primary-80 !default;
|
|
1039
1040
|
$warning-message-solid-light-info-color: $font-color-secondary !default;
|
|
1040
|
-
$warning-message-error-
|
|
1041
|
+
$warning-message-solid-error-bg: $warning-message-error-color !default;
|
|
1041
1042
|
$warning-message-solid-error-color: $warning-message-solid-color !default;
|
|
1042
1043
|
|
|
1043
1044
|
$warning-message-title-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
@@ -1047,22 +1048,17 @@ $warning-message-descr-font: ('font-size': $font-size, 'line-height': $line-heig
|
|
|
1047
1048
|
$warning-message-small-descr-font: ('font-size': $font-size-xs, 'line-height': $line-height) !default;
|
|
1048
1049
|
|
|
1049
1050
|
$warning-message-descr-color: $font-color-secondary !default;
|
|
1050
|
-
|
|
1051
|
-
$warning-message-
|
|
1052
|
-
$warning-message-solid-
|
|
1053
|
-
$warning-message-
|
|
1054
|
-
$warning-message-solid-
|
|
1055
|
-
|
|
1056
|
-
$warning-message-icon-color: $warning-message-solid-color !default;
|
|
1057
|
-
$warning-message-
|
|
1058
|
-
$warning-message-success-icon-color: $warning-message-solid-success-color !default;
|
|
1059
|
-
$warning-message-solid-success-icon-color: $warning-message-success-icon-color !default;
|
|
1060
|
-
$warning-message-info-icon-color: $warning-message-solid-info-color !default;
|
|
1061
|
-
$warning-message-solid-info-icon-color: $warning-message-info-icon-color !default;
|
|
1062
|
-
$warning-message-light-info-icon-color: $color-primary-70 !default;
|
|
1051
|
+
|
|
1052
|
+
$warning-message-icon-color: $warning-message-color !default;
|
|
1053
|
+
$warning-message-solid-icon-color: $warning-message-solid-color !default;
|
|
1054
|
+
$warning-message-success-icon-color: $warning-message-success-color !default;
|
|
1055
|
+
$warning-message-solid-success-icon-color: $warning-message-solid-success-color !default;
|
|
1056
|
+
$warning-message-info-icon-color: $warning-message-info-color !default;
|
|
1057
|
+
$warning-message-solid-info-icon-color: $warning-message-solid-info-color !default;
|
|
1058
|
+
$warning-message-light-info-icon-color: $warning-message-light-info-color !default;
|
|
1063
1059
|
$warning-message-solid-light-info-icon-color: $color-primary !default;
|
|
1064
|
-
$warning-message-error-icon-color: $warning-message-
|
|
1065
|
-
$warning-message-solid-error-icon-color: $warning-message-error-
|
|
1060
|
+
$warning-message-error-icon-color: $warning-message-error-color !default;
|
|
1061
|
+
$warning-message-solid-error-icon-color: $warning-message-solid-error-color !default;
|
|
1066
1062
|
|
|
1067
1063
|
/********** Панель пустого состояния (.empty-list) **********/
|
|
1068
1064
|
|
package/src/utils/scroll-to.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export const scrollTo = ($el, offset = 0) => {
|
|
2
|
-
return new Promise((resolve) => {
|
|
3
|
-
const observer = new IntersectionObserver((entries) => {
|
|
4
|
-
if (entries[0].isIntersecting) {
|
|
5
|
-
observer.disconnect();
|
|
6
|
-
setTimeout(() => {
|
|
7
|
-
resolve();
|
|
8
|
-
}, 500);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
observer.observe($el);
|
|
12
|
-
|
|
13
|
-
const elementTop = $el.getBoundingClientRect().top + window.pageYOffset;
|
|
14
|
-
const offsetValue = (window.innerHeight * offset) / 100;
|
|
15
|
-
|
|
16
|
-
window.scrollTo({
|
|
17
|
-
top: elementTop - offsetValue,
|
|
18
|
-
behavior: 'smooth',
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
};
|