@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
@@ -1,99 +1,401 @@
1
- import { Text as Text$1 } from "./text.js";
2
- import { HStack, VStack } from "./stack.js";
3
- import React from "react";
1
+ // @bun
2
+ // ui/text.tsx
3
+ import * as Slot from "@rn-primitives/slot";
4
+ import * as React from "react";
5
+ import { Text as RNText } from "react-native";
6
+ import { cn } from "@contractspec/lib.ui-kit-core/utils";
7
+ import { jsxDEV } from "react/jsx-dev-runtime";
8
+ var TextClassContext = React.createContext(undefined);
9
+ function Text2({
10
+ className,
11
+ asChild = false,
12
+ ...props
13
+ }) {
14
+ const textClass = React.useContext(TextClassContext);
15
+ const Component = asChild ? Slot.Text : RNText;
16
+ return /* @__PURE__ */ jsxDEV(Component, {
17
+ className: cn("text-foreground web:select-text text-base", textClass, className),
18
+ ...props
19
+ }, undefined, false, undefined, this);
20
+ }
21
+ // ui/stack.tsx
4
22
  import { View } from "react-native";
5
- import { jsx, jsxs } from "react/jsx-runtime";
23
+ import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
24
+ import { cva } from "class-variance-authority";
25
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
26
+ var baseStyle = "flex";
27
+ var vStackVariants = cva([baseStyle, "flex-col"], {
28
+ variants: {
29
+ spacing: {
30
+ none: "",
31
+ xs: "gap-y-1",
32
+ sm: "gap-y-2",
33
+ md: "gap-y-4",
34
+ lg: "gap-y-6",
35
+ xl: "gap-y-8",
36
+ "2xl": "gap-y-12"
37
+ },
38
+ align: {
39
+ stretch: "items-stretch",
40
+ start: "items-start",
41
+ center: "items-center",
42
+ end: "items-end"
43
+ },
44
+ justify: {
45
+ start: "justify-start",
46
+ center: "justify-center",
47
+ end: "justify-end",
48
+ between: "justify-between",
49
+ around: "justify-around",
50
+ evenly: "justify-evenly"
51
+ },
52
+ width: {
53
+ auto: "w-auto",
54
+ full: "w-full",
55
+ screen: "w-screen",
56
+ fit: "w-fit"
57
+ },
58
+ padding: {
59
+ none: "",
60
+ xs: "p-1",
61
+ sm: "p-2",
62
+ md: "p-4",
63
+ lg: "p-6",
64
+ xl: "p-8"
65
+ },
66
+ gap: {
67
+ none: "",
68
+ xs: "gap-1",
69
+ sm: "gap-2",
70
+ md: "gap-4",
71
+ lg: "gap-6",
72
+ xl: "gap-8"
73
+ }
74
+ },
75
+ defaultVariants: {
76
+ spacing: "md",
77
+ align: "stretch",
78
+ justify: "start",
79
+ width: "auto",
80
+ padding: "none",
81
+ gap: "none"
82
+ }
83
+ });
84
+ var hStackVariants = cva([baseStyle, "flex-row"], {
85
+ variants: {
86
+ spacing: {
87
+ none: "",
88
+ xs: "gap-x-1",
89
+ sm: "gap-x-2",
90
+ md: "gap-x-4",
91
+ lg: "gap-x-6",
92
+ xl: "gap-x-8",
93
+ "2xl": "gap-x-12"
94
+ },
95
+ align: {
96
+ stretch: "items-stretch",
97
+ start: "items-start",
98
+ center: "items-center",
99
+ end: "items-end",
100
+ baseline: "items-baseline"
101
+ },
102
+ justify: {
103
+ start: "justify-start",
104
+ center: "justify-center",
105
+ end: "justify-end",
106
+ between: "justify-between",
107
+ around: "justify-around",
108
+ evenly: "justify-evenly"
109
+ },
110
+ width: {
111
+ auto: "w-auto",
112
+ full: "w-full",
113
+ screen: "w-screen",
114
+ fit: "w-fit"
115
+ },
116
+ padding: {
117
+ none: "",
118
+ xs: "p-1",
119
+ sm: "p-2",
120
+ md: "p-4",
121
+ lg: "p-6",
122
+ xl: "p-8"
123
+ },
124
+ gap: {
125
+ none: "",
126
+ xs: "gap-1",
127
+ sm: "gap-2",
128
+ md: "gap-4",
129
+ lg: "gap-6",
130
+ xl: "gap-8"
131
+ },
132
+ wrap: {
133
+ nowrap: "flex-nowrap",
134
+ wrap: "flex-wrap",
135
+ reverse: "flex-wrap-reverse"
136
+ }
137
+ },
138
+ defaultVariants: {
139
+ spacing: "md",
140
+ align: "center",
141
+ justify: "start",
142
+ width: "auto",
143
+ padding: "none",
144
+ gap: "none",
145
+ wrap: "wrap"
146
+ }
147
+ });
148
+ var boxVariants = cva([baseStyle, "flex-row"], {
149
+ variants: {
150
+ spacing: {
151
+ none: "",
152
+ xs: "gap-x-1",
153
+ sm: "gap-x-2",
154
+ md: "gap-x-4",
155
+ lg: "gap-x-6",
156
+ xl: "gap-x-8",
157
+ "2xl": "gap-x-12"
158
+ },
159
+ align: {
160
+ stretch: "items-stretch",
161
+ start: "items-start",
162
+ center: "items-center",
163
+ end: "items-end",
164
+ baseline: "items-baseline"
165
+ },
166
+ justify: {
167
+ start: "justify-start",
168
+ center: "justify-center",
169
+ end: "justify-end",
170
+ between: "justify-between",
171
+ around: "justify-around",
172
+ evenly: "justify-evenly"
173
+ },
174
+ width: {
175
+ auto: "w-auto",
176
+ full: "w-full",
177
+ screen: "w-screen",
178
+ fit: "w-fit"
179
+ },
180
+ padding: {
181
+ none: "",
182
+ xs: "p-1",
183
+ sm: "p-2",
184
+ md: "p-4",
185
+ lg: "p-6",
186
+ xl: "p-8"
187
+ },
188
+ gap: {
189
+ none: "",
190
+ xs: "gap-1",
191
+ sm: "gap-2",
192
+ md: "gap-4",
193
+ lg: "gap-6",
194
+ xl: "gap-8"
195
+ },
196
+ wrap: {
197
+ nowrap: "flex-nowrap",
198
+ wrap: "flex-wrap",
199
+ reverse: "flex-wrap-reverse"
200
+ }
201
+ },
202
+ defaultVariants: {
203
+ spacing: "md",
204
+ align: "center",
205
+ justify: "center",
206
+ width: "auto",
207
+ padding: "none",
208
+ gap: "none",
209
+ wrap: "wrap"
210
+ }
211
+ });
212
+ function Box({
213
+ className,
214
+ spacing,
215
+ align,
216
+ justify,
217
+ width,
218
+ padding,
219
+ gap,
220
+ wrap,
221
+ ...props
222
+ }) {
223
+ return /* @__PURE__ */ jsxDEV2(View, {
224
+ className: cn2(boxVariants({ spacing, align, justify, width, padding, gap, wrap }), className),
225
+ ...props
226
+ }, undefined, false, undefined, this);
227
+ }
228
+ function HStack({
229
+ className,
230
+ spacing,
231
+ align,
232
+ justify,
233
+ width,
234
+ padding,
235
+ gap,
236
+ wrap,
237
+ ...props
238
+ }) {
239
+ return /* @__PURE__ */ jsxDEV2(View, {
240
+ className: cn2(hStackVariants({ spacing, align, justify, width, padding, gap, wrap }), className),
241
+ ...props
242
+ }, undefined, false, undefined, this);
243
+ }
244
+ function VStack({
245
+ className,
246
+ spacing,
247
+ align,
248
+ justify,
249
+ width,
250
+ padding,
251
+ gap,
252
+ ...props
253
+ }) {
254
+ return /* @__PURE__ */ jsxDEV2(View, {
255
+ className: cn2(vStackVariants({ spacing, align, justify, width, padding, gap }), className),
256
+ ...props
257
+ }, undefined, false, undefined, this);
258
+ }
259
+ // ui/password-strength.tsx
260
+ import { View as View2 } from "react-native";
6
261
  import * as z from "zod";
