@central-icons-react/round-outlined-radius-2-stroke-2 1.0.7 → 1.1.0
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/IconBank2/index.d.ts +4 -0
- package/IconBank2/index.js +2 -0
- package/IconBank2/index.js.map +1 -0
- package/IconBank2/index.mjs +2 -0
- package/IconBank2/index.mjs.map +1 -0
- package/README.md +24 -19
- package/icons/index.d.ts +1 -0
- package/icons/index.js +1 -1
- package/icons/index.js.map +1 -1
- package/icons/index.mjs +1 -1
- package/icons/index.mjs.map +1 -1
- package/icons-index.json +5 -3
- package/index.d.ts +4229 -11
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/license-check.js +1 -1
- package/package.json +1 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";var c=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var g=(r,o)=>{for(var e in o)i(r,e,{get:o[e],enumerable:!0})},l=(r,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of m(o))!f.call(r,t)&&t!==e&&i(r,t,{get:()=>o[t],enumerable:!(s=h(o,t))||s.enumerable});return r};var a=(r,o,e)=>(e=r!=null?c(L(r)):{},l(o||!r||!r.__esModule?i(e,"default",{value:r,enumerable:!0}):e,r)),x=r=>l(i({},"__esModule",{value:!0}),r);var y={};g(y,{IconBank2:()=>u,default:()=>B});module.exports=x(y);var n=a(require("react"));var p=a(require("react")),d=({children:r,size:o=24,ariaLabel:e,color:s,ariaHidden:t=!0,style:C,...k})=>p.default.createElement("svg",{...k,"aria-hidden":t,role:t?void 0:"img",width:typeof o=="number"?`${o}px`:o,height:typeof o=="number"?`${o}px`:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:s,...C}},e&&!t&&p.default.createElement("title",null,e),r);var u=r=>n.default.createElement(d,{...r,ariaLabel:"bank-2, library, gov"},n.default.createElement("path",{d:"M21 19C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20C2 19.4477 2.44772 19 3 19H21Z",fill:"currentColor"}),n.default.createElement("path",{d:"M4 20V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M20 20V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M4.07983 6.52007L11.1877 3.36101C11.7049 3.13118 12.2951 3.13118 12.8123 3.36101L19.9202 6.52008C20.5768 6.81192 21 7.4631 21 8.18168C21 9.18591 20.1859 10 19.1817 10H4.81832C3.81409 10 3 9.18591 3 8.18168C3 7.4631 3.42319 6.81192 4.07983 6.52007Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M9.5 20V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M14.5 20V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"})),B=u;0&&(module.exports={IconBank2});
|
2
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/IconBank2/index.tsx","../src/CentralIconBase/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { CentralIconBase, type CentralIconBaseProps } from \"../CentralIconBase\";\n\nexport const IconBank2: React.FC<CentralIconBaseProps> = (props) => {\n return (\n <CentralIconBase {...props} ariaLabel=\"bank-2, library, gov\">\n <path\n d=\"M21 19C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20C2 19.4477 2.44772 19 3 19H21Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M4 20V10\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M20 20V10\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M4.07983 6.52007L11.1877 3.36101C11.7049 3.13118 12.2951 3.13118 12.8123 3.36101L19.9202 6.52008C20.5768 6.81192 21 7.4631 21 8.18168C21 9.18591 20.1859 10 19.1817 10H4.81832C3.81409 10 3 9.18591 3 8.18168C3 7.4631 3.42319 6.81192 4.07983 6.52007Z\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9.5 20V14\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.5 20V14\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <circle cx=\"12\" cy=\"7\" r=\"1\" fill=\"currentColor\" />\n </CentralIconBase>\n );\n};\n\nexport default IconBank2;\n","import React from \"react\";\nimport type { SVGProps } from \"react\";\n\nexport type CentralIconBaseProps = {\n size?: string | number;\n ariaHidden?: boolean;\n} & SVGProps<SVGSVGElement>;\n\nexport const CentralIconBase: React.FC<\n CentralIconBaseProps & { ariaLabel?: string }\n> = ({\n children,\n size = 24,\n ariaLabel,\n color,\n ariaHidden = true,\n style,\n ...props\n}) => {\n return (\n <svg\n {...props}\n aria-hidden={ariaHidden}\n role={ariaHidden ? undefined : \"img\"}\n width={typeof size === \"number\" ? `${size}px` : size}\n height={typeof size === \"number\" ? `${size}px` : size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ color, ...style }}\n >\n {ariaLabel && !ariaHidden && <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AK,GAAG,IAAI,EAAE,IAAI,KAAK,eAAe,CACnD,EAIGE,EAAQJ","names":["IconBank2_exports","__export","IconBank2","IconBank2_default","__toCommonJS","import_react","import_react","CentralIconBase","children","size","ariaLabel","color","ariaHidden","style","props","React","IconBank2","props","React","CentralIconBase","IconBank2_default"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import r from"react";import s from"react";var i=({children:e,size:o=24,ariaLabel:n,color:p,ariaHidden:t=!0,style:l,...a})=>s.createElement("svg",{...a,"aria-hidden":t,role:t?void 0:"img",width:typeof o=="number"?`${o}px`:o,height:typeof o=="number"?`${o}px`:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:p,...l}},n&&!t&&s.createElement("title",null,n),e);var d=e=>r.createElement(i,{...e,ariaLabel:"bank-2, library, gov"},r.createElement("path",{d:"M21 19C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20C2 19.4477 2.44772 19 3 19H21Z",fill:"currentColor"}),r.createElement("path",{d:"M4 20V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20 20V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M4.07983 6.52007L11.1877 3.36101C11.7049 3.13118 12.2951 3.13118 12.8123 3.36101L19.9202 6.52008C20.5768 6.81192 21 7.4631 21 8.18168C21 9.18591 20.1859 10 19.1817 10H4.81832C3.81409 10 3 9.18591 3 8.18168C3 7.4631 3.42319 6.81192 4.07983 6.52007Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M9.5 20V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M14.5 20V14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"})),h=d;export{d as IconBank2,h as default};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/IconBank2/index.tsx","../src/CentralIconBase/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { CentralIconBase, type CentralIconBaseProps } from \"../CentralIconBase\";\n\nexport const IconBank2: React.FC<CentralIconBaseProps> = (props) => {\n return (\n <CentralIconBase {...props} ariaLabel=\"bank-2, library, gov\">\n <path\n d=\"M21 19C21.5523 19 22 19.4477 22 20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20C2 19.4477 2.44772 19 3 19H21Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M4 20V10\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M20 20V10\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M4.07983 6.52007L11.1877 3.36101C11.7049 3.13118 12.2951 3.13118 12.8123 3.36101L19.9202 6.52008C20.5768 6.81192 21 7.4631 21 8.18168C21 9.18591 20.1859 10 19.1817 10H4.81832C3.81409 10 3 9.18591 3 8.18168C3 7.4631 3.42319 6.81192 4.07983 6.52007Z\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9.5 20V14\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.5 20V14\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <circle cx=\"12\" cy=\"7\" r=\"1\" fill=\"currentColor\" />\n </CentralIconBase>\n );\n};\n\nexport default IconBank2;\n","import React from \"react\";\nimport type { SVGProps } from \"react\";\n\nexport type CentralIconBaseProps = {\n size?: string | number;\n ariaHidden?: boolean;\n} & SVGProps<SVGSVGElement>;\n\nexport const CentralIconBase: React.FC<\n CentralIconBaseProps & { ariaLabel?: string }\n> = ({\n children,\n size = 24,\n ariaLabel,\n color,\n ariaHidden = true,\n style,\n ...props\n}) => {\n return (\n <svg\n {...props}\n aria-hidden={ariaHidden}\n role={ariaHidden ? undefined : \"img\"}\n width={typeof size === \"number\" ? `${size}px` : size}\n height={typeof size === \"number\" ? `${size}px` : size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ color, ...style }}\n >\n {ariaLabel && !ariaHidden && <title>{ariaLabel}</title>}\n {children}\n </svg>\n );\n};\n"],"mappings":"AAAA,OAAOA,MAAW,QCAlB,OAAOC,MAAW,QAQX,IAAMC,EAET,CAAC,CACH,SAAAC,EACA,KAAAC,EAAO,GACP,UAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,MAAAC,EACA,GAAGC,CACL,IAEIR,EAAA,cAAC,OACE,GAAGQ,EACJ,cAAaF,EACb,KAAMA,EAAa,OAAY,MAC/B,MAAO,OAAOH,GAAS,SAAW,GAAGA,CAAI,KAAOA,EAChD,OAAQ,OAAOA,GAAS,SAAW,GAAGA,CAAI,KAAOA,EACjD,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,MAAO,CAAE,MAAAE,EAAO,GAAGE,CAAM,GAExBH,GAAa,CAACE,GAAcN,EAAA,cAAC,aAAOI,CAAU,EAC9CF,CACH,ED9BG,IAAMO,EAA6CC,GAEtDC,EAAA,cAACC,EAAA,CAAiB,GAAGF,EAAO,UAAU,wBACpCC,EAAA,cAAC,QACC,EAAE,2HACF,KAAK,eACP,EACAA,EAAA,cAAC,QACC,EAAE,WACF,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,YACF,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,0PACF,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,aACF,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,cACF,OAAO,eACP,YAAY,IACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,UAAO,GAAG,KAAK,GAAG,IAAI,EAAE,IAAI,KAAK,eAAe,CACnD,EAIGE,EAAQJ","names":["React","React","CentralIconBase","children","size","ariaLabel","color","ariaHidden","style","props","IconBank2","props","React","CentralIconBase","IconBank2_default"]}
|
package/README.md
CHANGED
@@ -26,7 +26,7 @@ npm install central-icons@npm:@central-icons-react/round-outlined-radius-2-strok
|
|
26
26
|
```
|
27
27
|
|
28
28
|
```jsx
|
29
|
-
import { IconHome } from "central-icons
|
29
|
+
import { IconHome } from "central-icons";
|
30
30
|
|
31
31
|
function MyComponent() {
|
32
32
|
return <IconHome />;
|
@@ -56,29 +56,38 @@ pnpm add @central-icons-react/round-outlined-radius-2-stroke-2
|
|
56
56
|
|
57
57
|
## Usage
|
58
58
|
|
59
|
-
###
|
59
|
+
### Direct Import (Recommended)
|
60
60
|
|
61
|
-
Icons can be imported
|
61
|
+
Icons can be imported directly from the package root for convenience:
|
62
62
|
|
63
63
|
```jsx
|
64
|
-
import { IconHome } from "@central-icons-react/round-outlined-radius-2-stroke-2
|
64
|
+
import { IconHome } from "@central-icons-react/round-outlined-radius-2-stroke-2";
|
65
65
|
|
66
66
|
function MyComponent() {
|
67
67
|
return <IconHome />;
|
68
68
|
}
|
69
69
|
```
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
If you want to have a bit cleaner imports (and you are just using one icon type), you can use import aliases
|
74
|
-
(Requires npm at least v6.9.0 or yarn)
|
71
|
+
Or with an alias for cleaner imports:
|
75
72
|
|
76
73
|
```bash
|
77
74
|
npm install central-icons@npm:@central-icons-react/round-outlined-radius-2-stroke-2
|
78
75
|
```
|
79
76
|
|
80
77
|
```jsx
|
81
|
-
import { IconHome } from "central-icons
|
78
|
+
import { IconHome } from "central-icons";
|
79
|
+
|
80
|
+
function MyComponent() {
|
81
|
+
return <IconHome />;
|
82
|
+
}
|
83
|
+
```
|
84
|
+
|
85
|
+
### Individual Path Imports
|
86
|
+
|
87
|
+
For advanced tree-shaking or when you prefer explicit paths:
|
88
|
+
|
89
|
+
```jsx
|
90
|
+
import { IconHome } from "@central-icons-react/round-outlined-radius-2-stroke-2/IconHome";
|
82
91
|
|
83
92
|
function MyComponent() {
|
84
93
|
return <IconHome />;
|
@@ -101,16 +110,11 @@ function MyComponent() {
|
|
101
110
|
|
102
111
|
All icons accept the following properties:
|
103
112
|
|
104
|
-
| Prop | Type
|
105
|
-
| ------------ |
|
106
|
-
| `size` | `number \| string`
|
107
|
-
| `color` | `string`
|
108
|
-
| `ariaHidden` | `boolean`
|
109
|
-
| `iconJoin` | `"round" \| "square"` | `"round"` | Controls the icon's corner style |
|
110
|
-
| `iconFill` | `"filled" \| "outlined"` | `"filled"` | Sets the icon's fill style |
|
111
|
-
| `iconStroke` | `"1" \| "1.5" \| "2"` | `"1"` | Controls the stroke width |
|
112
|
-
| `iconRadius` | `"0" \| "1" \| "2" \| "3"` | `"1"` | Sets the corner radius |
|
113
|
-
| `name` | `string` | none | Defines which icon should be used - see [Icons List](#icons) |
|
113
|
+
| Prop | Type | Default | Description |
|
114
|
+
| ------------ | ------------------ | -------------- | -------------------------------------- |
|
115
|
+
| `size` | `number \| string` | `24` | Sets both width and height of the icon |
|
116
|
+
| `color` | `string` | `currentColor` | Sets the icon color |
|
117
|
+
| `ariaHidden` | `boolean` | `true` | Controls icon accessibility attributes |
|
114
118
|
|
115
119
|
Additionally, all standard SVG and HTML attributes are supported.
|
116
120
|
|
@@ -356,6 +360,7 @@ Below is a complete list of available icons:
|
|
356
360
|
### Building
|
357
361
|
|
358
362
|
- IconBank
|
363
|
+
- IconBank2
|
359
364
|
- IconBlock
|
360
365
|
- IconBuildings
|
361
366
|
- IconCourt
|