@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,19 +0,0 @@
1
- import * as TogglePrimitive from '@rn-primitives/toggle';
2
- import { type VariantProps } from 'class-variance-authority';
3
- import type { LucideIcon } from 'lucide-react-native';
4
- import * as React from 'react';
5
- declare const toggleVariants: (props?: ({
6
- variant?: "default" | "outline" | null | undefined;
7
- size?: "default" | "sm" | "lg" | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- declare const toggleTextVariants: (props?: ({
10
- variant?: "default" | "outline" | null | undefined;
11
- size?: "default" | "sm" | "lg" | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- declare function Toggle({ className, variant, size, ...props }: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & VariantProps<typeof toggleVariants> & {
14
- ref?: React.RefObject<TogglePrimitive.RootRef>;
15
- }): import("react/jsx-runtime").JSX.Element;
16
- declare function ToggleIcon({ className, icon: Icon, ...props }: React.ComponentPropsWithoutRef<LucideIcon> & {
17
- icon: LucideIcon;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
package/dist/ui/toggle.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as L}from"@contractspec/lib.ui-kit-core/utils";import*as G from"@rn-primitives/slot";import*as B from"react";import{Text as M}from"react-native";import{jsx as O}from"react/jsx-runtime";var D=B.createContext(void 0);function X({className:q,asChild:w=!1,...A}){let f=B.useContext(D);return O(w?G.Text:M,{className:L("web:select-text text-base text-foreground",f,q),...A})}import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as H from"@rn-primitives/toggle";import{cva as J}from"class-variance-authority";import*as K from"react";import{jsx as F}from"react/jsx-runtime";var P=J("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"}}),Q=J("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 R({className:q,variant:w,size:A,...f}){return F(D.Provider,{value:E(Q({variant:w,size:A}),f.pressed?"text-accent-foreground":"web:group-hover:text-muted-foreground",q),children:F(H.Root,{className:E(P({variant:w,size:A}),f.disabled&&"web:pointer-events-none opacity-50",f.pressed&&"bg-accent",q),...f})})}function b({className:q,icon:w,...A}){let f=K.useContext(D);return F(w,{className:E(f,q),...A})}export{P as toggleVariants,Q as toggleTextVariants,b as ToggleIcon,R as Toggle};
@@ -1,25 +0,0 @@
1
- import * as ToolbarPrimitive from '@rn-primitives/toolbar';
2
- import * as React from 'react';
3
- declare function Toolbar({ className, ...props }: ToolbarPrimitive.RootProps & {
4
- ref?: React.RefObject<ToolbarPrimitive.RootRef>;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare function ToolbarButton({ className, children, ...props }: ToolbarPrimitive.ButtonProps & {
7
- ref?: React.RefObject<ToolbarPrimitive.ButtonRef>;
8
- children?: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare function ToolbarLink({ className, children, ...props }: ToolbarPrimitive.LinkProps & {
11
- ref?: React.RefObject<ToolbarPrimitive.LinkRef>;
12
- children?: React.ReactNode;
13
- }): import("react/jsx-runtime").JSX.Element;
14
- declare function ToolbarToggleGroup({ className, children, ...props }: ToolbarPrimitive.ToggleGroupProps & {
15
- ref?: React.RefObject<ToolbarPrimitive.ToggleGroupRef>;
16
- children?: React.ReactNode;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function ToolbarToggleItem({ className, children, ...props }: ToolbarPrimitive.ToggleItemProps & {
19
- ref?: React.RefObject<ToolbarPrimitive.ToggleItemRef>;
20
- children?: React.ReactNode;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- declare function ToolbarSeparator({ className, ...props }: ToolbarPrimitive.SeparatorProps & {
23
- ref?: React.RefObject<ToolbarPrimitive.SeparatorRef>;
24
- }): import("react/jsx-runtime").JSX.Element;
25
- export { Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator, ToolbarToggleGroup, ToolbarToggleItem, };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import*as K from"@rn-primitives/slot";import*as F from"react";import{Text as P}from"react-native";import{jsx as Q}from"react/jsx-runtime";var E=F.createContext(void 0);function W({className:q,asChild:w=!1,...f}){let D=F.useContext(E);return Q(w?K.Text:P,{className:O("web:select-text text-base text-foreground",D,q),...f})}import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as y from"@rn-primitives/toolbar";import*as H from"react";import{jsx as z}from"react/jsx-runtime";var M=H.createContext(null);function $({className:q,...w}){return z(y.Root,{className:A("flex flex-row items-center gap-1",q),...w})}function B({className:q,children:w,...f}){return z(E.Provider,{value:"font-medium text-sm text-foreground",children:z(y.Button,{className:A("min-h-9 items-center justify-center rounded-md px-3 active:bg-accent",f.disabled&&"opacity-50",q),...f,children:w})})}function G({className:q,children:w,...f}){return z(E.Provider,{value:"font-medium text-sm text-primary",children:z(y.Link,{className:A("min-h-9 items-center justify-center rounded-md px-3",q),...f,children:w})})}function I({className:q,children:w,...f}){return z(M.Provider,{value:f,children:z(y.ToggleGroup,{className:A("flex flex-row items-center gap-1",q),...f,children:w})})}function L({className:q,children:w,...f}){let D=H.useContext(M),J=D?.type==="single"?D.value===f.value:Array.isArray(D?.value)&&D.value.includes(f.value);return z(E.Provider,{value:A("font-medium text-sm",J?"text-accent-foreground":"text-foreground"),children:z(y.ToggleItem,{className:A("min-h-9 items-center justify-center rounded-md px-3 active:bg-accent",J&&"bg-accent",f.disabled&&"opacity-50",q),...f,children:w})})}function R({className:q,...w}){return z(y.Separator,{className:A("mx-1 h-5 w-px bg-border",q),...w})}export{L as ToolbarToggleItem,I as ToolbarToggleGroup,R as ToolbarSeparator,G as ToolbarLink,B as ToolbarButton,$ as Toolbar};
@@ -1,27 +0,0 @@
1
- import * as TooltipPrimitive from '@rn-primitives/tooltip';
2
- import * as React from 'react';
3
- declare const Tooltip: {
4
- ({ asChild, delayDuration: _delayDuration, skipDelayDuration: _skipDelayDuration, disableHoverableContent: _disableHoverableContent, onOpenChange: onOpenChangeProp, ref, ...viewProps }: import("react-native").ViewProps & {
5
- asChild?: boolean;
6
- } & {
7
- onOpenChange?: (open: boolean) => void;
8
- delayDuration?: number;
9
- skipDelayDuration?: number;
10
- disableHoverableContent?: boolean;
11
- } & React.RefAttributes<import("react-native").View>): React.JSX.Element;
12
- displayName: string;
13
- };
14
- declare const TooltipTrigger: {
15
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<import("react-native").PressableProps & React.RefAttributes<import("react-native").View>, "ref"> & {
16
- asChild?: boolean;
17
- } & {
18
- onKeyDown?: (ev: React.KeyboardEvent) => void;
19
- onKeyUp?: (ev: React.KeyboardEvent) => void;
20
- } & React.RefAttributes<import("@rn-primitives/tooltip").TriggerRef>): React.JSX.Element;
21
- displayName: string;
22
- };
23
- declare function TooltipContent({ className, sideOffset, portalHost, ...props }: TooltipPrimitive.ContentProps & {
24
- ref?: React.RefObject<TooltipPrimitive.ContentRef>;
25
- portalHost?: string;
26
- }): import("react/jsx-runtime").JSX.Element;
27
- export { Tooltip, TooltipContent, TooltipTrigger };
@@ -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/tooltip";import{Platform as K,StyleSheet as W}from"react-native";import X,{FadeIn as Y,FadeOut as Z}from"react-native-reanimated";import{jsx as w}from"react/jsx-runtime";var H=q.Root,S=q.Trigger;function h({className:B,sideOffset:D=4,portalHost:E,...G}){return w(q.Portal,{hostName:E,children:w(q.Overlay,{style:K.OS!=="web"?W.absoluteFill:void 0,children:w(X.View,{entering:K.select({web:void 0,default:Y}),exiting:K.select({web:void 0,default:Z}),children:w(J.Provider,{value:"text-sm native:text-base text-popover-foreground",children:w(q.Content,{sideOffset:D,className:V("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 web:fade-in-0 web:zoom-in-95 z-50 web:animate-in overflow-hidden rounded-md border border-border bg-popover px-3 py-1.5 shadow-foreground/5 shadow-md",B),...G})})})})})}export{S as TooltipTrigger,h as TooltipContent,H as Tooltip};
@@ -1,16 +0,0 @@
1
- import { type TextProps } from './text';
2
- export type TypographyProps = TextProps & {
3
- asChild?: boolean;
4
- };
5
- declare function H1({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
6
- declare function H2({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
7
- declare function H3({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
8
- declare function H4({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
9
- declare function P({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
10
- declare function BlockQuote({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
11
- declare function Code({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
12
- declare function Lead({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
13
- declare function Large({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
14
- declare function Small({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
15
- declare function Muted({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
16
- export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };
@@ -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 G from"react";import{Text as O}from"react-native";import{jsx as V}from"react/jsx-runtime";var U=G.createContext(void 0);function A({className:q,asChild:w=!1,...y}){let z=G.useContext(U);return V(w?I.Text:O,{className:K("web:select-text text-base text-foreground",z,q),...y})}import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as D from"@rn-primitives/slot";import{Platform as J}from"react-native";import{jsx as F}from"react/jsx-runtime";function M({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"1",className:E("web:select-text web:scroll-m-20 font-extrabold text-4xl text-foreground tracking-tight lg:text-5xl",q),...y})}function Q({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"2",className:E("web:select-text web:scroll-m-20 border-border border-b pb-2 font-semibold text-3xl text-foreground tracking-tight first:mt-0",q),...y})}function R({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"3",className:E("web:select-text web:scroll-m-20 font-semibold text-2xl text-foreground tracking-tight",q),...y})}function S({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"4",className:E("web:select-text web:scroll-m-20 font-semibold text-foreground text-xl tracking-tight",q),...y})}function b({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-base text-foreground",q),...y})}function f({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:J.OS==="web"?"blockquote":void 0,className:E("mt-6 native:mt-4 web:select-text border-border border-l-2 native:pl-3 pl-6 text-base text-foreground italic",q),...y})}function L({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:J.OS==="web"?"code":void 0,className:E("relative web:select-text rounded-md bg-muted px-[0.3rem] py-[0.2rem] font-semibold text-foreground text-sm",q),...y})}function k({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-muted-foreground text-xl",q),...y})}function P({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text font-semibold text-foreground text-xl",q),...y})}function v({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text font-medium text-foreground text-sm leading-none",q),...y})}function H({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-muted-foreground text-sm",q),...y})}export{v as Small,b as P,H as Muted,k as Lead,P as Large,S as H4,R as H3,Q as H2,M as H1,L as Code,f as BlockQuote};
@@ -1,6 +0,0 @@
1
- export declare function useColorScheme(): {
2
- colorScheme: import("react-native").ColorSchemeName;
3
- isDarkColorScheme: boolean;
4
- setColorScheme: (scheme: import("react-native").ColorSchemeName) => void;
5
- toggleColorScheme: () => void;
6
- };
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{useColorScheme as c}from"nativewind";var l="light";function t(){let{colorScheme:e,setColorScheme:o,toggleColorScheme:r}=c();return{colorScheme:e??l,isDarkColorScheme:e==="dark",setColorScheme:o,toggleColorScheme:r}}export{t as useColorScheme};
@@ -1,6 +0,0 @@
1
- import type { SharedUseListStateOptions, SharedUseListStateReturn } from '@contractspec/lib.ui-kit-core/interfaces';
2
- export interface UseListStateOptions extends SharedUseListStateOptions {
3
- }
4
- export interface UseListStateReturn extends SharedUseListStateReturn {
5
- }
6
- export declare const useListState: ({ initialSearch, initialFilters, initialPage, initialItemsPerPage, }?: UseListStateOptions) => UseListStateReturn;
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{useCallback as z,useMemo as A,useState as D}from"react";var q=({initialSearch:E="",initialFilters:G={},initialPage:H=1,initialItemsPerPage:J=25}={})=>{let[K,V]=D(E),[L,N]=D(G),[O,x]=D(H),[T,W]=D(J),Y=z((j,B)=>{N((U)=>({...U,[j]:B})),x(1)},[]),Z=z(()=>{N({}),x(1)},[]),_=z((j)=>{V(j),x(1)},[]),$=z((j)=>{W(j),x(1)},[]),M=z(()=>{V(E),N(G),x(H),W(J)},[E,G,H,J]),R=A(()=>{let j={search:K,page:O,limit:T},B={};return Object.entries(L).forEach(([U,X])=>{if(X)B[U]=X}),{...j,...B}},[K,L,O,T]);return{searchQuery:K,setSearchQuery:_,filters:L,setFilter:Y,clearFilters:Z,currentPage:O,itemsPerPage:T,setCurrentPage:x,setItemsPerPage:$,queryParams:R,resetAll:M}};export{q as useListState};
@@ -1,7 +0,0 @@
1
- export declare function UseCaseCard({ title, summary, ctaHref, ctaLabel, onCtaClick, }: {
2
- title: string;
3
- summary?: string;
4
- ctaHref?: string;
5
- ctaLabel?: string;
6
- onCtaClick?: () => void;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as _}from"@contractspec/lib.ui-kit-core/utils";import*as P from"@rn-primitives/slot";import*as D from"react";import{Text as $}from"react-native";import{jsx as R}from"react/jsx-runtime";var F=D.createContext(void 0);function G({className:U,asChild:m=!1,...L}){let H=D.useContext(F);return R(m?P.Text:$,{className:_("web:select-text text-base text-foreground",H,U),...L})}import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import{cva as W}from"class-variance-authority";import{Pressable as S}from"react-native";import{jsx as Q}from"react/jsx-runtime";var T=W("group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2",{variants:{variant:{default:"bg-primary web:hover:opacity-90 active:opacity-90",destructive:"bg-destructive web:hover:opacity-90 active:opacity-90",outline:"border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",secondary:"bg-secondary web:hover:opacity-80 active:opacity-80",ghost:"web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",link:"web:underline-offset-4 web:hover:underline web:focus:underline"},size:{default:"h-10 native:h-12 native:px-5 px-4 native:py-3 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 native:h-14 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),C=W("web:whitespace-nowrap font-medium native:text-base text-foreground text-sm web:transition-colors",{variants:{variant:{default:"text-primary-foreground",destructive:"text-destructive-foreground",outline:"group-active:text-accent-foreground",secondary:"text-secondary-foreground group-active:text-secondary-foreground",ghost:"group-active:text-accent-foreground",link:"text-primary group-active:underline"},size:{default:"",sm:"",lg:"native:text-lg",icon:""}},defaultVariants:{variant:"default",size:"default"}});function X({ref:U,className:m,variant:L,size:H,...f}){return Q(F.Provider,{value:C({variant:L,size:H,className:"web:pointer-events-none"}),children:Q(S,{className:z(f.disabled&&"web:pointer-events-none opacity-50",T({variant:L,size:H,className:m})),ref:U,role:"button",...f})})}import{cn as I}from"@contractspec/lib.ui-kit-core/utils";import{cva as J}from"class-variance-authority";import{View as K}from"react-native";import{jsx as O}from"react/jsx-runtime";var M="flex",b=J([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"}}),o=J([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"}}),N=J([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 c({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A,...E}){return O(K,{className:I(N({spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A}),U),...E})}function Y({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A,...E}){return O(K,{className:I(o({spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A}),U),...E})}function Z({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,...A}){return O(K,{className:I(b({spacing:m,align:L,justify:H,width:f,padding:k,gap:q}),U),...A})}import{Link as V}from"expo-router";import{jsx as B,jsxs as h}from"react/jsx-runtime";function HL({title:U,summary:m,ctaHref:L,ctaLabel:H="Learn more",onCtaClick:f}){return h(Z,{className:"rounded-lg border p-4",gap:"sm",children:[B(G,{className:"font-semibold text-lg",children:U}),m&&B(G,{className:"text-base text-muted-foreground",children:m}),L&&B(Y,{children:B(V,{href:L,children:B(X,{size:"sm",variant:"outline",onPress:f,children:H})})})]})}export{HL as UseCaseCard};
@@ -1,5 +0,0 @@
1
- export declare function UserStoryCard({ title, body, outcome, }: {
2
- title: string;
3
- body?: string;
4
- outcome?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as X}from"@contractspec/lib.ui-kit-core/utils";import*as P from"@rn-primitives/slot";import*as E from"react";import{Text as Y}from"react-native";import{jsx as _}from"react/jsx-runtime";var Z=E.createContext(void 0);function D({className:T,asChild:m=!1,...O}){let U=E.useContext(Z);return _(m?P.Text:Y,{className:X("web:select-text text-base text-foreground",U,T),...O})}import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as I}from"class-variance-authority";import{View as J}from"react-native";import{jsx as L}from"react/jsx-runtime";var K="flex",$=I([K,"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"}}),B=I([K,"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"}}),H=I([K,"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 C({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A,...F}){return L(J,{className:G(H({spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A}),T),...F})}function u({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A,...F}){return L(J,{className:G(B({spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A}),T),...F})}function Q({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,...A}){return L(J,{className:G($({spacing:m,align:O,justify:U,width:f,padding:q,gap:z}),T),...A})}import{jsx as M,jsxs as W}from"react/jsx-runtime";function d({title:T,body:m,outcome:O}){return W(Q,{className:"rounded-lg border p-4",gap:"sm",children:[M(D,{className:"font-semibold text-lg",children:T}),m&&M(D,{className:"text-base text-muted-foreground",children:m}),O&&W(D,{className:"text-base",children:[M(D,{className:"font-medium",children:"Outcome:"})," ",O]})]})}export{d as UserStoryCard};
@@ -1,2 +0,0 @@
1
- export { UseCaseCard } from './UseCaseCard';
2
- export { UserStoryCard } from './UserStoryCard';
@@ -1,2 +0,0 @@
1
- // @bun
2
- export{s as UserStoryCard,o as UseCaseCard};
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
package/dist/ui/utils.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{clsx as e}from"clsx";import{twMerge as t}from"tailwind-merge";function s(...r){return t(e(r))}export{s as cn};
@@ -1,7 +0,0 @@
1
- import { type ContractVisualizationRenderModel } from '@contractspec/lib.presentation-runtime-core';
2
- import type { SharedVisualizationInteractionHandler, SharedVisualizationProps } from '@contractspec/lib.ui-kit-core/interfaces';
3
- export type VisualizationInteractionHandler = SharedVisualizationInteractionHandler;
4
- export interface VisualizationProps extends Omit<SharedVisualizationProps, 'model'> {
5
- model: ContractVisualizationRenderModel;
6
- }
7
- export declare function Visualization({ model, className, height, onDataPointPress, }: VisualizationProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cn as D}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as B from"react";import{Text as k}from"react-native";import{jsx as y}from"react/jsx-runtime";var T=B.createContext(void 0);function $({className:q,asChild:I=!1,...K}){let J=B.useContext(T);return y(I?L.Text:k,{className:D("web:select-text text-base text-foreground",J,q),...K})}import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import{cva as H}from"class-variance-authority";import{View as G}from"react-native";import{jsx as M}from"react/jsx-runtime";var E="flex",f=H([E,"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"}}),v=H([E,"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"}}),S=H([E,"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 Zq({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z,...X}){return M(G,{className:F(S({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z}),q),...X})}function _q({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z,...X}){return M(G,{className:F(v({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z}),q),...X})}function O({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,...Z}){return M(G,{className:F(f({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_}),q),...Z})}import{buildVisualizationEChartsOption as N,formatVisualizationValue as R}from"@contractspec/lib.presentation-runtime-core";import w,{SVGRenderer as P}from"@wuba/react-native-echarts/svgChart";import{BarChart as V,FunnelChart as C,HeatmapChart as j,LineChart as g,MapChart as u,PieChart as x,ScatterChart as h}from"echarts/charts";import{AriaComponent as p,GeoComponent as c,GridComponent as r,LegendComponent as d,TitleComponent as n,TooltipComponent as m,VisualMapComponent as i}from"echarts/components";import*as A from"echarts/core";import{useEffect as l,useMemo as o,useRef as s,useState as t}from"react";import{View as a}from"react-native";import{jsx as Q,jsxs as W}from"react/jsx-runtime";A.use([p,n,m,r,d,i,c,P,g,V,x,h,j,C,u]);function zq({model:q,className:I,height:K=280,onDataPointPress:J}){let U=s(null),[Y,_]=t(320),Z=o(()=>N(q),[q]);if(l(()=>{if(!b(q)||!U.current||Y<=0)return;if(q.kind==="geo"&&q.geo?.geoJson?.type==="inline")A.registerMap("contractspec-visualization-geo",q.geo.geoJson.data);let X=A.init(U.current,"light",{renderer:"svg",width:Y,height:K});if(X.setOption(Z),J)X.on("click",J);return()=>{if(J)X.off("click",J);X.dispose()}},[K,q,J,Z,Y]),q.kind==="metric")return Q(e,{className:I,model:q});if(!b(q))return Q(qq,{className:I,model:q});return W(O,{gap:"sm",className:I,children:[Q(a,{className:"w-full",onLayout:(X)=>_(Math.max(X.nativeEvent.layout.width,1)),style:{height:K},children:Q(w,{ref:U})}),Q(z,{model:q})]})}function e({className:q,model:I}){return W(O,{gap:"xs",className:q,children:[Q($,{className:"text-muted-foreground text-sm",children:I.metric?.label??I.title}),Q($,{className:"font-semibold text-3xl",children:R(I.metric?.value,I.metric?.format)}),I.metric?.comparisonValue!=null?W($,{className:"text-muted-foreground text-sm",children:["Comparison:"," ",R(I.metric.comparisonValue,I.metric.format)]}):null,Q(z,{model:I})]})}function qq({className:q,model:I}){return W(O,{gap:"sm",className:q,children:[Q($,{className:"text-muted-foreground text-sm",children:"This visualization falls back to a summary view on native."}),Q(z,{model:I})]})}function z({model:q}){if(!q.table.columns.length||!q.table.rows.length)return null;return W(O,{gap:"xs",children:[Q($,{className:"font-medium text-sm",children:"Data summary"}),q.table.rows.slice(0,6).map((I,K)=>Q($,{className:"text-muted-foreground text-sm",children:q.table.columns.map((J)=>`${J.label}: ${String(I[J.key]??"\u2014")}`).join(" \u2022 ")},`summary-${K}`))]})}function b(q){if(q.kind==="metric")return!1;if(q.kind==="geo"&&q.geo?.mode==="slippy-map")return!1;if(q.kind==="geo"&&q.geo?.geoJson?.type==="url")return!1;return!0}export{zq as Visualization};
@@ -1 +0,0 @@
1
- export { Visualization, type VisualizationInteractionHandler, type VisualizationProps, } from './Visualization';
@@ -1,2 +0,0 @@
1
- // @bun
2
- export{t as Visualization};