lecom-ui 5.2.81 → 5.2.83
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 +1 -1
- package/dist/components/Calendar/Calendar.js +380 -0
- package/dist/components/Collapse/Collapse.js +94 -0
- package/dist/components/Combobox/Combobox.js +128 -0
- package/dist/components/CustomDivider/CustomDivider.js +207 -0
- package/dist/components/DataTable/DataTable.js +3 -26
- package/dist/components/DataTable/DataTable.utils.js +12 -65
- package/dist/components/DataTable/Table.js +2 -1
- package/dist/components/DatePicker/DatePicker.js +40 -0
- package/dist/components/Steps/Steps.js +102 -0
- package/dist/components/Switch/Switch.js +42 -6
- package/dist/components/TagInput/TagInput.js +106 -0
- package/dist/index.d.ts +134 -30
- package/dist/index.js +9 -0
- package/dist/plugin/extend.js +78 -78
- package/dist/plugin/fontFaces.js +172 -172
- package/dist/plugin/general.js +12 -12
- package/dist/plugin/pluginDev.cjs +5 -5
- package/dist/plugin/pluginNext.cjs +5 -5
- package/dist/plugin/pluginNextTurbo.cjs +5 -5
- package/dist/plugin/pluginVite.cjs +5 -5
- package/dist/plugin/template.js +31 -31
- package/dist/plugin/typographies.js +152 -152
- package/dist/plugin/varsTheme.js +79 -79
- package/dist/style.min.css +1 -1
- package/package.json +9 -4
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { X } from 'lucide-react';
|
|
3
|
+
import { cn } from '../../lib/utils.js';
|
|
4
|
+
import { Tag } from '../Tag/Tag.js';
|
|
5
|
+
import { textareaVariants } from '../Textarea/Textarea.js';
|
|
6
|
+
import { Typography } from '../Typography/Typography.js';
|
|
7
|
+
|
|
8
|
+
function TagInput({
|
|
9
|
+
value,
|
|
10
|
+
onRemove,
|
|
11
|
+
placeholder = "Nenhum item selecionado",
|
|
12
|
+
disabled = false,
|
|
13
|
+
readOnly = false,
|
|
14
|
+
className = "",
|
|
15
|
+
variant = "default",
|
|
16
|
+
radius = "default",
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
const ref = React.useRef(null);
|
|
20
|
+
const [maxVisibleCount, setMaxVisibleCount] = React.useState(
|
|
21
|
+
null
|
|
22
|
+
);
|
|
23
|
+
const [hiddenCount, setHiddenCount] = React.useState(0);
|
|
24
|
+
const calculateMaxVisible = React.useCallback(() => {
|
|
25
|
+
const container = ref.current;
|
|
26
|
+
if (!container) return;
|
|
27
|
+
const children = Array.from(container.children).filter(
|
|
28
|
+
(el) => el.dataset.tag === "true"
|
|
29
|
+
);
|
|
30
|
+
const lines = [];
|
|
31
|
+
children.forEach((c) => {
|
|
32
|
+
const t = c.offsetTop;
|
|
33
|
+
if (!lines.includes(t)) lines.push(t);
|
|
34
|
+
});
|
|
35
|
+
if (lines.length <= 2) {
|
|
36
|
+
setMaxVisibleCount(children.length);
|
|
37
|
+
setHiddenCount(0);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const second = lines[1];
|
|
41
|
+
let count = 0;
|
|
42
|
+
for (const c of children) {
|
|
43
|
+
if (c.offsetTop > second) break;
|
|
44
|
+
count++;
|
|
45
|
+
}
|
|
46
|
+
setMaxVisibleCount(count);
|
|
47
|
+
setHiddenCount(children.length - count);
|
|
48
|
+
}, []);
|
|
49
|
+
React.useLayoutEffect(() => {
|
|
50
|
+
if (maxVisibleCount === null) {
|
|
51
|
+
const id = window.requestAnimationFrame(calculateMaxVisible);
|
|
52
|
+
return () => window.cancelAnimationFrame(id);
|
|
53
|
+
}
|
|
54
|
+
}, [maxVisibleCount, calculateMaxVisible]);
|
|
55
|
+
const visibleCount = maxVisibleCount === null ? value.length : maxVisibleCount;
|
|
56
|
+
const displayTags = value.slice(0, visibleCount);
|
|
57
|
+
const currentHiddenCount = Math.max(value.length - visibleCount, 0);
|
|
58
|
+
React.useEffect(() => {
|
|
59
|
+
setHiddenCount(currentHiddenCount);
|
|
60
|
+
}, [currentHiddenCount]);
|
|
61
|
+
const textareaRadius = radius === "full" ? "large" : radius;
|
|
62
|
+
return /* @__PURE__ */ React.createElement(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
ref,
|
|
66
|
+
className: cn(
|
|
67
|
+
textareaVariants({ variant, radius: textareaRadius }),
|
|
68
|
+
"flex flex-wrap items-start min-h-10 gap-1 py-2 px-3",
|
|
69
|
+
disabled && "opacity-50 pointer-events-none",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
tabIndex: 0,
|
|
73
|
+
"aria-disabled": disabled,
|
|
74
|
+
style: { resize: "none", cursor: disabled ? "not-allowed" : "text" },
|
|
75
|
+
...props
|
|
76
|
+
},
|
|
77
|
+
value.length === 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "body-small-400", className: "text-grey-400" }, placeholder),
|
|
78
|
+
displayTags.map((item) => /* @__PURE__ */ React.createElement(Tag, { key: item.value, "data-tag": "true", color: "blue" }, /* @__PURE__ */ React.createElement(Typography, { variant: "body-small-400", className: "text-blue-600" }, item.label), !readOnly && /* @__PURE__ */ React.createElement(
|
|
79
|
+
X,
|
|
80
|
+
{
|
|
81
|
+
className: "w-4 h-4 cursor-pointer",
|
|
82
|
+
onClick: (e) => {
|
|
83
|
+
e.stopPropagation();
|
|
84
|
+
onRemove(item.value);
|
|
85
|
+
},
|
|
86
|
+
"aria-label": `Remover ${item.label}`,
|
|
87
|
+
tabIndex: 0
|
|
88
|
+
}
|
|
89
|
+
))),
|
|
90
|
+
hiddenCount > 0 && /* @__PURE__ */ React.createElement(Tag, { color: "grey", "data-tag": "true" }, /* @__PURE__ */ React.createElement(Typography, { variant: "body-small-400", className: "text-grey-600" }, "+", hiddenCount), !readOnly && /* @__PURE__ */ React.createElement(
|
|
91
|
+
X,
|
|
92
|
+
{
|
|
93
|
+
className: "w-4 h-4 cursor-pointer text-grey-500 hover:text-grey-700",
|
|
94
|
+
onClick: (e) => {
|
|
95
|
+
e.stopPropagation();
|
|
96
|
+
const next = value[visibleCount]?.value;
|
|
97
|
+
if (next) onRemove(next);
|
|
98
|
+
},
|
|
99
|
+
"aria-label": "Remover pr\xF3xima tag oculta",
|
|
100
|
+
tabIndex: 0
|
|
101
|
+
}
|
|
102
|
+
))
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { TagInput };
|
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 } from 'react-hook-form';
|
|
22
|
+
import { FieldValues, FieldPath, ControllerProps, Control } 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,6 +36,10 @@ 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';
|
|
39
43
|
export { z as zod } from 'zod';
|
|
40
44
|
export { zodResolver } from '@hookform/resolvers/zod';
|
|
41
45
|
export { Translation, useTranslation } from 'react-i18next';
|
|
@@ -350,22 +354,6 @@ declare const LogoLecomBrand: React$1.ForwardRefExoticComponent<LogoLecomBrandPr
|
|
|
350
354
|
|
|
351
355
|
declare const SairModoTeste: ({ color, strokeWidth, width, height, ...props }: React$1.SVGProps<SVGSVGElement>) => React$1.JSX.Element;
|
|
352
356
|
|
|
353
|
-
declare const inputVariants: (props?: ({
|
|
354
|
-
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
355
|
-
size?: "default" | "small" | "large" | null | undefined;
|
|
356
|
-
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
357
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
358
|
-
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
359
|
-
sufix?: React$1.ReactNode;
|
|
360
|
-
prefix?: React$1.ReactNode;
|
|
361
|
-
iconBefore?: React$1.ReactNode;
|
|
362
|
-
iconAfter?: React$1.ReactNode;
|
|
363
|
-
containerClassName?: string;
|
|
364
|
-
prefixInset?: React$1.ReactNode;
|
|
365
|
-
sufixInset?: React$1.ReactNode;
|
|
366
|
-
}
|
|
367
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
368
|
-
|
|
369
357
|
type UsePaginationProps = {
|
|
370
358
|
count?: number;
|
|
371
359
|
defaultPage?: number;
|
|
@@ -475,13 +463,6 @@ interface CheckedCellChange<TData> {
|
|
|
475
463
|
row: Row$1<TData>;
|
|
476
464
|
value: boolean;
|
|
477
465
|
}
|
|
478
|
-
interface FilterProps {
|
|
479
|
-
className?: string;
|
|
480
|
-
placeholder?: string;
|
|
481
|
-
value?: string;
|
|
482
|
-
setFilterValue?: (value: string) => void;
|
|
483
|
-
inputProps?: Omit<InputProps, 'value' | 'onChange'>;
|
|
484
|
-
}
|
|
485
466
|
interface Column<TData, TValue> {
|
|
486
467
|
key: string;
|
|
487
468
|
title?: (({ table, column }: ColumnTitle<TData, TValue>) => React.ReactNode) | React.ReactNode;
|
|
@@ -499,8 +480,6 @@ interface Column<TData, TValue> {
|
|
|
499
480
|
checkedCell?: ({ row }: CheckedCell<TData>) => boolean;
|
|
500
481
|
onCheckedHeaderChange?: ({ table, column, value, }: CheckedHeaderChange<TData, TValue>) => void;
|
|
501
482
|
onCheckedCellChange?: ({ row, value }: CheckedCellChange<TData>) => void;
|
|
502
|
-
filterable?: boolean;
|
|
503
|
-
filterProps?: FilterProps;
|
|
504
483
|
}
|
|
505
484
|
interface DataTableProps<TData, TValue> {
|
|
506
485
|
isLoading?: boolean;
|
|
@@ -736,6 +715,22 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
736
715
|
onOpenMenuChange?: () => void;
|
|
737
716
|
}
|
|
738
717
|
|
|
718
|
+
declare const inputVariants: (props?: ({
|
|
719
|
+
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
720
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
721
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
722
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
723
|
+
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
724
|
+
sufix?: React$1.ReactNode;
|
|
725
|
+
prefix?: React$1.ReactNode;
|
|
726
|
+
iconBefore?: React$1.ReactNode;
|
|
727
|
+
iconAfter?: React$1.ReactNode;
|
|
728
|
+
containerClassName?: string;
|
|
729
|
+
prefixInset?: React$1.ReactNode;
|
|
730
|
+
sufixInset?: React$1.ReactNode;
|
|
731
|
+
}
|
|
732
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
733
|
+
|
|
739
734
|
interface SideBarProps {
|
|
740
735
|
items: {
|
|
741
736
|
title: string;
|
|
@@ -882,7 +877,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
882
877
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
883
878
|
|
|
884
879
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
885
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement |
|
|
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"> & {
|
|
886
881
|
className?: string;
|
|
887
882
|
collapsedSize?: number | undefined;
|
|
888
883
|
collapsible?: boolean | undefined;
|
|
@@ -939,7 +934,11 @@ interface SpinProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
|
939
934
|
}
|
|
940
935
|
declare const Spin: React$1.ForwardRefExoticComponent<SpinProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
941
936
|
|
|
942
|
-
|
|
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>>;
|
|
943
942
|
|
|
944
943
|
declare const tagVariants: (props?: ({
|
|
945
944
|
color?: "blue" | "grey" | "purple" | "yellow" | "red" | "orange" | "green" | "pink" | "turquoise" | null | undefined;
|
|
@@ -1061,5 +1060,110 @@ declare const DrawerFooter: {
|
|
|
1061
1060
|
declare const DrawerTitle: React$1.ForwardRefExoticComponent<React$1.ComponentPropsWithoutRef<typeof Drawer$1.Title> & React$1.RefAttributes<React$1.ElementRef<typeof Drawer$1.Title>>>;
|
|
1062
1061
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<React$1.ComponentPropsWithoutRef<typeof Drawer$1.Description> & React$1.RefAttributes<React$1.ElementRef<typeof Drawer$1.Description>>>;
|
|
1063
1062
|
|
|
1064
|
-
|
|
1065
|
-
|
|
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
|
+
}
|
|
1163
|
+
declare function DatePicker({ className, variant, locale, }: DatePickerProps): React$1.JSX.Element;
|
|
1164
|
+
declare namespace DatePicker {
|
|
1165
|
+
var displayName: string;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
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 };
|
|
1169
|
+
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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,15 @@ 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';
|
|
46
55
|
export { Bar, BarChart, CartesianGrid, Label, LabelList, XAxis, YAxis } from 'recharts';
|
|
47
56
|
export { z as zod } from 'zod';
|
|
48
57
|
export { zodResolver } from '@hookform/resolvers/zod';
|
package/dist/plugin/extend.js
CHANGED
|
@@ -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 };
|