@grapadigital/shared-app-modules 0.0.65 → 0.0.67

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.
@@ -7,6 +7,12 @@ import { LucideIcon } from 'lucide-react';
7
7
  import * as React_2 from 'react';
8
8
  import { RefAttributes } from 'react';
9
9
 
10
+ declare interface AgencyCommission {
11
+ ranges: Range_2[];
12
+ startDate: string;
13
+ endDate: string;
14
+ }
15
+
10
16
  declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
11
17
 
12
18
  declare interface CardIconProps extends default_2.HTMLAttributes<HTMLDivElement> {
@@ -16,6 +22,41 @@ declare interface CardIconProps extends default_2.HTMLAttributes<HTMLDivElement>
16
22
  filled?: boolean;
17
23
  }
18
24
 
25
+ declare interface ClientInterface extends UserInterface {
26
+ clusters?: ClusterInterface[];
27
+ companies?: CompanyInterface[];
28
+ agencyCommission?: AgencyCommission[];
29
+ hasAgencyCommission?: boolean;
30
+ type?: "agency" | "brand";
31
+ niches: Niche[];
32
+ }
33
+
34
+ export declare const ClientSelectInput: default_2.ForwardRefExoticComponent<Omit<ClientSelectInputProps, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
35
+
36
+ declare interface ClientSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
37
+ queryKey?: string[];
38
+ onValueChange: (client: ClientInterface) => void;
39
+ }
40
+
41
+ declare interface ClusterInterface {
42
+ key: string;
43
+ label: string;
44
+ }
45
+
46
+ declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>> & {
47
+ ref?: React_2.Ref<HTMLInputElement>;
48
+ } & {
49
+ asChild?: boolean;
50
+ }, "asChild" | "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
51
+ value?: string;
52
+ onValueChange?: (search: string) => void;
53
+ } & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
54
+
55
+ declare interface CompanyInterface {
56
+ legalName: string;
57
+ document: string;
58
+ }
59
+
19
60
  export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
20
61
 
21
62
  declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
@@ -63,6 +104,12 @@ declare interface ListRowProps {
63
104
  enableHoverableContent?: boolean;
64
105
  }
65
106
 
107
+ declare interface Niche {
108
+ id: string;
109
+ name: string;
110
+ parentId?: null | string;
111
+ }
112
+
66
113
  export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
67
114
 
68
115
  declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
@@ -82,6 +129,12 @@ export declare const PageHeaderDescription: default_2.ForwardRefExoticComponent<
82
129
 
83
130
  export declare const PageHeaderTitle: default_2.ForwardRefExoticComponent<default_2.HTMLAttributes<HTMLHeadingElement> & default_2.RefAttributes<HTMLHeadingElement>>;
84
131
 
132
+ declare interface Range_2 {
133
+ startValue: number;
134
+ endValue: number;
135
+ percent: number;
136
+ }
137
+
85
138
  declare const sizeMap: {
86
139
  xs: string;
87
140
  sm: string;
@@ -90,4 +143,38 @@ declare const sizeMap: {
90
143
  xl: string;
91
144
  };
92
145
 
146
+ declare interface UserInterface {
147
+ _id?: string;
148
+ name?: string;
149
+ document?: string;
150
+ email?: string;
151
+ phone?: string;
152
+ picture?: string;
153
+ address?: {
154
+ zipcode?: string;
155
+ city?: string;
156
+ state?: string;
157
+ street?: string;
158
+ number?: string;
159
+ complement?: string;
160
+ };
161
+ company?: {
162
+ legalName?: string;
163
+ document?: string;
164
+ bank?: string;
165
+ agency?: string;
166
+ account?: string;
167
+ digit?: string;
168
+ pix?: string;
169
+ };
170
+ individual?: {
171
+ rg?: string;
172
+ cpf?: string;
173
+ birthday?: string;
174
+ maritalStatus?: string;
175
+ nationality?: string;
176
+ profession?: string;
177
+ };
178
+ }
179
+
93
180
  export { }