@abdellatifui/react 3.2.93 → 3.2.94

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/nextgen.d.ts CHANGED
@@ -982,11 +982,11 @@ export declare function range(start: any, end: any, step?: number): any[];
982
982
 
983
983
  export declare const ScrolBarStyle: (props: any) => JSX.Element;
984
984
 
985
- export declare const ScrollArea: default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>;
985
+ export declare const ScrollArea: default_2.MemoExoticComponent<(props: ScrollAreaProps) => JSX.Element>;
986
986
 
987
- export declare interface ScrollAreaProps extends ContainerProps {
988
- orientation?: 'horizontal' | 'vertical';
989
- scrollHideDelay?: number;
987
+ export declare interface ScrollAreaProps extends default_2.HTMLAttributes<HTMLDivElement> {
988
+ ref?: default_2.RefObject<HTMLDivElement>;
989
+ divProps?: default_2.HTMLAttributes<HTMLDivElement>;
990
990
  }
991
991
 
992
992
  export declare type ShadcnTabsProps = {
package/dist/nextgen.js CHANGED
@@ -24767,9 +24767,14 @@ function useMouseLocation(event, menuRef, modelRef) {
24767
24767
  return [location, setLocation];
24768
24768
  }
24769
24769
  const vrs$9 = cva("custom-scroll-bar overflow-auto relative h-full w-full", {});
24770
- const ScrollArea = forwardRef((props, ref) => {
24771
- const { children, className } = props;
24772
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: cn(vrs$9({}), className), ref, children });
24770
+ const ScrollArea = memo((props) => {
24771
+ const {
24772
+ children,
24773
+ className,
24774
+ divProps = {},
24775
+ ref
24776
+ } = props;
24777
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...divProps, className: cn(vrs$9({}), className), ref, children });
24773
24778
  });
24774
24779
  const useSubmenuPosition = ({ subItems, showSubMenu }) => {
24775
24780
  const [submenuPosition, setSubmenuPosition] = useState({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.93",
4
+ "version": "3.2.94",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [