From 15efeeee0e9ba33998e85e1cedb26b38ce29f07b Mon Sep 17 00:00:00 2001 From: Jonathan Neuteboom <--global> Date: Tue, 11 Jun 2024 12:00:48 +0200 Subject: [PATCH] Add two new icons --- package.json | 2 +- src/lib/Icons.ts | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 53be8c8..c0606d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@observation.org/react-native-components", - "version": "1.35.0", + "version": "1.36.0", "main": "src/index.ts", "repository": "git@github.com:observation/react-native-components.git", "author": "Observation.org", diff --git a/src/lib/Icons.ts b/src/lib/Icons.ts index a96aed5..1c4a092 100644 --- a/src/lib/Icons.ts +++ b/src/lib/Icons.ts @@ -43,6 +43,8 @@ import { faExternalLink as faExternalLinkLight } from '@fortawesome/pro-light-sv import { faEye as faEyeLight } from '@fortawesome/pro-light-svg-icons/faEye' import { faEyeSlash as faEyeSlashLight } from '@fortawesome/pro-light-svg-icons/faEyeSlash' import { faFileLines as faFileLinesLight } from '@fortawesome/pro-light-svg-icons/faFileLines' +import { faFlag as faFlagLight } from '@fortawesome/pro-light-svg-icons/faFlag' +import { faGlobe as faGlobeLight } from '@fortawesome/pro-light-svg-icons/faGlobe' import { faGlobeEurope as faGlobeEuropeLight } from '@fortawesome/pro-light-svg-icons/faGlobeEurope' import { faGridRound2Plus as faGridRound2PlusLight } from '@fortawesome/pro-light-svg-icons/faGridRound2Plus' import { faHeart as faHeartLight } from '@fortawesome/pro-light-svg-icons/faHeart' @@ -133,6 +135,8 @@ import { faExternalLink as faExternalLinkSolid } from '@fortawesome/pro-solid-sv import { faEye as faEyeSolid } from '@fortawesome/pro-solid-svg-icons/faEye' import { faEyeSlash as faEyeSlashSolid } from '@fortawesome/pro-solid-svg-icons/faEyeSlash' import { faFileLines as faFileLinesSolid } from '@fortawesome/pro-solid-svg-icons/faFileLines' +import { faFlag as faFlagSolid } from '@fortawesome/pro-solid-svg-icons/faFlag' +import { faGlobe as faGlobeSolid } from '@fortawesome/pro-solid-svg-icons/faGlobe' import { faGlobeEurope as faGlobeEuropeSolid } from '@fortawesome/pro-solid-svg-icons/faGlobeEurope' import { faGridRound2Plus as faGridRound2PlusSolid } from '@fortawesome/pro-solid-svg-icons/faGridRound2Plus' import { faHeart as faHeartSolid } from '@fortawesome/pro-solid-svg-icons/faHeart' @@ -187,32 +191,32 @@ type IconName = Extract< | 'angle-down' | 'angle-up' | 'arrow-circle-right' + | 'arrow-rotate-left' | 'arrow-up-from-bracket' | 'arrow-up-from-square' | 'arrows-rotate' - | 'arrow-rotate-left' - | 'badge-check' | 'badge' + | 'badge-check' | 'ban-bug' | 'calendar-day' | 'calendar-range' | 'camera' | 'certificate' | 'chart-column' + | 'check' | 'check-circle' | 'check-square' - | 'check' | 'chevron-circle-left' | 'chevron-circle-right' | 'chevron-left' | 'chevron-right' + | 'circle' | 'circle-check' | 'circle-exclamation' | 'circle-plus' | 'circle-stop' | 'circle-user' | 'circle-xmark' - | 'circle' | 'clock' | 'clone' | 'cloud-arrow-down' @@ -223,9 +227,11 @@ type IconName = Extract< | 'envelope' | 'exclamation-triangle' | 'external-link' - | 'eye-slash' | 'eye' + | 'eye-slash' | 'file-lines' + | 'flag' + | 'globe' | 'globe-europe' | 'grid-round-2-plus' | 'heart' @@ -235,8 +241,8 @@ type IconName = Extract< | 'language' | 'location-check' | 'location-crosshairs' - | 'map-marker-alt-slash' | 'map-marker-alt' + | 'map-marker-alt-slash' | 'mars' | 'minus' | 'paper-plane-top' @@ -244,8 +250,8 @@ type IconName = Extract< | 'play-circle' | 'plus' | 'qrcode' - | 'question-square' | 'question-circle' + | 'question-square' | 'random' | 'rectangle-history' | 'right-to-bracket' @@ -258,17 +264,17 @@ type IconName = Extract< | 'stars' | 'swatchbook' | 'tally' + | 'thumbtack' | 'times' | 'trash-alt' | 'triangle' | 'triangle-exclamation' - | 'thumbtack' | 'undo' + | 'user' | 'user-check' | 'user-group' | 'user-plus' | 'user-slash' - | 'user' | 'users-slash' | 'venus' | 'xmark' @@ -319,6 +325,8 @@ const icons: { [key in IconName]: { light: IconDefinition; solid: IconDefinition 'eye-slash': { light: faEyeSlashLight, solid: faEyeSlashSolid }, eye: { light: faEyeLight, solid: faEyeSolid }, 'file-lines': { light: faFileLinesLight, solid: faFileLinesSolid }, + flag: { light: faFlagLight, solid: faFlagSolid }, + globe: { light: faGlobeLight, solid: faGlobeSolid }, 'globe-europe': { light: faGlobeEuropeLight, solid: faGlobeEuropeSolid }, 'grid-round-2-plus': { light: faGridRound2PlusLight, solid: faGridRound2PlusSolid }, heart: { light: faHeartLight, solid: faHeartSolid },