@donotdev/ui 0.1.1 → 0.1.42

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 (288) hide show
  1. package/LICENSE.md +21 -242
  2. package/README.md +1 -19
  3. package/assets/apple-touch-icon.png +0 -0
  4. package/assets/favicon.ico +0 -0
  5. package/assets/fonts/Inter-latin-ext.woff2 +0 -0
  6. package/assets/fonts/Inter-latin.woff2 +0 -0
  7. package/assets/fonts/PlayfairDisplay-latin-ext.woff2 +0 -0
  8. package/assets/fonts/PlayfairDisplay-latin.woff2 +0 -0
  9. package/assets/fonts/Roboto-400-cyrillic-ext.woff2 +0 -0
  10. package/assets/fonts/Roboto-400-cyrillic.woff2 +0 -0
  11. package/assets/fonts/Roboto-400-greek-ext.woff2 +0 -0
  12. package/assets/fonts/Roboto-400-greek.woff2 +0 -0
  13. package/assets/fonts/Roboto-400-latin-ext.woff2 +0 -0
  14. package/assets/fonts/Roboto-400-latin.woff2 +0 -0
  15. package/assets/fonts/Roboto-400-vietnamese.woff2 +0 -0
  16. package/assets/fonts/Roboto-700-cyrillic-ext.woff2 +0 -0
  17. package/assets/fonts/Roboto-700-cyrillic.woff2 +0 -0
  18. package/assets/fonts/Roboto-700-greek-ext.woff2 +0 -0
  19. package/assets/fonts/Roboto-700-greek.woff2 +0 -0
  20. package/assets/fonts/Roboto-700-latin-ext.woff2 +0 -0
  21. package/assets/fonts/Roboto-700-latin.woff2 +0 -0
  22. package/assets/fonts/Roboto-700-vietnamese.woff2 +0 -0
  23. package/assets/icon-192x192.png +0 -0
  24. package/assets/icon-512x512.png +0 -0
  25. package/assets/logo.png +0 -0
  26. package/assets/logo.svg +1 -1
  27. package/assets/manifest.json +0 -0
  28. package/dist/CookieConsent-5NH5DNTP.js +1 -0
  29. package/dist/{GoToDialog-RU5RP7S2.js → GoToDialog-CICRYHHG.js} +1 -1
  30. package/dist/chunk-MIPTBUWY.js +1 -0
  31. package/dist/components/common/FeatureCard.d.ts +9 -6
  32. package/dist/components/common/FeatureCard.d.ts.map +1 -1
  33. package/dist/components/common/FeatureCard.js +43 -32
  34. package/dist/components/cookie-consent/CookieConsent.d.ts +3 -3
  35. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  36. package/dist/components/cookie-consent/CookieConsent.js +36 -35
  37. package/dist/components/index.d.ts +0 -1
  38. package/dist/components/index.d.ts.map +1 -1
  39. package/dist/components/index.js +0 -1
  40. package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
  41. package/dist/components/layout/components/header/CacheSettings.js +6 -2
  42. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  43. package/dist/crud/components/EntityCardList.js +17 -4
  44. package/dist/crud/components/EntityDisplayRenderer.js +4 -4
  45. package/dist/crud/components/EntityFormRenderer.d.ts +6 -1
  46. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  47. package/dist/crud/components/EntityFormRenderer.js +31 -21
  48. package/dist/crud/components/EntityList.d.ts.map +1 -1
  49. package/dist/crud/components/EntityList.js +56 -72
  50. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  51. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  52. package/dist/crud/components/EntityWorkflow.js +1 -1
  53. package/dist/crud/crudImports.d.ts +0 -1
  54. package/dist/crud/crudImports.d.ts.map +1 -1
  55. package/dist/crud/crudImports.js +0 -1
  56. package/dist/dndev-next.css +644 -107
  57. package/dist/dndev.css +778 -117
  58. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  59. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  60. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  61. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  62. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  63. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  64. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  65. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  66. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  67. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  68. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  69. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  70. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  71. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  72. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  73. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  74. package/dist/files/inter-greek-300-normal.woff +0 -0
  75. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  76. package/dist/files/inter-greek-400-normal.woff +0 -0
  77. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  78. package/dist/files/inter-greek-600-normal.woff +0 -0
  79. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  80. package/dist/files/inter-greek-700-normal.woff +0 -0
  81. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  82. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  83. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  84. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  85. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  86. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  87. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  88. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  89. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  90. package/dist/files/inter-latin-300-normal.woff +0 -0
  91. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  92. package/dist/files/inter-latin-400-normal.woff +0 -0
  93. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  94. package/dist/files/inter-latin-600-normal.woff +0 -0
  95. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  96. package/dist/files/inter-latin-700-normal.woff +0 -0
  97. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  98. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  99. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  100. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  101. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  102. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  103. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  104. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  105. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  106. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  107. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  108. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  109. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  110. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  111. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  112. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  113. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  114. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  115. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  116. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  117. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  118. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  119. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  120. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  121. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  122. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  123. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  124. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  125. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  126. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  127. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  128. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  129. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  130. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  131. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  132. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  133. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  134. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  135. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  136. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  137. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  138. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  139. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  140. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  141. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  142. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  143. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  144. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  145. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  146. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  147. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  148. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  149. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  150. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  151. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  152. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  153. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  154. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  155. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  156. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  157. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  158. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  159. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  160. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  161. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  162. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  163. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  164. package/dist/files/roboto-greek-400-normal.woff +0 -0
  165. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  166. package/dist/files/roboto-greek-700-normal.woff +0 -0
  167. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  168. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  169. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  170. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  171. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  172. package/dist/files/roboto-latin-400-normal.woff +0 -0
  173. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  174. package/dist/files/roboto-latin-700-normal.woff +0 -0
  175. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  176. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  177. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  178. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  179. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  180. package/dist/files/roboto-math-400-normal.woff +0 -0
  181. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  182. package/dist/files/roboto-math-700-normal.woff +0 -0
  183. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  184. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  185. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  186. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  187. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  188. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  189. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  190. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  191. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  192. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  193. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  194. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  195. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  196. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  197. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  198. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  199. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  200. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  201. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  202. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  203. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  204. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  205. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  206. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  207. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  208. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  209. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  210. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  211. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  212. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  213. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  214. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  215. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  216. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  217. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  218. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  219. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  220. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  221. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  222. package/dist/index.js +4 -4
  223. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  224. package/dist/internal/devtools/utils/virtualModuleInspector.d.ts.map +1 -1
  225. package/dist/internal/devtools/utils/virtualModuleInspector.js +12 -1
  226. package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -1
  227. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  228. package/dist/internal/initializers/BaseStoresInitializer.js +8 -4
  229. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
  230. package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
  231. package/dist/internal/initializers/NextJsStoresInitializer.js +2 -13
  232. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  233. package/dist/internal/layout/DnDevLayout.js +32 -13
  234. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  235. package/dist/internal/layout/components/AutoMetaTags.js +3 -7
  236. package/dist/internal/layout/config/presets/moolti.d.ts.map +1 -1
  237. package/dist/internal/layout/config/presets/moolti.js +11 -13
  238. package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
  239. package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
  240. package/dist/internal/layout/zones/DnDevFooter.js +1 -1
  241. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  242. package/dist/providers/NextJsAppProviders.js +12 -8
  243. package/dist/routing/AuthGuard.d.ts.map +1 -1
  244. package/dist/routing/AuthGuard.js +1 -1
  245. package/dist/routing/AuthReturnTo.d.ts.map +1 -1
  246. package/dist/routing/GoToInput.d.ts.map +1 -1
  247. package/dist/routing/GoToInput.js +5 -5
  248. package/dist/routing/Link.d.ts.map +1 -1
  249. package/dist/routing/Link.js +14 -0
  250. package/dist/routing/hooks/hooks.next.js +1 -1
  251. package/dist/routing/hooks/hooks.vite.js +1 -1
  252. package/dist/routing/hooks/useNavigate.next.d.ts +2 -6
  253. package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
  254. package/dist/routing/hooks/useNavigate.next.js +5 -52
  255. package/dist/routing/hooks/useNavigate.vite.d.ts +2 -6
  256. package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
  257. package/dist/routing/hooks/useNavigate.vite.js +5 -52
  258. package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
  259. package/dist/routing/hooks/useRedirectGuard.next.js +5 -1
  260. package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
  261. package/dist/routing/hooks/useRedirectGuard.vite.js +5 -1
  262. package/dist/routing/useGoTo.d.ts.map +1 -1
  263. package/dist/routing/useGoTo.js +12 -17
  264. package/dist/styles/index.css +778 -117
  265. package/dist/symbol-index.json +1 -1
  266. package/dist/utils/useAuthSafe.d.ts.map +1 -1
  267. package/dist/utils/useSeo.d.ts +1 -1
  268. package/dist/utils/useSeo.d.ts.map +1 -1
  269. package/dist/utils/useSeo.js +3 -1
  270. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  271. package/dist/vite-routing/AppRoutes.js +7 -2
  272. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  273. package/dist/vite-routing/RootLayout.js +1 -4
  274. package/guidelines/COMPONENTS.md +0 -0
  275. package/guidelines/GOTCHAS.md +0 -0
  276. package/guidelines/LAYOUTS.md +0 -0
  277. package/guidelines/PAGES.md +0 -0
  278. package/guidelines/ROUTING.md +0 -0
  279. package/guidelines/SEO.md +0 -0
  280. package/package.json +13 -13
  281. package/dist/CookieConsent-UVTR7CWW.js +0 -1
  282. package/dist/chunk-ETE4RC7M.js +0 -1
  283. package/dist/components/license/LicenseWatermark.d.ts +0 -25
  284. package/dist/components/license/LicenseWatermark.d.ts.map +0 -1
  285. package/dist/components/license/LicenseWatermark.js +0 -109
  286. package/dist/components/license/watermarkData.d.ts +0 -7
  287. package/dist/components/license/watermarkData.d.ts.map +0 -1
  288. package/dist/components/license/watermarkData.js +0 -18
