@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,60 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { appearanceStyle, weightVariants } from '../../../lib/constants';
29
- import { useAlertDialogContext } from './AlertDialogRoot';
30
- export var alertDialogCancelVariants = cva("inline-flex justify-center items-center outline-none w-fit", {
31
- variants: {
32
- radius: {
33
- none: 'rounded-none',
34
- small: 'rounded-[3px]',
35
- medium: 'rounded',
36
- large: 'rounded',
37
- full: 'rounded-full',
38
- },
39
- size: {
40
- small: 'text-xs min-w-[40px] h-[24px] px-2 mr-2',
41
- medium: 'text-sm min-w-[50px] h-[32px] px-3 mr-2',
42
- large: 'text-sm min-w-[50px] h-[32px] px-3 mr-3',
43
- 'x-large': 'text-base min-w-[62px] h-[40px] px-4 mr-3',
44
- },
45
- weight: __assign({}, weightVariants),
46
- },
47
- defaultVariants: {
48
- radius: 'large',
49
- weight: 'medium',
50
- size: 'large',
51
- },
52
- });
53
- export var AlertDialogCancel = forwardRef(function (_a, ref) {
54
- var className = _a.className, children = _a.children, weight = _a.weight, props = __rest(_a, ["className", "children", "weight"]);
55
- var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, _c = _b.appearance, appearance = _c === void 0 ? 'solid' : _c;
56
- var disabledButtonStyle = "border-none text-slate-11 bg-slate-3 \n active:bg-slate-4 active:border-none hover:cursor-pointer hover:bg-slateA-4\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4";
57
- var buttonClassName = cn(alertDialogCancelVariants({ radius: radius, size: size, weight: weight }), appearanceStyle(appearance, 'slate'), disabledButtonStyle, className);
58
- return (_jsx(AlertDialogPrimitive.Cancel, __assign({ ref: ref }, props, { className: buttonClassName, children: children })));
59
- });
60
- AlertDialogCancel.displayName = 'AlertDialog.Cancel';
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{Cancel as t}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";import{cva as a}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/utils.js";import{weightVariants as n,appearanceStyle as o}from"../../constants.js";import{useAlertDialogContext as s}from"./AlertDialogRoot.js";var l=function(){return l=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},l.apply(this,arguments)},m=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)r.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]])}return t},d=a("inline-flex justify-center items-center outline-none w-fit",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded",full:"rounded-full"},size:{small:"text-xs min-w-[40px] h-[24px] px-2 mr-2",medium:"text-sm min-w-[50px] h-[32px] px-3 mr-2",large:"text-sm min-w-[50px] h-[32px] px-3 mr-3","x-large":"text-base min-w-[62px] h-[40px] px-4 mr-3"},weight:l({},n)},defaultVariants:{radius:"large",weight:"medium",size:"large"}}),p=r((function(r,a){var n=r.className,p=r.children,u=r.weight,c=m(r,["className","children","weight"]),x=s(),f=x.radius,g=x.size,h=x.appearance,j=void 0===h?"solid":h,b=i(d({radius:f,size:g,weight:u}),o(j,"slate"),"border-none text-slate-11 bg-slate-3 \n active:bg-slate-4 active:border-none hover:cursor-pointer hover:bg-slateA-4\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4",n);return e.jsx(t,l({ref:a},c,{className:b,children:p}))}));p.displayName="AlertDialog.Cancel";export{p as AlertDialogCancel,d as alertDialogCancelVariants};
2
+ //# sourceMappingURL=AlertDialogCancel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogCancel.js","sources":["../../../../lib/components/AlertDialog/AlertDialogCancel.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { appearanceStyle, weightVariants } from '../../../lib/constants';\nimport { useAlertDialogContext } from './AlertDialogRoot';\nexport var alertDialogCancelVariants = cva(\"inline-flex justify-center items-center outline-none w-fit\", {\n variants: {\n radius: {\n none: 'rounded-none',\n small: 'rounded-[3px]',\n medium: 'rounded',\n large: 'rounded',\n full: 'rounded-full',\n },\n size: {\n small: 'text-xs min-w-[40px] h-[24px] px-2 mr-2',\n medium: 'text-sm min-w-[50px] h-[32px] px-3 mr-2',\n large: 'text-sm min-w-[50px] h-[32px] px-3 mr-3',\n 'x-large': 'text-base min-w-[62px] h-[40px] px-4 mr-3',\n },\n weight: __assign({}, weightVariants),\n },\n defaultVariants: {\n radius: 'large',\n weight: 'medium',\n size: 'large',\n },\n});\nexport var AlertDialogCancel = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, weight = _a.weight, props = __rest(_a, [\"className\", \"children\", \"weight\"]);\n var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, _c = _b.appearance, appearance = _c === void 0 ? 'solid' : _c;\n var disabledButtonStyle = \"border-none text-slate-11 bg-slate-3 \\n active:bg-slate-4 active:border-none hover:cursor-pointer hover:bg-slateA-4\\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\";\n var buttonClassName = cn(alertDialogCancelVariants({ radius: radius, size: size, weight: weight }), appearanceStyle(appearance, 'slate'), disabledButtonStyle, className);\n return (_jsx(AlertDialogPrimitive.Cancel, __assign({ ref: ref }, props, { className: buttonClassName, children: children })));\n});\nAlertDialogCancel.displayName = 'AlertDialog.Cancel';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","alertDialogCancelVariants","cva","variants","radius","none","small","medium","large","full","size","weight","weightVariants","defaultVariants","AlertDialogCancel","forwardRef","_a","ref","className","children","props","_b","useAlertDialogContext","_c","appearance","buttonClassName","cn","appearanceStyle","_jsx","jsx","AlertDialogPrimitive.Cancel","displayName"],"mappings":"scAAA,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,EAQWiB,EAA4BC,EAAI,6DAA8D,CACrGC,SAAU,CACNC,OAAQ,CACJC,KAAM,eACNC,MAAO,gBACPC,OAAQ,UACRC,MAAO,UACPC,KAAM,gBAEVC,KAAM,CACFJ,MAAO,0CACPC,OAAQ,0CACRC,MAAO,0CACP,UAAW,6CAEfG,OAAQ9B,EAAS,CAAE,EAAE+B,IAEzBC,gBAAiB,CACbT,OAAQ,QACRO,OAAQ,SACRD,KAAM,WAGHI,EAAoBC,GAAW,SAAUC,EAAIC,GACpD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUR,EAASK,EAAGL,OAAQS,EAAQxB,EAAOoB,EAAI,CAAC,YAAa,WAAY,WACnHK,EAAKC,IAAyBlB,EAASiB,EAAGjB,OAAQM,EAAOW,EAAGX,KAAMa,EAAKF,EAAGG,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAE7HE,EAAkBC,EAAGzB,EAA0B,CAAEG,OAAQA,EAAQM,KAAMA,EAAMC,OAAQA,IAAWgB,EAAgBH,EAAY,SADtG,oMACqIN,GAC/J,OAAQU,EAAIC,IAACC,EAA6BjD,EAAS,CAAEoC,IAAKA,GAAOG,EAAO,CAAEF,UAAWO,EAAiBN,SAAUA,IACpH,IACAL,EAAkBiB,YAAc"}
@@ -1,51 +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 * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { radiusVariants, scalingVariants } from '../../../lib/constants';
29
- import { useAlertDialogContext } from './AlertDialogRoot';
30
- export var alertDialogContentVariants = cva("fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]", {
31
- variants: {
32
- size: {
33
- small: 'p-3 w-[300px]',
34
- medium: 'p-4 w-[400px]',
35
- large: 'p-5 w-[500px]',
36
- 'x-large': 'p-6 w-[600px]',
37
- },
38
- scaling: __assign({}, scalingVariants),
39
- radius: __assign({}, radiusVariants['extra-large']),
40
- },
41
- defaultVariants: {
42
- radius: 'large',
43
- size: 'large',
44
- },
45
- });
46
- export var AlertDialogContent = forwardRef(function (_a, ref) {
47
- var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
48
- var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
49
- return (_jsxs(AlertDialogPrimitive.Portal, { children: [_jsx(AlertDialogPrimitive.Overlay, { className: "fixed data-[state=open]:animate-overlayShow inset-0" }), _jsx(AlertDialogPrimitive.Content, __assign({ className: cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className), ref: ref }, props, { children: children }))] }));
50
- });
51
- AlertDialogContent.displayName = 'AlertDialog.Content';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Portal as a,Overlay as r,Content as s}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as n}from"../../utils/utils.js";import{scalingVariants as i,radiusVariants as l}from"../../constants.js";import{useAlertDialogContext as p}from"./AlertDialogRoot.js";var m=function(){return m=Object.assign||function(t){for(var e,a=1,r=arguments.length;a<r;a++)for(var s in e=arguments[a])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},m.apply(this,arguments)},c=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(a[r[s]]=t[r[s]])}return a},d=o("fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]",{variants:{size:{small:"p-3 w-[300px]",medium:"p-4 w-[400px]",large:"p-5 w-[500px]","x-large":"p-6 w-[600px]"},scaling:m({},i),radius:m({},l["extra-large"])},defaultVariants:{radius:"large",size:"large"}}),x=e((function(e,o){var i=e.className,l=e.children,x=c(e,["className","children"]),u=p(),f=u.radius,_=u.size,j=u.scaling;return t.jsxs(a,{children:[t.jsx(r,{className:"fixed data-[state=open]:animate-overlayShow inset-0"}),t.jsx(s,m({className:n(d({radius:f,size:_,scaling:j}),i),ref:o},x,{children:l}))]})}));x.displayName="AlertDialog.Content";export{x as AlertDialogContent,d as alertDialogContentVariants};
2
+ //# sourceMappingURL=AlertDialogContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogContent.js","sources":["../../../../lib/components/AlertDialog/AlertDialogContent.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 * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { useAlertDialogContext } from './AlertDialogRoot';\nexport var alertDialogContentVariants = cva(\"fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \\n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]\", {\n variants: {\n size: {\n small: 'p-3 w-[300px]',\n medium: 'p-4 w-[400px]',\n large: 'p-5 w-[500px]',\n 'x-large': 'p-6 w-[600px]',\n },\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n },\n defaultVariants: {\n radius: 'large',\n size: 'large',\n },\n});\nexport var AlertDialogContent = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;\n return (_jsxs(AlertDialogPrimitive.Portal, { children: [_jsx(AlertDialogPrimitive.Overlay, { className: \"fixed data-[state=open]:animate-overlayShow inset-0\" }), _jsx(AlertDialogPrimitive.Content, __assign({ className: cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className), ref: ref }, props, { children: children }))] }));\n});\nAlertDialogContent.displayName = 'AlertDialog.Content';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","alertDialogContentVariants","cva","variants","size","small","medium","large","scaling","scalingVariants","radius","radiusVariants","defaultVariants","AlertDialogContent","forwardRef","_a","ref","className","children","props","_b","useAlertDialogContext","_jsxs","AlertDialogPrimitive.Portal","_jsx","jsx","AlertDialogPrimitive.Overlay","AlertDialogPrimitive.Content","cn","displayName"],"mappings":"geAAA,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,EAQWiB,EAA6BC,EAAI,2QAA4Q,CACpTC,SAAU,CACNC,KAAM,CACFC,MAAO,gBACPC,OAAQ,gBACRC,MAAO,gBACP,UAAW,iBAEfC,QAAS3B,EAAS,CAAE,EAAE4B,GACtBC,OAAQ7B,EAAS,CAAA,EAAI8B,EAAe,iBAExCC,gBAAiB,CACbF,OAAQ,QACRN,KAAM,WAGHS,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQvB,EAAOmB,EAAI,CAAC,YAAa,aACnFK,EAAKC,IAAyBX,EAASU,EAAGV,OAAQN,EAAOgB,EAAGhB,KAAMI,EAAUY,EAAGZ,QACnF,OAAQc,EAAAA,KAAMC,EAA6B,CAAEL,SAAU,CAACM,EAAIC,IAACC,EAA8B,CAAET,UAAW,wDAA0DO,EAAIC,IAACE,EAA8B9C,EAAS,CAAEoC,UAAWW,EAAG3B,EAA2B,CAAES,OAAQA,EAAQN,KAAMA,EAAMI,QAASA,IAAYS,GAAYD,IAAKA,GAAOG,EAAO,CAAED,SAAUA,OAC3V,IACAL,EAAmBgB,YAAc"}
@@ -1,47 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { useAlertDialogContext } from './AlertDialogRoot';
29
- export var alertDialogDescriptionVariants = cva("text-slate-12 dark:text-slateDark-12 font-normal", {
30
- variants: {
31
- size: {
32
- small: 'text-xs mb-3',
33
- medium: 'text-sm mb-4',
34
- large: 'text-base mb-5',
35
- 'x-large': 'text-lg mb-6',
36
- },
37
- },
38
- defaultVariants: {
39
- size: 'medium',
40
- },
41
- });
42
- export var AlertDialogDescription = forwardRef(function (_a, ref) {
43
- var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
44
- var size = useAlertDialogContext().size;
45
- return (_jsx(AlertDialogPrimitive.Description, __assign({ className: cn(alertDialogDescriptionVariants({ size: size }), className), ref: ref }, props, { children: contentText !== null && contentText !== void 0 ? contentText : children })));
46
- });
47
- AlertDialogDescription.displayName = 'AlertDialog.Description';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Description as r}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{useAlertDialogContext as i}from"./AlertDialogRoot.js";var s=function(){return s=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},s.apply(this,arguments)},n=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(r[o[a]]=t[o[a]])}return r},l=o("text-slate-12 dark:text-slateDark-12 font-normal",{variants:{size:{small:"text-xs mb-3",medium:"text-sm mb-4",large:"text-base mb-5","x-large":"text-lg mb-6"}},defaultVariants:{size:"medium"}}),m=e((function(e,o){var m=e.className,c=e.children,p=e.contentText,u=n(e,["className","children","contentText"]),f=i().size;return t.jsx(r,s({className:a(l({size:f}),m),ref:o},u,{children:null!=p?p:c}))}));m.displayName="AlertDialog.Description";export{m as AlertDialogDescription,l as alertDialogDescriptionVariants};
2
+ //# sourceMappingURL=AlertDialogDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogDescription.js","sources":["../../../../lib/components/AlertDialog/AlertDialogDescription.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { useAlertDialogContext } from './AlertDialogRoot';\nexport var alertDialogDescriptionVariants = cva(\"text-slate-12 dark:text-slateDark-12 font-normal\", {\n variants: {\n size: {\n small: 'text-xs mb-3',\n medium: 'text-sm mb-4',\n large: 'text-base mb-5',\n 'x-large': 'text-lg mb-6',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var AlertDialogDescription = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, [\"className\", \"children\", \"contentText\"]);\n var size = useAlertDialogContext().size;\n return (_jsx(AlertDialogPrimitive.Description, __assign({ className: cn(alertDialogDescriptionVariants({ size: size }), className), ref: ref }, props, { children: contentText !== null && contentText !== void 0 ? contentText : children })));\n});\nAlertDialogDescription.displayName = 'AlertDialog.Description';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","alertDialogDescriptionVariants","cva","variants","size","small","medium","large","defaultVariants","AlertDialogDescription","forwardRef","_a","ref","className","children","contentText","props","useAlertDialogContext","_jsx","AlertDialogPrimitive.Description","cn","displayName"],"mappings":"kYAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAAiCC,EAAI,mDAAoD,CAChGC,SAAU,CACNC,KAAM,CACFC,MAAO,eACPC,OAAQ,eACRC,MAAO,iBACP,UAAW,iBAGnBC,gBAAiB,CACbJ,KAAM,YAGHK,EAAyBC,GAAW,SAAUC,EAAIC,GACzD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAcJ,EAAGI,YAAaC,EAAQpB,EAAOe,EAAI,CAAC,YAAa,WAAY,gBAC7HP,EAAOa,IAAwBb,KACnC,OAAQc,MAAKC,EAAkCtC,EAAS,CAAEgC,UAAWO,EAAGnB,EAA+B,CAAEG,KAAMA,IAASS,GAAYD,IAAKA,GAAOI,EAAO,CAAEF,SAAUC,QAAiDA,EAAcD,IACtO,IACAL,EAAuBY,YAAc"}
@@ -1,46 +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 * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- var AlertDialogContext = createContext({
27
- size: 'medium',
28
- scaling: '100%',
29
- color: 'red',
30
- radius: 'medium',
31
- appearance: 'solid',
32
- });
33
- export var useAlertDialogContext = function () {
34
- return useContext(AlertDialogContext);
35
- };
36
- export var AlertDialogRoot = forwardRef(function (_a, ref) {
37
- var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "radius", "size", "scaling", "color"]);
38
- var contextValue = useMemo(function () { return ({
39
- radius: radius,
40
- size: size,
41
- scaling: scaling,
42
- color: color,
43
- }); }, [radius, size, scaling, color]);
44
- return (_jsx(AlertDialogContext.Provider, { value: contextValue, children: _jsx("div", { ref: ref, children: _jsx(AlertDialogPrimitive.Root, __assign({}, props, { children: children })) }) }));
45
- });
46
- AlertDialogRoot.displayName = 'AlertDialog.Root';
1
+ import{j as r}from"../../../../_virtual/jsx-runtime.js";import{createContext as e,forwardRef as o,useMemo as t,useContext as i}from"react";import{Root as n}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";var a=function(){return a=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var i in e=arguments[o])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},a.apply(this,arguments)},l=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(r);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(r,t[i])&&(o[t[i]]=r[t[i]])}return o},s=e({size:"medium",scaling:"100%",color:"red",radius:"medium",appearance:"solid"}),c=function(){return i(s)},u=o((function(e,o){var i=e.children,c=e.radius,u=e.size,d=e.scaling,p=e.color,f=l(e,["children","radius","size","scaling","color"]),m=t((function(){return{radius:c,size:u,scaling:d,color:p}}),[c,u,d,p]);return r.jsx(s.Provider,{value:m,children:r.jsx("div",{ref:o,children:r.jsx(n,a({},f,{children:i}))})})}));u.displayName="AlertDialog.Root";export{u as AlertDialogRoot,c as useAlertDialogContext};
2
+ //# sourceMappingURL=AlertDialogRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogRoot.js","sources":["../../../../lib/components/AlertDialog/AlertDialogRoot.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 * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nvar AlertDialogContext = createContext({\n size: 'medium',\n scaling: '100%',\n color: 'red',\n radius: 'medium',\n appearance: 'solid',\n});\nexport var useAlertDialogContext = function () {\n return useContext(AlertDialogContext);\n};\nexport var AlertDialogRoot = forwardRef(function (_a, ref) {\n var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, [\"children\", \"radius\", \"size\", \"scaling\", \"color\"]);\n var contextValue = useMemo(function () { return ({\n radius: radius,\n size: size,\n scaling: scaling,\n color: color,\n }); }, [radius, size, scaling, color]);\n return (_jsx(AlertDialogContext.Provider, { value: contextValue, children: _jsx(\"div\", { ref: ref, children: _jsx(AlertDialogPrimitive.Root, __assign({}, props, { children: children })) }) }));\n});\nAlertDialogRoot.displayName = 'AlertDialog.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","AlertDialogContext","createContext","size","scaling","color","radius","appearance","useAlertDialogContext","useContext","AlertDialogRoot","forwardRef","_a","ref","children","props","contextValue","useMemo","_jsx","Provider","value","jsx","AlertDialogPrimitive.Root","displayName"],"mappings":"0OAAA,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,EAIIiB,EAAqBC,EAAc,CACnCC,KAAM,SACNC,QAAS,OACTC,MAAO,MACPC,OAAQ,SACRC,WAAY,UAELC,EAAwB,WAC/B,OAAOC,EAAWR,EACtB,EACWS,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAWF,EAAGE,SAAUR,EAASM,EAAGN,OAAQH,EAAOS,EAAGT,KAAMC,EAAUQ,EAAGR,QAASC,EAAQO,EAAGP,MAAOU,EAAQnB,EAAOgB,EAAI,CAAC,WAAY,SAAU,OAAQ,UAAW,UACjKI,EAAeC,GAAQ,WAAc,MAAQ,CAC7CX,OAAQA,EACRH,KAAMA,EACNC,QAASA,EACTC,MAAOA,EACR,GAAI,CAACC,EAAQH,EAAMC,EAASC,IAC/B,OAAQa,MAAKjB,EAAmBkB,SAAU,CAAEC,MAAOJ,EAAcF,SAAUI,EAAIG,IAAC,MAAO,CAAER,IAAKA,EAAKC,SAAUI,EAAAA,IAAKI,EAA2BzC,EAAS,CAAA,EAAIkC,EAAO,CAAED,SAAUA,QACjL,IACAJ,EAAgBa,YAAc"}
@@ -1,47 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { useAlertDialogContext } from './AlertDialogRoot';
29
- export var alertDialogTitleVariants = cva("m-0 text-slate-12 dark:text-slateDark-12 font-bold", {
30
- variants: {
31
- size: {
32
- small: 'text-sm mb-1',
33
- medium: 'text-lg mb-2',
34
- large: 'text-xl mb-3',
35
- 'x-large': 'text-2xl mb-4',
36
- },
37
- },
38
- defaultVariants: {
39
- size: 'large',
40
- },
41
- });
42
- export var AlertDialogTitle = forwardRef(function (_a, ref) {
43
- var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, ["className", "children", "titleText"]);
44
- var size = useAlertDialogContext().size;
45
- return (_jsx(AlertDialogPrimitive.Title, __assign({ className: cn(alertDialogTitleVariants({ size: size }), className), ref: ref }, props, { children: titleText !== null && titleText !== void 0 ? titleText : children })));
46
- });
47
- AlertDialogTitle.displayName = 'AlertDialog.Title';
1
+ import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Title as r}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";import{cva as l}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{useAlertDialogContext as i}from"./AlertDialogRoot.js";var o=function(){return o=Object.assign||function(t){for(var e,r=1,l=arguments.length;r<l;r++)for(var a in e=arguments[r])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},o.apply(this,arguments)},s=function(t,e){var r={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(r[l]=t[l]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(l=Object.getOwnPropertySymbols(t);a<l.length;a++)e.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(t,l[a])&&(r[l[a]]=t[l[a]])}return r},n=l("m-0 text-slate-12 dark:text-slateDark-12 font-bold",{variants:{size:{small:"text-sm mb-1",medium:"text-lg mb-2",large:"text-xl mb-3","x-large":"text-2xl mb-4"}},defaultVariants:{size:"large"}}),m=e((function(e,l){var m=e.className,c=e.children,p=e.titleText,f=s(e,["className","children","titleText"]),u=i().size;return t.jsx(r,o({className:a(n({size:u}),m),ref:l},f,{children:null!=p?p:c}))}));m.displayName="AlertDialog.Title";export{m as AlertDialogTitle,n as alertDialogTitleVariants};
2
+ //# sourceMappingURL=AlertDialogTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogTitle.js","sources":["../../../../lib/components/AlertDialog/AlertDialogTitle.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { useAlertDialogContext } from './AlertDialogRoot';\nexport var alertDialogTitleVariants = cva(\"m-0 text-slate-12 dark:text-slateDark-12 font-bold\", {\n variants: {\n size: {\n small: 'text-sm mb-1',\n medium: 'text-lg mb-2',\n large: 'text-xl mb-3',\n 'x-large': 'text-2xl mb-4',\n },\n },\n defaultVariants: {\n size: 'large',\n },\n});\nexport var AlertDialogTitle = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, [\"className\", \"children\", \"titleText\"]);\n var size = useAlertDialogContext().size;\n return (_jsx(AlertDialogPrimitive.Title, __assign({ className: cn(alertDialogTitleVariants({ size: size }), className), ref: ref }, props, { children: titleText !== null && titleText !== void 0 ? titleText : children })));\n});\nAlertDialogTitle.displayName = 'AlertDialog.Title';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","alertDialogTitleVariants","cva","variants","size","small","medium","large","defaultVariants","AlertDialogTitle","forwardRef","_a","ref","className","children","titleText","props","useAlertDialogContext","_jsx","AlertDialogPrimitive.Title","cn","displayName"],"mappings":"4XAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAA2BC,EAAI,qDAAsD,CAC5FC,SAAU,CACNC,KAAM,CACFC,MAAO,eACPC,OAAQ,eACRC,MAAO,eACP,UAAW,kBAGnBC,gBAAiB,CACbJ,KAAM,WAGHK,EAAmBC,GAAW,SAAUC,EAAIC,GACnD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAYJ,EAAGI,UAAWC,EAAQpB,EAAOe,EAAI,CAAC,YAAa,WAAY,cACzHP,EAAOa,IAAwBb,KACnC,OAAQc,MAAKC,EAA4BtC,EAAS,CAAEgC,UAAWO,EAAGnB,EAAyB,CAAEG,KAAMA,IAASS,GAAYD,IAAKA,GAAOI,EAAO,CAAEF,SAAUC,QAA6CA,EAAYD,IACpN,IACAL,EAAiBY,YAAc"}
@@ -1,55 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from '../../../lib/constants';
29
- var buttonVariants = cva("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8", {
30
- variants: {
31
- radius: __assign({}, radiusVariants['base']),
32
- size: {
33
- small: 'text-xs h-[24px] px-2',
34
- medium: 'text-sm h-[32px] px-3',
35
- large: 'text-base h-[40px] px-4',
36
- 'x-large': 'text-lg h-[48px] px-6',
37
- },
38
- scaling: __assign({}, scalingVariants),
39
- weight: __assign({}, weightVariants),
40
- color: primaryColorStyle(),
41
- },
42
- defaultVariants: {
43
- radius: 'large',
44
- scaling: '100%',
45
- weight: 'medium',
46
- color: 'red',
47
- size: 'medium',
48
- },
49
- });
50
- export var AlertDialogTrigger = forwardRef(function (_a, ref) {
51
- var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "weight", "color", "appearance"]);
52
- var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
53
- return (_jsx(AlertDialogPrimitive.Trigger, __assign({ asChild: true, ref: ref, className: buttonClassName }, props, { children: children })));
54
- });
55
- AlertDialogTrigger.displayName = 'AlertDialog.Trigger';
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{Trigger as t}from"../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js";import{cva as i}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{radiusVariants as s,scalingVariants as o,weightVariants as l,primaryColorStyle as n,appearanceStyle as c}from"../../constants.js";var d=function(){return d=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},d.apply(this,arguments)},p=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)r.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t},m=i("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8",{variants:{radius:d({},s.base),size:{small:"text-xs h-[24px] px-2",medium:"text-sm h-[32px] px-3",large:"text-base h-[40px] px-4","x-large":"text-lg h-[48px] px-6"},scaling:d({},o),weight:d({},l),color:n()},defaultVariants:{radius:"large",scaling:"100%",weight:"medium",color:"red",size:"medium"}}),u=r((function(r,i){var s=r.children,o=r.className,l=r.radius,n=r.scaling,u=r.size,g=r.weight,x=r.color,f=void 0===x?"red":x,h=r.appearance,j=void 0===h?"solid":h,b=p(r,["children","className","radius","scaling","size","weight","color","appearance"]),y=a(m({radius:l,scaling:n,size:u,weight:g,color:f}),c(j,f),o);return e.jsx(t,d({asChild:!0,ref:i,className:y},b,{children:s}))}));u.displayName="AlertDialog.Trigger";export{u as AlertDialogTrigger};
2
+ //# sourceMappingURL=AlertDialogTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertDialogTrigger.js","sources":["../../../../lib/components/AlertDialog/AlertDialogTrigger.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from '../../../lib/constants';\nvar buttonVariants = cva(\"inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8\", {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'text-xs h-[24px] px-2',\n medium: 'text-sm h-[32px] px-3',\n large: 'text-base h-[40px] px-4',\n 'x-large': 'text-lg h-[48px] px-6',\n },\n scaling: __assign({}, scalingVariants),\n weight: __assign({}, weightVariants),\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'large',\n scaling: '100%',\n weight: 'medium',\n color: 'red',\n size: 'medium',\n },\n});\nexport var AlertDialogTrigger = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\", \"size\", \"weight\", \"color\", \"appearance\"]);\n var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);\n return (_jsx(AlertDialogPrimitive.Trigger, __assign({ asChild: true, ref: ref, className: buttonClassName }, props, { children: children })));\n});\nAlertDialogTrigger.displayName = 'AlertDialog.Trigger';\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","AlertDialogTrigger","forwardRef","_a","ref","children","className","_b","_c","appearance","props","buttonClassName","cn","appearanceStyle","_jsx","AlertDialogPrimitive.Trigger","asChild","displayName"],"mappings":"0cAAA,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,EAAiBC,EAAI,8JAA+J,CACpLC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACFC,MAAO,wBACPC,OAAQ,wBACRC,MAAO,0BACP,UAAW,yBAEfC,QAAS7B,EAAS,CAAE,EAAE8B,GACtBC,OAAQ/B,EAAS,CAAE,EAAEgC,GACrBC,MAAOC,KAEXC,gBAAiB,CACbZ,OAAQ,QACRM,QAAS,OACTE,OAAQ,SACRE,MAAO,MACPR,KAAM,YAGHW,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWlB,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,WAAY,YAAa,SAAU,UAAW,OAAQ,SAAU,QAAS,eAC/UQ,EAAkBC,EAAG3B,EAAe,CAAEG,OAAQA,EAAQM,QAASA,EAASJ,KAAMA,EAAMM,OAAQA,EAAQE,MAAOA,IAAUe,EAAgBJ,EAAYX,GAAQQ,GAC7J,OAAQQ,EAAAA,IAAKC,EAA8BlD,EAAS,CAAEmD,SAAS,EAAMZ,IAAKA,EAAKE,UAAWK,GAAmBD,EAAO,CAAEL,SAAUA,IACpI,IACAJ,EAAmBgB,YAAc"}
@@ -1,17 +1,2 @@
1
- import { AlertDialogRoot as Root } from './AlertDialogRoot';
2
- import { AlertDialogTrigger as Trigger } from './AlertDialogTrigger';
3
- import { AlertDialogContent as Content } from './AlertDialogContent';
4
- import { AlertDialogTitle as Title } from './AlertDialogTitle';
5
- import { AlertDialogDescription as Description } from './AlertDialogDescription';
6
- import { AlertDialogCancel as Cancel } from './AlertDialogCancel';
7
- import { AlertDialogAction as Action } from './AlertDialogAction';
8
- var AlertDialog = {
9
- Root: Root,
10
- Trigger: Trigger,
11
- Content: Content,
12
- Title: Title,
13
- Description: Description,
14
- Cancel: Cancel,
15
- Action: Action
16
- };
17
- export default AlertDialog;
1
+ import{AlertDialogRoot as o}from"./AlertDialogRoot.js";import{AlertDialogTrigger as r}from"./AlertDialogTrigger.js";import{AlertDialogContent as t}from"./AlertDialogContent.js";import{AlertDialogTitle as i}from"./AlertDialogTitle.js";import{AlertDialogDescription as e}from"./AlertDialogDescription.js";import{AlertDialogCancel as l}from"./AlertDialogCancel.js";import{AlertDialogAction as m}from"./AlertDialogAction.js";var a={Root:o,Trigger:r,Content:t,Title:i,Description:e,Cancel:l,Action:m};export{a as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/AlertDialog/index.js"],"sourcesContent":["import { AlertDialogRoot as Root } from './AlertDialogRoot';\nimport { AlertDialogTrigger as Trigger } from './AlertDialogTrigger';\nimport { AlertDialogContent as Content } from './AlertDialogContent';\nimport { AlertDialogTitle as Title } from './AlertDialogTitle';\nimport { AlertDialogDescription as Description } from './AlertDialogDescription';\nimport { AlertDialogCancel as Cancel } from './AlertDialogCancel';\nimport { AlertDialogAction as Action } from './AlertDialogAction';\nvar AlertDialog = {\n Root: Root,\n Trigger: Trigger,\n Content: Content,\n Title: Title,\n Description: Description,\n Cancel: Cancel,\n Action: Action\n};\nexport default AlertDialog;\n"],"names":["AlertDialog","Root","Trigger","Content","Title","Description","Cancel","Action"],"mappings":"qaAOG,IAACA,EAAc,CACdC,KAAMA,EACNC,QAASA,EACTC,QAASA,EACTC,MAAOA,EACPC,YAAaA,EACbC,OAAQA,EACRC,OAAQA"}
@@ -1,42 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { scalingVariants } from '../../../lib/constants';
29
- export var aspectRatioVariants = cva('', {
30
- variants: {
31
- scaling: __assign({}, scalingVariants),
32
- },
33
- defaultVariants: {
34
- scaling: '100%',
35
- },
36
- });
37
- var AspectRatio = forwardRef(function (_a, ref) {
38
- var children = _a.children, className = _a.className, _b = _a.ratio, ratio = _b === void 0 ? 16 / 9 : _b, scaling = _a.scaling, props = __rest(_a, ["children", "className", "ratio", "scaling"]);
39
- return (_jsx(AspectRatioPrimitive.Root, __assign({ ratio: ratio, ref: ref }, props, { className: cn(aspectRatioVariants({ scaling: scaling }), className), children: children })));
40
- });
41
- AspectRatio.displayName = 'AspectRatio';
42
- export default AspectRatio;
1
+ import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as t}from"react";import{Root as a}from"../../../../node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.js";import{cva as e}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as o}from"../../utils/utils.js";import{scalingVariants as i}from"../../constants.js";var n=function(){return n=Object.assign||function(r){for(var t,a=1,e=arguments.length;a<e;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},n.apply(this,arguments)},s=function(r,t){var a={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(a[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(r);o<e.length;o++)t.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(a[e[o]]=r[e[o]])}return a},l=e("",{variants:{scaling:n({},i)},defaultVariants:{scaling:"100%"}}),c=t((function(t,e){var i=t.children,c=t.className,p=t.ratio,m=void 0===p?16/9:p,f=t.scaling,u=s(t,["children","className","ratio","scaling"]);return r.jsx(a,n({ratio:m,ref:e},u,{className:o(l({scaling:f}),c),children:i}))}));c.displayName="AspectRatio";export{l as aspectRatioVariants,c as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/AspectRatio/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 * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { scalingVariants } from '../../../lib/constants';\nexport var aspectRatioVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nvar AspectRatio = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, _b = _a.ratio, ratio = _b === void 0 ? 16 / 9 : _b, scaling = _a.scaling, props = __rest(_a, [\"children\", \"className\", \"ratio\", \"scaling\"]);\n return (_jsx(AspectRatioPrimitive.Root, __assign({ ratio: ratio, ref: ref }, props, { className: cn(aspectRatioVariants({ scaling: scaling }), className), children: children })));\n});\nAspectRatio.displayName = 'AspectRatio';\nexport default AspectRatio;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","aspectRatioVariants","cva","variants","scaling","scalingVariants","defaultVariants","AspectRatio","forwardRef","_a","ref","children","className","_b","ratio","props","_jsx","jsx","AspectRatioPrimitive.Root","cn","displayName"],"mappings":"mXAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAAsBC,EAAI,GAAI,CACrCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGbG,EAAcC,GAAW,SAAUC,EAAIC,GACvC,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAKJ,EAAGK,MAAOA,OAAe,IAAPD,EAAgB,GAAK,EAAIA,EAAIT,EAAUK,EAAGL,QAASW,EAAQnB,EAAOa,EAAI,CAAC,WAAY,YAAa,QAAS,YACtL,OAAQO,EAAIC,IAACC,EAA2BrC,EAAS,CAAEiC,MAAOA,EAAOJ,IAAKA,GAAOK,EAAO,CAAEH,UAAWO,EAAGlB,EAAoB,CAAEG,QAASA,IAAYQ,GAAYD,SAAUA,IACzK,IACAJ,EAAYa,YAAc"}
@@ -1,58 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
29
- var AvatarVariants = cva('font-medium', {
30
- variants: {
31
- radius: __assign({}, radiusVariants['base']),
32
- size: {
33
- '1': 'h-[24px] w-[24px] text-[12px]',
34
- '2': 'h-[32px] w-[32px] text-[14px]',
35
- '3': 'h-[40px] w-[40px] text-[16px]',
36
- '4': 'h-[48px] w-[48px] text-[18px]',
37
- '5': 'h-[64px] w-[64px] text-[24px]',
38
- '6': 'h-[80px] w-[80px] text-[28px]',
39
- '7': 'h-[96px] w-[96px] text-[28px]',
40
- '8': 'h-[128px] w-[128px] text-[35px]',
41
- '9': 'h-[160px] w-[160px] text-[60px]',
42
- },
43
- scaling: __assign({}, scalingVariants),
44
- color: primaryColorStyle(),
45
- },
46
- defaultVariants: {
47
- radius: 'full',
48
- color: 'red',
49
- size: '3',
50
- },
51
- });
52
- var Avatar = forwardRef(function (_a, ref) {
53
- var className = _a.className, fallbackClassName = _a.fallbackClassName, radius = _a.radius, scaling = _a.scaling, size = _a.size, fallbackText = _a.fallbackText, imagePath = _a.imagePath, alt = _a.alt, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, ariaLabel = _a.ariaLabel, ariaLabelledby = _a.ariaLabelledby, title = _a.title, _d = _a.delayMs, delayMs = _d === void 0 ? 300 : _d, props = __rest(_a, ["className", "fallbackClassName", "radius", "scaling", "size", "fallbackText", "imagePath", "alt", "appearance", "color", "ariaLabel", "ariaLabelledby", "title", "delayMs"]);
54
- var imgAltText = alt || ariaLabel || fallbackText || 'Avatar Image';
55
- return (_jsxs(AvatarPrimitive.Root, __assign({ className: cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className) }, props, { ref: ref, role: "img", "aria-label": ariaLabel || imgAltText, "aria-labelledby": ariaLabelledby, title: title || imgAltText, tabIndex: 0, children: [_jsx(AvatarPrimitive.Image, { className: "h-full w-full border-none object-cover", src: imagePath, alt: imgAltText, title: title || imgAltText }), _jsx(AvatarPrimitive.Fallback, { className: cn("leading-1 flex h-full w-full items-center justify-center", className), delayMs: delayMs, "aria-hidden": "true", children: fallbackText })] })));
56
- });
57
- Avatar.displayName = 'Avatar';
58
- export default Avatar;
1
+ import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as a}from"react";import{Root as t,Image as r,Fallback as l}from"../../../../node_modules/@radix-ui/react-avatar/dist/index.mjs.js";import{cva as i}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as s}from"../../utils/utils.js";import{radiusVariants as o,scalingVariants as n,primaryColorStyle as p,appearanceStyle as x}from"../../constants.js";var c=function(){return c=Object.assign||function(e){for(var a,t=1,r=arguments.length;t<r;t++)for(var l in a=arguments[t])Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l]);return e},c.apply(this,arguments)},d=function(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(r=Object.getOwnPropertySymbols(e);l<r.length;l++)a.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(t[r[l]]=e[r[l]])}return t},f=i("font-medium",{variants:{radius:c({},o.base),size:{1:"h-[24px] w-[24px] text-[12px]",2:"h-[32px] w-[32px] text-[14px]",3:"h-[40px] w-[40px] text-[16px]",4:"h-[48px] w-[48px] text-[18px]",5:"h-[64px] w-[64px] text-[24px]",6:"h-[80px] w-[80px] text-[28px]",7:"h-[96px] w-[96px] text-[28px]",8:"h-[128px] w-[128px] text-[35px]",9:"h-[160px] w-[160px] text-[60px]"},scaling:c({},n),color:p()},defaultVariants:{radius:"full",color:"red",size:"3"}}),m=a((function(a,i){var o=a.className;a.fallbackClassName;var n=a.radius,p=a.scaling,m=a.size,u=a.fallbackText,b=a.imagePath,h=a.alt,y=a.appearance,j=void 0===y?"solid":y,v=a.color,w=void 0===v?"red":v,g=a.ariaLabel,O=a.ariaLabelledby,N=a.title,P=a.delayMs,z=void 0===P?300:P,k=d(a,["className","fallbackClassName","radius","scaling","size","fallbackText","imagePath","alt","appearance","color","ariaLabel","ariaLabelledby","title","delayMs"]),L=h||g||u||"Avatar Image";return e.jsxs(t,c({className:s("inline-flex select-none items-center justify-center overflow-hidden align-middle",f({radius:n,scaling:p,size:m,color:w}),x(j,w,!1),o)},k,{ref:i,role:"img","aria-label":g||L,"aria-labelledby":O,title:N||L,tabIndex:0,children:[e.jsx(r,{className:"h-full w-full border-none object-cover",src:b,alt:L,title:N||L}),e.jsx(l,{className:s("leading-1 flex h-full w-full items-center justify-center",o),delayMs:z,"aria-hidden":"true",children:u})]}))}));m.displayName="Avatar";export{m as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../lib/components/Avatar/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, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants } from '../../../lib/constants';\nvar AvatarVariants = cva('font-medium', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n '1': 'h-[24px] w-[24px] text-[12px]',\n '2': 'h-[32px] w-[32px] text-[14px]',\n '3': 'h-[40px] w-[40px] text-[16px]',\n '4': 'h-[48px] w-[48px] text-[18px]',\n '5': 'h-[64px] w-[64px] text-[24px]',\n '6': 'h-[80px] w-[80px] text-[28px]',\n '7': 'h-[96px] w-[96px] text-[28px]',\n '8': 'h-[128px] w-[128px] text-[35px]',\n '9': 'h-[160px] w-[160px] text-[60px]',\n },\n scaling: __assign({}, scalingVariants),\n color: primaryColorStyle(),\n },\n defaultVariants: {\n radius: 'full',\n color: 'red',\n size: '3',\n },\n});\nvar Avatar = forwardRef(function (_a, ref) {\n var className = _a.className, fallbackClassName = _a.fallbackClassName, radius = _a.radius, scaling = _a.scaling, size = _a.size, fallbackText = _a.fallbackText, imagePath = _a.imagePath, alt = _a.alt, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, ariaLabel = _a.ariaLabel, ariaLabelledby = _a.ariaLabelledby, title = _a.title, _d = _a.delayMs, delayMs = _d === void 0 ? 300 : _d, props = __rest(_a, [\"className\", \"fallbackClassName\", \"radius\", \"scaling\", \"size\", \"fallbackText\", \"imagePath\", \"alt\", \"appearance\", \"color\", \"ariaLabel\", \"ariaLabelledby\", \"title\", \"delayMs\"]);\n var imgAltText = alt || ariaLabel || fallbackText || 'Avatar Image';\n return (_jsxs(AvatarPrimitive.Root, __assign({ className: cn(\"inline-flex select-none items-center justify-center overflow-hidden align-middle\", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className) }, props, { ref: ref, role: \"img\", \"aria-label\": ariaLabel || imgAltText, \"aria-labelledby\": ariaLabelledby, title: title || imgAltText, tabIndex: 0, children: [_jsx(AvatarPrimitive.Image, { className: \"h-full w-full border-none object-cover\", src: imagePath, alt: imgAltText, title: title || imgAltText }), _jsx(AvatarPrimitive.Fallback, { className: cn(\"leading-1 flex h-full w-full items-center justify-center\", className), delayMs: delayMs, \"aria-hidden\": \"true\", children: fallbackText })] })));\n});\nAvatar.displayName = 'Avatar';\nexport default Avatar;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","AvatarVariants","cva","variants","radius","radiusVariants","size","scaling","scalingVariants","color","primaryColorStyle","defaultVariants","Avatar","forwardRef","_a","ref","className","fallbackClassName","fallbackText","imagePath","alt","_b","appearance","_c","ariaLabel","ariaLabelledby","title","_d","delayMs","props","imgAltText","_jsxs","AvatarPrimitive.Root","cn","appearanceStyle","role","tabIndex","children","_jsx","AvatarPrimitive.Image","src","AvatarPrimitive.Fallback","displayName"],"mappings":"scAAA,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,EAAiBC,EAAI,cAAe,CACpCC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACF,EAAK,gCACL,EAAK,gCACL,EAAK,gCACL,EAAK,gCACL,EAAK,gCACL,EAAK,gCACL,EAAK,gCACL,EAAK,kCACL,EAAK,mCAETC,QAAS1B,EAAS,CAAE,EAAE2B,GACtBC,MAAOC,KAEXC,gBAAiB,CACbP,OAAQ,OACRK,MAAO,MACPH,KAAM,OAGVM,EAASC,GAAW,SAAUC,EAAIC,GAC/B,IAACC,EAAYF,EAAGE,UAA+BF,EAAGG,kBAAkB,IAACb,EAASU,EAAGV,OAAQG,EAAUO,EAAGP,QAASD,EAAOQ,EAAGR,KAAMY,EAAeJ,EAAGI,aAAcC,EAAYL,EAAGK,UAAWC,EAAMN,EAAGM,IAAKC,EAAKP,EAAGQ,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKT,EAAGL,MAAOA,OAAe,IAAPc,EAAgB,MAAQA,EAAIC,EAAYV,EAAGU,UAAWC,EAAiBX,EAAGW,eAAgBC,EAAQZ,EAAGY,MAAOC,EAAKb,EAAGc,QAASA,OAAiB,IAAPD,EAAgB,IAAMA,EAAIE,EAAQjC,EAAOkB,EAAI,CAAC,YAAa,oBAAqB,SAAU,UAAW,OAAQ,eAAgB,YAAa,MAAO,aAAc,QAAS,YAAa,iBAAkB,QAAS,YACnnBgB,EAAaV,GAAOI,GAAaN,GAAgB,eACrD,OAAQa,EAAAA,KAAMC,EAAsBnD,EAAS,CAAEmC,UAAWiB,EAAG,mFAAoFhC,EAAe,CAAEG,OAAQA,EAAQG,QAASA,EAASD,KAAMA,EAAMG,MAAOA,IAAUyB,EAAgBZ,EAAYb,GAAO,GAAQO,IAAca,EAAO,CAAEd,IAAKA,EAAKoB,KAAM,MAAO,aAAcX,GAAaM,EAAY,kBAAmBL,EAAgBC,MAAOA,GAASI,EAAYM,SAAU,EAAGC,SAAU,CAACC,EAAAA,IAAKC,EAAuB,CAAEvB,UAAW,yCAA0CwB,IAAKrB,EAAWC,IAAKU,EAAYJ,MAAOA,GAASI,IAAeQ,EAAAA,IAAKG,EAA0B,CAAEzB,UAAWiB,EAAG,2DAA4DjB,GAAYY,QAASA,EAAS,cAAe,OAAQS,SAAUnB,OACzvB,IACAN,EAAO8B,YAAc"}