cynx-ui 1.2.44 → 1.2.46
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/Badge.jsx
CHANGED
|
@@ -55,15 +55,15 @@ const SHAPE_STYLE = {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
const COLOR_MAP = {
|
|
58
|
-
green: '#10b981', passed: '#10b981', ok: '#10b981',
|
|
59
|
-
yellow: '#
|
|
60
|
-
red: '#ef4444', failed: '#ef4444', err: '#ef4444', danger: '#ef4444',
|
|
61
|
-
blue: '#3b82f6', conditional: '#3b82f6',
|
|
62
|
-
purple: '#8b5cf6',
|
|
58
|
+
green: '#10b981', passed: '#10b981', ok: '#10b981', success: '#10b981', emerald: '#10b981',
|
|
59
|
+
yellow: '#f59e0b', violation: '#f97316', warn: '#f97316', warning: '#f97316', amber: '#f59e0b', orange: '#f97316', medium: '#f59e0b',
|
|
60
|
+
red: '#ef4444', failed: '#ef4444', err: '#ef4444', danger: '#ef4444', error: '#ef4444', high: '#ef4444', critical: '#ef4444',
|
|
61
|
+
blue: '#3b82f6', conditional: '#3b82f6', info: '#3b82f6', low: '#3b82f6', sky: '#0284c7',
|
|
62
|
+
purple: '#8b5cf6', violet: '#8b5cf6',
|
|
63
63
|
indigo: '#6366f1',
|
|
64
64
|
cyan: '#06b6d4',
|
|
65
65
|
teal: '#14b8a6',
|
|
66
|
-
pink: '#ec4899',
|
|
66
|
+
pink: '#ec4899', rose: '#f43f5e',
|
|
67
67
|
grey: '#6b7280', gray: '#6b7280', dim: '#6b7280',
|
|
68
68
|
};
|
|
69
69
|
|
|
@@ -375,7 +375,8 @@ export function DatePicker({ value, onChange, placeholder = 'Select date', badge
|
|
|
375
375
|
</button>
|
|
376
376
|
);
|
|
377
377
|
|
|
378
|
-
const
|
|
378
|
+
const savedPos = typeof window !== 'undefined' ? localStorage.getItem('datepicker_stepper_position') : null;
|
|
379
|
+
const actualPos = stepperPosition || savedPos || 'around';
|
|
379
380
|
const showStepperEffective = showStepper && actualPos !== 'off';
|
|
380
381
|
const posMode = actualPos === 'left' || actualPos === 'start' ? 'left'
|
|
381
382
|
: actualPos === 'right' || actualPos === 'end' ? 'right'
|