update usage

This commit is contained in:
Adam Bradley
2018-05-15 20:23:20 -05:00
parent 13ea94f9b5
commit 7df2f7befd
10 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
/*! 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.aj0cs0se.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","floi6rt6",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
!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","spyj8hrm",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
+1 -1
View File
@@ -1,5 +1,5 @@
/*! Built with http://stenciljs.com */
(function(namespace,resourcesUrl){"use strict";
(function(resourcesUrl){var __generator=this&&this.__generator||function(t,n){var e,r,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[0,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=n.call(t,u)}catch(t){a=[6,t],r=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},hasOwnProperty=Object.prototype.hasOwnProperty;function is(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}function shallowEqual(t,n){if(is(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;var e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;for(var o=0;o<e.length;o++)if(!hasOwnProperty.call(n,e[o])||!is(t[e[o]],n[e[o]]))return!1;return!0}var __awaiter=function(t,n,e,r){return new(e||(e=Promise))(function(o,a){function u(t){try{i(r.next(t))}catch(t){a(t)}}function l(t){try{i(r.throw(t))}catch(t){a(t)}}function i(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(u,l)}i((r=r.apply(t,n||[])).next())})};Context.activeRouter=function(){var t={},n=[];function e(n){return 0===Object.keys(t).length?{location:{pathname:Context.window.location.pathname,search:Context.window.location.search}}:n?t[n]:t}function r(){return __awaiter(this,void 0,void 0,function(){var t,r,o,a,u,l,i,c,s,f;return __generator(this,function(h){switch(h.label){case 0:for(t=n,r=[],o=e("location").pathname,a=function(n){var e,a=r.some(function(e){return null!=e[1]&&null!=e[2]&&e[2]===t[n].groupId});e=a?null:t[n].isMatch(o),shallowEqual(t[n].lastMatch,e)||(!a&&t[n].groupId?r.unshift([n,e,t[n].groupId]):r.push([n,e,t[n].groupId])),t[n].lastMatch=e},u=0;u<t.length;u++)a(u);l=0,i=r,h.label=1;case 1:return l<i.length?(c=i[l],s=c[0],f=c[1],c[2]&&null!=f?[4,t[s].listener(f)]:[3,3]):[3,5];case 2:return h.sent(),[3,4];case 3:t[s].listener(f),h.label=4;case 4:return l++,[3,1];case 5:return[2]}})})}return{set:function(n){t=Object.assign({},t,n),r()},get:e,subscribe:function(t){!function(t){var r=e("location").pathname,o=t.isMatch(r);if(t.lastMatch=o,t.listener(o),null==t.groupId||null==t.groupIndex||0===n.length)n.push(t);else for(var a=0;a<n.length;a++){var u=n[a],l=u.groupId,i=u.groupIndex;if(null==l){n.splice(a,0,t);break}if(l===t.groupId&&i>t.groupIndex){n.splice(a,0,t);break}}}(t);var r=!0;return function(){r&&(function(t){var e=n.indexOf(t);n.splice(e,1)}(t),r=!1)}},dispatch:r}}();
(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");
+2 -2
View File
@@ -3,7 +3,7 @@
"fsNamespace": "docssite",
"loader": "../docssite.js",
"global": "docssite.global.js",
"core": "docssite.aj0cs0se.js",
"core": "docssite.viz7bsay.js",
"corePolyfilled": "docssite.jwdgw0bm.js",
"components": {
"footer-bar": {
@@ -40,7 +40,7 @@
"$": "vscrqboi"
},
"usage-page": {
"$": "floi6rt6"
"$": "spyj8hrm"
}
}
}
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 -1
View File
@@ -1,4 +1,4 @@
<!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.aj0cs0se.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","floi6rt6",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);</script>
!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","spyj8hrm",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>
@@ -29,26 +29,32 @@ export default function (version: string, type = "md", name = "heart") {
`<ion-icon src="/path/to/externa/file.svg"></ion-icon>`
)}
<h3>Platform specific icons</h3>
<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 Android's "Material Design" theme will see the <code>md</code> styled icons.</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>
<h2>Within Ionic Apps</h2>
<h3>Platform Continuity Within Ionic Apps</h3>
<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 to use for each platform, use the <code>md</code> and <code>ios</code> attributes and provide the platform specific icon name.</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(
`<ion-icon ios="ios-heart" md="md-heart"></ion-icon>`
):highlight(
`<ion-icon ios="ios-${name}" md="md-${name}"></ion-icon>`
)}
<h2>Outside Ionic Apps</h2>
<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(`<ion-icon name="ios-heart"></ion-icon>`)}
{highlight(
`<ion-icon name="ios-${name}"></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>