Skip to content

Commit

Permalink
Parking and Walking icons (#291)
Browse files Browse the repository at this point in the history
* update icon exporter destination path to SVGIcon

* walking icon

* parking icon

* add icons to index file

* parking filled icon

* walking filled icon

* add filled icons to index file

* fix fills

* add icons to documentation

* fix parking filled position

* fix walking filled position

* remove walking filled color

* remove parking filled color

* fix walking position
  • Loading branch information
spencerschack authored and dcocchia committed Dec 7, 2018
1 parent 17c5b64 commit a191fee
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/svgIcons.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Available SVGIcons:
```jsx
const icons = Object.keys(require('../src/components/SVGIcon/icons'));
const groups = {
People: ['account', 'person', 'personAdd'],
People: ['account', 'person', 'personAdd', 'walking'],
'Social Media': ['google', 'facebook', 'instagram', 'twitter', 'pinterest', 'appStore', 'playStore'],
Orders: ['order', 'orders', 'addToOrder', 'orderIssue', 'orderReview', 'recurringOrder', 'reorder', 'replacement', 'adjustment', 'refund'],
'Times of Day': ['sunset', 'moon', 'inSeason'],
Shopping: ['cart', 'bag', 'store', 'money', 'creditCard', 'loyaltyCard', 'giftcard', 'coupons', 'categories', 'recipes', 'sale'],
Delivery: ['home', 'office', 'barcode', 'scan', 'car', 'clock', 'calendar', 'locationCurrent', 'locationMarker'],
Delivery: ['home', 'office', 'barcode', 'scan', 'car', 'clock', 'calendar', 'locationCurrent', 'locationMarker', 'parking'],
Items: ['items', 'organic', 'cold', 'fire', 'alcohol', 'coffee', 'tobacco', 'weight'],
Actions: ['reaction', 'reactionAdd', 'thumbsUp', 'thumbsDown', 'saveForLater', 'like', 'listsAdd', 'star', 'flag'],
Communication: ['sendEmail', 'email', 'chat', 'phone', 'call', 'instructions', 'pencil'],
Expand Down
6 changes: 4 additions & 2 deletions scripts/icon_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
end

root = Pathname.new(__FILE__).dirname.join('..').expand_path
path = root.join('src', 'components', 'Icon', 'icons', "#{name}.svg")
path = root.join('src', 'components', 'SVGIcon', 'icons', "#{name}.svg")
initial_copy = `pbpaste`
source = nil

Expand Down Expand Up @@ -49,7 +49,9 @@
.set(:viewBox, '0 0 24 24')
svg = svg.first
element = document.css('path').first
element.remove_attribute('id')
element.attributes.each do |key, _|
element.remove_attribute(key) unless key == 'd'
end
svg.content = ''
element.parent = svg
path.write("#{svg}\n")
Expand Down
10 changes: 7 additions & 3 deletions src/components/SVGIcon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export {default as help} from './icons/help.svg'
export {default as helpFilled} from './icons/helpFilled.svg'
export {default as home} from './icons/home.svg'
export {default as homeFilled} from './icons/homeFilled.svg'
export {default as inSeason} from './icons/inSeason.svg'
export {default as inSeasonFilled} from './icons/inSeasonFilled.svg'
export {default as info} from './icons/info.svg'
export {default as infoFilled} from './icons/infoFilled.svg'
export {default as inSeason} from './icons/inSeason.svg'
export {default as inSeasonFilled} from './icons/inSeasonFilled.svg'
export {default as instagram} from './icons/instagram.svg'
export {default as instructions} from './icons/instructions.svg'
export {default as instructionsFilled} from './icons/instructionsFilled.svg'
Expand Down Expand Up @@ -108,15 +108,17 @@ export {default as noFilled} from './icons/noFilled.svg'
export {default as office} from './icons/office.svg'
export {default as officeFilled} from './icons/officeFilled.svg'
export {default as order} from './icons/order.svg'
export {default as orderFilled} from './icons/orderFilled.svg'
export {default as orderIssue} from './icons/orderIssue.svg'
export {default as orderIssueFilled} from './icons/orderIssueFilled.svg'
export {default as orderFilled} from './icons/orderFilled.svg'
export {default as orderReview} from './icons/orderReview.svg'
export {default as orderReviewFilled} from './icons/orderReviewFilled.svg'
export {default as orders} from './icons/orders.svg'
export {default as ordersFilled} from './icons/ordersFilled.svg'
export {default as organic} from './icons/organic.svg'
export {default as organicFilled} from './icons/organicFilled.svg'
export {default as parking} from './icons/parking.svg'
export {default as parkingFilled} from './icons/parkingFilled.svg'
export {default as pencil} from './icons/pencil.svg'
export {default as pencilFilled} from './icons/pencilFilled.svg'
export {default as person} from './icons/person.svg'
Expand Down Expand Up @@ -169,6 +171,8 @@ export {default as unlock} from './icons/unlock.svg'
export {default as unlockFilled} from './icons/unlockFilled.svg'
export {default as view} from './icons/view.svg'
export {default as viewFilled} from './icons/viewFilled.svg'
export {default as walking} from './icons/walking.svg'
export {default as walkingFilled} from './icons/walkingFilled.svg'
export {default as warning} from './icons/warning.svg'
export {default as warningFilled} from './icons/warningFilled.svg'
export {default as weight} from './icons/weight.svg'
Expand Down
3 changes: 3 additions & 0 deletions src/components/SVGIcon/icons/parking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/SVGIcon/icons/parkingFilled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/SVGIcon/icons/walking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/components/SVGIcon/icons/walkingFilled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a191fee

Please sign in to comment.