@lssm-tech/lib.ui-kit 4.1.6 → 8.0.3

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 (341) hide show
  1. package/README.md +69 -17
  2. package/package.json +1311 -807
  3. package/dist/browser/index.js +0 -1
  4. package/dist/browser/ui/accordion.js +0 -1
  5. package/dist/browser/ui/alert-dialog.js +0 -1
  6. package/dist/browser/ui/alert.js +0 -1
  7. package/dist/browser/ui/aspect-ratio.js +0 -1
  8. package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +0 -1
  9. package/dist/browser/ui/atoms/FilterSelect/index.js +0 -1
  10. package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
  11. package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -1
  12. package/dist/browser/ui/atoms/LoadingSpinner/index.js +0 -1
  13. package/dist/browser/ui/atoms/Pagination/Pagination.js +0 -1
  14. package/dist/browser/ui/atoms/Pagination/index.js +0 -1
  15. package/dist/browser/ui/atoms/Pagination/types.js +0 -0
  16. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +0 -1
  17. package/dist/browser/ui/atoms/SearchInput/index.js +0 -1
  18. package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
  19. package/dist/browser/ui/avatar.js +0 -1
  20. package/dist/browser/ui/badge.js +0 -1
  21. package/dist/browser/ui/breadcrumb.js +0 -1
  22. package/dist/browser/ui/button.js +0 -1
  23. package/dist/browser/ui/card.js +0 -1
  24. package/dist/browser/ui/carousel.js +0 -1
  25. package/dist/browser/ui/checkbox.js +0 -1
  26. package/dist/browser/ui/collapsible.js +0 -1
  27. package/dist/browser/ui/combobox.js +0 -1
  28. package/dist/browser/ui/command.js +0 -1
  29. package/dist/browser/ui/context-menu.js +0 -1
  30. package/dist/browser/ui/contracts.typecheck.js +0 -0
  31. package/dist/browser/ui/data-table.js +0 -1
  32. package/dist/browser/ui/date-picker.js +0 -1
  33. package/dist/browser/ui/date-range-picker.js +0 -1
  34. package/dist/browser/ui/datetime-picker.js +0 -1
  35. package/dist/browser/ui/dialog.js +0 -1
  36. package/dist/browser/ui/dropdown-menu.js +0 -1
  37. package/dist/browser/ui/empty-state.js +0 -1
  38. package/dist/browser/ui/empty.js +0 -1
  39. package/dist/browser/ui/fab.js +0 -1
  40. package/dist/browser/ui/field.js +0 -1
  41. package/dist/browser/ui/form.js +0 -1
  42. package/dist/browser/ui/hover-card.js +0 -1
  43. package/dist/browser/ui/icons/Check.js +0 -1
  44. package/dist/browser/ui/icons/ChevronDown.js +0 -1
  45. package/dist/browser/ui/icons/ChevronRight.js +0 -1
  46. package/dist/browser/ui/icons/ChevronUp.js +0 -1
  47. package/dist/browser/ui/icons/CircleUser.js +0 -1
  48. package/dist/browser/ui/icons/Info.js +0 -1
  49. package/dist/browser/ui/icons/Key.js +0 -1
  50. package/dist/browser/ui/icons/MoonStar.js +0 -1
  51. package/dist/browser/ui/icons/Sun.js +0 -1
  52. package/dist/browser/ui/icons/X.js +0 -1
  53. package/dist/browser/ui/icons/iconWithClassName.js +0 -1
  54. package/dist/browser/ui/input-group.js +0 -1
  55. package/dist/browser/ui/input-otp.js +0 -1
  56. package/dist/browser/ui/input-password.js +0 -1
  57. package/dist/browser/ui/input.js +0 -1
  58. package/dist/browser/ui/label.js +0 -1
  59. package/dist/browser/ui/link.js +0 -1
  60. package/dist/browser/ui/list.js +0 -1
  61. package/dist/browser/ui/loading-button.js +0 -1
  62. package/dist/browser/ui/loading-overlay.js +0 -1
  63. package/dist/browser/ui/loading-screen.js +0 -1
  64. package/dist/browser/ui/marketing/FeatureGrid.js +0 -1
  65. package/dist/browser/ui/marketing/Hero.js +0 -1
  66. package/dist/browser/ui/marketing/PricingTable.js +0 -1
  67. package/dist/browser/ui/marketing/index.js +0 -1
  68. package/dist/browser/ui/menubar.js +0 -1
  69. package/dist/browser/ui/molecules/Autocomplete/index.js +0 -1
  70. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -1
  71. package/dist/browser/ui/molecules/SearchAndFilter/index.js +0 -1
  72. package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
  73. package/dist/browser/ui/molecules/SkeletonList.js +0 -1
  74. package/dist/browser/ui/native-select.js +0 -1
  75. package/dist/browser/ui/nativewind-env.d.js +0 -0
  76. package/dist/browser/ui/navigation-menu.js +0 -1
  77. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
  78. package/dist/browser/ui/organisms/ErrorBoundary/index.js +0 -1
  79. package/dist/browser/ui/organisms/ListPage/ListPage.js +0 -1
  80. package/dist/browser/ui/organisms/ListPage/index.js +0 -1
  81. package/dist/browser/ui/organisms/ListPage/types.js +0 -0
  82. package/dist/browser/ui/page-header.js +0 -1
  83. package/dist/browser/ui/password-strength.js +0 -1
  84. package/dist/browser/ui/popover.js +0 -1
  85. package/dist/browser/ui/portal.js +0 -1
  86. package/dist/browser/ui/progress.js +0 -1
  87. package/dist/browser/ui/radio-group.js +0 -1
  88. package/dist/browser/ui/select.js +0 -1
  89. package/dist/browser/ui/separator.js +0 -1
  90. package/dist/browser/ui/sheet.js +0 -1
  91. package/dist/browser/ui/sidebar.js +0 -1
  92. package/dist/browser/ui/skeleton.js +0 -1
  93. package/dist/browser/ui/slider.js +0 -1
  94. package/dist/browser/ui/stack.js +0 -1
  95. package/dist/browser/ui/stepper.js +0 -1
  96. package/dist/browser/ui/switch.js +0 -1
  97. package/dist/browser/ui/table.js +0 -1
  98. package/dist/browser/ui/tabs.js +0 -1
  99. package/dist/browser/ui/text.js +0 -1
  100. package/dist/browser/ui/textarea.js +0 -1
  101. package/dist/browser/ui/time-picker.js +0 -1
  102. package/dist/browser/ui/toast.js +0 -1
  103. package/dist/browser/ui/toggle-group.js +0 -1
  104. package/dist/browser/ui/toggle.js +0 -1
  105. package/dist/browser/ui/toolbar.js +0 -1
  106. package/dist/browser/ui/tooltip.js +0 -1
  107. package/dist/browser/ui/typography.js +0 -1
  108. package/dist/browser/ui/useColorScheme.js +0 -1
  109. package/dist/browser/ui/useListState.js +0 -1
  110. package/dist/browser/ui/usecases/UseCaseCard.js +0 -1
  111. package/dist/browser/ui/usecases/UserStoryCard.js +0 -1
  112. package/dist/browser/ui/usecases/index.js +0 -1
  113. package/dist/browser/ui/utils.js +0 -1
  114. package/dist/browser/ui/visualization/Visualization.js +0 -1
  115. package/dist/browser/ui/visualization/index.js +0 -1
  116. package/dist/index.d.ts +0 -2
  117. package/dist/index.js +0 -2
  118. package/dist/ui/accordion.d.ts +0 -16
  119. package/dist/ui/accordion.js +0 -2
  120. package/dist/ui/alert-dialog.d.ts +0 -46
  121. package/dist/ui/alert-dialog.js +0 -2
  122. package/dist/ui/alert.d.ts +0 -17
  123. package/dist/ui/alert.js +0 -2
  124. package/dist/ui/aspect-ratio.d.ts +0 -8
  125. package/dist/ui/aspect-ratio.js +0 -2
  126. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -3
  127. package/dist/ui/atoms/FilterSelect/FilterSelect.js +0 -2
  128. package/dist/ui/atoms/FilterSelect/index.d.ts +0 -2
  129. package/dist/ui/atoms/FilterSelect/index.js +0 -2
  130. package/dist/ui/atoms/FilterSelect/types.d.ts +0 -5
  131. package/dist/ui/atoms/FilterSelect/types.js +0 -1
  132. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -19
  133. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -2
  134. package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
  135. package/dist/ui/atoms/LoadingSpinner/index.js +0 -2
  136. package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -3
  137. package/dist/ui/atoms/Pagination/Pagination.js +0 -2
  138. package/dist/ui/atoms/Pagination/index.d.ts +0 -2
  139. package/dist/ui/atoms/Pagination/index.js +0 -2
  140. package/dist/ui/atoms/Pagination/types.d.ts +0 -3
  141. package/dist/ui/atoms/Pagination/types.js +0 -1
  142. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -3
  143. package/dist/ui/atoms/SearchInput/SearchInput.js +0 -2
  144. package/dist/ui/atoms/SearchInput/index.d.ts +0 -2
  145. package/dist/ui/atoms/SearchInput/index.js +0 -2
  146. package/dist/ui/atoms/SearchInput/types.d.ts +0 -3
  147. package/dist/ui/atoms/SearchInput/types.js +0 -1
  148. package/dist/ui/avatar.d.ts +0 -13
  149. package/dist/ui/avatar.js +0 -2
  150. package/dist/ui/badge.d.ts +0 -11
  151. package/dist/ui/badge.js +0 -2
  152. package/dist/ui/breadcrumb.d.ts +0 -12
  153. package/dist/ui/breadcrumb.js +0 -2
  154. package/dist/ui/button.d.ts +0 -16
  155. package/dist/ui/button.js +0 -2
  156. package/dist/ui/card.d.ts +0 -22
  157. package/dist/ui/card.js +0 -2
  158. package/dist/ui/carousel.d.ts +0 -1
  159. package/dist/ui/carousel.js +0 -2
  160. package/dist/ui/checkbox.d.ts +0 -12
  161. package/dist/ui/checkbox.js +0 -2
  162. package/dist/ui/collapsible.d.ts +0 -27
  163. package/dist/ui/collapsible.js +0 -2
  164. package/dist/ui/combobox.d.ts +0 -17
  165. package/dist/ui/combobox.js +0 -2
  166. package/dist/ui/command.d.ts +0 -1
  167. package/dist/ui/command.js +0 -2
  168. package/dist/ui/context-menu.d.ts +0 -83
  169. package/dist/ui/context-menu.js +0 -2
  170. package/dist/ui/contracts.typecheck.d.ts +0 -1
  171. package/dist/ui/contracts.typecheck.js +0 -1
  172. package/dist/ui/data-table.d.ts +0 -8
  173. package/dist/ui/data-table.js +0 -2
  174. package/dist/ui/data-table.smoke.test.d.ts +0 -1
  175. package/dist/ui/date-picker.d.ts +0 -4
  176. package/dist/ui/date-picker.js +0 -2
  177. package/dist/ui/date-range-picker.d.ts +0 -6
  178. package/dist/ui/date-range-picker.js +0 -2
  179. package/dist/ui/datetime-picker.d.ts +0 -6
  180. package/dist/ui/datetime-picker.js +0 -2
  181. package/dist/ui/dialog.d.ts +0 -51
  182. package/dist/ui/dialog.js +0 -2
  183. package/dist/ui/dropdown-menu.d.ts +0 -84
  184. package/dist/ui/dropdown-menu.js +0 -2
  185. package/dist/ui/empty-state.d.ts +0 -9
  186. package/dist/ui/empty-state.js +0 -2
  187. package/dist/ui/empty.d.ts +0 -12
  188. package/dist/ui/empty.js +0 -2
  189. package/dist/ui/fab.d.ts +0 -21
  190. package/dist/ui/fab.js +0 -2
  191. package/dist/ui/field.d.ts +0 -21
  192. package/dist/ui/field.js +0 -2
  193. package/dist/ui/form.d.ts +0 -29
  194. package/dist/ui/form.js +0 -2
  195. package/dist/ui/hover-card.d.ts +0 -25
  196. package/dist/ui/hover-card.js +0 -2
  197. package/dist/ui/icons/Check.d.ts +0 -2
  198. package/dist/ui/icons/Check.js +0 -2
  199. package/dist/ui/icons/ChevronDown.d.ts +0 -2
  200. package/dist/ui/icons/ChevronDown.js +0 -2
  201. package/dist/ui/icons/ChevronRight.d.ts +0 -2
  202. package/dist/ui/icons/ChevronRight.js +0 -2
  203. package/dist/ui/icons/ChevronUp.d.ts +0 -2
  204. package/dist/ui/icons/ChevronUp.js +0 -2
  205. package/dist/ui/icons/CircleUser.d.ts +0 -2
  206. package/dist/ui/icons/CircleUser.js +0 -2
  207. package/dist/ui/icons/Info.d.ts +0 -2
  208. package/dist/ui/icons/Info.js +0 -2
  209. package/dist/ui/icons/Key.d.ts +0 -2
  210. package/dist/ui/icons/Key.js +0 -2
  211. package/dist/ui/icons/MoonStar.d.ts +0 -2
  212. package/dist/ui/icons/MoonStar.js +0 -2
  213. package/dist/ui/icons/Sun.d.ts +0 -2
  214. package/dist/ui/icons/Sun.js +0 -2
  215. package/dist/ui/icons/X.d.ts +0 -2
  216. package/dist/ui/icons/X.js +0 -2
  217. package/dist/ui/icons/iconWithClassName.d.ts +0 -2
  218. package/dist/ui/icons/iconWithClassName.js +0 -2
  219. package/dist/ui/input-group.d.ts +0 -36
  220. package/dist/ui/input-group.js +0 -2
  221. package/dist/ui/input-otp.d.ts +0 -20
  222. package/dist/ui/input-otp.js +0 -2
  223. package/dist/ui/input-password.d.ts +0 -10
  224. package/dist/ui/input-password.js +0 -2
  225. package/dist/ui/input.d.ts +0 -8
  226. package/dist/ui/input.js +0 -2
  227. package/dist/ui/label.d.ts +0 -3
  228. package/dist/ui/label.js +0 -2
  229. package/dist/ui/link.d.ts +0 -6
  230. package/dist/ui/link.js +0 -2
  231. package/dist/ui/list.d.ts +0 -23
  232. package/dist/ui/list.js +0 -2
  233. package/dist/ui/loading-button.d.ts +0 -9
  234. package/dist/ui/loading-button.js +0 -2
  235. package/dist/ui/loading-overlay.d.ts +0 -7
  236. package/dist/ui/loading-overlay.js +0 -2
  237. package/dist/ui/loading-screen.d.ts +0 -6
  238. package/dist/ui/loading-screen.js +0 -2
  239. package/dist/ui/marketing/FeatureGrid.d.ts +0 -4
  240. package/dist/ui/marketing/FeatureGrid.js +0 -2
  241. package/dist/ui/marketing/Hero.d.ts +0 -16
  242. package/dist/ui/marketing/Hero.js +0 -2
  243. package/dist/ui/marketing/PricingTable.d.ts +0 -4
  244. package/dist/ui/marketing/PricingTable.js +0 -2
  245. package/dist/ui/marketing/index.d.ts +0 -3
  246. package/dist/ui/marketing/index.js +0 -2
  247. package/dist/ui/menubar.d.ts +0 -80
  248. package/dist/ui/menubar.js +0 -2
  249. package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
  250. package/dist/ui/molecules/Autocomplete/index.js +0 -2
  251. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -3
  252. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
  253. package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -2
  254. package/dist/ui/molecules/SearchAndFilter/index.js +0 -2
  255. package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -4
  256. package/dist/ui/molecules/SearchAndFilter/types.js +0 -1
  257. package/dist/ui/molecules/SkeletonList.d.ts +0 -7
  258. package/dist/ui/molecules/SkeletonList.js +0 -2
  259. package/dist/ui/native-select.d.ts +0 -29
  260. package/dist/ui/native-select.js +0 -2
  261. package/dist/ui/nativewind-env.d.js +0 -1
  262. package/dist/ui/navigation-menu.d.ts +0 -44
  263. package/dist/ui/navigation-menu.js +0 -2
  264. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -25
  265. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -2
  266. package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
  267. package/dist/ui/organisms/ErrorBoundary/index.js +0 -2
  268. package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -2
  269. package/dist/ui/organisms/ListPage/ListPage.js +0 -2
  270. package/dist/ui/organisms/ListPage/index.d.ts +0 -2
  271. package/dist/ui/organisms/ListPage/index.js +0 -2
  272. package/dist/ui/organisms/ListPage/types.d.ts +0 -44
  273. package/dist/ui/organisms/ListPage/types.js +0 -1
  274. package/dist/ui/page-header.d.ts +0 -9
  275. package/dist/ui/page-header.js +0 -2
  276. package/dist/ui/password-strength.d.ts +0 -13
  277. package/dist/ui/password-strength.js +0 -2
  278. package/dist/ui/popover.d.ts +0 -23
  279. package/dist/ui/popover.js +0 -2
  280. package/dist/ui/portal.d.ts +0 -1
  281. package/dist/ui/portal.js +0 -2
  282. package/dist/ui/progress.d.ts +0 -7
  283. package/dist/ui/progress.js +0 -2
  284. package/dist/ui/radio-group.d.ts +0 -4
  285. package/dist/ui/radio-group.js +0 -2
  286. package/dist/ui/select.d.ts +0 -60
  287. package/dist/ui/select.js +0 -2
  288. package/dist/ui/separator.d.ts +0 -6
  289. package/dist/ui/separator.js +0 -2
  290. package/dist/ui/sheet.d.ts +0 -1
  291. package/dist/ui/sheet.js +0 -2
  292. package/dist/ui/sidebar.d.ts +0 -1
  293. package/dist/ui/sidebar.js +0 -2
  294. package/dist/ui/skeleton.d.ts +0 -4
  295. package/dist/ui/skeleton.js +0 -2
  296. package/dist/ui/slider.d.ts +0 -7
  297. package/dist/ui/slider.js +0 -2
  298. package/dist/ui/stack.d.ts +0 -43
  299. package/dist/ui/stack.js +0 -2
  300. package/dist/ui/stepper.d.ts +0 -10
  301. package/dist/ui/stepper.js +0 -2
  302. package/dist/ui/switch.d.ts +0 -7
  303. package/dist/ui/switch.js +0 -2
  304. package/dist/ui/table.d.ts +0 -24
  305. package/dist/ui/table.js +0 -2
  306. package/dist/ui/tabs.d.ts +0 -6
  307. package/dist/ui/tabs.js +0 -2
  308. package/dist/ui/text.d.ts +0 -12
  309. package/dist/ui/text.js +0 -2
  310. package/dist/ui/textarea.d.ts +0 -8
  311. package/dist/ui/textarea.js +0 -2
  312. package/dist/ui/time-picker.d.ts +0 -4
  313. package/dist/ui/time-picker.js +0 -2
  314. package/dist/ui/toast.d.ts +0 -40
  315. package/dist/ui/toast.js +0 -2
  316. package/dist/ui/toggle-group.d.ts +0 -15
  317. package/dist/ui/toggle-group.js +0 -2
  318. package/dist/ui/toggle.d.ts +0 -19
  319. package/dist/ui/toggle.js +0 -2
  320. package/dist/ui/toolbar.d.ts +0 -25
  321. package/dist/ui/toolbar.js +0 -2
  322. package/dist/ui/tooltip.d.ts +0 -27
  323. package/dist/ui/tooltip.js +0 -2
  324. package/dist/ui/typography.d.ts +0 -16
  325. package/dist/ui/typography.js +0 -2
  326. package/dist/ui/useColorScheme.d.ts +0 -6
  327. package/dist/ui/useColorScheme.js +0 -2
  328. package/dist/ui/useListState.d.ts +0 -6
  329. package/dist/ui/useListState.js +0 -2
  330. package/dist/ui/usecases/UseCaseCard.d.ts +0 -7
  331. package/dist/ui/usecases/UseCaseCard.js +0 -2
  332. package/dist/ui/usecases/UserStoryCard.d.ts +0 -5
  333. package/dist/ui/usecases/UserStoryCard.js +0 -2
  334. package/dist/ui/usecases/index.d.ts +0 -2
  335. package/dist/ui/usecases/index.js +0 -2
  336. package/dist/ui/utils.d.ts +0 -2
  337. package/dist/ui/utils.js +0 -2
  338. package/dist/ui/visualization/Visualization.d.ts +0 -7
  339. package/dist/ui/visualization/Visualization.js +0 -2
  340. package/dist/ui/visualization/index.d.ts +0 -1
  341. package/dist/ui/visualization/index.js +0 -2
@@ -1,44 +0,0 @@
1
- import type { SharedListPageProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- import type { ReactNode } from 'react';
3
- import type { FilterOption } from '../../atoms/FilterSelect';
4
- import type { UseListStateReturn } from '../../useListState';
5
- /** Injectable link component for navigation. Pass Next.js Link (web) or expo-router Link (mobile). */
6
- export type ListPageLinkComponent = React.ComponentType<{
7
- href: string;
8
- children: ReactNode;
9
- }>;
10
- export interface ListPageFilter {
11
- key: string;
12
- label: string;
13
- options: FilterOption[];
14
- showCounts?: boolean;
15
- }
16
- export interface ListPageProps<T = unknown> extends SharedListPageProps<T> {
17
- title: string;
18
- description?: string;
19
- header?: ReactNode;
20
- items: T[];
21
- totalItems: number;
22
- totalPages: number;
23
- isLoading: boolean;
24
- isFetching?: boolean;
25
- error?: Error | null;
26
- listState: UseListStateReturn;
27
- searchPlaceholder?: string;
28
- filters?: ListPageFilter[];
29
- onRefresh?: () => void;
30
- primaryAction?: {
31
- label: string;
32
- href?: string;
33
- onClick?: () => void;
34
- icon?: ReactNode;
35
- };
36
- toolbar?: ReactNode;
37
- renderItem: (item: T, index: number) => ReactNode;
38
- renderEmpty?: () => ReactNode;
39
- renderStats?: (items: T[]) => ReactNode;
40
- className?: string;
41
- itemClassName?: string;
42
- /** Required when primaryAction.href is used. Pass Next.js Link (web) or expo-router Link (mobile). */
43
- linkComponent?: ListPageLinkComponent;
44
- }
@@ -1 +0,0 @@
1
- // @bun
@@ -1,9 +0,0 @@
1
- import type { SharedPageHeaderProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const headerVariants: (props?: ({
4
- spacing?: "sm" | "lg" | "md" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export interface PageHeaderProps extends SharedPageHeaderProps, VariantProps<typeof headerVariants> {
7
- }
8
- export declare function PageHeader({ breadcrumb, title, subtitle, actions, spacing, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import*as P from"@rn-primitives/slot";import*as W from"react";import{Text as S}from"react-native";import{jsx as y}from"react/jsx-runtime";var w=W.createContext(void 0);function E({className:z,asChild:A=!1,...q}){let D=W.useContext(w);return y(A?P.Text:S,{className:v("web:select-text text-base text-foreground",D,z),...q})}import{cn as Y}from"@contractspec/lib.ui-kit-core/utils";import{cva as Z}from"class-variance-authority";import{View as _}from"react-native";import{jsx as R}from"react/jsx-runtime";var $="flex",k=Z([$,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),T=Z([$,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),b=Z([$,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function n({className:z,spacing:A,align:q,justify:D,width:J,padding:K,gap:O,wrap:U,...X}){return R(_,{className:Y(b({spacing:A,align:q,justify:D,width:J,padding:K,gap:O,wrap:U}),z),...X})}function M({className:z,spacing:A,align:q,justify:D,width:J,padding:K,gap:O,wrap:U,...X}){return R(_,{className:Y(T({spacing:A,align:q,justify:D,width:J,padding:K,gap:O,wrap:U}),z),...X})}function Q({className:z,spacing:A,align:q,justify:D,width:J,padding:K,gap:O,...U}){return R(_,{className:Y(k({spacing:A,align:q,justify:D,width:J,padding:K,gap:O}),z),...U})}import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import*as F from"@rn-primitives/slot";import{Platform as f}from"react-native";import{jsx as I}from"react/jsx-runtime";function H({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:"heading","aria-level":"1",className:G("web:select-text web:scroll-m-20 font-extrabold text-4xl text-foreground tracking-tight lg:text-5xl",z),...q})}function i({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:"heading","aria-level":"2",className:G("web:select-text web:scroll-m-20 border-border border-b pb-2 font-semibold text-3xl text-foreground tracking-tight first:mt-0",z),...q})}function t({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:"heading","aria-level":"3",className:G("web:select-text web:scroll-m-20 font-semibold text-2xl text-foreground tracking-tight",z),...q})}function a({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:"heading","aria-level":"4",className:G("web:select-text web:scroll-m-20 font-semibold text-foreground text-xl tracking-tight",z),...q})}function V({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{className:G("web:select-text text-base text-foreground",z),...q})}function s({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:f.OS==="web"?"blockquote":void 0,className:G("mt-6 native:mt-4 web:select-text border-border border-l-2 native:pl-3 pl-6 text-base text-foreground italic",z),...q})}function qq({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{role:f.OS==="web"?"code":void 0,className:G("relative web:select-text rounded-md bg-muted px-[0.3rem] py-[0.2rem] font-semibold text-foreground text-sm",z),...q})}function zq({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{className:G("web:select-text text-muted-foreground text-xl",z),...q})}function Aq({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{className:G("web:select-text font-semibold text-foreground text-xl",z),...q})}function Dq({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{className:G("web:select-text font-medium text-foreground text-sm leading-none",z),...q})}function Eq({className:z,asChild:A=!1,...q}){return I(A?F.Text:E,{className:G("web:select-text text-muted-foreground text-sm",z),...q})}import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import{cva as u}from"class-variance-authority";import{jsx as B,jsxs as L}from"react/jsx-runtime";var C=u("",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}});function Uq({breadcrumb:z,title:A,subtitle:q,actions:D,spacing:J,className:K}){return L(Q,{className:g(C({spacing:J}),K),children:[z,L(M,{className:"items-start justify-between",children:[L(Q,{className:"gap-1",children:[B(H,{className:"font-semibold text-2xl md:text-3xl",children:A}),q?B(V,{className:"text-base text-muted-foreground",children:q}):null]}),D?B(M,{className:"flex items-center gap-2",children:D}):null]})]})}export{Uq as PageHeader};
@@ -1,13 +0,0 @@
1
- import * as z from 'zod';
2
- export declare const passwordSchema: z.ZodString;
3
- export declare function getPasswordStrength(password: string): {
4
- score: number;
5
- feedback: string[];
6
- isValid: boolean;
7
- };
8
- interface PasswordStrengthProps {
9
- password: string;
10
- showFeedback?: boolean;
11
- }
12
- export declare function PasswordStrength({ password, showFeedback, }: PasswordStrengthProps): import("react/jsx-runtime").JSX.Element | null;
13
- export {};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import*as A from"@rn-primitives/slot";import*as g from"react";import{Text as T}from"react-native";import{jsx as q}from"react/jsx-runtime";var V=g.createContext(void 0);function a({className:t,asChild:o=!1,...e}){let n=g.useContext(V);return q(o?A.Text:T,{className:O("web:select-text text-base text-foreground",n,t),...e})}import{cn as c}from"@contractspec/lib.ui-kit-core/utils";import{cva as k}from"class-variance-authority";import{View as S}from"react-native";import{jsx as z}from"react/jsx-runtime";var N="flex",w=k([N,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),F=k([N,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),M=k([N,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function K({className:t,spacing:o,align:e,justify:n,width:m,padding:f,gap:l,wrap:r,...s}){return z(S,{className:c(M({spacing:o,align:e,justify:n,width:m,padding:f,gap:l,wrap:r}),t),...s})}function h({className:t,spacing:o,align:e,justify:n,width:m,padding:f,gap:l,wrap:r,...s}){return z(S,{className:c(F({spacing:o,align:e,justify:n,width:m,padding:f,gap:l,wrap:r}),t),...s})}function P({className:t,spacing:o,align:e,justify:n,width:m,padding:f,gap:l,...r}){return z(S,{className:c(w({spacing:o,align:e,justify:n,width:m,padding:f,gap:l}),t),...r})}import{View as b}from"react-native";import*as H from"zod";import{jsx as u,jsxs as d}from"react/jsx-runtime";var W=H.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");function Z(t){let o=[],e=0;if(t.length>=8)e+=1;else o.push("At least 8 characters");if(/[a-z]/.test(t))e+=1;else o.push("One lowercase letter");if(/[A-Z]/.test(t))e+=1;else o.push("One uppercase letter");if(/\d/.test(t))e+=1;else o.push("One number");if(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(t))e+=1;if(t.length>=12)e+=1;let n=W.safeParse(t).success;return{score:Math.min(e,5),feedback:o,isValid:n}}function Y({password:t,showFeedback:o=!0}){let{score:e,feedback:n,isValid:m}=Z(t);if(!t)return null;let f=(r)=>{if(r<=1)return"#ef4444";if(r<=2)return"#f97316";if(r<=3)return"#eab308";if(r<=4)return"#22c55e";return"#16a34a"},l=(r)=>{if(r<=1)return"Very Weak";if(r<=2)return"Weak";if(r<=3)return"Fair";if(r<=4)return"Good";return"Strong"};return d(P,{className:"gap-y-2",children:[d(P,{className:"gap-y-1",children:[d(h,{className:"items-center justify-between",children:[u(a,{className:"text-muted-foreground text-xs",children:"Password Strength"}),u(a,{className:"font-medium text-xs",style:{color:f(e)},children:l(e)})]}),u(b,{className:"h-2 overflow-hidden rounded-full bg-gray-200",children:u(b,{className:"h-full rounded-full transition-all duration-300",style:{width:`${e/5*100}%`,backgroundColor:f(e)}})})]}),o&&n.length>0&&d(P,{className:"gap-y-1",children:[u(a,{className:"text-muted-foreground text-xs",children:"Required:"}),n.map((r,s)=>d(h,{className:"items-center gap-x-2",children:[u(b,{className:"h-1 w-1 rounded-full bg-muted-foreground"}),u(a,{className:"text-muted-foreground text-xs",children:r})]},s))]}),m&&d(h,{className:"items-center gap-x-2",children:[u(b,{className:"h-2 w-2 rounded-full bg-green-500"}),u(a,{className:"text-green-600 text-xs",children:"Meets requirements"})]})]})}export{W as passwordSchema,Z as getPasswordStrength,Y as PasswordStrength};
@@ -1,23 +0,0 @@
1
- import * as PopoverPrimitive from '@rn-primitives/popover';
2
- declare const Popover: {
3
- ({ asChild, onOpenChange: onOpenChangeProp, ref, ...viewProps }: import("react-native").ViewProps & {
4
- asChild?: boolean;
5
- } & {
6
- onOpenChange?: (open: boolean) => void;
7
- } & import("react").RefAttributes<import("react-native").View>): React.JSX.Element;
8
- displayName: string;
9
- };
10
- declare const PopoverTrigger: {
11
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, "ref"> & {
12
- asChild?: boolean;
13
- } & {
14
- onKeyDown?: (ev: React.KeyboardEvent) => void;
15
- onKeyUp?: (ev: React.KeyboardEvent) => void;
16
- } & import("react").RefAttributes<import("@rn-primitives/popover").TriggerRef>): React.JSX.Element;
17
- displayName: string;
18
- };
19
- declare function PopoverContent({ className, align, sideOffset, portalHost, ...props }: PopoverPrimitive.ContentProps & {
20
- ref?: React.RefObject<PopoverPrimitive.ContentRef>;
21
- portalHost?: string;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- export { Popover, PopoverContent, PopoverTrigger };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as M}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as z from"react";import{Text as Q}from"react-native";import{jsx as U}from"react/jsx-runtime";var J=z.createContext(void 0);function A({className:B,asChild:D=!1,...E}){let G=z.useContext(J);return U(D?L.Text:Q,{className:M("web:select-text text-base text-foreground",G,B),...E})}import{cn as V}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@rn-primitives/popover";import{Platform as W,StyleSheet as X}from"react-native";import Y,{FadeIn as Z,FadeOut as _}from"react-native-reanimated";import{jsx as w}from"react/jsx-runtime";var S=q.Root,h=q.Trigger;function O({className:B,align:D="center",sideOffset:E=4,portalHost:G,...K}){return w(q.Portal,{hostName:G,children:w(q.Overlay,{style:W.OS!=="web"?X.absoluteFill:void 0,children:w(Y.View,{entering:Z.duration(200),exiting:_,children:w(J.Provider,{value:"text-popover-foreground",children:w(q.Content,{align:D,sideOffset:E,className:V("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 web:animate-in web:cursor-auto rounded-md border border-border bg-popover p-4 shadow-foreground/5 shadow-md web:outline-hidden",B),...K})})})})})}export{h as PopoverTrigger,O as PopoverContent,S as Popover};
@@ -1 +0,0 @@
1
- export { Portal, PortalHost, useModalPortalRoot, } from '@rn-primitives/portal';
package/dist/ui/portal.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- export{l as useModalPortalRoot,a as PortalHost,r as Portal};
@@ -1,7 +0,0 @@
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;
7
- export { Progress };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import*as B from"@rn-primitives/progress";import{Platform as K,View as L}from"react-native";import M,{Extrapolation as O,interpolate as Q,useAnimatedStyle as R,useDerivedValue as T,withSpring as U}from"react-native-reanimated";import{jsx as q}from"react/jsx-runtime";function _({className:F,value:z,indicatorClassName:H,...J}){return q(B.Root,{className:G("relative h-4 w-full overflow-hidden rounded-full bg-secondary",F),...J,children:q(W,{value:z,className:H})})}function W({value:F,className:z}){let H=T(()=>F??0),J=R(()=>{return{width:U(`${Q(H.value,[0,100],[1,100],O.CLAMP)}%`,{overshootClamping:!0})}});if(K.OS==="web")return q(L,{className:G("h-full w-full flex-1 bg-primary web:transition-all",z),style:{transform:`translateX(-${100-(F??0)}%)`},children:q(B.Indicator,{className:G("h-full w-full",z)})});return q(B.Indicator,{asChild:!0,children:q(M.View,{style:J,className:G("h-full bg-foreground",z)})})}export{_ as Progress};
@@ -1,4 +0,0 @@
1
- import * as RadioGroupPrimitive from '@rn-primitives/radio-group';
2
- declare function RadioGroup({ className, ...props }: RadioGroupPrimitive.RootProps & React.RefAttributes<RadioGroupPrimitive.RootRef>): import("react/jsx-runtime").JSX.Element;
3
- declare function RadioGroupItem({ className, ...props }: RadioGroupPrimitive.ItemProps & React.RefAttributes<RadioGroupPrimitive.ItemRef>): import("react/jsx-runtime").JSX.Element;
4
- export { RadioGroup, RadioGroupItem };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import*as h from"@rn-primitives/radio-group";import{Platform as A}from"react-native";import{jsx as y}from"react/jsx-runtime";function D({className:w,...q}){return y(h.Root,{className:z("gap-3",w),...q})}function E({className:w,...q}){return y(h.Item,{className:z("aspect-square size-4 shrink-0 items-center justify-center rounded-full border border-input shadow-2xs shadow-black/5 dark:bg-input/30",A.select({web:"outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40"}),q.disabled&&"opacity-50",w),...q,children:y(h.Indicator,{className:"size-2 rounded-full bg-primary"})})}export{E as RadioGroupItem,D as RadioGroup};
@@ -1,60 +0,0 @@
1
- import * as SelectPrimitive from '@rn-primitives/select';
2
- import * as React from 'react';
3
- import { View } from 'react-native';
4
- type Option = SelectPrimitive.Option;
5
- declare const Select: {
6
- ({ asChild, value: valueProp, defaultValue, onValueChange: onValueChangeProp, onOpenChange: onOpenChangeProp, disabled, ref, ...viewProps }: import("react-native").ViewProps & {
7
- asChild?: boolean;
8
- } & {
9
- value?: import("@rn-primitives/select").Option;
10
- defaultValue?: import("@rn-primitives/select").Option;
11
- onValueChange?: (option: import("@rn-primitives/select").Option) => void;
12
- onOpenChange?: (open: boolean) => void;
13
- disabled?: boolean;
14
- dir?: "ltr" | "rtl";
15
- name?: string;
16
- required?: boolean;
17
- } & React.RefAttributes<View>): React.JSX.Element;
18
- displayName: string;
19
- };
20
- declare const SelectGroup: {
21
- ({ asChild, ref, ...props }: import("react-native").ViewProps & {
22
- asChild?: boolean;
23
- } & React.RefAttributes<View>): React.JSX.Element;
24
- displayName: string;
25
- };
26
- declare const SelectValue: {
27
- ({ asChild, placeholder, ref, ...props }: import("react-native").TextProps & {
28
- asChild?: boolean;
29
- } & {
30
- placeholder: string;
31
- } & React.RefAttributes<import("react-native").Text>): React.JSX.Element;
32
- displayName: string;
33
- };
34
- declare function SelectTrigger({ ref, className, children, ...props }: SelectPrimitive.TriggerProps & {
35
- ref?: React.RefObject<SelectPrimitive.TriggerRef>;
36
- children?: React.ReactNode;
37
- }): import("react/jsx-runtime").JSX.Element;
38
- /**
39
- * Platform: WEB ONLY
40
- */
41
- declare function SelectScrollUpButton({ className, ...props }: SelectPrimitive.ScrollUpButtonProps): import("react/jsx-runtime").JSX.Element | null;
42
- /**
43
- * Platform: WEB ONLY
44
- */
45
- declare function SelectScrollDownButton({ className, ...props }: SelectPrimitive.ScrollDownButtonProps): import("react/jsx-runtime").JSX.Element | null;
46
- declare function SelectContent({ className, children, position, portalHost, ...props }: SelectPrimitive.ContentProps & {
47
- ref?: React.RefObject<SelectPrimitive.ContentRef>;
48
- className?: string;
49
- portalHost?: string;
50
- }): import("react/jsx-runtime").JSX.Element;
51
- declare function SelectLabel({ className, ...props }: SelectPrimitive.LabelProps & {
52
- ref?: React.RefObject<SelectPrimitive.LabelRef>;
53
- }): import("react/jsx-runtime").JSX.Element;
54
- declare function SelectItem({ className, children, ...props }: SelectPrimitive.ItemProps & {
55
- ref?: React.RefObject<SelectPrimitive.ItemRef>;
56
- }): import("react/jsx-runtime").JSX.Element;
57
- declare function SelectSeparator({ className, ...props }: SelectPrimitive.SeparatorProps & {
58
- ref?: React.RefObject<SelectPrimitive.SeparatorRef>;
59
- }): import("react/jsx-runtime").JSX.Element;
60
- export { type Option, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
package/dist/ui/select.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{styled as Y}from"nativewind";function q(W){Y(W,{className:{target:"style",nativeStyleMapping:{color:!0,opacity:!0}}})}import{ChevronDown as E}from"lucide-react-native";q(E);import{Check as I}from"lucide-react-native";q(I);import{ChevronUp as J}from"lucide-react-native";q(J);import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@rn-primitives/select";import{Platform as K,StyleSheet as Z,View as _}from"react-native";import $,{FadeIn as m,FadeOut as A}from"react-native-reanimated";import{jsx as y,jsxs as Q}from"react/jsx-runtime";var N=f.Root,x=f.Group,S=f.Value;function j({ref:W,className:L,children:M,...z}){return Q(f.Trigger,{ref:W,className:g("flex h-10 native:h-12 flex-row items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-muted-foreground text-sm web:ring-offset-background web:focus:outline-hidden web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 [&>span]:line-clamp-1",z.disabled&&"web:cursor-not-allowed opacity-50",L),...z,children:[M,y(E,{size:16,"aria-hidden":!0,className:"text-foreground opacity-50"})]})}function C({className:W,...L}){if(K.OS!=="web")return null;return y(f.ScrollUpButton,{className:g("flex web:cursor-default items-center justify-center py-1",W),...L,children:y(J,{size:14,className:"text-foreground"})})}function G({className:W,...L}){if(K.OS!=="web")return null;return y(f.ScrollDownButton,{className:g("flex web:cursor-default items-center justify-center py-1",W),...L,children:y(E,{size:14,className:"text-foreground"})})}function r({className:W,children:L,position:M="popper",portalHost:z,...R}){let{open:X}=f.useRootContext();return y(f.Portal,{hostName:z,children:y(f.Overlay,{style:K.OS!=="web"?Z.absoluteFill:void 0,children:y($.View,{className:"z-50",entering:m,exiting:A,children:Q(f.Content,{className:g("data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-32 rounded-md border border-border bg-popover px-1 py-2 shadow-foreground/10 shadow-md",M==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",X?"web:fade-in-0 web:zoom-in-95 web:animate-in":"web:fade-out-0 web:zoom-out-95 web:animate-out",W),position:M,...R,children:[y(C,{}),y(f.Viewport,{className:g("p-1",M==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:L}),y(G,{})]})})})})}function t({className:W,...L}){return y(f.Label,{className:g("py-1.5 pr-2 native:pb-2 native:pl-10 pl-8 font-semibold native:text-base text-popover-foreground text-sm",W),...L})}function o({className:W,children:L,...M}){return Q(f.Item,{className:g("web:group relative flex w-full web:cursor-default web:select-none flex-row items-center rounded-xs native:py-2 py-1.5 pr-2 native:pl-10 pl-8 web:outline-hidden web:hover:bg-accent/50 web:focus:bg-accent active:bg-accent",M.disabled&&"web:pointer-events-none opacity-50",W),...M,children:[y(_,{className:"absolute left-2 native:left-3.5 flex h-3.5 w-3.5 items-center justify-center native:pt-px",children:y(f.ItemIndicator,{children:y(I,{size:16,strokeWidth:3,className:"text-popover-foreground"})})}),y(f.ItemText,{className:"native:text-base native:text-lg text-popover-foreground text-sm web:group-focus:text-accent-foreground"})]})}function n({className:W,...L}){return y(f.Separator,{className:g("-mx-1 my-1 h-px bg-muted",W),...L})}export{S as SelectValue,j as SelectTrigger,n as SelectSeparator,C as SelectScrollUpButton,G as SelectScrollDownButton,t as SelectLabel,o as SelectItem,x as SelectGroup,r as SelectContent,N as Select};
@@ -1,6 +0,0 @@
1
- import * as SeparatorPrimitive from '@rn-primitives/separator';
2
- import * as React from 'react';
3
- declare function Separator({ className, orientation, decorative, ...props }: SeparatorPrimitive.RootProps & {
4
- ref?: React.RefObject<SeparatorPrimitive.RootRef>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- export { Separator };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@rn-primitives/separator";import{jsx as z}from"react/jsx-runtime";function B({className:h,orientation:f="horizontal",decorative:q=!0,...w}){return z(g.Root,{decorative:q,orientation:f,className:y("shrink-0 bg-border",f==="horizontal"?"h-px w-full":"h-full w-px",h),...w})}export{B as Separator};
@@ -1 +0,0 @@
1
- export declare const sheet = "null";
package/dist/ui/sheet.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- var e="null";export{e as sheet};
@@ -1 +0,0 @@
1
- export declare const sidebar = "null";
@@ -1,2 +0,0 @@
1
- // @bun
2
- var e="null";export{e as sidebar};
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { View } from 'react-native';
3
- declare function Skeleton({ className, ...props }: Omit<React.ComponentPropsWithoutRef<typeof View>, 'style'>): import("react/jsx-runtime").JSX.Element;
4
- export { Skeleton };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import*as C from"react";import H,{useAnimatedStyle as I,useSharedValue as J,withRepeat as K,withSequence as L,withTiming as z}from"react-native-reanimated";import{jsx as M}from"react/jsx-runtime";var B=1000;function Q({className:D,...E}){let f=J(1);C.useEffect(()=>{f.value=K(L(z(0.5,{duration:B}),z(1,{duration:B})),-1)},[]);let F=I(()=>({opacity:f.value}));return M(H.View,{style:F,className:G("rounded-md bg-secondary dark:bg-muted",D),...E})}export{Q as Skeleton};
@@ -1,7 +0,0 @@
1
- import * as SliderPrimitive from '@rn-primitives/slider';
2
- import * as React from 'react';
3
- type SliderProps = SliderPrimitive.RootProps & {
4
- ref?: React.RefObject<SliderPrimitive.RootRef>;
5
- };
6
- declare function Slider({ className, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
7
- export { Slider };
package/dist/ui/slider.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as w}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@rn-primitives/slider";import{jsx as g,jsxs as y}from"react/jsx-runtime";function A({className:h,...q}){return y(f.Root,{className:w("relative flex w-full flex-row items-center data-[disabled]:opacity-50",h),...q,children:[g(f.Track,{className:"relative h-1.5 flex-1 overflow-hidden rounded-full bg-muted",children:g(f.Range,{className:"absolute h-full rounded-full bg-primary"})}),g(f.Thumb,{className:"ml-[-8] h-4 w-4 rounded-full border border-primary bg-background"})]})}export{A as Slider};
@@ -1,43 +0,0 @@
1
- import { type VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- import type { ViewProps } from 'react-native';
4
- import { View } from 'react-native';
5
- declare const vStackVariants: (props?: ({
6
- spacing?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
7
- align?: "center" | "end" | "start" | "stretch" | null | undefined;
8
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
9
- width?: "auto" | "screen" | "full" | "fit" | null | undefined;
10
- padding?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
11
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- declare const hStackVariants: (props?: ({
14
- spacing?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
15
- align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
16
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
17
- width?: "auto" | "screen" | "full" | "fit" | null | undefined;
18
- padding?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
19
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
20
- wrap?: "reverse" | "wrap" | "nowrap" | null | undefined;
21
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
- declare const boxVariants: (props?: ({
23
- spacing?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
24
- align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
25
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
26
- width?: "auto" | "screen" | "full" | "fit" | null | undefined;
27
- padding?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
28
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
29
- wrap?: "reverse" | "wrap" | "nowrap" | null | undefined;
30
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
31
- type BoxProps = ViewProps & VariantProps<typeof boxVariants> & {
32
- ref?: React.RefObject<React.ComponentRef<typeof View>>;
33
- };
34
- type VStackProps = ViewProps & VariantProps<typeof vStackVariants> & {
35
- ref?: React.RefObject<React.ComponentRef<typeof View>>;
36
- };
37
- type HStackProps = ViewProps & VariantProps<typeof hStackVariants> & {
38
- ref?: React.RefObject<React.ComponentRef<typeof View>>;
39
- };
40
- declare function Box({ className, spacing, align, justify, width, padding, gap, wrap, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
41
- declare function HStack({ className, spacing, align, justify, width, padding, gap, wrap, ...props }: HStackProps): import("react/jsx-runtime").JSX.Element;
42
- declare function VStack({ className, spacing, align, justify, width, padding, gap, ...props }: VStackProps): import("react/jsx-runtime").JSX.Element;
43
- export { Box, type BoxProps, HStack, type HStackProps, VStack, type VStackProps, };
package/dist/ui/stack.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import{cva as K}from"class-variance-authority";import{View as L}from"react-native";import{jsx as O}from"react/jsx-runtime";var M="flex",P=K([M,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),Q=K([M,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),R=K([M,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function X({className:q,spacing:z,align:A,justify:C,width:D,padding:E,gap:F,wrap:G,...I}){return O(L,{className:J(R({spacing:z,align:A,justify:C,width:D,padding:E,gap:F,wrap:G}),q),...I})}function Y({className:q,spacing:z,align:A,justify:C,width:D,padding:E,gap:F,wrap:G,...I}){return O(L,{className:J(Q({spacing:z,align:A,justify:C,width:D,padding:E,gap:F,wrap:G}),q),...I})}function Z({className:q,spacing:z,align:A,justify:C,width:D,padding:E,gap:F,...G}){return O(L,{className:J(P({spacing:z,align:A,justify:C,width:D,padding:E,gap:F}),q),...G})}export{Z as VStack,Y as HStack,X as Box};
@@ -1,10 +0,0 @@
1
- import type { SharedStepperProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const dotVariants: (props?: ({
4
- state?: "active" | "inactive" | null | undefined;
5
- size?: "sm" | "md" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface StepperProps extends SharedStepperProps, VariantProps<typeof dotVariants> {
8
- }
9
- export declare function Stepper({ current, total, size, className }: StepperProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import{cva as L}from"class-variance-authority";import{View as M}from"react-native";import{jsx as P}from"react/jsx-runtime";var O="flex",U=L([O,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),W=L([O,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),X=L([O,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function H({className:A,spacing:C,align:D,justify:E,width:F,padding:G,gap:q,wrap:I,...J}){return P(M,{className:K(X({spacing:C,align:D,justify:E,width:F,padding:G,gap:q,wrap:I}),A),...J})}function Q({className:A,spacing:C,align:D,justify:E,width:F,padding:G,gap:q,wrap:I,...J}){return P(M,{className:K(W({spacing:C,align:D,justify:E,width:F,padding:G,gap:q,wrap:I}),A),...J})}function b({className:A,spacing:C,align:D,justify:E,width:F,padding:G,gap:q,...I}){return P(M,{className:K(U({spacing:C,align:D,justify:E,width:F,padding:G,gap:q}),A),...I})}import{cn as R}from"@contractspec/lib.ui-kit-core/utils";import{cva as Y}from"class-variance-authority";import{View as Z}from"react-native";import{jsx as T}from"react/jsx-runtime";var _=Y("h-2 w-2 rounded-full",{variants:{state:{active:"bg-primary",inactive:"bg-muted-foreground/20"},size:{sm:"",md:"h-2.5 w-2.5"}},defaultVariants:{state:"inactive",size:"md"}});function V({current:A,total:C,size:D,className:E}){let F=Array.from({length:Math.max(0,C)});return T(Q,{className:R("items-center gap-2",E),children:F.map((G,q)=>T(Z,{className:R(_({state:q+1===A?"active":"inactive",size:D}))},q))})}export{V as Stepper};
@@ -1,7 +0,0 @@
1
- import * as SwitchPrimitives from '@rn-primitives/switch';
2
- import * as React from 'react';
3
- declare function SwitchNative({ className, ...props }: SwitchPrimitives.RootProps & {
4
- ref?: React.RefObject<SwitchPrimitives.RootRef>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare const Switch: typeof SwitchNative;
7
- export { Switch };
package/dist/ui/switch.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{useColorScheme as K}from"nativewind";var L="light";function M(){let{colorScheme:E,setColorScheme:C,toggleColorScheme:D}=K();return{colorScheme:E??L,isDarkColorScheme:E==="dark",setColorScheme:C,toggleColorScheme:D}}import{cn as k}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@rn-primitives/switch";import{Platform as Q}from"react-native";import U,{interpolateColor as Y,useAnimatedStyle as q,useDerivedValue as Z,withTiming as _}from"react-native-reanimated";import{jsx as g}from"react/jsx-runtime";function $({className:E,...C}){return g(f.Root,{className:k("peer h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed",C.checked?"bg-primary":"bg-input",C.disabled&&"opacity-50",E),...C,children:g(f.Thumb,{className:k("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-foreground/5 shadow-md ring-0 transition-transform",C.checked?"translate-x-5":"translate-x-0")})})}var z={light:{primary:"rgb(24, 24, 27)",input:"rgb(228, 228, 231)"},dark:{primary:"rgb(250, 250, 250)",input:"rgb(39, 39, 42)"}};function P({className:E,...C}){let{colorScheme:D}=M(),F=D==="dark"?"dark":"light",H=Z(()=>C.checked?18:0),I=q(()=>{return{backgroundColor:Y(H.value,[0,18],[z[F].input,z[F].primary])}}),J=q(()=>({transform:[{translateX:_(H.value,{duration:200})}]}));return g(U.View,{style:I,className:k("h-8 w-[46px] rounded-full",C.disabled&&"opacity-50"),children:g(f.Root,{className:k("h-8 w-[46px] shrink-0 flex-row items-center rounded-full border-2 border-transparent",C.checked?"bg-primary":"bg-input",E),...C,children:g(U.View,{style:J,children:g(f.Thumb,{className:"h-7 w-7 rounded-full bg-background shadow-foreground/25 shadow-md ring-0"})})})})}var O=Q.select({web:$,default:P});export{O as Switch};
@@ -1,24 +0,0 @@
1
- import * as TablePrimitive from '@rn-primitives/table';
2
- import * as React from 'react';
3
- declare function Table({ className, ...props }: TablePrimitive.RootProps & {
4
- ref?: React.RefObject<TablePrimitive.RootRef>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare function TableHeader({ className, ...props }: TablePrimitive.HeaderProps & {
7
- ref?: React.RefObject<TablePrimitive.HeaderRef>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare function TableBody({ className, style, ...props }: TablePrimitive.BodyProps & {
10
- ref?: React.RefObject<TablePrimitive.BodyRef>;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function TableFooter({ className, ...props }: TablePrimitive.FooterProps & {
13
- ref?: React.RefObject<TablePrimitive.FooterRef>;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function TableRow({ className, ...props }: TablePrimitive.RowProps & {
16
- ref?: React.RefObject<TablePrimitive.RowRef>;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function TableHead({ className, ...props }: TablePrimitive.HeadProps & {
19
- ref?: React.RefObject<TablePrimitive.HeadRef>;
20
- }): import("react/jsx-runtime").JSX.Element;
21
- declare function TableCell({ className, ...props }: TablePrimitive.CellProps & {
22
- ref?: React.RefObject<TablePrimitive.CellRef>;
23
- }): import("react/jsx-runtime").JSX.Element;
24
- export { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
package/dist/ui/table.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import*as I from"@rn-primitives/slot";import*as D from"react";import{Text as L}from"react-native";import{jsx as M}from"react/jsx-runtime";var G=D.createContext(void 0);function S({className:f,asChild:g=!1,...E}){let J=D.useContext(G);return M(g?I.Text:L,{className:K("web:select-text text-base text-foreground",J,f),...E})}import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@rn-primitives/table";import{jsx as z}from"react/jsx-runtime";function Y({className:f,...g}){return z(q.Root,{className:A("w-full caption-bottom text-sm",f),...g})}function Z({className:f,...g}){return z(q.Header,{className:A("border-border [&_tr]:border-b",f),...g})}function _({className:f,style:g,...E}){return z(q.Body,{className:A("flex-1 border-border [&_tr:last-child]:border-0",f),style:[{minHeight:2},g],...E})}function $({className:f,...g}){return z(q.Footer,{className:A("bg-muted/50 font-medium [&>tr]:last:border-b-0",f),...g})}function w({className:f,...g}){return z(q.Row,{className:A("flex-row border-border border-b web:transition-colors web:hover:bg-muted/50 web:data-[state=selected]:bg-muted",f),...g})}function B({className:f,...g}){return z(G.Provider,{value:"text-muted-foreground",children:z(q.Head,{className:A("h-12 justify-center px-4 text-left font-medium [&:has([role=checkbox])]:pr-0",f),...g})})}function F({className:f,...g}){return z(q.Cell,{className:A("p-4 align-middle [&:has([role=checkbox])]:pr-0",f),...g})}export{w as TableRow,Z as TableHeader,B as TableHead,$ as TableFooter,F as TableCell,_ as TableBody,Y as Table};
package/dist/ui/tabs.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import * as TabsPrimitive from '@rn-primitives/tabs';
2
- declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
4
- declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
- export { Tabs, TabsContent, TabsList, TabsTrigger };
package/dist/ui/tabs.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as w}from"@contractspec/lib.ui-kit-core/utils";import*as d from"@rn-primitives/tabs";import{Platform as z}from"react-native";import{jsx as y}from"react/jsx-runtime";function E({className:q,...h}){return y(d.Root,{className:w("flex flex-col gap-2",q),...h})}function F({className:q,...h}){return y(d.List,{className:w("flex h-9 flex-row items-center justify-center rounded-lg bg-muted p-[3px]",z.select({web:"inline-flex w-fit",native:"mr-auto"}),q),...h})}function G({className:q,...h}){let{value:A}=d.useRootContext();return y(d.Trigger,{className:w("flex h-[calc(100%-1px)] flex-row items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 shadow-black/5 shadow-none",z.select({web:"inline-flex cursor-default whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0"}),h.disabled&&"opacity-50",h.value===A&&"bg-background dark:border-foreground/10 dark:bg-input/30",q),...h})}function H({className:q,...h}){return y(d.Content,{className:w(z.select({web:"flex-1 outline-none"}),q),...h})}export{G as TabsTrigger,F as TabsList,H as TabsContent,E as Tabs};
package/dist/ui/text.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Text as RNText } from 'react-native';
3
- declare const TextClassContext: React.Context<string | undefined>;
4
- export type TextProps = React.ComponentProps<typeof RNText> & {
5
- ref?: React.RefObject<React.ComponentRef<typeof RNText>>;
6
- asChild?: boolean;
7
- };
8
- declare function Text({ className, asChild, ...props }: React.ComponentProps<typeof RNText> & {
9
- ref?: React.RefObject<React.ComponentRef<typeof RNText>>;
10
- asChild?: boolean;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- export { Text, TextClassContext };
package/dist/ui/text.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@rn-primitives/slot";import*as f from"react";import{Text as B}from"react-native";import{jsx as E}from"react/jsx-runtime";var D=f.createContext(void 0);function I({className:q,asChild:w=!1,...y}){let z=f.useContext(D);return E(w?g.Text:B,{className:A("web:select-text text-base text-foreground",z,q),...y})}export{D as TextClassContext,I as Text};
@@ -1,8 +0,0 @@
1
- import type { SharedTextareaProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- import * as React from 'react';
3
- import { TextInput, type TextInputProps } from 'react-native';
4
- export type TextareaProps = SharedTextareaProps & TextInputProps & {
5
- ref?: React.RefObject<TextInput>;
6
- };
7
- declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<TextInput>>;
8
- export { Textarea };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import*as w from"react";import{TextInput as B}from"react-native";import{jsx as E}from"react/jsx-runtime";var D=w.forwardRef(({className:y,placeholderClassName:z,...g},A)=>{return E(B,{ref:A,className:q("web:flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 native:text-lg text-base text-foreground native:leading-tight web:ring-offset-background file:border-0 file:bg-transparent file:font-medium placeholder:text-muted-foreground web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 lg:text-sm",g.editable===!1&&"web:cursor-not-allowed opacity-50",y),placeholderClassName:q("text-muted-foreground",z),multiline:!0,...g})});D.displayName="Textarea";export{D as Textarea};
@@ -1,4 +0,0 @@
1
- import type { SharedTimePickerProps } from '@contractspec/lib.ui-kit-core/interfaces';
2
- export interface TimePickerProps extends SharedTimePickerProps {
3
- }
4
- export declare function TimePicker({ value, onChange, disabled, placeholder, is24Hour, className, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as Z}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as E from"react";import{Text as _}from"react-native";import{jsx as M}from"react/jsx-runtime";var $=E.createContext(void 0);function O({className:q,asChild:z=!1,...A}){let F=E.useContext($);return M(z?L.Text:_,{className:Z("web:select-text text-base text-foreground",F,q),...A})}import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import R from"@react-native-community/datetimepicker";import{useMemo as V,useState as y}from"react";import{Platform as Q,Pressable as f,View as g}from"react-native";import{jsx as I,jsxs as k}from"react/jsx-runtime";function S(q,z){if(!q)return"";try{return q.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!z})}catch{return""}}function p({value:q,onChange:z,disabled:A,placeholder:F="Select time",is24Hour:B=!0,className:U}){let[W,J]=y(!1),X=V(()=>({is24Hour:B,timeZoneName:void 0}),[B]),Y=(w,K)=>{if(Q.OS!=="ios")J(!1);if(K)z(K)};return k(g,{className:G("w-full",U),children:[I(f,{disabled:A,onPress:()=>J(!0),className:G("h-12 flex-row items-center rounded-md border border-input bg-background px-3",A&&"opacity-50"),children:I(O,{className:G("text-base text-foreground",!q&&"opacity-50"),children:q?S(q,B):F})}),W&&I(R,{value:q??new Date,mode:"time",display:Q.OS==="ios"?"spinner":"default",onChange:Y,...X})]})}export{p as TimePicker};
@@ -1,40 +0,0 @@
1
- import * as ToastPrimitive from '@rn-primitives/toast';
2
- import * as React from 'react';
3
- import { View } from 'react-native';
4
- declare function Toast({ className, ...props }: ToastPrimitive.RootProps & {
5
- ref?: React.RefObject<ToastPrimitive.RootRef>;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- declare function ToastTitle({ className, ...props }: ToastPrimitive.TitleProps & {
8
- ref?: React.RefObject<ToastPrimitive.TitleRef>;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare function ToastDescription({ className, ...props }: ToastPrimitive.DescriptionProps & {
11
- ref?: React.RefObject<ToastPrimitive.DescriptionRef>;
12
- }): import("react/jsx-runtime").JSX.Element;
13
- declare function ToastAction({ className, children, ...props }: ToastPrimitive.ActionProps & {
14
- ref?: React.RefObject<ToastPrimitive.ActionRef>;
15
- children?: React.ReactNode;
16
- }): import("react/jsx-runtime").JSX.Element;
17
- declare function ToastClose({ className, children, ...props }: ToastPrimitive.CloseProps & {
18
- ref?: React.RefObject<ToastPrimitive.CloseRef>;
19
- children?: React.ReactNode;
20
- }): import("react/jsx-runtime").JSX.Element;
21
- declare function ToastViewport({ className, children, ...props }: React.ComponentProps<typeof View>): import("react/jsx-runtime").JSX.Element;
22
- type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
23
- type ToastActionElement = React.ReactElement<typeof ToastAction>;
24
- declare function ToastText({ title, description, }: {
25
- title?: React.ReactNode;
26
- description?: React.ReactNode;
27
- }): import("react/jsx-runtime").JSX.Element;
28
- declare function ToastCard({ title, description, action, open, onOpenChange, }: {
29
- title?: React.ReactNode;
30
- description?: React.ReactNode;
31
- action?: React.ReactNode;
32
- open: boolean;
33
- onOpenChange: (open: boolean) => void;
34
- }): import("react/jsx-runtime").JSX.Element | null;
35
- declare function toastCard(args: Parameters<typeof ToastCard>[0]): {
36
- dismiss: () => void;
37
- element: React.ReactElement;
38
- id: string;
39
- };
40
- export { Toast, ToastAction, type ToastActionElement, ToastCard, ToastClose, ToastDescription, type ToastProps, ToastText, ToastTitle, ToastViewport, toastCard, };
package/dist/ui/toast.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as P}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as H from"react";import{Text as Q}from"react-native";import{jsx as S}from"react/jsx-runtime";var G=H.createContext(void 0);function J({className:f,asChild:q=!1,...z}){let E=H.useContext(G);return S(q?L.Text:Q,{className:P("web:select-text text-base text-foreground",E,f),...z})}import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import*as B from"@rn-primitives/toast";import{X as U}from"lucide-react-native";import{View as K}from"react-native";import{jsx as y,jsxs as M}from"react/jsx-runtime";function W({className:f,...q}){return y(B.Root,{className:F("rounded-lg border border-border bg-popover p-4 shadow-foreground/5 shadow-md",f),...q})}function O({className:f,...q}){return y(G.Provider,{value:"font-medium text-base text-popover-foreground",children:y(B.Title,{className:F(f),...q})})}function V({className:f,...q}){return y(G.Provider,{value:"text-sm text-muted-foreground",children:y(B.Description,{className:F(f),...q})})}function v({className:f,children:q,...z}){return y(G.Provider,{value:"font-medium text-sm text-foreground",children:y(B.Action,{className:F("mt-3 inline-flex min-h-9 items-center justify-center rounded-md border border-input px-3",f),...z,children:q})})}function Y({className:f,children:q,...z}){return y(B.Close,{className:F("absolute top-2 right-2 inline-flex h-8 w-8 items-center justify-center rounded-md",f),...z,children:q??y(U,{size:16})})}function u({className:f,children:q,...z}){return y(K,{className:F("flex flex-col gap-2",f),...z,children:q})}function Z({title:f,description:q}){return M(K,{className:"flex-1 gap-1",children:[f?y(J,{className:"font-medium text-base",children:f}):null,q?y(J,{className:"text-muted-foreground text-sm",children:q}):null]})}function _({title:f,description:q,action:z,open:E,onOpenChange:I}){if(!E)return null;return y(W,{open:E,onOpenChange:I,children:M(K,{className:"flex-row items-start gap-3",children:[y(Z,{description:q,title:f}),z,y(Y,{onPress:()=>I(!1)})]})})}function g(f){let q=Math.random().toString(36).slice(2),z=f.open;return{id:q,dismiss:()=>{z=!1,f.onOpenChange(!1)},element:y(_,{...f,open:z,onOpenChange:(E)=>{z=E,f.onOpenChange(E)}})}}export{g as toastCard,u as ToastViewport,O as ToastTitle,Z as ToastText,V as ToastDescription,Y as ToastClose,_ as ToastCard,v as ToastAction,W as Toast};
@@ -1,15 +0,0 @@
1
- import * as ToggleGroupPrimitive from '@rn-primitives/toggle-group';
2
- import type { VariantProps } from 'class-variance-authority';
3
- import type { LucideIcon } from 'lucide-react-native';
4
- import * as React from 'react';
5
- import { toggleVariants } from './toggle';
6
- declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & {
7
- ref?: React.RefObject<ToggleGroupPrimitive.RootRef>;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & {
10
- ref?: React.RefObject<ToggleGroupPrimitive.ItemRef>;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function ToggleGroupIcon({ className, icon: Icon, ...props }: React.ComponentPropsWithoutRef<LucideIcon> & {
13
- icon: LucideIcon;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as _}from"@contractspec/lib.ui-kit-core/utils";import*as U from"@rn-primitives/slot";import*as J from"react";import{Text as $}from"react-native";import{jsx as y}from"react/jsx-runtime";var E=J.createContext(void 0);function d({className:f,asChild:A=!1,...w}){let q=J.useContext(E);return y(A?U.Text:$,{className:_("web:select-text text-base text-foreground",q,f),...w})}import{cn as L}from"@contractspec/lib.ui-kit-core/utils";import*as W from"@rn-primitives/toggle";import{cva as X}from"class-variance-authority";import*as Y from"react";import{jsx as M}from"react/jsx-runtime";var O=X("web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 active:bg-muted",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent web:hover:bg-accent active:bg-accent"},size:{default:"h-10 native:h-12 native:px-[12] px-3",sm:"h-9 native:h-10 native:px-[9] px-2.5",lg:"h-11 native:h-14 native:px-6 px-5"}},defaultVariants:{variant:"default",size:"default"}}),P=X("font-medium native:text-base text-foreground text-sm",{variants:{variant:{default:"",outline:"web:group-hover:text-accent-foreground web:group-active:text-accent-foreground"},size:{default:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});function j({className:f,variant:A,size:w,...q}){return M(E.Provider,{value:L(P({variant:A,size:w}),q.pressed?"text-accent-foreground":"web:group-hover:text-muted-foreground",f),children:M(W.Root,{className:L(O({variant:A,size:w}),q.disabled&&"web:pointer-events-none opacity-50",q.pressed&&"bg-accent",f),...q})})}function N({className:f,icon:A,...w}){let q=Y.useContext(E);return M(A,{className:L(q,f),...w})}import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import*as B from"@rn-primitives/toggle-group";import*as H from"react";import{jsx as F}from"react/jsx-runtime";var Z=H.createContext(null);function g({className:f,variant:A,size:w,children:q,...D}){return F(B.Root,{className:K("flex flex-row items-center justify-center gap-1",f),...D,children:F(Z.Provider,{value:{variant:A,size:w},children:q})})}function R(){let f=H.useContext(Z);if(f===null)throw Error("ToggleGroup compound components cannot be rendered outside the ToggleGroup component");return f}function x({className:f,children:A,variant:w,size:q,...D}){let Q=R(),{value:S}=B.useRootContext();return F(E.Provider,{value:K(P({variant:w,size:q}),B.utils.getIsSelected(S,D.value)?"text-accent-foreground":"web:group-hover:text-muted-foreground"),children:F(B.Item,{className:K(O({variant:Q.variant||w,size:Q.size||q}),D.disabled&&"web:pointer-events-none opacity-50",B.utils.getIsSelected(S,D.value)&&"bg-accent",f),...D,children:A})})}function l({className:f,icon:A,...w}){let q=H.useContext(E);return F(A,{className:K(q,f),...w})}export{x as ToggleGroupItem,l as ToggleGroupIcon,g as ToggleGroup};