lecom-ui 5.2.85 → 5.2.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1 @@
1
- lecom-ui
1
+ lecom-ui
@@ -26,25 +26,28 @@ const accordionVariants = cva(
26
26
  const Accordion = AccordionPrimitive.Root;
27
27
  const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
28
28
  AccordionItem.displayName = "AccordionItem";
29
- const AccordionTrigger = React.forwardRef(({ className, children, variant, size, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { className: "" }, /* @__PURE__ */ React.createElement(
30
- AccordionPrimitive.Trigger,
31
- {
32
- ref,
33
- className: cn(accordionVariants({ variant, size, className })),
34
- ...props,
35
- disabled
36
- },
37
- children,
38
- /* @__PURE__ */ React.createElement(
39
- ChevronDown,
29
+ const AccordionTrigger = React.forwardRef(
30
+ ({ className, children, variant, size, disabled, asChild, ...props }, ref) => /* @__PURE__ */ React.createElement(AccordionPrimitive.Header, { className: "" }, /* @__PURE__ */ React.createElement(
31
+ AccordionPrimitive.Trigger,
40
32
  {
41
- className: cn(
42
- "size-5 shrink-0 text-grey-800 transition-transform duration-200",
43
- disabled && "text-grey-300"
44
- )
45
- }
46
- )
47
- )));
33
+ ref,
34
+ className: cn(accordionVariants({ variant, size, className })),
35
+ ...props,
36
+ disabled,
37
+ asChild
38
+ },
39
+ children,
40
+ /* @__PURE__ */ React.createElement(
41
+ ChevronDown,
42
+ {
43
+ className: cn(
44
+ "size-5 shrink-0 text-grey-800 transition-transform duration-200",
45
+ disabled && "text-grey-300"
46
+ )
47
+ }
48
+ )
49
+ ))
50
+ );
48
51
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
49
52
  const AccordionContent = React.forwardRef(({ className, children, disabled = false, ...props }, ref) => /* @__PURE__ */ React.createElement(
50
53
  AccordionPrimitive.Content,
@@ -60,8 +60,7 @@ function buildColumns({
60
60
  className: clsx(
61
61
  "group flex items-center gap-1",
62
62
  hasSort && "hover:cursor-pointer"
63
- ),
64
- onClick: () => externalColumn.onSort?.({ table, column })
63
+ )
65
64
  },
66
65
  typeof externalColumn.title === "string" ? /* @__PURE__ */ React.createElement(
67
66
  Typography,
@@ -77,7 +76,15 @@ function buildColumns({
77
76
  ArrowUpDown,
78
77
  {
79
78
  size: 16,
80
- className: "text-grey-400 group-hover:text-grey-950"
79
+ className: "text-grey-400 group-hover:text-grey-950 hover:cursor-pointer",
80
+ onClick: (e) => {
81
+ e.stopPropagation();
82
+ const handler = column.getToggleSortingHandler?.();
83
+ if (handler) handler(e);
84
+ else if (externalColumn.onSort) {
85
+ externalColumn.onSort({ table, column });
86
+ }
87
+ }
81
88
  }
82
89
  )
83
90
  );
@@ -54,8 +54,7 @@ function Table({
54
54
  style: styleColumn(
55
55
  header.column.columnDef.meta,
56
56
  "th"
57
- ),
58
- onClick: header.column.getToggleSortingHandler()
57
+ )
59
58
  },
60
59
  header.isPlaceholder ? null : flexRender(
61
60
  header.column.columnDef.header,
@@ -1,60 +1,24 @@
1
1
  import * as React from 'react';
2
- import * as SwitchPrimitives from '@radix-ui/react-switch';
3
2
  import { cn } from '../../lib/utils.js';
3
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
4
4
 
5
- const Spinner = () => /* @__PURE__ */ React.createElement("svg", { className: "animate-spin h-4 w-4 text-blue-600", viewBox: "0 0 24 24" }, /* @__PURE__ */ React.createElement(
6
- "circle",
7
- {
8
- className: "opacity-25",
9
- cx: "12",
10
- cy: "12",
11
- r: "10",
12
- stroke: "currentColor",
13
- strokeWidth: "4",
14
- fill: "none"
15
- }
16
- ), /* @__PURE__ */ React.createElement(
17
- "path",
18
- {
19
- className: "opacity-75",
20
- fill: "currentColor",
21
- d: "M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"
22
- }
23
- ));
24
- const Switch = React.forwardRef(({ className, loading = false, disabled, ...props }, ref) => /* @__PURE__ */ React.createElement(
5
+ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
25
6
  SwitchPrimitives.Root,
26
7
  {
27
- ref,
28
- disabled: disabled || loading,
29
8
  className: cn(
30
- "peer flex items-center shrink-0 h-6 w-12 p-[2px] group rounded-full cursor-pointer bg-transparent focus:outline-none transition-colors",
31
- "data-[state=unchecked]:border-2 data-[state=unchecked]:border-grey-400",
32
- "data-[state=unchecked]:hover:border-grey-500 data-[state=unchecked]:active:border-grey-700",
33
- "data-[state=unchecked]:disabled:border-grey-300",
34
- "data-[state=checked]:bg-blue-600 data-[state=checked]:hover:bg-blue-700",
35
- "data-[state=checked]:active:bg-blue-800 data-[state=checked]:disabled:bg-blue-200",
36
- "disabled:cursor-not-allowed",
9
+ "peer flex items-center shrink-0 h-6 w-12 p-[2px] group rounded-full cursor-pointer bg-transparent focus:outline-none transition-colors data-[state=unchecked]:border-2 data-[state=unchecked]:border-grey-400 data-[state=unchecked]:hover:border-grey-500 data-[state=unchecked]:active:border-grey-700 data-[state=unchecked]:disabled:border-grey-300 data-[state=checked]:bg-blue-600 data-[state=checked]:hover:bg-blue-700 data-[state=checked]:active:bg-blue-800 data-[state=checked]:disabled:bg-blue-200 disabled:cursor-not-allowed",
37
10
  className
38
11
  ),
12
+ ref,
39
13
  ...props
40
14
  },
41
15
  /* @__PURE__ */ React.createElement(
42
16
  SwitchPrimitives.Thumb,
43
17
  {
44
18
  className: cn(
45
- "pointer-events-none rounded-full shadow-sm transition-all h-4 w-4",
46
- "data-[state=unchecked]:bg-grey-400 data-[state=unchecked]:translate-x-1",
47
- "group-hover:data-[state=unchecked]:bg-grey-500",
48
- "group-focus:ring-8 group-focus:ring-blue-200 group-focus:ring-opacity-50",
49
- "group-active:group-enabled:h-5 group-active:group-enabled:w-5",
50
- "group-active:data-[state=unchecked]:bg-grey-700",
51
- "group-active:group-enabled:data-[state=unchecked]:translate-x-[-2px]",
52
- "group-disabled:data-[state=unchecked]:bg-grey-300 group-disabled:data-[state=unchecked]:bg-opacity-65",
53
- "data-[state=checked]:bg-white data-[state=checked]:translate-x-6",
54
- "flex items-center justify-center"
19
+ "pointer-events-none rounded-full shadow-sm transition-all h-4 w-4 data-[state=unchecked]:bg-grey-400 data-[state=unchecked]:translate-x-1 group-hover:data-[state=unchecked]:bg-grey-500 group-focus:ring-8 group-focus:ring-blue-200 group-focus:ring-opacity-50 group-active:group-enabled:h-5 group-active:group-enabled:w-5 group-active:data-[state=unchecked]:bg-grey-700 group-active:group-enabled:data-[state=unchecked]:translate-x-[-2px] group-disabled:data-[state=unchecked]:bg-grey-300 group-disabled:data-[state=unchecked]:bg-opacity-65 data-[state=checked]:bg-white data-[state=checked]:translate-x-6"
55
20
  )
56
- },
57
- loading && /* @__PURE__ */ React.createElement(Spinner, null)
21
+ }
58
22
  )
59
23
  ));
60
24
  Switch.displayName = "Switch";
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
19
19
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
20
20
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
21
21
  import * as react_hook_form from 'react-hook-form';
22
- import { FieldValues, FieldPath, ControllerProps, Control } from 'react-hook-form';
22
+ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
23
23
  export { useForm } from 'react-hook-form';
24
24
  import * as LabelPrimitive from '@radix-ui/react-label';
25
25
  import { CustomStyles as CustomStyles$2 } from '@/components/Button';
@@ -36,10 +36,6 @@ export { TFunction, default as i18n } from 'i18next';
36
36
  import * as TabsPrimitive from '@radix-ui/react-tabs';
37
37
  import * as vaul from 'vaul';
38
38
  import { Drawer as Drawer$1 } from 'vaul';
39
- import { Locale } from 'date-fns';
40
- export { ptBR } from 'date-fns/locale/pt-BR';
41
- export { enUS } from 'date-fns/locale/en-US';
42
- export { es } from 'date-fns/locale/es';
43
39
  export { z as zod } from 'zod';
44
40
  export { zodResolver } from '@hookform/resolvers/zod';
45
41
  export { Translation, useTranslation } from 'react-i18next';
@@ -53,7 +49,9 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPri
53
49
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
54
50
  variant?: "default" | null | undefined;
55
51
  size?: "small" | "medium" | "large" | null | undefined;
56
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
52
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & {
53
+ children?: React$1.ReactNode;
54
+ } & React$1.RefAttributes<HTMLButtonElement>>;
57
55
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
58
56
  disabled?: boolean;
59
57
  } & React$1.RefAttributes<HTMLDivElement>>;
@@ -877,7 +875,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
877
875
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
878
876
 
879
877
  declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
880
- declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
878
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLLabelElement | HTMLParagraphElement | HTMLInputElement | HTMLHeadingElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
881
879
  className?: string;
882
880
  collapsedSize?: number | undefined;
883
881
  collapsible?: boolean | undefined;
@@ -934,11 +932,7 @@ interface SpinProps extends React$1.SVGAttributes<SVGSVGElement> {
934
932
  }
935
933
  declare const Spin: React$1.ForwardRefExoticComponent<SpinProps & React$1.RefAttributes<SVGSVGElement>>;
936
934
 
937
- interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
938
- loading?: boolean;
939
- className?: string;
940
- }
941
- declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
935
+ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
942
936
 
943
937
  declare const tagVariants: (props?: ({
944
938
  color?: "blue" | "grey" | "purple" | "yellow" | "red" | "orange" | "green" | "pink" | "turquoise" | null | undefined;
@@ -1060,115 +1054,5 @@ declare const DrawerFooter: {
1060
1054
  declare const DrawerTitle: React$1.ForwardRefExoticComponent<React$1.ComponentPropsWithoutRef<typeof Drawer$1.Title> & React$1.RefAttributes<React$1.ElementRef<typeof Drawer$1.Title>>>;
1061
1055
  declare const DrawerDescription: React$1.ForwardRefExoticComponent<React$1.ComponentPropsWithoutRef<typeof Drawer$1.Description> & React$1.RefAttributes<React$1.ElementRef<typeof Drawer$1.Description>>>;
1062
1056
 
1063
- type TimelineStepItem = {
1064
- title: React$1.ReactNode;
1065
- description?: React$1.ReactNode;
1066
- status?: 'completed' | 'current' | 'pending' | 'error';
1067
- };
1068
- interface StepsProps {
1069
- items: TimelineStepItem[];
1070
- current?: number;
1071
- className?: string;
1072
- dotSize?: 'small' | 'medium' | 'large';
1073
- color?: string;
1074
- }
1075
- declare const Steps: React$1.FC<StepsProps>;
1076
-
1077
- interface ComboboxOption {
1078
- label: string;
1079
- value: string;
1080
- disabled?: boolean;
1081
- }
1082
- interface ComboboxGroup {
1083
- label: string;
1084
- options: ComboboxOption[];
1085
- }
1086
- type ComboboxProps = {
1087
- options: (ComboboxOption | ComboboxGroup)[];
1088
- value: string | null;
1089
- onChange: (value: string | null) => void;
1090
- placeholder?: string;
1091
- disabled?: boolean;
1092
- notFoundContent?: React$1.ReactNode;
1093
- status?: 'default' | 'error';
1094
- searchTerm?: string;
1095
- triggerClassName?: string;
1096
- contentClassName?: string;
1097
- };
1098
- declare function Combobox({ options, value, onChange, placeholder, disabled, notFoundContent, status, searchTerm, triggerClassName, contentClassName, }: ComboboxProps): React$1.JSX.Element;
1099
-
1100
- interface TagValue {
1101
- label: string;
1102
- value: string;
1103
- }
1104
- interface TagInputProps extends React$1.HTMLAttributes<HTMLDivElement> {
1105
- value: TagValue[];
1106
- onRemove: (value: string) => void;
1107
- placeholder?: string;
1108
- disabled?: boolean;
1109
- readOnly?: boolean;
1110
- className?: string;
1111
- variant?: 'default' | 'filled' | 'borderless';
1112
- radius?: 'default' | 'full';
1113
- }
1114
- declare function TagInput({ value, onRemove, placeholder, disabled, readOnly, className, variant, radius, ...props }: TagInputProps): React$1.JSX.Element;
1115
-
1116
- interface CustomDividerProps {
1117
- name?: string;
1118
- control?: Control<any>;
1119
- isActive?: boolean;
1120
- isGroupDivider?: boolean;
1121
- orientation?: 'left' | 'center' | 'right';
1122
- dashed?: boolean;
1123
- plain?: boolean;
1124
- lineOnly?: boolean;
1125
- optionLabels?: [string, string];
1126
- ButtonComponent?: typeof Button;
1127
- buttonSize?: 'small' | 'medium' | 'large' | 'extraLarge' | null | undefined;
1128
- buttonClassName?: string;
1129
- className?: string;
1130
- style?: React$1.CSSProperties;
1131
- children?: React$1.ReactNode;
1132
- }
1133
- declare function CustomDivider({ name, control, isActive, isGroupDivider, orientation, dashed, plain, lineOnly, optionLabels, ButtonComponent, buttonSize, buttonClassName, className, style, children, }: CustomDividerProps): React$1.JSX.Element;
1134
- declare namespace CustomDivider {
1135
- var displayName: string;
1136
- }
1137
-
1138
- type ExpandIconPosition = 'start' | 'end';
1139
- declare const collapseTriggerVariants: (props?: ({
1140
- size?: "small" | "medium" | "large" | null | undefined;
1141
- ghost?: boolean | null | undefined;
1142
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1143
- interface CollapsePanelProps extends React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
1144
- header: React$1.ReactNode;
1145
- children: React$1.ReactNode;
1146
- extra?: React$1.ReactNode;
1147
- expandIcon?: React$1.ReactNode;
1148
- expandIconPosition?: ExpandIconPosition;
1149
- size?: 'small' | 'medium' | 'large';
1150
- ghost?: boolean;
1151
- disabled?: boolean;
1152
- className?: string;
1153
- }
1154
- declare const Collapse: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>> & {
1155
- Panel: React$1.ForwardRefExoticComponent<CollapsePanelProps & React$1.RefAttributes<HTMLDivElement>>;
1156
- };
1157
-
1158
- interface DatePickerProps {
1159
- className?: string;
1160
- variant?: 'outlined' | 'filled' | 'ghost' | null;
1161
- locale?: Locale;
1162
- placeholder?: string;
1163
- value?: Date;
1164
- onChange?: (date: Date | undefined) => void;
1165
- format?: string;
1166
- status?: string;
1167
- }
1168
- declare function DatePicker({ className, variant, locale, placeholder, value, onChange, format, status, }: DatePickerProps): React$1.JSX.Element;
1169
- declare namespace DatePicker {
1170
- var displayName: string;
1171
- }
1172
-
1173
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CadastroFacil, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapse, Combobox, CustomDivider, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogScroll, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorEmptyDisplay, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Layout, LogoLecom, LogoLecomBrand, ModoTeste, MultiSelect, Notification, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Rpa, SairModoTeste, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Spin, Steps, Switch, TOAST_REMOVE_DELAY, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagInput, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, Upload, accordionVariants, buttonVariants, collapseTriggerVariants, colors, fonts, initializeI18n, inputVariants, notificationVariants, reducer, tagVariants, textareaVariants, toast, typographyVariants, useFormField, useIsMobile, useNotificationToast, usePagination, useSidebar };
1174
- export type { BgColor, BuildCellSelect, BuildColumns, BuildHeaderSelect, ButtonProps, CadastroFacilProps, CalloutNotificationProps, ChartConfig, CheckboxProps, CheckedCell, CheckedCellChange, CheckedHeader, CheckedHeaderChange, Color, ColorToken, Column, ColumnRender, ColumnSort, ColumnSortClient, ColumnTitle, ComboboxGroup, ComboboxOption, ComboboxProps, CustomStyles$1 as CustomStyles, DataTableProps, DatePickerProps, DialogContentProps, ErrorEmptyDisplayProps, ExpandIconPosition, File, FillColor, Fonts, Header, HeaderProps, InlineNotificationProps, InputProps, LayoutProps, LogoLecomBrandProps, LogoLecomProps, Meta, ModoTesteProps, NotificationProps, PaginationProps, Row, RpaProps, SideBarProps, SpinProps, StepsProps, SwitchProps, TableProps, TagInputProps, TagProps, TagValue, TextColor, TextareaProps, TimelineStepItem, ToastNotificationProps, ToasterToast, TooltipContentProps, TypographyProps, UploadProps, UsePaginationItem };
1057
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, CadastroFacil, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, DataTable, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogScroll, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorEmptyDisplay, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, Layout, LogoLecom, LogoLecomBrand, ModoTeste, MultiSelect, Notification, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Rpa, SairModoTeste, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Skeleton, Spin, Switch, TOAST_REMOVE_DELAY, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Textarea, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, Upload, accordionVariants, buttonVariants, colors, fonts, initializeI18n, inputVariants, notificationVariants, reducer, tagVariants, textareaVariants, toast, typographyVariants, useFormField, useIsMobile, useNotificationToast, usePagination, useSidebar };
1058
+ export type { BgColor, BuildCellSelect, BuildColumns, BuildHeaderSelect, ButtonProps, CadastroFacilProps, CalloutNotificationProps, ChartConfig, CheckboxProps, CheckedCell, CheckedCellChange, CheckedHeader, CheckedHeaderChange, Color, ColorToken, Column, ColumnRender, ColumnSort, ColumnSortClient, ColumnTitle, CustomStyles$1 as CustomStyles, DataTableProps, DialogContentProps, ErrorEmptyDisplayProps, File, FillColor, Fonts, Header, HeaderProps, InlineNotificationProps, InputProps, LayoutProps, LogoLecomBrandProps, LogoLecomProps, Meta, ModoTesteProps, NotificationProps, PaginationProps, Row, RpaProps, SideBarProps, SpinProps, TableProps, TagProps, TextColor, TextareaProps, ToastNotificationProps, ToasterToast, TooltipContentProps, TypographyProps, UploadProps, UsePaginationItem };
package/dist/index.js CHANGED
@@ -43,15 +43,6 @@ export { fonts } from './tokens/fonts.js';
43
43
  export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/Tabs/Tabs.js';
44
44
  export { Textarea, textareaVariants } from './components/Textarea/Textarea.js';
45
45
  export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from './components/Drawer/Drawer.js';
46
- export { Steps } from './components/Steps/Steps.js';
47
- export { Combobox } from './components/Combobox/Combobox.js';
48
- export { TagInput } from './components/TagInput/TagInput.js';
49
- export { CustomDivider } from './components/CustomDivider/CustomDivider.js';
50
- export { Collapse, collapseTriggerVariants } from './components/Collapse/Collapse.js';
51
- export { DatePicker } from './components/DatePicker/DatePicker.js';
52
- export { ptBR } from 'date-fns/locale/pt-BR';
53
- export { enUS } from 'date-fns/locale/en-US';
54
- export { es } from 'date-fns/locale/es';
55
46
  export { Bar, BarChart, CartesianGrid, Label, LabelList, XAxis, YAxis } from 'recharts';
56
47
  export { z as zod } from 'zod';
57
48
  export { zodResolver } from '@hookform/resolvers/zod';
@@ -1,78 +1,78 @@
1
- const extend = {
2
- colors: {
3
- background: 'hsl(var(--background))',
4
- foreground: 'hsl(var(--foreground))',
5
- card: {
6
- DEFAULT: 'hsl(var(--card))',
7
- foreground: 'hsl(var(--card-foreground))',
8
- },
9
- popover: {
10
- DEFAULT: 'hsl(var(--popover))',
11
- foreground: 'hsl(var(--popover-foreground))',
12
- },
13
- primary: {
14
- DEFAULT: 'hsl(var(--primary))',
15
- foreground: 'hsl(var(--primary-foreground))',
16
- },
17
- secondary: {
18
- DEFAULT: 'hsl(var(--secondary))',
19
- foreground: 'hsl(var(--secondary-foreground))',
20
- },
21
- muted: {
22
- DEFAULT: 'hsl(var(--muted))',
23
- foreground: 'hsl(var(--muted-foreground))',
24
- },
25
- accent: {
26
- DEFAULT: 'hsl(var(--accent))',
27
- foreground: 'hsl(var(--accent-foreground))',
28
- },
29
- destructive: {
30
- DEFAULT: 'hsl(var(--destructive))',
31
- foreground: 'hsl(var(--destructive-foreground))',
32
- },
33
- border: 'hsl(var(--border))',
34
- input: 'hsl(var(--input))',
35
- ring: 'hsl(var(--ring))',
36
- chart: {
37
- 1: 'hsl(var(--chart-1))',
38
- 2: 'hsl(var(--chart-2))',
39
- 3: 'hsl(var(--chart-3))',
40
- 4: 'hsl(var(--chart-4))',
41
- 5: 'hsl(var(--chart-5))',
42
- 6: 'hsl(var(--chart-6))',
43
- 7: 'hsl(var(--chart-7))',
44
- 8: 'hsl(var(--chart-8))',
45
- },
46
- sidebar: {
47
- DEFAULT: 'hsl(var(--sidebar-background))',
48
- foreground: 'hsl(var(--sidebar-foreground))',
49
- primary: 'hsl(var(--sidebar-primary))',
50
- 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
51
- accent: 'hsl(var(--sidebar-accent))',
52
- 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
53
- border: 'hsl(var(--sidebar-border))',
54
- ring: 'hsl(var(--sidebar-ring))',
55
- },
56
- },
57
- borderRadius: {
58
- lg: 'var(--radius)',
59
- md: 'calc(var(--radius) - 2px)',
60
- sm: 'calc(var(--radius) - 4px)',
61
- },
62
- keyframes: {
63
- 'accordion-down': {
64
- from: { height: '0' },
65
- to: { height: 'var(--radix-accordion-content-height)' },
66
- },
67
- 'accordion-up': {
68
- from: { height: 'var(--radix-accordion-content-height)' },
69
- to: { height: '0' },
70
- },
71
- },
72
- animation: {
73
- 'accordion-down': 'accordion-down 0.2s ease-out',
74
- 'accordion-up': 'accordion-up 0.2s ease-out',
75
- },
76
- };
77
-
78
- export { extend };
1
+ const extend = {
2
+ colors: {
3
+ background: 'hsl(var(--background))',
4
+ foreground: 'hsl(var(--foreground))',
5
+ card: {
6
+ DEFAULT: 'hsl(var(--card))',
7
+ foreground: 'hsl(var(--card-foreground))',
8
+ },
9
+ popover: {
10
+ DEFAULT: 'hsl(var(--popover))',
11
+ foreground: 'hsl(var(--popover-foreground))',
12
+ },
13
+ primary: {
14
+ DEFAULT: 'hsl(var(--primary))',
15
+ foreground: 'hsl(var(--primary-foreground))',
16
+ },
17
+ secondary: {
18
+ DEFAULT: 'hsl(var(--secondary))',
19
+ foreground: 'hsl(var(--secondary-foreground))',
20
+ },
21
+ muted: {
22
+ DEFAULT: 'hsl(var(--muted))',
23
+ foreground: 'hsl(var(--muted-foreground))',
24
+ },
25
+ accent: {
26
+ DEFAULT: 'hsl(var(--accent))',
27
+ foreground: 'hsl(var(--accent-foreground))',
28
+ },
29
+ destructive: {
30
+ DEFAULT: 'hsl(var(--destructive))',
31
+ foreground: 'hsl(var(--destructive-foreground))',
32
+ },
33
+ border: 'hsl(var(--border))',
34
+ input: 'hsl(var(--input))',
35
+ ring: 'hsl(var(--ring))',
36
+ chart: {
37
+ 1: 'hsl(var(--chart-1))',
38
+ 2: 'hsl(var(--chart-2))',
39
+ 3: 'hsl(var(--chart-3))',
40
+ 4: 'hsl(var(--chart-4))',
41
+ 5: 'hsl(var(--chart-5))',
42
+ 6: 'hsl(var(--chart-6))',
43
+ 7: 'hsl(var(--chart-7))',
44
+ 8: 'hsl(var(--chart-8))',
45
+ },
46
+ sidebar: {
47
+ DEFAULT: 'hsl(var(--sidebar-background))',
48
+ foreground: 'hsl(var(--sidebar-foreground))',
49
+ primary: 'hsl(var(--sidebar-primary))',
50
+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
51
+ accent: 'hsl(var(--sidebar-accent))',
52
+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
53
+ border: 'hsl(var(--sidebar-border))',
54
+ ring: 'hsl(var(--sidebar-ring))',
55
+ },
56
+ },
57
+ borderRadius: {
58
+ lg: 'var(--radius)',
59
+ md: 'calc(var(--radius) - 2px)',
60
+ sm: 'calc(var(--radius) - 4px)',
61
+ },
62
+ keyframes: {
63
+ 'accordion-down': {
64
+ from: { height: '0' },
65
+ to: { height: 'var(--radix-accordion-content-height)' },
66
+ },
67
+ 'accordion-up': {
68
+ from: { height: 'var(--radix-accordion-content-height)' },
69
+ to: { height: '0' },
70
+ },
71
+ },
72
+ animation: {
73
+ 'accordion-down': 'accordion-down 0.2s ease-out',
74
+ 'accordion-up': 'accordion-up 0.2s ease-out',
75
+ },
76
+ };
77
+
78
+ export { extend };