@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.
package/dist/index.d.ts CHANGED
@@ -71,10 +71,10 @@ export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps
71
71
  * so that events are typed when using JSX.IntrinsicElements.
72
72
  */
73
73
  <As = IntrinsicElementString>(props: As extends "" ? {
74
- as: keyof JSX.IntrinsicElements;
74
+ as: keyof React.JSX.IntrinsicElements;
75
75
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
76
76
  as: As;
77
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
77
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
78
78
  as: As;
79
79
  }> : never): React.ReactElement | null;
80
80
  }
@@ -3798,16 +3798,14 @@ export interface ScrollPaneItemProperties {
3798
3798
  * Custom class name for styling
3799
3799
  */
3800
3800
  className?: string;
3801
- /**
3802
- * Custom inline styles
3803
- */
3804
- style?: React.CSSProperties;
3805
3801
  /**
3806
3802
  * Callback fired when the item is clicked
3807
3803
  */
3808
3804
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
3809
3805
  }
3810
- export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
3806
+ export type ScrollPaneItemProps = ScrollPaneItemProperties & {
3807
+ style?: React.CSSProperties;
3808
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "children">;
3811
3809
  export type ScrollPaneArrowProperties = {
3812
3810
  children: ReactNode;
3813
3811
  };