cynx-ui 1.2.19 → 1.2.20

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.
@@ -14,12 +14,13 @@ export function XTd({ children, style, className = '', colSpan }) {
14
14
  }
15
15
 
16
16
  export function SkeletonTable({ rows = 6, cols = 5 }) {
17
+ const widths = ['20%', '14%', '10%', '12%', '8%', '14%', '14%', '8%'];
17
18
  return (
18
19
  <div>
19
20
  {Array.from({ length: rows }).map((_, i) => (
20
- <div key={i} style={{ display: 'flex', gap: 8, padding: '8px 10px', borderBottom: '1px solid var(--border-light, #ebebf0)' }}>
21
+ <div key={i} style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '10px', borderBottom: '1px solid var(--border-light, #ebebf0)' }}>
21
22
  {Array.from({ length: cols }).map((_, j) => (
22
- <div key={j} style={{ height: 12, flex: 1, background: 'linear-gradient(90deg, var(--grey-1, #f5f5f8) 25%, var(--border-light, #ebebf0) 50%, var(--grey-1, #f5f5f8) 75%)', backgroundSize: '600px 100%', animation: 'shimmer 1.4s ease infinite', borderRadius: 'var(--radxs, 6px)' }} />
23
+ <div key={j} style={{ height: 10, width: widths[j] || '10%', background: 'linear-gradient(90deg, var(--grey-1, #f5f5f8) 25%, var(--border-light, #ebebf0) 50%, var(--grey-1, #f5f5f8) 75%)', backgroundSize: '600px 100%', animation: 'shimmer 1.4s ease infinite', borderRadius: 4, flexShrink: 0 }} />
23
24
  ))}
24
25
  </div>
25
26
  ))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-ui",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js"