diff --git a/dist/outline/DocumentMinusIcon.d.ts b/dist/outline/DocumentMinusIcon.d.ts new file mode 100644 index 0000000..fe0e268 --- /dev/null +++ b/dist/outline/DocumentMinusIcon.d.ts @@ -0,0 +1,13 @@ +import * as React from 'react'; +interface IconProps extends React.SVGAttributes { + children?: never; + color?: string; +} +/** + * + * + * @usage + * + */ +export declare const DocumentMinusIcon: React.ForwardRefExoticComponent>; +export {}; diff --git a/dist/outline/index.d.ts b/dist/outline/index.d.ts index 6d15887..4ad72e9 100644 --- a/dist/outline/index.d.ts +++ b/dist/outline/index.d.ts @@ -1 +1,2 @@ +export { DocumentMinusIcon } from './DocumentMinusIcon'; export { DocumentPlusIcon } from './DocumentPlusIcon'; diff --git a/dist/outline/index.js b/dist/outline/index.js index 20bb1f3..1af7070 100644 --- a/dist/outline/index.js +++ b/dist/outline/index.js @@ -1 +1 @@ -import*as e from"react";const o=e.forwardRef((({color:o="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))));o.displayName="DocumentPlusIcon";export{o as DocumentPlusIcon}; +import*as e from"react";const o=e.forwardRef((({color:o="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))));o.displayName="DocumentMinusIcon";const r=e.forwardRef((({color:o="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))));r.displayName="DocumentPlusIcon";export{o as DocumentMinusIcon,r as DocumentPlusIcon}; diff --git a/dist/solid/DocumentMinusIcon.d.ts b/dist/solid/DocumentMinusIcon.d.ts new file mode 100644 index 0000000..fe0e268 --- /dev/null +++ b/dist/solid/DocumentMinusIcon.d.ts @@ -0,0 +1,13 @@ +import * as React from 'react'; +interface IconProps extends React.SVGAttributes { + children?: never; + color?: string; +} +/** + * + * + * @usage + * + */ +export declare const DocumentMinusIcon: React.ForwardRefExoticComponent>; +export {}; diff --git a/dist/solid/index.d.ts b/dist/solid/index.d.ts index 6d15887..4ad72e9 100644 --- a/dist/solid/index.d.ts +++ b/dist/solid/index.d.ts @@ -1 +1,2 @@ +export { DocumentMinusIcon } from './DocumentMinusIcon'; export { DocumentPlusIcon } from './DocumentPlusIcon'; diff --git a/dist/solid/index.js b/dist/solid/index.js index 0392e13..6653fd3 100644 --- a/dist/solid/index.js +++ b/dist/solid/index.js @@ -1 +1 @@ -import*as e from"react";const a=e.forwardRef((({color:a="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"fill-rule":"evenodd",d:"M5.625 1.5H9a3.75 3.75 0 0 1 3.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16.5a3.75 3.75 0 0 1 3.75 3.75v7.875c0 1.035-.84 1.875-1.875 1.875H5.625a1.875 1.875 0 0 1-1.875-1.875V3.375c0-1.036.84-1.875 1.875-1.875ZM12.75 12a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V18a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25V12Z","clip-rule":"evenodd"}),e.createElement("path",{d:"M14.25 5.25a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963A5.23 5.23 0 0 0 16.5 7.5h-1.875a.375.375 0 0 1-.375-.375V5.25Z"}))));a.displayName="DocumentPlusIcon";export{a as DocumentPlusIcon}; +import*as e from"react";const a=e.forwardRef((({color:a="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"fill-rule":"evenodd",d:"M5.625 1.5H9a3.75 3.75 0 0 1 3.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16.5a3.75 3.75 0 0 1 3.75 3.75v7.875c0 1.035-.84 1.875-1.875 1.875H5.625a1.875 1.875 0 0 1-1.875-1.875V3.375c0-1.036.84-1.875 1.875-1.875ZM9.75 14.25a.75.75 0 0 0 0 1.5H15a.75.75 0 0 0 0-1.5H9.75Z","clip-rule":"evenodd"}),e.createElement("path",{d:"M14.25 5.25a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963A5.23 5.23 0 0 0 16.5 7.5h-1.875a.375.375 0 0 1-.375-.375V5.25Z"}))));a.displayName="DocumentMinusIcon";const r=e.forwardRef((({color:a="currentColor",...r},t)=>e.createElement("svg",{...r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},e.createElement("path",{"fill-rule":"evenodd",d:"M5.625 1.5H9a3.75 3.75 0 0 1 3.75 3.75v1.875c0 1.036.84 1.875 1.875 1.875H16.5a3.75 3.75 0 0 1 3.75 3.75v7.875c0 1.035-.84 1.875-1.875 1.875H5.625a1.875 1.875 0 0 1-1.875-1.875V3.375c0-1.036.84-1.875 1.875-1.875ZM12.75 12a.75.75 0 0 0-1.5 0v2.25H9a.75.75 0 0 0 0 1.5h2.25V18a.75.75 0 0 0 1.5 0v-2.25H15a.75.75 0 0 0 0-1.5h-2.25V12Z","clip-rule":"evenodd"}),e.createElement("path",{d:"M14.25 5.25a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963A5.23 5.23 0 0 0 16.5 7.5h-1.875a.375.375 0 0 1-.375-.375V5.25Z"}))));r.displayName="DocumentPlusIcon";export{a as DocumentMinusIcon,r as DocumentPlusIcon}; diff --git a/package.json b/package.json index 15c8766..aad53c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "via-icons", - "version": "1.0.3", + "version": "1.0.4", "description": "", "type": "module", "sideEffects": false, diff --git a/scripts/generateIcons.js b/scripts/generateIcons.js index b9d03d4..dedc137 100644 --- a/scripts/generateIcons.js +++ b/scripts/generateIcons.js @@ -19,7 +19,12 @@ const svgoConfig = { const iconMetadataPath = path.resolve(__dirname, "./iconMetadata.json"); const iconMetadata = JSON.parse(fs.readFileSync(iconMetadataPath, "utf-8")); -const generateIconComponent = (name, svgContent, description, usage) => ` +const generateIconComponent = ( + name, + svgContent, + description = "", + usage = "" +) => ` import * as React from 'react'; interface IconProps extends React.SVGAttributes { @@ -74,16 +79,17 @@ const processIcons = async (iconType) => { .replace(/(^\w|-\w)/g, clearAndUpper); const metadata = iconMetadata[componentName]; if (!metadata) { - console.error(`Metadata for ${componentName} not found`); - continue; + console.warn( + `Metadata for ${componentName} not found, generating without metadata.` + ); } components.push(componentName); const componentContent = generateIconComponent( componentName, data, - metadata.description, - metadata.usage + metadata ? metadata.description : "", + metadata ? metadata.usage : "" ); const componentPath = path.resolve( diff --git a/src/outline/DocumentMinusIcon.tsx b/src/outline/DocumentMinusIcon.tsx new file mode 100644 index 0000000..4c40912 --- /dev/null +++ b/src/outline/DocumentMinusIcon.tsx @@ -0,0 +1,23 @@ + +import * as React from 'react'; + +interface IconProps extends React.SVGAttributes { + children?: never; + color?: string; +} + +/** + * + * + * @usage + * + */ +export const DocumentMinusIcon = React.forwardRef( + ({ color = 'currentColor', ...props }, forwardedRef) => { + return ( + + ); + } +); + +DocumentMinusIcon.displayName = 'DocumentMinusIcon'; diff --git a/src/outline/index.ts b/src/outline/index.ts index 28f8da5..8e334da 100644 --- a/src/outline/index.ts +++ b/src/outline/index.ts @@ -1 +1,2 @@ +export { DocumentMinusIcon } from './DocumentMinusIcon'; export { DocumentPlusIcon } from './DocumentPlusIcon'; \ No newline at end of file diff --git a/src/solid/DocumentMinusIcon.tsx b/src/solid/DocumentMinusIcon.tsx new file mode 100644 index 0000000..e143edf --- /dev/null +++ b/src/solid/DocumentMinusIcon.tsx @@ -0,0 +1,23 @@ + +import * as React from 'react'; + +interface IconProps extends React.SVGAttributes { + children?: never; + color?: string; +} + +/** + * + * + * @usage + * + */ +export const DocumentMinusIcon = React.forwardRef( + ({ color = 'currentColor', ...props }, forwardedRef) => { + return ( + + ); + } +); + +DocumentMinusIcon.displayName = 'DocumentMinusIcon'; diff --git a/src/solid/index.ts b/src/solid/index.ts index 28f8da5..8e334da 100644 --- a/src/solid/index.ts +++ b/src/solid/index.ts @@ -1 +1,2 @@ +export { DocumentMinusIcon } from './DocumentMinusIcon'; export { DocumentPlusIcon } from './DocumentPlusIcon'; \ No newline at end of file