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 = mode === '12h' && showPlaceholder
509
- ? (showSeconds ? 'hh:mm:ss AM' : 'hh:mm AM')
510
- : (showSeconds ? 'HH:MM:SS' : 'HH:MM');
511
- const ph = placeholder || defaultPlaceholder;
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-ui",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js"