Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cafe8e6541 | ||
|
|
66858926cc | ||
|
|
c37b691dd5 | ||
|
|
0e3ba9922c | ||
|
|
36992fc01b | ||
|
|
5f2aab6cbe | ||
|
|
fd90487afc | ||
|
|
06b9b1fc59 | ||
|
|
0dfccdf016 | ||
|
|
69e0817503 | ||
|
|
19629000ca | ||
|
|
d13cd3333c | ||
|
|
20c396d8d7 | ||
|
|
b6903a0ad8 | ||
|
|
8d898d7170 | ||
|
|
7dd69094d1 | ||
|
|
e79e5cd235 | ||
|
|
86a051ca63 | ||
|
|
28d0338ee0 | ||
|
|
3ec9271e83 | ||
|
|
19dd66469c | ||
|
|
43d61fe909 | ||
|
|
1038a7f682 | ||
|
|
947091adf7 | ||
|
|
728aa746a0 | ||
|
|
32da247bc1 | ||
|
|
f21bb0f097 | ||
|
|
e6a5af1a96 | ||
|
|
36a0c6b103 | ||
|
|
e63653cbe1 | ||
|
|
4ca8139f77 | ||
|
|
24caaad7d9 | ||
|
|
8c2a507fcf | ||
|
|
c76f2a2556 | ||
|
|
0d7f507677 | ||
|
|
b3155d9603 | ||
|
|
9139a01e18 | ||
|
|
0541db0f28 | ||
|
|
200678a619 | ||
|
|
66556ea45c | ||
|
|
b1c23f8dee | ||
|
|
81f2fc1a84 | ||
|
|
1543daa010 | ||
|
|
500d15fec0 | ||
|
|
a30dfb2886 | ||
|
|
f16c5fb13d | ||
|
|
a134c76d50 | ||
|
|
6753d715e2 | ||
|
|
c3722987c5 | ||
|
|
7f96d8c725 | ||
|
|
7666f2d97a | ||
|
|
b73bb075fd | ||
|
|
486ae96765 | ||
|
|
eca4c14f05 | ||
|
|
3dbc0c8263 | ||
|
|
81edbf2387 | ||
|
|
cb0b2124ec | ||
|
|
eef739789f | ||
|
|
98fa89ea57 | ||
|
|
107c075d88 | ||
|
|
2f3effb33f | ||
|
|
c580023063 | ||
|
|
0f77aaf2db | ||
|
|
cc7291248f | ||
|
|
81d9ff1995 | ||
|
|
71c7d80e54 | ||
|
|
95cd90d790 | ||
|
|
c0fb92b87f | ||
|
|
9de2a0760e | ||
|
|
38efaa1e8f | ||
|
|
502d1f7077 | ||
|
|
01b0de6e80 | ||
|
|
7d8e33e12c | ||
|
|
1069d8b4ab | ||
|
|
9992cc07a3 | ||
|
|
3aed6eee31 | ||
|
|
c470b85c34 | ||
|
|
3a2ab6ec27 | ||
|
|
63eee58f89 | ||
|
|
0642e2112b | ||
|
|
e6973d0c55 | ||
|
|
7668a3cf62 | ||
|
|
cfddc2e642 | ||
|
|
1cef0acb10 | ||
|
|
c5e4047206 | ||
|
|
63c9ee02a5 | ||
|
|
2e7fe14315 | ||
|
|
f61e47c698 | ||
|
|
922f43387b | ||
|
|
73526e40b8 | ||
|
|
7ce073d3fe | ||
|
|
1b07d10212 | ||
|
|
8983749600 | ||
|
|
fa8d76e20c | ||
|
|
91fa34ebc7 | ||
|
|
14fd26b38f | ||
|
|
2301be8f6c | ||
|
|
94cf9b52b6 | ||
|
|
00e7012192 | ||
|
|
2204753a37 | ||
|
|
cd791f735c | ||
|
|
b9c65a794d | ||
|
|
b16eed45a3 | ||
|
|
ed44918e29 | ||
|
|
51a431e6ad | ||
|
|
dab04ff606 | ||
|
|
1c6540e770 |
@@ -0,0 +1,32 @@
|
||||
name: 🐛 Bug Report
|
||||
description: Report a bug in the ion-icon component. Incorrect icons should use the "Incorrect Icon" template instead.
|
||||
labels: ["triage"]
|
||||
title: "bug: "
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Current Behavior
|
||||
description: A clear description of what the bug is and how it manifests.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A clear description of what you expected to happen.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps to Reproduce
|
||||
description: Please explain the steps required to duplicate this issue.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
attributes:
|
||||
label: Code Reproduction URL
|
||||
description: Please provide an application with the minimum code required to reproduce the issue. This is the best way to ensure this issue is triaged quickly. Issues without a code reproduction may be closed if the Ionic Team cannot reproduce the issue you are reporting.
|
||||
placeholder: https://github.com/...
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
|
||||
@@ -0,0 +1,23 @@
|
||||
name: 💡 Feature Request
|
||||
description: Suggest a new feature for the ion-icon component. Icon requests should use the "Icon Request" template instead.
|
||||
labels: ["triage"]
|
||||
title: "feat: "
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Problem
|
||||
description: A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Preferred Solution
|
||||
description: A clear and concise description of what you want to happen.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe Alternatives
|
||||
description: A clear and concise description of any alternative solutions or features you have considered.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 🚀 Icon Request
|
||||
description: Request a new icon
|
||||
labels: ["triage"]
|
||||
title: "icon request: "
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the Icon
|
||||
description: A clear and concise description of the icon you would like added.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Links to Examples
|
||||
description: Add links to any examples of the icon in other libraries that you like.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: Add any other context about the icon request here.
|
||||
@@ -0,0 +1,17 @@
|
||||
name: 😒 Incorrect Icon
|
||||
description: Report an incorrect icon
|
||||
labels: ["triage"]
|
||||
title: "incorrect icon: "
|
||||
body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the Issue
|
||||
description: A clear description of what is wrong with the icon. Please include any relevant screenshots.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A clear description of what the icon should look like. Please include any relevant screenshots.
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,93 @@
|
||||
triage:
|
||||
label: triage
|
||||
dryRun: false
|
||||
|
||||
closeAndLock:
|
||||
labels:
|
||||
- label: 'ionitron: support'
|
||||
message: >
|
||||
Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for
|
||||
bug reports and feature requests. Please use our [forum](https://forum.ionicframework.com/) for help or
|
||||
questions about Ionicons.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
- label: 'ionitron: missing template'
|
||||
message: >
|
||||
Thanks for the issue! It appears that you have not filled out the provided issue template. We use this issue
|
||||
template in order to gather more information and further assist you. Please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
|
||||
comment:
|
||||
labels:
|
||||
- label: "help wanted"
|
||||
message: >
|
||||
This issue has been labeled as `help wanted`. This label is added to issues
|
||||
that we believe would be good for contributors.
|
||||
|
||||
|
||||
If you'd like to work on this issue, please comment here letting us know that
|
||||
you would like to submit a pull request for it. This helps us to keep track of
|
||||
the pull request and make sure there isn't duplicated effort.
|
||||
|
||||
|
||||
For a guide on how to create a pull request and test this project locally to see
|
||||
your changes, see our [contributing documentation](https://github.com/ionic-team/ionicons/blob/main/.github/CONTRIBUTING.md#creating-a-pull-request).
|
||||
|
||||
|
||||
Thank you!
|
||||
- label: 'ionitron: needs reproduction'
|
||||
message: >
|
||||
Thanks for the issue! This issue has been labeled as `needs reproduction`. This label is added to issues that
|
||||
need a code reproduction.
|
||||
|
||||
|
||||
Please reproduce this issue and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a
|
||||
reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
|
||||
|
||||
|
||||
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was
|
||||
not enough for our team to reproduce the issue.
|
||||
dryRun: false
|
||||
|
||||
noReply:
|
||||
days: 14
|
||||
maxIssuesPerRun: 100
|
||||
label: "needs: reply"
|
||||
responseLabel: triage
|
||||
exemptProjects: true
|
||||
exemptMilestones: true
|
||||
message: >
|
||||
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still
|
||||
an issue with the latest version of Ionicons, please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
|
||||
noReproduction:
|
||||
days: 14
|
||||
maxIssuesPerRun: 100
|
||||
label: "ionitron: needs reproduction"
|
||||
responseLabel: triage
|
||||
exemptProjects: true
|
||||
exemptMilestones: true
|
||||
message: >
|
||||
Thanks for the issue! This issue is being closed due to the lack of a code reproduction. If this is still
|
||||
an issue with the latest version of Ionicons, please create a new issue and ensure the
|
||||
template is fully filled out.
|
||||
|
||||
|
||||
Thank you for using Ionicons!
|
||||
close: true
|
||||
lock: true
|
||||
dryRun: false
|
||||
@@ -0,0 +1,34 @@
|
||||
name: 'Build Ionicons'
|
||||
description: 'Build Ionicons'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Checkout the latest commit in this branch
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
shell: bash
|
||||
- name: Build
|
||||
run: npm run build
|
||||
shell: bash
|
||||
- uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
output: IoniconsBuild.zip
|
||||
paths: dist components icons www
|
||||
- uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: ionicons-src
|
||||
output: IoniconsSrc.zip
|
||||
paths: src
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 'Archive Download'
|
||||
description: 'Downloads and decompresses an archive from a previous job'
|
||||
inputs:
|
||||
path:
|
||||
description: 'Input archive name'
|
||||
filename:
|
||||
description: 'Input file name'
|
||||
name:
|
||||
description: 'Archive name'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.path }}
|
||||
- name: Exract Archive
|
||||
run: unzip -q -o ${{ inputs.path }}/${{ inputs.filename }}
|
||||
shell: bash
|
||||
@@ -0,0 +1,86 @@
|
||||
name: 'Test E2E'
|
||||
description: 'Test E2E'
|
||||
inputs:
|
||||
shard:
|
||||
description: 'Playwright Test Shard (ex: 2)'
|
||||
totalShards:
|
||||
description: 'Playwright total number of test shards (ex: 4)'
|
||||
update:
|
||||
description: 'Whether or not to update the reference snapshots'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
path: .
|
||||
filename: IoniconsBuild.zip
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-src
|
||||
path: .
|
||||
filename: IoniconsSrc.zip
|
||||
- name: Install Playwright Dependencies
|
||||
run: npx playwright install && npx playwright install-deps
|
||||
shell: bash
|
||||
- name: Test
|
||||
if: inputs.update != 'true'
|
||||
run: npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }}
|
||||
shell: bash
|
||||
- name: Test and Update
|
||||
id: test-and-update
|
||||
if: inputs.update == 'true'
|
||||
# Keep track of the files that were
|
||||
# changed so they can be correctly restored
|
||||
# in the combine step.
|
||||
# To do this, we move only the changed files
|
||||
# to a separate directory, while preserving the
|
||||
# directory structure of the source.
|
||||
# When, we create and archive of these results
|
||||
# so that the combine step can simply
|
||||
# unzip and move the changed files into place.
|
||||
# We have extra logic added so that job runners
|
||||
# that do not have any new screenshots do not create
|
||||
# an unnecessary .zip.
|
||||
run: |
|
||||
npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots
|
||||
git add src/\*.png --force
|
||||
mkdir updated-screenshots
|
||||
echo 'made dir'
|
||||
rsync -R --progress $(git diff --name-only --cached) updated-screenshots
|
||||
echo 'copied images'
|
||||
if [ -d updated-screenshots ]; then
|
||||
echo "::set-output name=hasUpdatedScreenshots::$(echo 'true')"
|
||||
cd updated-screenshots
|
||||
ls
|
||||
zip -q -r ../UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip ./
|
||||
fi
|
||||
shell: bash
|
||||
- name: Archive Updated Screenshots
|
||||
if: inputs.update == 'true' && steps.test-and-update.outputs.hasUpdatedScreenshots == 'true'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: updated-screenshots-${{ inputs.shard }}-${{ inputs.totalShards }}
|
||||
path: UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
|
||||
- name: Archive Test Results
|
||||
# The always() ensures that this step
|
||||
# runs even if the previous step fails.
|
||||
# We want the test results to be archived
|
||||
# even if the test fails in the previous
|
||||
# step, otherwise there would be no way
|
||||
# to debug these tests.
|
||||
if: always()
|
||||
uses: ./.github/workflows/actions/upload-archive
|
||||
with:
|
||||
name: test-results-${{ inputs.shard }}-${{ inputs.totalShards }}
|
||||
output: TestResults-${{ inputs.shard }}-${{ inputs.totalShards }}.zip
|
||||
paths: playwright-report
|
||||
@@ -0,0 +1,22 @@
|
||||
name: 'Test Spec'
|
||||
description: 'Test Spec'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v3
|
||||
env:
|
||||
cache-name: node-modules
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./package-lock.json') }}-v1
|
||||
- uses: ./.github/workflows/actions/download-archive
|
||||
with:
|
||||
name: ionicons-build
|
||||
path: .
|
||||
filename: IoniconsBuild.zip
|
||||
- name: Test
|
||||
run: npm run test.spec -- --ci
|
||||
shell: bash
|
||||
@@ -0,0 +1,38 @@
|
||||
name: 'Update Reference Screenshots'
|
||||
description: 'Update Reference Screenshots'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: ./artifacts
|
||||
- name: Extract Archives
|
||||
# This finds all .zip files in the ./artifacts
|
||||
# directory, including nested directories.
|
||||
# It then unzips every .zip to the root directory
|
||||
run: |
|
||||
find . -type f -name 'UpdatedScreenshots-*.zip' -exec unzip -q -o -d ../ {} \;
|
||||
shell: bash
|
||||
working-directory: ./artifacts
|
||||
- name: Push Screenshots
|
||||
# Configure user as Ionitron
|
||||
# and push only the changed .png snapshots
|
||||
# to the remote branch.
|
||||
# Screenshots are in .gitignore
|
||||
# to prevent local screenshots from getting
|
||||
# pushed to Git. As a result, we need --force
|
||||
# here so that CI generated screenshots can
|
||||
# get added to git. Screenshot ground truths
|
||||
# should only be added via this CI process.
|
||||
run: |
|
||||
git config user.name ionitron
|
||||
git config user.email hi@ionicframework.com
|
||||
git add src/\*.png --force
|
||||
git commit -m "chore(): add updated snapshots"
|
||||
git push
|
||||
shell: bash
|
||||
@@ -0,0 +1,19 @@
|
||||
name: 'Archive Upload'
|
||||
description: 'Compresses and uploads an archive to be reused across jobs'
|
||||
inputs:
|
||||
paths:
|
||||
description: 'Paths to files or directories to archive'
|
||||
output:
|
||||
description: 'Output file name'
|
||||
name:
|
||||
description: 'Archive name'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Create Archive
|
||||
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
|
||||
shell: bash
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.output }}
|
||||
@@ -0,0 +1,71 @@
|
||||
name: 'Ionicons Build'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ '**' ]
|
||||
|
||||
# When pushing a new commit we should
|
||||
# cancel the previous test run to not
|
||||
# consume more runners than we need to.
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-core:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Checkout the latest commit in this branch
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: ./.github/workflows/actions/build-core
|
||||
|
||||
test-spec:
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/workflows/actions/test-spec
|
||||
|
||||
test-e2e:
|
||||
strategy:
|
||||
# This ensures that all screenshot shard
|
||||
# failures are reported so the dev can
|
||||
# review everything at once.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Divide the tests into n buckets
|
||||
# and run those buckets in parallel.
|
||||
# To increase the number of shards,
|
||||
# add new items to the shard array
|
||||
# and change the value of totalShards
|
||||
# to be the length of the shard array.
|
||||
shard: [1, 2, 3]
|
||||
totalShards: [3]
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/workflows/actions/test-e2e
|
||||
with:
|
||||
shard: ${{ matrix.shard }}
|
||||
totalShards: ${{ matrix.totalShards }}
|
||||
|
||||
# Screenshots are required to pass
|
||||
# in order for the branch to be merge
|
||||
# eligible. However, the screenshot tests
|
||||
# are run on n runners where n can change
|
||||
# over time. The verify-screenshots step allows
|
||||
# us to have a required status check for screenshot
|
||||
# results without having to manually add each
|
||||
# matrix run in the branch protection rules
|
||||
# Source: https://github.community/t/status-check-for-a-matrix-jobs/127354
|
||||
verify-e2e:
|
||||
if: ${{ always() }}
|
||||
needs: test-e2e
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check build matrix status
|
||||
if: ${{ needs.test-e2e.result != 'success' }}
|
||||
run: exit 1
|
||||
@@ -0,0 +1,52 @@
|
||||
name: 'Update Reference Screenshots'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-core:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/workflows/actions/build-core
|
||||
|
||||
test-e2e:
|
||||
strategy:
|
||||
# This ensures that all screenshot shard
|
||||
# failures are reported so the dev can
|
||||
# review everything at once.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Divide the tests into n buckets
|
||||
# and run those buckets in parallel.
|
||||
# To increase the number of shards,
|
||||
# add new items to the shard array
|
||||
# and change the value of totalShards
|
||||
# to be the length of the shard array.
|
||||
shard: [1, 2, 3]
|
||||
totalShards: [3]
|
||||
needs: [build-core]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/workflows/actions/test-e2e
|
||||
with:
|
||||
shard: ${{ matrix.shard }}
|
||||
totalShards: ${{ matrix.totalShards }}
|
||||
update: true
|
||||
|
||||
update-reference-screenshots:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-e2e]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# Normally, we could just push with the
|
||||
# default GITHUB_TOKEN, but that will
|
||||
# not cause the build workflow
|
||||
# to re-run. We use Ionitron's
|
||||
# Personal Access Token instead
|
||||
# to allow for this build workflow
|
||||
# to run when the screenshots are pushed.
|
||||
with:
|
||||
token: ${{ secrets.IONITRON_TOKEN }}
|
||||
- uses: ./.github/workflows/actions/update-reference-screenshots
|
||||
@@ -10,11 +10,17 @@ log.txt
|
||||
.idea/
|
||||
.versions/
|
||||
.vscode/
|
||||
/components/
|
||||
node_modules/
|
||||
tmp/
|
||||
dist/
|
||||
icons/
|
||||
.DS_Store
|
||||
scripts/*.js
|
||||
!scripts/install-loader.js
|
||||
|
||||
www/
|
||||
www/
|
||||
/test-results/
|
||||
/playwright-report/
|
||||
/playwright/.cache/
|
||||
/src/**/*-snapshots
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": false,
|
||||
"quoteProps": "consistent",
|
||||
"printWidth": 120,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "all",
|
||||
"useTabs": false
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
# [5.0.0](https://github.com/ionic-team/ionicons/releases) (2020-02-06)
|
||||
|
||||
It's here! Please enjoy 🎈
|
||||
|
||||
### What's new
|
||||
* Top to bottom re-draw of every icon to better match the latest iOS and Material platform styles.
|
||||
* Plenty of additions to help you get icons you need for your project.
|
||||
* Instead of platform specific variants for each icon we are providing appearance variants (filled, outline, and sharp) for each icon.
|
||||
* Using appearance variants:
|
||||
```html
|
||||
<ion-icon name="heart"></ion-icon> <!--filled variant-->
|
||||
<ion-icon name="heart-outline"></ion-icon> <!--outline variant-->
|
||||
<ion-icon name="heart-sharp"></ion-icon> <!--sharp variant-->
|
||||
```
|
||||
* There will no longer be auto-switching for platform specificity when using Ionicons in an Ionic Framework app. If you'd like to switch icon styles based on the platform in Ionic 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>
|
||||
```
|
||||
* Adjust the stroke weight via CSS for icons that use the outline variant.
|
||||
|
||||
### BREAKING CHANGES
|
||||
The table below outlines icons that were removed or renamed.
|
||||
|
||||
| Icon Name | | Status | Notes |
|
||||
| -----------------------------| ------------| ------------| ----------------------------------------------------------------------|
|
||||
| add-circle | :x: | deleted | re-added as "circled" icon |
|
||||
| appstore | :x: | deleted | added as google play & apple app store logos |
|
||||
| arrow-dropdown-circle | :pencil2: | renamed | `md` version added as "caret-down-circle", `ios` version added as "chevron-down-circle" |
|
||||
| arrow-dropdown | :pencil2: | renamed | `md` version added as "caret-down", `ios` version added as "chevron-down-circle-outline" |
|
||||
| arrow-dropleft-circle | :pencil2: | renamed | `md` version added as "caret-back-circle", `ios` version added as "chevron-back-circle" |
|
||||
| arrow-dropleft | :pencil2: | renamed | `md` version added as "caret-back", `ios` version added as "chevron-back-circle-outline" |
|
||||
| arrow-dropright-circle | :pencil2: | renamed | `md` version added as "caret-forward-circle", `ios` version added as "chevron-forward-circle" |
|
||||
| arrow-dropright | :pencil2: | renamed | `md` version added as "caret-forward", `ios` version added as "chevron-forward-circle-outline" |
|
||||
| arrow-dropup-circle | :pencil2: | renamed | `md` version added as "caret-up-circle", `ios` version added as "chevron-up-circle" |
|
||||
| arrow-dropup | :pencil2: | renamed | `md` version added as "caret-up", `ios` version added as "chevron-up-circle-outline" |
|
||||
| arrow-round-back | :x: | deleted | becomes "arrow-back" |
|
||||
| arrow-round-down | :x: | deleted | becomes "arrow-down" |
|
||||
| arrow-round-forward | :x: | deleted | becomes "arrow-forward" |
|
||||
| arrow-round-up | :x: | deleted | becomes "arrow-up" |
|
||||
| at | :pencil2: | renamed | becomes "at-circle" |
|
||||
| bowtie | :x: | deleted | |
|
||||
| chatboxes | :pencil2: | renamed | renamed to "chatbox" |
|
||||
| clock | :x: | deleted | |
|
||||
| contact | :pencil2: | renamed | renamed to "person-circle" |
|
||||
| contacts | :pencil2: | renamed | renamed to "person-circle" |
|
||||
| done-all | :pencil2: | renamed | renamed to "checkmark-done" |
|
||||
| fastforward | :pencil2: | renamed | renamed to "play-forward" |
|
||||
| filing | :pencil2: | renamed | renamed to "file-tray" |
|
||||
| logo-freebsd-devil | :x: | deleted | |
|
||||
| logo-game-controller-a | :x: | deleted | |
|
||||
| logo-game-controller-b | :x: | deleted | added as "game-controller" |
|
||||
| logo-googleplus | :x: | deleted | |
|
||||
| hand | :x: | deleted | split into "hand-left" and "hand-right" |
|
||||
| heart-empty | :pencil2: | renamed | renamed to "heart-outline" |
|
||||
| jet | :x: | deleted | use "airplane" |
|
||||
| list-box | :x: | deleted | |
|
||||
| lock | :pencil2: | renamed | renamed to "lock-closed" |
|
||||
| microphone | :x: | deleted | |
|
||||
| model-s | :x: | deleted | added as "car-sport" |
|
||||
| more | :x: | deleted | use "ellipsis-horizontal" for `ios` and "ellipsis-vertical" for `md` |
|
||||
| notifications-outline | :x: | deleted | exists as circled version |
|
||||
| outlet | :x: | deleted | |
|
||||
| paper | :pencil2: | renamed | renamed to "newspaper" |
|
||||
| logo-polymer | :x: | deleted | |
|
||||
| pie | :pencil2: | renamed | renamed to "pie-chart" |
|
||||
| photos | :x: | deleted | use "image" or "images" |
|
||||
| qr-scanner | :pencil2: | renamed | renamed to "qr-code" |
|
||||
| quote | :x: | deleted | |
|
||||
| redo | :pencil2: | renamed | renamed to "arrow-redo" |
|
||||
| reorder | :x: | deleted | added as "reorder-two", "reorder-three", "reorder-four" |
|
||||
| return-left | :pencil2: | renamed | renamed to "return-down-back" |
|
||||
| return-right | :pencil2: | renamed | renamed to "return-down-forward" |
|
||||
| rewind | :pencil2: | renamed | renamed to "play-back" |
|
||||
| reverse-camera | :pencil2: | renamed | renamed to "camera-reverse" |
|
||||
| share-alt | :x: | deleted | |
|
||||
| skip-backward | :pencil2: | renamed | renamed to "play-skip-back" |
|
||||
| skip-forward | :pencil2: | renamed | renamed to "play-skip-forward" |
|
||||
| stats | :pencil2: | renamed | renamed to "stats-chart" |
|
||||
| swap | :x: | deleted | use "swap-horizontal" or "swap-vertical" |
|
||||
| switch | :pencil2: | renamed | renamed to "toggle" |
|
||||
| text | :pencil2: | renamed | renamed to "chatbox-ellipses" |
|
||||
| undo | :pencil2: | renamed | renamed to "arrow-undo" |
|
||||
| unlock | :pencil2: | renamed | renamed to "lock-open" |
|
||||
@@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "5.0.0",
|
||||
"version": "6.0.3",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
"dist/",
|
||||
"icons/"
|
||||
],
|
||||
"module": "dist/index.mjs",
|
||||
"main": "dist/index.js",
|
||||
"main": "./dist/index.cjs.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"unpkg": "dist/ionicons.js",
|
||||
"collection": "dist/collection/collection-manifest.json",
|
||||
@@ -18,32 +19,28 @@
|
||||
"build.component": "stencil build",
|
||||
"collection.copy": "node scripts/collection-copy.js",
|
||||
"start": "stencil build --dev --watch --serve",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
"release.prepare": "node scripts/release.js --any-branch",
|
||||
"release": "node scripts/release.js --publish --any-branch",
|
||||
"test": "stencil test --spec"
|
||||
"test": "npm run test.spec",
|
||||
"test.spec": "stencil test --spec",
|
||||
"release": "np --no-2fa",
|
||||
"version": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@stencil/core": "^2.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "^1.8.3",
|
||||
"@types/execa": "^2.0.0",
|
||||
"@types/fs-extra": "^8.0.0",
|
||||
"@types/inquirer": "^6.5.0",
|
||||
"@types/jest": "^24.0.20",
|
||||
"@types/listr": "^0.14.2",
|
||||
"@types/puppeteer": "1.12.4",
|
||||
"@types/svgo": "^1.2.1",
|
||||
"archiver": "^3.0.0",
|
||||
"conventional-changelog-cli": "^2.0.23",
|
||||
"execa": "^2.0.4",
|
||||
"fs-extra": "8.1.0",
|
||||
"inquirer": "^7.0.0",
|
||||
"jest": "24.9.0",
|
||||
"jest-cli": "24.9.0",
|
||||
"listr": "^0.14.3",
|
||||
"pixelmatch": "4.0.2",
|
||||
"puppeteer": "1.7.0",
|
||||
"svgo": "1.3.0",
|
||||
"workbox-build": "4.3.1"
|
||||
"@playwright/test": "^1.26.1",
|
||||
"@types/fs-extra": "^9.0.6",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/node": "^14.14.22",
|
||||
"@types/svgo": "^1.3.3",
|
||||
"fs-extra": "^9.1.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-cli": "^26.6.3",
|
||||
"np": "^7.2.0",
|
||||
"serve": "^14.0.1",
|
||||
"puppeteer": "^10.4.0",
|
||||
"svgo": "1.3.2",
|
||||
"typescript": "^4.1.3"
|
||||
},
|
||||
"keywords": [
|
||||
"icon pack",
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
import { devices, expect } from '@playwright/test';
|
||||
|
||||
const projects = [
|
||||
{
|
||||
/**
|
||||
* This is really just desktop Firefox
|
||||
* but with a mobile viewport.
|
||||
*/
|
||||
name: 'Mobile Firefox',
|
||||
use: {
|
||||
browserName: 'firefox',
|
||||
/**
|
||||
* This is the Pixel 5 configuration.
|
||||
* We can't use devices['Pixel 5']
|
||||
* because the "isMobile" option is
|
||||
* not supported on Firefox.
|
||||
*/
|
||||
viewport: {
|
||||
width: 393,
|
||||
height: 727
|
||||
},
|
||||
screen: {
|
||||
width: 393,
|
||||
height: 851
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Mobile Chrome',
|
||||
use: {
|
||||
browserName: 'chromium',
|
||||
...devices['Pixel 5']
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Mobile Safari',
|
||||
use: {
|
||||
browserName: 'webkit',
|
||||
...devices['iPhone 12']
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
/**
|
||||
* See https://playwright.dev/docs/test-configuration.
|
||||
*/
|
||||
const config: PlaywrightTestConfig = {
|
||||
testMatch: '*.e2e.ts',
|
||||
expect: {
|
||||
/**
|
||||
* Maximum time expect() should wait for the condition to be met.
|
||||
* For example in `await expect(locator).toHaveText();`
|
||||
*/
|
||||
timeout: 5000,
|
||||
toMatchSnapshot: {
|
||||
/**
|
||||
* Increases the maximum allowed pixel difference to account
|
||||
* for slight browser rendering inconsistencies.
|
||||
*/
|
||||
maxDiffPixelRatio: 0.02
|
||||
}
|
||||
},
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: 'html',
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
|
||||
actionTimeout: 0,
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
// baseURL: 'http://localhost:3000',
|
||||
|
||||
/**
|
||||
* All failed tests should create
|
||||
* a trace file for easier debugging.
|
||||
*
|
||||
* See https://playwright.dev/docs/trace-viewer
|
||||
*/
|
||||
trace: 'retain-on-failure',
|
||||
baseURL: 'http://localhost:3333',
|
||||
},
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
projects: projects,
|
||||
webServer: {
|
||||
command: 'serve www -p 3333',
|
||||
port: 3333,
|
||||
reuseExistingServer: !process.env.CI
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
@@ -1,6 +1,6 @@
|
||||
# Ionicons
|
||||
|
||||
[Ionicons](http://ionicons.com/) is a completely open-source icon set with 1,100+ 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.
|
||||
[Ionicons](http://ionicons.com/) is a completely open-source icon set with 1,300 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.
|
||||
|
||||
Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Ionic, nor vice versa.
|
||||
|
||||
@@ -26,7 +26,7 @@ Also note that only visible icons are loaded, and icons which are "below the fol
|
||||
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 src="https://unpkg.com/ionicons@5.0.0/dist/ionicons.js"></script>
|
||||
<script src="https://unpkg.com/ionicons@latest/dist/ionicons.js"></script>
|
||||
```
|
||||
|
||||
### Basic usage
|
||||
@@ -88,8 +88,8 @@ ion-icon {
|
||||
}
|
||||
```
|
||||
|
||||
## Stroke weight
|
||||
When using an `outline` icon variant it is possible to adjust the stroke weight, for improved visual balance relative to the icon's size or relative to the weight of adjacent text. You can set a specific size by applying the `--ionicon-stroke-weight` CSS custom property to the `ion-icon` component. The default value is 32px.
|
||||
## Stroke width
|
||||
When using an `outline` icon variant it is possible to adjust the stroke width, for improved visual balance relative to the icon's size or relative to the width of adjacent text. You can set a specific size by applying the `--ionicon-stroke-width` CSS custom property to the `ion-icon` component. The default value is 32px.
|
||||
|
||||
```html
|
||||
<ion-icon name="heart-outline"></ion-icon>
|
||||
@@ -103,7 +103,7 @@ ion-icon {
|
||||
|
||||
## Migrating from v4
|
||||
|
||||
See the [changelog](https://github.com/ionic-team/ionicons/blob/master/CHANGELOG.md#500-2020-01-15) for a list of icon deletions/renames.
|
||||
See the [5.0 release notes](https://github.com/ionic-team/ionicons/releases/tag/5.0.0) for a list of icon deletions/renames.
|
||||
|
||||
## License
|
||||
|
||||
@@ -118,3 +118,4 @@ Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT)
|
||||
* [Ionic Forum](https://forum.ionicframework.com/)
|
||||
* [Stencil](https://stenciljs.com/)
|
||||
* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)
|
||||
* [Capacitor](https://capacitorjs.com/)
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import fs from 'fs-extra';
|
||||
import { join, basename } from 'path';
|
||||
import { join } from 'path';
|
||||
import Svgo from 'svgo';
|
||||
|
||||
|
||||
async function build(rootDir: string) {
|
||||
try {
|
||||
const pkgJsonPath = join(rootDir, 'package.json');
|
||||
@@ -11,19 +10,15 @@ async function build(rootDir: string) {
|
||||
const iconDir = join(rootDir, 'icons');
|
||||
const distDir = join(rootDir, 'dist');
|
||||
const distIoniconsDir = join(distDir, 'ionicons');
|
||||
const destSrcSvgDir = join(distDir, 'svg');
|
||||
const distSvgDir = join(distDir, 'svg');
|
||||
|
||||
await Promise.all([
|
||||
fs.emptyDir(iconDir),
|
||||
fs.emptyDir(distDir),
|
||||
fs.emptyDir(destSrcSvgDir),
|
||||
]);
|
||||
await fs.emptyDir(distIoniconsDir);
|
||||
await Promise.all([fs.emptyDir(iconDir), fs.emptyDir(distDir)]);
|
||||
await fs.emptyDir(distSvgDir), await fs.emptyDir(distIoniconsDir);
|
||||
|
||||
const pkgData = await fs.readJson(pkgJsonPath);
|
||||
const version = pkgData.version as string;
|
||||
|
||||
const srcSvgData = await getSvgs(srcSvgDir, rootDir, distIoniconsDir)
|
||||
const srcSvgData = await getSvgs(srcSvgDir, distSvgDir, distIoniconsDir);
|
||||
|
||||
await optimizeSvgs(srcSvgData);
|
||||
|
||||
@@ -32,25 +27,21 @@ async function build(rootDir: string) {
|
||||
createIconPackage(version, iconDir, srcSvgData),
|
||||
]);
|
||||
|
||||
const svgSymbolsContent = await createSvgSymbols(version, distDir, srcSvgData)
|
||||
const svgSymbolsContent = await createSvgSymbols(version, distDir, srcSvgData);
|
||||
|
||||
await createCheatsheet(version, rootDir, distDir, svgSymbolsContent, srcSvgData);
|
||||
|
||||
await copyToTesting(rootDir, distDir, srcSvgData);
|
||||
|
||||
await fs.copy(srcSvgDir, destSrcSvgDir);
|
||||
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function optimizeSvgs(srcSvgData: SvgData[]) {
|
||||
// https://github.com/svg/svgo
|
||||
const optimizePass = new Svgo({});
|
||||
const processPass = new Svgo({
|
||||
const webComponentPass = new Svgo({
|
||||
full: true,
|
||||
plugins: [
|
||||
{
|
||||
@@ -61,56 +52,74 @@ async function optimizeSvgs(srcSvgData: SvgData[]) {
|
||||
params.attrs = [params.attrs];
|
||||
}
|
||||
if (item.isElem()) {
|
||||
item.eachAttr(attr => {
|
||||
item.eachAttr((attr) => {
|
||||
if (attr.name === 'fill') {
|
||||
if (attr.value === 'none') {
|
||||
item.class.add('ionicon-fill-none');
|
||||
}
|
||||
item.removeAttr('fill');
|
||||
|
||||
} else if (attr.name === 'stroke') {
|
||||
item.removeAttr('stroke');
|
||||
|
||||
} else if (attr.name === 'stroke-width' && attr.value === '32') {
|
||||
item.removeAttr('stroke-width');
|
||||
item.class.add('ionicon-stroke-width');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
} as any,
|
||||
{
|
||||
replaceTitleText: {
|
||||
removeStyleElement: true,
|
||||
},
|
||||
{
|
||||
removeScriptElement: true,
|
||||
},
|
||||
{
|
||||
removeDimensions: true,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const sourcePass = new Svgo({
|
||||
full: true,
|
||||
plugins: [
|
||||
{
|
||||
addFillNoneCss: {
|
||||
type: 'perItem',
|
||||
fn: (item, params, extra) => {
|
||||
if (item.isElem('title')) {
|
||||
const fileName = basename(extra.path)
|
||||
.replace('.svg', '')
|
||||
.replace('-outline', '')
|
||||
.replace('-sharp', '')
|
||||
.replace(/-/g, ' ');
|
||||
item.content[0].text = fileName;
|
||||
fn: (item, params) => {
|
||||
if (!Array.isArray(params.attrs)) {
|
||||
params.attrs = [params.attrs];
|
||||
}
|
||||
return item;
|
||||
}
|
||||
}
|
||||
if (item.isElem()) {
|
||||
item.eachAttr((attr) => {
|
||||
if (attr.name === 'stroke' || attr.name === 'fill') {
|
||||
if (attr.value === '#000') {
|
||||
item.addAttr({
|
||||
name: attr.name,
|
||||
value: 'currentColor',
|
||||
prefix: '',
|
||||
local: attr.name,
|
||||
});
|
||||
} else if (attr.value !== 'none') {
|
||||
throw new Error(`invalid "${attr.name}" value: ${attr.value}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
} as any,
|
||||
{
|
||||
addClassesToSVGElement: {
|
||||
className: ['ionicon']
|
||||
}
|
||||
removeStyleElement: true,
|
||||
},
|
||||
{
|
||||
removeStyleElement: true
|
||||
removeScriptElement: true,
|
||||
},
|
||||
{
|
||||
removeScriptElement: true
|
||||
removeDimensions: true,
|
||||
},
|
||||
{
|
||||
removeDimensions: true
|
||||
}
|
||||
]
|
||||
],
|
||||
});
|
||||
|
||||
const validatePass = new Svgo({
|
||||
@@ -124,31 +133,48 @@ async function optimizeSvgs(srcSvgData: SvgData[]) {
|
||||
params.attrs = [params.attrs];
|
||||
}
|
||||
if (item.isElem()) {
|
||||
item.eachAttr(attr => {
|
||||
item.eachAttr((attr) => {
|
||||
if (attr.name === 'style') {
|
||||
throw new Error('Inline style detected');
|
||||
throw new Error('Inline style attributed detected');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
} as any
|
||||
]
|
||||
if (item.isElem('style')) {
|
||||
throw new Error('Inline style element detected');
|
||||
}
|
||||
},
|
||||
},
|
||||
} as any,
|
||||
],
|
||||
});
|
||||
|
||||
await Promise.all(srcSvgData.map(async svgData => {
|
||||
return optimizeSvg(optimizePass, processPass, validatePass, svgData);
|
||||
}));
|
||||
await Promise.all(
|
||||
srcSvgData.map(async (svgData) => {
|
||||
return optimizeSvg(optimizePass, webComponentPass, sourcePass, validatePass, svgData);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
async function optimizeSvg(pass1: Svgo, pass2: Svgo, validatePass: Svgo, svgData: SvgData) {
|
||||
async function optimizeSvg(
|
||||
optimizePass: Svgo,
|
||||
webComponentPass: Svgo,
|
||||
sourcePass: Svgo,
|
||||
validatePass: Svgo,
|
||||
svgData: SvgData,
|
||||
) {
|
||||
const srcSvgContent = await fs.readFile(svgData.srcFilePath, 'utf8');
|
||||
|
||||
const optimizedSvg = await pass1.optimize(srcSvgContent, { path: svgData.srcFilePath });
|
||||
const processedSvg = await pass2.optimize(optimizedSvg.data, { path: svgData.srcFilePath });
|
||||
const optimizedSvg = await optimizePass.optimize(srcSvgContent, { path: svgData.srcFilePath });
|
||||
|
||||
svgData.optimizedSvgContent = processedSvg.data;
|
||||
const optimizedCode = optimizedSvg.data.replace(
|
||||
/<svg (.*?)>/,
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><title>${svgData.title}</title>`,
|
||||
);
|
||||
|
||||
const webComponentSvg = await webComponentPass.optimize(optimizedCode, { path: svgData.srcFilePath });
|
||||
const sourceSvg = await sourcePass.optimize(optimizedCode, { path: svgData.srcFilePath });
|
||||
|
||||
svgData.optimizedSvgContent = webComponentSvg.data;
|
||||
|
||||
try {
|
||||
await validatePass.optimize(svgData.optimizedSvgContent, { path: svgData.srcFilePath });
|
||||
@@ -157,26 +183,27 @@ async function optimizeSvg(pass1: Svgo, pass2: Svgo, validatePass: Svgo, svgData
|
||||
}
|
||||
|
||||
await fs.writeFile(svgData.optimizedFilePath, svgData.optimizedSvgContent);
|
||||
await fs.writeFile(svgData.distSvgFilePath, sourceSvg.data);
|
||||
}
|
||||
|
||||
|
||||
async function copyToTesting(rootDir: string, distDir: string, srcSvgData: SvgData[]) {
|
||||
const testDir = join(rootDir, 'www');
|
||||
const testBuildDir = join(testDir, 'build');
|
||||
const testSvgDir = join(testBuildDir, 'svg');
|
||||
await fs.ensureDir(testSvgDir);
|
||||
|
||||
await Promise.all(srcSvgData.map(async svgData => {
|
||||
const testSvgFilePath = join(testSvgDir, svgData.fileName);
|
||||
await fs.writeFile(testSvgFilePath, svgData.optimizedSvgContent);
|
||||
}));
|
||||
await Promise.all(
|
||||
srcSvgData.map(async (svgData) => {
|
||||
const testSvgFilePath = join(testSvgDir, svgData.fileName);
|
||||
await fs.writeFile(testSvgFilePath, svgData.optimizedSvgContent);
|
||||
}),
|
||||
);
|
||||
|
||||
const distCheatsheetFilePath = join(distDir, 'cheatsheet.html');
|
||||
const testCheatsheetFilePath = join(testDir, 'cheatsheet.html');
|
||||
await fs.copyFile(distCheatsheetFilePath, testCheatsheetFilePath);
|
||||
}
|
||||
|
||||
|
||||
async function createSvgSymbols(version: string, distDir: string, srcSvgData: SvgData[]) {
|
||||
srcSvgData = srcSvgData.sort((a, b) => {
|
||||
if (a.iconName < b.iconName) return -1;
|
||||
@@ -202,23 +229,14 @@ async function createSvgSymbols(version: string, distDir: string, srcSvgData: Sv
|
||||
`</style>`,
|
||||
];
|
||||
|
||||
srcSvgData.forEach(svgData => {
|
||||
srcSvgData.forEach((svgData) => {
|
||||
const svg = svgData.optimizedSvgContent
|
||||
.replace(
|
||||
`<svg xmlns="http://www.w3.org/2000/svg"`,
|
||||
`<symbol id="${svgData.iconName}"`
|
||||
)
|
||||
.replace(
|
||||
`</svg>`,
|
||||
`</symbol>`
|
||||
)
|
||||
lines.push(svg);
|
||||
.replace(`<svg xmlns="http://www.w3.org/2000/svg"`, `<symbol id="${svgData.iconName}"`)
|
||||
.replace(`</svg>`, `</symbol>`);
|
||||
lines.push(svg);
|
||||
});
|
||||
|
||||
lines.push(
|
||||
`</svg>`,
|
||||
``
|
||||
);
|
||||
lines.push(`</svg>`, ``);
|
||||
|
||||
const content = lines.join('\n');
|
||||
|
||||
@@ -227,14 +245,19 @@ async function createSvgSymbols(version: string, distDir: string, srcSvgData: Sv
|
||||
return content;
|
||||
}
|
||||
|
||||
|
||||
async function createCheatsheet(version: string, rootDir: string, distDir: string, svgSymbolsContent: string, srcSvgData: SvgData[]) {
|
||||
async function createCheatsheet(
|
||||
version: string,
|
||||
rootDir: string,
|
||||
distDir: string,
|
||||
svgSymbolsContent: string,
|
||||
srcSvgData: SvgData[],
|
||||
) {
|
||||
const CheatsheetTmpFilePath = join(rootDir, 'scripts', 'cheatsheet-template.html');
|
||||
const distCheatsheetFilePath = join(distDir, 'cheatsheet.html');
|
||||
|
||||
const c = srcSvgData.map(svgData => (
|
||||
`<svg><use href="#${svgData.iconName}" xlink:href="#${svgData.iconName}"/></svg>`
|
||||
));
|
||||
const c = srcSvgData.map(
|
||||
(svgData) => `<a href="./svg/${svgData.fileName}"><svg><use href="#${svgData.iconName}" xlink:href="#${svgData.iconName}"/></svg></a>`,
|
||||
);
|
||||
|
||||
c.push(svgSymbolsContent);
|
||||
|
||||
@@ -246,61 +269,71 @@ async function createCheatsheet(version: string, rootDir: string, distDir: strin
|
||||
await fs.writeFile(distCheatsheetFilePath, html);
|
||||
}
|
||||
|
||||
|
||||
async function getSvgs(srcSvgDir: string, rootDir: string, distIoniconsDir: string): Promise<SvgData[]> {
|
||||
async function getSvgs(srcSvgDir: string, distSvgDir: string, distIoniconsDir: string): Promise<SvgData[]> {
|
||||
const optimizedSvgDir = join(distIoniconsDir, 'svg');
|
||||
await fs.emptyDir(optimizedSvgDir);
|
||||
|
||||
const svgFiles = (await fs.readdir(srcSvgDir)).filter(fileName => {
|
||||
const svgFiles = (await fs.readdir(srcSvgDir)).filter((fileName) => {
|
||||
return !fileName.startsWith('.') && fileName.endsWith('.svg');
|
||||
});
|
||||
|
||||
const svgData = await Promise.all(svgFiles.map(async fileName => {
|
||||
// fileName: airplane-outline.svg
|
||||
const svgData = await Promise.all(
|
||||
svgFiles.map(async (fileName) => {
|
||||
// fileName: airplane-outline.svg
|
||||
|
||||
if (fileName.toLowerCase() !== fileName) {
|
||||
throw new Error(`svg filename "${fileName}" must be all lowercase`);
|
||||
}
|
||||
if (fileName.toLowerCase() !== fileName) {
|
||||
throw new Error(`svg filename "${fileName}" must be all lowercase`);
|
||||
}
|
||||
|
||||
// srcFilePath: /src/svg/airplane-outline.svg
|
||||
const srcFilePath = join(srcSvgDir, fileName);
|
||||
// srcFilePath: /src/svg/airplane-outline.svg
|
||||
const srcFilePath = join(srcSvgDir, fileName);
|
||||
|
||||
// optimizedFilePath: /dist/ionicons/svg/airplane-outline.svg
|
||||
const optimizedFilePath = join(optimizedSvgDir, fileName);
|
||||
// srcFilePath: /src/svg/airplane-outline.svg
|
||||
const distSvgFilePath = join(distSvgDir, fileName);
|
||||
|
||||
const dotSplit = fileName.split('.');
|
||||
if (dotSplit.length > 2) {
|
||||
throw new Error(`svg filename "${fileName}" cannot contain more than one period`);
|
||||
}
|
||||
// optimizedFilePath: /dist/ionicons/svg/airplane-outline.svg
|
||||
const optimizedFilePath = join(optimizedSvgDir, fileName);
|
||||
|
||||
// iconName: airplane-outline
|
||||
const iconName = dotSplit[0];
|
||||
const dotSplit = fileName.split('.');
|
||||
if (dotSplit.length > 2) {
|
||||
throw new Error(`svg filename "${fileName}" cannot contain more than one period`);
|
||||
}
|
||||
|
||||
if (reservedKeywords.has(iconName)) {
|
||||
throw new Error(`svg icon name "${iconName}" is a reserved JavaScript keyword`);
|
||||
}
|
||||
// iconName: airplane-outline
|
||||
const iconName = dotSplit[0];
|
||||
|
||||
// fileNameMjs: airplane-outline.mjs
|
||||
const fileNameMjs = iconName + '.mjs';
|
||||
if (reservedKeywords.has(iconName)) {
|
||||
throw new Error(`svg icon name "${iconName}" is a reserved JavaScript keyword`);
|
||||
}
|
||||
|
||||
// fileNameCjs: airplane-outline.mjs
|
||||
const fileNameCjs = iconName + '.js';
|
||||
// fileNameMjs: airplane-outline.mjs
|
||||
const fileNameMjs = iconName + '.mjs';
|
||||
|
||||
// exportName: airplaneOutline
|
||||
const exportName = camelize(iconName);
|
||||
// fileNameCjs: airplane-outline.mjs
|
||||
const fileNameCjs = iconName + '.js';
|
||||
|
||||
return {
|
||||
fileName,
|
||||
srcFilePath,
|
||||
srcSvgContent: (await fs.readFile(srcFilePath, 'utf8')),
|
||||
optimizedFilePath,
|
||||
optimizedSvgContent: null,
|
||||
iconName,
|
||||
fileNameMjs,
|
||||
fileNameCjs,
|
||||
exportName,
|
||||
}
|
||||
}));
|
||||
// exportName: airplaneOutline
|
||||
const exportName = camelize(iconName);
|
||||
|
||||
const title = toTitleCase(
|
||||
fileName.replace('.svg', '').replace('-outline', '').replace('-sharp', '').replace(/-/g, ' '),
|
||||
);
|
||||
|
||||
return {
|
||||
fileName,
|
||||
title,
|
||||
srcFilePath,
|
||||
distSvgFilePath,
|
||||
srcSvgContent: await fs.readFile(srcFilePath, 'utf8'),
|
||||
optimizedFilePath,
|
||||
optimizedSvgContent: null,
|
||||
iconName,
|
||||
fileNameMjs,
|
||||
fileNameCjs,
|
||||
exportName,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
||||
return svgData.sort((a, b) => {
|
||||
if (a.exportName < b.exportName) return -1;
|
||||
@@ -309,7 +342,6 @@ async function getSvgs(srcSvgDir: string, rootDir: string, distIoniconsDir: stri
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async function createIconPackage(version: string, iconDir: string, srcSvgData: SvgData[]) {
|
||||
const iconPkgJsonFilePath = join(iconDir, 'package.json');
|
||||
|
||||
@@ -320,64 +352,54 @@ async function createIconPackage(version: string, iconDir: string, srcSvgData: S
|
||||
]);
|
||||
|
||||
const iconPkgJson = {
|
||||
name: "ionicons/icons",
|
||||
name: 'ionicons/icons',
|
||||
version,
|
||||
module: "index.mjs",
|
||||
main: "index.js",
|
||||
typings: "index.d.ts",
|
||||
private: true
|
||||
module: 'index.mjs',
|
||||
main: 'index.js',
|
||||
typings: 'index.d.ts',
|
||||
private: true,
|
||||
};
|
||||
|
||||
const jsonStr = JSON.stringify(iconPkgJson, null, 2) + '\n';
|
||||
await fs.writeFile(iconPkgJsonFilePath, jsonStr);
|
||||
}
|
||||
|
||||
|
||||
async function createEsmIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
|
||||
const iconEsmFilePath = join(iconDir, 'index.mjs');
|
||||
|
||||
const o = [
|
||||
`/* Ionicons v${version}, ES Modules */`, ``
|
||||
];
|
||||
const o = [`/* Ionicons v${version}, ES Modules */`, ``];
|
||||
|
||||
srcSvgData.forEach(svgData => {
|
||||
srcSvgData.forEach((svgData) => {
|
||||
o.push(`export const ${svgData.exportName} = ${getDataUrl(svgData)}`);
|
||||
});
|
||||
|
||||
await fs.writeFile(iconEsmFilePath, o.join('\n') + '\n');
|
||||
}
|
||||
|
||||
|
||||
async function createCjsIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
|
||||
const iconCjsFilePath = join(iconDir, 'index.js');
|
||||
|
||||
const o = [
|
||||
`/* Ionicons v${version}, CommonJS */`, ``
|
||||
];
|
||||
const o = [`/* Ionicons v${version}, CommonJS */`, ``];
|
||||
|
||||
srcSvgData.forEach(svgData => {
|
||||
srcSvgData.forEach((svgData) => {
|
||||
o.push(`exports.${svgData.exportName} = ${getDataUrl(svgData)}`);
|
||||
});
|
||||
|
||||
await fs.writeFile(iconCjsFilePath, o.join('\n') + '\n');
|
||||
}
|
||||
|
||||
|
||||
async function createDtsIcons(version: string, iconDir: string, srcSvgData: SvgData[]) {
|
||||
const iconDtsFilePath = join(iconDir, 'index.d.ts');
|
||||
|
||||
const o = [
|
||||
`/* Ionicons v${version}, Types */`, ``
|
||||
];
|
||||
const o = [`/* Ionicons v${version}, Types */`, ``];
|
||||
|
||||
srcSvgData.forEach(svgData => {
|
||||
srcSvgData.forEach((svgData) => {
|
||||
o.push(`export declare var ${svgData.exportName}: string;`);
|
||||
});
|
||||
|
||||
await fs.writeFile(iconDtsFilePath, o.join('\n') + '\n');
|
||||
}
|
||||
|
||||
|
||||
function getDataUrl(svgData: SvgData) {
|
||||
let svg = svgData.optimizedSvgContent;
|
||||
if (svg.includes(`'`)) {
|
||||
@@ -390,7 +412,6 @@ function getDataUrl(svgData: SvgData) {
|
||||
return `"data:image/svg+xml;utf8,${svg}"`;
|
||||
}
|
||||
|
||||
|
||||
async function createDataJson(version: string, srcDir: string, distDir: string, srcSvgData: SvgData[]) {
|
||||
const srcDataJsonPath = join(srcDir, 'data.json');
|
||||
const distDataJsonPath = join(distDir, 'ionicons.json');
|
||||
@@ -406,26 +427,26 @@ async function createDataJson(version: string, srcDir: string, distDir: string,
|
||||
data.icons = data.icons || [];
|
||||
|
||||
// add new icons
|
||||
srcSvgData.forEach(svgData => {
|
||||
if (!data.icons.some(i => i.name === svgData.iconName)) {
|
||||
srcSvgData.forEach((svgData) => {
|
||||
if (!data.icons.some((i) => i.name === svgData.iconName)) {
|
||||
data.icons.push({
|
||||
name: svgData.iconName
|
||||
name: svgData.iconName,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// remove dead icons
|
||||
data.icons = data.icons.filter(dataIcon => {
|
||||
return srcSvgData.some(svgData => dataIcon.name === svgData.iconName);
|
||||
data.icons = data.icons.filter((dataIcon) => {
|
||||
return srcSvgData.some((svgData) => dataIcon.name === svgData.iconName);
|
||||
});
|
||||
|
||||
// sort
|
||||
data.icons = data.icons.sort((a, b) => {
|
||||
if (a.name < b.name) return -1;
|
||||
if (a.name > b.name) return 1;
|
||||
return 0
|
||||
return 0;
|
||||
});
|
||||
data.icons.forEach(icon => {
|
||||
data.icons.forEach((icon) => {
|
||||
icon.tags = icon.tags || icon.name.split('-');
|
||||
icon.tags = icon.tags.sort();
|
||||
});
|
||||
@@ -436,30 +457,32 @@ async function createDataJson(version: string, srcDir: string, distDir: string,
|
||||
const distJsonData = {
|
||||
name: 'ionicons',
|
||||
version,
|
||||
icons: data.icons
|
||||
icons: data.icons,
|
||||
};
|
||||
const distJsonStr = JSON.stringify(distJsonData, null, 2) + '\n';
|
||||
await fs.writeFile(distDataJsonPath, distJsonStr);
|
||||
}
|
||||
|
||||
|
||||
function camelize(text: string) {
|
||||
let words = text.split(/[-_]/g); // ok one simple regexp.
|
||||
return words[0].toLowerCase() + words.slice(1).map(upFirst).join('');
|
||||
}
|
||||
|
||||
|
||||
function upFirst(word: string) {
|
||||
return word[0].toUpperCase() + word.toLowerCase().slice(1);
|
||||
}
|
||||
|
||||
|
||||
interface SvgData {
|
||||
/**
|
||||
* airplane-outline.svg
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* airplane
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* /src/svg/airplane-outline.svg
|
||||
*/
|
||||
@@ -470,7 +493,11 @@ interface SvgData {
|
||||
*/
|
||||
optimizedFilePath: string;
|
||||
|
||||
srcSvgContent: string;
|
||||
/**
|
||||
* /dist/svg/airplane-outline.svg
|
||||
*/
|
||||
distSvgFilePath: string;
|
||||
|
||||
optimizedSvgContent: string;
|
||||
|
||||
/**
|
||||
@@ -495,10 +522,18 @@ interface SvgData {
|
||||
}
|
||||
|
||||
interface JsonData {
|
||||
icons: { name: string; tags?: string[]; } [];
|
||||
icons: { name: string; tags?: string[] }[];
|
||||
version?: string;
|
||||
}
|
||||
|
||||
function toTitleCase(str: string) {
|
||||
const s = str.trim().toLowerCase().split(' ');
|
||||
for (var i = 0; i < s.length; i++) {
|
||||
s[i] = s[i].charAt(0).toUpperCase() + s[i].slice(1);
|
||||
}
|
||||
return s.join(' ');
|
||||
}
|
||||
|
||||
// https://mathiasbynens.be/notes/reserved-keywords
|
||||
const reservedKeywords = new Set([
|
||||
'do',
|
||||
@@ -549,8 +584,8 @@ const reservedKeywords = new Set([
|
||||
'protected',
|
||||
'implements',
|
||||
'instanceof',
|
||||
'constructor',
|
||||
]);
|
||||
|
||||
|
||||
// let's do this
|
||||
build(join(__dirname, '..'));
|
||||
|
||||
@@ -23,6 +23,13 @@
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import fs from 'fs-extra';
|
||||
import { join } from 'path';
|
||||
|
||||
|
||||
async function collectionCopy(rootDir: string) {
|
||||
// move optimized svgs to correct collection location
|
||||
const optimizedSrc = join(rootDir, 'dist', 'ionicons', 'svg');
|
||||
@@ -10,6 +9,48 @@ async function collectionCopy(rootDir: string) {
|
||||
|
||||
// we don't to copy the src svgs to collection
|
||||
await fs.remove(join(rootDir, 'dist', 'collection', 'svg'));
|
||||
// We don't want to copy the test svg assets to collection
|
||||
await fs.remove(join(rootDir, 'dist', 'collection', 'components', 'test'));
|
||||
|
||||
const cePackageDir = join(rootDir, 'components');
|
||||
const cePackageJsonPath = join(cePackageDir, 'package.json');
|
||||
const ceCjsPath = join(cePackageDir, 'index.cjs.js');
|
||||
|
||||
const emptyCjs = `/*empty cjs*/`;
|
||||
await fs.writeFile(ceCjsPath, emptyCjs);
|
||||
|
||||
const cePackageJson = {
|
||||
name: 'ionicons/components',
|
||||
description: 'Ionicons custom element.',
|
||||
main: './index.cjs.js',
|
||||
module: './index.js',
|
||||
types: './index.d.ts',
|
||||
private: true,
|
||||
};
|
||||
await fs.writeFile(cePackageJsonPath, JSON.stringify(cePackageJson, null, 2));
|
||||
|
||||
/**
|
||||
* TODO: Remove this in Ionicons v6.0
|
||||
* Stencil 2 removed the legacy loader,
|
||||
* but that is what Ionicons users were using
|
||||
* to load Ionicons from a CDN. The lines
|
||||
* below will add in a legacy loader for users
|
||||
* to use so there is no breaking change in usage.
|
||||
*/
|
||||
const installLoaderSrc = join(rootDir, 'scripts', 'install-loader.js');
|
||||
const installLoaderDest = join(rootDir, 'dist', 'ionicons.js');
|
||||
await fs.copyFile(installLoaderSrc, installLoaderDest)
|
||||
|
||||
// this is temporary!!!!
|
||||
// removing the `type` from the d.ts export
|
||||
// to make it easier for users migrating between
|
||||
// of older versions of angular and typescript
|
||||
// to the newer verisons, where the `type` keyword
|
||||
// is used. This is a megahack, no doubt.
|
||||
const typesDist = join(rootDir, 'dist', 'types', 'index.d.ts');
|
||||
let types = await fs.readFile(typesDist, 'utf8');
|
||||
types = types.replace('export type', 'export');
|
||||
await fs.writeFile(typesDist, types);
|
||||
}
|
||||
|
||||
collectionCopy(join(__dirname, '..'));
|
||||
collectionCopy(join(__dirname, '..'));
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
(function(doc){
|
||||
var scriptElm = doc.scripts[doc.scripts.length - 1];
|
||||
var warn = ['[ionicons] Deprecated script, please remove: ' + scriptElm.outerHTML];
|
||||
|
||||
warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:')
|
||||
|
||||
var parts = scriptElm.src.split('/');
|
||||
parts.pop();
|
||||
parts.push('ionicons');
|
||||
var url = parts.join('/');
|
||||
|
||||
var scriptElm = doc.createElement('script');
|
||||
scriptElm.setAttribute('type', 'module');
|
||||
scriptElm.src = url + '/ionicons.esm.js';
|
||||
warn.push(scriptElm.outerHTML);
|
||||
scriptElm.setAttribute('data-stencil-namespace', 'ionicons');
|
||||
doc.head.appendChild(scriptElm);
|
||||
|
||||
|
||||
scriptElm = doc.createElement('script');
|
||||
scriptElm.setAttribute('nomodule', '');
|
||||
scriptElm.src = url + '/ionicons.js';
|
||||
warn.push(scriptElm.outerHTML);
|
||||
scriptElm.setAttribute('data-stencil-namespace', 'ionicons');
|
||||
doc.head.appendChild(scriptElm)
|
||||
|
||||
console.warn(warn.join('\n'));
|
||||
|
||||
})(document);
|
||||
@@ -1,285 +0,0 @@
|
||||
import fs from 'fs-extra';
|
||||
import {join} from 'path';
|
||||
import execa from 'execa';
|
||||
import inquirer from 'inquirer';
|
||||
import Listr, { ListrTask } from 'listr';
|
||||
import semver from 'semver';
|
||||
|
||||
|
||||
const rootDir = join(__dirname, '..');
|
||||
const packageJsonPath = join(rootDir, 'package.json');
|
||||
const packageLockJsonPath = join(rootDir, 'package-lock.json');
|
||||
|
||||
const cmdArgs = process.argv.slice(2);
|
||||
const isPublishRelease = cmdArgs.includes('--publish');
|
||||
const isDryRun = cmdArgs.includes('--dry-run');
|
||||
const isAnyBranch = cmdArgs.includes('--any-branch');
|
||||
const isYolo = cmdArgs.includes('--yolo');
|
||||
|
||||
function runTasks(newVersion: string, releaseTag: string, isPublishRelease: boolean) {
|
||||
const pkg = readPkg();
|
||||
const tasks: ListrTask[] = [];
|
||||
|
||||
tasks.push(
|
||||
{
|
||||
title: 'Check current branch',
|
||||
task: () => execa('git', ['symbolic-ref', '--short', 'HEAD']).then(({stdout}) => {
|
||||
if (stdout !== 'master') {
|
||||
if (isAnyBranch) {
|
||||
console.log(`Not on "master" branch, currently on "${stdout}".`);
|
||||
} else {
|
||||
throw new Error(`Not on "master" branch, currently on "${stdout}". Use --any-branch to publish anyway.`);
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
{
|
||||
title: 'Check local working tree',
|
||||
task: () => execa('git', ['status', '--porcelain']).then(({stdout}) => {
|
||||
if (stdout !== '') {
|
||||
if (isYolo) {
|
||||
console.log('Unclean working tree.');
|
||||
} else {
|
||||
throw new Error('Unclean working tree. Commit or stash changes first.');
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
{
|
||||
title: 'Check remote history',
|
||||
task: () => execa('git', ['rev-list', '--count', '--left-only', '@{u}...HEAD']).then(({stdout}) => {
|
||||
if (stdout !== '0') {
|
||||
if (isAnyBranch) {
|
||||
console.log('Remote history differs.');
|
||||
} else {
|
||||
throw new Error('Remote history differs. Please pull changes.');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
if (!isPublishRelease) {
|
||||
tasks.push(
|
||||
{
|
||||
title: `Set package.json version to ${newVersion}`,
|
||||
task: () => {
|
||||
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
||||
packageJson.version = newVersion;
|
||||
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
|
||||
|
||||
const packageLockJson = JSON.parse(fs.readFileSync(packageLockJsonPath, 'utf8'));
|
||||
packageLockJson.version = newVersion;
|
||||
fs.writeFileSync(packageLockJsonPath, JSON.stringify(packageLockJson, null, 2) + '\n');
|
||||
}
|
||||
},
|
||||
{
|
||||
title: `Build`,
|
||||
task: () => execa('npm', ['run', 'build'], { cwd: rootDir })
|
||||
},
|
||||
{
|
||||
title: 'Run tests',
|
||||
task: () => execa('npm', ['test'], { cwd: rootDir })
|
||||
},
|
||||
{
|
||||
title: `Generate Changelog`,
|
||||
task: () => execa('npm', ['run', 'changelog'], { cwd: rootDir }),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
if (isPublishRelease) {
|
||||
tasks.push(
|
||||
{
|
||||
title: `Publish ionicons ${newVersion} (${releaseTag})`,
|
||||
task: () => {
|
||||
const args = ['publish'].concat(releaseTag ? ['--tag', releaseTag] : []);
|
||||
if (isDryRun) {
|
||||
console.log('[dry-run] npm', args.join(' '));
|
||||
} else {
|
||||
return execa('npm', args, { cwd: rootDir });
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Tagging the latest commit',
|
||||
task: () => {
|
||||
const args = ['tag', `v${newVersion}`];
|
||||
if (isDryRun) {
|
||||
console.log('[dry-run] git', args.join(' '));
|
||||
} else {
|
||||
return execa('git', args, { cwd: rootDir });
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Pushing to Github',
|
||||
task: () => {
|
||||
const args = ['push', '--follow-tags'];
|
||||
if (isDryRun) {
|
||||
console.log('[dry-run] git', args.join(' '));
|
||||
} else {
|
||||
return execa('git', args, { cwd: rootDir });
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const listr = new Listr(tasks);
|
||||
|
||||
listr.run()
|
||||
.then(() => {
|
||||
if (isPublishRelease) {
|
||||
console.log(`\n ${pkg.name} ${newVersion} published!! 🎉\n`);
|
||||
} else {
|
||||
console.log(`\n ${pkg.name} ${newVersion} prepared, check the diffs and commit 🕵️\n`);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async function prepareUI() {
|
||||
const pkg = readPkg();
|
||||
const oldVersion = pkg.version;
|
||||
|
||||
console.log(`\nPrepare to publish ${pkg.name} (currently ${oldVersion}) ${isDryRun ? '[dry-run]' : ''}\n`);
|
||||
|
||||
const prompts = [
|
||||
{
|
||||
type: 'list',
|
||||
name: 'version',
|
||||
message: 'Select semver increment or specify new version',
|
||||
pageSize: SEMVER_INCREMENTS.length + 2,
|
||||
choices: SEMVER_INCREMENTS
|
||||
.map(inc => ({
|
||||
name: `${inc} ${prettyVersionDiff(oldVersion, inc)}`,
|
||||
value: inc
|
||||
})),
|
||||
filter: (input: any) => isValidVersionInput(input) ? getNewVersion(oldVersion, input) : input
|
||||
},
|
||||
{
|
||||
type: 'confirm',
|
||||
name: 'confirm',
|
||||
message: (answers: any) => {
|
||||
return `Prepare release ${answers.version}. Continue?`;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
await inquirer
|
||||
.prompt(prompts)
|
||||
.then(answers => {
|
||||
if (answers.confirm){
|
||||
const newVersion = answers.version;
|
||||
return runTasks(newVersion, null, false);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async function publishUI() {
|
||||
const pkg = readPkg();
|
||||
|
||||
console.log(`\nPublish ${pkg.name} ${pkg.version} ${isDryRun ? '[dry-run]' : ''}\n`);
|
||||
|
||||
const prompts = [
|
||||
{
|
||||
type: 'list',
|
||||
name: 'tag',
|
||||
message: 'How should this release version be tagged in npm?',
|
||||
choices: () => execa('npm', ['view', '--json', pkg.name, 'dist-tags'])
|
||||
.then(({stdout}) => {
|
||||
return Object.keys(JSON.parse(stdout))
|
||||
.map(tag => {
|
||||
return {
|
||||
name: tag,
|
||||
value: tag
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
{
|
||||
type: 'confirm',
|
||||
name: 'confirm',
|
||||
message: (answers: any) => {
|
||||
return `Will publish ${pkg.name} ${pkg.version} and tag this release as "${answers.tag}". Continue?`;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
await inquirer
|
||||
.prompt(prompts)
|
||||
.then(answers => {
|
||||
if (answers.confirm){
|
||||
return runTasks(pkg.version, answers.tag, true);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const SEMVER_INCREMENTS = ['patch', 'minor', 'major', 'prepatch', 'preminor', 'premajor', 'prerelease'];
|
||||
const PRERELEASE_VERSIONS = ['prepatch', 'preminor', 'premajor', 'prerelease'];
|
||||
|
||||
const isValidVersion = (input: string) => Boolean(semver.valid(input));
|
||||
|
||||
const isValidVersionInput = (input: string) => SEMVER_INCREMENTS.indexOf(input) !== -1 || isValidVersion(input);
|
||||
|
||||
const isPrereleaseVersion = (version: string) => PRERELEASE_VERSIONS.indexOf(version) !== -1 || Boolean(semver.prerelease(version));
|
||||
|
||||
function getNewVersion(oldVersion: string, input: any): string {
|
||||
if (!isValidVersionInput(input)) {
|
||||
throw new Error(`Version should be either ${SEMVER_INCREMENTS.join(', ')} or a valid semver version.`);
|
||||
}
|
||||
|
||||
return SEMVER_INCREMENTS.indexOf(input) === -1 ? input : semver.inc(oldVersion, input);
|
||||
};
|
||||
|
||||
const readPkg = (): any => JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
||||
|
||||
function prettyVersionDiff(oldVersion: any, inc: any) {
|
||||
const newVersion = getNewVersion(oldVersion, inc).split('.');
|
||||
oldVersion = oldVersion.split('.');
|
||||
let firstVersionChange = false;
|
||||
const output = [];
|
||||
|
||||
for (let i = 0; i < newVersion.length; i++) {
|
||||
if ((newVersion[i] !== oldVersion[i] && !firstVersionChange)) {
|
||||
output.push(newVersion[i]);
|
||||
firstVersionChange = true;
|
||||
} else if (newVersion[i].indexOf('-') >= 1) {
|
||||
let preVersion = [];
|
||||
preVersion = newVersion[i].split('-');
|
||||
output.push(`${preVersion[0]}-${preVersion[1]}`);
|
||||
} else {
|
||||
output.push(newVersion[i]);
|
||||
}
|
||||
}
|
||||
return output.join('.');
|
||||
}
|
||||
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
if (isPublishRelease) {
|
||||
await publishUI();
|
||||
} else {
|
||||
await prepareUI();
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
}
|
||||
})();
|
||||
@@ -2,6 +2,6 @@
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"module": "commonjs",
|
||||
"target": "esnext"
|
||||
"target": "es2017"
|
||||
}
|
||||
}
|
||||
@@ -4,135 +4,124 @@
|
||||
* This is an autogenerated file created by the Stencil compiler.
|
||||
* It contains typing information for all components that exist in this project.
|
||||
*/
|
||||
|
||||
|
||||
import { HTMLStencilElement, JSXBase } from '@stencil/core/internal';
|
||||
|
||||
|
||||
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
|
||||
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;
|
||||
/**
|
||||
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
||||
*/
|
||||
'flipRtl'?: boolean;
|
||||
/**
|
||||
* 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'?: any;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
'mode': 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 IonIcon {
|
||||
/**
|
||||
* The color to use for the background of the item.
|
||||
*/
|
||||
"color"?: string;
|
||||
/**
|
||||
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
||||
*/
|
||||
"flipRtl"?: boolean;
|
||||
/**
|
||||
* 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"?: any;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
"mode": string;
|
||||
/**
|
||||
* Specifies which icon to use from the built-in set of icons.
|
||||
*/
|
||||
"name"?: string;
|
||||
/**
|
||||
* When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`.
|
||||
* @default true
|
||||
*/
|
||||
"sanitize": boolean;
|
||||
/**
|
||||
* 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 HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {}
|
||||
var HTMLIonIconElement: {
|
||||
prototype: HTMLIonIconElement;
|
||||
new (): HTMLIonIconElement;
|
||||
};
|
||||
interface HTMLElementTagNameMap {
|
||||
'ion-icon': HTMLIonIconElement;
|
||||
}
|
||||
interface HTMLIonIconElement extends Components.IonIcon, HTMLStencilElement {
|
||||
}
|
||||
var HTMLIonIconElement: {
|
||||
prototype: HTMLIonIconElement;
|
||||
new (): HTMLIonIconElement;
|
||||
};
|
||||
interface HTMLElementTagNameMap {
|
||||
"ion-icon": HTMLIonIconElement;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace LocalJSX {
|
||||
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;
|
||||
/**
|
||||
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
||||
*/
|
||||
'flipRtl'?: boolean;
|
||||
/**
|
||||
* 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'?: any;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
'mode'?: 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 IntrinsicElements {
|
||||
'ion-icon': IonIcon;
|
||||
}
|
||||
interface IonIcon {
|
||||
/**
|
||||
* The color to use for the background of the item.
|
||||
*/
|
||||
"color"?: string;
|
||||
/**
|
||||
* Specifies whether the icon should horizontally flip when `dir` is `"rtl"`.
|
||||
*/
|
||||
"flipRtl"?: boolean;
|
||||
/**
|
||||
* 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"?: any;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
"mode"?: string;
|
||||
/**
|
||||
* Specifies which icon to use from the built-in set of icons.
|
||||
*/
|
||||
"name"?: string;
|
||||
/**
|
||||
* When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`.
|
||||
* @default true
|
||||
*/
|
||||
"sanitize"?: boolean;
|
||||
/**
|
||||
* 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 IntrinsicElements {
|
||||
"ion-icon": IonIcon;
|
||||
}
|
||||
}
|
||||
|
||||
export { LocalJSX as JSX };
|
||||
|
||||
|
||||
declare module "@stencil/core" {
|
||||
export namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
'ion-icon': LocalJSX.IonIcon & JSXBase.HTMLAttributes<HTMLIonIconElement>;
|
||||
export namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"ion-icon": LocalJSX.IonIcon & JSXBase.HTMLAttributes<HTMLIonIconElement>;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,21 +1,25 @@
|
||||
import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';
|
||||
import { getSvgContent, ioniconContent } from './request';
|
||||
import { getName, getUrl } from './utils';
|
||||
import { getName, getUrl, inheritAttributes, isRTL } from './utils';
|
||||
|
||||
let parser: DOMParser;
|
||||
|
||||
@Component({
|
||||
tag: 'ion-icon',
|
||||
assetsDir: 'svg',
|
||||
assetsDirs: ['svg'],
|
||||
styleUrl: 'icon.css',
|
||||
shadow: true
|
||||
shadow: true,
|
||||
})
|
||||
export class Icon {
|
||||
private io?: IntersectionObserver;
|
||||
private iconName: string | null = null;
|
||||
private inheritedAttributes: { [k: string]: any } = {};
|
||||
|
||||
@Element() el!: HTMLElement;
|
||||
|
||||
@State() private svgContent?: string;
|
||||
@State() private isVisible = false;
|
||||
@State() private ariaLabel?: string;
|
||||
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
@@ -27,11 +31,6 @@ export class Icon {
|
||||
*/
|
||||
@Prop() color?: string;
|
||||
|
||||
/**
|
||||
* Specifies the label to use for accessibility. Defaults to the icon name.
|
||||
*/
|
||||
@Prop({ mutable: true, reflectToAttr: true }) ariaLabel?: string;
|
||||
|
||||
/**
|
||||
* Specifies which icon to use on `ios` mode.
|
||||
*/
|
||||
@@ -50,7 +49,7 @@ export class Icon {
|
||||
/**
|
||||
* Specifies which icon to use from the built-in set of icons.
|
||||
*/
|
||||
@Prop() name?: string;
|
||||
@Prop({ reflect: true }) name?: string;
|
||||
|
||||
/**
|
||||
* Specifies the exact `src` of an SVG file to use.
|
||||
@@ -76,6 +75,18 @@ export class Icon {
|
||||
*/
|
||||
@Prop() lazy = false;
|
||||
|
||||
/**
|
||||
* When set to `false`, SVG content that is HTTP fetched will not be checked
|
||||
* if the response SVG content has any `<script>` elements, or any attributes
|
||||
* that start with `on`, such as `onclick`.
|
||||
* @default true
|
||||
*/
|
||||
@Prop() sanitize = true;
|
||||
|
||||
componentWillLoad() {
|
||||
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
// purposely do not return the promise here because loading
|
||||
// the svg file should not hold up loading the app
|
||||
@@ -95,78 +106,121 @@ export class Icon {
|
||||
|
||||
private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {
|
||||
if (Build.isBrowser && this.lazy && typeof window !== 'undefined' && (window as any).IntersectionObserver) {
|
||||
const io = this.io = new (window as any).IntersectionObserver((data: IntersectionObserverEntry[]) => {
|
||||
if (data[0].isIntersecting) {
|
||||
io.disconnect();
|
||||
this.io = undefined;
|
||||
cb();
|
||||
}
|
||||
}, { rootMargin });
|
||||
const io = (this.io = new (window as any).IntersectionObserver(
|
||||
(data: IntersectionObserverEntry[]) => {
|
||||
if (data[0].isIntersecting) {
|
||||
io.disconnect();
|
||||
this.io = undefined;
|
||||
cb();
|
||||
}
|
||||
},
|
||||
{ rootMargin },
|
||||
));
|
||||
|
||||
io.observe(el);
|
||||
|
||||
} else {
|
||||
// browser doesn't support IntersectionObserver
|
||||
// so just fallback to always show it
|
||||
cb();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private hasAriaHidden = () => {
|
||||
const { el } = this;
|
||||
|
||||
return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
|
||||
}
|
||||
|
||||
@Watch('name')
|
||||
@Watch('src')
|
||||
@Watch('icon')
|
||||
loadIcon() {
|
||||
if (Build.isBrowser && this.isVisible) {
|
||||
if (!parser) {
|
||||
/**
|
||||
* Create an instance of the DOM parser. This creates a single
|
||||
* parser instance for the entire app, which is more efficient.
|
||||
*/
|
||||
parser = new DOMParser();
|
||||
}
|
||||
const url = getUrl(this);
|
||||
|
||||
if (url) {
|
||||
if (ioniconContent.has(url)) {
|
||||
// sync if it's already loaded
|
||||
this.svgContent = ioniconContent.get(url);
|
||||
} else if (url.startsWith('data:')) {
|
||||
const doc = parser.parseFromString(url, 'text/html');
|
||||
const svgEl = doc.body.querySelector('svg');
|
||||
if (svgEl !== null) {
|
||||
this.svgContent = svgEl.outerHTML;
|
||||
} else {
|
||||
this.svgContent = '';
|
||||
}
|
||||
} else {
|
||||
// async if it hasn't been loaded
|
||||
getSvgContent(url).then(() => this.svgContent = ioniconContent.get(url));
|
||||
getSvgContent(url, this.sanitize).then(() => (this.svgContent = ioniconContent.get(url)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.ariaLabel) {
|
||||
const label = getName(this.name, this.icon, this.mode, this.ios, this.md);
|
||||
// user did not provide a label
|
||||
// come up with the label based on the icon name
|
||||
if (label) {
|
||||
this.ariaLabel = label.replace(/\-/g, ' ');
|
||||
}
|
||||
const label = this.iconName = getName(this.name, this.icon, this.mode, this.ios, this.md);
|
||||
|
||||
/**
|
||||
* Come up with a default label
|
||||
* in case user does not provide their own.
|
||||
*/
|
||||
if (label) {
|
||||
this.ariaLabel = label.replace(/\-/g, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { iconName, ariaLabel, el, inheritedAttributes } = this;
|
||||
const mode = this.mode || 'md';
|
||||
const flipRtl = this.flipRtl || (this.ariaLabel && (this.ariaLabel.indexOf('arrow') > -1 || this.ariaLabel.indexOf('chevron') > -1) && this.flipRtl !== false);
|
||||
const flipRtl =
|
||||
this.flipRtl ||
|
||||
(iconName &&
|
||||
(iconName.indexOf('arrow') > -1 || iconName.indexOf('chevron') > -1) &&
|
||||
this.flipRtl !== false);
|
||||
|
||||
/**
|
||||
* Only set the aria-label if a) we have generated
|
||||
* one for the icon and if aria-hidden is not set to "true".
|
||||
* If developer wants to set their own aria-label, then
|
||||
* inheritedAttributes down below will override whatever
|
||||
* default label we have set.
|
||||
*/
|
||||
return (
|
||||
<Host role="img" class={{
|
||||
[mode]: true,
|
||||
...createColorClasses(this.color),
|
||||
[`icon-${this.size}`]: !!this.size,
|
||||
'flip-rtl': !!flipRtl && (this.el.ownerDocument as Document).dir === 'rtl'
|
||||
}}>{(
|
||||
(Build.isBrowser && this.svgContent)
|
||||
? <div class="icon-inner" innerHTML={this.svgContent}></div>
|
||||
: <div class="icon-inner"></div>
|
||||
<Host
|
||||
aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null}
|
||||
role="img"
|
||||
class={{
|
||||
[mode]: true,
|
||||
...createColorClasses(this.color),
|
||||
[`icon-${this.size}`]: !!this.size,
|
||||
'flip-rtl': !!flipRtl && isRTL(el),
|
||||
}}
|
||||
{...inheritedAttributes}
|
||||
>
|
||||
{Build.isBrowser && this.svgContent ? (
|
||||
<div class="icon-inner" innerHTML={this.svgContent}></div>
|
||||
) : (
|
||||
<div class="icon-inner"></div>
|
||||
)}
|
||||
</Host>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const getIonMode = () => (Build.isBrowser && document.documentElement.getAttribute('mode')) || 'md';
|
||||
|
||||
const getIonMode = () =>
|
||||
(Build.isBrowser && typeof document !== 'undefined' && document.documentElement.getAttribute('mode')) || 'md';
|
||||
|
||||
const createColorClasses = (color: string | undefined) => {
|
||||
return (color) ? {
|
||||
'ion-color': true,
|
||||
[`ion-color-${color}`]: true
|
||||
} : null;
|
||||
return color
|
||||
? {
|
||||
'ion-color': true,
|
||||
[`ion-color-${color}`]: true,
|
||||
}
|
||||
: null;
|
||||
};
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------- | -------------- |
|
||||
| `ariaLabel` | `aria-label` | Specifies the label to use for accessibility. Defaults to the icon name. | `string \| undefined` | `undefined` |
|
||||
| `color` | `color` | The color to use for the background of the item. | `string \| undefined` | `undefined` |
|
||||
| `flipRtl` | `flip-rtl` | Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. | `boolean \| undefined` | `undefined` |
|
||||
| `icon` | `icon` | 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. | `any` | `undefined` |
|
||||
| `ios` | `ios` | Specifies which icon to use on `ios` mode. | `string \| undefined` | `undefined` |
|
||||
| `lazy` | `lazy` | If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. | `boolean` | `false` |
|
||||
| `md` | `md` | Specifies which icon to use on `md` mode. | `string \| undefined` | `undefined` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. | `string` | `getIonMode()` |
|
||||
| `name` | `name` | Specifies which icon to use from the built-in set of icons. | `string \| undefined` | `undefined` |
|
||||
| `size` | `size` | The size of the icon. Available options are: `"small"` and `"large"`. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | Specifies the exact `src` of an SVG file to use. | `string \| undefined` | `undefined` |
|
||||
| Property | Attribute | Description | Type | Default |
|
||||
| ---------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------------- |
|
||||
| `color` | `color` | The color to use for the background of the item. | `string \| undefined` | `undefined` |
|
||||
| `flipRtl` | `flip-rtl` | Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. | `boolean \| undefined` | `undefined` |
|
||||
| `icon` | `icon` | 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. | `any` | `undefined` |
|
||||
| `ios` | `ios` | Specifies which icon to use on `ios` mode. | `string \| undefined` | `undefined` |
|
||||
| `lazy` | `lazy` | If enabled, ion-icon will be loaded lazily when it's visible in the viewport. Default, `false`. | `boolean` | `false` |
|
||||
| `md` | `md` | Specifies which icon to use on `md` mode. | `string \| undefined` | `undefined` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. | `string` | `getIonMode()` |
|
||||
| `name` | `name` | Specifies which icon to use from the built-in set of icons. | `string \| undefined` | `undefined` |
|
||||
| `sanitize` | `sanitize` | When set to `false`, SVG content that is HTTP fetched will not be checked if the response SVG content has any `<script>` elements, or any attributes that start with `on`, such as `onclick`. | `boolean` | `true` |
|
||||
| `size` | `size` | The size of the icon. Available options are: `"small"` and `"large"`. | `string \| undefined` | `undefined` |
|
||||
| `src` | `src` | Specifies the exact `src` of an SVG file to use. | `string \| undefined` | `undefined` |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
@@ -1,27 +1,34 @@
|
||||
import { validateContent } from './validate';
|
||||
|
||||
|
||||
export const ioniconContent = new Map<string, string>();
|
||||
const requests = new Map<string, Promise<any>>();
|
||||
|
||||
|
||||
export const getSvgContent = (url: string) => {
|
||||
export const getSvgContent = (url: string, sanitize: boolean) => {
|
||||
// see if we already have a request for this url
|
||||
let req = requests.get(url);
|
||||
|
||||
if (!req) {
|
||||
// we don't already have a request
|
||||
req = fetch(url).then(rsp => {
|
||||
if (rsp.ok) {
|
||||
return rsp.text().then(svgContent => {
|
||||
ioniconContent.set(url, validateContent(svgContent));
|
||||
});
|
||||
}
|
||||
ioniconContent.set(url, '');
|
||||
});
|
||||
if (typeof fetch !== 'undefined' && typeof document !== 'undefined') {
|
||||
// we don't already have a request
|
||||
req = fetch(url).then((rsp) => {
|
||||
if (rsp.ok) {
|
||||
return rsp.text().then((svgContent) => {
|
||||
if (svgContent && sanitize !== false) {
|
||||
svgContent = validateContent(svgContent);
|
||||
}
|
||||
ioniconContent.set(url, svgContent || '');
|
||||
});
|
||||
}
|
||||
ioniconContent.set(url, '');
|
||||
});
|
||||
|
||||
// cache for the same requests
|
||||
requests.set(url, req);
|
||||
// cache for the same requests
|
||||
requests.set(url, req);
|
||||
} else {
|
||||
// set to empty for ssr scenarios and resolve promise
|
||||
ioniconContent.set(url, '');
|
||||
return Promise.resolve();
|
||||
}
|
||||
}
|
||||
|
||||
return req;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from '@utils/test/playwright';
|
||||
|
||||
test.describe('icon: basic', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.goto(`/`);
|
||||
|
||||
// Wait for all SVGs to be lazily loaded before taking screenshots
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot(`icon-diff.png`);
|
||||
});
|
||||
});
|
||||
|
After Width: | Height: | Size: 325 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 301 KiB |
@@ -0,0 +1,138 @@
|
||||
import { newSpecPage } from '@stencil/core/testing';
|
||||
import { Icon } from '../icon';
|
||||
|
||||
describe('icon', () => {
|
||||
it('renders', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: '<ion-icon></ion-icon>',
|
||||
});
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" role="img">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders aria-hidden and no aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon aria-hidden="true"></ion-icon>`,
|
||||
});
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" role="img" aria-hidden="true">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders rtl with aria-hidden', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
direction: 'rtl',
|
||||
html: `<ion-icon name="chevron-forward" aria-hidden="true"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md flip-rtl" name="chevron-forward" role="img" aria-hidden="true">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders default aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders custom aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders custom label after changing source', async () => {
|
||||
const page = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
|
||||
});
|
||||
|
||||
const icon = page.root;
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
|
||||
if (icon) {
|
||||
icon.name = 'trash';
|
||||
}
|
||||
await page.waitForChanges();
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="trash" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
|
||||
it('renders default label after changing source', async () => {
|
||||
const page = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward"></ion-icon>`,
|
||||
});
|
||||
|
||||
const icon = page.root;
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="chevron forward">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
|
||||
if (icon) {
|
||||
icon.name = 'trash';
|
||||
}
|
||||
await page.waitForChanges();
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="trash" role="img" aria-label="trash">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
</ion-icon>
|
||||
`);
|
||||
});
|
||||
});
|
||||
@@ -7,7 +7,7 @@ describe('isValid', () => {
|
||||
const el = {
|
||||
nodeType: 1,
|
||||
nodeName: 'svg',
|
||||
attributes: [{ value: 'onload' }],
|
||||
attributes: [{ name: 'onload' }],
|
||||
childNodes: []
|
||||
} as any;
|
||||
expect(isValid(el)).toBe(false);
|
||||
@@ -17,7 +17,7 @@ describe('isValid', () => {
|
||||
const el = {
|
||||
nodeType: 1,
|
||||
nodeName: 'svg',
|
||||
attributes: [{ value: 'OnClIcK' }],
|
||||
attributes: [{ name: 'OnClIcK' }],
|
||||
childNodes: []
|
||||
} as any;
|
||||
expect(isValid(el)).toBe(false);
|
||||
|
||||
@@ -5,15 +5,19 @@ import { Icon } from './icon';
|
||||
let CACHED_MAP: Map<string, string>;
|
||||
|
||||
export const getIconMap = (): Map<string, string> => {
|
||||
if (!CACHED_MAP) {
|
||||
const win = window as any;
|
||||
win.Ionicons = win.Ionicons || {};
|
||||
CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();
|
||||
if (typeof window === 'undefined') {
|
||||
return new Map();
|
||||
} else {
|
||||
if (!CACHED_MAP) {
|
||||
const win = window as any;
|
||||
win.Ionicons = win.Ionicons || {};
|
||||
CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();
|
||||
}
|
||||
return CACHED_MAP;
|
||||
}
|
||||
return CACHED_MAP;
|
||||
};
|
||||
|
||||
export const addIcons = (icons: {[name: string]: string }) => {
|
||||
export const addIcons = (icons: { [name: string]: string; }) => {
|
||||
const map = getIconMap();
|
||||
Object.keys(icons).forEach(name => map.set(name, icons[name]));
|
||||
};
|
||||
@@ -109,4 +113,44 @@ export const isSrc = (str: string) => str.length > 0 && /(\/|\.)/.test(str);
|
||||
|
||||
export const isStr = (val: any): val is string => typeof val === 'string';
|
||||
|
||||
export const toLower = (val: string) => val.toLowerCase();
|
||||
export const toLower = (val: string) => val.toLowerCase();
|
||||
|
||||
/**
|
||||
* Elements inside of web components sometimes need to inherit global attributes
|
||||
* set on the host. For example, the inner input in `ion-input` should inherit
|
||||
* the `title` attribute that developers set directly on `ion-input`. This
|
||||
* helper function should be called in componentWillLoad and assigned to a variable
|
||||
* that is later used in the render function.
|
||||
*
|
||||
* This does not need to be reactive as changing attributes on the host element
|
||||
* does not trigger a re-render.
|
||||
*/
|
||||
export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {
|
||||
const attributeObject: { [k: string]: any } = {};
|
||||
|
||||
attributes.forEach(attr => {
|
||||
if (el.hasAttribute(attr)) {
|
||||
const value = el.getAttribute(attr);
|
||||
if (value !== null) {
|
||||
attributeObject[attr] = el.getAttribute(attr);
|
||||
}
|
||||
el.removeAttribute(attr);
|
||||
}
|
||||
});
|
||||
|
||||
return attributeObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns `true` if the document or host element
|
||||
* has a `dir` set to `rtl`. The host value will always
|
||||
* take priority over the root document value.
|
||||
*/
|
||||
export const isRTL = (hostEl?: Pick<HTMLElement, 'dir'>) => {
|
||||
if (hostEl) {
|
||||
if (hostEl.dir !== '') {
|
||||
return hostEl.dir.toLowerCase() === 'rtl';
|
||||
}
|
||||
}
|
||||
return document?.dir.toLowerCase() === 'rtl';
|
||||
};
|
||||
@@ -1,36 +1,32 @@
|
||||
import { isStr } from './utils';
|
||||
|
||||
export const validateContent = (svgContent: string) => {
|
||||
const div = document.createElement('div');
|
||||
div.innerHTML = svgContent;
|
||||
|
||||
export const validateContent = (svgContent: string | null) => {
|
||||
if (svgContent) {
|
||||
const div = document.createElement('div');
|
||||
div.innerHTML = svgContent;
|
||||
|
||||
// setup this way to ensure it works on our buddy IE
|
||||
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
||||
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
|
||||
div.removeChild(div.childNodes[i]);
|
||||
}
|
||||
// setup this way to ensure it works on our buddy IE
|
||||
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
||||
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
|
||||
div.removeChild(div.childNodes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// must only have 1 root element
|
||||
const svgElm = div.firstElementChild;
|
||||
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
|
||||
const svgClass = svgElm.getAttribute('class') || '';
|
||||
svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());
|
||||
// must only have 1 root element
|
||||
const svgElm = div.firstElementChild;
|
||||
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
|
||||
const svgClass = svgElm.getAttribute('class') || '';
|
||||
svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());
|
||||
|
||||
// root element must be an svg
|
||||
// lets double check we've got valid elements
|
||||
// do not allow scripts
|
||||
if (isValid(svgElm as any)) {
|
||||
return div.innerHTML;
|
||||
}
|
||||
// root element must be an svg
|
||||
// lets double check we've got valid elements
|
||||
// do not allow scripts
|
||||
if (isValid(svgElm as any)) {
|
||||
return div.innerHTML;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
};
|
||||
|
||||
|
||||
export const isValid = (elm: HTMLElement) => {
|
||||
if (elm.nodeType === 1) {
|
||||
if (elm.nodeName.toLowerCase() === 'script') {
|
||||
@@ -38,8 +34,8 @@ export const isValid = (elm: HTMLElement) => {
|
||||
}
|
||||
|
||||
for (let i = 0; i < elm.attributes.length; i++) {
|
||||
const val = elm.attributes[i].value;
|
||||
if (isStr(val) && val.toLowerCase().indexOf('on') === 0) {
|
||||
const name = elm.attributes[i].name;
|
||||
if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from '../../../utils/test/playwright';
|
||||
|
||||
test.describe('icon: csp', () => {
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/test/csp');
|
||||
});
|
||||
|
||||
test('should load svg', async ({ page }) => {
|
||||
const svg = page.locator('ion-icon#icon-usage svg');
|
||||
await expect(svg).toBeVisible();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr" lang="en" mode="ios">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content="default-src 'none'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/*; img-src 'self'; connect-src 'self'; font-src https://fonts.gstatic.com/*'">
|
||||
<title>IonIcon - Content Security Policy</title>
|
||||
<script type="module" src="../../build/ionicons.esm.js"></script>
|
||||
<script nomodule src="../../build/ionicons.js"></script>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
font-size: 32px;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.custom {
|
||||
stroke: red;
|
||||
fill: goldenrod;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Ionicons - Test </h1>
|
||||
|
||||
<h2>Default</h2>
|
||||
<ion-icon src="/assets/chat.svg"></ion-icon>
|
||||
<ion-icon name="add"></ion-icon>
|
||||
|
||||
<ion-icon id="icon-usage"
|
||||
icon="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Watch</title><rect x='136' y='136' width='240' height='240' rx='8' ry='8'/><path d='M384 96h-48V16H176v80h-48a32 32 0 00-32 32v256a32 32 0 0032 32h48v80h160v-80h48a32 32 0 0032-32V128a32 32 0 00-32-32zm8 272a24 24 0 01-24 24H144a24 24 0 01-24-24V144a24 24 0 0124-24h224a24 24 0 0124 24z'/></svg>">
|
||||
</ion-icon>
|
||||
|
||||
<ion-icon class="custom"
|
||||
icon="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><title>Watch</title><rect x='136' y='136' width='240' height='240' rx='8' ry='8'/><path d='M384 96h-48V16H176v80h-48a32 32 0 00-32 32v256a32 32 0 0032 32h48v80h160v-80h48a32 32 0 0032-32V128a32 32 0 00-32-32zm8 272a24 24 0 01-24 24H144a24 24 0 01-24-24V144a24 24 0 0124-24h224a24 24 0 0124 24z'/></svg>">
|
||||
</ion-icon>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><script>alert('got ya')</script><path d="M0 0h24v24H0z" fill="none"/><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/></svg>
|
||||
|
After Width: | Height: | Size: 544 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><script>alert('got ya')</script><path d="M0 0h24v24H0z" fill="none"/><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/></svg>
|
||||
|
After Width: | Height: | Size: 544 B |
@@ -1,152 +1,167 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr" lang="en" mode="ios">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
|
||||
<title>Ionicons Icon Component</title>
|
||||
<script type="module" src="/build/ionicons.esm.js"></script>
|
||||
<script nomodule src="/build/ionicons.js"></script>
|
||||
</head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
|
||||
<title>Ionicons Icon Component</title>
|
||||
<script type="module" src="/build/ionicons.esm.js"></script>
|
||||
<script nomodule src="/build/ionicons.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ionicons</h1>
|
||||
|
||||
<body>
|
||||
<h2>Default</h2>
|
||||
<ion-icon name="cellular"></ion-icon>
|
||||
<ion-icon name="at"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="football"></ion-icon>
|
||||
<ion-icon name="analytics"></ion-icon>
|
||||
<ion-icon name="grid"></ion-icon>
|
||||
<ion-icon name="funnel"></ion-icon>
|
||||
<ion-icon name="watch"></ion-icon>
|
||||
<ion-icon name="add-circle-outline"></ion-icon>
|
||||
|
||||
<h1>Ionicons</h1>
|
||||
<h2>Mode from html ios mode attribute</h2>
|
||||
<ion-icon md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<ion-icon md="logo-android" ios="logo-apple"></ion-icon>
|
||||
|
||||
<h2>Default</h2>
|
||||
<ion-icon name="cellular"></ion-icon>
|
||||
<ion-icon name="at"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="football"></ion-icon>
|
||||
<ion-icon name="analytics"></ion-icon>
|
||||
<ion-icon name="grid"></ion-icon>
|
||||
<ion-icon name="funnel"></ion-icon>
|
||||
<ion-icon name="watch"></ion-icon>
|
||||
<ion-icon name="add-circle-outline"></ion-icon>
|
||||
<h2>Mode set on icon</h2>
|
||||
<ion-icon mode="ios" md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<ion-icon mode="md" md="logo-android" ios="logo-apple"></ion-icon>
|
||||
|
||||
<h2>Mode from html ios mode attribute</h2>
|
||||
<ion-icon md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<ion-icon md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<h2>Colors</h2>
|
||||
<ion-icon color="primary" name="cellular"></ion-icon>
|
||||
<ion-icon color="secondary" name="at"></ion-icon>
|
||||
<ion-icon color="tertiary" name="call"></ion-icon>
|
||||
<ion-icon color="success" name="football"></ion-icon>
|
||||
<ion-icon color="warning" name="analytics"></ion-icon>
|
||||
<ion-icon color="danger" name="grid"></ion-icon>
|
||||
<ion-icon color="light" name="funnel"></ion-icon>
|
||||
<ion-icon color="medium" name="watch"></ion-icon>
|
||||
<ion-icon color="dark" name="toggle"></ion-icon>
|
||||
|
||||
<h2>Mode set on icon</h2>
|
||||
<ion-icon mode="ios" md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<ion-icon mode="md" md="logo-android" ios="logo-apple"></ion-icon>
|
||||
<h2>Stroke width</h2>
|
||||
<ion-icon name="heart-outline" style="--ionicon-stroke-width: 8px"></ion-icon>
|
||||
|
||||
<h2>Colors</h2>
|
||||
<ion-icon color="primary" name="cellular"></ion-icon>
|
||||
<ion-icon color="secondary" name="at"></ion-icon>
|
||||
<ion-icon color="tertiary" name="call"></ion-icon>
|
||||
<ion-icon color="success" name="football"></ion-icon>
|
||||
<ion-icon color="warning" name="analytics"></ion-icon>
|
||||
<ion-icon color="danger" name="grid"></ion-icon>
|
||||
<ion-icon color="light" name="funnel"></ion-icon>
|
||||
<ion-icon color="medium" name="watch"></ion-icon>
|
||||
<ion-icon color="dark" name="toggle"></ion-icon>
|
||||
<h2>Font size</h2>
|
||||
<ion-icon name="book" style="font-size: 50px"></ion-icon>
|
||||
<ion-icon src="./assets/bug_report.svg" style="font-size: 50px"></ion-icon>
|
||||
|
||||
<h2>Stroke width</h2>
|
||||
<ion-icon name="heart-outline" style="--ionicon-stroke-width: 8px;"></ion-icon>
|
||||
<h2>Custom SVGs</h2>
|
||||
<ion-icon src="./assets/bug_report.svg"></ion-icon>
|
||||
<ion-icon src="./assets/chat.svg"></ion-icon>
|
||||
<ion-icon src="./assets/commute.svg"></ion-icon>
|
||||
<ion-icon src="./assets/copyright.svg"></ion-icon>
|
||||
<ion-icon src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon src="./assets/lock_open.svg"></ion-icon>
|
||||
<ion-icon src="./assets/toll.svg"></ion-icon>
|
||||
<ion-icon src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon src="./assets/work_outline.svg"></ion-icon>
|
||||
|
||||
<h2>Font size</h2>
|
||||
<ion-icon name="book" style="font-size: 50px;"></ion-icon>
|
||||
<ion-icon src="./assets/bug_report.svg" style="font-size: 50px;"></ion-icon>
|
||||
<h2>Custom SVGs: colors</h2>
|
||||
<ion-icon color="primary" src="./assets/bug_report.svg"></ion-icon>
|
||||
<ion-icon color="secondary" src="./assets/chat.svg"></ion-icon>
|
||||
<ion-icon color="tertiary" src="./assets/commute.svg"></ion-icon>
|
||||
<ion-icon color="success" src="./assets/copyright.svg"></ion-icon>
|
||||
<ion-icon color="warning" src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon color="danger" src="./assets/lock_open.svg"></ion-icon>
|
||||
<ion-icon color="light" src="./assets/toll.svg"></ion-icon>
|
||||
<ion-icon color="medium" src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon color="dark" src="./assets/work_outline.svg"></ion-icon>
|
||||
|
||||
<h2>Custom SVGs</h2>
|
||||
<ion-icon src="./assets/bug_report.svg"></ion-icon>
|
||||
<ion-icon src="./assets/chat.svg"></ion-icon>
|
||||
<ion-icon src="./assets/commute.svg"></ion-icon>
|
||||
<ion-icon src="./assets/copyright.svg"></ion-icon>
|
||||
<ion-icon src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon src="./assets/lock_open.svg"></ion-icon>
|
||||
<ion-icon src="./assets/toll.svg"></ion-icon>
|
||||
<ion-icon src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon src="./assets/work_outline.svg"></ion-icon>
|
||||
<h2>Custom CSS</h2>
|
||||
<ion-icon class="custom" name="grid"></ion-icon>
|
||||
<ion-icon class="custom" name="funnel"></ion-icon>
|
||||
<ion-icon class="custom" name="watch"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-react"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-javascript"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-angular"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/work_outline.svg"></ion-icon>
|
||||
|
||||
<h2>Custom SVGs: colors</h2>
|
||||
<ion-icon color="primary" src="./assets/bug_report.svg"></ion-icon>
|
||||
<ion-icon color="secondary" src="./assets/chat.svg"></ion-icon>
|
||||
<ion-icon color="tertiary" src="./assets/commute.svg"></ion-icon>
|
||||
<ion-icon color="success" src="./assets/copyright.svg"></ion-icon>
|
||||
<ion-icon color="warning" src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon color="danger" src="./assets/lock_open.svg"></ion-icon>
|
||||
<ion-icon color="light" src="./assets/toll.svg"></ion-icon>
|
||||
<ion-icon color="medium" src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon color="dark" src="./assets/work_outline.svg"></ion-icon>
|
||||
<h2>Aria</h2>
|
||||
<ion-icon name="cellular"></ion-icon>
|
||||
<ion-icon name="cellular" aria-label="Mobile data"></ion-icon>
|
||||
<ion-icon name="cellular" aria-hidden="true"></ion-icon>
|
||||
|
||||
<h2>Custom CSS</h2>
|
||||
<ion-icon class="custom" name="grid"></ion-icon>
|
||||
<ion-icon class="custom" name="funnel"></ion-icon>
|
||||
<ion-icon class="custom" name="watch"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-react"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-javascript"></ion-icon>
|
||||
<ion-icon class="custom" name="logo-angular"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/done_all.svg"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/web_asset.svg"></ion-icon>
|
||||
<ion-icon class="custom" src="./assets/work_outline.svg"></ion-icon>
|
||||
<h1>RTL</h1>
|
||||
|
||||
<h1>RTL</h1>
|
||||
<h2>Default: Non-arrows</h2>
|
||||
<ion-icon name="cut"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="checkbox"></ion-icon>
|
||||
<ion-icon name="brush"></ion-icon>
|
||||
|
||||
<h2>Default: Non-arrows</h2>
|
||||
<ion-icon name="cut"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="checkbox"></ion-icon>
|
||||
<ion-icon name="brush"></ion-icon>
|
||||
<h2>Flip: Non-arrows</h2>
|
||||
<ion-icon name="cut" flip-rtl></ion-icon>
|
||||
<ion-icon name="call" flip-rtl></ion-icon>
|
||||
<ion-icon name="checkbox" flip-rtl></ion-icon>
|
||||
<ion-icon name="brush" flip-rtl></ion-icon>
|
||||
|
||||
<h2>Flip: Non-arrows</h2>
|
||||
<ion-icon name="cut" flip-rtl></ion-icon>
|
||||
<ion-icon name="call" flip-rtl></ion-icon>
|
||||
<ion-icon name="checkbox" flip-rtl></ion-icon>
|
||||
<ion-icon name="brush" flip-rtl></ion-icon>
|
||||
<h2>Auto Flip: arrows</h2>
|
||||
<ion-icon name="arrow-up"></ion-icon>
|
||||
<ion-icon name="arrow-forward"></ion-icon>
|
||||
<ion-icon name="arrow-down"></ion-icon>
|
||||
<ion-icon name="arrow-back"></ion-icon>
|
||||
|
||||
<h2>Auto Flip: arrows</h2>
|
||||
<ion-icon name="arrow-up"></ion-icon>
|
||||
<ion-icon name="arrow-forward"></ion-icon>
|
||||
<ion-icon name="arrow-down"></ion-icon>
|
||||
<ion-icon name="arrow-back"></ion-icon>
|
||||
<h2>Un-flip: arrows</h2>
|
||||
<ion-icon name="arrow-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-back" flip-rtl="false"></ion-icon>
|
||||
|
||||
<h2>Un-flip: arrows</h2>
|
||||
<ion-icon name="arrow-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-back" flip-rtl="false"></ion-icon>
|
||||
<h2>Auto Flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up"></ion-icon>
|
||||
<ion-icon name="chevron-forward"></ion-icon>
|
||||
<ion-icon name="chevron-down"></ion-icon>
|
||||
<ion-icon name="chevron-back"></ion-icon>
|
||||
|
||||
<h2>Auto Flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up"></ion-icon>
|
||||
<ion-icon name="chevron-forward"></ion-icon>
|
||||
<ion-icon name="chevron-down"></ion-icon>
|
||||
<ion-icon name="chevron-back"></ion-icon>
|
||||
<h2>Un-flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-back" flip-rtl="false"></ion-icon>
|
||||
|
||||
<h2>Un-flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-back" flip-rtl="false"></ion-icon>
|
||||
<h2>Auto Flip, RTL on components</h2>
|
||||
<ion-icon name="arrow-up" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-forward" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-down" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-back" dir="rtl" flip-rtl></ion-icon>
|
||||
|
||||
<p>
|
||||
<a href="./cheatsheet.html">Cheatsheet</a>
|
||||
</p>
|
||||
<h2>Sanitized (shouldn't show)</h2>
|
||||
<ion-icon src="./assets/sanitize.svg"></ion-icon>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
font-size: 32px;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
<h2>Not Sanitized (should show)</h2>
|
||||
<ion-icon sanitize="false" src="./assets/no-sanitize.svg"></ion-icon>
|
||||
|
||||
h1 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 25px;
|
||||
}
|
||||
<p>
|
||||
<a href="./cheatsheet.html">Cheatsheet</a>
|
||||
</p>
|
||||
|
||||
h2 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 18px;
|
||||
}
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
font-size: 32px;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.custom {
|
||||
stroke: red;
|
||||
fill: blue;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
h1 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 15px 0 5px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.custom {
|
||||
stroke: red;
|
||||
fill: blue;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export { addIcons } from './components/icon/utils';
|
||||
export * from './components';
|
||||
export type { Components, JSX } from './components';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" cx="256" cy="56" r="40"/><path fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" d="M204.23,274.44c2.9-18.06,4.2-35.52-.5-47.59-4-10.38-12.7-16.19-23.2-20.15L88,176.76c-12-4-23.21-10.7-24-23.94-1-17,14-28,29-24,0,0,88,31.14,163,31.14s162-31,162-31c18-5,30,9,30,23.79,0,14.21-11,19.21-24,23.94l-88,31.91c-8,3-21,9-26,18.18-6,10.75-5,29.53-2.1,47.59l5.9,29.63L351.21,467.9c2.8,13.15-6.3,25.44-19.4,27.74S308,489,304.12,476.28L266.56,360.35q-2.71-8.34-4.8-16.87L256,320l-5.3,21.65q-2.52,10.35-5.8,20.48L208,476.18c-4,12.85-14.5,21.75-27.6,19.46S158,480.05,160.94,467.9l37.39-163.83Z"/></svg>
|
||||
|
After Width: | Height: | Size: 744 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M448,112c-66.82,17.92-119.55,32-192,32S130.82,129.92,64,112L48,163c48,20.53,96.71,35.16,147.2,53.2L144,496l56.4,16L246,336h20l45.6,176L368,496,316.8,216.2C367.26,199.93,416,183.53,464,164Z"/><path d="M256,112a56,56,0,1,1,56-56A56.06,56.06,0,0,1,256,112Z"/></svg>
|
||||
|
After Width: | Height: | Size: 333 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256,112a56,56,0,1,1,56-56A56.06,56.06,0,0,1,256,112Z"/><path d="M432,112.8l-.45.12h0l-.42.13c-1,.28-2,.58-3,.89-18.61,5.46-108.93,30.92-172.56,30.92-59.13,0-141.28-22-167.56-29.47a73.79,73.79,0,0,0-8-2.58c-19-5-32,14.3-32,31.94,0,17.47,15.7,25.79,31.55,31.76v.28l95.22,29.74c9.73,3.73,12.33,7.54,13.6,10.84,4.13,10.59.83,31.56-.34,38.88l-5.8,45L150.05,477.44q-.15.72-.27,1.47l-.23,1.27h0c-2.32,16.15,9.54,31.82,32,31.82,19.6,0,28.25-13.53,32-31.94h0s28-157.57,42-157.57,42.84,157.57,42.84,157.57h0c3.75,18.41,12.4,31.94,32,31.94,22.52,0,34.38-15.74,32-31.94-.21-1.38-.46-2.74-.76-4.06L329,301.27l-5.79-45c-4.19-26.21-.82-34.87.32-36.9a1.09,1.09,0,0,0,.08-.15c1.08-2,6-6.48,17.48-10.79l89.28-31.21a16.9,16.9,0,0,0,1.62-.52c16-6,32-14.3,32-31.93S451,107.81,432,112.8Z"/></svg>
|
||||
|
After Width: | Height: | Size: 846 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><line x1="256" y1="256" x2="256" y2="384" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="320" y1="320" x2="192" y2="320" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M80,176a16,16,0,0,0-16,16V408c0,30.24,25.76,56,56,56H392c30.24,0,56-24.51,56-54.75V192a16,16,0,0,0-16-16Z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd"/><path d="M160,176V144a96,96,0,0,1,96-96h0a96,96,0,0,1,96,96v32" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 751 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460,160H372V148A116.13,116.13,0,0,0,258.89,32c-1,0-1.92,0-2.89,0s-1.93,0-2.89,0A116.13,116.13,0,0,0,140,148v12H52a4,4,0,0,0-4,4V464a16,16,0,0,0,16,16H448a16,16,0,0,0,16-16V164A4,4,0,0,0,460,160ZM180,149c0-41.84,33.41-76.56,75.25-77A76.08,76.08,0,0,1,332,148v12H180ZM336,336H272v64H240V336H176V304h64V240h32v64h64Z"/></svg>
|
||||
|
After Width: | Height: | Size: 394 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M454.66,169.4A31.86,31.86,0,0,0,432,160H368V144a112,112,0,0,0-224,0v16H80a32,32,0,0,0-32,32V408c0,39,33,72,72,72H392a72.22,72.22,0,0,0,50.48-20.55A69.48,69.48,0,0,0,464,409.25V192A31.78,31.78,0,0,0,454.66,169.4ZM320,336H272v48a16,16,0,0,1-32,0V336H192a16,16,0,0,1,0-32h48V256a16,16,0,0,1,32,0v48h48a16,16,0,0,1,0,32Zm16-176H176V144a80,80,0,0,1,160,0Z"/></svg>
|
||||
|
After Width: | Height: | Size: 430 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><polyline fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" points="320 264 230.4 376 192 331.12"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M80,176a16,16,0,0,0-16,16V408c0,30.24,25.76,56,56,56H392c30.24,0,56-24.51,56-54.75V192a16,16,0,0,0-16-16Z"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M160,176V144a96,96,0,0,1,96-96h0a96,96,0,0,1,96,96v32"/></svg>
|
||||
|
After Width: | Height: | Size: 612 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460,160H372V148A116.13,116.13,0,0,0,258.89,32c-1,0-1.92,0-2.89,0s-1.93,0-2.89,0A116.13,116.13,0,0,0,140,148v12H52a4,4,0,0,0-4,4V464a16,16,0,0,0,16,16H448a16,16,0,0,0,16-16V164A4,4,0,0,0,460,160ZM180,149c0-41.84,33.41-76.56,75.25-77A76.08,76.08,0,0,1,332,148v12H180Zm50.81,252.12-61.37-71.72,24.31-20.81L230,350.91l87.51-109.4,25,20Z"/></svg>
|
||||
|
After Width: | Height: | Size: 413 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M454.65,169.4A31.82,31.82,0,0,0,432,160H368V144a112,112,0,0,0-224,0v16H80a32,32,0,0,0-32,32V408c0,39,33,72,72,72H392a72.22,72.22,0,0,0,50.48-20.55A69.48,69.48,0,0,0,464,409.25V192A31.75,31.75,0,0,0,454.65,169.4ZM332.49,274l-89.6,112a16,16,0,0,1-12.23,6h-.26a16,16,0,0,1-12.16-5.6l-38.4-44.88a16,16,0,1,1,24.32-20.8L230,350.91,307.51,254a16,16,0,0,1,25,20ZM336,160H176V144a80,80,0,0,1,160,0Z"/></svg>
|
||||
|
After Width: | Height: | Size: 470 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M80,176a16,16,0,0,0-16,16V408c0,30.24,25.76,56,56,56H392c30.24,0,56-24.51,56-54.75V192a16,16,0,0,0-16-16Z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M160,176V144a96,96,0,0,1,96-96h0a96,96,0,0,1,96,96v32" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M160,224v16a96,96,0,0,0,96,96h0a96,96,0,0,0,96-96V224" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 599 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460,160H372V148A116.13,116.13,0,0,0,258.89,32c-1,0-1.92,0-2.89,0s-1.93,0-2.89,0A116.13,116.13,0,0,0,140,148v12H52a4,4,0,0,0-4,4V464a16,16,0,0,0,16,16H448a16,16,0,0,0,16-16V164A4,4,0,0,0,460,160ZM180,149c0-41.84,33.41-76.56,75.25-77A76.08,76.08,0,0,1,332,148v12H180Zm188,91a112,112,0,0,1-224,0V208h32v32a80,80,0,0,0,160,0V208h32Z"/></svg>
|
||||
|
After Width: | Height: | Size: 409 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M454.65,169.4A31.82,31.82,0,0,0,432,160H368V144a112,112,0,0,0-224,0v16H80a32,32,0,0,0-32,32V408c0,39,33,72,72,72H392a72.22,72.22,0,0,0,50.48-20.55A69.48,69.48,0,0,0,464,409.25V192A31.75,31.75,0,0,0,454.65,169.4ZM176,144a80,80,0,0,1,160,0v16H176Zm192,96a112,112,0,0,1-224,0V224a16,16,0,0,1,32,0v16a80,80,0,0,0,160,0V224a16,16,0,0,1,32,0Z"/></svg>
|
||||
|
After Width: | Height: | Size: 416 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M80,176a16,16,0,0,0-16,16V408c0,30.24,25.76,56,56,56H392c30.24,0,56-24.51,56-54.75V192a16,16,0,0,0-16-16Z"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M160,176V144a96,96,0,0,1,96-96h0a96,96,0,0,1,96,96v32"/></svg>
|
||||
|
After Width: | Height: | Size: 472 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><line fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" x1="320" y1="320" x2="192" y2="320"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M80,176a16,16,0,0,0-16,16V408c0,30.24,25.76,56,56,56H392c30.24,0,56-24.51,56-54.75V192a16,16,0,0,0-16-16Z"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" fill-rule="evenodd" d="M160,176V144a96,96,0,0,1,96-96h0a96,96,0,0,1,96,96v32"/></svg>
|
||||
|
After Width: | Height: | Size: 606 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460,160H372V148A116.13,116.13,0,0,0,258.89,32c-1,0-1.92,0-2.89,0s-1.93,0-2.89,0A116.13,116.13,0,0,0,140,148v12H52a4,4,0,0,0-4,4V464a16,16,0,0,0,16,16H448a16,16,0,0,0,16-16V164A4,4,0,0,0,460,160ZM180,149c0-41.84,33.41-76.56,75.25-77A76.08,76.08,0,0,1,332,148v12H180ZM336,336H176V304H336Z"/></svg>
|
||||
|
After Width: | Height: | Size: 367 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M454.66,169.4A31.86,31.86,0,0,0,432,160H368V144a112,112,0,0,0-224,0v16H80a32,32,0,0,0-32,32V408c0,39,33,72,72,72H392a72.22,72.22,0,0,0,50.48-20.55A69.48,69.48,0,0,0,464,409.25V192A31.78,31.78,0,0,0,454.66,169.4ZM320,336H192a16,16,0,0,1,0-32H320a16,16,0,0,1,0,32Zm16-176H176V144a80,80,0,0,1,160,0Z"/></svg>
|
||||
|
After Width: | Height: | Size: 376 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M372,160V148A116.13,116.13,0,0,0,258.89,32c-1,0-1.92,0-2.89,0s-1.93,0-2.89,0A116.13,116.13,0,0,0,140,148v12H52a4,4,0,0,0-4,4V464a16,16,0,0,0,16,16H448a16,16,0,0,0,16-16V164a4,4,0,0,0-4-4Zm-40,0H180V149c0-41.84,33.41-76.56,75.25-77A76.08,76.08,0,0,1,332,148Z"/></svg>
|
||||
|
After Width: | Height: | Size: 337 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M454.65,169.4A31.82,31.82,0,0,0,432,160H368V144a112,112,0,0,0-224,0v16H80a32,32,0,0,0-32,32V408c0,39,33,72,72,72H392a72.22,72.22,0,0,0,50.48-20.55A69.48,69.48,0,0,0,464,409.25V192A31.75,31.75,0,0,0,454.65,169.4ZM176,144a80,80,0,0,1,160,0v16H176Z"/></svg>
|
||||
|
After Width: | Height: | Size: 325 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M414.11,153.82C429.66,264.4,345.85,357.09,282.54,366s-169.48-57.5-185-167.68a159.82,159.82,0,1,1,316.53-44.49Z" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32"/><path d="M236.06,308.05c-32.83-13-67.08-43.1-82.27-85.46" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32"/><path d="M367.7,495.78c-32.83-13-63.31-40.06-78.5-82.41" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="32"/><polygon points="266.71 368.21 257.54 417.82 320.85 408.92 298.36 363.76 266.71 368.21" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 745 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M391,307.27c32.75-46.35,46.59-101.63,39-155.68h0C416.47,55.59,327.38-11.54,231.38,2S68.24,104.53,81.73,200.53c7.57,53.89,36.12,103.16,80.37,138.74,26.91,21.64,57.59,36.1,86.05,41.33l-8.36,45.23a8,8,0,0,0,9,9.38L279,431c15.9,35.87,41.65,60.48,78.41,75l14.88,5.88,11.77-29.75-14.88-5.89c-26.35-10.42-44.48-26.16-57-49.92l21.84-3.07a8,8,0,0,0,6.05-11.49l-20.49-41.16C345.56,357.73,371.07,335.42,391,307.27ZM230.18,322.93c-41.26-16.32-76.3-52.7-91.45-94.94l-5.4-15.06,30.12-10.8,5.4,15.06c14.5,40.44,47.27,65.77,73.1,76l14.88,5.88-11.77,29.76Z"/></svg>
|
||||
|
After Width: | Height: | Size: 630 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M391,307.27c32.75-46.35,46.59-101.63,39-155.68A175.82,175.82,0,0,0,231.38,2c-96,13.49-163.14,102.58-149.65,198.58,7.57,53.89,36.12,103.16,80.37,138.74C186.68,359,214.41,372.82,240.72,379a8,8,0,0,1,6,9.22l-4.87,26.38a16.29,16.29,0,0,0,1.48,10.57,16,16,0,0,0,14.2,8.61,15.21,15.21,0,0,0,2.23-.16l17.81-2.5a2,2,0,0,1,2.09,1.14c16.72,36.31,45.46,63.85,82.15,78.36a16,16,0,0,0,21-9.65c2.83-8.18-1.64-17.07-9.68-20.28a118.57,118.57,0,0,1-59.3-51.88,2,2,0,0,1,1.45-3l7.4-1a16.54,16.54,0,0,0,10.08-5.23,16,16,0,0,0,2.39-17.8l-12.06-24.23A8,8,0,0,1,326.35,367C349.94,353.83,372.8,333,391,307.27Zm-154.9,16.78a16,16,0,0,1-5.88-1.12c-41.26-16.32-76.3-52.7-91.45-94.94a16,16,0,1,1,30.12-10.8c14.5,40.44,47.27,65.77,73.1,76a16,16,0,0,1-5.89,30.88Z"/></svg>
|
||||
|
After Width: | Height: | Size: 825 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle cx="256" cy="256" r="208" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32"/><line x1="108.92" y1="108.92" x2="403.08" y2="403.08" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 303 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M414.39,97.61A224,224,0,1,0,97.61,414.39,224,224,0,1,0,414.39,97.61ZM432,256a175.09,175.09,0,0,1-35.8,106.26L149.74,115.8A175.09,175.09,0,0,1,256,80C353.05,80,432,159,432,256ZM80,256a175.09,175.09,0,0,1,35.8-106.26L362.26,396.2A175.09,175.09,0,0,1,256,432C159,432,80,353.05,80,256Z"/></svg>
|
||||
|
After Width: | Height: | Size: 361 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="48" cx="256" cy="256" r="200"/><line stroke="#000" stroke-miterlimit="10" stroke-width="48" x1="114.58" y1="114.58" x2="397.42" y2="397.42"/></svg>
|
||||
|
After Width: | Height: | Size: 280 B |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-h</title><circle cx="248" cy="56" r="40" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/><path d="M199.3,295.62h0l-30.4,172.2a24,24,0,0,0,19.5,27.8,23.76,23.76,0,0,0,27.6-19.5l21-119.9v.2s5.2-32.5,17.5-32.5h3.1c12.5,0,17.5,32.5,17.5,32.5v-.1l21,119.9a23.92,23.92,0,1,0,47.1-8.4l-30.4-172.2-4.9-29.7c-2.9-18.1-4.2-47.6.5-59.7,4-10.4,14.13-14.2,23.2-14.2H424a24,24,0,0,0,0-48H88a24,24,0,0,0,0,48h92.5c9.23,0,19.2,3.8,23.2,14.2,4.7,12.1,3.4,41.6.5,59.7Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32" cx="256" cy="56" r="40"/><path fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32" d="M199.3,295.62h0l-30.4,172.2a24,24,0,0,0,19.5,27.8,23.76,23.76,0,0,0,27.6-19.5l21-119.9v.2s5.2-32.5,17.5-32.5h3.1c12.5,0,17.5,32.5,17.5,32.5v-.1l21,119.9a23.92,23.92,0,1,0,47.1-8.4l-30.4-172.2-4.9-29.7c-2.9-18.1-4.2-47.6.5-59.7,4-10.4,14.13-14.2,23.2-14.2H424a24,24,0,0,0,0-48H88a24,24,0,0,0,0,48h92.5c9.23,0,19.2,3.8,23.2,14.2,4.7,12.1,3.4,41.6.5,59.7Z"/></svg>
|
||||
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 599 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><circle cx="256" cy="256" r="208" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32"/><circle cx="288" cy="200" r="24"/><circle cx="296" cy="128" r="24"/><circle cx="360" cy="168" r="24"/></svg>
|
||||
|
After Width: | Height: | Size: 283 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M414.39,97.61A224,224,0,1,0,97.61,414.39,224,224,0,1,0,414.39,97.61ZM286,230a28,28,0,1,1,28-28A28,28,0,0,1,286,230Zm8-76a28,28,0,1,1,28-28A28,28,0,0,1,294,154Zm68,44a28,28,0,1,1,28-28A28,28,0,0,1,362,198Z"/></svg>
|
||||
|
After Width: | Height: | Size: 295 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M414.39,97.61A224,224,0,1,0,97.61,414.39,224,224,0,1,0,414.39,97.61ZM288,224a24,24,0,1,1,24-24A24,24,0,0,1,288,224Zm8-72a24,24,0,1,1,24-24A24,24,0,0,1,296,152Zm64,40a24,24,0,1,1,24-24A24,24,0,0,1,360,192Z"/></svg>
|
||||
|
After Width: | Height: | Size: 295 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" x="48" y="80" width="416" height="384" rx="48"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" stroke-linecap="round" x1="128" y1="48" x2="128" y2="80"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" stroke-linecap="round" x1="384" y1="48" x2="384" y2="80"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" stroke-linecap="round" x1="464" y1="160" x2="48" y2="160"/></svg>
|
||||
|
After Width: | Height: | Size: 587 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M32,456a24,24,0,0,0,24,24H456a24,24,0,0,0,24-24V192H32Z"/><path d="M480,87.77A23.8,23.8,0,0,0,456,64H400.08V32h-48V64H159.92V32h-48V64H56A23.8,23.8,0,0,0,32,87.77V144H480Z"/></svg>
|
||||
|
After Width: | Height: | Size: 251 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M480,128a64,64,0,0,0-64-64H400V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,368,48V64H144V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,112,48V64H96a64,64,0,0,0-64,64v12a4,4,0,0,0,4,4H476a4,4,0,0,0,4-4Z"/><path d="M32,416a64,64,0,0,0,64,64H416a64,64,0,0,0,64-64V180a4,4,0,0,0-4-4H36a4,4,0,0,0-4,4Z"/></svg>
|
||||
|
After Width: | Height: | Size: 376 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect x="48" y="80" width="416" height="384" rx="48" fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32"/><line x1="128" y1="48" x2="128" y2="80" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="384" y1="48" x2="384" y2="80" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="464" y1="160" x2="48" y2="160" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><polyline points="304 260 347.42 228 352 228 352 396" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M191.87,306.63c9.11,0,25.79-4.28,36.72-15.47a37.9,37.9,0,0,0,11.13-27.26c0-26.12-22.59-39.9-47.89-39.9-21.4,0-33.52,11.61-37.85,18.93" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M149,374.16c4.88,8.27,19.71,25.84,43.88,25.84,28.59,0,52.12-15.94,52.12-43.82,0-12.62-3.66-24-11.58-32.07-12.36-12.64-31.25-17.48-41.55-17.48" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M32,456a24,24,0,0,0,24,24H456a24,24,0,0,0,24-24V176H32ZM342.17,212H368V412H336V256.29l-35.39,26.08-19-25.76ZM222,335.3c-8.54-8.74-22.75-12.67-30.11-12.67h-16v-32h16c4.85,0,17.41-2.6,25.28-10.65a22,22,0,0,0,6.57-16.08c0-23.23-28.63-23.9-31.89-23.9-17.34,0-23.8,10.61-24.07,11.06l-8.13,13.78-27.56-16.27,8.14-13.77c7.64-13,25.22-26.8,51.62-26.8,16.44,0,31.76,4.77,43.13,13.42,13.39,10.2,20.76,25.28,20.76,42.48A54,54,0,0,1,240,302.35c-1.15,1.18-2.36,2.28-3.59,3.35a66.18,66.18,0,0,1,8.42,7.23c10.56,10.8,16.14,25.75,16.14,43.25,0,18.06-7.61,34-21.42,44.92-12.17,9.61-28.75,14.9-46.7,14.9-27.87,0-48.48-18.16-57.66-33.7l-8.13-13.78,27.56-16.27L162.78,366c1.08,1.84,11.15,18,30.1,18,16.66,0,36.12-7.29,36.12-27.82C229,349.93,227.78,341.23,222,335.3Z"/><path d="M456,64H400.08V32h-48V64H159.92V32h-48V64H56A23.8,23.8,0,0,0,32,87.77V144H480V87.77A23.8,23.8,0,0,0,456,64Z"/></svg>
|
||||
|
After Width: | Height: | Size: 955 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M416,64H400V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,368,48V64H144V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,112,48V64H96a64,64,0,0,0-64,64v12a4,4,0,0,0,4,4H476a4,4,0,0,0,4-4V128A64,64,0,0,0,416,64Z"/><path d="M476,176H36a4,4,0,0,0-4,4V416a64,64,0,0,0,64,64H416a64,64,0,0,0,64-64V180A4,4,0,0,0,476,176ZM239.58,401.1c-12.17,9.61-28.75,14.9-46.7,14.9-27.87,0-48.48-18.16-57.66-33.7A16,16,0,0,1,162.78,366c1.08,1.84,11.15,18,30.1,18,16.66,0,36.12-7.29,36.12-27.82,0-6.25-1.22-14.95-7-20.88-8.54-8.74-22.75-12.67-30.11-12.67a16,16,0,0,1,0-32c4.85,0,17.41-2.6,25.28-10.65a22,22,0,0,0,6.57-16.08c0-23.23-28.63-23.9-31.89-23.9-17.34,0-23.8,10.61-24.07,11.06a16,16,0,1,1-27.55-16.26c7.64-13,25.22-26.8,51.62-26.8,16.44,0,31.76,4.77,43.13,13.42,13.39,10.2,20.76,25.28,20.76,42.48A54,54,0,0,1,240,302.35c-1.15,1.18-2.36,2.28-3.59,3.35a66.18,66.18,0,0,1,8.42,7.23c10.56,10.8,16.14,25.75,16.14,43.25C261,374.24,253.39,390.19,239.58,401.1ZM368,396a16,16,0,0,1-32,0V256.29l-22.51,16.59a16,16,0,1,1-19-25.76l43.42-32a16,16,0,0,1,9.49-3.12H352a16,16,0,0,1,16,16Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-e</title><rect x="48" y="80" width="416" height="384" rx="48" ry="48" style="fill:none;stroke:#000;stroke-linejoin:round;stroke-width:32px"/><path d="M397.82,80H114.18C77.69,80,48,110.15,48,147.2V208H64c0-16,16-32,32-32H416c16,0,32,16,32,32h16V147.2C464,110.15,434.31,80,397.82,80Z"/><circle cx="296" cy="232" r="24"/><circle cx="376" cy="232" r="24"/><circle cx="296" cy="312" r="24"/><circle cx="376" cy="312" r="24"/><circle cx="136" cy="312" r="24"/><circle cx="216" cy="312" r="24"/><circle cx="136" cy="392" r="24"/><circle cx="216" cy="392" r="24"/><circle cx="296" cy="392" r="24"/><line x1="128" y1="48" x2="128" y2="80" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/><line x1="384" y1="48" x2="384" y2="80" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" x="48" y="80" width="416" height="384" rx="48"/><circle cx="296" cy="232" r="24"/><circle cx="376" cy="232" r="24"/><circle cx="296" cy="312" r="24"/><circle cx="376" cy="312" r="24"/><circle cx="136" cy="312" r="24"/><circle cx="216" cy="312" r="24"/><circle cx="136" cy="392" r="24"/><circle cx="216" cy="392" r="24"/><circle cx="296" cy="392" r="24"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" stroke-linecap="round" x1="128" y1="48" x2="128" y2="80"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" stroke-linecap="round" x1="384" y1="48" x2="384" y2="80"/><line fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32" x1="464" y1="160" x2="48" y2="160"/></svg>
|
||||
|
Before Width: | Height: | Size: 966 B After Width: | Height: | Size: 870 B |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-e</title><rect x="272" y="208" width="48" height="48" rx="4" ry="4"/><rect x="352" y="208" width="48" height="48" rx="4" ry="4"/><rect x="272" y="288" width="48" height="48" rx="4" ry="4"/><rect x="352" y="288" width="48" height="48" rx="4" ry="4"/><rect x="112" y="288" width="48" height="48" rx="4" ry="4"/><rect x="192" y="288" width="48" height="48" rx="4" ry="4"/><rect x="112" y="368" width="48" height="48" rx="4" ry="4"/><rect x="192" y="368" width="48" height="48" rx="4" ry="4"/><rect x="272" y="368" width="48" height="48" rx="4" ry="4"/><path d="M448,64H400V32H360V64H152V32H112V64H64A32,32,0,0,0,32,96V448a32,32,0,0,0,32,32H448a32,32,0,0,0,32-32V96A32,32,0,0,0,448,64ZM436,436H76V176H436Z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M32,456a24,24,0,0,0,24,24H456a24,24,0,0,0,24-24V176H32ZM352,212a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H356a4,4,0,0,1-4-4Zm0,80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H356a4,4,0,0,1-4-4Zm-80-80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H276a4,4,0,0,1-4-4Zm0,80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H276a4,4,0,0,1-4-4Zm0,80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H276a4,4,0,0,1-4-4Zm-80-80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H196a4,4,0,0,1-4-4Zm0,80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H196a4,4,0,0,1-4-4Zm-80-80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H116a4,4,0,0,1-4-4Zm0,80a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4v40a4,4,0,0,1-4,4H116a4,4,0,0,1-4-4Z"/><path d="M456,64H400.08V32h-48V64H159.92V32h-48V64H56A23.8,23.8,0,0,0,32,87.77V144H480V87.77A23.8,23.8,0,0,0,456,64Z"/></svg>
|
||||
|
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 911 B |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-e</title><path d="M416,64H400V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,368,48V64H144V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,112,48V64H96a64,64,0,0,0-64,64V416a64,64,0,0,0,64,64H416a64,64,0,0,0,64-64V128A64,64,0,0,0,416,64ZM136,416a24,24,0,1,1,24-24A24,24,0,0,1,136,416Zm0-80a24,24,0,1,1,24-24A24,24,0,0,1,136,336Zm80,80a24,24,0,1,1,24-24A24,24,0,0,1,216,416Zm0-80a24,24,0,1,1,24-24A24,24,0,0,1,216,336Zm80,80a24,24,0,1,1,24-24A24,24,0,0,1,296,416Zm0-80a24,24,0,1,1,24-24A24,24,0,0,1,296,336Zm0-80a24,24,0,1,1,24-24A24,24,0,0,1,296,256Zm80,80a24,24,0,1,1,24-24A24,24,0,0,1,376,336Zm0-80a24,24,0,1,1,24-24A24,24,0,0,1,376,256Zm72-120v16a8,8,0,0,1-8,8H72a8,8,0,0,1-8-8V128A32.09,32.09,0,0,1,96,96H416a32.09,32.09,0,0,1,32,32Z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M480,128a64,64,0,0,0-64-64H400V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,368,48V64H144V48.45c0-8.61-6.62-16-15.23-16.43A16,16,0,0,0,112,48V64H96a64,64,0,0,0-64,64v12a4,4,0,0,0,4,4H476a4,4,0,0,0,4-4Z"/><path d="M32,416a64,64,0,0,0,64,64H416a64,64,0,0,0,64-64V179a3,3,0,0,0-3-3H35a3,3,0,0,0-3,3ZM376,208a24,24,0,1,1-24,24A24,24,0,0,1,376,208Zm0,80a24,24,0,1,1-24,24A24,24,0,0,1,376,288Zm-80-80a24,24,0,1,1-24,24A24,24,0,0,1,296,208Zm0,80a24,24,0,1,1-24,24A24,24,0,0,1,296,288Zm0,80a24,24,0,1,1-24,24A24,24,0,0,1,296,368Zm-80-80a24,24,0,1,1-24,24A24,24,0,0,1,216,288Zm0,80a24,24,0,1,1-24,24A24,24,0,0,1,216,368Zm-80-80a24,24,0,1,1-24,24A24,24,0,0,1,136,288Zm0,80a24,24,0,1,1-24,24A24,24,0,0,1,136,368Z"/></svg>
|
||||
|
Before Width: | Height: | Size: 847 B After Width: | Height: | Size: 781 B |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-m</title><rect x="280.48" y="122.9" width="63.03" height="378.2" rx="10" ry="10" transform="translate(-129.23 312) rotate(-45)" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/><rect x="180.35" y="164.45" width="63.29" height="95.1" transform="translate(-87.81 212) rotate(-45)"/><line x1="48" y1="192" x2="96" y2="192" style="stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><line x1="90.18" y1="90.18" x2="124.12" y2="124.12" style="stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><line x1="192" y1="48" x2="192" y2="96" style="stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><line x1="293.82" y1="90.18" x2="259.88" y2="124.12" style="stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/><line x1="124.12" y1="259.88" x2="90.18" y2="293.82" style="stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="32" x="280.48" y="122.9" width="63.03" height="378.2" rx="31.52" transform="translate(-129.23 312) rotate(-45)"/><path d="M178.38,178.38h0a31.64,31.64,0,0,0,0,44.75L223.25,268,268,223.25l-44.87-44.87A31.64,31.64,0,0,0,178.38,178.38Z"/><line stroke="#000" stroke-miterlimit="10" stroke-width="32" stroke-linecap="round" x1="48" y1="192" x2="96" y2="192"/><line stroke="#000" stroke-miterlimit="10" stroke-width="32" stroke-linecap="round" x1="90.18" y1="90.18" x2="124.12" y2="124.12"/><line stroke="#000" stroke-miterlimit="10" stroke-width="32" stroke-linecap="round" x1="192" y1="48" x2="192" y2="96"/><line stroke="#000" stroke-miterlimit="10" stroke-width="32" stroke-linecap="round" x1="293.82" y1="90.18" x2="259.88" y2="124.12"/><line stroke="#000" stroke-miterlimit="10" stroke-width="32" stroke-linecap="round" x1="124.12" y1="259.88" x2="90.18" y2="293.82"/></svg>
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1005 B |
@@ -1 +1,17 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><title>ionicons-v5-m</title><path d="M96,208H48a16,16,0,0,1,0-32H96a16,16,0,0,1,0,32Z"/><line x1="90.25" y1="90.25" x2="124.19" y2="124.19"/><path d="M124.19,140.19a15.91,15.91,0,0,1-11.31-4.69L78.93,101.56a16,16,0,0,1,22.63-22.63l33.94,33.95a16,16,0,0,1-11.31,27.31Z"/><path d="M192,112a16,16,0,0,1-16-16V48a16,16,0,0,1,32,0V96A16,16,0,0,1,192,112Z"/><line x1="293.89" y1="90.25" x2="259.95" y2="124.19"/><path d="M260,140.19a16,16,0,0,1-11.31-27.31l33.94-33.95a16,16,0,0,1,22.63,22.63L271.27,135.5A15.94,15.94,0,0,1,260,140.19Z"/><line x1="124.19" y1="259.95" x2="90.25" y2="293.89"/><path d="M90.25,309.89a16,16,0,0,1-11.32-27.31l33.95-33.94a16,16,0,0,1,22.62,22.63l-33.94,33.94A16,16,0,0,1,90.25,309.89Z"/><path d="M219,151.83a26,26,0,0,0-36.77,0l-30.43,30.43a26,26,0,0,0,0,36.77L208.76,276a4,4,0,0,0,5.66,0L276,214.42a4,4,0,0,0,0-5.66Z"/><path d="M472.31,405.11,304.24,237a4,4,0,0,0-5.66,0L237,298.58a4,4,0,0,0,0,5.66L405.12,472.31a26,26,0,0,0,36.76,0l30.43-30.43h0A26,26,0,0,0,472.31,405.11Z"/></svg>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
|
||||
<path d="M96,208H48c-8.8,0-16-7.2-16-16s7.2-16,16-16h48c8.8,0,16,7.2,16,16S104.8,208,96,208z"/>
|
||||
<path d="M124.1,140.1c-4.2,0-8.3-1.7-11.3-4.7l-33.9-33.9c-6.2-6.2-6.2-16.4,0-22.6s16.4-6.2,22.6,0l33.9,33.9
|
||||
c6.3,6.2,6.3,16.4,0,22.6C132.4,138.4,128.4,140.1,124.1,140.1z"/>
|
||||
<path d="M192,112c-8.8,0-16-7.2-16-16V48c0-8.8,7.2-16,16-16s16,7.2,16,16v48C208,104.8,200.8,112,192,112z"/>
|
||||
<path d="M259.9,140.1c-8.8,0-16-7.2-16-16c0-4.2,1.7-8.3,4.7-11.3l33.9-33.9c6.2-6.2,16.4-6.2,22.6,0c6.2,6.2,6.2,16.4,0,22.6
|
||||
l-33.9,33.9C268.2,138.4,264.1,140.1,259.9,140.1z"/>
|
||||
<path d="M90.2,309.8c-8.8,0-16-7.2-16-16c0-4.2,1.7-8.3,4.7-11.3l33.9-33.9c6.2-6.2,16.4-6.2,22.6,0s6.2,16.4,0,22.6l-33.9,33.9
|
||||
C98.5,308.1,94.4,309.8,90.2,309.8z"/>
|
||||
<path d="M234.2,167c-18.4-18.7-48.5-19-67.2-0.7s-19,48.5-0.7,67.2c0.2,0.2,0.5,0.5,0.7,0.7l39.5,39.5c3.1,3.1,8.2,3.1,11.3,0
|
||||
l55.9-55.9c3.1-3.1,3.1-8.2,0-11.3L234.2,167z"/>
|
||||
<path d="M457,389.8L307.6,240.4c-3.1-3.1-8.2-3.1-11.3,0l-55.9,55.9c-3.1,3.1-3.1,8.2,0,11.3L389.8,457c18.4,18.7,48.5,19,67.2,0.7
|
||||
c18.7-18.4,19-48.5,0.7-67.2C457.5,390.3,457.3,390,457,389.8L457,389.8z"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M35.42,188.21,243.17,457.67a16.17,16.17,0,0,0,25.66,0L476.58,188.21a16.52,16.52,0,0,0,.95-18.75L407.06,55.71A16.22,16.22,0,0,0,393.27,48H118.73a16.22,16.22,0,0,0-13.79,7.71L34.47,169.46A16.52,16.52,0,0,0,35.42,188.21Z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="48" y1="176" x2="464" y2="176" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><polyline points="400 64 352 176 256 48" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><polyline points="112 64 160 176 256 48" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="256" y1="448" x2="160" y2="176" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><line x1="256" y1="448" x2="352" y2="176" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><polygon points="396.31 32 264 32 348.19 144.26 396.31 32"/><polygon points="115.69 32 163.81 144.26 248 32 115.69 32"/><polygon points="256 74.67 192 160 320 160 256 74.67"/><polygon points="422.95 51.06 376.26 160 488 160 422.95 51.06"/><polygon points="89.05 51.06 23 160 135.74 160 89.05 51.06"/><polygon points="146.68 192 24 192 246.8 480 247.33 480 146.68 192"/><polygon points="365.32 192 264.67 480 265.2 480 488 192 365.32 192"/><polygon points="329.39 192 182.61 192 256 400 329.39 192"/></svg>
|
||||
|
After Width: | Height: | Size: 578 B |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M121.72,32A4,4,0,0,0,118,37.56l2.3,5.43L161,137.89a4,4,0,0,0,6.88.82L243,38.4a4,4,0,0,0-3.2-6.4Z"/><path d="M419.93,58.06l-41.28,96.37a4,4,0,0,0,3.68,5.57h101a4,4,0,0,0,3.4-6.11L427,57.53A4,4,0,0,0,419.93,58.06Z"/><path d="M85,57.57,25.29,153.89a4,4,0,0,0,3.4,6.11h101a4,4,0,0,0,3.67-5.58L92,58.1A4,4,0,0,0,85,57.57Z"/><path d="M393.27,32H267.82a1.94,1.94,0,0,0-1.56,3.11l79.92,106.46a1.94,1.94,0,0,0,3.34-.4L391.6,43,395,34.66A1.92,1.92,0,0,0,393.3,32Z"/><path d="M239,448,149.57,194.51A3.78,3.78,0,0,0,146,192H25.7a3.72,3.72,0,0,0-2.95,6l216,279.81a5.06,5.06,0,0,0,6.39,1.37h0a5,5,0,0,0,2.39-6.08Z"/><path d="M486.3,192H366a3.75,3.75,0,0,0-3.54,2.51L264.26,472.67a5.21,5.21,0,0,0,2.42,6.31h0a5.22,5.22,0,0,0,6.61-1.39L489.25,198h0A3.72,3.72,0,0,0,486.3,192Z"/><path d="M259.2,78.93l56,74.67A4,4,0,0,1,312,160H200a4,4,0,0,1-3.2-6.4l56-74.67A4,4,0,0,1,259.2,78.93Zm-7,310.31L184.5,197.33a4,4,0,0,1,3.77-5.33H323.73a4,4,0,0,1,3.77,5.33L259.77,389.24A4,4,0,0,1,252.23,389.24Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M448,341.37V170.61A32,32,0,0,0,432.11,143l-152-88.46a47.94,47.94,0,0,0-48.24,0L79.89,143A32,32,0,0,0,64,170.61V341.37A32,32,0,0,0,79.89,369l152,88.46a48,48,0,0,0,48.24,0l152-88.46A32,32,0,0,0,448,341.37Z"/><polyline fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" points="69 153.99 256 263.99 443 153.99"/><line fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" x1="256" y1="463.99" x2="256" y2="263.99"/><ellipse cx="256" cy="152" rx="24" ry="16"/><ellipse cx="208" cy="296" rx="16" ry="24"/><ellipse cx="112" cy="328" rx="16" ry="24"/><ellipse cx="304" cy="296" rx="16" ry="24"/><ellipse cx="400" cy="240" rx="16" ry="24"/><ellipse cx="304" cy="384" rx="16" ry="24"/><ellipse cx="400" cy="328" rx="16" ry="24"/></svg>
|
||||
|
After Width: | Height: | Size: 965 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M48,366.92,240,480V284L48,170ZM192,288c8.84,0,16,10.75,16,24s-7.16,24-16,24-16-10.75-16-24S183.16,288,192,288ZM96,320c8.84,0,16,10.75,16,24s-7.16,24-16,24-16-10.75-16-24S87.16,320,96,320Z"/><path d="M272,284V480L464,366.92V170Zm48,140c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S328.84,424,320,424Zm0-88c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S328.84,336,320,336Zm96,32c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S424.84,368,416,368Zm0-88c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S424.84,280,416,280Zm32,77.64h0Z"/><path d="M256,32,64,144,256,256,448,144Zm0,120c-13.25,0-24-7.16-24-16s10.75-16,24-16,24,7.16,24,16S269.25,152,256,152Z"/></svg>
|
||||
|
After Width: | Height: | Size: 751 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M440.88,129.37,288.16,40.62a64.14,64.14,0,0,0-64.33,0L71.12,129.37a4,4,0,0,0,0,6.9L254,243.85a4,4,0,0,0,4.06,0L440.9,136.27A4,4,0,0,0,440.88,129.37ZM256,152c-13.25,0-24-7.16-24-16s10.75-16,24-16,24,7.16,24,16S269.25,152,256,152Z"/><path d="M238,270.81,54,163.48a4,4,0,0,0-6,3.46V340.86a48,48,0,0,0,23.84,41.39L234,479.48a4,4,0,0,0,6-3.46V274.27A4,4,0,0,0,238,270.81ZM96,368c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S104.84,368,96,368Zm96-32c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S200.84,336,192,336Z"/><path d="M458,163.51,274,271.56a4,4,0,0,0-2,3.45V476a4,4,0,0,0,6,3.46l162.15-97.23A48,48,0,0,0,464,340.86V167A4,4,0,0,0,458,163.51ZM320,424c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S328.84,424,320,424Zm0-88c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S328.84,336,320,336Zm96,32c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S424.84,368,416,368Zm0-88c-8.84,0-16-10.75-16-24s7.16-24,16-24,16,10.75,16,24S424.84,280,416,280Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1 @@
|
||||
<svg id="icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M288,304V286c0-16.63-14.26-30-32-30s-32,13.37-32,30v18" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M304,416H208a32,32,0,0,1-32-32V336a32,32,0,0,1,32-32h96a32,32,0,0,1,32,32v48A32,32,0,0,1,304,416Z"/><path d="M416,221.25V416a48,48,0,0,1-48,48H144a48,48,0,0,1-48-48V96a48,48,0,0,1,48-48h98.75a32,32,0,0,1,22.62,9.37L406.63,198.63A32,32,0,0,1,416,221.25Z" fill="none" stroke="#000" stroke-linejoin="round" stroke-width="32"/><path d="M256,50.88V176a32,32,0,0,0,32,32H413.12" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 710 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M276,192H422.31a2,2,0,0,0,1.42-3.41L275.41,40.27A2,2,0,0,0,272,41.69V188A4,4,0,0,0,276,192Z"/><path d="M256,272c-8.82,0-16,6.28-16,14v18h32V286C272,278.28,264.82,272,256,272Z"/><path d="M248,224a8,8,0,0,1-8-8V32H92A12,12,0,0,0,80,44V468a12,12,0,0,0,12,12H420a12,12,0,0,0,12-12V224Zm88,175.91A16.1,16.1,0,0,1,319.91,416H192.09A16.1,16.1,0,0,1,176,399.91V320c0-10,7-16,16-16h16V286c0-25.36,21.53-46,48-46s48,20.64,48,46v18h16a15.8,15.8,0,0,1,16,16Z"/></svg>
|
||||
|
After Width: | Height: | Size: 526 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M288,192H417.81a2,2,0,0,0,1.41-3.41L275.41,44.78A2,2,0,0,0,272,46.19V176A16,16,0,0,0,288,192Z"/><path d="M256,272c-8.82,0-16,6.28-16,14v18h32V286C272,278.28,264.82,272,256,272Z"/><path d="M428,224H288a48,48,0,0,1-48-48V36a4,4,0,0,0-4-4H144A64,64,0,0,0,80,96V416a64,64,0,0,0,64,64H368a64,64,0,0,0,64-64V228A4,4,0,0,0,428,224ZM336,384a32,32,0,0,1-32,32H208a32,32,0,0,1-32-32V336a32,32,0,0,1,32-32V286c0-25.36,21.53-46,48-46s48,20.64,48,46v18a32,32,0,0,1,32,32Z"/></svg>
|
||||
|
After Width: | Height: | Size: 538 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M413.66,246.1H386a2,2,0,0,1-2-2V166.86A38.86,38.86,0,0,0,345.14,128H267.9a2,2,0,0,1-2-2V98.34c0-27.14-21.5-49.86-48.64-50.33a49.53,49.53,0,0,0-50.4,49.51V126a2,2,0,0,1-2,2H87.62A39.74,39.74,0,0,0,48,167.62V238a2,2,0,0,0,2,2H76.91c29.37,0,53.68,25.48,54.09,54.85.42,29.87-23.51,57.15-53.29,57.15H50a2,2,0,0,0-2,2v70.38A39.74,39.74,0,0,0,87.62,464H158a2,2,0,0,0,2-2V441.07c0-30.28,24.75-56.35,55-57.06,30.1-.7,57,20.31,57,50.28V462a2,2,0,0,0,2,2h71.14A38.86,38.86,0,0,0,384,425.14v-78a2,2,0,0,1,2-2h28.48c27.63,0,49.52-22.67,49.52-50.4S440.8,246.1,413.66,246.1Z"/></svg>
|
||||
|
After Width: | Height: | Size: 730 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M345.14,480H256V434.29a31.3,31.3,0,0,0-9.59-22.65c-7.67-7.56-18.83-11.81-30.57-11.64a44.38,44.38,0,0,0-28.45,10.67c-5.2,4.6-11.39,12.56-11.39,24.42V480H87.62A55.68,55.68,0,0,1,32,424.38V336H77.71c9.16,0,18.07-3.92,25.09-11A42.06,42.06,0,0,0,115,295.08C114.7,273.89,97.26,256,76.91,256H32V166.66a53.77,53.77,0,0,1,16.53-39A55.88,55.88,0,0,1,87.62,112h63.24V97.52A65.53,65.53,0,0,1,217.54,32c35.49.62,64.36,30.38,64.36,66.33V112h63.24A54.28,54.28,0,0,1,400,166.86V230.1h13.66c36.58,0,66.34,29,66.34,64.64,0,36.61-29.39,66.4-65.52,66.4H400v63.24C400,455.05,375.39,480,345.14,480Z"/></svg>
|
||||
|
After Width: | Height: | Size: 656 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M345.14,480H274a18,18,0,0,1-18-18V434.29a31.32,31.32,0,0,0-9.71-22.77c-7.78-7.59-19.08-11.8-30.89-11.51-21.36.5-39.4,19.3-39.4,41.06V462a18,18,0,0,1-18,18H87.62A55.62,55.62,0,0,1,32,424.38V354a18,18,0,0,1,18-18H77.71c9.16,0,18.07-3.92,25.09-11A42.06,42.06,0,0,0,115,295.08C114.7,273.89,97.26,256,76.91,256H50a18,18,0,0,1-18-18V167.62A55.62,55.62,0,0,1,87.62,112h55.24a8,8,0,0,0,8-8V97.52A65.53,65.53,0,0,1,217.54,32c35.49.62,64.36,30.38,64.36,66.33V104a8,8,0,0,0,8,8h55.24A54.86,54.86,0,0,1,400,166.86V222.1a8,8,0,0,0,8,8h5.66c36.58,0,66.34,29,66.34,64.64,0,36.61-29.39,66.4-65.52,66.4H408a8,8,0,0,0-8,8v56A54.86,54.86,0,0,1,345.14,480Z"/></svg>
|
||||
|
After Width: | Height: | Size: 716 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="#000" stroke-width="32" stroke-miterlimit="10" d="M448,256c0-106-86-192-192-192S64,150,64,256s86,192,192,192S448,362,448,256Z"/><line fill="none" stroke="#000" stroke-width="32" stroke-linecap="round" stroke-linejoin="round" x1="144" y1="208" x2="368" y2="208"/><line fill="none" stroke="#000" stroke-width="32" stroke-linecap="round" stroke-linejoin="round" x1="176" y1="272" x2="336" y2="272"/><line fill="none" stroke="#000" stroke-width="32" stroke-linecap="round" stroke-linejoin="round" x1="224" y1="336" x2="288" y2="336"/></svg>
|
||||
|
After Width: | Height: | Size: 624 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256,48C141.31,48,48,141.31,48,256s93.31,208,208,208,208-93.31,208-208S370.69,48,256,48Zm48,304H208V320h96Zm48-64H160V256H352Zm32-64H128V192H384Z"/></svg>
|
||||
|
After Width: | Height: | Size: 225 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256,48C141.31,48,48,141.31,48,256s93.31,208,208,208,208-93.31,208-208S370.69,48,256,48Zm32,304H224a16,16,0,0,1,0-32h64a16,16,0,0,1,0,32Zm48-64H176a16,16,0,0,1,0-32H336a16,16,0,0,1,0,32Zm32-64H144a16,16,0,0,1,0-32H368a16,16,0,0,1,0,32Z"/></svg>
|
||||
|
After Width: | Height: | Size: 315 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="#000" stroke-width="32" stroke-linejoin="round" d="M240,152c-50.71,12.21-94.15,52.31-120.3,73.43a261.14,261.14,0,0,0-23.81-19.58C59.53,179.29,16,176,16,176s11.37,51.53,41.36,79.83C27.37,284.14,16,335.67,16,335.67s43.53-3.29,79.89-29.85a259.18,259.18,0,0,0,23.61-19.41C145.6,307.55,189.24,347.75,240,360l-16,56c39.43-6.67,78.86-35.51,94.72-48.25C448,362,496,279,496,256c0-22-48-106-176.89-111.73C303.52,131.78,263.76,102.72,224,96Z"/><circle cx="416" cy="239.99" r="16"/><path fill="none" stroke="#000" stroke-width="32" stroke-linecap="round" stroke-miterlimit="20" d="M378.37,356a199.22,199.22,0,0,1,0-200"/></svg>
|
||||
|
After Width: | Height: | Size: 703 B |