@grapadigital/shared-app-modules 0.0.179 → 0.0.180

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.
@@ -1,4 +1,4 @@
1
- import { i as n } from "./youtube-icon.component.DNSli53G.js";
1
+ import { i as n } from "./youtube-icon.component.B-P0SByx.js";
2
2
  function a(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -1,6 +1,6 @@
1
1
  import { useState as n, useEffect as s, useContext as d } from "react";
2
2
  import { a } from "./shared-app-modules.provider.DRJ7n4Cj.js";
3
- function i(e, o) {
3
+ function i(e, o = 500) {
4
4
  const [t, r] = n(e);
5
5
  return s(() => {
6
6
  const u = setTimeout(() => {
@@ -4,7 +4,7 @@ import * as NA from "react";
4
4
  import { forwardRef as P, useState as C, useEffect as J } from "react";
5
5
  import { P as L, k, l as j, q as $, r as H, s as O, t as EA, F as E, C as RA, b as R, c as D, h as sA } from "./popover.4p4HlZwe.js";
6
6
  import "date-fns";
7
- import { a as W, u as V } from "./use-shared-app-modules.hook.BneFRNyA.js";
7
+ import { a as W, u as V } from "./use-shared-app-modules.hook.jCQwZaT8.js";
8
8
  import "./shared-app-modules.provider.DRJ7n4Cj.js";
9
9
  import { useQuery as Z } from "@tanstack/react-query";
10
10
  import "react-hook-form";
@@ -1,5 +1,5 @@
1
1
  import { l as x, V as v, c, $ as C, B as f, aI as z, aJ as I, aK as M, bf as F, ac as H, ad as _, ah as w, ag as L, ae as j, ai as A } from "./chuncks/switch.BF6I8Lqo.js";
2
- import { r as Ne, s as ve, w as Ce, J as ze, x as Ie, y as Me, F as Te, z as Se, D as Fe, E as He, G as _e, H as Le, q as je, t as Ae, K as De, L as $e, l as Pe, m as Ee, n as Be, o as Re, p as qe, M as Ke, u as Oe, v as Ve, N as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.DNSli53G.js";
2
+ import { r as Ne, s as ve, w as Ce, J as ze, x as Ie, y as Me, F as Te, z as Se, D as Fe, E as He, G as _e, H as Le, q as je, t as Ae, K as De, L as $e, l as Pe, m as Ee, n as Be, o as Re, p as qe, M as Ke, u as Oe, v as Ve, N as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.B-P0SByx.js";
3
3
  import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
4
4
  import { useState as $, useRef as P, useEffect as E } from "react";
5
5
  import { parseISO as k, differenceInCalendarDays as B, format as R } from "date-fns";
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, B as S, C as n, I as T, b as O, P as L, a as N, c, S as I, T as P } from "./chuncks/youtube-icon.component.DNSli53G.js";
1
+ import { A as s, B as S, C as n, I as T, b as O, P as L, a as N, c, S as I, T as P } from "./chuncks/youtube-icon.component.B-P0SByx.js";
2
2
  const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", E = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", _ = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", e = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", A = "Campo obrigatório.";
3
3
  export {
4
4
  s as ACTION_TYPE_VALUES,
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as o } from "./chuncks/format.util.BvK_tzw5.js";
1
+ import { b as o } from "./chuncks/format.util.DtTLQR-y.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
package/dist/hooks.d.ts CHANGED
@@ -10,7 +10,17 @@ declare interface SharedAppModulesContextData {
10
10
  environments: Environments;
11
11
  }
12
12
 
13
- export declare function useDebounce(value: string, delay: number): string;
13
+ /**
14
+ * Hook para debounce de valores.
15
+ *
16
+ * Retorna um valor debounced que é atualizado somente após um delay especificado
17
+ * desde a última vez que o valor de entrada foi alterado.
18
+ *
19
+ * @param value Valor a ser debounced.
20
+ * @param delay Tempo de espera em milissegundos. Padrão: 500ms.
21
+ * @returns Valor debounced.
22
+ */
23
+ export declare function useDebounce<T>(value: T, delay?: number): T;
14
24
 
15
25
  export declare function useSharedAppModules(): SharedAppModulesContextData;
16
26
 
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { u, a } from "./chuncks/use-shared-app-modules.hook.BneFRNyA.js";
1
+ import { u, a } from "./chuncks/use-shared-app-modules.hook.jCQwZaT8.js";
2
2
  export {
3
3
  u as useDebounce,
4
4
  a as useSharedAppModules
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as a } from "./chuncks/format.util.BvK_tzw5.js";
2
- import { g as C, h as E, f as L, a as P, d as _, m as b, c as l, e as v, p as y, b as k, u as D } from "./chuncks/format.util.BvK_tzw5.js";
3
- import { d as s } from "./chuncks/youtube-icon.component.DNSli53G.js";
4
- import { g as U, f as h, j as N, i as q, k as x, h as F, e as O } from "./chuncks/youtube-icon.component.DNSli53G.js";
1
+ import { U as a } from "./chuncks/format.util.DtTLQR-y.js";
2
+ import { g as C, h as E, f as L, a as P, d as _, m as b, c as l, e as v, p as y, b as k, u as D } from "./chuncks/format.util.DtTLQR-y.js";
3
+ import { d as s } from "./chuncks/youtube-icon.component.B-P0SByx.js";
4
+ import { g as U, f as h, j as N, i as q, k as x, h as F, e as O } from "./chuncks/youtube-icon.component.B-P0SByx.js";
5
5
  const o = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6
6
  __proto__: null,
7
7
  invalidMessage: c,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.179",
4
+ "version": "0.0.180",
5
5
  "files": [
6
6
  "dist"
7
7
  ],