@sjsf-lab/shadcn-extras-theme
Version:
The shadcn-svelte-extras based theme for svelte-jsonschema-form
26 lines (25 loc) • 1.1 kB
TypeScript
import type { Component } from 'svelte';
import type { WidgetCommonProps } from '@sjsf/form/fields/widgets';
import type { PasswordInputProps, PasswordRootProps, PasswordStrengthProps, PasswordToggleVisibilityProps } from '../../components/ui/password/types.js';
declare module '@sjsf/form' {
interface ComponentProps {
shadcnExtrasPasswordWidget: WidgetCommonProps<string>;
}
interface ComponentBindings {
shadcnExtrasPasswordWidget: 'value';
}
interface UiOptions {
shadcnExtrasPassword?: PasswordInputProps;
}
}
declare module '@sjsf/shadcn4-theme' {
interface ThemeComponents {
PasswordRoot: Component<PasswordRootProps, {}, 'ref' | 'hidden'>;
PasswordInput: Component<PasswordInputProps, {}, 'ref' | 'value'>;
PasswordToggleVisibility: Component<PasswordToggleVisibilityProps, {}, 'ref'>;
PasswordStrength: Component<PasswordStrengthProps, {}, 'strength'>;
}
}
declare const Password: Component<WidgetCommonProps<string>, {}, "value">;
type Password = ReturnType<typeof Password>;
export default Password;