@grapadigital/shared-app-modules 0.0.164 → 0.0.165
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.DmewuK-i.js → format.util.Bgy0yStH.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.DScbZg9o.js → youtube-icon.component.CHZjR-2u.js} +319 -307
- package/dist/components.js +9 -9
- package/dist/constants.d.ts +8 -0
- package/dist/constants.js +12 -11
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +12 -1
- package/dist/utils.js +7 -6
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as j, ai as A } from "./chuncks/switch.BuckOH_X.js";
|
|
2
|
-
import {
|
|
2
|
+
import { p as ge, q as xe, u as be, G as me, v as he, w as fe, F as ue, x as pe, y as ye, z as we, D as ke, E as Ne, o as ve, r as Ce, H as Ie, L as ze, j as Fe, k as Me, l as Se, m as He, n as Te, J as _e, s as je, t as Ae, K as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
|
|
@@ -26,13 +26,13 @@ const V = [
|
|
|
26
26
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
27
27
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
28
28
|
], E = b("file-text", V);
|
|
29
|
-
const
|
|
29
|
+
const J = [
|
|
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
|
+
], K = b("refresh-cw", J);
|
|
35
|
+
const X = [
|
|
36
36
|
[
|
|
37
37
|
"path",
|
|
38
38
|
{
|
|
@@ -42,9 +42,9 @@ const G = [
|
|
|
42
42
|
],
|
|
43
43
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
44
44
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
45
|
-
],
|
|
45
|
+
], Y = b("triangle-alert", X);
|
|
46
46
|
function te({
|
|
47
|
-
icon: a =
|
|
47
|
+
icon: a = Y,
|
|
48
48
|
title: t,
|
|
49
49
|
description: l,
|
|
50
50
|
onRetry: n,
|
|
@@ -57,7 +57,7 @@ function te({
|
|
|
57
57
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
58
58
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: l }),
|
|
59
59
|
n && /* @__PURE__ */ o(S, { onClick: n, variant: "outline", className: "mt-6", children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
60
|
+
/* @__PURE__ */ e(K, {}),
|
|
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 }) })
|
|
@@ -79,7 +79,7 @@ function ae({
|
|
|
79
79
|
/* @__PURE__ */ e(z, { align: t, className: n, children: a })
|
|
80
80
|
] }) });
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const G = {
|
|
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" },
|
|
@@ -140,7 +140,7 @@ function re({
|
|
|
140
140
|
icon: n,
|
|
141
141
|
filled: i
|
|
142
142
|
}) {
|
|
143
|
-
const r = i ? O[t] :
|
|
143
|
+
const r = i ? O[t] : G[t], s = a ? k[a] : k.md;
|
|
144
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 }) {
|
package/dist/constants.d.ts
CHANGED
|
@@ -28,6 +28,14 @@ export declare const ERROR_MESSAGE = "N\u00E3o foi poss\u00EDvel concluir a oper
|
|
|
28
28
|
*/
|
|
29
29
|
export declare const FILTER_ALREADY_APPLIED_MESSAGE = "O filtro selecionado j\u00E1 est\u00E1 ativo. Por favor, escolha outro filtro antes de tentar novamente.";
|
|
30
30
|
|
|
31
|
+
export declare const INFLUENCER_BROADCAST_METHOD_VALUES: {
|
|
32
|
+
transfer: string;
|
|
33
|
+
client: string;
|
|
34
|
+
direct: string;
|
|
35
|
+
debit_note: string;
|
|
36
|
+
undefined: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
declare function InstagramIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
|
32
40
|
|
|
33
41
|
declare function LinkedInIcon({ size, color, ...props }: LucideProps): JSX.Element;
|
package/dist/constants.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { A as s, B as
|
|
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.", e = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.",
|
|
1
|
+
import { A as s, B as S, C as n, I as T, P as O, a as L, b as N, S as c, T as I } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
|
|
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.", e = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", _ = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", t = "Campo obrigatório.";
|
|
3
3
|
export {
|
|
4
4
|
s as ACTION_TYPE_VALUES,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
S as BUSINESS_UNIT_VALUES,
|
|
6
|
+
n as CLIENT_TYPE_VALUES,
|
|
7
7
|
e as ERROR_MESSAGE,
|
|
8
8
|
a as FILTER_ALREADY_APPLIED_MESSAGE,
|
|
9
|
+
T as INFLUENCER_BROADCAST_METHOD_VALUES,
|
|
9
10
|
o as NO_DATA_TO_UPDATE,
|
|
10
11
|
E as NO_DATA_TO_UPDATE_MESSAGE,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
O as PAYMENT_TYPE_VALUES,
|
|
13
|
+
t as REQUIRED_FIELD_MESSAGE,
|
|
14
|
+
L as SOCIAL_NETWORK_COLOR_VALUES,
|
|
15
|
+
N as SOCIAL_NETWORK_ICON_COMPONENTS,
|
|
16
|
+
c as SOCIAL_NETWORK_VALUES,
|
|
17
|
+
I as TYPE_SALE_VALUES,
|
|
18
|
+
_ as VALIDATION_ERROR_MESSAGE
|
|
18
19
|
};
|
package/dist/events.js
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -68,6 +68,14 @@ export declare function formatCurrency(value: number): string;
|
|
|
68
68
|
*/
|
|
69
69
|
export declare const formatPercentage: (value: string | number) => string;
|
|
70
70
|
|
|
71
|
+
declare const INFLUENCER_BROADCAST_METHOD_VALUES: {
|
|
72
|
+
transfer: string;
|
|
73
|
+
client: string;
|
|
74
|
+
direct: string;
|
|
75
|
+
debit_note: string;
|
|
76
|
+
undefined: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
71
79
|
/**
|
|
72
80
|
* Gera uma mensagem de erro genérica para campos inválidos.
|
|
73
81
|
*
|
|
@@ -88,7 +96,8 @@ declare namespace IS_MODULES {
|
|
|
88
96
|
isSocialNetwork,
|
|
89
97
|
isClientType,
|
|
90
98
|
isBusinessUnit,
|
|
91
|
-
isPaymentType
|
|
99
|
+
isPaymentType,
|
|
100
|
+
isInfluencerBroadcastMethod
|
|
92
101
|
}
|
|
93
102
|
}
|
|
94
103
|
|
|
@@ -96,6 +105,8 @@ export declare function isBusinessUnit(value?: string): value is keyof typeof BU
|
|
|
96
105
|
|
|
97
106
|
export declare function isClientType(value?: string): value is keyof typeof CLIENT_TYPE_VALUES;
|
|
98
107
|
|
|
108
|
+
export declare function isInfluencerBroadcastMethod(value?: string): value is keyof typeof INFLUENCER_BROADCAST_METHOD_VALUES;
|
|
109
|
+
|
|
99
110
|
/**
|
|
100
111
|
* Verifica se o valor fornecido é um número ou uma string que pode ser convertida para número.
|
|
101
112
|
*
|
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chuncks/format.util.
|
|
2
|
-
import { g as C, h as E, f as L, a as _, d as b, m as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { U as o } from "./chuncks/format.util.Bgy0yStH.js";
|
|
2
|
+
import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.Bgy0yStH.js";
|
|
3
|
+
import { c as a } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
|
|
4
|
+
import { f as k, e as N, h, i as q, g as x, d as F } from "./chuncks/youtube-icon.component.CHZjR-2u.js";
|
|
5
5
|
const s = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: c,
|
|
@@ -22,12 +22,13 @@ export {
|
|
|
22
22
|
c as invalidMessage,
|
|
23
23
|
k as isBusinessUnit,
|
|
24
24
|
N as isClientType,
|
|
25
|
+
h as isInfluencerBroadcastMethod,
|
|
25
26
|
q as isNumber,
|
|
26
27
|
x as isPaymentType,
|
|
27
28
|
F as isSocialNetwork,
|
|
28
29
|
b as maskCNPJ,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
l as maskCPF,
|
|
31
|
+
v as maskRG,
|
|
31
32
|
y as maskZipCode,
|
|
32
33
|
n as maxLengthMessage,
|
|
33
34
|
i as maxValueMessage,
|