@donotdev/ui 0.0.20 → 0.0.22

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 (203) hide show
  1. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  2. package/dist/components/auth/AuthHeader.js +7 -6
  3. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  4. package/dist/components/layout/PageContainer.js +4 -1
  5. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  6. package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
  7. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  8. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  9. package/dist/crud/components/EntityCardList.js +2 -2
  10. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  11. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  12. package/dist/crud/components/EntityFormRenderer.js +1 -1
  13. package/dist/crud/components/EntityList.d.ts.map +1 -1
  14. package/dist/crud/components/EntityList.js +1 -1
  15. package/dist/crud/components/EntityRecommendations.d.ts +0 -9
  16. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  17. package/dist/crud/components/EntityRecommendations.js +10 -0
  18. package/dist/crud/components/EntityWorkflow.d.ts +1 -21
  19. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  20. package/dist/crud/components/EntityWorkflow.js +21 -0
  21. package/dist/dndev.css +4 -69
  22. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  23. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  24. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  25. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  26. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  27. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  28. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  29. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  30. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  31. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  32. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  33. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  34. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  35. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  36. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  37. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  38. package/dist/files/inter-greek-300-normal.woff +0 -0
  39. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  40. package/dist/files/inter-greek-400-normal.woff +0 -0
  41. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  42. package/dist/files/inter-greek-600-normal.woff +0 -0
  43. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  44. package/dist/files/inter-greek-700-normal.woff +0 -0
  45. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  46. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  47. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  48. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  49. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  50. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  51. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  52. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  53. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  54. package/dist/files/inter-latin-300-normal.woff +0 -0
  55. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  56. package/dist/files/inter-latin-400-normal.woff +0 -0
  57. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  58. package/dist/files/inter-latin-600-normal.woff +0 -0
  59. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  60. package/dist/files/inter-latin-700-normal.woff +0 -0
  61. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  62. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  63. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  64. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  65. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  66. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  67. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  68. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  69. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  70. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  71. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  72. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  73. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  74. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  75. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  76. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  77. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  78. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  79. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  80. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  81. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  82. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  83. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  84. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  85. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  86. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  87. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  88. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  89. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  90. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  91. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  92. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  93. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  94. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  95. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  96. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  97. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  98. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  99. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  100. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  101. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  102. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  103. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  104. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  105. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  106. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  107. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  108. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  109. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  110. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  111. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  112. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  113. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  114. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  115. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  116. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  117. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  118. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  119. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  120. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  121. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  122. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  123. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  124. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  125. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  126. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  127. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  128. package/dist/files/roboto-greek-400-normal.woff +0 -0
  129. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  130. package/dist/files/roboto-greek-700-normal.woff +0 -0
  131. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  132. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  133. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  134. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  135. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  136. package/dist/files/roboto-latin-400-normal.woff +0 -0
  137. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  138. package/dist/files/roboto-latin-700-normal.woff +0 -0
  139. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  140. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  141. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  142. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  143. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  144. package/dist/files/roboto-math-400-normal.woff +0 -0
  145. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  146. package/dist/files/roboto-math-700-normal.woff +0 -0
  147. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  148. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  149. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  150. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  151. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  152. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  153. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  154. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  155. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  156. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  157. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  158. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  159. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  160. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  161. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  162. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  163. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  164. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  165. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  166. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  167. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  168. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  169. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  170. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  171. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  172. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  173. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  174. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  175. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  176. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  177. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  178. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  179. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  180. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  181. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  182. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  183. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  184. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  185. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  186. package/dist/index.js +4 -4
  187. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  188. package/dist/internal/initializers/BaseStoresInitializer.js +0 -1
  189. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
  190. package/dist/internal/layout/components/FontPreloadLinks.js +17 -6
  191. package/dist/internal/providers/NavigationProvider.d.ts +1 -1
  192. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  193. package/dist/internal/providers/NavigationProvider.js +1 -1
  194. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  195. package/dist/internal/providers/UIProviders.js +4 -1
  196. package/dist/routing/AuthGuard.d.ts.map +1 -1
  197. package/dist/routing/NavigationItem.js +1 -1
  198. package/dist/routing/useGoTo.d.ts.map +1 -1
  199. package/dist/styles/index.css +4 -69
  200. package/dist/utils/index.d.ts +1 -0
  201. package/dist/utils/index.d.ts.map +1 -1
  202. package/dist/utils/index.js +1 -0
  203. package/package.json +10 -9
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA4DvC;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAyGD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,YAAiB,EACjB,aAAqB,EACrB,aAAa,GACd,EAAE,0BAA0B,kDA+K5B"}
1
+ {"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA4DvC;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAyGD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,YAAiB,EACjB,aAAqB,EACrB,aAAa,GACd,EAAE,0BAA0B,kDA8K5B"}
@@ -252,7 +252,6 @@ export function BaseStoresInitializer({ children, handlers, customStores = [], s
252
252
  unsubscribers.forEach((unsub) => unsub());
253
253
  };
254
254
  // criticalCustomStores reference changes only when customStores prop changes
255
- // eslint-disable-next-line react-hooks/exhaustive-deps
256
255
  }, [customStores]);
