linkedunion-design-kit 1.9.2 → 1.9.4
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/app/layout.jsx +13 -0
- package/dist/app/page.jsx +25 -0
- package/dist/build/types/app/layout.d.ts +12 -0
- package/dist/build/types/app/layout.js +22 -0
- package/dist/build/types/app/page.d.ts +12 -0
- package/dist/build/types/app/page.js +22 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/src/components/Accordion/Accordion.stories.jsx +33 -0
- package/dist/src/components/Accordion/accordion.jsx +59 -0
- package/dist/src/components/Alerts/Alert/alert.jsx +152 -0
- package/dist/src/components/Alerts/Alert/alert.stories.jsx +344 -0
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.jsx +170 -0
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.jsx +552 -0
- package/dist/src/components/AppIcons/AndroidIcon.jsx +24 -0
- package/dist/src/components/AppIcons/AppIcon.jsx +29 -0
- package/dist/src/components/AppIcons/AppIcon.stories.jsx +223 -0
- package/dist/src/components/AppIcons/AppleIcon.jsx +31 -0
- package/dist/src/components/AppIcons/PlayStoreIcon.jsx +29 -0
- package/dist/src/components/Avatar/Avatar/Avatar.jsx +45 -0
- package/dist/src/components/Avatar/Avatar/Avatar.stories.jsx +95 -0
- package/dist/src/components/Avatar/Avatar/Avatar.test.jsx +9 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.jsx +17 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.stories.jsx +32 -0
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.jsx +20 -0
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.stories.jsx +50 -0
- package/dist/src/components/Badge/Badge.jsx +54 -0
- package/dist/src/components/Badge/Badge.stories.jsx +201 -0
- package/dist/src/components/Button/Button/Button.d.ts +7 -6
- package/dist/src/components/Button/Button/Button.js +32 -9
- package/dist/src/components/Button/Button/Button.jsx +101 -0
- package/dist/src/components/Button/Button/Button.stories.jsx +283 -0
- package/dist/src/components/Button/Button/Button.test.jsx +73 -0
- package/dist/src/components/Button/IconButton/IconButton.jsx +63 -0
- package/dist/src/components/Button/IconButton/IconButton.stories.jsx +128 -0
- package/dist/src/components/Button/IconButton/IconButton.test.jsx +28 -0
- package/dist/src/components/Button/index.js +3 -3
- package/dist/src/components/Card/MultipleNews/MultiNews.jsx +80 -0
- package/dist/src/components/Card/MultipleNews/MultiNews.stories.jsx +104 -0
- package/dist/src/components/Card/PostByCategory/PostByCategory.jsx +60 -0
- package/dist/src/components/Card/PostByCategory/PostByCategory.stories.jsx +106 -0
- package/dist/src/components/Card/SinglePost/SinglePost.jsx +26 -0
- package/dist/src/components/Card/SinglePost/SinglePost.stories.jsx +68 -0
- package/dist/src/components/Card/card.jsx +36 -0
- package/dist/src/components/Card/contactProfile/ContactProfile.jsx +60 -0
- package/dist/src/components/Card/contactProfile/ContactProfile.stories.jsx +103 -0
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.jsx +41 -0
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.stories.jsx +69 -0
- package/dist/src/components/Card/photoGallery/PhotoGallery.jsx +17 -0
- package/dist/src/components/Card/photoGallery/PhotoGallery.stories.jsx +39 -0
- package/dist/src/components/Checkbox/checkbox.jsx +47 -0
- package/dist/src/components/Checkbox/checkbox.stories.jsx +113 -0
- package/dist/src/components/ColorPicker/ColorPicker.jsx +67 -0
- package/dist/src/components/ColorPicker/ColorPicker.stories.jsx +138 -0
- package/dist/src/components/Colors/color.jsx +5 -0
- package/dist/src/components/Colors/color.stories.jsx +20 -0
- package/dist/src/components/Colors/color.test.jsx +23 -0
- package/dist/src/components/Dropdown/Combobox/Combobox.jsx +198 -0
- package/dist/src/components/Dropdown/Combobox/Combobox.stories.jsx +289 -0
- package/dist/src/components/Dropdown/Combobox/utils/renderBadge.jsx +7 -0
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.jsx +102 -0
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.jsx +464 -0
- package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.jsx +19 -0
- package/dist/src/components/Dropdown/Select.stories.jsx +201 -0
- package/dist/src/components/Dropdown/select.jsx +93 -0
- package/dist/src/components/Icons/LUIcon.jsx +41 -0
- package/dist/src/components/Icons/LUIcon.test.jsx +308 -0
- package/dist/src/components/Icons/stories/IconDropdown.jsx +67 -0
- package/dist/src/components/Icons/stories/IconGallery.jsx +77 -0
- package/dist/src/components/Icons/stories/InteractiveIconSelector.jsx +86 -0
- package/dist/src/components/Icons/stories/LUIcon.stories.jsx +108 -0
- package/dist/src/components/ImageUploader/ImageUploader.stories.jsx +50 -0
- package/dist/src/components/ImageUploader/imageUploader.jsx +94 -0
- package/dist/src/components/Images/LuImage.jsx +19 -0
- package/dist/src/components/Images/LuImage.stories.jsx +154 -0
- package/dist/src/components/Images/LuImage.test.jsx +44 -0
- package/dist/src/components/Input/Input.stories.jsx +250 -0
- package/dist/src/components/Input/input.jsx +110 -0
- package/dist/src/components/Label/Label.jsx +32 -0
- package/dist/src/components/Label/Label.stories.jsx +30 -0
- package/dist/src/components/Pagination/pagination.d.ts +33 -0
- package/dist/src/components/Pagination/pagination.js +68 -0
- package/dist/src/components/Pagination/pagination.jsx +68 -0
- package/dist/src/components/Pagination/pagination.stories.d.ts +74 -0
- package/dist/src/components/Pagination/pagination.stories.js +168 -0
- package/dist/src/components/Pagination/pagination.stories.jsx +114 -0
- package/dist/src/components/RadioGroup/RadioGroup.stories.jsx +146 -0
- package/dist/src/components/RadioGroup/radio-group.jsx +49 -0
- package/dist/src/components/Skeleton/skeleton.d.ts +117 -0
- package/dist/src/components/Skeleton/skeleton.js +140 -0
- package/dist/src/components/Skeleton/skeleton.stories.d.ts +153 -0
- package/dist/src/components/Skeleton/skeleton.stories.js +404 -0
- package/dist/src/components/Slider/Slider.stories.jsx +159 -0
- package/dist/src/components/Slider/slider.jsx +31 -0
- package/dist/src/components/SweetAlert/SweetAlert.jsx +147 -0
- package/dist/src/components/SweetAlert/SweetAlert.stories.jsx +505 -0
- package/dist/src/components/Switch/Switch.stories.jsx +66 -0
- package/dist/src/components/Switch/switch.jsx +61 -0
- package/dist/src/components/Table/Table.d.ts +26 -0
- package/dist/src/components/Table/Table.js +186 -0
- package/dist/src/components/Table/Table.jsx +221 -0
- package/dist/src/components/Table/Table.stories.d.ts +51 -0
- package/dist/src/components/Table/Table.stories.js +408 -0
- package/dist/src/components/Table/Table.stories.jsx +652 -0
- package/dist/src/components/Table/index.d.ts +20 -0
- package/dist/src/components/Table/index.js +20 -0
- package/dist/src/components/Tabs/Tabs.stories.jsx +29 -0
- package/dist/src/components/Tabs/tabs.jsx +32 -0
- package/dist/src/components/Title/Title.jsx +8 -0
- package/dist/src/components/Title/Title.stories.jsx +37 -0
- package/dist/src/components/Title/Title.test.jsx +24 -0
- package/dist/src/components/ToolTip/Tooltip.jsx +18 -0
- package/dist/src/components/ToolTip/Tooltip.stories.jsx +25 -0
- package/dist/src/components/Typography/Body/Body.stories.jsx +34 -0
- package/dist/src/components/Typography/Body/body.jsx +52 -0
- package/dist/src/components/Typography/Caption/Caption.stories.jsx +24 -0
- package/dist/src/components/Typography/Caption/caption.jsx +25 -0
- package/dist/src/components/Typography/Display/Display.stories.jsx +24 -0
- package/dist/src/components/Typography/Display/display.jsx +39 -0
- package/dist/src/components/Typography/Heading/Heading.stories.jsx +37 -0
- package/dist/src/components/Typography/Heading/heading.jsx +53 -0
- package/dist/src/components/ui/avatar.d.ts +3 -10
- package/dist/src/components/ui/avatar.js +12 -27
- package/dist/src/components/ui/avatar.jsx +27 -0
- package/dist/src/components/ui/button.d.ts +10 -0
- package/dist/src/components/ui/button.js +56 -0
- package/dist/src/components/ui/button.jsx +45 -0
- package/dist/src/components/ui/collapsible.d.ts +5 -0
- package/dist/src/components/ui/collapsible.js +5 -0
- package/dist/src/components/ui/collapsible.jsx +5 -0
- package/dist/src/components/ui/command.jsx +67 -0
- package/dist/src/components/ui/dialog.jsx +66 -0
- package/dist/src/components/ui/popover.jsx +33 -0
- package/dist/src/components/ui/tooltip.jsx +38 -0
- package/dist/src/components/ui/typography.jsx +56 -0
- package/dist/src/utils/colors.js +11 -11
- package/dist/src/utils/iconList.d.ts +4 -0
- package/dist/src/utils/iconList.js +4 -0
- package/dist/styles/global.css +209 -67
- package/package.json +1 -1
- package/dist/src/components/Avatar/Avatar/Avatar1.stories.d.ts +0 -17
- package/dist/src/components/Avatar/Avatar/Avatar1.stories.js +0 -68
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
14
|
+
import { cva } from "class-variance-authority";
|
|
15
|
+
import { cn } from "../../lib/utils";
|
|
16
|
+
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
20
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
21
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
22
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
23
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
24
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
28
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
29
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
30
|
+
icon: "size-9",
|
|
31
|
+
"icon-sm": "size-8",
|
|
32
|
+
"icon-lg": "size-10",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: "default",
|
|
37
|
+
size: "default",
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
function Button(_a) {
|
|
41
|
+
var className = _a.className, variant = _a.variant, size = _a.size, _b = _a.asChild, asChild = _b === void 0 ? false : _b, props = __rest(_a, ["className", "variant", "size", "asChild"]);
|
|
42
|
+
var Comp = asChild ? Slot : "button";
|
|
43
|
+
return (<Comp data-slot="button" className={cn(buttonVariants({ variant: variant, size: size, className: className }))} {...props}/>);
|
|
44
|
+
}
|
|
45
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
+
declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
3
|
+
var CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
4
|
+
var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
2
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
3
|
+
var CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
4
|
+
var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "../../components/ui/dialog";
|
|
16
|
+
import LUIcon from "../Icons/LUIcon";
|
|
17
|
+
import { comboboxSizes, searchIconSizeMap } from "../Dropdown/Combobox";
|
|
18
|
+
function Command(_a) {
|
|
19
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
20
|
+
return (<CommandPrimitive data-slot="command" className={cn("bg-white text-gray-900 !p-2 flex flex-col gap-2 overflow-hidden rounded-sm shadow-lg", className)} {...props}/>);
|
|
21
|
+
}
|
|
22
|
+
function CommandDialog(_a) {
|
|
23
|
+
var _b = _a.title, title = _b === void 0 ? "Command Palette" : _b, _c = _a.description, description = _c === void 0 ? "Search for a command to run..." : _c, children = _a.children, className = _a.className, _d = _a.showCloseButton, showCloseButton = _d === void 0 ? true : _d, props = __rest(_a, ["title", "description", "children", "className", "showCloseButton"]);
|
|
24
|
+
return (<Dialog {...props}>
|
|
25
|
+
<DialogHeader className="sr-only">
|
|
26
|
+
<DialogTitle>{title}</DialogTitle>
|
|
27
|
+
<DialogDescription>{description}</DialogDescription>
|
|
28
|
+
</DialogHeader>
|
|
29
|
+
<DialogContent className={cn("overflow-hidden p-0", className)} showCloseButton={showCloseButton}>
|
|
30
|
+
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[data-slot=command-input-wrapper]]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
|
|
31
|
+
{children}
|
|
32
|
+
</Command>
|
|
33
|
+
</DialogContent>
|
|
34
|
+
</Dialog>);
|
|
35
|
+
}
|
|
36
|
+
function CommandInput(_a) {
|
|
37
|
+
var className = _a.className, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "size"]);
|
|
38
|
+
return (<div data-slot="command-input-wrapper" className={cn("flex items-center gap-2 border border-gray-200 rounded-sm font-normal !leading-normal !px-4 !py-3 ".concat(comboboxSizes[size]), className)}>
|
|
39
|
+
<LUIcon icon="magnifying-glass" size={searchIconSizeMap[size]}/>
|
|
40
|
+
<CommandPrimitive.Input data-slot="command-input" className={cn("placeholder:text-gray-400 flex outline-hidden disabled:cursor-not-allowed disabled:opacity-50")} {...props}/>
|
|
41
|
+
</div>);
|
|
42
|
+
}
|
|
43
|
+
function CommandList(_a) {
|
|
44
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
45
|
+
return (<CommandPrimitive.List data-slot="command-list" className={cn("scroll-py-1 overflow-x-hidden overflow-y-auto scrollbar-width-none [&::-webkit-scrollbar]:hidden max-h-[200px] sm:max-h-[320px]", className)} {...props}/>);
|
|
46
|
+
}
|
|
47
|
+
function CommandEmpty(_a) {
|
|
48
|
+
var props = __rest(_a, []);
|
|
49
|
+
return (<CommandPrimitive.Empty data-slot="command-empty" className="py-6 text-center text-sm" {...props}/>);
|
|
50
|
+
}
|
|
51
|
+
function CommandGroup(_a) {
|
|
52
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
53
|
+
return (<CommandPrimitive.Group data-slot="command-group" className={cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className)} {...props}/>);
|
|
54
|
+
}
|
|
55
|
+
function CommandSeparator(_a) {
|
|
56
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
57
|
+
return (<CommandPrimitive.Separator data-slot="command-separator" className={cn("bg-border -mx-1 h-px", className)} {...props}/>);
|
|
58
|
+
}
|
|
59
|
+
function CommandItem(_a) {
|
|
60
|
+
var className = _a.className, _b = _a.size, size = _b === void 0 ? "md" : _b, props = __rest(_a, ["className", "size"]);
|
|
61
|
+
return (<CommandPrimitive.Item data-slot="command-item" className={cn("hover:bg-blue-50 hover:text-gray-900 relative flex cursor-default items-center gap-2 !px-4 !py-3 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 font-normal !leading-normal ".concat(comboboxSizes[size]), className)} {...props}/>);
|
|
62
|
+
}
|
|
63
|
+
function CommandShortcut(_a) {
|
|
64
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
65
|
+
return (<span data-slot="command-shortcut" className={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)} {...props}/>);
|
|
66
|
+
}
|
|
67
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
15
|
+
import { XIcon } from "lucide-react";
|
|
16
|
+
import { cn } from "../../lib/utils";
|
|
17
|
+
function Dialog(_a) {
|
|
18
|
+
var props = __rest(_a, []);
|
|
19
|
+
return <DialogPrimitive.Root data-slot="dialog" {...props}/>;
|
|
20
|
+
}
|
|
21
|
+
function DialogTrigger(_a) {
|
|
22
|
+
var props = __rest(_a, []);
|
|
23
|
+
return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props}/>;
|
|
24
|
+
}
|
|
25
|
+
function DialogPortal(_a) {
|
|
26
|
+
var props = __rest(_a, []);
|
|
27
|
+
return <DialogPrimitive.Portal data-slot="dialog-portal" {...props}/>;
|
|
28
|
+
}
|
|
29
|
+
function DialogClose(_a) {
|
|
30
|
+
var props = __rest(_a, []);
|
|
31
|
+
return <DialogPrimitive.Close data-slot="dialog-close" {...props}/>;
|
|
32
|
+
}
|
|
33
|
+
function DialogOverlay(_a) {
|
|
34
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
35
|
+
return (<DialogPrimitive.Overlay data-slot="dialog-overlay" className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className)} {...props}/>);
|
|
36
|
+
}
|
|
37
|
+
function DialogContent(_a) {
|
|
38
|
+
var className = _a.className, children = _a.children, _b = _a.showCloseButton, showCloseButton = _b === void 0 ? true : _b, props = __rest(_a, ["className", "children", "showCloseButton"]);
|
|
39
|
+
return (<DialogPortal data-slot="dialog-portal">
|
|
40
|
+
<DialogOverlay />
|
|
41
|
+
<DialogPrimitive.Content data-slot="dialog-content" className={cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200", className)} {...props}>
|
|
42
|
+
{children}
|
|
43
|
+
{showCloseButton && (<DialogPrimitive.Close data-slot="dialog-close" className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
|
|
44
|
+
<XIcon />
|
|
45
|
+
<span className="sr-only">Close</span>
|
|
46
|
+
</DialogPrimitive.Close>)}
|
|
47
|
+
</DialogPrimitive.Content>
|
|
48
|
+
</DialogPortal>);
|
|
49
|
+
}
|
|
50
|
+
function DialogHeader(_a) {
|
|
51
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
52
|
+
return (<div data-slot="dialog-header" className={cn("flex flex-col gap-2 text-center sm:text-left", className)} {...props}/>);
|
|
53
|
+
}
|
|
54
|
+
function DialogFooter(_a) {
|
|
55
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
56
|
+
return (<div data-slot="dialog-footer" className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)} {...props}/>);
|
|
57
|
+
}
|
|
58
|
+
function DialogTitle(_a) {
|
|
59
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
60
|
+
return (<DialogPrimitive.Title data-slot="dialog-title" className={cn("text-lg leading-none font-semibold", className)} {...props}/>);
|
|
61
|
+
}
|
|
62
|
+
function DialogDescription(_a) {
|
|
63
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
64
|
+
return (<DialogPrimitive.Description data-slot="dialog-description" className={cn("text-muted-foreground text-sm", className)} {...props}/>);
|
|
65
|
+
}
|
|
66
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
function Popover(_a) {
|
|
16
|
+
var props = __rest(_a, []);
|
|
17
|
+
return <PopoverPrimitive.Root data-slot="popover" {...props}/>;
|
|
18
|
+
}
|
|
19
|
+
function PopoverTrigger(_a) {
|
|
20
|
+
var props = __rest(_a, []);
|
|
21
|
+
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props}/>;
|
|
22
|
+
}
|
|
23
|
+
function PopoverContent(_a) {
|
|
24
|
+
var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
25
|
+
return (<PopoverPrimitive.Portal>
|
|
26
|
+
<PopoverPrimitive.Content data-slot="popover-content" align={align} sideOffset={sideOffset} className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 origin-(--radix-popover-content-transform-origin) outline-hidden", className)} {...props}/>
|
|
27
|
+
</PopoverPrimitive.Portal>);
|
|
28
|
+
}
|
|
29
|
+
function PopoverAnchor(_a) {
|
|
30
|
+
var props = __rest(_a, []);
|
|
31
|
+
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props}/>;
|
|
32
|
+
}
|
|
33
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
function TooltipProvider(_a) {
|
|
16
|
+
var _b = _a.delayDuration, delayDuration = _b === void 0 ? 0 : _b, props = __rest(_a, ["delayDuration"]);
|
|
17
|
+
return (<TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props}/>);
|
|
18
|
+
}
|
|
19
|
+
function Tooltip(_a) {
|
|
20
|
+
var props = __rest(_a, []);
|
|
21
|
+
return (<TooltipProvider>
|
|
22
|
+
<TooltipPrimitive.Root data-slot="tooltip" {...props}/>
|
|
23
|
+
</TooltipProvider>);
|
|
24
|
+
}
|
|
25
|
+
function TooltipTrigger(_a) {
|
|
26
|
+
var props = __rest(_a, []);
|
|
27
|
+
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props}/>;
|
|
28
|
+
}
|
|
29
|
+
function TooltipContent(_a) {
|
|
30
|
+
var className = _a.className, _b = _a.sideOffset, sideOffset = _b === void 0 ? 0 : _b, children = _a.children, props = __rest(_a, ["className", "sideOffset", "children"]);
|
|
31
|
+
return (<TooltipPrimitive.Portal>
|
|
32
|
+
<TooltipPrimitive.Content data-slot="tooltip-content" sideOffset={sideOffset} className={cn("!bg-primary !text-primary-foreground animate-in fade-in-0 !zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 !w-fit origin-(--radix-tooltip-content-transform-origin) !rounded-md !px-3 !py-1.5 !text-xs !text-balance", className)} {...props}>
|
|
33
|
+
{children}
|
|
34
|
+
<TooltipPrimitive.Arrow className="!bg-primary !fill-primary z-50 !size-3 translate-y-[calc(-50%_-_2px)] rotate-45 !rounded-[2px]"/>
|
|
35
|
+
</TooltipPrimitive.Content>
|
|
36
|
+
</TooltipPrimitive.Portal>);
|
|
37
|
+
}
|
|
38
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { cva } from "class-variance-authority";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
export var variant = {
|
|
16
|
+
h1: "text-5xl font-bold",
|
|
17
|
+
h2: "text-4xl font-bold",
|
|
18
|
+
h3: "text-3xl font-bold",
|
|
19
|
+
h4: "text-2xl font-semibold",
|
|
20
|
+
h5: "text-xl font-semibold",
|
|
21
|
+
h6: "text-lg font-semibold",
|
|
22
|
+
d1: "text-9xl font-bold",
|
|
23
|
+
d2: "text-8xl font-bold",
|
|
24
|
+
d3: "text-7xl font-bold",
|
|
25
|
+
d4: "text-6xl font-bold",
|
|
26
|
+
b1: "text-xl font-normal m-0",
|
|
27
|
+
b2: "text-lg font-normal m-0",
|
|
28
|
+
b3: "text-base font-normal m-0",
|
|
29
|
+
b4: "text-sm font-medium m-0",
|
|
30
|
+
};
|
|
31
|
+
var typographyVariants = cva("!leading-normal", // Default base class
|
|
32
|
+
{
|
|
33
|
+
variants: {
|
|
34
|
+
variant: variant,
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "b3",
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
function Typography(_a) {
|
|
41
|
+
var className = _a.className, variant = _a.variant, children = _a.children, props = __rest(_a, ["className", "variant", "children"]);
|
|
42
|
+
var Tag = "span";
|
|
43
|
+
if (variant === null || variant === void 0 ? void 0 : variant.startsWith("h")) {
|
|
44
|
+
Tag = variant;
|
|
45
|
+
}
|
|
46
|
+
else if (variant === null || variant === void 0 ? void 0 : variant.startsWith("d")) {
|
|
47
|
+
Tag = "div";
|
|
48
|
+
}
|
|
49
|
+
else if (variant === null || variant === void 0 ? void 0 : variant.startsWith("b")) {
|
|
50
|
+
Tag = "p";
|
|
51
|
+
}
|
|
52
|
+
return (<Tag className={cn(typographyVariants({ variant: variant, className: className }))} {...props}>
|
|
53
|
+
{children}
|
|
54
|
+
</Tag>);
|
|
55
|
+
}
|
|
56
|
+
export { Typography, typographyVariants };
|
package/dist/src/utils/colors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var colors = {
|
|
2
2
|
white: "#fefefe",
|
|
3
|
-
black: "#
|
|
3
|
+
black: "#030404",
|
|
4
4
|
"blue-50": "#fbfcfe",
|
|
5
5
|
"blue-100": "#e2edf9",
|
|
6
6
|
"blue-200": "#b8d3ef",
|
|
@@ -13,16 +13,16 @@ export var colors = {
|
|
|
13
13
|
"blue-900": "#0c2036",
|
|
14
14
|
"blue-950": "#03080d",
|
|
15
15
|
"gray-50": "#fafafa",
|
|
16
|
-
"gray-100": "#
|
|
17
|
-
"gray-200": "#
|
|
18
|
-
"gray-300": "#
|
|
19
|
-
"gray-400": "#
|
|
20
|
-
"gray-500": "#
|
|
21
|
-
"gray-600": "#
|
|
22
|
-
"gray-700": "#
|
|
23
|
-
"gray-800": "#
|
|
24
|
-
"gray-900": "#
|
|
25
|
-
"gray-950": "#
|
|
16
|
+
"gray-100": "#F4F5F6",
|
|
17
|
+
"gray-200": "#E7E8EA",
|
|
18
|
+
"gray-300": "#D2D4D6",
|
|
19
|
+
"gray-400": "#B9BBBD",
|
|
20
|
+
"gray-500": "#929699",
|
|
21
|
+
"gray-600": "#76787A",
|
|
22
|
+
"gray-700": "#56595C",
|
|
23
|
+
"gray-800": "#393B3D",
|
|
24
|
+
"gray-900": "#2B2C2E",
|
|
25
|
+
"gray-950": "#18191A",
|
|
26
26
|
"green-50": "#fcfdfc",
|
|
27
27
|
"green-100": "#ebf5f0",
|
|
28
28
|
"green-200": "#d1e7dd",
|
|
@@ -165,4 +165,8 @@ export var iconList = {
|
|
|
165
165
|
"align-center": "M24 4C24 2.89375 23.1063 2 22 2H10C8.89375 2 8 2.89375 8 4C8 5.10625 8.89375 6 10 6H22C23.1063 6 24 5.10625 24 4ZM30 12C30 10.8937 29.1063 10 28 10H4C2.89375 10 2 10.8937 2 12C2 13.1063 2.89375 14 4 14H28C29.1063 14 30 13.1063 30 12ZM2 28C2 29.1063 2.89375 30 4 30H28C29.1063 30 30 29.1063 30 28C30 26.8937 29.1063 26 28 26H4C2.89375 26 2 26.8937 2 28ZM24 20C24 18.8937 23.1063 18 22 18H10C8.89375 18 8 18.8937 8 20C8 21.1063 8.89375 22 10 22H22C23.1063 22 24 21.1063 24 20Z",
|
|
166
166
|
"align-left": "M20 4C20 5.10625 19.1063 6 18 6H4C2.89375 6 2 5.10625 2 4C2 2.89375 2.89375 2 4 2H18C19.1063 2 20 2.89375 20 4ZM20 20C20 21.1063 19.1063 22 18 22H4C2.89375 22 2 21.1063 2 20C2 18.8937 2.89375 18 4 18H18C19.1063 18 20 18.8937 20 20ZM2 12C2 10.8937 2.89375 10 4 10H28C29.1063 10 30 10.8937 30 12C30 13.1063 29.1063 14 28 14H4C2.89375 14 2 13.1063 2 12ZM30 28C30 29.1063 29.1063 30 28 30H4C2.89375 30 2 29.1063 2 28C2 26.8937 2.89375 26 4 26H28C29.1063 26 30 26.8937 30 28Z",
|
|
167
167
|
"align-right": "M30 4C30 5.10625 29.1063 6 28 6H14C12.8937 6 12 5.10625 12 4C12 2.89375 12.8937 2 14 2H28C29.1063 2 30 2.89375 30 4ZM30 20C30 21.1063 29.1063 22 28 22H14C12.8937 22 12 21.1063 12 20C12 18.8937 12.8937 18 14 18H28C29.1063 18 30 18.8937 30 20ZM2 12C2 10.8937 2.89375 10 4 10H28C29.1063 10 30 10.8937 30 12C30 13.1063 29.1063 14 28 14H4C2.89375 14 2 13.1063 2 12ZM30 28C30 29.1063 29.1063 30 28 30H4C2.89375 30 2 29.1063 2 28C2 26.8937 2.89375 26 4 26H28C29.1063 26 30 26.8937 30 28Z",
|
|
168
|
+
sort: "M4.15368 12.7659C4.46609 13.5159 5.19088 14.0033 6.00314 14.0033H25.9973C26.8034 14.0033 27.5344 13.5159 27.8468 12.7659C28.1592 12.016 27.9843 11.1598 27.4157 10.5849L17.4186 0.58588C16.6376 -0.195293 15.3692 -0.195293 14.5882 0.58588L4.59105 10.5849C4.01622 11.1598 3.84752 12.016 4.15993 12.7659H4.15368ZM4.15368 19.2341C3.84127 19.984 4.01622 20.8402 4.5848 21.4151L14.5819 31.4141C15.3629 32.1953 16.6313 32.1953 17.4123 31.4141L27.4094 21.4151C27.9843 20.8402 28.153 19.984 27.8406 19.2341C27.5282 18.4841 26.8034 18.0029 25.9973 18.0029H6.00314C5.19713 18.0029 4.46609 18.4904 4.15368 19.2403V19.2341Z",
|
|
169
|
+
"ellipsis-horizontal": "M0.000488281 16C0.000488281 13.7929 1.79335 12 4.00049 12C6.20763 12 8.00049 13.7929 8.00049 16C8.00049 18.2071 6.20763 20 4.00049 20C1.79335 20 0.000488281 18.2071 0.000488281 16ZM12.0005 16C12.0005 13.7929 13.7933 12 16.0005 12C18.2076 12 20.0005 13.7929 20.0005 16C20.0005 18.2071 18.2076 20 16.0005 20C13.7933 20 12.0005 18.2071 12.0005 16ZM28.0005 12C30.2076 12 32.0005 13.7929 32.0005 16C32.0005 18.2071 30.2076 20 28.0005 20C25.7933 20 24.0005 18.2071 24.0005 16C24.0005 13.7929 25.7933 12 28.0005 12Z",
|
|
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
|
+
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",
|
|
168
172
|
};
|