How to use the veui/managers/config.defaults function in veui

To help you get started, we’ve selected a few veui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ecomfe / veui / packages / veui-theme-one / components / Switch.js View on Github external
import config from 'veui/managers/config'

config.defaults(
  {
    ui: {
      size: {
        values: ['large', 'small']
      }
    }
  },
  'switch'
)
github ecomfe / veui / packages / veui-theme-one / components / Dropdown.js View on Github external
import 'veui-theme-one-icons/chevron-down'
import config from 'veui/managers/config'

config.defaults(
  {
    icons: {
      expand: 'chevron-down',
      collapse: 'chevron-down'
    },
    ui: {
      size: {
        values: ['large', 'small', 'tiny', 'micro'],
        inherit: true
      },
      style: {
        values: ['primary'],
        inherit: true
      },
      role: {
        values: ['link'],
github ecomfe / veui / packages / veui-theme-one / components / RadioButtonGroup.js View on Github external
import config from 'veui/managers/config'

config.defaults(
  {
    ui: {
      style: {
        values: ['alt'],
        inherit: true
      },
      size: {
        values: ['large', 'small', 'tiny', 'micro'],
        inherit: true
      }
    }
  },
  'radiobuttongroup'
)
github ecomfe / veui / packages / veui-theme-dux / components / Pagination.js View on Github external
import '../icons/angle-left'
import '../icons/angle-right'
import config from 'veui/managers/config'

config.defaults({
  'pagination.icons': {
    prev: 'angle-left',
    next: 'angle-right'
  }
})
github ecomfe / veui / packages / veui-theme-one / components / Uploader.js View on Github external
import 'veui-theme-one-icons/upload'
import 'veui-theme-one-icons/times'
import 'veui-theme-one-icons/check'
import 'veui-theme-one-icons/paperclip'
import 'veui-theme-one-icons/sync-alt'
import 'veui-theme-one-icons/plus'
import 'veui-theme-one-icons/exclamation-circle'
import config from 'veui/managers/config'

config.defaults(
  {
    icons: {
      upload: 'upload',
      clear: 'times',
      success: 'check',
      redo: 'sync-alt',
      file: 'paperclip',
      add: 'plus',
      alert: 'exclamation-circle'
    },
    ui: {
      direction: {
        values: ['horizontal']
      }
    },
    parts: {
github ecomfe / veui / packages / veui-theme-dls / components / NumberInput.js View on Github external
import 'veui-theme-dls-icons/plus'
import 'veui-theme-dls-icons/minus'
import config from 'veui/managers/config'

const ICON_MAP = {
  normal: {
    increase: 'chevron-up',
    decrease: 'chevron-down'
  },
  strong: {
    increase: 'plus',
    decrease: 'minus'
  }
}

config.defaults(
  {
    ui: {
      size: {
        values: ['xs', 's', 'm'],
        default: 'm',
        inherit: true
      },
      style: {
        values: ['normal', 'strong'],
        default: 'normal'
      }
    },
    parts: {
      spinner: ''
    },
    icons: {
github ecomfe / veui / packages / veui-theme-one / components / OptionGroup.js View on Github external
import 'veui-theme-one-icons/chevron-right'
import config from 'veui/managers/config'

config.defaults(
  {
    icons: {
      expandable: 'chevron-right'
    }
  },
  'optiongroup'
)
github ecomfe / veui / packages / veui-theme-one / components / Calendar.js View on Github external
import 'veui-theme-one-icons/chevron-left'
import 'veui-theme-one-icons/chevron-down'
import 'veui-theme-one-icons/chevron-right'
import config from 'veui/managers/config'

config.defaults(
  {
    icons: {
      prev: 'chevron-left',
      next: 'chevron-right',
      expand: 'chevron-down'
    }
  },
  'calendar'
)
github ecomfe / veui / packages / veui-theme-one / components / Table.js View on Github external
import 'veui-theme-one-icons/chevron-right'
import config from 'veui/managers/config'

config.defaults(
  {
    icons: {
      expand: 'chevron-right',
      collapse: 'chevron-right'
    },
    ui: {
      slim: {
        boolean: true
      },
      alt: {
        boolean: true
      },
      bordered: {
        boolean: true
      }
    }
github ecomfe / veui / packages / veui-theme-dls / components / RadioGroup.js View on Github external
import config from 'veui/managers/config'

config.defaults(
  {
    ui: {
      size: {
        values: ['s', 'm'],
        inherit: true,
        default: 'm'
      }
    }
  },
  'radiogroup'
)