@lotte-innovate/ui-component-test 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (271) hide show
  1. package/package.json +5 -7
  2. package/dist/index.d.ts +0 -2
  3. package/dist/index.js +0 -2
  4. package/dist/lib/Typography/Header/index.d.ts +0 -13
  5. package/dist/lib/Typography/Header/index.jsx +0 -58
  6. package/dist/lib/Typography/Text/index.d.ts +0 -15
  7. package/dist/lib/Typography/Text/index.jsx +0 -47
  8. package/dist/lib/Typography/index.d.ts +0 -2
  9. package/dist/lib/Typography/index.js +0 -2
  10. package/dist/lib/color/alpha.d.ts +0 -784
  11. package/dist/lib/color/alpha.js +0 -784
  12. package/dist/lib/color/constants.d.ts +0 -20
  13. package/dist/lib/color/constants.js +0 -200
  14. package/dist/lib/color/dark.d.ts +0 -392
  15. package/dist/lib/color/dark.js +0 -392
  16. package/dist/lib/color/krdsColors.d.ts +0 -309
  17. package/dist/lib/color/krdsColors.js +0 -309
  18. package/dist/lib/color/light.d.ts +0 -392
  19. package/dist/lib/color/light.js +0 -393
  20. package/dist/lib/components/Accordion/index.d.ts +0 -16
  21. package/dist/lib/components/Accordion/index.jsx +0 -70
  22. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
  23. package/dist/lib/components/AlertDialog/AlertDialogAction.jsx +0 -60
  24. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
  25. package/dist/lib/components/AlertDialog/AlertDialogCancel.jsx +0 -57
  26. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +0 -11
  27. package/dist/lib/components/AlertDialog/AlertDialogContent.jsx +0 -53
  28. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +0 -10
  29. package/dist/lib/components/AlertDialog/AlertDialogDescription.jsx +0 -35
  30. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +0 -10
  31. package/dist/lib/components/AlertDialog/AlertDialogTitle.jsx +0 -35
  32. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
  33. package/dist/lib/components/AlertDialog/AlertDialogTrigger.jsx +0 -56
  34. package/dist/lib/components/AlertDialog/index.d.ts +0 -20
  35. package/dist/lib/components/AlertDialog/index.jsx +0 -27
  36. package/dist/lib/components/AspectRatio/index.d.ts +0 -10
  37. package/dist/lib/components/AspectRatio/index.jsx +0 -43
  38. package/dist/lib/components/Avatar/index.d.ts +0 -17
  39. package/dist/lib/components/Avatar/index.jsx +0 -61
  40. package/dist/lib/components/Badge/index.d.ts +0 -18
  41. package/dist/lib/components/Badge/index.jsx +0 -55
  42. package/dist/lib/components/BubbleChart/index.d.ts +0 -32
  43. package/dist/lib/components/BubbleChart/index.jsx +0 -43
  44. package/dist/lib/components/Button/index.d.ts +0 -16
  45. package/dist/lib/components/Button/index.jsx +0 -57
  46. package/dist/lib/components/Callout/CalloutIcon.d.ts +0 -12
  47. package/dist/lib/components/Callout/CalloutIcon.jsx +0 -62
  48. package/dist/lib/components/Callout/CalloutText.d.ts +0 -10
  49. package/dist/lib/components/Callout/CalloutText.jsx +0 -42
  50. package/dist/lib/components/Callout/index.d.ts +0 -20
  51. package/dist/lib/components/Callout/index.jsx +0 -78
  52. package/dist/lib/components/Card/index.d.ts +0 -14
  53. package/dist/lib/components/Card/index.jsx +0 -65
  54. package/dist/lib/components/Checkbox/index.d.ts +0 -17
  55. package/dist/lib/components/Checkbox/index.jsx +0 -97
  56. package/dist/lib/components/CheckboxCard/index.d.ts +0 -20
  57. package/dist/lib/components/CheckboxCard/index.jsx +0 -60
  58. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
  59. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.jsx +0 -25
  60. package/dist/lib/components/CheckboxGroup/index.d.ts +0 -17
  61. package/dist/lib/components/CheckboxGroup/index.jsx +0 -38
  62. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -4
  63. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.jsx +0 -33
  64. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +0 -11
  65. package/dist/lib/components/ContextMenu/ContextMenuContent.jsx +0 -59
  66. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +0 -4
  67. package/dist/lib/components/ContextMenu/ContextMenuGroup.jsx +0 -20
  68. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +0 -13
  69. package/dist/lib/components/ContextMenu/ContextMenuItem.jsx +0 -61
  70. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -10
  71. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.jsx +0 -51
  72. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +0 -11
  73. package/dist/lib/components/ContextMenu/ContextMenuLabel.jsx +0 -49
  74. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -8
  75. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.jsx +0 -23
  76. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -4
  77. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.jsx +0 -34
  78. package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +0 -3
  79. package/dist/lib/components/ContextMenu/ContextMenuSeparator.jsx +0 -21
  80. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +0 -11
  81. package/dist/lib/components/ContextMenu/ContextMenuSubContent.jsx +0 -56
  82. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -4
  83. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.jsx +0 -35
  84. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +0 -4
  85. package/dist/lib/components/ContextMenu/ContextMenuTrigger.jsx +0 -21
  86. package/dist/lib/components/ContextMenu/index.d.ts +0 -25
  87. package/dist/lib/components/ContextMenu/index.jsx +0 -46
  88. package/dist/lib/components/DataList/DataListItem.d.ts +0 -9
  89. package/dist/lib/components/DataList/DataListItem.jsx +0 -44
  90. package/dist/lib/components/DataList/DataListLabel.d.ts +0 -10
  91. package/dist/lib/components/DataList/DataListLabel.jsx +0 -50
  92. package/dist/lib/components/DataList/DataListValue.d.ts +0 -11
  93. package/dist/lib/components/DataList/DataListValue.jsx +0 -52
  94. package/dist/lib/components/DataList/index.d.ts +0 -17
  95. package/dist/lib/components/DataList/index.jsx +0 -49
  96. package/dist/lib/components/Dialog/DialogAction.d.ts +0 -15
  97. package/dist/lib/components/Dialog/DialogAction.jsx +0 -47
  98. package/dist/lib/components/Dialog/DialogCancel.d.ts +0 -11
  99. package/dist/lib/components/Dialog/DialogCancel.jsx +0 -43
  100. package/dist/lib/components/Dialog/DialogContent.d.ts +0 -11
  101. package/dist/lib/components/Dialog/DialogContent.jsx +0 -56
  102. package/dist/lib/components/Dialog/DialogDescription.d.ts +0 -9
  103. package/dist/lib/components/Dialog/DialogDescription.jsx +0 -35
  104. package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -9
  105. package/dist/lib/components/Dialog/DialogSlot.jsx +0 -34
  106. package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -11
  107. package/dist/lib/components/Dialog/DialogTitle.jsx +0 -35
  108. package/dist/lib/components/Dialog/DialogTrigger.d.ts +0 -3
  109. package/dist/lib/components/Dialog/DialogTrigger.jsx +0 -20
  110. package/dist/lib/components/Dialog/index.d.ts +0 -18
  111. package/dist/lib/components/Dialog/index.jsx +0 -28
  112. package/dist/lib/components/DoughnutChart/index.d.ts +0 -24
  113. package/dist/lib/components/DoughnutChart/index.jsx +0 -46
  114. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -8
  115. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.jsx +0 -23
  116. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -11
  117. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.jsx +0 -61
  118. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -7
  119. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +0 -31
  120. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +0 -11
  121. package/dist/lib/components/DropdownMenu/DropdownMenuContent.jsx +0 -57
  122. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -13
  123. package/dist/lib/components/DropdownMenu/DropdownMenuItem.jsx +0 -58
  124. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -10
  125. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.jsx +0 -47
  126. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -11
  127. package/dist/lib/components/DropdownMenu/DropdownMenuLable.jsx +0 -47
  128. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -4
  129. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.jsx +0 -32
  130. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -3
  131. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.jsx +0 -19
  132. package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
  133. package/dist/lib/components/DropdownMenu/DropdownMenuSub.jsx +0 -18
  134. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -4
  135. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.jsx +0 -31
  136. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -13
  137. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.jsx +0 -41
  138. package/dist/lib/components/DropdownMenu/index.d.ts +0 -23
  139. package/dist/lib/components/DropdownMenu/index.jsx +0 -31
  140. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
  141. package/dist/lib/components/HoverCard/HoverCardContent.jsx +0 -60
  142. package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +0 -3
  143. package/dist/lib/components/HoverCard/HoverCardTrigger.jsx +0 -20
  144. package/dist/lib/components/HoverCard/index.d.ts +0 -10
  145. package/dist/lib/components/HoverCard/index.jsx +0 -23
  146. package/dist/lib/components/IconButton/index.d.ts +0 -15
  147. package/dist/lib/components/IconButton/index.jsx +0 -64
  148. package/dist/lib/components/Inset/index.d.ts +0 -10
  149. package/dist/lib/components/Inset/index.jsx +0 -53
  150. package/dist/lib/components/Label/index.d.ts +0 -17
  151. package/dist/lib/components/Label/index.jsx +0 -54
  152. package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +0 -4
  153. package/dist/lib/components/Menubar/MenubarCheckboxItem.jsx +0 -31
  154. package/dist/lib/components/Menubar/MenubarContent.d.ts +0 -11
  155. package/dist/lib/components/Menubar/MenubarContent.jsx +0 -63
  156. package/dist/lib/components/Menubar/MenubarItem.d.ts +0 -13
  157. package/dist/lib/components/Menubar/MenubarItem.jsx +0 -56
  158. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +0 -10
  159. package/dist/lib/components/Menubar/MenubarItemIndicator.jsx +0 -50
  160. package/dist/lib/components/Menubar/MenubarMenu.d.ts +0 -2
  161. package/dist/lib/components/Menubar/MenubarMenu.jsx +0 -18
  162. package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +0 -8
  163. package/dist/lib/components/Menubar/MenubarRadioGroup.jsx +0 -23
  164. package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +0 -4
  165. package/dist/lib/components/Menubar/MenubarRadioItem.jsx +0 -33
  166. package/dist/lib/components/Menubar/MenubarSeparator.d.ts +0 -3
  167. package/dist/lib/components/Menubar/MenubarSeparator.jsx +0 -21
  168. package/dist/lib/components/Menubar/MenubarSub.d.ts +0 -3
  169. package/dist/lib/components/Menubar/MenubarSub.jsx +0 -18
  170. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +0 -10
  171. package/dist/lib/components/Menubar/MenubarSubContent.jsx +0 -52
  172. package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +0 -4
  173. package/dist/lib/components/Menubar/MenubarSubTrigger.jsx +0 -34
  174. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +0 -12
  175. package/dist/lib/components/Menubar/MenubarTrigger.jsx +0 -58
  176. package/dist/lib/components/Menubar/index.d.ts +0 -31
  177. package/dist/lib/components/Menubar/index.jsx +0 -76
  178. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +0 -11
  179. package/dist/lib/components/NavigationMenu/NavigationMenuContent.jsx +0 -49
  180. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -3
  181. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  182. package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +0 -3
  183. package/dist/lib/components/NavigationMenu/NavigationMenuItem.jsx +0 -20
  184. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +0 -13
  185. package/dist/lib/components/NavigationMenu/NavigationMenuLink.jsx +0 -52
  186. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +0 -12
  187. package/dist/lib/components/NavigationMenu/NavigationMenuList.jsx +0 -49
  188. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -13
  189. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.jsx +0 -60
  190. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -12
  191. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.jsx +0 -54
  192. package/dist/lib/components/NavigationMenu/index.d.ts +0 -21
  193. package/dist/lib/components/NavigationMenu/index.jsx +0 -42
  194. package/dist/lib/components/PieChart/index.d.ts +0 -24
  195. package/dist/lib/components/PieChart/index.jsx +0 -46
  196. package/dist/lib/components/Popover/PopoverClose.d.ts +0 -9
  197. package/dist/lib/components/Popover/PopoverClose.jsx +0 -36
  198. package/dist/lib/components/Popover/PopoverContent.d.ts +0 -11
  199. package/dist/lib/components/Popover/PopoverContent.jsx +0 -64
  200. package/dist/lib/components/Popover/PopoverTrigger.d.ts +0 -3
  201. package/dist/lib/components/Popover/PopoverTrigger.jsx +0 -20
  202. package/dist/lib/components/Popover/index.d.ts +0 -12
  203. package/dist/lib/components/Popover/index.jsx +0 -24
  204. package/dist/lib/components/Progress/index.d.ts +0 -16
  205. package/dist/lib/components/Progress/index.jsx +0 -58
  206. package/dist/lib/components/RadarChart/index.d.ts +0 -35
  207. package/dist/lib/components/RadarChart/index.jsx +0 -43
  208. package/dist/lib/components/Radio/index.d.ts +0 -14
  209. package/dist/lib/components/Radio/index.jsx +0 -46
  210. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +0 -10
  211. package/dist/lib/components/RadioCards/RadioCardsItem.jsx +0 -42
  212. package/dist/lib/components/RadioCards/index.d.ts +0 -14
  213. package/dist/lib/components/RadioCards/index.jsx +0 -46
  214. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
  215. package/dist/lib/components/RadioGroup/RadioGroupItem.jsx +0 -34
  216. package/dist/lib/components/RadioGroup/index.d.ts +0 -16
  217. package/dist/lib/components/RadioGroup/index.jsx +0 -43
  218. package/dist/lib/components/ScrollArea/index.d.ts +0 -9
  219. package/dist/lib/components/ScrollArea/index.jsx +0 -28
  220. package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +0 -6
  221. package/dist/lib/components/SegmentedControl/SegmentedControlItem.jsx +0 -25
  222. package/dist/lib/components/SegmentedControl/index.d.ts +0 -15
  223. package/dist/lib/components/SegmentedControl/index.jsx +0 -51
  224. package/dist/lib/components/Select/index.d.ts +0 -25
  225. package/dist/lib/components/Select/index.jsx +0 -100
  226. package/dist/lib/components/Separator/index.d.ts +0 -11
  227. package/dist/lib/components/Separator/index.jsx +0 -50
  228. package/dist/lib/components/Skeleton/index.d.ts +0 -15
  229. package/dist/lib/components/Skeleton/index.jsx +0 -46
  230. package/dist/lib/components/Slider/index.d.ts +0 -15
  231. package/dist/lib/components/Slider/index.jsx +0 -51
  232. package/dist/lib/components/Spinner/index.d.ts +0 -15
  233. package/dist/lib/components/Spinner/index.jsx +0 -50
  234. package/dist/lib/components/TabNav/index.d.ts +0 -11
  235. package/dist/lib/components/TabNav/index.jsx +0 -40
  236. package/dist/lib/components/Table/index.d.ts +0 -21
  237. package/dist/lib/components/Table/index.jsx +0 -104
  238. package/dist/lib/components/Tabs/index.d.ts +0 -16
  239. package/dist/lib/components/Tabs/index.jsx +0 -68
  240. package/dist/lib/components/TextArea/index.d.ts +0 -16
  241. package/dist/lib/components/TextArea/index.jsx +0 -59
  242. package/dist/lib/components/TextField/index.d.ts +0 -18
  243. package/dist/lib/components/TextField/index.jsx +0 -58
  244. package/dist/lib/components/Toast/ToastActionButton.d.ts +0 -14
  245. package/dist/lib/components/Toast/ToastActionButton.jsx +0 -68
  246. package/dist/lib/components/Toast/ToastDescription.d.ts +0 -13
  247. package/dist/lib/components/Toast/ToastDescription.jsx +0 -45
  248. package/dist/lib/components/Toast/ToastTitle.d.ts +0 -13
  249. package/dist/lib/components/Toast/ToastTitle.jsx +0 -43
  250. package/dist/lib/components/Toast/index.d.ts +0 -30
  251. package/dist/lib/components/Toast/index.jsx +0 -100
  252. package/dist/lib/components/Toggle/ToggleWithText.d.ts +0 -21
  253. package/dist/lib/components/Toggle/ToggleWithText.jsx +0 -59
  254. package/dist/lib/components/Toggle/index.d.ts +0 -21
  255. package/dist/lib/components/Toggle/index.jsx +0 -59
  256. package/dist/lib/components/ToggleGroup/index.d.ts +0 -20
  257. package/dist/lib/components/ToggleGroup/index.jsx +0 -46
  258. package/dist/lib/components/ToggleGroup/toggleGroupItem.d.ts +0 -17
  259. package/dist/lib/components/ToggleGroup/toggleGroupItem.jsx +0 -42
  260. package/dist/lib/components/ToggleSwitch/index.d.ts +0 -13
  261. package/dist/lib/components/ToggleSwitch/index.jsx +0 -75
  262. package/dist/lib/components/Tooltip/index.d.ts +0 -20
  263. package/dist/lib/components/Tooltip/index.jsx +0 -58
  264. package/dist/lib/components/index.d.ts +0 -46
  265. package/dist/lib/components/index.js +0 -48
  266. package/dist/lib/constants.d.ts +0 -185
  267. package/dist/lib/constants.js +0 -569
  268. package/dist/lib/types.d.ts +0 -11
  269. package/dist/lib/types.js +0 -1
  270. package/dist/lib/utils/utils.d.ts +0 -3
  271. package/dist/lib/utils/utils.js +0 -27
