@onesy/ui-react 1.0.29 → 1.0.30

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.
@@ -387,7 +387,7 @@ const TimePicker = react_1.default.forwardRef((props__, ref) => {
387
387
  // Resolve the range value
388
388
  const valueHour = item.hour;
389
389
  if (format === '12') {
390
- if (dayTimeNew[index] === 'am' && valueHour > 12)
390
+ if (dayTimeNew[index] === 'am' && valueHour >= 12)
391
391
  return (0, date_1.set)(valueHour - 12, 'hour', item);
392
392
  if (dayTimeNew[index] === 'pm' && valueHour < 12)
393
393
  return (0, date_1.set)(valueHour + 12, 'hour', item);
@@ -456,7 +456,7 @@ const TimePicker = /*#__PURE__*/React.forwardRef((props__, ref) => {
456
456
  // Resolve the range value
457
457
  const valueHour = item.hour;
458
458
  if (format === '12') {
459
- if (dayTimeNew[index] === 'am' && valueHour > 12) return set(valueHour - 12, 'hour', item);
459
+ if (dayTimeNew[index] === 'am' && valueHour >= 12) return set(valueHour - 12, 'hour', item);
460
460
  if (dayTimeNew[index] === 'pm' && valueHour < 12) return set(valueHour + 12, 'hour', item);
461
461
  }
462
462
  return item;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.29
1
+ /** @license UiReact v1.0.30
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",