@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
@@ -5,40 +5,31 @@ declare const vStackVariants: (props?: ({
5
5
  align?: "center" | "end" | "start" | "stretch" | null | undefined;
6
6
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare const VStack: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
9
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
10
- align?: "center" | "end" | "start" | "stretch" | null | undefined;
11
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
13
- as?: "div" | "section" | "nav" | "main" | "header" | "footer" | "article" | "aside";
14
- } & React.RefAttributes<HTMLDivElement>>;
8
+ type VStackProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof vStackVariants> & {
9
+ as?: 'div' | 'section' | 'nav' | 'main' | 'header' | 'footer' | 'article' | 'aside';
10
+ ref?: React.Ref<HTMLDivElement>;
11
+ };
12
+ declare function VStack({ className, gap, align, justify, as, ref, ...props }: VStackProps): import("react/jsx-runtime").JSX.Element;
15
13
  declare const hStackVariants: (props?: ({
16
14
  gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
17
15
  align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
18
16
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
19
17
  wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
20
18
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
21
- declare const HStack: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
22
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
23
- align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
24
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
25
- wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
26
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
27
- as?: "div" | "section" | "nav" | "header" | "footer" | "article" | "aside";
28
- } & React.RefAttributes<HTMLDivElement>>;
19
+ type HStackProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof hStackVariants> & {
20
+ as?: 'div' | 'section' | 'nav' | 'header' | 'footer' | 'article' | 'aside';
21
+ ref?: React.Ref<HTMLDivElement>;
22
+ };
23
+ declare function HStack({ className, gap, align, justify, wrap, as, ref, ...props }: HStackProps): import("react/jsx-runtime").JSX.Element;
29
24
  declare const boxVariants: (props?: ({
30
25
  gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
31
26
  align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
32
27
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
33
28
  wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
34
29
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
35
- declare const Box: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
36
- gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
37
- align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
38
- justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
39
- wrap?: "wrap" | "nowrap" | "wrapReverse" | null | undefined;
40
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
41
- as?: "div" | "section" | "nav" | "header" | "footer" | "article" | "aside";
42
- } & React.RefAttributes<HTMLDivElement>>;
30
+ type BoxProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof boxVariants> & {
31
+ as?: 'div' | 'section' | 'nav' | 'header' | 'footer' | 'article' | 'aside';
32
+ ref?: React.Ref<HTMLDivElement>;
33
+ };
34
+ declare function Box({ className, gap, align, justify, wrap, as, ref, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
43
35
  export { VStack, HStack, vStackVariants, hStackVariants, boxVariants, Box };
44
- //# sourceMappingURL=stack.d.ts.map
package/dist/ui/stack.js CHANGED
@@ -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
  export {
147
169
  vStackVariants,
148
170
  hStackVariants,
@@ -8,4 +8,3 @@ export declare function StatCardGroup({ items, className, }: {
8
8
  items: StatItem[];
9
9
  className?: string;
10
10
  }): import("react/jsx-runtime").JSX.Element;
11
- //# sourceMappingURL=stat-card-group.d.ts.map
@@ -72,7 +72,6 @@ function CardFooter({
72
72
  }, undefined, false, undefined, this);
73
73
  }
74
74
  // ui/stack.tsx
75
- import * as React from "react";
76
75
  import { cva } from "class-variance-authority";
77
76
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
78
77
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
@@ -108,15 +107,22 @@ var vStackVariants = cva("flex flex-col", {
108
107
  justify: "start"
109
108
  }
110
109
  });
111
- var VStack = React.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
110
+ function VStack({
111
+ className,
112
+ gap,
113
+ align,
114
+ justify,
115
+ as = "div",
116
+ ref,
117
+ ...props
118
+ }) {
112
119
  const Comp = as;
113
120
  return /* @__PURE__ */ jsxDEV2(Comp, {
114
121
  ref,
115
122
  className: cn2(vStackVariants({ gap, align, justify }), className),
116
123
  ...props
117
124
  }, undefined, false, undefined, this);
118
- });
119
- VStack.displayName = "VStack";
125
+ }
120
126
  var hStackVariants = cva("flex flex-row", {
121
127
  variants: {
122
128
  gap: {
@@ -156,15 +162,23 @@ var hStackVariants = cva("flex flex-row", {
156
162
  wrap: "wrap"
157
163
  }
158
164
  });
159
- var HStack = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
165
+ function HStack({
166
+ className,
167
+ gap,
168
+ align,
169
+ justify,
170
+ wrap,
171
+ as = "div",
172
+ ref,
173
+ ...props
174
+ }) {
160
175
  const Comp = as;
161
176
  return /* @__PURE__ */ jsxDEV2(Comp, {
162
177
  ref,
163
178
  className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
164
179
  ...props
165
180
  }, undefined, false, undefined, this);
166
- });
167
- HStack.displayName = "HStack";
181
+ }
168
182
  var boxVariants = cva("flex flex-row", {
169
183
  variants: {
170
184
  gap: {
@@ -204,15 +218,23 @@ var boxVariants = cva("flex flex-row", {
204
218
  wrap: "nowrap"
205
219
  }
206
220
  });
207
- var Box = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
221
+ function Box({
222
+ className,
223
+ gap,
224
+ align,
225
+ justify,
226
+ wrap,
227
+ as = "div",
228
+ ref,
229
+ ...props
230
+ }) {
208
231
  const Comp = as;
209
232
  return /* @__PURE__ */ jsxDEV2(Comp, {
210
233
  ref,
211
234
  className: cn2(boxVariants({ gap, align, justify, wrap }), className),
212
235
  ...props
213
236
  }, undefined, false, undefined, this);
214
- });
215
- Box.displayName = "Box";
237
+ }
216
238
  // ui/stat-card-group.tsx
217
239
  import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
218
240
  function toneClasses(tone) {
@@ -10,4 +10,3 @@ export interface StepperProps extends VariantProps<typeof dotVariants> {
10
10
  }
11
11
  export declare function Stepper({ current, total, size, className }: StepperProps): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
13
- //# sourceMappingURL=stepper.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/stepper.tsx
147
169
  import { cva as cva2 } from "class-variance-authority";
148
170
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
@@ -4,4 +4,3 @@ declare function Switch({ className, thumbClassName, ...props }: React.Component
4
4
  thumbClassName?: string;
5
5
  }): import("react/jsx-runtime").JSX.Element;
6
6
  export { Switch };
7
- //# sourceMappingURL=switch.d.ts.map
@@ -8,4 +8,3 @@ declare function TableHead({ className, ...props }: React.ComponentPropsWithoutR
8
8
  declare function TableCell({ className, ...props }: React.ComponentPropsWithoutRef<'td'>): import("react/jsx-runtime").JSX.Element;
9
9
  declare function TableCaption({ className, ...props }: React.ComponentPropsWithoutRef<'caption'>): import("react/jsx-runtime").JSX.Element;
10
10
  export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
11
- //# sourceMappingURL=table.d.ts.map
package/dist/ui/tabs.d.ts CHANGED
@@ -5,4 +5,3 @@ declare function TabsList({ className, ...props }: React.ComponentProps<typeof T
5
5
  declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
6
  declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
7
  export { Tabs, TabsList, TabsTrigger, TabsContent };
8
- //# sourceMappingURL=tabs.d.ts.map
package/dist/ui/text.d.ts CHANGED
@@ -4,4 +4,3 @@ export type TextProps = React.ComponentPropsWithoutRef<'p'> & {
4
4
  };
5
5
  declare function Text({ className, asChild, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
6
6
  export { Text };
7
- //# sourceMappingURL=text.d.ts.map
@@ -2,4 +2,3 @@ import * as React from 'react';
2
2
  export type TextareaProps = React.ComponentPropsWithoutRef<'textarea'>;
3
3
  declare function Textarea({ className, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
4
4
  export { Textarea };
5
- //# sourceMappingURL=textarea.d.ts.map
@@ -7,4 +7,3 @@ export interface TimePickerProps {
7
7
  className?: string;
8
8
  }
9
9
  export declare function TimePicker({ value, onChange, disabled, placeholder, is24Hour, className, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
10
- //# sourceMappingURL=time-picker.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/popover.tsx
49
54
  import * as PopoverPrimitive from "@radix-ui/react-popover";
50
55
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
@@ -91,7 +96,7 @@ function PopoverAnchor({
91
96
  }, undefined, false, undefined, this);
92
97
  }
93
98
  // ui/time-picker.tsx
94
- import * as React2 from "react";
99
+ import * as React from "react";
95
100
  import { cn as cn3 } from "@contractspec/lib.ui-kit-core/utils";
96
101
  import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
97
102
  "use client";
@@ -112,9 +117,9 @@ function TimePicker({
112
117
  is24Hour = true,
113
118
  className
114
119
  }) {
115
- const [open, setOpen] = React2.useState(false);
116
- const [hours, setHours] = React2.useState(() => value ? String(value.getHours()).padStart(2, "0") : "");
117
- const [minutes, setMinutes] = React2.useState(() => value ? String(value.getMinutes()).padStart(2, "0") : "");
120
+ const [open, setOpen] = React.useState(false);
121
+ const [hours, setHours] = React.useState(() => value ? String(value.getHours()).padStart(2, "0") : "");
122
+ const [minutes, setMinutes] = React.useState(() => value ? String(value.getMinutes()).padStart(2, "0") : "");
118
123
  const commit = (h, m) => {
119
124
  const base = value ?? new Date;
120
125
  const next = new Date(base);
@@ -2,15 +2,27 @@ import * as React from 'react';
2
2
  import * as ToastPrimitives from '@radix-ui/react-toast';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
4
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
- declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
- declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
5
+ declare function ToastViewport({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> & {
6
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Viewport>>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare const toastVariants: (props?: ({
7
9
  variant?: "default" | "destructive" | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
- declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
- declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ declare function Toast({ className, variant, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants> & {
12
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Root>>;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ declare function ToastAction({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action> & {
15
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Action>>;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ declare function ToastClose({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close> & {
18
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Close>>;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ declare function ToastTitle({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title> & {
21
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Title>>;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function ToastDescription({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description> & {
24
+ ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Description>>;
25
+ }): import("react/jsx-runtime").JSX.Element;
13
26
  type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
27
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
28
  export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
16
- //# sourceMappingURL=toast.d.ts.map
package/dist/ui/toast.js CHANGED
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/toast.tsx
5
- import * as React from "react";
6
5
  import * as ToastPrimitives from "@radix-ui/react-toast";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { X } from "lucide-react";
@@ -10,12 +9,17 @@ import { cn } from "@contractspec/lib.ui-kit-core/utils";
10
9
  import { jsxDEV } from "react/jsx-dev-runtime";
11
10
  "use client";
12
11
  var ToastProvider = ToastPrimitives.Provider;
13
- var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
12
+ function ToastViewport({
13
+ className,
14
14
  ref,
15
- className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
16
15
  ...props
17
- }, undefined, false, undefined, this));
18
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
16
+ }) {
17
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
18
+ ref,
19
+ className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
20
+ ...props
21
+ }, undefined, false, undefined, this);
22
+ }
19
23
  var toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full", {
20
24
  variants: {
21
25
  variant: {
@@ -27,42 +31,66 @@ var toastVariants = cva("group pointer-events-auto relative flex w-full items-ce
27
31
  variant: "default"
28
32
  }
29
33
  });
30
- var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
34
+ function Toast({
35
+ className,
36
+ variant,
37
+ ref,
38
+ ...props
39
+ }) {
31
40
  return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
32
41
  ref,
33
42
  className: cn(toastVariants({ variant }), className),
34
43
  ...props
35
44
  }, undefined, false, undefined, this);
36
- });
37
- Toast.displayName = ToastPrimitives.Root.displayName;
38
- var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
45
+ }
46
+ function ToastAction({
47
+ className,
39
48
  ref,
40
- className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
41
49
  ...props
42
- }, undefined, false, undefined, this));
43
- ToastAction.displayName = ToastPrimitives.Action.displayName;
44
- var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
50
+ }) {
51
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
52
+ ref,
53
+ className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
54
+ ...props
55
+ }, undefined, false, undefined, this);
56
+ }
57
+ function ToastClose({
58
+ className,
45
59
  ref,
46
- className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
47
- "toast-close": "",
48
- ...props,
49
- children: /* @__PURE__ */ jsxDEV(X, {
50
- className: "h-4 w-4"
51
- }, undefined, false, undefined, this)
52
- }, undefined, false, undefined, this));
53
- ToastClose.displayName = ToastPrimitives.Close.displayName;
54
- var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
60
+ ...props
61
+ }) {
62
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
63
+ ref,
64
+ className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
65
+ "toast-close": "",
66
+ ...props,
67
+ children: /* @__PURE__ */ jsxDEV(X, {
68
+ className: "h-4 w-4"
69
+ }, undefined, false, undefined, this)
70
+ }, undefined, false, undefined, this);
71
+ }
72
+ function ToastTitle({
73
+ className,
55
74
  ref,
56
- className: cn("text-base font-semibold", className),
57
75
  ...props
58
- }, undefined, false, undefined, this));
59
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
60
- var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
76
+ }) {
77
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
78
+ ref,
79
+ className: cn("text-base font-semibold", className),
80
+ ...props
81
+ }, undefined, false, undefined, this);
82
+ }
83
+ function ToastDescription({
84
+ className,
61
85
  ref,
62
- className: cn("text-base opacity-90", className),
63
86
  ...props
64
- }, undefined, false, undefined, this));
65
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
87
+ }) {
88
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
89
+ ref,
90
+ className: cn("text-base opacity-90", className),
91
+ ...props
92
+ }, undefined, false, undefined, this);
93
+ }
66
94
  export {
67
95
  ToastViewport,
68
96
  ToastTitle,
@@ -1,2 +1 @@
1
1
  export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=toaster.d.ts.map