@unifiedsoftware/react-components 1.0.62 → 1.0.69

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +150 -150
  2. package/package.json +7 -7
package/dist/index.d.ts CHANGED
@@ -5,185 +5,185 @@ import * as styled_components_dist_types from 'styled-components/dist/types';
5
5
  import * as styled_components from 'styled-components';
6
6
  import * as _unifiedsoftware_react_router from '@unifiedsoftware/react-router';
7
7
 
8
- interface IDropEnumList {
9
- dataEnum: object;
10
- description: Map<any, Map<number, string>>;
11
- width: number;
12
- defaultValue: number;
13
- onChange: (number: any) => void;
14
- }
8
+ interface IDropEnumList {
9
+ dataEnum: object;
10
+ description: Map<any, Map<number, string>>;
11
+ width: number;
12
+ defaultValue: number;
13
+ onChange: (number: any) => void;
14
+ }
15
15
  declare const DropEnumList: React.FC<IDropEnumList>;
16
16
 
17
- interface IBreadCrumbContext {
18
- active: string;
19
- setActive: (value: string) => void;
20
- path: string;
21
- setPath: (value: string) => void;
22
- routes: {
23
- route: string | -1;
24
- title: string;
25
- }[];
26
- setRoutes: (value: {
27
- route: string | -1;
28
- title: string;
29
- }[]) => void;
30
- pathChild: string;
31
- setPathChild: (value: string) => void;
32
- goBack: boolean;
33
- setGoBack: (value: boolean) => void;
34
- }
35
- declare const BreadCrumbContext: react.Context<IBreadCrumbContext>;
36
- interface Props$5 {
37
- children: ReactNode;
38
- }
17
+ interface IBreadCrumbContext {
18
+ active: string;
19
+ setActive: (value: string) => void;
20
+ path: string;
21
+ setPath: (value: string) => void;
22
+ routes: {
23
+ route: string | -1;
24
+ title: string;
25
+ }[];
26
+ setRoutes: (value: {
27
+ route: string | -1;
28
+ title: string;
29
+ }[]) => void;
30
+ pathChild: string;
31
+ setPathChild: (value: string) => void;
32
+ goBack: boolean;
33
+ setGoBack: (value: boolean) => void;
34
+ }
35
+ declare const BreadCrumbContext: react.Context<IBreadCrumbContext>;
36
+ interface Props$5 {
37
+ children: ReactNode;
38
+ }
39
39
  declare const BreadCrumbContextProvider: ({ children }: Props$5) => react_jsx_runtime.JSX.Element;
40
40
 
41
- interface IDrawerContext {
42
- active: boolean;
43
- setActive: (value: boolean) => void;
44
- }
45
- declare const DrawerContext: react.Context<IDrawerContext>;
46
- interface Props$4 {
47
- children: ReactNode;
48
- }
41
+ interface IDrawerContext {
42
+ active: boolean;
43
+ setActive: (value: boolean) => void;
44
+ }
45
+ declare const DrawerContext: react.Context<IDrawerContext>;
46
+ interface Props$4 {
47
+ children: ReactNode;
48
+ }
49
49
  declare const DrawerContextProvider: FC<Props$4>;
50
50
 
51
- interface GlobalProps {
52
- children: ReactNode;
53
- }
51
+ interface GlobalProps {
52
+ children: ReactNode;
53
+ }
54
54
  declare function GlobalProvider({ children }: GlobalProps): react_jsx_runtime.JSX.Element;
55
55
 
56
- interface HistoryPath {
57
- path: string;
58
- name: string;
59
- date?: Date;
60
- }
61
- interface IHistoryContext {
62
- list: HistoryPath[];
63
- updateList: (list: HistoryPath) => void;
64
- }
65
- declare const HistoryContext: react.Context<IHistoryContext>;
66
- interface Props$3 {
67
- children: React.ReactNode;
68
- }
56
+ interface HistoryPath {
57
+ path: string;
58
+ name: string;
59
+ date?: Date;
60
+ }
61
+ interface IHistoryContext {
62
+ list: HistoryPath[];
63
+ updateList: (list: HistoryPath) => void;
64
+ }
65
+ declare const HistoryContext: react.Context<IHistoryContext>;
66
+ interface Props$3 {
67
+ children: React.ReactNode;
68
+ }
69
69
  declare const HistoryContextProvider: ({ children }: Props$3) => react_jsx_runtime.JSX.Element;
