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