Skip to content

Full Toolkit for Next-Level Domain Analysis

Migrate results table to shadcn/ui 🧮

Felix Wotschofsky95f889fe9553
diff --git a/components/DnsTable.tsx b/components/DnsTable.tsx
index e3a209c..cb95a79 100644
--- a/components/DnsTable.tsx
+++ b/components/DnsTable.tsx
@@ -1,7 +1,13 @@
-import { chakra, Heading, Table, Tbody, Th, Thead, Tr } from '@chakra-ui/react';
-import { css } from '@emotion/react';
import { Fragment } from 'react';
+import {
+ Table,
+ TableBody,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from '@/components/ui/table';
+
import RecordRow from '@/components/RecordRow';
import { ResolvedRecords } from '@/utils/DnsLookup';
@@ -20,29 +26,26 @@ const DnsTable = ({ records }: DnsTableProps) => (
return (
<Fragment key={recordType}>
- <Heading as="h2" fontSize={{ base: 'xl', sm: '2xl' }} mb={4} mt={8}>
+ <h2 className="mb-4 mb-5 mt-8 text-xl font-semibold tracking-tight sm:text-2xl">
{recordType}
- </Heading>
- <chakra.div
- css={css`
- overflow-x: auto;
- `}
- >
+ </h2>
+
+ <div className="overflow-x-auto">
<Table key={recordType}>
- <Thead>
- <Tr>
- <Th pl={0}>Name</Th>
- <Th>TTL</Th>
- <Th pr={0}>Value</Th>
- </Tr>
- </Thead>
- <Tbody>
+ <TableHeader>
+ <TableRow>
+ <TableHead className="pl-0">Name</TableHead>
+ <TableHead>TTL</TableHead>
+ <TableHead className="pr-0">Value</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
{value.map((v) => (
<RecordRow key={v.type + v.data} record={v} />
))}
- </Tbody>
+ </TableBody>
</Table>
- </chakra.div>
+ </div>
</Fragment>
);
})}
diff --git a/components/IpDetailsModal.tsx b/components/IpDetailsModal.tsx
index e98004b..fd8a974 100644
--- a/components/IpDetailsModal.tsx
+++ b/components/IpDetailsModal.tsx
@@ -1,30 +1,31 @@
-import { ExternalLinkIcon } from '@chakra-ui/icons';
-import {
- chakra,
- Flex,
- IconButton,
- Link,
- Modal,
- ModalBody,
- ModalCloseButton,
- ModalContent,
- ModalHeader,
- ModalOverlay,
- Spinner,
- Table,
- Tbody,
- Td,
- Tooltip,
- Tr,
-} from '@chakra-ui/react';
-import { css } from '@emotion/react';
import type { LatLngExpression } from 'leaflet';
+import { ExternalLinkIcon } from 'lucide-react';
import dynamic from 'next/dynamic';
-import NextLink from 'next/link';
+import Link from 'next/link';
+import { type FC, useCallback } from 'react';
import useSWR from 'swr';
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+} from '@/components/ui/dialog';
+import { Table, TableBody, TableCell, TableRow } from '@/components/ui/table';
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from '@/components/ui/tooltip';
+
import type { IpLookupResponse } from '@/api/lookupIp';
+const LocationMap = dynamic(() => import('@/components/LocationMap'), {
+ ssr: false,
+});
+
enum EntryTypes {
IP,
Reverse,
@@ -41,9 +42,9 @@ type IpDetailsModalProps = {
onClose: () => void;
};
-const IpDetailsModal = (props: IpDetailsModalProps) => {
+const IpDetailsModal: FC<IpDetailsModalProps> = ({ ip, isOpen, onClose }) => {
const { data, error } = useSWR<IpLookupResponse>(
- props.isOpen ? `/api/lookupIp?ip=${encodeURIComponent(props.ip)}` : null
+ isOpen ? `/api/lookupIp?ip=${encodeURIComponent(ip)}` : null
);
let mappedEntries: { label: string; value: string; type: EntryTypes }[] = [];
@@ -54,7 +55,7 @@ const IpDetailsModal = (props: IpDetailsModalProps) => {
{
type: EntryTypes.IP,
label: 'IP',
- value: props.ip,
+ value: ip,
},
...data.reverse.map((address) => ({
type: EntryTypes.Reverse,
@@ -91,76 +92,73 @@ const IpDetailsModal = (props: IpDetailsModalProps) => {
location = [data.lat, data.lon];
}
- const LocationMap = dynamic(() => import('@/components/LocationMap'), {
- ssr: false,
- });
+ const onOpenChange = useCallback(
+ (open: boolean) => {
+ if (!open) {
+ onClose();
+ }
+ },
+ [onClose]
+ );
return (
- <Modal size="xl" isOpen={props.isOpen} onClose={props.onClose}>
- <ModalOverlay />
- <ModalContent>
- <ModalHeader>IP Details for {props.ip}</ModalHeader>
- <ModalCloseButton />
- <ModalBody>
- {!data ? (
- <Flex justify="center" align="center">
- <Spinner size="xl" my={8} />
- </Flex>
- ) : error ? (
- <p>An error occurred!</p>
- ) : (
- <>
- <Table>
- <Tbody>
- {mappedEntries.map((el) => (
- <Tr key={el.label + el.value}>
- <Td pl={0}>{el.label}</Td>
- <Td pr={0}>
- <>
- <span>{el.value}</span>{' '}
- {el.type === EntryTypes.Reverse && (
- <Tooltip label="View Domain Records">
- <NextLink
- href={`/lookup/${el.value}`}
- passHref
- legacyBehavior
- >
- <Link>
- <IconButton
- variant="link"
- size="sm"
- ml={-2.5}
- mr={-1.5}
- aria-label="View Domain Records"
- icon={<ExternalLinkIcon />}
- />
- </Link>
- </NextLink>
- </Tooltip>
- )}
- </>
- </Td>
- </Tr>
- ))}
- </Tbody>
- </Table>
+ <Dialog modal open={isOpen} onOpenChange={onOpenChange}>
+ <DialogContent>
+ <DialogHeader>
+ <DialogTitle>IP Details for {ip}</DialogTitle>
+ <DialogDescription>
+ {!data ? (
+ <div className="flex items-center justify-center">
+ <div
+ className="animate- my-8 inline-block h-9 w-9 animate-[spin_0.6s_linear_infinite] rounded-full border-[2px] border-current border-t-transparent text-gray-800"
+ role="status"
+ aria-label="loading"
+ >
+ <span className="sr-only">Loading...</span>
+ </div>
+ </div>
+ ) : error ? (
+ <p>An error occurred!</p>
+ ) : (
+ <>
+ <Table>
+ <TableBody>
+ {mappedEntries.map((el) => (
+ <TableRow key={el.label + el.value}>
+ <TableCell className="pl-0">{el.label}</TableCell>
+ <TableCell className="pr-0">
+ <>
+ <span>{el.value}</span>{' '}
+ {el.type === EntryTypes.Reverse && (
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <Link href={`/lookup/${el.value}`}>
+ <ExternalLinkIcon className="mx-1 inline-block h-3 w-3 -translate-y-0.5" />
+ </Link>
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>View Domain Records</p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ )}
+ </>
+ </TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
- <chakra.div
- css={css`
- .leaflet-container {
- width: 100%;
- height: 20rem;
- }
- `}
- my={4}
- >
- <LocationMap location={location} />
- </chakra.div>
- </>
- )}
- </ModalBody>
- </ModalContent>
- </Modal>
+ <div className="my-4 [&_.leaflet-container]:h-80 [&_.leaflet-container]:w-full">
+ <LocationMap location={location} />
+ </div>
+ </>
+ )}
+ </DialogDescription>
+ </DialogHeader>
+ </DialogContent>
+ </Dialog>
);
};
diff --git a/components/RecordRow.tsx b/components/RecordRow.tsx
index 0bf380c..cad6a4f 100644
--- a/components/RecordRow.tsx
+++ b/components/RecordRow.tsx
@@ -1,19 +1,20 @@
-import { ExternalLinkIcon } from '@chakra-ui/icons';
-import {
- IconButton,
- Link,
- Td,
- Tooltip,
- Tr,
- useDisclosure,
-} from '@chakra-ui/react';
-import NextLink from 'next/link';
-import { useRouter } from 'next/navigation';
-import { ReactNodeArray, useEffect, useState } from 'react';
-import { FaInfoCircle } from 'react-icons/fa';
+'use client';
+
+import { ExternalLinkIcon, InfoIcon } from 'lucide-react';
+import Link from 'next/link';
+import { type ReactNodeArray, useState } from 'react';
import reactStringReplace from 'react-string-replace';
+import { useDisclosure } from 'react-use-disclosure';
import isIP from 'validator/lib/isIP';
+import { TableCell, TableRow } from '@/components/ui/table';
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from '@/components/ui/tooltip';
+
import IpDetailsModal from '@/components/IpDetailsModal';
import { RawRecord } from '@/utils/DnsLookup';
@@ -21,45 +22,39 @@ const domainRegex =
/(_)*(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/g;
const RecordRow = ({ record }: { record: RawRecord }) => {
- // const router = useRouter();
const [detailedIp, setDetailedIp] = useState<string | null>(null);
- const { isOpen, onOpen, onClose } = useDisclosure();
-
- // useEffect(() => {
- // router.events.on('routeChangeStart', onClose);
-
- // return () => {
- // router.events.off('routeChangeStart', onClose);
- // };
- // });
+ const { isOpen, open, close } = useDisclosure();
- let interpolatedValue: ReactNodeArray | null = null;
+ let interpolatedValue: ReactNodeArray | string | null = record.data;
const domainMatches = record.data.match(domainRegex);
if (domainMatches) {
for (const domain of domainMatches) {
interpolatedValue = reactStringReplace(
- interpolatedValue ? interpolatedValue : record.data,
+ interpolatedValue,
domain,
(match) => {
if (isIP(match)) {
return (
<>
<span>{match}</span>{' '}
- <Tooltip label="View IP Info">
- <IconButton
- variant="link"
- size="sm"
- ml={-2.5}
- mr={-1.5}
- aria-label="View IP Info"
- icon={<FaInfoCircle />}
- onClick={() => {
- setDetailedIp(match);
- onOpen();
- }}
- />
- </Tooltip>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <InfoIcon
+ role="button"
+ className="mx-1 inline-block h-3 w-3 -translate-y-0.5 cursor-pointer"
+ onClick={() => {
+ setDetailedIp(match);
+ open();
+ }}
+ />
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>View IP Info</p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
</>
);
}
@@ -67,20 +62,18 @@ const RecordRow = ({ record }: { record: RawRecord }) => {
return (
<>
<span>{match}</span>{' '}
- <Tooltip label="View Domain Records">
- <NextLink href={`/lookup/${match}`} passHref legacyBehavior>
- <Link>
- <IconButton
- variant="link"
- size="sm"
- ml={-2.5}
- mr={-1.5}
- aria-label="View Domain Records"
- icon={<ExternalLinkIcon />}
- />
- </Link>
- </NextLink>
- </Tooltip>
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger>
+ <Link href={`/lookup/${match}`}>
+ <ExternalLinkIcon className="mx-1 inline-block h-3 w-3 -translate-y-0.5" />
+ </Link>
+ </TooltipTrigger>
+ <TooltipContent>
+ <p>View Domain Records</p>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
</>
);
}
@@ -90,17 +83,13 @@ const RecordRow = ({ record }: { record: RawRecord }) => {
return (
<>
- <Tr>
- <Td pl={0}>{record.name}</Td>
- <Td>{record.TTL}</Td>
- <Td pr={0}>{interpolatedValue ? interpolatedValue : record.data}</Td>
- </Tr>
+ <TableRow>
+ <TableCell className="pl-0">{record.name}</TableCell>
+ <TableCell>{record.TTL}</TableCell>
+ <TableCell className="pr-0">{interpolatedValue}</TableCell>
+ </TableRow>
- <IpDetailsModal
- ip={detailedIp as string}
- isOpen={isOpen}
- onClose={onClose}
- />
+ <IpDetailsModal ip={detailedIp!} isOpen={isOpen} onClose={close} />
</>
);
};
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
new file mode 100644
index 0000000..bcf793f
--- /dev/null
+++ b/components/ui/dialog.tsx
@@ -0,0 +1,128 @@
+'use client';
+
+import * as DialogPrimitive from '@radix-ui/react-dialog';
+import * as React from 'react';
+import { X } from 'lucide-react';
+
+import { cn } from '@/lib/utils';
+
+const Dialog = DialogPrimitive.Root;
+
+const DialogTrigger = DialogPrimitive.Trigger;
+
+const DialogPortal = ({
+ className,
+ children,
+ ...props
+}: DialogPrimitive.DialogPortalProps) => (
+ <DialogPrimitive.Portal className={cn(className)} {...props}>
+ <div className="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
+ {children}
+ </div>
+ </DialogPrimitive.Portal>
+);
+DialogPortal.displayName = DialogPrimitive.Portal.displayName;
+
+const DialogOverlay = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Overlay
+ ref={ref}
+ className={cn(
+ 'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in',
+ className
+ )}
+ {...props}
+ />
+));
+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
+
+const DialogContent = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <DialogPortal>
+ <DialogOverlay />
+ <DialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ 'fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0',
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
+ <X className="h-4 w-4" />
+ <span className="sr-only">Close</span>
+ </DialogPrimitive.Close>
+ </DialogPrimitive.Content>
+ </DialogPortal>
+));
+DialogContent.displayName = DialogPrimitive.Content.displayName;
+
+const DialogHeader = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLDivElement>) => (
+ <div
+ className={cn(
+ 'flex flex-col space-y-1.5 text-center sm:text-left',
+ className
+ )}
+ {...props}
+ />
+);
+DialogHeader.displayName = 'DialogHeader';
+
+const DialogFooter = ({
+ className,
+ ...props
+}: React.HTMLAttributes<HTMLDivElement>) => (
+ <div
+ className={cn(
+ 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
+ className
+ )}
+ {...props}
+ />
+);
+DialogFooter.displayName = 'DialogFooter';
+
+const DialogTitle = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Title
+ ref={ref}
+ className={cn(
+ 'text-lg font-semibold leading-none tracking-tight',
+ className
+ )}
+ {...props}
+ />
+));
+DialogTitle.displayName = DialogPrimitive.Title.displayName;
+
+const DialogDescription = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Description
+ ref={ref}
+ className={cn('text-sm text-muted-foreground', className)}
+ {...props}
+ />
+));
+DialogDescription.displayName = DialogPrimitive.Description.displayName;
+
+export {
+ Dialog,
+ DialogTrigger,
+ DialogContent,
+ DialogHeader,
+ DialogFooter,
+ DialogTitle,
+ DialogDescription,
+};
diff --git a/components/ui/table.tsx b/components/ui/table.tsx
new file mode 100644
index 0000000..cfc24d2
--- /dev/null
+++ b/components/ui/table.tsx
@@ -0,0 +1,114 @@
+import * as React from 'react';
+
+import { cn } from '@/lib/utils';
+
+const Table = React.forwardRef<
+ HTMLTableElement,
+ React.HTMLAttributes<HTMLTableElement>
+>(({ className, ...props }, ref) => (
+ <div className="w-full overflow-auto">
+ <table
+ ref={ref}
+ className={cn('w-full caption-bottom text-sm', className)}
+ {...props}
+ />
+ </div>
+));
+Table.displayName = 'Table';
+
+const TableHeader = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />
+));
+TableHeader.displayName = 'TableHeader';
+
+const TableBody = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <tbody
+ ref={ref}
+ className={cn('[&_tr:last-child]:border-0', className)}
+ {...props}
+ />
+));
+TableBody.displayName = 'TableBody';
+
+const TableFooter = React.forwardRef<
+ HTMLTableSectionElement,
+ React.HTMLAttributes<HTMLTableSectionElement>
+>(({ className, ...props }, ref) => (
+ <tfoot
+ ref={ref}
+ className={cn('bg-primary font-medium text-primary-foreground', className)}
+ {...props}
+ />
+));
+TableFooter.displayName = 'TableFooter';
+
+const TableRow = React.forwardRef<
+ HTMLTableRowElement,
+ React.HTMLAttributes<HTMLTableRowElement>
+>(({ className, ...props }, ref) => (
+ <tr
+ ref={ref}
+ className={cn(
+ 'border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted',
+ className
+ )}
+ {...props}
+ />
+));
+TableRow.displayName = 'TableRow';
+
+const TableHead = React.forwardRef<
+ HTMLTableCellElement,
+ React.ThHTMLAttributes<HTMLTableCellElement>
+>(({ className, ...props }, ref) => (
+ <th
+ ref={ref}
+ className={cn(
+ 'h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0',
+ className
+ )}
+ {...props}
+ />
+));
+TableHead.displayName = 'TableHead';
+
+const TableCell = React.forwardRef<
+ HTMLTableCellElement,
+ React.TdHTMLAttributes<HTMLTableCellElement>
+>(({ className, ...props }, ref) => (
+ <td
+ ref={ref}
+ className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)}
+ {...props}
+ />
+));
+TableCell.displayName = 'TableCell';
+
+const TableCaption = React.forwardRef<
+ HTMLTableCaptionElement,
+ React.HTMLAttributes<HTMLTableCaptionElement>
+>(({ className, ...props }, ref) => (
+ <caption
+ ref={ref}
+ className={cn('mt-4 text-sm text-muted-foreground', className)}
+ {...props}
+ />
+));
+TableCaption.displayName = 'TableCaption';
+
+export {
+ Table,
+ TableHeader,
+ TableBody,
+ TableFooter,
+ TableHead,
+ TableRow,
+ TableCell,
+ TableCaption,
+};
diff --git a/components/ui/tooltip.tsx b/components/ui/tooltip.tsx
new file mode 100644
index 0000000..22da2a6
--- /dev/null
+++ b/components/ui/tooltip.tsx
@@ -0,0 +1,30 @@
+'use client';
+
+import * as TooltipPrimitive from '@radix-ui/react-tooltip';
+import * as React from 'react';
+
+import { cn } from '@/lib/utils';
+
+const TooltipProvider = TooltipPrimitive.Provider;
+
+const Tooltip = TooltipPrimitive.Root;
+
+const TooltipTrigger = TooltipPrimitive.Trigger;
+
+const TooltipContent = React.forwardRef<
+ React.ElementRef<typeof TooltipPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <TooltipPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',
+ className
+ )}
+ {...props}
+ />
+));
+TooltipContent.displayName = TooltipPrimitive.Content.displayName;
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
diff --git a/package.json b/package.json
index a3ca1e4..583170e 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,9 @@
"@chakra-ui/react": "^2.6.1",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
+ "@radix-ui/react-dialog": "^1.0.3",
"@radix-ui/react-slot": "^1.0.1",
+ "@radix-ui/react-tooltip": "^1.0.5",
"@types/nprogress": "^0.2.0",
"@types/punycode": "^2.1.0",
"@types/validator": "^13.7.17",
@@ -35,6 +37,7 @@
"react-icons": "^4.8.0",
"react-leaflet": "^4.2.1",
"react-string-replace": "^1.1.0",
+ "react-use-disclosure": "^6.1.0",
"swr": "^2.1.5",
"tailwind-merge": "^1.12.0",
"tailwindcss": "^3.3.2",
diff --git a/yarn.lock b/yarn.lock
index a428529..6e5be78 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1133,6 +1133,26 @@
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.41.0.tgz#080321c3b68253522f7646b55b577dd99d2950b3"
integrity sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==
+"@floating-ui/core@^0.7.3":
+ version "0.7.3"
+ resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-0.7.3.tgz#d274116678ffae87f6b60e90f88cc4083eefab86"
+ integrity sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==
+
+"@floating-ui/dom@^0.5.3":
+ version "0.5.4"
+ resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-0.5.4.tgz#4eae73f78bcd4bd553ae2ade30e6f1f9c73fe3f1"
+ integrity sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==
+ dependencies:
+ "@floating-ui/core" "^0.7.3"
+
+"@floating-ui/[email protected]":
+ version "0.7.2"
+ resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-0.7.2.tgz#0bf4ceccb777a140fc535c87eb5d6241c8e89864"
+ integrity sha512-1T0sJcpHgX/u4I1OzIEhlcrvkUN8ln39nz7fMoE/2HDHrPiMFoOGR7++GYyfUmIQHkkrTinaeQsO3XWubjSvGg==
+ dependencies:
+ "@floating-ui/dom" "^0.5.3"
+ use-isomorphic-layout-effect "^1.1.1"
+
"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9"
@@ -1284,6 +1304,21 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45"
integrity sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/primitive/-/primitive-1.0.0.tgz#e1d8ef30b10ea10e69c76e896f608d9276352253"
+ integrity sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-arrow/-/react-arrow-1.0.2.tgz#93b0ff95f65e2264a05b14ef1031ec798243dd6f"
+ integrity sha512-fqYwhhI9IarZ0ll2cUSfKuXHlJK0qE4AfnRrPBbRwEH/4mGQn04/QFGomLi8TXWIdv9WJk//KgGm+aDxVIr1wA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-primitive" "1.0.2"
+
"@radix-ui/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz#37595b1f16ec7f228d698590e78eeed18ff218ae"
@@ -1291,7 +1326,114 @@
dependencies:
"@babel/runtime" "^7.13.10"
-"@radix-ui/react-slot@^1.0.1":
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-context/-/react-context-1.0.0.tgz#f38e30c5859a9fb5e9aa9a9da452ee3ed9e0aee0"
+ integrity sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
+"@radix-ui/react-dialog@^1.0.3":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-dialog/-/react-dialog-1.0.3.tgz#a715bf30f35fcd80476c0a07fcc073c1968e6d3e"
+ integrity sha512-owNhq36kNPqC2/a+zJRioPg6HHnTn5B/sh/NjTY8r4W9g1L5VJlrzZIVcBr7R9Mg8iLjVmh6MGgMlfoVf/WO/A==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-dismissable-layer" "1.0.3"
+ "@radix-ui/react-focus-guards" "1.0.0"
+ "@radix-ui/react-focus-scope" "1.0.2"
+ "@radix-ui/react-id" "1.0.0"
+ "@radix-ui/react-portal" "1.0.2"
+ "@radix-ui/react-presence" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.2"
+ "@radix-ui/react-slot" "1.0.1"
+ "@radix-ui/react-use-controllable-state" "1.0.0"
+ aria-hidden "^1.1.1"
+ react-remove-scroll "2.5.5"
+
+"@radix-ui/[email protected]":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.3.tgz#63844d8e6bbcd010a513e7176d051c3c4044e09e"
+ integrity sha512-nXZOvFjOuHS1ovumntGV7NNoLaEp9JEvTht3MBjP44NSW5hUKj/8OnfN3+8WmB+CEhN44XaGhpHoSsUIEl5P7Q==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.2"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+ "@radix-ui/react-use-escape-keydown" "1.0.2"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.0.tgz#339c1c69c41628c1a5e655f15f7020bf11aa01fa"
+ integrity sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.2.tgz#5fe129cbdb5986d0a3ae16d14c473c243fe3bc79"
+ integrity sha512-spwXlNTfeIprt+kaEWE/qYuYT3ZAqJiAGjN/JgdvgVDTu8yc+HuX+WOWXrKliKnLnwck0F6JDkqIERncnih+4A==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.2"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.0.0.tgz#8d43224910741870a45a8c9d092f25887bb6d11e"
+ integrity sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-popper/-/react-popper-1.1.1.tgz#54f060941c981e965ff5d6b64e152d6298d2326e"
+ integrity sha512-keYDcdMPNMjSC8zTsZ8wezUMiWM9Yj14wtF3s0PTIs9srnEPC9Kt2Gny1T3T81mmSeyDjZxsD9N5WCwNNb712w==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@floating-ui/react-dom" "0.7.2"
+ "@radix-ui/react-arrow" "1.0.2"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.2"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+ "@radix-ui/react-use-rect" "1.0.0"
+ "@radix-ui/react-use-size" "1.0.0"
+ "@radix-ui/rect" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.2.tgz#102370b1027a767a371cab0243be4bc664f72330"
+ integrity sha512-swu32idoCW7KA2VEiUZGBSu9nB6qwGdV6k6HYhUoOo3M1FFpD+VgLzUqtt3mwL1ssz7r2x8MggpLSQach2Xy/Q==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-primitive" "1.0.2"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-1.0.0.tgz#814fe46df11f9a468808a6010e3f3ca7e0b2e84a"
+ integrity sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.2.tgz#54e22f49ca59ba88d8143090276d50b93f8a7053"
+ integrity sha512-zY6G5Qq4R8diFPNwtyoLRZBxzu1Z+SXMlfYpChN7Dv8gvmx9X3qhDqiLWvKseKVJMuedFeU/Sa0Sy/Ia+t06Dw==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-slot" "1.0.1"
+
+"@radix-ui/[email protected]", "@radix-ui/react-slot@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"
integrity sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==
@@ -1299,6 +1441,86 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-compose-refs" "1.0.0"
+"@radix-ui/react-tooltip@^1.0.5":
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-tooltip/-/react-tooltip-1.0.5.tgz#fe20274aeac874db643717fc7761d5a8abdd62d1"
+ integrity sha512-cDKVcfzyO6PpckZekODJZDe5ZxZ2fCZlzKzTmPhe4mX9qTHRfLcKgqb0OKf22xLwDequ2tVleim+ZYx3rabD5w==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/primitive" "1.0.0"
+ "@radix-ui/react-compose-refs" "1.0.0"
+ "@radix-ui/react-context" "1.0.0"
+ "@radix-ui/react-dismissable-layer" "1.0.3"
+ "@radix-ui/react-id" "1.0.0"
+ "@radix-ui/react-popper" "1.1.1"
+ "@radix-ui/react-portal" "1.0.2"
+ "@radix-ui/react-presence" "1.0.0"
+ "@radix-ui/react-primitive" "1.0.2"
+ "@radix-ui/react-slot" "1.0.1"
+ "@radix-ui/react-use-controllable-state" "1.0.0"
+ "@radix-ui/react-visually-hidden" "1.0.2"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz#9e7b8b6b4946fe3cbe8f748c82a2cce54e7b6a90"
+ integrity sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.0.tgz#a64deaafbbc52d5d407afaa22d493d687c538b7f"
+ integrity sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.2.tgz#09ab6455ab240b4f0a61faf06d4e5132c4d639f6"
+ integrity sha512-DXGim3x74WgUv+iMNCF+cAo8xUHHeqvjx8zs7trKf+FkQKPQXLk2sX7Gx1ysH7Q76xCpZuxIJE7HLPxRE+Q+GA==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-use-callback-ref" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.0.tgz#2fc19e97223a81de64cd3ba1dc42ceffd82374dc"
+ integrity sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-rect/-/react-use-rect-1.0.0.tgz#b040cc88a4906b78696cd3a32b075ed5b1423b3e"
+ integrity sha512-TB7pID8NRMEHxb/qQJpvSt3hQU4sqNPM1VCTjTRjEOa7cEop/QMuq8S6fb/5Tsz64kqSvB9WnwsDHtjnrM9qew==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/rect" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-size/-/react-use-size-1.0.0.tgz#a0b455ac826749419f6354dc733e2ca465054771"
+ integrity sha512-imZ3aYcoYCKhhgNpkNDh/aTiU05qw9hX+HHI1QDBTyIlcFjgeFlKKySNGMwTp7nYFLQg/j0VA2FmCY4WPDDHMg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-use-layout-effect" "1.0.0"
+
+"@radix-ui/[email protected]":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.2.tgz#29b117a59ef09a984bdad12cb98d81e8350be450"
+ integrity sha512-qirnJxtYn73HEk1rXL12/mXnu2rwsNHDID10th2JGtdK25T9wX+mxRmGt7iPSahw512GbZOc0syZX1nLQGoEOg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/react-primitive" "1.0.2"
+
+"@radix-ui/[email protected]":
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.0.0.tgz#0dc8e6a829ea2828d53cbc94b81793ba6383bf3c"
+ integrity sha512-d0O68AYy/9oeEy1DdC07bz1/ZXX+DqCskRd3i4JzLSTXwefzaepQrKjXC7aNM8lTHjFLDO0pDgaEiQ7jEk+HVg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+
"@react-leaflet/core@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@react-leaflet/core/-/core-2.1.0.tgz#383acd31259d7c9ae8fb1b02d5e18fe613c2a13d"
@@ -1524,7 +1746,7 @@ argparse@^2.0.1:
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
-aria-hidden@^1.2.2:
+aria-hidden@^1.1.1, aria-hidden@^1.2.2:
version "1.2.3"
resolved "https://registry.yarnpkg.com/aria-hidden/-/aria-hidden-1.2.3.tgz#14aeb7fb692bbb72d69bebfa47279c1fd725e954"
integrity sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==
@@ -3424,7 +3646,7 @@ react-remove-scroll-bar@^2.3.3:
react-style-singleton "^2.2.1"
tslib "^2.0.0"
-react-remove-scroll@^2.5.5:
[email protected], react-remove-scroll@^2.5.5:
version "2.5.5"
resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz#1e31a1260df08887a8a0e46d09271b52b3a37e77"
integrity sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==
@@ -3449,6 +3671,11 @@ react-style-singleton@^2.2.1:
invariant "^2.2.4"
tslib "^2.0.0"
+react-use-disclosure@^6.1.0:
+ version "6.1.0"
+ resolved "https://registry.yarnpkg.com/react-use-disclosure/-/react-use-disclosure-6.1.0.tgz#f1d8cfca5a52b9a7320622ef4f2002819d81e73f"
+ integrity sha512-ti5hvlbgsIgnFVBY5kVIDiQmfiVDVWsKuJhlr++gocWNAun9UwprmuBUWm1GMAm5hZEXCxJszaYLM80Y43WwDA==
+
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
@@ -3930,6 +4157,11 @@ use-callback-ref@^1.3.0:
dependencies:
tslib "^2.0.0"
+use-isomorphic-layout-effect@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz#497cefb13d863d687b08477d9e5a164ad8c1a6fb"
+ integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==
+
use-sidecar@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.2.tgz#2f43126ba2d7d7e117aa5855e5d8f0276dfe73c2"