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

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 (391) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +233 -0
  3. package/dist/browser/index.js +1 -0
  4. package/dist/browser/ui/accordion.js +1 -0
  5. package/dist/browser/ui/alert-dialog.js +1 -0
  6. package/dist/browser/ui/alert.js +1 -0
  7. package/dist/browser/ui/aspect-ratio.js +1 -0
  8. package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +1 -0
  9. package/dist/browser/ui/atoms/FilterSelect/index.js +1 -0
  10. package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
  11. package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +1 -0
  12. package/dist/browser/ui/atoms/LoadingSpinner/index.js +1 -0
  13. package/dist/browser/ui/atoms/Pagination/Pagination.js +1 -0
  14. package/dist/browser/ui/atoms/Pagination/index.js +1 -0
  15. package/dist/browser/ui/atoms/Pagination/types.js +0 -0
  16. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +1 -0
  17. package/dist/browser/ui/atoms/SearchInput/index.js +1 -0
  18. package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
  19. package/dist/browser/ui/avatar.js +1 -0
  20. package/dist/browser/ui/badge.js +1 -0
  21. package/dist/browser/ui/breadcrumb.js +1 -0
  22. package/dist/browser/ui/button-group.js +1 -0
  23. package/dist/browser/ui/button.js +1 -0
  24. package/dist/browser/ui/calendar.js +1 -0
  25. package/dist/browser/ui/card.js +1 -0
  26. package/dist/browser/ui/carousel.js +1 -0
  27. package/dist/browser/ui/chart.js +1 -0
  28. package/dist/browser/ui/checkbox.js +1 -0
  29. package/dist/browser/ui/collapsible.js +1 -0
  30. package/dist/browser/ui/combobox.js +1 -0
  31. package/dist/browser/ui/command.js +1 -0
  32. package/dist/browser/ui/confirm-dialog.js +1 -0
  33. package/dist/browser/ui/context-menu.js +1 -0
  34. package/dist/browser/ui/contracts.typecheck.js +0 -0
  35. package/dist/browser/ui/cta.js +1 -0
  36. package/dist/browser/ui/data-table.js +1 -0
  37. package/dist/browser/ui/data-table.parts.js +1 -0
  38. package/dist/browser/ui/date-picker.js +1 -0
  39. package/dist/browser/ui/date-range-picker.js +1 -0
  40. package/dist/browser/ui/datetime-picker.js +1 -0
  41. package/dist/browser/ui/dialog.js +1 -0
  42. package/dist/browser/ui/direction.js +1 -0
  43. package/dist/browser/ui/drawer.js +1 -0
  44. package/dist/browser/ui/dropdown-menu.js +1 -0
  45. package/dist/browser/ui/empty-state.js +1 -0
  46. package/dist/browser/ui/empty.js +1 -0
  47. package/dist/browser/ui/field.js +1 -0
  48. package/dist/browser/ui/focus-on-route-change.js +1 -0
  49. package/dist/browser/ui/form.js +1 -0
  50. package/dist/browser/ui/hover-card.js +1 -0
  51. package/dist/browser/ui/input-group.js +1 -0
  52. package/dist/browser/ui/input-otp.js +1 -0
  53. package/dist/browser/ui/input-password.js +1 -0
  54. package/dist/browser/ui/input.js +1 -0
  55. package/dist/browser/ui/item.js +1 -0
  56. package/dist/browser/ui/kbd.js +1 -0
  57. package/dist/browser/ui/label.js +1 -0
  58. package/dist/browser/ui/link.js +1 -0
  59. package/dist/browser/ui/list.js +1 -0
  60. package/dist/browser/ui/live-region.js +1 -0
  61. package/dist/browser/ui/loading-button.js +1 -0
  62. package/dist/browser/ui/map/MapBase.js +1 -0
  63. package/dist/browser/ui/map/MapGeoJsonOverlay.js +1 -0
  64. package/dist/browser/ui/map/MapHeatmapH3.js +1 -0
  65. package/dist/browser/ui/map/MapMarkers.js +1 -0
  66. package/dist/browser/ui/map/index.js +1 -0
  67. package/dist/browser/ui/marketing/FeatureGrid.js +1 -0
  68. package/dist/browser/ui/marketing/Hero.js +1 -0
  69. package/dist/browser/ui/marketing/PricingTable.js +1 -0
  70. package/dist/browser/ui/marketing/index.js +1 -0
  71. package/dist/browser/ui/menubar.js +1 -0
  72. package/dist/browser/ui/molecules/Autocomplete/index.js +1 -0
  73. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +1 -0
  74. package/dist/browser/ui/molecules/SearchAndFilter/index.js +1 -0
  75. package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
  76. package/dist/browser/ui/molecules/SkeletonList.js +1 -0
  77. package/dist/browser/ui/native-select.js +1 -0
  78. package/dist/browser/ui/nav-layout.js +1 -0
  79. package/dist/browser/ui/navigation-menu.js +1 -0
  80. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +1 -0
  81. package/dist/browser/ui/organisms/ErrorBoundary/index.js +1 -0
  82. package/dist/browser/ui/organisms/ListPage/ListPage.js +1 -0
  83. package/dist/browser/ui/organisms/ListPage/index.js +1 -0
  84. package/dist/browser/ui/organisms/ListPage/types.js +0 -0
  85. package/dist/browser/ui/page-header.js +1 -0
  86. package/dist/browser/ui/pagination.js +1 -0
  87. package/dist/browser/ui/popover.js +1 -0
  88. package/dist/browser/ui/progress.js +1 -0
  89. package/dist/browser/ui/radio-group.js +1 -0
  90. package/dist/browser/ui/resizable.js +1 -0
  91. package/dist/browser/ui/route-announcer.js +1 -0
  92. package/dist/browser/ui/scroll-area.js +1 -0
  93. package/dist/browser/ui/section.js +1 -0
  94. package/dist/browser/ui/select.js +1 -0
  95. package/dist/browser/ui/separator.js +1 -0
  96. package/dist/browser/ui/sheet.js +1 -0
  97. package/dist/browser/ui/sidebar.js +1 -0
  98. package/dist/browser/ui/skeleton.js +1 -0
  99. package/dist/browser/ui/skip-link.js +1 -0
  100. package/dist/browser/ui/slider.js +1 -0
  101. package/dist/browser/ui/sonner.js +1 -0
  102. package/dist/browser/ui/spinner.js +1 -0
  103. package/dist/browser/ui/stack.js +1 -0
  104. package/dist/browser/ui/stat-card-group.js +1 -0
  105. package/dist/browser/ui/stepper.js +1 -0
  106. package/dist/browser/ui/switch.js +1 -0
  107. package/dist/browser/ui/table.js +1 -0
  108. package/dist/browser/ui/tabs.js +1 -0
  109. package/dist/browser/ui/text.js +1 -0
  110. package/dist/browser/ui/textarea.js +1 -0
  111. package/dist/browser/ui/time-picker.js +1 -0
  112. package/dist/browser/ui/toast.js +1 -0
  113. package/dist/browser/ui/toaster.js +1 -0
  114. package/dist/browser/ui/toggle-group.js +1 -0
  115. package/dist/browser/ui/toggle.js +1 -0
  116. package/dist/browser/ui/tooltip.js +1 -0
  117. package/dist/browser/ui/typography.js +1 -0
  118. package/dist/browser/ui/use-media-query.js +1 -0
  119. package/dist/browser/ui/use-mobile.js +1 -0
  120. package/dist/browser/ui/use-reduced-motion.js +1 -0
  121. package/dist/browser/ui/use-toast.js +1 -0
  122. package/dist/browser/ui/useListState.js +1 -0
  123. package/dist/browser/ui/usecases/UseCaseCard.js +1 -0
  124. package/dist/browser/ui/usecases/UserStoryCard.js +1 -0
  125. package/dist/browser/ui/usecases/index.js +1 -0
  126. package/dist/browser/ui/utils.js +1 -0
  127. package/dist/browser/ui/visualization/Visualization.js +1 -0
  128. package/dist/browser/ui/visualization/Visualization.support.js +1 -0
  129. package/dist/browser/ui/visualization/index.js +1 -0
  130. package/dist/browser/ui/visually-hidden.js +1 -0
  131. package/dist/index.d.ts +1 -0
  132. package/dist/index.js +2 -0
  133. package/dist/ui/accordion.d.ts +7 -0
  134. package/dist/ui/accordion.js +2 -0
  135. package/dist/ui/alert-dialog.d.ts +14 -0
  136. package/dist/ui/alert-dialog.js +2 -0
  137. package/dist/ui/alert.d.ts +9 -0
  138. package/dist/ui/alert.js +2 -0
  139. package/dist/ui/aspect-ratio.d.ts +3 -0
  140. package/dist/ui/aspect-ratio.js +2 -0
  141. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -0
  142. package/dist/ui/atoms/FilterSelect/FilterSelect.js +2 -0
  143. package/dist/ui/atoms/FilterSelect/index.d.ts +2 -0
  144. package/dist/ui/atoms/FilterSelect/index.js +2 -0
  145. package/dist/ui/atoms/FilterSelect/types.d.ts +5 -0
  146. package/dist/ui/atoms/FilterSelect/types.js +1 -0
  147. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +19 -0
  148. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +2 -0
  149. package/dist/ui/atoms/LoadingSpinner/index.d.ts +1 -0
  150. package/dist/ui/atoms/LoadingSpinner/index.js +2 -0
  151. package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -0
  152. package/dist/ui/atoms/Pagination/Pagination.js +2 -0
  153. package/dist/ui/atoms/Pagination/index.d.ts +2 -0
  154. package/dist/ui/atoms/Pagination/index.js +2 -0
  155. package/dist/ui/atoms/Pagination/types.d.ts +3 -0
  156. package/dist/ui/atoms/Pagination/types.js +1 -0
  157. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -0
  158. package/dist/ui/atoms/SearchInput/SearchInput.js +2 -0
  159. package/dist/ui/atoms/SearchInput/index.d.ts +2 -0
  160. package/dist/ui/atoms/SearchInput/index.js +2 -0
  161. package/dist/ui/atoms/SearchInput/types.d.ts +3 -0
  162. package/dist/ui/atoms/SearchInput/types.js +1 -0
  163. package/dist/ui/avatar.d.ts +6 -0
  164. package/dist/ui/avatar.js +2 -0
  165. package/dist/ui/badge.d.ts +9 -0
  166. package/dist/ui/badge.js +2 -0
  167. package/dist/ui/breadcrumb.d.ts +11 -0
  168. package/dist/ui/breadcrumb.js +2 -0
  169. package/dist/ui/button-group.d.ts +5 -0
  170. package/dist/ui/button-group.js +2 -0
  171. package/dist/ui/button.d.ts +17 -0
  172. package/dist/ui/button.js +2 -0
  173. package/dist/ui/calendar.d.ts +8 -0
  174. package/dist/ui/calendar.js +2 -0
  175. package/dist/ui/card.d.ts +9 -0
  176. package/dist/ui/card.js +2 -0
  177. package/dist/ui/carousel.d.ts +19 -0
  178. package/dist/ui/carousel.js +2 -0
  179. package/dist/ui/chart.d.ts +45 -0
  180. package/dist/ui/chart.js +2 -0
  181. package/dist/ui/checkbox.d.ts +4 -0
  182. package/dist/ui/checkbox.js +2 -0
  183. package/dist/ui/collapsible.d.ts +5 -0
  184. package/dist/ui/collapsible.js +2 -0
  185. package/dist/ui/combobox.d.ts +32 -0
  186. package/dist/ui/combobox.js +2 -0
  187. package/dist/ui/combobox.test.d.ts +1 -0
  188. package/dist/ui/command.d.ts +18 -0
  189. package/dist/ui/command.js +2 -0
  190. package/dist/ui/confirm-dialog.d.ts +14 -0
  191. package/dist/ui/confirm-dialog.js +2 -0
  192. package/dist/ui/context-menu.d.ts +31 -0
  193. package/dist/ui/context-menu.js +2 -0
  194. package/dist/ui/contracts.typecheck.d.ts +1 -0
  195. package/dist/ui/contracts.typecheck.js +1 -0
  196. package/dist/ui/cta.d.ts +12 -0
  197. package/dist/ui/cta.js +2 -0
  198. package/dist/ui/data-table.d.ts +8 -0
  199. package/dist/ui/data-table.js +2 -0
  200. package/dist/ui/data-table.parts.d.ts +19 -0
  201. package/dist/ui/data-table.parts.js +2 -0
  202. package/dist/ui/data-table.test.d.ts +1 -0
  203. package/dist/ui/date-picker.d.ts +5 -0
  204. package/dist/ui/date-picker.js +2 -0
  205. package/dist/ui/date-range-picker.d.ts +6 -0
  206. package/dist/ui/date-range-picker.js +2 -0
  207. package/dist/ui/datetime-picker.d.ts +6 -0
  208. package/dist/ui/datetime-picker.js +2 -0
  209. package/dist/ui/dialog.d.ts +15 -0
  210. package/dist/ui/dialog.js +2 -0
  211. package/dist/ui/direction.d.ts +9 -0
  212. package/dist/ui/direction.js +2 -0
  213. package/dist/ui/drawer.d.ts +13 -0
  214. package/dist/ui/drawer.js +2 -0
  215. package/dist/ui/dropdown-menu.d.ts +25 -0
  216. package/dist/ui/dropdown-menu.js +2 -0
  217. package/dist/ui/empty-state.d.ts +9 -0
  218. package/dist/ui/empty-state.js +2 -0
  219. package/dist/ui/empty.d.ts +12 -0
  220. package/dist/ui/empty.js +2 -0
  221. package/dist/ui/field.d.ts +20 -0
  222. package/dist/ui/field.js +2 -0
  223. package/dist/ui/focus-on-route-change.d.ts +3 -0
  224. package/dist/ui/focus-on-route-change.js +2 -0
  225. package/dist/ui/form.d.ts +26 -0
  226. package/dist/ui/form.js +2 -0
  227. package/dist/ui/hover-card.d.ts +6 -0
  228. package/dist/ui/hover-card.js +2 -0
  229. package/dist/ui/input-group.d.ts +18 -0
  230. package/dist/ui/input-group.js +2 -0
  231. package/dist/ui/input-otp.d.ts +16 -0
  232. package/dist/ui/input-otp.js +2 -0
  233. package/dist/ui/input-password.d.ts +11 -0
  234. package/dist/ui/input-password.js +2 -0
  235. package/dist/ui/input-password.test.d.ts +1 -0
  236. package/dist/ui/input.d.ts +7 -0
  237. package/dist/ui/input.js +2 -0
  238. package/dist/ui/item.d.ts +23 -0
  239. package/dist/ui/item.js +2 -0
  240. package/dist/ui/kbd.d.ts +3 -0
  241. package/dist/ui/kbd.js +2 -0
  242. package/dist/ui/label.d.ts +4 -0
  243. package/dist/ui/label.js +2 -0
  244. package/dist/ui/link.d.ts +6 -0
  245. package/dist/ui/link.js +2 -0
  246. package/dist/ui/list.d.ts +20 -0
  247. package/dist/ui/list.js +2 -0
  248. package/dist/ui/live-region.d.ts +10 -0
  249. package/dist/ui/live-region.js +2 -0
  250. package/dist/ui/loading-button.d.ts +9 -0
  251. package/dist/ui/loading-button.js +2 -0
  252. package/dist/ui/map/MapBase.d.ts +22 -0
  253. package/dist/ui/map/MapBase.js +2 -0
  254. package/dist/ui/map/MapGeoJsonOverlay.d.ts +10 -0
  255. package/dist/ui/map/MapGeoJsonOverlay.js +2 -0
  256. package/dist/ui/map/MapHeatmapH3.d.ts +12 -0
  257. package/dist/ui/map/MapHeatmapH3.js +2 -0
  258. package/dist/ui/map/MapMarkers.d.ts +12 -0
  259. package/dist/ui/map/MapMarkers.js +2 -0
  260. package/dist/ui/map/index.d.ts +4 -0
  261. package/dist/ui/map/index.js +2 -0
  262. package/dist/ui/marketing/FeatureGrid.d.ts +4 -0
  263. package/dist/ui/marketing/FeatureGrid.js +2 -0
  264. package/dist/ui/marketing/Hero.d.ts +16 -0
  265. package/dist/ui/marketing/Hero.js +2 -0
  266. package/dist/ui/marketing/PricingTable.d.ts +4 -0
  267. package/dist/ui/marketing/PricingTable.js +2 -0
  268. package/dist/ui/marketing/index.d.ts +3 -0
  269. package/dist/ui/marketing/index.js +2 -0
  270. package/dist/ui/menubar.d.ts +26 -0
  271. package/dist/ui/menubar.js +2 -0
  272. package/dist/ui/molecules/Autocomplete/index.d.ts +1 -0
  273. package/dist/ui/molecules/Autocomplete/index.js +2 -0
  274. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -0
  275. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +2 -0
  276. package/dist/ui/molecules/SearchAndFilter/index.d.ts +2 -0
  277. package/dist/ui/molecules/SearchAndFilter/index.js +2 -0
  278. package/dist/ui/molecules/SearchAndFilter/types.d.ts +3 -0
  279. package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
  280. package/dist/ui/molecules/SkeletonList.d.ts +7 -0
  281. package/dist/ui/molecules/SkeletonList.js +2 -0
  282. package/dist/ui/native-select.d.ts +4 -0
  283. package/dist/ui/native-select.js +2 -0
  284. package/dist/ui/nav-layout.d.ts +47 -0
  285. package/dist/ui/nav-layout.js +2 -0
  286. package/dist/ui/navigation-menu.d.ts +14 -0
  287. package/dist/ui/navigation-menu.js +2 -0
  288. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +25 -0
  289. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +2 -0
  290. package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
  291. package/dist/ui/organisms/ErrorBoundary/index.js +2 -0
  292. package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -0
  293. package/dist/ui/organisms/ListPage/ListPage.js +2 -0
  294. package/dist/ui/organisms/ListPage/index.d.ts +2 -0
  295. package/dist/ui/organisms/ListPage/index.js +2 -0
  296. package/dist/ui/organisms/ListPage/types.d.ts +37 -0
  297. package/dist/ui/organisms/ListPage/types.js +1 -0
  298. package/dist/ui/page-header.d.ts +9 -0
  299. package/dist/ui/page-header.js +2 -0
  300. package/dist/ui/pagination.d.ts +17 -0
  301. package/dist/ui/pagination.js +2 -0
  302. package/dist/ui/popover.d.ts +7 -0
  303. package/dist/ui/popover.js +2 -0
  304. package/dist/ui/progress.d.ts +4 -0
  305. package/dist/ui/progress.js +2 -0
  306. package/dist/ui/radio-group.d.ts +5 -0
  307. package/dist/ui/radio-group.js +2 -0
  308. package/dist/ui/resizable.d.ts +8 -0
  309. package/dist/ui/resizable.js +2 -0
  310. package/dist/ui/route-announcer.d.ts +3 -0
  311. package/dist/ui/route-announcer.js +2 -0
  312. package/dist/ui/scroll-area.d.ts +5 -0
  313. package/dist/ui/scroll-area.js +2 -0
  314. package/dist/ui/section.d.ts +15 -0
  315. package/dist/ui/section.js +2 -0
  316. package/dist/ui/select.d.ts +15 -0
  317. package/dist/ui/select.js +2 -0
  318. package/dist/ui/select.test.d.ts +1 -0
  319. package/dist/ui/separator.d.ts +4 -0
  320. package/dist/ui/separator.js +2 -0
  321. package/dist/ui/sheet.d.ts +13 -0
  322. package/dist/ui/sheet.js +2 -0
  323. package/dist/ui/sidebar.d.ts +69 -0
  324. package/dist/ui/sidebar.js +2 -0
  325. package/dist/ui/skeleton.d.ts +3 -0
  326. package/dist/ui/skeleton.js +2 -0
  327. package/dist/ui/skip-link.d.ts +7 -0
  328. package/dist/ui/skip-link.js +2 -0
  329. package/dist/ui/slider.d.ts +4 -0
  330. package/dist/ui/slider.js +2 -0
  331. package/dist/ui/sonner.d.ts +3 -0
  332. package/dist/ui/sonner.js +2 -0
  333. package/dist/ui/spinner.d.ts +5 -0
  334. package/dist/ui/spinner.js +2 -0
  335. package/dist/ui/stack.d.ts +35 -0
  336. package/dist/ui/stack.js +2 -0
  337. package/dist/ui/stat-card-group.d.ts +10 -0
  338. package/dist/ui/stat-card-group.js +2 -0
  339. package/dist/ui/stepper.d.ts +10 -0
  340. package/dist/ui/stepper.js +2 -0
  341. package/dist/ui/switch.d.ts +6 -0
  342. package/dist/ui/switch.js +2 -0
  343. package/dist/ui/table.d.ts +10 -0
  344. package/dist/ui/table.js +2 -0
  345. package/dist/ui/tabs.d.ts +7 -0
  346. package/dist/ui/tabs.js +2 -0
  347. package/dist/ui/text.d.ts +6 -0
  348. package/dist/ui/text.js +2 -0
  349. package/dist/ui/textarea.d.ts +5 -0
  350. package/dist/ui/textarea.js +2 -0
  351. package/dist/ui/time-picker.d.ts +4 -0
  352. package/dist/ui/time-picker.js +2 -0
  353. package/dist/ui/toast.d.ts +28 -0
  354. package/dist/ui/toast.js +2 -0
  355. package/dist/ui/toaster.d.ts +1 -0
  356. package/dist/ui/toaster.js +2 -0
  357. package/dist/ui/toggle-group.d.ts +7 -0
  358. package/dist/ui/toggle-group.js +2 -0
  359. package/dist/ui/toggle.d.ts +9 -0
  360. package/dist/ui/toggle.js +2 -0
  361. package/dist/ui/tooltip.d.ts +7 -0
  362. package/dist/ui/tooltip.js +2 -0
  363. package/dist/ui/typography.d.ts +16 -0
  364. package/dist/ui/typography.js +2 -0
  365. package/dist/ui/use-media-query.d.ts +1 -0
  366. package/dist/ui/use-media-query.js +2 -0
  367. package/dist/ui/use-mobile.d.ts +1 -0
  368. package/dist/ui/use-mobile.js +2 -0
  369. package/dist/ui/use-reduced-motion.d.ts +1 -0
  370. package/dist/ui/use-reduced-motion.js +2 -0
  371. package/dist/ui/use-toast.d.ts +44 -0
  372. package/dist/ui/use-toast.js +2 -0
  373. package/dist/ui/useListState.d.ts +6 -0
  374. package/dist/ui/useListState.js +2 -0
  375. package/dist/ui/usecases/UseCaseCard.d.ts +7 -0
  376. package/dist/ui/usecases/UseCaseCard.js +2 -0
  377. package/dist/ui/usecases/UserStoryCard.d.ts +5 -0
  378. package/dist/ui/usecases/UserStoryCard.js +2 -0
  379. package/dist/ui/usecases/index.d.ts +2 -0
  380. package/dist/ui/usecases/index.js +2 -0
  381. package/dist/ui/utils.d.ts +2 -0
  382. package/dist/ui/utils.js +2 -0
  383. package/dist/ui/visualization/Visualization.d.ts +7 -0
  384. package/dist/ui/visualization/Visualization.js +2 -0
  385. package/dist/ui/visualization/Visualization.support.d.ts +15 -0
  386. package/dist/ui/visualization/Visualization.support.js +2 -0
  387. package/dist/ui/visualization/index.d.ts +1 -0
  388. package/dist/ui/visualization/index.js +2 -0
  389. package/dist/ui/visually-hidden.d.ts +8 -0
  390. package/dist/ui/visually-hidden.js +2 -0
  391. package/package.json +1691 -0
