@schemavaults/ui 0.11.128

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 (509) hide show
  1. package/README.md +58 -0
  2. package/dist/components/error/ErrorPage/ErrorPage.d.ts +9 -0
  3. package/dist/components/error/ErrorPage/ErrorPage.js +25 -0
  4. package/dist/components/error/ErrorPage/ErrorPage.js.map +1 -0
  5. package/dist/components/error/ErrorPage/index.d.ts +3 -0
  6. package/dist/components/error/ErrorPage/index.js +3 -0
  7. package/dist/components/error/ErrorPage/index.js.map +1 -0
  8. package/dist/components/error/index.d.ts +2 -0
  9. package/dist/components/error/index.js +2 -0
  10. package/dist/components/error/index.js.map +1 -0
  11. package/dist/components/hoc/any-position-context-menu-hoc.d.ts +24 -0
  12. package/dist/components/hoc/any-position-context-menu-hoc.js +118 -0
  13. package/dist/components/hoc/any-position-context-menu-hoc.js.map +1 -0
  14. package/dist/components/hoc/index.d.ts +2 -0
  15. package/dist/components/hoc/index.js +2 -0
  16. package/dist/components/hoc/index.js.map +1 -0
  17. package/dist/components/hooks/index.d.ts +4 -0
  18. package/dist/components/hooks/index.js +3 -0
  19. package/dist/components/hooks/index.js.map +1 -0
  20. package/dist/components/hooks/use-debug.d.ts +2 -0
  21. package/dist/components/hooks/use-debug.js +23 -0
  22. package/dist/components/hooks/use-debug.js.map +1 -0
  23. package/dist/components/hooks/use-mobile.d.ts +2 -0
  24. package/dist/components/hooks/use-mobile.js +18 -0
  25. package/dist/components/hooks/use-mobile.js.map +1 -0
  26. package/dist/components/hooks/use-toast.d.ts +44 -0
  27. package/dist/components/hooks/use-toast.js +129 -0
  28. package/dist/components/hooks/use-toast.js.map +1 -0
  29. package/dist/components/layout/dashboard-layout/DashboardLayoutProps.d.ts +17 -0
  30. package/dist/components/layout/dashboard-layout/DashboardLayoutProps.js +2 -0
  31. package/dist/components/layout/dashboard-layout/DashboardLayoutProps.js.map +1 -0
  32. package/dist/components/layout/dashboard-layout/customizable-dashboard-component-type.d.ts +11 -0
  33. package/dist/components/layout/dashboard-layout/customizable-dashboard-component-type.js +2 -0
  34. package/dist/components/layout/dashboard-layout/customizable-dashboard-component-type.js.map +1 -0
  35. package/dist/components/layout/dashboard-layout/dashboard-layout-main-content-container.d.ts +5 -0
  36. package/dist/components/layout/dashboard-layout/dashboard-layout-main-content-container.js +15 -0
  37. package/dist/components/layout/dashboard-layout/dashboard-layout-main-content-container.js.map +1 -0
  38. package/dist/components/layout/dashboard-layout/dashboard-layout.d.ts +11 -0
  39. package/dist/components/layout/dashboard-layout/dashboard-layout.js +30 -0
  40. package/dist/components/layout/dashboard-layout/dashboard-layout.js.map +1 -0
  41. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-layout-sidebar-trigger.d.ts +3 -0
  42. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-layout-sidebar-trigger.js +18 -0
  43. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-layout-sidebar-trigger.js.map +1 -0
  44. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-admin-only-items-context.d.ts +1 -0
  45. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-admin-only-items-context.js +5 -0
  46. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-admin-only-items-context.js.map +1 -0
  47. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-content.d.ts +7 -0
  48. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-content.js +25 -0
  49. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-content.js.map +1 -0
  50. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-context-provider.d.ts +11 -0
  51. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-context-provider.js +10 -0
  52. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-context-provider.js.map +1 -0
  53. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-footer.d.ts +9 -0
  54. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-footer.js +10 -0
  55. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-footer.js.map +1 -0
  56. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-header.d.ts +10 -0
  57. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-header.js +39 -0
  58. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-header.js.map +1 -0
  59. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-definition.d.ts +11 -0
  60. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-definition.js +2 -0
  61. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-definition.js.map +1 -0
  62. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group-renderer.d.ts +8 -0
  63. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group-renderer.js +57 -0
  64. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group-renderer.js.map +1 -0
  65. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group.d.ts +7 -0
  66. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group.js +2 -0
  67. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-group.js.map +1 -0
  68. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-renderer.d.ts +8 -0
  69. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-renderer.js +64 -0
  70. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-item-renderer.js.map +1 -0
  71. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-items-and-groups-context.d.ts +4 -0
  72. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-items-and-groups-context.js +4 -0
  73. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-items-and-groups-context.js.map +1 -0
  74. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-layout.d.ts +13 -0
  75. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-layout.js +30 -0
  76. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-layout.js.map +1 -0
  77. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state-provider.d.ts +7 -0
  78. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state-provider.js +31 -0
  79. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state-provider.js.map +1 -0
  80. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state.d.ts +7 -0
  81. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state.js +8 -0
  82. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-open-state.js.map +1 -0
  83. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-sizing.d.ts +37 -0
  84. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-sizing.js +21 -0
  85. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar-sizing.js.map +1 -0
  86. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar.d.ts +4 -0
  87. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar.js +27 -0
  88. package/dist/components/layout/dashboard-layout/dashboard-sidebar/dashboard-sidebar.js.map +1 -0
  89. package/dist/components/layout/dashboard-layout/dashboard-sidebar/index.d.ts +12 -0
  90. package/dist/components/layout/dashboard-layout/dashboard-sidebar/index.js +8 -0
  91. package/dist/components/layout/dashboard-layout/dashboard-sidebar/index.js.map +1 -0
  92. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useCloseDashboardSidebarOnRouteChange.d.ts +2 -0
  93. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useCloseDashboardSidebarOnRouteChange.js +21 -0
  94. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useCloseDashboardSidebarOnRouteChange.js.map +1 -0
  95. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarItemsAndGroups.d.ts +3 -0
  96. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarItemsAndGroups.js +11 -0
  97. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarItemsAndGroups.js.map +1 -0
  98. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenState.d.ts +3 -0
  99. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenState.js +12 -0
  100. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenState.js.map +1 -0
  101. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenStateDispatch.d.ts +3 -0
  102. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenStateDispatch.js +9 -0
  103. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarOpenStateDispatch.js.map +1 -0
  104. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarSizing.d.ts +3 -0
  105. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarSizing.js +8 -0
  106. package/dist/components/layout/dashboard-layout/dashboard-sidebar/useDashboardSidebarSizing.js.map +1 -0
  107. package/dist/components/layout/dashboard-layout/index.d.ts +6 -0
  108. package/dist/components/layout/dashboard-layout/index.js +4 -0
  109. package/dist/components/layout/dashboard-layout/index.js.map +1 -0
  110. package/dist/components/layout/dashboard-layout/toggle-dashboard-layout-collapsed-transition-time.d.ts +3 -0
  111. package/dist/components/layout/dashboard-layout/toggle-dashboard-layout-collapsed-transition-time.js +4 -0
  112. package/dist/components/layout/dashboard-layout/toggle-dashboard-layout-collapsed-transition-time.js.map +1 -0
  113. package/dist/components/layout/index.d.ts +6 -0
  114. package/dist/components/layout/index.js +4 -0
  115. package/dist/components/layout/index.js.map +1 -0
  116. package/dist/components/layout/page-column-container/index.d.ts +3 -0
  117. package/dist/components/layout/page-column-container/index.js +3 -0
  118. package/dist/components/layout/page-column-container/index.js.map +1 -0
  119. package/dist/components/layout/page-column-container/page-column-container.d.ts +12 -0
  120. package/dist/components/layout/page-column-container/page-column-container.js +14 -0
  121. package/dist/components/layout/page-column-container/page-column-container.js.map +1 -0
  122. package/dist/components/layout/themed-page-container/index.d.ts +3 -0
  123. package/dist/components/layout/themed-page-container/index.js +3 -0
  124. package/dist/components/layout/themed-page-container/index.js.map +1 -0
  125. package/dist/components/layout/themed-page-container/themed-page-container.d.ts +18 -0
  126. package/dist/components/layout/themed-page-container/themed-page-container.js +21 -0
  127. package/dist/components/layout/themed-page-container/themed-page-container.js.map +1 -0
  128. package/dist/components/navigation/back-button.d.ts +6 -0
  129. package/dist/components/navigation/back-button.js +8 -0
  130. package/dist/components/navigation/back-button.js.map +1 -0
  131. package/dist/components/navigation/index.d.ts +2 -0
  132. package/dist/components/navigation/index.js +2 -0
  133. package/dist/components/navigation/index.js.map +1 -0
  134. package/dist/components/ui/alert/alert.d.ts +29 -0
  135. package/dist/components/ui/alert/alert.js +35 -0
  136. package/dist/components/ui/alert/alert.js.map +1 -0
  137. package/dist/components/ui/alert/index.d.ts +2 -0
  138. package/dist/components/ui/alert/index.js +2 -0
  139. package/dist/components/ui/alert/index.js.map +1 -0
  140. package/dist/components/ui/background-blur/background-blur.d.ts +10 -0
  141. package/dist/components/ui/background-blur/background-blur.js +45 -0
  142. package/dist/components/ui/background-blur/background-blur.js.map +1 -0
  143. package/dist/components/ui/background-blur/index.d.ts +2 -0
  144. package/dist/components/ui/background-blur/index.js +2 -0
  145. package/dist/components/ui/background-blur/index.js.map +1 -0
  146. package/dist/components/ui/badge/badge-variants.d.ts +2 -0
  147. package/dist/components/ui/badge/badge-variants.js +7 -0
  148. package/dist/components/ui/badge/badge-variants.js.map +1 -0
  149. package/dist/components/ui/badge/badge.d.ts +10 -0
  150. package/dist/components/ui/badge/badge.js +24 -0
  151. package/dist/components/ui/badge/badge.js.map +1 -0
  152. package/dist/components/ui/badge/index.d.ts +2 -0
  153. package/dist/components/ui/badge/index.js +2 -0
  154. package/dist/components/ui/badge/index.js.map +1 -0
  155. package/dist/components/ui/button/button.d.ts +15 -0
  156. package/dist/components/ui/button/button.js +41 -0
  157. package/dist/components/ui/button/button.js.map +1 -0
  158. package/dist/components/ui/button/index.d.ts +3 -0
  159. package/dist/components/ui/button/index.js +3 -0
  160. package/dist/components/ui/button/index.js.map +1 -0
  161. package/dist/components/ui/card/card.d.ts +26 -0
  162. package/dist/components/ui/card/card.js +17 -0
  163. package/dist/components/ui/card/card.js.map +1 -0
  164. package/dist/components/ui/card/index.d.ts +2 -0
  165. package/dist/components/ui/card/index.js +2 -0
  166. package/dist/components/ui/card/index.js.map +1 -0
  167. package/dist/components/ui/checkbox/checkbox.d.ts +9 -0
  168. package/dist/components/ui/checkbox/checkbox.js +10 -0
  169. package/dist/components/ui/checkbox/checkbox.js.map +1 -0
  170. package/dist/components/ui/checkbox/index.d.ts +3 -0
  171. package/dist/components/ui/checkbox/index.js +3 -0
  172. package/dist/components/ui/checkbox/index.js.map +1 -0
  173. package/dist/components/ui/command/command.d.ts +39 -0
  174. package/dist/components/ui/command/command.js +29 -0
  175. package/dist/components/ui/command/command.js.map +1 -0
  176. package/dist/components/ui/command/index.d.ts +2 -0
  177. package/dist/components/ui/command/index.js +2 -0
  178. package/dist/components/ui/command/index.js.map +1 -0
  179. package/dist/components/ui/context-menu/context-menu.d.ts +25 -0
  180. package/dist/components/ui/context-menu/context-menu.js +52 -0
  181. package/dist/components/ui/context-menu/context-menu.js.map +1 -0
  182. package/dist/components/ui/context-menu/index.d.ts +2 -0
  183. package/dist/components/ui/context-menu/index.js +2 -0
  184. package/dist/components/ui/context-menu/index.js.map +1 -0
  185. package/dist/components/ui/datatable/datatable.d.ts +10 -0
  186. package/dist/components/ui/datatable/datatable.js +48 -0
  187. package/dist/components/ui/datatable/datatable.js.map +1 -0
  188. package/dist/components/ui/datatable/index.d.ts +2 -0
  189. package/dist/components/ui/datatable/index.js +2 -0
  190. package/dist/components/ui/datatable/index.js.map +1 -0
  191. package/dist/components/ui/dialog/dialog.d.ts +31 -0
  192. package/dist/components/ui/dialog/dialog.js +23 -0
  193. package/dist/components/ui/dialog/dialog.js.map +1 -0
  194. package/dist/components/ui/dialog/index.d.ts +2 -0
  195. package/dist/components/ui/dialog/index.js +2 -0
  196. package/dist/components/ui/dialog/index.js.map +1 -0
  197. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +51 -0
  198. package/dist/components/ui/dropdown-menu/dropdown-menu.js +36 -0
  199. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -0
  200. package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
  201. package/dist/components/ui/dropdown-menu/index.js +2 -0
  202. package/dist/components/ui/dropdown-menu/index.js.map +1 -0
  203. package/dist/components/ui/file-input/FileInput.d.ts +17 -0
  204. package/dist/components/ui/file-input/FileInput.js +101 -0
  205. package/dist/components/ui/file-input/FileInput.js.map +1 -0
  206. package/dist/components/ui/file-input/fileToBuffer.d.ts +3 -0
  207. package/dist/components/ui/file-input/fileToBuffer.js +62 -0
  208. package/dist/components/ui/file-input/fileToBuffer.js.map +1 -0
  209. package/dist/components/ui/file-input/index.d.ts +2 -0
  210. package/dist/components/ui/file-input/index.js +2 -0
  211. package/dist/components/ui/file-input/index.js.map +1 -0
  212. package/dist/components/ui/file-input/serializeFile.d.ts +3 -0
  213. package/dist/components/ui/file-input/serializeFile.js +26 -0
  214. package/dist/components/ui/file-input/serializeFile.js.map +1 -0
  215. package/dist/components/ui/file-input/useDoesFilenameHaveValidFileExtension.d.ts +3 -0
  216. package/dist/components/ui/file-input/useDoesFilenameHaveValidFileExtension.js +27 -0
  217. package/dist/components/ui/file-input/useDoesFilenameHaveValidFileExtension.js.map +1 -0
  218. package/dist/components/ui/form.d.ts +41 -0
  219. package/dist/components/ui/form.js +65 -0
  220. package/dist/components/ui/form.js.map +1 -0
  221. package/dist/components/ui/fullscreen-image/fullscreen-image.d.ts +47 -0
  222. package/dist/components/ui/fullscreen-image/fullscreen-image.js +77 -0
  223. package/dist/components/ui/fullscreen-image/fullscreen-image.js.map +1 -0
  224. package/dist/components/ui/fullscreen-image/index.d.ts +3 -0
  225. package/dist/components/ui/fullscreen-image/index.js +3 -0
  226. package/dist/components/ui/fullscreen-image/index.js.map +1 -0
  227. package/dist/components/ui/hover-card/hover-card.d.ts +9 -0
  228. package/dist/components/ui/hover-card/hover-card.js +10 -0
  229. package/dist/components/ui/hover-card/hover-card.js.map +1 -0
  230. package/dist/components/ui/hover-card/index.d.ts +2 -0
  231. package/dist/components/ui/hover-card/index.js +2 -0
  232. package/dist/components/ui/hover-card/index.js.map +1 -0
  233. package/dist/components/ui/icon/DefaultIconSize.d.ts +2 -0
  234. package/dist/components/ui/icon/DefaultIconSize.js +3 -0
  235. package/dist/components/ui/icon/DefaultIconSize.js.map +1 -0
  236. package/dist/components/ui/icon/Icon.d.ts +4 -0
  237. package/dist/components/ui/icon/Icon.js +5 -0
  238. package/dist/components/ui/icon/Icon.js.map +1 -0
  239. package/dist/components/ui/icon/IconFacade.d.ts +4 -0
  240. package/dist/components/ui/icon/IconFacade.js +63 -0
  241. package/dist/components/ui/icon/IconFacade.js.map +1 -0
  242. package/dist/components/ui/icon/IconFromSvgDataUrl.d.ts +7 -0
  243. package/dist/components/ui/icon/IconFromSvgDataUrl.js +31 -0
  244. package/dist/components/ui/icon/IconFromSvgDataUrl.js.map +1 -0
  245. package/dist/components/ui/icon/IconFromSvgFilepath.d.ts +7 -0
  246. package/dist/components/ui/icon/IconFromSvgFilepath.js +43 -0
  247. package/dist/components/ui/icon/IconFromSvgFilepath.js.map +1 -0
  248. package/dist/components/ui/icon/IconFromUtf8XmlSvg.d.ts +6 -0
  249. package/dist/components/ui/icon/IconFromUtf8XmlSvg.js +18 -0
  250. package/dist/components/ui/icon/IconFromUtf8XmlSvg.js.map +1 -0
  251. package/dist/components/ui/icon/IconProps.d.ts +7 -0
  252. package/dist/components/ui/icon/IconProps.js +3 -0
  253. package/dist/components/ui/icon/IconProps.js.map +1 -0
  254. package/dist/components/ui/icon/IconSkeleton.d.ts +4 -0
  255. package/dist/components/ui/icon/IconSkeleton.js +8 -0
  256. package/dist/components/ui/icon/IconSkeleton.js.map +1 -0
  257. package/dist/components/ui/icon/LazySvgIcon.d.ts +7 -0
  258. package/dist/components/ui/icon/LazySvgIcon.js +10 -0
  259. package/dist/components/ui/icon/LazySvgIcon.js.map +1 -0
  260. package/dist/components/ui/icon/LoadedSvgIcon.d.ts +8 -0
  261. package/dist/components/ui/icon/LoadedSvgIcon.js +8 -0
  262. package/dist/components/ui/icon/LoadedSvgIcon.js.map +1 -0
  263. package/dist/components/ui/icon/RenderSvg.d.ts +7 -0
  264. package/dist/components/ui/icon/RenderSvg.js +24 -0
  265. package/dist/components/ui/icon/RenderSvg.js.map +1 -0
  266. package/dist/components/ui/icon/SvgDataUrl.d.ts +4 -0
  267. package/dist/components/ui/icon/SvgDataUrl.js +16 -0
  268. package/dist/components/ui/icon/SvgDataUrl.js.map +1 -0
  269. package/dist/components/ui/icon/index.d.ts +3 -0
  270. package/dist/components/ui/icon/index.js +3 -0
  271. package/dist/components/ui/icon/index.js.map +1 -0
  272. package/dist/components/ui/icon/parseSvgIcon.d.ts +8 -0
  273. package/dist/components/ui/icon/parseSvgIcon.js +27 -0
  274. package/dist/components/ui/icon/parseSvgIcon.js.map +1 -0
  275. package/dist/components/ui/icon/toReactSvgTransform.d.ts +2 -0
  276. package/dist/components/ui/icon/toReactSvgTransform.js +12 -0
  277. package/dist/components/ui/icon/toReactSvgTransform.js.map +1 -0
  278. package/dist/components/ui/index.d.ts +86 -0
  279. package/dist/components/ui/index.js +44 -0
  280. package/dist/components/ui/index.js.map +1 -0
  281. package/dist/components/ui/inline-menu.d.ts +21 -0
  282. package/dist/components/ui/inline-menu.js +28 -0
  283. package/dist/components/ui/inline-menu.js.map +1 -0
  284. package/dist/components/ui/input/index.d.ts +3 -0
  285. package/dist/components/ui/input/index.js +3 -0
  286. package/dist/components/ui/input/index.js.map +1 -0
  287. package/dist/components/ui/input/input.d.ts +9 -0
  288. package/dist/components/ui/input/input.js +10 -0
  289. package/dist/components/ui/input/input.js.map +1 -0
  290. package/dist/components/ui/key-value-with-skeleton/index.d.ts +3 -0
  291. package/dist/components/ui/key-value-with-skeleton/index.js +3 -0
  292. package/dist/components/ui/key-value-with-skeleton/index.js.map +1 -0
  293. package/dist/components/ui/key-value-with-skeleton/key-value-with-skeleton.d.ts +7 -0
  294. package/dist/components/ui/key-value-with-skeleton/key-value-with-skeleton.js +55 -0
  295. package/dist/components/ui/key-value-with-skeleton/key-value-with-skeleton.js.map +1 -0
  296. package/dist/components/ui/label/index.d.ts +3 -0
  297. package/dist/components/ui/label/index.js +3 -0
  298. package/dist/components/ui/label/index.js.map +1 -0
  299. package/dist/components/ui/label/label.d.ts +9 -0
  300. package/dist/components/ui/label/label.js +11 -0
  301. package/dist/components/ui/label/label.js.map +1 -0
  302. package/dist/components/ui/loading-page/index.d.ts +3 -0
  303. package/dist/components/ui/loading-page/index.js +3 -0
  304. package/dist/components/ui/loading-page/index.js.map +1 -0
  305. package/dist/components/ui/loading-page/loading-page.d.ts +5 -0
  306. package/dist/components/ui/loading-page/loading-page.js +7 -0
  307. package/dist/components/ui/loading-page/loading-page.js.map +1 -0
  308. package/dist/components/ui/navigation-menu/index.d.ts +2 -0
  309. package/dist/components/ui/navigation-menu/index.js +2 -0
  310. package/dist/components/ui/navigation-menu/index.js.map +1 -0
  311. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +14 -0
  312. package/dist/components/ui/navigation-menu/navigation-menu.js +33 -0
  313. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -0
  314. package/dist/components/ui/popover/index.d.ts +2 -0
  315. package/dist/components/ui/popover/index.js +2 -0
  316. package/dist/components/ui/popover/index.js.map +1 -0
  317. package/dist/components/ui/popover/popover.d.ts +9 -0
  318. package/dist/components/ui/popover/popover.js +10 -0
  319. package/dist/components/ui/popover/popover.js.map +1 -0
  320. package/dist/components/ui/radio-group/index.d.ts +2 -0
  321. package/dist/components/ui/radio-group/index.js +2 -0
  322. package/dist/components/ui/radio-group/index.js.map +1 -0
  323. package/dist/components/ui/radio-group/radio-group.d.ts +11 -0
  324. package/dist/components/ui/radio-group/radio-group.js +16 -0
  325. package/dist/components/ui/radio-group/radio-group.js.map +1 -0
  326. package/dist/components/ui/scroll-area/index.d.ts +1 -0
  327. package/dist/components/ui/scroll-area/index.js +2 -0
  328. package/dist/components/ui/scroll-area/index.js.map +1 -0
  329. package/dist/components/ui/scroll-area/scroll-area.d.ts +5 -0
  330. package/dist/components/ui/scroll-area/scroll-area.js +14 -0
  331. package/dist/components/ui/scroll-area/scroll-area.js.map +1 -0
  332. package/dist/components/ui/select/index.d.ts +2 -0
  333. package/dist/components/ui/select/index.js +2 -0
  334. package/dist/components/ui/select/index.js.map +1 -0
  335. package/dist/components/ui/select/select.d.ts +15 -0
  336. package/dist/components/ui/select/select.js +39 -0
  337. package/dist/components/ui/select/select.js.map +1 -0
  338. package/dist/components/ui/separator/index.d.ts +2 -0
  339. package/dist/components/ui/separator/index.js +2 -0
  340. package/dist/components/ui/separator/index.js.map +1 -0
  341. package/dist/components/ui/separator/separator.d.ts +9 -0
  342. package/dist/components/ui/separator/separator.js +11 -0
  343. package/dist/components/ui/separator/separator.js.map +1 -0
  344. package/dist/components/ui/sheet/index.d.ts +2 -0
  345. package/dist/components/ui/sheet/index.js +2 -0
  346. package/dist/components/ui/sheet/index.js.map +1 -0
  347. package/dist/components/ui/sheet/sheet.d.ts +13 -0
  348. package/dist/components/ui/sheet/sheet.js +41 -0
  349. package/dist/components/ui/sheet/sheet.js.map +1 -0
  350. package/dist/components/ui/skeleton/index.d.ts +3 -0
  351. package/dist/components/ui/skeleton/index.js +3 -0
  352. package/dist/components/ui/skeleton/index.js.map +1 -0
  353. package/dist/components/ui/skeleton/skeleton.d.ts +3 -0
  354. package/dist/components/ui/skeleton/skeleton.js +8 -0
  355. package/dist/components/ui/skeleton/skeleton.js.map +1 -0
  356. package/dist/components/ui/slider/index.d.ts +2 -0
  357. package/dist/components/ui/slider/index.js +2 -0
  358. package/dist/components/ui/slider/index.js.map +1 -0
  359. package/dist/components/ui/slider/slider.d.ts +11 -0
  360. package/dist/components/ui/slider/slider.js +11 -0
  361. package/dist/components/ui/slider/slider.js.map +1 -0
  362. package/dist/components/ui/split-pane/index.d.ts +3 -0
  363. package/dist/components/ui/split-pane/index.js +2 -0
  364. package/dist/components/ui/split-pane/index.js.map +1 -0
  365. package/dist/components/ui/split-pane/split-pane-acceptable-split-range.d.ts +3 -0
  366. package/dist/components/ui/split-pane/split-pane-acceptable-split-range.js +4 -0
  367. package/dist/components/ui/split-pane/split-pane-acceptable-split-range.js.map +1 -0
  368. package/dist/components/ui/split-pane/split-pane-directions.d.ts +3 -0
  369. package/dist/components/ui/split-pane/split-pane-directions.js +6 -0
  370. package/dist/components/ui/split-pane/split-pane-directions.js.map +1 -0
  371. package/dist/components/ui/split-pane/split-pane.d.ts +13 -0
  372. package/dist/components/ui/split-pane/split-pane.js +95 -0
  373. package/dist/components/ui/split-pane/split-pane.js.map +1 -0
  374. package/dist/components/ui/split-pane/useSplitPaneDirectionOrDefault.d.ts +3 -0
  375. package/dist/components/ui/split-pane/useSplitPaneDirectionOrDefault.js +25 -0
  376. package/dist/components/ui/split-pane/useSplitPaneDirectionOrDefault.js.map +1 -0
  377. package/dist/components/ui/status-blinker/index.d.ts +2 -0
  378. package/dist/components/ui/status-blinker/index.js +2 -0
  379. package/dist/components/ui/status-blinker/index.js.map +1 -0
  380. package/dist/components/ui/status-blinker/status-blinker.d.ts +8 -0
  381. package/dist/components/ui/status-blinker/status-blinker.js +24 -0
  382. package/dist/components/ui/status-blinker/status-blinker.js.map +1 -0
  383. package/dist/components/ui/stepper/base-stepper-state-type.d.ts +1 -0
  384. package/dist/components/ui/stepper/base-stepper-state-type.js +2 -0
  385. package/dist/components/ui/stepper/base-stepper-state-type.js.map +1 -0
  386. package/dist/components/ui/stepper/index.d.ts +2 -0
  387. package/dist/components/ui/stepper/index.js +2 -0
  388. package/dist/components/ui/stepper/index.js.map +1 -0
  389. package/dist/components/ui/stepper/step_definition.d.ts +25 -0
  390. package/dist/components/ui/stepper/step_definition.js +2 -0
  391. package/dist/components/ui/stepper/step_definition.js.map +1 -0
  392. package/dist/components/ui/stepper/stepper-body.d.ts +2 -0
  393. package/dist/components/ui/stepper/stepper-body.js +28 -0
  394. package/dist/components/ui/stepper/stepper-body.js.map +1 -0
  395. package/dist/components/ui/stepper/stepper-context-type.d.ts +9 -0
  396. package/dist/components/ui/stepper/stepper-context-type.js +2 -0
  397. package/dist/components/ui/stepper/stepper-context-type.js.map +1 -0
  398. package/dist/components/ui/stepper/stepper-context.d.ts +2 -0
  399. package/dist/components/ui/stepper/stepper-context.js +3 -0
  400. package/dist/components/ui/stepper/stepper-context.js.map +1 -0
  401. package/dist/components/ui/stepper/stepper-footer.d.ts +10 -0
  402. package/dist/components/ui/stepper/stepper-footer.js +89 -0
  403. package/dist/components/ui/stepper/stepper-footer.js.map +1 -0
  404. package/dist/components/ui/stepper/stepper-provider.d.ts +11 -0
  405. package/dist/components/ui/stepper/stepper-provider.js +38 -0
  406. package/dist/components/ui/stepper/stepper-provider.js.map +1 -0
  407. package/dist/components/ui/stepper/stepper-types.d.ts +21 -0
  408. package/dist/components/ui/stepper/stepper-types.js +2 -0
  409. package/dist/components/ui/stepper/stepper-types.js.map +1 -0
  410. package/dist/components/ui/stepper/stepper.d.ts +5 -0
  411. package/dist/components/ui/stepper/stepper.js +28 -0
  412. package/dist/components/ui/stepper/stepper.js.map +1 -0
  413. package/dist/components/ui/stepper/steps-indicator.d.ts +5 -0
  414. package/dist/components/ui/stepper/steps-indicator.js +36 -0
  415. package/dist/components/ui/stepper/steps-indicator.js.map +1 -0
  416. package/dist/components/ui/stepper/useStepperContext.d.ts +4 -0
  417. package/dist/components/ui/stepper/useStepperContext.js +13 -0
  418. package/dist/components/ui/stepper/useStepperContext.js.map +1 -0
  419. package/dist/components/ui/table.d.ts +34 -0
  420. package/dist/components/ui/table.js +21 -0
  421. package/dist/components/ui/table.js.map +1 -0
  422. package/dist/components/ui/tabs/Tabs.d.ts +23 -0
  423. package/dist/components/ui/tabs/Tabs.js +19 -0
  424. package/dist/components/ui/tabs/Tabs.js.map +1 -0
  425. package/dist/components/ui/tabs/index.d.ts +2 -0
  426. package/dist/components/ui/tabs/index.js +2 -0
  427. package/dist/components/ui/tabs/index.js.map +1 -0
  428. package/dist/components/ui/textarea/index.d.ts +3 -0
  429. package/dist/components/ui/textarea/index.js +3 -0
  430. package/dist/components/ui/textarea/index.js.map +1 -0
  431. package/dist/components/ui/textarea/textarea.d.ts +9 -0
  432. package/dist/components/ui/textarea/textarea.js +10 -0
  433. package/dist/components/ui/textarea/textarea.js.map +1 -0
  434. package/dist/components/ui/themed-page-background/index.d.ts +3 -0
  435. package/dist/components/ui/themed-page-background/index.js +3 -0
  436. package/dist/components/ui/themed-page-background/index.js.map +1 -0
  437. package/dist/components/ui/themed-page-background/themed-page-background.d.ts +16 -0
  438. package/dist/components/ui/themed-page-background/themed-page-background.js +23 -0
  439. package/dist/components/ui/themed-page-background/themed-page-background.js.map +1 -0
  440. package/dist/components/ui/toast/index.d.ts +2 -0
  441. package/dist/components/ui/toast/index.js +2 -0
  442. package/dist/components/ui/toast/index.js.map +1 -0
  443. package/dist/components/ui/toast/toast-variants.d.ts +2 -0
  444. package/dist/components/ui/toast/toast-variants.js +6 -0
  445. package/dist/components/ui/toast/toast-variants.js.map +1 -0
  446. package/dist/components/ui/toast/toast.d.ts +33 -0
  447. package/dist/components/ui/toast/toast.js +35 -0
  448. package/dist/components/ui/toast/toast.js.map +1 -0
  449. package/dist/components/ui/toaster/index.d.ts +3 -0
  450. package/dist/components/ui/toaster/index.js +3 -0
  451. package/dist/components/ui/toaster/index.js.map +1 -0
  452. package/dist/components/ui/toaster/toaster.d.ts +2 -0
  453. package/dist/components/ui/toaster/toaster.js +12 -0
  454. package/dist/components/ui/toaster/toaster.js.map +1 -0
  455. package/dist/components/ui/tooltip/index.d.ts +2 -0
  456. package/dist/components/ui/tooltip/index.js +2 -0
  457. package/dist/components/ui/tooltip/index.js.map +1 -0
  458. package/dist/components/ui/tooltip/tooltip.d.ts +14 -0
  459. package/dist/components/ui/tooltip/tooltip.js +15 -0
  460. package/dist/components/ui/tooltip/tooltip.js.map +1 -0
  461. package/dist/components/ui/typewriter-effect/cursor-blinker.d.ts +5 -0
  462. package/dist/components/ui/typewriter-effect/cursor-blinker.js +26 -0
  463. package/dist/components/ui/typewriter-effect/cursor-blinker.js.map +1 -0
  464. package/dist/components/ui/typewriter-effect/index.d.ts +2 -0
  465. package/dist/components/ui/typewriter-effect/index.js +2 -0
  466. package/dist/components/ui/typewriter-effect/index.js.map +1 -0
  467. package/dist/components/ui/typewriter-effect/typewriter-effect.d.ts +10 -0
  468. package/dist/components/ui/typewriter-effect/typewriter-effect.js +76 -0
  469. package/dist/components/ui/typewriter-effect/typewriter-effect.js.map +1 -0
  470. package/dist/components/ui/visually-hidden/index.d.ts +3 -0
  471. package/dist/components/ui/visually-hidden/index.js +3 -0
  472. package/dist/components/ui/visually-hidden/index.js.map +1 -0
  473. package/dist/components/ui/visually-hidden/visually-hidden.d.ts +2 -0
  474. package/dist/components/ui/visually-hidden/visually-hidden.js +3 -0
  475. package/dist/components/ui/visually-hidden/visually-hidden.js.map +1 -0
  476. package/dist/components/ui/wordmark/index.d.ts +3 -0
  477. package/dist/components/ui/wordmark/index.js +3 -0
  478. package/dist/components/ui/wordmark/index.js.map +1 -0
  479. package/dist/components/ui/wordmark/wordmark.d.ts +6 -0
  480. package/dist/components/ui/wordmark/wordmark.js +8 -0
  481. package/dist/components/ui/wordmark/wordmark.js.map +1 -0
  482. package/dist/framer-motion.d.ts +2 -0
  483. package/dist/framer-motion.js +3 -0
  484. package/dist/framer-motion.js.map +1 -0
  485. package/dist/index.d.ts +18 -0
  486. package/dist/index.js +20 -0
  487. package/dist/index.js.map +1 -0
  488. package/dist/lib/getTailwindThemeScreenBreakpoint.d.ts +2 -0
  489. package/dist/lib/getTailwindThemeScreenBreakpoint.js +5 -0
  490. package/dist/lib/getTailwindThemeScreenBreakpoint.js.map +1 -0
  491. package/dist/lib/utils.d.ts +2 -0
  492. package/dist/lib/utils.js +6 -0
  493. package/dist/lib/utils.js.map +1 -0
  494. package/dist/providers/brightness-theme/brightness-theme.d.ts +11 -0
  495. package/dist/providers/brightness-theme/brightness-theme.js +15 -0
  496. package/dist/providers/brightness-theme/brightness-theme.js.map +1 -0
  497. package/dist/providers/brightness-theme/index.d.ts +2 -0
  498. package/dist/providers/brightness-theme/index.js +2 -0
  499. package/dist/providers/brightness-theme/index.js.map +1 -0
  500. package/dist/providers/index.d.ts +4 -0
  501. package/dist/providers/index.js +4 -0
  502. package/dist/providers/index.js.map +1 -0
  503. package/dist/providers/lazy_framer.d.ts +6 -0
  504. package/dist/providers/lazy_framer.js +8 -0
  505. package/dist/providers/lazy_framer.js.map +1 -0
  506. package/dist/types/Link.d.ts +9 -0
  507. package/dist/types/Link.js +2 -0
  508. package/dist/types/Link.js.map +1 -0
  509. package/package.json +128 -0
