@webitel/ui-sdk 0.9.66 → 1.0.3
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 +42 -0
- package/dist/fonts/Montserrat-Black.27e3649b.ttf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.d9b6ba59.ttf +0 -0
- package/dist/fonts/Montserrat-Bold.ade91f47.ttf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.1b384149.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.19ba7aa5.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.52a50ca0.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.570a244c.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.1170df55.ttf +0 -0
- package/dist/fonts/Montserrat-Italic.a7063e0c.ttf +0 -0
- package/dist/fonts/Montserrat-Light.409c7f79.ttf +0 -0
- package/dist/fonts/Montserrat-LightItalic.01c4560c.ttf +0 -0
- package/dist/fonts/Montserrat-Medium.c8b6e083.ttf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.40a74702.ttf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.83c1ec1f.ttf +0 -0
- package/dist/fonts/Montserrat-Thin.43dd5b7a.ttf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.3c2b290f.ttf +0 -0
- package/dist/ui-sdk.common.js +943 -924
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +943 -924
- 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 +4 -4
- package/src/components/atoms/wt-button/wt-button.vue +187 -150
- package/src/components/atoms/wt-chip/__tests__/WtChip.spec.js +19 -0
- package/src/components/atoms/{wt-badge/wt-badge.vue → wt-chip/wt-chip.vue} +4 -4
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +4 -0
- package/src/components/atoms/wt-indicator/wt-indicator.vue +39 -6
- package/src/components/atoms/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +34 -153
- package/src/components/atoms/wt-loader/wt-loader.vue +2 -4
- package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +0 -11
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +27 -179
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +2 -2
- package/src/components/index.js +2 -2
- package/src/components/molecules/wt-button-select/wt-button-select.vue +2 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +59 -62
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +2 -7
- package/src/components/molecules/wt-input/wt-input.vue +4 -25
- package/src/components/molecules/wt-label/wt-label.vue +5 -2
- package/src/components/molecules/wt-notification/wt-notification.vue +3 -2
- package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/molecules/wt-popup/wt-popup.vue +26 -28
- package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +3 -4
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -2
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +4 -20
- package/src/components/molecules/wt-select/wt-select.vue +26 -28
- package/src/components/molecules/wt-tabs/wt-tabs.vue +6 -18
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +31 -25
- package/src/components/molecules/wt-textarea/wt-textarea.vue +6 -17
- package/src/components/molecules/wt-time-input/wt-time-input.vue +1 -3
- package/src/components/molecules/wt-timepicker/wt-timepicker.vue +0 -3
- package/src/components/organisms/wt-app-header/wt-app-header.vue +1 -0
- package/src/components/organisms/wt-app-header/wt-app-navigator.vue +32 -33
- package/src/components/organisms/wt-app-header/wt-header-actions.vue +145 -144
- package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/organisms/wt-headline/wt-headline.vue +1 -2
- package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +8 -11
- package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +6 -14
- package/src/components/organisms/wt-pagination/wt-pagination.vue +5 -5
- package/src/components/organisms/wt-player/wt-player.vue +5 -5
- package/src/components/organisms/wt-status-select/wt-status-select.vue +24 -4
- package/src/components/organisms/wt-table/wt-table.vue +15 -12
- package/src/components/organisms/wt-table-actions/wt-table-actions.vue +2 -4
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/css/components/_components.scss +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +22 -24
- package/src/css/components/atoms/wt-chip/_variables.scss +7 -0
- package/src/css/components/atoms/{wt-badge/wt-badge.scss → wt-chip/wt-chip.scss} +8 -7
- package/src/css/components/atoms/wt-context-menu/_variables.scss +1 -1
- package/src/css/components/atoms/wt-divider/_variables.scss +1 -1
- package/src/css/components/atoms/wt-indicator/_variables.scss +6 -2
- package/src/css/components/atoms/wt-label/_variables.scss +0 -1
- package/src/css/components/atoms/wt-loader/_variables.scss +2 -2
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +3 -26
- package/src/css/components/atoms/wt-tooltip/_variables.scss +7 -5
- package/src/css/components/molecules/wt-button-select/_variables.scss +5 -8
- package/src/css/components/molecules/wt-checkbox/_variables.scss +1 -1
- package/src/css/components/molecules/wt-datepicker/_variables.scss +15 -14
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +20 -31
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +5 -5
- package/src/css/components/molecules/wt-input/_variables.scss +3 -3
- package/src/css/components/molecules/wt-notification/_variables.scss +4 -4
- package/src/css/components/molecules/wt-popup/_variables.scss +16 -8
- package/src/css/components/molecules/wt-progress-bar/_variables.scss +3 -3
- package/src/css/components/molecules/wt-radio/_variables.scss +1 -1
- package/src/css/components/molecules/wt-search-bar/_variables.scss +5 -1
- package/src/css/components/molecules/wt-select/_variables.scss +49 -13
- package/src/css/components/molecules/wt-switcher/_variables.scss +1 -1
- package/src/css/components/molecules/wt-tabs/_variables.scss +3 -3
- package/src/css/components/molecules/wt-tags-input/_variables.scss +6 -7
- package/src/css/components/molecules/wt-textarea/_variables.scss +9 -1
- package/src/css/components/molecules/wt-timepicker/_variables.scss +1 -1
- package/src/css/components/organisms/wt-app-header/_variables.scss +13 -9
- package/src/css/components/organisms/wt-headline/_variables.scss +3 -4
- package/src/css/components/organisms/wt-navigation-bar/_variables.scss +10 -10
- package/src/css/components/organisms/wt-notifications-bar/_variables.scss +2 -2
- package/src/css/components/organisms/wt-page-wrapper/_variables.scss +3 -3
- package/src/css/components/organisms/wt-pagination/_variables.scss +1 -3
- package/src/css/components/organisms/wt-player/_variables.scss +4 -4
- package/src/css/components/organisms/wt-status-select/_variables.scss +3 -3
- package/src/css/components/organisms/wt-table/_variables.scss +9 -9
- package/src/css/components/organisms/wt-table-actions/_variables.scss +2 -1
- package/src/css/main.scss +7 -5
- package/src/css/styleguide/_styleguide.scss +8 -3
- package/src/css/styleguide/border-radius/_border-radius.scss +4 -0
- package/src/css/{colors → styleguide/colors}/_colors.scss +6 -16
- package/src/css/{display-helpers → styleguide/display-helpers}/_display-helpers.scss +2 -0
- package/src/css/styleguide/elevations/_elevations.scss +13 -0
- package/src/css/styleguide/fonts/_fonts.scss +126 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +49 -0
- package/src/css/styleguide/spacings/_spacings.scss +15 -0
- package/src/css/styleguide/transitions/_transitions.scss +1 -0
- package/src/css/{transitions → styleguide/transitions}/fade/_fade.scss +0 -0
- package/src/css/styleguide/typography/_typography.scss +102 -0
- package/src/css/{sizes → styleguide/viewport-breakpoints}/_viewport-breakpoints.scss +0 -0
- package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +0 -19
- package/src/css/components/atoms/wt-badge/_variables.scss +0 -7
- package/src/css/fonts/_fonts.scss +0 -9
- package/src/css/shadows/_shadows.scss +0 -7
- package/src/css/sizes/_sizes.scss +0 -2
- package/src/css/sizes/_spacing.scss +0 -33
- package/src/css/transitions/_transitions.scss +0 -1
- package/src/css/typography/_typography.scss +0 -72
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
|
|
2
|
+
%typo-heading-1 {
|
|
3
|
+
font: {
|
|
4
|
+
family: 'Montserrat', monospace;
|
|
5
|
+
size: 32px;
|
|
6
|
+
weight: 600;
|
|
7
|
+
}
|
|
8
|
+
line-height: 48px;
|
|
9
|
+
letter-spacing: 0.28px; // 0.02em
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
%typo-heading-2 {
|
|
13
|
+
font: {
|
|
14
|
+
family: 'Montserrat', monospace;
|
|
15
|
+
size: 24px;
|
|
16
|
+
weight: 600;
|
|
17
|
+
}
|
|
18
|
+
line-height: 40px;
|
|
19
|
+
letter-spacing: 0.28px; // 0.02em
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%typo-heading-3 {
|
|
23
|
+
font: {
|
|
24
|
+
family: 'Montserrat', monospace;
|
|
25
|
+
size: 20px;
|
|
26
|
+
weight: 600;
|
|
27
|
+
}
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
letter-spacing: 0.28px; // 0.02em
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
%typo-subtitle-1 {
|
|
33
|
+
font: {
|
|
34
|
+
family: 'Montserrat', monospace;
|
|
35
|
+
size: 14px;
|
|
36
|
+
weight: 500;
|
|
37
|
+
}
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
letter-spacing: 0.28px; // 0.02em
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
%typo-subtitle-2 {
|
|
43
|
+
font: {
|
|
44
|
+
family: 'Montserrat', monospace;
|
|
45
|
+
size: 12px;
|
|
46
|
+
weight: 500;
|
|
47
|
+
}
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
letter-spacing: 0.28px; // 0.02em
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
%typo-body-1 {
|
|
53
|
+
font: {
|
|
54
|
+
family: 'Montserrat', monospace;
|
|
55
|
+
size: 14px;
|
|
56
|
+
weight: 400;
|
|
57
|
+
}
|
|
58
|
+
line-height: 24px;
|
|
59
|
+
letter-spacing: 0.56px; // 0.04em
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
%typo-body-2 {
|
|
63
|
+
font: {
|
|
64
|
+
family: 'Montserrat', monospace;
|
|
65
|
+
size: 12px;
|
|
66
|
+
weight: 400;
|
|
67
|
+
}
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
letter-spacing: 0.16px; // 0.01em
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
%typo-button {
|
|
73
|
+
font: {
|
|
74
|
+
family: 'Montserrat', monospace;
|
|
75
|
+
size: 12px;
|
|
76
|
+
weight: 500;
|
|
77
|
+
}
|
|
78
|
+
text-transform: uppercase;
|
|
79
|
+
line-height: 24px;
|
|
80
|
+
letter-spacing: 0.96px; // 0.06em
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
%typo-caption {
|
|
84
|
+
font: {
|
|
85
|
+
family: 'Montserrat', monospace;
|
|
86
|
+
size: 10px;
|
|
87
|
+
weight: 400;
|
|
88
|
+
}
|
|
89
|
+
line-height: 16px;
|
|
90
|
+
letter-spacing: 0.48px; // 0.03em
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
%typo-overline {
|
|
94
|
+
font: {
|
|
95
|
+
family: 'Montserrat', monospace;
|
|
96
|
+
size: 12px;
|
|
97
|
+
weight: 500;
|
|
98
|
+
}
|
|
99
|
+
line-height: 20px;
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
letter-spacing: 2.56px; // 0.16em
|
|
102
|
+
}
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { shallowMount } from '@vue/test-utils';
|
|
2
|
-
import WtBadge from '../wt-badge.vue';
|
|
3
|
-
|
|
4
|
-
describe('WtBadge', () => {
|
|
5
|
-
it('renders a component', () => {
|
|
6
|
-
const wrapper = shallowMount(WtBadge);
|
|
7
|
-
expect(wrapper.classes('wt-badge')).toBe(true);
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
it('renders a badge content via default slot', () => {
|
|
11
|
-
const content = 'badge content';
|
|
12
|
-
const wrapper = shallowMount(WtBadge, {
|
|
13
|
-
slots: {
|
|
14
|
-
default: content,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
expect(wrapper.find('.wt-badge').text()).toBe(content);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Montserrat Semi';
|
|
3
|
-
src: url('../../assets/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@font-face {
|
|
7
|
-
font-family: 'Montserrat Regular';
|
|
8
|
-
src: url('../../assets/fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--shadow-style-down-50: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05);
|
|
3
|
-
--shadow-style-down-100: 0px 0px 1px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
4
|
-
--shadow-style-up-50: 1px 1px 2px rgba(0, 0, 0, 0.08), inset 1px 1px 1px #FFFFFF, inset -1px -1px 1px rgba(0, 0, 0, 0.05);
|
|
5
|
-
--shadow-style-up-100: 1px 1px 2px rgba(0, 0, 0, 0.05), -1px -1px 5px #FFFFFF, inset 1px 1px 1px #FFFFFF, inset -1px -1px 3px rgba(0, 0, 0, 0.1);
|
|
6
|
-
--shadow-style-font: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//@import './viewport-breakpoints';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
// Start point
|
|
5
|
-
--_spacing-multiplicity: 4px;
|
|
6
|
-
|
|
7
|
-
// Spacings
|
|
8
|
-
--spacing--xs: calc(var(--_spacing-multiplicity) * 1);
|
|
9
|
-
--spacing--sm: calc(var(--_spacing-multiplicity) * 2);
|
|
10
|
-
--spacing--md: calc(var(--_spacing-multiplicity) * 3);
|
|
11
|
-
--spacing--lg: calc(var(--_spacing-multiplicity) * 4);
|
|
12
|
-
--spacing--xl: calc(var(--_spacing-multiplicity) * 5);
|
|
13
|
-
--spacing--2xl: calc(var(--_spacing-multiplicity) * 6);
|
|
14
|
-
--spacing--3xl: calc(var(--_spacing-multiplicity) * 7);
|
|
15
|
-
|
|
16
|
-
// Border radius
|
|
17
|
-
--border-radius: var(--spacing--xs);
|
|
18
|
-
|
|
19
|
-
// DEPRECATED
|
|
20
|
-
--component-padding: var(--spacing--lg);
|
|
21
|
-
--component-spacing: var(--spacing--lg);
|
|
22
|
-
--icon-spacing: var(--spacing--sm);
|
|
23
|
-
|
|
24
|
-
//@media (#{$media} and #{$media-width-sm}) {
|
|
25
|
-
// --component-padding: 10px;
|
|
26
|
-
// --component-spacing: 10px;
|
|
27
|
-
//}
|
|
28
|
-
//
|
|
29
|
-
//@media (#{$media} and #{$media-width-xs}) {
|
|
30
|
-
// --component-padding: 10px;
|
|
31
|
-
// --component-spacing: 1px;
|
|
32
|
-
//}
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "./fade/fade";
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
%typo-heading-lg {
|
|
3
|
-
font: {
|
|
4
|
-
family: 'Montserrat Semi', monospace;
|
|
5
|
-
size: 24px;
|
|
6
|
-
}
|
|
7
|
-
line-height: 30px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
%typo-heading-md {
|
|
11
|
-
font: {
|
|
12
|
-
family: 'Montserrat Semi', monospace;
|
|
13
|
-
size: 20px;
|
|
14
|
-
}
|
|
15
|
-
line-height: 30px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
%typo-heading-sm {
|
|
19
|
-
font: {
|
|
20
|
-
family: 'Montserrat Semi', monospace;
|
|
21
|
-
size: 18px;
|
|
22
|
-
}
|
|
23
|
-
line-height: 24px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
%typo-strong-lg {
|
|
27
|
-
font: {
|
|
28
|
-
family: 'Montserrat Semi', monospace;
|
|
29
|
-
size: 14px;
|
|
30
|
-
}
|
|
31
|
-
line-height: 18px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
%typo-strong-md {
|
|
35
|
-
font: {
|
|
36
|
-
family: 'Montserrat Semi', monospace;
|
|
37
|
-
size: 12px;
|
|
38
|
-
}
|
|
39
|
-
line-height: 14px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
%typo-strong-sm {
|
|
43
|
-
font: {
|
|
44
|
-
family: 'Montserrat Semi', monospace;
|
|
45
|
-
size: 10px;
|
|
46
|
-
}
|
|
47
|
-
line-height: 12px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
%typo-body-lg {
|
|
51
|
-
font: {
|
|
52
|
-
family: 'Montserrat Regular', monospace;
|
|
53
|
-
size: 14px;
|
|
54
|
-
}
|
|
55
|
-
line-height: 18px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
%typo-body-md {
|
|
59
|
-
font: {
|
|
60
|
-
family: 'Montserrat Regular', monospace;
|
|
61
|
-
size: 12px;
|
|
62
|
-
}
|
|
63
|
-
line-height: 14px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
%typo-body-sm {
|
|
67
|
-
font: {
|
|
68
|
-
family: 'Montserrat Regular', monospace;
|
|
69
|
-
size: 10px;
|
|
70
|
-
}
|
|
71
|
-
line-height: 12px;
|
|
72
|
-
}
|