@rolster/react-components 18.21.8 → 18.21.9

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/es/index.js CHANGED
@@ -1358,7 +1358,8 @@ function RlsTabularText({ value }) {
1358
1358
  }
1359
1359
 
1360
1360
  function RlsAmount({ value, decimals, rlsTheme, symbol }) {
1361
- return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsx(RlsTabularText, { value: currencyFormat({ value, decimals }) })] }));
1361
+ const amount = useMemo(() => currencyFormat({ value, decimals }), [value, decimals]);
1362
+ return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsx(RlsTabularText, { value: amount })] }));
1362
1363
  }
1363
1364
 
1364
1365
  function renderClassStatus(base, status = {}, additionals) {
@@ -2240,7 +2241,7 @@ const reactI18n = i18n({
2240
2241
  dateActionToday: 'Hoy',
2241
2242
  listEmptyDescription: 'Lo sentimos, en el momento no hay elementos en el listado',
2242
2243
  listEmptyTitle: 'Selección no disponible',
2243
- listInputPlaceholder: 'Buscar...'
2244
+ listInputPlaceholder: 'Escriba palabre clave para filtrar...'
2244
2245
  },
2245
2246
  en: {
2246
2247
  confirmationActionApproved: 'Approved',
@@ -2249,7 +2250,7 @@ const reactI18n = i18n({
2249
2250
  dateActionToday: 'Today',
2250
2251
  listEmptyDescription: 'Sorry, there are currently no items in the list',
2251
2252
  listEmptyTitle: 'Selection not available',
2252
- listInputPlaceholder: 'Search...'
2253
+ listInputPlaceholder: 'Enter keyword to filter...'
2253
2254
  }
2254
2255
  });
2255
2256
 
@@ -2431,7 +2432,7 @@ function useListController(props) {
2431
2432
  }
2432
2433
  else if (valueProtected.current) {
2433
2434
  const element = collection.find(valueProtected.current);
2434
- element && setFormValue(element);
2435
+ element ? setFormValue(element) : refreshState({ ...state, value: '' });
2435
2436
  }
2436
2437
  else {
2437
2438
  automatic
@@ -2639,7 +2640,7 @@ function RlsFieldAutocompleteTemplate(props) {
2639
2640
  }, [autocomplete.higher, autocomplete.modalIsVisible]);
2640
2641
  const onInputSearch = useCallback((event) => {
2641
2642
  autocomplete.setPattern(event.target.value);
2642
- }, []);
2643
+ }, [autocomplete.setPattern]);
2643
2644
  const onClickSearch = useCallback(() => {
2644
2645
  onSearch && onSearch(autocomplete.pattern);
2645
2646
  }, [onSearch, autocomplete.pattern]);