@tetacom/ng-components 1.0.150 → 1.1.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/assets/color-icons.svg +521 -49
- package/assets/file-icons.svg +1 -0
- package/assets/icons.svg +138 -205
- package/component/accordion/accordion-item/accordion-item.component.d.ts +1 -4
- package/component/button/button/button.component.d.ts +1 -4
- package/component/checkbox/checkbox/checkbox.component.d.ts +1 -2
- package/component/date-picker/date-picker/date-picker.component.d.ts +68 -38
- package/component/date-picker/date-picker.module.d.ts +16 -19
- package/component/date-picker/day-select/day-select.component.d.ts +51 -0
- package/component/date-picker/model/date-picker-mode.enum.d.ts +5 -0
- package/component/date-picker/month-picker/month-picker.component.d.ts +50 -16
- package/component/date-picker/month-select/month-select.component.d.ts +40 -0
- package/component/date-picker/public-api.d.ts +4 -5
- package/component/date-picker/service/picker-touch.service.d.ts +12 -0
- package/component/date-picker/time-part-control/time-part-control.component.d.ts +26 -0
- package/component/date-picker/util/date-picker-util.d.ts +15 -0
- package/component/date-picker/year-select/year-select.component.d.ts +45 -0
- package/component/dropdown/dropdown-base.d.ts +1 -3
- package/component/filter/filter.module.d.ts +2 -1
- package/component/icon/icon-file/icon-file.component.d.ts +3 -9
- package/component/icon/icon.module.d.ts +5 -4
- package/component/icon/public-api.d.ts +0 -1
- package/component/input/input/input.component.d.ts +1 -3
- package/component/message/model/message.d.ts +0 -3
- package/component/public-api.d.ts +0 -2
- package/component/select/select/select.component.d.ts +1 -4
- package/component/select/select.module.d.ts +2 -1
- package/component/switch/switch/switch.component.d.ts +1 -4
- package/component/table/table-body/table-body.component.d.ts +1 -0
- package/component/table/table.module.d.ts +2 -1
- package/component/tree/tree.module.d.ts +2 -1
- package/directive/hint/hint.directive.d.ts +1 -3
- package/directive/only-number/only-number.directive.d.ts +2 -1
- package/directive/public-api.d.ts +1 -0
- package/directive/scrollable/public-api.d.ts +3 -0
- package/directive/scrollable/scrollable/scrollable.component.d.ts +32 -0
- package/directive/scrollable/scrollable.directive.d.ts +6 -0
- package/directive/scrollable/scrollable.module.d.ts +10 -0
- package/esm2020/component/accordion/accordion/accordion.component.mjs +2 -3
- package/esm2020/component/accordion/accordion-head/accordion-head.component.mjs +2 -3
- package/esm2020/component/accordion/accordion-item/accordion-item.component.mjs +3 -13
- package/esm2020/component/button/button/button.component.mjs +3 -18
- package/esm2020/component/checkbox/checkbox/checkbox.component.mjs +3 -6
- package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +235 -141
- package/esm2020/component/date-picker/date-picker.module.mjs +45 -41
- package/esm2020/component/date-picker/day-select/day-select.component.mjs +184 -0
- package/esm2020/component/date-picker/model/date-picker-mode.enum.mjs +7 -0
- package/esm2020/component/date-picker/month-picker/month-picker.component.mjs +237 -33
- package/esm2020/component/date-picker/month-select/month-select.component.mjs +148 -0
- package/esm2020/component/date-picker/public-api.mjs +5 -6
- package/esm2020/component/date-picker/service/picker-touch.service.mjs +34 -0
- package/esm2020/component/date-picker/time-part-control/time-part-control.component.mjs +73 -0
- package/esm2020/component/date-picker/util/date-picker-util.mjs +142 -0
- package/esm2020/component/date-picker/year-select/year-select.component.mjs +189 -0
- package/esm2020/component/dropdown/dropdown/dropdown.component.mjs +2 -3
- package/esm2020/component/dropdown/dropdown-base.mjs +2 -6
- 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/filter.module.mjs +7 -3
- package/esm2020/component/filter/list-filter/list-filter.component.mjs +4 -3
- 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 +6 -20
- package/esm2020/component/icon/icon.module.mjs +6 -1
- package/esm2020/component/icon/public-api.mjs +1 -2
- package/esm2020/component/input/input/input.component.mjs +3 -6
- 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 +3 -4
- package/esm2020/component/message/message-host/message-host.component.mjs +1 -1
- package/esm2020/component/message/model/message.mjs +1 -2
- 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 +1 -4
- package/esm2020/component/select/select/select.component.mjs +6 -9
- package/esm2020/component/select/select.module.mjs +7 -3
- package/esm2020/component/switch/switch/switch.component.mjs +7 -19
- 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-body/table-body.component.mjs +11 -6
- 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 +4 -3
- package/esm2020/component/table/table.module.mjs +7 -3
- package/esm2020/component/theme-switch/theme-switch/theme-switch.component.mjs +1 -1
- package/esm2020/component/tree/tree/tree.component.mjs +6 -4
- package/esm2020/component/tree/tree.module.mjs +5 -4
- package/esm2020/directive/hint/hint.directive.mjs +3 -6
- package/esm2020/directive/only-number/only-number.directive.mjs +12 -2
- package/esm2020/directive/public-api.mjs +2 -1
- package/esm2020/directive/scrollable/public-api.mjs +4 -0
- package/esm2020/directive/scrollable/scrollable/scrollable.component.mjs +96 -0
- package/esm2020/directive/scrollable/scrollable.directive.mjs +19 -0
- package/esm2020/directive/scrollable/scrollable.module.mjs +33 -0
- package/esm2020/locale/en.mjs +1 -3
- package/esm2020/locale/ru.mjs +1 -3
- package/esm2020/locale/teta-localisation.mjs +1 -1
- package/esm2020/observable/animation-frame.mjs +30 -0
- package/esm2020/observable/public-api.mjs +2 -1
- package/esm2020/pipe/prepend-zero/prepend-zero.module.mjs +18 -0
- package/esm2020/pipe/prepend-zero/prepend-zero.pipe.mjs +21 -0
- package/fesm2015/tetacom-ng-components.mjs +5483 -5181
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +3333 -3025
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/locale/teta-localisation.d.ts +0 -2
- package/observable/animation-frame.d.ts +4 -0
- package/observable/public-api.d.ts +1 -0
- package/package.json +2 -3
- package/pipe/prepend-zero/prepend-zero.module.d.ts +8 -0
- package/pipe/prepend-zero/prepend-zero.pipe.d.ts +7 -0
- package/style/accordion.scss +6 -28
- package/style/assembly-library.scss +1 -4
- package/style/assembly-presets.scss +1 -0
- package/style/button.scss +13 -16
- package/style/checkbox.scss +13 -26
- package/style/chips.scss +10 -10
- package/style/color.scss +36 -1
- package/style/datepicker.scss +24 -139
- package/style/drag.scss +1 -1
- package/style/dropdown.scss +4 -6
- package/style/hint.scss +5 -5
- package/style/icon.scss +1 -2
- package/style/input.scss +23 -32
- package/style/layout.scss +2 -6
- package/style/library.scss +17 -0
- package/style/list.scss +8 -11
- package/style/loader.scss +2 -2
- package/style/message.scss +7 -15
- package/style/modal.scss +2 -3
- package/style/navigation.scss +1 -4
- package/style/presets/color-presets.scss +160 -8
- package/style/presets/font-presets.scss +25 -26
- package/style/presets/shadow-presets.scss +16 -0
- package/style/progress.scss +3 -3
- package/style/radio.scss +7 -21
- package/style/resize-panel.scss +2 -2
- package/style/scroll.scss +21 -17
- package/style/select.scss +21 -26
- package/style/shadow.scss +20 -0
- package/style/sidebar.scss +1 -1
- package/style/switch.scss +10 -15
- package/style/table.scss +15 -17
- package/style/tabs.scss +11 -11
- package/style/toggle.scss +18 -20
- package/style/tokens/basedark.tokens.css +77 -0
- package/style/tokens/baselight.tokens.css +61 -0
- package/style/tokens/global.tokens.css +235 -0
- package/style/tokens/utility.tokens.css +1119 -0
- package/style/toolbar.scss +1 -1
- package/style/tooltip.scss +6 -8
- package/style/tree.scss +4 -4
- package/style/util/button-util.scss +58 -0
- package/common/model/view-type.model.d.ts +0 -1
- package/component/avatar/avatar/avatar.component.d.ts +0 -17
- package/component/avatar/avatar.module.d.ts +0 -9
- package/component/avatar/model/avatar-color.enum.d.ts +0 -20
- package/component/avatar/public-api.d.ts +0 -2
- package/component/date-picker/base-calendar.d.ts +0 -49
- package/component/date-picker/base-picker.d.ts +0 -60
- package/component/date-picker/date-picker/date-calendar/date-calendar.component.d.ts +0 -20
- package/component/date-picker/date-range/date-range.component.d.ts +0 -46
- package/component/date-picker/date-range/range-calendar/range-calendar.component.d.ts +0 -39
- package/component/date-picker/day-picker/day-item/day-item.component.d.ts +0 -9
- package/component/date-picker/day-picker/day-picker.component.d.ts +0 -30
- package/component/date-picker/model/from-to.model.d.ts +0 -4
- package/component/date-picker/model/min-max-date.model.d.ts +0 -4
- package/component/date-picker/year-picker/scroll-to-selected-year.directive.d.ts +0 -11
- package/component/date-picker/year-picker/year-picker.component.d.ts +0 -24
- package/component/divider/divider/divider.component.d.ts +0 -10
- package/component/divider/divider.module.d.ts +0 -8
- package/component/divider/public-api.d.ts +0 -2
- package/component/icon/icon-file/icon-file.module.d.ts +0 -9
- package/esm2020/common/model/view-type.model.mjs +0 -2
- package/esm2020/component/avatar/avatar/avatar.component.mjs +0 -57
- package/esm2020/component/avatar/avatar.module.mjs +0 -28
- package/esm2020/component/avatar/model/avatar-color.enum.mjs +0 -22
- package/esm2020/component/avatar/public-api.mjs +0 -3
- package/esm2020/component/date-picker/base-calendar.mjs +0 -99
- package/esm2020/component/date-picker/base-picker.mjs +0 -102
- package/esm2020/component/date-picker/date-picker/date-calendar/date-calendar.component.mjs +0 -49
- package/esm2020/component/date-picker/date-range/date-range.component.mjs +0 -211
- package/esm2020/component/date-picker/date-range/range-calendar/range-calendar.component.mjs +0 -108
- package/esm2020/component/date-picker/day-picker/day-item/day-item.component.mjs +0 -15
- package/esm2020/component/date-picker/day-picker/day-picker.component.mjs +0 -113
- package/esm2020/component/date-picker/model/from-to.model.mjs +0 -2
- package/esm2020/component/date-picker/model/min-max-date.model.mjs +0 -2
- package/esm2020/component/date-picker/year-picker/scroll-to-selected-year.directive.mjs +0 -26
- package/esm2020/component/date-picker/year-picker/year-picker.component.mjs +0 -48
- package/esm2020/component/divider/divider/divider.component.mjs +0 -18
- package/esm2020/component/divider/divider.module.mjs +0 -20
- package/esm2020/component/divider/public-api.mjs +0 -3
- package/esm2020/component/icon/icon-file/icon-file.module.mjs +0 -28
- package/style/badge.scss +0 -28
- package/style/bottombar.scss +0 -5
- package/style/divider.scss +0 -15
- package/style/presets/view-types.scss +0 -15
- package/style/tag.scss +0 -37
- package/style/util/scroll-util.scss +0 -4
package/style/input.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@import "util/color-util.scss";
|
|
2
2
|
@import "util/font-util.scss";
|
|
3
|
-
@import "presets/view-types.scss";
|
|
4
3
|
|
|
5
4
|
.form-container {
|
|
6
5
|
display: flex;
|
|
@@ -31,10 +30,10 @@
|
|
|
31
30
|
|
|
32
31
|
.text-field, .input, .textarea {
|
|
33
32
|
padding: 6px 8px;
|
|
34
|
-
border: solid 1px
|
|
35
|
-
|
|
36
|
-
background-
|
|
37
|
-
color:
|
|
33
|
+
border: solid 1px getColorVar('text', '20');
|
|
34
|
+
border-radius: 4px;
|
|
35
|
+
background-color: getColorVar('background', '50');
|
|
36
|
+
color: getColorVar('text', 90);
|
|
38
37
|
@include getFont($fonts, 'body-3');
|
|
39
38
|
display: flex;
|
|
40
39
|
flex-direction: row;
|
|
@@ -42,61 +41,53 @@
|
|
|
42
41
|
grid-gap: 4px;
|
|
43
42
|
width: 100%;
|
|
44
43
|
min-width: 0;
|
|
45
|
-
transition: border-color 0.4s
|
|
46
|
-
|
|
47
|
-
@include getView('field');
|
|
48
|
-
|
|
44
|
+
transition: border-color 0.4s;
|
|
49
45
|
|
|
50
46
|
&_invalid {
|
|
51
|
-
border-color:
|
|
47
|
+
border-color: getColorVar('red', '50');
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
&_required::after {
|
|
55
51
|
margin-left: 4px;
|
|
56
52
|
content: '*';
|
|
57
|
-
color:
|
|
53
|
+
color: getColorVar('red', '50');
|
|
58
54
|
}
|
|
59
55
|
|
|
60
56
|
&::placeholder {
|
|
61
|
-
color:
|
|
57
|
+
color: getColorVar('text', '40');
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
&:focus-within, &:focus {
|
|
65
|
-
border-color:
|
|
61
|
+
border-color: getColorVar('primary', '50');
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
&:focus-within {
|
|
69
65
|
&::placeholder {
|
|
70
|
-
color:
|
|
66
|
+
color: getColorVar('text', '20');
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
input::placeholder {
|
|
74
|
-
color:
|
|
70
|
+
color: getColorVar('text', '20');
|
|
75
71
|
}
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
&:disabled, &[disabled], &_disabled {
|
|
79
75
|
border: 0;
|
|
80
|
-
background:
|
|
81
|
-
color:
|
|
76
|
+
background: getColorVar('text', '5');
|
|
77
|
+
color: getColorVar('text', '40');
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
&:hover:not([disabled]):not(&_disabled):not(:focus-within) {
|
|
85
|
-
border-color:
|
|
86
|
-
background-color: var(--color-text-10);
|
|
81
|
+
border-color: getColorVar('text', '40');
|
|
87
82
|
}
|
|
88
83
|
|
|
89
84
|
.close-icon {
|
|
90
85
|
display: none;
|
|
86
|
+
position: absolute;
|
|
91
87
|
right: 4px;
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
cursor: pointer;
|
|
95
|
-
display: flex;
|
|
96
|
-
}
|
|
97
88
|
}
|
|
98
89
|
|
|
99
|
-
&:focus-within {
|
|
90
|
+
&:hover:not([disabled]):not(&_disabled), &:focus-within {
|
|
100
91
|
.close-icon {
|
|
101
92
|
display: flex;
|
|
102
93
|
}
|
|
@@ -111,13 +102,13 @@
|
|
|
111
102
|
position: relative;
|
|
112
103
|
|
|
113
104
|
input {
|
|
114
|
-
color:
|
|
105
|
+
color: getColorVar('text', 90);
|
|
115
106
|
border-width: 0;
|
|
116
107
|
width: 100%;
|
|
117
108
|
}
|
|
118
109
|
|
|
119
110
|
teta-icon {
|
|
120
|
-
fill:
|
|
111
|
+
fill: getColorVar('text', 40);
|
|
121
112
|
}
|
|
122
113
|
}
|
|
123
114
|
|
|
@@ -130,8 +121,8 @@
|
|
|
130
121
|
flex-direction: column;
|
|
131
122
|
align-items: center;
|
|
132
123
|
justify-content: center;
|
|
133
|
-
background:
|
|
134
|
-
border: dashed 1px
|
|
124
|
+
background: getColorVar('background', '50');
|
|
125
|
+
border: dashed 1px getColorVar('text', '10');
|
|
135
126
|
border-radius: 4px;
|
|
136
127
|
transition: background 0.4s;
|
|
137
128
|
grid-gap: 8px;
|
|
@@ -148,7 +139,7 @@
|
|
|
148
139
|
}
|
|
149
140
|
|
|
150
141
|
&_active {
|
|
151
|
-
background-color:
|
|
142
|
+
background-color: getColorVar('text', '10');
|
|
152
143
|
}
|
|
153
144
|
}
|
|
154
145
|
|
|
@@ -157,7 +148,7 @@
|
|
|
157
148
|
display: flex;
|
|
158
149
|
align-items: center;
|
|
159
150
|
grid-gap: 8px;
|
|
160
|
-
color:
|
|
151
|
+
color: getColorVar('text', '50');
|
|
161
152
|
|
|
162
153
|
&-text {
|
|
163
154
|
flex-shrink: 0;
|
|
@@ -167,6 +158,6 @@
|
|
|
167
158
|
&-line {
|
|
168
159
|
flex-grow: 1;
|
|
169
160
|
height: 1px;
|
|
170
|
-
background:
|
|
161
|
+
background: getColorVar('text', '50');
|
|
171
162
|
}
|
|
172
163
|
}
|
package/style/layout.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
body {
|
|
9
|
-
color:
|
|
9
|
+
color: getColorVar('text', '90');
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.app {
|
|
@@ -37,10 +37,6 @@ body {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
.row-reverse{
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: row-reverse;
|
|
43
|
-
}
|
|
44
40
|
|
|
45
41
|
.column {
|
|
46
42
|
display: flex;
|
|
@@ -138,5 +134,5 @@ body {
|
|
|
138
134
|
border: solid 0;
|
|
139
135
|
border-radius: 4px;
|
|
140
136
|
overflow: hidden;
|
|
141
|
-
background:
|
|
137
|
+
background: getColorVar('background', 50);
|
|
142
138
|
}
|
package/style/library.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
height: 0;
|
|
4
4
|
line-height: 0;
|
|
5
5
|
}
|
|
6
|
+
|
|
6
7
|
.float {
|
|
7
8
|
&__right {
|
|
8
9
|
float: right;
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
float: left;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
.position {
|
|
16
18
|
&-relative {
|
|
17
19
|
position: relative;
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
position: fixed;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
.display {
|
|
29
32
|
&-block {
|
|
30
33
|
display: flex !important;
|
|
@@ -45,6 +48,10 @@
|
|
|
45
48
|
&-inline {
|
|
46
49
|
display: inline !important;
|
|
47
50
|
}
|
|
51
|
+
|
|
52
|
+
&-none {
|
|
53
|
+
display: none !important;
|
|
54
|
+
}
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
.flex {
|
|
@@ -62,6 +69,7 @@
|
|
|
62
69
|
flex-wrap: nowrap !important;
|
|
63
70
|
}
|
|
64
71
|
}
|
|
72
|
+
|
|
65
73
|
.align {
|
|
66
74
|
&-center {
|
|
67
75
|
align-items: center;
|
|
@@ -83,6 +91,7 @@
|
|
|
83
91
|
align-items: baseline;
|
|
84
92
|
}
|
|
85
93
|
}
|
|
94
|
+
|
|
86
95
|
.align-self {
|
|
87
96
|
&-center {
|
|
88
97
|
align-self: center;
|
|
@@ -104,6 +113,7 @@
|
|
|
104
113
|
align-self: baseline;
|
|
105
114
|
}
|
|
106
115
|
}
|
|
116
|
+
|
|
107
117
|
.justify-content {
|
|
108
118
|
&-between {
|
|
109
119
|
justify-content: space-between;
|
|
@@ -125,6 +135,7 @@
|
|
|
125
135
|
justify-content: center;
|
|
126
136
|
}
|
|
127
137
|
}
|
|
138
|
+
|
|
128
139
|
.justify-self {
|
|
129
140
|
&-center {
|
|
130
141
|
justify-self: center;
|
|
@@ -138,9 +149,11 @@
|
|
|
138
149
|
justify-self: flex-end;
|
|
139
150
|
}
|
|
140
151
|
}
|
|
152
|
+
|
|
141
153
|
.nowrap {
|
|
142
154
|
white-space: nowrap;
|
|
143
155
|
}
|
|
156
|
+
|
|
144
157
|
.overflow {
|
|
145
158
|
&-hidden {
|
|
146
159
|
overflow: hidden;
|
|
@@ -178,6 +191,7 @@
|
|
|
178
191
|
overflow-y: scroll;
|
|
179
192
|
}
|
|
180
193
|
}
|
|
194
|
+
|
|
181
195
|
.text-align {
|
|
182
196
|
&-center {
|
|
183
197
|
text-align: center;
|
|
@@ -191,16 +205,19 @@
|
|
|
191
205
|
text-align: right;
|
|
192
206
|
}
|
|
193
207
|
}
|
|
208
|
+
|
|
194
209
|
.cursor-pointer {
|
|
195
210
|
&:hover {
|
|
196
211
|
cursor: pointer;
|
|
197
212
|
}
|
|
198
213
|
}
|
|
214
|
+
|
|
199
215
|
.text-overflow {
|
|
200
216
|
&-ellipsis {
|
|
201
217
|
text-overflow: ellipsis;
|
|
202
218
|
}
|
|
203
219
|
}
|
|
220
|
+
|
|
204
221
|
.text-decoration {
|
|
205
222
|
&-none {
|
|
206
223
|
text-decoration: none;
|
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: 4px;
|
|
9
|
+
color: getColorVar('text', '90');
|
|
10
|
+
background-color: getColorVar('background', '50');
|
|
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: getColorVar('text', '20');
|
|
32
32
|
pointer-events: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -37,16 +37,13 @@
|
|
|
37
37
|
transition: background 0.4s;
|
|
38
38
|
|
|
39
39
|
&:hover:not(&_disabled) {
|
|
40
|
-
background-color:
|
|
40
|
+
background-color: getColorVar('text', '5');
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
-
&:active:not(&_disabled) {
|
|
44
|
-
background-color: var(--color-text-10);
|
|
45
|
-
}
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
&_interactive#{&}_active {
|
|
49
|
-
background-color:
|
|
46
|
+
background-color: getColorVar('text', '10');
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
&:hover > .sublist {
|
|
@@ -58,11 +55,11 @@
|
|
|
58
55
|
height: 1px;
|
|
59
56
|
flex-shrink: 0;
|
|
60
57
|
margin: 8px 0;
|
|
61
|
-
background-color:
|
|
58
|
+
background-color: getColorVar('text', '10');
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
&-title {
|
|
65
|
-
color:
|
|
62
|
+
color: getColorVar('text', '50');
|
|
66
63
|
@include getFont($fonts, 'overline');
|
|
67
64
|
}
|
|
68
65
|
}
|
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 getColorVar('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: getColorVar('background', '50');
|
|
26
26
|
opacity: 0.2;
|
|
27
27
|
position: absolute;
|
|
28
28
|
top: 0;
|
package/style/message.scss
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
@import "util/shadow-util.scss";
|
|
2
2
|
|
|
3
3
|
.message {
|
|
4
|
-
|
|
5
|
-
box-shadow: var(--shadow-2);
|
|
4
|
+
@include shadow(5);
|
|
6
5
|
display: inline-flex;
|
|
7
6
|
flex-direction: column;
|
|
8
7
|
padding: 8px;
|
|
9
8
|
margin: 8px;
|
|
10
9
|
border: solid 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
background: getColorVar($paletteName, '50');
|
|
18
|
-
content: " ";
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
width: 4px;
|
|
23
|
-
height: 100%;
|
|
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');
|
|
24
16
|
}
|
|
25
17
|
}
|
|
26
18
|
}
|
package/style/modal.scss
CHANGED
package/style/navigation.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@import "util/color-util.scss";
|
|
2
2
|
@import "util/font-util.scss";
|
|
3
|
-
@import "presets/view-types.scss";
|
|
4
3
|
|
|
5
4
|
.navigation {
|
|
6
5
|
&-item {
|
|
@@ -12,9 +11,7 @@
|
|
|
12
11
|
@include getFont($fonts, 'title-3');
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
@
|
|
16
|
-
|
|
17
|
-
@each $paletteName, $palette in map-get($themes, nth(map-keys($themes), 1)) {
|
|
14
|
+
@each $paletteName in $palettes {
|
|
18
15
|
&-#{$paletteName} {
|
|
19
16
|
background: getColorVar($paletteName, '50');
|
|
20
17
|
}
|
|
@@ -1,9 +1,161 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
);
|
|
5
159
|
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
|
|
9
|
-
@import '@tetacom/themes/src/generate.scss';
|
|
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';
|