@contractspec/lib.ui-kit-web 1.56.1 → 1.58.0

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 (545) hide show
  1. package/dist/browser/index.js +13 -0
  2. package/dist/browser/ui/accordion.js +73 -0
  3. package/dist/browser/ui/alert-dialog.js +177 -0
  4. package/dist/browser/ui/alert.js +60 -0
  5. package/dist/browser/ui/aspect-ratio.js +15 -0
  6. package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +244 -0
  7. package/dist/browser/ui/atoms/FilterSelect/index.js +244 -0
  8. package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
  9. package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +89 -0
  10. package/dist/browser/ui/atoms/LoadingSpinner/index.js +89 -0
  11. package/dist/browser/ui/atoms/Pagination/Pagination.js +387 -0
  12. package/dist/browser/ui/atoms/Pagination/index.js +387 -0
  13. package/dist/browser/ui/atoms/Pagination/types.js +0 -0
  14. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +123 -0
  15. package/dist/browser/ui/atoms/SearchInput/index.js +123 -0
  16. package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
  17. package/dist/browser/ui/avatar.js +54 -0
  18. package/dist/browser/ui/badge.js +43 -0
  19. package/dist/browser/ui/breadcrumb.js +109 -0
  20. package/dist/browser/ui/button.js +56 -0
  21. package/dist/browser/ui/calendar.js +181 -0
  22. package/dist/browser/ui/card.js +87 -0
  23. package/dist/browser/ui/carousel.js +229 -0
  24. package/dist/browser/ui/checkbox.js +34 -0
  25. package/dist/browser/ui/collapsible.js +41 -0
  26. package/dist/browser/ui/command.js +266 -0
  27. package/dist/browser/ui/confirm-dialog.js +226 -0
  28. package/dist/browser/ui/context-menu.js +127 -0
  29. package/dist/browser/ui/cta.js +102 -0
  30. package/dist/browser/ui/date-picker.js +350 -0
  31. package/dist/browser/ui/date-range-picker.js +276 -0
  32. package/dist/browser/ui/datetime-picker.js +489 -0
  33. package/dist/browser/ui/dialog.js +140 -0
  34. package/dist/browser/ui/drawer.js +130 -0
  35. package/dist/browser/ui/dropdown-menu.js +214 -0
  36. package/dist/browser/ui/empty-state.js +209 -0
  37. package/dist/browser/ui/empty.js +90 -0
  38. package/dist/browser/ui/field.js +221 -0
  39. package/dist/browser/ui/focus-on-route-change.js +25 -0
  40. package/dist/browser/ui/form.js +156 -0
  41. package/dist/browser/ui/hover-card.js +51 -0
  42. package/dist/browser/ui/input-group.js +192 -0
  43. package/dist/browser/ui/input-otp.js +60 -0
  44. package/dist/browser/ui/input.js +22 -0
  45. package/dist/browser/ui/label.js +26 -0
  46. package/dist/browser/ui/link.js +24 -0
  47. package/dist/browser/ui/live-region.js +56 -0
  48. package/dist/browser/ui/loading-button.js +228 -0
  49. package/dist/browser/ui/map/MapBase.js +70 -0
  50. package/dist/browser/ui/map/MapGeoJsonOverlay.js +56 -0
  51. package/dist/browser/ui/map/MapHeatmapH3.js +66 -0
  52. package/dist/browser/ui/map/MapMarkers.js +45 -0
  53. package/dist/browser/ui/map/index.js +210 -0
  54. package/dist/browser/ui/marketing/FeatureGrid.js +50 -0
  55. package/dist/browser/ui/marketing/Hero.js +116 -0
  56. package/dist/browser/ui/marketing/PricingTable.js +127 -0
  57. package/dist/browser/ui/marketing/index.js +217 -0
  58. package/dist/browser/ui/menubar.js +231 -0
  59. package/dist/browser/ui/molecules/Autocomplete/index.js +584 -0
  60. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +503 -0
  61. package/dist/browser/ui/molecules/SearchAndFilter/index.js +503 -0
  62. package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
  63. package/dist/browser/ui/molecules/SkeletonList.js +44 -0
  64. package/dist/browser/ui/nav-layout.js +298 -0
  65. package/dist/browser/ui/navigation-menu.js +128 -0
  66. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +191 -0
  67. package/dist/browser/ui/organisms/ErrorBoundary/index.js +191 -0
  68. package/dist/browser/ui/organisms/ListPage/ListPage.js +1236 -0
  69. package/dist/browser/ui/organisms/ListPage/index.js +1236 -0
  70. package/dist/browser/ui/organisms/ListPage/types.js +0 -0
  71. package/dist/browser/ui/page-header.js +206 -0
  72. package/dist/browser/ui/pagination.js +156 -0
  73. package/dist/browser/ui/popover.js +59 -0
  74. package/dist/browser/ui/progress.js +32 -0
  75. package/dist/browser/ui/radio-group.js +45 -0
  76. package/dist/browser/ui/resizable.js +41 -0
  77. package/dist/browser/ui/route-announcer.js +28 -0
  78. package/dist/browser/ui/scroll-area.js +53 -0
  79. package/dist/browser/ui/section.js +65 -0
  80. package/dist/browser/ui/select.js +165 -0
  81. package/dist/browser/ui/separator.js +30 -0
  82. package/dist/browser/ui/sheet.js +136 -0
  83. package/dist/browser/ui/sidebar.js +806 -0
  84. package/dist/browser/ui/skeleton.js +30 -0
  85. package/dist/browser/ui/skip-link.js +27 -0
  86. package/dist/browser/ui/slider.js +50 -0
  87. package/dist/browser/ui/sonner.js +29 -0
  88. package/dist/browser/ui/stack.js +158 -0
  89. package/dist/browser/ui/stat-card-group.js +263 -0
  90. package/dist/browser/ui/stepper.js +185 -0
  91. package/dist/browser/ui/switch.js +31 -0
  92. package/dist/browser/ui/table.js +106 -0
  93. package/dist/browser/ui/tabs.js +59 -0
  94. package/dist/browser/ui/text.js +22 -0
  95. package/dist/browser/ui/textarea.js +21 -0
  96. package/dist/browser/ui/time-picker.js +186 -0
  97. package/dist/browser/ui/toast.js +79 -0
  98. package/dist/browser/ui/toaster.js +220 -0
  99. package/dist/browser/ui/toggle-group.js +96 -0
  100. package/dist/browser/ui/toggle.js +47 -0
  101. package/dist/browser/ui/tooltip.js +68 -0
  102. package/dist/browser/ui/typography.js +123 -0
  103. package/dist/browser/ui/use-media-query.js +26 -0
  104. package/dist/browser/ui/use-mobile.js +27 -0
  105. package/dist/browser/ui/use-reduced-motion.js +24 -0
  106. package/dist/browser/ui/use-toast.js +129 -0
  107. package/dist/browser/ui/useListState.js +76 -0
  108. package/dist/browser/ui/usecases/UseCaseCard.js +232 -0
  109. package/dist/browser/ui/usecases/UserStoryCard.js +186 -0
  110. package/dist/browser/ui/usecases/index.js +267 -0
  111. package/dist/browser/ui/utils.js +17 -0
  112. package/dist/browser/ui/visually-hidden.js +35 -0
  113. package/dist/index.d.ts +2 -1
  114. package/dist/index.d.ts.map +1 -0
  115. package/dist/index.js +8 -0
  116. package/dist/ui/accordion.d.ts +7 -24
  117. package/dist/ui/accordion.d.ts.map +1 -1
  118. package/dist/ui/accordion.js +60 -40
  119. package/dist/ui/alert-dialog.d.ts +14 -48
  120. package/dist/ui/alert-dialog.d.ts.map +1 -1
  121. package/dist/ui/alert-dialog.js +158 -71
  122. package/dist/ui/alert.d.ts +8 -23
  123. package/dist/ui/alert.d.ts.map +1 -1
  124. package/dist/ui/alert.js +50 -34
  125. package/dist/ui/aspect-ratio.d.ts +2 -6
  126. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  127. package/dist/ui/aspect-ratio.js +8 -8
  128. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -7
  129. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -1
  130. package/dist/ui/atoms/FilterSelect/FilterSelect.js +237 -51
  131. package/dist/ui/atoms/FilterSelect/index.d.ts +3 -3
  132. package/dist/ui/atoms/FilterSelect/index.d.ts.map +1 -0
  133. package/dist/ui/atoms/FilterSelect/index.js +238 -2
  134. package/dist/ui/atoms/FilterSelect/types.d.ts +13 -16
  135. package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -1
  136. package/dist/ui/atoms/FilterSelect/types.js +1 -0
  137. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +14 -17
  138. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  139. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +81 -43
  140. package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -2
  141. package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +1 -0
  142. package/dist/ui/atoms/LoadingSpinner/index.js +83 -2
  143. package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -7
  144. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -1
  145. package/dist/ui/atoms/Pagination/Pagination.js +380 -155
  146. package/dist/ui/atoms/Pagination/index.d.ts +3 -3
  147. package/dist/ui/atoms/Pagination/index.d.ts.map +1 -0
  148. package/dist/ui/atoms/Pagination/index.js +381 -2
  149. package/dist/ui/atoms/Pagination/types.d.ts +11 -14
  150. package/dist/ui/atoms/Pagination/types.d.ts.map +1 -1
  151. package/dist/ui/atoms/Pagination/types.js +1 -0
  152. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -7
  153. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -1
  154. package/dist/ui/atoms/SearchInput/SearchInput.js +116 -48
  155. package/dist/ui/atoms/SearchInput/index.d.ts +3 -3
  156. package/dist/ui/atoms/SearchInput/index.d.ts.map +1 -0
  157. package/dist/ui/atoms/SearchInput/index.js +117 -2
  158. package/dist/ui/atoms/SearchInput/types.d.ts +8 -11
  159. package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -1
  160. package/dist/ui/atoms/SearchInput/types.js +1 -0
  161. package/dist/ui/avatar.d.ts +6 -19
  162. package/dist/ui/avatar.d.ts.map +1 -1
  163. package/dist/ui/avatar.js +44 -28
  164. package/dist/ui/badge.d.ts +7 -17
  165. package/dist/ui/badge.d.ts.map +1 -1
  166. package/dist/ui/badge.js +34 -23
  167. package/dist/ui/breadcrumb.d.ts +11 -37
  168. package/dist/ui/breadcrumb.d.ts.map +1 -1
  169. package/dist/ui/breadcrumb.js +94 -62
  170. package/dist/ui/button.d.ts +14 -18
  171. package/dist/ui/button.d.ts.map +1 -1
  172. package/dist/ui/button.js +46 -50
  173. package/dist/ui/calendar.d.ts +7 -25
  174. package/dist/ui/calendar.d.ts.map +1 -1
  175. package/dist/ui/calendar.js +172 -105
  176. package/dist/ui/card.d.ts +9 -34
  177. package/dist/ui/card.d.ts.map +1 -1
  178. package/dist/ui/card.js +73 -49
  179. package/dist/ui/carousel.d.ts +13 -41
  180. package/dist/ui/carousel.d.ts.map +1 -1
  181. package/dist/ui/carousel.js +215 -127
  182. package/dist/ui/checkbox.d.ts +3 -10
  183. package/dist/ui/checkbox.d.ts.map +1 -1
  184. package/dist/ui/checkbox.js +25 -21
  185. package/dist/ui/collapsible.d.ts +5 -15
  186. package/dist/ui/collapsible.d.ts.map +1 -1
  187. package/dist/ui/collapsible.js +31 -23
  188. package/dist/ui/command.d.ts +18 -52
  189. package/dist/ui/command.d.ts.map +1 -1
  190. package/dist/ui/command.js +258 -87
  191. package/dist/ui/confirm-dialog.d.ts +13 -29
  192. package/dist/ui/confirm-dialog.d.ts.map +1 -1
  193. package/dist/ui/confirm-dialog.js +219 -32
  194. package/dist/ui/context-menu.d.ts +25 -32
  195. package/dist/ui/context-menu.d.ts.map +1 -1
  196. package/dist/ui/context-menu.js +109 -71
  197. package/dist/ui/cta.d.ts +17 -21
  198. package/dist/ui/cta.d.ts.map +1 -1
  199. package/dist/ui/cta.js +94 -36
  200. package/dist/ui/date-picker.d.ts +10 -24
  201. package/dist/ui/date-picker.d.ts.map +1 -1
  202. package/dist/ui/date-picker.js +342 -98
  203. package/dist/ui/date-range-picker.d.ts +11 -23
  204. package/dist/ui/date-range-picker.d.ts.map +1 -1
  205. package/dist/ui/date-range-picker.js +268 -51
  206. package/dist/ui/datetime-picker.d.ts +11 -26
  207. package/dist/ui/datetime-picker.d.ts.map +1 -1
  208. package/dist/ui/datetime-picker.js +479 -39
  209. package/dist/ui/dialog.d.ts +15 -47
  210. package/dist/ui/dialog.d.ts.map +1 -1
  211. package/dist/ui/dialog.js +122 -77
  212. package/dist/ui/drawer.d.ts +13 -44
  213. package/dist/ui/drawer.d.ts.map +1 -1
  214. package/dist/ui/drawer.js +113 -70
  215. package/dist/ui/dropdown-menu.d.ts +25 -77
  216. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  217. package/dist/ui/dropdown-menu.js +191 -109
  218. package/dist/ui/empty-state.d.ts +13 -26
  219. package/dist/ui/empty-state.d.ts.map +1 -1
  220. package/dist/ui/empty-state.js +201 -40
  221. package/dist/ui/empty.d.ts +11 -35
  222. package/dist/ui/empty.d.ts.map +1 -1
  223. package/dist/ui/empty.js +76 -53
  224. package/dist/ui/field.d.ts +24 -64
  225. package/dist/ui/field.d.ts.map +1 -1
  226. package/dist/ui/field.js +202 -107
  227. package/dist/ui/focus-on-route-change.d.ts +2 -7
  228. package/dist/ui/focus-on-route-change.d.ts.map +1 -1
  229. package/dist/ui/focus-on-route-change.js +18 -15
  230. package/dist/ui/form.d.ts +24 -44
  231. package/dist/ui/form.d.ts.map +1 -1
  232. package/dist/ui/form.js +141 -84
  233. package/dist/ui/hover-card.d.ts +6 -19
  234. package/dist/ui/hover-card.d.ts.map +1 -1
  235. package/dist/ui/hover-card.js +41 -31
  236. package/dist/ui/input-group.d.ts +14 -41
  237. package/dist/ui/input-group.d.ts.map +1 -1
  238. package/dist/ui/input-group.js +177 -79
  239. package/dist/ui/input-otp.d.ts +32 -36
  240. package/dist/ui/input-otp.d.ts.map +1 -1
  241. package/dist/ui/input-otp.js +47 -38
  242. package/dist/ui/input.d.ts +4 -12
  243. package/dist/ui/input.d.ts.map +1 -1
  244. package/dist/ui/input.js +14 -14
  245. package/dist/ui/label.d.ts +3 -10
  246. package/dist/ui/label.d.ts.map +1 -1
  247. package/dist/ui/label.js +18 -16
  248. package/dist/ui/link.d.ts +3 -7
  249. package/dist/ui/link.d.ts.map +1 -1
  250. package/dist/ui/link.js +14 -13
  251. package/dist/ui/live-region.d.ts +8 -14
  252. package/dist/ui/live-region.d.ts.map +1 -1
  253. package/dist/ui/live-region.js +47 -43
  254. package/dist/ui/loading-button.d.ts +7 -17
  255. package/dist/ui/loading-button.d.ts.map +1 -1
  256. package/dist/ui/loading-button.js +221 -19
  257. package/dist/ui/map/MapBase.d.ts +20 -25
  258. package/dist/ui/map/MapBase.d.ts.map +1 -1
  259. package/dist/ui/map/MapBase.js +62 -43
  260. package/dist/ui/map/MapGeoJsonOverlay.d.ts +9 -14
  261. package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +1 -1
  262. package/dist/ui/map/MapGeoJsonOverlay.js +47 -33
  263. package/dist/ui/map/MapHeatmapH3.d.ts +10 -15
  264. package/dist/ui/map/MapHeatmapH3.d.ts.map +1 -1
  265. package/dist/ui/map/MapHeatmapH3.js +55 -44
  266. package/dist/ui/map/MapMarkers.d.ts +11 -18
  267. package/dist/ui/map/MapMarkers.d.ts.map +1 -1
  268. package/dist/ui/map/MapMarkers.js +36 -35
  269. package/dist/ui/map/index.d.ts +5 -5
  270. package/dist/ui/map/index.d.ts.map +1 -0
  271. package/dist/ui/map/index.js +204 -5
  272. package/dist/ui/marketing/FeatureGrid.d.ts +10 -19
  273. package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -1
  274. package/dist/ui/marketing/FeatureGrid.js +42 -32
  275. package/dist/ui/marketing/Hero.d.ts +16 -27
  276. package/dist/ui/marketing/Hero.d.ts.map +1 -1
  277. package/dist/ui/marketing/Hero.js +108 -50
  278. package/dist/ui/marketing/PricingTable.d.ts +15 -23
  279. package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
  280. package/dist/ui/marketing/PricingTable.js +119 -57
  281. package/dist/ui/marketing/index.d.ts +4 -4
  282. package/dist/ui/marketing/index.d.ts.map +1 -0
  283. package/dist/ui/marketing/index.js +211 -4
  284. package/dist/ui/menubar.d.ts +26 -84
  285. package/dist/ui/menubar.d.ts.map +1 -1
  286. package/dist/ui/menubar.js +223 -134
  287. package/dist/ui/molecules/Autocomplete/index.d.ts +1 -6
  288. package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
  289. package/dist/ui/molecules/Autocomplete/index.js +574 -80
  290. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -7
  291. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -1
  292. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +496 -101
  293. package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -3
  294. package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +1 -0
  295. package/dist/ui/molecules/SearchAndFilter/index.js +497 -2
  296. package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -22
  297. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
  298. package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
  299. package/dist/ui/molecules/SkeletonList.d.ts +5 -13
  300. package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
  301. package/dist/ui/molecules/SkeletonList.js +36 -12
  302. package/dist/ui/nav-layout.d.ts +44 -67
  303. package/dist/ui/nav-layout.d.ts.map +1 -1
  304. package/dist/ui/nav-layout.js +287 -127
  305. package/dist/ui/navigation-menu.d.ts +14 -46
  306. package/dist/ui/navigation-menu.d.ts.map +1 -1
  307. package/dist/ui/navigation-menu.js +113 -73
  308. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +18 -22
  309. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  310. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +182 -103
  311. package/dist/ui/organisms/ErrorBoundary/index.d.ts +3 -2
  312. package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +1 -0
  313. package/dist/ui/organisms/ErrorBoundary/index.js +185 -2
  314. package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -28
  315. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
  316. package/dist/ui/organisms/ListPage/ListPage.js +1229 -196
  317. package/dist/ui/organisms/ListPage/index.d.ts +3 -3
  318. package/dist/ui/organisms/ListPage/index.d.ts.map +1 -0
  319. package/dist/ui/organisms/ListPage/index.js +1230 -2
  320. package/dist/ui/organisms/ListPage/types.d.ts +34 -38
  321. package/dist/ui/organisms/ListPage/types.d.ts.map +1 -1
  322. package/dist/ui/organisms/ListPage/types.js +1 -0
  323. package/dist/ui/page-header.d.ts +12 -24
  324. package/dist/ui/page-header.d.ts.map +1 -1
  325. package/dist/ui/page-header.js +198 -37
  326. package/dist/ui/pagination.d.ts +17 -38
  327. package/dist/ui/pagination.d.ts.map +1 -1
  328. package/dist/ui/pagination.js +142 -56
  329. package/dist/ui/popover.d.ts +7 -22
  330. package/dist/ui/popover.d.ts.map +1 -1
  331. package/dist/ui/popover.js +48 -33
  332. package/dist/ui/progress.d.ts +3 -11
  333. package/dist/ui/progress.d.ts.map +1 -1
  334. package/dist/ui/progress.js +24 -21
  335. package/dist/ui/radio-group.d.ts +4 -14
  336. package/dist/ui/radio-group.d.ts.map +1 -1
  337. package/dist/ui/radio-group.js +35 -27
  338. package/dist/ui/resizable.d.ts +22 -34
  339. package/dist/ui/resizable.d.ts.map +1 -1
  340. package/dist/ui/resizable.js +33 -22
  341. package/dist/ui/route-announcer.d.ts +3 -10
  342. package/dist/ui/route-announcer.d.ts.map +1 -1
  343. package/dist/ui/route-announcer.js +20 -19
  344. package/dist/ui/scroll-area.d.ts +4 -16
  345. package/dist/ui/scroll-area.d.ts.map +1 -1
  346. package/dist/ui/scroll-area.js +44 -36
  347. package/dist/ui/section.d.ts +20 -24
  348. package/dist/ui/section.d.ts.map +1 -1
  349. package/dist/ui/section.js +56 -59
  350. package/dist/ui/select.d.ts +15 -51
  351. package/dist/ui/select.d.ts.map +1 -1
  352. package/dist/ui/select.js +147 -87
  353. package/dist/ui/separator.d.ts +3 -12
  354. package/dist/ui/separator.d.ts.map +1 -1
  355. package/dist/ui/separator.js +22 -18
  356. package/dist/ui/sheet.d.ts +13 -40
  357. package/dist/ui/sheet.d.ts.map +1 -1
  358. package/dist/ui/sheet.js +117 -72
  359. package/dist/ui/sidebar.d.ts +65 -162
  360. package/dist/ui/sidebar.d.ts.map +1 -1
  361. package/dist/ui/sidebar.js +794 -372
  362. package/dist/ui/skeleton.d.ts +2 -9
  363. package/dist/ui/skeleton.d.ts.map +1 -1
  364. package/dist/ui/skeleton.js +22 -12
  365. package/dist/ui/skip-link.d.ts +6 -15
  366. package/dist/ui/skip-link.d.ts.map +1 -1
  367. package/dist/ui/skip-link.js +20 -15
  368. package/dist/ui/slider.d.ts +3 -14
  369. package/dist/ui/slider.d.ts.map +1 -1
  370. package/dist/ui/slider.js +42 -37
  371. package/dist/ui/sonner.d.ts +2 -8
  372. package/dist/ui/sonner.d.ts.map +1 -1
  373. package/dist/ui/sonner.js +21 -21
  374. package/dist/ui/stack.d.ts +40 -44
  375. package/dist/ui/stack.d.ts.map +1 -1
  376. package/dist/ui/stack.js +143 -148
  377. package/dist/ui/stat-card-group.d.ts +9 -17
  378. package/dist/ui/stat-card-group.d.ts.map +1 -1
  379. package/dist/ui/stat-card-group.js +255 -36
  380. package/dist/ui/stepper.d.ts +10 -20
  381. package/dist/ui/stepper.d.ts.map +1 -1
  382. package/dist/ui/stepper.js +176 -33
  383. package/dist/ui/switch.d.ts +5 -13
  384. package/dist/ui/switch.d.ts.map +1 -1
  385. package/dist/ui/switch.js +23 -20
  386. package/dist/ui/table.d.ts +10 -38
  387. package/dist/ui/table.d.ts.map +1 -1
  388. package/dist/ui/table.js +91 -61
  389. package/dist/ui/tabs.d.ts +7 -23
  390. package/dist/ui/tabs.d.ts.map +1 -1
  391. package/dist/ui/tabs.js +48 -34
  392. package/dist/ui/text.d.ts +5 -13
  393. package/dist/ui/text.d.ts.map +1 -1
  394. package/dist/ui/text.js +14 -13
  395. package/dist/ui/textarea.d.ts +4 -11
  396. package/dist/ui/textarea.d.ts.map +1 -1
  397. package/dist/ui/textarea.js +13 -13
  398. package/dist/ui/time-picker.d.ts +8 -20
  399. package/dist/ui/time-picker.d.ts.map +1 -1
  400. package/dist/ui/time-picker.js +176 -76
  401. package/dist/ui/toast.d.ts +15 -19
  402. package/dist/ui/toast.d.ts.map +1 -1
  403. package/dist/ui/toast.js +63 -51
  404. package/dist/ui/toaster.d.ts +1 -6
  405. package/dist/ui/toaster.d.ts.map +1 -1
  406. package/dist/ui/toaster.js +212 -24
  407. package/dist/ui/toggle-group.d.ts +6 -22
  408. package/dist/ui/toggle-group.d.ts.map +1 -1
  409. package/dist/ui/toggle-group.js +85 -42
  410. package/dist/ui/toggle.d.ts +7 -17
  411. package/dist/ui/toggle.d.ts.map +1 -1
  412. package/dist/ui/toggle.js +38 -37
  413. package/dist/ui/tooltip.d.ts +7 -23
  414. package/dist/ui/tooltip.d.ts.map +1 -1
  415. package/dist/ui/tooltip.js +57 -34
  416. package/dist/ui/typography.d.ts +13 -61
  417. package/dist/ui/typography.d.ts.map +1 -1
  418. package/dist/ui/typography.js +95 -64
  419. package/dist/ui/use-media-query.d.ts +1 -4
  420. package/dist/ui/use-media-query.d.ts.map +1 -1
  421. package/dist/ui/use-media-query.js +18 -17
  422. package/dist/ui/use-mobile.d.ts +1 -4
  423. package/dist/ui/use-mobile.d.ts.map +1 -1
  424. package/dist/ui/use-mobile.js +19 -18
  425. package/dist/ui/use-reduced-motion.d.ts +1 -4
  426. package/dist/ui/use-reduced-motion.d.ts.map +1 -1
  427. package/dist/ui/use-reduced-motion.js +16 -15
  428. package/dist/ui/use-toast.d.ts +28 -33
  429. package/dist/ui/use-toast.d.ts.map +1 -1
  430. package/dist/ui/use-toast.js +113 -111
  431. package/dist/ui/useListState.d.ts +23 -31
  432. package/dist/ui/useListState.d.ts.map +1 -1
  433. package/dist/ui/useListState.js +69 -73
  434. package/dist/ui/usecases/UseCaseCard.d.ts +7 -18
  435. package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
  436. package/dist/ui/usecases/UseCaseCard.js +225 -33
  437. package/dist/ui/usecases/UserStoryCard.d.ts +5 -14
  438. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
  439. package/dist/ui/usecases/UserStoryCard.js +179 -34
  440. package/dist/ui/usecases/index.d.ts +3 -3
  441. package/dist/ui/usecases/index.d.ts.map +1 -0
  442. package/dist/ui/usecases/index.js +261 -3
  443. package/dist/ui/utils.d.ts +2 -6
  444. package/dist/ui/utils.d.ts.map +1 -1
  445. package/dist/ui/utils.js +8 -7
  446. package/dist/ui/visually-hidden.d.ts +5 -8
  447. package/dist/ui/visually-hidden.d.ts.map +1 -1
  448. package/dist/ui/visually-hidden.js +26 -27
  449. package/package.json +874 -238
  450. package/dist/ui/accordion.js.map +0 -1
  451. package/dist/ui/alert-dialog.js.map +0 -1
  452. package/dist/ui/alert.js.map +0 -1
  453. package/dist/ui/aspect-ratio.js.map +0 -1
  454. package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
  455. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
  456. package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
  457. package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
  458. package/dist/ui/avatar.js.map +0 -1
  459. package/dist/ui/badge.js.map +0 -1
  460. package/dist/ui/breadcrumb.js.map +0 -1
  461. package/dist/ui/button.js.map +0 -1
  462. package/dist/ui/calendar.js.map +0 -1
  463. package/dist/ui/card.js.map +0 -1
  464. package/dist/ui/carousel.js.map +0 -1
  465. package/dist/ui/checkbox.js.map +0 -1
  466. package/dist/ui/collapsible.js.map +0 -1
  467. package/dist/ui/command.js.map +0 -1
  468. package/dist/ui/confirm-dialog.js.map +0 -1
  469. package/dist/ui/context-menu.js.map +0 -1
  470. package/dist/ui/cta.js.map +0 -1
  471. package/dist/ui/date-picker.js.map +0 -1
  472. package/dist/ui/date-range-picker.js.map +0 -1
  473. package/dist/ui/datetime-picker.js.map +0 -1
  474. package/dist/ui/dialog.js.map +0 -1
  475. package/dist/ui/drawer.js.map +0 -1
  476. package/dist/ui/dropdown-menu.js.map +0 -1
  477. package/dist/ui/empty-state.js.map +0 -1
  478. package/dist/ui/empty.js.map +0 -1
  479. package/dist/ui/field.js.map +0 -1
  480. package/dist/ui/focus-on-route-change.js.map +0 -1
  481. package/dist/ui/form.js.map +0 -1
  482. package/dist/ui/hover-card.js.map +0 -1
  483. package/dist/ui/input-group.js.map +0 -1
  484. package/dist/ui/input-otp.js.map +0 -1
  485. package/dist/ui/input.js.map +0 -1
  486. package/dist/ui/label.js.map +0 -1
  487. package/dist/ui/link.js.map +0 -1
  488. package/dist/ui/live-region.js.map +0 -1
  489. package/dist/ui/loading-button.js.map +0 -1
  490. package/dist/ui/map/MapBase.js.map +0 -1
  491. package/dist/ui/map/MapGeoJsonOverlay.js.map +0 -1
  492. package/dist/ui/map/MapHeatmapH3.js.map +0 -1
  493. package/dist/ui/map/MapMarkers.js.map +0 -1
  494. package/dist/ui/marketing/FeatureGrid.js.map +0 -1
  495. package/dist/ui/marketing/Hero.js.map +0 -1
  496. package/dist/ui/marketing/PricingTable.js.map +0 -1
  497. package/dist/ui/menubar.js.map +0 -1
  498. package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
  499. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
  500. package/dist/ui/molecules/SkeletonList.js.map +0 -1
  501. package/dist/ui/nav-layout.js.map +0 -1
  502. package/dist/ui/navigation-menu.js.map +0 -1
  503. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
  504. package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
  505. package/dist/ui/page-header.js.map +0 -1
  506. package/dist/ui/pagination.js.map +0 -1
  507. package/dist/ui/popover.js.map +0 -1
  508. package/dist/ui/progress.js.map +0 -1
  509. package/dist/ui/radio-group.js.map +0 -1
  510. package/dist/ui/resizable.js.map +0 -1
  511. package/dist/ui/route-announcer.js.map +0 -1
  512. package/dist/ui/scroll-area.js.map +0 -1
  513. package/dist/ui/section.js.map +0 -1
  514. package/dist/ui/select.js.map +0 -1
  515. package/dist/ui/separator.js.map +0 -1
  516. package/dist/ui/sheet.js.map +0 -1
  517. package/dist/ui/sidebar.js.map +0 -1
  518. package/dist/ui/skeleton.js.map +0 -1
  519. package/dist/ui/skip-link.js.map +0 -1
  520. package/dist/ui/slider.js.map +0 -1
  521. package/dist/ui/sonner.js.map +0 -1
  522. package/dist/ui/stack.js.map +0 -1
  523. package/dist/ui/stat-card-group.js.map +0 -1
  524. package/dist/ui/stepper.js.map +0 -1
  525. package/dist/ui/switch.js.map +0 -1
  526. package/dist/ui/table.js.map +0 -1
  527. package/dist/ui/tabs.js.map +0 -1
  528. package/dist/ui/text.js.map +0 -1
  529. package/dist/ui/textarea.js.map +0 -1
  530. package/dist/ui/time-picker.js.map +0 -1
  531. package/dist/ui/toast.js.map +0 -1
  532. package/dist/ui/toaster.js.map +0 -1
  533. package/dist/ui/toggle-group.js.map +0 -1
  534. package/dist/ui/toggle.js.map +0 -1
  535. package/dist/ui/tooltip.js.map +0 -1
  536. package/dist/ui/typography.js.map +0 -1
  537. package/dist/ui/use-media-query.js.map +0 -1
  538. package/dist/ui/use-mobile.js.map +0 -1
  539. package/dist/ui/use-reduced-motion.js.map +0 -1
  540. package/dist/ui/use-toast.js.map +0 -1
  541. package/dist/ui/useListState.js.map +0 -1
  542. package/dist/ui/usecases/UseCaseCard.js.map +0 -1
  543. package/dist/ui/usecases/UserStoryCard.js.map +0 -1
  544. package/dist/ui/utils.js.map +0 -1
  545. package/dist/ui/visually-hidden.js.map +0 -1
@@ -1,85 +1,579 @@
1
- 'use client';
1
+ // @bun
2
+ var __require = import.meta.require;
2
3
 
3
- import { Button } from "../../button.js";
4
- import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../../command.js";
5
- import { Popover, PopoverContent, PopoverTrigger } from "../../popover.js";
6
- import { Drawer, DrawerContent, DrawerTrigger } from "../../drawer.js";
7
- import { useMediaQuery } from "../../use-media-query.js";
8
- import * as React$1 from "react";
9
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ // ui/button.tsx
5
+ import * as React from "react";
6
+ import { Slot } from "@radix-ui/react-slot";
7
+ import { cva } from "class-variance-authority";
8
+ import { cn } from "@contractspec/lib.ui-kit-core/utils";
9
+ import { jsxDEV } from "react/jsx-dev-runtime";
10
+ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-hidden focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
11
+ variants: {
12
+ variant: {
13
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
14
+ destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
15
+ outline: "border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
16
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
17
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
18
+ link: "text-primary underline-offset-4 hover:underline"
19
+ },
20
+ size: {
21
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
22
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
23
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
24
+ icon: "size-9"
25
+ }
26
+ },
27
+ defaultVariants: {
28
+ variant: "default",
29
+ size: "default"
30
+ }
31
+ });
32
+ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
33
+ if (asChild) {
34
+ return /* @__PURE__ */ jsxDEV(Slot, {
35
+ "data-slot": "button",
36
+ className: cn(buttonVariants({ variant, size, className })),
37
+ ...props
38
+ }, undefined, false, undefined, this);
39
+ }
40
+ return /* @__PURE__ */ jsxDEV("button", {
41
+ ref,
42
+ "data-slot": "button",
43
+ className: cn(buttonVariants({ variant, size, className })),
44
+ ...props
45
+ }, undefined, false, undefined, this);
46
+ });
47
+ Button.displayName = "Button";
48
+ // ui/dialog.tsx
49
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
50
+ import { XIcon } from "lucide-react";
51
+ import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
52
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
53
+ "use client";
54
+ function Dialog({
55
+ ...props
56
+ }) {
57
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Root, {
58
+ "data-slot": "dialog",
59
+ ...props
60
+ }, undefined, false, undefined, this);
61
+ }
62
+ function DialogTrigger({
63
+ ...props
64
+ }) {
65
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Trigger, {
66
+ "data-slot": "dialog-trigger",
67
+ ...props
68
+ }, undefined, false, undefined, this);
69
+ }
70
+ function DialogPortal({
71
+ ...props
72
+ }) {
73
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Portal, {
74
+ "data-slot": "dialog-portal",
75
+ ...props
76
+ }, undefined, false, undefined, this);
77
+ }
78
+ function DialogClose({
79
+ ...props
80
+ }) {
81
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Close, {
82
+ "data-slot": "dialog-close",
83
+ ...props
84
+ }, undefined, false, undefined, this);
85
+ }
86
+ function DialogOverlay({
87
+ className,
88
+ ...props
89
+ }) {
90
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Overlay, {
91
+ "data-slot": "dialog-overlay",
92
+ className: cn2("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
93
+ ...props
94
+ }, undefined, false, undefined, this);
95
+ }
96
+ function DialogContent({
97
+ className,
98
+ children,
99
+ showCloseButton = true,
100
+ ...props
101
+ }) {
102
+ return /* @__PURE__ */ jsxDEV2(DialogPortal, {
103
+ "data-slot": "dialog-portal",
104
+ children: [
105
+ /* @__PURE__ */ jsxDEV2(DialogOverlay, {}, undefined, false, undefined, this),
106
+ /* @__PURE__ */ jsxDEV2(DialogPrimitive.Content, {
107
+ "data-slot": "dialog-content",
108
+ className: cn2("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
109
+ ...props,
110
+ children: [
111
+ children,
112
+ showCloseButton && /* @__PURE__ */ jsxDEV2(DialogPrimitive.Close, {
113
+ "data-slot": "dialog-close",
114
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
115
+ children: [
116
+ /* @__PURE__ */ jsxDEV2(XIcon, {}, undefined, false, undefined, this),
117
+ /* @__PURE__ */ jsxDEV2("span", {
118
+ className: "sr-only",
119
+ children: "Close"
120
+ }, undefined, false, undefined, this)
121
+ ]
122
+ }, undefined, true, undefined, this)
123
+ ]
124
+ }, undefined, true, undefined, this)
125
+ ]
126
+ }, undefined, true, undefined, this);
127
+ }
128
+ function DialogHeader({
129
+ className,
130
+ ...props
131
+ }) {
132
+ return /* @__PURE__ */ jsxDEV2("div", {
133
+ "data-slot": "dialog-header",
134
+ className: cn2("flex flex-col gap-2 text-center sm:text-left", className),
135
+ ...props
136
+ }, undefined, false, undefined, this);
137
+ }
138
+ function DialogFooter({
139
+ className,
140
+ ...props
141
+ }) {
142
+ return /* @__PURE__ */ jsxDEV2("div", {
143
+ "data-slot": "dialog-footer",
144
+ className: cn2("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
145
+ ...props
146
+ }, undefined, false, undefined, this);
147
+ }
148
+ function DialogTitle({
149
+ className,
150
+ ...props
151
+ }) {
152
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Title, {
153
+ "data-slot": "dialog-title",
154
+ className: cn2("text-lg leading-none font-semibold", className),
155
+ ...props
156
+ }, undefined, false, undefined, this);
157
+ }
158
+ function DialogDescription({
159
+ className,
160
+ ...props
161
+ }) {
162
+ return /* @__PURE__ */ jsxDEV2(DialogPrimitive.Description, {
163
+ "data-slot": "dialog-description",
164
+ className: cn2("text-muted-foreground text-sm", className),
165
+ ...props
166
+ }, undefined, false, undefined, this);
167
+ }
168
+ // ui/command.tsx
169
+ import { Command as CommandPrimitive } from "cmdk";
170
+ import { SearchIcon } from "lucide-react";
171
+ import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
172
+ import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
173
+ "use client";
174
+ function Command({
175
+ className,
176
+ ...props
177
+ }) {
178
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive, {
179
+ "data-slot": "command",
180
+ className: cn3("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
181
+ ...props
182
+ }, undefined, false, undefined, this);
183
+ }
184
+ function CommandDialog({
185
+ title = "Command Palette",
186
+ description = "Search for a command to run...",
187
+ children,
188
+ className,
189
+ showCloseButton = true,
190
+ ...props
191
+ }) {
192
+ return /* @__PURE__ */ jsxDEV3(Dialog, {
193
+ ...props,
194
+ children: [
195
+ /* @__PURE__ */ jsxDEV3(DialogHeader, {
196
+ className: "sr-only",
197
+ children: [
198
+ /* @__PURE__ */ jsxDEV3(DialogTitle, {
199
+ children: title
200
+ }, undefined, false, undefined, this),
201
+ /* @__PURE__ */ jsxDEV3(DialogDescription, {
202
+ children: description
203
+ }, undefined, false, undefined, this)
204
+ ]
205
+ }, undefined, true, undefined, this),
206
+ /* @__PURE__ */ jsxDEV3(DialogContent, {
207
+ className: cn3("overflow-hidden p-0", className),
208
+ showCloseButton,
209
+ children: /* @__PURE__ */ jsxDEV3(Command, {
210
+ className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
211
+ children
212
+ }, undefined, false, undefined, this)
213
+ }, undefined, false, undefined, this)
214
+ ]
215
+ }, undefined, true, undefined, this);
216
+ }
217
+ function CommandInput({
218
+ className,
219
+ ...props
220
+ }) {
221
+ return /* @__PURE__ */ jsxDEV3("div", {
222
+ "data-slot": "command-input-wrapper",
223
+ className: "flex h-9 items-center gap-2 border-b px-3",
224
+ children: [
225
+ /* @__PURE__ */ jsxDEV3(SearchIcon, {
226
+ className: "size-4 shrink-0 opacity-50"
227
+ }, undefined, false, undefined, this),
228
+ /* @__PURE__ */ jsxDEV3(CommandPrimitive.Input, {
229
+ "data-slot": "command-input",
230
+ className: cn3("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
231
+ ...props
232
+ }, undefined, false, undefined, this)
233
+ ]
234
+ }, undefined, true, undefined, this);
235
+ }
236
+ function CommandList({
237
+ className,
238
+ ...props
239
+ }) {
240
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive.List, {
241
+ "data-slot": "command-list",
242
+ className: cn3("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
243
+ ...props
244
+ }, undefined, false, undefined, this);
245
+ }
246
+ function CommandEmpty({
247
+ ...props
248
+ }) {
249
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Empty, {
250
+ "data-slot": "command-empty",
251
+ className: "py-6 text-center text-sm",
252
+ ...props
253
+ }, undefined, false, undefined, this);
254
+ }
255
+ function CommandGroup({
256
+ className,
257
+ ...props
258
+ }) {
259
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Group, {
260
+ "data-slot": "command-group",
261
+ className: cn3("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
262
+ ...props
263
+ }, undefined, false, undefined, this);
264
+ }
265
+ function CommandSeparator({
266
+ className,
267
+ ...props
268
+ }) {
269
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Separator, {
270
+ "data-slot": "command-separator",
271
+ className: cn3("bg-border -mx-1 h-px", className),
272
+ ...props
273
+ }, undefined, false, undefined, this);
274
+ }
275
+ function CommandItem({
276
+ className,
277
+ ...props
278
+ }) {
279
+ return /* @__PURE__ */ jsxDEV3(CommandPrimitive.Item, {
280
+ "data-slot": "command-item",
281
+ className: cn3("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
282
+ ...props
283
+ }, undefined, false, undefined, this);
284
+ }
285
+ function CommandShortcut({
286
+ className,
287
+ ...props
288
+ }) {
289
+ return /* @__PURE__ */ jsxDEV3("span", {
290
+ "data-slot": "command-shortcut",
291
+ className: cn3("text-muted-foreground ml-auto text-xs tracking-widest", className),
292
+ ...props
293
+ }, undefined, false, undefined, this);
294
+ }
295
+ // ui/popover.tsx
296
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
297
+ import { cn as cn4 } from "@contractspec/lib.ui-kit-core/utils";
298
+ import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
299
+ "use client";
300
+ function Popover({
301
+ ...props
302
+ }) {
303
+ return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Root, {
304
+ "data-slot": "popover",
305
+ ...props
306
+ }, undefined, false, undefined, this);
307
+ }
308
+ function PopoverTrigger({
309
+ ...props
310
+ }) {
311
+ return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Trigger, {
312
+ "data-slot": "popover-trigger",
313
+ ...props
314
+ }, undefined, false, undefined, this);
315
+ }
316
+ function PopoverContent({
317
+ className,
318
+ align = "center",
319
+ sideOffset = 4,
320
+ ...props
321
+ }) {
322
+ return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Portal, {
323
+ children: /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Content, {
324
+ "data-slot": "popover-content",
325
+ align,
326
+ sideOffset,
327
+ className: cn4("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out 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 p-4 shadow-md outline-hidden", className),
328
+ ...props
329
+ }, undefined, false, undefined, this)
330
+ }, undefined, false, undefined, this);
331
+ }
332
+ function PopoverAnchor({
333
+ ...props
334
+ }) {
335
+ return /* @__PURE__ */ jsxDEV4(PopoverPrimitive.Anchor, {
336
+ "data-slot": "popover-anchor",
337
+ ...props
338
+ }, undefined, false, undefined, this);
339
+ }
340
+ // ui/drawer.tsx
341
+ import { Drawer as DrawerPrimitive } from "vaul";
342
+ import { cn as cn5 } from "@contractspec/lib.ui-kit-core/utils";
343
+ import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
344
+ "use client";
345
+ function Drawer({
346
+ ...props
347
+ }) {
348
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Root, {
349
+ "data-slot": "drawer",
350
+ ...props
351
+ }, undefined, false, undefined, this);
352
+ }
353
+ function DrawerTrigger({
354
+ ...props
355
+ }) {
356
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Trigger, {
357
+ "data-slot": "drawer-trigger",
358
+ ...props
359
+ }, undefined, false, undefined, this);
360
+ }
361
+ function DrawerPortal({
362
+ ...props
363
+ }) {
364
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Portal, {
365
+ "data-slot": "drawer-portal",
366
+ ...props
367
+ }, undefined, false, undefined, this);
368
+ }
369
+ function DrawerClose({
370
+ ...props
371
+ }) {
372
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Close, {
373
+ "data-slot": "drawer-close",
374
+ ...props
375
+ }, undefined, false, undefined, this);
376
+ }
377
+ function DrawerOverlay({
378
+ className,
379
+ ...props
380
+ }) {
381
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Overlay, {
382
+ "data-slot": "drawer-overlay",
383
+ className: cn5("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
384
+ ...props
385
+ }, undefined, false, undefined, this);
386
+ }
387
+ function DrawerContent({
388
+ className,
389
+ children,
390
+ ...props
391
+ }) {
392
+ return /* @__PURE__ */ jsxDEV5(DrawerPortal, {
393
+ "data-slot": "drawer-portal",
394
+ children: [
395
+ /* @__PURE__ */ jsxDEV5(DrawerOverlay, {}, undefined, false, undefined, this),
396
+ /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Content, {
397
+ "data-slot": "drawer-content",
398
+ className: cn5("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l sm:data-[vaul-drawer-direction=right]:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r sm:data-[vaul-drawer-direction=left]:max-w-sm", className),
399
+ ...props,
400
+ children: [
401
+ /* @__PURE__ */ jsxDEV5("div", {
402
+ className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
403
+ }, undefined, false, undefined, this),
404
+ children
405
+ ]
406
+ }, undefined, true, undefined, this)
407
+ ]
408
+ }, undefined, true, undefined, this);
409
+ }
410
+ function DrawerHeader({
411
+ className,
412
+ ...props
413
+ }) {
414
+ return /* @__PURE__ */ jsxDEV5("div", {
415
+ "data-slot": "drawer-header",
416
+ className: cn5("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className),
417
+ ...props
418
+ }, undefined, false, undefined, this);
419
+ }
420
+ function DrawerFooter({
421
+ className,
422
+ ...props
423
+ }) {
424
+ return /* @__PURE__ */ jsxDEV5("div", {
425
+ "data-slot": "drawer-footer",
426
+ className: cn5("mt-auto flex flex-col gap-2 p-4", className),
427
+ ...props
428
+ }, undefined, false, undefined, this);
429
+ }
430
+ function DrawerTitle({
431
+ className,
432
+ ...props
433
+ }) {
434
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Title, {
435
+ "data-slot": "drawer-title",
436
+ className: cn5("text-foreground font-semibold", className),
437
+ ...props
438
+ }, undefined, false, undefined, this);
439
+ }
440
+ function DrawerDescription({
441
+ className,
442
+ ...props
443
+ }) {
444
+ return /* @__PURE__ */ jsxDEV5(DrawerPrimitive.Description, {
445
+ "data-slot": "drawer-description",
446
+ className: cn5("text-muted-foreground text-sm", className),
447
+ ...props
448
+ }, undefined, false, undefined, this);
449
+ }
450
+ // ui/use-media-query.ts
451
+ import * as React2 from "react";
452
+ function useMediaQuery(query) {
453
+ const [value, setValue] = React2.useState(false);
454
+ React2.useEffect(() => {
455
+ function onChange(event) {
456
+ setValue(event.matches);
457
+ }
458
+ const result = matchMedia(query);
459
+ result.addEventListener("change", onChange);
460
+ setValue(result.matches);
461
+ return () => result.removeEventListener("change", onChange);
462
+ }, [query]);
463
+ return value;
464
+ }
10
465
 
