@grapadigital/shared-app-modules 0.0.130 → 0.0.132
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/chuncks/{format.util.DUEefj5C.js → format.util.Aq86TtlT.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.BpgjzXcR.js → youtube-icon.component.DYRlq1QT.js} +143 -112
- package/dist/components.d.ts +4 -0
- package/dist/components.js +105 -80
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/chuncks/{youtube-icon.component.BpgjzXcR.js → youtube-icon.component.DYRlq1QT.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as mA, c as I, L as fA, aY as hA, B as q, ab as O, ad as T, ae as F, af as b, aZ as G, ag as U, ah as z, a_ as Y, a$ as pA,
|
|
2
|
+
import { a as mA, c as I, L as fA, aY as hA, B as q, ab as O, ad as T, ae as F, af as b, aZ as G, ag as U, ah as z, a_ as Y, a$ as pA, I as gA, f as wA, i as bA, h as BA, j as PA, l as yA, aX as CA, T as vA } from "./switch.BgkPsd63.js";
|
|
3
3
|
import * as IA from "react";
|
|
4
4
|
import { forwardRef as B, useState as y, useEffect as J } from "react";
|
|
5
|
-
import { P as
|
|
5
|
+
import { P as j, k as L, l as k, q as $, r as H, s as Q, t as SA, F as E, C as NA, b as D, c as R, h as EA } from "./popover.B3Gr9au_.js";
|
|
6
6
|
import "date-fns";
|
|
7
7
|
import { a as W, u as Z } from "./use-shared-app-modules.hook.BneFRNyA.js";
|
|
8
8
|
import "./shared-app-modules.provider.DRJ7n4Cj.js";
|
|
@@ -35,7 +35,7 @@ const MA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
|
35
35
|
MA.displayName = "PageHeaderActions";
|
|
36
36
|
const qA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e("div", { ref: t, className: I("space-y-1", A), ...a }));
|
|
37
37
|
qA.displayName = "PageHeaderContent";
|
|
38
|
-
const
|
|
38
|
+
const jA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
41
|
ref: t,
|
|
@@ -43,8 +43,8 @@ const LA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
|
43
43
|
...a
|
|
44
44
|
}
|
|
45
45
|
));
|
|
46
|
-
|
|
47
|
-
const
|
|
46
|
+
jA.displayName = "PageHeaderDescription";
|
|
47
|
+
const LA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
ref: t,
|
|
@@ -52,7 +52,7 @@ const jA = B(({ className: A, ...a }, t) => /* @__PURE__ */ e(
|
|
|
52
52
|
...a
|
|
53
53
|
}
|
|
54
54
|
));
|
|
55
|
-
|
|
55
|
+
LA.displayName = "PageHeaderTitle";
|
|
56
56
|
const sA = IA.forwardRef(({ asterisk: A, children: a, ...t }, n) => /* @__PURE__ */ e(fA, { ref: n, ...t, children: /* @__PURE__ */ o("span", { className: "inline-flex gap-0.5", children: [
|
|
57
57
|
a,
|
|
58
58
|
" ",
|
|
@@ -78,7 +78,7 @@ function x({
|
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
var AA = {}, eA = {}, _ = { exports: {} }, tA;
|
|
81
|
-
function
|
|
81
|
+
function kA() {
|
|
82
82
|
if (tA) return _.exports;
|
|
83
83
|
tA = 1;
|
|
84
84
|
var A = String, a = function() {
|
|
@@ -87,7 +87,7 @@ function HA() {
|
|
|
87
87
|
return _.exports = a(), _.exports.createColors = a, _.exports;
|
|
88
88
|
}
|
|
89
89
|
var nA;
|
|
90
|
-
function
|
|
90
|
+
function HA() {
|
|
91
91
|
return nA || (nA = 1, (function(A) {
|
|
92
92
|
Object.defineProperty(A, "__esModule", {
|
|
93
93
|
value: !0
|
|
@@ -106,7 +106,7 @@ function QA() {
|
|
|
106
106
|
return l;
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
const t = /* @__PURE__ */ n(/* @__PURE__ */
|
|
109
|
+
const t = /* @__PURE__ */ n(/* @__PURE__ */ kA());
|
|
110
110
|
function n(s) {
|
|
111
111
|
return s && s.__esModule ? s : {
|
|
112
112
|
default: s
|
|
@@ -148,7 +148,7 @@ function QA() {
|
|
|
148
148
|
})(eA)), eA;
|
|
149
149
|
}
|
|
150
150
|
var rA;
|
|
151
|
-
function
|
|
151
|
+
function QA() {
|
|
152
152
|
return rA || (rA = 1, (function(A) {
|
|
153
153
|
Object.defineProperty(A, "__esModule", {
|
|
154
154
|
value: !0
|
|
@@ -158,7 +158,7 @@ function kA() {
|
|
|
158
158
|
return i;
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
|
-
const a = /* @__PURE__ */ t(
|
|
161
|
+
const a = /* @__PURE__ */ t(HA());
|
|
162
162
|
function t(r) {
|
|
163
163
|
return r && r.__esModule ? r : {
|
|
164
164
|
default: r
|
|
@@ -504,7 +504,7 @@ var aA, oA;
|
|
|
504
504
|
function OA() {
|
|
505
505
|
if (oA) return aA;
|
|
506
506
|
oA = 1;
|
|
507
|
-
let A =
|
|
507
|
+
let A = QA();
|
|
508
508
|
return aA = (A.__esModule ? A : { default: A }).default, aA;
|
|
509
509
|
}
|
|
510
510
|
OA();
|
|
@@ -575,8 +575,8 @@ const zA = B(
|
|
|
575
575
|
const d = w?.find((P) => P._id === f);
|
|
576
576
|
h(!1), d && (g(d), n(d));
|
|
577
577
|
};
|
|
578
|
-
return /* @__PURE__ */ o(
|
|
579
|
-
/* @__PURE__ */ e(
|
|
578
|
+
return /* @__PURE__ */ o(j, { open: m, onOpenChange: h, children: [
|
|
579
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
580
580
|
q,
|
|
581
581
|
{
|
|
582
582
|
id: i,
|
|
@@ -591,7 +591,7 @@ const zA = B(
|
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
) }),
|
|
594
|
-
/* @__PURE__ */ e(
|
|
594
|
+
/* @__PURE__ */ e(k, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(O, { shouldFilter: !1, children: [
|
|
595
595
|
/* @__PURE__ */ e(
|
|
596
596
|
T,
|
|
597
597
|
{
|
|
@@ -684,8 +684,8 @@ const cA = B(
|
|
|
684
684
|
const P = S?.find((M) => M._id === d);
|
|
685
685
|
c(!1), P && (C(P), n(P));
|
|
686
686
|
};
|
|
687
|
-
return /* @__PURE__ */ o(
|
|
688
|
-
/* @__PURE__ */ e(
|
|
687
|
+
return /* @__PURE__ */ o(j, { open: h, onOpenChange: c, children: [
|
|
688
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
689
689
|
q,
|
|
690
690
|
{
|
|
691
691
|
id: i,
|
|
@@ -700,7 +700,7 @@ const cA = B(
|
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
) }),
|
|
703
|
-
/* @__PURE__ */ e(
|
|
703
|
+
/* @__PURE__ */ e(k, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(O, { shouldFilter: !1, children: [
|
|
704
704
|
/* @__PURE__ */ e(
|
|
705
705
|
T,
|
|
706
706
|
{
|
|
@@ -788,8 +788,8 @@ const VA = B(
|
|
|
788
788
|
const d = w?.find((P) => P._id === f);
|
|
789
789
|
h(!1), d && (g(d), n(d));
|
|
790
790
|
};
|
|
791
|
-
return /* @__PURE__ */ o(
|
|
792
|
-
/* @__PURE__ */ e(
|
|
791
|
+
return /* @__PURE__ */ o(j, { open: m, onOpenChange: h, children: [
|
|
792
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
793
793
|
q,
|
|
794
794
|
{
|
|
795
795
|
id: i,
|
|
@@ -804,7 +804,7 @@ const VA = B(
|
|
|
804
804
|
]
|
|
805
805
|
}
|
|
806
806
|
) }),
|
|
807
|
-
/* @__PURE__ */ e(
|
|
807
|
+
/* @__PURE__ */ e(k, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(O, { shouldFilter: !1, children: [
|
|
808
808
|
/* @__PURE__ */ e(
|
|
809
809
|
T,
|
|
810
810
|
{
|
|
@@ -860,39 +860,42 @@ const dA = {
|
|
|
860
860
|
tiktok: "TikTok",
|
|
861
861
|
youtube: "YouTube",
|
|
862
862
|
linkedin: "LinkedIn",
|
|
863
|
-
pinterest: "Pinterest"
|
|
863
|
+
pinterest: "Pinterest",
|
|
864
|
+
twitter: "Twitter (X)"
|
|
864
865
|
}, XA = {
|
|
865
866
|
agency: "Agência",
|
|
866
867
|
brand: "Marca"
|
|
867
|
-
},
|
|
868
|
+
}, ta = {
|
|
868
869
|
partner: "Perceiros",
|
|
869
870
|
exclusive: "Exclusivos"
|
|
870
871
|
}, KA = {
|
|
871
872
|
enterprise: "Empresa",
|
|
872
873
|
artistic: "Artística"
|
|
873
|
-
},
|
|
874
|
+
}, na = {
|
|
874
875
|
instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
|
|
875
876
|
tiktok: "bg-black",
|
|
876
877
|
youtube: "bg-[#ff0033]",
|
|
877
878
|
linkedin: "bg-[#0a66c2]",
|
|
878
|
-
pinterest: "bg-[#e60023]"
|
|
879
|
+
pinterest: "bg-[#e60023]",
|
|
880
|
+
twitter: "bg-black"
|
|
879
881
|
}, _A = {
|
|
880
882
|
instagram: Fe,
|
|
881
883
|
tiktok: ze,
|
|
882
|
-
youtube:
|
|
884
|
+
youtube: Je,
|
|
883
885
|
linkedin: Ge,
|
|
884
|
-
pinterest: Ue
|
|
886
|
+
pinterest: Ue,
|
|
887
|
+
twitter: Ye
|
|
885
888
|
};
|
|
886
|
-
function
|
|
889
|
+
function ra(A) {
|
|
887
890
|
return !isNaN(Number(A));
|
|
888
891
|
}
|
|
889
892
|
function iA(A) {
|
|
890
893
|
return typeof A != "string" || !A ? !1 : A in dA;
|
|
891
894
|
}
|
|
892
|
-
function
|
|
895
|
+
function oa(A) {
|
|
893
896
|
return typeof A != "string" || !A ? !1 : A in XA;
|
|
894
897
|
}
|
|
895
|
-
function
|
|
898
|
+
function ia(A) {
|
|
896
899
|
return typeof A != "string" || !A ? !1 : A in KA;
|
|
897
900
|
}
|
|
898
901
|
const $A = async ({
|
|
@@ -930,8 +933,8 @@ const lA = B(
|
|
|
930
933
|
}, f = iA(
|
|
931
934
|
c?.socialnetwork
|
|
932
935
|
) ? dA[c.socialnetwork] : "";
|
|
933
|
-
return /* @__PURE__ */ o(
|
|
934
|
-
/* @__PURE__ */ e(
|
|
936
|
+
return /* @__PURE__ */ o(j, { open: m, onOpenChange: h, children: [
|
|
937
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
935
938
|
q,
|
|
936
939
|
{
|
|
937
940
|
id: i,
|
|
@@ -949,7 +952,7 @@ const lA = B(
|
|
|
949
952
|
]
|
|
950
953
|
}
|
|
951
954
|
) }),
|
|
952
|
-
/* @__PURE__ */ e(
|
|
955
|
+
/* @__PURE__ */ e(k, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(O, { shouldFilter: !1, children: [
|
|
953
956
|
/* @__PURE__ */ e(
|
|
954
957
|
T,
|
|
955
958
|
{
|
|
@@ -1038,8 +1041,8 @@ const uA = B(
|
|
|
1038
1041
|
const d = w?.find((P) => P._id === f);
|
|
1039
1042
|
h(!1), d && (g(d), n(d));
|
|
1040
1043
|
};
|
|
1041
|
-
return /* @__PURE__ */ o(
|
|
1042
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
return /* @__PURE__ */ o(j, { open: m, onOpenChange: h, children: [
|
|
1045
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1043
1046
|
q,
|
|
1044
1047
|
{
|
|
1045
1048
|
id: i,
|
|
@@ -1054,7 +1057,7 @@ const uA = B(
|
|
|
1054
1057
|
]
|
|
1055
1058
|
}
|
|
1056
1059
|
) }),
|
|
1057
|
-
/* @__PURE__ */ e(
|
|
1060
|
+
/* @__PURE__ */ e(k, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ o(O, { shouldFilter: !1, children: [
|
|
1058
1061
|
/* @__PURE__ */ e(
|
|
1059
1062
|
T,
|
|
1060
1063
|
{
|
|
@@ -1338,24 +1341,24 @@ const te = {
|
|
|
1338
1341
|
return a?.unit === "week" ? t + "ª" : t + "º";
|
|
1339
1342
|
}, we = {
|
|
1340
1343
|
ordinalNumber: ge,
|
|
1341
|
-
era:
|
|
1344
|
+
era: H({
|
|
1342
1345
|
values: le,
|
|
1343
1346
|
defaultWidth: "wide"
|
|
1344
1347
|
}),
|
|
1345
|
-
quarter:
|
|
1348
|
+
quarter: H({
|
|
1346
1349
|
values: ue,
|
|
1347
1350
|
defaultWidth: "wide",
|
|
1348
1351
|
argumentCallback: (A) => A - 1
|
|
1349
1352
|
}),
|
|
1350
|
-
month:
|
|
1353
|
+
month: H({
|
|
1351
1354
|
values: me,
|
|
1352
1355
|
defaultWidth: "wide"
|
|
1353
1356
|
}),
|
|
1354
|
-
day:
|
|
1357
|
+
day: H({
|
|
1355
1358
|
values: fe,
|
|
1356
1359
|
defaultWidth: "wide"
|
|
1357
1360
|
}),
|
|
1358
|
-
dayPeriod:
|
|
1361
|
+
dayPeriod: H({
|
|
1359
1362
|
values: he,
|
|
1360
1363
|
defaultWidth: "wide",
|
|
1361
1364
|
formattingValues: pe,
|
|
@@ -1436,32 +1439,32 @@ const te = {
|
|
|
1436
1439
|
parsePattern: Be,
|
|
1437
1440
|
valueCallback: (A) => parseInt(A, 10)
|
|
1438
1441
|
}),
|
|
1439
|
-
era:
|
|
1442
|
+
era: Q({
|
|
1440
1443
|
matchPatterns: Pe,
|
|
1441
1444
|
defaultMatchWidth: "wide",
|
|
1442
1445
|
parsePatterns: ye,
|
|
1443
1446
|
defaultParseWidth: "any"
|
|
1444
1447
|
}),
|
|
1445
|
-
quarter:
|
|
1448
|
+
quarter: Q({
|
|
1446
1449
|
matchPatterns: Ce,
|
|
1447
1450
|
defaultMatchWidth: "wide",
|
|
1448
1451
|
parsePatterns: ve,
|
|
1449
1452
|
defaultParseWidth: "any",
|
|
1450
1453
|
valueCallback: (A) => A + 1
|
|
1451
1454
|
}),
|
|
1452
|
-
month:
|
|
1455
|
+
month: Q({
|
|
1453
1456
|
matchPatterns: Ie,
|
|
1454
1457
|
defaultMatchWidth: "wide",
|
|
1455
1458
|
parsePatterns: Se,
|
|
1456
1459
|
defaultParseWidth: "any"
|
|
1457
1460
|
}),
|
|
1458
|
-
day:
|
|
1461
|
+
day: Q({
|
|
1459
1462
|
matchPatterns: Ne,
|
|
1460
1463
|
defaultMatchWidth: "wide",
|
|
1461
1464
|
parsePatterns: Ee,
|
|
1462
1465
|
defaultParseWidth: "any"
|
|
1463
1466
|
}),
|
|
1464
|
-
dayPeriod:
|
|
1467
|
+
dayPeriod: Q({
|
|
1465
1468
|
matchPatterns: De,
|
|
1466
1469
|
defaultMatchWidth: "any",
|
|
1467
1470
|
parsePatterns: Re,
|
|
@@ -1495,8 +1498,8 @@ const te = {
|
|
|
1495
1498
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1496
1499
|
), /* @__PURE__ */ o(E, { "data-invalid": u, children: [
|
|
1497
1500
|
A && /* @__PURE__ */ e(x, { asterisk: i, htmlFor: a, children: A }),
|
|
1498
|
-
/* @__PURE__ */ o(
|
|
1499
|
-
/* @__PURE__ */ e(
|
|
1501
|
+
/* @__PURE__ */ o(j, { open: h, onOpenChange: c, children: [
|
|
1502
|
+
/* @__PURE__ */ e(L, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1500
1503
|
q,
|
|
1501
1504
|
{
|
|
1502
1505
|
variant: "outline",
|
|
@@ -1510,7 +1513,7 @@ const te = {
|
|
|
1510
1513
|
]
|
|
1511
1514
|
}
|
|
1512
1515
|
) }),
|
|
1513
|
-
/* @__PURE__ */ e(
|
|
1516
|
+
/* @__PURE__ */ e(k, { className: "w-auto overflow-hidden p-0", align: "start", children: /* @__PURE__ */ e(
|
|
1514
1517
|
NA,
|
|
1515
1518
|
{
|
|
1516
1519
|
mode: "single",
|
|
@@ -1533,7 +1536,7 @@ const te = {
|
|
|
1533
1536
|
}
|
|
1534
1537
|
);
|
|
1535
1538
|
qe.displayName = "FieldCalendar";
|
|
1536
|
-
const
|
|
1539
|
+
const je = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1537
1540
|
const { name: l } = r;
|
|
1538
1541
|
return t && !A && console.warn(
|
|
1539
1542
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
@@ -1552,8 +1555,22 @@ const Le = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1552
1555
|
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1553
1556
|
] });
|
|
1554
1557
|
});
|
|
1555
|
-
|
|
1556
|
-
const
|
|
1558
|
+
je.displayName = "FieldClientSelectInput";
|
|
1559
|
+
const Le = B(
|
|
1560
|
+
({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1561
|
+
const { name: l } = r;
|
|
1562
|
+
return t && !A && console.warn(
|
|
1563
|
+
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1564
|
+
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1565
|
+
A && /* @__PURE__ */ e(x, { htmlFor: l, asterisk: t, children: A }),
|
|
1566
|
+
/* @__PURE__ */ e(gA, { id: l, "aria-invalid": n, ...r, ref: u }),
|
|
1567
|
+
a && /* @__PURE__ */ e(D, { children: a }),
|
|
1568
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1569
|
+
] });
|
|
1570
|
+
}
|
|
1571
|
+
);
|
|
1572
|
+
Le.displayName = "FieldInput";
|
|
1573
|
+
const ke = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1557
1574
|
const { name: l } = r;
|
|
1558
1575
|
return t && !A && console.warn(
|
|
1559
1576
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
@@ -1572,7 +1589,7 @@ const je = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1572
1589
|
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1573
1590
|
] });
|
|
1574
1591
|
});
|
|
1575
|
-
|
|
1592
|
+
ke.displayName = "FieldProfileSelectInput";
|
|
1576
1593
|
const He = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1577
1594
|
const { name: l } = r;
|
|
1578
1595
|
return t && !A && console.warn(
|
|
@@ -1594,47 +1611,6 @@ const He = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...
|
|
|
1594
1611
|
});
|
|
1595
1612
|
He.displayName = "FieldSaleSelectInput";
|
|
1596
1613
|
const Qe = B(
|
|
1597
|
-
({ label: A, description: a, asterisk: t, invalid: n, error: i, value: r, onChange: u, ...l }, s) => {
|
|
1598
|
-
const { name: m } = l;
|
|
1599
|
-
return t && !A && console.warn(
|
|
1600
|
-
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1601
|
-
), /* @__PURE__ */ o(E, { orientation: "horizontal", "data-invalid": n, children: [
|
|
1602
|
-
/* @__PURE__ */ e(
|
|
1603
|
-
gA,
|
|
1604
|
-
{
|
|
1605
|
-
id: m,
|
|
1606
|
-
name: m,
|
|
1607
|
-
checked: r,
|
|
1608
|
-
onCheckedChange: u,
|
|
1609
|
-
"aria-invalid": n,
|
|
1610
|
-
...l,
|
|
1611
|
-
ref: s
|
|
1612
|
-
}
|
|
1613
|
-
),
|
|
1614
|
-
/* @__PURE__ */ o(EA, { children: [
|
|
1615
|
-
A && /* @__PURE__ */ e(x, { htmlFor: m, asterisk: t, children: A }),
|
|
1616
|
-
a && /* @__PURE__ */ e(D, { children: a }),
|
|
1617
|
-
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1618
|
-
] })
|
|
1619
|
-
] });
|
|
1620
|
-
}
|
|
1621
|
-
);
|
|
1622
|
-
Qe.displayName = "FieldSwitch";
|
|
1623
|
-
const ke = B(
|
|
1624
|
-
({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1625
|
-
const { name: l } = r;
|
|
1626
|
-
return t && !A && console.warn(
|
|
1627
|
-
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1628
|
-
), /* @__PURE__ */ o(E, { "data-invalid": n, children: [
|
|
1629
|
-
A && /* @__PURE__ */ e(x, { htmlFor: l, asterisk: t, children: A }),
|
|
1630
|
-
/* @__PURE__ */ e(wA, { id: l, "aria-invalid": n, ...r, ref: u }),
|
|
1631
|
-
a && /* @__PURE__ */ e(D, { children: a }),
|
|
1632
|
-
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1633
|
-
] });
|
|
1634
|
-
}
|
|
1635
|
-
);
|
|
1636
|
-
ke.displayName = "FieldInput";
|
|
1637
|
-
const Oe = B(
|
|
1638
1614
|
({
|
|
1639
1615
|
label: A,
|
|
1640
1616
|
name: a,
|
|
@@ -1652,16 +1628,16 @@ const Oe = B(
|
|
|
1652
1628
|
), /* @__PURE__ */ o(E, { orientation: "vertical", "data-invalid": s, children: [
|
|
1653
1629
|
A && /* @__PURE__ */ e(x, { htmlFor: a, asterisk: i, children: A }),
|
|
1654
1630
|
/* @__PURE__ */ o(
|
|
1655
|
-
|
|
1631
|
+
wA,
|
|
1656
1632
|
{
|
|
1657
1633
|
value: t,
|
|
1658
1634
|
name: a,
|
|
1659
1635
|
onValueChange: r,
|
|
1660
1636
|
...h,
|
|
1661
1637
|
children: [
|
|
1662
|
-
/* @__PURE__ */ e(
|
|
1663
|
-
/* @__PURE__ */ e(
|
|
1664
|
-
|
|
1638
|
+
/* @__PURE__ */ e(bA, { id: a, "aria-invalid": s, ref: c, children: /* @__PURE__ */ e(BA, { placeholder: "Selecionar" }) }),
|
|
1639
|
+
/* @__PURE__ */ e(PA, { children: Object.entries(u).map(([g, C]) => /* @__PURE__ */ e(
|
|
1640
|
+
yA,
|
|
1665
1641
|
{
|
|
1666
1642
|
value: g,
|
|
1667
1643
|
disabled: (l ?? []).includes(g),
|
|
@@ -1676,7 +1652,34 @@ const Oe = B(
|
|
|
1676
1652
|
s && /* @__PURE__ */ e(R, { errors: [m] })
|
|
1677
1653
|
] }))
|
|
1678
1654
|
);
|
|
1679
|
-
|
|
1655
|
+
Qe.displayName = "FieldSelect";
|
|
1656
|
+
const Oe = B(
|
|
1657
|
+
({ label: A, description: a, asterisk: t, invalid: n, error: i, value: r, onChange: u, ...l }, s) => {
|
|
1658
|
+
const { name: m } = l;
|
|
1659
|
+
return t && !A && console.warn(
|
|
1660
|
+
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
1661
|
+
), /* @__PURE__ */ o(E, { orientation: "horizontal", "data-invalid": n, children: [
|
|
1662
|
+
/* @__PURE__ */ e(
|
|
1663
|
+
CA,
|
|
1664
|
+
{
|
|
1665
|
+
id: m,
|
|
1666
|
+
name: m,
|
|
1667
|
+
checked: r,
|
|
1668
|
+
onCheckedChange: u,
|
|
1669
|
+
"aria-invalid": n,
|
|
1670
|
+
...l,
|
|
1671
|
+
ref: s
|
|
1672
|
+
}
|
|
1673
|
+
),
|
|
1674
|
+
/* @__PURE__ */ o(EA, { children: [
|
|
1675
|
+
A && /* @__PURE__ */ e(x, { htmlFor: m, asterisk: t, children: A }),
|
|
1676
|
+
a && /* @__PURE__ */ e(D, { children: a }),
|
|
1677
|
+
n && /* @__PURE__ */ e(R, { errors: [i] })
|
|
1678
|
+
] })
|
|
1679
|
+
] });
|
|
1680
|
+
}
|
|
1681
|
+
);
|
|
1682
|
+
Oe.displayName = "FieldSwitch";
|
|
1680
1683
|
const Te = B(({ label: A, description: a, asterisk: t, invalid: n, error: i, ...r }, u) => {
|
|
1681
1684
|
const { name: l } = r;
|
|
1682
1685
|
return t && !A && console.warn(
|
|
@@ -1804,6 +1807,33 @@ function Ye({
|
|
|
1804
1807
|
size: A = 24,
|
|
1805
1808
|
color: a = "currentColor",
|
|
1806
1809
|
...t
|
|
1810
|
+
}) {
|
|
1811
|
+
return /* @__PURE__ */ o(
|
|
1812
|
+
"svg",
|
|
1813
|
+
{
|
|
1814
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1815
|
+
width: A,
|
|
1816
|
+
height: A,
|
|
1817
|
+
viewBox: "0 0 24 24",
|
|
1818
|
+
fill: "none",
|
|
1819
|
+
stroke: a,
|
|
1820
|
+
"stroke-width": "2",
|
|
1821
|
+
"stroke-linecap": "round",
|
|
1822
|
+
"stroke-linejoin": "round",
|
|
1823
|
+
className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-x",
|
|
1824
|
+
...t,
|
|
1825
|
+
children: [
|
|
1826
|
+
/* @__PURE__ */ e("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
1827
|
+
/* @__PURE__ */ e("path", { d: "M4 4l11.733 16h4.267l-11.733 -16l-4.267 0" }),
|
|
1828
|
+
/* @__PURE__ */ e("path", { d: "M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" })
|
|
1829
|
+
]
|
|
1830
|
+
}
|
|
1831
|
+
);
|
|
1832
|
+
}
|
|
1833
|
+
function Je({
|
|
1834
|
+
size: A = 24,
|
|
1835
|
+
color: a = "currentColor",
|
|
1836
|
+
...t
|
|
1807
1837
|
}) {
|
|
1808
1838
|
return /* @__PURE__ */ o(
|
|
1809
1839
|
"svg",
|
|
@@ -1827,37 +1857,38 @@ function Ye({
|
|
|
1827
1857
|
);
|
|
1828
1858
|
}
|
|
1829
1859
|
export {
|
|
1830
|
-
|
|
1860
|
+
ta as A,
|
|
1831
1861
|
KA as B,
|
|
1832
1862
|
XA as C,
|
|
1833
1863
|
x as F,
|
|
1834
1864
|
FA as I,
|
|
1835
1865
|
Ge as L,
|
|
1836
1866
|
xA as P,
|
|
1837
|
-
|
|
1867
|
+
na as S,
|
|
1838
1868
|
ze as T,
|
|
1839
|
-
Ye as
|
|
1840
|
-
|
|
1841
|
-
|
|
1869
|
+
Ye as X,
|
|
1870
|
+
Je as Y,
|
|
1871
|
+
oa as a,
|
|
1872
|
+
ra as b,
|
|
1842
1873
|
iA as c,
|
|
1843
1874
|
dA as d,
|
|
1844
1875
|
_A as e,
|
|
1845
1876
|
MA as f,
|
|
1846
1877
|
qA as g,
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1878
|
+
jA as h,
|
|
1879
|
+
ia as i,
|
|
1880
|
+
LA as j,
|
|
1850
1881
|
zA as k,
|
|
1851
1882
|
cA as l,
|
|
1852
1883
|
VA as m,
|
|
1853
1884
|
lA as n,
|
|
1854
1885
|
uA as o,
|
|
1855
1886
|
qe as p,
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1887
|
+
je as q,
|
|
1888
|
+
Le as r,
|
|
1889
|
+
ke as s,
|
|
1890
|
+
He as t,
|
|
1891
|
+
Qe as u,
|
|
1861
1892
|
Oe as v,
|
|
1862
1893
|
Te as w,
|
|
1863
1894
|
Fe as x,
|
package/dist/components.d.ts
CHANGED
|
@@ -798,6 +798,8 @@ declare interface TableSkeletonProps {
|
|
|
798
798
|
|
|
799
799
|
export declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
800
800
|
|
|
801
|
+
export declare function TwitterIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
802
|
+
|
|
801
803
|
declare interface UserInterface {
|
|
802
804
|
_id?: string;
|
|
803
805
|
name?: string;
|
|
@@ -833,6 +835,8 @@ declare interface UserInterface {
|
|
|
833
835
|
};
|
|
834
836
|
}
|
|
835
837
|
|
|
838
|
+
export declare function XIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
839
|
+
|
|
836
840
|
export declare function YoutubeIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
837
841
|
|
|
838
842
|
export { }
|
package/dist/components.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as b, c, B as
|
|
2
|
-
import { k as
|
|
1
|
+
import { a as b, c, B as F, ap as N, aq as v, ar as C, P as T, Q as H, W as y, V as _, R as j, X as A } from "./chuncks/switch.BgkPsd63.js";
|
|
2
|
+
import { k as ge, l as xe, p as be, q as me, r as he, F as fe, s as pe, t as ue, u as ye, v as we, w as ke, I as Ne, m as ve, x as Ce, L as Ie, P as ze, f as Me, g as Se, h as Fe, j as Te, y as He, n as _e, o as je, T as Ae, X as Le, Y as Pe } from "./chuncks/youtube-icon.component.DYRlq1QT.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { C as I, f as z, S as f } from "./chuncks/card.C4GIVN6P.js";
|
|
6
6
|
import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
|
|
7
|
-
const
|
|
7
|
+
const B = [
|
|
8
8
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
9
9
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
10
10
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
11
|
-
],
|
|
12
|
-
const
|
|
11
|
+
], D = b("circle-alert", B);
|
|
12
|
+
const q = [
|
|
13
13
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
14
14
|
["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",
|
|
15
|
+
], R = b("copy", q);
|
|
16
16
|
const V = [
|
|
17
17
|
[
|
|
18
18
|
"path",
|
|
@@ -25,14 +25,14 @@ const V = [
|
|
|
25
25
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
26
26
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
27
27
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
28
|
-
],
|
|
29
|
-
const
|
|
28
|
+
], X = b("file-text", V);
|
|
29
|
+
const W = [
|
|
30
30
|
["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
31
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
32
32
|
["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
33
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
34
|
-
],
|
|
35
|
-
const
|
|
34
|
+
], Y = b("refresh-cw", W);
|
|
35
|
+
const E = [
|
|
36
36
|
[
|
|
37
37
|
"path",
|
|
38
38
|
{
|
|
@@ -42,44 +42,44 @@ const O = [
|
|
|
42
42
|
],
|
|
43
43
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
44
44
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
45
|
-
],
|
|
45
|
+
], O = b("triangle-alert", E);
|
|
46
46
|
function te({
|
|
47
|
-
icon: a =
|
|
47
|
+
icon: a = O,
|
|
48
48
|
title: t,
|
|
49
|
-
description:
|
|
50
|
-
onRetry:
|
|
51
|
-
tip:
|
|
49
|
+
description: l,
|
|
50
|
+
onRetry: n,
|
|
51
|
+
tip: i,
|
|
52
52
|
className: r,
|
|
53
53
|
...s
|
|
54
54
|
}) {
|
|
55
55
|
return /* @__PURE__ */ e(I, { className: c(r), ...s, children: /* @__PURE__ */ o(z, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
56
56
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
57
57
|
/* @__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(
|
|
58
|
+
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
|
|
59
|
+
n && /* @__PURE__ */ o(F, { onClick: n, variant: "outline", className: "mt-6", children: [
|
|
60
|
+
/* @__PURE__ */ e(Y, {}),
|
|
61
61
|
"Tentar novamente"
|
|
62
62
|
] }),
|
|
63
|
-
|
|
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 }) })
|
|
64
64
|
] }) });
|
|
65
65
|
}
|
|
66
66
|
function ae({
|
|
67
67
|
content: a,
|
|
68
68
|
align: t,
|
|
69
|
-
asChild:
|
|
70
|
-
className:
|
|
71
|
-
openDelay:
|
|
69
|
+
asChild: l,
|
|
70
|
+
className: n,
|
|
71
|
+
openDelay: i = 0,
|
|
72
72
|
closeDelay: r = 0,
|
|
73
73
|
children: s,
|
|
74
74
|
disabled: d = !1,
|
|
75
75
|
...x
|
|
76
76
|
}) {
|
|
77
|
-
return /* @__PURE__ */ e(L, { children: d === !0 ? s : /* @__PURE__ */ o(
|
|
78
|
-
/* @__PURE__ */ e(v, { asChild:
|
|
79
|
-
/* @__PURE__ */ e(C, { align: t, className:
|
|
77
|
+
return /* @__PURE__ */ e(L, { children: d === !0 ? s : /* @__PURE__ */ o(N, { openDelay: i, closeDelay: r, ...x, children: [
|
|
78
|
+
/* @__PURE__ */ e(v, { asChild: l, children: s }),
|
|
79
|
+
/* @__PURE__ */ e(C, { align: t, className: n, children: a })
|
|
80
80
|
] }) });
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const Q = {
|
|
83
83
|
red: { bg: "bg-red-50", text: "text-red-600" },
|
|
84
84
|
orange: { bg: "bg-orange-50", text: "text-orange-600" },
|
|
85
85
|
amber: { bg: "bg-amber-50", text: "text-amber-600" },
|
|
@@ -126,7 +126,7 @@ const X = {
|
|
|
126
126
|
neutral: { bg: "bg-neutral-500", text: "text-white" },
|
|
127
127
|
stone: { bg: "bg-stone-500", text: "text-white" },
|
|
128
128
|
black: { bg: "bg-black", text: "text-white" }
|
|
129
|
-
},
|
|
129
|
+
}, k = {
|
|
130
130
|
xs: "size-3",
|
|
131
131
|
sm: "size-4",
|
|
132
132
|
md: "size-5",
|
|
@@ -136,12 +136,12 @@ const X = {
|
|
|
136
136
|
function re({
|
|
137
137
|
size: a,
|
|
138
138
|
color: t,
|
|
139
|
-
className:
|
|
140
|
-
icon:
|
|
141
|
-
filled:
|
|
139
|
+
className: l,
|
|
140
|
+
icon: n,
|
|
141
|
+
filled: i
|
|
142
142
|
}) {
|
|
143
|
-
const r =
|
|
144
|
-
return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", r?.bg,
|
|
143
|
+
const r = i ? G[t] : Q[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) }) });
|
|
145
145
|
}
|
|
146
146
|
function le({ className: a, ...t }) {
|
|
147
147
|
return /* @__PURE__ */ e("div", { className: c("divide-y", a), ...t });
|
|
@@ -149,36 +149,36 @@ function le({ className: a, ...t }) {
|
|
|
149
149
|
function ne({
|
|
150
150
|
label: a,
|
|
151
151
|
value: t,
|
|
152
|
-
tooltip:
|
|
153
|
-
highlight:
|
|
154
|
-
negative:
|
|
152
|
+
tooltip: l,
|
|
153
|
+
highlight: n = !1,
|
|
154
|
+
negative: i = !1,
|
|
155
155
|
positive: r = !1,
|
|
156
156
|
isPercentage: s = !1,
|
|
157
157
|
isDate: d = !1,
|
|
158
158
|
isText: x = !1,
|
|
159
159
|
isInvoiced: p = !1,
|
|
160
160
|
hasCopyButton: m = !1,
|
|
161
|
-
enableHoverableContent:
|
|
161
|
+
enableHoverableContent: M = !1,
|
|
162
162
|
handleCopy: u
|
|
163
163
|
}) {
|
|
164
164
|
let g = "";
|
|
165
|
-
if (d && typeof t == "string" && !p &&
|
|
166
|
-
const
|
|
165
|
+
if (d && typeof t == "string" && !p && n) {
|
|
166
|
+
const S = w(t), h = P(S, /* @__PURE__ */ new Date());
|
|
167
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
|
|
169
|
-
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(
|
|
168
|
+
} else n && (g = "bg-[#ffe0b2] font-bold");
|
|
169
|
+
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(N, { openDelay: 0, closeDelay: 0, children: [
|
|
170
170
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ o("div", { className: "flex justify-between", children: [
|
|
171
171
|
/* @__PURE__ */ o(
|
|
172
172
|
"span",
|
|
173
173
|
{
|
|
174
174
|
className: c(
|
|
175
175
|
"flex flex-row gap-1",
|
|
176
|
-
|
|
176
|
+
i ? "text-red-600" : r ? "text-green-600" : ""
|
|
177
177
|
),
|
|
178
178
|
children: [
|
|
179
179
|
a,
|
|
180
180
|
" ",
|
|
181
|
-
/* @__PURE__ */ e(
|
|
181
|
+
/* @__PURE__ */ e(D, { className: "size-3.5" })
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
),
|
|
@@ -187,7 +187,7 @@ function ne({
|
|
|
187
187
|
{
|
|
188
188
|
className: c(
|
|
189
189
|
"flex flex-row justify-end gap-2 text-right",
|
|
190
|
-
|
|
190
|
+
i ? "text-red-600" : r ? "text-green-600" : ""
|
|
191
191
|
),
|
|
192
192
|
children: [
|
|
193
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 })}`,
|
|
@@ -200,24 +200,24 @@ function ne({
|
|
|
200
200
|
C,
|
|
201
201
|
{
|
|
202
202
|
align: "start",
|
|
203
|
-
className: c(!
|
|
203
|
+
className: c(!M && "pointer-events-none"),
|
|
204
204
|
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
206
|
-
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children:
|
|
206
|
+
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: l })
|
|
207
207
|
] })
|
|
208
208
|
}
|
|
209
209
|
)
|
|
210
210
|
] }) });
|
|
211
211
|
}
|
|
212
212
|
function ie({
|
|
213
|
-
icon: a =
|
|
213
|
+
icon: a = X,
|
|
214
214
|
title: t,
|
|
215
|
-
description:
|
|
216
|
-
tip:
|
|
217
|
-
className:
|
|
215
|
+
description: l,
|
|
216
|
+
tip: n,
|
|
217
|
+
className: i,
|
|
218
218
|
...r
|
|
219
219
|
}) {
|
|
220
|
-
return /* @__PURE__ */ e(I, { className: c(
|
|
220
|
+
return /* @__PURE__ */ e(I, { className: c(i), ...r, children: /* @__PURE__ */ o(z, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
221
221
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
222
222
|
a,
|
|
223
223
|
{
|
|
@@ -226,19 +226,19 @@ function ie({
|
|
|
226
226
|
}
|
|
227
227
|
) }),
|
|
228
228
|
/* @__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
|
-
|
|
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 }) })
|
|
231
231
|
] }) });
|
|
232
232
|
}
|
|
233
233
|
function se({
|
|
234
234
|
columns: a = 9,
|
|
235
235
|
rows: t = 20,
|
|
236
|
-
hasActions:
|
|
237
|
-
actionsCount:
|
|
236
|
+
hasActions: l = !1,
|
|
237
|
+
actionsCount: n = 1
|
|
238
238
|
}) {
|
|
239
239
|
return /* @__PURE__ */ o(T, { children: [
|
|
240
|
-
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((
|
|
241
|
-
const s =
|
|
240
|
+
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((i, r) => {
|
|
241
|
+
const s = l && r === a - 1;
|
|
242
242
|
return /* @__PURE__ */ e(
|
|
243
243
|
_,
|
|
244
244
|
{
|
|
@@ -253,43 +253,68 @@ function se({
|
|
|
253
253
|
r
|
|
254
254
|
);
|
|
255
255
|
}) }) }),
|
|
256
|
-
/* @__PURE__ */ e(
|
|
257
|
-
const x =
|
|
258
|
-
return /* @__PURE__ */ e(
|
|
256
|
+
/* @__PURE__ */ e(j, { 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(A, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: n }).map((p, m) => /* @__PURE__ */ e(f, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(f, { className: "h-4 w-full" }) }, d);
|
|
259
259
|
}) }, r)) })
|
|
260
260
|
] });
|
|
261
261
|
}
|
|
262
|
+
function oe({
|
|
263
|
+
size: a = 24,
|
|
264
|
+
color: t = "currentColor",
|
|
265
|
+
...l
|
|
266
|
+
}) {
|
|
267
|
+
return /* @__PURE__ */ e(
|
|
268
|
+
"svg",
|
|
269
|
+
{
|
|
270
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
271
|
+
width: a,
|
|
272
|
+
height: a,
|
|
273
|
+
viewBox: "0 0 24 24",
|
|
274
|
+
fill: "none",
|
|
275
|
+
stroke: t,
|
|
276
|
+
"stroke-width": "2",
|
|
277
|
+
"stroke-linecap": "round",
|
|
278
|
+
"stroke-linejoin": "round",
|
|
279
|
+
className: "lucide lucide-twitter-icon lucide-twitter",
|
|
280
|
+
...l,
|
|
281
|
+
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
|
+
}
|
|
283
|
+
);
|
|
284
|
+
}
|
|
262
285
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
286
|
+
ge as CampaignsSelectInput,
|
|
287
|
+
xe as ClientSelectInput,
|
|
265
288
|
te as ErrorCard,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
289
|
+
be as FieldCalendar,
|
|
290
|
+
me as FieldClientSelectInput,
|
|
291
|
+
he as FieldInput,
|
|
292
|
+
fe as FieldLabelWithAsterisk,
|
|
293
|
+
pe as FieldProfileSelectInput,
|
|
294
|
+
ue as FieldSaleSelectInput,
|
|
295
|
+
ye as FieldSelect,
|
|
296
|
+
we as FieldSwitch,
|
|
297
|
+
ke as FieldTextarea,
|
|
275
298
|
ae as HoverContent,
|
|
276
299
|
re as IconBadge,
|
|
277
300
|
Ne as Image,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
301
|
+
ve as InfluencerSelectInput,
|
|
302
|
+
Ce as InstagramIcon,
|
|
303
|
+
Ie as LinkedInIcon,
|
|
281
304
|
le as List,
|
|
282
305
|
ne as ListRow,
|
|
283
306
|
ie as NotFoundCard,
|
|
284
|
-
|
|
285
|
-
|
|
307
|
+
ze as PageHeader,
|
|
308
|
+
Me as PageHeaderActions,
|
|
286
309
|
Se as PageHeaderContent,
|
|
287
310
|
Fe as PageHeaderDescription,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
311
|
+
Te as PageHeaderTitle,
|
|
312
|
+
He as PinterestIcon,
|
|
313
|
+
_e as ProfileSelectInput,
|
|
314
|
+
je as SaleSelectInput,
|
|
292
315
|
se as TableSkeleton,
|
|
293
316
|
Ae as TikTokIcon,
|
|
294
|
-
|
|
317
|
+
oe as TwitterIcon,
|
|
318
|
+
Le as XIcon,
|
|
319
|
+
Pe as YoutubeIcon
|
|
295
320
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const SOCIAL_NETWORK_COLOR_VALUES: {
|
|
|
51
51
|
youtube: string;
|
|
52
52
|
linkedin: string;
|
|
53
53
|
pinterest: string;
|
|
54
|
+
twitter: string;
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
export declare const SOCIAL_NETWORK_ICON_COMPONENTS: {
|
|
@@ -59,6 +60,7 @@ export declare const SOCIAL_NETWORK_ICON_COMPONENTS: {
|
|
|
59
60
|
readonly youtube: typeof YoutubeIcon;
|
|
60
61
|
readonly linkedin: typeof LinkedInIcon;
|
|
61
62
|
readonly pinterest: typeof PinterestIcon;
|
|
63
|
+
readonly twitter: typeof XIcon;
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
export declare const SOCIAL_NETWORK_VALUES: {
|
|
@@ -67,10 +69,13 @@ export declare const SOCIAL_NETWORK_VALUES: {
|
|
|
67
69
|
readonly youtube: "YouTube";
|
|
68
70
|
readonly linkedin: "LinkedIn";
|
|
69
71
|
readonly pinterest: "Pinterest";
|
|
72
|
+
readonly twitter: "Twitter (X)";
|
|
70
73
|
};
|
|
71
74
|
|
|
72
75
|
declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
73
76
|
|
|
77
|
+
declare function XIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
78
|
+
|
|
74
79
|
declare function YoutubeIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
75
80
|
|
|
76
81
|
export { }
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as n, C as s, S as A, e as S, d as O } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { A as r, B as n, C as s, S as A, e as S, d as O } from "./chuncks/youtube-icon.component.DYRlq1QT.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.", t = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.";
|
|
3
3
|
export {
|
|
4
4
|
r as ACTION_TYPE_VALUES,
|
package/dist/events.js
CHANGED
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.
|
|
2
|
-
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.Aq86TtlT.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/youtube-icon.component.DYRlq1QT.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|