) otherwise
*/
placeholder?: string;
/**
* Searchable dropdown
*/
search?: boolean;
/**
* Search glyph width
*/
searchGlyphWidth?: number;
/**
* Ignore case when performing search
*/
searchIgnoreCase?: boolean;
/**
* Search box position
*/
searchPosition?: "dropdown" | "menu";
/**
* Search header, valid only for searchPosition="menu"
*/
searchHeader?: string;
/**
* Specify message which will be displayed when search has no results
*/
searchNoResultsMessage?: string;
/**
* Specify message which will be displayed when search has no results and allowAdditions enabled
*/
allowAdditionsMessage?: string;
/**
* Search string
*/
searchString?: string;
/**
* Selected value
*/
selected?: Array
;
/**
* Behave dropdown as HTML select
* @default true
*/
selection?: boolean;
/**
* Allow multiple selection
*/
multiple?: boolean;
/**
* Allow to add custom options
*/
allowAdditions?: boolean,
/**
* Callback will be called when current selected value was changed.
* Will pass array of new selected values as first param and total options count as second
*/
onSelectChange?: (newValue: Array, totalOptionsCount: number) => void;
/**
* Callback will be called when selection dropdown wants to be closed. For now only for outside of dropdown clicks
*/
onRequestClose?: () => void;
/**
* Callback will be called when search string is being changed. You probably just need to pass it back to component
*/
onSearchStringChange?: (newSearch: string) => void;
}
export class Select extends React.Component {
}
//
export interface CheckboxProps extends BaseProps {
/**
* Apply additional class name to to the label
*/
labelClassName?: string;
/**
* State checked
*/
checked?: boolean;
/**
* A fitted checkbox does not leave padding for a label
*/
fitted?: boolean;
/**
* Does not allow user interaction
*/
disabled?: boolean;
/**
* Attr name
*/
name?: string;
/**
* Callback handler to click checkbox
*/
onClick?: React.MouseEventHandler;
/**
* It does disabled, but does not allow user interaction
*/
readOnly?: boolean;
/**
* Checkbox - appearance
*/
type?: "default" | "radio" | "toggle" | "slider";
}
export class Checkbox extends React.Component {
}
//
export interface CheckboxFieldsProps extends BaseProps {
disabled?: boolean;
name: string;
radio?: boolean;
readOnly?: boolean;
type: "grouped" | "inline"
}
export class CheckboxFields extends React.Component {
}
//
export interface DimmerProps extends BaseProps, AnimationProps {
/**
* Hide/Display dimmer
*/
active?: boolean;
/**
* Inverted dimmer
*/
inverted?: boolean;
/**
* Page dimmer. Doesn't require dimmable section
*/
page?: boolean;
/**
* Disables auto-wrapping child contents into
*/
noWrapChildren?: boolean;
}
export class Dimmer extends React.Component {
}
//
export interface DimmableProps extends BaseProps {
blurring?: boolean;
dimmed?: boolean;
}
export class Dimmable extends React.Component {
}
//
export interface PopupProps extends BaseProps, AnimationProps {
/**
* Basic popup variation
*/
basic?: boolean;
/**
* True to display the popup. If false will be hidden
*/
active?: boolean;
/**
* Auto position popup when needed
*/
autoPosition?: boolean;
/**
* Fluid popup
*/
fluid?: boolean;
/**
* No maximum width and continue to flow to fit its content
*/
flowing?: boolean;
/**
* Offset for distance of popup from element
*/
distanceAway?: number;
/**
* Use this position when element fails to fit on screen in all tried positions
* If omitted, the last tried position will be used instead
*/
lastResortPosition?: string;
/**
* Inverted popup
*/
inverted?: boolean;
/**
* Offset in pixels from calculated position
*/
offset?: number;
/**
* Callback when popup wants to be closed (i.e. when offscreen or clicked outside)
*/
onRequestClose?: () => void;
/**
* When auto-positioning popup use opposite direction or adjacent as next position
*/
prefer?: "adjacent|opposite";
/**
* If true will prevent clicking on the other elements
*/
preventElementClicks?: boolean;
/**
* Hide popup when target element scrolls off the screen
*/
requestCloseWhenOffScreen?: boolean;
/**
* Target element to apply popup
*/
target: any;
/**
* Popup position
*/
position?: "top left" | "top center" | "top right" | "right center" | "bottom right" | "bottom center" | "bottom left" | "left center";
/**
* Popup size
*/
size?: "mini" | "tiny" | "small" | "large" | "huge";
/**
* Make content of popup wide
*/
wide?: boolean | string;
/**
* Overlay zIndex
* @default 1000
*/
zIndex?: number;
}
export class Popup extends React.Component {
}
//
export interface AccordionTitleProps extends BaseProps {
/**
* True for active (visible) accordion section. This is being set by Accordion itself
*/
active?: boolean;
/**
* Icon name
*/
icon?: string;
/**
* Allows to override icon component
*/
iconComponent?: any;
/**
* Accordion index. Used by Accordion component to control which content should be hidden/displayed
*/
index: number | string;
}
export class AccordionTitle extends React.Component { }
//
export interface AccordionBodyProps extends BaseProps {
/**
* True for active (visible) accordion section. This is being set by Accordion itself
*/
active?: boolean;
}
export class AccordionBody extends React.Component { }
//
export interface AccordionProps extends BaseProps {
/**
* Current visible content. Strings and numbers are accepted
*/
activeIndexes?: number[] | string[];
/**
* Fluid accordion
*/
fluid?: boolean;
/**
* An accordion can be formatted to appear on dark backgrounds
*/
inverted?: boolean;
/**
* A styled accordion adds basic formatting
*/
styled?: boolean;
/**
* Callback when accordion wants to be changed
*/
onAccordionChange: (index: number | string) => void;
}
export class Accordion extends React.Component { }
export interface ModalProps extends BaseProps, AnimationProps {
/**
* Should be modal visible
*/
active?: boolean;
/**
* A modal can reduce its complexity
*/
basic?: boolean;
/**
* A modal can use the entire size of the screen (width)
*/
fullscreen?: boolean;
/**
* Scrolling content. This flag will be set automatically if modal's content is too big
*/
scrolling?: boolean;
/**
* A modal can vary in size
*/
size?: string;
/**
* Dimmer variations
*/
dimmed?: "blurring" | "inverted" | "blurring inverted";
/**
* Callback from outside modal click
*/
onRequestClose?: () => void;
/**
* Callback for modal opening
*/
onModalOpened?: () => void;
/**
* Callback for modal closing
*/
onModalClosed?: () => void;
/**
* Overlay zIndex
* @default 1000
*/
zIndex?: number;
}
export class Modal extends React.Component { }
//
export interface TabMenuProps extends MenuProps {}
export class TabMenu extends React.Component {}
//
export interface TabProps extends SegmentProps {
/**
* True if tab is active. Being set automatically
*/
active?: boolean;
/**
* True if display loading spinner
*/
loading?: boolean;
/**
* Tab index value. Should be equal to one of MenuItem value
*/
value: string | number;
}
export class Tab extends React.Component {}
//
export interface TabsProps extends BaseProps {
/**
* Active tab value
*/
activeTab: string | number;
/**
* Current tab want's to be changed
* @param tabValue
*/
onTabChange?: (tabValue: string | number) => void;
}
export class Tabs extends React.Component {}
//
export interface RatingProps extends BaseProps {
/**
* Rating type
*/
type?: "default" | "star" | "heart";
/**
* Rating size
*/
size?: SizeType;
/**
* Rating max value
*/
max?: number;
/**
* Rating value
*/
value?: number;
/*
* Rating change value callback
*/
onChange: (val: number) => void;
}
export class Rating extends React.Component {}