Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

using heroicons v2

Blue Mouse56956c61e5a1
diff --git a/package.json b/package.json
index 99532ff38..1a3b902d4 100644
--- a/package.json
+++ b/package.json
@@ -5,32 +5,32 @@
"dependencies": {
"@blaumaus/react-alert": "^7.0.5",
"@headlessui/react": "^1.6.6",
- "@heroicons/react": "^1.0.6",
- "@tailwindcss/forms": "^0.5.2",
+ "@heroicons/react": "^2.0.10",
+ "@tailwindcss/forms": "^0.5.3",
"axios": "^0.27.2",
"billboard.js": "^3.5.1",
"clsx": "^1.2.1",
"d3": "^7.6.1",
- "dayjs": "^1.11.4",
+ "dayjs": "^1.11.5",
"debug": "^4.3.4",
"dom-to-image": "^2.6.0",
"file-saver": "^2.0.5",
"flatpickr": "^4.6.13",
"i18n-iso-countries": "^7.5.0",
- "i18next": "^21.8.16",
- "i18next-browser-languagedetector": "^6.1.4",
+ "i18next": "^21.9.1",
+ "i18next-browser-languagedetector": "^6.1.5",
"i18next-http-backend": "^1.4.1",
- "jszip": "^3.10.0",
+ "jszip": "^3.10.1",
"lodash": "^4.17.21",
"nanoid": "^4.0.0",
- "prismjs": "^1.28.0",
+ "prismjs": "^1.29.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-flagkit": "^2.0.4",
"react-flatpickr": "^3.10.13",
"react-helmet-async": "^1.3.0",
- "react-i18next": "^11.18.3",
+ "react-i18next": "^11.18.5",
"react-qr-code": "^2.0.7",
"react-redux": "^8.0.2",
"react-router-dom": "^5.3.3",
@@ -38,10 +38,10 @@
"react-scripts": "5.0.1",
"react-timezone-select": "^1.3.2",
"redux": "^4.2.0",
- "redux-saga": "^1.1.3",
+ "redux-saga": "^1.2.1",
"spacetime": "^7.1.4",
"swetrix": "^1.3.2",
- "timezone-soft": "^1.3.1",
+ "timezone-soft": "^1.4.1",
"url": "^0.11.0"
},
"scripts": {
@@ -146,15 +146,15 @@
"devDependencies": {
"autoprefixer": "^10.4.8",
"cross-env": "^7.0.3",
- "eslint": "^8.21.0",
+ "eslint": "^8.23.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-lodash": "^7.4.0",
- "eslint-plugin-react": "^7.30.1",
+ "eslint-plugin-react": "^7.31.6",
"eslint-plugin-react-hooks": "^4.6.0",
- "postcss": "^8.4.14",
+ "postcss": "^8.4.16",
"source-map-explorer": "^2.5.2",
- "tailwindcss": "^3.1.7"
+ "tailwindcss": "^3.1.8"
}
}
diff --git a/src/components/EventsRunningOutBanner.jsx b/src/components/EventsRunningOutBanner.jsx
index 5b1d4da54..b91a3c0be 100644
--- a/src/components/EventsRunningOutBanner.jsx
+++ b/src/components/EventsRunningOutBanner.jsx
@@ -1,5 +1,5 @@
import React, { memo, useState } from 'react'
-import { ExclamationIcon, XIcon } from '@heroicons/react/outline'
+import { ExclamationTriangleIcon, XMarkIcon } from '@heroicons/react/24/outline'
import { useDispatch, useSelector } from 'react-redux'
import { useTranslation } from 'react-i18next'
@@ -28,7 +28,7 @@ const EventsRunningOutBanner = () => {
<div className='flex items-center justify-between flex-wrap'>
<div className='w-0 flex-1 flex items-center'>
<span className='flex p-2 rounded-lg bg-yellow-600'>
- <ExclamationIcon className='h-6 w-6 text-white' aria-hidden='true' />
+ <ExclamationTriangleIcon className='h-6 w-6 text-white' aria-hidden='true' />
</span>
<p className='ml-3 font-medium text-black truncate'>
<span className='md:hidden'>
@@ -58,7 +58,7 @@ const EventsRunningOutBanner = () => {
<span className='sr-only'>
{t('common.close')}
</span>
- <XIcon className='h-6 w-6 text-black' aria-hidden='true' />
+ <XMarkIcon className='h-6 w-6 text-black' aria-hidden='true' />
</button>
</div>
</div>
diff --git a/src/components/Header/index.jsx b/src/components/Header/index.jsx
index 9511ab9ea..188910fcf 100644
--- a/src/components/Header/index.jsx
+++ b/src/components/Header/index.jsx
@@ -8,9 +8,9 @@ import Flag from 'react-flagkit'
import i18next from 'i18next'
import { Popover, Transition } from '@headlessui/react'
import {
- MenuIcon, XIcon, DocumentTextIcon, CreditCardIcon, CollectionIcon, RssIcon,
-} from '@heroicons/react/outline'
-import { MoonIcon, SunIcon } from '@heroicons/react/solid'
+ Bars3Icon, XMarkIcon, DocumentTextIcon, CreditCardIcon, CircleStackIcon, RssIcon,
+} from '@heroicons/react/24/outline'
+import { MoonIcon, SunIcon } from '@heroicons/react/24/solid'
import routes from 'routes'
import { authActions } from 'redux/actions/auth'
@@ -61,7 +61,7 @@ const Header = ({ authenticated, theme }) => {
) : (
<>
<NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
- <CollectionIcon className='w-5 h-5 mr-1' />
+ <CircleStackIcon className='w-5 h-5 mr-1' />
{t('common.features')}
</NavLink>
<HashLink to={`${routes.main}#pricing`} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>
@@ -146,7 +146,7 @@ const Header = ({ authenticated, theme }) => {
<span className='sr-only'>
{t('common.openMenu')}
</span>
- <MenuIcon className='h-6 w-6' aria-hidden='true' />
+ <Bars3Icon className='h-6 w-6' aria-hidden='true' />
</Popover.Button>
</div>
</div>
@@ -167,7 +167,7 @@ const Header = ({ authenticated, theme }) => {
{t('common.pricing')}
</HashLink>
<NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-gray-700' key='Features'>
- <CollectionIcon className='w-5 h-5 mr-1' />
+ <CircleStackIcon className='w-5 h-5 mr-1' />
{t('common.features')}
</NavLink>
</>
@@ -205,7 +205,7 @@ const Header = ({ authenticated, theme }) => {
<span className='sr-only'>
{t('common.closeMenu')}
</span>
- <XIcon className='h-6 w-6' aria-hidden='true' />
+ <XMarkIcon className='h-6 w-6' aria-hidden='true' />
</Popover.Button>
</div>
</div>
diff --git a/src/pages/Auth/VerifyEmail/index.jsx b/src/pages/Auth/VerifyEmail/index.jsx
index 1b76f16aa..1e61ff7a4 100644
--- a/src/pages/Auth/VerifyEmail/index.jsx
+++ b/src/pages/Auth/VerifyEmail/index.jsx
@@ -2,7 +2,7 @@ import React, { useState, useEffect, memo } from 'react'
import { useDispatch } from 'react-redux'
import { useParams } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
-import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/solid'
+import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'
import _split from 'lodash/split'
import Title from 'components/Title'
diff --git a/src/pages/CrashHandler/index.js b/src/pages/CrashHandler/index.js
index 5b66d5493..5d4375ced 100644
--- a/src/pages/CrashHandler/index.js
+++ b/src/pages/CrashHandler/index.js
@@ -1,6 +1,6 @@
import React from 'react'
import _toString from 'lodash/toString'
-import { ExclamationIcon, ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/outline'
+import { ExclamationTriangleIcon, ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline'
import { CONTACT_EMAIL } from 'redux/constants'
class CrashHandler extends React.Component {
@@ -40,7 +40,7 @@ class CrashHandler extends React.Component {
<div style={{ minHeight: '100vh' }} className='pt-16 pb-12 flex flex-col bg-gray-50 dark:bg-gray-800'>
<div className='flex-grow flex flex-col justify-center max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8'>
<div className='flex-shrink-0 flex justify-center'>
- <ExclamationIcon className='h-24 w-auto text-yellow-400 dark:text-yellow-600' />
+ <ExclamationTriangleIcon className='h-24 w-auto text-yellow-400 dark:text-yellow-600' />
</div>
<div className='py-8'>
<div className='text-center'>
diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsx
index 9a755dc31..80dbcc200 100644
--- a/src/pages/Dashboard/Dashboard.jsx
+++ b/src/pages/Dashboard/Dashboard.jsx
@@ -15,8 +15,8 @@ import _filter from 'lodash/filter'
import _find from 'lodash/find'
import _ceil from 'lodash/ceil'
import { useTranslation } from 'react-i18next'
-import { EyeIcon, CalendarIcon, FolderAddIcon } from '@heroicons/react/outline'
-import { ArrowSmUpIcon, ArrowSmDownIcon, XCircleIcon } from '@heroicons/react/solid'
+import { EyeIcon, CalendarIcon, FolderPlusIcon } from '@heroicons/react/24/outline'
+import { ArrowSmallUpIcon, ArrowSmallDownIcon, XCircleIcon } from '@heroicons/react/24/solid'
import Modal from 'ui/Modal'
import { withAuthentication, auth } from 'hoc/protected'
@@ -103,14 +103,14 @@ const ProjectCart = ({
>
{statsDidGrowUp ? (
<>
- <ArrowSmUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
+ <ArrowSmallUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
<span className='sr-only'>
{t('dashboard.inc')}
</span>
</>
) : (
<>
- <ArrowSmDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
+ <ArrowSmallDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
<span className='sr-only'>
{t('dashboard.dec')}
</span>
@@ -242,7 +242,7 @@ const Dashboard = ({
{t('titles.dashboard')}
</h2>
<span onClick={onNewProject} className='!pl-2 inline-flex justify-center items-center cursor-pointer text-center border border-transparent leading-4 font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 px-3 py-2 text-sm'>
- <FolderAddIcon className='w-5 h-5 mr-1' />
+ <FolderPlusIcon className='w-5 h-5 mr-1' />
{t('dashboard.newProject')}
</span>
</div>
diff --git a/src/pages/MainPage/Pricing.jsx b/src/pages/MainPage/Pricing.jsx
index 9ba6d79ac..59ac03c14 100644
--- a/src/pages/MainPage/Pricing.jsx
+++ b/src/pages/MainPage/Pricing.jsx
@@ -2,7 +2,7 @@
import React, { memo, useState, useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { Link } from 'react-router-dom'
-import { CheckIcon } from '@heroicons/react/solid'
+import { CheckIcon } from '@heroicons/react/24/solid'
import _map from 'lodash/map'
import _isNil from 'lodash/isNil'
import _findIndex from 'lodash/findIndex'
diff --git a/src/pages/MainPage/index.jsx b/src/pages/MainPage/index.jsx
index 77c4ac8cb..cd64c6d66 100644
--- a/src/pages/MainPage/index.jsx
+++ b/src/pages/MainPage/index.jsx
@@ -3,8 +3,8 @@ import { Link } from 'react-router-dom'
import { useTranslation, Trans } from 'react-i18next'
import cx from 'clsx'
import { useSelector } from 'react-redux'
-import { ExternalLinkIcon, ArrowSmRightIcon, CheckCircleIcon } from '@heroicons/react/solid'
-// import { CheckCircleIcon as CheckCircleIconOutline, CogIcon, ClockIcon } from '@heroicons/react/outline'
+import { ArrowTopRightOnSquareIcon, ArrowSmallRightIcon, CheckCircleIcon } from '@heroicons/react/24/solid'
+// import { CheckCircleIcon as CheckCircleIconOutline, CogIcon, ClockIcon } from '@heroicons/react/24/outline'
import _map from 'lodash/map'
import routes from 'routes'
@@ -47,7 +47,7 @@ const Main = () => {
<a href='https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi' target='_blank' rel='noreferrer noopener' className='text-white border-gray-900 border-b-2 hover:border-white text-center'>
{t('main.ukrSupport')}
</a>
- <ExternalLinkIcon className='h-4 w-4 text-white ml-1 hidden md:block' />
+ <ArrowTopRightOnSquareIcon className='h-4 w-4 text-white ml-1 hidden md:block' />
</div>
<div className='overflow-hidden'>
<div className='bg-gray-800 dark:bg-gray-900'>
@@ -85,7 +85,7 @@ const Main = () => {
<span className='text-base font-semibold mr-1'>
{t('main.start')}
</span>
- <ArrowSmRightIcon className='h-4 w-5 mt-[1px]' />
+ <ArrowSmallRightIcon className='h-4 w-5 mt-[1px]' />
</Link>
<a href={LIVE_DEMO_URL} className='rounded-md !duration-300 transition-all sm:mt-0 mt-2 !border-gray-200 border w-full sm:max-w-[210px] h-12 flex items-center justify-center shadow-sm text-white bg-transparent hover:bg-gray-800' target='_blank' rel='noopener noreferrer'>
<span className='text-base font-semibold'>{t('common.liveDemo')}</span>
@@ -95,14 +95,14 @@ const Main = () => {
<div className='max-w-md xl:max-w-lg hidden lg:block'>
<picture>
<source srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'} type='image/webp' />
- <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} fetchpriority='high' className='rounded-xl' style={{ height: '100%', minWidth: '880px' }} width='100%' height='auto' alt='Swetrix Analytics dashboard' />
+ <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} className='rounded-xl' style={{ height: '100%', minWidth: '880px' }} width='100%' height='auto' alt='Swetrix Analytics dashboard' />
</picture>
</div>
</div>
<div className='my-10 block lg:hidden relative z-20 px-4 md:px-0'>
<picture>
<source srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'} type='image/webp' />
- <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} fetchpriority='high' className='rounded-xl shadow-colored-2xl w-full' width='100%' height='auto' alt='Swetrix Analytics dashboard' />
+ <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} className='rounded-xl shadow-colored-2xl w-full' width='100%' height='auto' alt='Swetrix Analytics dashboard' />
</picture>
</div>
</div>
@@ -113,7 +113,7 @@ const Main = () => {
<section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>
<picture>
<source srcSet='/assets/CoreFeaturesLight.webp' type='image/webp' />
- <img src='/assets/CoreFeaturesLight.png' fetchpriority='high' className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' alt='Core Analytics Features' />
+ <img src='/assets/CoreFeaturesLight.png' className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' alt='Core Analytics Features' />
</picture>
<div className='max-w-lg'>
<h1 className='font-extrabold text-4xl dark:text-white text-gray-800'>
@@ -124,7 +124,7 @@ const Main = () => {
</p>
<a href={LIVE_DEMO_URL} className='dark:text-indigo-400 text-indigo-700 font-bold border-0 flex items-center' target='_blank' rel='noopener noreferrer'>
{t('common.liveDemo')}
- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />
+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />
</a>
</div>
</section>
@@ -143,7 +143,7 @@ const Main = () => {
</p>
<Link to='#!' className='dark:text-indigo-400 text-indigo-700 font-bold border-0 flex items-center'>
{t('main.visitAddons')}
- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />
+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />
</Link>
</div>
<img className='md:max-w-[450px] lg:max-w-lg md:ml-5 mt-8 md:mt-0' src='/assets/teardown.svg' alt='Marketplace' />
@@ -170,7 +170,7 @@ const Main = () => {
))}
<Link to={routes.privacy} className='dark:text-indigo-400 text-indigo-700 font-bold border-0 flex items-center'>
{t('main.dataProtection')}
- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />
+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />
</Link>
</div>
</section>
@@ -362,7 +362,7 @@ const Main = () => {
</p>
<Link to={routes.signup} className='rounded-md border !duration-300 transition-all w-full max-w-[210px] h-[50px] flex items-center justify-center sm:mr-6 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 border-transparent'>
<span className='text-base font-semibold mr-1'>{t('main.start')}</span>
- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />
+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />
</Link>
</div>
<div className='max-w-md xl:max-w-lg block h-[450px] md:shadow-[8px_8px_10px_3px] md:rounded-md '>
diff --git a/src/pages/Project/ConfirmShare/index.jsx b/src/pages/Project/ConfirmShare/index.jsx
index a664cba68..4bd2e1121 100644
--- a/src/pages/Project/ConfirmShare/index.jsx
+++ b/src/pages/Project/ConfirmShare/index.jsx
@@ -2,7 +2,7 @@ import React, { useState, useEffect, memo } from 'react'
import { useDispatch } from 'react-redux'
import { useParams } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
-import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/solid'
+import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'
import _split from 'lodash/split'
import Title from 'components/Title'
diff --git a/src/pages/Project/Settings/People/People.jsx b/src/pages/Project/Settings/People/People.jsx
index 93841499f..e3e08d181 100644
--- a/src/pages/Project/Settings/People/People.jsx
+++ b/src/pages/Project/Settings/People/People.jsx
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useRef } from 'react'
-import { ChevronDownIcon, CheckIcon } from '@heroicons/react/solid'
-import { TrashIcon, UserAddIcon } from '@heroicons/react/outline'
+import { ChevronDownIcon, CheckIcon } from '@heroicons/react/24/solid'
+import { TrashIcon, UserPlusIcon } from '@heroicons/react/24/outline'
import { useTranslation } from 'react-i18next'
import cx from 'clsx'
import PropTypes from 'prop-types'
@@ -277,7 +277,7 @@ const People = ({
type='button'
onClick={() => setShowModal(true)}
>
- <UserAddIcon className='w-5 h-5 mr-1' />
+ <UserPlusIcon className='w-5 h-5 mr-1' />
{t('project.settings.invite')}
</Button>
</div>
diff --git a/src/pages/Project/Settings/ProjectSettings.jsx b/src/pages/Project/Settings/ProjectSettings.jsx
index 9347655ae..d0b99213b 100644
--- a/src/pages/Project/Settings/ProjectSettings.jsx
+++ b/src/pages/Project/Settings/ProjectSettings.jsx
@@ -16,7 +16,7 @@ import _keys from 'lodash/keys'
import _map from 'lodash/map'
import _includes from 'lodash/includes'
import PropTypes from 'prop-types'
-import { ExclamationIcon, TrashIcon } from '@heroicons/react/outline'
+import { ExclamationTriangleIcon, TrashIcon } from '@heroicons/react/24/outline'
import Title from 'components/Title'
import { withAuthentication, auth } from 'hoc/protected'
@@ -309,7 +309,7 @@ const ProjectSettings = ({
{t('project.settings.reset')}
</Button>
<Button className='ml-2' onClick={() => !projectDeleting && setShowDelete(true)} loading={projectDeleting} danger semiSmall>
- <ExclamationIcon className='w-5 h-5 mr-1' />
+ <ExclamationTriangleIcon className='w-5 h-5 mr-1' />
{t('project.settings.delete')}
</Button>
</div>
diff --git a/src/pages/Project/View/Panels.jsx b/src/pages/Project/View/Panels.jsx
index 1a4ce64e0..b7542aaf8 100644
--- a/src/pages/Project/View/Panels.jsx
+++ b/src/pages/Project/View/Panels.jsx
@@ -1,10 +1,10 @@
import React, {
memo, useState, useEffect, useMemo, Fragment,
} from 'react'
-import { ArrowSmUpIcon, ArrowSmDownIcon } from '@heroicons/react/solid'
+import { ArrowSmallUpIcon, ArrowSmallDownIcon } from '@heroicons/react/24/solid'
import {
- FilterIcon, MapIcon, ViewListIcon, ArrowsExpandIcon, ChartPieIcon,
-} from '@heroicons/react/outline'
+ FunnelIcon, MapIcon, Bars4Icon, ArrowsPointingOutIcon, ChartPieIcon,
+} from '@heroicons/react/24/outline'
import cx from 'clsx'
import PropTypes from 'prop-types'
import { pie } from 'billboard.js'
@@ -52,7 +52,7 @@ const PanelContainer = ({
{/* if it is a Country tab */}
{type === 'cc' && (
<div className='flex'>
- <ViewListIcon
+ <Bars4Icon
className={cx(iconClassName, 'cursor-pointer', {
'text-blue-500': activeFragment === 0,
'text-gray-900 dark:text-gray-50': activeFragment === 1,
@@ -66,7 +66,7 @@ const PanelContainer = ({
})}
onClick={() => setActiveFragment(1)}
/>
- <ArrowsExpandIcon
+ <ArrowsPointingOutIcon
className={cx(iconClassName, 'ml-2 cursor-pointer text-gray-900 dark:text-gray-50', {
hidden: activeFragment === 0,
})}
@@ -77,7 +77,7 @@ const PanelContainer = ({
{/* if this tab using Circle showing stats panel */}
{(type === 'ce' || type === 'os' || type === 'br' || type === 'dv') && (
<div className='flex'>
- <ViewListIcon
+ <Bars4Icon
className={cx(iconClassName, 'cursor-pointer', {
'text-blue-500': activeFragment === 0,
'text-gray-900 dark:text-gray-50': activeFragment === 1,
@@ -206,14 +206,14 @@ const Overview = ({
>
{pageviewsDidGrowUp ? (
<>
- <ArrowSmUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
+ <ArrowSmallUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
<span className='sr-only'>
{t('dashboard.inc')}
</span>
</>
) : (
<>
- <ArrowSmDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
+ <ArrowSmallDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
<span className='sr-only'>
{t('dashboard.dec')}
</span>
@@ -241,14 +241,14 @@ const Overview = ({
>
{uniqueDidGrowUp ? (
<>
- <ArrowSmUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
+ <ArrowSmallUpIcon className='self-center flex-shrink-0 h-4 w-4 text-green-500' />
<span className='sr-only'>
{t('dashboard.inc')}
</span>
</>
) : (
<>
- <ArrowSmDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
+ <ArrowSmallDownIcon className='self-center flex-shrink-0 h-4 w-4 text-red-500' />
<span className='sr-only'>
{t('dashboard.dec')}
</span>
@@ -541,14 +541,14 @@ const Panel = ({
>
{rowData}
{!hideFilters && (
- <FilterIcon className='ml-2 w-4 h-4 text-gray-500 hidden group-hover:block dark:text-gray-300' />
+ <FunnelIcon className='ml-2 w-4 h-4 text-gray-500 hidden group-hover:block dark:text-gray-300' />
)}
</a>
) : (
<span className={cx('flex items-center label', { capitalize })}>
{rowData}
{!hideFilters && (
- <FilterIcon className='ml-2 w-4 h-4 text-gray-500 hidden group-hover:block dark:text-gray-300' />
+ <FunnelIcon className='ml-2 w-4 h-4 text-gray-500 hidden group-hover:block dark:text-gray-300' />
)}
</span>
)}
diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsx
index cdf706375..7fbfe1436 100644
--- a/src/pages/Project/View/ViewProject.jsx
+++ b/src/pages/Project/View/ViewProject.jsx
@@ -8,8 +8,8 @@ import { saveAs } from 'file-saver'
import bb, { area } from 'billboard.js'
import Flag from 'react-flagkit'
import {
- GlobeIcon, TranslateIcon, DocumentTextIcon, DeviceMobileIcon, ArrowCircleRightIcon, SearchIcon, ServerIcon, DownloadIcon, CogIcon,
-} from '@heroicons/react/outline'
+ GlobeEuropeAfricaIcon, LanguageIcon, DocumentTextIcon, DevicePhoneMobileIcon, ArrowRightCircleIcon, MagnifyingGlassIcon, ServerIcon, ArrowDownTrayIcon, CogIcon,
+} from '@heroicons/react/24/outline'
import cx from 'clsx'
import * as d3 from 'd3'
import dayjs from 'dayjs'
@@ -232,12 +232,12 @@ const typeNameMapping = (t) => ({
export const iconClassName = 'w-6 h-6'
const panelIconMapping = {
- cc: <GlobeIcon className={iconClassName} />,
+ cc: <GlobeEuropeAfricaIcon className={iconClassName} />,
pg: <DocumentTextIcon className={iconClassName} />,
- lc: <TranslateIcon className={iconClassName} />,
- ref: <ArrowCircleRightIcon className={iconClassName} />,
- dv: <DeviceMobileIcon className={iconClassName} />,
- br: <SearchIcon className={iconClassName} />,
+ lc: <LanguageIcon className={iconClassName} />,
+ ref: <ArrowRightCircleIcon className={iconClassName} />,
+ dv: <DevicePhoneMobileIcon className={iconClassName} />,
+ br: <MagnifyingGlassIcon className={iconClassName} />,
os: <ServerIcon className={iconClassName} />,
}
@@ -755,7 +755,7 @@ const ViewProject = ({
<Dropdown
items={exportTypes}
title={[
- <DownloadIcon key='download-icon' className='w-5 h-5 mr-2' />,
+ <ArrowDownTrayIcon key='download-icon' className='w-5 h-5 mr-2' />,
<Fragment key='export-data'>
{t('project.exportData')}
</Fragment>,
diff --git a/src/pages/UserSettings/UserSettings.jsx b/src/pages/UserSettings/UserSettings.jsx
index 16aa06ebc..eef2e1de4 100644
--- a/src/pages/UserSettings/UserSettings.jsx
+++ b/src/pages/UserSettings/UserSettings.jsx
@@ -10,7 +10,7 @@ import _findIndex from 'lodash/findIndex'
import _map from 'lodash/map'
import _keys from 'lodash/keys'
import _isString from 'lodash/isString'
-import { MailIcon, ExclamationIcon, DownloadIcon } from '@heroicons/react/outline'
+import { EnvelopeIcon, ExclamationTriangleIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline'
import QRCode from 'react-qr-code'
import PropTypes from 'prop-types'
import dayjs from 'dayjs'
@@ -636,7 +636,7 @@ const UserSettings = ({
<hr className='mt-5' />
{!user.isActive && (
<div href='#' className='flex cursor-pointer mt-4 pl-0 underline text-blue-600 hover:text-indigo-800' onClick={() => onEmailConfirm(setError)}>
- <MailIcon className='mt-0.5 mr-2 w-6 h-6 text-blue-500' />
+ <EnvelopeIcon className='mt-0.5 mr-2 w-6 h-6 text-blue-500' />
{t('profileSettings.noLink')}
</div>
)}
@@ -646,7 +646,7 @@ const UserSettings = ({
semiSmall
primary
>
- <DownloadIcon className='w-5 h-5 mr-1' />
+ <ArrowDownTrayIcon className='w-5 h-5 mr-1' />
{t('profileSettings.requestExport')}
</Button>
<Button
@@ -655,7 +655,7 @@ const UserSettings = ({
semiSmall
danger
>
- <ExclamationIcon className='w-5 h-5 mr-1' />
+ <ExclamationTriangleIcon className='w-5 h-5 mr-1' />
{t('profileSettings.delete')}
</Button>
</div>
diff --git a/src/ui/Alert.jsx b/src/ui/Alert.jsx
index 539335e73..7db80f4d0 100644
--- a/src/ui/Alert.jsx
+++ b/src/ui/Alert.jsx
@@ -3,8 +3,8 @@ import React, { memo } from 'react'
import cx from 'clsx'
import PropTypes from 'prop-types'
import {
- CheckCircleIcon, InformationCircleIcon, XCircleIcon, XIcon,
-} from '@heroicons/react/solid'
+ CheckCircleIcon, InformationCircleIcon, XCircleIcon, XMarkIcon,
+} from '@heroicons/react/24/solid'
const AlertTemplate = ({
message, options, className, close,
@@ -46,7 +46,7 @@ const AlertTemplate = ({
})}
>
<span className='sr-only'>Dismiss</span>
- <XIcon className='h-5 w-5' />
+ <XMarkIcon className='h-5 w-5' />
</button>
</div>
)
diff --git a/src/ui/Dropdown.jsx b/src/ui/Dropdown.jsx
index 4d36de4f3..85b9d0736 100644
--- a/src/ui/Dropdown.jsx
+++ b/src/ui/Dropdown.jsx
@@ -1,6 +1,6 @@
import React, { memo, Fragment } from 'react'
import { Menu, Transition } from '@headlessui/react'
-import { ChevronDownIcon } from '@heroicons/react/solid'
+import { ChevronDownIcon } from '@heroicons/react/24/solid'
import cx from 'clsx'
import _map from 'lodash/map'
import _isEmpty from 'lodash/isEmpty'
diff --git a/src/ui/Input.jsx b/src/ui/Input.jsx
index b19b74df3..1ed33150a 100644
--- a/src/ui/Input.jsx
+++ b/src/ui/Input.jsx
@@ -2,7 +2,7 @@ import React, { memo } from 'react'
import cx from 'clsx'
import _isEmpty from 'lodash/isEmpty'
import PropTypes from 'prop-types'
-import { ExclamationCircleIcon } from '@heroicons/react/solid'
+import { ExclamationCircleIcon } from '@heroicons/react/24/solid'
import Beta from 'ui/Beta'
const Input = ({
diff --git a/src/ui/Modal.jsx b/src/ui/Modal.jsx
index 3314b0081..f6450cb25 100644
--- a/src/ui/Modal.jsx
+++ b/src/ui/Modal.jsx
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types'
import cx from 'clsx'
import { Dialog, Transition } from '@headlessui/react'
import {
- CheckIcon, ExclamationIcon, InformationCircleIcon, UserGroupIcon,
-} from '@heroicons/react/outline'
+ CheckIcon, ExclamationTriangleIcon, InformationCircleIcon, UserGroupIcon,
+} from '@heroicons/react/24/outline'
const Modal = ({
className, type, title, message, isOpened, onClose, onSubmit, closeText, submitText, submitType, size,
@@ -58,7 +58,7 @@ const Modal = ({
)}
{type === 'error' && (
<div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:h-10 sm:w-10'>
- <ExclamationIcon className='h-6 w-6 text-red-600' aria-hidden='true' />
+ <ExclamationTriangleIcon className='h-6 w-6 text-red-600' aria-hidden='true' />
</div>
)}
{type === 'info' && (
@@ -68,7 +68,7 @@ const Modal = ({
)}
{type === 'warning' && (
<div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-orange-100 sm:h-10 sm:w-10'>
- <ExclamationIcon className='h-6 w-6 text-amber-600' aria-hidden='true' />
+ <ExclamationTriangleIcon className='h-6 w-6 text-amber-600' aria-hidden='true' />
</div>
)}
{type === 'confirmed' && (
diff --git a/src/ui/Pagination.jsx b/src/ui/Pagination.jsx
index c474832a7..c1c5f57e7 100644
--- a/src/ui/Pagination.jsx
+++ b/src/ui/Pagination.jsx
@@ -1,5 +1,5 @@
import React, { memo } from 'react'
-import { ArrowNarrowLeftIcon, ArrowNarrowRightIcon } from '@heroicons/react/solid'
+import { ArrowLongLeftIcon, ArrowLongRightIcon } from '@heroicons/react/24/solid'
import _map from 'lodash/map'
import cx from 'clsx'
import { useTranslation } from 'react-i18next'
@@ -22,7 +22,7 @@ const Pagination = ({
onClick={() => setPage(page - 1)}
className='pt-4 pr-1 inline-flex items-center text-sm font-medium dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500'
>
- <ArrowNarrowLeftIcon className='mr-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
+ <ArrowLongLeftIcon className='mr-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
{ t('project.prev') }
</button>
)
@@ -64,7 +64,7 @@ const Pagination = ({
className='pt-4 pl-1 inline-flex items-center text-sm font-medium dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500'
>
{ t('project.next') }
- <ArrowNarrowRightIcon className='ml-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
+ <ArrowLongRightIcon className='ml-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
</button>
)
}
diff --git a/src/ui/Select.jsx b/src/ui/Select.jsx
index f885e1246..20a486415 100644
--- a/src/ui/Select.jsx
+++ b/src/ui/Select.jsx
@@ -2,7 +2,7 @@ import { Fragment, memo } from 'react'
import cx from 'clsx'
import PropTypes from 'prop-types'
import { Listbox, Transition } from '@headlessui/react'
-import { CheckIcon, SelectorIcon } from '@heroicons/react/solid'
+import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/24/solid'
import _map from 'lodash/map'
const Select = ({
@@ -16,7 +16,7 @@ const Select = ({
<Listbox.Button className='relative w-full bg-white border border-gray-300 dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm'>
<span className='block truncate capitalize'>{title}</span>
<span className='absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none'>
- <SelectorIcon className='h-5 w-5 text-gray-400' aria-hidden='true' />
+ <ChevronUpDownIcon className='h-5 w-5 text-gray-400' aria-hidden='true' />
</span>
</Listbox.Button>
diff --git a/src/ui/Tooltip.jsx b/src/ui/Tooltip.jsx
index c91ff03d2..e9b7a3e5d 100644
--- a/src/ui/Tooltip.jsx
+++ b/src/ui/Tooltip.jsx
@@ -1,6 +1,6 @@
import React, { memo } from 'react'
import PropTypes from 'prop-types'
-import { QuestionMarkCircleIcon } from '@heroicons/react/solid'
+import { QuestionMarkCircleIcon } from '@heroicons/react/24/solid'
import cx from 'clsx'
const Tooltip = ({