@lssm/lib.ui-kit 0.0.0-canary-20251120170226

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 (397) hide show
  1. package/README.md +75 -0
  2. package/dist/index.d.ts +5 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +6 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +35 -0
  7. package/dist/node_modules/@hookform/resolvers/dist/resolvers.js.map +1 -0
  8. package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +119 -0
  9. package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js.map +1 -0
  10. package/dist/node_modules/react-hook-form/dist/index.esm.js +2062 -0
  11. package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -0
  12. package/dist/node_modules/zod/v4/classic/errors.js +30 -0
  13. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  14. package/dist/node_modules/zod/v4/classic/iso.js +38 -0
  15. package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
  16. package/dist/node_modules/zod/v4/classic/parse.js +20 -0
  17. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  18. package/dist/node_modules/zod/v4/classic/schemas.js +395 -0
  19. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  20. package/dist/node_modules/zod/v4/core/api.js +377 -0
  21. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  22. package/dist/node_modules/zod/v4/core/checks.js +226 -0
  23. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  24. package/dist/node_modules/zod/v4/core/core.js +57 -0
  25. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  26. package/dist/node_modules/zod/v4/core/errors.js +63 -0
  27. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  28. package/dist/node_modules/zod/v4/core/parse.js +110 -0
  29. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  30. package/dist/node_modules/zod/v4/core/regexes.js +59 -0
  31. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  32. package/dist/node_modules/zod/v4/core/registries.js +53 -0
  33. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  34. package/dist/node_modules/zod/v4/core/schemas.js +755 -0
  35. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  36. package/dist/node_modules/zod/v4/core/util.js +152 -0
  37. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  38. package/dist/node_modules/zod/v4/core/versions.js +10 -0
  39. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  40. package/dist/tsconfig.tsbuildinfo +1 -0
  41. package/dist/ui/accordion.d.ts +36 -0
  42. package/dist/ui/accordion.d.ts.map +1 -0
  43. package/dist/ui/accordion.js +93 -0
  44. package/dist/ui/accordion.js.map +1 -0
  45. package/dist/ui/alert-dialog.d.ts +72 -0
  46. package/dist/ui/alert-dialog.d.ts.map +1 -0
  47. package/dist/ui/alert-dialog.js +98 -0
  48. package/dist/ui/alert-dialog.js.map +1 -0
  49. package/dist/ui/alert.d.ts +37 -0
  50. package/dist/ui/alert.d.ts.map +1 -0
  51. package/dist/ui/alert.js +50 -0
  52. package/dist/ui/alert.js.map +1 -0
  53. package/dist/ui/aspect-ratio.d.ts +12 -0
  54. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  55. package/dist/ui/aspect-ratio.js +8 -0
  56. package/dist/ui/aspect-ratio.js.map +1 -0
  57. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +8 -0
  58. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +1 -0
  59. package/dist/ui/atoms/FilterSelect/FilterSelect.js +58 -0
  60. package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -0
  61. package/dist/ui/atoms/FilterSelect/index.d.ts +3 -0
  62. package/dist/ui/atoms/FilterSelect/index.js +3 -0
  63. package/dist/ui/atoms/FilterSelect/types.d.ts +19 -0
  64. package/dist/ui/atoms/FilterSelect/types.d.ts.map +1 -0
  65. package/dist/ui/atoms/FilterSelect/types.js +0 -0
  66. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +23 -0
  67. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -0
  68. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +48 -0
  69. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -0
  70. package/dist/ui/atoms/LoadingSpinner/index.d.ts +2 -0
  71. package/dist/ui/atoms/LoadingSpinner/index.js +3 -0
  72. package/dist/ui/atoms/Pagination/Pagination.d.ts +8 -0
  73. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +1 -0
  74. package/dist/ui/atoms/Pagination/Pagination.js +163 -0
  75. package/dist/ui/atoms/Pagination/Pagination.js.map +1 -0
  76. package/dist/ui/atoms/Pagination/index.d.ts +3 -0
  77. package/dist/ui/atoms/Pagination/index.js +3 -0
  78. package/dist/ui/atoms/Pagination/types.d.ts +16 -0
  79. package/dist/ui/atoms/Pagination/types.d.ts.map +1 -0
  80. package/dist/ui/atoms/Pagination/types.js +0 -0
  81. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +8 -0
  82. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +1 -0
  83. package/dist/ui/atoms/SearchInput/SearchInput.js +50 -0
  84. package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -0
  85. package/dist/ui/atoms/SearchInput/index.d.ts +3 -0
  86. package/dist/ui/atoms/SearchInput/index.js +3 -0
  87. package/dist/ui/atoms/SearchInput/types.d.ts +13 -0
  88. package/dist/ui/atoms/SearchInput/types.d.ts.map +1 -0
  89. package/dist/ui/atoms/SearchInput/types.js +0 -0
  90. package/dist/ui/avatar.d.ts +28 -0
  91. package/dist/ui/avatar.d.ts.map +1 -0
  92. package/dist/ui/avatar.js +28 -0
  93. package/dist/ui/avatar.js.map +1 -0
  94. package/dist/ui/badge.d.ts +22 -0
  95. package/dist/ui/badge.d.ts.map +1 -0
  96. package/dist/ui/badge.js +26 -0
  97. package/dist/ui/badge.js.map +1 -0
  98. package/dist/ui/breadcrumb.d.ts +39 -0
  99. package/dist/ui/breadcrumb.d.ts.map +1 -0
  100. package/dist/ui/breadcrumb.js +73 -0
  101. package/dist/ui/breadcrumb.js.map +1 -0
  102. package/dist/ui/button.d.ts +26 -0
  103. package/dist/ui/button.d.ts.map +1 -0
  104. package/dist/ui/button.js +75 -0
  105. package/dist/ui/button.js.map +1 -0
  106. package/dist/ui/card.d.ts +44 -0
  107. package/dist/ui/card.d.ts.map +1 -0
  108. package/dist/ui/card.js +52 -0
  109. package/dist/ui/card.js.map +1 -0
  110. package/dist/ui/carousel.d.ts +5 -0
  111. package/dist/ui/carousel.d.ts.map +1 -0
  112. package/dist/ui/carousel.js +6 -0
  113. package/dist/ui/carousel.js.map +1 -0
  114. package/dist/ui/checkbox.d.ts +17 -0
  115. package/dist/ui/checkbox.d.ts.map +1 -0
  116. package/dist/ui/checkbox.js +21 -0
  117. package/dist/ui/checkbox.js.map +1 -0
  118. package/dist/ui/collapsible.d.ts +25 -0
  119. package/dist/ui/collapsible.d.ts.map +1 -0
  120. package/dist/ui/collapsible.js +10 -0
  121. package/dist/ui/collapsible.js.map +1 -0
  122. package/dist/ui/command.d.ts +5 -0
  123. package/dist/ui/command.d.ts.map +1 -0
  124. package/dist/ui/command.js +6 -0
  125. package/dist/ui/command.js.map +1 -0
  126. package/dist/ui/context-menu.d.ts +110 -0
  127. package/dist/ui/context-menu.d.ts.map +1 -0
  128. package/dist/ui/context-menu.js +108 -0
  129. package/dist/ui/context-menu.js.map +1 -0
  130. package/dist/ui/date-picker.d.ts +24 -0
  131. package/dist/ui/date-picker.d.ts.map +1 -0
  132. package/dist/ui/date-picker.js +54 -0
  133. package/dist/ui/date-picker.js.map +1 -0
  134. package/dist/ui/date-range-picker.d.ts +31 -0
  135. package/dist/ui/date-range-picker.d.ts.map +1 -0
  136. package/dist/ui/date-range-picker.js +86 -0
  137. package/dist/ui/date-range-picker.js.map +1 -0
  138. package/dist/ui/datetime-picker.d.ts +28 -0
  139. package/dist/ui/datetime-picker.d.ts.map +1 -0
  140. package/dist/ui/datetime-picker.js +45 -0
  141. package/dist/ui/datetime-picker.js.map +1 -0
  142. package/dist/ui/dialog.d.ts +69 -0
  143. package/dist/ui/dialog.d.ts.map +1 -0
  144. package/dist/ui/dialog.js +81 -0
  145. package/dist/ui/dialog.js.map +1 -0
  146. package/dist/ui/dropdown-menu.d.ts +112 -0
  147. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  148. package/dist/ui/dropdown-menu.js +110 -0
  149. package/dist/ui/dropdown-menu.js.map +1 -0
  150. package/dist/ui/empty-state.d.ts +29 -0
  151. package/dist/ui/empty-state.d.ts.map +1 -0
  152. package/dist/ui/empty-state.js +46 -0
  153. package/dist/ui/empty-state.js.map +1 -0
  154. package/dist/ui/empty.d.ts +37 -0
  155. package/dist/ui/empty.d.ts.map +1 -0
  156. package/dist/ui/empty.js +63 -0
  157. package/dist/ui/empty.js.map +1 -0
  158. package/dist/ui/fab.d.ts +36 -0
  159. package/dist/ui/fab.d.ts.map +1 -0
  160. package/dist/ui/fab.js +104 -0
  161. package/dist/ui/fab.js.map +1 -0
  162. package/dist/ui/field.d.ts +67 -0
  163. package/dist/ui/field.d.ts.map +1 -0
  164. package/dist/ui/field.js +124 -0
  165. package/dist/ui/field.js.map +1 -0
  166. package/dist/ui/form.d.ts +50 -0
  167. package/dist/ui/form.d.ts.map +1 -0
  168. package/dist/ui/form.js +96 -0
  169. package/dist/ui/form.js.map +1 -0
  170. package/dist/ui/hover-card.d.ts +30 -0
  171. package/dist/ui/hover-card.d.ts.map +1 -0
  172. package/dist/ui/hover-card.js +33 -0
  173. package/dist/ui/hover-card.js.map +1 -0
  174. package/dist/ui/icons/Check.d.ts +2 -0
  175. package/dist/ui/icons/Check.js +9 -0
  176. package/dist/ui/icons/Check.js.map +1 -0
  177. package/dist/ui/icons/ChevronDown.d.ts +2 -0
  178. package/dist/ui/icons/ChevronDown.js +9 -0
  179. package/dist/ui/icons/ChevronDown.js.map +1 -0
  180. package/dist/ui/icons/ChevronRight.d.ts +2 -0
  181. package/dist/ui/icons/ChevronRight.js +9 -0
  182. package/dist/ui/icons/ChevronRight.js.map +1 -0
  183. package/dist/ui/icons/ChevronUp.d.ts +2 -0
  184. package/dist/ui/icons/ChevronUp.js +9 -0
  185. package/dist/ui/icons/ChevronUp.js.map +1 -0
  186. package/dist/ui/icons/CircleUser.d.ts +2 -0
  187. package/dist/ui/icons/CircleUser.js +9 -0
  188. package/dist/ui/icons/CircleUser.js.map +1 -0
  189. package/dist/ui/icons/Info.d.ts +2 -0
  190. package/dist/ui/icons/Info.js +9 -0
  191. package/dist/ui/icons/Info.js.map +1 -0
  192. package/dist/ui/icons/Key.d.ts +2 -0
  193. package/dist/ui/icons/Key.js +9 -0
  194. package/dist/ui/icons/Key.js.map +1 -0
  195. package/dist/ui/icons/MoonStar.d.ts +2 -0
  196. package/dist/ui/icons/MoonStar.js +9 -0
  197. package/dist/ui/icons/MoonStar.js.map +1 -0
  198. package/dist/ui/icons/Sun.d.ts +2 -0
  199. package/dist/ui/icons/Sun.js +9 -0
  200. package/dist/ui/icons/Sun.js.map +1 -0
  201. package/dist/ui/icons/X.d.ts +2 -0
  202. package/dist/ui/icons/X.js +9 -0
  203. package/dist/ui/icons/X.js.map +1 -0
  204. package/dist/ui/icons/iconWithClassName.d.ts +7 -0
  205. package/dist/ui/icons/iconWithClassName.d.ts.map +1 -0
  206. package/dist/ui/icons/iconWithClassName.js +16 -0
  207. package/dist/ui/icons/iconWithClassName.js.map +1 -0
  208. package/dist/ui/input.d.ts +15 -0
  209. package/dist/ui/input.d.ts.map +1 -0
  210. package/dist/ui/input.js +17 -0
  211. package/dist/ui/input.js.map +1 -0
  212. package/dist/ui/label.d.ts +16 -0
  213. package/dist/ui/label.d.ts.map +1 -0
  214. package/dist/ui/label.js +24 -0
  215. package/dist/ui/label.js.map +1 -0
  216. package/dist/ui/link.d.ts +14 -0
  217. package/dist/ui/link.d.ts.map +1 -0
  218. package/dist/ui/link.js +16 -0
  219. package/dist/ui/link.js.map +1 -0
  220. package/dist/ui/loading-button.d.ts +20 -0
  221. package/dist/ui/loading-button.d.ts.map +1 -0
  222. package/dist/ui/loading-button.js +22 -0
  223. package/dist/ui/loading-button.js.map +1 -0
  224. package/dist/ui/loading-overlay.d.ts +16 -0
  225. package/dist/ui/loading-overlay.d.ts.map +1 -0
  226. package/dist/ui/loading-overlay.js +44 -0
  227. package/dist/ui/loading-overlay.js.map +1 -0
  228. package/dist/ui/loading-screen.d.ts +14 -0
  229. package/dist/ui/loading-screen.d.ts.map +1 -0
  230. package/dist/ui/loading-screen.js +93 -0
  231. package/dist/ui/loading-screen.js.map +1 -0
  232. package/dist/ui/marketing/FeatureGrid.d.ts +21 -0
  233. package/dist/ui/marketing/FeatureGrid.d.ts.map +1 -0
  234. package/dist/ui/marketing/FeatureGrid.js +35 -0
  235. package/dist/ui/marketing/FeatureGrid.js.map +1 -0
  236. package/dist/ui/marketing/Hero.d.ts +28 -0
  237. package/dist/ui/marketing/Hero.d.ts.map +1 -0
  238. package/dist/ui/marketing/Hero.js +52 -0
  239. package/dist/ui/marketing/Hero.js.map +1 -0
  240. package/dist/ui/marketing/PricingTable.d.ts +25 -0
  241. package/dist/ui/marketing/PricingTable.d.ts.map +1 -0
  242. package/dist/ui/marketing/PricingTable.js +60 -0
  243. package/dist/ui/marketing/PricingTable.js.map +1 -0
  244. package/dist/ui/marketing/index.d.ts +4 -0
  245. package/dist/ui/marketing/index.js +5 -0
  246. package/dist/ui/menubar.d.ts +115 -0
  247. package/dist/ui/menubar.d.ts.map +1 -0
  248. package/dist/ui/menubar.js +120 -0
  249. package/dist/ui/menubar.js.map +1 -0
  250. package/dist/ui/molecules/Autocomplete/index.d.ts +5 -0
  251. package/dist/ui/molecules/Autocomplete/index.d.ts.map +1 -0
  252. package/dist/ui/molecules/Autocomplete/index.js +6 -0
  253. package/dist/ui/molecules/Autocomplete/index.js.map +1 -0
  254. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +8 -0
  255. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +1 -0
  256. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +106 -0
  257. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -0
  258. package/dist/ui/molecules/SearchAndFilter/index.d.ts +3 -0
  259. package/dist/ui/molecules/SearchAndFilter/index.js +3 -0
  260. package/dist/ui/molecules/SearchAndFilter/types.d.ts +25 -0
  261. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -0
  262. package/dist/ui/molecules/SearchAndFilter/types.js +0 -0
  263. package/dist/ui/molecules/SkeletonList.d.ts +16 -0
  264. package/dist/ui/molecules/SkeletonList.d.ts.map +1 -0
  265. package/dist/ui/molecules/SkeletonList.js +15 -0
  266. package/dist/ui/molecules/SkeletonList.js.map +1 -0
  267. package/dist/ui/nativewind-env.d.ts +1 -0
  268. package/dist/ui/navigation-menu.d.ts +68 -0
  269. package/dist/ui/navigation-menu.d.ts.map +1 -0
  270. package/dist/ui/navigation-menu.js +87 -0
  271. package/dist/ui/navigation-menu.js.map +1 -0
  272. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +30 -0
  273. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  274. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +108 -0
  275. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -0
  276. package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
  277. package/dist/ui/organisms/ErrorBoundary/index.js +3 -0
  278. package/dist/ui/organisms/ListPage/ListPage.d.ts +29 -0
  279. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -0
  280. package/dist/ui/organisms/ListPage/ListPage.js +198 -0
  281. package/dist/ui/organisms/ListPage/ListPage.js.map +1 -0
  282. package/dist/ui/organisms/ListPage/index.d.ts +3 -0
  283. package/dist/ui/organisms/ListPage/index.js +3 -0
  284. package/dist/ui/organisms/ListPage/types.d.ts +42 -0
  285. package/dist/ui/organisms/ListPage/types.d.ts.map +1 -0
  286. package/dist/ui/organisms/ListPage/types.js +0 -0
  287. package/dist/ui/page-header.d.ts +27 -0
  288. package/dist/ui/page-header.d.ts.map +1 -0
  289. package/dist/ui/page-header.js +41 -0
  290. package/dist/ui/page-header.js.map +1 -0
  291. package/dist/ui/password-strength.d.ts +21 -0
  292. package/dist/ui/password-strength.d.ts.map +1 -0
  293. package/dist/ui/password-strength.js +99 -0
  294. package/dist/ui/password-strength.js.map +1 -0
  295. package/dist/ui/popover.d.ts +30 -0
  296. package/dist/ui/popover.d.ts.map +1 -0
  297. package/dist/ui/popover.js +35 -0
  298. package/dist/ui/popover.js.map +1 -0
  299. package/dist/ui/progress.d.ts +17 -0
  300. package/dist/ui/progress.d.ts.map +1 -0
  301. package/dist/ui/progress.js +40 -0
  302. package/dist/ui/progress.js.map +1 -0
  303. package/dist/ui/radio-group.d.ts +15 -0
  304. package/dist/ui/radio-group.d.ts.map +1 -0
  305. package/dist/ui/radio-group.js +23 -0
  306. package/dist/ui/radio-group.js.map +1 -0
  307. package/dist/ui/select.d.ts +84 -0
  308. package/dist/ui/select.d.ts.map +1 -0
  309. package/dist/ui/select.js +111 -0
  310. package/dist/ui/select.js.map +1 -0
  311. package/dist/ui/separator.d.ts +16 -0
  312. package/dist/ui/separator.d.ts.map +1 -0
  313. package/dist/ui/separator.js +18 -0
  314. package/dist/ui/separator.js.map +1 -0
  315. package/dist/ui/sheet.d.ts +5 -0
  316. package/dist/ui/sheet.d.ts.map +1 -0
  317. package/dist/ui/sheet.js +6 -0
  318. package/dist/ui/sheet.js.map +1 -0
  319. package/dist/ui/sidebar.d.ts +5 -0
  320. package/dist/ui/sidebar.d.ts.map +1 -0
  321. package/dist/ui/sidebar.js +6 -0
  322. package/dist/ui/sidebar.js.map +1 -0
  323. package/dist/ui/skeleton.d.ts +12 -0
  324. package/dist/ui/skeleton.d.ts.map +1 -0
  325. package/dist/ui/skeleton.js +24 -0
  326. package/dist/ui/skeleton.js.map +1 -0
  327. package/dist/ui/stack.d.ts +77 -0
  328. package/dist/ui/stack.d.ts.map +1 -0
  329. package/dist/ui/stack.js +238 -0
  330. package/dist/ui/stack.js.map +1 -0
  331. package/dist/ui/stepper.d.ts +23 -0
  332. package/dist/ui/stepper.d.ts.map +1 -0
  333. package/dist/ui/stepper.js +38 -0
  334. package/dist/ui/stepper.js.map +1 -0
  335. package/dist/ui/switch.d.ts +15 -0
  336. package/dist/ui/switch.d.ts.map +1 -0
  337. package/dist/ui/switch.js +54 -0
  338. package/dist/ui/switch.js.map +1 -0
  339. package/dist/ui/table.d.ts +51 -0
  340. package/dist/ui/table.d.ts.map +1 -0
  341. package/dist/ui/table.js +57 -0
  342. package/dist/ui/table.js.map +1 -0
  343. package/dist/ui/tabs.d.ts +33 -0
  344. package/dist/ui/tabs.d.ts.map +1 -0
  345. package/dist/ui/tabs.js +29 -0
  346. package/dist/ui/tabs.js.map +1 -0
  347. package/dist/ui/text.d.ts +21 -0
  348. package/dist/ui/text.d.ts.map +1 -0
  349. package/dist/ui/text.js +19 -0
  350. package/dist/ui/text.js.map +1 -0
  351. package/dist/ui/textarea.d.ts +10 -0
  352. package/dist/ui/textarea.d.ts.map +1 -0
  353. package/dist/ui/textarea.js +20 -0
  354. package/dist/ui/textarea.js.map +1 -0
  355. package/dist/ui/time-picker.d.ts +22 -0
  356. package/dist/ui/time-picker.d.ts.map +1 -0
  357. package/dist/ui/time-picker.js +53 -0
  358. package/dist/ui/time-picker.js.map +1 -0
  359. package/dist/ui/toggle-group.d.ts +36 -0
  360. package/dist/ui/toggle-group.d.ts.map +1 -0
  361. package/dist/ui/toggle-group.js +55 -0
  362. package/dist/ui/toggle-group.js.map +1 -0
  363. package/dist/ui/toggle.d.ts +34 -0
  364. package/dist/ui/toggle.d.ts.map +1 -0
  365. package/dist/ui/toggle.js +67 -0
  366. package/dist/ui/toggle.js.map +1 -0
  367. package/dist/ui/tooltip.d.ts +32 -0
  368. package/dist/ui/tooltip.d.ts.map +1 -0
  369. package/dist/ui/tooltip.js +41 -0
  370. package/dist/ui/tooltip.js.map +1 -0
  371. package/dist/ui/typography.d.ts +65 -0
  372. package/dist/ui/typography.d.ts.map +1 -0
  373. package/dist/ui/typography.js +88 -0
  374. package/dist/ui/typography.js.map +1 -0
  375. package/dist/ui/useColorScheme.d.ts +12 -0
  376. package/dist/ui/useColorScheme.d.ts.map +1 -0
  377. package/dist/ui/useColorScheme.js +17 -0
  378. package/dist/ui/useColorScheme.js.map +1 -0
  379. package/dist/ui/useListState.d.ts +34 -0
  380. package/dist/ui/useListState.d.ts.map +1 -0
  381. package/dist/ui/useListState.js +75 -0
  382. package/dist/ui/useListState.js.map +1 -0
  383. package/dist/ui/usecases/UseCaseCard.d.ts +19 -0
  384. package/dist/ui/usecases/UseCaseCard.d.ts.map +1 -0
  385. package/dist/ui/usecases/UseCaseCard.js +35 -0
  386. package/dist/ui/usecases/UseCaseCard.js.map +1 -0
  387. package/dist/ui/usecases/UserStoryCard.d.ts +15 -0
  388. package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -0
  389. package/dist/ui/usecases/UserStoryCard.js +36 -0
  390. package/dist/ui/usecases/UserStoryCard.js.map +1 -0
  391. package/dist/ui/usecases/index.d.ts +3 -0
  392. package/dist/ui/usecases/index.js +4 -0
  393. package/dist/ui/utils.d.ts +7 -0
  394. package/dist/ui/utils.d.ts.map +1 -0
  395. package/dist/ui/utils.js +11 -0
  396. package/dist/ui/utils.js.map +1 -0
  397. package/package.json +212 -0
