@donotdev/ui 0.0.26 → 0.0.28
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/common/index.d.ts +0 -5
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +0 -5
- package/dist/components/layout/GameFlow.d.ts +1 -1
- package/dist/components/layout/GameFlow.js +1 -1
- package/dist/crud/components/EntityCardList.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +60 -5
- package/dist/crud/components/EntityRecommendations.d.ts +24 -1
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityRecommendations.js +43 -5
- package/dist/dndev-next.css +237 -20
- package/dist/dndev.css +312 -22
- package/dist/index.js +4 -4
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +21 -2
- package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts +2 -0
- package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +4 -5
- package/dist/routing/Link.d.ts +2 -0
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +9 -9
- package/dist/styles/index.css +312 -22
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +3 -3
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6DvC;;;;;;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;AAyHD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,YAAiB,EACjB,aAAqB,EACrB,aAAa,GACd,EAAE,0BAA0B,kDA8K5B"}
|
|
@@ -10,8 +10,8 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
12
|
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
13
|
-
import { useThemeStore, useNavigationStore, useOverlayStore, useNetworkStore, useAbortControllerStore, useConsentStore, useConsentReady, useThemeReady, getPlatformEnvVar, } from '@donotdev/core';
|
|
14
|
-
import { useI18nReady } from '@donotdev/core';
|
|
13
|
+
import { useThemeStore, useNavigationStore, useOverlayStore, useNetworkStore, useAbortControllerStore, useConsentStore, useLanguageStore, useConsentReady, useThemeReady, getPlatformEnvVar, } from '@donotdev/core';
|
|
14
|
+
import { useI18nReady, getI18nInstance, getSupportedLanguages, } from '@donotdev/core';
|
|
15
15
|
import { handleError, isClient, getDndevConfig, globalEmitter, } from '@donotdev/core';
|
|
16
16
|
import { useAppConfig } from '@donotdev/core';
|
|
17
17
|
/**
|
|
@@ -65,6 +65,7 @@ function removeShellLoader(options) {
|
|
|
65
65
|
const STORE_CONFIG = [
|
|
66
66
|
{ name: 'consent', type: 'critical', store: useConsentStore },
|
|
67
67
|
{ name: 'theme', type: 'critical', store: useThemeStore },
|
|
68
|
+
{ name: 'language', type: 'regular', store: useLanguageStore },
|
|
68
69
|
{ name: 'overlay', type: 'regular', store: useOverlayStore },
|
|
69
70
|
{ name: 'network', type: 'regular', store: useNetworkStore },
|
|
70
71
|
{ name: 'abort', type: 'regular', store: useAbortControllerStore },
|
|
@@ -103,6 +104,24 @@ async function initializeStore(config, handlers, appConfig, serverCookies) {
|
|
|
103
104
|
success = true;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
107
|
+
else if (config.name === 'language') {
|
|
108
|
+
console.log('[BaseStoresInit] Initializing language store...');
|
|
109
|
+
const languageStore = useLanguageStore.getState();
|
|
110
|
+
if (typeof languageStore.initialize === 'function') {
|
|
111
|
+
const i18n = getI18nInstance();
|
|
112
|
+
const supportedLanguages = getSupportedLanguages();
|
|
113
|
+
const fallbackLanguage = dndevConfig?.i18n?.fallback || 'en';
|
|
114
|
+
const result = await languageStore.initialize({
|
|
115
|
+
i18n,
|
|
116
|
+
supportedLanguages,
|
|
117
|
+
fallbackLanguage,
|
|
118
|
+
});
|
|
119
|
+
success = result !== false;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
success = true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
106
125
|
else if (config.name === 'consent') {
|
|
107
126
|
const consentStore = useConsentStore.getState();
|
|
108
127
|
if (typeof consentStore.initialize === 'function') {
|
|
@@ -6,6 +6,8 @@ export interface FooterLegalLinksProps {
|
|
|
6
6
|
direction?: 'row' | 'column';
|
|
7
7
|
/** Gap between links */
|
|
8
8
|
gap?: 'none' | 'tight' | 'medium' | 'large';
|
|
9
|
+
/** Alignment of links */
|
|
10
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* FooterLegalLinks - Legal links component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterLegalLinks.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FooterLegalLinks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/layout/components/footer/FooterLegalLinks.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB,iCAAiC;IACjC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;CAChD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAyCvE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -24,7 +24,7 @@ import { Link } from '../../../../routing/Link';
|
|
|
24
24
|
* @since 0.0.1
|
|
25
25
|
* @author AMBROISE PARK Consulting
|
|
26
26
|
*/
|
|
27
|
-
export const FooterLegalLinks = ({ app, direction = 'column', gap = 'tight', }) => {
|
|
27
|
+
export const FooterLegalLinks = ({ app, direction = 'column', gap = 'tight', align = 'stretch', }) => {
|
|
28
28
|
const { t } = useTranslation('dndev');
|
|
29
29
|
const appConfig = useAppConfig('app');
|
|
30
30
|
const resolvedApp = app || appConfig || {};
|
|
@@ -39,6 +39,6 @@ export const FooterLegalLinks = ({ app, direction = 'column', gap = 'tight', })
|
|
|
39
39
|
if (links.length === 0) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
return (_jsxs(Stack, { direction: direction, gap: gap, align:
|
|
42
|
+
return (_jsxs(Stack, { direction: direction, gap: gap, align: align, children: [links.map((link) => (_jsx(Link, { path: link.path, style: linkStyle, onMouseEnter: (e) => (e.currentTarget.style.color = 'var(--primary)'), onMouseLeave: (e) => (e.currentTarget.style.color = 'var(--muted-foreground)'), children: maybeTranslate(t, link.label) }, link.path))), _jsx(FooterBranding, {})] }));
|
|
43
43
|
};
|
|
44
44
|
export default FooterLegalLinks;
|
|
@@ -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;AAGf,OAAO,EAGL,UAAU,EACV,kBAAkB,EAClB,KAAK,QAAQ,EACd,MAAM,gBAAgB,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;AAWxB;;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,QAAoC,GAC/C,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
// packages/ui/src/routing/AuthGuard.tsx
|
|
4
4
|
/**
|
|
5
5
|
* @fileoverview AuthGuard component
|
|
@@ -10,11 +10,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
12
|
import { useEffect, useState, lazy, Suspense, } from 'react';
|
|
13
|
-
import { Stack } from '@donotdev/components';
|
|
13
|
+
import { Spinner, Stack } from '@donotdev/components';
|
|
14
14
|
import { useAuthConfig, FEATURE_STATUS, USER_ROLES, SUBSCRIPTION_TIERS, } from '@donotdev/core';
|
|
15
15
|
// Platform-specific hooks via conditional exports
|
|
16
16
|
import { useRedirectGuard, useNavigate } from '@donotdev/ui/routing/hooks';
|
|
17
|
-
import Loader from '../components/common/Loader';
|
|
18
17
|
import { useAuthSafe } from '../utils/useAuthSafe';
|
|
19
18
|
// Lazy load consent component for auth routes
|
|
20
19
|
const CookieConsent = lazy(() => import('../components/cookie-consent/CookieConsent'));
|
|
@@ -37,7 +36,7 @@ const CookieConsent = lazy(() => import('../components/cookie-consent/CookieCons
|
|
|
37
36
|
* @since 0.0.1
|
|
38
37
|
* @author AMBROISE PARK Consulting
|
|
39
38
|
*/
|
|
40
|
-
export function AuthGuard({ auth, children, fallback: Fallback =
|
|
39
|
+
export function AuthGuard({ auth, children, fallback: Fallback = () => _jsx(Spinner, { overlay: true }), }) {
|
|
41
40
|
const navigate = useNavigate();
|
|
42
41
|
const user = useAuthSafe('user');
|
|
43
42
|
const can = useAuthSafe('can');
|
|
@@ -73,7 +72,7 @@ export function AuthGuard({ auth, children, fallback: Fallback = Loader, }) {
|
|
|
73
72
|
// Early return: show loader if redirect will happen or checking auth state
|
|
74
73
|
// This prevents content flash before redirect
|
|
75
74
|
if (shouldRedirect || isChecking) {
|
|
76
|
-
return _jsx(
|
|
75
|
+
return _jsx(Spinner, { overlay: true });
|
|
77
76
|
}
|
|
78
77
|
// Show slow auth warning after 5s timeout (only if not redirecting)
|
|
79
78
|
if (status === FEATURE_STATUS.INITIALIZING && slowWarning) {
|
package/dist/routing/Link.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
/** Icon component or string name */
|
|
15
15
|
icon?: string | ReactNode;
|
|
16
|
+
/** Place icon after content instead of before */
|
|
17
|
+
iconEnd?: boolean;
|
|
16
18
|
/** Label text (rendered as span if provided) */
|
|
17
19
|
label?: string;
|
|
18
20
|
'aria-label'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/routing/Link.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAC1B,MAAM,OAAO,CAAC;AASf;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/routing/Link.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAC1B,MAAM,OAAO,CAAC;AASf;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,SAAS,CA4IzC,CAAC"}
|
package/dist/routing/Link.js
CHANGED
|
@@ -23,7 +23,7 @@ import { Icon } from '../components/common/icon';
|
|
|
23
23
|
* @since 0.0.1
|
|
24
24
|
* @author AMBROISE PARK Consulting
|
|
25
25
|
*/
|
|
26
|
-
export const Link = ({ path, replace, prefetch = true, children, icon, label, onClick, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, target, rel, ...rest }) => {
|
|
26
|
+
export const Link = ({ path, replace, prefetch = true, children, icon, iconEnd = false, label, onClick, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, target, rel, ...rest }) => {
|
|
27
27
|
const navigate = useNavigate();
|
|
28
28
|
const showCookieBanner = useConsent('showCookieBanner');
|
|
29
29
|
// Special framework trigger: #cookie-settings
|
|
@@ -42,11 +42,11 @@ export const Link = ({ path, replace, prefetch = true, children, icon, label, on
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
return (_jsxs("a", { href: "#cookie-settings", onClick: handleCookieSettings, className: className, style: {
|
|
45
|
-
display: icon && label ? 'flex' : undefined,
|
|
46
|
-
alignItems: icon && label ? 'center' : undefined,
|
|
47
|
-
gap: icon && label ? 'var(--gap-sm)' : undefined,
|
|
45
|
+
display: icon && (label || children) ? 'flex' : undefined,
|
|
46
|
+
alignItems: icon && (label || children) ? 'center' : undefined,
|
|
47
|
+
gap: icon && (label || children) ? 'var(--gap-sm)' : undefined,
|
|
48
48
|
...rest.style,
|
|
49
|
-
}, "aria-label": ariaLabel || label || 'Cookie Settings', "aria-describedby": ariaDescribedBy, ...rest, children: [icon && _jsx(Icon, { icon: icon, fallback: LinkIcon }), label && _jsx("span", { children: label }), children] }));
|
|
49
|
+
}, "aria-label": ariaLabel || label || 'Cookie Settings', "aria-describedby": ariaDescribedBy, ...rest, children: [icon && !iconEnd && _jsx(Icon, { icon: icon, fallback: LinkIcon }), label && _jsx("span", { children: label }), children, icon && iconEnd && _jsx(Icon, { icon: icon, fallback: LinkIcon })] }));
|
|
50
50
|
}
|
|
51
51
|
// Auto-detect external URLs
|
|
52
52
|
const isExternal = path.startsWith('http://') ||
|
|
@@ -75,13 +75,13 @@ export const Link = ({ path, replace, prefetch = true, children, icon, label, on
|
|
|
75
75
|
'aria-label': ariaLabel || label,
|
|
76
76
|
'aria-describedby': ariaDescribedBy,
|
|
77
77
|
};
|
|
78
|
-
const linkContent = (_jsxs(_Fragment, { children: [icon && _jsx(Icon, { icon: icon, fallback: LinkIcon }), label && _jsx("span", { children: label }), children] }));
|
|
78
|
+
const linkContent = (_jsxs(_Fragment, { children: [icon && !iconEnd && _jsx(Icon, { icon: icon, fallback: LinkIcon }), label && _jsx("span", { children: label }), children, icon && iconEnd && _jsx(Icon, { icon: icon, fallback: LinkIcon })] }));
|
|
79
79
|
// External links: use regular <a> with target/rel
|
|
80
80
|
if (isExternal) {
|
|
81
81
|
return (_jsx("a", { href: path, onClick: handleClick, target: target || '_blank', rel: rel || 'noopener noreferrer', className: className, style: {
|
|
82
|
-
display: icon && label ? 'flex' : undefined,
|
|
83
|
-
alignItems: icon && label ? 'center' : undefined,
|
|
84
|
-
gap: icon && label ? 'var(--gap-sm)' : undefined,
|
|
82
|
+
display: icon && (label || children) ? 'flex' : undefined,
|
|
83
|
+
alignItems: icon && (label || children) ? 'center' : undefined,
|
|
84
|
+
gap: icon && (label || children) ? 'var(--gap-sm)' : undefined,
|
|
85
85
|
}, ...accessibilityProps, ...rest, children: linkContent }));
|
|
86
86
|
}
|
|
87
87
|
// Internal links: use framework Link
|
package/dist/styles/index.css
CHANGED
|
@@ -3315,6 +3315,44 @@ em {
|
|
|
3315
3315
|
background: color-mix(in oklab, var(--accent) 5%, transparent);
|
|
3316
3316
|
}
|
|
3317
3317
|
|
|
3318
|
+
/* Bleed: full viewport width */
|
|
3319
|
+
|
|
3320
|
+
.dndev-cta--bleed {
|
|
3321
|
+
width: 100vw;
|
|
3322
|
+
margin-inline: calc(50% - 50vw);
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
/* Background image with overlay for text readability */
|
|
3326
|
+
|
|
3327
|
+
.dndev-cta--bg-image {
|
|
3328
|
+
position: relative;
|
|
3329
|
+
background-size: cover;
|
|
3330
|
+
background-position: center;
|
|
3331
|
+
background-repeat: no-repeat;
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
.dndev-cta--bg-image::before {
|
|
3335
|
+
content: '';
|
|
3336
|
+
position: absolute;
|
|
3337
|
+
inset: 0;
|
|
3338
|
+
background: linear-gradient(
|
|
3339
|
+
to bottom,
|
|
3340
|
+
rgba(0, 0, 0, 0.4),
|
|
3341
|
+
rgba(0, 0, 0, 0.6)
|
|
3342
|
+
);
|
|
3343
|
+
z-index: 0;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
.dndev-cta--bg-image > * {
|
|
3347
|
+
position: relative;
|
|
3348
|
+
z-index: 1;
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3351
|
+
.dndev-cta--bg-image,
|
|
3352
|
+
.dndev-cta--bg-image .dndev-cta-content {
|
|
3353
|
+
color: white;
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3318
3356
|
.dndev-cta-content {
|
|
3319
3357
|
display: flex;
|
|
3320
3358
|
flex-direction: column;
|
|
@@ -3333,21 +3371,64 @@ em {
|
|
|
3333
3371
|
}
|
|
3334
3372
|
}
|
|
3335
3373
|
|
|
3374
|
+
/* Text alignment */
|
|
3375
|
+
|
|
3336
3376
|
.dndev-cta-content[data-text-align='start'] {
|
|
3337
3377
|
text-align: start;
|
|
3338
|
-
align-items: flex-start;
|
|
3339
3378
|
}
|
|
3340
3379
|
|
|
3341
3380
|
.dndev-cta-content[data-text-align='center'] {
|
|
3342
3381
|
text-align: center;
|
|
3343
|
-
align-items: center;
|
|
3344
3382
|
}
|
|
3345
3383
|
|
|
3346
3384
|
.dndev-cta-content[data-text-align='end'] {
|
|
3347
3385
|
text-align: end;
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
/* Item alignment (align-items) */
|
|
3389
|
+
|
|
3390
|
+
.dndev-cta-content[data-align='start'] {
|
|
3391
|
+
align-items: flex-start;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
.dndev-cta-content[data-align='center'] {
|
|
3395
|
+
align-items: center;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
.dndev-cta-content[data-align='end'] {
|
|
3348
3399
|
align-items: flex-end;
|
|
3349
3400
|
}
|
|
3350
3401
|
|
|
3402
|
+
.dndev-cta-content[data-align='stretch'] {
|
|
3403
|
+
align-items: stretch;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
/* Content justification (justify-content) */
|
|
3407
|
+
|
|
3408
|
+
.dndev-cta-content[data-justify='start'] {
|
|
3409
|
+
justify-content: flex-start;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
.dndev-cta-content[data-justify='center'] {
|
|
3413
|
+
justify-content: center;
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
.dndev-cta-content[data-justify='end'] {
|
|
3417
|
+
justify-content: flex-end;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
.dndev-cta-content[data-justify='between'] {
|
|
3421
|
+
justify-content: space-between;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
.dndev-cta-content[data-justify='around'] {
|
|
3425
|
+
justify-content: space-around;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
.dndev-cta-content[data-justify='evenly'] {
|
|
3429
|
+
justify-content: space-evenly;
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3351
3432
|
.dndev-cta-actions {
|
|
3352
3433
|
display: flex;
|
|
3353
3434
|
flex-direction: row;
|
|
@@ -4705,6 +4786,20 @@ em {
|
|
|
4705
4786
|
align-items: stretch;
|
|
4706
4787
|
}
|
|
4707
4788
|
|
|
4789
|
+
/* Text alignment */
|
|
4790
|
+
|
|
4791
|
+
.dndev-grid-component[data-text-align='start'] {
|
|
4792
|
+
text-align: start;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
.dndev-grid-component[data-text-align='center'] {
|
|
4796
|
+
text-align: center;
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
.dndev-grid-component[data-text-align='end'] {
|
|
4800
|
+
text-align: end;
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4708
4803
|
/* Justify items (horizontal alignment) */
|
|
4709
4804
|
|
|
4710
4805
|
.dndev-grid-component[data-justify='start'] {
|
|
@@ -4778,38 +4873,112 @@ em {
|
|
|
4778
4873
|
}
|
|
4779
4874
|
}
|
|
4780
4875
|
|
|
4876
|
+
.dndev-hero-section {
|
|
4877
|
+
|
|
4878
|
+
display: flex;
|
|
4879
|
+
flex-direction: column;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
.dndev-hero-section h1 {
|
|
4883
|
+
font-family: var(--font-headline, var(--font-sans));
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
/* Text alignment */
|
|
4887
|
+
|
|
4781
4888
|
.dndev-hero-section[data-text-align='start'] {
|
|
4782
|
-
display: flex;
|
|
4783
|
-
flex-direction: column;
|
|
4784
|
-
align-items: flex-start;
|
|
4785
4889
|
text-align: start;
|
|
4786
4890
|
}
|
|
4787
4891
|
|
|
4788
|
-
.dndev-hero-section[data-text-align='start'] h1 {
|
|
4789
|
-
font-family: var(--font-headline, var(--font-sans));
|
|
4790
|
-
}
|
|
4791
|
-
|
|
4792
4892
|
.dndev-hero-section[data-text-align='center'] {
|
|
4793
|
-
display: flex;
|
|
4794
|
-
flex-direction: column;
|
|
4795
|
-
align-items: center;
|
|
4796
4893
|
text-align: center;
|
|
4797
4894
|
}
|
|
4798
4895
|
|
|
4799
|
-
.dndev-hero-section[data-text-align='center'] h1 {
|
|
4800
|
-
font-family: var(--font-headline, var(--font-sans));
|
|
4801
|
-
}
|
|
4802
|
-
|
|
4803
4896
|
.dndev-hero-section[data-text-align='end'] {
|
|
4804
|
-
display: flex;
|
|
4805
|
-
flex-direction: column;
|
|
4806
|
-
align-items: flex-end;
|
|
4807
4897
|
text-align: end;
|
|
4808
4898
|
}
|
|
4809
4899
|
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4900
|
+
/* Item alignment (align-items) */
|
|
4901
|
+
|
|
4902
|
+
.dndev-hero-section[data-align='start'] {
|
|
4903
|
+
align-items: flex-start;
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
.dndev-hero-section[data-align='center'] {
|
|
4907
|
+
align-items: center;
|
|
4908
|
+
}
|
|
4909
|
+
|
|
4910
|
+
.dndev-hero-section[data-align='end'] {
|
|
4911
|
+
align-items: flex-end;
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
.dndev-hero-section[data-align='stretch'] {
|
|
4915
|
+
align-items: stretch;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
/* Content justification (justify-content) */
|
|
4919
|
+
|
|
4920
|
+
.dndev-hero-section[data-justify='start'] {
|
|
4921
|
+
justify-content: flex-start;
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
.dndev-hero-section[data-justify='center'] {
|
|
4925
|
+
justify-content: center;
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
.dndev-hero-section[data-justify='end'] {
|
|
4929
|
+
justify-content: flex-end;
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
.dndev-hero-section[data-justify='between'] {
|
|
4933
|
+
justify-content: space-between;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
.dndev-hero-section[data-justify='around'] {
|
|
4937
|
+
justify-content: space-around;
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
.dndev-hero-section[data-justify='evenly'] {
|
|
4941
|
+
justify-content: space-evenly;
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
/* Bleed: full viewport width */
|
|
4945
|
+
|
|
4946
|
+
.dndev-hero-section--bleed {
|
|
4947
|
+
width: 100vw;
|
|
4948
|
+
max-width: none;
|
|
4949
|
+
margin-inline: calc(50% - 50vw);
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
/* Background image with overlay for text readability */
|
|
4953
|
+
|
|
4954
|
+
.dndev-hero-section--bg-image {
|
|
4955
|
+
position: relative;
|
|
4956
|
+
background-size: cover;
|
|
4957
|
+
background-position: center;
|
|
4958
|
+
background-repeat: no-repeat;
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
.dndev-hero-section--bg-image::before {
|
|
4962
|
+
content: '';
|
|
4963
|
+
position: absolute;
|
|
4964
|
+
inset: 0;
|
|
4965
|
+
background: linear-gradient(
|
|
4966
|
+
to bottom,
|
|
4967
|
+
rgba(0, 0, 0, 0.4),
|
|
4968
|
+
rgba(0, 0, 0, 0.6)
|
|
4969
|
+
);
|
|
4970
|
+
z-index: 0;
|
|
4971
|
+
}
|
|
4972
|
+
|
|
4973
|
+
.dndev-hero-section--bg-image > * {
|
|
4974
|
+
position: relative;
|
|
4975
|
+
z-index: 1;
|
|
4976
|
+
}
|
|
4977
|
+
|
|
4978
|
+
.dndev-hero-section--bg-image,
|
|
4979
|
+
.dndev-hero-section--bg-image .dndev-hero-subtitle {
|
|
4980
|
+
color: white;
|
|
4981
|
+
}
|
|
4813
4982
|
|
|
4814
4983
|
.dndev-hero-subtitle {
|
|
4815
4984
|
font-size: var(--font-size-lg); /* 20px - muted via component */
|
|
@@ -6099,6 +6268,17 @@ input[type='number'] {
|
|
|
6099
6268
|
width: 100%;
|
|
6100
6269
|
}
|
|
6101
6270
|
|
|
6271
|
+
/* Bleed: background spans full viewport width, content stays padded */
|
|
6272
|
+
|
|
6273
|
+
.dndev-section-bleed {
|
|
6274
|
+
width: 100vw;
|
|
6275
|
+
margin-inline: calc(50% - 50vw);
|
|
6276
|
+
}
|
|
6277
|
+
|
|
6278
|
+
.dndev-section-bleed > .dndev-section-content {
|
|
6279
|
+
max-width: none;
|
|
6280
|
+
}
|
|
6281
|
+
|
|
6102
6282
|
/* Content wrapper: constrained + centered + padded */
|
|
6103
6283
|
|
|
6104
6284
|
.dndev-section-content {
|
|
@@ -6119,6 +6299,64 @@ input[type='number'] {
|
|
|
6119
6299
|
}
|
|
6120
6300
|
}
|
|
6121
6301
|
|
|
6302
|
+
/* Propagate text-align to all section content via CSS inheritance */
|
|
6303
|
+
|
|
6304
|
+
.dndev-section-full-width[data-text-align='start'] > .dndev-section-content {
|
|
6305
|
+
text-align: start;
|
|
6306
|
+
}
|
|
6307
|
+
|
|
6308
|
+
.dndev-section-full-width[data-text-align='center'] > .dndev-section-content {
|
|
6309
|
+
text-align: center;
|
|
6310
|
+
}
|
|
6311
|
+
|
|
6312
|
+
.dndev-section-full-width[data-text-align='end'] > .dndev-section-content {
|
|
6313
|
+
text-align: end;
|
|
6314
|
+
}
|
|
6315
|
+
|
|
6316
|
+
/* Item alignment (align-items) on content container */
|
|
6317
|
+
|
|
6318
|
+
.dndev-section-content[data-align='start'] {
|
|
6319
|
+
align-items: flex-start;
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
.dndev-section-content[data-align='center'] {
|
|
6323
|
+
align-items: center;
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6326
|
+
.dndev-section-content[data-align='end'] {
|
|
6327
|
+
align-items: flex-end;
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
.dndev-section-content[data-align='stretch'] {
|
|
6331
|
+
align-items: stretch;
|
|
6332
|
+
}
|
|
6333
|
+
|
|
6334
|
+
/* Content justification (justify-content) on content container */
|
|
6335
|
+
|
|
6336
|
+
.dndev-section-content[data-justify='start'] {
|
|
6337
|
+
justify-content: flex-start;
|
|
6338
|
+
}
|
|
6339
|
+
|
|
6340
|
+
.dndev-section-content[data-justify='center'] {
|
|
6341
|
+
justify-content: center;
|
|
6342
|
+
}
|
|
6343
|
+
|
|
6344
|
+
.dndev-section-content[data-justify='end'] {
|
|
6345
|
+
justify-content: flex-end;
|
|
6346
|
+
}
|
|
6347
|
+
|
|
6348
|
+
.dndev-section-content[data-justify='between'] {
|
|
6349
|
+
justify-content: space-between;
|
|
6350
|
+
}
|
|
6351
|
+
|
|
6352
|
+
.dndev-section-content[data-justify='around'] {
|
|
6353
|
+
justify-content: space-around;
|
|
6354
|
+
}
|
|
6355
|
+
|
|
6356
|
+
.dndev-section-content[data-justify='evenly'] {
|
|
6357
|
+
justify-content: space-evenly;
|
|
6358
|
+
}
|
|
6359
|
+
|
|
6122
6360
|
/* Section title: uppercase, accent color, letter spacing */
|
|
6123
6361
|
|
|
6124
6362
|
.dndev-section-title {
|
|
@@ -6962,6 +7200,44 @@ input[type='number'] {
|
|
|
6962
7200
|
border-width: 3px;
|
|
6963
7201
|
}
|
|
6964
7202
|
|
|
7203
|
+
/* Container overlay - scoped to parent (position: relative) */
|
|
7204
|
+
|
|
7205
|
+
.dndev-spinner-overlay--container {
|
|
7206
|
+
position: absolute;
|
|
7207
|
+
inset: 0;
|
|
7208
|
+
display: flex;
|
|
7209
|
+
align-items: center;
|
|
7210
|
+
justify-content: center;
|
|
7211
|
+
background: rgb(from var(--background) r g b / 0.8);
|
|
7212
|
+
backdrop-filter: blur(8px);
|
|
7213
|
+
-webkit-backdrop-filter: blur(8px);
|
|
7214
|
+
z-index: var(--z-overlay, 9999);
|
|
7215
|
+
transition: opacity var(--dur-normal, 0.2s) var(--ease-in-out, ease-in-out);
|
|
7216
|
+
}
|
|
7217
|
+
|
|
7218
|
+
.dndev-spinner-overlay--container .dndev-spinner {
|
|
7219
|
+
width: var(--icon-lg, 32px);
|
|
7220
|
+
height: var(--icon-lg, 32px);
|
|
7221
|
+
border-width: 3px;
|
|
7222
|
+
}
|
|
7223
|
+
|
|
7224
|
+
/* Spinner content wrapper (spinner + message) */
|
|
7225
|
+
|
|
7226
|
+
.dndev-spinner-content {
|
|
7227
|
+
display: flex;
|
|
7228
|
+
flex-direction: column;
|
|
7229
|
+
align-items: center;
|
|
7230
|
+
gap: var(--gap-md, 12px);
|
|
7231
|
+
}
|
|
7232
|
+
|
|
7233
|
+
/* Message text below spinner */
|
|
7234
|
+
|
|
7235
|
+
.dndev-spinner-message {
|
|
7236
|
+
color: var(--muted-foreground);
|
|
7237
|
+
font-size: var(--font-size-sm, 0.875rem);
|
|
7238
|
+
font-weight: 500;
|
|
7239
|
+
}
|
|
7240
|
+
|
|
6965
7241
|
/* Spinner animation */
|
|
6966
7242
|
|
|
6967
7243
|
@keyframes spin {
|
|
@@ -7142,6 +7418,20 @@ input[type='number'] {
|
|
|
7142
7418
|
align-self: inherit !important;
|
|
7143
7419
|
}
|
|
7144
7420
|
|
|
7421
|
+
/* Text alignment */
|
|
7422
|
+
|
|
7423
|
+
.dndev-stack[data-text-align='start'] {
|
|
7424
|
+
text-align: start;
|
|
7425
|
+
}
|
|
7426
|
+
|
|
7427
|
+
.dndev-stack[data-text-align='center'] {
|
|
7428
|
+
text-align: center;
|
|
7429
|
+
}
|
|
7430
|
+
|
|
7431
|
+
.dndev-stack[data-text-align='end'] {
|
|
7432
|
+
text-align: end;
|
|
7433
|
+
}
|
|
7434
|
+
|
|
7145
7435
|
/* packages/components/src/atomic/Stepper/Stepper.css */
|
|
7146
7436
|
|
|
7147
7437
|
.dndev-stepper-container:focus,.dndev-stepper-container:focus-visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/vite-routing/AppRoutes.tsx"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/vite-routing/AppRoutes.tsx"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAQ3E,OAAO,KAAK,EAAE,aAAa,EAAkC,MAAM,OAAO,CAAC;AAG3E,yEAAyE;AACzE,KAAK,oBAAoB,GACrB,CAAC,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC,GAC3C,MAAM,CAAC;AAiIX;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAChC;AAED,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,oBAAoB,CAAC;IAChC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,UAAU,sBAAsB;IAC9B,4CAA4C;IAC5C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,yCAiF9D"}
|
|
@@ -49,8 +49,8 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
49
49
|
import { lazy, Suspense, useLayoutEffect } from 'react';
|
|
50
50
|
import { createBrowserRouter } from 'react-router-dom';
|
|
51
51
|
import { useLayout } from '@donotdev/core';
|
|
52
|
+
import { Spinner } from '@donotdev/components';
|
|
52
53
|
import { RootLayout } from './RootLayout';
|
|
53
|
-
import Loader from '../components/common/Loader';
|
|
54
54
|
import { AuthGuard } from '../routing/AuthGuard';
|
|
55
55
|
// Cache lazy components to prevent recreation and infinite loops
|
|
56
56
|
const lazyComponentCache = new Map();
|
|
@@ -65,7 +65,7 @@ function NotFoundPage() {
|
|
|
65
65
|
lazyComponentCache.set(cacheKey, lazy(() => import('../routing/404')));
|
|
66
66
|
}
|
|
67
67
|
const LazyNotFoundPage = lazyComponentCache.get(cacheKey);
|
|
68
|
-
return (_jsx(Suspense, { fallback: _jsx(
|
|
68
|
+
return (_jsx(Suspense, { fallback: _jsx(Spinner, { overlay: true }), children: _jsx(LazyNotFoundPage, {}) }));
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* LazyRoute - Optimized Component Loader
|
|
@@ -87,7 +87,7 @@ const LazyRoute = ({ component, path, }) => {
|
|
|
87
87
|
lazyComponentCache.set(path, lazy(component));
|
|
88
88
|
}
|
|
89
89
|
const Component = lazyComponentCache.get(path);
|
|
90
|
-
return (_jsx(Suspense, { fallback: _jsx(
|
|
90
|
+
return (_jsx(Suspense, { fallback: _jsx(Spinner, { overlay: true }), children: _jsx(Component, {}) }));
|
|
91
91
|
};
|
|
92
92
|
/** Extract preset from route meta (meta is unknown at the interface level) */
|
|
93
93
|
function getRoutePreset(meta) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"react-hook-form": "^7.71.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@donotdev/auth": "^0.0.
|
|
61
|
+
"@donotdev/auth": "^0.0.21",
|
|
62
62
|
"@donotdev/billing": "^0.0.17",
|
|
63
|
-
"@donotdev/components": "^0.0.
|
|
64
|
-
"@donotdev/core": "^0.0.
|
|
65
|
-
"@donotdev/crud": "^0.0.
|
|
63
|
+
"@donotdev/components": "^0.0.30",
|
|
64
|
+
"@donotdev/core": "^0.0.41",
|
|
65
|
+
"@donotdev/crud": "^0.0.29",
|
|
66
66
|
"@donotdev/oauth": "^0.0.17",
|
|
67
67
|
"lucide-react": "^0.575.0",
|
|
68
68
|
"react": "^19.2.4",
|