blimpui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/dist/$/components/primitives/accordion.d.ts +9 -0
  2. package/dist/$/components/primitives/accordion.d.ts.map +1 -0
  3. package/dist/$/components/primitives/accordion.js +64 -0
  4. package/dist/$/components/primitives/alert-dialog.d.ts +31 -0
  5. package/dist/$/components/primitives/alert-dialog.d.ts.map +1 -0
  6. package/dist/$/components/primitives/alert-dialog.js +74 -0
  7. package/dist/$/components/primitives/alert.d.ts +13 -0
  8. package/dist/$/components/primitives/alert.d.ts.map +1 -0
  9. package/dist/$/components/primitives/alert.js +42 -0
  10. package/dist/$/components/primitives/aspect-ratio.d.ts +2 -0
  11. package/dist/$/components/primitives/aspect-ratio.d.ts.map +1 -0
  12. package/dist/$/components/primitives/aspect-ratio.js +1 -0
  13. package/dist/$/components/primitives/avatar.d.ts +6 -0
  14. package/dist/$/components/primitives/avatar.d.ts.map +1 -0
  15. package/dist/$/components/primitives/avatar.js +38 -0
  16. package/dist/$/components/primitives/badge.d.ts +15 -0
  17. package/dist/$/components/primitives/badge.d.ts.map +1 -0
  18. package/dist/$/components/primitives/badge.js +64 -0
  19. package/dist/$/components/primitives/button.d.ts +37 -0
  20. package/dist/$/components/primitives/button.d.ts.map +1 -0
  21. package/dist/$/components/primitives/button.js +100 -0
  22. package/dist/$/components/primitives/calendar/calendar-header.d.ts +13 -0
  23. package/dist/$/components/primitives/calendar/calendar-header.d.ts.map +1 -0
  24. package/dist/$/components/primitives/calendar/calendar-header.js +15 -0
  25. package/dist/$/components/primitives/calendar/calendar-month-grid.d.ts +14 -0
  26. package/dist/$/components/primitives/calendar/calendar-month-grid.d.ts.map +1 -0
  27. package/dist/$/components/primitives/calendar/calendar-month-grid.js +29 -0
  28. package/dist/$/components/primitives/calendar/calendar-weekdays-row.d.ts +8 -0
  29. package/dist/$/components/primitives/calendar/calendar-weekdays-row.d.ts.map +1 -0
  30. package/dist/$/components/primitives/calendar/calendar-weekdays-row.js +36 -0
  31. package/dist/$/components/primitives/calendar/constants.d.ts +3 -0
  32. package/dist/$/components/primitives/calendar/constants.d.ts.map +1 -0
  33. package/dist/$/components/primitives/calendar/constants.js +15 -0
  34. package/dist/$/components/primitives/calendar/date-utils.d.ts +14 -0
  35. package/dist/$/components/primitives/calendar/date-utils.d.ts.map +1 -0
  36. package/dist/$/components/primitives/calendar/date-utils.js +77 -0
  37. package/dist/$/components/primitives/calendar/month-year-overlay.d.ts +14 -0
  38. package/dist/$/components/primitives/calendar/month-year-overlay.d.ts.map +1 -0
  39. package/dist/$/components/primitives/calendar/month-year-overlay.js +11 -0
  40. package/dist/$/components/primitives/calendar/types.d.ts +24 -0
  41. package/dist/$/components/primitives/calendar/types.d.ts.map +1 -0
  42. package/dist/$/components/primitives/calendar/types.js +1 -0
  43. package/dist/$/components/primitives/calendar/use-calendar-shell.d.ts +35 -0
  44. package/dist/$/components/primitives/calendar/use-calendar-shell.d.ts.map +1 -0
  45. package/dist/$/components/primitives/calendar/use-calendar-shell.js +95 -0
  46. package/dist/$/components/primitives/calendar/use-controllable-state.d.ts +8 -0
  47. package/dist/$/components/primitives/calendar/use-controllable-state.d.ts.map +1 -0
  48. package/dist/$/components/primitives/calendar/use-controllable-state.js +13 -0
  49. package/dist/$/components/primitives/calendar.d.ts +5 -0
  50. package/dist/$/components/primitives/calendar.d.ts.map +1 -0
  51. package/dist/$/components/primitives/calendar.js +48 -0
  52. package/dist/$/components/primitives/card.d.ts +10 -0
  53. package/dist/$/components/primitives/card.d.ts.map +1 -0
  54. package/dist/$/components/primitives/card.js +51 -0
  55. package/dist/$/components/primitives/checkbox.d.ts +8 -0
  56. package/dist/$/components/primitives/checkbox.d.ts.map +1 -0
  57. package/dist/$/components/primitives/checkbox.js +37 -0
  58. package/dist/$/components/primitives/collapsible.d.ts +2 -0
  59. package/dist/$/components/primitives/collapsible.d.ts.map +1 -0
  60. package/dist/$/components/primitives/collapsible.js +1 -0
  61. package/dist/$/components/primitives/context-menu.d.ts +61 -0
  62. package/dist/$/components/primitives/context-menu.d.ts.map +1 -0
  63. package/dist/$/components/primitives/context-menu.js +101 -0
  64. package/dist/$/components/primitives/dialog.d.ts +35 -0
  65. package/dist/$/components/primitives/dialog.d.ts.map +1 -0
  66. package/dist/$/components/primitives/dialog.js +68 -0
  67. package/dist/$/components/primitives/dropdown-menu.d.ts +61 -0
  68. package/dist/$/components/primitives/dropdown-menu.d.ts.map +1 -0
  69. package/dist/$/components/primitives/dropdown-menu.js +102 -0
  70. package/dist/$/components/primitives/hover-card.d.ts +18 -0
  71. package/dist/$/components/primitives/hover-card.d.ts.map +1 -0
  72. package/dist/$/components/primitives/hover-card.js +41 -0
  73. package/dist/$/components/primitives/icon.d.ts +27 -0
  74. package/dist/$/components/primitives/icon.d.ts.map +1 -0
  75. package/dist/$/components/primitives/icon.js +64 -0
  76. package/dist/$/components/primitives/input.d.ts +5 -0
  77. package/dist/$/components/primitives/input.d.ts.map +1 -0
  78. package/dist/$/components/primitives/input.js +38 -0
  79. package/dist/$/components/primitives/label.d.ts +4 -0
  80. package/dist/$/components/primitives/label.d.ts.map +1 -0
  81. package/dist/$/components/primitives/label.js +33 -0
  82. package/dist/$/components/primitives/list.d.ts +9 -0
  83. package/dist/$/components/primitives/list.d.ts.map +1 -0
  84. package/dist/$/components/primitives/list.js +155 -0
  85. package/dist/$/components/primitives/menubar.d.ts +57 -0
  86. package/dist/$/components/primitives/menubar.d.ts.map +1 -0
  87. package/dist/$/components/primitives/menubar.js +115 -0
  88. package/dist/$/components/primitives/multi-column-wheelpicker/index.d.ts +2 -0
  89. package/dist/$/components/primitives/multi-column-wheelpicker/index.d.ts.map +1 -0
  90. package/dist/$/components/primitives/multi-column-wheelpicker/index.js +1 -0
  91. package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.d.ts +35 -0
  92. package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.d.ts.map +1 -0
  93. package/dist/$/components/primitives/multi-column-wheelpicker/multi-column-wheelpicker.js +62 -0
  94. package/dist/$/components/primitives/native-only-animated-view.d.ts +13 -0
  95. package/dist/$/components/primitives/native-only-animated-view.d.ts.map +1 -0
  96. package/dist/$/components/primitives/native-only-animated-view.js +32 -0
  97. package/dist/$/components/primitives/popover.d.ts +18 -0
  98. package/dist/$/components/primitives/popover.d.ts.map +1 -0
  99. package/dist/$/components/primitives/popover.js +41 -0
  100. package/dist/$/components/primitives/pressable.d.ts +14 -0
  101. package/dist/$/components/primitives/pressable.d.ts.map +1 -0
  102. package/dist/$/components/primitives/pressable.js +39 -0
  103. package/dist/$/components/primitives/progress.d.ts +6 -0
  104. package/dist/$/components/primitives/progress.d.ts.map +1 -0
  105. package/dist/$/components/primitives/progress.js +60 -0
  106. package/dist/$/components/primitives/radio-group.d.ts +5 -0
  107. package/dist/$/components/primitives/radio-group.d.ts.map +1 -0
  108. package/dist/$/components/primitives/radio-group.js +37 -0
  109. package/dist/$/components/primitives/range-calendar/index.d.ts +2 -0
  110. package/dist/$/components/primitives/range-calendar/index.d.ts.map +1 -0
  111. package/dist/$/components/primitives/range-calendar/index.js +1 -0
  112. package/dist/$/components/primitives/range-calendar/range-calendar.d.ts +25 -0
  113. package/dist/$/components/primitives/range-calendar/range-calendar.d.ts.map +1 -0
  114. package/dist/$/components/primitives/range-calendar/range-calendar.js +170 -0
  115. package/dist/$/components/primitives/select.d.ts +59 -0
  116. package/dist/$/components/primitives/select.d.ts.map +1 -0
  117. package/dist/$/components/primitives/select.js +119 -0
  118. package/dist/$/components/primitives/separator.d.ts +4 -0
  119. package/dist/$/components/primitives/separator.d.ts.map +1 -0
  120. package/dist/$/components/primitives/separator.js +30 -0
  121. package/dist/$/components/primitives/skeleton.d.ts +5 -0
  122. package/dist/$/components/primitives/skeleton.d.ts.map +1 -0
  123. package/dist/$/components/primitives/skeleton.js +39 -0
  124. package/dist/$/components/primitives/switch.d.ts +4 -0
  125. package/dist/$/components/primitives/switch.d.ts.map +1 -0
  126. package/dist/$/components/primitives/switch.js +37 -0
  127. package/dist/$/components/primitives/tabs.d.ts +7 -0
  128. package/dist/$/components/primitives/tabs.d.ts.map +1 -0
  129. package/dist/$/components/primitives/tabs.js +48 -0
  130. package/dist/$/components/primitives/text.d.ts +13 -0
  131. package/dist/$/components/primitives/text.d.ts.map +1 -0
  132. package/dist/$/components/primitives/text.js +73 -0
  133. package/dist/$/components/primitives/textarea.d.ts +5 -0
  134. package/dist/$/components/primitives/textarea.d.ts.map +1 -0
  135. package/dist/$/components/primitives/textarea.js +33 -0
  136. package/dist/$/components/primitives/toast/index.d.ts +2 -0
  137. package/dist/$/components/primitives/toast/index.d.ts.map +1 -0
  138. package/dist/$/components/primitives/toast/index.js +1 -0
  139. package/dist/$/components/primitives/toast/index.web.d.ts +2 -0
  140. package/dist/$/components/primitives/toast/index.web.d.ts.map +1 -0
  141. package/dist/$/components/primitives/toast/index.web.js +1 -0
  142. package/dist/$/components/primitives/toggle-group.d.ts +13 -0
  143. package/dist/$/components/primitives/toggle-group.d.ts.map +1 -0
  144. package/dist/$/components/primitives/toggle-group.js +65 -0
  145. package/dist/$/components/primitives/toggle.d.ts +12 -0
  146. package/dist/$/components/primitives/toggle.d.ts.map +1 -0
  147. package/dist/$/components/primitives/toggle.js +63 -0
  148. package/dist/$/components/primitives/tooltip.d.ts +21 -0
  149. package/dist/$/components/primitives/tooltip.d.ts.map +1 -0
  150. package/dist/$/components/primitives/tooltip.js +47 -0
  151. package/dist/$/components/primitives/view.d.ts +15 -0
  152. package/dist/$/components/primitives/view.d.ts.map +1 -0
  153. package/dist/$/components/primitives/view.js +37 -0
  154. package/dist/$/components/primitives/wheelpicker/index.d.ts +4 -0
  155. package/dist/$/components/primitives/wheelpicker/index.d.ts.map +1 -0
  156. package/dist/$/components/primitives/wheelpicker/index.js +3 -0
  157. package/dist/$/components/primitives/wheelpicker/types.d.ts +7 -0
  158. package/dist/$/components/primitives/wheelpicker/types.d.ts.map +1 -0
  159. package/dist/$/components/primitives/wheelpicker/types.js +1 -0
  160. package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.d.ts +16 -0
  161. package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.d.ts.map +1 -0
  162. package/dist/$/components/primitives/wheelpicker/use-wheel-picker-value.js +43 -0
  163. package/dist/$/components/primitives/wheelpicker/wheel-picker-item.d.ts +11 -0
  164. package/dist/$/components/primitives/wheelpicker/wheel-picker-item.d.ts.map +1 -0
  165. package/dist/$/components/primitives/wheelpicker/wheel-picker-item.js +8 -0
  166. package/dist/$/components/primitives/wheelpicker/wheel-picker-list.d.ts +18 -0
  167. package/dist/$/components/primitives/wheelpicker/wheel-picker-list.d.ts.map +1 -0
  168. package/dist/$/components/primitives/wheelpicker/wheel-picker-list.js +253 -0
  169. package/dist/$/components/primitives/wheelpicker/wheelpicker.d.ts +17 -0
  170. package/dist/$/components/primitives/wheelpicker/wheelpicker.d.ts.map +1 -0
  171. package/dist/$/components/primitives/wheelpicker/wheelpicker.js +15 -0
  172. package/dist/$/components/ui/accordion.d.ts +17 -0
  173. package/dist/$/components/ui/accordion.d.ts.map +1 -0
  174. package/dist/$/components/ui/accordion.js +39 -0
  175. package/dist/$/components/ui/alert-dialog.d.ts +22 -0
  176. package/dist/$/components/ui/alert-dialog.d.ts.map +1 -0
  177. package/dist/$/components/ui/alert-dialog.js +92 -0
  178. package/dist/$/components/ui/alert.d.ts +14 -0
  179. package/dist/$/components/ui/alert.d.ts.map +1 -0
  180. package/dist/$/components/ui/alert.js +31 -0
  181. package/dist/$/components/ui/aspect-ratio.d.ts +2 -0
  182. package/dist/$/components/ui/aspect-ratio.d.ts.map +1 -0
  183. package/dist/$/components/ui/aspect-ratio.js +1 -0
  184. package/dist/$/components/ui/avatar.d.ts +14 -0
  185. package/dist/$/components/ui/avatar.d.ts.map +1 -0
  186. package/dist/$/components/ui/avatar.js +33 -0
  187. package/dist/$/components/ui/badge.d.ts +2 -0
  188. package/dist/$/components/ui/badge.d.ts.map +1 -0
  189. package/dist/$/components/ui/badge.js +1 -0
  190. package/dist/$/components/ui/button.d.ts +2 -0
  191. package/dist/$/components/ui/button.d.ts.map +1 -0
  192. package/dist/$/components/ui/button.js +1 -0
  193. package/dist/$/components/ui/calendar.d.ts +2 -0
  194. package/dist/$/components/ui/calendar.d.ts.map +1 -0
  195. package/dist/$/components/ui/calendar.js +1 -0
  196. package/dist/$/components/ui/card.d.ts +17 -0
  197. package/dist/$/components/ui/card.d.ts.map +1 -0
  198. package/dist/$/components/ui/card.js +33 -0
  199. package/dist/$/components/ui/checkbox.d.ts +2 -0
  200. package/dist/$/components/ui/checkbox.d.ts.map +1 -0
  201. package/dist/$/components/ui/checkbox.js +1 -0
  202. package/dist/$/components/ui/collapsible.d.ts +12 -0
  203. package/dist/$/components/ui/collapsible.d.ts.map +1 -0
  204. package/dist/$/components/ui/collapsible.js +33 -0
  205. package/dist/$/components/ui/context-menu.d.ts +59 -0
  206. package/dist/$/components/ui/context-menu.d.ts.map +1 -0
  207. package/dist/$/components/ui/context-menu.js +66 -0
  208. package/dist/$/components/ui/date-range-picker.d.ts +26 -0
  209. package/dist/$/components/ui/date-range-picker.d.ts.map +1 -0
  210. package/dist/$/components/ui/date-range-picker.js +89 -0
  211. package/dist/$/components/ui/datepicker.d.ts +26 -0
  212. package/dist/$/components/ui/datepicker.d.ts.map +1 -0
  213. package/dist/$/components/ui/datepicker.js +81 -0
  214. package/dist/$/components/ui/dialog.d.ts +18 -0
  215. package/dist/$/components/ui/dialog.d.ts.map +1 -0
  216. package/dist/$/components/ui/dialog.js +33 -0
  217. package/dist/$/components/ui/dropdown-menu.d.ts +59 -0
  218. package/dist/$/components/ui/dropdown-menu.d.ts.map +1 -0
  219. package/dist/$/components/ui/dropdown-menu.js +79 -0
  220. package/dist/$/components/ui/form-field/form-field-label.d.ts +15 -0
  221. package/dist/$/components/ui/form-field/form-field-label.d.ts.map +1 -0
  222. package/dist/$/components/ui/form-field/form-field-label.js +15 -0
  223. package/dist/$/components/ui/form-field/form-field-message.d.ts +11 -0
  224. package/dist/$/components/ui/form-field/form-field-message.d.ts.map +1 -0
  225. package/dist/$/components/ui/form-field/form-field-message.js +10 -0
  226. package/dist/$/components/ui/form-field/index.d.ts +48 -0
  227. package/dist/$/components/ui/form-field/index.d.ts.map +1 -0
  228. package/dist/$/components/ui/form-field/index.js +80 -0
  229. package/dist/$/components/ui/form-field/use-form-field-animation.d.ts +8 -0
  230. package/dist/$/components/ui/form-field/use-form-field-animation.d.ts.map +1 -0
  231. package/dist/$/components/ui/form-field/use-form-field-animation.js +23 -0
  232. package/dist/$/components/ui/form-field/use-form-field.d.ts +28 -0
  233. package/dist/$/components/ui/form-field/use-form-field.d.ts.map +1 -0
  234. package/dist/$/components/ui/form-field/use-form-field.js +55 -0
  235. package/dist/$/components/ui/hover-card.d.ts +12 -0
  236. package/dist/$/components/ui/hover-card.d.ts.map +1 -0
  237. package/dist/$/components/ui/hover-card.js +33 -0
  238. package/dist/$/components/ui/icon.d.ts +2 -0
  239. package/dist/$/components/ui/icon.d.ts.map +1 -0
  240. package/dist/$/components/ui/icon.js +1 -0
  241. package/dist/$/components/ui/input.d.ts +30 -0
  242. package/dist/$/components/ui/input.d.ts.map +1 -0
  243. package/dist/$/components/ui/input.js +60 -0
  244. package/dist/$/components/ui/label.d.ts +2 -0
  245. package/dist/$/components/ui/label.d.ts.map +1 -0
  246. package/dist/$/components/ui/label.js +1 -0
  247. package/dist/$/components/ui/list.d.ts +2 -0
  248. package/dist/$/components/ui/list.d.ts.map +1 -0
  249. package/dist/$/components/ui/list.js +1 -0
  250. package/dist/$/components/ui/menubar.d.ts +63 -0
  251. package/dist/$/components/ui/menubar.d.ts.map +1 -0
  252. package/dist/$/components/ui/menubar.js +66 -0
  253. package/dist/$/components/ui/multi-column-wheelpicker.d.ts +2 -0
  254. package/dist/$/components/ui/multi-column-wheelpicker.d.ts.map +1 -0
  255. package/dist/$/components/ui/multi-column-wheelpicker.js +1 -0
  256. package/dist/$/components/ui/native-only-animated-view.d.ts +2 -0
  257. package/dist/$/components/ui/native-only-animated-view.d.ts.map +1 -0
  258. package/dist/$/components/ui/native-only-animated-view.js +1 -0
  259. package/dist/$/components/ui/picker.d.ts +25 -0
  260. package/dist/$/components/ui/picker.d.ts.map +1 -0
  261. package/dist/$/components/ui/picker.js +80 -0
  262. package/dist/$/components/ui/popover.d.ts +34 -0
  263. package/dist/$/components/ui/popover.d.ts.map +1 -0
  264. package/dist/$/components/ui/popover.js +63 -0
  265. package/dist/$/components/ui/pressable.d.ts +2 -0
  266. package/dist/$/components/ui/pressable.d.ts.map +1 -0
  267. package/dist/$/components/ui/pressable.js +1 -0
  268. package/dist/$/components/ui/progress.d.ts +2 -0
  269. package/dist/$/components/ui/progress.d.ts.map +1 -0
  270. package/dist/$/components/ui/progress.js +1 -0
  271. package/dist/$/components/ui/radio-group.d.ts +15 -0
  272. package/dist/$/components/ui/radio-group.d.ts.map +1 -0
  273. package/dist/$/components/ui/radio-group.js +41 -0
  274. package/dist/$/components/ui/range-calendar.d.ts +2 -0
  275. package/dist/$/components/ui/range-calendar.d.ts.map +1 -0
  276. package/dist/$/components/ui/range-calendar.js +1 -0
  277. package/dist/$/components/ui/select.d.ts +75 -0
  278. package/dist/$/components/ui/select.d.ts.map +1 -0
  279. package/dist/$/components/ui/select.js +105 -0
  280. package/dist/$/components/ui/separator.d.ts +2 -0
  281. package/dist/$/components/ui/separator.d.ts.map +1 -0
  282. package/dist/$/components/ui/separator.js +1 -0
  283. package/dist/$/components/ui/skeleton.d.ts +2 -0
  284. package/dist/$/components/ui/skeleton.d.ts.map +1 -0
  285. package/dist/$/components/ui/skeleton.js +1 -0
  286. package/dist/$/components/ui/switch.d.ts +2 -0
  287. package/dist/$/components/ui/switch.d.ts.map +1 -0
  288. package/dist/$/components/ui/switch.js +1 -0
  289. package/dist/$/components/ui/tabs.d.ts +17 -0
  290. package/dist/$/components/ui/tabs.d.ts.map +1 -0
  291. package/dist/$/components/ui/tabs.js +48 -0
  292. package/dist/$/components/ui/text.d.ts +2 -0
  293. package/dist/$/components/ui/text.d.ts.map +1 -0
  294. package/dist/$/components/ui/text.js +1 -0
  295. package/dist/$/components/ui/textarea.d.ts +30 -0
  296. package/dist/$/components/ui/textarea.d.ts.map +1 -0
  297. package/dist/$/components/ui/textarea.js +61 -0
  298. package/dist/$/components/ui/timepicker.d.ts +26 -0
  299. package/dist/$/components/ui/timepicker.d.ts.map +1 -0
  300. package/dist/$/components/ui/timepicker.js +90 -0
  301. package/dist/$/components/ui/timewheelpicker.d.ts +22 -0
  302. package/dist/$/components/ui/timewheelpicker.d.ts.map +1 -0
  303. package/dist/$/components/ui/timewheelpicker.js +112 -0
  304. package/dist/$/components/ui/toggle-group.d.ts +14 -0
  305. package/dist/$/components/ui/toggle-group.d.ts.map +1 -0
  306. package/dist/$/components/ui/toggle-group.js +44 -0
  307. package/dist/$/components/ui/toggle.d.ts +2 -0
  308. package/dist/$/components/ui/toggle.d.ts.map +1 -0
  309. package/dist/$/components/ui/toggle.js +1 -0
  310. package/dist/$/components/ui/tooltip.d.ts +12 -0
  311. package/dist/$/components/ui/tooltip.d.ts.map +1 -0
  312. package/dist/$/components/ui/tooltip.js +33 -0
  313. package/dist/$/components/ui/view.d.ts +2 -0
  314. package/dist/$/components/ui/view.d.ts.map +1 -0
  315. package/dist/$/components/ui/view.js +1 -0
  316. package/dist/$/components/ui/wheelpicker.d.ts +2 -0
  317. package/dist/$/components/ui/wheelpicker.d.ts.map +1 -0
  318. package/dist/$/components/ui/wheelpicker.js +1 -0
  319. package/dist/$/lib/hooks/useExtractTextClasses.d.ts +2 -0
  320. package/dist/$/lib/hooks/useExtractTextClasses.d.ts.map +1 -0
  321. package/dist/$/lib/hooks/useExtractTextClasses.js +62 -0
  322. package/dist/$/lib/utils/renderNode.d.ts +3 -0
  323. package/dist/$/lib/utils/renderNode.d.ts.map +1 -0
  324. package/dist/$/lib/utils/renderNode.js +22 -0
  325. package/dist/$/lib/utils.d.ts +5 -0
  326. package/dist/$/lib/utils.d.ts.map +1 -0
  327. package/dist/$/lib/utils.js +32 -0
  328. package/dist/index.d.ts +44 -0
  329. package/dist/index.d.ts.map +1 -0
  330. package/dist/index.js +43 -0
  331. package/package.json +69 -0
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { Accordion as PrimitiveAccordion, AccordionContent, AccordionItem, AccordionTrigger } from "../primitives/accordion";
3
+ type AccordionItemData = {
4
+ value?: string;
5
+ title: React.ReactNode;
6
+ content: React.ReactNode;
7
+ itemProps?: Omit<React.ComponentProps<typeof AccordionItem>, "value">;
8
+ triggerProps?: React.ComponentProps<typeof AccordionTrigger>;
9
+ contentProps?: React.ComponentProps<typeof AccordionContent>;
10
+ };
11
+ type AccordionProps = React.ComponentProps<typeof PrimitiveAccordion> & {
12
+ items?: AccordionItemData[];
13
+ };
14
+ declare function Accordion({ items, children, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
15
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
16
+ export * from "../primitives/accordion";
17
+ //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACN,SAAS,IAAI,kBAAkB,EAC/B,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AAGjC,KAAK,iBAAiB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;IACtE,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAC7D,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAC7D,CAAC;AAEF,KAAK,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAEF,iBAAS,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAwB/D;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC;AACxE,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,39 @@
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 { Accordion as PrimitiveAccordion, AccordionContent, AccordionItem, AccordionTrigger, } from "../primitives/accordion";
25
+ import { Text } from "./text";
26
+ function Accordion(_a) {
27
+ var items = _a.items, children = _a.children, props = __rest(_a, ["items", "children"]);
28
+ if (!items || items.length === 0) {
29
+ return _jsx(PrimitiveAccordion, __assign({}, props, { children: children }));
30
+ }
31
+ return (_jsx(PrimitiveAccordion, __assign({}, props, { children: items.map(function (item, index) {
32
+ var _a;
33
+ var itemProps = item.itemProps, triggerProps = item.triggerProps, contentProps = item.contentProps;
34
+ var value = (_a = item.value) !== null && _a !== void 0 ? _a : String(index);
35
+ return (_jsxs(AccordionItem, __assign({ value: value }, itemProps, { children: [_jsx(AccordionTrigger, __assign({}, triggerProps, { children: _jsx(Text, { children: item.title }) })), _jsx(AccordionContent, __assign({}, contentProps, { children: item.content }))] }), value));
36
+ }) })));
37
+ }
38
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
39
+ export * from "../primitives/accordion";
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { AlertDialog as PrimitiveAlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "../primitives/alert-dialog";
3
+ type AlertDialogProps = React.ComponentProps<typeof PrimitiveAlertDialog> & {
4
+ title?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ cancelText?: React.ReactNode;
7
+ confirmText?: React.ReactNode;
8
+ onConfirm?: () => void | Promise<void>;
9
+ onCancel?: () => void;
10
+ trigger?: React.ReactNode;
11
+ contentProps?: React.ComponentProps<typeof AlertDialogContent>;
12
+ headerProps?: React.ComponentProps<typeof AlertDialogHeader>;
13
+ footerProps?: React.ComponentProps<typeof AlertDialogFooter>;
14
+ titleProps?: React.ComponentProps<typeof AlertDialogTitle>;
15
+ descriptionProps?: React.ComponentProps<typeof AlertDialogDescription>;
16
+ confirmProps?: React.ComponentProps<typeof AlertDialogAction>;
17
+ cancelProps?: React.ComponentProps<typeof AlertDialogCancel>;
18
+ };
19
+ declare function AlertDialog({ title, description, cancelText, confirmText, onConfirm, onCancel, trigger, children, contentProps, headerProps, footerProps, titleProps, descriptionProps, confirmProps, cancelProps, open, defaultOpen, onOpenChange, ...rootProps }: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
20
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, };
21
+ export * from "../primitives/alert-dialog";
22
+ //# sourceMappingURL=alert-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACN,WAAW,IAAI,oBAAoB,EACnC,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,4BAA4B,CAAC;AAEpC,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC3E,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC/D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7D,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAC3D,gBAAgB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACvE,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC7D,CAAC;AAEF,iBAAS,WAAW,CAAC,EACpB,KAAK,EACL,WAAW,EACX,UAAqB,EACrB,WAAuB,EACvB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,GAAG,SAAS,EACZ,EAAE,gBAAgB,2CAkElB;AAED,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GAClB,CAAC;AACF,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,92 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __rest = (this && this.__rest) || function (s, e) {
49
+ var t = {};
50
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ };
59
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
60
+ import * as React from "react";
61
+ import { AlertDialog as PrimitiveAlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "../primitives/alert-dialog";
62
+ function AlertDialog(_a) {
63
+ var _this = this;
64
+ var title = _a.title, description = _a.description, _b = _a.cancelText, cancelText = _b === void 0 ? "Cancel" : _b, _c = _a.confirmText, confirmText = _c === void 0 ? "Confirm" : _c, onConfirm = _a.onConfirm, onCancel = _a.onCancel, trigger = _a.trigger, children = _a.children, contentProps = _a.contentProps, headerProps = _a.headerProps, footerProps = _a.footerProps, titleProps = _a.titleProps, descriptionProps = _a.descriptionProps, confirmProps = _a.confirmProps, cancelProps = _a.cancelProps, open = _a.open, defaultOpen = _a.defaultOpen, onOpenChange = _a.onOpenChange, rootProps = __rest(_a, ["title", "description", "cancelText", "confirmText", "onConfirm", "onCancel", "trigger", "children", "contentProps", "headerProps", "footerProps", "titleProps", "descriptionProps", "confirmProps", "cancelProps", "open", "defaultOpen", "onOpenChange"]);
65
+ var isControlled = open !== undefined;
66
+ var _d = React.useState(defaultOpen !== null && defaultOpen !== void 0 ? defaultOpen : false), internalOpen = _d[0], setInternalOpen = _d[1];
67
+ var resolvedOpen = isControlled ? open : internalOpen;
68
+ var handleOpenChange = React.useCallback(function (next) {
69
+ if (!isControlled)
70
+ setInternalOpen(next);
71
+ onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(next);
72
+ }, [isControlled, onOpenChange]);
73
+ var handleConfirm = React.useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
74
+ return __generator(this, function (_a) {
75
+ switch (_a.label) {
76
+ case 0: return [4 /*yield*/, (onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm())];
77
+ case 1:
78
+ _a.sent();
79
+ handleOpenChange(false);
80
+ return [2 /*return*/];
81
+ }
82
+ });
83
+ }); }, [onConfirm, handleOpenChange]);
84
+ var handleCancel = React.useCallback(function () {
85
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel();
86
+ handleOpenChange(false);
87
+ }, [onCancel, handleOpenChange]);
88
+ var hasPresetBody = title || description || cancelText || confirmText;
89
+ return (_jsxs(PrimitiveAlertDialog, __assign({ open: resolvedOpen, onOpenChange: handleOpenChange }, rootProps, { children: [trigger ? (_jsx(AlertDialogTrigger, { asChild: true, children: trigger })) : null, children ? (children) : (_jsxs(AlertDialogContent, __assign({}, contentProps, { children: [_jsxs(AlertDialogHeader, __assign({}, headerProps, { children: [title ? (_jsx(AlertDialogTitle, __assign({}, titleProps, { children: title }))) : null, description ? (_jsx(AlertDialogDescription, __assign({}, descriptionProps, { children: description }))) : null] })), hasPresetBody ? (_jsxs(AlertDialogFooter, __assign({}, footerProps, { children: [cancelText ? (_jsx(AlertDialogCancel, __assign({ onPress: handleCancel }, cancelProps, { children: cancelText }))) : null, confirmText ? (_jsx(AlertDialogAction, __assign({ onPress: handleConfirm }, confirmProps, { children: confirmText }))) : null] }))) : null] })))] })));
90
+ }
91
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, };
92
+ export * from "../primitives/alert-dialog";
@@ -0,0 +1,14 @@
1
+ import type { LucideIcon } from "lucide-react-native";
2
+ import * as React from "react";
3
+ import { Alert as PrimitiveAlert, AlertDescription, AlertTitle } from "../primitives/alert";
4
+ type AlertProps = React.ComponentProps<typeof PrimitiveAlert> & {
5
+ title?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ icon: LucideIcon;
8
+ titleProps?: React.ComponentProps<typeof AlertTitle>;
9
+ descriptionProps?: React.ComponentProps<typeof AlertDescription>;
10
+ };
11
+ declare function Alert({ title, description, children, icon, titleProps, descriptionProps, ...props }: AlertProps): import("react/jsx-runtime").JSX.Element;
12
+ export { Alert, AlertDescription, AlertTitle };
13
+ export * from "../primitives/alert";
14
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACN,KAAK,IAAI,cAAc,EACvB,gBAAgB,EAChB,UAAU,EACV,MAAM,qBAAqB,CAAC;AAE7B,KAAK,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAAG;IAC/D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACjE,CAAC;AAEF,iBAAS,KAAK,CAAC,EACd,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,GAAG,KAAK,EACR,EAAE,UAAU,2CAmBZ;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,31 @@
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { Alert as PrimitiveAlert, AlertDescription, AlertTitle, } from "../primitives/alert";
25
+ function Alert(_a) {
26
+ var title = _a.title, description = _a.description, children = _a.children, icon = _a.icon, titleProps = _a.titleProps, descriptionProps = _a.descriptionProps, props = __rest(_a, ["title", "description", "children", "icon", "titleProps", "descriptionProps"]);
27
+ var hasPreset = title || description;
28
+ return (_jsx(PrimitiveAlert, __assign({ icon: icon }, props, { children: hasPreset ? (_jsxs(_Fragment, { children: [title ? _jsx(AlertTitle, __assign({}, titleProps, { children: title })) : null, description ? (_jsx(AlertDescription, __assign({}, descriptionProps, { children: description }))) : null] })) : (children) })));
29
+ }
30
+ export { Alert, AlertDescription, AlertTitle };
31
+ export * from "../primitives/alert";
@@ -0,0 +1,2 @@
1
+ export * from "../primitives/aspect-ratio";
2
+ //# sourceMappingURL=aspect-ratio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/aspect-ratio.tsx"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "../primitives/aspect-ratio";
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { Avatar as PrimitiveAvatar, AvatarFallback, AvatarImage } from "../primitives/avatar";
3
+ import { ImageSourcePropType } from "react-native";
4
+ type AvatarProps = React.ComponentProps<typeof PrimitiveAvatar> & {
5
+ source?: ImageSourcePropType;
6
+ alt?: string;
7
+ fallback?: React.ReactNode;
8
+ imageProps?: React.ComponentProps<typeof AvatarImage>;
9
+ fallbackProps?: React.ComponentProps<typeof AvatarFallback>;
10
+ };
11
+ declare function Avatar({ source, alt, fallback, imageProps, fallbackProps, children, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
12
+ export { Avatar, AvatarFallback, AvatarImage };
13
+ export * from "../primitives/avatar";
14
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,MAAM,IAAI,eAAe,EACzB,cAAc,EACd,WAAW,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAe,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEhE,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,GAAG;IACjE,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;CAC5D,CAAC;AAEF,iBAAS,MAAM,CAAC,EACf,MAAM,EACN,GAAG,EACH,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,WAAW,2CAeb;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC;AAC/C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,33 @@
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 { Avatar as PrimitiveAvatar, AvatarFallback, AvatarImage, } from "../primitives/avatar";
25
+ function Avatar(_a) {
26
+ var source = _a.source, alt = _a.alt, fallback = _a.fallback, imageProps = _a.imageProps, fallbackProps = _a.fallbackProps, children = _a.children, props = __rest(_a, ["source", "alt", "fallback", "imageProps", "fallbackProps", "children"]);
27
+ if (children) {
28
+ return (_jsx(PrimitiveAvatar, __assign({ alt: alt }, props, { children: children })));
29
+ }
30
+ return (_jsxs(PrimitiveAvatar, __assign({ alt: alt }, props, { children: [_jsx(AvatarImage, __assign({ source: source }, imageProps)), _jsx(AvatarFallback, __assign({}, fallbackProps, { children: fallback }))] })));
31
+ }
32
+ export { Avatar, AvatarFallback, AvatarImage };
33
+ export * from "../primitives/avatar";
@@ -0,0 +1,2 @@
1
+ export * from "../primitives/badge";
2
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "../primitives/badge";
@@ -0,0 +1,2 @@
1
+ export * from "../primitives/button";
2
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/button.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "../primitives/button";
@@ -0,0 +1,2 @@
1
+ export * from "../primitives/calendar";
2
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "../primitives/calendar";
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import { Card as PrimitiveCard, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../primitives/card";
3
+ type CardProps = React.ComponentProps<typeof PrimitiveCard> & {
4
+ title?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ content?: React.ReactNode;
7
+ footer?: React.ReactNode;
8
+ headerProps?: React.ComponentProps<typeof CardHeader>;
9
+ titleProps?: React.ComponentProps<typeof CardTitle>;
10
+ descriptionProps?: React.ComponentProps<typeof CardDescription>;
11
+ contentProps?: React.ComponentProps<typeof CardContent>;
12
+ footerProps?: React.ComponentProps<typeof CardFooter>;
13
+ };
14
+ declare function Card({ title, description, content, footer, headerProps, titleProps, descriptionProps, contentProps, footerProps, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
15
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
16
+ export * from "../primitives/card";
17
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,IAAI,IAAI,aAAa,EACrB,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,MAAM,oBAAoB,CAAC;AAE5B,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;IAChE,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;IACxD,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;CACtD,CAAC;AAEF,iBAAS,IAAI,CAAC,EACb,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,SAAS,2CAqBX;AAED,OAAO,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACT,CAAC;AACF,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,33 @@
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 { Card as PrimitiveCard, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "../primitives/card";
25
+ function Card(_a) {
26
+ var title = _a.title, description = _a.description, content = _a.content, footer = _a.footer, headerProps = _a.headerProps, titleProps = _a.titleProps, descriptionProps = _a.descriptionProps, contentProps = _a.contentProps, footerProps = _a.footerProps, children = _a.children, props = __rest(_a, ["title", "description", "content", "footer", "headerProps", "titleProps", "descriptionProps", "contentProps", "footerProps", "children"]);
27
+ if (children) {
28
+ return _jsx(PrimitiveCard, __assign({}, props, { children: children }));
29
+ }
30
+ return (_jsxs(PrimitiveCard, __assign({}, props, { children: [(title || description) && (_jsxs(CardHeader, __assign({}, headerProps, { children: [title && _jsx(CardTitle, __assign({}, titleProps, { children: title })), description && (_jsx(CardDescription, __assign({}, descriptionProps, { children: description })))] }))), content && _jsx(CardContent, __assign({}, contentProps, { children: content })), footer && _jsx(CardFooter, __assign({}, footerProps, { children: footer }))] })));
31
+ }
32
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
33
+ export * from "../primitives/card";
@@ -0,0 +1,2 @@
1
+ export * from "../primitives/checkbox";
2
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "../primitives/checkbox";
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { Collapsible as PrimitiveCollapsible, CollapsibleContent, CollapsibleTrigger } from "../primitives/collapsible";
3
+ type CollapsibleProps = React.ComponentProps<typeof PrimitiveCollapsible> & {
4
+ trigger?: React.ReactNode;
5
+ content?: React.ReactNode;
6
+ triggerProps?: React.ComponentProps<typeof CollapsibleTrigger>;
7
+ contentProps?: React.ComponentProps<typeof CollapsibleContent>;
8
+ };
9
+ declare function Collapsible({ trigger, content, triggerProps, contentProps, children, ...props }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
10
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
11
+ export * from "../primitives/collapsible";
12
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,WAAW,IAAI,oBAAoB,EACnC,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,2BAA2B,CAAC;AAEnC,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC3E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAC/D,CAAC;AAEF,iBAAS,WAAW,CAAC,EACpB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,gBAAgB,2CAWlB;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;AAC/D,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,33 @@
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 { Collapsible as PrimitiveCollapsible, CollapsibleContent, CollapsibleTrigger, } from "../primitives/collapsible";
25
+ function Collapsible(_a) {
26
+ var trigger = _a.trigger, content = _a.content, triggerProps = _a.triggerProps, contentProps = _a.contentProps, children = _a.children, props = __rest(_a, ["trigger", "content", "triggerProps", "contentProps", "children"]);
27
+ if (children) {
28
+ return _jsx(PrimitiveCollapsible, __assign({}, props, { children: children }));
29
+ }
30
+ return (_jsxs(PrimitiveCollapsible, __assign({}, props, { children: [_jsx(CollapsibleTrigger, __assign({}, triggerProps, { children: trigger })), _jsx(CollapsibleContent, __assign({}, contentProps, { children: content }))] })));
31
+ }
32
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
33
+ export * from "../primitives/collapsible";
@@ -0,0 +1,59 @@
1
+ import * as React from "react";
2
+ import { ContextMenu as PrimitiveContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "../primitives/context-menu";
3
+ type ContextMenuBaseItem = {
4
+ key?: React.Key;
5
+ };
6
+ type ContextMenuActionItem = ContextMenuBaseItem & {
7
+ type?: "item";
8
+ label: React.ReactNode;
9
+ shortcut?: React.ReactNode;
10
+ itemProps?: React.ComponentProps<typeof ContextMenuItem>;
11
+ shortcutProps?: React.ComponentProps<typeof ContextMenuShortcut>;
12
+ };
13
+ type ContextMenuCheckbox = ContextMenuBaseItem & {
14
+ type: "checkbox";
15
+ label: React.ReactNode;
16
+ shortcut?: React.ReactNode;
17
+ itemProps?: React.ComponentProps<typeof ContextMenuCheckboxItem>;
18
+ shortcutProps?: React.ComponentProps<typeof ContextMenuShortcut>;
19
+ };
20
+ type ContextMenuRadioGroupData = ContextMenuBaseItem & {
21
+ type: "radio-group";
22
+ value?: string;
23
+ onValueChange?: (value: string) => void;
24
+ items: Array<ContextMenuBaseItem & {
25
+ value: string;
26
+ label: React.ReactNode;
27
+ shortcut?: React.ReactNode;
28
+ itemProps?: React.ComponentProps<typeof ContextMenuRadioItem>;
29
+ shortcutProps?: React.ComponentProps<typeof ContextMenuShortcut>;
30
+ }>;
31
+ groupProps?: Omit<React.ComponentProps<typeof ContextMenuRadioGroup>, "value" | "onValueChange">;
32
+ };
33
+ type ContextMenuLabelData = ContextMenuBaseItem & {
34
+ type: "label";
35
+ label: React.ReactNode;
36
+ labelProps?: React.ComponentProps<typeof ContextMenuLabel>;
37
+ };
38
+ type ContextMenuSeparatorData = ContextMenuBaseItem & {
39
+ type: "separator";
40
+ separatorProps?: React.ComponentProps<typeof ContextMenuSeparator>;
41
+ };
42
+ type ContextMenuSubData = ContextMenuBaseItem & {
43
+ type: "sub";
44
+ trigger: React.ReactNode;
45
+ items: ContextMenuItemData[];
46
+ triggerProps?: React.ComponentProps<typeof ContextMenuSubTrigger>;
47
+ contentProps?: React.ComponentProps<typeof ContextMenuSubContent>;
48
+ };
49
+ type ContextMenuItemData = ContextMenuActionItem | ContextMenuCheckbox | ContextMenuRadioGroupData | ContextMenuLabelData | ContextMenuSeparatorData | ContextMenuSubData;
50
+ type ContextMenuProps = React.ComponentProps<typeof PrimitiveContextMenu> & {
51
+ items?: ContextMenuItemData[];
52
+ trigger?: React.ReactNode;
53
+ triggerProps?: React.ComponentProps<typeof ContextMenuTrigger>;
54
+ contentProps?: React.ComponentProps<typeof ContextMenuContent>;
55
+ };
56
+ declare function ContextMenu({ items, trigger, triggerProps, contentProps, children, ...props }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
57
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
58
+ export * from "../primitives/context-menu";
59
+ //# sourceMappingURL=context-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../../$/components/ui/context-menu.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,66 @@
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 { ContextMenu as PrimitiveContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "../primitives/context-menu";
25
+ import { Text } from "./text";
26
+ var renderText = function (node) {
27
+ if (typeof node === "string" || typeof node === "number") {
28
+ return _jsx(Text, { children: node });
29
+ }
30
+ return node;
31
+ };
32
+ function renderContextMenuItems(items) {
33
+ return items.map(function (item, index) {
34
+ var _a;
35
+ var key = (_a = item.key) !== null && _a !== void 0 ? _a : index;
36
+ switch (item.type) {
37
+ case "checkbox":
38
+ return (_jsxs(ContextMenuCheckboxItem, __assign({}, item.itemProps, { children: [renderText(item.label), item.shortcut && (_jsx(ContextMenuShortcut, __assign({}, item.shortcutProps, { children: renderText(item.shortcut) })))] }), key));
39
+ case "radio-group":
40
+ return (_jsx(ContextMenuRadioGroup, __assign({ value: item.value, onValueChange: item.onValueChange }, item.groupProps, { children: item.items.map(function (radioItem, radioIndex) {
41
+ var _a;
42
+ return (_jsxs(ContextMenuRadioItem, __assign({ value: radioItem.value }, radioItem.itemProps, { children: [renderText(radioItem.label), radioItem.shortcut && (_jsx(ContextMenuShortcut, __assign({}, radioItem.shortcutProps, { children: renderText(radioItem.shortcut) })))] }), (_a = radioItem.key) !== null && _a !== void 0 ? _a : radioIndex));
43
+ }) }), key));
44
+ case "label":
45
+ return (_jsx(ContextMenuLabel, __assign({}, item.labelProps, { children: renderText(item.label) }), key));
46
+ case "separator":
47
+ return _jsx(ContextMenuSeparator, __assign({}, item.separatorProps), key);
48
+ case "sub":
49
+ return (_jsxs(ContextMenuSub, { children: [_jsx(ContextMenuSubTrigger, __assign({}, item.triggerProps, { children: renderText(item.trigger) })), _jsx(ContextMenuSubContent, __assign({}, item.contentProps, { children: renderContextMenuItems(item.items) }))] }, key));
50
+ case "item":
51
+ default: {
52
+ var actionItem = item;
53
+ return (_jsxs(ContextMenuItem, __assign({}, actionItem.itemProps, { children: [renderText(actionItem.label), actionItem.shortcut && (_jsx(ContextMenuShortcut, __assign({}, actionItem.shortcutProps, { children: renderText(actionItem.shortcut) })))] }), key));
54
+ }
55
+ }
56
+ });
57
+ }
58
+ function ContextMenu(_a) {
59
+ var items = _a.items, trigger = _a.trigger, triggerProps = _a.triggerProps, contentProps = _a.contentProps, children = _a.children, props = __rest(_a, ["items", "trigger", "triggerProps", "contentProps", "children"]);
60
+ if (!items) {
61
+ return (_jsxs(PrimitiveContextMenu, __assign({}, props, { children: [trigger && (_jsx(ContextMenuTrigger, __assign({}, triggerProps, { children: trigger }))), children] })));
62
+ }
63
+ return (_jsxs(PrimitiveContextMenu, __assign({}, props, { children: [_jsx(ContextMenuTrigger, __assign({}, triggerProps, { children: trigger })), _jsx(ContextMenuContent, __assign({}, contentProps, { children: renderContextMenuItems(items) }))] })));
64
+ }
65
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
66
+ export * from "../primitives/context-menu";