@donotdev/ui 0.0.26 → 0.0.27
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 +42 -4
- 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/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 +1 -1
- package/dist/components/common/AppLoading.d.ts +0 -14
- package/dist/components/common/AppLoading.d.ts.map +0 -1
- package/dist/components/common/AppLoading.js +0 -35
- package/dist/components/common/Loader.d.ts +0 -33
- package/dist/components/common/Loader.d.ts.map +0 -1
- package/dist/components/common/Loader.js +0 -81
- package/dist/components/common/LoadingMessage.d.ts +0 -114
- package/dist/components/common/LoadingMessage.d.ts.map +0 -1
- package/dist/components/common/LoadingMessage.js +0 -127
- package/dist/components/common/LoadingOverlay.d.ts +0 -112
- package/dist/components/common/LoadingOverlay.d.ts.map +0 -1
- package/dist/components/common/LoadingOverlay.js +0 -155
- package/dist/components/common/LoadingScreen.d.ts +0 -20
- package/dist/components/common/LoadingScreen.d.ts.map +0 -1
- package/dist/components/common/LoadingScreen.js +0 -45
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
// packages/ui/src/components/common/Loader.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview Loader component
|
|
6
|
-
* @description Loading spinner component with store integration
|
|
7
|
-
*
|
|
8
|
-
* @version 0.0.1
|
|
9
|
-
* @since 0.0.1
|
|
10
|
-
* @author AMBROISE PARK Consulting
|
|
11
|
-
*/
|
|
12
|
-
import { RefreshCw } from 'lucide-react';
|
|
13
|
-
import { Suspense } from 'react';
|
|
14
|
-
import { cn } from '@donotdev/components';
|
|
15
|
-
/**
|
|
16
|
-
* Simple fallback loader that doesn't depend on any stores
|
|
17
|
-
* Used internally for Suspense fallbacks and initial loading states
|
|
18
|
-
*
|
|
19
|
-
* @version 0.0.1
|
|
20
|
-
* @since 0.0.1
|
|
21
|
-
* @author AMBROISE PARK Consulting
|
|
22
|
-
*/
|
|
23
|
-
const SimpleLoader = ({ variant = 'fullPage', className }) => {
|
|
24
|
-
if (variant === 'inline') {
|
|
25
|
-
return (_jsx("div", { className: className, style: {
|
|
26
|
-
display: 'flex',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
justifyContent: 'center',
|
|
29
|
-
}, children: _jsx(RefreshCw, { className: "dndev-size-md", style: {
|
|
30
|
-
color: 'var(--primary)',
|
|
31
|
-
animation: 'spin 1s linear infinite',
|
|
32
|
-
} }) }));
|
|
33
|
-
}
|
|
34
|
-
// Default to fullPage loader
|
|
35
|
-
return (_jsx("div", { className: cn('dndev-loading-overlay', className), style: {
|
|
36
|
-
position: 'fixed',
|
|
37
|
-
inset: 0,
|
|
38
|
-
display: 'flex',
|
|
39
|
-
alignItems: 'center',
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
backgroundColor: 'var(--background)',
|
|
42
|
-
backdropFilter: 'blur(4px)',
|
|
43
|
-
zIndex: 50,
|
|
44
|
-
}, role: "status", "aria-busy": "true", "aria-label": "Loading", children: _jsx(RefreshCw, { className: "dndev-size-touch", style: {
|
|
45
|
-
color: 'var(--primary)',
|
|
46
|
-
animation: 'spin 1s linear infinite',
|
|
47
|
-
} }) }));
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Loader component - renders spinner based on isLoading prop
|
|
51
|
-
*
|
|
52
|
-
* @version 0.0.1
|
|
53
|
-
* @since 0.0.1
|
|
54
|
-
* @author AMBROISE PARK Consulting
|
|
55
|
-
*/
|
|
56
|
-
const LoaderComponent = ({ variant = 'fullPage', className, isLoading, }) => {
|
|
57
|
-
// If isLoading is explicitly false, don't render
|
|
58
|
-
if (isLoading === false) {
|
|
59
|
-
return null;
|
|
60
|
-
}
|
|
61
|
-
// If isLoading is undefined or true, show loader
|
|
62
|
-
// (undefined means always show - useful for Suspense fallbacks)
|
|
63
|
-
return _jsx(SimpleLoader, { variant: variant, className: className });
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Loader - Simple loading spinner component
|
|
67
|
-
*
|
|
68
|
-
* Used for Suspense fallbacks and explicit loading states.
|
|
69
|
-
* Components should use `useCrudList().loading` or `useCrudList().fetching`
|
|
70
|
-
* for reactive loading states from TanStack Query.
|
|
71
|
-
*
|
|
72
|
-
* @version 0.0.1
|
|
73
|
-
* @since 0.0.1
|
|
74
|
-
* @author AMBROISE PARK Consulting
|
|
75
|
-
*/
|
|
76
|
-
const Loader = (props) => {
|
|
77
|
-
return _jsx(LoaderComponent, { ...props });
|
|
78
|
-
};
|
|
79
|
-
// Export both components for flexibility
|
|
80
|
-
export default Loader;
|
|
81
|
-
export { SimpleLoader };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
interface LoadingMessageProps {
|
|
3
|
-
/** The current loading state */
|
|
4
|
-
state?: 'initial' | 'loading' | 'processing' | 'almost-done' | 'complete';
|
|
5
|
-
/** Custom message to display */
|
|
6
|
-
message?: string;
|
|
7
|
-
/** Whether to show the message */
|
|
8
|
-
show?: boolean;
|
|
9
|
-
/** CSS class name for additional styling */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Whether to show a spinner with the message */
|
|
12
|
-
showSpinner?: boolean;
|
|
13
|
-
/** Size of the spinner */
|
|
14
|
-
spinnerSize?: 'sm' | 'md' | 'lg';
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* LoadingMessage - Displays contextual loading messages with microcopy
|
|
18
|
-
*
|
|
19
|
-
* Features:
|
|
20
|
-
* - Predefined messages for common loading states
|
|
21
|
-
* - Custom message support
|
|
22
|
-
* - Optional spinner integration
|
|
23
|
-
* - Accessibility support
|
|
24
|
-
* - Smooth transitions
|
|
25
|
-
*
|
|
26
|
-
* @version 0.0.1
|
|
27
|
-
* @since 0.0.1
|
|
28
|
-
* @author AMBROISE PARK Consulting
|
|
29
|
-
*/
|
|
30
|
-
declare const LoadingMessage: ComponentType<LoadingMessageProps>;
|
|
31
|
-
/**
|
|
32
|
-
* Simple loading message component
|
|
33
|
-
*
|
|
34
|
-
* @version 0.0.1
|
|
35
|
-
* @since 0.0.1
|
|
36
|
-
* @author AMBROISE PARK Consulting
|
|
37
|
-
*/
|
|
38
|
-
export declare const LoadingMessageSimple: ComponentType<Omit<LoadingMessageProps, 'state'> & {
|
|
39
|
-
message?: string;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* Processing loading message component
|
|
43
|
-
*
|
|
44
|
-
* @version 0.0.1
|
|
45
|
-
* @since 0.0.1
|
|
46
|
-
* @author AMBROISE PARK Consulting
|
|
47
|
-
*/
|
|
48
|
-
export declare const LoadingMessageProcessing: ComponentType<Omit<LoadingMessageProps, 'state'> & {
|
|
49
|
-
message?: string;
|
|
50
|
-
}>;
|
|
51
|
-
/**
|
|
52
|
-
* Almost done loading message component
|
|
53
|
-
*
|
|
54
|
-
* @version 0.0.1
|
|
55
|
-
* @since 0.0.1
|
|
56
|
-
* @author AMBROISE PARK Consulting
|
|
57
|
-
*/
|
|
58
|
-
export declare const LoadingMessageAlmostDone: ComponentType<Omit<LoadingMessageProps, 'state'> & {
|
|
59
|
-
message?: string;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Complete loading message component
|
|
63
|
-
*
|
|
64
|
-
* @version 0.0.1
|
|
65
|
-
* @since 0.0.1
|
|
66
|
-
* @author AMBROISE PARK Consulting
|
|
67
|
-
*/
|
|
68
|
-
export declare const LoadingMessageComplete: ComponentType<Omit<LoadingMessageProps, 'state'> & {
|
|
69
|
-
message?: string;
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
* Saving loading message component
|
|
73
|
-
*
|
|
74
|
-
* @version 0.0.1
|
|
75
|
-
* @since 0.0.1
|
|
76
|
-
* @author AMBROISE PARK Consulting
|
|
77
|
-
*/
|
|
78
|
-
export declare const LoadingMessageSaving: ComponentType<Omit<LoadingMessageProps, 'state' | 'message'> & {
|
|
79
|
-
showSpinner?: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
* Uploading loading message component
|
|
83
|
-
*
|
|
84
|
-
* @version 0.0.1
|
|
85
|
-
* @since 0.0.1
|
|
86
|
-
* @author AMBROISE PARK Consulting
|
|
87
|
-
*/
|
|
88
|
-
export declare const LoadingMessageUploading: ComponentType<Omit<LoadingMessageProps, 'state' | 'message'> & {
|
|
89
|
-
showSpinner?: boolean;
|
|
90
|
-
fileName?: string;
|
|
91
|
-
}>;
|
|
92
|
-
/**
|
|
93
|
-
* Searching loading message component
|
|
94
|
-
*
|
|
95
|
-
* @version 0.0.1
|
|
96
|
-
* @since 0.0.1
|
|
97
|
-
* @author AMBROISE PARK Consulting
|
|
98
|
-
*/
|
|
99
|
-
export declare const LoadingMessageSearching: ComponentType<Omit<LoadingMessageProps, 'state' | 'message'> & {
|
|
100
|
-
showSpinner?: boolean;
|
|
101
|
-
query?: string;
|
|
102
|
-
}>;
|
|
103
|
-
/**
|
|
104
|
-
* Connecting loading message component
|
|
105
|
-
*
|
|
106
|
-
* @version 0.0.1
|
|
107
|
-
* @since 0.0.1
|
|
108
|
-
* @author AMBROISE PARK Consulting
|
|
109
|
-
*/
|
|
110
|
-
export declare const LoadingMessageConnecting: ComponentType<Omit<LoadingMessageProps, 'state' | 'message'> & {
|
|
111
|
-
showSpinner?: boolean;
|
|
112
|
-
}>;
|
|
113
|
-
export default LoadingMessage;
|
|
114
|
-
//# sourceMappingURL=LoadingMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingMessage.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoadingMessage.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,UAAU,CAAC;IAC1E,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,cAAc,EAAE,aAAa,CAAC,mBAAmB,CA8DtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAC9C,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAGF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAClD,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAGF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAClD,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAGF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAChD,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAGF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAC9C,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAQF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CACjD,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAQF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CACjD,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAQF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAClD,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAQF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// packages/ui/src/components/common/LoadingMessage.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview LoadingMessage component
|
|
6
|
-
* @description Loading message component with state indicators
|
|
7
|
-
*
|
|
8
|
-
* @version 0.0.1
|
|
9
|
-
* @since 0.0.1
|
|
10
|
-
* @author AMBROISE PARK Consulting
|
|
11
|
-
*/
|
|
12
|
-
import { cn } from '@donotdev/components';
|
|
13
|
-
/**
|
|
14
|
-
* LoadingMessage - Displays contextual loading messages with microcopy
|
|
15
|
-
*
|
|
16
|
-
* Features:
|
|
17
|
-
* - Predefined messages for common loading states
|
|
18
|
-
* - Custom message support
|
|
19
|
-
* - Optional spinner integration
|
|
20
|
-
* - Accessibility support
|
|
21
|
-
* - Smooth transitions
|
|
22
|
-
*
|
|
23
|
-
* @version 0.0.1
|
|
24
|
-
* @since 0.0.1
|
|
25
|
-
* @author AMBROISE PARK Consulting
|
|
26
|
-
*/
|
|
27
|
-
const LoadingMessage = ({ state = 'loading', message: customMessage, show = true, className, showSpinner = false, spinnerSize = 'md', }) => {
|
|
28
|
-
if (!show)
|
|
29
|
-
return null;
|
|
30
|
-
// Predefined messages for different states
|
|
31
|
-
const getDefaultMessage = (currentState) => {
|
|
32
|
-
const messages = {
|
|
33
|
-
initial: 'Preparing...',
|
|
34
|
-
loading: 'Loading...',
|
|
35
|
-
processing: 'Processing your request...',
|
|
36
|
-
'almost-done': 'Almost there...',
|
|
37
|
-
complete: 'Complete!',
|
|
38
|
-
};
|
|
39
|
-
return messages[currentState] || 'Loading...';
|
|
40
|
-
};
|
|
41
|
-
const displayMessage = customMessage || getDefaultMessage(state);
|
|
42
|
-
const spinnerSizes = {
|
|
43
|
-
sm: { width: '0.75rem', height: '0.75rem' },
|
|
44
|
-
md: { width: '1rem', height: '1rem' },
|
|
45
|
-
lg: { width: '1.5rem', height: '1.5rem' },
|
|
46
|
-
};
|
|
47
|
-
return (_jsxs("div", { className: cn(className), style: {
|
|
48
|
-
display: 'flex',
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
justifyContent: 'center',
|
|
51
|
-
gap: 'var(--gap-sm)',
|
|
52
|
-
color: 'var(--muted-foreground)',
|
|
53
|
-
fontSize: 'var(--font-size-sm)',
|
|
54
|
-
transition: 'opacity var(--dur-fast) ease-out',
|
|
55
|
-
}, role: "status", "aria-live": "polite", "aria-label": displayMessage, children: [showSpinner && (_jsx("div", { style: {
|
|
56
|
-
...spinnerSizes[spinnerSize],
|
|
57
|
-
animation: 'spin 1s linear infinite',
|
|
58
|
-
borderRadius: 'var(--radius-full)',
|
|
59
|
-
border: '2px solid currentColor',
|
|
60
|
-
borderTopColor: 'transparent',
|
|
61
|
-
}, role: "status", "aria-hidden": "true" })), _jsx("span", { style: { fontWeight: 500 }, children: displayMessage })] }));
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Simple loading message component
|
|
65
|
-
*
|
|
66
|
-
* @version 0.0.1
|
|
67
|
-
* @since 0.0.1
|
|
68
|
-
* @author AMBROISE PARK Consulting
|
|
69
|
-
*/
|
|
70
|
-
export const LoadingMessageSimple = ({ message = 'Loading...', ...props }) => (_jsx(LoadingMessage, { state: "loading", message: message, ...props }));
|
|
71
|
-
/**
|
|
72
|
-
* Processing loading message component
|
|
73
|
-
*
|
|
74
|
-
* @version 0.0.1
|
|
75
|
-
* @since 0.0.1
|
|
76
|
-
* @author AMBROISE PARK Consulting
|
|
77
|
-
*/
|
|
78
|
-
export const LoadingMessageProcessing = ({ message = 'Processing your request...', ...props }) => (_jsx(LoadingMessage, { state: "processing", message: message, ...props }));
|
|
79
|
-
/**
|
|
80
|
-
* Almost done loading message component
|
|
81
|
-
*
|
|
82
|
-
* @version 0.0.1
|
|
83
|
-
* @since 0.0.1
|
|
84
|
-
* @author AMBROISE PARK Consulting
|
|
85
|
-
*/
|
|
86
|
-
export const LoadingMessageAlmostDone = ({ message = 'Almost there...', ...props }) => (_jsx(LoadingMessage, { state: "almost-done", message: message, ...props }));
|
|
87
|
-
/**
|
|
88
|
-
* Complete loading message component
|
|
89
|
-
*
|
|
90
|
-
* @version 0.0.1
|
|
91
|
-
* @since 0.0.1
|
|
92
|
-
* @author AMBROISE PARK Consulting
|
|
93
|
-
*/
|
|
94
|
-
export const LoadingMessageComplete = ({ message = 'Complete!', ...props }) => (_jsx(LoadingMessage, { state: "complete", message: message, ...props }));
|
|
95
|
-
/**
|
|
96
|
-
* Saving loading message component
|
|
97
|
-
*
|
|
98
|
-
* @version 0.0.1
|
|
99
|
-
* @since 0.0.1
|
|
100
|
-
* @author AMBROISE PARK Consulting
|
|
101
|
-
*/
|
|
102
|
-
export const LoadingMessageSaving = ({ showSpinner = true, ...props }) => (_jsx(LoadingMessage, { state: "processing", message: "Saving your changes...", showSpinner: showSpinner, ...props }));
|
|
103
|
-
/**
|
|
104
|
-
* Uploading loading message component
|
|
105
|
-
*
|
|
106
|
-
* @version 0.0.1
|
|
107
|
-
* @since 0.0.1
|
|
108
|
-
* @author AMBROISE PARK Consulting
|
|
109
|
-
*/
|
|
110
|
-
export const LoadingMessageUploading = ({ showSpinner = true, fileName, ...props }) => (_jsx(LoadingMessage, { state: "processing", message: fileName ? `Uploading ${fileName}...` : 'Uploading file...', showSpinner: showSpinner, ...props }));
|
|
111
|
-
/**
|
|
112
|
-
* Searching loading message component
|
|
113
|
-
*
|
|
114
|
-
* @version 0.0.1
|
|
115
|
-
* @since 0.0.1
|
|
116
|
-
* @author AMBROISE PARK Consulting
|
|
117
|
-
*/
|
|
118
|
-
export const LoadingMessageSearching = ({ showSpinner = true, query, ...props }) => (_jsx(LoadingMessage, { state: "processing", message: query ? `Searching for "${query}"...` : 'Searching...', showSpinner: showSpinner, ...props }));
|
|
119
|
-
/**
|
|
120
|
-
* Connecting loading message component
|
|
121
|
-
*
|
|
122
|
-
* @version 0.0.1
|
|
123
|
-
* @since 0.0.1
|
|
124
|
-
* @author AMBROISE PARK Consulting
|
|
125
|
-
*/
|
|
126
|
-
export const LoadingMessageConnecting = ({ showSpinner = true, ...props }) => (_jsx(LoadingMessage, { state: "loading", message: "Connecting to server...", showSpinner: showSpinner, ...props }));
|
|
127
|
-
export default LoadingMessage;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
interface LoadingMessageProps {
|
|
3
|
-
/** The current loading state */
|
|
4
|
-
state?: 'initial' | 'loading' | 'processing' | 'almost-done' | 'complete';
|
|
5
|
-
/** Custom message to display */
|
|
6
|
-
message?: string;
|
|
7
|
-
/** Whether to show the message */
|
|
8
|
-
show?: boolean;
|
|
9
|
-
/** CSS class name for additional styling */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Whether to show a spinner with the message */
|
|
12
|
-
showSpinner?: boolean;
|
|
13
|
-
/** Size of the spinner */
|
|
14
|
-
spinnerSize?: 'sm' | 'md' | 'lg';
|
|
15
|
-
}
|
|
16
|
-
interface LoadingOverlayProps {
|
|
17
|
-
/** Whether the overlay is visible */
|
|
18
|
-
show?: boolean;
|
|
19
|
-
/** Whether to show a backdrop blur */
|
|
20
|
-
backdrop?: boolean;
|
|
21
|
-
/** Whether to show a semi-transparent backdrop */
|
|
22
|
-
backdropBlur?: boolean;
|
|
23
|
-
/** CSS class name for additional styling */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Content to display in the overlay */
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/** Loading message props */
|
|
28
|
-
message?: LoadingMessageProps;
|
|
29
|
-
/** Whether to show a spinner */
|
|
30
|
-
showSpinner?: boolean;
|
|
31
|
-
/** Size of the spinner */
|
|
32
|
-
spinnerSize?: 'sm' | 'md' | 'lg';
|
|
33
|
-
/** Whether to prevent clicks through the overlay */
|
|
34
|
-
preventClicks?: boolean;
|
|
35
|
-
/** Z-index for the overlay (number or CSS variable string) */
|
|
36
|
-
zIndex?: number | string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* LoadingOverlay - A full-screen or container overlay for loading states
|
|
40
|
-
*
|
|
41
|
-
* Features:
|
|
42
|
-
* - Configurable backdrop and blur effects
|
|
43
|
-
*
|
|
44
|
-
* @version 0.0.1
|
|
45
|
-
* @since 0.0.1
|
|
46
|
-
* @author AMBROISE PARK Consulting
|
|
47
|
-
*
|
|
48
|
-
* - Custom content support
|
|
49
|
-
* - Built-in loading message integration
|
|
50
|
-
* - Click prevention
|
|
51
|
-
* - Accessibility support
|
|
52
|
-
* - Smooth transitions
|
|
53
|
-
*/
|
|
54
|
-
declare const LoadingOverlay: ComponentType<LoadingOverlayProps>;
|
|
55
|
-
/**
|
|
56
|
-
* Simple loading overlay component
|
|
57
|
-
*
|
|
58
|
-
* @version 0.0.1
|
|
59
|
-
* @since 0.0.1
|
|
60
|
-
* @author AMBROISE PARK Consulting
|
|
61
|
-
*/
|
|
62
|
-
export declare const LoadingOverlaySimple: ComponentType<Omit<LoadingOverlayProps, 'message'> & {
|
|
63
|
-
message?: string;
|
|
64
|
-
}>;
|
|
65
|
-
/**
|
|
66
|
-
* Processing loading overlay component
|
|
67
|
-
*
|
|
68
|
-
* @version 0.0.1
|
|
69
|
-
* @since 0.0.1
|
|
70
|
-
* @author AMBROISE PARK Consulting
|
|
71
|
-
*/
|
|
72
|
-
export declare const LoadingOverlayProcessing: ComponentType<Omit<LoadingOverlayProps, 'message'> & {
|
|
73
|
-
message?: string;
|
|
74
|
-
}>;
|
|
75
|
-
/**
|
|
76
|
-
* Saving loading overlay component
|
|
77
|
-
*
|
|
78
|
-
* @version 0.0.1
|
|
79
|
-
* @since 0.0.1
|
|
80
|
-
* @author AMBROISE PARK Consulting
|
|
81
|
-
*/
|
|
82
|
-
export declare const LoadingOverlaySaving: ComponentType<Omit<LoadingOverlayProps, 'message'> & {
|
|
83
|
-
message?: string;
|
|
84
|
-
}>;
|
|
85
|
-
/**
|
|
86
|
-
* Uploading loading overlay component
|
|
87
|
-
*
|
|
88
|
-
* @version 0.0.1
|
|
89
|
-
* @since 0.0.1
|
|
90
|
-
* @author AMBROISE PARK Consulting
|
|
91
|
-
*/
|
|
92
|
-
export declare const LoadingOverlayUploading: ComponentType<Omit<LoadingOverlayProps, 'message'> & {
|
|
93
|
-
message?: string;
|
|
94
|
-
fileName?: string;
|
|
95
|
-
}>;
|
|
96
|
-
/**
|
|
97
|
-
* Container overlay for specific areas
|
|
98
|
-
*
|
|
99
|
-
* @version 0.0.1
|
|
100
|
-
* @since 0.0.1
|
|
101
|
-
* @author AMBROISE PARK Consulting
|
|
102
|
-
*/
|
|
103
|
-
export declare const LoadingContainerOverlay: ComponentType<Omit<LoadingOverlayProps, 'show' | 'backdrop' | 'backdropBlur'> & {
|
|
104
|
-
/** Whether the overlay is visible */
|
|
105
|
-
show?: boolean;
|
|
106
|
-
/** Whether to show a backdrop */
|
|
107
|
-
backdrop?: boolean;
|
|
108
|
-
/** Whether to show backdrop blur */
|
|
109
|
-
backdropBlur?: boolean;
|
|
110
|
-
}>;
|
|
111
|
-
export default LoadingOverlay;
|
|
112
|
-
//# sourceMappingURL=LoadingOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoadingOverlay.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,UAAU,mBAAmB;IAC3B,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,UAAU,CAAC;IAC1E,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AAED,UAAU,mBAAmB;IAC3B,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gCAAgC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC,oDAAoD;IACpD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,cAAc,EAAE,aAAa,CAAC,mBAAmB,CAgGtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAC9C,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAGF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAClD,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAUF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAC9C,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAUF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CACjD,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAYF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAAa,CACjD,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,UAAU,GAAG,cAAc,CAAC,GAAG;IAChE,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CA+CF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// packages/ui/src/components/common/LoadingOverlay.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview LoadingOverlay component
|
|
6
|
-
* @description Full-screen loading overlay component
|
|
7
|
-
*
|
|
8
|
-
* @version 0.0.1
|
|
9
|
-
* @since 0.0.1
|
|
10
|
-
* @author AMBROISE PARK Consulting
|
|
11
|
-
*/
|
|
12
|
-
import { cn } from '@donotdev/components';
|
|
13
|
-
import LoadingMessage from './LoadingMessage';
|
|
14
|
-
/**
|
|
15
|
-
* LoadingOverlay - A full-screen or container overlay for loading states
|
|
16
|
-
*
|
|
17
|
-
* Features:
|
|
18
|
-
* - Configurable backdrop and blur effects
|
|
19
|
-
*
|
|
20
|
-
* @version 0.0.1
|
|
21
|
-
* @since 0.0.1
|
|
22
|
-
* @author AMBROISE PARK Consulting
|
|
23
|
-
*
|
|
24
|
-
* - Custom content support
|
|
25
|
-
* - Built-in loading message integration
|
|
26
|
-
* - Click prevention
|
|
27
|
-
* - Accessibility support
|
|
28
|
-
* - Smooth transitions
|
|
29
|
-
*/
|
|
30
|
-
const LoadingOverlay = ({ show = false, backdrop = true, backdropBlur = true, className, children, message, showSpinner = true, spinnerSize = 'lg', preventClicks = true, zIndex = 'var(--z-modal)', }) => {
|
|
31
|
-
if (!show)
|
|
32
|
-
return null;
|
|
33
|
-
// Map zIndex prop to utility class
|
|
34
|
-
const zIndexClass = zIndex === 'var(--z-modal)' || !zIndex
|
|
35
|
-
? 'dndev-z-modal'
|
|
36
|
-
: zIndex === 'var(--z-toast)'
|
|
37
|
-
? 'dndev-z-toast'
|
|
38
|
-
: zIndex === 'var(--z-tooltip)'
|
|
39
|
-
? 'dndev-z-tooltip'
|
|
40
|
-
: zIndex === 'var(--z-overlay)'
|
|
41
|
-
? 'dndev-z-overlay'
|
|
42
|
-
: null;
|
|
43
|
-
return (_jsx("div", { className: cn('dndev-loading-overlay', zIndexClass, className), style: {
|
|
44
|
-
position: 'fixed',
|
|
45
|
-
inset: 0,
|
|
46
|
-
display: 'flex',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
transition: 'opacity var(--dur-fast) ease-out',
|
|
50
|
-
backgroundColor: backdrop ? 'var(--background)' : 'transparent',
|
|
51
|
-
opacity: backdrop ? 'var(--opacity-muted)' : 1,
|
|
52
|
-
backdropFilter: backdropBlur ? 'blur(4px)' : 'none',
|
|
53
|
-
pointerEvents: preventClicks ? 'auto' : 'none',
|
|
54
|
-
...(zIndexClass ? {} : { zIndex }),
|
|
55
|
-
}, role: "dialog", "aria-modal": "true", "aria-busy": "true", "aria-label": "Loading overlay", children: _jsx("div", { className: "dndev-surface", style: {
|
|
56
|
-
display: 'grid',
|
|
57
|
-
placeItems: 'center',
|
|
58
|
-
gap: 'var(--gap-md)',
|
|
59
|
-
borderRadius: 'var(--radius-lg)',
|
|
60
|
-
padding: 'var(--gap-lg)',
|
|
61
|
-
backgroundColor: 'var(--background)',
|
|
62
|
-
opacity: 'var(--opacity-strong)',
|
|
63
|
-
border: '1px solid var(--border)',
|
|
64
|
-
boxShadow: 'var(--shadow-xl)',
|
|
65
|
-
maxWidth: 'var(--content-text)',
|
|
66
|
-
width: '100%',
|
|
67
|
-
margin: '0 var(--gap-md)',
|
|
68
|
-
}, children: children || (_jsxs(_Fragment, { children: [showSpinner && (_jsx("div", { style: {
|
|
69
|
-
animation: 'spin 1s linear infinite',
|
|
70
|
-
borderRadius: 'var(--radius-full)',
|
|
71
|
-
border: '2px solid var(--primary)',
|
|
72
|
-
borderTopColor: 'transparent',
|
|
73
|
-
width: spinnerSize === 'sm'
|
|
74
|
-
? '2rem'
|
|
75
|
-
: spinnerSize === 'md'
|
|
76
|
-
? '3rem'
|
|
77
|
-
: '4rem',
|
|
78
|
-
height: spinnerSize === 'sm'
|
|
79
|
-
? '2rem'
|
|
80
|
-
: spinnerSize === 'md'
|
|
81
|
-
? '3rem'
|
|
82
|
-
: '4rem',
|
|
83
|
-
}, role: "status", "aria-hidden": "true" })), message && _jsx(LoadingMessage, { ...message })] })) }) }));
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Simple loading overlay component
|
|
87
|
-
*
|
|
88
|
-
* @version 0.0.1
|
|
89
|
-
* @since 0.0.1
|
|
90
|
-
* @author AMBROISE PARK Consulting
|
|
91
|
-
*/
|
|
92
|
-
export const LoadingOverlaySimple = ({ message = 'Loading...', ...props }) => (_jsx(LoadingOverlay, { message: { message, showSpinner: true }, ...props }));
|
|
93
|
-
/**
|
|
94
|
-
* Processing loading overlay component
|
|
95
|
-
*
|
|
96
|
-
* @version 0.0.1
|
|
97
|
-
* @since 0.0.1
|
|
98
|
-
* @author AMBROISE PARK Consulting
|
|
99
|
-
*/
|
|
100
|
-
export const LoadingOverlayProcessing = ({ message = 'Processing your request...', ...props }) => (_jsx(LoadingOverlay, { message: {
|
|
101
|
-
state: 'processing',
|
|
102
|
-
message,
|
|
103
|
-
showSpinner: true,
|
|
104
|
-
}, ...props }));
|
|
105
|
-
/**
|
|
106
|
-
* Saving loading overlay component
|
|
107
|
-
*
|
|
108
|
-
* @version 0.0.1
|
|
109
|
-
* @since 0.0.1
|
|
110
|
-
* @author AMBROISE PARK Consulting
|
|
111
|
-
*/
|
|
112
|
-
export const LoadingOverlaySaving = ({ message = 'Saving your changes...', ...props }) => (_jsx(LoadingOverlay, { message: {
|
|
113
|
-
state: 'processing',
|
|
114
|
-
message,
|
|
115
|
-
showSpinner: true,
|
|
116
|
-
}, ...props }));
|
|
117
|
-
/**
|
|
118
|
-
* Uploading loading overlay component
|
|
119
|
-
*
|
|
120
|
-
* @version 0.0.1
|
|
121
|
-
* @since 0.0.1
|
|
122
|
-
* @author AMBROISE PARK Consulting
|
|
123
|
-
*/
|
|
124
|
-
export const LoadingOverlayUploading = ({ message, fileName, ...props }) => (_jsx(LoadingOverlay, { message: {
|
|
125
|
-
state: 'processing',
|
|
126
|
-
message: message ||
|
|
127
|
-
(fileName ? `Uploading ${fileName}...` : 'Uploading file...'),
|
|
128
|
-
showSpinner: true,
|
|
129
|
-
}, ...props }));
|
|
130
|
-
/**
|
|
131
|
-
* Container overlay for specific areas
|
|
132
|
-
*
|
|
133
|
-
* @version 0.0.1
|
|
134
|
-
* @since 0.0.1
|
|
135
|
-
* @author AMBROISE PARK Consulting
|
|
136
|
-
*/
|
|
137
|
-
export const LoadingContainerOverlay = ({ show = false, backdrop = false, backdropBlur = false, className, ...props }) => (_jsx("div", { className: className, style: {
|
|
138
|
-
position: 'absolute',
|
|
139
|
-
inset: 0,
|
|
140
|
-
display: show ? 'flex' : 'none',
|
|
141
|
-
alignItems: 'center',
|
|
142
|
-
justifyContent: 'center',
|
|
143
|
-
transition: 'opacity var(--dur-fast) ease-out',
|
|
144
|
-
backgroundColor: backdrop ? 'var(--background)' : 'transparent',
|
|
145
|
-
opacity: backdrop ? 'var(--opacity-muted)' : 1,
|
|
146
|
-
backdropFilter: backdropBlur ? 'blur(4px)' : 'none',
|
|
147
|
-
}, role: "status", "aria-busy": "true", "aria-label": "Loading content", children: _jsx("div", { style: { display: 'grid', placeItems: 'center', gap: 'var(--gap-sm)' }, children: props.children || (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
148
|
-
animation: 'spin 1s linear infinite',
|
|
149
|
-
borderRadius: 'var(--radius-full)',
|
|
150
|
-
border: '2px solid var(--primary)',
|
|
151
|
-
borderTopColor: 'transparent',
|
|
152
|
-
width: '1.5rem',
|
|
153
|
-
height: '1.5rem',
|
|
154
|
-
}, role: "status", "aria-hidden": "true" }), props.message && _jsx(LoadingMessage, { ...props.message })] })) }) }));
|
|
155
|
-
export default LoadingOverlay;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
interface LoadingScreenProps {
|
|
3
|
-
/** Determines whether to render a full-page or inline loader */
|
|
4
|
-
variant?: 'fullPage' | 'inline';
|
|
5
|
-
/** Optional className for additional styling */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Optionally override whether to show the loader */
|
|
8
|
-
isLoading?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* LoadingScreen displays a centered spinner.
|
|
12
|
-
* This component is designed to be used as the fallback in a Suspense boundary.
|
|
13
|
-
*
|
|
14
|
-
* @version 0.0.1
|
|
15
|
-
* @since 0.0.1
|
|
16
|
-
* @author AMBROISE PARK Consulting
|
|
17
|
-
*/
|
|
18
|
-
declare const LoadingScreen: ComponentType<LoadingScreenProps>;
|
|
19
|
-
export default LoadingScreen;
|
|
20
|
-
//# sourceMappingURL=LoadingScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingScreen.d.ts","sourceRoot":"","sources":["../../../src/components/common/LoadingScreen.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,kBAAkB;IAC1B,gEAAgE;IAChE,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAChC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CA0CpD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
// packages/ui/src/components/common/LoadingScreen.tsx
|
|
4
|
-
/**
|
|
5
|
-
* @fileoverview LoadingScreen component
|
|
6
|
-
* @description Full-page loading screen component
|
|
7
|
-
*
|
|
8
|
-
* @version 0.0.1
|
|
9
|
-
* @since 0.0.1
|
|
10
|
-
* @author AMBROISE PARK Consulting
|
|
11
|
-
*/
|
|
12
|
-
import { cn } from '@donotdev/components';
|
|
13
|
-
/**
|
|
14
|
-
* LoadingScreen displays a centered spinner.
|
|
15
|
-
* This component is designed to be used as the fallback in a Suspense boundary.
|
|
16
|
-
*
|
|
17
|
-
* @version 0.0.1
|
|
18
|
-
* @since 0.0.1
|
|
19
|
-
* @author AMBROISE PARK Consulting
|
|
20
|
-
*/
|
|
21
|
-
const LoadingScreen = ({ variant = 'fullPage', className, isLoading, }) => {
|
|
22
|
-
if (isLoading === false)
|
|
23
|
-
return null;
|
|
24
|
-
return (_jsx("div", { className: cn(className), style: {
|
|
25
|
-
display: 'flex',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
justifyContent: 'center',
|
|
28
|
-
...(variant === 'fullPage' && {
|
|
29
|
-
position: 'fixed',
|
|
30
|
-
inset: 0,
|
|
31
|
-
backgroundColor: 'var(--background)',
|
|
32
|
-
backdropFilter: 'blur(4px)',
|
|
33
|
-
zIndex: 50,
|
|
34
|
-
}),
|
|
35
|
-
}, role: "status", "aria-busy": "true", "aria-label": "Loading", children: _jsx("div", { style: {
|
|
36
|
-
animation: 'spin 1s linear infinite',
|
|
37
|
-
borderRadius: 'var(--radius-full)',
|
|
38
|
-
border: '2px solid var(--muted)',
|
|
39
|
-
borderTopColor: 'var(--primary)',
|
|
40
|
-
...(variant === 'fullPage'
|
|
41
|
-
? { width: '5rem', height: '5rem' }
|
|
42
|
-
: { width: 'var(--icon-md)', height: 'var(--icon-md)' }),
|
|
43
|
-
}, role: "status", "aria-busy": "true", "aria-label": "Loading" }) }));
|
|
44
|
-
};
|
|
45
|
-
export default LoadingScreen;
|