0.1.92 • Published 4 years ago

eunoia v0.1.92

Weekly downloads
247
License
-
Repository
-
Last release
4 years ago

Eunoia - εὔνοιᾰ

Defined as the goodwill a speaker cultivates between themself and their audience, a condition of receptivity

logo

Status

Build Version Status

Versioning

Major.Minor.Update\ xx.xx.xxxx

Storybook Link

Storybook Storybook - Eunoia

NPM Link

NPM\ NPM eunoia

Setup

Install eunoia

npm i eunoia

It is recommended that this library be used alongside styled components and Material UI

Usage

// import
import { Button } from "eunoia"
/**
 * Every component is accessible directly via the
 * universal import "eunoia" designed to be a
 * single dependency import.
 *
 * Checkout the storybook
 * https://eunoia.netlify.app/
 * for detailed documentation
 *
 **/

// use!
render(){
  return <Button>Hello from εὔνοιᾰ!</Button>
}

Source: Typescript

API: Javascript/Typescript

Code Style: Prettier

Syntax: ES6^

What is available

Button

Storybook Link

const Default = () => <Button onClick={action('clicked')}>Default Button</Button>

Button props

  primary?: boolean
  transparent?: boolean
  blackFont?: boolean

Website Icons

Website Icons

import { RightArrow } from 'eunoia'

// use
const Right_Arrow = () => <RightArrow scalingFactor={2} color="#000000" />

List of Website Icons

  1. RightArrow
  2. LeftArrow
  3. DownArrow
  4. UpArrow
  5. Dribbble
  6. Github
  7. Medium
  8. Linkedin
  9. Home
  10. Menu

Icon Props

  color?: string
  offset?: string
  scalingFactor?: number
  name?: string
  font?: string

Design Icons

Design Icons

import { PhotoshopIcon } from 'eunoia'

// use
const Photoshop_Icon = () => <PhotoshopIcon name="photoshop" font="Roboto" color="#000000" scalingFactor={1} />

List of Design Icons

  1. Photoshop
  2. Illustrator
  3. Experience Designer
  4. Figma
  5. Sketch
  6. Invision
  7. After Effects
  8. Indesign
  9. Material Design
  10. Creative Cloud

Development Icons

Development Icons

import { ReactIcon } from 'eunoia'

// use
const React_Icon = () => <ReactIcon scalingFactor={1} name="React.js" font="Roboto" color="#000000" />

List of Dev Icons

  1. React
  2. Python
  3. Webpack
  4. Node.js
  5. Javascript
  6. PHP
  7. Git (Large)
  8. Jenkins
  9. Kubernetes
  10. Docker
  11. Sass
  12. CSS (3)
  13. HTML (5)
  14. Yarn
  15. NPM
  16. Ubuntu
  17. MySQL
  18. JQuery
  19. Firebase (Cloud)
  20. C++ (ISO)
  21. Typescript

Industry Icons

Industry Icons

import { JiraIcon } from 'eunoia'

// use
const Jira_Icon = () => <JiraIcon scalingFactor={1} name="Jira" font="Roboto" color="#000000" />

List of Industry Icons

  1. JiraIcon
  2. GithubIndustryIcon
  3. BitbucketIcon
  4. ConfluenceIcon
  5. GoogleAnalyticsIcon
  6. GoogleCloudIcon
  7. AWSIcon
  8. InvisionIndustryIcon
  9. SlackIcon
  10. MicrosoftIcon

Icon Props

  color?: string
  offset?: string
  scalingFactor?: number | null

Colors UIStyle:

Theme Colors

import { UIStyle } from 'eunoia'

// use as required
const Gld = UIStyle.UIColors.gold

List of Colors:

  UIColors: {
    white: '#FFFFFF',
    lightGrey: '#00000029',
    black: '#000000',
    gold: '#E1A87A',
    darkGrey: '#212121',
    mediumGrey: '#5D5D5D',
  }

Menu Component

Menu component

import { Menu } from 'eunoia'

// use as required
render(){
  return <Menu config={config} options={options} />
}

Details:

The menu component take two args. The first is an object called config that details the style of the menu. The second is an array of objects called options. This array contains a list of items that are rendered to the menu. The menu has both mobile and desktop support and is built over Material UI.\ The Menu uses react-router to implement navigation. if you want custom navigation, it can be overridden by passing a JSX component as the icon param in the array of objects options arg.

Interface:

See the Menu Storybook for an example with source code\ config

  config: {
    fontColor?: string
    activeSection?: string
    hideOnMobile?: boolean
    DisableMobile?: boolean
    fontOverride?: string
    boldText?: boolean
    spacing?: any
    row?: boolean
    fontSize?: string
    mobileBreakpoint?: number | undefined
    breakpoints: {
      xs?: boolean
      sm?: boolean
      xl?: boolean
    }
  }

options

  options: Array<{
    title?: string | undefined
    link?: string | undefined | any // this is a local nav link with react-router-dom
    exRef: string | undefined // this is an external link
    newTab?: boolean
    icon?: any
    main?: boolean | undefined
  }>

Card

Card component

import { Card } from 'eunoia'

// use as required
render(){
  return <Card config={config} />
}

Details

The card component is built on top of the Material UI Card component and has similar behavior. It is a flex card with a box shadow that is designed for content sharing. It takes a config object that determines the layout of the card and its content.

Interface

See the Card Storybook for an example with source code\

config

  config: {
    shouldRender: boolean | undefined
    imageURL?: string | undefined
    imageAltText?: string | undefined
    content?: string
    title: string
    centerTitle?: boolean | undefined
    centerContent?: boolean | undefined
    fontOverride?: string | undefined
    fontColor?: string | undefined
    fontSize?: string | undefined
    fontSizeTitle?: string | undefined
    height?: string | number | undefined
    link?: string | undefined | any
    event?: any | undefined
    containImage?: boolean | undefined // not yet implemented
  }

BannerCard

BannerCard component

import { BannerCard } from 'eunoia'

// use as required
render(){
  return <BannerCard config={config} />
}

Details

The card component is built on top of the Material UI Card component and has similar behavior. It is a flex card with a box shadow that is designed for content sharing . It takes a config object that determines the layout of the card and its content. It differs from the regular card component because the image is rendered to the right side, and is a little more particular, especially for mobile

Interface

See the Card Storybook for an example with source code\

config

  config: {
    shouldRender: boolean | undefined
    imageURL?: string | undefined
    imageAltText?: string | undefined
    content?: string
    title: string
    centerTitle?: boolean | undefined
    centerContent?: boolean | undefined
    fontOverride?: string | undefined
    fontColor?: string | undefined
    fontSize?: string | undefined
    fontSizeTitle?: string | undefined
    height?: string | number | undefined
    link?: string | undefined | any
    event?: any | undefined
    containImage?: boolean | undefined
    imageWidth?: number | undefined
  }

Section Header

SectionHeader component

import { SectionHeader } from 'eunoia'

// use as required
render(){
  return <SectionHeader config={config}>Design! :)</SectionHeader>
}

Details

The section header component is just CSS and takes a config object detailed below. Styles can be overridden using styled(SectionHeader) from styled-components, or can be used as-is.

Interface

See the SectionHeader Storybook for an example with source code\

config

  config: {
    shouldRender: boolean | undefined
    text?: string
    centerText?: boolean | undefined
    fontOverride?: string | undefined
    fontColor?: string | undefined
    fontSize?: number | undefined
    height?: number | undefined
    backgroundColor?: string | undefined
  }

More components coming soon

🤟💻🔨 :)

Contact

srobensparadise@gmail.com \ https://sammyrp.com

0.1.90

4 years ago

0.1.91

4 years ago

0.1.92

4 years ago

0.1.81

4 years ago

0.1.80

4 years ago

0.1.77

4 years ago

0.1.79

4 years ago

0.1.76

4 years ago

0.1.75

4 years ago

0.1.74

4 years ago

0.1.73

4 years ago

0.1.72

4 years ago

0.1.71

4 years ago

0.1.70

4 years ago

0.1.68

4 years ago

0.1.69

4 years ago

0.1.67

4 years ago

0.1.65

4 years ago

0.1.64

4 years ago

0.1.63

4 years ago

0.1.62

4 years ago

0.1.61

4 years ago

0.1.60

4 years ago

0.1.59

4 years ago

0.1.58

4 years ago

0.1.57

4 years ago

0.1.55

4 years ago

0.1.56

4 years ago

0.1.53

4 years ago

0.1.54

4 years ago

0.1.52

4 years ago

0.1.50

4 years ago

0.1.51

4 years ago

0.1.49

4 years ago

0.1.48

4 years ago

0.1.47

4 years ago

0.1.45

4 years ago

0.1.46

4 years ago

0.1.41

4 years ago

0.1.42

4 years ago

0.1.43

4 years ago

0.1.44

4 years ago

0.1.40

4 years ago

0.1.39

4 years ago

0.1.37

4 years ago

0.1.38

4 years ago

0.1.36

4 years ago

0.1.35

4 years ago

0.1.31

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.30

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.26

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.17

4 years ago

0.1.18

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.2

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago