react-typing-animation
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -14,2 +14,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _styledComponents = require('styled-components'); | ||
@@ -25,10 +29,15 @@ | ||
var Cursor = _styledComponents2.default.span(_templateObject2, blink); | ||
var CursorSpan = _styledComponents2.default.span(_templateObject2, blink); | ||
exports.default = function () { | ||
var Cursor = function Cursor(_ref) { | ||
var className = _ref.className; | ||
return _react2.default.createElement( | ||
Cursor, | ||
null, | ||
CursorSpan, | ||
{ className: className }, | ||
'|' | ||
); | ||
}; | ||
}; | ||
Cursor.propTypes = { className: _propTypes2.default.string.isRequired }; | ||
exports.default = Cursor; |
@@ -33,6 +33,4 @@ 'use strict'; | ||
Delay.propTypes = { | ||
ms: _propTypes2.default.number.isRequired | ||
}; | ||
Delay.propTypes = { ms: _propTypes2.default.number.isRequired }; | ||
exports.default = Delay; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.Speed = exports.Reset = exports.Delay = exports.Backspace = undefined; | ||
exports.Speed = exports.Reset = exports.Delay = exports.Cursor = exports.Backspace = undefined; | ||
@@ -17,2 +17,6 @@ var _Typing = require('./Typing'); | ||
var _Cursor2 = require('./Cursor'); | ||
var _Cursor3 = _interopRequireDefault(_Cursor2); | ||
var _Delay2 = require('./Delay'); | ||
@@ -34,4 +38,5 @@ | ||
exports.Backspace = _Backspace3.default; | ||
exports.Cursor = _Cursor3.default; | ||
exports.Delay = _Delay3.default; | ||
exports.Reset = _Reset3.default; | ||
exports.Speed = _Speed3.default; |
@@ -33,6 +33,4 @@ 'use strict'; | ||
Speed.propTypes = { | ||
ms: _propTypes2.default.number.isRequired | ||
}; | ||
Speed.propTypes = { ms: _propTypes2.default.number.isRequired }; | ||
exports.default = Speed; |
@@ -260,3 +260,4 @@ 'use strict'; | ||
Typing.Speed = _Speed2.default; | ||
Typing.Cursor = _Cursor2.default; | ||
exports.default = Typing; |
{ | ||
"name": "react-typing-animation", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import styled, { keyframes } from 'styled-components'; | ||
@@ -13,3 +14,3 @@ | ||
const Cursor = styled.span` | ||
const CursorSpan = styled.span` | ||
font-weight: 100; | ||
@@ -22,2 +23,6 @@ color: black; | ||
export default () => <Cursor>|</Cursor>; | ||
const Cursor = ({ className }) => <CursorSpan className={className}>|</CursorSpan>; | ||
Cursor.propTypes = { className: PropTypes.string.isRequired }; | ||
export default Cursor; |
@@ -14,6 +14,4 @@ import React from 'react'; | ||
Delay.propTypes = { | ||
ms: PropTypes.number.isRequired, | ||
}; | ||
Delay.propTypes = { ms: PropTypes.number.isRequired }; | ||
export default Delay; |
@@ -5,4 +5,5 @@ import Typing from './Typing'; | ||
export Backspace from './Backspace'; | ||
export Cursor from './Cursor'; | ||
export Delay from './Delay'; | ||
export Reset from './Reset'; | ||
export Speed from './Speed'; |
@@ -14,6 +14,4 @@ import React from 'react'; | ||
Speed.propTypes = { | ||
ms: PropTypes.number.isRequired, | ||
}; | ||
Speed.propTypes = { ms: PropTypes.number.isRequired }; | ||
export default Speed; |
@@ -187,3 +187,4 @@ import React, { Component } from 'react'; | ||
Typing.Speed = Speed; | ||
Typing.Cursor = Cursor; | ||
export default Typing; |
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
40919
920