@alfalab/core-components-table 2.5.9 → 2.5.11
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/components/pagination/Component.js +1 -1
- package/components/pagination/index.css +18 -13
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +1 -1
- package/components/table/Component.js +1 -1
- package/components/table/index.css +9 -8
- package/components/tbody/Component.js +1 -1
- package/components/tbody/index.css +2 -2
- package/components/tcell/Component.js +1 -1
- package/components/tcell/index.css +15 -11
- package/components/texpandable-row/Component.js +1 -1
- package/components/texpandable-row/index.css +5 -5
- package/components/thead/Component.js +1 -1
- package/components/thead/index.css +9 -8
- package/components/thead-cell/Component.js +1 -1
- package/components/thead-cell/index.css +16 -12
- package/components/trow/Component.js +1 -1
- package/components/trow/index.css +8 -8
- package/components/tsortable-head-cell/Component.js +2 -2
- package/components/tsortable-head-cell/index.css +11 -10
- package/cssm/components/pagination/index.module.css +9 -4
- package/cssm/components/table/index.module.css +2 -1
- package/cssm/components/tcell/index.module.css +9 -5
- package/cssm/components/thead/index.module.css +3 -2
- package/cssm/components/thead-cell/index.module.css +7 -3
- package/cssm/components/tsortable-head-cell/Component.js +1 -1
- package/cssm/components/tsortable-head-cell/index.module.css +3 -2
- package/esm/components/pagination/Component.js +1 -1
- package/esm/components/pagination/index.css +18 -13
- package/esm/components/pagination/select-field/index.css +4 -4
- package/esm/components/pagination/select-field/index.js +1 -1
- package/esm/components/table/Component.js +1 -1
- package/esm/components/table/index.css +9 -8
- package/esm/components/tbody/Component.js +1 -1
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tcell/Component.js +1 -1
- package/esm/components/tcell/index.css +15 -11
- package/esm/components/texpandable-row/Component.js +1 -1
- package/esm/components/texpandable-row/index.css +5 -5
- package/esm/components/thead/Component.js +1 -1
- package/esm/components/thead/index.css +9 -8
- package/esm/components/thead-cell/Component.js +1 -1
- package/esm/components/thead-cell/index.css +16 -12
- package/esm/components/trow/Component.js +1 -1
- package/esm/components/trow/index.css +8 -8
- package/esm/components/tsortable-head-cell/Component.js +2 -2
- package/esm/components/tsortable-head-cell/index.css +11 -10
- package/modern/components/pagination/Component.js +1 -1
- package/modern/components/pagination/index.css +18 -13
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +1 -1
- package/modern/components/table/index.css +9 -8
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +15 -11
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +9 -8
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +16 -12
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/tsortable-head-cell/Component.js +2 -2
- package/modern/components/tsortable-head-cell/index.css +11 -10
- package/package.json +5 -5
- package/src/components/pagination/index.module.css +4 -4
- package/src/components/table/index.module.css +1 -1
- package/src/components/tcell/index.module.css +5 -5
- package/src/components/thead/index.module.css +2 -2
- package/src/components/thead-cell/index.module.css +3 -3
- package/src/components/tsortable-head-cell/Component.tsx +1 -1
- package/src/components/tsortable-head-cell/index.module.css +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: uize6 */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-700: #898991;
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
--gap-xs: 8px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
21
|
|
|
22
22
|
/* новые значения, используйте их */
|
|
23
|
+
--gap-8: var(--gap-xs);
|
|
23
24
|
} :root {
|
|
24
25
|
} :root {
|
|
25
|
-
} .
|
|
26
|
+
} .table__content_n3qm7 {
|
|
26
27
|
display: flex;
|
|
27
28
|
align-items: flex-start;
|
|
28
|
-
} .
|
|
29
|
+
} .table__icon_n3qm7 {
|
|
29
30
|
cursor: pointer;
|
|
30
|
-
margin-left: var(--gap-
|
|
31
|
+
margin-left: var(--gap-8);
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* иконка сортировки должна быть выровнена по верхнему краю,
|
|
@@ -37,15 +38,15 @@
|
|
|
37
38
|
color: var(--color-light-neutral-700);
|
|
38
39
|
transition: color 0.2s ease;
|
|
39
40
|
flex-shrink: 0
|
|
40
|
-
} .
|
|
41
|
+
} .table__icon_n3qm7:hover {
|
|
41
42
|
color: var(--color-light-neutral-translucent-1300);
|
|
42
|
-
} .
|
|
43
|
+
} .table__reverse_n3qm7 {
|
|
43
44
|
flex-direction: row-reverse
|
|
44
|
-
} .
|
|
45
|
+
} .table__reverse_n3qm7 .table__icon_n3qm7 {
|
|
45
46
|
margin-left: 0;
|
|
46
|
-
margin-right: var(--gap-
|
|
47
|
-
} .
|
|
47
|
+
margin-right: var(--gap-8);
|
|
48
|
+
} .table__sorted_n3qm7 {
|
|
48
49
|
color: var(--color-light-status-info)
|
|
49
|
-
} .
|
|
50
|
+
} .table__sorted_n3qm7:hover {
|
|
50
51
|
color: var(--color-light-status-info);
|
|
51
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-table",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-button": "^11.5.
|
|
19
|
-
"@alfalab/core-components-pagination": "^2.3.
|
|
20
|
-
"@alfalab/core-components-select": "^17.
|
|
18
|
+
"@alfalab/core-components-button": "^11.5.5",
|
|
19
|
+
"@alfalab/core-components-pagination": "^2.3.5",
|
|
20
|
+
"@alfalab/core-components-select": "^17.10.1",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
22
22
|
"tslib": "^2.4.0"
|
|
23
23
|
},
|
|
24
|
-
"themesVersion": "13.0.
|
|
24
|
+
"themesVersion": "13.0.2",
|
|
25
25
|
"varsVersion": "9.11.1"
|
|
26
26
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
align-items: flex-start;
|
|
9
9
|
width: 100%;
|
|
10
|
-
padding: var(--gap-
|
|
10
|
+
padding: var(--gap-24) var(--gap-16) var(--gap-32);
|
|
11
11
|
border-top: 1px solid var(--color-light-neutral-400);
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
.tag.tag {
|
|
20
20
|
flex-shrink: 0;
|
|
21
|
-
margin-right: var(--gap-
|
|
22
|
-
padding: 0 var(--gap-
|
|
21
|
+
margin-right: var(--gap-8);
|
|
22
|
+
padding: 0 var(--gap-8);
|
|
23
23
|
min-width: 32px;
|
|
24
24
|
|
|
25
25
|
&:last-child {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.menu {
|
|
39
|
-
margin: var(--gap-
|
|
39
|
+
margin: var(--gap-4) 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.option {
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
@mixin paragraph_primary_small;
|
|
5
5
|
|
|
6
6
|
color: var(--color-light-text-primary);
|
|
7
|
-
padding: var(--gap-
|
|
7
|
+
padding: var(--gap-24) var(--gap-12);
|
|
8
8
|
height: 72px;
|
|
9
9
|
border-top: 1px solid var(--color-light-neutral-400);
|
|
10
10
|
vertical-align: top;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
13
|
&:first-child {
|
|
14
|
-
padding-left: var(--gap-
|
|
14
|
+
padding-left: var(--gap-16);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&:last-child {
|
|
18
|
-
padding-right: var(--gap-
|
|
18
|
+
padding-right: var(--gap-16);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.compact {
|
|
28
|
-
padding-top: var(--gap-
|
|
29
|
-
padding-bottom: var(--gap-
|
|
28
|
+
padding-top: var(--gap-8);
|
|
29
|
+
padding-bottom: var(--gap-8);
|
|
30
30
|
|
|
31
31
|
max-width: 0;
|
|
32
32
|
overflow: hidden;
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
line-height: 20px;
|
|
7
7
|
text-align: left;
|
|
8
8
|
color: var(--color-light-text-primary);
|
|
9
|
-
padding: var(--gap-
|
|
9
|
+
padding: var(--gap-32) var(--gap-12) var(--gap-4);
|
|
10
10
|
border-bottom: 1px solid var(--color-light-neutral-400);
|
|
11
11
|
background: var(--color-light-base-bg-primary);
|
|
12
12
|
vertical-align: top;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
|
|
15
15
|
&:first-child {
|
|
16
|
-
padding-left: var(--gap-
|
|
16
|
+
padding-left: var(--gap-16);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:last-child {
|
|
20
|
-
padding-right: var(--gap-
|
|
20
|
+
padding-right: var(--gap-16);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:not(.stickyHeader) {
|
|
@@ -35,7 +35,7 @@ export const TSortableHeadCell = ({
|
|
|
35
35
|
}, [defaultIsSortedDesc, isSortedDesc]);
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
|
-
<THeadCell className={className} {...restProps}>
|
|
38
|
+
<THeadCell className={className} textAlign={textAlign} {...restProps}>
|
|
39
39
|
<div className={cn(styles.content, { [styles.reverse]: textAlign === 'right' })}>
|
|
40
40
|
{children}
|
|
41
41
|
<SortIcon
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.icon {
|
|
9
9
|
cursor: pointer;
|
|
10
|
-
margin-left: var(--gap-
|
|
10
|
+
margin-left: var(--gap-8);
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* иконка сортировки должна быть выровнена по верхнему краю,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
& .icon {
|
|
30
30
|
margin-left: 0;
|
|
31
|
-
margin-right: var(--gap-
|
|
31
|
+
margin-right: var(--gap-8);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|