v1.0.4
This commit is contained in:
parent
c7a46918d9
commit
b8ac86403d
13
dist/outline/DocumentMinusIcon.d.ts
vendored
Normal file
13
dist/outline/DocumentMinusIcon.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import * as React from 'react';
|
||||
interface IconProps extends React.SVGAttributes<SVGElement> {
|
||||
children?: never;
|
||||
color?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
*/
|
||||
export declare const DocumentMinusIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
||||
export {};
|
1
dist/outline/index.d.ts
vendored
1
dist/outline/index.d.ts
vendored
@ -1 +1,2 @@
|
||||
export { DocumentMinusIcon } from './DocumentMinusIcon';
|
||||
export { DocumentPlusIcon } from './DocumentPlusIcon';
|
||||
|
2
dist/outline/index.js
vendored
2
dist/outline/index.js
vendored
@ -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};
|
||||
|
13
dist/solid/DocumentMinusIcon.d.ts
vendored
Normal file
13
dist/solid/DocumentMinusIcon.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import * as React from 'react';
|
||||
interface IconProps extends React.SVGAttributes<SVGElement> {
|
||||
children?: never;
|
||||
color?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
*/
|
||||
export declare const DocumentMinusIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
||||
export {};
|
1
dist/solid/index.d.ts
vendored
1
dist/solid/index.d.ts
vendored
@ -1 +1,2 @@
|
||||
export { DocumentMinusIcon } from './DocumentMinusIcon';
|
||||
export { DocumentPlusIcon } from './DocumentPlusIcon';
|
||||
|
2
dist/solid/index.js
vendored
2
dist/solid/index.js
vendored
@ -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};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "via-icons",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
|
@ -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<SVGElement> {
|
||||
@ -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(
|
||||
|
23
src/outline/DocumentMinusIcon.tsx
Normal file
23
src/outline/DocumentMinusIcon.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
interface IconProps extends React.SVGAttributes<SVGElement> {
|
||||
children?: never;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
*/
|
||||
export const DocumentMinusIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
||||
({ color = 'currentColor', ...props }, forwardedRef) => {
|
||||
return (
|
||||
<svg {...props} ref={forwardedRef} 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"><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"/></svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
DocumentMinusIcon.displayName = 'DocumentMinusIcon';
|
@ -1 +1,2 @@
|
||||
export { DocumentMinusIcon } from './DocumentMinusIcon';
|
||||
export { DocumentPlusIcon } from './DocumentPlusIcon';
|
23
src/solid/DocumentMinusIcon.tsx
Normal file
23
src/solid/DocumentMinusIcon.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
interface IconProps extends React.SVGAttributes<SVGElement> {
|
||||
children?: never;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
*/
|
||||
export const DocumentMinusIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
||||
({ color = 'currentColor', ...props }, forwardedRef) => {
|
||||
return (
|
||||
<svg {...props} ref={forwardedRef} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon"><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"/><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"/></svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
DocumentMinusIcon.displayName = 'DocumentMinusIcon';
|
@ -1 +1,2 @@
|
||||
export { DocumentMinusIcon } from './DocumentMinusIcon';
|
||||
export { DocumentPlusIcon } from './DocumentPlusIcon';
|
Loading…
Reference in New Issue
Block a user