styled-system-props-table
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -24,3 +24,3 @@ { | ||
"name": "styled-system-props-table", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Props table generator with styled-system decorator", | ||
@@ -27,0 +27,0 @@ "main": "dist/main.js", |
import React, { useState } from 'react'; | ||
import styled from 'styled-components'; | ||
import parsePropTypes from './parse-prop-types'; | ||
@@ -8,7 +7,5 @@ import PropRow from './PropRow' | ||
import TableBody from '@material-ui/core/TableBody'; | ||
import TableContainer from '@material-ui/core/TableContainer'; | ||
import TableHead from '@material-ui/core/TableHead'; | ||
import TableRow from '@material-ui/core/TableRow'; | ||
import TableCell from '@material-ui/core/TableCell'; | ||
import { spacing, sizing, typography } from '@material-ui/system'; | ||
import transformStyledSystemProps from './styled-system' | ||
@@ -62,6 +59,2 @@ | ||
const LinkToTheme = ({ children, themeKey = '', ...rest }) => { | ||
return <div {...rest}>{children}</div> | ||
} | ||
function PropsTablePresentation(props = {}) { | ||
@@ -68,0 +61,0 @@ const { |
@@ -41,3 +41,3 @@ import React from 'react' | ||
a { | ||
color: ${({ $linkColor }) => themeGet(`colors.${$linkColor}`, 'red')}; | ||
color: ${({ $linkColor }) => $linkColor}; | ||
} | ||
@@ -44,0 +44,0 @@ ` |
@@ -31,3 +31,3 @@ import React from 'react' | ||
text-decoration: underline; | ||
color: ${({ $linkColor }) => themeGet(`colors.${$linkColor}`, 'inherit')}; | ||
color: ${({ $linkColor }) => $linkColor}; | ||
` | ||
@@ -34,0 +34,0 @@ |
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
1340000
933