@jarrodmedrano/ui 0.1.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 (575) hide show
  1. package/README.md +108 -0
  2. package/dist/components/auth/providers.cjs +83 -0
  3. package/dist/components/auth/providers.cjs.map +1 -0
  4. package/dist/components/auth/providers.d.ts +19 -0
  5. package/dist/components/auth/providers.d.ts.map +1 -0
  6. package/dist/components/auth/providers.js +59 -0
  7. package/dist/components/auth/providers.js.map +1 -0
  8. package/dist/components/card/back-button.cjs +45 -0
  9. package/dist/components/card/back-button.cjs.map +1 -0
  10. package/dist/components/card/back-button.d.ts +7 -0
  11. package/dist/components/card/back-button.d.ts.map +1 -0
  12. package/dist/components/card/back-button.js +11 -0
  13. package/dist/components/card/back-button.js.map +1 -0
  14. package/dist/components/card/card-wrapper.cjs +56 -0
  15. package/dist/components/card/card-wrapper.cjs.map +1 -0
  16. package/dist/components/card/card-wrapper.d.ts +11 -0
  17. package/dist/components/card/card-wrapper.d.ts.map +1 -0
  18. package/dist/components/card/card-wrapper.js +36 -0
  19. package/dist/components/card/card-wrapper.js.map +1 -0
  20. package/dist/components/card/header.cjs +52 -0
  21. package/dist/components/card/header.cjs.map +1 -0
  22. package/dist/components/card/header.d.ts +8 -0
  23. package/dist/components/card/header.d.ts.map +1 -0
  24. package/dist/components/card/header.js +18 -0
  25. package/dist/components/card/header.js.map +1 -0
  26. package/dist/components/combobox/ComboList.cjs +78 -0
  27. package/dist/components/combobox/ComboList.cjs.map +1 -0
  28. package/dist/components/combobox/ComboList.d.ts +14 -0
  29. package/dist/components/combobox/ComboList.d.ts.map +1 -0
  30. package/dist/components/combobox/ComboList.js +61 -0
  31. package/dist/components/combobox/ComboList.js.map +1 -0
  32. package/dist/components/combobox/index.cjs +119 -0
  33. package/dist/components/combobox/index.cjs.map +1 -0
  34. package/dist/components/combobox/index.d.ts +6 -0
  35. package/dist/components/combobox/index.d.ts.map +1 -0
  36. package/dist/components/combobox/index.js +101 -0
  37. package/dist/components/combobox/index.js.map +1 -0
  38. package/dist/components/dashboard/account-select.cjs +69 -0
  39. package/dist/components/dashboard/account-select.cjs.map +1 -0
  40. package/dist/components/dashboard/account-select.d.ts +12 -0
  41. package/dist/components/dashboard/account-select.d.ts.map +1 -0
  42. package/dist/components/dashboard/account-select.js +41 -0
  43. package/dist/components/dashboard/account-select.js.map +1 -0
  44. package/dist/components/dashboard/account-switcher.cjs +72 -0
  45. package/dist/components/dashboard/account-switcher.cjs.map +1 -0
  46. package/dist/components/dashboard/account-switcher.d.ts +12 -0
  47. package/dist/components/dashboard/account-switcher.d.ts.map +1 -0
  48. package/dist/components/dashboard/account-switcher.js +44 -0
  49. package/dist/components/dashboard/account-switcher.js.map +1 -0
  50. package/dist/components/dashboard/sidebar/CollapsibleSection.cjs +100 -0
  51. package/dist/components/dashboard/sidebar/CollapsibleSection.cjs.map +1 -0
  52. package/dist/components/dashboard/sidebar/CollapsibleSection.d.ts +3 -0
  53. package/dist/components/dashboard/sidebar/CollapsibleSection.d.ts.map +1 -0
  54. package/dist/components/dashboard/sidebar/CollapsibleSection.js +81 -0
  55. package/dist/components/dashboard/sidebar/CollapsibleSection.js.map +1 -0
  56. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.cjs +77 -0
  57. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.cjs.map +1 -0
  58. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.d.ts +9 -0
  59. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.d.ts.map +1 -0
  60. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.js +40 -0
  61. package/dist/components/dashboard/sidebar/CollapsibleSection.styles.js.map +1 -0
  62. package/dist/components/dashboard/sidebar/EntityList.cjs +121 -0
  63. package/dist/components/dashboard/sidebar/EntityList.cjs.map +1 -0
  64. package/dist/components/dashboard/sidebar/EntityList.d.ts +3 -0
  65. package/dist/components/dashboard/sidebar/EntityList.d.ts.map +1 -0
  66. package/dist/components/dashboard/sidebar/EntityList.js +87 -0
  67. package/dist/components/dashboard/sidebar/EntityList.js.map +1 -0
  68. package/dist/components/dashboard/sidebar/EntityList.styles.cjs +95 -0
  69. package/dist/components/dashboard/sidebar/EntityList.styles.cjs.map +1 -0
  70. package/dist/components/dashboard/sidebar/EntityList.styles.d.ts +14 -0
  71. package/dist/components/dashboard/sidebar/EntityList.styles.d.ts.map +1 -0
  72. package/dist/components/dashboard/sidebar/EntityList.styles.js +57 -0
  73. package/dist/components/dashboard/sidebar/EntityList.styles.js.map +1 -0
  74. package/dist/components/dashboard/sidebar/SectionHeader.cjs +99 -0
  75. package/dist/components/dashboard/sidebar/SectionHeader.cjs.map +1 -0
  76. package/dist/components/dashboard/sidebar/SectionHeader.d.ts +3 -0
  77. package/dist/components/dashboard/sidebar/SectionHeader.d.ts.map +1 -0
  78. package/dist/components/dashboard/sidebar/SectionHeader.js +81 -0
  79. package/dist/components/dashboard/sidebar/SectionHeader.js.map +1 -0
  80. package/dist/components/dashboard/sidebar/SectionHeader.styles.cjs +116 -0
  81. package/dist/components/dashboard/sidebar/SectionHeader.styles.cjs.map +1 -0
  82. package/dist/components/dashboard/sidebar/SectionHeader.styles.d.ts +18 -0
  83. package/dist/components/dashboard/sidebar/SectionHeader.styles.d.ts.map +1 -0
  84. package/dist/components/dashboard/sidebar/SectionHeader.styles.js +77 -0
  85. package/dist/components/dashboard/sidebar/SectionHeader.styles.js.map +1 -0
  86. package/dist/components/dashboard/sidebar/index.cjs +41 -0
  87. package/dist/components/dashboard/sidebar/index.cjs.map +1 -0
  88. package/dist/components/dashboard/sidebar/index.d.ts +6 -0
  89. package/dist/components/dashboard/sidebar/index.d.ts.map +1 -0
  90. package/dist/components/dashboard/sidebar/index.js +12 -0
  91. package/dist/components/dashboard/sidebar/index.js.map +1 -0
  92. package/dist/components/dashboard/sidebar/sidebar.cjs +50 -0
  93. package/dist/components/dashboard/sidebar/sidebar.cjs.map +1 -0
  94. package/dist/components/dashboard/sidebar/sidebar.d.ts +15 -0
  95. package/dist/components/dashboard/sidebar/sidebar.d.ts.map +1 -0
  96. package/dist/components/dashboard/sidebar/sidebar.js +26 -0
  97. package/dist/components/dashboard/sidebar/sidebar.js.map +1 -0
  98. package/dist/components/dashboard/sidebar/tabs.cjs +52 -0
  99. package/dist/components/dashboard/sidebar/tabs.cjs.map +1 -0
  100. package/dist/components/dashboard/sidebar/tabs.d.ts +3 -0
  101. package/dist/components/dashboard/sidebar/tabs.d.ts.map +1 -0
  102. package/dist/components/dashboard/sidebar/tabs.js +37 -0
  103. package/dist/components/dashboard/sidebar/tabs.js.map +1 -0
  104. package/dist/components/dashboard/sidebar/types.cjs +17 -0
  105. package/dist/components/dashboard/sidebar/types.cjs.map +1 -0
  106. package/dist/components/dashboard/sidebar/types.d.ts +36 -0
  107. package/dist/components/dashboard/sidebar/types.d.ts.map +1 -0
  108. package/dist/components/dashboard/sidebar/types.js +1 -0
  109. package/dist/components/dashboard/sidebar/types.js.map +1 -0
  110. package/dist/components/dashboard/sidebar-nav.cjs +99 -0
  111. package/dist/components/dashboard/sidebar-nav.cjs.map +1 -0
  112. package/dist/components/dashboard/sidebar-nav.d.ts +24 -0
  113. package/dist/components/dashboard/sidebar-nav.d.ts.map +1 -0
  114. package/dist/components/dashboard/sidebar-nav.js +75 -0
  115. package/dist/components/dashboard/sidebar-nav.js.map +1 -0
  116. package/dist/components/dashboard/utils/build-nav.cjs +103 -0
  117. package/dist/components/dashboard/utils/build-nav.cjs.map +1 -0
  118. package/dist/components/dashboard/utils/build-nav.d.ts +7 -0
  119. package/dist/components/dashboard/utils/build-nav.d.ts.map +1 -0
  120. package/dist/components/dashboard/utils/build-nav.js +78 -0
  121. package/dist/components/dashboard/utils/build-nav.js.map +1 -0
  122. package/dist/components/dashboard/utils.cjs +2 -0
  123. package/dist/components/dashboard/utils.cjs.map +1 -0
  124. package/dist/components/dashboard/utils.d.ts +1 -0
  125. package/dist/components/dashboard/utils.d.ts.map +1 -0
  126. package/dist/components/dashboard/utils.js +1 -0
  127. package/dist/components/dashboard/utils.js.map +1 -0
  128. package/dist/components/dashboard/with-dashboard.cjs +189 -0
  129. package/dist/components/dashboard/with-dashboard.cjs.map +1 -0
  130. package/dist/components/dashboard/with-dashboard.d.ts +6 -0
  131. package/dist/components/dashboard/with-dashboard.d.ts.map +1 -0
  132. package/dist/components/dashboard/with-dashboard.js +175 -0
  133. package/dist/components/dashboard/with-dashboard.js.map +1 -0
  134. package/dist/components/detail/DetailLayout.styles.cjs +116 -0
  135. package/dist/components/detail/DetailLayout.styles.cjs.map +1 -0
  136. package/dist/components/detail/DetailLayout.styles.d.ts +18 -0
  137. package/dist/components/detail/DetailLayout.styles.d.ts.map +1 -0
  138. package/dist/components/detail/DetailLayout.styles.js +74 -0
  139. package/dist/components/detail/DetailLayout.styles.js.map +1 -0
  140. package/dist/components/detail/index.cjs +45 -0
  141. package/dist/components/detail/index.cjs.map +1 -0
  142. package/dist/components/detail/index.d.ts +2 -0
  143. package/dist/components/detail/index.d.ts.map +1 -0
  144. package/dist/components/detail/index.js +23 -0
  145. package/dist/components/detail/index.js.map +1 -0
  146. package/dist/components/flowbite/card-images.cjs +104 -0
  147. package/dist/components/flowbite/card-images.cjs.map +1 -0
  148. package/dist/components/flowbite/card-images.d.ts +3 -0
  149. package/dist/components/flowbite/card-images.d.ts.map +1 -0
  150. package/dist/components/flowbite/card-images.js +84 -0
  151. package/dist/components/flowbite/card-images.js.map +1 -0
  152. package/dist/components/flowbite/gallery.cjs +53 -0
  153. package/dist/components/flowbite/gallery.cjs.map +1 -0
  154. package/dist/components/flowbite/gallery.d.ts +3 -0
  155. package/dist/components/flowbite/gallery.d.ts.map +1 -0
  156. package/dist/components/flowbite/gallery.js +23 -0
  157. package/dist/components/flowbite/gallery.js.map +1 -0
  158. package/dist/components/flowbite/masonry.cjs +73 -0
  159. package/dist/components/flowbite/masonry.cjs.map +1 -0
  160. package/dist/components/flowbite/masonry.d.ts +13 -0
  161. package/dist/components/flowbite/masonry.d.ts.map +1 -0
  162. package/dist/components/flowbite/masonry.js +43 -0
  163. package/dist/components/flowbite/masonry.js.map +1 -0
  164. package/dist/components/flowbite/search-hero.cjs +109 -0
  165. package/dist/components/flowbite/search-hero.cjs.map +1 -0
  166. package/dist/components/flowbite/search-hero.d.ts +6 -0
  167. package/dist/components/flowbite/search-hero.d.ts.map +1 -0
  168. package/dist/components/flowbite/search-hero.js +89 -0
  169. package/dist/components/flowbite/search-hero.js.map +1 -0
  170. package/dist/components/generic/copyright.cjs +32 -0
  171. package/dist/components/generic/copyright.cjs.map +1 -0
  172. package/dist/components/generic/copyright.d.ts +4 -0
  173. package/dist/components/generic/copyright.d.ts.map +1 -0
  174. package/dist/components/generic/copyright.js +8 -0
  175. package/dist/components/generic/copyright.js.map +1 -0
  176. package/dist/components/generic/icons.cjs +186 -0
  177. package/dist/components/generic/icons.cjs.map +1 -0
  178. package/dist/components/generic/icons.d.ts +19 -0
  179. package/dist/components/generic/icons.d.ts.map +1 -0
  180. package/dist/components/generic/icons.js +164 -0
  181. package/dist/components/generic/icons.js.map +1 -0
  182. package/dist/components/header/header.cjs +130 -0
  183. package/dist/components/header/header.cjs.map +1 -0
  184. package/dist/components/header/header.d.ts +14 -0
  185. package/dist/components/header/header.d.ts.map +1 -0
  186. package/dist/components/header/header.js +106 -0
  187. package/dist/components/header/header.js.map +1 -0
  188. package/dist/components/header/internal/main-nav.cjs +65 -0
  189. package/dist/components/header/internal/main-nav.cjs.map +1 -0
  190. package/dist/components/header/internal/main-nav.d.ts +4 -0
  191. package/dist/components/header/internal/main-nav.d.ts.map +1 -0
  192. package/dist/components/header/internal/main-nav.js +31 -0
  193. package/dist/components/header/internal/main-nav.js.map +1 -0
  194. package/dist/components/header/internal/mobile-nav.cjs +209 -0
  195. package/dist/components/header/internal/mobile-nav.cjs.map +1 -0
  196. package/dist/components/header/internal/mobile-nav.d.ts +2 -0
  197. package/dist/components/header/internal/mobile-nav.d.ts.map +1 -0
  198. package/dist/components/header/internal/mobile-nav.js +177 -0
  199. package/dist/components/header/internal/mobile-nav.js.map +1 -0
  200. package/dist/components/header/internal/mode-toggle.cjs +73 -0
  201. package/dist/components/header/internal/mode-toggle.cjs.map +1 -0
  202. package/dist/components/header/internal/mode-toggle.d.ts +8 -0
  203. package/dist/components/header/internal/mode-toggle.d.ts.map +1 -0
  204. package/dist/components/header/internal/mode-toggle.js +54 -0
  205. package/dist/components/header/internal/mode-toggle.js.map +1 -0
  206. package/dist/components/header/internal/site-header.cjs +62 -0
  207. package/dist/components/header/internal/site-header.cjs.map +1 -0
  208. package/dist/components/header/internal/site-header.d.ts +15 -0
  209. package/dist/components/header/internal/site-header.d.ts.map +1 -0
  210. package/dist/components/header/internal/site-header.js +38 -0
  211. package/dist/components/header/internal/site-header.js.map +1 -0
  212. package/dist/components/header/langbutton/langbutton.cjs +54 -0
  213. package/dist/components/header/langbutton/langbutton.cjs.map +1 -0
  214. package/dist/components/header/langbutton/langbutton.d.ts +4 -0
  215. package/dist/components/header/langbutton/langbutton.d.ts.map +1 -0
  216. package/dist/components/header/langbutton/langbutton.js +35 -0
  217. package/dist/components/header/langbutton/langbutton.js.map +1 -0
  218. package/dist/components/header/userbutton/user-dropdown.cjs +72 -0
  219. package/dist/components/header/userbutton/user-dropdown.cjs.map +1 -0
  220. package/dist/components/header/userbutton/user-dropdown.d.ts +10 -0
  221. package/dist/components/header/userbutton/user-dropdown.d.ts.map +1 -0
  222. package/dist/components/header/userbutton/user-dropdown.js +64 -0
  223. package/dist/components/header/userbutton/user-dropdown.js.map +1 -0
  224. package/dist/components/header/userbutton/userbutton.cjs +50 -0
  225. package/dist/components/header/userbutton/userbutton.cjs.map +1 -0
  226. package/dist/components/header/userbutton/userbutton.d.ts +10 -0
  227. package/dist/components/header/userbutton/userbutton.d.ts.map +1 -0
  228. package/dist/components/header/userbutton/userbutton.js +16 -0
  229. package/dist/components/header/userbutton/userbutton.js.map +1 -0
  230. package/dist/components/hooks/use-page-nav.cjs +89 -0
  231. package/dist/components/hooks/use-page-nav.cjs.map +1 -0
  232. package/dist/components/hooks/use-page-nav.d.ts +5 -0
  233. package/dist/components/hooks/use-page-nav.d.ts.map +1 -0
  234. package/dist/components/hooks/use-page-nav.js +61 -0
  235. package/dist/components/hooks/use-page-nav.js.map +1 -0
  236. package/dist/components/hooks/use-user-entities.cjs +30 -0
  237. package/dist/components/hooks/use-user-entities.cjs.map +1 -0
  238. package/dist/components/hooks/use-user-entities.d.ts +2 -0
  239. package/dist/components/hooks/use-user-entities.d.ts.map +1 -0
  240. package/dist/components/hooks/use-user-entities.js +6 -0
  241. package/dist/components/hooks/use-user-entities.js.map +1 -0
  242. package/dist/components/icons/apple.cjs +47 -0
  243. package/dist/components/icons/apple.cjs.map +1 -0
  244. package/dist/components/icons/apple.d.ts +2 -0
  245. package/dist/components/icons/apple.d.ts.map +1 -0
  246. package/dist/components/icons/apple.js +23 -0
  247. package/dist/components/icons/apple.js.map +1 -0
  248. package/dist/components/icons/facebook.cjs +49 -0
  249. package/dist/components/icons/facebook.cjs.map +1 -0
  250. package/dist/components/icons/facebook.d.ts +2 -0
  251. package/dist/components/icons/facebook.d.ts.map +1 -0
  252. package/dist/components/icons/facebook.js +25 -0
  253. package/dist/components/icons/facebook.js.map +1 -0
  254. package/dist/components/icons/github.cjs +49 -0
  255. package/dist/components/icons/github.cjs.map +1 -0
  256. package/dist/components/icons/github.d.ts +2 -0
  257. package/dist/components/icons/github.d.ts.map +1 -0
  258. package/dist/components/icons/github.js +25 -0
  259. package/dist/components/icons/github.js.map +1 -0
  260. package/dist/components/icons/google.cjs +49 -0
  261. package/dist/components/icons/google.cjs.map +1 -0
  262. package/dist/components/icons/google.d.ts +2 -0
  263. package/dist/components/icons/google.d.ts.map +1 -0
  264. package/dist/components/icons/google.js +25 -0
  265. package/dist/components/icons/google.js.map +1 -0
  266. package/dist/components/icons/logo.cjs +49 -0
  267. package/dist/components/icons/logo.cjs.map +1 -0
  268. package/dist/components/icons/logo.d.ts +4 -0
  269. package/dist/components/icons/logo.d.ts.map +1 -0
  270. package/dist/components/icons/logo.js +25 -0
  271. package/dist/components/icons/logo.js.map +1 -0
  272. package/dist/components/lightbox/GallerySection.cjs +53 -0
  273. package/dist/components/lightbox/GallerySection.cjs.map +1 -0
  274. package/dist/components/lightbox/GallerySection.d.ts +12 -0
  275. package/dist/components/lightbox/GallerySection.d.ts.map +1 -0
  276. package/dist/components/lightbox/GallerySection.js +29 -0
  277. package/dist/components/lightbox/GallerySection.js.map +1 -0
  278. package/dist/components/lightbox/ImageLightbox.cjs +244 -0
  279. package/dist/components/lightbox/ImageLightbox.cjs.map +1 -0
  280. package/dist/components/lightbox/ImageLightbox.d.ts +3 -0
  281. package/dist/components/lightbox/ImageLightbox.d.ts.map +1 -0
  282. package/dist/components/lightbox/ImageLightbox.js +220 -0
  283. package/dist/components/lightbox/ImageLightbox.js.map +1 -0
  284. package/dist/components/lightbox/ImageLightbox.types.cjs +17 -0
  285. package/dist/components/lightbox/ImageLightbox.types.cjs.map +1 -0
  286. package/dist/components/lightbox/ImageLightbox.types.d.ts +28 -0
  287. package/dist/components/lightbox/ImageLightbox.types.d.ts.map +1 -0
  288. package/dist/components/lightbox/ImageLightbox.types.js +1 -0
  289. package/dist/components/lightbox/ImageLightbox.types.js.map +1 -0
  290. package/dist/components/lightbox/index.cjs +38 -0
  291. package/dist/components/lightbox/index.cjs.map +1 -0
  292. package/dist/components/lightbox/index.d.ts +8 -0
  293. package/dist/components/lightbox/index.d.ts.map +1 -0
  294. package/dist/components/lightbox/index.js +11 -0
  295. package/dist/components/lightbox/index.js.map +1 -0
  296. package/dist/components/lightbox/useEntityLightbox.cjs +57 -0
  297. package/dist/components/lightbox/useEntityLightbox.cjs.map +1 -0
  298. package/dist/components/lightbox/useEntityLightbox.d.ts +25 -0
  299. package/dist/components/lightbox/useEntityLightbox.d.ts.map +1 -0
  300. package/dist/components/lightbox/useEntityLightbox.js +33 -0
  301. package/dist/components/lightbox/useEntityLightbox.js.map +1 -0
  302. package/dist/components/lightbox/useLightbox.cjs +59 -0
  303. package/dist/components/lightbox/useLightbox.cjs.map +1 -0
  304. package/dist/components/lightbox/useLightbox.d.ts +9 -0
  305. package/dist/components/lightbox/useLightbox.d.ts.map +1 -0
  306. package/dist/components/lightbox/useLightbox.js +35 -0
  307. package/dist/components/lightbox/useLightbox.js.map +1 -0
  308. package/dist/components/search/search.cjs +71 -0
  309. package/dist/components/search/search.cjs.map +1 -0
  310. package/dist/components/search/search.d.ts +2 -0
  311. package/dist/components/search/search.d.ts.map +1 -0
  312. package/dist/components/search/search.js +63 -0
  313. package/dist/components/search/search.js.map +1 -0
  314. package/dist/components/tailwind/contact.cjs +380 -0
  315. package/dist/components/tailwind/contact.cjs.map +1 -0
  316. package/dist/components/tailwind/contact.d.ts +2 -0
  317. package/dist/components/tailwind/contact.d.ts.map +1 -0
  318. package/dist/components/tailwind/contact.js +356 -0
  319. package/dist/components/tailwind/contact.js.map +1 -0
  320. package/dist/components/tailwind/content-page.cjs +58 -0
  321. package/dist/components/tailwind/content-page.cjs.map +1 -0
  322. package/dist/components/tailwind/content-page.d.ts +18 -0
  323. package/dist/components/tailwind/content-page.d.ts.map +1 -0
  324. package/dist/components/tailwind/content-page.js +32 -0
  325. package/dist/components/tailwind/content-page.js.map +1 -0
  326. package/dist/components/tailwind/feature.cjs +95 -0
  327. package/dist/components/tailwind/feature.cjs.map +1 -0
  328. package/dist/components/tailwind/feature.d.ts +2 -0
  329. package/dist/components/tailwind/feature.d.ts.map +1 -0
  330. package/dist/components/tailwind/feature.js +75 -0
  331. package/dist/components/tailwind/feature.js.map +1 -0
  332. package/dist/components/tailwind/featurelist.cjs +99 -0
  333. package/dist/components/tailwind/featurelist.cjs.map +1 -0
  334. package/dist/components/tailwind/featurelist.d.ts +2 -0
  335. package/dist/components/tailwind/featurelist.d.ts.map +1 -0
  336. package/dist/components/tailwind/featurelist.js +65 -0
  337. package/dist/components/tailwind/featurelist.js.map +1 -0
  338. package/dist/components/tailwind/footer.cjs +104 -0
  339. package/dist/components/tailwind/footer.cjs.map +1 -0
  340. package/dist/components/tailwind/footer.d.ts +2 -0
  341. package/dist/components/tailwind/footer.d.ts.map +1 -0
  342. package/dist/components/tailwind/footer.js +80 -0
  343. package/dist/components/tailwind/footer.js.map +1 -0
  344. package/dist/components/tailwind/hero.cjs +130 -0
  345. package/dist/components/tailwind/hero.cjs.map +1 -0
  346. package/dist/components/tailwind/hero.d.ts +22 -0
  347. package/dist/components/tailwind/hero.d.ts.map +1 -0
  348. package/dist/components/tailwind/hero.js +106 -0
  349. package/dist/components/tailwind/hero.js.map +1 -0
  350. package/dist/components/tailwind/pricing.cjs +214 -0
  351. package/dist/components/tailwind/pricing.cjs.map +1 -0
  352. package/dist/components/tailwind/pricing.d.ts +6 -0
  353. package/dist/components/tailwind/pricing.d.ts.map +1 -0
  354. package/dist/components/tailwind/pricing.js +190 -0
  355. package/dist/components/tailwind/pricing.js.map +1 -0
  356. package/dist/components/tailwind/privacy.cjs +138 -0
  357. package/dist/components/tailwind/privacy.cjs.map +1 -0
  358. package/dist/components/tailwind/privacy.d.ts +2 -0
  359. package/dist/components/tailwind/privacy.d.ts.map +1 -0
  360. package/dist/components/tailwind/privacy.js +114 -0
  361. package/dist/components/tailwind/privacy.js.map +1 -0
  362. package/dist/components/tailwind/providerIcons.cjs +48 -0
  363. package/dist/components/tailwind/providerIcons.cjs.map +1 -0
  364. package/dist/components/tailwind/providerIcons.d.ts +4 -0
  365. package/dist/components/tailwind/providerIcons.d.ts.map +1 -0
  366. package/dist/components/tailwind/providerIcons.js +24 -0
  367. package/dist/components/tailwind/providerIcons.js.map +1 -0
  368. package/dist/components/ui/avatar.cjs +120 -0
  369. package/dist/components/ui/avatar.cjs.map +1 -0
  370. package/dist/components/ui/avatar.d.ts +7 -0
  371. package/dist/components/ui/avatar.d.ts.map +1 -0
  372. package/dist/components/ui/avatar.js +86 -0
  373. package/dist/components/ui/avatar.js.map +1 -0
  374. package/dist/components/ui/breadcrumb.cjs +63 -0
  375. package/dist/components/ui/breadcrumb.cjs.map +1 -0
  376. package/dist/components/ui/breadcrumb.d.ts +10 -0
  377. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  378. package/dist/components/ui/breadcrumb.js +29 -0
  379. package/dist/components/ui/breadcrumb.js.map +1 -0
  380. package/dist/components/ui/button.cjs +105 -0
  381. package/dist/components/ui/button.cjs.map +1 -0
  382. package/dist/components/ui/button.d.ts +11 -0
  383. package/dist/components/ui/button.d.ts.map +1 -0
  384. package/dist/components/ui/button.js +82 -0
  385. package/dist/components/ui/button.js.map +1 -0
  386. package/dist/components/ui/card.cjs +129 -0
  387. package/dist/components/ui/card.cjs.map +1 -0
  388. package/dist/components/ui/card.d.ts +9 -0
  389. package/dist/components/ui/card.d.ts.map +1 -0
  390. package/dist/components/ui/card.js +102 -0
  391. package/dist/components/ui/card.js.map +1 -0
  392. package/dist/components/ui/checkbox.cjs +98 -0
  393. package/dist/components/ui/checkbox.cjs.map +1 -0
  394. package/dist/components/ui/checkbox.d.ts +5 -0
  395. package/dist/components/ui/checkbox.d.ts.map +1 -0
  396. package/dist/components/ui/checkbox.js +66 -0
  397. package/dist/components/ui/checkbox.js.map +1 -0
  398. package/dist/components/ui/command.cjs +200 -0
  399. package/dist/components/ui/command.cjs.map +1 -0
  400. package/dist/components/ui/command.d.ts +83 -0
  401. package/dist/components/ui/command.d.ts.map +1 -0
  402. package/dist/components/ui/command.js +160 -0
  403. package/dist/components/ui/command.js.map +1 -0
  404. package/dist/components/ui/dialog.cjs +204 -0
  405. package/dist/components/ui/dialog.cjs.map +1 -0
  406. package/dist/components/ui/dialog.d.ts +14 -0
  407. package/dist/components/ui/dialog.d.ts.map +1 -0
  408. package/dist/components/ui/dialog.js +163 -0
  409. package/dist/components/ui/dialog.js.map +1 -0
  410. package/dist/components/ui/drawer.cjs +191 -0
  411. package/dist/components/ui/drawer.cjs.map +1 -0
  412. package/dist/components/ui/drawer.d.ts +14 -0
  413. package/dist/components/ui/drawer.d.ts.map +1 -0
  414. package/dist/components/ui/drawer.js +160 -0
  415. package/dist/components/ui/drawer.js.map +1 -0
  416. package/dist/components/ui/dropdown-menu.cjs +323 -0
  417. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  418. package/dist/components/ui/dropdown-menu.d.ts +26 -0
  419. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  420. package/dist/components/ui/dropdown-menu.js +277 -0
  421. package/dist/components/ui/dropdown-menu.js.map +1 -0
  422. package/dist/components/ui/input.cjs +72 -0
  423. package/dist/components/ui/input.cjs.map +1 -0
  424. package/dist/components/ui/input.d.ts +4 -0
  425. package/dist/components/ui/input.d.ts.map +1 -0
  426. package/dist/components/ui/input.js +50 -0
  427. package/dist/components/ui/input.js.map +1 -0
  428. package/dist/components/ui/label.cjs +85 -0
  429. package/dist/components/ui/label.cjs.map +1 -0
  430. package/dist/components/ui/label.d.ts +5 -0
  431. package/dist/components/ui/label.d.ts.map +1 -0
  432. package/dist/components/ui/label.js +53 -0
  433. package/dist/components/ui/label.js.map +1 -0
  434. package/dist/components/ui/menubar.cjs +351 -0
  435. package/dist/components/ui/menubar.cjs.map +1 -0
  436. package/dist/components/ui/menubar.d.ts +27 -0
  437. package/dist/components/ui/menubar.d.ts.map +1 -0
  438. package/dist/components/ui/menubar.js +304 -0
  439. package/dist/components/ui/menubar.js.map +1 -0
  440. package/dist/components/ui/navigation-menu.cjs +257 -0
  441. package/dist/components/ui/navigation-menu.cjs.map +1 -0
  442. package/dist/components/ui/navigation-menu.d.ts +15 -0
  443. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  444. package/dist/components/ui/navigation-menu.js +217 -0
  445. package/dist/components/ui/navigation-menu.js.map +1 -0
  446. package/dist/components/ui/popover.cjs +109 -0
  447. package/dist/components/ui/popover.cjs.map +1 -0
  448. package/dist/components/ui/popover.d.ts +8 -0
  449. package/dist/components/ui/popover.d.ts.map +1 -0
  450. package/dist/components/ui/popover.js +74 -0
  451. package/dist/components/ui/popover.js.map +1 -0
  452. package/dist/components/ui/resizable.cjs +124 -0
  453. package/dist/components/ui/resizable.cjs.map +1 -0
  454. package/dist/components/ui/resizable.d.ts +26 -0
  455. package/dist/components/ui/resizable.d.ts.map +1 -0
  456. package/dist/components/ui/resizable.js +90 -0
  457. package/dist/components/ui/resizable.js.map +1 -0
  458. package/dist/components/ui/scroll-area.cjs +132 -0
  459. package/dist/components/ui/scroll-area.cjs.map +1 -0
  460. package/dist/components/ui/scroll-area.d.ts +6 -0
  461. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  462. package/dist/components/ui/scroll-area.js +99 -0
  463. package/dist/components/ui/scroll-area.js.map +1 -0
  464. package/dist/components/ui/select.cjs +254 -0
  465. package/dist/components/ui/select.cjs.map +1 -0
  466. package/dist/components/ui/select.d.ts +14 -0
  467. package/dist/components/ui/select.d.ts.map +1 -0
  468. package/dist/components/ui/select.js +213 -0
  469. package/dist/components/ui/select.js.map +1 -0
  470. package/dist/components/ui/sheet.cjs +203 -0
  471. package/dist/components/ui/sheet.cjs.map +1 -0
  472. package/dist/components/ui/sheet.d.ts +14 -0
  473. package/dist/components/ui/sheet.d.ts.map +1 -0
  474. package/dist/components/ui/sheet.js +164 -0
  475. package/dist/components/ui/sheet.js.map +1 -0
  476. package/dist/components/ui/skeleton.cjs +66 -0
  477. package/dist/components/ui/skeleton.cjs.map +1 -0
  478. package/dist/components/ui/skeleton.d.ts +3 -0
  479. package/dist/components/ui/skeleton.d.ts.map +1 -0
  480. package/dist/components/ui/skeleton.js +44 -0
  481. package/dist/components/ui/skeleton.js.map +1 -0
  482. package/dist/components/ui/spinner.cjs +128 -0
  483. package/dist/components/ui/spinner.cjs.map +1 -0
  484. package/dist/components/ui/spinner.d.ts +12 -0
  485. package/dist/components/ui/spinner.d.ts.map +1 -0
  486. package/dist/components/ui/spinner.js +105 -0
  487. package/dist/components/ui/spinner.js.map +1 -0
  488. package/dist/components/ui/switch.cjs +98 -0
  489. package/dist/components/ui/switch.cjs.map +1 -0
  490. package/dist/components/ui/switch.d.ts +5 -0
  491. package/dist/components/ui/switch.d.ts.map +1 -0
  492. package/dist/components/ui/switch.js +66 -0
  493. package/dist/components/ui/switch.js.map +1 -0
  494. package/dist/components/ui/tabs.cjs +136 -0
  495. package/dist/components/ui/tabs.cjs.map +1 -0
  496. package/dist/components/ui/tabs.d.ts +8 -0
  497. package/dist/components/ui/tabs.d.ts.map +1 -0
  498. package/dist/components/ui/tabs.js +101 -0
  499. package/dist/components/ui/tabs.js.map +1 -0
  500. package/dist/components/ui/textarea.cjs +69 -0
  501. package/dist/components/ui/textarea.cjs.map +1 -0
  502. package/dist/components/ui/textarea.d.ts +4 -0
  503. package/dist/components/ui/textarea.d.ts.map +1 -0
  504. package/dist/components/ui/textarea.js +47 -0
  505. package/dist/components/ui/textarea.js.map +1 -0
  506. package/dist/components/ui/toast.cjs +169 -0
  507. package/dist/components/ui/toast.cjs.map +1 -0
  508. package/dist/components/ui/toast.d.ts +15 -0
  509. package/dist/components/ui/toast.d.ts.map +1 -0
  510. package/dist/components/ui/toast.js +131 -0
  511. package/dist/components/ui/toast.js.map +1 -0
  512. package/dist/components/ui/toaster.cjs +78 -0
  513. package/dist/components/ui/toaster.cjs.map +1 -0
  514. package/dist/components/ui/toaster.d.ts +2 -0
  515. package/dist/components/ui/toaster.d.ts.map +1 -0
  516. package/dist/components/ui/toaster.js +63 -0
  517. package/dist/components/ui/toaster.js.map +1 -0
  518. package/dist/components/ui/tooltip.cjs +126 -0
  519. package/dist/components/ui/tooltip.cjs.map +1 -0
  520. package/dist/components/ui/tooltip.d.ts +8 -0
  521. package/dist/components/ui/tooltip.d.ts.map +1 -0
  522. package/dist/components/ui/tooltip.js +91 -0
  523. package/dist/components/ui/tooltip.js.map +1 -0
  524. package/dist/components/ui/use-toast.cjs +187 -0
  525. package/dist/components/ui/use-toast.cjs.map +1 -0
  526. package/dist/components/ui/use-toast.d.ts +45 -0
  527. package/dist/components/ui/use-toast.d.ts.map +1 -0
  528. package/dist/components/ui/use-toast.js +153 -0
  529. package/dist/components/ui/use-toast.js.map +1 -0
  530. package/dist/components/upgrade-prompt/UpgradePrompt.cjs +80 -0
  531. package/dist/components/upgrade-prompt/UpgradePrompt.cjs.map +1 -0
  532. package/dist/components/upgrade-prompt/UpgradePrompt.d.ts +12 -0
  533. package/dist/components/upgrade-prompt/UpgradePrompt.d.ts.map +1 -0
  534. package/dist/components/upgrade-prompt/UpgradePrompt.js +46 -0
  535. package/dist/components/upgrade-prompt/UpgradePrompt.js.map +1 -0
  536. package/dist/components/upgrade-prompt/index.cjs +29 -0
  537. package/dist/components/upgrade-prompt/index.cjs.map +1 -0
  538. package/dist/components/upgrade-prompt/index.d.ts +3 -0
  539. package/dist/components/upgrade-prompt/index.d.ts.map +1 -0
  540. package/dist/components/upgrade-prompt/index.js +5 -0
  541. package/dist/components/upgrade-prompt/index.js.map +1 -0
  542. package/dist/config/docs.d.ts +8 -0
  543. package/dist/config/docs.d.ts.map +1 -0
  544. package/dist/config/site.d.ts +12 -0
  545. package/dist/config/site.d.ts.map +1 -0
  546. package/dist/hooks/useRecaptcha.d.ts +16 -0
  547. package/dist/hooks/useRecaptcha.d.ts.map +1 -0
  548. package/dist/lib/utils.cjs +48 -0
  549. package/dist/lib/utils.cjs.map +1 -0
  550. package/dist/lib/utils.d.cjs +17 -0
  551. package/dist/lib/utils.d.cjs.map +1 -0
  552. package/dist/lib/utils.d.js +1 -0
  553. package/dist/lib/utils.d.js.map +1 -0
  554. package/dist/lib/utils.d.ts +5 -0
  555. package/dist/lib/utils.d.ts.map +1 -0
  556. package/dist/lib/utils.js +22 -0
  557. package/dist/lib/utils.js.map +1 -0
  558. package/dist/styles.css +178 -0
  559. package/dist/types/nav.cjs +17 -0
  560. package/dist/types/nav.cjs.map +1 -0
  561. package/dist/types/nav.d.ts +17 -0
  562. package/dist/types/nav.d.ts.map +1 -0
  563. package/dist/types/nav.js +1 -0
  564. package/dist/types/nav.js.map +1 -0
  565. package/dist/types/sitemap.cjs +17 -0
  566. package/dist/types/sitemap.cjs.map +1 -0
  567. package/dist/types/sitemap.d.ts +19 -0
  568. package/dist/types/sitemap.d.ts.map +1 -0
  569. package/dist/types/sitemap.js +1 -0
  570. package/dist/types/sitemap.js.map +1 -0
  571. package/dist/types/unist.cjs +17 -0
  572. package/dist/types/unist.cjs.map +1 -0
  573. package/dist/types/unist.js +1 -0
  574. package/dist/types/unist.js.map +1 -0
  575. package/package.json +91 -0
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # @jarrodmedrano/ui
2
+
3
+ Shared React component library built on Radix UI, shadcn/ui, and Tailwind CSS v4.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @jarrodmedrano/ui
9
+ ```
10
+
11
+ Peer dependencies (install separately):
12
+
13
+ ```bash
14
+ npm install next react react-dom
15
+ ```
16
+
17
+ ## Tailwind CSS Setup
18
+
19
+ The package ships pre-built JS/CSS. Add the design tokens and scan the package's class names in your app's Tailwind config.
20
+
21
+ ### 1. Import the base CSS
22
+
23
+ In your root layout or global CSS:
24
+
25
+ ```css
26
+ /* app/globals.css */
27
+ @import '@jarrodmedrano/ui/styles.css';
28
+
29
+ /* Add your own @source so Tailwind generates classes used by the components */
30
+ @source "../node_modules/@jarrodmedrano/ui/dist/**/*.js";
31
+ ```
32
+
33
+ ### 2. Update your CSS entry point
34
+
35
+ If your app uses Tailwind v4 CSS-first config, the `@source` directive above is all you need.
36
+
37
+ For Tailwind v3 (`tailwind.config.js`), add to `content`:
38
+
39
+ ```js
40
+ module.exports = {
41
+ content: [
42
+ // your app files...
43
+ './node_modules/@jarrodmedrano/ui/dist/**/*.{js,cjs}',
44
+ ],
45
+ }
46
+ ```
47
+
48
+ ## Usage
49
+
50
+ Import components directly from their subpath:
51
+
52
+ ```tsx
53
+ import { Button } from '@jarrodmedrano/ui/components/ui/button'
54
+ import { Dialog, DialogContent } from '@jarrodmedrano/ui/components/ui/dialog'
55
+ import { cn } from '@jarrodmedrano/ui/lib/utils'
56
+ ```
57
+
58
+ ### TypeScript path aliases (optional)
59
+
60
+ Add to your `tsconfig.json` for shorter imports:
61
+
62
+ ```json
63
+ {
64
+ "compilerOptions": {
65
+ "paths": {
66
+ "@jarrodmedrano/ui/*": ["./node_modules/@jarrodmedrano/ui/*"]
67
+ }
68
+ }
69
+ }
70
+ ```
71
+
72
+ ## Theme
73
+
74
+ The package uses CSS variables for theming. Dark mode is toggled by setting `data-theme="dark"` on any ancestor element:
75
+
76
+ ```tsx
77
+ // Light mode (default)
78
+ <html>...</html>
79
+
80
+ // Dark mode
81
+ <html data-theme="dark">...</html>
82
+ ```
83
+
84
+ ## Available Components
85
+
86
+ | Path | Components |
87
+ |------|-----------|
88
+ | `components/ui/button` | `Button`, `buttonVariants` |
89
+ | `components/ui/dialog` | `Dialog`, `DialogContent`, `DialogTrigger`, ... |
90
+ | `components/ui/card` | `Card`, `CardHeader`, `CardContent`, ... |
91
+ | `components/ui/input` | `Input` |
92
+ | `components/ui/select` | `Select`, `SelectContent`, `SelectItem`, ... |
93
+ | `components/ui/tabs` | `Tabs`, `TabsContent`, `TabsList`, `TabsTrigger` |
94
+ | `components/ui/dropdown-menu` | `DropdownMenu`, `DropdownMenuContent`, ... |
95
+ | `components/ui/toast` | `Toast`, `Toaster`, `useToast` |
96
+ | `components/lightbox` | `ImageLightbox`, `GallerySection`, `useEntityLightbox` |
97
+ | `components/dashboard/sidebar` | `Sidebar`, `CollapsibleSection`, `EntityList` |
98
+ | `lib/utils` | `cn`, `formatDate`, `absoluteUrl` |
99
+
100
+ ## Publishing
101
+
102
+ ```bash
103
+ # From the monorepo root
104
+ cd packages/ui
105
+ npm publish
106
+ ```
107
+
108
+ The `prepublishOnly` script runs `pnpm clean && pnpm build` automatically.
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var providers_exports = {};
21
+ __export(providers_exports, {
22
+ ProviderSignin: () => ProviderSignin
23
+ });
24
+ module.exports = __toCommonJS(providers_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
27
+ var import_button = require("../ui/button");
28
+ var import_providerIcons = require("../tailwind/providerIcons");
29
+ function ProviderButton({
30
+ provider,
31
+ callbackUrl,
32
+ signInSocial
33
+ }) {
34
+ const handleClick = (0, import_react.useCallback)(() => {
35
+ const result = signInSocial(provider.id, callbackUrl);
36
+ if (result instanceof Promise) {
37
+ result.catch((error) => {
38
+ if (process.env.NODE_ENV !== "production") {
39
+ console.error(
40
+ "Social sign-in failed:",
41
+ error instanceof Error ? error.message : "Unknown error"
42
+ );
43
+ }
44
+ });
45
+ }
46
+ }, [provider.id, callbackUrl, signInSocial]);
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
48
+ import_button.Button,
49
+ {
50
+ variant: "outline",
51
+ className: "flex w-full items-center gap-3",
52
+ onClick: handleClick,
53
+ children: [
54
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_providerIcons.ProviderIcons, { providerName: provider.name }),
55
+ "Continue with ",
56
+ provider.name
57
+ ]
58
+ },
59
+ provider.id
60
+ );
61
+ }
62
+ function ProviderSignin({
63
+ providers,
64
+ callbackUrl,
65
+ signInSocial
66
+ }) {
67
+ if (!providers.length) return null;
68
+ const resolvedCallbackUrl = callbackUrl != null ? callbackUrl : "/";
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: providers.map((provider) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
+ ProviderButton,
71
+ {
72
+ provider,
73
+ callbackUrl: resolvedCallbackUrl,
74
+ signInSocial
75
+ },
76
+ provider.id
77
+ )) });
78
+ }
79
+ // Annotate the CommonJS export names for ESM import in node:
80
+ 0 && (module.exports = {
81
+ ProviderSignin
82
+ });
83
+ //# sourceMappingURL=providers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/auth/providers.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { Button } from '../ui/button'\nimport { ProviderIcons } from '../tailwind/providerIcons'\n\nexport type SocialProvider = {\n id: string\n name: string\n type: string\n style: { logo: string; bg: string; text: string }\n}\n\ntype SignInSocialFn = (providerId: string, callbackUrl: string) => unknown\n\ninterface ProviderButtonProps {\n provider: SocialProvider\n callbackUrl: string\n signInSocial: SignInSocialFn\n}\n\ninterface ProviderSigninProps {\n providers: SocialProvider[]\n callbackUrl?: string | null\n signInSocial: SignInSocialFn\n}\n\nfunction ProviderButton({\n provider,\n callbackUrl,\n signInSocial,\n}: ProviderButtonProps) {\n const handleClick = useCallback(() => {\n const result = signInSocial(provider.id, callbackUrl)\n if (result instanceof Promise) {\n result.catch((error: unknown) => {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\n 'Social sign-in failed:',\n error instanceof Error ? error.message : 'Unknown error',\n )\n }\n })\n }\n }, [provider.id, callbackUrl, signInSocial])\n\n return (\n <Button\n key={provider.id}\n variant=\"outline\"\n className=\"flex w-full items-center gap-3\"\n onClick={handleClick}\n >\n <ProviderIcons providerName={provider.name} />\n Continue with {provider.name}\n </Button>\n )\n}\n\nexport function ProviderSignin({\n providers,\n callbackUrl,\n signInSocial,\n}: ProviderSigninProps) {\n if (!providers.length) return null\n\n const resolvedCallbackUrl = callbackUrl ?? '/'\n\n return (\n <>\n {providers.map((provider) => (\n <ProviderButton\n key={provider.id}\n provider={provider}\n callbackUrl={resolvedCallbackUrl}\n signInSocial={signInSocial}\n />\n ))}\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8CI;AA7CJ,mBAA4B;AAC5B,oBAAuB;AACvB,2BAA8B;AAuB9B,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AACF,GAAwB;AACtB,QAAM,kBAAc,0BAAY,MAAM;AACpC,UAAM,SAAS,aAAa,SAAS,IAAI,WAAW;AACpD,QAAI,kBAAkB,SAAS;AAC7B,aAAO,MAAM,CAAC,UAAmB;AAC/B,YAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,kBAAQ;AAAA,YACN;AAAA,YACA,iBAAiB,QAAQ,MAAM,UAAU;AAAA,UAC3C;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,GAAG,CAAC,SAAS,IAAI,aAAa,YAAY,CAAC;AAE3C,SACE;AAAA,IAAC;AAAA;AAAA,MAEC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,SAAS;AAAA,MAET;AAAA,oDAAC,sCAAc,cAAc,SAAS,MAAM;AAAA,QAAE;AAAA,QAC/B,SAAS;AAAA;AAAA;AAAA,IANnB,SAAS;AAAA,EAOhB;AAEJ;AAEO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,GAAwB;AACtB,MAAI,CAAC,UAAU,OAAQ,QAAO;AAE9B,QAAM,sBAAsB,oCAAe;AAE3C,SACE,2EACG,oBAAU,IAAI,CAAC,aACd;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA,aAAa;AAAA,MACb;AAAA;AAAA,IAHK,SAAS;AAAA,EAIhB,CACD,GACH;AAEJ;","names":[]}
@@ -0,0 +1,19 @@
1
+ export type SocialProvider = {
2
+ id: string;
3
+ name: string;
4
+ type: string;
5
+ style: {
6
+ logo: string;
7
+ bg: string;
8
+ text: string;
9
+ };
10
+ };
11
+ type SignInSocialFn = (providerId: string, callbackUrl: string) => unknown;
12
+ interface ProviderSigninProps {
13
+ providers: SocialProvider[];
14
+ callbackUrl?: string | null;
15
+ signInSocial: SignInSocialFn;
16
+ }
17
+ export declare function ProviderSignin({ providers, callbackUrl, signInSocial, }: ProviderSigninProps): import("react/jsx-runtime").JSX.Element | null;
18
+ export {};
19
+ //# sourceMappingURL=providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../components/auth/providers.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAClD,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAA;AAQ1E,UAAU,mBAAmB;IAC3B,SAAS,EAAE,cAAc,EAAE,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE,cAAc,CAAA;CAC7B;AAkCD,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,WAAW,EACX,YAAY,GACb,EAAE,mBAAmB,kDAiBrB"}
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { useCallback } from "react";
4
+ import { Button } from "../ui/button";
5
+ import { ProviderIcons } from "../tailwind/providerIcons";
6
+ function ProviderButton({
7
+ provider,
8
+ callbackUrl,
9
+ signInSocial
10
+ }) {
11
+ const handleClick = useCallback(() => {
12
+ const result = signInSocial(provider.id, callbackUrl);
13
+ if (result instanceof Promise) {
14
+ result.catch((error) => {
15
+ if (process.env.NODE_ENV !== "production") {
16
+ console.error(
17
+ "Social sign-in failed:",
18
+ error instanceof Error ? error.message : "Unknown error"
19
+ );
20
+ }
21
+ });
22
+ }
23
+ }, [provider.id, callbackUrl, signInSocial]);
24
+ return /* @__PURE__ */ jsxs(
25
+ Button,
26
+ {
27
+ variant: "outline",
28
+ className: "flex w-full items-center gap-3",
29
+ onClick: handleClick,
30
+ children: [
31
+ /* @__PURE__ */ jsx(ProviderIcons, { providerName: provider.name }),
32
+ "Continue with ",
33
+ provider.name
34
+ ]
35
+ },
36
+ provider.id
37
+ );
38
+ }
39
+ function ProviderSignin({
40
+ providers,
41
+ callbackUrl,
42
+ signInSocial
43
+ }) {
44
+ if (!providers.length) return null;
45
+ const resolvedCallbackUrl = callbackUrl != null ? callbackUrl : "/";
46
+ return /* @__PURE__ */ jsx(Fragment, { children: providers.map((provider) => /* @__PURE__ */ jsx(
47
+ ProviderButton,
48
+ {
49
+ provider,
50
+ callbackUrl: resolvedCallbackUrl,
51
+ signInSocial
52
+ },
53
+ provider.id
54
+ )) });
55
+ }
56
+ export {
57
+ ProviderSignin
58
+ };
59
+ //# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/auth/providers.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { Button } from '../ui/button'\nimport { ProviderIcons } from '../tailwind/providerIcons'\n\nexport type SocialProvider = {\n id: string\n name: string\n type: string\n style: { logo: string; bg: string; text: string }\n}\n\ntype SignInSocialFn = (providerId: string, callbackUrl: string) => unknown\n\ninterface ProviderButtonProps {\n provider: SocialProvider\n callbackUrl: string\n signInSocial: SignInSocialFn\n}\n\ninterface ProviderSigninProps {\n providers: SocialProvider[]\n callbackUrl?: string | null\n signInSocial: SignInSocialFn\n}\n\nfunction ProviderButton({\n provider,\n callbackUrl,\n signInSocial,\n}: ProviderButtonProps) {\n const handleClick = useCallback(() => {\n const result = signInSocial(provider.id, callbackUrl)\n if (result instanceof Promise) {\n result.catch((error: unknown) => {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\n 'Social sign-in failed:',\n error instanceof Error ? error.message : 'Unknown error',\n )\n }\n })\n }\n }, [provider.id, callbackUrl, signInSocial])\n\n return (\n <Button\n key={provider.id}\n variant=\"outline\"\n className=\"flex w-full items-center gap-3\"\n onClick={handleClick}\n >\n <ProviderIcons providerName={provider.name} />\n Continue with {provider.name}\n </Button>\n )\n}\n\nexport function ProviderSignin({\n providers,\n callbackUrl,\n signInSocial,\n}: ProviderSigninProps) {\n if (!providers.length) return null\n\n const resolvedCallbackUrl = callbackUrl ?? '/'\n\n return (\n <>\n {providers.map((provider) => (\n <ProviderButton\n key={provider.id}\n provider={provider}\n callbackUrl={resolvedCallbackUrl}\n signInSocial={signInSocial}\n />\n ))}\n </>\n )\n}\n"],"mappings":";AA8CI,SAsBA,UAhBE,KANF;AA7CJ,SAAS,mBAAmB;AAC5B,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAuB9B,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AACF,GAAwB;AACtB,QAAM,cAAc,YAAY,MAAM;AACpC,UAAM,SAAS,aAAa,SAAS,IAAI,WAAW;AACpD,QAAI,kBAAkB,SAAS;AAC7B,aAAO,MAAM,CAAC,UAAmB;AAC/B,YAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,kBAAQ;AAAA,YACN;AAAA,YACA,iBAAiB,QAAQ,MAAM,UAAU;AAAA,UAC3C;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,GAAG,CAAC,SAAS,IAAI,aAAa,YAAY,CAAC;AAE3C,SACE;AAAA,IAAC;AAAA;AAAA,MAEC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,SAAS;AAAA,MAET;AAAA,4BAAC,iBAAc,cAAc,SAAS,MAAM;AAAA,QAAE;AAAA,QAC/B,SAAS;AAAA;AAAA;AAAA,IANnB,SAAS;AAAA,EAOhB;AAEJ;AAEO,SAAS,eAAe;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,GAAwB;AACtB,MAAI,CAAC,UAAU,OAAQ,QAAO;AAE9B,QAAM,sBAAsB,oCAAe;AAE3C,SACE,gCACG,oBAAU,IAAI,CAAC,aACd;AAAA,IAAC;AAAA;AAAA,MAEC;AAAA,MACA,aAAa;AAAA,MACb;AAAA;AAAA,IAHK,SAAS;AAAA,EAIhB,CACD,GACH;AAEJ;","names":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var back_button_exports = {};
31
+ __export(back_button_exports, {
32
+ BackButton: () => BackButton
33
+ });
34
+ module.exports = __toCommonJS(back_button_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_link = __toESM(require("next/link"), 1);
37
+ var import_button = require("../ui/button");
38
+ const BackButton = ({ href, label }) => {
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "link", className: "w-full font-normal", size: "sm", asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href, children: label }) });
40
+ };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ BackButton
44
+ });
45
+ //# sourceMappingURL=back-button.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/back-button.tsx"],"sourcesContent":["'use client'\n\nimport Link from 'next/link'\n\nimport { Button } from '../ui/button'\n\ninterface BackButtonProps {\n href: string\n label: string\n}\n\nexport const BackButton = ({ href, label }: BackButtonProps) => {\n return (\n <Button variant=\"link\" className=\"w-full font-normal\" size=\"sm\" asChild>\n <Link href={href}>{label}</Link>\n </Button>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcM;AAZN,kBAAiB;AAEjB,oBAAuB;AAOhB,MAAM,aAAa,CAAC,EAAE,MAAM,MAAM,MAAuB;AAC9D,SACE,4CAAC,wBAAO,SAAQ,QAAO,WAAU,sBAAqB,MAAK,MAAK,SAAO,MACrE,sDAAC,YAAAA,SAAA,EAAK,MAAa,iBAAM,GAC3B;AAEJ;","names":["Link"]}
@@ -0,0 +1,7 @@
1
+ interface BackButtonProps {
2
+ href: string;
3
+ label: string;
4
+ }
5
+ export declare const BackButton: ({ href, label }: BackButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=back-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../../components/card/back-button.tsx"],"names":[],"mappings":"AAMA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,UAAU,oBAAqB,eAAe,4CAM1D,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import Link from "next/link";
4
+ import { Button } from "../ui/button";
5
+ const BackButton = ({ href, label }) => {
6
+ return /* @__PURE__ */ jsx(Button, { variant: "link", className: "w-full font-normal", size: "sm", asChild: true, children: /* @__PURE__ */ jsx(Link, { href, children: label }) });
7
+ };
8
+ export {
9
+ BackButton
10
+ };
11
+ //# sourceMappingURL=back-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/back-button.tsx"],"sourcesContent":["'use client'\n\nimport Link from 'next/link'\n\nimport { Button } from '../ui/button'\n\ninterface BackButtonProps {\n href: string\n label: string\n}\n\nexport const BackButton = ({ href, label }: BackButtonProps) => {\n return (\n <Button variant=\"link\" className=\"w-full font-normal\" size=\"sm\" asChild>\n <Link href={href}>{label}</Link>\n </Button>\n )\n}\n"],"mappings":";AAcM;AAZN,OAAO,UAAU;AAEjB,SAAS,cAAc;AAOhB,MAAM,aAAa,CAAC,EAAE,MAAM,MAAM,MAAuB;AAC9D,SACE,oBAAC,UAAO,SAAQ,QAAO,WAAU,sBAAqB,MAAK,MAAK,SAAO,MACrE,8BAAC,QAAK,MAAa,iBAAM,GAC3B;AAEJ;","names":[]}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var card_wrapper_exports = {};
21
+ __export(card_wrapper_exports, {
22
+ CardWrapper: () => CardWrapper
23
+ });
24
+ module.exports = __toCommonJS(card_wrapper_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_card = require("../ui/card");
27
+ var import_header = require("./header");
28
+ var import_back_button = require("./back-button");
29
+ const CardWrapper = ({
30
+ children,
31
+ headerLabel,
32
+ backButtonLabel,
33
+ backButtonHref,
34
+ slim
35
+ }) => {
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_header.Header,
39
+ {
40
+ label: headerLabel,
41
+ backButtonHref,
42
+ backButtonLabel
43
+ }
44
+ ) }),
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-10 mt-2 sm:mx-auto sm:w-full sm:max-w-[480px]", children: [
46
+ slim && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardContent, { children }),
47
+ !slim && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "shadow-xs border border-gray-200 bg-white px-6 py-12 sm:rounded-lg sm:px-12 dark:border-gray-700 dark:bg-gray-800", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardContent, { children }) })
48
+ ] }),
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_card.CardFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_back_button.BackButton, { label: backButtonLabel, href: backButtonHref }) })
50
+ ] });
51
+ };
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ CardWrapper
55
+ });
56
+ //# sourceMappingURL=card-wrapper.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/card-wrapper.tsx"],"sourcesContent":["'use client'\n\nimport {\n CardContent,\n CardFooter,\n CardHeader,\n} from '../ui/card'\nimport { Header } from './header'\nimport { BackButton } from './back-button'\n\ninterface CardWrapperProps {\n children: React.ReactNode\n headerLabel: string\n backButtonLabel: string\n backButtonHref: string\n showSocial?: boolean\n slim?: boolean\n}\n\nexport const CardWrapper = ({\n children,\n headerLabel,\n backButtonLabel,\n backButtonHref,\n slim,\n}: CardWrapperProps) => {\n return (\n <>\n <CardHeader>\n <Header\n label={headerLabel}\n backButtonHref={backButtonHref}\n backButtonLabel={backButtonLabel}\n />\n </CardHeader>\n <div className=\"mb-10 mt-2 sm:mx-auto sm:w-full sm:max-w-[480px]\">\n {slim && <CardContent>{children}</CardContent>}\n {!slim && (\n <div className=\"shadow-xs border border-gray-200 bg-white px-6 py-12 sm:rounded-lg sm:px-12 dark:border-gray-700 dark:bg-gray-800\">\n <CardContent>{children}</CardContent>\n </div>\n )}\n </div>\n <CardFooter>\n <BackButton label={backButtonLabel} href={backButtonHref} />\n </CardFooter>\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BI;AAzBJ,kBAIO;AACP,oBAAuB;AACvB,yBAA2B;AAWpB,MAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAwB;AACtB,SACE,4EACE;AAAA,gDAAC,0BACC;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP;AAAA,QACA;AAAA;AAAA,IACF,GACF;AAAA,IACA,6CAAC,SAAI,WAAU,oDACZ;AAAA,cAAQ,4CAAC,2BAAa,UAAS;AAAA,MAC/B,CAAC,QACA,4CAAC,SAAI,WAAU,qHACb,sDAAC,2BAAa,UAAS,GACzB;AAAA,OAEJ;AAAA,IACA,4CAAC,0BACC,sDAAC,iCAAW,OAAO,iBAAiB,MAAM,gBAAgB,GAC5D;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,11 @@
1
+ interface CardWrapperProps {
2
+ children: React.ReactNode;
3
+ headerLabel: string;
4
+ backButtonLabel: string;
5
+ backButtonHref: string;
6
+ showSocial?: boolean;
7
+ slim?: boolean;
8
+ }
9
+ export declare const CardWrapper: ({ children, headerLabel, backButtonLabel, backButtonHref, slim, }: CardWrapperProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=card-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-wrapper.d.ts","sourceRoot":"","sources":["../../../components/card/card-wrapper.tsx"],"names":[],"mappings":"AAUA,UAAU,gBAAgB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,eAAO,MAAM,WAAW,sEAMrB,gBAAgB,4CAuBlB,CAAA"}
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ CardContent,
5
+ CardFooter,
6
+ CardHeader
7
+ } from "../ui/card";
8
+ import { Header } from "./header";
9
+ import { BackButton } from "./back-button";
10
+ const CardWrapper = ({
11
+ children,
12
+ headerLabel,
13
+ backButtonLabel,
14
+ backButtonHref,
15
+ slim
16
+ }) => {
17
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
18
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(
19
+ Header,
20
+ {
21
+ label: headerLabel,
22
+ backButtonHref,
23
+ backButtonLabel
24
+ }
25
+ ) }),
26
+ /* @__PURE__ */ jsxs("div", { className: "mb-10 mt-2 sm:mx-auto sm:w-full sm:max-w-[480px]", children: [
27
+ slim && /* @__PURE__ */ jsx(CardContent, { children }),
28
+ !slim && /* @__PURE__ */ jsx("div", { className: "shadow-xs border border-gray-200 bg-white px-6 py-12 sm:rounded-lg sm:px-12 dark:border-gray-700 dark:bg-gray-800", children: /* @__PURE__ */ jsx(CardContent, { children }) })
29
+ ] }),
30
+ /* @__PURE__ */ jsx(CardFooter, { children: /* @__PURE__ */ jsx(BackButton, { label: backButtonLabel, href: backButtonHref }) })
31
+ ] });
32
+ };
33
+ export {
34
+ CardWrapper
35
+ };
36
+ //# sourceMappingURL=card-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/card-wrapper.tsx"],"sourcesContent":["'use client'\n\nimport {\n CardContent,\n CardFooter,\n CardHeader,\n} from '../ui/card'\nimport { Header } from './header'\nimport { BackButton } from './back-button'\n\ninterface CardWrapperProps {\n children: React.ReactNode\n headerLabel: string\n backButtonLabel: string\n backButtonHref: string\n showSocial?: boolean\n slim?: boolean\n}\n\nexport const CardWrapper = ({\n children,\n headerLabel,\n backButtonLabel,\n backButtonHref,\n slim,\n}: CardWrapperProps) => {\n return (\n <>\n <CardHeader>\n <Header\n label={headerLabel}\n backButtonHref={backButtonHref}\n backButtonLabel={backButtonLabel}\n />\n </CardHeader>\n <div className=\"mb-10 mt-2 sm:mx-auto sm:w-full sm:max-w-[480px]\">\n {slim && <CardContent>{children}</CardContent>}\n {!slim && (\n <div className=\"shadow-xs border border-gray-200 bg-white px-6 py-12 sm:rounded-lg sm:px-12 dark:border-gray-700 dark:bg-gray-800\">\n <CardContent>{children}</CardContent>\n </div>\n )}\n </div>\n <CardFooter>\n <BackButton label={backButtonLabel} href={backButtonHref} />\n </CardFooter>\n </>\n )\n}\n"],"mappings":";AA2BI,mBAEI,KAMF,YARF;AAzBJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAWpB,MAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAwB;AACtB,SACE,iCACE;AAAA,wBAAC,cACC;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP;AAAA,QACA;AAAA;AAAA,IACF,GACF;AAAA,IACA,qBAAC,SAAI,WAAU,oDACZ;AAAA,cAAQ,oBAAC,eAAa,UAAS;AAAA,MAC/B,CAAC,QACA,oBAAC,SAAI,WAAU,qHACb,8BAAC,eAAa,UAAS,GACzB;AAAA,OAEJ;AAAA,IACA,oBAAC,cACC,8BAAC,cAAW,OAAO,iBAAiB,MAAM,gBAAgB,GAC5D;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var header_exports = {};
30
+ __export(header_exports, {
31
+ Header: () => Header
32
+ });
33
+ module.exports = __toCommonJS(header_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_link = __toESM(require("next/link"), 1);
36
+ var import_logo = require("../icons/logo");
37
+ const Header = ({
38
+ label,
39
+ backButtonLabel,
40
+ backButtonHref
41
+ }) => {
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sm:mx-auto sm:w-full sm:max-w-md", children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.Logo, { className: "mx-auto h-10 w-auto" }) }),
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-500 dark:text-white", children: label }),
45
+ backButtonLabel ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-center text-sm text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: backButtonHref, children: backButtonLabel }) }) : null
46
+ ] });
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ Header
51
+ });
52
+ //# sourceMappingURL=header.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/header.tsx"],"sourcesContent":["import Link from 'next/link'\nimport { Logo } from '../icons/logo'\n\ninterface HeaderProps {\n label: string\n backButtonHref: string\n backButtonLabel: string\n}\n\nexport const Header = ({\n label,\n backButtonLabel,\n backButtonHref,\n}: HeaderProps) => {\n return (\n <div className=\"sm:mx-auto sm:w-full sm:max-w-md\">\n <Link href=\"/\">\n <Logo className=\"mx-auto h-10 w-auto\" />\n </Link>\n <h2 className=\"mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-500 dark:text-white\">\n {label}\n </h2>\n\n {backButtonLabel ? (\n <p className=\"text-center text-sm text-gray-500 dark:text-gray-400\">\n <Link href={backButtonHref}>{backButtonLabel}</Link>\n </p>\n ) : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeI;AAfJ,kBAAiB;AACjB,kBAAqB;AAQd,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AACF,MAAmB;AACjB,SACE,6CAAC,SAAI,WAAU,oCACb;AAAA,gDAAC,YAAAA,SAAA,EAAK,MAAK,KACT,sDAAC,oBAAK,WAAU,uBAAsB,GACxC;AAAA,IACA,4CAAC,QAAG,WAAU,8FACX,iBACH;AAAA,IAEC,kBACC,4CAAC,OAAE,WAAU,wDACX,sDAAC,YAAAA,SAAA,EAAK,MAAM,gBAAiB,2BAAgB,GAC/C,IACE;AAAA,KACN;AAEJ;","names":["Link"]}
@@ -0,0 +1,8 @@
1
+ interface HeaderProps {
2
+ label: string;
3
+ backButtonHref: string;
4
+ backButtonLabel: string;
5
+ }
6
+ export declare const Header: ({ label, backButtonLabel, backButtonHref, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../components/card/header.tsx"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,MAAM,gDAIhB,WAAW,4CAiBb,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import Link from "next/link";
3
+ import { Logo } from "../icons/logo";
4
+ const Header = ({
5
+ label,
6
+ backButtonLabel,
7
+ backButtonHref
8
+ }) => {
9
+ return /* @__PURE__ */ jsxs("div", { className: "sm:mx-auto sm:w-full sm:max-w-md", children: [
10
+ /* @__PURE__ */ jsx(Link, { href: "/", children: /* @__PURE__ */ jsx(Logo, { className: "mx-auto h-10 w-auto" }) }),
11
+ /* @__PURE__ */ jsx("h2", { className: "mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-500 dark:text-white", children: label }),
12
+ backButtonLabel ? /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(Link, { href: backButtonHref, children: backButtonLabel }) }) : null
13
+ ] });
14
+ };
15
+ export {
16
+ Header
17
+ };
18
+ //# sourceMappingURL=header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../components/card/header.tsx"],"sourcesContent":["import Link from 'next/link'\nimport { Logo } from '../icons/logo'\n\ninterface HeaderProps {\n label: string\n backButtonHref: string\n backButtonLabel: string\n}\n\nexport const Header = ({\n label,\n backButtonLabel,\n backButtonHref,\n}: HeaderProps) => {\n return (\n <div className=\"sm:mx-auto sm:w-full sm:max-w-md\">\n <Link href=\"/\">\n <Logo className=\"mx-auto h-10 w-auto\" />\n </Link>\n <h2 className=\"mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-500 dark:text-white\">\n {label}\n </h2>\n\n {backButtonLabel ? (\n <p className=\"text-center text-sm text-gray-500 dark:text-gray-400\">\n <Link href={backButtonHref}>{backButtonLabel}</Link>\n </p>\n ) : null}\n </div>\n )\n}\n"],"mappings":"AAeI,SAEI,KAFJ;AAfJ,OAAO,UAAU;AACjB,SAAS,YAAY;AAQd,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AACF,MAAmB;AACjB,SACE,qBAAC,SAAI,WAAU,oCACb;AAAA,wBAAC,QAAK,MAAK,KACT,8BAAC,QAAK,WAAU,uBAAsB,GACxC;AAAA,IACA,oBAAC,QAAG,WAAU,8FACX,iBACH;AAAA,IAEC,kBACC,oBAAC,OAAE,WAAU,wDACX,8BAAC,QAAK,MAAM,gBAAiB,2BAAgB,GAC/C,IACE;AAAA,KACN;AAEJ;","names":[]}