@donotdev/ui 0.3.1 → 0.3.3

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 (325) hide show
  1. package/README.md +2 -3
  2. package/dist/components/auth/AuthHeader.js +1 -93
  3. package/dist/components/auth/AuthMenu.d.ts.map +1 -1
  4. package/dist/components/auth/AuthMenu.js +3 -286
  5. package/dist/components/auth/index.js +1 -9
  6. package/dist/components/common/FeatureCard.d.ts.map +1 -1
  7. package/dist/components/common/FeatureCard.js +1 -86
  8. package/dist/components/common/FeatureDisabled.js +1 -67
  9. package/dist/components/common/IconPlaceholder.d.ts +24 -0
  10. package/dist/components/common/IconPlaceholder.d.ts.map +1 -0
  11. package/dist/components/common/IconPlaceholder.js +1 -0
  12. package/dist/components/common/LazyLucideIcon.d.ts +39 -0
  13. package/dist/components/common/LazyLucideIcon.d.ts.map +1 -0
  14. package/dist/components/common/LazyLucideIcon.js +1 -0
  15. package/dist/components/common/ProgressBar.js +1 -84
  16. package/dist/components/common/RedirectOverlay.js +1 -243
  17. package/dist/components/common/Skeleton.js +1 -144
  18. package/dist/components/common/TechBento.d.ts.map +1 -1
  19. package/dist/components/common/TechBento.js +1 -53
  20. package/dist/components/common/icon.d.ts +1 -1
  21. package/dist/components/common/icon.d.ts.map +1 -1
  22. package/dist/components/common/icon.js +1 -84
  23. package/dist/components/common/iconByName.d.ts +33 -0
  24. package/dist/components/common/iconByName.d.ts.map +1 -0
  25. package/dist/components/common/iconByName.js +1 -0
  26. package/dist/components/common/index.js +1 -16
  27. package/dist/components/cookie-consent/ConsentBanner.d.ts +3 -1
  28. package/dist/components/cookie-consent/ConsentBanner.d.ts.map +1 -1
  29. package/dist/components/cookie-consent/ConsentBanner.js +1 -31
  30. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  31. package/dist/components/cookie-consent/CookieConsent.js +1 -183
  32. package/dist/components/cookie-consent/index.js +1 -11
  33. package/dist/components/cookie-consent/useCookieNoticeRequired.d.ts +7 -0
  34. package/dist/components/cookie-consent/useCookieNoticeRequired.d.ts.map +1 -0
  35. package/dist/components/cookie-consent/useCookieNoticeRequired.js +1 -0
  36. package/dist/components/index.js +1 -13
  37. package/dist/components/layout/GameContainer.d.ts.map +1 -1
  38. package/dist/components/layout/GameContainer.js +1 -72
  39. package/dist/components/layout/GameFlow.d.ts.map +1 -1
  40. package/dist/components/layout/GameFlow.js +1 -93
  41. package/dist/components/layout/PageConfig.d.ts.map +1 -1
  42. package/dist/components/layout/PageConfig.js +1 -47
  43. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  44. package/dist/components/layout/PageContainer.js +1 -38
  45. package/dist/components/layout/components/Breadcrumbs.d.ts +2 -1
  46. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  47. package/dist/components/layout/components/Breadcrumbs.js +1 -89
  48. package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
  49. package/dist/components/layout/components/DropdownNavigation.js +1 -30
  50. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
  51. package/dist/components/layout/components/FloatingLanguageSwitcher.js +1 -26
  52. package/dist/components/layout/components/Notifications.js +1 -182
  53. package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
  54. package/dist/components/layout/components/header/AppBranding.js +1 -54
  55. package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
  56. package/dist/components/layout/components/header/AppIcon.js +1 -59
  57. package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
  58. package/dist/components/layout/components/header/AppTitle.js +1 -40
  59. package/dist/components/layout/components/header/CacheSettings.js +1 -225
  60. package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
  61. package/dist/components/layout/components/header/GameTitle.js +1 -66
  62. package/dist/components/layout/components/header/HeaderMenu.js +1 -75
  63. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  64. package/dist/components/layout/components/header/HeaderNavigation.js +1 -66
  65. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  66. package/dist/components/layout/components/header/SettingsMenu.js +1 -85
  67. package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
  68. package/dist/components/layout/components/header/ThemeToggle.js +1 -93
  69. package/dist/components/layout/components/index.js +1 -25
  70. package/dist/components/layout/index.js +1 -14
  71. package/dist/crud/components/ChildRowsPicker.js +1 -68
  72. package/dist/crud/components/CrudCardLink.js +1 -14
  73. package/dist/crud/components/EntityCardList.d.ts +4 -1
  74. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  75. package/dist/crud/components/EntityCardList.js +1 -184
  76. package/dist/crud/components/EntityDisplayRenderer.js +1 -130
  77. package/dist/crud/components/EntityFormRenderer.js +1 -433
  78. package/dist/crud/components/EntityList.js +1 -521
  79. package/dist/crud/components/EntityRecommendations.js +1 -87
  80. package/dist/crud/components/EntityWorkflow.js +1 -55
  81. package/dist/crud/components/Form.d.ts.map +1 -1
  82. package/dist/crud/components/Form.js +1 -198
  83. package/dist/crud/components/cellEditFor.js +1 -74
  84. package/dist/crud/components/entityParent.js +1 -76
  85. package/dist/crud/components/index.js +1 -16
  86. package/dist/crud/components/useRecordBreadcrumb.d.ts +3 -1
  87. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
  88. package/dist/crud/components/useRecordBreadcrumb.js +1 -43
  89. package/dist/crud/crudImports.js +1 -51
  90. package/dist/crud/index.js +1 -11
  91. package/dist/data/techLogos.js +1 -99
  92. package/dist/dndev-next.css +113 -41
  93. package/dist/dndev.css +113 -41
  94. package/dist/index.js +1 -5
  95. package/dist/internal/common/DnDevErrorBoundary.js +1 -55
  96. package/dist/internal/common/ErrorFallback.js +3 -214
  97. package/dist/internal/common/GlobalErrorFallback.js +1 -45
  98. package/dist/internal/common/RouteErrorFallback.js +3 -140
  99. package/dist/internal/devtools/DebugTools.js +1 -131
  100. package/dist/internal/devtools/components/AuthDebugButton.js +1 -72
  101. package/dist/internal/devtools/components/ConfigTab.js +1 -61
  102. package/dist/internal/devtools/components/CookieTab.js +1 -156
  103. package/dist/internal/devtools/components/DebugDialog.js +1 -48
  104. package/dist/internal/devtools/components/DesignTab.js +1 -469
  105. package/dist/internal/devtools/components/LayoutReset.js +1 -214
  106. package/dist/internal/devtools/components/MaskedValue.js +1 -39
  107. package/dist/internal/devtools/components/StoresTab.js +1 -90
  108. package/dist/internal/devtools/components/index.js +1 -16
  109. package/dist/internal/devtools/index.js +1 -13
  110. package/dist/internal/devtools/types.js +0 -2
  111. package/dist/internal/devtools/utils/envVarDiscovery.js +1 -106
  112. package/dist/internal/devtools/utils/index.js +1 -12
  113. package/dist/internal/devtools/utils/maskSensitive.js +1 -59
  114. package/dist/internal/devtools/utils/virtualModuleInspector.js +1 -309
  115. package/dist/internal/initializers/BaseStoresInitializer.js +1 -367
  116. package/dist/internal/initializers/NextJsStoresInitializer.js +1 -78
  117. package/dist/internal/initializers/ViteStoresInitializer.js +1 -20
  118. package/dist/internal/initializers/index.js +1 -11
  119. package/dist/internal/layout/DnDevLayout.js +1 -321
  120. package/dist/internal/layout/components/AutoMetaTags.d.ts +5 -0
  121. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  122. package/dist/internal/layout/components/AutoMetaTags.js +1 -338
  123. package/dist/internal/layout/components/FaviconHead.d.ts +18 -14
  124. package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
  125. package/dist/internal/layout/components/FaviconHead.js +1 -60
  126. package/dist/internal/layout/components/FontPreloadLinks.js +1 -31
  127. package/dist/internal/layout/components/HeadTags.js +1 -20
  128. package/dist/internal/layout/components/PWAUpdateNotification.js +1 -131
  129. package/dist/internal/layout/components/footer/FooterBranding.d.ts.map +1 -1
  130. package/dist/internal/layout/components/footer/FooterBranding.js +1 -35
  131. package/dist/internal/layout/components/footer/FooterCopyright.d.ts.map +1 -1
  132. package/dist/internal/layout/components/footer/FooterCopyright.js +1 -37
  133. package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts.map +1 -1
  134. package/dist/internal/layout/components/footer/FooterLegalLinks.js +1 -44
  135. package/dist/internal/layout/components/footer/useLegalLinks.d.ts +4 -2
  136. package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
  137. package/dist/internal/layout/components/footer/useLegalLinks.js +1 -21
  138. package/dist/internal/layout/components/headTagElement.d.ts +16 -0
  139. package/dist/internal/layout/components/headTagElement.d.ts.map +1 -0
  140. package/dist/internal/layout/components/headTagElement.js +1 -0
  141. package/dist/internal/layout/components/index.js +1 -13
  142. package/dist/internal/layout/components/prerenderedHead.d.ts +15 -0
  143. package/dist/internal/layout/components/prerenderedHead.d.ts.map +1 -0
  144. package/dist/internal/layout/components/prerenderedHead.js +1 -0
  145. package/dist/internal/layout/components/trailingSlash.d.ts +13 -0
  146. package/dist/internal/layout/components/trailingSlash.d.ts.map +1 -0
  147. package/dist/internal/layout/components/trailingSlash.js +1 -0
  148. package/dist/internal/layout/config/defaults.js +1 -47
  149. package/dist/internal/layout/config/index.js +1 -11
  150. package/dist/internal/layout/config/presets/admin.js +1 -35
  151. package/dist/internal/layout/config/presets/blog.js +1 -31
  152. package/dist/internal/layout/config/presets/docs.js +1 -51
  153. package/dist/internal/layout/config/presets/game.js +1 -53
  154. package/dist/internal/layout/config/presets/index.js +1 -24
  155. package/dist/internal/layout/config/presets/landing.js +1 -42
  156. package/dist/internal/layout/config/presets/moolti.js +1 -52
  157. package/dist/internal/layout/config/presets/plain.js +1 -25
  158. package/dist/internal/layout/renderers/index.js +0 -10
  159. package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
  160. package/dist/internal/layout/zones/DnDevFooter.js +1 -67
  161. package/dist/internal/layout/zones/DnDevHeader.js +1 -41
  162. package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
  163. package/dist/internal/layout/zones/DnDevMergedBar.js +1 -52
  164. package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
  165. package/dist/internal/layout/zones/DnDevSidebar.js +1 -181
  166. package/dist/internal/layout/zones/index.js +1 -14
  167. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  168. package/dist/internal/providers/NavigationProvider.js +1 -71
  169. package/dist/internal/providers/SentryInitializer.d.ts.map +1 -1
  170. package/dist/internal/providers/SentryInitializer.js +1 -36
  171. package/dist/internal/providers/UIProviders.js +1 -79
  172. package/dist/internal/providers/index.js +1 -12
  173. package/dist/next.js +1 -11
  174. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  175. package/dist/providers/NextJsAppProviders.js +1 -107
  176. package/dist/providers/ViteAppProviders.d.ts +11 -9
  177. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  178. package/dist/providers/ViteAppProviders.js +1 -117
  179. package/dist/providers/index.js +1 -11
  180. package/dist/routing/404.js +1 -108
  181. package/dist/routing/AuthGuard.js +1 -178
  182. package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
  183. package/dist/routing/AuthGuardFallback.js +1 -67
  184. package/dist/routing/AuthReturnTo.js +1 -68
  185. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  186. package/dist/routing/DnDevNavigationMenu.js +1 -138
  187. package/dist/routing/GoTo.d.ts.map +1 -1
  188. package/dist/routing/GoTo.js +1 -38
  189. package/dist/routing/GoToDialog.d.ts.map +1 -1
  190. package/dist/routing/GoToDialog.js +1 -97
  191. package/dist/routing/GoToInput.d.ts.map +1 -1
  192. package/dist/routing/GoToInput.js +1 -49
  193. package/dist/routing/GoToWrapper.d.ts.map +1 -1
  194. package/dist/routing/GoToWrapper.js +1 -59
  195. package/dist/routing/Link.d.ts +10 -2
  196. package/dist/routing/Link.d.ts.map +1 -1
  197. package/dist/routing/Link.js +1 -109
  198. package/dist/routing/NavigationItem.d.ts.map +1 -1
  199. package/dist/routing/NavigationItem.js +1 -44
  200. package/dist/routing/NotFoundDocument.d.ts +33 -0
  201. package/dist/routing/NotFoundDocument.d.ts.map +1 -0
  202. package/dist/routing/NotFoundDocument.js +1 -0
  203. package/dist/routing/SignedInRedirect.js +1 -47
  204. package/dist/routing/hooks/hooks.next.js +1 -1
  205. package/dist/routing/hooks/hooks.vite.js +1 -1
  206. package/dist/routing/hooks/index.js +1 -26
  207. package/dist/routing/hooks/types.js +0 -2
  208. package/dist/routing/hooks/useLocation.next.js +1 -35
  209. package/dist/routing/hooks/useLocation.vite.js +1 -13
  210. package/dist/routing/hooks/useMatch.next.js +1 -31
  211. package/dist/routing/hooks/useMatch.vite.js +1 -6
  212. package/dist/routing/hooks/useNavigate.next.js +1 -64
  213. package/dist/routing/hooks/useNavigate.vite.js +1 -61
  214. package/dist/routing/hooks/useParams.next.js +1 -9
  215. package/dist/routing/hooks/useParams.vite.js +1 -6
  216. package/dist/routing/hooks/useQueryParams.next.js +1 -66
  217. package/dist/routing/hooks/useQueryParams.vite.js +1 -66
  218. package/dist/routing/hooks/useRedirectGuard.next.js +1 -119
  219. package/dist/routing/hooks/useRedirectGuard.vite.js +1 -117
  220. package/dist/routing/hooks/useRouteParam.next.js +1 -38
  221. package/dist/routing/hooks/useRouteParam.vite.js +1 -38
  222. package/dist/routing/hooks/useRoutePath.next.d.ts +5 -3
  223. package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -1
  224. package/dist/routing/hooks/useRoutePath.next.js +1 -36
  225. package/dist/routing/hooks/useRoutePath.vite.js +1 -25
  226. package/dist/routing/hooks/useSearchParams.next.js +1 -22
  227. package/dist/routing/hooks/useSearchParams.vite.js +1 -22
  228. package/dist/routing/hooks/useUrlLanguage.next.js +1 -50
  229. package/dist/routing/hooks/useUrlLanguage.vite.js +1 -41
  230. package/dist/routing/index.d.ts +1 -0
  231. package/dist/routing/index.d.ts.map +1 -1
  232. package/dist/routing/index.js +1 -32
  233. package/dist/routing/link/InternalLink.next.d.ts +23 -0
  234. package/dist/routing/link/InternalLink.next.d.ts.map +1 -0
  235. package/dist/routing/link/InternalLink.next.js +1 -0
  236. package/dist/routing/link/InternalLink.vite.d.ts +22 -0
  237. package/dist/routing/link/InternalLink.vite.d.ts.map +1 -0
  238. package/dist/routing/link/InternalLink.vite.js +1 -0
  239. package/dist/routing/link/absolutePath.d.ts +17 -0
  240. package/dist/routing/link/absolutePath.d.ts.map +1 -0
  241. package/dist/routing/link/absolutePath.js +1 -0
  242. package/dist/routing/link/link.next.d.ts +12 -0
  243. package/dist/routing/link/link.next.d.ts.map +1 -0
  244. package/dist/routing/link/link.next.js +1 -0
  245. package/dist/routing/link/link.vite.d.ts +12 -0
  246. package/dist/routing/link/link.vite.d.ts.map +1 -0
  247. package/dist/routing/link/link.vite.js +1 -0
  248. package/dist/routing/link/types.d.ts +30 -0
  249. package/dist/routing/link/types.d.ts.map +1 -0
  250. package/dist/routing/link/types.js +0 -0
  251. package/dist/routing/parentRoute.js +1 -43
  252. package/dist/routing/useGoTo.d.ts.map +1 -1
  253. package/dist/routing/useGoTo.js +1 -59
  254. package/dist/routing/useNavigation.d.ts.map +1 -1
  255. package/dist/routing/useNavigation.js +1 -114
  256. package/dist/routing/useRouteDiscovery.d.ts +4 -0
  257. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  258. package/dist/routing/useRouteDiscovery.js +1 -313
  259. package/dist/rsc.d.ts +28 -0
  260. package/dist/rsc.d.ts.map +1 -0
  261. package/dist/rsc.js +1 -0
  262. package/dist/styles/index.css +113 -41
  263. package/dist/styles/index.js +1 -10
  264. package/dist/styles/layoutConstants.js +1 -134
  265. package/dist/symbol-index.json +1 -1
  266. package/dist/utils/assetResolver.d.ts +19 -19
  267. package/dist/utils/assetResolver.d.ts.map +1 -1
  268. package/dist/utils/assetResolver.js +1 -297
  269. package/dist/utils/index.d.ts +0 -1
  270. package/dist/utils/index.d.ts.map +1 -1
  271. package/dist/utils/index.js +1 -23
  272. package/dist/utils/sanitizeSvg.js +1 -51
  273. package/dist/utils/tList.js +1 -42
  274. package/dist/utils/useAISafe.d.ts.map +1 -1
  275. package/dist/utils/useAISafe.js +1 -53
  276. package/dist/utils/useAuthSafe.d.ts.map +1 -1
  277. package/dist/utils/useAuthSafe.js +1 -78
  278. package/dist/utils/useAuthVisibility.d.ts.map +1 -1
  279. package/dist/utils/useAuthVisibility.js +1 -63
  280. package/dist/utils/useBillingVisibility.d.ts.map +1 -1
  281. package/dist/utils/useBillingVisibility.js +1 -57
  282. package/dist/utils/useCrudSafe.d.ts.map +1 -1
  283. package/dist/utils/useCrudSafe.js +1 -75
  284. package/dist/utils/useDeleteAccountSafe.js +1 -52
  285. package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
  286. package/dist/utils/useFormStoreSafe.js +1 -85
  287. package/dist/utils/useOAuthSafe.d.ts.map +1 -1
  288. package/dist/utils/useOAuthSafe.js +1 -38
  289. package/dist/utils/useStripeBillingSafe.d.ts.map +1 -1
  290. package/dist/utils/useStripeBillingSafe.js +1 -81
  291. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  292. package/dist/vite-routing/AppRoutes.js +1 -235
  293. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  294. package/dist/vite-routing/RootLayout.js +1 -205
  295. package/dist/vite-routing/index.js +1 -11
  296. package/dist/vite.js +1 -10
  297. package/guidelines/COMPONENTS.md +3 -3
  298. package/guidelines/PAGES.md +3 -0
  299. package/guidelines/ROUTING.md +16 -0
  300. package/guidelines/SEO.md +160 -142
  301. package/package.json +18 -8
  302. package/dist/ChildRowsPicker-63M4EQUQ.js +0 -1
  303. package/dist/ChildRowsPicker-ISP365ON.js +0 -1
  304. package/dist/ChildRowsPicker-PQFE6NCR.js +0 -1
  305. package/dist/ChildRowsPicker-XXFFSMWY.js +0 -1
  306. package/dist/CookieConsent-QOUAY6B4.js +0 -1
  307. package/dist/GoToDialog-KSBGOIWO.js +0 -1
  308. package/dist/GoToDialog-XBK5EZF4.js +0 -1
  309. package/dist/chunk-3CIZFGST.js +0 -1
  310. package/dist/chunk-LHMKU342.js +0 -1
  311. package/dist/chunk-MS7ZIW5Z.js +0 -1
  312. package/dist/chunk-O2XFH626.js +0 -1
  313. package/dist/chunk-P2DHZWPY.js +0 -1
  314. package/dist/components/common/lucideIconByName.d.ts +0 -9
  315. package/dist/components/common/lucideIconByName.d.ts.map +0 -1
  316. package/dist/components/common/lucideIconByName.js +0 -32
  317. package/dist/internal/layout/components/PerformanceHints.d.ts +0 -71
  318. package/dist/internal/layout/components/PerformanceHints.d.ts.map +0 -1
  319. package/dist/internal/layout/components/PerformanceHints.js +0 -71
  320. package/dist/internal/layout/components/i18nSeoMeta.d.ts +0 -54
  321. package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +0 -1
  322. package/dist/internal/layout/components/i18nSeoMeta.js +0 -53
  323. package/dist/utils/useSeo.d.ts +0 -129
  324. package/dist/utils/useSeo.d.ts.map +0 -1
  325. package/dist/utils/useSeo.js +0 -151
