Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

final touch ups

Steven Tey7f740fc9d843
diff --git a/apps/web/app/app.dub.co/(auth)/login/page.tsx b/apps/web/app/app.dub.co/(auth)/login/page.tsx
index ae6dd119e2..d51597bcc1 100644
--- a/apps/web/app/app.dub.co/(auth)/login/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/login/page.tsx
@@ -25,9 +25,9 @@ export default function LoginPage() {
<Suspense
fallback={
<>
- <Button disabled={true} text="" variant="secondary" />
- <Button disabled={true} text="" variant="secondary" />
- <Button disabled={true} text="" variant="secondary" />
+ <Button disabled={true} variant="secondary" />
+ <Button disabled={true} variant="secondary" />
+ <Button disabled={true} variant="secondary" />
<div className="mx-auto h-5 w-3/4 rounded-lg bg-gray-100" />
</>
}
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index f203e1461d..287c172b0c 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -11,6 +11,7 @@ import { Chart, Delete, ThreeDots } from "@/ui/shared/icons";
import {
Avatar,
BlurImage,
+ Button,
CopyButton,
IconMenu,
NumberTooltip,
@@ -28,6 +29,7 @@ import {
cn,
fetcher,
getApexDomain,
+ isDubDomain,
linkConstructor,
nFormatter,
timeAgo,
@@ -204,7 +206,9 @@ export default function LinkCard({
setShowArchiveLinkModal(true);
break;
case "t":
- setShowTransferLinkModal(true);
+ if (isDubDomain(domain)) {
+ setShowTransferLinkModal(true);
+ }
break;
case "x":
setShowDeleteLinkModal(true);
@@ -422,93 +426,76 @@ export default function LinkCard({
<Popover
content={
<div className="grid w-full gap-px p-2 sm:w-48">
- <button
+ <Button
+ text="Edit"
+ variant="outline"
onClick={() => {
setOpenPopover(false);
setShowAddEditLinkModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu text="Edit" icon={<Edit3 className="h-4 w-4" />} />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- E
- </kbd>
- </button>
- <button
+ icon={<Edit3 className="h-4 w-4" />}
+ shortcut="E"
+ className="h-9 px-2 font-medium"
+ />
+ <Button
+ text="Duplicate"
+ variant="outline"
onClick={() => {
setOpenPopover(false);
setShowDuplicateLinkModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu
- text="Duplicate"
- icon={<CopyPlus className="h-4 w-4" />}
- />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- D
- </kbd>
- </button>
- <button
+ icon={<CopyPlus className="h-4 w-4" />}
+ shortcut="D"
+ className="h-9 px-2 font-medium"
+ />
+ <Button
+ text="QR Code"
+ variant="outline"
onClick={() => {
setOpenPopover(false);
setShowLinkQRModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu
- text="QR Code"
- icon={<QrCode className="h-4 w-4" />}
- />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- Q
- </kbd>
- </button>
- <button
+ icon={<QrCode className="h-4 w-4" />}
+ shortcut="Q"
+ className="h-9 px-2 font-medium"
+ />
+ <Button
+ text={archived ? "Unarchive" : "Archive"}
+ variant="outline"
onClick={() => {
setOpenPopover(false);
setShowArchiveLinkModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu
- text={archived ? "Unarchive" : "Archive"}
- icon={<Archive className="h-4 w-4" />}
- />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- A
- </kbd>
- </button>
- <button
+ icon={<Archive className="h-4 w-4" />}
+ shortcut="A"
+ className="h-9 px-2 font-medium"
+ />
+ <Button
+ text="Transfer"
+ variant="outline"
onClick={() => {
setOpenPopover(false);
setShowTransferLinkModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100"
- >
- <IconMenu
- text="Transfer"
- icon={<FolderInput className="h-4 w-4" />}
- />
- <kbd className="hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 transition-all duration-75 group-hover:bg-gray-200 sm:inline-block">
- T
- </kbd>
- </button>
- <button
+ icon={<FolderInput className="h-4 w-4" />}
+ shortcut="T"
+ className="h-9 px-2 font-medium"
+ {...(!isDubDomain(domain) && {
+ disabledTooltip:
+ "You cannot transfer custom domain links between projects.",
+ })}
+ />
+ <Button
+ text="Delete"
+ variant="danger-outline"
onClick={() => {
setOpenPopover(false);
setShowDeleteLinkModal(true);
}}
- className="group flex w-full items-center justify-between rounded-md p-2 text-left text-sm font-medium text-red-600 transition-all duration-75 hover:bg-red-600 hover:text-white"
- >
- <IconMenu
- text="Delete"
- icon={<Delete className="h-4 w-4" />}
- />
- <kbd className="hidden rounded bg-red-100 px-2 py-0.5 text-xs font-light text-red-600 transition-all duration-75 group-hover:bg-red-500 group-hover:text-white sm:inline-block">
- X
- </kbd>
- </button>
+ icon={<Delete className="h-4 w-4" />}
+ shortcut="X"
+ className="h-9 px-2 font-medium"
+ />
{!slug && ( // this is only shown in admin mode (where there's no slug)
<button
onClick={() => {
diff --git a/apps/web/ui/modals/transfer-link-modal.tsx b/apps/web/ui/modals/transfer-link-modal.tsx
index f9bd234620..e150c01248 100644
--- a/apps/web/ui/modals/transfer-link-modal.tsx
+++ b/apps/web/ui/modals/transfer-link-modal.tsx
@@ -1,7 +1,15 @@
import useProjects from "@/lib/swr/use-projects";
-import { BlurImage, Button, Modal } from "@dub/ui";
-import InputSelect from "@dub/ui/src/input-select";
import {
+ BlurImage,
+ Button,
+ InputSelect,
+ InputSelectItemProps,
+ Modal,
+ useMediaQuery,
+} from "@dub/ui";
+import {
+ APP_NAME,
+ DUB_LOGO,
GOOGLE_FAVICON_URL,
getApexDomain,
isDubDomain,
@@ -32,7 +40,8 @@ function TransferLinkModal({
const { slug } = params;
const { projects } = useProjects();
const [transferring, setTransferring] = useState(false);
- const [newProjectId, setNewProjectId] = useState<string | null>(null);
+ const [selectedProject, setSelectedProject] =
+ useState<InputSelectItemProps | null>(null);
const apexDomain = getApexDomain(props.url);
const { key, domain } = props;
@@ -55,6 +64,8 @@ function TransferLinkModal({
});
};
+ const { isDesktop } = useMediaQuery();
+
return (
<Modal
showModal={showTransferLinkModal}
@@ -63,9 +74,9 @@ function TransferLinkModal({
<form
onSubmit={async (e) => {
e.preventDefault();
- if (newProjectId) {
+ if (selectedProject) {
setTransferring(true);
- toast.promise(transferLink(props.id, newProjectId), {
+ toast.promise(transferLink(props.id, selectedProject.id), {
loading: "Transferring link...",
success: () => {
mutate(
@@ -92,11 +103,12 @@ function TransferLinkModal({
/>
<h3 className="text-lg font-medium">Transfer {shortlink}</h3>
<p className="text-sm text-gray-500">
- Transfer this link to another project.
+ Transfer this link along with its associated analytics to another{" "}
+ {APP_NAME} project.
</p>
</div>
- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">
+ <div className="flex flex-col space-y-28 bg-gray-50 px-4 py-8 text-left sm:space-y-3 sm:rounded-b-2xl sm:px-16">
<InputSelect
items={
projects
@@ -105,14 +117,19 @@ function TransferLinkModal({
.map((project) => ({
id: project.id,
value: project.name,
+ image: project.logo || DUB_LOGO,
}))
: []
}
- handleSelect={(item) => setNewProjectId(item.id)}
- placeholder="Select a project"
+ selectedItem={selectedProject}
+ setSelectedItem={setSelectedProject}
+ inputData={{
+ autoFocus: isDesktop,
+ placeholder: "Select a project",
+ }}
/>
<Button
- disabled={!newProjectId || !isDubDomain(domain)}
+ disabled={!selectedProject || !isDubDomain(domain)}
loading={transferring}
text="Confirm transfer"
/>
diff --git a/packages/ui/package.json b/packages/ui/package.json
index a3149e997e..9ec6863056 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -42,6 +42,7 @@
"@radix-ui/react-navigation-menu": "^1.1.2",
"@radix-ui/react-popover": "1.0.7",
"@radix-ui/react-radio-group": "^1.1.3",
+ "@radix-ui/react-slot": "1.0.1",
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tooltip": "^1.0.7",
"class-variance-authority": "^0.7.0",
diff --git a/packages/ui/src/button.tsx b/packages/ui/src/button.tsx
index fbf7dc8569..aa649a5a4c 100644
--- a/packages/ui/src/button.tsx
+++ b/packages/ui/src/button.tsx
@@ -1,5 +1,3 @@
-"use client";
-
import { cn } from "@dub/utils";
import { ReactNode } from "react";
import { LoadingSpinner } from "./icons";
@@ -7,7 +5,13 @@ import { Tooltip } from "./tooltip";
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
text?: string;
- variant?: "primary" | "secondary" | "outline" | "success" | "danger";
+ variant?:
+ | "primary"
+ | "secondary"
+ | "outline"
+ | "success"
+ | "danger"
+ | "danger-outline";
loading?: boolean;
icon?: ReactNode;
shortcut?: string;
@@ -17,6 +21,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
export function Button({
text,
variant = "primary",
+ className,
loading,
icon,
shortcut,
@@ -26,10 +31,26 @@ export function Button({
if (disabledTooltip) {
return (
<Tooltip content={disabledTooltip}>
- <div className="flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none">
- <p>{text}</p>
+ <div
+ className={cn(
+ "flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",
+ {
+ "border-transparent bg-transparent": variant.endsWith("outline"),
+ },
+ className,
+ )}
+ >
+ {icon}
+ <p className={cn(shortcut && "flex-1 text-left")}>{text}</p>
{shortcut && (
- <kbd className="hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block">
+ <kbd
+ className={cn(
+ "hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",
+ {
+ "bg-gray-100": variant.endsWith("outline"),
+ },
+ )}
+ >
{shortcut}
</kbd>
)}
@@ -50,22 +71,38 @@ export function Button({
variant === "primary",
"border-gray-200 bg-white text-gray-600 hover:bg-gray-100":
variant === "secondary",
- "border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":
+ "border-transparent text-gray-500 duration-75 hover:bg-gray-100":
variant === "outline",
"border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":
variant === "success",
"border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":
variant === "danger",
+ "border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":
+ variant === "danger-outline",
},
- props.className,
+ className,
)}
disabled={props.disabled || loading}
{...props}
>
{loading ? <LoadingSpinner /> : icon ? icon : null}
- {text && <p>{text}</p>}
+ <p className={cn(shortcut && "flex-1 text-left")}>{text}</p>
{shortcut && (
- <kbd className="hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block">
+ <kbd
+ className={cn(
+ "hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",
+ {
+ "bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":
+ variant === "primary",
+ "bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":
+ variant === "secondary",
+ "bg-gray-100 text-gray-500 group-hover:bg-gray-200":
+ variant === "outline",
+ "bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":
+ variant === "danger-outline",
+ },
+ )}
+ >
{shortcut}
</kbd>
)}
diff --git a/packages/ui/src/input-select.tsx b/packages/ui/src/input-select.tsx
index 48a09adcb3..174ee77157 100644
--- a/packages/ui/src/input-select.tsx
+++ b/packages/ui/src/input-select.tsx
@@ -1,18 +1,34 @@
"use client";
import { Command, useCommandState } from "cmdk";
-import { ReactNode, useEffect, useRef, useState } from "react";
+import {
+ Dispatch,
+ InputHTMLAttributes,
+ ReactNode,
+ SetStateAction,
+ useEffect,
+ useRef,
+ useState,
+} from "react";
import { Check, ChevronDown, Search, X } from "lucide-react";
-export default function InputSelect({
+export interface InputSelectItemProps {
+ id: string;
+ value: string;
+ image: string;
+}
+
+export function InputSelect({
items,
- handleSelect,
- placeholder,
+ selectedItem,
+ setSelectedItem,
icon,
+ inputData,
}: {
- items: { id: string; value: string }[];
- handleSelect: (item: { id: string; value: string }) => void;
- placeholder?: string;
+ items: InputSelectItemProps[];
+ selectedItem: InputSelectItemProps | null;
+ setSelectedItem: Dispatch<SetStateAction<InputSelectItemProps | null>>;
icon?: ReactNode;
+ inputData?: InputHTMLAttributes<HTMLInputElement>;
}) {
const commandRef = useRef<HTMLDivElement | null>(null);
const [openCommandList, setOpenCommandList] = useState(false);
@@ -37,9 +53,9 @@ export default function InputSelect({
const isEmpty = useCommandState((state: any) => state.filtered.count === 0);
return (
<Command.Input
- placeholder={placeholder || "Search..."}
+ placeholder={inputData?.placeholder || "Search..."}
// hack to focus on the input when the dropdown opens
- autoFocus={openCommandList}
+ autoFocus={inputData?.autoFocus || openCommandList}
// when focus on the input. only show the dropdown if there are tags and the tagValue is not empty
onFocus={() => setOpenCommandList(true)}
value={inputValue}
@@ -65,13 +81,24 @@ export default function InputSelect({
<Command ref={commandRef} className="relative w-full" loop>
<div className="group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500">
<div className="absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400">
- {icon || <Search className="h-4 w-4 text-gray-400" />}
+ {selectedItem ? (
+ <img
+ src={selectedItem.image}
+ alt={selectedItem.value}
+ className="h-4 w-4 rounded-full"
+ />
+ ) : (
+ icon || <Search className="h-4 w-4 text-gray-400" />
+ )}
</div>
<div className="flex h-9 px-8">
<CommandInput />
{inputValue ? (
<button
- onClick={() => setInputValue("")}
+ onClick={() => {
+ setSelectedItem(null);
+ setInputValue("");
+ }}
className="absolute inset-y-0 right-0 my-auto"
>
<X className="h-7 w-7 pr-3 text-gray-400" />
@@ -91,13 +118,20 @@ export default function InputSelect({
key={item.id}
value={item.value}
onSelect={() => {
- handleSelect(item);
+ setSelectedItem(item);
setInputValue(item.value);
setOpenCommandList(false);
}}
className="group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900"
>
- {item.value}
+ <div className="flex items-center space-x-2">
+ <img
+ src={item.image}
+ alt={item.value}
+ className="h-4 w-4 rounded-full"
+ />
+ <p>{item.value}</p>
+ </div>
<Check className="invisible h-5 w-5 text-gray-500 aria-selected:visible" />
</Command.Item>
))}
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 612818000f..ebda2ed9a2 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -31,10 +31,10 @@
},
"dependencies": {
"@sindresorhus/slugify": "^2.2.1",
- "clsx": "^1.2.1",
+ "clsx": "^2.1.0",
"ms": "^2.1.3",
"nanoid": "^5.0.1",
- "tailwind-merge": "^1.13.2"
+ "tailwind-merge": "^2.2.1"
},
"author": "Steven Tey <[email protected]>",
"homepage": "https://dub.co",
diff --git a/packages/utils/src/constants/index.ts b/packages/utils/src/constants/index.ts
index d4df0b6083..472f8a97db 100644
--- a/packages/utils/src/constants/index.ts
+++ b/packages/utils/src/constants/index.ts
@@ -37,6 +37,8 @@ export const FADE_IN_ANIMATION_SETTINGS = {
export const PAGINATION_LIMIT = 100;
+export const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME || "Dub.co";
+
export const SHORT_DOMAIN =
process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN || "dub.sh";
@@ -53,15 +55,15 @@ export const APP_DOMAIN =
process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
? `https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
: process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"
- ? `https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
- : "http://localhost:8888";
+ ? `https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
+ : "http://localhost:8888";
export const APP_DOMAIN_WITH_NGROK =
process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
? `https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
: process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"
- ? `https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
- : process.env.NGROK_URL || "http://localhost:8888";
+ ? `https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
+ : process.env.NGROK_URL || "http://localhost:8888";
export const API_HOSTNAMES = new Set([
`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,
@@ -73,8 +75,8 @@ export const API_DOMAIN =
process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
? `https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
: process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"
- ? `https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
- : "http://api.localhost:8888";
+ ? `https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`
+ : "http://api.localhost:8888";
export const ADMIN_HOSTNAMES = new Set([
`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2467a8e1c8..73e2ea98c1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -666,6 +666,9 @@ importers:
'@radix-ui/react-radio-group':
specifier: ^1.1.3
+ '@radix-ui/react-slot':
+ specifier: 1.0.1
+ version: 1.0.1([email protected])
'@radix-ui/react-switch':
specifier: ^1.0.1
@@ -749,8 +752,8 @@ importers:
specifier: ^2.2.1
version: 2.2.1
clsx:
- specifier: ^1.2.1
- version: 1.2.1
+ specifier: ^2.1.0
+ version: 2.1.0
ms:
specifier: ^2.1.3
version: 2.1.3
@@ -758,8 +761,8 @@ importers:
specifier: ^5.0.1
version: 5.0.1
tailwind-merge:
- specifier: ^1.13.2
- version: 1.13.2
+ specifier: ^2.2.1
+ version: 2.2.1
devDependencies:
'@types/ms':
specifier: ^0.7.31
@@ -4547,7 +4550,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@types/react': 18.2.48
'@types/react-dom': 18.2.14
@@ -4672,7 +4675,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
@@ -4688,7 +4691,7 @@ packages:
peerDependencies:
react: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
react: 18.2.0
dev: false
@@ -4879,6 +4882,39 @@ packages:
react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
dev: false
+ resolution: {integrity: sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.23.1
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-focus-guards': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-focus-scope': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-portal': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.48
+ aria-hidden: 1.2.3
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
+ dev: false
+
resolution: {integrity: sha512-2HV05lGUgYcA6xgLQ4BKPDmtL+QbIZYH5fCOTAOOcJ5O0QbWS3i9lKaurLzliYUDhORI2Qr3pyjhJh44lKA3rQ==}
peerDependencies:
@@ -4908,7 +4944,7 @@ packages:
react: ^16.8 || ^17.0 || ^18.0
react-dom: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/primitive': 1.0.0
'@radix-ui/react-compose-refs': 1.0.0([email protected])
'@radix-ui/react-primitive': 1.0.0([email protected])([email protected])
@@ -4963,7 +4999,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
@@ -5103,7 +5139,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
@@ -5376,7 +5412,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@floating-ui/react-dom': 2.0.2([email protected])([email protected])
'@radix-ui/react-arrow': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
@@ -5459,7 +5495,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@types/react': 18.2.48
'@types/react-dom': 18.2.14
@@ -5664,7 +5700,7 @@ packages:
'@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-presence': 1.0.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
- '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.0.4(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-use-previous': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-use-size': 1.0.1(@types/[email protected])([email protected])
@@ -5706,7 +5742,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
@@ -5722,6 +5758,34 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-2mUg5Mgcu001VkGy+FfzZyzbmuUWzgWkj3rvv4yu+mLw03+mTzbxZHvfcGyFp2b8EkQeMkpRQ5FiA2Vr2O6TeQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0
+ react-dom: ^16.8 || ^17.0 || ^18.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+ dependencies:
+ '@babel/runtime': 7.23.2
+ '@radix-ui/primitive': 1.0.1
+ '@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-compose-refs': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
+ '@types/react': 18.2.48
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}
peerDependencies:
@@ -5737,7 +5801,7 @@ packages:
peerDependencies:
react: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-compose-refs': 1.0.0([email protected])
react: 18.2.0
dev: false
@@ -5862,7 +5926,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-primitive': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
@@ -5965,7 +6029,7 @@ packages:
peerDependencies:
react: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
react: 18.2.0
dev: false
@@ -5978,7 +6042,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@types/react': 18.0.25
react: 18.2.0
dev: false
@@ -5992,7 +6056,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@types/react': 18.2.48
react: 18.2.0
dev: false
@@ -6052,7 +6116,7 @@ packages:
peerDependencies:
react: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-use-callback-ref': 1.0.0([email protected])
react: 18.2.0
dev: false
@@ -6066,7 +6130,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
'@types/react': 18.0.25
react: 18.2.0
@@ -6081,7 +6145,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/react-use-callback-ref': 1.0.1(@types/[email protected])([email protected])
'@types/react': 18.2.48
react: 18.2.0
@@ -6092,7 +6156,7 @@ packages:
peerDependencies:
react: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
react: 18.2.0
dev: false
@@ -6105,7 +6169,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@types/react': 18.0.25
react: 18.2.0
dev: false
@@ -6119,7 +6183,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@types/react': 18.2.48
react: 18.2.0
dev: false
@@ -6166,7 +6230,7 @@ packages:
'@types/react':
optional: true
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
'@radix-ui/rect': 1.0.1
'@types/react': 18.2.48
react: 18.2.0
@@ -6251,7 +6315,7 @@ packages:
/@radix-ui/[email protected]:
resolution: {integrity: sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ==}
dependencies:
- '@babel/runtime': 7.23.2
+ '@babel/runtime': 7.23.9
dev: false
/@react-email/[email protected]:
@@ -16726,16 +16790,18 @@ packages:
use-sync-external-store: 1.2.0([email protected])
dev: false
- resolution: {integrity: sha512-R2/nULkdg1VR/EL4RXg4dEohdoxNUJGLMnWIQnPKL+O9Twu7Cn3Rxi4dlXkDzZrEGtR+G+psSXFouWlpTyLhCQ==}
- dev: false
-
resolution: {integrity: sha512-SqqhhaL0T06SW59+JVNfAqKdqLs0497esifRrZ7jOaefP3o64fdFNDMrAQWZFMxTLJPiHVjRLUywT8uFz1xNWQ==}
dependencies:
'@babel/runtime': 7.23.9
dev: false
+ resolution: {integrity: sha512-o+2GTLkthfa5YUt4JxPfzMIpQzZ3adD1vLVkvKE1Twl9UAhGsEbIZhHHZVRttyW177S8PDJI3bTQNaebyofK3Q==}
+ dependencies:
+ '@babel/runtime': 7.23.9
+ dev: false
+
resolution: {integrity: sha512-X324n9OtpTmOMqEgDUEA/RgLrNfBF/jwJdctaPZDzB3mppxJk7TLIDmOreEDm1Bq4R9LSPu4Epf8VSdovNU+iA==}
dev: false
@@ -17798,7 +17864,7 @@ packages:
react: ^16.8 || ^17.0 || ^18.0
react-dom: ^16.8 || ^17.0 || ^18.0
dependencies:
- '@radix-ui/react-dialog': 1.0.5(@types/[email protected])(@types/[email protected])([email protected])([email protected])
+ '@radix-ui/react-dialog': 1.0.5(@types/[email protected])([email protected])([email protected])
react: 18.2.0
react-dom: 18.2.0([email protected])
transitivePeerDependencies: