@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
@@ -1,29 +1,17 @@
1
1
  import * as React from 'react';
2
2
  import { type ButtonProps } from './button';
3
- declare const Pagination: {
4
- ({ className, ...props }: React.ComponentPropsWithoutRef<"nav">): import("react/jsx-runtime").JSX.Element;
5
- displayName: string;
6
- };
7
- declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
3
+ declare function Pagination({ className, ...props }: React.ComponentPropsWithoutRef<'nav'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationContent({ className, ref, ...props }: React.ComponentPropsWithoutRef<'ul'> & {
5
+ ref?: React.Ref<HTMLUListElement>;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function PaginationItem({ className, ref, ...props }: React.ComponentPropsWithoutRef<'li'> & {
8
+ ref?: React.Ref<HTMLLIElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
9
10
  type PaginationLinkProps = {
10
11
  isActive?: boolean;
11
12
  } & Pick<ButtonProps, 'size'> & React.ComponentPropsWithoutRef<'a'>;
12
- declare const PaginationLink: {
13
- ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const PaginationPrevious: {
17
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- declare const PaginationNext: {
21
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
- displayName: string;
23
- };
24
- declare const PaginationEllipsis: {
25
- ({ className, ...props }: React.ComponentPropsWithoutRef<"span">): import("react/jsx-runtime").JSX.Element;
26
- displayName: string;
27
- };
13
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
15
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
16
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
28
17
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
29
- //# sourceMappingURL=pagination.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,103 +49,116 @@ 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/pagination.tsx
49
- import * as React2 from "react";
50
54
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
51
55
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
52
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
53
- var Pagination = ({
57
+ function Pagination({
54
58
  className,
55
59
  ...props
56
- }) => /* @__PURE__ */ jsxDEV2("nav", {
57
- role: "navigation",
58
- "aria-label": "pagination",
59
- className: cn2("mx-auto flex w-full justify-center", className),
60
- ...props
61
- }, undefined, false, undefined, this);
62
- Pagination.displayName = "Pagination";
63
- var PaginationContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("ul", {
60
+ }) {
61
+ return /* @__PURE__ */ jsxDEV2("nav", {
62
+ role: "navigation",
63
+ "aria-label": "pagination",
64
+ className: cn2("mx-auto flex w-full justify-center", className),
65
+ ...props
66
+ }, undefined, false, undefined, this);
67
+ }
68
+ function PaginationContent({
69
+ className,
64
70
  ref,
65
- className: cn2("flex flex-row items-center gap-1", className),
66
71
  ...props
67
- }, undefined, false, undefined, this));
68
- PaginationContent.displayName = "PaginationContent";
69
- var PaginationItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("li", {
72
+ }) {
73
+ return /* @__PURE__ */ jsxDEV2("ul", {
74
+ ref,
75
+ className: cn2("flex flex-row items-center gap-1", className),
76
+ ...props
77
+ }, undefined, false, undefined, this);
78
+ }
79
+ function PaginationItem({
80
+ className,
70
81
  ref,
71
- className: cn2("", className),
72
82
  ...props
73
- }, undefined, false, undefined, this));
74
- PaginationItem.displayName = "PaginationItem";
75
- var PaginationLink = ({
83
+ }) {
84
+ return /* @__PURE__ */ jsxDEV2("li", {
85
+ ref,
86
+ className: cn2("", className),
87
+ ...props
88
+ }, undefined, false, undefined, this);
89
+ }
90
+ function PaginationLink({
76
91
  className,
77
92
  isActive,
78
93
  size = "icon",
79
94
  ...props
80
- }) => /* @__PURE__ */ jsxDEV2("a", {
81
- "aria-current": isActive ? "page" : undefined,
82
- className: cn2(buttonVariants({
83
- variant: isActive ? "outline" : "ghost",
84
- size
85
- }), className),
86
- ...props
87
- }, undefined, false, undefined, this);
88
- PaginationLink.displayName = "PaginationLink";
89
- var PaginationPrevious = ({
95
+ }) {
96
+ return /* @__PURE__ */ jsxDEV2("a", {
97
+ "aria-current": isActive ? "page" : undefined,
98
+ className: cn2(buttonVariants({
99
+ variant: isActive ? "outline" : "ghost",
100
+ size
101
+ }), className),
102
+ ...props
103
+ }, undefined, false, undefined, this);
104
+ }
105
+ function PaginationPrevious({
90
106
  className,
91
107
  ...props
92
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
93
- "aria-label": "Go to previous page",
94
- size: "default",
95
- className: cn2("gap-1 pl-2.5", className),
96
- ...props,
97
- children: [
98
- /* @__PURE__ */ jsxDEV2(ChevronLeft, {
99
- className: "h-4 w-4"
100
- }, undefined, false, undefined, this),
101
- /* @__PURE__ */ jsxDEV2("span", {
102
- children: "Previous"
103
- }, undefined, false, undefined, this)
104
- ]
105
- }, undefined, true, undefined, this);
106
- PaginationPrevious.displayName = "PaginationPrevious";
107
- var PaginationNext = ({
108
+ }) {
109
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
110
+ "aria-label": "Go to previous page",
111
+ size: "default",
112
+ className: cn2("gap-1 pl-2.5", className),
113
+ ...props,
114
+ children: [
115
+ /* @__PURE__ */ jsxDEV2(ChevronLeft, {
116
+ className: "h-4 w-4"
117
+ }, undefined, false, undefined, this),
118
+ /* @__PURE__ */ jsxDEV2("span", {
119
+ children: "Previous"
120
+ }, undefined, false, undefined, this)
121
+ ]
122
+ }, undefined, true, undefined, this);
123
+ }
124
+ function PaginationNext({
108
125
  className,
109
126
  ...props
110
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
111
- "aria-label": "Go to next page",
112
- size: "default",
113
- className: cn2("gap-1 pr-2.5", className),
114
- ...props,
115
- children: [
116
- /* @__PURE__ */ jsxDEV2("span", {
117
- children: "Next"
118
- }, undefined, false, undefined, this),
119
- /* @__PURE__ */ jsxDEV2(ChevronRight, {
120
- className: "h-4 w-4"
121
- }, undefined, false, undefined, this)
122
- ]
123
- }, undefined, true, undefined, this);
124
- PaginationNext.displayName = "PaginationNext";
125
- var PaginationEllipsis = ({
127
+ }) {
128
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
129
+ "aria-label": "Go to next page",
130
+ size: "default",
131
+ className: cn2("gap-1 pr-2.5", className),
132
+ ...props,
133
+ children: [
134
+ /* @__PURE__ */ jsxDEV2("span", {
135
+ children: "Next"
136
+ }, undefined, false, undefined, this),
137
+ /* @__PURE__ */ jsxDEV2(ChevronRight, {
138
+ className: "h-4 w-4"
139
+ }, undefined, false, undefined, this)
140
+ ]
141
+ }, undefined, true, undefined, this);
142
+ }
143
+ function PaginationEllipsis({
126
144
  className,
127
145
  ...props
128
- }) => /* @__PURE__ */ jsxDEV2("span", {
129
- "aria-hidden": true,
130
- className: cn2("flex h-9 w-9 items-center justify-center", className),
131
- ...props,
132
- children: [
133
- /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
134
- className: "h-4 w-4"
135
- }, undefined, false, undefined, this),
136
- /* @__PURE__ */ jsxDEV2("span", {
137
- className: "sr-only",
138
- children: "More pages"
139
- }, undefined, false, undefined, this)
140
- ]
141
- }, undefined, true, undefined, this);
142
- PaginationEllipsis.displayName = "PaginationEllipsis";
146
+ }) {
147
+ return /* @__PURE__ */ jsxDEV2("span", {
148
+ "aria-hidden": true,
149
+ className: cn2("flex h-9 w-9 items-center justify-center", className),
150
+ ...props,
151
+ children: [
152
+ /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
153
+ className: "h-4 w-4"
154
+ }, undefined, false, undefined, this),
155
+ /* @__PURE__ */ jsxDEV2("span", {
156
+ className: "sr-only",
157
+ children: "More pages"
158
+ }, undefined, false, undefined, this)
159
+ ]
160
+ }, undefined, true, undefined, this);
161
+ }
143
162
  export {
144
163
  PaginationPrevious,
145
164
  PaginationNext,
@@ -5,4 +5,3 @@ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof Popove
5
5
  declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
6
  declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
7
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
8
- //# sourceMappingURL=popover.d.ts.map
@@ -2,4 +2,3 @@ import * as React from 'react';
2
2
  import * as ProgressPrimitive from '@radix-ui/react-progress';
3
3
  declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  export { Progress };
5
- //# sourceMappingURL=progress.d.ts.map
@@ -3,4 +3,3 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
3
  declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
5
  export { RadioGroup, RadioGroupItem };
6
- //# sourceMappingURL=radio-group.d.ts.map
@@ -1,24 +1,8 @@
1
- import * as ResizablePrimitive from 'react-resizable-panels';
2
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
- className?: string;
5
- collapsedSize?: number | undefined;
6
- collapsible?: boolean | undefined;
7
- defaultSize?: number | undefined;
8
- id?: string;
9
- maxSize?: number | undefined;
10
- minSize?: number | undefined;
11
- onCollapse?: ResizablePrimitive.PanelOnCollapse;
12
- onExpand?: ResizablePrimitive.PanelOnExpand;
13
- onResize?: ResizablePrimitive.PanelOnResize;
14
- order?: number;
15
- style?: object;
16
- tagName?: keyof HTMLElementTagNameMap | undefined;
17
- } & {
18
- children?: import("react").ReactNode | undefined;
19
- } & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
- declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
1
+ import { Panel } from 'react-resizable-panels';
2
+ import type { GroupProps, SeparatorProps } from 'react-resizable-panels';
3
+ declare const ResizablePanelGroup: ({ className, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ResizablePanel: typeof Panel;
5
+ declare const ResizableHandle: ({ withHandle, className, ...props }: SeparatorProps & {
21
6
  withHandle?: boolean;
22
7
  }) => import("react/jsx-runtime").JSX.Element;
23
8
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
24
- //# sourceMappingURL=resizable.d.ts.map
@@ -3,24 +3,21 @@ var __require = import.meta.require;
3
3
 
4
4
  // ui/resizable.tsx
5
5
  import { GripVertical } from "lucide-react";
6
- import * as ResizablePrimitive from "react-resizable-panels";
6
+ import { Group, Panel, Separator } from "react-resizable-panels";
7
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
8
8
  import { jsxDEV } from "react/jsx-dev-runtime";
9
9
  "use client";
10
- var ResizablePanelGroup = ({
11
- className,
12
- ...props
13
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelGroup, {
14
- className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
10
+ var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsxDEV(Group, {
11
+ className: cn("flex h-full w-full", className),
15
12
  ...props
16
13
  }, undefined, false, undefined, this);
17
- var ResizablePanel = ResizablePrimitive.Panel;
14
+ var ResizablePanel = Panel;
18
15
  var ResizableHandle = ({
19
16
  withHandle,
20
17
  className,
21
18
  ...props
22
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelResizeHandle, {
23
- className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
19
+ }) => /* @__PURE__ */ jsxDEV(Separator, {
20
+ className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2 [&[aria-orientation=vertical]>div]:rotate-90", className),
24
21
  ...props,
25
22
  children: withHandle && /* @__PURE__ */ jsxDEV("div", {
26
23
  className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
@@ -1,4 +1,3 @@
1
1
  export declare function RouteAnnouncer({ title }: {
2
2
  title?: string;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=route-announcer.d.ts.map
@@ -3,4 +3,3 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
3
3
  declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
5
  export { ScrollArea, ScrollBar };
6
- //# sourceMappingURL=scroll-area.d.ts.map
@@ -9,15 +9,7 @@ declare const sectionVariants: (props?: ({
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export type SectionProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof sectionVariants> & {
11
11
  as?: 'section' | 'div' | 'main' | 'header' | 'footer' | 'aside' | 'article' | 'nav';
12
+ ref?: React.Ref<HTMLElement>;
12
13
  };
13
- export declare const Section: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
14
- width?: "container" | "narrow" | "wide" | "fluid" | null | undefined;
15
- px?: "none" | "sm" | "lg" | "md" | null | undefined;
16
- py?: "none" | "sm" | "lg" | "md" | "xl" | null | undefined;
17
- tone?: "plain" | "tint" | "subtle" | null | undefined;
18
- text?: "base" | "lg" | null | undefined;
19
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
20
- as?: "section" | "div" | "main" | "header" | "footer" | "aside" | "article" | "nav";
21
- } & React.RefAttributes<HTMLElement>>;
14
+ export declare function Section({ as, className, width, px, py, tone, text, ref, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
22
15
  export { sectionVariants };
23
- //# sourceMappingURL=section.d.ts.map
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/section.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";
@@ -45,15 +44,24 @@ var sectionVariants = cva("", {
45
44
  text: "lg"
46
45
  }
47
46
  });
48
- var Section = React.forwardRef(({ as = "section", className, width, px, py, tone, text, ...props }, ref) => {
47
+ function Section({
48
+ as = "section",
49
+ className,
50
+ width,
51
+ px,
52
+ py,
53
+ tone,
54
+ text,
55
+ ref,
56
+ ...props
57
+ }) {
49
58
  const Comp = as;
50
59
  return /* @__PURE__ */ jsxDEV(Comp, {
51
60
  ref,
52
61
  className: cn(sectionVariants({ width, px, py, tone, text }), className),
53
62
  ...props
54
63
  }, undefined, false, undefined, this);
55
- });
56
- Section.displayName = "Section";
64
+ }
57
65
  export {
58
66
  sectionVariants,
59
67
  Section
@@ -13,4 +13,3 @@ declare function SelectSeparator({ className, ...props }: React.ComponentProps<t
13
13
  declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
14
  declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
15
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
16
- //# sourceMappingURL=select.d.ts.map
@@ -2,4 +2,3 @@ import * as React from 'react';
2
2
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
3
  declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  export { Separator };
5
- //# sourceMappingURL=separator.d.ts.map
@@ -11,4 +11,3 @@ declare function SheetFooter({ className, ...props }: React.ComponentPropsWithou
11
11
  declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
12
  declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
13
  export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
14
- //# sourceMappingURL=sheet.d.ts.map
@@ -67,4 +67,3 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
67
67
  isActive?: boolean;
68
68
  }): import("react/jsx-runtime").JSX.Element;
69
69
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
70
- //# sourceMappingURL=sidebar.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/utils.ts
49
54
  import { clsx } from "clsx";
50
55
  import { twMerge } from "tailwind-merge";
@@ -213,11 +218,11 @@ function SheetDescription({
213
218
  }, undefined, false, undefined, this);
214
219
  }
215
220
  // ui/use-mobile.tsx
216
- import * as React2 from "react";
221
+ import * as React from "react";
217
222
  var MOBILE_BREAKPOINT = 640;
218
223
  function useIsMobile() {
219
- const [isMobile, setIsMobile] = React2.useState(undefined);
220
- React2.useEffect(() => {
224
+ const [isMobile, setIsMobile] = React.useState(undefined);
225
+ React.useEffect(() => {
221
226
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
222
227
  const onChange = () => {
223
228
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -284,7 +289,7 @@ function TooltipContent({
284
289
  }, undefined, false, undefined, this);
285
290
  }
286
291
  // ui/sidebar.tsx
287
- import * as React3 from "react";
292
+ import * as React2 from "react";
288
293
  import { Slot as Slot2 } from "@radix-ui/react-slot";
289
294
  import { cva as cva2 } from "class-variance-authority";
290
295
  import { PanelLeftIcon } from "lucide-react";
@@ -297,9 +302,9 @@ var SIDEBAR_WIDTH = "16rem";
297
302
  var SIDEBAR_WIDTH_MOBILE = "18rem";
298
303
  var SIDEBAR_WIDTH_ICON = "3rem";
299
304
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
300
- var SidebarContext = React3.createContext(null);
305
+ var SidebarContext = React2.createContext(null);
301
306
  function useSidebar() {
302
- const context = React3.useContext(SidebarContext);
307
+ const context = React2.useContext(SidebarContext);
303
308
  if (!context) {
304
309
  throw new Error("useSidebar must be used within a SidebarProvider.");
305
310
  }
@@ -315,10 +320,10 @@ function SidebarProvider({
315
320
  ...props
316
321
  }) {
317
322
  const isMobile = useIsMobile();
318
- const [openMobile, setOpenMobile] = React3.useState(false);
319
- const [_open, _setOpen] = React3.useState(defaultOpen);
323
+ const [openMobile, setOpenMobile] = React2.useState(false);
324
+ const [_open, _setOpen] = React2.useState(defaultOpen);
320
325
  const open = openProp ?? _open;
321
- const setOpen = React3.useCallback((value) => {
326
+ const setOpen = React2.useCallback((value) => {
322
327
  const openState = typeof value === "function" ? value(open) : value;
323
328
  if (setOpenProp) {
324
329
  setOpenProp(openState);
@@ -327,10 +332,10 @@ function SidebarProvider({
327
332
  }
328
333
  document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
329
334
  }, [setOpenProp, open]);
330
- const toggleSidebar = React3.useCallback(() => {
335
+ const toggleSidebar = React2.useCallback(() => {
331
336
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
332
337
  }, [isMobile, setOpen, setOpenMobile]);
333
- React3.useEffect(() => {
338
+ React2.useEffect(() => {
334
339
  const handleKeyDown = (event) => {
335
340
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
336
341
  event.preventDefault();
@@ -341,7 +346,7 @@ function SidebarProvider({
341
346
  return () => window.removeEventListener("keydown", handleKeyDown);
342
347
  }, [toggleSidebar]);
343
348
  const state = open ? "expanded" : "collapsed";
344
- const contextValue = React3.useMemo(() => ({
349
+ const contextValue = React2.useMemo(() => ({
345
350
  state,
346
351
  open,
347
352
  setOpen,
@@ -711,7 +716,7 @@ function SidebarMenuSkeleton({
711
716
  showIcon = false,
712
717
  ...props
713
718
  }) {
714
- const width = React3.useMemo(() => {
719
+ const width = React2.useMemo(() => {
715
720
  return `${Math.floor(Math.random() * 40) + 50}%`;
716
721
  }, []);
717
722
  return /* @__PURE__ */ jsxDEV7("div", {
@@ -1,4 +1,3 @@
1
1
  import type * as React from 'react';
2
2
  declare function Skeleton({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
3
3
  export { Skeleton };
4
- //# sourceMappingURL=skeleton.d.ts.map
@@ -5,4 +5,3 @@ interface SkipLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  }
6
6
  export declare function SkipLink({ targetId, children, className, ...props }: SkipLinkProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
8
- //# sourceMappingURL=skip-link.d.ts.map
@@ -2,4 +2,3 @@ import * as React from 'react';
2
2
  import * as SliderPrimitive from '@radix-ui/react-slider';
3
3
  declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  export { Slider };
5
- //# sourceMappingURL=slider.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { type ToasterProps } from 'sonner';
2
2
  declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { Toaster };
4
- //# sourceMappingURL=sonner.d.ts.map