cynx-ui 1.3.0 → 1.3.2
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,10 +505,12 @@ export function TimePicker({
|
|
|
504
505
|
closePicker();
|
|
505
506
|
};
|
|
506
507
|
|
|
507
|
-
const defaultPlaceholder =
|
|
508
|
-
? (
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
const defaultPlaceholder = showPlaceholder
|
|
509
|
+
? (mode === '12h'
|
|
510
|
+
? (showSeconds ? 'hh:mm:ss AM' : 'hh:mm AM')
|
|
511
|
+
: (showSeconds ? 'HH:MM:SS' : 'HH:MM'))
|
|
512
|
+
: '';
|
|
513
|
+
const ph = placeholder !== undefined ? placeholder : defaultPlaceholder;
|
|
511
514
|
|
|
512
515
|
const hours24List = Array.from({ length: 24 }, (_, i) => i);
|
|
513
516
|
const hours12List = Array.from({ length: 12 }, (_, i) => i + 1);
|