@cdssnc/gcui
Advanced tools
Comparing version 0.0.1 to 0.0.3
@@ -7,4 +7,3 @@ 'use strict'; | ||
var _templateObject = _taggedTemplateLiteral(['\n\tfill:#F00;\n'], ['\n\tfill:#F00;\n']), | ||
_templateObject2 = _taggedTemplateLiteral(['\n\tfill:#000;\n'], ['\n\tfill:#000;\n']); | ||
var _templateObject = _taggedTemplateLiteral(['\n fill: ', ';\n'], ['\n fill: ', ';\n']); | ||
@@ -27,9 +26,17 @@ var _react = require('react'); | ||
var FipFlag = _styledComponents2.default.path(_templateObject); | ||
var FipFlag = _styledComponents2.default.path(_templateObject, function (props) { | ||
return props.flag; | ||
}); | ||
var FipText = _styledComponents2.default.path(_templateObject2); | ||
var FipText = _styledComponents2.default.path(_templateObject, function (props) { | ||
return props.text; | ||
}); | ||
var Wordmark = function Wordmark(_ref) { | ||
var _ref$width = _ref.width, | ||
width = _ref$width === undefined ? '10em' : _ref$width; | ||
width = _ref$width === undefined ? '10em' : _ref$width, | ||
_ref$flag = _ref.flag, | ||
flag = _ref$flag === undefined ? '#F00' : _ref$flag, | ||
_ref$text = _ref.text, | ||
text = _ref$text === undefined ? '#000' : _ref$text; | ||
return _react2.default.createElement( | ||
@@ -48,4 +55,12 @@ 'svg', | ||
{ id: 'wmms', transform: 'translate(-1, -1)' }, | ||
_react2.default.createElement(FipFlag, { d: 'M137.9,1.2h5.2v10.4h-5.2V1.2z M128.9,6.4l-0.3,0.1c0,0,1.8,1.5,1.8,1.6c0.1,0.1,0.2,0.1,0.1,0.4 c-0.1,0.3-0.2,0.6-0.2,0.6s1.6-0.3,1.8-0.4c0.2,0,0.3,0,0.3,0.2c0,0.2-0.1,1.9-0.1,1.9h0.5c0,0-0.1-1.8-0.1-1.9 c0-0.2,0.1-0.2,0.3-0.2c0.2,0,1.8,0.4,1.8,0.4s-0.1-0.4-0.2-0.6c-0.1-0.3,0-0.3,0.1-0.4c0.1-0.1,1.8-1.6,1.8-1.6l-0.3-0.1 c-0.2-0.1-0.1-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.5-1.6,1.9c-1.2,0.6-4.7,1.1-5.1,1.2c-1.4,0.3-5.3,1.3-5.2,5.4c0.1,4,4.1,5.4,6.9,5.3 c2.7-0.1,4.3-1.2,5-1.8c0.4-0.3,0.4-0.3,0.7,0.1c0.4,0.4,1.7,1.7,4.8,1.7c3.2,0,3.6-1.5,3.8-2C53,32.2,52.3,31.9,52.1,32.4z M39.6,33.5c-2.8,0-3.5-2.3-3.5-3.5s0.6-3.4,3.4-5c0,0,1.3-0.8,3.8-1.8c0.1,0,0.2,0,0.2,0s0.1,0.1,0.1,0.2l0,0l0,0l0,0 c0,0,0,0.1,0,0.2l0,0l0,0v0.1l0,0l0,0l0,0v4.2C43.6,31.1,42,33.5,39.6,33.5z M30,24.8c-1,3.2-2.9,8.4-9.8,8.6 C13,33.5,8.7,28.6,8.5,19.5C8.2,9.8,12.4,2.4,18.9,2.2c7.3-0.1,9.9,8.6,10,9.9c0.1,1,1.4,0.9,1.4-0.1c0-0.5-0.6-9.1-0.8-10.1 c-0.2-1-1-0.6-1.2-0.2C28.2,2,28.4,1.4,28,2.3c-0.4,0.9-1.5,0.4-1.9,0.3c-1.2-0.5-3.5-1.7-7.2-1.6c-8.5,0.2-17.2,6.5-17,17.5 c0.2,10.7,8.8,16.7,16.8,16.6c7.3-0.1,11.4-4.7,12.6-10C31.7,23.8,30.4,23.5,30,24.8z' | ||
}) | ||
) | ||
@@ -56,5 +71,7 @@ ); | ||
Wordmark.propTypes = { | ||
width: _propTypes2.default.string | ||
width: _propTypes2.default.string, | ||
flag: _propTypes2.default.string, | ||
text: _propTypes2.default.string | ||
}; | ||
exports.default = Wordmark; |
{ | ||
"name": "@cdssnc/gcui", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
@@ -11,3 +11,2 @@ "jsnext:main": "src/index.js", | ||
"build": "babel --ignore node_modules,__tests__,stories --copy-files --out-dir dist/ src/", | ||
"prepublish": "yarn test && yarn run build", | ||
"publish": "npm publish" | ||
@@ -37,4 +36,5 @@ }, | ||
"enzyme": "^2.9.1", | ||
"enzyme-to-json": "^1.5.1", | ||
"jest": "^20.0.4", | ||
"jest-styled-components": "^3.3.1", | ||
"jest-styled-components": "^3.3.2", | ||
"react-test-renderer": "^15.6.1" | ||
@@ -41,0 +41,0 @@ }, |
@@ -5,2 +5,15 @@ # GCUI | ||
## Installation | ||
```sh | ||
yarn install @cdssnc/gcui | ||
``` | ||
## Usage | ||
```javascript | ||
import WordMark from '@cdssnc/gcui/WordMark' | ||
// Do something with <WordMark /> | ||
``` | ||
## Seeing the components | ||
@@ -7,0 +20,0 @@ |
@@ -30,3 +30,3 @@ import React from 'react' | ||
<WordMark /> | ||
<h3>props</h3> | ||
<h4>props</h4> | ||
<p> | ||
@@ -36,3 +36,13 @@ Passing a width property looks like this: <WordMark width="20em" /> | ||
<WordMark width="20em" /> | ||
<p> | ||
The colour of the flag can be controlled wiht a flag prop: <WordMark flag="#00F" /> | ||
</p> | ||
<WordMark flag="#00F" /> | ||
<p> | ||
The colour of the text can be controlled wiht a text prop: <WordMark text="#00F" /> | ||
</p> | ||
<WordMark text="#00F" /> | ||
</div> | ||
) |
import React from 'react' | ||
import { shallow } from 'enzyme' | ||
import { mount, shallow } from 'enzyme' | ||
import 'jest-styled-components' | ||
import toJSON from 'enzyme-to-json' | ||
import WordMark from '../../WordMark' | ||
@@ -15,2 +17,19 @@ | ||
}) | ||
it('defaults to width of 10em', () => { | ||
let wrapper = shallow(<WordMark />) | ||
expect(wrapper.props().width).toEqual('10em') | ||
}) | ||
it('allows the flag colour to be set', () => { | ||
let wrapper = mount(<WordMark flag="#fff" />) | ||
let flag = wrapper.find('.fipflag') | ||
expect(flag).toHaveStyleRule('fill', '#fff') | ||
}) | ||
it('allows the text colour to be set', () => { | ||
let wrapper = mount(<WordMark text="#fff" />) | ||
let text = wrapper.find('.fiptext') | ||
expect(text).toHaveStyleRule('fill', '#fff') | ||
}) | ||
}) |
@@ -6,10 +6,10 @@ import React from 'react' | ||
const FipFlag = styled.path` | ||
fill:#F00; | ||
fill: ${props => props.flag}; | ||
` | ||
const FipText = styled.path` | ||
fill:#000; | ||
fill: ${props => props.text}; | ||
` | ||
const Wordmark = ({ width = '10em' }) => | ||
const Wordmark = ({ width = '10em', flag = '#F00', text = '#000' }) => | ||
<svg | ||
@@ -24,4 +24,12 @@ xmlns="http://www.w3.org/2000/svg" | ||
<g id="wmms" transform="translate(-1, -1)"> | ||
<FipFlag d="M137.9,1.2h5.2v10.4h-5.2V1.2z M128.9,6.4l-0.3,0.1c0,0,1.8,1.5,1.8,1.6c0.1,0.1,0.2,0.1,0.1,0.4 c-0.1,0.3-0.2,0.6-0.2,0.6s1.6-0.3,1.8-0.4c0.2,0,0.3,0,0.3,0.2c0,0.2-0.1,1.9-0.1,1.9h0.5c0,0-0.1-1.8-0.1-1.9 c0-0.2,0.1-0.2,0.3-0.2c0.2,0,1.8,0.4,1.8,0.4s-0.1-0.4-0.2-0.6c-0.1-0.3,0-0.3,0.1-0.4c0.1-0.1,1.8-1.6,1.8-1.6l-0.3-0.1 c-0.2-0.1-0.1-0.2-0.1-0.3s0.3-1.1,0.3-1.1s-0.8,0.2-0.9,0.2c-0.1,0-0.2,0-0.2-0.1s-0.2-0.5-0.2-0.5s-0.9,1-1,1.1 c-0.2,0.2-0.4,0-0.3-0.2c0-0.2,0.5-2.3,0.5-2.3s-0.5,0.3-0.7,0.4s-0.3,0.1-0.3-0.1c-0.1-0.2-0.7-1.3-0.7-1.4c0,0-0.6,1.2-0.7,1.4 s-0.2,0.2-0.3,0.1c-0.2-0.1-0.7-0.4-0.7-0.4s0.5,2.1,0.5,2.3s-0.1,0.3-0.3,0.2l-1-1.1c0,0-0.1,0.3-0.2,0.4c0,0.1-0.1,0.2-0.2,0.1 c-0.2,0-1-0.2-1-0.2s0.3,1,0.4,1.1C129.1,6.1,129.1,6.3,128.9,6.4z M122.2,1.2h5.2v10.4h-5.2V1.2z" /> | ||
<FipText d="M144.2,32.4c-0.4,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5-0.6-9.1-0.8-10.1 c-0.2-1-1-0.6-1.2-0.2C28.2,2,28.4,1.4,28,2.3c-0.4,0.9-1.5,0.4-1.9,0.3c-1.2-0.5-3.5-1.7-7.2-1.6c-8.5,0.2-17.2,6.5-17,17.5 c0.2,10.7,8.8,16.7,16.8,16.6c7.3-0.1,11.4-4.7,12.6-10C31.7,23.8,30.4,23.5,30,24.8z" | ||
/> | ||
</g> | ||
@@ -32,4 +40,6 @@ </svg> | ||
width: PropTypes.string, | ||
flag: PropTypes.string, | ||
text: PropTypes.string, | ||
} | ||
export default Wordmark |
16932
204
35
13