#!/usr/bin/env node
import { buildIcons } from '../../.build/build-icons.mjs'
const componentTemplate = ({
name,
children,
stringify
}) => {
return `\
`;
};
const indexItemTemplate = ({
name,
namePascal
}) => `export { default as ${namePascal} } from './icons/${namePascal}.svelte';`
const typeDefinitionsTemplate = () => `///
///
import { SvelteComponentTyped } from "svelte";
interface IconProps extends Partial> {
color?: string
size?: number,
stroke?: number,
class?: string
}
interface IconEvents {
[evt: string]: CustomEvent;
}
export type Icon = SvelteComponentTyped
// Generated icons`
const indexTypeTemplate = ({
namePascal
}) => `export declare class ${namePascal} extends SvelteComponentTyped {}`
buildIcons({
name: 'icons-svelte',
componentTemplate,
indexItemTemplate,
typeDefinitionsTemplate,
indexTypeTemplate,
extension: 'svelte',
pretty: false,
key: false
})