@mirantes-micro/foundation-design-system 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.
- package/dist/index.d.mts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.js +6 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +87 -77
package/dist/index.d.mts
CHANGED
|
@@ -5,16 +5,15 @@ declare function Spinner({ className }: {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}): React.JSX.Element;
|
|
7
7
|
|
|
8
|
-
declare function
|
|
8
|
+
declare function joinUrlWithPathAndQuery(baseUrl: string, path: string, query?: Record<string, string>): string;
|
|
9
9
|
|
|
10
|
-
declare function
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
declare function stringToObj<T>(inputString: string, separator: string): T | undefined;
|
|
11
|
+
|
|
12
|
+
declare function getInitials(fullName: string): string;
|
|
13
13
|
|
|
14
14
|
type TLocale = "pt" | "en" | "fr";
|
|
15
15
|
interface IMirantesFoundationProviderProps {
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
Notification?: ReactNode;
|
|
18
17
|
queryClient?: QueryClient;
|
|
19
18
|
values?: {
|
|
20
19
|
widgetsApi?: string;
|
|
@@ -51,12 +50,12 @@ type User = {
|
|
|
51
50
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
52
51
|
type UsePathname = () => string;
|
|
53
52
|
|
|
54
|
-
declare function MirantesFoundationProvider({ children,
|
|
53
|
+
declare function MirantesFoundationProvider({ children, queryClient: reactQueryClient, values: { locale, Link, usePathname, user, mirantesDomain, environment, widgetsApi, hostUrl, isDev, }, }: IMirantesFoundationProviderProps): React.JSX.Element;
|
|
55
54
|
|
|
56
|
-
declare function
|
|
57
|
-
|
|
58
|
-
declare function stringToObj<T>(inputString: string, separator: string): T | undefined;
|
|
55
|
+
declare function WorkspacePanel(): React.JSX.Element;
|
|
59
56
|
|
|
60
|
-
declare function
|
|
57
|
+
declare function Header({ className }: {
|
|
58
|
+
className?: string;
|
|
59
|
+
}): React.JSX.Element;
|
|
61
60
|
|
|
62
61
|
export { Header, MirantesFoundationProvider, Spinner, WorkspacePanel, getInitials, joinUrlWithPathAndQuery, stringToObj };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,16 +5,15 @@ declare function Spinner({ className }: {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
}): React.JSX.Element;
|
|
7
7
|
|
|
8
|
-
declare function
|
|
8
|
+
declare function joinUrlWithPathAndQuery(baseUrl: string, path: string, query?: Record<string, string>): string;
|
|
9
9
|
|
|
10
|
-
declare function
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
declare function stringToObj<T>(inputString: string, separator: string): T | undefined;
|
|
11
|
+
|
|
12
|
+
declare function getInitials(fullName: string): string;
|
|
13
13
|
|
|
14
14
|
type TLocale = "pt" | "en" | "fr";
|
|
15
15
|
interface IMirantesFoundationProviderProps {
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
Notification?: ReactNode;
|
|
18
17
|
queryClient?: QueryClient;
|
|
19
18
|
values?: {
|
|
20
19
|
widgetsApi?: string;
|
|
@@ -51,12 +50,12 @@ type User = {
|
|
|
51
50
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
52
51
|
type UsePathname = () => string;
|
|
53
52
|
|
|
54
|
-
declare function MirantesFoundationProvider({ children,
|
|
53
|
+
declare function MirantesFoundationProvider({ children, queryClient: reactQueryClient, values: { locale, Link, usePathname, user, mirantesDomain, environment, widgetsApi, hostUrl, isDev, }, }: IMirantesFoundationProviderProps): React.JSX.Element;
|
|
55
54
|
|
|
56
|
-
declare function
|
|
57
|
-
|
|
58
|
-
declare function stringToObj<T>(inputString: string, separator: string): T | undefined;
|
|
55
|
+
declare function WorkspacePanel(): React.JSX.Element;
|
|
59
56
|
|
|
60
|
-
declare function
|
|
57
|
+
declare function Header({ className }: {
|
|
58
|
+
className?: string;
|
|
59
|
+
}): React.JSX.Element;
|
|
61
60
|
|
|
62
61
|
export { Header, MirantesFoundationProvider, Spinner, WorkspacePanel, getInitials, joinUrlWithPathAndQuery, stringToObj };
|