package/LICENSE.md CHANGED
@@ -1,242 +1,21 @@
1
- # DoNotDev Framework License Agreement
2
-
3
- **Version 1.0 – Effective Date: May 5, 2025**
4
-
5
- Copyright © 2025 Ambroise Park Consulting. All rights reserved.
6
-
7
- ---
8
-
9
- ## 1. DEFINITIONS
10
-
11
- **1.1 "Framework"** means the DoNotDev commercial software packages (excluding @donotdev/cli, @donotdev/components, @donotdev/expo, and @donotdev/templates, which are licensed under MIT), including all compiled JavaScript files, TypeScript definition files, and associated documentation.
12
-
13
- **1.2 "License Key"** means the unique alphanumeric key provided to you upon purchase, required to suppress watermarks and unlock full Framework functionality.
14
-
15
- **1.3 "Developer License"** means a license granted to an individual developer, permitting use of the Framework subject to the terms herein.
16
-
17
- **1.4 "Project Deployment License"** means a license required for each Client Project delivered by a Developer.
18
-
19
- **1.5 "Client Project"** means any software application or website built using the Framework and delivered to a third party who compensated you (directly or indirectly) for its development. This includes:
20
- - Code handoff (repository transfer, zip file delivery, etc.)
21
- - Hosted applications where the client has access to source code (repository access, cPanel, FTP, etc.)
22
- - Hosted applications operated on behalf of a paying client, regardless of code access
23
-
24
- **1.6 "Internal Use"** means software applications built using the Framework for your own use or your employer's internal use, including SaaS products you own and operate where end-users have no access to Framework code.
25
-
26
- ---
27
-
28
- ## 2. LICENSE GRANT
29
-
30
- **2.1 Developer License**
31
-
32
- Subject to payment of applicable fees and compliance with this Agreement, Ambroise Park Consulting grants you a non-exclusive, non-transferable, perpetual license to:
33
-
34
- (a) Install Framework packages from npm
35
- (b) Use the Framework to develop software applications
36
- (c) Deploy applications for Internal Use without additional fees
37
- (d) Incorporate the Framework into applications as compiled/minified code
38
-
39
- **2.2 Project Deployment License**
40
-
41
- For each Client Project, you must obtain a Project Deployment License prior to delivery. Each Project Deployment License grants you the right to deliver one Client Project containing the Framework.
42
-
43
- **2.3 Multi-Developer Projects**
44
-
45
- When multiple developers collaborate on a project:
46
- - Each developer must hold a Developer License with their own License Key
47
- - Only one Project Deployment License is required per Client Project (regardless of team size)
48
-
49
- ---
50
-
51
- ## 3. LICENSE KEY REQUIREMENT
52
-
53
- **3.1 License Key Activation**
54
-
55
- Upon purchasing a Developer License or Project Deployment License, you will receive a License Key. You must configure your applications with this key:
56
-
57
- ```javascript
58
- // Environment variable (recommended)
59
- DONOTDEV_LICENSE_KEY=your-license-key-here
60
-
61
- // Or in code
62
- globalThis.__DONOTDEV_LICENSE_KEY__ = 'your-license-key-here';
63
- ```
64
-
65
- **3.2 Watermark Enforcement**
66
-
67
- Applications running without a valid License Key will display a watermark:
68
- - "⚠️ Unlicensed DoNotDev Framework - Visit donotdev.com"
69
- - Console warnings in development mode
70
-
71
- **3.3 License Key Types**
72
-
73
- - **Developer License Key:** For Internal Use and development
74
- - **Project Deployment License Key:** For Client Project deployment (suppresses watermark in production)
75
-
76
- **3.4 Key Management**
77
-
78
- - Do not commit License Keys to public repositories
79
- - Use environment variables or secure secret management for production deployments
80
- - Each developer uses their own Developer License Key for development
81
- - Project Deployment Keys are provisioned per client project
82
-
83
- ---
84
-
85
- ## 4. PERMITTED USES
86
-
87
- You may:
88
-
89
- (a) Build unlimited applications for Internal Use with a Developer License
90
- (b) Develop SaaS products you own and operate (no Project Deployment License required if clients cannot access Framework code)
91
- (c) Create internal tools for your organization
92
- (d) Build applications that include the Framework as compiled dependencies
93
- (e) Open-source applications built on top of the Framework (provided end-users obtain their own licenses to suppress watermarks)
94
-
95
- ---
96
-
97
- ## 5. RESTRICTIONS
98
-
99
- You may not:
100
-
101
- (a) Redistribute Framework packages independently of your applications
102
- (b) Share, publish, or transfer your License Key to unlicensed parties
103
- (c) Decompile, reverse engineer, or attempt to extract source code from minified files
104
- (d) Remove or obscure copyright notices or watermarks from Framework code
105
- (e) Sublicense, resell, or transfer your Developer License to another individual
106
- (f) Deliver Client Projects without obtaining a Project Deployment License
107
- (g) Modify Framework code to bypass license validation or watermark enforcement
108
- (h) Create derivative frameworks intended for redistribution
109
- (i) Use a single Project Deployment License for multiple client projects
110
-
111
- ---
112
-
113
- ## 6. LICENSE TYPES & FEES
114
-
115
- **6.1 Developer License**
116
- - **Scope:** Per individual developer
117
- - **Term:** Perpetual (lifetime access)
118
- - **Fee:** Set forth in purchase agreement or donotdev.com pricing
119
- - **Entitlements:** Unlimited Internal Use projects; Client Projects require additional Project Deployment Licenses
120
- - **License Key:** One Developer License Key provided
121
-
122
- **6.2 Project Deployment License**
123
- - **Scope:** Per Client Project delivered
124
- - **Term:** Perpetual for the specific project
125
- - **Fee:** Set forth in purchase agreement or donotdev.com pricing
126
- - **Purchaser:** Typically purchased by the developer/agency; client payment arrangements are permitted
127
- - **License Key:** One Project Deployment Key provided per project
128
-
129
- **6.3 Volume Licensing**
130
-
131
- Organizations requiring multiple Developer Licenses may contact Ambroise Park Consulting for volume pricing and enterprise key management.
132
-
133
- ---
134
-
135
- ## 7. PAYMENT & VERIFICATION
136
-
137
- **7.1 Payment**
138
-
139
- All fees must be paid in full before License Key issuance. Payment terms and pricing are specified at donotdev.com or in separate purchase agreements.
140
-
141
- **7.2 Compliance Verification**
142
-
143
- Ambroise Park Consulting may request reasonable verification of Project Deployment License compliance. You agree to cooperate with such verification requests in good faith.
144
-
145
- **7.3 Enforcement**
146
-
147
- License compliance is primarily honor-based. Watermarks serve as technical reminders. Ambroise Park Consulting reserves the right to audit usage and pursue legal remedies for material breaches.
148
-
149
- ---
150
-
151
- ## 8. TERM & TERMINATION
152
-
153
- **8.1 Perpetual Term**
154
-
155
- Developer Licenses and Project Deployment Licenses are perpetual and do not expire, subject to Section 8.2.
156
-
157
- **8.2 Termination for Breach**
158
-
159
- Ambroise Park Consulting may terminate your license(s) and revoke your License Key(s) if you:
160
- - Breach any material term of this Agreement
161
- - Fail to pay applicable fees
162
- - Engage in unauthorized redistribution or License Key sharing
163
- - Attempt to bypass license validation mechanisms
164
-
165
- **8.3 Effect of Termination**
166
-
167
- Upon termination:
168
- - Your License Key(s) will be revoked and watermarks will reappear
169
- - Your right to use the Framework ceases
170
- - Previously deployed applications may continue to function but will display watermarks
171
- - You must cease distribution of any Client Projects in development
172
- - You must remove the Framework from any ongoing projects
173
-
174
- **8.4 Survival**
175
-
176
- Sections 5 (Restrictions), 9 (Warranty Disclaimer), 10 (Limitation of Liability), and 11 (General Provisions) survive termination.
177
-
178
- ---
179
-
180
- ## 9. WARRANTY DISCLAIMER
181
-
182
- THE FRAMEWORK IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
183
-
184
- Ambroise Park Consulting does not warrant that the Framework will be error-free, uninterrupted, or meet your specific requirements.
185
-
186
- ---
187
-
188
- ## 10. LIMITATION OF LIABILITY
189
-
190
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL AMBROISE PARK CONSULTING BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES (INCLUDING LOSS OF PROFITS, DATA, OR BUSINESS OPPORTUNITIES) ARISING OUT OF OR RELATED TO THIS AGREEMENT OR USE OF THE FRAMEWORK, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
191
-
192
- Ambroise Park Consulting's total cumulative liability under this Agreement shall not exceed the fees you paid for the specific license giving rise to the claim.
193
-
194
- ---
195
-
196
- ## 11. GENERAL PROVISIONS
197
-
198
- **11.1 Governing Law**
199
-
200
- This Agreement is governed by the laws of Quebec, Canada, without regard to conflict of law principles. Any disputes arising under this Agreement shall be resolved exclusively in the courts of Quebec, Canada.
201
-
202
- **11.2 Severability**
203
-
204
- If any provision of this Agreement is found unenforceable, the remaining provisions continue in full force and effect.
205
-
206
- **11.3 Assignment**
207
-
208
- You may not assign or transfer this Agreement or any licenses granted hereunder without prior written consent of Ambroise Park Consulting. Ambroise Park Consulting may assign this Agreement without restriction.
209
-
210
- **11.4 Entire Agreement**
211
-
212
- This Agreement, together with any applicable purchase agreements or order forms, constitutes the entire agreement between you and Ambroise Park Consulting regarding the Framework and supersedes all prior agreements and understandings.
213
-
214
- **11.5 Amendments**
215
-
216
- Ambroise Park Consulting may update this Agreement from time to time. Updates apply to licenses purchased after the effective date of the update. Existing licenses remain governed by the version in effect at the time of purchase unless you opt-in to updated terms.
217
-
218
- **11.6 Export Compliance**
219
-
220
- You agree to comply with all applicable export and import laws and regulations in your use of the Framework.
221
-
222
- **11.7 Force Majeure**
223
-
224
- Neither party is liable for failure to perform due to causes beyond reasonable control, including but not limited to acts of God, war, strikes, or third-party service outages.
225
-
226
- **11.8 No Support Obligation**
227
-
228
- Ambroise Park Consulting has no obligation to provide support, updates, or maintenance. Any support provided is at sole discretion and may be discontinued without notice.
229
-
230
- **11.9 Contact**
231
-
232
- Questions about licensing or compliance:
233
-
234
- **Email:** contact@donotdev.com
235
- **Website:** donotdev.com
236
-
237
- ---
238
-
239
- **END OF LICENSE AGREEMENT**
240
-
241
- **DoNotDev Framework License v1.0**
242
- Ambroise Park Consulting – 2025
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AMBROISE PARK Consulting
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -12,25 +12,7 @@ bun install @donotdev/ui
12
12
 
