@donotdev/ui 0.0.27 → 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.
@@ -0,0 +1,14 @@
1
+ import type { ComponentType } from 'react';
2
+ /**
3
+ * AppLoading - Framework-level, context-free loading fallback for Suspense boundaries.
4
+ * Use as the default fallback for route/component loading in both Vite and Next.js.
5
+ *
6
+ * @version 0.0.1
7
+ * @since 0.0.1
8
+ * @author AMBROISE PARK Consulting
9
+ */
10
+ declare const AppLoading: ComponentType<{
11
+ className?: string;
12
+ }>;
13
+ export default AppLoading;
14
+ //# sourceMappingURL=AppLoading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppLoading.d.ts","sourceRoot":"","sources":["../../../src/components/common/AppLoading.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;;;;GAOG;AACH,QAAA,MAAM,UAAU,EAAE,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CA2BrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // packages/ui/src/components/common/AppLoading.tsx
3
+ /**
4
+ * @fileoverview AppLoading component
5
+ * @description Framework-level loading fallback for Suspense boundaries
6
+ *
7
+ * @version 0.0.1
8
+ * @since 0.0.1
9
+ * @author AMBROISE PARK Consulting
10
+ */
11
+ import { RefreshCw } from 'lucide-react';
12
+ import { cn } from '@donotdev/components';
13
+ /**
14
+ * AppLoading - Framework-level, context-free loading fallback for Suspense boundaries.
15
+ * Use as the default fallback for route/component loading in both Vite and Next.js.
16
+ *
17
+ * @version 0.0.1
18
+ * @since 0.0.1
19
+ * @author AMBROISE PARK Consulting
20
+ */
21
+ const AppLoading = ({ className }) => (_jsxs("div", { className: cn('dndev-loading-overlay', className), style: {
22
+ position: 'fixed',
23
+ inset: 0,
24
+ display: 'flex',
25
+ alignItems: 'center',
26
+ justifyContent: 'center',
27
+ backgroundColor: 'var(--background)',
28
+ opacity: 'var(--opacity-muted)',
29
+ backdropFilter: 'blur(4px)',
30
+ zIndex: 50,
31
+ }, role: "status", "aria-busy": "true", "aria-label": "Loading", children: [_jsx(RefreshCw, { className: "dndev-size-touch", style: {
32
+ color: 'var(--primary)',
33
+ animation: 'spin 1s linear infinite',
34
+ } }), _jsx("span", { className: "dndev-sr-only", children: "Loading..." })] }));
35
+ export default AppLoading;
@@ -0,0 +1,33 @@
1
+ import type { ComponentType } from 'react';
2
+ interface LoaderProps {
3
+ variant?: 'fullPage' | 'inline';
4
+ className?: string;
5
+ isLoading?: boolean;
6
+ }
7
+ /**
8
+ * Simple fallback loader that doesn't depend on any stores
9
+ * Used internally for Suspense fallbacks and initial loading states
10
+ *
11
+ * @version 0.0.1
12
+ * @since 0.0.1
13
+ * @author AMBROISE PARK Consulting
14
+ */
15
+ declare const SimpleLoader: ComponentType<{
16
+ variant?: 'fullPage' | 'inline';
17
+ className?: string;
18
+ }>;
19
+ /**
20
+ * Loader - Simple loading spinner component
21
+ *
22
+ * Used for Suspense fallbacks and explicit loading states.
23
+ * Components should use `useCrudList().loading` or `useCrudList().fetching`
24
+ * for reactive loading states from TanStack Query.
25
+ *
26
+ * @version 0.0.1
27
+ * @since 0.0.1
28
+ * @author AMBROISE PARK Consulting
29
+ */
30
+ declare const Loader: ComponentType<LoaderProps>;
31
+ export default Loader;
32
+ export { SimpleLoader };
33
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/common/Loader.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY,EAAE,aAAa,CAAC;IAChC,OAAO,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAiDA,CAAC;AAwBF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,EAAE,aAAa,CAAC,WAAW,CAEtC,CAAC;AAGF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,81 @@
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 };
@@ -0,0 +1,114 @@
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
@@ -0,0 +1 @@
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,MA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,CAAC,EAAE,OAAO,CAAC;CACvB,CAQF,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,127 @@
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;
@@ -0,0 +1,112 @@
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
@@ -0,0 +1 @@
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,E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