andoncloud-sdk 1.6.5 → 1.6.7
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/andoncloud-sdk.js +2 -2
- package/dist/andoncloud-sdk.js.map +1 -1
- package/dist/index.d.ts +16 -18
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TagManagerArgs } from 'react-gtm-module';
|
|
2
2
|
import toast from 'react-hot-toast';
|
|
3
3
|
|
|
4
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
5
|
import * as Sentry from '@sentry/react';
|
|
5
6
|
import { InitOptions } from 'i18next';
|
|
6
7
|
|
|
@@ -9,13 +10,10 @@ import { RadioProps } from './app/core/ui/Radio';
|
|
|
9
10
|
import { RadioGroupProps } from './app/core/ui/RadioGroup';
|
|
10
11
|
|
|
11
12
|
declare module 'andoncloud-sdk' {
|
|
12
|
-
export type Styles = React.CSSProperties & {
|
|
13
|
-
[selector: string]: Styles;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
13
|
interface NavItem {
|
|
17
14
|
label: string;
|
|
18
15
|
url?: string;
|
|
16
|
+
redirect?: boolean;
|
|
19
17
|
action?: () => void;
|
|
20
18
|
icon?: React.ReactNode;
|
|
21
19
|
defaultOpened?: boolean;
|
|
@@ -71,8 +69,8 @@ declare module 'andoncloud-sdk' {
|
|
|
71
69
|
interface MenuProps {
|
|
72
70
|
items?: MenuItem[];
|
|
73
71
|
buttonColor?: string;
|
|
74
|
-
dropdownStyles?:
|
|
75
|
-
styles?:
|
|
72
|
+
dropdownStyles?: SxProps<Theme>;
|
|
73
|
+
styles?: SxProps<Theme>;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
interface HeaderProps {
|
|
@@ -80,11 +78,11 @@ declare module 'andoncloud-sdk' {
|
|
|
80
78
|
showAcLogo?: boolean;
|
|
81
79
|
leadingText?: string;
|
|
82
80
|
title?: string;
|
|
83
|
-
titleStyles?:
|
|
81
|
+
titleStyles?: SxProps<Theme>;
|
|
84
82
|
navProps?: NavProps;
|
|
85
83
|
userProps?: UserProps;
|
|
86
84
|
menuProps?: MenuProps;
|
|
87
|
-
styles?:
|
|
85
|
+
styles?: SxProps<Theme>;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
interface SidebarMenuItem extends NavItem {
|
|
@@ -96,10 +94,10 @@ declare module 'andoncloud-sdk' {
|
|
|
96
94
|
items: SidebarMenuItem[];
|
|
97
95
|
open?: boolean;
|
|
98
96
|
width?: number;
|
|
99
|
-
styles?:
|
|
100
|
-
listStyles?:
|
|
101
|
-
itemStyles?:
|
|
102
|
-
subitemStyles?:
|
|
97
|
+
styles?: SxProps<Theme>;
|
|
98
|
+
listStyles?: SxProps<Theme>;
|
|
99
|
+
itemStyles?: SxProps<Theme>;
|
|
100
|
+
subitemStyles?: SxProps<Theme>;
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
export interface SidePanelProps {
|
|
@@ -110,11 +108,11 @@ declare module 'andoncloud-sdk' {
|
|
|
110
108
|
mainContent: React.ReactNode;
|
|
111
109
|
asideContent?: React.ReactNode;
|
|
112
110
|
width?: string;
|
|
113
|
-
styles?:
|
|
114
|
-
headerStyles?:
|
|
115
|
-
contentWrapperStyles?:
|
|
116
|
-
mainContentStyles?:
|
|
117
|
-
asideContentStyles?:
|
|
111
|
+
styles?: SxProps<Theme>;
|
|
112
|
+
headerStyles?: SxProps<Theme>;
|
|
113
|
+
contentWrapperStyles?: SxProps<Theme>;
|
|
114
|
+
mainContentStyles?: SxProps<Theme>;
|
|
115
|
+
asideContentStyles?: SxProps<Theme>;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
interface ContainerProps {
|
|
@@ -122,7 +120,7 @@ declare module 'andoncloud-sdk' {
|
|
|
122
120
|
headerProps: HeaderProps;
|
|
123
121
|
sidebarMenuProps?: SidebarMenuProps;
|
|
124
122
|
sidePanelProps?: SidePanelProps;
|
|
125
|
-
styles?:
|
|
123
|
+
styles?: SxProps<Theme>;
|
|
126
124
|
}
|
|
127
125
|
export const Container: React.FC<ContainerProps>;
|
|
128
126
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIBRARY_VERSION = "1.6.
|
|
1
|
+
export declare const LIBRARY_VERSION = "1.6.7";
|