@hig/top-nav
Advanced tools
Comparing version 0.5.1 to 1.0.0
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Flyout, { Panel, anchorPoints, AVAILABLE_ANCHOR_POINTS, offsetContainerVertical, offsetPanelHorizontal } from '@hig/flyout'; | ||
import IconButton, { names, types } from '@hig/icon-button'; | ||
import IconButton, { types } from '@hig/icon-button'; | ||
import { Help24 } from '@hig/icons'; | ||
import { combineEventHandlers } from '@hig/utils'; | ||
@@ -80,3 +81,3 @@ import NotificationsFlyout, { anchorPoints as anchorPoints$1 } from '@hig/notifications-flyout'; | ||
return React.createElement(IconButton, { | ||
name: names.HELP, | ||
icon: React.createElement(Help24, null), | ||
onClick: onClick, | ||
@@ -83,0 +84,0 @@ title: title, |
@@ -14,2 +14,3 @@ 'use strict'; | ||
var IconButton__default = _interopDefault(IconButton); | ||
var icons = require('@hig/icons'); | ||
var utils = require('@hig/utils'); | ||
@@ -91,3 +92,3 @@ var NotificationsFlyout = require('@hig/notifications-flyout'); | ||
return React__default.createElement(IconButton__default, { | ||
name: IconButton.names.HELP, | ||
icon: React__default.createElement(icons.Help24, null), | ||
onClick: onClick, | ||
@@ -94,0 +95,0 @@ title: title, |
@@ -0,1 +1,34 @@ | ||
# [@hig/top-nav-v1.0.0](https://github.com/Autodesk/hig/compare/@hig/top-nav@0.5.1...@hig/top-nav@1.0.0) (2018-12-04) | ||
### BREAKING | ||
* **icon/icon-button:** Removes [@hig](https://github.com/hig)/icon and refactor [@hig](https://github.com/hig)/icon-button to use [@hig](https://github.com/hig)/icons ([49d78f4](https://github.com/Autodesk/hig/commit/49d78f4)) | ||
### Bug Fixes | ||
* **storybook:** Add back Icon stories ([f38f2d4](https://github.com/Autodesk/hig/commit/f38f2d4)) | ||
### BREAKING CHANGES | ||
* **icon/icon-button:** Removes @hig/icon | ||
* **icon/icon-button:** Use icon prop instead of name or svg in @hig/icon-button to render Icon/svg | ||
* **icon/icon-button:** No longer export `names` from @hig/icon-button | ||
Usage: | ||
``` | ||
import { Assets24 } from "@hig/icons" | ||
function MyComponent() { | ||
return ( | ||
<IconButton | ||
icon={<Assets24 />} | ||
onClick={() => console.log('Clicked it.')} | ||
/> | ||
); | ||
} | ||
``` | ||
# [@hig/top-nav-v0.5.1](https://github.com/Autodesk/hig/compare/@hig/top-nav@0.5.0...@hig/top-nav@0.5.1) (2018-10-08) | ||
@@ -2,0 +35,0 @@ |
{ | ||
"name": "@hig/top-nav", | ||
"version": "0.5.1", | ||
"version": "1.0.0", | ||
"description": "HIG Top Navigation", | ||
@@ -23,2 +23,3 @@ "author": "Autodesk Inc.", | ||
"@hig/icon-button": "^0.2.1", | ||
"@hig/icons": "^0.2.1", | ||
"@hig/notifications-flyout": "^0.2.3", | ||
@@ -31,3 +32,3 @@ "@hig/profile-flyout": "^0.1.1", | ||
"devDependencies": { | ||
"@hig/babel-preset": "^0.1.0", | ||
"@hig/babel-preset": "^0.1.1", | ||
"@hig/eslint-config": "^0.1.0", | ||
@@ -34,0 +35,0 @@ "@hig/jest-preset": "^0.1.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
177455
4033
1
9
+ Added@hig/icons@^0.2.1