@central-icons-react/all 0.0.14 → 0.0.16

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";"use client";var I=Object.create;var l=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var f=(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 o of d(e))!y.call(r,o)&&o!==n&&l(r,o,{get:()=>e[o],enumerable:!(a=u(e,o))||a.enumerable});return r};var x=(r,e,n)=>(n=r!=null?I(m(r)):{},c(e||!r||!r.__esModule?l(n,"default",{value:r,enumerable:!0}):n,r)),k=r=>c(l({},"__esModule",{value:!0}),r);var F={};f(F,{CentralIcon:()=>i,default:()=>g});module.exports=k(F);var t=x(require("react")),s=require("@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase"),S=({importString:r})=>{let e=(0,t.lazy)(()=>import(/* webpackIgnore: true */r));return t.default.createElement(e,null)},P=r=>t.default.createElement(s.CentralIconBase,{...r}),i=({name:r,join:e,fill:n,radius:a,stroke:o,...p})=>{let C=`@central-icons-react/${e}-${n}-radius-${a}-stroke-${o}/${r}`;return t.default.createElement(t.Suspense,{fallback:t.default.createElement(P,null)},t.default.createElement(S,{importString:C,...p}))},g=i;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":["\"use client\";\n\nimport 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} {...props} />\n </Suspense>\n );\n};\n\nexport default CentralIcon;\n"],"mappings":"ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAEA,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,EAAe,GAAGI,EAAO,CAC1D,CAEJ,EAEOT,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
+ "use client";import e,{lazy as s,Suspense as i}from"react";import{CentralIconBase as p}from"@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase";var C=({importString:r})=>{let n=s(()=>import(/* webpackIgnore: true */r));return e.createElement(n,null)},I=r=>e.createElement(p,{...r}),u=({name:r,join:n,fill:t,radius:o,stroke:a,...l})=>{let c=`@central-icons-react/${n}-${t}-radius-${o}-stroke-${a}/${r}`;return e.createElement(i,{fallback:e.createElement(I,null)},e.createElement(C,{importString:c,...l}))},y=u;export{u 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":["\"use client\";\n\nimport 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} {...props} />\n </Suspense>\n );\n};\n\nexport default CentralIcon;\n"],"mappings":"aAEA,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,EAAe,GAAGG,EAAO,CAC1D,CAEJ,EAEOO,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.16",
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.16",
50
+ "@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.16",
51
+ "@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.16",
52
+ "@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.16",
53
+ "@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.16",
54
+ "@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.16",
55
+ "@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.16",
56
+ "@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.16",
57
+ "@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.16",
58
+ "@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.16",
59
+ "@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.16",
60
+ "@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.16",
61
+ "@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.16",
62
+ "@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.16",
63
+ "@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.16",
64
+ "@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.16",
65
+ "@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.16",
66
+ "@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.16",
67
+ "@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.16",
68
+ "@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.16",
69
+ "@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.16",
70
+ "@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.16",
71
+ "@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.16",
72
+ "@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.16",
73
+ "@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.16",
74
+ "@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.16",
75
+ "@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.16",
76
+ "@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.16",
77
+ "@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.16",
78
+ "@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.16"
72
79
  }
73
80
  }