Commit Graph
67 Commits
Author SHA1 Message Date
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 7666f2d97a use np for release 2020-10-07 14:25:13 -05:00
Adam Bradley 81edbf2387 fix: remove double ionicon css class on svg 2020-10-06 11:28:47 -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
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
Adam Bradley 3aed6eee31 fix(types): temporary fix for projects using older typescript versions 2020-06-25 17:32:53 -05:00
Adam Bradley 02eabdf6c5 chore: update release script 2020-02-06 09:47:14 -06:00
Adam Bradley 8a54bf0a71 chore(build): add package-lock 2020-01-03 12:22:06 -06:00
Adam Bradley 6342807b26 refactor(icons): export ionicons/icons package as data urls 2019-11-21 15:25:53 -06: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 1286103494 chore(collection): update dist/collection to use optimized svgs 2019-10-15 11:15:22 -05:00
Kevin Ports cc15712e03 Add two pass svg optimization 2019-09-26 08:59:59 -05:00
Kevin Ports ccb3e41441 Add descriptive title element to svg build 2019-09-25 17:19:35 -05:00
Adam Bradley 279de8512c feat(svg): add source svgs to distribution 2019-09-25 13:58:07 -05:00
Adam Bradley 9e254846f5 chore: development readme 2019-09-18 12:54:52 -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 0615f89ef8 chore(cheatsheet): remove style toggle 2019-09-17 14:39:03 -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 8839341860 fix(package): no sideEffect exports 2019-07-11 20:02:48 -05:00
Manu Mtz.-Almeida ce43b6c4af refactor(): remove site 2019-06-20 21:34:59 +02:00
Manu Mtz.-Almeida ced468a360 fix(): types generation 2019-06-19 22:56:56 +02: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
Manu Mtz.-Almeida 55fcc4b9f2 fix(): mode support 2019-06-07 14:54:54 +02:00
Adam Bradley 6398aa0a11 refactor: stencil one updates 2019-05-28 21:07:42 -05:00
Manu Mtz.-Almeida aae7600497 chore(): update website 2019-01-22 18:46:30 +01:00
Brandy Carney d6757c5228 docs(site): update the docs site 2019-01-17 13:09:57 -05:00
Manu Mtz.-Almeida cef8b5e20e fix(icon): fix webpack import in legacy systems 2018-12-17 17:19:54 +01:00
Manu Mtz.-Almeida 6b324459ee chore(): fix types 2018-12-12 23:14:35 +01:00
Manu Mtz.-Almeida 6020525ad2 chore(): update definitions 2018-12-12 23:02:15 +01:00
Manu Mtz.-Almeida bf2f7059d1 feat(esm): add map loader 2018-12-12 20:56:24 +01:00
Manu Mtz.-Almeida 76f4f6d90b chore(): update website 2018-11-15 18:07:51 +01: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 7f4291e460 fix(webpack): fix warning 2018-09-25 22:52:59 +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 e7f12e3df4 feat(): generate index.js for webpack 2018-08-22 22:03:19 +02:00
Adam Bradley 7c5116b1cb docs(): rebuild and update to 4.2.0 2018-06-14 09:00:36 -05:00
Kevin Ports ffe501d0dc Rebuild docs site 2018-05-21 11:45:39 -05:00
Adam Bradley 012ed970ba update docs 2018-05-21 11:18:59 -05:00
Kevin Ports 008e2f7b03 Fix broken copy script 2018-05-17 11:25:32 -05:00
Adam Bradley d1ac8c42ee add clean script 2018-05-16 11:15:28 -05:00