@lotte-innovate/ui-component-test 0.1.72 → 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 -3
  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 -3
  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
@@ -1,54 +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 { cva } from 'class-variance-authority';
26
- import { cn } from '../../../lib/utils/utils';
27
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants, weightVariants, } from '../../../lib/constants';
28
- var BadgeVariants = cva('inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit', {
29
- variants: {
30
- radius: __assign({}, radiusVariants['base']),
31
- size: {
32
- small: 'text-xs h-[20px] px-1.5 py-0.5',
33
- medium: 'text-xs h-[24px] px-2 py-1',
34
- large: 'text-sm h-[28px] px-2.5 py-1',
35
- },
36
- scaling: __assign({}, scalingVariants),
37
- weight: __assign({}, weightVariants),
38
- color: primaryColorStyle(),
39
- },
40
- defaultVariants: {
41
- radius: 'medium',
42
- size: 'medium',
43
- scaling: '100%',
44
- weight: 'medium',
45
- color: 'red',
46
- },
47
- });
48
- var Badge = forwardRef(function (_a, ref) {
49
- var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, weight = _a.weight, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "scaling", "weight", "size", "color", "appearance"]);
50
- var badgeClassName = cn(BadgeVariants({ radius: radius, scaling: scaling, weight: weight, size: size, color: color }), appearanceStyle(appearance, color, false), className);
51
- return (_jsx("div", __assign({ ref: ref, className: badgeClassName }, props, { children: children })));
52
- });
53
- Badge.displayName = 'Badge';
54
- export default Badge;
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{cva as i}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as t}from"../../utils/utils.js";import{radiusVariants as s,scalingVariants as o,weightVariants as a,primaryColorStyle as n,appearanceStyle as l}from"../../constants.js";var c=function(){return c=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++)for(var s in r=arguments[i])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},c.apply(this,arguments)},p=function(e,r){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(i[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])&&(i[t[s]]=e[t[s]])}return i},u=i("inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit",{variants:{radius:c({},s.base),size:{small:"text-xs h-[20px] px-1.5 py-0.5",medium:"text-xs h-[24px] px-2 py-1",large:"text-sm h-[28px] px-2.5 py-1"},scaling:c({},o),weight:c({},a),color:n()},defaultVariants:{radius:"medium",size:"medium",scaling:"100%",weight:"medium",color:"red"}}),m=r((function(r,i){var s=r.className,o=r.children,a=r.radius,n=r.scaling,m=r.weight,f=r.size,d=r.color,g=void 0===d?"red":d,x=r.appearance,h=void 0===x?"solid":x,y=p(r,["className","children","radius","scaling","weight","size","color","appearance"]),j=t(u({radius:a,scaling:n,weight:m,size:f,color:g}),l(h,g,!1),s);return e.jsx("div",c({ref:i,className:j},y,{children:o}))}));m.displayName="Badge";export{m as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Badge/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 { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants, weightVariants, } from '../../../lib/constants';\nvar BadgeVariants = cva('inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'text-xs h-[20px] px-1.5 py-0.5',\n medium: 'text-xs h-[24px] px-2 py-1',\n large: 'text-sm h-[28px] px-2.5 py-1',\n },\n scaling: __assign({}, scalingVariants),\n weight: __assign({}, weightVariants),\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n weight: 'medium',\n color: 'red',\n },\n});\nvar Badge = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, weight = _a.weight, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, [\"className\", \"children\", \"radius\", \"scaling\", \"weight\", \"size\", \"color\", \"appearance\"]);\n var badgeClassName = cn(BadgeVariants({ radius: radius, scaling: scaling, weight: weight, size: size, color: color }), appearanceStyle(appearance, color, false), className);\n return (_jsx(\"div\", __assign({ ref: ref, className: badgeClassName }, props, { children: children })));\n});\nBadge.displayName = 'Badge';\nexport default Badge;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","BadgeVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","weight","weightVariants","color","primaryColorStyle","defaultVariants","Badge","forwardRef","_a","ref","className","children","_b","_c","appearance","props","badgeClassName","cn","appearanceStyle","_jsx","jsx","displayName"],"mappings":"wWAAA,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,EAMIiB,EAAgBC,EAAI,uHAAwH,CAC5IC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACFC,MAAO,iCACPC,OAAQ,6BACRC,MAAO,gCAEXC,QAAS7B,EAAS,CAAE,EAAE8B,GACtBC,OAAQ/B,EAAS,CAAE,EAAEgC,GACrBC,MAAOC,KAEXC,gBAAiB,CACbZ,OAAQ,SACRE,KAAM,SACNI,QAAS,OACTE,OAAQ,SACRE,MAAO,SAGXG,EAAQC,GAAW,SAAUC,EAAIC,GACjC,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUlB,EAASe,EAAGf,OAAQM,EAAUS,EAAGT,QAASE,EAASO,EAAGP,OAAQN,EAAOa,EAAGb,KAAMiB,EAAKJ,EAAGL,MAAOA,OAAe,IAAPS,EAAgB,MAAQA,EAAIC,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAQ9B,EAAOuB,EAAI,CAAC,YAAa,WAAY,SAAU,UAAW,SAAU,OAAQ,QAAS,eAC/UQ,EAAiBC,EAAG3B,EAAc,CAAEG,OAAQA,EAAQM,QAASA,EAASE,OAAQA,EAAQN,KAAMA,EAAMQ,MAAOA,IAAUe,EAAgBJ,EAAYX,GAAO,GAAQO,GAClK,OAAQS,EAAIC,IAAC,MAAOlD,EAAS,CAAEuC,IAAKA,EAAKC,UAAWM,GAAkBD,EAAO,CAAEJ,SAAUA,IAC7F,IACAL,EAAMe,YAAc"}
@@ -1,63 +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 { Bar } from 'react-chartjs-2';
25
- import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Tooltip, Legend, } from 'chart.js/auto';
26
- import { scalingVariants } from '../../../lib/constants';
27
- import { cva } from 'class-variance-authority';
28
- import { cn } from '../../../lib/utils/utils';
29
- import { chartAlphaColorList, chartColorList } from '../../../lib/color/constants';
30
- import { useDarkMode } from '../../../lib/utils/useDarkMode';
31
- ChartJS.register(CategoryScale, LinearScale, BarElement, Tooltip, Legend);
32
- var barChartVariants = cva('', {
33
- variants: {
34
- scaling: __assign({}, scalingVariants),
35
- },
36
- defaultVariants: {
37
- scaling: '100%',
38
- },
39
- });
40
- var BarChart = function (_a) {
41
- var className = _a.className, title = _a.title, datasets = _a.datasets, labels = _a.labels, scaling = _a.scaling, legend = _a.legend, width = _a.width, height = _a.height, indexAxis = _a.indexAxis, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, ["className", "title", "datasets", "labels", "scaling", "legend", "width", "height", "indexAxis", "appearance", "isColorMixed"]);
42
- var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];
43
- datasets.forEach(function (dataset, index) {
44
- if (!dataset.backgroundColor) {
45
- if (isColorMixed) {
46
- datasets[index] = __assign(__assign({}, dataset), { backgroundColor: appearance === 'solid' ? chartColorList.mixed : chartAlphaColorList.mixed, borderColor: chartColorList.mixed });
47
- }
48
- else {
49
- datasets[index] = __assign(__assign({}, dataset), { backgroundColor: appearance === 'solid' ? chartColorList.sorting : chartAlphaColorList.sorting, borderColor: chartColorList.sorting });
50
- }
51
- }
52
- });
53
- return (_jsx(Bar, __assign({ data: { labels: labels, datasets: datasets }, options: {
54
- plugins: {
55
- title: title,
56
- legend: legend,
57
- },
58
- indexAxis: indexAxis,
59
- scales: __assign({}, defaultScales.linescale),
60
- }, className: cn(barChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));
61
- };
62
- BarChart.displayName = 'BarChart';
63
- export default BarChart;
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{Bar as o}from"../../../../node_modules/react-chartjs-2/dist/index.js";import"../../../../node_modules/chart.js/auto/auto.js";import{scalingVariants as r}from"../../constants.js";import{cva as e}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as s}from"../../utils/utils.js";import{chartColorList as a,chartAlphaColorList as i}from"../../color/constants.js";import{useDarkMode as n}from"../../utils/useDarkMode.js";import{Chart as l,CategoryScale as d,LinearScale as c,BarElement as m,Tooltip as p,Legend as u}from"../../../../node_modules/chart.js/dist/chart.js";var f=function(){return f=Object.assign||function(t){for(var o,r=1,e=arguments.length;r<e;r++)for(var s in o=arguments[r])Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);return t},f.apply(this,arguments)},g=function(t,o){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&o.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(e=Object.getOwnPropertySymbols(t);s<e.length;s++)o.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(t,e[s])&&(r[e[s]]=t[e[s]])}return r};l.register(d,c,m,p,u);var j=e("",{variants:{scaling:f({},r)},defaultVariants:{scaling:"100%"}}),h=function(r){var e=r.className,l=r.title,d=r.datasets,c=r.labels,m=r.scaling,p=r.legend,u=r.width,h=r.height,x=r.indexAxis,b=r.appearance,y=void 0===b?"solid":b,v=r.isColorMixed,O=void 0===v||v,C=g(r,["className","title","datasets","labels","scaling","legend","width","height","indexAxis","appearance","isColorMixed"]),w=n()[1];return d.forEach((function(t,o){t.backgroundColor||(d[o]=f(f({},t),O?{backgroundColor:"solid"===y?a.mixed:i.mixed,borderColor:a.mixed}:{backgroundColor:"solid"===y?a.sorting:i.sorting,borderColor:a.sorting}))})),t.jsx(o,f({data:{labels:c,datasets:d},options:{plugins:{title:l,legend:p},indexAxis:x,scales:f({},w.linescale)},className:s(j({scaling:m}),e),width:u,height:h},C))};h.displayName="BarChart";export{h as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/BarChart/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 { Bar } from 'react-chartjs-2';\nimport { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Tooltip, Legend, } from 'chart.js/auto';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { chartAlphaColorList, chartColorList } from '../../../lib/color/constants';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nChartJS.register(CategoryScale, LinearScale, BarElement, Tooltip, Legend);\nvar barChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nvar BarChart = function (_a) {\n var className = _a.className, title = _a.title, datasets = _a.datasets, labels = _a.labels, scaling = _a.scaling, legend = _a.legend, width = _a.width, height = _a.height, indexAxis = _a.indexAxis, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"datasets\", \"labels\", \"scaling\", \"legend\", \"width\", \"height\", \"indexAxis\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];\n datasets.forEach(function (dataset, index) {\n if (!dataset.backgroundColor) {\n if (isColorMixed) {\n datasets[index] = __assign(__assign({}, dataset), { backgroundColor: appearance === 'solid' ? chartColorList.mixed : chartAlphaColorList.mixed, borderColor: chartColorList.mixed });\n }\n else {\n datasets[index] = __assign(__assign({}, dataset), { backgroundColor: appearance === 'solid' ? chartColorList.sorting : chartAlphaColorList.sorting, borderColor: chartColorList.sorting });\n }\n }\n });\n return (_jsx(Bar, __assign({ data: { labels: labels, datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n },\n indexAxis: indexAxis,\n scales: __assign({}, defaultScales.linescale),\n }, className: cn(barChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nBarChart.displayName = 'BarChart';\nexport default BarChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ChartJS","register","CategoryScale","LinearScale","BarElement","Tooltip","Legend","barChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","BarChart","_a","className","title","datasets","labels","legend","width","height","indexAxis","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","forEach","dataset","index","backgroundColor","chartColorList","mixed","chartAlphaColorList","borderColor","sorting","_jsx","Bar","data","options","plugins","scales","linescale","cn","displayName"],"mappings":"spBAAA,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,EASAiB,EAAQC,SAASC,EAAeC,EAAaC,EAAYC,EAASC,GAClE,IAAIC,EAAmBC,EAAI,GAAI,CAC3BC,SAAU,CACNC,QAAS9B,EAAS,CAAE,EAAE+B,IAE1BC,gBAAiB,CACbF,QAAS,UAGbG,EAAW,SAAUC,GACrB,IAAIC,EAAYD,EAAGC,UAAWC,EAAQF,EAAGE,MAAOC,EAAWH,EAAGG,SAAUC,EAASJ,EAAGI,OAAQR,EAAUI,EAAGJ,QAASS,EAASL,EAAGK,OAAQC,EAAQN,EAAGM,MAAOC,EAASP,EAAGO,OAAQC,EAAYR,EAAGQ,UAAWC,EAAKT,EAAGU,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKX,EAAGY,aAAcA,OAAsB,IAAPD,GAAuBA,EAAIE,EAAQhC,EAAOmB,EAAI,CAAC,YAAa,QAAS,WAAY,SAAU,UAAW,SAAU,QAAS,SAAU,YAAa,aAAc,iBAChac,EAA/BC,IAAkD,GAW3D,OAVAZ,EAASa,SAAQ,SAAUC,EAASC,GAC3BD,EAAQE,kBAELhB,EAASe,GAASpD,EAASA,EAAS,CAAA,EAAImD,GADxCL,EACkD,CAAEO,gBAAgC,UAAfT,EAAyBU,EAAeC,MAAQC,EAAoBD,MAAOE,YAAaH,EAAeC,OAG1H,CAAEF,gBAAgC,UAAfT,EAAyBU,EAAeI,QAAUF,EAAoBE,QAASD,YAAaH,EAAeI,UAGhM,IACYC,MAAKC,EAAK5D,EAAS,CAAE6D,KAAM,CAAEvB,OAAQA,EAAQD,SAAUA,GAAYyB,QAAS,CAC5EC,QAAS,CACL3B,MAAOA,EACPG,OAAQA,GAEZG,UAAWA,EACXsB,OAAQhE,EAAS,GAAIgD,EAAciB,YACpC9B,UAAW+B,EAAGvC,EAAiB,CAAEG,QAASA,IAAYK,GAAYK,MAAOA,EAAOC,OAAQA,GAAUM,GAC7G,EACAd,EAASkC,YAAc"}
@@ -1,73 +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 { Bubble } from 'react-chartjs-2';
25
- import { Chart as ChartJS, LinearScale, PointElement, Tooltip, Legend, plugins, } from 'chart.js/auto';
26
- import { scalingVariants } from '../../../lib/constants';
27
- import { cva } from 'class-variance-authority';
28
- import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
29
- import ChartDataLabels from 'chartjs-plugin-datalabels';
30
- import { useDarkMode } from '../../../lib/utils/useDarkMode';
31
- import { cn } from '../../../lib/utils/utils';
32
- ChartJS.register(LinearScale, PointElement, Tooltip, Legend, plugins, ChartDataLabels);
33
- ChartJS.defaults.set('plugins.datalabels', {
34
- display: false,
35
- });
36
- var bubbleChartVariants = cva('', {
37
- variants: {
38
- scaling: __assign({}, scalingVariants),
39
- },
40
- defaultVariants: {
41
- scaling: '100%',
42
- },
43
- });
44
- export var BubbleChart = function (_a) {
45
- var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, scaling = _a.scaling, width = _a.width, height = _a.height, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, ["className", "title", "legend", "datalabels", "datasets", "scaling", "width", "height", "appearance", "isColorMixed"]);
46
- var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];
47
- var getChartColor = function (isColorMixed, appearance) {
48
- if (appearance === 'solid') {
49
- return isColorMixed ? chartColorList.mixed : chartColorList.sorting;
50
- }
51
- if (appearance === 'soft') {
52
- return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;
53
- }
54
- };
55
- datasets.forEach(function (dataset, index) {
56
- var ChartColor = getChartColor(isColorMixed, appearance);
57
- var BorderColor = getChartColor(isColorMixed, 'solid');
58
- if (!ChartColor || !BorderColor)
59
- return;
60
- dataset.backgroundColor = ChartColor[index];
61
- dataset.borderColor = BorderColor[index];
62
- });
63
- return (_jsx(Bubble, __assign({ data: { datasets: datasets }, options: {
64
- plugins: {
65
- title: title,
66
- legend: legend,
67
- datalabels: datalabels,
68
- },
69
- scales: __assign({}, defaultScales.linescale),
70
- }, className: cn(bubbleChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));
71
- };
72
- BubbleChart.displayName = 'BubbleChart';
73
- export default BubbleChart;
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{Bubble as a}from"../../../../node_modules/react-chartjs-2/dist/index.js";import"../../../../node_modules/chart.js/auto/auto.js";import{scalingVariants as s}from"../../constants.js";import{cva as e}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{chartColorList as o,chartAlphaColorList as r}from"../../color/constants.js";import i from"../../../../node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js";import{useDarkMode as l}from"../../utils/useDarkMode.js";import{cn as n}from"../../utils/utils.js";import{Chart as d,LinearScale as c,PointElement as p,Tooltip as u,Legend as m,plugins as f}from"../../../../node_modules/chart.js/dist/chart.js";var g=function(){return g=Object.assign||function(t){for(var a,s=1,e=arguments.length;s<e;s++)for(var o in a=arguments[s])Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o]);return t},g.apply(this,arguments)},j=function(t,a){var s={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(s[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(s[e[o]]=t[e[o]])}return s};d.register(c,p,u,m,f,i),d.defaults.set("plugins.datalabels",{display:!1});var h=e("",{variants:{scaling:g({},s)},defaultVariants:{scaling:"100%"}}),b=function(s){var e=s.className,i=s.title,d=s.legend,c=s.datalabels,p=s.datasets,u=s.scaling,m=s.width,f=s.height,b=s.appearance,v=void 0===b?"solid":b,y=s.isColorMixed,O=void 0===y||y,x=j(s,["className","title","legend","datalabels","datasets","scaling","width","height","appearance","isColorMixed"]),w=l()[1],_=function(t,a){return"solid"===a?t?o.mixed:o.sorting:"soft"===a?t?r.mixed:r.sorting:void 0};return p.forEach((function(t,a){var s=_(O,v),e=_(O,"solid");s&&e&&(t.backgroundColor=s[a],t.borderColor=e[a])})),t.jsx(a,g({data:{datasets:p},options:{plugins:{title:i,legend:d,datalabels:c},scales:g({},w.linescale)},className:n(h({scaling:u}),e),width:m,height:f},x))};b.displayName="BubbleChart";export{b as BubbleChart,b as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/BubbleChart/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 { Bubble } from 'react-chartjs-2';\nimport { Chart as ChartJS, LinearScale, PointElement, Tooltip, Legend, plugins, } from 'chart.js/auto';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cva } from 'class-variance-authority';\nimport { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nimport { cn } from '../../../lib/utils/utils';\nChartJS.register(LinearScale, PointElement, Tooltip, Legend, plugins, ChartDataLabels);\nChartJS.defaults.set('plugins.datalabels', {\n display: false,\n});\nvar bubbleChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var BubbleChart = function (_a) {\n var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, scaling = _a.scaling, width = _a.width, height = _a.height, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"legend\", \"datalabels\", \"datasets\", \"scaling\", \"width\", \"height\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];\n var getChartColor = function (isColorMixed, appearance) {\n if (appearance === 'solid') {\n return isColorMixed ? chartColorList.mixed : chartColorList.sorting;\n }\n if (appearance === 'soft') {\n return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;\n }\n };\n datasets.forEach(function (dataset, index) {\n var ChartColor = getChartColor(isColorMixed, appearance);\n var BorderColor = getChartColor(isColorMixed, 'solid');\n if (!ChartColor || !BorderColor)\n return;\n dataset.backgroundColor = ChartColor[index];\n dataset.borderColor = BorderColor[index];\n });\n return (_jsx(Bubble, __assign({ data: { datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n datalabels: datalabels,\n },\n scales: __assign({}, defaultScales.linescale),\n }, className: cn(bubbleChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nBubbleChart.displayName = 'BubbleChart';\nexport default BubbleChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ChartJS","register","LinearScale","PointElement","Tooltip","Legend","plugins","ChartDataLabels","defaults","set","display","bubbleChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","BubbleChart","_a","className","title","legend","datalabels","datasets","width","height","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","getChartColor","chartColorList","mixed","sorting","chartAlphaColorList","forEach","dataset","index","ChartColor","BorderColor","backgroundColor","borderColor","_jsx","jsx","Bubble","data","options","scales","linescale","cn","displayName"],"mappings":"6vBAAA,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,EAUAiB,EAAQC,SAASC,EAAaC,EAAcC,EAASC,EAAQC,EAASC,GACtEP,EAAQQ,SAASC,IAAI,qBAAsB,CACvCC,SAAS,IAEb,IAAIC,EAAsBC,EAAI,GAAI,CAC9BC,SAAU,CACNC,QAASlC,EAAS,CAAE,EAAEmC,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAc,SAAUC,GAC/B,IAAIC,EAAYD,EAAGC,UAAWC,EAAQF,EAAGE,MAAOC,EAASH,EAAGG,OAAQC,EAAaJ,EAAGI,WAAYC,EAAWL,EAAGK,SAAUT,EAAUI,EAAGJ,QAASU,EAAQN,EAAGM,MAAOC,EAASP,EAAGO,OAAQC,EAAKR,EAAGS,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKV,EAAGW,aAAcA,OAAsB,IAAPD,GAAuBA,EAAIE,EAAQnC,EAAOuB,EAAI,CAAC,YAAa,QAAS,SAAU,aAAc,WAAY,UAAW,QAAS,SAAU,aAAc,iBACrYa,EAA/BC,IAAkD,GACvDC,EAAgB,SAAUJ,EAAcF,GACxC,MAAmB,UAAfA,EACOE,EAAeK,EAAeC,MAAQD,EAAeE,QAE7C,SAAfT,EACOE,EAAeQ,EAAoBF,MAAQE,EAAoBD,aAD1E,CAGR,EASI,OARAb,EAASe,SAAQ,SAAUC,EAASC,GAChC,IAAIC,EAAaR,EAAcJ,EAAcF,GACzCe,EAAcT,EAAcJ,EAAc,SACzCY,GAAeC,IAEpBH,EAAQI,gBAAkBF,EAAWD,GACrCD,EAAQK,YAAcF,EAAYF,GAC1C,IACYK,EAAIC,IAACC,EAAQnE,EAAS,CAAEoE,KAAM,CAAEzB,SAAUA,GAAY0B,QAAS,CAC/D3C,QAAS,CACLc,MAAOA,EACPC,OAAQA,EACRC,WAAYA,GAEhB4B,OAAQtE,EAAS,GAAImD,EAAcoB,YACpChC,UAAWiC,EAAGzC,EAAoB,CAAEG,QAASA,IAAYK,GAAYK,MAAOA,EAAOC,OAAQA,GAAUK,GAChH,EACAb,EAAYoC,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 { forwardRef } from 'react';
25
- import { cva } from 'class-variance-authority';
26
- import { cn } from '../../../lib/utils/utils';
27
- import { radiusVariants, weightVariants, primaryColorStyle, appearanceStyle, scalingVariants, } from '../../../lib/constants';
28
- var buttonVariants = cva("inline-flex items-center w-fit transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8 justify-center", {
29
- variants: {
30
- radius: __assign({}, radiusVariants['base']),
31
- size: {
32
- 'x-small': 'text-xs min-w-[36px] h-[20px] px-1.5',
33
- small: 'text-xs min-w-[40px] h-[24px] px-2',
34
- medium: 'text-sm min-w-[50px] h-[32px] px-3',
35
- large: 'text-base min-w-[62px] h-[40px] px-4',
36
- 'x-large': 'text-lg min-w-[82px] h-[48px] px-6',
37
- },
38
- scaling: __assign({}, scalingVariants),
39
- weight: __assign({}, weightVariants),
40
- color: primaryColorStyle(),
41
- },
42
- defaultVariants: {
43
- radius: 'medium',
44
- scaling: '100%',
45
- weight: 'medium',
46
- color: 'red',
47
- size: 'medium',
48
- },
49
- });
50
- export var Button = forwardRef(function (_a, ref) {
51
- var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "scaling", "size", "weight", "color", "appearance"]);
52
- var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color, true), className);
53
- return (_jsx("button", __assign({ ref: ref, className: buttonClassName }, props, { children: children })));
54
- });
55
- Button.displayName = 'Button';
56
- export default Button;
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as t}from"react";import{cva as r}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/utils.js";import{radiusVariants as s,scalingVariants as a,weightVariants as o,primaryColorStyle as n,appearanceStyle as l}from"../../constants.js";var c=function(){return c=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},c.apply(this,arguments)},p=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]])}return r},m=r("inline-flex items-center w-fit transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8 justify-center",{variants:{radius:c({},s.base),size:{"x-small":"text-xs min-w-[36px] h-[20px] px-1.5",small:"text-xs min-w-[40px] h-[24px] px-2",medium:"text-sm min-w-[50px] h-[32px] px-3",large:"text-base min-w-[62px] h-[40px] px-4","x-large":"text-lg min-w-[82px] h-[48px] px-6"},scaling:c({},a),weight:c({},o),color:n()},defaultVariants:{radius:"medium",scaling:"100%",weight:"medium",color:"red",size:"medium"}}),u=t((function(t,r){var s=t.className,a=t.children,o=t.radius,n=t.scaling,u=t.size,d=t.weight,x=t.color,f=void 0===x?"red":x,h=t.appearance,g=void 0===h?"solid":h,b=p(t,["className","children","radius","scaling","size","weight","color","appearance"]),w=i(m({radius:o,scaling:n,size:u,weight:d,color:f}),l(g,f,!0),s);return e.jsx("button",c({ref:r,className:w},b,{children:a}))}));u.displayName="Button";export{u as Button,u as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Button/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 { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, weightVariants, primaryColorStyle, appearanceStyle, scalingVariants, } from '../../../lib/constants';\nvar buttonVariants = cva(\"inline-flex items-center w-fit transition-colors focus:outline-none hover:cursor-pointer\\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8 justify-center\", {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n 'x-small': 'text-xs min-w-[36px] h-[20px] px-1.5',\n small: 'text-xs min-w-[40px] h-[24px] px-2',\n medium: 'text-sm min-w-[50px] h-[32px] px-3',\n large: 'text-base min-w-[62px] h-[40px] px-4',\n 'x-large': 'text-lg min-w-[82px] h-[48px] px-6',\n },\n scaling: __assign({}, scalingVariants),\n weight: __assign({}, weightVariants),\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n weight: 'medium',\n color: 'red',\n size: 'medium',\n },\n});\nexport var Button = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, [\"className\", \"children\", \"radius\", \"scaling\", \"size\", \"weight\", \"color\", \"appearance\"]);\n var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color, true), className);\n return (_jsx(\"button\", __assign({ ref: ref, className: buttonClassName }, props, { children: children })));\n});\nButton.displayName = 'Button';\nexport default Button;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","buttonVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","weight","weightVariants","color","primaryColorStyle","defaultVariants","Button","forwardRef","_a","ref","className","children","_b","_c","appearance","props","buttonClassName","cn","appearanceStyle","_jsx","jsx","displayName"],"mappings":"wWAAA,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,EAMIiB,EAAiBC,EAAI,mLAAoL,CACzMC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACF,UAAW,uCACXC,MAAO,qCACPC,OAAQ,qCACRC,MAAO,uCACP,UAAW,sCAEfC,QAAS7B,EAAS,CAAE,EAAE8B,GACtBC,OAAQ/B,EAAS,CAAE,EAAEgC,GACrBC,MAAOC,KAEXC,gBAAiB,CACbZ,OAAQ,SACRM,QAAS,OACTE,OAAQ,SACRE,MAAO,MACPR,KAAM,YAGHW,EAASC,GAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUlB,EAASe,EAAGf,OAAQM,EAAUS,EAAGT,QAASJ,EAAOa,EAAGb,KAAMM,EAASO,EAAGP,OAAQW,EAAKJ,EAAGL,MAAOA,OAAe,IAAPS,EAAgB,MAAQA,EAAIC,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAQ9B,EAAOuB,EAAI,CAAC,YAAa,WAAY,SAAU,UAAW,OAAQ,SAAU,QAAS,eAC/UQ,EAAkBC,EAAG3B,EAAe,CAAEG,OAAQA,EAAQM,QAASA,EAASJ,KAAMA,EAAMM,OAAQA,EAAQE,MAAOA,IAAUe,EAAgBJ,EAAYX,GAAO,GAAOO,GACnK,OAAQS,EAAIC,IAAC,SAAUlD,EAAS,CAAEuC,IAAKA,EAAKC,UAAWM,GAAmBD,EAAO,CAAEJ,SAAUA,IACjG,IACAL,EAAOe,YAAc"}
@@ -1,57 +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, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import { Callout as CalloutTheme } from '@radix-ui/themes';
26
- import { cva } from 'class-variance-authority';
27
- import { ExclamationTriangleIcon, InfoCircledIcon, LockClosedIcon, CheckCircledIcon, } from '@radix-ui/react-icons';
28
- import { scalingVariants } from '../../../lib/constants';
29
- import { cn } from '../../../lib/utils/utils';
30
- import { useCalloutContext } from './CalloutRoot';
31
- var calloutIconVariants = cva('flex items-center text-slate-12 dark:text-slateDark-12', {
32
- variants: {
33
- scaling: __assign({}, scalingVariants),
34
- size: {
35
- small: 'h-5 mr-2',
36
- medium: 'h-5 mr-3',
37
- large: 'h-6 mr-4',
38
- },
39
- color: {
40
- danger: 'text-red-11 dark:text-redDark-11',
41
- warning: 'text-amber-11 dark:text-amberDark-11',
42
- success: 'text-green-11 dark:text-greenDark-11',
43
- information: 'text-sky-11 dark:text-skyDark-11',
44
- },
45
- },
46
- defaultVariants: {
47
- scaling: '100%',
48
- size: 'medium',
49
- color: 'information',
50
- },
51
- });
52
- export var CalloutIcon = forwardRef(function (_a, ref) {
53
- var children = _a.children, className = _a.className, iconType = _a.iconType, props = __rest(_a, ["children", "className", "iconType"]);
54
- var _b = useCalloutContext(), scaling = _b.scaling, size = _b.size, color = _b.color;
55
- return (_jsxs(CalloutTheme.Icon, __assign({ ref: ref, className: cn(calloutIconVariants({ color: color, size: size, scaling: scaling }), className) }, props, { children: [iconType === 'danger' && _jsx(ExclamationTriangleIcon, {}), iconType === 'warning' && _jsx(LockClosedIcon, {}), iconType === 'success' && _jsx(CheckCircledIcon, {}), iconType === 'information' && _jsx(InfoCircledIcon, {}), children] })));
56
- });
57
- CalloutIcon.displayName = 'Callout.Icon';
1
+ import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{cva as t}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{ExclamationTriangleIcon as o,LockClosedIcon as s,CheckCircledIcon as a,InfoCircledIcon as n}from"../../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js";import{scalingVariants as i}from"../../constants.js";import{cn as l}from"../../utils/utils.js";import{useCalloutContext as c}from"./CalloutRoot.js";import{Icon as m}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/callout.js";var d=function(){return d=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var s in e=arguments[t])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},d.apply(this,arguments)},u=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(r);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(t[o[s]]=r[o[s]])}return t},p=t("flex items-center text-slate-12 dark:text-slateDark-12",{variants:{scaling:d({},i),size:{small:"h-5 mr-2",medium:"h-5 mr-3",large:"h-6 mr-4"},color:{danger:"text-red-11 dark:text-redDark-11",warning:"text-amber-11 dark:text-amberDark-11",success:"text-green-11 dark:text-greenDark-11",information:"text-sky-11 dark:text-skyDark-11"}},defaultVariants:{scaling:"100%",size:"medium",color:"information"}}),f=e((function(e,t){var i=e.children,f=e.className,x=e.iconType,j=u(e,["children","className","iconType"]),y=c(),g=y.scaling,h=y.size,k=y.color;return r.jsxs(m,d({ref:t,className:l(p({color:k,size:h,scaling:g}),f)},j,{children:["danger"===x&&r.jsx(o,{}),"warning"===x&&r.jsx(s,{}),"success"===x&&r.jsx(a,{}),"information"===x&&r.jsx(n,{}),i]}))}));f.displayName="Callout.Icon";export{f as CalloutIcon};
2
+ //# sourceMappingURL=CalloutIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalloutIcon.js","sources":["../../../../lib/components/Callout/CalloutIcon.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, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { Callout as CalloutTheme } from '@radix-ui/themes';\nimport { cva } from 'class-variance-authority';\nimport { ExclamationTriangleIcon, InfoCircledIcon, LockClosedIcon, CheckCircledIcon, } from '@radix-ui/react-icons';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nimport { useCalloutContext } from './CalloutRoot';\nvar calloutIconVariants = cva('flex items-center text-slate-12 dark:text-slateDark-12', {\n variants: {\n scaling: __assign({}, scalingVariants),\n size: {\n small: 'h-5 mr-2',\n medium: 'h-5 mr-3',\n large: 'h-6 mr-4',\n },\n color: {\n danger: 'text-red-11 dark:text-redDark-11',\n warning: 'text-amber-11 dark:text-amberDark-11',\n success: 'text-green-11 dark:text-greenDark-11',\n information: 'text-sky-11 dark:text-skyDark-11',\n },\n },\n defaultVariants: {\n scaling: '100%',\n size: 'medium',\n color: 'information',\n },\n});\nexport var CalloutIcon = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, iconType = _a.iconType, props = __rest(_a, [\"children\", \"className\", \"iconType\"]);\n var _b = useCalloutContext(), scaling = _b.scaling, size = _b.size, color = _b.color;\n return (_jsxs(CalloutTheme.Icon, __assign({ ref: ref, className: cn(calloutIconVariants({ color: color, size: size, scaling: scaling }), className) }, props, { children: [iconType === 'danger' && _jsx(ExclamationTriangleIcon, {}), iconType === 'warning' && _jsx(LockClosedIcon, {}), iconType === 'success' && _jsx(CheckCircledIcon, {}), iconType === 'information' && _jsx(InfoCircledIcon, {}), children] })));\n});\nCalloutIcon.displayName = 'Callout.Icon';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","calloutIconVariants","cva","variants","scaling","scalingVariants","size","small","medium","large","color","danger","warning","success","information","defaultVariants","CalloutIcon","forwardRef","_a","ref","children","className","iconType","props","_b","useCalloutContext","_jsxs","CalloutTheme.Icon","cn","_jsx","jsx","ExclamationTriangleIcon","LockClosedIcon","CheckCircledIcon","InfoCircledIcon","displayName"],"mappings":"ylBAAA,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,EASIiB,EAAsBC,EAAI,yDAA0D,CACpFC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,GACtBC,KAAM,CACFC,MAAO,WACPC,OAAQ,WACRC,MAAO,YAEXC,MAAO,CACHC,OAAQ,mCACRC,QAAS,uCACTC,QAAS,uCACTC,YAAa,qCAGrBC,gBAAiB,CACbX,QAAS,OACTE,KAAM,SACNI,MAAO,iBAGJM,EAAcC,GAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAWJ,EAAGI,SAAUC,EAAQ3B,EAAOsB,EAAI,CAAC,WAAY,YAAa,aACvHM,EAAKC,IAAqBrB,EAAUoB,EAAGpB,QAASE,EAAOkB,EAAGlB,KAAMI,EAAQc,EAAGd,MAC/E,OAAQgB,OAAMC,EAAmB9C,EAAS,CAAEsC,IAAKA,EAAKE,UAAWO,EAAG3B,EAAoB,CAAES,MAAOA,EAAOJ,KAAMA,EAAMF,QAASA,IAAYiB,IAAcE,EAAO,CAAEH,SAAU,CAAc,WAAbE,GAAyBO,EAAIC,IAACC,EAAyB,CAAA,GAAkB,YAAbT,GAA0BO,MAAKG,EAAgB,CAAE,GAAgB,YAAbV,GAA0BO,EAAAA,IAAKI,EAAkB,IAAkB,gBAAbX,GAA8BO,EAAIC,IAACI,EAAiB,CAAA,GAAKd,KAC9Y,IACAJ,EAAYmB,YAAc"}
@@ -1,72 +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, createContext, useContext, useMemo, } from 'react';
25
- import { Callout as CalloutTheme } from '@radix-ui/themes';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
29
- var calloutVariants = cva('flex w-fit max-w-[600px]', {
30
- variants: {
31
- radius: __assign({}, radiusVariants['large']),
32
- size: {
33
- small: 'min-h-[44px] p-3',
34
- medium: 'min-h-[52px] p-4',
35
- large: 'min-h-[72px] p-6',
36
- },
37
- scaling: __assign({}, scalingVariants),
38
- color: {
39
- danger: 'bg-redA-3 dark:bg-redDarkA-3',
40
- warning: 'bg-amberA-3 dark:bg-amberDarkA-3',
41
- success: 'bg-greenA-3 dark:bg-greenDarkA-3',
42
- information: 'bg-skyA-3 dark:bg-skyDarkA-3',
43
- },
44
- },
45
- defaultVariants: {
46
- radius: 'medium',
47
- scaling: '100%',
48
- color: 'information',
49
- size: 'medium',
50
- },
51
- });
52
- var CalloutContext = createContext({
53
- size: 'medium',
54
- scaling: '100%',
55
- color: null,
56
- });
57
- export var useCalloutContext = function () {
58
- return useContext(CalloutContext);
59
- };
60
- export var CalloutRoot = forwardRef(function (_a, ref) {
61
- var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'information' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'soft' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance"]);
62
- var colorMap = {
63
- danger: 'red',
64
- information: 'sky',
65
- success: 'green',
66
- warning: 'amber',
67
- };
68
- var calloutClassName = cn(calloutVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, colorMap[color], false), className);
69
- var contextValue = useMemo(function () { return ({ size: size, scaling: scaling, color: color }); }, [size, scaling, color]);
70
- return (_jsx(CalloutContext.Provider, { value: contextValue, children: _jsx(CalloutTheme.Root, __assign({ ref: ref }, props, { className: calloutClassName, children: children })) }));
71
- });
72
- CalloutRoot.displayName = 'Callout.Root';
1
+ import{j as r}from"../../../../_virtual/jsx-runtime.js";import{createContext as e,forwardRef as a,useMemo as i,useContext as n}from"react";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as s}from"../../utils/utils.js";import{radiusVariants as t,scalingVariants as l,appearanceStyle as c}from"../../constants.js";import{Root as m}from"../../../../node_modules/@radix-ui/themes/dist/esm/components/callout.js";var u=function(){return u=Object.assign||function(r){for(var e,a=1,i=arguments.length;a<i;a++)for(var n in e=arguments[a])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},u.apply(this,arguments)},d=function(r,e){var a={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(a[i]=r[i]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(a[i[n]]=r[i[n]])}return a},p=o("flex w-fit max-w-[600px]",{variants:{radius:u({},t.large),size:{small:"min-h-[44px] p-3",medium:"min-h-[52px] p-4",large:"min-h-[72px] p-6"},scaling:u({},l),color:{danger:"bg-redA-3 dark:bg-redDarkA-3",warning:"bg-amberA-3 dark:bg-amberDarkA-3",success:"bg-greenA-3 dark:bg-greenDarkA-3",information:"bg-skyA-3 dark:bg-skyDarkA-3"}},defaultVariants:{radius:"medium",scaling:"100%",color:"information",size:"medium"}}),f=e({size:"medium",scaling:"100%",color:null}),g=function(){return n(f)},b=a((function(e,a){var n=e.children,o=e.className,t=e.radius,l=e.scaling,g=e.size,b=e.color,y=void 0===b?"information":b,j=e.appearance,h=void 0===j?"soft":j,v=d(e,["children","className","radius","scaling","size","color","appearance"]),x=s(p({radius:t,scaling:l,size:g,color:y}),c(h,{danger:"red",information:"sky",success:"green",warning:"amber"}[y],!1),o),O=i((function(){return{size:g,scaling:l,color:y}}),[g,l,y]);return r.jsx(f.Provider,{value:O,children:r.jsx(m,u({ref:a},v,{className:x,children:n}))})}));b.displayName="Callout.Root";export{b as CalloutRoot,g as useCalloutContext};
2
+ //# sourceMappingURL=CalloutRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalloutRoot.js","sources":["../../../../lib/components/Callout/CalloutRoot.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, createContext, useContext, useMemo, } from 'react';\nimport { Callout as CalloutTheme } from '@radix-ui/themes';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';\nvar calloutVariants = cva('flex w-fit max-w-[600px]', {\n variants: {\n radius: __assign({}, radiusVariants['large']),\n size: {\n small: 'min-h-[44px] p-3',\n medium: 'min-h-[52px] p-4',\n large: 'min-h-[72px] p-6',\n },\n scaling: __assign({}, scalingVariants),\n color: {\n danger: 'bg-redA-3 dark:bg-redDarkA-3',\n warning: 'bg-amberA-3 dark:bg-amberDarkA-3',\n success: 'bg-greenA-3 dark:bg-greenDarkA-3',\n information: 'bg-skyA-3 dark:bg-skyDarkA-3',\n },\n },\n defaultVariants: {\n radius: 'medium',\n scaling: '100%',\n color: 'information',\n size: 'medium',\n },\n});\nvar CalloutContext = createContext({\n size: 'medium',\n scaling: '100%',\n color: null,\n});\nexport var useCalloutContext = function () {\n return useContext(CalloutContext);\n};\nexport var CalloutRoot = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'information' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'soft' : _c, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var colorMap = {\n danger: 'red',\n information: 'sky',\n success: 'green',\n warning: 'amber',\n };\n var calloutClassName = cn(calloutVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, colorMap[color], false), className);\n var contextValue = useMemo(function () { return ({ size: size, scaling: scaling, color: color }); }, [size, scaling, color]);\n return (_jsx(CalloutContext.Provider, { value: contextValue, children: _jsx(CalloutTheme.Root, __assign({ ref: ref }, props, { className: calloutClassName, children: children })) }));\n});\nCalloutRoot.displayName = 'Callout.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","calloutVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","color","danger","warning","success","information","defaultVariants","CalloutContext","createContext","useCalloutContext","useContext","CalloutRoot","forwardRef","_a","ref","children","className","_b","_c","appearance","props","calloutClassName","cn","appearanceStyle","contextValue","useMemo","_jsx","jsx","Provider","value","CalloutTheme.Root","displayName"],"mappings":"6cAAA,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,EAAkBC,EAAI,2BAA4B,CAClDC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAsB,OAC3CC,KAAM,CACFC,MAAO,mBACPC,OAAQ,mBACRC,MAAO,oBAEXC,QAAS7B,EAAS,CAAE,EAAE8B,GACtBC,MAAO,CACHC,OAAQ,+BACRC,QAAS,mCACTC,QAAS,mCACTC,YAAa,iCAGrBC,gBAAiB,CACbb,OAAQ,SACRM,QAAS,OACTE,MAAO,cACPN,KAAM,YAGVY,EAAiBC,EAAc,CAC/Bb,KAAM,SACNI,QAAS,OACTE,MAAO,OAEAQ,EAAoB,WAC3B,OAAOC,EAAWH,EACtB,EACWI,EAAcC,GAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWvB,EAASoB,EAAGpB,OAAQM,EAAUc,EAAGd,QAASJ,EAAOkB,EAAGlB,KAAMsB,EAAKJ,EAAGZ,MAAOA,OAAe,IAAPgB,EAAgB,cAAgBA,EAAIC,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,OAASA,EAAIE,EAAQnC,EAAO4B,EAAI,CAAC,WAAY,YAAa,SAAU,UAAW,OAAQ,QAAS,eAOxTQ,EAAmBC,EAAGhC,EAAgB,CAAEG,OAAQA,EAAQM,QAASA,EAASJ,KAAMA,EAAMM,MAAOA,IAAUsB,EAAgBJ,EAN5G,CACXjB,OAAQ,MACRG,YAAa,MACbD,QAAS,QACTD,QAAS,SAEmIF,IAAQ,GAAQe,GAC5JQ,EAAeC,GAAQ,WAAc,MAAQ,CAAE9B,KAAMA,EAAMI,QAASA,EAASE,MAAOA,KAAa,CAACN,EAAMI,EAASE,IACrH,OAAQyB,EAAIC,IAACpB,EAAeqB,SAAU,CAAEC,MAAOL,EAAcT,SAAUW,MAAKI,EAAmB5D,EAAS,CAAE4C,IAAKA,GAAOM,EAAO,CAAEJ,UAAWK,EAAkBN,SAAUA,MAC1K,IACAJ,EAAYoB,YAAc"}
@@ -1,52 +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 { cva } from 'class-variance-authority';
26
- import { cn } from '../../../lib/utils/utils';
27
- import { useCalloutContext } from './CalloutRoot';
28
- export var calloutTextVariants = cva('break-words font-normal text-slate-12 dark:text-slateDark-12', {
29
- variants: {
30
- size: {
31
- small: 'text-sm',
32
- medium: 'text-sm',
33
- large: 'text-base',
34
- },
35
- color: {
36
- danger: 'text-red-11 dark:text-redDark-11',
37
- warning: 'text-amber-11 dark:text-amberDark-11',
38
- success: 'text-green-11 dark:text-greenDark-11',
39
- information: 'text-sky-11 dark:text-skyDark-11',
40
- },
41
- },
42
- defaultVariants: {
43
- size: 'medium',
44
- color: 'information',
45
- },
46
- });
47
- export var CalloutText = forwardRef(function (_a, ref) {
48
- var children = _a.children, className = _a.className, contentText = _a.contentText, props = __rest(_a, ["children", "className", "contentText"]);
49
- var _b = useCalloutContext(), size = _b.size, color = _b.color;
50
- return (_jsx("p", __assign({ ref: ref, className: cn(calloutTextVariants({ size: size, color: color }), className) }, props, { children: contentText !== null && contentText !== void 0 ? contentText : children })));
51
- });
52
- CalloutText.displayName = 'Callout.Text';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{cva as e}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{useCalloutContext as o}from"./CalloutRoot.js";var n=function(){return n=Object.assign||function(t){for(var r,e=1,a=arguments.length;e<a;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},n.apply(this,arguments)},s=function(t,r){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(e[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(e[a[o]]=t[a[o]])}return e},l=e("break-words font-normal text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-sm",medium:"text-sm",large:"text-base"},color:{danger:"text-red-11 dark:text-redDark-11",warning:"text-amber-11 dark:text-amberDark-11",success:"text-green-11 dark:text-greenDark-11",information:"text-sky-11 dark:text-skyDark-11"}},defaultVariants:{size:"medium",color:"information"}}),i=r((function(r,e){var i=r.children,m=r.className,c=r.contentText,u=s(r,["children","className","contentText"]),f=o(),p=f.size,d=f.color;return t.jsx("p",n({ref:e,className:a(l({size:p,color:d}),m)},u,{children:null!=c?c:i}))}));i.displayName="Callout.Text";export{i as CalloutText,l as calloutTextVariants};
2
+ //# sourceMappingURL=CalloutText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalloutText.js","sources":["../../../../lib/components/Callout/CalloutText.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 { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { useCalloutContext } from './CalloutRoot';\nexport var calloutTextVariants = cva('break-words font-normal text-slate-12 dark:text-slateDark-12', {\n variants: {\n size: {\n small: 'text-sm',\n medium: 'text-sm',\n large: 'text-base',\n },\n color: {\n danger: 'text-red-11 dark:text-redDark-11',\n warning: 'text-amber-11 dark:text-amberDark-11',\n success: 'text-green-11 dark:text-greenDark-11',\n information: 'text-sky-11 dark:text-skyDark-11',\n },\n },\n defaultVariants: {\n size: 'medium',\n color: 'information',\n },\n});\nexport var CalloutText = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, contentText = _a.contentText, props = __rest(_a, [\"children\", \"className\", \"contentText\"]);\n var _b = useCalloutContext(), size = _b.size, color = _b.color;\n return (_jsx(\"p\", __assign({ ref: ref, className: cn(calloutTextVariants({ size: size, color: color }), className) }, props, { children: contentText !== null && contentText !== void 0 ? contentText : children })));\n});\nCalloutText.displayName = 'Callout.Text';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","calloutTextVariants","cva","variants","size","small","medium","large","color","danger","warning","success","information","defaultVariants","CalloutText","forwardRef","_a","ref","children","className","contentText","props","_b","useCalloutContext","_jsx","jsx","cn","displayName"],"mappings":"oRAAA,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,EAMWiB,EAAsBC,EAAI,+DAAgE,CACjGC,SAAU,CACNC,KAAM,CACFC,MAAO,UACPC,OAAQ,UACRC,MAAO,aAEXC,MAAO,CACHC,OAAQ,mCACRC,QAAS,uCACTC,QAAS,uCACTC,YAAa,qCAGrBC,gBAAiB,CACbT,KAAM,SACNI,MAAO,iBAGJM,EAAcC,GAAW,SAAUC,EAAIC,GAC9C,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAcJ,EAAGI,YAAaC,EAAQzB,EAAOoB,EAAI,CAAC,WAAY,YAAa,gBAC7HM,EAAKC,IAAqBnB,EAAOkB,EAAGlB,KAAMI,EAAQc,EAAGd,MACzD,OAAQgB,EAAIC,IAAC,IAAK5C,EAAS,CAAEoC,IAAKA,EAAKE,UAAWO,EAAGzB,EAAoB,CAAEG,KAAMA,EAAMI,MAAOA,IAAUW,IAAcE,EAAO,CAAEH,SAAUE,QAAiDA,EAAcF,IAC5M,IACAJ,EAAYa,YAAc"}
@@ -1,9 +1,2 @@
1
- import { CalloutRoot as Root } from './CalloutRoot';
2
- import { CalloutText as Text } from './CalloutText';
3
- import { CalloutIcon as Icon } from './CalloutIcon';
4
- var Callout = {
5
- Root: Root,
6
- Text: Text,
7
- Icon: Icon
8
- };
9
- export default Callout;
1
+ import{CalloutRoot as o}from"./CalloutRoot.js";import{CalloutText as t}from"./CalloutText.js";import{CalloutIcon as r}from"./CalloutIcon.js";var l={Root:o,Text:t,Icon:r};export{l as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Callout/index.js"],"sourcesContent":["import { CalloutRoot as Root } from './CalloutRoot';\nimport { CalloutText as Text } from './CalloutText';\nimport { CalloutIcon as Icon } from './CalloutIcon';\nvar Callout = {\n Root: Root,\n Text: Text,\n Icon: Icon\n};\nexport default Callout;\n"],"names":["Callout","Root","Text","Icon"],"mappings":"6IAGG,IAACA,EAAU,CACVC,KAAMA,EACNC,KAAMA,EACNC,KAAMA"}