@a2v2ai/uikit 0.0.39 → 0.0.41

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.stories.tsx +121 -0
  2. package/Alert/Alert.tsx +71 -0
  3. package/AlertDialog/AlertDialog.stories.tsx +665 -0
  4. package/AlertDialog/AlertDialog.tsx +241 -0
  5. package/Avatar/Avatar.stories.tsx +128 -0
  6. package/Avatar/Avatar.tsx +71 -0
  7. package/Badge/Badge.stories.tsx +76 -0
  8. package/Badge/Badge.tsx +39 -0
  9. package/Breadcrumb/Breadcrumb.stories.tsx +231 -0
  10. package/Breadcrumb/Breadcrumb.tsx +114 -0
  11. package/Button/Button.stories.tsx +684 -0
  12. package/Button/Button.tsx +107 -0
  13. package/Calendar/Calendar.stories.tsx +291 -0
  14. package/Calendar/Calendar.tsx +246 -0
  15. package/Card/Card.stories.tsx +136 -0
  16. package/Card/Card.tsx +96 -0
  17. package/Carousel/Carousel.stories.tsx +256 -0
  18. package/Carousel/Carousel.tsx +301 -0
  19. package/ChatBubble/ChatBubble.stories.tsx +339 -0
  20. package/ChatBubble/ChatBubble.tsx +179 -0
  21. package/Checkbox/Checkbox.stories.tsx +137 -0
  22. package/Checkbox/Checkbox.tsx +53 -0
  23. package/DataTable/DataTable.stories.tsx +400 -0
  24. package/DataTable/DataTable.tsx +207 -0
  25. package/Drawer/Drawer.stories.tsx +721 -0
  26. package/Drawer/Drawer.tsx +201 -0
  27. package/DropdownMenu/DropdownMenu.stories.tsx +251 -0
  28. package/DropdownMenu/DropdownMenu.tsx +199 -0
  29. package/ErrorMessage/ErrorMessage.stories.tsx +159 -0
  30. package/ErrorMessage/ErrorMessage.tsx +55 -0
  31. package/Flex/Flex.stories.tsx +390 -0
  32. package/Flex/Flex.tsx +102 -0
  33. package/IconButton/IconButton.stories.tsx +566 -0
  34. package/IconButton/IconButton.tsx +95 -0
  35. package/Input/Input.stories.tsx +566 -0
  36. package/Input/Input.tsx +168 -0
  37. package/InputOTP/InputOTP.stories.tsx +246 -0
  38. package/InputOTP/InputOTP.tsx +127 -0
  39. package/Label/Label.stories.tsx +110 -0
  40. package/Label/Label.tsx +44 -0
  41. package/Loader/Loader.stories.tsx +170 -0
  42. package/Loader/Loader.tsx +62 -0
  43. package/Menubar/Menubar.stories.tsx +382 -0
  44. package/Menubar/Menubar.tsx +274 -0
  45. package/Menubar/index.ts +18 -0
  46. package/Pagination/Pagination.stories.tsx +196 -0
  47. package/Pagination/Pagination.tsx +122 -0
  48. package/Popover/Popover.stories.tsx +133 -0
  49. package/Popover/Popover.tsx +31 -0
  50. package/Progress/Progress.stories.tsx +146 -0
  51. package/Progress/Progress.tsx +67 -0
  52. package/RadioGroup/RadioGroup.stories.tsx +159 -0
  53. package/RadioGroup/RadioGroup.tsx +68 -0
  54. package/ScrollArea/ScrollArea.stories.tsx +136 -0
  55. package/ScrollArea/ScrollArea.tsx +46 -0
  56. package/Select/Select.stories.tsx +378 -0
  57. package/Select/Select.tsx +230 -0
  58. package/Separator/Separator.stories.tsx +110 -0
  59. package/Separator/Separator.tsx +29 -0
  60. package/Sidebar/Sidebar.stories.tsx +340 -0
  61. package/Sidebar/Sidebar.tsx +414 -0
  62. package/Sidebar/index.ts +28 -0
  63. package/Skeleton/Skeleton.stories.tsx +117 -0
  64. package/Skeleton/Skeleton.tsx +16 -0
  65. package/Slider/Slider.stories.tsx +216 -0
  66. package/Slider/Slider.tsx +29 -0
  67. package/Spinner/Spinner.stories.tsx +210 -0
  68. package/Spinner/Spinner.tsx +78 -0
  69. package/Switch/Switch.stories.tsx +146 -0
  70. package/Switch/Switch.tsx +59 -0
  71. package/Table/Table.stories.tsx +510 -0
  72. package/Table/Table.tsx +114 -0
  73. package/Tabs/Tabs.stories.tsx +197 -0
  74. package/Tabs/Tabs.tsx +74 -0
  75. package/Textarea/Textarea.stories.tsx +187 -0
  76. package/Textarea/Textarea.tsx +73 -0
  77. package/Toast/Toast.stories.tsx +285 -0
  78. package/Toast/Toast.tsx +59 -0
  79. package/Tooltip/Tooltip.stories.tsx +463 -0
  80. package/Tooltip/Tooltip.tsx +96 -0
  81. package/Typography/Typography.stories.tsx +488 -0
  82. package/Typography/Typography.tsx +113 -0
  83. package/helpers.ts +5 -0
  84. package/{icons.js → icons.ts} +1 -1
  85. package/index.css +40 -40
  86. package/index.ts +217 -0
  87. package/lib/typography-types.ts +237 -0
  88. package/lib/utils.ts +15 -0
  89. package/package.json +1 -1
  90. package/tsconfig.json +22 -0
  91. package/Alert/Alert.d.ts +0 -13
  92. package/Alert/Alert.js +0 -25
  93. package/AlertDialog/AlertDialog.d.ts +0 -43
  94. package/AlertDialog/AlertDialog.js +0 -71
  95. package/Avatar/Avatar.d.ts +0 -14
  96. package/Avatar/Avatar.js +0 -25
  97. package/Badge/Badge.d.ts +0 -11
  98. package/Badge/Badge.js +0 -23
  99. package/Breadcrumb/Breadcrumb.d.ts +0 -19
  100. package/Breadcrumb/Breadcrumb.js +0 -23
  101. package/Button/Button.d.ts +0 -23
  102. package/Button/Button.js +0 -52
  103. package/Calendar/Calendar.d.ts +0 -20
  104. package/Calendar/Calendar.js +0 -78
  105. package/Card/Card.d.ts +0 -16
  106. package/Card/Card.js +0 -28
  107. package/Carousel/Carousel.d.ts +0 -37
  108. package/Carousel/Carousel.js +0 -132
  109. package/ChatBubble/ChatBubble.d.ts +0 -33
  110. package/ChatBubble/ChatBubble.js +0 -107
  111. package/Checkbox/Checkbox.d.ts +0 -12
  112. package/Checkbox/Checkbox.js +0 -20
  113. package/DataTable/DataTable.d.ts +0 -35
  114. package/DataTable/DataTable.js +0 -51
  115. package/Drawer/Drawer.d.ts +0 -33
  116. package/Drawer/Drawer.js +0 -55
  117. package/DropdownMenu/DropdownMenu.d.ts +0 -27
  118. package/DropdownMenu/DropdownMenu.js +0 -35
  119. package/ErrorMessage/ErrorMessage.d.ts +0 -27
  120. package/ErrorMessage/ErrorMessage.js +0 -14
  121. package/Flex/Flex.d.ts +0 -31
  122. package/Flex/Flex.js +0 -64
  123. package/IconButton/IconButton.d.ts +0 -23
  124. package/IconButton/IconButton.js +0 -48
  125. package/Input/Input.d.ts +0 -27
  126. package/Input/Input.js +0 -42
  127. package/InputOTP/InputOTP.d.ts +0 -20
  128. package/InputOTP/InputOTP.js +0 -44
  129. package/Label/Label.d.ts +0 -13
  130. package/Label/Label.js +0 -19
  131. package/Loader/Loader.d.ts +0 -21
  132. package/Loader/Loader.js +0 -30
  133. package/Menubar/Menubar.d.ts +0 -26
  134. package/Menubar/Menubar.js +0 -54
  135. package/Menubar/index.d.ts +0 -1
  136. package/Menubar/index.js +0 -1
  137. package/Pagination/Pagination.d.ts +0 -35
  138. package/Pagination/Pagination.js +0 -37
  139. package/Popover/Popover.d.ts +0 -7
  140. package/Popover/Popover.js +0 -10
  141. package/Progress/Progress.d.ts +0 -17
  142. package/Progress/Progress.js +0 -33
  143. package/RadioGroup/RadioGroup.d.ts +0 -13
  144. package/RadioGroup/RadioGroup.js +0 -26
  145. package/ScrollArea/ScrollArea.d.ts +0 -5
  146. package/ScrollArea/ScrollArea.js +0 -11
  147. package/Select/Select.d.ts +0 -29
  148. package/Select/Select.js +0 -50
  149. package/Separator/Separator.d.ts +0 -4
  150. package/Separator/Separator.js +0 -7
  151. package/Sidebar/Sidebar.d.ts +0 -48
  152. package/Sidebar/Sidebar.js +0 -116
  153. package/Sidebar/index.d.ts +0 -2
  154. package/Sidebar/index.js +0 -1
  155. package/Skeleton/Skeleton.d.ts +0 -4
  156. package/Skeleton/Skeleton.js +0 -7
  157. package/Slider/Slider.d.ts +0 -6
  158. package/Slider/Slider.js +0 -7
  159. package/Spinner/Spinner.d.ts +0 -19
  160. package/Spinner/Spinner.js +0 -31
  161. package/Switch/Switch.d.ts +0 -12
  162. package/Switch/Switch.js +0 -30
  163. package/Table/Table.d.ts +0 -10
  164. package/Table/Table.js +0 -20
  165. package/Tabs/Tabs.d.ts +0 -15
  166. package/Tabs/Tabs.js +0 -24
  167. package/Textarea/Textarea.d.ts +0 -19
  168. package/Textarea/Textarea.js +0 -31
  169. package/Toast/Toast.d.ts +0 -12
  170. package/Toast/Toast.js +0 -25
  171. package/Tooltip/Tooltip.d.ts +0 -17
  172. package/Tooltip/Tooltip.js +0 -29
  173. package/Typography/Typography.d.ts +0 -20
  174. package/Typography/Typography.js +0 -71
  175. package/helpers.d.ts +0 -4
  176. package/helpers.js +0 -5
  177. package/icons.d.ts +0 -1
  178. package/index.d.ts +0 -42
  179. package/index.js +0 -45
  180. package/lib/typography-types.d.ts +0 -4
  181. package/lib/typography-types.js +0 -118
  182. package/lib/utils.d.ts +0 -3
  183. package/lib/utils.js +0 -14
