Sha256: ac8716392553e0b9a9eabcbcb4cbf3ab835b40dda3ad1373b30bdcbcb1f605f0

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

/**
 * Represent a "No-Operation" function that can be used as a sensible
 * default to event handlers in the absence of a value.
 *
 * @returns {() => {}} the noop function.
 */
export declare const noop: () => void;
/**
 * Maps a given aria object into HTML valid aria attribtues and their values.
 *
 * @param {Object} aria the object containing the aria prop values.
 * @returns {Object} an object holding the HTML valid aria props and their values.
 */
export declare const buildAriaProps: (aria: {
    [key: string]: string;
}) => {
    [key: string]: string;
};
/**
 * Maps a given data object into HTML valid data attribtues and their values.
 *
 * @param {Object} data the object containing the data prop values.
 * @returns {Object} an object holding the HTML valid data props and their values.
 */
export declare const buildDataProps: (data: {
    [key: string]: any;
}) => {
    [key: string]: any;
};
/**
 * Builds a Playbook valid root className off of the incoming css rules.
 *
 * @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
 * @returns {String} the derived root className value.
 */
export declare const buildCss: (...rules: (string | {
    [x: string]: string | boolean;
})[]) => string;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/utilities/props.d.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/utilities/props.d.ts