linkedunion-design-kit 1.11.3 → 1.11.5

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as LUIcon } from "./src/components/Icons/LUIcon";
2
+ export type { IconName } from "./src/components/Icons/type";
2
3
  export { default as Card } from "./src/components/Card/card";
3
4
  export { default as LuImage } from "./src/components/Images/LuImage";
4
5
  export { default as Title } from "./src/components/Title/Title";
@@ -23,6 +24,7 @@ export { AppIcon } from "./src/components/AppIcons";
23
24
  export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
24
25
  export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "./src/components/Dropdown/select";
25
26
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./src/components/Alerts/AlertDialog";
27
+ export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
26
28
  export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
27
29
  export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
28
30
  export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
@@ -31,8 +33,7 @@ export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox
31
33
  export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
32
34
  export { Skeleton } from "./src/components/Skeleton/skeleton";
33
35
  export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
34
- export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
36
+ export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogSubTitle, DialogBody, DialogFooter, DialogAction, DialogClose, } from "./src/components/Modal/Modal";
35
37
  export { DatePicker } from "./src/components/DatePicker/DatePicker";
36
38
  export { DateRangePicker } from "./src/components/DateRangePicker/DateRangePicker";
37
39
  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,6 +23,7 @@ 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";
26
27
  export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
27
28
  export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
28
29
  export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
@@ -31,8 +32,7 @@ export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox
31
32
  export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
32
33
  export { Skeleton } from "./src/components/Skeleton/skeleton";
33
34
  export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
34
- export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
35
+ export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogSubTitle, DialogBody, DialogFooter, DialogAction, DialogClose, } from "./src/components/Modal/Modal";
35
36
  export { DatePicker } from "./src/components/DatePicker/DatePicker";
36
37
  export { DateRangePicker } from "./src/components/DateRangePicker/DateRangePicker";
37
38
  export { TimePicker } from "./src/components/TimePicker/TimePicker";
38
- export { Alert, AlertAction, AlertCancel, AlertHeader, AlertTitle, AlertDescription, AlertFooter, } from "./src/components/Alerts/Alert/alert";
@@ -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 text-center 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 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,2 +1,2 @@
1
1
  import { DatePickerProps } from "./types";
