@emotion/styled-base
Advanced tools
Comparing version 10.0.13 to 10.0.14
# @emotion/styled-base | ||
## 10.0.14 | ||
### Patch Changes | ||
- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pulls/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool | ||
- [c673e200](https://github.com/emotion-js/emotion/commit/c673e200) [#1405](https://github.com/emotion-js/emotion/pulls/1405) Thanks [@ryanswanson](https://github.com/ryanswanson)! - PropsOf<C> TypeScript utilities - Support defaultProps by delegating to new JSX and React types. | ||
## 10.0.13 | ||
@@ -4,0 +11,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault(ex) { | ||
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; | ||
} | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
var React = require('react'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var core = require('@emotion/core'); | ||
var utils = require('@emotion/utils'); | ||
var serialize = require('@emotion/serialize'); | ||
@@ -134,2 +125,3 @@ | ||
var ele = React.createElement(finalTag, newProps); | ||
return ele; | ||
@@ -136,0 +128,0 @@ }); |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault(ex) { | ||
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; | ||
} | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
var React = require('react'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var core = require('@emotion/core'); | ||
var utils = require('@emotion/utils'); | ||
var serialize = require('@emotion/serialize'); | ||
@@ -22,0 +13,0 @@ |
{ | ||
"name": "@emotion/styled-base", | ||
"version": "10.0.13", | ||
"version": "10.0.14", | ||
"description": "base styled API for emotion", | ||
@@ -19,12 +19,12 @@ "main": "dist/styled-base.cjs.js", | ||
"@babel/runtime": "^7.4.3", | ||
"@emotion/is-prop-valid": "0.8.1", | ||
"@emotion/serialize": "^0.11.7", | ||
"@emotion/utils": "0.11.1" | ||
"@emotion/is-prop-valid": "0.8.2", | ||
"@emotion/serialize": "^0.11.8", | ||
"@emotion/utils": "0.11.2" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "16.3.18", | ||
"@types/react": "^16.8.20", | ||
"dtslint": "^0.3.0" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/core": "^10.0.0", | ||
"@emotion/core": "^10.0.14", | ||
"react": ">=16.3.0" | ||
@@ -31,0 +31,0 @@ }, |
@@ -7,12 +7,6 @@ import * as React from 'react' | ||
export type PropsOf< | ||
Tag extends React.ComponentType<any> | ||
> = Tag extends React.SFC<infer Props> | ||
? Props & React.Attributes | ||
: Tag extends React.ComponentClass<infer Props> | ||
? (Tag extends new (...args: Array<any>) => infer Instance | ||
? Props & React.ClassAttributes<Instance> | ||
: never) | ||
: never | ||
C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any> | ||
> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithRef<C>> | ||
export type Omit<T, U> = T extends any ? Pick<T, Exclude<keyof T, U>> : never | ||
export type Overwrapped<T, U> = Pick<T, Extract<keyof T, keyof U>> |
// Definitions by: Junyoung Clare Jang <https://github.com/Ailrun> | ||
// TypeScript Version: 2.8 | ||
// TypeScript Version: 3.1 | ||
@@ -59,3 +59,3 @@ /** | ||
ExtraProps, | ||
Theme extends object | ||
StyledInstanceTheme extends object | ||
> { | ||
@@ -66,3 +66,4 @@ < | ||
ReactClassPropKeys | ||
> = Omit<InnerProps & ExtraProps, ReactClassPropKeys> | ||
> = Omit<InnerProps & ExtraProps, ReactClassPropKeys>, | ||
Theme extends object = StyledInstanceTheme | ||
>( | ||
@@ -75,3 +76,4 @@ ...styles: Array<Interpolation<WithTheme<StyleProps, Theme>>> | ||
ReactClassPropKeys | ||
> = Omit<InnerProps & ExtraProps, ReactClassPropKeys> | ||
> = Omit<InnerProps & ExtraProps, ReactClassPropKeys>, | ||
Theme extends object = StyledInstanceTheme | ||
>( | ||
@@ -78,0 +80,0 @@ template: TemplateStringsArray, |
@@ -21,5 +21,5 @@ { | ||
], | ||
"no-null-undefined-union": false, | ||
"no-unnecessary-generics": false | ||
} | ||
} |
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
91068
1257
+ Added@emotion/is-prop-valid@0.8.2(transitive)
+ Added@emotion/memoize@0.7.2(transitive)
+ Added@emotion/utils@0.11.2(transitive)
- Removed@emotion/is-prop-valid@0.8.1(transitive)
- Removed@emotion/memoize@0.7.1(transitive)
- Removed@emotion/utils@0.11.1(transitive)
Updated@emotion/is-prop-valid@0.8.2
Updated@emotion/serialize@^0.11.8
Updated@emotion/utils@0.11.2