cynx-ui 1.3.0 → 1.3.1
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.
|
@@ -171,6 +171,7 @@ export function TimePicker({
|
|
|
171
171
|
showFormatToggle = false, // Minimal default: false
|
|
172
172
|
showPresets = false, // Minimal default: false
|
|
173
173
|
showTimezoneSelect = false, // Minimal default: false
|
|
174
|
+
showPlaceholder = false, // Minimal default: false
|
|
174
175
|
timezone = 'Asia/Tashkent',
|
|
175
176
|
label,
|
|
176
177
|
placeholder,
|
|
@@ -504,7 +505,7 @@ export function TimePicker({
|
|
|
504
505
|
closePicker();
|
|
505
506
|
};
|
|
506
507
|
|
|
507
|
-
const defaultPlaceholder = mode === '12h'
|
|
508
|
+
const defaultPlaceholder = mode === '12h' && showPlaceholder
|
|
508
509
|
? (showSeconds ? 'hh:mm:ss AM' : 'hh:mm AM')
|
|
509
510
|
: (showSeconds ? 'HH:MM:SS' : 'HH:MM');
|
|
510
511
|
const ph = placeholder || defaultPlaceholder;
|