@a2v2ai/uikit 0.0.38 → 0.0.39

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 (183) hide show
  1. package/Alert/Alert.d.ts +13 -0
  2. package/Alert/Alert.js +25 -0
  3. package/AlertDialog/AlertDialog.d.ts +43 -0
  4. package/AlertDialog/AlertDialog.js +71 -0
  5. package/Avatar/Avatar.d.ts +14 -0
  6. package/Avatar/Avatar.js +25 -0
  7. package/Badge/Badge.d.ts +11 -0
  8. package/Badge/Badge.js +23 -0
  9. package/Breadcrumb/Breadcrumb.d.ts +19 -0
  10. package/Breadcrumb/Breadcrumb.js +23 -0
  11. package/Button/Button.d.ts +23 -0
  12. package/Button/Button.js +52 -0
  13. package/Calendar/Calendar.d.ts +20 -0
  14. package/Calendar/Calendar.js +78 -0
  15. package/Card/Card.d.ts +16 -0
  16. package/Card/Card.js +28 -0
  17. package/Carousel/Carousel.d.ts +37 -0
  18. package/Carousel/Carousel.js +132 -0
  19. package/ChatBubble/ChatBubble.d.ts +33 -0
  20. package/ChatBubble/ChatBubble.js +107 -0
  21. package/Checkbox/Checkbox.d.ts +12 -0
  22. package/Checkbox/Checkbox.js +20 -0
  23. package/DataTable/DataTable.d.ts +35 -0
  24. package/DataTable/DataTable.js +51 -0
  25. package/Drawer/Drawer.d.ts +33 -0
  26. package/Drawer/Drawer.js +55 -0
  27. package/DropdownMenu/DropdownMenu.d.ts +27 -0
  28. package/DropdownMenu/DropdownMenu.js +35 -0
  29. package/ErrorMessage/ErrorMessage.d.ts +27 -0
  30. package/ErrorMessage/ErrorMessage.js +14 -0
  31. package/Flex/Flex.d.ts +31 -0
  32. package/Flex/Flex.js +64 -0
  33. package/IconButton/IconButton.d.ts +23 -0
  34. package/IconButton/IconButton.js +48 -0
  35. package/Input/Input.d.ts +27 -0
  36. package/Input/Input.js +42 -0
  37. package/InputOTP/InputOTP.d.ts +20 -0
  38. package/InputOTP/InputOTP.js +44 -0
  39. package/Label/Label.d.ts +13 -0
  40. package/Label/Label.js +19 -0
  41. package/Loader/Loader.d.ts +21 -0
  42. package/Loader/Loader.js +30 -0
  43. package/Menubar/Menubar.d.ts +26 -0
  44. package/Menubar/Menubar.js +54 -0
  45. package/Menubar/index.d.ts +1 -0
  46. package/Menubar/index.js +1 -0
  47. package/Pagination/Pagination.d.ts +35 -0
  48. package/Pagination/Pagination.js +37 -0
  49. package/Popover/Popover.d.ts +7 -0
  50. package/Popover/Popover.js +10 -0
  51. package/Progress/Progress.d.ts +17 -0
  52. package/Progress/Progress.js +33 -0
  53. package/RadioGroup/RadioGroup.d.ts +13 -0
  54. package/RadioGroup/RadioGroup.js +26 -0
  55. package/ScrollArea/ScrollArea.d.ts +5 -0
  56. package/ScrollArea/ScrollArea.js +11 -0
  57. package/Select/Select.d.ts +29 -0
  58. package/Select/Select.js +50 -0
  59. package/Separator/Separator.d.ts +4 -0
  60. package/Separator/Separator.js +7 -0
  61. package/Sidebar/Sidebar.d.ts +48 -0
  62. package/Sidebar/Sidebar.js +116 -0
  63. package/Sidebar/index.d.ts +2 -0
  64. package/Sidebar/index.js +1 -0
  65. package/Skeleton/Skeleton.d.ts +4 -0
  66. package/Skeleton/Skeleton.js +7 -0
  67. package/Slider/Slider.d.ts +6 -0
  68. package/Slider/Slider.js +7 -0
  69. package/Spinner/Spinner.d.ts +19 -0
  70. package/Spinner/Spinner.js +31 -0
  71. package/Switch/Switch.d.ts +12 -0
  72. package/Switch/Switch.js +30 -0
  73. package/Table/Table.d.ts +10 -0
  74. package/Table/Table.js +20 -0
  75. package/Tabs/Tabs.d.ts +15 -0
  76. package/Tabs/Tabs.js +24 -0
  77. package/Textarea/Textarea.d.ts +19 -0
  78. package/Textarea/Textarea.js +31 -0
  79. package/Toast/Toast.d.ts +12 -0
  80. package/Toast/Toast.js +25 -0
  81. package/Tooltip/Tooltip.d.ts +17 -0
  82. package/Tooltip/Tooltip.js +29 -0
  83. package/Typography/Typography.d.ts +20 -0
  84. package/Typography/Typography.js +71 -0
  85. package/helpers.d.ts +4 -0
  86. package/helpers.js +5 -0
  87. package/icons.d.ts +1 -0
  88. package/{icons.ts → icons.js} +1 -1
  89. package/index.css +68 -0
  90. package/index.d.ts +42 -0
  91. package/index.js +45 -0
  92. package/lib/typography-types.d.ts +4 -0
  93. package/lib/typography-types.js +118 -0
  94. package/lib/utils.d.ts +3 -0
  95. package/lib/utils.js +14 -0
  96. package/package.json +1 -1
  97. package/Alert/Alert.stories.tsx +0 -121
  98. package/Alert/Alert.tsx +0 -71
  99. package/AlertDialog/AlertDialog.stories.tsx +0 -665
  100. package/AlertDialog/AlertDialog.tsx +0 -241
  101. package/Avatar/Avatar.stories.tsx +0 -128
  102. package/Avatar/Avatar.tsx +0 -71
  103. package/Badge/Badge.stories.tsx +0 -76
  104. package/Badge/Badge.tsx +0 -39
  105. package/Breadcrumb/Breadcrumb.stories.tsx +0 -231
  106. package/Breadcrumb/Breadcrumb.tsx +0 -114
  107. package/Button/Button.stories.tsx +0 -684
  108. package/Button/Button.tsx +0 -107
  109. package/Calendar/Calendar.stories.tsx +0 -291
  110. package/Calendar/Calendar.tsx +0 -246
  111. package/Card/Card.stories.tsx +0 -136
  112. package/Card/Card.tsx +0 -96
  113. package/Carousel/Carousel.stories.tsx +0 -256
  114. package/Carousel/Carousel.tsx +0 -301
  115. package/ChatBubble/ChatBubble.stories.tsx +0 -339
  116. package/ChatBubble/ChatBubble.tsx +0 -179
  117. package/Checkbox/Checkbox.stories.tsx +0 -137
  118. package/Checkbox/Checkbox.tsx +0 -53
  119. package/DataTable/DataTable.stories.tsx +0 -400
  120. package/DataTable/DataTable.tsx +0 -207
  121. package/Drawer/Drawer.stories.tsx +0 -721
  122. package/Drawer/Drawer.tsx +0 -201
  123. package/DropdownMenu/DropdownMenu.stories.tsx +0 -251
  124. package/DropdownMenu/DropdownMenu.tsx +0 -199
  125. package/ErrorMessage/ErrorMessage.stories.tsx +0 -159
  126. package/ErrorMessage/ErrorMessage.tsx +0 -55
  127. package/Flex/Flex.stories.tsx +0 -390
  128. package/Flex/Flex.tsx +0 -102
  129. package/IconButton/IconButton.stories.tsx +0 -566
  130. package/IconButton/IconButton.tsx +0 -95
  131. package/Input/Input.stories.tsx +0 -566
  132. package/Input/Input.tsx +0 -168
  133. package/InputOTP/InputOTP.stories.tsx +0 -246
  134. package/InputOTP/InputOTP.tsx +0 -127
  135. package/Label/Label.stories.tsx +0 -110
  136. package/Label/Label.tsx +0 -44
  137. package/Loader/Loader.stories.tsx +0 -170
  138. package/Loader/Loader.tsx +0 -62
  139. package/Menubar/Menubar.stories.tsx +0 -382
  140. package/Menubar/Menubar.tsx +0 -274
  141. package/Menubar/index.ts +0 -18
  142. package/Pagination/Pagination.stories.tsx +0 -196
  143. package/Pagination/Pagination.tsx +0 -122
  144. package/Popover/Popover.stories.tsx +0 -133
  145. package/Popover/Popover.tsx +0 -31
  146. package/Progress/Progress.stories.tsx +0 -146
  147. package/Progress/Progress.tsx +0 -67
  148. package/RadioGroup/RadioGroup.stories.tsx +0 -159
  149. package/RadioGroup/RadioGroup.tsx +0 -68
  150. package/ScrollArea/ScrollArea.stories.tsx +0 -136
  151. package/ScrollArea/ScrollArea.tsx +0 -46
  152. package/Select/Select.stories.tsx +0 -378
  153. package/Select/Select.tsx +0 -230
  154. package/Separator/Separator.stories.tsx +0 -110
  155. package/Separator/Separator.tsx +0 -29
  156. package/Sidebar/Sidebar.stories.tsx +0 -340
  157. package/Sidebar/Sidebar.tsx +0 -414
  158. package/Sidebar/index.ts +0 -28
  159. package/Skeleton/Skeleton.stories.tsx +0 -117
  160. package/Skeleton/Skeleton.tsx +0 -16
  161. package/Slider/Slider.stories.tsx +0 -216
  162. package/Slider/Slider.tsx +0 -29
  163. package/Spinner/Spinner.stories.tsx +0 -210
  164. package/Spinner/Spinner.tsx +0 -78
  165. package/Switch/Switch.stories.tsx +0 -146
  166. package/Switch/Switch.tsx +0 -59
  167. package/Table/Table.stories.tsx +0 -510
  168. package/Table/Table.tsx +0 -114
  169. package/Tabs/Tabs.stories.tsx +0 -197
  170. package/Tabs/Tabs.tsx +0 -74
  171. package/Textarea/Textarea.stories.tsx +0 -187
  172. package/Textarea/Textarea.tsx +0 -73
  173. package/Toast/Toast.stories.tsx +0 -285
  174. package/Toast/Toast.tsx +0 -59
  175. package/Tooltip/Tooltip.stories.tsx +0 -463
  176. package/Tooltip/Tooltip.tsx +0 -96
  177. package/Typography/Typography.stories.tsx +0 -425
  178. package/Typography/Typography.tsx +0 -106
  179. package/helpers.ts +0 -5
  180. package/index.ts +0 -217
  181. package/lib/typography-types.ts +0 -223
  182. package/lib/utils.ts +0 -15
  183. package/tsconfig.json +0 -22