package/index.css CHANGED
@@ -151,61 +151,61 @@
151
151
  /* Typography utility classes */
152
152
  @layer components {
153
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; }
154
+ .text-h1 { @apply font-extrabold text-[64px] leading-[1.3] tracking-normal font-sans; }
155
+ .text-h2 { @apply font-bold text-[48px] leading-[1.3] tracking-normal font-sans; }
156
+ .text-h3 { @apply font-bold text-[32px] leading-[1.3] tracking-normal font-sans; }
157
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; }
158
+ .text-h5 { @apply font-bold text-[20px] leading-[1.3] tracking-normal font-sans; }
159
+ .text-h6 { @apply font-semibold text-[20px] leading-[1.3] tracking-normal font-sans; }
160
160
 
161
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; }
162
+ .text-subtitle1 { @apply font-semibold text-[20px] leading-[1.3] tracking-normal font-sans; }
163
+ .text-subtitle1-light { @apply font-light text-[20px] leading-[1.3] tracking-normal font-sans; }
164
+ .text-subtitle1-medium { @apply font-medium text-[20px] leading-[1.3] tracking-normal font-sans; }
165
+ .text-subtitle1-semibold { @apply font-semibold text-[20px] leading-[1.3] tracking-normal font-sans; }
166
+ .text-subtitle1-bold { @apply font-bold text-[20px] leading-[1.3] tracking-normal font-sans; }
167
167
 
