# All files / components PropTypes.jsx

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

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
    1x
    1x
    1x
    1x
    1x

    1x

    1x

    const Colors = ['light-blue', 'aqua', 'green', 'yellow', 'red', 'gray', 'navy', 'teal', 'purple', 'orange', 'maroon', 'black'];
    const Types = ['default', 'info', 'danger', 'warning', 'success', 'primary'];
    const Sizes = ['xs', 'sm', 'md', 'lg'];
    const FormTypes = ['warning', 'success', 'error'];
    const Themes = ['black-light', 'black', 'blue', 'blue-light', 'green', 'green-light',
      'purple', 'purple-light', 'red', 'red-light', 'yellow', 'yellow-light'];

    const localTypes = {
      default: {
        type: 'default',
        color: 'gray',
        colorCode: '#d2d6de',
      },
      primary: {
        type: 'primary',
        color: 'light-blue',
        colorCode: '#3c8dbc',
      },
      info: {
        type: 'info',
        color: 'aqua',
        colorCode: '#00c0ef',
      },
      success: {
        type: 'success',
        color: 'green',
        colorCode: '#00a65a',
      },
      warning: {
        type: 'warning',
        color: 'yellow',
        colorCode: '#f39c12',
      },
      danger: {
        type: 'danger',
        color: 'red',
        colorCode: '#f56954',
      },
    };
    const types = {
      byType: localTypes,
      byColor: {
        gray: localTypes.default,
        lightBlue: localTypes.primary,
        aqua: localTypes.info,
        green: localTypes.success,
        yellow: localTypes.warning,
        red: localTypes.danger,
      },
      byColorCode: {
        d2d6de: localTypes.default,
        '3c8dbc': localTypes.primary,
        '00c0ef': localTypes.info,
        '00a65a': localTypes.success,
        f39c12: localTypes.warning,
        f56954: localTypes.danger,
      },
    };

    export {
      Colors, Types, Sizes, FormTypes, Themes, types as TypeMappings,
    };