@theme-ui/mdx
Advanced tools
Comparing version 0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0 to 0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0
/** @jsx jsx */ | ||
import { IntrinsicSxElements, SxProp } from '@theme-ui/core'; | ||
import { Theme } from '@theme-ui/css'; | ||
import { IntrinsicSxElements } from '@theme-ui/core'; | ||
import { CSSObject, Theme } from '@theme-ui/css'; | ||
import { ComponentType, FC, ReactNode, DetailedHTMLProps, HTMLAttributes, ComponentProps } from 'react'; | ||
@@ -29,5 +29,7 @@ declare type MDXProviderComponentsKnownKeys = { | ||
export declare type ThemedComponentName = keyof IntrinsicSxElements; | ||
export declare const themed: (key: ThemedComponentName | (string & {})) => (theme: Theme) => import("@emotion/serialize").CSSObject; | ||
export declare const themed: (key: ThemedComponentName | (string & {})) => (theme: Theme) => CSSObject; | ||
export interface ThemedComponent<Name extends string> { | ||
(props: SxProp & (Name extends keyof JSX.IntrinsicElements ? ComponentProps<Name> : {})): JSX.Element; | ||
(props: (Name extends keyof JSX.IntrinsicElements ? ComponentProps<Name> : {}) & { | ||
css?: CSSObject; | ||
}): JSX.Element; | ||
displayName: string; | ||
@@ -34,0 +36,0 @@ } |
@@ -11,3 +11,3 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -25,3 +25,2 @@ var source = arguments[i]; | ||
}; | ||
return _extends.apply(this, arguments); | ||
@@ -53,3 +52,3 @@ } | ||
}; | ||
}; | ||
}; // opt out of typechecking whenever `as` prop is used | ||
@@ -68,2 +67,3 @@ var createThemedComponent = function createThemedComponent(name, variant) { | ||
var css = props['css']; | ||
return core.jsx(name, _extends({}, props, { | ||
@@ -70,0 +70,0 @@ css: [props.css, variantStyles, extraStyles].filter(Boolean) |
@@ -11,3 +11,3 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -25,3 +25,2 @@ var source = arguments[i]; | ||
}; | ||
return _extends.apply(this, arguments); | ||
@@ -53,3 +52,3 @@ } | ||
}; | ||
}; | ||
}; // opt out of typechecking whenever `as` prop is used | ||
@@ -68,2 +67,3 @@ var createThemedComponent = function createThemedComponent(name, variant) { | ||
var css = props['css']; | ||
return core.jsx(name, _extends({}, props, { | ||
@@ -70,0 +70,0 @@ css: [props.css, variantStyles, extraStyles].filter(Boolean) |
@@ -7,3 +7,3 @@ import { jsx } from '@theme-ui/core'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -21,3 +21,2 @@ var source = arguments[i]; | ||
}; | ||
return _extends.apply(this, arguments); | ||
@@ -49,3 +48,3 @@ } | ||
}; | ||
}; | ||
}; // opt out of typechecking whenever `as` prop is used | ||
@@ -64,2 +63,3 @@ var createThemedComponent = function createThemedComponent(name, variant) { | ||
var css = props['css']; | ||
return jsx(name, _extends({}, props, { | ||
@@ -66,0 +66,0 @@ css: [props.css, variantStyles, extraStyles].filter(Boolean) |
{ | ||
"name": "@theme-ui/mdx", | ||
"version": "0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0", | ||
"version": "0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0", | ||
"source": "src/index.ts", | ||
@@ -10,4 +10,4 @@ "main": "dist/theme-ui-mdx.cjs.js", | ||
"dependencies": { | ||
"@theme-ui/core": "0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0", | ||
"@theme-ui/css": "0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0" | ||
"@theme-ui/core": "0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0", | ||
"@theme-ui/css": "0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "a5dfac6ee7342fb74c68b915d82541eea905f5a7" | ||
"gitHead": "6a5505f7fb192192298b9a19a5dd8bb2e9265500" | ||
} |
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
27030
622
+ Added@theme-ui/core@0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0(transitive)
+ Added@theme-ui/css@0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0(transitive)
+ Added@theme-ui/parse-props@0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0(transitive)
- Removed@theme-ui/core@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0(transitive)
- Removed@theme-ui/css@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0(transitive)
- Removed@theme-ui/parse-props@0.15.0--canary.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0(transitive)
Updated@theme-ui/core@0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0
Updated@theme-ui/css@0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0