# All files / utils/styledHelpers/utils props.js

100% Statements 9/9
100% Branches 0/0
100% Functions 0/0
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151

    56x

    56x

    56x

    56x

    56x

    56x

    56x

    56x

    56x

     import PropTypes from 'prop-types';

    export const refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);

    export const typography = {
      propTypes: {
        bg: PropTypes.string,
        border: PropTypes.string,
        borderRadius: PropTypes.string,
        color: PropTypes.string,
        display: PropTypes.any,
        ellipsis: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
        fontFamily: PropTypes.string,
        fontSize: PropTypes.any,
        fontWeight: PropTypes.any,
        hoverColor: PropTypes.string,
        hoverStyle: PropTypes.any,
        italic: PropTypes.bool,
        kerning: PropTypes.any,
        letterSpacing: PropTypes.any,
        lg: PropTypes.bool,
        lineHeight: PropTypes.any,
        sm: PropTypes.bool,
        textAlign: PropTypes.string,
        textDecoration: PropTypes.string,
      },
    };

    export const spaceProps = {
      propTypes: {
        /** Margin space on all four sides */
        m: PropTypes.any,
        mb: PropTypes.any,
        ml: PropTypes.any,
        mr: PropTypes.any,
        mt: PropTypes.any,
        mx: PropTypes.any,
        my: PropTypes.any,
        p: PropTypes.any,
        pb: PropTypes.any,
        pl: PropTypes.any,
        pr: PropTypes.any,
        pt: PropTypes.any,
        px: PropTypes.any,
        py: PropTypes.any,
        width: PropTypes.any,
      },
    };

    export const layoutProps = {
      propTypes: {
        display: PropTypes.any,
        height: PropTypes.any,
        maxHeight: PropTypes.any,
        maxWidth: PropTypes.any,
        minHeight: PropTypes.any,
        minWidth: PropTypes.any,
        size: PropTypes.any,
        verticalAlign: PropTypes.any,
      },
    };

    export const flexboxProps = {
      propTypes: {
        alignContent: PropTypes.any,
        alignItems: PropTypes.any,
        alignSelf: PropTypes.any,
        flex: PropTypes.any,
        flexBasis: PropTypes.any,
        flexDirection: PropTypes.any,
        flexGrow: PropTypes.any,
        flexShrink: PropTypes.any,
        flexWrap: PropTypes.any,
        justifyContent: PropTypes.any,
        justifyItems: PropTypes.any,
        justifySelf: PropTypes.any,
        order: PropTypes.any,
      },
    };
    export const miscProps = {
      propTypes: {
        border: PropTypes.any,
        borderBottom: PropTypes.any,
        borderColor: PropTypes.any,
        borderLeft: PropTypes.any,
        borderRadius: PropTypes.any,
        borderRight: PropTypes.any,
        borderStyle: PropTypes.any,
        borderTop: PropTypes.any,
        opacity: PropTypes.any,
        overflow: PropTypes.any,
      },
    };
    export const positionProps = {
      propTypes: {
        bottom: PropTypes.any,
        left: PropTypes.any,
        position: PropTypes.any,
        right: PropTypes.any,
        top: PropTypes.any,
        zIndex: PropTypes.any,
      },
    };

    export const control = {
      propTypes: {
        activeColor: PropTypes.string,
        bg: PropTypes.string,
        borderColor: PropTypes.string,
        borderRadius: PropTypes.string,
        isFocused: PropTypes.bool,
        isRequired: PropTypes.bool,
        padding: PropTypes.string,
        placeholderColor: PropTypes.string,
        plainText: PropTypes.bool,
      },
    };

    export const plaintextPropsToTrim = [
      'assistiveText',
      'assistiveTextProps',
      'calendarOnly',
      'controlColorProps',
      'controlGroupProps',
      'controlHeight',
      'controlLabelProps',
      'controlId',
      'dayPickerProps',
      'disabled',
      'inputProps',
      'inputRef',
      'isClearable',
      'isCreatable',
      'isMulti',
      'isRequired',
      'menuAlignment',
      'menuDirection',
      'menuDirectionViewportBreakpoint',
      'menuElevation',
      'menuOverlayBottom',
      'menuOverlayLeft',
      'menuOverlayRight',
      'menuOverlayTop',
      'menuPlacement',
      'menuZIndex',
      'multiline',
      'styleOverrides',
      'validationError',
      'valueFormat',
    ];