@contractspec/lib.ui-kit 1.57.0 → 1.59.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 (480) hide show
  1. package/dist/browser/index.js +5 -0
  2. package/dist/browser/ui/accordion.js +160 -0
  3. package/dist/browser/ui/alert-dialog.js +205 -0
  4. package/dist/browser/ui/alert.js +85 -0
  5. package/dist/browser/ui/aspect-ratio.js +6 -0
  6. package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +527 -0
  7. package/dist/browser/ui/atoms/FilterSelect/index.js +527 -0
  8. package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
  9. package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +193 -0
  10. package/dist/browser/ui/atoms/LoadingSpinner/index.js +193 -0
  11. package/dist/browser/ui/atoms/Pagination/Pagination.js +442 -0
  12. package/dist/browser/ui/atoms/Pagination/index.js +442 -0
  13. package/dist/browser/ui/atoms/Pagination/types.js +0 -0
  14. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +155 -0
  15. package/dist/browser/ui/atoms/SearchInput/index.js +155 -0
  16. package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
  17. package/dist/browser/ui/avatar.js +37 -0
  18. package/dist/browser/ui/badge.js +28 -0
  19. package/dist/browser/ui/breadcrumb.js +102 -0
  20. package/dist/browser/ui/button.js +88 -0
  21. package/dist/browser/ui/card.js +90 -0
  22. package/dist/browser/ui/carousel.js +5 -0
  23. package/dist/browser/ui/checkbox.js +21 -0
  24. package/dist/browser/ui/collapsible.js +10 -0
  25. package/dist/browser/ui/command.js +5 -0
  26. package/dist/browser/ui/context-menu.js +214 -0
  27. package/dist/browser/ui/date-picker.js +85 -0
  28. package/dist/browser/ui/date-range-picker.js +348 -0
  29. package/dist/browser/ui/datetime-picker.js +439 -0
  30. package/dist/browser/ui/dialog.js +126 -0
  31. package/dist/browser/ui/dropdown-menu.js +218 -0
  32. package/dist/browser/ui/empty-state.js +411 -0
  33. package/dist/browser/ui/empty.js +71 -0
  34. package/dist/browser/ui/fab.js +141 -0
  35. package/dist/browser/ui/field.js +559 -0
  36. package/dist/browser/ui/form.js +150 -0
  37. package/dist/browser/ui/hover-card.js +57 -0
  38. package/dist/browser/ui/icons/Check.js +20 -0
  39. package/dist/browser/ui/icons/ChevronDown.js +20 -0
  40. package/dist/browser/ui/icons/ChevronRight.js +20 -0
  41. package/dist/browser/ui/icons/ChevronUp.js +20 -0
  42. package/dist/browser/ui/icons/CircleUser.js +20 -0
  43. package/dist/browser/ui/icons/Info.js +20 -0
  44. package/dist/browser/ui/icons/Key.js +20 -0
  45. package/dist/browser/ui/icons/MoonStar.js +20 -0
  46. package/dist/browser/ui/icons/Sun.js +20 -0
  47. package/dist/browser/ui/icons/X.js +20 -0
  48. package/dist/browser/ui/icons/iconWithClassName.js +16 -0
  49. package/dist/browser/ui/input.js +18 -0
  50. package/dist/browser/ui/label.js +32 -0
  51. package/dist/browser/ui/link.js +16 -0
  52. package/dist/browser/ui/loading-button.js +350 -0
  53. package/dist/browser/ui/loading-overlay.js +398 -0
  54. package/dist/browser/ui/loading-screen.js +537 -0
  55. package/dist/browser/ui/marketing/FeatureGrid.js +42 -0
  56. package/dist/browser/ui/marketing/Hero.js +146 -0
  57. package/dist/browser/ui/marketing/PricingTable.js +158 -0
  58. package/dist/browser/ui/marketing/index.js +247 -0
  59. package/dist/browser/ui/menubar.js +225 -0
  60. package/dist/browser/ui/molecules/Autocomplete/index.js +5 -0
  61. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +784 -0
  62. package/dist/browser/ui/molecules/SearchAndFilter/index.js +784 -0
  63. package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
  64. package/dist/browser/ui/molecules/SkeletonList.js +46 -0
  65. package/dist/browser/ui/nativewind-env.d.js +0 -0
  66. package/dist/browser/ui/navigation-menu.js +147 -0
  67. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +222 -0
  68. package/dist/browser/ui/organisms/ErrorBoundary/index.js +222 -0
  69. package/dist/browser/ui/organisms/ListPage/ListPage.js +1375 -0
  70. package/dist/browser/ui/organisms/ListPage/index.js +1375 -0
  71. package/dist/browser/ui/organisms/ListPage/types.js +0 -0
  72. package/dist/browser/ui/page-header.js +405 -0
  73. package/dist/browser/ui/password-strength.js +400 -0
  74. package/dist/browser/ui/popover.js +59 -0
  75. package/dist/browser/ui/progress.js +57 -0
  76. package/dist/browser/ui/radio-group.js +32 -0
  77. package/dist/browser/ui/select.js +172 -0
  78. package/dist/browser/ui/separator.js +20 -0
  79. package/dist/browser/ui/sheet.js +5 -0
  80. package/dist/browser/ui/sidebar.js +5 -0
  81. package/dist/browser/ui/skeleton.js +32 -0
  82. package/dist/browser/ui/stack.js +243 -0
  83. package/dist/browser/ui/stepper.js +274 -0
  84. package/dist/browser/ui/switch.js +84 -0
  85. package/dist/browser/ui/table.js +100 -0
  86. package/dist/browser/ui/tabs.js +30 -0
  87. package/dist/browser/ui/text.js +23 -0
  88. package/dist/browser/ui/textarea.js +18 -0
  89. package/dist/browser/ui/time-picker.js +83 -0
  90. package/dist/browser/ui/toggle-group.js +150 -0
  91. package/dist/browser/ui/toggle.js +90 -0
  92. package/dist/browser/ui/tooltip.js +57 -0
  93. package/dist/browser/ui/typography.js +124 -0
  94. package/dist/browser/ui/useColorScheme.js +15 -0
  95. package/dist/browser/ui/useListState.js +68 -0
  96. package/dist/browser/ui/usecases/UseCaseCard.js +359 -0
  97. package/dist/browser/ui/usecases/UserStoryCard.js +274 -0
  98. package/dist/browser/ui/usecases/index.js +394 -0
  99. package/dist/browser/ui/utils.js +9 -0
  100. package/dist/index.d.ts +1 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +5 -5
  103. package/dist/ui/accordion.d.ts +15 -34
  104. package/dist/ui/accordion.d.ts.map +1 -1
  105. package/dist/ui/accordion.js +154 -86
  106. package/dist/ui/alert-dialog.d.ts +36 -67
  107. package/dist/ui/alert-dialog.d.ts.map +1 -1
  108. package/dist/ui/alert-dialog.js +192 -84
  109. package/dist/ui/alert.d.ts +15 -34
  110. package/dist/ui/alert.d.ts.map +1 -1
  111. package/dist/ui/alert.js +80 -44
  112. package/dist/ui/aspect-ratio.d.ts +4 -10
  113. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  114. package/dist/ui/aspect-ratio.js +6 -7
  115. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -7
  116. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -1
  117. package/dist/ui/atoms/FilterSelect/FilterSelect.js +526 -56
  118. package/dist/ui/atoms/FilterSelect/index.d.ts +3 -3
  119. package/dist/ui/atoms/FilterSelect/index.d.ts.map +1 -0
  120. package/dist/ui/atoms/FilterSelect/index.js +527 -2
  121. package/dist/ui/atoms/FilterSelect/types.d.ts +13 -16
  122. package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -1
  123. package/dist/ui/atoms/FilterSelect/types.js +1 -0
  124. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +14 -17
  125. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  126. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +191 -45
  127. package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -2
  128. package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +1 -0
  129. package/dist/ui/atoms/LoadingSpinner/index.js +193 -2
  130. package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -7
  131. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -1
  132. package/dist/ui/atoms/Pagination/Pagination.js +441 -161
  133. package/dist/ui/atoms/Pagination/index.d.ts +3 -3
  134. package/dist/ui/atoms/Pagination/index.d.ts.map +1 -0
  135. package/dist/ui/atoms/Pagination/index.js +442 -2
  136. package/dist/ui/atoms/Pagination/types.d.ts +11 -14
  137. package/dist/ui/atoms/Pagination/types.d.ts.map +1 -1
  138. package/dist/ui/atoms/Pagination/types.js +1 -0
  139. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -7
  140. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -1
  141. package/dist/ui/atoms/SearchInput/SearchInput.js +154 -47
  142. package/dist/ui/atoms/SearchInput/index.d.ts +3 -3
  143. package/dist/ui/atoms/SearchInput/index.d.ts.map +1 -0
  144. package/dist/ui/atoms/SearchInput/index.js +156 -3
  145. package/dist/ui/atoms/SearchInput/types.d.ts +8 -11
  146. package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -1
  147. package/dist/ui/atoms/SearchInput/types.js +1 -0
  148. package/dist/ui/avatar.d.ts +12 -26
  149. package/dist/ui/avatar.d.ts.map +1 -1
  150. package/dist/ui/avatar.js +34 -24
  151. package/dist/ui/badge.d.ts +8 -18
  152. package/dist/ui/badge.d.ts.map +1 -1
  153. package/dist/ui/badge.js +24 -21
  154. package/dist/ui/breadcrumb.d.ts +12 -38
  155. package/dist/ui/breadcrumb.d.ts.map +1 -1
  156. package/dist/ui/breadcrumb.js +93 -62
  157. package/dist/ui/button.d.ts +13 -23
  158. package/dist/ui/button.d.ts.map +1 -1
  159. package/dist/ui/button.js +83 -69
  160. package/dist/ui/card.d.ts +22 -43
  161. package/dist/ui/card.d.ts.map +1 -1
  162. package/dist/ui/card.js +84 -45
  163. package/dist/ui/carousel.d.ts +1 -4
  164. package/dist/ui/carousel.d.ts.map +1 -1
  165. package/dist/ui/carousel.js +6 -6
  166. package/dist/ui/checkbox.d.ts +9 -13
  167. package/dist/ui/checkbox.d.ts.map +1 -1
  168. package/dist/ui/checkbox.js +20 -19
  169. package/dist/ui/collapsible.d.ts +16 -22
  170. package/dist/ui/collapsible.d.ts.map +1 -1
  171. package/dist/ui/collapsible.js +10 -9
  172. package/dist/ui/command.d.ts +1 -4
  173. package/dist/ui/command.d.ts.map +1 -1
  174. package/dist/ui/command.js +6 -6
  175. package/dist/ui/context-menu.d.ts +64 -105
  176. package/dist/ui/context-menu.d.ts.map +1 -1
  177. package/dist/ui/context-menu.js +203 -96
  178. package/dist/ui/date-picker.d.ts +9 -22
  179. package/dist/ui/date-picker.d.ts.map +1 -1
  180. package/dist/ui/date-picker.js +81 -49
  181. package/dist/ui/date-range-picker.d.ts +15 -28
  182. package/dist/ui/date-range-picker.d.ts.map +1 -1
  183. package/dist/ui/date-range-picker.js +344 -81
  184. package/dist/ui/datetime-picker.d.ts +11 -26
  185. package/dist/ui/datetime-picker.d.ts.map +1 -1
  186. package/dist/ui/datetime-picker.js +437 -42
  187. package/dist/ui/dialog.d.ts +37 -63
  188. package/dist/ui/dialog.d.ts.map +1 -1
  189. package/dist/ui/dialog.js +114 -68
  190. package/dist/ui/dropdown-menu.d.ts +65 -107
  191. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  192. package/dist/ui/dropdown-menu.js +207 -98
  193. package/dist/ui/empty-state.d.ts +13 -26
  194. package/dist/ui/empty-state.d.ts.map +1 -1
  195. package/dist/ui/empty-state.js +409 -43
  196. package/dist/ui/empty.d.ts +11 -35
  197. package/dist/ui/empty.d.ts.map +1 -1
  198. package/dist/ui/empty.js +59 -50
  199. package/dist/ui/fab.d.ts +17 -31
  200. package/dist/ui/fab.d.ts.map +1 -1
  201. package/dist/ui/fab.js +138 -100
  202. package/dist/ui/field.d.ts +25 -65
  203. package/dist/ui/field.d.ts.map +1 -1
  204. package/dist/ui/field.js +548 -111
  205. package/dist/ui/form.d.ts +26 -47
  206. package/dist/ui/form.d.ts.map +1 -1
  207. package/dist/ui/form.js +139 -83
  208. package/dist/ui/hover-card.d.ts +16 -26
  209. package/dist/ui/hover-card.d.ts.map +1 -1
  210. package/dist/ui/hover-card.js +55 -30
  211. package/dist/ui/icons/Check.d.ts +3 -2
  212. package/dist/ui/icons/Check.d.ts.map +1 -0
  213. package/dist/ui/icons/Check.js +19 -7
  214. package/dist/ui/icons/ChevronDown.d.ts +3 -2
  215. package/dist/ui/icons/ChevronDown.d.ts.map +1 -0
  216. package/dist/ui/icons/ChevronDown.js +19 -7
  217. package/dist/ui/icons/ChevronRight.d.ts +3 -2
  218. package/dist/ui/icons/ChevronRight.d.ts.map +1 -0
  219. package/dist/ui/icons/ChevronRight.js +19 -7
  220. package/dist/ui/icons/ChevronUp.d.ts +3 -2
  221. package/dist/ui/icons/ChevronUp.d.ts.map +1 -0
  222. package/dist/ui/icons/ChevronUp.js +19 -7
  223. package/dist/ui/icons/CircleUser.d.ts +3 -2
  224. package/dist/ui/icons/CircleUser.d.ts.map +1 -0
  225. package/dist/ui/icons/CircleUser.js +19 -7
  226. package/dist/ui/icons/Info.d.ts +3 -2
  227. package/dist/ui/icons/Info.d.ts.map +1 -0
  228. package/dist/ui/icons/Info.js +19 -7
  229. package/dist/ui/icons/Key.d.ts +3 -2
  230. package/dist/ui/icons/Key.d.ts.map +1 -0
  231. package/dist/ui/icons/Key.js +19 -7
  232. package/dist/ui/icons/MoonStar.d.ts +3 -2
  233. package/dist/ui/icons/MoonStar.d.ts.map +1 -0
  234. package/dist/ui/icons/MoonStar.js +19 -7
  235. package/dist/ui/icons/Sun.d.ts +3 -2
  236. package/dist/ui/icons/Sun.d.ts.map +1 -0
  237. package/dist/ui/icons/Sun.js +19 -7
  238. package/dist/ui/icons/X.d.ts +3 -2
  239. package/dist/ui/icons/X.d.ts.map +1 -0
  240. package/dist/ui/icons/X.js +19 -7
  241. package/dist/ui/icons/iconWithClassName.d.ts +2 -6
  242. package/dist/ui/icons/iconWithClassName.d.ts.map +1 -1
  243. package/dist/ui/icons/iconWithClassName.js +14 -13
  244. package/dist/ui/input.d.ts +5 -13
  245. package/dist/ui/input.d.ts.map +1 -1
  246. package/dist/ui/input.js +16 -14
  247. package/dist/ui/label.d.ts +2 -14
  248. package/dist/ui/label.d.ts.map +1 -1
  249. package/dist/ui/label.js +30 -21
  250. package/dist/ui/link.d.ts +5 -12
  251. package/dist/ui/link.d.ts.map +1 -1
  252. package/dist/ui/link.js +15 -14
  253. package/dist/ui/loading-button.d.ts +7 -17
  254. package/dist/ui/loading-button.d.ts.map +1 -1
  255. package/dist/ui/loading-button.js +349 -20
  256. package/dist/ui/loading-overlay.d.ts +5 -13
  257. package/dist/ui/loading-overlay.d.ts.map +1 -1
  258. package/dist/ui/loading-overlay.js +399 -44
  259. package/dist/ui/loading-screen.d.ts +4 -11
  260. package/dist/ui/loading-screen.d.ts.map +1 -1
  261. package/dist/ui/loading-screen.js +536 -91
  262. package/dist/ui/marketing/FeatureGrid.d.ts +10 -19
  263. package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -1
  264. package/dist/ui/marketing/FeatureGrid.js +41 -33
  265. package/dist/ui/marketing/Hero.d.ts +16 -27
  266. package/dist/ui/marketing/Hero.d.ts.map +1 -1
  267. package/dist/ui/marketing/Hero.js +145 -50
  268. package/dist/ui/marketing/PricingTable.d.ts +15 -23
  269. package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
  270. package/dist/ui/marketing/PricingTable.js +157 -58
  271. package/dist/ui/marketing/index.d.ts +4 -4
  272. package/dist/ui/marketing/index.d.ts.map +1 -0
  273. package/dist/ui/marketing/index.js +247 -4
  274. package/dist/ui/menubar.d.ts +64 -110
  275. package/dist/ui/menubar.d.ts.map +1 -1
  276. package/dist/ui/menubar.js +212 -106
  277. package/dist/ui/molecules/Autocomplete/index.d.ts +1 -4
  278. package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -1
  279. package/dist/ui/molecules/Autocomplete/index.js +6 -6
  280. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -7
  281. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -1
  282. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +783 -104
  283. package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -3
  284. package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +1 -0
  285. package/dist/ui/molecules/SearchAndFilter/index.js +784 -2
  286. package/dist/ui/molecules/SearchAndFilter/types.d.ts +18 -23
  287. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
  288. package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
  289. package/dist/ui/molecules/SkeletonList.d.ts +5 -13
  290. package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
  291. package/dist/ui/molecules/SkeletonList.js +46 -14
  292. package/dist/ui/nativewind-env.d.js +1 -0
  293. package/dist/ui/navigation-menu.d.ts +35 -64
  294. package/dist/ui/navigation-menu.d.ts.map +1 -1
  295. package/dist/ui/navigation-menu.js +140 -79
  296. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +18 -22
  297. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  298. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +220 -104
  299. package/dist/ui/organisms/ErrorBoundary/index.d.ts +3 -2
  300. package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +1 -0
  301. package/dist/ui/organisms/ErrorBoundary/index.js +222 -2
  302. package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -28
  303. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
  304. package/dist/ui/organisms/ListPage/ListPage.js +1374 -196
  305. package/dist/ui/organisms/ListPage/index.d.ts +3 -3
  306. package/dist/ui/organisms/ListPage/index.d.ts.map +1 -0
  307. package/dist/ui/organisms/ListPage/index.js +1375 -2
  308. package/dist/ui/organisms/ListPage/types.d.ts +34 -39
  309. package/dist/ui/organisms/ListPage/types.d.ts.map +1 -1
  310. package/dist/ui/organisms/ListPage/types.js +1 -0
  311. package/dist/ui/page-header.d.ts +12 -24
  312. package/dist/ui/page-header.d.ts.map +1 -1
  313. package/dist/ui/page-header.js +403 -38
  314. package/dist/ui/password-strength.d.ts +10 -17
  315. package/dist/ui/password-strength.d.ts.map +1 -1
  316. package/dist/ui/password-strength.js +396 -94
  317. package/dist/ui/popover.d.ts +14 -26
  318. package/dist/ui/popover.d.ts.map +1 -1
  319. package/dist/ui/popover.js +57 -32
  320. package/dist/ui/progress.d.ts +6 -15
  321. package/dist/ui/progress.d.ts.map +1 -1
  322. package/dist/ui/progress.js +54 -36
  323. package/dist/ui/radio-group.d.ts +3 -13
  324. package/dist/ui/radio-group.d.ts.map +1 -1
  325. package/dist/ui/radio-group.js +29 -19
  326. package/dist/ui/select.d.ts +43 -75
  327. package/dist/ui/select.d.ts.map +1 -1
  328. package/dist/ui/select.js +163 -101
  329. package/dist/ui/separator.d.ts +5 -14
  330. package/dist/ui/separator.d.ts.map +1 -1
  331. package/dist/ui/separator.js +19 -16
  332. package/dist/ui/sheet.d.ts +1 -4
  333. package/dist/ui/sheet.d.ts.map +1 -1
  334. package/dist/ui/sheet.js +6 -6
  335. package/dist/ui/sidebar.d.ts +1 -4
  336. package/dist/ui/sidebar.d.ts.map +1 -1
  337. package/dist/ui/sidebar.js +6 -6
  338. package/dist/ui/skeleton.d.ts +3 -10
  339. package/dist/ui/skeleton.d.ts.map +1 -1
  340. package/dist/ui/skeleton.js +31 -22
  341. package/dist/ui/stack.d.ts +34 -67
  342. package/dist/ui/stack.d.ts.map +1 -1
  343. package/dist/ui/stack.js +235 -229
  344. package/dist/ui/stepper.d.ts +10 -20
  345. package/dist/ui/stepper.d.ts.map +1 -1
  346. package/dist/ui/stepper.js +269 -32
  347. package/dist/ui/switch.d.ts +5 -12
  348. package/dist/ui/switch.d.ts.map +1 -1
  349. package/dist/ui/switch.js +79 -48
  350. package/dist/ui/table.d.ts +24 -50
  351. package/dist/ui/table.d.ts.map +1 -1
  352. package/dist/ui/table.js +99 -55
  353. package/dist/ui/tabs.d.ts +23 -28
  354. package/dist/ui/tabs.d.ts.map +1 -1
  355. package/dist/ui/tabs.js +27 -25
  356. package/dist/ui/text.d.ts +11 -19
  357. package/dist/ui/text.d.ts.map +1 -1
  358. package/dist/ui/text.js +21 -16
  359. package/dist/ui/textarea.d.ts +5 -8
  360. package/dist/ui/textarea.d.ts.map +1 -1
  361. package/dist/ui/textarea.js +15 -16
  362. package/dist/ui/time-picker.d.ts +8 -20
  363. package/dist/ui/time-picker.d.ts.map +1 -1
  364. package/dist/ui/time-picker.js +79 -48
  365. package/dist/ui/toggle-group.d.ts +14 -34
  366. package/dist/ui/toggle-group.d.ts.map +1 -1
  367. package/dist/ui/toggle-group.js +144 -48
  368. package/dist/ui/toggle.d.ts +16 -30
  369. package/dist/ui/toggle.d.ts.map +1 -1
  370. package/dist/ui/toggle.js +85 -61
  371. package/dist/ui/tooltip.d.ts +18 -28
  372. package/dist/ui/tooltip.d.ts.map +1 -1
  373. package/dist/ui/tooltip.js +55 -38
  374. package/dist/ui/typography.d.ts +15 -63
  375. package/dist/ui/typography.d.ts.map +1 -1
  376. package/dist/ui/typography.js +101 -64
  377. package/dist/ui/useColorScheme.d.ts +5 -10
  378. package/dist/ui/useColorScheme.d.ts.map +1 -1
  379. package/dist/ui/useColorScheme.js +14 -15
  380. package/dist/ui/useListState.d.ts +23 -31
  381. package/dist/ui/useListState.d.ts.map +1 -1
  382. package/dist/ui/useListState.js +67 -73
  383. package/dist/ui/usecases/UseCaseCard.d.ts +7 -18
  384. package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -1
  385. package/dist/ui/usecases/UseCaseCard.js +359 -34
  386. package/dist/ui/usecases/UserStoryCard.d.ts +5 -14
  387. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
  388. package/dist/ui/usecases/UserStoryCard.js +274 -35
  389. package/dist/ui/usecases/index.d.ts +3 -3
  390. package/dist/ui/usecases/index.d.ts.map +1 -0
  391. package/dist/ui/usecases/index.js +394 -3
  392. package/dist/ui/utils.d.ts +2 -6
  393. package/dist/ui/utils.d.ts.map +1 -1
  394. package/dist/ui/utils.js +6 -7
  395. package/package.json +775 -209
  396. package/dist/index.js.map +0 -1
  397. package/dist/ui/accordion.js.map +0 -1
  398. package/dist/ui/alert-dialog.js.map +0 -1
  399. package/dist/ui/alert.js.map +0 -1
  400. package/dist/ui/aspect-ratio.js.map +0 -1
  401. package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
  402. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +0 -1
  403. package/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
  404. package/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
  405. package/dist/ui/avatar.js.map +0 -1
  406. package/dist/ui/badge.js.map +0 -1
  407. package/dist/ui/breadcrumb.js.map +0 -1
  408. package/dist/ui/button.js.map +0 -1
  409. package/dist/ui/card.js.map +0 -1
  410. package/dist/ui/carousel.js.map +0 -1
  411. package/dist/ui/checkbox.js.map +0 -1
  412. package/dist/ui/collapsible.js.map +0 -1
  413. package/dist/ui/command.js.map +0 -1
  414. package/dist/ui/context-menu.js.map +0 -1
  415. package/dist/ui/date-picker.js.map +0 -1
  416. package/dist/ui/date-range-picker.js.map +0 -1
  417. package/dist/ui/datetime-picker.js.map +0 -1
  418. package/dist/ui/dialog.js.map +0 -1
  419. package/dist/ui/dropdown-menu.js.map +0 -1
  420. package/dist/ui/empty-state.js.map +0 -1
  421. package/dist/ui/empty.js.map +0 -1
  422. package/dist/ui/fab.js.map +0 -1
  423. package/dist/ui/field.js.map +0 -1
  424. package/dist/ui/form.js.map +0 -1
  425. package/dist/ui/hover-card.js.map +0 -1
  426. package/dist/ui/icons/Check.js.map +0 -1
  427. package/dist/ui/icons/ChevronDown.js.map +0 -1
  428. package/dist/ui/icons/ChevronRight.js.map +0 -1
  429. package/dist/ui/icons/ChevronUp.js.map +0 -1
  430. package/dist/ui/icons/CircleUser.js.map +0 -1
  431. package/dist/ui/icons/Info.js.map +0 -1
  432. package/dist/ui/icons/Key.js.map +0 -1
  433. package/dist/ui/icons/MoonStar.js.map +0 -1
  434. package/dist/ui/icons/Sun.js.map +0 -1
  435. package/dist/ui/icons/X.js.map +0 -1
  436. package/dist/ui/icons/iconWithClassName.js.map +0 -1
  437. package/dist/ui/input.js.map +0 -1
  438. package/dist/ui/label.js.map +0 -1
  439. package/dist/ui/link.js.map +0 -1
  440. package/dist/ui/loading-button.js.map +0 -1
  441. package/dist/ui/loading-overlay.js.map +0 -1
  442. package/dist/ui/loading-screen.js.map +0 -1
  443. package/dist/ui/marketing/FeatureGrid.js.map +0 -1
  444. package/dist/ui/marketing/Hero.js.map +0 -1
  445. package/dist/ui/marketing/PricingTable.js.map +0 -1
  446. package/dist/ui/menubar.js.map +0 -1
  447. package/dist/ui/molecules/Autocomplete/index.js.map +0 -1
  448. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
  449. package/dist/ui/molecules/SkeletonList.js.map +0 -1
  450. package/dist/ui/nativewind-env.d.ts +0 -1
  451. package/dist/ui/navigation-menu.js.map +0 -1
  452. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +0 -1
  453. package/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
  454. package/dist/ui/page-header.js.map +0 -1
  455. package/dist/ui/password-strength.js.map +0 -1
  456. package/dist/ui/popover.js.map +0 -1
  457. package/dist/ui/progress.js.map +0 -1
  458. package/dist/ui/radio-group.js.map +0 -1
  459. package/dist/ui/select.js.map +0 -1
  460. package/dist/ui/separator.js.map +0 -1
  461. package/dist/ui/sheet.js.map +0 -1
  462. package/dist/ui/sidebar.js.map +0 -1
  463. package/dist/ui/skeleton.js.map +0 -1
  464. package/dist/ui/stack.js.map +0 -1
  465. package/dist/ui/stepper.js.map +0 -1
  466. package/dist/ui/switch.js.map +0 -1
  467. package/dist/ui/table.js.map +0 -1
  468. package/dist/ui/tabs.js.map +0 -1
  469. package/dist/ui/text.js.map +0 -1
  470. package/dist/ui/textarea.js.map +0 -1
  471. package/dist/ui/time-picker.js.map +0 -1
  472. package/dist/ui/toggle-group.js.map +0 -1
  473. package/dist/ui/toggle.js.map +0 -1
  474. package/dist/ui/tooltip.js.map +0 -1
  475. package/dist/ui/typography.js.map +0 -1
  476. package/dist/ui/useColorScheme.js.map +0 -1
  477. package/dist/ui/useListState.js.map +0 -1
  478. package/dist/ui/usecases/UseCaseCard.js.map +0 -1
  479. package/dist/ui/usecases/UserStoryCard.js.map +0 -1
  480. package/dist/ui/utils.js.map +0 -1
