linkedunion-design-kit 1.11.3-beta.1 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/src/components/Alerts/Alert/alert.d.ts +1 -2
- package/dist/src/components/Alerts/Alert/alert.js +1 -1
- package/dist/src/components/Card/contactProfile/ContactProfile.js +1 -1
- package/dist/src/components/Modal/Modal.d.ts +10 -20
- package/dist/src/components/Modal/Modal.js +28 -32
- package/dist/src/components/Modal/Modal.stories.d.ts +4 -79
- package/dist/src/components/Modal/Modal.stories.js +6 -77
- package/dist/src/utils/iconList.d.ts +0 -1
- package/dist/src/utils/iconList.js +0 -1
- package/dist/styles/global.css +38 -47
- package/dist/tailwind.config.js +0 -1
- package/package.json +1 -1
- package/dist/src/components/Modal/index.d.ts +0 -45
- package/dist/src/components/Modal/index.js +0 -47
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export { AppIcon } from "./src/components/AppIcons";
|
|
|
23
23
|
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
|
|
24
24
|
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "./src/components/Dropdown/select";
|
|
25
25
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./src/components/Alerts/AlertDialog";
|
|
26
|
-
export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
|
|
27
26
|
export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
|
|
28
27
|
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
|
|
29
28
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
@@ -32,7 +31,8 @@ export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox
|
|
|
32
31
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
|
|
33
32
|
export { Skeleton } from "./src/components/Skeleton/skeleton";
|
|
34
33
|
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
|
|
35
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle,
|
|
34
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
|
|
36
35
|
export { DatePicker } from "./src/components/DatePicker/DatePicker";
|
|
37
36
|
export { DateRangePicker } from "./src/components/DateRangePicker/DateRangePicker";
|
|
38
37
|
export { TimePicker } from "./src/components/TimePicker/TimePicker";
|
|
38
|
+
export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,6 @@ export { AppIcon } from "./src/components/AppIcons";
|
|
|
23
23
|
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
|
|
24
24
|
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "./src/components/Dropdown/select";
|
|
25
25
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./src/components/Alerts/AlertDialog";
|
|
26
|
-
export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
|
|
27
26
|
export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
|
|
28
27
|
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
|
|
29
28
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
@@ -32,7 +31,8 @@ export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox
|
|
|
32
31
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
|
|
33
32
|
export { Skeleton } from "./src/components/Skeleton/skeleton";
|
|
34
33
|
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
|
|
35
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle,
|
|
34
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
|
|
36
35
|
export { DatePicker } from "./src/components/DatePicker/DatePicker";
|
|
37
36
|
export { DateRangePicker } from "./src/components/DateRangePicker/DateRangePicker";
|
|
38
37
|
export { TimePicker } from "./src/components/TimePicker/TimePicker";
|
|
38
|
+
export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import { Button } from "../../Button/Button/Button";
|
|
4
|
-
declare const alertVariants: (props?: ({
|
|
4
|
+
export declare const alertVariants: (props?: ({
|
|
5
5
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
6
|
shadow?: "lg" | "none" | null | undefined;
|
|
7
7
|
color?: "blue" | "green" | "yellow" | "red" | "indigo" | "gray" | null | undefined;
|
|
@@ -16,4 +16,3 @@ export declare function AlertDescription({ className, ...props }: React.HTMLAttr
|
|
|
16
16
|
export declare function AlertFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare const AlertAction: ({ className, color: colorProp, ...props }: React.ComponentProps<typeof Button>) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare const AlertCancel: ({ className, color: colorProp, ...props }: React.ComponentProps<typeof Button>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -27,7 +27,7 @@ import { cva } from "class-variance-authority";
|
|
|
27
27
|
import { cn } from "../../../lib/utils";
|
|
28
28
|
import LUIcon from "../../Icons/LUIcon";
|
|
29
29
|
import { Button } from "../../Button/Button/Button";
|
|
30
|
-
var alertVariants = cva("grid w-full gap-4 rounded-lg border-l-4 p-4", {
|
|
30
|
+
export var alertVariants = cva("grid w-full gap-4 rounded-lg border-l-4 p-4", {
|
|
31
31
|
variants: {
|
|
32
32
|
size: {
|
|
33
33
|
lg: "[&_[data-slot='alert-dialog-header']_svg:not(.lu-icon-custom-size)]:size-9 gap-4 [&_h2[data-slot='alert-dialog-title']]:text-2xl [&_h2[data-slot='alert-dialog-title']]:font-medium [&_p[data-slot='alert-dialog-description']]:text-lg [&_p[data-slot='alert-dialog-description']]:font-normal",
|
|
@@ -32,7 +32,7 @@ export var ContactProfile = function (_a) {
|
|
|
32
32
|
};
|
|
33
33
|
// Horizontal layout
|
|
34
34
|
if (orientation === "horizontal") {
|
|
35
|
-
return (_jsxs("div", { className: "!p-5 bg-white rounded-xl flex ".concat(safeMediaPosition === "left" ? "sm:flex-row" : "sm:flex-row-reverse", " max-w-5xl !gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "".concat(safeMediaPosition === "right" ? "order-3" : "order-1", " w-full max-w-40 aspect-square object-cover") }), _jsxs("div", { className: "flex-1 flex flex-col !gap-1 md:!gap-2.5 sm:!text-left h-full justify-center min-w-0 ".concat(safeMediaPosition === "right" ? "order-1" : "order-2"), children: [_jsx(CardContent, {}), _jsx(CardButton, {})] })] }));
|
|
35
|
+
return (_jsxs("div", { className: "!p-5 bg-white rounded-xl flex ".concat(safeMediaPosition === "left" ? "sm:flex-row" : "sm:flex-row-reverse", " max-w-5xl !gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "".concat(safeMediaPosition === "right" ? "order-3" : "order-1", " w-full max-w-40 aspect-square object-cover") }), _jsxs("div", { className: "flex-1 flex flex-col !gap-1 md:!gap-2.5 text-center sm:!text-left h-full justify-center min-w-0 ".concat(safeMediaPosition === "right" ? "order-1" : "order-2"), children: [_jsx(CardContent, {}), _jsx(CardButton, {})] })] }));
|
|
36
36
|
}
|
|
37
37
|
// Vertical layout
|
|
38
38
|
return (_jsxs("div", { className: "p-8 bg-white rounded-xl flex flex-col gap-6 max-w-md items-center shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsxs("div", { className: "flex w-full ".concat(safeMediaPosition === "top" ? "flex-col" : "flex-col-reverse", " items-center !gap-5 text-center"), children: [_jsx(CardMedia, { className: "w-full h-full aspect-5/4 object-cover" }), _jsx(CardContent, { className: "h-20" })] }), _jsx(CardButton, {})] }));
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
-
|
|
3
|
+
export declare const sizes: {
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
full: string;
|
|
9
|
+
};
|
|
4
10
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
5
11
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
12
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
@@ -9,33 +15,17 @@ declare const DialogAction: React.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
9
15
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
16
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
17
|
size?: keyof typeof sizes;
|
|
12
|
-
shadow?: boolean;
|
|
13
|
-
showCloseIcon?: boolean;
|
|
14
18
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
16
|
-
variant?: keyof typeof headerVariants;
|
|
17
|
-
size?: keyof typeof sizes;
|
|
18
|
-
};
|
|
19
19
|
declare const DialogHeader: {
|
|
20
|
-
({ className, variant, size, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
declare const DialogBody: {
|
|
24
20
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
21
|
displayName: string;
|
|
26
22
|
};
|
|
27
|
-
type DialogFooterProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
28
|
-
size?: keyof typeof sizes;
|
|
29
|
-
variant?: keyof typeof footerVariants;
|
|
30
|
-
};
|
|
31
23
|
declare const DialogFooter: {
|
|
32
|
-
({ className,
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
33
25
|
displayName: string;
|
|
34
26
|
};
|
|
35
27
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
36
28
|
size?: keyof typeof sizes;
|
|
37
29
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
38
|
-
declare const
|
|
39
|
-
|
|
40
|
-
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
41
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogSubTitle, };
|
|
30
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
31
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -25,8 +25,14 @@ import * as React from "react";
|
|
|
25
25
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
26
26
|
import { cn } from "../../lib/utils";
|
|
27
27
|
import LUIcon from "../Icons/LUIcon";
|
|
28
|
-
import {
|
|
29
|
-
var
|
|
28
|
+
import { variant } from "../Typography/Heading/heading";
|
|
29
|
+
export var sizes = {
|
|
30
|
+
sm: "max-w-xs",
|
|
31
|
+
md: "max-w-lg",
|
|
32
|
+
lg: "max-w-4xl",
|
|
33
|
+
xl: "max-w-6xl",
|
|
34
|
+
full: "w-full",
|
|
35
|
+
};
|
|
30
36
|
var Dialog = DialogPrimitive.Root;
|
|
31
37
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
32
38
|
var DialogPortal = DialogPrimitive.Portal;
|
|
@@ -38,45 +44,35 @@ var DialogOverlay = React.forwardRef(function (_a, ref) {
|
|
|
38
44
|
});
|
|
39
45
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
40
46
|
var DialogContent = React.forwardRef(function (_a, ref) {
|
|
41
|
-
var className = _a.className, children = _a.children, _b = _a.size, size = _b === void 0 ? "md" : _b,
|
|
42
|
-
return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}),
|
|
47
|
+
var className = _a.className, children = _a.children, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "children", "size"]);
|
|
48
|
+
return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, __assign({ ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid translate-x-[-50%] translate-y-[-50%] gap-0 border bg-background !py-4 px-6 rounded-lg shadow-lg", "transition-all duration-300 ease-in-out", "data-[state=open]:opacity-100 data-[state=open]:scale-100", "data-[state=closed]:opacity-0 data-[state=closed]:scale-95", sizes[size], className) }, props, { children: [children, _jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-offset-2 hover:cursor-pointer disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [_jsx(LUIcon, { icon: "xMark", size: "md" }), _jsx("span", { className: "sr-only", children: "Close" })] })] }))] }));
|
|
43
49
|
});
|
|
44
50
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
45
51
|
var DialogHeader = function (_a) {
|
|
46
|
-
var _b;
|
|
47
|
-
var className = _a.className, _c = _a.variant, variant = _c === void 0 ? "none" : _c, size = _a.size, props = __rest(_a, ["className", "variant", "size"]);
|
|
48
|
-
var contextSize = React.useContext(ModalSizeContext);
|
|
49
|
-
var effectiveSize = (_b = size !== null && size !== void 0 ? size : contextSize) !== null && _b !== void 0 ? _b : "md";
|
|
50
|
-
return (_jsx("div", __assign({ className: cn("flex flex-col text-center sm:text-left bg-white sticky top-0 z-10", headerVariants[variant], className), "data-size": effectiveSize }, props)));
|
|
51
|
-
};
|
|
52
|
-
DialogHeader.displayName = "DialogHeader";
|
|
53
|
-
var DialogBody = function (_a) {
|
|
54
52
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
55
|
-
return (_jsx("div", __assign({ className: cn("
|
|
53
|
+
return (_jsx("div", __assign({ className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className) }, props)));
|
|
56
54
|
};
|
|
57
|
-
|
|
55
|
+
DialogHeader.displayName = "DialogHeader";
|
|
58
56
|
var DialogFooter = function (_a) {
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
var contextSize = React.useContext(ModalSizeContext);
|
|
62
|
-
var effectiveSize = (_b = size !== null && size !== void 0 ? size : contextSize) !== null && _b !== void 0 ? _b : "md";
|
|
63
|
-
return (_jsx("div", __assign({ className: cn("flex", footerSizeClasses[effectiveSize], footerVariants[variant], className), "data-size": effectiveSize }, props)));
|
|
57
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
58
|
+
return (_jsx("div", __assign({ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className) }, props)));
|
|
64
59
|
};
|
|
65
60
|
DialogFooter.displayName = "DialogFooter";
|
|
61
|
+
var titleSizeClasses = {
|
|
62
|
+
sm: variant["h5-600"],
|
|
63
|
+
md: variant["h5-600"],
|
|
64
|
+
lg: variant["h4-500"],
|
|
65
|
+
xl: variant["h4-500"],
|
|
66
|
+
full: variant["h4-500"],
|
|
67
|
+
};
|
|
66
68
|
var DialogTitle = React.forwardRef(function (_a, ref) {
|
|
67
|
-
var _b;
|
|
68
|
-
|
|
69
|
-
var contextSize = React.useContext(ModalSizeContext);
|
|
70
|
-
var effectiveSize = (_b = size !== null && size !== void 0 ? size : contextSize) !== null && _b !== void 0 ? _b : "md";
|
|
71
|
-
return (_jsx(DialogPrimitive.Title, __assign({ ref: ref, className: cn("leading-normal text-gray-950", titleSizeClasses[effectiveSize], className), "data-size": effectiveSize }, props, { children: children })));
|
|
69
|
+
var className = _a.className, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "size"]);
|
|
70
|
+
return (_jsx(DialogPrimitive.Title, __assign({ ref: ref, className: cn(titleSizeClasses[size], "leading-normal tracking-tight text-gray-950", className) }, props)));
|
|
72
71
|
});
|
|
73
72
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
var contextSize = React.useContext(ModalSizeContext);
|
|
78
|
-
var effectiveSize = (_b = size !== null && size !== void 0 ? size : contextSize) !== null && _b !== void 0 ? _b : "md";
|
|
79
|
-
return (_jsx(DialogPrimitive.Description, __assign({ ref: ref, className: cn(subTitleSizeClasses[effectiveSize], "text-gray-950", className), "data-size": effectiveSize }, props)));
|
|
73
|
+
var DialogDescription = React.forwardRef(function (_a, ref) {
|
|
74
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
75
|
+
return (_jsx(DialogPrimitive.Description, __assign({ ref: ref, className: cn("text-sm text-muted-foreground", className) }, props)));
|
|
80
76
|
});
|
|
81
|
-
|
|
82
|
-
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader,
|
|
77
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
78
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { sizes } from "./Modal";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: React.FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
@@ -19,89 +20,13 @@ declare const _default: {
|
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
|
-
headerVariants: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
options: string[];
|
|
27
|
-
description: string;
|
|
28
|
-
table: {
|
|
29
|
-
type: {
|
|
30
|
-
summary: string;
|
|
31
|
-
};
|
|
32
|
-
defaultValue: {
|
|
33
|
-
summary: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
footerVariants: {
|
|
38
|
-
control: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
options: string[];
|
|
42
|
-
description: string;
|
|
43
|
-
table: {
|
|
44
|
-
type: {
|
|
45
|
-
summary: string;
|
|
46
|
-
};
|
|
47
|
-
defaultValue: {
|
|
48
|
-
summary: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
shadow: {
|
|
53
|
-
control: {
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
description: string;
|
|
57
|
-
table: {
|
|
58
|
-
type: {
|
|
59
|
-
summary: string;
|
|
60
|
-
};
|
|
61
|
-
defaultValue: {
|
|
62
|
-
summary: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
showCloseIcon: {
|
|
67
|
-
control: {
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
description: string;
|
|
71
|
-
table: {
|
|
72
|
-
type: {
|
|
73
|
-
summary: string;
|
|
74
|
-
};
|
|
75
|
-
defaultValue: {
|
|
76
|
-
summary: boolean;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
23
|
};
|
|
81
24
|
};
|
|
82
25
|
export default _default;
|
|
83
|
-
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer,
|
|
26
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
27
|
+
size?: keyof typeof sizes;
|
|
28
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
84
29
|
export declare const SimpleModal: () => import("react/jsx-runtime").JSX.Element;
|
|
85
30
|
export declare const ModalSizes: () => import("react/jsx-runtime").JSX.Element;
|
|
86
|
-
export declare const HeaderVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
87
|
-
export declare const FooterVariants: () => import("react/jsx-runtime").JSX.Element;
|
|
88
|
-
export declare const FooterButtonsLeftPosition: {
|
|
89
|
-
(): import("react/jsx-runtime").JSX.Element;
|
|
90
|
-
parameters: {
|
|
91
|
-
docs: {
|
|
92
|
-
description: {
|
|
93
|
-
story: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
export declare const FooterButtonsRightPosition: () => import("react/jsx-runtime").JSX.Element;
|
|
99
|
-
export declare const FooterButtonsMiddlePosition: () => import("react/jsx-runtime").JSX.Element;
|
|
100
|
-
export declare const ShadowVariations: () => import("react/jsx-runtime").JSX.Element;
|
|
101
31
|
export declare const InformationModalWithoutFooter: () => import("react/jsx-runtime").JSX.Element;
|
|
102
32
|
export declare const ModalWithActionButtons: () => import("react/jsx-runtime").JSX.Element;
|
|
103
|
-
export declare const OutlineModal: () => import("react/jsx-runtime").JSX.Element;
|
|
104
|
-
export declare const FullWidthButtonsModal: () => import("react/jsx-runtime").JSX.Element;
|
|
105
|
-
export declare const BlockButtonModal: () => import("react/jsx-runtime").JSX.Element;
|
|
106
|
-
export declare const NoCloseIconModal: () => import("react/jsx-runtime").JSX.Element;
|
|
107
|
-
export declare const ModalWithoutHeader: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,26 +9,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle,
|
|
13
|
+
import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, DialogAction, sizes, } from "./Modal";
|
|
25
14
|
import { Button } from "../Button/Button/Button";
|
|
26
15
|
import { Body } from "../Typography/Body/body";
|
|
27
16
|
import { Heading } from "../Typography/Heading/heading";
|
|
28
17
|
import LUIcon from "../Icons/LUIcon";
|
|
29
18
|
import { Avatar, AvatarFallback, AvatarImage } from "../Avatar/Avatar/Avatar";
|
|
30
19
|
import { Dummy_Para } from "../../utils/constants";
|
|
31
|
-
import { footerVariants, headerVariants, sizes } from ".";
|
|
32
20
|
export default {
|
|
33
21
|
title: "Components/Modal",
|
|
34
22
|
component: Dialog,
|
|
@@ -43,73 +31,14 @@ export default {
|
|
|
43
31
|
defaultValue: { summary: "md" },
|
|
44
32
|
},
|
|
45
33
|
},
|
|
46
|
-
headerVariants: {
|
|
47
|
-
control: { type: "select" },
|
|
48
|
-
options: Object.keys(headerVariants),
|
|
49
|
-
description: "Defines the variant style of the modal header.",
|
|
50
|
-
table: {
|
|
51
|
-
type: { summary: "string" },
|
|
52
|
-
defaultValue: { summary: "none" },
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
footerVariants: {
|
|
56
|
-
control: { type: "select" },
|
|
57
|
-
options: Object.keys(footerVariants),
|
|
58
|
-
description: "Defines the variant style of the modal footer.",
|
|
59
|
-
table: {
|
|
60
|
-
type: { summary: "string" },
|
|
61
|
-
defaultValue: { summary: "none" },
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
shadow: {
|
|
65
|
-
control: { type: "boolean" },
|
|
66
|
-
description: "Enable or disable modal shadow.",
|
|
67
|
-
table: {
|
|
68
|
-
type: { summary: "boolean" },
|
|
69
|
-
defaultValue: { summary: true },
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
showCloseIcon: {
|
|
73
|
-
control: { type: "boolean" },
|
|
74
|
-
description: "Show or hide the close icon in the modal.",
|
|
75
|
-
table: {
|
|
76
|
-
type: { summary: "boolean" },
|
|
77
|
-
defaultValue: { summary: true },
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
34
|
},
|
|
81
35
|
};
|
|
82
|
-
var Template = function (args) {
|
|
83
|
-
var headerVariantProp = args.headerVariants, footerVariantProp = args.footerVariants, shadow = args.shadow, contentProps = __rest(args, ["headerVariants", "footerVariants", "shadow"]);
|
|
84
|
-
return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, __assign({}, contentProps, { shadow: shadow, children: [_jsxs(DialogHeader, { variant: headerVariantProp, children: [_jsx(DialogTitle, { children: "Modal Title" }), _jsx(DialogSubTitle, { children: "Subtitle" })] }), _jsx(DialogBody, { children: "You can put any content here." }), _jsx(DialogFooter, { variant: footerVariantProp, children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] }))] }));
|
|
85
|
-
};
|
|
36
|
+
var Template = function (args) { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, __assign({}, args, { children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Modal Title" }), _jsx(DialogDescription, { children: "This is a modal rendered using the Template story." })] }), _jsx("div", { children: "You can put any content here." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] }))] })); };
|
|
86
37
|
export var Default = Template.bind({});
|
|
87
38
|
Default.args = {
|
|
88
39
|
size: "md",
|
|
89
|
-
headerVariants: "none",
|
|
90
|
-
footerVariants: "none",
|
|
91
|
-
shadow: true,
|
|
92
|
-
showCloseIcon: true,
|
|
93
|
-
};
|
|
94
|
-
export var SimpleModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, { size: "sm", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Simple Modal" }), _jsx(DialogSubTitle, { children: "Subtitle" })] }), _jsx(DialogBody, { children: "You can put any content here." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] })); };
|
|
95
|
-
export var ModalSizes = function () { return (_jsx("div", { className: "flex flex-row gap-4", children: Object.keys(sizes).map(function (size) { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsxs(Button, { children: ["Open ", size, " Modal"] }) }), _jsxs(DialogContent, { size: size, children: [_jsxs(DialogHeader, { children: [_jsxs(DialogTitle, { children: [size, " Modal"] }), _jsxs(DialogSubTitle, { children: ["This is a ", size, " modal example using the Modal component."] })] }), _jsx(DialogBody, { children: "You can put any content here." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] }, size)); }) })); };
|
|
96
|
-
export var HeaderVariants = function () { return (_jsx("div", { className: "flex flex-row gap-4", children: Object.keys(headerVariants).map(function (variant) { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsxs(Button, { children: ["Open ", variant, " Header"] }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { variant: variant, children: [_jsxs(DialogTitle, { children: [variant, " Header"] }), _jsxs(DialogSubTitle, { children: ["This modal uses the \"", variant, "\" header variant."] })] }), _jsx(DialogBody, { children: _jsxs(Body, { variant: "body-md", children: ["This demonstrates the ", variant, " header style."] }) }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] }, variant)); }) })); };
|
|
97
|
-
export var FooterVariants = function () { return (_jsx("div", { className: "flex flex-row gap-4", children: Object.keys(footerVariants).map(function (variant) { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsxs(Button, { children: ["Open ", variant, " Footer"] }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { children: [_jsxs(DialogTitle, { children: [variant, " Footer"] }), _jsxs(DialogSubTitle, { children: ["This modal uses the \"", variant, "\" footer variant."] })] }), _jsx(DialogBody, { children: _jsxs(Body, { variant: "body-md", children: ["This demonstrates the ", variant, " footer style."] }) }), _jsx(DialogFooter, { variant: variant, children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] }, variant)); }) })); };
|
|
98
|
-
export var FooterButtonsLeftPosition = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Confirm Action" }), _jsx(DialogSubTitle, { children: "SubTitle" })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsxs(DialogFooter, { className: "gap-2", children: [_jsx(Button, { onClick: function () { return alert("Action confirmed!"); }, children: "Confirm" }), _jsx(Button, { variant: "outline", onClick: function () { return alert("Action cancelled!"); }, children: "Cancel" }), _jsx(Button, { className: "ms-auto", children: "Help" })] })] })] })); };
|
|
99
|
-
FooterButtonsLeftPosition.parameters = {
|
|
100
|
-
docs: {
|
|
101
|
-
description: {
|
|
102
|
-
story: "On lg, footer buttons will be lg; on md, footer buttons will be md; and so on. The button size matches the modal size.",
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
40
|
};
|
|
106
|
-
export var
|
|
107
|
-
export var
|
|
108
|
-
export var
|
|
109
|
-
export var
|
|
110
|
-
export var ModalWithActionButtons = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Confirm Action" }), _jsx(DialogSubTitle, { children: "Are you sure you want to proceed with this action? This cannot be undone." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsxs(DialogFooter, { children: [_jsx(DialogAction, { asChild: true, children: _jsx(Button, { variant: "fill", className: "mr-2", onClick: function () { return alert("Action confirmed!"); }, children: "Confirm" }) }), _jsx(DialogClose, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Cancel" }) })] })] })] })); };
|
|
111
|
-
export var OutlineModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Outline Modal" }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { variant: "outline", children: [_jsx(DialogTitle, { children: "Outline Modal" }), _jsx(DialogSubTitle, { children: "This modal uses the \"outline\" header variant." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsx(DialogFooter, { variant: "outline", children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] })); };
|
|
112
|
-
export var FullWidthButtonsModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Full Width Modal" }) }), _jsxs(DialogContent, { size: "lg", children: [_jsxs(DialogHeader, { variant: "outline", children: [_jsx(DialogTitle, { children: "Outline Modal" }), _jsx(DialogSubTitle, { children: "This modal uses the \"outline\" shadow variant." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsxs(DialogFooter, { variant: "outline", children: [_jsx(DialogAction, { asChild: true, children: _jsx(Button, { variant: "fill", size: "lg", className: "w-1/2 mr-2", onClick: function () { return alert("Action confirmed!"); }, children: "Confirm" }) }), _jsx(DialogClose, { asChild: true, children: _jsx(Button, { variant: "outline", size: "lg", className: "w-1/2", onClick: function () { return alert("Action cancelled!"); }, children: "Close" }) })] })] })] })); };
|
|
113
|
-
export var BlockButtonModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Block Modal" }) }), _jsxs(DialogContent, { size: "lg", children: [_jsxs(DialogHeader, { variant: "outline", children: [_jsx(DialogTitle, { children: "Outline Modal" }), _jsx(DialogSubTitle, { children: "This modal uses the \"outline\" shadow variant." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsx(DialogFooter, { variant: "outline", children: _jsx(DialogAction, { asChild: true, children: _jsx(Button, { variant: "fill", size: "lg", className: "w-full", onClick: function () { return alert("Action confirmed!"); }, children: "Confirm" }) }) })] })] })); };
|
|
114
|
-
export var NoCloseIconModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal Without Close Icon" }) }), _jsxs(DialogContent, { size: "md", showCloseIcon: false, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "No Close Icon" }), _jsx(DialogSubTitle, { children: "This modal does not show the close icon." })] }), _jsx(DialogBody, { children: "You can put any content here. Use the footer button to close." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] })); };
|
|
115
|
-
export var ModalWithoutHeader = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Info Modal" }) }), _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { className: "min-h-[3rem]", variant: "outline" }), _jsxs(DialogBody, { className: "flex flex-col items-center justify-center gap-7", children: [_jsxs(Avatar, { size: "huge", children: [_jsx(AvatarImage, { alt: "Avatar", src: "/images/avatar.png" }), _jsx(AvatarFallback, { children: "AB" })] }), _jsxs("div", { className: "flex flex-col items-center", children: [_jsx(Body, { variant: "body-md", children: "Designation" }), _jsx(Heading, { variant: "heading-md", children: "Heading" })] }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "envelope", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: "testing@gmail.com" })] }), _jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "phone", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: "03764734829" })] })] }), _jsx(Body, { variant: "body-md", children: Dummy_Para })] })] })] })); };
|
|
41
|
+
export var SimpleModal = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, { size: "sm", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Simple Modal" }), _jsx(DialogDescription, { children: "This is a simple modal example using the Modal component." })] }), _jsx("div", { className: "py-4", children: "You can put any content here." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] })); };
|
|
42
|
+
export var ModalSizes = function () { return (_jsx("div", { className: "flex flex-row gap-4", children: Object.keys(sizes).map(function (size) { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsxs(Button, { children: ["Open ", size, " Modal"] }) }), _jsxs(DialogContent, { size: size, children: [_jsxs(DialogHeader, { children: [_jsxs(DialogTitle, { children: [size, " Modal"] }), _jsxs(DialogDescription, { children: ["This is a ", size, " modal example using the Modal component."] })] }), _jsx("div", { className: "py-4", children: "You can put any content here." }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] }, size)); }) })); };
|
|
43
|
+
export var InformationModalWithoutFooter = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Info Modal" }) }), _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { size: "lg", className: "text-center", children: "Contact Profile" }) }), _jsxs("div", { className: "flex flex-col items-center justify-center gap-7", children: [_jsxs(Avatar, { size: "huge", children: [_jsx(AvatarImage, { alt: "Avatar", src: "/images/avatar.png" }), _jsx(AvatarFallback, { children: "AB" })] }), _jsxs("div", { className: "flex flex-col items-center", children: [_jsx(Body, { variant: "body-md", children: "Designation" }), _jsx(Heading, { variant: "heading-md", children: "Heading" })] }), _jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "envelope", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: "testing@gmail.com" })] }), _jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "phone", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: "03764734829" })] })] }), _jsx(Body, { variant: "body-md", children: Dummy_Para })] })] })] })); };
|
|
44
|
+
export var ModalWithActionButtons = function () { return (_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Modal" }) }), _jsxs(DialogContent, { size: "md", children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Confirm Action" }), _jsx(DialogDescription, { children: "Are you sure you want to proceed with this action? This cannot be undone." })] }), _jsx("div", { className: "py-4", children: _jsx(Body, { variant: "body-md", children: Dummy_Para }) }), _jsxs(DialogFooter, { children: [_jsx(DialogClose, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Cancel" }) }), _jsx(DialogAction, { asChild: true, children: _jsx(Button, { variant: "fill", onClick: function () { return alert("Action confirmed!"); }, children: "Confirm" }) })] })] })] })); };
|
|
@@ -170,5 +170,4 @@ export var iconList = {
|
|
|
170
170
|
"ellipsis-vertical": "M16.0005 8C13.7933 8 12.0005 6.20714 12.0005 4C12.0005 1.79286 13.7933 0 16.0005 0C18.2076 0 20.0005 1.79286 20.0005 4C20.0005 6.20714 18.2076 8 16.0005 8ZM16.0005 24C18.2076 24 20.0005 25.7929 20.0005 28C20.0005 30.2071 18.2076 32 16.0005 32C13.7933 32 12.0005 30.2071 12.0005 28C12.0005 25.7929 13.7933 24 16.0005 24ZM20.0005 16C20.0005 18.2071 18.2076 20 16.0005 20C13.7933 20 12.0005 18.2071 12.0005 16C12.0005 13.7929 13.7933 12 16.0005 12C18.2076 12 20.0005 13.7929 20.0005 16Z",
|
|
171
171
|
exclamation: "M18 2C18 0.89375 17.1063 0 16 0C14.8937 0 14 0.89375 14 2V22C14 23.1063 14.8937 24 16 24C17.1063 24 18 23.1063 18 22V2ZM16 32C17.3812 32 18.5 30.8813 18.5 29.5C18.5 28.1187 17.3812 27 16 27C14.6187 27 13.5 28.1187 13.5 29.5C13.5 30.8813 14.6187 32 16 32Z",
|
|
172
172
|
"fax-no": "M10 5V10H14V5H23.1688L26 7.83125V10H30V7.83125C30 6.76875 29.5812 5.75 28.8312 5L26 2.16875C25.25 1.41875 24.2313 1 23.1688 1H14C11.7938 1 10 2.79375 10 5ZM2 9C0.89375 9 0 9.89375 0 11V29C0 30.1063 0.89375 31 2 31H5C6.10625 31 7 30.1063 7 29V11C7 9.89375 6.10625 9 5 9H2ZM30 13H10V29C10 30.1063 10.8937 31 12 31H30C31.1063 31 32 30.1063 32 29V15C32 13.8937 31.1063 13 30 13ZM14 19C14 18.1687 14.6687 17.5 15.5 17.5C16.3313 17.5 17 18.1687 17 19C17 19.8313 16.3313 20.5 15.5 20.5C14.6687 20.5 14 19.8313 14 19ZM14 25C14 24.1687 14.6687 23.5 15.5 23.5C16.3313 23.5 17 24.1687 17 25C17 25.8313 16.3313 26.5 15.5 26.5C14.6687 26.5 14 25.8313 14 25ZM21 17.5C21.8313 17.5 22.5 18.1687 22.5 19C22.5 19.8313 21.8313 20.5 21 20.5C20.1687 20.5 19.5 19.8313 19.5 19C19.5 18.1687 20.1687 17.5 21 17.5ZM19.5 25C19.5 24.1687 20.1687 23.5 21 23.5C21.8313 23.5 22.5 24.1687 22.5 25C22.5 25.8313 21.8313 26.5 21 26.5C20.1687 26.5 19.5 25.8313 19.5 25ZM26.5 17.5C27.3313 17.5 28 18.1687 28 19C28 19.8313 27.3313 20.5 26.5 20.5C25.6687 20.5 25 19.8313 25 19C25 18.1687 25.6687 17.5 26.5 17.5ZM25 25C25 24.1687 25.6687 23.5 26.5 23.5C27.3313 23.5 28 24.1687 28 25C28 25.8313 27.3313 26.5 26.5 26.5C25.6687 26.5 25 25.8313 25 25Z",
|
|
173
|
-
briefcase: "M12.5 4H19.5C19.775 4 20 4.225 20 4.5V7H12V4.5C12 4.225 12.225 4 12.5 4ZM9 4.5V7H4C1.79375 7 0 8.79375 0 11V17H32V11C32 8.79375 30.2062 7 28 7H23V4.5C23 2.56875 21.4312 1 19.5 1H12.5C10.5688 1 9 2.56875 9 4.5ZM32 20H20V21C20 22.1063 19.1063 23 18 23H14C12.8938 23 12 22.1063 12 21V20H0V27C0 29.2062 1.79375 31 4 31H28C30.2062 31 32 29.2062 32 27V20Z",
|
|
174
173
|
};
|
package/dist/styles/global.css
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
--container-md: 28rem;
|
|
14
14
|
--container-lg: 32rem;
|
|
15
15
|
--container-2xl: 42rem;
|
|
16
|
+
--container-4xl: 56rem;
|
|
16
17
|
--container-5xl: 64rem;
|
|
18
|
+
--container-6xl: 72rem;
|
|
17
19
|
--text-xs: 0.75rem;
|
|
18
20
|
--text-xs--line-height: calc(1 / 0.75);
|
|
19
21
|
--text-sm: 0.875rem;
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
--font-weight-medium: 500;
|
|
45
47
|
--font-weight-semibold: 600;
|
|
46
48
|
--font-weight-bold: 700;
|
|
49
|
+
--tracking-tight: -0.025em;
|
|
47
50
|
--tracking-widest: 0.1em;
|
|
48
51
|
--leading-normal: 1.5;
|
|
49
52
|
--radius-xs: 0.125rem;
|
|
@@ -241,9 +244,6 @@
|
|
|
241
244
|
.relative {
|
|
242
245
|
position: relative;
|
|
243
246
|
}
|
|
244
|
-
.sticky {
|
|
245
|
-
position: sticky;
|
|
246
|
-
}
|
|
247
247
|
.inset-0 {
|
|
248
248
|
inset: calc(var(--spacing) * 0);
|
|
249
249
|
}
|
|
@@ -325,9 +325,6 @@
|
|
|
325
325
|
.z-50 {
|
|
326
326
|
z-index: 50;
|
|
327
327
|
}
|
|
328
|
-
.z-\[100\] {
|
|
329
|
-
z-index: 100;
|
|
330
|
-
}
|
|
331
328
|
.z-\[1000\] {
|
|
332
329
|
z-index: 1000;
|
|
333
330
|
}
|
|
@@ -760,9 +757,6 @@
|
|
|
760
757
|
.min-h-40 {
|
|
761
758
|
min-height: calc(var(--spacing) * 40);
|
|
762
759
|
}
|
|
763
|
-
.min-h-\[3rem\] {
|
|
764
|
-
min-height: 3rem;
|
|
765
|
-
}
|
|
766
760
|
.min-h-\[42px\] {
|
|
767
761
|
min-height: 42px;
|
|
768
762
|
}
|
|
@@ -889,9 +883,15 @@
|
|
|
889
883
|
.max-w-2xl {
|
|
890
884
|
max-width: var(--container-2xl);
|
|
891
885
|
}
|
|
886
|
+
.max-w-4xl {
|
|
887
|
+
max-width: var(--container-4xl);
|
|
888
|
+
}
|
|
892
889
|
.max-w-5xl {
|
|
893
890
|
max-width: var(--container-5xl);
|
|
894
891
|
}
|
|
892
|
+
.max-w-6xl {
|
|
893
|
+
max-width: var(--container-6xl);
|
|
894
|
+
}
|
|
895
895
|
.max-w-40 {
|
|
896
896
|
max-width: calc(var(--spacing) * 40);
|
|
897
897
|
}
|
|
@@ -907,27 +907,21 @@
|
|
|
907
907
|
.max-w-\[calc\(100\%-2rem\)\] {
|
|
908
908
|
max-width: calc(100% - 2rem);
|
|
909
909
|
}
|
|
910
|
-
.max-w-\[min\(20rem\,calc\(100\%-2rem\)\)\] {
|
|
911
|
-
max-width: min(20rem, calc(100% - 2rem));
|
|
912
|
-
}
|
|
913
|
-
.max-w-\[min\(32rem\,calc\(100\%-2rem\)\)\] {
|
|
914
|
-
max-width: min(32rem, calc(100% - 2rem));
|
|
915
|
-
}
|
|
916
|
-
.max-w-\[min\(56rem\,calc\(100\%-2rem\)\)\] {
|
|
917
|
-
max-width: min(56rem, calc(100% - 2rem));
|
|
918
|
-
}
|
|
919
|
-
.max-w-\[min\(72rem\,calc\(100\%-2rem\)\)\] {
|
|
920
|
-
max-width: min(72rem, calc(100% - 2rem));
|
|
921
|
-
}
|
|
922
910
|
.max-w-fit {
|
|
923
911
|
max-width: fit-content;
|
|
924
912
|
}
|
|
913
|
+
.max-w-lg {
|
|
914
|
+
max-width: var(--container-lg);
|
|
915
|
+
}
|
|
925
916
|
.max-w-md {
|
|
926
917
|
max-width: var(--container-md);
|
|
927
918
|
}
|
|
928
919
|
.max-w-sm {
|
|
929
920
|
max-width: var(--container-sm);
|
|
930
921
|
}
|
|
922
|
+
.max-w-xs {
|
|
923
|
+
max-width: var(--container-xs);
|
|
924
|
+
}
|
|
931
925
|
.min-w-0 {
|
|
932
926
|
min-width: calc(var(--spacing) * 0);
|
|
933
927
|
}
|
|
@@ -1158,6 +1152,13 @@
|
|
|
1158
1152
|
margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
|
|
1159
1153
|
}
|
|
1160
1154
|
}
|
|
1155
|
+
.space-y-1\.5 {
|
|
1156
|
+
:where(& > :not(:last-child)) {
|
|
1157
|
+
--tw-space-y-reverse: 0;
|
|
1158
|
+
margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));
|
|
1159
|
+
margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1161
1162
|
.space-y-2 {
|
|
1162
1163
|
:where(& > :not(:last-child)) {
|
|
1163
1164
|
--tw-space-y-reverse: 0;
|
|
@@ -1819,6 +1820,9 @@
|
|
|
1819
1820
|
.px-4 {
|
|
1820
1821
|
padding-inline: calc(var(--spacing) * 4);
|
|
1821
1822
|
}
|
|
1823
|
+
.px-6 {
|
|
1824
|
+
padding-inline: calc(var(--spacing) * 6);
|
|
1825
|
+
}
|
|
1822
1826
|
.px-9 {
|
|
1823
1827
|
padding-inline: calc(var(--spacing) * 9);
|
|
1824
1828
|
}
|
|
@@ -1879,15 +1883,6 @@
|
|
|
1879
1883
|
.\!ps-12 {
|
|
1880
1884
|
padding-inline-start: calc(var(--spacing) * 12) !important;
|
|
1881
1885
|
}
|
|
1882
|
-
.\!pt-0 {
|
|
1883
|
-
padding-top: calc(var(--spacing) * 0) !important;
|
|
1884
|
-
}
|
|
1885
|
-
.\!pt-3 {
|
|
1886
|
-
padding-top: calc(var(--spacing) * 3) !important;
|
|
1887
|
-
}
|
|
1888
|
-
.\!pt-4 {
|
|
1889
|
-
padding-top: calc(var(--spacing) * 4) !important;
|
|
1890
|
-
}
|
|
1891
1886
|
.pr-2 {
|
|
1892
1887
|
padding-right: calc(var(--spacing) * 2);
|
|
1893
1888
|
}
|
|
@@ -1906,15 +1901,6 @@
|
|
|
1906
1901
|
.pr-11 {
|
|
1907
1902
|
padding-right: calc(var(--spacing) * 11);
|
|
1908
1903
|
}
|
|
1909
|
-
.\!pb-0 {
|
|
1910
|
-
padding-bottom: calc(var(--spacing) * 0) !important;
|
|
1911
|
-
}
|
|
1912
|
-
.\!pb-3 {
|
|
1913
|
-
padding-bottom: calc(var(--spacing) * 3) !important;
|
|
1914
|
-
}
|
|
1915
|
-
.\!pb-4 {
|
|
1916
|
-
padding-bottom: calc(var(--spacing) * 4) !important;
|
|
1917
|
-
}
|
|
1918
1904
|
.pl-2 {
|
|
1919
1905
|
padding-left: calc(var(--spacing) * 2);
|
|
1920
1906
|
}
|
|
@@ -2074,6 +2060,10 @@
|
|
|
2074
2060
|
--tw-font-weight: var(--font-weight-semibold);
|
|
2075
2061
|
font-weight: var(--font-weight-semibold);
|
|
2076
2062
|
}
|
|
2063
|
+
.tracking-tight {
|
|
2064
|
+
--tw-tracking: var(--tracking-tight);
|
|
2065
|
+
letter-spacing: var(--tracking-tight);
|
|
2066
|
+
}
|
|
2077
2067
|
.tracking-widest {
|
|
2078
2068
|
--tw-tracking: var(--tracking-widest);
|
|
2079
2069
|
letter-spacing: var(--tracking-widest);
|
|
@@ -2362,10 +2352,6 @@
|
|
|
2362
2352
|
--tw-shadow: 0px 0px 15px -3px var(--tw-shadow-color, #0F0F0F1A), 0px 4px 6px -4px var(--tw-shadow-color, #0F0F0F1A);
|
|
2363
2353
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2364
2354
|
}
|
|
2365
|
-
.shadow-backdrop-shadow-xl {
|
|
2366
|
-
--tw-shadow: 0px 0px 25px -5px var(--tw-shadow-color, #0304041A), 0px 8px 10px -6px var(--tw-shadow-color, #0304041A);
|
|
2367
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2368
|
-
}
|
|
2369
2355
|
.shadow-lg {
|
|
2370
2356
|
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2371
2357
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2374,10 +2360,6 @@
|
|
|
2374
2360
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2375
2361
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2376
2362
|
}
|
|
2377
|
-
.shadow-none {
|
|
2378
|
-
--tw-shadow: 0 0 #0000;
|
|
2379
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2380
|
-
}
|
|
2381
2363
|
.shadow-sm {
|
|
2382
2364
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2383
2365
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -4701,6 +4683,15 @@
|
|
|
4701
4683
|
gap: calc(var(--spacing) * 2);
|
|
4702
4684
|
}
|
|
4703
4685
|
}
|
|
4686
|
+
.sm\:space-x-2 {
|
|
4687
|
+
@media (width >= 40rem) {
|
|
4688
|
+
:where(& > :not(:last-child)) {
|
|
4689
|
+
--tw-space-x-reverse: 0;
|
|
4690
|
+
margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
|
|
4691
|
+
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4704
4695
|
.sm\:p-2 {
|
|
4705
4696
|
@media (width >= 40rem) {
|
|
4706
4697
|
padding: calc(var(--spacing) * 2);
|
package/dist/tailwind.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const sizes: {
|
|
2
|
-
sm: string;
|
|
3
|
-
md: string;
|
|
4
|
-
lg: string;
|
|
5
|
-
xl: string;
|
|
6
|
-
full: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const iconSizes: {
|
|
9
|
-
readonly sm: "sm";
|
|
10
|
-
readonly md: "md";
|
|
11
|
-
readonly lg: "lg";
|
|
12
|
-
readonly xl: "lg";
|
|
13
|
-
readonly full: "lg";
|
|
14
|
-
};
|
|
15
|
-
export declare const headerVariants: {
|
|
16
|
-
fill: string;
|
|
17
|
-
outline: string;
|
|
18
|
-
none: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const footerVariants: {
|
|
21
|
-
fill: string;
|
|
22
|
-
outline: string;
|
|
23
|
-
none: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const footerSizeClasses: {
|
|
26
|
-
sm: string;
|
|
27
|
-
md: string;
|
|
28
|
-
lg: string;
|
|
29
|
-
xl: string;
|
|
30
|
-
full: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const titleSizeClasses: {
|
|
33
|
-
sm: string;
|
|
34
|
-
md: string;
|
|
35
|
-
lg: string;
|
|
36
|
-
xl: string;
|
|
37
|
-
full: string;
|
|
38
|
-
};
|
|
39
|
-
export declare const subTitleSizeClasses: {
|
|
40
|
-
readonly sm: `!pt-0 !px-4 !pb-3 ${string}`;
|
|
41
|
-
readonly md: `!pt-0 !px-4 !pb-3 ${string}`;
|
|
42
|
-
readonly lg: `!pt-0 !px-4 !pb-4 ${string}`;
|
|
43
|
-
readonly xl: `!pt-0 !px-4 !pb-4 ${string}`;
|
|
44
|
-
readonly full: `!pt-0 !px-4 !pb-4 ${string}`;
|
|
45
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { variant } from "../Typography/Heading/heading";
|
|
2
|
-
import { variant as bodyVariant } from "../Typography/Body/body";
|
|
3
|
-
export var sizes = {
|
|
4
|
-
sm: "max-w-[min(20rem,calc(100%-2rem))]",
|
|
5
|
-
md: "max-w-[min(32rem,calc(100%-2rem))]",
|
|
6
|
-
lg: "max-w-[min(56rem,calc(100%-2rem))]",
|
|
7
|
-
xl: "max-w-[min(72rem,calc(100%-2rem))]",
|
|
8
|
-
full: "max-w-[calc(100%-2rem)]",
|
|
9
|
-
};
|
|
10
|
-
export var iconSizes = {
|
|
11
|
-
sm: "sm",
|
|
12
|
-
md: "md",
|
|
13
|
-
lg: "lg",
|
|
14
|
-
xl: "lg",
|
|
15
|
-
full: "lg",
|
|
16
|
-
};
|
|
17
|
-
export var headerVariants = {
|
|
18
|
-
fill: "bg-gray-50",
|
|
19
|
-
outline: "border-b border-gray-200",
|
|
20
|
-
none: "",
|
|
21
|
-
};
|
|
22
|
-
export var footerVariants = {
|
|
23
|
-
fill: "bg-gray-50",
|
|
24
|
-
outline: "border-t border-gray-200",
|
|
25
|
-
none: "",
|
|
26
|
-
};
|
|
27
|
-
export var footerSizeClasses = {
|
|
28
|
-
sm: "!px-4 !py-3",
|
|
29
|
-
md: "!px-4 !py-3",
|
|
30
|
-
lg: "!px-4 !py-4",
|
|
31
|
-
xl: "!px-4 !py-4",
|
|
32
|
-
full: "!px-4 !py-4",
|
|
33
|
-
};
|
|
34
|
-
export var titleSizeClasses = {
|
|
35
|
-
sm: "!pt-3 !px-4 !pb-0 ".concat(variant["h5-600"]),
|
|
36
|
-
md: "!pt-3 !px-4 !pb-0 ".concat(variant["h5-600"]),
|
|
37
|
-
lg: "!pt-4 !px-4 !pb-0 ".concat(variant["h4-600"]),
|
|
38
|
-
xl: "!pt-4 !px-4 !pb-0 ".concat(variant["h4-600"]),
|
|
39
|
-
full: "!pt-4 !px-4 !pb-0 ".concat(variant["h4-600"]),
|
|
40
|
-
};
|
|
41
|
-
export var subTitleSizeClasses = {
|
|
42
|
-
sm: "!pt-0 !px-4 !pb-3 ".concat(bodyVariant["body-sm"]),
|
|
43
|
-
md: "!pt-0 !px-4 !pb-3 ".concat(bodyVariant["body-md"]),
|
|
44
|
-
lg: "!pt-0 !px-4 !pb-4 ".concat(bodyVariant["body-lg"]),
|
|
45
|
-
xl: "!pt-0 !px-4 !pb-4 ".concat(bodyVariant["body-lg"]),
|
|
46
|
-
full: "!pt-0 !px-4 !pb-4 ".concat(bodyVariant["body-lg"]),
|
|
47
|
-
};
|