2
- export declare function DatePicker({ className, variant, size, color, shape, date, onChange, placeholder, disabled, startIcon, endIcon, shadow, minDate, maxDate, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DatePicker({ className, variant, size, color, shape, date, onChange, placeholder, disabled, startIcon, endIcon, shadow, minDate, maxDate, triggerClassName, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -33,12 +33,12 @@ import { Button } from "../Button/Button/Button";
33
33
  import { Default_DatePicker_Variant, Default_DatePicker_Color, Default_DatePicker_Shape, Default_DatePicker_Size, datePickerStyles, Default_DatePicker_Shadow, } from ".";
34
34
  import { useState } from "react";
35
35
  export function DatePicker(_a) {
36
- var className = _a.className, _b = _a.variant, variant = _b === void 0 ? Default_DatePicker_Variant : _b, _c = _a.size, size = _c === void 0 ? Default_DatePicker_Size : _c, _d = _a.color, color = _d === void 0 ? Default_DatePicker_Color : _d, _e = _a.shape, shape = _e === void 0 ? Default_DatePicker_Shape : _e, date = _a.date, onChange = _a.onChange, _f = _a.placeholder, placeholder = _f === void 0 ? "MM/DD/YYYY" : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, startIcon = _a.startIcon, endIcon = _a.endIcon, _h = _a.shadow, shadow = _h === void 0 ? Default_DatePicker_Shadow : _h, minDate = _a.minDate, maxDate = _a.maxDate, props = __rest(_a, ["className", "variant", "size", "color", "shape", "date", "onChange", "placeholder", "disabled", "startIcon", "endIcon", "shadow", "minDate", "maxDate"]);
36
+ var className = _a.className, _b = _a.variant, variant = _b === void 0 ? Default_DatePicker_Variant : _b, _c = _a.size, size = _c === void 0 ? Default_DatePicker_Size : _c, _d = _a.color, color = _d === void 0 ? Default_DatePicker_Color : _d, _e = _a.shape, shape = _e === void 0 ? Default_DatePicker_Shape : _e, date = _a.date, onChange = _a.onChange, _f = _a.placeholder, placeholder = _f === void 0 ? "MM/DD/YYYY" : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, startIcon = _a.startIcon, endIcon = _a.endIcon, _h = _a.shadow, shadow = _h === void 0 ? Default_DatePicker_Shadow : _h, minDate = _a.minDate, maxDate = _a.maxDate, triggerClassName = _a.triggerClassName, props = __rest(_a, ["className", "variant", "size", "color", "shape", "date", "onChange", "placeholder", "disabled", "startIcon", "endIcon", "shadow", "minDate", "maxDate", "triggerClassName"]);
37
37
  var _j = useState(false), open = _j[0], setOpen = _j[1];
38
38
  var iconSizeClass = getIconSize(size);
39
39
  var paddingClass = getPadding(size, !!startIcon, !!endIcon);
40
40
  var iconPosition = getIconPosition(size || Default_DatePicker_Size);
41
- return (_jsxs(Popover, { open: !disabled && open, onOpenChange: disabled ? undefined : setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("div", { className: "relative", children: [startIcon && (_jsx(LUIcon, { icon: startIcon, size: iconSizeClass, className: cn("absolute top-1/2 -translate-y-1/2 pointer-events-none z-10", iconPosition.left) })), _jsx(Button, { color: "light-gray", "aria-expanded": open, "data-slot": "date-picker-input", className: cn("w-full justify-between !p-0 hover:!bg-transparent active:!bg-transparent", inputVariants({ variant: variant, size: size, color: color, shape: shape }), "text-left flex items-center", !date && "text-muted-foreground", open &&
41
+ return (_jsxs(Popover, { open: !disabled && open, onOpenChange: disabled ? undefined : setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("div", { className: cn("relative", triggerClassName), children: [startIcon && (_jsx(LUIcon, { icon: startIcon, size: iconSizeClass, className: cn("absolute top-1/2 -translate-y-1/2 pointer-events-none z-10", iconPosition.left) })), _jsx(Button, { color: "light-gray", "aria-expanded": open, "data-slot": "date-picker-input", className: cn("w-full justify-between !p-0 hover:!bg-transparent active:!bg-transparent", inputVariants({ variant: variant, size: size, color: color, shape: shape }), "text-left flex items-center", !date && "text-muted-foreground", open &&
42
42
  color === "default" &&
43
43
  "border-blue-600 ring-2 ring-blue-200", disabled && [
44
44
  variant === "filled" && "bg-gray-100",
@@ -16,4 +16,5 @@ export interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLDivElemen
16
16
  size?: keyof typeof inputVariantConfig.size;
17
17
  color?: keyof typeof inputVariantConfig.color;
18
18
  variant?: keyof typeof inputVariantConfig.variant;
19
+ triggerClassName?: string;
19
20
  }
@@ -3,6 +3,7 @@ import { iconSize, iconWithBgColor, IconShape } from ".";
3
3
  export type iconSize = keyof typeof iconSize;
4
4
  export type shape = keyof typeof IconShape;
5
5
  export type color = keyof typeof iconWithBgColor;
6
+ export type IconName = keyof typeof iconList;
6
7
  export interface IconProps extends React.HTMLAttributes<HTMLOrSVGElement> {
7
8
  size?: iconSize;
8
9
  icon: keyof typeof iconList;
@@ -1,12 +1,6 @@
1
1
  import * as React from "react";
2
2
  import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- export declare const sizes: {
4
- sm: string;
5
- md: string;
6
- lg: string;
7
- xl: string;
8
- full: string;
9
- };
3
+ import { footerVariants, headerVariants, sizes } from ".";
10
4
  declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
11
5
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
12
6
  declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
@@ -15,17 +9,33 @@ declare const DialogAction: React.ForwardRefExoticComponent<DialogPrimitive.Dial
15
9
  declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
10
  declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
17
11
  size?: keyof typeof sizes;
12
+ shadow?: boolean;
13
+ showCloseIcon?: boolean;
18
14
  } & 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: {
20
24
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
21
25
  displayName: string;
22
26
  };
27
+ type DialogFooterProps = React.HTMLAttributes<HTMLDivElement> & {
28
+ size?: keyof typeof sizes;
29
+ variant?: keyof typeof footerVariants;
30
+ };
23
31
  declare const DialogFooter: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
32
+ ({ className, size, variant, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
25
33
  displayName: string;
26
34
  };
27
35
  declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & {
28
36
  size?: keyof typeof sizes;
29
37
  } & React.RefAttributes<HTMLHeadingElement>>;
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, };
38
+ declare const DialogSubTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & {
39
+ size?: keyof typeof sizes;
40
+ } & React.RefAttributes<HTMLParagraphElement>>;
41
+ export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogSubTitle, };
@@ -25,14 +25,8 @@ 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 { 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
- };
28
+ import { footerSizeClasses, footerVariants, headerVariants, iconSizes, sizes, subTitleSizeClasses, titleSizeClasses, } from ".";
29
+ var ModalSizeContext = React.createContext("md");
36
30
  var Dialog = DialogPrimitive.Root;
37
31
  var DialogTrigger = DialogPrimitive.Trigger;
38
32
  var DialogPortal = DialogPrimitive.Portal;
@@ -44,35 +38,45 @@ var DialogOverlay = React.forwardRef(function (_a, ref) {
44
38
  });
45
39
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
46
40
  var DialogContent = React.forwardRef(function (_a, ref) {
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" })] })] }))] }));
41
+ var className = _a.className, children = _a.children, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.shadow, shadow = _c === void 0 ? true : _c, _d = _a.showCloseIcon, showCloseIcon = _d === void 0 ? true : _d, props = __rest(_a, ["className", "children", "size", "shadow", "showCloseIcon"]);
42
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsx(ModalSizeContext.Provider, { value: size, children: _jsxs(DialogPrimitive.Content, __assign({ ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-0 bg-white rounded-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 overflow-hidden", sizes[size], shadow ? "shadow-backdrop-shadow-xl" : "shadow-none", className) }, props, { children: [children, showCloseIcon && (_jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 z-[100] 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: iconSizes[size] }), _jsx("span", { className: "sr-only", children: "Close" })] }))] })) })] }));
49
43
  });
50
44
  DialogContent.displayName = DialogPrimitive.Content.displayName;
51
45
  var DialogHeader = function (_a) {
52
- var className = _a.className, props = __rest(_a, ["className"]);
53
- return (_jsx("div", __assign({ className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className) }, props)));
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)));
54
51
  };
55
52
  DialogHeader.displayName = "DialogHeader";
56
- var DialogFooter = function (_a) {
53
+ var DialogBody = function (_a) {
57
54
  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)));
55
+ return (_jsx("div", __assign({ className: cn("py-4 px-4", className) }, props)));
59
56
  };
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"],
57
+ DialogBody.displayName = "DialogBody";
58
+ var DialogFooter = function (_a) {
59
+ var _b;
60
+ var className = _a.className, size = _a.size, _c = _a.variant, variant = _c === void 0 ? "none" : _c, props = __rest(_a, ["className", "size", "variant"]);
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)));
67
64
  };
65
+ DialogFooter.displayName = "DialogFooter";
68
66
  var DialogTitle = React.forwardRef(function (_a, ref) {
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)));
67
+ var _b;
68
+ var className = _a.className, size = _a.size, children = _a.children, props = __rest(_a, ["className", "size", "children"]);
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 })));
71
72
  });
72
73
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
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)));
74
+ var DialogSubTitle = React.forwardRef(function (_a, ref) {
75
+ var _b;
76
+ var className = _a.className, size = _a.size, props = __rest(_a, ["className", "size"]);
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)));
76
80
  });
77
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
78
- export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
81
+ DialogSubTitle.displayName = DialogPrimitive.Description.displayName;
82
+ export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogAction, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogSubTitle, };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { sizes } from "./Modal";
3
2
  declare const _default: {
4
3
  title: string;
5
4
  component: React.FC<import("@radix-ui/react-dialog").DialogProps>;
@@ -20,13 +19,89 @@ declare const _default: {
20
19
  };
21
20
  };
22
21
  };
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
+ };
23
80
  };
24
81
  };
