@grapadigital/shared-app-modules 0.0.107 → 0.0.109

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 "./_sale-select-input.component.nDk7CYQK.js";
1
+ import { b as n } from "./field-textarea.component.j5MsRUzc.js";
2
2
  function m(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -12419,127 +12419,127 @@ const Qx = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f(
12419
12419
  ));
12420
12420
  Qx.displayName = kd.displayName;
12421
12421
  export {
12422
- sC as $,
12423
- oC as A,
12422
+ RC as $,
12423
+ gC as A,
12424
12424
  pp as B,
12425
- Lc as C,
12426
- aC as D,
12427
- Wg as E,
12428
- Vg as F,
12429
- Ug as G,
12430
- MC as H,
12425
+ Vp as C,
12426
+ nv as D,
12427
+ vC as E,
12428
+ bC as F,
12429
+ wC as G,
12430
+ yC as H,
12431
12431
  mp as I,
12432
- Gg as J,
12433
- jg as K,
12432
+ xC as J,
12433
+ bv as K,
12434
12434
  bp as L,
12435
- cl as M,
12436
- ul as N,
12437
- nv as O,
12438
- CC as P,
12439
- lC as Q,
12440
- Oi as R,
12435
+ wv as M,
12436
+ yv as N,
12437
+ xv as O,
12438
+ Cv as P,
12439
+ Sv as Q,
12440
+ Rv as R,
12441
12441
  Cp as S,
12442
- xv as T,
12443
- Nl as U,
12444
- fC as V,
12445
- uC as W,
12446
- cC as X,
12447
- Tl as Y,
12448
- rv as Z,
12449
- dC as _,
12442
+ Sp as T,
12443
+ Pv as U,
12444
+ Ev as V,
12445
+ Tv as W,
12446
+ Nv as X,
12447
+ CC as Y,
12448
+ SC as Z,
12449
+ Wv as _,
12450
12450
  st as a,
12451
- Ux as a$,
12452
- pC as a0,
12453
- mC as a1,
12454
- hC as a2,
12455
- gC as a3,
12456
- vC as a4,
12457
- bC as a5,
12458
- wC as a6,
12459
- yC as a7,
12460
- xC as a8,
12461
- bv as a9,
12462
- Jw as aA,
12463
- uy as aB,
12464
- OC as aC,
12465
- fy as aD,
12466
- $C as aE,
12467
- py as aF,
12468
- dy as aG,
12469
- LC as aH,
12470
- FC as aI,
12471
- HC as aJ,
12472
- BC as aK,
12473
- zC as aL,
12474
- WC as aM,
12475
- VC as aN,
12476
- UC as aO,
12477
- GC as aP,
12478
- jC as aQ,
12479
- Gx as aR,
12480
- jx as aS,
12481
- Kx as aT,
12482
- Yx as aU,
12483
- Xx as aV,
12484
- qx as aW,
12485
- Zx as aX,
12486
- KC as aY,
12487
- YC as aZ,
12488
- XC as a_,
12489
- wv as aa,
12490
- yv as ab,
12491
- Rv as ac,
12492
- Nv as ad,
12493
- RC as ae,
12494
- PC as af,
12495
- TC as ag,
12496
- cb as ah,
12497
- EC as ai,
12498
- Fb as aj,
12499
- Hb as ak,
12500
- Nc as al,
12501
- NC as am,
12502
- AC as an,
12503
- Bb as ao,
12504
- zb as ap,
12505
- Wb as aq,
12506
- Vb as ar,
12507
- Ub as as,
12508
- _C as at,
12509
- xw as au,
12510
- ww as av,
12511
- kC as aw,
12512
- Bw as ax,
12513
- zw as ay,
12514
- Ww as az,
12515
- DC as b,
12516
- Vx as b0,
12517
- qC as b1,
12518
- Jx as b2,
12519
- Md as b3,
12520
- Qx as b4,
12451
+ Oi as a$,
12452
+ PC as a0,
12453
+ TC as a1,
12454
+ cb as a2,
12455
+ EC as a3,
12456
+ Fb as a4,
12457
+ Hb as a5,
12458
+ Nc as a6,
12459
+ NC as a7,
12460
+ AC as a8,
12461
+ Bb as a9,
12462
+ dy as aA,
12463
+ LC as aB,
12464
+ FC as aC,
12465
+ HC as aD,
12466
+ BC as aE,
12467
+ zC as aF,
12468
+ WC as aG,
12469
+ VC as aH,
12470
+ UC as aI,
12471
+ GC as aJ,
12472
+ jC as aK,
12473
+ Gx as aL,
12474
+ jx as aM,
12475
+ Kx as aN,
12476
+ Yx as aO,
12477
+ Xx as aP,
12478
+ qx as aQ,
12479
+ Zx as aR,
12480
+ KC as aS,
12481
+ YC as aT,
12482
+ XC as aU,
12483
+ Ux as aV,
12484
+ Vx as aW,
12485
+ qC as aX,
12486
+ Jx as aY,
12487
+ Md as aZ,
12488
+ Qx as a_,
12489
+ zb as aa,
12490
+ Wb as ab,
12491
+ Vb as ac,
12492
+ Ub as ad,
12493
+ Lc as ae,
12494
+ _C as af,
12495
+ hw as ag,
12496
+ gw as ah,
12497
+ vw as ai,
12498
+ bw as aj,
12499
+ yw as ak,
12500
+ xw as al,
12501
+ ww as am,
12502
+ kC as an,
12503
+ Bw as ao,
12504
+ zw as ap,
12505
+ Ww as aq,
12506
+ Jw as ar,
12507
+ MC as as,
12508
+ DC as at,
12509
+ ly as au,
12510
+ uy as av,
12511
+ OC as aw,
12512
+ fy as ax,
12513
+ $C as ay,
12514
+ py as az,
12515
+ ki as b,
12516
+ lp as b0,
12517
+ Ro as b1,
12518
+ Eo as b2,
12519
+ np as b3,
12520
+ fp as b4,
12521
12521
  I as c,
12522
- ly as d,
12523
- Cv as e,
12524
- Ev as f,
12525
- Pv as g,
12526
- Sv as h,
12527
- Tv as i,
12528
- SC as j,
12529
- Wv as k,
12530
- hw as l,
12531
- gw as m,
12532
- vw as n,
12533
- lp as o,
12534
- bw as p,
12535
- yw as q,
12536
- Ro as r,
12537
- ki as s,
12538
- np as t,
12539
- Eo as u,
12540
- fp as v,
12541
- Sp as w,
12542
- Wf as x,
12543
- Vp as y,
12544
- rC as z
12522
+ Wf as d,
12523
+ rC as e,
12524
+ oC as f,
12525
+ aC as g,
12526
+ Wg as h,
12527
+ Vg as i,
12528
+ Ug as j,
12529
+ Gg as k,
12530
+ jg as l,
12531
+ cl as m,
12532
+ ul as n,
12533
+ lC as o,
12534
+ Nl as p,
12535
+ fC as q,
12536
+ uC as r,
12537
+ cC as s,
12538
+ Tl as t,
12539
+ rv as u,
12540
+ dC as v,
12541
+ sC as w,
12542
+ pC as x,
12543
+ mC as y,
12544
+ hC as z
12545
12545
  };
