lecom-ui 5.3.18 → 5.3.19
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.
|
@@ -23,17 +23,17 @@ const SelectTrigger = React.forwardRef(({ className, children, customStyles, ...
|
|
|
23
23
|
}
|
|
24
24
|
}, [normal]);
|
|
25
25
|
const handleOver = React.useCallback(() => {
|
|
26
|
-
if (hover) {
|
|
26
|
+
if (!isActive && hover) {
|
|
27
27
|
setBackgroundColor(opacity(hover.bgColor, hover.opacity));
|
|
28
28
|
setColor(hover.textColor);
|
|
29
29
|
}
|
|
30
|
-
}, [hover]);
|
|
30
|
+
}, [hover, isActive]);
|
|
31
31
|
const handleOut = React.useCallback(() => {
|
|
32
|
-
if (normal) {
|
|
32
|
+
if (!isActive && normal) {
|
|
33
33
|
setBackgroundColor(opacity(normal.bgColor, normal.opacity));
|
|
34
34
|
setColor(normal.textColor);
|
|
35
35
|
}
|
|
36
|
-
}, [normal]);
|
|
36
|
+
}, [normal, isActive]);
|
|
37
37
|
const handleFocus = React.useCallback(() => setIsActive(true), []);
|
|
38
38
|
const handleBlur = React.useCallback(() => setIsActive(false), []);
|
|
39
39
|
const mappedCustomStyles = React.useMemo(() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -898,7 +898,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
898
898
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
899
899
|
|
|
900
900
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
901
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement |
|
|
901
|
+
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"> & {
|
|
902
902
|
className?: string;
|
|
903
903
|
collapsedSize?: number | undefined;
|
|
904
904
|
collapsible?: boolean | undefined;
|