@abdellatifui/react 3.2.92 → 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
@@ -24075,7 +24075,6 @@ const AccordionItem = (props) => {
24075
24075
  }, delay);
24076
24076
  }
24077
24077
  if (!isOpen) {
24078
- $(contentRef.current).find("div").first().addClass("css-opacity-0");
24079
24078
  onClose(form);
24080
24079
  }
24081
24080
  updateApi((prev) => ({ ...prev, ...form }));
@@ -24768,9 +24767,14 @@ function useMouseLocation(event, menuRef, modelRef) {
24768
24767
  return [location, setLocation];
24769
24768
  }
24770
24769
  const vrs$9 = cva("custom-scroll-bar overflow-auto relative h-full w-full", {});
24771
- const ScrollArea = forwardRef((props, ref) => {
24772
- const { children, className } = props;
24773
- 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 });
24774
24778
  });
24775
24779
  const useSubmenuPosition = ({ subItems, showSubMenu }) => {
24776
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.92",
4
+ "version": "3.2.94",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [