UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

23 lines (22 loc) 1.64 kB
import type { Generic } from 'adopted-style-sheets'; import type { MsgPropType, PropAccessKey, PropDisabled, PropHideLabel, PropHideMsg, PropHint, PropHorizontalIcons, PropId, PropLabelWithExpertSlot, PropMsg, PropMultiple, PropName, PropRequired, PropShortKey, PropSyncValueBySelector, PropTouched, PropVariantClassName } from '../props'; import type { InputTypeOnDefault, KoliBriHIcons, Stringified } from '../types'; import type { InternalButtonProps } from './button'; type RequiredProps = PropLabelWithExpertSlot; type OptionalProps = { accept: string; msg: Stringified<MsgPropType>; on: InputTypeOnDefault; smartButton: Stringified<InternalButtonProps>; } & PropAccessKey & PropDisabled & PropHideMsg & PropHideLabel & PropHint & PropHorizontalIcons & PropMultiple & PropName & PropRequired & PropShortKey & PropSyncValueBySelector & PropTouched & PropVariantClassName; type RequiredStates = PropId & PropLabelWithExpertSlot & PropHideMsg; type OptionalStates = { accept: string; on: InputTypeOnDefault; smartButton: InternalButtonProps; } & PropAccessKey & PropDisabled & PropHideLabel & PropHint & KoliBriHIcons & PropMsg & PropMultiple & PropName & PropRequired & PropShortKey & PropTouched & PropVariantClassName; export type InputFileProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type InputFileStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type InputFileWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>; export type InputFileAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};