@tetacom/ng-components 1.0.148 → 1.0.150
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/assets/color-icons.svg +49 -521
- package/assets/file-icons.svg +0 -1
- package/assets/icons.svg +205 -138
- package/common/model/view-type.model.d.ts +1 -0
- package/component/accordion/accordion-item/accordion-item.component.d.ts +4 -1
- package/component/avatar/avatar/avatar.component.d.ts +17 -0
- package/component/avatar/avatar.module.d.ts +9 -0
- package/component/avatar/model/avatar-color.enum.d.ts +20 -0
- package/component/avatar/public-api.d.ts +2 -0
- package/component/button/button/button.component.d.ts +4 -1
- package/component/checkbox/checkbox/checkbox.component.d.ts +2 -1
- package/component/date-picker/base-calendar.d.ts +49 -0
- package/component/date-picker/base-picker.d.ts +60 -0
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +20 -0
- package/component/date-picker/date-picker/date-picker.component.d.ts +38 -68
- package/component/date-picker/date-picker.module.d.ts +19 -15
- package/component/date-picker/date-range/date-range.component.d.ts +46 -0
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +39 -0
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +9 -0
- package/component/date-picker/day-picker/day-picker.component.d.ts +30 -0
- package/component/date-picker/model/from-to.model.d.ts +4 -0
- package/component/date-picker/model/min-max-date.model.d.ts +4 -0
- package/component/date-picker/month-picker/month-picker.component.d.ts +16 -50
- package/component/date-picker/public-api.d.ts +5 -4
- package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +11 -0
- package/component/date-picker/year-picker/year-picker.component.d.ts +24 -0
- package/component/divider/divider/divider.component.d.ts +10 -0
- package/component/divider/divider.module.d.ts +8 -0
- package/component/divider/public-api.d.ts +2 -0
- package/component/dropdown/dropdown-base.d.ts +3 -1
- package/component/icon/icon-file/icon-file.component.d.ts +9 -3
- package/component/icon/icon-file/icon-file.module.d.ts +9 -0
- package/component/icon/icon.module.d.ts +4 -5
- package/component/icon/public-api.d.ts +1 -0
- package/component/input/input/input.component.d.ts +3 -1
- package/component/message/model/message.d.ts +3 -0
- package/component/public-api.d.ts +2 -0
- package/component/select/select/select.component.d.ts +4 -1
- package/component/switch/switch/switch.component.d.ts +4 -1
- package/directive/hint/hint.directive.d.ts +3 -1
- package/esm2020/common/model/view-type.model.mjs +2 -0
- package/esm2020/component/accordion/accordion/accordion.component.mjs +3 -2
- package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +3 -2
- package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +13 -3
- package/esm2020/component/avatar/avatar/avatar.component.mjs +57 -0
- package/esm2020/component/avatar/avatar.module.mjs +28 -0
- package/esm2020/component/avatar/model/avatar-color.enum.mjs +22 -0
- package/esm2020/component/avatar/public-api.mjs +3 -0
- package/esm2020/component/button/button/button.component.mjs +18 -3
- package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +6 -3
- package/esm2020/component/date-picker/base-calendar.mjs +99 -0
- package/esm2020/component/date-picker/base-picker.mjs +102 -0
- package/esm2020/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +49 -0
- package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +141 -234
- package/esm2020/component/date-picker/date-picker.module.mjs +41 -41
- package/esm2020/component/date-picker/date-range/date-range.component.mjs +211 -0
- package/esm2020/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +108 -0
- package/esm2020/component/date-picker/day-picker/day-item/day-item.component.mjs +15 -0
- package/esm2020/component/date-picker/day-picker/day-picker.component.mjs +113 -0
- package/esm2020/component/date-picker/model/from-to.model.mjs +2 -0
- package/esm2020/component/date-picker/model/min-max-date.model.mjs +2 -0
- package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +33 -236
- package/esm2020/component/date-picker/public-api.mjs +6 -5
- package/esm2020/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +26 -0
- package/esm2020/component/date-picker/year-picker/year-picker.component.mjs +48 -0
- package/esm2020/component/divider/divider/divider.component.mjs +18 -0
- package/esm2020/component/divider/divider.module.mjs +20 -0
- package/esm2020/component/divider/public-api.mjs +3 -0
- package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +3 -2
- package/esm2020/component/dropdown/dropdown-base.mjs +6 -2
- package/esm2020/component/dropdown/dropdown.directive.mjs +1 -1
- package/esm2020/component/expand-card/expand-card/expand-card.component.mjs +1 -1
- package/esm2020/component/expand-card/expand-item/expand-item.component.mjs +1 -1
- package/esm2020/component/expand-panel/expand-panel/expand-panel.component.mjs +1 -1
- package/esm2020/component/file-upload/file-upload-area/file-upload-area.component.mjs +1 -1
- package/esm2020/component/filter/date-filter/date-filter.component.mjs +1 -1
- package/esm2020/component/filter/list-filter/list-filter.component.mjs +1 -1
- package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +1 -1
- package/esm2020/component/filter/string-filter/string-filter.component.mjs +1 -1
- package/esm2020/component/icon/icon-file/icon-file.component.mjs +20 -6
- package/esm2020/component/icon/icon-file/icon-file.module.mjs +28 -0
- package/esm2020/component/icon/icon.module.mjs +1 -6
- package/esm2020/component/icon/public-api.mjs +2 -1
- package/esm2020/component/input/input/input.component.mjs +6 -3
- package/esm2020/component/input/input.module.mjs +1 -1
- package/esm2020/component/input/text-field/text-field.component.mjs +3 -3
- package/esm2020/component/message/message/message.component.mjs +4 -3
- package/esm2020/component/message/message-host/message-host.component.mjs +1 -1
- package/esm2020/component/message/model/message.mjs +2 -1
- package/esm2020/component/modal/dialog/dialog.component.mjs +1 -1
- package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +2 -2
- package/esm2020/component/public-api.mjs +4 -1
- package/esm2020/component/select/select/select.component.mjs +9 -4
- package/esm2020/component/switch/switch/switch.component.mjs +19 -7
- package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +1 -1
- package/esm2020/component/table/default/date-cell/date-cell.component.mjs +1 -1
- package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +1 -1
- package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +1 -1
- package/esm2020/component/table/default/list-cell/list-cell.component.mjs +1 -1
- package/esm2020/component/table/default/string-cell/string-cell.component.mjs +1 -1
- package/esm2020/component/table/selection-cell/selection-cell.component.mjs +1 -1
- package/esm2020/component/table/selection-head-cell/selection-head-cell.component.mjs +1 -1
- package/esm2020/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +1 -1
- package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +1 -1
- package/esm2020/directive/hint/hint.directive.mjs +6 -3
- package/esm2020/locale/en.mjs +3 -1
- package/esm2020/locale/ru.mjs +3 -1
- package/esm2020/locale/teta-localisation.mjs +1 -1
- package/fesm2015/tetacom-ng-components.mjs +2898 -3015
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +5440 -5565
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +2 -0
- package/package.json +3 -2
- package/style/accordion.scss +28 -6
- package/style/assembly-library.scss +4 -1
- package/style/assembly-presets.scss +0 -1
- package/style/badge.scss +28 -0
- package/style/bottombar.scss +5 -0
- package/style/button.scss +16 -13
- package/style/checkbox.scss +26 -13
- package/style/chips.scss +10 -10
- package/style/color.scss +1 -36
- package/style/datepicker.scss +139 -24
- package/style/divider.scss +15 -0
- package/style/drag.scss +1 -1
- package/style/dropdown.scss +6 -4
- package/style/hint.scss +5 -5
- package/style/icon.scss +2 -1
- package/style/input.scss +32 -23
- package/style/layout.scss +6 -2
- package/style/list.scss +11 -8
- package/style/loader.scss +2 -2
- package/style/message.scss +15 -7
- package/style/modal.scss +3 -2
- package/style/navigation.scss +4 -1
- package/style/presets/color-presets.scss +8 -160
- package/style/presets/font-presets.scss +26 -25
- package/style/presets/view-types.scss +15 -0
- package/style/progress.scss +3 -3
- package/style/radio.scss +21 -7
- package/style/resize-panel.scss +2 -2
- package/style/scroll.scss +3 -3
- package/style/select.scss +26 -21
- package/style/shadow.scss +0 -20
- package/style/sidebar.scss +1 -1
- package/style/switch.scss +15 -10
- package/style/table.scss +15 -15
- package/style/tabs.scss +11 -11
- package/style/tag.scss +37 -0
- package/style/toggle.scss +20 -18
- package/style/toolbar.scss +1 -1
- package/style/tooltip.scss +8 -6
- package/style/tree.scss +4 -4
- package/component/date-picker/day-select/day-select.component.d.ts +0 -51
- package/component/date-picker/model/date-picker-mode.enum.d.ts +0 -5
- package/component/date-picker/month-select/month-select.component.d.ts +0 -40
- package/component/date-picker/service/picker-touch.service.d.ts +0 -12
- package/component/date-picker/time-part-control/time-part-control.component.d.ts +0 -26
- package/component/date-picker/util/date-picker-util.d.ts +0 -15
- package/component/date-picker/year-select/year-select.component.d.ts +0 -45
- package/esm2020/component/date-picker/day-select/day-select.component.mjs +0 -184
- package/esm2020/component/date-picker/model/date-picker-mode.enum.mjs +0 -7
- package/esm2020/component/date-picker/month-select/month-select.component.mjs +0 -148
- package/esm2020/component/date-picker/service/picker-touch.service.mjs +0 -34
- package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +0 -73
- package/esm2020/component/date-picker/util/date-picker-util.mjs +0 -142
- package/esm2020/component/date-picker/year-select/year-select.component.mjs +0 -189
- package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +0 -18
- package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +0 -21
- package/pipe/prepend-zero/prepend-zero.module.d.ts +0 -8
- package/pipe/prepend-zero/prepend-zero.pipe.d.ts +0 -7
- package/style/presets/shadow-presets.scss +0 -16
- package/style/tokens/basedark.tokens.css +0 -77
- package/style/tokens/baselight.tokens.css +0 -61
- package/style/tokens/global.tokens.css +0 -235
- package/style/tokens/utility.tokens.css +0 -1119
- package/style/util/button-util.scss +0 -58
package/style/input.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import "util/color-util.scss";
|
|
2
2
|
@import "util/font-util.scss";
|
|
3
|
+
@import "presets/view-types.scss";
|
|
3
4
|
|
|
4
5
|
.form-container {
|
|
5
6
|
display: flex;
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
|
|
31
32
|
.text-field, .input, .textarea {
|
|
32
33
|
padding: 6px 8px;
|
|
33
|
-
border: solid 1px
|
|
34
|
-
|
|
35
|
-
background-
|
|
36
|
-
color:
|
|
34
|
+
border: solid 1px var(--color-text-5);
|
|
35
|
+
background-color: var(--color-text-5);
|
|
36
|
+
background-clip:padding-box;
|
|
37
|
+
color: var(--color-text-90);
|
|
37
38
|
@include getFont($fonts, 'body-3');
|
|
38
39
|
display: flex;
|
|
39
40
|
flex-direction: row;
|
|
@@ -41,53 +42,61 @@
|
|
|
41
42
|
grid-gap: 4px;
|
|
42
43
|
width: 100%;
|
|
43
44
|
min-width: 0;
|
|
44
|
-
transition: border-color 0.4s;
|
|
45
|
+
transition: border-color 0.4s, background-color 0.4s;
|
|
46
|
+
|
|
47
|
+
@include getView('field');
|
|
48
|
+
|
|
45
49
|
|
|
46
50
|
&_invalid {
|
|
47
|
-
border-color:
|
|
51
|
+
border-color: var(--color-red-50);
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
&_required::after {
|
|
51
55
|
margin-left: 4px;
|
|
52
56
|
content: '*';
|
|
53
|
-
color:
|
|
57
|
+
color: var(--color-red-50);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&::placeholder {
|
|
57
|
-
color:
|
|
61
|
+
color: var(--color-text-40);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
&:focus-within, &:focus {
|
|
61
|
-
border-color:
|
|
65
|
+
border-color: var(--color-primary-50);
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
&:focus-within {
|
|
65
69
|
&::placeholder {
|
|
66
|
-
color:
|
|
70
|
+
color: var(--color-text-20);
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
input::placeholder {
|
|
70
|
-
color:
|
|
74
|
+
color: var(--color-text-20);
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
&:disabled, &[disabled], &_disabled {
|
|
75
79
|
border: 0;
|
|
76
|
-
background:
|
|
77
|
-
color:
|
|
80
|
+
background: var(--color-text-5);
|
|
81
|
+
color: var(--color-text-40);
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
&:hover:not([disabled]):not(&_disabled):not(:focus-within) {
|
|
81
|
-
border-color:
|
|
85
|
+
border-color: var(--color-text-10);
|
|
86
|
+
background-color: var(--color-text-10);
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
.close-icon {
|
|
85
90
|
display: none;
|
|
86
|
-
position: absolute;
|
|
87
91
|
right: 4px;
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
display: flex;
|
|
96
|
+
}
|
|
88
97
|
}
|
|
89
98
|
|
|
90
|
-
&:
|
|
99
|
+
&:focus-within {
|
|
91
100
|
.close-icon {
|
|
92
101
|
display: flex;
|
|
93
102
|
}
|
|
@@ -102,13 +111,13 @@
|
|
|
102
111
|
position: relative;
|
|
103
112
|
|
|
104
113
|
input {
|
|
105
|
-
color:
|
|
114
|
+
color: var(--color-text-90);
|
|
106
115
|
border-width: 0;
|
|
107
116
|
width: 100%;
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
teta-icon {
|
|
111
|
-
fill:
|
|
120
|
+
fill: var(--color-text-40);
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
|
|
@@ -121,8 +130,8 @@
|
|
|
121
130
|
flex-direction: column;
|
|
122
131
|
align-items: center;
|
|
123
132
|
justify-content: center;
|
|
124
|
-
background:
|
|
125
|
-
border: dashed 1px
|
|
133
|
+
background: var(--color-global-bgcard);
|
|
134
|
+
border: dashed 1px var(--color-text-10);
|
|
126
135
|
border-radius: 4px;
|
|
127
136
|
transition: background 0.4s;
|
|
128
137
|
grid-gap: 8px;
|
|
@@ -139,7 +148,7 @@
|
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
&_active {
|
|
142
|
-
background-color:
|
|
151
|
+
background-color: var(--color-text-10);
|
|
143
152
|
}
|
|
144
153
|
}
|
|
145
154
|
|
|
@@ -148,7 +157,7 @@
|
|
|
148
157
|
display: flex;
|
|
149
158
|
align-items: center;
|
|
150
159
|
grid-gap: 8px;
|
|
151
|
-
color:
|
|
160
|
+
color: var(--color-text-50);
|
|
152
161
|
|
|
153
162
|
&-text {
|
|
154
163
|
flex-shrink: 0;
|
|
@@ -158,6 +167,6 @@
|
|
|
158
167
|
&-line {
|
|
159
168
|
flex-grow: 1;
|
|
160
169
|
height: 1px;
|
|
161
|
-
background:
|
|
170
|
+
background: var(--color-text-50);
|
|
162
171
|
}
|
|
163
172
|
}
|
package/style/layout.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
body {
|
|
9
|
-
color:
|
|
9
|
+
color: var(--color-text-90);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.app {
|
|
@@ -37,6 +37,10 @@ body {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
.row-reverse{
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row-reverse;
|
|
43
|
+
}
|
|
40
44
|
|
|
41
45
|
.column {
|
|
42
46
|
display: flex;
|
|
@@ -134,5 +138,5 @@ body {
|
|
|
134
138
|
border: solid 0;
|
|
135
139
|
border-radius: 4px;
|
|
136
140
|
overflow: hidden;
|
|
137
|
-
background:
|
|
141
|
+
background: var(--color-global-bgcard)
|
|
138
142
|
}
|
package/style/list.scss
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
padding: 8px 0;
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
border-radius:
|
|
9
|
-
color:
|
|
10
|
-
background-color:
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
color: var(--color-text-90);
|
|
10
|
+
background-color: var(--color-global-bgcard);
|
|
11
11
|
@include getFont($fonts, 'body-3');
|
|
12
12
|
position: relative;
|
|
13
13
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&_disabled {
|
|
31
|
-
color:
|
|
31
|
+
color: var(--color-text-20);
|
|
32
32
|
pointer-events: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -37,13 +37,16 @@
|
|
|
37
37
|
transition: background 0.4s;
|
|
38
38
|
|
|
39
39
|
&:hover:not(&_disabled) {
|
|
40
|
-
background-color:
|
|
40
|
+
background-color: var(--color-text-5);
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
+
&:active:not(&_disabled) {
|
|
44
|
+
background-color: var(--color-text-10);
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
&_interactive#{&}_active {
|
|
46
|
-
background-color:
|
|
49
|
+
background-color: var(--color-text-10);
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
&:hover > .sublist {
|
|
@@ -55,11 +58,11 @@
|
|
|
55
58
|
height: 1px;
|
|
56
59
|
flex-shrink: 0;
|
|
57
60
|
margin: 8px 0;
|
|
58
|
-
background-color:
|
|
61
|
+
background-color: var(--color-text-10);
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
&-title {
|
|
62
|
-
color:
|
|
65
|
+
color: var(--color-text-50);
|
|
63
66
|
@include getFont($fonts, 'overline');
|
|
64
67
|
}
|
|
65
68
|
}
|
package/style/loader.scss
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
width: 50px;
|
|
17
17
|
height: 50px;
|
|
18
18
|
border-radius: 50%;
|
|
19
|
-
border: 5px solid
|
|
19
|
+
border: 5px solid var(--color-primary-50);
|
|
20
20
|
border-top-color: transparent;
|
|
21
21
|
animation: spinner 1.5s linear infinite;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&-mask {
|
|
25
|
-
background:
|
|
25
|
+
background: var(--color-global-bgcard);
|
|
26
26
|
opacity: 0.2;
|
|
27
27
|
position: absolute;
|
|
28
28
|
top: 0;
|
package/style/message.scss
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
@import "util/shadow-util.scss";
|
|
2
2
|
|
|
3
3
|
.message {
|
|
4
|
-
|
|
4
|
+
position: relative;
|
|
5
|
+
box-shadow: var(--shadow-2);
|
|
5
6
|
display: inline-flex;
|
|
6
7
|
flex-direction: column;
|
|
7
8
|
padding: 8px;
|
|
8
9
|
margin: 8px;
|
|
9
10
|
border: solid 0;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
width: 320px;
|
|
12
|
+
background: var(--color-global-bgcard);
|
|
13
|
+
color: var(--color-text-90);
|
|
14
|
+
|
|
15
|
+
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
16
|
+
&-#{$paletteName}::before {
|
|
17
|
+
background: getColorVar($paletteName, '50');
|
|
18
|
+
content: " ";
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: 0;
|
|
21
|
+
left: 0;
|
|
22
|
+
width: 4px;
|
|
23
|
+
height: 100%;
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
}
|
package/style/modal.scss
CHANGED
package/style/navigation.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import "util/color-util.scss";
|
|
2
2
|
@import "util/font-util.scss";
|
|
3
|
+
@import "presets/view-types.scss";
|
|
3
4
|
|
|
4
5
|
.navigation {
|
|
5
6
|
&-item {
|
|
@@ -11,7 +12,9 @@
|
|
|
11
12
|
@include getFont($fonts, 'title-3');
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
@
|
|
15
|
+
@include getView('base');
|
|
16
|
+
|
|
17
|
+
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
15
18
|
&-#{$paletteName} {
|
|
16
19
|
background: getColorVar($paletteName, '50');
|
|
17
20
|
}
|
|
@@ -1,161 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'80': rgba(55, 58, 64),
|
|
6
|
-
'70': rgba(77, 80, 86),
|
|
7
|
-
'60': rgba(105, 107, 113),
|
|
8
|
-
'50': rgba(140, 142, 148),
|
|
9
|
-
'40': rgba(173, 175, 181),
|
|
10
|
-
'30': rgba(204, 206, 213),
|
|
11
|
-
'20': rgba(221, 223, 230),
|
|
12
|
-
'10': rgba(230, 232, 239),
|
|
13
|
-
'5': rgba(232, 234, 241),
|
|
14
|
-
),
|
|
15
|
-
'primary': (
|
|
16
|
-
'90': rgba(21, 54, 125),
|
|
17
|
-
'80': rgba(26, 68, 157),
|
|
18
|
-
'70': rgba(31, 81, 189),
|
|
19
|
-
'60': rgba(36, 95, 221),
|
|
20
|
-
'50': rgba(40, 108, 253),
|
|
21
|
-
'40': rgba(80, 134, 253),
|
|
22
|
-
'30': rgba(119, 160, 254),
|
|
23
|
-
'20': rgba(159, 187, 254),
|
|
24
|
-
'10': rgba(198, 215, 255),
|
|
25
|
-
'5': rgba(238, 243, 255),
|
|
26
|
-
),
|
|
27
|
-
'red': (
|
|
28
|
-
'90': rgba(168, 46, 38),
|
|
29
|
-
'80': rgba(183, 56, 49),
|
|
30
|
-
'70': rgba(194, 63, 56),
|
|
31
|
-
'60': rgba(212, 72, 62),
|
|
32
|
-
'50': rgba(226, 82, 65),
|
|
33
|
-
'40': rgba(222, 94, 86),
|
|
34
|
-
'30': rgba(215, 121, 118),
|
|
35
|
-
'20': rgba(227, 158, 156),
|
|
36
|
-
'10': rgba(247, 207, 211),
|
|
37
|
-
'5': rgba(252, 236, 238),
|
|
38
|
-
),
|
|
39
|
-
'green': (
|
|
40
|
-
'90': rgba(40, 95, 27),
|
|
41
|
-
'80': rgba(55, 126, 48),
|
|
42
|
-
'70': rgba(66, 142, 59),
|
|
43
|
-
'60': rgba(78, 160, 70),
|
|
44
|
-
'50': rgba(89, 174, 80),
|
|
45
|
-
'40': rgba(111, 187, 105),
|
|
46
|
-
'30': rgba(136, 198, 131),
|
|
47
|
-
'20': rgba(169, 214, 166),
|
|
48
|
-
'10': rgba(203, 230, 201),
|
|
49
|
-
'5': rgba(233, 245, 233),
|
|
50
|
-
),
|
|
51
|
-
'yellow': (
|
|
52
|
-
'90': rgba(238, 104, 0),
|
|
53
|
-
'80': rgba(238, 136, 0),
|
|
54
|
-
'70': rgba(238, 152, 0),
|
|
55
|
-
'60': rgba(238, 171, 0),
|
|
56
|
-
'50': rgba(237, 184, 0),
|
|
57
|
-
'40': rgba(239, 194, 27),
|
|
58
|
-
'30': rgba(241, 206, 72),
|
|
59
|
-
'20': rgba(245, 219, 126),
|
|
60
|
-
'10': rgba(249, 233, 177),
|
|
61
|
-
'5': rgba(252, 247, 225),
|
|
62
|
-
),
|
|
63
|
-
'background': (
|
|
64
|
-
'50': rgba(255, 255, 255),
|
|
65
|
-
'0': rgba(244, 245, 247),
|
|
66
|
-
),
|
|
67
|
-
'white': (
|
|
68
|
-
'50': rgba(255, 255, 255)
|
|
69
|
-
),
|
|
70
|
-
'black': (
|
|
71
|
-
'50': rgba(28, 27, 33, 1)
|
|
72
|
-
),
|
|
73
|
-
'backdrop': (
|
|
74
|
-
'50': rgba(144, 148, 153, 0.4)
|
|
75
|
-
),
|
|
76
|
-
'link': (
|
|
77
|
-
'50': #005ab6
|
|
78
|
-
)
|
|
79
|
-
),
|
|
80
|
-
'dark': (
|
|
81
|
-
'primary': (
|
|
82
|
-
'90': rgba(118, 173, 255, 1),
|
|
83
|
-
'80': rgba(89, 155, 255, 1),
|
|
84
|
-
'70': rgba(59, 138, 255, 1),
|
|
85
|
-
'60': rgba(46, 122, 255, 1),
|
|
86
|
-
'50': rgba(40, 108, 253, 1),
|
|
87
|
-
'40': rgba(45, 93, 212, 1),
|
|
88
|
-
'30': rgba(47, 80, 175, 1),
|
|
89
|
-
'20': rgba(46, 68, 139, 1),
|
|
90
|
-
'10': rgba(43, 56, 107, 1),
|
|
91
|
-
'5': rgba(37, 44, 77, 1),
|
|
92
|
-
),
|
|
93
|
-
'text': (
|
|
94
|
-
'90': rgba(239, 239, 241, 1),
|
|
95
|
-
'80': rgba(215, 216, 221, 1),
|
|
96
|
-
'70': rgba(189, 189, 198, 1),
|
|
97
|
-
'60': rgba(162, 163, 174, 1),
|
|
98
|
-
'50': rgba(139, 140, 154, 1),
|
|
99
|
-
'40': rgba(118, 119, 135, 1),
|
|
100
|
-
'30': rgba(93, 95, 109, 1),
|
|
101
|
-
'20': rgba(73, 75, 86, 1),
|
|
102
|
-
'10': rgba(57, 57, 67, 1),
|
|
103
|
-
'5': rgba(47, 47, 55, 1)
|
|
104
|
-
),
|
|
105
|
-
'red': (
|
|
106
|
-
'90': rgba(255, 204, 182, 1),
|
|
107
|
-
'80': rgba(252, 179, 152, 1),
|
|
108
|
-
'70': rgba(246, 153, 125, 1),
|
|
109
|
-
'60': rgba(236, 128, 101, 1),
|
|
110
|
-
'50': rgba(224, 104, 80, 1),
|
|
111
|
-
'40': rgba(186, 85, 77, 1),
|
|
112
|
-
'30': rgba(150, 71, 72, 1),
|
|
113
|
-
'20': rgba(117, 63, 69, 1),
|
|
114
|
-
'10': rgba(86, 53, 59, 1),
|
|
115
|
-
'5': rgba(58, 40, 45, 1)
|
|
116
|
-
),
|
|
117
|
-
'green': (
|
|
118
|
-
'90': rgba(196, 245, 209, 1),
|
|
119
|
-
'80': rgba(157, 222, 168, 1),
|
|
120
|
-
'70': rgba(129, 208, 136, 1),
|
|
121
|
-
'60': rgba(104, 192, 104, 1),
|
|
122
|
-
'50': rgba(89, 174, 80, 1),
|
|
123
|
-
'40': rgba(76, 145, 74, 1),
|
|
124
|
-
'30': rgba(67, 118, 69, 1),
|
|
125
|
-
'20': rgba(58, 93, 61, 1),
|
|
126
|
-
'10': rgba(47, 69, 51, 1),
|
|
127
|
-
'5': rgba(35, 47, 38, 1),
|
|
128
|
-
),
|
|
129
|
-
'yellow': (
|
|
130
|
-
'90': rgba(255, 252, 191, 1),
|
|
131
|
-
'80': rgba(255, 241, 143, 1),
|
|
132
|
-
'70': rgba(255, 223, 96, 1),
|
|
133
|
-
'60': rgba(253, 199, 48, 1),
|
|
134
|
-
'50': rgba(238, 171, 0, 1),
|
|
135
|
-
'40': rgba(196, 137, 13, 1),
|
|
136
|
-
'30': rgba(157, 108, 23, 1),
|
|
137
|
-
'20': rgba(122, 84, 29, 1),
|
|
138
|
-
'10': rgba(91, 64, 31, 1),
|
|
139
|
-
'5': rgba(64, 47, 29, 1)
|
|
140
|
-
),
|
|
141
|
-
'background': (
|
|
142
|
-
'50': rgba(34, 34, 41, 1),
|
|
143
|
-
'0': rgba(28, 27, 33, 1),
|
|
144
|
-
),
|
|
145
|
-
'white': (
|
|
146
|
-
'50': rgba(255, 255, 255, 1)
|
|
147
|
-
),
|
|
148
|
-
'black': (
|
|
149
|
-
'50': rgba(28, 27, 33, 1)
|
|
150
|
-
),
|
|
151
|
-
'backdrop': (
|
|
152
|
-
'50': rgba(144, 148, 153, 0.4)
|
|
153
|
-
),
|
|
154
|
-
'link': (
|
|
155
|
-
'50': #79c6ff
|
|
156
|
-
)
|
|
157
|
-
)
|
|
158
|
-
);
|
|
1
|
+
@use '@tetacom/themes/src/tatneft/presets.scss' as tatneft;
|
|
2
|
+
@use '@tetacom/themes/src/base/presets.scss' as base;
|
|
3
|
+
@import "@tetacom/themes/src/global.tokens.css";
|
|
4
|
+
@import "@tetacom/themes/src/util.scss";
|
|
159
5
|
|
|
160
|
-
$
|
|
161
|
-
$
|
|
6
|
+
$themes: map-collect('themes', tatneft.$presets, base.$presets);
|
|
7
|
+
$shadows: map-collect('shadow', tatneft.$presets, base.$presets);
|
|
8
|
+
|
|
9
|
+
@import '@tetacom/themes/src/generate.scss';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$fonts: (
|
|
2
2
|
h-1: (
|
|
3
3
|
font-size:92px,
|
|
4
|
-
font-family:"
|
|
4
|
+
font-family:"Inter",
|
|
5
5
|
font-weight:600,
|
|
6
6
|
font-style:normal,
|
|
7
7
|
letter-spacing:0.15px,
|
|
@@ -9,7 +9,7 @@ $fonts: (
|
|
|
9
9
|
),
|
|
10
10
|
h-2: (
|
|
11
11
|
font-size:60px,
|
|
12
|
-
font-family:"
|
|
12
|
+
font-family:"Inter",
|
|
13
13
|
font-weight:600,
|
|
14
14
|
font-style:normal,
|
|
15
15
|
letter-spacing:0.15px,
|
|
@@ -17,7 +17,7 @@ $fonts: (
|
|
|
17
17
|
),
|
|
18
18
|
h-3: (
|
|
19
19
|
font-size:48px,
|
|
20
|
-
font-family:"
|
|
20
|
+
font-family:"Inter",
|
|
21
21
|
font-weight:600,
|
|
22
22
|
font-style:normal,
|
|
23
23
|
letter-spacing:0.15px,
|
|
@@ -25,7 +25,7 @@ $fonts: (
|
|
|
25
25
|
),
|
|
26
26
|
h-4: (
|
|
27
27
|
font-size:35px,
|
|
28
|
-
font-family:"
|
|
28
|
+
font-family:"Inter",
|
|
29
29
|
font-weight:600,
|
|
30
30
|
font-style:normal,
|
|
31
31
|
line-height:44px,
|
|
@@ -34,15 +34,16 @@ $fonts: (
|
|
|
34
34
|
),
|
|
35
35
|
h-5: (
|
|
36
36
|
font-size:28px,
|
|
37
|
-
font-family:"
|
|
38
|
-
font-weight:
|
|
37
|
+
font-family:"Inter",
|
|
38
|
+
font-weight:500,
|
|
39
39
|
font-style:normal,
|
|
40
|
+
line-height: 34px,
|
|
40
41
|
letter-spacing:0.15px,
|
|
41
42
|
text-decoration:none
|
|
42
43
|
),
|
|
43
44
|
h-6: (
|
|
44
45
|
font-size:20px,
|
|
45
|
-
font-family:"
|
|
46
|
+
font-family:"Inter",
|
|
46
47
|
font-weight:600,
|
|
47
48
|
font-style:normal,
|
|
48
49
|
letter-spacing:0.15px,
|
|
@@ -50,8 +51,8 @@ $fonts: (
|
|
|
50
51
|
),
|
|
51
52
|
title-1: (
|
|
52
53
|
font-size:16px,
|
|
53
|
-
font-family:"
|
|
54
|
-
font-weight:
|
|
54
|
+
font-family:"Inter",
|
|
55
|
+
font-weight:500,
|
|
55
56
|
font-style:normal,
|
|
56
57
|
line-height:24px,
|
|
57
58
|
letter-spacing:0.0015em,
|
|
@@ -59,23 +60,23 @@ $fonts: (
|
|
|
59
60
|
),
|
|
60
61
|
title-2: (
|
|
61
62
|
font-size:14px,
|
|
62
|
-
font-family:"
|
|
63
|
-
font-weight:
|
|
63
|
+
font-family:"Inter",
|
|
64
|
+
font-weight:500,
|
|
64
65
|
font-style:normal,
|
|
65
|
-
line-height:
|
|
66
|
+
line-height:20px,
|
|
66
67
|
text-decoration:none
|
|
67
68
|
),
|
|
68
69
|
title-3: (
|
|
69
70
|
font-size:12px,
|
|
70
|
-
font-family:"
|
|
71
|
-
font-weight:
|
|
71
|
+
font-family:"Inter",
|
|
72
|
+
font-weight:500,
|
|
72
73
|
font-style:normal,
|
|
73
74
|
line-height:16px,
|
|
74
75
|
text-decoration:none
|
|
75
76
|
),
|
|
76
77
|
body-1: (
|
|
77
78
|
font-size:16px,
|
|
78
|
-
font-family:"
|
|
79
|
+
font-family:"Inter",
|
|
79
80
|
font-weight:normal,
|
|
80
81
|
font-style:normal,
|
|
81
82
|
line-height:24px,
|
|
@@ -83,15 +84,15 @@ $fonts: (
|
|
|
83
84
|
),
|
|
84
85
|
body-2: (
|
|
85
86
|
font-size:14px,
|
|
86
|
-
font-family:"
|
|
87
|
-
font-weight:
|
|
87
|
+
font-family:"Inter",
|
|
88
|
+
font-weight:500,
|
|
88
89
|
font-style:normal,
|
|
89
90
|
line-height:16px,
|
|
90
91
|
text-decoration:none
|
|
91
92
|
),
|
|
92
93
|
body-3: (
|
|
93
94
|
font-size:12px,
|
|
94
|
-
font-family:"
|
|
95
|
+
font-family:"Inter",
|
|
95
96
|
font-weight:normal,
|
|
96
97
|
font-style:normal,
|
|
97
98
|
line-height:16px,
|
|
@@ -99,7 +100,7 @@ $fonts: (
|
|
|
99
100
|
),
|
|
100
101
|
button-1: (
|
|
101
102
|
font-size:13px,
|
|
102
|
-
font-family:"
|
|
103
|
+
font-family:"Inter",
|
|
103
104
|
font-weight:600,
|
|
104
105
|
font-style:normal,
|
|
105
106
|
line-height:20px,
|
|
@@ -107,15 +108,15 @@ $fonts: (
|
|
|
107
108
|
),
|
|
108
109
|
button-2: (
|
|
109
110
|
font-size:11px,
|
|
110
|
-
font-family:"
|
|
111
|
-
font-weight:
|
|
111
|
+
font-family:"Inter",
|
|
112
|
+
font-weight:500,
|
|
112
113
|
font-style:normal,
|
|
113
114
|
line-height:16px,
|
|
114
115
|
text-decoration:none
|
|
115
116
|
),
|
|
116
117
|
button-3: (
|
|
117
118
|
font-size:10px,
|
|
118
|
-
font-family:"
|
|
119
|
+
font-family:"Inter",
|
|
119
120
|
font-weight:600,
|
|
120
121
|
font-style:normal,
|
|
121
122
|
line-height:14px,
|
|
@@ -123,7 +124,7 @@ $fonts: (
|
|
|
123
124
|
),
|
|
124
125
|
caption: (
|
|
125
126
|
font-size:11px,
|
|
126
|
-
font-family:"
|
|
127
|
+
font-family:"Inter",
|
|
127
128
|
font-weight:normal,
|
|
128
129
|
font-style:normal,
|
|
129
130
|
line-height:16px,
|
|
@@ -131,7 +132,7 @@ $fonts: (
|
|
|
131
132
|
),
|
|
132
133
|
table-header: (
|
|
133
134
|
font-size:11px,
|
|
134
|
-
font-family:"
|
|
135
|
+
font-family:"Inter",
|
|
135
136
|
font-weight:600,
|
|
136
137
|
font-style:normal,
|
|
137
138
|
line-height:12px,
|
|
@@ -139,7 +140,7 @@ $fonts: (
|
|
|
139
140
|
),
|
|
140
141
|
overline: (
|
|
141
142
|
font-size:10px,
|
|
142
|
-
font-family:"
|
|
143
|
+
font-family:"Inter",
|
|
143
144
|
font-weight:600,
|
|
144
145
|
font-style:normal,
|
|
145
146
|
line-height:12px,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Get classes by token type: 'base', 'btn', 'field'
|
|
2
|
+
|
|
3
|
+
@mixin getView($tokenType) {
|
|
4
|
+
&_brick {
|
|
5
|
+
border-radius: var(--radius-#{$tokenType}-brick);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&_circle {
|
|
9
|
+
border-radius: var(--radius-#{$tokenType}-circle)''
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&_rounded {
|
|
13
|
+
border-radius: var(--radius-#{$tokenType}-round);
|
|
14
|
+
}
|
|
15
|
+
}
|
package/style/progress.scss
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 4px;
|
|
6
6
|
display: flex;
|
|
7
|
-
background:
|
|
7
|
+
background: var(--color-text-10);
|
|
8
8
|
position: relative;
|
|
9
9
|
|
|
10
10
|
&-bar {
|
|
11
|
-
background:
|
|
11
|
+
background: var(--color-primary-50);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&-slider {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
margin-left: -6px;
|
|
20
20
|
margin-top: -4px;
|
|
21
21
|
border-radius: 6px;
|
|
22
|
-
background:
|
|
22
|
+
background: var(--color-primary-50);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&:hover &-slider, &-slider_visible {
|