168
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; }
169
+ .text-subtitle2 { @apply font-semibold text-[18px] leading-[1.3] tracking-normal font-sans; }
170
+ .text-subtitle2-light { @apply font-light text-[18px] leading-[1.3] tracking-normal font-sans; }
171
+ .text-subtitle2-medium { @apply font-medium text-[18px] leading-[1.3] tracking-normal font-sans; }
172
+ .text-subtitle2-semibold { @apply font-semibold text-[18px] leading-[1.3] tracking-normal font-sans; }
173
+ .text-subtitle2-bold { @apply font-bold text-[18px] leading-[1.3] tracking-normal font-sans; }
174
174
 
175
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; }
176
+ .text-subtitle3 { @apply font-semibold text-[16px] leading-[1.3] tracking-normal font-sans; }
177
+ .text-subtitle3-light { @apply font-light text-[16px] leading-[1.3] tracking-normal font-sans; }
178
+ .text-subtitle3-medium { @apply font-medium text-[16px] leading-[1.3] tracking-normal font-sans; }
179
+ .text-subtitle3-semibold { @apply font-semibold text-[16px] leading-[1.3] tracking-normal font-sans; }
180
+ .text-subtitle3-bold { @apply font-bold text-[16px] leading-[1.3] tracking-normal font-sans; }
181
181
 
182
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; }
183
+ .text-body1 { @apply font-normal text-[16px] leading-[1.3] tracking-normal font-sans; }
184
+ .text-body1-light { @apply font-light text-[16px] leading-[1.3] tracking-normal font-sans; }
185
+ .text-body1-medium { @apply font-medium text-[16px] leading-[1.3] tracking-normal font-sans; }
186
+ .text-body1-semibold { @apply font-semibold text-[16px] leading-[1.3] tracking-normal font-sans; }
187
+ .text-body1-bold { @apply font-bold text-[16px] leading-[1.3] tracking-normal font-sans; }
188
188
 
189
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; }
190
+ .text-body2 { @apply font-normal text-[14px] leading-[1.3] tracking-normal font-sans; }
191
+ .text-body2-light { @apply font-light text-[14px] leading-[1.3] tracking-normal font-sans; }
192
+ .text-body2-medium { @apply font-medium text-[14px] leading-[1.3] tracking-normal font-sans; }
193
+ .text-body2-semibold { @apply font-semibold text-[14px] leading-[1.3] tracking-normal font-sans; }
194
+ .text-body2-bold { @apply font-bold text-[14px] leading-[1.3] tracking-normal font-sans; }
195
195
 
