Skip to content

Commit

Permalink
Fix #5957 - Icon: BlankIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Feb 14, 2024
1 parent de45d9e commit 6d65741
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
19 changes: 19 additions & 0 deletions components/lib/icons/blank/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import * as React from 'react';
import { IconBaseProps } from '../../iconbase';

/**
* Defines valid properties in BlankIcon component. In addition to these, all properties of SVGSVGElement can be used in this component.
* @group Properties
*/
export interface BlankIconProps extends IconBaseProps {}

/**
* **PrimeReact - BlankIcon**
*
* [Live Demo](https://www.primereact.org/icons/)
* --- ---
* ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png)
*
* @group Component
*/
export declare class BlankIcon extends React.Component<BlankIconProps, any> {}
16 changes: 16 additions & 0 deletions components/lib/icons/blank/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as React from 'react';
import { IconBase } from '../../iconbase/IconBase';

export const BlankIcon = React.memo(
React.forwardRef((inProps, ref) => {
const pti = IconBase.getPTI(inProps);

return (
<svg ref={ref} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" {...pti}>
<rect width="1" height="1" fill="currentColor" fillOpacity="0" />
</svg>
);
})
);

BlankIcon.displayName = 'BlankIcon';
7 changes: 7 additions & 0 deletions components/lib/icons/blank/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts",
"sideEffects": false
}

0 comments on commit 6d65741

Please sign in to comment.