nav-frontend-skjema
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -10,6 +10,10 @@ Object.defineProperty(exports, "__esModule", { | ||
var _react = require("react"); | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -33,7 +37,7 @@ | ||
_createClass(SkjemaelementFeilmelding, [{ | ||
key: "renderFeil", | ||
key: 'renderFeil', | ||
value: function renderFeil() { | ||
return _react2.default.createElement( | ||
"div", | ||
{ className: "skjemaelement__feilmelding" }, | ||
'div', | ||
{ className: 'skjemaelement__feilmelding' }, | ||
this.props.feil.feilmelding | ||
@@ -43,3 +47,3 @@ ); | ||
}, { | ||
key: "render", | ||
key: 'render', | ||
value: function render() { | ||
@@ -49,4 +53,4 @@ var feil = this.props.feil; | ||
return _react2.default.createElement( | ||
"div", | ||
{ role: "alert", "aria-live": "assertive" }, | ||
'div', | ||
{ role: 'alert', 'aria-live': 'assertive' }, | ||
feil && this.renderFeil() | ||
@@ -60,4 +64,4 @@ ); | ||
var skjemaelementFeilmeldingShape = exports.skjemaelementFeilmeldingShape = _react.PropTypes.shape({ | ||
feilmelding: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.node // For å slippe igjennom FormattedMessage fra react-intl | ||
var skjemaelementFeilmeldingShape = exports.skjemaelementFeilmeldingShape = _propTypes2.default.shape({ | ||
feilmelding: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node // For å slippe igjennom FormattedMessage fra react-intl | ||
]).isRequired | ||
@@ -64,0 +68,0 @@ }); |
{ | ||
"name": "nav-frontend-skjema", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "jsnext:main": "src/index.js", |
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes as PT } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PT from 'prop-types'; | ||
@@ -3,0 +4,0 @@ class SkjemaelementFeilmelding extends Component { |
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
69557
1524