@techgc/techgc-design-system
v3.2.6
Published
Design system for TechGC apps
Downloads
4
Readme
The Design System for TechGC Apps.
NPM Package Update
- Commit changes
- yarn build
- npm version patch|minor|major -m "Upgrade to %s - ... changes summary"
- npm login (this will ask your current npm credentials)
- 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 _