25
82
  export default _default;
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>>;
83
+ export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, any>;
29
84
  export declare const SimpleModal: () => import("react/jsx-runtime").JSX.Element;
30
85
  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;
31
101
  export declare const InformationModalWithoutFooter: () => import("react/jsx-runtime").JSX.Element;
32
102
  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,14 +9,26 @@ 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
+ };
12
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, DialogAction, sizes, } from "./Modal";
24
+ import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogSubTitle, DialogBody, DialogFooter, DialogClose, DialogAction, } from "./Modal";
14
25
  import { Button } from "../Button/Button/Button";
15
26
  import { Body } from "../Typography/Body/body";
16
27
  import { Heading } from "../Typography/Heading/heading";
17
28
  import LUIcon from "../Icons/LUIcon";
18
29
  import { Avatar, AvatarFallback, AvatarImage } from "../Avatar/Avatar/Avatar";
19
30
  import { Dummy_Para } from "../../utils/constants";
31
+ import { footerVariants, headerVariants, sizes } from ".";
20
32
  export default {
21
33
  title: "Components/Modal",
22
34
  component: Dialog,
@@ -31,14 +43,73 @@ export default {
31
43
  defaultValue: { summary: "md" },
32
44
  },
33
45
  },
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
+ },
34
80
  },
35
81
  };
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" }) }) })] }))] })); };
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
+ };
37
86
  export var Default = Template.bind({});
38
87
  Default.args = {
39
88
  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
+ },
40
105
  };
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" }) })] })] })] })); };
106
+ export var FooterButtonsRightPosition = 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, { children: [_jsx(Button, { children: "Help" }), _jsx(Button, { onClick: function () { return alert("Action confirmed!"); }, className: "ms-auto mr-2", children: "Confirm" }), _jsx(Button, { variant: "outline", onClick: function () { return alert("Action cancelled!"); }, children: "Cancel" })] })] })] })); };
107
+ export var FooterButtonsMiddlePosition = 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: "flex-row justify-center items-center 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" })] })] })] })); };
108
+ export var ShadowVariations = function () { return (_jsxs("div", { className: "flex flex-row gap-4", children: [_jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open Shadow" }) }), _jsxs(DialogContent, { size: "md", shadow: true, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Shadow True" }), _jsx(DialogSubTitle, { children: "This modal uses the custom shadow." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: "This demonstrates the shadow style." }) }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] }), _jsxs(Dialog, { children: [_jsx(DialogTrigger, { asChild: true, children: _jsx(Button, { children: "Open No Shadow" }) }), _jsxs(DialogContent, { size: "md", shadow: false, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: "Shadow False" }), _jsx(DialogSubTitle, { children: "This modal has no shadow." })] }), _jsx(DialogBody, { children: _jsx(Body, { variant: "body-md", children: "This demonstrates the no shadow style." }) }), _jsx(DialogFooter, { children: _jsx(DialogClose, { asChild: true, children: _jsx(Button, { children: "Close" }) }) })] })] })] })); };
109
+ 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(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 })] })] })] })); };
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 })] })] })] })); };
@@ -0,0 +1,45 @@
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
+ };
@@ -0,0 +1,47 @@
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
+ };
@@ -1,2 +1,2 @@
1
1
  import { TimePickerProps } from "./types";
