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