@central-icons-react/all 0.0.11 → 0.0.13

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { IconHome } from "@central-icons-react/round-filled-radius-0-stroke-1/IconHome";
2
+ import { type CentralIconBaseProps } from "@central-icons-react/round-filled-radius-0-stroke-1/CentralIconBase";
3
3
  export type {
4
4
  CentralIconName,
5
5
  CentralIconCategory,
@@ -15,6 +15,6 @@ export type CentralIconProps = {
15
15
  radius: CentralIconRadius;
16
16
  stroke: CentralIconStroke;
17
17
  name: CentralIconName;
18
- } & typeof IconHome;
18
+ } & CentralIconBaseProps;
19
19
  export declare const CentralIcon: React.FC<CentralIconProps>;
20
20
  export default CentralIcon;
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var I=(o,e)=>{for(var t in e)a(o,t,{get:e[t],enumerable:!0})},C=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of s(e))!d.call(o,r)&&r!==t&&a(o,r,{get:()=>e[r],enumerable:!(n=p(e,r))||n.enumerable});return o};var u=o=>C(a({},"__esModule",{value:!0}),o);var f={};I(f,{CentralIcon:()=>l,default:()=>m});module.exports=u(f);var l=({name:o,join:e,fill:t,radius:n,stroke:r,...c})=>import(`@central-icons-react/${e}-${t}-radius-${n}-stroke-${r}/${o}`).then(i=>i.default(c)),m=l;0&&(module.exports={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(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});
2
2
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["src/index.ts"],"sourcesContent":["import React from \"react\";\nimport type { IconHome } from \"@central-icons-react/round-filled-radius-0-stroke-1/IconHome\";\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} & typeof IconHome;\n\nexport const CentralIcon: React.FC<CentralIconProps> = ({\n name,\n join,\n fill,\n radius,\n stroke,\n ...props\n}) => {\n return import(\n `@central-icons-react/${join}-${fill}-radius-${radius}-stroke-${stroke}/${name}`\n ).then((module) => module.default(props));\n};\n\nexport default CentralIcon;\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,iBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAqBO,IAAME,EAA0C,CAAC,CACtD,KAAAG,EACA,KAAAC,EACA,KAAAC,EACA,OAAAC,EACA,OAAAC,EACA,GAAGC,CACL,IACS,OACL,wBAAwBJ,CAAI,IAAIC,CAAI,WAAWC,CAAM,WAAWC,CAAM,IAAIJ,CAAI,IAC9E,KAAMM,GAAWA,EAAO,QAAQD,CAAK,CAAC,EAGnCP,EAAQD","names":["index_exports","__export","CentralIcon","index_default","__toCommonJS","name","join","fill","radius","stroke","props","module"]}
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 CHANGED
@@ -1,2 +1,2 @@
1
- var c=({name:e,join:o,fill:r,radius:t,stroke:n,...a})=>import(`@central-icons-react/${o}-${r}-radius-${t}-stroke-${n}/${e}`).then(l=>l.default(a)),i=c;export{c as CentralIcon,i as default};
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(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
2
  //# sourceMappingURL=index.mjs.map
package/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["src/index.ts"],"sourcesContent":["import React from \"react\";\nimport type { IconHome } from \"@central-icons-react/round-filled-radius-0-stroke-1/IconHome\";\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} & typeof IconHome;\n\nexport const CentralIcon: React.FC<CentralIconProps> = ({\n name,\n join,\n fill,\n radius,\n stroke,\n ...props\n}) => {\n return import(\n `@central-icons-react/${join}-${fill}-radius-${radius}-stroke-${stroke}/${name}`\n ).then((module) => module.default(props));\n};\n\nexport default CentralIcon;\n"],"mappings":"AAqBO,IAAMA,EAA0C,CAAC,CACtD,KAAAC,EACA,KAAAC,EACA,KAAAC,EACA,OAAAC,EACA,OAAAC,EACA,GAAGC,CACL,IACS,OACL,wBAAwBJ,CAAI,IAAIC,CAAI,WAAWC,CAAM,WAAWC,CAAM,IAAIJ,CAAI,IAC9E,KAAMM,GAAWA,EAAO,QAAQD,CAAK,CAAC,EAGnCE,EAAQR","names":["CentralIcon","name","join","fill","radius","stroke","props","module","index_default"]}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-icons-react/all",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "homepage": "https://iconists.co/central",
6
6
  "sideEffects": false,
@@ -46,35 +46,35 @@
46
46
  "typescript": "^5"
47
47
  },
48
48
  "dependencies": {
49
- "@central-icons-react/round-filled-radius-0-stroke-1": "^0.0.8",
50
- "@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.8",
51
- "@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.8",
52
- "@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.8",
53
- "@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.8",
54
- "@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.8",
55
- "@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.8",
56
- "@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.8",
57
- "@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.8",
58
- "@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.8",
59
- "@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.8",
60
- "@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.8",
61
- "@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.8",
62
- "@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.8",
63
- "@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.8",
64
- "@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.8",
65
- "@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.8",
66
- "@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.8",
67
- "@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.8",
68
- "@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.8",
69
- "@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.8",
70
- "@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.8",
71
- "@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.8",
72
- "@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.8",
73
- "@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.8",
74
- "@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.8",
75
- "@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.8",
76
- "@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.8",
77
- "@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.8",
78
- "@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.8"
49
+ "@central-icons-react/round-filled-radius-0-stroke-1": "^0.0.12",
50
+ "@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.12",
51
+ "@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.12",
52
+ "@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.12",
53
+ "@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.12",
54
+ "@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.12",
55
+ "@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.12",
56
+ "@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.12",
57
+ "@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.12",
58
+ "@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.12",
59
+ "@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.12",
60
+ "@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.12",
61
+ "@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.12",
62
+ "@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.12",
63
+ "@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.12",
64
+ "@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.12",
65
+ "@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.12",
66
+ "@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.12",
67
+ "@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.12",
68
+ "@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.12",
69
+ "@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.12",
70
+ "@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.12",
71
+ "@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.12",
72
+ "@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.12",
73
+ "@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.12",
74
+ "@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.12",
75
+ "@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.12",
76
+ "@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.12",
77
+ "@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.12",
78
+ "@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.12"
79
79
  }
80
80
  }