@grapadigital/shared-app-modules 0.0.173 → 0.0.175

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.
@@ -92,6 +92,16 @@ declare interface Approval {
92
92
  approvedAt: string;
93
93
  }
94
94
 
95
+ export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback: ErrorFallback, children, }: AsyncBoundaryProps): JSX.Element;
96
+
97
+ declare interface AsyncBoundaryProps extends React.PropsWithChildren {
98
+ suspenseFallback?: React.ComponentType;
99
+ errorFallback?: React.ComponentType<{
100
+ error?: Error | unknown;
101
+ onRetry?: () => void;
102
+ }>;
103
+ }
104
+
95
105
  declare interface Attachments {
96
106
  url: string;
97
107
  name: string;
@@ -254,10 +264,11 @@ export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip
254
264
 
255
265
  declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
256
266
  icon?: LucideIcon;
257
- title: string;
258
- description: string;
259
- onRetry?: () => void;
267
+ title?: string;
268
+ description?: string;
260
269
  tip?: string;
270
+ error?: Error | unknown;
271
+ onRetry?: () => void;
261
272
  }
262
273
 
263
274
  declare interface Exchange {
@@ -1,19 +1,21 @@
1
- import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as A, ai as j } from "./chuncks/switch.BuckOH_X.js";
2
- import { r as ge, s as xe, w as be, J as me, x as he, y as fe, F as ue, z as pe, D as ye, E as we, G as ke, H as Ne, q as ve, t as Ce, K as Ie, L as ze, l as Me, m as Fe, n as Se, o as He, p as Te, M as _e, u as Ae, v as je, N as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CHatcIZ3.js";
1
+ import { a as b, V as N, c, $ as v, B as M, aI as C, aJ as I, aK as z, ac as T, ad as H, ah as y, ag as _, ae as A, ai as j } from "./chuncks/switch.BuckOH_X.js";
3
2
  import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
4
- import "react";
5
- import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
6
- import { S as f } from "./chuncks/skeleton.DL8TyUPY.js";
7
- const D = [
3
+ import { QueryErrorResetBoundary as B } from "@tanstack/react-query";
4
+ import { Suspense as D } from "react";
5
+ import { m as P } from "./chuncks/youtube-icon.component.BzUx7I9H.js";
6
+ import { s as pe, t as ye, x as we, K as ke, y as Ne, z as ve, F as Ce, D as Ie, E as ze, G as Fe, H as Se, J as Me, r as Te, u as He, L as _e, M as Ae, l as je, n as Le, o as Be, p as De, q as Pe, N as Re, v as $e, w as qe, O as Ee, X as Ve, Y as Je } from "./chuncks/youtube-icon.component.BzUx7I9H.js";
7
+ import { S as m } from "./chuncks/skeleton.DL8TyUPY.js";
8
+ import { parseISO as w, differenceInCalendarDays as R, format as $ } from "date-fns";
9
+ const q = [
8
10
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9
11
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
10
12
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
11
- ], B = b("circle-alert", D);
12
- const q = [
13
+ ], E = b("circle-alert", q);
14
+ const V = [
13
15
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
14
16
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
15
- ], R = b("copy", q);
16
- const V = [
17
+ ], J = b("copy", V);
18
+ const K = [
17
19
  [
18
20
  "path",
19
21
  {
@@ -25,14 +27,14 @@ const V = [
25
27
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
26
28
  ["path", { d: "M16 13H8", key: "t4e002" }],
27
29
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
28
- ], E = b("file-text", V);
29
- const J = [
30
+ ], O = b("file-text", K);
31
+ const X = [
30
32
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
31
33
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
32
34
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
33
35
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
34
- ], K = b("refresh-cw", J);
35
- const X = [
36
+ ], Y = b("refresh-cw", X);
37
+ const G = [
36
38
  [
37
39
  "path",
38
40
  {
@@ -42,44 +44,61 @@ const X = [
42
44
  ],
43
45
  ["path", { d: "M12 9v4", key: "juzpu7" }],
44
46
  ["path", { d: "M12 17h.01", key: "p32p05" }]
45
- ], Y = b("triangle-alert", X);
46
- function te({
47
- icon: a = Y,
48
- title: t,
49
- description: l,
50
- onRetry: n,
51
- tip: i,
47
+ ], Q = b("triangle-alert", G);
48
+ function W({
49
+ icon: a = Q,
50
+ title: t = "Algo deu errado",
51
+ description: n = "Não foi possível concluir esta operação no momento. Tente novamente em alguns instantes. Se o problema persistir, entre em contato com o suporte.",
52
+ onRetry: l,
53
+ tip: s,
52
54
  className: r,
53
- ...s
55
+ ...i
54
56
  }) {
55
- return /* @__PURE__ */ e(N, { className: c(r), ...s, children: /* @__PURE__ */ o(v, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
57
+ return /* @__PURE__ */ e(N, { className: c(r), ...i, children: /* @__PURE__ */ o(v, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
56
58
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
57
59
  /* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
58
- /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
59
- n && /* @__PURE__ */ o(S, { onClick: n, variant: "outline", className: "mt-6", children: [
60
- /* @__PURE__ */ e(K, {}),
60
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
61
+ l && /* @__PURE__ */ o(M, { onClick: l, variant: "outline", className: "mt-6", children: [
62
+ /* @__PURE__ */ e(Y, {}),
61
63
  "Tentar novamente"
62
64
  ] }),
63
- i && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: i }) })
65
+ s && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: s }) })
64
66
  ] }) });
65
67
  }
66
- function ae({
68
+ function oe({
69
+ suspenseFallback: a = U,
70
+ errorFallback: t = W,
71
+ children: n
72
+ }) {
73
+ return /* @__PURE__ */ e(D, { fallback: /* @__PURE__ */ e(a, {}), children: /* @__PURE__ */ e(B, { children: ({ reset: l }) => /* @__PURE__ */ e(
74
+ P,
75
+ {
76
+ onReset: l,
77
+ fallbackRender: ({ resetErrorBoundary: s, error: r }) => /* @__PURE__ */ e(t, { error: r, onRetry: s }),
78
+ children: n
79
+ }
80
+ ) }) });
81
+ }
82
+ function U() {
83
+ return /* @__PURE__ */ e(m, { className: "h-[13.75625rem]" });
84
+ }
85
+ function ce({
67
86
  content: a,
68
87
  align: t,
69
- asChild: l,
70
- className: n,
71
- openDelay: i = 0,
88
+ asChild: n,
89
+ className: l,
90
+ openDelay: s = 0,
72
91
  closeDelay: r = 0,
73
- children: s,
92
+ children: i,
74
93
  disabled: d = !1,
75
94
  ...x
76
95
  }) {
77
- return /* @__PURE__ */ e(L, { children: d === !0 ? s : /* @__PURE__ */ o(C, { openDelay: i, closeDelay: r, ...x, children: [
78
- /* @__PURE__ */ e(I, { asChild: l, children: s }),
79
- /* @__PURE__ */ e(z, { align: t, className: n, children: a })
96
+ return /* @__PURE__ */ e(L, { children: d === !0 ? i : /* @__PURE__ */ o(C, { openDelay: s, closeDelay: r, ...x, children: [
97
+ /* @__PURE__ */ e(I, { asChild: n, children: i }),
98
+ /* @__PURE__ */ e(z, { align: t, className: l, children: a })
80
99
  ] }) });
81
100
  }
82
- const G = {
101
+ const Z = {
83
102
  red: { bg: "bg-red-50", text: "text-red-600" },
84
103
  orange: { bg: "bg-orange-50", text: "text-orange-600" },
85
104
  amber: { bg: "bg-amber-50", text: "text-amber-600" },
@@ -102,7 +121,7 @@ const G = {
102
121
  zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
103
122
  neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
104
123
  stone: { bg: "bg-stone-200", text: "text-stone-800" }
105
- }, O = {
124
+ }, ee = {
106
125
  red: { bg: "bg-red-500", text: "text-white" },
107
126
  orange: { bg: "bg-orange-500", text: "text-white" },
108
127
  amber: { bg: "bg-amber-500", text: "text-white" },
@@ -133,39 +152,39 @@ const G = {
133
152
  lg: "size-6",
134
153
  xl: "size-7"
135
154
  };
136
- function re({
155
+ function de({
137
156
  size: a,
138
157
  color: t,
139
- className: l,
140
- icon: n,
141
- filled: i
158
+ className: n,
159
+ icon: l,
160
+ filled: s
142
161
  }) {
143
- const r = i ? O[t] : G[t], s = a ? k[a] : k.md;
144
- return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", r?.bg, l), children: /* @__PURE__ */ e(n, { className: c(s, r?.text) }) });
162
+ const r = s ? ee[t] : Z[t], i = a ? k[a] : k.md;
163
+ return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", r?.bg, n), children: /* @__PURE__ */ e(l, { className: c(i, r?.text) }) });
145
164
  }
146
- function le({ className: a, ...t }) {
165
+ function ge({ className: a, ...t }) {
147
166
  return /* @__PURE__ */ e("div", { className: c("divide-y", a), ...t });
148
167
  }
149
- function ne({
168
+ function xe({
150
169
  label: a,
151
170
  value: t,
152
- tooltip: l,
153
- highlight: n = !1,
154
- negative: i = !1,
171
+ tooltip: n,
172
+ highlight: l = !1,
173
+ negative: s = !1,
155
174
  positive: r = !1,
156
- isPercentage: s = !1,
175
+ isPercentage: i = !1,
157
176
  isDate: d = !1,
158
177
  isText: x = !1,
159
- isInvoiced: u = !1,
160
- hasCopyButton: m = !1,
161
- enableHoverableContent: M = !1,
178
+ isInvoiced: f = !1,
179
+ hasCopyButton: h = !1,
180
+ enableHoverableContent: F = !1,
162
181
  handleCopy: p
163
182
  }) {
164
183
  let g = "";
165
- if (d && typeof t == "string" && !u && n) {
166
- const F = w(t), h = P(F, /* @__PURE__ */ new Date());
167
- h > 15 ? g = "bg-yellow-100 font-bold" : h > 7 ? g = "bg-yellow-300 font-bold" : h >= 0 ? g = "bg-red-300 font-bold" : g = "bg-red-500 text-white font-bold";
168
- } else n && (g = "bg-[#ffe0b2] font-bold");
184
+ if (d && typeof t == "string" && !f && l) {
185
+ const S = w(t), u = R(S, /* @__PURE__ */ new Date());
186
+ u > 15 ? g = "bg-yellow-100 font-bold" : u > 7 ? g = "bg-yellow-300 font-bold" : u >= 0 ? g = "bg-red-300 font-bold" : g = "bg-red-500 text-white font-bold";
187
+ } else l && (g = "bg-[#ffe0b2] font-bold");
169
188
  return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(C, { openDelay: 0, closeDelay: 0, children: [
170
189
  /* @__PURE__ */ e(I, { children: /* @__PURE__ */ o("div", { className: "flex justify-between", children: [
171
190
  /* @__PURE__ */ o(
@@ -173,12 +192,12 @@ function ne({
173
192
  {
174
193
  className: c(
175
194
  "flex flex-row gap-1",
176
- i ? "text-red-600" : r ? "text-green-600" : ""
195
+ s ? "text-red-600" : r ? "text-green-600" : ""
177
196
  ),
178
197
  children: [
179
198
  a,
180
199
  " ",
181
- /* @__PURE__ */ e(B, { className: "size-3.5" })
200
+ /* @__PURE__ */ e(E, { className: "size-3.5" })
182
201
  ]
183
202
  }
184
203
  ),
@@ -187,11 +206,11 @@ function ne({
187
206
  {
188
207
  className: c(
189
208
  "flex flex-row justify-end gap-2 text-right",
190
- i ? "text-red-600" : r ? "text-green-600" : ""
209
+ s ? "text-red-600" : r ? "text-green-600" : ""
191
210
  ),
192
211
  children: [
193
- s && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" ? $(w(t), "dd/MM/yyyy") : x && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
194
- m && p && /* @__PURE__ */ e(R, { size: 15, onClick: () => p(t) })
212
+ i && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" ? $(w(t), "dd/MM/yyyy") : x && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
213
+ h && p && /* @__PURE__ */ e(J, { size: 15, onClick: () => p(t) })
195
214
  ]
196
215
  }
197
216
  )
@@ -200,24 +219,24 @@ function ne({
200
219
  z,
201
220
  {
202
221
  align: "start",
203
- className: c(!M && "pointer-events-none"),
222
+ className: c(!F && "pointer-events-none"),
204
223
  children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
205
224
  /* @__PURE__ */ e("div", { className: "font-medium", children: a }),
206
- /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: l })
225
+ /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: n })
207
226
  ] })
208
227
  }
209
228
  )
210
229
  ] }) });
211
230
  }
212
- function ie({
213
- icon: a = E,
231
+ function be({
232
+ icon: a = O,
214
233
  title: t,
215
- description: l,
216
- tip: n,
217
- className: i,
234
+ description: n,
235
+ tip: l,
236
+ className: s,
218
237
  ...r
219
238
  }) {
220
- return /* @__PURE__ */ e(N, { className: c(i), ...r, children: /* @__PURE__ */ o(v, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
239
+ return /* @__PURE__ */ e(N, { className: c(s), ...r, children: /* @__PURE__ */ o(v, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
221
240
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
222
241
  a,
223
242
  {
@@ -226,43 +245,43 @@ function ie({
226
245
  }
227
246
  ) }),
228
247
  /* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: t }),
229
- /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: l }),
230
- n && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: n }) })
248
+ /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: n }),
249
+ l && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: l }) })
231
250
  ] }) });
232
251
  }
233
- function se({
252
+ function me({
234
253
  columns: a = 9,
235
254
  rows: t = 20,
236
- hasActions: l = !1,
237
- actionsCount: n = 1
255
+ hasActions: n = !1,
256
+ actionsCount: l = 1
238
257
  }) {
239
- return /* @__PURE__ */ o(H, { children: [
240
- /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((i, r) => {
241
- const s = l && r === a - 1;
258
+ return /* @__PURE__ */ o(T, { children: [
259
+ /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((s, r) => {
260
+ const i = n && r === a - 1;
242
261
  return /* @__PURE__ */ e(
243
262
  _,
244
263
  {
245
- className: s ? "w-0 text-right" : "",
264
+ className: i ? "w-0 text-right" : "",
246
265
  children: /* @__PURE__ */ e(
247
- f,
266
+ m,
248
267
  {
249
- className: s ? "ml-auto h-4 w-8" : "h-4 w-[60%]"
268
+ className: i ? "ml-auto h-4 w-8" : "h-4 w-[60%]"
250
269
  }
251
270
  )
252
271
  },
253
272
  r
254
273
  );
255
274
  }) }) }),
256
- /* @__PURE__ */ e(A, { children: Array.from({ length: t }).map((i, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((s, d) => {
257
- const x = l && d === a - 1;
258
- return /* @__PURE__ */ e(j, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: n }).map((u, m) => /* @__PURE__ */ e(f, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(f, { className: "h-4 w-full" }) }, d);
275
+ /* @__PURE__ */ e(A, { children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((i, d) => {
276
+ const x = n && d === a - 1;
277
+ return /* @__PURE__ */ e(j, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: l }).map((f, h) => /* @__PURE__ */ e(m, { className: "ml-auto size-8" }, h)) }) : /* @__PURE__ */ e(m, { className: "h-4 w-full" }) }, d);
259
278
  }) }, r)) })
260
279
  ] });
261
280
  }
262
- function oe({
281
+ function he({
263
282
  size: a = 24,
264
283
  color: t = "currentColor",
265
- ...l
284
+ ...n
266
285
  }) {
267
286
  return /* @__PURE__ */ e(
268
287
  "svg",
@@ -277,45 +296,46 @@ function oe({
277
296
  "stroke-linecap": "round",
278
297
  "stroke-linejoin": "round",
279
298
  className: "lucide lucide-twitter-icon lucide-twitter",
280
- ...l,
299
+ ...n,
281
300
  children: /* @__PURE__ */ e("path", { d: "M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z" })
282
301
  }
283
302
  );
284
303
  }
285
304
  export {
286
- ge as CampaignsSelectInput,
287
- xe as ClientSelectInput,
288
- te as ErrorCard,
289
- be as FieldCalendar,
290
- me as FieldCheckbox,
291
- he as FieldClientSelectInput,
292
- fe as FieldInput,
293
- ue as FieldLabelWithAsterisk,
294
- pe as FieldProfileSelectInput,
295
- ye as FieldSaleSelectInput,
296
- we as FieldSelect,
297
- ke as FieldSwitch,
298
- Ne as FieldTextarea,
299
- ae as HoverContent,
300
- re as IconBadge,
301
- ve as Image,
302
- Ce as InfluencerSelectInput,
303
- Ie as InstagramIcon,
304
- ze as LinkedInIcon,
305
- le as List,
306
- ne as ListRow,
307
- ie as NotFoundCard,
308
- Me as PageHeader,
309
- Fe as PageHeaderActions,
310
- Se as PageHeaderContent,
311
- He as PageHeaderDescription,
312
- Te as PageHeaderTitle,
313
- _e as PinterestIcon,
314
- Ae as ProfileSelectInput,
315
- je as SaleSelectInput,
316
- se as TableSkeleton,
317
- Le as TikTokIcon,
318
- oe as TwitterIcon,
319
- Pe as XIcon,
320
- $e as YoutubeIcon
305
+ oe as AsyncBoundary,
306
+ pe as CampaignsSelectInput,
307
+ ye as ClientSelectInput,
308
+ W as ErrorCard,
309
+ we as FieldCalendar,
310
+ ke as FieldCheckbox,
311
+ Ne as FieldClientSelectInput,
312
+ ve as FieldInput,
313
+ Ce as FieldLabelWithAsterisk,
314
+ Ie as FieldProfileSelectInput,
315
+ ze as FieldSaleSelectInput,
316
+ Fe as FieldSelect,
317
+ Se as FieldSwitch,
318
+ Me as FieldTextarea,
319
+ ce as HoverContent,
320
+ de as IconBadge,
321
+ Te as Image,
322
+ He as InfluencerSelectInput,
323
+ _e as InstagramIcon,
324
+ Ae as LinkedInIcon,
325
+ ge as List,
326
+ xe as ListRow,
327
+ be as NotFoundCard,
328
+ je as PageHeader,
329
+ Le as PageHeaderActions,
330
+ Be as PageHeaderContent,
331
+ De as PageHeaderDescription,
332
+ Pe as PageHeaderTitle,
333
+ Re as PinterestIcon,
334
+ $e as ProfileSelectInput,
335
+ qe as SaleSelectInput,
336
+ me as TableSkeleton,
337
+ Ee as TikTokIcon,
338
+ he as TwitterIcon,
339
+ Ve as XIcon,
340
+ Je as YoutubeIcon
321
341
  };
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.CHatcIZ3.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.BzUx7I9H.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.iSvkH94y.js";
1
+ import { b as o } from "./chuncks/format.util.fEyACJbG.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/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { U as a } from "./chuncks/format.util.iSvkH94y.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.iSvkH94y.js";
3
- import { d as s } from "./chuncks/youtube-icon.component.CHatcIZ3.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.CHatcIZ3.js";
1
+ import { U as a } from "./chuncks/format.util.fEyACJbG.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.fEyACJbG.js";
3
+ import { d as s } from "./chuncks/youtube-icon.component.BzUx7I9H.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.BzUx7I9H.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.173",
4
+ "version": "0.0.175",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -120,13 +120,6 @@
120
120
  }
121
121
  },
122
122
  "type": "module",
123
- "scripts": {
124
- "dev": "vite",
125
- "build": "rm -rf dist && tsc -b && vite build",
126
- "lint": "eslint .",
127
- "preview": "vite preview",
128
- "lib:publish": "pnpm build && pnpm publish --no-git-checks"
129
- },
130
123
  "peerDependencies": {
131
124
  "react": "^18.3.1",
132
125
  "react-dom": "^18.3.1"
@@ -156,6 +149,7 @@
156
149
  "lucide-react": "^0.555.0",
157
150
  "radix-ui": "^1.4.3",
158
151
  "react-day-picker": "^9.11.3",
152
+ "react-error-boundary": "^6.1.2",
159
153
  "react-hook-form": "^7.71.2",
160
154
  "react-router-dom": "^7.10.1",
161
155
  "recharts": "2.15.4",
@@ -182,5 +176,12 @@
182
176
  "vite": "^7.2.4",
183
177
  "vite-plugin-dts": "^4.5.4",
184
178
  "vite-plugin-lib-inject-css": "^2.2.2"
179
+ },
180
+ "scripts": {
181
+ "dev": "vite",
182
+ "build": "rm -rf dist && tsc -b && vite build",
183
+ "lint": "eslint .",
184
+ "preview": "vite preview",
185
+ "lib:publish": "pnpm build && pnpm publish --no-git-checks"
185
186
  }
186
- }
187
+ }