@@ -1,5 +1,7 @@
1
+ import { ControllerFieldState } from 'react-hook-form';
1
2
  import { default as default_2 } from 'react';
2
3
  import { default as default_3 } from 'tailwindcss/colors';
4
+ import { FieldSelect } from './ui/fields/field-select.component';
3
5
  import { ForwardRefExoticComponent } from 'react';
4
6
  import { HoverCardProps } from '@radix-ui/react-hover-card';
5
7
  import { JSX } from 'react/jsx-runtime';
@@ -8,6 +10,7 @@ import { LucideIcon } from 'lucide-react';
8
10
  import { LucideProps } from 'lucide-react';
9
11
  import * as React_2 from 'react';
10
12
  import { RefAttributes } from 'react';
13
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
11
14
 
12
15
  declare interface ActionInterface {
13
16
  _id?: string;
@@ -44,6 +47,10 @@ declare interface ActionInterface {
44
47
  shopping?: string;
45
48
  project?: string;
46
49
  type?: "partner" | "exclusive";
50
+ notes?: NoteInterface[];
51
+ tracking?: TrackingInterface;
52
+ briefing?: BriefingInterface;
53
+ tags?: string[];
47
54
  }
48
55
 
49
56
  declare interface AgencyCommission {
@@ -62,6 +69,13 @@ declare interface Attachments {
62
69
  name: string;
63
70
  }
64
71
 
72
+ declare interface BriefingInterface {
73
+ objective: string;
74
+ budget: number;
75
+ briefing: string;
76
+ brandName: string;
77
+ }
78
+
65
79
  declare type CalculatorType = "withPreDefinedBudget" | "withoutPreDefinedBudget" | "bourbon";
66
80
 
67
81
  export declare const CampaignsSelectInput: default_2.ForwardRefExoticComponent<Omit<CampaignsSelectInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
@@ -224,8 +238,74 @@ declare interface Exchange {
224
238
  description?: string;
225
239
  }
226
240
 
241
+ export declare const FieldCalendar: ForwardRefExoticComponent<Omit<FieldCalendarProps, "ref"> & RefAttributes<HTMLButtonElement>>;
242
+
243
+ declare interface FieldCalendarProps extends ControllerFieldState {
244
+ label?: string;
245
+ name?: string;
246
+ description?: string;
247
+ asterisk?: boolean;
248
+ disabled?: boolean;
249
+ value?: Date;
250
+ onChange: (...event: any[]) => void;
251
+ ref?: React.Ref<HTMLButtonElement> | undefined;
252
+ }
253
+
254
+ export declare const FieldClientSelectInput: ForwardRefExoticComponent<Omit<FieldClientSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
255
+
256
+ declare type FieldClientSelectInputProps = React.ComponentProps<"input"> & ControllerFieldState & {
257
+ label?: string;
258
+ description?: string;
259
+ asterisk?: boolean;
260
+ onValueChange: (clientId: ClientInterface) => void;
261
+ value?: string;
262
+ ref?: React.Ref<HTMLInputElement> | undefined;
263
+ };
264
+
265
+ export declare const FieldInput: ForwardRefExoticComponent<Omit<FieldInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
266
+
267
+ declare type FieldInputProps = React.ComponentProps<"input"> & ControllerFieldState & {
268
+ label?: string;
269
+ description?: string;
270
+ asterisk?: boolean;
271
+ value?: string;
272
+ };
273
+
227
274
  export declare function FieldLabelWithAsterisk({ className, ...props }: React.ComponentProps<typeof LabelWithAsterisk>): JSX.Element;
228
275
 
276
+ export declare const FieldSaleSelectInput: ForwardRefExoticComponent<Omit<FieldSaleSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
277
+
278
+ declare type FieldSaleSelectInputProps = React.ComponentProps<"input"> & ControllerFieldState & {
279
+ label?: string;
280
+ description?: string;
281
+ asterisk?: boolean;
282
+ onValueChange: (sale: SaleInterface) => void;
283
+ value?: string;
284
+ ref?: React.Ref<HTMLInputElement> | undefined;
285
+ };
286
+
287
+ export { FieldSelect }
288
+
289
+ export declare const FieldSwitch: ForwardRefExoticComponent<Omit<FieldSwitchProps, "ref"> & RefAttributes<HTMLButtonElement>>;
290
+
291
+ declare type FieldSwitchProps = Omit<React.ComponentProps<typeof Switch>, "value"> & ControllerFieldState & {
292
+ label?: string;
293
+ description?: string;
294
+ asterisk?: boolean;
295
+ value?: boolean;
296
+ onChange?(checked: boolean): void;
297
+ };
298
+
299
+ export declare const FieldTextarea: ForwardRefExoticComponent<Omit<FieldTextareaProps, "ref"> & RefAttributes<HTMLTextAreaElement>>;
300
+
301
+ declare type FieldTextareaProps = React.ComponentProps<"textarea"> & ControllerFieldState & {
302
+ label?: string;
303
+ description?: string;
304
+ asterisk?: boolean;
305
+ value?: string;
306
+ ref?: React.Ref<HTMLTextAreaElement> | undefined;
307
+ };
308
+
229
309
  declare interface FormalizationInterface {
230
310
  billingTriggerEvent: string;
231
311
  estimatedIssueDate: string;
@@ -418,6 +498,12 @@ declare interface Note_3 {
418
498
  createdAt: string;
419
499
  }
420
500
 
501
+ declare interface NoteInterface {
502
+ text: string;
503
+ owner: string;
504
+ createdAt: string;
505
+ }
506
+
421
507
  export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
422
508
 
423
509
  declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
@@ -655,6 +741,8 @@ declare const sizeMap: {
655
741
  declare interface SupplierInterface extends UserInterface {
656
742
  }
657
743
 
744
+ declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
745
+
658
746
  export declare function TableSkeleton({ columns, rows, hasActions, actionsCount, }: TableSkeletonProps): JSX.Element;
659
747
 
660
748
  declare interface TableSkeletonProps {
@@ -666,6 +754,14 @@ declare interface TableSkeletonProps {
666
754
 
667
755
  export declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
668
756
 
757
+ declare interface TrackingInterface {
758
+ hashtag: string[];
759
+ mentions: string[];
760
+ keyword: string[];
761
+ startDate: string;
762
+ endDate: string;
763
+ }
764
+
669
765
  declare interface UserInterface {
670
766
  _id?: string;
671
767
  name?: string;