@contractspec/lib.ui-kit-web 1.61.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/browser/ui/alert-dialog.js +9 -4
  2. package/dist/browser/ui/atoms/Pagination/Pagination.js +9 -4
  3. package/dist/browser/ui/atoms/Pagination/index.js +9 -4
  4. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +9 -4
  5. package/dist/browser/ui/atoms/SearchInput/index.js +9 -4
  6. package/dist/browser/ui/button.js +9 -4
  7. package/dist/browser/ui/calendar.js +12 -7
  8. package/dist/browser/ui/carousel.js +20 -15
  9. package/dist/browser/ui/confirm-dialog.js +9 -4
  10. package/dist/browser/ui/context-menu.js +178 -85
  11. package/dist/browser/ui/cta.js +13 -9
  12. package/dist/browser/ui/date-picker.js +17 -12
  13. package/dist/browser/ui/date-range-picker.js +14 -9
  14. package/dist/browser/ui/datetime-picker.js +21 -16
  15. package/dist/browser/ui/empty-state.js +32 -10
  16. package/dist/browser/ui/input-group.js +9 -4
  17. package/dist/browser/ui/input-otp.js +37 -18
  18. package/dist/browser/ui/link.js +6 -4
  19. package/dist/browser/ui/loading-button.js +41 -14
  20. package/dist/browser/ui/marketing/Hero.js +9 -4
  21. package/dist/browser/ui/marketing/PricingTable.js +9 -4
  22. package/dist/browser/ui/marketing/index.js +9 -4
  23. package/dist/browser/ui/molecules/Autocomplete/index.js +15 -10
  24. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
  25. package/dist/browser/ui/molecules/SearchAndFilter/index.js +9 -4
  26. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
  27. package/dist/browser/ui/organisms/ErrorBoundary/index.js +12 -7
  28. package/dist/browser/ui/organisms/ListPage/ListPage.js +41 -14
  29. package/dist/browser/ui/organisms/ListPage/index.js +41 -14
  30. package/dist/browser/ui/page-header.js +32 -10
  31. package/dist/browser/ui/pagination.js +98 -79
  32. package/dist/browser/ui/resizable.js +6 -9
  33. package/dist/browser/ui/section.js +12 -4
  34. package/dist/browser/ui/sidebar.js +22 -17
  35. package/dist/browser/ui/stack.js +32 -10
  36. package/dist/browser/ui/stat-card-group.js +32 -10
  37. package/dist/browser/ui/stepper.js +32 -10
  38. package/dist/browser/ui/time-picker.js +13 -8
  39. package/dist/browser/ui/toast.js +57 -29
  40. package/dist/browser/ui/toaster.js +60 -32
  41. package/dist/browser/ui/usecases/UseCaseCard.js +41 -14
  42. package/dist/browser/ui/usecases/UserStoryCard.js +32 -10
  43. package/dist/browser/ui/usecases/index.js +41 -14
  44. package/dist/browser/ui/visually-hidden.js +8 -4
  45. package/dist/index.d.ts +0 -1
  46. package/dist/ui/accordion.d.ts +0 -1
  47. package/dist/ui/alert-dialog.d.ts +0 -1
  48. package/dist/ui/alert-dialog.js +9 -4
  49. package/dist/ui/alert.d.ts +0 -1
  50. package/dist/ui/aspect-ratio.d.ts +0 -1
  51. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -1
  52. package/dist/ui/atoms/FilterSelect/index.d.ts +0 -1
  53. package/dist/ui/atoms/FilterSelect/types.d.ts +0 -1
  54. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -1
  55. package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
  56. package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -1
  57. package/dist/ui/atoms/Pagination/Pagination.js +9 -4
  58. package/dist/ui/atoms/Pagination/index.d.ts +0 -1
  59. package/dist/ui/atoms/Pagination/index.js +9 -4
  60. package/dist/ui/atoms/Pagination/types.d.ts +0 -1
  61. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -1
  62. package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
  63. package/dist/ui/atoms/SearchInput/index.d.ts +0 -1
  64. package/dist/ui/atoms/SearchInput/index.js +9 -4
  65. package/dist/ui/atoms/SearchInput/types.d.ts +0 -1
  66. package/dist/ui/avatar.d.ts +0 -1
  67. package/dist/ui/badge.d.ts +0 -1
  68. package/dist/ui/breadcrumb.d.ts +0 -1
  69. package/dist/ui/button.d.ts +2 -7
  70. package/dist/ui/button.js +9 -4
  71. package/dist/ui/calendar.d.ts +0 -1
  72. package/dist/ui/calendar.js +12 -7
  73. package/dist/ui/card.d.ts +0 -1
  74. package/dist/ui/carousel.d.ts +0 -1
  75. package/dist/ui/carousel.js +20 -15
  76. package/dist/ui/checkbox.d.ts +0 -1
  77. package/dist/ui/collapsible.d.ts +0 -1
  78. package/dist/ui/command.d.ts +0 -1
  79. package/dist/ui/confirm-dialog.d.ts +0 -1
  80. package/dist/ui/confirm-dialog.js +9 -4
  81. package/dist/ui/context-menu.d.ts +26 -23
  82. package/dist/ui/context-menu.js +178 -85
  83. package/dist/ui/cta.d.ts +2 -9
  84. package/dist/ui/cta.js +13 -9
  85. package/dist/ui/date-picker.d.ts +0 -1
  86. package/dist/ui/date-picker.js +17 -12
  87. package/dist/ui/date-range-picker.d.ts +0 -1
  88. package/dist/ui/date-range-picker.js +14 -9
  89. package/dist/ui/datetime-picker.d.ts +0 -1
  90. package/dist/ui/datetime-picker.js +21 -16
  91. package/dist/ui/dialog.d.ts +0 -1
  92. package/dist/ui/drawer.d.ts +0 -1
  93. package/dist/ui/dropdown-menu.d.ts +0 -1
  94. package/dist/ui/empty-state.d.ts +0 -1
  95. package/dist/ui/empty-state.js +32 -10
  96. package/dist/ui/empty.d.ts +0 -1
  97. package/dist/ui/field.d.ts +0 -1
  98. package/dist/ui/focus-on-route-change.d.ts +0 -1
  99. package/dist/ui/form.d.ts +0 -1
  100. package/dist/ui/hover-card.d.ts +0 -1
  101. package/dist/ui/input-group.d.ts +0 -1
  102. package/dist/ui/input-group.js +9 -4
  103. package/dist/ui/input-otp.d.ts +13 -32
  104. package/dist/ui/input-otp.js +37 -18
  105. package/dist/ui/input.d.ts +0 -1
  106. package/dist/ui/label.d.ts +0 -1
  107. package/dist/ui/link.d.ts +4 -3
  108. package/dist/ui/link.js +6 -4
  109. package/dist/ui/live-region.d.ts +0 -1
  110. package/dist/ui/loading-button.d.ts +0 -1
  111. package/dist/ui/loading-button.js +41 -14
  112. package/dist/ui/map/MapBase.d.ts +0 -1
  113. package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -1
  114. package/dist/ui/map/MapHeatmapH3.d.ts +0 -1
  115. package/dist/ui/map/MapMarkers.d.ts +0 -1
  116. package/dist/ui/map/index.d.ts +0 -1
  117. package/dist/ui/marketing/FeatureGrid.d.ts +0 -1
  118. package/dist/ui/marketing/Hero.d.ts +0 -1
  119. package/dist/ui/marketing/Hero.js +9 -4
  120. package/dist/ui/marketing/PricingTable.d.ts +0 -1
  121. package/dist/ui/marketing/PricingTable.js +9 -4
  122. package/dist/ui/marketing/index.d.ts +0 -1
  123. package/dist/ui/marketing/index.js +9 -4
  124. package/dist/ui/menubar.d.ts +0 -1
  125. package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
  126. package/dist/ui/molecules/Autocomplete/index.js +15 -10
  127. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -1
  128. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
  129. package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -1
  130. package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
  131. package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -1
  132. package/dist/ui/molecules/SkeletonList.d.ts +0 -1
  133. package/dist/ui/nav-layout.d.ts +0 -1
  134. package/dist/ui/navigation-menu.d.ts +0 -1
  135. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -1
  136. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
  137. package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -1
  138. package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
  139. package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -1
  140. package/dist/ui/organisms/ListPage/ListPage.js +41 -14
  141. package/dist/ui/organisms/ListPage/index.d.ts +0 -1
  142. package/dist/ui/organisms/ListPage/index.js +41 -14
  143. package/dist/ui/organisms/ListPage/types.d.ts +0 -1
  144. package/dist/ui/page-header.d.ts +0 -1
  145. package/dist/ui/page-header.js +32 -10
  146. package/dist/ui/pagination.d.ts +11 -23
  147. package/dist/ui/pagination.js +98 -79
  148. package/dist/ui/popover.d.ts +0 -1
  149. package/dist/ui/progress.d.ts +0 -1
  150. package/dist/ui/radio-group.d.ts +0 -1
  151. package/dist/ui/resizable.d.ts +5 -21
  152. package/dist/ui/resizable.js +6 -9
  153. package/dist/ui/route-announcer.d.ts +0 -1
  154. package/dist/ui/scroll-area.d.ts +0 -1
  155. package/dist/ui/section.d.ts +2 -10
  156. package/dist/ui/section.js +12 -4
  157. package/dist/ui/select.d.ts +0 -1
  158. package/dist/ui/separator.d.ts +0 -1
  159. package/dist/ui/sheet.d.ts +0 -1
  160. package/dist/ui/sidebar.d.ts +0 -1
  161. package/dist/ui/sidebar.js +22 -17
  162. package/dist/ui/skeleton.d.ts +0 -1
  163. package/dist/ui/skip-link.d.ts +0 -1
  164. package/dist/ui/slider.d.ts +0 -1
  165. package/dist/ui/sonner.d.ts +0 -1
  166. package/dist/ui/stack.d.ts +15 -24
  167. package/dist/ui/stack.js +32 -10
  168. package/dist/ui/stat-card-group.d.ts +0 -1
  169. package/dist/ui/stat-card-group.js +32 -10
  170. package/dist/ui/stepper.d.ts +0 -1
  171. package/dist/ui/stepper.js +32 -10
  172. package/dist/ui/switch.d.ts +0 -1
  173. package/dist/ui/table.d.ts +0 -1
  174. package/dist/ui/tabs.d.ts +0 -1
  175. package/dist/ui/text.d.ts +0 -1
  176. package/dist/ui/textarea.d.ts +0 -1
  177. package/dist/ui/time-picker.d.ts +0 -1
  178. package/dist/ui/time-picker.js +13 -8
  179. package/dist/ui/toast.d.ts +20 -8
  180. package/dist/ui/toast.js +57 -29
  181. package/dist/ui/toaster.d.ts +0 -1
  182. package/dist/ui/toaster.js +60 -32
  183. package/dist/ui/toggle-group.d.ts +0 -1
  184. package/dist/ui/toggle.d.ts +0 -1
  185. package/dist/ui/tooltip.d.ts +0 -1
  186. package/dist/ui/typography.d.ts +0 -1
  187. package/dist/ui/use-media-query.d.ts +0 -1
  188. package/dist/ui/use-mobile.d.ts +0 -1
  189. package/dist/ui/use-reduced-motion.d.ts +0 -1
  190. package/dist/ui/use-toast.d.ts +0 -1
  191. package/dist/ui/useListState.d.ts +0 -1
  192. package/dist/ui/usecases/UseCaseCard.d.ts +0 -1
  193. package/dist/ui/usecases/UseCaseCard.js +41 -14
  194. package/dist/ui/usecases/UserStoryCard.d.ts +0 -1
  195. package/dist/ui/usecases/UserStoryCard.js +32 -10
  196. package/dist/ui/usecases/index.d.ts +0 -1
  197. package/dist/ui/usecases/index.js +41 -14
  198. package/dist/ui/utils.d.ts +0 -1
  199. package/dist/ui/visually-hidden.d.ts +4 -3
  200. package/dist/ui/visually-hidden.js +8 -4
  201. package/package.json +13 -12
  202. package/dist/index.d.ts.map +0 -1
  203. package/dist/ui/accordion.d.ts.map +0 -1
  204. package/dist/ui/alert-dialog.d.ts.map +0 -1
  205. package/dist/ui/alert.d.ts.map +0 -1
  206. package/dist/ui/aspect-ratio.d.ts.map +0 -1
  207. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +0 -1
  208. package/dist/ui/atoms/FilterSelect/index.d.ts.map +0 -1
  209. package/dist/ui/atoms/FilterSelect/types.d.ts.map +0 -1
  210. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +0 -1
  211. package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +0 -1
  212. package/dist/ui/atoms/Pagination/Pagination.d.ts.map +0 -1
  213. package/dist/ui/atoms/Pagination/index.d.ts.map +0 -1
  214. package/dist/ui/atoms/Pagination/types.d.ts.map +0 -1
  215. package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +0 -1
  216. package/dist/ui/atoms/SearchInput/index.d.ts.map +0 -1
  217. package/dist/ui/atoms/SearchInput/types.d.ts.map +0 -1
  218. package/dist/ui/avatar.d.ts.map +0 -1
  219. package/dist/ui/badge.d.ts.map +0 -1
  220. package/dist/ui/breadcrumb.d.ts.map +0 -1
  221. package/dist/ui/button.d.ts.map +0 -1
  222. package/dist/ui/calendar.d.ts.map +0 -1
  223. package/dist/ui/card.d.ts.map +0 -1
  224. package/dist/ui/carousel.d.ts.map +0 -1
  225. package/dist/ui/checkbox.d.ts.map +0 -1
  226. package/dist/ui/collapsible.d.ts.map +0 -1
  227. package/dist/ui/command.d.ts.map +0 -1
  228. package/dist/ui/confirm-dialog.d.ts.map +0 -1
  229. package/dist/ui/context-menu.d.ts.map +0 -1
  230. package/dist/ui/cta.d.ts.map +0 -1
  231. package/dist/ui/date-picker.d.ts.map +0 -1
  232. package/dist/ui/date-range-picker.d.ts.map +0 -1
  233. package/dist/ui/datetime-picker.d.ts.map +0 -1
  234. package/dist/ui/dialog.d.ts.map +0 -1
  235. package/dist/ui/drawer.d.ts.map +0 -1
  236. package/dist/ui/dropdown-menu.d.ts.map +0 -1
  237. package/dist/ui/empty-state.d.ts.map +0 -1
  238. package/dist/ui/empty.d.ts.map +0 -1
  239. package/dist/ui/field.d.ts.map +0 -1
  240. package/dist/ui/focus-on-route-change.d.ts.map +0 -1
  241. package/dist/ui/form.d.ts.map +0 -1
  242. package/dist/ui/hover-card.d.ts.map +0 -1
  243. package/dist/ui/input-group.d.ts.map +0 -1
  244. package/dist/ui/input-otp.d.ts.map +0 -1
  245. package/dist/ui/input.d.ts.map +0 -1
  246. package/dist/ui/label.d.ts.map +0 -1
  247. package/dist/ui/link.d.ts.map +0 -1
  248. package/dist/ui/live-region.d.ts.map +0 -1
  249. package/dist/ui/loading-button.d.ts.map +0 -1
  250. package/dist/ui/map/MapBase.d.ts.map +0 -1
  251. package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +0 -1
  252. package/dist/ui/map/MapHeatmapH3.d.ts.map +0 -1
  253. package/dist/ui/map/MapMarkers.d.ts.map +0 -1
  254. package/dist/ui/map/index.d.ts.map +0 -1
  255. package/dist/ui/marketing/FeatureGrid.d.ts.map +0 -1
  256. package/dist/ui/marketing/Hero.d.ts.map +0 -1
  257. package/dist/ui/marketing/PricingTable.d.ts.map +0 -1
  258. package/dist/ui/marketing/index.d.ts.map +0 -1
  259. package/dist/ui/menubar.d.ts.map +0 -1
  260. package/dist/ui/molecules/Autocomplete/index.d.ts.map +0 -1
  261. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +0 -1
  262. package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +0 -1
  263. package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +0 -1
  264. package/dist/ui/molecules/SkeletonList.d.ts.map +0 -1
  265. package/dist/ui/nav-layout.d.ts.map +0 -1
  266. package/dist/ui/navigation-menu.d.ts.map +0 -1
  267. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  268. package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +0 -1
  269. package/dist/ui/organisms/ListPage/ListPage.d.ts.map +0 -1
  270. package/dist/ui/organisms/ListPage/index.d.ts.map +0 -1
  271. package/dist/ui/organisms/ListPage/types.d.ts.map +0 -1
  272. package/dist/ui/page-header.d.ts.map +0 -1
  273. package/dist/ui/pagination.d.ts.map +0 -1
  274. package/dist/ui/popover.d.ts.map +0 -1
  275. package/dist/ui/progress.d.ts.map +0 -1
  276. package/dist/ui/radio-group.d.ts.map +0 -1
  277. package/dist/ui/resizable.d.ts.map +0 -1
  278. package/dist/ui/route-announcer.d.ts.map +0 -1
  279. package/dist/ui/scroll-area.d.ts.map +0 -1
  280. package/dist/ui/section.d.ts.map +0 -1
  281. package/dist/ui/select.d.ts.map +0 -1
  282. package/dist/ui/separator.d.ts.map +0 -1
  283. package/dist/ui/sheet.d.ts.map +0 -1
  284. package/dist/ui/sidebar.d.ts.map +0 -1
  285. package/dist/ui/skeleton.d.ts.map +0 -1
  286. package/dist/ui/skip-link.d.ts.map +0 -1
  287. package/dist/ui/slider.d.ts.map +0 -1
  288. package/dist/ui/sonner.d.ts.map +0 -1
  289. package/dist/ui/stack.d.ts.map +0 -1
  290. package/dist/ui/stat-card-group.d.ts.map +0 -1
  291. package/dist/ui/stepper.d.ts.map +0 -1
  292. package/dist/ui/switch.d.ts.map +0 -1
  293. package/dist/ui/table.d.ts.map +0 -1
  294. package/dist/ui/tabs.d.ts.map +0 -1
  295. package/dist/ui/text.d.ts.map +0 -1
  296. package/dist/ui/textarea.d.ts.map +0 -1
  297. package/dist/ui/time-picker.d.ts.map +0 -1
  298. package/dist/ui/toast.d.ts.map +0 -1
  299. package/dist/ui/toaster.d.ts.map +0 -1
  300. package/dist/ui/toggle-group.d.ts.map +0 -1
  301. package/dist/ui/toggle.d.ts.map +0 -1
  302. package/dist/ui/tooltip.d.ts.map +0 -1
  303. package/dist/ui/typography.d.ts.map +0 -1
  304. package/dist/ui/use-media-query.d.ts.map +0 -1
  305. package/dist/ui/use-mobile.d.ts.map +0 -1
  306. package/dist/ui/use-reduced-motion.d.ts.map +0 -1
  307. package/dist/ui/use-toast.d.ts.map +0 -1
  308. package/dist/ui/useListState.d.ts.map +0 -1
  309. package/dist/ui/usecases/UseCaseCard.d.ts.map +0 -1
  310. package/dist/ui/usecases/UserStoryCard.d.ts.map +0 -1
  311. package/dist/ui/usecases/index.d.ts.map +0 -1
  312. package/dist/ui/utils.d.ts.map +0 -1
  313. package/dist/ui/visually-hidden.d.ts.map +0 -1
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/dialog.tsx
49
54
  import * as DialogPrimitive from "@radix-ui/react-dialog";
