@campxdev/campx-web-utils 1.3.7 → 2.0.0-alpha.1

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 (34) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/src/context/Providers.d.ts +1 -2
  3. package/dist/cjs/types/src/index.d.ts +1 -1
  4. package/dist/esm/index.js +2 -2
  5. package/dist/esm/types/src/context/Providers.d.ts +1 -2
  6. package/dist/esm/types/src/index.d.ts +1 -1
  7. package/dist/index.d.ts +5 -51
  8. package/dist/styles.css +4941 -0
  9. package/export.ts +0 -3
  10. package/package.json +12 -12
  11. package/src/AppContent.tsx +1 -15
  12. package/src/context/ErrorBoundary/ErrorBoundary.tsx +11 -37
  13. package/src/context/ErrorBoundary/Login.tsx +57 -67
  14. package/src/context/Providers.tsx +3 -12
  15. package/src/index.tsx +1 -1
  16. package/src/routes/main.tsx +5 -4
  17. package/src/styles/index.css +4 -0
  18. package/src/utils/constants.ts +2 -0
  19. package/types/prettier.d.ts +2 -0
  20. package/dist/cjs/types/src/components/ActivityLog.d.ts +0 -13
  21. package/dist/cjs/types/src/components/ChangePassword.d.ts +0 -9
  22. package/dist/cjs/types/src/layout/AppLayout/AppLayout.d.ts +0 -23
  23. package/dist/cjs/types/src/layout/AppLayout/components/HelpDocs.d.ts +0 -11
  24. package/dist/esm/types/src/components/ActivityLog.d.ts +0 -13
  25. package/dist/esm/types/src/components/ChangePassword.d.ts +0 -9
  26. package/dist/esm/types/src/layout/AppLayout/AppLayout.d.ts +0 -23
  27. package/dist/esm/types/src/layout/AppLayout/components/HelpDocs.d.ts +0 -11
  28. package/dist/types/theme.d.ts +0 -63
  29. package/src/App.css +0 -38
  30. package/src/components/ActivityLog.tsx +0 -96
  31. package/src/components/ChangePassword.tsx +0 -183
  32. package/src/index.css +0 -13
  33. package/src/layout/AppLayout/AppLayout.tsx +0 -155
  34. package/src/layout/AppLayout/components/HelpDocs.tsx +0 -121
@@ -1,9 +1,8 @@
1
1
  import { ReducersMapObject } from '@reduxjs/toolkit';
2
2
  import { ReactNode } from 'react';
3
3
  export { BrowserRouter } from 'react-router-dom';
