@channel.io/bezier-icons 0.31.1 → 0.31.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3,7 +3,12 @@ declare module '*.svg' {
3
3
  export default content
4
4
  }
5
5
 
6
- export declare type IconSource = React.ForwardRefExoticComponent<React.SVGProps<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>
6
+ /**
7
+ * Since IconSource created by svgr is forwarded ref,
8
+ * Its correct type is React.ForwardRefExoticComponent<React.SVGProps<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>,
9
+ * however, we keep React.FunctionComponent type for backward compatibility.
10
+ */
11
+ export declare type IconSource = React.FunctionComponent<React.SVGProps<SVGSVGElement>>
7
12
  export declare type BezierIcon = IconSource & { __bezier__icon: true }
8
13
 
9
14
  export declare function isBezierIcon(arg: unknown): arg is BezierIcon
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@channel.io/bezier-icons",
3
- "version": "0.31.1",
3
+ "version": "0.31.2",
4
4
  "description": "Icon library that implements Bezier design system.",
5
5
  "repository": {
6
6
  "type": "git",