2
- export declare function TimePicker({ className, variant, size, color, shape, time, onChange, placeholder, disabled, startIcon, endIcon, shadow, ...props }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimePicker({ className, variant, size, color, shape, time, onChange, placeholder, disabled, startIcon, endIcon, shadow, triggerClassName, ...props }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -84,7 +84,7 @@ function TimePickerMenu(_a) {
84
84
  return (_jsxs("div", { className: "grid grid-cols-[124px_124px_124px]", children: [_jsx(MenuItem, { label: "Hour", data: hours, onClick: function (item) { return setHour(hour === item ? null : item); }, activeItem: hour, size: size }), _jsx(MenuItem, { label: "Minutes", data: minutes, onClick: function (item) { return setMinute(minute === item ? null : item); }, activeItem: minute, padZero: true, size: size }), _jsxs("div", { className: "flex flex-col", children: [_jsx(MenuItemLabel, { label: "AM/PM" }), _jsxs("div", { className: "space-y-1 h-full content-center -mt-6", children: [_jsx(PeriodButton, { onClick: function () { return setPeriod(period === "AM" ? null : "AM"); }, periodLabel: "AM", activePeriod: period, size: size }), _jsx(PeriodButton, { onClick: function () { return setPeriod(period === "PM" ? null : "PM"); }, periodLabel: "PM", activePeriod: period, size: size })] })] })] }));
85
85
  }
86
86
  export function TimePicker(_a) {
87
- var className = _a.className, _b = _a.variant, variant = _b === void 0 ? Default_TimePicker_Variant : _b, _c = _a.size, size = _c === void 0 ? Default_TimePicker_Size : _c, _d = _a.color, color = _d === void 0 ? Default_TimePicker_Color : _d, _e = _a.shape, shape = _e === void 0 ? Default_TimePicker_Shape : _e, time = _a.time, onChange = _a.onChange, _f = _a.placeholder, placeholder = _f === void 0 ? "Select time" : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, startIcon = _a.startIcon, endIcon = _a.endIcon, _h = _a.shadow, shadow = _h === void 0 ? Default_TimePicker_Shadow : _h, props = __rest(_a, ["className", "variant", "size", "color", "shape", "time", "onChange", "placeholder", "disabled", "startIcon", "endIcon", "shadow"]);
87
+ var className = _a.className, _b = _a.variant, variant = _b === void 0 ? Default_TimePicker_Variant : _b, _c = _a.size, size = _c === void 0 ? Default_TimePicker_Size : _c, _d = _a.color, color = _d === void 0 ? Default_TimePicker_Color : _d, _e = _a.shape, shape = _e === void 0 ? Default_TimePicker_Shape : _e, time = _a.time, onChange = _a.onChange, _f = _a.placeholder, placeholder = _f === void 0 ? "Select time" : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, startIcon = _a.startIcon, endIcon = _a.endIcon, _h = _a.shadow, shadow = _h === void 0 ? Default_TimePicker_Shadow : _h, triggerClassName = _a.triggerClassName, props = __rest(_a, ["className", "variant", "size", "color", "shape", "time", "onChange", "placeholder", "disabled", "startIcon", "endIcon", "shadow", "triggerClassName"]);
88
88
  var _j = useState(false), open = _j[0], setOpen = _j[1];
89
89
  var iconSizeClass = getIconSize(size);
90
90
  var paddingClass = getPadding(size, !!startIcon, !!endIcon);
@@ -98,7 +98,7 @@ export function TimePicker(_a) {
98
98
  var displayHour = h % 12 || 12;
99
99
  return "".concat(displayHour, ":").concat(minutes, " ").concat(period);
100
100
  };
101
- return (_jsxs(Popover, { open: !disabled && open, onOpenChange: disabled ? undefined : setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("div", { className: "relative", children: [startIcon && (_jsx(LUIcon, { icon: startIcon, size: iconSizeClass, className: cn("absolute top-1/2 -translate-y-1/2 pointer-events-none z-10", iconPosition.left) })), _jsx(Button, { color: "light-gray", "aria-expanded": open, "data-slot": "time-picker-input", className: cn("w-full justify-between !p-0 hover:!bg-transparent active:!bg-transparent", inputVariants({ variant: variant, size: size, color: color, shape: shape }), "text-left flex items-center", !time && "text-muted-foreground", open &&
101
+ return (_jsxs(Popover, { open: !disabled && open, onOpenChange: disabled ? undefined : setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("div", { className: cn("relative", triggerClassName), children: [startIcon && (_jsx(LUIcon, { icon: startIcon, size: iconSizeClass, className: cn("absolute top-1/2 -translate-y-1/2 pointer-events-none z-10", iconPosition.left) })), _jsx(Button, { color: "light-gray", "aria-expanded": open, "data-slot": "time-picker-input", className: cn("w-full justify-between !p-0 hover:!bg-transparent active:!bg-transparent", inputVariants({ variant: variant, size: size, color: color, shape: shape }), "text-left flex items-center", !time && "text-muted-foreground", open &&
102
102
  color === "default" &&
103
103
  "border-blue-600 ring-2 ring-blue-200", disabled && [
104
104
  variant === "filled" && "bg-gray-100",
@@ -11,5 +11,6 @@ export interface TimePickerProps extends Omit<React.HTMLAttributes<HTMLDivElemen
11
11
  endIcon?: keyof typeof iconList;
12
12
  shape?: keyof typeof inputVariantConfig.shape;
13
13
  shadow?: keyof typeof timePickerMenuStyles.shadow;
14
+ triggerClassName?: string;
14
15
  }
15
16
  export type TimePeriod = "AM" | "PM" | null;
@@ -170,4 +170,5 @@ export declare const iconList: {
170
170
  "ellipsis-vertical": string;
171
171
  exclamation: string;
172
172
  "fax-no": string;
173
+ briefcase: string;
173
174
  };
@@ -170,4 +170,5 @@ 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",
173
174
  };
@@ -13,9 +13,7 @@
13
13
  --container-md: 28rem;
14
14
  --container-lg: 32rem;
15
15
  --container-2xl: 42rem;
16
- --container-4xl: 56rem;
17
16
  --container-5xl: 64rem;
18
- --container-6xl: 72rem;
19
17
  --text-xs: 0.75rem;
20
18
  --text-xs--line-height: calc(1 / 0.75);
21
19
  --text-sm: 0.875rem;
@@ -46,7 +44,6 @@
46
44
  --font-weight-medium: 500;
47
45
  --font-weight-semibold: 600;
48
46
  --font-weight-bold: 700;
49
- --tracking-tight: -0.025em;
50
47
  --tracking-widest: 0.1em;
51
48
  --leading-normal: 1.5;
52
49
  --radius-xs: 0.125rem;
@@ -244,6 +241,9 @@
244
241
  .relative {
245
242
  position: relative;
246
243
  }
244
+ .sticky {
245
+ position: sticky;
246
+ }
247
247
  .inset-0 {
248
248
  inset: calc(var(--spacing) * 0);
249
249
  }
@@ -325,6 +325,9 @@
325
325
  .z-50 {
326
326
  z-index: 50;
327
327
  }
328
+ .z-\[100\] {
329
+ z-index: 100;
330
+ }
328
331
  .z-\[1000\] {
329
332
  z-index: 1000;
330
333
  }
@@ -757,6 +760,9 @@
757
760
  .min-h-40 {
758
761
  min-height: calc(var(--spacing) * 40);
759
762
  }
763
+ .min-h-\[3rem\] {
764
+ min-height: 3rem;
765
+ }
760
766
  .min-h-\[42px\] {
761
767
  min-height: 42px;
762
768
  }
@@ -883,15 +889,9 @@
883
889
  .max-w-2xl {
884
890
  max-width: var(--container-2xl);
885
891
  }
886
- .max-w-4xl {
887
- max-width: var(--container-4xl);
888
- }
889
892
  .max-w-5xl {
890
893
  max-width: var(--container-5xl);
891
894
  }
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,21 +907,27 @@
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
+ }
910
922
  .max-w-fit {
911
923
  max-width: fit-content;
912
924
  }
913
- .max-w-lg {
914
- max-width: var(--container-lg);
915
- }
916
925
  .max-w-md {
917
926
  max-width: var(--container-md);
918
927
  }
919
928
  .max-w-sm {
920
929
  max-width: var(--container-sm);
921
930
  }
922
- .max-w-xs {
923
- max-width: var(--container-xs);
924
- }
925
931
  .min-w-0 {
926
932
  min-width: calc(var(--spacing) * 0);
927
933
  }
@@ -1152,13 +1158,6 @@
1152
1158
  margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));
1153
1159
  }
1154
1160
  }
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
- }
1162
1161
  .space-y-2 {
1163
1162
  :where(& > :not(:last-child)) {
1164
1163
  --tw-space-y-reverse: 0;
@@ -1820,9 +1819,6 @@
1820
1819
  .px-4 {
1821
1820
  padding-inline: calc(var(--spacing) * 4);
1822
1821
  }
1823
- .px-6 {
1824
- padding-inline: calc(var(--spacing) * 6);
1825
- }
1826
1822
  .px-9 {
1827
1823
  padding-inline: calc(var(--spacing) * 9);
1828
1824
  }
@@ -1883,6 +1879,15 @@
1883
1879
  .\!ps-12 {
1884
1880
  padding-inline-start: calc(var(--spacing) * 12) !important;
1885
1881
  }
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
+ }
1886
1891
  .pr-2 {
1887
1892
  padding-right: calc(var(--spacing) * 2);
1888
1893
  }
@@ -1901,6 +1906,15 @@
1901
1906
  .pr-11 {
1902
1907
  padding-right: calc(var(--spacing) * 11);
1903
1908
  }
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
+ }
1904
1918
  .pl-2 {
1905
1919
  padding-left: calc(var(--spacing) * 2);
1906
1920
  }
@@ -2060,10 +2074,6 @@
2060
2074
  --tw-font-weight: var(--font-weight-semibold);
2061
2075
  font-weight: var(--font-weight-semibold);
2062
2076
  }
2063
- .tracking-tight {
2064
- --tw-tracking: var(--tracking-tight);
2065
- letter-spacing: var(--tracking-tight);
2066
- }
2067
2077
  .tracking-widest {
2068
2078
  --tw-tracking: var(--tracking-widest);
2069
2079
  letter-spacing: var(--tracking-widest);
@@ -2352,6 +2362,10 @@
2352
2362
  --tw-shadow: 0px 0px 15px -3px var(--tw-shadow-color, #0F0F0F1A), 0px 4px 6px -4px var(--tw-shadow-color, #0F0F0F1A);
2353
2363
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2354
2364
  }
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
+ }
2355
2369
  .shadow-lg {
2356
2370
  --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));
2357
2371
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -2360,6 +2374,10 @@
2360
2374
  --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));
2361
2375
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2362
2376
  }
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
+ }
2363
2381
  .shadow-sm {
2364
2382
  --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));
2365
2383
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -4683,15 +4701,6 @@
4683
4701
  gap: calc(var(--spacing) * 2);
4684
4702
  }
4685
4703
  }
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
- }
4695
4704
  .sm\:p-2 {
4696
4705
  @media (width >= 40rem) {
4697
4706
  padding: calc(var(--spacing) * 2);
@@ -17,6 +17,7 @@ var config = {
17
17
  },
18
18
  boxShadow: {
19
19
  "backdrop-shadow-lg": "0px 0px 15px -3px #0F0F0F1A, 0px 4px 6px -4px #0F0F0F1A",
20
+ "backdrop-shadow-xl": "0px 0px 25px -5px #0304041A, 0px 8px 10px -6px #0304041A",
20
21
  },
21
22
  fontSize: {
22
23
  tiny: "0.625rem", // 10px
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "1.11.3",
3
+ "version": "1.11.5",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",