@@ -0,0 +1,25 @@
1
+ import type { ReactElement } from "react";
2
+ import { BaseStepperState } from "./base-stepper-state-type";
3
+ export interface BaseStep {
4
+ id: string;
5
+ label: string;
6
+ state: "valid" | "invalid" | "unfilled";
7
+ }
8
+ export interface StepComponentProps {
9
+ step: BaseStep;
10
+ step_index: number;
11
+ className?: string;
12
+ }
13
+ export interface ValidateStepFnInputOptions {
14
+ searchParams: URLSearchParams;
15
+ }
16
+ export type StepComponentType = (props: StepComponentProps) => ReactElement;
17
+ interface BeforeNextStepOptions<StepperState extends BaseStepperState> {
18
+ state: StepperState;
19
+ getCurrentStep: (state: StepperState) => number;
20
+ }
21
+ export interface Step<StepperState extends BaseStepperState> extends BaseStep {
22
+ stepComponent: StepComponentType;
23
+ beforeNextStep?: (opts: BeforeNextStepOptions<StepperState>) => Promise<boolean>;
24
+ }
25
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=step_definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step_definition.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/step_definition.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { BaseStepperState } from "./base-stepper-state-type";
2
+ export declare function StepperBody<StepperState extends BaseStepperState>(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { AnimatePresence, m } from "framer-motion";
4
+ import { useStepperContext } from "./useStepperContext";
5
+ export function StepperBody() {
6
+ const stepperContext = useStepperContext();
7
+ if (!stepperContext) {
8
+ throw new Error("StepperFooter not within StepperContext!");
9
+ }
10
+ const { activeStep, steps } = stepperContext;
11
+ return (_jsx("div", { className: "\n flex flex-col\n w-full h-[40vh]\n justify-start items-start\n overflow-x-hidden\n schemavaults-stepper-body\n no-scrollbar\n ", children: _jsx(AnimatePresence, { initial: false, mode: "wait", children: steps.map((step, step_index) => {
12
+ if (step_index !== activeStep) {
13
+ return null;
14
+ }
15
+ const ActiveStep = steps[activeStep];
16
+ const ActiveStepComponent = ActiveStep.stepComponent;
17
+ // const activeStepDataRef = ActiveStep.data_ref;
18
+ return (_jsx(m.div, { initial: { opacity: 0, x: activeStep > step_index ? 100 : -100 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: activeStep > step_index ? -100 : 100 }, transition: { duration: 0.3 }, style: {
19
+ width: "100%",
20
+ overflowY: "scroll",
21
+ height: "40vh",
22
+ position: "relative",
23
+ top: 0,
24
+ left: 0,
25
+ }, children: _jsx(ActiveStepComponent, { step: ActiveStep, step_index: step_index, className: "grow bg-background" }, `step-${step}-${ActiveStep.label}-${ActiveStep.state}`) }, `step-${ActiveStep.id}`));
26
+ }) }) }));
27
+ }
28
+ //# sourceMappingURL=stepper-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-body.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-body.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,MAAM,UAAU,WAAW;IACzB,MAAM,cAAc,GAAG,iBAAiB,EAAgB,CAAC;IACzD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IAE7C,OAAO,CACL,cACE,SAAS,EAAC,iLAOT,YAED,KAAC,eAAe,IAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,YACzC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,UAAkB,EAAa,EAAE;gBACjD,IAAI,UAAU,KAAK,UAAU,EAAE,CAAC;oBAC9B,OAAO,IAAI,CAAC;gBACd,CAAC;gBAED,MAAM,UAAU,GAAuB,KAAK,CAAC,UAAU,CAAC,CAAC;gBACzD,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC;gBAErD,iDAAiD;gBAEjD,OAAO,CACL,KAAC,CAAC,CAAC,GAAG,IAEJ,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,EAChE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,EAC7D,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,EAC7B,KAAK,EAAE;wBACL,KAAK,EAAE,MAAM;wBACb,SAAS,EAAE,QAAQ;wBACnB,MAAM,EAAE,MAAM;wBACd,QAAQ,EAAE,UAAU;wBACpB,GAAG,EAAE,CAAC;wBACN,IAAI,EAAE,CAAC;qBACR,YAED,KAAC,mBAAmB,IAElB,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,oBAAoB,IAH1B,QAAQ,IAAI,IAAI,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,EAAE,CAK3D,IApBG,QAAQ,UAAU,CAAC,EAAE,EAAE,CAqBtB,CACT,CAAC;YACJ,CAAC,CAAC,GACc,GACd,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { BaseStepperState } from "./base-stepper-state-type";
2
+ import type { Step } from "./step_definition";
3
+ export interface StepperContextType<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]> {
4
+ activeStep: number;
5
+ steps: StepsTypes;
6
+ nextStep: () => void;
7
+ prevStep: () => void;
8
+ canGoNext: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stepper-context-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-context-type.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-context-type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import type { StepperContextType } from "./stepper-context-type";
2
+ export declare const StepperContext: import("react").Context<StepperContextType<object, import("./step_definition").Step<object>[]> | undefined>;
@@ -0,0 +1,3 @@
1
+ import { createContext } from "react";
2
+ export const StepperContext = createContext(undefined);
3
+ //# sourceMappingURL=stepper-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-context.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAEzC,SAAS,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type PropsWithChildren, type ReactElement } from "react";
2
+ import type { BaseStepperState } from "./base-stepper-state-type";
3
+ export type FooterDecorator = ({ children }: PropsWithChildren) => ReactElement;
4
+ export interface StepperFooterProps<StepperState extends BaseStepperState> {
5
+ decorator?: FooterDecorator;
6
+ FinalStepSubmitButton?: () => ReactElement;
7
+ state: StepperState;
8
+ getCurrentStep: (state: StepperState) => number;
9
+ }
10
+ export declare function StepperFooter<StepperState extends BaseStepperState>({ decorator, FinalStepSubmitButton, state, getCurrentStep, }: StepperFooterProps<StepperState>): ReactElement;
@@ -0,0 +1,89 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState, } from "react";
4
+ import { useStepperContext } from "./useStepperContext";
5
+ import { ArrowLeft, ArrowRight } from "lucide-react";
6
+ import { AnimatePresence, m } from "framer-motion";
7
+ import { Button } from "../button";
8
+ import { useToast } from "../../hooks/use-toast";
9
+ export function StepperFooter({ decorator, FinalStepSubmitButton, state, getCurrentStep, }) {
10
+ const stepperContext = useStepperContext();
11
+ if (!stepperContext) {
12
+ throw new Error("StepperFooter not within StepperContext!");
13
+ }
14
+ const { activeStep, steps, nextStep, prevStep } = stepperContext;
15
+ function AnimatedFooterComponent() {
16
+ const active = steps[activeStep];
17
+ const isFirstStep = activeStep === 0;
18
+ const isLastStep = activeStep === steps.length - 1;
19
+ const isNextButtonVisible = !isLastStep;
20
+ const nextButtonLabel = "Next step";
21
+ const isPreviousButtonVisible = !isFirstStep;
22
+ const previousButtonLabel = "Previous step";
23
+ const canGoBack = isPreviousButtonVisible;
24
+ const canGoNext = isNextButtonVisible && stepperContext.canGoNext;
25
+ const NextIconComponent = ({ className }) => {
26
+ return _jsx(ArrowRight, { className: className });
27
+ };
28
+ const BackIconComponent = ({ className }) => {
29
+ return _jsx(ArrowLeft, { className: className });
30
+ };
31
+ const [navigating, setNavigating] = useState(false);
32
+ const { toast } = useToast();
33
+ const goNextStep = () => {
34
+ setNavigating(true);
35
+ async function checkIfCanGoNextStep() {
36
+ let isValid = true;
37
+ if ("beforeNextStep" in active &&
38
+ typeof active.beforeNextStep === "function") {
39
+ isValid = await active.beforeNextStep({
40
+ state,
41
+ getCurrentStep,
42
+ });
43
+ }
44
+ return isValid;
45
+ } // end of checkIfCanGoNextStep
46
+ checkIfCanGoNextStep()
47
+ .then((isValid) => {
48
+ if (isValid) {
49
+ nextStep();
50
+ }
51
+ else {
52
+ toast({
53
+ variant: "destructive",
54
+ title: "Please check this step's inputs again",
55
+ description: "Validation failed to move to the next step",
56
+ });
57
+ }
58
+ })
59
+ .catch((e) => {
60
+ toast({
61
+ variant: "destructive",
62
+ title: "Failed to check if this step's inputs are valid!",
63
+ description: e instanceof Error ? e.message : "An unknown error occurred!",
64
+ });
65
+ })
66
+ .finally(() => {
67
+ try {
68
+ setNavigating(false);
69
+ }
70
+ catch (e) { }
71
+ });
72
+ };
73
+ return (_jsx(AnimatePresence, { initial: false, mode: "wait", children: _jsxs(m.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, style: {
74
+ flexGrow: 1,
75
+ display: "flex",
76
+ flexDirection: "row",
77
+ alignItems: "center",
78
+ justifyContent: "end",
79
+ flexWrap: "nowrap",
80
+ gap: 2,
81
+ }, children: [isPreviousButtonVisible && (_jsxs(Button, { type: "submit", disabled: !canGoBack || navigating, onClick: prevStep, variant: "secondary", children: [_jsx(BackIconComponent, { className: "h-4 w-4 mr-2" }), previousButtonLabel] })), isNextButtonVisible && (_jsxs(Button, { type: "submit", disabled: !canGoNext || navigating, onClick: goNextStep, children: [_jsx(NextIconComponent, { className: "h-4 w-4 mr-2" }), nextButtonLabel] })), typeof FinalStepSubmitButton === "function" && isLastStep && (_jsx(FinalStepSubmitButton, {}))] }, active.id) }));
82
+ }
83
+ if (typeof decorator === "function") {
84
+ const Decorator = decorator;
85
+ return (_jsx(Decorator, { children: _jsx(AnimatedFooterComponent, {}) }));
86
+ }
87
+ return _jsx(AnimatedFooterComponent, {});
88
+ }
89
+ //# sourceMappingURL=stepper-footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-footer.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-footer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAEL,QAAQ,GAIT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAYxD,MAAM,UAAU,aAAa,CAAwC,EACnE,SAAS,EACT,qBAAqB,EACrB,KAAK,EACL,cAAc,GACmB;IACjC,MAAM,cAAc,GAAG,iBAAiB,EAAgB,CAAC;IACzD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;IAEjE,SAAS,uBAAuB;QAC9B,MAAM,MAAM,GAAuB,KAAK,CAAC,UAAU,CAAC,CAAC;QACrD,MAAM,WAAW,GAAY,UAAU,KAAK,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAY,UAAU,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAE5D,MAAM,mBAAmB,GAAY,CAAC,UAAU,CAAC;QACjD,MAAM,eAAe,GAAW,WAAW,CAAC;QAE5C,MAAM,uBAAuB,GAAY,CAAC,WAAW,CAAC;QACtD,MAAM,mBAAmB,GAAW,eAAe,CAAC;QAEpD,MAAM,SAAS,GAAY,uBAAuB,CAAC;QACnD,MAAM,SAAS,GAAY,mBAAmB,IAAI,cAAc,CAAC,SAAS,CAAC;QAE3E,MAAM,iBAAiB,GAIF,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;YACrC,OAAO,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;QAC9C,CAAC,CAAC;QAEF,MAAM,iBAAiB,GAIF,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;YACrC,OAAO,KAAC,SAAS,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC;QAC7C,CAAC,CAAC;QAEF,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;QAE7D,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;QAE7B,MAAM,UAAU,GAAG,GAAS,EAAE;YAC5B,aAAa,CAAC,IAAI,CAAC,CAAC;YAEpB,KAAK,UAAU,oBAAoB;gBACjC,IAAI,OAAO,GAAY,IAAI,CAAC;gBAE5B,IACE,gBAAgB,IAAI,MAAM;oBAC1B,OAAO,MAAM,CAAC,cAAc,KAAK,UAAU,EAC3C,CAAC;oBACD,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC;wBACpC,KAAK;wBACL,cAAc;qBACf,CAAC,CAAC;gBACL,CAAC;gBACD,OAAO,OAAO,CAAC;YACjB,CAAC,CAAC,8BAA8B;YAEhC,oBAAoB,EAAE;iBACnB,IAAI,CAAC,CAAC,OAAgB,EAAE,EAAE;gBACzB,IAAI,OAAO,EAAE,CAAC;oBACZ,QAAQ,EAAE,CAAC;gBACb,CAAC;qBAAM,CAAC;oBACN,KAAK,CAAC;wBACJ,OAAO,EAAE,aAAa;wBACtB,KAAK,EAAE,uCAAuC;wBAC9C,WAAW,EAAE,4CAA4C;qBAC1D,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;gBACX,KAAK,CAAC;oBACJ,OAAO,EAAE,aAAa;oBACtB,KAAK,EAAE,kDAAkD;oBACzD,WAAW,EACT,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,4BAA4B;iBAChE,CAAC,CAAC;YACL,CAAC,CAAC;iBACD,OAAO,CAAC,GAAG,EAAE;gBACZ,IAAI,CAAC;oBACH,aAAa,CAAC,KAAK,CAAC,CAAC;gBACvB,CAAC;gBAAC,OAAO,CAAU,EAAE,CAAC,CAAA,CAAC;YACzB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC;QAEF,OAAO,CACL,KAAC,eAAe,IAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,YAC1C,MAAC,CAAC,CAAC,GAAG,IAEJ,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EACvB,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EACpB,KAAK,EAAE;oBACL,QAAQ,EAAE,CAAC;oBACX,OAAO,EAAE,MAAM;oBACf,aAAa,EAAE,KAAK;oBACpB,UAAU,EAAE,QAAQ;oBACpB,cAAc,EAAE,KAAK;oBACrB,QAAQ,EAAE,QAAQ;oBAClB,GAAG,EAAE,CAAC;iBACP,aAEA,uBAAuB,IAAI,CAC1B,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,SAAS,IAAI,UAAU,EAClC,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,WAAW,aAEpB,KAAC,iBAAiB,IAAC,SAAS,EAAC,cAAc,GAAG,EAC7C,mBAAmB,IACb,CACV,EACA,mBAAmB,IAAI,CACtB,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,SAAS,IAAI,UAAU,EAClC,OAAO,EAAE,UAAU,aAEnB,KAAC,iBAAiB,IAAC,SAAS,EAAC,cAAc,GAAG,EAC7C,eAAe,IACT,CACV,EACA,OAAO,qBAAqB,KAAK,UAAU,IAAI,UAAU,IAAI,CAC5D,KAAC,qBAAqB,KAAG,CAC1B,KArCI,MAAM,CAAC,EAAE,CAsCR,GACQ,CACnB,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,SAAS,KAAK,UAAU,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,SAAS,CAAC;QAC5B,OAAO,CACL,KAAC,SAAS,cACR,KAAC,uBAAuB,KAAG,GACjB,CACb,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,uBAAuB,KAAG,CAAC;AACrC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { PropsWithChildren, ReactElement } from "react";
2
+ import type { Step } from "./step_definition";
3
+ import type { BaseStepperState } from "./base-stepper-state-type";
4
+ export interface StepperProviderProps<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]> extends PropsWithChildren {
5
+ steps: StepsTypes;
6
+ activeStep: number;
7
+ canGoNext: boolean;
8
+ canGoBack: boolean;
9
+ setCurrentStep: (step_index: number) => void;
10
+ }
11
+ export declare function StepperProvider<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]>({ children, steps, activeStep, canGoNext, canGoBack, setCurrentStep, }: StepperProviderProps<StepperState, StepsTypes>): ReactElement;
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { StepperContext } from "./stepper-context";
4
+ export function StepperProvider({ children, steps, activeStep, canGoNext, canGoBack, setCurrentStep, }) {
5
+ const totalSteps = steps.length;
6
+ if (totalSteps < 1) {
7
+ throw new Error("No steps provided to stepper!");
8
+ }
9
+ const currentStep = activeStep;
10
+ const nextStep = () => {
11
+ if (canGoNext) {
12
+ const newActiveStep = Math.min(currentStep + 1, totalSteps - 1);
13
+ if (process.env.NODE_ENV === "development") {
14
+ console.log("[nextStep] New Active Step: ", newActiveStep);
15
+ }
16
+ setCurrentStep(newActiveStep);
17
+ }
18
+ };
19
+ const prevStep = () => {
20
+ if (canGoBack) {
21
+ const newActiveStep = Math.max(currentStep - 1, 0);
22
+ if (process.env.NODE_ENV === "development") {
23
+ console.log("[prevStep] New Active Step: ", newActiveStep);
24
+ }
25
+ setCurrentStep(newActiveStep);
26
+ }
27
+ };
28
+ const contextValue = {
29
+ steps,
30
+ nextStep,
31
+ prevStep,
32
+ activeStep: currentStep,
33
+ canGoNext,
34
+ };
35
+ const contextWithoutGenericType = contextValue;
36
+ return (_jsx(StepperContext.Provider, { value: contextWithoutGenericType, children: children }));
37
+ }
38
+ //# sourceMappingURL=stepper-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-provider.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-provider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAenD,MAAM,UAAU,eAAe,CAG7B,EACA,QAAQ,EACR,KAAK,EACL,UAAU,EACV,SAAS,EACT,SAAS,EACT,cAAc,GACiC;IAC/C,MAAM,UAAU,GAAW,KAAK,CAAC,MAAM,CAAC;IACxC,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,WAAW,GAAW,UAAU,CAAC;IAEvC,MAAM,QAAQ,GAAG,GAAS,EAAE;QAC1B,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,aAAa,GAAW,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,CAAC,CAAC;YACxE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;gBAC3C,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,aAAa,CAAC,CAAC;YAC7D,CAAC;YACD,cAAc,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,GAAS,EAAE;QAC1B,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,aAAa,GAAW,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3D,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;gBAC3C,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,aAAa,CAAC,CAAC;YAC7D,CAAC;YACD,cAAc,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,YAAY,GAAiD;QACjE,KAAK;QACL,QAAQ;QACR,QAAQ;QACR,UAAU,EAAE,WAAW;QACvB,SAAS;KACV,CAAC;IAEF,MAAM,yBAAyB,GAG3B,YAGH,CAAC;IAEF,OAAO,CACL,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,yBAAyB,YACtD,QAAQ,GACe,CAC3B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { ReactElement } from "react";
2
+ import type { Step } from "./step_definition";
3
+ import type { FooterDecorator } from "./stepper-footer";
4
+ import type { BaseStepperState } from "./base-stepper-state-type";
5
+ export type { BaseStepperState };
6
+ type GetCurrentStepSelector<StepperState extends BaseStepperState> = (state: StepperState) => number;
7
+ interface ICanMoveStepsFnContext<StepperState extends BaseStepperState> {
8
+ state: StepperState;
9
+ getCurrentStep: GetCurrentStepSelector<StepperState>;
10
+ }
11
+ export interface StepperProps<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]> {
12
+ footer_decorator?: FooterDecorator;
13
+ FinalStepSubmitButton?: () => ReactElement;
14
+ getCurrentStep: GetCurrentStepSelector<StepperState>;
15
+ id: string;
16
+ canGoNext: (opts: ICanMoveStepsFnContext<StepperState>) => boolean;
17
+ canGoBack: (opts: ICanMoveStepsFnContext<StepperState>) => boolean;
18
+ steps: StepsTypes;
19
+ state: StepperState;
20
+ setCurrentStep: (newCurrentStep: number) => void;
21
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stepper-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper-types.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { type ReactElement } from "react";
2
+ import type { Step } from "./step_definition";
3
+ import type { BaseStepperState, StepperProps } from "./stepper-types";
4
+ export type { StepperProps };
5
+ export declare function Stepper<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]>(props: StepperProps<StepperState, StepsTypes>): ReactElement;
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
4
+ import { Separator } from "../../ui/separator";
5
+ import { StepperProvider } from "./stepper-provider";
6
+ import { StepperFooter } from "./stepper-footer";
7
+ import { StepsIndicator } from "./steps-indicator";
8
+ import { StepperBody } from "./stepper-body";
9
+ export function Stepper(props) {
10
+ const { steps, state, footer_decorator, setCurrentStep, getCurrentStep, id } = props;
11
+ const activeStep = useMemo(() => {
12
+ return getCurrentStep(state);
13
+ }, [getCurrentStep, state]);
14
+ const canGoNext = useMemo(() => {
15
+ return props.canGoNext({
16
+ state,
17
+ getCurrentStep,
18
+ });
19
+ }, [state, props.canGoNext, getCurrentStep]);
20
+ const canGoBack = useMemo(() => {
21
+ return props.canGoBack({
22
+ state,
23
+ getCurrentStep,
24
+ });
25
+ }, [state, props.canGoBack, getCurrentStep]);
26
+ return (_jsx(StepperProvider, { steps: steps, activeStep: activeStep, canGoNext: canGoNext, canGoBack: canGoBack, setCurrentStep: setCurrentStep, children: _jsxs("div", { className: "flex flex-col w-full grow gap-2", children: [_jsx(StepsIndicator, {}), _jsx(Separator, {}), _jsx(StepperBody, {}), _jsx(Separator, {}), _jsx(StepperFooter, { decorator: footer_decorator, FinalStepSubmitButton: props.FinalStepSubmitButton, state: state, getCurrentStep: getCurrentStep })] }) }, `stepper-${id}`));
27
+ }
28
+ //# sourceMappingURL=stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/stepper.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,OAAO,EAAqB,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,eAAe,EAA6B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C,MAAM,UAAU,OAAO,CAGrB,KAA6C;IAC7C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE,GAC1E,KAAK,CAAC;IAER,MAAM,UAAU,GAAW,OAAO,CAAC,GAAW,EAAE;QAC9C,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,CAAC;IAE5B,MAAM,SAAS,GAAY,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,KAAK,CAAC,SAAS,CAAC;YACrB,KAAK;YACL,cAAc;SACf,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAE7C,MAAM,SAAS,GAAY,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,KAAK,CAAC,SAAS,CAAC;YACrB,KAAK;YACL,cAAc;SACf,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAE7C,OAAO,CACL,KAAC,eAAe,IAEd,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,YAE9B,eAAK,SAAS,EAAC,iCAAiC,aAC9C,KAAC,cAAc,KAAG,EAElB,KAAC,SAAS,KAAG,EAEb,KAAC,WAAW,KAAiB,EAE7B,KAAC,SAAS,KAAG,EAEb,KAAC,aAAa,IACZ,SAAS,EAAE,gBAAgB,EAC3B,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,EAClD,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,GAC9B,IACE,IAtBD,WAAW,EAAE,EAAE,CAuBJ,CACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ReactElement } from "react";
2
+ interface StepsIndicatorProps {
3
+ }
4
+ export declare function StepsIndicator({}: StepsIndicatorProps): ReactElement;
5
+ export {};
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Check, X } from "lucide-react";
4
+ import { cn } from "../../../lib/utils";
5
+ import { useStepperContext } from "./useStepperContext";
6
+ function StepIndicatorSlot({ step, activeStep, stepIndex }) {
7
+ let Indicator;
8
+ const active = activeStep === stepIndex;
9
+ if ((step.state === 'valid') || (stepIndex < activeStep)) {
10
+ Indicator = ({ className }) => (_jsx(Check, { className: cn(className, "text-green-500") }));
11
+ }
12
+ else if (active) {
13
+ Indicator = ({ className }) => (_jsx("div", { className: cn(className, "bg-blue-500 rounded-full animate-pulse h-4 w-4") }));
14
+ }
15
+ else if (step.state === 'invalid') {
16
+ Indicator = ({ className }) => (_jsx(X, { className: cn(className, "text-red-500") }));
17
+ }
18
+ else if (step.state === 'unfilled') {
19
+ Indicator = ({ className }) => (_jsx("div", { className: cn("bg-gray-300 rounded-full", className) }));
20
+ }
21
+ else {
22
+ Indicator = () => null;
23
+ }
24
+ return (_jsx("div", { className: "h-6 w-6 flex items-center justify-center", children: _jsx(Indicator, { className: "h-4 w-4" }) }));
25
+ }
26
+ export function StepsIndicator({}) {
27
+ const stepperContext = useStepperContext();
28
+ if (!stepperContext) {
29
+ throw new Error("StepperFooter not within StepperContext!");
30
+ }
31
+ const { activeStep, steps } = stepperContext;
32
+ return (_jsx("ol", { className: cn("flex flex-col md:flex-row justify-between items-stretch mb-4", "overflow-y-hidden overflow-x-scroll no-scrollbar", "list-decimal", "gap-1 sm:gap-2 md:gap-4"), children: steps.map((step, index) => {
33
+ return (_jsxs("li", { className: "flex items-center justify-start gap-2", children: [_jsx(StepIndicatorSlot, { stepIndex: index, activeStep: activeStep, step: step }), _jsx("span", { children: step.label })] }, `step-${step.id}-${index}`));
34
+ }) }));
35
+ }
36
+ //# sourceMappingURL=steps-indicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps-indicator.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/steps-indicator.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,SAAS,iBAAiB,CACxB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAA6D;IAE1F,IAAI,SAA8D,CAAC;IAEnE,MAAM,MAAM,GAAY,UAAU,KAAK,SAAS,CAAC;IAEjD,IACE,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,EACpD,CAAC;QACD,SAAS,GAAG,CAAC,EAAE,SAAS,EAAE,EAAgB,EAAE,CAAC,CAC3C,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,SAAS,EACT,gBAAgB,CACjB,GACD,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,MAAM,EAAE,CAAC;QAClB,SAAS,GAAG,CAAC,EAAE,SAAS,EAAE,EAAgB,EAAE,CAAC,CAC3C,cACE,SAAS,EAAE,EAAE,CACX,SAAS,EACT,gDAAgD,CACjD,GACD,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QACpC,SAAS,GAAG,CAAC,EAAE,SAAS,EAAE,EAAgB,EAAE,CAAC,CAC3C,KAAC,CAAC,IACA,SAAS,EAAE,EAAE,CACX,SAAS,EACT,cAAc,CACf,GACD,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QACrC,SAAS,GAAG,CAAC,EAAE,SAAS,EAAE,EAAgB,EAAE,CAAC,CAC3C,cACE,SAAS,EAAE,EAAE,CACX,0BAA0B,EAC1B,SAAS,CACV,GACD,CACH,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;IACzB,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,SAAS,IAAC,SAAS,EAAC,SAAS,GAAG,GAC7B,CACP,CAAA;AACH,CAAC;AAID,MAAM,UAAU,cAAc,CAC5B,EAAyB;IAEzB,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IAE7C,OAAO,CACL,aACE,SAAS,EAAE,EAAE,CACX,8DAA8D,EAC9D,kDAAkD,EAClD,cAAc,EACd,yBAAyB,CAC1B,YAEA,KAAK,CAAC,GAAG,CACR,CAAC,IAAI,EAAE,KAAK,EAAgB,EAAE;YAC5B,OAAO,CACL,cAEE,SAAS,EAAC,uCAAuC,aAEjD,KAAC,iBAAiB,IAChB,SAAS,EAAE,KAAK,EAChB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACV,EACF,yBACG,IAAI,CAAC,KAAK,GACN,KAVF,QAAQ,IAAI,CAAC,EAAE,IAAI,KAAK,EAAE,CAW5B,CACN,CAAC;QACJ,CAAC,CACF,GACE,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { StepperContextType } from "./stepper-context-type";
2
+ import type { BaseStepperState } from "./base-stepper-state-type";
3
+ import type { Step } from "./step_definition";
4
+ export declare function useStepperContext<StepperState extends BaseStepperState, StepsTypes extends Step<StepperState>[] = Step<StepperState>[]>(): StepperContextType<StepperState, StepsTypes>;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import { useContext } from "react";
3
+ import { StepperContext } from "./stepper-context";
4
+ export function useStepperContext() {
5
+ const context = useContext(StepperContext);
6
+ if (!context) {
7
+ throw new Error("useStepper must be used within a StepperProvider");
8
+ }
9
+ const preTypeCast = context;
10
+ const withStateType = preTypeCast;
11
+ return withStateType;
12
+ }
13
+ //# sourceMappingURL=useStepperContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepperContext.js","sourceRoot":"","sources":["../../../../src/components/ui/stepper/useStepperContext.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,MAAM,UAAU,iBAAiB;IAI/B,MAAM,OAAO,GAEG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IACD,MAAM,WAAW,GAGb,OAAO,CAAC;IAEZ,MAAM,aAAa,GAAG,WAGrB,CAAC;IACF,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as React from "react";
2
+ declare const Table: {
3
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableElement>): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ declare const TableHeader: {
7
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ declare const TableBody: {
11
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ declare const TableFooter: {
15
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ declare const TableRow: {
19
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableRowElement>): import("react/jsx-runtime").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ declare const TableHead: {
23
+ ({ className, ...props }: React.ThHTMLAttributes<HTMLTableCellElement>): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ declare const TableCell: {
27
+ ({ className, ...props }: React.TdHTMLAttributes<HTMLTableCellElement>): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ declare const TableCaption: {
31
+ ({ className, ...props }: React.HTMLAttributes<HTMLTableCaptionElement>): import("react/jsx-runtime").JSX.Element;
32
+ displayName: string;
33
+ };
34
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "../../lib/utils";
4
+ const Table = ({ className, ...props }) => (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", { className: cn("w-full caption-bottom text-sm", className), ...props }) }));
5
+ Table.displayName = "Table";
6
+ const TableHeader = ({ className, ...props }) => (_jsx("thead", { className: cn("[&_tr]:border-b", className), ...props }));
7
+ TableHeader.displayName = "TableHeader";
8
+ const TableBody = ({ className, ...props }) => (_jsx("tbody", { className: cn("[&_tr:last-child]:border-0", className), ...props }));
9
+ TableBody.displayName = "TableBody";
10
+ const TableFooter = ({ className, ...props }) => (_jsx("tfoot", { className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props }));
11
+ TableFooter.displayName = "TableFooter";
12
+ const TableRow = ({ className, ...props }) => (_jsx("tr", { className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className), ...props }));
13
+ TableRow.displayName = "TableRow";
14
+ const TableHead = ({ className, ...props }) => (_jsx("th", { className: cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", className), ...props }));
15
+ TableHead.displayName = "TableHead";
16
+ const TableCell = ({ className, ...props }) => (_jsx("td", { className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className), ...props }));
17
+ TableCell.displayName = "TableCell";
18
+ const TableCaption = ({ className, ...props }) => (_jsx("caption", { className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
19
+ TableCaption.displayName = "TableCaption";
20
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
21
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,MAAM,KAAK,GAAG,CACZ,EACE,SAAS,EACT,GAAG,KAAK,EAC+B,EACzC,EAAE,CAAC,CAAC,cAAK,SAAS,EAAC,+BAA+B,YAClD,gBACE,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,GACE,CAAC,CAAA;AACP,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,MAAM,WAAW,GAAG,CAClB,EACE,SAAS,EACT,GAAG,KAAK,EACsC,EAChD,EAAE,CAAC,CAAC,gBAAO,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC,CAAA;AACxE,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,SAAS,GAAG,CAChB,EACE,SAAS,EACT,GAAG,KAAK,EACsC,EAChD,EAAE,CAAC,CAAC,gBACJ,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,KAClD,KAAK,GACT,CAAC,CAAA;AACH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;AAEnC,MAAM,WAAW,GAAG,CAClB,EACE,SAAS,EACT,GAAG,KAAK,EACsC,EAChD,EAAE,CAAC,CAAC,gBACJ,SAAS,EAAE,EAAE,CACX,yDAAyD,EACzD,SAAS,CACV,KACG,KAAK,GACT,CAAC,CAAA;AACH,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,QAAQ,GAAG,CACf,EACE,SAAS,EACT,GAAG,KAAK,EACkC,EAC5C,EAAE,CAAC,CAAC,aACJ,SAAS,EAAE,EAAE,CACX,6EAA6E,EAC7E,SAAS,CACV,KACG,KAAK,GACT,CAAC,CAAA;AACH,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,MAAM,SAAS,GAAG,CAChB,EACE,SAAS,EACT,GAAG,KAAK,EACqC,EAC/C,EAAE,CAAC,CAAC,aACJ,SAAS,EAAE,EAAE,CACX,kGAAkG,EAClG,SAAS,CACV,KACG,KAAK,GACT,CAAC,CAAA;AACH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;AAEnC,MAAM,SAAS,GAAG,CAChB,EACE,SAAS,EACT,GAAG,KAAK,EACqC,EAC/C,EAAE,CAAC,CAAC,aACJ,SAAS,EAAE,EAAE,CAAC,gDAAgD,EAAE,SAAS,CAAC,KACtE,KAAK,GACT,CAAC,CAAA;AACH,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;AAEnC,MAAM,YAAY,GAAG,CACnB,EACE,SAAS,EACT,GAAG,KAAK,EACsC,EAChD,EAAE,CAAC,CAAC,kBACJ,SAAS,EAAE,EAAE,CAAC,oCAAoC,EAAE,SAAS,CAAC,KAC1D,KAAK,GACT,CAAC,CAAA;AACH,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA;AAEzC,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAA"}
@@ -0,0 +1,23 @@
1
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
2
+ import type { ReactElement } from "react";
3
+ declare const Tabs: import("react").ForwardRefExoticComponent<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export interface TabsListProps extends TabsPrimitive.TabsListProps {
5
+ }
6
+ declare function TabsList(props: TabsListProps): ReactElement;
7
+ declare namespace TabsList {
8
+ var displayName: string | undefined;
9
+ }
10
+ export interface TabsTriggerProps extends TabsPrimitive.TabsTriggerProps {
11
+ className?: string;
12
+ }
13
+ declare function TabsTrigger(props: TabsTriggerProps): ReactElement;
14
+ declare namespace TabsTrigger {
15
+ var displayName: string | undefined;
16
+ }
17
+ export interface TabsContentProps extends TabsPrimitive.TabsContentProps {
18
+ }
19
+ declare function TabsContent(props: TabsContentProps): ReactElement;
20
+ declare namespace TabsContent {
21
+ var displayName: string | undefined;
22
+ }
23
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
4
+ import { cn } from "../../../lib/utils";
5
+ const Tabs = TabsPrimitive.Root;
6
+ function TabsList(props) {
7
+ return (_jsx(TabsPrimitive.List, { className: cn("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground", props.className), ...props }));
8
+ }
9
+ TabsList.displayName = TabsPrimitive.List.displayName;
10
+ function TabsTrigger(props) {
11
+ return (_jsx(TabsPrimitive.Trigger, { className: cn("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow", props.className), ...props }));
12
+ }
13
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
14
+ function TabsContent(props) {
15
+ return (_jsx(TabsPrimitive.Content, { className: cn("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", props.className), ...props }));
16
+ }
17
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
18
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
19
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/ui/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;AAIhC,SAAS,QAAQ,CAAC,KAAoB;IACpC,OAAO,CACL,KAAC,aAAa,CAAC,IAAI,IACjB,SAAS,EAAE,EAAE,CACX,2FAA2F,EAC3F,KAAK,CAAC,SAAS,CAChB,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AACD,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;AAMtD,SAAS,WAAW,CAAC,KAAuB;IAC1C,OAAO,CACL,KAAC,aAAa,CAAC,OAAO,IACpB,SAAS,EAAE,EAAE,CACX,gYAAgY,EAChY,KAAK,CAAC,SAAS,CAChB,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AACD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC;AAI5D,SAAS,WAAW,CAAC,KAAuB;IAC1C,OAAO,CACL,KAAC,aAAa,CAAC,OAAO,IACpB,SAAS,EAAE,EAAE,CACX,iIAAiI,EACjI,KAAK,CAAC,SAAS,CAChB,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AACD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from "./Tabs";
2
+ export type { TabsListProps, TabsTriggerProps, TabsContentProps } from "./Tabs";
@@ -0,0 +1,2 @@
1
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from "./Tabs";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./textarea";
2
+ export type * from "./textarea";
3
+ export { Textarea as default } from "./textarea";
@@ -0,0 +1,3 @@
1
+ export * from "./textarea";
2
+ export { Textarea as default } from "./textarea";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/textarea/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type TextareaHTMLAttributes } from "react";
2
+ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ declare const Textarea: {
5
+ ({ className, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export { Textarea };
9
+ export default Textarea;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "../../../lib/utils";
4
+ const Textarea = ({ className, ...props }) => {
5
+ return (_jsx("textarea", { className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ...props }));
6
+ };
7
+ Textarea.displayName = "Textarea";
8
+ export { Textarea };
9
+ export default Textarea;
10
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../src/components/ui/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAKjC,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1D,OAAO,CACL,mBACE,SAAS,EAAE,EAAE,CACX,sSAAsS,EACtS,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./themed-page-background";
2
+ export type * from "./themed-page-background";
3
+ export { ThemedPageBackground as default } from "./themed-page-background";
@@ -0,0 +1,3 @@
1
+ export * from "./themed-page-background";
2
+ export { ThemedPageBackground as default } from "./themed-page-background";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/themed-page-background/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,oBAAoB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}