@@ -1,53 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
- import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants, scalingVariants } from 'lib/constants';
28
- export var alertDialogContentVariants = cva("fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]", {
29
- variants: {
30
- size: {
31
- small: 'p-3 w-[300px]',
32
- medium: 'p-4 w-[400px]',
33
- large: 'p-5 w-[500px]',
34
- 'x-large': 'p-6 w-[600px]',
35
- },
36
- scaling: __assign({}, scalingVariants),
37
- radius: __assign({}, radiusVariants['extra-large']),
38
- },
39
- defaultVariants: {
40
- radius: 'large',
41
- size: 'large',
42
- },
43
- });
44
- export var AlertDialogContent = forwardRef(function (_a, ref) {
45
- var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "children", "radius", "size", "scaling"]);
46
- return (<AlertDialogPrimitive.Portal>
47
- <AlertDialogPrimitive.Overlay className="fixed data-[state=open]:animate-overlayShow inset-0"/>
48
- <AlertDialogPrimitive.Content className={cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className)} ref={ref} {...props}>
49
- {children}
50
- </AlertDialogPrimitive.Content>
51
- </AlertDialogPrimitive.Portal>);
52
- });
53
- AlertDialogContent.displayName = 'AlertDialogContent';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { VariantProps } from 'class-variance-authority';
4
- export interface AlertDialogDescriptionProps extends VariantProps<typeof alertDialogDescriptionVariants> {
5
- contentText?: string;
6
- }
7
- export declare const alertDialogDescriptionVariants: (props?: ({
8
- size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
- export declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
@@ -1,35 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React, { forwardRef } from 'react';
13
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
- import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
16
- export var alertDialogDescriptionVariants = cva("text-slate-12 dark:text-slateDark-12 font-normal", {
17
- variants: {
18
- size: {
19
- small: 'text-xs mb-3',
20
- medium: 'text-sm mb-4',
21
- large: 'text-base mb-5',
22
- 'x-large': 'text-lg mb-6',
23
- },
24
- },
25
- defaultVariants: {
26
- size: 'medium',
27
- },
28
- });
29
- export var AlertDialogDescription = forwardRef(function (_a, ref) {
30
- var className = _a.className, children = _a.children, size = _a.size, contentText = _a.contentText, props = __rest(_a, ["className", "children", "size", "contentText"]);
31
- return (<AlertDialogPrimitive.Description className={cn(alertDialogDescriptionVariants({ size: size }), className)} ref={ref} {...props}>
32
- {contentText !== null && contentText !== void 0 ? contentText : children}
33
- </AlertDialogPrimitive.Description>);
34
- });
35
- AlertDialogDescription.displayName = 'AlertDialogDescription';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { VariantProps } from 'class-variance-authority';
4
- export interface AlertDialogTitleProps extends VariantProps<typeof alertDialogTitleVariants> {
5
- titleText?: string;
6
- }
7
- export declare const alertDialogTitleVariants: (props?: ({
8
- size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
- export declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
@@ -1,35 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React, { forwardRef } from 'react';
13
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
- import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
16
- export var alertDialogTitleVariants = cva("m-0 text-slate-12 dark:text-slateDark-12 font-bold", {
17
- variants: {
18
- size: {
19
- small: 'text-sm mb-1',
20
- medium: 'text-lg mb-2',
21
- large: 'text-xl mb-3',
22
- 'x-large': 'text-2xl mb-4',
23
- },
24
- },
25
- defaultVariants: {
26
- size: 'large',
27
- },
28
- });
29
- export var AlertDialogTitle = forwardRef(function (_a, ref) {
30
- var className = _a.className, children = _a.children, size = _a.size, titleText = _a.titleText, props = __rest(_a, ["className", "children", "size", "titleText"]);
31
- return (<AlertDialogPrimitive.Title className={cn(alertDialogTitleVariants({ size: size }), className)} ref={ref} {...props}>
32
- {titleText !== null && titleText !== void 0 ? titleText : children}
33
- </AlertDialogPrimitive.Title>);
34
- });
35
- AlertDialogTitle.displayName = 'AlertDialogTitle';
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance, IColor } from 'lib/types';
5
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
6
- color?: IColor;
7
- appearance?: IAppearance;
8
- }
9
- declare const buttonVariants: (props?: ({
10
- radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
11
- size?: "small" | "medium" | "large" | "x-large" | null | undefined;
12
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
- weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
14
- color?: string | null | undefined;
15
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
- export declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
- export {};
@@ -1,56 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
- import { cva } from 'class-variance-authority';
26
- import { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from 'lib/constants';
27
- import { cn } from 'lib/utils/utils';
28
- var buttonVariants = cva("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8", {
29
- variants: {
30
- radius: __assign({}, radiusVariants['base']),
31
- size: {
32
- small: 'text-xs h-[24px] px-2',
33
- medium: 'text-sm h-[32px] px-3',
34
- large: 'text-base h-[40px] px-4',
35
- 'x-large': 'text-lg h-[48px] px-6',
36
- },
37
- scaling: __assign({}, scalingVariants),
38
- weight: __assign({}, weightVariants),
39
- color: primaryColorStyle(),
40
- },
41
- defaultVariants: {
42
- radius: 'large',
43
- scaling: '100%',
44
- weight: 'medium',
45
- color: 'red',
46
- size: 'large',
47
- },
48
- });
49
- export var AlertDialogTrigger = forwardRef(function (_a, ref) {
50
- var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "weight", "color", "appearance"]);
51
- var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
52
- return (<AlertDialogPrimitive.Trigger asChild ref={ref} className={buttonClassName} {...props}>
53
- {children}
54
- </AlertDialogPrimitive.Trigger>);
55
- });
56
- AlertDialogTrigger.displayName = 'AlertDialogTrigger';
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { alertDialogContentVariants } from './AlertDialogContent';
5
- import { alertDialogTitleVariants } from './AlertDialogTitle';
6
- import { alertDialogDescriptionVariants } from './AlertDialogDescription';
7
- import { IColor } from 'lib/types';
8
- export * from './AlertDialogTrigger';
9
- export * from './AlertDialogContent';
10
- export * from './AlertDialogTitle';
11
- export * from './AlertDialogDescription';
12
- export * from './AlertDialogCancel';
13
- export * from './AlertDialogAction';
14
- export interface AlertDialogProps extends VariantProps<typeof alertDialogContentVariants>, VariantProps<typeof alertDialogTitleVariants>, VariantProps<typeof alertDialogDescriptionVariants> {
15
- titleText?: string;
16
- contentText?: string;
17
- color?: IColor;
18
- }
19
- export declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogProps & AlertDialogProps & React.RefAttributes<never>>;
20
- export default AlertDialog;
@@ -1,27 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React, { forwardRef } from 'react';
13
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
- export * from './AlertDialogTrigger';
15
- export * from './AlertDialogContent';
16
- export * from './AlertDialogTitle';
17
- export * from './AlertDialogDescription';
18
- export * from './AlertDialogCancel';
19
- export * from './AlertDialogAction';
20
- export var AlertDialog = forwardRef(function (_a, ref) {
21
- var children = _a.children, props = __rest(_a, ["children"]);
22
- return (<div ref={ref}>
23
- <AlertDialogPrimitive.Root {...props}>{children}</AlertDialogPrimitive.Root>
24
- </div>);
25
- });
26
- AlertDialog.displayName = 'AlertDialog';
27
- export default AlertDialog;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
3
- import { VariantProps } from 'class-variance-authority';
4
- export interface AspectRatioProps extends VariantProps<typeof aspectRatioVariants> {
5
- }
6
- export declare const aspectRatioVariants: (props?: ({
7
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
8
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
- declare const AspectRatio: React.ForwardRefExoticComponent<Omit<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>, "ref"> & AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
10
- export default AspectRatio;
@@ -1,43 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
25
- import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { scalingVariants } from 'lib/constants';
28
- export var aspectRatioVariants = cva('', {
29
- variants: {
30
- scaling: __assign({}, scalingVariants),
31
- },
32
- defaultVariants: {
33
- scaling: '100%',
34
- },
35
- });
36
- var AspectRatio = forwardRef(function (_a, ref) {
37
- var children = _a.children, className = _a.className, _b = _a.ratio, ratio = _b === void 0 ? 16 / 9 : _b, scaling = _a.scaling, props = __rest(_a, ["children", "className", "ratio", "scaling"]);
38
- return (<AspectRatioPrimitive.Root ratio={ratio} ref={ref} {...props} className={cn(aspectRatioVariants({ scaling: scaling }), className)}>
39
- {children}
40
- </AspectRatioPrimitive.Root>);
41
- });
42
- AspectRatio.displayName = 'AspectRatio';
43
- export default AspectRatio;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- export interface AvatarProps extends VariantProps<typeof AvatarVariants> {
4
- imagePath?: string;
5
- alt?: string;
6
- fallbackText?: string;
7
- appearance?: 'solid' | 'soft';
8
- fallbackClassName?: string;
9
- }
10
- declare const AvatarVariants: (props?: ({
11
- radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
12
- size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | null | undefined;
13
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
14
- color?: string | null | undefined;
15
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
- declare const Avatar: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & AvatarProps & React.RefAttributes<HTMLSpanElement>>;
17
- export default Avatar;
@@ -1,61 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
25
- import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants } from 'lib/constants';
28
- var AvatarVariants = cva('font-medium', {
29
- variants: {
30
- radius: __assign({}, radiusVariants['base']),
31
- size: {
32
- '1': 'h-[24px] w-[24px] text-[12px]',
33
- '2': 'h-[32px] w-[32px] text-[14px]',
34
- '3': 'h-[40px] w-[40px] text-[16px]',
35
- '4': 'h-[48px] w-[48px] text-[18px]',
36
- '5': 'h-[64px] w-[64px] text-[24px]',
37
- '6': 'h-[80px] w-[80px] text-[28px]',
38
- '7': 'h-[96px] w-[96px] text-[28px]',
39
- '8': 'h-[128px] w-[128px] text-[35px]',
40
- '9': 'h-[160px] w-[160px] text-[60px]',
41
- },
42
- scaling: __assign({}, scalingVariants),
43
- color: primaryColorStyle(),
44
- },
45
- defaultVariants: {
46
- radius: 'full',
47
- color: 'red',
48
- size: '3',
49
- },
50
- });
51
- var Avatar = forwardRef(function (_a, ref) {
52
- var className = _a.className, fallbackClassName = _a.fallbackClassName, radius = _a.radius, scaling = _a.scaling, size = _a.size, fallbackText = _a.fallbackText, imagePath = _a.imagePath, alt = _a.alt, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, props = __rest(_a, ["className", "fallbackClassName", "radius", "scaling", "size", "fallbackText", "imagePath", "alt", "appearance", "color"]);
53
- return (<AvatarPrimitive.Root className={cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className)} {...props} ref={ref}>
54
- <AvatarPrimitive.Image className="h-full w-full object-cover border-none" src={imagePath} alt={alt}/>
55
- <AvatarPrimitive.Fallback className={cn("leading-1 flex h-full w-full items-center justify-center", className)} delayMs={300}>
56
- {fallbackText}
57
- </AvatarPrimitive.Fallback>
58
- </AvatarPrimitive.Root>);
59
- });
60
- Avatar.displayName = 'Avatar';
61
- export default Avatar;
@@ -1,18 +0,0 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { IColor, IAppearance, ISize, IWeight } from 'lib/types';
4
- export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof BadgeVariants> {
5
- color?: IColor;
6
- appearance?: Exclude<IAppearance, 'classic' | 'ghost'>;
7
- size?: Exclude<ISize, 'x-small' | 'x-large'>;
8
- weight?: IWeight;
9
- }
10
- declare const BadgeVariants: (props?: ({
11
- radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
12
- size?: "small" | "medium" | "large" | null | undefined;
13
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
14
- weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
15
- color?: string | null | undefined;
16
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
17
- declare const Badge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & BadgeProps & React.RefAttributes<HTMLDivElement>>;
18
- export default Badge;
@@ -1,55 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants, weightVariants, } from 'lib/constants';
27
- var BadgeVariants = cva('inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2', {
28
- variants: {
29
- radius: __assign({}, radiusVariants['base']),
30
- size: {
31
- small: 'text-xs h-[20px] px-1.5 py-0.5',
32
- medium: 'text-xs h-[24px] px-2 py-1',
33
- large: 'text-sm h-[28px] px-2.5 py-1',
34
- },
35
- scaling: __assign({}, scalingVariants),
36
- weight: __assign({}, weightVariants),
37
- color: primaryColorStyle(),
38
- },
39
- defaultVariants: {
40
- radius: 'medium',
41
- size: 'medium',
42
- scaling: '100%',
43
- weight: 'medium',
44
- color: 'red',
45
- },
46
- });
47
- var Badge = forwardRef(function (_a, ref) {
48
- var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, weight = _a.weight, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "scaling", "weight", "size", "color", "appearance"]);
49
- var badgeClassName = cn(BadgeVariants({ radius: radius, scaling: scaling, weight: weight, size: size, color: color }), appearanceStyle(appearance, color, false), className);
50
- return (<div ref={ref} className={badgeClassName} {...props}>
51
- {children}
52
- </div>);
53
- });
54
- Badge.displayName = 'Badge';
55
- export default Badge;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { PointStyle } from 'lib/types';
3
- import { VariantProps } from 'class-variance-authority';
4
- export interface BubbleChartProps extends VariantProps<typeof bubbleChartVariants> {
5
- datasets: {
6
- label: string;
7
- data: {
8
- x: number;
9
- y: number;
10
- r: number;
11
- }[];
12
- backgroundColor?: string;
13
- borderColor?: string;
14
- borderWidth?: number;
15
- hoverBackgroundColor?: string;
16
- hoverBorderColor?: string;
17
- hoverBorderWidth?: number;
18
- pointStyle?: PointStyle;
19
- }[];
20
- options?: {};
21
- className?: string;
22
- width?: string | number;
23
- height?: string | number;
24
- }
25
- declare const bubbleChartVariants: (props?: ({
26
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
27
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
28
- export declare const BubbleChart: {
29
- ({ className, datasets, scaling, width, height, ...props }: BubbleChartProps): React.JSX.Element;
30
- displayName: string;
31
- };
32
- export default BubbleChart;
@@ -1,43 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React from 'react';
24
- import { Bubble } from 'react-chartjs-2';
25
- import { Chart as ChartJS, LinearScale, PointElement, Tooltip, Legend } from 'chart.js/auto';
26
- import { scalingVariants } from 'lib/constants';
27
- import { cva } from 'class-variance-authority';
28
- import { cn } from 'lib/utils/utils';
29
- ChartJS.register(LinearScale, PointElement, Tooltip, Legend);
30
- var bubbleChartVariants = cva('', {
31
- variants: {
32
- scaling: __assign({}, scalingVariants),
33
- },
34
- defaultVariants: {
35
- scaling: '100%',
36
- },
37
- });
38
- export var BubbleChart = function (_a) {
39
- var className = _a.className, datasets = _a.datasets, scaling = _a.scaling, width = _a.width, height = _a.height, props = __rest(_a, ["className", "datasets", "scaling", "width", "height"]);
40
- return (<Bubble data={{ datasets: datasets }} className={cn(bubbleChartVariants({ scaling: scaling }), className)} width={width} height={height} {...props}/>);
41
- };
42
- BubbleChart.displayName = 'BubbleChart';
43
- export default BubbleChart;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { IAppearance, IColor } from 'lib/types';
4
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
5
- color?: IColor;
6
- appearance?: IAppearance;
7
- }
8
- declare const buttonVariants: (props?: ({
9
- radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
- size?: "small" | "medium" | "large" | "x-small" | "x-large" | null | undefined;
11
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
- weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
13
- color?: string | null | undefined;
14
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
- export declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
- export default Button;
@@ -1,57 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import React, { forwardRef } from 'react';
24
- import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { radiusVariants, weightVariants, primaryColorStyle, appearanceStyle, scalingVariants, } from 'lib/constants';
27
- var buttonVariants = cva("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8 justify-center", {
28
- variants: {
29
- radius: __assign({}, radiusVariants['base']),
30
- size: {
31
- 'x-small': 'text-xs min-w-[36px] h-[20px] px-1.5',
32
- small: 'text-xs min-w-[40px] h-[24px] px-2',
33
- medium: 'text-sm min-w-[50px] h-[32px] px-3',
34
- large: 'text-base min-w-[62px] h-[40px] px-4',
35
- 'x-large': 'text-lg min-w-[82px] h-[48px] px-6',
36
- },
37
- scaling: __assign({}, scalingVariants),
38
- weight: __assign({}, weightVariants),
39
- color: primaryColorStyle(),
40
- },
41
- defaultVariants: {
42
- radius: 'medium',
43
- scaling: '100%',
44
- weight: 'medium',
45
- color: 'red',
46
- size: 'medium',
47
- },
48
- });
49
- export var Button = forwardRef(function (_a, ref) {
50
- var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "scaling", "size", "weight", "color", "appearance"]);
51
- var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color, true), className);
52
- return (<button ref={ref} className={buttonClassName} {...props}>
53
- {children}
54
- </button>);
55
- });
56
- Button.displayName = 'Button';
57
- export default Button;