@hixme-ui/text
Advanced tools
Comparing version 1.20.0 to 2.0.0-alpha.0
@@ -11,3 +11,3 @@ 'use strict'; | ||
var _templateObject = (0, _taggedTemplateLiteral3.default)(['\n color: ', ';\n font-family: ', ';\n font-size: ', ';\n font-weight: ', ';\n border-bottom: ', ';\n ', '\n ', ';\n justify-content: ', ';\n line-height: ', ';\n text-align: ', ';\n text-indent: ', ';\n text-transform: ', ';\n text-overflow: ', ';\n user-select: ', ';\n white-space: ', ';\n width: ', ';\n word-break: ', ';\n'], ['\n color: ', ';\n font-family: ', ';\n font-size: ', ';\n font-weight: ', ';\n border-bottom: ', ';\n ', '\n ', ';\n justify-content: ', ';\n line-height: ', ';\n text-align: ', ';\n text-indent: ', ';\n text-transform: ', ';\n text-overflow: ', ';\n user-select: ', ';\n white-space: ', ';\n width: ', ';\n word-break: ', ';\n']); | ||
var _templateObject = (0, _taggedTemplateLiteral3.default)(['\n color: ', ';\n font-size: ', ';\n font-weight: ', ';\n border-bottom: ', ';\n ', '\n ', ';\n justify-content: ', ';\n line-height: ', ';\n text-align: ', ';\n text-indent: ', ';\n text-transform: ', ';\n text-overflow: ', ';\n user-select: ', ';\n white-space: ', ';\n width: ', ';\n word-break: ', ';\n'], ['\n color: ', ';\n font-size: ', ';\n font-weight: ', ';\n border-bottom: ', ';\n ', '\n ', ';\n justify-content: ', ';\n line-height: ', ';\n text-align: ', ';\n text-indent: ', ';\n text-transform: ', ';\n text-overflow: ', ';\n user-select: ', ';\n white-space: ', ';\n width: ', ';\n word-break: ', ';\n']); | ||
@@ -25,4 +25,2 @@ var _styledComponents = require('styled-components'); | ||
}, function (props) { | ||
return props.fontFamily || (0, _themeProps.getFontFamily)(props); | ||
}, function (props) { | ||
return props.fontSize || (0, _themeProps.getFontSize)(props, 'inherit'); | ||
@@ -29,0 +27,0 @@ }, function (props) { |
{ | ||
"name": "@hixme-ui/text", | ||
"version": "1.20.0", | ||
"version": "2.0.0-alpha.0", | ||
"description": "hixme-ui text component. For all your communictation needs.", | ||
@@ -81,4 +81,4 @@ "publishConfig": { | ||
"dependencies": { | ||
"@hixme-ui/theme": "^1.20.0", | ||
"@hixme-ui/theme-props": "^1.19.2", | ||
"@hixme-ui/theme": "^2.0.0-alpha.0", | ||
"@hixme-ui/theme-props": "^2.0.0-alpha.0", | ||
"styled-components": "^2.3.3" | ||
@@ -85,0 +85,0 @@ }, |
import styled from 'styled-components' | ||
import { | ||
getFontFamily, | ||
getFontSize, | ||
@@ -11,3 +10,2 @@ getFontWeight, | ||
color: ${props => props.color || getTextColor(props, 'inherit')}; | ||
font-family: ${props => props.fontFamily || getFontFamily(props)}; | ||
font-size: ${props => props.fontSize || getFontSize(props, 'inherit')}; | ||
@@ -14,0 +12,0 @@ font-weight: ${props => props.fontWeight || getFontWeight(props)}; |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25507
268
2
+ Added@hixme-ui/theme@2.2.0(transitive)
+ Added@hixme-ui/theme-props@2.2.0(transitive)
- Removed@hixme-ui/theme@1.20.7(transitive)
- Removed@hixme-ui/theme-props@1.20.7(transitive)