lecom-ui 4.6.5 → 4.6.7
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.
|
@@ -14,6 +14,7 @@ const NotificationCallout = ({ ...props }) => {
|
|
|
14
14
|
const refCollapse = React.useRef(null);
|
|
15
15
|
const contentRef = React.useRef(null);
|
|
16
16
|
React.useEffect(() => {
|
|
17
|
+
console.log("setIsCollapsed", !!props.isCollapsed);
|
|
17
18
|
setIsCollapsed(!!props.isCollapsed);
|
|
18
19
|
}, [props.isCollapsed]);
|
|
19
20
|
React.useEffect(() => {
|
|
@@ -36,8 +37,9 @@ const NotificationCallout = ({ ...props }) => {
|
|
|
36
37
|
}
|
|
37
38
|
}, [isCollapsed]);
|
|
38
39
|
const handleCollapse = () => {
|
|
39
|
-
|
|
40
|
+
console.log("handleCollapse", !isCollapsed);
|
|
40
41
|
props.onCollapseChange?.(!isCollapsed);
|
|
42
|
+
setIsCollapsed(!isCollapsed);
|
|
41
43
|
};
|
|
42
44
|
const defaultVariant = props.variant ?? "information";
|
|
43
45
|
const getGridColumns = () => {
|
package/dist/index.d.ts
CHANGED
|
@@ -540,9 +540,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
declare const inputVariants: (props?: ({
|
|
543
|
-
variant?: "
|
|
544
|
-
size?: "
|
|
545
|
-
radius?: "
|
|
543
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
544
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
545
|
+
radius?: "small" | "large" | "default" | null | undefined;
|
|
546
546
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
547
547
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
548
548
|
sufix?: React$1.ReactNode;
|
|
@@ -703,7 +703,7 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
|
|
|
703
703
|
declare const TooltipArrow: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipArrowProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
704
704
|
declare const TooltipPortal: React$1.FC<TooltipPrimitive.TooltipPortalProps>;
|
|
705
705
|
declare const tooltipContentVariants: (props?: ({
|
|
706
|
-
color?: "
|
|
706
|
+
color?: "black" | "white" | null | undefined;
|
|
707
707
|
arrow?: boolean | null | undefined;
|
|
708
708
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
709
709
|
interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, VariantProps<typeof tooltipContentVariants> {
|