@central-icons-react/all 0.0.13 → 0.0.14
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 +15 -1
- package/index.js.map +1 -1
- package/package.json +32 -39
- package/index.mjs +0 -2
- package/index.mjs.map +0 -1
package/index.js
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
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;
|
|
2
16
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@central-icons-react/all",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
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",
|
|
9
8
|
"types": "./index.d.ts",
|
|
10
9
|
"exports": {
|
|
11
10
|
".": {
|
|
12
11
|
"types": "./index.d.ts",
|
|
13
|
-
"import": "./index.mjs",
|
|
14
12
|
"require": "./index.js"
|
|
15
13
|
},
|
|
16
14
|
"./*": {
|
|
17
15
|
"types": "./*/index.d.ts",
|
|
18
|
-
"import": "./*/index.mjs",
|
|
19
16
|
"require": "./*/index.js"
|
|
20
17
|
}
|
|
21
18
|
},
|
|
22
19
|
"files": [
|
|
23
20
|
"**/*.js",
|
|
24
|
-
"**/*.mjs",
|
|
25
21
|
"**/*.map",
|
|
26
22
|
"**/*.d.ts",
|
|
27
23
|
"**/*.md"
|
|
28
24
|
],
|
|
29
25
|
"scripts": {
|
|
30
26
|
"preinstall": "node ./license-check.js",
|
|
31
|
-
"
|
|
32
|
-
"build": "tsup",
|
|
27
|
+
"build": "tsc",
|
|
33
28
|
"prepublishOnly": "npm run build",
|
|
34
29
|
"postbuild": "prettier --write **/*.d.ts *.d.ts",
|
|
35
|
-
"dev": "tsup --watch",
|
|
36
30
|
"lint": "prettier --write ."
|
|
37
31
|
},
|
|
38
32
|
"peerDependencies": {
|
|
@@ -42,39 +36,38 @@
|
|
|
42
36
|
"@types/node": "^22",
|
|
43
37
|
"@types/react": ">=14.0.0 <= 19",
|
|
44
38
|
"prettier": "^3",
|
|
45
|
-
"tsup": "^8",
|
|
46
39
|
"typescript": "^5"
|
|
47
40
|
},
|
|
48
41
|
"dependencies": {
|
|
49
|
-
"@central-icons-react/round-filled-radius-0-stroke-1": "^0.0.
|
|
50
|
-
"@central-icons-react/round-filled-radius-0-stroke-1.5": "^0.0.
|
|
51
|
-
"@central-icons-react/round-filled-radius-0-stroke-2": "^0.0.
|
|
52
|
-
"@central-icons-react/round-filled-radius-1-stroke-1": "^0.0.
|
|
53
|
-
"@central-icons-react/round-filled-radius-1-stroke-1.5": "^0.0.
|
|
54
|
-
"@central-icons-react/round-filled-radius-1-stroke-2": "^0.0.
|
|
55
|
-
"@central-icons-react/round-filled-radius-2-stroke-1": "^0.0.
|
|
56
|
-
"@central-icons-react/round-filled-radius-2-stroke-1.5": "^0.0.
|
|
57
|
-
"@central-icons-react/round-filled-radius-2-stroke-2": "^0.0.
|
|
58
|
-
"@central-icons-react/round-filled-radius-3-stroke-1": "^0.0.
|
|
59
|
-
"@central-icons-react/round-filled-radius-3-stroke-1.5": "^0.0.
|
|
60
|
-
"@central-icons-react/round-filled-radius-3-stroke-2": "^0.0.
|
|
61
|
-
"@central-icons-react/round-outlined-radius-0-stroke-1": "^0.0.
|
|
62
|
-
"@central-icons-react/round-outlined-radius-0-stroke-1.5": "^0.0.
|
|
63
|
-
"@central-icons-react/round-outlined-radius-0-stroke-2": "^0.0.
|
|
64
|
-
"@central-icons-react/round-outlined-radius-1-stroke-1": "^0.0.
|
|
65
|
-
"@central-icons-react/round-outlined-radius-1-stroke-1.5": "^0.0.
|
|
66
|
-
"@central-icons-react/round-outlined-radius-1-stroke-2": "^0.0.
|
|
67
|
-
"@central-icons-react/round-outlined-radius-2-stroke-1": "^0.0.
|
|
68
|
-
"@central-icons-react/round-outlined-radius-2-stroke-1.5": "^0.0.
|
|
69
|
-
"@central-icons-react/round-outlined-radius-2-stroke-2": "^0.0.
|
|
70
|
-
"@central-icons-react/round-outlined-radius-3-stroke-1": "^0.0.
|
|
71
|
-
"@central-icons-react/round-outlined-radius-3-stroke-1.5": "^0.0.
|
|
72
|
-
"@central-icons-react/round-outlined-radius-3-stroke-2": "^0.0.
|
|
73
|
-
"@central-icons-react/square-filled-radius-0-stroke-1": "^0.0.
|
|
74
|
-
"@central-icons-react/square-filled-radius-0-stroke-1.5": "^0.0.
|
|
75
|
-
"@central-icons-react/square-filled-radius-0-stroke-2": "^0.0.
|
|
76
|
-
"@central-icons-react/square-outlined-radius-0-stroke-1": "^0.0.
|
|
77
|
-
"@central-icons-react/square-outlined-radius-0-stroke-1.5": "^0.0.
|
|
78
|
-
"@central-icons-react/square-outlined-radius-0-stroke-2": "^0.0.
|
|
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"
|
|
79
72
|
}
|
|
80
73
|
}
|
package/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|