@central-icons-react/all 0.0.14 → 0.0.15

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/index.js CHANGED
@@ -1,16 +1,2 @@
1
- import React, { lazy, Suspense } from "react";
2
- import { CentralIconBase, } from "@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase";
3
- const LazyCentralIcon = ({ importString }) => {
4
- const Icon = lazy(() => import(/* webpackIgnore: true */ importString));
5
- return React.createElement(Icon, null);
6
- };
7
- const CentralIconPlaceholder = (props) => {
8
- return React.createElement(CentralIconBase, { ...props });
9
- };
10
- export const CentralIcon = ({ name, join, fill, radius, stroke, ...props }) => {
11
- const importString = `@central-icons-react/${join}-${fill}-radius-${radius}-stroke-${stroke}/${name}`;
12
- return (React.createElement(Suspense, { fallback: React.createElement(CentralIconPlaceholder, null) },
13
- React.createElement(LazyCentralIcon, { importString: importString })));
14
- };
15
- export default CentralIcon;
1
+ "use strict";var C=Object.create;var l=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var y=(r,e)=>{for(var n in e)l(r,n,{get:e[n],enumerable:!0})},c=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!m.call(r,t)&&t!==n&&l(r,t,{get:()=>e[t],enumerable:!(a=I(e,t))||a.enumerable});return r};var f=(r,e,n)=>(n=r!=null?C(d(r)):{},c(e||!r||!r.__esModule?l(n,"default",{value:r,enumerable:!0}):n,r)),x=r=>c(l({},"__esModule",{value:!0}),r);var g={};y(g,{CentralIcon:()=>p,default:()=>P});module.exports=x(g);var o=f(require("react")),s=require("@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase"),k=({importString:r})=>{let e=(0,o.lazy)(()=>import(/* webpackIgnore: true */r));return o.default.createElement(e,null)},S=r=>o.default.createElement(s.CentralIconBase,{...r}),p=({name:r,join:e,fill:n,radius:a,stroke:t,...F})=>{let i=`@central-icons-react/${e}-${n}-radius-${a}-stroke-${t}/${r}`;return o.default.createElement(o.Suspense,{fallback:o.default.createElement(S,null)},o.default.createElement(k,{importString:i}))},P=p;0&&(module.exports={CentralIcon});
16
2
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAW,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EACL,eAAe,GAEhB,MAAM,qEAAqE,CAAC;AAoB7E,MAAM,eAAe,GAAG,CAAC,EAAE,YAAY,EAA4B,EAAE,EAAE;IACrE,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC,CAAC;IACxE,OAAO,oBAAC,IAAI,OAAG,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAA6B,CAAC,KAAK,EAAE,EAAE;IACjE,OAAO,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AACxC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,wBAAwB,IAAI,IAAI,IAAI,WAAW,MAAM,WAAW,MAAM,IAAI,IAAI,EAAE,CAAC;IACtG,OAAO,CACL,oBAAC,QAAQ,IAAC,QAAQ,EAAE,oBAAC,sBAAsB,OAAG;QAC5C,oBAAC,eAAe,IAAC,YAAY,EAAE,YAAY,GAAI,CACtC,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"sources":["src/index.tsx"],"sourcesContent":["import React, { lazy, type FC, Suspense } from \"react\";\nimport {\n CentralIconBase,\n type CentralIconBaseProps,\n} from \"@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase\";\nexport type {\n CentralIconName,\n CentralIconCategory,\n} from \"@central-icons-react/round-filled-radius-0-stroke-1\";\nimport type { CentralIconName } from \"@central-icons-react/round-filled-radius-0-stroke-1\";\n\nexport type CentralIconJoin = \"round\" | \"square\";\nexport type CentralIconFill = \"filled\" | \"outlined\";\nexport type CentralIconRadius = \"0\" | \"1\" | \"2\" | \"3\";\nexport type CentralIconStroke = \"1\" | \"1.5\" | \"2\";\n\nexport type CentralIconProps = {\n join: CentralIconJoin;\n fill: CentralIconFill;\n radius: CentralIconRadius;\n stroke: CentralIconStroke;\n name: CentralIconName;\n} & CentralIconBaseProps;\n\nconst LazyCentralIcon = ({ importString }: { importString: string }) => {\n const Icon = lazy(() => import(/* webpackIgnore: true */ importString));\n return <Icon />;\n};\n\nconst CentralIconPlaceholder: FC<CentralIconBaseProps> = (props) => {\n return <CentralIconBase {...props} />;\n};\nexport const CentralIcon: React.FC<CentralIconProps> = ({\n name,\n join,\n fill,\n radius,\n stroke,\n ...props\n}) => {\n const importString = `@central-icons-react/${join}-${fill}-radius-${radius}-stroke-${stroke}/${name}`;\n return (\n <Suspense fallback={<CentralIconPlaceholder />}>\n <LazyCentralIcon importString={importString} />\n </Suspense>\n );\n};\n\nexport default CentralIcon;\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAA+C,oBAC/CC,EAGO,+EAoBDC,EAAkB,CAAC,CAAE,aAAAC,CAAa,IAAgC,CACtE,IAAMC,KAAO,QAAK,IAAM,OAAiCD,EAAa,EACtE,OAAO,EAAAE,QAAA,cAACD,EAAA,IAAK,CACf,EAEME,EAAoDC,GACjD,EAAAF,QAAA,cAAC,mBAAiB,GAAGE,EAAO,EAExBV,EAA0C,CAAC,CACtD,KAAAW,EACA,KAAAC,EACA,KAAAC,EACA,OAAAC,EACA,OAAAC,EACA,GAAGL,CACL,IAAM,CACJ,IAAMJ,EAAe,wBAAwBM,CAAI,IAAIC,CAAI,WAAWC,CAAM,WAAWC,CAAM,IAAIJ,CAAI,GACnG,OACE,EAAAH,QAAA,cAAC,YAAS,SAAU,EAAAA,QAAA,cAACC,EAAA,IAAuB,GAC1C,EAAAD,QAAA,cAACH,EAAA,CAAgB,aAAcC,EAAc,CAC/C,CAEJ,EAEOL,EAAQD","names":["index_exports","__export","CentralIcon","index_default","__toCommonJS","import_react","import_CentralIconBase","LazyCentralIcon","importString","Icon","React","CentralIconPlaceholder","props","name","join","fill","radius","stroke"]}
package/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import e,{lazy as c,Suspense as s}from"react";import{CentralIconBase as p}from"@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase";var i=({importString:r})=>{let n=c(()=>import(/* webpackIgnore: true */r));return e.createElement(n,null)},C=r=>e.createElement(p,{...r}),I=({name:r,join:n,fill:o,radius:t,stroke:a,...u})=>{let l=`@central-icons-react/${n}-${o}-radius-${t}-stroke-${a}/${r}`;return e.createElement(s,{fallback:e.createElement(C,null)},e.createElement(i,{importString:l}))},y=I;export{I as CentralIcon,y as default};
2
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["src/index.tsx"],"sourcesContent":["import React, { lazy, type FC, Suspense } from \"react\";\nimport {\n CentralIconBase,\n type CentralIconBaseProps,\n} from \"@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase\";\nexport type {\n CentralIconName,\n CentralIconCategory,\n} from \"@central-icons-react/round-filled-radius-0-stroke-1\";\nimport type { CentralIconName } from \"@central-icons-react/round-filled-radius-0-stroke-1\";\n\nexport type CentralIconJoin = \"round\" | \"square\";\nexport type CentralIconFill = \"filled\" | \"outlined\";\nexport type CentralIconRadius = \"0\" | \"1\" | \"2\" | \"3\";\nexport type CentralIconStroke = \"1\" | \"1.5\" | \"2\";\n\nexport type CentralIconProps = {\n join: CentralIconJoin;\n fill: CentralIconFill;\n radius: CentralIconRadius;\n stroke: CentralIconStroke;\n name: CentralIconName;\n} & CentralIconBaseProps;\n\nconst LazyCentralIcon = ({ importString }: { importString: string }) => {\n const Icon = lazy(() => import(/* webpackIgnore: true */ importString));\n return <Icon />;\n};\n\nconst CentralIconPlaceholder: FC<CentralIconBaseProps> = (props) => {\n return <CentralIconBase {...props} />;\n};\nexport const CentralIcon: React.FC<CentralIconProps> = ({\n name,\n join,\n fill,\n radius,\n stroke,\n ...props\n}) => {\n const importString = `@central-icons-react/${join}-${fill}-radius-${radius}-stroke-${stroke}/${name}`;\n return (\n <Suspense fallback={<CentralIconPlaceholder />}>\n <LazyCentralIcon importString={importString} />\n </Suspense>\n );\n};\n\nexport default CentralIcon;\n"],"mappings":"AAAA,OAAOA,GAAS,QAAAC,EAAe,YAAAC,MAAgB,QAC/C,OACE,mBAAAC,MAEK,sEAoBP,IAAMC,EAAkB,CAAC,CAAE,aAAAC,CAAa,IAAgC,CACtE,IAAMC,EAAOL,EAAK,IAAM,OAAiCI,EAAa,EACtE,OAAOL,EAAA,cAACM,EAAA,IAAK,CACf,EAEMC,EAAoDC,GACjDR,EAAA,cAACG,EAAA,CAAiB,GAAGK,EAAO,EAExBC,EAA0C,CAAC,CACtD,KAAAC,EACA,KAAAC,EACA,KAAAC,EACA,OAAAC,EACA,OAAAC,EACA,GAAGN,CACL,IAAM,CACJ,IAAMH,EAAe,wBAAwBM,CAAI,IAAIC,CAAI,WAAWC,CAAM,WAAWC,CAAM,IAAIJ,CAAI,GACnG,OACEV,EAAA,cAACE,EAAA,CAAS,SAAUF,EAAA,cAACO,EAAA,IAAuB,GAC1CP,EAAA,cAACI,EAAA,CAAgB,aAAcC,EAAc,CAC/C,CAEJ,EAEOU,EAAQN","names":["React","lazy","Suspense","CentralIconBase","LazyCentralIcon","importString","Icon","CentralIconPlaceholder","props","CentralIcon","name","join","fill","radius","stroke","index_default"]}
package/package.json CHANGED
@@ -1,32 +1,38 @@
1
1
  {
2
2
  "name": "@central-icons-react/all",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "homepage": "https://iconists.co/central",
6
6
  "sideEffects": false,
7
7
  "main": "./index.js",
8
+ "module": "./index.mjs",
8
9
  "types": "./index.d.ts",
9
10
  "exports": {
10
11
  ".": {
11
12
  "types": "./index.d.ts",
13
+ "import": "./index.mjs",
12
14
  "require": "./index.js"
13
15
  },
14
16
  "./*": {
15
17
  "types": "./*/index.d.ts",
18
+ "import": "./*/index.mjs",
16
19
  "require": "./*/index.js"
17
20
  }
18
21
  },
19
22
  "files": [
20
23
  "**/*.js",
24
+ "**/*.mjs",
21
25
  "**/*.map",
22
26
  "**/*.d.ts",
23
27
  "**/*.md"
24
28
  ],
25
29
  "scripts": {
26
30
  "preinstall": "node ./license-check.js",
27
- "build": "tsc",
31
+ "prebuild": "tsc",
32
+ "build": "tsup",
28
33
  "prepublishOnly": "npm run build",
29
- "postbuild": "prettier --write **/*.d.ts *.d.ts",
34
+ "postbuild": "prettier --write **/*.d.ts *.d.ts && sed -i '' 's/import(/import(\\/* webpackIgnore: true *\\//g' index.js index.mjs",
35
+ "dev": "tsup --watch",
30
36
  "lint": "prettier --write ."
31
37
  },
32
38
  "peerDependencies": {
@@ -36,38 +42,39 @@
36
42
  "@types/node": "^22",
37
43
  "@types/react": ">=14.0.0 <= 19",
38
44
  "prettier": "^3",
45
+ "tsup": "^8",
39
46
  "typescript": "^5"
40
47
  },
41
48
  "dependencies": {
42
- "@central-icons-react/round-filled-radius-0-stroke-1": "^0.0.14",
43
- "@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.14",
44
- "@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.14",
45
- "@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.14",
46
- "@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.14",
47
- "@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.14",
48
- "@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.14",
49
- "@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.14",
50
- "@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.14",
51
- "@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.14",
52
- "@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.14",
53
- "@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.14",
54
- "@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.14",
55
- "@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.14",
56
- "@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.14",
57
- "@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.14",
58
- "@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.14",
59
- "@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.14",
60
- "@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.14",
61
- "@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.14",
62
- "@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.14",
63
- "@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.14",
64
- "@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.14",
65
- "@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.14",
66
- "@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.14",
67
- "@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.14",
68
- "@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.14",
69
- "@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.14",
70
- "@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.14",
71
- "@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.14"
49
+ "@central-icons-react/round-filled-radius-0-stroke-1": "^0.0.15",
50
+ "@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.15",
51
+ "@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.15",
52
+ "@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.15",
53
+ "@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.15",
54
+ "@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.15",
55
+ "@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.15",
56
+ "@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.15",
57
+ "@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.15",
58
+ "@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.15",
59
+ "@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.15",
60
+ "@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.15",
61
+ "@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.15",
62
+ "@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.15",
63
+ "@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.15",
64
+ "@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.15",
65
+ "@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.15",
66
+ "@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.15",
67
+ "@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.15",
68
+ "@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.15",
69
+ "@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.15",
70
+ "@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.15",
71
+ "@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.15",
72
+ "@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.15",
73
+ "@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.15",
74
+ "@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.15",
75
+ "@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.15",
76
+ "@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.15",
77
+ "@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.15",
78
+ "@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.15"
72
79
  }
73
80
  }