@rolster/react-components 18.21.39 → 18.21.40
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/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.js +1 -2
- package/dist/esm/components/atoms/Input/Input.js.map +1 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.d.ts +5 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import require$$0, { useMemo, useCallback, useState, useRef, useEffect, createContext } from 'react';
|
|
2
|
-
import { currencyFormat,
|
|
2
|
+
import { currencyFormat, itIsDefined, PartialSealed } from '@rolster/commons';
|
|
3
3
|
import { dateFormatTemplate, DAY_LABELS, DateRange, normalizeMinTime, assignDayInDate, dateIsBefore, MONTH_NAMES, Month, assignYearInDate, assignMonthInDate } from '@rolster/dates';
|
|
4
4
|
import { i18n, i18nSubscribe } from '@rolster/i18n';
|
|
5
5
|
import { PaginationController, verifyDayPicker, createDayPicker, createDayRangePicker, verifyMonthPicker, createMonthPicker, monthLimitTemplate, createYearPicker, verifyYearPicker, ListCollection, locationListCanTop, navigationListFromInput, navigationListFromElement, createAutocompleteStore, dateOutRange, verifyDateRange, PickerListenerEvent } from '@rolster/components';
|
|
@@ -1567,7 +1567,7 @@ function RlsInput({ children, decimals, disabled, formControl, identifier, onEnt
|
|
|
1567
1567
|
const _onChange = useCallback((event) => {
|
|
1568
1568
|
const valueInput = event.target.value;
|
|
1569
1569
|
const value = type === 'number'
|
|
1570
|
-
?
|
|
1570
|
+
? parseFloat((+valueInput).toFixed(decimals))
|
|
1571
1571
|
: valueInput;
|
|
1572
1572
|
isChangeInternal.current = true;
|
|
1573
1573
|
onValue && onValue(value);
|