Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3cf1fb9cb | ||
|
|
70135edf3a | ||
|
|
2ac03a16d4 | ||
|
|
31c83d9d12 | ||
|
|
0c34dde9e8 | ||
|
|
f1794e755a | ||
|
|
87f2094890 | ||
|
|
0963fe20b7 | ||
|
|
19fbe0bde7 | ||
|
|
06a995eebb | ||
|
|
71938d06a2 | ||
|
|
e81ddbdb4b | ||
|
|
89356a9824 | ||
|
|
d3759f9ee1 | ||
|
|
b4ade9d887 |
@@ -3,12 +3,14 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [7.3.1](https://github.com/ionic-team/ionicons/compare/v7.3.0...v7.3.1) (2024-03-27)
|
||||
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.1...v7.4.0) (2024-05-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
### Features
|
||||
|
||||
* filled ellipsis circle icons renders correctly ([#1353](https://github.com/ionic-team/ionicons/issues/1353)) ([63e60ec](https://github.com/ionic-team/ionicons/commit/63e60ec44c11bda5902b5a496113f65a5e6f3d85)), closes [#1320](https://github.com/ionic-team/ionicons/issues/1320)
|
||||
* add X logo ([#1371](https://github.com/ionic-team/ionicons/issues/1371)) ([0963fe2](https://github.com/ionic-team/ionicons/commit/0963fe20b77a03b0b8b7f4e94b646cd5d7b25f03)), closes [#1249](https://github.com/ionic-team/ionicons/issues/1249)
|
||||
* export setAssetPath ([#1372](https://github.com/ionic-team/ionicons/issues/1372)) ([87f2094](https://github.com/ionic-team/ionicons/commit/87f2094890c22b7b03bf754b6fd2651a83fe20ed)), closes [#1302](https://github.com/ionic-team/ionicons/issues/1302)
|
||||
* update server icon ([#1259](https://github.com/ionic-team/ionicons/issues/1259)) ([b4ade9d](https://github.com/ionic-team/ionicons/commit/b4ade9d887c0d5ecc29e25f8e12b576106de712a)), closes [#407](https://github.com/ionic-team/ionicons/issues/407)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"./"
|
||||
],
|
||||
"version": "7.3.1"
|
||||
"version": "7.4.0"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.3.1",
|
||||
"version": "7.4.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ionicons",
|
||||
"version": "7.3.1",
|
||||
"version": "7.4.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@stencil/core": "^4.0.3"
|
||||
@@ -18283,8 +18283,7 @@
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz",
|
||||
"integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "6.8.1",
|
||||
@@ -22727,8 +22726,7 @@
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
|
||||
"integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"jest-regex-util": {
|
||||
"version": "27.5.1",
|
||||
@@ -23413,8 +23411,7 @@
|
||||
"version": "7.5.9",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
|
||||
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -28189,8 +28186,7 @@
|
||||
"version": "8.13.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
|
||||
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
|
||||
"dev": true,
|
||||
"requires": {}
|
||||
"dev": true
|
||||
},
|
||||
"xml-name-validator": {
|
||||
"version": "3.0.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.3.1",
|
||||
"version": "7.4.0",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
@@ -14,11 +14,12 @@
|
||||
"collection": "dist/collection/collection-manifest.json",
|
||||
"collection:main": "dist/collection/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc -p scripts/tsconfig.json && npm run build.files && npm run build.component && npm run collection.copy",
|
||||
"compile.scripts": "tsc -p scripts/tsconfig.json",
|
||||
"build": "npm run compile.scripts && npm run build.files && npm run build.component && npm run collection.copy",
|
||||
"build.files": "node scripts/build.js",
|
||||
"build.component": "stencil build",
|
||||
"collection.copy": "node scripts/collection-copy.js",
|
||||
"start": "stencil build --dev --watch --serve",
|
||||
"start": "npm run compile.scripts && npm run build.files && stencil build --dev --watch --serve",
|
||||
"test": "npm run test.spec",
|
||||
"test.spec": "stencil test --spec"
|
||||
},
|
||||
|
||||
@@ -19,11 +19,11 @@ label.
|
||||
|
||||
The Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need.
|
||||
|
||||
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.
|
||||
Also note that only visible icons are loaded, and icons that are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource.
|
||||
|
||||
### Installation
|
||||
|
||||
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing </body> tag, to enable them.
|
||||
If you're using [Ionic Framework](https://ionicframework.com/), Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following `<script>` near the end of your page, right before the closing `</body>` tag, to enable them.
|
||||
|
||||
```html
|
||||
<script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"></script>
|
||||
@@ -46,6 +46,24 @@ To use a custom SVG, provide its url in the `src` attribute to request the exter
|
||||
<ion-icon src="/path/to/external/file.svg"></ion-icon>
|
||||
```
|
||||
|
||||
#### Custom Asset Path
|
||||
|
||||
If you have a different set of icons you would like to load or if the Ionicon icons are hosted on a different page or path, you can set the asset url from which Ionicons pulls the icons via:
|
||||
|
||||
```ts
|
||||
import { setAssetPath } from '@stencil/core'
|
||||
|
||||
// set root path for loading icons to "<root>/public/svg"
|
||||
setAssetPath(`${window.location.origin}/public/svg/`);
|
||||
```
|
||||
|
||||
This allows the use of named icons like this:
|
||||
|
||||
```html
|
||||
<!-- now pulls the svg from "<root>/public/svg/heart.svg" -->
|
||||
<ion-icon name="heart"></ion-icon>
|
||||
```
|
||||
|
||||
## Variants
|
||||
Each app icon in Ionicons has a `filled`, `outline` and `sharp` variant. These different variants are provided to make your app feel native to a variety of platforms. The filled variant uses the default name without a suffix. Note: Logo icons do not have outline or sharp variants.
|
||||
|
||||
@@ -56,7 +74,7 @@ Each app icon in Ionicons has a `filled`, `outline` and `sharp` variant. These d
|
||||
```
|
||||
|
||||
### Platform specificity
|
||||
When using icons in Ionic Framework you can specify different icons per platform. Use the `md` and `ios` attributes and provide the platform specific icon/variant name.
|
||||
When using icons in Ionic Framework you can specify different icons per platform. Use the `md` and `ios` attributes and provide the platform-specific icon/variant name.
|
||||
|
||||
```html
|
||||
<ion-icon ios="heart-outline" md="heart-sharp"></ion-icon>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
}
|
||||
|
||||
.ionicon-stroke-width {
|
||||
stroke-width: 32px;
|
||||
stroke-width: var(--ionicon-stroke-width, 32px);
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 101 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
@@ -6669,7 +6669,8 @@
|
||||
"name": "logo-twitter",
|
||||
"tags": [
|
||||
"logo",
|
||||
"twitter"
|
||||
"twitter",
|
||||
"x"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -6750,6 +6751,14 @@
|
||||
"wordpress"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "logo-x",
|
||||
"tags": [
|
||||
"logo",
|
||||
"twitter",
|
||||
"x"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "logo-xbox",
|
||||
"tags": [
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
export { setAssetPath } from '@stencil/core';
|
||||
|
||||
export { addIcons } from './components/icon/utils';
|
||||
export type { Components, JSX } from './components';
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9.33349 6.92867L14.5459 1H13.3109L8.78291 6.14671L5.16908 1H1L6.46604 8.78342L1 15H2.235L7.01369 9.56363L10.8309 15H15L9.33349 6.92867ZM7.64142 8.85175L7.08675 8.07621L2.68037 1.91103H4.57759L8.13472 6.88838L8.68705 7.66391L13.3103 14.1334H11.4131L7.64142 8.85175Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 394 B |
@@ -1 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><ellipse cx="256" cy="128" rx="192" ry="80" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><path d="M448,214c0,44.18-86,80-192,80S64,258.18,64,214" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><path d="M448,300c0,44.18-86,80-192,80S64,344.18,64,300" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><path d="M64,127.24V384.76C64,428.52,150,464,256,464s192-35.48,192-79.24V127.24" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<ellipse cx="256" cy="112" rx="176" ry="80" stroke="currentColor" stroke-width="32" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M432 112C432 112 432 376.055 432 400C432 444.183 353.202 480 256 480C158.798 480 80 444.183 80 400C80 378.169 80 112 80 112" stroke="currentColor" stroke-width="32" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M432 256C432 300.183 353.202 336 256 336C158.798 336 80 300.183 80 256" stroke="currentColor" stroke-width="32" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 633 B |
@@ -1 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M409.43,389.87C362,410,305.4,421.05,256,421.05s-105.87-11.3-153.44-31.18S48,353.16,48,353.16v38.2c0,31.15,18,43.64,67.32,64.35C153.13,471.59,203.18,480,256,480s102.87-8.41,140.68-24.29C446,435,464,422.51,464,391.36v-38.2S456.86,369.75,409.43,389.87Z"/><path d="M63.69,173.22c11.23,9.84,27.82,19.49,48,27.92,42.48,17.76,96.45,28.37,144.36,28.37s101.88-10.61,144.36-28.37c20.13-8.43,36.72-18.08,47.95-27.92,6.06-5.31,10.85-10.12,13.47-12.85a8,8,0,0,0,2.22-5.54l0-26.06v-.1c-.84-28.79-24.71-54.41-67.21-72.14C358.83,40.71,308.84,32,256,32S153.17,40.71,115.26,56.53C72.85,74.22,49,99.78,48.05,128.5l0,26.33a8,8,0,0,0,2.21,5.54C52.84,163.1,57.62,167.91,63.69,173.22Z"/><path d="M409.43,221.91C365,241,305.4,253.09,256,253.09s-108.87-12.27-153.43-31.18S48,185.2,48,185.2v47.36c.08,7.52,5.5,16.2,15.69,25.13,11.24,9.84,27.82,19.5,48,27.92C154.12,303.38,208.09,314,256,314s101.88-10.6,144.36-28.37c20.13-8.42,36.72-18.08,47.95-27.92,10.25-9,15.68-17.71,15.69-25.27V185.2S453.87,202.82,409.43,221.91Z"/><path d="M409.43,306.38C362,326,305.4,337.56,256,337.56s-109.87-12.8-153.43-31.18S48,269.67,48,269.67v46.25c0,7.55,5.44,16.28,15.69,25.26,11.23,9.84,27.81,19.5,48,27.92,42.48,17.77,96.44,28.37,144.36,28.37s101.88-10.6,144.36-28.37c20.13-8.43,36.72-18.08,47.95-27.92,10.19-8.93,15.61-17.61,15.69-25.13V269.67S456.87,286.76,409.43,306.38Z"/></svg>
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M125.295 40.7282C159.804 25.1587 206.27 16 256.5 16C306.73 16 352.966 25.1588 387.248 40.7476C420.143 55.7056 448 80 448 112V112.03C447.989 117.563 444.902 125.92 435.705 136.25C426.71 146.352 413.088 156.908 395.432 166.514C360.162 185.702 310.794 200 256 200C201.206 200 151.838 185.702 116.568 166.514C98.9116 156.908 85.2901 146.352 76.2953 136.25C67.0809 125.901 64 117.532 64 112C64 79.5721 92.2455 55.6392 125.295 40.7282Z" />
|
||||
<path d="M410.724 194.623C424.937 186.892 437.558 176.244 448 165.024V258C448 263.532 444.919 269.901 435.705 280.25C426.71 290.352 413.088 300.908 395.432 310.514C360.162 329.702 310.794 344 256 344C201.206 344 151.838 329.702 116.568 310.514C98.9116 300.908 85.2901 290.352 76.2953 280.25C67.0809 269.901 64 263.532 64 258V165.024C74.4417 176.244 87.0634 186.892 101.276 194.623C141.286 216.39 195.918 232 256 232C316.082 232 370.714 216.39 410.724 194.623Z" />
|
||||
<path d="M64 309.024V400C64 432.224 92.0043 456.169 124.928 471.134C159.297 486.756 205.653 496 256 496C306.347 496 352.703 486.756 387.072 471.134C419.996 456.169 448 432.224 448 400V309.024C437.558 320.244 424.937 330.892 410.724 338.623C370.714 360.39 316.082 376 256 376C195.918 376 141.286 360.39 101.276 338.623C87.0634 330.892 74.4417 320.244 64 309.024Z" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -1 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M256,428C203.65,428,144.61,416.39,98.07,397,81,389.81,66.38,378.18,54.43,369A4,4,0,0,0,48,372.18v12.58c0,28.07,23.49,53.22,66.14,70.82C152.29,471.33,202.67,480,256,480s103.7-8.67,141.86-24.42C440.51,438,464,412.83,464,384.76V372.18a4,4,0,0,0-6.43-3.18C445.62,378.17,431,389.81,413.92,397,367.38,416.39,308.35,428,256,428Z"/><path d="M464,126.51c-.81-27.65-24.18-52.4-66-69.85C359.74,40.76,309.34,32,256,32S152.26,40.76,114.09,56.66c-41.78,17.41-65.15,42.11-66,69.69L48,144c0,6.41,5.2,16.48,14.63,24.73,11.13,9.73,27.65,19.33,47.78,27.73C153.24,214.36,207.67,225,256,225s102.76-10.68,145.59-28.58c20.13-8.4,36.65-18,47.78-27.73C458.8,160.49,464,150.42,464,144Z"/><path d="M413.92,226C367.39,245.43,308.35,257,256,257S144.61,245.43,98.07,226C81,218.85,66.38,207.21,54.43,198A4,4,0,0,0,48,201.22V232c0,6.41,5.2,14.48,14.63,22.73,11.13,9.74,27.65,19.33,47.78,27.74C153.24,300.34,207.67,311,256,311s102.76-10.68,145.59-28.57c20.13-8.41,36.65-18,47.78-27.74C458.8,246.47,464,238.41,464,232V201.22a4,4,0,0,0-6.43-3.18C445.62,207.21,431,218.85,413.92,226Z"/><path d="M413.92,312C367.38,331.41,308.35,343,256,343S144.61,331.41,98.07,312C81,304.83,66.38,293.19,54.43,284A4,4,0,0,0,48,287.2V317c0,6.41,5.2,14.47,14.62,22.71,11.13,9.74,27.66,19.33,47.79,27.74C153.24,385.32,207.66,396,256,396s102.76-10.68,145.59-28.57c20.13-8.41,36.65-18,47.78-27.74C458.8,331.44,464,323.37,464,317V287.2a4,4,0,0,0-6.43-3.18C445.62,293.19,431,304.83,413.92,312Z"/></svg>
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M125.295 40.7282C159.804 25.1587 206.27 16 256.5 16C306.73 16 352.966 25.1588 387.248 40.7476C420.143 55.7056 448 80 448 112V112.03C447.989 117.563 444.902 125.92 435.705 136.25C426.71 146.352 413.088 156.908 395.432 166.514C360.162 185.702 310.794 200 256 200C201.206 200 151.838 185.702 116.568 166.514C98.9116 156.908 85.2901 146.352 76.2953 136.25C67.0809 125.901 64 117.532 64 112C64 79.5721 92.2455 55.6392 125.295 40.7282Z" />
|
||||
<path d="M410.724 194.623C420.31 189.409 429.172 182.868 437.13 175.719C441.184 172.077 448 174.829 448 180.279V258C448 263.532 444.919 269.901 435.705 280.25C426.71 290.352 413.088 300.908 395.432 310.514C360.162 329.702 310.794 344 256 344C201.206 344 151.838 329.702 116.568 310.514C98.9116 300.908 85.2901 290.352 76.2953 280.25C67.0809 269.901 64 263.532 64 258V180.279C64 174.829 70.8158 172.077 74.8702 175.719C82.8279 182.867 91.69 189.409 101.276 194.623C141.286 216.39 195.918 232 256 232C316.082 232 370.714 216.39 410.724 194.623Z" />
|
||||
<path d="M74.8702 319.719C70.8158 316.077 64 318.829 64 324.279V400C64 432.224 92.0043 456.169 124.928 471.134C159.297 486.756 205.653 496 256 496C306.347 496 352.703 486.756 387.072 471.134C419.996 456.169 448 432.224 448 400V324.279C448 318.829 441.184 316.077 437.13 319.719C429.172 326.867 420.31 333.409 410.724 338.623C370.714 360.39 316.082 376 256 376C195.918 376 141.286 360.39 101.276 338.623C91.69 333.409 82.8279 326.867 74.8702 319.719Z" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -23,10 +23,6 @@ export const config: Config = {
|
||||
src: './components/test/*.svg',
|
||||
dest: './assets/',
|
||||
},
|
||||
{
|
||||
src: './svg/*.svg',
|
||||
dest: './build/svg/',
|
||||
},
|
||||
{
|
||||
src: './components/test/',
|
||||
dest: './test/',
|
||||
|
||||