lecom-ui 4.6.6 → 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,11 +37,9 @@ const NotificationCallout = ({ ...props }) => {
36
37
  }
37
38
  }, [isCollapsed]);
38
39
  const handleCollapse = () => {
39
- if (props.onCollapseChange) {
40
- props.onCollapseChange(!isCollapsed);
41
- } else {
42
- setIsCollapsed(!isCollapsed);
43
- }
40
+ console.log("handleCollapse", !isCollapsed);
41
+ props.onCollapseChange?.(!isCollapsed);
42
+ setIsCollapsed(!isCollapsed);
44
43
  };
45
44
  const defaultVariant = props.variant ?? "information";
46
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?: "default" | "filled" | "borderless" | null | undefined;
544
- size?: "default" | "small" | "large" | null | undefined;
545
- radius?: "default" | "small" | "large" | null | undefined;
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?: "white" | "black" | null | undefined;
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> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "4.6.6",
3
+ "version": "4.6.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",