70
70
 
71
- interface ISidebarMainContext {
72
- open: boolean;
73
- setOpen: (value: boolean) => void;
74
- }
75
- declare const SidebarMainContext: react.Context<ISidebarMainContext>;
76
- interface Props$2 {
77
- children: ReactNode;
78
- }
71
+ interface ISidebarMainContext {
72
+ open: boolean;
73
+ setOpen: (value: boolean) => void;
74
+ }
75
+ declare const SidebarMainContext: react.Context<ISidebarMainContext>;
76
+ interface Props$2 {
77
+ children: ReactNode;
78
+ }
79
79
  declare const SidebarMainContextProvider: ({ children }: Props$2) => react_jsx_runtime.JSX.Element;
80
80
 
81
- interface Props$1 {
82
- title?: string;
83
- paths?: {
84
- route: string | -1;
85
- title: string;
86
- }[];
87
- }
88
- declare const AppBreadCrumb: ({ title, paths }: Props$1) => react_jsx_runtime.JSX.Element;
89
- declare const AppBreadCrumbNav: ({ paths }: {
90
- paths?: {
91
- route: string;
92
- title: string;
93
- }[] | undefined;
81
+ interface Props$1 {
82
+ title?: string;
83
+ paths?: {
84
+ route: string | -1;
85
+ title: string;
86
+ }[];
87
+ }
88
+ declare const AppBreadCrumb: ({ title, paths }: Props$1) => react_jsx_runtime.JSX.Element;
89
+ declare const AppBreadCrumbNav: ({ paths }: {
90
+ paths?: {
91
+ route: string;
92
+ title: string;
93
+ }[];
94
94
  }) => react_jsx_runtime.JSX.Element;
95
95
 
96
- type LoadingType = 'window' | 'page' | 'grid' | 'button' | 'card' | 'div' | 'none';
97
- /**
98
- * If the gridContent exists, render the loader in the gridContent, otherwise, if the reportContent
99
- * exists, render the loader in the reportContent, otherwise, render the loader in the current
100
- * component.
101
- * @returns A React component that is a portal.
102
- */
103
- declare const LoaderGrid: () => react_jsx_runtime.JSX.Element;
104
- interface ILoaderProps {
105
- type?: LoadingType;
106
- parent?: string;
107
- minDuration?: number;
108
- }
109
- /**
110
- * It's a React component that renders a loading indicator in a parent element.
111
- * @param props - {type?: LoadingType; parent?: string; minDuration?: number;}
112
- * @returns A React component that is a function.
113
- */
96
+ type LoadingType = 'window' | 'page' | 'grid' | 'button' | 'card' | 'div' | 'none';
97
+ /**
98
+ * If the gridContent exists, render the loader in the gridContent, otherwise, if the reportContent
99
+ * exists, render the loader in the reportContent, otherwise, render the loader in the current
100
+ * component.
101
+ * @returns A React component that is a portal.
102
+ */
103
+ declare const LoaderGrid: () => react_jsx_runtime.JSX.Element;
104
+ interface ILoaderProps {
105
+ type?: LoadingType;
106
+ parent?: string;
107
+ minDuration?: number;
108
+ }
109
+ /**
110
+ * It's a React component that renders a loading indicator in a parent element.
111
+ * @param props - {type?: LoadingType; parent?: string; minDuration?: number;}
112
+ * @returns A React component that is a function.
113
+ */
114
114
  declare const AppLoader: FC<ILoaderProps>;
115
115
 
116
- interface CustomBtns {
117
- title?: string;
118
- render?: React.ReactNode;
119
- Icon?: ({ className }: {
120
- className: string;
121
- }) => JSX.Element;
122
- onAction?: () => void;
123
- }
124
- interface CustomExcel {
125
- title: string;
126
- classNameIcon: string;
127
- onAction: () => void;
128
- }
129
- interface ICustomizeColumns {
130
- disabled?: boolean;
131
- className?: string;
132
- entityType: number;
133
- data: any[];
134
- onFetched: (columns: any[]) => void;
135
- }
136
- interface NavOptionsProps {
137
- exportExcel?: CustomExcel[];
138
- customButtons?: CustomBtns[];
139
- onCreate?: () => void;
140
- onRefresh?: () => void;
141
- onSelect?: () => void;
142
- onClear?: () => void;
143
- onExpandScreen?: () => void;
144
- }
116
+ interface CustomBtns {
117
+ title?: string;
118
+ render?: React.ReactNode;
119
+ Icon?: ({ className }: {
120
+ className: string;
121
+ }) => JSX.Element;
122
+ onAction?: () => void;
123
+ }
124
+ interface CustomExcel {
125
+ title: string;
126
+ classNameIcon: string;
127
+ onAction: () => void;
128
+ }
129
+ interface ICustomizeColumns {
130
+ disabled?: boolean;
131
+ className?: string;
132
+ entityType: number;
133
+ data: any[];
134
+ onFetched: (columns: any[]) => void;
135
+ }
136
+ interface NavOptionsProps {
137
+ exportExcel?: CustomExcel[];
138
+ customButtons?: CustomBtns[];
139
+ onCreate?: () => void;
140
+ onRefresh?: () => void;
141
+ onSelect?: () => void;
142
+ onClear?: () => void;
143
+ onExpandScreen?: () => void;
144
+ }
145
145
  declare const NavOptions: FC<NavOptionsProps>;
146
146
 
147
- interface Props {
148
- title?: string;
149
- }
147
+ interface Props {
148
+ title?: string;
149
+ }
150
150
  declare const Title: ({ title }: Props) => react_jsx_runtime.JSX.Element;
151
151
 
152
- declare const Breadcrumb: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
152
+ declare const Breadcrumb: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
153
153
  declare const BreadCrumbTitle: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
154
154
 
155
- interface MenuItemProps {
156
- type?: 'row' | 'col';
157
- width?: string;
158
- }
159
- declare const MenuItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<Omit<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>, "ref"> & {
160
- ref?: ((instance: HTMLAnchorElement | null) => void) | react.RefObject<HTMLAnchorElement> | null | undefined;
161
- }, MenuItemProps>> & string & Omit<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, keyof react.Component<any, {}, any>>;
155
+ interface MenuItemProps {
156
+ type?: 'row' | 'col';
157
+ width?: string;
158
+ }
159
+ declare const MenuItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<Omit<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>, "ref"> & {
160
+ ref?: ((instance: HTMLAnchorElement | null) => void) | react.RefObject<HTMLAnchorElement> | null | undefined;
161
+ }, MenuItemProps>> & string & Omit<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, keyof react.Component<any, {}, any>>;
162
162
  declare const MenuTitle: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
163
163
 
164
- interface NavbarProps {
165
- $gradient?: boolean;
166
- }
164
+ interface NavbarProps {
165
+ $gradient?: boolean;
166
+ }
167
167
  declare const Navbar: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, NavbarProps>> & string;
168
168
 
169
169
  declare const MenuOptions: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
170
170
 
171
- interface SidebarProps {
172
- $width?: string;
173
- $active?: boolean;
174
- $fixed?: boolean;
175
- $shadow?: boolean;
176
- }
177
- declare const ItemSidebar: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
178
- declare const SidebarNavigation: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, SidebarProps>> & string;
179
- declare const ItemLinkSidebar: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>, "ref"> & {
180
- ref?: ((instance: HTMLAnchorElement | null) => void) | react.RefObject<HTMLAnchorElement> | null | undefined;
171
+ interface SidebarProps {
172
+ $width?: string;
173
+ $active?: boolean;
174
+ $fixed?: boolean;
175
+ $shadow?: boolean;
176
+ }
177
+ declare const ItemSidebar: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
178
+ declare const SidebarNavigation: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, SidebarProps>> & string;
179
+ declare const ItemLinkSidebar: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<Omit<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>, "ref"> & {
180
+ ref?: ((instance: HTMLAnchorElement | null) => void) | react.RefObject<HTMLAnchorElement> | null | undefined;
181
181
  }, never>> & string & Omit<react.ForwardRefExoticComponent<_unifiedsoftware_react_router.LinkProps & react.RefAttributes<HTMLAnchorElement>>, keyof react.Component<any, {}, any>>;
182
182
 
183
- interface MainProps {
184
- $activeDrawer: boolean;
185
- }
186
- declare const Main: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, MainProps>> & string;
183
+ interface MainProps {
184
+ $activeDrawer: boolean;
185
+ }
186
+ declare const Main: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, MainProps>> & string;
187
187
  declare const CloseIcon: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
188
188
 
189
- export { AppBreadCrumb, AppBreadCrumbNav, AppLoader, BreadCrumbContext, BreadCrumbContextProvider, BreadCrumbTitle, Breadcrumb, CloseIcon, CustomBtns, CustomExcel, DrawerContext, DrawerContextProvider, DropEnumList, GlobalProps, GlobalProvider, HistoryContext, HistoryContextProvider, IBreadCrumbContext, ICustomizeColumns, ILoaderProps, ItemLinkSidebar, ItemSidebar, LoaderGrid, LoadingType, Main, MenuItem as MenuItems, MenuOptions, MenuTitle, NavOptions, NavOptionsProps, Navbar, SidebarMainContext, SidebarMainContextProvider, SidebarNavigation, Title };
189
+ export { AppBreadCrumb, AppBreadCrumbNav, AppLoader, BreadCrumbContext, BreadCrumbContextProvider, BreadCrumbTitle, Breadcrumb, CloseIcon, type CustomBtns, type CustomExcel, DrawerContext, DrawerContextProvider, DropEnumList, type GlobalProps, GlobalProvider, HistoryContext, HistoryContextProvider, type IBreadCrumbContext, type ICustomizeColumns, type ILoaderProps, ItemLinkSidebar, ItemSidebar, LoaderGrid, type LoadingType, Main, MenuItem as MenuItems, MenuOptions, MenuTitle, NavOptions, type NavOptionsProps, Navbar, SidebarMainContext, SidebarMainContextProvider, SidebarNavigation, Title };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifiedsoftware/react-components",
3
- "version": "1.0.62",
3
+ "version": "1.0.69",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -17,16 +17,16 @@
17
17
  "typecheck": "tsc --noEmit"
18
18
  },
19
19
  "peerDependencies": {
20
- "react": "^16.0.0 || ^17.0.2 || ^18.2.0",
21
- "react-dom": "^16.0.0 || ^17.0.2 || ^18.2.0"
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0"
22
22
  },
23
23
  "dependencies": {
24
24
  "@progress/kendo-react-dropdowns": "^5.12.1",
25
25
  "@progress/kendo-react-treeview": "^5.12.1",
26
- "@unifiedsoftware/react-router": "1.0.3",
27
- "@unifiedsoftware/react-ui": "1.0.62",
28
- "clsx": "^2.0.0",
29
- "merge-refs": "^1.2.1",
26
+ "@unifiedsoftware/react-router": "1.0.4",
27
+ "@unifiedsoftware/react-ui": "1.0.69",
28
+ "clsx": "^2.1.1",
29
+ "merge-refs": "^1.3.0",
30
30
  "react-bootstrap": "^2.8.0",
31
31
  "react-icons": "^4.11.0",
32
32
  "styled-components": "^6.0.7"