lecom-ui 5.2.61 → 5.2.63
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.
|
@@ -42,7 +42,8 @@ function OptionButtons({
|
|
|
42
42
|
plain,
|
|
43
43
|
optionLabels,
|
|
44
44
|
ButtonComponent,
|
|
45
|
-
buttonSize
|
|
45
|
+
buttonSize,
|
|
46
|
+
buttonClassName
|
|
46
47
|
}) {
|
|
47
48
|
const [labelAnd, labelOr] = optionLabels;
|
|
48
49
|
const Btn = ButtonComponent;
|
|
@@ -57,6 +58,7 @@ function OptionButtons({
|
|
|
57
58
|
/* @__PURE__ */ React.createElement(
|
|
58
59
|
Btn,
|
|
59
60
|
{
|
|
61
|
+
type: "button",
|
|
60
62
|
variant: "ghost",
|
|
61
63
|
color: "grey",
|
|
62
64
|
size: buttonSize,
|
|
@@ -64,7 +66,8 @@ function OptionButtons({
|
|
|
64
66
|
disabled: !isActive,
|
|
65
67
|
className: cn(
|
|
66
68
|
"px-4 py-1 text-sm transition !rounded-none",
|
|
67
|
-
value === "AND" ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-white text-gray-700 hover:bg-blue-50"
|
|
69
|
+
value === "AND" ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-white text-gray-700 hover:bg-blue-50",
|
|
70
|
+
buttonClassName
|
|
68
71
|
)
|
|
69
72
|
},
|
|
70
73
|
labelAnd
|
|
@@ -72,6 +75,7 @@ function OptionButtons({
|
|
|
72
75
|
/* @__PURE__ */ React.createElement(
|
|
73
76
|
Btn,
|
|
74
77
|
{
|
|
78
|
+
type: "button",
|
|
75
79
|
variant: "ghost",
|
|
76
80
|
color: "grey",
|
|
77
81
|
size: buttonSize,
|
|
@@ -79,7 +83,8 @@ function OptionButtons({
|
|
|
79
83
|
disabled: !isActive,
|
|
80
84
|
className: cn(
|
|
81
85
|
"px-4 py-1 text-sm transition !rounded-none",
|
|
82
|
-
value === "OR" ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-white text-gray-700 hover:bg-blue-50"
|
|
86
|
+
value === "OR" ? "bg-blue-600 text-white hover:bg-blue-500" : "bg-white text-gray-700 hover:bg-blue-50",
|
|
87
|
+
buttonClassName
|
|
83
88
|
)
|
|
84
89
|
},
|
|
85
90
|
labelOr
|
|
@@ -98,6 +103,7 @@ function CustomDivider({
|
|
|
98
103
|
optionLabels = ["E", "OU"],
|
|
99
104
|
ButtonComponent = Button,
|
|
100
105
|
buttonSize = "medium",
|
|
106
|
+
buttonClassName,
|
|
101
107
|
className,
|
|
102
108
|
style
|
|
103
109
|
}) {
|
|
@@ -158,7 +164,8 @@ function CustomDivider({
|
|
|
158
164
|
plain,
|
|
159
165
|
optionLabels,
|
|
160
166
|
ButtonComponent,
|
|
161
|
-
buttonSize
|
|
167
|
+
buttonSize,
|
|
168
|
+
buttonClassName
|
|
162
169
|
}
|
|
163
170
|
)
|
|
164
171
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1137,10 +1137,12 @@ interface CustomDividerProps<T extends FieldValues> {
|
|
|
1137
1137
|
onClick(): void;
|
|
1138
1138
|
}>;
|
|
1139
1139
|
buttonSize?: ButtonProps['size'];
|
|
1140
|
+
/** Classes customizadas para os botões */
|
|
1141
|
+
buttonClassName?: string;
|
|
1140
1142
|
className?: string;
|
|
1141
1143
|
style?: React$1.CSSProperties;
|
|
1142
1144
|
}
|
|
1143
|
-
declare function CustomDivider<T extends FieldValues>({ name, control, isActive, isGroupDivider, orientation, dashed, plain, lineOnly, optionLabels, ButtonComponent, buttonSize, className, style, }: CustomDividerProps<T>): React$1.JSX.Element;
|
|
1145
|
+
declare function CustomDivider<T extends FieldValues>({ name, control, isActive, isGroupDivider, orientation, dashed, plain, lineOnly, optionLabels, ButtonComponent, buttonSize, buttonClassName, className, style, }: CustomDividerProps<T>): React$1.JSX.Element;
|
|
1144
1146
|
|
|
1145
1147
|
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, Combobox, CustomDivider, 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, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Spin, 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, colors, fonts, initializeI18n, inputVariants, notificationVariants, reducer, tagVariants, textareaVariants, toast, typographyVariants, useFormField, useIsMobile, useNotificationToast, usePagination, useSidebar };
|
|
1146
1148
|
export type { BgColor, BuildCellSelect, BuildColumns, BuildHeaderSelect, ButtonProps, CadastroFacilProps, CalloutNotificationProps, ChartConfig, CheckboxProps, CheckedCell, CheckedCellChange, CheckedHeader, CheckedHeaderChange, Color, ColorToken, Column, ColumnRender, ColumnSort, ColumnSortClient, ColumnTitle, ComboboxGroup, ComboboxOption, 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, TagItem, TagProps, TextColor, TextareaProps, ToastNotificationProps, ToasterToast, TooltipContentProps, TypographyProps, UploadProps, UsePaginationItem };
|