UNPKG

react-fa-picker

Version:

A reusable React Icon Picker component, bundled with its own Tailwind CSS build.

63 lines 1.74 kB
import { z } from 'zod'; export declare const IconSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; icon: z.ZodAny; unicode: z.ZodString; class: z.ZodString; category: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; name: string; unicode: string; class: string; icon?: any; category?: string | undefined; }, { id: string; name: string; unicode: string; class: string; icon?: any; category?: string | undefined; }>; export type IconType = z.infer<typeof IconSchema>; export declare const IconCategorySchema: z.ZodObject<{ id: z.ZodNullable<z.ZodString>; name: z.ZodString; icon: z.ZodAny; }, "strip", z.ZodTypeAny, { id: string | null; name: string; icon?: any; }, { id: string | null; name: string; icon?: any; }>; export type IconCategoryType = z.infer<typeof IconCategorySchema>; export declare const IconStateSchema: z.ZodObject<{ size: z.ZodDefault<z.ZodNumber>; color: z.ZodDefault<z.ZodString>; searchQuery: z.ZodDefault<z.ZodString>; selectedIcon: z.ZodDefault<z.ZodNullable<z.ZodString>>; activeCategory: z.ZodDefault<z.ZodNullable<z.ZodString>>; }, "strip", z.ZodTypeAny, { color: string; size: number; searchQuery: string; selectedIcon: string | null; activeCategory: string | null; }, { color?: string | undefined; size?: number | undefined; searchQuery?: string | undefined; selectedIcon?: string | null | undefined; activeCategory?: string | null | undefined; }>; export type IconStateType = z.infer<typeof IconStateSchema>; export interface IconCategory { name: string; icons: IconType[]; } //# sourceMappingURL=types.d.ts.map