@grapadigital/shared-app-modules 0.0.176 → 0.0.177
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/commission.d.ts +6 -4
- package/dist/components.js +75 -75
- package/package.json +9 -9
package/dist/commission.d.ts
CHANGED
|
@@ -5,15 +5,17 @@ export declare interface CommissionInterface {
|
|
|
5
5
|
value: number;
|
|
6
6
|
installmentNumber: number;
|
|
7
7
|
percentage: number;
|
|
8
|
-
status:
|
|
9
|
-
type:
|
|
8
|
+
status: CommissionStatus;
|
|
9
|
+
type: CommissionStatus;
|
|
10
10
|
title: string;
|
|
11
11
|
sale: string;
|
|
12
|
-
|
|
12
|
+
payment?: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export declare type
|
|
17
|
+
export declare type CommissionStatus = "pending" | "approved" | "reproved" | "ready" | "paid";
|
|
18
|
+
|
|
19
|
+
export declare type CommissionType = "novo" | "renovacao" | "upsell" | "bonus" | "collaborator";
|
|
18
20
|
|
|
19
21
|
export { }
|
package/dist/components.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
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
|
|
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
3
|
import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
|
|
4
|
-
import { useState as $, useRef as
|
|
4
|
+
import { useState as $, useRef as P, useEffect as E } from "react";
|
|
5
5
|
import { parseISO as k, differenceInCalendarDays as B, format as R } from "date-fns";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
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 = [
|
|
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
|
+
], J = x("circle-alert", X);
|
|
12
|
+
const Y = [
|
|
13
13
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
14
14
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
15
15
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
16
|
-
],
|
|
17
|
-
const
|
|
16
|
+
], G = x("circle-question-mark", Y);
|
|
17
|
+
const Q = [
|
|
18
18
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
19
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" }]
|
|
20
|
-
],
|
|
21
|
-
const
|
|
20
|
+
], W = x("copy", Q);
|
|
21
|
+
const U = [
|
|
22
22
|
[
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
@@ -30,14 +30,14 @@ const W = [
|
|
|
30
30
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
31
31
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
32
32
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
33
|
-
],
|
|
34
|
-
const
|
|
33
|
+
], Z = x("file-text", U);
|
|
34
|
+
const ee = [
|
|
35
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" }],
|
|
36
36
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
37
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" }],
|
|
38
38
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
39
|
-
],
|
|
40
|
-
const
|
|
39
|
+
], te = x("refresh-cw", ee);
|
|
40
|
+
const ae = [
|
|
41
41
|
[
|
|
42
42
|
"path",
|
|
43
43
|
{
|
|
@@ -47,9 +47,9 @@ const te = [
|
|
|
47
47
|
],
|
|
48
48
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
49
49
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
50
|
-
],
|
|
51
|
-
function
|
|
52
|
-
icon: r =
|
|
50
|
+
], re = x("triangle-alert", ae);
|
|
51
|
+
function ge({
|
|
52
|
+
icon: r = re,
|
|
53
53
|
title: a,
|
|
54
54
|
description: n,
|
|
55
55
|
onRetry: l,
|
|
@@ -62,13 +62,13 @@ function ce({
|
|
|
62
62
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: a }),
|
|
63
63
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
|
|
64
64
|
l && /* @__PURE__ */ o(f, { onClick: l, variant: "outline", className: "mt-6", children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
65
|
+
/* @__PURE__ */ e(te, {}),
|
|
66
66
|
"Tentar novamente"
|
|
67
67
|
] }),
|
|
68
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 }) })
|
|
69
69
|
] }) });
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function xe({
|
|
72
72
|
content: r,
|
|
73
73
|
align: a,
|
|
74
74
|
asChild: n,
|
|
@@ -84,7 +84,7 @@ function ge({
|
|
|
84
84
|
/* @__PURE__ */ e(M, { align: a, className: l, children: r })
|
|
85
85
|
] }) });
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const ne = {
|
|
88
88
|
red: { bg: "bg-red-50", text: "text-red-600" },
|
|
89
89
|
orange: { bg: "bg-orange-50", text: "text-orange-600" },
|
|
90
90
|
amber: { bg: "bg-amber-50", text: "text-amber-600" },
|
|
@@ -107,7 +107,7 @@ const re = {
|
|
|
107
107
|
zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
|
|
108
108
|
neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
|
|
109
109
|
stone: { bg: "bg-stone-200", text: "text-stone-800" }
|
|
110
|
-
},
|
|
110
|
+
}, le = {
|
|
111
111
|
red: { bg: "bg-red-500", text: "text-white" },
|
|
112
112
|
orange: { bg: "bg-orange-500", text: "text-white" },
|
|
113
113
|
amber: { bg: "bg-amber-500", text: "text-white" },
|
|
@@ -138,20 +138,20 @@ const re = {
|
|
|
138
138
|
lg: "size-6",
|
|
139
139
|
xl: "size-7"
|
|
140
140
|
};
|
|
141
|
-
function
|
|
141
|
+
function be({
|
|
142
142
|
size: r,
|
|
143
143
|
color: a,
|
|
144
144
|
className: n,
|
|
145
145
|
icon: l,
|
|
146
146
|
filled: s
|
|
147
147
|
}) {
|
|
148
|
-
const t = s ?
|
|
148
|
+
const t = s ? le[a] : ne[a], i = r ? N[r] : N.md;
|
|
149
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) }) });
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function me({ className: r, ...a }) {
|
|
152
152
|
return /* @__PURE__ */ e("div", { className: c("divide-y", r), ...a });
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function he({
|
|
155
155
|
label: r,
|
|
156
156
|
value: a,
|
|
157
157
|
tooltip: n,
|
|
@@ -183,7 +183,7 @@ function me({
|
|
|
183
183
|
children: [
|
|
184
184
|
r,
|
|
185
185
|
" ",
|
|
186
|
-
/* @__PURE__ */ e(
|
|
186
|
+
/* @__PURE__ */ e(J, { className: "size-3.5" })
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
),
|
|
@@ -196,7 +196,7 @@ function me({
|
|
|
196
196
|
),
|
|
197
197
|
children: [
|
|
198
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(
|
|
199
|
+
m && y && /* @__PURE__ */ e(W, { size: 15, onClick: () => y(a) })
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
202
|
)
|
|
@@ -214,8 +214,8 @@ function me({
|
|
|
214
214
|
)
|
|
215
215
|
] }) });
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
icon: r =
|
|
217
|
+
function ue({
|
|
218
|
+
icon: r = Z,
|
|
219
219
|
title: a,
|
|
220
220
|
description: n,
|
|
221
221
|
tip: l,
|
|
@@ -235,12 +235,12 @@ function he({
|
|
|
235
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 }) })
|
|
236
236
|
] }) });
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function fe({
|
|
239
239
|
actions: r,
|
|
240
|
-
icon: a =
|
|
240
|
+
icon: a = G
|
|
241
241
|
}) {
|
|
242
|
-
const [n, l] = $(!1), s =
|
|
243
|
-
return
|
|
242
|
+
const [n, l] = $(!1), s = P(null);
|
|
243
|
+
return E(() => {
|
|
244
244
|
if (!n) return;
|
|
245
245
|
const t = (d) => {
|
|
246
246
|
s.current?.contains(d.target) || l(!1);
|
|
@@ -250,7 +250,7 @@ function ue({
|
|
|
250
250
|
return document.addEventListener("mousedown", t), document.addEventListener("keydown", i), () => {
|
|
251
251
|
document.removeEventListener("mousedown", t), document.removeEventListener("keydown", i);
|
|
252
252
|
};
|
|
253
|
-
}, [n]), /* @__PURE__ */ o(
|
|
253
|
+
}, [n]), /* @__PURE__ */ e(q, { children: /* @__PURE__ */ o(
|
|
254
254
|
"div",
|
|
255
255
|
{
|
|
256
256
|
ref: s,
|
|
@@ -264,8 +264,8 @@ function ue({
|
|
|
264
264
|
n ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
|
|
265
265
|
),
|
|
266
266
|
style: { transitionDelay: n ? `${i * 30}ms` : "0ms" },
|
|
267
|
-
children: /* @__PURE__ */ o(
|
|
268
|
-
/* @__PURE__ */ e(
|
|
267
|
+
children: /* @__PURE__ */ o(K, { children: [
|
|
268
|
+
/* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
|
|
269
269
|
f,
|
|
270
270
|
{
|
|
271
271
|
size: "icon",
|
|
@@ -282,7 +282,7 @@ function ue({
|
|
|
282
282
|
children: /* @__PURE__ */ e(t.icon, { className: "size-5" })
|
|
283
283
|
}
|
|
284
284
|
) }),
|
|
285
|
-
/* @__PURE__ */ e(
|
|
285
|
+
/* @__PURE__ */ e(V, { side: "left", children: t.label })
|
|
286
286
|
] })
|
|
287
287
|
},
|
|
288
288
|
t.label
|
|
@@ -301,9 +301,9 @@ function ue({
|
|
|
301
301
|
)
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
|
-
);
|
|
304
|
+
) });
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function pe({
|
|
307
307
|
columns: r = 9,
|
|
308
308
|
rows: a = 20,
|
|
309
309
|
hasActions: n = !1,
|
|
@@ -332,7 +332,7 @@ function fe({
|
|
|
332
332
|
}) }, t)) })
|
|
333
333
|
] });
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ye({
|
|
336
336
|
size: r = 24,
|
|
337
337
|
color: a = "currentColor",
|
|
338
338
|
...n
|
|
@@ -356,40 +356,40 @@ function pe({
|
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
382
|
Ee as PageHeaderActions,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
383
|
+
Be as PageHeaderContent,
|
|
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
|
|
395
395
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapadigital/shared-app-modules",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.177",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -120,13 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"type": "module",
|
|
123
|
-
"scripts": {
|
|
124
|
-
"dev": "vite",
|
|
125
|
-
"build": "rm -rf dist && tsc -b && vite build",
|
|
126
|
-
"lint": "eslint .",
|
|
127
|
-
"preview": "vite preview",
|
|
128
|
-
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
129
|
-
},
|
|
130
123
|
"peerDependencies": {
|
|
131
124
|
"react": "^18.3.1",
|
|
132
125
|
"react-dom": "^18.3.1"
|
|
@@ -182,5 +175,12 @@
|
|
|
182
175
|
"vite": "^7.2.4",
|
|
183
176
|
"vite-plugin-dts": "^4.5.4",
|
|
184
177
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
178
|
+
},
|
|
179
|
+
"scripts": {
|
|
180
|
+
"dev": "vite",
|
|
181
|
+
"build": "rm -rf dist && tsc -b && vite build",
|
|
182
|
+
"lint": "eslint .",
|
|
183
|
+
"preview": "vite preview",
|
|
184
|
+
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
185
185
|
}
|
|
186
|
-
}
|
|
186
|
+
}
|