diff --git a/src/components/Accordion/AccordionContext.ts b/src/components/Accordion/AccordionContext.ts index 6971fa30..6f0952e9 100644 --- a/src/components/Accordion/AccordionContext.ts +++ b/src/components/Accordion/AccordionContext.ts @@ -1,4 +1,4 @@ -import React, { createContext, useContext, Dispatch } from "react"; +import { createContext, useContext, Dispatch } from "react"; export interface AccordionContextValue { value?: string | null; diff --git a/src/components/Accordion/AccordionItem/AccordionItemContext.ts b/src/components/Accordion/AccordionItem/AccordionItemContext.ts index 15c8bb9b..2e204b63 100644 --- a/src/components/Accordion/AccordionItem/AccordionItemContext.ts +++ b/src/components/Accordion/AccordionItem/AccordionItemContext.ts @@ -1,4 +1,4 @@ -import React, { createContext, useContext } from "react"; +import { createContext, useContext } from "react"; export type AccordionItemContextProps = string | null; diff --git a/src/components/Main/Main.stories.tsx b/src/components/Main/Main.stories.tsx index fe4ec8bf..125b9de7 100644 --- a/src/components/Main/Main.stories.tsx +++ b/src/components/Main/Main.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Main from "./Main"; diff --git a/src/components/Main/Main.test.tsx b/src/components/Main/Main.test.tsx index 39b24f38..0cb45a44 100644 --- a/src/components/Main/Main.test.tsx +++ b/src/components/Main/Main.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render } from "@testing-library/react"; // Component import Main from "./Main"; diff --git a/src/components/NativeDateField/NativeDateField.test.tsx b/src/components/NativeDateField/NativeDateField.test.tsx index af28a2bf..b32ac23c 100644 --- a/src/components/NativeDateField/NativeDateField.test.tsx +++ b/src/components/NativeDateField/NativeDateField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import NativeDateField from "./NativeDateField"; diff --git a/src/components/NativeSelectField/NativeSelectField.test.tsx b/src/components/NativeSelectField/NativeSelectField.test.tsx index a8c9fcd5..0aa7f9fc 100644 --- a/src/components/NativeSelectField/NativeSelectField.test.tsx +++ b/src/components/NativeSelectField/NativeSelectField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import NativeSelectField from "./NativeSelectField"; diff --git a/src/components/NumberField/NumberField.test.tsx b/src/components/NumberField/NumberField.test.tsx index 958a4924..6ebe3a82 100644 --- a/src/components/NumberField/NumberField.test.tsx +++ b/src/components/NumberField/NumberField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import NumberField from "./NumberField"; diff --git a/src/components/Paper/Paper.stories.tsx b/src/components/Paper/Paper.stories.tsx index 06dc7c3f..50745b5e 100644 --- a/src/components/Paper/Paper.stories.tsx +++ b/src/components/Paper/Paper.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Paper from "./Paper"; diff --git a/src/components/PasswordField/PasswordField.test.tsx b/src/components/PasswordField/PasswordField.test.tsx index bc39c9fc..9baef235 100644 --- a/src/components/PasswordField/PasswordField.test.tsx +++ b/src/components/PasswordField/PasswordField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import PasswordField from "./PasswordField"; diff --git a/src/components/PinField/PinField.test.tsx b/src/components/PinField/PinField.test.tsx index dd25cbb2..fbaf4e37 100644 --- a/src/components/PinField/PinField.test.tsx +++ b/src/components/PinField/PinField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; import PinField from "./PinField"; // Component diff --git a/src/components/PrismaneProvider/usePrismaneColor/usePrismaneColor.stories.tsx b/src/components/PrismaneProvider/usePrismaneColor/usePrismaneColor.stories.tsx index e9a3a627..dfe72554 100644 --- a/src/components/PrismaneProvider/usePrismaneColor/usePrismaneColor.stories.tsx +++ b/src/components/PrismaneProvider/usePrismaneColor/usePrismaneColor.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Text } from "../../.."; import usePrismaneColor from "../usePrismaneColor/usePrismaneColor"; import { fr } from "../../../utils"; diff --git a/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.stories.tsx b/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.stories.tsx index 0401da2f..d037fdc3 100644 --- a/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.stories.tsx +++ b/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Center from "../../Center"; import Button from "../../Button"; diff --git a/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.test.tsx b/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.test.tsx index d85fa6f1..6cf181ba 100644 --- a/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.test.tsx +++ b/src/components/PrismaneProvider/useThemeModeValue/useThemeModeValue.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { renderHook, act } from "@testing-library/react-hooks/dom"; import { usePrismaneTheme } from "../PrismaneContext"; import PrismaneProvider from "../PrismaneProvider"; diff --git a/src/components/SegmentedField/SegmentedField.test.tsx b/src/components/SegmentedField/SegmentedField.test.tsx index 41838ef7..1accb207 100644 --- a/src/components/SegmentedField/SegmentedField.test.tsx +++ b/src/components/SegmentedField/SegmentedField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import SegmentedField from "./SegmentedField"; diff --git a/src/components/SelectField/SelectField.test.tsx b/src/components/SelectField/SelectField.test.tsx index a965cfe1..4a3b9f04 100644 --- a/src/components/SelectField/SelectField.test.tsx +++ b/src/components/SelectField/SelectField.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render, screen, fireEvent } from "@testing-library/react"; // Component import SelectField from "./SelectField"; diff --git a/src/components/Skeleton/Skeleton.stories.tsx b/src/components/Skeleton/Skeleton.stories.tsx index 6ba79c39..d3bd2494 100644 --- a/src/components/Skeleton/Skeleton.stories.tsx +++ b/src/components/Skeleton/Skeleton.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Skeleton from "./Skeleton"; import Stack from "../Stack"; diff --git a/src/components/Spinner/Spinner.stories.tsx b/src/components/Spinner/Spinner.stories.tsx index b8d0a48b..07e05ceb 100644 --- a/src/components/Spinner/Spinner.stories.tsx +++ b/src/components/Spinner/Spinner.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Spinner from "./Spinner"; diff --git a/src/components/Square/Square.stories.tsx b/src/components/Square/Square.stories.tsx index 43b963c8..87a87eab 100644 --- a/src/components/Square/Square.stories.tsx +++ b/src/components/Square/Square.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Wrench } from "@phosphor-icons/react"; // Components import Square from "./Square"; diff --git a/src/components/Text/Text.stories.tsx b/src/components/Text/Text.stories.tsx index 72d93ca1..44a80090 100644 --- a/src/components/Text/Text.stories.tsx +++ b/src/components/Text/Text.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Text from "./Text"; import Stack from "../Stack/Stack"; diff --git a/src/hooks/useAnimation/useAnimation.stories.tsx b/src/hooks/useAnimation/useAnimation.stories.tsx index d23d708e..4c36458e 100644 --- a/src/hooks/useAnimation/useAnimation.stories.tsx +++ b/src/hooks/useAnimation/useAnimation.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Button, Animation } from "../../components"; import useAnimation from "./useAnimation"; import { fr } from "../../utils"; diff --git a/src/hooks/useCopyToClipboard/useCopyToClipboard.stories.tsx b/src/hooks/useCopyToClipboard/useCopyToClipboard.stories.tsx index f85e027e..bbeea26d 100644 --- a/src/hooks/useCopyToClipboard/useCopyToClipboard.stories.tsx +++ b/src/hooks/useCopyToClipboard/useCopyToClipboard.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Button, Text } from "../../components"; import useCopyToClipboard from "./useCopyToClipboard"; import { fr } from "../../utils"; diff --git a/src/hooks/useCopyToClipboard/useCopyToClipboard.test.tsx b/src/hooks/useCopyToClipboard/useCopyToClipboard.test.tsx index 719960b5..7fa4af58 100644 --- a/src/hooks/useCopyToClipboard/useCopyToClipboard.test.tsx +++ b/src/hooks/useCopyToClipboard/useCopyToClipboard.test.tsx @@ -1,5 +1,4 @@ import { renderHook } from "@testing-library/react-hooks/dom"; -import React from "react"; import { describe, vi } from "vitest"; // Hook diff --git a/src/hooks/useCounter/useCounter.stories.tsx b/src/hooks/useCounter/useCounter.stories.tsx index 8c7fd65f..e8c72381 100644 --- a/src/hooks/useCounter/useCounter.stories.tsx +++ b/src/hooks/useCounter/useCounter.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Button, Text } from "../../components"; import useCounter from "./useCounter"; import { fr } from "../../utils"; diff --git a/src/hooks/useDebounce/useDebounce.test.tsx b/src/hooks/useDebounce/useDebounce.test.tsx index c6268838..8ece5ae6 100644 --- a/src/hooks/useDebounce/useDebounce.test.tsx +++ b/src/hooks/useDebounce/useDebounce.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useDimensions/useDimensions.test.tsx b/src/hooks/useDimensions/useDimensions.test.tsx index a05586d1..6ba61271 100644 --- a/src/hooks/useDimensions/useDimensions.test.tsx +++ b/src/hooks/useDimensions/useDimensions.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useDraggable/useDraggable.stories.tsx b/src/hooks/useDraggable/useDraggable.stories.tsx index 0d4cb8d3..def1706a 100644 --- a/src/hooks/useDraggable/useDraggable.stories.tsx +++ b/src/hooks/useDraggable/useDraggable.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Box } from "../../components"; import useDraggable from "./useDraggable"; import { fr } from "../../utils"; diff --git a/src/hooks/useDraggable/useDraggable.test.tsx b/src/hooks/useDraggable/useDraggable.test.tsx index 261d950e..d7708696 100644 --- a/src/hooks/useDraggable/useDraggable.test.tsx +++ b/src/hooks/useDraggable/useDraggable.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { renderHook, act } from "@testing-library/react-hooks"; import { render, fireEvent } from "@testing-library/react"; // Hook diff --git a/src/hooks/useEmulatedFieldChange/useEmulatedFieldChange.test.tsx b/src/hooks/useEmulatedFieldChange/useEmulatedFieldChange.test.tsx index c4cc1354..6d7258c9 100644 --- a/src/hooks/useEmulatedFieldChange/useEmulatedFieldChange.test.tsx +++ b/src/hooks/useEmulatedFieldChange/useEmulatedFieldChange.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; // Hook import useEmulatedFieldChange from "./useEmulatedFieldChange"; diff --git a/src/hooks/useFocusTrap/useFocusTrap.test.tsx b/src/hooks/useFocusTrap/useFocusTrap.test.tsx index 41b89d65..9a75a82b 100644 --- a/src/hooks/useFocusTrap/useFocusTrap.test.tsx +++ b/src/hooks/useFocusTrap/useFocusTrap.test.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { render } from "@testing-library/react"; import { renderHook } from "@testing-library/react-hooks"; import useFocusTrap from "./useFocusTrap"; diff --git a/src/hooks/useForm/useForm.stories.tsx b/src/hooks/useForm/useForm.stories.tsx index 6ec05d1a..1a500ee5 100644 --- a/src/hooks/useForm/useForm.stories.tsx +++ b/src/hooks/useForm/useForm.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import Form from "../../components/Form"; import TextField from "../../components/TextField/TextField"; diff --git a/src/hooks/useForm/useForm.test.tsx b/src/hooks/useForm/useForm.test.tsx index 7df32c9d..58e668cf 100644 --- a/src/hooks/useForm/useForm.test.tsx +++ b/src/hooks/useForm/useForm.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useIdle/useIdle.stories.tsx b/src/hooks/useIdle/useIdle.stories.tsx index 86e0b494..421a401a 100644 --- a/src/hooks/useIdle/useIdle.stories.tsx +++ b/src/hooks/useIdle/useIdle.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Text } from "../../components"; import useIdle from "./useIdle"; diff --git a/src/hooks/useIdle/useIdle.test.tsx b/src/hooks/useIdle/useIdle.test.tsx index 70c28b44..614dea94 100644 --- a/src/hooks/useIdle/useIdle.test.tsx +++ b/src/hooks/useIdle/useIdle.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useInterval/useInterval.test.tsx b/src/hooks/useInterval/useInterval.test.tsx index 5c283d3f..20e54e71 100644 --- a/src/hooks/useInterval/useInterval.test.tsx +++ b/src/hooks/useInterval/useInterval.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useKeyboardShortcut/useKeyboardShortcut.test.tsx b/src/hooks/useKeyboardShortcut/useKeyboardShortcut.test.tsx index 85863bcc..7e820f40 100644 --- a/src/hooks/useKeyboardShortcut/useKeyboardShortcut.test.tsx +++ b/src/hooks/useKeyboardShortcut/useKeyboardShortcut.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; import { fireEvent } from "@testing-library/react"; diff --git a/src/hooks/useLocalStorage/useLocalStorage.stories.tsx b/src/hooks/useLocalStorage/useLocalStorage.stories.tsx index fda12c88..1361b908 100644 --- a/src/hooks/useLocalStorage/useLocalStorage.stories.tsx +++ b/src/hooks/useLocalStorage/useLocalStorage.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Text, Button } from "../../components"; import useLocalStorage from "./useLocalStorage"; import { fr } from "../../utils"; diff --git a/src/hooks/useLocalization/useLocalization.stories.tsx b/src/hooks/useLocalization/useLocalization.stories.tsx index 5f33ac47..13587250 100644 --- a/src/hooks/useLocalization/useLocalization.stories.tsx +++ b/src/hooks/useLocalization/useLocalization.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Text, Button } from "../../components"; import useLocalization from "./useLocalization"; import { fr } from "../../utils"; diff --git a/src/hooks/useMediaQuery/useMediaQuery.stories.tsx b/src/hooks/useMediaQuery/useMediaQuery.stories.tsx index 4096cb7d..4e5a4e54 100644 --- a/src/hooks/useMediaQuery/useMediaQuery.stories.tsx +++ b/src/hooks/useMediaQuery/useMediaQuery.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import { Text } from "../../components"; // Hooks diff --git a/src/hooks/useMediaQuery/useMediaQuery.test.tsx b/src/hooks/useMediaQuery/useMediaQuery.test.tsx index 671c1cbe..91ff557d 100644 --- a/src/hooks/useMediaQuery/useMediaQuery.test.tsx +++ b/src/hooks/useMediaQuery/useMediaQuery.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useMemoization/useMemoization.stories.tsx b/src/hooks/useMemoization/useMemoization.stories.tsx index b540d3f4..703a517e 100644 --- a/src/hooks/useMemoization/useMemoization.stories.tsx +++ b/src/hooks/useMemoization/useMemoization.stories.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import React, { useState } from "react"; // Components import { Stack, Button, Text } from "../../components"; // Hooks diff --git a/src/hooks/useMemoization/useMemoization.test.tsx b/src/hooks/useMemoization/useMemoization.test.tsx index dcf050a4..32047537 100644 --- a/src/hooks/useMemoization/useMemoization.test.tsx +++ b/src/hooks/useMemoization/useMemoization.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useNetworkStatus/useNetworkStatus.stories.tsx b/src/hooks/useNetworkStatus/useNetworkStatus.stories.tsx index 980bcb0e..0bd51045 100644 --- a/src/hooks/useNetworkStatus/useNetworkStatus.stories.tsx +++ b/src/hooks/useNetworkStatus/useNetworkStatus.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; // Components import { Stack, Text, Center } from "../../components"; // Hooks diff --git a/src/hooks/useOutsideClick/useOutsideClick.stories.tsx b/src/hooks/useOutsideClick/useOutsideClick.stories.tsx index 818d6b75..e1c4bd76 100644 --- a/src/hooks/useOutsideClick/useOutsideClick.stories.tsx +++ b/src/hooks/useOutsideClick/useOutsideClick.stories.tsx @@ -1,3 +1,5 @@ +import React from "react"; + export default { tags: ["autodocs"], title: "Hooks/User Interface/useOutsideClick", diff --git a/src/hooks/usePresence/usePresence.test.tsx b/src/hooks/usePresence/usePresence.test.tsx index 80a241b9..ea71cbeb 100644 --- a/src/hooks/usePresence/usePresence.test.tsx +++ b/src/hooks/usePresence/usePresence.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test, vi } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useScroll/useScroll.stories.tsx b/src/hooks/useScroll/useScroll.stories.tsx index 630c94b2..8acb53d4 100644 --- a/src/hooks/useScroll/useScroll.stories.tsx +++ b/src/hooks/useScroll/useScroll.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Text, Button, Stack } from "../../components"; import useScroll from "./useScroll"; import { fr } from "../../utils"; diff --git a/src/hooks/useSearch/useSearch.stories.tsx b/src/hooks/useSearch/useSearch.stories.tsx index 42ab949c..70ea60c2 100644 --- a/src/hooks/useSearch/useSearch.stories.tsx +++ b/src/hooks/useSearch/useSearch.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, TextField, List } from "../../components"; import useSearch from "./useSearch"; import { fr } from "../../utils"; diff --git a/src/hooks/useSearch/useSearch.test.tsx b/src/hooks/useSearch/useSearch.test.tsx index 9b6ec8c2..661e121c 100644 --- a/src/hooks/useSearch/useSearch.test.tsx +++ b/src/hooks/useSearch/useSearch.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { test } from "vitest"; import { renderHook, act } from "@testing-library/react-hooks"; // Hook diff --git a/src/hooks/useSorting/useSorting.stories.tsx b/src/hooks/useSorting/useSorting.stories.tsx index 20af4109..85a14f24 100644 --- a/src/hooks/useSorting/useSorting.stories.tsx +++ b/src/hooks/useSorting/useSorting.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Stack, Center, Button, Text } from "../../components"; import { fr } from "../../utils"; import useSorting from "./useSorting"; diff --git a/src/hooks/useToggle/useToggle.stories.tsx b/src/hooks/useToggle/useToggle.stories.tsx index d9d4ed1c..f30385fb 100644 --- a/src/hooks/useToggle/useToggle.stories.tsx +++ b/src/hooks/useToggle/useToggle.stories.tsx @@ -1,3 +1,4 @@ +import React from "react"; import { Flex, Text, Button } from "../../components"; import useToggle from "./useToggle"; import { fr } from "../../utils";