@tecsinapse/cortex-react 1.9.38-beta.2 → 1.9.39-beta.0

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.
@@ -9,6 +9,7 @@ const PopoverContent = ({
9
9
  children,
10
10
  className,
11
11
  modal = false,
12
+ style,
12
13
  ...rest
13
14
  }) => {
14
15
  const {
@@ -34,6 +35,7 @@ const PopoverContent = ({
34
35
  position: strategy,
35
36
  top: y ?? 0,
36
37
  left: x ?? 0,
38
+ ...style,
37
39
  ...floatingStyles
38
40
  }
39
41
  },
@@ -10,7 +10,8 @@ const SelectPopover = ({ children }) => {
10
10
  return /* @__PURE__ */ React.createElement(react.FloatingPortal, null, /* @__PURE__ */ React.createElement(
11
11
  index.Popover.Content,
12
12
  {
13
- className: `bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0 ${triggerWidth ? `!w-[${triggerWidth}px]` : "w-auto"}`
13
+ className: "bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
14
+ style: { width: triggerWidth ? `${triggerWidth}px` : "auto" }
14
15
  },
15
16
  children
16
17
  ));
@@ -21,6 +21,7 @@ const Tooltip = React.forwardRef(
21
21
  placement = "top",
22
22
  width,
23
23
  height,
24
+ style,
24
25
  delay = { open: 500, close: 0 }
25
26
  } = props;
26
27
  const arrowRef = React.useRef(null);
@@ -46,6 +47,7 @@ const Tooltip = React.forwardRef(
46
47
  left: x ?? 0,
47
48
  width,
48
49
  height,
50
+ ...style,
49
51
  ...floatingStyles
50
52
  },
51
53
  ...getFloatingProps()
@@ -7,6 +7,7 @@ const PopoverContent = ({
7
7
  children,
8
8
  className,
9
9
  modal = false,
10
+ style,
10
11
  ...rest
11
12
  }) => {
12
13
  const {
@@ -32,6 +33,7 @@ const PopoverContent = ({
32
33
  position: strategy,
33
34
  top: y ?? 0,
34
35
  left: x ?? 0,
36
+ ...style,
35
37
  ...floatingStyles
36
38
  }
37
39
  },
@@ -8,7 +8,8 @@ const SelectPopover = ({ children }) => {
8
8
  return /* @__PURE__ */ React__default.createElement(FloatingPortal, null, /* @__PURE__ */ React__default.createElement(
9
9
  Popover.Content,
10
10
  {
11
- className: `bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0 ${triggerWidth ? `!w-[${triggerWidth}px]` : "w-auto"}`
11
+ className: "bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
12
+ style: { width: triggerWidth ? `${triggerWidth}px` : "auto" }
12
13
  },
13
14
  children
14
15
  ));
@@ -19,6 +19,7 @@ const Tooltip = forwardRef(
19
19
  placement = "top",
20
20
  width,
21
21
  height,
22
+ style,
22
23
  delay = { open: 500, close: 0 }
23
24
  } = props;
24
25
  const arrowRef = useRef(null);
@@ -44,6 +45,7 @@ const Tooltip = forwardRef(
44
45
  left: x ?? 0,
45
46
  width,
46
47
  height,
48
+ ...style,
47
49
  ...floatingStyles
48
50
  },
49
51
  ...getFloatingProps()
@@ -3,5 +3,6 @@ import React from 'react';
3
3
  export interface PopoverContentProps extends Omit<FloatingFocusManagerProps, 'children' | 'context'> {
4
4
  children: React.ReactNode;
5
5
  className?: string;
6
+ style?: React.CSSProperties;
6
7
  }
7
- export declare const PopoverContent: ({ children, className, modal, ...rest }: PopoverContentProps) => React.JSX.Element;
8
+ export declare const PopoverContent: ({ children, className, modal, style, ...rest }: PopoverContentProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export declare const Popover: {
2
2
  Root: ({ children, placement, trigger, ...props }: import("./Root").PopoverRootProps) => import("react").JSX.Element;
3
3
  Trigger: ({ children, disabled }: import("./Trigger").PopoverTriggerProps) => import("react").FunctionComponentElement<any>;
4
- Content: ({ children, className, modal, ...rest }: import("./Content").PopoverContentProps) => import("react").JSX.Element;
4
+ Content: ({ children, className, modal, style, ...rest }: import("./Content").PopoverContentProps) => import("react").JSX.Element;
5
5
  Provider: ({ children, placement, trigger, fallbackPlacements, ...props }: import("./Provider").PopoverProviderProps) => import("react").JSX.Element;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.9.38-beta.2",
3
+ "version": "1.9.39-beta.0",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -48,5 +48,5 @@
48
48
  "react-dom": ">=18.0.0",
49
49
  "tailwind": ">=3.3.0"
50
50
  },
51
- "gitHead": "0619456649f9561d4ec78a8443e06b503716476f"
51
+ "gitHead": "a1dad574a57b736560c130d08965a92bbc8b1b85"
52
52
  }