@zeturn/watercolor-icons-feather 1.1.29
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 +2 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/watercolor-icons-feather.es.js +14 -0
- package/dist/watercolor-icons-feather.umd.js +1 -0
- package/package.json +33 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FeatherSvgOptions {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
/** feather-icons uses 'stroke-width' attribute */
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns an SVG string for a Feather icon name (e.g. "heart", "log-in").
|
|
9
|
+
* This is framework-agnostic so React/Vue wrappers can render it via innerHTML.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFeatherSvg(name: string, options?: FeatherSvgOptions): Promise<string>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAgBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
async function d(s, e = {}) {
|
|
2
|
+
var n;
|
|
3
|
+
const o = await import("feather-icons"), h = o.default || o, t = (n = h == null ? void 0 : h.icons) == null ? void 0 : n[s];
|
|
4
|
+
if (!(t != null && t.toSvg)) return "";
|
|
5
|
+
const r = e.width ?? 24, c = e.height ?? r, i = e.strokeWidth ?? 2;
|
|
6
|
+
return t.toSvg({
|
|
7
|
+
width: r,
|
|
8
|
+
height: c,
|
|
9
|
+
"stroke-width": i
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
d as getFeatherSvg
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.WatercolorIconsFeather={}))})(this,function(e){"use strict";async function t(f,o={}){var r;const s=await import("feather-icons"),i=s.default||s,n=(r=i==null?void 0:i.icons)==null?void 0:r[f];if(!(n!=null&&n.toSvg))return"";const d=o.width??24,h=o.height??d,c=o.strokeWidth??2;return n.toSvg({width:d,height:h,"stroke-width":c})}e.getFeatherSvg=t,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zeturn/watercolor-icons-feather",
|
|
3
|
+
"version": "1.1.29",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/watercolor-icons-feather.umd.js",
|
|
6
|
+
"module": "dist/watercolor-icons-feather.es.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/watercolor-icons-feather.es.js",
|
|
12
|
+
"require": "./dist/watercolor-icons-feather.umd.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "vite build"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"feather-icons": "^4.29.2"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/zeturn/watercolor",
|
|
30
|
+
"directory": "packages/icons-feather"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT"
|
|
33
|
+
}
|