@theme-ui/components
Advanced tools
Comparing version 0.4.0-alpha.0 to 0.4.0-alpha.1
@@ -75,3 +75,3 @@ import { css, get } from '@theme-ui/css'; | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref }, props, { __themeKey: "text" })); }); | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, variant: "default" }, props, { __themeKey: "text" })); }); | ||
@@ -78,0 +78,0 @@ var Heading = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, as: "h2", variant: "heading" }, props, { __themeKey: "text", __css: { |
@@ -77,3 +77,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref }, props, { __themeKey: "text" })); }); | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, variant: "default" }, props, { __themeKey: "text" })); }); | ||
@@ -80,0 +80,0 @@ var Heading = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, as: "h2", variant: "heading" }, props, { __themeKey: "text", __css: { |
@@ -77,3 +77,3 @@ (function (global, factory) { | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref }, props, { __themeKey: "text" })); }); | ||
var Text = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, variant: "default" }, props, { __themeKey: "text" })); }); | ||
@@ -80,0 +80,0 @@ var Heading = React.forwardRef(function (props, ref) { return React.createElement( Box, Object.assign({}, { ref: ref, as: "h2", variant: "heading" }, props, { __themeKey: "text", __css: { |
{ | ||
"name": "@theme-ui/components", | ||
"version": "0.4.0-alpha.0", | ||
"version": "0.4.0-alpha.1", | ||
"main": "dist/index.js", | ||
@@ -17,3 +17,3 @@ "module": "dist/index.esm.js", | ||
"@styled-system/space": "^5.1.2", | ||
"@theme-ui/css": "^0.4.0-alpha.0" | ||
"@theme-ui/css": "^0.4.0-alpha.1" | ||
}, | ||
@@ -28,3 +28,3 @@ "peerDependencies": { | ||
"license": "MIT", | ||
"gitHead": "fbdd88ea280c0d9880d39a114cb6d19f0d4da2ca" | ||
"gitHead": "3017092f4790b1f83259ce2f638619906840dd51" | ||
} |
@@ -6,2 +6,4 @@ | ||
**Note:** *This package is included in the main `theme-ui` package and a separate installation is not required.* | ||
```sh | ||
@@ -8,0 +10,0 @@ npm i @theme-ui/components |
@@ -5,3 +5,3 @@ import React from 'react' | ||
export const Text = React.forwardRef((props, ref) => ( | ||
<Box ref={ref} {...props} __themeKey="text" /> | ||
<Box ref={ref} variant="default" {...props} __themeKey="text" /> | ||
)) |
@@ -66,2 +66,5 @@ import React from 'react' | ||
text: { | ||
default: { | ||
fontSize: 3, | ||
}, | ||
heading: { | ||
@@ -68,0 +71,0 @@ fontSize: 5, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
244901
3070
13
Updated@theme-ui/css@^0.4.0-alpha.1