@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.
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/{format.util.iSvkH94y.js → format.util.fEyACJbG.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.CHatcIZ3.js → youtube-icon.component.BzUx7I9H.js} +664 -601
- package/dist/components.d.ts +14 -3
- package/dist/components.js +141 -121
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.js +4 -4
- package/package.json +10 -9
package/dist/components.d.ts
CHANGED
|
@@ -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
|
|
258
|
-
description
|
|
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 {
|
package/dist/components.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { a as b, V as N, c, $ as v, B as
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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
|
-
],
|
|
12
|
-
const
|
|
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
|
-
],
|
|
16
|
-
const
|
|
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
|
-
],
|
|
29
|
-
const
|
|
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
|
-
],
|
|
35
|
-
const
|
|
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
|
-
],
|
|
46
|
-
function
|
|
47
|
-
icon: a =
|
|
48
|
-
title: t,
|
|
49
|
-
description:
|
|
50
|
-
onRetry:
|
|
51
|
-
tip:
|
|
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
|
-
...
|
|
55
|
+
...i
|
|
54
56
|
}) {
|
|
55
|
-
return /* @__PURE__ */ e(N, { className: c(r), ...
|
|
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:
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
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
|
|
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:
|
|
70
|
-
className:
|
|
71
|
-
openDelay:
|
|
88
|
+
asChild: n,
|
|
89
|
+
className: l,
|
|
90
|
+
openDelay: s = 0,
|
|
72
91
|
closeDelay: r = 0,
|
|
73
|
-
children:
|
|
92
|
+
children: i,
|
|
74
93
|
disabled: d = !1,
|
|
75
94
|
...x
|
|
76
95
|
}) {
|
|
77
|
-
return /* @__PURE__ */ e(L, { children: d === !0 ?
|
|
78
|
-
/* @__PURE__ */ e(I, { asChild:
|
|
79
|
-
/* @__PURE__ */ e(z, { align: t, className:
|
|
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
|
|
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
|
-
},
|
|
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
|
|
155
|
+
function de({
|
|
137
156
|
size: a,
|
|
138
157
|
color: t,
|
|
139
|
-
className:
|
|
140
|
-
icon:
|
|
141
|
-
filled:
|
|
158
|
+
className: n,
|
|
159
|
+
icon: l,
|
|
160
|
+
filled: s
|
|
142
161
|
}) {
|
|
143
|
-
const r =
|
|
144
|
-
return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", r?.bg,
|
|
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
|
|
165
|
+
function ge({ className: a, ...t }) {
|
|
147
166
|
return /* @__PURE__ */ e("div", { className: c("divide-y", a), ...t });
|
|
148
167
|
}
|
|
149
|
-
function
|
|
168
|
+
function xe({
|
|
150
169
|
label: a,
|
|
151
170
|
value: t,
|
|
152
|
-
tooltip:
|
|
153
|
-
highlight:
|
|
154
|
-
negative:
|
|
171
|
+
tooltip: n,
|
|
172
|
+
highlight: l = !1,
|
|
173
|
+
negative: s = !1,
|
|
155
174
|
positive: r = !1,
|
|
156
|
-
isPercentage:
|
|
175
|
+
isPercentage: i = !1,
|
|
157
176
|
isDate: d = !1,
|
|
158
177
|
isText: x = !1,
|
|
159
|
-
isInvoiced:
|
|
160
|
-
hasCopyButton:
|
|
161
|
-
enableHoverableContent:
|
|
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" && !
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
} else
|
|
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
|
-
|
|
195
|
+
s ? "text-red-600" : r ? "text-green-600" : ""
|
|
177
196
|
),
|
|
178
197
|
children: [
|
|
179
198
|
a,
|
|
180
199
|
" ",
|
|
181
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
209
|
+
s ? "text-red-600" : r ? "text-green-600" : ""
|
|
191
210
|
),
|
|
192
211
|
children: [
|
|
193
|
-
|
|
194
|
-
|
|
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(!
|
|
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:
|
|
225
|
+
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: n })
|
|
207
226
|
] })
|
|
208
227
|
}
|
|
209
228
|
)
|
|
210
229
|
] }) });
|
|
211
230
|
}
|
|
212
|
-
function
|
|
213
|
-
icon: a =
|
|
231
|
+
function be({
|
|
232
|
+
icon: a = O,
|
|
214
233
|
title: t,
|
|
215
|
-
description:
|
|
216
|
-
tip:
|
|
217
|
-
className:
|
|
234
|
+
description: n,
|
|
235
|
+
tip: l,
|
|
236
|
+
className: s,
|
|
218
237
|
...r
|
|
219
238
|
}) {
|
|
220
|
-
return /* @__PURE__ */ e(N, { className: c(
|
|
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:
|
|
230
|
-
|
|
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
|
|
252
|
+
function me({
|
|
234
253
|
columns: a = 9,
|
|
235
254
|
rows: t = 20,
|
|
236
|
-
hasActions:
|
|
237
|
-
actionsCount:
|
|
255
|
+
hasActions: n = !1,
|
|
256
|
+
actionsCount: l = 1
|
|
238
257
|
}) {
|
|
239
|
-
return /* @__PURE__ */ o(
|
|
240
|
-
/* @__PURE__ */ e(
|
|
241
|
-
const
|
|
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:
|
|
264
|
+
className: i ? "w-0 text-right" : "",
|
|
246
265
|
children: /* @__PURE__ */ e(
|
|
247
|
-
|
|
266
|
+
m,
|
|
248
267
|
{
|
|
249
|
-
className:
|
|
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((
|
|
257
|
-
const x =
|
|
258
|
-
return /* @__PURE__ */ e(j, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length:
|
|
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
|
|
281
|
+
function he({
|
|
263
282
|
size: a = 24,
|
|
264
283
|
color: t = "currentColor",
|
|
265
|
-
...
|
|
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
|
-
...
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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.
|
|
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
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as a } from "./chuncks/format.util.
|
|
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.
|
|
3
|
-
import { d as s } from "./chuncks/youtube-icon.component.
|
|
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.
|
|
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.
|
|
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
|
+
}
|