Compare commits

...
73 Commits
Author SHA1 Message Date
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
100 changed files with 1919 additions and 9469 deletions
+1
View File
@@ -0,0 +1 @@
package-lock=false
+1 -413
View File
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -1,2 +1,5 @@
/*! Built with http://stenciljs.com */
!function(e,t,r,o,c,s,i,n,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,r){r.$r=[];const o=t.componentOnReady;t.componentOnReady=function(t){const c=this;function s(e){r.$r?r.$r.push([c,e]):r.componentOnReady(c,e)}return o&&o.call(c),t?s(t):e.Promise?new Promise(s):{then:s}}}(e,l,u),d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);(h=p.getAttribute("data-resources-url"))&&(c=h),!c&&p.src&&(c=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,r,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=c+"docssite.jwdgw0bm.js":(d.src=c+"docssite.viz7bsay.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",c),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","vtu3zyh5",1],["header-bar","f5jhpa2x",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","vscrqboi",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","ms1l1l4a",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","f5jhpa2x",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","vscrqboi",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","f5jhpa2x",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","5szlxwny",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","f5jhpa2x",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","vscrqboi",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","cr38redw",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
/*!
* Built with http://stenciljs.com
* 2018-07-23T15:37:48
*/
!function(e,t,o,r,s,c,n,i,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,o){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),o.componentOnReady||(o.componentOnReady=function(){var t=this;function o(o){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],s=0,c=0;c<r.length;c++)if(e[r[c]].componentOnReady){if(e[r[c]].componentOnReady(t,o))return;s++}if(s<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,o])}o(null)}return e.Promise?new e.Promise(o):{then:o}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,o,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in o)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.p9maaol9.js":(d.src=s+"docssite.1g5w8nag.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","3vkw131p",1],["header-bar","csexa4ze",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","2osh7cvf",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","ym0h5hh3",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","csexa4ze",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","2osh7cvf",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","fonk1mfi",1],["stencil-route","csexa4ze",1,[["component",1,0,1,2],["componentProps",1],["componentUpdated",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupMatch",1],["history",1],["historyType",1,0,"history-type",2],["location",1],["match",5],["routeRender",1],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","9g7fwmr8",0,[["activeClass",1,0,"active-class",2],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["el",7],["exact",1,0,1,3],["history",1],["location",1],["match",5],["root",1,0,1,2],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-route-switch","csexa4ze",0,[["el",7],["group",1,0,1,2],["location",1],["queue",3,0,0,0,"queue"],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",4]]],["stencil-router","csexa4ze",0,[["history",5],["historyType",1,0,"history-type",2],["isServer",3,0,0,0,"isServer"],["location",5],["queue",3,0,0,0,"queue"],["root",1,0,1,2],["scrollTopOffset",1,0,"scroll-top-offset",4],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","2osh7cvf",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","ywjkqjtg",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("3vkw131p",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/ionicons/"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("5szlxwny",["exports","./chunk-4440b782.js"],function(t,e){var i=window.DocsSite.h,r=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.computeMatch=function(t){return t||(t=this.activeRouter.get("location").pathname),e.matchPath(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})},t.prototype.componentWillLoad=function(){var t=this;this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:function(e){t.match=e}}),this.match=this.computeMatch()},t.prototype.componentDidUnload=function(){this.unsubscribe()},t.prototype.handleClick=function(t){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')},t.prototype.getUrl=function(t){var e=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+t:e+t},t.prototype.render=function(){var t,e={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),i(this.custom,Object.assign({},e),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();t.StencilRouteLink=r,Object.defineProperty(t,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;import{a as e}from"./chunk-f6f1d593.js";class s{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}computeMatch(t){return t||(t=this.activeRouter.get("location").pathname),e(t,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}componentWillLoad(){this.unsubscribe=this.activeRouter.subscribe({isMatch:this.computeMatch.bind(this),listener:t=>{this.match=t}}),this.match=this.computeMatch()}componentDidUnload(){this.unsubscribe()}handleClick(t){if(t.preventDefault(),this.activeRouter)return this.activeRouter.get("history").push(this.getUrl(this.url));console.warn('<stencil-route-link> wasn\'t passed an instance of the router as the "router" prop!')}getUrl(t){const e=this.activeRouter.get("root")||"/";return"/"==t.charAt(0)&&"/"==e.charAt(e.length-1)?e.slice(0,e.length-1)+t:e+t}render(){let e={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),t(this.custom,Object.assign({},e),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},activeRouter:{context:"activeRouter"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},exact:{type:Boolean,attr:"exact"},match:{state:!0},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}export{s as StencilRouteLink};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("9g7fwmr8",["exports","./chunk-a980fdde.js"],function(t,e){var i=window.DocsSite.h,r=function(){function t(){this.unsubscribe=function(){},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}return t.prototype.componentWillLoad=function(){this.computeMatch()},t.prototype.computeMatch=function(){this.location&&(this.match=e.matchPath(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))},t.prototype.handleClick=function(t){if(!e.isModifiedEvent(t))return t.preventDefault(),this.history.push(this.getUrl(this.url))},t.prototype.getUrl=function(t){return"/"==t.charAt(0)&&"/"==this.root.charAt(this.root.length-1)?this.root.slice(0,this.root.length-1)+t:this.root+t},t.prototype.render=function(){var t,e={class:(t={},t[this.activeClass]=null!==this.match,t),onClick:this.handleClick.bind(this)};return this.anchorClass&&(e.class[this.anchorClass]=!0),"a"===this.custom&&(e=Object.assign({},e,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),i(this.custom,Object.assign({},e),i("slot",null))},Object.defineProperty(t,"is",{get:function(){return"stencil-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}},enumerable:!0,configurable:!0}),t}();e.ActiveRouter.injectProps(r,["history","location","root"]),t.StencilRouteLink=r,Object.defineProperty(t,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.DocsSite;import{a as s,u as a,c as i}from"./chunk-823bd299.js";class r{constructor(){this.unsubscribe=(()=>{}),this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=s(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){if(!a(t))return t.preventDefault(),this.history.push(this.getUrl(this.url))}getUrl(t){return"/"==t.charAt(0)&&"/"==this.root.charAt(this.root.length-1)?this.root.slice(0,this.root.length-1)+t:this.root+t}render(){let s={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(s.class[this.anchorClass]=!0),"a"===this.custom&&(s=Object.assign({},s,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex})),t(this.custom,Object.assign({},s),t("slot",null))}static get is(){return"stencil-route-link"}static get properties(){return{activeClass:{type:String,attr:"active-class"},anchorClass:{type:String,attr:"anchor-class"},anchorRole:{type:String,attr:"anchor-role"},anchorTabIndex:{type:String,attr:"anchor-tab-index"},anchorTitle:{type:String,attr:"anchor-title"},custom:{type:String,attr:"custom"},el:{elementRef:!0},exact:{type:Boolean,attr:"exact"},history:{type:"Any",attr:"history"},location:{type:"Any",attr:"location",watchCallbacks:["computeMatch"]},match:{state:!0},root:{type:String,attr:"root"},strict:{type:Boolean,attr:"strict"},url:{type:String,attr:"url"},urlMatch:{type:String,attr:"url-match"}}}}i.injectProps(r,["history","location","root"]);export{r as StencilRouteLink};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-37
View File
@@ -1,37 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("chunk-4440b782.js", ["exports"], function (e) { window.DocsSite.h; var t = "/", n = "./", r = new RegExp(["(\\\\.)", "(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"), "g"); function i(e) { return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); } function a(e) { return e.replace(/([=!:$/()])/g, "\\$1"); } function u(e) { return e && e.sensitive ? "" : "i"; } function l(e, o, c) { return e instanceof RegExp ? function (e, t) { if (!t)
return e; var n = e.source.match(/\((?!\?)/g); if (n)
for (var r = 0; r < n.length; r++)
t.push({ name: r, prefix: null, delimiter: null, optional: !1, repeat: !1, partial: !1, pattern: null }); return e; }(e, o) : Array.isArray(e) ? function (e, t, n) { for (var r = [], i = 0; i < e.length; i++)
r.push(l(e[i], t, n).source); return new RegExp("(?:" + r.join("|") + ")", u(n)); }(e, o, c) : function (e, l, o) { return function (e, r, a) { for (var l = (a = a || {}).strict, o = !1 !== a.end, c = i(a.delimiter || t), s = a.delimiters || n, p = [].concat(a.endsWith || []).map(i).concat("$").join("|"), f = "", h = !1, d = 0; d < e.length; d++) {
var g = e[d];
if ("string" == typeof g)
f += i(g), h = d === e.length - 1 && s.indexOf(g[g.length - 1]) > -1;
else {
var x = i(g.prefix), v = g.repeat ? "(?:" + g.pattern + ")(?:" + x + "(?:" + g.pattern + "))*" : g.pattern;
r && r.push(g), g.optional ? g.partial ? f += x + "(" + v + ")?" : f += "(?:" + x + "(" + v + "))?" : f += x + "(" + v + ")";
}
} return o ? (l || (f += "(?:" + c + ")?"), f += "$" === p ? "$" : "(?=" + p + ")") : (l || (f += "(?:" + c + "(?=" + p + "))?"), h || (f += "(?=" + c + "|" + p + ")")), new RegExp("^" + f, u(a)); }(function (e, u) { for (var l, o = [], c = 0, s = 0, p = "", f = u && u.delimiter || t, h = u && u.delimiters || n, d = !1; null !== (l = r.exec(e));) {
var g = l[0], x = l[1], v = l.index;
if (p += e.slice(s, v), s = v + g.length, x)
p += x[1], d = !0;
else {
var m = "", $ = e[s], y = l[2], w = l[3], E = l[4], R = l[5];
if (!d && p.length) {
var j = p.length - 1;
h.indexOf(p[j]) > -1 && (m = p[j], p = p.slice(0, j));
}
p && (o.push(p), p = "", d = !1);
var O = "" !== m && void 0 !== $ && $ !== m, S = "+" === R || "*" === R, b = "?" === R || "*" === R, k = m || f, A = w || E;
o.push({ name: y || c++, prefix: m, delimiter: k, optional: b, repeat: S, partial: O, pattern: A ? a(A) : "[^" + i(k) + "]+?" });
}
} return (p || s < e.length) && o.push(p + e.substr(s)), o; }(e, o), l, o); }(e, o, c); } var o = {}; var c = 0; e.matchPath = function (e, t) {
if (t === void 0) { t = {}; }
"string" == typeof t && (t = { path: t });
var _a = t.path, n = _a === void 0 ? "/" : _a, _b = t.exact, r = _b === void 0 ? !1 : _b, _c = t.strict, i = _c === void 0 ? !1 : _c, _d = function (e, t) { var n = "" + t.end + t.strict, r = o[n] || (o[n] = {}), i = JSON.stringify(e); if (r[i])
return r[i]; var a = [], u = { re: l(e, a, t), keys: a }; return c < 1e4 && (r[i] = u, c += 1), u; }(n, { end: r, strict: i }), a = _d.re, u = _d.keys, s = a.exec(e);
if (!s)
return null;
var p = s[0], f = s.slice(1), h = e === p;
return r && !h ? null : { path: n, url: "/" === n && "" === p ? "/" : p, isExact: h, params: u.reduce(function (e, t, n) { return e[t.name] = f[n], e; }, {}) };
}; });
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;var t="/",n="./",r=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e.replace(/([=!:$/()])/g,"\\$1")}function u(e){return e&&e.sensitive?"":"i"}function l(e,o,s){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return e}(e,o):Array.isArray(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(l(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",u(n))}(e,o,s):function(e,l,o){return function(e,r,a){for(var l=(a=a||{}).strict,o=!1!==a.end,s=i(a.delimiter||t),c=a.delimiters||n,p=[].concat(a.endsWith||[]).map(i).concat("$").join("|"),f="",h=!1,g=0;g<e.length;g++){var d=e[g];if("string"==typeof d)f+=i(d),h=g===e.length-1&&c.indexOf(d[d.length-1])>-1;else{var x=i(d.prefix),v=d.repeat?"(?:"+d.pattern+")(?:"+x+"(?:"+d.pattern+"))*":d.pattern;r&&r.push(d),d.optional?d.partial?f+=x+"("+v+")?":f+="(?:"+x+"("+v+"))?":f+=x+"("+v+")"}}return o?(l||(f+="(?:"+s+")?"),f+="$"===p?"$":"(?="+p+")"):(l||(f+="(?:"+s+"(?="+p+"))?"),h||(f+="(?="+s+"|"+p+")")),new RegExp("^"+f,u(a))}(function(e,u){for(var l,o=[],s=0,c=0,p="",f=u&&u.delimiter||t,h=u&&u.delimiters||n,g=!1;null!==(l=r.exec(e));){var d=l[0],x=l[1],v=l.index;if(p+=e.slice(c,v),c=v+d.length,x)p+=x[1],g=!0;else{var m="",$=e[c],y=l[2],w=l[3],E=l[4],R=l[5];if(!g&&p.length){var j=p.length-1;h.indexOf(p[j])>-1&&(m=p[j],p=p.slice(0,j))}p&&(o.push(p),p="",g=!1);var O=""!==m&&void 0!==$&&$!==m,k="+"===R||"*"===R,A="?"===R||"*"===R,S=m||f,b=w||E;o.push({name:y||s++,prefix:m,delimiter:S,optional:A,repeat:k,partial:O,pattern:b?a(b):"[^"+i(S)+"]+?"})}}return(p||c<e.length)&&o.push(p+e.substr(c)),o}(e,o),l,o)}(e,o,s)}const o={},s=1e4;let c=0;function p(e,t={}){"string"==typeof t&&(t={path:t});const{path:n="/",exact:r=!1,strict:i=!1}=t,{re:a,keys:u}=function(e,t){const n=`${t.end}${t.strict}`,r=o[n]||(o[n]={}),i=JSON.stringify(e);if(r[i])return r[i];const a=[],u={re:l(e,a,t),keys:a};return c<s&&(r[i]=u,c+=1),u}(n,{end:r,strict:i}),p=a.exec(e);if(!p)return null;const[f,...h]=p,g=e===f;return r&&!g?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:g,params:u.reduce((e,t,n)=>(e[t.name]=h[n],e),{})}}export{p as a};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -1,5 +1,4 @@
/*! Built with http://stenciljs.com */
(function(namespace,resourcesUrl){"use strict";
(function(resourcesUrl){var t=Object.prototype.hasOwnProperty;function n(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}function e(e,o){if(n(e,o))return!0;if("object"!=typeof e||null===e||"object"!=typeof o||null===o)return!1;var r=Object.keys(e),u=Object.keys(o);if(r.length!==u.length)return!1;for(var c=0;c<r.length;c++)if(!t.call(o,r[c])||!n(e[r[c]],o[r[c]]))return!1;return!0}var o=function(t,n,e,o){return new(e||(e=Promise))(function(r,u){function c(t){try{i(o.next(t))}catch(t){u(t)}}function l(t){try{i(o.throw(t))}catch(t){u(t)}}function i(t){t.done?r(t.value):new e(function(n){n(t.value)}).then(c,l)}i((o=o.apply(t,n||[])).next())})};Context.activeRouter=function(){let t={};const n=[];function r(n){return 0===Object.keys(t).length?{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}:n?t[n]:t}function u(){return o(this,void 0,void 0,function*(){const t=n,o=[],u=r("location").pathname;for(let n=0;n<t.length;n++){let r=null;const c=o.some(e=>null!=e[1]&&null!=e[2]&&e[2]===t[n].groupId);r=c?null:t[n].isMatch(u),e(t[n].lastMatch,r)||(!c&&t[n].groupId?o.unshift([n,r,t[n].groupId]):o.push([n,r,t[n].groupId])),t[n].lastMatch=r}for(const[n,e,r]of o)r&&null!=e?yield t[n].listener(e):t[n].listener(e)})}return{set:function(n){t=Object.assign({},t,n),u()},get:r,subscribe:function(t){!function(t){const e=r("location").pathname,o=t.isMatch(e);if(t.lastMatch=o,t.listener(o),null==t.groupId||null==t.groupIndex||0===n.length)n.push(t);else for(let e=0;e<n.length;e++){const{groupId:o,groupIndex:r}=n[e];if(null==o){n.splice(e,0,t);break}if(o===t.groupId&&r>t.groupIndex){n.splice(e,0,t);break}}}(t);let e=!0;return function(){e&&(function(t){const e=n.indexOf(t);n.splice(e,1)}(t),e=!1)}},dispatch:u}}();
})(resourcesUrl);
})("DocsSite");
File diff suppressed because one or more lines are too long
+43 -14
View File
@@ -3,44 +3,73 @@
"fsNamespace": "docssite",
"loader": "../docssite.js",
"global": "docssite.global.js",
"core": "docssite.viz7bsay.js",
"corePolyfilled": "docssite.jwdgw0bm.js",
"core": "docssite.1g5w8nag.js",
"corePolyfilled": "docssite.p9maaol9.js",
"components": {
"footer-bar": {
"$": "vtu3zyh5"
"bundleIds": {
"$": "3vkw131p"
}
},
"header-bar": {
"$": "f5jhpa2x"
"bundleIds": {
"$": "csexa4ze"
}
},
"icon-list": {
"$": "vscrqboi"
"bundleIds": {
"$": "2osh7cvf"
}
},
"icon-search": {
"$": "ms1l1l4a"
"bundleIds": {
"$": "ym0h5hh3"
}
},
"ionicons-site": {
"$": "f5jhpa2x"
"bundleIds": {
"$": "csexa4ze"
}
},
"landing-page": {
"$": "vscrqboi"
"bundleIds": {
"$": "2osh7cvf"
}
},
"notfound-page": {
"$": "d83fvjds"
"bundleIds": {
"$": "fonk1mfi"
}
},
"stencil-route": {
"$": "f5jhpa2x"
"bundleIds": {
"$": "csexa4ze"
}
},
"stencil-route-link": {
"$": "5szlxwny"
"bundleIds": {
"$": "9g7fwmr8"
}
},
"stencil-route-switch": {
"bundleIds": {
"$": "csexa4ze"
}
},
"stencil-router": {
"$": "f5jhpa2x"
"bundleIds": {
"$": "csexa4ze"
}
},
"toast-bar": {
"$": "vscrqboi"
"bundleIds": {
"$": "2osh7cvf"
}
},
"usage-page": {
"$": "cr38redw"
"bundleIds": {
"$": "ywjkqjtg"
}
}
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("d83fvjds",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
DocsSite.loadBundle("fonk1mfi",["exports"],function(e){var n=window.DocsSite.h,o=function(){function e(){}return e.prototype.render=function(){return n("main",null,n("div",{class:"container"},n("h1",null,"Woops! We can't find the page your looking for."),n("p",null,"Head on back to the ",n("stencil-route-link",{url:"/",class:"block"},"Icons page"),".")),n("footer-bar",null))},Object.defineProperty(e,"is",{get:function(){return"notfound-page"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"notfound-page{text-align:center;height:100%}notfound-page h1{max-width:500px}notfound-page a{font-weight:600}"},enumerable:!0,configurable:!0}),e}();e.NotfoundPage=o,Object.defineProperty(e,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("ms1l1l4a",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){if(27!==e.keyCode){var t=e.target.value;this.hasSearched.emit(t)}else this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){if(27===e.keyCode)return void this.handleClear();const t=e.target.value;this.hasSearched.emit(t)}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px;padding-left:30px;padding-right:30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px;padding-left:50px;padding-right:50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("vtu3zyh5",["exports"],function(e){var o=window.DocsSite.h,r=function(){function e(){}return e.prototype.render=function(){return o("footer",null,o("div",{class:"container"},o("div",{class:"footer__open-source"},o("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},o("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),o("p",null,"Released under ",o("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),o("div",{class:"footer-menu"},o("a",{href:"cheatsheet.html"},"Cheatsheet"),o("a",{href:"/v1"},"v1"),o("a",{href:"/v2"},"v2"),o("a",{href:"https://ionicframework.com/docs/components/#icons"},"v3"),o("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))},Object.defineProperty(e,"is",{get:function(){return"footer-bar"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-webkit-flex:0 0 8em;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"},enumerable:!0,configurable:!0}),e}();e.FooterBar=r,Object.defineProperty(e,"__esModule",{value:!0})});
-2
View File
@@ -1,2 +0,0 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class o{render(){return e("footer",null,e("div",{class:"container"},e("div",{class:"footer__open-source"},e("a",{href:"http://ionicframework.com/",title:"IonicFramework.com",rel:"noopener"},e("img",{src:"/assets/img/ionic-os-logo.png",alt:"Ionic Open Source Logo"})),e("p",null,"Released under ",e("span",{id:"mit"},"MIT License")," | Copyright @ ",(new Date).getFullYear())),e("div",{class:"footer-menu"},e("a",{href:"cheatsheet.html"},"Cheatsheet"),e("a",{href:"/v1"},"v1"),e("a",{href:"/v2"},"v2"),e("a",{href:"https://ionicframework.com/docs/components/#icons"},"v3"),e("a",{href:"https://ionicframework.com/"},"Ionic Framework"))))}static get is(){return"footer-bar"}static get style(){return"footer-bar footer{width:100%;background:var(--color-white-lilac);-webkit-box-flex:0;-webkit-flex:0 0 8em;-ms-flex:0 0 8em;flex:0 0 8em}footer-bar .container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;padding-top:40px;padding-bottom:40px}footer-bar img{width:50%}footer-bar p{margin-top:0;margin-bottom:0;color:var(--color-cadet-blue);font-size:10px;letter-spacing:0}footer-bar .footer-menu a{-webkit-transition:color .3s;transition:color .3s;font-size:11px;font-weight:600;text-decoration:none;color:var(--color-gull-gray)}footer-bar .footer-menu a:hover{color:var(--color-shark)}footer-bar .footer-menu a+a{margin-left:18px}\@media screen and (max-width:768px){footer-bar .container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;text-align:center}footer-bar .footer-menu{margin-bottom:36px}}"}}export{o as FooterBar};
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
DocsSite.loadBundle("ym0h5hh3",["exports"],function(e){var t=window.DocsSite.h,r=function(){function e(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}return e.prototype.watchQuery=function(){this.showClearCtrl=this.query.length>0},e.prototype.searchListener=function(e){if(27!==e.keyCode){var t=e.target.value;this.hasSearched.emit(t)}else this.handleClear()},e.prototype.handleClear=function(){this.hasSearched.emit("")},e.prototype.componentWillLoad=function(){this.watchQuery()},e.prototype.render=function(){return t("div",{class:"search-input search-input--"+this.size},t("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),t("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))},Object.defineProperty(e,"is",{get:function(){return"icon-search"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"keyup",method:"searchListener"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"},enumerable:!0,configurable:!0}),e}();e.IconSearch=r,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:e}=window.DocsSite;class t{constructor(){this.query="",this.size="small",this.autofocus="none",this.showClearCtrl=!1}watchQuery(){this.showClearCtrl=this.query.length>0}searchListener(e){if(27===e.keyCode)return void this.handleClear();const t=e.target.value;this.hasSearched.emit(t)}handleClear(){this.hasSearched.emit("")}componentWillLoad(){this.watchQuery()}render(){return e("div",{class:`search-input search-input--${this.size}`},e("input",{type:"text",placeholder:"Search icons...",value:this.query,autofocus:"autofocus"===this.autofocus?"autofocus":""}),e("i",{class:{"search-input__clear":!0,"search-input__clear--active":this.showClearCtrl,ion:!0,"ion-md-close":!0},onClick:this.handleClear.bind(this)}))}static get is(){return"icon-search"}static get properties(){return{autofocus:{type:String,attr:"autofocus"},query:{type:String,attr:"query",watchCallbacks:["watchQuery"]},showClearCtrl:{state:!0},size:{type:String,attr:"size"}}}static get events(){return[{name:"hasSearched",method:"hasSearched",bubbles:!0,cancelable:!0,composed:!0}]}static get listeners(){return[{name:"keyup",method:"searchListener"}]}static get style(){return"icon-search .search-input{position:relative}icon-search .search-input input{width:100%;font-weight:400;font-family:Eina;font-size:16px;border:0;outline:0;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;-webkit-appearance:none;vertical-align:middle}icon-search .search-input__clear{-webkit-transition:background .3s,opacity .3s;transition:background .3s,opacity .3s;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;font-size:14px;width:22px;height:22px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;color:var(--color-pale-sky);opacity:0;background-color:var(--color-catskill-white);border-radius:100px}icon-search .search-input__clear--active{opacity:.8}icon-search .search-input__clear--active:hover{opacity:1;background-color:#e3e9f3}icon-search .search-input--small .search-input__clear{font-size:12px;width:18px;height:18px;background-color:#e3e9f3;right:12px}icon-search .search-input--small .search-input__clear--active:hover{background-color:#dce3f0}icon-search .search-input:before{font-family:Ionicons;content:\"\\f4a5\";color:var(--color-heather);position:absolute;height:24px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}icon-search .search-input--small input{font-size:13px;line-height:18px;padding:10px 30px;background-color:#f6f7f9;height:39px;text-indent:0}icon-search .search-input--small:before{font-size:18px;left:10px}icon-search .search-input--large input{-webkit-transition:-webkit-box-shadow .3s;transition:-webkit-box-shadow .3s;transition:box-shadow .3s;transition:box-shadow .3s,-webkit-box-shadow .3s;font-size:16px;line-height:22px;padding:20px 50px;background-color:#fff;-webkit-box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 3px 6px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large input:focus{-webkit-box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08);box-shadow:0 6px 12px 0 rgba(0,0,0,.1),0 1px 3px 0 rgba(0,0,0,.08)}icon-search .search-input--large:before{font-size:22px;left:20px}icon-search .search-input input::-webkit-input-placeholder{color:var(--color-heather)}icon-search .search-input input:-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::-ms-input-placeholder{color:var(--color-heather)}icon-search .search-input input::placeholder{color:var(--color-heather)}"}}export{t as IconSearch};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5 -12
View File
@@ -93,12 +93,8 @@
ion-icon {
display: block;
min-height: 38px;
}
ion-icon svg {
width: 32px;
height: 32px;
margin: 5px 0;
font-size: 32px;
}
footer {
@@ -109,16 +105,13 @@
.heart {
display: inline-block;
}
.heart svg {
display: inline-block;
padding-top: 4px;
width: 18px;
height: 18px;
fill: red;
color: red;
vertical-align: sub;
}
</style>
<script src="ionicons.js"></script>
</head>
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
Binary file not shown.
+2 -2
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<!--
2018-5-15: Created with FontForge (http://fontforge.org)
2018-6-14: Created with FontForge (http://fontforge.org)
-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
Created by FontForge 20160407 at Tue May 15 16:29:27 2018
Created by FontForge 20160407 at Thu Jun 14 08:50:34 2018
By Adam Bradley
Copyright (c) 2018, Adam Bradley
</metadata>

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -3
View File
@@ -1,4 +1,7 @@
<!DOCTYPE html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <title>Ionicons: The premium icon pack for Ionic Framework</title> <meta name="author" content="Ionic"> <meta name="description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="manifest" href="/manifest.json"> <meta property="og:title" content="Ionicons: The premium icon pack for Ionic Framework"> <meta property="og:description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta property="og:type" content="website"> <meta property="og:url" content="https://ionicons.com/"> <meta property="og:image" content="/assets/img/meta/ionicons-og-image.png"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:creator" content="@ionicframework"> <link rel="apple-touch-icon" sizes="57x57" href="/assets/img/meta/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/assets/img/meta/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/assets/img/meta/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/assets/img/meta/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/assets/img/meta/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/assets/img/meta/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/assets/img/meta/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/assets/img/meta/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/meta/apple-icon-180x180.png"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-96x96.png" sizes="96x96"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-70x70.png"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-144x144.png"> <meta name="theme-color" content="#16161d"> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:500" rel="stylesheet"> <link rel="stylesheet" href="/css/ionicons.min.css"> <link rel="stylesheet" href="/build/docssite.css"> <script data-resources-url="/build/docssite/">/*! Built with http://stenciljs.com */
!function(e,t,r,o,c,s,i,n,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,r){r.$r=[];const o=t.componentOnReady;t.componentOnReady=function(t){const c=this;function s(e){r.$r?r.$r.push([c,e]):r.componentOnReady(c,e)}return o&&o.call(c),t?s(t):e.Promise?new Promise(s):{then:s}}}(e,l,u),d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);(h=p.getAttribute("data-resources-url"))&&(c=h),!c&&p.src&&(c=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,r,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=c+"docssite.jwdgw0bm.js":(d.src=c+"docssite.viz7bsay.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",c),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","vtu3zyh5",1],["header-bar","f5jhpa2x",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","vscrqboi",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","ms1l1l4a",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","f5jhpa2x",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","vscrqboi",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","d83fvjds",1],["stencil-route","f5jhpa2x",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","5szlxwny",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","f5jhpa2x",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","vscrqboi",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","cr38redw",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);</script>
<!DOCTYPE html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <title>Ionicons: The premium icon pack for Ionic Framework</title> <meta name="author" content="Ionic"> <meta name="description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="manifest" href="/manifest.json"> <meta property="og:title" content="Ionicons: The premium icon pack for Ionic Framework"> <meta property="og:description" content="Ionicons is an open-sourced and MIT licensed icon pack."> <meta property="og:type" content="website"> <meta property="og:url" content="https://ionicons.com/"> <meta property="og:image" content="/assets/img/meta/ionicons-og-image.png"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:creator" content="@ionicframework"> <link rel="apple-touch-icon" sizes="57x57" href="/assets/img/meta/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/assets/img/meta/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/assets/img/meta/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/assets/img/meta/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/assets/img/meta/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/assets/img/meta/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/assets/img/meta/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/assets/img/meta/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/meta/apple-icon-180x180.png"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/assets/img/meta/favicon-96x96.png" sizes="96x96"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-70x70.png"> <meta name="msapplication-TileImage" content="/assets/img/meta/ms-icon-144x144.png"> <meta name="theme-color" content="#16161d"> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:500" rel="stylesheet"> <link rel="stylesheet" href="/css/ionicons.min.css"> <link rel="stylesheet" href="/build/docssite.css"> <script data-resources-url="/build/docssite/">/*!
* Built with http://stenciljs.com
* 2018-07-23T15:37:48
*/
!function(e,t,o,r,s,c,n,i,a,l,u,d,h,p){for((u=e.DocsSite=e.DocsSite||{}).components=a,(h=a.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=h.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,o){(e["s-apps"]=e["s-apps"]||[]).push("DocsSite"),o.componentOnReady||(o.componentOnReady=function(){var t=this;function o(o){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],s=0,c=0;c<r.length;c++)if(e[r[c]].componentOnReady){if(e[r[c]].componentOnReady(t,o))return;s++}if(s<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,o])}o(null)}return e.Promise?new e.Promise(o):{then:o}})}(e,0,l),s=s||u.resourcesUrl,d=(h=t.querySelectorAll("script")).length-1;d>=0&&!(p=h[d]).src&&!p.hasAttribute("data-resources-url");d--);h=p.getAttribute("data-resources-url"),!s&&h&&(s=h),!s&&p.src&&(s=(h=p.src.split("/").slice(0,-1)).join("/")+(h.length?"/":"")+"docssite/"),d=t.createElement("script"),function(e,t,o,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in o)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=s+"docssite.p9maaol9.js":(d.src=s+"docssite.1g5w8nag.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",s),d.setAttribute("data-namespace","docssite"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["footer-bar","3vkw131p",1],["header-bar","csexa4ze",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","2osh7cvf",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","ym0h5hh3",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","csexa4ze",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","2osh7cvf",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","fonk1mfi",1],["stencil-route","csexa4ze",1,[["component",1,0,1,2],["componentProps",1],["componentUpdated",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupMatch",1],["history",1],["historyType",1,0,"history-type",2],["location",1],["match",5],["routeRender",1],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","9g7fwmr8",0,[["activeClass",1,0,"active-class",2],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["el",7],["exact",1,0,1,3],["history",1],["location",1],["match",5],["root",1,0,1,2],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-route-switch","csexa4ze",0,[["el",7],["group",1,0,1,2],["location",1],["queue",3,0,0,0,"queue"],["routeViewsUpdated",1],["scrollTopOffset",1,0,"scroll-top-offset",4]]],["stencil-router","csexa4ze",0,[["history",5],["historyType",1,0,"history-type",2],["isServer",3,0,0,0,"isServer"],["location",5],["queue",3,0,0,0,"queue"],["root",1,0,1,2],["scrollTopOffset",1,0,"scroll-top-offset",4],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","2osh7cvf",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","ywjkqjtg",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);</script>
</head>
<body> <ionicons-site></ionicons-site> <script>!function(e,a,n,t,c,g,o){e.GoogleAnalyticsObject="ga",e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,g=a.createElement(n),o=a.getElementsByTagName(n)[0],g.async=1,g.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(g,o)}(window,document,"script"),ga("create","UA-44023830-2","ionicons.com"),ga("send","pageview");</script> </body></html>
<body> <ionicons-site></ionicons-site> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-44023830-2', 'ionicons.com');ga('send', 'pageview');</script> </body></html>
Binary file not shown.
+5 -2
View File
@@ -1,2 +1,5 @@
/*! Built with http://stenciljs.com */
!function(e,t,n,o,r,i,s,c,u,l,a,d,m,p){for((a=e.ionicons=e.ionicons||{}).components=u,(m=u.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=m.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,n){n.$r=[];const o=t.componentOnReady;t.componentOnReady=function(t){const r=this;function i(e){n.$r?n.$r.push([r,e]):n.componentOnReady(r,e)}return o&&o.call(r),t?i(t):e.Promise?new Promise(i):{then:i}}}(e,l,a),d=(m=t.querySelectorAll("script")).length-1;d>=0&&!(p=m[d]).src&&!p.hasAttribute("data-resources-url");d--);(m=p.getAttribute("data-resources-url"))&&(r=m),!r&&p.src&&(r=(m=p.src.split("/").slice(0,-1)).join("/")+(m.length?"/":"")+"ionicons/"),d=t.createElement("script"),function(e,t,n,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=r+"ionicons.n4pkessg.js":(d.src=r+"ionicons.sfyw8ouo.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",r),d.setAttribute("data-namespace","ionicons"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["ion-icon","o2hptg7m",1,[["ariaLabel",1,0,"aria-label",2],["color",1,0,1,2],["doc",3,0,0,0,"document"],["el",7],["icon",1,0,1,2],["ios",1,0,1,2],["isServer",3,0,0,0,"isServer"],["isVisible",5],["md",1,0,1,2],["mode",3,0,0,0,"mode"],["name",1,0,1,2],["resourcesUrl",3,0,0,0,"resourcesUrl"],["size",1,0,1,2],["src",1,0,1,2],["svgContent",5],["win",3,0,0,0,"window"]]]],HTMLElement.prototype);
/*!
* Built with http://stenciljs.com
* 2018-07-23T15:37:42
*/
!function(e,t,n,r,i,o,s,c,u,a,l,d,p,m){for((l=e.ionicons=e.ionicons||{}).components=u,(p=u.filter(function(e){return e[2]}).map(function(e){return e[0]})).length&&((d=t.createElement("style")).innerHTML=p.join()+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),t.head.insertBefore(d,t.head.firstChild)),function(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push("ionicons"),n.componentOnReady||(n.componentOnReady=function(){var t=this;function n(n){if(t.nodeName.indexOf("-")>0){for(var r=e["s-apps"],i=0,o=0;o<r.length;o++)if(e[r[o]].componentOnReady){if(e[r[o]].componentOnReady(t,n))return;i++}if(i<r.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,n])}n(null)}return e.Promise?new e.Promise(n):{then:n}})}(e,0,a),i=i||l.resourcesUrl,d=(p=t.querySelectorAll("script")).length-1;d>=0&&!(m=p[d]).src&&!m.hasAttribute("data-resources-url");d--);p=m.getAttribute("data-resources-url"),!i&&p&&(i=p),!i&&m.src&&(i=(p=m.src.split("/").slice(0,-1)).join("/")+(p.length?"/":"")+"ionicons/"),d=t.createElement("script"),function(e,t,n,r){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,d)?d.src=i+"ionicons.dtq2s2mu.js":(d.src=i+"ionicons.nh97vtre.js",d.setAttribute("type","module"),d.setAttribute("crossorigin",!0)),d.setAttribute("data-resources-url",i),d.setAttribute("data-namespace","ionicons"),t.head.appendChild(d)}(window,document,0,0,0,0,0,0,[["ion-icon","nmlxfavd",1,[["ariaLabel",2,1,"aria-label",2],["color",1,0,1,2],["doc",3,0,0,0,"document"],["el",7],["icon",1,0,1,2],["ios",1,0,1,2],["isServer",3,0,0,0,"isServer"],["isVisible",5],["lazy",1,0,1,3],["md",1,0,1,2],["mode",1,0,1,2],["name",1,0,1,2],["resourcesUrl",3,0,0,0,"resourcesUrl"],["size",1,0,1,2],["src",1,0,1,2],["svgContent",5],["win",3,0,0,0,"window"]],1]],HTMLElement.prototype);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
ionicons.loadBundle("nmlxfavd",["exports"],function(e){var t=window.ionicons.h,i=function(){function e(){this.isVisible=!1,this.lazy=!0}return e.prototype.componentWillLoad=function(){var e=this;this.waitUntilVisible(this.el,"50px",function(){e.isVisible=!0,e.loadIcon()})},e.prototype.componentDidUnload=function(){this.io&&(this.io.disconnect(),this.io=void 0)},e.prototype.waitUntilVisible=function(e,t,i){var n=this;if(this.lazy&&this.win&&this.win.IntersectionObserver){var r=this.io=new this.win.IntersectionObserver(function(e){e[0].isIntersecting&&(r.disconnect(),n.io=void 0,i())},{rootMargin:t});r.observe(e)}else i()},e.prototype.loadIcon=function(){var e=this;if(!this.isServer&&this.isVisible){var t=this.getUrl();t&&function(e){var t=n.get(e);return t||(t=fetch(e,{cache:"force-cache"}).then(function(e){return e.ok?e.text():Promise.resolve(null)}),n.set(e,t)),t}(t).then(function(t){e.svgContent=function(e,t,i){if(t){var n=e.createDocumentFragment(),r=e.createElement("div");r.innerHTML=t,n.appendChild(r);for(var o=r.childNodes.length-1;o>=0;o--)"svg"!==r.childNodes[o].nodeName.toLowerCase()&&r.removeChild(r.childNodes[o]);var s=r.firstElementChild;if(s&&"svg"===s.nodeName.toLowerCase()&&(i&&s.setAttribute("class",i),function e(t){if(1===t.nodeType){if("script"===t.nodeName.toLowerCase())return!1;for(var i=0;i<t.attributes.length;i++){var n=t.attributes[i].value;if("string"==typeof n&&0===n.toLowerCase().indexOf("on"))return!1}for(i=0;i<t.childNodes.length;i++)if(!e(t.childNodes[i]))return!1}return!0}(s)))return r.innerHTML}return""}(e.doc,t,e.el["s-sc"])})}if(!this.ariaLabel){var i=r(this.name,this.mode,this.ios,this.md);i&&(this.ariaLabel=i.replace("ios-","").replace("md-","").replace(/\-/g," "))}},e.prototype.getUrl=function(){var e=o(this.src);return e||((e=r(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(e):(e=o(this.icon))?e:(e=r(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(e):null)},e.prototype.getNamedUrl=function(e){return this.resourcesUrl+"svg/"+e+".svg"},e.prototype.hostData=function(){var e;return{role:"img",class:Object.assign({},function(e){var t;return e?((t={"ion-color":!0})["ion-color-"+e]=!0,t):null}(this.color),(e={},e["icon-"+this.size]=!!this.size,e))}},e.prototype.render=function(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})},Object.defineProperty(e,"is",{get:function(){return"ion-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"encapsulation",{get:function(){return"shadow"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}:host(.ion-color){color:var(--ion-color-base)!important}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;height:100%;width:100%}svg{fill:currentColor;stroke:currentColor}: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)}"},enumerable:!0,configurable:!0}),e}(),n=new Map;function r(e,t,i,n){return t=(t||"md").toLowerCase(),i&&"ios"===t?e=i.toLowerCase():n&&"md"===t?e=n.toLowerCase():e&&(e=e.toLowerCase(),/^md-|^ios-|^logo-/.test(e)||(e=t+"-"+e)),"string"!=typeof e||""===e.trim()?null:""!==e.replace(/[a-z]|-|\d/gi,"")?null:e}function o(e){return"string"==typeof e&&(e=e.trim()).length>0&&/(\/|\.)/.test(e)?e:null}e.IonIcon=i,Object.defineProperty(e,"__esModule",{value:!0})});
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;class e{constructor(){this.isVisible=!1,this.lazy=!0}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&this.win&&this.win.IntersectionObserver){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t){let e=i.get(t);return e||(e=fetch(t,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)),i.set(t,e)),e}(t).then(t=>{this.svgContent=function(t,e,i){if(e){const s=t.createDocumentFragment(),n=t.createElement("div");n.innerHTML=e,s.appendChild(n);for(let t=n.childNodes.length-1;t>=0;t--)"svg"!==n.childNodes[t].nodeName.toLowerCase()&&n.removeChild(n.childNodes[t]);const o=n.firstElementChild;if(o&&"svg"===o.nodeName.toLowerCase()&&(i&&o.setAttribute("class",i),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){const i=e.attributes[t].value;if("string"==typeof i&&0===i.toLowerCase().indexOf("on"))return!1}for(let i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(o)))return n.innerHTML}return""}(this.doc,t,this.el["s-sc"])})}if(!this.ariaLabel){const t=s(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=n(this.src);return t||((t=s(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=n(this.icon))?t:(t=s(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return":host{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}:host(.ion-color){color:var(--ion-color-base)!important}:host(.icon-small){font-size:var(--ion-icon-size-small,18px)!important}:host(.icon-large){font-size:var(--ion-icon-size-large,32px)!important}.icon-inner,svg{display:block;height:100%;width:100%}svg{fill:currentColor;stroke:currentColor}: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)}"}}const i=new Map;function s(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&(t=t.toLowerCase(),/^md-|^ios-|^logo-/.test(t)||(t=`${e}-${t}`)),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function n(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}export{e as IonIcon};
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
/*! Built with http://stenciljs.com */
const{h:t}=window.ionicons;class e{constructor(){this.isVisible=!1,this.lazy=!0}componentWillLoad(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidUnload(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(t,e,i){if(this.lazy&&this.win&&this.win.IntersectionObserver){const s=this.io=new this.win.IntersectionObserver(t=>{t[0].isIntersecting&&(s.disconnect(),this.io=void 0,i())},{rootMargin:e});s.observe(t)}else i()}loadIcon(){if(!this.isServer&&this.isVisible){const t=this.getUrl();t&&function(t){let e=i.get(t);return e||(e=fetch(t,{cache:"force-cache"}).then(t=>t.ok?t.text():Promise.resolve(null)),i.set(t,e)),e}(t).then(t=>{this.svgContent=function(t,e,i){if(e){const s=t.createDocumentFragment(),n=t.createElement("div");n.innerHTML=e,s.appendChild(n);for(let t=n.childNodes.length-1;t>=0;t--)"svg"!==n.childNodes[t].nodeName.toLowerCase()&&n.removeChild(n.childNodes[t]);const o=n.firstElementChild;if(o&&"svg"===o.nodeName.toLowerCase()&&(i&&o.setAttribute("class",i),function t(e){if(1===e.nodeType){if("script"===e.nodeName.toLowerCase())return!1;for(let t=0;t<e.attributes.length;t++){const i=e.attributes[t].value;if("string"==typeof i&&0===i.toLowerCase().indexOf("on"))return!1}for(let i=0;i<e.childNodes.length;i++)if(!t(e.childNodes[i]))return!1}return!0}(o)))return n.innerHTML}return""}(this.doc,t,this.el["s-sc"])})}if(!this.ariaLabel){const t=s(this.name,this.mode,this.ios,this.md);t&&(this.ariaLabel=t.replace("ios-","").replace("md-","").replace(/\-/g," "))}}getUrl(){let t=n(this.src);return t||((t=s(this.name,this.mode,this.ios,this.md))?this.getNamedUrl(t):(t=n(this.icon))?t:(t=s(this.icon,this.mode,this.ios,this.md))?this.getNamedUrl(t):null)}getNamedUrl(t){return`${this.resourcesUrl}svg/${t}.svg`}hostData(){return{role:"img",class:Object.assign({},(t=this.color,t?{"ion-color":!0,[`ion-color-${t}`]:!0}:null),{[`icon-${this.size}`]:!!this.size})};var t}render(){return!this.isServer&&this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"})}static get is(){return"ion-icon"}static get encapsulation(){return"shadow"}static get properties(){return{ariaLabel:{type:String,attr:"aria-label",reflectToAttr:!0,mutable:!0},color:{type:String,attr:"color"},doc:{context:"document"},el:{elementRef:!0},icon:{type:String,attr:"icon",watchCallbacks:["loadIcon"]},ios:{type:String,attr:"ios"},isServer:{context:"isServer"},isVisible:{state:!0},lazy:{type:Boolean,attr:"lazy"},md:{type:String,attr:"md"},mode:{type:String,attr:"mode"},name:{type:String,attr:"name",watchCallbacks:["loadIcon"]},resourcesUrl:{context:"resourcesUrl"},size:{type:String,attr:"size"},src:{type:String,attr:"src",watchCallbacks:["loadIcon"]},svgContent:{state:!0},win:{context:"window"}}}static get style(){return".sc-ion-icon-h{display:inline-block;width:1em;height:1em;contain:strict;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.ion-color.sc-ion-icon-h{color:var(--ion-color-base)!important}.icon-small.sc-ion-icon-h{font-size:var(--ion-icon-size-small,18px)!important}.icon-large.sc-ion-icon-h{font-size:var(--ion-icon-size-large,32px)!important}.icon-inner.sc-ion-icon, svg.sc-ion-icon{display:block;height:100%;width:100%}svg.sc-ion-icon{fill:currentColor;stroke:currentColor}.ion-color-primary.sc-ion-icon-h{--ion-color-base:var(--ion-color-primary, #3880ff)}.ion-color-secondary.sc-ion-icon-h{--ion-color-base:var(--ion-color-secondary, #0cd1e8)}.ion-color-tertiary.sc-ion-icon-h{--ion-color-base:var(--ion-color-tertiary, #f4a942)}.ion-color-success.sc-ion-icon-h{--ion-color-base:var(--ion-color-success, #10dc60)}.ion-color-warning.sc-ion-icon-h{--ion-color-base:var(--ion-color-warning, #ffce00)}.ion-color-danger.sc-ion-icon-h{--ion-color-base:var(--ion-color-danger, #f14141)}.ion-color-light.sc-ion-icon-h{--ion-color-base:var(--ion-color-light, #f4f5f8)}.ion-color-medium.sc-ion-icon-h{--ion-color-base:var(--ion-color-medium, #989aa2)}.ion-color-dark.sc-ion-icon-h{--ion-color-base:var(--ion-color-dark, #222428)}"}}const i=new Map;function s(t,e,i,s){return e=(e||"md").toLowerCase(),i&&"ios"===e?t=i.toLowerCase():s&&"md"===e?t=s.toLowerCase():t&&(t=t.toLowerCase(),/^md-|^ios-|^logo-/.test(t)||(t=`${e}-${t}`)),"string"!=typeof t||""===t.trim()?null:""!==t.replace(/[a-z]|-|\d/gi,"")?null:t}function n(t){return"string"==typeof t&&(t=t.trim()).length>0&&/(\/|\.)/.test(t)?t:null}export{e as IonIcon};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+696
View File
@@ -0,0 +1,696 @@
export * from './ios-add-circle-outline.svg';
export * from './ios-add-circle.svg';
export * from './ios-add.svg';
export * from './ios-airplane.svg';
export * from './ios-alarm.svg';
export * from './ios-albums.svg';
export * from './ios-alert.svg';
export * from './ios-american-football.svg';
export * from './ios-analytics.svg';
export * from './ios-aperture.svg';
export * from './ios-apps.svg';
export * from './ios-appstore.svg';
export * from './ios-archive.svg';
export * from './ios-arrow-back.svg';
export * from './ios-arrow-down.svg';
export * from './ios-arrow-dropdown-circle.svg';
export * from './ios-arrow-dropdown.svg';
export * from './ios-arrow-dropleft-circle.svg';
export * from './ios-arrow-dropleft.svg';
export * from './ios-arrow-dropright-circle.svg';
export * from './ios-arrow-dropright.svg';
export * from './ios-arrow-dropup-circle.svg';
export * from './ios-arrow-dropup.svg';
export * from './ios-arrow-forward.svg';
export * from './ios-arrow-round-back.svg';
export * from './ios-arrow-round-down.svg';
export * from './ios-arrow-round-forward.svg';
export * from './ios-arrow-round-up.svg';
export * from './ios-arrow-up.svg';
export * from './ios-at.svg';
export * from './ios-attach.svg';
export * from './ios-backspace.svg';
export * from './ios-barcode.svg';
export * from './ios-baseball.svg';
export * from './ios-basket.svg';
export * from './ios-basketball.svg';
export * from './ios-battery-charging.svg';
export * from './ios-battery-dead.svg';
export * from './ios-battery-full.svg';
export * from './ios-beaker.svg';
export * from './ios-bed.svg';
export * from './ios-beer.svg';
export * from './ios-bicycle.svg';
export * from './ios-bluetooth.svg';
export * from './ios-boat.svg';
export * from './ios-body.svg';
export * from './ios-bonfire.svg';
export * from './ios-book.svg';
export * from './ios-bookmark.svg';
export * from './ios-bookmarks.svg';
export * from './ios-bowtie.svg';
export * from './ios-briefcase.svg';
export * from './ios-browsers.svg';
export * from './ios-brush.svg';
export * from './ios-bug.svg';
export * from './ios-build.svg';
export * from './ios-bulb.svg';
export * from './ios-bus.svg';
export * from './ios-business.svg';
export * from './ios-cafe.svg';
export * from './ios-calculator.svg';
export * from './ios-calendar.svg';
export * from './ios-call.svg';
export * from './ios-camera.svg';
export * from './ios-car.svg';
export * from './ios-card.svg';
export * from './ios-cart.svg';
export * from './ios-cash.svg';
export * from './ios-cellular.svg';
export * from './ios-chatboxes.svg';
export * from './ios-chatbubbles.svg';
export * from './ios-checkbox-outline.svg';
export * from './ios-checkbox.svg';
export * from './ios-checkmark-circle-outline.svg';
export * from './ios-checkmark-circle.svg';
export * from './ios-checkmark.svg';
export * from './ios-clipboard.svg';
export * from './ios-clock.svg';
export * from './ios-close-circle-outline.svg';
export * from './ios-close-circle.svg';
export * from './ios-close.svg';
export * from './ios-cloud-circle.svg';
export * from './ios-cloud-done.svg';
export * from './ios-cloud-download.svg';
export * from './ios-cloud-outline.svg';
export * from './ios-cloud-upload.svg';
export * from './ios-cloud.svg';
export * from './ios-cloudy-night.svg';
export * from './ios-cloudy.svg';
export * from './ios-code-download.svg';
export * from './ios-code-working.svg';
export * from './ios-code.svg';
export * from './ios-cog.svg';
export * from './ios-color-fill.svg';
export * from './ios-color-filter.svg';
export * from './ios-color-palette.svg';
export * from './ios-color-wand.svg';
export * from './ios-compass.svg';
export * from './ios-construct.svg';
export * from './ios-contact.svg';
export * from './ios-contacts.svg';
export * from './ios-contract.svg';
export * from './ios-contrast.svg';
export * from './ios-copy.svg';
export * from './ios-create.svg';
export * from './ios-crop.svg';
export * from './ios-cube.svg';
export * from './ios-cut.svg';
export * from './ios-desktop.svg';
export * from './ios-disc.svg';
export * from './ios-document.svg';
export * from './ios-done-all.svg';
export * from './ios-download.svg';
export * from './ios-easel.svg';
export * from './ios-egg.svg';
export * from './ios-exit.svg';
export * from './ios-expand.svg';
export * from './ios-eye-off.svg';
export * from './ios-eye.svg';
export * from './ios-fastforward.svg';
export * from './ios-female.svg';
export * from './ios-filing.svg';
export * from './ios-film.svg';
export * from './ios-finger-print.svg';
export * from './ios-fitness.svg';
export * from './ios-flag.svg';
export * from './ios-flame.svg';
export * from './ios-flash-off.svg';
export * from './ios-flash.svg';
export * from './ios-flashlight.svg';
export * from './ios-flask.svg';
export * from './ios-flower.svg';
export * from './ios-folder-open.svg';
export * from './ios-folder.svg';
export * from './ios-football.svg';
export * from './ios-funnel.svg';
export * from './ios-gift.svg';
export * from './ios-git-branch.svg';
export * from './ios-git-commit.svg';
export * from './ios-git-compare.svg';
export * from './ios-git-merge.svg';
export * from './ios-git-network.svg';
export * from './ios-git-pull-request.svg';
export * from './ios-glasses.svg';
export * from './ios-globe.svg';
export * from './ios-grid.svg';
export * from './ios-hammer.svg';
export * from './ios-hand.svg';
export * from './ios-happy.svg';
export * from './ios-headset.svg';
export * from './ios-heart-dislike.svg';
export * from './ios-heart-empty.svg';
export * from './ios-heart-half.svg';
export * from './ios-heart.svg';
export * from './ios-help-buoy.svg';
export * from './ios-help-circle-outline.svg';
export * from './ios-help-circle.svg';
export * from './ios-help.svg';
export * from './ios-home.svg';
export * from './ios-hourglass.svg';
export * from './ios-ice-cream.svg';
export * from './ios-image.svg';
export * from './ios-images.svg';
export * from './ios-infinite.svg';
export * from './ios-information-circle-outline.svg';
export * from './ios-information-circle.svg';
export * from './ios-information.svg';
export * from './ios-jet.svg';
export * from './ios-journal.svg';
export * from './ios-key.svg';
export * from './ios-keypad.svg';
export * from './ios-laptop.svg';
export * from './ios-leaf.svg';
export * from './ios-link.svg';
export * from './ios-list-box.svg';
export * from './ios-list.svg';
export * from './ios-locate.svg';
export * from './ios-lock.svg';
export * from './ios-log-in.svg';
export * from './ios-log-out.svg';
export * from './ios-magnet.svg';
export * from './ios-mail-open.svg';
export * from './ios-mail-unread.svg';
export * from './ios-mail.svg';
export * from './ios-male.svg';
export * from './ios-man.svg';
export * from './ios-map.svg';
export * from './ios-medal.svg';
export * from './ios-medical.svg';
export * from './ios-medkit.svg';
export * from './ios-megaphone.svg';
export * from './ios-menu.svg';
export * from './ios-mic-off.svg';
export * from './ios-mic.svg';
export * from './ios-microphone.svg';
export * from './ios-moon.svg';
export * from './ios-more.svg';
export * from './ios-move.svg';
export * from './ios-musical-note.svg';
export * from './ios-musical-notes.svg';
export * from './ios-navigate.svg';
export * from './ios-notifications-off.svg';
export * from './ios-notifications-outline.svg';
export * from './ios-notifications.svg';
export * from './ios-nuclear.svg';
export * from './ios-nutrition.svg';
export * from './ios-open.svg';
export * from './ios-options.svg';
export * from './ios-outlet.svg';
export * from './ios-paper-plane.svg';
export * from './ios-paper.svg';
export * from './ios-partly-sunny.svg';
export * from './ios-pause.svg';
export * from './ios-paw.svg';
export * from './ios-people.svg';
export * from './ios-person-add.svg';
export * from './ios-person.svg';
export * from './ios-phone-landscape.svg';
export * from './ios-phone-portrait.svg';
export * from './ios-photos.svg';
export * from './ios-pie.svg';
export * from './ios-pin.svg';
export * from './ios-pint.svg';
export * from './ios-pizza.svg';
export * from './ios-planet.svg';
export * from './ios-play-circle.svg';
export * from './ios-play.svg';
export * from './ios-podium.svg';
export * from './ios-power.svg';
export * from './ios-pricetag.svg';
export * from './ios-pricetags.svg';
export * from './ios-print.svg';
export * from './ios-pulse.svg';
export * from './ios-qr-scanner.svg';
export * from './ios-quote.svg';
export * from './ios-radio-button-off.svg';
export * from './ios-radio-button-on.svg';
export * from './ios-radio.svg';
export * from './ios-rainy.svg';
export * from './ios-recording.svg';
export * from './ios-redo.svg';
export * from './ios-refresh-circle.svg';
export * from './ios-refresh.svg';
export * from './ios-remove-circle-outline.svg';
export * from './ios-remove-circle.svg';
export * from './ios-remove.svg';
export * from './ios-reorder.svg';
export * from './ios-repeat.svg';
export * from './ios-resize.svg';
export * from './ios-restaurant.svg';
export * from './ios-return-left.svg';
export * from './ios-return-right.svg';
export * from './ios-reverse-camera.svg';
export * from './ios-rewind.svg';
export * from './ios-ribbon.svg';
export * from './ios-rocket.svg';
export * from './ios-rose.svg';
export * from './ios-sad.svg';
export * from './ios-save.svg';
export * from './ios-school.svg';
export * from './ios-search.svg';
export * from './ios-send.svg';
export * from './ios-settings.svg';
export * from './ios-share-alt.svg';
export * from './ios-share.svg';
export * from './ios-shirt.svg';
export * from './ios-shuffle.svg';
export * from './ios-skip-backward.svg';
export * from './ios-skip-forward.svg';
export * from './ios-snow.svg';
export * from './ios-speedometer.svg';
export * from './ios-square-outline.svg';
export * from './ios-square.svg';
export * from './ios-star-half.svg';
export * from './ios-star-outline.svg';
export * from './ios-star.svg';
export * from './ios-stats.svg';
export * from './ios-stopwatch.svg';
export * from './ios-subway.svg';
export * from './ios-sunny.svg';
export * from './ios-swap.svg';
export * from './ios-switch.svg';
export * from './ios-sync.svg';
export * from './ios-tablet-landscape.svg';
export * from './ios-tablet-portrait.svg';
export * from './ios-tennisball.svg';
export * from './ios-text.svg';
export * from './ios-thermometer.svg';
export * from './ios-thumbs-down.svg';
export * from './ios-thumbs-up.svg';
export * from './ios-thunderstorm.svg';
export * from './ios-time.svg';
export * from './ios-timer.svg';
export * from './ios-today.svg';
export * from './ios-train.svg';
export * from './ios-transgender.svg';
export * from './ios-trash.svg';
export * from './ios-trending-down.svg';
export * from './ios-trending-up.svg';
export * from './ios-trophy.svg';
export * from './ios-tv.svg';
export * from './ios-umbrella.svg';
export * from './ios-undo.svg';
export * from './ios-unlock.svg';
export * from './ios-videocam.svg';
export * from './ios-volume-high.svg';
export * from './ios-volume-low.svg';
export * from './ios-volume-mute.svg';
export * from './ios-volume-off.svg';
export * from './ios-walk.svg';
export * from './ios-wallet.svg';
export * from './ios-warning.svg';
export * from './ios-watch.svg';
export * from './ios-water.svg';
export * from './ios-wifi.svg';
export * from './ios-wine.svg';
export * from './ios-woman.svg';
export * from './logo-android.svg';
export * from './logo-angular.svg';
export * from './logo-apple.svg';
export * from './logo-bitbucket.svg';
export * from './logo-bitcoin.svg';
export * from './logo-buffer.svg';
export * from './logo-chrome.svg';
export * from './logo-closed-captioning.svg';
export * from './logo-codepen.svg';
export * from './logo-css3.svg';
export * from './logo-designernews.svg';
export * from './logo-dribbble.svg';
export * from './logo-dropbox.svg';
export * from './logo-euro.svg';
export * from './logo-facebook.svg';
export * from './logo-flickr.svg';
export * from './logo-foursquare.svg';
export * from './logo-freebsd-devil.svg';
export * from './logo-game-controller-a.svg';
export * from './logo-game-controller-b.svg';
export * from './logo-github.svg';
export * from './logo-google.svg';
export * from './logo-googleplus.svg';
export * from './logo-hackernews.svg';
export * from './logo-html5.svg';
export * from './logo-instagram.svg';
export * from './logo-ionic.svg';
export * from './logo-ionitron.svg';
export * from './logo-javascript.svg';
export * from './logo-linkedin.svg';
export * from './logo-markdown.svg';
export * from './logo-model-s.svg';
export * from './logo-no-smoking.svg';
export * from './logo-nodejs.svg';
export * from './logo-npm.svg';
export * from './logo-octocat.svg';
export * from './logo-pinterest.svg';
export * from './logo-playstation.svg';
export * from './logo-polymer.svg';
export * from './logo-python.svg';
export * from './logo-reddit.svg';
export * from './logo-rss.svg';
export * from './logo-sass.svg';
export * from './logo-skype.svg';
export * from './logo-slack.svg';
export * from './logo-snapchat.svg';
export * from './logo-steam.svg';
export * from './logo-tumblr.svg';
export * from './logo-tux.svg';
export * from './logo-twitch.svg';
export * from './logo-twitter.svg';
export * from './logo-usd.svg';
export * from './logo-vimeo.svg';
export * from './logo-vk.svg';
export * from './logo-whatsapp.svg';
export * from './logo-windows.svg';
export * from './logo-wordpress.svg';
export * from './logo-xbox.svg';
export * from './logo-xing.svg';
export * from './logo-yahoo.svg';
export * from './logo-yen.svg';
export * from './logo-youtube.svg';
export * from './md-add-circle-outline.svg';
export * from './md-add-circle.svg';
export * from './md-add.svg';
export * from './md-airplane.svg';
export * from './md-alarm.svg';
export * from './md-albums.svg';
export * from './md-alert.svg';
export * from './md-american-football.svg';
export * from './md-analytics.svg';
export * from './md-aperture.svg';
export * from './md-apps.svg';
export * from './md-appstore.svg';
export * from './md-archive.svg';
export * from './md-arrow-back.svg';
export * from './md-arrow-down.svg';
export * from './md-arrow-dropdown-circle.svg';
export * from './md-arrow-dropdown.svg';
export * from './md-arrow-dropleft-circle.svg';
export * from './md-arrow-dropleft.svg';
export * from './md-arrow-dropright-circle.svg';
export * from './md-arrow-dropright.svg';
export * from './md-arrow-dropup-circle.svg';
export * from './md-arrow-dropup.svg';
export * from './md-arrow-forward.svg';
export * from './md-arrow-round-back.svg';
export * from './md-arrow-round-down.svg';
export * from './md-arrow-round-forward.svg';
export * from './md-arrow-round-up.svg';
export * from './md-arrow-up.svg';
export * from './md-at.svg';
export * from './md-attach.svg';
export * from './md-backspace.svg';
export * from './md-barcode.svg';
export * from './md-baseball.svg';
export * from './md-basket.svg';
export * from './md-basketball.svg';
export * from './md-battery-charging.svg';
export * from './md-battery-dead.svg';
export * from './md-battery-full.svg';
export * from './md-beaker.svg';
export * from './md-bed.svg';
export * from './md-beer.svg';
export * from './md-bicycle.svg';
export * from './md-bluetooth.svg';
export * from './md-boat.svg';
export * from './md-body.svg';
export * from './md-bonfire.svg';
export * from './md-book.svg';
export * from './md-bookmark.svg';
export * from './md-bookmarks.svg';
export * from './md-bowtie.svg';
export * from './md-briefcase.svg';
export * from './md-browsers.svg';
export * from './md-brush.svg';
export * from './md-bug.svg';
export * from './md-build.svg';
export * from './md-bulb.svg';
export * from './md-bus.svg';
export * from './md-business.svg';
export * from './md-cafe.svg';
export * from './md-calculator.svg';
export * from './md-calendar.svg';
export * from './md-call.svg';
export * from './md-camera.svg';
export * from './md-car.svg';
export * from './md-card.svg';
export * from './md-cart.svg';
export * from './md-cash.svg';
export * from './md-cellular.svg';
export * from './md-chatboxes.svg';
export * from './md-chatbubbles.svg';
export * from './md-checkbox-outline.svg';
export * from './md-checkbox.svg';
export * from './md-checkmark-circle-outline.svg';
export * from './md-checkmark-circle.svg';
export * from './md-checkmark.svg';
export * from './md-clipboard.svg';
export * from './md-clock.svg';
export * from './md-close-circle-outline.svg';
export * from './md-close-circle.svg';
export * from './md-close.svg';
export * from './md-cloud-circle.svg';
export * from './md-cloud-done.svg';
export * from './md-cloud-download.svg';
export * from './md-cloud-outline.svg';
export * from './md-cloud-upload.svg';
export * from './md-cloud.svg';
export * from './md-cloudy-night.svg';
export * from './md-cloudy.svg';
export * from './md-code-download.svg';
export * from './md-code-working.svg';
export * from './md-code.svg';
export * from './md-cog.svg';
export * from './md-color-fill.svg';
export * from './md-color-filter.svg';
export * from './md-color-palette.svg';
export * from './md-color-wand.svg';
export * from './md-compass.svg';
export * from './md-construct.svg';
export * from './md-contact.svg';
export * from './md-contacts.svg';
export * from './md-contract.svg';
export * from './md-contrast.svg';
export * from './md-copy.svg';
export * from './md-create.svg';
export * from './md-crop.svg';
export * from './md-cube.svg';
export * from './md-cut.svg';
export * from './md-desktop.svg';
export * from './md-disc.svg';
export * from './md-document.svg';
export * from './md-done-all.svg';
export * from './md-download.svg';
export * from './md-easel.svg';
export * from './md-egg.svg';
export * from './md-exit.svg';
export * from './md-expand.svg';
export * from './md-eye-off.svg';
export * from './md-eye.svg';
export * from './md-fastforward.svg';
export * from './md-female.svg';
export * from './md-filing.svg';
export * from './md-film.svg';
export * from './md-finger-print.svg';
export * from './md-fitness.svg';
export * from './md-flag.svg';
export * from './md-flame.svg';
export * from './md-flash-off.svg';
export * from './md-flash.svg';
export * from './md-flashlight.svg';
export * from './md-flask.svg';
export * from './md-flower.svg';
export * from './md-folder-open.svg';
export * from './md-folder.svg';
export * from './md-football.svg';
export * from './md-funnel.svg';
export * from './md-gift.svg';
export * from './md-git-branch.svg';
export * from './md-git-commit.svg';
export * from './md-git-compare.svg';
export * from './md-git-merge.svg';
export * from './md-git-network.svg';
export * from './md-git-pull-request.svg';
export * from './md-glasses.svg';
export * from './md-globe.svg';
export * from './md-grid.svg';
export * from './md-hammer.svg';
export * from './md-hand.svg';
export * from './md-happy.svg';
export * from './md-headset.svg';
export * from './md-heart-dislike.svg';
export * from './md-heart-empty.svg';
export * from './md-heart-half.svg';
export * from './md-heart.svg';
export * from './md-help-buoy.svg';
export * from './md-help-circle-outline.svg';
export * from './md-help-circle.svg';
export * from './md-help.svg';
export * from './md-home.svg';
export * from './md-hourglass.svg';
export * from './md-ice-cream.svg';
export * from './md-image.svg';
export * from './md-images.svg';
export * from './md-infinite.svg';
export * from './md-information-circle-outline.svg';
export * from './md-information-circle.svg';
export * from './md-information.svg';
export * from './md-jet.svg';
export * from './md-journal.svg';
export * from './md-key.svg';
export * from './md-keypad.svg';
export * from './md-laptop.svg';
export * from './md-leaf.svg';
export * from './md-link.svg';
export * from './md-list-box.svg';
export * from './md-list.svg';
export * from './md-locate.svg';
export * from './md-lock.svg';
export * from './md-log-in.svg';
export * from './md-log-out.svg';
export * from './md-magnet.svg';
export * from './md-mail-open.svg';
export * from './md-mail-unread.svg';
export * from './md-mail.svg';
export * from './md-male.svg';
export * from './md-man.svg';
export * from './md-map.svg';
export * from './md-medal.svg';
export * from './md-medical.svg';
export * from './md-medkit.svg';
export * from './md-megaphone.svg';
export * from './md-menu.svg';
export * from './md-mic-off.svg';
export * from './md-mic.svg';
export * from './md-microphone.svg';
export * from './md-moon.svg';
export * from './md-more.svg';
export * from './md-move.svg';
export * from './md-musical-note.svg';
export * from './md-musical-notes.svg';
export * from './md-navigate.svg';
export * from './md-notifications-off.svg';
export * from './md-notifications-outline.svg';
export * from './md-notifications.svg';
export * from './md-nuclear.svg';
export * from './md-nutrition.svg';
export * from './md-open.svg';
export * from './md-options.svg';
export * from './md-outlet.svg';
export * from './md-paper-plane.svg';
export * from './md-paper.svg';
export * from './md-partly-sunny.svg';
export * from './md-pause.svg';
export * from './md-paw.svg';
export * from './md-people.svg';
export * from './md-person-add.svg';
export * from './md-person.svg';
export * from './md-phone-landscape.svg';
export * from './md-phone-portrait.svg';
export * from './md-photos.svg';
export * from './md-pie.svg';
export * from './md-pin.svg';
export * from './md-pint.svg';
export * from './md-pizza.svg';
export * from './md-planet.svg';
export * from './md-play-circle.svg';
export * from './md-play.svg';
export * from './md-podium.svg';
export * from './md-power.svg';
export * from './md-pricetag.svg';
export * from './md-pricetags.svg';
export * from './md-print.svg';
export * from './md-pulse.svg';
export * from './md-qr-scanner.svg';
export * from './md-quote.svg';
export * from './md-radio-button-off.svg';
export * from './md-radio-button-on.svg';
export * from './md-radio.svg';
export * from './md-rainy.svg';
export * from './md-recording.svg';
export * from './md-redo.svg';
export * from './md-refresh-circle.svg';
export * from './md-refresh.svg';
export * from './md-remove-circle-outline.svg';
export * from './md-remove-circle.svg';
export * from './md-remove.svg';
export * from './md-reorder.svg';
export * from './md-repeat.svg';
export * from './md-resize.svg';
export * from './md-restaurant.svg';
export * from './md-return-left.svg';
export * from './md-return-right.svg';
export * from './md-reverse-camera.svg';
export * from './md-rewind.svg';
export * from './md-ribbon.svg';
export * from './md-rocket.svg';
export * from './md-rose.svg';
export * from './md-sad.svg';
export * from './md-save.svg';
export * from './md-school.svg';
export * from './md-search.svg';
export * from './md-send.svg';
export * from './md-settings.svg';
export * from './md-share-alt.svg';
export * from './md-share.svg';
export * from './md-shirt.svg';
export * from './md-shuffle.svg';
export * from './md-skip-backward.svg';
export * from './md-skip-forward.svg';
export * from './md-snow.svg';
export * from './md-speedometer.svg';
export * from './md-square-outline.svg';
export * from './md-square.svg';
export * from './md-star-half.svg';
export * from './md-star-outline.svg';
export * from './md-star.svg';
export * from './md-stats.svg';
export * from './md-stopwatch.svg';
export * from './md-subway.svg';
export * from './md-sunny.svg';
export * from './md-swap.svg';
export * from './md-switch.svg';
export * from './md-sync.svg';
export * from './md-tablet-landscape.svg';
export * from './md-tablet-portrait.svg';
export * from './md-tennisball.svg';
export * from './md-text.svg';
export * from './md-thermometer.svg';
export * from './md-thumbs-down.svg';
export * from './md-thumbs-up.svg';
export * from './md-thunderstorm.svg';
export * from './md-time.svg';
export * from './md-timer.svg';
export * from './md-today.svg';
export * from './md-train.svg';
export * from './md-transgender.svg';
export * from './md-trash.svg';
export * from './md-trending-down.svg';
export * from './md-trending-up.svg';
export * from './md-trophy.svg';
export * from './md-tv.svg';
export * from './md-umbrella.svg';
export * from './md-undo.svg';
export * from './md-unlock.svg';
export * from './md-videocam.svg';
export * from './md-volume-high.svg';
export * from './md-volume-low.svg';
export * from './md-volume-mute.svg';
export * from './md-volume-off.svg';
export * from './md-walk.svg';
export * from './md-wallet.svg';
export * from './md-warning.svg';
export * from './md-watch.svg';
export * from './md-water.svg';
export * from './md-wifi.svg';
export * from './md-wine.svg';
export * from './md-woman.svg';
+14
View File
@@ -120,6 +120,20 @@
<ion-icon name="md-cloud-download"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon md="logo-ionic" ios="logo-ionitron" mode="ios"&gt;&lt;/ion-icon&gt;
</code>
<ion-icon md="logo-ionic" ios="logo-ionitron" mode="ios"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon md="logo-ionic" ios="logo-ionitron" mode="md"&gt;&lt;/ion-icon&gt;
</code>
<ion-icon md="logo-ionic" ios="logo-ionitron" mode="md"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon name="md-globe"&gt;&lt;/ion-icon&gt;
-8042
View File
File diff suppressed because it is too large Load Diff
+37 -16
View File
@@ -1,6 +1,6 @@
{
"name": "ionicons",
"version": "4.1.0",
"version": "4.4.2",
"description": "Premium icons for Ionic.",
"files": [
"dist/"
@@ -11,29 +11,37 @@
"unpkg": "dist/ionicons.js",
"collection": "dist/collection/collection-manifest.json",
"scripts": {
"build": "npm run build.icon && npm run generate && npm run build.data && npm run build.css && npm run build.docs && npm run copy.tasks",
"build.icon": "stencil build",
"build.docs": "stencil build --config src/docs/stencil.config.js",
"build.data": "node scripts/data.js",
"build": "npm run clean && npm run lint.ts && npm run build.icon && npm run generate && npm run build.data && npm run build.css && npm run build.docs && npm run copy.tasks && npm run test",
"build.css": "node scripts/build-css.js",
"build.data": "node scripts/data.js",
"build.docs": "stencil build --config src/docs/stencil.config.js",
"build.icon": "stencil build",
"clean": "node scripts/clean.js",
"copy.tasks": "node scripts/copy-tasks.js",
"dev": "npm run build && sd concurrent \"stencil build --dev --config --es5 src/docs/stencil.config.js --watch\" \"stencil-dev-server\" ",
"dev": "npm run build && stencil build --dev --watch --serve --config src/docs/stencil.config.js",
"mode.comparison": "node scripts/mode-comparison.js",
"generate": "python scripts/generate.py",
"release": "npm run build && np --any-branch"
"lint.ts": "tslint --project .",
"lint.ts.fix": "tslint --project . --fix",
"release": "np --any-branch --yolo",
"test": "jest",
"test.watch": "jest --watch"
},
"devDependencies": {
"@stencil/core": "^0.9.0-0",
"@stencil/dev-server": "latest",
"@stencil/router": "^0.1.6",
"@stencil/sass": "^0.0.5",
"@stencil/utils": "latest",
"@stencil/core": "0.12.0",
"@stencil/router": "~0.2.2",
"@stencil/sass": "0.0.5",
"@types/highlight.js": "^9.12.3",
"@types/jest": "^23.1.3",
"archiver": "^2.1.1",
"fs-extra": "4.0.2",
"highlight.js": "^9.12.0",
"node-sass": "4.7.2",
"np": "2.17.0",
"svgo": "1.0.3"
"jest": "^23.2.0",
"node-sass": "4.9.0",
"np": "3.0.4",
"svgo": "1.0.5",
"tslint": "^5.11.0",
"tslint-ionic-rules": "0.0.17"
},
"keywords": [
"ionicons",
@@ -64,5 +72,18 @@
"bugs": {
"url": "https://github.com/ionic-team/ionicons/issues"
},
"license": "MIT"
"license": "MIT",
"jest": {
"transform": {
"^.+\\.(js|ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
},
"testRegex": "src/.*\\.spec\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"d.ts"
]
}
}
+108 -1
View File
@@ -1,7 +1,8 @@
# Ionicons
### [Announcing Ionicons v4!](https://blog.ionicframework.com/announcing-ionicons-v4/)
Premium icons for [Ionic](http://ionicframework.com/). Designed by [@benjsperry](https://twitter.com/benjsperry).
[Ionicons](http://ionicons.com/) is a completely open-source icon set with 700+ 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. When used with Ionic, the `ion-icon` component will automatically use the correct version based on your platform. Additionally, when used outside of Ionic, both `ios` and `md` platforms can be chosen by the application.
Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Drifty, nor vice versa.
@@ -10,6 +11,112 @@ Visit [ionicons.com](http://ionicons.com) and check out the search feature, whi
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).
## Using the Web Component
The Iconicons 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.
Also note that only visible icons are loaded, and icons which 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.
```
<script src="https://unpkg.com/ionicons@4.2.2/dist/ionicons.js"></script>
```
### Basic usage
To use a built-in icon from the Ionicons package, populate the `name` attribute on the ion-icon component:
```
<ion-icon name="heart"></ion-icon>
```
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.
```
<ion-icon src="/path/to/externa/file.svg"></ion-icon>
```
### Platform specific icons
Many icons have both Material Design and iOS versions to provide Platform Continuity for users.
Platform Continuity means that by default, ionicons running on iOS (Apple products such as iPhone and iPad) will display `ios` styled icons. Alternatively, ionicons running on devices with Material Design theme (commonly seen on Android devices) will see the `md` styled icons.
### Platform Continuity Within Ionic Apps
Ionic will automatically use the correct version based on the platform. Note that this feature will only automatically kick-in for Ionic apps. When being used outside of an Ionic app, please see the "Outside Ionic App" section below.
To specify the icon for each platform, use the `md` and `ios` attributes and provide the platform specific icon name.
```
<ion-icon ios="ios-heart" md="md-heart"></ion-icon>
```
### Platform Continuity Outside Ionic Apps
When using Ionicons without the Ionic Framework, the icon will default to the Material Design icon style. To specify the non-default icon style, add a platform prefix to the `name` attribute.
```
<ion-icon name="ios-heart"></ion-icon>
<ion-icon name="md-heart"></ion-icon>
```
### Icon sizes
To specify the icon size, you can use the size attribute for our pre-defined font sizes.
```
<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.)
```
ion-icon {
font-size: 64px;
}
```
## Using the Font Icon
The font icon is compatible with previous versions of Ionicons. If you're using Ionicons for the first time we strongly recommend using the `ion-icon` web component instead.
An advantage to the font icon file is that all of the icons are in one file. A disadvantage to the font icon file is that all of the icons are in one file. Additionally, large font files have a negative impact on a webpage's time to first paint.
In most cases it may be better to request a small number of svgs using the web component method. A bonus with the web component is that it uses Intersection Observer to only request icons which are viewable by the users (icons above the fold). However, if a webpage has to show many icons at once (such as this website's homepage which is showing 700+ icons on one page), the font icon may be a better choice.
### Installation
To embed the Ionicons font icon, copy this code into the `<head>` of the HTML document.
```
<link href="https://unpkg.com/ionicons@4.2.2/dist/css/ionicons.min.css" rel="stylesheet">
```
### Basic usage
Use the icon index to look up the name of the icon you want to use. The icon's CSS class name will be prefixed with ion-, followed by the platform attribute md-, ios- or logo- and completed wth the icon name.
```
<i class="icon ion-md-heart"></i>
```
## License
Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT).
## Related
* [Ionicons Homepage](http://ionicons.com/)
* [Ionic Framework](https://ionicframework.com/)
* [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/)
* [Ionic Forum](https://forum.ionicframework.com/)
* [Stencil](https://stenciljs.com/)
* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)
+6 -1
View File
@@ -6,6 +6,11 @@ var svgsDir = path.join(__dirname, '..', 'dist', 'svg');
var distzipDir = path.join(__dirname, '..', 'docs');
var distzipFile = path.join(distzipDir, 'ionicons.designerpack.zip');
console.log('designerpack source:', svgsDir);
const svgCount = fs.readdirSync(svgsDir).length;
console.log('Total svg files to zip:', svgCount);
fs.ensureDirSync(distzipDir);
var archive = archiver('zip', {
@@ -14,7 +19,7 @@ var archive = archiver('zip', {
var output = fs.createWriteStream(distzipFile);
output.on('close', () => {
console.log('Svg zip archive created.');
console.log('designerpack created:', distzipFile);
});
archive.pipe(output);
+13
View File
@@ -0,0 +1,13 @@
var fs = require('fs-extra');
var path = require('path');
var docsBuild = path.join(__dirname, '..', 'docs', 'build');
var docsIonicons = path.join(__dirname, '..', 'docs', 'ionicons');
clean(docsBuild);
clean(docsIonicons);
function clean(dir) {
console.log('Clean:', dir);
fs.emptyDirSync(dir);
}
+1 -1
View File
@@ -17,6 +17,6 @@ fs.emptyDirSync(distFontsDir);
fs.copySync(optimizedSvgsDir, collectionSvgsDir);
fs.copySync(optimizedSvgsDir, docsSvgsDir);
fs.moveSync(optimizedSvgsDir, componentSvgsDir);
fs.moveSync(optimizedSvgsDir, componentSvgsDir, {overwrite: true});
fs.copySync(docsFontsDir, distFontsDir);
+14 -3
View File
@@ -8,6 +8,7 @@ const PKG_JSON = path.join(ROOT_DIR, 'package.json');
const SRC_JSON = path.join(SRC_DIR, 'data.json');
const DST_DIR = path.join(ROOT_DIR, 'dist');
const DST_JSON = path.join(DST_DIR, 'ionicons/data.json');
const DST_JS = path.join(DST_DIR, 'svg/index.js');
console.log('checking icon data: ' + SRC_JSON);
@@ -16,8 +17,10 @@ let srcData = fs.readJsonSync(SRC_JSON);
let svgFiles = fs.readdirSync(SRC_SVG_DIR);
let pkgData = fs.readJsonSync(PKG_JSON);
srcData['version'] = pkgData.version;
let iconFilenames = [];
svgFiles.filter(f => f.indexOf('.svg') > -1).forEach(svgFile => {
svgFiles = svgFiles.filter(f => f.indexOf('.svg') > -1);
svgFiles.forEach(svgFile => {
let iconName = svgFile.split('.')[0];
let icon = srcData.icons.find(i => i.icons.indexOf(iconName) > -1);
@@ -41,5 +44,13 @@ srcData.icons.forEach(i => {
});
});
let content = JSON.stringify(srcData);
fs.writeFileSync(DST_JSON, content);
const jsonContent = JSON.stringify(srcData);
fs.writeFileSync(DST_JSON, jsonContent);
const jsContent = `
if (require && require.context) {
require.context('!!file-loader?name=[name].[ext]&outputPath=svg!./', false, /\.svg$/);
}
`;
fs.writeFileSync(DST_JS, jsContent)
+3 -1
View File
@@ -37,7 +37,6 @@ def main():
if requires_update():
generate_font_files()
generate_docs_designer_pack_zip()
data = get_build_data()
@@ -46,6 +45,9 @@ def main():
generate_svg_files()
generate_cheatsheet(data)
if requires_update():
generate_docs_designer_pack_zip()
def requires_update():
m = hashlib.sha256()
+5 -12
View File
@@ -93,12 +93,8 @@
ion-icon {
display: block;
min-height: 38px;
}
ion-icon svg {
width: 32px;
height: 32px;
margin: 5px 0;
font-size: 32px;
}
footer {
@@ -109,16 +105,13 @@
.heart {
display: inline-block;
}
.heart svg {
display: inline-block;
padding-top: 4px;
width: 18px;
height: 18px;
fill: red;
color: red;
vertical-align: sub;
}
</style>
<script src="ionicons.js"></script>
</head>
+109 -93
View File
@@ -1,117 +1,133 @@
/**
* This is an autogenerated file created by the Stencil build process.
* It contains typing information for all components that exist in this project
* and imports for stencil collections that might be configured in your stencil.config.js file
*/
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
/* tslint:disable */
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
export namespace Components {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel': string;
/**
* The color to use for the background of the item.
*/
'color': 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.
*/
'icon': string;
/**
* 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. Possible values are: `"ios"` or `"md"`.
*/
'mode': 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name': string;
/**
* 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;
}
namespace JSXElements {}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
componentOnReady(done: (ele?: this) => void): void;
forceUpdate(): void;
interface IonIconAttributes extends StencilHTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
/**
* The color to use for the background of the item.
*/
'color'?: 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.
*/
'icon'?: string;
/**
* 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. Possible values are: `"ios"` or `"md"`.
*/
'mode'?: 'ios' | 'md';
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* 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 HTMLAttributes {}
}
declare global {
namespace StencilComponents {
interface IonIcon {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel': string;
'color': 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.
*/
'icon': string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios': string;
/**
* Specifies which icon to use on `md` mode.
*/
'md': string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name': string;
/**
* 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 StencilElementInterfaces {
'IonIcon': Components.IonIcon;
}
interface HTMLIonIconElement extends StencilComponents.IonIcon, HTMLStencilElement {}
interface StencilIntrinsicElements {
'ion-icon': Components.IonIconAttributes;
}
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
var HTMLIonIconElement: {
prototype: HTMLIonIconElement;
new (): HTMLIonIconElement;
};
interface HTMLElementTagNameMap {
'ion-icon': HTMLIonIconElement;
'ion-icon': HTMLIonIconElement
}
interface ElementTagNameMap {
'ion-icon': HTMLIonIconElement;
}
namespace JSX {
interface IntrinsicElements {
'ion-icon': JSXElements.IonIconAttributes;
}
}
namespace JSXElements {
export interface IonIconAttributes extends HTMLAttributes {
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
'ariaLabel'?: string;
'color'?: 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.
*/
'icon'?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
'ios'?: string;
/**
* Specifies which icon to use on `md` mode.
*/
'md'?: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
'name'?: string;
/**
* 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;
export namespace JSX {
export interface Element {}
export interface IntrinsicElements extends StencilIntrinsicElements {
[tagName: string]: any;
}
}
export interface HTMLAttributes extends StencilHTMLAttributes {}
}
declare global { namespace JSX { interface StencilJSX {} } }
export declare function defineCustomElements(window: any): void;
+45 -90
View File
@@ -1,119 +1,74 @@
ion-icon {
:host {
display: inline-block;
font-size: inherit;
}
ion-icon .icon-inner {
height: 1em;
width: 1em;
height: 1em;
contain: strict;
box-sizing: content-box !important;
}
ion-icon svg {
:host(.ion-color) {
color: var(--ion-color-base) !important;
}
:host(.icon-small) {
font-size: var(--ion-icon-size-small, 18px) !important;
}
:host(.icon-large){
font-size: var(--ion-icon-size-large, 32px) !important;
}
.icon-inner,
svg {
display: block;
height: 100%;
width: 100%;
}
svg {
fill: currentColor;
stroke: currentColor;
}
.icon-small .icon-inner {
font-size: 18px;
}
.icon-large .icon-inner {
font-size: 32px;
}
/* Set iOS Icon Colors */
/* ------------------- */
.icon-ios-primary svg {
fill: var(--ion-color-ios-primary, var(--ion-color-primary, #3880ff));
stroke: var(--ion-color-ios-primary, var(--ion-color-primary, #3880ff));
:host(.ion-color-primary) {
--ion-color-base: var(--ion-color-primary, #3880ff);
}
.icon-ios-secondary svg {
fill: var(--ion-color-ios-secondary, var(--ion-color-secondary, #0cd1e8));
stroke: var(--ion-color-ios-secondary, var(--ion-color-secondary, #0cd1e8));
:host(.ion-color-secondary) {
--ion-color-base: var(--ion-color-secondary, #0cd1e8);
}
.icon-ios-tertiary svg {
fill: var(--ion-color-ios-tertiary, var(--ion-color-tertiary, #f4a942));
stroke: var(--ion-color-ios-tertiary, var(--ion-color-tertiary, #f4a942));
:host(.ion-color-tertiary) {
--ion-color-base: var(--ion-color-tertiary, #f4a942);
}
.icon-ios-success svg {
fill: var(--ion-color-ios-success, var(--ion-color-success, #10dc60));
stroke: var(--ion-color-ios-success, var(--ion-color-success, #10dc60));
:host(.ion-color-success) {
--ion-color-base: var(--ion-color-success, #10dc60);
}
.icon-ios-warning svg {
fill: var(--ion-color-ios-warning, var(--ion-color-warning, #ffce00));
stroke: var(--ion-color-ios-warning, var(--ion-color-warning, #ffce00));
:host(.ion-color-warning) {
--ion-color-base: var(--ion-color-warning, #ffce00);
}
.icon-ios-danger svg {
fill: var(--ion-color-ios-danger, var(--ion-color-danger, #f14141));
stroke: var(--ion-color-ios-danger, var(--ion-color-danger, #f14141));
:host(.ion-color-danger) {
--ion-color-base: var(--ion-color-danger, #f14141);
}
.icon-ios-light svg {
fill: var(--ion-color-ios-light, var(--ion-color-light, #f4f5f8));
stroke: var(--ion-color-ios-light, var(--ion-color-light, #f4f5f8));
:host(.ion-color-light) {
--ion-color-base: var(--ion-color-light, #f4f5f8);
}
.icon-ios-medium svg {
fill: var(--ion-color-ios-medium, var(--ion-color-medium, #989aa2));
stroke: var(--ion-color-ios-medium, var(--ion-color-medium, #989aa2));
:host(.ion-color-medium) {
--ion-color-base: var(--ion-color-medium, #989aa2);
}
.icon-ios-dark svg {
fill: var(--ion-color-ios-dark, var(--ion-color-dark, #222428));
stroke: var(--ion-color-ios-dark, var(--ion-color-dark, #222428));
}
/* Set Material Design Icon Colors */
/* ------------------------------- */
.icon-md-primary svg {
fill: var(--ion-color-md-primary, var(--ion-color-primary, #3880ff));
stroke: var(--ion-color-md-primary, var(--ion-color-primary, #3880ff));
}
.icon-md-secondary svg {
fill: var(--ion-color-md-secondary, var(--ion-color-secondary, #0cd1e8));
stroke: var(--ion-color-md-secondary, var(--ion-color-secondary, #0cd1e8));
}
.icon-md-tertiary svg {
fill: var(--ion-color-md-tertiary, var(--ion-color-tertiary, #f4a942));
stroke: var(--ion-color-md-tertiary, var(--ion-color-tertiary, #f4a942));
}
.icon-md-success svg {
fill: var(--ion-color-md-success, var(--ion-color-success, #10dc60));
stroke: var(--ion-color-md-success, var(--ion-color-success, #10dc60));
}
.icon-md-warning svg {
fill: var(--ion-color-md-warning, var(--ion-color-warning, #ffce00));
stroke: var(--ion-color-md-warning, var(--ion-color-warning, #ffce00));
}
.icon-md-danger svg {
fill: var(--ion-color-md-danger, var(--ion-color-danger, #f14141));
stroke: var(--ion-color-md-danger, var(--ion-color-danger, #f14141));
}
.icon-md-light svg {
fill: var(--ion-color-md-light, var(--ion-color-light, #f4f5f8));
stroke: var(--ion-color-md-light, var(--ion-color-light, #f4f5f8));
}
.icon-md-medium svg {
fill: var(--ion-color-md-medium, var(--ion-color-medium, #989aa2));
stroke: var(--ion-color-md-medium, var(--ion-color-medium, #989aa2));
}
.icon-md-dark svg {
fill: var(--ion-color-md-dark, var(--ion-color-dark, #222428));
stroke: var(--ion-color-md-dark, var(--ion-color-dark, #222428));
:host(.ion-color-dark) {
--ion-color-base: var(--ion-color-dark, #222428);
}
+167
View File
@@ -0,0 +1,167 @@
import * as icon from './icon';
describe('isValid', () => {
it('invalid onload attr', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'onload' }],
childNodes: []
} as any;
expect(icon.isValid(el)).toBe(false);
});
it('invalid onclick attr', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'OnClIcK' }],
childNodes: []
} as any;
expect(icon.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(icon.isValid(el)).toBe(false);
});
it('invalid script elm', () => {
const el = { nodeType: 1, nodeName: 'script', attributes: [], childNodes: [] } as any;
expect(icon.isValid(el)).toBe(false);
});
it('is valid circle elm', () => {
const el = { nodeType: 1, nodeName: 'circle', attributes: [], childNodes: [] } as any;
expect(icon.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(icon.isValid(el)).toBe(true);
});
it('is valid text node', () => {
const el = { nodeType: 3, nodeName: '#text' } as any;
expect(icon.isValid(el)).toBe(true);
});
});
describe('getUrl', () => {
let i: icon.Icon;
beforeEach(() => {
i = new icon.Icon();
i.resourcesUrl = '/build/ionicons/';
});
it('use icon prop, as name', () => {
i.icon = 'some-name';
expect(i.getUrl()).toBe('/build/ionicons/svg/md-some-name.svg');
});
it('use icon prop, as url', () => {
i.icon = './some.svg';
expect(i.getUrl()).toBe('./some.svg');
});
it('use name prop, set ios mode', () => {
i.name = 'some-name';
i.mode = 'ios';
expect(i.getUrl()).toBe('/build/ionicons/svg/ios-some-name.svg');
});
it('use name prop, set md mode', () => {
i.name = 'some-name';
i.mode = 'md';
expect(i.getUrl()).toBe('/build/ionicons/svg/md-some-name.svg');
});
it('use name prop, default md mode', () => {
i.name = 'some-name';
i.icon = 'some-icon';
expect(i.getUrl()).toBe('/build/ionicons/svg/md-some-name.svg');
});
it('use src prop', () => {
i.src = './some.svg';
i.name = 'some-name';
i.icon = 'some-icon';
expect(i.getUrl()).toBe('./some.svg');
});
});
describe('getSrc', () => {
it('both . and /', () => {
expect(icon.getSrc('./somefile.svg')).toBe('./somefile.svg');
});
it('url', () => {
expect(icon.getSrc('https://ionicons/somefile.svg')).toBe('https://ionicons/somefile.svg');
});
it('just a .', () => {
expect(icon.getSrc('somefile.svg')).toBe('somefile.svg');
});
it('just a /', () => {
expect(icon.getSrc('/somesvg')).toBe('/somesvg');
});
it('no . or /', () => {
expect(icon.getSrc('some-name')).toBe(null);
});
});
describe('getName', () => {
it('not allow special chars', () => {
expect(icon.getName('some\\name', 'io', '', '')).toBe(null);
expect(icon.getName('some$name', 'io', '', '')).toBe(null);
expect(icon.getName('some:name', 'io', '', '')).toBe(null);
expect(icon.getName('some.name', 'io', '', '')).toBe(null);
expect(icon.getName('some/name', 'io', '', '')).toBe(null);
});
it('use ios mode from mode property', () => {
expect(icon.getName('some-name', 'ios', '', '')).toBe('ios-some-name');
});
it('use md mode from mode property', () => {
expect(icon.getName('some-name', 'md', '', '')).toBe('md-some-name');
});
it('use ios mode prefixed', () => {
expect(icon.getName('ios-some-name', '', '', '')).toBe('ios-some-name');
});
it('use md mode prefixed', () => {
expect(icon.getName('md-some-name', '', '', '')).toBe('md-some-name');
});
it('always lowercase name and mode', () => {
expect(icon.getName('SOME-NAME', 'IOS', '', '')).toBe('ios-some-name');
});
it('default md name w/out mode, ios or md', () => {
expect(icon.getName('some-name', '', '', '')).toBe('md-some-name');
});
it('should not use name if no name, ios or md', () => {
expect(icon.getName('', '', '', '')).toBe(null);
});
});
+111 -85
View File
@@ -3,65 +3,79 @@ import { Component, Element, Prop, State, Watch } from '@stencil/core';
@Component({
tag: 'ion-icon',
host: {
theme: 'icon'
},
assetsDir: 'svg',
styleUrl: 'icon.css'
styleUrl: 'icon.css',
shadow: true
})
export class Icon {
@Element() el: HTMLElement;
private io?: IntersectionObserver;
@State() private svgContent: string = null;
@State() private isVisible: boolean;
@Element() el!: HTMLElement;
@Prop({ context: 'isServer'}) private isServer: boolean;
@Prop({ context: 'resourcesUrl'}) private resourcesUrl: string;
@Prop({ context: 'mode' }) mode: string;
@Prop({ context: 'document' }) doc: Document;
@State() private svgContent?: string;
@State() private isVisible = false;
@Prop({ context: 'isServer' }) isServer!: boolean;
@Prop({ context: 'resourcesUrl' }) resourcesUrl!: string;
@Prop({ context: 'document' }) doc!: Document;
@Prop({ context: 'window' }) win: any;
@Prop() color: string;
/**
* The color to use for the background of the item.
*/
@Prop() color?: string;
/**
* The mode determines which platform styles to use.
* Possible values are: `"ios"` or `"md"`.
*/
@Prop() mode?: 'ios' | 'md';
/**
* Specifies the label to use for accessibility. Defaults to the icon name.
*/
@Prop() ariaLabel = '';
@Prop({ mutable: true, reflectToAttr: true }) ariaLabel?: string;
/**
* Specifies which icon to use on `ios` mode.
*/
@Prop() ios = '';
@Prop() ios?: string;
/**
* Specifies which icon to use on `md` mode.
*/
@Prop() md = '';
@Prop() md?: string;
/**
* Specifies which icon to use from the built-in set of icons.
*/
@Prop() name = '';
@Prop() name?: string;
/**
* Specifies the exact `src` of an SVG file to use.
*/
@Prop() src = '';
@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 = '';
@Prop() icon?: string;
/**
* The size of the icon.
* Available options are: `"small"` and `"large"`.
*/
@Prop() size: string;
@Prop() size?: string;
/**
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
* Default, `false`.
*/
@Prop() lazy = false;
componentWillLoad() {
// purposely do not return the promise here because loading
// the svg file should not hold up loading the app
@@ -72,12 +86,19 @@ export class Icon {
});
}
componentDidUnload() {
if (this.io) {
this.io.disconnect();
this.io = undefined;
}
}
waitUntilVisible(el: HTMLElement, rootMargin: string, cb: Function) {
if (this.win.IntersectionObserver) {
const io = new this.win.IntersectionObserver(data => {
private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {
if (this.lazy && this.win && this.win.IntersectionObserver) {
const io = this.io = new this.win.IntersectionObserver((data: IntersectionObserverEntry[]) => {
if (data[0].isIntersecting) {
io.disconnect();
this.io = undefined;
cb();
}
}, { rootMargin });
@@ -101,14 +122,24 @@ export class Icon {
if (url) {
getSvgContent(url).then(svgContent => {
this.svgContent = svgContent;
this.svgContent = validateContent(this.doc, svgContent, (this.el as any)['s-sc']);
});
}
}
if (!this.ariaLabel) {
const name = getName(this.name, this.mode, this.ios, this.md);
// user did not provide a label
// come up with the label based on the icon name
if (name) {
this.ariaLabel = name
.replace('ios-', '')
.replace('md-', '')
.replace(/\-/g, ' ');
}
}
}
getUrl() {
let url = getSrc(this.src);
if (url) {
@@ -133,59 +164,37 @@ export class Icon {
return null;
}
getNamedUrl(name: string) {
private getNamedUrl(name: string) {
return `${this.resourcesUrl}svg/${name}.svg`;
}
hostData() {
const attrs: {[attrName: string]: string} = {
'role': 'img'
};
if (!this.ariaLabel) {
const name = getName(this.name, this.mode, this.ios, this.md);
// user did not provide a label
// come up with the label based on the icon name
if (name) {
attrs['aria-label'] = this.name
.replace('ios-', '')
.replace('md-', '')
.replace('-outline', '')
.replace(/\-/g, ' ');
}
}
const iconClasses = {};
if (this.size) {
iconClasses[`icon-${this.size}`] = true;
}
return {
...attrs,
class: iconClasses
'role': 'img',
class: {
...createColorClasses(this.color),
[`icon-${this.size}`]: !!this.size,
}
};
}
render() {
if (this.isServer) {
return <div class="icon-inner">{/* ssr */}</div>;
}
if (this.svgContent) {
if (!this.isServer && this.svgContent) {
// we've already loaded up this svg at one point
// and the svg content we've loaded and assigned checks out
// render this svg!!
return <div class="icon-inner" innerHTML={validateContent(this.doc, this.svgContent)}></div>;
return <div class="icon-inner" innerHTML={this.svgContent}></div>;
}
// actively requesting the svg, so let's just render a div for now
return <div class="icon-inner">{/* loading svg */}</div>;
// actively requesting the svg
// or it's an SSR render
// so let's just render an empty div for now
return <div class="icon-inner"></div>;
}
}
const requests = new Map<string, Promise<string>>();
const requests = new Map<string, Promise<string | null>>();
function getSvgContent(url: string) {
// see if we already have a request for this url
@@ -193,7 +202,7 @@ function getSvgContent(url: string) {
if (!req) {
// we don't already have a request
req = fetch(url, { keepalive: true, cache: 'force-cache' }).then(rsp => {
req = fetch(url, { cache: 'force-cache' }).then(rsp => {
if (rsp.ok) {
return rsp.text();
}
@@ -208,18 +217,14 @@ function getSvgContent(url: string) {
}
function getName(name: string, mode: string, ios: string, md: string) {
if (typeof name !== 'string') {
return null;
}
name = name.trim().toLowerCase();
if (name.length === 0) {
return null;
}
export function getName(
name: string | undefined,
mode: string | undefined,
ios: string | undefined,
md: string | undefined
) {
// default to "md" if somehow the mode wasn't set
mode = mode || 'md';
mode = (mode || 'md').toLowerCase();
// if an icon was passed in using the ios or md attributes
// set the iconName to whatever was passed in
@@ -229,14 +234,21 @@ function getName(name: string, mode: string, ios: string, md: string) {
} else if (md && mode === 'md') {
name = md.toLowerCase();
} else if (name && !(/^md-|^ios-|^logo-/.test(name))) {
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
name = mode + '-' + name;
} else if (name) {
name = name.toLowerCase();
if (!/^md-|^ios-|^logo-/.test(name)) {
// this does not have one of the defaults
// so lets auto add in the mode prefix for them
name = `${mode}-${name}`;
}
}
if (typeof name !== 'string' || name.trim() === '') {
return null;
}
// only allow alpha characters and dash
const invalidChars = name.replace(/[a-z]|-|\d/g, '');
const invalidChars = name.replace(/[a-z]|-|\d/gi, '');
if (invalidChars !== '') {
return null;
}
@@ -245,10 +257,10 @@ function getName(name: string, mode: string, ios: string, md: string) {
}
function getSrc(src: string) {
export function getSrc(src: string | undefined) {
if (typeof src === 'string') {
src = src.trim();
if (src.length > 0 && /\//.test(src)) {
if (src.length > 0 && /(\/|\.)/.test(src)) {
return src;
}
}
@@ -256,7 +268,11 @@ function getSrc(src: string) {
}
function validateContent(document: Document, svgContent: string) {
function validateContent(
document: Document,
svgContent: string | null,
scopeId: string | undefined
) {
if (svgContent) {
const frag = document.createDocumentFragment();
const div = document.createElement('div');
@@ -273,6 +289,9 @@ function validateContent(document: Document, svgContent: string) {
// must only have 1 root element
const svgElm = div.firstElementChild;
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
if (scopeId) {
svgElm.setAttribute('class', scopeId);
}
// root element must be an svg
// lets double check we've got valid elements
// do not allow scripts
@@ -285,20 +304,20 @@ function validateContent(document: Document, svgContent: string) {
}
function isValid(elm: HTMLElement) {
export function isValid(elm: HTMLElement) {
if (elm.nodeType === 1) {
if (elm.nodeName === 'SCRIPT') {
if (elm.nodeName.toLowerCase() === 'script') {
return false;
}
for (var i = 0; i < elm.attributes.length; i++) {
let val = elm.attributes[i].value;
for (let i = 0; i < elm.attributes.length; i++) {
const val = elm.attributes[i].value;
if (typeof val === 'string' && val.toLowerCase().indexOf('on') === 0) {
return false;
}
}
for (i = 0; i < elm.childNodes.length; i++) {
for (let i = 0; i < elm.childNodes.length; i++) {
if (!isValid(elm.childNodes[i] as any)) {
return false;
}
@@ -306,3 +325,10 @@ function isValid(elm: HTMLElement) {
}
return true;
}
function createColorClasses(color: string | undefined) {
return (color) ? {
'ion-color': true,
[`ion-color-${color}`]: true
} : null;
}
+153 -298
View File
@@ -1,356 +1,211 @@
/**
* This is an autogenerated file created by the Stencil build process.
* It contains typing information for all components that exist in this project
* and imports for stencil collections that might be configured in your stencil.config.js file
*/
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
*/
/* tslint:disable */
import '@stencil/core';
declare global {
namespace JSX {
interface Element {}
export interface IntrinsicElements {}
}
namespace JSXElements {}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
componentOnReady(done: (ele?: this) => void): void;
forceUpdate(): void;
}
interface HTMLAttributes {}
}
import '@stencil/router';
import '@stencil/router'
import '@stencil/state-tunnel'
import {
MatchResults,
} from '@stencil/router';
declare global {
namespace StencilComponents {
interface FooterBar {
export namespace Components {
}
interface FooterBar {}
interface FooterBarAttributes extends StencilHTMLAttributes {}
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version': string;
}
interface HeaderBarAttributes extends StencilHTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
interface HTMLFooterBarElement extends StencilComponents.FooterBar, HTMLStencilElement {}
interface IconList {
'data': any;
'query': string;
}
interface IconListAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
interface IconSearchAttributes extends StencilHTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
interface IoniconsSite {}
interface IoniconsSiteAttributes extends StencilHTMLAttributes {}
interface LandingPage {
'data': any;
'query': string;
}
interface LandingPageAttributes extends StencilHTMLAttributes {
'data'?: any;
'query'?: string;
}
interface NotfoundPage {}
interface NotfoundPageAttributes extends StencilHTMLAttributes {}
interface ToastBar {
'selectedIcon': {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType': string;
}
interface ToastBarAttributes extends StencilHTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: string[],
tags: string[]
};
'selectedIconType'?: string;
}
interface UsagePage {
'data': any;
'match': MatchResults;
}
interface UsagePageAttributes extends StencilHTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
declare global {
interface StencilElementInterfaces {
'FooterBar': Components.FooterBar;
'HeaderBar': Components.HeaderBar;
'IconList': Components.IconList;
'IconSearch': Components.IconSearch;
'IoniconsSite': Components.IoniconsSite;
'LandingPage': Components.LandingPage;
'NotfoundPage': Components.NotfoundPage;
'ToastBar': Components.ToastBar;
'UsagePage': Components.UsagePage;
}
interface StencilIntrinsicElements {
'footer-bar': Components.FooterBarAttributes;
'header-bar': Components.HeaderBarAttributes;
'icon-list': Components.IconListAttributes;
'icon-search': Components.IconSearchAttributes;
'ionicons-site': Components.IoniconsSiteAttributes;
'landing-page': Components.LandingPageAttributes;
'notfound-page': Components.NotfoundPageAttributes;
'toast-bar': Components.ToastBarAttributes;
'usage-page': Components.UsagePageAttributes;
}
interface HTMLFooterBarElement extends Components.FooterBar, HTMLStencilElement {}
var HTMLFooterBarElement: {
prototype: HTMLFooterBarElement;
new (): HTMLFooterBarElement;
};
interface HTMLElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
interface ElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
}
namespace JSX {
interface IntrinsicElements {
'footer-bar': JSXElements.FooterBarAttributes;
}
}
namespace JSXElements {
export interface FooterBarAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface HeaderBar {
'isSearchVisible': boolean;
'query': string;
'version': string;
}
}
interface HTMLHeaderBarElement extends StencilComponents.HeaderBar, HTMLStencilElement {}
interface HTMLHeaderBarElement extends Components.HeaderBar, HTMLStencilElement {}
var HTMLHeaderBarElement: {
prototype: HTMLHeaderBarElement;
new (): HTMLHeaderBarElement;
};
interface HTMLElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
interface ElementTagNameMap {
'header-bar': HTMLHeaderBarElement;
}
namespace JSX {
interface IntrinsicElements {
'header-bar': JSXElements.HeaderBarAttributes;
}
}
namespace JSXElements {
export interface HeaderBarAttributes extends HTMLAttributes {
'isSearchVisible'?: boolean;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'query'?: string;
'version'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconList {
'data': any;
'query': string;
}
}
interface HTMLIconListElement extends StencilComponents.IconList, HTMLStencilElement {}
interface HTMLIconListElement extends Components.IconList, HTMLStencilElement {}
var HTMLIconListElement: {
prototype: HTMLIconListElement;
new (): HTMLIconListElement;
};
interface HTMLElementTagNameMap {
'icon-list': HTMLIconListElement;
}
interface ElementTagNameMap {
'icon-list': HTMLIconListElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-list': JSXElements.IconListAttributes;
}
}
namespace JSXElements {
export interface IconListAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IconSearch {
'autofocus': string;
'query': string;
'size': string;
}
}
interface HTMLIconSearchElement extends StencilComponents.IconSearch, HTMLStencilElement {}
interface HTMLIconSearchElement extends Components.IconSearch, HTMLStencilElement {}
var HTMLIconSearchElement: {
prototype: HTMLIconSearchElement;
new (): HTMLIconSearchElement;
};
interface HTMLElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
interface ElementTagNameMap {
'icon-search': HTMLIconSearchElement;
}
namespace JSX {
interface IntrinsicElements {
'icon-search': JSXElements.IconSearchAttributes;
}
}
namespace JSXElements {
export interface IconSearchAttributes extends HTMLAttributes {
'autofocus'?: string;
'onHasSearched'?: (event: CustomEvent) => void;
'query'?: string;
'size'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface IoniconsSite {
}
}
interface HTMLIoniconsSiteElement extends StencilComponents.IoniconsSite, HTMLStencilElement {}
interface HTMLIoniconsSiteElement extends Components.IoniconsSite, HTMLStencilElement {}
var HTMLIoniconsSiteElement: {
prototype: HTMLIoniconsSiteElement;
new (): HTMLIoniconsSiteElement;
};
interface HTMLElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
interface ElementTagNameMap {
'ionicons-site': HTMLIoniconsSiteElement;
}
namespace JSX {
interface IntrinsicElements {
'ionicons-site': JSXElements.IoniconsSiteAttributes;
}
}
namespace JSXElements {
export interface IoniconsSiteAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface LandingPage {
'data': any;
'query': string;
}
}
interface HTMLLandingPageElement extends StencilComponents.LandingPage, HTMLStencilElement {}
interface HTMLLandingPageElement extends Components.LandingPage, HTMLStencilElement {}
var HTMLLandingPageElement: {
prototype: HTMLLandingPageElement;
new (): HTMLLandingPageElement;
};
interface HTMLElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
interface ElementTagNameMap {
'landing-page': HTMLLandingPageElement;
}
namespace JSX {
interface IntrinsicElements {
'landing-page': JSXElements.LandingPageAttributes;
}
}
namespace JSXElements {
export interface LandingPageAttributes extends HTMLAttributes {
'data'?: any;
'query'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface NotfoundPage {
}
}
interface HTMLNotfoundPageElement extends StencilComponents.NotfoundPage, HTMLStencilElement {}
interface HTMLNotfoundPageElement extends Components.NotfoundPage, HTMLStencilElement {}
var HTMLNotfoundPageElement: {
prototype: HTMLNotfoundPageElement;
new (): HTMLNotfoundPageElement;
};
interface HTMLElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
interface ElementTagNameMap {
'notfound-page': HTMLNotfoundPageElement;
}
namespace JSX {
interface IntrinsicElements {
'notfound-page': JSXElements.NotfoundPageAttributes;
}
}
namespace JSXElements {
export interface NotfoundPageAttributes extends HTMLAttributes {
}
}
}
declare global {
namespace StencilComponents {
interface ToastBar {
'selectedIcon': {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType': string;
}
}
interface HTMLToastBarElement extends StencilComponents.ToastBar, HTMLStencilElement {}
interface HTMLToastBarElement extends Components.ToastBar, HTMLStencilElement {}
var HTMLToastBarElement: {
prototype: HTMLToastBarElement;
new (): HTMLToastBarElement;
};
interface HTMLElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
interface ElementTagNameMap {
'toast-bar': HTMLToastBarElement;
}
namespace JSX {
interface IntrinsicElements {
'toast-bar': JSXElements.ToastBarAttributes;
}
}
namespace JSXElements {
export interface ToastBarAttributes extends HTMLAttributes {
'onClearToast'?: (event: CustomEvent) => void;
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
'selectedIcon'?: {
name: string,
icons: Array<string>,
tags: Array<string>
};
'selectedIconType'?: string;
}
}
}
declare global {
namespace StencilComponents {
interface UsagePage {
'data': any;
'match': MatchResults;
}
}
interface HTMLUsagePageElement extends StencilComponents.UsagePage, HTMLStencilElement {}
interface HTMLUsagePageElement extends Components.UsagePage, HTMLStencilElement {}
var HTMLUsagePageElement: {
prototype: HTMLUsagePageElement;
new (): HTMLUsagePageElement;
};
interface HTMLElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
interface ElementTagNameMap {
'usage-page': HTMLUsagePageElement;
}
namespace JSX {
interface IntrinsicElements {
'usage-page': JSXElements.UsagePageAttributes;
}
}
namespace JSXElements {
export interface UsagePageAttributes extends HTMLAttributes {
'data'?: any;
'match'?: MatchResults;
}
}
}
declare global { namespace JSX { interface StencilJSX {} } }
interface HTMLElementTagNameMap {
'footer-bar': HTMLFooterBarElement
'header-bar': HTMLHeaderBarElement
'icon-list': HTMLIconListElement
'icon-search': HTMLIconSearchElement
'ionicons-site': HTMLIoniconsSiteElement
'landing-page': HTMLLandingPageElement
'notfound-page': HTMLNotfoundPageElement
'toast-bar': HTMLToastBarElement
'usage-page': HTMLUsagePageElement
}
interface ElementTagNameMap {
'footer-bar': HTMLFooterBarElement;
'header-bar': HTMLHeaderBarElement;
'icon-list': HTMLIconListElement;
'icon-search': HTMLIconSearchElement;
'ionicons-site': HTMLIoniconsSiteElement;
'landing-page': HTMLLandingPageElement;
'notfound-page': HTMLNotfoundPageElement;
'toast-bar': HTMLToastBarElement;
'usage-page': HTMLUsagePageElement;
}
export namespace JSX {
export interface Element {}
export interface IntrinsicElements extends StencilIntrinsicElements {
[tagName: string]: any;
}
}
export interface HTMLAttributes extends StencilHTMLAttributes {}
}
@@ -7,29 +7,30 @@ import { Component } from '@stencil/core';
export class FooterBar {
render() {
return(
<footer>
<div class="container">
<div class="footer__open-source">
<a href="http://ionicframework.com/"
title="IonicFramework.com"
rel="noopener">
<img
src="/assets/img/ionic-os-logo.png"
alt="Ionic Open Source Logo" />
</a>
<p>
Released under <span id="mit">MIT License</span> | Copyright @ {(new Date()).getFullYear()}
</p>
</div>
<footer>
<div class="container">
<div class="footer__open-source">
<a href="http://ionicframework.com/"
title="IonicFramework.com"
rel="noopener">
<img
src="/assets/img/ionic-os-logo.png"
alt="Ionic Open Source Logo" />
</a>
<p>
Released under <span id="mit">MIT License</span> | Copyright @ {(new Date()).getFullYear()}
</p>
</div>
<div class="footer-menu">
<a href="cheatsheet.html">Cheatsheet</a>
<a href="/v1">v1</a>
<a href="/v2">v2</a>
<a href="https://ionicframework.com/docs/components/#icons">v3</a>
<a href="https://ionicframework.com/">Ionic Framework</a>
<div class="footer-menu">
<a href="cheatsheet.html">Cheatsheet</a>
<a href="/v1">v1</a>
<a href="/v2">v2</a>
<a href="https://ionicframework.com/docs/ionicons/">v3</a>
<a href="https://ionicframework.com/">Ionic Framework</a>
</div>
</div>
</div>
</footer>
)}
</footer>
);
}
}
@@ -1,4 +1,4 @@
import { Element, Component, State, Prop, Listen, Event, EventEmitter } from '@stencil/core';
import { Component, Element, Event, EventEmitter, Listen, Prop, State } from '@stencil/core';
@Component({
tag: 'header-bar',
@@ -9,12 +9,12 @@ export class HeaderBar {
@Event() toggleHeaderSearch: EventEmitter;
@State() isSticky: boolean = false;
@State() isSticky = false;
@State() isMobileMenuShown: boolean;
@Prop() query: string = '';
@Prop() query = '';
@Prop() version: string;
@Prop() isSearchVisible: boolean = false;
@Prop() isSearchVisible = false;
@Listen('window:scroll')
handleScroll() {
@@ -26,7 +26,7 @@ export class HeaderBar {
requestAnimationFrame(() => {
if (window.innerWidth > 768) {
const menu = (this.el.querySelector('nav') as HTMLElement);
menu.style.display = "";
menu.style.display = '';
this.el.classList.remove('show-mobile-menu');
document.body.classList.remove('no-scroll');
this.isMobileMenuShown = false;
@@ -36,11 +36,7 @@ export class HeaderBar {
checkScroll() {
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > 30) {
this.isSticky = true;
} else {
this.isSticky = false;
}
this.isSticky = (scrollTop > 30);
}
showNav() {
@@ -49,11 +45,11 @@ export class HeaderBar {
const menu = (this.el.querySelector('nav') as HTMLElement);
menu.style.display = "flex";
menu.style.display = 'flex';
setTimeout(() => {
menu.classList.add('show-mobile-menu');
document.body.classList.add('no-scroll');
}, 1)
}, 1);
}
hideNav() {
@@ -64,80 +60,81 @@ export class HeaderBar {
menu.classList.remove('show-mobile-menu');
setTimeout(() => {
menu.style.display = "none";
menu.style.display = 'none';
document.body.classList.remove('no-scroll');
}, 300)
}, 300);
}
render() {
return (
<header class={`${this.isSearchVisible ? 'visible-search' : ''} ${this.isSticky? 'overlay' : ''}`}>
<header class={`${this.isSearchVisible ? 'visible-search' : ''} ${this.isSticky ? 'overlay' : ''}`}>
<div class="container">
<div class="logo">
<stencil-route-link url='/' exact={true}>
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon" fill-rule="nonzero">
<circle id="circle" fill="#EAEEF5" cx="16" cy="16" r="16"></circle>
<circle id="circle_copy" fill="#B4C1D8" cx="16" cy="16" r="11"></circle>
<circle id="circle_copy_2" fill="#647AA1" cx="16" cy="16" r="6"></circle>
<circle id="circle_copy_3" fill="#647AA1" cx="23.5" cy="8.5" r="2"></circle>
<div class="container">
<div class="logo">
<stencil-route-link url="/" exact={true}>
<svg width="32px" height="32px" viewBox="0 0 32 32">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="icon" fill-rule="nonzero">
<circle id="circle" fill="#EAEEF5" cx="16" cy="16" r="16"></circle>
<circle id="circle_copy" fill="#B4C1D8" cx="16" cy="16" r="11"></circle>
<circle id="circle_copy_2" fill="#647AA1" cx="16" cy="16" r="6"></circle>
<circle id="circle_copy_3" fill="#647AA1" cx="23.5" cy="8.5" r="2"></circle>
</g>
</g>
</g>
</svg>
Ionicons
</stencil-route-link>
<span class="version">{this.version}</span>
</svg>
Ionicons
</stencil-route-link>
<span class="version">{this.version}</span>
</div>
<icon-search query={this.query} size="small"></icon-search>
<nav>
<stencil-route-link
class="nav__item"
url="/"
exact={true}
onClick={this.hideNav.bind(this)}>
Icons
</stencil-route-link>
<stencil-route-link
class="nav__item"
url="/usage"
onClick={() => {
this.toggleHeaderSearch.emit('hide');
this.hideNav();
}}>
Usage
</stencil-route-link>
<a class="nav__item" href="https://github.com/ionic-team/ionicons">
Github
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0,1)">
<rect id="bg" fill="#e3e8f1" x="0" y="2" width="9" height="9" rx="1.5"></rect>
<path d="M9.18198052,1 L6.5,1 L6.5,0 L11,0 L11,1 L11,4.5 L10,4.5 L10,1.59619408 L4.02512627,7.57106781 L3.31801948,6.86396103 L9.18198052,1 Z" id="arrow" fill="#A4AEC3"></path>
</g>
</svg>
</a>
<span class="close" onClick={this.hideNav.bind(this)}><i class="ion ion-md-close"></i></span>
</nav>
<a class="btn sm-hide" href="/ionicons.designerpack.zip">
<svg width="9px" height="11px" viewBox="0 0 9 11" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g>
<rect id="bg" fill="#BAC3D1" x="0" y="9" width="9" height="2" rx="1"></rect>
<path d="M5,6.26776695 L7.26776695,4 L7.97487373,4.70710678 L4.70710678,7.97487373 L4.48743687,7.75520382 L4.26776695,7.97487373 L1,4.70710678 L1.70710678,4 L4,6.29289322 L4,0 L5,0 L5,6.26776695 Z" id="arrow" fill="#94A0B8"></path>
</g>
</svg>
Designer pack
</a>
<span class="more" onClick={this.showNav.bind(this)}><i class="ion ion-md-more"></i></span>
</div>
<icon-search query={this.query} size="small"></icon-search>
<nav>
<stencil-route-link
class="nav__item"
url='/'
exact={true}
onClick={this.hideNav.bind(this)}>
Icons
</stencil-route-link>
<stencil-route-link
class="nav__item"
url='/usage'
onClick={() => {
this.toggleHeaderSearch.emit('hide');
this.hideNav();
}}>
Usage
</stencil-route-link>
<a class="nav__item" href='https://github.com/ionic-team/ionicons'>
Github
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0,1)">
<rect id="bg" fill="#e3e8f1" x="0" y="2" width="9" height="9" rx="1.5"></rect>
<path d="M9.18198052,1 L6.5,1 L6.5,0 L11,0 L11,1 L11,4.5 L10,4.5 L10,1.59619408 L4.02512627,7.57106781 L3.31801948,6.86396103 L9.18198052,1 Z" id="arrow" fill="#A4AEC3"></path>
</g>
</svg>
</a>
<span class="close" onClick={this.hideNav.bind(this)}><i class="ion ion-md-close"></i></span>
</nav>
<a class="btn sm-hide" href='/ionicons.designerpack.zip'>
<svg width="9px" height="11px" viewBox="0 0 9 11" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g>
<rect id="bg" fill="#BAC3D1" x="0" y="9" width="9" height="2" rx="1"></rect>
<path d="M5,6.26776695 L7.26776695,4 L7.97487373,4.70710678 L4.70710678,7.97487373 L4.48743687,7.75520382 L4.26776695,7.97487373 L1,4.70710678 L1.70710678,4 L4,6.29289322 L4,0 L5,0 L5,6.26776695 Z" id="arrow" fill="#94A0B8"></path>
</g>
</svg>
Designer pack
</a>
<span class="more" onClick={this.showNav.bind(this)}><i class="ion ion-md-more"></i></span>
</div>
</header>
)}
</header>
);
}
}
@@ -1,4 +1,4 @@
import { Element, Component, Listen, State, Prop } from '@stencil/core';
import { Component, Element, Listen, Prop, State } from '@stencil/core';
@Component({
@@ -8,11 +8,11 @@ import { Element, Component, Listen, State, Prop } from '@stencil/core';
export class LandingPage {
@Element() el: Element;
@State() selectedIcon: string = '';
@State() selectedIconType: string = 'md';
@State() isHeaderSearchVisible: boolean = false;
@State() selectedIcon = '';
@State() selectedIconType = 'md';
@State() isHeaderSearchVisible = false;
@Prop() query: string = '';
@Prop() query = '';
@Prop() data: any;
@Listen('body:keyup')
@@ -63,10 +63,10 @@ export class LandingPage {
switch (iconType) {
case 'ios':
results['icon'].push({name: iconData.name});
results['icon'].push({ name: iconData.name });
break;
case 'logo':
results['logo'].push({name: iconData.name, icon: iconName});
results['logo'].push({ name: iconData.name, icon: iconName });
break;
default:
return;
@@ -96,11 +96,8 @@ export class LandingPage {
handleToggleClick(ev: MouseEvent) {
ev.stopPropagation();
if(this.selectedIconType === 'md') {
this.selectedIconType = 'ios';
} else {
this.selectedIconType = 'md'
}
this.selectedIconType = (this.selectedIconType === 'md')
? 'ios' : 'md';
}
render() {
@@ -123,7 +120,7 @@ export class LandingPage {
<h4>App icons</h4>
<ul class="toggle">
<li
class={`toggle__item ${(this.selectedIconType === 'md') ? 'active' : ''}`}
class={`toggle__item ${(this.selectedIconType === 'md') ? 'active' : ''}`}
onClick={ev => this.handleToggleClick(ev)}>
Material style
</li>
@@ -137,15 +134,15 @@ export class LandingPage {
</div>
<div class="container--small">
<div class="icon-results">
{results.icon.map(icon => {
return <span
{results.icon.map(icon => (
<span
class={`icon-results__cell ${(this.selectedIcon === icon.name) ? 'active' : ''}`}
onClick={(ev) => this.handleIconClick(ev, icon.name)}
onMouseEnter={(ev) => this.handleIconMouseEnter(ev)}
onMouseLeave={(ev) => this.handleIconMouseLeave(ev)}>
<i class={`ion ion-${this.selectedIconType}-${icon.name}`}></i>
</span>
})}
</span>
))}
</div>
</div>
</div>
@@ -162,8 +159,8 @@ export class LandingPage {
<div class="container--small">
<div class="icon-results">
{results.logo.map(icon => {
return <span
{results.logo.map(icon => (
<span
class={`icon-results__cell ${(this.selectedIcon === icon.name) ? 'active' : ''}`}
onClick={(ev) => this.handleIconClick(ev, icon.name)}
onMouseEnter={(ev) => this.handleIconMouseEnter(ev)}
@@ -171,7 +168,7 @@ export class LandingPage {
<i class={'ion ion-' + icon.icon}></i>
</span>
})}
))}
</div>
</div>
</div>
@@ -190,6 +187,6 @@ export class LandingPage {
</toast-bar>
</div>
)
);
}
}
@@ -1,15 +1,15 @@
import { Component, Prop, Listen, Event, EventEmitter, State, Watch } from '@stencil/core';
import { Component, Event, EventEmitter, Listen, Prop, State, Watch } from '@stencil/core';
@Component({
tag: 'icon-search',
styleUrl: 'icon-search.scss'
})
export class IconSearch {
@Prop() query: string = '';
@Prop() size: string = 'small';
@Prop() autofocus: string = 'none';
@Prop() query = '';
@Prop() size = 'small';
@Prop() autofocus = 'none';
@State() showClearCtrl: boolean = false;
@State() showClearCtrl = false;
@Event() hasSearched: EventEmitter;
@@ -40,21 +40,22 @@ export class IconSearch {
render() {
return (
<div class={`search-input search-input--${this.size}`}>
<div class={`search-input search-input--${this.size}`}>
<input type="text"
placeholder="Search icons..."
value={this.query}
autofocus={this.autofocus === 'autofocus' ? 'autofocus' : ''}/>
<input type="text"
placeholder="Search icons..."
value={this.query}
autofocus={this.autofocus === 'autofocus' ? 'autofocus' : ''}/>
<i class={{
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}}
onClick={this.handleClear.bind(this)}></i>
<i class={{
'search-input__clear': true,
'search-input__clear--active': this.showClearCtrl,
'ion': true,
'ion-md-close': true
}}
onClick={this.handleClear.bind(this)}></i>
</div>
)}
</div>
);
}
}
@@ -1,16 +1,15 @@
import '@stencil/router';
import { Component, Listen, State } from '@stencil/core';
import { RouterSwitch } from '@stencil/router';
import '@stencil/router';
interface IconData {
name: string,
icons: Array<string>,
tags: Array<string>
name: string;
icons: string[];
tags: string[];
}
interface AppData {
version: string,
icons: IconData[]
version: string | undefined;
icons: IconData[];
}
@Component({
@@ -23,8 +22,8 @@ export class IoniconsSite {
version: undefined,
icons: []
};
@State() query: string = '';
@State() isHeaderSearchVisible: boolean = false;
@State() query = '';
@State() isHeaderSearchVisible = false;
@Listen('window:scroll')
handleScroll() {
@@ -42,31 +41,34 @@ export class IoniconsSite {
}
componentWillLoad() {
return fetch('/data.json').then(rsp => {
this.loadData();
}
rsp.json().then(d => {
this.data = d;
this.data.icons = this.data.icons.map((o) =>{
o.icons = o.icons.reverse();
o.name = o.icons[0].split('-').slice(1).join('-');
return o;
})
});
async loadData() {
const res = await fetch('/data.json');
const json = await res.json();
this.data = json;
this.data.icons = json.icons.map((o: any) => {
o.icons = o.icons.reverse();
o.name = o.icons[0].split('-').slice(1).join('-');
return o;
});
}
checkScroll() {
// show/hide header searchbar
const headerSearchEl: HTMLElement = document.querySelector('header .search-input');
const bodySearchEl: HTMLElement = document.querySelector('icon-list .search-input');
const headerSearchEl = document.querySelector('header .search-input');
const bodySearchEl = document.querySelector('icon-list .search-input');
if (!bodySearchEl) return;
if (!bodySearchEl || !headerSearchEl) {
return;
}
const headerInput: HTMLElement = headerSearchEl.querySelector('input');
const bodyInput: HTMLElement = bodySearchEl.querySelector('input');
const headerInput = headerSearchEl.querySelector('input')!;
const bodyInput = bodySearchEl.querySelector('input')!;
if (bodySearchEl.getBoundingClientRect().top < (bodySearchEl.scrollHeight/2)) {
if (bodySearchEl.getBoundingClientRect().top < (bodySearchEl.scrollHeight / 2)) {
if (this.isHeaderSearchVisible) return;
this.isHeaderSearchVisible = true;
if (bodyInput === document.activeElement) headerInput.focus();
@@ -86,22 +88,22 @@ export class IoniconsSite {
<stencil-router>
<stencil-router-scroll-top>
<RouterSwitch scrollTopOffset={0}>
<stencil-route-switch scrollTopOffset={0}>
<stencil-route url="/"
component="landing-page"
exact={true}
componentProps={{'query': this.query, 'data': this.data}}>
componentProps={{ 'query': this.query, 'data': this.data }}>
</stencil-route>
<stencil-route url="/usage"
component="usage-page"
componentProps={{'data': this.data}}>
componentProps={{ 'data': this.data }}>
</stencil-route>
<stencil-route component='notfound-page'></stencil-route>
</RouterSwitch>
<stencil-route component="notfound-page"></stencil-route>
</stencil-route-switch>
</stencil-router-scroll-top>
</stencil-router>
]
];
}
}
@@ -1,4 +1,4 @@
import { Element, Component, Prop } from '@stencil/core';
import { Component, Element, Prop } from '@stencil/core';
@Component({
tag: 'landing-page',
@@ -7,7 +7,7 @@ import { Element, Component, Prop } from '@stencil/core';
export class LandingPage {
@Element() el: Element;
@Prop() query: string = '';
@Prop() query = '';
@Prop() data: any;
render() {
@@ -25,6 +25,6 @@ export class LandingPage {
<footer-bar></footer-bar>
</main>
)
);
}
}
@@ -11,9 +11,9 @@ export class NotFoundPage {
<main>
<div class="container">
<h1>Woops! We can't find the page your looking for.</h1>
<p>Head on back to the <stencil-route-link url='/' class='block'>Icons page</stencil-route-link>.</p>
<p>Head on back to the <stencil-route-link url="/" class="block">Icons page</stencil-route-link>.</p>
</div>
<footer-bar></footer-bar>
</main>
);
@@ -1,4 +1,4 @@
import { Element, Component, Prop, State, Event, EventEmitter } from '@stencil/core';
import { Component, Element, Event, EventEmitter, Prop, State } from '@stencil/core';
@Component({
tag: 'toast-bar',
@@ -9,24 +9,24 @@ export class ToastBar {
@Prop() selectedIcon: {
name: string,
icons: Array<string>,
tags: Array<string>
icons: string[],
tags: string[]
};
@Prop() selectedIconType: string;
@State() showCopiedConfirm: number;
@State() hadIconOnce: boolean = false;
@State() hadIconOnce = false;
@State() touchStartY: number;
@State() touchEndY: number;
@Event() clearToast: EventEmitter;
@Event() toggleHeaderSearch: EventEmitter;
handleCodeClick() {
handleCodeClick(attrName) {
const codeElParent = this.el.querySelector('.toast-bar__section:first-child');
const el = document.createElement('textarea');
el.value = `<ion-icon name="${ this.selectedIcon.name }"></ion-icon>`;
el.value = `<ion-icon name="${ attrName }"></ion-icon>`;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
@@ -40,29 +40,29 @@ export class ToastBar {
this.showCopiedConfirm = 0;
}
codeElParent.classList.add('copied');
this.showCopiedConfirm = window.setTimeout(()=>{
this.showCopiedConfirm = window.setTimeout(() => {
codeElParent.classList.remove('copied');
this.showCopiedConfirm = 0;
}, 1500);
}
componentDidLoad () {
this.el.addEventListener("touchstart", this.handleTouchStart.bind(this), false);
this.el.addEventListener("touchend", this.handleTouchEnd.bind(this), false);
componentDidLoad() {
this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), false);
this.el.addEventListener('touchend', this.handleTouchEnd.bind(this), false);
}
handleTouchStart(ev: any) {
if (ev.target.classList.contains('toast-bar--inner')){
if (ev.target.classList.contains('toast-bar--inner')) {
ev.preventDefault();
this.touchStartY = ev.changedTouches[0].screenY;
}
}
handleTouchEnd(ev: any) {
if (ev.target.classList.contains('toast-bar--inner')){
if (ev.target.classList.contains('toast-bar--inner')) {
ev.preventDefault();
this.touchEndY = ev.changedTouches[0].screenY;
if (this.touchEndY > this.touchStartY) { //swiped down
if (this.touchEndY > this.touchStartY) { // swiped down
this.clearToast.emit();
}
}
@@ -71,14 +71,18 @@ export class ToastBar {
render() {
let snippetLength;
let iconType;
let iconAttrName;
let activeDownloadLinks = null;
if (this.selectedIcon) {
if (!this.hadIconOnce) this.hadIconOnce = true;
iconAttrName = this.selectedIcon.name;
iconType = this.selectedIcon.icons[0].startsWith('logo-') ? 'logo' : this.selectedIconType;
snippetLength = (`<ion-icon name="${ this.selectedIcon.name }"></ion-icon>`.length * 8) + 32;
if (iconType === 'logo') iconAttrName = 'logo-' + iconAttrName;
snippetLength = (`<ion-icon name="${ iconAttrName }"></ion-icon>`.length * 8) + 32;
activeDownloadLinks = this.selectedIcon.icons.map((name) => {
const type = name.substr(0, name.indexOf('-'));
@@ -104,13 +108,13 @@ export class ToastBar {
<i class={'ion ion-' + name}></i>
</div>
<a class="btn btn--gray btn--small" download={`/ionicons/svg/${name}.svg`} href={`/ionicons/svg/${name}.svg`}>
<i class='ion ion-md-download'></i>
<i class="ion ion-md-download"></i>
SVG
</a>
</div>
</div>
)
})
);
});
}
return (
@@ -124,7 +128,7 @@ export class ToastBar {
{this.selectedIcon &&
<div class="toast-bar__details">
<div class="toast-bar__section" style={{maxWidth: snippetLength + 'px'}}>
<div class="toast-bar__section" style={{ maxWidth: snippetLength + 'px' }}>
<div class="toast-bar__section-header">
<div>
<h6>Web component code</h6>
@@ -139,8 +143,8 @@ export class ToastBar {
</div>
<code>
<span class="hover-highlight" onClick={() => this.handleCodeClick()}>
{'<'}<span class="yellow">ion-icon</span>&nbsp;<span class="orange">name</span>{'='}<span class="green">{`"${this.selectedIcon.name}"`}</span>{'>'}{'</'}<span class="yellow">ion-icon</span>{'>'}
<span class="hover-highlight" onClick={() => this.handleCodeClick(iconAttrName)}>
{'<'}<span class="yellow">ion-icon</span>&nbsp;<span class="orange">name</span>{'='}<span class="green">{`"${iconAttrName}"`}</span>{'>'}{'</'}<span class="yellow">ion-icon</span>{'>'}
</span>
</code>
@@ -154,6 +158,6 @@ export class ToastBar {
</div>
</div>
)
);
}
}
+23 -17
View File
@@ -1,10 +1,10 @@
import hljs from 'highlight.js';
export default function (version: string, type = "md", name = "heart") {
export default function(version: string, type = 'md', name = 'heart') {
return (<div>
<h1>Usage</h1>
<p class="lead">Ionicons is a completely open-source icon set with 700+ icons crafted for web, iOS, Android, and desktop apps. Ionicons was built for Ionic Framework, so icons have both Material Design and iOS versions. When used with Ionic, the `ion-icon` component will automatically use the correct version based on your platform. Additionally, when used outside of Ionic, both `ios` and `md` platforms can be chosen by the application.</p>
<p class="lead">Ionicons is a completely open-source icon set with 700+ icons crafted for web, iOS, Android, and desktop apps. Ionicons was built for <a href="https://ionicframework.com/">Ionic Framework</a>, so icons have both Material Design and iOS versions. When used with Ionic, the <code>ion-icon</code> component will automatically use the correct version based on your platform. Additionally, when used outside of Ionic, both <code>ios</code> and <code>md</code> platforms can be chosen by the application.</p>
<h2>Using the Web Component</h2>
<p>The Iconicons 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.</p>
@@ -20,19 +20,21 @@ export default function (version: string, type = "md", name = "heart") {
<h3 id="basic-usage">Basic usage</h3>
<p>To use a built-in icon from the Ionicons package, populate the <code>name</code> attribute on the <code>ion-icon</code> component:</p>
{highlight(
{(type === 'logo') ? highlight(
`<ion-icon name="logo-${name}"></ion-icon>`
) : highlight(
`<ion-icon name="${name}"></ion-icon>`
)}
<p>To use a custom SVG, provide its url in the <code>src</code> attribute to request the external SVG file. The <code>src</code> attribute works the same as <code>&lt;img src="..."&gt;</code> 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 <code>svg</code> and does not allow scripts or events within the <code>svg</code> element.</p>
{highlight(
`<ion-icon src="/path/to/externa/file.svg"></ion-icon>`
`<ion-icon src="/path/to/external/file.svg"></ion-icon>`
)}
<h2>Platform specific icons</h2>
<p>Many icons have both Material Design and iOS versions to provide Platform Continuity for users.</p>
<p>Platform Continuity means that users that are familiar with iOS (Apple products such as iPhone and iPad) will see <code>ios</code> styled icons. Alternatively, users that are familiar with Google's Material Design theme (commonly seen on Android devices) will see the <code>md</code> styled icons.</p>
<p>Platform Continuity means that by default, ionicons running on iOS (Apple products such as iPhone and iPad) will display <code>ios</code> styled icons. Alternatively, ionicons running on devices with Material Design theme (commonly seen on Android devices) will see the <code>md</code> styled icons.</p>
<h3>Platform Continuity Within Ionic Apps</h3>
@@ -40,29 +42,33 @@ export default function (version: string, type = "md", name = "heart") {
<p>Ionic will automatically use the correct version based on the platform. Note that this feature will only automatically kick-in for Ionic apps. When being used outside of an Ionic app, please see the "Outside Ionic App" section below.</p>
<p>To specify the icon for each platform, use the <code>md</code> and <code>ios</code> attributes and provide the platform specific icon name.</p>
{(type == 'logo') ? highlight(
{(type === 'logo') ? highlight(
`<ion-icon ios="ios-heart" md="md-heart"></ion-icon>`
):highlight(
) : highlight(
`<ion-icon ios="ios-${name}" md="md-${name}"></ion-icon>`
)}
<h3>Platform Continuity Outside Ionic Apps</h3>
<p>When using Ionicons without the Ionic Framework, the icon will default to the Material Design icon style. To specify the non-default icon style, add a platform prefix to the <code>name</code> attribute.</p>
{highlight(
<p>When using Ionicons without the <a href="https://ionicframework.com/">Ionic Framework</a>, the icon will default to the Material Design icon style. To specify the non-default icon style, add a platform prefix to the <code>name</code> attribute.</p>
{(type === 'logo') ? highlight(
`<ion-icon name="ios-heart"></ion-icon>`
) : highlight(
`<ion-icon name="ios-${name}"></ion-icon>`
)}
{highlight(
{(type === 'logo') ? highlight(
`<ion-icon name="md-heart"></ion-icon>`
) : highlight(
`<ion-icon name="md-${name}"></ion-icon>`
)}
<h3>Icon sizes</h3>
<p>To specify the icon size, you can use the <code>size</code> attribute for our pre-defined font sizes.</p>
{highlight(
`<ion-icon size="small">
<ion-icon size="large">`
`<ion-icon size="small"></ion-icon>
<ion-icon size="large"></ion-icon>`
)}
<p>Or you can set a specific size by setting the <code>font-size</code> attribute on the <code>ion-icon</code> component.</p>
<p>Or you can set a specific size by applying the <code>font-size</code> CSS property on the <code>ion-icon</code> component. It's recommended to use pixel sizes that are a multiple of 8 (8, 16, 32, 64, etc.)</p>
{highlight(
`ion-icon {
font-size: 64px;
@@ -74,7 +80,7 @@ export default function (version: string, type = "md", name = "heart") {
<p>An advantage to the font icon file is that all of the icons are in one file. A disadvantage to the font icon file is that all of the icons are in one file. Additionally, large font files have a negative impact on a webpage's time to first paint.</p>
<p>In most cases it may be better to request a small number of svgs using the web component method. A bonus with the web component is that it uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API">Intersection Observer</a> to only request icons which are viewable by the users (icons above the fold). However, if a webpage has show to <em>many</em> icons at once (such as this website's homepage which is showing 700+ icons on one page), the font icon may be a better choice.</p>
<p>In most cases it may be better to request a small number of svgs using the web component method. A bonus with the web component is that it uses <a href="https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API">Intersection Observer</a> to only request icons which are viewable by the users (icons above the fold). However, if a webpage has to show <em>many</em> icons at once (such as this website's homepage which is showing 700+ icons on one page), the font icon may be a better choice.</p>
<h3>Installation</h3>
<p>To embed the Ionicons font icon, copy this code into the <code>{`<head>`}</code> of the HTML document.</p>
@@ -84,17 +90,17 @@ export default function (version: string, type = "md", name = "heart") {
<h3>Basic usage</h3>
<p>Use the <stencil-route-link url='/'>icon index</stencil-route-link> to look up the name of the icon you want to use. The icon's CSS class name will be prefixed with <code>ion-</code>, followed by the platform attribute <code>md-</code>, <code>ios-</code> or <code>logo-</code> and completed wth the icon name.</p>
<p>Use the <stencil-route-link url="/">icon index</stencil-route-link> to look up the name of the icon you want to use. The icon's CSS class name will be prefixed with <code>ion-</code>, followed by the platform attribute <code>md-</code>, <code>ios-</code> or <code>logo-</code> and completed wth the icon name.</p>
{highlight(
`<i class="icon ion-${type}-${name}"></i>`
)}
</div>)}
</div>); }
function highlight(text: string) {
return (
<div class="styled-code">
<pre innerHTML={hljs.highlightAuto(text).value}></pre>
</div>
)
);
}
@@ -1,6 +1,6 @@
import { Component, Prop, State } from '@stencil/core';
import { MatchResults } from '@stencil/router';
import { QueueApi } from '@stencil/core/dist/declarations';
import { MatchResults } from '@stencil/router';
import content from './content';
@@ -9,23 +9,23 @@ import content from './content';
styleUrl: 'usage-page.scss'
})
export class UsagePage {
@Prop({ context: 'queue'}) queue: QueueApi;
@Prop({ context: 'queue' }) queue!: QueueApi;
@State() exampleType: string = 'md';
@State() exampleIcon: string = 'heart';
@State() exampleType = 'md';
@State() exampleIcon = 'heart';
@Prop() match: MatchResults;
@Prop() match?: MatchResults;
@Prop() data: any;
componentWillLoad() {
if(!window.location.hash) return;
if (!window.location.hash) return;
let iconNames: string[] = [];
this.data.icons.map((o) =>{
iconNames = iconNames.concat(o.icons)
})
this.data.icons.map((o) => {
iconNames = iconNames.concat(o.icons);
});
const hash = window.location.hash.replace('#', '')
const hash = window.location.hash.replace('#', '');
if (iconNames.includes(hash)) {
const splt = hash.split('-');
@@ -40,9 +40,9 @@ export class UsagePage {
// });
if (window.location.hash) {
setTimeout( () => {
setTimeout(() => {
const offset = document.getElementById('basic-usage').offsetTop - 100;
window.scrollTo({left: 0, top: offset, behavior: 'smooth'});
window.scrollTo({ left: 0, top: offset, behavior: 'smooth' });
}, 50);
}
}
@@ -60,6 +60,6 @@ export class UsagePage {
<footer-bar></footer-bar>
</main>
)
);
}
}
+15 -15
View File
@@ -22,11 +22,11 @@
/* Eina Bold */
@font-face {
font-family: 'Eina';
src: url('../assets/fonts/34E6DB_F_0.eot');
src: url('../assets/fonts/34E6DB_F_0.eot?#iefix') format('embedded-opentype'),
url('../assets/fonts/34E6DB_F_0.woff2') format('woff2'),
url('../assets/fonts/34E6DB_F_0.woff') format('woff'),
url('../assets/fonts/34E6DB_F_0.ttf') format('truetype');
src: url('/assets/fonts/34E6DB_F_0.eot');
src: url('/assets/fonts/34E6DB_F_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_F_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_F_0.woff') format('woff'),
url('/assets/fonts/34E6DB_F_0.ttf') format('truetype');
font-weight: 700;
unicode-range: U+000-5FF;
}
@@ -34,11 +34,11 @@
/* Eina Semibold */
@font-face {
font-family: 'Eina';
src: url('../assets/fonts/34E6DB_C_0.eot');
src: url('../assets/fonts/34E6DB_C_0.eot?#iefix') format('embedded-opentype'),
url('../assets/fonts/34E6DB_C_0.woff2') format('woff2'),
url('../assets/fonts/34E6DB_C_0.woff') format('woff'),
url('../assets/fonts/34E6DB_C_0.ttf') format('truetype');
src: url('/assets/fonts/34E6DB_C_0.eot');
src: url('/assets/fonts/34E6DB_C_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_C_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_C_0.woff') format('woff'),
url('/assets/fonts/34E6DB_C_0.ttf') format('truetype');
font-weight: 600;
unicode-range: U+000-5FF;
}
@@ -46,11 +46,11 @@
/* Eina Regular */
@font-face {
font-family: 'Eina';
src: url('../assets/fonts/34E6DB_D_0.eot');
src: url('../assets/fonts/34E6DB_D_0.eot?#iefix') format('embedded-opentype'),
url('../assets/fonts/34E6DB_D_0.woff2') format('woff2'),
url('../assets/fonts/34E6DB_D_0.woff') format('woff'),
url('../assets/fonts/34E6DB_D_0.ttf') format('truetype');
src: url('/assets/fonts/34E6DB_D_0.eot');
src: url('/assets/fonts/34E6DB_D_0.eot?#iefix') format('embedded-opentype'),
url('/assets/fonts/34E6DB_D_0.woff2') format('woff2'),
url('/assets/fonts/34E6DB_D_0.woff') format('woff'),
url('/assets/fonts/34E6DB_D_0.ttf') format('truetype');
font-weight: 400;
unicode-range: U+000-5FF;
}
+14
View File
@@ -120,6 +120,20 @@
<ion-icon name="md-cloud-download"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon md="logo-ionic" ios="logo-ionitron" mode="ios"&gt;&lt;/ion-icon&gt;
</code>
<ion-icon md="logo-ionic" ios="logo-ionitron" mode="ios"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon md="logo-ionic" ios="logo-ionitron" mode="md"&gt;&lt;/ion-icon&gt;
</code>
<ion-icon md="logo-ionic" ios="logo-ionitron" mode="md"></ion-icon>
</section>
<section>
<code>
&lt;ion-icon name="md-globe"&gt;&lt;/ion-icon&gt;
+3 -6
View File
@@ -1,4 +1,6 @@
exports.config = {
import { Config } from '@stencil/core';
export const config: Config = {
namespace: 'ionicons',
srcDir: 'src/components/',
outputTargets: [
@@ -8,8 +10,3 @@ exports.config = {
}
]
};
exports.devServer = {
root: 'docs',
watchGlob: '**/**'
};
+1
View File
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"strict": true,
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": false,
+13
View File
@@ -0,0 +1,13 @@
{
"extends": "tslint-ionic-rules",
"rules": {
"no-conditional-assignment": false,
"no-non-null-assertion": false,
"no-unnecessary-type-assertion": false,
"prefer-for-of": false,
"no-import-side-effect": false,
"ordered-imports": [true, {
"named-imports-order": "lowercase-last"
}]
}
}