File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cube-dev/ui-kit ' : minor
3+ ---
4+
5+ Improve compatibility with React 18 in some cases.
Original file line number Diff line number Diff line change 1- import { AllHTMLAttributes , CSSProperties } from 'react' ;
1+ import { AllHTMLAttributes , CSSProperties , PropsWithChildren } from 'react' ;
22
33import { Styles } from './styles/types' ;
44import {
@@ -80,8 +80,7 @@ export interface BasePropsWithoutChildren
8080}
8181
8282export interface BaseProps
83- extends BasePropsWithoutChildren ,
84- Pick < AllHTMLAttributes < HTMLElementTagNameMap [ 'div' ] > , 'children' > { }
83+ extends PropsWithChildren < BasePropsWithoutChildren > { }
8584
8685export interface AllBaseProps < K extends keyof HTMLElementTagNameMap = 'div' >
8786 extends BaseProps ,
You can’t perform that action at this time.
0 commit comments