package/Toast/Toast.js ADDED
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, } from "lucide-react";
4
+ import { Toaster as Sonner, toast } from "sonner";
5
+ const Toaster = ({ theme = "light", ...props }) => {
6
+ return (_jsx(Sonner, { theme: theme, className: "toaster group", icons: {
7
+ success: _jsx(CircleCheckIcon, { className: "size-4" }),
8
+ info: _jsx(InfoIcon, { className: "size-4" }),
9
+ warning: _jsx(TriangleAlertIcon, { className: "size-4" }),
10
+ error: _jsx(OctagonXIcon, { className: "size-4" }),
11
+ loading: _jsx(Loader2Icon, { className: "size-4 animate-spin" }),
12
+ }, toastOptions: {
13
+ classNames: {
14
+ toast: "group toast group-[.toaster]:bg-white group-[.toaster]:text-main-950 group-[.toaster]:border-grey-200 group-[.toaster]:shadow-lg group-[.toaster]:rounded-lg",
15
+ description: "group-[.toast]:text-main-500",
16
+ actionButton: "group-[.toast]:bg-main-900 group-[.toast]:text-white",
17
+ cancelButton: "group-[.toast]:bg-grey-100 group-[.toast]:text-main-500",
18
+ success: "group-[.toaster]:border-success-200 group-[.toaster]:bg-success-50 group-[.toaster]:text-success-900 [&_svg]:text-success-600",
19
+ error: "group-[.toaster]:border-error-200 group-[.toaster]:bg-error-50 group-[.toaster]:text-error-900 [&_svg]:text-error-600",
20
+ warning: "group-[.toaster]:border-warning-200 group-[.toaster]:bg-warning-50 group-[.toaster]:text-warning-900 [&_svg]:text-warning-600",
21
+ info: "group-[.toaster]:border-accent-200 group-[.toaster]:bg-accent-50 group-[.toaster]:text-accent-900 [&_svg]:text-accent-600",
22
+ },
23
+ }, ...props }));
24
+ };
25
+ export { Toaster, toast };
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ type TooltipContentVariant = "default" | "light";
4
+ declare const tooltipContentVariants: (props?: ({
5
+ variant?: "default" | "light" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function TooltipProvider({ delayDuration, skipDelayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
8
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
9
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ export type TooltipContentProps = React.ComponentProps<typeof TooltipPrimitive.Content> & {
11
+ variant?: TooltipContentVariant;
12
+ /** Whether to show the arrow */
13
+ showArrow?: boolean;
14
+ };
15
+ declare function TooltipContent({ className, sideOffset, variant, showArrow, children, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
16
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipContentVariants, };
17
+ export type { TooltipContentVariant };
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../lib/utils";
6
+ const tooltipContentVariants = cva("z-50 overflow-hidden rounded-lg bg-neutral-950 px-2 py-1.5 text-xs text-neutral-50 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", {
7
+ variants: {
8
+ variant: {
9
+ default: "bg-neutral-950 text-neutral-50",
10
+ light: "bg-white text-neutral-900 border border-neutral-200 shadow-md",
11
+ },
12
+ },
13
+ defaultVariants: {
14
+ variant: "default",
15
+ },
16
+ });
17
+ function TooltipProvider({ delayDuration = 200, skipDelayDuration = 300, ...props }) {
18
+ return (_jsx(TooltipPrimitive.Provider, { delayDuration: delayDuration, skipDelayDuration: skipDelayDuration, ...props }));
19
+ }
20
+ function Tooltip({ ...props }) {
21
+ return _jsx(TooltipPrimitive.Root, { ...props });
22
+ }
23
+ function TooltipTrigger({ ...props }) {
24
+ return _jsx(TooltipPrimitive.Trigger, { ...props });
25
+ }
26
+ function TooltipContent({ className, sideOffset = 4, variant, showArrow = true, children, ...props }) {
27
+ return (_jsx(TooltipPrimitive.Portal, { children: _jsxs(TooltipPrimitive.Content, { sideOffset: sideOffset, className: cn(tooltipContentVariants({ variant }), className), ...props, children: [children, showArrow && (_jsx(TooltipPrimitive.Arrow, { className: cn("fill-neutral-950", variant === "light" && "fill-white"), width: 11, height: 5 }))] }) }));
28
+ }
29
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipContentVariants, };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { type TextVariant, type TextColor } from "../lib/typography-types";
3
+ declare const typographyVariants: (props?: ({
4
+ align?: "center" | "left" | "right" | "justify" | null | undefined;
5
+ variant?: TextVariant | null | undefined;
6
+ color?: TextColor | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type TypographyVariant = TextVariant;
9
+ type TypographyColor = TextColor;
10
+ type TypographyAlign = "left" | "center" | "right" | "justify";
11
+ type TypographyProps<T extends React.ElementType = "p"> = {
12
+ as?: T;
13
+ asChild?: boolean;
14
+ variant?: TypographyVariant;
15
+ color?: TypographyColor;
16
+ align?: TypographyAlign;
17
+ } & Omit<React.ComponentPropsWithoutRef<T>, "as" | "asChild" | "color" | "variant" | "align">;
18
+ declare function Typography<T extends React.ElementType = "p">({ className, variant, color, align, as, asChild, ...props }: TypographyProps<T>): import("react/jsx-runtime").JSX.Element;
19
+ export { Typography, typographyVariants };
20
+ export type { TypographyVariant, TypographyColor, TypographyAlign };
@@ -0,0 +1,71 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../lib/utils";
6
+ import { textVariantClasses, textColorClasses, } from "../lib/typography-types";
7
+ const typographyVariants = cva("", {
8
+ variants: {
9
+ align: {
10
+ left: "text-left",
11
+ center: "text-center",
12
+ right: "text-right",
13
+ justify: "text-justify",
14
+ },
15
+ variant: textVariantClasses,
16
+ color: textColorClasses,
17
+ },
18
+ defaultVariants: {
19
+ variant: "body1",
20
+ color: "default",
21
+ },
22
+ });
23
+ const variantElementMap = {
24
+ h1: "h1",
25
+ h2: "h2",
26
+ h3: "h3",
27
+ h4: "h4",
28
+ h5: "h5",
29
+ h6: "h6",
30
+ subtitle1: "p",
31
+ subtitle2: "p",
32
+ subtitle3: "p",
33
+ body1: "p",
34
+ body2: "p",
35
+ body3: "p",
36
+ caption: "span",
37
+ subtitle1Medium: "p",
38
+ subtitle1Bold: "p",
39
+ subtitle1SemiBold: "p",
40
+ subtitle2Medium: "p",
41
+ subtitle2Bold: "p",
42
+ subtitle2SemiBold: "p",
43
+ subtitle3Medium: "p",
44
+ subtitle3Bold: "p",
45
+ subtitle3SemiBold: "p",
46
+ body1Medium: "p",
47
+ body1Bold: "p",
48
+ body1SemiBold: "p",
49
+ body2Medium: "p",
50
+ body2Bold: "p",
51
+ body2SemiBold: "p",
52
+ body3Medium: "p",
53
+ body3Bold: "p",
54
+ body3SemiBold: "p",
55
+ captionMedium: "span",
56
+ captionBold: "span",
57
+ captionSemiBold: "span",
58
+ subtitle1Light: "p",
59
+ subtitle2Light: "p",
60
+ subtitle3Light: "p",
61
+ body1Light: "p",
62
+ body2Light: "p",
63
+ body3Light: "p",
64
+ captionLight: "span",
65
+ };
66
+ function Typography({ className, variant = "body1", color = "default", align, as, asChild = false, ...props }) {
67
+ const defaultElement = variant ? variantElementMap[variant] : "p";
68
+ const Component = asChild ? Slot : as ?? defaultElement;
69
+ return (_jsx(Component, { "data-slot": "typography", className: cn(typographyVariants({ variant, color, align, className })), ...props }));
70
+ }
71
+ export { Typography, typographyVariants };
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,5 @@
1
+ // Helpers (re-exported utilities)
2
+ export { cn, copyToClipboard } from "./lib/utils";
3
+ export { clsx } from "clsx";
4
+ export { twMerge } from "tailwind-merge";
5
+ export { cva } from "class-variance-authority";
package/icons.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "lucide-react";
@@ -1,2 +1,2 @@
1
1
  // Re-export all icons from lucide-react
2
- export * from "lucide-react"
2
+ export * from "lucide-react";
package/index.css CHANGED
@@ -120,6 +120,7 @@
120
120
  --font-size-h6: 20px;
121
121
  --font-size-subtitle1: 20px;
122
122
  --font-size-subtitle2: 18px;
123
+ --font-size-subtitle3: 16px;
123
124
  --font-size-body1: 16px;
124
125
  --font-size-body2: 14px;
125
126
  --font-size-body3: 12px;
@@ -134,10 +135,77 @@
134
135
  --font-weight-h6: 600;
135
136
  --font-weight-subtitle1: 600;
136
137
  --font-weight-subtitle2: 600;
138
+ --font-weight-subtitle3: 600;
137
139
  --font-weight-body1: 400;
138
140
  --font-weight-body2: 400;
139
141
  --font-weight-body3: 400;
140
142
  --font-weight-caption: 300;
143
+
144
+ /* Weight variant tokens */
145
+ --font-weight-light: 300;
146
+ --font-weight-medium: 500;
147
+ --font-weight-semibold: 600;
148
+ --font-weight-bold: 700;
149
+ }
150
+
151
+ /* Typography utility classes */
152
+ @layer components {
153
+ /* Headings */
154
+ .text-h1 { @apply font-extrabold text-[64px] leading-none tracking-normal font-sans; }
155
+ .text-h2 { @apply font-bold text-[48px] leading-none tracking-normal font-sans; }
156
+ .text-h3 { @apply font-bold text-[32px] leading-none tracking-normal font-sans; }
157
+ .text-h4 { @apply font-bold text-[24px] leading-[1.2] tracking-[-0.48px] font-sans; }
158
+ .text-h5 { @apply font-bold text-[20px] leading-none tracking-normal font-sans; }
159
+ .text-h6 { @apply font-semibold text-[20px] leading-none tracking-normal font-sans; }
160
+
161
+ /* Subtitle 1 */
162
+ .text-subtitle1 { @apply font-semibold text-[20px] leading-none tracking-normal font-sans; }
163
+ .text-subtitle1-light { @apply font-light text-[20px] leading-none tracking-normal font-sans; }
164
+ .text-subtitle1-medium { @apply font-medium text-[20px] leading-none tracking-normal font-sans; }
165
+ .text-subtitle1-semibold { @apply font-semibold text-[20px] leading-none tracking-normal font-sans; }
166
+ .text-subtitle1-bold { @apply font-bold text-[20px] leading-none tracking-normal font-sans; }
167
+
168
+ /* Subtitle 2 */
169
+ .text-subtitle2 { @apply font-semibold text-[18px] leading-none tracking-normal font-sans; }
170
+ .text-subtitle2-light { @apply font-light text-[18px] leading-none tracking-normal font-sans; }
171
+ .text-subtitle2-medium { @apply font-medium text-[18px] leading-none tracking-normal font-sans; }
172
+ .text-subtitle2-semibold { @apply font-semibold text-[18px] leading-none tracking-normal font-sans; }
173
+ .text-subtitle2-bold { @apply font-bold text-[18px] leading-none tracking-normal font-sans; }
174
+
175
+ /* Subtitle 3 */
176
+ .text-subtitle3 { @apply font-semibold text-[16px] leading-none tracking-normal font-sans; }
177
+ .text-subtitle3-light { @apply font-light text-[16px] leading-none tracking-normal font-sans; }
178
+ .text-subtitle3-medium { @apply font-medium text-[16px] leading-none tracking-normal font-sans; }
179
+ .text-subtitle3-semibold { @apply font-semibold text-[16px] leading-none tracking-normal font-sans; }
180
+ .text-subtitle3-bold { @apply font-bold text-[16px] leading-none tracking-normal font-sans; }
181
+
182
+ /* Body 1 */
183
+ .text-body1 { @apply font-normal text-[16px] leading-none tracking-normal font-sans; }
184
+ .text-body1-light { @apply font-light text-[16px] leading-none tracking-normal font-sans; }
185
+ .text-body1-medium { @apply font-medium text-[16px] leading-none tracking-normal font-sans; }
186
+ .text-body1-semibold { @apply font-semibold text-[16px] leading-none tracking-normal font-sans; }
187
+ .text-body1-bold { @apply font-bold text-[16px] leading-none tracking-normal font-sans; }
188
+
189
+ /* Body 2 */
190
+ .text-body2 { @apply font-normal text-[14px] leading-none tracking-normal font-sans; }
191
+ .text-body2-light { @apply font-light text-[14px] leading-none tracking-normal font-sans; }
192
+ .text-body2-medium { @apply font-medium text-[14px] leading-none tracking-normal font-sans; }
193
+ .text-body2-semibold { @apply font-semibold text-[14px] leading-none tracking-normal font-sans; }
194
+ .text-body2-bold { @apply font-bold text-[14px] leading-none tracking-normal font-sans; }
195
+
196
+ /* Body 3 */
197
+ .text-body3 { @apply font-normal text-[12px] leading-none tracking-normal font-sans; }
198
+ .text-body3-light { @apply font-light text-[12px] leading-none tracking-normal font-sans; }
199
+ .text-body3-medium { @apply font-medium text-[12px] leading-none tracking-normal font-sans; }
200
+ .text-body3-semibold { @apply font-semibold text-[12px] leading-none tracking-normal font-sans; }
201
+ .text-body3-bold { @apply font-bold text-[12px] leading-none tracking-normal font-sans; }
202
+
203
+ /* Caption */
204
+ .text-caption { @apply font-light text-[12px] leading-none tracking-normal font-sans; }
205
+ .text-caption-light { @apply font-light text-[12px] leading-none tracking-normal font-sans; }
206
+ .text-caption-medium { @apply font-medium text-[12px] leading-none tracking-normal font-sans; }
207
+ .text-caption-semibold { @apply font-semibold text-[12px] leading-none tracking-normal font-sans; }
208
+ .text-caption-bold { @apply font-bold text-[12px] leading-none tracking-normal font-sans; }
141
209
  }
142
210
 
143
211
  /* Base layer */
package/index.d.ts ADDED
@@ -0,0 +1,42 @@
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 { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, carouselVariants, carouselContentVariants, carouselItemVariants, useCarousel, type CarouselApi, type CarouselProps, type CarouselOptions, type CarouselPlugin, type CarouselOrientation, } from "./Carousel/Carousel";
10
+ export { ChatBubble, chatBubbleVariants, bubbleContentVariants, type ChatBubbleProps, type ChatBubbleSide, type ChatBubbleColor, type ChatBubbleTheme, type ChatBubbleSize } from "./ChatBubble/ChatBubble";
11
+ export { Checkbox, checkboxVariants, type CheckboxProps, type CheckboxSize } from "./Checkbox/Checkbox";
12
+ 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";
13
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, drawerContentVariants, drawerOverlayVariants, type DrawerProps, type DrawerContentProps, type DrawerDirection, } from "./Drawer/Drawer";
14
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from "./DropdownMenu/DropdownMenu";
15
+ export { ErrorMessage, type ErrorMessageProps } from "./ErrorMessage/ErrorMessage";
16
+ export { Flex, flexVariants, type FlexProps, type FlexDirection, type FlexAlign, type FlexJustify, type FlexWrap, type FlexGap } from "./Flex/Flex";
17
+ export { IconButton, iconButtonVariants, type IconButtonProps, type IconButtonVariant, type IconButtonSize, type IconButtonRoundness } from "./IconButton/IconButton";
18
+ export { Input, inputVariants, type InputProps, type InputSize, type InputRoundness, type InputVariant } from "./Input/Input";
19
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, inputOTPVariants, inputOTPSlotVariants, type InputOTPProps, type InputOTPSlotProps, type InputOTPSlotSize, } from "./InputOTP/InputOTP";
20
+ export { Label, labelVariants, type LabelProps } from "./Label/Label";
21
+ export { Loader, loaderVariants, type LoaderProps, type LoaderSize, type LoaderColor } from "./Loader/Loader";
22
+ export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from "./Menubar/Menubar";
23
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, type PaginationLinkProps, } from "./Pagination/Pagination";
24
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from "./Popover/Popover";
25
+ export { Progress, progressVariants, progressIndicatorVariants, type ProgressProps, type ProgressSize, type ProgressVariant } from "./Progress/Progress";
26
+ export { RadioGroup, RadioGroupItem, radioGroupItemVariants, type RadioGroupItemProps, type RadioGroupItemSize } from "./RadioGroup/RadioGroup";
27
+ export { ScrollArea, ScrollBar } from "./ScrollArea/ScrollArea";
28
+ export { Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarMenuItem, SidebarSubMenuItem, SidebarSeparator, SidebarToggle, useSidebar, sidebarMenuItemVariants, sidebarSubMenuItemVariants, type SidebarProps, type SidebarHeaderProps, type SidebarContentProps, type SidebarFooterProps, type SidebarGroupProps, type SidebarGroupLabelProps, type SidebarMenuItemProps, type SidebarSubMenuItemProps, type SidebarSeparatorProps, type SidebarToggleProps, } from "./Sidebar/Sidebar";
29
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, selectTriggerVariants, type SelectTriggerProps, type SelectTriggerSize, } from "./Select/Select";
30
+ export { Separator } from "./Separator/Separator";
31
+ export { Skeleton, type SkeletonProps } from "./Skeleton/Skeleton";
32
+ export { Slider, type SliderProps } from "./Slider/Slider";
33
+ export { Spinner, spinnerVariants, type SpinnerProps, type SpinnerSize, type SpinnerVariant } from "./Spinner/Spinner";
34
+ export { Switch, switchVariants, type SwitchProps, type SwitchSize } from "./Switch/Switch";
35
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./Table/Table";
36
+ export { DataTable, type DataTableColumn, type DataTableProps, type DataTablePagination, type DataTableScroll } from "./DataTable/DataTable";
37
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, type TabsListProps, type TabsListVariant } from "./Tabs/Tabs";
38
+ export { Textarea, textareaVariants, type TextareaProps, type TextareaVariant, type TextareaResize } from "./Textarea/Textarea";
39
+ export { Toaster, toast, type ToastProps, type ToastTheme } from "./Toast/Toast";
40
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipContentVariants, type TooltipContentProps, type TooltipContentVariant, } from "./Tooltip/Tooltip";
41
+ export { Typography, typographyVariants, type TypographyVariant, type TypographyColor } from "./Typography/Typography";
42
+ export { cn, copyToClipboard } from "./lib/utils";
package/index.js ADDED
@@ -0,0 +1,45 @@
1
+ // Styles
2
+ import "./index.css";
3
+ // Components
4
+ export { Alert, AlertTitle, AlertDescription, alertVariants } from "./Alert/Alert";
5
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants } from "./Avatar/Avatar";
6
+ export { Badge, badgeVariants } from "./Badge/Badge";
7
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from "./Breadcrumb/Breadcrumb";
8
+ export { Button, buttonVariants } from "./Button/Button";
9
+ export { Calendar, CalendarDayButton } from "./Calendar/Calendar";
10
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants } from "./Card/Card";
11
+ export { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, carouselVariants, carouselContentVariants, carouselItemVariants, useCarousel, } from "./Carousel/Carousel";
12
+ export { ChatBubble, chatBubbleVariants, bubbleContentVariants } from "./ChatBubble/ChatBubble";
13
+ export { Checkbox, checkboxVariants } from "./Checkbox/Checkbox";
14
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogBody, AlertDialogAction, AlertDialogCancel, alertDialogContentVariants, alertDialogHeaderVariants, alertDialogFooterVariants, } from "./AlertDialog/AlertDialog";
15
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerBody, DrawerTitle, DrawerDescription, drawerContentVariants, drawerOverlayVariants, } from "./Drawer/Drawer";
16
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from "./DropdownMenu/DropdownMenu";
17
+ export { ErrorMessage } from "./ErrorMessage/ErrorMessage";
18
+ export { Flex, flexVariants } from "./Flex/Flex";
19
+ export { IconButton, iconButtonVariants } from "./IconButton/IconButton";
20
+ export { Input, inputVariants } from "./Input/Input";
21
+ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, inputOTPVariants, inputOTPSlotVariants, } from "./InputOTP/InputOTP";
22
+ export { Label, labelVariants } from "./Label/Label";
23
+ export { Loader, loaderVariants } from "./Loader/Loader";
24
+ export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from "./Menubar/Menubar";
25
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./Pagination/Pagination";
26
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from "./Popover/Popover";
27
+ export { Progress, progressVariants, progressIndicatorVariants } from "./Progress/Progress";
28
+ export { RadioGroup, RadioGroupItem, radioGroupItemVariants } from "./RadioGroup/RadioGroup";
29
+ export { ScrollArea, ScrollBar } from "./ScrollArea/ScrollArea";
30
+ export { Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarMenuItem, SidebarSubMenuItem, SidebarSeparator, SidebarToggle, useSidebar, sidebarMenuItemVariants, sidebarSubMenuItemVariants, } from "./Sidebar/Sidebar";
31
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, selectTriggerVariants, } from "./Select/Select";
32
+ export { Separator } from "./Separator/Separator";
33
+ export { Skeleton } from "./Skeleton/Skeleton";
34
+ export { Slider } from "./Slider/Slider";
35
+ export { Spinner, spinnerVariants } from "./Spinner/Spinner";
36
+ export { Switch, switchVariants } from "./Switch/Switch";
37
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./Table/Table";
38
+ export { DataTable } from "./DataTable/DataTable";
39
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants } from "./Tabs/Tabs";
40
+ export { Textarea, textareaVariants } from "./Textarea/Textarea";
41
+ export { Toaster, toast } from "./Toast/Toast";
42
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipContentVariants, } from "./Tooltip/Tooltip";
43
+ export { Typography, typographyVariants } from "./Typography/Typography";
44
+ // Utilities
45
+ export { cn, copyToClipboard } from "./lib/utils";
@@ -0,0 +1,4 @@
1
+ export type TextVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "subtitle3" | "body1" | "body2" | "body3" | "caption" | "subtitle1Medium" | "subtitle1Bold" | "subtitle1SemiBold" | "subtitle2Medium" | "subtitle2Bold" | "subtitle2SemiBold" | "subtitle3Medium" | "subtitle3Bold" | "subtitle3SemiBold" | "body1Medium" | "body1Bold" | "body1SemiBold" | "body2Medium" | "body2Bold" | "body2SemiBold" | "body3Medium" | "body3Bold" | "body3SemiBold" | "captionMedium" | "captionBold" | "captionSemiBold" | "subtitle1Light" | "subtitle2Light" | "subtitle3Light" | "body1Light" | "body2Light" | "body3Light" | "captionLight";
2
+ export type TextColor = "default" | "main-50" | "main-100" | "main-200" | "main-300" | "main-400" | "main-500" | "main-600" | "main-700" | "main-800" | "main-900" | "main-950" | "success-50" | "success-100" | "success-200" | "success-300" | "success-400" | "success-500" | "success-600" | "success-700" | "success-800" | "success-900" | "success-950" | "accent-50" | "accent-100" | "accent-200" | "accent-300" | "accent-400" | "accent-500" | "accent-600" | "accent-700" | "accent-800" | "accent-900" | "accent-950" | "error-50" | "error-100" | "error-200" | "error-300" | "error-400" | "error-500" | "error-600" | "error-700" | "error-800" | "error-900" | "error-950" | "warning-50" | "warning-100" | "warning-200" | "warning-300" | "warning-400" | "warning-500" | "warning-600" | "warning-700" | "warning-800" | "warning-900" | "warning-950" | "grey-50" | "grey-100" | "grey-200" | "grey-300" | "grey-400" | "grey-500" | "grey-600" | "grey-700" | "grey-800" | "grey-900" | "grey-950";
3
+ export declare const textVariantClasses: Record<TextVariant, string>;
4
+ export declare const textColorClasses: Record<TextColor, string>;
@@ -0,0 +1,118 @@
1
+ export const textVariantClasses = {
2
+ h1: "font-extrabold text-[64px] leading-none tracking-normal font-sans",
3
+ h2: "font-bold text-[48px] leading-none tracking-normal font-sans",
4
+ h3: "font-bold text-[32px] leading-none tracking-normal font-sans",
5
+ h4: "font-bold text-[24px] leading-[1.2] tracking-[-0.48px] font-sans",
6
+ h5: "font-bold text-[20px] leading-none tracking-normal font-sans",
7
+ h6: "font-semibold text-[20px] leading-none tracking-normal font-sans",
8
+ subtitle1: "font-semibold text-[20px] leading-none tracking-normal font-sans",
9
+ subtitle2: "font-semibold text-[18px] leading-none tracking-normal font-sans",
10
+ subtitle3: "font-semibold text-[16px] leading-none tracking-normal font-sans",
11
+ body1: "font-normal text-[16px] leading-none tracking-normal font-sans",
12
+ body2: "font-normal text-[14px] leading-none tracking-normal font-sans",
13
+ body3: "font-normal text-[12px] leading-none tracking-normal font-sans",
14
+ caption: "font-light text-[12px] leading-none tracking-normal font-sans",
15
+ subtitle1Medium: "font-medium text-[20px] leading-none tracking-normal font-sans",
16
+ subtitle1Bold: "font-bold text-[20px] leading-none tracking-normal font-sans",
17
+ subtitle1SemiBold: "font-semibold text-[20px] leading-none tracking-normal font-sans",
18
+ subtitle2Medium: "font-medium text-[18px] leading-none tracking-normal font-sans",
19
+ subtitle2Bold: "font-bold text-[18px] leading-none tracking-normal font-sans",
20
+ subtitle2SemiBold: "font-semibold text-[18px] leading-none tracking-normal font-sans",
21
+ subtitle3Medium: "font-medium text-[16px] leading-none tracking-normal font-sans",
22
+ subtitle3Bold: "font-bold text-[16px] leading-none tracking-normal font-sans",
23
+ subtitle3SemiBold: "font-semibold text-[16px] leading-none tracking-normal font-sans",
24
+ body1Medium: "font-medium text-[16px] leading-none tracking-normal font-sans",
25
+ body1Bold: "font-bold text-[16px] leading-none tracking-normal font-sans",
26
+ body1SemiBold: "font-semibold text-[16px] leading-none tracking-normal font-sans",
27
+ body2Medium: "font-medium text-[14px] leading-none tracking-normal font-sans",
28
+ body2Bold: "font-bold text-[14px] leading-none tracking-normal font-sans",
29
+ body2SemiBold: "font-semibold text-[14px] leading-none tracking-normal font-sans",
30
+ body3Medium: "font-medium text-[12px] leading-none tracking-normal font-sans",
31
+ body3Bold: "font-bold text-[12px] leading-none tracking-normal font-sans",
32
+ body3SemiBold: "font-semibold text-[12px] leading-none tracking-normal font-sans",
33
+ captionMedium: "font-medium text-[12px] leading-none tracking-normal font-sans",
34
+ captionBold: "font-bold text-[12px] leading-none tracking-normal font-sans",
35
+ captionSemiBold: "font-semibold text-[12px] leading-none tracking-normal font-sans",
36
+ subtitle1Light: "font-light text-[20px] leading-none tracking-normal font-sans",
37
+ subtitle2Light: "font-light text-[18px] leading-none tracking-normal font-sans",
38
+ subtitle3Light: "font-light text-[16px] leading-none tracking-normal font-sans",
39
+ body1Light: "font-light text-[16px] leading-none tracking-normal font-sans",
40
+ body2Light: "font-light text-[14px] leading-none tracking-normal font-sans",
41
+ body3Light: "font-light text-[12px] leading-none tracking-normal font-sans",
42
+ captionLight: "font-light text-[12px] leading-none tracking-normal font-sans",
43
+ };
44
+ export const textColorClasses = {
45
+ default: "text-main-800",
46
+ // Main colors
47
+ "main-50": "text-main-50",
48
+ "main-100": "text-main-100",
49
+ "main-200": "text-main-200",
50
+ "main-300": "text-main-300",
51
+ "main-400": "text-main-400",
52
+ "main-500": "text-main-500",
53
+ "main-600": "text-main-600",
54
+ "main-700": "text-main-700",
55
+ "main-800": "text-main-800",
56
+ "main-900": "text-main-900",
57
+ "main-950": "text-main-950",
58
+ // Success colors
59
+ "success-50": "text-success-50",
60
+ "success-100": "text-success-100",
61
+ "success-200": "text-success-200",
62
+ "success-300": "text-success-300",
63
+ "success-400": "text-success-400",
64
+ "success-500": "text-success-500",
65
+ "success-600": "text-success-600",
66
+ "success-700": "text-success-700",
67
+ "success-800": "text-success-800",
68
+ "success-900": "text-success-900",
69
+ "success-950": "text-success-950",
70
+ // Accent colors
71
+ "accent-50": "text-accent-50",
72
+ "accent-100": "text-accent-100",
73
+ "accent-200": "text-accent-200",
74
+ "accent-300": "text-accent-300",
75
+ "accent-400": "text-accent-400",
76
+ "accent-500": "text-accent-500",
77
+ "accent-600": "text-accent-600",
78
+ "accent-700": "text-accent-700",
79
+ "accent-800": "text-accent-800",
80
+ "accent-900": "text-accent-900",
81
+ "accent-950": "text-accent-950",
82
+ // Error colors
83
+ "error-50": "text-error-50",
84
+ "error-100": "text-error-100",
85
+ "error-200": "text-error-200",
86
+ "error-300": "text-error-300",
87
+ "error-400": "text-error-400",
88
+ "error-500": "text-error-500",
89
+ "error-600": "text-error-600",
90
+ "error-700": "text-error-700",
91
+ "error-800": "text-error-800",
92
+ "error-900": "text-error-900",
93
+ "error-950": "text-error-950",
94
+ // Warning colors
95
+ "warning-50": "text-warning-50",
96
+ "warning-100": "text-warning-100",
97
+ "warning-200": "text-warning-200",
98
+ "warning-300": "text-warning-300",
99
+ "warning-400": "text-warning-400",
100
+ "warning-500": "text-warning-500",
101
+ "warning-600": "text-warning-600",
102
+ "warning-700": "text-warning-700",
103
+ "warning-800": "text-warning-800",
104
+ "warning-900": "text-warning-900",
105
+ "warning-950": "text-warning-950",
106
+ // Grey colors
107
+ "grey-50": "text-grey-50",
108
+ "grey-100": "text-grey-100",
109
+ "grey-200": "text-grey-200",
110
+ "grey-300": "text-grey-300",
111
+ "grey-400": "text-grey-400",
112
+ "grey-500": "text-grey-500",
113
+ "grey-600": "text-grey-600",
114
+ "grey-700": "text-grey-700",
115
+ "grey-800": "text-grey-800",
116
+ "grey-900": "text-grey-900",
117
+ "grey-950": "text-grey-950",
118
+ };
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,14 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
6
+ export async function copyToClipboard(text) {
7
+ try {
8
+ await navigator.clipboard.writeText(text);
9
+ return true;
10
+ }
11
+ catch {
12
+ return false;
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2v2ai/uikit",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "author": "Arulraj V & abofficial1997@gmail.com",
6
6
  "description": "A React UI component library built with shadcn/ui and Tailwind CSS",