@tetacom/ng-components 1.0.148 → 1.0.149

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 (176) hide show
  1. package/assets/color-icons.svg +49 -521
  2. package/assets/file-icons.svg +0 -1
  3. package/assets/icons.svg +205 -138
  4. package/common/model/view-type.model.d.ts +1 -0
  5. package/component/accordion/accordion-item/accordion-item.component.d.ts +4 -1
  6. package/component/avatar/avatar/avatar.component.d.ts +17 -0
  7. package/component/avatar/avatar.module.d.ts +9 -0
  8. package/component/avatar/model/avatar-color.enum.d.ts +20 -0
  9. package/component/avatar/public-api.d.ts +2 -0
  10. package/component/button/button/button.component.d.ts +4 -1
  11. package/component/checkbox/checkbox/checkbox.component.d.ts +2 -1
  12. package/component/date-picker/base-calendar.d.ts +49 -0
  13. package/component/date-picker/base-picker.d.ts +60 -0
  14. package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +20 -0
  15. package/component/date-picker/date-picker/date-picker.component.d.ts +38 -68
  16. package/component/date-picker/date-picker.module.d.ts +19 -15
  17. package/component/date-picker/date-range/date-range.component.d.ts +46 -0
  18. package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +39 -0
  19. package/component/date-picker/day-picker/day-item/day-item.component.d.ts +9 -0
  20. package/component/date-picker/day-picker/day-picker.component.d.ts +30 -0
  21. package/component/date-picker/model/from-to.model.d.ts +4 -0
  22. package/component/date-picker/model/min-max-date.model.d.ts +4 -0
  23. package/component/date-picker/month-picker/month-picker.component.d.ts +16 -50
  24. package/component/date-picker/public-api.d.ts +5 -4
  25. package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +11 -0
  26. package/component/date-picker/year-picker/year-picker.component.d.ts +24 -0
  27. package/component/divider/divider/divider.component.d.ts +10 -0
  28. package/component/divider/divider.module.d.ts +8 -0
  29. package/component/divider/public-api.d.ts +2 -0
  30. package/component/dropdown/dropdown-base.d.ts +3 -1
  31. package/component/icon/icon-file/icon-file.component.d.ts +9 -3
  32. package/component/icon/icon-file/icon-file.module.d.ts +9 -0
  33. package/component/icon/icon.module.d.ts +4 -5
  34. package/component/icon/public-api.d.ts +1 -0
  35. package/component/input/input/input.component.d.ts +3 -1
  36. package/component/message/model/message.d.ts +3 -0
  37. package/component/public-api.d.ts +2 -0
  38. package/component/select/select/select.component.d.ts +4 -1
  39. package/component/switch/switch/switch.component.d.ts +4 -1
  40. package/directive/hint/hint.directive.d.ts +3 -1
  41. package/esm2020/common/model/view-type.model.mjs +2 -0
  42. package/esm2020/component/accordion/accordion/accordion.component.mjs +3 -2
  43. package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +3 -2
  44. package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +13 -3
  45. package/esm2020/component/avatar/avatar/avatar.component.mjs +57 -0
  46. package/esm2020/component/avatar/avatar.module.mjs +28 -0
  47. package/esm2020/component/avatar/model/avatar-color.enum.mjs +22 -0
  48. package/esm2020/component/avatar/public-api.mjs +3 -0
  49. package/esm2020/component/button/button/button.component.mjs +18 -3
  50. package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +6 -3
  51. package/esm2020/component/date-picker/base-calendar.mjs +99 -0
  52. package/esm2020/component/date-picker/base-picker.mjs +102 -0
  53. package/esm2020/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +49 -0
  54. package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +141 -234
  55. package/esm2020/component/date-picker/date-picker.module.mjs +41 -41
  56. package/esm2020/component/date-picker/date-range/date-range.component.mjs +211 -0
  57. package/esm2020/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +108 -0
  58. package/esm2020/component/date-picker/day-picker/day-item/day-item.component.mjs +15 -0
  59. package/esm2020/component/date-picker/day-picker/day-picker.component.mjs +113 -0
  60. package/esm2020/component/date-picker/model/from-to.model.mjs +2 -0
  61. package/esm2020/component/date-picker/model/min-max-date.model.mjs +2 -0
  62. package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +33 -236
  63. package/esm2020/component/date-picker/public-api.mjs +6 -5
  64. package/esm2020/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +26 -0
  65. package/esm2020/component/date-picker/year-picker/year-picker.component.mjs +48 -0
  66. package/esm2020/component/divider/divider/divider.component.mjs +18 -0
  67. package/esm2020/component/divider/divider.module.mjs +20 -0
  68. package/esm2020/component/divider/public-api.mjs +3 -0
  69. package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +3 -2
  70. package/esm2020/component/dropdown/dropdown-base.mjs +6 -2
  71. package/esm2020/component/dropdown/dropdown.directive.mjs +1 -1
  72. package/esm2020/component/expand-card/expand-card/expand-card.component.mjs +1 -1
  73. package/esm2020/component/expand-card/expand-item/expand-item.component.mjs +1 -1
  74. package/esm2020/component/expand-panel/expand-panel/expand-panel.component.mjs +1 -1
  75. package/esm2020/component/file-upload/file-upload-area/file-upload-area.component.mjs +1 -1
  76. package/esm2020/component/filter/date-filter/date-filter.component.mjs +1 -1
  77. package/esm2020/component/filter/list-filter/list-filter.component.mjs +1 -1
  78. package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +1 -1
  79. package/esm2020/component/filter/string-filter/string-filter.component.mjs +1 -1
  80. package/esm2020/component/icon/icon-file/icon-file.component.mjs +20 -6
  81. package/esm2020/component/icon/icon-file/icon-file.module.mjs +28 -0
  82. package/esm2020/component/icon/icon.module.mjs +1 -6
  83. package/esm2020/component/icon/public-api.mjs +2 -1
  84. package/esm2020/component/input/input/input.component.mjs +6 -3
  85. package/esm2020/component/input/input.module.mjs +1 -1
  86. package/esm2020/component/input/text-field/text-field.component.mjs +3 -3
  87. package/esm2020/component/message/message/message.component.mjs +4 -3
  88. package/esm2020/component/message/message-host/message-host.component.mjs +1 -1
  89. package/esm2020/component/message/model/message.mjs +2 -1
  90. package/esm2020/component/modal/dialog/dialog.component.mjs +1 -1
  91. package/esm2020/component/property-grid/property-grid/property-grid-item/property-grid-item.component.mjs +2 -2
  92. package/esm2020/component/public-api.mjs +4 -1
  93. package/esm2020/component/select/select/select.component.mjs +9 -4
  94. package/esm2020/component/switch/switch/switch.component.mjs +19 -7
  95. package/esm2020/component/table/default/boolean-cell/boolean-cell.component.mjs +1 -1
  96. package/esm2020/component/table/default/date-cell/date-cell.component.mjs +1 -1
  97. package/esm2020/component/table/default/date-time-cell/date-time-cell.component.mjs +1 -1
  98. package/esm2020/component/table/default/default-head-cell/default-head-cell.component.mjs +1 -1
  99. package/esm2020/component/table/default/list-cell/list-cell.component.mjs +1 -1
  100. package/esm2020/component/table/default/string-cell/string-cell.component.mjs +1 -1
  101. package/esm2020/component/table/selection-cell/selection-cell.component.mjs +1 -1
  102. package/esm2020/component/table/selection-head-cell/selection-head-cell.component.mjs +1 -1
  103. package/esm2020/component/table/table-head/filter-dropdown-tab/filter-dropdown-tab.component.mjs +1 -1
  104. package/esm2020/component/table/table-head/visibility-dropdown-tab/visibility-dropdown-tab.component.mjs +1 -1
  105. package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +1 -1
  106. package/esm2020/directive/hint/hint.directive.mjs +6 -3
  107. package/esm2020/locale/en.mjs +3 -1
  108. package/esm2020/locale/ru.mjs +3 -1
  109. package/esm2020/locale/teta-localisation.mjs +1 -1
  110. package/fesm2015/tetacom-ng-components.mjs +2898 -3015
  111. package/fesm2015/tetacom-ng-components.mjs.map +1 -1
  112. package/fesm2020/tetacom-ng-components.mjs +5440 -5565
  113. package/fesm2020/tetacom-ng-components.mjs.map +1 -1
  114. package/locale/teta-localisation.d.ts +2 -0
  115. package/package.json +3 -2
  116. package/style/accordion.scss +28 -6
  117. package/style/assembly-library.scss +4 -1
  118. package/style/badge.scss +28 -0
  119. package/style/bottombar.scss +5 -0
  120. package/style/button.scss +16 -12
  121. package/style/checkbox.scss +26 -13
  122. package/style/chips.scss +10 -10
  123. package/style/color.scss +1 -36
  124. package/style/datepicker.scss +139 -24
  125. package/style/divider.scss +15 -0
  126. package/style/drag.scss +1 -1
  127. package/style/dropdown.scss +6 -4
  128. package/style/hint.scss +5 -5
  129. package/style/icon.scss +2 -1
  130. package/style/input.scss +32 -23
  131. package/style/layout.scss +6 -2
  132. package/style/list.scss +11 -8
  133. package/style/loader.scss +2 -2
  134. package/style/message.scss +15 -7
  135. package/style/modal.scss +3 -2
  136. package/style/navigation.scss +4 -1
  137. package/style/presets/color-presets.scss +9 -160
  138. package/style/presets/font-presets.scss +26 -25
  139. package/style/presets/view-types.scss +15 -0
  140. package/style/progress.scss +3 -3
  141. package/style/radio.scss +21 -7
  142. package/style/resize-panel.scss +2 -2
  143. package/style/scroll.scss +3 -3
  144. package/style/select.scss +26 -21
  145. package/style/shadow.scss +0 -20
  146. package/style/sidebar.scss +1 -1
  147. package/style/switch.scss +15 -10
  148. package/style/table.scss +15 -15
  149. package/style/tabs.scss +11 -11
  150. package/style/tag.scss +37 -0
  151. package/style/toggle.scss +20 -18
  152. package/style/toolbar.scss +1 -1
  153. package/style/tooltip.scss +8 -6
  154. package/style/tree.scss +4 -4
  155. package/component/date-picker/day-select/day-select.component.d.ts +0 -51
  156. package/component/date-picker/model/date-picker-mode.enum.d.ts +0 -5
  157. package/component/date-picker/month-select/month-select.component.d.ts +0 -40
  158. package/component/date-picker/service/picker-touch.service.d.ts +0 -12
  159. package/component/date-picker/time-part-control/time-part-control.component.d.ts +0 -26
  160. package/component/date-picker/util/date-picker-util.d.ts +0 -15
  161. package/component/date-picker/year-select/year-select.component.d.ts +0 -45
  162. package/esm2020/component/date-picker/day-select/day-select.component.mjs +0 -184
  163. package/esm2020/component/date-picker/model/date-picker-mode.enum.mjs +0 -7
  164. package/esm2020/component/date-picker/month-select/month-select.component.mjs +0 -148
  165. package/esm2020/component/date-picker/service/picker-touch.service.mjs +0 -34
  166. package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +0 -73
  167. package/esm2020/component/date-picker/util/date-picker-util.mjs +0 -142
  168. package/esm2020/component/date-picker/year-select/year-select.component.mjs +0 -189
  169. package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +0 -18
  170. package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +0 -21
  171. package/pipe/prepend-zero/prepend-zero.module.d.ts +0 -8
  172. package/pipe/prepend-zero/prepend-zero.pipe.d.ts +0 -7
  173. package/style/tokens/basedark.tokens.css +0 -77
  174. package/style/tokens/baselight.tokens.css +0 -61
  175. package/style/tokens/global.tokens.css +0 -235
  176. package/style/tokens/utility.tokens.css +0 -1119
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 getColorVar('text', '20');
34
- border-radius: 4px;
35
- background-color: getColorVar('background', '50');
36
- color: getColorVar('text', 90);
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: getColorVar('red', '50');
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: getColorVar('red', '50');
57
+ color: var(--color-red-50);
54
58
  }
