aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-03-22 02:33:33 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-03-21 21:24:35 +0000
commit2f3f2ae7f098376f535e5aa993c9eedc14e36f5d (patch)
treed919bda212744493a7b66c2e91a75455421d62cc /src/components/ui
parentUpgrade electron to '29.1.5' (diff)
downloadferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.gz
ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.zst
ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.zip
Upgrade node modules
Diffstat (limited to 'src/components/ui')
-rw-r--r--src/components/ui/AppLoader/index.tsx8
-rw-r--r--src/components/ui/FAB.tsx4
-rw-r--r--src/components/ui/FullscreenLoader/index.tsx10
-rw-r--r--src/components/ui/InfoBar.tsx14
-rw-r--r--src/components/ui/Infobox.tsx19
-rw-r--r--src/components/ui/Link.tsx12
-rw-r--r--src/components/ui/Modal/index.tsx8
-rw-r--r--src/components/ui/Radio.tsx6
-rw-r--r--src/components/ui/SearchInput.tsx6
-rw-r--r--src/components/ui/Select.tsx16
-rw-r--r--src/components/ui/ServiceIcon.tsx8
-rw-r--r--src/components/ui/Slider.tsx4
-rw-r--r--src/components/ui/StatusBarTargetUrl.tsx4
-rw-r--r--src/components/ui/Tabs/TabItem.tsx2
-rw-r--r--src/components/ui/Tabs/Tabs.tsx11
-rw-r--r--src/components/ui/WebviewLoader/index.tsx10
-rw-r--r--src/components/ui/badge/ProBadge.tsx4
-rw-r--r--src/components/ui/badge/index.tsx6
-rw-r--r--src/components/ui/button/index.tsx13
-rw-r--r--src/components/ui/colorPickerInput/index.tsx16
-rw-r--r--src/components/ui/effects/Appear.tsx2
-rw-r--r--src/components/ui/error/index.tsx2
-rw-r--r--src/components/ui/error/styles.ts2
-rw-r--r--src/components/ui/headline/index.tsx12
-rw-r--r--src/components/ui/icon/index.tsx6
-rw-r--r--src/components/ui/imageUpload/index.tsx10
-rw-r--r--src/components/ui/infobox/index.tsx6
-rw-r--r--src/components/ui/input/index.tsx24
-rw-r--r--src/components/ui/input/styles.ts4
-rw-r--r--src/components/ui/label/index.tsx6
-rw-r--r--src/components/ui/label/styles.ts2
-rw-r--r--src/components/ui/loader/index.tsx6
-rw-r--r--src/components/ui/select/index.tsx13
-rw-r--r--src/components/ui/textarea/index.tsx6
-rw-r--r--src/components/ui/textarea/styles.ts4
-rw-r--r--src/components/ui/toggle/index.tsx10
-rw-r--r--src/components/ui/wrapper/index.tsx4
37 files changed, 167 insertions, 133 deletions
diff --git a/src/components/ui/AppLoader/index.tsx b/src/components/ui/AppLoader/index.tsx
index 4b5828ef4..a2133e174 100644
--- a/src/components/ui/AppLoader/index.tsx
+++ b/src/components/ui/AppLoader/index.tsx
@@ -1,9 +1,9 @@
1import { Component, ReactElement } from 'react';
2import classnames from 'classnames'; 1import classnames from 'classnames';
3import withStyles, { WithStylesProps } from 'react-jss'; 2import { Component, type ReactElement } from 'react';
4import { Theme } from '../../../themes'; 3import withStyles, { type WithStylesProps } from 'react-jss';
5import FullscreenLoader from '../FullscreenLoader';
6import shuffleArray from '../../../helpers/array-helpers'; 4import shuffleArray from '../../../helpers/array-helpers';
5import type { Theme } from '../../../themes';
6import FullscreenLoader from '../FullscreenLoader';
7 7
8import styles from './styles'; 8import styles from './styles';
9 9
diff --git a/src/components/ui/FAB.tsx b/src/components/ui/FAB.tsx
index acb0f690e..b4eeace8b 100644
--- a/src/components/ui/FAB.tsx
+++ b/src/components/ui/FAB.tsx
@@ -1,7 +1,7 @@
1import { Component, ReactElement, ReactNode } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
4import { noop } from 'lodash'; 2import { noop } from 'lodash';
3import { observer } from 'mobx-react';
4import { Component, type ReactElement, type ReactNode } from 'react';
5 5
6interface IProps { 6interface IProps {
7 className: string; 7 className: string;
diff --git a/src/components/ui/FullscreenLoader/index.tsx b/src/components/ui/FullscreenLoader/index.tsx
index 09c1d5fbb..40b04abe8 100644
--- a/src/components/ui/FullscreenLoader/index.tsx
+++ b/src/components/ui/FullscreenLoader/index.tsx
@@ -1,11 +1,11 @@
1import { Component, ReactElement, ReactNode } from 'react';
2import { observer } from 'mobx-react';
3import withStyles, { WithStylesProps } from 'react-jss';
4import classnames from 'classnames'; 1import classnames from 'classnames';
2import { observer } from 'mobx-react';
3import { Component, type ReactElement, type ReactNode } from 'react';
4import withStyles, { type WithStylesProps } from 'react-jss';
5import type { Theme } from '../../../themes';
6import { H1 } from '../headline';
5import Loader from '../loader/index'; 7import Loader from '../loader/index';
6import styles from './styles'; 8import styles from './styles';
7import { H1 } from '../headline';
8import { Theme } from '../../../themes';
9 9
10interface IProps extends WithStylesProps<typeof styles> { 10interface IProps extends WithStylesProps<typeof styles> {
11 className?: string; 11 className?: string;
diff --git a/src/components/ui/InfoBar.tsx b/src/components/ui/InfoBar.tsx
index f3f1adbe7..5fd27f61a 100644
--- a/src/components/ui/InfoBar.tsx
+++ b/src/components/ui/InfoBar.tsx
@@ -1,14 +1,18 @@
1import { Component, MouseEventHandler, ReactNode } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
4import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; 2import { observer } from 'mobx-react';
3import { Component, type MouseEventHandler, type ReactNode } from 'react';
4import {
5 type WrappedComponentProps,
6 defineMessages,
7 injectIntl,
8} from 'react-intl';
5 9
6import { mdiClose } from '@mdi/js'; 10import { mdiClose } from '@mdi/js';
7import { noop } from 'lodash'; 11import { noop } from 'lodash';
8import Loader from './loader/index'; 12import { DEFAULT_LOADER_COLOR } from '../../config';
9import Appear from './effects/Appear'; 13import Appear from './effects/Appear';
10import Icon from './icon'; 14import Icon from './icon';
11import { DEFAULT_LOADER_COLOR } from '../../config'; 15import Loader from './loader/index';
12 16
13const messages = defineMessages({ 17const messages = defineMessages({
14 hide: { 18 hide: {
diff --git a/src/components/ui/Infobox.tsx b/src/components/ui/Infobox.tsx
index 14e1a581c..fc88c4654 100644
--- a/src/components/ui/Infobox.tsx
+++ b/src/components/ui/Infobox.tsx
@@ -1,12 +1,21 @@
1import { Component, MouseEventHandler, ReactElement, ReactNode } from 'react';
2import classnames from 'classnames';
3import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl';
4import { mdiAlert, mdiCheckboxMarkedCircleOutline, mdiClose } from '@mdi/js'; 1import { mdiAlert, mdiCheckboxMarkedCircleOutline, mdiClose } from '@mdi/js';
2import classnames from 'classnames';
5import { noop } from 'lodash'; 3import { noop } from 'lodash';
6import { observer } from 'mobx-react'; 4import { observer } from 'mobx-react';
7import Loader from './loader/index'; 5import {
8import Icon from './icon'; 6 Component,
7 type MouseEventHandler,
8 type ReactElement,
9 type ReactNode,
10} from 'react';
11import {
12 type WrappedComponentProps,
13 defineMessages,
14 injectIntl,
15} from 'react-intl';
9import { DEFAULT_LOADER_COLOR } from '../../config'; 16import { DEFAULT_LOADER_COLOR } from '../../config';
17import Icon from './icon';
18import Loader from './loader/index';
10 19
11const icons = { 20const icons = {
12 'checkbox-marked-circle-outline': mdiCheckboxMarkedCircleOutline, 21 'checkbox-marked-circle-outline': mdiCheckboxMarkedCircleOutline,
diff --git a/src/components/ui/Link.tsx b/src/components/ui/Link.tsx
index f9fdd57f9..816798d79 100644
--- a/src/components/ui/Link.tsx
+++ b/src/components/ui/Link.tsx
@@ -1,9 +1,14 @@
1import { Component, CSSProperties, ReactNode, MouseEvent } from 'react';
2import { inject, observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
2import { inject, observer } from 'mobx-react';
3import {
4 type CSSProperties,
5 Component,
6 type MouseEvent,
7 type ReactNode,
8} from 'react';
9import type { StoresProps } from '../../@types/ferdium-components.types';
4import matchRoute from '../../helpers/routing-helpers'; 10import matchRoute from '../../helpers/routing-helpers';
5import { openExternalUrl } from '../../helpers/url-helpers'; 11import { openExternalUrl } from '../../helpers/url-helpers';
6import { StoresProps } from '../../@types/ferdium-components.types';
7 12
8interface IProps extends Partial<StoresProps> { 13interface IProps extends Partial<StoresProps> {
9 children: ReactNode; 14 children: ReactNode;
@@ -54,7 +59,6 @@ class Link extends Component<IProps> {
54 }); 59 });
55 60
56 return ( 61 return (
57 // biome-ignore lint/a11y/useValidAnchor: <explanation>
58 <a 62 <a
59 href={router.history.createHref(to)} 63 href={router.history.createHref(to)}
60 className={linkClasses} 64 className={linkClasses}
diff --git a/src/components/ui/Modal/index.tsx b/src/components/ui/Modal/index.tsx
index 154beef0c..15326a289 100644
--- a/src/components/ui/Modal/index.tsx
+++ b/src/components/ui/Modal/index.tsx
@@ -1,8 +1,8 @@
1import { Component, ReactNode } from 'react';
2import ReactModal from 'react-modal';
3import classnames from 'classnames';
4import injectCSS, { WithStylesProps } from 'react-jss';
5import { mdiClose } from '@mdi/js'; 1import { mdiClose } from '@mdi/js';
2import classnames from 'classnames';
3import { Component, type ReactNode } from 'react';
4import injectCSS, { type WithStylesProps } from 'react-jss';
5import ReactModal from 'react-modal';
6 6
7import Icon from '../icon'; 7import Icon from '../icon';
8import styles from './styles'; 8import styles from './styles';
diff --git a/src/components/ui/Radio.tsx b/src/components/ui/Radio.tsx
index 901958c78..b556eb4ca 100644
--- a/src/components/ui/Radio.tsx
+++ b/src/components/ui/Radio.tsx
@@ -1,7 +1,7 @@
1import { Component } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
4import FieldInterface from 'mobx-react-form/lib/models/FieldInterface'; 2import { observer } from 'mobx-react';
3import type FieldInterface from 'mobx-react-form/lib/models/FieldInterface';
4import { Component } from 'react';
5// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> 5// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
6import Error from './error'; 6import Error from './error';
7 7
diff --git a/src/components/ui/SearchInput.tsx b/src/components/ui/SearchInput.tsx
index b2caaa1de..2e70d1b35 100644
--- a/src/components/ui/SearchInput.tsx
+++ b/src/components/ui/SearchInput.tsx
@@ -1,8 +1,8 @@
1import { ChangeEvent, Component, ReactElement } from 'react'; 1import { mdiCloseCircleOutline, mdiMagnify } from '@mdi/js';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 2import classnames from 'classnames';
4import { debounce, noop } from 'lodash'; 3import { debounce, noop } from 'lodash';
5import { mdiCloseCircleOutline, mdiMagnify } from '@mdi/js'; 4import { observer } from 'mobx-react';
5import { type ChangeEvent, Component, type ReactElement } from 'react';
6import Icon from './icon'; 6import Icon from './icon';
7 7
8interface IProps { 8interface IProps {
diff --git a/src/components/ui/Select.tsx b/src/components/ui/Select.tsx
index a2ed4216f..4abed849d 100644
--- a/src/components/ui/Select.tsx
+++ b/src/components/ui/Select.tsx
@@ -1,14 +1,14 @@
1import classnames from 'classnames';
2import { observer } from 'mobx-react';
1import { 3import {
2 createRef, 4 type ChangeEvent,
3 Component, 5 Component,
4 ReactElement, 6 type ReactElement,
5 RefObject, 7 type ReactNode,
6 ChangeEvent, 8 type RefObject,
7 ReactNode, 9 createRef,
8} from 'react'; 10} from 'react';
9import { observer } from 'mobx-react'; 11import type { Field } from '../../@types/mobx-form.types';
10import classnames from 'classnames';
11import { Field } from '../../@types/mobx-form.types';
12 12
13interface IProps { 13interface IProps {
14 field: Field; 14 field: Field;
diff --git a/src/components/ui/ServiceIcon.tsx b/src/components/ui/ServiceIcon.tsx
index 6920611d0..03a345c23 100644
--- a/src/components/ui/ServiceIcon.tsx
+++ b/src/components/ui/ServiceIcon.tsx
@@ -1,8 +1,8 @@
1import { Component, ReactNode } from 'react';
2import { observer } from 'mobx-react';
3import withStyles, { WithStylesProps } from 'react-jss';
4import classnames from 'classnames'; 1import classnames from 'classnames';
5import ServiceModel from '../../models/Service'; 2import { observer } from 'mobx-react';
3import { Component, type ReactNode } from 'react';
4import withStyles, { type WithStylesProps } from 'react-jss';
5import type ServiceModel from '../../models/Service';
6 6
7const styles = theme => ({ 7const styles = theme => ({
8 root: { 8 root: {
diff --git a/src/components/ui/Slider.tsx b/src/components/ui/Slider.tsx
index aa351ccd2..4f22290ef 100644
--- a/src/components/ui/Slider.tsx
+++ b/src/components/ui/Slider.tsx
@@ -1,7 +1,7 @@
1import { ChangeEvent, Component, ReactElement } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
4import { noop } from 'lodash'; 2import { noop } from 'lodash';
3import { observer } from 'mobx-react';
4import { type ChangeEvent, Component, type ReactElement } from 'react';
5 5
6interface IProps { 6interface IProps {
7 field: any; 7 field: any;
diff --git a/src/components/ui/StatusBarTargetUrl.tsx b/src/components/ui/StatusBarTargetUrl.tsx
index d969267eb..92cb6c36d 100644
--- a/src/components/ui/StatusBarTargetUrl.tsx
+++ b/src/components/ui/StatusBarTargetUrl.tsx
@@ -1,6 +1,6 @@
1import { Component } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
2import { observer } from 'mobx-react';
3import { Component } from 'react';
4import Appear from './effects/Appear'; 4import Appear from './effects/Appear';
5 5
6interface IProps { 6interface IProps {
diff --git a/src/components/ui/Tabs/TabItem.tsx b/src/components/ui/Tabs/TabItem.tsx
index 55dee42c6..df99a8bfb 100644
--- a/src/components/ui/Tabs/TabItem.tsx
+++ b/src/components/ui/Tabs/TabItem.tsx
@@ -1,4 +1,4 @@
1import { Fragment, ReactElement } from 'react'; 1import { Fragment, type ReactElement } from 'react';
2 2
3export interface IProps { 3export interface IProps {
4 children: 4 children:
diff --git a/src/components/ui/Tabs/Tabs.tsx b/src/components/ui/Tabs/Tabs.tsx
index d7f75c8b8..a5ec148aa 100644
--- a/src/components/ui/Tabs/Tabs.tsx
+++ b/src/components/ui/Tabs/Tabs.tsx
@@ -1,7 +1,12 @@
1import { Children, Component, ReactElement, ReactPortal } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 1import classnames from 'classnames';
4import { IProps as TabItemProps } from './TabItem'; 2import { observer } from 'mobx-react';
3import {
4 Children,
5 Component,
6 type ReactElement,
7 type ReactPortal,
8} from 'react';
9import type { IProps as TabItemProps } from './TabItem';
5 10
6interface IProps { 11interface IProps {
7 children: 12 children:
diff --git a/src/components/ui/WebviewLoader/index.tsx b/src/components/ui/WebviewLoader/index.tsx
index c4e9c724c..53e10d3b9 100644
--- a/src/components/ui/WebviewLoader/index.tsx
+++ b/src/components/ui/WebviewLoader/index.tsx
@@ -1,7 +1,11 @@
1import { Component, ReactElement } from 'react';
2import { observer } from 'mobx-react'; 1import { observer } from 'mobx-react';
3import injectSheet, { WithStylesProps } from 'react-jss'; 2import { Component, type ReactElement } from 'react';
4import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; 3import {
4 type WrappedComponentProps,
5 defineMessages,
6 injectIntl,
7} from 'react-intl';
8import injectSheet, { type WithStylesProps } from 'react-jss';
5import FullscreenLoader from '../FullscreenLoader'; 9import FullscreenLoader from '../FullscreenLoader';
6 10
7const messages = defineMessages({ 11const messages = defineMessages({
diff --git a/src/components/ui/badge/ProBadge.tsx b/src/components/ui/badge/ProBadge.tsx
index a5947d3a8..fd5752ed0 100644
--- a/src/components/ui/badge/ProBadge.tsx
+++ b/src/components/ui/badge/ProBadge.tsx
@@ -1,9 +1,9 @@
1import { mdiStar } from '@mdi/js'; 1import { mdiStar } from '@mdi/js';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import { Component } from 'react'; 3import { Component } from 'react';
4import injectStyle, { WithStylesProps } from 'react-jss'; 4import injectStyle, { type WithStylesProps } from 'react-jss';
5 5
6import { Theme } from '../../../themes'; 6import type { Theme } from '../../../themes';
7import Icon from '../icon'; 7import Icon from '../icon';
8import Badge from './index'; 8import Badge from './index';
9 9
diff --git a/src/components/ui/badge/index.tsx b/src/components/ui/badge/index.tsx
index 44fbf2d4a..e464c07ec 100644
--- a/src/components/ui/badge/index.tsx
+++ b/src/components/ui/badge/index.tsx
@@ -1,8 +1,8 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { Component, ReactNode } from 'react'; 2import { Component, type ReactNode } from 'react';
3import injectStyle, { WithStylesProps } from 'react-jss'; 3import injectStyle, { type WithStylesProps } from 'react-jss';
4 4
5import { Theme } from '../../../themes'; 5import type { Theme } from '../../../themes';
6 6
7const badgeStyles = (theme: Theme) => { 7const badgeStyles = (theme: Theme) => {
8 const styles = {}; 8 const styles = {};
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx
index 3247072a9..5c606f274 100644
--- a/src/components/ui/button/index.tsx
+++ b/src/components/ui/button/index.tsx
@@ -1,14 +1,14 @@
1/* eslint-disable no-use-before-define */ 1/* eslint-disable no-use-before-define */
2import Icon from '@mdi/react'; 2import Icon from '@mdi/react';
3import classnames from 'classnames'; 3import classnames from 'classnames';
4import { Property } from 'csstype'; 4import type { Property } from 'csstype';
5import { noop } from 'lodash'; 5import { noop } from 'lodash';
6import { Component, MouseEventHandler } from 'react'; 6import { Component, type MouseEventHandler } from 'react';
7import withStyles, { WithStylesProps } from 'react-jss'; 7import withStyles, { type WithStylesProps } from 'react-jss';
8import Loader from '../loader/index';
9import { Theme } from '../../../themes';
10import { IFormField } from '../typings/generic';
11import { DEFAULT_LOADER_COLOR } from '../../../config'; 8import { DEFAULT_LOADER_COLOR } from '../../../config';
9import type { Theme } from '../../../themes';
10import Loader from '../loader/index';
11import type { IFormField } from '../typings/generic';
12 12
13type ButtonType = 13type ButtonType =
14 | 'primary' 14 | 'primary'
@@ -206,7 +206,6 @@ class ButtonComponent extends Component<IProps, IState> {
206 ); 206 );
207 207
208 const wrapperComponent = href ? ( 208 const wrapperComponent = href ? (
209 // biome-ignore lint/a11y/useValidAnchor: <explanation>
210 <a 209 <a
211 href={href} 210 href={href}
212 target={target} 211 target={target}
diff --git a/src/components/ui/colorPickerInput/index.tsx b/src/components/ui/colorPickerInput/index.tsx
index 39fd0220a..4870a3675 100644
--- a/src/components/ui/colorPickerInput/index.tsx
+++ b/src/components/ui/colorPickerInput/index.tsx
@@ -1,15 +1,15 @@
1import classnames from 'classnames';
2import { noop } from 'lodash';
3import { observer } from 'mobx-react';
1import { 4import {
2 ChangeEvent, 5 type ChangeEvent,
3 Component, 6 Component,
7 type InputHTMLAttributes,
8 type RefObject,
4 createRef, 9 createRef,
5 InputHTMLAttributes,
6 RefObject,
7} from 'react'; 10} from 'react';
8import { observer } from 'mobx-react'; 11import { type Color, type ColorResult, SliderPicker } from 'react-color';
9import classnames from 'classnames'; 12import type { FormFields } from '../../../@types/mobx-form.types';
10import { Color, ColorResult, SliderPicker } from 'react-color';
11import { noop } from 'lodash';
12import { FormFields } from '../../../@types/mobx-form.types';
13 13
14interface IProps extends InputHTMLAttributes<HTMLInputElement>, FormFields { 14interface IProps extends InputHTMLAttributes<HTMLInputElement>, FormFields {
15 onColorChange: (event: ChangeEvent<HTMLInputElement>) => void; 15 onColorChange: (event: ChangeEvent<HTMLInputElement>) => void;
diff --git a/src/components/ui/effects/Appear.tsx b/src/components/ui/effects/Appear.tsx
index 06f63a029..c32c339fd 100644
--- a/src/components/ui/effects/Appear.tsx
+++ b/src/components/ui/effects/Appear.tsx
@@ -1,4 +1,4 @@
1import { ReactElement, ReactNode, useEffect, useState } from 'react'; 1import { type ReactElement, type ReactNode, useEffect, useState } from 'react';
2import { CSSTransition, TransitionGroup } from 'react-transition-group'; 2import { CSSTransition, TransitionGroup } from 'react-transition-group';
3 3
4interface IProps { 4interface IProps {
diff --git a/src/components/ui/error/index.tsx b/src/components/ui/error/index.tsx
index 01fb5ca27..d0008529f 100644
--- a/src/components/ui/error/index.tsx
+++ b/src/components/ui/error/index.tsx
@@ -1,4 +1,4 @@
1import { Classes } from 'jss'; 1import type { Classes } from 'jss';
2import { Component } from 'react'; 2import { Component } from 'react';
3import injectSheet from 'react-jss'; 3import injectSheet from 'react-jss';
4 4
diff --git a/src/components/ui/error/styles.ts b/src/components/ui/error/styles.ts
index 9da95705a..ac781052f 100644
--- a/src/components/ui/error/styles.ts
+++ b/src/components/ui/error/styles.ts
@@ -1,4 +1,4 @@
1import { Theme } from '../../../themes'; 1import type { Theme } from '../../../themes';
2 2
3export default (theme: Theme) => ({ 3export default (theme: Theme) => ({
4 message: { 4 message: {
diff --git a/src/components/ui/headline/index.tsx b/src/components/ui/headline/index.tsx
index 8e40fa896..2070745bb 100644
--- a/src/components/ui/headline/index.tsx
+++ b/src/components/ui/headline/index.tsx
@@ -1,15 +1,15 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { 2import {
3 Component, 3 Component,
4 type MouseEventHandler,
5 type ReactElement,
6 type ReactNode,
4 createElement, 7 createElement,
5 MouseEventHandler,
6 ReactElement,
7 ReactNode,
8} from 'react'; 8} from 'react';
9import injectStyle, { WithStylesProps } from 'react-jss'; 9import injectStyle, { type WithStylesProps } from 'react-jss';
10 10
11import { Theme } from '../../../themes'; 11import type { Theme } from '../../../themes';
12import { Omit } from '../typings/generic'; 12import type { Omit } from '../typings/generic';
13 13
14const styles = (theme: Theme) => ({ 14const styles = (theme: Theme) => ({
15 headline: { 15 headline: {
diff --git a/src/components/ui/icon/index.tsx b/src/components/ui/icon/index.tsx
index 04a00d0e0..ad9f43730 100644
--- a/src/components/ui/icon/index.tsx
+++ b/src/components/ui/icon/index.tsx
@@ -1,9 +1,9 @@
1import MdiIcon from '@mdi/react'; 1import MdiIcon from '@mdi/react';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import { Component, ReactElement } from 'react'; 3import { Component, type ReactElement } from 'react';
4import injectStyle, { WithStylesProps } from 'react-jss'; 4import injectStyle, { type WithStylesProps } from 'react-jss';
5 5
6import { Theme } from '../../../themes'; 6import type { Theme } from '../../../themes';
7 7
8const styles = (theme: Theme) => ({ 8const styles = (theme: Theme) => ({
9 icon: { 9 icon: {
diff --git a/src/components/ui/imageUpload/index.tsx b/src/components/ui/imageUpload/index.tsx
index 3b164ed41..876572484 100644
--- a/src/components/ui/imageUpload/index.tsx
+++ b/src/components/ui/imageUpload/index.tsx
@@ -1,11 +1,11 @@
1import { Component, ReactElement } from 'react';
2import { observer } from 'mobx-react';
3import classnames from 'classnames';
4import Dropzone from 'react-dropzone';
5import { mdiDelete, mdiFileImage } from '@mdi/js'; 1import { mdiDelete, mdiFileImage } from '@mdi/js';
2import classnames from 'classnames';
3import { observer } from 'mobx-react';
6import prettyBytes from 'pretty-bytes'; 4import prettyBytes from 'pretty-bytes';
7import Icon from '../icon'; 5import { Component, type ReactElement } from 'react';
6import Dropzone from 'react-dropzone';
8import { isWindows } from '../../../environment'; 7import { isWindows } from '../../../environment';
8import Icon from '../icon';
9 9
10interface IProps { 10interface IProps {
11 field: any; 11 field: any;
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx
index a1c4f9d21..36ea6a59f 100644
--- a/src/components/ui/infobox/index.tsx
+++ b/src/components/ui/infobox/index.tsx
@@ -2,9 +2,9 @@
2import { mdiClose } from '@mdi/js'; 2import { mdiClose } from '@mdi/js';
3import classnames from 'classnames'; 3import classnames from 'classnames';
4import { noop } from 'lodash'; 4import { noop } from 'lodash';
5import { Component, ReactElement, ReactNode } from 'react'; 5import { Component, type ReactElement, type ReactNode } from 'react';
6import withStyles, { WithStylesProps } from 'react-jss'; 6import withStyles, { type WithStylesProps } from 'react-jss';
7import { Theme } from '../../../themes'; 7import type { Theme } from '../../../themes';
8import Icon from '../icon'; 8import Icon from '../icon';
9 9
10const buttonStyles = (theme: Theme) => { 10const buttonStyles = (theme: Theme) => {
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx
index 68cc9ee22..c61efe570 100644
--- a/src/components/ui/input/index.tsx
+++ b/src/components/ui/input/index.tsx
@@ -1,22 +1,26 @@
1import { mdiEye, mdiEyeOff } from '@mdi/js'; 1import { mdiEye, mdiEyeOff } from '@mdi/js';
2import classnames from 'classnames'; 2import classnames from 'classnames';
3import { noop } from 'lodash';
4import { observer } from 'mobx-react';
3import { 5import {
4 Component, 6 Component,
7 type InputHTMLAttributes,
8 type KeyboardEvent,
9 type ReactElement,
10 type RefObject,
5 createRef, 11 createRef,
6 InputHTMLAttributes,
7 ReactElement,
8 RefObject,
9 KeyboardEvent,
10} from 'react'; 12} from 'react';
11import withStyles, { WithStylesProps } from 'react-jss'; 13import {
12import { noop } from 'lodash'; 14 type WrappedComponentProps,
13import { observer } from 'mobx-react'; 15 defineMessages,
14import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; 16 injectIntl,
15import Icon from '../icon'; 17} from 'react-intl';
16import { IFormField } from '../typings/generic'; 18import withStyles, { type WithStylesProps } from 'react-jss';
17// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> 19// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
18import Error from '../error'; 20import Error from '../error';
21import Icon from '../icon';
19import Label from '../label'; 22import Label from '../label';
23import type { IFormField } from '../typings/generic';
20import Wrapper from '../wrapper'; 24import Wrapper from '../wrapper';
21import { scorePasswordFunc } from './scorePassword'; 25import { scorePasswordFunc } from './scorePassword';
22import styles from './styles'; 26import styles from './styles';
diff --git a/src/components/ui/input/styles.ts b/src/components/ui/input/styles.ts
index ebae0e40d..580c72889 100644
--- a/src/components/ui/input/styles.ts
+++ b/src/components/ui/input/styles.ts
@@ -1,6 +1,6 @@
1import { Property } from 'csstype'; 1import type { Property } from 'csstype';
2 2
3import { Theme } from '../../../themes'; 3import type { Theme } from '../../../themes';
4 4
5const prefixStyles = (theme: Theme) => ({ 5const prefixStyles = (theme: Theme) => ({
6 background: theme.inputPrefixBackground, 6 background: theme.inputPrefixBackground,
diff --git a/src/components/ui/label/index.tsx b/src/components/ui/label/index.tsx
index 5f5cc5c8e..c0a3903b0 100644
--- a/src/components/ui/label/index.tsx
+++ b/src/components/ui/label/index.tsx
@@ -1,8 +1,8 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { Component, LabelHTMLAttributes } from 'react'; 2import { Component, type LabelHTMLAttributes } from 'react';
3import injectSheet, { WithStylesProps } from 'react-jss'; 3import injectSheet, { type WithStylesProps } from 'react-jss';
4 4
5import { IFormField } from '../typings/generic'; 5import type { IFormField } from '../typings/generic';
6 6
7import styles from './styles'; 7import styles from './styles';
8 8
diff --git a/src/components/ui/label/styles.ts b/src/components/ui/label/styles.ts
index faa44ae5b..fecfa1816 100644
--- a/src/components/ui/label/styles.ts
+++ b/src/components/ui/label/styles.ts
@@ -1,4 +1,4 @@
1import { Theme } from '../../../themes'; 1import type { Theme } from '../../../themes';
2 2
3export default (theme: Theme) => ({ 3export default (theme: Theme) => ({
4 content: {}, 4 content: {},
diff --git a/src/components/ui/loader/index.tsx b/src/components/ui/loader/index.tsx
index c0ae15028..8757985b9 100644
--- a/src/components/ui/loader/index.tsx
+++ b/src/components/ui/loader/index.tsx
@@ -1,9 +1,9 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { inject } from 'mobx-react';
2import { Component } from 'react'; 3import { Component } from 'react';
3import injectStyle, { WithStylesProps } from 'react-jss'; 4import injectStyle, { type WithStylesProps } from 'react-jss';
4import { Oval } from 'react-loader-spinner'; 5import { Oval } from 'react-loader-spinner';
5import { inject } from 'mobx-react'; 6import type { FerdiumStores } from '../../../@types/stores.types';
6import { FerdiumStores } from '../../../@types/stores.types';
7import { DEFAULT_LOADER_COLOR } from '../../../config'; 7import { DEFAULT_LOADER_COLOR } from '../../../config';
8 8
9const styles = () => ({ 9const styles = () => ({
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx
index 0d8520f58..2716ebc2d 100644
--- a/src/components/ui/select/index.tsx
+++ b/src/components/ui/select/index.tsx
@@ -5,14 +5,19 @@ import {
5} from '@mdi/js'; 5} from '@mdi/js';
6import Icon from '@mdi/react'; 6import Icon from '@mdi/react';
7import classnames from 'classnames'; 7import classnames from 'classnames';
8import { ChangeEvent, Component, createRef, ReactElement } from 'react';
9import withStyles, { WithStylesProps } from 'react-jss';
10import { noop } from 'lodash'; 8import { noop } from 'lodash';
11import { Theme } from '../../../themes'; 9import {
12import { IFormField } from '../typings/generic'; 10 type ChangeEvent,
11 Component,
12 type ReactElement,
13 createRef,
14} from 'react';
15import withStyles, { type WithStylesProps } from 'react-jss';
16import type { Theme } from '../../../themes';
13// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> 17// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
14import Error from '../error'; 18import Error from '../error';
15import Label from '../label'; 19import Label from '../label';
20import type { IFormField } from '../typings/generic';
16import Wrapper from '../wrapper'; 21import Wrapper from '../wrapper';
17 22
18let popupTransition: string = 'none'; 23let popupTransition: string = 'none';
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx
index 0967c4c25..4a0e77afe 100644
--- a/src/components/ui/textarea/index.tsx
+++ b/src/components/ui/textarea/index.tsx
@@ -1,9 +1,9 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { Component, createRef, TextareaHTMLAttributes } from 'react'; 2import { Component, type TextareaHTMLAttributes, createRef } from 'react';
3import injectSheet, { WithStylesProps } from 'react-jss'; 3import injectSheet, { type WithStylesProps } from 'react-jss';
4 4
5import { noop } from 'lodash'; 5import { noop } from 'lodash';
6import { IFormField } from '../typings/generic'; 6import type { IFormField } from '../typings/generic';
7 7
8// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> 8// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
9import Error from '../error'; 9import Error from '../error';
diff --git a/src/components/ui/textarea/styles.ts b/src/components/ui/textarea/styles.ts
index 36fc2a82e..c4c27b95d 100644
--- a/src/components/ui/textarea/styles.ts
+++ b/src/components/ui/textarea/styles.ts
@@ -1,6 +1,6 @@
1import { Property } from 'csstype'; 1import type { Property } from 'csstype';
2 2
3import { Theme } from '../../../themes'; 3import type { Theme } from '../../../themes';
4 4
5export default (theme: Theme) => ({ 5export default (theme: Theme) => ({
6 label: { 6 label: {
diff --git a/src/components/ui/toggle/index.tsx b/src/components/ui/toggle/index.tsx
index 878ffecdc..dc426b3a1 100644
--- a/src/components/ui/toggle/index.tsx
+++ b/src/components/ui/toggle/index.tsx
@@ -1,13 +1,13 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { Property } from 'csstype'; 2import type { Property } from 'csstype';
3import { noop } from 'lodash'; 3import { noop } from 'lodash';
4import { Component, InputHTMLAttributes, ReactElement } from 'react'; 4import { Component, type InputHTMLAttributes, type ReactElement } from 'react';
5import withStyles, { WithStylesProps } from 'react-jss'; 5import withStyles, { type WithStylesProps } from 'react-jss';
6import { Theme } from '../../../themes'; 6import type { Theme } from '../../../themes';
7// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> 7// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
8import Error from '../error'; 8import Error from '../error';
9import Label from '../label'; 9import Label from '../label';
10import { IFormField } from '../typings/generic'; 10import type { IFormField } from '../typings/generic';
11import Wrapper from '../wrapper'; 11import Wrapper from '../wrapper';
12 12
13const buttonTransition: string = window?.matchMedia( 13const buttonTransition: string = window?.matchMedia(
diff --git a/src/components/ui/wrapper/index.tsx b/src/components/ui/wrapper/index.tsx
index 450d09fd1..081b13b36 100644
--- a/src/components/ui/wrapper/index.tsx
+++ b/src/components/ui/wrapper/index.tsx
@@ -1,6 +1,6 @@
1import classnames from 'classnames'; 1import classnames from 'classnames';
2import { Component, ReactNode } from 'react'; 2import { Component, type ReactNode } from 'react';
3import injectStyle, { WithStylesProps } from 'react-jss'; 3import injectStyle, { type WithStylesProps } from 'react-jss';
4 4
5// eslint-disable-next-line no-use-before-define 5// eslint-disable-next-line no-use-before-define
6interface IProps extends WithStylesProps<typeof styles> { 6interface IProps extends WithStylesProps<typeof styles> {