lecom-ui 4.2.2 → 4.3.0
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 +171 -34
- package/dist/components/DataTable/DataTable.utils.js +102 -0
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/Header/HelpMenu.js +6 -6
- package/dist/components/Header/ImgBrand.js +12 -9
- package/dist/components/Header/ModulesMenu.js +5 -4
- package/dist/components/Header/SocialMenu.js +1 -0
- package/dist/components/Header/UserMenu.js +8 -9
- package/dist/components/Layout/Layout.js +35 -20
- package/dist/components/Pagination/Pagination.js +228 -0
- package/dist/components/RadioGroup/RadioGroup.js +46 -0
- package/dist/components/Sidebar/Sidebar.js +2 -4
- package/dist/components/Spin/Spin.js +43 -0
- package/dist/components/Switch/Switch.js +27 -0
- package/dist/components/Tooltip/Tooltip.js +3 -2
- package/dist/components/Typography/Typography.js +1 -0
- package/dist/hooks/useIsMobile.js +20 -0
- package/dist/hooks/usePagination.js +115 -0
- package/dist/i18n/index.js +49 -2
- package/dist/i18n/locales/en_us.js +3 -4
- package/dist/i18n/locales/es_es.js +3 -4
- package/dist/i18n/locales/pt_br.js +3 -4
- package/dist/index.d.ts +300 -102
- package/dist/index.js +13 -1
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +267 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +137 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +9 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-first.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-last.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +17 -0
- package/dist/node_modules/react-i18next/dist/es/Translation.js +15 -0
- package/dist/node_modules/react-i18next/dist/es/useTranslation.js +1 -1
- package/dist/plugin/typographies.ts +6 -0
- package/dist/style.min.css +1 -1
- package/package.json +105 -106
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,36 @@
|
|
|
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
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import {
|
|
7
|
+
import { Table, Column as Column$1, Row as Row$1 } from '@tanstack/react-table';
|
|
8
|
+
export { ColumnDef } from '@tanstack/react-table';
|
|
8
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
9
10
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
10
11
|
import { CustomStyles as CustomStyles$2 } from '@/components/Button';
|
|
11
12
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
12
14
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
15
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
17
|
+
import { InitOptions } from 'i18next';
|
|
18
|
+
export { TFunction, default as i18n } from 'i18next';
|
|
19
|
+
export { Translation, useTranslation } from 'react-i18next';
|
|
13
20
|
|
|
14
21
|
declare const accordionVariants: (props?: ({
|
|
15
22
|
variant?: "default" | null | undefined;
|
|
16
23
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
17
24
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
25
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
21
28
|
variant?: "default" | null | undefined;
|
|
22
29
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
23
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
30
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
25
32
|
disabled?: boolean;
|
|
26
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
27
34
|
|
|
28
35
|
declare const buttonVariants: (props?: ({
|
|
29
36
|
variant?: "filled" | "outlined" | "tonal" | "ghost" | null | undefined;
|
|
@@ -48,26 +55,26 @@ interface CustomStyles$1 {
|
|
|
48
55
|
opacity: number;
|
|
49
56
|
};
|
|
50
57
|
}
|
|
51
|
-
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
58
|
+
interface ButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
52
59
|
customStyles?: CustomStyles$1;
|
|
53
60
|
isActive?: boolean;
|
|
54
61
|
}
|
|
55
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
62
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
56
63
|
|
|
57
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
63
70
|
|
|
64
71
|
declare const checkboxVariants: (props?: ({
|
|
65
72
|
variant?: "default" | null | undefined;
|
|
66
73
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
67
|
-
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
74
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
68
75
|
indeterminate?: boolean;
|
|
69
76
|
}
|
|
70
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
77
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
71
78
|
|
|
72
79
|
type Transparent = 'transparent';
|
|
73
80
|
type Black = 'black';
|
|
@@ -210,89 +217,235 @@ declare const colors: {
|
|
|
210
217
|
};
|
|
211
218
|
};
|
|
212
219
|
|
|
213
|
-
interface CadastroFacilProps extends React.SVGAttributes<SVGSVGElement> {
|
|
220
|
+
interface CadastroFacilProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
214
221
|
fillColor?: FillColor;
|
|
215
222
|
size?: string | number;
|
|
216
223
|
}
|
|
217
|
-
declare const CadastroFacil: React.ForwardRefExoticComponent<CadastroFacilProps & React.RefAttributes<SVGSVGElement>>;
|
|
224
|
+
declare const CadastroFacil: React$1.ForwardRefExoticComponent<CadastroFacilProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
218
225
|
|
|
219
|
-
interface LogoLecomProps extends React.SVGAttributes<SVGSVGElement> {
|
|
226
|
+
interface LogoLecomProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
220
227
|
fillColor?: FillColor;
|
|
221
228
|
size?: string | number;
|
|
222
229
|
}
|
|
223
|
-
declare const LogoLecom: React.ForwardRefExoticComponent<LogoLecomProps & React.RefAttributes<SVGSVGElement>>;
|
|
230
|
+
declare const LogoLecom: React$1.ForwardRefExoticComponent<LogoLecomProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
224
231
|
|
|
225
|
-
interface ModoTesteProps extends React.SVGAttributes<SVGSVGElement> {
|
|
232
|
+
interface ModoTesteProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
226
233
|
fillColor?: FillColor;
|
|
227
234
|
size?: string | number;
|
|
228
235
|
}
|
|
229
|
-
declare const ModoTeste: React.ForwardRefExoticComponent<ModoTesteProps & React.RefAttributes<SVGSVGElement>>;
|
|
236
|
+
declare const ModoTeste: React$1.ForwardRefExoticComponent<ModoTesteProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
230
237
|
|
|
231
|
-
interface RpaProps extends React.SVGAttributes<SVGSVGElement> {
|
|
238
|
+
interface RpaProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
232
239
|
fillColor?: FillColor;
|
|
233
240
|
size?: string | number;
|
|
234
241
|
}
|
|
235
|
-
declare const Rpa: React.ForwardRefExoticComponent<RpaProps & React.RefAttributes<SVGSVGElement>>;
|
|
242
|
+
declare const Rpa: React$1.ForwardRefExoticComponent<RpaProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
236
243
|
|
|
237
|
-
interface LogoLecomBrandProps extends React.SVGAttributes<SVGSVGElement> {
|
|
244
|
+
interface LogoLecomBrandProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
238
245
|
fillColor?: FillColor;
|
|
239
246
|
}
|
|
240
|
-
declare const LogoLecomBrand: React.ForwardRefExoticComponent<LogoLecomBrandProps & React.RefAttributes<SVGSVGElement>>;
|
|
247
|
+
declare const LogoLecomBrand: React$1.ForwardRefExoticComponent<LogoLecomBrandProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
241
248
|
|
|
249
|
+
type UsePaginationProps = {
|
|
250
|
+
count?: number;
|
|
251
|
+
defaultPage?: number;
|
|
252
|
+
boundaryCount?: number;
|
|
253
|
+
siblingCount?: number;
|
|
254
|
+
disabled?: boolean;
|
|
255
|
+
hideNextButton?: boolean;
|
|
256
|
+
hidePrevButton?: boolean;
|
|
257
|
+
showFirstButton?: boolean;
|
|
258
|
+
showLastButton?: boolean;
|
|
259
|
+
onChange?: (value: number) => void;
|
|
260
|
+
};
|
|
261
|
+
type UsePaginationItem = {
|
|
262
|
+
id: string;
|
|
263
|
+
onClick: () => void;
|
|
264
|
+
type: string;
|
|
265
|
+
page: number | null;
|
|
266
|
+
selected: boolean;
|
|
267
|
+
disabled: boolean;
|
|
268
|
+
'aria-current'?: 'page';
|
|
269
|
+
};
|
|
270
|
+
declare const usePagination: ({ count, defaultPage, boundaryCount, siblingCount, disabled, hideNextButton, hidePrevButton, showFirstButton, showLastButton, onChange, }?: UsePaginationProps) => {
|
|
271
|
+
page: number;
|
|
272
|
+
setPage: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
273
|
+
items: UsePaginationItem[];
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
type PaginationButtonProps = {
|
|
277
|
+
className?: string;
|
|
278
|
+
disabled?: boolean;
|
|
279
|
+
isActive?: boolean;
|
|
280
|
+
asChild?: boolean;
|
|
281
|
+
onClick?: () => void;
|
|
282
|
+
};
|
|
283
|
+
interface PaginationIndexProps extends PaginationButtonProps {
|
|
284
|
+
children: React$1.ReactNode;
|
|
285
|
+
}
|
|
286
|
+
interface PaginationProps {
|
|
287
|
+
currentPage: number;
|
|
288
|
+
itemsPage: UsePaginationItem[];
|
|
289
|
+
totalPages: number;
|
|
290
|
+
perPage: number;
|
|
291
|
+
totalRowsSelected?: number;
|
|
292
|
+
onChangePerPage?: (currentPerPage: number) => void;
|
|
293
|
+
}
|
|
294
|
+
declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
295
|
+
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
296
|
+
declare const PaginationFirst: {
|
|
297
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): react_jsx_runtime.JSX.Element;
|
|
298
|
+
displayName: string;
|
|
299
|
+
};
|
|
300
|
+
declare const PaginationLast: {
|
|
301
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): react_jsx_runtime.JSX.Element;
|
|
302
|
+
displayName: string;
|
|
303
|
+
};
|
|
304
|
+
declare const PaginationPrevious: {
|
|
305
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): react_jsx_runtime.JSX.Element;
|
|
306
|
+
displayName: string;
|
|
307
|
+
};
|
|
308
|
+
declare const PaginationNext: {
|
|
309
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): react_jsx_runtime.JSX.Element;
|
|
310
|
+
displayName: string;
|
|
311
|
+
};
|
|
312
|
+
declare const PaginationEllipsis: {
|
|
313
|
+
({ className, disabled, isActive, asChild, onClick, }: PaginationButtonProps): react_jsx_runtime.JSX.Element;
|
|
314
|
+
displayName: string;
|
|
315
|
+
};
|
|
316
|
+
declare const PaginationIndex: {
|
|
317
|
+
({ className, disabled, isActive, onClick, children, }: PaginationIndexProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
displayName: string;
|
|
319
|
+
};
|
|
320
|
+
declare const Pagination: {
|
|
321
|
+
({ currentPage, itemsPage, perPage, totalRowsSelected, onChangePerPage, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
322
|
+
displayName: string;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
interface ColumnRender<TData, TValue> {
|
|
326
|
+
row: Row$1<TData>;
|
|
327
|
+
value: TValue;
|
|
328
|
+
}
|
|
329
|
+
interface ColumnSort<TData, TValue> {
|
|
330
|
+
table: Table<TData>;
|
|
331
|
+
column: Column$1<TData, TValue>;
|
|
332
|
+
}
|
|
333
|
+
type ColumnTitle<TData, TValue> = ColumnSort<TData, TValue>;
|
|
334
|
+
interface CheckedHeader<TData, TValue> {
|
|
335
|
+
table: Table<TData>;
|
|
336
|
+
column: Column$1<TData, TValue>;
|
|
337
|
+
}
|
|
338
|
+
interface CheckedHeaderChange<TData, TValue> {
|
|
339
|
+
table: Table<TData>;
|
|
340
|
+
column: Column$1<TData, TValue>;
|
|
341
|
+
value: boolean;
|
|
342
|
+
}
|
|
343
|
+
interface CheckedCell<TData> {
|
|
344
|
+
row: Row$1<TData>;
|
|
345
|
+
}
|
|
346
|
+
interface CheckedCellChange<TData> {
|
|
347
|
+
row: Row$1<TData>;
|
|
348
|
+
value: boolean;
|
|
349
|
+
}
|
|
350
|
+
interface Column<TData, TValue> {
|
|
351
|
+
key: string;
|
|
352
|
+
title?: (({ table, column }: ColumnTitle<TData, TValue>) => React.ReactNode) | React.ReactNode;
|
|
353
|
+
enableSelect?: boolean;
|
|
354
|
+
width?: number | string;
|
|
355
|
+
fixed?: string;
|
|
356
|
+
truncate?: boolean;
|
|
357
|
+
render?: (({ value, row }: ColumnRender<TData, TValue>) => React.ReactNode) | React.ReactNode;
|
|
358
|
+
onSort?: ({ table, column }: ColumnSort<TData, TValue>) => void;
|
|
359
|
+
checkedHeader?: ({ table, column }: CheckedHeader<TData, TValue>) => boolean;
|
|
360
|
+
checkedCell?: ({ row }: CheckedCell<TData>) => boolean;
|
|
361
|
+
onCheckedHeaderChange?: ({ table, column, value, }: CheckedHeaderChange<TData, TValue>) => void;
|
|
362
|
+
onCheckedCellChange?: ({ row, value }: CheckedCellChange<TData>) => void;
|
|
363
|
+
}
|
|
242
364
|
interface DataTableProps<TData, TValue> {
|
|
243
|
-
|
|
365
|
+
isLoading?: boolean;
|
|
366
|
+
columns: Column<TData, TValue>[];
|
|
244
367
|
data: TData[];
|
|
245
368
|
noResults?: React.ReactNode;
|
|
369
|
+
pagination?: PaginationProps;
|
|
370
|
+
vwDiff?: number;
|
|
371
|
+
vhDiff?: number;
|
|
372
|
+
onIsSelected?: (row: Row$1<TData>) => boolean;
|
|
373
|
+
}
|
|
374
|
+
interface Row<TData> {
|
|
375
|
+
row: Row$1<TData>;
|
|
376
|
+
}
|
|
377
|
+
interface Header<TData, TValue> {
|
|
378
|
+
table: Table<TData>;
|
|
379
|
+
column: Column$1<TData, TValue>;
|
|
246
380
|
}
|
|
247
|
-
|
|
381
|
+
interface BuildColumns<TData, TValue> {
|
|
382
|
+
columns: Column<TData, TValue>[];
|
|
383
|
+
}
|
|
384
|
+
interface BuildHeaderSelect<TData, TValue> {
|
|
385
|
+
table: Table<TData>;
|
|
386
|
+
column: Column$1<TData, TValue>;
|
|
387
|
+
checkedHeader: Column<TData, TValue>['checkedHeader'];
|
|
388
|
+
onCheckedHeaderChange: Column<TData, TValue>['onCheckedHeaderChange'];
|
|
389
|
+
}
|
|
390
|
+
interface BuildCellSelect<TData, TValue> {
|
|
391
|
+
row: Row$1<TData>;
|
|
392
|
+
checkedCell: Column<TData, TValue>['checkedCell'];
|
|
393
|
+
onCheckedCellChange: Column<TData, TValue>['onCheckedCellChange'];
|
|
394
|
+
}
|
|
395
|
+
type Meta = Record<string, string | number>;
|
|
248
396
|
|
|
249
|
-
declare
|
|
250
|
-
declare
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
declare const
|
|
397
|
+
declare function DataTable<TData, TValue>({ isLoading, columns, data, noResults, pagination, vwDiff, vhDiff, onIsSelected, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
398
|
+
declare namespace DataTable {
|
|
399
|
+
var displayName: string;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
403
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
404
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
405
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
406
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
255
408
|
declare const DialogHeader: {
|
|
256
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
409
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
257
410
|
displayName: string;
|
|
258
411
|
};
|
|
259
412
|
declare const DialogFooter: {
|
|
260
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
413
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
261
414
|
displayName: string;
|
|
262
415
|
};
|
|
263
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
264
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
265
|
-
|
|
266
|
-
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
267
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
268
|
-
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
269
|
-
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
270
|
-
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
271
|
-
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
272
|
-
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
416
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
417
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
418
|
+
|
|
419
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
420
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
421
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
422
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
423
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
424
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
425
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
273
426
|
inset?: boolean;
|
|
274
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
275
|
-
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
276
|
-
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
277
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
427
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
428
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
429
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
430
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
278
431
|
inset?: boolean;
|
|
279
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
280
|
-
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
281
|
-
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
282
|
-
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
432
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
433
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
434
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
435
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
283
436
|
inset?: boolean;
|
|
284
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
285
|
-
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
437
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
438
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
286
439
|
declare const DropdownMenuShortcut: {
|
|
287
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
440
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
288
441
|
displayName: string;
|
|
289
442
|
};
|
|
290
443
|
|
|
291
444
|
interface HelpMenuItem {
|
|
292
|
-
icon?: React.ReactNode;
|
|
445
|
+
icon?: React$1.ReactNode;
|
|
293
446
|
description?: string;
|
|
294
447
|
disabled?: boolean;
|
|
295
|
-
render?: React.ReactNode;
|
|
448
|
+
render?: React$1.ReactNode;
|
|
296
449
|
onClick?: () => void;
|
|
297
450
|
}
|
|
298
451
|
interface HelpMenuProps {
|
|
@@ -304,14 +457,14 @@ interface HelpMenuProps {
|
|
|
304
457
|
|
|
305
458
|
interface ModulesMenuItem {
|
|
306
459
|
containerIconBgColor?: BgColor;
|
|
307
|
-
icon?: React.ReactNode;
|
|
460
|
+
icon?: React$1.ReactNode;
|
|
308
461
|
title?: string;
|
|
309
462
|
description?: string;
|
|
310
463
|
disabled?: boolean;
|
|
311
|
-
render?: React.ReactNode;
|
|
464
|
+
render?: React$1.ReactNode;
|
|
312
465
|
bgColor: string;
|
|
313
466
|
textColor: string;
|
|
314
|
-
highlight?: React.ReactNode;
|
|
467
|
+
highlight?: React$1.ReactNode;
|
|
315
468
|
onClick?: () => void;
|
|
316
469
|
}
|
|
317
470
|
interface ModulesMenuProps {
|
|
@@ -336,22 +489,22 @@ interface UserMenuProps {
|
|
|
336
489
|
user?: {
|
|
337
490
|
name: string;
|
|
338
491
|
email: string;
|
|
339
|
-
render?: React.ReactNode;
|
|
492
|
+
render?: React$1.ReactNode;
|
|
340
493
|
};
|
|
341
494
|
language?: {
|
|
342
|
-
icon?: React.ReactNode;
|
|
495
|
+
icon?: React$1.ReactNode;
|
|
343
496
|
label?: string;
|
|
344
497
|
select?: {
|
|
345
498
|
options: LanguageOption[];
|
|
346
499
|
value?: string;
|
|
347
500
|
onChange?: (language: string) => void;
|
|
348
501
|
};
|
|
349
|
-
render?: React.ReactNode;
|
|
502
|
+
render?: React$1.ReactNode;
|
|
350
503
|
};
|
|
351
504
|
logout?: {
|
|
352
|
-
icon: React.ReactNode;
|
|
505
|
+
icon: React$1.ReactNode;
|
|
353
506
|
label: string;
|
|
354
|
-
render?: React.ReactNode;
|
|
507
|
+
render?: React$1.ReactNode;
|
|
355
508
|
onClick: () => void;
|
|
356
509
|
};
|
|
357
510
|
}
|
|
@@ -361,7 +514,7 @@ interface CustomStyles {
|
|
|
361
514
|
bgColor: string;
|
|
362
515
|
textColor: string;
|
|
363
516
|
}
|
|
364
|
-
interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
517
|
+
interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof headerVariants> {
|
|
365
518
|
customStyles: CustomStyles;
|
|
366
519
|
module?: string;
|
|
367
520
|
customImgSrc?: string;
|
|
@@ -369,7 +522,7 @@ interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<ty
|
|
|
369
522
|
userMenu?: Omit<UserMenuProps, 'customStyles'>;
|
|
370
523
|
helpMenu?: Omit<HelpMenuProps, 'customStyles'>;
|
|
371
524
|
modulesMenu?: Omit<ModulesMenuProps, 'customStyles'>;
|
|
372
|
-
extraContent?: React.ReactNode;
|
|
525
|
+
extraContent?: React$1.ReactNode;
|
|
373
526
|
onOpenMenuChange?: () => void;
|
|
374
527
|
}
|
|
375
528
|
|
|
@@ -378,17 +531,20 @@ interface SideBarProps {
|
|
|
378
531
|
title: string;
|
|
379
532
|
onClick?: () => void;
|
|
380
533
|
url?: string;
|
|
381
|
-
icon: React.ReactNode;
|
|
534
|
+
icon: React$1.ReactNode;
|
|
382
535
|
isActive?: boolean;
|
|
383
536
|
}[];
|
|
384
537
|
info: {
|
|
538
|
+
platformText: string;
|
|
539
|
+
authorizedForText: string;
|
|
385
540
|
authorizedFor: string;
|
|
386
541
|
build: string;
|
|
387
542
|
cycle: string;
|
|
543
|
+
versionText: string;
|
|
388
544
|
version: string;
|
|
389
545
|
};
|
|
390
546
|
}
|
|
391
|
-
interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
547
|
+
interface LayoutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
392
548
|
header: HeaderProps;
|
|
393
549
|
sideBar: SideBarProps;
|
|
394
550
|
}
|
|
@@ -407,7 +563,7 @@ declare const notificationVariants: (props?: ({
|
|
|
407
563
|
variant?: "success" | "error" | "information" | "warning" | null | undefined;
|
|
408
564
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
409
565
|
type BaseNotificationProps = VariantProps<typeof notificationVariants> & {
|
|
410
|
-
action?: React.ReactNode;
|
|
566
|
+
action?: React$1.ReactNode;
|
|
411
567
|
};
|
|
412
568
|
interface ToastNotificationProps extends BaseNotificationProps {
|
|
413
569
|
type: 'toast';
|
|
@@ -418,18 +574,18 @@ interface ToastNotificationProps extends BaseNotificationProps {
|
|
|
418
574
|
}
|
|
419
575
|
interface CalloutNotificationProps extends BaseNotificationProps {
|
|
420
576
|
type: 'callout';
|
|
421
|
-
title?: React.ReactNode;
|
|
422
|
-
content: React.ReactNode;
|
|
577
|
+
title?: React$1.ReactNode;
|
|
578
|
+
content: React$1.ReactNode;
|
|
423
579
|
shouldExpand?: boolean;
|
|
424
|
-
action?: React.ReactNode;
|
|
580
|
+
action?: React$1.ReactNode;
|
|
425
581
|
}
|
|
426
582
|
interface InlineNotificationProps extends BaseNotificationProps {
|
|
427
583
|
type: 'inline';
|
|
428
|
-
title?: React.ReactNode;
|
|
429
|
-
content: React.ReactNode;
|
|
584
|
+
title?: React$1.ReactNode;
|
|
585
|
+
content: React$1.ReactNode;
|
|
430
586
|
enableClose?: boolean;
|
|
431
587
|
shouldExpand?: boolean;
|
|
432
|
-
action?: React.ReactNode;
|
|
588
|
+
action?: React$1.ReactNode;
|
|
433
589
|
}
|
|
434
590
|
type NotificationProps = ToastNotificationProps | CalloutNotificationProps | InlineNotificationProps;
|
|
435
591
|
declare const posistionMap: {
|
|
@@ -439,15 +595,15 @@ declare const posistionMap: {
|
|
|
439
595
|
readonly bottomLeft: "bottom-0 left-0";
|
|
440
596
|
};
|
|
441
597
|
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";
|
|
442
|
-
declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
598
|
+
declare const Notification: React$1.ForwardRefExoticComponent<NotificationProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
443
599
|
|
|
444
600
|
declare const TOAST_REMOVE_DELAY = 5000;
|
|
445
601
|
type ToasterToast = {
|
|
446
602
|
id: string;
|
|
447
|
-
title?: React.ReactNode;
|
|
448
|
-
content: React.ReactNode;
|
|
603
|
+
title?: React$1.ReactNode;
|
|
604
|
+
content: React$1.ReactNode;
|
|
449
605
|
variant: 'success' | 'error' | 'warning' | 'information';
|
|
450
|
-
action?: React.ReactNode;
|
|
606
|
+
action?: React$1.ReactNode;
|
|
451
607
|
toastLimit?: number;
|
|
452
608
|
duration?: number;
|
|
453
609
|
open: boolean;
|
|
@@ -496,38 +652,41 @@ declare function useNotificationToast(): {
|
|
|
496
652
|
pauseNotification: (toastId?: string) => void;
|
|
497
653
|
};
|
|
498
654
|
|
|
499
|
-
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
500
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
501
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
655
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
656
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
657
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
658
|
+
|
|
659
|
+
declare const Skeleton: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
502
660
|
|
|
503
|
-
declare const
|
|
661
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
504
662
|
|
|
505
663
|
declare const tagVariants: (props?: ({
|
|
506
664
|
color?: "blue" | "grey" | "purple" | "yellow" | "red" | "orange" | "green" | "pink" | "turquoise" | null | undefined;
|
|
507
665
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
508
|
-
interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
509
|
-
children: React.ReactNode;
|
|
666
|
+
interface TagProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
667
|
+
children: React$1.ReactNode;
|
|
510
668
|
}
|
|
511
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
|
|
669
|
+
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
512
670
|
|
|
513
|
-
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
514
|
-
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
515
|
-
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
516
|
-
declare const TooltipArrow: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
671
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
672
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
673
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
674
|
+
declare const TooltipArrow: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
675
|
+
declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
517
676
|
declare const tooltipContentVariants: (props?: ({
|
|
518
|
-
color?: "
|
|
677
|
+
color?: "black" | "white" | null | undefined;
|
|
519
678
|
arrow?: boolean | null | undefined;
|
|
520
679
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
521
|
-
interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
680
|
+
interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|
|
522
681
|
color?: 'white' | 'black';
|
|
523
682
|
arrow?: boolean;
|
|
524
683
|
}
|
|
525
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
684
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
526
685
|
|
|
527
686
|
declare const typographyVariants: (props?: ({
|
|
528
|
-
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-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;
|
|
687
|
+
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;
|
|
529
688
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
530
|
-
interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, 'tag'>, VariantProps<typeof typographyVariants> {
|
|
689
|
+
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'tag'>, VariantProps<typeof typographyVariants> {
|
|
531
690
|
textColor?: TextColor;
|
|
532
691
|
tag?: any;
|
|
533
692
|
}
|
|
@@ -536,6 +695,45 @@ declare const Typography: {
|
|
|
536
695
|
displayName: string;
|
|
537
696
|
};
|
|
538
697
|
|
|
698
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
699
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
700
|
+
|
|
701
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
702
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
703
|
+
|
|
704
|
+
interface SpinProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
705
|
+
textColor?: TextColor;
|
|
706
|
+
size?: string | number;
|
|
707
|
+
}
|
|
708
|
+
declare const Spin: React$1.ForwardRefExoticComponent<SpinProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
709
|
+
|
|
710
|
+
type SidebarContext = {
|
|
711
|
+
state: 'expanded' | 'collapsed';
|
|
712
|
+
open: boolean;
|
|
713
|
+
setOpen: (open: boolean) => void;
|
|
714
|
+
openMobile: boolean;
|
|
715
|
+
setOpenMobile: (open: boolean) => void;
|
|
716
|
+
isMobile: boolean;
|
|
717
|
+
toggleSidebar: () => void;
|
|
718
|
+
};
|
|
719
|
+
declare const SidebarContext: React$1.Context<SidebarContext | null>;
|
|
720
|
+
declare function useSidebar(): SidebarContext;
|
|
721
|
+
|
|
722
|
+
declare function useIsMobile(): boolean;
|
|
723
|
+
|
|
724
|
+
declare enum Translations {
|
|
725
|
+
PT_BR = "pt_BR",
|
|
726
|
+
EN_US = "en_US",
|
|
727
|
+
ES_ES = "es_ES"
|
|
728
|
+
}
|
|
729
|
+
interface InitializeI18n {
|
|
730
|
+
resources?: {
|
|
731
|
+
[key in Translations]: InitOptions['resources'];
|
|
732
|
+
};
|
|
733
|
+
lng?: Translations;
|
|
734
|
+
}
|
|
735
|
+
declare const initializeI18n: (options?: InitializeI18n) => void;
|
|
736
|
+
|
|
539
737
|
type Fonts = 'roboto' | 'montserrat' | 'ibm';
|
|
540
738
|
declare const fonts: {
|
|
541
739
|
roboto: string[];
|
|
@@ -543,5 +741,5 @@ declare const fonts: {
|
|
|
543
741
|
ibm: string[];
|
|
544
742
|
};
|
|
545
743
|
|
|
546
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, CadastroFacil, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, 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, Layout, LogoLecom, LogoLecomBrand, ModoTeste, Notification, Popover, PopoverContent, PopoverTrigger, Rpa, Skeleton, TOAST_REMOVE_DELAY, Tag, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TypeMessageNotification, Typography, accordionVariants, buttonVariants, colors, fonts, getPositionClass, notificationVariants, reducer, tagVariants, toast, typographyVariants, useNotificationToast };
|
|
547
|
-
export type { BgColor, ButtonProps, CadastroFacilProps, CalloutNotificationProps, CheckboxProps, Color, ColorToken, CustomStyles$1 as CustomStyles, FillColor, Fonts, HeaderProps, InlineNotificationProps, LayoutProps, LogoLecomBrandProps, LogoLecomProps, ModoTesteProps, NotificationProps, RpaProps, SideBarProps, TagProps, TextColor, ToastNotificationProps, ToasterToast, TooltipContentProps, TypographyProps };
|
|
744
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, CadastroFacil, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, 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, Layout, LogoLecom, LogoLecomBrand, ModoTeste, Notification, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, Rpa, ScrollArea, ScrollBar, Skeleton, Spin, Switch, TOAST_REMOVE_DELAY, Tag, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, accordionVariants, buttonVariants, colors, fonts, getPositionClass, initializeI18n, notificationVariants, reducer, tagVariants, toast, typographyVariants, useIsMobile, useNotificationToast, usePagination, useSidebar };
|
|
745
|
+
export type { BgColor, BuildCellSelect, BuildColumns, BuildHeaderSelect, ButtonProps, CadastroFacilProps, CalloutNotificationProps, CheckboxProps, CheckedCell, CheckedCellChange, CheckedHeader, CheckedHeaderChange, Color, ColorToken, Column, ColumnRender, ColumnSort, ColumnTitle, CustomStyles$1 as CustomStyles, DataTableProps, FillColor, Fonts, Header, HeaderProps, InlineNotificationProps, LayoutProps, LogoLecomBrandProps, LogoLecomProps, Meta, ModoTesteProps, NotificationProps, PaginationProps, Row, RpaProps, SideBarProps, SpinProps, TagProps, TextColor, ToastNotificationProps, ToasterToast, TooltipContentProps, TypographyProps, UsePaginationItem };
|