@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.
- package/dist/action.d.ts +25 -0
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/calendar.BwOHd4z9.js +2129 -0
- package/dist/chuncks/{card.MoBI5Tfr.js → card.D5PkIOr_.js} +7 -7
- package/dist/chuncks/field-textarea.component.j5MsRUzc.js +1675 -0
- package/dist/chuncks/{format.util.CLM-Xmxv.js → format.util.CxZ87QTi.js} +1 -1
- package/dist/chuncks/{switch.B81KR-oY.js → switch.CRijOkty.js} +117 -117
- package/dist/components.d.ts +96 -0
- package/dist/components.js +98 -110
- package/dist/constants.js +2 -2
- package/dist/content.d.ts +25 -0
- package/dist/events.js +1 -1
- package/dist/invoice.d.ts +25 -0
- package/dist/pages.js +1 -1
- package/dist/payment.d.ts +25 -0
- package/dist/recruitment.d.ts +25 -0
- package/dist/sale.d.ts +25 -0
- package/dist/shadcn.js +232 -2339
- package/dist/utils.js +2 -2
- package/package.json +2 -1
- package/dist/chuncks/_sale-select-input.component.nDk7CYQK.js +0 -1093
|
@@ -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
|
-
|
|
12423
|
-
|
|
12422
|
+
RC as $,
|
|
12423
|
+
gC as A,
|
|
12424
12424
|
pp as B,
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
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
|
-
|
|
12433
|
-
|
|
12432
|
+
xC as J,
|
|
12433
|
+
bv as K,
|
|
12434
12434
|
bp as L,
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
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
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
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
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
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
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
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
|
};
|
package/dist/components.d.ts
CHANGED
|
@@ -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;
|