cynx-ui 1.2.18 → 1.2.19

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.
@@ -1,12 +1,25 @@
1
1
  export function Tabs({ tabs, value, onChange, style }) {
2
2
  return (
3
- <div className="xtabs" style={style}>
3
+ <div style={{ display: 'inline-flex', gap: 3, background: 'var(--grey-1, #f5f5f8)', borderRadius: 'var(--radxs, 6px)', padding: '3px', border: '1px solid var(--border-light, #ebebf0)', ...style }}>
4
4
  {tabs.map(t => {
5
5
  const label = typeof t === 'string' ? t : t.label;
6
6
  const key = typeof t === 'string' ? t : t.value;
7
7
  const active = key === value;
8
8
  return (
9
- <button key={key} className={`xtab${active ? ' active' : ''}`} onClick={() => onChange(key)}>
9
+ <button key={key} onClick={() => onChange(key)} style={{
10
+ display: 'flex', alignItems: 'center', gap: 5,
11
+ padding: '5px 12px',
12
+ border: 'none',
13
+ borderRadius: 'var(--radxs, 6px)',
14
+ background: active ? '#fff' : 'transparent',
15
+ boxShadow: active ? '0 1px 2px rgba(0,0,0,.06)' : 'none',
16
+ fontSize: '.75rem', fontWeight: active ? 600 : 500,
17
+ color: active ? 'var(--primary-text, #0f111c)' : 'var(--muted, #9b9daa)',
18
+ cursor: 'pointer',
19
+ transition: 'all .18s ease',
20
+ fontFamily: 'inherit',
21
+ whiteSpace: 'nowrap',
22
+ }}>
10
23
  {label}
11
24
  </button>
12
25
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-ui",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js"