@@ -0,0 +1 @@
1
+ var $m=((m)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(m,{get:(y,P)=>(typeof require<"u"?require:y)[P]}):m)(function(m){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+m+'" is not supported')});import{cn as r}from"@contractspec/lib.ui-kit-core/utils";import{Slot as l}from"@radix-ui/react-slot";import{cva as a}from"class-variance-authority";import*as Z from"react";import{jsx as i}from"react/jsx-runtime";var c=a("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"}}),q=Z.forwardRef(({className:m,variant:y,size:P,asChild:g=!1,...u},T)=>{return i(g?l:"button",{ref:T,"data-slot":"button",className:r(c({variant:y,size:P,className:m})),...u})});q.displayName="Button";import{cn as x}from"@contractspec/lib.ui-kit-core/utils";import*as _ from"@radix-ui/react-label";import{jsx as j}from"react/jsx-runtime";function G({className:m,...y}){return j(_.Root,{"data-slot":"label",className:x("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",m),...y})}import{cn as b}from"@contractspec/lib.ui-kit-core/utils";import*as e from"@radix-ui/react-select";import{CheckIcon as s,ChevronDownIcon as S,ChevronUpIcon as mm}from"lucide-react";import{jsx as v,jsxs as K}from"react/jsx-runtime";function k({...m}){return v(e.Root,{"data-slot":"select",...m})}function Mm({...m}){return v(e.Group,{"data-slot":"select-group",...m})}function z({...m}){return v(e.Value,{"data-slot":"select-value",...m})}function V({className:m,size:y="default",children:P,...g}){return K(e.Trigger,{"data-slot":"select-trigger","data-size":y,className:b("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),...g,children:[P,v(e.Icon,{asChild:!0,children:v(S,{className:"size-4 opacity-50"})})]})}function D({className:m,children:y,position:P="popper",...g}){return v(e.Portal,{children:K(e.Content,{"data-slot":"select-content",className:b("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",P==="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:P,...g,children:[v(em,{}),v(e.Viewport,{className:b("p-1",P==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:y}),v(ym,{})]})})}function Om({className:m,...y}){return v(e.Label,{"data-slot":"select-label",className:b("px-2 py-1.5 text-muted-foreground text-xs",m),...y})}function J({className:m,children:y,...P}){return K(e.Item,{"data-slot":"select-item",className:b("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),...P,children:[v("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v(e.ItemIndicator,{children:v(s,{className:"size-4"})})}),v(e.ItemText,{children:y})]})}function Qm({className:m,...y}){return v(e.Separator,{"data-slot":"select-separator",className:b("pointer-events-none -mx-1 my-1 h-px bg-border",m),...y})}function em({className:m,...y}){return v(e.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:b("flex cursor-default items-center justify-center py-1",m),...y,children:v(mm,{className:"size-4"})})}function ym({className:m,...y}){return v(e.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:b("flex cursor-default items-center justify-center py-1",m),...y,children:v(S,{className:"size-4"})})}import{jsx as F,jsxs as $}from"react/jsx-runtime";var M=({value:m,options:y,onChange:P,placeholder:g="Sélectionner...",label:u,disabled:T=!1,className:E="",showCounts:X=!1})=>{return $("div",{className:`space-y-2 ${E}`,children:[u&&F(G,{className:"font-medium text-base text-foreground",children:u}),$(k,{value:m,onValueChange:P,disabled:T,children:[F(V,{className:"w-full",children:F(z,{placeholder:g})}),$(D,{className:"bg-background",children:[$(J,{value:"all",children:["Tous",X&&$("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",y.reduce((f,H)=>f+(H.count||0),0),")"]})]}),y.map((f)=>F(J,{value:f.value,children:$("div",{className:"flex w-full items-center justify-between",children:[F("span",{children:f.label}),X&&f.count!==void 0&&$("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",f.count,")"]})]})},f.value))]})]})]})};import{cn as Pm}from"@contractspec/lib.ui-kit-core/utils";import{jsx as vm}from"react/jsx-runtime";function U({className:m,type:y,ref:P,...g}){return vm("input",{ref:P,type:y,"data-slot":"input",className:Pm("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",m),...g})}import{Search as gm,X as Rm}from"lucide-react";import{jsx as w,jsxs as o}from"react/jsx-runtime";var O=({value:m,onChange:y,placeholder:P="Rechercher...",onClear:g,disabled:u=!1,className:T="",autoFocus:E=!1})=>{let X=()=>{y(""),g?.()};return o("div",{className:`relative w-full ${T}`,children:[w("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:w(gm,{className:"h-4 w-4 text-muted-foreground"})}),w(U,{type:"text",value:m,onChange:(f)=>y(f.target.value),placeholder:P,disabled:u,autoFocus:E,className:"pr-10 pl-10"}),m&&w("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:o(q,{type:"button",variant:"ghost",size:"sm",onClick:X,disabled:u,className:"h-6 w-6 p-0 hover:bg-transparent",children:[w(Rm,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),w("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};import*as A from"@radix-ui/react-collapsible";import{jsx as Q}from"react/jsx-runtime";function B({...m}){return Q(A.Root,{"data-slot":"collapsible",...m})}function p({...m}){return Q(A.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...m})}function N({...m}){return Q(A.CollapsibleContent,{"data-slot":"collapsible-content",...m})}import{ChevronDown as tm,ChevronUp as um,Filter as fm}from"lucide-react";import{useState as Tm}from"react";import{jsx as t,jsxs as C}from"react/jsx-runtime";var bm=({searchValue:m,onSearchChange:y,searchPlaceholder:P,filters:g=[],isLoading:u=!1,disabled:T=!1,className:E="",collapsible:X=!0,defaultCollapsed:f=!1})=>{let[H,h]=Tm(f),W=g.length>0,I=g.filter((R)=>R.value).length,L=X&&W,Y=()=>t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:g.map((R)=>t(M,{value:R.value,options:R.options,onChange:R.onChange,label:R.label,disabled:T||u,showCounts:R.showCounts,className:"min-w-0"},R.key))});return C("div",{className:`space-y-4 ${E}`,children:[C("div",{className:"flex flex-col gap-4 sm:flex-row",children:[t("div",{className:"flex-1",children:t(O,{value:m,onChange:y,placeholder:P,disabled:T||u,className:"w-full"})}),L&&C(B,{open:!H,onOpenChange:h,className:"sm:hidden",children:[t(p,{asChild:!0,children:C(q,{variant:"outline",className:"sm:hidden",disabled:T||u,children:[t(fm,{className:"mr-2 h-4 w-4"}),"Filtres",I>0&&t("span",{className:"ml-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm",children:I}),H?t(tm,{className:"ml-2 h-4 w-4"}):t(um,{className:"ml-2 h-4 w-4"})]})}),t(N,{className:"mt-4 space-y-4",children:t(Y,{})})]})]}),W&&t("div",{className:"hidden sm:block",children:t(Y,{})}),I>0&&C("div",{className:"flex flex-wrap items-center gap-2",children:[t("span",{className:"text-base text-muted-foreground",children:"Filtres actifs:"}),g.filter((R)=>R.value).map((R)=>{let n=R.options.find((d)=>d.value===R.value);return C(q,{variant:"secondary",size:"sm",onClick:()=>R.onChange(""),disabled:T||u,className:"h-7 px-2 text-sm",children:[R.label,": ",n?.label,t("span",{className:"ml-1",children:"×"})]},R.key)})]})]})};export{bm as SearchAndFilter};
@@ -0,0 +1 @@
1
+ var c=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import{clsx as s}from"clsx";import{twMerge as i}from"tailwind-merge";function r(...e){return i(s(e))}import{jsx as l}from"react/jsx-runtime";function a({className:e,...t}){return l("div",{"data-slot":"skeleton",className:r("animate-pulse rounded-md bg-accent",e),...t})}import{jsx as n}from"react/jsx-runtime";function C({count:e=6,className:t="",itemClassName:o=""}){return n("div",{className:`space-y-3 ${t}`,children:Array.from({length:e}).map((p,m)=>n(a,{className:`h-20 rounded-md ${o}`},m))})}export{C as SkeletonList};
@@ -0,0 +1 @@
1
+ var v=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(f,h)=>(typeof require<"u"?require:f)[h]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{jsx as g}from"react/jsx-runtime";function z({className:d,...f}){return g("select",{"data-slot":"native-select",className:q("h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs outline-none 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 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",d),...f})}function A({...d}){return g("option",{"data-slot":"native-select-option",...d})}function B({...d}){return g("optgroup",{"data-slot":"native-select-opt-group",...d})}export{A as NativeSelectOption,B as NativeSelectOptGroup,z as NativeSelect};
@@ -0,0 +1 @@
1
+ var h=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,z)=>(typeof require<"u"?require:q)[z]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import*as G from"@radix-ui/react-navigation-menu";import{cva as Z}from"class-variance-authority";import{ChevronDownIcon as _}from"lucide-react";import{jsx as H,jsxs as U}from"react/jsx-runtime";function $({className:f,children:q,viewport:z=!0,...E}){return U(G.Root,{"data-slot":"navigation-menu","data-viewport":z,className:J("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",f),...E,children:[q,z&&H(I,{})]})}function D({className:f,...q}){return H(G.List,{"data-slot":"navigation-menu-list",className:J("group flex flex-1 list-none items-center justify-center gap-1",f),...q})}function P({className:f,...q}){return H(G.Item,{"data-slot":"navigation-menu-item",className:J("relative",f),...q})}var S=Z("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:hover:bg-accent");function b({className:f,children:q,...z}){return U(G.Trigger,{"data-slot":"navigation-menu-trigger",className:J(S(),"group",f),...z,children:[q," ",H(_,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function V({className:f,...q}){return H(G.Content,{"data-slot":"navigation-menu-content",className:J("data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out md:absolute md:w-auto","data-[state=closed]:group-data-[viewport=false]/navigation-menu:fade-out-0 data-[state=open]:group-data-[viewport=false]/navigation-menu:fade-in-0 data-[state=closed]:group-data-[viewport=false]/navigation-menu:zoom-out-95 data-[state=open]:group-data-[viewport=false]/navigation-menu:zoom-in-95 bg-background **:data-[slot=navigation-menu-link]:focus:outline-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow-2xs group-data-[viewport=false]/navigation-menu:duration-200 data-[state=closed]:group-data-[viewport=false]/navigation-menu:animate-out data-[state=open]:group-data-[viewport=false]/navigation-menu:animate-in",f),...q})}function I({className:f,...q}){return H("div",{className:J("absolute top-full left-0 isolate z-50 flex justify-center"),children:H(G.Viewport,{"data-slot":"navigation-menu-viewport",className:J("data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-2xs data-[state=closed]:animate-out data-[state=open]:animate-in md:w-(--radix-navigation-menu-viewport-width)",f),...q})})}function Q({className:f,...q}){return H(G.Link,{"data-slot":"navigation-menu-link",className:J("flex flex-col gap-1 rounded-xs p-2 text-sm outline-hidden transition-all hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",f),...q})}function C({className:f,...q}){return H(G.Indicator,{"data-slot":"navigation-menu-indicator",className:J("data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=visible]:animate-in",f),...q,children:H("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import{cva as T}from"class-variance-authority";import*as W from"react";import{jsx as B,jsxs as O}from"react/jsx-runtime";var k=T("",{variants:{width:{sm:"w-[280px]",md:"w-[500px]",lg:"w-[900px]",full:"w-[calc(100vw-2rem)]"},padding:{none:"",sm:"p-2",md:"p-3"}},defaultVariants:{width:"lg",padding:"md"}});function m({width:f,padding:q,className:z,...E}){return B("div",{className:K(k({width:f,padding:q}),z),...E})}function p({title:f,items:q}){return O("div",{children:[f&&B("div",{className:"mb-2 font-semibold text-base",children:f}),B("ul",{className:"grid w-[280px] gap-2",children:q.map((z)=>B("li",{children:B(Q,{asChild:!0,children:O("a",{href:z.href,className:"block rounded-md p-2 hover:bg-accent",children:[B("div",{className:"font-medium text-base",children:z.label}),z.description&&B("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:z.description})]})})},z.href))})]})}function l({columns:f}){return B("div",{className:"grid w-[500px] grid-cols-2 gap-3",children:f.map((q,z)=>O("div",{children:[q.title&&B("div",{className:"mb-2 font-semibold text-base text-muted-foreground",children:q.title}),B("ul",{className:"grid gap-2",children:q.items.map((E)=>B("li",{children:B(Q,{asChild:!0,children:O("a",{href:E.href,className:"block rounded-md p-2 hover:bg-accent",children:[B("div",{className:"font-medium text-base",children:E.label}),E.description&&B("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:E.description})]})})},E.href))})]},z))})}function g({categories:f,modules:q,activeCategory:z,setActiveCategory:E,activeKey:L,setActiveKey:R,preview:X}){let Y=W.useMemo(()=>q.filter((F)=>z==="all"||F.categories.includes(z)),[q,z]);return O("div",{className:"flex items-start gap-3",children:[O("div",{className:"max-h-96 w-48 shrink-0 overflow-auto pr-1",children:[B("button",{className:`w-full rounded-md px-3 py-2 text-left text-base transition-colors hover:bg-muted ${z==="all"?"bg-muted":""}`,onMouseEnter:()=>E("all"),onFocus:()=>E("all"),onClick:()=>E("all"),children:"All"}),f.map((F)=>B("button",{className:`w-full rounded-md px-3 py-2 text-left text-base transition-colors hover:bg-muted ${z===F.key?"bg-muted":""}`,onMouseEnter:()=>E(F.key),onFocus:()=>E(F.key),onClick:()=>E(F.key),children:F.label},F.key))]}),B("div",{className:"grid max-h-96 flex-1 grid-cols-1 gap-1 overflow-auto pr-1",children:Y.map((F)=>B(Q,{asChild:!0,children:O("a",{href:`/modules/${F.key}`,className:"rounded-md px-3 py-2 text-left transition-colors hover:bg-muted",onMouseEnter:()=>R(F.key),onFocus:()=>R(F.key),children:[B("div",{className:"font-medium text-base",children:F.title}),F.description&&B("div",{className:"line-clamp-2 text-muted-foreground text-sm",children:F.description})]})},F.key))}),B("div",{className:"w-[320px] shrink-0",children:X})]})}export{k as navPanelVariants,b as NavTrigger,p as NavSimpleList,$ as NavRoot,m as NavPanel,D as NavList,Q as NavLink,P as NavItem,V as NavContent,l as NavColumns,g as NavCategorizedWithPreview};
@@ -0,0 +1 @@
1
+ var P=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,E)=>(typeof require<"u"?require:q)[E]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import*as z from"@radix-ui/react-navigation-menu";import{cva as H}from"class-variance-authority";import{ChevronDownIcon as J}from"lucide-react";import{jsx as A,jsxs as F}from"react/jsx-runtime";function X({className:f,children:q,viewport:E=!0,...G}){return F(z.Root,{"data-slot":"navigation-menu","data-viewport":E,className:B("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",f),...G,children:[q,E&&A(O,{})]})}function Y({className:f,...q}){return A(z.List,{"data-slot":"navigation-menu-list",className:B("group flex flex-1 list-none items-center justify-center gap-1",f),...q})}function Z({className:f,...q}){return A(z.Item,{"data-slot":"navigation-menu-item",className:B("relative",f),...q})}var K=H("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:hover:bg-accent");function _({className:f,children:q,...E}){return F(z.Trigger,{"data-slot":"navigation-menu-trigger",className:B(K(),"group",f),...E,children:[q," ",A(J,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function $({className:f,...q}){return A(z.Content,{"data-slot":"navigation-menu-content",className:B("data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out md:absolute md:w-auto","data-[state=closed]:group-data-[viewport=false]/navigation-menu:fade-out-0 data-[state=open]:group-data-[viewport=false]/navigation-menu:fade-in-0 data-[state=closed]:group-data-[viewport=false]/navigation-menu:zoom-out-95 data-[state=open]:group-data-[viewport=false]/navigation-menu:zoom-in-95 bg-background **:data-[slot=navigation-menu-link]:focus:outline-hidden **:data-[slot=navigation-menu-link]:focus:ring-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow-2xs group-data-[viewport=false]/navigation-menu:duration-200 data-[state=closed]:group-data-[viewport=false]/navigation-menu:animate-out data-[state=open]:group-data-[viewport=false]/navigation-menu:animate-in",f),...q})}function O({className:f,...q}){return A("div",{className:B("absolute top-full left-0 isolate z-50 flex justify-center"),children:A(z.Viewport,{"data-slot":"navigation-menu-viewport",className:B("data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-2xs data-[state=closed]:animate-out data-[state=open]:animate-in md:w-(--radix-navigation-menu-viewport-width)",f),...q})})}function b({className:f,...q}){return A(z.Link,{"data-slot":"navigation-menu-link",className:B("flex flex-col gap-1 rounded-xs p-2 text-sm outline-hidden transition-all hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",f),...q})}function D({className:f,...q}){return A(z.Indicator,{"data-slot":"navigation-menu-indicator",className:B("data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=visible]:animate-in",f),...q,children:A("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}export{K as navigationMenuTriggerStyle,O as NavigationMenuViewport,_ as NavigationMenuTrigger,Y as NavigationMenuList,b as NavigationMenuLink,Z as NavigationMenuItem,D as NavigationMenuIndicator,$ as NavigationMenuContent,X as NavigationMenu};
@@ -0,0 +1 @@
1
+ var z=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(G,K)=>(typeof require<"u"?require:G)[K]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as X}from"@contractspec/lib.ui-kit-core/utils";import{Slot as Y}from"@radix-ui/react-slot";import{cva as Z}from"class-variance-authority";import*as P from"react";import{jsx as $}from"react/jsx-runtime";var _=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"}}),M=P.forwardRef(({className:q,variant:G,size:K,asChild:O=!1,...U},W)=>{return $(O?Y:"button",{ref:W,"data-slot":"button",className:X(_({variant:G,size:K,className:q})),...U})});M.displayName="Button";import{AlertTriangle as A,Home as D,RefreshCw as H}from"lucide-react";import Q from"react";import{jsx as J,jsxs as L}from"react/jsx-runtime";var S=({error:q,errorId:G,resetError:K})=>{return J("div",{className:"flex min-h-screen items-center justify-center bg-gray-50 px-4",children:L("div",{className:"w-full max-w-md rounded-lg bg-white p-6 text-center shadow-lg",children:[J("div",{className:"mb-4 flex justify-center",children:J(A,{className:"h-12 w-12 text-red-500"})}),J("h1",{className:"mb-2 font-semibold text-2xl text-gray-900",children:"Une erreur s'est produite"}),J("p",{className:"mb-6 text-gray-600",children:"Nous nous excusons pour ce désagrément. Notre équipe a été notifiée et travaille à résoudre le problème."}),!1,L("div",{className:"flex flex-col justify-center gap-3 sm:flex-row",children:[L(M,{onClick:K,className:"flex items-center gap-2",children:[J(H,{className:"h-4 w-4"}),"Réessayer"]}),L(M,{onClick:()=>window.location.href="/",variant:"secondary",className:"flex items-center gap-2",children:[J(D,{className:"h-4 w-4"}),"Accueil"]})]}),G&&L("p",{className:"mt-4 text-gray-500 text-sm",children:["Code d'erreur: ",G]})]})})};class g extends Q.Component{constructor(q){super(q);this.state={hasError:!1,error:null,errorId:null}}static getDerivedStateFromError(q){return{hasError:!0,error:q}}componentDidCatch(q,G){let K=`err_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;this.setState({errorId:K}),this.props.onError?.(q,G)}resetError=()=>{this.setState({hasError:!1,error:null,errorId:null})};render(){if(this.state.hasError&&this.state.error){let q=this.props.fallback||S;return J(q,{error:this.state.error,errorId:this.state.errorId,resetError:this.resetError})}return this.props.children}}var B=()=>{return Q.useCallback((q)=>{throw q},[])};export{B as useErrorHandler,g as ErrorBoundary};
@@ -0,0 +1 @@
1
+ var e=((r)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(o,a)=>(typeof require<"u"?require:o)[a]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});export{u as useErrorHandler,n as ErrorBoundary};
@@ -0,0 +1 @@
1
+ var bv=((v)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(v,{get:(w,R)=>(typeof require<"u"?require:w)[R]}):v)(function(v){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+v+'" is not supported')});import{cn as F1}from"@contractspec/lib.ui-kit-core/utils";import{Slot as u1}from"@radix-ui/react-slot";import{cva as N1}from"class-variance-authority";import*as $1 from"react";import{jsx as y1}from"react/jsx-runtime";var k1=N1("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"}}),J=$1.forwardRef(({className:v,variant:w,size:R,asChild:T=!1,...G},_)=>{return y1(T?u1:"button",{ref:_,"data-slot":"button",className:F1(k1({variant:w,size:R,className:v})),...G})});J.displayName="Button";import{cn as C1}from"@contractspec/lib.ui-kit-core/utils";import*as z1 from"@radix-ui/react-label";import{jsx as V1}from"react/jsx-runtime";function G1({className:v,...w}){return V1(z1.Root,{"data-slot":"label",className:C1("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",v),...w})}import{cn as U}from"@contractspec/lib.ui-kit-core/utils";import*as z from"@radix-ui/react-select";import{CheckIcon as S1,ChevronDownIcon as M1,ChevronUpIcon as L1}from"lucide-react";import{jsx as K,jsxs as j}from"react/jsx-runtime";function A({...v}){return K(z.Root,{"data-slot":"select",...v})}function Ov({...v}){return K(z.Group,{"data-slot":"select-group",...v})}function g({...v}){return K(z.Value,{"data-slot":"select-value",...v})}function d({className:v,size:w="default",children:R,...T}){return j(z.Trigger,{"data-slot":"select-trigger","data-size":w,className:U("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",v),...T,children:[R,K(z.Icon,{asChild:!0,children:K(M1,{className:"size-4 opacity-50"})})]})}function l({className:v,children:w,position:R="popper",...T}){return K(z.Portal,{children:j(z.Content,{"data-slot":"select-content",className:U("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",R==="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",v),position:R,...T,children:[K(P1,{}),K(z.Viewport,{className:U("p-1",R==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:w}),K(h1,{})]})})}function Wv({className:v,...w}){return K(z.Label,{"data-slot":"select-label",className:U("px-2 py-1.5 text-muted-foreground text-xs",v),...w})}function S({className:v,children:w,...R}){return j(z.Item,{"data-slot":"select-item",className:U("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",v),...R,children:[K("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:K(z.ItemIndicator,{children:K(S1,{className:"size-4"})})}),K(z.ItemText,{children:w})]})}function Yv({className:v,...w}){return K(z.Separator,{"data-slot":"select-separator",className:U("pointer-events-none -mx-1 my-1 h-px bg-border",v),...w})}function P1({className:v,...w}){return K(z.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:U("flex cursor-default items-center justify-center py-1",v),...w,children:K(L1,{className:"size-4"})})}function h1({className:v,...w}){return K(z.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:U("flex cursor-default items-center justify-center py-1",v),...w,children:K(M1,{className:"size-4"})})}import{jsx as L,jsxs as f}from"react/jsx-runtime";var i=({value:v,options:w,onChange:R,placeholder:T="Sélectionner...",label:G,disabled:_=!1,className:M="",showCounts:W=!1})=>{return f("div",{className:`space-y-2 ${M}`,children:[G&&L(G1,{className:"font-medium text-base text-foreground",children:G}),f(A,{value:v,onValueChange:R,disabled:_,children:[L(d,{className:"w-full",children:L(g,{placeholder:T})}),f(l,{className:"bg-background",children:[f(S,{value:"all",children:["Tous",W&&f("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",w.reduce((O,D)=>O+(D.count||0),0),")"]})]}),w.map((O)=>L(S,{value:O.value,children:f("div",{className:"flex w-full items-center justify-between",children:[L("span",{children:O.label}),W&&O.count!==void 0&&f("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",O.count,")"]})]})},O.value))]})]})]})};import{ChevronLeft as A1,ChevronRight as g1,ChevronsLeft as d1,ChevronsRight as l1}from"lucide-react";import{jsx as Y,jsxs as Q}from"react/jsx-runtime";var r=({currentPage:v,totalPages:w,totalItems:R,itemsPerPage:T,onPageChange:G,onItemsPerPageChange:_,disabled:M=!1,className:W="",showItemsPerPage:O=!0,itemsPerPageOptions:D=[10,25,50,100]})=>{let V=(v-1)*T+1,u=Math.min(v*T,R),I=v>1&&!M,q=v<w&&!M,N=()=>{if(w<=7)return Array.from({length:w},($,H)=>H+1);if(v<=3)return[1,2,3,4,5,-1,w];if(v>=w-2)return[1,-1,w-4,w-3,w-2,w-1,w];return[1,-1,v-1,v,v+1,-1,w]};if(w===0)return null;return Q("div",{className:`flex flex-col items-center justify-between gap-4 sm:flex-row ${W}`,children:[Q("div",{className:"order-2 text-base text-muted-foreground sm:order-1",children:["Affichage de ",V," à ",u," sur ",R," résultats"]}),Q("div",{className:"order-1 flex items-center gap-2 sm:order-2",children:[Q(J,{variant:"outline",size:"sm",onClick:()=>G(1),disabled:!I,className:"hidden h-8 w-8 p-0 sm:flex",children:[Y(d1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Première page"})]}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(v-1),disabled:!I,className:"h-8 w-8 p-0",children:[Y(A1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Page précédente"})]}),Y("div",{className:"flex items-center gap-1",children:N().map(($,H)=>{if($===-1)return Y("span",{className:"px-2 py-1 text-muted-foreground",children:"..."},`ellipsis-${H}`);return Y(J,{variant:$===v?"default":"outline",size:"sm",onClick:()=>G($),disabled:M,className:"h-8 min-w-8 px-2",children:$},$)})}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(v+1),disabled:!q,className:"h-8 w-8 p-0",children:[Y(g1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Page suivante"})]}),Q(J,{variant:"outline",size:"sm",onClick:()=>G(w),disabled:!q,className:"hidden h-8 w-8 p-0 sm:flex",children:[Y(l1,{className:"h-4 w-4"}),Y("span",{className:"sr-only",children:"Dernière page"})]})]}),O&&_&&Q("div",{className:"order-3 flex items-center gap-2 text-base",children:[Y("span",{className:"text-muted-foreground",children:"Afficher:"}),Q(A,{value:T.toString(),onValueChange:($)=>_(parseInt($)),disabled:M,children:[Y(d,{className:"h-8 w-16",children:Y(g,{})}),Y(l,{className:"bg-background",children:D.map(($)=>Y(S,{value:$.toString(),children:$},$))})]})]})]})};import{cn as p1}from"@contractspec/lib.ui-kit-core/utils";import{jsx as n1}from"react/jsx-runtime";function X1({className:v,type:w,ref:R,...T}){return n1("input",{ref:R,type:w,"data-slot":"input",className:p1("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",v),...T})}import{Search as o1,X as e1}from"lucide-react";import{jsx as k,jsxs as _1}from"react/jsx-runtime";var a=({value:v,onChange:w,placeholder:R="Rechercher...",onClear:T,disabled:G=!1,className:_="",autoFocus:M=!1})=>{let W=()=>{w(""),T?.()};return _1("div",{className:`relative w-full ${_}`,children:[k("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:k(o1,{className:"h-4 w-4 text-muted-foreground"})}),k(X1,{type:"text",value:v,onChange:(O)=>w(O.target.value),placeholder:R,disabled:G,autoFocus:M,className:"pr-10 pl-10"}),v&&k("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:_1(J,{type:"button",variant:"ghost",size:"sm",onClick:W,disabled:G,className:"h-6 w-6 p-0 hover:bg-transparent",children:[k(e1,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),k("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import{jsx as m}from"react/jsx-runtime";function p({className:v,...w}){return m("div",{"data-slot":"card",className:B("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-2xs",v),...w})}function nv({className:v,...w}){return m("div",{"data-slot":"card-header",className:B("@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",v),...w})}function ov({className:v,...w}){return m("div",{"data-slot":"card-title",className:B("font-semibold leading-none",v),...w})}function ev({className:v,...w}){return m("div",{"data-slot":"card-description",className:B("text-muted-foreground text-sm",v),...w})}function xv({className:v,...w}){return m("div",{"data-slot":"card-action",className:B("col-start-2 row-span-2 row-start-1 self-start justify-self-end",v),...w})}function n({className:v,...w}){return m("div",{"data-slot":"card-content",className:B("px-6",v),...w})}function cv({className:v,...w}){return m("div",{"data-slot":"card-footer",className:B("flex items-center px-6 [.border-t]:pt-6",v),...w})}import*as y from"@radix-ui/react-collapsible";import{jsx as s}from"react/jsx-runtime";function q1({...v}){return s(y.Root,{"data-slot":"collapsible",...v})}function J1({...v}){return s(y.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...v})}function K1({...v}){return s(y.CollapsibleContent,{"data-slot":"collapsible-content",...v})}import{cn as v1}from"@contractspec/lib.ui-kit-core/utils";import{cva as w1}from"class-variance-authority";import{jsx as R1}from"react/jsx-runtime";var x1=w1("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function F({className:v,gap:w,align:R,justify:T,as:G="div",ref:_,...M}){return R1(G,{ref:_,className:v1(x1({gap:w,align:R,justify:T}),v),...M})}var c1=w1("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function b1({className:v,gap:w,align:R,justify:T,wrap:G,as:_="div",ref:M,...W}){return R1(_,{ref:M,className:v1(c1({gap:w,align:R,justify:T,wrap:G}),v),...W})}var t1=w1("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function v0({className:v,gap:w,align:R,justify:T,wrap:G,as:_="div",ref:M,...W}){return R1(_,{ref:M,className:v1(t1({gap:w,align:R,justify:T,wrap:G}),v),...W})}import{cn as j1}from"@contractspec/lib.ui-kit-core/utils";import*as O1 from"@radix-ui/react-separator";import{jsx as i1}from"react/jsx-runtime";function W1({className:v,orientation:w="horizontal",decorative:R=!0,...T}){return i1(O1.Root,{"data-slot":"separator",decorative:R,orientation:w,className:j1("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",v),...T})}import{ChevronDown as r1,ChevronUp as a1,Filter as s1}from"lucide-react";import{useState as vv}from"react";import{jsx as Z,jsxs as C}from"react/jsx-runtime";var T1=({searchValue:v,onSearchChange:w,searchPlaceholder:R,filters:T=[],isLoading:G=!1,disabled:_=!1,className:M="",collapsible:W=!0,defaultCollapsed:O=!1})=>{let[D,V]=vv(O),u=T.length>0,I=T.filter(($)=>$.value).length,q=W&&u,N=()=>Z("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:T.map(($)=>Z(i,{value:$.value,options:$.options,onChange:$.onChange,label:$.label,disabled:_||G,showCounts:$.showCounts,className:"min-w-0"},$.key))});return C("div",{className:`space-y-4 ${M}`,children:[C("div",{className:"flex flex-col gap-4 sm:flex-row",children:[Z("div",{className:"flex-1",children:Z(a,{value:v,onChange:w,placeholder:R,disabled:_||G,className:"w-full"})}),q&&C(q1,{open:!D,onOpenChange:V,className:"sm:hidden",children:[Z(J1,{asChild:!0,children:C(J,{variant:"outline",className:"sm:hidden",disabled:_||G,children:[Z(s1,{className:"mr-2 h-4 w-4"}),"Filtres",I>0&&Z("span",{className:"ml-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm",children:I}),D?Z(r1,{className:"ml-2 h-4 w-4"}):Z(a1,{className:"ml-2 h-4 w-4"})]})}),Z(K1,{className:"mt-4 space-y-4",children:Z(N,{})})]})]}),u&&Z("div",{className:"hidden sm:block",children:Z(N,{})}),I>0&&C("div",{className:"flex flex-wrap items-center gap-2",children:[Z("span",{className:"text-base text-muted-foreground",children:"Filtres actifs:"}),T.filter(($)=>$.value).map(($)=>{let H=$.options.find((P)=>P.value===$.value);return C(J,{variant:"secondary",size:"sm",onClick:()=>$.onChange(""),disabled:_||G,className:"h-7 px-2 text-sm",children:[$.label,": ",H?.label,Z("span",{className:"ml-1",children:"×"})]},$.key)})]})]})};import{AlertTriangle as wv,Loader2 as Y1,Plus as o,RefreshCcw as Z1}from"lucide-react";import E1 from"next/link";import{jsx as b,jsxs as X,Fragment as e}from"react/jsx-runtime";function B0({title:v,description:w,header:R,items:T,totalItems:G,totalPages:_,isLoading:M,isFetching:W,error:O,listState:D,searchPlaceholder:V,filters:u=[],onRefresh:I,primaryAction:q,toolbar:N,renderItem:$,renderEmpty:H,renderStats:P,className:x="",itemClassName:I1=""}){let{searchQuery:c,setSearchQuery:Q1,filters:t,setFilter:D1,currentPage:H1,itemsPerPage:U1,setCurrentPage:f1,setItemsPerPage:B1}=D;if(M&&!T.length)return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),b("div",{className:"flex min-h-[400px] items-center justify-center",children:b(p,{children:X(n,{className:"flex items-center gap-4 p-6",children:[b(Y1,{className:"h-8 w-8 animate-spin text-primary"}),X("div",{children:[b("h3",{className:"font-medium",children:"Chargement..."}),b("p",{className:"text-base text-muted-foreground",children:"Récupération des données en cours"})]})]})})})]});if(O&&!T.length)return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),b("div",{className:"flex min-h-[400px] items-center justify-center",children:b(p,{children:X(n,{className:"flex flex-col items-center gap-4 p-6 text-center",children:[b(wv,{className:"h-12 w-12 text-destructive"}),X("div",{children:[b("h3",{className:"font-medium",children:"Erreur de chargement"}),b("p",{className:"text-base text-muted-foreground",children:O.message||"Une erreur est survenue"})]}),I&&X(J,{onClick:I,variant:"outline",size:"sm",children:[b(Z1,{className:"mr-2 h-4 w-4"}),"Réessayer"]})]})})})]});let m1=u.map((E)=>({key:E.key,label:E.label,value:t[E.key]||"",options:E.options,onChange:(h)=>{D1(E.key,h==="all"?"":h||"")},showCounts:E.showCounts}));return X(F,{className:`space-y-4 md:space-y-6 ${x}`,children:[R?R:X(b1,{className:"items-center justify-between",children:[X(F,{className:"gap-1",children:[b("h1",{className:"font-bold text-2xl md:text-3xl",children:v}),w&&b("p",{className:"text-base text-muted-foreground",children:w})]}),X(b1,{className:"items-center gap-4",children:[N,(M||W)&&X("div",{className:"flex items-center gap-2 text-base text-muted-foreground",children:[b(Y1,{className:"h-4 w-4 animate-spin"}),b("span",{className:"hidden sm:inline",children:"Mise à jour..."})]}),I&&X(J,{variant:"outline",size:"sm",onClick:I,disabled:Boolean(M),"aria-label":"Rafraîchir",children:[b(Z1,{className:`mr-2 h-4 w-4 ${M||W?"animate-spin":""}`}),b("span",{className:"hidden sm:inline",children:"Rafraîchir"})]}),q&&b(e,{children:q.href?b(E1,{href:q.href,children:X(J,{children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),b("span",{className:"hidden sm:inline",children:q.label}),b("span",{className:"sm:hidden",children:"Nouveau"})]})}):X(J,{onClick:q.onClick,children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),b("span",{className:"hidden sm:inline",children:q.label}),b("span",{className:"sm:hidden",children:"Nouveau"})]})})]})]}),P&&X(e,{children:[P(T),b(W1,{})]}),b(T1,{searchValue:c,onSearchChange:Q1,searchPlaceholder:V,filters:m1,isLoading:M}),T.length===0&&!M?H?H():b(p,{children:X(n,{className:"flex flex-col items-center gap-4 p-8 text-center",children:[b("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:b("div",{className:"h-6 w-6 rounded-full bg-muted-foreground/20"})}),X("div",{children:[b("h3",{className:"font-medium",children:"Aucun élément trouvé"}),b("p",{className:"text-base text-muted-foreground",children:c||Object.values(t).some((E)=>E)?"Essayez de modifier vos critères de recherche":"Commencez par créer votre premier élément"})]}),q&&!c&&!Object.values(t).some((E)=>E)&&b(e,{children:q.href?b(E1,{href:q.href,children:X(J,{children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),q.label]})}):X(J,{onClick:q.onClick,children:[q.icon||b(o,{className:"mr-2 h-4 w-4"}),q.label]})})]})}):X(e,{children:[b("div",{className:`space-y-4 ${I1}`,children:T.map((E,h)=>$(E,h))}),_>1&&b(r,{currentPage:H1,totalPages:_,totalItems:G,itemsPerPage:U1,onPageChange:f1,onItemsPerPageChange:B1,disabled:M})]})]})}export{B0 as ListPage};
@@ -0,0 +1 @@
1
+ var o=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});export{P as ListPage};
File without changes
@@ -0,0 +1 @@
1
+ var Z=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(A,z)=>(typeof require<"u"?require:A)[z]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as I}from"@contractspec/lib.ui-kit-core/utils";import{cva as J}from"class-variance-authority";import{jsx as L}from"react/jsx-runtime";var R=J("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function K({className:q,gap:A,align:z,justify:C,as:D="div",ref:E,...F}){return L(D,{ref:E,className:I(R({gap:A,align:z,justify:C}),q),...F})}var T=J("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function P({className:q,gap:A,align:z,justify:C,wrap:D,as:E="div",ref:F,...G}){return L(E,{ref:F,className:I(T({gap:A,align:z,justify:C,wrap:D}),q),...G})}var U=J("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function H({className:q,gap:A,align:z,justify:C,wrap:D,as:E="div",ref:F,...G}){return L(E,{ref:F,className:I(U({gap:A,align:z,justify:C,wrap:D}),q),...G})}import{cn as W}from"@contractspec/lib.ui-kit-core/utils";import{cva as X}from"class-variance-authority";import{jsx as M,jsxs as O}from"react/jsx-runtime";var Y=X("",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}});function N({breadcrumb:q,title:A,subtitle:z,actions:C,spacing:D,className:E}){return O(K,{className:W(Y({spacing:D}),E),children:[q,O(P,{className:"flex-col items-start justify-between md:flex-row",children:[O(K,{className:"gap-1",children:[M("h1",{className:"font-semibold text-2xl md:text-3xl",children:A}),z?M("p",{className:"text-base text-muted-foreground",children:z}):null]}),C?M("div",{className:"flex items-center gap-2",children:C}):null]})]})}export{N as PageHeader};
@@ -0,0 +1 @@
1
+ var P=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(D,F)=>(typeof require<"u"?require:D)[F]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import{Slot as H}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import*as E from"react";import{jsx as A}from"react/jsx-runtime";var X=d("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"}}),w=E.forwardRef(({className:q,variant:D,size:F,asChild:J=!1,...K},O)=>{return A(J?H:"button",{ref:O,"data-slot":"button",className:B(X({variant:D,size:F,className:q})),...K})});w.displayName="Button";import{cn as Y}from"@contractspec/lib.ui-kit-core/utils";import{cva as Z}from"class-variance-authority";import{jsx as _}from"react/jsx-runtime";var L=Z("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function x({className:q,gap:D,align:F,justify:J,as:K="div",ref:O,...T}){return _(K,{ref:O,className:Y(L({gap:D,align:F,justify:J}),q),...T})}var W=Z("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function I({className:q,gap:D,align:F,justify:J,wrap:K,as:O="div",ref:T,...U}){return _(O,{ref:T,className:Y(W({gap:D,align:F,justify:J,wrap:K}),q),...U})}var z=Z("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function j({className:q,gap:D,align:F,justify:J,wrap:K,as:O="div",ref:T,...U}){return _(O,{ref:T,className:Y(z({gap:D,align:F,justify:J,wrap:K}),q),...U})}import{cn as Q}from"@contractspec/lib.ui-kit-core/utils";import{ChevronLeft as C,ChevronRight as y,MoreHorizontal as b}from"lucide-react";import{jsx as G,jsxs as $}from"react/jsx-runtime";function n({className:q,...D}){return G(I,{as:"nav",role:"navigation","aria-label":"pagination",justify:"center",wrap:"nowrap",className:Q("mx-auto w-full",q),...D})}function c({className:q,ref:D,...F}){return G("ul",{ref:D,className:Q(W({align:"center",gap:"xs",wrap:"nowrap"}),q),...F})}function r({className:q,ref:D,...F}){return G("li",{ref:D,className:Q("",q),...F})}function M({className:q,isActive:D,size:F="icon",...J}){return G("a",{"aria-current":D?"page":void 0,className:Q(X({variant:D?"outline":"ghost",size:F}),q),...J})}function i({className:q,...D}){return $(M,{"aria-label":"Go to previous page",size:"default",className:Q("gap-1 pl-2.5",q),...D,children:[G(C,{className:"h-4 w-4"}),G("span",{children:"Previous"})]})}function t({className:q,...D}){return $(M,{"aria-label":"Go to next page",size:"default",className:Q("gap-1 pr-2.5",q),...D,children:[G("span",{children:"Next"}),G(y,{className:"h-4 w-4"})]})}function s({className:q,...D}){return $("span",{"aria-hidden":!0,className:Q(W({align:"center",gap:"none",justify:"center",wrap:"nowrap"}),"h-9 w-9",q),...D,children:[G(b,{className:"h-4 w-4"}),G("span",{className:"sr-only",children:"More pages"})]})}export{i as PaginationPrevious,t as PaginationNext,M as PaginationLink,r as PaginationItem,s as PaginationEllipsis,c as PaginationContent,n as Pagination};
@@ -0,0 +1 @@
1
+ var F=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(z,B)=>(typeof require<"u"?require:z)[B]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-popover";import{jsx as y}from"react/jsx-runtime";function I({...q}){return y(w.Root,{"data-slot":"popover",...q})}function J({...q}){return y(w.Trigger,{"data-slot":"popover-trigger",...q})}function K({className:q,align:z="center",sideOffset:B=4,...D}){return y(w.Portal,{children:y(w.Content,{"data-slot":"popover-content",align:z,sideOffset:B,className:E("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",q),...D})})}function L({...q}){return y(w.Anchor,{"data-slot":"popover-anchor",...q})}export{J as PopoverTrigger,K as PopoverContent,L as PopoverAnchor,I as Popover};
@@ -0,0 +1 @@
1
+ var A=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,w)=>(typeof require<"u"?require:q)[w]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import*as h from"@radix-ui/react-progress";import{jsx as y}from"react/jsx-runtime";function D({className:f,value:q,...w}){return y(h.Root,{"data-slot":"progress",className:z("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",f),...w,children:y(h.Indicator,{"data-slot":"progress-indicator",className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(q||0)}%)`}})})}export{D as Progress};
@@ -0,0 +1 @@
1
+ var A=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,y)=>(typeof require<"u"?require:q)[y]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as w}from"@contractspec/lib.ui-kit-core/utils";import*as h from"@radix-ui/react-radio-group";import{CircleIcon as z}from"lucide-react";import{jsx as v}from"react/jsx-runtime";function F({className:f,...q}){return v(h.Root,{"data-slot":"radio-group",className:w("grid gap-3",f),...q})}function H({className:f,...q}){return v(h.Item,{"data-slot":"radio-group-item",className:w("aspect-square size-4 shrink-0 rounded-full border border-input text-primary 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 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",f),...q,children:v(h.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:v(z,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"})})})}export{H as RadioGroupItem,F as RadioGroup};
@@ -0,0 +1 @@
1
+ var E=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(g,v)=>(typeof require<"u"?require:g)[v]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import{GripVertical as A}from"lucide-react";import{Group as B,Panel as C,Separator as D}from"react-resizable-panels";import{jsx as q}from"react/jsx-runtime";var L=({className:f,...g})=>q(B,{className:y("flex h-full w-full",f),...g}),M=C,O=({withHandle:f,className:g,...v})=>q(D,{className:y("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2 [&[aria-orientation=vertical]>div]:rotate-90",g),...v,children:f&&q("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border",children:q(A,{className:"h-2.5 w-2.5"})})});export{L as ResizablePanelGroup,M as ResizablePanel,O as ResizableHandle};
@@ -0,0 +1 @@
1
+ var v=((b)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(b,{get:(f,k)=>(typeof require<"u"?require:f)[k]}):b)(function(b){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+b+'" is not supported')});import*as d from"react";import{jsx as q}from"react/jsx-runtime";function y({title:b}){let[f,k]=d.useState("");return d.useEffect(()=>{if(b)k(b)},[b]),q("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:f})}export{y as RouteAnnouncer};
@@ -0,0 +1 @@
1
+ var D=((g)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(g,{get:(q,v)=>(typeof require<"u"?require:q)[v]}):g)(function(g){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+g+'" is not supported')});import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-scroll-area";import{jsx as w,jsxs as C}from"react/jsx-runtime";function G({className:g,children:q,...v}){return C(f.Root,{"data-slot":"scroll-area",className:y("relative",g),...v,children:[w(f.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] outline-hidden transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50",children:q}),w(z,{}),w(f.Corner,{})]})}function z({className:g,orientation:q="vertical",...v}){return w(f.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:q,className:y("flex touch-none select-none p-px transition-colors",q==="vertical"&&"h-full w-2.5 border-l border-l-transparent",q==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",g),...v,children:w(f.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}export{z as ScrollBar,G as ScrollArea};
@@ -0,0 +1 @@
1
+ var L=((g)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(g,{get:(q,z)=>(typeof require<"u"?require:q)[z]}):g)(function(g){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+g+'" is not supported')});import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as H}from"class-variance-authority";import{jsx as J}from"react/jsx-runtime";var I=H("",{variants:{width:{container:"container mx-auto",narrow:"mx-auto max-w-3xl",wide:"mx-auto max-w-7xl",fluid:"w-full"},px:{none:"px-0",sm:"px-3",md:"px-4 sm:px-6",lg:"px-4 sm:px-6 lg:px-32"},py:{none:"py-0",sm:"py-6",md:"py-12",lg:"py-20",xl:"py-32"},tone:{plain:"",tint:"bg-muted/50",subtle:"bg-secondary/10"},text:{lg:"text-lg",base:"text-base"}},defaultVariants:{width:"container",px:"lg",py:"lg",tone:"plain",text:"lg"}});function Q({as:g="section",className:q,width:z,px:A,py:B,tone:C,text:D,ref:E,...F}){return J(g,{ref:E,className:G(I({width:z,px:A,py:B,tone:C,text:D}),q),...F})}export{I as sectionVariants,Q as Section};
@@ -0,0 +1 @@
1
+ var R=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(A,E)=>(typeof require<"u"?require:A)[E]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-select";import{CheckIcon as M,ChevronDownIcon as K,ChevronUpIcon as O}from"lucide-react";import{jsx as y,jsxs as J}from"react/jsx-runtime";function Z({...q}){return y(f.Root,{"data-slot":"select",...q})}function _({...q}){return y(f.Group,{"data-slot":"select-group",...q})}function $({...q}){return y(f.Value,{"data-slot":"select-value",...q})}function G({className:q,size:A="default",children:E,...H}){return J(f.Trigger,{"data-slot":"select-trigger","data-size":A,className:F("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",q),...H,children:[E,y(f.Icon,{asChild:!0,children:y(K,{className:"size-4 opacity-50"})})]})}function L({className:q,children:A,position:E="popper",...H}){return y(f.Portal,{children:J(f.Content,{"data-slot":"select-content",className:F("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",E==="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",q),position:E,...H,children:[y(P,{}),y(f.Viewport,{className:F("p-1",E==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:A}),y(Q,{})]})})}function T({className:q,...A}){return y(f.Label,{"data-slot":"select-label",className:F("px-2 py-1.5 text-muted-foreground text-xs",q),...A})}function V({className:q,children:A,...E}){return J(f.Item,{"data-slot":"select-item",className:F("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",q),...E,children:[y("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y(f.ItemIndicator,{children:y(M,{className:"size-4"})})}),y(f.ItemText,{children:A})]})}function b({className:q,...A}){return y(f.Separator,{"data-slot":"select-separator",className:F("pointer-events-none -mx-1 my-1 h-px bg-border",q),...A})}function P({className:q,...A}){return y(f.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",q),...A,children:y(O,{className:"size-4"})})}function Q({className:q,...A}){return y(f.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",q),...A,children:y(K,{className:"size-4"})})}export{$ as SelectValue,G as SelectTrigger,b as SelectSeparator,P as SelectScrollUpButton,Q as SelectScrollDownButton,T as SelectLabel,V as SelectItem,_ as SelectGroup,L as SelectContent,Z as Select};
@@ -0,0 +1 @@
1
+ var A=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(g,h)=>(typeof require<"u"?require:g)[h]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-separator";import{jsx as z}from"react/jsx-runtime";function D({className:f,orientation:g="horizontal",decorative:h=!0,...w}){return z(q.Root,{"data-slot":"separator",decorative:h,orientation:g,className:y("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",f),...w})}export{D as Separator};
@@ -0,0 +1 @@
1
+ var M=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(w,A)=>(typeof require<"u"?require:w)[A]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-dialog";import{XIcon as J}from"lucide-react";import{jsx as z,jsxs as E}from"react/jsx-runtime";function V({...f}){return z(q.Root,{"data-slot":"sheet",...f})}function W({...f}){return z(q.Trigger,{"data-slot":"sheet-trigger",...f})}function Y({...f}){return z(q.Close,{"data-slot":"sheet-close",...f})}function K({...f}){return z(q.Portal,{"data-slot":"sheet-portal",...f})}function L({className:f,...w}){return z(q.Overlay,{"data-slot":"sheet-overlay",className:B("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),...w})}function Z({className:f,children:w,side:A="right",...G}){return E(K,{children:[z(L,{}),E(q.Content,{"data-slot":"sheet-content",className:B("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",A==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",A==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",A==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",A==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",f),...G,children:[w,E(q.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-secondary",children:[z(J,{className:"size-4"}),z("span",{className:"sr-only",children:"Close"})]})]})]})}function _({className:f,...w}){return z("div",{"data-slot":"sheet-header",className:B("flex flex-col gap-1.5 p-4",f),...w})}function $({className:f,...w}){return z("div",{"data-slot":"sheet-footer",className:B("mt-auto flex flex-col gap-2 p-4",f),...w})}function b({className:f,...w}){return z(q.Title,{"data-slot":"sheet-title",className:B("font-semibold text-foreground",f),...w})}function k({className:f,...w}){return z(q.Description,{"data-slot":"sheet-description",className:B("text-muted-foreground text-sm",f),...w})}export{W as SheetTrigger,b as SheetTitle,_ as SheetHeader,$ as SheetFooter,k as SheetDescription,Z as SheetContent,Y as SheetClose,V as Sheet};
@@ -0,0 +1 @@
1
+ var _J=((J)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(J,{get:(Q,Z)=>(typeof require<"u"?require:Q)[Z]}):J)(function(J){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+J+'" is not supported')});import{cn as a}from"@contractspec/lib.ui-kit-core/utils";import{Slot as e}from"@radix-ui/react-slot";import{cva as s}from"class-variance-authority";import*as h from"react";import{jsx as QJ}from"react/jsx-runtime";var JJ=s("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"}}),T=h.forwardRef(({className:J,variant:Q,size:Z,asChild:Y=!1,...F},f)=>{return QJ(Y?e:"button",{ref:f,"data-slot":"button",className:a(JJ({variant:Q,size:Z,className:J})),...F})});T.displayName="Button";import{clsx as ZJ}from"clsx";import{twMerge as $J}from"tailwind-merge";function u(...J){return $J(ZJ(J))}import{cn as YJ}from"@contractspec/lib.ui-kit-core/utils";import{jsx as qJ}from"react/jsx-runtime";function m({className:J,type:Q,ref:Z,...Y}){return qJ("input",{ref:Z,type:Q,"data-slot":"input",className:YJ("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",J),...Y})}import{jsx as FJ}from"react/jsx-runtime";function C({className:J,...Q}){return FJ("div",{"data-slot":"skeleton",className:u("animate-pulse rounded-md bg-accent",J),...Q})}import{cn as UJ}from"@contractspec/lib.ui-kit-core/utils";import*as N from"@radix-ui/react-separator";import{jsx as VJ}from"react/jsx-runtime";function j({className:J,orientation:Q="horizontal",decorative:Z=!0,...Y}){return VJ(N.Root,{"data-slot":"separator",decorative:Z,orientation:Q,className:UJ("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",J),...Y})}import{cn as R}from"@contractspec/lib.ui-kit-core/utils";import*as U from"@radix-ui/react-dialog";import{XIcon as WJ}from"lucide-react";import{jsx as W,jsxs as I}from"react/jsx-runtime";function S({...J}){return W(U.Root,{"data-slot":"sheet",...J})}function nJ({...J}){return W(U.Trigger,{"data-slot":"sheet-trigger",...J})}function lJ({...J}){return W(U.Close,{"data-slot":"sheet-close",...J})}function XJ({...J}){return W(U.Portal,{"data-slot":"sheet-portal",...J})}function fJ({className:J,...Q}){return W(U.Overlay,{"data-slot":"sheet-overlay",className:R("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),...Q})}function b({className:J,children:Q,side:Z="right",...Y}){return I(XJ,{children:[W(fJ,{}),I(U.Content,{"data-slot":"sheet-content",className:R("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",Z==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",Z==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",Z==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",Z==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",J),...Y,children:[Q,I(U.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-secondary",children:[W(WJ,{className:"size-4"}),W("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:J,...Q}){return W("div",{"data-slot":"sheet-header",className:R("flex flex-col gap-1.5 p-4",J),...Q})}function iJ({className:J,...Q}){return W("div",{"data-slot":"sheet-footer",className:R("mt-auto flex flex-col gap-2 p-4",J),...Q})}function d({className:J,...Q}){return W(U.Title,{"data-slot":"sheet-title",className:R("font-semibold text-foreground",J),...Q})}function c({className:J,...Q}){return W(U.Description,{"data-slot":"sheet-description",className:R("text-muted-foreground text-sm",J),...Q})}import{cn as GJ}from"@contractspec/lib.ui-kit-core/utils";import*as X from"@radix-ui/react-tooltip";import{jsx as k,jsxs as LJ}from"react/jsx-runtime";function M({delayDuration:J=0,...Q}){return k(X.Provider,{"data-slot":"tooltip-provider",delayDuration:J,...Q})}function n({...J}){return k(M,{children:k(X.Root,{"data-slot":"tooltip",...J})})}function l({...J}){return k(X.Trigger,{"data-slot":"tooltip-trigger",...J})}function i({className:J,sideOffset:Q=0,children:Z,...Y}){return k(X.Portal,{children:LJ(X.Content,{"data-slot":"tooltip-content",sideOffset:Q,className:GJ("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",J),...Y,children:[Z,k(X.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}import*as B from"react";var O=640;function r(){let[J,Q]=B.useState(void 0);return B.useEffect(()=>{let Z=window.matchMedia(`(max-width: ${O-1}px)`),Y=()=>{Q(window.innerWidth<O)};return Z.addEventListener("change",Y),Q(window.innerWidth<O),()=>Z.removeEventListener("change",Y)},[]),!!J}import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{Slot as P}from"@radix-ui/react-slot";import{cva as wJ}from"class-variance-authority";import{PanelLeftIcon as KJ}from"lucide-react";import*as V from"react";import{jsx as $,jsxs as z}from"react/jsx-runtime";var yJ="sidebar_state",HJ=604800,RJ="16rem",kJ="18rem",zJ="3rem",DJ="b",t=V.createContext(null);function g(){let J=V.useContext(t);if(!J)throw Error("useSidebar must be used within a SidebarProvider.");return J}function XQ({defaultOpen:J=!0,open:Q,onOpenChange:Z,className:Y,style:F,children:f,...y}){let L=r(),[H,w]=V.useState(!1),[_,p]=V.useState(J),D=Q??_,E=V.useCallback((G)=>{let K=typeof G==="function"?G(D):G;if(Z)Z(K);else p(K);document.cookie=`${yJ}=${K}; path=/; max-age=${HJ}`},[Z,D]),A=V.useCallback(()=>{return L?w((G)=>!G):E((G)=>!G)},[L,E,w]);V.useEffect(()=>{let G=(K)=>{if(K.key===DJ&&(K.metaKey||K.ctrlKey))K.preventDefault(),A()};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[A]);let v=D?"expanded":"collapsed",o=V.useMemo(()=>({state:v,open:D,setOpen:E,isMobile:L,openMobile:H,setOpenMobile:w,toggleSidebar:A}),[v,D,E,L,H,w,A]);return $(t.Provider,{value:o,children:$(M,{delayDuration:0,children:$("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":RJ,"--sidebar-width-icon":zJ,...F},className:q("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",Y),...y,children:f})})})}function fQ({side:J="left",variant:Q="sidebar",collapsible:Z="offcanvas",className:Y,children:F,...f}){let{isMobile:y,state:L,openMobile:H,setOpenMobile:w}=g();if(Z==="none")return $("div",{"data-slot":"sidebar",className:q("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",Y),...f,children:F});if(y)return $(S,{open:H,onOpenChange:w,...f,children:z(b,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":kJ},side:J,children:[z(x,{className:"sr-only",children:[$(d,{children:"Sidebar"}),$(c,{children:"Displays the mobile sidebar."})]}),$("div",{className:"flex h-full w-full flex-col",children:F})]})});return z("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":L,"data-collapsible":L==="collapsed"?Z:"","data-variant":Q,"data-side":J,"data-slot":"sidebar",children:[$("div",{"data-slot":"sidebar-gap",className:q("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",Q==="floating"||Q==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),$("div",{"data-slot":"sidebar-container",className:q("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",J==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",Q==="floating"||Q==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",Y),...f,children:$("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:F})})]})}function GQ({className:J,onClick:Q,...Z}){let{toggleSidebar:Y}=g();return z(T,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:q("size-7",J),onClick:(F)=>{Q?.(F),Y()},...Z,children:[$(KJ,{}),$("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function LQ({className:J,...Q}){let{toggleSidebar:Z}=g();return $("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:Z,title:"Toggle Sidebar",className:q("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",J),...Q})}function wQ({className:J,...Q}){return $("main",{"data-slot":"sidebar-inset",className:q("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",J),...Q})}function KQ({className:J,...Q}){return $(m,{"data-slot":"sidebar-input","data-sidebar":"input",className:q("h-8 w-full bg-background shadow-none",J),...Q})}function yQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:q("flex flex-col gap-2 p-2",J),...Q})}function HQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:q("flex flex-col gap-2 p-2",J),...Q})}function RQ({className:J,...Q}){return $(j,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:q("mx-2 w-auto bg-sidebar-border",J),...Q})}function kQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:q("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",J),...Q})}function zQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:q("relative flex w-full min-w-0 flex-col p-2",J),...Q})}function DQ({className:J,asChild:Q=!1,...Z}){return $(Q?P:"div",{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:q("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",J),...Z})}function PQ({className:J,asChild:Q=!1,...Z}){return $(Q?P:"button",{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:q("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",J),...Z})}function _Q({className:J,...Q}){return $("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:q("w-full text-sm",J),...Q})}function EQ({className:J,...Q}){return $("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:q("flex w-full min-w-0 flex-col gap-1",J),...Q})}function AQ({className:J,...Q}){return $("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:q("group/menu-item relative",J),...Q})}var PJ=wJ("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function BQ({asChild:J=!1,isActive:Q=!1,variant:Z="default",size:Y="default",tooltip:F,className:f,...y}){let L=J?P:"button",{isMobile:H,state:w}=g(),_=$(L,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":Y,"data-active":Q,className:q(PJ({variant:Z,size:Y}),f),...y});if(!F)return _;if(typeof F==="string")F={children:F};return z(n,{children:[$(l,{asChild:!0,children:_}),$(i,{side:"right",align:"center",hidden:w!=="collapsed"||H,...F})]})}function gQ({className:J,asChild:Q=!1,showOnHover:Z=!1,...Y}){return $(Q?P:"button",{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:q("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",Z&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",J),...Y})}function TQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:q("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",J),...Q})}function CQ({className:J,showIcon:Q=!1,...Z}){let Y=V.useMemo(()=>{return`${Math.floor(Math.random()*40)+50}%`},[]);return z("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:q("flex h-8 items-center gap-2 rounded-md px-2",J),...Z,children:[Q&&$(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),$(C,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":Y}})]})}function IQ({className:J,...Q}){return $("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:q("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",J),...Q})}function MQ({className:J,...Q}){return $("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:q("group/menu-sub-item relative",J),...Q})}function OQ({asChild:J=!1,size:Q="md",isActive:Z=!1,className:Y,...F}){return $(J?P:"a",{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":Q,"data-active":Z,className:q("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",Q==="sm"&&"text-xs",Q==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",Y),...F})}export{g as useSidebar,GQ as SidebarTrigger,RQ as SidebarSeparator,LQ as SidebarRail,XQ as SidebarProvider,MQ as SidebarMenuSubItem,OQ as SidebarMenuSubButton,IQ as SidebarMenuSub,CQ as SidebarMenuSkeleton,AQ as SidebarMenuItem,BQ as SidebarMenuButton,TQ as SidebarMenuBadge,gQ as SidebarMenuAction,EQ as SidebarMenu,wQ as SidebarInset,KQ as SidebarInput,yQ as SidebarHeader,DQ as SidebarGroupLabel,_Q as SidebarGroupContent,PQ as SidebarGroupAction,zQ as SidebarGroup,HQ as SidebarFooter,kQ as SidebarContent,fQ as Sidebar};
@@ -0,0 +1 @@
1
+ var p=((t)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});import{clsx as a}from"clsx";import{twMerge as n}from"tailwind-merge";function o(...t){return n(a(t))}import{jsx as m}from"react/jsx-runtime";function f({className:t,...e}){return m("div",{"data-slot":"skeleton",className:o("animate-pulse rounded-md bg-accent",t),...e})}export{f as Skeleton};
@@ -0,0 +1 @@
1
+ var r=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import{jsx as s}from"react/jsx-runtime";var n="sr-only focus:not-sr-only focus-visible:outline-solid focus-visible:ring-4 focus-visible:ring-offset-2 fixed top-2 left-2 z-100 rounded-xs bg-background px-3 py-2 text-sm shadow-2xs";function c({targetId:e="main",children:o,className:t,...i}){return s("a",{className:[n,t].filter(Boolean).join(" "),href:`#${e}`,...i,children:o??"Skip to main content"})}export{c as SkipLink};
@@ -0,0 +1 @@
1
+ var I=((h)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(h,{get:(q,w)=>(typeof require<"u"?require:q)[w]}):h)(function(h){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+h+'" is not supported')});import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@radix-ui/react-slider";import*as C from"react";import{jsx as B,jsxs as G}from"react/jsx-runtime";function L({className:h,defaultValue:q,value:w,min:y=0,max:z=100,...D}){let E=C.useMemo(()=>Array.isArray(w)?w:Array.isArray(q)?q:[y,z],[w,q,y,z]);return G(g.Root,{"data-slot":"slider",defaultValue:q,value:w,min:y,max:z,className:A("relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-disabled:opacity-50",h),...D,children:[B(g.Track,{"data-slot":"slider-track",className:A("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1.5"),children:B(g.Range,{"data-slot":"slider-range",className:A("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:E.length},(H,F)=>B(g.Thumb,{"data-slot":"slider-thumb",className:"block size-4 shrink-0 rounded-full border border-primary bg-background shadow-2xs ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50"},F))]})}export{L as Slider};
@@ -0,0 +1 @@
1
+ var p=((r)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,o)=>(typeof require<"u"?require:e)[o]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});import{useTheme as t}from"next-themes";import{Toaster as s}from"sonner";import{jsx as a}from"react/jsx-runtime";var T=({...r})=>{let{theme:e="system"}=t();return a(s,{theme:e,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...r})};export{T as Toaster};
@@ -0,0 +1 @@
1
+ var w=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(f,g)=>(typeof require<"u"?require:f)[g]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as v}from"react/jsx-runtime";var q={sm:"size-4 border-2",default:"size-5 border-2",lg:"size-7 border-[3px]"};function B({className:d,size:f="default",...g}){return v("div",{"data-slot":"spinner","aria-label":"Loading",role:"status",className:h("inline-flex animate-spin rounded-full border-current border-r-transparent text-primary",q[f],d),...g})}export{B as Spinner};
@@ -0,0 +1 @@
1
+ var P=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(q,z)=>(typeof require<"u"?require:q)[z]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as I}from"class-variance-authority";import{jsx as J}from"react/jsx-runtime";var L=I("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function U({className:d,gap:q,align:z,justify:A,as:C="div",ref:D,...E}){return J(C,{ref:D,className:G(L({gap:q,align:z,justify:A}),d),...E})}var M=I("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function W({className:d,gap:q,align:z,justify:A,wrap:C,as:D="div",ref:E,...F}){return J(D,{ref:E,className:G(M({gap:q,align:z,justify:A,wrap:C}),d),...F})}var O=I("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function X({className:d,gap:q,align:z,justify:A,wrap:C,as:D="div",ref:E,...F}){return J(D,{ref:E,className:G(O({gap:q,align:z,justify:A,wrap:C}),d),...F})}export{L as vStackVariants,M as hStackVariants,O as boxVariants,U as VStack,W as HStack,X as Box};
@@ -0,0 +1 @@
1
+ var Q=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,b)=>(typeof require<"u"?require:t)[b]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import{cn as R}from"@contractspec/lib.ui-kit-core/utils";import{jsx as I}from"react/jsx-runtime";function z({className:e,...t}){return I("div",{"data-slot":"card",className:R("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-2xs",e),...t})}function X({className:e,...t}){return I("div",{"data-slot":"card-header",className:R("@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",e),...t})}function Y({className:e,...t}){return I("div",{"data-slot":"card-title",className:R("font-semibold leading-none",e),...t})}function Z({className:e,...t}){return I("div",{"data-slot":"card-description",className:R("text-muted-foreground text-sm",e),...t})}function _({className:e,...t}){return I("div",{"data-slot":"card-action",className:R("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function C({className:e,...t}){return I("div",{"data-slot":"card-content",className:R("px-6",e),...t})}function f({className:e,...t}){return I("div",{"data-slot":"card-footer",className:R("flex items-center px-6 [.border-t]:pt-6",e),...t})}import{cn as $}from"@contractspec/lib.ui-kit-core/utils";import{cva as q}from"class-variance-authority";import{jsx as v}from"react/jsx-runtime";var K=q("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function E({className:e,gap:t,align:b,justify:d,as:u="div",ref:S,...m}){return v(u,{ref:S,className:$(K({gap:t,align:b,justify:d}),e),...m})}var L=q("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function H({className:e,gap:t,align:b,justify:d,wrap:u,as:S="div",ref:m,...G}){return v(S,{ref:m,className:$(L({gap:t,align:b,justify:d,wrap:u}),e),...G})}var M=q("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function F({className:e,gap:t,align:b,justify:d,wrap:u,as:S="div",ref:m,...G}){return v(S,{ref:m,className:$(M({gap:t,align:b,justify:d,wrap:u}),e),...G})}import{jsx as w,jsxs as P}from"react/jsx-runtime";function O(e){switch(e){case"green":return"bg-green-50 text-green-800";case"amber":return"bg-amber-50 text-amber-800";case"blue":default:return"bg-blue-50 text-blue-800"}}function V({items:e,className:t}){return w(H,{className:t+"w-full flex-wrap gap-3",children:e.map((b,d)=>w(z,{className:"border-none shadow-2xs",children:w(C,{className:"px-4 py-3",children:P(E,{className:"gap-1",children:[w("div",{className:`w-fit rounded-xs px-2 py-0.5 text-sm ${O(b.tone)}`,children:b.label}),w("div",{className:"font-semibold text-xl",children:b.value})]})})},d))})}export{V as StatCardGroup};
@@ -0,0 +1 @@
1
+ var Y=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(A,C)=>(typeof require<"u"?require:A)[C]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import{cva as K}from"class-variance-authority";import{jsx as L}from"react/jsx-runtime";var R=K("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function B({className:q,gap:A,align:C,justify:E,as:F="div",ref:G,...D}){return L(F,{ref:G,className:J(R({gap:A,align:C,justify:E}),q),...D})}var T=K("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function M({className:q,gap:A,align:C,justify:E,wrap:F,as:G="div",ref:D,...I}){return L(G,{ref:D,className:J(T({gap:A,align:C,justify:E,wrap:F}),q),...I})}var U=K("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function z({className:q,gap:A,align:C,justify:E,wrap:F,as:G="div",ref:D,...I}){return L(G,{ref:D,className:J(U({gap:A,align:C,justify:E,wrap:F}),q),...I})}import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import{cva as W}from"class-variance-authority";import{jsx as P}from"react/jsx-runtime";var X=W("h-2 w-2 rounded-full",{variants:{state:{active:"bg-primary",inactive:"bg-muted-foreground/20"},size:{sm:"",md:"h-2.5 w-2.5"}},defaultVariants:{state:"inactive",size:"md"}});function S({current:q,total:A,size:C,className:E}){let F=Array.from({length:Math.max(0,A)});return P(M,{className:O("items-center gap-2",E),children:F.map((G,D)=>P("span",{className:O(X({state:D+1===q?"active":"inactive",size:C}))},D))})}export{S as Stepper};
@@ -0,0 +1 @@
1
+ var A=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,v)=>(typeof require<"u"?require:q)[v]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@radix-ui/react-switch";import{jsx as z}from"react/jsx-runtime";function E({className:f,thumbClassName:q,...v}){return z(g.Root,{"data-slot":"switch",className:y("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-2xs outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",f),...v,children:z(g.Thumb,{"data-slot":"switch-thumb",className:y("pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground",q)})})}export{E as Switch};
@@ -0,0 +1 @@
1
+ var z=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(g,v)=>(typeof require<"u"?require:g)[v]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{jsx as h}from"react/jsx-runtime";function E({className:f,...g}){return h("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:h("table",{"data-slot":"table",className:q("w-full caption-bottom text-sm",f),...g})})}function G({className:f,...g}){return h("thead",{"data-slot":"table-header",className:q("[&_tr]:border-b",f),...g})}function I({className:f,...g}){return h("tbody",{"data-slot":"table-body",className:q("[&_tr:last-child]:border-0",f),...g})}function J({className:f,...g}){return h("tfoot",{"data-slot":"table-footer",className:q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",f),...g})}function K({className:f,...g}){return h("tr",{"data-slot":"table-row",className:q("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",f),...g})}function L({className:f,...g}){return h("th",{"data-slot":"table-head",className:q("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",f),...g})}function M({className:f,...g}){return h("td",{"data-slot":"table-cell",className:q("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",f),...g})}function O({className:f,...g}){return h("caption",{"data-slot":"table-caption",className:q("mt-4 text-muted-foreground text-sm",f),...g})}export{K as TableRow,G as TableHeader,L as TableHead,J as TableFooter,M as TableCell,O as TableCaption,I as TableBody,E as Table};
@@ -0,0 +1 @@
1
+ var z=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(h,y)=>(typeof require<"u"?require:h)[y]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-tabs";import{jsx as w}from"react/jsx-runtime";function D({className:f,...h}){return w(q.Root,{"data-slot":"tabs",className:v("flex flex-col gap-2",f),...h})}function E({className:f,...h}){return w(q.List,{"data-slot":"tabs-list",className:v("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",f),...h})}function F({className:f,...h}){return w(q.Trigger,{"data-slot":"tabs-trigger",className:v("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-2xs dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",f),...h})}function G({className:f,...h}){return w(q.Content,{"data-slot":"tabs-content",className:v("flex-1 outline-hidden",f),...h})}export{F as TabsTrigger,E as TabsList,G as TabsContent,D as Tabs};
@@ -0,0 +1 @@
1
+ var A=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(g,q)=>(typeof require<"u"?require:g)[q]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import{Slot as w}from"@radix-ui/react-slot";import{jsx as y}from"react/jsx-runtime";function F({className:f,asChild:g=!1,...q}){return y(g?w:"p",{className:v("web:select-text text-base text-foreground",f),...q})}export{F as Text};
@@ -0,0 +1 @@
1
+ var v=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(f,g)=>(typeof require<"u"?require:f)[g]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as q}from"react/jsx-runtime";function z({className:d,...f}){return q("textarea",{"data-slot":"textarea",className:h("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-2xs outline-hidden transition-[color,box-shadow] placeholder:text-muted-foreground 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 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",d),...f})}export{z as Textarea};
@@ -0,0 +1 @@
1
+ var g=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(D,F)=>(typeof require<"u"?require:D)[F]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as T}from"@contractspec/lib.ui-kit-core/utils";import{Slot as B}from"@radix-ui/react-slot";import{cva as O}from"class-variance-authority";import*as _ from"react";import{jsx as N}from"react/jsx-runtime";var C=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"}}),L=_.forwardRef(({className:q,variant:D,size:F,asChild:G=!1,...K},R)=>{return N(G?B:"button",{ref:R,"data-slot":"button",className:T(C({variant:D,size:F,className:q})),...K})});L.displayName="Button";import{cn as f}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-popover";import{jsx as J}from"react/jsx-runtime";function $({...q}){return J(w.Root,{"data-slot":"popover",...q})}function y({...q}){return J(w.Trigger,{"data-slot":"popover-trigger",...q})}function A({className:q,align:D="center",sideOffset:F=4,...G}){return J(w.Portal,{children:J(w.Content,{"data-slot":"popover-content",align:D,sideOffset:F,className:f("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",q),...G})})}function l({...q}){return J(w.Anchor,{"data-slot":"popover-anchor",...q})}import{cn as H}from"@contractspec/lib.ui-kit-core/utils";import*as Q from"react";import{jsx as E,jsxs as M}from"react/jsx-runtime";function P(q,D){if(!q)return"";return q.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!D})}function a({value:q,onChange:D,disabled:F,placeholder:G="Select time",is24Hour:K=!0,className:R}){let[U,W]=Q.useState(!1),[X,S]=Q.useState(()=>q?String(q.getHours()).padStart(2,"0"):""),[Y,z]=Q.useState(()=>q?String(q.getMinutes()).padStart(2,"0"):""),V=(I,k)=>{let Z=new Date(q??new Date);Z.setHours(I,k,0,0),D(Z),W(!1)};return M($,{open:U,onOpenChange:W,children:[E(y,{asChild:!0,children:E(L,{type:"button",variant:"outline",disabled:F,className:H("w-full justify-start text-left font-normal",R),children:q?P(q,K):E("span",{className:"opacity-50",children:G})})}),E(A,{className:"w-56",align:"start",children:M("div",{className:"flex items-center gap-2",children:[E("input",{type:"number",min:0,max:K?23:12,value:X,onChange:(I)=>S(I.target.value),className:"w-16 rounded-md border border-input bg-background px-2 py-1 text-center"}),E("span",{children:":"}),E("input",{type:"number",min:0,max:59,value:Y,onChange:(I)=>z(I.target.value),className:"w-16 rounded-md border border-input bg-background px-2 py-1 text-center"}),E(L,{type:"button",onClick:()=>V(Number(X||0),Number(Y||0)),className:"ml-auto",children:"Set"})]})})]})}export{a as TimePicker};
@@ -0,0 +1 @@
1
+ var K=((g)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(g,{get:(z,B)=>(typeof require<"u"?require:z)[B]}):g)(function(g){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+g+'" is not supported')});import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-toast";import{cva as H}from"class-variance-authority";import{X as I}from"lucide-react";import{jsx as E}from"react/jsx-runtime";var R=q.Provider;function S({className:g,ref:z,...B}){return E(q.Viewport,{ref:z,className:F("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",g),...B})}var J=H("group data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[state=closed]:animate-out data-[state=open]:animate-in data-[swipe=end]:animate-out data-[swipe=move]:transition-none",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}});function U({className:g,variant:z,ref:B,...G}){return E(q.Root,{ref:B,className:F(J({variant:z}),g),...G})}function W({className:g,ref:z,...B}){return E(q.Action,{ref:z,className:F("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 font-medium text-base ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:focus:ring-destructive group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground",g),...B})}function Y({className:g,ref:z,...B}){return E(q.Close,{ref:z,className:F("absolute top-2 right-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 group-[.destructive]:hover:text-red-50",g),"toast-close":"",...B,children:E(I,{className:"h-4 w-4"})})}function Z({className:g,ref:z,...B}){return E(q.Title,{ref:z,className:F("font-semibold text-base",g),...B})}function _({className:g,ref:z,...B}){return E(q.Description,{ref:z,className:F("text-base opacity-90",g),...B})}export{S as ToastViewport,Z as ToastTitle,R as ToastProvider,_ as ToastDescription,Y as ToastClose,W as ToastAction,U as Toast};
@@ -0,0 +1 @@
1
+ var h=((g)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(g,{get:(P,q)=>(typeof require<"u"?require:P)[q]}):g)(function(g){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+g+'" is not supported')});import{cn as C}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-toast";import{cva as v}from"class-variance-authority";import{X as E}from"lucide-react";import{jsx as B}from"react/jsx-runtime";var $=w.Provider;function k({className:g,ref:P,...q}){return B(w.Viewport,{ref:P,className:C("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",g),...q})}var O=v("group data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[state=closed]:animate-out data-[state=open]:animate-in data-[swipe=end]:animate-out data-[swipe=move]:transition-none",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}});function X({className:g,variant:P,ref:q,...z}){return B(w.Root,{ref:q,className:C(O({variant:P}),g),...z})}function u({className:g,ref:P,...q}){return B(w.Action,{ref:P,className:C("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 font-medium text-base ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:focus:ring-destructive group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground",g),...q})}function Y({className:g,ref:P,...q}){return B(w.Close,{ref:P,className:C("absolute top-2 right-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 group-[.destructive]:hover:text-red-50",g),"toast-close":"",...q,children:B(E,{className:"h-4 w-4"})})}function b({className:g,ref:P,...q}){return B(w.Title,{ref:P,className:C("font-semibold text-base",g),...q})}function L({className:g,ref:P,...q}){return B(w.Description,{ref:P,className:C("text-base opacity-90",g),...q})}import*as J from"react";var R=1,_=1e6;var U=0;function A(){return U=(U+1)%Number.MAX_SAFE_INTEGER,U.toString()}var W=new Map,M=(g)=>{if(W.has(g))return;let P=setTimeout(()=>{W.delete(g),F({type:"REMOVE_TOAST",toastId:g})},_);W.set(g,P)},y=(g,P)=>{switch(P.type){case"ADD_TOAST":return{...g,toasts:[P.toast,...g.toasts].slice(0,R)};case"UPDATE_TOAST":return{...g,toasts:g.toasts.map((q)=>q.id===P.toast.id?{...q,...P.toast}:q)};case"DISMISS_TOAST":{let{toastId:q}=P;if(q)M(q);else g.toasts.forEach((z)=>{M(z.id)});return{...g,toasts:g.toasts.map((z)=>z.id===q||q===void 0?{...z,open:!1}:z)}}case"REMOVE_TOAST":if(P.toastId===void 0)return{...g,toasts:[]};return{...g,toasts:g.toasts.filter((q)=>q.id!==P.toastId)}}},G=[],H={toasts:[]};function F(g){H=y(H,g),G.forEach((P)=>{P(H)})}function T({...g}){let P=A(),q=(D)=>F({type:"UPDATE_TOAST",toast:{...D,id:P}}),z=()=>F({type:"DISMISS_TOAST",toastId:P});return F({type:"ADD_TOAST",toast:{...g,id:P,open:!0,onOpenChange:(D)=>{if(!D)z()}}}),{id:P,dismiss:z,update:q}}function Q(){let[g,P]=J.useState(H);return J.useEffect(()=>{return G.push(P),()=>{let q=G.indexOf(P);if(q>-1)G.splice(q,1)}},[g]),{...g,toast:T,dismiss:(q)=>F({type:"DISMISS_TOAST",toastId:q})}}import{jsx as K,jsxs as Z}from"react/jsx-runtime";function n(){let{toasts:g}=Q();return Z($,{children:[g.map(function({id:P,title:q,description:z,action:D,...V}){return Z(X,{...V,children:[Z("div",{className:"grid gap-1",children:[q&&K(b,{children:q}),z&&K(L,{children:z})]}),D,K(Y,{})]},P)}),K(k,{})]})}export{n as Toaster};
@@ -0,0 +1 @@
1
+ var R=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(w,q)=>(typeof require<"u"?require:w)[q]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import*as K from"@radix-ui/react-toggle";import{cva as P}from"class-variance-authority";import{jsx as Q}from"react/jsx-runtime";var H=P("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground 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 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-2xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});function X({className:f,variant:w,size:q,...A}){return Q(K.Root,{"data-slot":"toggle",className:O(H({variant:w,size:q,className:f})),...A})}import{cn as L}from"@contractspec/lib.ui-kit-core/utils";import*as D from"@radix-ui/react-toggle-group";import*as E from"react";import{jsx as J}from"react/jsx-runtime";var M=E.createContext({size:"default",variant:"default"});function y({className:f,variant:w,size:q,children:A,...F}){return J(D.Root,{"data-slot":"toggle-group","data-variant":w,"data-size":q,className:L("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-2xs",f),...F,children:J(M.Provider,{value:{variant:w,size:q},children:A})})}function I({className:f,children:w,variant:q,size:A,...F}){let B=E.useContext(M);return J(D.Item,{"data-slot":"toggle-group-item","data-variant":B.variant||q,"data-size":B.size||A,className:L(H({variant:B.variant||q,size:B.size||A}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",f),...F,children:w})}export{I as ToggleGroupItem,y as ToggleGroup};
@@ -0,0 +1 @@
1
+ var G=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,w)=>(typeof require<"u"?require:q)[w]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as C}from"@contractspec/lib.ui-kit-core/utils";import*as A from"@radix-ui/react-toggle";import{cva as D}from"class-variance-authority";import{jsx as F}from"react/jsx-runtime";var E=D("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-[color,box-shadow] hover:bg-muted hover:text-muted-foreground 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 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-2xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});function K({className:f,variant:q,size:w,...B}){return F(A.Root,{"data-slot":"toggle",className:C(E({variant:q,size:w,className:f})),...B})}export{E as toggleVariants,K as Toggle};
@@ -0,0 +1 @@
1
+ var I=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(A,B)=>(typeof require<"u"?require:A)[B]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-tooltip";import{jsx as z,jsxs as H}from"react/jsx-runtime";function G({delayDuration:q=0,...A}){return z(w.Provider,{"data-slot":"tooltip-provider",delayDuration:q,...A})}function L({...q}){return z(G,{children:z(w.Root,{"data-slot":"tooltip",...q})})}function M({...q}){return z(w.Trigger,{"data-slot":"tooltip-trigger",...q})}function Q({className:q,sideOffset:A=0,children:B,...E}){return z(w.Portal,{children:H(w.Content,{"data-slot":"tooltip-content",sideOffset:A,className:F("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",q),...E,children:[B,z(w.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}export{M as TooltipTrigger,G as TooltipProvider,Q as TooltipContent,L as Tooltip};
@@ -0,0 +1 @@
1
+ var I=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(q,v)=>(typeof require<"u"?require:q)[v]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import{Slot as F}from"@radix-ui/react-slot";import{jsx as G}from"react/jsx-runtime";function D({className:f,asChild:q=!1,...v}){return G(q?F:"p",{className:E("web:select-text text-base text-foreground",f),...v})}import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import{Slot as z}from"@radix-ui/react-slot";import{jsx as A}from"react/jsx-runtime";function Y({className:f,asChild:q=!1,...v}){return A(q?z:"h1",{role:"heading","aria-level":1,className:y("web:select-text web:scroll-m-20 font-extrabold text-4xl text-foreground tracking-tight lg:text-5xl",f),...v})}function Z({className:f,asChild:q=!1,...v}){return A(q?z:"h2",{role:"heading","aria-level":2,className:y("web:select-text web:scroll-m-20 border-border border-b pb-2 font-semibold text-3xl text-foreground tracking-tight first:mt-0",f),...v})}function _({className:f,asChild:q=!1,...v}){return A(q?z:"h3",{role:"heading","aria-level":3,className:y("web:select-text web:scroll-m-20 font-semibold text-2xl text-foreground tracking-tight",f),...v})}function $({className:f,asChild:q=!1,...v}){return A(q?z:"h4",{role:"heading","aria-level":4,className:y("web:select-text web:scroll-m-20 font-semibold text-foreground text-xl tracking-tight",f),...v})}function g({className:f,asChild:q=!1,...v}){return A(q?z:D,{className:y("web:select-text text-base text-foreground",f),...v})}function B({className:f,asChild:q=!1,...v}){return A(q?z:D,{role:"blockquote",className:y("mt-6 native:mt-4 web:select-text border-border border-l-2 native:pl-3 pl-6 text-base text-foreground italic",f),...v})}function M({className:f,asChild:q=!1,...v}){return A(q?z:D,{role:"code",className:y("relative web:select-text rounded-md bg-muted px-[0.3rem] py-[0.2rem] font-semibold text-foreground text-sm",f),...v})}function P({className:f,asChild:q=!1,...v}){return A(q?z:D,{className:y("web:select-text text-muted-foreground text-xl",f),...v})}function Q({className:f,asChild:q=!1,...v}){return A(q?z:D,{className:y("web:select-text font-semibold text-foreground text-xl",f),...v})}function b({className:f,asChild:q=!1,...v}){return A(q?z:D,{className:y("web:select-text font-medium text-foreground text-sm leading-none",f),...v})}function L({className:f,asChild:q=!1,...v}){return A(q?z:D,{className:y("web:select-text text-muted-foreground text-sm",f),...v})}export{b as Small,g as P,L as Muted,P as Lead,Q as Large,$ as H4,_ as H3,Z as H2,Y as H1,M as Code,B as BlockQuote};
@@ -0,0 +1 @@
1
+ var u=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,t)=>(typeof require<"u"?require:n)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import*as a from"react";function o(e){let[n,t]=a.useState(!1);return a.useEffect(()=>{function c(r){t(r.matches)}let s=matchMedia(e);return s.addEventListener("change",c),t(s.matches),()=>s.removeEventListener("change",c)},[e]),n}export{o as useMediaQuery};
@@ -0,0 +1 @@
1
+ var D=((f)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(f,{get:(j,k)=>(typeof require<"u"?require:j)[k]}):f)(function(f){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+f+'" is not supported')});import*as v from"react";var y=640;function G(){let[f,j]=v.useState(void 0);return v.useEffect(()=>{let k=window.matchMedia(`(max-width: ${y-1}px)`),z=()=>{j(window.innerWidth<y)};return k.addEventListener("change",z),j(window.innerWidth<y),()=>k.removeEventListener("change",z)},[]),!!f}export{G as useIsMobile};
@@ -0,0 +1 @@
1
+ var r=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(c,t)=>(typeof require<"u"?require:c)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import*as n from"react";function d(){let[e,c]=n.useState(!1);return n.useEffect(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),o=()=>c(t.matches);return o(),t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[]),e}export{d as useReducedMotion};
@@ -0,0 +1 @@
1
+ var $=((j)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(j,{get:(q,w)=>(typeof require<"u"?require:q)[w]}):j)(function(j){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+j+'" is not supported')});import*as G from"react";var P=1,U=1e6;var J=0;function W(){return J=(J+1)%Number.MAX_SAFE_INTEGER,J.toString()}var K=new Map,N=(j)=>{if(K.has(j))return;let q=setTimeout(()=>{K.delete(j),B({type:"REMOVE_TOAST",toastId:j})},U);K.set(j,q)},X=(j,q)=>{switch(q.type){case"ADD_TOAST":return{...j,toasts:[q.toast,...j.toasts].slice(0,P)};case"UPDATE_TOAST":return{...j,toasts:j.toasts.map((w)=>w.id===q.toast.id?{...w,...q.toast}:w)};case"DISMISS_TOAST":{let{toastId:w}=q;if(w)N(w);else j.toasts.forEach((z)=>{N(z.id)});return{...j,toasts:j.toasts.map((z)=>z.id===w||w===void 0?{...z,open:!1}:z)}}case"REMOVE_TOAST":if(q.toastId===void 0)return{...j,toasts:[]};return{...j,toasts:j.toasts.filter((w)=>w.id!==q.toastId)}}},C=[],F={toasts:[]};function B(j){F=X(F,j),C.forEach((q)=>{q(F)})}function Z({...j}){let q=W(),w=(H)=>B({type:"UPDATE_TOAST",toast:{...H,id:q}}),z=()=>B({type:"DISMISS_TOAST",toastId:q});return B({type:"ADD_TOAST",toast:{...j,id:q,open:!0,onOpenChange:(H)=>{if(!H)z()}}}),{id:q,dismiss:z,update:w}}function f(){let[j,q]=G.useState(F);return G.useEffect(()=>{return C.push(q),()=>{let w=C.indexOf(q);if(w>-1)C.splice(w,1)}},[j]),{...j,toast:Z,dismiss:(w)=>B({type:"DISMISS_TOAST",toastId:w})}}export{f as useToast,Z as toast,X as reducer};
@@ -0,0 +1 @@
1
+ var o=((j)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(j,{get:(B,D)=>(typeof require<"u"?require:B)[D]}):j)(function(j){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+j+'" is not supported')});import{useCallback as E,useMemo as A,useState as H}from"react";var d=({initialSearch:j="",initialFilters:B={},initialPage:D=1,initialItemsPerPage:J=25}={})=>{let[K,V]=H(j),[L,N]=H(B),[O,z]=H(D),[T,W]=H(J),Y=E((x,G)=>{N((U)=>({...U,[x]:G})),z(1)},[]),Z=E(()=>{N({}),z(1)},[]),_=E((x)=>{V(x),z(1)},[]),$=E((x)=>{W(x),z(1)},[]),M=E(()=>{V(j),N(B),z(D),W(J)},[j,B,D,J]),R=A(()=>{let x={search:K,page:O,limit:T},G={};return Object.entries(L).forEach(([U,X])=>{if(X)G[U]=X}),{...x,...G}},[K,L,O,T]);return{searchQuery:K,setSearchQuery:_,filters:L,setFilter:Y,clearFilters:Z,currentPage:O,itemsPerPage:T,setCurrentPage:z,setItemsPerPage:$,queryParams:R,resetAll:M}};export{d as useListState};
@@ -0,0 +1 @@
1
+ var $=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(C,L)=>(typeof require<"u"?require:C)[L]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as P}from"@contractspec/lib.ui-kit-core/utils";import{Slot as Q}from"@radix-ui/react-slot";import{cva as R}from"class-variance-authority";import*as J from"react";import{jsx as W}from"react/jsx-runtime";var T=R("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"}}),E=J.forwardRef(({className:d,variant:C,size:L,asChild:m=!1,...H},U)=>{return W(m?Q:"button",{ref:U,"data-slot":"button",className:P(T({variant:C,size:L,className:d})),...H})});E.displayName="Button";import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import{cva as G}from"class-variance-authority";import{jsx as I}from"react/jsx-runtime";var X=G("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function K({className:d,gap:C,align:L,justify:m,as:H="div",ref:U,...q}){return I(H,{ref:U,className:F(X({gap:C,align:L,justify:m}),d),...q})}var Y=G("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function M({className:d,gap:C,align:L,justify:m,wrap:H,as:U="div",ref:q,...D}){return I(U,{ref:q,className:F(Y({gap:C,align:L,justify:m,wrap:H}),d),...D})}var Z=G("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function w({className:d,gap:C,align:L,justify:m,wrap:H,as:U="div",ref:q,...D}){return I(U,{ref:q,className:F(Z({gap:C,align:L,justify:m,wrap:H}),d),...D})}import{jsx as A,jsxs as _}from"react/jsx-runtime";function y({title:d,summary:C,ctaHref:L,ctaLabel:m="Learn more",onCtaClick:H}){return _(K,{className:"rounded-lg border p-4",gap:"sm",children:[A("div",{className:"font-semibold text-lg",children:d}),C&&A("div",{className:"text-base text-muted-foreground",children:C}),L&&A(M,{children:A("a",{href:L,onClick:H,children:A(E,{size:"sm",variant:"outline",children:m})})})]})}export{y as UseCaseCard};
@@ -0,0 +1 @@
1
+ var K=((d)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(d,{get:(m,e)=>(typeof require<"u"?require:m)[e]}):d)(function(d){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+d+'" is not supported')});import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{cva as v}from"class-variance-authority";import{jsx as z}from"react/jsx-runtime";var G=v("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function D({className:d,gap:m,align:e,justify:b,as:o="div",ref:C,...O}){return z(o,{ref:C,className:q(G({gap:m,align:e,justify:b}),d),...O})}var I=v("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function Q({className:d,gap:m,align:e,justify:b,wrap:o,as:C="div",ref:O,...U}){return z(C,{ref:O,className:q(I({gap:m,align:e,justify:b,wrap:o}),d),...U})}var J=v("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function R({className:d,gap:m,align:e,justify:b,wrap:o,as:C="div",ref:O,...U}){return z(C,{ref:O,className:q(J({gap:m,align:e,justify:b,wrap:o}),d),...U})}import{jsx as A,jsxs as E}from"react/jsx-runtime";function Y({title:d,body:m,outcome:e}){return E(D,{className:"rounded-lg border p-4",gap:"sm",children:[A("div",{className:"font-semibold text-lg",children:d}),m&&A("div",{className:"text-base text-muted-foreground",children:m}),e&&E("div",{className:"text-base",children:[A("span",{className:"font-medium",children:"Outcome:"})," ",e]})]})}export{Y as UserStoryCard};
@@ -0,0 +1 @@
1
+ var a=((r)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,o)=>(typeof require<"u"?require:e)[o]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});export{m as UserStoryCard,d as UseCaseCard};
@@ -0,0 +1 @@
1
+ var s=((r)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});import{clsx as o}from"clsx";import{twMerge as l}from"tailwind-merge";function p(...r){return l(o(r))}export{p as cn};