196
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; }
197
+ .text-body3 { @apply font-normal text-[12px] leading-[1.3] tracking-normal font-sans; }
198
+ .text-body3-light { @apply font-light text-[12px] leading-[1.3] tracking-normal font-sans; }
199
+ .text-body3-medium { @apply font-medium text-[12px] leading-[1.3] tracking-normal font-sans; }
200
+ .text-body3-semibold { @apply font-semibold text-[12px] leading-[1.3] tracking-normal font-sans; }
201
+ .text-body3-bold { @apply font-bold text-[12px] leading-[1.3] tracking-normal font-sans; }
202
202
 
203
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; }
204
+ .text-caption { @apply font-light text-[12px] leading-[1.3] tracking-normal font-sans; }
205
+ .text-caption-light { @apply font-light text-[12px] leading-[1.3] tracking-normal font-sans; }
206
+ .text-caption-medium { @apply font-medium text-[12px] leading-[1.3] tracking-normal font-sans; }
207
+ .text-caption-semibold { @apply font-semibold text-[12px] leading-[1.3] tracking-normal font-sans; }
208
+ .text-caption-bold { @apply font-bold text-[12px] leading-[1.3] tracking-normal font-sans; }
209
209
  }
210
210
 
211
211
  /* Base layer */
package/index.ts ADDED
@@ -0,0 +1,217 @@
1
+ // Styles
2
+ import "./index.css"
3
+
4
+ // Components
5
+ export { Alert, AlertTitle, AlertDescription, alertVariants, type AlertProps, type AlertVariant } from "./Alert/Alert"
6
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants, type AvatarProps, type AvatarSize } from "./Avatar/Avatar"
7
+ export { Badge, badgeVariants, type BadgeProps, type BadgeVariant } from "./Badge/Badge"
8
+ export {
9
+ Breadcrumb,
10
+ BreadcrumbList,
11
+ BreadcrumbItem,
12
+ BreadcrumbLink,
13
+ BreadcrumbPage,
14
+ BreadcrumbSeparator,
15
+ BreadcrumbEllipsis,
16
+ } from "./Breadcrumb/Breadcrumb"
17
+ export { Button, buttonVariants, type ButtonProps, type ButtonVariant, type ButtonSize, type ButtonRoundness } from "./Button/Button"
18
+ export { Calendar, CalendarDayButton, type CalendarProps } from "./Calendar/Calendar"
19
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants, type CardProps, type CardVariant } from "./Card/Card"
20
+ export {
21
+ Carousel,
22
+ CarouselContent,
23
+ CarouselItem,
24
+ CarouselPrevious,
25
+ CarouselNext,
26
+ carouselVariants,
27
+ carouselContentVariants,
28
+ carouselItemVariants,
29
+ useCarousel,
30
+ type CarouselApi,
31
+ type CarouselProps,
32
+ type CarouselOptions,
33
+ type CarouselPlugin,
34
+ type CarouselOrientation,
35
+ } from "./Carousel/Carousel"
36
+ export { ChatBubble, chatBubbleVariants, bubbleContentVariants, type ChatBubbleProps, type ChatBubbleSide, type ChatBubbleColor, type ChatBubbleTheme, type ChatBubbleSize } from "./ChatBubble/ChatBubble"
37
+ export { Checkbox, checkboxVariants, type CheckboxProps, type CheckboxSize } from "./Checkbox/Checkbox"
38
+ export {
39
+ AlertDialog,
40
+ AlertDialogPortal,
41
+ AlertDialogOverlay,
42
+ AlertDialogTrigger,
43
+ AlertDialogContent,
44
+ AlertDialogHeader,
45
+ AlertDialogFooter,
46
+ AlertDialogTitle,
47
+ AlertDialogDescription,
48
+ AlertDialogBody,
49
+ AlertDialogAction,
50
+ AlertDialogCancel,
51
+ alertDialogContentVariants,
52
+ alertDialogHeaderVariants,
53
+ alertDialogFooterVariants,
54
+ type AlertDialogContentProps,
55
+ type AlertDialogHeaderProps,
56
+ type AlertDialogFooterProps,
57
+ type AlertDialogContentType,
58
+ type AlertDialogHeaderType,
59
+ type AlertDialogFooterType,
60
+ type AlertDialogCloseButtonVariant,
61
+ } from "./AlertDialog/AlertDialog"
62
+ export {
63
+ Drawer,
64
+ DrawerPortal,
65
+ DrawerOverlay,
66
+ DrawerTrigger,
67
+ DrawerClose,
68
+ DrawerContent,
69
+ DrawerHeader,
70
+ DrawerFooter,
71
+ DrawerBody,
72
+ DrawerTitle,
73
+ DrawerDescription,
74
+ drawerContentVariants,
75
+ drawerOverlayVariants,
76
+ type DrawerProps,
77
+ type DrawerContentProps,
78
+ type DrawerDirection,
79
+ } from "./Drawer/Drawer"
80
+ export {
81
+ DropdownMenu,
82
+ DropdownMenuTrigger,
83
+ DropdownMenuContent,
84
+ DropdownMenuItem,
85
+ DropdownMenuCheckboxItem,
86
+ DropdownMenuRadioItem,
87
+ DropdownMenuLabel,
88
+ DropdownMenuSeparator,
89
+ DropdownMenuShortcut,
90
+ DropdownMenuGroup,
91
+ DropdownMenuPortal,
92
+ DropdownMenuSub,
93
+ DropdownMenuSubContent,
94
+ DropdownMenuSubTrigger,
95
+ DropdownMenuRadioGroup,
96
+ } from "./DropdownMenu/DropdownMenu"
97
+ export { ErrorMessage, type ErrorMessageProps } from "./ErrorMessage/ErrorMessage"
98
+ export { Flex, flexVariants, type FlexProps, type FlexDirection, type FlexAlign, type FlexJustify, type FlexWrap, type FlexGap } from "./Flex/Flex"
99
+ export { IconButton, iconButtonVariants, type IconButtonProps, type IconButtonVariant, type IconButtonSize, type IconButtonRoundness } from "./IconButton/IconButton"
100
+ export { Input, inputVariants, type InputProps, type InputSize, type InputRoundness, type InputVariant } from "./Input/Input"
101
+ export {
102
+ InputOTP,
103
+ InputOTPGroup,
104
+ InputOTPSlot,
105
+ InputOTPSeparator,
106
+ inputOTPVariants,
107
+ inputOTPSlotVariants,
108
+ type InputOTPProps,
109
+ type InputOTPSlotProps,
110
+ type InputOTPSlotSize,
111
+ } from "./InputOTP/InputOTP"
112
+ export { Label, labelVariants, type LabelProps } from "./Label/Label"
113
+ export { Loader, loaderVariants, type LoaderProps, type LoaderSize, type LoaderColor } from "./Loader/Loader"
114
+ export {
115
+ Menubar,
116
+ MenubarPortal,
117
+ MenubarMenu,
118
+ MenubarTrigger,
119
+ MenubarContent,
120
+ MenubarGroup,
121
+ MenubarSeparator,
122
+ MenubarLabel,
123
+ MenubarItem,
124
+ MenubarShortcut,
125
+ MenubarCheckboxItem,
126
+ MenubarRadioGroup,
127
+ MenubarRadioItem,
128
+ MenubarSub,
129
+ MenubarSubTrigger,
130
+ MenubarSubContent,
131
+ } from "./Menubar/Menubar"
132
+ export {
133
+ Pagination,
134
+ PaginationContent,
135
+ PaginationLink,
136
+ PaginationItem,
137
+ PaginationPrevious,
138
+ PaginationNext,
139
+ PaginationEllipsis,
140
+ type PaginationLinkProps,
141
+ } from "./Pagination/Pagination"
142
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor } from "./Popover/Popover"
143
+ export { Progress, progressVariants, progressIndicatorVariants, type ProgressProps, type ProgressSize, type ProgressVariant } from "./Progress/Progress"
144
+ export { RadioGroup, RadioGroupItem, radioGroupItemVariants, type RadioGroupItemProps, type RadioGroupItemSize } from "./RadioGroup/RadioGroup"
145
+ export { ScrollArea, ScrollBar } from "./ScrollArea/ScrollArea"
146
+ export {
147
+ Sidebar,
148
+ SidebarHeader,
149
+ SidebarContent,
150
+ SidebarFooter,
151
+ SidebarGroup,
152
+ SidebarGroupLabel,
153
+ SidebarMenuItem,
154
+ SidebarSubMenuItem,
155
+ SidebarSeparator,
156
+ SidebarToggle,
157
+ useSidebar,
158
+ sidebarMenuItemVariants,
159
+ sidebarSubMenuItemVariants,
160
+ type SidebarProps,
161
+ type SidebarHeaderProps,
162
+ type SidebarContentProps,
163
+ type SidebarFooterProps,
164
+ type SidebarGroupProps,
165
+ type SidebarGroupLabelProps,
166
+ type SidebarMenuItemProps,
167
+ type SidebarSubMenuItemProps,
168
+ type SidebarSeparatorProps,
169
+ type SidebarToggleProps,
170
+ } from "./Sidebar/Sidebar"
171
+ export {
172
+ Select,
173
+ SelectGroup,
174
+ SelectValue,
175
+ SelectTrigger,
176
+ SelectContent,
177
+ SelectLabel,
178
+ SelectItem,
179
+ SelectSeparator,
180
+ SelectScrollUpButton,
181
+ SelectScrollDownButton,
182
+ selectTriggerVariants,
183
+ type SelectTriggerProps,
184
+ type SelectTriggerSize,
185
+ } from "./Select/Select"
186
+ export { Separator } from "./Separator/Separator"
187
+ export { Skeleton, type SkeletonProps } from "./Skeleton/Skeleton"
188
+ export { Slider, type SliderProps } from "./Slider/Slider"
189
+ export { Spinner, spinnerVariants, type SpinnerProps, type SpinnerSize, type SpinnerVariant } from "./Spinner/Spinner"
190
+ export { Switch, switchVariants, type SwitchProps, type SwitchSize } from "./Switch/Switch"
191
+ export {
192
+ Table,
193
+ TableHeader,
194
+ TableBody,
195
+ TableFooter,
196
+ TableHead,
197
+ TableRow,
198
+ TableCell,
199
+ TableCaption,
200
+ } from "./Table/Table"
201
+ export { DataTable, type DataTableColumn, type DataTableProps, type DataTablePagination, type DataTableScroll } from "./DataTable/DataTable"
202
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, type TabsListProps, type TabsListVariant } from "./Tabs/Tabs"
203
+ export { Textarea, textareaVariants, type TextareaProps, type TextareaVariant, type TextareaResize } from "./Textarea/Textarea"
204
+ export { Toaster, toast, type ToastProps, type ToastTheme } from "./Toast/Toast"
205
+ export {
206
+ Tooltip,
207
+ TooltipTrigger,
208
+ TooltipContent,
209
+ TooltipProvider,
210
+ tooltipContentVariants,
211
+ type TooltipContentProps,
212
+ type TooltipContentVariant,
213
+ } from "./Tooltip/Tooltip"
214
+ export { Typography, typographyVariants, type TypographyVariant, type TypographyColor } from "./Typography/Typography"
215
+
216
+ // Utilities
217
+ export { cn, copyToClipboard } from "./lib/utils"
@@ -0,0 +1,237 @@
1
+ export type TextVariant =
2
+ | "h1"
3
+ | "h2"
4
+ | "h3"
5
+ | "h4"
6
+ | "h5"
7
+ | "h6"
8
+ | "subtitle1"
9
+ | "subtitle2"
10
+ | "subtitle3"
11
+ | "body1"
12
+ | "body2"
13
+ | "body3"
14
+ | "caption"
15
+ | "subtitle1Medium"
16
+ | "subtitle1Bold"
17
+ | "subtitle1SemiBold"
18
+ | "subtitle2Medium"
19
+ | "subtitle2Bold"
20
+ | "subtitle2SemiBold"
21
+ | "subtitle3Medium"
22
+ | "subtitle3Bold"
23
+ | "subtitle3SemiBold"
24
+ | "body1Medium"
25
+ | "body1Bold"
26
+ | "body1SemiBold"
27
+ | "body2Medium"
28
+ | "body2Bold"
29
+ | "body2SemiBold"
30
+ | "body3Medium"
31
+ | "body3Bold"
32
+ | "body3SemiBold"
33
+ | "captionMedium"
34
+ | "captionBold"
35
+ | "captionSemiBold"
36
+ | "subtitle1Light"
37
+ | "subtitle2Light"
38
+ | "subtitle3Light"
39
+ | "body1Light"
40
+ | "body2Light"
41
+ | "body3Light"
42
+ | "captionLight"
43
+
44
+ export type TextColor =
45
+ | "default"
46
+ // Main colors
47
+ | "main-50"
48
+ | "main-100"
49
+ | "main-200"
50
+ | "main-300"
51
+ | "main-400"
52
+ | "main-500"
53
+ | "main-600"
54
+ | "main-700"
55
+ | "main-800"
56
+ | "main-900"
57
+ | "main-950"
58
+ // Success colors
59
+ | "success-50"
60
+ | "success-100"
61
+ | "success-200"
62
+ | "success-300"
63
+ | "success-400"
64
+ | "success-500"
65
+ | "success-600"
66
+ | "success-700"
67
+ | "success-800"
68
+ | "success-900"
69
+ | "success-950"
70
+ // Accent colors
71
+ | "accent-50"
72
+ | "accent-100"
73
+ | "accent-200"
74
+ | "accent-300"
75
+ | "accent-400"
76
+ | "accent-500"
77
+ | "accent-600"
78
+ | "accent-700"
79
+ | "accent-800"
80
+ | "accent-900"
81
+ | "accent-950"
82
+ // Error colors
83
+ | "error-50"
84
+ | "error-100"
85
+ | "error-200"
86
+ | "error-300"
87
+ | "error-400"
88
+ | "error-500"
89
+ | "error-600"
90
+ | "error-700"
91
+ | "error-800"
92
+ | "error-900"
93
+ | "error-950"
94
+ // Warning colors
95
+ | "warning-50"
96
+ | "warning-100"
97
+ | "warning-200"
98
+ | "warning-300"
99
+ | "warning-400"
100
+ | "warning-500"
101
+ | "warning-600"
102
+ | "warning-700"
103
+ | "warning-800"
104
+ | "warning-900"
105
+ | "warning-950"
106
+ // Grey colors
107
+ | "grey-50"
108
+ | "grey-100"
109
+ | "grey-200"
110
+ | "grey-300"
111
+ | "grey-400"
112
+ | "grey-500"
113
+ | "grey-600"
114
+ | "grey-700"
115
+ | "grey-800"
116
+ | "grey-900"
117
+ | "grey-950"
118
+
119
+ export const textVariantClasses: Record<TextVariant, string> = {
120
+ h1: "font-extrabold text-[64px] leading-[1.3] tracking-normal font-sans",
121
+ h2: "font-bold text-[48px] leading-[1.3] tracking-normal font-sans",
122
+ h3: "font-bold text-[32px] leading-[1.3] tracking-normal font-sans",
123
+ h4: "font-bold text-[24px] leading-[1.2] tracking-[-0.48px] font-sans",
124
+ h5: "font-bold text-[20px] leading-[1.3] tracking-normal font-sans",
125
+ h6: "font-semibold text-[20px] leading-[1.3] tracking-normal font-sans",
126
+ subtitle1: "font-semibold text-[20px] leading-[1.3] tracking-normal font-sans",
127
+ subtitle2: "font-semibold text-[18px] leading-[1.3] tracking-normal font-sans",
128
+ subtitle3: "font-semibold text-[16px] leading-[1.3] tracking-normal font-sans",
129
+ body1: "font-normal text-[16px] leading-[1.3] tracking-normal font-sans",
130
+ body2: "font-normal text-[14px] leading-[1.3] tracking-normal font-sans",
131
+ body3: "font-normal text-[12px] leading-[1.3] tracking-normal font-sans",
132
+ caption: "font-light text-[12px] leading-[1.3] tracking-normal font-sans",
133
+ subtitle1Medium: "font-medium text-[20px] leading-[1.3] tracking-normal font-sans",
134
+ subtitle1Bold: "font-bold text-[20px] leading-[1.3] tracking-normal font-sans",
135
+ subtitle1SemiBold: "font-semibold text-[20px] leading-[1.3] tracking-normal font-sans",
136
+ subtitle2Medium: "font-medium text-[18px] leading-[1.3] tracking-normal font-sans",
137
+ subtitle2Bold: "font-bold text-[18px] leading-[1.3] tracking-normal font-sans",
138
+ subtitle2SemiBold: "font-semibold text-[18px] leading-[1.3] tracking-normal font-sans",
139
+ subtitle3Medium: "font-medium text-[16px] leading-[1.3] tracking-normal font-sans",
140
+ subtitle3Bold: "font-bold text-[16px] leading-[1.3] tracking-normal font-sans",
141
+ subtitle3SemiBold: "font-semibold text-[16px] leading-[1.3] tracking-normal font-sans",
142
+ body1Medium: "font-medium text-[16px] leading-[1.3] tracking-normal font-sans",
143
+ body1Bold: "font-bold text-[16px] leading-[1.3] tracking-normal font-sans",
144
+ body1SemiBold: "font-semibold text-[16px] leading-[1.3] tracking-normal font-sans",
145
+ body2Medium: "font-medium text-[14px] leading-[1.3] tracking-normal font-sans",
146
+ body2Bold: "font-bold text-[14px] leading-[1.3] tracking-normal font-sans",
147
+ body2SemiBold: "font-semibold text-[14px] leading-[1.3] tracking-normal font-sans",
148
+ body3Medium: "font-medium text-[12px] leading-[1.3] tracking-normal font-sans",
149
+ body3Bold: "font-bold text-[12px] leading-[1.3] tracking-normal font-sans",
150
+ body3SemiBold: "font-semibold text-[12px] leading-[1.3] tracking-normal font-sans",
151
+ captionMedium: "font-medium text-[12px] leading-[1.3] tracking-normal font-sans",
152
+ captionBold: "font-bold text-[12px] leading-[1.3] tracking-normal font-sans",
153
+ captionSemiBold: "font-semibold text-[12px] leading-[1.3] tracking-normal font-sans",
154
+ subtitle1Light: "font-light text-[20px] leading-[1.3] tracking-normal font-sans",
155
+ subtitle2Light: "font-light text-[18px] leading-[1.3] tracking-normal font-sans",
156
+ subtitle3Light: "font-light text-[16px] leading-[1.3] tracking-normal font-sans",
157
+ body1Light: "font-light text-[16px] leading-[1.3] tracking-normal font-sans",
158
+ body2Light: "font-light text-[14px] leading-[1.3] tracking-normal font-sans",
159
+ body3Light: "font-light text-[12px] leading-[1.3] tracking-normal font-sans",
160
+ captionLight: "font-light text-[12px] leading-[1.3] tracking-normal font-sans",
161
+ }
162
+
163
+ export const textColorClasses: Record<TextColor, string> = {
164
+ default: "text-main-800",
165
+ // Main colors
166
+ "main-50": "text-main-50",
167
+ "main-100": "text-main-100",
168
+ "main-200": "text-main-200",
169
+ "main-300": "text-main-300",
170
+ "main-400": "text-main-400",
171
+ "main-500": "text-main-500",
172
+ "main-600": "text-main-600",
173
+ "main-700": "text-main-700",
174
+ "main-800": "text-main-800",
175
+ "main-900": "text-main-900",
176
+ "main-950": "text-main-950",
177
+ // Success colors
178
+ "success-50": "text-success-50",
179
+ "success-100": "text-success-100",
180
+ "success-200": "text-success-200",
181
+ "success-300": "text-success-300",
182
+ "success-400": "text-success-400",
183
+ "success-500": "text-success-500",
184
+ "success-600": "text-success-600",
185
+ "success-700": "text-success-700",
186
+ "success-800": "text-success-800",
187
+ "success-900": "text-success-900",
188
+ "success-950": "text-success-950",
189
+ // Accent colors
190
+ "accent-50": "text-accent-50",
191
+ "accent-100": "text-accent-100",
192
+ "accent-200": "text-accent-200",
193
+ "accent-300": "text-accent-300",
194
+ "accent-400": "text-accent-400",
195
+ "accent-500": "text-accent-500",
196
+ "accent-600": "text-accent-600",
197
+ "accent-700": "text-accent-700",
198
+ "accent-800": "text-accent-800",
199
+ "accent-900": "text-accent-900",
200
+ "accent-950": "text-accent-950",
201
+ // Error colors
202
+ "error-50": "text-error-50",
203
+ "error-100": "text-error-100",
204
+ "error-200": "text-error-200",
205
+ "error-300": "text-error-300",
206
+ "error-400": "text-error-400",
207
+ "error-500": "text-error-500",
208
+ "error-600": "text-error-600",
209
+ "error-700": "text-error-700",
210
+ "error-800": "text-error-800",
211
+ "error-900": "text-error-900",
212
+ "error-950": "text-error-950",
213
+ // Warning colors
214
+ "warning-50": "text-warning-50",
215
+ "warning-100": "text-warning-100",
216
+ "warning-200": "text-warning-200",
217
+ "warning-300": "text-warning-300",
218
+ "warning-400": "text-warning-400",
219
+ "warning-500": "text-warning-500",
220
+ "warning-600": "text-warning-600",
221
+ "warning-700": "text-warning-700",
222
+ "warning-800": "text-warning-800",
223
+ "warning-900": "text-warning-900",
224
+ "warning-950": "text-warning-950",
225
+ // Grey colors
226
+ "grey-50": "text-grey-50",
227
+ "grey-100": "text-grey-100",
228
+ "grey-200": "text-grey-200",
229
+ "grey-300": "text-grey-300",
230
+ "grey-400": "text-grey-400",
231
+ "grey-500": "text-grey-500",
232
+ "grey-600": "text-grey-600",
233
+ "grey-700": "text-grey-700",
234
+ "grey-800": "text-grey-800",
235
+ "grey-900": "text-grey-900",
236
+ "grey-950": "text-grey-950",
237
+ }
package/lib/utils.ts ADDED
@@ -0,0 +1,15 @@
1
+ import { type ClassValue, clsx } from "clsx"
2
+ import { twMerge } from "tailwind-merge"
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs))
6
+ }
7
+
8
+ export async function copyToClipboard(text: string): Promise<boolean> {
9
+ try {
10
+ await navigator.clipboard.writeText(text)
11
+ return true
12
+ } catch {
13
+ return false
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2v2ai/uikit",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
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",
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "module": "ESNext",
5
+ "lib": ["esnext", "dom"],
6
+ "jsx": "react-jsx",
7
+ "declaration": true,
8
+ "outDir": "../dist",
9
+ "rootDir": "./",
10
+ "noEmit": false,
11
+ "strict": true,
12
+ "noUnusedLocals": true,
13
+ "noUnusedParameters": true,
14
+ "moduleResolution": "bundler",
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "forceConsistentCasingInFileNames": true,
18
+ "resolveJsonModule": true,
19
+ "verbatimModuleSyntax": true
20
+ },
21
+ "exclude": ["node_modules", "**/*.stories.tsx"]
22
+ }
package/Alert/Alert.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- type AlertVariant = "default" | "destructive" | "success" | "warning" | "info";
3
- declare const alertVariants: (props?: ({
4
- variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
7
- variant?: AlertVariant;
8
- }
9
- declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
10
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
11
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
12
- export { Alert, AlertTitle, AlertDescription, alertVariants };
13
- export type { AlertVariant };
package/Alert/Alert.js DELETED
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { cva } from "class-variance-authority";
4
- import { cn } from "../lib/utils";
5
- const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current [&>svg~*]:pl-7", {
6
- variants: {
7
- variant: {
8
- default: "bg-white text-main-950 border-grey-200",
9
- destructive: "border-error-200 bg-error-50 text-error-700 [&>svg]:text-error-600",
10
- success: "border-success-200 bg-success-50 text-success-700 [&>svg]:text-success-600",
11
- warning: "border-warning-200 bg-warning-50 text-warning-700 [&>svg]:text-warning-600",
12
- info: "border-accent-200 bg-accent-50 text-accent-700 [&>svg]:text-accent-600",
13
- },
14
- },
15
- defaultVariants: {
16
- variant: "default",
17
- },
18
- });
19
- const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (_jsx("div", { ref: ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props })));
20
- Alert.displayName = "Alert";
21
- const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h5", { ref: ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })));
22
- AlertTitle.displayName = "AlertTitle";
23
- const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })));
24
- AlertDescription.displayName = "AlertDescription";
25
- export { Alert, AlertTitle, AlertDescription, alertVariants };