@blueprintjs/icons 5.1.0 → 5.1.2
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.
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/svgIconProps.d.ts +6 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/svgIconProps.d.ts +6 -1
- package/lib/esnext/index.d.ts +1 -1
- package/lib/esnext/svgIconProps.d.ts +6 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/svgIconProps.ts +9 -3
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { IconSvgPaths16, IconSvgPaths20, getIconPaths } from "./allPaths";
|
|
2
2
|
export { Icons, IconLoaderOptions, IconPathsLoader } from "./iconLoader";
|
|
3
|
-
export { SVGIconProps } from "./svgIconProps";
|
|
3
|
+
export { SVGIconAttributes, SVGIconProps } from "./svgIconProps";
|
|
4
4
|
export { SVGIconContainer, SVGIconContainerProps } from "./svgIconContainer";
|
|
5
5
|
export { getIconContentString, IconCodepoints } from "./iconCodepoints";
|
|
6
6
|
export { IconName, IconNames } from "./iconNames";
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* DOM attributes assignable as props to the root element rendered by an SVG icon component
|
|
4
|
+
* (which may be a `<span>`, `<svg>` or some custom HTML element).
|
|
5
|
+
*/
|
|
6
|
+
export type SVGIconAttributes = React.AriaAttributes & Omit<React.DOMAttributes<Element>, "children" | "dangerouslySetInnerHTML"> & Pick<React.HTMLAttributes<Element>, "id" | "style" | "tabIndex" | "role">;
|
|
2
7
|
/**
|
|
3
8
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
9
|
* (through the rendered Handlebars template).
|
|
5
10
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any>,
|
|
11
|
+
export interface SVGIconProps extends React.RefAttributes<any>, SVGIconAttributes {
|
|
7
12
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** This component does not support custom children. */
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { IconSvgPaths16, IconSvgPaths20, getIconPaths } from "./allPaths";
|
|
2
2
|
export { Icons, IconLoaderOptions, IconPathsLoader } from "./iconLoader";
|
|
3
|
-
export { SVGIconProps } from "./svgIconProps";
|
|
3
|
+
export { SVGIconAttributes, SVGIconProps } from "./svgIconProps";
|
|
4
4
|
export { SVGIconContainer, SVGIconContainerProps } from "./svgIconContainer";
|
|
5
5
|
export { getIconContentString, IconCodepoints } from "./iconCodepoints";
|
|
6
6
|
export { IconName, IconNames } from "./iconNames";
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* DOM attributes assignable as props to the root element rendered by an SVG icon component
|
|
4
|
+
* (which may be a `<span>`, `<svg>` or some custom HTML element).
|
|
5
|
+
*/
|
|
6
|
+
export type SVGIconAttributes = React.AriaAttributes & Omit<React.DOMAttributes<Element>, "children" | "dangerouslySetInnerHTML"> & Pick<React.HTMLAttributes<Element>, "id" | "style" | "tabIndex" | "role">;
|
|
2
7
|
/**
|
|
3
8
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
9
|
* (through the rendered Handlebars template).
|
|
5
10
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any>,
|
|
11
|
+
export interface SVGIconProps extends React.RefAttributes<any>, SVGIconAttributes {
|
|
7
12
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** This component does not support custom children. */
|
package/lib/esnext/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { IconSvgPaths16, IconSvgPaths20, getIconPaths } from "./allPaths";
|
|
2
2
|
export { Icons, IconLoaderOptions, IconPathsLoader } from "./iconLoader";
|
|
3
|
-
export { SVGIconProps } from "./svgIconProps";
|
|
3
|
+
export { SVGIconAttributes, SVGIconProps } from "./svgIconProps";
|
|
4
4
|
export { SVGIconContainer, SVGIconContainerProps } from "./svgIconContainer";
|
|
5
5
|
export { getIconContentString, IconCodepoints } from "./iconCodepoints";
|
|
6
6
|
export { IconName, IconNames } from "./iconNames";
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* DOM attributes assignable as props to the root element rendered by an SVG icon component
|
|
4
|
+
* (which may be a `<span>`, `<svg>` or some custom HTML element).
|
|
5
|
+
*/
|
|
6
|
+
export type SVGIconAttributes = React.AriaAttributes & Omit<React.DOMAttributes<Element>, "children" | "dangerouslySetInnerHTML"> & Pick<React.HTMLAttributes<Element>, "id" | "style" | "tabIndex" | "role">;
|
|
2
7
|
/**
|
|
3
8
|
* Interface used for generated icon components which already have their name and path defined
|
|
4
9
|
* (through the rendered Handlebars template).
|
|
5
10
|
*/
|
|
6
|
-
export interface SVGIconProps extends React.RefAttributes<any>,
|
|
11
|
+
export interface SVGIconProps extends React.RefAttributes<any>, SVGIconAttributes {
|
|
7
12
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
8
13
|
className?: string;
|
|
9
14
|
/** This component does not support custom children. */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
export { IconSvgPaths16, IconSvgPaths20, getIconPaths } from "./allPaths";
|
|
19
19
|
|
|
20
20
|
export { Icons, IconLoaderOptions, IconPathsLoader } from "./iconLoader";
|
|
21
|
-
export { SVGIconProps } from "./svgIconProps";
|
|
21
|
+
export { SVGIconAttributes, SVGIconProps } from "./svgIconProps";
|
|
22
22
|
export { SVGIconContainer, SVGIconContainerProps } from "./svgIconContainer";
|
|
23
23
|
export { getIconContentString, IconCodepoints } from "./iconCodepoints";
|
|
24
24
|
export { IconName, IconNames } from "./iconNames";
|
package/src/svgIconProps.ts
CHANGED
|
@@ -15,13 +15,19 @@
|
|
|
15
15
|
|
|
16
16
|
import * as React from "react";
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* DOM attributes assignable as props to the root element rendered by an SVG icon component
|
|
20
|
+
* (which may be a `<span>`, `<svg>` or some custom HTML element).
|
|
21
|
+
*/
|
|
22
|
+
export type SVGIconAttributes = React.AriaAttributes &
|
|
23
|
+
Omit<React.DOMAttributes<Element>, "children" | "dangerouslySetInnerHTML"> &
|
|
24
|
+
Pick<React.HTMLAttributes<Element>, "id" | "style" | "tabIndex" | "role">;
|
|
25
|
+
|
|
18
26
|
/**
|
|
19
27
|
* Interface used for generated icon components which already have their name and path defined
|
|
20
28
|
* (through the rendered Handlebars template).
|
|
21
29
|
*/
|
|
22
|
-
export interface SVGIconProps
|
|
23
|
-
extends React.RefAttributes<any>,
|
|
24
|
-
Omit<React.DOMAttributes<HTMLElement | SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> {
|
|
30
|
+
export interface SVGIconProps extends React.RefAttributes<any>, SVGIconAttributes {
|
|
25
31
|
/** A space-delimited list of class names to pass along to the SVG element. */
|
|
26
32
|
className?: string;
|
|
27
33
|
|