257
256
  const criticalReady = consentReady && themeReady && i18nReady && allCustomReady;
258
257
  // Two-phase loader: wait for BOTH framework AND route to be ready
@@ -1 +1 @@
1
- {"version":3,"file":"FontPreloadLinks.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/FontPreloadLinks.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,SAAS,CAAC,CAyB3D;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"FontPreloadLinks.d.ts","sourceRoot":"","sources":["../../../../src/internal/layout/components/FontPreloadLinks.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,SAAS,CAAC,CA0C3D;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // packages/ui/src/internal/layout/components/FontPreloadLinks.tsx
3
3
  /**
4
4
  * @fileoverview FontPreloadLinks - Server-only component for Next.js
@@ -11,23 +11,34 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
11
11
  import fs from 'node:fs/promises';
12
12
  import path from 'node:path';
13
13
  const MANIFEST_FILENAME = 'dndev-font-preloads.json';
14
+ const FONTS_CSS_FILENAME = 'dndev-fonts.css';
14
15
  /**
15
16
  * Server component: renders preload links for fonts listed in public/dndev-font-preloads.json.
16
17
  * No-op if manifest is missing or empty. Use in root layout.tsx for SSR preload in initial HTML.
17
18
  */
18
19
  export async function FontPreloadLinks() {
19
- const manifestPath = path.join(process.cwd(), 'public', MANIFEST_FILENAME);
20
+ const publicDir = path.join(process.cwd(), 'public');
21
+ // Load preload manifest (optional — may not exist on first build or static export)
20
22
  let entries = [];
21
23
  try {
22
- const content = await fs.readFile(manifestPath, 'utf8');
24
+ const content = await fs.readFile(path.join(publicDir, MANIFEST_FILENAME), 'utf8');
23
25
  const parsed = JSON.parse(content);
24
26
  entries = Array.isArray(parsed) ? parsed : [];
25
27
  }
26
28
  catch {
27
- return null;
29
+ // No manifest — preload links won't render, but font stylesheet still can
30
+ }
31
+ // Check if public/dndev-fonts.css exists (generated by copyFontsToPublic for Next.js)
32
+ let hasFontsCss = false;
33
+ try {
34
+ await fs.access(path.join(publicDir, FONTS_CSS_FILENAME));
35
+ hasFontsCss = true;
36
+ }
37
+ catch {
38
+ // No generated font CSS — fonts come from @fontsource CSS imports (Vite)
28
39
  }
29
- if (entries.length === 0)
40
+ if (entries.length === 0 && !hasFontsCss)
30
41
  return null;
31
- return (_jsx(_Fragment, { children: entries.map((e) => (_jsx("link", { rel: "preload", as: "font", href: e.href, type: e.type ?? 'font/woff2', crossOrigin: "anonymous" }, e.href))) }));
42
+ return (_jsxs(_Fragment, { children: [hasFontsCss && _jsx("link", { rel: "stylesheet", href: `/${FONTS_CSS_FILENAME}` }), entries.map((e) => (_jsx("link", { rel: "preload", as: "font", href: e.href, type: e.type ?? 'font/woff2', crossOrigin: "anonymous" }, e.href)))] }));
32
43
  }
33
44
  export default FontPreloadLinks;
@@ -1,5 +1,5 @@
1
- import { createBrowserRouter } from 'react-router-dom';
2
1
  import type { ReactNode } from 'react';
2
+ import type { createBrowserRouter } from 'react-router-dom';
3
3
  /**
4
4
  * Router type from createBrowserRouter
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationProvider.d.ts","sourceRoot":"","sources":["../../../src/internal/providers/NavigationProvider.tsx"],"names":[],"mappings":"AAgCA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;GAEG;AACH,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExD;;GAEG;AACH,UAAU,uBAAuB;IAC/B,6CAA6C;IAC7C,MAAM,EAAE,SAAS,CAAC;IAClB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,uBAAuB,2CAkBrE"}
1
+ {"version":3,"file":"NavigationProvider.d.ts","sourceRoot":"","sources":["../../../src/internal/providers/NavigationProvider.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAI5D;;GAEG;AACH,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExD;;GAEG;AACH,UAAU,uBAAuB;IAC/B,6CAA6C;IAC7C,MAAM,EAAE,SAAS,CAAC;IAClB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,uBAAuB,2CAkBrE"}
@@ -29,7 +29,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
29
29
  * ```
30
30
  */
31
31
  import React, { useEffect } from 'react';
32
- import { RouterProvider, createBrowserRouter } from 'react-router-dom';
32
+ import { RouterProvider } from 'react-router-dom';
33
33
  import { useAbortControllerStore, useOverlayStore } from '@donotdev/core';
34
34
  /**
35
35
  * NavigationProvider - RouterProvider wrapper with auto-abort
@@ -1 +1 @@
1
- {"version":3,"file":"UIProviders.d.ts","sourceRoot":"","sources":["../../../src/internal/providers/UIProviders.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAaxE"}
1
+ {"version":3,"file":"UIProviders.d.ts","sourceRoot":"","sources":["../../../src/internal/providers/UIProviders.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAkB,MAAM,OAAO,CAAC;AAQrE,UAAU,gBAAgB;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,YAAY,CAUxE"}
@@ -13,6 +13,9 @@ import { TooltipProvider, Toaster, Dialog } from '@donotdev/components';
13
13
  import { useOverlayStore } from '@donotdev/core';
14
14
  import DnDevErrorBoundary from '../common/DnDevErrorBoundary';
15
15
  import GlobalErrorFallback from '../common/GlobalErrorFallback';
16
+ function UIGlobalErrorFallback(props) {
17
+ return _jsx(GlobalErrorFallback, { ...props });
18
+ }
16
19
  /**
17
20
  * Provides a wrapper to basic UI components
18
21
  *
@@ -21,7 +24,7 @@ import GlobalErrorFallback from '../common/GlobalErrorFallback';
21
24
  * @author AMBROISE PARK Consulting
22
25
  */
23
26
  export function UIProviders({ children }) {
24
- return (_jsx(DnDevErrorBoundary, { level: "app", fallback: (props) => _jsx(GlobalErrorFallback, { ...props }), children: _jsxs(TooltipProvider, { children: [children, _jsx(Toaster, {}), _jsx(ModalDialog, {})] }) }));
27
+ return (_jsx(DnDevErrorBoundary, { level: "app", fallback: UIGlobalErrorFallback, children: _jsxs(TooltipProvider, { children: [children, _jsx(Toaster, {}), _jsx(ModalDialog, {})] }) }));
25
28
  }
26
29
  /**
27
30
  * ModalDialog - Renders modal dialog using store directly
@@ -1 +1 @@
1
- {"version":3,"file":"AuthGuard.d.ts","sourceRoot":"","sources":["../../src/routing/AuthGuard.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,EAKL,KAAK,SAAS,EACd,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AAU,CACxB,IAAI,EACA,OAAO,UAAU,CAAC,KAAK,GACvB,OAAO,UAAU,CAAC,IAAI,GACtB,OAAO,UAAU,CAAC,KAAK,GAC1B,OAAO,CAIT;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY;;;;;;EAW3B;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EACvC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC3B,IAAI,EAAE,QAAQ,GAAG,KAAK,WAEW,CAAC,6CAOnC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;IAC3B,iCAAiC;kBACrB,KAAK;IAEjB,oCAAoC;oBACtB,QAAQ;IAEtB,yCAAyC;gBAC/B,QAAQ;IAKlB,uDAAuD;iBAC5C,QAAQ;IAKnB,gCAAgC;iBAExB,CAAC,OAAO,kBAAkB,EAAE,MAAM,OAAO,kBAAkB,CAAC,KACjE,QAAQ;IAKX,eAAe;eACN,QAAQ;IAKjB,mBAAmB;mBACN,QAAQ;IAKrB,sCAAsC;oBACxB,QAAQ;IAMtB,wBAAwB;uBACL,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,KAAG,QAAQ;CAItE,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -11,8 +11,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import { Link as LinkIcon } from 'lucide-react';
12
12
  import { navigationMenuTriggerStylePrimitive } from '@donotdev/components';
13
13
  import { Link } from './Link';
14
- import { Icon } from '../components/common/icon';
15
14
  import { useNavigationItems } from './useNavigation';
15
+ import { Icon } from '../components/common/icon';
16
16
  /**
17
17
  * Universal NavigationItem component — nav-trigger style link with icon + label.
18
18
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useGoTo.d.ts","sourceRoot":"","sources":["../../src/routing/useGoTo.ts"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;2BA4BT,MAAM;uBAQN,MAAM;2BAcN,MAAM;CAehB,CAAC"}
1
+ {"version":3,"file":"useGoTo.d.ts","sourceRoot":"","sources":["../../src/routing/useGoTo.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;2BA4BT,MAAM;uBAQN,MAAM;2BAcN,MAAM;CAehB,CAAC"}
@@ -5926,52 +5926,6 @@ input[type='number'] {
5926
5926
 
5927
5927
  /* Root is display: grid - items are direct children */
5928
5928
 
5929
- /* Grid columns via data-cols attribute */
5930
-
5931
- .dndev-radio-group[data-cols] {
5932
- width: -moz-fit-content;
5933
- width: fit-content;
5934
- margin-inline: auto; /* Self-center in parent */
5935
- }
5936
-
5937
- .dndev-radio-group[data-cols='2'] {
5938
- grid-template-columns: repeat(2, auto);
5939
- }
5940
-
5941
- .dndev-radio-group[data-cols='3'] {
5942
- grid-template-columns: repeat(3, auto);
5943
- }
5944
-
5945
- .dndev-radio-group[data-cols='4'] {
5946
- grid-template-columns: repeat(4, auto);
5947
- }
5948
-
5949
- .dndev-radio-group[data-cols='5'] {
5950
- grid-template-columns: repeat(5, auto);
5951
- }
5952
-
5953
- .dndev-radio-group[data-cols='6'] {
5954
- grid-template-columns: repeat(6, auto);
5955
- }
5956
-
5957
- .dndev-radio-group[data-cols='10'] {
5958
- grid-template-columns: repeat(10, auto);
5959
- }
5960
-
5961
- .dndev-radio-group[data-cols='12'] {
5962
- grid-template-columns: repeat(12, auto);
5963
- }
5964
-
5965
- .dndev-radio-group[data-cols='auto-fit'] {
5966
- grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
5967
- width: 100%;
5968
- }
5969
-
5970
- .dndev-radio-group[data-cols='auto-fill'] {
5971
- grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
5972
- width: 100%;
5973
- }
5974
-
5975
5929
  /* Variant colors for checked labels - override base pattern */
5976
5930
 
5977
5931
  .dndev-radio-group[data-variant='primary'] label:has([data-state='checked']) {
@@ -9374,12 +9328,12 @@ input[type='number'] {
9374
9328
  box-shadow: var(--shadow-xl);
9375
9329
  }
9376
9330
 
9377
- /* Phase badge - absolute overlay top-start */
9331
+ /* Phase badge - absolute overlay top-end */
9378
9332
 
9379
9333
  .dndev-roadmap-phase {
9380
9334
  position: absolute;
9381
9335
  top: var(--gap-sm);
9382
- inset-inline-start: var(--gap-sm);
9336
+ inset-inline-end: var(--gap-sm);
9383
9337
  font-size: var(--font-size-xs);
9384
9338
  font-weight: var(--font-weight-bold);
9385
9339
  text-transform: uppercase;
@@ -11131,27 +11085,8 @@ h4[data-variant='code'] {
11131
11085
  }
11132
11086
  }
11133
11087
 
11134
- /* RTL slide animations */
11135
-
11136
- :is(:dir(rtl) @keyframes routeSlideOut) from {
11137
- opacity: 1;
11138
- transform: translateX(0);
11139
- }
11140
-
11141
- :is(:dir(rtl) @keyframes routeSlideOut) to {
11142
- opacity: 0;
11143
- transform: translateX(100%);
11144
- }
11145
-
11146
- :is(:dir(rtl) @keyframes routeSlideIn) from {
11147
- opacity: 0;
11148
- transform: translateX(-100%);
11149
- }
11150
-
11151
- :is(:dir(rtl) @keyframes routeSlideIn) to {
11152
- opacity: 1;
11153
- transform: translateX(0);
11154
- }
11088
+ /* RTL slide animations: @keyframes can't be scoped with :dir(rtl).
11089
+ RTL direction is handled via logical properties in the consuming components. */
11155
11090
 
11156
11091
  /* Routing animations - applied to main content area */
11157
11092
 
@@ -12,6 +12,7 @@ export * from './useFormStoreSafe';
12
12
  export * from './useAuthVisibility';
13
13
  export * from './useStripeBillingSafe';
14
14
  export * from './useBillingVisibility';
15
+ export * from './useCrudSafe';
15
16
  export * from './useOAuthSafe';
16
17
  export * from './tList';
17
18
  export * from './sanitizeSvg';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
@@ -13,6 +13,7 @@ export * from './useFormStoreSafe';
13
13
  export * from './useAuthVisibility';
14
14
  export * from './useStripeBillingSafe';
15
15
  export * from './useBillingVisibility';
16
+ export * from './useCrudSafe';
16
17
  export * from './useOAuthSafe';
17
18
  export * from './tList';
18
19
  export * from './sanitizeSvg';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/ui",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -29,7 +29,8 @@
29
29
  "import": "./dist/routing/hooks/hooks.next.js",
30
30
  "default": "./dist/routing/hooks/hooks.next.js"
31
31
  },
32
- "./dndev.css": "./dist/dndev.css"
32
+ "./dndev.css": "./dist/dndev.css",
33
+ "./dndev-next.css": "./dist/dndev-next.css"
33
34
  },
34
35
  "files": [
35
36
  "dist",
@@ -57,13 +58,13 @@
57
58
  "react-hook-form": "^7.71.2"
58
59
  },
59
60
  "peerDependencies": {
60
- "@donotdev/auth": "^0.0.14",
61
- "@donotdev/billing": "^0.0.13",
62
- "@donotdev/components": "^0.0.24",
63
- "@donotdev/core": "^0.0.30",
64
- "@donotdev/crud": "^0.0.21",
65
- "@donotdev/firebase": "^0.0.16",
66
- "@donotdev/oauth": "^0.0.13",
61
+ "@donotdev/auth": "^0.0.16",
62
+ "@donotdev/billing": "^0.0.14",
63
+ "@donotdev/components": "^0.0.25",
64
+ "@donotdev/core": "^0.0.35",
65
+ "@donotdev/crud": "^0.0.22",
66
+ "@donotdev/firebase": "^0.0.18",
67
+ "@donotdev/oauth": "^0.0.14",
67
68
  "firebase": "^12.9.0",
68
69
  "lucide-react": "^0.575.0",
69
70
  "react": "^19.2.4",