@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/CHANGELOG.md +10 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Box/index.d.ts +2 -2
- package/dist/Button/index.d.ts +2 -2
- package/dist/CHANGELOG.md +10 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Link/index.d.ts +3 -3
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +6 -8
- package/dist/SegmentedControl/index.d.ts +2 -2
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/SplitButton/index.d.ts +2 -2
- package/dist/SplitButton/index.js +1 -1
- package/dist/Stepper/index.d.ts +2 -2
- package/dist/Stepper/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +5 -7
- package/dist/index.js +1 -1
- package/package.json +6 -6
|
@@ -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 &
|
|
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
|
}
|