@@ -1 +1 @@
1
- {"version":3,"file":"FooterBranding.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterBranding.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CA8BnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FooterBranding.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterBranding.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CA8BnE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,35 +1 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/components/footer/FooterBranding.tsx
3
- /**
4
- * @fileoverview FooterBranding Component
5
- * @description "Links to DoNotDev.com in the footers of generated apps.
6
- *
7
- * @version 0.1.0
8
- * @since 0.0.1
9
- * @author AMBROISE PARK Consulting
10
- */
11
- import { ExternalLink } from 'lucide-react';
12
- import { useAppConfig, getPlatformEnvVar } from '@donotdev/core';
13
- /**
14
- * FooterBranding - Framework branding link (power move)
15
- *
16
- * Shows AMBROISE-PARK for framework's own site (donotdev.com),
17
- * otherwise shows DoNotDev for consumer apps.
18
- *
19
- * @version 0.1.0
20
- * @since 0.0.1
21
- * @author AMBROISE PARK Consulting
22
- */
23
- export const FooterBranding = ({ className, }) => {
24
- const appUrl = getPlatformEnvVar('APP_URL');
25
- const isFrameworkSite = appUrl === 'https://donotdev.com';
26
- return (_jsxs("a", { href: isFrameworkSite
27
- ? 'https://www.ambroise-park.com'
28
- : 'https://donotdev.com', target: "_blank", rel: "noopener noreferrer", className: className, style: {
29
- display: 'inline-flex',
30
- alignItems: 'center',
31
- gap: 'var(--gap-sm)',
32
- fontSize: 'var(--font-size-xs)',
33
- }, children: [isFrameworkSite ? 'AMBROISE-PARK' : 'DoNotDev', _jsx(ExternalLink, { style: { width: '12px', height: '12px' }, "aria-hidden": "true" })] }));
34
- };
35
- export default FooterBranding;
1
+ "use client";import{ExternalLink as r}from"lucide-react";import{getPlatformEnvVar as o}from"@donotdev/core";import{jsx as a,jsxs as p}from"react/jsx-runtime";var n=({className:t})=>{let e=o("APP_URL")==="https://donotdev.com";return p("a",{href:e?"https://www.ambroise-park.com":"https://donotdev.com",target:"_blank",rel:"noopener noreferrer",className:t,style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-sm)",fontSize:"var(--font-size-xs)"},children:[e?"AMBROISE-PARK":"DoNotDev",a(r,{style:{width:"12px",height:"12px"},"aria-hidden":"true"})]})},d=n;export{n as FooterBranding,d as default};
@@ -1 +1 @@
1
- {"version":3,"file":"FooterCopyright.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterCopyright.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAuBrE,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"FooterCopyright.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterCopyright.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAuBrE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,37 +1 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/components/footer/FooterCopyright.tsx
3
- /**
4
- * @fileoverview FooterCopyright Component
5
- * @description Copyright notice with year and app name, uses translations
6
- *
7
- * @version 0.1.0
8
- * @since 0.0.1
9
- * @author AMBROISE PARK Consulting
10
- */
11
- import { cn } from '@donotdev/components';
12
- import { useTranslation, useAppConfig } from '@donotdev/core';
13
- /**
14
- * FooterCopyright - Copyright notice component
15
- *
16
- * Uses useTranslation internally, so it re-renders when language changes.
17
- * If appName not provided, reads from app config automatically.
18
- * Renders nothing when the app has no footer (`app.footer: null`), as DnDevFooter,
19
- * including in presets that show it in the sidebar.
20
- *
21
- * @version 0.1.0
22
- * @since 0.0.1
23
- * @author AMBROISE PARK Consulting
24
- */
25
- export const FooterCopyright = ({ appName, year = new Date().getFullYear(), className, }) => {
26
- const { t } = useTranslation('dndev');
27
- const app = useAppConfig('app');
28
- const resolvedAppName = appName || app?.name || 'App';
29
- if (app?.footer === null)
30
- return null;
31
- return (_jsxs("span", { className: cn(className), style: {
32
- flexShrink: 0,
33
- color: 'var(--muted-foreground)',
34
- fontSize: 'var(--font-size-xs)',
35
- }, children: ["\u00A9 ", year, " ", resolvedAppName, ". ", t('footer.legal.allRightsReserved')] }));
36
- };
37
- export default FooterCopyright;
1
+ "use client";import{cn as a}from"@donotdev/components";import{useTranslation as s,useAppConfig as l}from"@donotdev/core";import{jsxs as f}from"react/jsx-runtime";var i=({appName:o,year:r=new Date().getFullYear(),className:t})=>{let{t:n}=s("dndev"),e=l("app"),p=o||e?.name||"App";return e?.footer===null?null:f("span",{className:a(t),style:{flexShrink:0,color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"},children:["\xA9 ",r," ",p,". ",n("footer.legal.allRightsReserved")]})},c=i;export{i as FooterCopyright,c as default};
@@ -1 +1 @@
1
- {"version":3,"file":"FooterLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterLegalLinks.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;CAChD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAyCvE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"FooterLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterLegalLinks.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;CAChD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CA0CvE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,44 +1 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/components/footer/FooterLegalLinks.tsx
3
- /**
4
- * @fileoverview FooterLegalLinks Component
5
- * @description Legal links component for use in sidebars when footer is hidden
6
- *
7
- * @version 0.1.0
8
- * @since 0.0.1
9
- * @author AMBROISE PARK Consulting
10
- */
11
- import { Stack } from '@donotdev/components';
12
- import { useTranslation, maybeTranslate, useAppConfig } from '@donotdev/core';
13
- import { FooterBranding } from './FooterBranding';
14
- import { getLegalLinks } from './useLegalLinks';
15
- import { Link } from '../../../../routing/Link';
16
- /**
17
- * FooterLegalLinks - Legal links component
18
- *
19
- * Renders legal links from app.footer.legalLinks config.
20
- * If app not provided, reads from app config automatically.
21
- * Used in footer and sidebar when footer zone is hidden.
22
- *
23
- * @version 0.1.0
24
- * @since 0.0.1
25
- * @author AMBROISE PARK Consulting
26
- */
27
- export const FooterLegalLinks = ({ app, direction = 'column', gap = 'tight', align = 'stretch', }) => {
28
- const { t } = useTranslation('dndev');
29
- const appConfig = useAppConfig('app');
30
- const resolvedApp = app || appConfig || {};
31
- const links = getLegalLinks(resolvedApp.footer);
32
- const linkStyle = {
33
- transition: 'color var(--dur-fast) ease-out',
34
- textDecoration: 'underline',
35
- textUnderlineOffset: '2px',
36
- color: 'var(--muted-foreground)',
37
- fontSize: 'var(--font-size-xs)',
38
- };
39
- if (links.length === 0) {
40
- return null;
41
- }
42
- return (_jsxs(Stack, { direction: direction, gap: gap, align: align, children: [links.map((link) => (_jsx(Link, { path: link.path, style: linkStyle, onMouseEnter: (e) => (e.currentTarget.style.color = 'var(--primary)'), onMouseLeave: (e) => (e.currentTarget.style.color = 'var(--muted-foreground)'), children: maybeTranslate(t, link.label) }, link.path))), _jsx(FooterBranding, {})] }));
43
- };
44
- export default FooterLegalLinks;
1
+ "use client";import{Stack as d}from"@donotdev/components";import{useTranslation as g,maybeTranslate as f,useAppConfig as L}from"@donotdev/core";import{FooterBranding as k}from"./FooterBranding.js";import{getLegalLinks as y}from"./useLegalLinks.js";import{useCookieNoticeRequired as v}from"../../../../components/cookie-consent/useCookieNoticeRequired.js";import{Link as h}from"../../../../routing/Link.js";import{jsx as r,jsxs as F}from"react/jsx-runtime";var x=({app:n,direction:a="column",gap:i="tight",align:p="stretch"})=>{let{t:s}=g("dndev"),l=L("app"),c=n||l||{},m=v(),o=y(c.footer,m),u={transition:"color var(--dur-fast) ease-out",textDecoration:"underline",textUnderlineOffset:"2px",color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"};return o.length===0?null:F(d,{direction:a,gap:i,align:p,children:[o.map(e=>r(h,{path:e.path,style:u,onMouseEnter:t=>t.currentTarget.style.color="var(--primary)",onMouseLeave:t=>t.currentTarget.style.color="var(--muted-foreground)",children:f(s,e.label)},e.path)),r(k,{})]})},b=x;export{x as FooterLegalLinks,b as default};
@@ -6,9 +6,11 @@ export interface FooterLegalLink {
6
6
  /**
7
7
  * Returns the configured legal links for the footer.
8
8
  * Handles the logic: `footer: null` or `legalLinks: null` = hide, undefined = defaults,
9
- * array = custom
9
+ * array = custom.
10
+ * The `#cookie-settings` link is dropped when the app has no cookie notice
11
+ * (`cookieNoticeRequired: false`, see `useCookieNoticeRequired`): nothing to configure.
10
12
  *
11
13
  * @remarks Not a hook — no React state or effects. Named with `get` prefix.
12
14
  */
13
- export declare const getLegalLinks: (footerConfig: AppMetadata["footer"]) => FooterLegalLink[];
15
+ export declare const getLegalLinks: (footerConfig: AppMetadata["footer"], cookieNoticeRequired?: boolean) => FooterLegalLink[];
14
16
  //# sourceMappingURL=useLegalLinks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/useLegalLinks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAQD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GACxB,cAAc,WAAW,CAAC,QAAQ,CAAC,KAClC,eAAe,EAQjB,CAAC"}
1
+ {"version":3,"file":"useLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/useLegalLinks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAQD;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GACxB,cAAc,WAAW,CAAC,QAAQ,CAAC,EACnC,8BAA2B,KAC1B,eAAe,EAWjB,CAAC"}
@@ -1,21 +1 @@
1
- // packages/ui/src/internal/layout/components/footer/useLegalLinks.ts
2
- const DEFAULT_LINKS = [
3
- { path: '#cookie-settings', label: 'footer.legal.cookieSettings' },
4
- { label: 'footer.legal.privacyPolicy', path: '/privacy' },
5
- { label: 'footer.legal.termsOfService', path: '/terms' },
6
- ];
7
- /**
8
- * Returns the configured legal links for the footer.
9
- * Handles the logic: `footer: null` or `legalLinks: null` = hide, undefined = defaults,
10
- * array = custom
11
- *
12
- * @remarks Not a hook — no React state or effects. Named with `get` prefix.
13
- */
14
- export const getLegalLinks = (footerConfig) => {
15
- // No footer at all, or links explicitly null: hidden (also in presets that show them in the sidebar)
16
- if (footerConfig === null || footerConfig?.legalLinks === null) {
17
- return [];
18
- }
19
- // Use configured links or defaults
20
- return footerConfig?.legalLinks ?? DEFAULT_LINKS;
21
- };
1
+ var o=[{path:"#cookie-settings",label:"footer.legal.cookieSettings"},{label:"footer.legal.privacyPolicy",path:"/privacy"},{label:"footer.legal.termsOfService",path:"/terms"}],r=(e,l=!0)=>{if(e===null||e?.legalLinks===null)return[];let t=e?.legalLinks??o;return l?t:t.filter(a=>a.path!=="#cookie-settings")};export{r as getLegalLinks};
@@ -0,0 +1,16 @@
1
+ import type { HeadTag } from '@donotdev/core';
2
+ /**
3
+ * A head tag of the shared builders (`@donotdev/core` headTags) as the element
4
+ * `HeadTags` hoists (React 19 on Next, react-helmet-async on Vite). Usable as an
5
+ * `Array.map` callback: the index keys the element.
6
+ *
7
+ * @param headTag - Tag name, HTML attributes, text content
8
+ * @param index - Position in its list (React key)
9
+ * @returns The element
10
+ *
11
+ * @version 0.1.0
12
+ * @since 0.3.2
13
+ * @author AMBROISE PARK Consulting
14
+ */
15
+ export declare function headTagElement({ tag, attributes, text }: HeadTag, index: number): import("react").DetailedReactHTMLElement<Record<string, string>, HTMLElement>;
16
+ //# sourceMappingURL=headTagElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headTagElement.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/headTagElement.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAK9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iFAM/E"}
@@ -0,0 +1 @@
1
+ import{createElement as s}from"react";var d={hreflang:"hrefLang"};function i({tag:e,attributes:o,text:t},a){let r={key:`${e}-${a}`};for(let[n,c]of Object.entries(o))r[d[n]??n]=c;return s(e,r,t)}export{i as headTagElement};
@@ -1,13 +1 @@
1
- // packages/ui/src/internal/layout/components/index.ts
2
- /**
3
- * @fileoverview Internal Layout Components Barrel Exports
4
- * @description Barrel exports for internal layout component modules
5
- *
6
- * @version 0.1.0
7
- * @since 0.0.1
8
- * @author AMBROISE PARK Consulting
9
- */
10
- export { FooterCopyright } from './footer/FooterCopyright';
11
- export { FooterLegalLinks } from './footer/FooterLegalLinks';
12
- export { FooterBranding } from './footer/FooterBranding';
13
- export { getLegalLinks } from './footer/useLegalLinks';
1
+ import{FooterCopyright as r}from"./footer/FooterCopyright.js";import{FooterLegalLinks as L}from"./footer/FooterLegalLinks.js";import{FooterBranding as p}from"./footer/FooterBranding.js";import{getLegalLinks as i}from"./footer/useLegalLinks.js";export{p as FooterBranding,r as FooterCopyright,L as FooterLegalLinks,i as getLegalLinks};
@@ -0,0 +1,15 @@
1
+ import type { PrerenderedHead } from '@donotdev/core';
2
+ /**
3
+ * The prerendered head of the page at `url`, when the loaded document is that page's
4
+ * static HTML.
5
+ *
6
+ * @param url - Canonical URL of the current page (`languageUrl`)
7
+ * @returns The head the build embedded, or null (another URL, no prerendered page,
8
+ * server render)
9
+ *
10
+ * @version 0.2.0
11
+ * @since 0.3.2
12
+ * @author AMBROISE PARK Consulting
13
+ */
14
+ export declare function prerenderedHead(url: string): PrerenderedHead | null;
15
+ //# sourceMappingURL=prerenderedHead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prerenderedHead.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/prerenderedHead.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CASnE"}
@@ -0,0 +1 @@
1
+ import{PRERENDERED_HEAD_ELEMENT_ID as r}from"@donotdev/core";var e;function o(n){if(typeof document>"u")return null;if(e===void 0){let d=document.getElementById(r)?.textContent;e=d?JSON.parse(d):null}return e?.url===n?e:null}export{o as prerenderedHead};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Whether the app's page URLs end with `/`: the Next `trailingSlash` setting, written by
3
+ * the build into the route manifest (`routes.manifest.trailingSlash`, set on the server
4
+ * and in the browser alike). Never on Vite (no such setting).
5
+ *
6
+ * @returns true when the app sets Next `trailingSlash: true`
7
+ *
8
+ * @version 0.1.0
9
+ * @since 0.3.2
10
+ * @author AMBROISE PARK Consulting
11
+ */
12
+ export declare function appTrailingSlash(): boolean;
13
+ //# sourceMappingURL=trailingSlash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trailingSlash.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/trailingSlash.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C"}
@@ -0,0 +1 @@
1
+ import{getDndevConfig as n}from"@donotdev/core";function t(){return n()?.routes?.manifest?.trailingSlash===!0}export{t as appTrailingSlash};
@@ -1,47 +1 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DISPLAY } from '@donotdev/components';
3
- import { LanguageSelector } from '@donotdev/core';
4
- import { AuthHeader } from '../../../components/auth';
5
- import { AppBranding, ThemeToggle, } from '../../../components/layout/components';
6
- import { DnDevNavigationMenu } from '../../../routing';
7
- import { GoTo } from '../../../routing/GoTo';
8
- /**
9
- * Default slot functions - zones use these unless preset overrides
10
- *
11
- * All slots are functions, even if they return null.
12
- * This ensures defaults exist when switching layouts.
13
- */
14
- export const DEFAULT_SLOTS = {
15
- header: {
16
- /** Default start: AppBranding (responsive logo + title) */
17
- start: () => _jsx(AppBranding, { display: DISPLAY.AUTO }),
18
- /** Default center: empty (function exists but returns null) */
19
- center: () => null,
20
- /** Default end: GoTo, Auth, Language, Theme */
21
- end: () => (_jsxs(_Fragment, { children: [_jsx(GoTo, { display: DISPLAY.AUTO }), _jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.AUTO }), _jsx(ThemeToggle, { display: DISPLAY.AUTO })] })),
22
- },
23
- sidebar: {
24
- /** Default top: empty (function exists but returns null) */
25
- top: () => null,
26
- /** Default content: Navigation menu */
27
- content: () => (_jsx(DnDevNavigationMenu, { vertical: true, display: DISPLAY.AUTO })),
28
- /** Default bottom: Auth, Language, Theme */
29
- bottom: () => (_jsxs(_Fragment, { children: [_jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.AUTO }), _jsx(ThemeToggle, { display: DISPLAY.AUTO })] })),
30
- /** Default dimensions */
31
- defaultWidth: 240,
32
- minWidth: 48,
33
- maxWidth: 400,
34
- },
35
- mobile: {
36
- mergedBar: {
37
- /** Default trigger: AppBranding */
38
- trigger: () => _jsx(AppBranding, { display: DISPLAY.AUTO }),
39
- /** Default top: empty (function exists but returns null) */
40
- top: () => null,
41
- /** Default content: empty (will use sidebar.content default) */
42
- content: () => null,
43
- /** Default bottom: empty (will use sidebar.bottom default) */
44
- bottom: () => null,
45
- },
46
- },
47
- };
1
+ import{DISPLAY as e}from"@donotdev/components";import{LanguageSelector as o}from"@donotdev/core";import{AuthHeader as a}from"../../../components/auth/index.js";import{AppBranding as d,ThemeToggle as i}from"../../../components/layout/components/index.js";import{DnDevNavigationMenu as p}from"../../../routing/index.js";import{GoTo as m}from"../../../routing/GoTo.js";import{Fragment as r,jsx as t,jsxs as l}from"react/jsx-runtime";var y={header:{start:()=>t(d,{display:e.AUTO}),center:()=>null,end:()=>l(r,{children:[t(m,{display:e.AUTO}),t(a,{display:e.AUTO}),t(o,{display:e.AUTO}),t(i,{display:e.AUTO})]})},sidebar:{top:()=>null,content:()=>t(p,{vertical:!0,display:e.AUTO}),bottom:()=>l(r,{children:[t(a,{display:e.AUTO}),t(o,{display:e.AUTO}),t(i,{display:e.AUTO})]}),defaultWidth:240,minWidth:48,maxWidth:400},mobile:{mergedBar:{trigger:()=>t(d,{display:e.AUTO}),top:()=>null,content:()=>null,bottom:()=>null}}};export{y as DEFAULT_SLOTS};
@@ -1,11 +1 @@
1
- // packages/ui/src/internal/layout/config/index.ts
2
- /**
3
- * @fileoverview Layout Config Barrel Export
4
- * @description Exports for config-based layout system.
5
- *
6
- * @version 0.1.0
7
- * @since 0.0.1
8
- * @author AMBROISE PARK Consulting
9
- */
10
- export * from './presets';
11
- export * from './defaults';
1
+ export*from"./presets/index.js";export*from"./defaults.js";
@@ -1,35 +1 @@
1
- // packages/ui/src/internal/layout/config/presets/admin.tsx
2
- import { DEFAULT_SLOTS } from '../defaults';
3
- /**
4
- * Admin preset - admin panel layout
5
- *
6
- * Zones:
7
- * - Header: Logo + title (left), GoTo + Auth + Language + Theme (right)
8
- * - Sidebar: Navigation menu only (no bottom controls - they're in header)
9
- * - Footer: Automatic footer (copyright + legal links + DoNotDev branding)
10
- *
11
- * Mobile behavior:
12
- * - MergedBar at top (64px trigger → sheet)
13
- * - Sidebar hidden, content in sheet
14
- */
15
- export const adminPreset = {
16
- name: 'admin',
17
- // header omitted → uses DEFAULT_SLOTS.header (GoTo + Auth + Language + Theme)
18
- sidebar: {
19
- // content omitted → uses DEFAULT_SLOTS.sidebar.content (NavigationMenu)
20
- // bottom explicitly empty - Auth/Language/Theme are in header, no duplication
21
- bottom: () => null,
22
- },
23
- footer: {},
24
- mobile: {
25
- mergedBar: {
26
- position: 'top',
27
- height: 'var(--header-height)',
28
- // Desktop → Mobile mapping:
29
- trigger: DEFAULT_SLOTS.header.start, // header.start → trigger (AppBranding)
30
- top: DEFAULT_SLOTS.header.center, // header.center → top (null)
31
- content: DEFAULT_SLOTS.sidebar.content, // sidebar.content → content (NavigationMenu)
32
- bottom: DEFAULT_SLOTS.header.end, // header.end → bottom (GoTo, Auth, Language, Theme)
33
- },
34
- },
35
- };
1
+ import{DEFAULT_SLOTS as e}from"../defaults.js";var o={name:"admin",sidebar:{bottom:()=>null},footer:{},mobile:{mergedBar:{position:"top",height:"var(--header-height)",trigger:e.header.start,top:e.header.center,content:e.sidebar.content,bottom:e.header.end}}};export{o as adminPreset};
@@ -1,31 +1 @@
1
- // packages/ui/src/internal/layout/config/presets/blog.tsx
2
- import { DEFAULT_SLOTS } from '../defaults';
3
- /**
4
- * Blog preset - content-focused layout
5
- *
6
- * Zones:
7
- * - Header: Logo + title (left), actions (right)
8
- * - Sidebar: Categories/tags navigation
9
- * - Footer: Automatic footer (copyright + legal links + DoNotDev branding)
10
- *
11
- * Mobile behavior:
12
- * - MergedBar at bottom (48px trigger → sheet)
13
- * - Maximizes reading space
14
- */
15
- export const blogPreset = {
16
- name: 'blog',
17
- // header omitted → uses DEFAULT_SLOTS.header
18
- // sidebar omitted → uses DEFAULT_SLOTS.sidebar
19
- footer: {},
20
- mobile: {
21
- mergedBar: {
22
- position: 'bottom',
23
- // Desktop → Mobile mapping:
24
- trigger: DEFAULT_SLOTS.header.start, // header.start → trigger (AppBranding)
25
- top: DEFAULT_SLOTS.header.center, // header.center → top (null)
26
- content: DEFAULT_SLOTS.sidebar.content, // sidebar.content → content (NavigationMenu)
27
- bottom: DEFAULT_SLOTS.header.end, // header.end → bottom (GoTo, Auth, Language, Theme)
28
- // Note: sidebar.bottom also has Auth+Lang+Theme, but header.end includes GoTo, so use header.end
29
- },
30
- },
31
- };
1
+ import{DEFAULT_SLOTS as e}from"../defaults.js";var t={name:"blog",footer:{},mobile:{mergedBar:{position:"bottom",trigger:e.header.start,top:e.header.center,content:e.sidebar.content,bottom:e.header.end}}};export{t as blogPreset};
@@ -1,51 +1 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/config/presets/docs.tsx
3
- /**
4
- * @fileoverview Docs Preset Configuration
5
- * @description Documentation layout with sidebar and footer (no header).
6
- * Maximizes vertical reading space.
7
- *
8
- * @version 0.1.0
9
- * @since 0.0.1
10
- * @author AMBROISE PARK Consulting
11
- */
12
- import { DISPLAY } from '@donotdev/components';
13
- import { AppBranding } from '../../../../components/layout/components';
14
- import { GoTo } from '../../../../routing/GoTo';
15
- import { DEFAULT_SLOTS } from '../defaults';
16
- /**
17
- * Docs preset - documentation layout
18
- *
19
- * Zones:
20
- * - No header (maximizes vertical space)
21
- * - Sidebar: AppBranding + GoTo at top, navigation, settings at bottom
22
- * - Footer: Automatic footer (copyright + legal links + DoNotDev branding)
23
- *
24
- * Mobile behavior:
25
- * - MergedBar at top (64px hamburger menu → side drawer)
26
- * - Footer stays visible at bottom (industry standard)
27
- * - Sidebar content in drawer
28
- */
29
- export const docsPreset = {
30
- name: 'docs',
31
- sidebar: {
32
- top: () => (_jsxs(_Fragment, { children: [_jsx(AppBranding, { display: DISPLAY.AUTO }), _jsx(GoTo, { display: DISPLAY.AUTO })] })),
33
- // content omitted → uses DEFAULT_SLOTS.sidebar.content
34
- // bottom omitted → uses DEFAULT_SLOTS.sidebar.bottom
35
- defaultWidth: 300,
36
- minWidth: 48,
37
- maxWidth: 400,
38
- },
39
- footer: {},
40
- mobile: {
41
- mergedBar: {
42
- position: 'top',
43
- height: 'var(--header-height)',
44
- // Desktop → Mobile mapping:
45
- trigger: () => _jsx(AppBranding, { display: DISPLAY.AUTO }), // sidebar.top (AppBranding) → trigger
46
- top: () => _jsx(GoTo, { display: DISPLAY.AUTO }), // sidebar.top (GoTo) → top
47
- content: DEFAULT_SLOTS.sidebar.content, // sidebar.content → content (NavigationMenu)
48
- bottom: DEFAULT_SLOTS.sidebar.bottom, // sidebar.bottom → bottom (Auth, Language, Theme)
49
- },
50
- },
51
- };
1
+ import{DISPLAY as o}from"@donotdev/components";import{AppBranding as e}from"../../../../components/layout/components/index.js";import{GoTo as i}from"../../../../routing/GoTo.js";import{DEFAULT_SLOTS as r}from"../defaults.js";import{Fragment as d,jsx as t,jsxs as p}from"react/jsx-runtime";var f={name:"docs",sidebar:{top:()=>p(d,{children:[t(e,{display:o.AUTO}),t(i,{display:o.AUTO})]}),defaultWidth:300,minWidth:48,maxWidth:400},footer:{},mobile:{mergedBar:{position:"top",height:"var(--header-height)",trigger:()=>t(e,{display:o.AUTO}),top:()=>t(i,{display:o.AUTO}),content:r.sidebar.content,bottom:r.sidebar.bottom}}};export{f as docsPreset};
@@ -1,53 +1 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/config/presets/game.tsx
3
- /**
4
- * @fileoverview Game Preset Configuration
5
- * @description Mobile gaming layout with centered title.
6
- * Optimized for full-screen gaming experiences.
7
- *
8
- * @version 0.1.0
9
- * @since 0.0.1
10
- * @author AMBROISE PARK Consulting
11
- */
12
- import { DISPLAY } from '@donotdev/components';
13
- import { LanguageSelector } from '@donotdev/core';
14
- import { AuthHeader } from '../../../../components/auth';
15
- import { GameTitle, ThemeToggle, } from '../../../../components/layout/components';
16
- import { FooterCopyright } from '../../components/footer/FooterCopyright';
17
- import { FooterLegalLinks } from '../../components/footer/FooterLegalLinks';
18
- import { DEFAULT_SLOTS } from '../defaults';
19
- /**
20
- * Game preset - mobile gaming layout
21
- *
22
- * Zones:
23
- * - Header: Empty start, GameTitle center, actions end (no GoTo)
24
- * - Footer: Automatic footer (hidden on mobile, merged into header)
25
- * - No sidebar
26
- *
27
- * Mobile behavior:
28
- * - MergedBar at top includes footer content
29
- * - Footer hidden on mobile/tablet
30
- */
31
- export const gamePreset = {
32
- name: 'game',
33
- header: {
34
- start: () => null,
35
- center: () => _jsx(GameTitle, {}),
36
- end: () => (_jsxs(_Fragment, { children: [_jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.AUTO }), _jsx(ThemeToggle, { display: DISPLAY.AUTO })] })),
37
- },
38
- footer: {},
39
- mobile: {
40
- mergedBar: {
41
- position: 'top',
42
- // Desktop → Mobile mapping:
43
- trigger: () => _jsx(GameTitle, {}), // header.center → trigger
44
- top: () => (
45
- // header.end → top (Auth, Language, Theme)
46
- _jsxs(_Fragment, { children: [_jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.AUTO }), _jsx(ThemeToggle, { display: DISPLAY.AUTO })] })),
47
- content: DEFAULT_SLOTS.sidebar.content, // Navigation menu
48
- bottom: () => (
49
- // Footer content: copyright + legal links (includes branding)
50
- _jsxs(_Fragment, { children: [_jsx(FooterCopyright, {}), _jsx(FooterLegalLinks, {})] })),
51
- },
52
- },
53
- };
1
+ import{DISPLAY as e}from"@donotdev/components";import{LanguageSelector as i}from"@donotdev/core";import{AuthHeader as m}from"../../../../components/auth/index.js";import{GameTitle as p,ThemeToggle as a}from"../../../../components/layout/components/index.js";import{FooterCopyright as n}from"../../components/footer/FooterCopyright.js";import{FooterLegalLinks as d}from"../../components/footer/FooterLegalLinks.js";import{DEFAULT_SLOTS as g}from"../defaults.js";import{Fragment as r,jsx as o,jsxs as t}from"react/jsx-runtime";var U={name:"game",header:{start:()=>null,center:()=>o(p,{}),end:()=>t(r,{children:[o(m,{display:e.AUTO}),o(i,{display:e.AUTO}),o(a,{display:e.AUTO})]})},footer:{},mobile:{mergedBar:{position:"top",trigger:()=>o(p,{}),top:()=>t(r,{children:[o(m,{display:e.AUTO}),o(i,{display:e.AUTO}),o(a,{display:e.AUTO})]}),content:g.sidebar.content,bottom:()=>t(r,{children:[o(n,{}),o(d,{})]})}}};export{U as gamePreset};
@@ -1,24 +1 @@
1
- // packages/ui/src/internal/layout/config/presets/index.ts
2
- export * from './admin';
3
- export * from './blog';
4
- export * from './docs';
5
- export * from './game';
6
- export * from './landing';
7
- export * from './moolti';
8
- export * from './plain';
9
- import { adminPreset } from './admin';
10
- import { blogPreset } from './blog';
11
- import { docsPreset } from './docs';
12
- import { gamePreset } from './game';
13
- import { landingPreset } from './landing';
14
- import { mooltiPreset } from './moolti';
15
- import { plainPreset } from './plain';
16
- export const presetRegistry = {
17
- admin: adminPreset,
18
- blog: blogPreset,
19
- docs: docsPreset,
20
- game: gamePreset,
21
- landing: landingPreset,
22
- moolti: mooltiPreset,
23
- plain: plainPreset,
24
- };
1
+ export*from"./admin.js";export*from"./blog.js";export*from"./docs.js";export*from"./game.js";export*from"./landing.js";export*from"./moolti.js";export*from"./plain.js";import{adminPreset as r}from"./admin.js";import{blogPreset as o}from"./blog.js";import{docsPreset as e}from"./docs.js";import{gamePreset as t}from"./game.js";import{landingPreset as m}from"./landing.js";import{mooltiPreset as p}from"./moolti.js";import{plainPreset as i}from"./plain.js";var l={admin:r,blog:o,docs:e,game:t,landing:m,moolti:p,plain:i};export{l as presetRegistry};
@@ -1,42 +1 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // packages/ui/src/internal/layout/config/presets/landing.tsx
3
- /**
4
- * @fileoverview Landing Preset Configuration
5
- * @description Marketing site layout with header and footer.
6
- * Optimized for landing pages and public content.
7
- *
8
- * @version 0.1.0
9
- * @since 0.0.1
10
- * @author AMBROISE PARK Consulting
11
- */
12
- import { DISPLAY } from '@donotdev/components';
13
- import { LanguageSelector } from '@donotdev/core';
14
- import { AuthHeader } from '../../../../components/auth';
15
- import { AppBranding, HeaderMenu, ThemeToggle, } from '../../../../components/layout/components';
16
- import { GoTo } from '../../../../routing/GoTo';
17
- /**
18
- * Landing preset - marketing site layout
19
- *
20
- * Zones:
21
- * - Header: AppBranding (left), GoTo + Auth + Language + Theme (right)
22
- * - Footer: Automatic footer (copyright + legal links + DoNotDev branding)
23
- * - No sidebar
24
- *
25
- * Mobile behavior:
26
- * - Header start: AppBranding COMPACT (logo only)
27
- * - Header end: HeaderMenu hamburger wrapping desktop end content
28
- */
29
- export const landingPreset = {
30
- name: 'landing',
31
- header: {
32
- start: () => _jsx(AppBranding, {}),
33
- end: () => (_jsxs(_Fragment, { children: [_jsx(GoTo, { display: DISPLAY.AUTO }), _jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.COMPACT }), _jsx(ThemeToggle, { display: DISPLAY.COMPACT })] })),
34
- },
35
- footer: {},
36
- mobile: {
37
- header: {
38
- start: () => _jsx(AppBranding, { display: DISPLAY.COMPACT }),
39
- end: () => (_jsxs(HeaderMenu, { children: [_jsx(GoTo, { display: DISPLAY.AUTO }), _jsx(AuthHeader, { display: DISPLAY.AUTO }), _jsx(LanguageSelector, { display: DISPLAY.COMPACT }), _jsx(ThemeToggle, { display: DISPLAY.COMPACT })] })),
40
- },
41
- },
42
- };
1
+ import{DISPLAY as o}from"@donotdev/components";import{LanguageSelector as r}from"@donotdev/core";import{AuthHeader as a}from"../../../../components/auth/index.js";import{AppBranding as d,HeaderMenu as n,ThemeToggle as i}from"../../../../components/layout/components/index.js";import{GoTo as p}from"../../../../routing/GoTo.js";import{Fragment as l,jsx as e,jsxs as t}from"react/jsx-runtime";var y={name:"landing",header:{start:()=>e(d,{}),end:()=>t(l,{children:[e(p,{display:o.AUTO}),e(a,{display:o.AUTO}),e(r,{display:o.COMPACT}),e(i,{display:o.COMPACT})]})},footer:{},mobile:{header:{start:()=>e(d,{display:o.COMPACT}),end:()=>t(n,{children:[e(p,{display:o.AUTO}),e(a,{display:o.AUTO}),e(r,{display:o.COMPACT}),e(i,{display:o.COMPACT})]})}}};export{y as landingPreset};