7
-
8
- //#region ui/password-strength.tsx
9
- const passwordSchema = z.string().min(8, "Password must be at least 8 characters").max(128, "Password is too long").regex(/(?=.*[a-z])/, "Password must contain at least one lowercase letter").regex(/(?=.*[A-Z])/, "Password must contain at least one uppercase letter").regex(/(?=.*\d)/, "Password must contain at least one number");
262
+ import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
263
+ var passwordSchema = z.string().min(8, "Password must be at least 8 characters").max(128, "Password is too long").regex(/(?=.*[a-z])/, "Password must contain at least one lowercase letter").regex(/(?=.*[A-Z])/, "Password must contain at least one uppercase letter").regex(/(?=.*\d)/, "Password must contain at least one number");
10
264
  function getPasswordStrength(password) {
11
- const feedback = [];
12
- let score = 0;
13
- if (password.length >= 8) score += 1;
14
- else feedback.push("At least 8 characters");
15
- if (/[a-z]/.test(password)) score += 1;
16
- else feedback.push("One lowercase letter");
17
- if (/[A-Z]/.test(password)) score += 1;
18
- else feedback.push("One uppercase letter");
19
- if (/\d/.test(password)) score += 1;
20
- else feedback.push("One number");
21
- if (/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(password)) score += 1;
22
- if (password.length >= 12) score += 1;
23
- const isValid = passwordSchema.safeParse(password).success;
24
- return {
25
- score: Math.min(score, 5),
26
- feedback,
27
- isValid
28
- };
265
+ const feedback = [];
266
+ let score = 0;
267
+ if (password.length >= 8) {
268
+ score += 1;
269
+ } else {
270
+ feedback.push("At least 8 characters");
271
+ }
272
+ if (/[a-z]/.test(password)) {
273
+ score += 1;
274
+ } else {
275
+ feedback.push("One lowercase letter");
276
+ }
277
+ if (/[A-Z]/.test(password)) {
278
+ score += 1;
279
+ } else {
280
+ feedback.push("One uppercase letter");
281
+ }
282
+ if (/\d/.test(password)) {
283
+ score += 1;
284
+ } else {
285
+ feedback.push("One number");
286
+ }
287
+ if (/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(password)) {
288
+ score += 1;
289
+ }
290
+ if (password.length >= 12) {
291
+ score += 1;
292
+ }
293
+ const isValid = passwordSchema.safeParse(password).success;
294
+ return {
295
+ score: Math.min(score, 5),
296
+ feedback,
297
+ isValid
298
+ };
29
299
  }
