@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.
- package/dist/components/auth/AuthHeader.d.ts.map +1 -1
- package/dist/components/auth/AuthHeader.js +7 -6
- package/dist/components/layout/PageContainer.d.ts.map +1 -1
- package/dist/components/layout/PageContainer.js +4 -1
- package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
- package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +2 -2
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +1 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +1 -1
- package/dist/crud/components/EntityRecommendations.d.ts +0 -9
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityRecommendations.js +10 -0
- package/dist/crud/components/EntityWorkflow.d.ts +1 -21
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +21 -0
- package/dist/dndev.css +4 -69
- package/dist/files/inter-cyrillic-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-300-normal.woff +0 -0
- package/dist/files/inter-greek-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-400-normal.woff +0 -0
- package/dist/files/inter-greek-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-600-normal.woff +0 -0
- package/dist/files/inter-greek-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-700-normal.woff +0 -0
- package/dist/files/inter-greek-700-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff +0 -0
- package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff +0 -0
- package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff +0 -0
- package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff +0 -0
- package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-300-normal.woff +0 -0
- package/dist/files/inter-latin-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-400-normal.woff +0 -0
- package/dist/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-600-normal.woff +0 -0
- package/dist/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-700-normal.woff +0 -0
- package/dist/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff +0 -0
- package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff +0 -0
- package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff +0 -0
- package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff +0 -0
- package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff +0 -0
- package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff +0 -0
- package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff +0 -0
- package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff +0 -0
- package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
- package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
- package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
- package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
- package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
- package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
- package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-400-normal.woff +0 -0
- package/dist/files/roboto-greek-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-700-normal.woff +0 -0
- package/dist/files/roboto-greek-700-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
- package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-400-normal.woff +0 -0
- package/dist/files/roboto-latin-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-700-normal.woff +0 -0
- package/dist/files/roboto-latin-700-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
- package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/roboto-math-400-normal.woff +0 -0
- package/dist/files/roboto-math-400-normal.woff2 +0 -0
- package/dist/files/roboto-math-700-normal.woff +0 -0
- package/dist/files/roboto-math-700-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-400-normal.woff +0 -0
- package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
- package/dist/files/roboto-symbols-700-normal.woff +0 -0
- package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
- package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
- package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
- package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
- package/dist/index.js +4 -4
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +0 -1
- package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +17 -6
- package/dist/internal/providers/NavigationProvider.d.ts +1 -1
- package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
- package/dist/internal/providers/NavigationProvider.js +1 -1
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +4 -1
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/NavigationItem.js +1 -1
- package/dist/routing/useGoTo.d.ts.map +1 -1
- package/dist/styles/index.css +4 -69
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- 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,
|
|
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;
|
|
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
|
|
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(
|
|
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
|
-
|
|
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 (
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationProvider.d.ts","sourceRoot":"","sources":["../../../src/internal/providers/NavigationProvider.tsx"],"names":[],"mappings":"
|
|
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
|
|
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,
|
|
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:
|
|
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,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthGuard.d.ts","sourceRoot":"","sources":["../../src/routing/AuthGuard.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAGf,OAAO,EAGL,UAAU,EACV,kBAAkB,EAClB,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AAYxB;;GAEG;AACH,UAAU,cAAc;IACtB,wCAAwC;IACxC,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAC;IACvB,wCAAwC;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,QAAQ,EAAE,QAAiB,GAC5B,EAAE,cAAc,2CA6HhB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAG9D;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,uBAAiB,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,WAAW,IACvB,OAAO,UAAU,CAAC,KAAK,GACvB,OAAO,UAAU,CAAC,IAAI,GACtB,OAAO,UAAU,CAAC,KAAK,CAS1B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,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":"
|
|
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"}
|
package/dist/styles/index.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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"}
|
package/dist/utils/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
61
|
-
"@donotdev/billing": "^0.0.
|
|
62
|
-
"@donotdev/components": "^0.0.
|
|
63
|
-
"@donotdev/core": "^0.0.
|
|
64
|
-
"@donotdev/crud": "^0.0.
|
|
65
|
-
"@donotdev/firebase": "^0.0.
|
|
66
|
-
"@donotdev/oauth": "^0.0.
|
|
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",
|