@grapadigital/shared-app-modules 0.0.96 → 0.0.97

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,3 +1,16 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { LucideProps } from 'lucide-react';
3
+
4
+ export declare const BUSINESS_UNIT_VALUES: {
5
+ readonly enterprise: "Empresa";
6
+ readonly artistic: "Artística";
7
+ };
8
+
9
+ export declare const CLIENT_TYPE_VALUES: {
10
+ readonly agency: "Agência";
11
+ readonly brand: "Marca";
12
+ };
13
+
1
14
  /**
2
15
  * Mensagem de erro genérico.
3
16
  * @returns {string} A mensagem.
@@ -10,6 +23,10 @@ export declare const ERROR_MESSAGE = "N\u00E3o foi poss\u00EDvel concluir a oper
10
23
  */
11
24
  export declare const FILTER_ALREADY_APPLIED_MESSAGE = "O filtro selecionado j\u00E1 est\u00E1 ativo. Por favor, escolha outro filtro antes de tentar novamente.";
12
25
 
26
+ declare function InstagramIcon({ size, color, ...props }: LucideProps): JSX.Element;
27
+
28
+ declare function LinkedInIcon({ size, color, ...props }: LucideProps): JSX.Element;
29
+
13
30
  /**
14
31
  * @deprecated Utilizar `NO_DATA_TO_UPDATE_MESSAGE` no lugar.
15
32
  */
@@ -21,4 +38,34 @@ export declare const NO_DATA_TO_UPDATE = "N\u00E3o h\u00E1 dados para atualizar.
21
38
  */
22
39
  export declare const NO_DATA_TO_UPDATE_MESSAGE = "Nenhum dado novo foi informado para realizar a opera\u00E7\u00E3o. Por favor, atualize os campos antes de tentar novamente.";
23
40
 
41
+ declare function PinterestIcon({ size, color, ...props }: LucideProps): JSX.Element;
42
+
43
+ export declare const SOCIAL_NETWORK_COLOR_VALUES: {
44
+ instagram: string;
45
+ tiktok: string;
46
+ youtube: string;
47
+ linkedin: string;
48
+ pinterest: string;
49
+ };
50
+
51
+ export declare const SOCIAL_NETWORK_ICON_COMPONENTS: {
52
+ readonly instagram: typeof InstagramIcon;
53
+ readonly tiktok: typeof TikTokIcon;
54
+ readonly youtube: typeof YoutubeIcon;
55
+ readonly linkedin: typeof LinkedInIcon;
56
+ readonly pinterest: typeof PinterestIcon;
57
+ };
58
+
59
+ export declare const SOCIAL_NETWORK_VALUES: {
60
+ readonly instagram: "Instagram";
61
+ readonly tiktok: "TikTok";
62
+ readonly youtube: "YouTube";
63
+ readonly linkedin: "LinkedIn";
64
+ readonly pinterest: "Pinterest";
65
+ };
66
+
67
+ declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
68
+
69
+ declare function YoutubeIcon({ size, color, ...props }: LucideProps): JSX.Element;
70
+
24
71
  export { }
