mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-12-05 17:33:41 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3dab196131 | ||
|
|
7f73379a7c | ||
|
|
abda804f39 | ||
|
|
b9858daaab | ||
|
|
0807bbe045 | ||
|
|
0269306a15 | ||
|
|
be3fcd7a70 | ||
|
|
4921d70e32 | ||
|
|
bef34677cd | ||
|
|
2e393282c9 | ||
|
|
ecfff506b9 | ||
|
|
87161a14a5 | ||
|
|
b1893f4ef6 | ||
|
|
fa5244e544 | ||
|
|
d0e18dab3e | ||
|
|
e4d8d28253 | ||
|
|
77e5de20c8 | ||
|
|
17ea00ef3c | ||
|
|
04975203b7 | ||
|
|
2ad4148057 | ||
|
|
5b23d0a963 | ||
|
|
987d118b0b | ||
|
|
a380c95899 | ||
|
|
fe60bd2490 | ||
|
|
ba27560096 | ||
|
|
dcca52d3b2 |
@@ -12,6 +12,14 @@ inputs:
|
||||
description: 'A folder containing a package.json file.'
|
||||
token:
|
||||
description: 'The NPM authentication token required to publish.'
|
||||
|
||||
createRelease:
|
||||
description: 'Create a release on GitHub.'
|
||||
default: 'false'
|
||||
|
||||
ghToken:
|
||||
description: 'The GitHub authentication token required to create a release.'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
@@ -25,8 +33,16 @@ runs:
|
||||
run: npm ci
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
- name: Set Git User
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
shell: bash
|
||||
- name: Update Version
|
||||
run: npm version ${{ inputs.version }} --git-tag-version false
|
||||
id: update_version
|
||||
run: |
|
||||
npm version ${{ inputs.version }}
|
||||
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
- name: Run Build
|
||||
@@ -43,3 +59,15 @@ runs:
|
||||
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
- name: Create Release
|
||||
if: ${{ inputs.createRelease == 'true' }}
|
||||
run: |
|
||||
git remote set-url origin https://${GH_TOKEN}:x-oauth-basic@github.com/ionic-team/ionicons.git
|
||||
git remote -v
|
||||
git push origin main --tags
|
||||
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ inputs.ghToken }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
@@ -20,13 +20,21 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
release-ionicons:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [create-dev-hash]
|
||||
uses: ./.github/workflows/release-ionicons.yml
|
||||
with:
|
||||
tag: dev
|
||||
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
secrets:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish to NPM
|
||||
uses: ./.github/workflows/actions/publish-npm
|
||||
with:
|
||||
tag: dev
|
||||
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
|
||||
working-directory: './'
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
createRelease: 'false'
|
||||
|
||||
get-build:
|
||||
name: Get your dev build!
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
name: 'Release Ionicons'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
description: 'The type of version to release.'
|
||||
type: string
|
||||
required: true
|
||||
tag:
|
||||
description: 'The tag to publish to on NPM.'
|
||||
type: string
|
||||
required: true
|
||||
secrets:
|
||||
NPM_TOKEN:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
release-core:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/workflows/actions/publish-npm
|
||||
with:
|
||||
tag: ${{ inputs.tag }}
|
||||
version: ${{ inputs.version }}
|
||||
working-directory: './'
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
@@ -20,78 +20,20 @@ on:
|
||||
|
||||
jobs:
|
||||
release-ionicons:
|
||||
uses: ./.github/workflows/release-ionicons.yml
|
||||
with:
|
||||
tag: ${{ inputs.tag }}
|
||||
version: ${{ inputs.version }}
|
||||
secrets:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
finalize-release:
|
||||
needs: [release-ionicons]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.IONITRON_TOKEN }}
|
||||
fetch-depth: 0
|
||||
- name: Configure Identity
|
||||
# Commits from github-actions do not
|
||||
# trigger other GitHub Actions. As a result,
|
||||
# we publish releases from Ionitron instead
|
||||
# so actions run when merging the release branch
|
||||
# back into main.
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
shell: bash
|
||||
# This ensures the local version of Lerna is installed
|
||||
# and that we do not use the global Lerna version. We currently
|
||||
# rely on functionality that does not exist in newer versions of Lerna.
|
||||
- name: Install root dependencies
|
||||
run: npm ci
|
||||
shell: bash
|
||||
- name: Create GitHub Release
|
||||
run: npx lerna@5 version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --create-release github
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
|
||||
update-package-lock:
|
||||
# This needs to run after finalize-release
|
||||
# because we also push to the repo in that
|
||||
# job. If these jobs ran in parallel then it is
|
||||
# possible for them to push at the same time.
|
||||
needs: [finalize-release]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# Pull the latest version of the reference
|
||||
# branch instead of the revision that triggered
|
||||
# the workflow otherwise we won't get the commit
|
||||
# created in the previous job and this next job
|
||||
# will fail.
|
||||
- name: Publish to NPM
|
||||
uses: ./.github/workflows/actions/publish-npm
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
- name: Configure Identity
|
||||
# Commits from github-actions do not
|
||||
# trigger other GitHub Actions. As a result,
|
||||
# we push from Ionitron instead so actions
|
||||
# run when merging the release branch
|
||||
# back into main.
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
shell: bash
|
||||
# Lerna does not automatically bump versions
|
||||
# of Ionicons dependencies that have changed,
|
||||
# so we do that here.
|
||||
- name: Bump Package Lock
|
||||
run: |
|
||||
npx lerna@5 exec "npm install --package-lock-only --legacy-peer-deps"
|
||||
git add .
|
||||
git commit -m "chore(): update package lock files"
|
||||
git push
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
shell: bash
|
||||
tag: ${{ inputs.tag }}
|
||||
version: ${{ inputs.version }}
|
||||
working-directory: './'
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
createRelease: true
|
||||
ghToken: ${{ secrets.IONITRON_TOKEN }}
|
||||
|
||||
@@ -3,6 +3,60 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [8.0.6](https://github.com/ionic-team/ionicons/compare/v8.0.5...v8.0.6) (2025-05-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* publish correct Ionicons build
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.0.5](https://github.com/ionic-team/ionicons/compare/v8.0.0...v8.0.5) (2025-05-05)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* properly export Ionicons package files
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.0.0](https://github.com/ionic-team/ionicons/compare/v7.4.0...v8.0.0) (2025-05-02)
|
||||
|
||||
### ⚠️ Breaking Changes
|
||||
|
||||
* **Modernized Project Setup** ([#1447](https://github.com/ionic-team/ionicons/pull/1447))
|
||||
|
||||
* Updated all project dependencies
|
||||
* Removed `lerna` from the monorepo setup
|
||||
* Refactored and updated the build process
|
||||
* Introduced Prettier formatting with build integration
|
||||
* Replaced or fixed several icons to improve browser compatibility (notably Safari's `file://` SVG rendering)
|
||||
* Various plugin fixes
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
* Icons:
|
||||
|
||||
* SVG `fill` path updated in `warning-outline.svg` (Fixes [#1298](https://github.com/ionic-team/ionicons/issues/1298))
|
||||
* Applied `currentColor` to icons for better theming (Fixes [#1420](https://github.com/ionic-team/ionicons/issues/1420))
|
||||
* Added missing tags to multiple icons:
|
||||
|
||||
* `bell` tag to `notifications` (Fixes [#1090](https://github.com/ionic-team/ionicons/issues/1090))
|
||||
* `sliders`, `filters` tags to `option` (Fixes [#1060](https://github.com/ionic-team/ionicons/issues/1060))
|
||||
* `loveseat` tag to `bed` (Closes [#503](https://github.com/ionic-team/ionicons/issues/503))
|
||||
* `contacts` tag to `people-circle` (Closes [#779](https://github.com/ionic-team/ionicons/issues/779))
|
||||
* Fixed and updated `data.json`
|
||||
* Fixed broken contributing link
|
||||
* Added missing `rimraf` dependency
|
||||
* Improved codebase with additional comments
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.4.0](https://github.com/ionic-team/ionicons/compare/v7.3.1...v7.4.0) (2024-05-01)
|
||||
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.4.0",
|
||||
"version": "8.0.7",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ionicons",
|
||||
"version": "7.4.0",
|
||||
"version": "8.0.7",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@stencil/core": "^4.30.0"
|
||||
|
||||
+10
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.4.0",
|
||||
"version": "8.0.7",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
@@ -15,17 +15,22 @@
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"import": "./dist/ionicons/ionicons.esm.js",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs.js"
|
||||
},
|
||||
"./loader": {
|
||||
"types": "./dist/loader/index.d.ts",
|
||||
"import": "./dist/loader/index.js",
|
||||
"require": "./dist/loader/index.cjs.js"
|
||||
},
|
||||
"./components": {
|
||||
"types": "./components/index.d.ts",
|
||||
"import": "./components/index.js"
|
||||
},
|
||||
"./icons": {
|
||||
"types": "./icons/index.d.ts",
|
||||
"import": "./icons/index.mjs",
|
||||
"require": "./icons/index.js"
|
||||
"types": "./icons/ion-icon.d.ts",
|
||||
"import": "./icons/ion-icon.mjs",
|
||||
"require": "./icons/ion-icon.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -26,15 +26,15 @@ Also note that only visible icons are loaded, and icons that are "below the fold
|
||||
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://esm.sh/ionicons@latest"></script>
|
||||
<script nomodule src="https://esm.sh/ionicons@latest"></script>
|
||||
<script type="module" src="https://esm.sh/ionicons/loader@latest"></script>
|
||||
<script nomodule src="https://esm.sh/ionicons/loader@latest"></script>
|
||||
```
|
||||
|
||||
you can replace `latest` to pick any version of Ionicon, e.g.:
|
||||
|
||||
```html
|
||||
<script type="module" src="https://esm.sh/ionicons@7.4.1"></script>
|
||||
<script nomodule src="https://esm.sh/ionicons@7.4.1"></script>
|
||||
<script type="module" src="https://esm.sh/ionicons/loader@8.0.0"></script>
|
||||
<script nomodule src="https://esm.sh/ionicons/loader@8.0.0"></script>
|
||||
```
|
||||
|
||||
### Basic usage
|
||||
@@ -58,10 +58,14 @@ To use a custom SVG, provide its url in the `src` attribute to request the exter
|
||||
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 'ionicons'
|
||||
import { setAssetPath, addIcons } from 'ionicons';
|
||||
import { add, logoIonic, save } from 'ionicons/icons';
|
||||
|
||||
// set root path for loading icons to "<root>/public/svg"
|
||||
setAssetPath(`${window.location.origin}/public/svg/`);
|
||||
|
||||
// only load specific icons
|
||||
addIcons({ add, logoIonic, save });
|
||||
```
|
||||
|
||||
This allows the use of named icons like this:
|
||||
|
||||
Reference in New Issue
Block a user