aneop-customers
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -6,2 +6,15 @@ # Change Log | ||
# [1.4.0](https://github.com/mancas/aneop-libs/compare/v1.3.0...v1.4.0) (2020-01-27) | ||
### Features | ||
* card animation to fullscreen ([9ddc53f](https://github.com/mancas/aneop-libs/commit/9ddc53f68f717cd79ba406e959999ec3bd70fe69)) | ||
* **aneop-components:** add icons and menu item component ([526da97](https://github.com/mancas/aneop-libs/commit/526da97d30ff6a4407ef6d4bf4568065901dd9c1)) | ||
* **aneop-components:** add scripts to generate icons ([0496564](https://github.com/mancas/aneop-libs/commit/0496564caf4af0ca6948d5e9855c51fc9008ae24)) | ||
# [1.3.0](https://github.com/mancas/aneop-libs/compare/v1.2.0...v1.3.0) (2020-01-22) | ||
@@ -8,0 +21,0 @@ |
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
import React from 'react'; | ||
import React, { useCallback } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import styles from './Shortcut.module.css'; | ||
import { Card } from 'aneop-components'; | ||
import { IconCustomers, Text } from 'aneop-components'; | ||
import { useHistory } from 'react-router-dom'; | ||
import routes from '../../config/routes'; | ||
@@ -11,10 +14,23 @@ var Shortcut = function Shortcut(_ref) { | ||
var history = useHistory(); | ||
var handleClick = useCallback(function () { | ||
history.push(routes.home); | ||
}, [history]); | ||
return React.createElement( | ||
Card, | ||
{ extraClass: styles.card, variant: 'negative' }, | ||
React.createElement( | ||
'p', | ||
null, | ||
'Hello world' | ||
) | ||
{ | ||
extraClass: styles.card, | ||
variant: 'negative', | ||
onClick: handleClick, | ||
withClickAnimation: true | ||
}, | ||
React.createElement(IconCustomers, { variant: 'white', size: 'extra-huge' }), | ||
React.createElement(Text, { | ||
value: 'Clientes', | ||
variant: 'white', | ||
extraClass: styles.text, | ||
size: 'ml' | ||
}) | ||
); | ||
@@ -21,0 +37,0 @@ }; |
import Shortcut from './components/shortcut/Shortcut'; | ||
import EntryPoint from './components/entryPoint/EntryPoint'; | ||
import MenuShortcut from './components/menuShortcut/MenuShortcut'; | ||
var Customers = { | ||
Shortcut: Shortcut | ||
Shortcut: Shortcut, | ||
EntryPoint: EntryPoint, | ||
MenuShortcut: MenuShortcut | ||
}; | ||
export default Customers; |
@@ -19,2 +19,8 @@ 'use strict'; | ||
var _reactRouterDom = require('react-router-dom'); | ||
var _routes = require('../../config/routes'); | ||
var _routes2 = _interopRequireDefault(_routes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -27,10 +33,23 @@ | ||
var history = (0, _reactRouterDom.useHistory)(); | ||
var handleClick = (0, _react.useCallback)(function () { | ||
history.push(_routes2.default.home); | ||
}, [history]); | ||
return _react2.default.createElement( | ||
_aneopComponents.Card, | ||
{ extraClass: _ShortcutModule2.default.card, variant: 'negative' }, | ||
_react2.default.createElement( | ||
'p', | ||
null, | ||
'Hello world' | ||
) | ||
{ | ||
extraClass: _ShortcutModule2.default.card, | ||
variant: 'negative', | ||
onClick: handleClick, | ||
withClickAnimation: true | ||
}, | ||
_react2.default.createElement(_aneopComponents.IconCustomers, { variant: 'white', size: 'extra-huge' }), | ||
_react2.default.createElement(_aneopComponents.Text, { | ||
value: 'Clientes', | ||
variant: 'white', | ||
extraClass: _ShortcutModule2.default.text, | ||
size: 'ml' | ||
}) | ||
); | ||
@@ -37,0 +56,0 @@ }; |
@@ -9,6 +9,16 @@ 'use strict'; | ||
var _EntryPoint = require('./components/entryPoint/EntryPoint'); | ||
var _EntryPoint2 = _interopRequireDefault(_EntryPoint); | ||
var _MenuShortcut = require('./components/menuShortcut/MenuShortcut'); | ||
var _MenuShortcut2 = _interopRequireDefault(_MenuShortcut); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var Customers = { | ||
Shortcut: _Shortcut2.default | ||
Shortcut: _Shortcut2.default, | ||
EntryPoint: _EntryPoint2.default, | ||
MenuShortcut: _MenuShortcut2.default | ||
}; | ||
@@ -15,0 +25,0 @@ |
{ | ||
"name": "aneop-customers", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "aneop-customers React component", | ||
@@ -29,3 +29,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"aneop-components": "^1.3.0" | ||
"aneop-components": "^1.4.0", | ||
"react-router-dom": "^5.1.2" | ||
}, | ||
@@ -49,3 +50,3 @@ "peerDependencies": { | ||
], | ||
"gitHead": "ddabd63aff8c33680673ecf06f585c2b08fa66bf" | ||
"gitHead": "2c4c83c6cc64535f5be51143dbbb06f1bdf58f93" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
16579
25
305
3
11
1
+ Addedreact-router-dom@^5.1.2
Updatedaneop-components@^1.4.0