Skip to content

Commit

Permalink
fix(checkbox, icon button, tag): font icon replaced with svg sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
cabutler10 committed May 9, 2019
1 parent 6af6fdf commit d5b19f9
Show file tree
Hide file tree
Showing 344 changed files with 1,525 additions and 1,464 deletions.
37 changes: 19 additions & 18 deletions bundlehandler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,30 @@ cp -r src/themes/* bundle/themes

# copy icons folder into bundle folder
cp -r src/assets/icons/* bundle/assets/icons
cp -r src/svgxuse.min.js bundle/assets/icons

# copy sketch file into bundle folder
cp -r src/assets/sketches/zds-library.sketch bundle/assets/dist

# rename icons
cd bundle/assets/icons
for f in *.svg
do
newFileName=$(echo $f | \
awk '{gsub(/iconsLanguages/, "")};1' | \
awk '{gsub(/iconsMiscAction/, "")};1' | \
awk '{gsub(/iconsMiscNavigation/, "")};1' | \
awk '{gsub(/iconsMiscIndicator/, "")};1' | \
awk '{gsub(/iconsSbu/, "")};1' | \
awk '{gsub(/iconsSocial/, "")};1' | \
awk '{gsub(/[A-Z]/, "-&")};1' | \
awk '{ print tolower($0) }')
# mv $f "zepicons$newFileName" ONLY USE IF CHANGING FILE NAMES THE FIRST TIME
mv $f $newFileName
done

# move back to main folder
cd ../../../
# cd bundle/assets/icons
# for f in *.svg
# do
# newFileName=$(echo $f | \
# awk '{gsub(/iconsLanguages/, "")};1' | \
# awk '{gsub(/iconsMiscAction/, "")};1' | \
# awk '{gsub(/iconsMiscNavigation/, "")};1' | \
# awk '{gsub(/iconsMiscIndicator/, "")};1' | \
# awk '{gsub(/iconsSbu/, "")};1' | \
# awk '{gsub(/iconsSocial/, "")};1' | \
# awk '{gsub(/[A-Z]/, "-&")};1' | \
# awk '{ print tolower($0) }')
# # mv $f "zepicons$newFileName" ONLY USE IF CHANGING FILE NAMES THE FIRST TIME
# mv $f $newFileName
# done

# # move back to main folder
# cd ../../../

# delete sourceMapping comment line from css file
sed -i.bak 's@/\*.*\*/@@g' $TARGET_FILE
Expand Down
6 changes: 1 addition & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import NumberInputPage from './elements/numberinput/NumberInputPage';
import ListPage from './elements/list/ListPage';
import RadioPage from './elements/radio/RadioPage';
import './base_bundle_entry.scss';

/* TODO: remove this import, the css itself and the icont font files,
after the files are extracted in a separate repo/npm package */
// import './icons.font';
import './zeppelin-icons.css';
import './svgxuse.min.js'; // ie fallback for sprites

