buoy-text
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -24,3 +24,3 @@ "use strict"; | ||
})(_templateObject, _buoyTheme.fontFamily, _buoyTheme.colors.error, _buoyTheme.fontWeight.light, (0, _buoyTheme.fontSize)("bodySmall"), function (props) { | ||
return props.position ? props.position : 'absolute'; | ||
return props.position ? props.position : "absolute"; | ||
}, function (props) { | ||
@@ -27,0 +27,0 @@ return props.margin ? props.margin : "4px 0 8px"; |
{ | ||
"name": "buoy-text", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Basic Buoy text styles", | ||
@@ -12,3 +12,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"buoy-theme": "^6.1.0" | ||
"buoy-theme": "6.1.1" | ||
}, | ||
@@ -20,3 +20,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "39161e4c1983d5cdf41e3c7a05525807e6f14c1c" | ||
"gitHead": "fc44b2e626b12848f4c7dca32bd14fc0c6b1065c" | ||
} |
@@ -11,5 +11,5 @@ import styled from "styled-components" | ||
bottom: 0; | ||
position: ${props => props.position ? props.position : 'absolute'}; | ||
margin: ${props => props.margin ? props.margin : "4px 0 8px"}; | ||
padding: ${props => props.padding ? props.padding : "0"}; | ||
position: ${props => (props.position ? props.position : "absolute")}; | ||
margin: ${props => (props.margin ? props.margin : "4px 0 8px")}; | ||
padding: ${props => (props.padding ? props.padding : "0")}; | ||
-webkit-font-smoothing: antialiased; | ||
@@ -19,2 +19,2 @@ -moz-osx-font-smoothing: grayscale; | ||
export { ErrorMessage as default } | ||
export { ErrorMessage as default } |
@@ -15,5 +15,5 @@ import styled from "styled-components" | ||
color: "neutralDarkest", | ||
margin: "0 0 24px 0" | ||
margin: "0 0 24px 0", | ||
} | ||
export { HeadingTwo as default } |
@@ -15,3 +15,4 @@ import styled from "styled-components" | ||
color: ${props => props.theme.colors[props.color]}; | ||
${props => props.title && | ||
${props => | ||
props.title && | ||
`margin: 10px 0 20px 0; | ||
@@ -18,0 +19,0 @@ display: inline-block;`} |
@@ -6,3 +6,3 @@ import styled, { css } from "styled-components" | ||
const LinkStyles = css` | ||
${ ParagraphStyle } | ||
${ParagraphStyle} | ||
text-decoration: ${props => (props.underline ? "underline" : "none")}; | ||
@@ -16,3 +16,3 @@ cursor: pointer; | ||
underline: true, | ||
fontSize: "bodyMain" | ||
fontSize: "bodyMain", | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -1,5 +0,4 @@ | ||
import styled, {css} from "styled-components" | ||
import styled, { css } from "styled-components" | ||
import { fontFamily, fontSize, responsive, breakpoints } from "buoy-theme" | ||
export const ParagraphStyle = css` | ||
@@ -6,0 +5,0 @@ font-family: ${fontFamily}; |
import React from "react" | ||
import { storiesOf, addDecorator } from "@storybook/react" | ||
import { storiesOf } from "@storybook/react" | ||
import { text, boolean, select } from "@storybook/addon-knobs" | ||
import { | ||
@@ -12,4 +13,2 @@ HeadingOne, | ||
} from "./src" | ||
import styled from "styled-components" | ||
import { text, boolean, select } from "@storybook/addon-knobs" | ||
import { | ||
@@ -91,2 +90,1 @@ neutralAndPrimaryColors, | ||
)) | ||
484
21158
Updatedbuoy-theme@6.1.1