@webitel/ui-sdk 1.0.9 → 1.0.13
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/CHANGELOG.md +2 -0
- package/dist/ui-sdk.common.js +2545 -1339
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +2545 -1339
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +7 -5
- package/src/components/molecules/wt-datetimepicker/__tests__/WtDatetimepicker.spec.js +7 -7
- package/src/components/organisms/wt-pagination/wt-pagination.vue +9 -7
- package/src/components/organisms/wt-player/wt-player.vue +2 -2
- package/src/css/components/molecules/wt-popup/_variables.scss +1 -1
- package/src/css/components/organisms/wt-player/_variables.scss +1 -1
- package/src/css/styleguide/colors/_colors.scss +1 -1
- package/src/css/styleguide/typography/_typography.scss +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve-lib": "vue-cli-service serve",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"build:app": "vue-cli-service build",
|
|
9
9
|
"test:unit": "vue-cli-service test:unit",
|
|
10
10
|
"lint": "vue-cli-service lint --fix",
|
|
11
|
-
"publish": "npm run test:unit && npm run build && npm publish --access public"
|
|
11
|
+
"publish-lib": "npm run test:unit && npm run build && npm publish --access public",
|
|
12
|
+
"prepare": "husky install"
|
|
12
13
|
},
|
|
13
14
|
"main": "./dist/@webitel/ui-sdk.common.js",
|
|
14
15
|
"files": [
|
|
@@ -44,14 +45,14 @@
|
|
|
44
45
|
"webitel-sdk": "^0.1.91"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@testing-library/jest-dom": "^5.
|
|
48
|
+
"@testing-library/jest-dom": "^5.16.2",
|
|
48
49
|
"@vue/cli-plugin-babel": "~4.4.0",
|
|
49
50
|
"@vue/cli-plugin-eslint": "~4.4.0",
|
|
50
51
|
"@vue/cli-plugin-router": "^4.5.4",
|
|
51
52
|
"@vue/cli-plugin-unit-jest": "~4.4.0",
|
|
52
53
|
"@vue/cli-service": "~4.4.0",
|
|
53
54
|
"@vue/eslint-config-airbnb": "^5.0.2",
|
|
54
|
-
"@vue/test-utils": "^1.0
|
|
55
|
+
"@vue/test-utils": "^1.3.0",
|
|
55
56
|
"babel-eslint": "^10.1.0",
|
|
56
57
|
"eslint": "^6.7.2",
|
|
57
58
|
"eslint-plugin-import": "^2.20.2",
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"sass-loader": "^10.2.0",
|
|
60
61
|
"svg-url-loader": "^6.0.0",
|
|
61
62
|
"vue-template-compiler": "^2.6.11",
|
|
62
|
-
"vuex": "^3.6.2"
|
|
63
|
+
"vuex": "^3.6.2",
|
|
64
|
+
"husky": "^7.0.0"
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -33,17 +33,17 @@ describe('WtDatetimepicker', () => {
|
|
|
33
33
|
|
|
34
34
|
it('opens form at preview click', async () => {
|
|
35
35
|
const wrapper = shallowMount(WtDatetimepicker, {
|
|
36
|
-
stubs: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
36
|
+
// stubs: {
|
|
37
|
+
// WtLabel,
|
|
38
|
+
// WtIcon,
|
|
39
|
+
// WtButton,
|
|
40
|
+
// WtTimepicker: true,
|
|
41
|
+
// },
|
|
42
42
|
});
|
|
43
43
|
expect(wrapper.find('.wt-datetimepicker__form').element).not.toBeVisible();
|
|
44
44
|
wrapper.find('.wt-datetimepicker__preview').trigger('click');
|
|
45
45
|
await wrapper.vm.$nextTick();
|
|
46
|
-
expect(wrapper.find('.wt-datetimepicker__form').
|
|
46
|
+
expect(wrapper.find('.wt-datetimepicker__form').isVisible()).toBe(true);
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
it('Triggers change event after button "add" click', async () => {
|
|
@@ -3,27 +3,29 @@
|
|
|
3
3
|
<div class="wt-pagination__size">
|
|
4
4
|
<div class="wt-pagination__size-text">{{ $t('webitelUI.pagination.sizeText') }}</div>
|
|
5
5
|
<wt-input
|
|
6
|
-
|
|
6
|
+
:number-max="1000"
|
|
7
|
+
:number-min="1"
|
|
7
8
|
:value="size"
|
|
9
|
+
class="wt-pagination__size-input"
|
|
8
10
|
type="number"
|
|
9
|
-
:number-min="1"
|
|
10
|
-
:number-max="1000"
|
|
11
11
|
@input="inputHandler"
|
|
12
12
|
></wt-input>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="wt-pagination__page-controls">
|
|
15
15
|
<wt-icon-btn
|
|
16
|
+
:disabled="!prev"
|
|
17
|
+
:tooltip="$t('webitelUI.pagination.prev')"
|
|
16
18
|
class="wt-pagination__page-control"
|
|
17
19
|
icon="arrow-left"
|
|
18
|
-
|
|
19
|
-
:disabled="!prev"
|
|
20
|
+
tooltip-position="left"
|
|
20
21
|
@click="goPrev"
|
|
21
22
|
></wt-icon-btn>
|
|
22
23
|
<wt-icon-btn
|
|
24
|
+
:disabled="!next"
|
|
25
|
+
:tooltip="$t('webitelUI.pagination.next')"
|
|
23
26
|
class="wt-pagination__page-control"
|
|
24
27
|
icon="arrow-right"
|
|
25
|
-
|
|
26
|
-
:disabled="!next"
|
|
28
|
+
tooltip-position="left"
|
|
27
29
|
@click="goNext"
|
|
28
30
|
></wt-icon-btn>
|
|
29
31
|
</div>
|
|
@@ -116,8 +116,8 @@ export default {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
&__close-icon {
|
|
119
|
-
transform: translate(var(--player-close-icon-transform-translate-x),
|
|
120
|
-
|
|
119
|
+
//transform: translate(var(--player-close-icon-transform-translate-x),
|
|
120
|
+
// var(--player-close-icon-transform-translate-y));
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.plyr__control:hover, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
--plyr-color-main: var(--accent-color);
|
|
3
3
|
--plyr-audio-control-color: var(--icon-primary-color);
|
|
4
4
|
// --plyr-control-toggle-checked-background: var(--main-color);
|
|
5
|
-
--player-close-icon-transform-translate-x: var(--spacing-
|
|
5
|
+
--player-close-icon-transform-translate-x: var(--spacing-md);
|
|
6
6
|
// "-1 * var" for use the negative value of a variable
|
|
7
7
|
--player-close-icon-transform-translate-y: calc(-1 * var(--spacing-md));
|
|
8
8
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
--_main-color: var(--_accent-color-hue), 20%, 99%;
|
|
23
23
|
--_contrast-color: var(--_accent-color-hue), 20%, 1%;
|
|
24
24
|
--_secondary-color: var(--_secondary-color-hue), 20%, 90%;
|
|
25
|
-
--_secondary-color-50: var(--_secondary-color-hue), 22%,
|
|
25
|
+
--_secondary-color-50: var(--_secondary-color-hue), 22%, 96%;
|
|
26
26
|
--_page-bg-color: var(--_page-bg-color-hue), 20%, 95%;
|
|
27
27
|
--_header-color: var(--_page-bg-color-hue), 20%, 90%;
|
|
28
28
|
--_positive-color: var(--_positive-color-hue), 60%, 40%;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
weight: 600;
|
|
7
7
|
}
|
|
8
8
|
line-height: 48px;
|
|
9
|
-
letter-spacing: 0.28px; // 0.02em
|
|
9
|
+
//letter-spacing: 0.28px; // 0.02em
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
%typo-heading-2 {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
weight: 600;
|
|
17
17
|
}
|
|
18
18
|
line-height: 40px;
|
|
19
|
-
letter-spacing: 0.28px; // 0.02em
|
|
19
|
+
//letter-spacing: 0.28px; // 0.02em
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
%typo-heading-3 {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
weight: 600;
|
|
27
27
|
}
|
|
28
28
|
line-height: 32px;
|
|
29
|
-
letter-spacing: 0.28px; // 0.02em
|
|
29
|
+
//letter-spacing: 0.28px; // 0.02em
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
%typo-subtitle-1 {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
weight: 500;
|
|
37
37
|
}
|
|
38
38
|
line-height: 24px;
|
|
39
|
-
letter-spacing: 0.28px; // 0.02em
|
|
39
|
+
//letter-spacing: 0.28px; // 0.02em
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
%typo-subtitle-2 {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
weight: 500;
|
|
47
47
|
}
|
|
48
48
|
line-height: 20px;
|
|
49
|
-
letter-spacing: 0.28px; // 0.02em
|
|
49
|
+
//letter-spacing: 0.28px; // 0.02em
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
%typo-body-1 {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
weight: 400;
|
|
57
57
|
}
|
|
58
58
|
line-height: 24px;
|
|
59
|
-
letter-spacing: 0.56px; // 0.04em
|
|
59
|
+
//letter-spacing: 0.56px; // 0.04em
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
%typo-body-2 {
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
weight: 400;
|
|
67
67
|
}
|
|
68
68
|
line-height: 20px;
|
|
69
|
-
letter-spacing: 0.16px; // 0.01em
|
|
69
|
+
//letter-spacing: 0.16px; // 0.01em
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
%typo-button {
|
|
73
73
|
font: {
|
|
74
74
|
family: 'Montserrat', monospace;
|
|
75
75
|
size: 12px;
|
|
76
|
-
weight:
|
|
76
|
+
weight: 600;
|
|
77
77
|
}
|
|
78
78
|
text-transform: uppercase;
|
|
79
79
|
line-height: 24px;
|
|
80
|
-
letter-spacing: 0.96px; // 0.06em
|
|
80
|
+
//letter-spacing: 0.96px; // 0.06em
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
%typo-caption {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
weight: 400;
|
|
88
88
|
}
|
|
89
89
|
line-height: 16px;
|
|
90
|
-
letter-spacing: 0.48px; // 0.03em
|
|
90
|
+
//letter-spacing: 0.48px; // 0.03em
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
%typo-overline {
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
}
|
|
99
99
|
line-height: 20px;
|
|
100
100
|
text-transform: uppercase;
|
|
101
|
-
letter-spacing: 2.56px; // 0.16em
|
|
101
|
+
//letter-spacing: 2.56px; // 0.16em
|
|
102
102
|
}
|