@blueprintjs/icons 5.0.0-beta.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
4
|
* (through the rendered Handlebars template).
|
|
5
5
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any> {
|
|
6
|
+
export interface SVGIconProps extends React.RefAttributes<any>, Omit<React.DOMAttributes<HTMLElement | SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
7
7
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** This component does not support custom children. */
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
4
|
* (through the rendered Handlebars template).
|
|
5
5
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any> {
|
|
6
|
+
export interface SVGIconProps extends React.RefAttributes<any>, Omit<React.DOMAttributes<HTMLElement | SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
7
7
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** This component does not support custom children. */
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
4
|
* (through the rendered Handlebars template).
|
|
5
5
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any> {
|
|
6
|
+
export interface SVGIconProps extends React.RefAttributes<any>, Omit<React.DOMAttributes<HTMLElement | SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
7
7
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
8
|
className?: string;
|
|
9
9
|
/** This component does not support custom children. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueprintjs/icons",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Components, fonts, icons, and css files for creating and displaying icons.",
|
|
5
5
|
"main": "lib/cjs/generated/index.js",
|
|
6
6
|
"module": "lib/esm/generated/index.js",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@blueprintjs/node-build-scripts": "^8.0.0
|
|
61
|
-
"@blueprintjs/test-commons": "^2.0.0
|
|
60
|
+
"@blueprintjs/node-build-scripts": "^8.0.0",
|
|
61
|
+
"@blueprintjs/test-commons": "^2.0.0",
|
|
62
62
|
"@types/handlebars": "^4.1.0",
|
|
63
63
|
"enzyme": "^3.11.0",
|
|
64
64
|
"fantasticon": "^1.2.3",
|
package/src/svgIconProps.ts
CHANGED
|
@@ -19,7 +19,9 @@ import * as React from "react";
|
|
|
19
19
|
* Interface used for generated icon components which already have their name and path defined
|
|
20
20
|
* (through the rendered Handlebars template).
|
|
21
21
|
*/
|
|
22
|
-
export interface SVGIconProps
|
|
22
|
+
export interface SVGIconProps
|
|
23
|
+
extends React.RefAttributes<any>,
|
|
24
|
+
Omit<React.DOMAttributes<HTMLElement | SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
23
25
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
24
26
|
className?: string;
|
|
25
27
|
|