13
13
  ## License
14
14
 
15
- This package requires a DoNotDev Framework license. Applications will display a watermark without a valid license key.
16
-
17
- **View pricing:** [donotdev.com/pricing](https://donotdev.com/pricing)
18
- **Purchase license:** [donotdev.com/purchase](https://donotdev.com/purchase)
19
-
20
- **Configure your license key:**
21
-
22
- ```bash
23
- # In .env file (Vite projects)
24
- VITE_DONOTDEV_LICENSE_KEY=dndev_your_key_here
25
-
26
- # In .env file (Next.js projects)
27
- NEXT_PUBLIC_DONOTDEV_LICENSE_KEY=dndev_your_key_here
28
-
29
- # Or in code (before framework initialization)
30
- globalThis.__DONOTDEV_LICENSE_KEY__ = 'dndev_your_key_here';
31
- ```
32
-
33
- For detailed setup instructions, see [License Key Setup Guide](../../docs/guides/LICENSE_KEY_SETUP.md).
15
+ MIT. See [LICENSE.md](./LICENSE.md).
34
16
 
35
17
  ## Quick Start
36
18
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/assets/logo.png CHANGED
File without changes
package/assets/logo.svg CHANGED
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" xmlns:v="https://vecta.io/nano"><path d="M11.995 68.133c-.747.14-2.114 1.276-2.986 2.409l-1.557 2.199-.062 104.273.684 251.717c.935 2.835 3.423 4.749 6.347 4.89 2.366.142 3.61-.566 10.767-5.599l42.311-30.054L112.3 366.14l16.366-11.768c3.234-2.268 6.098-4.749 6.346-5.599 1.369-3.828 9.271-32.679 9.023-32.891-.124-.213-1.743.78-3.547 2.198-1.803 1.347-8.773 6.309-15.432 10.916L87.1 355.862l-24.891 17.65-23.831 16.729c-5.413 3.898-10.143 7.017-10.454 7.017-.685 0-.809-291.837-.063-292.334.249-.141 1.619.497 3.049 1.559l51.521 37.711 18.668 13.61 20.222 14.674 13.69 9.996 9.333 6.734 12.756 9.215c10.455 7.798 15.992 11.767 16.553 11.908.374.073 1.99-4.889 3.609-11.058l3.048-11.202-5.537-4.038-10.641-7.799c-2.863-1.984-10.391-7.584-16.8-12.405l-23.21-17.154-20.721-15.24L89.4 121.157c-2.613-1.986-7.653-5.671-11.2-8.223L23.506 73.096c-6.471-4.679-8.774-5.671-11.512-4.962l.001-.001zm235.829 4.466c-1.057.708-2.302 2.055-2.737 2.977-.622 1.276-.809 14.673-.746 62.733l.062 61.104 4.915 8.01 10.206 16.871 5.225 8.861.187-62.308 1.057-61.812c.56.212 6.098 4.111 12.321 8.648l43.806 31.97c1.307.991 1.431.708 5.973-9.641l4.667-10.705-1.618-1.346-14.747-10.845-20.844-15.313-36.65-26.864c-5.788-4.182-7.841-4.608-11.077-2.34zm-34.784 196.85l-7.279 15.807-11.511 25.166c.123.141 5.351-3.474 11.697-7.939l18.356-13.042 8.027-5.813c1.057-.922.685-1.701-6.347-13.469l-7.466-12.546-5.477 11.838v-.002z" fill="var(--primary,#dc143c)"/><path d="M376.752 57.145l-4.977 11.2c-1.432 2.907-4.792 10.066-7.468 15.95l-9.955 21.619-25.388 54.583-11.2 24.101-20.658 43.949-11.7 24.81-7.84 16.304c-.809 1.347-.621 1.631-15.679-23.747l-26.072-43.949-22.213-37.71c-8.587-14.815-10.267-16.73-12.322-14.319-.435.566-2.676 8.009-4.978 16.586l-22.711 82.228-13.378 47.494-8.153 29.064-18.232 64.86-12.133 43.382-4.355 16.162c.186 0 3.671-7.443 14.871-31.898l10.578-22.684 8.088-17.013 8.774-18.43 9.771-20.556 7.901-16.659 9.333-19.848 9.957-21.267 10.765-23.038c6.844-14.957 9.397-20.061 10.08-20.273.374-.142 3.485 4.606 6.968 10.562l24.828 41.255 31.981 52.809c5.289 8.932 6.846 11.06 8.153 11.2.87.142 1.929-.212 2.302-.779.685-.851 19.6-65.499 44.054-150.421l25.823-88.889 17.798-62.168c-.125-.141-1.308 2.34-2.615 5.53h.002z" fill="var(--accent,#ffd700)"/><path d="M359.081 153.904l-3.111 11.555c-1.369 4.89-2.302 9.074-2.053 9.287s5.041 3.757 10.703 7.869l33.289 24.314 37.645 27.505 19.601 14.318 6.409 4.536c2.489 1.49 5.538-.991-32.542 26.369l-38.269 27.432-31.236 22.402-33.913 24.456-28.187 20.273-12.134 8.648c-10.019 7.16-19.413 13.681-19.848 13.681-.188 0-.374-14.248-.374-31.757v-31.686l-4.419-7.088-10.019-16.518c-3.111-5.102-5.849-9.356-6.098-9.356s-.375 11.909-.249 26.37l.249 64.223v37.711l2.054 2.623c1.866 2.268 2.489 2.553 4.914 2.553 3.237 0 4.169-.568 18.855-11.202l76.535-55.291 21.78-15.807 120.403-86.411c3.67-2.552 5.102-4.748 5.475-8.434.188-2.409 0-3.971-.746-5.599-1.244-2.623-2.677-3.686-48.908-37.711l-51.023-37.642-14.624-10.774-12.88-9.427c-2.986-2.199-5.724-4.041-6.035-4.041-.374 0-.934 1.206-1.245 2.622l.001-.003z" fill="var(--primary,#dc143c)"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" xmlns:v="https://vecta.io/nano"><path d="M11.995 68.133c-.747.14-2.114 1.276-2.986 2.409l-1.557 2.199-.062 104.273.684 251.717c.935 2.835 3.423 4.749 6.347 4.89 2.366.142 3.61-.566 10.767-5.599l42.311-30.054L112.3 366.14l16.366-11.768c3.234-2.268 6.098-4.749 6.346-5.599 1.369-3.828 9.271-32.679 9.023-32.891-.124-.213-1.743.78-3.547 2.198-1.803 1.347-8.773 6.309-15.432 10.916L87.1 355.862l-24.891 17.65-23.831 16.729c-5.413 3.898-10.143 7.017-10.454 7.017-.685 0-.809-291.837-.063-292.334.249-.141 1.619.497 3.049 1.559l51.521 37.711 18.668 13.61 20.222 14.674 13.69 9.996 9.333 6.734 12.756 9.215c10.455 7.798 15.992 11.767 16.553 11.908.374.073 1.99-4.889 3.609-11.058l3.048-11.202-5.537-4.038-10.641-7.799c-2.863-1.984-10.391-7.584-16.8-12.405l-23.21-17.154-20.721-15.24L89.4 121.157c-2.613-1.986-7.653-5.671-11.2-8.223L23.506 73.096c-6.471-4.679-8.774-5.671-11.512-4.962l.001-.001zm235.829 4.466c-1.057.708-2.302 2.055-2.737 2.977-.622 1.276-.809 14.673-.746 62.733l.062 61.104 4.915 8.01 10.206 16.871 5.225 8.861.187-62.308 1.057-61.812c.56.212 6.098 4.111 12.321 8.648l43.806 31.97c1.307.991 1.431.708 5.973-9.641l4.667-10.705-1.618-1.346-14.747-10.845-20.844-15.313-36.65-26.864c-5.788-4.182-7.841-4.608-11.077-2.34zm-34.784 196.85l-7.279 15.807-11.511 25.166c.123.141 5.351-3.474 11.697-7.939l18.356-13.042 8.027-5.813c1.057-.922.685-1.701-6.347-13.469l-7.466-12.546-5.477 11.838v-.002z" fill="var(--primary,#dc143c)"/><path d="M376.752 57.145l-4.977 11.2c-1.432 2.907-4.792 10.066-7.468 15.95l-9.955 21.619-25.388 54.583-11.2 24.101-20.658 43.949-11.7 24.81-7.84 16.304c-.809 1.347-.621 1.631-15.679-23.747l-26.072-43.949-22.213-37.71c-8.587-14.815-10.267-16.73-12.322-14.319-.435.566-2.676 8.009-4.978 16.586l-22.711 82.228-13.378 47.494-8.153 29.064-18.232 64.86-12.133 43.382-4.355 16.162c.186 0 3.671-7.443 14.871-31.898l10.578-22.684 8.088-17.013 8.774-18.43 9.771-20.556 7.901-16.659 9.333-19.848 9.957-21.267 10.765-23.038c6.844-14.957 9.397-20.061 10.08-20.273.374-.142 3.485 4.606 6.968 10.562l24.828 41.255 31.981 52.809c5.289 8.932 6.846 11.06 8.153 11.2.87.142 1.929-.212 2.302-.779.685-.851 19.6-65.499 44.054-150.421l25.823-88.889 17.798-62.168c-.125-.141-1.308 2.34-2.615 5.53h.002z" fill="var(--accent,#ffd700)"/><path d="M359.081 153.904l-3.111 11.555c-1.369 4.89-2.302 9.074-2.053 9.287s5.041 3.757 10.703 7.869l33.289 24.314 37.645 27.505 19.601 14.318 6.409 4.536c2.489 1.49 5.538-.991-32.542 26.369l-38.269 27.432-31.236 22.402-33.913 24.456-28.187 20.273-12.134 8.648c-10.019 7.16-19.413 13.681-19.848 13.681-.188 0-.374-14.248-.374-31.757v-31.686l-4.419-7.088-10.019-16.518c-3.111-5.102-5.849-9.356-6.098-9.356s-.375 11.909-.249 26.37l.249 64.223v37.711l2.054 2.623c1.866 2.268 2.489 2.553 4.914 2.553 3.237 0 4.169-.568 18.855-11.202l76.535-55.291 21.78-15.807 120.403-86.411c3.67-2.552 5.102-4.748 5.475-8.434.188-2.409 0-3.971-.746-5.599-1.244-2.623-2.677-3.686-48.908-37.711l-51.023-37.642-14.624-10.774-12.88-9.427c-2.986-2.199-5.724-4.041-6.035-4.041-.374 0-.934 1.206-1.245 2.622l.001-.003z" fill="var(--primary,#dc143c)"/></svg>
File without changes
@@ -0,0 +1 @@
1
+ import"./chunk-O2XFH626.js";import{Cookie as T,Settings as j,Shield as F,BarChart3 as _,Target as W}from"lucide-react";import{useState as w,useEffect as v,useRef as G}from"react";import{Accordion as K,Button as p,BUTTON_VARIANT as m,Card as V,Switch as q,Text as f,cn as X,Stack as a}from"@donotdev/components";import{handleError as $,useConsent as d,getCookieExamples as y,hasOptionalCookies as J}from"@donotdev/core";import{CONSENT_CATEGORY as l}from"@donotdev/core";import{useTranslation as Q}from"@donotdev/core";import{isClient as Z}from"@donotdev/core";import{Fragment as oe,jsx as o,jsxs as s}from"react/jsx-runtime";var ee=480;function te({position:N="bottom",className:O=""}){let r=d("hasConsented"),u=d("categories"),S=d("acceptAll"),D=d("declineAll"),B=d("updateCategory"),g=d("showBanner"),{t:e}=Q("cookies"),[k,E]=w(!1),[C,c]=w(!r||g),[A,b]=w(u),x=G(null);v(()=>{g&&c(!0)},[g]);let I=Object.keys(u),L=[{id:l.NECESSARY,icon:F,title:e("essentialCookies"),description:e("essentialDescription"),examples:y("necessary")||e("essentialExamples"),locked:!0},{id:l.FUNCTIONAL,icon:T,title:e("functionalCookies"),description:e("functionalDescription"),examples:y("functional")||e("functionalExamples"),legalNotice:e("functionalLegalNotice"),locked:!1},{id:l.ANALYTICS,icon:_,title:e("analyticsCookies"),description:e("analyticsDescription"),examples:y("analytics")||e("analyticsExamples"),locked:!1},{id:l.MARKETING,icon:W,title:e("marketingCookies"),description:e("marketingDescription"),examples:y("marketing")||e("marketingExamples"),locked:!1}].filter(t=>I.includes(t.id)),h=J();if(v(()=>{!r&&!h&&S()},[r,h,S]),v(()=>{let t={...u};if(k){let n=t;Object.keys(n).forEach(i=>{i!==l.NECESSARY&&n[i]===!1&&(n[i]=!0)})}b(t)},[u,k]),v(()=>{if(!Z()||r||!C)return;let t=i=>{x.current&&!x.current.contains(i.target)&&c(!1)},n=setTimeout(()=>{document.addEventListener("mousedown",t)},100);return()=>{clearTimeout(n),document.removeEventListener("mousedown",t)}},[r,C]),r&&!g)return null;let P=()=>{try{Object.entries(A).forEach(([t,n])=>{if(t!==l.NECESSARY&&n!==void 0){let i=t;Object.values(l).includes(i)&&B(i,!!n)}}),E(!1),c(!1)}catch(t){$(t,{userMessage:"Error saving preferences",context:{operation:"save_preferences"},severity:"warning",log:!0,reportToSentry:!1,showNotification:!1})}},R=()=>{S(),c(!1)},U=()=>{D(),c(!1)},z=s(a,{gap:"medium",children:[o(f,{as:"p",variant:"muted",level:"small",style:{lineHeight:1.55},children:e("cookieBannerDescription")}),h&&o(K,{type:"single",collapsible:!0,value:k?"preferences":"",onValueChange:t=>E(t==="preferences"),items:[{value:"preferences",trigger:s(a,{direction:"row",align:"center",gap:"tight",children:[o(j,{className:"dndev-size-sm"}),o(f,{as:"span",level:"small",weight:"medium",children:e("customize")})]}),content:o(a,{gap:"tight",children:L.map(t=>{let n=t.icon,i=A[t.id]??!1;return s(a,{direction:"row",align:"start",justify:"between",gap:"medium",style:{padding:"0.75rem",borderRadius:"var(--radius-surface, 0.5rem)",background:"var(--muted)"},children:[s(a,{direction:"row",align:"start",gap:"tight",style:{flex:1,minWidth:0},children:[o(n,{className:"dndev-size-sm",style:{color:"var(--primary)",marginTop:"0.15rem",flexShrink:0}}),s(a,{gap:"none",style:{minWidth:0},children:[o(f,{as:"span",level:"small",weight:"semibold",children:t.title}),o(f,{as:"span",variant:"muted",level:"caption",style:{lineHeight:1.45},children:t.description})]})]}),t.locked?o(f,{as:"span",variant:"muted",level:"caption",weight:"medium",style:{flexShrink:0},children:e("alwaysOn")}):o(q,{checked:i,onCheckedChange:M=>b(Y=>({...Y,[t.id]:M}))})]},t.id)})})}]})]}),H=k?s(a,{direction:"row",gap:"tight",style:{width:"100%"},children:[o(p,{onClick:()=>E(!1),variant:m.OUTLINE,style:{flex:1},children:e("form.cancel","Cancel")}),o(p,{onClick:P,variant:m.DEFAULT,style:{flex:1},children:e("savePreferences","Save Preferences")})]}):s(a,{direction:"row",gap:"tight",style:{width:"100%"},children:[h&&o(p,{onClick:U,variant:m.OUTLINE,style:{flex:1},children:e("declineOptional")}),o(p,{onClick:R,variant:m.DEFAULT,style:{flex:1},children:e("acceptAll")})]});return s(oe,{children:[C&&o(V,{ref:x,elevated:!0,icon:T,title:e("cookiePreferences"),content:z,footer:H,className:X("dndev-fixed dndev-z-modal",O),style:{[N==="top"?"top":"bottom"]:"var(--gap-md)",insetInlineStart:"var(--gap-md)",width:`min(${ee}px, calc(100vw - var(--gap-md) * 2))`,height:"auto"}}),!C&&!r&&o(p,{onClick:()=>c(!0),variant:m.OUTLINE,floating:!0,icon:T,display:"compact",tooltip:e("cookiePreferences"),"aria-label":e("cookiePreferences"),className:"dndev-fixed dndev-z-toast",style:{[N==="top"?"top":"bottom"]:"var(--gap-md)",insetInlineStart:"var(--gap-md)"}})]})}var de=te;export{de as default};
@@ -1 +1 @@
1
- import{a as u,h as T}from"./chunk-ETE4RC7M.js";import"./chunk-O2XFH626.js";import{Link as G,Star as I}from"lucide-react";import{useCallback as k,useEffect as D,useRef as O}from"react";import{Badge as S,Command as R,CommandDialog as F}from"@donotdev/components";import{useOverlayStore as v,useTranslation as A}from"@donotdev/core";import{jsx as o,jsxs as t}from"react/jsx-runtime";var E=()=>{let{t:e}=A("dndev"),d=O(null),m=v(a=>a.isCommandDialogOpen),r=v(a=>a.closeCommandDialog),{navigationItems:f,favoriteItems:s,recentItems:i,toggleFavorite:b,isFavorite:c,navigateToItem:h}=T();D(()=>{m&&requestAnimationFrame(()=>{d.current?.focus()})},[m]);let C=k(a=>{h(a),r()},[h,r]),p=k((a,g=!0)=>a.map(n=>({label:n.label,value:n.path,description:n.path!==n.label?n.path:void 0,icon:o(u,{icon:n.icon,fallback:G}),badge:n.badge?o(S,{children:n.badge}):void 0,onSelect:()=>C(n.path),rightSlot:g?o("button",{type:"button",onClick:N=>{N.stopPropagation(),b(n.path)},className:"dndev-command-favorite-button","data-favorited":c(n.path),"aria-label":c(n.path)?e("globalGoTo.unfavorite","Remove from favorites"):e("globalGoTo.favorite","Add to favorites"),children:o(u,{icon:I,className:"dndev-size-sm"})}):void 0})),[C,b,c,e]),l=[];if(s.length>0&&l.push({heading:e("globalGoTo.favorites","Favorites"),items:p(s,!1)}),i.length>0){let a=i.flatMap(g=>p([g],!0));a.length>0&&l.push({heading:e("globalGoTo.recent","Recent"),separator:s.length>0,items:a})}l.push({heading:e("globalGoTo.allPages","All Pages"),separator:s.length>0||i.length>0,items:p(f)});let y=f.length>0;return t(F,{open:m,onOpenChange:a=>a?null:r(),children:[o(R,{placeholder:e("globalGoTo.placeholder","Search pages..."),emptyMessage:y?e("globalGoTo.noResults","No results found."):e("globalGoTo.empty","No pages available."),groups:l}),o("div",{className:"dndev-command-footer",children:t("div",{className:"dndev-command-footer-shortcuts",children:[t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2318K"}),o("span",{children:e("globalGoTo.shortcutOpen","Open")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2191"}),o("kbd",{className:"dndev-command-footer-key",children:"\u2193"}),o("span",{children:e("globalGoTo.shortcutNavigate","Navigate")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u21B5"}),o("span",{children:e("globalGoTo.shortcutSelect","Select")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"Esc"}),o("span",{children:e("globalGoTo.shortcutClose","Close")})]})]})})]})},L=()=>v(d=>d.isCommandDialogOpen)?o(E,{}):null,K=L;export{K as default};
1
+ import{a as u,h as T}from"./chunk-MIPTBUWY.js";import"./chunk-O2XFH626.js";import{Link as G,Star as I}from"lucide-react";import{useCallback as k,useEffect as D,useRef as O}from"react";import{Badge as S,Command as R,CommandDialog as F}from"@donotdev/components";import{useOverlayStore as v,useTranslation as A}from"@donotdev/core";import{jsx as o,jsxs as t}from"react/jsx-runtime";var E=()=>{let{t:e}=A("dndev"),d=O(null),m=v(a=>a.isCommandDialogOpen),r=v(a=>a.closeCommandDialog),{navigationItems:f,favoriteItems:s,recentItems:i,toggleFavorite:b,isFavorite:c,navigateToItem:h}=T();D(()=>{m&&requestAnimationFrame(()=>{d.current?.focus()})},[m]);let C=k(a=>{h(a),r()},[h,r]),p=k((a,g=!0)=>a.map(n=>({label:n.label,value:n.path,description:n.path!==n.label?n.path:void 0,icon:o(u,{icon:n.icon,fallback:G}),badge:n.badge?o(S,{children:n.badge}):void 0,onSelect:()=>C(n.path),rightSlot:g?o("button",{type:"button",onClick:N=>{N.stopPropagation(),b(n.path)},className:"dndev-command-favorite-button","data-favorited":c(n.path),"aria-label":c(n.path)?e("globalGoTo.unfavorite","Remove from favorites"):e("globalGoTo.favorite","Add to favorites"),children:o(u,{icon:I,className:"dndev-size-sm"})}):void 0})),[C,b,c,e]),l=[];if(s.length>0&&l.push({heading:e("globalGoTo.favorites","Favorites"),items:p(s,!1)}),i.length>0){let a=i.flatMap(g=>p([g],!0));a.length>0&&l.push({heading:e("globalGoTo.recent","Recent"),separator:s.length>0,items:a})}l.push({heading:e("globalGoTo.allPages","All Pages"),separator:s.length>0||i.length>0,items:p(f)});let y=f.length>0;return t(F,{open:m,onOpenChange:a=>a?null:r(),children:[o(R,{placeholder:e("globalGoTo.placeholder","Search pages..."),emptyMessage:y?e("globalGoTo.noResults","No results found."):e("globalGoTo.empty","No pages available."),groups:l}),o("div",{className:"dndev-command-footer",children:t("div",{className:"dndev-command-footer-shortcuts",children:[t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2318K"}),o("span",{children:e("globalGoTo.shortcutOpen","Open")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2191"}),o("kbd",{className:"dndev-command-footer-key",children:"\u2193"}),o("span",{children:e("globalGoTo.shortcutNavigate","Navigate")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u21B5"}),o("span",{children:e("globalGoTo.shortcutSelect","Select")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"Esc"}),o("span",{children:e("globalGoTo.shortcutClose","Close")})]})]})})]})},L=()=>v(d=>d.isCommandDialogOpen)?o(E,{}):null,K=L;export{K as default};
@@ -0,0 +1 @@
1
+ import*as l from"lucide-react";import{isValidElement as x}from"react";import{cn as p}from"@donotdev/components";import{jsx as c}from"react/jsx-runtime";function C(e){if(!e)return l.Palette;let n=e.replace(/['"]/g,"");return l[n]||l.Palette}var P=({icon:e,fallback:n,className:r,ariaHidden:s=!1})=>{let o=e||n;if(!o)return null;let i="dndev-size-md";if(typeof o=="function"||typeof o=="object"&&o!==null&&"render"in o)return c(o,{className:p(i,r),style:{flexShrink:0},"aria-hidden":s});if(typeof o=="string"){if(!/^[a-zA-Z0-9_-]+$/.test(o))return c("span",{className:p(i,r),style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o});let f=C(o);return c(f,{className:p(i,r),style:{flexShrink:0},"aria-hidden":s})}return x(o)?c("span",{className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o}):c("span",{className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o})},D=P;import*as I from"@donotdev/auth";import{DEGRADED_AUTH_API as b}from"@donotdev/core";var d=I?.useAuth;function S(e){return b[e]}function y(e){return d?d(e):S(e)}var U=typeof d=="function",G=I?.PasswordResetCallback??(()=>null);import{useMemo as h}from"react";import{useNavigationStore as E}from"@donotdev/core";import{USER_ROLES as L}from"@donotdev/core";import{useLocation as T}from"@donotdev/ui/routing/hooks";function m(){let e=T(),n=y("user"),r=!!n,s=n?.role||L.GUEST,o=E(i=>!i||typeof i.getFilteredRoutes!="function"?[]:i.getFilteredRoutes({authenticated:r,role:s}));return h(()=>Array.isArray(o)?o.map(i=>({...i,isActive:k(i.path,e.pathname),hasChildren:!1,children:void 0})).sort((i,a)=>i.label.localeCompare(a.label,void 0,{sensitivity:"base"})):[],[o,e.pathname])}function B(e){let n=m();return h(()=>n.find(r=>r.path===e),[n,e])}function k(e,n){return e==="/"?n==="/":n===e?!0:n.startsWith(e+"/")}import{useCallback as K}from"react";import{useNavigationStore as u}from"@donotdev/core";import{useNavigate as F}from"@donotdev/ui/routing/hooks";var ee=()=>{let e=F(),n=m()??[],r=u(t=>t.favorites),s=u(t=>t.recent),o=u(t=>t.toggleFavorite),i=u(t=>t.isFavorite),a=u(t=>t.addRecent),g=n.length?n.filter(t=>r.includes(t.path)):[],f=n.length?n.filter(t=>s.includes(t.path)).slice(0,5):[],A=t=>{o(t)},N=t=>i(t),v=t=>{a(t)},R=K(t=>{v(t),e(t)},[e,v]);return{navigationItems:n,favoriteItems:g,recentItems:f,toggleFavorite:A,isFavorite:N,navigateToItem:R}};export{P as a,D as b,y as c,U as d,G as e,m as f,B as g,ee as h};
@@ -4,9 +4,9 @@ import type { ReactNode } from 'react';
4
4
  export type FeatureCardVariant = CardVariant;
5
5
  /** Props for the FeatureCard component. */
6
6
  export interface FeatureCardProps extends Omit<CardProps, 'content' | 'href' | 'title' | 'subtitle' | 'children'> {
7
- /** Title (required) - 2 rows max with ellipsis */
7
+ /** Title (required) */
8
8
  title: string | ReactNode;
9
- /** Subtitle (required) - 2 rows max with ellipsis */
9
+ /** Subtitle (required) */
10
10
  subtitle: string | ReactNode;
11
11
  /**
12
12
  * Card content - string, string[], or ReactNode.
@@ -17,14 +17,17 @@ export interface FeatureCardProps extends Omit<CardProps, 'content' | 'href' | '
17
17
  href?: string;
18
18
  /** When true, apply clickable styling (cursor, hover) even without href/onClick. Use when card is a dialog trigger. */
19
19
  clickable?: boolean;
20
+ /**
21
+ * Max lines for title and subtitle (each). Pass `0` for no line clamp.
22
+ * @default 2
23
+ */
24
+ maxLines?: number;
20
25
  }
21
26
  /**
22
27
  * FeatureCard - Card wrapper with content array and routing
23
28
  *
24
- * Fixed layout: Title (2 rows) → Subtitle (2 rows) → Content (1fr)
25
- * Uses Card component internally.
26
- * Routing via Link when href provided.
29
+ * Uses Card component internally. Routing via Link when href provided.
27
30
  */
28
- declare const FeatureCard: ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, ...cardProps }: FeatureCardProps) => import("react/jsx-runtime").JSX.Element;
31
+ declare const FeatureCard: ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, maxLines, ...cardProps }: FeatureCardProps) => import("react/jsx-runtime").JSX.Element;
29
32
  export default FeatureCard;
30
33
  //# sourceMappingURL=FeatureCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/common/FeatureCard.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIhF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C,2CAA2C;AAC3C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,SAAS,EACT,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CACvD;IACC,kDAAkD;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uHAAuH;IACvH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,WAAW,GAAI,yHAclB,gBAAgB,4CA8HlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/common/FeatureCard.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIhF,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C,2CAA2C;AAC3C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,SAAS,EACT,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CACvD;IACC,uBAAuB;IACvB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uHAAuH;IACvH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,QAAA,MAAM,WAAW,GAAI,mIAelB,gBAAgB,4CA+IlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -5,8 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * @fileoverview FeatureCard component
6
6
  * @description Card wrapper with content array and routing support
7
7
  *
8
- * Fixed layout: Title (2 rows) → Subtitle (2 rows) → Content (1fr)
9
- * Title and subtitle auto-wrap with 2-line clamp and ellipsis overflow.
8
+ * Default: title and subtitle each use a `maxLines` line clamp → Content (1fr).
9
+ * Pass `maxLines={0}` to disable clamps/ellipsis only (typography); Card/Link height stays `100%` like always.
10
10
  *
11
11
  * @version 0.1.0
12
12
  * @since 0.0.1
@@ -17,46 +17,54 @@ import { Link } from '../../routing';
17
17
  /**
18
18
  * FeatureCard - Card wrapper with content array and routing
19
19
  *
20
- * Fixed layout: Title (2 rows) → Subtitle (2 rows) → Content (1fr)
21
- * Uses Card component internally.
22
- * Routing via Link when href provided.
20
+ * Uses Card component internally. Routing via Link when href provided.
23
21
  */
24
- const FeatureCard = ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, ...cardProps }) => {
22
+ const FeatureCard = ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, maxLines = 2, ...cardProps }) => {
25
23
  const contentNode = renderCardContent(content);
26
- // Fixed height constants for consistent text sizing (2 rows each)
27
- const titleRowHeight = `calc(var(--font-size-lg) * var(--line-height) * 2 + var(--gap-md))`;
28
- const subtitleRowHeight = `calc(var(--font-size-base) * var(--line-height) * 2 + var(--gap-md))`;
29
- // Grid layout: title → subtitle → content → footer (no separators)
24
+ const n = maxLines;
25
+ const titleRowHeight = n <= 0
26
+ ? 'auto'
27
+ : `calc(var(--font-size-lg) * var(--line-height) * ${n} + var(--gap-md))`;
28
+ const subtitleRowHeight = n <= 0
29
+ ? 'auto'
30
+ : `calc(var(--font-size-base) * var(--line-height) * ${n} + var(--gap-md))`;
30
31
  const gridTemplateRows = `${titleRowHeight} ${subtitleRowHeight} 1fr${footer ? ' auto' : ''}`;
31
- // Line clamp styles for title/subtitle (2 lines max, ellipsis)
32
- const lineClampStyle = {
33
- display: '-webkit-box',
34
- WebkitLineClamp: 2,
35
- WebkitBoxOrient: 'vertical',
36
- overflow: 'hidden',
37
- textOverflow: 'ellipsis',
38
- wordBreak: 'break-word',
39
- lineHeight: 'var(--line-height)',
40
- };
32
+ const clampBlock = (lines) => lines <= 0
33
+ ? {
34
+ display: 'block',
35
+ overflow: 'visible',
36
+ wordBreak: 'break-word',
37
+ lineHeight: 'var(--line-height)',
38
+ WebkitLineClamp: 'unset',
39
+ WebkitBoxOrient: 'unset',
40
+ }
41
+ : {
42
+ display: '-webkit-box',
43
+ WebkitLineClamp: lines,
44
+ WebkitBoxOrient: 'vertical',
45
+ overflow: 'hidden',
46
+ textOverflow: 'ellipsis',
47
+ wordBreak: 'break-word',
48
+ lineHeight: 'var(--line-height)',
49
+ };
41
50
  const titleStyle = {
42
- ...lineClampStyle,
51
+ ...clampBlock(n),
43
52
  fontSize: 'var(--font-size-lg)',
44
53
  fontWeight: 600,
45
54
  color: 'inherit',
46
55
  margin: 0,
47
- textAlign: 'start', // Explicit text alignment for wrapped text
48
- flex: 1, // Allow title to grow and wrap properly in flex container
49
- minWidth: 0, // Allow shrinking in flex container
56
+ textAlign: 'start',
57
+ flex: 1,
58
+ minWidth: 0,
50
59
  };
51
60
  const subtitleStyle = {
52
- ...lineClampStyle,
61
+ ...clampBlock(n),
53
62
  fontSize: 'var(--font-size-base)',
54
- fontWeight: 600,
55
- color: 'var(--muted-foreground)', // Muted for hierarchy
63
+ fontWeight: n <= 0 ? 500 : 600,
64
+ color: 'var(--muted-foreground)',
56
65
  margin: 0,
57
66
  };
58
- // Build title with icon if provided
59
- const titleContent = icon ? (_jsxs(Stack, { direction: "row", align: "center", style: { width: '100%' }, children: [_jsx(IconBox, { icon: icon }), _jsx(Text, { as: "div", level: "h3", style: titleStyle, children: title })] })) : (_jsx(Text, { as: "div", level: "h3", style: titleStyle, children: title }));
67
+ const titleContent = icon ? (_jsxs(Stack, { direction: "row", align: n <= 0 ? 'start' : 'center', style: { width: '100%' }, children: [_jsx(IconBox, { icon: icon }), _jsx(Text, { as: "div", level: "h3", style: titleStyle, children: title })] })) : (_jsx(Text, { as: "div", level: "h3", style: titleStyle, children: title }));
60
68
  const card = (_jsx(Card, { variant: variant, elevated: elevated, onClick: onClick, className: className, "data-clickable": href || onClick || clickable ? 'true' : undefined, style: {
61
69
  paddingInlineStart: 'var(--gap-md)',
62
70
  paddingInlineEnd: 'var(--gap-md)',
@@ -71,16 +79,19 @@ const FeatureCard = ({ icon, title, subtitle, content, href, variant, elevated,
71
79
  width: '100%',
72
80
  }, children: [_jsx("div", { style: {
73
81
  display: 'flex',
74
- alignItems: 'center',
82
+ alignItems: n <= 0 ? 'flex-start' : 'center',
75
83
  justifyContent: 'flex-start',
76
84
  }, children: titleContent }), _jsx("div", { style: {
77
85
  display: 'flex',
78
86
  alignItems: 'flex-start',
79
87
  justifyContent: 'flex-start',
80
88
  }, children: _jsx(Text, { as: "div", level: "body", style: subtitleStyle, children: subtitle }) }), _jsx("div", { children: contentNode }), footer && _jsx("div", { children: footer })] }) }));
81
- // Wrap Card with Link for routing
82
89
  if (href && !onClick) {
83
- return (_jsx(Link, { path: href, style: { display: 'block', textDecoration: 'none', height: '100%' }, "aria-label": title ? `Learn more about ${title}` : undefined, children: card }));
90
+ return (_jsx(Link, { path: href, style: {
91
+ display: 'block',
92
+ textDecoration: 'none',
93
+ height: '100%',
94
+ }, "aria-label": title ? `Learn more about ${title}` : undefined, children: card }));
84
95
  }
85
96
  return card;
86
97
  };
@@ -1,10 +1,10 @@
1
1
  /** Props for the CookieConsent component. */
2
2
  export interface CookieConsentProps {
3
+ /** Which screen edge the banner anchors to. */
3
4
  position?: 'bottom' | 'top';
4
- showBranding?: boolean;
5
- brandingText?: string;
5
+ /** Optional wrapper class for custom positioning. */
6
6
  className?: string;
7
7
  }
8
- declare function CookieConsent({ position, showBranding, brandingText, className, }: CookieConsentProps): import("react/jsx-runtime").JSX.Element | null;
8
+ declare function CookieConsent({ position, className, }: CookieConsentProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export default CookieConsent;
10
10
  //# sourceMappingURL=CookieConsent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CookieConsent.d.ts","sourceRoot":"","sources":["../../../src/components/cookie-consent/CookieConsent.tsx"],"names":[],"mappings":"AA6BA,6CAA6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,aAAa,CAAC,EACrB,QAAmB,EACnB,YAAmB,EACnB,YAA8C,EAC9C,SAAc,GACf,EAAE,kBAAkB,kDAqUpB;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CookieConsent.d.ts","sourceRoot":"","sources":["../../../src/components/cookie-consent/CookieConsent.tsx"],"names":[],"mappings":"AA6BA,6CAA6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC5B,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,iBAAS,aAAa,CAAC,EACrB,QAAmB,EACnB,SAAc,GACf,EAAE,kBAAkB,kDAqUpB;AAED,eAAe,aAAa,CAAC"}