diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 061a33d2a..468b91adf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,4 +91,6 @@ jobs: git add . git commit -m "chore(): update package lock files" git push + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash diff --git a/CHANGELOG.md b/CHANGELOG.md index c49ebd0d1..bdf9279e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,44 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.3.0](https://github.com/ionic-team/ionicons/compare/v7.2.3...v7.3.0) (2024-03-20) + + +### Features + +* add appflow icon ([#1262](https://github.com/ionic-team/ionicons/issues/1262)) ([fa5e765](https://github.com/ionic-team/ionicons/commit/fa5e7659fc1622908c4e55b01d0573017a36af6a)) +* add arrow box icons ([#1265](https://github.com/ionic-team/ionicons/issues/1265)) ([d5a55f8](https://github.com/ionic-team/ionicons/commit/d5a55f8541b208ab46dd41e53528aab48a90ed10)) +* add binoculars icons ([#1258](https://github.com/ionic-team/ionicons/issues/1258)) ([3024818](https://github.com/ionic-team/ionicons/commit/302481846e48428a354bc36220506001ac4c645e)) +* add trapeze icon ([#1260](https://github.com/ionic-team/ionicons/issues/1260)) ([3b85413](https://github.com/ionic-team/ionicons/commit/3b85413a059b2c91f10105d576cc717fd687a491)) +* add updated wifi logos ([#1264](https://github.com/ionic-team/ionicons/issues/1264)) ([26aac36](https://github.com/ionic-team/ionicons/commit/26aac36334cc09e5887523bc99c3d746586ebb63)), closes [#323](https://github.com/ionic-team/ionicons/issues/323) +* add updated yahoo icon ([#1266](https://github.com/ionic-team/ionicons/issues/1266)) ([c6ed6b6](https://github.com/ionic-team/ionicons/commit/c6ed6b629e45465b49e8e35db3830083ca9520ef)) +* **doc:** add Web Types ([#1301](https://github.com/ionic-team/ionicons/issues/1301)) ([f946a3e](https://github.com/ionic-team/ionicons/commit/f946a3ee3a4a1c2bdf9508b11a71fcb0a419d571)) +* update gitlab logo ([#1261](https://github.com/ionic-team/ionicons/issues/1261)) ([2586fb2](https://github.com/ionic-team/ionicons/commit/2586fb26b2a493fcb4b5b0156dd00d6b5eab1ab0)), closes [#613](https://github.com/ionic-team/ionicons/issues/613) +* update ionic logo ([#1263](https://github.com/ionic-team/ionicons/issues/1263)) ([50fe570](https://github.com/ionic-team/ionicons/commit/50fe570566d4c28de7fb10694543cd6dc72f3935)) + + + + + +# [7.3.0](https://github.com/ionic-team/ionicons/compare/v7.2.3...v7.3.0) (2024-03-20) + + +### Features + +* add appflow icon ([#1262](https://github.com/ionic-team/ionicons/issues/1262)) ([fa5e765](https://github.com/ionic-team/ionicons/commit/fa5e7659fc1622908c4e55b01d0573017a36af6a)) +* add arrow box icons ([#1265](https://github.com/ionic-team/ionicons/issues/1265)) ([d5a55f8](https://github.com/ionic-team/ionicons/commit/d5a55f8541b208ab46dd41e53528aab48a90ed10)) +* add binoculars icons ([#1258](https://github.com/ionic-team/ionicons/issues/1258)) ([3024818](https://github.com/ionic-team/ionicons/commit/302481846e48428a354bc36220506001ac4c645e)) +* add trapeze icon ([#1260](https://github.com/ionic-team/ionicons/issues/1260)) ([3b85413](https://github.com/ionic-team/ionicons/commit/3b85413a059b2c91f10105d576cc717fd687a491)) +* add updated wifi logos ([#1264](https://github.com/ionic-team/ionicons/issues/1264)) ([26aac36](https://github.com/ionic-team/ionicons/commit/26aac36334cc09e5887523bc99c3d746586ebb63)), closes [#323](https://github.com/ionic-team/ionicons/issues/323) +* add updated yahoo icon ([#1266](https://github.com/ionic-team/ionicons/issues/1266)) ([c6ed6b6](https://github.com/ionic-team/ionicons/commit/c6ed6b629e45465b49e8e35db3830083ca9520ef)) +* **doc:** add Web Types ([#1301](https://github.com/ionic-team/ionicons/issues/1301)) ([f946a3e](https://github.com/ionic-team/ionicons/commit/f946a3ee3a4a1c2bdf9508b11a71fcb0a419d571)) +* update gitlab logo ([#1261](https://github.com/ionic-team/ionicons/issues/1261)) ([2586fb2](https://github.com/ionic-team/ionicons/commit/2586fb26b2a493fcb4b5b0156dd00d6b5eab1ab0)), closes [#613](https://github.com/ionic-team/ionicons/issues/613) +* update ionic logo ([#1263](https://github.com/ionic-team/ionicons/issues/1263)) ([50fe570](https://github.com/ionic-team/ionicons/commit/50fe570566d4c28de7fb10694543cd6dc72f3935)) + + + + + ## [7.2.3](https://github.com/ionic-team/ionicons/compare/v7.2.2...v7.2.3) (2024-03-20) diff --git a/lerna.json b/lerna.json index 92d947f02..a4864469b 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "packages": [ "./" ], - "version": "7.2.3" + "version": "7.3.0" } diff --git a/package-lock.json b/package-lock.json index 436dd2789..927963acb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ionicons", - "version": "7.2.3", + "version": "7.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ionicons", - "version": "7.2.3", + "version": "7.3.0", "license": "MIT", "dependencies": { "@stencil/core": "^4.0.3" diff --git a/package.json b/package.json index 2777defd9..92f71396f 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionicons", - "version": "7.2.3", + "version": "7.3.0", "description": "Premium icons for Ionic.", "files": [ "components/", @@ -74,5 +74,6 @@ "license": "MIT", "sideEffects": [ "icons/imports/" - ] + ], + "web-types": "dist/ionic.web-types.json" } diff --git a/scripts/build.ts b/scripts/build.ts index 07a2c1f24..1e55cd70e 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -31,6 +31,8 @@ async function build(rootDir: string) { await createCheatsheet(version, rootDir, distDir, svgSymbolsContent, srcSvgData); + await createWebTypes(version, rootDir, distDir, srcSvgData); + await copyToTesting(rootDir, distDir, srcSvgData); } catch (e) { console.error(e); @@ -273,6 +275,31 @@ async function createCheatsheet( await fs.writeFile(distCheatsheetFilePath, html); } +async function createWebTypes( + version: string, + rootDir: string, + distDir: any, + srcSvgData: SvgData[] +) { + const srcWebTypeFilePath = join(rootDir, 'src/ionicons.web-types.json'); + const distWebTypesFilePath = join(distDir, 'ionicons.web-types.json'); + + const webTypes = JSON.parse(await fs.readFile(srcWebTypeFilePath, 'utf8')) + + webTypes.version = version + + const icons = webTypes.contributions.html.ionicons + for (let data of srcSvgData) { + icons.push({ + name: data.iconName, + icon: "dist/svg/" + data.fileName + }) + } + + const jsonStr = JSON.stringify(webTypes, null, 2) + '\n'; + await fs.writeFile(distWebTypesFilePath, jsonStr); +} + async function getSvgs(srcSvgDir: string, distSvgDir: string, distIoniconsDir: string): Promise { const optimizedSvgDir = join(distIoniconsDir, 'svg'); await fs.emptyDir(optimizedSvgDir); diff --git a/src/data.json b/src/data.json index 96195ebfb..f472d61ae 100644 --- a/src/data.json +++ b/src/data.json @@ -460,6 +460,35 @@ "sharp" ] }, + { + "name": "arrow-down-left-box", + "tags": [ + "arrow", + "box", + "down", + "left" + ] + }, + { + "name": "arrow-down-left-box-outline", + "tags": [ + "arrow", + "box", + "down", + "left", + "outline" + ] + }, + { + "name": "arrow-down-left-box-sharp", + "tags": [ + "arrow", + "box", + "down", + "left", + "sharp" + ] + }, { "name": "arrow-down-outline", "tags": [ @@ -468,6 +497,35 @@ "outline" ] }, + { + "name": "arrow-down-right-box", + "tags": [ + "arrow", + "box", + "down", + "right" + ] + }, + { + "name": "arrow-down-right-box-outline", + "tags": [ + "arrow", + "box", + "down", + "outline", + "right" + ] + }, + { + "name": "arrow-down-right-box-sharp", + "tags": [ + "arrow", + "box", + "down", + "right", + "sharp" + ] + }, { "name": "arrow-down-sharp", "tags": [ @@ -677,6 +735,35 @@ "up" ] }, + { + "name": "arrow-up-left-box", + "tags": [ + "arrow", + "box", + "left", + "up" + ] + }, + { + "name": "arrow-up-left-box-outline", + "tags": [ + "arrow", + "box", + "left", + "outline", + "up" + ] + }, + { + "name": "arrow-up-left-box-sharp", + "tags": [ + "arrow", + "box", + "left", + "sharp", + "up" + ] + }, { "name": "arrow-up-outline", "tags": [ @@ -685,6 +772,35 @@ "up" ] }, + { + "name": "arrow-up-right-box", + "tags": [ + "arrow", + "box", + "right", + "up" + ] + }, + { + "name": "arrow-up-right-box-outline", + "tags": [ + "arrow", + "box", + "outline", + "right", + "up" + ] + }, + { + "name": "arrow-up-right-box-sharp", + "tags": [ + "arrow", + "box", + "right", + "sharp", + "up" + ] + }, { "name": "arrow-up-sharp", "tags": [ @@ -1294,6 +1410,26 @@ "sharp" ] }, + { + "name": "binoculars", + "tags": [ + "binoculars" + ] + }, + { + "name": "binoculars-outline", + "tags": [ + "binoculars", + "outline" + ] + }, + { + "name": "binoculars-sharp", + "tags": [ + "binoculars", + "sharp" + ] + }, { "name": "bluetooth", "tags": [ @@ -6034,6 +6170,13 @@ "logo" ] }, + { + "name": "logo-appflow", + "tags": [ + "appflow", + "logo" + ] + }, { "name": "logo-apple", "tags": [ @@ -6494,6 +6637,13 @@ "tiktok" ] }, + { + "name": "logo-trapeze", + "tags": [ + "logo", + "trapeze" + ] + }, { "name": "logo-tumblr", "tags": [ @@ -7445,10 +7595,10 @@ { "name": "open", "tags": [ - "open", - "external", "anchor", - "link" + "external", + "link", + "open" ] }, { diff --git a/src/ionicons.web-types.json b/src/ionicons.web-types.json new file mode 100644 index 000000000..d2112ff16 --- /dev/null +++ b/src/ionicons.web-types.json @@ -0,0 +1,95 @@ +{ + "$schema": "http://json.schemastore.org/web-types", + "name": "ionicons", + "version": "0.0.0", + "description-markup": "markdown", + "contributions": { + "html": { + "elements": [ + { + "name": "ion-icon", + "description": "The Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need.", + "doc-url": "https://ionic.io/ionicons/usage", + "attributes": [ + { + "name": "name", + "description": "The name of the built-in icon from the Ionicons package.", + "priority": "high", + "doc-url": "https://ionic.io/ionicons/usage#basic-usage", + "value": { + "type": "symbol" + }, + "values": [ + { + "name": "The ion-icon", + "pattern": { + "items": "ionicons" + } + } + ] + }, + { + "name": "src", + "priority": "high", + "description": "Provide url of a custom SVG icon. The `src` attribute works the same as `` in that the url must be accessible from the webpage that's making a request for the image. Additionally, the external file can only be a valid `svg` and does not allow scripts or events within the `svg` element.", + "doc-url": "https://ionic.io/ionicons/usage#basic-usage" + }, + { + "name": "md", + "description": "Provide icon variant specific to MD platform", + "priority": "high", + "doc-url": "https://ionic.io/ionicons/usage#basic-usage", + "value": { + "type": "symbol" + }, + "values": [ + { + "name": "The ion-icon", + "pattern": { + "items": "ionicons" + } + } + ] + }, + { + "name": "ios", + "description": "Provide icon variant specific to iOS platform", + "priority": "high", + "doc-url": "https://ionic.io/ionicons/usage#basic-usage", + "value": { + "type": "symbol" + }, + "values": [ + { + "name": "The ion-icon", + "pattern": { + "items": "ionicons" + } + } + ] + }, + { + "name": "size", + "description": "Specify the icon size using one of the pre-defined font sizes.\n\nAlternatively you can set a specific size by applying the `font-size` CSS property on the `ion-icon` component. It's recommended to use pixel sizes that are a multiple of 8 (8, 16, 32, 64, etc.)", + "doc-url": "https://ionic.io/ionicons/usage#basic-usage", + "priority": "high", + "value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "large" + } + ] + } + ] + } + ], + "ionicons": [ + ] + } + } +} diff --git a/src/svg/arrow-down-left-box-outline.svg b/src/svg/arrow-down-left-box-outline.svg new file mode 100644 index 000000000..b1bb7df55 --- /dev/null +++ b/src/svg/arrow-down-left-box-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/svg/arrow-down-left-box-sharp.svg b/src/svg/arrow-down-left-box-sharp.svg new file mode 100644 index 000000000..eb275ddf1 --- /dev/null +++ b/src/svg/arrow-down-left-box-sharp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-down-left-box.svg b/src/svg/arrow-down-left-box.svg new file mode 100644 index 000000000..93d8b37b9 --- /dev/null +++ b/src/svg/arrow-down-left-box.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-down-right-box-outline.svg b/src/svg/arrow-down-right-box-outline.svg new file mode 100644 index 000000000..6cb453524 --- /dev/null +++ b/src/svg/arrow-down-right-box-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/svg/arrow-down-right-box-sharp.svg b/src/svg/arrow-down-right-box-sharp.svg new file mode 100644 index 000000000..16f974137 --- /dev/null +++ b/src/svg/arrow-down-right-box-sharp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-down-right-box.svg b/src/svg/arrow-down-right-box.svg new file mode 100644 index 000000000..75edd04e2 --- /dev/null +++ b/src/svg/arrow-down-right-box.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-up-left-box-outline.svg b/src/svg/arrow-up-left-box-outline.svg new file mode 100644 index 000000000..e3d35a797 --- /dev/null +++ b/src/svg/arrow-up-left-box-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/svg/arrow-up-left-box-sharp.svg b/src/svg/arrow-up-left-box-sharp.svg new file mode 100644 index 000000000..e0efc33ae --- /dev/null +++ b/src/svg/arrow-up-left-box-sharp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-up-left-box.svg b/src/svg/arrow-up-left-box.svg new file mode 100644 index 000000000..7a24655c4 --- /dev/null +++ b/src/svg/arrow-up-left-box.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-up-right-box-outline.svg b/src/svg/arrow-up-right-box-outline.svg new file mode 100644 index 000000000..6d0c01d1b --- /dev/null +++ b/src/svg/arrow-up-right-box-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/svg/arrow-up-right-box-sharp.svg b/src/svg/arrow-up-right-box-sharp.svg new file mode 100644 index 000000000..cd6152d63 --- /dev/null +++ b/src/svg/arrow-up-right-box-sharp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/arrow-up-right-box.svg b/src/svg/arrow-up-right-box.svg new file mode 100644 index 000000000..cd82aac03 --- /dev/null +++ b/src/svg/arrow-up-right-box.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/binoculars-outline.svg b/src/svg/binoculars-outline.svg new file mode 100644 index 000000000..062e4fd83 --- /dev/null +++ b/src/svg/binoculars-outline.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/svg/binoculars-sharp.svg b/src/svg/binoculars-sharp.svg new file mode 100644 index 000000000..9a1d8eddb --- /dev/null +++ b/src/svg/binoculars-sharp.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/binoculars.svg b/src/svg/binoculars.svg new file mode 100644 index 000000000..5857753cb --- /dev/null +++ b/src/svg/binoculars.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/logo-appflow.svg b/src/svg/logo-appflow.svg new file mode 100644 index 000000000..4d3b6a259 --- /dev/null +++ b/src/svg/logo-appflow.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/svg/logo-gitlab.svg b/src/svg/logo-gitlab.svg index 05753b0c0..c50282a75 100644 --- a/src/svg/logo-gitlab.svg +++ b/src/svg/logo-gitlab.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/src/svg/logo-ionic.svg b/src/svg/logo-ionic.svg index 70cb1b0b7..e4c7501a4 100644 --- a/src/svg/logo-ionic.svg +++ b/src/svg/logo-ionic.svg @@ -1 +1,6 @@ - \ No newline at end of file + + + + + + diff --git a/src/svg/logo-trapeze.svg b/src/svg/logo-trapeze.svg new file mode 100644 index 000000000..c0c4a1a8c --- /dev/null +++ b/src/svg/logo-trapeze.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/svg/logo-yahoo.svg b/src/svg/logo-yahoo.svg index d6e0e0bd2..a42e0a638 100644 --- a/src/svg/logo-yahoo.svg +++ b/src/svg/logo-yahoo.svg @@ -1 +1,3 @@ - \ No newline at end of file + + + diff --git a/src/svg/wifi-outline.svg b/src/svg/wifi-outline.svg index def19fdc1..560f2a669 100644 --- a/src/svg/wifi-outline.svg +++ b/src/svg/wifi-outline.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + diff --git a/src/svg/wifi-sharp.svg b/src/svg/wifi-sharp.svg index fe5e4892c..c4d57d9f6 100644 --- a/src/svg/wifi-sharp.svg +++ b/src/svg/wifi-sharp.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + diff --git a/src/svg/wifi.svg b/src/svg/wifi.svg index c15b523c8..1e767cadf 100644 --- a/src/svg/wifi.svg +++ b/src/svg/wifi.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + +