@grapadigital/shared-app-modules 0.0.89 → 0.0.91
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/dropdown-menu.css +1 -0
- package/dist/chuncks/{youtube-icon.component.BRqHa946.js → _influencer-select-input.component.BI2DbNgv.js} +244 -386
- package/dist/chuncks/{card.Bockr0Tv.js → card.DrkOjowB.js} +1 -1
- package/dist/chuncks/{timeline.DfIC0519.js → dropdown-menu.BlrUdWMu.js} +4705 -3801
- package/dist/chuncks/format.util.DlLpUYvY.js +85 -0
- package/dist/chuncks/values.constant.DO4JqXro.js +25 -0
- package/dist/chuncks/youtube-icon.component.R7s6jY4w.js +145 -0
- package/dist/components.js +39 -38
- package/dist/constants.js +16 -32
- package/dist/events.js +5 -5
- package/dist/pages.js +1 -1
- package/dist/shadcn.d.ts +40 -0
- package/dist/shadcn.js +634 -620
- package/dist/utils.d.ts +24 -0
- package/dist/utils.js +16 -65
- package/package.json +2 -1
- package/dist/assets/timeline.css +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { B as a, C as c, a as i } from "./values.constant.DO4JqXro.js";
|
|
2
|
+
import "./dropdown-menu.BlrUdWMu.js";
|
|
3
|
+
import "./_influencer-select-input.component.BI2DbNgv.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
|
+
import "date-fns";
|
|
7
|
+
function n(r) {
|
|
8
|
+
return !isNaN(Number(r));
|
|
9
|
+
}
|
|
10
|
+
function d(r) {
|
|
11
|
+
return typeof r != "string" || !r ? !1 : r in i;
|
|
12
|
+
}
|
|
13
|
+
function g(r) {
|
|
14
|
+
return typeof r != "string" || !r ? !1 : r in c;
|
|
15
|
+
}
|
|
16
|
+
function $(r) {
|
|
17
|
+
return typeof r != "string" || !r ? !1 : r in a;
|
|
18
|
+
}
|
|
19
|
+
function V(r) {
|
|
20
|
+
const t = r.replace(/[^0-9]/g, "");
|
|
21
|
+
return Number(t) / 100;
|
|
22
|
+
}
|
|
23
|
+
function N(r) {
|
|
24
|
+
return r.toLocaleString("pt-BR", {
|
|
25
|
+
style: "currency",
|
|
26
|
+
currency: "BRL"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const y = (r) => {
|
|
30
|
+
const t = n(r) ? r : Number(r);
|
|
31
|
+
return `${parseInt(String(t * 100))}%`;
|
|
32
|
+
}, D = (r) => {
|
|
33
|
+
const t = +String(r).replace("%", "");
|
|
34
|
+
if (!n(t)) return !1;
|
|
35
|
+
const e = t / 100;
|
|
36
|
+
return +String(e).split(".")[0] >= 1 ? 1 : e;
|
|
37
|
+
};
|
|
38
|
+
function S(r) {
|
|
39
|
+
return r.replace(/\D/g, "").replace(/^(\d{3})(\d{3})(\d{3})(\d{2})$/, "$1.$2.$3-$4");
|
|
40
|
+
}
|
|
41
|
+
function C(r) {
|
|
42
|
+
return r.replace(/\D/g, "").replace(/^(\d{2})(\d{3})(\d{3})(\d{1})$/, "$1.$2.$3-$4");
|
|
43
|
+
}
|
|
44
|
+
function b(r) {
|
|
45
|
+
return r.replace(/\D/g, "").replace(
|
|
46
|
+
/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})$/,
|
|
47
|
+
"$1.$2.$3/$4-$5"
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function F(r) {
|
|
51
|
+
return r.replace(/\D/g, "").replace(/^(\d{5})(\d{3})$/, "$1-$2");
|
|
52
|
+
}
|
|
53
|
+
function P(r) {
|
|
54
|
+
return r.replace(/\D/g, "");
|
|
55
|
+
}
|
|
56
|
+
const k = (r) => new Intl.NumberFormat("pt-BR", {
|
|
57
|
+
style: "decimal",
|
|
58
|
+
notation: "compact",
|
|
59
|
+
compactDisplay: "short",
|
|
60
|
+
minimumFractionDigits: 0,
|
|
61
|
+
maximumFractionDigits: 3
|
|
62
|
+
}).format(r), B = (r) => new Intl.NumberFormat("pt-BR", {
|
|
63
|
+
style: "percent",
|
|
64
|
+
notation: "compact",
|
|
65
|
+
compactDisplay: "short",
|
|
66
|
+
minimumFractionDigits: 0,
|
|
67
|
+
maximumFractionDigits: 2
|
|
68
|
+
}).format(r);
|
|
69
|
+
export {
|
|
70
|
+
B as a,
|
|
71
|
+
N as b,
|
|
72
|
+
y as c,
|
|
73
|
+
S as d,
|
|
74
|
+
C as e,
|
|
75
|
+
k as f,
|
|
76
|
+
F as g,
|
|
77
|
+
D as h,
|
|
78
|
+
$ as i,
|
|
79
|
+
g as j,
|
|
80
|
+
n as k,
|
|
81
|
+
d as l,
|
|
82
|
+
b as m,
|
|
83
|
+
V as p,
|
|
84
|
+
P as u
|
|
85
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
instagram: "Instagram",
|
|
3
|
+
tiktok: "TikTok",
|
|
4
|
+
youtube: "YouTube",
|
|
5
|
+
linkedin: "LinkedIn",
|
|
6
|
+
pinterest: "Pinterest"
|
|
7
|
+
}, a = {
|
|
8
|
+
agency: "Agência",
|
|
9
|
+
brand: "Marca"
|
|
10
|
+
}, i = {
|
|
11
|
+
enterprise: "Empresa",
|
|
12
|
+
artistic: "Artística"
|
|
13
|
+
}, e = {
|
|
14
|
+
instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
|
|
15
|
+
tiktok: "bg-black",
|
|
16
|
+
youtube: "bg-[#ff0033]",
|
|
17
|
+
linkedin: "bg-[#0a66c2]",
|
|
18
|
+
pinterest: "bg-[#e60023]"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
i as B,
|
|
22
|
+
a as C,
|
|
23
|
+
e as S,
|
|
24
|
+
t as a
|
|
25
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
function a({
|
|
3
|
+
size: t = 24,
|
|
4
|
+
color: o = "currentColor",
|
|
5
|
+
...e
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ r(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
width: t,
|
|
12
|
+
height: t,
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: o,
|
|
16
|
+
strokeWidth: "2",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
className: "lucide lucide-instagram-icon lucide-instagram",
|
|
20
|
+
...e,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ n("rect", { width: "20", height: "20", x: "2", y: "2", rx: "5", ry: "5" }),
|
|
23
|
+
/* @__PURE__ */ n("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
|
|
24
|
+
/* @__PURE__ */ n("line", { x1: "17.5", x2: "17.51", y1: "6.5", y2: "6.5" })
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function s({
|
|
30
|
+
size: t = 24,
|
|
31
|
+
color: o = "currentColor",
|
|
32
|
+
...e
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ r(
|
|
35
|
+
"svg",
|
|
36
|
+
{
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
width: t,
|
|
39
|
+
height: t,
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
fill: "none",
|
|
42
|
+
stroke: o,
|
|
43
|
+
strokeWidth: "2",
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round",
|
|
46
|
+
className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-linkedin",
|
|
47
|
+
...e,
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ n("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
50
|
+
/* @__PURE__ */ n("path", { d: "M8 11v5" }),
|
|
51
|
+
/* @__PURE__ */ n("path", { d: "M8 8v.01" }),
|
|
52
|
+
/* @__PURE__ */ n("path", { d: "M12 16v-5" }),
|
|
53
|
+
/* @__PURE__ */ n("path", { d: "M16 16v-3a2 2 0 1 0 -4 0" }),
|
|
54
|
+
/* @__PURE__ */ n("path", { d: "M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10" })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
function l({
|
|
60
|
+
size: t = 24,
|
|
61
|
+
color: o = "currentColor",
|
|
62
|
+
...e
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ r(
|
|
65
|
+
"svg",
|
|
66
|
+
{
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
+
width: t,
|
|
69
|
+
height: t,
|
|
70
|
+
viewBox: "0 0 24 24",
|
|
71
|
+
fill: "none",
|
|
72
|
+
stroke: o,
|
|
73
|
+
strokeWidth: "2",
|
|
74
|
+
strokeLinecap: "round",
|
|
75
|
+
strokeLinejoin: "round",
|
|
76
|
+
className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-pinterest",
|
|
77
|
+
...e,
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ n("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
80
|
+
/* @__PURE__ */ n("path", { d: "M8 20l4 -9" }),
|
|
81
|
+
/* @__PURE__ */ n("path", { d: "M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7" }),
|
|
82
|
+
/* @__PURE__ */ n("path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function h({
|
|
88
|
+
size: t = 24,
|
|
89
|
+
color: o = "transparent",
|
|
90
|
+
...e
|
|
91
|
+
}) {
|
|
92
|
+
return /* @__PURE__ */ r(
|
|
93
|
+
"svg",
|
|
94
|
+
{
|
|
95
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
96
|
+
width: t,
|
|
97
|
+
height: t,
|
|
98
|
+
viewBox: "0 0 24 24",
|
|
99
|
+
fill: o,
|
|
100
|
+
stroke: "currentColor",
|
|
101
|
+
strokeWidth: "2",
|
|
102
|
+
strokeLinecap: "round",
|
|
103
|
+
strokeLinejoin: "round",
|
|
104
|
+
className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-tiktok",
|
|
105
|
+
...e,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ n("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
108
|
+
/* @__PURE__ */ n("path", { d: "M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917" })
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
function c({
|
|
114
|
+
size: t = 24,
|
|
115
|
+
color: o = "currentColor",
|
|
116
|
+
...e
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ r(
|
|
119
|
+
"svg",
|
|
120
|
+
{
|
|
121
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
122
|
+
width: t,
|
|
123
|
+
height: t,
|
|
124
|
+
viewBox: "0 0 24 24",
|
|
125
|
+
fill: "none",
|
|
126
|
+
stroke: o,
|
|
127
|
+
strokeWidth: "2",
|
|
128
|
+
strokeLinecap: "round",
|
|
129
|
+
strokeLinejoin: "round",
|
|
130
|
+
className: "lucide lucide-youtube-icon lucide-youtube",
|
|
131
|
+
...e,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ n("path", { d: "M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17" }),
|
|
134
|
+
/* @__PURE__ */ n("path", { d: "m10 15 5-3-5-3z" })
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
a as I,
|
|
141
|
+
s as L,
|
|
142
|
+
l as P,
|
|
143
|
+
h as T,
|
|
144
|
+
c as Y
|
|
145
|
+
};
|
package/dist/components.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { a as g, c as s, B as M, H as p, b as u, d as y } from "./chuncks/
|
|
2
|
-
import {
|
|
3
|
-
import { C as ie,
|
|
4
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { a as g, c as s, B as M, H as p, b as u, d as y } from "./chuncks/dropdown-menu.BlrUdWMu.js";
|
|
2
|
+
import { L as H } from "./chuncks/_influencer-select-input.component.BI2DbNgv.js";
|
|
3
|
+
import { C as ie, e as le, I as se, f as ne, P as oe, a as de, b as ce, c as ge, d as xe } from "./chuncks/_influencer-select-input.component.BI2DbNgv.js";
|
|
4
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
|
-
import { C as w, a as k } from "./chuncks/card.
|
|
6
|
+
import { C as w, a as k } from "./chuncks/card.DrkOjowB.js";
|
|
7
7
|
import { parseISO as h, differenceInCalendarDays as L, format as _ } from "date-fns";
|
|
8
|
+
import { I as me, L as he, P as fe, T as pe, Y as ue } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
|
|
8
9
|
const j = [
|
|
9
10
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
11
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
11
12
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
12
|
-
],
|
|
13
|
-
const
|
|
13
|
+
], P = g("circle-alert", j);
|
|
14
|
+
const T = [
|
|
14
15
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
15
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" }]
|
|
16
|
-
],
|
|
17
|
-
const
|
|
17
|
+
], A = g("copy", T);
|
|
18
|
+
const F = [
|
|
18
19
|
[
|
|
19
20
|
"path",
|
|
20
21
|
{
|
|
@@ -26,7 +27,7 @@ const P = [
|
|
|
26
27
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
27
28
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
28
29
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
29
|
-
], $ = g("file-text",
|
|
30
|
+
], $ = g("file-text", F);
|
|
30
31
|
const D = [
|
|
31
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" }],
|
|
32
33
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
@@ -51,13 +52,13 @@ function K({
|
|
|
51
52
|
onRetry: r,
|
|
52
53
|
tip: i,
|
|
53
54
|
className: l,
|
|
54
|
-
...
|
|
55
|
+
...d
|
|
55
56
|
}) {
|
|
56
|
-
return /* @__PURE__ */ e(w, { className: s(l), ...
|
|
57
|
+
return /* @__PURE__ */ e(w, { className: s(l), ...d, children: /* @__PURE__ */ o(k, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
57
58
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
58
59
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
59
60
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
|
|
60
|
-
r && /* @__PURE__ */
|
|
61
|
+
r && /* @__PURE__ */ o(M, { onClick: r, variant: "outline", className: "mt-6", children: [
|
|
61
62
|
/* @__PURE__ */ e(S, {}),
|
|
62
63
|
"Tentar novamente"
|
|
63
64
|
] }),
|
|
@@ -89,11 +90,11 @@ function U({
|
|
|
89
90
|
className: r,
|
|
90
91
|
openDelay: i = 0,
|
|
91
92
|
closeDelay: l = 0,
|
|
92
|
-
children:
|
|
93
|
+
children: d,
|
|
93
94
|
...x
|
|
94
95
|
}) {
|
|
95
|
-
return /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ e(u, { asChild: n, children:
|
|
96
|
+
return /* @__PURE__ */ o(p, { openDelay: i, closeDelay: l, ...x, children: [
|
|
97
|
+
/* @__PURE__ */ e(u, { asChild: n, children: d }),
|
|
97
98
|
/* @__PURE__ */ e(y, { align: t, className: r, children: a })
|
|
98
99
|
] });
|
|
99
100
|
}
|
|
@@ -158,8 +159,8 @@ function X({
|
|
|
158
159
|
icon: r,
|
|
159
160
|
filled: i
|
|
160
161
|
}) {
|
|
161
|
-
const l = i ? V[t] : R[t],
|
|
162
|
-
return /* @__PURE__ */ e("div", { className: s("w-fit p-2 rounded-lg", l?.bg, n), children: /* @__PURE__ */ e(r, { className: s(
|
|
162
|
+
const l = i ? V[t] : R[t], d = a ? f[a] : f.md;
|
|
163
|
+
return /* @__PURE__ */ e("div", { className: s("w-fit p-2 rounded-lg", l?.bg, n), children: /* @__PURE__ */ e(r, { className: s(d, l?.text) }) });
|
|
163
164
|
}
|
|
164
165
|
function Z({ className: a, ...t }) {
|
|
165
166
|
return /* @__PURE__ */ e("div", { className: s("divide-y", a), ...t });
|
|
@@ -171,7 +172,7 @@ function ee({
|
|
|
171
172
|
highlight: r = !1,
|
|
172
173
|
negative: i = !1,
|
|
173
174
|
positive: l = !1,
|
|
174
|
-
isPercentage:
|
|
175
|
+
isPercentage: d = !1,
|
|
175
176
|
isDate: x = !1,
|
|
176
177
|
isText: N = !1,
|
|
177
178
|
isInvoiced: v = !1,
|
|
@@ -184,9 +185,9 @@ function ee({
|
|
|
184
185
|
const I = h(t), b = L(I, /* @__PURE__ */ new Date());
|
|
185
186
|
b > 15 ? c = "bg-yellow-100 font-bold" : b > 7 ? c = "bg-yellow-300 font-bold" : b >= 0 ? c = "bg-red-300 font-bold" : c = "bg-red-500 text-white font-bold";
|
|
186
187
|
} else r && (c = "bg-[#ffe0b2] font-bold");
|
|
187
|
-
return /* @__PURE__ */ e("div", { className: s("px-2 py-1 text-sm", c), children: /* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */ e(u, { children: /* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ e("div", { className: s("px-2 py-1 text-sm", c), children: /* @__PURE__ */ o(p, { openDelay: 0, closeDelay: 0, children: [
|
|
189
|
+
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ o("div", { className: "flex justify-between", children: [
|
|
190
|
+
/* @__PURE__ */ o(
|
|
190
191
|
"span",
|
|
191
192
|
{
|
|
192
193
|
className: s(
|
|
@@ -196,11 +197,11 @@ function ee({
|
|
|
196
197
|
children: [
|
|
197
198
|
a,
|
|
198
199
|
" ",
|
|
199
|
-
/* @__PURE__ */ e(
|
|
200
|
+
/* @__PURE__ */ e(P, { className: "size-3.5" })
|
|
200
201
|
]
|
|
201
202
|
}
|
|
202
203
|
),
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ o(
|
|
204
205
|
"span",
|
|
205
206
|
{
|
|
206
207
|
className: s(
|
|
@@ -208,8 +209,8 @@ function ee({
|
|
|
208
209
|
i ? "text-red-600" : l ? "text-green-600" : ""
|
|
209
210
|
),
|
|
210
211
|
children: [
|
|
211
|
-
|
|
212
|
-
C && m && /* @__PURE__ */ e(
|
|
212
|
+
d && typeof t == "number" ? `${t.toFixed(2)}%` : x && typeof t == "string" ? _(h(t), "dd/MM/yyyy") : N && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
|
|
213
|
+
C && m && /* @__PURE__ */ e(A, { size: 15, onClick: () => m(t) })
|
|
213
214
|
]
|
|
214
215
|
}
|
|
215
216
|
)
|
|
@@ -219,7 +220,7 @@ function ee({
|
|
|
219
220
|
{
|
|
220
221
|
align: "start",
|
|
221
222
|
className: s(!z && "pointer-events-none"),
|
|
222
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
223
224
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
224
225
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: n })
|
|
225
226
|
] })
|
|
@@ -235,7 +236,7 @@ function te({
|
|
|
235
236
|
className: i,
|
|
236
237
|
...l
|
|
237
238
|
}) {
|
|
238
|
-
return /* @__PURE__ */ e(w, { className: s(i), ...l, children: /* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ e(w, { className: s(i), ...l, children: /* @__PURE__ */ o(k, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
239
240
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
240
241
|
a,
|
|
241
242
|
{
|
|
@@ -257,17 +258,17 @@ export {
|
|
|
257
258
|
X as IconBadge,
|
|
258
259
|
se as Image,
|
|
259
260
|
ne as InfluencerSelectInput,
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
me as InstagramIcon,
|
|
262
|
+
he as LinkedInIcon,
|
|
262
263
|
Z as List,
|
|
263
264
|
ee as ListRow,
|
|
264
265
|
te as NotFoundCard,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
266
|
+
oe as PageHeader,
|
|
267
|
+
de as PageHeaderActions,
|
|
268
|
+
ce as PageHeaderContent,
|
|
269
|
+
ge as PageHeaderDescription,
|
|
270
|
+
xe as PageHeaderTitle,
|
|
271
|
+
fe as PinterestIcon,
|
|
272
|
+
pe as TikTokIcon,
|
|
273
|
+
ue as YoutubeIcon
|
|
273
274
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
import "./chuncks/
|
|
2
|
-
import
|
|
1
|
+
import { B as L, C as N, S as d, a as u } from "./chuncks/values.constant.DO4JqXro.js";
|
|
2
|
+
import "./chuncks/dropdown-menu.BlrUdWMu.js";
|
|
3
|
+
import "./chuncks/_influencer-select-input.component.BI2DbNgv.js";
|
|
3
4
|
import "react/jsx-runtime";
|
|
4
5
|
import "react";
|
|
5
6
|
import "date-fns";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
tiktok: "TikTok",
|
|
9
|
-
youtube: "YouTube",
|
|
10
|
-
linkedin: "LinkedIn",
|
|
11
|
-
pinterest: "Pinterest"
|
|
12
|
-
}, p = {
|
|
13
|
-
agency: "Agência",
|
|
14
|
-
brand: "Marca"
|
|
15
|
-
}, d = {
|
|
16
|
-
enterprise: "Empresa",
|
|
17
|
-
artistic: "Artística"
|
|
18
|
-
}, u = {
|
|
19
|
-
instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
|
|
20
|
-
tiktok: "bg-black",
|
|
21
|
-
youtube: "bg-[#ff0033]",
|
|
22
|
-
linkedin: "bg-[#0a66c2]",
|
|
23
|
-
pinterest: "bg-[#e60023]"
|
|
24
|
-
}, O = {
|
|
7
|
+
import { P as o, L as a, Y as t, T as e, I as n } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
|
|
8
|
+
const A = "Não há dados para atualizar.", S = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", T = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", c = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", I = {
|
|
25
9
|
instagram: n,
|
|
26
10
|
tiktok: e,
|
|
27
|
-
youtube:
|
|
28
|
-
linkedin:
|
|
11
|
+
youtube: t,
|
|
12
|
+
linkedin: a,
|
|
29
13
|
pinterest: o
|
|
30
14
|
};
|
|
31
15
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
16
|
+
L as BUSINESS_UNIT_VALUES,
|
|
17
|
+
N as CLIENT_TYPE_VALUES,
|
|
18
|
+
c as ERROR_MESSAGE,
|
|
19
|
+
S as FILTER_ALREADY_APPLIED_MESSAGE,
|
|
20
|
+
A as NO_DATA_TO_UPDATE,
|
|
21
|
+
T as NO_DATA_TO_UPDATE_MESSAGE,
|
|
22
|
+
d as SOCIAL_NETWORK_COLOR_VALUES,
|
|
23
|
+
I as SOCIAL_NETWORK_ICON_COMPONENTS,
|
|
24
|
+
u as SOCIAL_NETWORK_VALUES
|
|
41
25
|
};
|
package/dist/events.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as o } from "./chuncks/format.util.DlLpUYvY.js";
|
|
2
2
|
const i = (t, a) => {
|
|
3
|
-
const e = t.target.value, n =
|
|
3
|
+
const e = t.target.value, n = o(e);
|
|
4
4
|
n !== !1 && a(n);
|
|
5
5
|
}, f = (t, a) => {
|
|
6
6
|
const e = t.target, n = e.value, c = e.selectionStart, r = e.selectionEnd;
|
|
7
7
|
if (c === r && t.key === "Backspace") {
|
|
8
|
-
const u = n.slice(0, -2),
|
|
9
|
-
if (
|
|
10
|
-
a(
|
|
8
|
+
const u = n.slice(0, -2), s = o(u);
|
|
9
|
+
if (s === !1) return;
|
|
10
|
+
a(s);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
export {
|
package/dist/pages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as i, c as a, B as m } from "./chuncks/
|
|
1
|
+
import { a as i, c as a, B as m } from "./chuncks/dropdown-menu.BlrUdWMu.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/shadcn.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
19
19
|
import { DialogTitleProps } from '@radix-ui/react-dialog';
|
|
20
20
|
import { DialogTriggerProps } from '@radix-ui/react-dialog';
|
|
21
21
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
22
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
22
23
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
23
24
|
import { JSX } from 'react/jsx-runtime';
|
|
24
25
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -301,6 +302,45 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogT
|
|
|
301
302
|
|
|
302
303
|
export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
303
304
|
|
|
305
|
+
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
306
|
+
|
|
307
|
+
export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
308
|
+
|
|
309
|
+
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
310
|
+
|
|
311
|
+
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
312
|
+
|
|
313
|
+
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
314
|
+
inset?: boolean;
|
|
315
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
316
|
+
|
|
317
|
+
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
318
|
+
inset?: boolean;
|
|
319
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
320
|
+
|
|
321
|
+
export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
322
|
+
|
|
323
|
+
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
324
|
+
|
|
325
|
+
export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
326
|
+
|
|
327
|
+
export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
328
|
+
|
|
329
|
+
export declare const DropdownMenuShortcut: {
|
|
330
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
331
|
+
displayName: string;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
335
|
+
|
|
336
|
+
export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
337
|
+
|
|
338
|
+
export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
339
|
+
inset?: boolean;
|
|
340
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
341
|
+
|
|
342
|
+
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
343
|
+
|
|
304
344
|
export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
|
|
305
345
|
|
|
306
346
|
export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|