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