jclib-ui 1.0.269 → 1.0.271

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.
Files changed (39) hide show
  1. package/dist/jclib-ui.es.js +25 -15
  2. package/dist/jclib-ui.es.js.map +1 -1
  3. package/dist/jclib-ui.umd.js +2 -2
  4. package/dist/jclib-ui.umd.js.map +1 -1
  5. package/dist/src/lib/formEdit/formEdit.d.ts +0 -1
  6. package/dist/src/lib/hooks/createApiConfig.d.ts +0 -1
  7. package/dist/src/lib/hooks/useLocalForage.d.ts +0 -1
  8. package/dist/src/lib/hooks/useStorage.d.ts +0 -1
  9. package/dist/src/lib/index.d.ts +0 -1
  10. package/dist/src/lib/inputColor/inputColor.d.ts +0 -1
  11. package/dist/src/lib/inputs/Input.d.ts +0 -1
  12. package/dist/src/lib/labelHint/LabelHint.d.ts +0 -1
  13. package/dist/src/lib/links/Links.d.ts +0 -1
  14. package/dist/src/lib/links/Links.types.d.ts +0 -1
  15. package/dist/src/lib/modal/modal.d.ts +0 -1
  16. package/dist/src/lib/modal/modalBody.d.ts +0 -1
  17. package/dist/src/lib/modal/modalContent.d.ts +0 -1
  18. package/dist/src/lib/modal/modalFooter.d.ts +0 -1
  19. package/dist/src/lib/modal/modalHeader.d.ts +0 -1
  20. package/dist/src/lib/navbar/OpcoesMenu.d.ts +0 -1
  21. package/dist/src/lib/navbar/OpcoesMenu.types.d.ts +0 -1
  22. package/dist/src/lib/paginacao/Paginacao.d.ts +0 -1
  23. package/dist/src/lib/panelDashboard/PanelDashboard.d.ts +0 -1
  24. package/dist/src/lib/radioGroup/RadioGroup.d.ts +0 -1
  25. package/dist/src/lib/table/table.d.ts +0 -1
  26. package/dist/src/lib/table/table.types.d.ts +0 -1
  27. package/dist/src/lib/table/tableUtils.d.ts +0 -1
  28. package/package.json +2 -2
  29. /package/dist/{BoxSearch → src/lib/BoxSearch}/BoxSearch.d.ts +0 -0
  30. /package/dist/{DropDownButton → src/lib/DropDownButton}/DropDownButton.d.ts +0 -0
  31. /package/dist/{InputPass → src/lib/InputPass}/InputPass.d.ts +0 -0
  32. /package/dist/{alerta → src/lib/alerta}/JCAlert.d.ts +0 -0
  33. /package/dist/{botaoSalvar → src/lib/botaoSalvar}/botaoSalvar.d.ts +0 -0
  34. /package/dist/{clipboardArea → src/lib/clipboardArea}/ClipboardArea.d.ts +0 -0
  35. /package/dist/{hooks → src/lib/hooks}/useApi.d.ts +0 -0
  36. /package/dist/{inputPesquisa → src/lib/inputPesquisa}/inputPesquisa.d.ts +0 -0
  37. /package/dist/{modalBox → src/lib/modalBox}/ModalBox.d.ts +0 -0
  38. /package/dist/{modalFilter → src/lib/modalFilter}/modalFilter.d.ts +0 -0
  39. /package/dist/{navbar → src/lib/navbar}/Navbar.d.ts +0 -0
@@ -20822,13 +20822,15 @@ const IMaskInputFn = (props, ref) => React__default.createElement(IMaskInputClas
20822
20822
  const IMaskInput = React__default.forwardRef(IMaskInputFn);
20823
20823
  const masks = [cpfMask, cnpjMask];
20824
20824
  function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
20825
- function handleChange(val) {
20826
- onChange({
20827
- target: {
20828
- name,
20829
- value: val.toUpperCase()
20830
- }
20831
- });
20825
+ function handleChange(val, _maskRef, ev) {
20826
+ if (ev) {
20827
+ onChange({
20828
+ target: {
20829
+ name,
20830
+ value: val.toUpperCase()
20831
+ }
20832
+ });
20833
+ }
20832
20834
  }
20833
20835
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
20834
20836
  IMaskInput,
@@ -20843,13 +20845,15 @@ function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
20843
20845
  );
20844
20846
  }
20845
20847
  function InputCnpj({ value, name, onChange, className, ...rest }) {
20846
- function handleChange(val) {
20847
- onChange({
20848
- target: {
20849
- name,
20850
- value: val.toUpperCase()
20851
- }
20852
- });
20848
+ function handleChange(val, _maskRef, ev) {
20849
+ if (ev) {
20850
+ onChange({
20851
+ target: {
20852
+ name,
20853
+ value: val.toUpperCase()
20854
+ }
20855
+ });
20856
+ }
20853
20857
  }
20854
20858
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
20855
20859
  IMaskInput,
@@ -21606,7 +21610,13 @@ function Paginacao({
21606
21610
  setLimit,
21607
21611
  align = "center"
21608
21612
  }) {
21609
- const [limits] = useState([7, limitDefault, 30, 50, 100].sort((a2, b2) => a2 - b2));
21613
+ const [limits] = useState(() => {
21614
+ const arr = [7, 30, 50, 100];
21615
+ if (!arr.includes(limitDefault)) {
21616
+ arr.push(limitDefault);
21617
+ }
21618
+ return arr.sort((a2, b2) => a2 - b2);
21619
+ });
21610
21620
  const hasLimit = setLimit !== void 0 && limit !== void 0 && limitDefault !== void 0;
21611
21621
  function updatePage(newPage) {
21612
21622
  var _a;