@central-icons-react/round-outlined-radius-0-stroke-1.5 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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { type CentralIconBaseProps } from "../CentralIconBase";
3
+ export declare const IconBank2: React.FC<CentralIconBaseProps>;
4
+ export default IconBank2;
@@ -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 V=(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)),g=r=>l(i({},"__esModule",{value:!0}),r);var B={};V(B,{IconBank2:()=>u,default:()=>x});module.exports=g(B);var n=a(require("react"));var p=a(require("react")),d=({children:r,size:o=24,ariaLabel:e,color:s,ariaHidden:t=!0,style:k,...c})=>p.default.createElement("svg",{...c,"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,...k}},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.25 19.5C21.6642 19.5 22 19.8358 22 20.25C22 20.6642 21.6642 21 21.25 21H2.75C2.33579 21 2 20.6642 2 20.25C2 19.8358 2.33579 19.5 2.75 19.5H21.25Z",fill:"currentColor"}),n.default.createElement("path",{d:"M2.75 7L12 3L21.25 7V10.25H2.75V7Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M3.75 20V10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M20.25 20V10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M9.25 20V13.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M14.75 20V13.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("circle",{cx:"12",cy:"7",r:"1",fill:"currentColor"})),x=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.25 19.5C21.6642 19.5 22 19.8358 22 20.25C22 20.6642 21.6642 21 21.25 21H2.75C2.33579 21 2 20.6642 2 20.25C2 19.8358 2.33579 19.5 2.75 19.5H21.25Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M2.75 7L12 3L21.25 7V10.25H2.75V7Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M3.75 20V10.5\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M20.25 20V10.5\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9.25 20V13.75\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.75 20V13.75\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\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":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkB,oBCAlB,IAAAC,EAAkB,oBAQLC,EAET,CAAC,CACH,SAAAC,EACA,KAAAC,EAAO,GACP,UAAAC,EACA,MAAAC,EACA,WAAAC,EAAa,GACb,MAAAC,EACA,GAAGC,CACL,IAEI,EAAAC,QAAA,cAAC,OACE,GAAGD,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,GAAc,EAAAG,QAAA,cAAC,aAAOL,CAAU,EAC9CF,CACH,ED9BG,IAAMQ,EAA6CC,GAEtD,EAAAC,QAAA,cAACC,EAAA,CAAiB,GAAGF,EAAO,UAAU,wBACpC,EAAAC,QAAA,cAAC,QACC,EAAE,wJACF,KAAK,eACP,EACA,EAAAA,QAAA,cAAC,QACC,EAAE,qCACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACA,EAAAA,QAAA,cAAC,QACC,EAAE,gBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACA,EAAAA,QAAA,cAAC,QACC,EAAE,iBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACA,EAAAA,QAAA,cAAC,QACC,EAAE,iBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACA,EAAAA,QAAA,cAAC,QACC,EAAE,kBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACA,EAAAA,QAAA,cAAC,UAAO,GAAG,KAAK,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.25 19.5C21.6642 19.5 22 19.8358 22 20.25C22 20.6642 21.6642 21 21.25 21H2.75C2.33579 21 2 20.6642 2 20.25C2 19.8358 2.33579 19.5 2.75 19.5H21.25Z",fill:"currentColor"}),r.createElement("path",{d:"M2.75 7L12 3L21.25 7V10.25H2.75V7Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M3.75 20V10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20.25 20V10.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M9.25 20V13.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M14.75 20V13.75",stroke:"currentColor",strokeWidth:"1.5",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.25 19.5C21.6642 19.5 22 19.8358 22 20.25C22 20.6642 21.6642 21 21.25 21H2.75C2.33579 21 2 20.6642 2 20.25C2 19.8358 2.33579 19.5 2.75 19.5H21.25Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M2.75 7L12 3L21.25 7V10.25H2.75V7Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M3.75 20V10.5\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M20.25 20V10.5\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M9.25 20V13.75\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M14.75 20V13.75\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\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,wJACF,KAAK,eACP,EACAA,EAAA,cAAC,QACC,EAAE,qCACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,gBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,iBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,iBACF,OAAO,eACP,YAAY,MACZ,cAAc,QACd,eAAe,QACjB,EACAA,EAAA,cAAC,QACC,EAAE,kBACF,OAAO,eACP,YAAY,MACZ,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-0-strok
26
26
  ```
27
27
 
28
28
  ```jsx
29
- import { IconHome } from "central-icons/IconHome";
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-0-stroke-1.5
56
56
 
57
57
  ## Usage
58
58
 
59
- ### Individual Imports (Recommended)
59
+ ### Direct Import (Recommended)
60
60
 
61
- Icons can be imported individually to keep your bundle size minimal:
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-0-stroke-1.5/IconHome";
64
+ import { IconHome } from "@central-icons-react/round-outlined-radius-0-stroke-1.5";
65
65
 
66
66
  function MyComponent() {
67
67
  return <IconHome />;
68
68
  }
69
69
  ```
70
70
 
71
- ### Import alias
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-0-stroke-1.5
78
75
  ```
79
76
 
80
77
  ```jsx
81
- import { IconHome } from "central-icons/IconHome";
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-0-stroke-1.5/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 | Default | Description |
105
- | ------------ | -------------------------- | -------------- | ------------------------------------------------------------ |
106
- | `size` | `number \| string` | `24` | Sets both width and height of the icon |
107
- | `color` | `string` | `currentColor` | Sets the icon color |
108
- | `ariaHidden` | `boolean` | `true` | Controls icon accessibility attributes |
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
package/icons/index.d.ts CHANGED
@@ -160,6 +160,7 @@ export type CentralIconName =
160
160
  | "IconBalloon"
161
161
  | "IconBanana"
162
162
  | "IconBank"
163
+ | "IconBank2"
163
164
  | "IconBanknote1"
164
165
  | "IconBanknote2"
165
166
  | "IconBarcode"