package/dist/constants.js CHANGED
@@ -1,7 +1,25 @@
1
- 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.", t = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.";
1
+ import { B as L, C as N, S as d, a as u } from "./chuncks/values.constant.DO4JqXro.js";
2
+ import "./chuncks/scroll-area.CEAE-ZuD.js";
3
+ import "./chuncks/_influencer-select-input.component.CbVEJ529.js";
4
+ import "react/jsx-runtime";
5
+ import "react";
6
+ import "date-fns";
7
+ import { P as o, L as a, Y as t, T as e, I as n } from "./chuncks/youtube-icon.component.R7s6jY4w.js";
8
+ const A = "Não há dados para atualizar.", S = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", T = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", c = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", I = {
9
+ instagram: n,
10
+ tiktok: e,
11
+ youtube: t,
12
+ linkedin: a,
13
+ pinterest: o
14
+ };
2
15
  export {
3
- t as ERROR_MESSAGE,
4
- a as FILTER_ALREADY_APPLIED_MESSAGE,
5
- o as NO_DATA_TO_UPDATE,
6
- e as NO_DATA_TO_UPDATE_MESSAGE
16
+ L as BUSINESS_UNIT_VALUES,
17
+ N as CLIENT_TYPE_VALUES,
18
+ c as ERROR_MESSAGE,
19
+ S as FILTER_ALREADY_APPLIED_MESSAGE,
20
+ A as NO_DATA_TO_UPDATE,
21
+ T as NO_DATA_TO_UPDATE_MESSAGE,
22
+ d as SOCIAL_NETWORK_COLOR_VALUES,
23
+ I as SOCIAL_NETWORK_ICON_COMPONENTS,
24
+ u as SOCIAL_NETWORK_VALUES
7
25
  };
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;
@@ -372,7 +372,7 @@ declare interface ProfileMetric {
372
372
 
373
373
  declare interface ProposalInterface {
374
374
  businessUnit: "enterprise" | "artistic";
375
- type: "inbound" | "outbound";
375
+ origin: "inbound" | "outbound";
376
376
  contact: string;
377
377
  initialScope: string;
378
378
  profile: ProfileInterface;
@@ -473,6 +473,7 @@ declare interface SaleInterface {
473
473
  };
474
474
  closedAt?: string;
475
475
  isDollarNegotiation: boolean;
476
+ type: "new" | "renewal" | "upsell";
476
477
  }
477
478
 
478
479
  declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
@@ -505,6 +506,7 @@ declare interface UserInterface {
505
506
  };
506
507
  company?: {
507
508
  legalName?: string;
509
+ email?: string;
508
510
  document?: string;
509
511
  bank?: string;
510
512
  agency?: string;
@@ -97,6 +97,7 @@ declare interface UserInterface {
97
97
  };
98
98
  company?: {
99
99
  legalName?: string;
100
+ email?: string;
100
101
  document?: string;
101
102
  bank?: string;
102
103
  agency?: string;
package/dist/events.js CHANGED
@@ -1,13 +1,13 @@
1
- import { preFormatPercentage as s } from "./utils.js";
1
+ import { h as o } from "./chuncks/format.util.CM-_4aqn.js";
2
2
  const i = (t, a) => {
3
- const e = t.target.value, n = s(e);
3
+ const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
5
5
  }, f = (t, a) => {
6
6
  const e = t.target, n = e.value, c = e.selectionStart, r = e.selectionEnd;
7
7
  if (c === r && t.key === "Backspace") {
8
- const u = n.slice(0, -2), o = s(u);
9
- if (o === !1) return;
10
- a(o);
8
+ const u = n.slice(0, -2), s = o(u);
9
+ if (s === !1) return;
10
+ a(s);
11
11
  }
12
12
  };
13
13
  export {
@@ -49,6 +49,7 @@ declare interface UserInterface {
49
49
  };
50
50
  company?: {
51
51
  legalName?: string;
52
+ email?: string;
52
53
  document?: string;
53
54
  bank?: string;
54
55
  agency?: string;
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;
@@ -372,7 +372,7 @@ declare interface ProfileMetric {
372
372
 
373
373
  declare interface ProposalInterface {
374
374
  businessUnit: "enterprise" | "artistic";
375
- type: "inbound" | "outbound";
375
+ origin: "inbound" | "outbound";
376
376
  contact: string;
377
377
  initialScope: string;
378
378
  profile: ProfileInterface;
@@ -473,6 +473,7 @@ declare interface SaleInterface {
473
473
  };
474
474
  closedAt?: string;
475
475
  isDollarNegotiation: boolean;
476
+ type: "new" | "renewal" | "upsell";
476
477
  }
477
478
 
478
479
  declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
@@ -505,6 +506,7 @@ declare interface UserInterface {
505
506
  };
506
507
  company?: {
507
508
  legalName?: string;
509
+ email?: string;
508
510
  document?: string;
509
511
  bank?: string;
510
512
  agency?: string;
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as i, c as a, B as m } from "./chuncks/timeline.DfIC0519.js";
1
+ import { a as i, c as a, B as m } from "./chuncks/scroll-area.CEAE-ZuD.js";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { useNavigate as d } from "react-router-dom";
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;
@@ -372,7 +372,7 @@ declare interface ProfileMetric {
372
372
 
373
373
  declare interface ProposalInterface {
374
374
  businessUnit: "enterprise" | "artistic";
375
- type: "inbound" | "outbound";
375
+ origin: "inbound" | "outbound";
376
376
  contact: string;
377
377
  initialScope: string;
378
378
  profile: ProfileInterface;
@@ -473,6 +473,7 @@ declare interface SaleInterface {
473
473
  };
474
474
  closedAt?: string;
475
475
  isDollarNegotiation: boolean;
476
+ type: "new" | "renewal" | "upsell";
476
477
  }
477
478
 
478
479
  declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
@@ -505,6 +506,7 @@ declare interface UserInterface {
505
506
  };
506
507
  company?: {
507
508
  legalName?: string;
509
+ email?: string;
508
510
  document?: string;
509
511
  bank?: string;
510
512
  agency?: string;
package/dist/profile.d.ts CHANGED
@@ -49,6 +49,7 @@ declare interface UserInterface {
49
49
  };
50
50
  company?: {
51
51
  legalName?: string;
52
+ email?: string;
52
53
  document?: string;
53
54
  bank?: string;
54
55
  agency?: string;
@@ -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;
@@ -372,7 +372,7 @@ declare interface ProfileMetric {
372
372
 
373
373
  declare interface ProposalInterface {
374
374
  businessUnit: "enterprise" | "artistic";
375
- type: "inbound" | "outbound";
375
+ origin: "inbound" | "outbound";
376
376
  contact: string;
377
377
  initialScope: string;
378
378
  profile: ProfileInterface;
@@ -473,6 +473,7 @@ declare interface SaleInterface {
473
473
  };
474
474
  closedAt?: string;
475
475
  isDollarNegotiation: boolean;
476
+ type: "new" | "renewal" | "upsell";
476
477
  }
477
478
 
478
479
  declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
@@ -505,6 +506,7 @@ declare interface UserInterface {
505
506
  };
506
507
  company?: {
507
508
  legalName?: string;
509
+ email?: string;
508
510
  document?: string;
509
511
  bank?: string;
510
512
  agency?: string;
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;
@@ -372,7 +372,7 @@ declare interface ProfileMetric {
372
372
 
373
373
  export declare interface ProposalInterface {
374
374
  businessUnit: "enterprise" | "artistic";
375
- type: "inbound" | "outbound";
375
+ origin: "inbound" | "outbound";
376
376
  contact: string;
377
377
  initialScope: string;
378
378
  profile: ProfileInterface;
@@ -473,6 +473,7 @@ export declare interface SaleInterface {
473
473
  };
474
474
  closedAt?: string;
475
475
  isDollarNegotiation: boolean;
476
+ type: "new" | "renewal" | "upsell";
476
477
  }
477
478
 
478
479
  export declare type SalePaymentMethod = "transfer" | "direct" | "debit_note" | "client";
@@ -505,6 +506,7 @@ declare interface UserInterface {
505
506
  };
506
507
  company?: {
507
508
  legalName?: string;
509
+ email?: string;
508
510
  document?: string;
509
511
  bank?: string;
510
512
  agency?: string;
package/dist/shadcn.d.ts CHANGED
@@ -19,6 +19,7 @@ import { DialogProps } from '@radix-ui/react-dialog';
19
19
  import { DialogTitleProps } from '@radix-ui/react-dialog';
20
20
  import { DialogTriggerProps } from '@radix-ui/react-dialog';
21
21
  import { Drawer as Drawer_2 } from 'vaul';
22
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
22
23
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
23
24
  import { JSX } from 'react/jsx-runtime';
24
25
  import * as LabelPrimitive from '@radix-ui/react-label';
@@ -29,6 +30,7 @@ import { Portal } from 'vaul';
29
30
  import * as ProgressPrimitive from '@radix-ui/react-progress';
30
31
  import * as React_2 from 'react';
31
32
  import * as RechartsPrimitive from 'recharts';
33
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
32
34
  import * as SelectPrimitive from '@radix-ui/react-select';
33
35
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
34
36
  import * as TabsPrimitive from '@radix-ui/react-tabs';
@@ -301,6 +303,45 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogT
301
303
 
302
304
  export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
303
305
 
306
+ export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
307
+
308
+ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
309
+
310
+ export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
311
+
312
+ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
313
+
314
+ export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
315
+ inset?: boolean;
316
+ } & React_2.RefAttributes<HTMLDivElement>>;
317
+
318
+ export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
319
+ inset?: boolean;
320
+ } & React_2.RefAttributes<HTMLDivElement>>;
321
+
322
+ export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
323
+
324
+ export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
325
+
326
+ export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
327
+
328
+ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
329
+
330
+ export declare const DropdownMenuShortcut: {
331
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX.Element;
332
+ displayName: string;
333
+ };
334
+
335
+ export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
336
+
337
+ export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
338
+
339
+ export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
340
+ inset?: boolean;
341
+ } & React_2.RefAttributes<HTMLDivElement>>;
342
+
343
+ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
344
+
304
345
  export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
305
346
 
306
347
  export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
@@ -377,6 +418,10 @@ declare interface ProgressPrimitiveIndicatorProps {
377
418
  indicatorsClassName?: string;
378
419
  }
379
420
 
421
+ export declare const ScrollArea: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
422
+
423
+ export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
424
+
380
425
  export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
381
426
 
382
427
  export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;