UNPKG

@sjsf-lab/shadcn-extras-theme

Version:

The shadcn-svelte-extras based theme for svelte-jsonschema-form

25 lines (24 loc) 908 B
import type { Component } from 'svelte'; import type { WidgetCommonProps } from '@sjsf/form/fields/widgets'; import type { PhoneInputProps } from '../../components/ui/phone-input/types.js'; declare module '@sjsf/form' { interface ComponentProps { shadcnExtrasPhoneInputWidget: WidgetCommonProps<string>; } interface ComponentBindings { shadcnExtrasPhoneInputWidget: 'value'; } interface UiOptions { shadcnExtrasPhoneInput?: PhoneInputProps; } } declare module '@sjsf/shadcn4-theme' { interface ThemeComponents { PhoneInput: Component<PhoneInputProps, { focus: () => void; }, 'country' | 'placeholder' | 'readonly' | 'disabled' | 'value' | 'valid' | 'detailedValue'>; } } declare const PhoneInput: Component<WidgetCommonProps<string>, {}, "value">; type PhoneInput = ReturnType<typeof PhoneInput>; export default PhoneInput;