55
59
 
56
60
  &::placeholder {
57
- color: getColorVar('text', '40');
61
+ color: var(--color-text-40);
58
62
  }
59
63
 
60
64
  &:focus-within, &:focus {
61
- border-color: getColorVar('primary', '50');
65
+ border-color: var(--color-primary-50);
62
66
  }
63
67
 
64
68
  &:focus-within {
65
69
  &::placeholder {
66
- color: getColorVar('text', '20');
70
+ color: var(--color-text-20);
67
71
  }
68
72
 
69
73
  input::placeholder {
70
- color: getColorVar('text', '20');
74
+ color: var(--color-text-20);
71
75
  }
72
76
  }
73
77
 
74
78
  &:disabled, &[disabled], &_disabled {
75
79
  border: 0;
76
- background: getColorVar('text', '5');
77
- color: getColorVar('text', '40');
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: getColorVar('text', '40');
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
- &:hover:not([disabled]):not(&_disabled), &:focus-within {
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: getColorVar('text', 90);
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: getColorVar('text', 40);
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: getColorVar('background', '50');
125
- border: dashed 1px getColorVar('text', '10');
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: getColorVar('text', '10');
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: getColorVar('text', '50');
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: getColorVar('text', '50');
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: getColorVar('text', '90');
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: getColorVar('background', 50);
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: 4px;
9
- color: getColorVar('text', '90');
10
- background-color: getColorVar('background', '50');
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: getColorVar('text', '20');
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: getColorVar('text', '5');
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: getColorVar('text', '10');
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: getColorVar('text', '10');
61
+ background-color: var(--color-text-10);
59
62
  }
60
63
 
61
64
  &-title {
62
- color: getColorVar('text', '50');
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 getColorVar('primary', '50');
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: getColorVar('background', '50');
25
+ background: var(--color-global-bgcard);
26
26
  opacity: 0.2;
27
27
  position: absolute;
28
28
  top: 0;
@@ -1,18 +1,26 @@
1
1
  @import "util/shadow-util.scss";
2
2
 
3
3
  .message {
4
- @include shadow(5);
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
- border-radius: 4px;
11
- color: getColorVar('white', '50');
12
- width: 240px;
13
- @each $paletteName in $palettes {
14
- &-#{$paletteName} {
15
- background-color: getColorVar($paletteName, '50');
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
@@ -19,8 +19,9 @@
19
19
  }
20
20
 
21
21
  &__container {
22
- @include shadow(5);
23
- background-color: getColorVar('background', '50');
22
+ min-width: 300px;
23
+ box-shadow: var(--shadow-5);;
24
+ background-color: var(--color-global-bgcard);
24
25
  border: solid 0;
25
26
  border-radius: 4px;
26
27
 
@@ -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
- @each $paletteName in $palettes {
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,10 @@
1
- $themes: (
2
- 'default': (
3
- 'text': (
4
- '90': rgba(33, 36, 42),
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
- $palettes: 'primary', 'text', 'red', 'green', 'yellow', 'background', 'white', 'backdrop', 'black', 'link';
161
- $grades: '90', '80', '70', '60', '50', '40', '30', '20', '10', '5', '0';
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';
10
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@@ -1,7 +1,7 @@
1
1
  $fonts: (
2
2
  h-1: (
3
3
  font-size:92px,
4
- font-family:"Open Sans",
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:"Open Sans",
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:"Open Sans",
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:"Open Sans",
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:"Open Sans",
38
- font-weight:600,
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:"Open Sans",
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:"Open Sans",
54
- font-weight:600,
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:"Open Sans",
63
- font-weight:600,
63
+ font-family:"Inter",
64
+ font-weight:500,
64
65
  font-style:normal,
65
- line-height:16px,
66
+ line-height:20px,
66
67
  text-decoration:none
67
68
  ),
68
69
  title-3: (
69
70
  font-size:12px,
70
- font-family:"Open Sans",
71
- font-weight:600,
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:"Open Sans",
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:"Open Sans",
87
- font-weight:normal,
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:"Open Sans",
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:"Open Sans",
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:"Open Sans",
111
- font-weight:600,
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:"Open Sans",
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:"Open Sans",
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:"Open Sans",
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:"Open Sans",
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
+ }
@@ -4,11 +4,11 @@
4
4
  width: 100%;
5
5
  height: 4px;
6
6
  display: flex;
7
- background: getColorVar('text', '10');
7
+ background: var(--color-text-10);
8
8
  position: relative;
9
9
 
10
10
  &-bar {
11
- background: getColorVar('primary', '50');
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: getColorVar('primary', '50');
22
+ background: var(--color-primary-50);
23
23
  }
24
24
 
25
25
  &:hover &-slider, &-slider_visible {