@grapadigital/shared-app-modules 0.0.124 → 0.0.126
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 +4 -0
- package/dist/chuncks/{field-textarea.component.CeuGTc_-.js → field-textarea.component.B0Y5wLxD.js} +324 -303
- package/dist/chuncks/{format.util.nUZ_kuY2.js → format.util.D3U9ZMqh.js} +1 -1
- package/dist/components.d.ts +15 -0
- package/dist/components.js +29 -28
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +4 -0
- package/dist/events.js +1 -1
- package/dist/invoice.d.ts +4 -0
- package/dist/payment.d.ts +4 -0
- package/dist/recruitment.d.ts +4 -0
- package/dist/sale.d.ts +4 -0
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -234,6 +234,8 @@ declare interface DeliveryScope {
|
|
|
234
234
|
tiktok?: number | null;
|
|
235
235
|
youtube?: number | null;
|
|
236
236
|
dayAllocation?: number | null;
|
|
237
|
+
pinterest?: number | null;
|
|
238
|
+
linkedin?: number | null;
|
|
237
239
|
}
|
|
238
240
|
|
|
239
241
|
export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
|
|
@@ -286,6 +288,17 @@ declare type FieldInputProps = React.ComponentProps<"input"> & ControllerFieldSt
|
|
|
286
288
|
|
|
287
289
|
export declare function FieldLabelWithAsterisk({ className, ...props }: React.ComponentProps<typeof LabelWithAsterisk>): JSX.Element;
|
|
288
290
|
|
|
291
|
+
export declare const FieldProfileSelectInput: ForwardRefExoticComponent<Omit<FieldProfileSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
292
|
+
|
|
293
|
+
declare type FieldProfileSelectInputProps = React.ComponentProps<typeof ClientSelectInput> & ControllerFieldState & {
|
|
294
|
+
label?: string;
|
|
295
|
+
description?: string;
|
|
296
|
+
asterisk?: boolean;
|
|
297
|
+
onValueChange: (clientId: ClientInterface) => void;
|
|
298
|
+
value?: string;
|
|
299
|
+
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
300
|
+
};
|
|
301
|
+
|
|
289
302
|
export declare const FieldSaleSelectInput: ForwardRefExoticComponent<Omit<FieldSaleSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
290
303
|
|
|
291
304
|
declare type FieldSaleSelectInputProps = React.ComponentProps<"input"> & ControllerFieldState & {
|
|
@@ -677,6 +690,8 @@ declare interface RecruitmentInterface {
|
|
|
677
690
|
image: ContentInterface[];
|
|
678
691
|
tiktok: ContentInterface[];
|
|
679
692
|
youtube: ContentInterface[];
|
|
693
|
+
linkedin: ContentInterface[];
|
|
694
|
+
pinterest: ContentInterface[];
|
|
680
695
|
scope: ContractedScopeInterface;
|
|
681
696
|
}
|
|
682
697
|
|
package/dist/components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as b, c, B as
|
|
2
|
-
import { j as de, k as ge, o as xe, p as be,
|
|
3
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
1
|
+
import { a as b, c, B as M, ap as k, aq as v, ar as C, P as T, Q as H, W as y, V as _, R as A, X as P } from "./chuncks/switch.BgkPsd63.js";
|
|
2
|
+
import { j as de, k as ge, o as xe, p as be, t as me, F as he, q as fe, r as pe, u as ue, s as ye, v as we, I as Ne, l as ke, P as ve, e as Ce, f as Ie, g as ze, h as Se, m as Fe, n as Me } from "./chuncks/field-textarea.component.B0Y5wLxD.js";
|
|
3
|
+
import { jsx as e, jsxs as o, Fragment as j } 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
|
-
import { parseISO as w, differenceInCalendarDays as
|
|
7
|
-
import { I as
|
|
6
|
+
import { parseISO as w, differenceInCalendarDays as L, format as $ } from "date-fns";
|
|
7
|
+
import { I as He, L as _e, P as Ae, T as Pe, Y as je } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
|
|
8
8
|
const D = [
|
|
9
9
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
10
10
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
@@ -57,7 +57,7 @@ function te({
|
|
|
57
57
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
58
58
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
59
59
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: i }),
|
|
60
|
-
l && /* @__PURE__ */ o(
|
|
60
|
+
l && /* @__PURE__ */ o(M, { onClick: l, variant: "outline", className: "mt-6", children: [
|
|
61
61
|
/* @__PURE__ */ e(E, {}),
|
|
62
62
|
"Tentar novamente"
|
|
63
63
|
] }),
|
|
@@ -75,7 +75,7 @@ function ae({
|
|
|
75
75
|
disabled: d = !1,
|
|
76
76
|
...x
|
|
77
77
|
}) {
|
|
78
|
-
return /* @__PURE__ */ e(
|
|
78
|
+
return /* @__PURE__ */ e(j, { children: d === !0 ? s : /* @__PURE__ */ o(k, { openDelay: n, closeDelay: r, ...x, children: [
|
|
79
79
|
/* @__PURE__ */ e(v, { asChild: i, children: s }),
|
|
80
80
|
/* @__PURE__ */ e(C, { align: t, className: l, children: a })
|
|
81
81
|
] }) });
|
|
@@ -159,12 +159,12 @@ function ne({
|
|
|
159
159
|
isText: x = !1,
|
|
160
160
|
isInvoiced: p = !1,
|
|
161
161
|
hasCopyButton: m = !1,
|
|
162
|
-
enableHoverableContent:
|
|
162
|
+
enableHoverableContent: S = !1,
|
|
163
163
|
handleCopy: u
|
|
164
164
|
}) {
|
|
165
165
|
let g = "";
|
|
166
166
|
if (d && typeof t == "string" && !p && l) {
|
|
167
|
-
const
|
|
167
|
+
const F = w(t), h = L(F, /* @__PURE__ */ new Date());
|
|
168
168
|
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";
|
|
169
169
|
} else l && (g = "bg-[#ffe0b2] font-bold");
|
|
170
170
|
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(k, { openDelay: 0, closeDelay: 0, children: [
|
|
@@ -201,7 +201,7 @@ function ne({
|
|
|
201
201
|
C,
|
|
202
202
|
{
|
|
203
203
|
align: "start",
|
|
204
|
-
className: c(!
|
|
204
|
+
className: c(!S && "pointer-events-none"),
|
|
205
205
|
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
206
206
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
207
207
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: i })
|
|
@@ -256,7 +256,7 @@ function se({
|
|
|
256
256
|
}) }) }),
|
|
257
257
|
/* @__PURE__ */ e(A, { children: Array.from({ length: t }).map((n, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((s, d) => {
|
|
258
258
|
const x = i && d === a - 1;
|
|
259
|
-
return /* @__PURE__ */ e(
|
|
259
|
+
return /* @__PURE__ */ e(P, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: l }).map((p, m) => /* @__PURE__ */ e(f, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(f, { className: "h-4 w-full" }) }, d);
|
|
260
260
|
}) }, r)) })
|
|
261
261
|
] });
|
|
262
262
|
}
|
|
@@ -268,28 +268,29 @@ export {
|
|
|
268
268
|
be as FieldClientSelectInput,
|
|
269
269
|
me as FieldInput,
|
|
270
270
|
he as FieldLabelWithAsterisk,
|
|
271
|
-
fe as
|
|
272
|
-
pe as
|
|
273
|
-
ue as
|
|
274
|
-
ye as
|
|
271
|
+
fe as FieldProfileSelectInput,
|
|
272
|
+
pe as FieldSaleSelectInput,
|
|
273
|
+
ue as FieldSelect,
|
|
274
|
+
ye as FieldSwitch,
|
|
275
|
+
we as FieldTextarea,
|
|
275
276
|
ae as HoverContent,
|
|
276
277
|
re as IconBadge,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
Ne as Image,
|
|
279
|
+
ke as InfluencerSelectInput,
|
|
280
|
+
He as InstagramIcon,
|
|
281
|
+
_e as LinkedInIcon,
|
|
281
282
|
le as List,
|
|
282
283
|
ne as ListRow,
|
|
283
284
|
ie as NotFoundCard,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
285
|
+
ve as PageHeader,
|
|
286
|
+
Ce as PageHeaderActions,
|
|
287
|
+
Ie as PageHeaderContent,
|
|
288
|
+
ze as PageHeaderDescription,
|
|
289
|
+
Se as PageHeaderTitle,
|
|
290
|
+
Ae as PinterestIcon,
|
|
291
|
+
Fe as ProfileSelectInput,
|
|
292
|
+
Me as SaleSelectInput,
|
|
292
293
|
se as TableSkeleton,
|
|
293
|
-
|
|
294
|
+
Pe as TikTokIcon,
|
|
294
295
|
je as YoutubeIcon
|
|
295
296
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.
|
|
1
|
+
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.B0Y5wLxD.js";
|
|
2
2
|
import "./chuncks/switch.BgkPsd63.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
package/dist/content.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare interface DeliveryScope {
|
|
|
179
179
|
tiktok?: number | null;
|
|
180
180
|
youtube?: number | null;
|
|
181
181
|
dayAllocation?: number | null;
|
|
182
|
+
pinterest?: number | null;
|
|
183
|
+
linkedin?: number | null;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
declare interface Exchange {
|
|
@@ -437,6 +439,8 @@ declare interface RecruitmentInterface {
|
|
|
437
439
|
image: ContentInterface[];
|
|
438
440
|
tiktok: ContentInterface[];
|
|
439
441
|
youtube: ContentInterface[];
|
|
442
|
+
linkedin: ContentInterface[];
|
|
443
|
+
pinterest: ContentInterface[];
|
|
440
444
|
scope: ContractedScopeInterface;
|
|
441
445
|
}
|
|
442
446
|
|
package/dist/events.js
CHANGED
package/dist/invoice.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare interface DeliveryScope {
|
|
|
179
179
|
tiktok?: number | null;
|
|
180
180
|
youtube?: number | null;
|
|
181
181
|
dayAllocation?: number | null;
|
|
182
|
+
pinterest?: number | null;
|
|
183
|
+
linkedin?: number | null;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
declare interface Exchange {
|
|
@@ -437,6 +439,8 @@ declare interface RecruitmentInterface {
|
|
|
437
439
|
image: ContentInterface[];
|
|
438
440
|
tiktok: ContentInterface[];
|
|
439
441
|
youtube: ContentInterface[];
|
|
442
|
+
linkedin: ContentInterface[];
|
|
443
|
+
pinterest: ContentInterface[];
|
|
440
444
|
scope: ContractedScopeInterface;
|
|
441
445
|
}
|
|
442
446
|
|
package/dist/payment.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare interface DeliveryScope {
|
|
|
179
179
|
tiktok?: number | null;
|
|
180
180
|
youtube?: number | null;
|
|
181
181
|
dayAllocation?: number | null;
|
|
182
|
+
pinterest?: number | null;
|
|
183
|
+
linkedin?: number | null;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
declare interface Exchange {
|
|
@@ -437,6 +439,8 @@ declare interface RecruitmentInterface {
|
|
|
437
439
|
image: ContentInterface[];
|
|
438
440
|
tiktok: ContentInterface[];
|
|
439
441
|
youtube: ContentInterface[];
|
|
442
|
+
linkedin: ContentInterface[];
|
|
443
|
+
pinterest: ContentInterface[];
|
|
440
444
|
scope: ContractedScopeInterface;
|
|
441
445
|
}
|
|
442
446
|
|
package/dist/recruitment.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ export declare interface DeliveryScope {
|
|
|
179
179
|
tiktok?: number | null;
|
|
180
180
|
youtube?: number | null;
|
|
181
181
|
dayAllocation?: number | null;
|
|
182
|
+
pinterest?: number | null;
|
|
183
|
+
linkedin?: number | null;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
export declare interface Exchange {
|
|
@@ -437,6 +439,8 @@ export declare interface RecruitmentInterface {
|
|
|
437
439
|
image: ContentInterface[];
|
|
438
440
|
tiktok: ContentInterface[];
|
|
439
441
|
youtube: ContentInterface[];
|
|
442
|
+
linkedin: ContentInterface[];
|
|
443
|
+
pinterest: ContentInterface[];
|
|
440
444
|
scope: ContractedScopeInterface;
|
|
441
445
|
}
|
|
442
446
|
|
package/dist/sale.d.ts
CHANGED
|
@@ -179,6 +179,8 @@ declare interface DeliveryScope {
|
|
|
179
179
|
tiktok?: number | null;
|
|
180
180
|
youtube?: number | null;
|
|
181
181
|
dayAllocation?: number | null;
|
|
182
|
+
pinterest?: number | null;
|
|
183
|
+
linkedin?: number | null;
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
declare interface Exchange {
|
|
@@ -437,6 +439,8 @@ declare interface RecruitmentInterface {
|
|
|
437
439
|
image: ContentInterface[];
|
|
438
440
|
tiktok: ContentInterface[];
|
|
439
441
|
youtube: ContentInterface[];
|
|
442
|
+
linkedin: ContentInterface[];
|
|
443
|
+
pinterest: ContentInterface[];
|
|
440
444
|
scope: ContractedScopeInterface;
|
|
441
445
|
}
|
|
442
446
|
|
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/field-textarea.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.D3U9ZMqh.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/field-textarea.component.B0Y5wLxD.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|