function App() {
const [content, setContent] = useState('welcome');
Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/App.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ it('renders without crashing', () => {
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});

// TODO: TDD on initializing real elements in ZEL
Binary file removed src/assets/fonts/zepicons.eot
Binary file not shown.
333 changes: 0 additions & 333 deletions src/assets/fonts/zepicons.svg

This file was deleted.

Binary file removed src/assets/fonts/zepicons.ttf
Binary file not shown.
Binary file removed src/assets/fonts/zepicons.woff
Binary file not shown.
Binary file removed src/assets/fonts/zepicons.woff2
Binary file not shown.
Binary file added src/assets/icons/PNG/zepicons-account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-add-cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-add-solution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-attachment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-average.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-bell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-bookmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-br.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-briefcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-calendar-clock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-calendar-range.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-cat-new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-cat-service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-cat-used.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-chevron-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-chevron-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-chevron-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-chevron-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-clock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/PNG/zepicons-compare.png
Binary file added src/assets/icons/PNG/zepicons-contact-mail.png
Binary file added src/assets/icons/PNG/zepicons-contacts.png
Binary file added src/assets/icons/PNG/zepicons-copy.png
Binary file added src/assets/icons/PNG/zepicons-crosshair.png
Binary file added src/assets/icons/PNG/zepicons-delete.png
Binary file added src/assets/icons/PNG/zepicons-direction.png
Binary file added src/assets/icons/PNG/zepicons-dots-horizontal.png
Binary file added src/assets/icons/PNG/zepicons-dots-vertical.png
Binary file added src/assets/icons/PNG/zepicons-download.png
Binary file added src/assets/icons/PNG/zepicons-dropdown.png
Binary file added src/assets/icons/PNG/zepicons-edit.png
Binary file added src/assets/icons/PNG/zepicons-email.png
Binary file added src/assets/icons/PNG/zepicons-expand.png
Binary file added src/assets/icons/PNG/zepicons-facebook.png
Binary file added src/assets/icons/PNG/zepicons-file-document.png
Binary file added src/assets/icons/PNG/zepicons-file.png
Binary file added src/assets/icons/PNG/zepicons-filter.png
Binary file added src/assets/icons/PNG/zepicons-flag.png
Binary file added src/assets/icons/PNG/zepicons-gb.png
Binary file added src/assets/icons/PNG/zepicons-ger.png
Binary file added src/assets/icons/PNG/zepicons-global.png
Binary file added src/assets/icons/PNG/zepicons-googleplus.png
Binary file added src/assets/icons/PNG/zepicons-headset.png
Binary file added src/assets/icons/PNG/zepicons-help.png
Binary file added src/assets/icons/PNG/zepicons-hide.png
Binary file added src/assets/icons/PNG/zepicons-home.png
Binary file added src/assets/icons/PNG/zepicons-image-album.png
Binary file added src/assets/icons/PNG/zepicons-image.png
Binary file added src/assets/icons/PNG/zepicons-in.png
Binary file added src/assets/icons/PNG/zepicons-info.png
Binary file added src/assets/icons/PNG/zepicons-instagram.png
Binary file added src/assets/icons/PNG/zepicons-it.png
Binary file added src/assets/icons/PNG/zepicons-kununu.png
Binary file added src/assets/icons/PNG/zepicons-link.png
Binary file added src/assets/icons/PNG/zepicons-linkedin.png
Binary file added src/assets/icons/PNG/zepicons-list-plus.png
Binary file added src/assets/icons/PNG/zepicons-logout.png
Binary file added src/assets/icons/PNG/zepicons-map-marker.png
Binary file added src/assets/icons/PNG/zepicons-map.png
Binary file added src/assets/icons/PNG/zepicons-menu.png
Binary file added src/assets/icons/PNG/zepicons-minus.png
Binary file added src/assets/icons/PNG/zepicons-next-page.png
Binary file added src/assets/icons/PNG/zepicons-open-in-new.png
Binary file added src/assets/icons/PNG/zepicons-phone.png
Binary file added src/assets/icons/PNG/zepicons-plus.png
Binary file added src/assets/icons/PNG/zepicons-previous-page.png
Binary file added src/assets/icons/PNG/zepicons-print.png
Binary file added src/assets/icons/PNG/zepicons-ps-ps.png
Binary file added src/assets/icons/PNG/zepicons-ps-service.png
Binary file added src/assets/icons/PNG/zepicons-ps-used.png
Binary file added src/assets/icons/PNG/zepicons-reload.png
Binary file added src/assets/icons/PNG/zepicons-rental-logistics.png
Binary file added src/assets/icons/PNG/zepicons-rental-rent.png
Binary file added src/assets/icons/PNG/zepicons-ru.png
Binary file added src/assets/icons/PNG/zepicons-sa.png
Binary file added src/assets/icons/PNG/zepicons-search.png
Binary file added src/assets/icons/PNG/zepicons-settings.png
Binary file added src/assets/icons/PNG/zepicons-sg.png
Binary file added src/assets/icons/PNG/zepicons-share.png
Binary file added src/assets/icons/PNG/zepicons-show.png
Binary file added src/assets/icons/PNG/zepicons-solutions.png
Binary file added src/assets/icons/PNG/zepicons-sort.png
Binary file added src/assets/icons/PNG/zepicons-star.png
Binary file added src/assets/icons/PNG/zepicons-systems-aviation.png
Binary file added src/assets/icons/PNG/zepicons-systems-products.png
Binary file added src/assets/icons/PNG/zepicons-systems-service.png
Binary file added src/assets/icons/PNG/zepicons-systems-systems.png
Binary file added src/assets/icons/PNG/zepicons-timer.png
Binary file added src/assets/icons/PNG/zepicons-twitter.png
Binary file added src/assets/icons/PNG/zepicons-unfold.png
Binary file added src/assets/icons/PNG/zepicons-upload.png
Binary file added src/assets/icons/PNG/zepicons-user-edit.png
Binary file added src/assets/icons/PNG/zepicons-user.png
Binary file added src/assets/icons/PNG/zepicons-users.png
Binary file added src/assets/icons/PNG/zepicons-view-grid.png
Binary file added src/assets/icons/PNG/zepicons-warning.png
Binary file added src/assets/icons/PNG/zepicons-xing.png
Binary file added src/assets/icons/PNG/zepicons-youtube.png
Binary file added src/assets/icons/PNG/zepicons-zoom-in.png
Binary file added src/assets/icons/PNG/zepicons-zoom-out.png
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-account.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-add-cart.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-add-solution.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-attachment.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-average.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-bell.svg
5 changes: 5 additions & 0 deletions src/assets/icons/SVG/zepicons-bookmark.svg
29 changes: 29 additions & 0 deletions src/assets/icons/SVG/zepicons-br.svg
Loading

0 comments on commit d5b19f9

Please sign in to comment.