@grapadigital/shared-app-modules 0.0.92 → 0.0.94

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 CHANGED
@@ -306,7 +306,7 @@ declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  declare interface Payment {
312
312
  hasPayment: boolean;
@@ -229,7 +229,7 @@ declare interface FormalizationInterface {
229
229
  totalInstallments: number;
230
230
  }
231
231
 
232
- export declare function HoverContent({ content, align, asChild, className, openDelay, closeDelay, children, ...props }: HoverContentProps): JSX.Element;
232
+ export declare function HoverContent({ content, align, asChild, className, openDelay, closeDelay, children, disabled, ...props }: HoverContentProps): JSX.Element;
233
233
 
234
234
  declare interface HoverContentProps extends HoverCardProps {
235
235
  content: string | React.ReactNode;
@@ -238,6 +238,7 @@ declare interface HoverContentProps extends HoverCardProps {
238
238
  className?: string;
239
239
  openDelay?: number;
240
240
  closeDelay?: number;
241
+ disabled?: boolean;
241
242
  children: React.ReactNode;
242
243
  }
243
244
 
@@ -438,7 +439,7 @@ declare interface Participant {
438
439
  value: number;
439
440
  }
440
441
 
441
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
442
+ declare type ParticipantRole = "origination" | "commercial";
442
443
 
443
444
  declare interface Payment {
444
445
  hasPayment: boolean;
@@ -1,21 +1,21 @@
1
- import { a as g, c as s, B as M, H as p, b as u, d as y } from "./chuncks/scroll-area.CEAE-ZuD.js";
1
+ import { a as g, c as s, B as M, H as u, b as y, d as w } from "./chuncks/scroll-area.CEAE-ZuD.js";
2
2
  import { L as H } from "./chuncks/_influencer-select-input.component.CbVEJ529.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.CbVEJ529.js";
4
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
3
+ import { C as le, e as se, I as ne, f as oe, P as de, a as ce, b as ge, c as xe, d as be } from "./chuncks/_influencer-select-input.component.CbVEJ529.js";
4
+ import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
5
5
  import "react";
6
- import { C as w, a as k } from "./chuncks/card.Cpx5Pxqx.js";
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";
9
- const j = [
6
+ import { C as k, a as N } from "./chuncks/card.Cpx5Pxqx.js";
7
+ import { parseISO as f, differenceInCalendarDays as _, format as j } from "date-fns";
8
+ import { I as he, L as fe, P as pe, T as ue, Y as ye } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
9
+ const F = [
10
10
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
11
11
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
12
12
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
13
- ], P = g("circle-alert", j);
13
+ ], P = g("circle-alert", F);
14
14
  const T = [
15
15
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
16
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" }]
17
17
  ], A = g("copy", T);
18
- const F = [
18
+ const $ = [
19
19
  [
20
20
  "path",
21
21
  {
@@ -27,14 +27,14 @@ const F = [
27
27
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
28
28
  ["path", { d: "M16 13H8", key: "t4e002" }],
29
29
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
30
- ], $ = g("file-text", F);
31
- const D = [
30
+ ], D = g("file-text", $);
31
+ const S = [
32
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" }],
33
33
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
34
34
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
35
35
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
36
- ], S = g("refresh-cw", D);
37
- const B = [
36
+ ], B = g("refresh-cw", S);
37
+ const q = [
38
38
  [
39
39
  "path",
40
40
  {
@@ -44,9 +44,9 @@ const B = [
44
44
  ],
45
45
  ["path", { d: "M12 9v4", key: "juzpu7" }],
46
46
  ["path", { d: "M12 17h.01", key: "p32p05" }]
47
- ], q = g("triangle-alert", B);
48
- function K({
49
- icon: a = q,
47
+ ], R = g("triangle-alert", q);
48
+ function Q({
49
+ icon: a = R,
50
50
  title: t,
51
51
  description: n,
52
52
  onRetry: r,
@@ -54,18 +54,18 @@ function K({
54
54
  className: l,
55
55
  ...d
56
56
  }) {
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
+ return /* @__PURE__ */ e(k, { className: s(l), ...d, children: /* @__PURE__ */ o(N, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
58
58
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(a, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
59
59
  /* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
60
60
  /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
61
61
  r && /* @__PURE__ */ o(M, { onClick: r, variant: "outline", className: "mt-6", children: [
62
- /* @__PURE__ */ e(S, {}),
62
+ /* @__PURE__ */ e(B, {}),
63
63
  "Tentar novamente"
64
64
  ] }),
65
65
  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 }) })
66
66
  ] }) });
67
67
  }
68
- function Q({
68
+ function U({
69
69
  className: a,
70
70
  ...t
71
71
  }) {
@@ -83,7 +83,7 @@ function Q({
83
83
  }
84
84
  );
85
85
  }
86
- function U({
86
+ function X({
87
87
  content: a,
88
88
  align: t,
89
89
  asChild: n,
@@ -91,14 +91,15 @@ function U({
91
91
  openDelay: i = 0,
92
92
  closeDelay: l = 0,
93
93
  children: d,
94
- ...x
94
+ disabled: x = !1,
95
+ ...b
95
96
  }) {
96
- return /* @__PURE__ */ o(p, { openDelay: i, closeDelay: l, ...x, children: [
97
- /* @__PURE__ */ e(u, { asChild: n, children: d }),
98
- /* @__PURE__ */ e(y, { align: t, className: r, children: a })
99
- ] });
97
+ return /* @__PURE__ */ e(L, { children: x === !0 ? d : /* @__PURE__ */ o(u, { openDelay: i, closeDelay: l, ...b, children: [
98
+ /* @__PURE__ */ e(y, { asChild: n, children: d }),
99
+ /* @__PURE__ */ e(w, { align: t, className: r, children: a })
100
+ ] }) });
100
101
  }
101
- const R = {
102
+ const V = {
102
103
  red: { bg: "bg-red-50", text: "text-red-600" },
103
104
  orange: { bg: "bg-orange-50", text: "text-orange-600" },
104
105
  amber: { bg: "bg-amber-50", text: "text-amber-600" },
@@ -121,7 +122,7 @@ const R = {
121
122
  zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
122
123
  neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
123
124
  stone: { bg: "bg-stone-200", text: "text-stone-800" }
124
- }, V = {
125
+ }, W = {
125
126
  red: { bg: "bg-red-500", text: "text-white" },
126
127
  orange: { bg: "bg-orange-500", text: "text-white" },
127
128
  amber: { bg: "bg-amber-500", text: "text-white" },
@@ -145,27 +146,27 @@ const R = {
145
146
  neutral: { bg: "bg-neutral-500", text: "text-white" },
146
147
  stone: { bg: "bg-stone-500", text: "text-white" },
147
148
  black: { bg: "bg-black", text: "text-white" }
148
- }, f = {
149
+ }, p = {
149
150
  xs: "size-3",
150
151
  sm: "size-4",
151
152
  md: "size-5",
152
153
  lg: "size-6",
153
154
  xl: "size-7"
154
155
  };
155
- function X({
156
+ function Z({
156
157
  size: a,
157
158
  color: t,
158
159
  className: n,
159
160
  icon: r,
160
161
  filled: i
161
162
  }) {
162
- const l = i ? V[t] : R[t], d = a ? f[a] : f.md;
163
+ const l = i ? W[t] : V[t], d = a ? p[a] : p.md;
163
164
  return /* @__PURE__ */ e("div", { className: s("w-fit p-2 rounded-lg", l?.bg, n), children: /* @__PURE__ */ e(r, { className: s(d, l?.text) }) });
164
165
  }
165
- function Z({ className: a, ...t }) {
166
+ function ee({ className: a, ...t }) {
166
167
  return /* @__PURE__ */ e("div", { className: s("divide-y", a), ...t });
167
168
  }
168
- function ee({
169
+ function te({
169
170
  label: a,
170
171
  value: t,
171
172
  tooltip: n,
@@ -174,19 +175,19 @@ function ee({
174
175
  positive: l = !1,
175
176
  isPercentage: d = !1,
176
177
  isDate: x = !1,
177
- isText: N = !1,
178
+ isText: b = !1,
178
179
  isInvoiced: v = !1,
179
180
  hasCopyButton: C = !1,
180
181
  enableHoverableContent: z = !1,
181
- handleCopy: m
182
+ handleCopy: h
182
183
  }) {
183
184
  let c = "";
184
185
  if (x && typeof t == "string" && !v && r) {
185
- const I = h(t), b = L(I, /* @__PURE__ */ new Date());
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
+ const I = f(t), m = _(I, /* @__PURE__ */ new Date());
187
+ m > 15 ? c = "bg-yellow-100 font-bold" : m > 7 ? c = "bg-yellow-300 font-bold" : m >= 0 ? c = "bg-red-300 font-bold" : c = "bg-red-500 text-white font-bold";
187
188
  } else r && (c = "bg-[#ffe0b2] font-bold");
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: [
189
+ return /* @__PURE__ */ e("div", { className: s("px-2 py-1 text-sm", c), children: /* @__PURE__ */ o(u, { openDelay: 0, closeDelay: 0, children: [
190
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ o("div", { className: "flex justify-between", children: [
190
191
  /* @__PURE__ */ o(
191
192
  "span",
192
193
  {
@@ -209,14 +210,14 @@ function ee({
209
210
  i ? "text-red-600" : l ? "text-green-600" : ""
210
211
  ),
211
212
  children: [
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
+ d && typeof t == "number" ? `${t.toFixed(2)}%` : x && typeof t == "string" ? j(f(t), "dd/MM/yyyy") : b && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
214
+ C && h && /* @__PURE__ */ e(A, { size: 15, onClick: () => h(t) })
214
215
  ]
215
216
  }
216
217
  )
217
218
  ] }) }),
218
219
  /* @__PURE__ */ e(
219
- y,
220
+ w,
220
221
  {
221
222
  align: "start",
222
223
  className: s(!z && "pointer-events-none"),
@@ -228,15 +229,15 @@ function ee({
228
229
  )
229
230
  ] }) });
230
231
  }
231
- function te({
232
- icon: a = $,
232
+ function ae({
233
+ icon: a = D,
233
234
  title: t,
234
235
  description: n,
235
236
  tip: r,
236
237
  className: i,
237
238
  ...l
238
239
  }) {
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: [
240
+ return /* @__PURE__ */ e(k, { className: s(i), ...l, children: /* @__PURE__ */ o(N, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
240
241
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
241
242
  a,
242
243
  {
@@ -250,25 +251,25 @@ function te({
250
251
  ] }) });
251
252
  }
252
253
  export {
253
- ie as CampaignsSelectInput,
254
- le as ClientSelectInput,
255
- K as ErrorCard,
256
- Q as FieldLabelWithAsterisk,
257
- U as HoverContent,
258
- X as IconBadge,
259
- se as Image,
260
- ne as InfluencerSelectInput,
261
- me as InstagramIcon,
262
- he as LinkedInIcon,
263
- Z as List,
264
- ee as ListRow,
265
- te as NotFoundCard,
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
254
+ le as CampaignsSelectInput,
255
+ se as ClientSelectInput,
256
+ Q as ErrorCard,
257
+ U as FieldLabelWithAsterisk,
258
+ X as HoverContent,
259
+ Z as IconBadge,
260
+ ne as Image,
261
+ oe as InfluencerSelectInput,
262
+ he as InstagramIcon,
263
+ fe as LinkedInIcon,
264
+ ee as List,
265
+ te as ListRow,
266
+ ae as NotFoundCard,
267
+ de as PageHeader,
268
+ ce as PageHeaderActions,
269
+ ge as PageHeaderContent,
270
+ xe as PageHeaderDescription,
271
+ be as PageHeaderTitle,
272
+ pe as PinterestIcon,
273
+ ue as TikTokIcon,
274
+ ye as YoutubeIcon
274
275
  };
package/dist/content.d.ts CHANGED
@@ -306,7 +306,7 @@ declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  declare interface Payment {
312
312
  hasPayment: boolean;
package/dist/invoice.d.ts CHANGED
@@ -306,7 +306,7 @@ declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  declare interface Payment {
312
312
  hasPayment: boolean;
package/dist/payment.d.ts CHANGED
@@ -306,7 +306,7 @@ declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  declare interface Payment {
312
312
  hasPayment: boolean;
@@ -306,7 +306,7 @@ declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  export declare interface Payment {
312
312
  hasPayment: boolean;
package/dist/sale.d.ts CHANGED
@@ -306,7 +306,7 @@ export declare interface Participant {
306
306
  value: number;
307
307
  }
308
308
 
309
- export declare type ParticipantRole = "origination" | "commercial" | "planning" | "curation";
309
+ export declare type ParticipantRole = "origination" | "commercial";
310
310
 
311
311
  declare interface Payment {
312
312
  hasPayment: boolean;
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.92",
4
+ "version": "0.0.94",
5
5
  "files": [
6
6
  "dist"
7
7
  ],