Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@theme-ui/mdx

Package Overview
Dependencies
Maintainers
4
Versions
418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theme-ui/mdx - npm Package Compare versions

Comparing version 0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0 to 0.15.0--canary.2292.f3eec3b4d4832832f98be40405a005be39a69ee3.0

10

dist/declarations/src/index.d.ts
/** @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 @@ }

3

dist/theme-ui-mdx.cjs.dev.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc