Skip to content

Commit

Permalink
Merge pull request #2 from felipecespedes/1.0.0
Browse files Browse the repository at this point in the history
version 1.0.0
  • Loading branch information
felipecespedes authored Jul 25, 2020
2 parents f722f72 + b816979 commit 00cfe49
Show file tree
Hide file tree
Showing 39 changed files with 2,757 additions and 101 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Version 1.0.0 🎉
* New `accessory` values were added: `faceMask`, `hoopEarrings`
* New `clothing` values were added: `denimJacket`, `hoodie`, `chequeredShirt`, `chequeredShirtDark`
* New `eyes` values were added: `crazy`, `cute`, `dollars`, `stars`, `cyborg`, `simplePatch`, `piratePatch`
* New `facialHair` value was added: `goatee`
* New `graphic` values were added: `donut`, `rainbow`
* New `hair` value was added: `mohawk`
* New `hat` values were added: `party`, `hijab`
* New `mouth` values were added: `piercedTongue`, `vomitingRainbow`
* `bgShape` prop was introduced, its possible values are: `square`, `circle`, `squircle`
* `bgColor` prop was introduced, its possible values are: `blue`, `green`, `red`, `orange`, `yellow`, `turqoise`, `pink`, `purple`

*These new values and props were inspired by [vue-bigheads](https://github.com/DerpyScripts/vue-bigheads)*

## Breaking changes ⚠️
* `mask` prop was renamed to `showBackground`
* `circleColor` prop was renamed to `bgColor`
* `heart` value was renamed to `hearts` in the `eyes` prop
164 changes: 107 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ use the `BigHead` component like this:

```jsx
<BigHead
size={300}
accessory="shades"
bgColor="blue"
bgShape="circle"
body="chest"
circleColor="blue"
clothing="tankTop"
clothingColor="black"
eyebrows="angry"
Expand All @@ -60,32 +60,37 @@ use the `BigHead` component like this:
hairColor="black"
hat="none"
hatColor="green"
lashes="false"
lashes={false}
lipColor="purple"
mask="true"
mouth="open"
showBackground={true}
size={300}
skinTone="brown"
/>
```

### Props

- [`accessory`](#accessory)
- [`bgColor`](#bgcolor)
- [`bgShape`](#bgshape)
- [`body`](#body)
- [`circleColor`](#circlecolor)
- [`clothing`](#clothing)
- [`clothingColor`](#clothingcolor)
- [`containerProps`](#containerprops)
- [`containerStyles`](#containerstyles)
- [`eyebrows`](#eyebrows)
- [`eyes`](#eyes)
- [`facialHair`](#facialhair)
- [`graphics`](#graphics)
- [`graphic`](#graphic)
- [`hair`](#hair)
- [`hairColor`](#haircolor)
- [`hat`](#hat)
- [`hatColor`](#hatcolor)
- [`lashes`](#lashes)
- [`lipColor`](#lipcolor)
- [`mouth`](#mouth)
- [`showBackground`](#showbackground)
- [`size`](#size)
- [`skinTone`](#skinTone)

Expand All @@ -97,49 +102,59 @@ use the `BigHead` component like this:

Type of accessory

| Type | Required |
| -------- | -------- |
| enum('none', 'roundGlasses', 'tinyGlasses', 'shades') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('none', 'roundGlasses', 'tinyGlasses', 'shades', 'faceMask', 'hoopEarrings') | No | Random |

---

### `body`
### `bgColor`

Type of body
The color of the background

| Type | Required |
| -------- | -------- |
| enum('chest', 'breasts') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('blue', 'green', 'red', 'orange', 'yellow', 'turqoise', 'pink', 'purple') | No | Random |

---

### `circleColor`
### `bgShape`

The color of the circular background
The shape of the background

| Type | Required |
| -------- | -------- |
| enum('blue') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('circle', 'square', 'squircle') | No | Random |

---

### `body`

Type of body

| Type | Required | Default |
| -------- | -------- | ------- |
| enum('chest', 'breasts') | No | Random |

---

### `clothing`

Type of cloth

| Type | Required |
| -------- | -------- |
| enum('naked', 'shirt', 'dressShirt', 'vneck', 'tankTop', 'dress') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('naked', 'shirt', 'dressShirt', 'vneck', 'tankTop', 'dress', 'denimJacket', 'hoodie', 'chequeredShirt', 'chequeredShirtDark') | No | Random |

---

### `clothingColor`

The color of the clothes

| Type | Required |
| -------- | -------- |
| enum('white', 'blue', 'black', 'green', 'red') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('white', 'blue', 'black', 'green', 'red') | No | Random |

---

Expand Down Expand Up @@ -167,89 +182,121 @@ Styles to be applied to the container element ([View](https://reactnative.dev/do

Type of eyebrows

| Type | Required |
| -------- | -------- |
| enum('raised', 'leftLowered', 'serious', 'angry', 'concerned') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('raised', 'leftLowered', 'serious', 'angry', 'concerned') | No | Random |

---

### `eyes`

Type of eyes

| Type | Required |
| -------- | -------- |
| enum('normal', 'leftTwitch', 'happy', 'content', 'squint', 'simple', 'dizzy', 'wink', 'heart') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('normal', 'leftTwitch', 'happy', 'content', 'squint', 'simple', 'dizzy', 'wink', 'hearts', 'crazy', 'cute', 'dollars', 'stars', 'cyborg', 'simplePatch', 'piratePatch') | No | Random |

---

### `facialHair`

Type of facial hair

| Type | Required |
| -------- | -------- |
| enum('none', 'none2', 'none3', 'stubble', 'mediumBeard') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('none', 'stubble', 'mediumBeard', 'goatee') | No | Random |

---

### `graphics`
### `graphic`

Type of graphics over the t-shirts
Type of graphic over the t-shirts

| Type | Required |
| -------- | -------- |
| enum('none', 'redwood', 'gatsby', 'vue', 'react', 'graphQL') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('none', 'redwood', 'gatsby', 'vue', 'react', 'graphQL', 'donut', 'rainbow') | No | Random |

---

### `hair`

Type of hair

| Type | Required |
| -------- | -------- |
| enum('none', 'long', 'bun', 'short', 'pixie', 'balding', 'buzz', 'afro', 'bob') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('none', 'long', 'bun', 'short', 'pixie', 'balding', 'buzz', 'afro', 'bob', 'mohawk') | No | Random |

---

### `hairColor`

The color of the hair

| Type | Required |
| -------- | -------- |
| enum('blonde', 'orange', 'black', 'white', 'brown', 'blue', 'pink') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('blonde', 'orange', 'black', 'white', 'brown', 'blue', 'pink') | No | Random |

----

### `hat`

Type of hat

| Type | Required |
| -------- | -------- |
| enum('none', 'none2', 'none3', 'none4', 'none5', 'beanie', 'turban') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('none', 'beanie', 'turban', 'party', 'hijab') | No | Random |

---

### `hatColor`

The color of the hat

| Type | Required | Default |
| -------- | -------- | ------- |
| enum('white', 'blue', 'black', 'green', 'red') | No | Random |

---

### `lashes`

Show lashes

| Type | Required | Default |
| -------- | -------- | ------- |
| boolean | No | Random |

---

### `lipColor`

The color of the lips

| Type | Required |
| -------- | -------- |
| enum('red', 'purple', 'pink', 'turqoise', 'green') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('red', 'purple', 'pink', 'turqoise', 'green') | No | Random |

---

### `mouth`

Type of mouth

| Type | Required |
| -------- | -------- |
| enum('grin', 'sad', 'openSmile', 'lips', 'open', 'serious', 'tongue') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('grin', 'sad', 'openSmile', 'lips', 'open', 'serious', 'tongue', 'piercedTongue', 'vomitingRainbow') | No | Random |

---

### `showBackground`

Whether or not to display the background color

When `true` it cuts off everything below the avatar otherwise it won't clip off any of the avatar

| Type | Required | Default |
| -------- | -------- | ------- |
| boolean | No | true |

---

Expand All @@ -267,16 +314,19 @@ Size of the avatar

The color of the skin

| Type | Required |
| -------- | -------- |
| enum('light', 'yellow', 'brown', 'dark', 'red', 'black') | No |
| Type | Required | Default |
| -------- | -------- | ------- |
| enum('light', 'yellow', 'brown', 'dark', 'red', 'black') | No | Random |

---

# Authors
- Some portions of this code belong to the [Big Heads authors](https://github.com/RobertBroersma/bigheads) which are distributed under the [MIT License](https://github.com/RobertBroersma/bigheads/blob/main/LICENSE)
- [Felipe Céspedes](https://felipecespedes.github.io/) <img src="https://bigheads.io/svg?accessory=roundGlasses&body=chest&circleColor=blue&clothing=shirt&clothingColor=red&eyebrows=raised&eyes=happy&facialHair=none&graphic=none&hair=short&hairColor=brown&hat=none5&hatColor=red&lashes=true&lipColor=red&mask=true&mouth=grin&skinTone=light" alt="Big Head" height="50" />

# Changelog
[Learn about the latest improvements](https://github.com/felipecespedes/react-native-bigheads/blob/master/CHANGELOG.md)

# License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/felipecespedes/react-native-bigheads/blob/master/LICENSE) file for details

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"version": "1.0.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
Binary file modified screenshots/screenshot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 00cfe49

Please sign in to comment.