@lssm-tech/lib.ui-kit-web 3.13.4 → 9.0.2

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 (390) hide show
  1. package/README.md +112 -23
  2. package/package.json +1341 -843
  3. package/dist/browser/index.js +0 -1
  4. package/dist/browser/ui/accordion.js +0 -1
  5. package/dist/browser/ui/alert-dialog.js +0 -1
  6. package/dist/browser/ui/alert.js +0 -1
  7. package/dist/browser/ui/aspect-ratio.js +0 -1
  8. package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +0 -1
  9. package/dist/browser/ui/atoms/FilterSelect/index.js +0 -1
  10. package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
  11. package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -1
  12. package/dist/browser/ui/atoms/LoadingSpinner/index.js +0 -1
  13. package/dist/browser/ui/atoms/Pagination/Pagination.js +0 -1
  14. package/dist/browser/ui/atoms/Pagination/index.js +0 -1
  15. package/dist/browser/ui/atoms/Pagination/types.js +0 -0
  16. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +0 -1
  17. package/dist/browser/ui/atoms/SearchInput/index.js +0 -1
  18. package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
  19. package/dist/browser/ui/avatar.js +0 -1
  20. package/dist/browser/ui/badge.js +0 -1
  21. package/dist/browser/ui/breadcrumb.js +0 -1
  22. package/dist/browser/ui/button-group.js +0 -1
  23. package/dist/browser/ui/button.js +0 -1
  24. package/dist/browser/ui/calendar.js +0 -1
  25. package/dist/browser/ui/card.js +0 -1
  26. package/dist/browser/ui/carousel.js +0 -1
  27. package/dist/browser/ui/chart.js +0 -1
  28. package/dist/browser/ui/checkbox.js +0 -1
  29. package/dist/browser/ui/collapsible.js +0 -1
  30. package/dist/browser/ui/combobox.js +0 -1
  31. package/dist/browser/ui/command.js +0 -1
  32. package/dist/browser/ui/confirm-dialog.js +0 -1
  33. package/dist/browser/ui/context-menu.js +0 -1
  34. package/dist/browser/ui/contracts.typecheck.js +0 -0
  35. package/dist/browser/ui/cta.js +0 -1
  36. package/dist/browser/ui/data-table.js +0 -1
  37. package/dist/browser/ui/data-table.parts.js +0 -1
  38. package/dist/browser/ui/date-picker.js +0 -1
  39. package/dist/browser/ui/date-range-picker.js +0 -1
  40. package/dist/browser/ui/datetime-picker.js +0 -1
  41. package/dist/browser/ui/dialog.js +0 -1
  42. package/dist/browser/ui/direction.js +0 -1
  43. package/dist/browser/ui/drawer.js +0 -1
  44. package/dist/browser/ui/dropdown-menu.js +0 -1
  45. package/dist/browser/ui/empty-state.js +0 -1
  46. package/dist/browser/ui/empty.js +0 -1
  47. package/dist/browser/ui/field.js +0 -1
  48. package/dist/browser/ui/focus-on-route-change.js +0 -1
  49. package/dist/browser/ui/form.js +0 -1
  50. package/dist/browser/ui/hover-card.js +0 -1
  51. package/dist/browser/ui/input-group.js +0 -1
  52. package/dist/browser/ui/input-otp.js +0 -1
  53. package/dist/browser/ui/input-password.js +0 -1
  54. package/dist/browser/ui/input.js +0 -1
  55. package/dist/browser/ui/item.js +0 -1
  56. package/dist/browser/ui/kbd.js +0 -1
  57. package/dist/browser/ui/label.js +0 -1
  58. package/dist/browser/ui/link.js +0 -1
  59. package/dist/browser/ui/list.js +0 -1
  60. package/dist/browser/ui/live-region.js +0 -1
  61. package/dist/browser/ui/loading-button.js +0 -1
  62. package/dist/browser/ui/map/MapBase.js +0 -1
  63. package/dist/browser/ui/map/MapGeoJsonOverlay.js +0 -1
  64. package/dist/browser/ui/map/MapHeatmapH3.js +0 -1
  65. package/dist/browser/ui/map/MapMarkers.js +0 -1
  66. package/dist/browser/ui/map/index.js +0 -1
  67. package/dist/browser/ui/marketing/FeatureGrid.js +0 -1
  68. package/dist/browser/ui/marketing/Hero.js +0 -1
  69. package/dist/browser/ui/marketing/PricingTable.js +0 -1
  70. package/dist/browser/ui/marketing/index.js +0 -1
  71. package/dist/browser/ui/menubar.js +0 -1
  72. package/dist/browser/ui/molecules/Autocomplete/index.js +0 -1
  73. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -1
  74. package/dist/browser/ui/molecules/SearchAndFilter/index.js +0 -1
  75. package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
  76. package/dist/browser/ui/molecules/SkeletonList.js +0 -1
  77. package/dist/browser/ui/native-select.js +0 -1
  78. package/dist/browser/ui/nav-layout.js +0 -1
  79. package/dist/browser/ui/navigation-menu.js +0 -1
  80. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
  81. package/dist/browser/ui/organisms/ErrorBoundary/index.js +0 -1
  82. package/dist/browser/ui/organisms/ListPage/ListPage.js +0 -1
  83. package/dist/browser/ui/organisms/ListPage/index.js +0 -1
  84. package/dist/browser/ui/organisms/ListPage/types.js +0 -0
  85. package/dist/browser/ui/page-header.js +0 -1
  86. package/dist/browser/ui/pagination.js +0 -1
  87. package/dist/browser/ui/popover.js +0 -1
  88. package/dist/browser/ui/progress.js +0 -1
  89. package/dist/browser/ui/radio-group.js +0 -1
  90. package/dist/browser/ui/resizable.js +0 -1
  91. package/dist/browser/ui/route-announcer.js +0 -1
  92. package/dist/browser/ui/scroll-area.js +0 -1
  93. package/dist/browser/ui/section.js +0 -1
  94. package/dist/browser/ui/select.js +0 -1
  95. package/dist/browser/ui/separator.js +0 -1
  96. package/dist/browser/ui/sheet.js +0 -1
  97. package/dist/browser/ui/sidebar.js +0 -1
  98. package/dist/browser/ui/skeleton.js +0 -1
  99. package/dist/browser/ui/skip-link.js +0 -1
  100. package/dist/browser/ui/slider.js +0 -1
  101. package/dist/browser/ui/sonner.js +0 -1
  102. package/dist/browser/ui/spinner.js +0 -1
  103. package/dist/browser/ui/stack.js +0 -1
  104. package/dist/browser/ui/stat-card-group.js +0 -1
  105. package/dist/browser/ui/stepper.js +0 -1
  106. package/dist/browser/ui/switch.js +0 -1
  107. package/dist/browser/ui/table.js +0 -1
  108. package/dist/browser/ui/tabs.js +0 -1
  109. package/dist/browser/ui/text.js +0 -1
  110. package/dist/browser/ui/textarea.js +0 -1
  111. package/dist/browser/ui/time-picker.js +0 -1
  112. package/dist/browser/ui/toast.js +0 -1
  113. package/dist/browser/ui/toaster.js +0 -1
  114. package/dist/browser/ui/toggle-group.js +0 -1
  115. package/dist/browser/ui/toggle.js +0 -1
  116. package/dist/browser/ui/tooltip.js +0 -1
  117. package/dist/browser/ui/typography.js +0 -1
  118. package/dist/browser/ui/use-media-query.js +0 -1
  119. package/dist/browser/ui/use-mobile.js +0 -1
  120. package/dist/browser/ui/use-reduced-motion.js +0 -1
  121. package/dist/browser/ui/use-toast.js +0 -1
  122. package/dist/browser/ui/useListState.js +0 -1
  123. package/dist/browser/ui/usecases/UseCaseCard.js +0 -1
  124. package/dist/browser/ui/usecases/UserStoryCard.js +0 -1
  125. package/dist/browser/ui/usecases/index.js +0 -1
  126. package/dist/browser/ui/utils.js +0 -1
  127. package/dist/browser/ui/visualization/Visualization.js +0 -1
  128. package/dist/browser/ui/visualization/Visualization.support.js +0 -1
  129. package/dist/browser/ui/visualization/index.js +0 -1
  130. package/dist/browser/ui/visually-hidden.js +0 -1
  131. package/dist/index.d.ts +0 -1
  132. package/dist/index.js +0 -2
  133. package/dist/ui/accordion.d.ts +0 -7
  134. package/dist/ui/accordion.js +0 -2
  135. package/dist/ui/alert-dialog.d.ts +0 -14
  136. package/dist/ui/alert-dialog.js +0 -2
  137. package/dist/ui/alert.d.ts +0 -9
  138. package/dist/ui/alert.js +0 -2
  139. package/dist/ui/aspect-ratio.d.ts +0 -3
  140. package/dist/ui/aspect-ratio.js +0 -2
  141. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -3
  142. package/dist/ui/atoms/FilterSelect/FilterSelect.js +0 -2
  143. package/dist/ui/atoms/FilterSelect/index.d.ts +0 -2
  144. package/dist/ui/atoms/FilterSelect/index.js +0 -2
  145. package/dist/ui/atoms/FilterSelect/types.d.ts +0 -5
  146. package/dist/ui/atoms/FilterSelect/types.js +0 -1
  147. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -19
  148. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -2
  149. package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
  150. package/dist/ui/atoms/LoadingSpinner/index.js +0 -2
  151. package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -3
  152. package/dist/ui/atoms/Pagination/Pagination.js +0 -2
  153. package/dist/ui/atoms/Pagination/index.d.ts +0 -2
  154. package/dist/ui/atoms/Pagination/index.js +0 -2
  155. package/dist/ui/atoms/Pagination/types.d.ts +0 -3
  156. package/dist/ui/atoms/Pagination/types.js +0 -1
  157. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -3
  158. package/dist/ui/atoms/SearchInput/SearchInput.js +0 -2
  159. package/dist/ui/atoms/SearchInput/index.d.ts +0 -2
  160. package/dist/ui/atoms/SearchInput/index.js +0 -2
  161. package/dist/ui/atoms/SearchInput/types.d.ts +0 -3
  162. package/dist/ui/atoms/SearchInput/types.js +0 -1
  163. package/dist/ui/avatar.d.ts +0 -6
  164. package/dist/ui/avatar.js +0 -2
  165. package/dist/ui/badge.d.ts +0 -9
  166. package/dist/ui/badge.js +0 -2
  167. package/dist/ui/breadcrumb.d.ts +0 -11
  168. package/dist/ui/breadcrumb.js +0 -2
  169. package/dist/ui/button-group.d.ts +0 -5
  170. package/dist/ui/button-group.js +0 -2
  171. package/dist/ui/button.d.ts +0 -17
  172. package/dist/ui/button.js +0 -2
  173. package/dist/ui/calendar.d.ts +0 -8
  174. package/dist/ui/calendar.js +0 -2
  175. package/dist/ui/card.d.ts +0 -9
  176. package/dist/ui/card.js +0 -2
  177. package/dist/ui/carousel.d.ts +0 -19
  178. package/dist/ui/carousel.js +0 -2
  179. package/dist/ui/chart.d.ts +0 -45
  180. package/dist/ui/chart.js +0 -2
  181. package/dist/ui/checkbox.d.ts +0 -4
  182. package/dist/ui/checkbox.js +0 -2
  183. package/dist/ui/collapsible.d.ts +0 -5
  184. package/dist/ui/collapsible.js +0 -2
  185. package/dist/ui/combobox.d.ts +0 -32
  186. package/dist/ui/combobox.js +0 -2
  187. package/dist/ui/combobox.test.d.ts +0 -1
  188. package/dist/ui/command.d.ts +0 -18
  189. package/dist/ui/command.js +0 -2
  190. package/dist/ui/confirm-dialog.d.ts +0 -14
  191. package/dist/ui/confirm-dialog.js +0 -2
  192. package/dist/ui/context-menu.d.ts +0 -31
  193. package/dist/ui/context-menu.js +0 -2
  194. package/dist/ui/contracts.typecheck.d.ts +0 -1
  195. package/dist/ui/contracts.typecheck.js +0 -1
  196. package/dist/ui/cta.d.ts +0 -12
  197. package/dist/ui/cta.js +0 -2
  198. package/dist/ui/data-table.d.ts +0 -8
  199. package/dist/ui/data-table.js +0 -2
  200. package/dist/ui/data-table.parts.d.ts +0 -19
  201. package/dist/ui/data-table.parts.js +0 -2
  202. package/dist/ui/data-table.test.d.ts +0 -1
  203. package/dist/ui/date-picker.d.ts +0 -5
  204. package/dist/ui/date-picker.js +0 -2
  205. package/dist/ui/date-range-picker.d.ts +0 -6
  206. package/dist/ui/date-range-picker.js +0 -2
  207. package/dist/ui/datetime-picker.d.ts +0 -6
  208. package/dist/ui/datetime-picker.js +0 -2
  209. package/dist/ui/dialog.d.ts +0 -15
  210. package/dist/ui/dialog.js +0 -2
  211. package/dist/ui/direction.d.ts +0 -9
  212. package/dist/ui/direction.js +0 -2
  213. package/dist/ui/drawer.d.ts +0 -13
  214. package/dist/ui/drawer.js +0 -2
  215. package/dist/ui/dropdown-menu.d.ts +0 -25
  216. package/dist/ui/dropdown-menu.js +0 -2
  217. package/dist/ui/empty-state.d.ts +0 -9
  218. package/dist/ui/empty-state.js +0 -2
  219. package/dist/ui/empty.d.ts +0 -12
  220. package/dist/ui/empty.js +0 -2
  221. package/dist/ui/field.d.ts +0 -20
  222. package/dist/ui/field.js +0 -2
  223. package/dist/ui/focus-on-route-change.d.ts +0 -3
  224. package/dist/ui/focus-on-route-change.js +0 -2
  225. package/dist/ui/form.d.ts +0 -26
  226. package/dist/ui/form.js +0 -2
  227. package/dist/ui/hover-card.d.ts +0 -6
  228. package/dist/ui/hover-card.js +0 -2
  229. package/dist/ui/input-group.d.ts +0 -18
  230. package/dist/ui/input-group.js +0 -2
  231. package/dist/ui/input-otp.d.ts +0 -16
  232. package/dist/ui/input-otp.js +0 -2
  233. package/dist/ui/input-password.d.ts +0 -11
  234. package/dist/ui/input-password.js +0 -2
  235. package/dist/ui/input-password.test.d.ts +0 -1
  236. package/dist/ui/input.d.ts +0 -7
  237. package/dist/ui/input.js +0 -2
  238. package/dist/ui/item.d.ts +0 -23
  239. package/dist/ui/item.js +0 -2
  240. package/dist/ui/kbd.d.ts +0 -3
  241. package/dist/ui/kbd.js +0 -2
  242. package/dist/ui/label.d.ts +0 -4
  243. package/dist/ui/label.js +0 -2
  244. package/dist/ui/link.d.ts +0 -6
  245. package/dist/ui/link.js +0 -2
  246. package/dist/ui/list.d.ts +0 -20
  247. package/dist/ui/list.js +0 -2
  248. package/dist/ui/live-region.d.ts +0 -10
  249. package/dist/ui/live-region.js +0 -2
  250. package/dist/ui/loading-button.d.ts +0 -9
  251. package/dist/ui/loading-button.js +0 -2
  252. package/dist/ui/map/MapBase.d.ts +0 -22
  253. package/dist/ui/map/MapBase.js +0 -2
  254. package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -10
  255. package/dist/ui/map/MapGeoJsonOverlay.js +0 -2
  256. package/dist/ui/map/MapHeatmapH3.d.ts +0 -12
  257. package/dist/ui/map/MapHeatmapH3.js +0 -2
  258. package/dist/ui/map/MapMarkers.d.ts +0 -12
  259. package/dist/ui/map/MapMarkers.js +0 -2
  260. package/dist/ui/map/index.d.ts +0 -4
  261. package/dist/ui/map/index.js +0 -2
  262. package/dist/ui/marketing/FeatureGrid.d.ts +0 -4
  263. package/dist/ui/marketing/FeatureGrid.js +0 -2
  264. package/dist/ui/marketing/Hero.d.ts +0 -16
  265. package/dist/ui/marketing/Hero.js +0 -2
  266. package/dist/ui/marketing/PricingTable.d.ts +0 -4
  267. package/dist/ui/marketing/PricingTable.js +0 -2
  268. package/dist/ui/marketing/index.d.ts +0 -3
  269. package/dist/ui/marketing/index.js +0 -2
  270. package/dist/ui/menubar.d.ts +0 -26
  271. package/dist/ui/menubar.js +0 -2
  272. package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
  273. package/dist/ui/molecules/Autocomplete/index.js +0 -2
  274. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -3
  275. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
  276. package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -2
  277. package/dist/ui/molecules/SearchAndFilter/index.js +0 -2
  278. package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -3
  279. package/dist/ui/molecules/SearchAndFilter/types.js +0 -1
  280. package/dist/ui/molecules/SkeletonList.d.ts +0 -7
  281. package/dist/ui/molecules/SkeletonList.js +0 -2
  282. package/dist/ui/native-select.d.ts +0 -4
  283. package/dist/ui/native-select.js +0 -2
  284. package/dist/ui/nav-layout.d.ts +0 -47
  285. package/dist/ui/nav-layout.js +0 -2
  286. package/dist/ui/navigation-menu.d.ts +0 -14
  287. package/dist/ui/navigation-menu.js +0 -2
  288. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -25
  289. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -2
  290. package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
  291. package/dist/ui/organisms/ErrorBoundary/index.js +0 -2
  292. package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -2
  293. package/dist/ui/organisms/ListPage/ListPage.js +0 -2
  294. package/dist/ui/organisms/ListPage/index.d.ts +0 -2
  295. package/dist/ui/organisms/ListPage/index.js +0 -2
  296. package/dist/ui/organisms/ListPage/types.d.ts +0 -37
  297. package/dist/ui/organisms/ListPage/types.js +0 -1
  298. package/dist/ui/page-header.d.ts +0 -9
  299. package/dist/ui/page-header.js +0 -2
  300. package/dist/ui/pagination.d.ts +0 -17
  301. package/dist/ui/pagination.js +0 -2
  302. package/dist/ui/popover.d.ts +0 -7
  303. package/dist/ui/popover.js +0 -2
  304. package/dist/ui/progress.d.ts +0 -4
  305. package/dist/ui/progress.js +0 -2
  306. package/dist/ui/radio-group.d.ts +0 -5
  307. package/dist/ui/radio-group.js +0 -2
  308. package/dist/ui/resizable.d.ts +0 -8
  309. package/dist/ui/resizable.js +0 -2
  310. package/dist/ui/route-announcer.d.ts +0 -3
  311. package/dist/ui/route-announcer.js +0 -2
  312. package/dist/ui/scroll-area.d.ts +0 -5
  313. package/dist/ui/scroll-area.js +0 -2
  314. package/dist/ui/section.d.ts +0 -15
  315. package/dist/ui/section.js +0 -2
  316. package/dist/ui/select.d.ts +0 -15
  317. package/dist/ui/select.js +0 -2
  318. package/dist/ui/select.test.d.ts +0 -1
  319. package/dist/ui/separator.d.ts +0 -4
  320. package/dist/ui/separator.js +0 -2
  321. package/dist/ui/sheet.d.ts +0 -13
  322. package/dist/ui/sheet.js +0 -2
  323. package/dist/ui/sidebar.d.ts +0 -69
  324. package/dist/ui/sidebar.js +0 -2
  325. package/dist/ui/skeleton.d.ts +0 -3
  326. package/dist/ui/skeleton.js +0 -2
  327. package/dist/ui/skip-link.d.ts +0 -7
  328. package/dist/ui/skip-link.js +0 -2
  329. package/dist/ui/slider.d.ts +0 -4
  330. package/dist/ui/slider.js +0 -2
  331. package/dist/ui/sonner.d.ts +0 -3
  332. package/dist/ui/sonner.js +0 -2
  333. package/dist/ui/spinner.d.ts +0 -5
  334. package/dist/ui/spinner.js +0 -2
  335. package/dist/ui/stack.d.ts +0 -35
  336. package/dist/ui/stack.js +0 -2
  337. package/dist/ui/stat-card-group.d.ts +0 -10
  338. package/dist/ui/stat-card-group.js +0 -2
  339. package/dist/ui/stepper.d.ts +0 -10
  340. package/dist/ui/stepper.js +0 -2
  341. package/dist/ui/switch.d.ts +0 -6
  342. package/dist/ui/switch.js +0 -2
  343. package/dist/ui/table.d.ts +0 -10
  344. package/dist/ui/table.js +0 -2
  345. package/dist/ui/tabs.d.ts +0 -7
  346. package/dist/ui/tabs.js +0 -2
  347. package/dist/ui/text.d.ts +0 -6
  348. package/dist/ui/text.js +0 -2
  349. package/dist/ui/textarea.d.ts +0 -5
  350. package/dist/ui/textarea.js +0 -2
  351. package/dist/ui/time-picker.d.ts +0 -4
  352. package/dist/ui/time-picker.js +0 -2
  353. package/dist/ui/toast.d.ts +0 -28
  354. package/dist/ui/toast.js +0 -2
  355. package/dist/ui/toaster.d.ts +0 -1
  356. package/dist/ui/toaster.js +0 -2
  357. package/dist/ui/toggle-group.d.ts +0 -7
  358. package/dist/ui/toggle-group.js +0 -2
  359. package/dist/ui/toggle.d.ts +0 -9
  360. package/dist/ui/toggle.js +0 -2
  361. package/dist/ui/tooltip.d.ts +0 -7
  362. package/dist/ui/tooltip.js +0 -2
  363. package/dist/ui/typography.d.ts +0 -16
  364. package/dist/ui/typography.js +0 -2
  365. package/dist/ui/use-media-query.d.ts +0 -1
  366. package/dist/ui/use-media-query.js +0 -2
  367. package/dist/ui/use-mobile.d.ts +0 -1
  368. package/dist/ui/use-mobile.js +0 -2
  369. package/dist/ui/use-reduced-motion.d.ts +0 -1
  370. package/dist/ui/use-reduced-motion.js +0 -2
  371. package/dist/ui/use-toast.d.ts +0 -44
  372. package/dist/ui/use-toast.js +0 -2
  373. package/dist/ui/useListState.d.ts +0 -6
  374. package/dist/ui/useListState.js +0 -2
  375. package/dist/ui/usecases/UseCaseCard.d.ts +0 -7
  376. package/dist/ui/usecases/UseCaseCard.js +0 -2
  377. package/dist/ui/usecases/UserStoryCard.d.ts +0 -5
  378. package/dist/ui/usecases/UserStoryCard.js +0 -2
  379. package/dist/ui/usecases/index.d.ts +0 -2
  380. package/dist/ui/usecases/index.js +0 -2
  381. package/dist/ui/utils.d.ts +0 -2
  382. package/dist/ui/utils.js +0 -2
  383. package/dist/ui/visualization/Visualization.d.ts +0 -7
  384. package/dist/ui/visualization/Visualization.js +0 -2
  385. package/dist/ui/visualization/Visualization.support.d.ts +0 -15
  386. package/dist/ui/visualization/Visualization.support.js +0 -2
  387. package/dist/ui/visualization/index.d.ts +0 -1
  388. package/dist/ui/visualization/index.js +0 -2
  389. package/dist/ui/visually-hidden.d.ts +0 -8
  390. package/dist/ui/visually-hidden.js +0 -2
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { PaginationProps } from './types';
3
- export declare const Pagination: React.FC<PaginationProps>;
@@ -1,2 +0,0 @@
1
- // @bun
2
- var S=import.meta.require;import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import{Slot as K}from"@radix-ui/react-slot";import{cva as O}from"class-variance-authority";import*as t from"react";import{jsx as V}from"react/jsx-runtime";var Q=O("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),k=t.forwardRef(({className:m,variant:d,size:n,asChild:y=!1,...u},h)=>{return V(y?K:"button",{ref:h,"data-slot":"button",className:J(Q({variant:d,size:n,className:m})),...u})});k.displayName="Button";import{cn as N}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-select";import{CheckIcon as W,ChevronDownIcon as z,ChevronUpIcon as X}from"lucide-react";import{jsx as i,jsxs as A}from"react/jsx-runtime";function C({...m}){return i(f.Root,{"data-slot":"select",...m})}function j({...m}){return i(f.Group,{"data-slot":"select-group",...m})}function F({...m}){return i(f.Value,{"data-slot":"select-value",...m})}function G({className:m,size:d="default",children:n,...y}){return A(f.Trigger,{"data-slot":"select-trigger","data-size":d,className:N("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",m),...y,children:[n,i(f.Icon,{asChild:!0,children:i(z,{className:"size-4 opacity-50"})})]})}function L({className:m,children:d,position:n="popper",...y}){return i(f.Portal,{children:A(f.Content,{"data-slot":"select-content",className:N("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",m),position:n,...y,children:[i(Y,{}),i(f.Viewport,{className:N("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:d}),i(Z,{})]})})}function mm({className:m,...d}){return i(f.Label,{"data-slot":"select-label",className:N("px-2 py-1.5 text-muted-foreground text-xs",m),...d})}function M({className:m,children:d,...n}){return A(f.Item,{"data-slot":"select-item",className:N("relative flex w-full cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",m),...n,children:[i("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:i(f.ItemIndicator,{children:i(W,{className:"size-4"})})}),i(f.ItemText,{children:d})]})}function fm({className:m,...d}){return i(f.Separator,{"data-slot":"select-separator",className:N("pointer-events-none -mx-1 my-1 h-px bg-border",m),...d})}function Y({className:m,...d}){return i(f.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:N("flex cursor-default items-center justify-center py-1",m),...d,children:i(X,{className:"size-4"})})}function Z({className:m,...d}){return i(f.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:N("flex cursor-default items-center justify-center py-1",m),...d,children:i(z,{className:"size-4"})})}import{ChevronLeft as I,ChevronRight as D,ChevronsLeft as U,ChevronsRight as r}from"lucide-react";import{jsx as e,jsxs as w}from"react/jsx-runtime";var ym=({currentPage:m,totalPages:d,totalItems:n,itemsPerPage:y,onPageChange:u,onItemsPerPageChange:h,disabled:b=!1,className:T="",showItemsPerPage:_=!0,itemsPerPageOptions:q=[10,25,50,100]})=>{let B=(m-1)*y+1,E=Math.min(m*y,n),l=m>1&&!b,$=m<d&&!b,H=()=>{if(d<=7)return Array.from({length:d},(v,R)=>R+1);if(m<=3)return[1,2,3,4,5,-1,d];if(m>=d-2)return[1,-1,d-4,d-3,d-2,d-1,d];return[1,-1,m-1,m,m+1,-1,d]};if(d===0)return null;return w("div",{className:`flex flex-col items-center justify-between gap-4 sm:flex-row ${T}`,children:[w("div",{className:"order-2 text-base text-muted-foreground sm:order-1",children:["Affichage de ",B," \xE0 ",E," sur ",n," r\xE9sultats"]}),w("div",{className:"order-1 flex items-center gap-2 sm:order-2",children:[w(k,{variant:"outline",size:"sm",onClick:()=>u(1),disabled:!l,className:"hidden h-8 w-8 p-0 sm:flex",children:[e(U,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Premi\xE8re page"})]}),w(k,{variant:"outline",size:"sm",onClick:()=>u(m-1),disabled:!l,className:"h-8 w-8 p-0",children:[e(I,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Page pr\xE9c\xE9dente"})]}),e("div",{className:"flex items-center gap-1",children:H().map((v,R)=>{if(v===-1)return e("span",{className:"px-2 py-1 text-muted-foreground",children:"..."},`ellipsis-${R}`);return e(k,{variant:v===m?"default":"outline",size:"sm",onClick:()=>u(v),disabled:b,className:"h-8 min-w-8 px-2",children:v},v)})}),w(k,{variant:"outline",size:"sm",onClick:()=>u(m+1),disabled:!$,className:"h-8 w-8 p-0",children:[e(D,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Page suivante"})]}),w(k,{variant:"outline",size:"sm",onClick:()=>u(d),disabled:!$,className:"hidden h-8 w-8 p-0 sm:flex",children:[e(r,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Derni\xE8re page"})]})]}),_&&h&&w("div",{className:"order-3 flex items-center gap-2 text-base",children:[e("span",{className:"text-muted-foreground",children:"Afficher:"}),w(C,{value:y.toString(),onValueChange:(v)=>h(parseInt(v)),disabled:b,children:[e(G,{className:"h-8 w-16",children:e(F,{})}),e(L,{className:"bg-background",children:q.map((v)=>e(M,{value:v.toString(),children:v},v))})]})]})]})};export{ym as Pagination};
@@ -1,2 +0,0 @@
1
- export { Pagination } from './Pagination';
2
- export type { PaginationProps } from './types';
@@ -1,2 +0,0 @@
1
- // @bun
2
- var S=import.meta.require;import{cn as H}from"@contractspec/lib.ui-kit-core/utils";import{Slot as J}from"@radix-ui/react-slot";import{cva as K}from"class-variance-authority";import*as $ from"react";import{jsx as Q}from"react/jsx-runtime";var O=K("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),u=$.forwardRef(({className:m,variant:i,size:n,asChild:y=!1,...t},b)=>{return Q(y?J:"button",{ref:b,"data-slot":"button",className:H(O({variant:i,size:n,className:m})),...t})});u.displayName="Button";import{cn as N}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-select";import{CheckIcon as V,ChevronDownIcon as r,ChevronUpIcon as W}from"lucide-react";import{jsx as d,jsxs as R}from"react/jsx-runtime";function z({...m}){return d(f.Root,{"data-slot":"select",...m})}function mm({...m}){return d(f.Group,{"data-slot":"select-group",...m})}function C({...m}){return d(f.Value,{"data-slot":"select-value",...m})}function F({className:m,size:i="default",children:n,...y}){return R(f.Trigger,{"data-slot":"select-trigger","data-size":i,className:N("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",m),...y,children:[n,d(f.Icon,{asChild:!0,children:d(r,{className:"size-4 opacity-50"})})]})}function G({className:m,children:i,position:n="popper",...y}){return d(f.Portal,{children:R(f.Content,{"data-slot":"select-content",className:N("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",m),position:n,...y,children:[d(X,{}),d(f.Viewport,{className:N("p-1",n==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:i}),d(Y,{})]})})}function fm({className:m,...i}){return d(f.Label,{"data-slot":"select-label",className:N("px-2 py-1.5 text-muted-foreground text-xs",m),...i})}function L({className:m,children:i,...n}){return R(f.Item,{"data-slot":"select-item",className:N("relative flex w-full cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",m),...n,children:[d("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d(f.ItemIndicator,{children:d(V,{className:"size-4"})})}),d(f.ItemText,{children:i})]})}function im({className:m,...i}){return d(f.Separator,{"data-slot":"select-separator",className:N("pointer-events-none -mx-1 my-1 h-px bg-border",m),...i})}function X({className:m,...i}){return d(f.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:N("flex cursor-default items-center justify-center py-1",m),...i,children:d(W,{className:"size-4"})})}function Y({className:m,...i}){return d(f.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:N("flex cursor-default items-center justify-center py-1",m),...i,children:d(r,{className:"size-4"})})}import{ChevronLeft as Z,ChevronRight as I,ChevronsLeft as D,ChevronsRight as U}from"lucide-react";import{jsx as e,jsxs as w}from"react/jsx-runtime";var a=({currentPage:m,totalPages:i,totalItems:n,itemsPerPage:y,onPageChange:t,onItemsPerPageChange:b,disabled:k=!1,className:M="",showItemsPerPage:T=!0,itemsPerPageOptions:_=[10,25,50,100]})=>{let q=(m-1)*y+1,B=Math.min(m*y,n),A=m>1&&!k,l=m<i&&!k,E=()=>{if(i<=7)return Array.from({length:i},(v,h)=>h+1);if(m<=3)return[1,2,3,4,5,-1,i];if(m>=i-2)return[1,-1,i-4,i-3,i-2,i-1,i];return[1,-1,m-1,m,m+1,-1,i]};if(i===0)return null;return w("div",{className:`flex flex-col items-center justify-between gap-4 sm:flex-row ${M}`,children:[w("div",{className:"order-2 text-base text-muted-foreground sm:order-1",children:["Affichage de ",q," \xE0 ",B," sur ",n," r\xE9sultats"]}),w("div",{className:"order-1 flex items-center gap-2 sm:order-2",children:[w(u,{variant:"outline",size:"sm",onClick:()=>t(1),disabled:!A,className:"hidden h-8 w-8 p-0 sm:flex",children:[e(D,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Premi\xE8re page"})]}),w(u,{variant:"outline",size:"sm",onClick:()=>t(m-1),disabled:!A,className:"h-8 w-8 p-0",children:[e(Z,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Page pr\xE9c\xE9dente"})]}),e("div",{className:"flex items-center gap-1",children:E().map((v,h)=>{if(v===-1)return e("span",{className:"px-2 py-1 text-muted-foreground",children:"..."},`ellipsis-${h}`);return e(u,{variant:v===m?"default":"outline",size:"sm",onClick:()=>t(v),disabled:k,className:"h-8 min-w-8 px-2",children:v},v)})}),w(u,{variant:"outline",size:"sm",onClick:()=>t(m+1),disabled:!l,className:"h-8 w-8 p-0",children:[e(I,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Page suivante"})]}),w(u,{variant:"outline",size:"sm",onClick:()=>t(i),disabled:!l,className:"hidden h-8 w-8 p-0 sm:flex",children:[e(U,{className:"h-4 w-4"}),e("span",{className:"sr-only",children:"Derni\xE8re page"})]})]}),T&&b&&w("div",{className:"order-3 flex items-center gap-2 text-base",children:[e("span",{className:"text-muted-foreground",children:"Afficher:"}),w(z,{value:y.toString(),onValueChange:(v)=>b(parseInt(v)),disabled:k,children:[e(F,{className:"h-8 w-16",children:e(C,{})}),e(G,{className:"bg-background",children:_.map((v)=>e(L,{value:v.toString(),children:v},v))})]})]})]})};export{a as Pagination};
@@ -1,3 +0,0 @@
1
- import type { SharedPaginationProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- export interface PaginationProps extends SharedPaginationProps {
3
- }
@@ -1 +0,0 @@
1
- // @bun
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { SearchInputProps } from './types';
3
- export declare const SearchInput: React.FC<SearchInputProps>;
@@ -1,2 +0,0 @@
1
- // @bun
2
- var b=import.meta.require;import{cn as u}from"@contractspec/lib.ui-kit-core/utils";import{Slot as y}from"@radix-ui/react-slot";import{cva as c}from"class-variance-authority";import*as d from"react";import{jsx as N}from"react/jsx-runtime";var w=c("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),h=d.forwardRef(({className:e,variant:o,size:l,asChild:r=!1,...m},n)=>{return N(r?y:"button",{ref:n,"data-slot":"button",className:u(w({variant:o,size:l,className:e})),...m})});h.displayName="Button";import{cn as s}from"@contractspec/lib.ui-kit-core/utils";import{jsx as I}from"react/jsx-runtime";function f({className:e,type:o,ref:l,...r}){return I("input",{ref:l,type:o,"data-slot":"input",className:s("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...r})}import{Search as R,X as S}from"lucide-react";import{jsx as t,jsxs as p}from"react/jsx-runtime";var H=({value:e,onChange:o,placeholder:l="Rechercher...",onClear:r,disabled:m=!1,className:n="",autoFocus:a=!1})=>{let v=()=>{o(""),r?.()};return p("div",{className:`relative w-full ${n}`,children:[t("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:t(R,{className:"h-4 w-4 text-muted-foreground"})}),t(f,{type:"text",value:e,onChange:(g)=>o(g.target.value),placeholder:l,disabled:m,autoFocus:a,className:"pr-10 pl-10"}),e&&t("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:p(h,{type:"button",variant:"ghost",size:"sm",onClick:v,disabled:m,className:"h-6 w-6 p-0 hover:bg-transparent",children:[t(S,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),t("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};export{H as SearchInput};
@@ -1,2 +0,0 @@
1
- export { SearchInput } from './SearchInput';
2
- export type { SearchInputProps } from './types';
@@ -1,2 +0,0 @@
1
- // @bun
2
- var b=import.meta.require;import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import{Slot as y}from"@radix-ui/react-slot";import{cva as c}from"class-variance-authority";import*as a from"react";import{jsx as I}from"react/jsx-runtime";var s=c("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),n=a.forwardRef(({className:e,variant:o,size:r,asChild:p=!1,...l},m)=>{return I(p?y:"button",{ref:m,"data-slot":"button",className:g(s({variant:o,size:r,className:e})),...l})});n.displayName="Button";import{cn as S}from"@contractspec/lib.ui-kit-core/utils";import{jsx as w}from"react/jsx-runtime";function f({className:e,type:o,ref:r,...p}){return w("input",{ref:r,type:o,"data-slot":"input",className:S("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...p})}import{Search as N,X as P}from"lucide-react";import{jsx as t,jsxs as d}from"react/jsx-runtime";var R=({value:e,onChange:o,placeholder:r="Rechercher...",onClear:p,disabled:l=!1,className:m="",autoFocus:h=!1})=>{let u=()=>{o(""),p?.()};return d("div",{className:`relative w-full ${m}`,children:[t("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:t(N,{className:"h-4 w-4 text-muted-foreground"})}),t(f,{type:"text",value:e,onChange:(v)=>o(v.target.value),placeholder:r,disabled:l,autoFocus:h,className:"pr-10 pl-10"}),e&&t("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:d(n,{type:"button",variant:"ghost",size:"sm",onClick:u,disabled:l,className:"h-6 w-6 p-0 hover:bg-transparent",children:[t(P,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),t("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};export{R as SearchInput};
@@ -1,3 +0,0 @@
1
- import type { SharedSearchInputProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- export interface SearchInputProps extends SharedSearchInputProps {
3
- }
@@ -1 +0,0 @@
1
- // @bun
@@ -1,6 +0,0 @@
1
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
- import * as React from 'react';
3
- declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
5
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
6
- export { Avatar, AvatarFallback, AvatarImage };
package/dist/ui/avatar.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var m=import.meta.require;import{clsx as o}from"clsx";import{twMerge as l}from"tailwind-merge";function r(...a){return l(o(a))}import*as t from"@radix-ui/react-avatar";import{jsx as i}from"react/jsx-runtime";function u({className:a,...e}){return i(t.Root,{"data-slot":"avatar",className:r("relative flex size-8 shrink-0 overflow-hidden rounded-full",a),...e})}function p({className:a,...e}){return i(t.Image,{"data-slot":"avatar-image",className:r("aspect-square size-full",a),...e})}function d({className:a,...e}){return i(t.Fallback,{"data-slot":"avatar-fallback",className:r("flex size-full items-center justify-center rounded-full bg-muted",a),...e})}export{p as AvatarImage,d as AvatarFallback,u as Avatar};
@@ -1,9 +0,0 @@
1
- import { type VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- declare function Badge({ className, variant, asChild, ...props }: React.ComponentPropsWithoutRef<'span'> & VariantProps<typeof badgeVariants> & {
7
- asChild?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export { Badge, badgeVariants };
package/dist/ui/badge.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var I=import.meta.require;import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import{Slot as D}from"@radix-ui/react-slot";import{cva as E}from"class-variance-authority";import{jsx as G}from"react/jsx-runtime";var F=E("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function O({className:f,variant:q,asChild:w=!1,...z}){return G(w?D:"span",{"data-slot":"badge",className:A(F({variant:q}),f),...z})}export{F as badgeVariants,O as Badge};
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- declare function Breadcrumb({ ...props }: React.ComponentPropsWithoutRef<'nav'>): import("react/jsx-runtime").JSX.Element;
3
- declare function BreadcrumbList({ className, ...props }: React.ComponentPropsWithoutRef<'ol'>): import("react/jsx-runtime").JSX.Element;
4
- declare function BreadcrumbItem({ className, ...props }: React.ComponentPropsWithoutRef<'li'>): import("react/jsx-runtime").JSX.Element;
5
- declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentPropsWithoutRef<'a'> & {
6
- asChild?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare function BreadcrumbPage({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
9
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentPropsWithoutRef<'li'>): import("react/jsx-runtime").JSX.Element;
10
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
11
- export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var O=import.meta.require;import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import{Slot as D}from"@radix-ui/react-slot";import{ChevronRight as F,MoreHorizontal as G}from"lucide-react";import{jsx as w,jsxs as J}from"react/jsx-runtime";function W({...f}){return w("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...f})}function X({className:f,...q}){return w("ol",{"data-slot":"breadcrumb-list",className:y("flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",f),...q})}function Y({className:f,...q}){return w("li",{"data-slot":"breadcrumb-item",className:y("inline-flex items-center gap-1.5",f),...q})}function Z({asChild:f,className:q,...A}){return w(f?D:"a",{"data-slot":"breadcrumb-link",className:y("transition-colors hover:text-foreground",q),...A})}function _({className:f,...q}){return w("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:y("font-normal text-foreground",f),...q})}function $({children:f,className:q,...A}){return w("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:y("[&>svg]:size-3.5",q),...A,children:f??w(F,{})})}function v({className:f,...q}){return J("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:y("flex size-9 items-center justify-center",f),...q,children:[w(G,{className:"size-4"}),w("span",{className:"sr-only",children:"More"})]})}export{$ as BreadcrumbSeparator,_ as BreadcrumbPage,X as BreadcrumbList,Z as BreadcrumbLink,Y as BreadcrumbItem,v as BreadcrumbEllipsis,W as Breadcrumb};
@@ -1,5 +0,0 @@
1
- import type * as React from 'react';
2
- export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<'div'> {
3
- orientation?: 'horizontal' | 'vertical';
4
- }
5
- export declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- var v=import.meta.require;import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as q}from"react/jsx-runtime";function z({className:d,orientation:f="horizontal",...g}){return q("div",{"data-slot":"button-group","data-orientation":f,className:h("inline-flex items-stretch overflow-hidden rounded-md","data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col","[&>[data-slot=button]:not(:first-child)]:rounded-none","[&>[data-slot=button]:first-child:not(:last-child)]:rounded-r-none","[&>[data-slot=button]:last-child:not(:first-child)]:rounded-l-none","[&>[data-slot=button]:not(:last-child)]:border-r-0","data-[orientation=vertical]:[&>[data-slot=button]:not(:last-child)]:border-r","data-[orientation=vertical]:[&>[data-slot=button]:not(:last-child)]:border-b-0","data-[orientation=vertical]:[&>[data-slot=button]:first-child:not(:last-child)]:rounded-b-none","data-[orientation=vertical]:[&>[data-slot=button]:last-child:not(:first-child)]:rounded-t-none",d),...g})}export{z as ButtonGroup};
@@ -1,17 +0,0 @@
1
- import type { SharedButtonProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- import { type VariantProps } from 'class-variance-authority';
3
- import * as React from 'react';
4
- declare const buttonVariants: (props?: ({
5
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- export type ButtonProps = SharedButtonProps & React.ComponentPropsWithoutRef<'button'> & VariantProps<typeof buttonVariants> & {
9
- asChild?: boolean;
10
- };
11
- declare const Button: React.ForwardRefExoticComponent<SharedButtonProps & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
12
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
13
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
14
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
15
- asChild?: boolean;
16
- } & React.RefAttributes<HTMLButtonElement>>;
17
- export { Button, buttonVariants };
package/dist/ui/button.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var O=import.meta.require;import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{Slot as H}from"@radix-ui/react-slot";import{cva as I}from"class-variance-authority";import*as g from"react";import{jsx as L}from"react/jsx-runtime";var J=I("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),K=g.forwardRef(({className:q,variant:w,size:A,asChild:D=!1,...E},F)=>{return L(D?H:"button",{ref:F,"data-slot":"button",className:G(J({variant:w,size:A,className:q})),...E})});K.displayName="Button";export{J as buttonVariants,K as Button};
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { DayButton, DayPicker } from 'react-day-picker';
3
- import { Button } from './button';
4
- declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
- buttonVariant?: React.ComponentProps<typeof Button>['variant'];
6
- }): import("react/jsx-runtime").JSX.Element;
7
- declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
8
- export { Calendar, CalendarDayButton };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var L=import.meta.require;import{cn as S}from"@contractspec/lib.ui-kit-core/utils";import{Slot as z}from"@radix-ui/react-slot";import{cva as O}from"class-variance-authority";import*as _ from"react";import{jsx as g}from"react/jsx-runtime";var W=O("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Y=_.forwardRef(({className:Q,variant:T,size:E,asChild:H=!1,...J},K)=>{return g(H?z:"button",{ref:K,"data-slot":"button",className:S(W({variant:T,size:E,className:Q})),...J})});Y.displayName="Button";import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{ChevronDownIcon as w,ChevronLeftIcon as I,ChevronRightIcon as R}from"lucide-react";import*as X from"react";import{DayPicker as k,getDefaultClassNames as $}from"react-day-picker";import{jsx as G}from"react/jsx-runtime";function f({className:Q,classNames:T,showOutsideDays:E=!0,captionLayout:H="label",buttonVariant:J="ghost",formatters:K,components:Z,...P}){let A=$();return G(k,{showOutsideDays:E,className:q("group/calendar bg-background in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent p-3 [--cell-size:--spacing(8)]",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,Q),captionLayout:H,formatters:{formatMonthDropdown:(F)=>F.toLocaleString("default",{month:"short"}),...K},classNames:{root:q("w-fit",A.root),months:q("relative flex flex-col gap-4 md:flex-row",A.months),month:q("flex w-full flex-col gap-4",A.month),nav:q("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",A.nav),button_previous:q(W({variant:J}),"size-(--cell-size) select-none p-0 aria-disabled:opacity-50",A.button_previous),button_next:q(W({variant:J}),"size-(--cell-size) select-none p-0 aria-disabled:opacity-50",A.button_next),month_caption:q("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",A.month_caption),dropdowns:q("flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm",A.dropdowns),dropdown_root:q("relative rounded-md border border-input shadow-2xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",A.dropdown_root),dropdown:q("absolute inset-0 bg-popover opacity-0",A.dropdown),caption_label:q("select-none font-medium",H==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",A.caption_label),table:"w-full border-collapse",weekdays:q("flex",A.weekdays),weekday:q("flex-1 select-none rounded-md font-normal text-[0.8rem] text-muted-foreground",A.weekday),week:q("mt-2 flex w-full",A.week),week_number_header:q("w-(--cell-size) select-none",A.week_number_header),week_number:q("select-none text-[0.8rem] text-muted-foreground",A.week_number),day:q("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",A.day),range_start:q("rounded-l-md bg-accent",A.range_start),range_middle:q("rounded-none",A.range_middle),range_end:q("rounded-r-md bg-accent",A.range_end),today:q("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",A.today),outside:q("text-muted-foreground aria-selected:text-muted-foreground",A.outside),disabled:q("text-muted-foreground opacity-50",A.disabled),hidden:q("invisible",A.hidden),...T},components:{Root:({className:F,rootRef:M,...U})=>{return G("div",{"data-slot":"calendar",ref:M,className:q(F),...U})},Chevron:({className:F,orientation:M,...U})=>{if(M==="left")return G(I,{className:q("size-4",F),...U});if(M==="right")return G(R,{className:q("size-4",F),...U});return G(w,{className:q("size-4",F),...U})},DayButton:B,WeekNumber:({children:F,...M})=>{return G("td",{...M,children:G("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:F})})},...Z},...P})}function B({className:Q,day:T,modifiers:E,...H}){let J=$(),K=X.useRef(null);return X.useEffect(()=>{if(E.focused)K.current?.focus()},[E.focused]),G(Y,{ref:K,variant:"ghost",size:"icon","data-day":T.date.toLocaleDateString(),"data-selected-single":E.selected&&!E.range_start&&!E.range_end&&!E.range_middle,"data-range-start":E.range_start,"data-range-end":E.range_end,"data-range-middle":E.range_middle,className:q("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-start=true]:rounded-l-md data-[range-end=true]:bg-primary data-[range-middle=true]:bg-accent data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-accent-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",J.day,Q),...H})}export{B as CalendarDayButton,f as Calendar};
package/dist/ui/card.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- declare function Card({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
3
- declare function CardHeader({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
4
- declare function CardTitle({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
5
- declare function CardDescription({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
6
- declare function CardAction({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
7
- declare function CardContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
8
- declare function CardFooter({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
9
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
package/dist/ui/card.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var v=import.meta.require;import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as q}from"react/jsx-runtime";function z({className:f,...g}){return q("div",{"data-slot":"card",className:h("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-2xs",f),...g})}function B({className:f,...g}){return q("div",{"data-slot":"card-header",className:h("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",f),...g})}function E({className:f,...g}){return q("div",{"data-slot":"card-title",className:h("font-semibold leading-none",f),...g})}function G({className:f,...g}){return q("div",{"data-slot":"card-description",className:h("text-muted-foreground text-sm",f),...g})}function I({className:f,...g}){return q("div",{"data-slot":"card-action",className:h("col-start-2 row-span-2 row-start-1 self-start justify-self-end",f),...g})}function J({className:f,...g}){return q("div",{"data-slot":"card-content",className:h("px-6",f),...g})}function K({className:f,...g}){return q("div",{"data-slot":"card-footer",className:h("flex items-center px-6 [.border-t]:pt-6",f),...g})}export{E as CardTitle,B as CardHeader,K as CardFooter,G as CardDescription,J as CardContent,I as CardAction,z as Card};
@@ -1,19 +0,0 @@
1
- import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
2
- import * as React from 'react';
3
- import { Button } from './button';
4
- type CarouselApi = UseEmblaCarouselType[1];
5
- type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
- type CarouselOptions = UseCarouselParameters[0];
7
- type CarouselPlugin = UseCarouselParameters[1];
8
- interface CarouselProps {
9
- opts?: CarouselOptions;
10
- plugins?: CarouselPlugin;
11
- orientation?: 'horizontal' | 'vertical';
12
- setApi?: (api: CarouselApi) => void;
13
- }
14
- declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentPropsWithoutRef<'div'> & CarouselProps): import("react/jsx-runtime").JSX.Element;
15
- declare function CarouselContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
16
- declare function CarouselItem({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
17
- declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
18
- declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
19
- export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var L=import.meta.require;import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import{Slot as g}from"@radix-ui/react-slot";import{cva as z}from"class-variance-authority";import*as P from"react";import{jsx as A}from"react/jsx-runtime";var k=z("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),f=P.forwardRef(({className:e,variant:r,size:l,asChild:a=!1,...u},i)=>{return A(a?g:"button",{ref:i,"data-slot":"button",className:E(k({variant:r,size:l,className:e})),...u})});f.displayName="Button";import{clsx as D}from"clsx";import{twMerge as T}from"tailwind-merge";function p(...e){return T(D(e))}import U from"embla-carousel-react";import{ArrowLeft as B,ArrowRight as K}from"lucide-react";import*as o from"react";import{jsx as n,jsxs as R}from"react/jsx-runtime";var y=o.createContext(null);function m(){let e=o.useContext(y);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function Z({orientation:e="horizontal",opts:r,setApi:l,plugins:a,className:u,children:i,...c}){let[b,t]=U({...r,axis:e==="horizontal"?"x":"y"},a),[N,h]=o.useState(!1),[x,w]=o.useState(!1),C=o.useCallback((s)=>{if(!s)return;h(s.canScrollPrev()),w(s.canScrollNext())},[]),d=o.useCallback(()=>{t?.scrollPrev()},[t]),v=o.useCallback(()=>{t?.scrollNext()},[t]),S=o.useCallback((s)=>{if(s.key==="ArrowLeft")s.preventDefault(),d();else if(s.key==="ArrowRight")s.preventDefault(),v()},[d,v]);return o.useEffect(()=>{if(!t||!l)return;l(t)},[t,l]),o.useEffect(()=>{if(!t)return;return C(t),t.on("reInit",C),t.on("select",C),()=>{t?.off("select",C)}},[t,C]),n(y.Provider,{value:{carouselRef:b,api:t,opts:r,orientation:e||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:d,scrollNext:v,canScrollPrev:N,canScrollNext:x},children:n("div",{onKeyDownCapture:S,className:p("relative",u),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...c,children:i})})}function _({className:e,...r}){let{carouselRef:l,orientation:a}=m();return n("div",{ref:l,className:"overflow-hidden","data-slot":"carousel-content",children:n("div",{className:p("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...r})})}function $({className:e,...r}){let{orientation:l}=m();return n("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:p("min-w-0 shrink-0 grow-0 basis-full",l==="horizontal"?"pl-4":"pt-4",e),...r})}function j({className:e,variant:r="outline",size:l="icon",...a}){let{orientation:u,scrollPrev:i,canScrollPrev:c}=m();return R(f,{"data-slot":"carousel-previous",variant:r,size:l,className:p("absolute size-8 rounded-full",u==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:i,...a,children:[n(B,{}),n("span",{className:"sr-only",children:"Previous slide"})]})}function ee({className:e,variant:r="outline",size:l="icon",...a}){let{orientation:u,scrollNext:i,canScrollNext:c}=m();return R(f,{"data-slot":"carousel-next",variant:r,size:l,className:p("absolute size-8 rounded-full",u==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:i,...a,children:[n(K,{}),n("span",{className:"sr-only",children:"Next slide"})]})}export{j as CarouselPrevious,ee as CarouselNext,$ as CarouselItem,_ as CarouselContent,Z as Carousel};
@@ -1,45 +0,0 @@
1
- import * as React from 'react';
2
- type ChartTheme = {
3
- light?: string;
4
- dark?: string;
5
- };
6
- export type ChartConfig = Record<string, {
7
- label?: React.ReactNode;
8
- icon?: React.ComponentType<{
9
- className?: string;
10
- }>;
11
- color?: string;
12
- theme?: ChartTheme;
13
- }>;
14
- type ChartPayloadItem = {
15
- name?: string;
16
- dataKey?: string;
17
- value?: React.ReactNode;
18
- color?: string;
19
- payload?: Record<string, unknown>;
20
- };
21
- export interface ChartContainerProps extends React.ComponentPropsWithoutRef<'div'> {
22
- config: ChartConfig;
23
- }
24
- export declare function ChartContainer({ config, className, style, ...props }: ChartContainerProps): import("react/jsx-runtime").JSX.Element;
25
- export declare function useChart(): {
26
- config: ChartConfig;
27
- };
28
- export declare function ChartTooltip(props: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
29
- export interface ChartTooltipContentProps extends React.ComponentPropsWithoutRef<'div'> {
30
- label?: React.ReactNode;
31
- payload?: ChartPayloadItem[];
32
- hideLabel?: boolean;
33
- hideIndicator?: boolean;
34
- labelKey?: string;
35
- nameKey?: string;
36
- indicator?: 'line' | 'dot';
37
- }
38
- export declare function ChartTooltipContent({ className, label, payload, hideLabel, hideIndicator, labelKey, nameKey, indicator, ...props }: ChartTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
39
- export declare function ChartLegend(props: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
40
- export interface ChartLegendContentProps extends React.ComponentPropsWithoutRef<'div'> {
41
- payload?: ChartPayloadItem[];
42
- nameKey?: string;
43
- }
44
- export declare function ChartLegendContent({ className, payload, nameKey, ...props }: ChartLegendContentProps): import("react/jsx-runtime").JSX.Element | null;
45
- export {};
package/dist/ui/chart.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var _=import.meta.require;import{cn as P}from"@contractspec/lib.ui-kit-core/utils";import*as Q from"react";import{jsx as A,jsxs as O}from"react/jsx-runtime";var U=Q.createContext(null);function G(q,w){return w?q[w]:void 0}function Z(q){return Object.entries(q).reduce((w,[B,z])=>{if(z.color)w[`--color-${B}`]=z.color;if(z.theme?.light)w[`--color-${B}-light`]=z.theme.light;if(z.theme?.dark)w[`--color-${B}-dark`]=z.theme.dark;return w},{})}function I({config:q,className:w,style:B,...z}){return A(U.Provider,{value:{config:q},children:A("div",{"data-slot":"chart",className:P("flex aspect-video justify-center text-xs",w),style:{...Z(q),...B},...z})})}function W(){let q=Q.useContext(U);if(!q)throw Error("useChart must be used within a ChartContainer.");return q}function L(q){return A("div",{"data-slot":"chart-tooltip",...q})}function E({className:q,label:w,payload:B,hideLabel:z,hideIndicator:H,labelKey:D,nameKey:J,indicator:R="dot",...M}){let{config:S}=W();if(!B?.length)return null;return O("div",{"data-slot":"chart-tooltip-content",className:P("grid min-w-40 gap-2 rounded-lg border bg-background p-2 shadow-md",q),...M,children:[!z&&w?A("div",{className:"font-medium",children:D?G(S,D)?.label??w:w}):null,A("div",{className:"grid gap-1",children:B.map((F,X)=>{let Y=String(F.dataKey??F.name??X),T=G(S,F.dataKey??F.name);return O("div",{className:"flex items-center justify-between gap-2",children:[O("div",{className:"flex items-center gap-2",children:[!H?A("span",{className:P("shrink-0 rounded-full",R==="line"?"h-2.5 w-5":"size-2.5"),style:{backgroundColor:F.color??T?.color}}):null,A("span",{className:"text-muted-foreground",children:J?G(S,J)?.label??F.name:T?.label??F.name})]}),A("span",{className:"font-medium",children:F.value})]},Y)})})]})}function N(q){return A("div",{"data-slot":"chart-legend",...q})}function h({className:q,payload:w,nameKey:B,...z}){let{config:H}=W();if(!w?.length)return null;return A("div",{"data-slot":"chart-legend-content",className:P("flex flex-wrap items-center gap-4",q),...z,children:w.map((D,J)=>{let R=String(D.dataKey??D.name??J),M=G(H,D.dataKey??D.name);return O("div",{className:"flex items-center gap-2",children:[A("span",{className:"size-2.5 rounded-full",style:{backgroundColor:D.color??M?.color}}),A("span",{className:"text-muted-foreground text-sm",children:B?G(H,B)?.label??D.name:M?.label??D.name})]},R)})})}export{W as useChart,E as ChartTooltipContent,L as ChartTooltip,h as ChartLegendContent,N as ChartLegend,I as ChartContainer};
@@ -1,4 +0,0 @@
1
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
- import * as React from 'react';
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- export { Checkbox };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var z=import.meta.require;import{cn as w}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-checkbox";import{CheckIcon as y}from"lucide-react";import{jsx as g}from"react/jsx-runtime";function E({className:q,...v}){return g(f.Root,{"data-slot":"checkbox",className:w("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40",q),...v,children:g(f.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:g(y,{className:"size-3.5"})})})}export{E as Checkbox};
@@ -1,5 +0,0 @@
1
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
- declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
5
- export { Collapsible, CollapsibleContent, CollapsibleTrigger };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var e=import.meta.require;import*as l from"@radix-ui/react-collapsible";import{jsx as o}from"react/jsx-runtime";function p({...i}){return o(l.Root,{"data-slot":"collapsible",...i})}function a({...i}){return o(l.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...i})}function r({...i}){return o(l.CollapsibleContent,{"data-slot":"collapsible-content",...i})}export{a as CollapsibleTrigger,r as CollapsibleContent,p as Collapsible};
@@ -1,32 +0,0 @@
1
- export interface ComboboxOption {
2
- value: string;
3
- label: string;
4
- description?: string;
5
- disabled?: boolean;
6
- keywords?: string[];
7
- }
8
- export interface ComboboxProps {
9
- options: ComboboxOption[];
10
- value?: string;
11
- onValueChange?: (value: string) => void;
12
- selectedValues?: string[];
13
- onRemoveValue?: (value: string) => void;
14
- query?: string;
15
- onQueryChange?: (query: string) => void;
16
- placeholder?: string;
17
- searchPlaceholder?: string;
18
- emptyText?: string;
19
- loadingText?: string;
20
- errorText?: string;
21
- error?: string | null;
22
- loading?: boolean;
23
- multiple?: boolean;
24
- readOnly?: boolean;
25
- disabled?: boolean;
26
- id?: string;
27
- name?: string;
28
- 'aria-invalid'?: boolean;
29
- 'aria-describedby'?: string;
30
- className?: string;
31
- }
32
- export declare function Combobox({ options, value, onValueChange, selectedValues, onRemoveValue, query, onQueryChange, placeholder, searchPlaceholder, emptyText, loadingText, errorText, error, loading, multiple, readOnly, disabled, id, name, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedBy, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- var xJ=import.meta.require;import{cn as DJ}from"@contractspec/lib.ui-kit-core/utils";import{Slot as IJ}from"@radix-ui/react-slot";import{cva as bJ}from"class-variance-authority";import*as o from"react";import{jsx as VJ}from"react/jsx-runtime";var OJ=bJ("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),x=o.forwardRef(({className:J,variant:K,size:U,asChild:$=!1,...X},w)=>{return VJ($?IJ:"button",{ref:w,"data-slot":"button",className:DJ(OJ({variant:K,size:U,className:J})),...X})});x.displayName="Button";import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as _ from"@radix-ui/react-dialog";import{XIcon as yJ}from"lucide-react";import{jsx as z,jsxs as m}from"react/jsx-runtime";function e({...J}){return z(_.Root,{"data-slot":"dialog",...J})}function aJ({...J}){return z(_.Trigger,{"data-slot":"dialog-trigger",...J})}function NJ({...J}){return z(_.Portal,{"data-slot":"dialog-portal",...J})}function nJ({...J}){return z(_.Close,{"data-slot":"dialog-close",...J})}function hJ({className:J,...K}){return z(_.Overlay,{"data-slot":"dialog-overlay",className:A("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",J),...K})}function JJ({className:J,children:K,showCloseButton:U=!0,...$}){return m(NJ,{"data-slot":"dialog-portal",children:[z(hJ,{}),m(_.Content,{"data-slot":"dialog-content",className:A("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",J),...$,children:[K,U&&m(_.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[z(yJ,{}),z("span",{className:"sr-only",children:"Close"})]})]})]})}function KJ({className:J,...K}){return z("div",{"data-slot":"dialog-header",className:A("flex flex-col gap-2 text-center sm:text-left",J),...K})}function sJ({className:J,...K}){return z("div",{"data-slot":"dialog-footer",className:A("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",J),...K})}function WJ({className:J,...K}){return z(_.Title,{"data-slot":"dialog-title",className:A("font-semibold text-lg leading-none",J),...K})}function YJ({className:J,...K}){return z(_.Description,{"data-slot":"dialog-description",className:A("text-muted-foreground text-sm",J),...K})}import{cn as S}from"@contractspec/lib.ui-kit-core/utils";import{Command as q}from"cmdk";import{SearchIcon as PJ}from"lucide-react";import{jsx as F,jsxs as u}from"react/jsx-runtime";function d({className:J,...K}){return F(q,{"data-slot":"command",className:S("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",J),...K})}function YK({title:J="Command Palette",description:K="Search for a command to run...",children:U,className:$,showCloseButton:X=!0,...w}){return u(e,{...w,children:[u(KJ,{className:"sr-only",children:[F(WJ,{children:J}),F(YJ,{children:K})]}),F(JJ,{className:S("overflow-hidden p-0",$),showCloseButton:X,children:F(d,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:U})})]})}function ZJ({className:J,...K}){return u("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[F(PJ,{className:"size-4 shrink-0 opacity-50"}),F(q.Input,{"data-slot":"command-input",className:S("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",J),...K})]})}function _J({className:J,...K}){return F(q.List,{"data-slot":"command-list",className:S("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",J),...K})}function $J({...J}){return F(q.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...J})}function FJ({className:J,...K}){return F(q.Group,{"data-slot":"command-group",className:S("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",J),...K})}function ZK({className:J,...K}){return F(q.Separator,{"data-slot":"command-separator",className:S("-mx-1 h-px bg-border",J),...K})}function UJ({className:J,...K}){return F(q.Item,{"data-slot":"command-item",className:S("relative flex cursor-default select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",J),...K})}function _K({className:J,...K}){return F("span",{"data-slot":"command-shortcut",className:S("ml-auto text-muted-foreground text-xs tracking-widest",J),...K})}import{cn as CJ}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@radix-ui/react-popover";import{jsx as I}from"react/jsx-runtime";function zJ({...J}){return I(L.Root,{"data-slot":"popover",...J})}function GJ({...J}){return I(L.Trigger,{"data-slot":"popover-trigger",...J})}function HJ({className:J,align:K="center",sideOffset:U=4,...$}){return I(L.Portal,{children:I(L.Content,{"data-slot":"popover-content",align:K,sideOffset:U,className:CJ("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",J),...$})})}function zK({...J}){return I(L.Anchor,{"data-slot":"popover-anchor",...J})}import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import{Check as LJ,ChevronsUpDown as gJ,X as vJ}from"lucide-react";import*as G from"react";import{createPortal as jJ}from"react-dom";import{jsx as Z,jsxs as Q}from"react/jsx-runtime";function h(J){return String(J.value)}function P(J,K,U){if(!J.length)return-1;for(let $=1;$<=J.length;$+=1){let X=(K+U*$+J.length)%J.length;if(!J[X]?.disabled)return X}return-1}function RK({options:J,value:K,onValueChange:U,selectedValues:$,onRemoveValue:X,query:w,onQueryChange:C,placeholder:c="Select option",searchPlaceholder:r="Search option...",emptyText:l="No option found.",loadingText:XJ="Loading options...",errorText:MJ="Unable to load options.",error:b,loading:O,multiple:V,readOnly:y,disabled:k,id:QJ,name:wJ,"aria-invalid":EJ,"aria-describedby":RJ,className:p}){let[E,R]=G.useState(!1),[i,f]=G.useState(-1),[SJ,qJ]=G.useState(),a=G.useRef(null),AJ=G.useId().replace(/:/g,""),n=QJ??`combobox-${AJ}`,N=`${n}-listbox`,g=J.find((W)=>W.value===K),BJ=new Set($??(K?[String(K)]:[])),kJ=w!==void 0&&w.length>0?w:g?.label??"",v=w!==void 0||C!==void 0||V!==void 0||$!==void 0||X!==void 0||O!==void 0||b!==void 0,M=G.useCallback(()=>{let W=a.current;if(!W)return;let T=W.getBoundingClientRect();qJ({left:T.left,position:"fixed",top:T.bottom+4,width:T.width,zIndex:50})},[]);G.useEffect(()=>{if(!E||!v)return;return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[v,E,M]);let s=()=>{if(k||y)return;M(),R(!0),f((W)=>W>=0?W:P(J,-1,1))},t=(W)=>{if(k||y||W.disabled)return;if(U?.(h(W)),!V)R(!1)};if(v){let W=J[i],T=O?XJ:b?b??MJ:l,fJ=Z("div",{id:N,role:"listbox","aria-busy":O||void 0,"aria-multiselectable":V||void 0,className:"max-h-[300px] w-full overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",children:J.length&&!O&&!b?J.map((Y,H)=>{let D=h(Y),j=BJ.has(D);return Q("div",{id:`${N}-${D}`,role:"option","aria-selected":j,"aria-disabled":Y.disabled||void 0,"data-active":i===H||void 0,"data-selected":j||void 0,className:B("flex cursor-default select-none items-start gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden","data-[active=true]:bg-accent data-[active=true]:text-accent-foreground",Y.disabled&&"pointer-events-none opacity-50"),onMouseDown:(TJ)=>TJ.preventDefault(),onMouseEnter:()=>f(H),onClick:()=>t(Y),children:[Z(LJ,{className:B("mt-0.5 size-4 shrink-0",j?"opacity-100":"opacity-0")}),Q("span",{className:"min-w-0",children:[Z("span",{className:"block truncate",children:Y.label}),Y.description?Z("span",{className:"block truncate text-muted-foreground text-xs",children:Y.description}):null]})]},D)}):Z("div",{className:"px-2 py-6 text-center text-muted-foreground text-sm",children:T})});return Q("div",{className:B("relative w-full min-w-0 space-y-2",p),children:[Z("input",{ref:a,id:n,name:wJ,type:"text",role:"combobox","aria-autocomplete":"list","aria-controls":N,"aria-expanded":E,"aria-activedescendant":E&&W?`${N}-${h(W)}`:void 0,"aria-invalid":EJ,"aria-describedby":RJ,value:kJ,placeholder:r??c,readOnly:y,disabled:k,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm outline-hidden ring-offset-background placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",onFocus:s,onBlur:()=>{globalThis.setTimeout(()=>R(!1),0)},onChange:(Y)=>{C?.(Y.currentTarget.value),s(),f(P(J,-1,1))},onKeyDown:(Y)=>{if(Y.key==="Escape"){R(!1);return}if(Y.key==="ArrowDown"){Y.preventDefault(),M(),R(!0),f((H)=>P(J,H,1));return}if(Y.key==="ArrowUp"){Y.preventDefault(),M(),R(!0),f((H)=>P(J,H<0?J.length:H,-1));return}if(Y.key==="Enter"&&E&&W)Y.preventDefault(),t(W)}}),E?jJ(Z("div",{"data-slot":"popover-content",className:"z-50 w-(--radix-popover-trigger-width) p-0",style:SJ,children:fJ}),document.body):null,V&&$?.length?Z("div",{className:"flex flex-wrap gap-2",children:$.map((Y)=>{let H=J.find((D)=>h(D)===Y);return Q("button",{type:"button",className:"inline-flex h-8 max-w-full items-center rounded-md border border-input px-2 text-sm disabled:opacity-50","aria-label":`Remove ${H?.label??Y}`,disabled:k||y,onClick:()=>X?.(Y),children:[Z("span",{className:"truncate",children:H?.label??Y}),Z(vJ,{className:"ml-1 size-3 shrink-0","aria-hidden":"true"})]},`selected-${Y}`)})}):null]})}return Q(zJ,{open:E,onOpenChange:R,children:[Z(GJ,{asChild:!0,children:Q(x,{type:"button",variant:"outline",role:"combobox","aria-expanded":E,disabled:k,className:B("w-full justify-between",p),children:[Z("span",{className:B(!g&&"text-muted-foreground"),children:g?.label??c}),Z(gJ,{className:"ml-2 size-4 shrink-0 opacity-50"})]})}),Z(HJ,{className:"w-(--radix-popover-trigger-width) p-0",children:Q(d,{children:[Z(ZJ,{placeholder:r}),Q(_J,{children:[Z($J,{children:l}),Z(FJ,{children:J.map((W)=>Q(UJ,{value:[W.value,W.label,...W.keywords??[]].join(" "),disabled:W.disabled,onSelect:()=>{U?.(W.value),R(!1)},children:[Z(LJ,{className:B("mr-2 size-4",K===W.value?"opacity-100":"opacity-0")}),W.label]},W.value))})]})]})})]})}export{RK as Combobox};
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import { Command as CommandPrimitive } from 'cmdk';
2
- import * as React from 'react';
3
- import { Dialog } from './dialog';
4
- declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
- title?: string;
7
- description?: string;
8
- className?: string;
9
- showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
- declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
- declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
- declare function CommandShortcut({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
18
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var k=import.meta.require;import{cn as Q}from"@contractspec/lib.ui-kit-core/utils";import*as z from"@radix-ui/react-dialog";import{XIcon as L}from"lucide-react";import{jsx as J,jsxs as V}from"react/jsx-runtime";function Y({...f}){return J(z.Root,{"data-slot":"dialog",...f})}function w({...f}){return J(z.Trigger,{"data-slot":"dialog-trigger",...f})}function X({...f}){return J(z.Portal,{"data-slot":"dialog-portal",...f})}function B({...f}){return J(z.Close,{"data-slot":"dialog-close",...f})}function b({className:f,...q}){return J(z.Overlay,{"data-slot":"dialog-overlay",className:Q("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",f),...q})}function Z({className:f,children:q,showCloseButton:R=!0,...U}){return V(X,{"data-slot":"dialog-portal",children:[J(b,{}),V(z.Content,{"data-slot":"dialog-content",className:Q("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",f),...U,children:[q,R&&V(z.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[J(L,{}),J("span",{className:"sr-only",children:"Close"})]})]})]})}function _({className:f,...q}){return J("div",{"data-slot":"dialog-header",className:Q("flex flex-col gap-2 text-center sm:text-left",f),...q})}function I({className:f,...q}){return J("div",{"data-slot":"dialog-footer",className:Q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",f),...q})}function $({className:f,...q}){return J(z.Title,{"data-slot":"dialog-title",className:Q("font-semibold text-lg leading-none",f),...q})}function E({className:f,...q}){return J(z.Description,{"data-slot":"dialog-description",className:Q("text-muted-foreground text-sm",f),...q})}import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import{Command as M}from"cmdk";import{SearchIcon as H}from"lucide-react";import{jsx as A,jsxs as W}from"react/jsx-runtime";function O({className:f,...q}){return A(M,{"data-slot":"command",className:K("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",f),...q})}function C({title:f="Command Palette",description:q="Search for a command to run...",children:R,className:U,showCloseButton:F=!0,...G}){return W(Y,{...G,children:[W(_,{className:"sr-only",children:[A($,{children:f}),A(E,{children:q})]}),A(Z,{className:K("overflow-hidden p-0",U),showCloseButton:F,children:A(O,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:R})})]})}function N({className:f,...q}){return W("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[A(H,{className:"size-4 shrink-0 opacity-50"}),A(M.Input,{"data-slot":"command-input",className:K("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",f),...q})]})}function d({className:f,...q}){return A(M.List,{"data-slot":"command-list",className:K("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",f),...q})}function j({...f}){return A(M.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...f})}function x({className:f,...q}){return A(M.Group,{"data-slot":"command-group",className:K("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",f),...q})}function n({className:f,...q}){return A(M.Separator,{"data-slot":"command-separator",className:K("-mx-1 h-px bg-border",f),...q})}function t({className:f,...q}){return A(M.Item,{"data-slot":"command-item",className:K("relative flex cursor-default select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",f),...q})}function l({className:f,...q}){return A("span",{"data-slot":"command-shortcut",className:K("ml-auto text-muted-foreground text-xs tracking-widest",f),...q})}export{l as CommandShortcut,n as CommandSeparator,d as CommandList,t as CommandItem,N as CommandInput,x as CommandGroup,j as CommandEmpty,C as CommandDialog,O as Command};
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- export interface ConfirmDialogProps {
3
- open?: boolean;
4
- onOpenChange?: (open: boolean) => void;
5
- title: React.ReactNode;
6
- description?: React.ReactNode;
7
- confirmLabel?: string;
8
- cancelLabel?: string;
9
- variant?: 'default' | 'destructive';
10
- isLoading?: boolean;
11
- onConfirm: () => Promise<void> | void;
12
- trigger?: React.ReactNode;
13
- }
14
- export declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, variant, isLoading, onConfirm, trigger, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- var Y=import.meta.require;import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import{Slot as K}from"@radix-ui/react-slot";import{cva as M}from"class-variance-authority";import*as T from"react";import{jsx as O}from"react/jsx-runtime";var C=M("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),l=T.forwardRef(({className:e,variant:d,size:A,asChild:g=!1,...R},t)=>{return O(g?K:"button",{ref:t,"data-slot":"button",className:J(C({variant:d,size:A,className:e})),...R})});l.displayName="Button";import{cn as o}from"@contractspec/lib.ui-kit-core/utils";import*as n from"@radix-ui/react-alert-dialog";import{jsx as i,jsxs as W}from"react/jsx-runtime";function w({...e}){return i(n.Root,{"data-slot":"alert-dialog",...e})}function F({...e}){return i(n.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function Q({...e}){return i(n.Portal,{"data-slot":"alert-dialog-portal",...e})}function U({className:e,...d}){return i(n.Overlay,{"data-slot":"alert-dialog-overlay",className:o("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...d})}function H({className:e,...d}){return W(Q,{children:[i(U,{}),i(n.Content,{"data-slot":"alert-dialog-content",className:o("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),...d})]})}function L({className:e,...d}){return i("div",{"data-slot":"alert-dialog-header",className:o("flex flex-col gap-2 text-center sm:text-left",e),...d})}function P({className:e,...d}){return i("div",{"data-slot":"alert-dialog-footer",className:o("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...d})}function q({className:e,...d}){return i(n.Title,{"data-slot":"alert-dialog-title",className:o("font-semibold text-lg",e),...d})}function B({className:e,...d}){return i(n.Description,{"data-slot":"alert-dialog-description",className:o("text-muted-foreground text-sm",e),...d})}function E({className:e,...d}){return i(n.Action,{className:o(C(),e),...d})}function G({className:e,...d}){return i(n.Cancel,{className:o(C({variant:"outline"}),e),...d})}import{jsx as f,jsxs as D}from"react/jsx-runtime";function c({open:e,onOpenChange:d,title:A,description:g,confirmLabel:R="Confirmer",cancelLabel:t="Annuler",variant:v="default",isLoading:h,onConfirm:I,trigger:b}){return D(w,{open:e,onOpenChange:d,children:[b?f(F,{asChild:!0,children:b}):null,D(H,{children:[D(L,{children:[f(q,{children:A}),g?f(B,{children:g}):null]}),D(P,{children:[f(G,{disabled:h,children:t}),f(E,{asChild:!0,children:f(l,{onClick:async()=>{await I()},disabled:h,className:v==="destructive"?"bg-destructive text-destructive-foreground hover:bg-destructive/90":void 0,children:h?"...":R})})]})]})]})}export{c as ConfirmDialog};
@@ -1,31 +0,0 @@
1
- import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
2
- import * as React from 'react';
3
- declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
- declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
8
- declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
9
- declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
10
- side?: 'top' | 'right' | 'bottom' | 'left';
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
13
- inset?: boolean;
14
- variant?: 'default' | 'destructive';
15
- }): import("react/jsx-runtime").JSX.Element;
16
- declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
17
- inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
20
- declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
21
- inset?: boolean;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
24
- inset?: boolean;
25
- }): import("react/jsx-runtime").JSX.Element;
26
- declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
27
- inset?: boolean;
28
- }): import("react/jsx-runtime").JSX.Element;
29
- declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
30
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
31
- export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
@@ -1,2 +0,0 @@
1
- // @bun
2
- var l=import.meta.require;import{clsx as c}from"clsx";import{twMerge as m}from"tailwind-merge";function i(...e){return m(c(e))}import*as t from"@radix-ui/react-context-menu";import{CheckIcon as s,ChevronRightIcon as p}from"lucide-react";import{jsx as n,jsxs as u}from"react/jsx-runtime";function M({...e}){return n(t.Root,{"data-slot":"context-menu",...e})}function b({className:e,...o}){return n(t.Trigger,{"data-slot":"context-menu-trigger",className:i("select-none",e),...o})}function h({...e}){return n(t.Group,{"data-slot":"context-menu-group",...e})}function R({...e}){return n(t.Portal,{"data-slot":"context-menu-portal",...e})}function y({...e}){return n(t.Sub,{"data-slot":"context-menu-sub",...e})}function I({...e}){return n(t.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}function z({className:e,...o}){return n(t.Portal,{children:n(t.Content,{"data-slot":"context-menu-content",className:i("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-closed:animate-out data-open:animate-in",e),...o})})}function S({className:e,inset:o,variant:a="default",...r}){return n(t.Item,{"data-slot":"context-menu-item","data-inset":o,"data-variant":a,className:i("group/context-menu-item relative flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}function k({className:e,inset:o,children:a,...r}){return u(t.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":o,className:i("flex cursor-default select-none items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-inset:pl-7 data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...r,children:[a,n(p,{className:"cn-rtl-flip ml-auto"})]})}function N({className:e,...o}){return n(t.SubContent,{"data-slot":"context-menu-sub-content",className:i("data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg duration-100 data-closed:animate-out data-open:animate-in",e),...o})}function _({className:e,children:o,checked:a,inset:r,...d}){return u(t.CheckboxItem,{"data-slot":"context-menu-checkbox-item","data-inset":r,className:i("relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),checked:a,...d,children:[n("span",{className:"pointer-events-none absolute right-2",children:n(t.ItemIndicator,{children:n(s,{})})}),o]})}function w({className:e,children:o,inset:a,...r}){return u(t.RadioItem,{"data-slot":"context-menu-radio-item","data-inset":a,className:i("relative flex cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-7 data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...r,children:[n("span",{className:"pointer-events-none absolute right-2",children:n(t.ItemIndicator,{children:n(s,{})})}),o]})}function T({className:e,inset:o,...a}){return n(t.Label,{"data-slot":"context-menu-label","data-inset":o,className:i("px-1.5 py-1 font-medium text-muted-foreground text-xs data-inset:pl-7",e),...a})}function G({className:e,...o}){return n(t.Separator,{"data-slot":"context-menu-separator",className:i("-mx-1 my-1 h-px bg-border",e),...o})}function L({className:e,...o}){return n("span",{"data-slot":"context-menu-shortcut",className:i("ml-auto text-muted-foreground text-xs tracking-widest group-focus/context-menu-item:text-accent-foreground",e),...o})}export{b as ContextMenuTrigger,k as ContextMenuSubTrigger,N as ContextMenuSubContent,y as ContextMenuSub,L as ContextMenuShortcut,G as ContextMenuSeparator,w as ContextMenuRadioItem,I as ContextMenuRadioGroup,R as ContextMenuPortal,T as ContextMenuLabel,S as ContextMenuItem,h as ContextMenuGroup,z as ContextMenuContent,_ as ContextMenuCheckboxItem,M as ContextMenu};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- // @bun
package/dist/ui/cta.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { type ButtonProps } from './button';
3
- export type CtaProps = Omit<ButtonProps, 'onClick'> & {
4
- capture?: (cta: string) => void;
5
- ctaName?: string;
6
- as?: 'button' | 'a';
7
- href?: string;
8
- onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
9
- children?: React.ReactNode;
10
- ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
11
- };
12
- export declare function Cta({ capture, ctaName, className, as, href, onClick, size, children, ref, ...props }: CtaProps): import("react/jsx-runtime").JSX.Element;