@itcase/ui 1.7.0 → 1.8.1
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/dist/{Badge-BE28NFES.js → Badge-BY030Mwm.js} +1 -1
- package/dist/{Badge-C_6Iofu7.js → Badge-Df7Zxjnk.js} +1 -1
- package/dist/{Button-Df425Vot.js → Button-CWPTzaG2.js} +3 -3
- package/dist/{Button-sYpJIJPv.js → Button-DHOZJDHv.js} +3 -3
- package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
- package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
- package/dist/{Group-D5nvxHx0.js → Group-C8NUU6k5.js} +2 -2
- package/dist/{Group-NYDjw1CD.js → Group-utjnjUDZ.js} +2 -2
- package/dist/{Icon-BzIdIgGY.js → Icon-BF7i3XdQ.js} +1 -1
- package/dist/{Icon-dS-it4rs.js → Icon-D_BDlSSb.js} +1 -1
- package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
- package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
- package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
- package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
- package/dist/{Loader-CZVsMYl6.js → Loader-CjT6-r3I.js} +1 -1
- package/dist/{Loader-BnhUh-g6.js → Loader-Dquhwxz4.js} +1 -1
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +56 -46
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +15 -10
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Grid.js +5 -5
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +17 -49
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Tab.js +5 -5
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/context/Notifications.js +3 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +57 -47
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +15 -10
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Grid.js +5 -5
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +17 -49
- package/dist/components/Panel.js +1 -1
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +4 -4
- package/dist/components/Tab.js +5 -5
- package/dist/components/Tile.js +3 -3
- package/dist/context/Notifications.js +3 -1
- package/dist/css/components/Choice/Choice.css +32 -40
- package/dist/css/components/Choice/css/__item/choice__item.css +5 -16
- package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
- package/dist/css/components/DatePicker/DatePicker.css +3 -6
- package/dist/css/components/Divider/Divider.css +10 -13
- package/dist/css/components/Dropdown/Dropdown.css +16 -25
- package/dist/css/components/Grid/Grid.css +50 -8
- package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
- package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
- package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
- package/dist/css/components/Group/Group.css +13 -4
- package/dist/css/components/Input/Input.css +3 -0
- package/dist/css/components/Link/Link.css +17 -0
- package/dist/css/components/Pagination/Pagination.css +10 -8
- package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
- package/dist/css/styles/fill/fill_active.css +14 -0
- package/dist/css/styles/fill/fill_active_hover.css +50 -0
- package/dist/css/styles/fill/fill_hover.css +33 -0
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceSurface.d.ts +22 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +29 -2
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +30 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -0
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
- package/dist/types/context/Notifications.d.ts +3 -2
- package/package.json +16 -16
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
.grid {
|
|
41
|
-
@each $val in auto, normal, stretch, center, start, end, space-around,
|
|
42
|
-
safe center, unsafe center, self-start,
|
|
43
|
-
last baseline {
|
|
41
|
+
@each $val in auto, normal, stretch, center, start, end, space-around,
|
|
42
|
+
space-between, space-evenly, safe center, unsafe center, self-start,
|
|
43
|
+
self-end, first, baseline, first, baseline, last baseline {
|
|
44
44
|
&_align-content_$(val) {
|
|
45
45
|
align-content: $(val);
|
|
46
46
|
}
|
|
@@ -50,7 +50,18 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
.grid {
|
|
53
|
-
@each $val in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
|
|
53
|
+
@each $val in 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
54
|
+
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
|
55
|
+
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
|
|
56
|
+
57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
|
|
57
|
+
76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
|
58
|
+
95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
|
|
59
|
+
111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
|
|
60
|
+
126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
61
|
+
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
62
|
+
156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
63
|
+
171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
|
|
64
|
+
186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200 {
|
|
54
65
|
&_columns_$(val) {
|
|
55
66
|
grid-template-columns: repeat($(val), 1fr);
|
|
56
67
|
& > ^&__wrapper {
|
|
@@ -101,7 +112,18 @@
|
|
|
101
112
|
}
|
|
102
113
|
}
|
|
103
114
|
.grid {
|
|
104
|
-
@each $val in 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,
|
|
115
|
+
@each $val in 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
116
|
+
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
|
117
|
+
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
|
|
118
|
+
57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
|
|
119
|
+
76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
|
120
|
+
95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
|
|
121
|
+
111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,
|
|
122
|
+
126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
123
|
+
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
124
|
+
156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
125
|
+
171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
|
|
126
|
+
186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200 {
|
|
105
127
|
&_rows_$(val) {
|
|
106
128
|
grid-template-columns: repeat($(val), 1fr);
|
|
107
129
|
& > ^&__wrapper {
|
|
@@ -178,7 +200,19 @@
|
|
|
178
200
|
}
|
|
179
201
|
.grid {
|
|
180
202
|
&__item {
|
|
181
|
-
@each $val in -1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,
|
|
203
|
+
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
204
|
+
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
|
|
205
|
+
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
|
|
206
|
+
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
|
|
207
|
+
72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
208
|
+
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
|
|
209
|
+
107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
|
210
|
+
122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
211
|
+
137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
212
|
+
152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
213
|
+
167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
214
|
+
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
|
|
215
|
+
197, 198, 199, 200 {
|
|
182
216
|
&_column {
|
|
183
217
|
&-start_$(val) {
|
|
184
218
|
grid-column-start: $(val);
|
|
@@ -195,7 +229,10 @@
|
|
|
195
229
|
}
|
|
196
230
|
.grid {
|
|
197
231
|
&__item {
|
|
198
|
-
@each $val in auto, legacy, normal, stretch, center, start, end, left,
|
|
232
|
+
@each $val in auto, legacy, normal, stretch, center, start, end, left,
|
|
233
|
+
right, space-around, space-between, space-evenly, safe, center,
|
|
234
|
+
unsafe center, self-start, self-end, left, right, baseline,
|
|
235
|
+
first baseline, last baseline {
|
|
199
236
|
&_justify-self_$(val) {
|
|
200
237
|
justify-self: $(val);
|
|
201
238
|
}
|
|
@@ -204,7 +241,8 @@
|
|
|
204
241
|
}
|
|
205
242
|
.grid {
|
|
206
243
|
&__item {
|
|
207
|
-
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
244
|
+
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
245
|
+
18, 19, 20, 21, 22, 23, 24 {
|
|
208
246
|
&_row {
|
|
209
247
|
&-start_$(val) {
|
|
210
248
|
grid-row-start: $(val);
|
|
@@ -224,4 +262,8 @@
|
|
|
224
262
|
display: grid;
|
|
225
263
|
transition: var(--grid-row-transition);
|
|
226
264
|
}
|
|
265
|
+
}
|
|
266
|
+
:root {
|
|
267
|
+
--grid-row-transition: all 0.2s ease 0s;
|
|
268
|
+
--grid-item-transition: all 0.2s ease 0s;
|
|
227
269
|
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
.grid {
|
|
2
2
|
&__item {
|
|
3
|
-
@each $val in -1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,
|
|
3
|
+
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
4
|
+
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
|
|
5
|
+
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
|
|
6
|
+
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
|
|
7
|
+
72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
8
|
+
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,
|
|
9
|
+
107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
|
|
10
|
+
122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
11
|
+
137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
12
|
+
152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
13
|
+
167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
14
|
+
182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
|
|
15
|
+
197, 198, 199, 200 {
|
|
4
16
|
&_column {
|
|
5
17
|
&-start_$(val) {
|
|
6
18
|
grid-column-start: $(val);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
.grid {
|
|
2
2
|
&__item {
|
|
3
|
-
@each $val in auto, legacy, normal, stretch, center, start, end, left,
|
|
3
|
+
@each $val in auto, legacy, normal, stretch, center, start, end, left,
|
|
4
|
+
right, space-around, space-between, space-evenly, safe, center,
|
|
5
|
+
unsafe center, self-start, self-end, left, right, baseline,
|
|
6
|
+
first baseline, last baseline {
|
|
4
7
|
&_justify-self_$(val) {
|
|
5
8
|
justify-self: $(val);
|
|
6
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.grid {
|
|
2
2
|
&__item {
|
|
3
|
-
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
3
|
+
@each $val in -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
4
|
+
18, 19, 20, 21, 22, 23, 24 {
|
|
4
5
|
&_row {
|
|
5
6
|
&-start_$(val) {
|
|
6
7
|
grid-row-start: $(val);
|
|
@@ -152,12 +152,21 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.group {
|
|
155
|
-
&
|
|
156
|
-
&
|
|
155
|
+
&_scroll {
|
|
156
|
+
&_vertical {
|
|
157
|
+
position: relative;
|
|
158
|
+
^^&__wrapper {
|
|
159
|
+
overflow: hidden scroll;
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
&_horizontal {
|
|
165
|
+
position: relative;
|
|
157
166
|
^^&__wrapper {
|
|
167
|
+
overflow: scroll hidden;
|
|
158
168
|
display: flex;
|
|
159
|
-
|
|
160
|
-
overflow-y: hidden;
|
|
169
|
+
flex-direction: row;
|
|
161
170
|
}
|
|
162
171
|
}
|
|
163
172
|
}
|
|
@@ -30,3 +30,20 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
/* stylelint-disable prettier/prettier */
|
|
34
|
+
.link {
|
|
35
|
+
&_shape {
|
|
36
|
+
&_rounded {
|
|
37
|
+
border-radius: var(--link-shape-rounded-default);
|
|
38
|
+
}
|
|
39
|
+
&_circular {
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
}
|
|
42
|
+
&_geometric {
|
|
43
|
+
border-radius: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
:root {
|
|
48
|
+
--link-shape-rounded-default: 12px;
|
|
49
|
+
}
|
|
@@ -5,18 +5,21 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
&__container {
|
|
7
7
|
padding: 0;
|
|
8
|
-
margin: 60px 0;
|
|
9
8
|
display: flex;
|
|
10
9
|
list-style: none;
|
|
11
|
-
gap:
|
|
10
|
+
gap: 12px;
|
|
12
11
|
}
|
|
13
12
|
&__count {
|
|
14
13
|
display: flex;
|
|
15
14
|
align-items: center;
|
|
15
|
+
gap: 8px;
|
|
16
|
+
&-text {
|
|
17
|
+
color: var(--surface-text-primary);
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
&__input {
|
|
18
22
|
background: var(--color-surface-primary);
|
|
19
|
-
padding: 3px 7px;
|
|
20
23
|
border: solid 1px
|
|
21
24
|
var(--pagination-input-color, --color-surface-border-tertiary);
|
|
22
25
|
border-radius: 8px;
|
|
@@ -39,12 +42,11 @@
|
|
|
39
42
|
}
|
|
40
43
|
.pagination {
|
|
41
44
|
&__container {
|
|
42
|
-
margin: var(--paginator-margin
|
|
45
|
+
margin: var(--paginator-margin);
|
|
43
46
|
^&__item {
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
width: var(--paginator-item-width);
|
|
48
|
+
height: var(--paginator-item-height);
|
|
46
49
|
background: var(--paginator-item-default-fill);
|
|
47
|
-
padding: 0 8px;
|
|
48
50
|
border: var(
|
|
49
51
|
--paginator-item-border,
|
|
50
52
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
display: flex;
|
|
71
73
|
justify-content: center;
|
|
72
74
|
align-items: center;
|
|
73
|
-
@mixin text-
|
|
75
|
+
@mixin text-m;
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.pagination {
|
|
2
2
|
&__container {
|
|
3
|
-
margin: var(--paginator-margin
|
|
3
|
+
margin: var(--paginator-margin);
|
|
4
4
|
^&__item {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
width: var(--paginator-item-width);
|
|
6
|
+
height: var(--paginator-item-height);
|
|
7
7
|
background: var(--paginator-item-default-fill);
|
|
8
|
-
padding: 0 8px;
|
|
9
8
|
border: var(
|
|
10
9
|
--paginator-item-border,
|
|
11
10
|
solid 1px var(--paginator-item-default-border)
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
display: flex;
|
|
32
31
|
justify-content: center;
|
|
33
32
|
align-items: center;
|
|
34
|
-
@mixin text-
|
|
33
|
+
@mixin text-m;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
@each $type in accent, primary, secondary, tertiary, quaternary, quinary,
|
|
4
4
|
senary, surface, error, success, warning, info, danger, disabled, gradient {
|
|
5
5
|
&_$(type) {
|
|
6
|
+
&-item {
|
|
7
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary,
|
|
8
|
+
senary, accent, disabled, hover {
|
|
9
|
+
&-$(color) {
|
|
10
|
+
background: var(--color-$(type)-item-$(color));
|
|
11
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65,
|
|
12
|
+
75, 80, 85, 90, 95 {
|
|
13
|
+
&$(alpha) {
|
|
14
|
+
background: var(--color-$(type)-item-$(color)-$(alpha));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
6
20
|
@each $color in primary, secondary, tertiary, quaternary, quinary,
|
|
7
21
|
senary, accent, active {
|
|
8
22
|
&-$(color) {
|
|
@@ -4,6 +4,56 @@
|
|
|
4
4
|
@each $type in accent, primary, secondary, tertiary, quaternary, quinary,
|
|
5
5
|
senary, surface, error, success, warning, info, danger, gradient {
|
|
6
6
|
&_$(type) {
|
|
7
|
+
&-item {
|
|
8
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary,
|
|
9
|
+
senary, accent, disabled, hover {
|
|
10
|
+
&-$(color) {
|
|
11
|
+
&:hover {
|
|
12
|
+
background: var(--color-$(type)-item-$(color));
|
|
13
|
+
}
|
|
14
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
|
|
15
|
+
65, 75, 80, 85, 90, 95 {
|
|
16
|
+
&$(alpha) {
|
|
17
|
+
&:hover {
|
|
18
|
+
background: var(--color-$(type)-item-$(color)-$(alpha));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-hover {
|
|
23
|
+
&:hover {
|
|
24
|
+
background: var(--color-$(type)-item-$(color)-hover);
|
|
25
|
+
}
|
|
26
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
|
|
27
|
+
65, 75, 80, 85, 90, 95 {
|
|
28
|
+
&$(alpha) {
|
|
29
|
+
&:hover {
|
|
30
|
+
background: var(
|
|
31
|
+
--color-$(type)-item-$(color)-$(alpha)-hover
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
&-active {
|
|
37
|
+
&:hover {
|
|
38
|
+
background: var(
|
|
39
|
+
--color-$(type)-item-$(color)-active-hover
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55,
|
|
43
|
+
60, 65, 75, 80, 85, 90, 95 {
|
|
44
|
+
&$(alpha) {
|
|
45
|
+
&:hover {
|
|
46
|
+
background: var(
|
|
47
|
+
--color-$(type)-item-$(color)-$(alpha)-active-hover
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
7
57
|
@each $color in primary, secondary, tertiary, quaternary {
|
|
8
58
|
&-$(color) {
|
|
9
59
|
&:hover {
|
|
@@ -3,6 +3,39 @@
|
|
|
3
3
|
@each $type in accent, primary, secondary, tertiary, quaternary, quinary,
|
|
4
4
|
senary, surface, error, success, warning, info, danger, gradient {
|
|
5
5
|
&_$(type) {
|
|
6
|
+
&-item {
|
|
7
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary,
|
|
8
|
+
senary, accent, disabled, hover {
|
|
9
|
+
&-$(color) {
|
|
10
|
+
&:hover {
|
|
11
|
+
background: var(--color-$(type)-item-$(color));
|
|
12
|
+
}
|
|
13
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65,
|
|
14
|
+
75, 80, 85, 90, 95 {
|
|
15
|
+
&$(alpha) {
|
|
16
|
+
&:hover {
|
|
17
|
+
background: var(--color-$(type)-item-$(color)-$(alpha));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&-hover {
|
|
22
|
+
&:hover {
|
|
23
|
+
background: var(--color-$(type)-item-$(color)-hover);
|
|
24
|
+
}
|
|
25
|
+
@each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
|
|
26
|
+
65, 75, 80, 85, 90, 95 {
|
|
27
|
+
&$(alpha) {
|
|
28
|
+
&:hover {
|
|
29
|
+
background: var(
|
|
30
|
+
--color-$(type)-item-$(color)-$(alpha)-hover
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
6
39
|
@each $color in primary, secondary, tertiary, quaternary, quinary,
|
|
7
40
|
senary, accent, disabled, hover {
|
|
8
41
|
&-$(color) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const choiceAppearanceSurface: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillItem: string;
|
|
5
|
+
fillItemActive: string;
|
|
6
|
+
fillItemActiveHover: string;
|
|
7
|
+
fillItemHover: string;
|
|
8
|
+
labelTextActiveColor: string;
|
|
9
|
+
labelTextColor: string;
|
|
10
|
+
labelTextSize: string;
|
|
11
|
+
};
|
|
12
|
+
surfaceSecondary: {
|
|
13
|
+
fill: string;
|
|
14
|
+
fillItem: string;
|
|
15
|
+
fillItemActive: string;
|
|
16
|
+
fillItemHover: string;
|
|
17
|
+
labelTextActiveColor: string;
|
|
18
|
+
labelTextColor: string;
|
|
19
|
+
labelTextSize: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export { choiceAppearanceSurface };
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const datePickerAppearance: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
datePicker: {
|
|
4
|
+
daySize: string;
|
|
5
|
+
dayTextColor: string;
|
|
6
|
+
dayTextShape: string;
|
|
7
|
+
dayTextSize: string;
|
|
8
|
+
iconItemFill: string;
|
|
9
|
+
monthTextColor: string;
|
|
10
|
+
monthTextSize: string;
|
|
11
|
+
monthTextWeight: string;
|
|
12
|
+
yearTextColor: string;
|
|
13
|
+
yearTextSize: string;
|
|
14
|
+
yearTextWeight: string;
|
|
15
|
+
};
|
|
16
|
+
input: {
|
|
17
|
+
width: string;
|
|
18
|
+
size: string;
|
|
19
|
+
fill: string;
|
|
20
|
+
fillHover: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
textColor: string;
|
|
23
|
+
textSize: string;
|
|
24
|
+
caret: string;
|
|
25
|
+
placeholderTextColor: string;
|
|
26
|
+
shape: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const datePickerAppearanceSurface: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
datePicker: {
|
|
4
|
+
daySize: string;
|
|
5
|
+
dayTextColor: string;
|
|
6
|
+
dayTextShape: string;
|
|
7
|
+
dayTextSize: string;
|
|
8
|
+
iconItemFill: string;
|
|
9
|
+
monthTextColor: string;
|
|
10
|
+
monthTextSize: string;
|
|
11
|
+
monthTextWeight: string;
|
|
12
|
+
yearTextColor: string;
|
|
13
|
+
yearTextSize: string;
|
|
14
|
+
yearTextWeight: string;
|
|
15
|
+
};
|
|
16
|
+
input: {
|
|
17
|
+
width: string;
|
|
18
|
+
size: string;
|
|
19
|
+
fill: string;
|
|
20
|
+
fillHover: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
textColor: string;
|
|
23
|
+
textSize: string;
|
|
24
|
+
caret: string;
|
|
25
|
+
placeholderTextColor: string;
|
|
26
|
+
shape: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export { datePickerAppearanceSurface };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const paginationAppearanceSurface: {
|
|
2
|
+
surfacePrimary: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
gap: string;
|
|
6
|
+
marginPagesDisplayed: number;
|
|
7
|
+
pageCountDesc: string;
|
|
8
|
+
pageCountDescTextColor: string;
|
|
9
|
+
pageCountDescTextSize: string;
|
|
10
|
+
pageCountDropdownAlignment: string;
|
|
11
|
+
pageCountDropdownElevation: number;
|
|
12
|
+
pageCountDropdownFill: string;
|
|
13
|
+
pageCountDropdownItemDividerFill: string;
|
|
14
|
+
pageCountDropdownItemDividerSize: string;
|
|
15
|
+
pageCountDropdownItemFill: string;
|
|
16
|
+
pageCountDropdownItemFillActive: string;
|
|
17
|
+
pageCountDropdownItemFillActiveHover: string;
|
|
18
|
+
pageCountDropdownItemFillHover: string;
|
|
19
|
+
pageCountDropdownItemLabelAlign: string;
|
|
20
|
+
pageCountDropdownItemLabelColor: string;
|
|
21
|
+
pageCountDropdownItemLabelColorActive: string;
|
|
22
|
+
pageCountDropdownItemLabelSize: string;
|
|
23
|
+
pageCountDropdownItemShowDivider: boolean;
|
|
24
|
+
pageCountDropdownItemSize: string;
|
|
25
|
+
pageCountDropdownItemWidth: string;
|
|
26
|
+
pageCountDropdownShape: string;
|
|
27
|
+
pageCountInputIconColor: string;
|
|
28
|
+
pageCountInputIconFillSize: string;
|
|
29
|
+
pageCountInputTextColor: string;
|
|
30
|
+
pageCountInputTextSize: string;
|
|
31
|
+
pageRangeDisplayed: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export { paginationAppearanceSurface };
|
|
@@ -70,8 +70,6 @@ interface TabProps extends TabThemeColor, StyleAttributes {
|
|
|
70
70
|
set?: string;
|
|
71
71
|
}
|
|
72
72
|
interface TabGroupProps extends StyleAttributes {
|
|
73
|
-
id?: string;
|
|
74
|
-
[key: number | string | symbol]: any;
|
|
75
73
|
align?: AlignProps;
|
|
76
74
|
alignDirection?: AlignDirectionProps;
|
|
77
75
|
borderColor?: BorderColorProps;
|
|
@@ -80,6 +78,7 @@ interface TabGroupProps extends StyleAttributes {
|
|
|
80
78
|
children?: ReactNode;
|
|
81
79
|
className?: string;
|
|
82
80
|
contentAlign?: AlignProps;
|
|
81
|
+
dataTestId?: string;
|
|
83
82
|
dataTour?: string;
|
|
84
83
|
direction?: DirectionProps;
|
|
85
84
|
fill?: FillProps;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SimpleCallback } from '@itcase/types';
|
|
2
|
+
import type { CreatedNotification, NotificationsProviderProps } from './Notifications.interface';
|
|
2
3
|
declare function NotificationsProvider(props: NotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare function useNotifications(): never[];
|
|
4
5
|
declare function useNotificationsAPI(): {
|
|
5
6
|
hideNotifications: () => void;
|
|
6
|
-
showNotification: () => void;
|
|
7
|
+
showNotification: (notification: string | CreatedNotification, onClose?: SimpleCallback) => void;
|
|
7
8
|
notificationStatuses: {
|
|
8
9
|
error: string;
|
|
9
10
|
info: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -96,21 +96,21 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
99
|
-
"@itcase/common": "^1.2.
|
|
100
|
-
"@itcase/config": "^1.0.
|
|
99
|
+
"@itcase/common": "^1.2.23",
|
|
100
|
+
"@itcase/config": "^1.0.41",
|
|
101
101
|
"@itcase/icons": "^1.0.29",
|
|
102
102
|
"@itcase/storybook-config": "^1.1.9",
|
|
103
103
|
"@itcase/tokens-am": "^1.1.3",
|
|
104
104
|
"@itcase/tokens-baikal": "^1.1.3",
|
|
105
|
-
"@itcase/types": "^1.0.
|
|
105
|
+
"@itcase/types": "^1.0.3",
|
|
106
106
|
"clsx": "^2.1.1",
|
|
107
107
|
"date-fns": "^4.1.0",
|
|
108
108
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
109
109
|
"eslint-plugin-import": "^2.31.0",
|
|
110
|
-
"framer-motion": "^12.
|
|
110
|
+
"framer-motion": "^12.11.0",
|
|
111
111
|
"js-cookie": "^3.0.5",
|
|
112
112
|
"lodash": "^4.17.21",
|
|
113
|
-
"motion": "^12.
|
|
113
|
+
"motion": "^12.11.0",
|
|
114
114
|
"rc-slider": "^11.1.8",
|
|
115
115
|
"react": "^18.3.1",
|
|
116
116
|
"react-dadata": "^2.27.4",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"react-dom": "^18.3.1",
|
|
119
119
|
"react-indiana-drag-scroll": "^3.0.3-alpha",
|
|
120
120
|
"react-inlinesvg": "^4.2.0",
|
|
121
|
-
"react-modal-sheet": "^4.0
|
|
121
|
+
"react-modal-sheet": "^4.4.0",
|
|
122
122
|
"react-modern-drawer": "^1.4.0",
|
|
123
123
|
"react-otp-input": "^3.1.1",
|
|
124
124
|
"react-paginate": "^8.3.0",
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
"uuid": "^11.1.0"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
|
-
"@babel/core": "^7.
|
|
134
|
-
"@babel/preset-env": "^7.
|
|
135
|
-
"@babel/preset-react": "^7.
|
|
136
|
-
"@commitlint/cli": "^19.8.
|
|
137
|
-
"@commitlint/config-conventional": "^19.8.
|
|
133
|
+
"@babel/core": "^7.27.1",
|
|
134
|
+
"@babel/preset-env": "^7.27.2",
|
|
135
|
+
"@babel/preset-react": "^7.27.1",
|
|
136
|
+
"@commitlint/cli": "^19.8.1",
|
|
137
|
+
"@commitlint/config-conventional": "^19.8.1",
|
|
138
138
|
"@itcase/lint": "^1.1.9",
|
|
139
139
|
"@rollup/plugin-alias": "^5.1.1",
|
|
140
140
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -160,22 +160,22 @@
|
|
|
160
160
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
161
161
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
162
162
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
163
|
-
"eslint": "9.
|
|
163
|
+
"eslint": "9.26.0",
|
|
164
164
|
"husky": "^9.1.7",
|
|
165
|
-
"lint-staged": "^
|
|
165
|
+
"lint-staged": "^16.0.0",
|
|
166
166
|
"npm": "^11.3.0",
|
|
167
167
|
"postcss": "^8.5.3",
|
|
168
168
|
"prettier": "^3.5.3",
|
|
169
169
|
"react-docgen-typescript": "^2.2.2",
|
|
170
170
|
"react-svg": "^16.3.0",
|
|
171
|
-
"rollup": "^4.40.
|
|
171
|
+
"rollup": "^4.40.2",
|
|
172
172
|
"rollup-plugin-copy": "^3.5.0",
|
|
173
173
|
"rollup-plugin-dts": "^6.2.1",
|
|
174
174
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
175
175
|
"rollup-preserve-directives": "^1.1.3",
|
|
176
176
|
"semantic-release": "^24.2.3",
|
|
177
177
|
"storybook": "^8.6.12",
|
|
178
|
-
"stylelint": "^16.19.
|
|
178
|
+
"stylelint": "^16.19.1",
|
|
179
179
|
"typescript": "^5.8.3"
|
|
180
180
|
}
|
|
181
181
|
}
|