@nimbus-ds/components 5.45.0 → 5.46.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.
@@ -22,10 +22,10 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
22
22
  * so that events are typed when using JSX.IntrinsicElements.
23
23
  */
24
24
  <As = IntrinsicElementString>(props: As extends "" ? {
25
- as: keyof JSX.IntrinsicElements;
25
+ as: keyof React.JSX.IntrinsicElements;
26
26
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
27
27
  as: As;
28
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
28
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
29
29
  as: As;
30
30
  }> : never): React.ReactElement | null;
31
31
  }
@@ -806,16 +806,14 @@ export interface ScrollPaneItemProperties {
806
806
  * Custom class name for styling
807
807
  */
808
808
  className?: string;
809
- /**
810
- * Custom inline styles
811
- */
812
- style?: React.CSSProperties;
813
809
  /**
814
810
  * Callback fired when the item is clicked
815
811
  */
816
812
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
817
813
  }
818
- export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
814
+ export type ScrollPaneItemProps = ScrollPaneItemProperties & {
815
+ style?: React.CSSProperties;
816
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
819
817
  /**
820
818
  * ScrollPaneItem is a wrapper component for items within a ScrollPane.
821
819
  * It handles click events to scroll the item into view when clicked.
@@ -918,7 +916,7 @@ export interface ScrollPaneContextValue {
918
916
  direction: "horizontal" | "vertical";
919
917
  scrollToItemOnClick: boolean;
920
918
  enableGrabScroll: boolean;
921
- containerRef?: RefObject<HTMLDivElement>;
919
+ containerRef?: RefObject<HTMLDivElement | null>;
922
920
  scrollToDirection: (direction: "start" | "end") => void;
923
921
  }
924
922
  export declare const ScrollPaneContext: import("react").Context<ScrollPaneContextValue | null>;
@@ -22,10 +22,10 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
22
22
  * so that events are typed when using JSX.IntrinsicElements.
23
23
  */
24
24
  <As = IntrinsicElementString>(props: As extends "" ? {
25
- as: keyof JSX.IntrinsicElements;
25
+ as: keyof React.JSX.IntrinsicElements;
26
26
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
27
27
  as: As;
28
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
28
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
29
29
  as: As;
30
30
  }> : never): React.ReactElement | null;
31
31
  }