@sikka/hawa
Version:
Modern UI Kit made with Tailwind
105 lines (99 loc) • 3.02 kB
TypeScript
import * as React from 'react';
import React__default, { FC } from 'react';
import { PopoverContentProps } from '@radix-ui/react-popover';
import { P as PositionType, O as OrientationType, D as DirectionType } from './commonTypes-C-g8nFFC.js';
type LabelProps = {
hint?: React.ReactNode;
hintSide?: PositionType;
htmlFor?: string;
required?: boolean;
};
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & LabelProps & React.RefAttributes<HTMLLabelElement>>;
type PhoneInputProps = {
preferredCountry?: {
label: string;
};
helperText?: any;
label?: string;
labelProps?: LabelProps;
placeholder?: string;
handleChange?: (value: string) => void;
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
countryCodes?: {
label: string;
}[];
};
declare const PhoneInput: FC<PhoneInputProps>;
type SelectOptionProps = {
value: any;
label: any;
};
type SelectTypes = {
label?: string;
hideHelperText?: boolean;
options: SelectOptionProps[];
labelKey?: string;
isCreatable?: boolean;
isClearable?: boolean;
isMulti?: boolean;
isSearchable?: boolean;
controlClassNames?: string;
containerClassNames?: string;
onChange: any;
helperText?: any;
onInputChange?: any;
native?: any;
width?: "full" | "small" | "fit";
value?: any;
children?: any;
getOptionLabel?: any;
disabled?: boolean;
defaultValue?: any;
handleCreateOption?: () => void;
placeholder?: string;
hideIndicator?: boolean;
phoneCode?: boolean;
isLoading?: any;
labelProps?: LabelProps;
texts?: {
noOptions?: string;
createLabel?: string;
};
};
declare const Select: FC<SelectTypes>;
type RadioOptionsTypes = {
value: any;
label: any;
disabled?: any;
sublabel?: any;
icon?: any;
tooltip?: string;
tooltipContentProps?: PopoverContentProps;
};
type RadioTypes = {
/** Required to enable selection and differentiate between different Radio instances. */
name: string;
disabled?: boolean;
orientation?: OrientationType;
design?: "default" | "tabs" | "cards" | "bordered";
width?: "default" | "full" | "none";
size?: "default" | "lg" | "sm" | "xs";
options: RadioOptionsTypes[];
onChange?: any;
defaultValue?: any;
value?: any;
direction?: DirectionType;
helperText?: any;
labelProps?: LabelProps;
label?: string;
tabsContainerClassName?: string;
forceHideHelperText?: boolean;
containerClassNames?: {
bordered?: string;
tabs?: string;
cards?: string;
default?: string;
};
};
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
export { type LabelProps as L, type PhoneInputProps as P, type RadioOptionsTypes as R, type SelectOptionProps as S, Radio as a, Label as b, Select as c, PhoneInput as d };