@leafygreen-ui/box
Advanced tools
Comparing version 3.1.7 to 3.1.8
# @leafygreen-ui/box | ||
## 3.1.8 | ||
### Patch Changes | ||
- 4fcf2e94: Updates types with `React.PropsWithChildren` | ||
## 3.1.7 | ||
@@ -4,0 +10,0 @@ |
@@ -24,3 +24,3 @@ import React from 'react'; | ||
*/ | ||
as: React.ComponentType<TProps>; | ||
as: React.ComponentType<React.PropsWithChildren<TProps>>; | ||
}, ExtraProps>; | ||
@@ -42,3 +42,3 @@ export declare type BoxProps<Default extends React.ElementType = 'div', ExtraProps = {}> = BoxAnchorDefault<ExtraProps> | BoxIntrinsic<keyof JSX.IntrinsicElements, ExtraProps> | BoxComponent<{}, ExtraProps> | BoxDefault<Default, ExtraProps>; | ||
export default Box; | ||
export interface ExtendableBox<ExtraProps, Default extends React.ElementType = 'div'> extends Pick<React.FunctionComponent<BoxProps<Default, ExtraProps>>, 'displayName' | 'propTypes'> { | ||
export interface ExtendableBox<ExtraProps, Default extends React.ElementType = 'div'> extends Pick<React.FunctionComponent<React.PropsWithChildren<BoxProps<Default, ExtraProps>>>, 'displayName' | 'propTypes'> { | ||
<TElement extends keyof JSX.IntrinsicElements>(props: BoxIntrinsic<TElement, ExtraProps>): JSX.Element | null; | ||
@@ -45,0 +45,0 @@ (props: BoxAnchorDefault<ExtraProps>): JSX.Element | null; |
{ | ||
"name": "@leafygreen-ui/box", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "leafyGreen UI Kit Box", | ||
@@ -34,4 +34,4 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@leafygreen-ui/lib": "^10.4.3" | ||
"@leafygreen-ui/lib": "^11.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39542
487