4
- export declare const Providers: ({ children, basename, theme, reducers, }: {
4
+ export declare const Providers: ({ children, basename, reducers, }: {
5
5
  children: ReactNode;
6
6
  basename?: string;
7
- theme?: any;
8
7
  reducers?: ReducersMapObject;
9
8
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- import './index.css';
1
+ import './styles/index.css';
package/dist/index.d.ts CHANGED
@@ -1,25 +1,11 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as _emotion_styled from '@emotion/styled';
3
- import * as _mui_system from '@mui/system';
4
- import * as react from 'react';
5
- import { ReactNode } from 'react';
6
- import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
7
- import * as _mui_material from '@mui/material';
8
1
  import * as _axios from 'axios';
9
- import { Severity, ConfirmDialogType, SideMenuItemProps, SingleSelectProps } from '@campxdev/react-blueprint';
2
+ import { Severity, ConfirmDialogType, SingleSelectProps } from '@campxdev/react-blueprint';
10
3
  import { Store } from 'pullstate';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { ReactNode } from 'react';
11
6
  import { ReducersMapObject } from '@reduxjs/toolkit';
12
7
  export { BrowserRouter } from 'react-router-dom';
13
8
 
14
- interface ChangePasswordProps {
15
- close: () => void;
16
- }
17
- declare const StyledMenuItem: _emotion_styled.StyledComponent<_mui_material.MenuItemOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
18
- ref?: ((instance: HTMLLIElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLLIElement> | null | undefined;
19
- }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "dense" | "disableGutters" | "divider" | "selected"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
20
- declare function ChangePassword({ close }: ChangePasswordProps): react_jsx_runtime.JSX.Element;
21
- declare const ChangePasswordDialog: React.FC;
22
-
23
9
  declare module 'axios' {
24
10
  interface AxiosRequestConfig {
25
11
  skipInstitutionCode?: boolean;
@@ -135,10 +121,9 @@ type ErrorBoundaryProps = {
135
121
  };
136
122
  declare const ErrorBoundary: (props: ErrorBoundaryProps) => react_jsx_runtime.JSX.Element;
137
123
 
138
- declare const Providers: ({ children, basename, theme, reducers, }: {
124
+ declare const Providers: ({ children, basename, reducers, }: {
139
125
  children: ReactNode;
140
126
  basename?: string;
141
- theme?: any;
142
127
  reducers?: ReducersMapObject;
143
128
  }) => react_jsx_runtime.JSX.Element;
144
129
 
@@ -155,37 +140,6 @@ declare const useConfirm: () => ({ title, message, confirmButtonText, cancelButt
155
140
  type?: ConfirmDialogType;
156
141
  }) => Promise<boolean>;
157
142
 
158
- type Props = {
159
- actions?: ReactNode[];
160
- profileActions?: ReactNode[];
161
- children?: ReactNode;
162
- menu: SideMenuItemProps[];
163
- mainContainerSx?: any;
164
- handleLogout?: any;
165
- userName?: string;
166
- designation?: string;
167
- clientName?: string;
168
- institutionData?: any[];
169
- defaultCollapsed?: boolean;
170
- helpDocsConfig?: Record<string, {
171
- actions: {
172
- name: string;
173
- onClick: () => void;
174
- }[];
175
- }>;
176
- };
177
- declare const AppLayout: React.FC<Props>;
178
-
179
- interface HelpDocsActionType {
180
- name: string;
181
- onClick?: () => void;
182
- backgroundColor?: string;
183
- }
184
- interface HelpDocsProps {
185
- actions: HelpDocsActionType[];
186
- }
187
- declare const HelpDocs: react.FC<HelpDocsProps>;
188
-
189
143
  declare const BatchSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
190
144
 
191
145
  declare const CourseSelector: (props: SingleSelectProps) => react_jsx_runtime.JSX.Element;
@@ -234,5 +188,5 @@ declare const workspaceApiMapping: Record<string, string>;
234
188
 
235
189
  declare const openInNewTab: (pathAfterBase: string, excludeInstitution?: boolean, excludeWorkspace?: boolean) => void;
236
190
 
237
- export { AppLayout, ApplicationStore, BatchSelector, ChangePassword, ChangePasswordDialog, ConfirmDialogProvider, CourseSelector, DepartmentSelector, EmployeesSelector, ErrorBoundary, ExamTypeSelector, ExamsRegulationSelector, FeeTypeSelector, HelpDocs, HostelBlockSelector, HostelFloorSelector, HostelRoomSelector, MonthYearSelector, PrintFormatSelector, ProgramSelector, Providers, RegulationSelector, SemesterSelector, SnackbarProvider, StudentSelector, StudentServicesSelector, StyledMenuItem, YearRangeSelector, axios, createRsbuildSharedConfig, initialApplicationState, institutionCode, isDevelopment, nonWorkspaceAxios, openInNewTab, tenantCode, useConfirm, workspace, workspaceApiMapping };
191
+ export { ApplicationStore, BatchSelector, ConfirmDialogProvider, CourseSelector, DepartmentSelector, EmployeesSelector, ErrorBoundary, ExamTypeSelector, ExamsRegulationSelector, FeeTypeSelector, HostelBlockSelector, HostelFloorSelector, HostelRoomSelector, MonthYearSelector, PrintFormatSelector, ProgramSelector, Providers, RegulationSelector, SemesterSelector, SnackbarProvider, StudentSelector, StudentServicesSelector, YearRangeSelector, axios, createRsbuildSharedConfig, initialApplicationState, institutionCode, isDevelopment, nonWorkspaceAxios, openInNewTab, tenantCode, useConfirm, workspace, workspaceApiMapping };
238
192
  export type { ApplicationStoreType, ErrorBoundaryProps, InstitutionInfo };