@grapadigital/shared-app-modules 0.0.43
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/README.md +29 -0
- package/dist/action.d.ts +516 -0
- package/dist/action.js +1 -0
- package/dist/assets/accordion.css +1 -0
- package/dist/chuncks/accordion.C3syX7hT.js +10898 -0
- package/dist/chuncks/card.BZIarLnp.js +90 -0
- package/dist/client.d.ts +66 -0
- package/dist/client.js +1 -0
- package/dist/components.d.ts +83 -0
- package/dist/components.js +700 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +5 -0
- package/dist/content.d.ts +516 -0
- package/dist/content.js +1 -0
- package/dist/contract.d.ts +19 -0
- package/dist/contract.js +1 -0
- package/dist/curation.d.ts +110 -0
- package/dist/curation.js +1 -0
- package/dist/dataservices.d.ts +5 -0
- package/dist/dataservices.js +1 -0
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.js +15 -0
- package/dist/influencer.d.ts +69 -0
- package/dist/influencer.js +1 -0
- package/dist/invoice.d.ts +516 -0
- package/dist/invoice.js +1 -0
- package/dist/libs.d.ts +1 -0
- package/dist/libs.js +1 -0
- package/dist/log.d.ts +20 -0
- package/dist/log.js +1 -0
- package/dist/pages.d.ts +14 -0
- package/dist/pages.js +52 -0
- package/dist/payment.d.ts +516 -0
- package/dist/payment.js +1 -0
- package/dist/profile.d.ts +69 -0
- package/dist/profile.js +1 -0
- package/dist/project.d.ts +42 -0
- package/dist/project.js +1 -0
- package/dist/recruitment.d.ts +516 -0
- package/dist/recruitment.js +1 -0
- package/dist/sale.d.ts +516 -0
- package/dist/sale.js +1 -0
- package/dist/shadcn.d.ts +370 -0
- package/dist/shadcn.js +3447 -0
- package/dist/supplier.d.ts +38 -0
- package/dist/supplier.js +1 -0
- package/dist/user.d.ts +35 -0
- package/dist/user.js +1 -0
- package/dist/utils.d.ts +76 -0
- package/dist/utils.js +41 -0
- package/package.json +156 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { j as r, c as s } from "./accordion.C3syX7hT.js";
|
|
2
|
+
import "react";
|
|
3
|
+
function d({ className: a, ...t }) {
|
|
4
|
+
return /* @__PURE__ */ r.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "card",
|
|
8
|
+
className: s(
|
|
9
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
10
|
+
a
|
|
11
|
+
),
|
|
12
|
+
...t
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function n({ className: a, ...t }) {
|
|
17
|
+
return /* @__PURE__ */ r.jsx(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "card-header",
|
|
21
|
+
className: s(
|
|
22
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
23
|
+
a
|
|
24
|
+
),
|
|
25
|
+
...t
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function c({ className: a, ...t }) {
|
|
30
|
+
return /* @__PURE__ */ r.jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "card-title",
|
|
34
|
+
className: s("leading-none font-semibold", a),
|
|
35
|
+
...t
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function i({ className: a, ...t }) {
|
|
40
|
+
return /* @__PURE__ */ r.jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "card-description",
|
|
44
|
+
className: s("text-muted-foreground text-sm", a),
|
|
45
|
+
...t
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function l({ className: a, ...t }) {
|
|
50
|
+
return /* @__PURE__ */ r.jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "card-action",
|
|
54
|
+
className: s(
|
|
55
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
56
|
+
a
|
|
57
|
+
),
|
|
58
|
+
...t
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function u({ className: a, ...t }) {
|
|
63
|
+
return /* @__PURE__ */ r.jsx(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "card-content",
|
|
67
|
+
className: s("px-6", a),
|
|
68
|
+
...t
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
function f({ className: a, ...t }) {
|
|
73
|
+
return /* @__PURE__ */ r.jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
"data-slot": "card-footer",
|
|
77
|
+
className: s("flex items-center px-6 [.border-t]:pt-6", a),
|
|
78
|
+
...t
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
d as C,
|
|
84
|
+
u as a,
|
|
85
|
+
n as b,
|
|
86
|
+
f as c,
|
|
87
|
+
c as d,
|
|
88
|
+
l as e,
|
|
89
|
+
i as f
|
|
90
|
+
};
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare interface AgencyCommission {
|
|
2
|
+
ranges: Range_2[];
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare interface ClientInterface extends UserInterface {
|
|
8
|
+
clusters?: ClusterInterface[];
|
|
9
|
+
companies?: CompanyInterface[];
|
|
10
|
+
agencyCommission?: AgencyCommission[];
|
|
11
|
+
hasAgencyCommission?: boolean;
|
|
12
|
+
type?: "agency" | "brand";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export declare interface ClusterInterface {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare interface CompanyInterface {
|
|
21
|
+
legalName: string;
|
|
22
|
+
document: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare interface Range_2 {
|
|
26
|
+
startValue: number;
|
|
27
|
+
endValue: number;
|
|
28
|
+
percent: number;
|
|
29
|
+
}
|
|
30
|
+
export { Range_2 as Range }
|
|
31
|
+
|
|
32
|
+
declare interface UserInterface {
|
|
33
|
+
_id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
document?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
phone?: string;
|
|
38
|
+
picture?: string;
|
|
39
|
+
address?: {
|
|
40
|
+
zipcode?: string;
|
|
41
|
+
city?: string;
|
|
42
|
+
state?: string;
|
|
43
|
+
street?: string;
|
|
44
|
+
number?: string;
|
|
45
|
+
complement?: string;
|
|
46
|
+
};
|
|
47
|
+
company?: {
|
|
48
|
+
legalName?: string;
|
|
49
|
+
document?: string;
|
|
50
|
+
bank?: string;
|
|
51
|
+
agency?: string;
|
|
52
|
+
account?: string;
|
|
53
|
+
digit?: string;
|
|
54
|
+
pix?: string;
|
|
55
|
+
};
|
|
56
|
+
individual?: {
|
|
57
|
+
rg?: string;
|
|
58
|
+
cpf?: string;
|
|
59
|
+
birthday?: string;
|
|
60
|
+
maritalStatus?: string;
|
|
61
|
+
nationality?: string;
|
|
62
|
+
profession?: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { }
|
package/dist/client.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { default as default_3 } from 'tailwindcss/colors';
|
|
3
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
|
+
import { LucideIcon } from 'lucide-react';
|
|
7
|
+
import * as React_2 from 'react';
|
|
8
|
+
import { RefAttributes } from 'react';
|
|
9
|
+
|
|
10
|
+
declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare interface CardIconProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
size?: keyof typeof sizeMap;
|
|
14
|
+
color: keyof typeof default_3;
|
|
15
|
+
icon: LucideIcon;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
|
|
21
|
+
icon?: LucideIcon;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
onRetry?: () => void;
|
|
25
|
+
tip?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare function FieldLabelWithAsterisk({ className, ...props }: React.ComponentProps<typeof LabelWithAsterisk>): JSX.Element;
|
|
29
|
+
|
|
30
|
+
export declare function IconBadge({ size, color, className, icon: Icon }: CardIconProps): JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const Image_2: ForwardRefExoticComponent<ImageProps & RefAttributes<HTMLImageElement>>;
|
|
33
|
+
export { Image_2 as Image }
|
|
34
|
+
|
|
35
|
+
declare interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
36
|
+
alternativeSrc?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare const LabelWithAsterisk: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & LabelWithAsteriskProps & React_2.RefAttributes<HTMLLabelElement>>;
|
|
40
|
+
|
|
41
|
+
declare interface LabelWithAsteriskProps {
|
|
42
|
+
asterisk?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export declare function List({ children, className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
46
|
+
|
|
47
|
+
export declare function ListRow({ children, className }: React.ComponentProps<"div">): JSX.Element;
|
|
48
|
+
|
|
49
|
+
export declare function ListRowTooltip({ tooltipTitle, tooltipDescription, children, className, }: ListRowTooltipProps): JSX.Element;
|
|
50
|
+
|
|
51
|
+
declare interface ListRowTooltipProps extends React.ComponentProps<"span"> {
|
|
52
|
+
tooltipTitle?: string;
|
|
53
|
+
tooltipDescription?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
|
|
59
|
+
icon?: LucideIcon;
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
tip?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare const PageHeader: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & default_2.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
|
|
67
|
+
export declare const PageHeaderActions: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & default_2.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
|
|
69
|
+
export declare const PageHeaderContent: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLDivElement> & default_2.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
|
|
71
|
+
export declare const PageHeaderDescription: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLParagraphElement> & default_2.RefAttributes<HTMLParagraphElement>>;
|
|
72
|
+
|
|
73
|
+
export declare const PageHeaderTitle: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLHeadingElement> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
74
|
+
|
|
75
|
+
declare const sizeMap: {
|
|
76
|
+
xs: string;
|
|
77
|
+
sm: string;
|
|
78
|
+
md: string;
|
|
79
|
+
lg: string;
|
|
80
|
+
xl: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export { }
|