Compare commits

...
703 Commits
Author SHA1 Message Date
ionitron 5d393395d3 8.0.8 2025-05-06 18:22:55 +00:00
Christian Bromann ac1b23751d chore: cleanup CHANGELOG file 2025-05-06 11:22:15 -07:00
Christian Bromann d9a095dea4 fix: fix export file path for /icons 2025-05-06 11:21:24 -07:00
ionitron 3dab196131 8.0.7 2025-05-06 18:17:46 +00:00
Brandy SmithandBrandy Smith 7f73379a7c docs(changelog): correct links and add two recent releases (#1451)
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
2025-05-06 07:59:07 -07:00
ionitron abda804f39 8.0.6 2025-05-05 22:56:10 +00:00
Christian Bromann b9858daaab fix(ci): uncomment ci pipeline 2025-05-05 15:55:32 -07:00
ionitron 0807bbe045 8.0.5 2025-05-05 22:52:55 +00:00
Christian Bromann 0269306a15 fix(ci): remove auth step 2025-05-05 15:52:04 -07:00
Christian Bromann be3fcd7a70 fix(ci): fix auth command 2025-05-05 15:50:01 -07:00
Christian Bromann 4921d70e32 fix(ci): fix auth command 2025-05-05 15:48:06 -07:00
Christian Bromann bef34677cd fix(ci): fix propagating version 2025-05-05 15:44:13 -07:00
Christian Bromann 2e393282c9 fix(ci): fix git set up 2025-05-05 15:42:38 -07:00
Christian Bromann ecfff506b9 fix(ci): retrieve new version from package.json 2025-05-05 15:32:25 -07:00
Christian Bromann 87161a14a5 fix(ci): dry run it 2025-05-05 15:24:20 -07:00
Christian Bromann b1893f4ef6 fix(ci): test a different token 2025-05-05 15:22:11 -07:00
Christian Bromann fa5244e544 8.0.4 2025-05-05 15:18:31 -07:00
Christian Bromann d0e18dab3e fix(ci): tweak release pipeline 2025-05-05 15:18:26 -07:00
Christian Bromann e4d8d28253 8.0.3 2025-05-05 15:13:58 -07:00
Christian Bromann 77e5de20c8 fix(ci): set token before push 2025-05-05 15:13:45 -07:00
Christian Bromann 17ea00ef3c 8.0.2 2025-05-05 15:06:01 -07:00
Christian Bromann 04975203b7 8.0.1 2025-05-05 14:56:52 -07:00
Christian Bromann 2ad4148057 fix(ci): set proper token 2025-05-05 14:56:22 -07:00
Christian Bromann 5b23d0a963 fix(ci): set up git before calling npm version 2025-05-05 14:53:56 -07:00
Christian Bromann 987d118b0b ci: update pipelines 2025-05-05 14:52:10 -07:00
Christian Bromann a380c95899 docs: missing ; in readme 2025-05-05 12:20:36 -07:00
Christian Bromann fe60bd2490 docs: clarify usage of addIcons 2025-05-05 12:19:42 -07:00
Christian Bromann ba27560096 fix: exports 2025-05-05 12:15:51 -07:00
Christian Bromann dcca52d3b2 v8.0.0 2025-05-02 08:26:41 -07:00
e04eccc868 breaking: modernize project (#1447)
* chore: update project dependencies

* remove lerna

* update build

* plugin fixes

* Icons do not display when the svg is loaded from a file:// URL in Safari

fixes #1298

* Update path fill in warning-outline.svg exclamation mark

* set currentColor - fixes #1420

* add bell tag to notifications icon - fixes #1090

* add sliders and filters tags to option icon - fixes #1060

* add loveseat tag to bed icon - closes #503

* add contacts tag to people-circle
closes #779

* fix data.json

* update data.json

* set up prettier

* fix contributing link

* prettier after rebase

* add missing rimraf

* add more comments

* run prettier as part of the build

* set module resolution to bundle

* consolidate contributing guidelines and coc as part of the root directory

* fix link

* copy svg into www

* cut me some visual slack

* Update readme.md

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

* Update package.json

Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>

* remove generating collections

* ensure all directories exist

* only define snapshot tolerance in config

* update dependencies

* Update src/components/icon/request.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

* Update src/components/icon/request.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

* Update src/components/icon/request.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

* Update src/components/icon/request.ts

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>

* prettier

* update release pipeline

* fix exports

* recommend to use esm.sh as cdn

---------

Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
2025-05-02 08:04:17 -07:00
Kerk en IT 5266d14dac Resolve #1242 (#1393) 2025-04-16 16:15:09 -07:00
jcesarmobile 4477c02512 chore(ci): update actions to v4 (#1415) 2024-11-19 11:39:07 +01:00
Liam DeBeasi d55d438ef0 chore: merge feature-7.4 2024-05-01 15:19:36 -04:00
Liam DeBeasi 70135edf3a chore: sync 2024-05-01 15:16:30 -04:00
Liam DeBeasi 2ac03a16d4 chore: sync with main 2024-05-01 15:15:44 -04:00
Liam DeBeasi 31c83d9d12 merge release-7.4.0
Release 7.4.0
2024-05-01 15:14:21 -04:00
ionitron 0c34dde9e8 chore(): update package lock files 2024-05-01 19:11:34 +00:00
ionitron f1794e755a v7.4.0 2024-05-01 19:10:54 +00:00
Christian Bromann 87f2094890 feat: export setAssetPath (#1372)
resolves #1302
2024-05-01 14:57:37 -04:00
Liam DeBeasi 0963fe20b7 feat: add X logo (#1371)
resolves #1249
2024-05-01 14:41:10 -04:00
Liam DeBeasi 19fbe0bde7 refactor(icon): remove addition style (#1359)
The `stroke-width: 32px` line never applies because of the following line where we apply the CSS Variable. All versions of browsers that Ionicons supports also support CSS Variables, so the `stroke-width: 32px` line isn't needed anymore.
2024-05-01 18:30:04 +00:00
Christian Bromann 06a995eebb docs: add a section on custom svg paths (#1368) 2024-05-01 14:09:49 -04:00
Liam DeBeasi 71938d06a2 test: use optimized assets (#1354) 2024-03-29 11:24:24 -04:00
Liam DeBeasi e81ddbdb4b merge release-7.3.1
Release 7.3.1
2024-03-27 09:40:09 -04:00
Liam DeBeasi 89356a9824 chore: clean up changelog 2024-03-27 09:35:43 -04:00
ionitron d3759f9ee1 chore(): update package lock files 2024-03-27 13:35:00 +00:00
ionitron 8b041ece8f v7.3.1 2024-03-27 13:34:21 +00:00
Liam DeBeasi 63e60ec44c fix: filled ellipsis circle icons renders correctly (#1353)
resolves #1320
2024-03-22 16:54:35 -04:00
Liam DeBeasi 4350c67e44 chore(ionitron): add auto response for community feedback (#1352) 2024-03-22 16:47:55 -04:00
Liam DeBeasi b4ade9d887 feat: update server icon (#1259)
resolves #407
2024-03-22 16:24:15 -04:00
b63d12b0e4 docs: update readme to use latest and switch unpkg to jsdelivr (#1084)
* docs: switch unpkg to jsdelivr

* docs: fix script tag

* Update readme.md

* Update package.json

---------

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
Co-authored-by: mo7amd <mo7amd@users.noreply.github.com>
2024-03-22 10:23:35 -04:00
Liam DeBeasi d09ddb6404 docs(contributing): clarify icon contributions (#1351) 2024-03-22 09:20:55 -04:00
Liam DeBeasi 1c3f59def5 chore: use local version of lerna (#1349) 2024-03-20 13:18:08 -04:00
Liam DeBeasi fdd70c6607 merge release-7.3.0
Feature 7.3.0
2024-03-20 09:55:33 -04:00
Liam DeBeasi d38cbac770 merge release-7.3.0
Release 7.3.0
2024-03-20 09:48:15 -04:00
Liam DeBeasi 30f23ae9f5 chore(ci): pass env token 2024-03-20 09:41:51 -04:00
Liam DeBeasi 707325863d chore(): update package lock files 2024-03-20 09:40:19 -04:00
ionitron 5688365fb3 v7.3.0 2024-03-20 13:37:40 +00:00
Liam DeBeasi 9862cec6e8 chore: sync with main
chore: sync with main
2024-03-20 09:35:00 -04:00
Liam DeBeasi b18e5a9228 chore: sync with main 2024-03-20 09:26:21 -04:00
Liam DeBeasi c1450932cb merge release-7.2.3
Release 7.2.3
2024-03-20 09:26:09 -04:00
Liam DeBeasi 0a299f7118 chore(); update package lock files 2024-03-20 09:19:03 -04:00
Liam DeBeasi 51efbde09f chore: clean up changelog 2024-03-20 09:18:33 -04:00
Liam DeBeasi eea9396f11 chore(ci): pull branch correctly 2024-03-20 09:18:20 -04:00
ionitron 35e276a33d v7.2.3 2024-03-20 13:15:02 +00:00
Liam DeBeasiandchristophdubach 2586fb26b2 feat: update gitlab logo (#1261)
resolves #613

---------

Co-authored-by: christophdubach <christophdubach@users.noreply.github.com>
2024-03-13 19:50:06 -04:00
Liam DeBeasi c6ed6b629e feat: add updated yahoo icon (#1266) 2024-03-13 23:47:10 +00:00
Liam DeBeasi d5a55f8541 feat: add arrow box icons (#1265) 2024-03-13 23:44:14 +00:00
Liam DeBeasi 26aac36334 feat: add updated wifi logos (#1264)
resolves #323
2024-03-13 23:37:45 +00:00
Liam DeBeasi 50fe570566 feat: update ionic logo (#1263) 2024-03-13 23:14:53 +00:00
Liam DeBeasi fa5e7659fc feat: add appflow icon (#1262) 2024-03-13 19:12:29 -04:00
Liam DeBeasi 3b85413a05 feat: add trapeze icon (#1260) 2024-03-13 19:08:02 -04:00
Liam DeBeasi 302481846e feat: add binoculars icons (#1258) 2024-03-13 18:45:28 -04:00
Liam DeBeasi 8e22a3dcd1 chore: sync with main
chore: sync with main
2024-03-13 17:59:46 -04:00
MasonVXandNico Tasche 077168dac9 fix(icon): icon names with numbers are correctly converted to kebab case (#1339)
resolves #1338

---------

Co-authored-by: Nico Tasche <nico.tasche@siemens.com>
2024-03-13 17:55:43 -04:00
Liam DeBeasi e4debc5ecb chore: sync with main 2024-03-13 17:54:45 -04:00
Liam DeBeasi de8b11e892 chore(ci): package-lock is updated from separate job (#1308) 2024-01-02 12:44:33 -05:00
Liam DeBeasi 64bbbf997b chore: SVG optimization no longer breaks outline icons (#1313) 2023-12-18 20:26:32 +00:00
Liam DeBeasi c7f561ce41 test: refactor to use toHaveScreenshot (#1314) 2023-12-14 12:52:50 -08:00
Shawn Taylor 116d250255 chore(CODEOWNERS): remove codeowners (#1312) 2023-12-13 17:50:32 -05:00
Liam DeBeasi 49b727ca0d merge release-7.2.2
Release 7.2.2
2023-12-13 10:33:59 -05:00
Liam DeBeasi 811a814ef9 chore: clean up 2023-12-13 09:41:34 -05:00
ionitron 54d5a17c13 chore(): update package lock files 2023-12-13 14:40:09 +00:00
ionitron fccc260627 v7.2.2 2023-12-13 14:40:04 +00:00
Piotr Tomiak f946a3ee3a feat(doc): add Web Types (#1301) 2023-11-15 11:53:55 -05:00
Liam DeBeasi d582e6208e fix(icon): add better warning when loading icons (#1297) 2023-11-06 16:28:38 -05:00
Sean Perkins 625d54fdad merge release-7.2.1
v7.2.1
2023-10-10 13:37:32 -04:00
Liam DeBeasi 841fb96543 remove duplicate entry 2023-10-10 13:21:53 -04:00
ionitron 9dab13aef7 chore(): update package lock files 2023-10-10 17:10:51 +00:00
ionitron df6d6f8aeb v7.2.1 2023-10-10 17:10:45 +00:00
Sean Perkins 875bfd8300 fix(icon): font scales without host style (#1289) 2023-10-10 13:06:38 -04:00
Liam DeBeasi cb640b6208 chore(ci): ensure local version of lerna is used (#1288) 2023-10-10 10:42:07 -04:00
Liam DeBeasi 6a032e54cd merge release-7.2.0
Feature 7.2
2023-10-10 10:37:27 -04:00
Liam DeBeasi a3902ce3bb merge release-7.2.0
Release 7.2.0
2023-10-10 10:29:32 -04:00
Liam DeBeasi 8237f1ccaa chore: clean up 2023-10-10 10:23:57 -04:00
Liam DeBeasi 90bd5e911e v7.2.0 2023-10-10 10:20:54 -04:00
Liam DeBeasi 8297018cb5 fix(icon): mapping same icon does not warn (#1279) 2023-09-13 09:26:56 -04:00
Sean Perkins 0f8ade3867 chore(deps): upgrade to stencil 4 (#1257)
* chore(deps): upgrade to stencil 4

* chore: disable sourcemaps
2023-09-12 15:44:52 -04:00
Maria Hutt 7f7f346af4 fix(icon): verify the icon loads in the lifecycle (#1278)
Co-authored-by: sean-perkins <13732623+sean-perkins@users.noreply.github.com
>
2023-09-12 11:50:52 -07:00
Maria Hutt 1b7e8aac04 Merge pull request #1275 from ionic-team/feature-7.2-sync
chore: sync with main
2023-09-08 13:07:40 -07:00
Maria Hutt 8d36e66a21 Merge remote-tracking branch 'origin/main' into feature-7.2-sync 2023-09-08 12:25:30 -07:00
Maria Hutt 8369c36e88 chore(workflows): update node version to 18 (#1276) 2023-09-08 12:24:38 -07:00
Maria Hutt 2e5b6e0d31 Merge remote-tracking branch 'origin/main' into feature-7.2-sync 2023-09-08 11:55:52 -07:00
Maria Hutt 2752ad19b2 chore(print): add fax to tags (#1272) 2023-09-07 09:39:22 -07:00
Shawn Taylor b4e942b34f chore(CODEOWNERS): create codeowners file and add me (#1268) 2023-08-25 12:58:26 -04:00
Liam DeBeasi 1e33313473 feat: allow passing in only icon SVG data to addIcons (#1256) 2023-08-22 09:46:13 -04:00
Sean Perkins 45c04dda6c feat(icon): support for dynamic type (#1246) 2023-08-09 10:57:03 -04:00
Shawn Taylor b1235589bb chore(): remove unused files (#1232)
* Remove icon font

* Removed unused docs icons
2023-06-16 09:21:02 -04:00
André e2fbb3e5fb Edit open icon tags for better searchability (#716) 2023-06-02 12:00:26 -05:00
Liam DeBeasi 90aee31ff7 merge release-7.1.2
v7.1.2
2023-05-30 15:32:38 -04:00
Liam DeBeasi b3ddc6e77f chore: remove duplicate changelog entry 2023-05-30 15:22:17 -04:00
ionitron 871ad4b97a chore(): update package lock files 2023-05-30 19:21:57 +00:00
ionitron 24d92f8f1d v7.1.2 2023-05-30 19:21:52 +00:00
Liam DeBeasi 06fa4a528d fix(icon): add :dir fallback (#1223) 2023-05-30 15:17:36 -04:00
Liam DeBeasi 3992b01883 merge release-7.1.1
Release 7.1.1
2023-05-23 13:57:07 -04:00
Liam DeBeasi 909a6cf1c4 chore: remove duplicate changelog entry 2023-05-23 13:48:49 -04:00
ionitron cdd0623792 chore(): update package lock files 2023-05-23 17:46:20 +00:00
ionitron 0fd63998b9 v7.1.1 2023-05-23 17:46:14 +00:00
Shawn TaylorandLiam DeBeasi 7466383539 chore(): update dev dependencies (#1216)
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
2023-05-23 07:55:51 -04:00
Shawn Taylor 31ea9450b6 docs(): change link from slack to discord (#1217) 2023-05-20 09:24:45 -06:00
Shawn Taylorandionitron e70bf214b8 fix(icon): respond to changes of document dir (#1210)
* fix(icon): respond to changes of document dir

* Add snapshot for rtl

* Remove unused function

* Add tests

* CSS-only solution

* chore(): add updated snapshots

---------

Co-authored-by: ionitron <hi@ionicframework.com>
2023-05-19 10:17:26 -04:00
Liam DeBeasi fb46c75128 chore(ci): update workflows for upcoming deprecations (#1209) 2023-05-03 08:34:27 -04:00
jaredcbaumandLiam DeBeasi 4b2ed58009 chore(readme): ionic slack -> discord (#1208)
* chore(readme): ionic slack -> discord

* chore(contributing): slack -> discord

* Update .github/CONTRIBUTING.md

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>

* Update readme.md

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>

---------

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
2023-04-26 11:45:56 -06:00
Lars Mikkelsen c86778cc7b chore(ci): enable npm package provenance (#1206) 2023-04-24 15:19:50 -04:00
Sean Perkins 99bb8f64f6 merge release-7.1.0
v7.1.0
2023-03-23 14:52:07 -04:00
Sean Perkins 3691e75d77 chore: remove duplicate changelog diff 2023-03-23 13:10:41 -04:00
ionitron 3904e85e61 chore(): update package lock files 2023-03-23 15:49:23 +00:00
ionitron 4fcee649df v7.1.0 2023-03-23 15:49:18 +00:00
Sean Perkins e4bf096aaf Merge remote-tracking branch 'origin/feature-7.1' into release-7.1.0 2023-03-23 11:43:25 -04:00
Sean Perkins cdb0d80cde feat: chevron-expand and chevron-collapse icons (#1198) 2023-03-22 16:13:00 -04:00
Liam DeBeasi e358a4f418 merge feature-7.0
Feature 7.0
2023-03-07 13:07:44 -05:00
Liam DeBeasi 0f6c84f976 merge release-7.0.0
Release 7.0.0
2023-03-07 08:52:02 -05:00
Liam DeBeasi 63788874db chore(): add migration note 2023-03-07 08:51:36 -05:00
ionitron ac450cbd28 chore(): update package lock files 2023-03-07 13:49:51 +00:00
ionitron 2ffcb6a012 v7.0.0 2023-03-07 13:49:46 +00:00
Liam DeBeasi 998b9207f3 chore(): sync with main
chore(): sync with main
2023-03-07 08:47:10 -05:00
Liam DeBeasi c290bea476 chore(): sync with main 2023-03-07 08:42:57 -05:00
Brandy Carney f2ed84a256 docs(contributing): include a link to contribute to the ionicons site (#1183) 2023-03-03 11:32:27 -05:00
Liam DeBeasi 7f3f55c94e merge release-6.1.3
Release 6.1.3
2023-02-09 12:39:57 -05:00
Liam DeBeasi ffcf9f9034 chore(): cleanup changelog 2023-02-09 12:35:41 -05:00
ionitron 6116bc2627 chore(): update package lock files 2023-02-09 17:34:58 +00:00
ionitron b7c9bb024a v6.1.3 2023-02-09 17:34:54 +00:00
Sean Perkins 8c412f6748 fix: DomParser usage in SSR (#1180)
Resolves #1179
2023-02-09 12:30:17 -05:00
Liam DeBeasi 53ce49e929 merge release-6.1.2
Release 6.1.2
2023-02-08 09:20:16 -05:00
Liam DeBeasi b27268f7db fix changelog 2023-02-08 09:13:59 -05:00
ionitron 2c1b968bff chore(): update package lock files 2023-02-08 14:05:12 +00:00
ionitron 3342166f7f v6.1.2 2023-02-08 14:05:08 +00:00
Sean Perkins 72f09369de fix(icon): load base64 data urls (#1172) 2023-02-07 16:37:42 -05:00
Liam DeBeasi 6e7ff0defc merge release-6.1.1
Merge Release 6.1.1
2023-02-06 15:08:02 -05:00
Liam DeBeasi 193e7f565a Merge branch 'main' into release-6.1.1 2023-02-06 09:44:14 -05:00
Liam DeBeasi 65bcbb4777 fix(icon): md and ios properties are reactive (#1174)
resolves #802
2023-02-03 09:19:32 -05:00
Amanda Johnston 98975ec0f5 fix(icon): remove auto-generated aria-label (#1170) 2023-01-20 10:18:28 -06:00
ionitron 2e9b493a05 chore(): update package lock files 2023-01-18 13:41:57 +00:00
ionitron 8f1f7fe9f3 v6.1.1 2023-01-18 13:41:52 +00:00
jonz94 93b4fa449b fix(icon): remove <title> during build step (#1169)
resolves #1168
2023-01-18 08:39:28 -05:00
Liam DeBeasi ee16638d07 merge release-6.1.0
Release 6.1.0
2023-01-17 14:32:46 -05:00
ionitron 2e76547a79 chore(): update package lock files 2023-01-17 19:28:11 +00:00
ionitron d7b25e79aa v6.1.0 2023-01-17 19:28:04 +00:00
Liam DeBeasi e0efa5f28d fix(icon): remove default <title> (#1166)
resolves #838, resolves #1049, resolves #1082
2023-01-17 14:12:32 -05:00
Liam DeBeasi 1b98f9d99f chore(ci): add production release script (#1154) 2022-11-18 13:42:30 -05:00
Liam DeBeasi 3bb4ba919f chore(ci): add lerna (#1153) 2022-11-18 13:19:19 -05:00
Liam DeBeasi 9cf31324ff chore(ci): add release CI stub (#1151) 2022-11-18 13:00:46 -05:00
Liam DeBeasi 1af1b48afb chore(ci): do not tag release for dev builds (#1152) 2022-11-18 11:34:00 -05:00
Liam DeBeasi 86ef073aca chore(): add bump version script (#1150) 2022-11-18 10:56:20 -05:00
Liam DeBeasi 33193e3749 chore(ci): add dev build task (#1149) 2022-11-18 10:49:15 -05:00
Liam DeBeasi 9d2dc11e08 merge release-6.0.4
6.0.4
2022-11-08 14:44:07 -05:00
Liam DeBeasi 44da0e40c5 6.0.4 2022-11-08 14:36:33 -05:00
Sean Perkins cafe8e6541 chore: exclude playwright test infra and test svg assets from collection output (#1143) 2022-11-08 14:33:56 -05:00
Sean Perkins 66858926cc fix(icon): icons will load when content security policies are enabled (#1141) 2022-11-08 13:45:01 -05:00
Amanda Johnston c37b691dd5 fix(): flip-rtl works if dir="rtl" is set on icon directly (#1142) 2022-11-08 10:11:26 -06:00
Vinay Harwani 0e3ba9922c chore(readme): update cdn url version in readme (#1112)
resolves #1093
2022-10-14 14:30:02 -04:00
Liam DeBeasi 36992fc01b chore(ci): e2e tests are run on CI (#1126) 2022-10-14 13:50:00 -04:00
Liam DeBeasi 5f2aab6cbe chore(ci): add update screenshots stub (#1125) 2022-09-30 16:38:13 -04:00
Liam DeBeasi fd90487afc test(icon): add playwright (#1124) 2022-09-30 16:36:12 -04:00
Liam DeBeasi 06b9b1fc59 chore(typescript): resolve errors (#1122) 2022-09-30 16:03:11 -04:00
Liam DeBeasi 0dfccdf016 chore(ci): run build on CI (#1121) 2022-09-30 15:23:48 -04:00
Brandy Carney 69e0817503 chore(github): remove duplicate labels key (#1119) 2022-09-29 16:15:04 -04:00
Brandy Carney 19629000ca chore(github): add ionitron issue bot for labeling (#1115) 2022-09-27 11:39:48 -04:00
Liam DeBeasi d13cd3333c chore(github): add issue templates (#1106) 2022-09-21 11:29:16 -04:00
Liam DeBeasi 20c396d8d7 merge release-6.0.3
6.0.3
2022-08-26 08:15:08 -05:00
Liam DeBeasi b6903a0ad8 6.0.3 2022-08-26 09:13:41 -04:00
Marco D'Auria 8d898d7170 fix(icon): sanitizer checks attribute name instead of value (#1087)
resolves #1088
2022-08-26 09:10:58 -04:00
Liam DeBeasi 7dd69094d1 merge release-6.0.2
6.0.2
2022-05-31 17:18:32 -04:00
Liam DeBeasi e79e5cd235 6.0.2 2022-05-31 17:17:27 -04:00
Liam DeBeasi 86a051ca63 merge release-6.0.1 2022-05-31 17:16:42 -04:00
Liam DeBeasi 28d0338ee0 fix(): improve compatibility with vite (#1066) 2022-05-31 17:14:57 -04:00
Liam DeBeasi 3ec9271e83 fix(icon): using icon in ssr environment no longer errors on HTMLElement (#1035) 2022-01-19 14:47:20 -05:00
Liam DeBeasi 19dd66469c merge release-6.0.0
6.0.0
2021-11-11 16:26:58 -05:00
Liam DeBeasi 43d61fe909 6.0.0 2021-11-08 16:29:59 -05:00
Liam DeBeasi 1038a7f682 fix(icon): avoid type collisions with ariaLabel and ariaHidden (#1014) 2021-11-08 16:26:01 -05:00
Liam DeBeasi 947091adf7 chore(): add install loader script 2021-11-02 17:22:18 +00:00
Liam DeBeasi 728aa746a0 merge release-5.5.4
5.5.4
2021-11-02 13:10:35 -04:00
Liam DeBeasi 32da247bc1 5.5.4 2021-11-02 13:08:44 -04:00
Liam DeBeasi f21bb0f097 chore(): update ionicons to stencil 2.10 (#1015) 2021-11-02 12:27:22 -04:00
Liam DeBeasi e6a5af1a96 merge release-5.5.3
5.5.3
2021-08-03 09:21:16 -04:00
Liam DeBeasi 36a0c6b103 5.5.3 2021-08-03 09:18:39 -04:00
Damian Tarnawsky e63653cbe1 fix(): reflect name property as attribute (#981)
resolves #975
2021-08-03 09:13:45 -04:00
Liam DeBeasi 4ca8139f77 5.5.2 (#983) 2021-06-17 10:12:16 -04:00
Liam DeBeasi 24caaad7d9 fix(build): add old ionicons.js file (#982) 2021-06-17 09:51:50 -04:00
Liam DeBeasi 8c2a507fcf 5.5.1 2021-03-22 14:11:16 -04:00
Liam DeBeasi c76f2a2556 fix(): adding aria-hidden no longer disables automatic rtl switching (#954) 2021-03-22 14:09:03 -04:00
Rafael Kraut 0d7f507677 chore: add tag "globe" to earth (#919) 2021-02-09 16:14:09 -06:00
Adam Bradley b3155d9603 5.5.0 2021-02-09 16:04:52 -06:00
Adam Bradley 9139a01e18 5.5.0-1 2021-02-02 09:46:20 -06:00
Adam Bradley 0541db0f28 chore: add "components/" to package json files 2021-02-02 09:45:34 -06:00
Adam Bradley 200678a619 5.5.0-0 2021-02-01 15:36:05 -06:00
Adam Bradley 66556ea45c feat(custom-elements): export ionicons/components
Also provide ionicons as a custom element which can be defined using `customElements.define()`

```
import { IonIcon } from "ionicons/components/ion-icon";
customElements.define("ion-icon", IonIcon);
```

The custom element build works the same as the lazy load build, and is also able to lazy load svgs on demand, either by giving it an exact url in the `src` attribute `<ion-icon src="./path/to/airplane.svg"></ion-icon>`, or by providing the name of the ionicon to load `<ion-icon name="airplane"></ion-icon>`.

If using the `name` attribute, you'll also need to set where to find the svg directory using `setAssetPath()`

```
import { setAssetPath } from "ionicons/components";
setAssetPath(location.href);
```
2021-02-01 15:28:33 -06:00
Adam Bradley b1c23f8dee 5.4.0 2021-01-26 12:18:27 -06:00
Adam Bradley 81f2fc1a84 feat: add new icons 2021-01-26 12:17:36 -06:00
Kevin Ports 1543daa010 5.3.0 2021-01-04 16:11:54 -06:00
Kevin Ports 500d15fec0 Add Microsoft logo 2021-01-04 14:59:33 -06:00
Adam Bradley a30dfb2886 update readme 2020-10-07 16:43:33 -05:00
Adam Bradley f16c5fb13d 5.2.3 2020-10-07 16:19:04 -05:00
Adam Bradley a134c76d50 update scripts 2020-10-07 16:16:53 -05:00
Adam Bradley 6753d715e2 using github releases for changelog instead 2020-10-07 14:38:17 -05:00
Adam Bradley c3722987c5 remove unused packages 2020-10-07 14:29:44 -05:00
Adam Bradley 7f96d8c725 5.2.2 2020-10-07 14:26:08 -05:00
Adam Bradley 7666f2d97a use np for release 2020-10-07 14:25:13 -05:00
Adam Bradley b73bb075fd update property docs 2020-10-07 14:24:56 -05:00
Ben 486ae96765 Fix unlink icons 2020-10-07 10:36:31 -05:00
Adam Bradley eca4c14f05 feat(sanitize): opt-out of sanitizing http fetch svg content 2020-10-07 09:03:20 -05:00
Adam Bradley 3dbc0c8263 5.2.1 2020-10-06 11:31:39 -05:00
Adam Bradley 81edbf2387 fix: remove double ionicon css class on svg 2020-10-06 11:28:47 -05:00
Adam Bradley cb0b2124ec 5.2.0 2020-10-06 11:20:57 -05:00
Adam Bradley eef739789f feat(cheatsheet): link dist/svg to cheatsheet icons 2020-10-06 11:18:24 -05:00
Adam Bradley 98fa89ea57 feat(currentColor): update dist/svg output to use currentColor
Closes #784 #805
2020-10-06 11:11:56 -05:00
Ben 107c075d88 Update color to black 2020-10-06 11:02:47 -05:00
Ben 2f3effb33f Fix outlines 2020-10-06 10:05:33 -05:00
Adam Bradley c580023063 chore: update script target 2020-10-06 09:33:28 -05:00
Adam Bradley 0f77aaf2db fix(src): fixed source svg inlined styles 2020-10-05 23:02:59 -05:00
nothingismagick cc7291248f chore(build): add 'constructor' to reservedKeywords (#760)
See this:
https://github.com/dotboris/vuejs-serverside-template-xss
2020-10-05 18:00:30 -05:00
Brad Mallow 81d9ff1995 docs: multiple people icon update name (#797) 2020-10-05 17:57:35 -05:00
Adam Bradley 71c7d80e54 chore: update dev deps 2020-10-05 16:40:09 -05:00
Tyler Holden 95cd90d790 docs(search): add "arrow" search term for caret icons (#858)
* Update: Add 'arrow' search term to caret icons

* Improve search termns for clipboard

* Added arrow search term to chevron
2020-10-05 16:30:25 -05:00
Simon c0fb92b87f docs: use and refer to stroke-width everywhere (#879) 2020-10-05 16:29:12 -05:00
Ben 9de2a0760e feat(icons): added new icons
New and modified icons update
2020-10-05 15:32:20 -05:00
Ben Sperry 38efaa1e8f Merge pull request #846 from whoacowboy/unlink-icon
Adding unlink icon
2020-09-29 13:13:26 -05:00
David Dal Busco 502d1f7077 fix: ariaHidden documentation source (#871) 2020-08-18 11:27:04 -05:00
David Dal Busco 01b0de6e80 feat: supports aria-hidden (#869) 2020-08-18 10:27:45 -05:00
Sander Muller 7d8e33e12c docs: Update renamed version of contacts to match the actual new icon name (#786) 2020-07-23 10:34:57 -05:00
Ken Sodemann 1069d8b4ab fix(search): add login and logout search terms (#853)
The current terms stop after "log" or you have to type just "in" or "out"
This allows the searcher to narrow to login or logout specifically if
they want to.
2020-06-28 19:26:48 -05:00
Adam Bradley 9992cc07a3 5.1.2 2020-06-25 17:34:04 -05:00
Adam Bradley 3aed6eee31 fix(types): temporary fix for projects using older typescript versions 2020-06-25 17:32:53 -05:00
Adam Bradley c470b85c34 5.1.1 2020-06-25 15:44:51 -05:00
Adam Bradley 3a2ab6ec27 fix(types): add "type" to type exports so it's not added to the transpile js file 2020-06-25 15:41:19 -05:00
Adam Bradley 63eee58f89 chore: update data ordering 2020-06-25 15:40:41 -05:00
Adam Bradley 0642e2112b chore: bump deps 2020-06-25 15:35:40 -05:00
Ben Sperry e6973d0c55 Merge pull request #849 from ionic-team/fix/exerciseIconTags
fix(tags): add exercise tag to icons
2020-06-24 10:08:50 -05:00
Ken Sodemann 7668a3cf62 fix(tags): add exercise tag to icons
While doing this PR, I also found and fixed an inconsistency with the
tags for female and woman. I made those consistent.
2020-06-24 06:31:23 -05:00
Perry Govier cfddc2e642 Update data.json (#847) 2020-06-23 14:51:09 -05:00
Adam Bradley 1cef0acb10 5.1.0 2020-06-23 14:41:54 -05:00
Adam Bradley c5e4047206 chore: update icon data 2020-06-23 14:20:23 -05:00
Adam Bradley 63c9ee02a5 feat: update firebase 2020-06-23 14:20:12 -05:00
Adam Bradley 2e7fe14315 feat: update facebook 2020-06-23 14:20:02 -05:00
Adam Bradley f61e47c698 feat: update edge 2020-06-23 14:19:53 -05:00
Adam Bradley 922f43387b feat: add venmo 2020-06-23 14:19:39 -05:00
Adam Bradley 73526e40b8 feat: add tiktok 2020-06-23 14:19:30 -05:00
Adam Bradley 7ce073d3fe feat: add soundcloud 2020-06-23 14:19:21 -05:00
Adam Bradley 1b07d10212 feat: add paypal 2020-06-23 14:19:12 -05:00
Adam Bradley 8983749600 feat: add medium 2020-06-23 14:19:04 -05:00
Adam Bradley fa8d76e20c feat: add gitlab 2020-06-23 14:18:54 -05:00
Adam Bradley 91fa34ebc7 feat: add docker 2020-06-23 14:18:11 -05:00
Adam Bradley 14fd26b38f feat: add behance 2020-06-23 14:18:01 -05:00
Adam Bradley 2301be8f6c chore: bump deps 2020-06-23 14:14:09 -05:00
Ben Sperry 94cf9b52b6 Merge pull request #845 from thomaschaaf/patch-1
Make it easier to find the empty circle
2020-06-23 11:10:57 -05:00
Thomas Schaaf 00e7012192 Make it easier to find the empty circle 2020-06-19 11:19:31 +02:00
James 2204753a37 Adding unlink icon 2020-06-14 09:13:13 -07:00
Adam Bradley cd791f735c chore: add prettier config 2020-05-18 16:08:09 -05:00
Adam Bradley b9c65a794d chore: bump deps and remove unused deps 2020-05-18 16:07:49 -05:00
Adam Bradley b16eed45a3 5.0.1 2020-03-05 10:38:39 -06:00
Adam Bradley ed44918e29 chore: bump to stencil 1.8.11 2020-03-05 10:36:10 -06:00
Ely Lucas 51a431e6ad fix: fixes for ssr support 2020-02-26 12:11:32 -07:00
Ely Lucas dab04ff606 chore: bump to stencil 1.8.10 2020-02-26 12:11:32 -07:00
Simon Hänisch 1c6540e770 docs: add info about breaking change of alert icon (#783) 2020-02-17 17:36:04 -06:00
Adam Bradley 02eabdf6c5 chore: update release script 2020-02-06 09:47:14 -06:00
Adam Bradley 5a2e8e9bf4 5.0.0 2020-02-06 09:44:26 -06:00
Adam Bradley 5c8f2468be chore: update package.json 2020-02-06 09:38:55 -06:00
Kevin Ports 0d757ad96a Fix changelog typo 2020-01-28 10:24:08 -06:00
Kevin Ports e80b5acb0c 5.0.0-17 2020-01-27 11:23:34 -06:00
Kevin Ports 41bf08cee2 Merge branch 'peterennis-patch-2' 2020-01-22 10:38:22 -06:00
Kevin Ports 3c3ce88192 Fix merge conflict 2020-01-22 10:38:07 -06:00
Kevin Ports 8c0f457f23 Correct the return-left/right changelog entry 2020-01-21 16:33:59 -06:00
Kevin Ports bc14bfea99 fix src svg typo causing incorrect female-outline to be built 2020-01-21 16:04:59 -06:00
peterennis 8af821f5b8 Update CHANGELOG.md
typo
2020-01-16 21:48:30 -08:00
Kevin Ports 32cb024b42 5.0.0-16 2020-01-16 15:32:46 -06:00
peterennis c386872443 Update CHANGELOG.md
typos
2020-01-15 16:43:42 -08:00
Kevin Ports 4c95d03958 Updates (#756)
* Rename mail-notification to mail-unread

* rename radio-on/off to radio-button-on/off

* Add missing checkmark-done svg

* Rebuild svg changes

* Update changelog and readme

* Update changelog
2020-01-15 14:36:49 -06:00
Adam Bradley 8a54bf0a71 chore(build): add package-lock 2020-01-03 12:22:06 -06:00
Kevin Ports 159ceef81e 5.0.0-15 2020-01-03 10:32:54 -06:00
Brandy Carney c9068ed4c0 chore(icon): build with latest stencil 2020-01-03 11:29:20 -05:00
Kevin Ports acab74d2b9 5.0.0-14 2020-01-02 17:10:02 -06:00
Kevin Ports 3d7ed854c7 Correct fill in default vertical and horizontal ellipses svg 2020-01-02 17:07:52 -06:00
Adam Bradley 46afd68218 5.0.0-13 2019-11-21 15:30:26 -06:00
Adam Bradley 6342807b26 refactor(icons): export ionicons/icons package as data urls 2019-11-21 15:25:53 -06:00
Liam DeBeasi 03f5914ecf 5.0.0-12 2019-11-19 15:45:26 -05:00
Liam DeBeasi f97439c703 chore(): fix toggle test (#742) 2019-11-19 15:38:58 -05:00
Liam DeBeasi 352c80b8b6 fix(icon): include chevron icons in flipRtl (#740)
* include new chevron in fliprtl'

* add test
2019-11-19 15:33:59 -05:00
Liam DeBeasi cecdb9c0cd fix(icon): apply correct class to svg (#739)
* fix font size

* fix(icon): apply display to svg instead of ionicon class
2019-11-19 15:23:55 -05:00
Liam DeBeasi 052f07b103 chore(): fix tests, update dependencies, update contributing guide (#741)
* fix outdated info

* update contributing guide

* Fix typo
2019-11-19 15:04:48 -05:00
Adam Bradley 5f31f277db 5.0.0-11 2019-10-18 10:31:27 -05:00
Adam Bradley 793288593c chore(stencil): bump stencil core 2019-10-18 10:24:15 -05:00
Adam Bradley bc637cc951 5.0.0-10 2019-10-17 14:26:26 -05:00
Adam Bradley 993a314eb6 fix(types): update package.json types 2019-10-17 14:24:40 -05:00
Adam Bradley 5b7fc526bc 5.0.0-9 2019-10-17 11:53:59 -05:00
Adam Bradley dfb62b67e0 fix(toggle): rename switch to toggle 2019-10-17 11:52:25 -05:00
Adam Bradley b85a855b7e chore: move validation pass 2019-10-16 09:26:34 -05:00
Adam Bradley 57abf83ec5 chore(validate): add svgo validation step 2019-10-15 15:17:42 -05:00
Adam Bradley a9eba9ddb4 5.0.0-8 2019-10-15 11:18:03 -05:00
Adam Bradley 1286103494 chore(collection): update dist/collection to use optimized svgs 2019-10-15 11:15:22 -05:00
Kevin Ports b9cd35bf20 5.0.0-7 2019-09-26 09:05:04 -05:00
Kevin Ports cc15712e03 Add two pass svg optimization 2019-09-26 08:59:59 -05:00
Kevin Ports 8afeb4c6c9 5.0.0-6 2019-09-25 17:22:11 -05:00
Kevin Ports ccb3e41441 Add descriptive title element to svg build 2019-09-25 17:19:35 -05:00
Kevin Ports b74a92328c Replace src svg with unoptimized exports 2019-09-25 16:12:22 -05:00
Kevin Ports b01be99602 5.0.0-5 2019-09-25 14:09:43 -05:00
Adam Bradley 279de8512c feat(svg): add source svgs to distribution 2019-09-25 13:58:07 -05:00
Kevin Ports 6f1b29a40a 5.0.0-4 2019-09-25 10:18:17 -05:00
Kevin Ports a76a78c568 Add css variable for stroke-width so it can be styled outside of shadow (#728)
* Add css variable for stroke width so it can be styled outside of shadow

* add fallback and default value for css var
2019-09-25 10:04:11 -05:00
Kevin Ports 2207229f25 Update changelog 2019-09-24 12:07:06 -05:00
Kevin Ports eaee160c88 Fix chatbubble ellipses variant naming error 2019-09-24 12:05:40 -05:00
Kevin Ports b4c51b089a Update changelog 2019-09-24 11:57:45 -05:00
Kevin Ports db473aeb45 Add duplicates for missing variants 2019-09-24 11:56:07 -05:00
Kevin Ports ce43527435 5.0.0-1 2019-09-23 13:24:57 -05:00
Kevin Ports 174d2ec88d new build 2019-09-23 13:20:31 -05:00
Kevin Ports 7152cfd6c2 Correct a few src svg filename issues 2019-09-23 13:17:05 -05:00
Adam Bradley 9e254846f5 chore: development readme 2019-09-18 12:54:52 -05:00
Adam Bradley a1142adfe5 5.0.0-0 2019-09-18 12:36:45 -05:00
Adam Bradley 2d0f3aa119 chore: rename data.json to ionicons.json 2019-09-18 12:28:10 -05:00
Adam Bradley 587e450cdf chore: remove unused scripts 2019-09-18 12:27:45 -05:00
Adam Bradley e48b0305d5 refactor(stroke-width): set stroke-width via css 2019-09-18 12:23:30 -05:00
Adam Bradley ecd4406c42 chore(build): update release script 2019-09-18 12:06:55 -05:00
Adam Bradley fa1c145f94 test: remove mode tests tests 2019-09-18 11:00:34 -05:00
Adam Bradley 062ca67692 refactor: port tag data 2019-09-17 14:57:26 -05:00
Adam Bradley 0615f89ef8 chore(cheatsheet): remove style toggle 2019-09-17 14:39:03 -05:00
Adam Bradley 67c8bf0565 refactor(toggle): rename switch to toggle 2019-09-17 14:33:34 -05:00
Adam Bradley f0d22ccc26 fix(color): fix fill and stroke currentColor 2019-09-17 14:19:13 -05:00
Adam Bradley 65e1cfabfe refactor: update build scripts 2019-09-17 12:55:13 -05:00
Adam Bradley ac4fbbf247 refactor: remove scss 2019-09-17 10:16:33 -05:00
Adam Bradley 1be0c8eb21 refactor: update v5 icons 2019-09-17 10:16:05 -05:00
Adam Bradley f57e4988b0 4.6.3 2019-08-20 22:22:30 -05:00
Simon Hänisch 0df64cf8b8 fix: default export a function in global script (#720) 2019-08-20 22:21:15 -05:00
Adam Bradley 444dc18700 4.6.2 2019-07-23 09:54:00 -05:00
Adam Bradley aacebf599d 4.6.2-0 2019-07-11 20:05:17 -05:00
Adam Bradley 8839341860 fix(package): no sideEffect exports 2019-07-11 20:02:48 -05:00
Manu Mtz.-Almeida 1557658d90 4.6.1 2019-06-28 22:57:07 +02:00
Manu Mtz.-Almeida 070faa8453 chore(): update deps 2019-06-28 22:56:40 +02:00
Brandy Carney 020dcf93b7 4.6.0 2019-06-28 10:58:38 -04:00
Manu Mtz.-Almeida 96e62cc26d 4.5.10-2 2019-06-25 20:45:27 +02:00
Manu Mtz.-Almeida c8b64b1e99 chore(): add version 2019-06-25 20:43:59 +02:00
Manu Mtz.-Almeida 0320bf2926 fix(): dont error 2019-06-25 20:43:13 +02:00
Manu Mtz.-Almeida 668aacae7e Merge branch 'remove-site' 2019-06-25 20:42:42 +02:00
Manu MA 8fee03af6d Delete CNAME 2019-06-25 20:35:05 +02:00
Manu Mtz.-Almeida ce43b6c4af refactor(): remove site 2019-06-20 21:34:59 +02:00
Ely Lucas 38c00319ce fix script build order 2019-06-20 11:13:55 -06:00
Manu Mtz.-Almeida c67103ae33 chore(): update site 2019-06-19 22:59:04 +02:00
Manu Mtz.-Almeida 30b2b9cdf5 4.5.10-1 2019-06-19 22:58:04 +02:00
Manu Mtz.-Almeida ced468a360 fix(): types generation 2019-06-19 22:56:56 +02:00
Adam Bradley 354195d163 4.5.10-0 2019-06-13 09:46:20 -05:00
Adam Bradley a3b73a5e3a var 2019-06-13 09:35:12 -05:00
Adam Bradley bb6b8c122e wip 2019-06-13 09:31:10 -05:00
Adam Bradley 3d036a08a3 chore: update stencil devDeps 2019-06-12 16:16:31 -05:00
Manu Mtz.-Almeida 1d5e097556 chore(): website deploy 2019-06-07 14:56:23 +02:00
Manu Mtz.-Almeida 94bc599203 4.5.9-1 2019-06-07 14:55:25 +02:00
Manu Mtz.-Almeida 55fcc4b9f2 fix(): mode support 2019-06-07 14:54:54 +02:00
Adam Bradley 9f77b8c7a2 4.5.9-0 2019-05-28 21:10:04 -05:00
Adam Bradley 6398aa0a11 refactor: stencil one updates 2019-05-28 21:07:42 -05:00
Brandy Carney 1c4399400f 4.5.8 2019-05-10 11:33:46 -04:00
Brandy Carney d1e210990f 4.5.8-0 2019-05-10 11:31:55 -04:00
Brandy Carney 8ac5362c7c 4.5.7 2019-05-10 11:23:55 -04:00
Brandy Carney 2542b5ac73 fix(icon): set fill on host element and remove stroke (#688)
- fixes the border box around custom icons

references ionic-team/ionic#16483
2019-05-10 11:20:31 -04:00
Brandy Carney 510232d6a1 fix(svg): remove hardcoded fills from icons (#689)
fixes #529
2019-05-10 11:06:30 -04:00
Brandy Carney 2466debdaa chore: add prepare script 2019-05-09 14:54:54 -04:00
Brandy Carney c4dd4a24aa chore: add dev release script 2019-05-09 14:41:56 -04:00
Brandy Carney a3ae03e507 4.5.6 2019-04-10 17:26:13 -04:00
Brandy Carney c14a19435c fix(icon): add mode class
references ionic-team/ionic#17608
2019-04-10 17:17:54 -04:00
perry 4c700e2beb fresh build 2019-03-11 11:47:04 -05:00
perry 373aad41d5 fresh docs build 2019-02-18 11:32:10 -06:00
perry 1326c53ae9 Updating stencil router to fix issue with turkish letters 2019-02-18 11:28:38 -06:00
Kevin Ports ce2a55406f Update site 2019-02-08 15:38:49 -06:00
Kevin Ports af5f4019d3 Actually fix link 2019-02-08 15:36:30 -06:00
Kevin Ports 81086f94bb Fix link to docs in v2 2019-02-08 15:34:51 -06:00
Manu Mtz.-Almeida 7baec40185 chore(): update website 2019-01-22 19:19:41 +01:00
Manu Mtz.-Almeida a41f237f74 4.5.5 2019-01-22 19:11:29 +01:00
Manu Mtz.-Almeida 9ca5040457 fix(rlt): use document.dir 2019-01-22 19:06:50 +01:00
Manu Mtz.-Almeida aae7600497 chore(): update website 2019-01-22 18:46:30 +01:00
Manu Mtz.-Almeida b847b3b9c0 4.5.4 2019-01-22 18:42:29 +01:00
Manu Mtz.-Almeida d8a17ea0db 4.5.3 2019-01-22 18:35:19 +01:00
Manu Mtz.-Almeida c9f08cd1c7 fix(aria): adds ariaLabel when using the icon prop 2019-01-22 18:34:38 +01:00
Brandy Carney 5611991490 4.5.2 2019-01-21 15:24:14 -05:00
Brandy Carney 7f24e5ebeb 4.5.2-0 2019-01-21 15:07:10 -05:00
Brandy Carney b4b6b75c0e chore(npm): update stencil 2019-01-21 14:48:34 -05:00
Brandy Carney 5c1c6e195f fix(icon): update to include rtl styles #656
- adds the ability to run npm start and launch the icon component locally
- adds a test for viewing the icon component locally
- updates the component css to include rtl styles
- updates contributing to include steps for this

references ionic-team/ionic#17012
2019-01-18 12:33:57 -05:00
Brandy Carney 12ccf40284 docs(readme): updaet to include more usage examples and remove icon class 2019-01-17 13:43:51 -05:00
Brandy Carney d6757c5228 docs(site): update the docs site 2019-01-17 13:09:57 -05:00
Brandy Carney 367d7f8b30 docs(icon-tags): edit icon tags for better searchability 2019-01-17 13:03:26 -05:00
Brandy Carney 6157a6123d fix(svg): remove st0 class styling
closes #576
2019-01-17 11:23:40 -05:00
Brandy Carney 7b3a8ae0bb docs(readme): move contributing and add code highlighting 2019-01-17 11:19:41 -05:00
Brandy Carney b2cb08e0f1 docs(github): update readme and add contributing and coc 2019-01-16 17:57:23 -05:00
Brandy Carney 50301e6afb fix(svg): remove the st0 classes and styles from the svgs
references #529
2019-01-14 14:43:46 -05:00
Daniel Spindelbauer 266411cdc4 Fixed GitHub spelling in nav bar (#641) 2019-01-11 01:51:38 +01:00
Katherine Yang 7e6c9d2106 docs(): add icon attribute to docs (#631) 2019-01-11 01:51:22 +01:00
Manu Mtz.-Almeida d7b0171f9a 4.5.1 2018-12-17 17:22:56 +01:00
Manu Mtz.-Almeida cef8b5e20e fix(icon): fix webpack import in legacy systems 2018-12-17 17:19:54 +01:00
pwespi 34c7f7c0ad docs(icon-tags): edit bed icon tags 2018-12-16 14:06:42 +01:00
pwespi f293988f4f docs(icon-tags): edit icon tags for better searchability 2018-12-16 14:02:33 +01:00
Manu Mtz.-Almeida 0ad2529e1d chore(): update website 2018-12-13 15:04:03 +01:00
Manu Mtz.-Almeida 437946f7f3 4.5.0 2018-12-13 14:52:53 +01:00
Manu Mtz.-Almeida b5edd7b8b2 chore(): update stencil 2018-12-13 14:52:16 +01:00
Manu Mtz.-Almeida 52ccef83d3 4.5.0-3 2018-12-12 23:15:39 +01:00
Manu Mtz.-Almeida 6b324459ee chore(): fix types 2018-12-12 23:14:35 +01:00
Manu Mtz.-Almeida 33e9d3a125 4.5.0-2 2018-12-12 23:03:24 +01:00
Manu Mtz.-Almeida 6020525ad2 chore(): update definitions 2018-12-12 23:02:15 +01:00
Manu Mtz.-Almeida b3a147bb89 4.5.0-1 2018-12-12 22:28:36 +01:00
Manu Mtz.-Almeida 03bea5cfb4 fix(map): global map 2018-12-12 22:28:01 +01:00
Manu Mtz.-Almeida 3b3e212517 4.5.0-0 2018-12-12 20:58:13 +01:00
Manu Mtz.-Almeida bf2f7059d1 feat(esm): add map loader 2018-12-12 20:56:24 +01:00
Manu Mtz.-Almeida 803641b5ef chore(): update website 2018-11-26 21:59:32 +01:00
Manu Mtz.-Almeida cb0f2b789f 4.4.8 2018-11-26 21:58:47 +01:00
Manu Mtz.-Almeida 696575a925 chore(): update stencil 2018-11-26 21:58:18 +01:00
Manu Mtz.-Almeida c96037ff3f fix(icon): make sure MD is always used by default 2018-11-26 21:58:10 +01:00
Manu Mtz.-Almeida 76f4f6d90b chore(): update website 2018-11-15 18:07:51 +01:00
Manu Mtz.-Almeida 76799e6d2a 4.4.7 2018-11-15 17:37:49 +01:00
Manu Mtz.-Almeida 685c09df15 fix(capacitor): accept 0 as valid status code 2018-11-15 17:37:21 +01:00
Cam Wiegert e8e8216f35 fix: remove unused size custom properties (#635)
This removes the use of two undocumented custom properties from the component styles.

- `--ion-icon-size-large`
- `--ion-icon-size-small`
2018-11-06 10:21:02 -06:00
Neil Kalman 5c9a238abf remove style tag from additional svgs 2018-10-21 14:49:56 +03:00
Neil Kalman 54dde87b47 remove inner style so that --ion-color-base will apply 2018-10-21 14:03:04 +03:00
Kevin Ports 92c579228e Add Ionic referral link to headline 2018-10-19 10:22:41 -05:00
Kevin Ports e080c27251 dev build should look for ts file not js stencil config file 2018-10-18 15:01:43 -05:00
Manu Mtz.-Almeida f3e720c129 chore(): update website 2018-10-14 11:20:19 -05:00
Manu Mtz.-Almeida b9e6dd787e chore(): update website 2018-10-14 11:11:36 -05:00
Manu Mtz.-Almeida d00a1db48e 4.4.6 2018-10-14 11:10:13 -05:00
Manu Mtz.-Almeida 500bd26e56 fix(): remove console log 2018-10-14 11:08:43 -05:00
Manu Mtz.-Almeida 73bc0a596a chore(): update website 2018-10-14 10:59:39 -05:00
Manu Mtz.-Almeida 02e6c71099 4.4.5 2018-10-14 10:58:45 -05:00
Manu Mtz.-Almeida 1445bbd4a9 fix(): scoped css race condition 2018-10-14 10:57:11 -05:00
Adam Bradley c0e2a0498b chore(deps): update node-sass 2018-10-12 13:18:05 -05:00
perry c493761abc docs version bump 2018-10-08 10:07:32 -05:00
perry 4c07e02372 FF bug with this stenicl version 2018-10-05 23:52:52 -05:00
Manu Mtz.-Almeida 354665f069 chore(): update website 2018-09-25 23:41:48 +02:00
Manu Mtz.-Almeida 43b4fff014 4.4.4 2018-09-25 23:36:58 +02:00
Manu Mtz.-Almeida c14505fb28 chore(): update to latest stencil 2018-09-25 23:36:30 +02:00
Manu Mtz.-Almeida 7f4291e460 fix(webpack): fix warning 2018-09-25 22:52:59 +02:00
Manu Mtz.-Almeida f8a367a1c8 4.4.3 2018-08-27 21:08:58 +02:00
Manu Mtz.-Almeida c1bcd61d5a chore(): update stencil 2018-08-27 21:08:27 +02:00
Manu Mtz.-Almeida 9a9aca0ae0 chore(): update website 2018-08-27 19:12:35 +02:00
Manu Mtz.-Almeida fad3fc4580 4.4.2 2018-08-27 19:11:27 +02:00
Manu Mtz.-Almeida 2c36419fd7 chore(): update to latest stencil 2018-08-27 19:10:42 +02:00
Manu Mtz.-Almeida 812b488515 fix(webpack): using file-loader api to bundle svgs in the right place 2018-08-23 19:16:50 +02:00
Manu Mtz.-Almeida bd3a98905f chore(): update website 2018-08-23 17:39:55 +02:00
Manu Mtz.-Almeida 3a226bac77 4.4.1 2018-08-23 17:37:01 +02:00
Manu Mtz.-Almeida 29f812aaaf chore(): update to latest stencil 2018-08-23 17:36:31 +02:00
Manu Mtz.-Almeida 7d3dd41f59 chore(): update website 2018-08-22 22:07:40 +02:00
Manu Mtz.-Almeida 422bda7983 4.4.0 2018-08-22 22:06:49 +02:00
Manu Mtz.-Almeida e7f12e3df4 feat(): generate index.js for webpack 2018-08-22 22:03:19 +02:00
Manu Mtz.-Almeida 28eb1260d5 chore(): update to latest stencil 2018-08-22 22:03:06 +02:00
Manu Mtz.-Almeida 9dc22085ee chore(): updated website 2018-08-02 02:29:17 +02:00
Manu Mtz.-Almeida 3d8457d5df 4.3.0 2018-08-02 02:27:53 +02:00
Manu Mtz.-Almeida c41d08a4fe fix(svg): new scoped css 2018-08-02 02:27:24 +02:00
Manu Mtz.-Almeida 0e737a1aa8 chore(): add tslint rules 2018-07-29 16:27:02 +02:00
Manu Mtz.-Almeida 7bb0d7b232 chore(): update website 2018-07-29 15:24:07 +02:00
Manu Mtz.-Almeida 29a6c8b996 4.2.6 2018-07-29 15:23:07 +02:00
Manu Mtz.-Almeida 0f4438f581 fix(css): fix color conflict 2018-07-29 15:22:31 +02:00
Manu Mtz.-Almeida 1c5211c47c chore(): update website 2018-07-24 01:19:16 +02:00
Manu Mtz.-Almeida b0b67d51dd 4.2.5 2018-07-24 01:17:28 +02:00
Manu Mtz.-Almeida 1c5942ad96 chore(): disable package-lock 2018-07-24 01:14:28 +02:00
Manu Mtz.-Almeida c635b65d75 feat(icon): lazy loading can be disabled 2018-07-24 01:13:44 +02:00
Manu Mtz.-Almeida a15a2f0f89 chore(): update site 2018-06-29 02:30:29 +02:00
Manu Mtz.-Almeida 1a80387c54 4.2.4 2018-06-29 02:25:34 +02:00
Manu Mtz.-Almeida bea74662db fix(icon): always lowercase name 2018-06-29 02:24:25 +02:00
Manu Mtz.-Almeida fcfe309839 chore(): update site 2018-06-29 01:40:26 +02:00
Manu Mtz.-Almeida 918c27f1fd 4.2.3 2018-06-29 00:14:20 +02:00
Manu Mtz.-Almeida 8f6706e1b4 chore(): update dependencies and site 2018-06-28 12:28:15 +02:00
Manu Mtz.-Almeida ab0f7cab07 feat(mode): base mode can be changed 2018-06-27 23:27:40 +02:00
Manu Mtz.-Almeida 4d16d6b5bb fix(icon): missing IntersectionObserver check 2018-06-26 22:17:04 +02:00
Adam Bradley 080520c272 4.2.2 2018-06-26 14:55:16 -05:00
Adam Bradley 3d1d7b1287 docs(): rebuild for 4.2.2 2018-06-26 14:53:19 -05:00
Manu MA 92bf42fc66 fix(size): :host does not have enough priority 2018-06-26 14:43:14 -05:00
Adam Bradley 38e75af977 4.2.1 2018-06-20 15:17:17 -05:00
Adam Bradley 978d7f0520 docs(): rebuild for 4.2.1 2018-06-20 15:14:50 -05:00
Manu MA 10ca108e3e fix(icon): scoped css 2018-06-20 15:06:52 -05:00
perry c6238c8a36 trying a new font path 2018-06-14 11:40:27 -05:00
perry 8bb5ff94c8 updating node-sass 2018-06-14 11:23:40 -05:00
Adam Bradley fec5d9b436 chore(): update data to 4.2.0 2018-06-14 09:05:18 -05:00
Adam Bradley 6f97fcc1b4 4.2.0 2018-06-14 09:03:48 -05:00
Adam Bradley 7c5116b1cb docs(): rebuild and update to 4.2.0 2018-06-14 09:00:36 -05:00
Manu MA fbd6f853f2 feat(): using shadow-dom 2018-06-14 08:48:15 -05:00
Kevin Ports 31127430b1 Rebuild docs site in prod mode 2018-05-21 15:49:36 -05:00
Adam Bradley b6849aa02d Update readme.md 2018-05-21 15:24:26 -05:00
Kevin Ports ffe501d0dc Rebuild docs site 2018-05-21 11:45:39 -05:00
Kevin Ports 9bc7938f97 Fix merge conflicts 2018-05-21 11:43:57 -05:00
Kevin Ports 61874d3b39 Cleanup 2018-05-21 11:41:00 -05:00
Kevin Ports fb6e291605 Fix logo icon type code snippet 2018-05-21 11:35:59 -05:00
Adam Bradley a73cef8b2f rebuild docs 2018-05-21 11:28:32 -05:00
Adam Bradley bd1f3c3ac6 4.1.2 2018-05-21 11:20:06 -05:00
Adam Bradley 012ed970ba update docs 2018-05-21 11:18:59 -05:00
Adam Bradley 1dce831baf update readme version 2018-05-21 11:17:01 -05:00
Adam Bradley c9a11ad2a3 fix(requests): do not use fetch keepalive due to chrome bug 2018-05-21 11:15:17 -05:00
Adam Bradley 1c88d96cc5 fix(package): fix stencil config script 2018-05-21 10:56:31 -05:00
Manu MA c3bfea5f59 fix(icon): css for custom icons 2018-05-21 10:20:43 -05:00
Kevin Ports 008e2f7b03 Fix broken copy script 2018-05-17 11:25:32 -05:00
Kevin Ports 62d54535fb Update footer links 2018-05-16 16:14:28 -05:00
Adam Bradley 08b5f4bb35 always lowercase mode and name props 2018-05-16 11:32:55 -05:00
Adam Bradley d705685298 publish 4.1.1 docs 2018-05-16 11:15:51 -05:00
Adam Bradley d1ac8c42ee add clean script 2018-05-16 11:15:28 -05:00
Adam Bradley d5ba02861e 4.1.1 2018-05-16 11:09:00 -05:00
Adam Bradley d982853a2e docs update 2018-05-16 11:08:00 -05:00
Adam Bradley fb6d42d137 publish docs update 2018-05-16 11:06:38 -05:00
Adam Bradley 067b24e63c add test for ios/md/mode attributes 2018-05-16 11:05:24 -05:00
Adam Bradley aa0a39cd64 update stencil 2018-05-16 10:56:14 -05:00
Adam Bradley f1671ec6d8 add unit tests 2018-05-16 10:53:38 -05:00
Adam Bradley 778b255877 fix ios/md attributes 2018-05-16 10:53:24 -05:00
Adam Bradley ed67d22986 update links 2018-05-16 10:52:52 -05:00
Adam Bradley 390c852c39 update docs 2018-05-16 10:43:41 -05:00
Adam Bradley 13de75de47 fix designerpack build 2018-05-16 09:43:12 -05:00
Adam Bradley a0a8897378 fix typo 2018-05-16 09:31:55 -05:00
Adam Bradley 380ec72221 update usage 2018-05-15 21:19:50 -05:00
Adam Bradley 9b4a4b954f update version 2018-05-15 21:04:16 -05:00
Adam Bradley 326c9dd81b use code blocks 2018-05-15 21:00:16 -05:00
Adam Bradley d2e6437909 4.1.0 2018-05-15 20:56:24 -05:00
Adam Bradley 9349388777 update usage 2018-05-15 20:55:33 -05:00
Adam Bradley 5747efba6b update custom svg 2018-05-15 20:46:16 -05:00
Adam Bradley c4db612a9d update font icon 2018-05-15 20:41:42 -05:00
Adam Bradley 7df2f7befd update usage 2018-05-15 20:23:20 -05:00
Adam Bradley 13ea94f9b5 update docs build 2018-05-15 17:12:40 -05:00
Adam Bradley 48b2e9b0e1 update scripts 2018-05-15 17:12:22 -05:00
Adam Bradley 8e38047d13 updated usage 2018-05-15 17:11:31 -05:00
Adam Bradley 1c2d8da629 feat(svg): fetch svg files 2018-05-15 17:09:24 -05:00
Adam Bradley 6b805f730d update tsconfig 2018-05-15 17:07:15 -05:00
Adam Bradley a0999bd081 remove plane 2018-05-15 17:06:55 -05:00
Kevin Ports 06f5d659d5 Update usage documentation 2018-05-14 14:00:16 -05:00
Kevin Ports 9a52be8470 Workaround github pages routes h and our history router 2018-05-10 14:50:27 -05:00
Kevin Ports 35140e77df Remove pre-render 2018-05-10 14:37:13 -05:00
Adam Bradley 69915ed0dd prerender homepage 2018-05-10 14:24:36 -05:00
Kevin Ports 6e2105337d Merge branch 'master' of github.com:ionic-team/ionicons 2018-05-10 14:10:35 -05:00
Kevin Ports 956429f1ad Rebuild assets for site 2018-05-10 14:10:29 -05:00
Adam Bradley 14d1506df8 Create CNAME 2018-05-10 14:04:59 -05:00
Kevin Ports 562c3c741c Merge branch 'master' of github.com:ionic-team/ionicons 2018-05-10 14:02:04 -05:00
Kevin Ports 17318fe08b Remove /docs from gitignore 2018-05-10 14:01:23 -05:00
Adam Bradley 49627a90ba 4.0.0 2018-05-10 13:57:04 -05:00
Adam Bradley 578d69a225 update to stencil 0.8.2 2018-05-10 13:46:17 -05:00
Kevin Ports 3e57401ce2 Docs updates (#533)
* New docs landing page design

* Add icon type toggle, new toast bar layout

* Design tweaks, responsive toast bar

* Move toast bar to separate component

* Sticky list headers, sitcky header nav, toggle focus between search inputs on scroll

* Add svg source file zip archiving to build scripts

* Add links to download svgs

* Tweak header bar overlay state threshold

* Get rid of toast bar flashing on first page load

* Cleanup, adding some presentational details

* Add mobile styles

* Add router, scss

* Finish mobile styles, browser testing fixes

* Finish mobile styles, browser testing fixes

* Add version to data.json file, a few style tweaks

* Add 404 page and router switch

* A few route tweaks

* Update stencil, a few fixes

* Add og image, update meta data

* Add Twitter card meta

* Custom search input clear button

* cleanup

* Woops! git was ignoring the src/docs folder

* Add sticky subheaders back in for icon list

* Update OG image

* Update bug in ios trash icon
2018-05-10 13:37:50 -05:00
Adam Bradley 5c1c55ae80 4.0.0-19 2018-04-03 15:53:21 -05:00
Adam Bradley 48f3ee95c8 chore(docs): update docs stencil config 2018-04-03 15:51:20 -05:00
Adam Bradley bac49870cb chore(package): update to stencil 0.7.12 2018-04-03 15:48:47 -05:00
Adam Bradley 6c55058ddb chore(build): rename to release 2018-04-03 15:40:23 -05:00
Cam Wiegert 19785fe226 fix(svgo): remove fill/stroke attributes from svg 2018-04-03 15:39:01 -05:00
Adam Bradley 18077c9d67 4.0.0-18 2018-02-27 14:23:49 -06:00
Adam Bradley 492c353fc2 chore(package): update to stencil 0.6.11 2018-02-27 14:21:39 -06:00
Adam Bradley 515171c79d 4.0.0-17 2018-02-27 12:13:09 -06:00
Adam Bradley 3f40e8029b chore(package): update to stencil 0.6.9 2018-02-27 12:11:32 -06:00
Adam Bradley 76023ce723 4.0.0-16 2018-02-23 10:43:26 -06:00
Adam Bradley 93726208ff chore(package): update to stencil 0.6.7 2018-02-23 10:41:46 -06:00
Adam Bradley 7ad59e353d 4.0.0-15 2018-02-22 10:36:49 -06:00
Adam Bradley 922709e245 chore(package): update to stencil 0.6.6 2018-02-22 10:34:53 -06:00
Adam Bradley bd216dde19 docs(css): do not depend on sass 2018-02-22 10:34:26 -06:00
Brandy Carney b115bd818d 4.0.0-14 2018-02-15 15:46:48 -05:00
Brandy Carney 3704a4cd96 fix(icon): add the colors to icon and size attribute
closes #524
2018-02-15 15:11:08 -05:00
Adam Bradley 5c3c73d018 fix(cheatsheet): update ion-icon component reference 2018-02-14 12:01:55 -06:00
Adam Bradley 6deac15c5b fix(cheatsheet): update cheatsheet copy 2018-02-14 11:04:18 -06:00
Adam Bradley 0ac5b04974 fix(docs): fix build scripts for docs site 2018-02-14 10:43:01 -06:00
Adam Bradley fc21b101f4 4.0.0-13 2018-01-22 11:22:37 -06:00
Adam Bradley c8fc36825c chore(package): update to stencil 0.2.0-0 2018-01-22 11:20:59 -06:00
Adam Bradley 14ce50bf97 refactor(css): move to css only component 2018-01-22 11:16:07 -06:00
Brandy Carney 9b63a6feb7 chore(ionicons): publish 4.0.0-12 2018-01-12 12:59:53 -05:00
Brandy Carney 981eb235b1 fix(icon): update so that ios and md attributes work and uppercase 2018-01-12 12:42:47 -05:00
Adam Bradley 2e6e62cf53 4.0.0-11 2017-12-18 12:23:31 -06:00
Adam Bradley dde00c6bc4 refactor(build): node-sass, copy tasks, stencil updates 2017-12-18 12:22:14 -06:00
Adam Bradley e39ff078f6 4.0.0-10 2017-12-15 12:19:43 -06:00
Adam Bradley 77408f5692 fix(style): use one style mode 2017-12-15 12:18:26 -06:00
Adam Bradley 9372f1fea6 chore(typescript): add tsconfig 2017-12-15 12:11:33 -06:00
Cam Wiegert 323844cfdb 4.0.0-9 2017-12-14 16:56:34 -06:00
Cam Wiegert ea63242596 fix() stop tracking docs/ 2017-12-14 16:41:31 -06:00
Adam Bradley 664476d0b0 Revert "4.0.0-9"
This reverts commit 477f0030c4.
2017-12-14 16:25:52 -06:00
Cam Wiegert 477f0030c4 4.0.0-9 2017-12-14 16:20:07 -06:00
Cam Wiegert 75dc3c43db feat(icon) set fill to currentColor 2017-12-14 16:17:13 -06:00
Adam Bradley 27896db5ac 4.0.0-8 2017-12-14 15:54:20 -06:00
Adam Bradley 1d7104884b docs(fonts): update fonts 2017-12-14 15:53:29 -06:00
Cam Wiegert 44f9dc1811 fix() stop tracking dist/ 2017-12-14 15:46:35 -06:00
Cam Wiegert 3d3cf46c05 feat(icon) add styles for inline use 2017-12-14 15:45:31 -06:00
Adam Bradley 7e7f38836a chore(dist): update dist directory 2017-12-14 15:25:29 -06:00
Adam Bradley 88db44afdd feat(docs): init docs site 2017-12-14 15:24:57 -06:00
Adam Bradley 895c105206 chore(update): update to stencil 0.0.9-1 2017-12-14 15:15:28 -06:00
Adam Bradley d2227c5eae feat(ionicon): ion-icon web component 2017-12-14 15:11:23 -06:00
Adam Bradley 551b297539 feat(scss): icon font scss updates 2017-12-14 15:10:30 -06:00
Adam Bradley 9d629213d5 feat(build): updated build scripts 2017-12-14 15:08:08 -06:00
Ben 04978c04e2 feat(icons): v4 icon update 2017-12-14 14:53:28 -06:00
Adam Bradley 6811b241e9 Merge pull request #335 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2016-01-11 14:55:16 -06:00
Adam Bradley a70f28bc9f Merge pull request #342 from fjaguero/patch-2
Update copyright year
2016-01-11 14:54:09 -06:00
Fernando Agüero 27a9c6b31c Update copyright year 2016-01-11 16:51:48 +01:00
ReadmeCritic 57a7bf240f Update README URLs based on HTTP redirects 2015-12-07 18:20:13 -08:00
Adam Bradley a40523f14c v2.0.1 2015-01-14 22:42:49 -06:00
Ben Sperry ecb4b80683 Update readme.md 2015-01-03 14:02:30 -06:00
Adam Bradley 23c9854d29 v2.0 rebuild 2014-12-04 09:52:35 -06:00
Ben Sperry 5dc30d9e0f Add new home icon 2014-12-04 09:51:29 -06:00
Adam Bradley e7a1db1c17 v2.0 rebuild 2014-12-04 09:47:29 -06:00
Ben Sperry 9872f60ce0 update iOS icon styles/forms 2014-12-04 01:55:00 -06:00
Adam Bradley aca3e9a719 v2.0.0 2014-12-03 22:37:16 -06:00
Ben Sperry 22eea91a55 New version of regular wand icon 2014-12-03 11:13:53 -06:00
Ben Sperry 69c7bd60a5 Update to iso-wand icon. Add outline version, 2014-12-03 11:13:40 -06:00
Ben Sperry 98fc13fc18 Remove old basketball icon 2014-12-03 09:50:44 -06:00
Ben Sperry 4e74154999 A few more - updated design 2014-12-03 09:29:50 -06:00
Ben Sperry a40ac013f5 Update icons, simplify points, reduce file size 2014-12-03 09:28:33 -06:00
Ben Sperry 8e62748989 Reduce size of larger icons 2014-12-02 23:25:48 -06:00
Ben Sperry e2780c7c6e Update wonky social icons 2014-12-02 22:13:21 -06:00
Ben Sperry 53e3c78808 Add new src icons 2014-12-02 21:14:48 -06:00
Ben Sperry 81ccbc395e Remove src files in prep of new ones... 2014-12-02 21:11:38 -06:00
Ben Sperry 28d6455924 Update Yen icon 2014-12-02 13:28:15 -06:00
Ben Sperry 871c99cf4e Add rest of icons to 2.0 Source 2014-12-02 13:06:35 -06:00
Ben Sperry 44bd2831be Ionicons 2.0 Source
Update Android icons and tweaks/additions to others. Rename from “iOS7”
to just “iOS”
2014-12-02 13:05:09 -06:00
Ben Sperry 0cb62293fd Merge pull request #165 from Rionmonster/master
Add missing PNG Files; Losslessly optimized.
2014-12-01 17:20:35 -06:00
Rion a1c65c6d7f Added missing PNG Files; Losslessly optimized.
Added all missing PNG files that were not present within the SVG folder.
Losslessly optimized all images as well.
2014-12-01 11:33:48 -06:00
Adam Bradley f3b69b69b7 v1.5.2 w/ :before pseudo 2014-06-16 15:03:45 -05:00
Adam Bradley 135798c6b0 v1.5.1 version number update 2014-06-16 13:31:33 -05:00
Adam Bradley 5731ff45b3 v1.5.1 2014-06-16 13:22:22 -05:00
Ben Sperry f5b6c84c16 updated several icons 2014-06-13 19:28:24 -05:00
Ben Sperry de828a101b updated code icons 2014-06-13 16:57:28 -05:00
Adam Bradley 5ec497e683 v1.5.0 2014-06-13 15:53:41 -05:00
Ben Sperry 04e8cb177b new playstore icon 2014-06-13 15:50:34 -05:00
Ben Sperry 481023a921 New/updated icons! 2014-06-13 15:50:22 -05:00
Ben Sperry 92ab37d6e3 Merge pull request #79 from 2metres/master
Add iOS7 version of shrink and expand icons
2014-05-28 14:47:26 -05:00
Adam Bradley 01a4a40a0b Update readme.md 2014-04-28 12:02:13 -05:00
Adam Bradley d99d7f98b9 Update readme.md 2014-04-18 15:19:41 -05:00
Adam Bradley ae79781ab8 Merge pull request #89 from lancehudson/upstream
Add less generation
2014-04-18 15:10:45 -05:00
Lance Hudson 302f359bc3 Add less generation 2014-04-17 20:32:04 -04:00
Andrew Carr 7eec94b5da Add iOS7 version of shrink and expand icons 2014-03-18 16:37:57 +11:00
Peter Collins 2a5eabe57e Rename ben's twitter handle 2014-02-21 14:24:26 -06:00
Ben Sperry eee60a605e Merge pull request #73 from gdi2290/patch-1
update copyright year
2014-02-04 16:39:18 -08:00
PatrickJS 40c199df51 update copyright year 2014-02-03 22:35:51 -08:00
Adam Bradley 76925c32a0 rebuild v1.4.1 2014-02-02 00:02:19 -06:00
Adam Bradley be4aa89313 v1.4.1 2014-01-11 17:02:00 -06:00
Adam Bradley 44f008b186 1.4.1 2014-01-11 17:01:18 -06:00
Adam Bradley 6b3b1843bd ion- svg glyph names 2013-12-27 00:06:04 -06:00
Adam Bradley 23db7f2706 updated pngs, closes #54 2013-12-27 00:00:34 -06:00
Adam Bradley ec005a4189 Better glyph-name in generated svg, closes #60 2013-12-26 23:55:21 -06:00
Adam Bradley 641c23b36d fontcustom credit 2013-12-26 23:43:46 -06:00
Adam Bradley f7328566b9 v1.4.0, added android icons 2013-12-06 14:05:56 -06:00
Ben Sperry 2731a29800 Added the Android pack
64 new icons, all Android-themed @adamdbradley
2013-12-05 18:18:05 -06:00
Ben Sperry 0ed84eda47 updated name to eye-disabled
@adamdbradley
2013-12-05 16:59:36 -06:00
Ben Sperry ee92c0d751 Added a crossed out eye icon 2013-12-05 16:58:21 -06:00
Ben Sperry 081c8d0a11 Added three new gaming icons
xbox, playstation, steam
@adamdbradley
2013-12-05 13:47:26 -06:00
Ben Sperry b3d8f8fdc5 Had to fix an issue with the Jet icon
@adamdbradley
2013-12-05 13:43:59 -06:00
Ben Sperry 56f96afd28 Updated some icons for Max's weather app
Also added three new ones: cloudy-night, cloudy-night-outline, and
snowy. @adamdbradley
2013-12-05 13:40:52 -06:00
Ben Sperry fff5250117 updated the social Windows icons
@adamdbradley fyi
2013-12-04 14:37:00 -06:00
Adam Bradley b7acf31666 v1.3.7
added bug, edit, fork-repo, model-s, no-smoking, paper-airplane,
social-freebsd-devil, social-tux
2013-12-04 10:41:08 -06:00
Ben Sperry e20e26ed12 updated Bug icon 2013-12-03 19:24:39 -06:00
Ben Sperry 46ee9fa8d9 Added No Smoking and Car (model s) icons 2013-12-03 18:29:12 -06:00
Ben Sperry 7d4cf1feb1 Added 6 new icon svgs to "src" folder
Added 4 defualt icons (Bug, Edit, Fork Repo, and Paper Airplane) and 2
social icons (Tux and FreeBSD Devil).
2013-12-03 17:42:17 -06:00
Adam Bradley d4ccb8fde3 remove version number from md5 build hash 2013-11-25 13:07:13 -06:00
Adam Bradley 98339dfbfd .ion-loading-a step(8, start) timing function 2013-11-25 13:06:53 -06:00
Adam Bradley 591f013dd4 set text-rendering: auto; to override optimizeLegibility 2013-11-25 12:49:34 -06:00
Max Lynch 0dbe98229f Merge pull request #46 from yuanyan/master
Fix the name of fonts folder
2013-11-17 08:08:17 -08:00
yuanyan 0b1f3fdeae Fix the name of fonts folder 2013-11-17 22:50:46 +08:00
Adam Bradley 560be6a5df do not auto-width animated icons 2013-11-15 13:19:13 -06:00
Adam Bradley aa72d6fec2 auto-width enabled, added ios7-close-empty 2013-11-14 10:20:30 -06:00
Adam Bradley 0ee2a4164b woof woff 2013-11-14 10:20:07 -06:00
Adam Bradley 1b9e40b929 v1.3.4 2013-11-14 10:19:46 -06:00
Max Lynch 7cbd168631 Turned woof into woff. Woof, woof 2013-11-08 12:50:09 -06:00
Ben Sperry e97eb07752 updated the "refresh" icon to look better when spinning 2013-11-08 10:48:33 -06:00
Ben Sperry 3ee6c3bcf4 updated close icon and added "close-empty" version 2013-11-08 08:55:22 -06:00
Adam Bradley cb0b555bc1 added ios7-close 2013-11-07 21:25:13 -06:00
Adam Bradley c0495b65b5 png files 2013-11-07 21:09:40 -06:00
Ben Sperry d0f58770cd added iOS 7 "close" icon 2013-11-07 21:08:25 -06:00
Adam Bradley 27a2783818 update generator to use use prefix for group 2013-11-07 20:53:58 -06:00
Adam Bradley 72428feb5e Merge pull request #35 from killercup/patch-1
Use Name Prefix For Base Style
2013-11-07 18:46:02 -08:00
Adam Bradley 5b93cea14a v1.3.2 2013-11-07 20:11:08 -06:00
Ben Sperry 8e795df52e updated vimeo and loop icons 2013-11-07 20:04:31 -06:00
Adam Bradley 0e7420f8ea ion-ios7-refreshing 2013-11-07 17:16:32 -06:00
Adam Bradley c049ea8c0e animation updates 2013-11-07 17:14:04 -06:00
Pascal 5207819363 Use Name Prefix For Base Style 2013-11-07 12:56:32 +01:00
Adam Bradley 79374c08b2 starting animations 2013-11-06 23:20:03 -06:00
Adam Bradley 2c6fc5c518 use scss variables for content 2013-11-06 23:19:30 -06:00
Adam Bradley b9a275fb20 default icons to inline-block 2013-11-06 23:17:27 -06:00
Adam Bradley 8883ee097d use the scss variable for the content 2013-11-06 22:59:54 -06:00
Adam Bradley fdef4e5413 change 72px to 96px 2013-11-06 22:59:20 -06:00
Adam Bradley 53235d66fe fresh v1.3.1 build 2013-11-05 22:53:28 -06:00
Adam Bradley e30f3a0ec1 allow customizable ionicons 2013-11-05 22:52:27 -06:00
Adam Bradley 328d9634c6 use build_data for custom builds
If SVGs are removed from the src/ folder, then these changes allow the
font to build a smaller library, but also maintains the existing
manifest data.
2013-11-05 22:40:04 -06:00
Adam Bradley fbdff5a85f build instructions 2013-11-05 22:11:52 -06:00
Adam Bradley f04825c271 remove builder 2013-11-05 21:20:38 -06:00
Adam Bradley 5b7e2fce4d added icons 2013-11-05 19:36:02 -06:00
Adam Bradley 1bfc8b2a85 no longer need append_license function 2013-11-05 16:49:31 -06:00
Adam Bradley 60ff95fa23 re-organize cheatsheet 2013-11-05 16:46:58 -06:00
Adam Bradley e070ec1ef0 build hash 2013-11-05 16:46:43 -06:00
Adam Bradley 1bf167605e scss to do more work 2013-11-05 15:48:33 -06:00
Adam Bradley 7674fec8df better cheatsheet selecting 2013-11-05 15:47:50 -06:00
Adam Bradley b097c7bd9b fix .ion group 2013-11-05 15:27:56 -06:00
Adam Bradley c70ea64a57 _ionicons filename prefix 2013-11-05 15:16:38 -06:00
Adam Bradley ef16b52d29 remove some python 2013-11-05 15:16:00 -06:00
Adam Bradley db728285fe selectable icon 2013-11-05 15:15:41 -06:00
Adam Bradley 772637d41e ignore .sass-cache 2013-11-05 15:15:07 -06:00
Adam Bradley 10f9abe49a init font builder 2013-11-05 14:34:45 -06:00
Max Lynch 8a083404dd Update readme.md 2013-11-03 10:00:02 -06:00
Max Lynch d56de3378b Fixed #26
Added license file.
2013-11-02 23:08:58 -05:00
Adam Bradley 16b6e8a9e9 v1.2.3 2013-10-30 20:13:46 -05:00
Ben Sperry 5f77accf67 updated text info 2013-10-30 12:57:13 -05:00
Max Lynch 10bf2466cf Update readme.md 2013-10-30 09:30:15 -05:00
Max Lynch bce48b5616 Update readme.md 2013-10-30 09:30:03 -05:00
Max Lynch a6e56fa28b Update readme.md 2013-10-30 09:12:04 -05:00
Max Lynch 0dde7412f3 Updated version no. in component.json. Moved to semver #9 2013-10-29 18:36:17 -05:00
Max Lynch d238838de5 Merge pull request #9 from ianstormtaylor/add-component
add component.json
2013-10-29 16:35:09 -07:00
Max Lynch 8ec70387eb Added bower support. Fixes #12 2013-10-29 18:26:25 -05:00
Ian Storm Taylor 498792ece0 fix with tabs to match repo style 2013-10-29 14:40:04 -07:00
Ian Storm Taylor 3fc9abfe2c add component.json 2013-10-29 14:32:19 -07:00
1794 changed files with 27567 additions and 12376 deletions
+32
View File
@@ -0,0 +1,32 @@
name: 🐛 Bug Report
description: Report a bug in the ion-icon component. Incorrect icons should use the "Incorrect Icon" template instead.
labels: ['triage']
title: 'bug: '
body:
- type: textarea
attributes:
label: Current Behavior
description: A clear description of what the bug is and how it manifests.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear description of what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: Please explain the steps required to duplicate this issue.
validations:
required: true
- type: input
attributes:
label: Code Reproduction URL
description: Please provide an application with the minimum code required to reproduce the issue. This is the best way to ensure this issue is triaged quickly. Issues without a code reproduction may be closed if the Ionic Team cannot reproduce the issue you are reporting.
placeholder: https://github.com/...
- type: textarea
attributes:
label: Additional Information
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
@@ -0,0 +1,23 @@
name: 💡 Feature Request
description: Suggest a new feature for the ion-icon component. Icon requests should use the "Icon Request" template instead.
labels: ['triage']
title: 'feat: '
body:
- type: textarea
attributes:
label: Describe Problem
description: A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Describe Preferred Solution
description: A clear and concise description of what you want to happen.
- type: textarea
attributes:
label: Describe Alternatives
description: A clear and concise description of any alternative solutions or features you have considered.
- type: textarea
attributes:
label: Additional Information
description: Add any other context or screenshots about the feature request here.
+19
View File
@@ -0,0 +1,19 @@
name: 🚀 Icon Request
description: Request a new icon
labels: ['triage']
title: 'icon request: '
body:
- type: textarea
attributes:
label: Describe the Icon
description: A clear and concise description of the icon you would like added.
validations:
required: true
- type: textarea
attributes:
label: Links to Examples
description: Add links to any examples of the icon in other libraries that you like.
- type: textarea
attributes:
label: Additional Information
description: Add any other context about the icon request here.
+17
View File
@@ -0,0 +1,17 @@
name: 😒 Incorrect Icon
description: Report an incorrect icon
labels: ['triage']
title: 'incorrect icon: '
body:
- type: textarea
attributes:
label: Describe the Issue
description: A clear description of what is wrong with the icon. Please include any relevant screenshots.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear description of what the icon should look like. Please include any relevant screenshots.
validations:
required: true
+105
View File
@@ -0,0 +1,105 @@
triage:
label: triage
dryRun: false
closeAndLock:
labels:
- label: 'ionitron: support'
message: >
Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for
bug reports and feature requests. Please use our [forum](https://forum.ionicframework.com/) for help or
questions about Ionicons.
Thank you for using Ionicons!
- label: 'ionitron: missing template'
message: >
Thanks for the issue! It appears that you have not filled out the provided issue template. We use this issue
template in order to gather more information and further assist you. Please create a new issue and ensure the
template is fully filled out.
Thank you for using Ionicons!
close: true
lock: true
dryRun: false
comment:
labels:
- label: 'help wanted'
message: >
This issue has been labeled as `help wanted`. This label is added to issues
that we believe would be good for contributors.
If you'd like to work on this issue, please comment here letting us know that
you would like to submit a pull request for it. This helps us to keep track of
the pull request and make sure there isn't duplicated effort.
For a guide on how to create a pull request and test this project locally to see
your changes, see our [contributing documentation](https://github.com/ionic-team/ionicons/blob/main/.github/CONTRIBUTING.md#creating-a-pull-request).
Thank you!
- label: 'ionitron: needs reproduction'
message: >
Thanks for the issue! This issue has been labeled as `needs reproduction`. This label is added to issues that
need a code reproduction.
Please reproduce this issue and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a
reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was
not enough for our team to reproduce the issue.
- label: 'community feedback wanted'
message: >
This issue has been labeled as `community feedback wanted`. This label is added to issues that we would like to hear from the community on before moving forward with any final decision on the feature request.
If the requested feature is something you would find useful for your applications, please react to the original post with 👍 (`+1`). If you would like to provide an additional use case for the feature, please post a comment.
The team will review this feedback and make a final decision. Any decision will be posted on this thread, but please note that we may ultimately decide not to pursue this feature.
Thank you!
dryRun: false
noReply:
days: 14
maxIssuesPerRun: 100
label: 'needs: reply'
responseLabel: triage
exemptProjects: true
exemptMilestones: true
message: >
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still
an issue with the latest version of Ionicons, please create a new issue and ensure the
template is fully filled out.
Thank you for using Ionicons!
close: true
lock: true
dryRun: false
noReproduction:
days: 14
maxIssuesPerRun: 100
label: 'ionitron: needs reproduction'
responseLabel: triage
exemptProjects: true
exemptMilestones: true
message: >
Thanks for the issue! This issue is being closed due to the lack of a code reproduction. If this is still
an issue with the latest version of Ionicons, please create a new issue and ensure the
template is fully filled out.
Thank you for using Ionicons!
close: true
lock: true
dryRun: false
@@ -0,0 +1,34 @@
name: 'Build Ionicons'
description: 'Build Ionicons'
runs:
using: 'composite'
steps:
- uses: actions/checkout@v4
with:
# Checkout the latest commit in this branch
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
- name: Cache Node Modules
uses: actions/cache@v4
env:
cache-name: node-modules
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
- name: Install Dependencies
run: npm install
shell: bash
- name: Build
run: npm run build
shell: bash
- uses: ./.github/workflows/actions/upload-archive
with:
name: ionicons-build
output: IoniconsBuild.zip
paths: dist components icons www
- uses: ./.github/workflows/actions/upload-archive
with:
name: ionicons-src
output: IoniconsSrc.zip
paths: src
@@ -0,0 +1,19 @@
name: 'Archive Download'
description: 'Downloads and decompresses an archive from a previous job'
inputs:
path:
description: 'Input archive name'
filename:
description: 'Input file name'
name:
description: 'Archive name'
runs:
using: 'composite'
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
- name: Exract Archive
run: unzip -q -o ${{ inputs.path }}/${{ inputs.filename }}
shell: bash
@@ -0,0 +1,73 @@
name: 'Release'
description: 'Releases a package'
inputs:
version:
description: 'The type of version to release.'
tag:
description: 'The tag to publish to on NPM.'
working-directory:
description: 'The directory of the package.'
folder:
default: './'
description: 'A folder containing a package.json file.'
token:
description: 'The NPM authentication token required to publish.'
createRelease:
description: 'Create a release on GitHub.'
default: 'false'
ghToken:
description: 'The GitHub authentication token required to create a release.'
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install latest npm
run: npm install -g npm@latest
shell: bash
- name: Install Dependencies
run: npm ci
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Set Git User
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
shell: bash
- name: Update Version
id: update_version
run: |
npm version ${{ inputs.version }}
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Run Build
run: npm run build
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Prepare NPM Token
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
working-directory: ${{ inputs.working-directory }}
shell: bash
env:
NPM_TOKEN: ${{ inputs.token }}
- name: Publish to NPM
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.working-directory }}
- name: Create Release
if: ${{ inputs.createRelease == 'true' }}
run: |
git remote set-url origin https://${GH_TOKEN}:x-oauth-basic@github.com/ionic-team/ionicons.git
git remote -v
git push origin main --tags
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
shell: bash
env:
GH_TOKEN: ${{ inputs.ghToken }}
VERSION: ${{ env.VERSION }}
@@ -0,0 +1,84 @@
name: 'Test E2E'
description: 'Test E2E'
inputs:
shard:
description: 'Playwright Test Shard (ex: 2)'
totalShards:
description: 'Playwright total number of test shards (ex: 4)'
update:
description: 'Whether or not to update the reference snapshots'
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
- name: Cache Node Modules
uses: actions/cache@v4
env:
cache-name: node-modules
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
- uses: ./.github/workflows/actions/download-archive
with:
name: ionicons-build
path: .
filename: IoniconsBuild.zip
- uses: ./.github/workflows/actions/download-archive
with:
name: ionicons-src
path: .
filename: IoniconsSrc.zip
- name: Install Playwright Dependencies
run: npx playwright install && npx playwright install-deps
shell: bash
- name: Test
if: inputs.update != 'true'
run: npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }}
shell: bash
- name: Test and Update
id: test-and-update
if: inputs.update == 'true'
# Keep track of the files that were
# changed so they can be correctly restored
# in the combine step.
# To do this, we move only the changed files
# to a separate directory, while preserving the
# directory structure of the source.
# When, we create and archive of these results
# so that the combine step can simply
# unzip and move the changed files into place.
# We have extra logic added so that job runners
# that do not have any new screenshots do not create
# an unnecessary .zip.
run: |
npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots
git add src/\*.png --force
mkdir updated-screenshots
rsync -R --progress $(git diff --name-only --cached) updated-screenshots
if [ "$(ls -A updated-screenshots)" ]; then
echo "hasUpdatedScreenshots=$(echo 'true')" >> $GITHUB_OUTPUT
cd updated-screenshots
ls
zip -q -r ../UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip ./
fi
shell: bash
- name: Archive Updated Screenshots
if: inputs.update == 'true' && steps.test-and-update.outputs.hasUpdatedScreenshots == 'true'
uses: actions/upload-artifact@v4
with:
name: updated-screenshots-${{ inputs.shard }}-${{ inputs.totalShards }}
path: UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
- name: Archive Test Results
# The always() ensures that this step
# runs even if the previous step fails.
# We want the test results to be archived
# even if the test fails in the previous
# step, otherwise there would be no way
# to debug these tests.
if: always()
uses: ./.github/workflows/actions/upload-archive
with:
name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }}
output: TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
paths: playwright-report
@@ -0,0 +1,22 @@
name: 'Test Spec'
description: 'Test Spec'
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
- name: Cache Node Modules
uses: actions/cache@v4
env:
cache-name: node-modules
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
- uses: ./.github/workflows/actions/download-archive
with:
name: ionicons-build
path: .
filename: IoniconsBuild.zip
- name: Test
run: npm run test.spec -- --ci
shell: bash
@@ -0,0 +1,38 @@
name: 'Update Reference Screenshots'
description: 'Update Reference Screenshots'
on:
workflow_dispatch:
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
- uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Extract Archives
# This finds all .zip files in the ./artifacts
# directory, including nested directories.
# It then unzips every .zip to the root directory
run: |
find . -type f -name 'UpdatedScreenshots-*.zip' -exec unzip -q -o -d ../ {} \;
shell: bash
working-directory: ./artifacts
- name: Push Screenshots
# Configure user as Ionitron
# and push only the changed .png snapshots
# to the remote branch.
# Screenshots are in .gitignore
# to prevent local screenshots from getting
# pushed to Git. As a result, we need --force
# here so that CI generated screenshots can
# get added to git. Screenshot ground truths
# should only be added via this CI process.
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
git add src/\*.png --force
git commit -m "chore(): add updated snapshots"
git push
shell: bash
@@ -0,0 +1,19 @@
name: 'Archive Upload'
description: 'Compresses and uploads an archive to be reused across jobs'
inputs:
paths:
description: 'Paths to files or directories to archive'
output:
description: 'Output file name'
name:
description: 'Archive name'
runs:
using: 'composite'
steps:
- name: Create Archive
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
shell: bash
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
path: ${{ inputs.output }}
+71
View File
@@ -0,0 +1,71 @@
name: 'Ionicons Build'
on:
pull_request:
branches: ['**']
# When pushing a new commit we should
# cancel the previous test run to not
# consume more runners than we need to.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Checkout the latest commit in this branch
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/workflows/actions/build-core
test-spec:
needs: [build-core]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/test-spec
test-e2e:
strategy:
# This ensures that all screenshot shard
# failures are reported so the dev can
# review everything at once.
fail-fast: false
matrix:
# Divide the tests into n buckets
# and run those buckets in parallel.
# To increase the number of shards,
# add new items to the shard array
# and change the value of totalShards
# to be the length of the shard array.
shard: [1, 2, 3]
totalShards: [3]
needs: [build-core]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/test-e2e
with:
shard: ${{ matrix.shard }}
totalShards: ${{ matrix.totalShards }}
# Screenshots are required to pass
# in order for the branch to be merge
# eligible. However, the screenshot tests
# are run on n runners where n can change
# over time. The verify-screenshots step allows
# us to have a required status check for screenshot
# results without having to manually add each
# matrix run in the branch protection rules
# Source: https://github.community/t/status-check-for-a-matrix-jobs/127354
verify-e2e:
if: ${{ always() }}
needs: test-e2e
runs-on: ubuntu-latest
steps:
- name: Check build matrix status
if: ${{ needs.test-e2e.result != 'success' }}
run: exit 1
+44
View File
@@ -0,0 +1,44 @@
name: 'Ionicons Dev Build'
on:
workflow_dispatch:
jobs:
create-dev-hash:
runs-on: ubuntu-latest
outputs:
dev-hash: ${{ steps.create-dev-hash.outputs.DEV_HASH }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci --no-package-lock
shell: bash
- id: create-dev-hash
name: Create Dev Hash
run: |
echo "DEV_HASH=$(node ./scripts/bump-version.js)-dev.1$(date +%s).1$(git log -1 --format=%H | cut -c 1-7)" >> $GITHUB_OUTPUT
shell: bash
release-ionicons:
runs-on: ubuntu-latest
needs: [create-dev-hash]
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with:
tag: dev
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
createRelease: 'false'
get-build:
name: Get your dev build!
runs-on: ubuntu-latest
needs: [create-dev-hash, release-ionicons]
steps:
- run: echo ${{ needs.create-dev-hash.outputs.dev-hash }}
+39
View File
@@ -0,0 +1,39 @@
name: 'Ionicons Production Release'
on:
workflow_dispatch:
inputs:
version:
required: true
type: choice
description: Which version should be published?
options:
- patch
- minor
- major
tag:
required: true
type: choice
description: Which npm tag should this be published to?
options:
- latest
jobs:
release-ionicons:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.IONITRON_TOKEN }}
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with:
tag: ${{ inputs.tag }}
version: ${{ inputs.version }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
createRelease: true
ghToken: ${{ secrets.IONITRON_TOKEN }}
+52
View File
@@ -0,0 +1,52 @@
name: 'Update Reference Screenshots'
on:
workflow_dispatch:
jobs:
build-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/build-core
test-e2e:
strategy:
# This ensures that all screenshot shard
# failures are reported so the dev can
# review everything at once.
fail-fast: false
matrix:
# Divide the tests into n buckets
# and run those buckets in parallel.
# To increase the number of shards,
# add new items to the shard array
# and change the value of totalShards
# to be the length of the shard array.
shard: [1, 2, 3]
totalShards: [3]
needs: [build-core]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/test-e2e
with:
shard: ${{ matrix.shard }}
totalShards: ${{ matrix.totalShards }}
update: true
update-reference-screenshots:
runs-on: ubuntu-latest
needs: [test-e2e]
steps:
- uses: actions/checkout@v4
# Normally, we could just push with the
# default GITHUB_TOKEN, but that will
# not cause the build workflow
# to re-run. We use Ionitron's
# Personal Access Token instead
# to allow for this build workflow
# to run when the screenshots are pushed.
with:
token: ${{ secrets.IONITRON_TOKEN }}
- uses: ./.github/workflows/actions/update-reference-screenshots
+27 -2
View File
@@ -1,2 +1,27 @@
_site
*.swp
*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.idea/
.versions/
.vscode/
/components/
node_modules/
tmp/
dist/
icons/
.DS_Store
scripts/*.js
!scripts/install-loader.js
www/
/test-results/
/playwright-report/
/playwright/.cache/
/src/**/*-snapshots
*.tgz
+13
View File
@@ -0,0 +1,13 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"quoteProps": "consistent",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
+3
View File
@@ -0,0 +1,3 @@
# Change Log
Please see https://github.com/ionic-team/ionicons/releases
+11
View File
@@ -0,0 +1,11 @@
# Contributor Code of Conduct
As contributors and maintainers of the Ionicons project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
Communication through any of Ionic's channels (GitHub, Slack, Forum, IRC, mailing lists, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the Ionicons project to do the same.
If any member of the community violates this code of conduct, the maintainers of the Ionicons project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at [hi@ionicframework.com](mailto:hi@ionicframework.com).
+151
View File
@@ -0,0 +1,151 @@
# Contributing to Ionicons
Thank you for your interest in contributing to Ionicons! :tada:
This document outlines the guidelines and processes for contributing to this project.
## Table of Contents
- [Contributing to Ionicons](#contributing-to-ionicons)
- [Table of Contents](#table-of-contents)
- [Code of Conduct](#code-of-conduct)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Environment Setup](#environment-setup)
- [Development Workflow](#development-workflow)
- [Branch Strategy](#branch-strategy)
- [Component Modifications](#component-modifications)
- [Testing Changes](#testing-changes)
- [Code Style](#code-style)
- [Building](#building)
- [Submitting Issues](#submitting-issues)
- [Submitting Pull Requests](#submitting-pull-requests)
## Code of Conduct
Please read our [Contributor Code of Conduct](./CODE_OF_CONDUCT.md) for information on our rules of conduct. By contributing to Ionicons, you agree to abide by its terms.
## Getting Started
### Prerequisites
- [Node.js](https://nodejs.org/) (LTS version recommended)
- [npm](https://www.npmjs.com/) (comes with Node.js)
- Git
### Environment Setup
1. We recommend using [nvm](https://github.com/nvm-sh/nvm) (Node Version Manager) to manage Node.js versions:
- For macOS/Linux: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
- For Windows: Use [nvm-windows](https://github.com/coreybutler/nvm-windows)
- Install and use the LTS version: `nvm install --lts && nvm use --lts`
Alternatively, you can [download the installer](https://nodejs.org/) for the LTS version of Node.js directly.
2. Fork the repository on GitHub
3. Clone your fork locally:
```bash
git clone https://github.com/YOUR-USERNAME/ionicons.git
cd ionicons
```
4. Add the original repository as an upstream remote:
```bash
git remote add upstream https://github.com/ionic-team/ionicons.git
```
5. Create a new branch from `main` for your change:
```bash
git checkout -b your-feature-branch
```
6. Install dependencies:
```bash
npm install
```
7. Run the initial build:
```bash
npm run build
```
8. If desired, [modify the Icon Component](#component-modifications)
9. Or, modify and preview the site
## Development Workflow
### Branch Strategy
- Always create a new branch from `main` for your changes:
```bash
git checkout main
git pull upstream main
git checkout -b your-feature-branch
```
### Component Modifications
If you're modifying the `ion-icon` component:
1. Navigate to `src/components/` directory and open the `icon` component to modify
2. Make your changes to the component code
3. Test your changes (see [Testing Changes](#testing-changes))
### Testing Changes
To preview component changes:
1. Run:
```bash
npm start
```
This will start a local version of the icon test with a test page
2. Modify the test page in `index.html` as needed to test your changes
3. If you are modifying icons, you can run `npm run build.files` to re-run the SVG optimization script to verify there are no changes after optimizing the SVG
### Code Style
- This project uses Prettier for code formatting
- Run `npm run prettier` to format your code before submitting
### Building
- Run `npm run build` to build the complete package
- Run `npm run build.files` to rebuild only the SVG icon files
## Submitting Issues
Please submit issues for:
- Bug reports
- Feature requests
- General questions about the project
When creating issues:
1. If you have a question about using Ionicons, please ask on the [Ionic Forum](http://forum.ionicframework.com/) or in the [Ionic Discord](https://ionic.link/discord).
2. It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Although we would love to help our users as much as possible, diagnosing issues without clear reproduction steps is extremely time-consuming and simply not sustainable.
3. The issue list of this repository is exclusively for bug reports and feature requests. Non-conforming issues will be closed immediately.
4. Check if a similar issue already exists by searching through [existing issues](https://github.com/ionic-team/ionicons/issues?utf8=%E2%9C%93&q=is%3Aissue). You can search through existing issues to see if there is a similar one reported. Include closed issues as it may have been closed with a solution.
5. Use the provided issue templates and clearly describe:
- Expected behavior
- Actual behavior
- Steps to reproduce (for bugs)
- Browser/device information when relevant
6. [Create a new issue](https://github.com/ionic-team/ionicons/issues/new/choose) that thoroughly explains the problem.
## Submitting Pull Requests
1. Before submitting a Pull Request (PR), please:
- Create an issue first to discuss the proposed changes
- Comment on an existing issue mentioning you'd like to work on it
- Look for issues labeled with [`help wanted`](https://github.com/ionic-team/ionicons/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) if you're new to the project
2. Creating the PR:
- Update your fork to the latest upstream main
- Make your changes in a new git branch
- Follow the code style of the project
- Include relevant tests
- Make sure all tests pass: `npm test`
- Update documentation if needed
- [Create a new pull request](https://github.com/ionic-team/ionicons/compare) with the `main` branch as the base.
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-present Ionic (http://ionic.io/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-5913
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
-447
View File
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.
Binary file not shown.
-1335
View File
File diff suppressed because it is too large Load Diff
+11009
View File
File diff suppressed because it is too large Load Diff
Executable
+108
View File
@@ -0,0 +1,108 @@
{
"name": "ionicons",
"version": "8.0.8",
"description": "Premium icons for Ionic.",
"files": [
"components/",
"dist/",
"icons/"
],
"main": "./dist/index.cjs.js",
"module": "./dist/index.js",
"types": "dist/types/index.d.ts",
"unpkg": "dist/ionicons/ionicons.esm.js",
"jsdelivr": "dist/ionicons/ionicons.esm.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs.js"
},
"./loader": {
"types": "./dist/loader/index.d.ts",
"import": "./dist/loader/index.js",
"require": "./dist/loader/index.cjs.js"
},
"./components": {
"types": "./components/index.d.ts",
"import": "./components/index.js"
},
"./icons": {
"types": "./icons/index.d.ts",
"import": "./icons/index.mjs",
"require": "./icons/index.js"
}
},
"scripts": {
"build": "run-s clean build.* prettier",
"build.files": "tsx scripts/build.ts",
"build.component": "stencil build",
"clean": "rimraf dist components icons www",
"prettier": "npm run prettier.base -- --write",
"prettier.base": "prettier --cache \"./({bin,scripts,src,test}/**/*.{ts,tsx,js,jsx})|bin/stencil|.github/(**/)?*.(yml|yaml)|*.js\"",
"prettier.dry-run": "npm run prettier.base -- --list-different",
"start": "run-s build.files start.stencil",
"start.stencil": "stencil build --dev --watch --serve",
"test": "run-s test.spec",
"test.spec": "stencil test --spec",
"test.e2e": "playwright test",
"test.e2e.install": "playwright install && playwright install-deps"
},
"dependencies": {
"@stencil/core": "^4.30.0"
},
"devDependencies": {
"@playwright/test": "^1.52.0",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.3",
"@types/svgo": "^3.0.0",
"fs-extra": "^11.3.0",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"npm-run-all2": "^7.0.2",
"prettier": "^3.5.3",
"puppeteer": "^24.7.2",
"rimraf": "^6.0.1",
"semver": "^7.7.1",
"serve": "^14.2.4",
"svgo": "3.3.2",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"keywords": [
"icon pack",
"ionic",
"icon",
"svg",
"mobile",
"web component",
"component",
"custom element",
"material design",
"ios"
],
"homepage": "http://ionicons.com/",
"author": {
"name": "Ben Sperry",
"web": "https://twitter.com/benjsperry"
},
"contributors": [
{
"name": "Adam Bradley",
"web": "http://twitter.com/adamdbradley"
}
],
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionicons.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionicons/issues"
},
"license": "MIT",
"sideEffects": [
"icons/imports/"
],
"web-types": "dist/ionic.web-types.json"
}
+102
View File
@@ -0,0 +1,102 @@
import type { PlaywrightTestConfig } from '@playwright/test';
import { devices, expect } from '@playwright/test';
const projects: PlaywrightTestConfig['projects'] = [
{
/**
* This is really just desktop Firefox
* but with a mobile viewport.
*/
name: 'Mobile Firefox',
use: {
browserName: 'firefox',
/**
* This is the Pixel 5 configuration.
* We can't use devices['Pixel 5']
* because the "isMobile" option is
* not supported on Firefox.
*/
viewport: {
width: 393,
height: 727
}
},
},
{
name: 'Mobile Chrome',
use: {
browserName: 'chromium',
...devices['Pixel 5']
}
},
{
name: 'Mobile Safari',
use: {
browserName: 'webkit',
...devices['iPhone 12']
}
}
];
/**
* See https://playwright.dev/docs/test-configuration.
*/
const config: PlaywrightTestConfig = {
testMatch: '*.e2e.ts',
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 5000,
/**
* Configure screenshot comparison settings
* to be more tolerant of minor visual differences
*/
toHaveScreenshot: {
// Increase the threshold to allow for small font rendering differences
// This sets the maximum allowed ratio of pixels that can be different
maxDiffPixelRatio: 0.02, // Allow up to 2% of pixels to be different
// Alternatively, you can use absolute pixel count
// maxDiffPixels: 100, // Allow up to 100 pixels to be different
// Add a threshold for per-pixel difference to handle anti-aliasing
threshold: 0.2, // Default is 0.1
}
},
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
/**
* All failed tests should create
* a trace file for easier debugging.
*
* See https://playwright.dev/docs/trace-viewer
*/
trace: 'retain-on-failure',
baseURL: 'http://localhost:3333',
},
/* Configure projects for major browsers */
projects,
webServer: {
command: 'serve www -p 3333',
port: 3333,
reuseExistingServer: !process.env.CI
}
};
export default config;
+133 -12
View File
@@ -1,29 +1,150 @@
# Ionicons
The premium icon font for [Ionic Framework](http://ionicframework.com/). Visit [ionicons.com](http://ionicons.com) and check out the search feature, which has keywords identifying common icon names and styles. For example, if you search for “arrow” we call up every icon that could possibly be used as an arrow. We’ve also included each icon’s class name for easy copy/pasting when you’re developing!
[Ionicons](http://ionicons.com/) is a completely open-source icon set with 1,300 icons crafted for web, iOS, Android, and desktop apps. Ionicons was built for [Ionic Framework](https://ionicframework.com/), so icons have both Material Design and iOS versions.
We intend for this icon pack to be used with [Ionic](http://ionicframework.com/), but it’s by no means limited to it. Use these icons wherever you see fit, personal or commercial. They are free to use and licensed under [MIT](http://opensource.org/licenses/MIT).
Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Ionic, nor vice versa.
We intend for this icon pack to be used with [Ionic](http://ionicframework.com/), but it’s by no means limited to it. Use them wherever you see fit, personal or commercial. They are free to use and licensed under [MIT](http://opensource.org/licenses/MIT).
## Getting Started
## Contributing
1. Download and extract the font pack
2. Copy the `ionicons.css` to your project
3. Copy the `font` folder to your project
4. Ensure the font urls within `ionicons.css` properly reference the `font` path within your project.
5. Include a reference to the `ionicons.css` file from every webpage you need to use it.
Thanks for your interest in contributing! Read up on our guidelines for
[contributing](https://github.com/ionic-team/ionicons/blob/main/CONTRIBUTING.md)
and then look through our issues with a [help wanted](https://github.com/ionic-team/ionicons/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
label.
## HTML Example
## Using the Web Component
You can use [ionicons.com](http://ionicons.com) to easily find the icon you want to use. Once you've copied the desired icon's CSS classname, simply add the icon's classname to an HTML element.
The Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need.
<i class="icon-home"></i>
Also note that only visible icons are loaded, and icons that are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource.
### Installation
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing `</body>` tag, to enable them.
```html
<script type="module" src="https://esm.sh/ionicons/loader@latest"></script>
<script nomodule src="https://esm.sh/ionicons/loader@latest"></script>
```
you can replace `latest` to pick any version of Ionicon, e.g.:
```html
<script type="module" src="https://esm.sh/ionicons/loader@8.0.0"></script>
<script nomodule src="https://esm.sh/ionicons/loader@8.0.0"></script>
```
### Basic usage
To use a built-in icon from the Ionicons package, populate the `name` attribute on the ion-icon component:
```html
<ion-icon name="heart"></ion-icon>
```
### Custom icons
To use a custom SVG, provide its url in the `src` attribute to request the external SVG file. The `src` attribute works the same as `<img src="...">` in that the url must be accessible from the webpage that's making a request for the image. Additionally, the external file can only be a valid svg and does not allow scripts or events within the svg element.
```html
<ion-icon src="/path/to/external/file.svg"></ion-icon>
```
#### Custom Asset Path
If you have a different set of icons you would like to load or if the Ionicon icons are hosted on a different page or path, you can set the asset url from which Ionicons pulls the icons via:
```ts
import { setAssetPath, addIcons } from 'ionicons';
import { add, logoIonic, save } from 'ionicons/icons';
// set root path for loading icons to "<root>/public/svg"
setAssetPath(`${window.location.origin}/public/svg/`);
// only load specific icons
addIcons({ add, logoIonic, save });
```
This allows the use of named icons like this:
```html
<!-- now pulls the svg from "<root>/public/svg/heart.svg" -->
<ion-icon name="heart"></ion-icon>
```
## Variants
Each app icon in Ionicons has a `filled`, `outline` and `sharp` variant. These different variants are provided to make your app feel native to a variety of platforms. The filled variant uses the default name without a suffix. Note: Logo icons do not have outline or sharp variants.
```html
<ion-icon name="heart"></ion-icon> <!--filled-->
<ion-icon name="heart-outline"></ion-icon> <!--outline-->
<ion-icon name="heart-sharp"></ion-icon> <!--sharp-->
```
### Platform specificity
When using icons in Ionic Framework you can specify different icons per platform. Use the `md` and `ios` attributes and provide the platform-specific icon/variant name.
```html
<ion-icon ios="heart-outline" md="heart-sharp"></ion-icon>
```
## Size
To specify the icon size, you can use the size attribute for our pre-defined font sizes.
```html
<ion-icon size="small"></ion-icon>
<ion-icon size="large"></ion-icon>
```
Or you can set a specific size by applying the `font-size` CSS property on the `ion-icon` component. It's recommended to use pixel sizes that are a multiple of 8 (8, 16, 32, 64, etc.)
```css
ion-icon {
font-size: 64px;
}
```
## Color
Specify the icon color by applying the `color` CSS property on the `ion-icon` component.
```css
ion-icon {
color: blue;
}
```
## Stroke width
When using an `outline` icon variant it is possible to adjust the stroke width, for improved visual balance relative to the icon's size or relative to the width of adjacent text. You can set a specific size by applying the `--ionicon-stroke-width` CSS custom property to the `ion-icon` component. The default value is 32px.
```html
<ion-icon name="heart-outline"></ion-icon>
```
```css
ion-icon {
--ionicon-stroke-width: 16px;
}
```
## Migrating from v4
See the [5.0 release notes](https://github.com/ionic-team/ionicons/releases/tag/5.0.0) for a list of icon deletions/renames.
## License
Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT).
Created by [@helloimben](https://twitter.com/helloimben) for the [Ionic Framework](http://ionicframework.com/).
## Related
* [Ionicons Homepage](http://ionicons.com/)
* [Ionic Framework](https://ionicframework.com/)
* [Ionic Discord](https://ionic.link/discord)
* [Ionic Forum](https://forum.ionicframework.com/)
* [Stencil](https://stenciljs.com/)
* [Capacitor](https://capacitorjs.com/)
+396
View File
@@ -0,0 +1,396 @@
import path from 'node:path';
import fs from 'fs-extra';
import { optimize } from 'svgo';
import { webComponentPassPlugins, sourcePassPlugins } from './plugins';
import { reservedKeywords } from './constants';
import pkgData from '../package.json' with { type: 'json' };
import type { SvgData } from './types';
async function build(rootDir: string) {
try {
const srcDir = path.join(rootDir, 'src');
const srcSvgDir = path.join(srcDir, 'svg');
const iconDir = path.join(rootDir, 'icons');
const distDir = path.join(rootDir, 'dist');
const distIoniconsDir = path.join(distDir, 'ionicons');
const distSvgDir = path.join(distDir, 'svg');
const optimizedSvgDir = path.join(distIoniconsDir, 'svg');
/**
* Create the directories first, then empty them
* This ensures they exist before we try to write files to them
*/
await Promise.all([
fs.ensureDir(iconDir),
fs.ensureDir(distDir),
fs.ensureDir(distSvgDir),
fs.ensureDir(optimizedSvgDir),
fs.ensureDir(distIoniconsDir),
]);
/**
* Empty the directories
*/
await Promise.all([
fs.emptyDir(iconDir),
fs.emptyDir(distDir),
fs.emptyDir(distSvgDir),
fs.emptyDir(optimizedSvgDir),
fs.emptyDir(distIoniconsDir),
]);
const version = pkgData.version as string;
const srcSvgData = await getSvgs(srcSvgDir, distSvgDir, optimizedSvgDir);
await optimizeSvgs(srcSvgData);
await Promise.all([
createDataJson(version, srcDir, distDir, srcSvgData),
createIconPackage(version, iconDir, srcSvgData),
]);
const svgSymbolsContent = await createSvgSymbols(version, distDir, srcSvgData);
await createCheatsheet(version, rootDir, distDir, svgSymbolsContent, srcSvgData);
await createWebTypes(version, rootDir, distDir, srcSvgData);
await copyToTesting(rootDir, distDir, srcSvgData);
} catch (e) {
console.error(e);
process.exit(1);
}
}
async function optimizeSvgs(srcSvgData: SvgData[]) {
await Promise.all(
srcSvgData.map(async (svgData) => {
return optimizeSvg(svgData);
}),
);
}
async function optimizeSvg(svgData: SvgData) {
const srcSvgContent = await fs.readFile(svgData.srcFilePath, 'utf8');
const optimizedSvg = await optimize(srcSvgContent, { path: svgData.srcFilePath });
const webComponentSvg = await optimize(optimizedSvg.data, {
path: svgData.srcFilePath,
plugins: webComponentPassPlugins,
});
const sourceSvg = await optimize(optimizedSvg.data, {
path: svgData.srcFilePath,
plugins: sourcePassPlugins,
});
// Ensure directories exist before writing files
await Promise.all([
fs.ensureDir(path.dirname(svgData.optimizedFilePath)),
fs.ensureDir(path.dirname(svgData.distSvgFilePath)),
]);
svgData.optimizedSvgContent = webComponentSvg.data;
await Promise.all([
fs.writeFile(svgData.optimizedFilePath, svgData.optimizedSvgContent),
fs.writeFile(svgData.distSvgFilePath, sourceSvg.data),
]);
}
async function copyToTesting(rootDir: string, distDir: string, srcSvgData: SvgData[]) {
const testDir = path.join(rootDir, 'www');
const testBuildDir = path.join(testDir, 'build');
const testSvgDir = path.join(testBuildDir, 'svg');
// Ensure all directories exist
await Promise.all([fs.ensureDir(testDir), fs.ensureDir(testBuildDir), fs.ensureDir(testSvgDir)]);
await Promise.all(
srcSvgData
.filter((svgData): svgData is SvgData & { optimizedSvgContent: string } => Boolean(svgData.optimizedSvgContent))
.map(async (svgData) => {
const testSvgFilePath = path.join(testSvgDir, svgData.fileName);
await fs.writeFile(testSvgFilePath, svgData.optimizedSvgContent);
}),
);
const distCheatsheetFilePath = path.join(distDir, 'cheatsheet.html');
const testCheatsheetFilePath = path.join(testDir, 'cheatsheet.html');
await fs.copyFile(distCheatsheetFilePath, testCheatsheetFilePath);
}
async function createSvgSymbols(version: string, distDir: string, srcSvgData: SvgData[]) {
srcSvgData = srcSvgData.sort((a, b) => {
if (a.iconName < b.iconName) return -1;
if (a.iconName > b.iconName) return 1;
return 0;
});
const symbolsSvgFilePath = path.join(distDir, 'ionicons.symbols.svg');
const lines = [
`<svg data-ionicons="${version}" style="display:none">`,
`<style>`,
`.ionicon {`,
` fill: currentColor;`,
` stroke: currentColor;`,
`}`,
`.ionicon-fill-none {`,
` fill: none;`,
`}`,
`.ionicon-stroke-width {`,
` stroke-width: 32px;`,
`}`,
`</style>`,
];
srcSvgData
.filter((svgData): svgData is SvgData & { optimizedSvgContent: string } => Boolean(svgData.optimizedSvgContent))
.forEach((svgData) => {
const svg = svgData.optimizedSvgContent
.replace(`<svg xmlns="http://www.w3.org/2000/svg"`, `<symbol id="${svgData.iconName}"`)
.replace(`</svg>`, `</symbol>`);
lines.push(svg);
});
lines.push(`</svg>`, ``);
const content = lines.join('\n');
await fs.writeFile(symbolsSvgFilePath, content);
return content;
}
async function createCheatsheet(
version: string,
rootDir: string,
distDir: string,
svgSymbolsContent: string,
srcSvgData: SvgData[],
) {
const CheatsheetTmpFilePath = path.join(rootDir, 'scripts', 'cheatsheet-template.html');
const distCheatsheetFilePath = path.join(distDir, 'cheatsheet.html');
const c = srcSvgData.map(
(svgData) =>
`<a href="./svg/${svgData.fileName}"><svg><use href="#${svgData.iconName}" xlink:href="#${svgData.iconName}"/></svg></a>`,
);
c.push(svgSymbolsContent);
const html = (await fs.readFile(CheatsheetTmpFilePath, 'utf8'))
.replace(/{{version}}/g, version)
.replace(/{{count}}/g, srcSvgData.length.toString())
.replace(/{{content}}/g, c.join('\n'));
await fs.writeFile(distCheatsheetFilePath, html);
}
async function createWebTypes(version: string, rootDir: string, distDir: string, srcSvgData: SvgData[]) {
const srcWebTypeFilePath = path.join(rootDir, 'src/ionicons.web-types.json');
const distWebTypesFilePath = path.join(distDir, 'ionicons.web-types.json');
const webTypes = JSON.parse(await fs.readFile(srcWebTypeFilePath, 'utf8'));
webTypes.version = version;
const icons = webTypes.contributions.html.ionicons;
for (let data of srcSvgData) {
icons.push({
name: data.iconName,
icon: 'dist/svg/' + data.fileName,
});
}
const jsonStr = JSON.stringify(webTypes, null, 2) + '\n';
await fs.writeFile(distWebTypesFilePath, jsonStr);
}
async function getSvgs(srcSvgDir: string, distSvgDir: string, optimizedSvgDir: string): Promise<SvgData[]> {
const svgFiles = (await fs.readdir(srcSvgDir)).filter((fileName) => {
return !fileName.startsWith('.') && fileName.endsWith('.svg');
});
const svgData = await Promise.all(
svgFiles.map(async (fileName) => {
// fileName: airplane-outline.svg
if (fileName.toLowerCase() !== fileName) {
throw new Error(`svg filename "${fileName}" must be all lowercase`);
}
// srcFilePath: /src/svg/airplane-outline.svg
const srcFilePath = path.join(srcSvgDir, fileName);
// srcFilePath: /src/svg/airplane-outline.svg
const distSvgFilePath = path.join(distSvgDir, fileName);
// optimizedFilePath: /dist/ionicons/svg/airplane-outline.svg
const optimizedFilePath = path.join(optimizedSvgDir, fileName);
const dotSplit = fileName.split('.');
if (dotSplit.length > 2) {
throw new Error(`svg filename "${fileName}" cannot contain more than one period`);
}
// iconName: airplane-outline
const iconName = dotSplit[0];
if (reservedKeywords.has(iconName)) {
throw new Error(`svg icon name "${iconName}" is a reserved JavaScript keyword`);
}
// fileNameMjs: airplane-outline.mjs
const fileNameMjs = iconName + '.mjs';
// fileNameCjs: airplane-outline.mjs
const fileNameCjs = iconName + '.js';
// exportName: airplaneOutline
const exportName = camelize(iconName);
const title = toTitleCase(
fileName.replace('.svg', '').replace('-outline', '').replace('-sharp', '').replace(/-/g, ' '),
);
return {
fileName,
title,
srcFilePath,
distSvgFilePath,
srcSvgContent: await fs.readFile(srcFilePath, 'utf8'),
optimizedFilePath,
iconName,
fileNameMjs,
fileNameCjs,
exportName,
};
}),
);
return svgData.sort((a, b) => {
if (a.exportName < b.exportName) return -1;
if (a.exportName > b.exportName) return 1;
return 0;
});
}
async function createIconPackage(version: string, iconDir: string, srcSvgData: SvgData[]) {
await Promise.all([
createEsmIcons(version, iconDir, srcSvgData),
createCjsIcons(version, iconDir, srcSvgData),
createDtsIcons(version, iconDir, srcSvgData),
]);
}
async function createEsmIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
const iconEsmFilePath = path.join(iconDir, 'index.mjs');
const o = [`/* Ionicons v${version}, ES Modules */`, ``];
srcSvgData.forEach((svgData) => {
o.push(`export const ${svgData.exportName} = ${getDataUrl(svgData)}`);
});
await fs.writeFile(iconEsmFilePath, o.join('\n') + '\n');
}
async function createCjsIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
const iconCjsFilePath = path.join(iconDir, 'index.js');
const o = [`/* Ionicons v${version}, CommonJS */`, ``];
srcSvgData.forEach((svgData) => {
o.push(`exports.${svgData.exportName} = ${getDataUrl(svgData)}`);
});
await fs.writeFile(iconCjsFilePath, o.join('\n') + '\n');
}
async function createDtsIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
const iconDtsFilePath = path.join(iconDir, 'index.d.ts');
const o = [`/* Ionicons v${version}, Types */`, ``];
srcSvgData.forEach((svgData) => {
o.push(`export declare var ${svgData.exportName}: string;`);
});
await fs.writeFile(iconDtsFilePath, o.join('\n') + '\n');
}
function getDataUrl(svgData: SvgData) {
let svg = svgData.optimizedSvgContent;
if (!svg) {
throw new Error(`oh no! no optimized SVG content! ${svgData.fileName}`);
}
if (svg.includes(`'`)) {
throw new Error(`oh no! no single quotes allowed! ${svgData.fileName}`);
}
if (svg.includes(`\n`) || svg.includes(`\r`)) {
throw new Error(`oh no! no new lines allowed! ${svgData.fileName}`);
}
svg = svg.replace(/"/g, "'");
return `"data:image/svg+xml;utf8,${svg}"`;
}
async function createDataJson(version: string, srcDir: string, distDir: string, srcSvgData: SvgData[]) {
const srcDataJsonPath = path.join(srcDir, 'data.json');
const distDataJsonPath = path.join(distDir, 'ionicons.json');
const data = await fs.readJson(srcDataJsonPath).catch(() => ({}));
data.icons = data.icons || [];
// add new icons
srcSvgData.forEach((svgData) => {
if (!data.icons.some((i) => i.name === svgData.iconName)) {
data.icons.push({
name: svgData.iconName,
});
}
});
// remove dead icons
data.icons = data.icons.filter((dataIcon) => {
return srcSvgData.some((svgData) => dataIcon.name === svgData.iconName);
});
// sort
data.icons = data.icons.sort((a, b) => {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
});
data.icons.forEach((icon) => {
icon.tags = icon.tags || icon.name.split('-');
icon.tags = icon.tags.sort();
});
const srcJsonStr = JSON.stringify(data, null, 2) + '\n';
await fs.writeFile(srcDataJsonPath, srcJsonStr);
const distJsonData = {
name: 'ionicons',
version,
icons: data.icons,
};
const distJsonStr = JSON.stringify(distJsonData, null, 2) + '\n';
await fs.writeFile(distDataJsonPath, distJsonStr);
}
function camelize(text: string) {
let words = text.split(/[-_]/g); // ok one simple regexp.
return words[0].toLowerCase() + words.slice(1).map(upFirst).join('');
}
function upFirst(word: string) {
return word[0].toUpperCase() + word.toLowerCase().slice(1);
}
function toTitleCase(str: string) {
const s = str.trim().toLowerCase().split(' ');
for (var i = 0; i < s.length; i++) {
s[i] = s[i].charAt(0).toUpperCase() + s[i].slice(1);
}
return s.join(' ');
}
// let's do this
build(path.join(__dirname, '..'));
+10
View File
@@ -0,0 +1,10 @@
const semver = require('semver');
const getDevVersion = () => {
const originalVersion = require('../package.json').version;
const baseVersion = semver.inc(originalVersion, 'patch');
return baseVersion;
}
console.log(getDevVersion());
+41
View File
@@ -0,0 +1,41 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Ionicons {{version}} Cheatsheet</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #fff;
}
h1 {
margin: 0;
}
.options {
padding: 15px 0 20px 0;
}
label {
display: inline-block;
width: 100px;
font-size: 12px;
}
svg {
width: 32px;
height: 32px;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
opacity: 0.7;
}
</style>
</head>
<body>
<h1>Ionicons {{version}} Cheatsheet</h1>
<h3>{{count}} icons</h3>
{{content}}
</body>
</html>
+52
View File
@@ -0,0 +1,52 @@
// https://mathiasbynens.be/notes/reserved-keywords
export const reservedKeywords = new Set([
'do',
'if',
'in',
'for',
'let',
'new',
'try',
'var',
'case',
'else',
'enum',
'eval',
'null',
'this',
'true',
'void',
'with',
'await',
'break',
'catch',
'class',
'const',
'false',
'super',
'throw',
'while',
'yield',
'delete',
'export',
'import',
'public',
'return',
'static',
'switch',
'typeof',
'default',
'extends',
'finally',
'package',
'private',
'continue',
'debugger',
'function',
'arguments',
'interface',
'protected',
'implements',
'instanceof',
'constructor',
]);
+88
View File
@@ -0,0 +1,88 @@
import { PluginConfig } from 'svgo';
import type { CustomPlugin } from './types';
const setRootIoniconClass: PluginConfig = {
name: 'addClassesToSVGElement',
params: {
className: 'ionicon',
},
};
const addFillNoneCss: PluginConfig = {
name: 'addFillNoneCss',
fn: () => ({
element: {
enter: (element) => {
if (element.attributes.fill) {
if (element.attributes.fill === 'none') {
element.attributes.class = [...(element.attributes.class?.split(' ') || []), 'ionicon-fill-none'].join(' ');
}
delete element.attributes.fill;
}
if (element.attributes.stroke) {
delete element.attributes.stroke;
}
if (
element.attributes['stroke-width'] &&
(element.attributes['stroke-width'] === '32px' || element.attributes['stroke-width'] === '32')
) {
delete element.attributes['stroke-width'];
element.attributes.class = [...(element.attributes.class?.split(' ') || []), 'ionicon-stroke-width'].join(
' ',
);
}
},
},
}),
};
const forceCurrentColor: PluginConfig = {
name: 'forceCurrentColor',
fn: () => ({
element: {
enter: (element) => {
const attr = element.attributes.stroke || element.attributes.fill;
const attrName = element.attributes.stroke ? 'stroke' : element.attributes.fill ? 'fill' : undefined;
if (attrName) {
if (attr === '#000' || attr === 'currentColor') {
element.attributes[attrName] = 'currentColor';
} else if (attr !== 'none') {
throw new Error(`invalid "${attrName}" value: ${element.attributes[attrName]}`);
}
}
},
},
}),
};
const validatePlugin: PluginConfig = {
name: 'validate',
fn: () => ({
element: {
enter: (element) => {
if (element.attributes.style) {
console.warn(
`Inline style attributed detected: <${element.name} style="${element.attributes.style}">...</${element.name}>`,
);
}
if (element.name === 'style') {
console.warn('Inline style element detected');
}
},
},
}),
};
const basePlugins: PluginConfig[] = [
'removeStyleElement',
'convertStyleToAttrs',
'removeScriptElement',
'removeDimensions',
setRootIoniconClass,
validatePlugin,
];
export const webComponentPassPlugins: PluginConfig[] = [...basePlugins, addFillNoneCss];
export const sourcePassPlugins: PluginConfig[] = [...basePlugins, forceCurrentColor];
+39
View File
@@ -0,0 +1,39 @@
# Development and Build Scripts
## Updating Icons
The `src/svg` directory is the single source of truth for svgs. They should not already be optimized and can be the original svg export straight out of an svg editor. A build step before releasing will optimize the source svgs (remove comments, reduce the size, etc) and ensure they'll work within `ion-icon`.
## Build Locally
After an svg has been updated, added or deleted from the `src/svg` directory, run:
```sh
npm run build
```
The build command will optimize all of the icons and generate the files to be distributed. After the build command, all of the optimized svgs are saved in `dist/ionicons/svg`. Additionally the `dist` directory contains the distribution files for the `ion-icon` web component.
## Svg Symbols Cheatsheet
After a build, a new `www/cheatsheet.html` file will be created. This version uses svg symbols rather than `ion-icon`.
## ion-icon Component Preview
To see the `ion-icon` component in action, run:
```sh
npm start
```
## Release Steps
The release script will ask what version to use. After the script completes, double check the `www/cheatsheet.html` to ensure everything is good to go.
Next, update `CHANGELOG.md`, then commit and push your changes Github.
```sh
npm run release
```
Triple check the version number is correct, and choose which tag this should be released as. If it's a pre-release, it should be `dev`.
+56
View File
@@ -0,0 +1,56 @@
import { PluginConfig } from 'svgo';
export interface SvgData {
/**
* airplane-outline.svg
*/
fileName: string;
/**
* airplane
*/
title: string;
/**
* /src/svg/airplane-outline.svg
*/
srcFilePath: string;
/**
* /dist/ionicons/svg/airplane-outline.svg
*/
optimizedFilePath: string;
/**
* /dist/svg/airplane-outline.svg
*/
distSvgFilePath: string;
/**
* optimized svg content
*/
optimizedSvgContent?: string;
/**
* airplane-outline
*/
iconName: string;
/**
* airplane-outline.mjs
*/
fileNameMjs: string;
/**
* airplane-outline.js
*/
fileNameCjs: string;
/**
* airplaneOutline
*/
exportName: string;
}
type ExtractCustomPlugin<T> = T extends { fn: any } ? T : never;
export type CustomPlugin = ExtractCustomPlugin<PluginConfig>;
+126
View File
@@ -0,0 +1,126 @@
/* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';
export namespace Components {
interface IonIcon {
/**
* The color to use for the background of the item.
*/
color?: string;
/**
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
*/
flipRtl?: boolean;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
icon?: any;
/**
* Specifies which icon to use on `ios` mode.
*/
ios?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
lazy: boolean;
/**
* Specifies which icon to use on `md` mode.
*/
md?: string;
/**
* The mode determines which platform styles to use.
*/
mode: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
name?: string;
/**
* When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`.
* @default true
*/
sanitize: boolean;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
size?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
src?: string;
}
}
declare global {
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
var HTMLIonIconElement: {
prototype: HTMLIonIconElement;
new (): HTMLIonIconElement;
};
interface HTMLElementTagNameMap {
'ion-icon': HTMLIonIconElement;
}
}
declare namespace LocalJSX {
interface IonIcon {
/**
* The color to use for the background of the item.
*/
color?: string;
/**
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
*/
flipRtl?: boolean;
/**
* A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property.
*/
icon?: any;
/**
* Specifies which icon to use on `ios` mode.
*/
ios?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`.
*/
lazy?: boolean;
/**
* Specifies which icon to use on `md` mode.
*/
md?: string;
/**
* The mode determines which platform styles to use.
*/
mode?: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
name?: string;
/**
* When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`.
* @default true
*/
sanitize?: boolean;
/**
* The size of the icon. Available options are: `"small"` and `"large"`.
*/
size?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
src?: string;
}
interface IntrinsicElements {
'ion-icon': IonIcon;
}
}
export { LocalJSX as JSX };
declare module '@stencil/core' {
export namespace JSX {
interface IntrinsicElements {
'ion-icon': LocalJSX.IonIcon & JSXBase.HTMLAttributes<HTMLIonIconElement>;
}
}
}
+143
View File
@@ -0,0 +1,143 @@
:host {
display: inline-block;
width: 1em;
height: 1em;
contain: strict;
fill: currentColor;
box-sizing: content-box !important;
}
:host .ionicon {
stroke: currentColor;
}
.ionicon-fill-none {
fill: none;
}
.ionicon-stroke-width {
stroke-width: var(--ionicon-stroke-width, 32px);
}
.icon-inner,
.ionicon,
svg {
display: block;
height: 100%;
width: 100%;
}
/* Icon RTL
* -----------------------------------------------------------
*/
/**
* Safari <16.4 incorrectly reports
* that it supports :dir(rtl) when it does not.
* This @supports statement lets us target
* WebKit browsers to apply the RTL fallback.
* -webkit-named-image only exists on WebKit.
* For WebKit browsers that do support :dir(rtl)
* (i.e. Safari >= 16.4) then the :dir(rtl)
* code farther down on the page will take
* effect and override this fallback.
*/
@supports (background: -webkit-named-image(i)) {
:host(.icon-rtl) .icon-inner {
transform: scaleX(-1);
}
}
/**
* Fallback for browsers that support
* neither :host-context nor :dir.
* The icon will not react to dir
* changes, but it will at least
* respect the dir on component load.
*/
@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])) {
:host(.icon-rtl) .icon-inner {
transform: scaleX(-1);
}
}
/* :host-context is supported in chromium; :dir is supported in safari & firefox */
:host(.flip-rtl):host-context([dir='rtl']) .icon-inner {
transform: scaleX(-1);
}
@supports selector(:dir(rtl)) {
:host(.flip-rtl:dir(rtl)) .icon-inner {
transform: scaleX(-1);
}
/**
* This is needed for WebKit otherwise the fallback
* will always cause the icon to be flipped if the document
* loads in RTL.
*/
:host(.flip-rtl:dir(ltr)) .icon-inner {
transform: scaleX(1);
}
}
/* Icon Sizes
* -----------------------------------------------------------
*/
:host(.icon-small) {
font-size: 1.125rem !important;
}
:host(.icon-large) {
font-size: 2rem !important;
}
/* Icon Colors
* -----------------------------------------------------------
*/
:host(.ion-color) {
color: var(--ion-color-base) !important;
}
:host(.ion-color-primary) {
--ion-color-base: var(--ion-color-primary, #3880ff);
}
:host(.ion-color-secondary) {
--ion-color-base: var(--ion-color-secondary, #0cd1e8);
}
:host(.ion-color-tertiary) {
--ion-color-base: var(--ion-color-tertiary, #f4a942);
}
:host(.ion-color-success) {
--ion-color-base: var(--ion-color-success, #10dc60);
}
:host(.ion-color-warning) {
--ion-color-base: var(--ion-color-warning, #ffce00);
}
:host(.ion-color-danger) {
--ion-color-base: var(--ion-color-danger, #f14141);
}
:host(.ion-color-light) {
--ion-color-base: var(--ion-color-light, #f4f5f8);
}
:host(.ion-color-medium) {
--ion-color-base: var(--ion-color-medium, #989aa2);
}
:host(.ion-color-dark) {
--ion-color-base: var(--ion-color-dark, #222428);
}
+250
View File
@@ -0,0 +1,250 @@
import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';
import { getSvgContent, ioniconContent } from './request';
import { getName, getUrl, inheritAttributes, isRTL } from './utils';
@Component({
tag: 'ion-icon',
assetsDirs: ['svg'],
styleUrl: 'icon.css',
shadow: true,
})
export class Icon {
private io?: IntersectionObserver;
private iconName: string | null = null;
private inheritedAttributes: { [k: string]: any } = {};
private didLoadIcon = false;
@Element() el!: HTMLElement;
@State() private svgContent?: string;
@State() private isVisible = false;
/**
* The mode determines which platform styles to use.
*/
@Prop({ mutable: true }) mode = getIonMode();
/**
* The color to use for the background of the item.
*/
@Prop() color?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
@Prop() ios?: string;
/**
* Specifies which icon to use on `md` mode.
*/
@Prop() md?: string;
/**
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
*/
@Prop() flipRtl?: boolean;
/**
* Specifies which icon to use from the built-in set of icons.
*/
@Prop({ reflect: true }) name?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
@Prop() src?: string;
/**
* A combination of both `name` and `src`. If a `src` url is detected
* it will set the `src` property. Otherwise it assumes it's a built-in named
* SVG and set the `name` property.
*/
@Prop() icon?: any;
/**
* The size of the icon.
* Available options are: `"small"` and `"large"`.
*/
@Prop() size?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
* Default, `false`.
*/
@Prop() lazy = false;
/**
* When set to `false`, SVG content that is HTTP fetched will not be checked
* if the response SVG content has any `<script>` elements, or any attributes
* that start with `on`, such as `onclick`.
* @default true
*/
@Prop() sanitize = true;
componentWillLoad() {
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
}
connectedCallback() {
/**
* purposely do not return the promise here because loading
* the svg file should not hold up loading the app
* only load the svg if it's visible
*/
this.waitUntilVisible(this.el, '50px', () => {
this.isVisible = true;
this.loadIcon();
});
}
/**
* Loads the icon after the component has finished rendering.
*/
componentDidLoad() {
/**
* Addresses an Angular issue where property values are assigned after the 'connectedCallback' but prior to the registration of watchers.
* This enhancement ensures the loading of an icon when the component has finished rendering and the icon has yet to apply the SVG data.
* This modification pertains to the usage of Angular's binding syntax:
* `<ion-icon [name]="myIconName"></ion-icon>`
*/
if (!this.didLoadIcon) {
this.loadIcon();
}
}
/**
* Disconnect the IntersectionObserver.
*/
disconnectedCallback() {
if (this.io) {
this.io.disconnect();
this.io = undefined;
}
}
/**
* Wait until the icon is visible in the viewport.
* @param el - The element to observe.
* @param rootMargin - The root margin of the observer.
* @param cb - The callback to call when the element is visible.
*/
private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {
/**
* IntersectionObserver is a browser API that allows you to observe
* the visibility of an element relative to a root element. It is
* supported in all modern browsers, except IE and when server-side
* rendering.
*/
const hasIntersectionObserverSupport = Boolean(
Build.isBrowser && this.lazy && typeof window !== 'undefined' && window.IntersectionObserver,
);
/**
* browser doesn't support IntersectionObserver
* so just fallback to always show it
*/
if (!hasIntersectionObserverSupport) {
return cb();
}
const io = (this.io = new window.IntersectionObserver(
(data: IntersectionObserverEntry[]) => {
if (data[0].isIntersecting) {
io.disconnect();
this.io = undefined;
cb();
}
},
{ rootMargin },
));
io.observe(el);
}
/**
* Watch for changes to the icon name, src, icon, ios, or md properties.
* When a change is detected, the icon will be loaded.
*/
@Watch('name')
@Watch('src')
@Watch('icon')
@Watch('ios')
@Watch('md')
loadIcon() {
if (Build.isBrowser && this.isVisible) {
const url = getUrl(this);
if (url) {
if (ioniconContent.has(url)) {
// sync if it's already loaded
this.svgContent = ioniconContent.get(url);
} else {
// async if it hasn't been loaded
getSvgContent(url, this.sanitize).then(() => (this.svgContent = ioniconContent.get(url)));
}
this.didLoadIcon = true;
}
}
this.iconName = getName(this.name, this.icon, this.mode, this.ios, this.md);
}
render() {
const { flipRtl, iconName, inheritedAttributes, el } = this;
const mode = this.mode || 'md';
/**
* we have designated that arrows & chevrons should automatically flip (unless flip-rtl
* is set to false) because "back" is left in ltr and right in rtl, and "forward" is the opposite
*/
const shouldAutoFlip = iconName
? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false
: false;
/**
* if shouldBeFlippable is true, the icon should change direction when `dir` changes
*/
const shouldBeFlippable = flipRtl || shouldAutoFlip;
return (
<Host
role="img"
class={{
[mode]: true,
...createColorClasses(this.color),
[`icon-${this.size}`]: !!this.size,
'flip-rtl': shouldBeFlippable,
'icon-rtl': shouldBeFlippable && isRTL(el),
}}
{...inheritedAttributes}
>
{Build.isBrowser && this.svgContent ? (
<div class="icon-inner" innerHTML={this.svgContent}></div>
) : (
<div class="icon-inner"></div>
)}
</Host>
);
}
}
/**
* Get the mode of the document.
* @returns The mode of the document.
*/
const getIonMode = () =>
(Build.isBrowser && typeof document !== 'undefined' && document.documentElement.getAttribute('mode')) || 'md';
/**
* Create color classes for the icon.
* @param color - The color of the icon.
* @returns The color classes for the icon.
*/
const createColorClasses = (color: string | undefined) => {
return color
? {
'ion-color': true,
[`ion-color-${color}`]: true,
}
: null;
};
+27
View File
@@ -0,0 +1,27 @@
# ion-icon
<!-- Auto Generated Below -->
## Properties
| Property | Attribute | Description | Type | Default |
| ---------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------- |
| `color` | `color` | The color to use for the background of the item. | `string \| undefined` | `undefined` |
| `flipRtl` | `flip-rtl` | Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. | `boolean \| undefined` | `undefined` |
| `icon` | `icon` | A combination of both `name` and `src`. If a `src` url is detected it will set the `src` property. Otherwise it assumes it's a built-in named SVG and set the `name` property. | `any` | `undefined` |
| `ios` | `ios` | Specifies which icon to use on `ios` mode. | `string \| undefined` | `undefined` |
| `lazy` | `lazy` | If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. | `boolean` | `false` |
| `md` | `md` | Specifies which icon to use on `md` mode. | `string \| undefined` | `undefined` |
| `mode` | `mode` | The mode determines which platform styles to use. | `string` | `getIonMode()` |
| `name` | `name` | Specifies which icon to use from the built-in set of icons. | `string \| undefined` | `undefined` |
| `sanitize` | `sanitize` | When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`. | `boolean` | `true` |
| `size` | `size` | The size of the icon. Available options are: `"small"` and `"large"`. | `string \| undefined` | `undefined` |
| `src` | `src` | Specifies the exact `src` of an SVG file to use. | `string \| undefined` | `undefined` |
----------------------------------------------
*Built with [StencilJS](https://stenciljs.com/)*
+90
View File
@@ -0,0 +1,90 @@
import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';
export const ioniconContent = new Map<string, string>();
const requests = new Map<string, Promise<any>>();
let parser: DOMParser;
/**
* Safely fallback to an empty svg
*/
function safeFallback(url: string) {
const svg = '';
ioniconContent.set(url, svg);
return svg;
}
export const getSvgContent = (url: string, sanitize: boolean): Promise<string> => {
/**
* See if we already have a request for this url
*/
const req = requests.get(url);
if (req) {
return req;
}
if (typeof fetch !== 'undefined' && typeof document !== 'undefined') {
/**
* If the url is a data url of an svg, then try to parse it
* with the DOMParser. This works with content security policies enabled.
*/
if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {
return Promise.resolve(getSvgByUrl(url));
}
return fetchSvg(url, sanitize);
}
return Promise.resolve(safeFallback(url));
};
function getSvgByUrl(url: string): string {
if (!parser) {
/**
* Create an instance of the DOM parser. This creates a single
* parser instance for the entire app, which is more efficient.
*/
parser = new DOMParser();
}
const doc = parser.parseFromString(url, 'text/html');
const svg = doc.querySelector('svg');
if (svg) {
ioniconContent.set(url, svg.outerHTML);
return svg.outerHTML;
}
throw new Error(`Could not parse svg from ${url}`);
}
function fetchSvg(url: string, sanitize: boolean): Promise<string> {
/**
* We don't already have a request
*/
const req = fetch(url)
.then((rsp) => {
/**
* When fetching from a file:// URL, some browsers return
* a 0 status code even when the request succeeds so don't
* rely on rsp.ok as the only signal of success.
*/
return rsp
.text()
.then((svgContent) => {
if (svgContent && sanitize !== false) {
svgContent = validateContent(svgContent);
}
const svg = svgContent || '';
ioniconContent.set(url, svg);
return svg;
})
.catch(() => safeFallback(url));
})
.catch(() => safeFallback(url));
/**
* Cache for the same requests
*/
requests.set(url, req);
return req;
}
+5
View File
@@ -0,0 +1,5 @@
# this gitignore file is used as a placeholder
# for this directory. The directory itself will
# contain files generated during a build step.
*
!.gitignore
+70
View File
@@ -0,0 +1,70 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('icon: basic', () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto(`/`);
// Wait for all SVGs to be lazily loaded before taking screenshots
await page.waitForLoadState('networkidle');
await expect(page).toHaveScreenshot(`icon-diff.png`, { fullPage: true });
});
test('some icons should flip when rtl', async ({ page }) => {
await page.goto(`/`);
const autoflip = page.locator('.auto-flip-chevrons [name=chevron-forward] .icon-inner');
const unflip = page.locator('.un-flip-chevrons [name=chevron-forward] .icon-inner');
await expect(autoflip).not.toHaveCSS('transform', /matrix\(-1/);
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
await page.evaluate(() => {
document.dir = 'rtl';
});
await expect(autoflip).toHaveCSS('transform', /matrix\(-1/);
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
// Wait for all SVGs to be lazily loaded before taking screenshots
await page.waitForLoadState('networkidle');
const rtlTests = page.locator('#rtl-tests');
await expect(rtlTests).toHaveScreenshot(`icon-rtl-diff.png`);
});
test('arrows should flip if dir changes on the element', async ({ page }) => {
await page.goto(`/`);
const autoflip = page.locator('.auto-flip-chevrons [name=chevron-forward] .icon-inner');
const unflip = page.locator('.un-flip-chevrons [name=chevron-forward] .icon-inner');
await expect(autoflip).not.toHaveCSS('transform', /matrix\(-1/);
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
const autoflipEl = await page.$('.auto-flip-chevrons [name=chevron-forward]');
const unflipEl = await page.$('.un-flip-chevrons [name=chevron-forward]');
await autoflipEl!.evaluate((node) => node.setAttribute('dir', 'rtl'));
await unflipEl!.evaluate((node) => node.setAttribute('dir', 'rtl'));
await expect(autoflip).toHaveCSS('transform', /matrix\(-1/);
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
});
test('icon should reassess flipping when name changes', async ({ page }) => {
await page.goto(`/`);
await page.evaluate(() => {
document.dir = 'rtl';
});
const iconLoc = page.locator('.auto-flip-chevrons ion-icon:nth-child(2)');
await expect(iconLoc).toHaveAttribute('name', 'chevron-forward');
await expect(iconLoc).toHaveClass(/flip-rtl/);
const iconEl = await page.$('.auto-flip-chevrons ion-icon:nth-child(2)');
await iconEl!.evaluate((node) => node.setAttribute('name', 'brush'));
await expect(iconLoc).toHaveAttribute('name', 'brush');
await expect(iconLoc).not.toHaveClass(/flip-rtl/);
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+79
View File
@@ -0,0 +1,79 @@
import { newSpecPage } from '@stencil/core/testing';
import { Icon } from '../icon';
describe('icon', () => {
it('renders', async () => {
const { root } = await newSpecPage({
components: [Icon],
html: '<ion-icon></ion-icon>',
});
expect(root).toEqualHtml(`
<ion-icon class="md" role="img">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
</ion-icon>
`);
});
it('renders rtl with aria-hidden', async () => {
const { root } = await newSpecPage({
components: [Icon],
direction: 'rtl',
html: `<ion-icon name="chevron-forward" aria-hidden="true"></ion-icon>`,
});
expect(root).toEqualHtml(`
<ion-icon class="md flip-rtl icon-rtl" name="chevron-forward" role="img" aria-hidden="true">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
</ion-icon>
`);
});
it('renders custom aria-label', async () => {
const { root } = await newSpecPage({
components: [Icon],
html: `<ion-icon name="star" aria-label="custom label"></ion-icon>`,
});
expect(root).toEqualHtml(`
<ion-icon class="md" name="star" role="img" aria-label="custom label">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
</ion-icon>
`);
});
it('renders custom label after changing source', async () => {
const page = await newSpecPage({
components: [Icon],
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
});
const icon = page.root;
expect(icon).toEqualHtml(`
<ion-icon class="flip-rtl md" name="chevron-forward" role="img" aria-label="custom label">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
</ion-icon>
`);
if (icon) {
icon.name = 'trash';
}
await page.waitForChanges();
expect(icon).toEqualHtml(`
<ion-icon class="md" name="trash" role="img" aria-label="custom label">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
</ion-icon>
`);
});
});
+164
View File
@@ -0,0 +1,164 @@
import { Icon } from '../icon';
import { addIcons, getIconMap, getName, getSrc, getUrl } from '../utils';
describe('getUrl', () => {
let i: Icon;
beforeEach(() => {
i = new Icon();
});
it('use icon prop, as name', () => {
i.icon = 'some-name';
expect(getUrl(i)).toBe('/svg/some-name.svg');
});
it('use icon prop, as url', () => {
i.icon = './some.svg';
expect(getUrl(i)).toBe('./some.svg');
});
it('use name prop', () => {
i.name = 'some-name';
expect(getUrl(i)).toBe('/svg/some-name.svg');
});
it('use src prop', () => {
i.src = './some.svg';
i.name = 'some-name';
i.icon = 'some-icon';
expect(getUrl(i)).toBe('./some.svg');
});
});
describe('getSrc', () => {
it('both . and /', () => {
expect(getSrc('./somefile.svg')).toBe('./somefile.svg');
});
it('url', () => {
expect(getSrc('https://ionicons/somefile.svg')).toBe('https://ionicons/somefile.svg');
});
it('just a .', () => {
expect(getSrc('somefile.svg')).toBe('somefile.svg');
});
it('just a /', () => {
expect(getSrc('/somesvg')).toBe('/somesvg');
});
it('no . or /', () => {
expect(getSrc('some-name')).toBe(null);
});
});
describe('getName', () => {
it('not allow special chars', () => {
expect(getName('some\\name', '', 'io', '', '')).toBe(null);
expect(getName('some$name', '', 'io', '', '')).toBe(null);
expect(getName('some:name', '', 'io', '', '')).toBe(null);
expect(getName('some.name', '', 'io', '', '')).toBe(null);
expect(getName('some/name', '', 'io', '', '')).toBe(null);
});
it('use ios mode prefixed', () => {
expect(getName('ios-some-name', '', '', '', '')).toBe('ios-some-name');
});
it('use md mode prefixed', () => {
expect(getName('md-some-name', '', '', '', '')).toBe('md-some-name');
});
it('should not use name if no name, ios or md', () => {
expect(getName(undefined, undefined, '', '', '')).toBe(null);
});
});
describe('addIcons', () => {
it('should add an svg to the icon cache', () => {
const testData = 'stubbed data';
expect(getIconMap().get('logo-ionic')).toEqual(undefined);
addIcons({ 'logo-ionic': 'stubbed data' });
expect(getIconMap().get('logo-ionic')).toEqual(testData);
});
it('should add kebab and camel case names to the icon cache', () => {
const logoIonitron = 'stubbed data';
expect(getIconMap().get('logo-ionitron')).toEqual(undefined);
expect(getIconMap().get('logoIonitron')).toEqual(undefined);
addIcons({ logoIonitron });
expect(getIconMap().get('logo-ionitron')).toEqual(logoIonitron);
expect(getIconMap().get('logoIonitron')).toEqual(logoIonitron);
const logoIonitron0 = 'stubbed data 0';
expect(getIconMap().get('logo-ionitron-0')).toEqual(undefined);
expect(getIconMap().get('logoIonitron0')).toEqual(undefined);
addIcons({ logoIonitron0 });
expect(getIconMap().get('logo-ionitron-0')).toEqual(logoIonitron0);
expect(getIconMap().get('logoIonitron0')).toEqual(logoIonitron0);
});
it('should map to a name that does not match the svg', () => {
const logoIonitron = 'stubbed data';
expect(getIconMap().get('my-fun-icon')).toEqual(undefined);
addIcons({ 'my-fun-icon': logoIonitron });
expect(getIconMap().get('my-fun-icon')).toEqual(logoIonitron);
});
it('should map to an explicit camel case name', () => {
const logoIonitron = 'stubbed data';
expect(getIconMap().get('myCoolIcon')).toEqual(undefined);
addIcons({ myCoolIcon: logoIonitron });
expect(getIconMap().get('myCoolIcon')).toEqual(logoIonitron);
});
it('should not warn when mapping the same icon twice', () => {
const spy = jest.spyOn(console, 'warn');
const myIcon = 'my-icon';
expect(spy).not.toHaveBeenCalled();
addIcons({ myIcon });
expect(spy).not.toHaveBeenCalled();
addIcons({ myIcon });
expect(spy).not.toHaveBeenCalled();
});
it('should not overwrite icons', () => {
const spy = jest.spyOn(console, 'warn');
const logoA = 'logo a';
const logoB = 'logo b';
expect(spy).not.toHaveBeenCalled();
expect(getIconMap().get('logo-a')).toEqual(undefined);
addIcons({ 'logo-a': logoB, logoA });
expect(getIconMap().get('logo-a')).toEqual(logoB);
expect(getIconMap().get('logoA')).toEqual(logoA);
expect(spy).toHaveBeenCalled();
});
});
+72
View File
@@ -0,0 +1,72 @@
import { isEncodedDataUrl, isSvgDataUrl, isValid } from '../validate';
describe('isValid', () => {
it('invalid onload attr', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ name: 'onload' }],
childNodes: [],
} as any;
expect(isValid(el)).toBe(false);
});
it('invalid onclick attr', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ name: 'OnClIcK' }],
childNodes: [],
} as any;
expect(isValid(el)).toBe(false);
});
it('invalid child SCRIPT elm', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [],
childNodes: [{ nodeType: 1, nodeName: 'SCRIPT', attributes: [], childNodes: [] }],
} as any;
expect(isValid(el)).toBe(false);
});
it('invalid script elm', () => {
const el = { nodeType: 1, nodeName: 'script', attributes: [], childNodes: [] } as any;
expect(isValid(el)).toBe(false);
});
it('is valid circle elm', () => {
const el = { nodeType: 1, nodeName: 'circle', attributes: [], childNodes: [] } as any;
expect(isValid(el)).toBe(true);
});
it('is valid SVG elm', () => {
const el = {
nodeType: 1,
nodeName: 'SVG',
attributes: [],
childNodes: [{ nodeType: 1, nodeName: 'line', attributes: [], childNodes: [] }],
} as any;
expect(isValid(el)).toBe(true);
});
it('is valid text node', () => {
const el = { nodeType: 3, nodeName: '#text' } as any;
expect(isValid(el)).toBe(true);
});
});
it('isSvgDataUrl', () => {
expect(isSvgDataUrl('data:image/svg+xml;base64,xxx')).toBe(true);
expect(isSvgDataUrl('data:image/svg+xml;utf8,<svg></svg>')).toBe(true);
expect(isSvgDataUrl('https://example.com/icon.svg')).toBe(false);
expect(isSvgDataUrl('http://example.com/icon.svg')).toBe(false);
});
it('isEncodedDataUrl', () => {
expect(isEncodedDataUrl('data:image/svg+xml;base64,xxx')).toBe(false);
expect(isEncodedDataUrl('data:image/svg+xml;utf8,<svg></svg>')).toBe(true);
expect(isEncodedDataUrl('https://example.com/icon.svg')).toBe(false);
expect(isEncodedDataUrl('http://example.com/icon.svg')).toBe(false);
});
+199
View File
@@ -0,0 +1,199 @@
import { getAssetPath } from '@stencil/core';
import { Icon } from './icon';
let CACHED_MAP: Map<string, string>;
export const getIconMap = (): Map<string, string> => {
if (typeof window === 'undefined') {
return new Map();
} else {
if (!CACHED_MAP) {
const win = window as any;
win.Ionicons = win.Ionicons || {};
CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();
}
return CACHED_MAP;
}
};
export const addIcons = (icons: { [name: string]: string }) => {
Object.keys(icons).forEach((name) => {
addToIconMap(name, icons[name]);
/**
* Developers can also pass in the SVG object directly
* and Ionicons can map the object to a kebab case name.
* Example: addIcons({ addCircleOutline });
* This will create an "addCircleOutline" entry and
* an "add-circle-outline" entry.
* Usage: <ion-icon name="add-circle-outline"></ion-icon>
* Using name="addCircleOutline" is valid too, but the
* kebab case naming is preferred.
*/
const toKebabCase = name.replace(/([a-z0-9]|(?=[A-Z]))([A-Z0-9])/g, '$1-$2').toLowerCase();
if (name !== toKebabCase) {
addToIconMap(toKebabCase, icons[name]);
}
});
};
const addToIconMap = (name: string, data: any) => {
const map = getIconMap();
const existingIcon = map.get(name);
if (existingIcon === undefined) {
map.set(name, data);
/**
* Importing and defining the same icon reference
* multiple times should not yield a warning.
*/
} else if (existingIcon !== data) {
console.warn(
`[Ionicons Warning]: Multiple icons were mapped to name "${name}". Ensure that multiple icons are not mapped to the same icon name.`,
);
}
};
export const getUrl = (i: Icon) => {
let url = getSrc(i.src);
if (url) {
return url;
}
url = getName(i.name, i.icon, i.mode, i.ios, i.md);
if (url) {
return getNamedUrl(url, i);
}
if (i.icon) {
url = getSrc(i.icon);
if (url) {
return url;
}
url = getSrc(i.icon[i.mode]);
if (url) {
return url;
}
}
return null;
};
const getNamedUrl = (iconName: string, iconEl: Icon) => {
const url = getIconMap().get(iconName);
if (url) {
return url;
}
try {
return getAssetPath(`svg/${iconName}.svg`);
} catch (e) {
/**
* In the custom elements build version of ionicons, referencing an icon
* by name will throw an invalid URL error because the asset path is not defined.
* This catches that error and logs something that is more developer-friendly.
* We also include a reference to the ion-icon element so developers can
* figure out which instance of ion-icon needs to be updated.
*/
console.warn(
`[Ionicons Warning]: Could not load icon with name "${iconName}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,
iconEl,
);
}
};
export const getName = (
iconName: string | undefined,
icon: string | undefined,
mode: string | undefined,
ios: string | undefined,
md: string | undefined,
) => {
// default to "md" if somehow the mode wasn't set
mode = (mode && toLower(mode)) === 'ios' ? 'ios' : 'md';
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
if (ios && mode === 'ios') {
iconName = toLower(ios);
} else if (md && mode === 'md') {
iconName = toLower(md);
} else {
if (!iconName && icon && !isSrc(icon)) {
iconName = icon;
}
if (isStr(iconName)) {
iconName = toLower(iconName);
}
}
if (!isStr(iconName) || iconName.trim() === '') {
return null;
}
// only allow alpha characters and dash
const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
if (invalidChars !== '') {
return null;
}
return iconName;
};
export const getSrc = (src: string | undefined) => {
if (isStr(src)) {
src = src.trim();
if (isSrc(src)) {
return src;
}
}
return null;
};
export const isSrc = (str: string) => str.length > 0 && /(\/|\.)/.test(str);
export const isStr = (val: any): val is string => typeof val === 'string';
export const toLower = (val: string) => val.toLowerCase();
/**
* Elements inside of web components sometimes need to inherit global attributes
* set on the host. For example, the inner input in `ion-input` should inherit
* the `title` attribute that developers set directly on `ion-input`. This
* helper function should be called in componentWillLoad and assigned to a variable
* that is later used in the render function.
*
* This does not need to be reactive as changing attributes on the host element
* does not trigger a re-render.
*/
export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {
const attributeObject: { [k: string]: any } = {};
attributes.forEach((attr) => {
if (el.hasAttribute(attr)) {
const value = el.getAttribute(attr);
if (value !== null) {
attributeObject[attr] = el.getAttribute(attr);
}
el.removeAttribute(attr);
}
});
return attributeObject;
};
/**
* Returns `true` if the document or host element
* has a `dir` set to `rtl`. The host value will always
* take priority over the root document value.
*/
export const isRTL = (hostEl?: Pick<HTMLElement, 'dir'>) => {
if (hostEl) {
if (hostEl.dir !== '') {
return hostEl.dir.toLowerCase() === 'rtl';
}
}
return document?.dir.toLowerCase() === 'rtl';
};
+53
View File
@@ -0,0 +1,53 @@
import { isStr } from './utils';
export const validateContent = (svgContent: string) => {
const div = document.createElement('div');
div.innerHTML = svgContent;
// setup this way to ensure it works on our buddy IE
for (let i = div.childNodes.length - 1; i >= 0; i--) {
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
div.removeChild(div.childNodes[i]);
}
}
// must only have 1 root element
const svgElm = div.firstElementChild;
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
const svgClass = svgElm.getAttribute('class') || '';
svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());
// root element must be an svg
// lets double check we've got valid elements
// do not allow scripts
if (isValid(svgElm as any)) {
return div.innerHTML;
}
}
return '';
};
export const isValid = (elm: HTMLElement) => {
if (elm.nodeType === 1) {
if (elm.nodeName.toLowerCase() === 'script') {
return false;
}
for (let i = 0; i < elm.attributes.length; i++) {
const name = elm.attributes[i].name;
if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
return false;
}
}
for (let i = 0; i < elm.childNodes.length; i++) {
if (!isValid(elm.childNodes[i] as any)) {
return false;
}
}
}
return true;
};
export const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');
export const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/></svg>

After

Width:  |  Height:  |  Size: 512 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>

After

Width:  |  Height:  |  Size: 227 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4H5C3.34 4 2 5.34 2 7v8c0 1.66 1.34 3 3 3l-1 1v1h1l2-2.03L9 18v-5H4V5.98L13 6v2h2V7c0-1.66-1.34-3-3-3zM5 14c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm15.57-4.34c-.14-.4-.52-.66-.97-.66h-7.19c-.46 0-.83.26-.98.66L10 13.77l.01 5.51c0 .38.31.72.69.72h.62c.38 0 .68-.38.68-.76V18h8v1.24c0 .38.31.76.69.76h.61c.38 0 .69-.34.69-.72l.01-1.37v-4.14l-1.43-4.11zm-8.16.34h7.19l1.03 3h-9.25l1.03-3zM12 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm8 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"/><path fill="none" d="M0 0h24v24H0z"/></svg>

After

Width:  |  Height:  |  Size: 641 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24"><defs><path id="a" d="M24 0v24H0V0h24z"/></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"/></clipPath><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" clip-path="url(#b)"/></svg>

After

Width:  |  Height:  |  Size: 1000 B

+13
View File
@@ -0,0 +1,13 @@
import { expect } from '@playwright/test';
import { test } from '../../../utils/test/playwright';
test.describe('icon: csp', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/test/csp');
});
test('should load svg', async ({ page }) => {
const svg = page.locator('ion-icon#icon-usage svg');
await expect(svg).toBeVisible();
});
});
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html dir="ltr" lang="en" mode="ios">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta http-equiv="Content-Security-Policy"
content="default-src 'none'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/*; img-src 'self'; connect-src 'self'; font-src https://fonts.gstatic.com/*'">
<title>IonIcon - Content Security Policy</title>
<script type="module" src="../../build/ionicons.esm.js"></script>
<script nomodule src="../../build/ionicons.js"></script>
<style>
body {
margin: 0;
padding: 16px;
font-size: 32px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
h1 {
margin: 15px 0 5px;
font-size: 25px;
}
h2 {
margin: 15px 0 5px;
font-size: 18px;
}
.custom {
stroke: red;
fill: goldenrod;
color: black;
}
</style>
</head>
<body>
<h1>Ionicons - Test </h1>
<h2>Default</h2>
<ion-icon src="/assets/chat.svg"></ion-icon>
<ion-icon name="add"></ion-icon>
<ion-icon id="icon-usage"
icon="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Watch</title><rect x='136' y='136' width='240' height='240' rx='8' ry='8'/><path d='M384 96h-48V16H176v80h-48a32 32 0 00-32 32v256a32 32 0 0032 32h48v80h160v-80h48a32 32 0 0032-32V128a32 32 0 00-32-32zm8 272a24 24 0 01-24 24H144a24 24 0 01-24-24V144a24 24 0 0124-24h224a24 24 0 0124 24z'/></svg>">
</ion-icon>
<ion-icon class="custom"
icon="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Watch</title><rect x='136' y='136' width='240' height='240' rx='8' ry='8'/><path d='M384 96h-48V16H176v80h-48a32 32 0 00-32 32v256a32 32 0 0032 32h48v80h160v-80h48a32 32 0 0032-32V128a32 32 0 00-32-32zm8 272a24 24 0 01-24 24H144a24 24 0 01-24-24V144a24 24 0 0124-24h224a24 24 0 0124 24z'/></svg>">
</ion-icon>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>

After

Width:  |  Height:  |  Size: 292 B

@@ -0,0 +1,17 @@
import { expect } from '@playwright/test';
import { test } from '../../../utils/test/playwright';
test.describe('icon: dynamic type', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/test/dynamic-type');
});
test('should scale text on larger font sizes', async ({ page }) => {
// Wait for all SVGs to be lazily loaded before taking screenshots
await page.waitForLoadState('networkidle');
const icons = page.locator('#icons');
await expect(icons).toHaveScreenshot(`icon-dynamic-type-diff.png`);
});
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html dir="ltr" lang="en" mode="ios">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'none'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/*; img-src 'self'; connect-src 'self'; font-src https://fonts.gstatic.com/*'"
/>
<title>IonIcon - Dynamic Type</title>
<script type="module" src="../../build/ionicons.esm.js"></script>
<script nomodule src="../../build/ionicons.js"></script>
<style>
html {
font-size: 28px;
}
</style>
</head>
<body>
<div id="icons">
<ion-icon name="star"></ion-icon>
<ion-icon name="star" size="small"></ion-icon>
<ion-icon name="star" size="large"></ion-icon>
</div>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"/></svg>

After

Width:  |  Height:  |  Size: 369 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><script>alert('got ya')</script><path d="M0 0h24v24H0z" fill="none"/><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/></svg>

After

Width:  |  Height:  |  Size: 544 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><script>alert('got ya')</script><path d="M0 0h24v24H0z" fill="none"/><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/></svg>

After

Width:  |  Height:  |  Size: 544 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"/><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"/></svg>

After

Width:  |  Height:  |  Size: 372 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/><path fill="none" d="M0 0h24v24H0z"/></svg>

After

Width:  |  Height:  |  Size: 233 B

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 6V4h-4v2h4zM4 8v11h16V8H4zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2h4z"/><path fill="none" d="M0 0h24v24H0z"/></svg>

After

Width:  |  Height:  |  Size: 340 B

+11269
View File
File diff suppressed because it is too large Load Diff
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<path d="M476.7,422.2L270.1,72.7c-2.9-5-8.3-8.7-14.1-8.7c-5.9,0-11.3,3.7-14.1,8.7L35.3,422.2c-2.8,5-4.8,13-1.9,17.9
c2.9,4.9,8.2,7.9,14,7.9h417.1c5.8,0,11.1-3,14-7.9C481.5,435.2,479.5,427.1,476.7,422.2z M288,400h-64v-48h64V400z M288,320h-64
V176h64V320z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 766 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<path d="M320,480H192v-96h128V480z M304,320h-96L192,32h128L304,320z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 574 B

-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<polygon points="256,307.7 384,192 304,192 304,96 207.6,96 207.6,192 128,192 "/>
<path d="M465.4,297.2l-71.4-55h-42l62,61.8h-50.6c-2.3,0-4.3,1.2-5.4,2.9l-18.4,45.5H172.1l-18.4-45.5c-1-1.8-3.1-2.9-5.4-2.9H97.8
l62.2-61.8h-42.2l-71.4,55c-10.6,6.2-15.8,19-14.1,31.6l8.7,66.9c2.3,13.1,9.7,20.3,28.1,20.3h373.8c19.1,0,25.8-7.6,28.1-20.3
l8.7-66.9C481.4,315.9,476,303.4,465.4,297.2z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 892 B

-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<polygon points="256.5,448.5 448.5,256.5 336.5,256.5 336.5,64.5 176.5,64.5 176.5,256.5 64.5,256.5 "/>
</svg>

Before

Width:  |  Height:  |  Size: 593 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M98.9,184.7l1.8,2.1l136,156.5c4.6,5.3,11.5,8.6,19.2,8.6c7.7,0,14.6-3.4,19.2-8.6L411,187.1l2.3-2.6
c1.7-2.5,2.7-5.5,2.7-8.7c0-8.7-7.4-15.8-16.6-15.8v0H112.6v0c-9.2,0-16.6,7.1-16.6,15.8C96,179.1,97.1,182.2,98.9,184.7z"/>
</svg>

Before

Width:  |  Height:  |  Size: 721 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2
c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2
c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z"/>
</svg>

Before

Width:  |  Height:  |  Size: 782 B

-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<polygon points="64.5,256.5 256.5,448.5 256.5,336.5 448.5,336.5 448.5,176.5 256.5,176.5 256.5,64.5 "/>
</svg>

Before

Width:  |  Height:  |  Size: 594 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M327.3,98.9l-2.1,1.8l-156.5,136c-5.3,4.6-8.6,11.5-8.6,19.2c0,7.7,3.4,14.6,8.6,19.2L324.9,411l2.6,2.3
c2.5,1.7,5.5,2.7,8.7,2.7c8.7,0,15.8-7.4,15.8-16.6h0V112.6h0c0-9.2-7.1-16.6-15.8-16.6C332.9,96,329.8,97.1,327.3,98.9z"/>
</svg>

Before

Width:  |  Height:  |  Size: 723 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M189.3,128.4L89,233.4c-6,5.8-9,13.7-9,22.4c0,8.7,3,16.5,9,22.4l100.3,105.4c11.9,12.5,31.3,12.5,43.2,0
c11.9-12.5,11.9-32.7,0-45.2L184.4,288h217c16.9,0,30.6-14.3,30.6-32c0-17.7-13.7-32-30.6-32h-217l48.2-50.4
c11.9-12.5,11.9-32.7,0-45.2C220.6,115.9,201.3,115.9,189.3,128.4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 779 B

-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<polygon points="448.5,256.5 256.5,64.5 256.5,176.5 64.5,176.5 64.5,336.5 256.5,336.5 256.5,448.5 "/>
</svg>

Before

Width:  |  Height:  |  Size: 593 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M184.7,413.1l2.1-1.8l156.5-136c5.3-4.6,8.6-11.5,8.6-19.2c0-7.7-3.4-14.6-8.6-19.2L187.1,101l-2.6-2.3
C182,97,179,96,175.8,96c-8.7,0-15.8,7.4-15.8,16.6h0v286.8h0c0,9.2,7.1,16.6,15.8,16.6C179.1,416,182.2,414.9,184.7,413.1z"/>
</svg>

Before

Width:  |  Height:  |  Size: 725 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M322.7,128.4L423,233.4c6,5.8,9,13.7,9,22.4c0,8.7-3,16.5-9,22.4L322.7,383.6c-11.9,12.5-31.3,12.5-43.2,0
c-11.9-12.5-11.9-32.7,0-45.2l48.2-50.4h-217C93.7,288,80,273.7,80,256c0-17.7,13.7-32,30.6-32h217l-48.2-50.4
c-11.9-12.5-11.9-32.7,0-45.2C291.4,115.9,310.7,115.9,322.7,128.4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 783 B

-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<polygon points="256.5,64.5 64.5,256.5 176.5,256.5 176.5,448.5 336.5,448.5 336.5,256.5 448.5,256.5 "/>
</svg>

Before

Width:  |  Height:  |  Size: 594 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M413.1,327.3l-1.8-2.1l-136-156.5c-4.6-5.3-11.5-8.6-19.2-8.6c-7.7,0-14.6,3.4-19.2,8.6L101,324.9l-2.3,2.6
C97,330,96,333,96,336.2c0,8.7,7.4,15.8,16.6,15.8v0h286.8v0c9.2,0,16.6-7.1,16.6-15.8C416,332.9,414.9,329.8,413.1,327.3z"/>
</svg>

Before

Width:  |  Height:  |  Size: 728 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2
c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2
c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z"/>
</svg>

Before

Width:  |  Height:  |  Size: 782 B

-25
View File
@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<path d="M453.8,407.1c-23.9,25.3-52.3,43.8-85.2,55.4C335.7,474.2,301,480,264.5,480c-34.9,0-66.7-5.5-95.3-16.6
c-28.6-11-53.1-26.4-73.3-46.1c-20.3-19.7-36-43.3-47.2-70.8c-11.2-27.5-16.7-57.5-16.7-90c0-32.1,6.1-61.8,18.3-89.1
c12.2-27.3,28.8-51,49.9-71.1c21.1-20.1,45.7-35.8,74-47.3C202.3,37.7,232.5,32,264.5,32c27.6,0,54.4,4,80.3,12
c26,8,49,20.1,69.1,36.1c20.1,16.1,36.1,36.1,48.1,60.2c12,24.1,18,52.4,18,84.9c0,24.1-3.3,45.4-10,63.8
c-6.7,18.5-15.6,33.9-26.8,46.4c-11.2,12.5-23.9,21.8-38.3,28c-14.4,6.2-29.5,9.3-45.3,9.3c-16.2,0-29.2-3.8-39-11.4
c-9.7-7.6-14.6-17.3-14.6-28.9h-3c-6.1,9.6-15.4,18.8-28,27.4c-12.6,8.6-28,13-46.3,13c-27.6,0-48.9-9-63.9-27.1
c-15-18.1-22.5-41.5-22.5-70.5c0-16.9,2.8-33.5,8.5-50c5.7-16.5,13.8-31.1,24.3-44c10.5-12.8,23.1-23.2,37.7-31
c14.6-7.8,30.8-11.7,48.7-11.7c15.4,0,28.4,3.2,39,9.6c10.5,6.4,17.4,14.3,20.7,23.5h0.6l4.9-24.1h54.2L357,261.4
c-0.8,5.6-1.9,11.8-3.3,18.7c-1.4,6.8-2.1,13.2-2.1,19.3c0,6.8,1.3,12.5,4,17.2c2.6,4.6,7.8,6.9,15.5,6.9
c15.8,0,28.9-8.4,39.3-25.3c10.3-16.9,15.5-39.5,15.5-68c0-24.1-4.1-45.5-12.2-64.1c-8.1-18.7-19.4-34.3-33.8-47
c-14.4-12.6-31.6-22.2-51.4-28.6c-19.9-6.4-41.6-9.6-65.1-9.6c-25.6,0-49,4.5-70.3,13.5s-39.5,21.5-54.5,37.3
c-15,15.9-26.7,34.5-35,56C95.2,209.1,91,232.3,91,257.2c0,26.5,4.4,50.4,13.1,71.7c8.7,21.3,21,39.4,36.8,54.5
c15.8,15.1,34.7,26.6,56.6,34.6c21.9,8,46.1,12,72.4,12c32.9,0,61.2-5.2,84.9-15.7c23.7-10.4,45.5-24.9,65.4-43.4L453.8,407.1z
M263.3,188c-9.7,0-18.3,2.8-25.6,8.4c-7.3,5.6-13.5,12.7-18.6,21.4c-5.1,8.6-8.9,18.2-11.6,28.6c-2.6,10.4-4,20.5-4,30.1
c0,4.8,0.5,9.9,1.5,15.4c1,5.4,3,10.4,6.1,15.1c3,4.6,7,8.4,11.9,11.4c4.9,3,11.4,4.5,19.5,4.5c11,0,20.3-2.7,28-8.1
c7.7-5.4,14-12.2,18.9-20.5c4.9-8.2,8.4-17.2,10.7-26.8c2.2-9.6,3.3-18.5,3.3-26.5c0-6.4-0.6-12.7-1.8-19
c-1.2-6.2-3.3-11.8-6.4-16.9c-3-5-7.2-9.1-12.5-12.3C277.5,189.6,271,188,263.3,188z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

-10
View File
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M448,160h-64v-4.5C384,87,329,32,260.5,32h-8C184,32,128,87,128,155.5v4.5H64L32,480h448L448,160z M160,155.5
c0-50.7,41.8-91.5,92.5-91.5h7.5h0.5c50.7,0,91.5,40.8,91.5,91.5v4.5H160V155.5z M67.8,448l24.9-256H128v36.3
c-9.6,5.5-16,15.9-16,27.7c0,17.7,14.3,32,32,32s32-14.3,32-32c0-11.8-6.4-22.2-16-27.7V192h192v36.3c-9.6,5.5-16,15.9-16,27.7
c0,17.7,14.3,32,32,32s32-14.3,32-32c0-11.8-6.4-22.2-16-27.7V192h35.4l24.9,256H67.8z"/>
</svg>

Before

Width:  |  Height:  |  Size: 928 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M42.1,384h381.1c5.5,0,9.9-4.5,9.9-10v-54h36.9c5.6,0,10.1-4.5,10.1-10V202c0-5.5-4.5-10-10.1-10H433v-54
c0-5.5-4.3-10-9.9-10H42.1c-5.6,0-10.1,4.5-10.1,10v236C32,379.5,36.5,384,42.1,384z M257.4,160l-27.9,81H291L190.6,352l27.9-81H157
L257.4,160z"/>
</svg>

Before

Width:  |  Height:  |  Size: 749 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M469.9,192H433v-54c0-5.5-4.3-10-9.9-10H42.1c-5.6,0-10.1,4.5-10.1,10v236c0,5.5,4.5,10,10.1,10h381.1c5.5,0,9.9-4.5,9.9-10
v-54h36.9c5.6,0,10.1-4.5,10.1-10V202C480,196.5,475.5,192,469.9,192z M448,288h-14.8H401v32v32H64V160h337v32v32h32.2H448V288z"/>
</svg>

Before

Width:  |  Height:  |  Size: 749 B

-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M469.9,192H433v-54c0-5.5-4.3-10-9.9-10H42.1c-5.6,0-10.1,4.5-10.1,10v236c0,5.5,4.5,10,10.1,10h381.1c5.5,0,9.9-4.5,9.9-10
v-54h36.9c5.6,0,10.1-4.5,10.1-10V202C480,196.5,475.5,192,469.9,192z"/>
</svg>

Before

Width:  |  Height:  |  Size: 693 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M469.9,192H433v-54c0-5.5-4.3-10-9.9-10H42.1c-5.6,0-10.1,4.5-10.1,10v236c0,5.5,4.5,10,10.1,10h381.1c5.5,0,9.9-4.5,9.9-10
v-54h36.9c5.6,0,10.1-4.5,10.1-10V202C480,196.5,475.5,192,469.9,192z M448,288h-14.8H401v32v32h-49l-32-192h81v32v32h32.2H448V288z
"/>
</svg>

Before

Width:  |  Height:  |  Size: 756 B

-9
View File
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M42.1,384h381.1c5.5,0,9.9-4.5,9.9-10v-54h36.9c5.6,0,10.1-4.5,10.1-10V202c0-5.5-4.5-10-10.1-10H433v-54
c0-5.5-4.3-10-9.9-10H42.1c-5.6,0-10.1,4.5-10.1,10v236C32,379.5,36.5,384,42.1,384z M401,160v32v32h32.2H448v64h-14.8H401v32v32
H224l-32-192H401z"/>
</svg>

Before

Width:  |  Height:  |  Size: 752 B

-18
View File
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<g>
<path d="M140,143.6c-15.9,15.9-11.7,17.3-10.6,18.4c1.1,1.1,89.8,85.6,89.8,85.6s3.9,3.4,3.9,8.4h0c0,5-3.9,8.4-3.9,8.4
s-88.7,84.5-89.8,85.6c-1.1,1.1-5.3,2.5,10.6,18.4c15.9,15.9,18.4,12.2,19.2,11.4l67.4-64.3c0.1-0.1,0.2-0.2,0.3-0.3
c0.1-0.1,0.3-0.2,0.4-0.3c2.3-1.9,9.8-10.6,9.8-3.2c0,7.3,0,151.8,0,156.4v0.1v1.7c0,5.5,5.2,10.1,11.6,10.1c3.5,0,6.7-1.3,8.9-3.5
l0,0c0,0,118.2-112.8,122.8-117.2c4.6-4.4,5-10.7,1-14.7l-83.9-80.3c0,0-4.4-4.3-4.4-8.3s4.4-8.3,4.4-8.3l83.9-80.3
c4-4,3.6-10.4-1-14.7c-4.6-4.4-122.8-117.2-122.8-117.2l0,0c-2.1-2.1-5.3-3.5-8.8-3.5c-6.4,0-11.6,4.6-11.6,10.1v1.7V44
c0,4.6,0,149.1,0,156.4c0,7.4-7.5-1.3-9.8-3.2c-0.1-0.1-0.3-0.2-0.4-0.3c-0.1-0.1-0.2-0.2-0.3-0.3l-67.4-64.3
C158.3,131.4,155.9,127.7,140,143.6z M280,119.9c0-6.6,7.5,2.3,9.8,4.4l30.5,29.2c2.1,2,2.9,4.7,2.9,7.2c0,2.5-1,5.6-2.8,7.3
c-1.8,1.7-30.8,29.5-30.8,29.5c-2.3,1.8-9.6,9.8-9.6,1.7C280,199.2,280,126.5,280,119.9z M280,312.8c0-8.2,7.2-0.2,9.6,1.7
c0,0,29.1,27.8,30.9,29.5c1.8,1.7,2.8,4.9,2.8,7.3s-0.8,5.2-2.9,7.2l-30.5,29.2c-2.3,2.1-9.8,11-9.8,4.4
C280,385.5,280,312.8,280,312.8z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path d="M448.9,64H416v40.7c0,22.5-23.2,39.3-47.2,39.3S320,127.2,320,104.7V64H192v40.7c0,22.5-24,39.3-48,39.3s-48-16.8-48-39.3
V64H63.1C45.9,64,32,77.3,32,93.4v357.5C32,467,45.9,480,63.1,480h385.8c17.2,0,31.1-13,31.1-29.2V93.4C480,77.3,466.1,64,448.9,64z
M432,419.9c0,6.6-5.8,12-12.8,12L92.7,432c-7-0.3-12.7-5.6-12.7-12.2V188.3c0-6.9,5.9-12.3,13.3-12.3h325.5
c7.3,0,13.2,5.3,13.2,12.1V419.9z"/>
<path d="M176,96c0,17.7-14.3,32-32,32l0,0c-17.7,0-32-14.3-32-32V64c0-17.7,14.3-32,32-32l0,0c17.7,0,32,14.3,32,32V96z"/>
<path d="M400,96c0,17.7-14.3,32-32,32l0,0c-17.7,0-32-14.3-32-32V64c0-17.7,14.3-32,32-32l0,0c17.7,0,32,14.3,32,32V96z"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

Some files were not shown because too many files have changed in this diff Show More