3.1.6 • Published 3 years ago

techgc-design-system-fork v3.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

The Design System for TechGC Apps.

Stroybook link

Import example:

import { 
  _,
  
  Decorators,
  
  Themes,
  
  Typography,
  
  InputWithHint,
  
  SearchableSelect,
  SearchableSelectWithChips,
} from 'techgc-design-system'

const { MavenBaseTheme } = Themes
const { marginDecorator } = Decorators

_ is our custom and extended version of underscore:

_.contains = includes
_.get = get
_.cloneDeep = cloneDeep
_.uniqBy = uniqBy
_.camelCase = camelCase

_.getForcedDefault = (object, path, defaultValue) => {
  let result = get(object, path)
  if (!result && defaultValue !== undefined) result = defaultValue

  return result
}

export default _