cynx-ui 1.3.1 → 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.
|
@@ -505,10 +505,12 @@ export function TimePicker({
|
|
|
505
505
|
closePicker();
|
|
506
506
|
};
|
|
507
507
|
|
|
508
|
-
const defaultPlaceholder =
|
|
509
|
-
? (
|
|
510
|
-
|
|
511
|
-
|
|
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;
|
|
512
514
|
|
|
513
515
|
const hours24List = Array.from({ length: 24 }, (_, i) => i);
|
|
514
516
|
const hours12List = Array.from({ length: 12 }, (_, i) => i + 1);
|