@@ -0,0 +1,141 @@
1
+ // ui/fab.tsx
2
+ import { useState } from "react";
3
+ import { Pressable, StyleSheet, View } from "react-native";
4
+ import Animated, {
5
+ useAnimatedStyle,
6
+ withSpring,
7
+ withTiming
8
+ } from "react-native-reanimated";
9
+ import { cn } from "@contractspec/lib.ui-kit-core/utils";
10
+ import { Plus, X } from "lucide-react-native";
11
+ import { jsxDEV } from "react/jsx-dev-runtime";
12
+ var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
13
+ function FAB({
14
+ actions,
15
+ className,
16
+ mainIcon,
17
+ mainColor = "bg-primary"
18
+ }) {
19
+ const [isOpen, setIsOpen] = useState(false);
20
+ const toggleMenu = () => {
21
+ setIsOpen(!isOpen);
22
+ };
23
+ const rotation = useAnimatedStyle(() => {
24
+ return {
25
+ transform: [
26
+ {
27
+ rotate: withSpring(isOpen ? "45deg" : "0deg", {
28
+ damping: 15,
29
+ stiffness: 150
30
+ })
31
+ }
32
+ ]
33
+ };
34
+ });
35
+ return /* @__PURE__ */ jsxDEV(View, {
36
+ className: cn("absolute right-4 bottom-24 z-50", className),
37
+ children: [
38
+ isOpen && /* @__PURE__ */ jsxDEV(Pressable, {
39
+ style: StyleSheet.absoluteFillObject,
40
+ className: "fixed inset-0 -top-full -left-full h-[200%] w-[200%]",
41
+ onPress: () => setIsOpen(false)
42
+ }, undefined, false, undefined, this),
43
+ actions.map((action, index) => {
44
+ const translateY = useAnimatedStyle(() => {
45
+ const baseTranslation = isOpen ? -(index + 1) * 65 : 0;
46
+ return {
47
+ transform: [
48
+ {
49
+ translateY: withSpring(baseTranslation, {
50
+ damping: 15,
51
+ stiffness: 150,
52
+ mass: 1 + index * 0.1
53
+ })
54
+ }
55
+ ],
56
+ opacity: withTiming(isOpen ? 1 : 0, {
57
+ duration: 200
58
+ }),
59
+ pointerEvents: isOpen ? "auto" : "none"
60
+ };
61
+ });
62
+ const scale = useAnimatedStyle(() => {
63
+ return {
64
+ transform: [
65
+ {
66
+ scale: withSpring(isOpen ? 1 : 0.8, {
67
+ damping: 15,
68
+ stiffness: 150
69
+ })
70
+ }
71
+ ]
72
+ };
73
+ });
74
+ return /* @__PURE__ */ jsxDEV(AnimatedPressable, {
75
+ style: [translateY, scale],
76
+ className: "absolute right-0 bottom-0",
77
+ onPress: () => {
78
+ action.onPress();
79
+ setIsOpen(false);
80
+ },
81
+ children: /* @__PURE__ */ jsxDEV(View, {
82
+ className: cn("h-12 w-12 items-center justify-center rounded-full shadow-lg", action.color || "bg-secondary"),
83
+ children: action.icon
84
+ }, undefined, false, undefined, this)
85
+ }, index, false, undefined, this);
86
+ }),
87
+ /* @__PURE__ */ jsxDEV(AnimatedPressable, {
88
+ onPress: toggleMenu,
89
+ className: cn("h-14 w-14 items-center justify-center rounded-full shadow-xl", mainColor),
90
+ style: [
91
+ rotation,
92
+ {
93
+ shadowColor: "#000",
94
+ shadowOffset: {
95
+ width: 0,
96
+ height: 4
97
+ },
98
+ shadowOpacity: 0.3,
99
+ shadowRadius: 8,
100
+ elevation: 8
101
+ }
102
+ ],
103
+ children: isOpen ? /* @__PURE__ */ jsxDEV(X, {
104
+ size: 24,
105
+ color: "white",
106
+ strokeWidth: 2.5
107
+ }, undefined, false, undefined, this) : mainIcon || /* @__PURE__ */ jsxDEV(Plus, {
108
+ size: 24,
109
+ color: "white",
110
+ strokeWidth: 2.5
111
+ }, undefined, false, undefined, this)
112
+ }, undefined, false, undefined, this)
113
+ ]
114
+ }, undefined, true, undefined, this);
115
+ }
116
+ function MiniFAB({
117
+ icon,
118
+ onPress,
119
+ className,
120
+ color = "bg-primary"
121
+ }) {
122
+ return /* @__PURE__ */ jsxDEV(Pressable, {
123
+ onPress,
124
+ className: cn("h-12 w-12 items-center justify-center rounded-full shadow-lg", color, className),
125
+ style: {
126
+ shadowColor: "#000",
127
+ shadowOffset: {
128
+ width: 0,
129
+ height: 2
130
+ },
131
+ shadowOpacity: 0.25,
132
+ shadowRadius: 4,
133
+ elevation: 5
134
+ },
135
+ children: icon
136
+ }, undefined, false, undefined, this);
137
+ }
138
+ export {
139
+ MiniFAB,
140
+ FAB
141
+ };
@@ -0,0 +1,559 @@
1
+ // ui/text.tsx
2
+ import * as Slot from "@rn-primitives/slot";
3
+ import * as React from "react";
4
+ import { Text as RNText } from "react-native";
5
+ import { cn } from "@contractspec/lib.ui-kit-core/utils";
6
+ import { jsxDEV } from "react/jsx-dev-runtime";
7
+ var TextClassContext = React.createContext(undefined);
8
+ function Text2({
9
+ className,
10
+ asChild = false,
11
+ ...props
12
+ }) {
13
+ const textClass = React.useContext(TextClassContext);
14
+ const Component = asChild ? Slot.Text : RNText;
15
+ return /* @__PURE__ */ jsxDEV(Component, {
16
+ className: cn("text-foreground web:select-text text-base", textClass, className),
17
+ ...props
18
+ }, undefined, false, undefined, this);
19
+ }
20
+ // ui/label.tsx
21
+ import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
22
+ import * as LabelPrimitive from "@rn-primitives/label";
23
+ import { Platform } from "react-native";
24
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
25
+ function Label({
26
+ className,
27
+ onPress,
28
+ onLongPress,
29
+ onPressIn,
30
+ onPressOut,
31
+ disabled,
32
+ ...props
33
+ }) {
34
+ return /* @__PURE__ */ jsxDEV2(LabelPrimitive.Root, {
35
+ className: cn2("flex flex-row items-center gap-2 select-none", Platform.select({
36
+ web: "cursor-default leading-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50"
37
+ }), disabled && "opacity-50"),
38
+ onPress,
39
+ onLongPress,
40
+ onPressIn,
41
+ onPressOut,
42
+ disabled,
43
+ children: /* @__PURE__ */ jsxDEV2(LabelPrimitive.Text, {
44
+ className: cn2("text-foreground text-sm font-medium", Platform.select({ web: "leading-none" }), className),
45
+ ...props
46
+ }, undefined, false, undefined, this)
47
+ }, undefined, false, undefined, this);
48
+ }
49
+ // ui/stack.tsx
50
+ import { View } from "react-native";
51
+ import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
52
+ import { cva } from "class-variance-authority";
53
+ import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
54
+ var baseStyle = "flex";
55
+ var vStackVariants = cva([baseStyle, "flex-col"], {
56
+ variants: {
57
+ spacing: {
58
+ none: "",
59
+ xs: "gap-y-1",
60
+ sm: "gap-y-2",
61
+ md: "gap-y-4",
62
+ lg: "gap-y-6",
63
+ xl: "gap-y-8",
64
+ "2xl": "gap-y-12"
65
+ },
66
+ align: {
67
+ stretch: "items-stretch",
68
+ start: "items-start",
69
+ center: "items-center",
70
+ end: "items-end"
71
+ },
72
+ justify: {
73
+ start: "justify-start",
74
+ center: "justify-center",
75
+ end: "justify-end",
76
+ between: "justify-between",
77
+ around: "justify-around",
78
+ evenly: "justify-evenly"
79
+ },
80
+ width: {
81
+ auto: "w-auto",
82
+ full: "w-full",
83
+ screen: "w-screen",
84
+ fit: "w-fit"
85
+ },
86
+ padding: {
87
+ none: "",
88
+ xs: "p-1",
89
+ sm: "p-2",
90
+ md: "p-4",
91
+ lg: "p-6",
92
+ xl: "p-8"
93
+ },
94
+ gap: {
95
+ none: "",
96
+ xs: "gap-1",
97
+ sm: "gap-2",
98
+ md: "gap-4",
99
+ lg: "gap-6",
100
+ xl: "gap-8"
101
+ }
102
+ },
103
+ defaultVariants: {
104
+ spacing: "md",
105
+ align: "stretch",
106
+ justify: "start",
107
+ width: "auto",
108
+ padding: "none",
109
+ gap: "none"
110
+ }
111
+ });
112
+ var hStackVariants = cva([baseStyle, "flex-row"], {
113
+ variants: {
114
+ spacing: {
115
+ none: "",
116
+ xs: "gap-x-1",
117
+ sm: "gap-x-2",
118
+ md: "gap-x-4",
119
+ lg: "gap-x-6",
120
+ xl: "gap-x-8",
121
+ "2xl": "gap-x-12"
122
+ },
123
+ align: {
124
+ stretch: "items-stretch",
125
+ start: "items-start",
126
+ center: "items-center",
127
+ end: "items-end",
128
+ baseline: "items-baseline"
129
+ },
130
+ justify: {
131
+ start: "justify-start",
132
+ center: "justify-center",
133
+ end: "justify-end",
134
+ between: "justify-between",
135
+ around: "justify-around",
136
+ evenly: "justify-evenly"
137
+ },
138
+ width: {
139
+ auto: "w-auto",
140
+ full: "w-full",
141
+ screen: "w-screen",
142
+ fit: "w-fit"
143
+ },
144
+ padding: {
145
+ none: "",
146
+ xs: "p-1",
147
+ sm: "p-2",
148
+ md: "p-4",
149
+ lg: "p-6",
150
+ xl: "p-8"
151
+ },
152
+ gap: {
153
+ none: "",
154
+ xs: "gap-1",
155
+ sm: "gap-2",
156
+ md: "gap-4",
157
+ lg: "gap-6",
158
+ xl: "gap-8"
159
+ },
160
+ wrap: {
161
+ nowrap: "flex-nowrap",
162
+ wrap: "flex-wrap",
163
+ reverse: "flex-wrap-reverse"
164
+ }
165
+ },
166
+ defaultVariants: {
167
+ spacing: "md",
168
+ align: "center",
169
+ justify: "start",
170
+ width: "auto",
171
+ padding: "none",
172
+ gap: "none",
173
+ wrap: "wrap"
174
+ }
175
+ });
176
+ var boxVariants = cva([baseStyle, "flex-row"], {
177
+ variants: {
178
+ spacing: {
179
+ none: "",
180
+ xs: "gap-x-1",
181
+ sm: "gap-x-2",
182
+ md: "gap-x-4",
183
+ lg: "gap-x-6",
184
+ xl: "gap-x-8",
185
+ "2xl": "gap-x-12"
186
+ },
187
+ align: {
188
+ stretch: "items-stretch",
189
+ start: "items-start",
190
+ center: "items-center",
191
+ end: "items-end",
192
+ baseline: "items-baseline"
193
+ },
194
+ justify: {
195
+ start: "justify-start",
196
+ center: "justify-center",
197
+ end: "justify-end",
198
+ between: "justify-between",
199
+ around: "justify-around",
200
+ evenly: "justify-evenly"
201
+ },
202
+ width: {
203
+ auto: "w-auto",
204
+ full: "w-full",
205
+ screen: "w-screen",
206
+ fit: "w-fit"
207
+ },
208
+ padding: {
209
+ none: "",
210
+ xs: "p-1",
211
+ sm: "p-2",
212
+ md: "p-4",
213
+ lg: "p-6",
214
+ xl: "p-8"
215
+ },
216
+ gap: {
217
+ none: "",
218
+ xs: "gap-1",
219
+ sm: "gap-2",
220
+ md: "gap-4",
221
+ lg: "gap-6",
222
+ xl: "gap-8"
223
+ },
224
+ wrap: {
225
+ nowrap: "flex-nowrap",
226
+ wrap: "flex-wrap",
227
+ reverse: "flex-wrap-reverse"
228
+ }
229
+ },
230
+ defaultVariants: {
231
+ spacing: "md",
232
+ align: "center",
233
+ justify: "center",
234
+ width: "auto",
235
+ padding: "none",
236
+ gap: "none",
237
+ wrap: "wrap"
238
+ }
239
+ });
240
+ function Box({
241
+ className,
242
+ spacing,
243
+ align,
244
+ justify,
245
+ width,
246
+ padding,
247
+ gap,
248
+ wrap,
249
+ ...props
250
+ }) {
251
+ return /* @__PURE__ */ jsxDEV3(View, {
252
+ className: cn3(boxVariants({ spacing, align, justify, width, padding, gap, wrap }), className),
253
+ ...props
254
+ }, undefined, false, undefined, this);
255
+ }
256
+ function HStack({
257
+ className,
258
+ spacing,
259
+ align,
260
+ justify,
261
+ width,
262
+ padding,
263
+ gap,
264
+ wrap,
265
+ ...props
266
+ }) {
267
+ return /* @__PURE__ */ jsxDEV3(View, {
268
+ className: cn3(hStackVariants({ spacing, align, justify, width, padding, gap, wrap }), className),
269
+ ...props
270
+ }, undefined, false, undefined, this);
271
+ }
272
+ function VStack({
273
+ className,
274
+ spacing,
275
+ align,
276
+ justify,
277
+ width,
278
+ padding,
279
+ gap,
280
+ ...props
281
+ }) {
282
+ return /* @__PURE__ */ jsxDEV3(View, {
283
+ className: cn3(vStackVariants({ spacing, align, justify, width, padding, gap }), className),
284
+ ...props
285
+ }, undefined, false, undefined, this);
286
+ }
287
+ // ui/typography.tsx
288
+ import * as Slot2 from "@rn-primitives/slot";
289
+ import { Platform as Platform2 } from "react-native";
290
+ import { cn as cn4 } from "@contractspec/lib.ui-kit-core/utils";
291
+ import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
292
+ function H1({ className, asChild = false, ...props }) {
293
+ const Component = asChild ? Slot2.Text : Text2;
294
+ return /* @__PURE__ */ jsxDEV4(Component, {
295
+ role: "heading",
296
+ "aria-level": "1",
297
+ className: cn4("text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className),
298
+ ...props
299
+ }, undefined, false, undefined, this);
300
+ }
301
+ function H2({ className, asChild = false, ...props }) {
302
+ const Component = asChild ? Slot2.Text : Text2;
303
+ return /* @__PURE__ */ jsxDEV4(Component, {
304
+ role: "heading",
305
+ "aria-level": "2",
306
+ className: cn4("border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0", className),
307
+ ...props
308
+ }, undefined, false, undefined, this);
309
+ }
310
+ function H3({ className, asChild = false, ...props }) {
311
+ const Component = asChild ? Slot2.Text : Text2;
312
+ return /* @__PURE__ */ jsxDEV4(Component, {
313
+ role: "heading",
314
+ "aria-level": "3",
315
+ className: cn4("text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight", className),
316
+ ...props
317
+ }, undefined, false, undefined, this);
318
+ }
319
+ function H4({ className, asChild = false, ...props }) {
320
+ const Component = asChild ? Slot2.Text : Text2;
321
+ return /* @__PURE__ */ jsxDEV4(Component, {
322
+ role: "heading",
323
+ "aria-level": "4",
324
+ className: cn4("text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight", className),
325
+ ...props
326
+ }, undefined, false, undefined, this);
327
+ }
328
+ function P({ className, asChild = false, ...props }) {
329
+ const Component = asChild ? Slot2.Text : Text2;
330
+ return /* @__PURE__ */ jsxDEV4(Component, {
331
+ className: cn4("text-foreground web:select-text text-base", className),
332
+ ...props
333
+ }, undefined, false, undefined, this);
334
+ }
335
+ function BlockQuote({ className, asChild = false, ...props }) {
336
+ const Component = asChild ? Slot2.Text : Text2;
337
+ return /* @__PURE__ */ jsxDEV4(Component, {
338
+ role: Platform2.OS === "web" ? "blockquote" : undefined,
339
+ className: cn4("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
340
+ ...props
341
+ }, undefined, false, undefined, this);
342
+ }
343
+ function Code({ className, asChild = false, ...props }) {
344
+ const Component = asChild ? Slot2.Text : Text2;
345
+ return /* @__PURE__ */ jsxDEV4(Component, {
346
+ role: Platform2.OS === "web" ? "code" : undefined,
347
+ className: cn4("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
348
+ ...props
349
+ }, undefined, false, undefined, this);
350
+ }
351
+ function Lead({ className, asChild = false, ...props }) {
352
+ const Component = asChild ? Slot2.Text : Text2;
353
+ return /* @__PURE__ */ jsxDEV4(Component, {
354
+ className: cn4("text-muted-foreground web:select-text text-xl", className),
355
+ ...props
356
+ }, undefined, false, undefined, this);
357
+ }
358
+ function Large({ className, asChild = false, ...props }) {
359
+ const Component = asChild ? Slot2.Text : Text2;
360
+ return /* @__PURE__ */ jsxDEV4(Component, {
361
+ className: cn4("text-foreground web:select-text text-xl font-semibold", className),
362
+ ...props
363
+ }, undefined, false, undefined, this);
364
+ }
365
+ function Small({ className, asChild = false, ...props }) {
366
+ const Component = asChild ? Slot2.Text : Text2;
367
+ return /* @__PURE__ */ jsxDEV4(Component, {
368
+ className: cn4("text-foreground web:select-text text-sm leading-none font-medium", className),
369
+ ...props
370
+ }, undefined, false, undefined, this);
371
+ }
372
+ function Muted({ className, asChild = false, ...props }) {
373
+ const Component = asChild ? Slot2.Text : Text2;
374
+ return /* @__PURE__ */ jsxDEV4(Component, {
375
+ className: cn4("text-muted-foreground web:select-text text-sm", className),
376
+ ...props
377
+ }, undefined, false, undefined, this);
378
+ }
379
+ // ui/separator.tsx
380
+ import * as SeparatorPrimitive from "@rn-primitives/separator";
381
+ import { cn as cn5 } from "@contractspec/lib.ui-kit-core/utils";
382
+ import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
383
+ function Separator({
384
+ className,
385
+ orientation = "horizontal",
386
+ decorative = true,
387
+ ...props
388
+ }) {
389
+ return /* @__PURE__ */ jsxDEV5(SeparatorPrimitive.Root, {
390
+ decorative,
391
+ orientation,
392
+ className: cn5("bg-border shrink-0", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className),
393
+ ...props
394
+ }, undefined, false, undefined, this);
395
+ }
396
+ // ui/field.tsx
397
+ import { useMemo } from "react";
398
+ import { cva as cva2 } from "class-variance-authority";
399
+ import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
400
+ import { jsxDEV as jsxDEV6 } from "react/jsx-dev-runtime";
401
+ "use client";
402
+ function FieldSet({ className, ...props }) {
403
+ return /* @__PURE__ */ jsxDEV6(Box, {
404
+ "data-slot": "field-set",
405
+ className: cn6("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
406
+ ...props
407
+ }, undefined, false, undefined, this);
408
+ }
409
+ function FieldLegend({
410
+ className,
411
+ variant = "legend",
412
+ ...props
413
+ }) {
414
+ return /* @__PURE__ */ jsxDEV6(Box, {
415
+ "data-slot": "field-legend",
416
+ "data-variant": variant,
417
+ className: cn6("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", className),
418
+ ...props
419
+ }, undefined, false, undefined, this);
420
+ }
421
+ function FieldGroup({ className, ...props }) {
422
+ return /* @__PURE__ */ jsxDEV6(Box, {
423
+ "data-slot": "field-group",
424
+ className: cn6("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 data-[slot=field-group]:*:gap-4", className),
425
+ ...props
426
+ }, undefined, false, undefined, this);
427
+ }
428
+ var fieldVariants = cva2("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
429
+ variants: {
430
+ orientation: {
431
+ vertical: ["flex-col *:w-full [&>.sr-only]:w-auto"],
432
+ horizontal: [
433
+ "flex-row items-center",
434
+ "data-[slot=field-label]:*:flex-auto",
435
+ "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
436
+ ],
437
+ responsive: [
438
+ "flex-col *:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto",
439
+ "@md/field-group:data-[slot=field-label]:*:flex-auto",
440
+ "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
441
+ ]
442
+ }
443
+ },
444
+ defaultVariants: {
445
+ orientation: "vertical"
446
+ }
447
+ });
448
+ function Field({
449
+ className,
450
+ orientation = "vertical",
451
+ ...props
452
+ }) {
453
+ return /* @__PURE__ */ jsxDEV6(Box, {
454
+ role: "group",
455
+ "data-slot": "field",
456
+ "data-orientation": orientation,
457
+ className: cn6(fieldVariants({ orientation }), className),
458
+ ...props
459
+ }, undefined, false, undefined, this);
460
+ }
461
+ function FieldContent({ className, ...props }) {
462
+ return /* @__PURE__ */ jsxDEV6(Box, {
463
+ "data-slot": "field-content",
464
+ className: cn6("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", className),
465
+ ...props
466
+ }, undefined, false, undefined, this);
467
+ }
468
+ function FieldLabel({
469
+ className,
470
+ ...props
471
+ }) {
472
+ return /* @__PURE__ */ jsxDEV6(Label, {
473
+ "data-slot": "field-label",
474
+ className: cn6("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-4", "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10", className),
475
+ ...props
476
+ }, undefined, false, undefined, this);
477
+ }
478
+ function FieldTitle({ className, ...props }) {
479
+ return /* @__PURE__ */ jsxDEV6(Box, {
480
+ "data-slot": "field-label",
481
+ className: cn6("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", className),
482
+ ...props
483
+ }, undefined, false, undefined, this);
484
+ }
485
+ function FieldDescription({ className, ...props }) {
486
+ return /* @__PURE__ */ jsxDEV6(P, {
487
+ "data-slot": "field-description",
488
+ className: cn6("text-muted-foreground text-sm leading-normal font-normal group-has-data-[orientation=horizontal]/field:text-balance", "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
489
+ ...props
490
+ }, undefined, false, undefined, this);
491
+ }
492
+ function FieldSeparator({
493
+ children,
494
+ className,
495
+ ...props
496
+ }) {
497
+ return /* @__PURE__ */ jsxDEV6(Box, {
498
+ "data-slot": "field-separator",
499
+ "data-content": !!children,
500
+ className: cn6("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
501
+ ...props,
502
+ children: [
503
+ /* @__PURE__ */ jsxDEV6(Separator, {
504
+ className: "absolute inset-0 top-1/2"
505
+ }, undefined, false, undefined, this),
506
+ children && /* @__PURE__ */ jsxDEV6(Box, {
507
+ className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
508
+ "data-slot": "field-separator-content",
509
+ children
510
+ }, undefined, false, undefined, this)
511
+ ]
512
+ }, undefined, true, undefined, this);
513
+ }
514
+ function FieldError({
515
+ className,
516
+ children,
517
+ errors,
518
+ ...props
519
+ }) {
520
+ const content = useMemo(() => {
521
+ if (children) {
522
+ return children;
523
+ }
524
+ if (!errors?.length) {
525
+ return null;
526
+ }
527
+ if (errors?.length == 1) {
528
+ return errors[0]?.message;
529
+ }
530
+ return /* @__PURE__ */ jsxDEV6(VStack, {
531
+ className: "ml-4 flex list-disc flex-col gap-1",
532
+ children: errors.map((error, index) => error?.message && /* @__PURE__ */ jsxDEV6(P, {
533
+ children: error.message
534
+ }, index, false, undefined, this))
535
+ }, undefined, false, undefined, this);
536
+ }, [children, errors]);
537
+ if (!content) {
538
+ return null;
539
+ }
540
+ return /* @__PURE__ */ jsxDEV6(Box, {
541
+ role: "alert",
542
+ "data-slot": "field-error",
543
+ className: cn6("text-destructive text-sm font-normal", className),
544
+ ...props,
545
+ children: content
546
+ }, undefined, false, undefined, this);
547
+ }
548
+ export {
549
+ FieldTitle,
550
+ FieldSet,
551
+ FieldSeparator,
552
+ FieldLegend,
553
+ FieldLabel,
554
+ FieldGroup,
555
+ FieldError,
556
+ FieldDescription,
557
+ FieldContent,
558
+ Field
559
+ };