@a2v2ai/uikit 0.0.3 → 0.0.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.
Files changed (148) hide show
  1. package/Alert/Alert.d.ts +13 -0
  2. package/Alert/Alert.js +64 -0
  3. package/AlertDialog/AlertDialog.d.ts +43 -0
  4. package/AlertDialog/AlertDialog.js +121 -0
  5. package/Avatar/Avatar.d.ts +14 -0
  6. package/Avatar/Avatar.js +64 -0
  7. package/Badge/Badge.d.ts +11 -0
  8. package/Badge/Badge.js +26 -0
  9. package/Breadcrumb/Breadcrumb.d.ts +19 -0
  10. package/Breadcrumb/Breadcrumb.js +65 -0
  11. package/Button/Button.d.ts +20 -0
  12. package/Button/Button.js +75 -0
  13. package/Calendar/Calendar.d.ts +16 -0
  14. package/Calendar/Calendar.js +113 -0
  15. package/Card/Card.d.ts +16 -0
  16. package/Card/Card.js +70 -0
  17. package/ChatBubble/ChatBubble.d.ts +33 -0
  18. package/ChatBubble/ChatBubble.js +133 -0
  19. package/Checkbox/Checkbox.d.ts +12 -0
  20. package/Checkbox/Checkbox.js +57 -0
  21. package/Dialog/Dialog.d.ts +35 -0
  22. package/Dialog/Dialog.js +130 -0
  23. package/Drawer/Drawer.d.ts +33 -0
  24. package/Drawer/Drawer.js +69 -0
  25. package/DropdownMenu/DropdownMenu.d.ts +27 -0
  26. package/DropdownMenu/DropdownMenu.js +85 -0
  27. package/ErrorMessage/ErrorMessage.d.ts +27 -0
  28. package/ErrorMessage/ErrorMessage.js +15 -0
  29. package/Flex/Flex.d.ts +31 -0
  30. package/Flex/Flex.js +101 -0
  31. package/IconButton/IconButton.d.ts +23 -0
  32. package/IconButton/IconButton.js +85 -0
  33. package/Input/Input.d.ts +22 -0
  34. package/Input/Input.js +75 -0
  35. package/InputOTP/InputOTP.d.ts +20 -0
  36. package/InputOTP/InputOTP.js +85 -0
  37. package/Label/Label.d.ts +12 -0
  38. package/Label/Label.js +57 -0
  39. package/Loader/Loader.d.ts +21 -0
  40. package/Loader/Loader.js +67 -0
  41. package/Popover/Popover.d.ts +7 -0
  42. package/Popover/Popover.js +49 -0
  43. package/Progress/Progress.d.ts +17 -0
  44. package/Progress/Progress.js +71 -0
  45. package/RadioGroup/RadioGroup.d.ts +13 -0
  46. package/RadioGroup/RadioGroup.js +64 -0
  47. package/ScrollArea/ScrollArea.d.ts +5 -0
  48. package/ScrollArea/ScrollArea.js +48 -0
  49. package/Select/Select.d.ts +21 -0
  50. package/Select/Select.js +85 -0
  51. package/Separator/Separator.d.ts +4 -0
  52. package/Separator/Separator.js +43 -0
  53. package/Skeleton/Skeleton.d.ts +4 -0
  54. package/Skeleton/Skeleton.js +8 -0
  55. package/Spinner/Spinner.d.ts +19 -0
  56. package/Spinner/Spinner.js +68 -0
  57. package/Switch/Switch.d.ts +12 -0
  58. package/Switch/Switch.js +67 -0
  59. package/Tabs/Tabs.d.ts +15 -0
  60. package/Tabs/Tabs.js +64 -0
  61. package/Textarea/Textarea.d.ts +14 -0
  62. package/Textarea/Textarea.js +64 -0
  63. package/Toast/Toast.d.ts +12 -0
  64. package/Toast/Toast.js +29 -0
  65. package/Tooltip/Tooltip.d.ts +17 -0
  66. package/Tooltip/Tooltip.js +68 -0
  67. package/Typography/Typography.d.ts +19 -0
  68. package/Typography/Typography.js +131 -0
  69. package/helpers.d.ts +4 -0
  70. package/helpers.js +13 -0
  71. package/icons.d.ts +1 -0
  72. package/icons.js +18 -0
  73. package/index.css +21 -0
  74. package/index.d.ts +35 -0
  75. package/index.js +183 -0
  76. package/lib/utils.d.ts +3 -0
  77. package/lib/utils.js +18 -0
  78. package/package.json +1 -1
  79. package/Alert/Alert.stories.tsx +0 -121
  80. package/Alert/Alert.tsx +0 -71
  81. package/AlertDialog/AlertDialog.stories.tsx +0 -665
  82. package/AlertDialog/AlertDialog.tsx +0 -241
  83. package/Avatar/Avatar.stories.tsx +0 -128
  84. package/Avatar/Avatar.tsx +0 -71
  85. package/Badge/Badge.stories.tsx +0 -76
  86. package/Badge/Badge.tsx +0 -39
  87. package/Breadcrumb/Breadcrumb.stories.tsx +0 -231
  88. package/Breadcrumb/Breadcrumb.tsx +0 -114
  89. package/Button/Button.stories.tsx +0 -684
  90. package/Button/Button.tsx +0 -90
  91. package/Calendar/Calendar.stories.tsx +0 -207
  92. package/Calendar/Calendar.tsx +0 -232
  93. package/Card/Card.stories.tsx +0 -136
  94. package/Card/Card.tsx +0 -96
  95. package/ChatBubble/ChatBubble.stories.tsx +0 -307
  96. package/ChatBubble/ChatBubble.tsx +0 -167
  97. package/Checkbox/Checkbox.stories.tsx +0 -137
  98. package/Checkbox/Checkbox.tsx +0 -53
  99. package/Drawer/Drawer.stories.tsx +0 -721
  100. package/Drawer/Drawer.tsx +0 -201
  101. package/DropdownMenu/DropdownMenu.stories.tsx +0 -251
  102. package/DropdownMenu/DropdownMenu.tsx +0 -199
  103. package/ErrorMessage/ErrorMessage.stories.tsx +0 -159
  104. package/ErrorMessage/ErrorMessage.tsx +0 -55
  105. package/Flex/Flex.tsx +0 -102
  106. package/IconButton/IconButton.stories.tsx +0 -566
  107. package/IconButton/IconButton.tsx +0 -95
  108. package/Input/Input.stories.tsx +0 -456
  109. package/Input/Input.tsx +0 -129
  110. package/InputOTP/InputOTP.stories.tsx +0 -246
  111. package/InputOTP/InputOTP.tsx +0 -127
  112. package/Label/Label.stories.tsx +0 -105
  113. package/Label/Label.tsx +0 -43
  114. package/Loader/Loader.stories.tsx +0 -170
  115. package/Loader/Loader.tsx +0 -62
  116. package/Popover/Popover.stories.tsx +0 -133
  117. package/Popover/Popover.tsx +0 -31
  118. package/Progress/Progress.stories.tsx +0 -146
  119. package/Progress/Progress.tsx +0 -67
  120. package/RadioGroup/RadioGroup.stories.tsx +0 -159
  121. package/RadioGroup/RadioGroup.tsx +0 -68
  122. package/ScrollArea/ScrollArea.stories.tsx +0 -136
  123. package/ScrollArea/ScrollArea.tsx +0 -46
  124. package/Select/Select.stories.tsx +0 -242
  125. package/Select/Select.tsx +0 -180
  126. package/Separator/Separator.stories.tsx +0 -110
  127. package/Separator/Separator.tsx +0 -29
  128. package/Skeleton/Skeleton.stories.tsx +0 -117
  129. package/Skeleton/Skeleton.tsx +0 -16
  130. package/Spinner/Spinner.stories.tsx +0 -210
  131. package/Spinner/Spinner.tsx +0 -78
  132. package/Switch/Switch.stories.tsx +0 -146
  133. package/Switch/Switch.tsx +0 -59
  134. package/Tabs/Tabs.stories.tsx +0 -197
  135. package/Tabs/Tabs.tsx +0 -74
  136. package/Textarea/Textarea.stories.tsx +0 -170
  137. package/Textarea/Textarea.tsx +0 -51
  138. package/Toast/Toast.stories.tsx +0 -285
  139. package/Toast/Toast.tsx +0 -59
  140. package/Tooltip/Tooltip.stories.tsx +0 -463
  141. package/Tooltip/Tooltip.tsx +0 -96
  142. package/Typography/Typography.stories.tsx +0 -235
  143. package/Typography/Typography.tsx +0 -171
  144. package/helpers.ts +0 -5
  145. package/icons.ts +0 -2
  146. package/index.ts +0 -136
  147. package/lib/utils.ts +0 -15
  148. package/tsconfig.json +0 -24
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typographyVariants = void 0;
4
+ exports.Typography = Typography;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_slot_1 = require("@radix-ui/react-slot");
7
+ const class_variance_authority_1 = require("class-variance-authority");
8
+ const utils_1 = require("../lib/utils");
9
+ const typographyVariants = (0, class_variance_authority_1.cva)("", {
10
+ variants: {
11
+ align: {
12
+ left: "text-left",
13
+ center: "text-center",
14
+ right: "text-right",
15
+ justify: "text-justify",
16
+ },
17
+ variant: {
18
+ h1: "font-extrabold text-[64px] leading-none tracking-normal font-sans",
19
+ h2: "font-bold text-[48px] leading-none tracking-normal font-sans",
20
+ h3: "font-bold text-[32px] leading-none tracking-normal font-sans",
21
+ h4: "font-bold text-[24px] leading-[1.2] tracking-[-0.48px] font-sans",
22
+ h5: "font-bold text-[20px] leading-none tracking-normal font-sans",
23
+ h6: "font-semibold text-[20px] leading-none tracking-normal font-sans",
24
+ subtitle1: "font-semibold text-[20px] leading-none tracking-normal font-sans",
25
+ subtitle2: "font-semibold text-[18px] leading-none tracking-normal font-sans",
26
+ body1: "font-normal text-[16px] leading-none tracking-normal font-sans",
27
+ body2: "font-normal text-[14px] leading-none tracking-normal font-sans",
28
+ body3: "font-normal text-[12px] leading-none tracking-normal font-sans",
29
+ caption: "font-light text-[12px] leading-none tracking-normal font-sans",
30
+ },
31
+ color: {
32
+ default: "text-foreground",
33
+ // Main colors
34
+ "main-50": "text-main-50",
35
+ "main-100": "text-main-100",
36
+ "main-200": "text-main-200",
37
+ "main-300": "text-main-300",
38
+ "main-400": "text-main-400",
39
+ "main-500": "text-main-500",
40
+ "main-600": "text-main-600",
41
+ "main-700": "text-main-700",
42
+ "main-800": "text-main-800",
43
+ "main-900": "text-main-900",
44
+ "main-950": "text-main-950",
45
+ // Success colors
46
+ "success-50": "text-success-50",
47
+ "success-100": "text-success-100",
48
+ "success-200": "text-success-200",
49
+ "success-300": "text-success-300",
50
+ "success-400": "text-success-400",
51
+ "success-500": "text-success-500",
52
+ "success-600": "text-success-600",
53
+ "success-700": "text-success-700",
54
+ "success-800": "text-success-800",
55
+ "success-900": "text-success-900",
56
+ "success-950": "text-success-950",
57
+ // Accent colors
58
+ "accent-50": "text-accent-50",
59
+ "accent-100": "text-accent-100",
60
+ "accent-200": "text-accent-200",
61
+ "accent-300": "text-accent-300",
62
+ "accent-400": "text-accent-400",
63
+ "accent-500": "text-accent-500",
64
+ "accent-600": "text-accent-600",
65
+ "accent-700": "text-accent-700",
66
+ "accent-800": "text-accent-800",
67
+ "accent-900": "text-accent-900",
68
+ "accent-950": "text-accent-950",
69
+ // Error colors
70
+ "error-50": "text-error-50",
71
+ "error-100": "text-error-100",
72
+ "error-200": "text-error-200",
73
+ "error-300": "text-error-300",
74
+ "error-400": "text-error-400",
75
+ "error-500": "text-error-500",
76
+ "error-600": "text-error-600",
77
+ "error-700": "text-error-700",
78
+ "error-800": "text-error-800",
79
+ "error-900": "text-error-900",
80
+ "error-950": "text-error-950",
81
+ // Warning colors
82
+ "warning-50": "text-warning-50",
83
+ "warning-100": "text-warning-100",
84
+ "warning-200": "text-warning-200",
85
+ "warning-300": "text-warning-300",
86
+ "warning-400": "text-warning-400",
87
+ "warning-500": "text-warning-500",
88
+ "warning-600": "text-warning-600",
89
+ "warning-700": "text-warning-700",
90
+ "warning-800": "text-warning-800",
91
+ "warning-900": "text-warning-900",
92
+ "warning-950": "text-warning-950",
93
+ // Grey colors
94
+ "grey-50": "text-grey-50",
95
+ "grey-100": "text-grey-100",
96
+ "grey-200": "text-grey-200",
97
+ "grey-300": "text-grey-300",
98
+ "grey-400": "text-grey-400",
99
+ "grey-500": "text-grey-500",
100
+ "grey-600": "text-grey-600",
101
+ "grey-700": "text-grey-700",
102
+ "grey-800": "text-grey-800",
103
+ "grey-900": "text-grey-900",
104
+ "grey-950": "text-grey-950",
105
+ },
106
+ },
107
+ defaultVariants: {
108
+ variant: "body1",
109
+ color: "default",
110
+ },
111
+ });
112
+ exports.typographyVariants = typographyVariants;
113
+ const variantElementMap = {
114
+ h1: "h1",
115
+ h2: "h2",
116
+ h3: "h3",
117
+ h4: "h4",
118
+ h5: "h5",
119
+ h6: "h6",
120
+ subtitle1: "p",
121
+ subtitle2: "p",
122
+ body1: "p",
123
+ body2: "p",
124
+ body3: "p",
125
+ caption: "span",
126
+ };
127
+ function Typography({ className, variant = "body1", color = "default", align, as, asChild = false, ...props }) {
128
+ const defaultElement = variant ? variantElementMap[variant] : "p";
129
+ const Component = asChild ? react_slot_1.Slot : (as ?? defaultElement);
130
+ return ((0, jsx_runtime_1.jsx)(Component, { "data-slot": "typography", className: (0, utils_1.cn)(typographyVariants({ variant, color, align, className })), ...props }));
131
+ }
package/helpers.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { cn, copyToClipboard } from "./lib/utils";
2
+ export { clsx, type ClassValue } from "clsx";
3
+ export { twMerge } from "tailwind-merge";
4
+ export { cva, type VariantProps } from "class-variance-authority";
package/helpers.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cva = exports.twMerge = exports.clsx = exports.copyToClipboard = exports.cn = void 0;
4
+ // Helpers (re-exported utilities)
5
+ var utils_1 = require("./lib/utils");
6
+ Object.defineProperty(exports, "cn", { enumerable: true, get: function () { return utils_1.cn; } });
7
+ Object.defineProperty(exports, "copyToClipboard", { enumerable: true, get: function () { return utils_1.copyToClipboard; } });
8
+ var clsx_1 = require("clsx");
9
+ Object.defineProperty(exports, "clsx", { enumerable: true, get: function () { return clsx_1.clsx; } });
10
+ var tailwind_merge_1 = require("tailwind-merge");
11
+ Object.defineProperty(exports, "twMerge", { enumerable: true, get: function () { return tailwind_merge_1.twMerge; } });
12
+ var class_variance_authority_1 = require("class-variance-authority");
13
+ Object.defineProperty(exports, "cva", { enumerable: true, get: function () { return class_variance_authority_1.cva; } });
package/icons.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "lucide-react";
package/icons.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Re-export all icons from lucide-react
18
+ __exportStar(require("lucide-react"), exports);
package/index.css CHANGED
@@ -85,6 +85,20 @@
85
85
  --color-error-900: #7f1d1d;
86
86
  --color-error-950: #450a0a;
87
87
 
88
+ /* Accent colors */
89
+ --color-accent-50: #EFF6FF;
90
+ --color-accent-100: #DBEAFE;
91
+ --color-accent-200: #BFDBFE;
92
+ --color-accent-300: #93C5FD;
93
+ --color-accent-400: #60A5FA;
94
+ --color-accent-500: #3B82F6;
95
+ --color-accent-600: #2563EB;
96
+ --color-accent-700: #1D4ED8;
97
+ --color-accent-800: #1E40AF;
98
+ --color-accent-900: #1E3A8A;
99
+ --color-accent-950: #172554;
100
+
101
+
88
102
  /* Info colors */
89
103
  --color-info-50: #f0f9ff;
90
104
  --color-info-100: #e0f2fe;
@@ -98,6 +112,13 @@
98
112
  --color-info-900: #0c4a6e;
99
113
  --color-info-950: #082f49;
100
114
 
115
+ /* Neutral colors */
116
+ --color-background-neutral-0: #ffffff;
117
+ --color-background-neutral-50: #ededed;
118
+ --color-background-neutral-100: #f2f2f2;
119
+ --color-background-neutral-200: #f9f9f9;
120
+ --color-background-neutral-300: #fcfcfc;
121
+
101
122
  /* Border radius */
102
123
  --radius-sm: 0.25rem;
103
124
  --radius-md: 0.375rem;
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import "./index.css";
2
+ export { Alert, AlertTitle, AlertDescription, alertVariants, type AlertProps, type AlertVariant } from "./Alert/Alert";
3
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants, type AvatarProps, type AvatarSize } from "./Avatar/Avatar";
4
+ export { Badge, badgeVariants, type BadgeProps, type BadgeVariant } from "./Badge/Badge";
5
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from "./Breadcrumb/Breadcrumb";
6
+ export { Button, buttonVariants, type ButtonProps, type ButtonVariant, type ButtonSize, type ButtonRoundness } from "./Button/Button";
7
+ export { Calendar, CalendarDayButton, type CalendarProps } from "./Calendar/Calendar";
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants, type CardProps, type CardVariant } from "./Card/Card";
9
+ export { ChatBubble, chatBubbleVariants, bubbleContentVariants, type ChatBubbleProps, type ChatBubbleSide, type ChatBubbleColor, type ChatBubbleTheme, type ChatBubbleSize } from "./ChatBubble/ChatBubble";
10
+ export { Checkbox, checkboxVariants, type CheckboxProps, type CheckboxSize } from "./Checkbox/Checkbox";
11
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogBody, AlertDialogAction, AlertDialogCancel, alertDialogContentVariants, alertDialogHeaderVariants, alertDialogFooterVariants, type AlertDialogContentProps, type AlertDialogHeaderProps, type AlertDialogFooterProps, type AlertDialogContentType, type AlertDialogHeaderType, type AlertDialogFooterType, type AlertDialogCloseButtonVariant, } from "./AlertDialog/AlertDialog";
12
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, drawerContentVariants, drawerOverlayVariants, type DrawerProps, type DrawerContentProps, type DrawerDirection, } from "./Drawer/Drawer";
13
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from "./DropdownMenu/DropdownMenu";
14
+ export { ErrorMessage, type ErrorMessageProps } from "./ErrorMessage/ErrorMessage";
15
+ export { Flex, flexVariants, type FlexProps, type FlexDirection, type FlexAlign, type FlexJustify, type FlexWrap, type FlexGap } from "./Flex/Flex";
16
+ export { IconButton, iconButtonVariants, type IconButtonProps, type IconButtonVariant, type IconButtonSize, type IconButtonRoundness } from "./IconButton/IconButton";
17
+ export { Input, inputVariants, type InputProps, type InputSize, type InputRoundness, type InputVariant } from "./Input/Input";
18
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, inputOTPVariants, inputOTPSlotVariants, type InputOTPProps, type InputOTPSlotProps, type InputOTPSlotSize, } from "./InputOTP/InputOTP";
19
+ export { Label, labelVariants, type LabelProps, type LabelVariant } from "./Label/Label";
20
+ export { Loader, loaderVariants, type LoaderProps, type LoaderSize, type LoaderColor } from "./Loader/Loader";
21
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from "./Popover/Popover";
22
+ export { Progress, progressVariants, progressIndicatorVariants, type ProgressProps, type ProgressSize, type ProgressVariant } from "./Progress/Progress";
23
+ export { RadioGroup, RadioGroupItem, radioGroupItemVariants, type RadioGroupItemProps, type RadioGroupItemSize } from "./RadioGroup/RadioGroup";
24
+ export { ScrollArea, ScrollBar } from "./ScrollArea/ScrollArea";
25
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, selectTriggerVariants, type SelectTriggerProps, type SelectTriggerSize, } from "./Select/Select";
26
+ export { Separator } from "./Separator/Separator";
27
+ export { Skeleton, type SkeletonProps } from "./Skeleton/Skeleton";
28
+ export { Spinner, spinnerVariants, type SpinnerProps, type SpinnerSize, type SpinnerVariant } from "./Spinner/Spinner";
29
+ export { Switch, switchVariants, type SwitchProps, type SwitchSize } from "./Switch/Switch";
30
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, type TabsListProps, type TabsListVariant } from "./Tabs/Tabs";
31
+ export { Textarea, textareaVariants, type TextareaProps, type TextareaVariant, type TextareaResize } from "./Textarea/Textarea";
32
+ export { Toaster, toast, type ToastProps, type ToastTheme } from "./Toast/Toast";
33
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipContentVariants, type TooltipContentProps, type TooltipContentVariant, } from "./Tooltip/Tooltip";
34
+ export { Typography, typographyVariants, type TypographyVariant, type TypographyColor } from "./Typography/Typography";
35
+ export { cn, copyToClipboard } from "./lib/utils";
package/index.js ADDED
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DrawerPortal = exports.Drawer = exports.alertDialogFooterVariants = exports.alertDialogHeaderVariants = exports.alertDialogContentVariants = exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogBody = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogTrigger = exports.AlertDialogOverlay = exports.AlertDialogPortal = exports.AlertDialog = exports.checkboxVariants = exports.Checkbox = exports.bubbleContentVariants = exports.chatBubbleVariants = exports.ChatBubble = exports.cardVariants = exports.CardContent = exports.CardDescription = exports.CardTitle = exports.CardFooter = exports.CardHeader = exports.Card = exports.CalendarDayButton = exports.Calendar = exports.buttonVariants = exports.Button = exports.BreadcrumbEllipsis = exports.BreadcrumbSeparator = exports.BreadcrumbPage = exports.BreadcrumbLink = exports.BreadcrumbItem = exports.BreadcrumbList = exports.Breadcrumb = exports.badgeVariants = exports.Badge = exports.avatarVariants = exports.AvatarFallback = exports.AvatarImage = exports.Avatar = exports.alertVariants = exports.AlertDescription = exports.AlertTitle = exports.Alert = void 0;
4
+ exports.progressIndicatorVariants = exports.progressVariants = exports.Progress = exports.PopoverAnchor = exports.PopoverContent = exports.PopoverTrigger = exports.Popover = exports.loaderVariants = exports.Loader = exports.labelVariants = exports.Label = exports.inputOTPSlotVariants = exports.inputOTPVariants = exports.InputOTPSeparator = exports.InputOTPSlot = exports.InputOTPGroup = exports.InputOTP = exports.inputVariants = exports.Input = exports.iconButtonVariants = exports.IconButton = exports.flexVariants = exports.Flex = exports.ErrorMessage = exports.DropdownMenuRadioGroup = exports.DropdownMenuSubTrigger = exports.DropdownMenuSubContent = exports.DropdownMenuSub = exports.DropdownMenuPortal = exports.DropdownMenuGroup = exports.DropdownMenuShortcut = exports.DropdownMenuSeparator = exports.DropdownMenuLabel = exports.DropdownMenuRadioItem = exports.DropdownMenuCheckboxItem = exports.DropdownMenuItem = exports.DropdownMenuContent = exports.DropdownMenuTrigger = exports.DropdownMenu = exports.drawerOverlayVariants = exports.drawerContentVariants = exports.DrawerDescription = exports.DrawerTitle = exports.DrawerBody = exports.DrawerFooter = exports.DrawerHeader = exports.DrawerContent = exports.DrawerClose = exports.DrawerTrigger = exports.DrawerOverlay = void 0;
5
+ exports.copyToClipboard = exports.cn = exports.typographyVariants = exports.Typography = exports.tooltipContentVariants = exports.TooltipProvider = exports.TooltipContent = exports.TooltipTrigger = exports.Tooltip = exports.toast = exports.Toaster = exports.textareaVariants = exports.Textarea = exports.tabsListVariants = exports.TabsContent = exports.TabsTrigger = exports.TabsList = exports.Tabs = exports.switchVariants = exports.Switch = exports.spinnerVariants = exports.Spinner = exports.Skeleton = exports.Separator = exports.selectTriggerVariants = exports.SelectScrollDownButton = exports.SelectScrollUpButton = exports.SelectSeparator = exports.SelectItem = exports.SelectLabel = exports.SelectContent = exports.SelectTrigger = exports.SelectValue = exports.SelectGroup = exports.Select = exports.ScrollBar = exports.ScrollArea = exports.radioGroupItemVariants = exports.RadioGroupItem = exports.RadioGroup = void 0;
6
+ // Styles
7
+ require("./index.css");
8
+ // Components
9
+ var Alert_1 = require("./Alert/Alert");
10
+ Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return Alert_1.Alert; } });
11
+ Object.defineProperty(exports, "AlertTitle", { enumerable: true, get: function () { return Alert_1.AlertTitle; } });
12
+ Object.defineProperty(exports, "AlertDescription", { enumerable: true, get: function () { return Alert_1.AlertDescription; } });
13
+ Object.defineProperty(exports, "alertVariants", { enumerable: true, get: function () { return Alert_1.alertVariants; } });
14
+ var Avatar_1 = require("./Avatar/Avatar");
15
+ Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_1.Avatar; } });
16
+ Object.defineProperty(exports, "AvatarImage", { enumerable: true, get: function () { return Avatar_1.AvatarImage; } });
17
+ Object.defineProperty(exports, "AvatarFallback", { enumerable: true, get: function () { return Avatar_1.AvatarFallback; } });
18
+ Object.defineProperty(exports, "avatarVariants", { enumerable: true, get: function () { return Avatar_1.avatarVariants; } });
19
+ var Badge_1 = require("./Badge/Badge");
20
+ Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return Badge_1.Badge; } });
21
+ Object.defineProperty(exports, "badgeVariants", { enumerable: true, get: function () { return Badge_1.badgeVariants; } });
22
+ var Breadcrumb_1 = require("./Breadcrumb/Breadcrumb");
23
+ Object.defineProperty(exports, "Breadcrumb", { enumerable: true, get: function () { return Breadcrumb_1.Breadcrumb; } });
24
+ Object.defineProperty(exports, "BreadcrumbList", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbList; } });
25
+ Object.defineProperty(exports, "BreadcrumbItem", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbItem; } });
26
+ Object.defineProperty(exports, "BreadcrumbLink", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbLink; } });
27
+ Object.defineProperty(exports, "BreadcrumbPage", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbPage; } });
28
+ Object.defineProperty(exports, "BreadcrumbSeparator", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbSeparator; } });
29
+ Object.defineProperty(exports, "BreadcrumbEllipsis", { enumerable: true, get: function () { return Breadcrumb_1.BreadcrumbEllipsis; } });
30
+ var Button_1 = require("./Button/Button");
31
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
32
+ Object.defineProperty(exports, "buttonVariants", { enumerable: true, get: function () { return Button_1.buttonVariants; } });
33
+ var Calendar_1 = require("./Calendar/Calendar");
34
+ Object.defineProperty(exports, "Calendar", { enumerable: true, get: function () { return Calendar_1.Calendar; } });
35
+ Object.defineProperty(exports, "CalendarDayButton", { enumerable: true, get: function () { return Calendar_1.CalendarDayButton; } });
36
+ var Card_1 = require("./Card/Card");
37
+ Object.defineProperty(exports, "Card", { enumerable: true, get: function () { return Card_1.Card; } });
38
+ Object.defineProperty(exports, "CardHeader", { enumerable: true, get: function () { return Card_1.CardHeader; } });
39
+ Object.defineProperty(exports, "CardFooter", { enumerable: true, get: function () { return Card_1.CardFooter; } });
40
+ Object.defineProperty(exports, "CardTitle", { enumerable: true, get: function () { return Card_1.CardTitle; } });
41
+ Object.defineProperty(exports, "CardDescription", { enumerable: true, get: function () { return Card_1.CardDescription; } });
42
+ Object.defineProperty(exports, "CardContent", { enumerable: true, get: function () { return Card_1.CardContent; } });
43
+ Object.defineProperty(exports, "cardVariants", { enumerable: true, get: function () { return Card_1.cardVariants; } });
44
+ var ChatBubble_1 = require("./ChatBubble/ChatBubble");
45
+ Object.defineProperty(exports, "ChatBubble", { enumerable: true, get: function () { return ChatBubble_1.ChatBubble; } });
46
+ Object.defineProperty(exports, "chatBubbleVariants", { enumerable: true, get: function () { return ChatBubble_1.chatBubbleVariants; } });
47
+ Object.defineProperty(exports, "bubbleContentVariants", { enumerable: true, get: function () { return ChatBubble_1.bubbleContentVariants; } });
48
+ var Checkbox_1 = require("./Checkbox/Checkbox");
49
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
50
+ Object.defineProperty(exports, "checkboxVariants", { enumerable: true, get: function () { return Checkbox_1.checkboxVariants; } });
51
+ var AlertDialog_1 = require("./AlertDialog/AlertDialog");
52
+ Object.defineProperty(exports, "AlertDialog", { enumerable: true, get: function () { return AlertDialog_1.AlertDialog; } });
53
+ Object.defineProperty(exports, "AlertDialogPortal", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogPortal; } });
54
+ Object.defineProperty(exports, "AlertDialogOverlay", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogOverlay; } });
55
+ Object.defineProperty(exports, "AlertDialogTrigger", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogTrigger; } });
56
+ Object.defineProperty(exports, "AlertDialogContent", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogContent; } });
57
+ Object.defineProperty(exports, "AlertDialogHeader", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogHeader; } });
58
+ Object.defineProperty(exports, "AlertDialogFooter", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogFooter; } });
59
+ Object.defineProperty(exports, "AlertDialogTitle", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogTitle; } });
60
+ Object.defineProperty(exports, "AlertDialogDescription", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogDescription; } });
61
+ Object.defineProperty(exports, "AlertDialogBody", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogBody; } });
62
+ Object.defineProperty(exports, "AlertDialogAction", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogAction; } });
63
+ Object.defineProperty(exports, "AlertDialogCancel", { enumerable: true, get: function () { return AlertDialog_1.AlertDialogCancel; } });
64
+ Object.defineProperty(exports, "alertDialogContentVariants", { enumerable: true, get: function () { return AlertDialog_1.alertDialogContentVariants; } });
65
+ Object.defineProperty(exports, "alertDialogHeaderVariants", { enumerable: true, get: function () { return AlertDialog_1.alertDialogHeaderVariants; } });
66
+ Object.defineProperty(exports, "alertDialogFooterVariants", { enumerable: true, get: function () { return AlertDialog_1.alertDialogFooterVariants; } });
67
+ var Drawer_1 = require("./Drawer/Drawer");
68
+ Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return Drawer_1.Drawer; } });
69
+ Object.defineProperty(exports, "DrawerPortal", { enumerable: true, get: function () { return Drawer_1.DrawerPortal; } });
70
+ Object.defineProperty(exports, "DrawerOverlay", { enumerable: true, get: function () { return Drawer_1.DrawerOverlay; } });
71
+ Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return Drawer_1.DrawerTrigger; } });
72
+ Object.defineProperty(exports, "DrawerClose", { enumerable: true, get: function () { return Drawer_1.DrawerClose; } });
73
+ Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return Drawer_1.DrawerContent; } });
74
+ Object.defineProperty(exports, "DrawerHeader", { enumerable: true, get: function () { return Drawer_1.DrawerHeader; } });
75
+ Object.defineProperty(exports, "DrawerFooter", { enumerable: true, get: function () { return Drawer_1.DrawerFooter; } });
76
+ Object.defineProperty(exports, "DrawerBody", { enumerable: true, get: function () { return Drawer_1.DrawerBody; } });
77
+ Object.defineProperty(exports, "DrawerTitle", { enumerable: true, get: function () { return Drawer_1.DrawerTitle; } });
78
+ Object.defineProperty(exports, "DrawerDescription", { enumerable: true, get: function () { return Drawer_1.DrawerDescription; } });
79
+ Object.defineProperty(exports, "drawerContentVariants", { enumerable: true, get: function () { return Drawer_1.drawerContentVariants; } });
80
+ Object.defineProperty(exports, "drawerOverlayVariants", { enumerable: true, get: function () { return Drawer_1.drawerOverlayVariants; } });
81
+ var DropdownMenu_1 = require("./DropdownMenu/DropdownMenu");
82
+ Object.defineProperty(exports, "DropdownMenu", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenu; } });
83
+ Object.defineProperty(exports, "DropdownMenuTrigger", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuTrigger; } });
84
+ Object.defineProperty(exports, "DropdownMenuContent", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuContent; } });
85
+ Object.defineProperty(exports, "DropdownMenuItem", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuItem; } });
86
+ Object.defineProperty(exports, "DropdownMenuCheckboxItem", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuCheckboxItem; } });
87
+ Object.defineProperty(exports, "DropdownMenuRadioItem", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuRadioItem; } });
88
+ Object.defineProperty(exports, "DropdownMenuLabel", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuLabel; } });
89
+ Object.defineProperty(exports, "DropdownMenuSeparator", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuSeparator; } });
90
+ Object.defineProperty(exports, "DropdownMenuShortcut", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuShortcut; } });
91
+ Object.defineProperty(exports, "DropdownMenuGroup", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuGroup; } });
92
+ Object.defineProperty(exports, "DropdownMenuPortal", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuPortal; } });
93
+ Object.defineProperty(exports, "DropdownMenuSub", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuSub; } });
94
+ Object.defineProperty(exports, "DropdownMenuSubContent", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuSubContent; } });
95
+ Object.defineProperty(exports, "DropdownMenuSubTrigger", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuSubTrigger; } });
96
+ Object.defineProperty(exports, "DropdownMenuRadioGroup", { enumerable: true, get: function () { return DropdownMenu_1.DropdownMenuRadioGroup; } });
97
+ var ErrorMessage_1 = require("./ErrorMessage/ErrorMessage");
98
+ Object.defineProperty(exports, "ErrorMessage", { enumerable: true, get: function () { return ErrorMessage_1.ErrorMessage; } });
99
+ var Flex_1 = require("./Flex/Flex");
100
+ Object.defineProperty(exports, "Flex", { enumerable: true, get: function () { return Flex_1.Flex; } });
101
+ Object.defineProperty(exports, "flexVariants", { enumerable: true, get: function () { return Flex_1.flexVariants; } });
102
+ var IconButton_1 = require("./IconButton/IconButton");
103
+ Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return IconButton_1.IconButton; } });
104
+ Object.defineProperty(exports, "iconButtonVariants", { enumerable: true, get: function () { return IconButton_1.iconButtonVariants; } });
105
+ var Input_1 = require("./Input/Input");
106
+ Object.defineProperty(exports, "Input", { enumerable: true, get: function () { return Input_1.Input; } });
107
+ Object.defineProperty(exports, "inputVariants", { enumerable: true, get: function () { return Input_1.inputVariants; } });
108
+ var InputOTP_1 = require("./InputOTP/InputOTP");
109
+ Object.defineProperty(exports, "InputOTP", { enumerable: true, get: function () { return InputOTP_1.InputOTP; } });
110
+ Object.defineProperty(exports, "InputOTPGroup", { enumerable: true, get: function () { return InputOTP_1.InputOTPGroup; } });
111
+ Object.defineProperty(exports, "InputOTPSlot", { enumerable: true, get: function () { return InputOTP_1.InputOTPSlot; } });
112
+ Object.defineProperty(exports, "InputOTPSeparator", { enumerable: true, get: function () { return InputOTP_1.InputOTPSeparator; } });
113
+ Object.defineProperty(exports, "inputOTPVariants", { enumerable: true, get: function () { return InputOTP_1.inputOTPVariants; } });
114
+ Object.defineProperty(exports, "inputOTPSlotVariants", { enumerable: true, get: function () { return InputOTP_1.inputOTPSlotVariants; } });
115
+ var Label_1 = require("./Label/Label");
116
+ Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return Label_1.Label; } });
117
+ Object.defineProperty(exports, "labelVariants", { enumerable: true, get: function () { return Label_1.labelVariants; } });
118
+ var Loader_1 = require("./Loader/Loader");
119
+ Object.defineProperty(exports, "Loader", { enumerable: true, get: function () { return Loader_1.Loader; } });
120
+ Object.defineProperty(exports, "loaderVariants", { enumerable: true, get: function () { return Loader_1.loaderVariants; } });
121
+ var Popover_1 = require("./Popover/Popover");
122
+ Object.defineProperty(exports, "Popover", { enumerable: true, get: function () { return Popover_1.Popover; } });
123
+ Object.defineProperty(exports, "PopoverTrigger", { enumerable: true, get: function () { return Popover_1.PopoverTrigger; } });
124
+ Object.defineProperty(exports, "PopoverContent", { enumerable: true, get: function () { return Popover_1.PopoverContent; } });
125
+ Object.defineProperty(exports, "PopoverAnchor", { enumerable: true, get: function () { return Popover_1.PopoverAnchor; } });
126
+ var Progress_1 = require("./Progress/Progress");
127
+ Object.defineProperty(exports, "Progress", { enumerable: true, get: function () { return Progress_1.Progress; } });
128
+ Object.defineProperty(exports, "progressVariants", { enumerable: true, get: function () { return Progress_1.progressVariants; } });
129
+ Object.defineProperty(exports, "progressIndicatorVariants", { enumerable: true, get: function () { return Progress_1.progressIndicatorVariants; } });
130
+ var RadioGroup_1 = require("./RadioGroup/RadioGroup");
131
+ Object.defineProperty(exports, "RadioGroup", { enumerable: true, get: function () { return RadioGroup_1.RadioGroup; } });
132
+ Object.defineProperty(exports, "RadioGroupItem", { enumerable: true, get: function () { return RadioGroup_1.RadioGroupItem; } });
133
+ Object.defineProperty(exports, "radioGroupItemVariants", { enumerable: true, get: function () { return RadioGroup_1.radioGroupItemVariants; } });
134
+ var ScrollArea_1 = require("./ScrollArea/ScrollArea");
135
+ Object.defineProperty(exports, "ScrollArea", { enumerable: true, get: function () { return ScrollArea_1.ScrollArea; } });
136
+ Object.defineProperty(exports, "ScrollBar", { enumerable: true, get: function () { return ScrollArea_1.ScrollBar; } });
137
+ var Select_1 = require("./Select/Select");
138
+ Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
139
+ Object.defineProperty(exports, "SelectGroup", { enumerable: true, get: function () { return Select_1.SelectGroup; } });
140
+ Object.defineProperty(exports, "SelectValue", { enumerable: true, get: function () { return Select_1.SelectValue; } });
141
+ Object.defineProperty(exports, "SelectTrigger", { enumerable: true, get: function () { return Select_1.SelectTrigger; } });
142
+ Object.defineProperty(exports, "SelectContent", { enumerable: true, get: function () { return Select_1.SelectContent; } });
143
+ Object.defineProperty(exports, "SelectLabel", { enumerable: true, get: function () { return Select_1.SelectLabel; } });
144
+ Object.defineProperty(exports, "SelectItem", { enumerable: true, get: function () { return Select_1.SelectItem; } });
145
+ Object.defineProperty(exports, "SelectSeparator", { enumerable: true, get: function () { return Select_1.SelectSeparator; } });
146
+ Object.defineProperty(exports, "SelectScrollUpButton", { enumerable: true, get: function () { return Select_1.SelectScrollUpButton; } });
147
+ Object.defineProperty(exports, "SelectScrollDownButton", { enumerable: true, get: function () { return Select_1.SelectScrollDownButton; } });
148
+ Object.defineProperty(exports, "selectTriggerVariants", { enumerable: true, get: function () { return Select_1.selectTriggerVariants; } });
149
+ var Separator_1 = require("./Separator/Separator");
150
+ Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return Separator_1.Separator; } });
151
+ var Skeleton_1 = require("./Skeleton/Skeleton");
152
+ Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return Skeleton_1.Skeleton; } });
153
+ var Spinner_1 = require("./Spinner/Spinner");
154
+ Object.defineProperty(exports, "Spinner", { enumerable: true, get: function () { return Spinner_1.Spinner; } });
155
+ Object.defineProperty(exports, "spinnerVariants", { enumerable: true, get: function () { return Spinner_1.spinnerVariants; } });
156
+ var Switch_1 = require("./Switch/Switch");
157
+ Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.Switch; } });
158
+ Object.defineProperty(exports, "switchVariants", { enumerable: true, get: function () { return Switch_1.switchVariants; } });
159
+ var Tabs_1 = require("./Tabs/Tabs");
160
+ Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_1.Tabs; } });
161
+ Object.defineProperty(exports, "TabsList", { enumerable: true, get: function () { return Tabs_1.TabsList; } });
162
+ Object.defineProperty(exports, "TabsTrigger", { enumerable: true, get: function () { return Tabs_1.TabsTrigger; } });
163
+ Object.defineProperty(exports, "TabsContent", { enumerable: true, get: function () { return Tabs_1.TabsContent; } });
164
+ Object.defineProperty(exports, "tabsListVariants", { enumerable: true, get: function () { return Tabs_1.tabsListVariants; } });
165
+ var Textarea_1 = require("./Textarea/Textarea");
166
+ Object.defineProperty(exports, "Textarea", { enumerable: true, get: function () { return Textarea_1.Textarea; } });
167
+ Object.defineProperty(exports, "textareaVariants", { enumerable: true, get: function () { return Textarea_1.textareaVariants; } });
168
+ var Toast_1 = require("./Toast/Toast");
169
+ Object.defineProperty(exports, "Toaster", { enumerable: true, get: function () { return Toast_1.Toaster; } });
170
+ Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return Toast_1.toast; } });
171
+ var Tooltip_1 = require("./Tooltip/Tooltip");
172
+ Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
173
+ Object.defineProperty(exports, "TooltipTrigger", { enumerable: true, get: function () { return Tooltip_1.TooltipTrigger; } });
174
+ Object.defineProperty(exports, "TooltipContent", { enumerable: true, get: function () { return Tooltip_1.TooltipContent; } });
175
+ Object.defineProperty(exports, "TooltipProvider", { enumerable: true, get: function () { return Tooltip_1.TooltipProvider; } });
176
+ Object.defineProperty(exports, "tooltipContentVariants", { enumerable: true, get: function () { return Tooltip_1.tooltipContentVariants; } });
177
+ var Typography_1 = require("./Typography/Typography");
178
+ Object.defineProperty(exports, "Typography", { enumerable: true, get: function () { return Typography_1.Typography; } });
179
+ Object.defineProperty(exports, "typographyVariants", { enumerable: true, get: function () { return Typography_1.typographyVariants; } });
180
+ // Utilities
181
+ var utils_1 = require("./lib/utils");
182
+ Object.defineProperty(exports, "cn", { enumerable: true, get: function () { return utils_1.cn; } });
183
+ Object.defineProperty(exports, "copyToClipboard", { enumerable: true, get: function () { return utils_1.copyToClipboard; } });
package/lib/utils.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ export declare function copyToClipboard(text: string): Promise<boolean>;
package/lib/utils.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cn = cn;
4
+ exports.copyToClipboard = copyToClipboard;
5
+ const clsx_1 = require("clsx");
6
+ const tailwind_merge_1 = require("tailwind-merge");
7
+ function cn(...inputs) {
8
+ return (0, tailwind_merge_1.twMerge)((0, clsx_1.clsx)(inputs));
9
+ }
10
+ async function copyToClipboard(text) {
11
+ try {
12
+ await navigator.clipboard.writeText(text);
13
+ return true;
14
+ }
15
+ catch {
16
+ return false;
17
+ }
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2v2ai/uikit",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "author": "Arulraj V & abofficial1997@gmail.com",
5
5
  "description": "A React UI component library built with shadcn/ui and Tailwind CSS",
6
6
  "license": "MIT",
@@ -1,121 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react"
2
- import { AlertCircle, CheckCircle2, Info as InfoIcon, AlertTriangle } from "../icons"
3
-
4
- import { Flex } from "../Flex/Flex"
5
- import { Typography } from "../Typography/Typography"
6
- import { Alert, AlertTitle, AlertDescription } from "./Alert"
7
-
8
- const meta: Meta<typeof Alert> = {
9
- title: "Components/Alert",
10
- component: Alert,
11
- parameters: {
12
- layout: "centered",
13
- },
14
- argTypes: {
15
- variant: {
16
- control: "select",
17
- options: ["default", "destructive", "success", "warning", "info"],
18
- description: "The visual variant of the alert",
19
- },
20
- },
21
- tags: ["autodocs"],
22
- }
23
-
24
- export default meta
25
- type Story = StoryObj<typeof meta>
26
-
27
- export const Default: Story = {
28
- render: () => (
29
- <Alert className="w-[400px]">
30
- <AlertTitle>Heads up!</AlertTitle>
31
- <AlertDescription>
32
- You can add components to your app using the cli.
33
- </AlertDescription>
34
- </Alert>
35
- ),
36
- }
37
-
38
- export const Destructive: Story = {
39
- render: () => (
40
- <Alert variant="destructive" className="w-[400px]">
41
- <AlertCircle className="size-4" />
42
- <AlertTitle>Error</AlertTitle>
43
- <AlertDescription>
44
- Your session has expired. Please log in again.
45
- </AlertDescription>
46
- </Alert>
47
- ),
48
- }
49
-
50
- export const Success: Story = {
51
- render: () => (
52
- <Alert variant="success" className="w-[400px]">
53
- <CheckCircle2 className="size-4" />
54
- <AlertTitle>Success</AlertTitle>
55
- <AlertDescription>
56
- Your changes have been saved successfully.
57
- </AlertDescription>
58
- </Alert>
59
- ),
60
- }
61
-
62
- export const Warning: Story = {
63
- render: () => (
64
- <Alert variant="warning" className="w-[400px]">
65
- <AlertTriangle className="size-4" />
66
- <AlertTitle>Warning</AlertTitle>
67
- <AlertDescription>
68
- Your account is about to expire. Please renew your subscription.
69
- </AlertDescription>
70
- </Alert>
71
- ),
72
- }
73
-
74
- export const InfoAlert: Story = {
75
- render: () => (
76
- <Alert variant="info" className="w-[400px]">
77
- <InfoIcon className="size-4" />
78
- <AlertTitle>Information</AlertTitle>
79
- <AlertDescription>
80
- A new version is available. Update now for new features.
81
- </AlertDescription>
82
- </Alert>
83
- ),
84
- }
85
-
86
- export const AllVariants: Story = {
87
- render: () => (
88
- <Flex direction="column" gap={4} className="w-[400px]">
89
- <Typography variant="h4" className="text-white">Alert Variants</Typography>
90
-
91
- <Alert>
92
- <AlertTitle>Default</AlertTitle>
93
- <AlertDescription>This is a default alert message.</AlertDescription>
94
- </Alert>
95
-
96
- <Alert variant="destructive">
97
- <AlertCircle className="size-4" />
98
- <AlertTitle>Destructive</AlertTitle>
99
- <AlertDescription>This is a destructive alert message.</AlertDescription>
100
- </Alert>
101
-
102
- <Alert variant="success">
103
- <CheckCircle2 className="size-4" />
104
- <AlertTitle>Success</AlertTitle>
105
- <AlertDescription>This is a success alert message.</AlertDescription>
106
- </Alert>
107
-
108
- <Alert variant="warning">
109
- <AlertTriangle className="size-4" />
110
- <AlertTitle>Warning</AlertTitle>
111
- <AlertDescription>This is a warning alert message.</AlertDescription>
112
- </Alert>
113
-
114
- <Alert variant="info">
115
- <InfoIcon className="size-4" />
116
- <AlertTitle>Info</AlertTitle>
117
- <AlertDescription>This is an info alert message.</AlertDescription>
118
- </Alert>
119
- </Flex>
120
- ),
121
- }