diff --git a/packages/web-react/src/components/Accordion/Accordion.tsx b/packages/web-react/src/components/Accordion/Accordion.tsx index 0a03a513fa..89522afffd 100644 --- a/packages/web-react/src/components/Accordion/Accordion.tsx +++ b/packages/web-react/src/components/Accordion/Accordion.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { AccordionProps } from '../../types'; import { AccordionProvider } from './AccordionContext'; diff --git a/packages/web-react/src/components/Accordion/AccordionContent.tsx b/packages/web-react/src/components/Accordion/AccordionContent.tsx index f71675e608..ba4628c45b 100644 --- a/packages/web-react/src/components/Accordion/AccordionContent.tsx +++ b/packages/web-react/src/components/Accordion/AccordionContent.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { AccordionContentProps } from '../../types'; import { Collapse } from '../Collapse'; diff --git a/packages/web-react/src/components/Accordion/AccordionHeader.tsx b/packages/web-react/src/components/Accordion/AccordionHeader.tsx index ccf79e3f47..751a8ca0b8 100644 --- a/packages/web-react/src/components/Accordion/AccordionHeader.tsx +++ b/packages/web-react/src/components/Accordion/AccordionHeader.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { AccordionHeaderProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/Accordion/AccordionItem.tsx b/packages/web-react/src/components/Accordion/AccordionItem.tsx index c933a5bfdf..33f9ad0d97 100644 --- a/packages/web-react/src/components/Accordion/AccordionItem.tsx +++ b/packages/web-react/src/components/Accordion/AccordionItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { AccordionItemProps } from '../../types'; import { AccordionItemProvider } from './AccordionItemContext'; diff --git a/packages/web-react/src/components/Accordion/__tests__/Accordion.test.tsx b/packages/web-react/src/components/Accordion/__tests__/Accordion.test.tsx index c7f28bcf43..3d5540f749 100644 --- a/packages/web-react/src/components/Accordion/__tests__/Accordion.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/Accordion.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx index a2369542f8..1bc0fb4e8f 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx index 243b710602..3fad7d491d 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx index a647bbc5c1..4e9e8a77fd 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx b/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx index 1627ffb5b7..c989f5ce19 100644 --- a/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Accordion/demo/AccordionUncontrolled.tsx b/packages/web-react/src/components/Accordion/demo/AccordionUncontrolled.tsx index 9f0f90be6b..c8f9da5ca9 100644 --- a/packages/web-react/src/components/Accordion/demo/AccordionUncontrolled.tsx +++ b/packages/web-react/src/components/Accordion/demo/AccordionUncontrolled.tsx @@ -1,7 +1,7 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; import { ComponentStory } from '@storybook/react'; +import React from 'react'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; import AccordionContent from '../AccordionContent'; diff --git a/packages/web-react/src/components/Accordion/demo/index.tsx b/packages/web-react/src/components/Accordion/demo/index.tsx index 224000fbf5..25d0bee286 100644 --- a/packages/web-react/src/components/Accordion/demo/index.tsx +++ b/packages/web-react/src/components/Accordion/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import AccordionBasic from './AccordionBasic'; diff --git a/packages/web-react/src/components/Accordion/stories/Accordion.stories.tsx b/packages/web-react/src/components/Accordion/stories/Accordion.stories.tsx index 4be621554f..408ccf6a62 100644 --- a/packages/web-react/src/components/Accordion/stories/Accordion.stories.tsx +++ b/packages/web-react/src/components/Accordion/stories/Accordion.stories.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AccordionOpenStateType, AccordionProps } from '../../../types'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; diff --git a/packages/web-react/src/components/Accordion/stories/AccordionContent.stories.tsx b/packages/web-react/src/components/Accordion/stories/AccordionContent.stories.tsx index bca97adc75..b8dc8de0b8 100644 --- a/packages/web-react/src/components/Accordion/stories/AccordionContent.stories.tsx +++ b/packages/web-react/src/components/Accordion/stories/AccordionContent.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AccordionContentProps, AccordionOpenStateType } from '../../../types'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; diff --git a/packages/web-react/src/components/Accordion/stories/AccordionHeader.stories.tsx b/packages/web-react/src/components/Accordion/stories/AccordionHeader.stories.tsx index 88c33b04bd..ec505257c0 100644 --- a/packages/web-react/src/components/Accordion/stories/AccordionHeader.stories.tsx +++ b/packages/web-react/src/components/Accordion/stories/AccordionHeader.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AccordionHeaderProps, AccordionOpenStateType } from '../../../types'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; diff --git a/packages/web-react/src/components/Accordion/stories/AccordionItem.stories.tsx b/packages/web-react/src/components/Accordion/stories/AccordionItem.stories.tsx index 57051631a5..1eb6d228d0 100644 --- a/packages/web-react/src/components/Accordion/stories/AccordionItem.stories.tsx +++ b/packages/web-react/src/components/Accordion/stories/AccordionItem.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AccordionItemProps, AccordionOpenStateType } from '../../../types'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; diff --git a/packages/web-react/src/components/Accordion/stories/UncontrolledAccordion.stories.tsx b/packages/web-react/src/components/Accordion/stories/UncontrolledAccordion.stories.tsx index 579d6e7ec8..591a1362f9 100644 --- a/packages/web-react/src/components/Accordion/stories/UncontrolledAccordion.stories.tsx +++ b/packages/web-react/src/components/Accordion/stories/UncontrolledAccordion.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Link } from '../../Link'; import { Pill } from '../../Pill'; import { Accordion, AccordionHeader, AccordionContent, AccordionItem, UncontrolledAccordion } from '..'; diff --git a/packages/web-react/src/components/Alert/Alert.tsx b/packages/web-react/src/components/Alert/Alert.tsx index ce4d6852ff..99a6ad45a3 100644 --- a/packages/web-react/src/components/Alert/Alert.tsx +++ b/packages/web-react/src/components/Alert/Alert.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, useContext } from 'react'; import classNames from 'classnames'; +import React, { ElementType, useContext } from 'react'; import IconsContext from '../../context/IconsContext'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritAlertProps } from '../../types'; diff --git a/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx b/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx index 1546d168e4..65f2bbe20f 100644 --- a/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx +++ b/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { emotionColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Alert/demo/index.tsx b/packages/web-react/src/components/Alert/demo/index.tsx index 201758ec07..59066737ef 100644 --- a/packages/web-react/src/components/Alert/demo/index.tsx +++ b/packages/web-react/src/components/Alert/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import AlertCentered from './AlertCentered'; diff --git a/packages/web-react/src/components/Alert/stories/Alert.stories.tsx b/packages/web-react/src/components/Alert/stories/Alert.stories.tsx index 087e2ebb8f..c309b1ddec 100644 --- a/packages/web-react/src/components/Alert/stories/Alert.stories.tsx +++ b/packages/web-react/src/components/Alert/stories/Alert.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { EmotionColors } from '../../../constants'; import ReadMe from '../README.md'; import { Alert } from '..'; diff --git a/packages/web-react/src/components/Alert/useAlertStyleProps.ts b/packages/web-react/src/components/Alert/useAlertStyleProps.ts index ef37436ec8..66c1683d92 100644 --- a/packages/web-react/src/components/Alert/useAlertStyleProps.ts +++ b/packages/web-react/src/components/Alert/useAlertStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { SpiritAlertProps, AlertProps } from '../../types'; diff --git a/packages/web-react/src/components/Breadcrumbs/Breadcrumbs.tsx b/packages/web-react/src/components/Breadcrumbs/Breadcrumbs.tsx index fb5a080186..ca917038d5 100644 --- a/packages/web-react/src/components/Breadcrumbs/Breadcrumbs.tsx +++ b/packages/web-react/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, Fragment } from 'react'; import classNames from 'classnames'; +import React, { ElementType, Fragment } from 'react'; import { useStyleProps } from '../../hooks/styleProps'; import { SpiritBreadcrumbsProps } from '../../types'; import BreadcrumbsItem from './BreadcrumbsItem'; diff --git a/packages/web-react/src/components/Breadcrumbs/BreadcrumbsItem.tsx b/packages/web-react/src/components/Breadcrumbs/BreadcrumbsItem.tsx index eeb875f2ae..88b8ff4bc3 100644 --- a/packages/web-react/src/components/Breadcrumbs/BreadcrumbsItem.tsx +++ b/packages/web-react/src/components/Breadcrumbs/BreadcrumbsItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritBreadcrumbsItemProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx b/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx index d891064714..4f64b79df0 100644 --- a/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +++ b/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx b/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx index dab133c81b..ed88d014fa 100644 --- a/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx +++ b/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Breadcrumbs/demo/index.tsx b/packages/web-react/src/components/Breadcrumbs/demo/index.tsx index 25f5387aad..9c02229b7b 100644 --- a/packages/web-react/src/components/Breadcrumbs/demo/index.tsx +++ b/packages/web-react/src/components/Breadcrumbs/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import BreadcrumbsCurrentWithoutLink from './BreadcrumbsCurrentWithoutLink'; diff --git a/packages/web-react/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx b/packages/web-react/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx index b2a82381e9..f4fe9df1a7 100644 --- a/packages/web-react/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx +++ b/packages/web-react/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import ReadMe from '../README.md'; import { Breadcrumbs } from '..'; diff --git a/packages/web-react/src/components/Breadcrumbs/stories/BreadcrumbsItem.stories.tsx b/packages/web-react/src/components/Breadcrumbs/stories/BreadcrumbsItem.stories.tsx index 3260da26d6..d4f8fefceb 100644 --- a/packages/web-react/src/components/Breadcrumbs/stories/BreadcrumbsItem.stories.tsx +++ b/packages/web-react/src/components/Breadcrumbs/stories/BreadcrumbsItem.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Breadcrumbs, BreadcrumbsItem } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Button/Button.tsx b/packages/web-react/src/components/Button/Button.tsx index eda3b79da4..ee373f30e0 100644 --- a/packages/web-react/src/components/Button/Button.tsx +++ b/packages/web-react/src/components/Button/Button.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritButtonProps } from '../../types'; import { Spinner } from '../Spinner'; diff --git a/packages/web-react/src/components/Button/__tests__/Button.test.tsx b/packages/web-react/src/components/Button/__tests__/Button.test.tsx index a5a842bf71..15a0014b35 100644 --- a/packages/web-react/src/components/Button/__tests__/Button.test.tsx +++ b/packages/web-react/src/components/Button/__tests__/Button.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { actionColorPropsTest, diff --git a/packages/web-react/src/components/Button/demo/index.tsx b/packages/web-react/src/components/Button/demo/index.tsx index dd4990d954..93f511ca5d 100644 --- a/packages/web-react/src/components/Button/demo/index.tsx +++ b/packages/web-react/src/components/Button/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import ButtonDefault from './ButtonDefault'; diff --git a/packages/web-react/src/components/Button/stories/Button.stories.tsx b/packages/web-react/src/components/Button/stories/Button.stories.tsx index 0ac3d9dc75..d5cd880c4c 100644 --- a/packages/web-react/src/components/Button/stories/Button.stories.tsx +++ b/packages/web-react/src/components/Button/stories/Button.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ActionColors, EmotionColors, Sizes } from '../../../constants'; import { Icon } from '../../Icon'; import ReadMe from '../README.md'; diff --git a/packages/web-react/src/components/Button/useButtonStyleProps.ts b/packages/web-react/src/components/Button/useButtonStyleProps.ts index a003af75c6..7e4913d8ab 100644 --- a/packages/web-react/src/components/Button/useButtonStyleProps.ts +++ b/packages/web-react/src/components/Button/useButtonStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { warning } from '../../common/utilities'; import { useClassNamePrefix } from '../../hooks'; import { ButtonColor, ButtonSize, SpiritButtonProps } from '../../types'; diff --git a/packages/web-react/src/components/ButtonLink/ButtonLink.tsx b/packages/web-react/src/components/ButtonLink/ButtonLink.tsx index 9a1ec50b0e..7a812fad49 100644 --- a/packages/web-react/src/components/ButtonLink/ButtonLink.tsx +++ b/packages/web-react/src/components/ButtonLink/ButtonLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritButtonLinkProps } from '../../types'; import { Spinner } from '../Spinner'; diff --git a/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx b/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx index 4c052947a2..ffc9190494 100644 --- a/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx +++ b/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { actionColorPropsTest, diff --git a/packages/web-react/src/components/ButtonLink/demo/index.tsx b/packages/web-react/src/components/ButtonLink/demo/index.tsx index b99840e12f..10d6f50969 100644 --- a/packages/web-react/src/components/ButtonLink/demo/index.tsx +++ b/packages/web-react/src/components/ButtonLink/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import ButtonLinkDefault from './ButtonLinkDefault'; diff --git a/packages/web-react/src/components/ButtonLink/stories/ButtonLink.stories.tsx b/packages/web-react/src/components/ButtonLink/stories/ButtonLink.stories.tsx index 63da04c249..fa601f230b 100644 --- a/packages/web-react/src/components/ButtonLink/stories/ButtonLink.stories.tsx +++ b/packages/web-react/src/components/ButtonLink/stories/ButtonLink.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ActionColors, EmotionColors, Sizes } from '../../../constants'; import { Icon } from '../../Icon'; import ReadMe from '../README.md'; diff --git a/packages/web-react/src/components/ButtonLink/useButtonLinkStyleProps.ts b/packages/web-react/src/components/ButtonLink/useButtonLinkStyleProps.ts index 71a1c08de9..4b7e207b1c 100644 --- a/packages/web-react/src/components/ButtonLink/useButtonLinkStyleProps.ts +++ b/packages/web-react/src/components/ButtonLink/useButtonLinkStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { warning } from '../../common/utilities'; import { useClassNamePrefix } from '../../hooks'; import { ButtonColor, ButtonSize, SpiritButtonProps } from '../../types'; diff --git a/packages/web-react/src/components/Checkbox/Checkbox.tsx b/packages/web-react/src/components/Checkbox/Checkbox.tsx index e81db5ebff..06f20c4e2f 100644 --- a/packages/web-react/src/components/Checkbox/Checkbox.tsx +++ b/packages/web-react/src/components/Checkbox/Checkbox.tsx @@ -1,5 +1,5 @@ -import React, { forwardRef, ForwardedRef } from 'react'; import classNames from 'classnames'; +import React, { forwardRef, ForwardedRef } from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritCheckboxProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx b/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx index 1793a14eeb..7e9abf38a0 100644 --- a/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx +++ b/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { itemPropsTest } from '../../../../tests/providerTests/itemPropsTest'; diff --git a/packages/web-react/src/components/Checkbox/stories/Checkbox.stories.tsx b/packages/web-react/src/components/Checkbox/stories/Checkbox.stories.tsx index 50d56b13bb..a7505d58ce 100644 --- a/packages/web-react/src/components/Checkbox/stories/Checkbox.stories.tsx +++ b/packages/web-react/src/components/Checkbox/stories/Checkbox.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import ReadMe from '../README.md'; import { Checkbox } from '..'; diff --git a/packages/web-react/src/components/Collapse/Collapse.tsx b/packages/web-react/src/components/Collapse/Collapse.tsx index c27b8edbaf..b9c9505f1c 100644 --- a/packages/web-react/src/components/Collapse/Collapse.tsx +++ b/packages/web-react/src/components/Collapse/Collapse.tsx @@ -1,5 +1,5 @@ -import React, { MutableRefObject, useRef } from 'react'; import classNames from 'classnames'; +import React, { MutableRefObject, useRef } from 'react'; import { Transition, TransitionStatus } from 'react-transition-group'; import { useStyleProps } from '../../hooks'; import { SpiritCollapseProps } from '../../types'; diff --git a/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx b/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx index 0527db333a..e4d813dc1e 100644 --- a/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx +++ b/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Collapse/demo/Collapse.tsx b/packages/web-react/src/components/Collapse/demo/Collapse.tsx index c3106ba12c..63bf42699d 100644 --- a/packages/web-react/src/components/Collapse/demo/Collapse.tsx +++ b/packages/web-react/src/components/Collapse/demo/Collapse.tsx @@ -1,7 +1,7 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; import { ComponentStory } from '@storybook/react'; +import React from 'react'; import { Button } from '../../Button'; import { useCollapse, Collapse } from '../index'; diff --git a/packages/web-react/src/components/Collapse/demo/CollapseUncontrolled.tsx b/packages/web-react/src/components/Collapse/demo/CollapseUncontrolled.tsx index eabda667cf..635643dc1d 100644 --- a/packages/web-react/src/components/Collapse/demo/CollapseUncontrolled.tsx +++ b/packages/web-react/src/components/Collapse/demo/CollapseUncontrolled.tsx @@ -1,7 +1,7 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; import { ComponentStory } from '@storybook/react'; +import React from 'react'; import UncontrolledCollapse from '../UncontrolledCollapse'; import { content, CollapseTrigger } from './Collapse'; diff --git a/packages/web-react/src/components/Collapse/demo/index.tsx b/packages/web-react/src/components/Collapse/demo/index.tsx index f32eec5900..fa13c2328a 100644 --- a/packages/web-react/src/components/Collapse/demo/index.tsx +++ b/packages/web-react/src/components/Collapse/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import CollapseDefault from './CollapseDefault'; diff --git a/packages/web-react/src/components/Collapse/stories/Collapse.stories.tsx b/packages/web-react/src/components/Collapse/stories/Collapse.stories.tsx index b8bf4832b5..9d1a281020 100644 --- a/packages/web-react/src/components/Collapse/stories/Collapse.stories.tsx +++ b/packages/web-react/src/components/Collapse/stories/Collapse.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SpiritCollapseProps } from '../../../types'; import { Button } from '../../Button'; import ReadMe from '../README.md'; diff --git a/packages/web-react/src/components/Collapse/stories/UncontrolledCollapse.stories.tsx b/packages/web-react/src/components/Collapse/stories/UncontrolledCollapse.stories.tsx index b3421d5e27..377dc6c8eb 100644 --- a/packages/web-react/src/components/Collapse/stories/UncontrolledCollapse.stories.tsx +++ b/packages/web-react/src/components/Collapse/stories/UncontrolledCollapse.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../../Button'; import { UncontrolledCollapse } from '..'; import content from './content'; diff --git a/packages/web-react/src/components/Collapse/useResizeHeight.ts b/packages/web-react/src/components/Collapse/useResizeHeight.ts index d0246dc962..7e3e292b55 100644 --- a/packages/web-react/src/components/Collapse/useResizeHeight.ts +++ b/packages/web-react/src/components/Collapse/useResizeHeight.ts @@ -1,5 +1,5 @@ -import { useState, RefObject } from 'react'; import useResizeObserver from '@react-hook/resize-observer'; +import { useState, RefObject } from 'react'; export const useResizeHeight = (ref: RefObject): string => { const [height, setHeight] = useState('0px'); diff --git a/packages/web-react/src/components/Container/Container.tsx b/packages/web-react/src/components/Container/Container.tsx index 3e52764eaa..713ff4058d 100644 --- a/packages/web-react/src/components/Container/Container.tsx +++ b/packages/web-react/src/components/Container/Container.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks/styleProps'; import { useClassNamePrefix } from '../../hooks/useClassNamePrefix'; import { ChildrenProps, StyleProps, TransferProps } from '../../types'; diff --git a/packages/web-react/src/components/Container/__tests__/Container.test.tsx b/packages/web-react/src/components/Container/__tests__/Container.test.tsx index 4ad2086be9..6f3003a04c 100644 --- a/packages/web-react/src/components/Container/__tests__/Container.test.tsx +++ b/packages/web-react/src/components/Container/__tests__/Container.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Container/stories/Container.stories.tsx b/packages/web-react/src/components/Container/stories/Container.stories.tsx index ff0cbded20..5b93ae6fa2 100644 --- a/packages/web-react/src/components/Container/stories/Container.stories.tsx +++ b/packages/web-react/src/components/Container/stories/Container.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import DocsBox from '../../../../docs/DocsBox'; import ReadMe from '../README.md'; import { Container } from '..'; diff --git a/packages/web-react/src/components/Dropdown/Dropdown.tsx b/packages/web-react/src/components/Dropdown/Dropdown.tsx index ec1e171011..b23c6f5188 100644 --- a/packages/web-react/src/components/Dropdown/Dropdown.tsx +++ b/packages/web-react/src/components/Dropdown/Dropdown.tsx @@ -1,8 +1,8 @@ /** * @deprecated Dropdown component is deprecated and will be removed in the next major version. Please use "DropdownModern" component instead. */ -import React, { LegacyRef, createElement, useRef } from 'react'; import classNames from 'classnames'; +import React, { LegacyRef, createElement, useRef } from 'react'; import { Placements } from '../../constants'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritDropdownProps } from '../../types'; diff --git a/packages/web-react/src/components/Dropdown/DropdownModern.tsx b/packages/web-react/src/components/Dropdown/DropdownModern.tsx index 680da7faba..27c84a6f70 100644 --- a/packages/web-react/src/components/Dropdown/DropdownModern.tsx +++ b/packages/web-react/src/components/Dropdown/DropdownModern.tsx @@ -1,5 +1,5 @@ -import React, { useRef } from 'react'; import classNames from 'classnames'; +import React, { useRef } from 'react'; import { useClickOutside, useDeprecationMessage, useStyleProps } from '../../hooks'; import { ChildrenProps, SpiritDropdownModernProps } from '../../types'; import { DropdownProvider } from './DropdownContext'; diff --git a/packages/web-react/src/components/Dropdown/DropdownPopover.tsx b/packages/web-react/src/components/Dropdown/DropdownPopover.tsx index b09efd8f22..c0f2eda86c 100644 --- a/packages/web-react/src/components/Dropdown/DropdownPopover.tsx +++ b/packages/web-react/src/components/Dropdown/DropdownPopover.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ChildrenProps, StyleProps } from '../../types'; import { useDropdownContext } from './DropdownContext'; diff --git a/packages/web-react/src/components/Dropdown/UncontrolledDropdown.tsx b/packages/web-react/src/components/Dropdown/UncontrolledDropdown.tsx index a23bd9f4e1..4007aa2db5 100644 --- a/packages/web-react/src/components/Dropdown/UncontrolledDropdown.tsx +++ b/packages/web-react/src/components/Dropdown/UncontrolledDropdown.tsx @@ -1,5 +1,5 @@ -import React, { useRef } from 'react'; import classNames from 'classnames'; +import React, { useRef } from 'react'; import { useStyleProps } from '../../hooks'; import { UncontrolledDropdownProps } from '../../types'; import { DropdownProvider } from './DropdownContext'; diff --git a/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx b/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx index d34ee83d7b..e73ccaa501 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, fireEvent } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Dropdown/__tests__/DropdownModern.test.tsx b/packages/web-react/src/components/Dropdown/__tests__/DropdownModern.test.tsx index 4dd6a48cb3..4253d02bf3 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/DropdownModern.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/DropdownModern.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, fireEvent } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Dropdown/demo/index.tsx b/packages/web-react/src/components/Dropdown/demo/index.tsx index f3ef687a2b..e36a49d96f 100644 --- a/packages/web-react/src/components/Dropdown/demo/index.tsx +++ b/packages/web-react/src/components/Dropdown/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import DropdownDisabledAutoclose from './DropdownDisabledAutoclose'; diff --git a/packages/web-react/src/components/Dropdown/stories/Dropdown.stories.tsx b/packages/web-react/src/components/Dropdown/stories/Dropdown.stories.tsx index 0df6e89b7d..0b64479a3e 100644 --- a/packages/web-react/src/components/Dropdown/stories/Dropdown.stories.tsx +++ b/packages/web-react/src/components/Dropdown/stories/Dropdown.stories.tsx @@ -1,6 +1,6 @@ -import React, { Ref } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { Ref } from 'react'; import { Button, Icon, Text } from '../..'; import { Placements } from '../../../constants'; import { DropdownFullWidthModes } from '../../../types'; diff --git a/packages/web-react/src/components/DropdownModern/demo/index.tsx b/packages/web-react/src/components/DropdownModern/demo/index.tsx index 47a23afd31..166b3f28ff 100644 --- a/packages/web-react/src/components/DropdownModern/demo/index.tsx +++ b/packages/web-react/src/components/DropdownModern/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import DropdownModernDisabledAutoclose from './DropdownModernDisabledAutoclose'; diff --git a/packages/web-react/src/components/DropdownModern/stories/DropdownModern.stories.tsx b/packages/web-react/src/components/DropdownModern/stories/DropdownModern.stories.tsx index d1077f440e..1efc86e5d8 100644 --- a/packages/web-react/src/components/DropdownModern/stories/DropdownModern.stories.tsx +++ b/packages/web-react/src/components/DropdownModern/stories/DropdownModern.stories.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { Button, Icon, Text } from '../..'; import { Placements } from '../../../constants'; import { DropdownFullWidthModes, SpiritDropdownModernProps } from '../../../types'; diff --git a/packages/web-react/src/components/DropdownModern/stories/DropdownPopover.stories.tsx b/packages/web-react/src/components/DropdownModern/stories/DropdownPopover.stories.tsx index 5b985d438b..3d43954931 100644 --- a/packages/web-react/src/components/DropdownModern/stories/DropdownPopover.stories.tsx +++ b/packages/web-react/src/components/DropdownModern/stories/DropdownPopover.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button, Icon, Text } from '../..'; import { DropdownModern, DropdownPopover, DropdownTrigger } from '../../Dropdown'; import ReadMe from '../../Dropdown/README.md'; diff --git a/packages/web-react/src/components/DropdownModern/stories/DropdownTrigger.stories.tsx b/packages/web-react/src/components/DropdownModern/stories/DropdownTrigger.stories.tsx index 661e3ae8ed..cad6a412b0 100644 --- a/packages/web-react/src/components/DropdownModern/stories/DropdownTrigger.stories.tsx +++ b/packages/web-react/src/components/DropdownModern/stories/DropdownTrigger.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../../Button'; import { DropdownTrigger } from '../../Dropdown'; import ReadMe from '../../Dropdown/README.md'; diff --git a/packages/web-react/src/components/DropdownModern/stories/UncontolledDropdown.stories.tsx b/packages/web-react/src/components/DropdownModern/stories/UncontolledDropdown.stories.tsx index 1b0a4a5fe0..76296f55d6 100644 --- a/packages/web-react/src/components/DropdownModern/stories/UncontolledDropdown.stories.tsx +++ b/packages/web-react/src/components/DropdownModern/stories/UncontolledDropdown.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button, Icon, Text } from '../..'; import { Placements } from '../../../constants'; import { DropdownFullWidthModes } from '../../../types'; diff --git a/packages/web-react/src/components/Field/__tests__/HelperText.test.tsx b/packages/web-react/src/components/Field/__tests__/HelperText.test.tsx index 0b12fe114f..46e798d827 100644 --- a/packages/web-react/src/components/Field/__tests__/HelperText.test.tsx +++ b/packages/web-react/src/components/Field/__tests__/HelperText.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import HelperText from '../HelperText'; diff --git a/packages/web-react/src/components/Field/__tests__/ValidationText.test.tsx b/packages/web-react/src/components/Field/__tests__/ValidationText.test.tsx index 716d2fabdf..d0074dafa0 100644 --- a/packages/web-react/src/components/Field/__tests__/ValidationText.test.tsx +++ b/packages/web-react/src/components/Field/__tests__/ValidationText.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import ValidationText from '../ValidationText'; diff --git a/packages/web-react/src/components/Field/__tests__/useAriaIds.test.tsx b/packages/web-react/src/components/Field/__tests__/useAriaIds.test.tsx index 1db81648f7..77df1b3f7e 100644 --- a/packages/web-react/src/components/Field/__tests__/useAriaIds.test.tsx +++ b/packages/web-react/src/components/Field/__tests__/useAriaIds.test.tsx @@ -1,5 +1,5 @@ -import React, { useEffect } from 'react'; import { render } from '@testing-library/react'; +import React, { useEffect } from 'react'; import '@testing-library/jest-dom'; import useAriaIds from '../useAriaIds'; diff --git a/packages/web-react/src/components/FieldGroup/FieldGroup.tsx b/packages/web-react/src/components/FieldGroup/FieldGroup.tsx index d7a5240b60..2eb7d7b2c8 100644 --- a/packages/web-react/src/components/FieldGroup/FieldGroup.tsx +++ b/packages/web-react/src/components/FieldGroup/FieldGroup.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritFieldGroupProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx b/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx index 183ad3a37a..309529c3d1 100644 --- a/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx +++ b/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/FieldGroup/stories/FieldGroup.stories.tsx b/packages/web-react/src/components/FieldGroup/stories/FieldGroup.stories.tsx index c4055253d1..e83c56093e 100644 --- a/packages/web-react/src/components/FieldGroup/stories/FieldGroup.stories.tsx +++ b/packages/web-react/src/components/FieldGroup/stories/FieldGroup.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import DocsBox from '../../../../docs/DocsBox'; import { ValidationStates } from '../../../constants'; import { Checkbox } from '../../Checkbox'; diff --git a/packages/web-react/src/components/FileUploader/AttachmentActionButton.tsx b/packages/web-react/src/components/FileUploader/AttachmentActionButton.tsx index 1408c296bd..756d98959e 100644 --- a/packages/web-react/src/components/FileUploader/AttachmentActionButton.tsx +++ b/packages/web-react/src/components/FileUploader/AttachmentActionButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritAttachmentActionButtonProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/FileUploader/AttachmentDismissButton.tsx b/packages/web-react/src/components/FileUploader/AttachmentDismissButton.tsx index dda982e859..88048e2bdc 100644 --- a/packages/web-react/src/components/FileUploader/AttachmentDismissButton.tsx +++ b/packages/web-react/src/components/FileUploader/AttachmentDismissButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritAttachmentDismissButtonProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/FileUploader/FileUploader.tsx b/packages/web-react/src/components/FileUploader/FileUploader.tsx index 855dc10008..006eaff903 100644 --- a/packages/web-react/src/components/FileUploader/FileUploader.tsx +++ b/packages/web-react/src/components/FileUploader/FileUploader.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritFileUploaderProps } from '../../types'; import { diff --git a/packages/web-react/src/components/FileUploader/FileUploaderAttachment.tsx b/packages/web-react/src/components/FileUploader/FileUploaderAttachment.tsx index dd09e12fe5..1efc5f71ca 100644 --- a/packages/web-react/src/components/FileUploader/FileUploaderAttachment.tsx +++ b/packages/web-react/src/components/FileUploader/FileUploaderAttachment.tsx @@ -1,5 +1,5 @@ -import React, { MouseEvent, RefObject, useRef, useState } from 'react'; import classNames from 'classnames'; +import React, { MouseEvent, RefObject, useRef, useState } from 'react'; import { useClassNamePrefix, useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritFileUploaderAttachmentProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx b/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx index a1a0998a9f..98f0f9e1f3 100644 --- a/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx +++ b/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritFileUploaderInputProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/FileUploader/FileUploaderList.tsx b/packages/web-react/src/components/FileUploader/FileUploaderList.tsx index 619ebdeda1..771d15ede7 100644 --- a/packages/web-react/src/components/FileUploader/FileUploaderList.tsx +++ b/packages/web-react/src/components/FileUploader/FileUploaderList.tsx @@ -1,5 +1,5 @@ -import React, { useMemo } from 'react'; import classNames from 'classnames'; +import React, { useMemo } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritFileUploaderListProps } from '../../types'; import { useFileUploaderContext } from './FileUploaderContext'; diff --git a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx index f1f2805e95..513a74c855 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { SpiritFileUploaderAttachmentProps } from '../../../types'; import FileUploader from '../FileUploader'; import FileUploaderList from '../FileUploaderList'; diff --git a/packages/web-react/src/components/FileUploader/demo/index.tsx b/packages/web-react/src/components/FileUploader/demo/index.tsx index 18da6a5740..dfd252597f 100644 --- a/packages/web-react/src/components/FileUploader/demo/index.tsx +++ b/packages/web-react/src/components/FileUploader/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import FileUploaderAttachment from './FileUploaderAttachment'; diff --git a/packages/web-react/src/components/FileUploader/stories/FileUploader.stories.tsx b/packages/web-react/src/components/FileUploader/stories/FileUploader.stories.tsx index a0d592ec76..49d1bcd111 100644 --- a/packages/web-react/src/components/FileUploader/stories/FileUploader.stories.tsx +++ b/packages/web-react/src/components/FileUploader/stories/FileUploader.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SpiritFileUploaderAttachmentProps, SpiritFileUploaderProps } from '../../../types'; import ReadMe from '../README.md'; import { FileUploader, FileUploaderAttachment, FileUploaderInput, FileUploaderList, useFileQueue } from '..'; diff --git a/packages/web-react/src/components/FileUploader/stories/FileUploaderInput.stories.tsx b/packages/web-react/src/components/FileUploader/stories/FileUploaderInput.stories.tsx index 157490a793..e04502e076 100644 --- a/packages/web-react/src/components/FileUploader/stories/FileUploaderInput.stories.tsx +++ b/packages/web-react/src/components/FileUploader/stories/FileUploaderInput.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import { SpiritFileUploaderAttachmentProps, SpiritFileUploaderInputProps } from '../../../types'; import { FileUploader, FileUploaderAttachment, FileUploaderInput, FileUploaderList, useFileQueue } from '..'; diff --git a/packages/web-react/src/components/FileUploader/stories/FileUploaderList.stories.tsx b/packages/web-react/src/components/FileUploader/stories/FileUploaderList.stories.tsx index 0b550fc622..9406a785bf 100644 --- a/packages/web-react/src/components/FileUploader/stories/FileUploaderList.stories.tsx +++ b/packages/web-react/src/components/FileUploader/stories/FileUploaderList.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SpiritFileUploaderAttachmentProps, SpiritFileUploaderListProps } from '../../../types'; import { FileUploader, FileUploaderAttachment, FileUploaderInput, FileUploaderList, useFileQueue } from '..'; diff --git a/packages/web-react/src/components/FileUploader/stories/UncontrolledFileUploader.stories.tsx b/packages/web-react/src/components/FileUploader/stories/UncontrolledFileUploader.stories.tsx index 3eab8a9f0b..9209e5934b 100644 --- a/packages/web-react/src/components/FileUploader/stories/UncontrolledFileUploader.stories.tsx +++ b/packages/web-react/src/components/FileUploader/stories/UncontrolledFileUploader.stories.tsx @@ -1,5 +1,5 @@ -import React, { createRef, FormEvent, MutableRefObject, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { createRef, FormEvent, MutableRefObject, useState } from 'react'; import { ValidationStates } from '../../../constants'; import { FileQueueMapType, diff --git a/packages/web-react/src/components/FileUploader/useFileUploaderStyleProps.ts b/packages/web-react/src/components/FileUploader/useFileUploaderStyleProps.ts index da2e88bbec..88e5228bb4 100644 --- a/packages/web-react/src/components/FileUploader/useFileUploaderStyleProps.ts +++ b/packages/web-react/src/components/FileUploader/useFileUploaderStyleProps.ts @@ -1,5 +1,5 @@ -import { CSSProperties } from 'react'; import classNames from 'classnames'; +import { CSSProperties } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { FileMetadata, FileUploaderQueueLimitBehaviorType, Validation } from '../../types'; import { FileUploaderCropCSS, IMAGE_DIMENSION } from './constants'; diff --git a/packages/web-react/src/components/Grid/Grid.tsx b/packages/web-react/src/components/Grid/Grid.tsx index 3c48637df3..6bfb2bfc4d 100644 --- a/packages/web-react/src/components/Grid/Grid.tsx +++ b/packages/web-react/src/components/Grid/Grid.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritGridProps } from '../../types'; import { useGridStyleProps } from './useGridStyleProps'; diff --git a/packages/web-react/src/components/Grid/GridItem.tsx b/packages/web-react/src/components/Grid/GridItem.tsx index 7b4af418f9..851b34bbe1 100644 --- a/packages/web-react/src/components/Grid/GridItem.tsx +++ b/packages/web-react/src/components/Grid/GridItem.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritGridItemProps } from '../../types'; import { useGridItemStyleProps } from './useGridItemStyleProps'; diff --git a/packages/web-react/src/components/Grid/GridSpan.tsx b/packages/web-react/src/components/Grid/GridSpan.tsx index 7795b5cb8b..f5dcd8c235 100644 --- a/packages/web-react/src/components/Grid/GridSpan.tsx +++ b/packages/web-react/src/components/Grid/GridSpan.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useDeprecationMessage } from '../../hooks'; import { useStyleProps } from '../../hooks/styleProps'; import { SpiritGridSpanProps } from '../../types'; diff --git a/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx b/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx index 21e5c5f34a..97c9105cc4 100644 --- a/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx +++ b/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx b/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx index fa633569c7..19591a0f4b 100644 --- a/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx +++ b/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Grid/__tests__/GridSpan.test.tsx b/packages/web-react/src/components/Grid/__tests__/GridSpan.test.tsx index ef1dce6afb..2d83bc2dde 100644 --- a/packages/web-react/src/components/Grid/__tests__/GridSpan.test.tsx +++ b/packages/web-react/src/components/Grid/__tests__/GridSpan.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Grid/stories/Grid.stories.tsx b/packages/web-react/src/components/Grid/stories/Grid.stories.tsx index 3804cf9d5d..81b5fae2aa 100644 --- a/packages/web-react/src/components/Grid/stories/Grid.stories.tsx +++ b/packages/web-react/src/components/Grid/stories/Grid.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import DocsBox from '../../../../docs/DocsBox'; import ReadMe from '../README.md'; import { Grid } from '..'; diff --git a/packages/web-react/src/components/Grid/stories/GridItem.stories.tsx b/packages/web-react/src/components/Grid/stories/GridItem.stories.tsx index b3afd73fa8..e6e9f633a5 100644 --- a/packages/web-react/src/components/Grid/stories/GridItem.stories.tsx +++ b/packages/web-react/src/components/Grid/stories/GridItem.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import DocsBox from '../../../../docs/DocsBox'; import { Grid, GridItem } from '..'; diff --git a/packages/web-react/src/components/Grid/useGridSpanStyleProps.ts b/packages/web-react/src/components/Grid/useGridSpanStyleProps.ts index e34e599834..c8ffd524a0 100644 --- a/packages/web-react/src/components/Grid/useGridSpanStyleProps.ts +++ b/packages/web-react/src/components/Grid/useGridSpanStyleProps.ts @@ -1,6 +1,6 @@ /* eslint no-console: ["error", { allow: ["warn"] }] */ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks/useClassNamePrefix'; import { SpiritGridSpanProps } from '../../types'; import { useGridClasses } from './useGridClasses'; diff --git a/packages/web-react/src/components/Grid/useGridStyleProps.ts b/packages/web-react/src/components/Grid/useGridStyleProps.ts index 21dae72ac8..e85bab6917 100644 --- a/packages/web-react/src/components/Grid/useGridStyleProps.ts +++ b/packages/web-react/src/components/Grid/useGridStyleProps.ts @@ -1,6 +1,6 @@ /* eslint no-console: ["error", { allow: ["warn"] }] */ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix, useDeprecationMessage } from '../../hooks'; import { SpiritGridProps } from '../../types'; import { useGridClasses } from './useGridClasses'; diff --git a/packages/web-react/src/components/Header/Header.tsx b/packages/web-react/src/components/Header/Header.tsx index 2003d91ac8..ee43a7661f 100644 --- a/packages/web-react/src/components/Header/Header.tsx +++ b/packages/web-react/src/components/Header/Header.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderProps } from '../../types'; import { HEADER_COLOR_DEFAULT } from './constants'; diff --git a/packages/web-react/src/components/Header/HeaderButton.tsx b/packages/web-react/src/components/Header/HeaderButton.tsx index 8300157ca0..4e98f7e58c 100644 --- a/packages/web-react/src/components/Header/HeaderButton.tsx +++ b/packages/web-react/src/components/Header/HeaderButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderButtonProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderDesktopActions.tsx b/packages/web-react/src/components/Header/HeaderDesktopActions.tsx index 066c010118..28362e24f4 100644 --- a/packages/web-react/src/components/Header/HeaderDesktopActions.tsx +++ b/packages/web-react/src/components/Header/HeaderDesktopActions.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDesktopActionsProps } from '../../types'; import { HEADER_ACTIONS_COLOR_DEFAULT } from './constants'; diff --git a/packages/web-react/src/components/Header/HeaderDialog.tsx b/packages/web-react/src/components/Header/HeaderDialog.tsx index 453433824c..22bcfdd555 100644 --- a/packages/web-react/src/components/Header/HeaderDialog.tsx +++ b/packages/web-react/src/components/Header/HeaderDialog.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps, useLastActiveFocus } from '../../hooks'; import { HeaderDialogProps } from '../../types'; import { Dialog } from '../Dialog'; diff --git a/packages/web-react/src/components/Header/HeaderDialogActions.tsx b/packages/web-react/src/components/Header/HeaderDialogActions.tsx index 4e1466acf7..6fbf43e37d 100644 --- a/packages/web-react/src/components/Header/HeaderDialogActions.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogActions.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDialogActionsProps } from '../../types'; import { HEADER_ACTIONS_COLOR_DEFAULT } from './constants'; diff --git a/packages/web-react/src/components/Header/HeaderDialogButton.tsx b/packages/web-react/src/components/Header/HeaderDialogButton.tsx index c7b981cebc..f077442988 100644 --- a/packages/web-react/src/components/Header/HeaderDialogButton.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDialogButtonProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderDialogCloseButton.tsx b/packages/web-react/src/components/Header/HeaderDialogCloseButton.tsx index a0f6c5e40c..f947b7bec3 100644 --- a/packages/web-react/src/components/Header/HeaderDialogCloseButton.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogCloseButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ClickEvent, HeaderDialogCloseButtonProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/Header/HeaderDialogLink.tsx b/packages/web-react/src/components/Header/HeaderDialogLink.tsx index 07a70a61b5..9b1ecfa9d4 100644 --- a/packages/web-react/src/components/Header/HeaderDialogLink.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { PolymorphicRef, SpiritDialogHeaderLinkProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderDialogNav.tsx b/packages/web-react/src/components/Header/HeaderDialogNav.tsx index d2dd644013..67e2c40dfb 100644 --- a/packages/web-react/src/components/Header/HeaderDialogNav.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogNav.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDialogNavProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderDialogNavItem.tsx b/packages/web-react/src/components/Header/HeaderDialogNavItem.tsx index 6e4db8ed74..88ed6f3dea 100644 --- a/packages/web-react/src/components/Header/HeaderDialogNavItem.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogNavItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDialogNavItemProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderDialogText.tsx b/packages/web-react/src/components/Header/HeaderDialogText.tsx index adaddf380f..4957f07279 100644 --- a/packages/web-react/src/components/Header/HeaderDialogText.tsx +++ b/packages/web-react/src/components/Header/HeaderDialogText.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderDialogTextProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderLink.tsx b/packages/web-react/src/components/Header/HeaderLink.tsx index cc3afc69ed..c0d3c0b337 100644 --- a/packages/web-react/src/components/Header/HeaderLink.tsx +++ b/packages/web-react/src/components/Header/HeaderLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { PolymorphicRef, SpiritHeaderLinkProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderMobileActions.tsx b/packages/web-react/src/components/Header/HeaderMobileActions.tsx index 836ddda95b..cc0920ef3d 100644 --- a/packages/web-react/src/components/Header/HeaderMobileActions.tsx +++ b/packages/web-react/src/components/Header/HeaderMobileActions.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderMobileActionsProps } from '../../types'; import { Button } from '../Button'; diff --git a/packages/web-react/src/components/Header/HeaderNav.tsx b/packages/web-react/src/components/Header/HeaderNav.tsx index da34aa3396..01e7f33b00 100644 --- a/packages/web-react/src/components/Header/HeaderNav.tsx +++ b/packages/web-react/src/components/Header/HeaderNav.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderNavProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/HeaderNavItem.tsx b/packages/web-react/src/components/Header/HeaderNavItem.tsx index 4acdbb591a..e0feab4fb9 100644 --- a/packages/web-react/src/components/Header/HeaderNavItem.tsx +++ b/packages/web-react/src/components/Header/HeaderNavItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { HeaderNavItemProps } from '../../types'; import { useHeaderStyleProps } from './useHeaderStyleProps'; diff --git a/packages/web-react/src/components/Header/__tests__/Header.test.tsx b/packages/web-react/src/components/Header/__tests__/Header.test.tsx index 36501640de..f2095346e4 100644 --- a/packages/web-react/src/components/Header/__tests__/Header.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/Header.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx index b1435b59cc..da594762a7 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx index c059edfc04..ccade0c43f 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx index 182200db7d..a0036542b8 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx index 3716d72dda..e1708dfd97 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx index 3e7701b3f5..0866e38b4a 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx index e512a987ab..83bbbbc120 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx index 9b365e6f03..b217c0b901 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx index b602c7753d..9dec6b659d 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx index eb8901c99c..3006fcc70c 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx index 6497d14267..80a0222448 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx index 117229934f..627a7dcde6 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx index ed5ee7f7c9..7bca261ff4 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx index e363d8a8b2..d66af497a2 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx index 95d57a875c..45958e8f8b 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/demo/index.tsx b/packages/web-react/src/components/Header/demo/index.tsx index 0efde21b61..80793a989f 100644 --- a/packages/web-react/src/components/Header/demo/index.tsx +++ b/packages/web-react/src/components/Header/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import HeaderExperimentalRTL from './HeaderExperimentalRTL'; diff --git a/packages/web-react/src/components/Header/stories/Header.stories.tsx b/packages/web-react/src/components/Header/stories/Header.stories.tsx index f0e21f2f0f..88b9542f0a 100644 --- a/packages/web-react/src/components/Header/stories/Header.stories.tsx +++ b/packages/web-react/src/components/Header/stories/Header.stories.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDesktopActions.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDesktopActions.stories.tsx index 0f6f8ec448..f6af29d546 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDesktopActions.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDesktopActions.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDesktopActionsProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialog.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialog.stories.tsx index 5985b201bb..9a1a77d51d 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialog.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialog.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogActions.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogActions.stories.tsx index ae23c65bcc..112f60e635 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogActions.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogActions.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogActionsProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogButton.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogButton.stories.tsx index 15a0c55690..51e8b907fb 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogButton.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogButton.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogButtonProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogCloseButton.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogCloseButton.stories.tsx index 617ce8591f..9a74d354a4 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogCloseButton.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogCloseButton.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogCloseButtonProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogLink.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogLink.stories.tsx index 43b1aaaba6..c092e52038 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogLink.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogLink.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogLinkProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogNav.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogNav.stories.tsx index 9b01c8e4b2..3b19525d5c 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogNav.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogNav.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogNavProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogNavItem.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogNavItem.stories.tsx index c387841667..00645f5928 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogNavItem.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogNavItem.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogNavItemProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderDialogText.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderDialogText.stories.tsx index 24985e19b1..f8864d08c3 100644 --- a/packages/web-react/src/components/Header/stories/HeaderDialogText.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderDialogText.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderDialogTextProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderLink.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderLink.stories.tsx index abb3a9f121..264c108f0f 100644 --- a/packages/web-react/src/components/Header/stories/HeaderLink.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderLink.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderLinkProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderMobileActions.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderMobileActions.stories.tsx index f235f4e0eb..e292f4f91d 100644 --- a/packages/web-react/src/components/Header/stories/HeaderMobileActions.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderMobileActions.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderMobileActionsProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderNav.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderNav.stories.tsx index d0dba869ad..fe5cfedf28 100644 --- a/packages/web-react/src/components/Header/stories/HeaderNav.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderNav.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderNavProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Header/stories/HeaderNavItem.stories.tsx b/packages/web-react/src/components/Header/stories/HeaderNavItem.stories.tsx index 49687d7eff..2dd81d6cc3 100644 --- a/packages/web-react/src/components/Header/stories/HeaderNavItem.stories.tsx +++ b/packages/web-react/src/components/Header/stories/HeaderNavItem.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { HeaderNavItemProps } from '../../../types'; import { Link } from '../../Link'; import SpiritLogo from '../demo/SpiritLogo'; diff --git a/packages/web-react/src/components/Heading/Heading.tsx b/packages/web-react/src/components/Heading/Heading.tsx index 8257c6b29d..aa5d30b7e0 100644 --- a/packages/web-react/src/components/Heading/Heading.tsx +++ b/packages/web-react/src/components/Heading/Heading.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritHeadingProps } from '../../types'; import { useHeadingStyleProps } from './useHeadingStyleProps'; diff --git a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx index 8c18cac832..b01a416f7a 100644 --- a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx +++ b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { sizeExtendedPropsTest, sizePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; diff --git a/packages/web-react/src/components/Heading/stories/Heading.stories.tsx b/packages/web-react/src/components/Heading/stories/Heading.stories.tsx index 47d3f6efce..1db823cfd8 100644 --- a/packages/web-react/src/components/Heading/stories/Heading.stories.tsx +++ b/packages/web-react/src/components/Heading/stories/Heading.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SizesExtended } from '../../../constants'; import ReadMe from '../README.md'; import { Heading } from '..'; diff --git a/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx b/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx index 3a13db817a..5ac7ef70ab 100644 --- a/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx +++ b/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; +import React from 'react'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import Icon from '../Icon'; diff --git a/packages/web-react/src/components/Icon/demo/Icon.tsx b/packages/web-react/src/components/Icon/demo/Icon.tsx index 4be401a877..d22a4df0b0 100644 --- a/packages/web-react/src/components/Icon/demo/Icon.tsx +++ b/packages/web-react/src/components/Icon/demo/Icon.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 import icons from '@lmc-eu/spirit-icons/icons'; import type { StoryObj } from '@storybook/react'; +import React from 'react'; import { IconsProvider } from '../../../context'; import { IconProps } from '../../../types'; import Icon from '../Icon'; diff --git a/packages/web-react/src/components/Icon/demo/index.tsx b/packages/web-react/src/components/Icon/demo/index.tsx index 491b94fd00..2e5fe7aae7 100644 --- a/packages/web-react/src/components/Icon/demo/index.tsx +++ b/packages/web-react/src/components/Icon/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import Icon from './Icon'; diff --git a/packages/web-react/src/components/Icon/stories/Icon.stories.tsx b/packages/web-react/src/components/Icon/stories/Icon.stories.tsx index b16e7d1a5d..ed6bbb5fba 100644 --- a/packages/web-react/src/components/Icon/stories/Icon.stories.tsx +++ b/packages/web-react/src/components/Icon/stories/Icon.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import ReadMe from '../README.md'; import { Icon } from '..'; diff --git a/packages/web-react/src/components/Item/Item.tsx b/packages/web-react/src/components/Item/Item.tsx index 03d3d02b51..4e1cf54f1a 100644 --- a/packages/web-react/src/components/Item/Item.tsx +++ b/packages/web-react/src/components/Item/Item.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritItemProps } from '../../types'; import { HelperText } from '../Field'; diff --git a/packages/web-react/src/components/Item/__tests__/Item.test.tsx b/packages/web-react/src/components/Item/__tests__/Item.test.tsx index 321a44feb0..a46e28da1c 100644 --- a/packages/web-react/src/components/Item/__tests__/Item.test.tsx +++ b/packages/web-react/src/components/Item/__tests__/Item.test.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; +import React from 'react'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import { SpiritItemProps } from '../../../types'; diff --git a/packages/web-react/src/components/Item/demo/index.tsx b/packages/web-react/src/components/Item/demo/index.tsx index 243c6c05a3..20c6547961 100644 --- a/packages/web-react/src/components/Item/demo/index.tsx +++ b/packages/web-react/src/components/Item/demo/index.tsx @@ -1,9 +1,8 @@ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 -// eslint-disable-next-line import/extensions, import/no-unresolved +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import CheckboxItem from './CheckboxItem'; diff --git a/packages/web-react/src/components/Item/stories/Item.stories.tsx b/packages/web-react/src/components/Item/stories/Item.stories.tsx index 44855b6d54..677bb2152e 100644 --- a/packages/web-react/src/components/Item/stories/Item.stories.tsx +++ b/packages/web-react/src/components/Item/stories/Item.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import ReadMe from '../README.md'; import { Item } from '..'; diff --git a/packages/web-react/src/components/Link/Link.tsx b/packages/web-react/src/components/Link/Link.tsx index ef32542c63..ec41f36e71 100644 --- a/packages/web-react/src/components/Link/Link.tsx +++ b/packages/web-react/src/components/Link/Link.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { PolymorphicRef, SpiritLinkProps } from '../../types'; import { useLinkStyleProps } from './useLinkStyleProps'; diff --git a/packages/web-react/src/components/Link/__tests__/Link.test.tsx b/packages/web-react/src/components/Link/__tests__/Link.test.tsx index 6bd856e16c..5ba6b42c82 100644 --- a/packages/web-react/src/components/Link/__tests__/Link.test.tsx +++ b/packages/web-react/src/components/Link/__tests__/Link.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { actionLinkColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Link/stories/Link.stories.tsx b/packages/web-react/src/components/Link/stories/Link.stories.tsx index cdfc391578..9a2d8c07a4 100644 --- a/packages/web-react/src/components/Link/stories/Link.stories.tsx +++ b/packages/web-react/src/components/Link/stories/Link.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ActionLinkColors } from '../../../constants'; import ReadMe from '../README.md'; import { Link } from '..'; diff --git a/packages/web-react/src/components/Link/useLinkStyleProps.ts b/packages/web-react/src/components/Link/useLinkStyleProps.ts index a61701d6c2..8ed5c9e63e 100644 --- a/packages/web-react/src/components/Link/useLinkStyleProps.ts +++ b/packages/web-react/src/components/Link/useLinkStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { SpiritLinkProps, LinkProps } from '../../types'; diff --git a/packages/web-react/src/components/Modal/Modal.tsx b/packages/web-react/src/components/Modal/Modal.tsx index a50e386f7d..6b97e26c01 100644 --- a/packages/web-react/src/components/Modal/Modal.tsx +++ b/packages/web-react/src/components/Modal/Modal.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { AlignmentY } from '../../constants'; import { useStyleProps, useLastActiveFocus } from '../../hooks'; import { SpiritModalProps } from '../../types'; diff --git a/packages/web-react/src/components/Modal/ModalBody.tsx b/packages/web-react/src/components/Modal/ModalBody.tsx index e0958d5284..1e0956abd9 100644 --- a/packages/web-react/src/components/Modal/ModalBody.tsx +++ b/packages/web-react/src/components/Modal/ModalBody.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ModalBodyProps } from '../../types'; import { useModalStyleProps } from './useModalStyleProps'; diff --git a/packages/web-react/src/components/Modal/ModalDialog.tsx b/packages/web-react/src/components/Modal/ModalDialog.tsx index f7b6cfad5f..53e5793df9 100644 --- a/packages/web-react/src/components/Modal/ModalDialog.tsx +++ b/packages/web-react/src/components/Modal/ModalDialog.tsx @@ -1,5 +1,5 @@ -import React, { CSSProperties, ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { CSSProperties, ElementType, ForwardedRef, forwardRef } from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { ModalDialogProps, ModalDialogElementType } from '../../types'; import { useModalStyleProps } from './useModalStyleProps'; diff --git a/packages/web-react/src/components/Modal/ModalFooter.tsx b/packages/web-react/src/components/Modal/ModalFooter.tsx index e789c802ec..fff9c90d94 100644 --- a/packages/web-react/src/components/Modal/ModalFooter.tsx +++ b/packages/web-react/src/components/Modal/ModalFooter.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { AlignmentX } from '../../constants'; import { useStyleProps } from '../../hooks'; import { ModalFooterProps } from '../../types'; diff --git a/packages/web-react/src/components/Modal/ModalHeader.tsx b/packages/web-react/src/components/Modal/ModalHeader.tsx index aee5114cbf..e8f28e5f7a 100644 --- a/packages/web-react/src/components/Modal/ModalHeader.tsx +++ b/packages/web-react/src/components/Modal/ModalHeader.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ModalHeaderProps } from '../../types'; import ModalCloseButton from './ModalCloseButton'; diff --git a/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx b/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx index 4a55e35628..c90b8fb8f7 100644 --- a/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx index 098e16df42..8181e98549 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx index 24a6b2551e..dc012f3763 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Modal/demo/ModalStacked.tsx b/packages/web-react/src/components/Modal/demo/ModalStacked.tsx index f0bbfc0284..b8298607ca 100644 --- a/packages/web-react/src/components/Modal/demo/ModalStacked.tsx +++ b/packages/web-react/src/components/Modal/demo/ModalStacked.tsx @@ -1,9 +1,9 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ +import icons from '@lmc-eu/spirit-icons/icons'; import React, { useState } from 'react'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 -import icons from '@lmc-eu/spirit-icons/icons'; import { IconsProvider } from '../../../context'; import { Button } from '../../Button'; import { Modal, ModalBody, ModalDialog, ModalFooter, ModalHeader } from '..'; diff --git a/packages/web-react/src/components/Modal/demo/ModalWithCustomHeight.tsx b/packages/web-react/src/components/Modal/demo/ModalWithCustomHeight.tsx index 7be2a02b9a..2e8184957d 100644 --- a/packages/web-react/src/components/Modal/demo/ModalWithCustomHeight.tsx +++ b/packages/web-react/src/components/Modal/demo/ModalWithCustomHeight.tsx @@ -1,9 +1,9 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ +import icons from '@lmc-eu/spirit-icons/icons'; import React, { useState } from 'react'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 -import icons from '@lmc-eu/spirit-icons/icons'; import { IconsProvider } from '../../../context'; import { Button } from '../../Button'; import Modal from '../Modal'; diff --git a/packages/web-react/src/components/Modal/demo/ModalWithLongText.tsx b/packages/web-react/src/components/Modal/demo/ModalWithLongText.tsx index 8384d6c355..b17170c279 100644 --- a/packages/web-react/src/components/Modal/demo/ModalWithLongText.tsx +++ b/packages/web-react/src/components/Modal/demo/ModalWithLongText.tsx @@ -1,9 +1,9 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ +import icons from '@lmc-eu/spirit-icons/icons'; import React, { useState } from 'react'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 -import icons from '@lmc-eu/spirit-icons/icons'; import { IconsProvider } from '../../../context'; import { Button } from '../../Button'; import Modal from '../Modal'; diff --git a/packages/web-react/src/components/Modal/demo/index.tsx b/packages/web-react/src/components/Modal/demo/index.tsx index 1b192c2571..4a4f61fd02 100644 --- a/packages/web-react/src/components/Modal/demo/index.tsx +++ b/packages/web-react/src/components/Modal/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import ModalDefault from './ModalDefault'; diff --git a/packages/web-react/src/components/Modal/stories/Modal.stories.tsx b/packages/web-react/src/components/Modal/stories/Modal.stories.tsx index 42dc48000d..a765c3eda2 100644 --- a/packages/web-react/src/components/Modal/stories/Modal.stories.tsx +++ b/packages/web-react/src/components/Modal/stories/Modal.stories.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AlignmentY } from '../../../constants'; import { SpiritModalProps } from '../../../types'; import { Button } from '../../Button'; diff --git a/packages/web-react/src/components/Modal/stories/ModalBody.stories.tsx b/packages/web-react/src/components/Modal/stories/ModalBody.stories.tsx index fb12525b32..affda10695 100644 --- a/packages/web-react/src/components/Modal/stories/ModalBody.stories.tsx +++ b/packages/web-react/src/components/Modal/stories/ModalBody.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { ModalBodyProps } from '../../../types'; import { Button } from '../../Button'; import { Modal, ModalHeader, ModalDialog, ModalBody, ModalFooter } from '..'; diff --git a/packages/web-react/src/components/Modal/stories/ModalDialog.stories.tsx b/packages/web-react/src/components/Modal/stories/ModalDialog.stories.tsx index c27d3b02dd..26512ad97b 100644 --- a/packages/web-react/src/components/Modal/stories/ModalDialog.stories.tsx +++ b/packages/web-react/src/components/Modal/stories/ModalDialog.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { ModalDialogProps } from '../../../types'; import { Button } from '../../Button'; import { Modal, ModalHeader, ModalDialog, ModalBody, ModalFooter } from '..'; diff --git a/packages/web-react/src/components/Modal/stories/ModalFooter.stories.tsx b/packages/web-react/src/components/Modal/stories/ModalFooter.stories.tsx index 1e070ac59e..7aa01547b2 100644 --- a/packages/web-react/src/components/Modal/stories/ModalFooter.stories.tsx +++ b/packages/web-react/src/components/Modal/stories/ModalFooter.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { AlignmentX } from '../../../constants'; import { ModalFooterProps } from '../../../types'; import { Button } from '../../Button'; diff --git a/packages/web-react/src/components/Modal/stories/ModalHeader.stories.tsx b/packages/web-react/src/components/Modal/stories/ModalHeader.stories.tsx index 3e2476fc2b..011424177f 100644 --- a/packages/web-react/src/components/Modal/stories/ModalHeader.stories.tsx +++ b/packages/web-react/src/components/Modal/stories/ModalHeader.stories.tsx @@ -1,5 +1,5 @@ -import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { ModalHeaderProps } from '../../../types'; import { Button } from '../../Button'; import { Modal, ModalHeader, ModalDialog, ModalBody, ModalFooter } from '..'; diff --git a/packages/web-react/src/components/Pagination/Pagination.tsx b/packages/web-react/src/components/Pagination/Pagination.tsx index 061d507055..f5ad89fc10 100644 --- a/packages/web-react/src/components/Pagination/Pagination.tsx +++ b/packages/web-react/src/components/Pagination/Pagination.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritPaginationProps } from '../../types'; import { usePaginationStyleProps } from './usePaginationStyleProps'; diff --git a/packages/web-react/src/components/Pagination/PaginationItem.tsx b/packages/web-react/src/components/Pagination/PaginationItem.tsx index 6c95003eaa..513f73ca00 100644 --- a/packages/web-react/src/components/Pagination/PaginationItem.tsx +++ b/packages/web-react/src/components/Pagination/PaginationItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritPaginationItemProps } from '../../types'; import { usePaginationStyleProps } from './usePaginationStyleProps'; diff --git a/packages/web-react/src/components/Pagination/PaginationLink.tsx b/packages/web-react/src/components/Pagination/PaginationLink.tsx index 3e47332ec8..84147a3c3a 100644 --- a/packages/web-react/src/components/Pagination/PaginationLink.tsx +++ b/packages/web-react/src/components/Pagination/PaginationLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritPaginationLinkProps } from '../../types'; import { VisuallyHidden } from '../VisuallyHidden'; diff --git a/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx b/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx index 2b909a1cd6..7ca2637797 100644 --- a/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx index 797d950645..5e6526dfd1 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx index 1053161cb2..8c842a3ccd 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx b/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx index e0cb5f27ee..a4ca2bd2a3 100644 --- a/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; +import React from 'react'; import UncontrolledPagination from '../UncontrolledPagination'; describe('UncontrolledPagination', () => { diff --git a/packages/web-react/src/components/Pagination/demo/index.tsx b/packages/web-react/src/components/Pagination/demo/index.tsx index 385d8cfc4b..e547d0651f 100644 --- a/packages/web-react/src/components/Pagination/demo/index.tsx +++ b/packages/web-react/src/components/Pagination/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import PaginationCurrentFirst from './PaginationCurrentFirst'; diff --git a/packages/web-react/src/components/Pagination/stories/Pagination.stories.tsx b/packages/web-react/src/components/Pagination/stories/Pagination.stories.tsx index 7275d3728c..cea9028518 100644 --- a/packages/web-react/src/components/Pagination/stories/Pagination.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/Pagination.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import ReadMe from '../README.md'; import { Pagination, PaginationItem, PaginationLink, PaginationLinkNext } from '..'; diff --git a/packages/web-react/src/components/Pagination/stories/PaginationItem.stories.tsx b/packages/web-react/src/components/Pagination/stories/PaginationItem.stories.tsx index 17e554c677..f2df2f12a9 100644 --- a/packages/web-react/src/components/Pagination/stories/PaginationItem.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/PaginationItem.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Pagination, PaginationItem, PaginationLink, PaginationLinkNext, PaginationLinkPrevious } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Pagination/stories/PaginationLink.stories.tsx b/packages/web-react/src/components/Pagination/stories/PaginationLink.stories.tsx index bb4d894106..567bdd2a9e 100644 --- a/packages/web-react/src/components/Pagination/stories/PaginationLink.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/PaginationLink.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Pagination, PaginationItem, PaginationLink, PaginationLinkNext, PaginationLinkPrevious } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Pagination/stories/PaginationLinkNext.stories.tsx b/packages/web-react/src/components/Pagination/stories/PaginationLinkNext.stories.tsx index 36e1c71d3f..b93dbf8483 100644 --- a/packages/web-react/src/components/Pagination/stories/PaginationLinkNext.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/PaginationLinkNext.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Pagination, PaginationItem, PaginationLink, PaginationLinkNext, PaginationLinkPrevious } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Pagination/stories/PaginationLinkPrevious.stories.tsx b/packages/web-react/src/components/Pagination/stories/PaginationLinkPrevious.stories.tsx index b7cb22377c..057fa8ee3e 100644 --- a/packages/web-react/src/components/Pagination/stories/PaginationLinkPrevious.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/PaginationLinkPrevious.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Pagination, PaginationItem, PaginationLink, PaginationLinkNext, PaginationLinkPrevious } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Pagination/stories/UncontrolledPagination.stories.tsx b/packages/web-react/src/components/Pagination/stories/UncontrolledPagination.stories.tsx index cfdb6b1d6b..a220be7c80 100644 --- a/packages/web-react/src/components/Pagination/stories/UncontrolledPagination.stories.tsx +++ b/packages/web-react/src/components/Pagination/stories/UncontrolledPagination.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { UncontrolledPagination } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Pill/Pill.tsx b/packages/web-react/src/components/Pill/Pill.tsx index 585760f0a7..04eb8e287b 100644 --- a/packages/web-react/src/components/Pill/Pill.tsx +++ b/packages/web-react/src/components/Pill/Pill.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritPillProps, StyleProps } from '../../types'; import { usePillStyleProps } from './usePillStyleProps'; diff --git a/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx b/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx index d5c2758c35..9de31181fd 100644 --- a/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx +++ b/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { actionColorPropsTest, emotionColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Pill/stories/Pill.stories.tsx b/packages/web-react/src/components/Pill/stories/Pill.stories.tsx index 999e604ccb..18667154ac 100644 --- a/packages/web-react/src/components/Pill/stories/Pill.stories.tsx +++ b/packages/web-react/src/components/Pill/stories/Pill.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ActionColors, EmotionColors } from '../../../constants'; import ReadMe from '../README.md'; import { Pill } from '..'; diff --git a/packages/web-react/src/components/Pill/usePillStyleProps.ts b/packages/web-react/src/components/Pill/usePillStyleProps.ts index b712865138..5f8fce0e7e 100644 --- a/packages/web-react/src/components/Pill/usePillStyleProps.ts +++ b/packages/web-react/src/components/Pill/usePillStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { SpiritPillProps } from '../../types'; diff --git a/packages/web-react/src/components/Radio/Radio.tsx b/packages/web-react/src/components/Radio/Radio.tsx index 68d9da1a82..62696d4bfc 100644 --- a/packages/web-react/src/components/Radio/Radio.tsx +++ b/packages/web-react/src/components/Radio/Radio.tsx @@ -1,5 +1,5 @@ -import React, { forwardRef, ForwardedRef } from 'react'; import classNames from 'classnames'; +import React, { forwardRef, ForwardedRef } from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritRadioProps } from '../../types'; import { HelperText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx b/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx index 2490fdb0ec..486179765e 100644 --- a/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx +++ b/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { itemPropsTest } from '../../../../tests/providerTests/itemPropsTest'; diff --git a/packages/web-react/src/components/Radio/demo/index.tsx b/packages/web-react/src/components/Radio/demo/index.tsx index df6a682335..eb6940685d 100644 --- a/packages/web-react/src/components/Radio/demo/index.tsx +++ b/packages/web-react/src/components/Radio/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import RadioDefault from './RadioDefault'; diff --git a/packages/web-react/src/components/Radio/stories/Radio.stories.tsx b/packages/web-react/src/components/Radio/stories/Radio.stories.tsx index af135606cb..9384387e52 100644 --- a/packages/web-react/src/components/Radio/stories/Radio.stories.tsx +++ b/packages/web-react/src/components/Radio/stories/Radio.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import ReadMe from '../README.md'; import { Radio } from '..'; diff --git a/packages/web-react/src/components/ScrollView/ScrollView.tsx b/packages/web-react/src/components/ScrollView/ScrollView.tsx index 121b822156..7b0e19e713 100644 --- a/packages/web-react/src/components/ScrollView/ScrollView.tsx +++ b/packages/web-react/src/components/ScrollView/ScrollView.tsx @@ -1,5 +1,5 @@ -import React, { useRef } from 'react'; import classNames from 'classnames'; +import React, { useRef } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritScrollViewProps } from '../../types'; import { SCROLL_VIEW_DEFAULT_DIRECTION, SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } from './constants'; diff --git a/packages/web-react/src/components/ScrollView/stories/ScrollView.stories.tsx b/packages/web-react/src/components/ScrollView/stories/ScrollView.stories.tsx index aed90e59f7..506ce25233 100644 --- a/packages/web-react/src/components/ScrollView/stories/ScrollView.stories.tsx +++ b/packages/web-react/src/components/ScrollView/stories/ScrollView.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import ReadMe from '../README.md'; import { ScrollView } from '..'; diff --git a/packages/web-react/src/components/Select/Select.tsx b/packages/web-react/src/components/Select/Select.tsx index da9d02076a..19ca55eecc 100644 --- a/packages/web-react/src/components/Select/Select.tsx +++ b/packages/web-react/src/components/Select/Select.tsx @@ -1,5 +1,5 @@ -import React, { forwardRef, ForwardedRef } from 'react'; import classNames from 'classnames'; +import React, { forwardRef, ForwardedRef } from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritSelectProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/Select/__tests__/Select.test.tsx b/packages/web-react/src/components/Select/__tests__/Select.test.tsx index c5b6a06ddc..2dffaa3f0c 100644 --- a/packages/web-react/src/components/Select/__tests__/Select.test.tsx +++ b/packages/web-react/src/components/Select/__tests__/Select.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Select/demo/index.tsx b/packages/web-react/src/components/Select/demo/index.tsx index 520359a18a..77c18ee4aa 100644 --- a/packages/web-react/src/components/Select/demo/index.tsx +++ b/packages/web-react/src/components/Select/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import SelectDisabled from './SelectDisabled'; diff --git a/packages/web-react/src/components/Select/stories/Select.stories.tsx b/packages/web-react/src/components/Select/stories/Select.stories.tsx index 9d09dd0489..c290909fcc 100644 --- a/packages/web-react/src/components/Select/stories/Select.stories.tsx +++ b/packages/web-react/src/components/Select/stories/Select.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import ReadMe from '../README.md'; import { Select } from '..'; diff --git a/packages/web-react/src/components/Spinner/Spinner.tsx b/packages/web-react/src/components/Spinner/Spinner.tsx index d8f395c47f..c4f2c01a10 100644 --- a/packages/web-react/src/components/Spinner/Spinner.tsx +++ b/packages/web-react/src/components/Spinner/Spinner.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritSpinnerProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx b/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx index a0acc9897b..81a72fe61a 100644 --- a/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx +++ b/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { textColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Spinner/demo/index.tsx b/packages/web-react/src/components/Spinner/demo/index.tsx index e141624bc8..88d6c53eb9 100644 --- a/packages/web-react/src/components/Spinner/demo/index.tsx +++ b/packages/web-react/src/components/Spinner/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import SpinnerColors from './SpinnerColors'; diff --git a/packages/web-react/src/components/Spinner/stories/Spinner.stories.tsx b/packages/web-react/src/components/Spinner/stories/Spinner.stories.tsx index 6c661f7591..bdca5b3f33 100644 --- a/packages/web-react/src/components/Spinner/stories/Spinner.stories.tsx +++ b/packages/web-react/src/components/Spinner/stories/Spinner.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { TextColors } from '../../../constants'; import ReadMe from '../README.md'; import { Spinner } from '..'; diff --git a/packages/web-react/src/components/Stack/Stack.tsx b/packages/web-react/src/components/Stack/Stack.tsx index cbf069f386..33e2abfc25 100644 --- a/packages/web-react/src/components/Stack/Stack.tsx +++ b/packages/web-react/src/components/Stack/Stack.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritStackProps } from '../../types'; import { useStackStyleProps } from './useStackStyleProps'; diff --git a/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx b/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx index e05d78088d..bdee4e1312 100644 --- a/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx +++ b/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Stack/stories/Stack.stories.tsx b/packages/web-react/src/components/Stack/stories/Stack.stories.tsx index c61fec0ae6..739e8dcd74 100644 --- a/packages/web-react/src/components/Stack/stories/Stack.stories.tsx +++ b/packages/web-react/src/components/Stack/stories/Stack.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import DocsBox from '../../../../docs/DocsBox'; import ReadMe from '../README.md'; import { Stack } from '..'; diff --git a/packages/web-react/src/components/Stack/useStackStyleProps.ts b/packages/web-react/src/components/Stack/useStackStyleProps.ts index 3bb8e87fa2..8e83eaaba4 100644 --- a/packages/web-react/src/components/Stack/useStackStyleProps.ts +++ b/packages/web-react/src/components/Stack/useStackStyleProps.ts @@ -1,5 +1,5 @@ -import { CSSProperties, ElementType } from 'react'; import classNames from 'classnames'; +import { CSSProperties, ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { SpiritStackProps } from '../../types'; diff --git a/packages/web-react/src/components/Tabs/TabItem.tsx b/packages/web-react/src/components/Tabs/TabItem.tsx index 1a52c3152a..9e0d7d1411 100644 --- a/packages/web-react/src/components/Tabs/TabItem.tsx +++ b/packages/web-react/src/components/Tabs/TabItem.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ChildrenProps, TabId, TransferProps, ClickEvents, ClickEvent } from '../../types'; import { useTabContext } from './TabContext'; diff --git a/packages/web-react/src/components/Tabs/TabLink.tsx b/packages/web-react/src/components/Tabs/TabLink.tsx index 4ebb4f52d0..e0d4c8abc1 100644 --- a/packages/web-react/src/components/Tabs/TabLink.tsx +++ b/packages/web-react/src/components/Tabs/TabLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { PolymorphicRef, SpiritTabLinkProps } from '../../types'; import { useTabsStyleProps } from './useTabsStyleProps'; diff --git a/packages/web-react/src/components/Tabs/TabList.tsx b/packages/web-react/src/components/Tabs/TabList.tsx index 3e857aa434..b2ecb5d239 100644 --- a/packages/web-react/src/components/Tabs/TabList.tsx +++ b/packages/web-react/src/components/Tabs/TabList.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ChildrenProps, TransferProps } from '../../types'; import { useTabsStyleProps } from './useTabsStyleProps'; diff --git a/packages/web-react/src/components/Tabs/TabPane.tsx b/packages/web-react/src/components/Tabs/TabPane.tsx index d433217cb9..dd4ab8a493 100644 --- a/packages/web-react/src/components/Tabs/TabPane.tsx +++ b/packages/web-react/src/components/Tabs/TabPane.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { ChildrenProps, TabId, TransferProps } from '../../types'; import { useTabContext } from './TabContext'; diff --git a/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx index f6f621d97b..6746fa0f26 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render, waitFor } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx index 79f7bb8884..d471dd732f 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import TabLink from '../TabLink'; diff --git a/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx index f14b6e275e..0dbcf4d02a 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Tabs/__tests__/UncontrolledTabs.test.tsx b/packages/web-react/src/components/Tabs/__tests__/UncontrolledTabs.test.tsx index a4ed92f58c..dce1860f4f 100644 --- a/packages/web-react/src/components/Tabs/__tests__/UncontrolledTabs.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/UncontrolledTabs.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, waitFor, screen } from '@testing-library/react'; import user from '@testing-library/user-event'; +import React from 'react'; import TabContent from '../TabContent'; import TabItem from '../TabItem'; import TabList from '../TabList'; diff --git a/packages/web-react/src/components/Tabs/stories/TabContent.stories.tsx b/packages/web-react/src/components/Tabs/stories/TabContent.stories.tsx index b8b06e5efb..5a0d9447fc 100644 --- a/packages/web-react/src/components/Tabs/stories/TabContent.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/TabContent.stories.tsx @@ -1,5 +1,5 @@ -import React, { useCallback, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId } from '../../../types'; import { TabContent, TabContentProps, TabItem, TabList, TabPane, Tabs } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/TabItem.stories.tsx b/packages/web-react/src/components/Tabs/stories/TabItem.stories.tsx index 35aac129f5..e308cd44da 100644 --- a/packages/web-react/src/components/Tabs/stories/TabItem.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/TabItem.stories.tsx @@ -1,5 +1,5 @@ -import React, { useCallback, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId } from '../../../types'; import { TabContent, TabItem, TabItemProps, TabList, TabPane, Tabs } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/TabLink.stories.tsx b/packages/web-react/src/components/Tabs/stories/TabLink.stories.tsx index d9634d8b86..52b1e8b46d 100644 --- a/packages/web-react/src/components/Tabs/stories/TabLink.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/TabLink.stories.tsx @@ -1,5 +1,5 @@ -import React, { useCallback, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId, TabLinkProps } from '../../../types'; import { TabContent, TabItem, TabLink, TabList, TabPane, Tabs } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/TabList.stories.tsx b/packages/web-react/src/components/Tabs/stories/TabList.stories.tsx index bff511849b..3aadcc7af6 100644 --- a/packages/web-react/src/components/Tabs/stories/TabList.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/TabList.stories.tsx @@ -1,5 +1,5 @@ -import React, { useCallback, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId } from '../../../types'; import { TabContent, TabItem, TabList, TabListProps, TabPane, Tabs } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/TabPane.stories.tsx b/packages/web-react/src/components/Tabs/stories/TabPane.stories.tsx index e54a1245bc..470dcf6bb7 100644 --- a/packages/web-react/src/components/Tabs/stories/TabPane.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/TabPane.stories.tsx @@ -1,5 +1,5 @@ -import React, { useCallback, useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId } from '../../../types'; import { TabContent, TabItem, TabList, TabPane, TabPaneProps, Tabs } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx b/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx index 0a62e80179..8fa9b32894 100644 --- a/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/Tabs.stories.tsx @@ -1,6 +1,6 @@ -import React, { useCallback, useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useCallback, useState } from 'react'; import { TabId } from '../../../types'; import ReadMe from '../README.md'; import { TabContent, TabItem, TabList, TabPane, Tabs, TabsProps } from '..'; diff --git a/packages/web-react/src/components/Tabs/stories/UncontrolledTabs.stories.tsx b/packages/web-react/src/components/Tabs/stories/UncontrolledTabs.stories.tsx index 5cd1c86e0e..f711c53991 100644 --- a/packages/web-react/src/components/Tabs/stories/UncontrolledTabs.stories.tsx +++ b/packages/web-react/src/components/Tabs/stories/UncontrolledTabs.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { TabContent, TabItem, TabList, TabPane, UncontrolledTabs } from '..'; const meta: Meta = { diff --git a/packages/web-react/src/components/Tag/Tag.tsx b/packages/web-react/src/components/Tag/Tag.tsx index d9d3d81ba6..071a6e69c7 100644 --- a/packages/web-react/src/components/Tag/Tag.tsx +++ b/packages/web-react/src/components/Tag/Tag.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritTagProps, StyleProps } from '../../types'; import { useTagStyleProps } from './useTagStyleProps'; diff --git a/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx b/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx index 9d65c701e3..c63a16fa34 100644 --- a/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx +++ b/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { emotionColorPropsTest, sizeExtendedPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Tag/stories/Tag.stories.tsx b/packages/web-react/src/components/Tag/stories/Tag.stories.tsx index 6d084ec213..1fb8e2b6ee 100644 --- a/packages/web-react/src/components/Tag/stories/Tag.stories.tsx +++ b/packages/web-react/src/components/Tag/stories/Tag.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { EmotionColors, SizesExtended } from '../../../constants'; import ReadMe from '../README.md'; import { Tag } from '..'; diff --git a/packages/web-react/src/components/Tag/useTagStyleProps.ts b/packages/web-react/src/components/Tag/useTagStyleProps.ts index 36e651e626..3e1fcc083c 100644 --- a/packages/web-react/src/components/Tag/useTagStyleProps.ts +++ b/packages/web-react/src/components/Tag/useTagStyleProps.ts @@ -1,5 +1,5 @@ -import { ElementType } from 'react'; import classNames from 'classnames'; +import { ElementType } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { SpiritTagProps } from '../../types'; diff --git a/packages/web-react/src/components/Text/Text.tsx b/packages/web-react/src/components/Text/Text.tsx index a2ea20f250..5147752eea 100644 --- a/packages/web-react/src/components/Text/Text.tsx +++ b/packages/web-react/src/components/Text/Text.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritTextProps } from '../../types'; import { useTextStyleProps } from './useTextStyleProps'; diff --git a/packages/web-react/src/components/Text/__tests__/Text.test.tsx b/packages/web-react/src/components/Text/__tests__/Text.test.tsx index 0395e845fb..eac6c49c97 100644 --- a/packages/web-react/src/components/Text/__tests__/Text.test.tsx +++ b/packages/web-react/src/components/Text/__tests__/Text.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { sizeExtendedPropsTest, sizePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; diff --git a/packages/web-react/src/components/Text/stories/Text.stories.tsx b/packages/web-react/src/components/Text/stories/Text.stories.tsx index dea99ee09e..99e854a0eb 100644 --- a/packages/web-react/src/components/Text/stories/Text.stories.tsx +++ b/packages/web-react/src/components/Text/stories/Text.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SizesExtended } from '../../../constants'; import ReadMe from '../README.md'; import { Text } from '..'; diff --git a/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx b/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx index 9515a76655..832731f019 100644 --- a/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx +++ b/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/TextArea/__tests__/useAdjustHeight.test.ts b/packages/web-react/src/components/TextArea/__tests__/useAdjustHeight.test.ts index b091e90716..1acaa5bd2f 100644 --- a/packages/web-react/src/components/TextArea/__tests__/useAdjustHeight.test.ts +++ b/packages/web-react/src/components/TextArea/__tests__/useAdjustHeight.test.ts @@ -1,5 +1,5 @@ -import { FormEvent, MutableRefObject } from 'react'; import { act, renderHook } from '@testing-library/react-hooks'; +import { FormEvent, MutableRefObject } from 'react'; import { useAdjustHeight } from '../useAdjustHeight'; describe('useAdjustHeight', () => { diff --git a/packages/web-react/src/components/TextArea/demo/index.tsx b/packages/web-react/src/components/TextArea/demo/index.tsx index 4b2b7e91d9..44918f9c4d 100644 --- a/packages/web-react/src/components/TextArea/demo/index.tsx +++ b/packages/web-react/src/components/TextArea/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import TextAreaAutoResize from './TextAreaAutoResize'; diff --git a/packages/web-react/src/components/TextArea/stories/TextArea.stories.tsx b/packages/web-react/src/components/TextArea/stories/TextArea.stories.tsx index 5a1410a9ce..83af011b5b 100644 --- a/packages/web-react/src/components/TextArea/stories/TextArea.stories.tsx +++ b/packages/web-react/src/components/TextArea/stories/TextArea.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import ReadMe from '../README.md'; import { TextArea } from '..'; diff --git a/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx b/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx index 0e990818fa..ba6e941f9e 100644 --- a/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx +++ b/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { fireEvent, render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/TextField/demo/index.tsx b/packages/web-react/src/components/TextField/demo/index.tsx index 97b491f437..a7d1666b3b 100644 --- a/packages/web-react/src/components/TextField/demo/index.tsx +++ b/packages/web-react/src/components/TextField/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import TextFieldDefault from './TextFieldDefault'; diff --git a/packages/web-react/src/components/TextField/stories/TextField.stories.tsx b/packages/web-react/src/components/TextField/stories/TextField.stories.tsx index 2384ff3d91..39035b5a67 100644 --- a/packages/web-react/src/components/TextField/stories/TextField.stories.tsx +++ b/packages/web-react/src/components/TextField/stories/TextField.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ValidationStates } from '../../../constants'; import ReadMe from '../README.md'; import { TextField } from '..'; diff --git a/packages/web-react/src/components/TextFieldBase/TextFieldBase.tsx b/packages/web-react/src/components/TextFieldBase/TextFieldBase.tsx index cfba4f4db7..2e26b279c6 100644 --- a/packages/web-react/src/components/TextFieldBase/TextFieldBase.tsx +++ b/packages/web-react/src/components/TextFieldBase/TextFieldBase.tsx @@ -1,5 +1,5 @@ -import React, { ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ForwardedRef, forwardRef } from 'react'; import { useDeprecationMessage, useStyleProps } from '../../hooks'; import { SpiritTextFieldBaseProps, TextFieldBasePasswordToggleProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; diff --git a/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx b/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx index aaa870855c..54661c98d9 100644 --- a/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx +++ b/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { TextFieldType } from '../../../types'; import TextFieldBase from '../TextFieldBase'; diff --git a/packages/web-react/src/components/Toast/Toast.tsx b/packages/web-react/src/components/Toast/Toast.tsx index 9bd0310354..4c1040b38c 100644 --- a/packages/web-react/src/components/Toast/Toast.tsx +++ b/packages/web-react/src/components/Toast/Toast.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { AlignmentX, AlignmentY } from '../../constants'; import { useStyleProps } from '../../hooks'; import { SpiritToastProps } from '../../types'; diff --git a/packages/web-react/src/components/Toast/ToastBar.tsx b/packages/web-react/src/components/Toast/ToastBar.tsx index bd5694f1bc..af2dd8abbd 100644 --- a/packages/web-react/src/components/Toast/ToastBar.tsx +++ b/packages/web-react/src/components/Toast/ToastBar.tsx @@ -1,5 +1,5 @@ -import React, { MutableRefObject, useRef } from 'react'; import classNames from 'classnames'; +import React, { MutableRefObject, useRef } from 'react'; import { Transition, TransitionStatus } from 'react-transition-group'; import { useStyleProps } from '../../hooks'; import { SpiritToastBarProps } from '../../types'; diff --git a/packages/web-react/src/components/Toast/ToastBarLink.tsx b/packages/web-react/src/components/Toast/ToastBarLink.tsx index 87925e287c..6046e23ec2 100644 --- a/packages/web-react/src/components/Toast/ToastBarLink.tsx +++ b/packages/web-react/src/components/Toast/ToastBarLink.tsx @@ -1,5 +1,5 @@ -import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import classNames from 'classnames'; +import React, { ElementType, ForwardedRef, forwardRef } from 'react'; import { ActionLinkColors } from '../../constants'; import { useStyleProps } from '../../hooks'; import { SpiritLinkProps } from '../../types'; diff --git a/packages/web-react/src/components/Toast/ToastBarMessage.tsx b/packages/web-react/src/components/Toast/ToastBarMessage.tsx index 291de43785..174ffbba17 100644 --- a/packages/web-react/src/components/Toast/ToastBarMessage.tsx +++ b/packages/web-react/src/components/Toast/ToastBarMessage.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useClassNamePrefix, useStyleProps } from '../../hooks'; import { ChildrenProps } from '../../types'; diff --git a/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx b/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx index 9ab7758364..67e906b792 100644 --- a/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx index 726bb443b6..f3ecee9c03 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, screen } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx index 4053bcf35c..c873b4ad6b 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; +import React from 'react'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import ToastBarLink from '../ToastBarLink'; diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx index 7e9aab4aca..4a12704489 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, screen } from '@testing-library/react'; +import React from 'react'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import ToastBarMessage from '../ToastBarMessage'; diff --git a/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx b/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx index 8ea611b154..05eb751573 100644 --- a/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { LinkProps } from '../../../types'; import { ToastContext } from '../ToastContext'; import UncontrolledToast from '../UncontrolledToast'; diff --git a/packages/web-react/src/components/Toast/__tests__/useToast.test.ts b/packages/web-react/src/components/Toast/__tests__/useToast.test.ts index 3a01ad4a53..f8a3f2465b 100644 --- a/packages/web-react/src/components/Toast/__tests__/useToast.test.ts +++ b/packages/web-react/src/components/Toast/__tests__/useToast.test.ts @@ -1,5 +1,5 @@ -import { useContext } from 'react'; import { renderHook } from '@testing-library/react-hooks'; +import { useContext } from 'react'; import { useToast } from '../useToast'; // Mock useContext to provide a context value for testing diff --git a/packages/web-react/src/components/Toast/demo/index.tsx b/packages/web-react/src/components/Toast/demo/index.tsx index f738a83039..25c01a85c5 100644 --- a/packages/web-react/src/components/Toast/demo/index.tsx +++ b/packages/web-react/src/components/Toast/demo/index.tsx @@ -1,9 +1,9 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; diff --git a/packages/web-react/src/components/Toast/stories/Toast.stories.tsx b/packages/web-react/src/components/Toast/stories/Toast.stories.tsx index 5c608d7fc7..350a0cd66d 100644 --- a/packages/web-react/src/components/Toast/stories/Toast.stories.tsx +++ b/packages/web-react/src/components/Toast/stories/Toast.stories.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useState } from 'react'; import { SpiritToastProps } from '../../../types'; import { Button } from '../../Button'; import ReadMe from '../README.md'; diff --git a/packages/web-react/src/components/Toast/stories/ToastBar.stories.tsx b/packages/web-react/src/components/Toast/stories/ToastBar.stories.tsx index 2c5f167520..1b9c9d2fa9 100644 --- a/packages/web-react/src/components/Toast/stories/ToastBar.stories.tsx +++ b/packages/web-react/src/components/Toast/stories/ToastBar.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { SpiritToastBarProps } from '../../../types'; import ReadMe from '../README.md'; import ToastBarLink from '../ToastBarLink'; diff --git a/packages/web-react/src/components/Toast/stories/ToastBarLink.stories.tsx b/packages/web-react/src/components/Toast/stories/ToastBarLink.stories.tsx index 6d26d5d47c..d037f3119a 100644 --- a/packages/web-react/src/components/Toast/stories/ToastBarLink.stories.tsx +++ b/packages/web-react/src/components/Toast/stories/ToastBarLink.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { LinkProps } from '../../../types'; import ReadMe from '../README.md'; import { Toast, ToastBar, ToastBarMessage, ToastBarLink } from '..'; diff --git a/packages/web-react/src/components/Toast/stories/ToastBarMessage.stories.tsx b/packages/web-react/src/components/Toast/stories/ToastBarMessage.stories.tsx index 47db535740..4fd8feb6c3 100644 --- a/packages/web-react/src/components/Toast/stories/ToastBarMessage.stories.tsx +++ b/packages/web-react/src/components/Toast/stories/ToastBarMessage.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { ChildrenProps } from '../../../types'; import ReadMe from '../README.md'; import { ToastBarMessage } from '..'; diff --git a/packages/web-react/src/components/Toast/stories/UncontrolledToast.stories.tsx b/packages/web-react/src/components/Toast/stories/UncontrolledToast.stories.tsx index 2a9d2c753e..7bd2a33f93 100644 --- a/packages/web-react/src/components/Toast/stories/UncontrolledToast.stories.tsx +++ b/packages/web-react/src/components/Toast/stories/UncontrolledToast.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { AlignmentX, EmotionColors } from '../../../constants'; import { LinkProps, ToastColorType, UncontrolledToastProps } from '../../../types'; import { Button } from '../../Button'; diff --git a/packages/web-react/src/components/Tooltip/Tooltip.tsx b/packages/web-react/src/components/Tooltip/Tooltip.tsx index db4979a8fc..3f9ef40e35 100644 --- a/packages/web-react/src/components/Tooltip/Tooltip.tsx +++ b/packages/web-react/src/components/Tooltip/Tooltip.tsx @@ -1,5 +1,5 @@ -import React, { LegacyRef, forwardRef, useMemo } from 'react'; import classNames from 'classnames'; +import React, { LegacyRef, forwardRef, useMemo } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritTooltipProps } from '../../types'; import TooltipCloseButton from './TooltipCloseButton'; diff --git a/packages/web-react/src/components/Tooltip/TooltipCloseButton.tsx b/packages/web-react/src/components/Tooltip/TooltipCloseButton.tsx index fe1fe8ce01..66e4235e51 100644 --- a/packages/web-react/src/components/Tooltip/TooltipCloseButton.tsx +++ b/packages/web-react/src/components/Tooltip/TooltipCloseButton.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { TooltipCloseButtonProps } from '../../types'; import { Icon } from '../Icon'; diff --git a/packages/web-react/src/components/Tooltip/TooltipContext.ts b/packages/web-react/src/components/Tooltip/TooltipContext.ts index 5a8d33178a..6de86f4d81 100644 --- a/packages/web-react/src/components/Tooltip/TooltipContext.ts +++ b/packages/web-react/src/components/Tooltip/TooltipContext.ts @@ -1,5 +1,5 @@ -import { HTMLProps, MutableRefObject, createContext, useContext } from 'react'; import { MiddlewareData, Placement } from '@floating-ui/react'; +import { HTMLProps, MutableRefObject, createContext, useContext } from 'react'; type refType = ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void); diff --git a/packages/web-react/src/components/Tooltip/TooltipPopover.tsx b/packages/web-react/src/components/Tooltip/TooltipPopover.tsx index d66317ecc3..2f043fb1e1 100644 --- a/packages/web-react/src/components/Tooltip/TooltipPopover.tsx +++ b/packages/web-react/src/components/Tooltip/TooltipPopover.tsx @@ -1,5 +1,5 @@ -import React, { useMemo } from 'react'; import classNames from 'classnames'; +import React, { useMemo } from 'react'; import { useStyleProps } from '../../hooks'; import { ChildrenProps, StyleProps } from '../../types'; import TooltipCloseButton from './TooltipCloseButton'; diff --git a/packages/web-react/src/components/Tooltip/TooltipWrapper.tsx b/packages/web-react/src/components/Tooltip/TooltipWrapper.tsx index 9404aa77c0..f7c4d31e96 100644 --- a/packages/web-react/src/components/Tooltip/TooltipWrapper.tsx +++ b/packages/web-react/src/components/Tooltip/TooltipWrapper.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import classNames from 'classnames'; +import React from 'react'; import { useStyleProps } from '../../hooks'; import { TooltipWrapperProps } from '../../types'; import { useTooltipStyleProps } from './useTooltipStyleProps'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx index f542f8712f..1e261a8ede 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render, fireEvent } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx index afa64bba30..8482b8f632 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx index a396f34d96..792fc6025b 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import { Button } from '../../Button'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx index 6462190de7..4f3549e9c5 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipDismissibleFloatingUi.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipDismissibleFloatingUi.tsx index 065e671f52..4bdf2054c5 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipDismissibleFloatingUi.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipDismissibleFloatingUi.tsx @@ -1,6 +1,5 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React, { useState } from 'react'; import { autoUpdate, flip, @@ -12,6 +11,7 @@ import { useRole, } from '@floating-ui/react'; import { ComponentStory } from '@storybook/react'; +import React, { useState } from 'react'; import { Button } from '../../Button'; import Tooltip from '../Tooltip'; diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipFloatingUi.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipFloatingUi.tsx index 8e87003f73..939ddedba6 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipFloatingUi.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipFloatingUi.tsx @@ -1,4 +1,3 @@ -import React, { useState } from 'react'; import { autoUpdate, flip, @@ -9,6 +8,7 @@ import { useInteractions, useRole, } from '@floating-ui/react'; +import React, { useState } from 'react'; import { Button } from '../../Button'; import Tooltip from '../Tooltip'; diff --git a/packages/web-react/src/components/Tooltip/demo/index.tsx b/packages/web-react/src/components/Tooltip/demo/index.tsx index ca9b397075..94a426184b 100644 --- a/packages/web-react/src/components/Tooltip/demo/index.tsx +++ b/packages/web-react/src/components/Tooltip/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import TooltipClickable from './TooltipClickable'; diff --git a/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx b/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx index 05e1c2ce52..23592311c2 100644 --- a/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx +++ b/packages/web-react/src/components/Tooltip/stories/Tooltip.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../..'; import { Placements } from '../../../constants'; import ReadMe from '../README.md'; diff --git a/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx b/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx index 59fd361a3c..755066e52c 100644 --- a/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx +++ b/packages/web-react/src/components/Tooltip/stories/UncontrolledTooltip.stories.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../..'; import { Placements } from '../../../constants'; import { TooltipWrapper, UncontrolledTooltip } from '..'; diff --git a/packages/web-react/src/components/Tooltip/useFloating.ts b/packages/web-react/src/components/Tooltip/useFloating.ts index b6d44dc492..1bb6ff5981 100644 --- a/packages/web-react/src/components/Tooltip/useFloating.ts +++ b/packages/web-react/src/components/Tooltip/useFloating.ts @@ -1,4 +1,3 @@ -import { useState } from 'react'; import { Placement, arrow, @@ -17,6 +16,7 @@ import { useInteractions, useRole, } from '@floating-ui/react'; +import { useState } from 'react'; import { TooltipTriggerType, TOOLTIP_TRIGGER } from '../../types'; type UseTooltipUIProps = { diff --git a/packages/web-react/src/components/Tooltip/useTooltipModernStyleProps.ts b/packages/web-react/src/components/Tooltip/useTooltipModernStyleProps.ts index 9b21f74fdb..f24eeb1f66 100644 --- a/packages/web-react/src/components/Tooltip/useTooltipModernStyleProps.ts +++ b/packages/web-react/src/components/Tooltip/useTooltipModernStyleProps.ts @@ -1,5 +1,5 @@ -import { useMemo } from 'react'; import classNames from 'classnames'; +import { useMemo } from 'react'; import { useClassNamePrefix } from '../../hooks'; import { TooltipModernProps, TooltipProps } from '../../types'; diff --git a/packages/web-react/src/components/Tooltip/useTooltipStyleProps.ts b/packages/web-react/src/components/Tooltip/useTooltipStyleProps.ts index 2108abacb8..028b4cb8f0 100644 --- a/packages/web-react/src/components/Tooltip/useTooltipStyleProps.ts +++ b/packages/web-react/src/components/Tooltip/useTooltipStyleProps.ts @@ -1,5 +1,5 @@ -import { useMemo } from 'react'; import classNames from 'classnames'; +import { useMemo } from 'react'; import { useClassNamePrefix, useDeprecationMessage } from '../../hooks'; import { SpiritTooltipProps, TooltipProps } from '../../types'; import { kebabCaseToCamelCase } from '../../utils'; diff --git a/packages/web-react/src/components/TooltipModern/demo/TooltipWithFloatingUI.tsx b/packages/web-react/src/components/TooltipModern/demo/TooltipWithFloatingUI.tsx index 8120b1b77f..205475c90e 100644 --- a/packages/web-react/src/components/TooltipModern/demo/TooltipWithFloatingUI.tsx +++ b/packages/web-react/src/components/TooltipModern/demo/TooltipWithFloatingUI.tsx @@ -1,5 +1,5 @@ -import React, { useEffect, useRef, useState } from 'react'; import { Placement } from '@floating-ui/react'; +import React, { useEffect, useRef, useState } from 'react'; import { Button } from '../../Button'; import { Checkbox } from '../../Checkbox'; import { Grid } from '../../Grid'; diff --git a/packages/web-react/src/components/TooltipModern/demo/index.tsx b/packages/web-react/src/components/TooltipModern/demo/index.tsx index f29f09f69f..9b2c9cd1c0 100644 --- a/packages/web-react/src/components/TooltipModern/demo/index.tsx +++ b/packages/web-react/src/components/TooltipModern/demo/index.tsx @@ -1,10 +1,10 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; -import icons from '@lmc-eu/spirit-icons/icons'; -import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 +import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; +import ReactDOM from 'react-dom/client'; import DocsSection from '../../../../docs/DocsSections'; import { IconsProvider } from '../../../context'; import TooltipDefault from './TooltipDefault'; diff --git a/packages/web-react/src/components/TooltipModern/stories/TooltipModern.stories.tsx b/packages/web-react/src/components/TooltipModern/stories/TooltipModern.stories.tsx index 18621ed16e..436376d708 100644 --- a/packages/web-react/src/components/TooltipModern/stories/TooltipModern.stories.tsx +++ b/packages/web-react/src/components/TooltipModern/stories/TooltipModern.stories.tsx @@ -1,6 +1,6 @@ -import React, { useEffect, useRef, useState } from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React, { useEffect, useRef, useState } from 'react'; import { Button } from '../..'; import { SpiritTooltipModernProps } from '../../../types'; import { TooltipModern, TooltipTrigger, TooltipPopover } from '../../Tooltip'; diff --git a/packages/web-react/src/components/TooltipModern/stories/TooltipPopover.stories.tsx b/packages/web-react/src/components/TooltipModern/stories/TooltipPopover.stories.tsx index 5214f26a58..0f9047b3a5 100644 --- a/packages/web-react/src/components/TooltipModern/stories/TooltipPopover.stories.tsx +++ b/packages/web-react/src/components/TooltipModern/stories/TooltipPopover.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../..'; import { TooltipModern, TooltipPopover, TooltipTrigger } from '../../Tooltip'; import ReadMe from '../../Tooltip/README.md'; diff --git a/packages/web-react/src/components/TooltipModern/stories/TooltipTrigger.stories.tsx b/packages/web-react/src/components/TooltipModern/stories/TooltipTrigger.stories.tsx index b2fdab0a1a..09ff9694be 100644 --- a/packages/web-react/src/components/TooltipModern/stories/TooltipTrigger.stories.tsx +++ b/packages/web-react/src/components/TooltipModern/stories/TooltipTrigger.stories.tsx @@ -1,6 +1,6 @@ -import React from 'react'; import { Markdown } from '@storybook/blocks'; import type { Meta, StoryObj } from '@storybook/react'; +import React from 'react'; import { Button } from '../../Button'; import { TooltipTrigger } from '../../Tooltip'; import ReadMe from '../../Tooltip/README.md'; diff --git a/packages/web-react/src/components/VisuallyHidden/VisuallyHidden.tsx b/packages/web-react/src/components/VisuallyHidden/VisuallyHidden.tsx index bd497a8caa..7e7f532c12 100644 --- a/packages/web-react/src/components/VisuallyHidden/VisuallyHidden.tsx +++ b/packages/web-react/src/components/VisuallyHidden/VisuallyHidden.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import classNames from 'classnames'; +import React, { ElementType } from 'react'; import { useStyleProps } from '../../hooks'; import { SpiritVisuallyHiddenProps } from '../../types/visuallyHidden'; import { useVisuallyHiddenProps } from './useVisuallyHiddenProps'; diff --git a/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx b/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx index 01f4ba082f..d9f5390955 100644 --- a/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx +++ b/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { render } from '@testing-library/react'; +import React from 'react'; import '@testing-library/jest-dom'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/hooks/__tests__/useClickOutside.test.ts b/packages/web-react/src/hooks/__tests__/useClickOutside.test.ts index eeaa6574e8..0424ef5dfe 100644 --- a/packages/web-react/src/hooks/__tests__/useClickOutside.test.ts +++ b/packages/web-react/src/hooks/__tests__/useClickOutside.test.ts @@ -1,5 +1,5 @@ -import { MutableRefObject } from 'react'; import { renderHook } from '@testing-library/react-hooks'; +import { MutableRefObject } from 'react'; import { useClickOutside } from '../useClickOutside'; describe('useClickOutside', () => { diff --git a/packages/web-react/src/hooks/__tests__/useIcon.test.tsx b/packages/web-react/src/hooks/__tests__/useIcon.test.tsx index ae527dda7d..4db34a86fb 100644 --- a/packages/web-react/src/hooks/__tests__/useIcon.test.tsx +++ b/packages/web-react/src/hooks/__tests__/useIcon.test.tsx @@ -1,5 +1,5 @@ -import React, { ReactNode } from 'react'; import { renderHook } from '@testing-library/react-hooks'; +import React, { ReactNode } from 'react'; import warning from '../../common/utilities/warning'; import { IconsProvider } from '../../context/IconsContext'; import { useIcon } from '../useIcon'; diff --git a/packages/web-react/src/hooks/__tests__/useScrollControl.test.ts b/packages/web-react/src/hooks/__tests__/useScrollControl.test.ts index 800c4fe546..1befbaf0b4 100644 --- a/packages/web-react/src/hooks/__tests__/useScrollControl.test.ts +++ b/packages/web-react/src/hooks/__tests__/useScrollControl.test.ts @@ -1,5 +1,5 @@ -import { MutableRefObject } from 'react'; import { act, renderHook } from '@testing-library/react-hooks'; +import { MutableRefObject } from 'react'; import { useScrollControl } from '../useScrollControl'; describe('useScrollControl', () => { diff --git a/packages/web-react/src/hooks/styleProps.ts b/packages/web-react/src/hooks/styleProps.ts index 02f27dfa63..3cdce30866 100644 --- a/packages/web-react/src/hooks/styleProps.ts +++ b/packages/web-react/src/hooks/styleProps.ts @@ -1,5 +1,5 @@ -import { CSSProperties, HTMLAttributes, useContext } from 'react'; import classNames from 'classnames'; +import { CSSProperties, HTMLAttributes, useContext } from 'react'; import { warning } from '../common/utilities'; import ClassNamePrefixContext from '../context/ClassNamePrefixContext'; import { StyleProps } from '../types'; diff --git a/packages/web-react/src/icons/index.tsx b/packages/web-react/src/icons/index.tsx index ec00f62c79..4f27b02b68 100644 --- a/packages/web-react/src/icons/index.tsx +++ b/packages/web-react/src/icons/index.tsx @@ -1,7 +1,7 @@ // Because there is no `dist` directory during the CI run /* eslint-disable import/no-extraneous-dependencies, import/extensions, import/no-unresolved */ -import React from 'react'; import icons from '@lmc-eu/spirit-icons/icons'; +import React from 'react'; import ReactDOM from 'react-dom/client'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment, import/extensions, import/no-unresolved // @ts-ignore: No declaration file -- @see https://jira.almacareer.tech/browse/DS-561 diff --git a/packages/web-react/tests/providerTests/classNamePrefixProviderTest.tsx b/packages/web-react/tests/providerTests/classNamePrefixProviderTest.tsx index 9b54ae72df..dbdde50f6e 100644 --- a/packages/web-react/tests/providerTests/classNamePrefixProviderTest.tsx +++ b/packages/web-react/tests/providerTests/classNamePrefixProviderTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; import { ClassNamePrefixProvider } from '../../src/context/ClassNamePrefixContext'; import getElement from '../testUtils/getElement'; diff --git a/packages/web-react/tests/providerTests/dictionaryPropsTest.tsx b/packages/web-react/tests/providerTests/dictionaryPropsTest.tsx index dd40372d9b..f2c6ab8acc 100644 --- a/packages/web-react/tests/providerTests/dictionaryPropsTest.tsx +++ b/packages/web-react/tests/providerTests/dictionaryPropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; import { ActionColorsDictionaryType, ActionColors, diff --git a/packages/web-react/tests/providerTests/itemPropsTest.tsx b/packages/web-react/tests/providerTests/itemPropsTest.tsx index fd2be0c957..2106b7deae 100644 --- a/packages/web-react/tests/providerTests/itemPropsTest.tsx +++ b/packages/web-react/tests/providerTests/itemPropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const itemPropsTest = (Component: ComponentType) => { diff --git a/packages/web-react/tests/providerTests/loadingPropsTest.tsx b/packages/web-react/tests/providerTests/loadingPropsTest.tsx index 76caa24db4..8a05fb95bd 100644 --- a/packages/web-react/tests/providerTests/loadingPropsTest.tsx +++ b/packages/web-react/tests/providerTests/loadingPropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const loadingPropsTest = (Component: ComponentType, selector: string) => { diff --git a/packages/web-react/tests/providerTests/restPropsTest.tsx b/packages/web-react/tests/providerTests/restPropsTest.tsx index ab66e59bba..0abff98896 100644 --- a/packages/web-react/tests/providerTests/restPropsTest.tsx +++ b/packages/web-react/tests/providerTests/restPropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const restPropsTest = (Component: ComponentType, selector: string) => { diff --git a/packages/web-react/tests/providerTests/stylePropsTest.tsx b/packages/web-react/tests/providerTests/stylePropsTest.tsx index 9108bd48a6..5b4e564007 100644 --- a/packages/web-react/tests/providerTests/stylePropsTest.tsx +++ b/packages/web-react/tests/providerTests/stylePropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; import getElement from '../testUtils/getElement'; // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/packages/web-react/tests/providerTests/validationTextPropsTest.tsx b/packages/web-react/tests/providerTests/validationTextPropsTest.tsx index 97272a4513..19b0a3c98f 100644 --- a/packages/web-react/tests/providerTests/validationTextPropsTest.tsx +++ b/packages/web-react/tests/providerTests/validationTextPropsTest.tsx @@ -1,5 +1,5 @@ -import React, { ComponentType } from 'react'; import { render, waitFor } from '@testing-library/react'; +import React, { ComponentType } from 'react'; import { TextFieldType } from '../../src'; export const validationTextPropsTest = ( diff --git a/packages/web-react/tests/testUtils/renderWithHeaderContext.tsx b/packages/web-react/tests/testUtils/renderWithHeaderContext.tsx index afc2aabbdf..678daa3735 100644 --- a/packages/web-react/tests/testUtils/renderWithHeaderContext.tsx +++ b/packages/web-react/tests/testUtils/renderWithHeaderContext.tsx @@ -1,5 +1,5 @@ -import React, { ElementType } from 'react'; import { render } from '@testing-library/react'; +import React, { ElementType } from 'react'; import { HeaderDialogProvider, HeaderDialogContextProps } from '../../src'; export const renderWithHeaderContext = (