@@ -0,0 +1,38 @@
1
+ import { cn } from "./utils.js";
2
+ import { HStack } from "./stack.js";
3
+ import "react";
4
+ import { View } from "react-native";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { cva } from "class-variance-authority";
7
+
8
+ //#region ui/stepper.tsx
9
+ const dotVariants = cva("h-2 w-2 rounded-full", {
10
+ variants: {
11
+ state: {
12
+ active: "bg-primary",
13
+ inactive: "bg-muted-foreground/20"
14
+ },
15
+ size: {
16
+ sm: "",
17
+ md: "h-2.5 w-2.5"
18
+ }
19
+ },
20
+ defaultVariants: {
21
+ state: "inactive",
22
+ size: "md"
23
+ }
24
+ });
25
+ function Stepper({ current, total, size, className }) {
26
+ const items = Array.from({ length: Math.max(0, total) });
27
+ return /* @__PURE__ */ jsx(HStack, {
28
+ className: cn("items-center gap-2", className),
29
+ children: items.map((_, idx) => /* @__PURE__ */ jsx(View, { className: cn(dotVariants({
30
+ state: idx + 1 === current ? "active" : "inactive",
31
+ size
32
+ })) }, idx))
33
+ });
34
+ }
35
+
36
+ //#endregion
37
+ export { Stepper };
38
+ //# sourceMappingURL=stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.js","names":[],"sources":["../../ui/stepper.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\nimport { HStack } from './stack';\nimport { View } from 'react-native';\n\nconst dotVariants = cva('h-2 w-2 rounded-full', {\n variants: {\n state: {\n active: 'bg-primary',\n inactive: 'bg-muted-foreground/20',\n },\n size: {\n sm: '',\n md: 'h-2.5 w-2.5',\n },\n },\n defaultVariants: {\n state: 'inactive',\n size: 'md',\n },\n});\n\nexport interface StepperProps extends VariantProps<typeof dotVariants> {\n current: number;\n total: number;\n className?: string;\n}\n\nexport function Stepper({ current, total, size, className }: StepperProps) {\n const items = Array.from({ length: Math.max(0, total) });\n return (\n <HStack className={cn('items-center gap-2', className)}>\n {items.map((_, idx) => (\n <View\n key={idx}\n className={cn(\n dotVariants({\n state: idx + 1 === current ? 'active' : 'inactive',\n size,\n })\n )}\n />\n ))}\n </HStack>\n );\n}\n"],"mappings":";;;;;;;;AAMA,MAAM,cAAc,IAAI,wBAAwB;CAC9C,UAAU;EACR,OAAO;GACL,QAAQ;GACR,UAAU;GACX;EACD,MAAM;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,OAAO;EACP,MAAM;EACP;CACF,CAAC;AAQF,SAAgB,QAAQ,EAAE,SAAS,OAAO,MAAM,aAA2B;CACzE,MAAM,QAAQ,MAAM,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,MAAM,EAAE,CAAC;AACxD,QACE,oBAAC;EAAO,WAAW,GAAG,sBAAsB,UAAU;YACnD,MAAM,KAAK,GAAG,QACb,oBAAC,QAEC,WAAW,GACT,YAAY;GACV,OAAO,MAAM,MAAM,UAAU,WAAW;GACxC;GACD,CAAC,CACH,IANI,IAOL,CACF;GACK"}
@@ -0,0 +1,15 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime127 from "react/jsx-runtime";
3
+ import * as SwitchPrimitives from "@rn-primitives/switch";
4
+
5
+ //#region ui/switch.d.ts
6
+ declare function SwitchNative({
7
+ className,
8
+ ...props
9
+ }: SwitchPrimitives.RootProps & {
10
+ ref?: React$1.RefObject<SwitchPrimitives.RootRef>;
11
+ }): react_jsx_runtime127.JSX.Element;
12
+ declare const Switch: typeof SwitchNative;
13
+ //#endregion
14
+ export { Switch };
15
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","names":[],"sources":["../../ui/switch.tsx"],"sourcesContent":[],"mappings":";;;;;iBAiDS,YAAA;;;GAGN,gBAAA,CAAiB;QACZ,OAAA,CAAM,UAAU,gBAAA,CAAiB;IACxC,oBAAA,CAAA,GAAA,CAAA;AArD8B,cAkGzB,MAlDe,EAAA,OAkDT,YAlDS"}
@@ -0,0 +1,54 @@
1
+ import { cn } from "./utils.js";
2
+ import { useColorScheme } from "./useColorScheme.js";
3
+ import "react";
4
+ import { Platform } from "react-native";
5
+ import Animated, { interpolateColor, useAnimatedStyle, useDerivedValue, withTiming } from "react-native-reanimated";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import * as SwitchPrimitives from "@rn-primitives/switch";
8
+
9
+ //#region ui/switch.tsx
10
+ function SwitchWeb({ className,...props }) {
11
+ return /* @__PURE__ */ jsx(SwitchPrimitives.Root, {
12
+ className: cn("peer focus-visible:ring-ring focus-visible:ring-offset-background h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed", props.checked ? "bg-primary" : "bg-input", props.disabled && "opacity-50", className),
13
+ ...props,
14
+ children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn("bg-background shadow-foreground/5 pointer-events-none block h-5 w-5 rounded-full shadow-md ring-0 transition-transform", props.checked ? "translate-x-5" : "translate-x-0") })
15
+ });
16
+ }
17
+ const RGB_COLORS = {
18
+ light: {
19
+ primary: "rgb(24, 24, 27)",
20
+ input: "rgb(228, 228, 231)"
21
+ },
22
+ dark: {
23
+ primary: "rgb(250, 250, 250)",
24
+ input: "rgb(39, 39, 42)"
25
+ }
26
+ };
27
+ function SwitchNative({ className,...props }) {
28
+ const { colorScheme } = useColorScheme();
29
+ const translateX = useDerivedValue(() => props.checked ? 18 : 0);
30
+ const animatedRootStyle = useAnimatedStyle(() => {
31
+ return { backgroundColor: interpolateColor(translateX.value, [0, 18], [RGB_COLORS[colorScheme].input, RGB_COLORS[colorScheme].primary]) };
32
+ });
33
+ const animatedThumbStyle = useAnimatedStyle(() => ({ transform: [{ translateX: withTiming(translateX.value, { duration: 200 }) }] }));
34
+ return /* @__PURE__ */ jsx(Animated.View, {
35
+ style: animatedRootStyle,
36
+ className: cn("h-8 w-[46px] rounded-full", props.disabled && "opacity-50"),
37
+ children: /* @__PURE__ */ jsx(SwitchPrimitives.Root, {
38
+ className: cn("h-8 w-[46px] shrink-0 flex-row items-center rounded-full border-2 border-transparent", props.checked ? "bg-primary" : "bg-input", className),
39
+ ...props,
40
+ children: /* @__PURE__ */ jsx(Animated.View, {
41
+ style: animatedThumbStyle,
42
+ children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: "bg-background shadow-foreground/25 h-7 w-7 rounded-full shadow-md ring-0" })
43
+ })
44
+ })
45
+ });
46
+ }
47
+ const Switch = Platform.select({
48
+ web: SwitchWeb,
49
+ default: SwitchNative
50
+ });
51
+
52
+ //#endregion
53
+ export { Switch };
54
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","names":[],"sources":["../../ui/switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from '@rn-primitives/switch';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\nimport Animated, {\n interpolateColor,\n useAnimatedStyle,\n useDerivedValue,\n withTiming,\n} from 'react-native-reanimated';\nimport { useColorScheme } from './useColorScheme';\nimport { cn } from './utils';\n\nfunction SwitchWeb({\n className,\n ...props\n}: SwitchPrimitives.RootProps & {\n ref?: React.RefObject<SwitchPrimitives.RootRef>;\n}) {\n return (\n <SwitchPrimitives.Root\n className={cn(\n 'peer focus-visible:ring-ring focus-visible:ring-offset-background h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed',\n props.checked ? 'bg-primary' : 'bg-input',\n props.disabled && 'opacity-50',\n className\n )}\n {...props}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n 'bg-background shadow-foreground/5 pointer-events-none block h-5 w-5 rounded-full shadow-md ring-0 transition-transform',\n props.checked ? 'translate-x-5' : 'translate-x-0'\n )}\n />\n </SwitchPrimitives.Root>\n );\n}\n\nconst RGB_COLORS = {\n light: {\n primary: 'rgb(24, 24, 27)',\n input: 'rgb(228, 228, 231)',\n },\n dark: {\n primary: 'rgb(250, 250, 250)',\n input: 'rgb(39, 39, 42)',\n },\n} as const;\n\nfunction SwitchNative({\n className,\n ...props\n}: SwitchPrimitives.RootProps & {\n ref?: React.RefObject<SwitchPrimitives.RootRef>;\n}) {\n const { colorScheme } = useColorScheme();\n const translateX = useDerivedValue(() => (props.checked ? 18 : 0));\n const animatedRootStyle = useAnimatedStyle(() => {\n return {\n backgroundColor: interpolateColor(\n translateX.value,\n [0, 18],\n [RGB_COLORS[colorScheme].input, RGB_COLORS[colorScheme].primary]\n ),\n };\n });\n const animatedThumbStyle = useAnimatedStyle(() => ({\n transform: [\n { translateX: withTiming(translateX.value, { duration: 200 }) },\n ],\n }));\n return (\n <Animated.View\n style={animatedRootStyle}\n className={cn(\n 'h-8 w-[46px] rounded-full',\n props.disabled && 'opacity-50'\n )}\n >\n <SwitchPrimitives.Root\n className={cn(\n 'h-8 w-[46px] shrink-0 flex-row items-center rounded-full border-2 border-transparent',\n props.checked ? 'bg-primary' : 'bg-input',\n className\n )}\n {...props}\n >\n <Animated.View style={animatedThumbStyle}>\n <SwitchPrimitives.Thumb\n className={\n 'bg-background shadow-foreground/25 h-7 w-7 rounded-full shadow-md ring-0'\n }\n />\n </Animated.View>\n </SwitchPrimitives.Root>\n </Animated.View>\n );\n}\n\nconst Switch = Platform.select({\n web: SwitchWeb,\n default: SwitchNative,\n});\n\nexport { Switch };\n"],"mappings":";;;;;;;;;AAYA,SAAS,UAAU,EACjB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAChB,WAAW,GACT,iSACA,MAAM,UAAU,eAAe,YAC/B,MAAM,YAAY,cAClB,UACD;EACD,GAAI;YAEJ,oBAAC,iBAAiB,SAChB,WAAW,GACT,0HACA,MAAM,UAAU,kBAAkB,gBACnC,GACD;GACoB;;AAI5B,MAAM,aAAa;CACjB,OAAO;EACL,SAAS;EACT,OAAO;EACR;CACD,MAAM;EACJ,SAAS;EACT,OAAO;EACR;CACF;AAED,SAAS,aAAa,EACpB,UACA,GAAG,SAGF;CACD,MAAM,EAAE,gBAAgB,gBAAgB;CACxC,MAAM,aAAa,sBAAuB,MAAM,UAAU,KAAK,EAAG;CAClE,MAAM,oBAAoB,uBAAuB;AAC/C,SAAO,EACL,iBAAiB,iBACf,WAAW,OACX,CAAC,GAAG,GAAG,EACP,CAAC,WAAW,aAAa,OAAO,WAAW,aAAa,QAAQ,CACjE,EACF;GACD;CACF,MAAM,qBAAqB,wBAAwB,EACjD,WAAW,CACT,EAAE,YAAY,WAAW,WAAW,OAAO,EAAE,UAAU,KAAK,CAAC,EAAE,CAChE,EACF,EAAE;AACH,QACE,oBAAC,SAAS;EACR,OAAO;EACP,WAAW,GACT,6BACA,MAAM,YAAY,aACnB;YAED,oBAAC,iBAAiB;GAChB,WAAW,GACT,wFACA,MAAM,UAAU,eAAe,YAC/B,UACD;GACD,GAAI;aAEJ,oBAAC,SAAS;IAAK,OAAO;cACpB,oBAAC,iBAAiB,SAChB,WACE,6EAEF;KACY;IACM;GACV;;AAIpB,MAAM,SAAS,SAAS,OAAO;CAC7B,KAAK;CACL,SAAS;CACV,CAAC"}
@@ -0,0 +1,51 @@
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime128 from "react/jsx-runtime";
3
+ import * as TablePrimitive from "@rn-primitives/table";
4
+
5
+ //#region ui/table.d.ts
6
+ declare function Table({
7
+ className,
8
+ ...props
9
+ }: TablePrimitive.RootProps & {
10
+ ref?: React$1.RefObject<TablePrimitive.RootRef>;
11
+ }): react_jsx_runtime128.JSX.Element;
12
+ declare function TableHeader({
13
+ className,
14
+ ...props
15
+ }: TablePrimitive.HeaderProps & {
16
+ ref?: React$1.RefObject<TablePrimitive.HeaderRef>;
17
+ }): react_jsx_runtime128.JSX.Element;
18
+ declare function TableBody({
19
+ className,
20
+ style,
21
+ ...props
22
+ }: TablePrimitive.BodyProps & {
23
+ ref?: React$1.RefObject<TablePrimitive.BodyRef>;
24
+ }): react_jsx_runtime128.JSX.Element;
25
+ declare function TableFooter({
26
+ className,
27
+ ...props
28
+ }: TablePrimitive.FooterProps & {
29
+ ref?: React$1.RefObject<TablePrimitive.FooterRef>;
30
+ }): react_jsx_runtime128.JSX.Element;
31
+ declare function TableRow({
32
+ className,
33
+ ...props
34
+ }: TablePrimitive.RowProps & {
35
+ ref?: React$1.RefObject<TablePrimitive.RowRef>;
36
+ }): react_jsx_runtime128.JSX.Element;
37
+ declare function TableHead({
38
+ className,
39
+ ...props
40
+ }: TablePrimitive.HeadProps & {
41
+ ref?: React$1.RefObject<TablePrimitive.HeadRef>;
42
+ }): react_jsx_runtime128.JSX.Element;
43
+ declare function TableCell({
44
+ className,
45
+ ...props
46
+ }: TablePrimitive.CellProps & {
47
+ ref?: React$1.RefObject<TablePrimitive.CellRef>;
48
+ }): react_jsx_runtime128.JSX.Element;
49
+ //#endregion
50
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
51
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","names":[],"sources":["../../ui/table.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKS,KAAA;;;GAGN,cAAA,CAAe;QACV,OAAA,CAAM,UAAU,cAAA,CAAe;IACtC,oBAAA,CAAA,GAAA,CAAA;AAT8B,iBAkBtB,WAAA,CAdK;EAAA,SAAA;EAAA,GAAA;CAAA,EAiBX,cAAA,CAAe,WAjBJ,GAAA;EACZ,GAAA,CAAA,EAiBM,OAAA,CAAM,SAjBZ,CAiBsB,cAAA,CAAe,SAjBrC,CAAA;CAEC,CAAA,EAgBF,oBAAA,CAAA,GAAA,CAAA,OAhBiB;iBAyBT,SAAA,CAxB8B;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;CAAA,EA4BpC,cAAA,CAAe,SA5BqB,GAAA;EAA/B,GAAA,CAAA,EA6BA,OAAA,CAAM,SA7BA,CA6BU,cAAA,CAAe,OA7BzB,CAAA;CACb,CAAA,EA6BA,oBAAA,CAAA,GAAA,CAAA,OA7BA;iBA0CQ,WAAA,CA1CR;EAAA,SAAA;EAAA,GAAA;CAAA,EA6CE,cAAA,CAAe,WA7CjB,GAAA;EASQ,GAAA,CAAA,EAqCD,OAAA,CAAM,SArCM,CAqCI,cAAA,CAAe,SArCnB,CAAA;CAClB,CAAA,EAqCD,oBAAA,CAAA,GAAA,CAAA,OArCC;iBAiDO,QAAA,CA/CS;EAAA,SAAA;EAAA,GAAA;CAAA,EAkDf,cAAA,CAAe,QAlDA,GAAA;EACM,GAAA,CAAA,EAkDhB,OAAA,CAAM,SAlDyB,CAkDf,cAAA,CAAe,MAlDA,CAAA;CAA/B,CAAA,EAmDP,oBAAA,CAAA,GAAA,CAAA,OAnDa;iBA+DL,SAAA,CA9DR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiEE,cAAA,CAAe,SAjEjB,GAAA;EAAA,GAAA,CAAA,EAkEO,OAAA,CAAM,SAlEb,CAkEuB,cAAA,CAAe,OAlEtC,CAAA;AAAA,CAAA,CAAA,EAmEA,oBAAA,CAAA,GAAA,CAAA,OA1DiB;iBAwET,SAAA,CAvEP;EAAA,SAAA;EAAA,GAAA;CAAA,EA0EC,cAAA,CAAe,SA1EhB,GAAA;EACA,GAAA,CAAA,EA0EM,OAAA,CAAM,SA1EZ,CA0EsB,cAAA,CAAe,OA1ErC,CAAA;CAEC,CAAA,EAyEF,oBAAA,CAAA,GAAA,CAAA,OAzEiB"}
@@ -0,0 +1,57 @@
1
+ import { cn } from "./utils.js";
2
+ import { TextClassContext } from "./text.js";
3
+ import "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as TablePrimitive from "@rn-primitives/table";
6
+
7
+ //#region ui/table.tsx
8
+ function Table({ className,...props }) {
9
+ return /* @__PURE__ */ jsx(TablePrimitive.Root, {
10
+ className: cn("w-full caption-bottom text-sm", className),
11
+ ...props
12
+ });
13
+ }
14
+ function TableHeader({ className,...props }) {
15
+ return /* @__PURE__ */ jsx(TablePrimitive.Header, {
16
+ className: cn("border-border [&_tr]:border-b", className),
17
+ ...props
18
+ });
19
+ }
20
+ function TableBody({ className, style,...props }) {
21
+ return /* @__PURE__ */ jsx(TablePrimitive.Body, {
22
+ className: cn("border-border flex-1 [&_tr:last-child]:border-0", className),
23
+ style: [{ minHeight: 2 }, style],
24
+ ...props
25
+ });
26
+ }
27
+ function TableFooter({ className,...props }) {
28
+ return /* @__PURE__ */ jsx(TablePrimitive.Footer, {
29
+ className: cn("bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
30
+ ...props
31
+ });
32
+ }
33
+ function TableRow({ className,...props }) {
34
+ return /* @__PURE__ */ jsx(TablePrimitive.Row, {
35
+ className: cn("border-border web:transition-colors web:hover:bg-muted/50 web:data-[state=selected]:bg-muted flex-row border-b", className),
36
+ ...props
37
+ });
38
+ }
39
+ function TableHead({ className,...props }) {
40
+ return /* @__PURE__ */ jsx(TextClassContext.Provider, {
41
+ value: "text-muted-foreground",
42
+ children: /* @__PURE__ */ jsx(TablePrimitive.Head, {
43
+ className: cn("h-12 justify-center px-4 text-left font-medium [&:has([role=checkbox])]:pr-0", className),
44
+ ...props
45
+ })
46
+ });
47
+ }
48
+ function TableCell({ className,...props }) {
49
+ return /* @__PURE__ */ jsx(TablePrimitive.Cell, {
50
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
51
+ ...props
52
+ });
53
+ }
54
+
55
+ //#endregion
56
+ export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow };
57
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","names":[],"sources":["../../ui/table.tsx"],"sourcesContent":["import * as TablePrimitive from '@rn-primitives/table';\nimport * as React from 'react';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nfunction Table({\n className,\n ...props\n}: TablePrimitive.RootProps & {\n ref?: React.RefObject<TablePrimitive.RootRef>;\n}) {\n return (\n <TablePrimitive.Root\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction TableHeader({\n className,\n ...props\n}: TablePrimitive.HeaderProps & {\n ref?: React.RefObject<TablePrimitive.HeaderRef>;\n}) {\n return (\n <TablePrimitive.Header\n className={cn('border-border [&_tr]:border-b', className)}\n {...props}\n />\n );\n}\n\nfunction TableBody({\n className,\n style,\n ...props\n}: TablePrimitive.BodyProps & {\n ref?: React.RefObject<TablePrimitive.BodyRef>;\n}) {\n return (\n <TablePrimitive.Body\n className={cn(\n 'border-border flex-1 [&_tr:last-child]:border-0',\n className\n )}\n style={[{ minHeight: 2 }, style]}\n {...props}\n />\n );\n}\n\nfunction TableFooter({\n className,\n ...props\n}: TablePrimitive.FooterProps & {\n ref?: React.RefObject<TablePrimitive.FooterRef>;\n}) {\n return (\n <TablePrimitive.Footer\n className={cn(\n 'bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableRow({\n className,\n ...props\n}: TablePrimitive.RowProps & {\n ref?: React.RefObject<TablePrimitive.RowRef>;\n}) {\n return (\n <TablePrimitive.Row\n className={cn(\n 'border-border web:transition-colors web:hover:bg-muted/50 web:data-[state=selected]:bg-muted flex-row border-b',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableHead({\n className,\n ...props\n}: TablePrimitive.HeadProps & {\n ref?: React.RefObject<TablePrimitive.HeadRef>;\n}) {\n return (\n <TextClassContext.Provider value=\"text-muted-foreground\">\n <TablePrimitive.Head\n className={cn(\n 'h-12 justify-center px-4 text-left font-medium [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction TableCell({\n className,\n ...props\n}: TablePrimitive.CellProps & {\n ref?: React.RefObject<TablePrimitive.CellRef>;\n}) {\n return (\n <TablePrimitive.Cell\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Table,\n TableBody,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow,\n};\n"],"mappings":";;;;;;;AAKA,SAAS,MAAM,EACb,UACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,UAAU,EACjB,WACA,MACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,mDACA,UACD;EACD,OAAO,CAAC,EAAE,WAAW,GAAG,EAAE,MAAM;EAChC,GAAI;GACJ;;AAIN,SAAS,YAAY,EACnB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,SAAS,EAChB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kHACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EACjB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,iBAAiB;EAAS,OAAM;YAC/B,oBAAC,eAAe;GACd,WAAW,GACT,gFACA,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,UAAU,EACjB,UACA,GAAG,SAGF;AACD,QACE,oBAAC,eAAe;EACd,WAAW,GACT,kDACA,UACD;EACD,GAAI;GACJ"}
@@ -0,0 +1,33 @@
1
+ import * as React$1 from "react";
2
+ import * as react_native43 from "react-native";
3
+ import * as _rn_primitives_types1 from "@rn-primitives/types";
4
+
5
+ //#region ui/tabs.d.ts
6
+ declare const Tabs: React$1.ForwardRefExoticComponent<react_native43.ViewProps & {
7
+ asChild?: boolean;
8
+ } & {
9
+ value: string;
10
+ onValueChange: (value: string) => void;
11
+ orientation?: "horizontal" | "vertical";
12
+ dir?: "ltr" | "rtl";
13
+ activationMode?: "automatic" | "manual";
14
+ } & React$1.RefAttributes<react_native43.View>>;
15
+ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<react_native43.ViewProps & {
16
+ asChild?: boolean;
17
+ } & React$1.RefAttributes<react_native43.View>, "ref"> & React$1.RefAttributes<react_native43.View>>;
18
+ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<Omit<react_native43.PressableProps & React$1.RefAttributes<react_native43.View>, "ref"> & {
19
+ asChild?: boolean;
20
+ } & {
21
+ onKeyDown?: (ev: React$1.KeyboardEvent) => void;
22
+ onKeyUp?: (ev: React$1.KeyboardEvent) => void;
23
+ } & {
24
+ value: string;
25
+ } & React$1.RefAttributes<react_native43.View>, "ref"> & React$1.RefAttributes<react_native43.View>>;
26
+ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<react_native43.ViewProps & {
27
+ asChild?: boolean;
28
+ } & _rn_primitives_types1.ForceMountable & {
29
+ value: string;
30
+ } & React$1.RefAttributes<react_native43.View>, "ref"> & React$1.RefAttributes<react_native43.View>>;
31
+ //#endregion
32
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
33
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","names":[],"sources":["../../ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;cAIM,MAAI,OAAA,CAAA,0BAAqB,cAAA,CAArB,SAAA;;;;EAAJ,aAAyB,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAA,WAAA,CAArB,EAAA,YAAA,GAAA,UAAA;EAAA,GAAA,CAAA,EAAA,KAAA,GAAA,KAAA;;CAAA,wBAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA;cAEJ,QAFI,EAEI,OAAA,CAAA,yBAFJ,CAEI,IAFJ,CAcR,cAAA,CAZY,SAAA,GAFJ;EAEJ,OAAA,CAAA,EAAA,OAYJ;CAAA,wBAZY,CAAA,cAAA,CAAA,IAAA,CAAA,EAAA,KAAA,CAAA,wBAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA;cAeR,WAfQ,EAeG,OAAA,CAAA,yBAfH,CAeG,IAfH,CAeG,IAfH,CA4BZ,cAAA,CAbe,cAAA,GAAA,OAAA,CAAA,aAfH,CAeG,cAAA,CAAA,IAAA,CAfH,EAAA,KAAA,CAAA,GAAA;;CAAA,GAAA;EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;;CAAA,GAAA;EAAA,KAAA,EAAA,MAAA;AAAA,CAAA,wBA4BZ,qBAAA,EAAA,KAAA,CAAA,wBAAA,CAbe,cAAA,CAAA,IAAA,CAaf,CAAA;cAGI,WAhBW,EAgBA,OAAA,CAAA,yBAhBA,CAgBA,IAhBA,CA4Bf,cAAA,CAZe,SAAA,GAhBA;EAAA,OAAA,CAAA,EAAA,OAAA;CAAA,GAgBA,qBAAA,CAAA,cAAA,GAhBA;EAAA,KAAA,EAAA,MAAA;+EAgBA,cAAA,CAAA,IAAA"}
@@ -0,0 +1,29 @@
1
+ import { cn } from "./utils.js";
2
+ import * as React$1 from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as TabsPrimitive from "@rn-primitives/tabs";
5
+
6
+ //#region ui/tabs.tsx
7
+ const Tabs = TabsPrimitive.Root;
8
+ const TabsList = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, {
9
+ ref,
10
+ className: cn("bg-muted text-muted-foreground web:inline-flex h-10 items-center justify-center rounded-md p-1", className),
11
+ ...props
12
+ }));
13
+ TabsList.displayName = TabsPrimitive.List.displayName;
14
+ const TabsTrigger = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
15
+ ref,
16
+ className: cn("web:inline-flex web:whitespace-nowrap web:ring-offset-background web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium disabled:pointer-events-none disabled:opacity-50", "data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-2xs", className),
17
+ ...props
18
+ }));
19
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
20
+ const TabsContent = React$1.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Content, {
21
+ ref,
22
+ className: cn("web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2", className),
23
+ ...props
24
+ }));
25
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
26
+
27
+ //#endregion
28
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
29
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","names":["React"],"sources":["../../ui/tabs.tsx"],"sourcesContent":["import * as TabsPrimitive from '@rn-primitives/tabs';\nimport * as React from 'react';\nimport { cn } from './utils';\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'bg-muted text-muted-foreground web:inline-flex h-10 items-center justify-center rounded-md p-1',\n className\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'web:inline-flex web:whitespace-nowrap web:ring-offset-background web:transition-all web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium disabled:pointer-events-none disabled:opacity-50',\n 'data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-2xs',\n className\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2',\n className\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"],"mappings":";;;;;;AAIA,MAAM,OAAO,cAAc;AAE3B,MAAM,WAAWA,QAAM,YAGpB,EAAE,UAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,kGACA,UACD;CACD,GAAI;EACJ,CACF;AACF,SAAS,cAAc,cAAc,KAAK;AAE1C,MAAM,cAAcA,QAAM,YAGvB,EAAE,UAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,qUACA,wGACA,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAc,cAAc,QAAQ;AAEhD,MAAM,cAAcA,QAAM,YAGvB,EAAE,UAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc;CACR;CACL,WAAW,GACT,oJACA,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAc,cAAc,QAAQ"}
@@ -0,0 +1,21 @@
1
+ import * as React$1 from "react";
2
+ import { Text as Text$1 } from "react-native";
3
+ import * as react_jsx_runtime135 from "react/jsx-runtime";
4
+
5
+ //#region ui/text.d.ts
6
+ declare const TextClassContext: React$1.Context<string | undefined>;
7
+ type TextProps = React$1.ComponentProps<typeof Text$1> & {
8
+ ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
9
+ asChild?: boolean;
10
+ };
11
+ declare function Text({
12
+ className,
13
+ asChild,
14
+ ...props
15
+ }: React$1.ComponentProps<typeof Text$1> & {
16
+ ref?: React$1.RefObject<React$1.ComponentRef<typeof Text$1>>;
17
+ asChild?: boolean;
18
+ }): react_jsx_runtime135.JSX.Element;
19
+ //#endregion
20
+ export { Text, TextClassContext, TextProps };
21
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","names":[],"sources":["../../ui/text.tsx"],"sourcesContent":[],"mappings":";;;;;cAKM,kBAAgB,OAAA,CAAA;KAEV,SAAA,GAAY,OAAA,CAAM,sBAAsB;QAC5C,OAAA,CAAM,UAAU,OAAA,CAAM,oBAAoB;EAH5C,OAAA,CAAA,EAAA,OAAA;AAEN,CAAA;iBAKS,IAAA,CAL2C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;CAAA,EASjD,OAAA,CAAM,cAT2C,CAAA,OASrB,MATqB,CAAA,GAAA;EAA5B,GAAA,CAAA,EAUhB,OAAA,CAAM,SAVgB,CAUN,OAAA,CAAM,YAVA,CAAA,OAUoB,MAVpB,CAAA,CAAA;EACoB,OAAA,CAAA,EAAA,OAAA;CAA1B,CAAA,EAWvB,oBAAA,CAAA,GAAA,CAAA,OAX6B"}
@@ -0,0 +1,19 @@
1
+ import { cn } from "./utils.js";
2
+ import * as React$1 from "react";
3
+ import { Text as Text$1 } from "react-native";
4
+ import * as Slot from "@rn-primitives/slot";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region ui/text.tsx
8
+ const TextClassContext = React$1.createContext(void 0);
9
+ function Text({ className, asChild = false,...props }) {
10
+ const textClass = React$1.useContext(TextClassContext);
11
+ return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
12
+ className: cn("text-foreground web:select-text text-base", textClass, className),
13
+ ...props
14
+ });
15
+ }
16
+
17
+ //#endregion
18
+ export { Text, TextClassContext };
19
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","names":["React","RNText"],"sources":["../../ui/text.tsx"],"sourcesContent":["import * as Slot from '@rn-primitives/slot';\nimport * as React from 'react';\nimport { Text as RNText } from 'react-native';\nimport { cn } from './utils';\n\nconst TextClassContext = React.createContext<string | undefined>(undefined);\n\nexport type TextProps = React.ComponentProps<typeof RNText> & {\n ref?: React.RefObject<React.ComponentRef<typeof RNText>>;\n asChild?: boolean;\n};\n\nfunction Text({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<typeof RNText> & {\n ref?: React.RefObject<React.ComponentRef<typeof RNText>>;\n asChild?: boolean;\n}) {\n const textClass = React.useContext(TextClassContext);\n const Component = asChild ? Slot.Text : RNText;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-base',\n textClass,\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Text, TextClassContext };\n"],"mappings":";;;;;;;AAKA,MAAM,mBAAmBA,QAAM,cAAkC,OAAU;AAO3E,SAAS,KAAK,EACZ,WACA,UAAU,MACV,GAAG,SAIF;CACD,MAAM,YAAYA,QAAM,WAAW,iBAAiB;AAEpD,QACE,oBAFgB,UAAU,KAAK,OAAOC;EAGpC,WAAW,GACT,6CACA,WACA,UACD;EACD,GAAI;GACJ"}
@@ -0,0 +1,10 @@
1
+ import * as React$1 from "react";
2
+ import { TextInput, TextInputProps } from "react-native";
3
+
4
+ //#region ui/textarea.d.ts
5
+ declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextInputProps & {
6
+ ref?: React$1.RefObject<TextInput>;
7
+ }, "ref"> & React$1.RefAttributes<TextInput>>;
8
+ //#endregion
9
+ export { Textarea };
10
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","names":[],"sources":["../../ui/textarea.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,UAAQ,OAAA,CAAA,0BAAA,KAAA;QAGJ,OAAA,CAAM,UAAU;AANoC,CAAA,EAAA,KAGxD,CAAA,wBAmBJ,UAAA,CAAA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { cn } from "./utils.js";
2
+ import * as React$1 from "react";
3
+ import { TextInput } from "react-native";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region ui/textarea.tsx
7
+ const Textarea = React$1.forwardRef(({ className, placeholderClassName,...props }, ref) => {
8
+ return /* @__PURE__ */ jsx(TextInput, {
9
+ ref,
10
+ className: cn("native:text-lg native:leading-tight border-input bg-background text-foreground placeholder:text-muted-foreground web:flex web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 min-h-[80px] w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:font-medium lg:text-sm", props.editable === false && "web:cursor-not-allowed opacity-50", className),
11
+ placeholderClassName: cn("text-muted-foreground", placeholderClassName),
12
+ multiline: true,
13
+ ...props
14
+ });
15
+ });
16
+ Textarea.displayName = "Textarea";
17
+
18
+ //#endregion
19
+ export { Textarea };
20
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.js","names":["React"],"sources":["../../ui/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { TextInput, type TextInputProps } from 'react-native';\nimport { cn } from './utils';\n\nconst Textarea = React.forwardRef<\n TextInput,\n TextInputProps & {\n ref?: React.RefObject<TextInput>;\n }\n>(({ className, placeholderClassName, ...props }, ref) => {\n return (\n <TextInput\n ref={ref}\n className={cn(\n 'native:text-lg native:leading-tight border-input bg-background text-foreground placeholder:text-muted-foreground web:flex web:ring-offset-background web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 min-h-[80px] w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:font-medium lg:text-sm',\n props.editable === false && 'web:cursor-not-allowed opacity-50',\n className\n )}\n placeholderClassName={cn('text-muted-foreground', placeholderClassName)}\n multiline\n {...props}\n />\n );\n});\n\nTextarea.displayName = 'Textarea';\n\nexport { Textarea };\n"],"mappings":";;;;;;AAIA,MAAM,WAAWA,QAAM,YAKpB,EAAE,WAAW,qBAAsB,GAAG,SAAS,QAAQ;AACxD,QACE,oBAAC;EACM;EACL,WAAW,GACT,sYACA,MAAM,aAAa,SAAS,qCAC5B,UACD;EACD,sBAAsB,GAAG,yBAAyB,qBAAqB;EACvE;EACA,GAAI;GACJ;EAEJ;AAEF,SAAS,cAAc"}
@@ -0,0 +1,22 @@
1
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+
3
+ //#region ui/time-picker.d.ts
4
+ interface TimePickerProps {
5
+ value: Date | null;
6
+ onChange: (date: Date | null) => void;
7
+ disabled?: boolean;
8
+ placeholder?: string;
9
+ is24Hour?: boolean;
10
+ className?: string;
11
+ }
12
+ declare function TimePicker({
13
+ value,
14
+ onChange,
15
+ disabled,
16
+ placeholder,
17
+ is24Hour,
18
+ className
19
+ }: TimePickerProps): react_jsx_runtime28.JSX.Element;
20
+ //#endregion
21
+ export { TimePicker, TimePickerProps };
22
+ //# sourceMappingURL=time-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.d.ts","names":[],"sources":["../../ui/time-picker.tsx"],"sourcesContent":[],"mappings":";;;UAUiB,eAAA;SACR;mBACU;EAFF,QAAA,CAAA,EAAA,OAAe;EAsBhB,WAAA,CAAA,EAAU,MAAA;EACxB,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,UAAA,CAId;EAAA,KAAA;EAAA,QAAA;EAAA,QAAA;EAAA,WAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,eAHD,CAAA,EAGgB,mBAAA,CAAA,GAAA,CAAA,OAHhB"}
@@ -0,0 +1,53 @@
1
+ import { cn } from "./utils.js";
2
+ import { Text as Text$1 } from "./text.js";
3
+ import React, { useMemo, useState } from "react";
4
+ import { Platform, Pressable, View } from "react-native";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import DateTimePicker from "@react-native-community/datetimepicker";
7
+
8
+ //#region ui/time-picker.tsx
9
+ function formatTimeDisplay(date, is24Hour) {
10
+ if (!date) return "";
11
+ try {
12
+ return date.toLocaleTimeString([], {
13
+ hour: "2-digit",
14
+ minute: "2-digit",
15
+ hour12: !is24Hour
16
+ });
17
+ } catch {
18
+ return "";
19
+ }
20
+ }
21
+ function TimePicker({ value, onChange, disabled, placeholder = "Select time", is24Hour = true, className }) {
22
+ const [show, setShow] = useState(false);
23
+ const pickerProps = useMemo(() => ({
24
+ is24Hour,
25
+ timeZoneName: void 0
26
+ }), [is24Hour]);
27
+ const handleChange = (_event, selectedDate) => {
28
+ if (Platform.OS !== "ios") setShow(false);
29
+ if (selectedDate) onChange(selectedDate);
30
+ };
31
+ return /* @__PURE__ */ jsxs(View, {
32
+ className: cn("w-full", className),
33
+ children: [/* @__PURE__ */ jsx(Pressable, {
34
+ disabled,
35
+ onPress: () => setShow(true),
36
+ className: cn("border-input bg-background h-12 flex-row items-center rounded-md border px-3", disabled && "opacity-50"),
37
+ children: /* @__PURE__ */ jsx(Text$1, {
38
+ className: cn("text-foreground text-base", !value && "opacity-50"),
39
+ children: value ? formatTimeDisplay(value, is24Hour) : placeholder
40
+ })
41
+ }), show && /* @__PURE__ */ jsx(DateTimePicker, {
42
+ value: value ?? /* @__PURE__ */ new Date(),
43
+ mode: "time",
44
+ display: Platform.OS === "ios" ? "spinner" : "default",
45
+ onChange: handleChange,
46
+ ...pickerProps
47
+ })]
48
+ });
49
+ }
50
+
51
+ //#endregion
52
+ export { TimePicker };
53
+ //# sourceMappingURL=time-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.js","names":["Text"],"sources":["../../ui/time-picker.tsx"],"sourcesContent":["import React, { useMemo, useState } from 'react';\nimport { Platform, Pressable, View } from 'react-native';\nimport type {\n AndroidNativeProps,\n IOSNativeProps,\n} from '@react-native-community/datetimepicker';\nimport DateTimePicker from '@react-native-community/datetimepicker';\nimport { cn } from './utils';\nimport { Text } from './text';\n\nexport interface TimePickerProps {\n value: Date | null;\n onChange: (date: Date | null) => void;\n disabled?: boolean;\n placeholder?: string;\n is24Hour?: boolean;\n className?: string;\n}\n\nfunction formatTimeDisplay(date: Date | null, is24Hour?: boolean) {\n if (!date) return '';\n try {\n return date.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n hour12: !is24Hour,\n });\n } catch {\n return '';\n }\n}\n\nexport function TimePicker({\n value,\n onChange,\n disabled,\n placeholder = 'Select time',\n is24Hour = true,\n className,\n}: TimePickerProps) {\n const [show, setShow] = useState(false);\n\n const pickerProps = useMemo<Partial<AndroidNativeProps & IOSNativeProps>>(\n () => ({\n is24Hour,\n timeZoneName: undefined,\n }),\n [is24Hour]\n );\n\n const handleChange = (_event: any, selectedDate?: Date | undefined) => {\n if (Platform.OS !== 'ios') setShow(false);\n if (selectedDate) {\n onChange(selectedDate);\n }\n };\n\n return (\n <View className={cn('w-full', className)}>\n <Pressable\n disabled={disabled}\n onPress={() => setShow(true)}\n className={cn(\n 'border-input bg-background h-12 flex-row items-center rounded-md border px-3',\n disabled && 'opacity-50'\n )}\n >\n <Text\n className={cn('text-foreground text-base', !value && 'opacity-50')}\n >\n {value ? formatTimeDisplay(value, is24Hour) : placeholder}\n </Text>\n </Pressable>\n {show && (\n <DateTimePicker\n value={value ?? new Date()}\n mode=\"time\"\n display={Platform.OS === 'ios' ? 'spinner' : 'default'}\n onChange={handleChange}\n {...(pickerProps as any)}\n />\n )}\n </View>\n );\n}\n"],"mappings":";;;;;;;;AAmBA,SAAS,kBAAkB,MAAmB,UAAoB;AAChE,KAAI,CAAC,KAAM,QAAO;AAClB,KAAI;AACF,SAAO,KAAK,mBAAmB,EAAE,EAAE;GACjC,MAAM;GACN,QAAQ;GACR,QAAQ,CAAC;GACV,CAAC;SACI;AACN,SAAO;;;AAIX,SAAgB,WAAW,EACzB,OACA,UACA,UACA,cAAc,eACd,WAAW,MACX,aACkB;CAClB,MAAM,CAAC,MAAM,WAAW,SAAS,MAAM;CAEvC,MAAM,cAAc,eACX;EACL;EACA,cAAc;EACf,GACD,CAAC,SAAS,CACX;CAED,MAAM,gBAAgB,QAAa,iBAAoC;AACrE,MAAI,SAAS,OAAO,MAAO,SAAQ,MAAM;AACzC,MAAI,aACF,UAAS,aAAa;;AAI1B,QACE,qBAAC;EAAK,WAAW,GAAG,UAAU,UAAU;aACtC,oBAAC;GACW;GACV,eAAe,QAAQ,KAAK;GAC5B,WAAW,GACT,gFACA,YAAY,aACb;aAED,oBAACA;IACC,WAAW,GAAG,6BAA6B,CAAC,SAAS,aAAa;cAEjE,QAAQ,kBAAkB,OAAO,SAAS,GAAG;KACzC;IACG,EACX,QACC,oBAAC;GACC,OAAO,yBAAS,IAAI,MAAM;GAC1B,MAAK;GACL,SAAS,SAAS,OAAO,QAAQ,YAAY;GAC7C,UAAU;GACV,GAAK;IACL;GAEC"}
@@ -0,0 +1,36 @@
1
+ import { toggleVariants } from "./toggle.js";
2
+ import * as React$1 from "react";
3
+ import { LucideIcon } from "lucide-react-native";
4
+ import * as react_jsx_runtime159 from "react/jsx-runtime";
5
+ import { VariantProps } from "class-variance-authority";
6
+ import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
7
+
8
+ //#region ui/toggle-group.d.ts
9
+ declare function ToggleGroup({
10
+ className,
11
+ variant,
12
+ size,
13
+ children,
14
+ ...props
15
+ }: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & {
16
+ ref?: React$1.RefObject<ToggleGroupPrimitive.RootRef>;
17
+ }): react_jsx_runtime159.JSX.Element;
18
+ declare function ToggleGroupItem({
19
+ className,
20
+ children,
21
+ variant,
22
+ size,
23
+ ...props
24
+ }: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & {
25
+ ref?: React$1.RefObject<ToggleGroupPrimitive.ItemRef>;
26
+ }): react_jsx_runtime159.JSX.Element;
27
+ declare function ToggleGroupIcon({
28
+ className,
29
+ icon: Icon,
30
+ ...props
31
+ }: React$1.ComponentPropsWithoutRef<LucideIcon> & {
32
+ icon: LucideIcon;
33
+ }): react_jsx_runtime159.JSX.Element;
34
+ //#endregion
35
+ export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
36
+ //# sourceMappingURL=toggle-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAYS,WAAA;;;;;;GAMN,oBAAA,CAAqB,YACtB,oBAAoB;QACZ,OAAA,CAAM,UAAU,oBAAA,CAAqB;IAC5C,oBAAA,CAAA,GAAA,CAAA;AAhBiE,iBA0C3D,eAAA,CAnCW;EAAA,SAAA;EAAA,QAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAyCjB,oBAAA,CAAqB,SAzCJ,GA0ClB,YA1CkB,CAAA,OA0CE,cA1CF,CAAA,GAAA;EAClB,GAAA,CAAA,EA0CQ,OAAA,CAAM,SA1Cd,CA0CwB,oBAAA,CAAqB,OA1C7C,CAAA;CACA,CAAA,EA0CC,oBAAA,CAAA,GAAA,CAAA,OA1CD;iBA0EO,eAAA,CAzEP;EAAA,SAAA;EAAA,IAAA,EA2EM,IA3EN;EAAA,GAAA;CAAA,EA6EC,OAAA,CAAM,wBA7EP,CA6EgC,UA7EhC,CAAA,GAAA;EACA,IAAA,EA6EM,UA7EN;CAEC,CAAA,EA4EF,oBAAA,CAAA,GAAA,CAAA,OA5EuB"}
@@ -0,0 +1,55 @@
1
+ import { cn } from "./utils.js";
2
+ import { TextClassContext } from "./text.js";
3
+ import { toggleTextVariants, toggleVariants } from "./toggle.js";
4
+ import * as React$1 from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import * as ToggleGroupPrimitive from "@rn-primitives/toggle-group";
7
+
8
+ //#region ui/toggle-group.tsx
9
+ const ToggleGroupContext = React$1.createContext(null);
10
+ function ToggleGroup({ className, variant, size, children,...props }) {
11
+ return /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, {
12
+ className: cn("flex flex-row items-center justify-center gap-1", className),
13
+ ...props,
14
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, {
15
+ value: {
16
+ variant,
17
+ size
18
+ },
19
+ children
20
+ })
21
+ });
22
+ }
23
+ function useToggleGroupContext() {
24
+ const context = React$1.useContext(ToggleGroupContext);
25
+ if (context === null) throw new Error("ToggleGroup compound components cannot be rendered outside the ToggleGroup component");
26
+ return context;
27
+ }
28
+ function ToggleGroupItem({ className, children, variant, size,...props }) {
29
+ const context = useToggleGroupContext();
30
+ const { value } = ToggleGroupPrimitive.useRootContext();
31
+ return /* @__PURE__ */ jsx(TextClassContext.Provider, {
32
+ value: cn(toggleTextVariants({
33
+ variant,
34
+ size
35
+ }), ToggleGroupPrimitive.utils.getIsSelected(value, props.value) ? "text-accent-foreground" : "web:group-hover:text-muted-foreground"),
36
+ children: /* @__PURE__ */ jsx(ToggleGroupPrimitive.Item, {
37
+ className: cn(toggleVariants({
38
+ variant: context.variant || variant,
39
+ size: context.size || size
40
+ }), props.disabled && "web:pointer-events-none opacity-50", ToggleGroupPrimitive.utils.getIsSelected(value, props.value) && "bg-accent", className),
41
+ ...props,
42
+ children
43
+ })
44
+ });
45
+ }
46
+ function ToggleGroupIcon({ className, icon: Icon,...props }) {
47
+ return /* @__PURE__ */ jsx(Icon, {
48
+ className: cn(React$1.useContext(TextClassContext), className),
49
+ ...props
50
+ });
51
+ }
52
+
53
+ //#endregion
54
+ export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
55
+ //# sourceMappingURL=toggle-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-group.js","names":["React"],"sources":["../../ui/toggle-group.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { toggleTextVariants, toggleVariants } from './toggle';\nimport { TextClassContext } from './text';\nimport * as ToggleGroupPrimitive from '@rn-primitives/toggle-group';\nimport { cn } from './utils';\n\nconst ToggleGroupContext = React.createContext<VariantProps<\n typeof toggleVariants\n> | null>(null);\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: ToggleGroupPrimitive.RootProps &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<ToggleGroupPrimitive.RootRef>;\n }) {\n return (\n <ToggleGroupPrimitive.Root\n className={cn(\n 'flex flex-row items-center justify-center gap-1',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n );\n}\n\nfunction useToggleGroupContext() {\n const context = React.useContext(ToggleGroupContext);\n if (context === null) {\n throw new Error(\n 'ToggleGroup compound components cannot be rendered outside the ToggleGroup component'\n );\n }\n return context;\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: ToggleGroupPrimitive.ItemProps &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<ToggleGroupPrimitive.ItemRef>;\n }) {\n const context = useToggleGroupContext();\n const { value } = ToggleGroupPrimitive.useRootContext();\n\n return (\n <TextClassContext.Provider\n value={cn(\n toggleTextVariants({ variant, size }),\n ToggleGroupPrimitive.utils.getIsSelected(value, props.value)\n ? 'text-accent-foreground'\n : 'web:group-hover:text-muted-foreground'\n )}\n >\n <ToggleGroupPrimitive.Item\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n props.disabled && 'web:pointer-events-none opacity-50',\n ToggleGroupPrimitive.utils.getIsSelected(value, props.value) &&\n 'bg-accent',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n </TextClassContext.Provider>\n );\n}\n\nfunction ToggleGroupIcon({\n className,\n icon: Icon,\n ...props\n}: React.ComponentPropsWithoutRef<LucideIcon> & {\n icon: LucideIcon;\n}) {\n const textClass = React.useContext(TextClassContext);\n return <Icon className={cn(textClass, className)} {...props} />;\n}\n\nexport { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };\n"],"mappings":";;;;;;;;AAQA,MAAM,qBAAqBA,QAAM,cAEvB,KAAK;AAEf,SAAS,YAAY,EACnB,WACA,SACA,MACA,SACA,GAAG,SAIA;AACH,QACE,oBAAC,qBAAqB;EACpB,WAAW,GACT,mDACA,UACD;EACD,GAAI;YAEJ,oBAAC,mBAAmB;GAAS,OAAO;IAAE;IAAS;IAAM;GAClD;IAC2B;GACJ;;AAIhC,SAAS,wBAAwB;CAC/B,MAAM,UAAUA,QAAM,WAAW,mBAAmB;AACpD,KAAI,YAAY,KACd,OAAM,IAAI,MACR,uFACD;AAEH,QAAO;;AAGT,SAAS,gBAAgB,EACvB,WACA,UACA,SACA,KACA,GAAG,SAIA;CACH,MAAM,UAAU,uBAAuB;CACvC,MAAM,EAAE,UAAU,qBAAqB,gBAAgB;AAEvD,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mBAAmB;GAAE;GAAS;GAAM,CAAC,EACrC,qBAAqB,MAAM,cAAc,OAAO,MAAM,MAAM,GACxD,2BACA,wCACL;YAED,oBAAC,qBAAqB;GACpB,WAAW,GACT,eAAe;IACb,SAAS,QAAQ,WAAW;IAC5B,MAAM,QAAQ,QAAQ;IACvB,CAAC,EACF,MAAM,YAAY,sCAClB,qBAAqB,MAAM,cAAc,OAAO,MAAM,MAAM,IAC1D,aACF,UACD;GACD,GAAI;GAEH;IACyB;GACF;;AAIhC,SAAS,gBAAgB,EACvB,WACA,MAAM,KACN,GAAG,SAGF;AAED,QAAO,oBAAC;EAAK,WAAW,GADNA,QAAM,WAAW,iBAAiB,EACd,UAAU;EAAE,GAAI;GAAS"}