Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / src / playground / Button / deps.d.ts
Size: Mime:
import React from 'react';
import { BaseButtonProps as Props, ButtonState as State, ButtonRole, BaseButtonStandardProps, AccessibleButtonAttributes } from './typings';
export declare function toIconOrderClassName(props: Props): any;
export declare function makeButtonState(props: Props): State;
/**
 * ========= group 1 =========
 */
export declare function isAnimated(props: Props): boolean;
export declare function isDisabled(props: Props): boolean;
export declare function isSelected(props: Props, state?: State): boolean;
export declare function isFocused(props: Props, state?: State): boolean;
export declare function isResting(props: Props, state?: State): boolean;
export declare function isPushed(props: Props, state?: State): boolean;
export declare function isCenter(props: Props): boolean;
export declare function isLink(props: Props): boolean;
export declare function isGhost(props: Props): boolean;
export declare function isIconLeft(props: Props): boolean;
export declare function isIconRight(props: Props): boolean;
/**
 * @alias isSecondary
 * ^ (on a secondary button color......)
 *
 * @description makes it gray but not disabled, or less attention
 */
export declare function isLowPriority(props: Props): boolean;
export declare function hasSnackbar(props: Props): boolean;
export declare function toRemappedProps(props: Props, state?: State): BaseButtonStandardProps;
/**
 * @todo right, left... ?
 */
export declare function toButtonClassName(props: Props): void;
/**
 * ========= group 2 =========
 */
export declare function toRole(props: Props): ButtonRole;
/**
 * @todo toIdentifier(this, 'button')
 */
export declare function toIdentifier(props: Props): string;
export declare function toChildren(props: Props): string;
export declare function toLabel(props: Props): string | any;
export declare function toTabIndex(props: Props): string | number;
export declare function toStyles(props: Props): any;
export declare function toAttributes(props: Props, state: State): {
    identifier: string;
    children: string;
    label: any;
    hasSnackbar: boolean;
    tabIndex: React.ReactText;
    role: string;
    isAnimated: boolean;
    isDisabled: boolean;
    isSelected: boolean;
    isFocused: boolean;
    isResting: boolean;
    isPushed: boolean;
    isLowPriority: boolean;
    isLink: boolean;
    isCenter: boolean;
    isIconLeft: boolean;
    isIconRight: boolean;
    eventHandlers: import("./typings").ButtonEventHandlers;
    class?: string | undefined;
    className?: string | undefined;
    classList?: string | undefined;
    defaultClassName?: string | undefined;
    styled?: any;
    value?: any;
    text?: any;
    'aria-label'?: string | undefined;
    'aria-controls'?: string | undefined;
    handleClick?: any;
    onClick?: any;
    onSubmit?: any;
    isSquare?: boolean | undefined;
    to?: string | undefined;
    timeout?: number | undefined;
    shouldAnimate?: boolean | undefined;
    hasAnimation?: boolean | undefined;
    iconOrder?: any;
    icon?: any;
    id?: string | undefined;
    states?: string | undefined;
    center?: string | undefined;
    isGreen?: boolean | undefined;
    green?: boolean | undefined;
    isBlue?: boolean | undefined;
    blue?: boolean | undefined;
    isGhost?: boolean | undefined;
    ghost?: boolean | undefined;
    isPresentational?: boolean | undefined;
    snackbarText?: string | undefined;
    snackbar?: boolean | undefined;
    onSnackbarClose?: Function | undefined;
    onSnacbkarUndo?: Function | undefined;
    snackbarTimeout?: number | undefined;
    renderProp?: import("./typings").ButtonRenderProp | undefined;
    renderSnackbar?: import("./typings").ButtonRenderProp | undefined;
    renderIconAndText?: import("./typings").ButtonRenderProp | undefined;
    renderButtonOrLink?: import("./typings").ButtonRenderProp | undefined;
    dataQa?: undefined;
    qa?: string | undefined;
};
/**
 * @todo tabindex for -1 inside of expandable divs
 *
 * @todo aria-flowto for compare & modal
 * https://www.w3.org/TR/wai-aria/states_and_properties#aria-flowto
 *
 * @todo aria-controls
 * https://www.w3.org/TR/wai-aria/states_and_properties#aria-controls
 *
 * @todo aria-busy
 * https://www.w3.org/TR/wai-aria/states_and_properties#aria-busy
 */
export declare function toAccessibleAttributes(props: Props, state: State): AccessibleButtonAttributes;