(react) add Modal

Here it is! Our really wanted Modal component, based on Figma sketches.
This commit is contained in:
Nathan Vasse
2024-01-18 14:38:48 +01:00
committed by NathanVss
parent 81e4da1d36
commit 1445f4a222
32 changed files with 1723 additions and 111 deletions

View File

@@ -6,13 +6,12 @@ import React, {
useRef,
} from "react";
import classNames from "classnames";
import { ToastType } from ":/components/Toast/ToastProvider";
import { iconFromType } from ":/components/Alert/Utils";
import { Button, ButtonProps } from ":/components/Button";
import { iconFromType, VariantType } from ":/utils/VariantUtils";
export interface ToastProps extends PropsWithChildren {
duration: number;
type: ToastType;
type: VariantType;
onDelete?: () => void;
icon?: ReactNode;
primaryLabel?: string;