@politico/interactive-style-elections
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -111,4 +111,2 @@ import './index.css'; | ||
// format is firstname-lastname all lowercase, no punctuation | ||
name: 'Elizabeth Warren', | ||
// for alt text | ||
type: 'solid', | ||
@@ -115,0 +113,0 @@ // ['solid', 'outline', 'none'] |
@@ -169,13 +169,13 @@ import './index.css'; | ||
var NavHeader = | ||
var Navigation = | ||
/*#__PURE__*/ | ||
function (_React$PureComponent) { | ||
_inherits(NavHeader, _React$PureComponent); | ||
_inherits(Navigation, _React$PureComponent); | ||
function NavHeader(props) { | ||
function Navigation(props) { | ||
var _this; | ||
_classCallCheck(this, NavHeader); | ||
_classCallCheck(this, Navigation); | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(NavHeader).call(this, props)); | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(Navigation).call(this, props)); | ||
@@ -274,3 +274,3 @@ _defineProperty(_assertThisInitialized(_this), "onReachBegin", function () { | ||
_createClass(NavHeader, [{ | ||
_createClass(Navigation, [{ | ||
key: "componentWillUnmount", | ||
@@ -333,6 +333,6 @@ value: function componentWillUnmount() { | ||
return NavHeader; | ||
return Navigation; | ||
}(React.PureComponent); | ||
NavHeader.defaultProps = { | ||
Navigation.defaultProps = { | ||
active: '', | ||
@@ -342,2 +342,2 @@ sticky: false | ||
export default NavHeader; | ||
export default Navigation; |
{ | ||
"name": "@politico/interactive-style-elections", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -12,12 +12,6 @@ import React from 'react'; | ||
width: '120px', | ||
height: '132px', | ||
margin: '2px', | ||
}; | ||
const bigStyle = { | ||
background: '#ddd', | ||
display: 'inline-block', | ||
width: '250px', | ||
margin: '20px 2px 2px 2px', | ||
}; | ||
class App extends React.Component { | ||
@@ -136,3 +130,2 @@ render() { | ||
<Headshot candidate='cycle:2020__office:president__person:andrew-yang' | ||
name='Andrew Yang' | ||
blackWhite='false' | ||
@@ -139,0 +132,0 @@ type='solid' |
@@ -25,3 +25,2 @@ import React from 'react'; | ||
candidate: 'cycle:2020__office:president__person:elizabeth-warren', // format is firstname-lastname all lowercase, no punctuation | ||
name: 'Elizabeth Warren', // for alt text | ||
type: 'solid', // ['solid', 'outline', 'none'] | ||
@@ -28,0 +27,0 @@ blackWhite: 'false', // ['true', 'false'] |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
import NavHeader from './index'; | ||
import Navigation from './index'; | ||
@@ -12,8 +12,8 @@ class App extends React.Component { | ||
return ( | ||
<Page title='NavHeader'> | ||
<NavHeader active='dolor' /> | ||
<Page title='Navigation'> | ||
<Navigation active='dolor' /> | ||
<CodeBlock | ||
value={`import { NavHeader } from '@politico/interactive-style-elections'; | ||
value={`import { Navigation } from '@politico/interactive-style-elections'; | ||
<NavHeader | ||
<Navigation | ||
active="Money" | ||
@@ -20,0 +20,0 @@ /> |
@@ -53,3 +53,3 @@ import React, { createRef } from 'react'; | ||
class NavHeader extends React.PureComponent { | ||
class Navigation extends React.PureComponent { | ||
constructor(props) { | ||
@@ -179,3 +179,3 @@ super(props); | ||
NavHeader.defaultProps = { | ||
Navigation.defaultProps = { | ||
active: '', | ||
@@ -185,2 +185,2 @@ sticky: false, | ||
export default NavHeader; | ||
export default Navigation; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
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 too big to display
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
8918028
58
8583