cynx-lib 1.3.104 → 1.3.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-lib",
3
- "version": "1.3.104",
3
+ "version": "1.3.106",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -75,17 +75,18 @@ export function TableCardFooter({ total = 0, page = 1, limit = 100, pages = 1, o
75
75
  display: 'flex',
76
76
  alignItems: 'center',
77
77
  justifyContent: 'space-between',
78
- padding: '12px 0 0 0',
78
+ height: 42,
79
+ padding: '0',
79
80
  borderTop: '1px solid var(--border-light, #ebebf0)',
80
81
  fontSize: '.78rem',
81
82
  color: 'var(--muted, #9b9daa)',
82
83
  boxSizing: 'border-box',
83
84
  ...style,
84
85
  }}>
85
- <span>
86
+ <span style={{ whiteSpace: 'nowrap', flexShrink: 0 }}>
86
87
  {total === 0 ? '0 записей' : `${from}–${to} из ${total}`}
87
88
  </span>
88
- <Pagination page={page} pages={pages} onChange={onChange} />
89
+ <Pagination page={page} pages={pages} onChange={onChange} size="sm" />
89
90
  </div>
90
91
  );
91
92
  }
@@ -30,8 +30,9 @@ export function Pagination({ page = 1, pages = 1, total, perPage, pageSize, onCh
30
30
  display: 'flex',
31
31
  alignItems: 'center',
32
32
  justifyContent: 'space-between',
33
- width: '100%',
34
- padding: '8px 0',
33
+ flexShrink: 0,
34
+ width: 'auto',
35
+ padding: '0',
35
36
  userSelect: 'none',
36
37
  ...style,
37
38
  }}
@@ -61,7 +61,7 @@ export function XTr({ children, onClick, style, className = '', ...props }) {
61
61
  );
62
62
  }
63
63
 
64
- export function XTh({ children, style, className = '', ...props }) {
64
+ export function XTh({ children, style, className = '', bg = 'transparent', ...props }) {
65
65
  return (
66
66
  <th
67
67
  className={className}
@@ -69,7 +69,7 @@ export function XTh({ children, style, className = '', ...props }) {
69
69
  position: 'sticky',
70
70
  top: 0,
71
71
  zIndex: 2,
72
- background: 'var(--surface, #ffffff)',
72
+ background: bg,
73
73
  textAlign: 'left',
74
74
  padding: '8px 10px',
75
75
  fontSize: '.68rem',