cynx-lib 1.3.30 → 1.3.32
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
|
@@ -327,7 +327,7 @@ export function DatePicker({ value, onChange, label, placeholder = 'Select date'
|
|
|
327
327
|
return (
|
|
328
328
|
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 4, padding: '4px 0' }}>
|
|
329
329
|
{MONTHS.map((name, i) => {
|
|
330
|
-
const sel =
|
|
330
|
+
const sel = valDate && valDate.getFullYear() === y && valDate.getMonth() === i;
|
|
331
331
|
const monthStart = new Date(y, i, 1);
|
|
332
332
|
const monthEnd = new Date(y, i + 1, 0, 23, 59, 59, 999);
|
|
333
333
|
const disMin = minD && monthEnd < new Date(new Date(minD).setHours(0, 0, 0, 0));
|
|
@@ -377,7 +377,7 @@ export function DatePicker({ value, onChange, label, placeholder = 'Select date'
|
|
|
377
377
|
return (
|
|
378
378
|
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 4, padding: '4px 0' }}>
|
|
379
379
|
{years.map(yr => {
|
|
380
|
-
const sel =
|
|
380
|
+
const sel = valDate && valDate.getFullYear() === yr;
|
|
381
381
|
const yrStart = new Date(yr, 0, 1);
|
|
382
382
|
const yrEnd = new Date(yr, 11, 31, 23, 59, 59, 999);
|
|
383
383
|
const disMin = minD && yrEnd < new Date(new Date(minD).setHours(0, 0, 0, 0));
|
package/ui/components/TabBar.jsx
CHANGED
|
@@ -154,17 +154,19 @@ export default function TabBar({ tabs, active, onChange, capitalize = false, pad
|
|
|
154
154
|
onClick={handleTabClick}
|
|
155
155
|
style={{
|
|
156
156
|
display: 'flex', alignItems: 'center', gap: 5,
|
|
157
|
-
|
|
157
|
+
minHeight: 24,
|
|
158
|
+
height: 'auto',
|
|
159
|
+
lineHeight: 1.2,
|
|
158
160
|
padding: padding || '0 10px',
|
|
159
161
|
border: 'none',
|
|
160
162
|
borderRadius: 'var(--radxs, 6px)',
|
|
161
163
|
background: isActive ? 'var(--surface,#fff)' : isOpen ? 'var(--grey-2, #e5e7eb)' : 'transparent',
|
|
162
164
|
boxShadow: isActive ? '0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06)' : 'none',
|
|
163
|
-
fontSize: '.75rem', fontWeight:
|
|
165
|
+
fontSize: '.75rem', fontWeight: 600,
|
|
164
166
|
color: isActive ? 'var(--primary-text, #0f111c)' : 'var(--muted, #9b9daa)',
|
|
165
167
|
cursor: t.disabled ? 'not-allowed' : 'pointer',
|
|
166
168
|
opacity: t.disabled ? 0.38 : 1,
|
|
167
|
-
transition: '
|
|
169
|
+
transition: 'background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease',
|
|
168
170
|
fontFamily: 'inherit',
|
|
169
171
|
whiteSpace: 'nowrap',
|
|
170
172
|
textTransform: capitalize ? 'capitalize' : 'none',
|