lecom-ui 5.3.74 → 5.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Combobox/Combobox.js +11 -11
- package/dist/index.d.ts +9 -9
- package/package.json +1 -1
|
@@ -56,19 +56,18 @@ const getFontVariant = (size) => {
|
|
|
56
56
|
return sizeMap[size ?? "medium"];
|
|
57
57
|
};
|
|
58
58
|
const comboboxItemVariants = cva(
|
|
59
|
-
"text-grey-800 flex items-
|
|
59
|
+
"text-grey-800 flex items-start justify-start gap-2 hover:bg-grey-50 hover:cursor-pointer py-1 w-full",
|
|
60
60
|
{
|
|
61
61
|
variants: {
|
|
62
62
|
size: {
|
|
63
|
-
small: "
|
|
64
|
-
medium: "
|
|
65
|
-
large: "
|
|
63
|
+
small: "body-small-400",
|
|
64
|
+
medium: "body-medium-400",
|
|
65
|
+
large: "body-large-400"
|
|
66
66
|
},
|
|
67
67
|
disabled: {
|
|
68
68
|
true: "text-grey-400 pointer-events-none",
|
|
69
69
|
false: ""
|
|
70
70
|
},
|
|
71
|
-
// nova variante para destacar o item selecionado
|
|
72
71
|
selected: {
|
|
73
72
|
true: "bg-grey-100 font-medium text-grey-900",
|
|
74
73
|
false: ""
|
|
@@ -116,7 +115,7 @@ const ComboboxItemContent = ({
|
|
|
116
115
|
),
|
|
117
116
|
"aria-current": isSelected ? "true" : void 0
|
|
118
117
|
},
|
|
119
|
-
/* @__PURE__ */ React.createElement(Typography, { className: "w-4 h-4 flex items-
|
|
118
|
+
/* @__PURE__ */ React.createElement(Typography, { className: "w-4 h-4 flex items-start justify-center shrink-0 pt-1" }, option.value === value && /* @__PURE__ */ React.createElement(
|
|
120
119
|
Check,
|
|
121
120
|
{
|
|
122
121
|
className: cn(textColor, isSelected ? "text-primary-600" : ""),
|
|
@@ -124,14 +123,15 @@ const ComboboxItemContent = ({
|
|
|
124
123
|
strokeWidth: isSelected ? 2.5 : 2
|
|
125
124
|
}
|
|
126
125
|
)),
|
|
127
|
-
option.prefix && /* @__PURE__ */ React.createElement(
|
|
126
|
+
option.prefix && /* @__PURE__ */ React.createElement(Typography, { className: cn("mr-2 flex items-start shrink-0", textColor) }, option.prefix),
|
|
127
|
+
/* @__PURE__ */ React.createElement(
|
|
128
128
|
Typography,
|
|
129
129
|
{
|
|
130
|
-
|
|
130
|
+
variant: fontVariant,
|
|
131
|
+
className: cn(textColor, "whitespace-normal")
|
|
131
132
|
},
|
|
132
|
-
option.
|
|
133
|
-
)
|
|
134
|
-
/* @__PURE__ */ React.createElement(Typography, { variant: fontVariant, className: textColor }, option.label)
|
|
133
|
+
option.label
|
|
134
|
+
)
|
|
135
135
|
);
|
|
136
136
|
};
|
|
137
137
|
ComboboxItemContent.displayName = "ComboboxItemContent";
|
package/dist/index.d.ts
CHANGED
|
@@ -756,9 +756,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
declare const inputVariants: (props?: ({
|
|
759
|
-
variant?: "
|
|
760
|
-
size?: "
|
|
761
|
-
radius?: "
|
|
759
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
760
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
761
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
762
762
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
763
763
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
764
764
|
sufix?: React$1.ReactNode;
|
|
@@ -961,7 +961,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
961
961
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
962
962
|
|
|
963
963
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
964
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<
|
|
964
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement | HTMLButtonElement | HTMLLabelElement | HTMLParagraphElement | HTMLHeadingElement | 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"> & {
|
|
965
965
|
className?: string;
|
|
966
966
|
collapsedSize?: number | undefined;
|
|
967
967
|
collapsible?: boolean | undefined;
|
|
@@ -1126,10 +1126,10 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1126
1126
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1127
1127
|
|
|
1128
1128
|
declare const textareaVariants: (props?: ({
|
|
1129
|
-
variant?: "
|
|
1130
|
-
size?: "
|
|
1131
|
-
radius?: "
|
|
1132
|
-
resize?: "
|
|
1129
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
1130
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
1131
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
1132
|
+
resize?: "both" | "horizontal" | "vertical" | "default" | "vertical-limited" | null | undefined;
|
|
1133
1133
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1134
1134
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
1135
1135
|
}
|
|
@@ -1266,7 +1266,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
1266
1266
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1267
1267
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1268
1268
|
declare const sheetVariants: (props?: ({
|
|
1269
|
-
side?: "
|
|
1269
|
+
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
1270
1270
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1271
1271
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1272
1272
|
}
|