@zeturn/watercolor-icons-phosphor-react 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.
@@ -0,0 +1,2 @@
1
+ export * from './src/index'
2
+ export {}
@@ -0,0 +1,6 @@
1
+ import { ComponentType } from 'react';
2
+ /**
3
+ * Resolve a Phosphor React icon component by kebab-case name (e.g. "arrow-right").
4
+ */
5
+ export declare function getIcon(name: string): ComponentType<any>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAY1C;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAIxD"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import * as s from "@phosphor-icons/react";
2
+ function e(n) {
3
+ return n.split("-").filter(Boolean).map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join("");
4
+ }
5
+ const c = () => null;
6
+ function i(n) {
7
+ const o = s, t = e(n);
8
+ return o[t] || o.Question || c;
9
+ }
10
+ export {
11
+ i as getIcon
12
+ };
@@ -0,0 +1 @@
1
+ (function(o,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("@phosphor-icons/react")):typeof define=="function"&&define.amd?define(["exports","@phosphor-icons/react"],c):(o=typeof globalThis<"u"?globalThis:o||self,c(o.WatercolorIconsPhosphorReact={},o.Phosphor))})(this,function(o,c){"use strict";function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=i(c);function u(e){return e.split("-").filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const f=()=>null;function p(e){const t=s,n=u(e);return t[n]||t.Question||f}o.getIcon=p,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@zeturn/watercolor-icons-phosphor-react",
3
+ "version": "1.1.29",
4
+ "type": "module",
5
+ "main": "dist/watercolor-icons-phosphor-react.umd.js",
6
+ "module": "dist/watercolor-icons-phosphor-react.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/watercolor-icons-phosphor-react.es.js",
12
+ "require": "./dist/watercolor-icons-phosphor-react.umd.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "vite build"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "^18.0.0"
23
+ },
24
+ "dependencies": {
25
+ "@phosphor-icons/react": "^2.1.10"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/zeturn/watercolor.git",
33
+ "directory": "packages/icons-phosphor-react"
34
+ },
35
+ "license": "MIT"
36
+ }