lecom-ui 3.7.0 → 3.8.2
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/components/DataTable/DataTable.js +111 -31
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/Header/HelpMenu.js +4 -4
- package/dist/components/Header/ModulesMenu.js +5 -4
- package/dist/components/Header/SocialMenu.js +2 -1
- package/dist/components/Header/UserMenu.js +5 -5
- package/dist/components/Pagination/Pagination.js +64 -11
- package/dist/components/Sidebar/Sidebar.js +2 -4
- package/dist/components/Tooltip/Tooltip.js +2 -1
- package/dist/hooks/useIsMobile.js +20 -0
- package/dist/hooks/usePagination.js +97 -0
- package/dist/index.d.ts +201 -155
- package/dist/index.js +4 -2
- package/dist/style.min.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
6
|
+
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
6
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
9
|
import { CustomStyles as CustomStyles$2 } from '@/components/Button';
|
|
@@ -16,15 +17,15 @@ declare const accordionVariants: (props?: ({
|
|
|
16
17
|
variant?: "default" | null | undefined;
|
|
17
18
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
18
19
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
20
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
22
23
|
variant?: "default" | null | undefined;
|
|
23
24
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
24
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
25
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
27
|
disabled?: boolean;
|
|
27
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
28
29
|
|
|
29
30
|
declare const buttonVariants: (props?: ({
|
|
30
31
|
variant?: "filled" | "outlined" | "tonal" | "ghost" | null | undefined;
|
|
@@ -49,26 +50,26 @@ interface CustomStyles$1 {
|
|
|
49
50
|
opacity: number;
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
53
|
+
interface ButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
53
54
|
customStyles?: CustomStyles$1;
|
|
54
55
|
isActive?: boolean;
|
|
55
56
|
}
|
|
56
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
57
58
|
|
|
58
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
62
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
64
65
|
|
|
65
66
|
declare const checkboxVariants: (props?: ({
|
|
66
67
|
variant?: "default" | null | undefined;
|
|
67
68
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
68
|
-
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
69
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
69
70
|
indeterminate?: boolean;
|
|
70
71
|
}
|
|
71
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
72
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
72
73
|
|
|
73
74
|
type Transparent = 'transparent';
|
|
74
75
|
type Black = 'black';
|
|
@@ -211,82 +212,175 @@ declare const colors: {
|
|
|
211
212
|
};
|
|
212
213
|
};
|
|
213
214
|
|
|
214
|
-
interface CadastroFacilProps extends React.SVGAttributes<SVGSVGElement> {
|
|
215
|
+
interface CadastroFacilProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
215
216
|
fillColor?: FillColor;
|
|
216
217
|
size?: string | number;
|
|
217
218
|
}
|
|
218
|
-
declare const CadastroFacil: React.ForwardRefExoticComponent<CadastroFacilProps & React.RefAttributes<SVGSVGElement>>;
|
|
219
|
+
declare const CadastroFacil: React$1.ForwardRefExoticComponent<CadastroFacilProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
219
220
|
|
|
220
|
-
interface LogoLecomProps extends React.SVGAttributes<SVGSVGElement> {
|
|
221
|
+
interface LogoLecomProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
221
222
|
fillColor?: FillColor;
|
|
222
223
|
size?: string | number;
|
|
223
224
|
}
|
|
224
|
-
declare const LogoLecom: React.ForwardRefExoticComponent<LogoLecomProps & React.RefAttributes<SVGSVGElement>>;
|
|
225
|
+
declare const LogoLecom: React$1.ForwardRefExoticComponent<LogoLecomProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
225
226
|
|
|
226
|
-
interface ModoTesteProps extends React.SVGAttributes<SVGSVGElement> {
|
|
227
|
+
interface ModoTesteProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
227
228
|
fillColor?: FillColor;
|
|
228
229
|
size?: string | number;
|
|
229
230
|
}
|
|
230
|
-
declare const ModoTeste: React.ForwardRefExoticComponent<ModoTesteProps & React.RefAttributes<SVGSVGElement>>;
|
|
231
|
+
declare const ModoTeste: React$1.ForwardRefExoticComponent<ModoTesteProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
231
232
|
|
|
232
|
-
interface RpaProps extends React.SVGAttributes<SVGSVGElement> {
|
|
233
|
+
interface RpaProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
233
234
|
fillColor?: FillColor;
|
|
234
235
|
size?: string | number;
|
|
235
236
|
}
|
|
236
|
-
declare const Rpa: React.ForwardRefExoticComponent<RpaProps & React.RefAttributes<SVGSVGElement>>;
|
|
237
|
+
declare const Rpa: React$1.ForwardRefExoticComponent<RpaProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
237
238
|
|
|
238
|
-
interface LogoLecomBrandProps extends React.SVGAttributes<SVGSVGElement> {
|
|
239
|
+
interface LogoLecomBrandProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
239
240
|
fillColor?: FillColor;
|
|
240
241
|
}
|
|
241
|
-
declare const LogoLecomBrand: React.ForwardRefExoticComponent<LogoLecomBrandProps & React.RefAttributes<SVGSVGElement>>;
|
|
242
|
+
declare const LogoLecomBrand: React$1.ForwardRefExoticComponent<LogoLecomBrandProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
242
243
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
type UsePaginationProps = {
|
|
245
|
+
count?: number;
|
|
246
|
+
defaultPage?: number;
|
|
247
|
+
boundaryCount?: number;
|
|
248
|
+
siblingCount?: number;
|
|
249
|
+
disabled?: boolean;
|
|
250
|
+
hideNextButton?: boolean;
|
|
251
|
+
hidePrevButton?: boolean;
|
|
252
|
+
showFirstButton?: boolean;
|
|
253
|
+
showLastButton?: boolean;
|
|
254
|
+
onChange?: (value: number) => void;
|
|
255
|
+
};
|
|
256
|
+
type UsePaginationItem = {
|
|
257
|
+
id: string;
|
|
258
|
+
onClick: () => void;
|
|
259
|
+
type: string;
|
|
260
|
+
page: number | null;
|
|
261
|
+
selected: boolean;
|
|
262
|
+
disabled: boolean;
|
|
263
|
+
'aria-current'?: 'page';
|
|
264
|
+
};
|
|
265
|
+
declare const usePagination: ({ count, defaultPage, boundaryCount, siblingCount, disabled, hideNextButton, hidePrevButton, showFirstButton, showLastButton, onChange, }?: UsePaginationProps) => {
|
|
266
|
+
page: number;
|
|
267
|
+
setPage: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
268
|
+
items: UsePaginationItem[];
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
type PaginationButtonProps = {
|
|
272
|
+
className?: string;
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
isActive?: boolean;
|
|
275
|
+
asChild?: boolean;
|
|
276
|
+
onClick?: () => void;
|
|
277
|
+
};
|
|
278
|
+
interface PaginationIndexProps extends PaginationButtonProps {
|
|
279
|
+
children: React$1.ReactNode;
|
|
280
|
+
}
|
|
281
|
+
interface PaginationProps {
|
|
282
|
+
currentPage: number;
|
|
283
|
+
itemsPage: UsePaginationItem[];
|
|
284
|
+
totalPages: number;
|
|
285
|
+
perPage: number;
|
|
286
|
+
totalRowsSelected?: number;
|
|
287
|
+
onChangePerPage?: (currentPerPage: number) => void;
|
|
288
|
+
}
|
|
289
|
+
declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
290
|
+
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
291
|
+
declare const PaginationFirst: {
|
|
292
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React$1.JSX.Element;
|
|
293
|
+
displayName: string;
|
|
294
|
+
};
|
|
295
|
+
declare const PaginationLast: {
|
|
296
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React$1.JSX.Element;
|
|
297
|
+
displayName: string;
|
|
298
|
+
};
|
|
299
|
+
declare const PaginationPrevious: {
|
|
300
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React$1.JSX.Element;
|
|
301
|
+
displayName: string;
|
|
302
|
+
};
|
|
303
|
+
declare const PaginationNext: {
|
|
304
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React$1.JSX.Element;
|
|
305
|
+
displayName: string;
|
|
306
|
+
};
|
|
307
|
+
declare const PaginationEllipsis: {
|
|
308
|
+
({ className, disabled, isActive, asChild, onClick, }: PaginationButtonProps): React$1.JSX.Element;
|
|
309
|
+
displayName: string;
|
|
310
|
+
};
|
|
311
|
+
declare const PaginationIndex: {
|
|
312
|
+
({ className, disabled, isActive, onClick, children, }: PaginationIndexProps): React$1.JSX.Element;
|
|
313
|
+
displayName: string;
|
|
314
|
+
};
|
|
315
|
+
declare const Pagination: {
|
|
316
|
+
({ currentPage, itemsPage, perPage, totalRowsSelected, onChangePerPage, }: PaginationProps): React$1.JSX.Element;
|
|
317
|
+
displayName: string;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
interface DataTableProps<TData, TValue> {
|
|
321
|
+
columnFullSize?: string;
|
|
322
|
+
fixedColumns?: string[];
|
|
323
|
+
isLoading?: boolean;
|
|
324
|
+
columns: ColumnDef<TData, TValue>[];
|
|
325
|
+
data: TData[];
|
|
326
|
+
noResults?: React.ReactNode;
|
|
327
|
+
pagination?: PaginationProps;
|
|
328
|
+
vwDiff?: number;
|
|
329
|
+
vhDiff?: number;
|
|
330
|
+
onIsSelected?: (row: Row<TData>) => boolean;
|
|
331
|
+
}
|
|
332
|
+
declare function DataTable<TData, TValue>({ columnFullSize, fixedColumns, isLoading, columns, data, noResults, pagination, vwDiff, vhDiff, onIsSelected, }: DataTableProps<TData, TValue>): React$1.JSX.Element;
|
|
333
|
+
declare namespace DataTable {
|
|
334
|
+
var displayName: string;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
338
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
339
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
340
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
341
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
249
343
|
declare const DialogHeader: {
|
|
250
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
344
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
251
345
|
displayName: string;
|
|
252
346
|
};
|
|
253
347
|
declare const DialogFooter: {
|
|
254
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
348
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
255
349
|
displayName: string;
|
|
256
350
|
};
|
|
257
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
258
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
259
|
-
|
|
260
|
-
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
261
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
262
|
-
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
263
|
-
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
264
|
-
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
265
|
-
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
266
|
-
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
351
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
352
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
353
|
+
|
|
354
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
355
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
356
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
357
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
358
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
359
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
360
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
267
361
|
inset?: boolean;
|
|
268
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
269
|
-
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
270
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
271
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
362
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
363
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
364
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
365
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
272
366
|
inset?: boolean;
|
|
273
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
274
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
275
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
276
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
367
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
368
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
370
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
277
371
|
inset?: boolean;
|
|
278
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
279
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
372
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
280
374
|
declare const DropdownMenuShortcut: {
|
|
281
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
375
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
282
376
|
displayName: string;
|
|
283
377
|
};
|
|
284
378
|
|
|
285
379
|
interface HelpMenuItem {
|
|
286
|
-
icon?: React.ReactNode;
|
|
380
|
+
icon?: React$1.ReactNode;
|
|
287
381
|
description?: string;
|
|
288
382
|
disabled?: boolean;
|
|
289
|
-
render?: React.ReactNode;
|
|
383
|
+
render?: React$1.ReactNode;
|
|
290
384
|
onClick?: () => void;
|
|
291
385
|
}
|
|
292
386
|
interface HelpMenuProps {
|
|
@@ -298,14 +392,14 @@ interface HelpMenuProps {
|
|
|
298
392
|
|
|
299
393
|
interface ModulesMenuItem {
|
|
300
394
|
containerIconBgColor?: BgColor;
|
|
301
|
-
icon?: React.ReactNode;
|
|
395
|
+
icon?: React$1.ReactNode;
|
|
302
396
|
title?: string;
|
|
303
397
|
description?: string;
|
|
304
398
|
disabled?: boolean;
|
|
305
|
-
render?: React.ReactNode;
|
|
399
|
+
render?: React$1.ReactNode;
|
|
306
400
|
bgColor: string;
|
|
307
401
|
textColor: string;
|
|
308
|
-
highlight?: React.ReactNode;
|
|
402
|
+
highlight?: React$1.ReactNode;
|
|
309
403
|
onClick?: () => void;
|
|
310
404
|
}
|
|
311
405
|
interface ModulesMenuProps {
|
|
@@ -330,22 +424,22 @@ interface UserMenuProps {
|
|
|
330
424
|
user?: {
|
|
331
425
|
name: string;
|
|
332
426
|
email: string;
|
|
333
|
-
render?: React.ReactNode;
|
|
427
|
+
render?: React$1.ReactNode;
|
|
334
428
|
};
|
|
335
429
|
language?: {
|
|
336
|
-
icon?: React.ReactNode;
|
|
430
|
+
icon?: React$1.ReactNode;
|
|
337
431
|
label?: string;
|
|
338
432
|
select?: {
|
|
339
433
|
options: LanguageOption[];
|
|
340
434
|
value?: string;
|
|
341
435
|
onChange?: (language: string) => void;
|
|
342
436
|
};
|
|
343
|
-
render?: React.ReactNode;
|
|
437
|
+
render?: React$1.ReactNode;
|
|
344
438
|
};
|
|
345
439
|
logout?: {
|
|
346
|
-
icon: React.ReactNode;
|
|
440
|
+
icon: React$1.ReactNode;
|
|
347
441
|
label: string;
|
|
348
|
-
render?: React.ReactNode;
|
|
442
|
+
render?: React$1.ReactNode;
|
|
349
443
|
onClick: () => void;
|
|
350
444
|
};
|
|
351
445
|
}
|
|
@@ -355,7 +449,7 @@ interface CustomStyles {
|
|
|
355
449
|
bgColor: string;
|
|
356
450
|
textColor: string;
|
|
357
451
|
}
|
|
358
|
-
interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
452
|
+
interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
359
453
|
customStyles: CustomStyles;
|
|
360
454
|
module?: string;
|
|
361
455
|
customImgSrc?: string;
|
|
@@ -363,7 +457,7 @@ interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<ty
|
|
|
363
457
|
userMenu?: Omit<UserMenuProps, 'customStyles'>;
|
|
364
458
|
helpMenu?: Omit<HelpMenuProps, 'customStyles'>;
|
|
365
459
|
modulesMenu?: Omit<ModulesMenuProps, 'customStyles'>;
|
|
366
|
-
extraContent?: React.ReactNode;
|
|
460
|
+
extraContent?: React$1.ReactNode;
|
|
367
461
|
onOpenMenuChange?: () => void;
|
|
368
462
|
}
|
|
369
463
|
|
|
@@ -372,7 +466,7 @@ interface SideBarProps {
|
|
|
372
466
|
title: string;
|
|
373
467
|
onClick?: () => void;
|
|
374
468
|
url?: string;
|
|
375
|
-
icon: React.ReactNode;
|
|
469
|
+
icon: React$1.ReactNode;
|
|
376
470
|
isActive?: boolean;
|
|
377
471
|
}[];
|
|
378
472
|
info: {
|
|
@@ -385,12 +479,12 @@ interface SideBarProps {
|
|
|
385
479
|
version: string;
|
|
386
480
|
};
|
|
387
481
|
}
|
|
388
|
-
interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
482
|
+
interface LayoutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
389
483
|
header: HeaderProps;
|
|
390
484
|
sideBar: SideBarProps;
|
|
391
485
|
}
|
|
392
486
|
declare const Layout: {
|
|
393
|
-
({ children, header, sideBar }: LayoutProps): React.JSX.Element;
|
|
487
|
+
({ children, header, sideBar }: LayoutProps): React$1.JSX.Element;
|
|
394
488
|
displayName: string;
|
|
395
489
|
};
|
|
396
490
|
|
|
@@ -404,7 +498,7 @@ declare const notificationVariants: (props?: ({
|
|
|
404
498
|
variant?: "error" | "success" | "information" | "warning" | null | undefined;
|
|
405
499
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
406
500
|
type BaseNotificationProps = VariantProps<typeof notificationVariants> & {
|
|
407
|
-
action?: React.ReactNode;
|
|
501
|
+
action?: React$1.ReactNode;
|
|
408
502
|
};
|
|
409
503
|
interface ToastNotificationProps extends BaseNotificationProps {
|
|
410
504
|
type: 'toast';
|
|
@@ -415,18 +509,18 @@ interface ToastNotificationProps extends BaseNotificationProps {
|
|
|
415
509
|
}
|
|
416
510
|
interface CalloutNotificationProps extends BaseNotificationProps {
|
|
417
511
|
type: 'callout';
|
|
418
|
-
title?: React.ReactNode;
|
|
419
|
-
content: React.ReactNode;
|
|
512
|
+
title?: React$1.ReactNode;
|
|
513
|
+
content: React$1.ReactNode;
|
|
420
514
|
shouldExpand?: boolean;
|
|
421
|
-
action?: React.ReactNode;
|
|
515
|
+
action?: React$1.ReactNode;
|
|
422
516
|
}
|
|
423
517
|
interface InlineNotificationProps extends BaseNotificationProps {
|
|
424
518
|
type: 'inline';
|
|
425
|
-
title?: React.ReactNode;
|
|
426
|
-
content: React.ReactNode;
|
|
519
|
+
title?: React$1.ReactNode;
|
|
520
|
+
content: React$1.ReactNode;
|
|
427
521
|
enableClose?: boolean;
|
|
428
522
|
shouldExpand?: boolean;
|
|
429
|
-
action?: React.ReactNode;
|
|
523
|
+
action?: React$1.ReactNode;
|
|
430
524
|
}
|
|
431
525
|
type NotificationProps = ToastNotificationProps | CalloutNotificationProps | InlineNotificationProps;
|
|
432
526
|
declare const posistionMap: {
|
|
@@ -436,15 +530,15 @@ declare const posistionMap: {
|
|
|
436
530
|
readonly bottomLeft: "bottom-0 left-0";
|
|
437
531
|
};
|
|
438
532
|
declare const getPositionClass: (type: string, placement?: keyof typeof posistionMap) => "" | "top-0 right-0" | "top-0 left-0" | "bottom-0 right-0" | "bottom-0 left-0";
|
|
439
|
-
declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
533
|
+
declare const Notification: React$1.ForwardRefExoticComponent<NotificationProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
440
534
|
|
|
441
535
|
declare const TOAST_REMOVE_DELAY = 5000;
|
|
442
536
|
type ToasterToast = {
|
|
443
537
|
id: string;
|
|
444
|
-
title?: React.ReactNode;
|
|
445
|
-
content: React.ReactNode;
|
|
538
|
+
title?: React$1.ReactNode;
|
|
539
|
+
content: React$1.ReactNode;
|
|
446
540
|
variant: 'success' | 'error' | 'warning' | 'information';
|
|
447
|
-
action?: React.ReactNode;
|
|
541
|
+
action?: React$1.ReactNode;
|
|
448
542
|
toastLimit?: number;
|
|
449
543
|
duration?: number;
|
|
450
544
|
open: boolean;
|
|
@@ -493,107 +587,57 @@ declare function useNotificationToast(): {
|
|
|
493
587
|
pauseNotification: (toastId?: string) => void;
|
|
494
588
|
};
|
|
495
589
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
isActive?: boolean;
|
|
500
|
-
asChild?: boolean;
|
|
501
|
-
onClick?: () => void;
|
|
502
|
-
};
|
|
503
|
-
interface PaginationIndexProps extends PaginationButtonProps {
|
|
504
|
-
children: React.ReactNode;
|
|
505
|
-
}
|
|
506
|
-
declare const Pagination: {
|
|
507
|
-
({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
508
|
-
displayName: string;
|
|
509
|
-
};
|
|
510
|
-
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
511
|
-
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
512
|
-
declare const PaginationFirst: {
|
|
513
|
-
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
514
|
-
displayName: string;
|
|
515
|
-
};
|
|
516
|
-
declare const PaginationLast: {
|
|
517
|
-
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
518
|
-
displayName: string;
|
|
519
|
-
};
|
|
520
|
-
declare const PaginationPrevious: {
|
|
521
|
-
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
522
|
-
displayName: string;
|
|
523
|
-
};
|
|
524
|
-
declare const PaginationNext: {
|
|
525
|
-
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
526
|
-
displayName: string;
|
|
527
|
-
};
|
|
528
|
-
declare const PaginationEllipsis: {
|
|
529
|
-
({ className, disabled, isActive, asChild, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
530
|
-
displayName: string;
|
|
531
|
-
};
|
|
532
|
-
declare const PaginationIndex: {
|
|
533
|
-
({ className, disabled, isActive, onClick, children, }: PaginationIndexProps): React.JSX.Element;
|
|
534
|
-
displayName: string;
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
538
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
539
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
590
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
591
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
592
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
540
593
|
|
|
541
|
-
declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
594
|
+
declare const Skeleton: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => React$1.JSX.Element;
|
|
542
595
|
|
|
543
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
544
|
-
|
|
545
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
546
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
547
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
548
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
549
|
-
declare const TableRowHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
550
|
-
declare const TableRowBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
551
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
552
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
553
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
596
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
554
597
|
|
|
555
598
|
declare const tagVariants: (props?: ({
|
|
556
599
|
color?: "blue" | "grey" | "green" | "orange" | "pink" | "purple" | "red" | "turquoise" | "yellow" | null | undefined;
|
|
557
600
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
558
|
-
interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
559
|
-
children: React.ReactNode;
|
|
601
|
+
interface TagProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
602
|
+
children: React$1.ReactNode;
|
|
560
603
|
}
|
|
561
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
|
|
604
|
+
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
562
605
|
|
|
563
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
564
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
565
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
566
|
-
declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
606
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
607
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
608
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
609
|
+
declare const TooltipArrow: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
610
|
+
declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
567
611
|
declare const tooltipContentVariants: (props?: ({
|
|
568
612
|
color?: "black" | "white" | null | undefined;
|
|
569
613
|
arrow?: boolean | null | undefined;
|
|
570
614
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
571
|
-
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
615
|
+
interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
572
616
|
color?: 'white' | 'black';
|
|
573
617
|
arrow?: boolean;
|
|
574
618
|
}
|
|
575
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
619
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
576
620
|
|
|
577
621
|
declare const typographyVariants: (props?: ({
|
|
578
622
|
variant?: "heading-xxlarge-500" | "heading-xlarge-500" | "heading-large-600" | "heading-large-500" | "heading-medium-600" | "heading-medium-500" | "heading-small-600" | "heading-small-500" | "heading-xsmall-600" | "heading-xsmall-500" | "heading-xxsmall-600" | "heading-xxsmall-500" | "body-large-700" | "body-large-500" | "body-large-400" | "body-medium-700" | "body-medium-500" | "body-medium-400" | "body-small-700" | "body-small-500" | "body-small-400" | "code-medium-400" | null | undefined;
|
|
579
623
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
580
|
-
interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, 'tag'>, VariantProps<typeof typographyVariants> {
|
|
624
|
+
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'tag'>, VariantProps<typeof typographyVariants> {
|
|
581
625
|
textColor?: TextColor;
|
|
582
626
|
tag?: any;
|
|
583
627
|
}
|
|
584
628
|
declare const Typography: {
|
|
585
|
-
({ className, variant, children, textColor, tag, ...props }: TypographyProps): React.JSX.Element;
|
|
629
|
+
({ className, variant, children, textColor, tag, ...props }: TypographyProps): React$1.JSX.Element;
|
|
586
630
|
displayName: string;
|
|
587
631
|
};
|
|
588
632
|
|
|
589
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
590
|
-
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
633
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
634
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
591
635
|
|
|
592
|
-
interface SpinProps extends React.SVGAttributes<SVGSVGElement> {
|
|
636
|
+
interface SpinProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
593
637
|
textColor?: TextColor;
|
|
594
638
|
size?: string | number;
|
|
595
639
|
}
|
|
596
|
-
declare const Spin: React.ForwardRefExoticComponent<SpinProps & React.RefAttributes<SVGSVGElement>>;
|
|
640
|
+
declare const Spin: React$1.ForwardRefExoticComponent<SpinProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
597
641
|
|
|
598
642
|
type SidebarContext = {
|
|
599
643
|
state: 'expanded' | 'collapsed';
|
|
@@ -604,9 +648,11 @@ type SidebarContext = {
|
|
|
604
648
|
isMobile: boolean;
|
|
605
649
|
toggleSidebar: () => void;
|
|
606
650
|
};
|
|
607
|
-
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
651
|
+
declare const SidebarContext: React$1.Context<SidebarContext | null>;
|
|
608
652
|
declare function useSidebar(): SidebarContext;
|
|
609
653
|
|
|
654
|
+
declare function useIsMobile(): boolean;
|
|
655
|
+
|
|
610
656
|
declare enum Translations {
|
|
611
657
|
PT_BR = "pt_BR",
|
|
612
658
|
EN_US = "en_US",
|
|
@@ -621,4 +667,4 @@ declare const fonts: {
|
|
|
621
667
|
ibm: string[];
|
|
622
668
|
};
|
|
623
669
|
|
|
624
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY,
|
|
670
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, DataTable, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, type PaginationProps, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY, Tag, type TagProps, type TextColor, type ToastNotificationProps, type ToasterToast, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, type TypographyProps, type UsePaginationItem, accordionVariants, buttonVariants, colors, fonts, getPositionClass, i18n, notificationVariants, reducer, tagVariants, toast, typographyVariants, useIsMobile, useNotificationToast, usePagination, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { LogoLecom } from './components/CustomIcon/Icons/LogoLecom.js';
|
|
|
7
7
|
export { ModoTeste } from './components/CustomIcon/Icons/ModoTeste.js';
|
|
8
8
|
export { Rpa } from './components/CustomIcon/Icons/Rpa.js';
|
|
9
9
|
export { LogoLecomBrand } from './components/CustomIcon/Icons/LogoLecomBrand.js';
|
|
10
|
+
export { DataTable } from './components/DataTable/DataTable.js';
|
|
10
11
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/Dialog/Dialog.js';
|
|
11
12
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/DropdownMenu/DropdownMenu.js';
|
|
12
13
|
export { Layout } from './components/Layout/Layout.js';
|
|
@@ -16,13 +17,14 @@ export { Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, Pag
|
|
|
16
17
|
export { Popover, PopoverContent, PopoverTrigger } from './components/Popover/Popover.js';
|
|
17
18
|
export { Skeleton } from './components/Skeleton/Skeleton.js';
|
|
18
19
|
export { Switch } from './components/Switch/Switch.js';
|
|
19
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRowBody, TableRowHeader } from './components/Table/Table.js';
|
|
20
20
|
export { Tag, tagVariants } from './components/Tag/Tag.js';
|
|
21
|
-
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger } from './components/Tooltip/Tooltip.js';
|
|
21
|
+
export { Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger } from './components/Tooltip/Tooltip.js';
|
|
22
22
|
export { Typography, typographyVariants } from './components/Typography/Typography.js';
|
|
23
23
|
export { ScrollArea, ScrollBar } from './components/ScrollArea/ScrollArea.js';
|
|
24
24
|
export { Spin } from './components/Spin/Spin.js';
|
|
25
25
|
export { useSidebar } from './components/Sidebar/Sidebar.js';
|
|
26
|
+
export { useIsMobile } from './hooks/useIsMobile.js';
|
|
27
|
+
export { usePagination } from './hooks/usePagination.js';
|
|
26
28
|
export { Translations, i18n } from './i18n/index.js';
|
|
27
29
|
export { colors } from './tokens/colors.js';
|
|
28
30
|
export { fonts } from './tokens/fonts.js';
|