@grapadigital/shared-app-modules 0.0.102 → 0.0.104

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.
@@ -1,4 +1,4 @@
1
- import { b as n } from "./profile-select-input.component.CyuV-rYK.js";
1
+ import { b as n } from "./_sale-select-input.component.b4mohVQV.js";
2
2
  function m(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -629,6 +629,13 @@ declare interface SaleInterface {
629
629
 
630
630
  declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
631
631
 
632
+ export declare const SaleSelectInput: default_2.ForwardRefExoticComponent<Omit<SaleSelectInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
633
+
634
+ declare interface SaleSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
635
+ queryKey?: string[];
636
+ onValueChange: (client: ClientInterface) => void;
637
+ }
638
+
632
639
  declare interface ScreeningInterface {
633
640
  subject: string;
634
641
  fromName: string;
@@ -1,11 +1,11 @@
1
- import { a as b, c as d, B as T, H as N, b as v, d as C, T as _, e as A, f as y, g as L, h as j, i as S } from "./chuncks/scroll-area.D85EojoN.js";
2
- import { L as P } from "./chuncks/profile-select-input.component.CyuV-rYK.js";
3
- import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne } from "./chuncks/profile-select-input.component.CyuV-rYK.js";
1
+ import { a as b, c as d, B as T, H as N, b as v, d as C, T as _, e as A, f as y, g as L, h as S, i as j } from "./chuncks/scroll-area.D85EojoN.js";
2
+ import { L as P } from "./chuncks/_sale-select-input.component.b4mohVQV.js";
3
+ import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne, n as ve } from "./chuncks/_sale-select-input.component.b4mohVQV.js";
4
4
  import { jsx as e, jsxs as o, Fragment as F } from "react/jsx-runtime";
5
5
  import "react";
6
6
  import { C as z, a as I, S as f } from "./chuncks/card.C3Mnb-Yx.js";
7
7
  import { parseISO as w, differenceInCalendarDays as $, format as D } from "date-fns";
8
- import { I as Ce, L as ze, P as Ie, T as Me, Y as He } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
8
+ import { I as ze, L as Ie, P as Me, T as He, Y as Te } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
9
9
  const B = [
10
10
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
11
11
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
@@ -48,21 +48,21 @@ const G = [
48
48
  function re({
49
49
  icon: a = J,
50
50
  title: t,
51
- description: s,
51
+ description: i,
52
52
  onRetry: l,
53
- tip: i,
53
+ tip: s,
54
54
  className: r,
55
55
  ...n
56
56
  }) {
57
57
  return /* @__PURE__ */ e(z, { className: d(r), ...n, children: /* @__PURE__ */ o(I, { 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
- /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: s }),
60
+ /* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: i }),
61
61
  l && /* @__PURE__ */ o(T, { onClick: l, variant: "outline", className: "mt-6", children: [
62
62
  /* @__PURE__ */ e(O, {}),
63
63
  "Tentar novamente"
64
64
  ] }),
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 }) })
65
+ 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 }) })
66
66
  ] }) });
67
67
  }
