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.2250.a5dfac6ee7342fb74c68b915d82541eea905f5a7.0 to 0.15.0--canary.2276.6a5505f7fb192192298b9a19a5dd8bb2e9265500.0

10

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

6

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

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

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