@lotte-innovate/ui-component-test 0.1.71 → 0.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (462) hide show
  1. package/dist/lib/Typography/Header/index.js +2 -55
  2. package/dist/lib/Typography/Header/index.js.map +1 -0
  3. package/dist/lib/Typography/Text/index.js +2 -44
  4. package/dist/lib/Typography/Text/index.js.map +1 -0
  5. package/dist/lib/color/alpha.js +2 -784
  6. package/dist/lib/color/alpha.js.map +1 -0
  7. package/dist/lib/color/constants.js +2 -296
  8. package/dist/lib/color/constants.js.map +1 -0
  9. package/dist/lib/color/light.js +2 -393
  10. package/dist/lib/color/light.js.map +1 -0
  11. package/dist/lib/components/Accordion/index.js +2 -64
  12. package/dist/lib/components/Accordion/index.js.map +1 -0
  13. package/dist/lib/components/AlertDialog/AlertDialogAction.js +2 -61
  14. package/dist/lib/components/AlertDialog/AlertDialogAction.js.map +1 -0
  15. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -60
  16. package/dist/lib/components/AlertDialog/AlertDialogCancel.js.map +1 -0
  17. package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -51
  18. package/dist/lib/components/AlertDialog/AlertDialogContent.js.map +1 -0
  19. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +2 -47
  20. package/dist/lib/components/AlertDialog/AlertDialogDescription.js.map +1 -0
  21. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +2 -46
  22. package/dist/lib/components/AlertDialog/AlertDialogRoot.js.map +1 -0
  23. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +2 -47
  24. package/dist/lib/components/AlertDialog/AlertDialogTitle.js.map +1 -0
  25. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +2 -55
  26. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js.map +1 -0
  27. package/dist/lib/components/AlertDialog/index.js +2 -17
  28. package/dist/lib/components/AlertDialog/index.js.map +1 -0
  29. package/dist/lib/components/AspectRatio/index.js +2 -42
  30. package/dist/lib/components/AspectRatio/index.js.map +1 -0
  31. package/dist/lib/components/Avatar/index.js +2 -58
  32. package/dist/lib/components/Avatar/index.js.map +1 -0
  33. package/dist/lib/components/Badge/index.js +2 -54
  34. package/dist/lib/components/Badge/index.js.map +1 -0
  35. package/dist/lib/components/BarChart/index.js +2 -63
  36. package/dist/lib/components/BarChart/index.js.map +1 -0
  37. package/dist/lib/components/BubbleChart/index.js +2 -73
  38. package/dist/lib/components/BubbleChart/index.js.map +1 -0
  39. package/dist/lib/components/Button/index.js +2 -56
  40. package/dist/lib/components/Button/index.js.map +1 -0
  41. package/dist/lib/components/Callout/CalloutIcon.js +2 -57
  42. package/dist/lib/components/Callout/CalloutIcon.js.map +1 -0
  43. package/dist/lib/components/Callout/CalloutRoot.js +2 -72
  44. package/dist/lib/components/Callout/CalloutRoot.js.map +1 -0
  45. package/dist/lib/components/Callout/CalloutText.js +2 -52
  46. package/dist/lib/components/Callout/CalloutText.js.map +1 -0
  47. package/dist/lib/components/Callout/index.js +2 -9
  48. package/dist/lib/components/Callout/index.js.map +1 -0
  49. package/dist/lib/components/Card/index.js +2 -64
  50. package/dist/lib/components/Card/index.js.map +1 -0
  51. package/dist/lib/components/Checkbox/index.js +2 -89
  52. package/dist/lib/components/Checkbox/index.js.map +1 -0
  53. package/dist/lib/components/CheckboxCard/index.js +2 -58
  54. package/dist/lib/components/CheckboxCard/index.js.map +1 -0
  55. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +2 -33
  56. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js.map +1 -0
  57. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +2 -34
  58. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js.map +1 -0
  59. package/dist/lib/components/CheckboxGroup/index.js +2 -4
  60. package/dist/lib/components/CheckboxGroup/index.js.map +1 -0
  61. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -42
  62. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js.map +1 -0
  63. package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -56
  64. package/dist/lib/components/ContextMenu/ContextMenuContent.js.map +1 -0
  65. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +2 -30
  66. package/dist/lib/components/ContextMenu/ContextMenuGroup.js.map +1 -0
  67. package/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -59
  68. package/dist/lib/components/ContextMenu/ContextMenuItem.js.map +1 -0
  69. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -50
  70. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js.map +1 -0
  71. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -48
  72. package/dist/lib/components/ContextMenu/ContextMenuLabel.js.map +1 -0
  73. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +2 -31
  74. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js.map +1 -0
  75. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -44
  76. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js.map +1 -0
  77. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +2 -42
  78. package/dist/lib/components/ContextMenu/ContextMenuRoot.js.map +1 -0
  79. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +2 -31
  80. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js.map +1 -0
  81. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -54
  82. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js.map +1 -0
  83. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -40
  84. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js.map +1 -0
  85. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +2 -31
  86. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js.map +1 -0
  87. package/dist/lib/components/ContextMenu/index.js +2 -29
  88. package/dist/lib/components/ContextMenu/index.js.map +1 -0
  89. package/dist/lib/components/DataList/DataListItem.js +2 -43
  90. package/dist/lib/components/DataList/DataListItem.js.map +1 -0
  91. package/dist/lib/components/DataList/DataListLabel.js +2 -49
  92. package/dist/lib/components/DataList/DataListLabel.js.map +1 -0
  93. package/dist/lib/components/DataList/DataListRoot.js +2 -54
  94. package/dist/lib/components/DataList/DataListRoot.js.map +1 -0
  95. package/dist/lib/components/DataList/DataListValue.js +2 -51
  96. package/dist/lib/components/DataList/DataListValue.js.map +1 -0
  97. package/dist/lib/components/DataList/index.js +2 -6
  98. package/dist/lib/components/DataList/index.js.map +1 -0
  99. package/dist/lib/components/Dialog/DialogAction.js +2 -59
  100. package/dist/lib/components/Dialog/DialogAction.js.map +1 -0
  101. package/dist/lib/components/Dialog/DialogCancel.js +2 -55
  102. package/dist/lib/components/Dialog/DialogCancel.js.map +1 -0
  103. package/dist/lib/components/Dialog/DialogContent.js +2 -57
  104. package/dist/lib/components/Dialog/DialogContent.js.map +1 -0
  105. package/dist/lib/components/Dialog/DialogDescription.js +2 -47
  106. package/dist/lib/components/Dialog/DialogDescription.js.map +1 -0
  107. package/dist/lib/components/Dialog/DialogRoot.js +2 -37
  108. package/dist/lib/components/Dialog/DialogRoot.js.map +1 -0
  109. package/dist/lib/components/Dialog/DialogSlot.js +2 -46
  110. package/dist/lib/components/Dialog/DialogSlot.js.map +1 -0
  111. package/dist/lib/components/Dialog/DialogTitle.js +2 -47
  112. package/dist/lib/components/Dialog/DialogTitle.js.map +1 -0
  113. package/dist/lib/components/Dialog/DialogTrigger.js +2 -30
  114. package/dist/lib/components/Dialog/DialogTrigger.js.map +1 -0
  115. package/dist/lib/components/Dialog/index.js +2 -19
  116. package/dist/lib/components/Dialog/index.js.map +1 -0
  117. package/dist/lib/components/DoughnutChart/index.js +2 -65
  118. package/dist/lib/components/DoughnutChart/index.js.map +1 -0
  119. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +2 -30
  120. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js.map +1 -0
  121. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -60
  122. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js.map +1 -0
  123. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -41
  124. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js.map +1 -0
  125. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -56
  126. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js.map +1 -0
  127. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +2 -58
  128. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js.map +1 -0
  129. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -48
  130. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js.map +1 -0
  131. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +2 -45
  132. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js.map +1 -0
  133. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -41
  134. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js.map +1 -0
  135. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +2 -38
  136. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js.map +1 -0
  137. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +2 -31
  138. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js.map +1 -0
  139. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +2 -30
  140. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js.map +1 -0
  141. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +2 -40
  142. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js.map +1 -0
  143. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +2 -53
  144. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js.map +1 -0
  145. package/dist/lib/components/DropdownMenu/index.js +2 -29
  146. package/dist/lib/components/DropdownMenu/index.js.map +1 -0
  147. package/dist/lib/components/HoverCard/HoverCardContent.js +2 -61
  148. package/dist/lib/components/HoverCard/HoverCardContent.js.map +1 -0
  149. package/dist/lib/components/HoverCard/HoverCardRoot.js +2 -38
  150. package/dist/lib/components/HoverCard/HoverCardRoot.js.map +1 -0
  151. package/dist/lib/components/HoverCard/HoverCardTrigger.js +2 -30
  152. package/dist/lib/components/HoverCard/HoverCardTrigger.js.map +1 -0
  153. package/dist/lib/components/HoverCard/index.js +2 -9
  154. package/dist/lib/components/HoverCard/index.js.map +1 -0
  155. package/dist/lib/components/IconButton/index.js +2 -63
  156. package/dist/lib/components/IconButton/index.js.map +1 -0
  157. package/dist/lib/components/Inset/index.js +2 -50
  158. package/dist/lib/components/Inset/index.js.map +1 -0
  159. package/dist/lib/components/Label/index.js +2 -53
  160. package/dist/lib/components/Label/index.js.map +1 -0
  161. package/dist/lib/components/LineChart/index.js +2 -61
  162. package/dist/lib/components/LineChart/index.js.map +1 -0
  163. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -38
  164. package/dist/lib/components/Menubar/MenubarCheckboxItem.js.map +1 -0
  165. package/dist/lib/components/Menubar/MenubarContent.js +2 -60
  166. package/dist/lib/components/Menubar/MenubarContent.js.map +1 -0
  167. package/dist/lib/components/Menubar/MenubarItem.js +2 -54
  168. package/dist/lib/components/Menubar/MenubarItem.js.map +1 -0
  169. package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -49
  170. package/dist/lib/components/Menubar/MenubarItemIndicator.js.map +1 -0
  171. package/dist/lib/components/Menubar/MenubarMenu.js +2 -30
  172. package/dist/lib/components/Menubar/MenubarMenu.js.map +1 -0
  173. package/dist/lib/components/Menubar/MenubarRadioGroup.js +2 -31
  174. package/dist/lib/components/Menubar/MenubarRadioGroup.js.map +1 -0
  175. package/dist/lib/components/Menubar/MenubarRadioItem.js +2 -40
  176. package/dist/lib/components/Menubar/MenubarRadioItem.js.map +1 -0
  177. package/dist/lib/components/Menubar/MenubarRoot.js +2 -61
  178. package/dist/lib/components/Menubar/MenubarRoot.js.map +1 -0
  179. package/dist/lib/components/Menubar/MenubarSeparator.js +2 -31
  180. package/dist/lib/components/Menubar/MenubarSeparator.js.map +1 -0
  181. package/dist/lib/components/Menubar/MenubarSub.js +2 -30
  182. package/dist/lib/components/Menubar/MenubarSub.js.map +1 -0
  183. package/dist/lib/components/Menubar/MenubarSubContent.js +2 -51
  184. package/dist/lib/components/Menubar/MenubarSubContent.js.map +1 -0
  185. package/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -41
  186. package/dist/lib/components/Menubar/MenubarSubTrigger.js.map +1 -0
  187. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -57
  188. package/dist/lib/components/Menubar/MenubarTrigger.js.map +1 -0
  189. package/dist/lib/components/Menubar/index.js +2 -29
  190. package/dist/lib/components/Menubar/index.js.map +1 -0
  191. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -48
  192. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js.map +1 -0
  193. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +2 -31
  194. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js.map +1 -0
  195. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +2 -30
  196. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js.map +1 -0
  197. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -51
  198. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js.map +1 -0
  199. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -47
  200. package/dist/lib/components/NavigationMenu/NavigationMenuList.js.map +1 -0
  201. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +2 -43
  202. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js.map +1 -0
  203. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -58
  204. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js.map +1 -0
  205. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -53
  206. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js.map +1 -0
  207. package/dist/lib/components/NavigationMenu/index.js +2 -10
  208. package/dist/lib/components/NavigationMenu/index.js.map +1 -0
  209. package/dist/lib/components/PieChart/index.js +2 -65
  210. package/dist/lib/components/PieChart/index.js.map +1 -0
  211. package/dist/lib/components/Popover/PopoverClose.js +2 -48
  212. package/dist/lib/components/Popover/PopoverClose.js.map +1 -0
  213. package/dist/lib/components/Popover/PopoverContent.js +2 -65
  214. package/dist/lib/components/Popover/PopoverContent.js.map +1 -0
  215. package/dist/lib/components/Popover/PopoverRoot.js +2 -36
  216. package/dist/lib/components/Popover/PopoverRoot.js.map +1 -0
  217. package/dist/lib/components/Popover/PopoverTrigger.js +2 -30
  218. package/dist/lib/components/Popover/PopoverTrigger.js.map +1 -0
  219. package/dist/lib/components/Popover/index.js +2 -11
  220. package/dist/lib/components/Popover/index.js.map +1 -0
  221. package/dist/lib/components/Progress/index.js +2 -56
  222. package/dist/lib/components/Progress/index.js.map +1 -0
  223. package/dist/lib/components/RadarChart/index.js +2 -76
  224. package/dist/lib/components/RadarChart/index.js.map +1 -0
  225. package/dist/lib/components/Radio/index.js +2 -53
  226. package/dist/lib/components/Radio/index.js.map +1 -0
  227. package/dist/lib/components/RadioCards/RadioCardsItem.js +2 -54
  228. package/dist/lib/components/RadioCards/RadioCardsItem.js.map +1 -0
  229. package/dist/lib/components/RadioCards/RadioCardsRoot.js +2 -46
  230. package/dist/lib/components/RadioCards/RadioCardsRoot.js.map +1 -0
  231. package/dist/lib/components/RadioCards/index.js +2 -7
  232. package/dist/lib/components/RadioCards/index.js.map +1 -0
  233. package/dist/lib/components/RadioGroup/RadioGroupItem.js +2 -46
  234. package/dist/lib/components/RadioGroup/RadioGroupItem.js.map +1 -0
  235. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +2 -53
  236. package/dist/lib/components/RadioGroup/RadioGroupRoot.js.map +1 -0
  237. package/dist/lib/components/RadioGroup/index.js +2 -7
  238. package/dist/lib/components/RadioGroup/index.js.map +1 -0
  239. package/dist/lib/components/ScrollArea/index.js +2 -36
  240. package/dist/lib/components/ScrollArea/index.js.map +1 -0
  241. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +2 -35
  242. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js.map +1 -0
  243. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +2 -47
  244. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js.map +1 -0
  245. package/dist/lib/components/SegmentedControl/index.js +2 -7
  246. package/dist/lib/components/SegmentedControl/index.js.map +1 -0
  247. package/dist/lib/components/Select/index.js +2 -92
  248. package/dist/lib/components/Select/index.js.map +1 -0
  249. package/dist/lib/components/Separator/index.js +2 -47
  250. package/dist/lib/components/Separator/index.js.map +1 -0
  251. package/dist/lib/components/Skeleton/index.js +2 -42
  252. package/dist/lib/components/Skeleton/index.js.map +1 -0
  253. package/dist/lib/components/Slider/index.js +2 -49
  254. package/dist/lib/components/Slider/index.js.map +1 -0
  255. package/dist/lib/components/Spinner/index.js +2 -47
  256. package/dist/lib/components/Spinner/index.js.map +1 -0
  257. package/dist/lib/components/TabNav/index.js +2 -50
  258. package/dist/lib/components/TabNav/index.js.map +1 -0
  259. package/dist/lib/components/Table/index.js +2 -98
  260. package/dist/lib/components/Table/index.js.map +1 -0
  261. package/dist/lib/components/Tabs/index.js +2 -65
  262. package/dist/lib/components/Tabs/index.js.map +1 -0
  263. package/dist/lib/components/TextArea/index.js +2 -58
  264. package/dist/lib/components/TextArea/index.js.map +1 -0
  265. package/dist/lib/components/TextField/index.js +2 -56
  266. package/dist/lib/components/TextField/index.js.map +1 -0
  267. package/dist/lib/components/Toast/ToastActionButton.js +2 -67
  268. package/dist/lib/components/Toast/ToastActionButton.js.map +1 -0
  269. package/dist/lib/components/Toast/ToastDescription.js +2 -53
  270. package/dist/lib/components/Toast/ToastDescription.js.map +1 -0
  271. package/dist/lib/components/Toast/ToastRoot.js +2 -90
  272. package/dist/lib/components/Toast/ToastRoot.js.map +1 -0
  273. package/dist/lib/components/Toast/ToastTitle.js +2 -53
  274. package/dist/lib/components/Toast/ToastTitle.js.map +1 -0
  275. package/dist/lib/components/Toast/index.js +2 -11
  276. package/dist/lib/components/Toast/index.js.map +1 -0
  277. package/dist/lib/components/Toggle/ToggleWithText.js +2 -58
  278. package/dist/lib/components/Toggle/ToggleWithText.js.map +1 -0
  279. package/dist/lib/components/Toggle/index.js +2 -58
  280. package/dist/lib/components/Toggle/index.js.map +1 -0
  281. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -54
  282. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js.map +1 -0
  283. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +2 -48
  284. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js.map +1 -0
  285. package/dist/lib/components/ToggleGroup/index.js +2 -7
  286. package/dist/lib/components/ToggleGroup/index.js.map +1 -0
  287. package/dist/lib/components/ToggleSwitch/index.js +2 -71
  288. package/dist/lib/components/ToggleSwitch/index.js.map +1 -0
  289. package/dist/lib/components/Tooltip/index.js +2 -49
  290. package/dist/lib/components/Tooltip/index.js.map +1 -0
  291. package/dist/lib/constants.js +2 -914
  292. package/dist/lib/constants.js.map +1 -0
  293. package/dist/lib/index.js +2 -2
  294. package/dist/lib/index.js.map +1 -0
  295. package/dist/lib/tsconfig.tsbuildinfo +1 -0
  296. package/dist/lib/utils/useDarkMode.js +2 -49
  297. package/dist/lib/utils/useDarkMode.js.map +1 -0
  298. package/dist/lib/utils/utils.js +2 -10
  299. package/dist/lib/utils/utils.js.map +1 -0
  300. package/package.json +8 -7
  301. package/dist/lib/Typography/Header/index.d.ts +0 -13
  302. package/dist/lib/Typography/Text/index.d.ts +0 -15
  303. package/dist/lib/Typography/index.d.ts +0 -2
  304. package/dist/lib/Typography/index.js +0 -2
  305. package/dist/lib/color/alpha.d.ts +0 -784
  306. package/dist/lib/color/constants.d.ts +0 -29
  307. package/dist/lib/color/dark.d.ts +0 -392
  308. package/dist/lib/color/dark.js +0 -392
  309. package/dist/lib/color/krdsColors.d.ts +0 -309
  310. package/dist/lib/color/krdsColors.js +0 -309
  311. package/dist/lib/color/light.d.ts +0 -392
  312. package/dist/lib/components/Accordion/index.d.ts +0 -22
  313. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
  314. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
  315. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +0 -11
  316. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +0 -10
  317. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
  318. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +0 -10
  319. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
  320. package/dist/lib/components/AlertDialog/index.d.ts +0 -11
  321. package/dist/lib/components/AspectRatio/index.d.ts +0 -10
  322. package/dist/lib/components/Avatar/index.d.ts +0 -21
  323. package/dist/lib/components/Badge/index.d.ts +0 -18
  324. package/dist/lib/components/BarChart/index.d.ts +0 -37
  325. package/dist/lib/components/BubbleChart/index.d.ts +0 -28
  326. package/dist/lib/components/Button/index.d.ts +0 -16
  327. package/dist/lib/components/Callout/CalloutIcon.d.ts +0 -13
  328. package/dist/lib/components/Callout/CalloutRoot.d.ts +0 -18
  329. package/dist/lib/components/Callout/CalloutText.d.ts +0 -10
  330. package/dist/lib/components/Callout/index.d.ts +0 -7
  331. package/dist/lib/components/Card/index.d.ts +0 -14
  332. package/dist/lib/components/Checkbox/index.d.ts +0 -17
  333. package/dist/lib/components/CheckboxCard/index.d.ts +0 -20
  334. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
  335. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
  336. package/dist/lib/components/CheckboxGroup/index.d.ts +0 -6
  337. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -4
  338. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +0 -11
  339. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +0 -4
  340. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +0 -13
  341. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -10
  342. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +0 -11
  343. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -8
  344. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -4
  345. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
  346. package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +0 -3
  347. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +0 -11
  348. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -4
  349. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +0 -4
  350. package/dist/lib/components/ContextMenu/index.d.ts +0 -17
  351. package/dist/lib/components/DataList/DataListItem.d.ts +0 -9
  352. package/dist/lib/components/DataList/DataListLabel.d.ts +0 -10
  353. package/dist/lib/components/DataList/DataListRoot.d.ts +0 -14
  354. package/dist/lib/components/DataList/DataListValue.d.ts +0 -11
  355. package/dist/lib/components/DataList/index.d.ts +0 -8
  356. package/dist/lib/components/Dialog/DialogAction.d.ts +0 -13
  357. package/dist/lib/components/Dialog/DialogCancel.d.ts +0 -11
  358. package/dist/lib/components/Dialog/DialogContent.d.ts +0 -11
  359. package/dist/lib/components/Dialog/DialogDescription.d.ts +0 -9
  360. package/dist/lib/components/Dialog/DialogRoot.d.ts +0 -15
  361. package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -9
  362. package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -11
  363. package/dist/lib/components/Dialog/DialogTrigger.d.ts +0 -3
  364. package/dist/lib/components/Dialog/index.d.ts +0 -15
  365. package/dist/lib/components/DoughnutChart/index.d.ts +0 -22
  366. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -3
  367. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -11
  368. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -7
  369. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +0 -11
  370. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
  371. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -10
  372. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -10
  373. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -6
  374. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
  375. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -3
  376. package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
  377. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -4
  378. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
  379. package/dist/lib/components/DropdownMenu/index.d.ts +0 -20
  380. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
  381. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +0 -11
  382. package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +0 -3
  383. package/dist/lib/components/HoverCard/index.d.ts +0 -10
  384. package/dist/lib/components/IconButton/index.d.ts +0 -15
  385. package/dist/lib/components/Inset/index.d.ts +0 -10
  386. package/dist/lib/components/Label/index.d.ts +0 -17
  387. package/dist/lib/components/LineChart/index.d.ts +0 -43
  388. package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +0 -4
  389. package/dist/lib/components/Menubar/MenubarContent.d.ts +0 -11
  390. package/dist/lib/components/Menubar/MenubarItem.d.ts +0 -13
  391. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +0 -10
  392. package/dist/lib/components/Menubar/MenubarMenu.d.ts +0 -5
  393. package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +0 -8
  394. package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +0 -4
  395. package/dist/lib/components/Menubar/MenubarRoot.d.ts +0 -19
  396. package/dist/lib/components/Menubar/MenubarSeparator.d.ts +0 -3
  397. package/dist/lib/components/Menubar/MenubarSub.d.ts +0 -3
  398. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +0 -10
  399. package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +0 -4
  400. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +0 -12
  401. package/dist/lib/components/Menubar/index.d.ts +0 -19
  402. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +0 -11
  403. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -3
  404. package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +0 -3
  405. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +0 -13
  406. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +0 -12
  407. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
  408. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -13
  409. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -12
  410. package/dist/lib/components/NavigationMenu/index.d.ts +0 -12
  411. package/dist/lib/components/PieChart/index.d.ts +0 -22
  412. package/dist/lib/components/Popover/PopoverClose.d.ts +0 -9
  413. package/dist/lib/components/Popover/PopoverContent.d.ts +0 -11
  414. package/dist/lib/components/Popover/PopoverRoot.d.ts +0 -12
  415. package/dist/lib/components/Popover/PopoverTrigger.d.ts +0 -3
  416. package/dist/lib/components/Popover/index.d.ts +0 -11
  417. package/dist/lib/components/Progress/index.d.ts +0 -13
  418. package/dist/lib/components/RadarChart/index.d.ts +0 -32
  419. package/dist/lib/components/Radio/index.d.ts +0 -13
  420. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +0 -10
  421. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
  422. package/dist/lib/components/RadioCards/index.d.ts +0 -6
  423. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
  424. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
  425. package/dist/lib/components/RadioGroup/index.d.ts +0 -6
  426. package/dist/lib/components/ScrollArea/index.d.ts +0 -9
  427. package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +0 -6
  428. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
  429. package/dist/lib/components/SegmentedControl/index.d.ts +0 -6
  430. package/dist/lib/components/Select/index.d.ts +0 -34
  431. package/dist/lib/components/Separator/index.d.ts +0 -11
  432. package/dist/lib/components/Skeleton/index.d.ts +0 -14
  433. package/dist/lib/components/Slider/index.d.ts +0 -14
  434. package/dist/lib/components/Spinner/index.d.ts +0 -15
  435. package/dist/lib/components/TabNav/index.d.ts +0 -15
  436. package/dist/lib/components/Table/index.d.ts +0 -30
  437. package/dist/lib/components/Tabs/index.d.ts +0 -22
  438. package/dist/lib/components/TextArea/index.d.ts +0 -16
  439. package/dist/lib/components/TextField/index.d.ts +0 -21
  440. package/dist/lib/components/Toast/ToastActionButton.d.ts +0 -14
  441. package/dist/lib/components/Toast/ToastDescription.d.ts +0 -13
  442. package/dist/lib/components/Toast/ToastRoot.d.ts +0 -27
  443. package/dist/lib/components/Toast/ToastTitle.d.ts +0 -13
  444. package/dist/lib/components/Toast/index.d.ts +0 -8
  445. package/dist/lib/components/Toggle/ToggleWithText.d.ts +0 -21
  446. package/dist/lib/components/Toggle/index.d.ts +0 -21
  447. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
  448. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
  449. package/dist/lib/components/ToggleGroup/index.d.ts +0 -6
  450. package/dist/lib/components/ToggleSwitch/index.d.ts +0 -13
  451. package/dist/lib/components/Tooltip/index.d.ts +0 -19
  452. package/dist/lib/components/index.d.ts +0 -50
  453. package/dist/lib/components/index.js +0 -52
  454. package/dist/lib/constants.d.ts +0 -655
  455. package/dist/lib/index.d.ts +0 -2
  456. package/dist/lib/types.d.ts +0 -81
  457. package/dist/lib/types.js +0 -1
  458. package/dist/lib/utils/useDarkMode.d.ts +0 -1
  459. package/dist/lib/utils/utils.d.ts +0 -2
  460. /package/dist/{globals.css → lib/globals.css} +0 -0
  461. /package/dist/{tailwind.config.d.ts → lib/tailwind.config.d.ts} +0 -0
  462. /package/dist/{tailwind.config.js → lib/tailwind.config.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/TabNav/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { TabNav as TabNavTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nvar tabNavVariants = cva('', {\n variants: {},\n});\nexport var Root = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, size = _a.size, color = _a.color, rootProps = __rest(_a, [\"className\", \"children\", \"size\", \"color\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn('', tabNavVariants({}), className) }, rootProps, { children: children })) }));\n});\nRoot.displayName = 'TabNav.Root';\nexport var Link = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, href = _a.href, linkProps = __rest(_a, [\"className\", \"children\", \"href\"]);\n return (_jsx(TabNavTheme.Link, __assign({ ref: ref, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className), href: href }, linkProps, { children: children })));\n});\nLink.displayName = 'TabNav.Link';\nvar TabNav = {\n Root: Root,\n Link: Link,\n};\nexport default TabNav;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tabNavVariants","cva","variants","Root","React","forwardRef","_a","ref","className","children","size","color","rootProps","sizeTheme","_jsx","jsx","Theme","accentColor","hasBackground","TabNavTheme.Root","cn","displayName","Link","href","linkProps","TabNavTheme.Link","TabNav"],"mappings":"0ZAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC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KAAMA,EACNmB,KAAMA"}
@@ -1,98 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import React from 'react';
25
- import { cva } from 'class-variance-authority';
26
- import { Table as TableTheme, Theme } from '@radix-ui/themes';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { radiusVariants, scalingVariants } from '../../../lib/constants';
29
- var tableVariants = cva('', {
30
- variants: {
31
- scaling: __assign({}, scalingVariants),
32
- radius: __assign({}, radiusVariants['base']),
33
- },
34
- defaultVariants: {
35
- scaling: '100%',
36
- },
37
- });
38
- var tableRowVariants = cva('', {
39
- variants: {
40
- size: {
41
- small: 'h-[36px]',
42
- medium: 'h-[44px]',
43
- large: 'h-[48px] p-3',
44
- },
45
- },
46
- });
47
- export var Root = React.forwardRef(function (_a, ref) {
48
- var className = _a.className, children = _a.children, appearance = _a.appearance, scaling = _a.scaling, size = _a.size, radius = _a.radius, tableProps = __rest(_a, ["className", "children", "appearance", "scaling", "size", "radius"]);
49
- var sizeTheme = '2';
50
- if (size === 'small')
51
- sizeTheme = '1';
52
- if (size === 'large')
53
- sizeTheme = '3';
54
- if (radius === 'full')
55
- radius = 'large';
56
- return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn('', tableVariants({ scaling: scaling, radius: radius }), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));
57
- });
58
- Root.displayName = 'Table.Root';
59
- export var Header = React.forwardRef(function (_a, forwardedRef) {
60
- var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
61
- return (_jsx(TableTheme.Header, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
62
- });
63
- Header.displayName = 'Table.Header';
64
- export var Body = React.forwardRef(function (_a, forwardedRef) {
65
- var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
66
- return (_jsx(TableTheme.Body, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
67
- });
68
- Body.displayName = 'Table.Body';
69
- export var Row = React.forwardRef(function (_a, forwardedRef) {
70
- var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
71
- return (_jsx(TableTheme.Row, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
72
- });
73
- Row.displayName = 'Table.Row';
74
- export var Cell = React.forwardRef(function (_a, forwardedRef) {
75
- var className = _a.className, children = _a.children, scaling = _a.scaling, cellProps = __rest(_a, ["className", "children", "scaling"]);
76
- return (_jsx(TableTheme.Cell, __assign({ className: cn('', tableVariants({ scaling: scaling }), className) }, cellProps, { ref: forwardedRef, children: children })));
77
- });
78
- Cell.displayName = 'Table.Cell';
79
- export var ColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {
80
- var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, props = __rest(_a, ["className", "children", "scaling", "size"]);
81
- return (_jsx(TableTheme.ColumnHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className) }, props, { children: children })));
82
- });
83
- ColumnHeaderCell.displayName = 'Table.ColumnHeaderCell';
84
- export var RowHeaderCell = React.forwardRef(function (_a, forwardedRef) {
85
- var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
86
- return (_jsx(TableTheme.RowHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
87
- });
88
- RowHeaderCell.displayName = 'Table.RowHeaderCell';
89
- var Table = {
90
- Root: Root,
91
- Header: Header,
92
- Body: Body,
93
- Row: Row,
94
- Cell: Cell,
95
- ColumnHeaderCell: ColumnHeaderCell,
96
- RowHeaderCell: RowHeaderCell,
97
- };
98
- export default Table;
1
+ import{j as a}from"../../../../_virtual/jsx-runtime.js";import e from"react";import{cva as r}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as s}from"../../utils/utils.js";import{scalingVariants as l,radiusVariants as n}from"../../constants.js";import{Theme as i}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js";import{Root as c,Header as o,Body as t,Row as d,Cell as m,ColumnHeaderCell as f,RowHeaderCell as u}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/table.js";var p=function(){return p=Object.assign||function(a){for(var e,r=1,s=arguments.length;r<s;r++)for(var l in e=arguments[r])Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=e[l]);return a},p.apply(this,arguments)},h=function(a,e){var r={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&e.indexOf(s)<0&&(r[s]=a[s]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(s=Object.getOwnPropertySymbols(a);l<s.length;l++)e.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(a,s[l])&&(r[s[l]]=a[s[l]])}return r},g=r("",{variants:{scaling:p({},l),radius:p({},n.base)},defaultVariants:{scaling:"100%"}}),N=r("",{variants:{size:{small:"h-[36px]",medium:"h-[44px]",large:"h-[48px] p-3"}}}),v=e.forwardRef((function(e,r){var l=e.className,n=e.children,o=e.appearance,t=e.scaling,d=e.size,m=e.radius,f=h(e,["className","children","appearance","scaling","size","radius"]),u="2";return"small"===d&&(u="1"),"large"===d&&(u="3"),"full"===m&&(m="large"),a.jsx(i,{hasBackground:!1,children:a.jsx(c,p({ref:r,className:s("",g({scaling:t,radius:m}),l),variant:o,size:u},f,{children:n}))})}));v.displayName="Table.Root";var j=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=h(e,["className","children","scaling"]);return a.jsx(o,p({ref:r,className:s("",g({scaling:i}),l)},c,{children:n}))}));j.displayName="Table.Header";var y=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=h(e,["className","children","scaling"]);return a.jsx(t,p({ref:r,className:s("",g({scaling:i}),l)},c,{children:n}))}));y.displayName="Table.Body";var b=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=h(e,["className","children","scaling"]);return a.jsx(d,p({ref:r,className:s("",g({scaling:i}),l)},c,{children:n}))}));b.displayName="Table.Row";var x=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=h(e,["className","children","scaling"]);return a.jsx(m,p({className:s("",g({scaling:i}),l)},c,{ref:r,children:n}))}));x.displayName="Table.Cell";var w=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=e.size,o=h(e,["className","children","scaling","size"]);return a.jsx(f,p({ref:r,className:s("",g({scaling:i}),N({size:c}),l)},o,{children:n}))}));w.displayName="Table.ColumnHeaderCell";var R=e.forwardRef((function(e,r){var l=e.className,n=e.children,i=e.scaling,c=h(e,["className","children","scaling"]);return a.jsx(u,p({ref:r,className:s("",g({scaling:i}),l)},c,{children:n}))}));R.displayName="Table.RowHeaderCell";var C={Root:v,Header:j,Body:y,Row:b,Cell:x,ColumnHeaderCell:w,RowHeaderCell:R};export{y as Body,x as Cell,w as ColumnHeaderCell,j as Header,v as Root,b as Row,R as RowHeaderCell,C as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Table/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Table as TableTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nvar tableVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nvar tableRowVariants = cva('', {\n variants: {\n size: {\n small: 'h-[36px]',\n medium: 'h-[44px]',\n large: 'h-[48px] p-3',\n },\n },\n});\nexport var Root = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, appearance = _a.appearance, scaling = _a.scaling, size = _a.size, radius = _a.radius, tableProps = __rest(_a, [\"className\", \"children\", \"appearance\", \"scaling\", \"size\", \"radius\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n if (radius === 'full')\n radius = 'large';\n return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn('', tableVariants({ scaling: scaling, radius: radius }), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));\n});\nRoot.displayName = 'Table.Root';\nexport var Header = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Header, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nHeader.displayName = 'Table.Header';\nexport var Body = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Body, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nBody.displayName = 'Table.Body';\nexport var Row = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Row, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nRow.displayName = 'Table.Row';\nexport var Cell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, cellProps = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Cell, __assign({ className: cn('', tableVariants({ scaling: scaling }), className) }, cellProps, { ref: forwardedRef, children: children })));\n});\nCell.displayName = 'Table.Cell';\nexport var ColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\"]);\n return (_jsx(TableTheme.ColumnHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className) }, props, { children: children })));\n});\nColumnHeaderCell.displayName = 'Table.ColumnHeaderCell';\nexport var RowHeaderCell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.RowHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nRowHeaderCell.displayName = 'Table.RowHeaderCell';\nvar Table = {\n Root: Root,\n Header: Header,\n Body: Body,\n Row: Row,\n Cell: Cell,\n ColumnHeaderCell: ColumnHeaderCell,\n RowHeaderCell: RowHeaderCell,\n};\nexport default Table;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tableVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","defaultVariants","tableRowVariants","size","small","medium","large","Root","React","forwardRef","_a","ref","className","children","appearance","tableProps","sizeTheme","_jsx","Theme","hasBackground","TableTheme.Root","cn","variant","displayName","Header","forwardedRef","props","jsx","TableTheme.Header","Body","TableTheme.Body","Row","TableTheme.Row","Cell","cellProps","TableTheme.Cell","ColumnHeaderCell","TableTheme.ColumnHeaderCell","RowHeaderCell","TableTheme.RowHeaderCell","Table"],"mappings":"yiBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAA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,IAC5J,IACAoB,EAAKV,YAAc,aACT,IAACa,EAAmB5B,EAAMC,YAAW,SAAUC,EAAIe,GACzD,IAAIb,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUhB,EAAUa,EAAGb,QAASM,EAAOO,EAAGP,KAAMuB,EAAQrC,EAAOqB,EAAI,CAAC,YAAa,WAAY,UAAW,SACpJ,OAAQO,MAAKoB,EAA6B/D,EAAS,CAAEqC,IAAKc,EAAcb,UAAWS,EAAG,GAAI3B,EAAc,CAAEG,QAASA,IAAYK,EAAiB,CAAEC,KAAMA,IAASS,IAAcc,EAAO,CAAEb,SAAUA,IACtM,IACAuB,EAAiBb,YAAc,yBACrB,IAACe,EAAgB9B,EAAMC,YAAW,SAAUC,EAAIe,GACtD,IAAIb,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUhB,EAAUa,EAAGb,QAAS6B,EAAQrC,EAAOqB,EAAI,CAAC,YAAa,WAAY,YACzH,OAAQO,EAAIU,IAACY,EAA0BjE,EAAS,CAAEqC,IAAKc,EAAcb,UAAWS,EAAG,GAAI3B,EAAc,CAAEG,QAASA,IAAYe,IAAcc,EAAO,CAAEb,SAAUA,IACjK,IACAyB,EAAcf,YAAc,sBACzB,IAACiB,EAAQ,CACRjC,KAAMA,EACNiB,OAAQA,EACRK,KAAMA,EACNE,IAAKA,EACLE,KAAMA,EACNG,iBAAkBA,EAClBE,cAAeA"}
@@ -1,65 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import { Theme, Tabs as TabsTheme } from '@radix-ui/themes';
25
- import React from 'react';
26
- import { cn } from '../../../lib/utils/utils';
27
- import { cva } from 'class-variance-authority';
28
- import { weightVariants } from '../../../lib/constants';
29
- var tabsVariants = cva('', {
30
- variants: {
31
- weight: __assign({}, weightVariants),
32
- },
33
- });
34
- export var Root = React.forwardRef(function (_a, forwardedRef) {
35
- var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, ["className", "children", "color"]);
36
- if (!color)
37
- color = 'red';
38
- return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));
39
- });
40
- Root.displayName = 'Tabs.Root';
41
- export var List = React.forwardRef(function (_a, forwardedRef) {
42
- var className = _a.className, weight = _a.weight, children = _a.children, size = _a.size, listProps = __rest(_a, ["className", "weight", "children", "size"]);
43
- var sizeTheme = '2';
44
- if (size === 'small')
45
- sizeTheme = '1';
46
- return (_jsx(TabsTheme.List, __assign({ ref: forwardedRef, size: sizeTheme }, listProps, { className: cn('', className), children: children })));
47
- });
48
- List.displayName = 'Tabs.List';
49
- export var Trigger = React.forwardRef(function (_a, forwardedRef) {
50
- var className = _a.className, weight = _a.weight, children = _a.children, triggerProps = __rest(_a, ["className", "weight", "children"]);
51
- return (_jsx(TabsTheme.Trigger, __assign({ ref: forwardedRef, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', className) }, triggerProps, { children: children })));
52
- });
53
- Trigger.displayName = 'Tabs.Trigger';
54
- export var Content = React.forwardRef(function (_a, forwardedRef) {
55
- var className = _a.className, weight = _a.weight, children = _a.children, contentProps = __rest(_a, ["className", "weight", "children"]);
56
- return (_jsx(TabsTheme.Content, __assign({ ref: forwardedRef }, contentProps, { className: cn('mt-3', className), children: children })));
57
- });
58
- Content.displayName = 'Tabs.Content';
59
- var Tabs = {
60
- Root: Root,
61
- List: List,
62
- Trigger: Trigger,
63
- Content: Content,
64
- };
65
- export default Tabs;
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import r from"react";import{cn as t}from"../../utils/utils.js";import{cva as a}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{weightVariants as s}from"../../constants.js";import{Theme as o}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js";import{Root as i,List as n,Trigger as l,Content as c}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/tabs.js";var m=function(){return m=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},m.apply(this,arguments)},d=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]])}return t};a("",{variants:{weight:m({},s)}});var f=r.forwardRef((function(r,a){var s=r.className,n=r.children,l=r.color,c=d(r,["className","children","color"]);return l||(l="red"),e.jsx(o,{accentColor:l,hasBackground:!1,children:e.jsx(i,m({},c,{ref:a,className:t("",s),children:n}))})}));f.displayName="Tabs.Root";var h=r.forwardRef((function(r,a){var s=r.className;r.weight;var o=r.children,i=r.size,l=d(r,["className","weight","children","size"]),c="2";return"small"===i&&(c="1"),e.jsx(n,m({ref:a,size:c},l,{className:t("",s),children:o}))}));h.displayName="Tabs.List";var p=r.forwardRef((function(r,a){var s=r.className;r.weight;var o=r.children,i=d(r,["className","weight","children"]);return e.jsx(l,m({ref:a,className:t("text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12",s)},i,{children:o}))}));p.displayName="Tabs.Trigger";var u=r.forwardRef((function(r,a){var s=r.className;r.weight;var o=r.children,i=d(r,["className","weight","children"]);return e.jsx(c,m({ref:a},i,{className:t("mt-3",s),children:o}))}));u.displayName="Tabs.Content";var v={Root:f,List:h,Trigger:p,Content:u};export{u as Content,h as List,f as Root,p as Trigger,v as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Tabs/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Theme, Tabs as TabsTheme } from '@radix-ui/themes';\nimport React from 'react';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { weightVariants } from '../../../lib/constants';\nvar tabsVariants = cva('', {\n variants: {\n weight: __assign({}, weightVariants),\n },\n});\nexport var Root = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, [\"className\", \"children\", \"color\"]);\n if (!color)\n color = 'red';\n return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));\n});\nRoot.displayName = 'Tabs.Root';\nexport var List = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, size = _a.size, listProps = __rest(_a, [\"className\", \"weight\", \"children\", \"size\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n return (_jsx(TabsTheme.List, __assign({ ref: forwardedRef, size: sizeTheme }, listProps, { className: cn('', className), children: children })));\n});\nList.displayName = 'Tabs.List';\nexport var Trigger = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, triggerProps = __rest(_a, [\"className\", \"weight\", \"children\"]);\n return (_jsx(TabsTheme.Trigger, __assign({ ref: forwardedRef, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', className) }, triggerProps, { children: children })));\n});\nTrigger.displayName = 'Tabs.Trigger';\nexport var Content = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, contentProps = __rest(_a, [\"className\", \"weight\", \"children\"]);\n return (_jsx(TabsTheme.Content, __assign({ ref: forwardedRef }, contentProps, { className: cn('mt-3', className), children: children })));\n});\nContent.displayName = 'Tabs.Content';\nvar Tabs = {\n Root: Root,\n List: List,\n Trigger: Trigger,\n Content: Content,\n};\nexport default Tabs;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","cva","variants","weight","weightVariants","Root","React","forwardRef","_a","forwardedRef","className","children","color","rootProps","_jsx","Theme","accentColor","hasBackground","TabsTheme.Root","ref","cn","displayName","List","size","listProps","sizeTheme","TabsTheme.List","Trigger","triggerProps","TabsTheme.Trigger","Content","cont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AAUA,MACxL,IACAN,EAAKgB,YAAc,YACT,IAACC,EAAOhB,EAAMC,YAAW,SAAUC,EAAIC,GAC1C,IAACC,EAAYF,EAAGE,UAAoBF,EAAGL,WAAQQ,EAAWH,EAAGG,SAAUY,EAAOf,EAAGe,KAAMC,EAAY5B,EAAOY,EAAI,CAAC,YAAa,SAAU,WAAY,SACjJiB,EAAY,IAGhB,MAFa,UAATF,IACAE,EAAY,KACRX,EAAAA,IAAKY,EAAgB7C,EAAS,CAAEsC,IAAKV,EAAcc,KAAME,GAAaD,EAAW,CAAEd,UAAWU,EAAG,GAAIV,GAAYC,SAAUA,IACvI,IACAW,EAAKD,YAAc,YACT,IAACM,EAAUrB,EAAMC,YAAW,SAAUC,EAAIC,GAC7C,IAACC,EAAYF,EAAGE,UAAoBF,EAAGL,OAAO,IAACQ,EAAWH,EAAGG,SAAUiB,EAAehC,EAAOY,EAAI,CAAC,YAAa,SAAU,aAC5H,OAAQM,EAAAA,IAAKe,EAAmBhD,EAAS,CAAEsC,IAAKV,EAAcC,UAAWU,EAAG,wHAAyHV,IAAckB,EAAc,CAAEjB,SAAUA,IACjP,IACAgB,EAAQN,YAAc,eACZ,IAACS,EAAUxB,EAAMC,YAAW,SAAUC,EAAIC,GAC7C,IAACC,EAAYF,EAAGE,UAAoBF,EAAGL,OAAO,IAACQ,EAAWH,EAAGG,SAAUoB,EAAenC,EAAOY,EAAI,CAAC,YAAa,SAAU,aAC5H,OAAQM,EAAAA,IAAKkB,EAAmBnD,EAAS,CAAEsC,IAAKV,GAAgBsB,EAAc,CAAErB,UAAWU,EAAG,OAAQV,GAAYC,SAAUA,IAChI,IACAmB,EAAQT,YAAc,eACnB,IAACY,EAAO,CACP5B,KAAMA,EACNiB,KAAMA,EACNK,QAASA,EACTG,QAASA"}
@@ -1,58 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import React from 'react';
25
- import { cva } from 'class-variance-authority';
26
- import { TextArea as TextAreaTheme, Theme } from '@radix-ui/themes';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { radiusVariants, scalingVariants } from '../../../lib/constants';
29
- var textAreaNavVariants = cva('w-[250px]', {
30
- variants: {
31
- size: {
32
- small: 'text-xs h-[48px]',
33
- medium: 'text-sm h-[64px]',
34
- large: 'text-base h-[80px]',
35
- 'x-large': 'text-lg h-[96px]',
36
- },
37
- scaling: __assign({}, scalingVariants),
38
- radius: __assign({}, radiusVariants['extra-large']),
39
- },
40
- defaultVariants: {
41
- size: 'medium',
42
- scaling: '100%',
43
- radius: 'medium',
44
- },
45
- });
46
- export var TextArea = React.forwardRef(function (_a, forwardedRef) {
47
- var className = _a.className, children = _a.children, size = _a.size, appearance = _a.appearance, scaling = _a.scaling, radius = _a.radius, color = _a.color, textAreaProps = __rest(_a, ["className", "children", "size", "appearance", "scaling", "radius", "color"]);
48
- var sizeTheme = '2';
49
- if (size === 'small')
50
- sizeTheme = '1';
51
- if (size === 'large')
52
- sizeTheme = '3';
53
- if (!color)
54
- color = 'red';
55
- return (_jsx(Theme, { hasBackground: false, accentColor: color, children: _jsx(TextAreaTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, className: cn(textAreaNavVariants({ size: size, scaling: scaling, radius: radius }), size === 'x-large' && 'rt-r-size-4', className) }, textAreaProps)) }));
56
- });
57
- TextArea.displayName = 'TextArea';
58
- export default TextArea;
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import r from"react";import{cva as a}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as t}from"../../utils/utils.js";import{scalingVariants as s,radiusVariants as i}from"../../constants.js";import{TextArea as o}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/text-area.js";import{Theme as n}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js";var l=function(){return l=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var s in r=arguments[a])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},l.apply(this,arguments)},m=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(e);s<t.length;s++)r.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(a[t[s]]=e[t[s]])}return a},c=a("w-[250px]",{variants:{size:{small:"text-xs h-[48px]",medium:"text-sm h-[64px]",large:"text-base h-[80px]","x-large":"text-lg h-[96px]"},scaling:l({},s),radius:l({},i["extra-large"])},defaultVariants:{size:"medium",scaling:"100%",radius:"medium"}}),p=r.forwardRef((function(r,a){var s=r.className;r.children;var i=r.size,p=r.appearance,u=r.scaling,d=r.radius,f=r.color,x=m(r,["className","children","size","appearance","scaling","radius","color"]),h="2";return"small"===i&&(h="1"),"large"===i&&(h="3"),f||(f="red"),e.jsx(n,{hasBackground:!1,accentColor:f,children:e.jsx(o,l({ref:a,variant:p,size:h,className:t(c({size:i,scaling:u,radius:d}),"x-large"===i&&"rt-r-size-4",s)},x))})}));p.displayName="TextArea";export{p as TextArea,p as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/TextArea/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { TextArea as TextAreaTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nvar textAreaNavVariants = cva('w-[250px]', {\n variants: {\n size: {\n small: 'text-xs h-[48px]',\n medium: 'text-sm h-[64px]',\n large: 'text-base h-[80px]',\n 'x-large': 'text-lg h-[96px]',\n },\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n },\n defaultVariants: {\n size: 'medium',\n scaling: '100%',\n radius: 'medium',\n },\n});\nexport var TextArea = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, size = _a.size, appearance = _a.appearance, scaling = _a.scaling, radius = _a.radius, color = _a.color, textAreaProps = __rest(_a, [\"className\", \"children\", \"size\", \"appearance\", \"scaling\", \"radius\", \"color\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n if (!color)\n color = 'red';\n return (_jsx(Theme, { hasBackground: false, accentColor: color, children: _jsx(TextAreaTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, className: cn(textAreaNavVariants({ size: size, scaling: scaling, radius: radius }), size === 'x-large' && 'rt-r-size-4', className) }, textAreaProps)) }));\n});\nTextArea.displayName = 'TextArea';\nexport default TextArea;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","textAreaNavVariants","cva","variants","size","small","medium","large","scaling","scalingVariants","radius","radiusVariants","defaultVariants","TextArea","React","forwardRef","_a","forwardedRef","className","children","appearance","color","textAreaProps","sizeTheme","_jsx","Theme","hasBackground","accentColor","jsx","TextAreaTheme","ref","variant","cn","displayName"],"mappings":"+dAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAsBC,EAAI,YAAa,CACvCC,SAAU,CACNC,KAAM,CACFC,MAAO,mBACPC,OAAQ,mBACRC,MAAO,qBACP,UAAW,oBAEfC,QAAS3B,EAAS,CAAE,EAAE4B,GACtBC,OAAQ7B,EAAS,CAAA,EAAI8B,EAAe,iBAExCC,gBAAiB,CACbR,KAAM,SACNI,QAAS,OACTE,OAAQ,YAGLG,EAAWC,EAAMC,YAAW,SAAUC,EAAIC,GAC9C,IAACC,EAAYF,EAAGE,UAAsBF,EAAGG,SAAS,IAACf,EAAOY,EAAGZ,KAAMgB,EAAaJ,EAAGI,WAAYZ,EAAUQ,EAAGR,QAASE,EAASM,EAAGN,OAAQW,EAAQL,EAAGK,MAAOC,EAAgB1B,EAAOoB,EAAI,CAAC,YAAa,WAAY,OAAQ,aAAc,UAAW,SAAU,UAC1PO,EAAY,IAOhB,MANa,UAATnB,IACAmB,EAAY,KACH,UAATnB,IACAmB,EAAY,KACXF,IACDA,EAAQ,OACJG,EAAAA,IAAKC,EAAO,CAAEC,eAAe,EAAOC,YAAaN,EAAOF,SAAUK,EAAII,IAACC,EAAehD,EAAS,CAAEiD,IAAKb,EAAcc,QAASX,EAAYhB,KAAMmB,EAAWL,UAAWc,EAAG/B,EAAoB,CAAEG,KAAMA,EAAMI,QAASA,EAASE,OAAQA,IAAoB,YAATN,GAAsB,cAAec,IAAcI,KAC9S,IACAT,EAASoB,YAAc"}
@@ -1,56 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import React from 'react';
25
- import { cva } from 'class-variance-authority';
26
- import { cn } from '../../../lib/utils/utils';
27
- import { bgColorStyle, radiusVariants } from '../../../lib/constants';
28
- import { Theme, TextField as TextFieldTheme } from '@radix-ui/themes';
29
- var textFieldVariants = cva('', {
30
- variants: {
31
- radius: __assign({}, radiusVariants['base']),
32
- color: bgColorStyle(),
33
- },
34
- });
35
- export var Root = React.forwardRef(function (_a, forwardedRef) {
36
- var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "children"]);
37
- if (!color)
38
- color = 'red';
39
- var sizeTheme = '2';
40
- if (size === 'small')
41
- sizeTheme = '1';
42
- if (size === 'large')
43
- sizeTheme = '3';
44
- return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx(TextFieldTheme.Root, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })) }));
45
- });
46
- Root.displayName = 'TextField.Root';
47
- export var Slot = React.forwardRef(function (_a, forwardedRef) {
48
- var className = _a.className, color = _a.color, side = _a.side, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "side", "radius", "children"]);
49
- return (_jsx(TextFieldTheme.Slot, __assign({ ref: forwardedRef, color: color, side: side, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })));
50
- });
51
- Slot.displayName = 'TextField.Slot';
52
- var TextField = {
53
- Root: Root,
54
- Slot: Slot,
55
- };
56
- export default TextField;
1
+ import{j as r}from"../../../../_virtual/jsx-runtime.js";import e from"react";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{radiusVariants as s,bgColorStyle as t}from"../../constants.js";import{Theme as i}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js";import{Root as n,Slot as l}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/text-field.js";var c=function(){return c=Object.assign||function(r){for(var e,o=1,a=arguments.length;o<a;o++)for(var s in e=arguments[o])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},c.apply(this,arguments)},d=function(r,e){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(r);s<a.length;s++)e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(o[a[s]]=r[a[s]])}return o},m=o("",{variants:{radius:c({},s.base),color:t()}}),u=e.forwardRef((function(e,o){var s=e.className,t=e.color,l=e.size,u=e.appearance,p=e.scaling,f=void 0===p?"100%":p,h=e.radius,j=e.children,v=d(e,["className","color","size","appearance","scaling","radius","children"]);t||(t="red");var y="2";return"small"===l&&(y="1"),"large"===l&&(y="3"),r.jsx(i,{scaling:f,accentColor:t,hasBackground:!1,children:r.jsx(n,c({ref:o,variant:u,size:y,radius:h,color:t,className:a(m({radius:h}),s)},v,{children:j}))})}));u.displayName="TextField.Root";var p=e.forwardRef((function(e,o){var s=e.className,t=e.color,i=e.side,n=e.radius,u=e.children,p=d(e,["className","color","side","radius","children"]);return r.jsx(l,c({ref:o,color:t,side:i,className:a(m({radius:n}),s)},p,{children:u}))}));p.displayName="TextField.Slot";var f={Root:u,Slot:p};export{u as Root,p as Slot,f as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/TextField/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { bgColorStyle, radiusVariants } from '../../../lib/constants';\nimport { Theme, TextField as TextFieldTheme } from '@radix-ui/themes';\nvar textFieldVariants = cva('', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n color: bgColorStyle(),\n },\n});\nexport var Root = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, [\"className\", \"color\", \"size\", \"appearance\", \"scaling\", \"radius\", \"children\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx(TextFieldTheme.Root, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })) }));\n});\nRoot.displayName = 'TextField.Root';\nexport var Slot = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, color = _a.color, side = _a.side, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, [\"className\", \"color\", \"side\", \"radius\", \"children\"]);\n return (_jsx(TextFieldTheme.Slot, __assign({ ref: forwardedRef, color: color, side: side, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })));\n});\nSlot.displayName = 'TextField.Slot';\nvar TextField = {\n Root: Root,\n Slot: Slot,\n};\nexport default TextField;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","textFieldVariants","cva","variants","radius","radiusVariants","color","bgColorStyle","Root","React","forwardRef","_a","forwardedRef","className","size","appearance","_b","scaling","children","sliderProps","sizeTheme","_jsx","Theme","accentColor","hasBackground","jsx","TextFieldTheme.Root","ref","variant","cn","displayName","Slot","side","TextFieldTheme.Slot","TextField"],"mappings":"meAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,E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,CAAE8C,IAAKf,EAAcN,MAAOA,EAAO0B,KAAMA,EAAMnB,UAAWgB,EAAG5B,EAAkB,CAAEG,OAAQA,IAAWS,IAAcM,EAAa,CAAED,SAAUA,IAC1L,IACAa,EAAKD,YAAc,iBAChB,IAACI,EAAY,CACZ1B,KAAMA,EACNuB,KAAMA"}
@@ -1,67 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as ToastPrimitive from '@radix-ui/react-toast';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import Button from '../../../lib/components/Button';
29
- import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
30
- import { useToastContext } from './ToastRoot';
31
- export var toastActionButtonVariants = cva("absolute items-center justify-center", {
32
- variants: {
33
- radius: __assign({}, radiusVariants['base']),
34
- size: {
35
- small: 'text-xs min-w-[56px] h-[25px] font-normal right-3',
36
- medium: 'text-xs min-w-[56px] h-[25px] font-normal right-3',
37
- large: 'text-[15px] min-w-[76px] h-[35px] font-medium right-4',
38
- 'x-large': 'text-[15px] min-w-[76px] h-[35px] font-medium right-4',
39
- },
40
- scaling: __assign({}, scalingVariants),
41
- },
42
- defaultVariants: {
43
- radius: 'medium',
44
- scaling: '100%',
45
- size: 'medium',
46
- },
47
- });
48
- export var ToastActionButton = forwardRef(function (_a, ref) {
49
- var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.altText, altText = _c === void 0 ? 'altText' : _c, props = __rest(_a, ["className", "children", "radius", "appearance", "altText"]);
50
- var _d = useToastContext(), scaling = _d.scaling, size = _d.size, _e = _d.color, color = _e === void 0 ? 'danger' : _e;
51
- var semantics = ['danger', 'warning', 'success', 'information'];
52
- var colorMap = {
53
- danger: 'red',
54
- information: 'sky',
55
- success: 'green',
56
- warning: 'amber',
57
- };
58
- var getSemanticsStyle = function (color) {
59
- var mappedColor = colorMap[color];
60
- return mappedColor ? appearanceStyle('outline', mappedColor) : undefined;
61
- };
62
- var buttonClassName = cn(toastActionButtonVariants({ size: size, radius: radius, scaling: scaling }), color && semantics.includes(color)
63
- ? getSemanticsStyle(color)
64
- : appearanceStyle(appearance, color !== null && color !== void 0 ? color : 'red'), className);
65
- return (_jsx(ToastPrimitive.Action, __assign({ ref: ref, altText: altText }, props, { className: buttonClassName, asChild: true, children: _jsx(Button, { children: children }) })));
66
- });
67
- ToastActionButton.displayName = 'Toast.ActionButton';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{Action as e}from"../../../../node_modules/@radix-ui/react-toast/dist/index.mjs.js";import{cva as i}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as n}from"../../utils/utils.js";import{Button as a}from"../Button/index.js";import{radiusVariants as o,scalingVariants as s,appearanceStyle as l}from"../../constants.js";import{useToastContext as m}from"./ToastRoot.js";var c=function(){return c=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},c.apply(this,arguments)},u=function(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(e[i[n]]=t[i[n]])}return e},d=i("absolute items-center justify-center",{variants:{radius:c({},o.base),size:{small:"text-xs min-w-[56px] h-[25px] font-normal right-3",medium:"text-xs min-w-[56px] h-[25px] font-normal right-3",large:"text-[15px] min-w-[76px] h-[35px] font-medium right-4","x-large":"text-[15px] min-w-[76px] h-[35px] font-medium right-4"},scaling:c({},s)},defaultVariants:{radius:"medium",scaling:"100%",size:"medium"}}),p=r((function(r,i){var o=r.className,s=r.children,p=r.radius,f=r.appearance,x=void 0===f?"surface":f,g=r.altText,j=void 0===g?"altText":g,h=u(r,["className","children","radius","appearance","altText"]),y=m(),v=y.scaling,b=y.size,O=y.color,w=void 0===O?"danger":O,T={danger:"red",information:"sky",success:"green",warning:"amber"},z=n(d({size:b,radius:p,scaling:v}),w&&["danger","warning","success","information"].includes(w)?function(t){var r=T[t];return r?l("outline",r):void 0}(w):l(x,null!=w?w:"red"),o);return t.jsx(e,c({ref:i,altText:j},h,{className:z,asChild:!0,children:t.jsx(a,{children:s})}))}));p.displayName="Toast.ActionButton";export{p as ToastActionButton,d as toastActionButtonVariants};
2
+ //# sourceMappingURL=ToastActionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastActionButton.js","sources":["../../../../lib/components/Toast/ToastActionButton.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as ToastPrimitive from '@radix-ui/react-toast';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport Button from '../../../lib/components/Button';\nimport { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { useToastContext } from './ToastRoot';\nexport var toastActionButtonVariants = cva(\"absolute items-center justify-center\", {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'text-xs min-w-[56px] h-[25px] font-normal right-3',\n medium: 'text-xs min-w-[56px] h-[25px] font-normal right-3',\n large: 'text-[15px] min-w-[76px] h-[35px] font-medium right-4',\n 'x-large': 'text-[15px] min-w-[76px] h-[35px] font-medium right-4',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n size: 'medium',\n },\n});\nexport var ToastActionButton = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.altText, altText = _c === void 0 ? 'altText' : _c, props = __rest(_a, [\"className\", \"children\", \"radius\", \"appearance\", \"altText\"]);\n var _d = useToastContext(), scaling = _d.scaling, size = _d.size, _e = _d.color, color = _e === void 0 ? 'danger' : _e;\n var semantics = ['danger', 'warning', 'success', 'information'];\n var colorMap = {\n danger: 'red',\n information: 'sky',\n success: 'green',\n warning: 'amber',\n };\n var getSemanticsStyle = function (color) {\n var mappedColor = colorMap[color];\n return mappedColor ? appearanceStyle('outline', mappedColor) : undefined;\n };\n var buttonClassName = cn(toastActionButtonVariants({ size: size, radius: radius, scaling: scaling }), color && semantics.includes(color)\n ? getSemanticsStyle(color)\n : appearanceStyle(appearance, color !== null && color !== void 0 ? color : 'red'), className);\n return (_jsx(ToastPrimitive.Action, __assign({ ref: ref, altText: altText }, props, { className: buttonClassName, asChild: true, children: _jsx(Button, { children: children }) })));\n});\nToastActionButton.displayName = 'Toast.ActionButton';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toastActionButtonVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","defaultVariants","ToastActionButton","forwardRef","_a","ref","className","children","_b","appearance","_c","altText","props","_d","useToastContext","_e","color","colorMap","danger","information","success","warning","buttonClassName","cn","includes","mappedColor","appearanceStyle","undefined","getSemanticsStyle","_jsx","jsx","ToastPrimitive.Action","asChild","Button","displayName"],"mappings":"ofAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,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AiBU,SAAS,EAAMzB,SAAUsB,MAAKI,EAAQ,CAAE1B,SAAUA,MACxK,IACAL,EAAkBgC,YAAc"}
@@ -1,53 +1,2 @@
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 { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as ToastPrimitive from '@radix-ui/react-toast';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { useToastContext } from './ToastRoot';
29
- export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark:text-slateDark-11', {
30
- variants: {
31
- size: {
32
- small: 'text-xs font-normal w-[220px]',
33
- medium: 'text-xs font-normal w-[312px]',
34
- large: 'text-base font-medium w-[284px]',
35
- 'x-large': 'text-base font-medium w-[284px]',
36
- },
37
- color: {
38
- danger: 'text-red-11',
39
- warning: 'text-amber-11',
40
- success: 'text-green-11',
41
- information: 'text-sky-11',
42
- },
43
- },
44
- defaultVariants: {
45
- size: 'medium',
46
- },
47
- });
48
- export var ToastDescription = forwardRef(function (_a, ref) {
49
- var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
50
- var _b = useToastContext(), size = _b.size, color = _b.color;
51
- return (_jsx(ToastPrimitive.Description, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(toastDescriptionVariants({ size: size, color: color }), className), children: contentText !== null && contentText !== void 0 ? contentText : children }) })));
52
- });
53
- ToastDescription.displayName = 'Toast.Description';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Description as r}from"../../../../node_modules/@radix-ui/react-toast/dist/index.mjs.js";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as n}from"../../utils/utils.js";import{useToastContext as a}from"./ToastRoot.js";var s=function(){return s=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},s.apply(this,arguments)},i=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r},l=o("flex m-0 text-wrap text-slate-11 dark:text-slateDark-11",{variants:{size:{small:"text-xs font-normal w-[220px]",medium:"text-xs font-normal w-[312px]",large:"text-base font-medium w-[284px]","x-large":"text-base font-medium w-[284px]"},color:{danger:"text-red-11",warning:"text-amber-11",success:"text-green-11",information:"text-sky-11"}},defaultVariants:{size:"medium"}}),m=e((function(e,o){var m=e.className,c=e.children,p=e.contentText,x=i(e,["className","children","contentText"]),f=a(),u=f.size,d=f.color;return t.jsx(r,s({ref:o},x,{children:t.jsx("p",{className:n(l({size:u,color:d}),m),children:null!=p?p:c})}))}));m.displayName="Toast.Description";export{m as ToastDescription,l as toastDescriptionVariants};
2
+ //# sourceMappingURL=ToastDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastDescription.js","sources":["../../../../lib/components/Toast/ToastDescription.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as ToastPrimitive from '@radix-ui/react-toast';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { useToastContext } from './ToastRoot';\nexport var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark:text-slateDark-11', {\n variants: {\n size: {\n small: 'text-xs font-normal w-[220px]',\n medium: 'text-xs font-normal w-[312px]',\n large: 'text-base font-medium w-[284px]',\n 'x-large': 'text-base font-medium w-[284px]',\n },\n color: {\n danger: 'text-red-11',\n warning: 'text-amber-11',\n success: 'text-green-11',\n information: 'text-sky-11',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var ToastDescription = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, [\"className\", \"children\", \"contentText\"]);\n var _b = useToastContext(), size = _b.size, color = _b.color;\n return (_jsx(ToastPrimitive.Description, __assign({ ref: ref }, props, { children: _jsx(\"p\", { className: cn(toastDescriptionVariants({ size: size, color: color }), className), children: contentText !== null && contentText !== void 0 ? contentText : children }) })));\n});\nToastDescription.displayName = 'Toast.Description';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toastDescriptionVariants","cva","variants","size","small","medium","large","color","danger","warning","success","information","defaultVariants","ToastDescription","forwardRef","_a","ref","className","children","contentText","props","_b","useToastContext","_jsx","ToastPrimitive.Description","jsx","cn","displayName"],"mappings":"+WAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAA2BC,EAAI,0DAA2D,CACjGC,SAAU,CACNC,KAAM,CACFC,MAAO,gCACPC,OAAQ,gCACRC,MAAO,kCACP,UAAW,mCAEfC,MAAO,CACHC,OAAQ,cACRC,QAAS,gBACTC,QAAS,gBACTC,YAAa,gBAGrBC,gBAAiB,CACbT,KAAM,YA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