@hig/icon-button
Advanced tools
Comparing version 0.1.0-alpha.a41077a2 to 0.1.0-alpha.a8872f53
{ | ||
"name": "@hig/icon-button", | ||
"version": "0.1.0-alpha.a41077a2", | ||
"version": "0.1.0-alpha.a8872f53", | ||
"description": "HIG IconButton component", | ||
@@ -11,7 +11,7 @@ "author": "Autodesk Inc.", | ||
"dependencies": { | ||
"@hig/icon": "0.1.0-alpha.a41077a2" | ||
"@hig/icon": "0.1.0-alpha.a8872f53" | ||
}, | ||
"devDependencies": { | ||
"@hig/scripts": "0.2.0-alpha.a41077a2", | ||
"@hig/styles": "0.1.0-alpha.a41077a2" | ||
"@hig/scripts": "0.2.0-alpha.a8872f53", | ||
"@hig/styles": "0.1.0-alpha.a8872f53" | ||
}, | ||
@@ -18,0 +18,0 @@ "peerDependencies": { |
@@ -5,4 +5,6 @@ import React from "react"; | ||
import { select, text, boolean } from "@storybook/addon-knobs/react"; | ||
import { withInfo } from "@storybook/addon-info"; | ||
import { RichText } from "hig-react"; | ||
import IconButton from "../IconButton"; | ||
import { RichText } from "hig-react"; | ||
import readme from "../../README.md"; | ||
@@ -103,21 +105,24 @@ | ||
storiesOf("IconButton", module).add("default", withInfo({ | ||
propTables: [Icon], | ||
text: <RichText dangerouslySetInnerHTML={{ __html: readme }} /> | ||
})() => ( | ||
<IconButton | ||
type={select("Type", { | ||
primary: "primary", | ||
flat: "flat", | ||
transparent: "transparent" | ||
})} | ||
title={text("Title", "Icon button")} | ||
link={text("Link", "http://www.autodesk.com")} | ||
disabled={boolean("Disabled", false)} | ||
icon={select("Icon name", icons, "settings")} | ||
onClick={action("onClick")} | ||
onBlur={action("onBlur")} | ||
onFocus={action("onFocus")} | ||
onHover={action("onHover")} | ||
/> | ||
)); | ||
storiesOf("IconButton", module).add( | ||
"default", | ||
withInfo({ | ||
propTables: [IconButton], | ||
text: <RichText dangerouslySetInnerHTML={{ __html: readme }} /> | ||
})(() => ( | ||
<IconButton | ||
type={select("Type", { | ||
primary: "primary", | ||
flat: "flat", | ||
transparent: "transparent" | ||
})} | ||
title={text("Title", "Icon button")} | ||
link={text("Link", "http://www.autodesk.com")} | ||
disabled={boolean("Disabled", false)} | ||
icon={select("Icon name", icons, "settings")} | ||
onClick={action("onClick")} | ||
onBlur={action("onBlur")} | ||
onFocus={action("onFocus")} | ||
onHover={action("onHover")} | ||
/> | ||
)) | ||
); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44064
1150
0
+ Added@hig/icon@0.1.0-alpha.a8872f53(transitive)
- Removed@hig/icon@0.1.0-alpha.a41077a2(transitive)