30
- function PasswordStrength({ password, showFeedback = true }) {
31
- const { score, feedback, isValid } = getPasswordStrength(password);
32
- if (!password) return null;
33
- const getStrengthColor = (score) => {
34
- if (score <= 1) return "#ef4444";
35
- if (score <= 2) return "#f97316";
36
- if (score <= 3) return "#eab308";
37
- if (score <= 4) return "#22c55e";
38
- return "#16a34a";
39
- };
40
- const getStrengthText = (score) => {
41
- if (score <= 1) return "Very Weak";
42
- if (score <= 2) return "Weak";
43
- if (score <= 3) return "Fair";
44
- if (score <= 4) return "Good";
45
- return "Strong";
46
- };
47
- return /* @__PURE__ */ jsxs(VStack, {
48
- className: "gap-y-2",
49
- children: [
50
- /* @__PURE__ */ jsxs(VStack, {
51
- className: "gap-y-1",
52
- children: [/* @__PURE__ */ jsxs(HStack, {
53
- className: "items-center justify-between",
54
- children: [/* @__PURE__ */ jsx(Text$1, {
55
- className: "text-muted-foreground text-xs",
56
- children: "Password Strength"
57
- }), /* @__PURE__ */ jsx(Text$1, {
58
- className: "text-xs font-medium",
59
- style: { color: getStrengthColor(score) },
60
- children: getStrengthText(score)
61
- })]
62
- }), /* @__PURE__ */ jsx(View, {
63
- className: "h-2 overflow-hidden rounded-full bg-gray-200",
64
- children: /* @__PURE__ */ jsx(View, {
65
- className: "h-full rounded-full transition-all duration-300",
66
- style: {
67
- width: `${score / 5 * 100}%`,
68
- backgroundColor: getStrengthColor(score)
69
- }
70
- })
71
- })]
72
- }),
73
- showFeedback && feedback.length > 0 && /* @__PURE__ */ jsxs(VStack, {
74
- className: "gap-y-1",
75
- children: [/* @__PURE__ */ jsx(Text$1, {
76
- className: "text-muted-foreground text-xs",
77
- children: "Required:"
78
- }), feedback.map((item, index) => /* @__PURE__ */ jsxs(HStack, {
79
- className: "items-center gap-x-2",
80
- children: [/* @__PURE__ */ jsx(View, { className: "bg-muted-foreground h-1 w-1 rounded-full" }), /* @__PURE__ */ jsx(Text$1, {
81
- className: "text-muted-foreground text-xs",
82
- children: item
83
- })]
84
- }, index))]
85
- }),
86
- isValid && /* @__PURE__ */ jsxs(HStack, {
87
- className: "items-center gap-x-2",
88
- children: [/* @__PURE__ */ jsx(View, { className: "h-2 w-2 rounded-full bg-green-500" }), /* @__PURE__ */ jsx(Text$1, {
89
- className: "text-xs text-green-600",
90
- children: "Meets requirements"
91
- })]
92
- })
93
- ]
94
- });
300
+ function PasswordStrength({
301
+ password,
302
+ showFeedback = true
303
+ }) {
304
+ const { score, feedback, isValid } = getPasswordStrength(password);
305
+ if (!password)
306
+ return null;
307
+ const getStrengthColor = (score2) => {
308
+ if (score2 <= 1)
309
+ return "#ef4444";
310
+ if (score2 <= 2)
311
+ return "#f97316";
312
+ if (score2 <= 3)
313
+ return "#eab308";
314
+ if (score2 <= 4)
315
+ return "#22c55e";
316
+ return "#16a34a";
317
+ };
318
+ const getStrengthText = (score2) => {
319
+ if (score2 <= 1)
320
+ return "Very Weak";
321
+ if (score2 <= 2)
322
+ return "Weak";
323
+ if (score2 <= 3)
324
+ return "Fair";
325
+ if (score2 <= 4)
326
+ return "Good";
327
+ return "Strong";
328
+ };
329
+ return /* @__PURE__ */ jsxDEV3(VStack, {
330
+ className: "gap-y-2",
331
+ children: [
332
+ /* @__PURE__ */ jsxDEV3(VStack, {
333
+ className: "gap-y-1",
334
+ children: [
335
+ /* @__PURE__ */ jsxDEV3(HStack, {
336
+ className: "items-center justify-between",
337
+ children: [
338
+ /* @__PURE__ */ jsxDEV3(Text2, {
339
+ className: "text-muted-foreground text-xs",
340
+ children: "Password Strength"
341
+ }, undefined, false, undefined, this),
342
+ /* @__PURE__ */ jsxDEV3(Text2, {
343
+ className: "text-xs font-medium",
344
+ style: { color: getStrengthColor(score) },
345
+ children: getStrengthText(score)
346
+ }, undefined, false, undefined, this)
347
+ ]
348
+ }, undefined, true, undefined, this),
349
+ /* @__PURE__ */ jsxDEV3(View2, {
350
+ className: "h-2 overflow-hidden rounded-full bg-gray-200",
351
+ children: /* @__PURE__ */ jsxDEV3(View2, {
352
+ className: "h-full rounded-full transition-all duration-300",
353
+ style: {
354
+ width: `${score / 5 * 100}%`,
355
+ backgroundColor: getStrengthColor(score)
356
+ }
357
+ }, undefined, false, undefined, this)
358
+ }, undefined, false, undefined, this)
359
+ ]
360
+ }, undefined, true, undefined, this),
361
+ showFeedback && feedback.length > 0 && /* @__PURE__ */ jsxDEV3(VStack, {
362
+ className: "gap-y-1",
363
+ children: [
364
+ /* @__PURE__ */ jsxDEV3(Text2, {
365
+ className: "text-muted-foreground text-xs",
366
+ children: "Required:"
367
+ }, undefined, false, undefined, this),
368
+ feedback.map((item, index) => /* @__PURE__ */ jsxDEV3(HStack, {
369
+ className: "items-center gap-x-2",
370
+ children: [
371
+ /* @__PURE__ */ jsxDEV3(View2, {
372
+ className: "bg-muted-foreground h-1 w-1 rounded-full"
373
+ }, undefined, false, undefined, this),
374
+ /* @__PURE__ */ jsxDEV3(Text2, {
375
+ className: "text-muted-foreground text-xs",
376
+ children: item
377
+ }, undefined, false, undefined, this)
378
+ ]
379
+ }, index, true, undefined, this))
380
+ ]
381
+ }, undefined, true, undefined, this),
382
+ isValid && /* @__PURE__ */ jsxDEV3(HStack, {
383
+ className: "items-center gap-x-2",
384
+ children: [
385
+ /* @__PURE__ */ jsxDEV3(View2, {
386
+ className: "h-2 w-2 rounded-full bg-green-500"
387
+ }, undefined, false, undefined, this),
388
+ /* @__PURE__ */ jsxDEV3(Text2, {
389
+ className: "text-xs text-green-600",
390
+ children: "Meets requirements"
391
+ }, undefined, false, undefined, this)
392
+ ]
393
+ }, undefined, true, undefined, this)
394
+ ]
395
+ }, undefined, true, undefined, this);
95
396
  }
96
-
97
- //#endregion
98
- export { PasswordStrength, getPasswordStrength, passwordSchema };
99
- //# sourceMappingURL=password-strength.js.map
397
+ export {
398
+ passwordSchema,
399
+ getPasswordStrength,
400
+ PasswordStrength
401
+ };
@@ -1,30 +1,18 @@
1
- import * as react from "react";
2
- import * as react_native0 from "react-native";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
- import * as _rn_primitives_popover0 from "@rn-primitives/popover";
5
-
6
- //#region ui/popover.d.ts
7
- declare const Popover: react.ForwardRefExoticComponent<react_native0.ViewProps & {
8
- asChild?: boolean;
1
+ import * as PopoverPrimitive from '@rn-primitives/popover';
2
+ declare const Popover: import("react").ForwardRefExoticComponent<import("react-native").ViewProps & {
3
+ asChild?: boolean;
9
4
  } & {
10
- onOpenChange?: (open: boolean) => void;
11
- } & react.RefAttributes<react_native0.View>>;
12
- declare const PopoverTrigger: react.ForwardRefExoticComponent<Omit<react_native0.PressableProps & react.RefAttributes<react_native0.View>, "ref"> & {
13
- asChild?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ } & import("react").RefAttributes<import("react-native").View>>;
7
+ declare const PopoverTrigger: import("react").ForwardRefExoticComponent<Omit<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, "ref"> & {
8
+ asChild?: boolean;
14
9
  } & {
15
- onKeyDown?: (ev: React.KeyboardEvent) => void;
16
- onKeyUp?: (ev: React.KeyboardEvent) => void;
17
- } & react.RefAttributes<_rn_primitives_popover0.TriggerRef>>;
18
- declare function PopoverContent({
19
- className,
20
- align,
21
- sideOffset,
22
- portalHost,
23
- ...props
24
- }: _rn_primitives_popover0.ContentProps & {
25
- ref?: React.RefObject<_rn_primitives_popover0.ContentRef>;
26
- portalHost?: string;
27
- }): react_jsx_runtime0.JSX.Element;
28
- //#endregion
10
+ onKeyDown?: (ev: React.KeyboardEvent) => void;
11
+ onKeyUp?: (ev: React.KeyboardEvent) => void;
12
+ } & import("react").RefAttributes<import("@rn-primitives/popover").TriggerRef>>;
13
+ declare function PopoverContent({ className, align, sideOffset, portalHost, ...props }: PopoverPrimitive.ContentProps & {
14
+ ref?: React.RefObject<PopoverPrimitive.ContentRef>;
15
+ portalHost?: string;
16
+ }): import("react/jsx-runtime").JSX.Element;
29
17
  export { Popover, PopoverContent, PopoverTrigger };
30
18
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","names":[],"sources":["../../ui/popover.tsx"],"mappings":";;;;;;cAMM,OAAA,QAAO,yBAAA,CAAwB,aAAA,CAAxB,SAAA;;;;wBAAA,aAAA,CAAA,IAAA;AAAA,cAEP,cAAA,QAAc,yBAAA,CAAA,IAAA,CAA2B,aAAA,CAA3B,cAAA,GAAA,KAAA,CAAA,aAAA,CAAA,aAAA,CAAA,IAAA;;;;;;iBAEX,cAAA,CAAA;EACP,SAAA;EACA,KAAA;EACA,UAAA;EACA,UAAA;EAAA,GACG;AAAA,GACF,uBAAA,CAAiB,YAAA;EAClB,GAAA,GAAM,KAAA,CAAM,SAAA,CAAU,uBAAA,CAAiB,UAAA;EACvC,UAAA;AAAA,IACD,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../ui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAM3D,QAAA,MAAM,OAAO;;;;+DAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc;;;;;+EAA2B,CAAC;AAEhD,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,UAAU,EACV,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,YAAY,GAAG;IACjC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,2CAsBA;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
@@ -1,35 +1,60 @@
1
- import { TextClassContext } from "./text.js";
2
- import { Platform, StyleSheet } from "react-native";
3
- import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
1
+ // @bun
2
+ // ui/text.tsx
3
+ import * as Slot from "@rn-primitives/slot";
4
+ import * as React from "react";
5
+ import { Text as RNText } from "react-native";
4
6
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
5
- import { jsx } from "react/jsx-runtime";
7
+ import { jsxDEV } from "react/jsx-dev-runtime";
8
+ var TextClassContext = React.createContext(undefined);
9
+ function Text2({
10
+ className,
11
+ asChild = false,
12
+ ...props
13
+ }) {
14
+ const textClass = React.useContext(TextClassContext);
15
+ const Component = asChild ? Slot.Text : RNText;
16
+ return /* @__PURE__ */ jsxDEV(Component, {
17
+ className: cn("text-foreground web:select-text text-base", textClass, className),
18
+ ...props
19
+ }, undefined, false, undefined, this);
20
+ }
21
+ // ui/popover.tsx
6
22
  import * as PopoverPrimitive from "@rn-primitives/popover";
7
-
8
- //#region ui/popover.tsx
9
- const Popover = PopoverPrimitive.Root;
10
- const PopoverTrigger = PopoverPrimitive.Trigger;
11
- function PopoverContent({ className, align = "center", sideOffset = 4, portalHost, ...props }) {
12
- return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, {
13
- hostName: portalHost,
14
- children: /* @__PURE__ */ jsx(PopoverPrimitive.Overlay, {
15
- style: Platform.OS !== "web" ? StyleSheet.absoluteFill : void 0,
16
- children: /* @__PURE__ */ jsx(Animated.View, {
17
- entering: FadeIn.duration(200),
18
- exiting: FadeOut,
19
- children: /* @__PURE__ */ jsx(TextClassContext.Provider, {
20
- value: "text-popover-foreground",
21
- children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
22
- align,
23
- sideOffset,
24
- className: cn("border-border bg-popover shadow-foreground/5 web:cursor-auto web:outline-hidden web:animate-in web:fade-in-0 web:zoom-in-95 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md", className),
25
- ...props
26
- })
27
- })
28
- })
29
- })
30
- });
23
+ import { Platform, StyleSheet } from "react-native";
24
+ import Animated, { FadeIn, FadeOut } from "react-native-reanimated";
25
+ import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
26
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
27
+ var Popover = PopoverPrimitive.Root;
28
+ var PopoverTrigger = PopoverPrimitive.Trigger;
29
+ function PopoverContent({
30
+ className,
31
+ align = "center",
32
+ sideOffset = 4,
33
+ portalHost,
34
+ ...props
35
+ }) {
36
+ return /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Portal, {
37
+ hostName: portalHost,
38
+ children: /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Overlay, {
39
+ style: Platform.OS !== "web" ? StyleSheet.absoluteFill : undefined,
40
+ children: /* @__PURE__ */ jsxDEV2(Animated.View, {
41
+ entering: FadeIn.duration(200),
42
+ exiting: FadeOut,
43
+ children: /* @__PURE__ */ jsxDEV2(TextClassContext.Provider, {
44
+ value: "text-popover-foreground",
45
+ children: /* @__PURE__ */ jsxDEV2(PopoverPrimitive.Content, {
46
+ align,
47
+ sideOffset,
48
+ className: cn2("border-border bg-popover shadow-foreground/5 web:cursor-auto web:outline-hidden web:animate-in web:fade-in-0 web:zoom-in-95 web:data-[side=bottom]:slide-in-from-top-2 web:data-[side=left]:slide-in-from-right-2 web:data-[side=right]:slide-in-from-left-2 web:data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md", className),
49
+ ...props
50
+ }, undefined, false, undefined, this)
51
+ }, undefined, false, undefined, this)
52
+ }, undefined, false, undefined, this)
53
+ }, undefined, false, undefined, this)
54
+ }, undefined, false, undefined, this);
31
55
  }
32
-
33
- //#endregion
34
- export { Popover, PopoverContent, PopoverTrigger };
35
- //# sourceMappingURL=popover.js.map
56
+ export {
57
+ PopoverTrigger,
58
+ PopoverContent,
59
+ Popover
60
+ };
@@ -1,17 +1,8 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
- import * as ProgressPrimitive from "@rn-primitives/progress";
4
-
5
- //#region ui/progress.d.ts
6
- declare function Progress({
7
- className,
8
- value,
9
- indicatorClassName,
10
- ...props
11
- }: ProgressPrimitive.RootProps & {
12
- ref?: React$1.RefObject<ProgressPrimitive.RootRef>;
13
- indicatorClassName?: string;
14
- }): react_jsx_runtime0.JSX.Element;
15
- //#endregion
1
+ import * as ProgressPrimitive from '@rn-primitives/progress';
2
+ import * as React from 'react';
3
+ declare function Progress({ className, value, indicatorClassName, ...props }: ProgressPrimitive.RootProps & {
4
+ ref?: React.RefObject<ProgressPrimitive.RootRef>;
5
+ indicatorClassName?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
16
7
  export { Progress };
17
8
  //# sourceMappingURL=progress.d.ts.map