@grapadigital/shared-app-modules 0.0.175 → 0.0.178
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/action.d.ts +2 -1
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/{format.util.fEyACJbG.js → format.util.BvK_tzw5.js} +1 -1
- package/dist/chuncks/{popover.DD2hYdsr.js → popover.4p4HlZwe.js} +1 -1
- package/dist/chuncks/{switch.BuckOH_X.js → switch.BF6I8Lqo.js} +23 -22
- package/dist/chuncks/tooltip.BR6kaw4f.js +378 -0
- package/dist/chuncks/{youtube-icon.component.BzUx7I9H.js → youtube-icon.component.DNSli53G.js} +601 -664
- package/dist/components.d.ts +19 -15
- package/dist/components.js +199 -145
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +2 -1
- package/dist/events.js +1 -1
- package/dist/invoice.d.ts +2 -1
- package/dist/pages.js +1 -1
- package/dist/payment.d.ts +2 -1
- package/dist/recruitment.d.ts +2 -1
- package/dist/sale.d.ts +2 -1
- package/dist/shadcn.js +218 -574
- package/dist/utils.js +4 -4
- package/package.json +9 -10
- package/dist/chuncks/skeleton.DL8TyUPY.js +0 -17
package/dist/components.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ declare interface ActionInterface {
|
|
|
18
18
|
title?: string;
|
|
19
19
|
clientId?: string;
|
|
20
20
|
cluster?: string;
|
|
21
|
-
status?: "config" | "
|
|
21
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
22
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
22
23
|
startDate?: string;
|
|
23
24
|
endDate?: string;
|
|
24
25
|
recruitments?: RecruitmentInterface[];
|
|
@@ -92,16 +93,6 @@ declare interface Approval {
|
|
|
92
93
|
approvedAt: string;
|
|
93
94
|
}
|
|
94
95
|
|
|
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
|
-
|
|
105
96
|
declare interface Attachments {
|
|
106
97
|
url: string;
|
|
107
98
|
name: string;
|
|
@@ -264,11 +255,10 @@ export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip
|
|
|
264
255
|
|
|
265
256
|
declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
|
|
266
257
|
icon?: LucideIcon;
|
|
267
|
-
title
|
|
268
|
-
description
|
|
269
|
-
tip?: string;
|
|
270
|
-
error?: Error | unknown;
|
|
258
|
+
title: string;
|
|
259
|
+
description: string;
|
|
271
260
|
onRetry?: () => void;
|
|
261
|
+
tip?: string;
|
|
272
262
|
}
|
|
273
263
|
|
|
274
264
|
declare interface Exchange {
|
|
@@ -870,6 +860,20 @@ declare const sizeMap: {
|
|
|
870
860
|
xl: string;
|
|
871
861
|
};
|
|
872
862
|
|
|
863
|
+
export declare interface SpeedDialAction {
|
|
864
|
+
icon: LucideIcon;
|
|
865
|
+
label: string;
|
|
866
|
+
onClick: () => void;
|
|
867
|
+
disabled?: boolean;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export declare function SpeedDialButton({ actions, icon: Icon }: SpeedDialButtonProps): JSX.Element;
|
|
871
|
+
|
|
872
|
+
declare interface SpeedDialButtonProps {
|
|
873
|
+
actions: SpeedDialAction[];
|
|
874
|
+
icon?: LucideIcon;
|
|
875
|
+
}
|
|
876
|
+
|
|
873
877
|
declare interface SupplierInterface extends UserInterface {
|
|
874
878
|
}
|
|
875
879
|
|
package/dist/components.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { parseISO as w, differenceInCalendarDays as R, format as $ } from "date-fns";
|
|
9
|
-
const q = [
|
|
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";
|
|
3
|
+
import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
|
|
4
|
+
import { useState as $, useRef as P, useEffect as E } from "react";
|
|
5
|
+
import { parseISO as k, differenceInCalendarDays as B, format as R } from "date-fns";
|
|
6
|
+
import { c as q, T as K, a as O, b as V, S as u } from "./chuncks/tooltip.BR6kaw4f.js";
|
|
7
|
+
const X = [
|
|
10
8
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
11
9
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
12
10
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
13
|
-
],
|
|
14
|
-
const
|
|
11
|
+
], J = x("circle-alert", X);
|
|
12
|
+
const Y = [
|
|
13
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
14
|
+
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
15
|
+
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
16
|
+
], G = x("circle-question-mark", Y);
|
|
17
|
+
const Q = [
|
|
15
18
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
16
19
|
["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" }]
|
|
17
|
-
],
|
|
18
|
-
const
|
|
20
|
+
], W = x("copy", Q);
|
|
21
|
+
const U = [
|
|
19
22
|
[
|
|
20
23
|
"path",
|
|
21
24
|
{
|
|
@@ -27,14 +30,14 @@ const K = [
|
|
|
27
30
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
28
31
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
29
32
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
30
|
-
],
|
|
31
|
-
const
|
|
33
|
+
], Z = x("file-text", U);
|
|
34
|
+
const ee = [
|
|
32
35
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
33
36
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
34
37
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
35
38
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
36
|
-
],
|
|
37
|
-
const
|
|
39
|
+
], te = x("refresh-cw", ee);
|
|
40
|
+
const ae = [
|
|
38
41
|
[
|
|
39
42
|
"path",
|
|
40
43
|
{
|
|
@@ -44,61 +47,44 @@ const G = [
|
|
|
44
47
|
],
|
|
45
48
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
46
49
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
47
|
-
],
|
|
48
|
-
function
|
|
49
|
-
icon:
|
|
50
|
-
title:
|
|
51
|
-
description: n
|
|
50
|
+
], re = x("triangle-alert", ae);
|
|
51
|
+
function ge({
|
|
52
|
+
icon: r = re,
|
|
53
|
+
title: a,
|
|
54
|
+
description: n,
|
|
52
55
|
onRetry: l,
|
|
53
56
|
tip: s,
|
|
54
|
-
className:
|
|
57
|
+
className: t,
|
|
55
58
|
...i
|
|
56
59
|
}) {
|
|
57
|
-
return /* @__PURE__ */ e(
|
|
58
|
-
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
59
|
-
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children:
|
|
60
|
+
return /* @__PURE__ */ e(v, { className: c(t), ...i, children: /* @__PURE__ */ o(C, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
61
|
+
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(r, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
62
|
+
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: a }),
|
|
60
63
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
|
|
61
|
-
l && /* @__PURE__ */ o(
|
|
62
|
-
/* @__PURE__ */ e(
|
|
64
|
+
l && /* @__PURE__ */ o(f, { onClick: l, variant: "outline", className: "mt-6", children: [
|
|
65
|
+
/* @__PURE__ */ e(te, {}),
|
|
63
66
|
"Tentar novamente"
|
|
64
67
|
] }),
|
|
65
68
|
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 }) })
|
|
66
69
|
] }) });
|
|
67
70
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
|
|
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({
|
|
86
|
-
content: a,
|
|
87
|
-
align: t,
|
|
71
|
+
function xe({
|
|
72
|
+
content: r,
|
|
73
|
+
align: a,
|
|
88
74
|
asChild: n,
|
|
89
75
|
className: l,
|
|
90
76
|
openDelay: s = 0,
|
|
91
|
-
closeDelay:
|
|
77
|
+
closeDelay: t = 0,
|
|
92
78
|
children: i,
|
|
93
79
|
disabled: d = !1,
|
|
94
|
-
...
|
|
80
|
+
...b
|
|
95
81
|
}) {
|
|
96
|
-
return /* @__PURE__ */ e(
|
|
82
|
+
return /* @__PURE__ */ e(D, { children: d === !0 ? i : /* @__PURE__ */ o(z, { openDelay: s, closeDelay: t, ...b, children: [
|
|
97
83
|
/* @__PURE__ */ e(I, { asChild: n, children: i }),
|
|
98
|
-
/* @__PURE__ */ e(
|
|
84
|
+
/* @__PURE__ */ e(M, { align: a, className: l, children: r })
|
|
99
85
|
] }) });
|
|
100
86
|
}
|
|
101
|
-
const
|
|
87
|
+
const ne = {
|
|
102
88
|
red: { bg: "bg-red-50", text: "text-red-600" },
|
|
103
89
|
orange: { bg: "bg-orange-50", text: "text-orange-600" },
|
|
104
90
|
amber: { bg: "bg-amber-50", text: "text-amber-600" },
|
|
@@ -121,7 +107,7 @@ const Z = {
|
|
|
121
107
|
zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
|
|
122
108
|
neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
|
|
123
109
|
stone: { bg: "bg-stone-200", text: "text-stone-800" }
|
|
124
|
-
},
|
|
110
|
+
}, le = {
|
|
125
111
|
red: { bg: "bg-red-500", text: "text-white" },
|
|
126
112
|
orange: { bg: "bg-orange-500", text: "text-white" },
|
|
127
113
|
amber: { bg: "bg-amber-500", text: "text-white" },
|
|
@@ -145,59 +131,59 @@ const Z = {
|
|
|
145
131
|
neutral: { bg: "bg-neutral-500", text: "text-white" },
|
|
146
132
|
stone: { bg: "bg-stone-500", text: "text-white" },
|
|
147
133
|
black: { bg: "bg-black", text: "text-white" }
|
|
148
|
-
},
|
|
134
|
+
}, N = {
|
|
149
135
|
xs: "size-3",
|
|
150
136
|
sm: "size-4",
|
|
151
137
|
md: "size-5",
|
|
152
138
|
lg: "size-6",
|
|
153
139
|
xl: "size-7"
|
|
154
140
|
};
|
|
155
|
-
function
|
|
156
|
-
size:
|
|
157
|
-
color:
|
|
141
|
+
function be({
|
|
142
|
+
size: r,
|
|
143
|
+
color: a,
|
|
158
144
|
className: n,
|
|
159
145
|
icon: l,
|
|
160
146
|
filled: s
|
|
161
147
|
}) {
|
|
162
|
-
const
|
|
163
|
-
return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg",
|
|
148
|
+
const t = s ? le[a] : ne[a], i = r ? N[r] : N.md;
|
|
149
|
+
return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", t?.bg, n), children: /* @__PURE__ */ e(l, { className: c(i, t?.text) }) });
|
|
164
150
|
}
|
|
165
|
-
function
|
|
166
|
-
return /* @__PURE__ */ e("div", { className: c("divide-y",
|
|
151
|
+
function me({ className: r, ...a }) {
|
|
152
|
+
return /* @__PURE__ */ e("div", { className: c("divide-y", r), ...a });
|
|
167
153
|
}
|
|
168
|
-
function
|
|
169
|
-
label:
|
|
170
|
-
value:
|
|
154
|
+
function he({
|
|
155
|
+
label: r,
|
|
156
|
+
value: a,
|
|
171
157
|
tooltip: n,
|
|
172
158
|
highlight: l = !1,
|
|
173
159
|
negative: s = !1,
|
|
174
|
-
positive:
|
|
160
|
+
positive: t = !1,
|
|
175
161
|
isPercentage: i = !1,
|
|
176
162
|
isDate: d = !1,
|
|
177
|
-
isText:
|
|
178
|
-
isInvoiced:
|
|
179
|
-
hasCopyButton:
|
|
180
|
-
enableHoverableContent:
|
|
181
|
-
handleCopy:
|
|
163
|
+
isText: b = !1,
|
|
164
|
+
isInvoiced: p = !1,
|
|
165
|
+
hasCopyButton: m = !1,
|
|
166
|
+
enableHoverableContent: T = !1,
|
|
167
|
+
handleCopy: y
|
|
182
168
|
}) {
|
|
183
169
|
let g = "";
|
|
184
|
-
if (d && typeof
|
|
185
|
-
const S =
|
|
186
|
-
|
|
170
|
+
if (d && typeof a == "string" && !p && l) {
|
|
171
|
+
const S = k(a), h = B(S, /* @__PURE__ */ new Date());
|
|
172
|
+
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";
|
|
187
173
|
} else l && (g = "bg-[#ffe0b2] font-bold");
|
|
188
|
-
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(
|
|
174
|
+
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(z, { openDelay: 0, closeDelay: 0, children: [
|
|
189
175
|
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ o("div", { className: "flex justify-between", children: [
|
|
190
176
|
/* @__PURE__ */ o(
|
|
191
177
|
"span",
|
|
192
178
|
{
|
|
193
179
|
className: c(
|
|
194
180
|
"flex flex-row gap-1",
|
|
195
|
-
s ? "text-red-600" :
|
|
181
|
+
s ? "text-red-600" : t ? "text-green-600" : ""
|
|
196
182
|
),
|
|
197
183
|
children: [
|
|
198
|
-
|
|
184
|
+
r,
|
|
199
185
|
" ",
|
|
200
|
-
/* @__PURE__ */ e(
|
|
186
|
+
/* @__PURE__ */ e(J, { className: "size-3.5" })
|
|
201
187
|
]
|
|
202
188
|
}
|
|
203
189
|
),
|
|
@@ -206,92 +192,160 @@ function xe({
|
|
|
206
192
|
{
|
|
207
193
|
className: c(
|
|
208
194
|
"flex flex-row justify-end gap-2 text-right",
|
|
209
|
-
s ? "text-red-600" :
|
|
195
|
+
s ? "text-red-600" : t ? "text-green-600" : ""
|
|
210
196
|
),
|
|
211
197
|
children: [
|
|
212
|
-
i && typeof
|
|
213
|
-
|
|
198
|
+
i && typeof a == "number" ? `${a.toFixed(2)}%` : d && typeof a == "string" ? R(k(a), "dd/MM/yyyy") : b && typeof a == "string" ? a : `R$ ${a.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
|
|
199
|
+
m && y && /* @__PURE__ */ e(W, { size: 15, onClick: () => y(a) })
|
|
214
200
|
]
|
|
215
201
|
}
|
|
216
202
|
)
|
|
217
203
|
] }) }),
|
|
218
204
|
/* @__PURE__ */ e(
|
|
219
|
-
|
|
205
|
+
M,
|
|
220
206
|
{
|
|
221
207
|
align: "start",
|
|
222
|
-
className: c(!
|
|
208
|
+
className: c(!T && "pointer-events-none"),
|
|
223
209
|
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
224
|
-
/* @__PURE__ */ e("div", { className: "font-medium", children:
|
|
210
|
+
/* @__PURE__ */ e("div", { className: "font-medium", children: r }),
|
|
225
211
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: n })
|
|
226
212
|
] })
|
|
227
213
|
}
|
|
228
214
|
)
|
|
229
215
|
] }) });
|
|
230
216
|
}
|
|
231
|
-
function
|
|
232
|
-
icon:
|
|
233
|
-
title:
|
|
217
|
+
function ue({
|
|
218
|
+
icon: r = Z,
|
|
219
|
+
title: a,
|
|
234
220
|
description: n,
|
|
235
221
|
tip: l,
|
|
236
222
|
className: s,
|
|
237
|
-
...
|
|
223
|
+
...t
|
|
238
224
|
}) {
|
|
239
|
-
return /* @__PURE__ */ e(
|
|
225
|
+
return /* @__PURE__ */ e(v, { className: c(s), ...t, children: /* @__PURE__ */ o(C, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
240
226
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
241
|
-
|
|
227
|
+
r,
|
|
242
228
|
{
|
|
243
229
|
"aria-hidden": "true",
|
|
244
230
|
className: "size-16 text-muted-foreground/40"
|
|
245
231
|
}
|
|
246
232
|
) }),
|
|
247
|
-
/* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children:
|
|
233
|
+
/* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: a }),
|
|
248
234
|
/* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: n }),
|
|
249
235
|
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 }) })
|
|
250
236
|
] }) });
|
|
251
237
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
254
|
-
|
|
238
|
+
function fe({
|
|
239
|
+
actions: r,
|
|
240
|
+
icon: a = G
|
|
241
|
+
}) {
|
|
242
|
+
const [n, l] = $(!1), s = P(null);
|
|
243
|
+
return E(() => {
|
|
244
|
+
if (!n) return;
|
|
245
|
+
const t = (d) => {
|
|
246
|
+
s.current?.contains(d.target) || l(!1);
|
|
247
|
+
}, i = (d) => {
|
|
248
|
+
d.key === "Escape" && l(!1);
|
|
249
|
+
};
|
|
250
|
+
return document.addEventListener("mousedown", t), document.addEventListener("keydown", i), () => {
|
|
251
|
+
document.removeEventListener("mousedown", t), document.removeEventListener("keydown", i);
|
|
252
|
+
};
|
|
253
|
+
}, [n]), /* @__PURE__ */ e(q, { children: /* @__PURE__ */ o(
|
|
254
|
+
"div",
|
|
255
|
+
{
|
|
256
|
+
ref: s,
|
|
257
|
+
className: "fixed bottom-6 right-6 z-50 flex flex-col items-end gap-3",
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: r.map((t, i) => /* @__PURE__ */ e(
|
|
260
|
+
"div",
|
|
261
|
+
{
|
|
262
|
+
className: c(
|
|
263
|
+
"transition-all duration-200 ease-out",
|
|
264
|
+
n ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
|
|
265
|
+
),
|
|
266
|
+
style: { transitionDelay: n ? `${i * 30}ms` : "0ms" },
|
|
267
|
+
children: /* @__PURE__ */ o(K, { children: [
|
|
268
|
+
/* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
|
|
269
|
+
f,
|
|
270
|
+
{
|
|
271
|
+
size: "icon",
|
|
272
|
+
variant: "outline",
|
|
273
|
+
disabled: t.disabled,
|
|
274
|
+
"aria-disabled": t.disabled,
|
|
275
|
+
className: c(
|
|
276
|
+
"size-11 rounded-full shadow-md",
|
|
277
|
+
t.disabled && "opacity-50"
|
|
278
|
+
),
|
|
279
|
+
onClick: () => {
|
|
280
|
+
t.disabled || (t.onClick(), l(!1));
|
|
281
|
+
},
|
|
282
|
+
children: /* @__PURE__ */ e(t.icon, { className: "size-5" })
|
|
283
|
+
}
|
|
284
|
+
) }),
|
|
285
|
+
/* @__PURE__ */ e(V, { side: "left", children: t.label })
|
|
286
|
+
] })
|
|
287
|
+
},
|
|
288
|
+
t.label
|
|
289
|
+
)) }),
|
|
290
|
+
/* @__PURE__ */ e(
|
|
291
|
+
f,
|
|
292
|
+
{
|
|
293
|
+
size: "icon",
|
|
294
|
+
variant: "outline",
|
|
295
|
+
className: "size-11 rounded-full shadow-md",
|
|
296
|
+
"aria-label": n ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
|
|
297
|
+
"aria-expanded": n,
|
|
298
|
+
onClick: () => l((t) => !t),
|
|
299
|
+
children: n ? /* @__PURE__ */ e(F, { className: "size-5" }) : /* @__PURE__ */ e(a, { className: "size-5" })
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
) });
|
|
305
|
+
}
|
|
306
|
+
function pe({
|
|
307
|
+
columns: r = 9,
|
|
308
|
+
rows: a = 20,
|
|
255
309
|
hasActions: n = !1,
|
|
256
310
|
actionsCount: l = 1
|
|
257
311
|
}) {
|
|
258
|
-
return /* @__PURE__ */ o(
|
|
259
|
-
/* @__PURE__ */ e(
|
|
260
|
-
const i = n &&
|
|
312
|
+
return /* @__PURE__ */ o(H, { children: [
|
|
313
|
+
/* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(w, { children: Array.from({ length: r }).map((s, t) => {
|
|
314
|
+
const i = n && t === r - 1;
|
|
261
315
|
return /* @__PURE__ */ e(
|
|
262
|
-
|
|
316
|
+
L,
|
|
263
317
|
{
|
|
264
318
|
className: i ? "w-0 text-right" : "",
|
|
265
319
|
children: /* @__PURE__ */ e(
|
|
266
|
-
|
|
320
|
+
u,
|
|
267
321
|
{
|
|
268
322
|
className: i ? "ml-auto h-4 w-8" : "h-4 w-[60%]"
|
|
269
323
|
}
|
|
270
324
|
)
|
|
271
325
|
},
|
|
272
|
-
|
|
326
|
+
t
|
|
273
327
|
);
|
|
274
328
|
}) }) }),
|
|
275
|
-
/* @__PURE__ */ e(
|
|
276
|
-
const
|
|
277
|
-
return /* @__PURE__ */ e(
|
|
278
|
-
}) },
|
|
329
|
+
/* @__PURE__ */ e(j, { children: Array.from({ length: a }).map((s, t) => /* @__PURE__ */ e(w, { className: "h-[3.05rem]", children: Array.from({ length: r }).map((i, d) => {
|
|
330
|
+
const b = n && d === r - 1;
|
|
331
|
+
return /* @__PURE__ */ e(A, { children: b ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: l }).map((p, m) => /* @__PURE__ */ e(u, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(u, { className: "h-4 w-full" }) }, d);
|
|
332
|
+
}) }, t)) })
|
|
279
333
|
] });
|
|
280
334
|
}
|
|
281
|
-
function
|
|
282
|
-
size:
|
|
283
|
-
color:
|
|
335
|
+
function ye({
|
|
336
|
+
size: r = 24,
|
|
337
|
+
color: a = "currentColor",
|
|
284
338
|
...n
|
|
285
339
|
}) {
|
|
286
340
|
return /* @__PURE__ */ e(
|
|
287
341
|
"svg",
|
|
288
342
|
{
|
|
289
343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
290
|
-
width:
|
|
291
|
-
height:
|
|
344
|
+
width: r,
|
|
345
|
+
height: r,
|
|
292
346
|
viewBox: "0 0 24 24",
|
|
293
347
|
fill: "none",
|
|
294
|
-
stroke:
|
|
348
|
+
stroke: a,
|
|
295
349
|
"stroke-width": "2",
|
|
296
350
|
"stroke-linecap": "round",
|
|
297
351
|
"stroke-linejoin": "round",
|
|
@@ -302,40 +356,40 @@ function he({
|
|
|
302
356
|
);
|
|
303
357
|
}
|
|
304
358
|
export {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
Le as PageHeaderActions,
|
|
359
|
+
Ne as CampaignsSelectInput,
|
|
360
|
+
ve as ClientSelectInput,
|
|
361
|
+
ge as ErrorCard,
|
|
362
|
+
Ce as FieldCalendar,
|
|
363
|
+
ze as FieldCheckbox,
|
|
364
|
+
Ie as FieldClientSelectInput,
|
|
365
|
+
Me as FieldInput,
|
|
366
|
+
Te as FieldLabelWithAsterisk,
|
|
367
|
+
Se as FieldProfileSelectInput,
|
|
368
|
+
Fe as FieldSaleSelectInput,
|
|
369
|
+
He as FieldSelect,
|
|
370
|
+
_e as FieldSwitch,
|
|
371
|
+
Le as FieldTextarea,
|
|
372
|
+
xe as HoverContent,
|
|
373
|
+
be as IconBadge,
|
|
374
|
+
je as Image,
|
|
375
|
+
Ae as InfluencerSelectInput,
|
|
376
|
+
De as InstagramIcon,
|
|
377
|
+
$e as LinkedInIcon,
|
|
378
|
+
me as List,
|
|
379
|
+
he as ListRow,
|
|
380
|
+
ue as NotFoundCard,
|
|
381
|
+
Pe as PageHeader,
|
|
382
|
+
Ee as PageHeaderActions,
|
|
330
383
|
Be as PageHeaderContent,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
Je as
|
|
384
|
+
Re as PageHeaderDescription,
|
|
385
|
+
qe as PageHeaderTitle,
|
|
386
|
+
Ke as PinterestIcon,
|
|
387
|
+
Oe as ProfileSelectInput,
|
|
388
|
+
Ve as SaleSelectInput,
|
|
389
|
+
fe as SpeedDialButton,
|
|
390
|
+
pe as TableSkeleton,
|
|
391
|
+
Xe as TikTokIcon,
|
|
392
|
+
ye as TwitterIcon,
|
|
393
|
+
Je as XIcon,
|
|
394
|
+
Ye as YoutubeIcon
|
|
341
395
|
};
|
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.DNSli53G.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/content.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
9
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
9
10
|
startDate?: string;
|
|
10
11
|
endDate?: string;
|
|
11
12
|
recruitments?: RecruitmentInterface[];
|
package/dist/events.js
CHANGED
package/dist/invoice.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
9
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
9
10
|
startDate?: string;
|
|
10
11
|
endDate?: string;
|
|
11
12
|
recruitments?: RecruitmentInterface[];
|
package/dist/pages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as i, c as t, B as m } from "./chuncks/switch.BF6I8Lqo.js";
|
|
2
2
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import { useNavigate as d } from "react-router-dom";
|
package/dist/payment.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
9
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
9
10
|
startDate?: string;
|
|
10
11
|
endDate?: string;
|
|
11
12
|
recruitments?: RecruitmentInterface[];
|
package/dist/recruitment.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
9
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
9
10
|
startDate?: string;
|
|
10
11
|
endDate?: string;
|
|
11
12
|
recruitments?: RecruitmentInterface[];
|
package/dist/sale.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "script" | "production" | "posting" | "analytics" | "finished" | "onHold" | "cancelled" | "inProgress" | "archived";
|
|
9
|
+
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
9
10
|
startDate?: string;
|
|
10
11
|
endDate?: string;
|
|
11
12
|
recruitments?: RecruitmentInterface[];
|