@techgc/techgc-design-system

3.2.6 • Public • Published

The Design System for TechGC Apps.

Stroybook link

NPM Package Update

  1. Commit changes
  2. yarn build
  3. npm version patch|minor|major -m "Upgrade to %s - ... changes summary"
  4. npm login (this will ask your current npm credentials)
  5. npm publish

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 _

Readme

Keywords

none

Package Sidebar

Install

npm i @techgc/techgc-design-system

Weekly Downloads

1

Version

3.2.6

License

MIT

Unpacked Size

135 kB

Total Files

24

Last publish

Collaborators

  • evgenyt
  • khard
  • ageoshka
  • mihon