11
- //#region ui/molecules/Autocomplete/index.tsx
12
- const statuses = [
13
- {
14
- value: "backlog",
15
- label: "Backlog"
16
- },
17
- {
18
- value: "in progress",
19
- label: "In Progress"
20
- },
21
- {
22
- value: "done",
23
- label: "Done"
24
- },
25
- {
26
- value: "canceled",
27
- label: "Canceled"
28
- }
466
+ // ui/molecules/Autocomplete/index.tsx
467
+ import * as React3 from "react";
468
+ import { jsxDEV as jsxDEV6, Fragment } from "react/jsx-dev-runtime";
469
+ "use client";
470
+ var statuses = [
471
+ {
472
+ value: "backlog",
473
+ label: "Backlog"
474
+ },
475
+ {
476
+ value: "in progress",
477
+ label: "In Progress"
478
+ },
479
+ {
480
+ value: "done",
481
+ label: "Done"
482
+ },
483
+ {
484
+ value: "canceled",
485
+ label: "Canceled"
486
+ }
29
487
  ];
30
488
  function ComboBoxResponsive() {
31
- const [open, setOpen] = React$1.useState(false);
32
- const isDesktop = useMediaQuery("(min-width: 768px)");
33
- const [selectedStatus, setSelectedStatus] = React$1.useState(null);
34
- if (isDesktop) return /* @__PURE__ */ jsxs(Popover, {
35
- open,
36
- onOpenChange: setOpen,
37
- children: [/* @__PURE__ */ jsx(PopoverTrigger, {
38
- asChild: true,
39
- children: /* @__PURE__ */ jsx(Button, {
40
- variant: "outline",
41
- className: "w-[150px] justify-start",
42
- children: selectedStatus ? /* @__PURE__ */ jsx(Fragment, { children: selectedStatus.label }) : /* @__PURE__ */ jsx(Fragment, { children: "+ Set status" })
43
- })
44
- }), /* @__PURE__ */ jsx(PopoverContent, {
45
- className: "w-[200px] p-0",
46
- align: "start",
47
- children: /* @__PURE__ */ jsx(StatusList, {
48
- setOpen,
49
- setSelectedStatus
50
- })
51
- })]
52
- });
53
- return /* @__PURE__ */ jsxs(Drawer, {
54
- open,
55
- onOpenChange: setOpen,
56
- children: [/* @__PURE__ */ jsx(DrawerTrigger, {
57
- asChild: true,
58
- children: /* @__PURE__ */ jsx(Button, {
59
- variant: "outline",
60
- className: "w-[150px] justify-start",
61
- children: selectedStatus ? /* @__PURE__ */ jsx(Fragment, { children: selectedStatus.label }) : /* @__PURE__ */ jsx(Fragment, { children: "+ Set status" })
62
- })
63
- }), /* @__PURE__ */ jsx(DrawerContent, { children: /* @__PURE__ */ jsx("div", {
64
- className: "mt-4 border-t",
65
- children: /* @__PURE__ */ jsx(StatusList, {
66
- setOpen,
67
- setSelectedStatus
68
- })
69
- }) })]
70
- });
71
- }
72
- function StatusList({ setOpen, setSelectedStatus }) {
73
- return /* @__PURE__ */ jsxs(Command, { children: [/* @__PURE__ */ jsx(CommandInput, { placeholder: "Filter status..." }), /* @__PURE__ */ jsxs(CommandList, { children: [/* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }), /* @__PURE__ */ jsx(CommandGroup, { children: statuses.map((status) => /* @__PURE__ */ jsx(CommandItem, {
74
- value: status.value,
75
- onSelect: (value) => {
76
- setSelectedStatus(statuses.find((priority) => priority.value === value) || null);
77
- setOpen(false);
78
- },
79
- children: status.label
80
- }, status.value)) })] })] });
489
+ const [open, setOpen] = React3.useState(false);
490
+ const isDesktop = useMediaQuery("(min-width: 768px)");
491
+ const [selectedStatus, setSelectedStatus] = React3.useState(null);
492
+ if (isDesktop) {
493
+ return /* @__PURE__ */ jsxDEV6(Popover, {
494
+ open,
495
+ onOpenChange: setOpen,
496
+ children: [
497
+ /* @__PURE__ */ jsxDEV6(PopoverTrigger, {
498
+ asChild: true,
499
+ children: /* @__PURE__ */ jsxDEV6(Button, {
500
+ variant: "outline",
501
+ className: "w-[150px] justify-start",
502
+ children: selectedStatus ? /* @__PURE__ */ jsxDEV6(Fragment, {
503
+ children: selectedStatus.label
504
+ }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV6(Fragment, {
505
+ children: "+ Set status"
506
+ }, undefined, false, undefined, this)
507
+ }, undefined, false, undefined, this)
508
+ }, undefined, false, undefined, this),
509
+ /* @__PURE__ */ jsxDEV6(PopoverContent, {
510
+ className: "w-[200px] p-0",
511
+ align: "start",
512
+ children: /* @__PURE__ */ jsxDEV6(StatusList, {
513
+ setOpen,
514
+ setSelectedStatus
515
+ }, undefined, false, undefined, this)
516
+ }, undefined, false, undefined, this)
517
+ ]
518
+ }, undefined, true, undefined, this);
519
+ }
520
+ return /* @__PURE__ */ jsxDEV6(Drawer, {
521
+ open,
522
+ onOpenChange: setOpen,
523
+ children: [
524
+ /* @__PURE__ */ jsxDEV6(DrawerTrigger, {
525
+ asChild: true,
526
+ children: /* @__PURE__ */ jsxDEV6(Button, {
527
+ variant: "outline",
528
+ className: "w-[150px] justify-start",
529
+ children: selectedStatus ? /* @__PURE__ */ jsxDEV6(Fragment, {
530
+ children: selectedStatus.label
531
+ }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV6(Fragment, {
532
+ children: "+ Set status"
533
+ }, undefined, false, undefined, this)
534
+ }, undefined, false, undefined, this)
535
+ }, undefined, false, undefined, this),
536
+ /* @__PURE__ */ jsxDEV6(DrawerContent, {
537
+ children: /* @__PURE__ */ jsxDEV6("div", {
538
+ className: "mt-4 border-t",
539
+ children: /* @__PURE__ */ jsxDEV6(StatusList, {
540
+ setOpen,
541
+ setSelectedStatus
542
+ }, undefined, false, undefined, this)
543
+ }, undefined, false, undefined, this)
544
+ }, undefined, false, undefined, this)
545
+ ]
546
+ }, undefined, true, undefined, this);
81
547
  }
82
-
83
- //#endregion
84
- export { ComboBoxResponsive };
85
- //# sourceMappingURL=index.js.map
548
+ function StatusList({
549
+ setOpen,
550
+ setSelectedStatus
551
+ }) {
552
+ return /* @__PURE__ */ jsxDEV6(Command, {
553
+ children: [
554
+ /* @__PURE__ */ jsxDEV6(CommandInput, {
555
+ placeholder: "Filter status..."
556
+ }, undefined, false, undefined, this),
557
+ /* @__PURE__ */ jsxDEV6(CommandList, {
558
+ children: [
559
+ /* @__PURE__ */ jsxDEV6(CommandEmpty, {
560
+ children: "No results found."
561
+ }, undefined, false, undefined, this),
562
+ /* @__PURE__ */ jsxDEV6(CommandGroup, {
563
+ children: statuses.map((status) => /* @__PURE__ */ jsxDEV6(CommandItem, {
564
+ value: status.value,
565
+ onSelect: (value) => {
566
+ setSelectedStatus(statuses.find((priority) => priority.value === value) || null);
567
+ setOpen(false);
568
+ },
569
+ children: status.label
570
+ }, status.value, false, undefined, this))
571
+ }, undefined, false, undefined, this)
572
+ ]
573
+ }, undefined, true, undefined, this)
574
+ ]
575
+ }, undefined, true, undefined, this);
576
+ }
577
+ export {
578
+ ComboBoxResponsive
579
+ };
@@ -1,8 +1,4 @@
1
- import { SearchAndFilterProps } from "./types.js";
2
- import React from "react";
3
-
4
- //#region ui/molecules/SearchAndFilter/SearchAndFilter.d.ts
5
- declare const SearchAndFilter: React.FC<SearchAndFilterProps>;
6
- //#endregion
7
- export { SearchAndFilter };
1
+ import React from 'react';
2
+ import type { SearchAndFilterProps } from './types';
3
+ export declare const SearchAndFilter: React.FC<SearchAndFilterProps>;
8
4
  //# sourceMappingURL=SearchAndFilter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchAndFilter.d.ts","names":[],"sources":["../../../../ui/molecules/SearchAndFilter/SearchAndFilter.tsx"],"sourcesContent":[],"mappings":";;;;cAYa,iBAAiB,KAAA,CAAM,GAAG"}
1
+ {"version":3,"file":"SearchAndFilter.d.ts","sourceRoot":"","sources":["../../../../ui/molecules/SearchAndFilter/SearchAndFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2H1D,CAAC"}