@onesy/ui-react 1.0.190 → 1.0.192

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.
@@ -273,10 +273,7 @@ const Calendar = props__ => {
273
273
  const valueData = valueNew_4 === 'month' ? calendar.month - 1 : calendar.year;
274
274
  (0, _utils.Try)(() => {
275
275
  const element = list.querySelector(`[data-value="${valueData}"]`);
276
- if (element) list.scrollTo({
277
- top: (0, _utils.clamp)(element.offsetTop - element.parentElement.offsetTop + (menu === 'month' ? -104 : 51), 0),
278
- behavior: 'smooth'
279
- });
276
+ if (element) (0, _utils2.scrollToMiddleOfParent)(element);
280
277
  });
281
278
  }
282
279
  });
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ symbol: string;
3
+ name: string;
4
+ symbol_native: string;
5
+ decimal_digits: number;
6
+ rounding: number;
7
+ code: string;
8
+ name_plural: string;
9
+ }[];
10
+ export default _default;