@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.
- package/Calendar/Calendar.js +1 -4
- package/currencies.d.ts +10 -0
- package/currencies.js +951 -0
- package/esm/Calendar/Calendar.js +3 -6
- package/esm/currencies.js +945 -0
- package/esm/index.js +1 -1
- package/esm/utils.js +15 -945
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils.d.ts +2 -9
- package/utils.js +27 -948
package/Calendar/Calendar.js
CHANGED
|
@@ -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)
|
|
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
|
});
|