mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-02 17:06:06 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fad3fc4580 | ||
|
|
2c36419fd7 | ||
|
|
812b488515 | ||
|
|
bd3a98905f |
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Built with http://stenciljs.com
|
||||
* 2018-07-22T20:07:18
|
||||
* 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);
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
<!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-22T20:07:18
|
||||
* 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>
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Built with http://stenciljs.com
|
||||
* 2018-07-22T20:07:12
|
||||
* 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
+3
-3
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "4.4.1",
|
||||
"version": "4.4.2",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"dist/"
|
||||
],
|
||||
"module": "dist/esm/index.js",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/types/generated.d.ts",
|
||||
"types": "dist/types/components.d.ts",
|
||||
"unpkg": "dist/ionicons.js",
|
||||
"collection": "dist/collection/collection-manifest.json",
|
||||
"scripts": {
|
||||
@@ -28,7 +28,7 @@
|
||||
"test.watch": "jest --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "0.12.0-5",
|
||||
"@stencil/core": "0.12.0",
|
||||
"@stencil/router": "~0.2.2",
|
||||
"@stencil/sass": "0.0.5",
|
||||
"@types/highlight.js": "^9.12.3",
|
||||
|
||||
+8
-2
@@ -45,6 +45,12 @@ srcData.icons.forEach(i => {
|
||||
});
|
||||
|
||||
const jsonContent = JSON.stringify(srcData);
|
||||
const jsContent = svgFiles.map(name => `export * from './${name}';`).join('\n');
|
||||
fs.writeFileSync(DST_JS, jsContent)
|
||||
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)
|
||||
|
||||
Vendored
+133
@@ -0,0 +1,133 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface StencilElementInterfaces {
|
||||
'IonIcon': Components.IonIcon;
|
||||
}
|
||||
|
||||
interface StencilIntrinsicElements {
|
||||
'ion-icon': Components.IonIconAttributes;
|
||||
}
|
||||
|
||||
|
||||
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
|
||||
var HTMLIonIconElement: {
|
||||
prototype: HTMLIonIconElement;
|
||||
new (): HTMLIonIconElement;
|
||||
};
|
||||
|
||||
interface HTMLElementTagNameMap {
|
||||
'ion-icon': HTMLIonIconElement
|
||||
}
|
||||
|
||||
interface ElementTagNameMap {
|
||||
'ion-icon': HTMLIonIconElement;
|
||||
}
|
||||
|
||||
|
||||
export namespace JSX {
|
||||
export interface Element {}
|
||||
export interface IntrinsicElements extends StencilIntrinsicElements {
|
||||
[tagName: string]: any;
|
||||
}
|
||||
}
|
||||
export interface HTMLAttributes extends StencilHTMLAttributes {}
|
||||
|
||||
}
|
||||
Vendored
-136
@@ -1,136 +0,0 @@
|
||||
/**
|
||||
* 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 { JSXElements } from '@stencil/core';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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, `true`.
|
||||
*/
|
||||
'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 IonIconAttributes extends JSXElements.HTMLAttributes {
|
||||
/**
|
||||
* 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, `true`.
|
||||
*/
|
||||
'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;
|
||||
}
|
||||
|
||||
export interface LocalElementInterfaces {
|
||||
'IonIcon': IonIcon;
|
||||
}
|
||||
|
||||
export interface LocalIntrinsicElements {
|
||||
'ion-icon': IonIconAttributes;
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
||||
interface HTMLIonIconElement extends IonIcon, HTMLStencilElement {}
|
||||
var HTMLIonIconElement: {
|
||||
prototype: HTMLIonIconElement;
|
||||
new (): HTMLIonIconElement;
|
||||
};
|
||||
|
||||
interface HTMLElementTagNameMap {
|
||||
'ion-icon': HTMLIonIconElement
|
||||
}
|
||||
|
||||
interface ElementTagNameMap {
|
||||
'ion-icon': HTMLIonIconElement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import { DefaultIntrinsicElements } from '@stencil/core';
|
||||
|
||||
declare global {
|
||||
export namespace JSX {
|
||||
export interface Element {}
|
||||
export interface IntrinsicElements extends LocalIntrinsicElements, DefaultIntrinsicElements {
|
||||
[tagName: string]: any;
|
||||
}
|
||||
}
|
||||
export interface HTMLAttributes extends JSXElements.HTMLAttributes {}
|
||||
}
|
||||
|
||||
export declare function defineCustomElements(window: any): void;
|
||||
@@ -72,9 +72,9 @@ export class Icon {
|
||||
|
||||
/**
|
||||
* If enabled, ion-icon will be loaded lazily when it's visible in the viewport.
|
||||
* Default, `true`.
|
||||
* Default, `false`.
|
||||
*/
|
||||
@Prop() lazy = true;
|
||||
@Prop() lazy = false;
|
||||
|
||||
componentWillLoad() {
|
||||
// purposely do not return the promise here because loading
|
||||
|
||||
+47
-39
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
/* tslint:disable */
|
||||
|
||||
import { JSXElements } from '@stencil/core';
|
||||
import '@stencil/core';
|
||||
|
||||
import '@stencil/router'
|
||||
import '@stencil/state-tunnel'
|
||||
@@ -13,17 +13,17 @@ import {
|
||||
} from '@stencil/router';
|
||||
|
||||
|
||||
export namespace StencilComponents {
|
||||
export namespace Components {
|
||||
|
||||
interface FooterBar {}
|
||||
interface FooterBarAttributes extends JSXElements.HTMLAttributes {}
|
||||
interface FooterBarAttributes extends StencilHTMLAttributes {}
|
||||
|
||||
interface HeaderBar {
|
||||
'isSearchVisible': boolean;
|
||||
'query': string;
|
||||
'version': string;
|
||||
}
|
||||
interface HeaderBarAttributes extends JSXElements.HTMLAttributes {
|
||||
interface HeaderBarAttributes extends StencilHTMLAttributes {
|
||||
'isSearchVisible'?: boolean;
|
||||
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
|
||||
'query'?: string;
|
||||
@@ -34,7 +34,7 @@ export namespace StencilComponents {
|
||||
'data': any;
|
||||
'query': string;
|
||||
}
|
||||
interface IconListAttributes extends JSXElements.HTMLAttributes {
|
||||
interface IconListAttributes extends StencilHTMLAttributes {
|
||||
'data'?: any;
|
||||
'query'?: string;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ export namespace StencilComponents {
|
||||
'query': string;
|
||||
'size': string;
|
||||
}
|
||||
interface IconSearchAttributes extends JSXElements.HTMLAttributes {
|
||||
interface IconSearchAttributes extends StencilHTMLAttributes {
|
||||
'autofocus'?: string;
|
||||
'onHasSearched'?: (event: CustomEvent) => void;
|
||||
'query'?: string;
|
||||
@@ -52,19 +52,19 @@ export namespace StencilComponents {
|
||||
}
|
||||
|
||||
interface IoniconsSite {}
|
||||
interface IoniconsSiteAttributes extends JSXElements.HTMLAttributes {}
|
||||
interface IoniconsSiteAttributes extends StencilHTMLAttributes {}
|
||||
|
||||
interface LandingPage {
|
||||
'data': any;
|
||||
'query': string;
|
||||
}
|
||||
interface LandingPageAttributes extends JSXElements.HTMLAttributes {
|
||||
interface LandingPageAttributes extends StencilHTMLAttributes {
|
||||
'data'?: any;
|
||||
'query'?: string;
|
||||
}
|
||||
|
||||
interface NotfoundPage {}
|
||||
interface NotfoundPageAttributes extends JSXElements.HTMLAttributes {}
|
||||
interface NotfoundPageAttributes extends StencilHTMLAttributes {}
|
||||
|
||||
interface ToastBar {
|
||||
'selectedIcon': {
|
||||
@@ -74,7 +74,7 @@ export namespace StencilComponents {
|
||||
};
|
||||
'selectedIconType': string;
|
||||
}
|
||||
interface ToastBarAttributes extends JSXElements.HTMLAttributes {
|
||||
interface ToastBarAttributes extends StencilHTMLAttributes {
|
||||
'onClearToast'?: (event: CustomEvent) => void;
|
||||
'onToggleHeaderSearch'?: (event: CustomEvent) => void;
|
||||
'selectedIcon'?: {
|
||||
@@ -89,75 +89,87 @@ export namespace StencilComponents {
|
||||
'data': any;
|
||||
'match': MatchResults;
|
||||
}
|
||||
interface UsagePageAttributes extends JSXElements.HTMLAttributes {
|
||||
interface UsagePageAttributes extends StencilHTMLAttributes {
|
||||
'data'?: any;
|
||||
'match'?: MatchResults;
|
||||
}
|
||||
}
|
||||
|
||||
export interface LocalIntrinsicElements {
|
||||
'footer-bar': StencilComponents.FooterBarAttributes;
|
||||
'header-bar': StencilComponents.HeaderBarAttributes;
|
||||
'icon-list': StencilComponents.IconListAttributes;
|
||||
'icon-search': StencilComponents.IconSearchAttributes;
|
||||
'ionicons-site': StencilComponents.IoniconsSiteAttributes;
|
||||
'landing-page': StencilComponents.LandingPageAttributes;
|
||||
'notfound-page': StencilComponents.NotfoundPageAttributes;
|
||||
'toast-bar': StencilComponents.ToastBarAttributes;
|
||||
'usage-page': StencilComponents.UsagePageAttributes;
|
||||
}
|
||||
|
||||
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 HTMLFooterBarElement extends StencilComponents.FooterBar, HTMLStencilElement {}
|
||||
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 HTMLHeaderBarElement extends StencilComponents.HeaderBar, HTMLStencilElement {}
|
||||
interface HTMLHeaderBarElement extends Components.HeaderBar, HTMLStencilElement {}
|
||||
var HTMLHeaderBarElement: {
|
||||
prototype: HTMLHeaderBarElement;
|
||||
new (): HTMLHeaderBarElement;
|
||||
};
|
||||
|
||||
interface HTMLIconListElement extends StencilComponents.IconList, HTMLStencilElement {}
|
||||
interface HTMLIconListElement extends Components.IconList, HTMLStencilElement {}
|
||||
var HTMLIconListElement: {
|
||||
prototype: HTMLIconListElement;
|
||||
new (): HTMLIconListElement;
|
||||
};
|
||||
|
||||
interface HTMLIconSearchElement extends StencilComponents.IconSearch, HTMLStencilElement {}
|
||||
interface HTMLIconSearchElement extends Components.IconSearch, HTMLStencilElement {}
|
||||
var HTMLIconSearchElement: {
|
||||
prototype: HTMLIconSearchElement;
|
||||
new (): HTMLIconSearchElement;
|
||||
};
|
||||
|
||||
interface HTMLIoniconsSiteElement extends StencilComponents.IoniconsSite, HTMLStencilElement {}
|
||||
interface HTMLIoniconsSiteElement extends Components.IoniconsSite, HTMLStencilElement {}
|
||||
var HTMLIoniconsSiteElement: {
|
||||
prototype: HTMLIoniconsSiteElement;
|
||||
new (): HTMLIoniconsSiteElement;
|
||||
};
|
||||
|
||||
interface HTMLLandingPageElement extends StencilComponents.LandingPage, HTMLStencilElement {}
|
||||
interface HTMLLandingPageElement extends Components.LandingPage, HTMLStencilElement {}
|
||||
var HTMLLandingPageElement: {
|
||||
prototype: HTMLLandingPageElement;
|
||||
new (): HTMLLandingPageElement;
|
||||
};
|
||||
|
||||
interface HTMLNotfoundPageElement extends StencilComponents.NotfoundPage, HTMLStencilElement {}
|
||||
interface HTMLNotfoundPageElement extends Components.NotfoundPage, HTMLStencilElement {}
|
||||
var HTMLNotfoundPageElement: {
|
||||
prototype: HTMLNotfoundPageElement;
|
||||
new (): HTMLNotfoundPageElement;
|
||||
};
|
||||
|
||||
interface HTMLToastBarElement extends StencilComponents.ToastBar, HTMLStencilElement {}
|
||||
interface HTMLToastBarElement extends Components.ToastBar, HTMLStencilElement {}
|
||||
var HTMLToastBarElement: {
|
||||
prototype: HTMLToastBarElement;
|
||||
new (): HTMLToastBarElement;
|
||||
};
|
||||
|
||||
interface HTMLUsagePageElement extends StencilComponents.UsagePage, HTMLStencilElement {}
|
||||
interface HTMLUsagePageElement extends Components.UsagePage, HTMLStencilElement {}
|
||||
var HTMLUsagePageElement: {
|
||||
prototype: HTMLUsagePageElement;
|
||||
new (): HTMLUsagePageElement;
|
||||
@@ -186,18 +198,14 @@ declare global {
|
||||
'toast-bar': HTMLToastBarElement;
|
||||
'usage-page': HTMLUsagePageElement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import { DefaultIntrinsicElements } from '@stencil/core';
|
||||
|
||||
declare global {
|
||||
export namespace JSX {
|
||||
export interface Element {}
|
||||
export interface IntrinsicElements extends LocalIntrinsicElements, DefaultIntrinsicElements {
|
||||
export interface IntrinsicElements extends StencilIntrinsicElements {
|
||||
[tagName: string]: any;
|
||||
}
|
||||
}
|
||||
export interface HTMLAttributes extends JSXElements.HTMLAttributes {}
|
||||
}
|
||||
export interface HTMLAttributes extends StencilHTMLAttributes {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user