diff --git a/packages/icons-preact/src/tabler-icons-preact.ts b/packages/icons-preact/src/tabler-icons-preact.ts index f9bebeabb..d74d03212 100644 --- a/packages/icons-preact/src/tabler-icons-preact.ts +++ b/packages/icons-preact/src/tabler-icons-preact.ts @@ -5,4 +5,4 @@ export * from './aliases'; export { default as createReactComponent } from './createPreactComponent'; -export type { IconNode, IconProps, Icon } from './types'; +export type { Icon, IconNode, IconProps } from './types'; diff --git a/packages/icons-react-native/src/tabler-icons-react-native.ts b/packages/icons-react-native/src/tabler-icons-react-native.ts index b752717ed..ff5b6c99a 100644 --- a/packages/icons-react-native/src/tabler-icons-react-native.ts +++ b/packages/icons-react-native/src/tabler-icons-react-native.ts @@ -4,6 +4,4 @@ export * as iconsList from './icons-list'; export * from './aliases'; export { default as createReactComponent } from './createReactNativeComponent'; -export type { IconNode, IconProps, Icon } from './types'; - - +export type { Icon, IconNode, IconProps } from './types'; diff --git a/packages/icons-react/src/tabler-icons-react.ts b/packages/icons-react/src/tabler-icons-react.ts index 3b81af393..36d592bc2 100644 --- a/packages/icons-react/src/tabler-icons-react.ts +++ b/packages/icons-react/src/tabler-icons-react.ts @@ -4,4 +4,4 @@ export * as iconsList from './icons-list'; export * from './aliases'; export { default as createReactComponent } from './createReactComponent'; -export type { IconNode, IconProps } from './types'; +export type { Icon, IconNode, IconProps } from './types'; diff --git a/packages/icons-solidjs/src/createSolidComponent.ts b/packages/icons-solidjs/src/createSolidComponent.ts index 08bd77ce8..bd7e91468 100644 --- a/packages/icons-solidjs/src/createSolidComponent.ts +++ b/packages/icons-solidjs/src/createSolidComponent.ts @@ -1,9 +1,14 @@ -import defaultAttributes from './defaultAttributes' -import { splitProps } from "solid-js" -import h from "solid-js/h"; +import defaultAttributes from './defaultAttributes'; +import { splitProps } from 'solid-js'; +import h from 'solid-js/h'; import { IconNode, IconProps } from './types'; -const createSolidComponent = (type: 'outline' | 'filled',iconName: string, iconNamePascal: string, iconNode: IconNode) => { +const createSolidComponent = ( + type: 'outline' | 'filled', + iconName: string, + iconNamePascal: string, + iconNode: IconNode, +) => { const Component = (props: IconProps) => { const [localProps, rest] = splitProps(props, ['color', 'size', 'stroke', 'children', 'class']), attributes = defaultAttributes[type]; diff --git a/packages/icons-solidjs/src/tabler-icons-solidjs.ts b/packages/icons-solidjs/src/tabler-icons-solidjs.ts index e32913f95..fcdb36def 100644 --- a/packages/icons-solidjs/src/tabler-icons-solidjs.ts +++ b/packages/icons-solidjs/src/tabler-icons-solidjs.ts @@ -2,5 +2,6 @@ export * from './icons/index'; export * as icons from './icons/index'; export * as iconsList from './icons-list'; export * from './aliases'; - export { default as createSolidComponent } from './createSolidComponent'; + +export type { IconNode, IconProps } from './types'; diff --git a/packages/icons-vue/src/tabler-icons-vue.ts b/packages/icons-vue/src/tabler-icons-vue.ts index c6f0ca93d..2e7bfdf86 100644 --- a/packages/icons-vue/src/tabler-icons-vue.ts +++ b/packages/icons-vue/src/tabler-icons-vue.ts @@ -4,3 +4,5 @@ export * as iconsList from './icons-list'; export * from './aliases'; export { default as createVueComponent } from './createVueComponent'; + +export type { Icon, IconNode, IconProps } from './types';