50
55
  import { XIcon } from "lucide-react";
@@ -448,10 +453,10 @@ function DrawerDescription({
448
453
  }, undefined, false, undefined, this);
449
454
  }
450
455
  // ui/use-media-query.ts
451
- import * as React2 from "react";
456
+ import * as React from "react";
452
457
  function useMediaQuery(query) {
453
- const [value, setValue] = React2.useState(false);
454
- React2.useEffect(() => {
458
+ const [value, setValue] = React.useState(false);
459
+ React.useEffect(() => {
455
460
  function onChange(event) {
456
461
  setValue(event.matches);
457
462
  }
@@ -464,7 +469,7 @@ function useMediaQuery(query) {
464
469
  }
465
470
 
466
471
  // ui/molecules/Autocomplete/index.tsx
467
- import * as React3 from "react";
472
+ import * as React2 from "react";
468
473
  import { jsxDEV as jsxDEV6, Fragment } from "react/jsx-dev-runtime";
469
474
  "use client";
470
475
  var statuses = [
@@ -486,9 +491,9 @@ var statuses = [
486
491
  }
487
492
  ];
488
493
  function ComboBoxResponsive() {
489
- const [open, setOpen] = React3.useState(false);
494
+ const [open, setOpen] = React2.useState(false);
490
495
  const isDesktop = useMediaQuery("(min-width: 768px)");
491
- const [selectedStatus, setSelectedStatus] = React3.useState(null);
496
+ const [selectedStatus, setSelectedStatus] = React2.useState(null);
492
497
  if (isDesktop) {
493
498
  return /* @__PURE__ */ jsxDEV6(Popover, {
494
499
  open,
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { SearchAndFilterProps } from './types';
3
3
  export declare const SearchAndFilter: React.FC<SearchAndFilterProps>;
4
- //# sourceMappingURL=SearchAndFilter.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/select.tsx
49
54
  import * as SelectPrimitive from "@radix-ui/react-select";
50
55
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -1,3 +1,2 @@
1
1
  export { SearchAndFilter } from './SearchAndFilter';
2
2
  export type { SearchAndFilterProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/select.tsx
49
54
  import * as SelectPrimitive from "@radix-ui/react-select";
50
55
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -17,4 +17,3 @@ export interface SearchAndFilterProps {
17
17
  collapsible?: boolean;
18
18
  defaultCollapsed?: boolean;
19
19
  }
20
- //# sourceMappingURL=types.d.ts.map
@@ -5,4 +5,3 @@ interface Props {
5
5
  }
6
6
  export declare function SkeletonList({ count, className, itemClassName, }: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
8
- //# sourceMappingURL=SkeletonList.d.ts.map
@@ -45,4 +45,3 @@ export declare function NavCategorizedWithPreview({ categories, modules, activeC
45
45
  preview: React.ReactNode;
46
46
  }): import("react/jsx-runtime").JSX.Element;
47
47
  export { NavigationMenu as NavRoot, NavigationMenuList as NavList, NavigationMenuItem as NavItem, NavigationMenuTrigger as NavTrigger, NavigationMenuContent as NavContent, NavigationMenuLink as NavLink, };
48
- //# sourceMappingURL=nav-layout.d.ts.map
@@ -12,4 +12,3 @@ declare function NavigationMenuViewport({ className, ...props }: React.Component
12
12
  declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
13
13
  declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
14
14
  export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
15
- //# sourceMappingURL=navigation-menu.d.ts.map
@@ -23,4 +23,3 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, E
23
23
  }
24
24
  export declare const useErrorHandler: () => (error: Error) => never;
25
25
  export type { ErrorBoundaryProps, ErrorFallbackProps };
26
- //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,10 +49,9 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/organisms/ErrorBoundary/ErrorBoundary.tsx
49
- import React2 from "react";
54
+ import React from "react";
50
55
  import { AlertTriangle, RefreshCw, Home } from "lucide-react";
51
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
52
57
  "use client";
@@ -133,7 +138,7 @@ var DefaultErrorFallback = ({
133
138
  }, undefined, false, undefined, this);
134
139
  };
135
140
 
136
- class ErrorBoundary extends React2.Component {
141
+ class ErrorBoundary extends React.Component {
137
142
  constructor(props) {
138
143
  super(props);
139
144
  this.state = {
@@ -176,7 +181,7 @@ class ErrorBoundary extends React2.Component {
176
181
  }
177
182
  }
178
183
  var useErrorHandler = () => {
179
- return React2.useCallback((error) => {
184
+ return React.useCallback((error) => {
180
185
  throw error;
181
186
  }, []);
182
187
  };
@@ -1,3 +1,2 @@
1
1
  export { ErrorBoundary, useErrorHandler } from './ErrorBoundary';
2
2
  export type { ErrorBoundaryProps, ErrorFallbackProps } from './ErrorBoundary';
3
- //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,10 +49,9 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/organisms/ErrorBoundary/ErrorBoundary.tsx
49
- import React2 from "react";
54
+ import React from "react";
50
55
  import { AlertTriangle, RefreshCw, Home } from "lucide-react";
51
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
52
57
  "use client";
@@ -133,7 +138,7 @@ var DefaultErrorFallback = ({
133
138
  }, undefined, false, undefined, this);
134
139
  };
135
140
 
136
- class ErrorBoundary extends React2.Component {
141
+ class ErrorBoundary extends React.Component {
137
142
  constructor(props) {
138
143
  super(props);
139
144
  this.state = {
@@ -176,7 +181,7 @@ class ErrorBoundary extends React2.Component {
176
181
  }
177
182
  }
178
183
  var useErrorHandler = () => {
179
- return React2.useCallback((error) => {
184
+ return React.useCallback((error) => {
180
185
  throw error;
181
186
  }, []);
182
187
  };
@@ -1,3 +1,2 @@
1
1
  import type { ListPageProps } from './types';
2
2
  export declare function ListPage<T>({ title, description, header, items, totalItems, totalPages, isLoading, isFetching, error, listState, searchPlaceholder, filters, onRefresh, primaryAction, toolbar, renderItem, renderEmpty, renderStats, className, itemClassName, }: ListPageProps<T>): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=ListPage.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/select.tsx
49
54
  import * as SelectPrimitive from "@radix-ui/react-select";
50
55
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -632,7 +637,6 @@ function CollapsibleContent2({
632
637
  }, undefined, false, undefined, this);
633
638
  }
634
639
  // ui/stack.tsx
635
- import * as React2 from "react";
636
640
  import { cva as cva2 } from "class-variance-authority";
637
641
  import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
638
642
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
@@ -668,15 +672,22 @@ var vStackVariants = cva2("flex flex-col", {
668
672
  justify: "start"
669
673
  }
670
674
  });
671
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
675
+ function VStack({
676
+ className,
677
+ gap,
678
+ align,
679
+ justify,
680
+ as = "div",
681
+ ref,
682
+ ...props
683
+ }) {
672
684
  const Comp = as;
673
685
  return /* @__PURE__ */ jsxDEV10(Comp, {
674
686
  ref,
675
687
  className: cn6(vStackVariants({ gap, align, justify }), className),
676
688
  ...props
677
689
  }, undefined, false, undefined, this);
678
- });
679
- VStack.displayName = "VStack";
690
+ }
680
691
  var hStackVariants = cva2("flex flex-row", {
681
692
  variants: {
682
693
  gap: {
@@ -716,15 +727,23 @@ var hStackVariants = cva2("flex flex-row", {
716
727
  wrap: "wrap"
717
728
  }
718
729
  });
719
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
730
+ function HStack({
731
+ className,
732
+ gap,
733
+ align,
734
+ justify,
735
+ wrap,
736
+ as = "div",
737
+ ref,
738
+ ...props
739
+ }) {
720
740
  const Comp = as;
721
741
  return /* @__PURE__ */ jsxDEV10(Comp, {
722
742
  ref,
723
743
  className: cn6(hStackVariants({ gap, align, justify, wrap }), className),
724
744
  ...props
725
745
  }, undefined, false, undefined, this);
726
- });
727
- HStack.displayName = "HStack";
746
+ }
728
747
  var boxVariants = cva2("flex flex-row", {
729
748
  variants: {
730
749
  gap: {
@@ -764,15 +783,23 @@ var boxVariants = cva2("flex flex-row", {
764
783
  wrap: "nowrap"
765
784
  }
766
785
  });
767
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
786
+ function Box({
787
+ className,
788
+ gap,
789
+ align,
790
+ justify,
791
+ wrap,
792
+ as = "div",
793
+ ref,
794
+ ...props
795
+ }) {
768
796
  const Comp = as;
769
797
  return /* @__PURE__ */ jsxDEV10(Comp, {
770
798
  ref,
771
799
  className: cn6(boxVariants({ gap, align, justify, wrap }), className),
772
800
  ...props
773
801
  }, undefined, false, undefined, this);
774
- });
775
- Box.displayName = "Box";
802
+ }
776
803
  // ui/separator.tsx
777
804
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
778
805
  import { cn as cn7 } from "@contractspec/lib.ui-kit-core/utils";
@@ -1,3 +1,2 @@
1
1
  export { ListPage } from './ListPage';
2
2
  export type { ListPageProps, ListPageFilter } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/select.tsx
49
54
  import * as SelectPrimitive from "@radix-ui/react-select";
50
55
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -632,7 +637,6 @@ function CollapsibleContent2({
632
637
  }, undefined, false, undefined, this);
633
638
  }
634
639
  // ui/stack.tsx
635
- import * as React2 from "react";
636
640
  import { cva as cva2 } from "class-variance-authority";
637
641
  import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
638
642
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
@@ -668,15 +672,22 @@ var vStackVariants = cva2("flex flex-col", {
668
672
  justify: "start"
669
673
  }
670
674
  });
671
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
675
+ function VStack({
676
+ className,
677
+ gap,
678
+ align,
679
+ justify,
680
+ as = "div",
681
+ ref,
682
+ ...props
683
+ }) {
672
684
  const Comp = as;
673
685
  return /* @__PURE__ */ jsxDEV10(Comp, {
674
686
  ref,
675
687
  className: cn6(vStackVariants({ gap, align, justify }), className),
676
688
  ...props
677
689
  }, undefined, false, undefined, this);
678
- });
679
- VStack.displayName = "VStack";
690
+ }
680
691
  var hStackVariants = cva2("flex flex-row", {
681
692
  variants: {
682
693
  gap: {
@@ -716,15 +727,23 @@ var hStackVariants = cva2("flex flex-row", {
716
727
  wrap: "wrap"
717
728
  }
718
729
  });
719
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
730
+ function HStack({
731
+ className,
732
+ gap,
733
+ align,
734
+ justify,
735
+ wrap,
736
+ as = "div",
737
+ ref,
738
+ ...props
739
+ }) {
720
740
  const Comp = as;
721
741
  return /* @__PURE__ */ jsxDEV10(Comp, {
722
742
  ref,
723
743
  className: cn6(hStackVariants({ gap, align, justify, wrap }), className),
724
744
  ...props
725
745
  }, undefined, false, undefined, this);
726
- });
727
- HStack.displayName = "HStack";
746
+ }
728
747
  var boxVariants = cva2("flex flex-row", {
729
748
  variants: {
730
749
  gap: {
@@ -764,15 +783,23 @@ var boxVariants = cva2("flex flex-row", {
764
783
  wrap: "nowrap"
765
784
  }
766
785
  });
767
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
786
+ function Box({
787
+ className,
788
+ gap,
789
+ align,
790
+ justify,
791
+ wrap,
792
+ as = "div",
793
+ ref,
794
+ ...props
795
+ }) {
768
796
  const Comp = as;
769
797
  return /* @__PURE__ */ jsxDEV10(Comp, {
770
798
  ref,
771
799
  className: cn6(boxVariants({ gap, align, justify, wrap }), className),
772
800
  ...props
773
801
  }, undefined, false, undefined, this);
774
- });
775
- Box.displayName = "Box";
802
+ }
776
803
  // ui/separator.tsx
777
804
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
778
805
  import { cn as cn7 } from "@contractspec/lib.ui-kit-core/utils";
@@ -34,4 +34,3 @@ export interface ListPageProps<T = unknown> {
34
34
  className?: string;
35
35
  itemClassName?: string;
36
36
  }
37
- //# sourceMappingURL=types.d.ts.map
@@ -12,4 +12,3 @@ export interface PageHeaderProps extends VariantProps<typeof headerVariants> {
12
12
  }
13
13
  export declare function PageHeader({ breadcrumb, title, subtitle, actions, spacing, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
14
14
  export {};
15
- //# sourceMappingURL=page-header.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/stack.tsx
5
- import * as React from "react";
6
5
  import { cva } from "class-variance-authority";
7
6
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
8
7
  import { jsxDEV } from "react/jsx-dev-runtime";
@@ -38,15 +37,22 @@ var vStackVariants = cva("flex flex-col", {
38
37
  justify: "start"
39
38
  }
40
39
  });
41
- var VStack = React.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
40
+ function VStack({
41
+ className,
42
+ gap,
43
+ align,
44
+ justify,
45
+ as = "div",
46
+ ref,
47
+ ...props
48
+ }) {
42
49
  const Comp = as;
43
50
  return /* @__PURE__ */ jsxDEV(Comp, {
44
51
  ref,
45
52
  className: cn(vStackVariants({ gap, align, justify }), className),
46
53
  ...props
47
54
  }, undefined, false, undefined, this);
48
- });
49
- VStack.displayName = "VStack";
55
+ }
50
56
  var hStackVariants = cva("flex flex-row", {
51
57
  variants: {
52
58
  gap: {
@@ -86,15 +92,23 @@ var hStackVariants = cva("flex flex-row", {
86
92
  wrap: "wrap"
87
93
  }
88
94
  });
89
- var HStack = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
95
+ function HStack({
96
+ className,
97
+ gap,
98
+ align,
99
+ justify,
100
+ wrap,
101
+ as = "div",
102
+ ref,
103
+ ...props
104
+ }) {
90
105
  const Comp = as;
91
106
  return /* @__PURE__ */ jsxDEV(Comp, {
92
107
  ref,
93
108
  className: cn(hStackVariants({ gap, align, justify, wrap }), className),
94
109
  ...props
95
110
  }, undefined, false, undefined, this);
96
- });
97
- HStack.displayName = "HStack";
111
+ }
98
112
  var boxVariants = cva("flex flex-row", {
99
113
  variants: {
100
114
  gap: {
@@ -134,15 +148,23 @@ var boxVariants = cva("flex flex-row", {
134
148
  wrap: "nowrap"
135
149
  }
136
150
  });
137
- var Box = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
151
+ function Box({
152
+ className,
153
+ gap,
154
+ align,
155
+ justify,
156
+ wrap,
157
+ as = "div",
158
+ ref,
159
+ ...props
160
+ }) {
138
161
  const Comp = as;
139
162
  return /* @__PURE__ */ jsxDEV(Comp, {
140
163
  ref,
141
164
  className: cn(boxVariants({ gap, align, justify, wrap }), className),
142
165
  ...props
143
166
  }, undefined, false, undefined, this);
144
- });
145
- Box.displayName = "Box";
167
+ }
146
168
  // ui/page-header.tsx
147
169
  import { cva as cva2 } from "class-variance-authority";
148
170
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";