@mirantes-micro/foundation-design-system 0.0.64 → 0.0.66
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/index.d.ts +33 -6
- package/dist/index.js +8 -8
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
2
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
3
4
|
|
|
4
5
|
declare function Spinner({ className }: {
|
|
5
6
|
className?: string;
|
|
6
|
-
}):
|
|
7
|
+
}): React__default.JSX.Element;
|
|
7
8
|
|
|
8
9
|
declare function joinUrlWithPathAndQuery(baseUrl: string, path: string, query?: Record<string, string>): string;
|
|
9
10
|
|
|
@@ -74,17 +75,43 @@ type User = {
|
|
|
74
75
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
75
76
|
type UsePathname = () => string;
|
|
76
77
|
|
|
77
|
-
declare function MirantesFoundationProvider({ children, Notification, queryClient: reactQueryClient, onOpenCreatePostModal, values: { locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, }, }: IMirantesFoundationProviderProps):
|
|
78
|
+
declare function MirantesFoundationProvider({ children, Notification, queryClient: reactQueryClient, onOpenCreatePostModal, values: { locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, widgetsApi, hostUrl, isDev, profileApiUrl, isGettingStats, }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
|
|
78
79
|
|
|
79
|
-
declare function WorkspacePanel():
|
|
80
|
+
declare function WorkspacePanel(): React__default.JSX.Element;
|
|
80
81
|
|
|
81
82
|
declare function Header({ className }: {
|
|
82
83
|
className?: string;
|
|
83
|
-
}):
|
|
84
|
+
}): React__default.JSX.Element;
|
|
84
85
|
|
|
85
86
|
declare function useMirantesFoundation(): IMirantesFoundationContext;
|
|
86
87
|
|
|
87
88
|
declare function onLogout(callback: () => void): void;
|
|
88
89
|
declare function closeLogoutChannel(): void;
|
|
89
90
|
|
|
90
|
-
|
|
91
|
+
interface DateInputProps {
|
|
92
|
+
label: string;
|
|
93
|
+
onChange: (date: Date) => void;
|
|
94
|
+
value: Date;
|
|
95
|
+
required?: boolean;
|
|
96
|
+
className?: string;
|
|
97
|
+
error?: string;
|
|
98
|
+
calendarClassName?: string;
|
|
99
|
+
}
|
|
100
|
+
declare function DateInput({ label, onChange, value, required, className, error, calendarClassName, }: DateInputProps): React.JSX.Element;
|
|
101
|
+
|
|
102
|
+
interface DateRange {
|
|
103
|
+
from: Date | undefined;
|
|
104
|
+
to: Date | undefined;
|
|
105
|
+
}
|
|
106
|
+
interface DateRangeInputProps {
|
|
107
|
+
label: string;
|
|
108
|
+
onChange: (range: DateRange) => void;
|
|
109
|
+
value: DateRange;
|
|
110
|
+
required?: boolean;
|
|
111
|
+
className?: string;
|
|
112
|
+
error?: string;
|
|
113
|
+
calendarClassName?: string;
|
|
114
|
+
}
|
|
115
|
+
declare function DateRangeInput({ label, onChange, value, required, className, error, calendarClassName, }: DateRangeInputProps): React.JSX.Element;
|
|
116
|
+
|
|
117
|
+
export { DateInput, DateRangeInput, Header, MirantesFoundationProvider, Spinner, WorkspacePanel, closeLogoutChannel, getInitials, joinUrlWithPathAndQuery, onLogout, stringToObj, useMirantesFoundation };
|