@channel.io/bezier-icons 0.31.0 → 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.
- package/dist/index.d.ts +6 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.mjs +1 -1
- 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
|
-
|
|
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/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}var t="__bezier__icon";exports.createBezierIcon=function(o){var e=o;return e[t]=!0,e},exports.isBezierIcon=function(e){return"object"===o(e)&&!0===e[t]};
|
|
1
|
+
"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}var t="__bezier__icon";exports.createBezierIcon=function(o){var e=o;return e[t]=!0,e},exports.isBezierIcon=function(e){return!!e&&"object"===o(e)&&!0===e[t]};
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}var t="__bezier__icon";function n(n){return"object"===o(n)&&!0===n[t]}function r(o){var n=o;return n[t]=!0,n}export{r as c,n as i};
|
|
1
|
+
function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}var t="__bezier__icon";function n(n){return!!n&&"object"===o(n)&&!0===n[t]}function r(o){var n=o;return n[t]=!0,n}export{r as c,n as i};
|