68
68
  function le({
@@ -83,19 +83,19 @@ function le({
83
83
  }
84
84
  );
85
85
  }
86
- function ie({
86
+ function se({
87
87
  content: a,
88
88
  align: t,
89
- asChild: s,
89
+ asChild: i,
90
90
  className: l,
91
- openDelay: i = 0,
91
+ openDelay: s = 0,
92
92
  closeDelay: r = 0,
93
93
  children: n,
94
94
  disabled: c = !1,
95
95
  ...x
96
96
  }) {
97
- return /* @__PURE__ */ e(F, { children: c === !0 ? n : /* @__PURE__ */ o(N, { openDelay: i, closeDelay: r, ...x, children: [
98
- /* @__PURE__ */ e(v, { asChild: s, children: n }),
97
+ return /* @__PURE__ */ e(F, { children: c === !0 ? n : /* @__PURE__ */ o(N, { openDelay: s, closeDelay: r, ...x, children: [
98
+ /* @__PURE__ */ e(v, { asChild: i, children: n }),
99
99
  /* @__PURE__ */ e(C, { align: t, className: l, children: a })
100
100
  ] }) });
101
101
  }
@@ -153,15 +153,15 @@ const K = {
153
153
  lg: "size-6",
154
154
  xl: "size-7"
155
155
  };
156
- function se({
156
+ function ie({
157
157
  size: a,
158
158
  color: t,
159
- className: s,
159
+ className: i,
160
160
  icon: l,
161
- filled: i
161
+ filled: s
162
162
  }) {
163
- const r = i ? Q[t] : K[t], n = a ? k[a] : k.md;
164
- return /* @__PURE__ */ e("div", { className: d("w-fit p-2 rounded-lg", r?.bg, s), children: /* @__PURE__ */ e(l, { className: d(n, r?.text) }) });
163
+ const r = s ? Q[t] : K[t], n = a ? k[a] : k.md;
164
+ return /* @__PURE__ */ e("div", { className: d("w-fit p-2 rounded-lg", r?.bg, i), children: /* @__PURE__ */ e(l, { className: d(n, r?.text) }) });
165
165
  }
166
166
  function ne({ className: a, ...t }) {
167
167
  return /* @__PURE__ */ e("div", { className: d("divide-y", a), ...t });
@@ -169,9 +169,9 @@ function ne({ className: a, ...t }) {
169
169
  function oe({
170
170
  label: a,
171
171
  value: t,
172
- tooltip: s,
172
+ tooltip: i,
173
173
  highlight: l = !1,
174
- negative: i = !1,
174
+ negative: s = !1,
175
175
  positive: r = !1,
176
176
  isPercentage: n = !1,
177
177
  isDate: c = !1,
@@ -193,7 +193,7 @@ function oe({
193
193
  {
194
194
  className: d(
195
195
  "flex flex-row gap-1",
196
- i ? "text-red-600" : r ? "text-green-600" : ""
196
+ s ? "text-red-600" : r ? "text-green-600" : ""
197
197
  ),
198
198
  children: [
199
199
  a,
@@ -207,7 +207,7 @@ function oe({
207
207
  {
208
208
  className: d(
209
209
  "flex flex-row justify-end gap-2 text-right",
210
- i ? "text-red-600" : r ? "text-green-600" : ""
210
+ s ? "text-red-600" : r ? "text-green-600" : ""
211
211
  ),
212
212
  children: [
213
213
  n && typeof t == "number" ? `${t.toFixed(2)}%` : c && typeof t == "string" ? D(w(t), "dd/MM/yyyy") : x && typeof t == "string" ? t : `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
@@ -223,7 +223,7 @@ function oe({
223
223
  className: d(!M && "pointer-events-none"),
224
224
  children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
225
225
  /* @__PURE__ */ e("div", { className: "font-medium", children: a }),
226
- /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: s })
226
+ /* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: i })
227
227
  ] })
228
228
  }
229
229
  )
@@ -232,12 +232,12 @@ function oe({
232
232
  function de({
233
233
  icon: a = Y,
234
234
  title: t,
235
- description: s,
235
+ description: i,
236
236
  tip: l,
237
- className: i,
237
+ className: s,
238
238
  ...r
239
239
  }) {
240
- return /* @__PURE__ */ e(z, { className: d(i), ...r, children: /* @__PURE__ */ o(I, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
240
+ return /* @__PURE__ */ e(z, { className: d(s), ...r, children: /* @__PURE__ */ o(I, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
241
241
  /* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
242
242
  a,
243
243
  {
@@ -246,19 +246,19 @@ function de({
246
246
  }
247
247
  ) }),
248
248
  /* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: t }),
249
- /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: s }),
249
+ /* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: i }),
250
250
  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 }) })
251
251
  ] }) });
252
252
  }
253
253
  function ce({
254
254
  columns: a = 9,
255
255
  rows: t = 20,
256
- hasActions: s = !1,
256
+ hasActions: i = !1,
257
257
  actionsCount: l = 1
258
258
  }) {
259
259
  return /* @__PURE__ */ o(_, { children: [
260
- /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((i, r) => {
261
- const n = s && r === a - 1;
260
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(y, { children: Array.from({ length: a }).map((s, r) => {
261
+ const n = i && r === a - 1;
262
262
  return /* @__PURE__ */ e(
263
263
  L,
264
264
  {
@@ -273,9 +273,9 @@ function ce({
273
273
  r
274
274
  );
275
275
  }) }) }),
276
- /* @__PURE__ */ e(j, { children: Array.from({ length: t }).map((i, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((n, c) => {
277
- const x = s && c === a - 1;
278
- return /* @__PURE__ */ e(S, { 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" }) }, c);
276
+ /* @__PURE__ */ e(S, { children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((n, c) => {
277
+ const x = i && c === a - 1;
278
+ return /* @__PURE__ */ e(j, { 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" }) }, c);
279
279
  }) }, r)) })
280
280
  ] });
281
281
  }
@@ -284,12 +284,12 @@ export {
284
284
  me as ClientSelectInput,
285
285
  re as ErrorCard,
286
286
  le as FieldLabelWithAsterisk,
287
- ie as HoverContent,
288
- se as IconBadge,
287
+ se as HoverContent,
288
+ ie as IconBadge,
289
289
  he as Image,
290
290
  fe as InfluencerSelectInput,
291
- Ce as InstagramIcon,
292
- ze as LinkedInIcon,
291
+ ze as InstagramIcon,
292
+ Ie as LinkedInIcon,
293
293
  ne as List,
294
294
  oe as ListRow,
295
295
  de as NotFoundCard,
@@ -298,9 +298,10 @@ export {
298
298
  ye as PageHeaderContent,
299
299
  we as PageHeaderDescription,
300
300
  ke as PageHeaderTitle,
301
- Ie as PinterestIcon,
301
+ Me as PinterestIcon,
302
302
  Ne as ProfileSelectInput,
303
+ ve as SaleSelectInput,
303
304
  ce as TableSkeleton,
304
- Me as TikTokIcon,
305
- He as YoutubeIcon
305
+ He as TikTokIcon,
306
+ Te as YoutubeIcon
306
307
  };
@@ -1,6 +1,11 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import { LucideProps } from 'lucide-react';
3
3
 
4
+ export declare const ACTION_TYPE_VALUES: {
5
+ readonly partner: "Perceiros";
6
+ readonly exclusive: "Exclusivos";
7
+ };
8
+
4
9
  export declare const BUSINESS_UNIT_VALUES: {
5
10
  readonly enterprise: "Empresa";
6
11
  readonly artistic: "Artística";
package/dist/constants.js CHANGED
@@ -1,10 +1,10 @@
1
- import { B as p, C as L, S as N, d } from "./chuncks/profile-select-input.component.CyuV-rYK.js";
1
+ import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/_sale-select-input.component.b4mohVQV.js";
2
2
  import "./chuncks/scroll-area.D85EojoN.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "date-fns";
6
6
  import { P as o, L as a, Y as t, T as e, I as n } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
7
- const A = "Não há dados para atualizar.", m = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", S = "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.", c = {
7
+ const A = "Não há dados para atualizar.", T = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", S = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", m = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", I = {
8
8
  instagram: n,
9
9
  tiktok: e,
10
10
  youtube: t,
@@ -12,13 +12,14 @@ const A = "Não há dados para atualizar.", m = "O filtro selecionado já está
12
12
  pinterest: o
13
13
  };
14
14
  export {
15
- p as BUSINESS_UNIT_VALUES,
16
- L as CLIENT_TYPE_VALUES,
17
- T as ERROR_MESSAGE,
18
- m as FILTER_ALREADY_APPLIED_MESSAGE,
15
+ p as ACTION_TYPE_VALUES,
16
+ L as BUSINESS_UNIT_VALUES,
17
+ N as CLIENT_TYPE_VALUES,
18
+ m as ERROR_MESSAGE,
19
+ T as FILTER_ALREADY_APPLIED_MESSAGE,
19
20
  A as NO_DATA_TO_UPDATE,
20
21
  S as NO_DATA_TO_UPDATE_MESSAGE,
21
- N as SOCIAL_NETWORK_COLOR_VALUES,
22
- c as SOCIAL_NETWORK_ICON_COMPONENTS,
23
- d as SOCIAL_NETWORK_VALUES
22
+ d as SOCIAL_NETWORK_COLOR_VALUES,
23
+ I as SOCIAL_NETWORK_ICON_COMPONENTS,
24
+ u as SOCIAL_NETWORK_VALUES
24
25
  };
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as o } from "./chuncks/format.util.lE31EORK.js";
1
+ import { h as o } from "./chuncks/format.util.CkcldnK7.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
package/dist/hooks.d.ts CHANGED
@@ -3,6 +3,7 @@ declare interface Environments {
3
3
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
4
4
  readonly VITE_BACKEND_API_USERS_URL?: string;
5
5
  readonly VITE_BACKEND_API_MANAGEMENT_URL?: string;
6
+ readonly VITE_BACKEND_API_SALES_URL?: string;
6
7
  }
7
8
 
8
9
  declare interface SharedAppModulesContextData {
@@ -5,6 +5,7 @@ declare interface Environments {
5
5
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
6
6
  readonly VITE_BACKEND_API_USERS_URL?: string;
7
7
  readonly VITE_BACKEND_API_MANAGEMENT_URL?: string;
8
+ readonly VITE_BACKEND_API_SALES_URL?: string;
8
9
  }
9
10
 
10
11
  declare interface SharedAppModulesContextProps {
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.lE31EORK.js";
2
- import { i as k, a as P, b, c as N } from "./chuncks/profile-select-input.component.CyuV-rYK.js";
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.CkcldnK7.js";
2
+ import { i as k, a as P, b, c as N } from "./chuncks/_sale-select-input.component.b4mohVQV.js";
3
3
  export {
4
4
  e as formatCompactNumber,
5
5
  r as formatCompactPercent,
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.102",
4
+ "version": "0.0.104",
5
5
  "files": [
6
6
  "dist"
7
7
  ],