@central-icons-react/square-filled-radius-0-stroke-1 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 u=Object.create;var l=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var B=(e,r)=>{for(var o in r)l(e,o,{get:r[o],enumerable:!0})},i=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of f(r))!v.call(e,t)&&t!==o&&l(e,t,{get:()=>r[t],enumerable:!(n=V(r,t))||n.enumerable});return e};var s=(e,r,o)=>(o=e!=null?u(g(e)):{},i(r||!e||!e.__esModule?l(o,"default",{value:e,enumerable:!0}):o,e)),x=e=>i(l({},"__esModule",{value:!0}),e);var I={};B(I,{IconBank2:()=>c,default:()=>H});module.exports=x(I);var p=s(require("react"));var a=s(require("react")),C=({children:e,size:r=24,ariaLabel:o,color:n,ariaHidden:t=!0,style:d,...m})=>a.default.createElement("svg",{...m,"aria-hidden":t,role:t?void 0:"img",width:typeof r=="number"?`${r}px`:r,height:typeof r=="number"?`${r}px`:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:n,...d}},o&&!t&&a.default.createElement("title",null,o),e);var c=e=>p.default.createElement(C,{...e,ariaLabel:"bank-2, library, gov"},p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 20H22V21H2V20H3V11H21V20ZM9 20H10V13H9V20ZM14 20H15V13H14V20Z",fill:"currentColor"}),p.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 6.35059V10.001H2V6.35059L12 1.90527L22 6.35059ZM12 5.50098C11.4477 5.50098 11 5.94869 11 6.50098C11.0005 7.05281 11.448 7.50098 12 7.50098C12.552 7.50098 12.9995 7.05281 13 6.50098C13 5.94869 12.5523 5.50098 12 5.50098Z",fill:"currentColor"})),H=c;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 fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M21 20H22V21H2V20H3V11H21V20ZM9 20H10V13H9V20ZM14 20H15V13H14V20Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M22 6.35059V10.001H2V6.35059L12 1.90527L22 6.35059ZM12 5.50098C11.4477 5.50098 11 5.94869 11 6.50098C11.0005 7.05281 11.448 7.50098 12 7.50098C12.552 7.50098 12.9995 7.05281 13 6.50098C13 5.94869 12.5523 5.50098 12 5.50098Z\"\n fill=\"currentColor\"\n />\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,SAAS,UACT,SAAS,UACT,EAAE,oEACF,KAAK,eACP,EACA,EAAAA,QAAA,cAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,kOACF,KAAK,eACP,CACF,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 t from"react";import l from"react";var p=({children:r,size:e=24,ariaLabel:n,color:a,ariaHidden:o=!0,style:i,...s})=>l.createElement("svg",{...s,"aria-hidden":o,role:o?void 0:"img",width:typeof e=="number"?`${e}px`:e,height:typeof e=="number"?`${e}px`:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:a,...i}},n&&!o&&l.createElement("title",null,n),r);var C=r=>t.createElement(p,{...r,ariaLabel:"bank-2, library, gov"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 20H22V21H2V20H3V11H21V20ZM9 20H10V13H9V20ZM14 20H15V13H14V20Z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 6.35059V10.001H2V6.35059L12 1.90527L22 6.35059ZM12 5.50098C11.4477 5.50098 11 5.94869 11 6.50098C11.0005 7.05281 11.448 7.50098 12 7.50098C12.552 7.50098 12.9995 7.05281 13 6.50098C13 5.94869 12.5523 5.50098 12 5.50098Z",fill:"currentColor"})),V=C;export{C as IconBank2,V 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 fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M21 20H22V21H2V20H3V11H21V20ZM9 20H10V13H9V20ZM14 20H15V13H14V20Z\"\n fill=\"currentColor\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M22 6.35059V10.001H2V6.35059L12 1.90527L22 6.35059ZM12 5.50098C11.4477 5.50098 11 5.94869 11 6.50098C11.0005 7.05281 11.448 7.50098 12 7.50098C12.552 7.50098 12.9995 7.05281 13 6.50098C13 5.94869 12.5523 5.50098 12 5.50098Z\"\n fill=\"currentColor\"\n />\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,SAAS,UACT,SAAS,UACT,EAAE,oEACF,KAAK,eACP,EACAA,EAAA,cAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,kOACF,KAAK,eACP,CACF,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/square-filled-radius-0-stroke
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/square-filled-radius-0-stroke-1
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/square-filled-radius-0-stroke-1/IconHome";
64
+ import { IconHome } from "@central-icons-react/square-filled-radius-0-stroke-1";
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/square-filled-radius-0-stroke-1
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/square-filled-radius-0-stroke-1/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"